Index: config-scripts/cups-ssl.m4 =================================================================== --- config-scripts/cups-ssl.m4 (revision 10476) +++ config-scripts/cups-ssl.m4 (working copy) @@ -124,7 +124,7 @@ dnl Check for the OpenSSL library last... if test $have_ssl = 0 -a "x$enable_openssl" != "xno"; then - AC_CHECK_HEADER(openssl/ssl.h, + AC_CHECK_HEADER(openssl/ssl.h,[ dnl Save the current libraries so the crypto stuff isn't always dnl included... SAVELIBS="$LIBS" @@ -149,14 +149,16 @@ $libcrypto) if test "x${SSLLIBS}" != "x"; then - LIBS="$SAVELIBS $SSLLIBS" - AC_CHECK_FUNC(SSL_set_tlsext_host_name, - AC_DEFINE(HAVE_SSL_SET_TLSEXT_HOST_NAME)) break fi done - LIBS="$SAVELIBS") + if test "x${SSLLIBS}" != "x"; then + LIBS="$SAVELIBS $SSLLIBS" + AC_CHECK_FUNCS(SSL_set_tlsext_host_name) + fi + + LIBS="$SAVELIBS"]) fi fi