]> granicus.if.org Git - php/commitdiff
Let m4 decide what to do
authorSascha Schumann <sas@php.net>
Thu, 30 Dec 1999 14:48:26 +0000 (14:48 +0000)
committerSascha Schumann <sas@php.net>
Thu, 30 Dec 1999 14:48:26 +0000 (14:48 +0000)
acinclude.m4

index 08305faf83f524fa19dbac89460c895559433672..188659a5550f8cae3a3fa24bc17f23b7989fbcbf 100644 (file)
@@ -243,11 +243,7 @@ dnl add a library to the link line
 dnl
 AC_DEFUN(AC_ADD_LIBRARY,[
   AC_PHP_ONCE(LIBRARY, $1, [
-    if test -z "$2"; then
-      LIBS="-l$1 $LIBS"
-    else
-      LIBS="$LIBS -l$1"
-    fi
+    ifelse($#, 1, LIBS="-l$1 $LIBS", LIBS="$LIBS -l$1")
   ])
 ])