diff options
author | foobar <sniper@php.net> | 2001-09-05 13:18:09 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2001-09-05 13:18:09 +0000 |
commit | 032b2631292008146b3a9c779f5dfc717a9ec82d (patch) | |
tree | 65977d797f6e0237a557a80b24a841871caa8e54 /acinclude.m4 | |
parent | d082fb373d4a2b1cdd336cab5bf4ca574803cdfb (diff) | |
download | php-git-032b2631292008146b3a9c779f5dfc717a9ec82d.tar.gz |
Fixes commit / link problems with certain compilers.
# Please use PHP_CHECK_LIBRARY() always instead of AC_CHECK_LIB
# if you need to pass extra libs/libpaths to the test.
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index fc6f41e82f..771f48e55f 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1122,3 +1122,22 @@ AC_DEFUN(PHP_FOPENCOOKIE,[ fi ]) + + +dnl +dnl PHP_CHECK_LIBRARY(library, function [, action-found [, action-not-found [, extra-libs]]]) +dnl +dnl Wrapper for AC_CHECK_LIB +dnl +AC_DEFUN(PHP_CHECK_LIBRARY, [ + save_old_LDFLAGS=$LDFLAGS + LDFLAGS="$5 $LDFLAGS" + AC_CHECK_LIB([$1],[$2],[ + LDFLAGS=$save_old_LDFLAGS + $3 + ],[ + LDFLAGS=$save_old_LDFLAGS + $4 + ])dnl +]) + |