@@ -653,6 +653,7 @@ LIBOBJS
653653UUID_LIBS
654654LDAP_LIBS_BE
655655LDAP_LIBS_FE
656+ with_ssl
656657PTHREAD_CFLAGS
657658PTHREAD_LIBS
658659PTHREAD_CC
@@ -709,7 +710,6 @@ with_uuid
709710with_readline
710711with_systemd
711712with_selinux
712- with_openssl
713713with_ldap
714714with_krb_srvnam
715715krb_srvtab
@@ -854,7 +854,6 @@ with_pam
854854with_bsd_auth
855855with_ldap
856856with_bonjour
857- with_openssl
858857with_selinux
859858with_systemd
860859with_readline
@@ -866,6 +865,8 @@ with_libxslt
866865with_system_tzdata
867866with_zlib
868867with_gnu_ld
868+ with_ssl
869+ with_openssl
869870enable_largefile
870871'
871872 ac_precious_vars='build_alias
@@ -1556,7 +1557,6 @@ Optional Packages:
15561557 --with-bsd-auth build with BSD Authentication support
15571558 --with-ldap build with LDAP support
15581559 --with-bonjour build with Bonjour support
1559- --with-openssl build with OpenSSL support
15601560 --with-selinux build with SELinux support
15611561 --with-systemd build with systemd support
15621562 --without-readline do not use GNU Readline nor BSD Libedit for editing
@@ -1570,6 +1570,8 @@ Optional Packages:
15701570 use system time zone data in DIR
15711571 --without-zlib do not use Zlib
15721572 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1573+ --with-ssl=LIB use LIB for SSL/TLS support (openssl)
1574+ --with-openssl obsolete spelling of --with-ssl=openssl
15731575
15741576Some influential environment variables:
15751577 CC C compiler command
@@ -8070,41 +8072,6 @@ fi
80708072$as_echo "$with_bonjour" >&6; }
80718073
80728074
8073- #
8074- # OpenSSL
8075- #
8076- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with OpenSSL support" >&5
8077- $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
8078-
8079-
8080-
8081- # Check whether --with-openssl was given.
8082- if test "${with_openssl+set}" = set; then :
8083- withval=$with_openssl;
8084- case $withval in
8085- yes)
8086-
8087- $as_echo "#define USE_OPENSSL 1" >>confdefs.h
8088-
8089- ;;
8090- no)
8091- :
8092- ;;
8093- *)
8094- as_fn_error $? "no argument expected for --with-openssl option" "$LINENO" 5
8095- ;;
8096- esac
8097-
8098- else
8099- with_openssl=no
8100-
8101- fi
8102-
8103-
8104- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl" >&5
8105- $as_echo "$with_openssl" >&6; }
8106-
8107-
81088075#
81098076# SELinux
81108077#
@@ -12174,7 +12141,64 @@ fi
1217412141 fi
1217512142fi
1217612143
12144+ #
12145+ # SSL Library
12146+ #
12147+ # There is currently only one supported SSL/TLS library: OpenSSL.
12148+ #
12149+
12150+
12151+
12152+ # Check whether --with-ssl was given.
12153+ if test "${with_ssl+set}" = set; then :
12154+ withval=$with_ssl;
12155+ case $withval in
12156+ yes)
12157+ as_fn_error $? "argument required for --with-ssl option" "$LINENO" 5
12158+ ;;
12159+ no)
12160+ as_fn_error $? "argument required for --with-ssl option" "$LINENO" 5
12161+ ;;
12162+ *)
12163+
12164+ ;;
12165+ esac
12166+
12167+ fi
12168+
12169+
12170+ if test x"$with_ssl" = x"" ; then
12171+ with_ssl=no
12172+ fi
12173+
12174+
12175+
12176+ # Check whether --with-openssl was given.
12177+ if test "${with_openssl+set}" = set; then :
12178+ withval=$with_openssl;
12179+ case $withval in
12180+ yes)
12181+ :
12182+ ;;
12183+ no)
12184+ :
12185+ ;;
12186+ *)
12187+ as_fn_error $? "no argument expected for --with-openssl option" "$LINENO" 5
12188+ ;;
12189+ esac
12190+
12191+ else
12192+ with_openssl=no
12193+
12194+ fi
12195+
12196+
1217712197if test "$with_openssl" = yes ; then
12198+ with_ssl=openssl
12199+ fi
12200+
12201+ if test "$with_ssl" = openssl ; then
1217812202 # Minimum required OpenSSL version is 1.0.1
1217912203
1218012204$as_echo "#define OPENSSL_API_COMPAT 0x10001000L" >>confdefs.h
@@ -12435,8 +12459,14 @@ _ACEOF
1243512459fi
1243612460done
1243712461
12462+
12463+ $as_echo "#define USE_OPENSSL 1" >>confdefs.h
12464+
12465+ elif test "$with_ssl" != no ; then
12466+ as_fn_error $? "--with-ssl must specify openssl" "$LINENO" 5
1243812467fi
1243912468
12469+
1244012470if test "$with_pam" = yes ; then
1244112471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
1244212472$as_echo_n "checking for pam_start in -lpam... " >&6; }
@@ -13322,7 +13352,7 @@ done
1332213352
1332313353fi
1332413354
13325- if test "$with_openssl " = yes ; then
13355+ if test "$with_ssl " = openssl ; then
1332613356 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
1332713357if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
1332813358
@@ -18098,7 +18128,7 @@ fi
1809818128# will be used.
1809918129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which random number source to use" >&5
1810018130$as_echo_n "checking which random number source to use... " >&6; }
18101- if test x"$with_openssl " = x"yes " ; then
18131+ if test x"$with_ssl " = x"openssl " ; then
1810218132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL" >&5
1810318133$as_echo "OpenSSL" >&6; }
1810418134elif test x"$PORTNAME" = x"win32" ; then
0 commit comments