diff options
author | Sascha Schumann <sas@php.net> | 2002-10-24 12:21:07 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2002-10-24 12:21:07 +0000 |
commit | 6bf422d62e67d53c334e3818e0f9a8887186a5c0 (patch) | |
tree | 05b55dd912ef18d5e90610e258a43186fa9370d3 /acinclude.m4 | |
parent | 938ba73be7001f6a4fb522c9cdbc1633611fce01 (diff) | |
download | php-git-6bf422d62e67d53c334e3818e0f9a8887186a5c0.tar.gz |
Make PHP compile out-of-the-box with uClibc
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 50e5e5e746..47f2c242b4 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1681,6 +1681,13 @@ AC_DEFUN([PHP_CHECK_FUNC_LIB],[ ]) if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -l$2" + AC_TRY_RUN([main() { return (0); }],[found=yes],[found=no],[found=no]) + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then PHP_ADD_LIBRARY($2) PHP_DEF_HAVE($1) PHP_DEF_HAVE(lib$2) |