]> granicus.if.org Git - php/commitdiff
New m4 macros should go into acinclude.m4.
authorSascha Schumann <sas@php.net>
Thu, 14 Dec 2000 17:29:38 +0000 (17:29 +0000)
committerSascha Schumann <sas@php.net>
Thu, 14 Dec 2000 17:29:38 +0000 (17:29 +0000)
acinclude.m4
configure.in

index 36a4102a40deba8ce168d0c5a7ce927d26565879..cf0d6a87d7e38521f44b9dfb93aca064c1b0f14f 100644 (file)
@@ -4,6 +4,43 @@ dnl This file contains local autoconf functions.
 
 sinclude(dynlib.m4)
 
+AC_DEFUN(PHP_SETUP_OPENSSL,[
+  if test "$PHP_OPENSSL" = "no"; then
+    PHP_OPENSSL="/usr/local/ssl /usr/local /usr /usr/local/openssl"
+  fi
+
+  for i in $PHP_OPENSSL; do
+    if test -r $i/include/openssl/evp.h; then
+      OPENSSL_DIR=$i
+      OPENSSL_INC=$i/include
+    fi
+  done
+
+  if test -z "$OPENSSL_DIR"; then
+    AC_MSG_ERROR(Cannot find OpenSSL's <evp.h>)
+  fi
+
+  old_CPPFLAGS=$CPPFLAGS
+  CPPFLAGS="-I$OPENSSL_INC"
+  AC_MSG_CHECKING(for OpenSSL version)
+  AC_EGREP_CPP(yes,[
+  #include <openssl/opensslv.h>
+  #if OPENSSL_VERSION_NUMBER >= 0x0090600fL
+  yes
+  #endif
+  ],[
+    AC_MSG_RESULT(>= 0.9.6)
+  ],[
+    AC_MSG_ERROR(OpenSSL version 0.9.6 or greater required.)
+  ])
+  CPPFLAGS=$old_CPPFLAGS
+    
+  AC_ADD_LIBPATH($OPENSSL_DIR/lib)
+  AC_ADD_LIBRARY(ssl)
+  AC_ADD_LIBRARY(crypto)
+  AC_ADD_INCLUDE($OPENSSL_INC)
+])
+
 dnl PHP_EVAL_LIBLINE(LINE, SHARED-LIBADD)
 dnl
 dnl Use this macro, if you need to add libraries and or library search
index 2ccfc50d1ca15fc4ec5e09b4d814fe54dcbab32c..ab578bc3b2c83ae62426f67c506758098cd03a40 100644 (file)
@@ -511,43 +511,6 @@ if test "$PHP_OPENSSL" = "yes"; then
   PHP_OPENSSL="/usr/local/ssl /usr/local /usr /usr/local/openssl"
 fi
 
-AC_DEFUN(PHP_SETUP_OPENSSL,[
-  if test "$PHP_OPENSSL" = "no"; then
-    PHP_OPENSSL="/usr/local/ssl /usr/local /usr /usr/local/openssl"
-  fi
-
-  for i in $PHP_OPENSSL; do
-    if test -r $i/include/openssl/evp.h; then
-      OPENSSL_DIR=$i
-      OPENSSL_INC=$i/include
-    fi
-  done
-
-  if test -z "$OPENSSL_DIR"; then
-    AC_MSG_ERROR(Cannot find OpenSSL's <evp.h>)
-  fi
-
-  old_CPPFLAGS=$CPPFLAGS
-  CPPFLAGS="-I$OPENSSL_INC"
-  AC_MSG_CHECKING(for OpenSSL version)
-  AC_EGREP_CPP(yes,[
-  #include <openssl/opensslv.h>
-  #if OPENSSL_VERSION_NUMBER >= 0x0090600fL
-  yes
-  #endif
-  ],[
-    AC_MSG_RESULT(>= 0.9.6)
-  ],[
-    AC_MSG_ERROR(OpenSSL version 0.9.6 or greater required.)
-  ])
-  CPPFLAGS=$old_CPPFLAGS
-    
-  AC_ADD_LIBPATH($OPENSSL_DIR/lib)
-  AC_ADD_LIBRARY(ssl)
-  AC_ADD_LIBRARY(crypto)
-  AC_ADD_INCLUDE($OPENSSL_INC)
-])
-
 if test "$PHP_OPENSSL" != "no"; then
   PHP_SETUP_OPENSSL
 fi