[svn-commits] trunk r22703 - /trunk/acinclude.m4

svn-commits at lists.digium.com svn-commits at lists.digium.com
Wed Apr 26 17:10:57 MST 2006


Author: russell
Date: Wed Apr 26 19:10:56 2006
New Revision: 22703

URL: http://svn.digium.com/view/asterisk?rev=22703&view=rev
Log:
only define HAVE_SOMELIB if somelib's header file was found as well

Modified:
    trunk/acinclude.m4

Modified: trunk/acinclude.m4
URL: http://svn.digium.com/view/asterisk/trunk/acinclude.m4?rev=22703&r1=22702&r2=22703&view=diff
==============================================================================
--- trunk/acinclude.m4 (original)
+++ trunk/acinclude.m4 Wed Apr 26 19:10:56 2006
@@ -20,8 +20,7 @@
 PBX_LIB$1=0
 
 if test "${USE_$1}" != "no"; then	
-   AC_CHECK_LIB([$1], [$2], AC_DEFINE_UNQUOTED([HAVE_$4], 1,
-   [Define to indicate the $5 library]), [], -L${$1_DIR}/lib $6)
+   AC_CHECK_LIB([$1], [$2], [], [], -L${$1_DIR}/lib $6)
 
    if test "${ac_cv_lib_$1_$2}" = "yes"; then
       $1_LIB="-l$1 $6"
@@ -51,6 +50,7 @@
          PBX_LIB$1=0
       else
          PBX_LIB$1=1
+         AC_DEFINE_UNQUOTED([HAVE_$4], 1, [Define to indicate the $5 library])
       fi
    elif test ! -z "${$1_MANDATORY}";
    then



More information about the svn-commits mailing list