--- config.m4 2003-02-27 10:13:21.000000000 -0800 +++ /usr/src/phpdev/php5-200304282130/ext/openssl/config.m4 2003-04-28 14:19:19.000000000 -0700 @@ -2,8 +2,41 @@ dnl $Id: config.m4,v 1.5 2003/02/27 17:43:36 wez Exp $ dnl +AC_DEFUN(PHP_SSL_KRB_CHK, [ + AC_ARG_WITH(kerberos, + [ --with-kerberos[=DIR] OpenSSL: Include Kerberos support. DIR is the Kerberos install dir.],[ + PHP_KERBEROS=$withval + ],[ + PHP_KERBEROS=no + ]) + + if test "$PHP_KERBEROS" != "no"; then + if test "$PHP_KERBEROS" = "yes"; then + SEARCH_PATHS="/usr/kerberos /usr/local /usr" + else + SEARCH_PATHS=$PHP_KERBEROS + fi + + for i in $SEARCH_PATHS; do + if test -f $i/include/krb5.h; then + PHP_KERBEROS_DIR=$i + break + fi + done + + if test -z "$PHP_KERBEROS_DIR"; then + AC_MSG_ERROR([Kerberos libraries not found. + Check the path given to --with-kerberos (if no path is given, searches in /usr/kerberos, /usr/local and /usr ) + ]) + else + PHP_ADD_INCLUDE($PHP_KERBEROS_DIR/include) + fi + fi +]) + if test "$PHP_OPENSSL" != "no"; then PHP_NEW_EXTENSION(openssl, openssl.c xp_ssl.c, $ext_openssl_shared) OPENSSL_SHARED_LIBADD="-lcrypto -lssl" PHP_SUBST(OPENSSL_SHARED_LIBADD) AC_DEFINE(HAVE_OPENSSL_EXT,1,[ ]) + PHP_SSL_KRB_CHK fi