]> granicus.if.org Git - php/commitdiff
Module work
authorRasmus Lerdorf <rasmus@php.net>
Fri, 23 Apr 1999 03:28:47 +0000 (03:28 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Fri, 23 Apr 1999 03:28:47 +0000 (03:28 +0000)
ext/ldap/ldap.c
ext/mysql/config.m4
ext/snmp/config.m4

index b4bc182982da12b9e854c080ae8769ff8a87c25b..2d0a470fd9b1b939be9d743b7d5b0f9669e4db08 100644 (file)
@@ -49,15 +49,8 @@ void *ldap_mutex;
 
 #if HAVE_LDAP
 
-#if COMPILE_DL
-#if PHP_31
-#include "ext/phpdl.h"
-#include "ext/standard/dl.h"
-#else
 #include "dl/phpdl.h"
-#include "functions/dl.h"
-#endif
-#endif
+#include "ext/standard/dl.h"
 #include "php3_ldap.h"
 
 #if WIN32|WINNT
@@ -73,11 +66,7 @@ void *ldap_mutex;
 #define __STDC__ 1
 #endif
 
-#if PHP_31
 #include "ext/standard/php3_string.h"
-#else
-#include "functions/php3_string.h"
-#endif
 
 
 #if THREAD_SAFE & HAVE_NSLDAP
@@ -268,7 +257,7 @@ int php3_minit_ldap(INIT_FUNC_ARGS)
        return SUCCESS;
 }
 
-int php3_mshutdown_ldap(void){
+int php3_mshutdown_ldap(SHUTDOWN_FUNC_ARGS) {
 #ifdef THREAD_SAFE
        LDAP_TLS_VARS;
        PHP3_TLS_THREAD_FREE(php3_ldap_module);
index a6ba195a0e19e6d84294d0dc76fd1e14927786a7..d8c826bfe66d526ba78cc646ebfb19c9629dc854 100644 (file)
@@ -3,13 +3,28 @@ dnl $Id$
 AC_MSG_CHECKING(for MySQL support)
 AC_ARG_WITH(mysql,
 [  --with-mysql[=DIR]      Include MySQL support.  DIR is the MySQL base
-                          install directory, defaults to /usr/local.],
+                          install directory, defaults to searching through
+                          a number of common places for the MySQL files.],
 [
   if test "$withval" != "no"; then
     if test "$withval" = "yes"; then
-      MYSQL_INCDIR=/usr/local/include/mysql
-      MYSQL_LIBDIR=/usr/local/lib/mysql
-    else
+               if test -f /usr/include/mysql/mysql.h; then
+                       MYSQL_INCDIR=/usr/include/mysql
+                       MYSQL_LIBDIR=/usr/lib/mysql
+               elif test -f /usr/include/mysql.h; then
+                       MYSQL_INCDIR=/usr/include
+                       MYSQL_LIBDIR=/usr/lib
+               elif test -f /usr/local/include/mysql/mysql.h; then
+                       MYSQL_INCDIR=/usr/local/include/mysql
+                       MYSQL_LIBDIR=/usr/local/lib/mysql
+               elif test -f /usr/local/include/mysql.h; then
+                       MYSQL_INCDIR=/usr/local/include
+                       MYSQL_LIBDIR=/usr/local/lib  
+               else
+                       AC_MSG_RESULT(no)
+                       AC_MSG_ERROR(Invalid MySQL directory - unable to find mysql.h)
+               fi   
+       else
       if test -f $withval/include/mysql/mysql.h; then
         MYSQL_INCDIR=$withval/include/mysql
         MYSQL_LIBDIR=$withval/lib/mysql
index 928dad4187d81d944af875d488797bc57cb92d38..e7a5fab7f53669410d95089d4db33645fa49c09f 100644 (file)
@@ -3,13 +3,16 @@ dnl $Id$
 AC_MSG_CHECKING(for SNMP support)
 AC_ARG_WITH(snmp,
 [  --with-snmp[=DIR]       Include SNMP support.  DIR is the SNMP base
-                          install directory, defaults to /usr/local],
+                          install directory, defaults to searching through
+                          a number of common locations for the snmp install.],
 [
   if test "$withval" != "no"; then
     if test "$withval" = "yes"; then
       SNMP_INCDIR=/usr/local/include
-      test -d /usr/local/include/ucd-snmp && SNMP_INCDIR=/usr/local/include/ucd-snmp
       SNMP_LIBDIR=/usr/local/lib
+      test -d /usr/local/include/ucd-snmp && SNMP_INCDIR=/usr/local/include/ucd-snmp
+         test -d /usr/include/ucd-snmp && SNMP_INCDIR=/usr/include/ucd-snmp
+         test -f /usr/lib/libsnmp.a && SNMP_LIBDIR=/usr/lib
     else
       SNMP_INCDIR=$withval/include
       test -d $withval/include/ucd-snmp && SNMP_INCDIR=$withval/include/ucd-snmp