From: Sascha Schumann Date: Sun, 5 Dec 1999 23:10:51 +0000 (+0000) Subject: Allow AC_ADD_LIBRARY to append library X-Git-Tag: PRE_RETURN_REF_PATCH~45 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=420b11a0fd371dcffe8373b76ed991263418f734;p=php Allow AC_ADD_LIBRARY to append library --- diff --git a/acinclude.m4 b/acinclude.m4 index ce8e69937a..47f70a3a8f 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -116,13 +116,17 @@ AC_DEFUN(AC_ADD_INCLUDE,[ ]) dnl -dnl AC_ADD_LIBRARY(library) +dnl AC_ADD_LIBRARY(library[, append]) dnl dnl add a library to the link line dnl AC_DEFUN(AC_ADD_LIBRARY,[ AC_PHP_ONCE(LIBRARY, $1, [ - LIBS="-l$1 $LIBS" + if test -z "$2"; then + LIBS="-l$1 $LIBS" + else + LIBS="$LIBS -l$1" + fi ]) ])