From: Sascha Schumann Date: Thu, 30 Dec 1999 14:48:26 +0000 (+0000) Subject: Let m4 decide what to do X-Git-Tag: BEFORE_PRE_SHUTDOWN_REVERSE_PATCH~121 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=afe0e5601bea9bb2929482e6a6c2f91712f59ca2;p=php Let m4 decide what to do --- diff --git a/acinclude.m4 b/acinclude.m4 index 08305faf83..188659a555 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -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") ]) ])