aboutsummaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-14 17:05:47 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-14 17:05:47 +0000
commit20462c329400ee3c46be25a0adb338ee90ef6fac (patch)
tree397276f655f85e6ba38660a514d5e3b38f179240 /acinclude.m4
parenta067f275f9645079a398f69ade1260ce7b0ab5d4 (diff)
Merged revisions 108740 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r108740 | russell | 2008-03-14 12:05:11 -0500 (Fri, 14 Mar 2008) | 5 lines Do a link test in AST_EXT_TOOL_CHECK() to ensure we have all the required libs reported by the tool. (closes issue #12067, reported by Juggie, patched by me) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@108741 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m46
1 files changed, 5 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 9b84af614..6e310e53f 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -230,7 +230,10 @@ AC_DEFUN([AST_EXT_TOOL_CHECK],
fi
CPPFLAGS="${CPPFLAGS} ${$1_INCLUDE}"
- AC_COMPILE_IFELSE(
+ saved_ldflags="${LDFLAGS}"
+ LDFLAGS="${$1_LIB}"
+
+ AC_LINK_IFELSE(
[ AC_LANG_PROGRAM( [ $5 ],
[ $6; ]
)],
@@ -240,6 +243,7 @@ AC_DEFUN([AST_EXT_TOOL_CHECK],
[]
)
CPPFLAGS="${saved_cppflags}"
+ LDFLAGS="${saved_ldflags}"
else
PBX_$1=1
AC_DEFINE([HAVE_$1], 1, [Define if your system has the $1 libraries.])