]> granicus.if.org Git - php/commitdiff
Linking directly against libc might result in unexpected behaviour.
authorSascha Schumann <sas@php.net>
Fri, 5 May 2000 12:17:41 +0000 (12:17 +0000)
committerSascha Schumann <sas@php.net>
Fri, 5 May 2000 12:17:41 +0000 (12:17 +0000)
We check for dlopen in libdl first, and check then whether dlopen exists.

Zend/Zend.m4

index 62b7adc43219d2a056e7e516a16e894ab43f2368..7d18cfcfbaae1e878941d935ff75ac5a65d86bca 100644 (file)
@@ -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 )