summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--acinclude.m46
1 files changed, 1 insertions, 5 deletions
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")
])
])