X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=config9.m4;h=686b5ea286aaaca9349956f228a55c45eeef4457;hp=85a7ec4ceb3e7b5eee9668015475e005a94a6ffa;hb=fd4d4b228d525f2e9b065d47516658866ad2f1eb;hpb=4ffb062b7475b0d7bd4737a959bebd9f557d8a95 diff --git a/config9.m4 b/config9.m4 index 85a7ec4..686b5ea 100644 --- a/config9.m4 +++ b/config9.m4 @@ -68,7 +68,6 @@ if test "$PHP_HTTP" != "no"; then AC_DEFUN([HTTP_HAVE_PHP_EXT], [ extname=$1 haveext=$[PHP_]translit($1,a-z_-,A-Z__) - AC_MSG_CHECKING([for ext/$extname support]) if test -x "$PHP_EXECUTABLE"; then grepext=`$PHP_EXECUTABLE -m | $EGREP ^$extname\$` @@ -96,13 +95,11 @@ if test "$PHP_HTTP" != "no"; then dnl ---- dnl STDC dnl ---- + AC_TYPE_OFF_T + dnl getdomainname() is declared in netdb.h on some platforms: AIX, OSF AC_CHECK_HEADERS([netdb.h unistd.h]) PHP_CHECK_FUNC(gethostname, nsl) PHP_CHECK_FUNC(getdomainname, nsl) - PHP_CHECK_FUNC(getservbyport, nsl) - PHP_CHECK_FUNC(getservbyport_r, nsl) - PHP_CHECK_FUNC(getservbyname, nsl) - PHP_CHECK_FUNC(getservbyname_r, nsl) dnl ---- dnl ZLIB @@ -193,7 +190,7 @@ dnl ---- AC_MSG_CHECKING([for SSL support in libcurl]) CURL_SSL=`$CURL_CONFIG --feature | $EGREP SSL` - CURL_SSL_LIBS=() + CURL_SSL_LIBS="" if test "$CURL_SSL" = "SSL"; then AC_MSG_RESULT([yes]) AC_DEFINE([PHP_HTTP_HAVE_SSL], [1], [ ]) @@ -215,7 +212,7 @@ dnl ---- AC_CHECK_HEADER([openssl/ssl.h], [ AC_CHECK_HEADER([openssl/crypto.h], [ AC_DEFINE([PHP_HTTP_HAVE_OPENSSL], [1], [ ]) - CURL_SSL_LIBS=(ssl crypto) + CURL_SSL_LIBS="ssl crypto" ]) ]) ], [ @@ -241,7 +238,7 @@ dnl ---- AC_CHECK_HEADER([gnutls.h], [ AC_CHECK_HEADER([gcrypt.h], [ AC_DEFINE([PHP_HTTP_HAVE_GNUTLS], [1], [ ]) - CURL_SSL_LIBS=(gnutls gcrypt) + CURL_SSL_LIBS="gnutls gcrypt" ]) ]) ], [ @@ -277,9 +274,11 @@ dnl ---- CFLAGS="$save_CFLAGS" LDFLAGS="$save_LDFLAGS" - for CURL_SSL_LIB in "${CURL_SSL_LIBS[[@]]}"; do - PHP_ADD_LIBRARY_WITH_PATH([$CURL_SSL_LIB], $CURL_DIR/$PHP_LIBDIR, PHP_HTTP_SHARED_LIBADD) - done + if test -n "$CURL_SSL_LIBS"; then + for CURL_SSL_LIB in $CURL_SSL_LIBS; do + PHP_ADD_LIBRARY_WITH_PATH([$CURL_SSL_LIB], $CURL_DIR/$PHP_LIBDIR, PHP_HTTP_SHARED_LIBADD) + done + fi dnl end compile tests @@ -331,7 +330,7 @@ dnl ---- AC_MSG_CHECKING([for libevent version, roughly]) if test -f "$EVENT_DIR/include/event2/event.h"; then - EVENT_VER="`$EGREP _EVENT_VERSION $EVENT_DIR/include/event2/event-config.h | $AWK '{print $3}'`" + EVENT_VER="`$AWK '/_EVENT_VERSION/ {gsub(/\"/,\"\",$3); print $3}' < $EVENT_DIR/include/event2/event-config.h`" AC_DEFINE([PHP_HTTP_HAVE_EVENT2], [1], [ ]) else AC_DEFINE([PHP_HTTP_HAVE_EVENT2], [0], [ ]) @@ -379,7 +378,7 @@ dnl ---- PHP_ADD_INCLUDE([$HTTP_EXT_RAPHF_INCDIR]) fi ], [ - AC_MSG_ERROR([Please install pecl/raphf]) + AC_MSG_ERROR([Please install pecl/raphf and activate extension=raphf.$SHLIB_DL_SUFFIX_NAME in your php.ini]) ]) dnl ---- @@ -407,7 +406,7 @@ dnl ---- PHP_ADD_INCLUDE([$HTTP_EXT_PROPRO_INCDIR]) fi ], [ - AC_MSG_ERROR([Please install pecl/propro]) + AC_MSG_ERROR([Please install pecl/propro and activate extension=propro.$SHLIB_DL_SUFFIX_NAME in your php.ini]) ]) PHP_ARG_WITH([http-shared-deps], [whether to depend on extensions which have been built shared],