added <mysql.h> autoconf test.
authorLuke Leighton <lkcl@samba.org>
Tue, 2 Mar 1999 16:43:27 +0000 (16:43 +0000)
committerLuke Leighton <lkcl@samba.org>
Tue, 2 Mar 1999 16:43:27 +0000 (16:43 +0000)
(This used to be commit 511ef8a58ccfc04d0744f28753bb48d848851980)

source3/configure
source3/configure.developer
source3/configure.in
source3/include/config.h.in
source3/include/includes.h

index f3a7b5bce4ad9b9cf0b877d6235c4d6f68bb5206..57633fbafe1dd001e5a47372c0a39b80af722f72 100755 (executable)
@@ -44,8 +44,6 @@ ac_help="$ac_help
 ac_help="$ac_help
   --with-ssl     Include SSL support
   --without-ssl  Don't include SSL support (default)"
-ac_help="$ac_help
-  --with-sslinc=DIR Tells us where the SSL stuff is (default /usr/local/ssl)"
 ac_help="$ac_help
   --with-mmap     Include experimental MMAP support
   --without-mmap  Don't include MMAP support (default)"
@@ -1933,7 +1931,7 @@ else
 fi
 done
 
-for ac_hdr in sys/acl.h sys/cdefs.h glob.h
+for ac_hdr in sys/acl.h sys/cdefs.h glob.h mysql.h
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
@@ -8282,34 +8280,6 @@ if test "${with_ssl+set}" = set; then
 #define WITH_SSL 1
 EOF
 
-    CFLAGS="-I/usr/local/ssl/include $CFLAGS"
-
-    if test "${with_sslinc+set}" = set; then
-
-        withval="$with_sslinc"
-        case "$withval" in
-        yes|no)
-          echo "configure: warning: --with-sslinc called without argument - will
- use default" 1>&2
-          CFLAGS="-I/usr/local/ssl/include $CFLAGS"
-          LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
-          LIBS="-lssl -lcrypto $LIBS"
-        ;;
-        * )
-          CFLAGS="-I${withval}/include $CFLAGS"
-          LDFLAGS="-L${withval}/lib $LDFLAGS"
-          LIBS="-lssl -lcrypto $LIBS"
-        ;;
-        esac
-
-    else
-
-        CFLAGS="-I/usr/local/ssl/include $CFLAGS"
-        LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
-        LIBS="-lssl -lcrypto $LIBS"
-
-    fi
-
     ;;
   *)
     echo "$ac_t""no" 1>&6
index 7906511a16d724ab9e7931c8276c12478f37c925..e1fee89d46e3ff4f0108858c4b5c7ddc09a106e3 100755 (executable)
@@ -1,3 +1,3 @@
 #!/bin/sh
-export CFLAGS="-g -O2 -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align"
+export CFLAGS="-g -O2 -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align" -DDEBUG_PASSWORD
 ./configure
index 44982e5afb932e4f9768bb7a6de963a22060dddf..74685e1ef2566b8fb7e8183c3b19c186f312f7d2 100644 (file)
@@ -62,7 +62,7 @@ AC_CHECK_HEADERS(sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h)
 AC_CHECK_HEADERS(shadow.h netinet/tcp.h sys/security.h security/pam_appl.h)
 AC_CHECK_HEADERS(stropts.h poll.h readline.h history.h readline/readline.h)
 AC_CHECK_HEADERS(readline/history.h sys/capability.h syscall.h sys/syscall.h)
-AC_CHECK_HEADERS(sys/acl.h sys/cdefs.h glob.h)
+AC_CHECK_HEADERS(sys/acl.h sys/cdefs.h glob.h mysql.h)
 
 AC_CHECK_SIZEOF(int,cross)
 AC_CHECK_SIZEOF(long,cross)
index 44e7b08377cfcf093a0e8f095e5c4643768cd0ee..f2dcdd7765c77ab7ed5297d6bd36644027fd7522 100644 (file)
 /* Define if you have the <utime.h> header file.  */
 #undef HAVE_UTIME_H
 
+/* Define if you have the <mysql.h> header file.  */
+#undef HAVE_MYSQL_H
+
 /* Define if you have the dl library (-ldl).  */
 #undef HAVE_LIBDL
 
index 74aabc0b1f4b283d452ffe33a6c1316117223d10..46bb4d9e5c9f90af145c65338165442a40f706bf 100644 (file)
 #endif
 #endif /* HAVE_NETGROUP */
 
+#if defined(HAVE_MYSQL_H)
+#include <mysql.h>
+#endif
+
 #ifndef uchar
 #define uchar unsigned char
 #endif