# Check whether --enable-ssl was given. if test "${enable_ssl+set}" = set; then enableval=$enable_ssl; else enable_ssl="yes" fi # Check whether --with-ssl was given. if test "${with_ssl+set}" = set; then withval=$with_ssl; else withval="" fi if test "${enable_ssl}" = "yes"; then { echo "$as_me:$LINENO: checking if ssl is wanted" >&5 echo $ECHO_N "checking if ssl is wanted... $ECHO_C" >&6; } # AC_ARG_WITH(ssl, # [ --with-ssl enable ssl [will check /usr/local/ssl # /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr /usr/sfw ] # ], #[ AC_MSG_RESULT(yes) for dir in $withval /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr /usr/sfw; do ssldir="$dir" if test -f "$dir/include/openssl/ssl.h"; then found_ssl="yes"; SSL_CFLAGS="$CFLAGS -I$ssldir/include/openssl -DHAVE_SSL"; SSL_CXXFLAGS="$CXXFLAGS -I$ssldir/include/openssl -DHAVE_SSL"; break; fi if test -f "$dir/include/ssl.h"; then found_ssl="yes"; SSL_CFLAGS="-I$ssldir/include/ -DHAVE_SSL"; SSL_CXXFLAGS="-I$ssldir/include/ -DHAVE_SSL"; break fi done if test x_$found_ssl != x_yes; then { { echo "$as_me:$LINENO: error: Cannot find ssl libraries - these are required. Please install the openssl-devel package" >&5 echo "$as_me: error: Cannot find ssl libraries - these are required. Please install the openssl-devel package" >&2;} { (exit 1); exit 1; }; } else printf "OpenSSL found in $ssldir\n"; SSL_LIBS="-L$ssldir/lib -lssl -lcrypto"; HAVE_SSL=yes fi #], #[ # AC_MSG_RESULT(no) #]) fi