diff options
| author | Sascha Schumann <sas@php.net> | 2000-05-05 12:17:41 +0000 |
|---|---|---|
| committer | Sascha Schumann <sas@php.net> | 2000-05-05 12:17:41 +0000 |
| commit | 788feca4ae6dbd8d91e3fb640e443dc78c3ec994 (patch) | |
| tree | 6b5d4c8e74a6177b7d72cd06454f7a3f79bbd676 | |
| parent | 86d6389db4fa128a544a7e0f46b0f3c31d854511 (diff) | |
| download | php-git-788feca4ae6dbd8d91e3fb640e443dc78c3ec994.tar.gz | |
Linking directly against libc might result in unexpected behaviour.
We check for dlopen in libdl first, and check then whether dlopen exists.
| -rw-r--r-- | Zend/Zend.m4 | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/Zend/Zend.m4 b/Zend/Zend.m4 index 62b7adc432..7d18cfcfba 100644 --- a/Zend/Zend.m4 +++ b/Zend/Zend.m4 @@ -50,13 +50,8 @@ dlfcn.h) AC_TYPE_SIZE_T AC_TYPE_SIGNAL -AC_CHECK_LIB(c, dlopen, [ - # fake it - AC_DEFINE(HAVE_LIBDL) ], [ - AC_CHECK_LIB(dl, dlopen, [ - LIBS="-ldl $LIBS" - AC_DEFINE(HAVE_LIBDL) ], []) ]) - +AC_CHECK_LIB(dl, dlopen, [LIBS="-ldl $LIBS"]) +AC_CHECK_FUNC(dlopen,[AC_DEFINE(HAVE_LIBDL, 1,[ ])]) dnl This is required for QNX and may be some BSD derived systems AC_CHECK_TYPE( uint, unsigned int ) |
