@@ -653,6 +653,7 @@ LIBOBJS
653
653
UUID_LIBS
654
654
LDAP_LIBS_BE
655
655
LDAP_LIBS_FE
656
+ with_ssl
656
657
PTHREAD_CFLAGS
657
658
PTHREAD_LIBS
658
659
PTHREAD_CC
@@ -709,7 +710,6 @@ with_uuid
709
710
with_readline
710
711
with_systemd
711
712
with_selinux
712
- with_openssl
713
713
with_ldap
714
714
with_krb_srvnam
715
715
krb_srvtab
@@ -854,7 +854,6 @@ with_pam
854
854
with_bsd_auth
855
855
with_ldap
856
856
with_bonjour
857
- with_openssl
858
857
with_selinux
859
858
with_systemd
860
859
with_readline
@@ -866,6 +865,8 @@ with_libxslt
866
865
with_system_tzdata
867
866
with_zlib
868
867
with_gnu_ld
868
+ with_ssl
869
+ with_openssl
869
870
enable_largefile
870
871
'
871
872
ac_precious_vars='build_alias
@@ -1556,7 +1557,6 @@ Optional Packages:
1556
1557
--with-bsd-auth build with BSD Authentication support
1557
1558
--with-ldap build with LDAP support
1558
1559
--with-bonjour build with Bonjour support
1559
- --with-openssl build with OpenSSL support
1560
1560
--with-selinux build with SELinux support
1561
1561
--with-systemd build with systemd support
1562
1562
--without-readline do not use GNU Readline nor BSD Libedit for editing
@@ -1570,6 +1570,8 @@ Optional Packages:
1570
1570
use system time zone data in DIR
1571
1571
--without-zlib do not use Zlib
1572
1572
--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
1573
1575
1574
1576
Some influential environment variables:
1575
1577
CC C compiler command
@@ -8070,41 +8072,6 @@ fi
8070
8072
$as_echo "$with_bonjour" >&6; }
8071
8073
8072
8074
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
-
8108
8075
#
8109
8076
# SELinux
8110
8077
#
@@ -12174,7 +12141,64 @@ fi
12174
12141
fi
12175
12142
fi
12176
12143
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
+
12177
12197
if test "$with_openssl" = yes ; then
12198
+ with_ssl=openssl
12199
+ fi
12200
+
12201
+ if test "$with_ssl" = openssl ; then
12178
12202
# Minimum required OpenSSL version is 1.0.1
12179
12203
12180
12204
$as_echo "#define OPENSSL_API_COMPAT 0x10001000L" >>confdefs.h
@@ -12435,8 +12459,14 @@ _ACEOF
12435
12459
fi
12436
12460
done
12437
12461
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
12438
12467
fi
12439
12468
12469
+
12440
12470
if test "$with_pam" = yes ; then
12441
12471
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
12442
12472
$as_echo_n "checking for pam_start in -lpam... " >&6; }
@@ -13322,7 +13352,7 @@ done
13322
13352
13323
13353
fi
13324
13354
13325
- if test "$with_openssl " = yes ; then
13355
+ if test "$with_ssl " = openssl ; then
13326
13356
ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
13327
13357
if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
13328
13358
@@ -18098,7 +18128,7 @@ fi
18098
18128
# will be used.
18099
18129
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which random number source to use" >&5
18100
18130
$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
18102
18132
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL" >&5
18103
18133
$as_echo "OpenSSL" >&6; }
18104
18134
elif test x"$PORTNAME" = x"win32" ; then
0 commit comments