configure.ac (180740) | configure.ac (180744) |
---|---|
1# $Id: configure.ac,v 1.372 2007/03/05 00:51:27 djm Exp $ | 1# $Id: configure.ac,v 1.383 2007/08/10 04:36:12 dtucker Exp $ |
2# 3# Copyright (c) 1999-2004 Damien Miller 4# 5# Permission to use, copy, modify, and distribute this software for any 6# purpose with or without fee is hereby granted, provided that the above 7# copyright notice and this permission notice appear in all copies. 8# 9# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 17AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org) | 2# 3# Copyright (c) 1999-2004 Damien Miller 4# 5# Permission to use, copy, modify, and distribute this software for any 6# purpose with or without fee is hereby granted, provided that the above 7# copyright notice and this permission notice appear in all copies. 8# 9# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 17AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org) |
18AC_REVISION($Revision: 1.372 $) | 18AC_REVISION($Revision: 1.383 $) |
19AC_CONFIG_SRCDIR([ssh.c]) 20 21AC_CONFIG_HEADER(config.h) 22AC_PROG_CC 23AC_CANONICAL_HOST 24AC_C_BIGENDIAN 25 26# Checks for programs. --- 62 unchanged lines hidden (view full) --- 89AC_C_INLINE 90 91AC_CHECK_DECL(LLONG_MAX, have_llong_max=1, , [#include <limits.h>]) 92 93if test "$GCC" = "yes" || test "$GCC" = "egcs"; then 94 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized" 95 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'` 96 case $GCC_VER in | 19AC_CONFIG_SRCDIR([ssh.c]) 20 21AC_CONFIG_HEADER(config.h) 22AC_PROG_CC 23AC_CANONICAL_HOST 24AC_C_BIGENDIAN 25 26# Checks for programs. --- 62 unchanged lines hidden (view full) --- 89AC_C_INLINE 90 91AC_CHECK_DECL(LLONG_MAX, have_llong_max=1, , [#include <limits.h>]) 92 93if test "$GCC" = "yes" || test "$GCC" = "egcs"; then 94 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized" 95 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'` 96 case $GCC_VER in |
97 1.*) ;; 98 2.8* | 2.9*) CFLAGS="$CFLAGS -Wsign-compare" ;; 99 2.*) ;; | 97 1.*) no_attrib_nonnull=1 ;; 98 2.8* | 2.9*) 99 CFLAGS="$CFLAGS -Wsign-compare" 100 no_attrib_nonnull=1 101 ;; 102 2.*) no_attrib_nonnull=1 ;; |
100 3.*) CFLAGS="$CFLAGS -Wsign-compare" ;; 101 4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign" ;; 102 *) ;; 103 esac 104 105 if test -z "$have_llong_max"; then 106 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes 107 unset ac_cv_have_decl_LLONG_MAX 108 saved_CFLAGS="$CFLAGS" 109 CFLAGS="$CFLAGS -std=gnu99" 110 AC_CHECK_DECL(LLONG_MAX, 111 [have_llong_max=1], 112 [CFLAGS="$saved_CFLAGS"], 113 [#include <limits.h>] 114 ) 115 fi 116fi 117 | 103 3.*) CFLAGS="$CFLAGS -Wsign-compare" ;; 104 4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign" ;; 105 *) ;; 106 esac 107 108 if test -z "$have_llong_max"; then 109 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes 110 unset ac_cv_have_decl_LLONG_MAX 111 saved_CFLAGS="$CFLAGS" 112 CFLAGS="$CFLAGS -std=gnu99" 113 AC_CHECK_DECL(LLONG_MAX, 114 [have_llong_max=1], 115 [CFLAGS="$saved_CFLAGS"], 116 [#include <limits.h>] 117 ) 118 fi 119fi 120 |
121if test "x$no_attrib_nonnull" != "x1" ; then 122 AC_DEFINE(HAVE_ATTRIBUTE__NONNULL__, 1, [Have attribute nonnull]) 123fi 124 |
|
118AC_ARG_WITH(rpath, 119 [ --without-rpath Disable auto-added -R linker paths], 120 [ 121 if test "x$withval" = "xno" ; then 122 need_dash_r="" 123 fi 124 if test "x$withval" = "xyes" ; then 125 need_dash_r=1 --- 67 unchanged lines hidden (view full) --- 193 login.h \ 194 maillock.h \ 195 ndir.h \ 196 net/if_tun.h \ 197 netdb.h \ 198 netgroup.h \ 199 pam/pam_appl.h \ 200 paths.h \ | 125AC_ARG_WITH(rpath, 126 [ --without-rpath Disable auto-added -R linker paths], 127 [ 128 if test "x$withval" = "xno" ; then 129 need_dash_r="" 130 fi 131 if test "x$withval" = "xyes" ; then 132 need_dash_r=1 --- 67 unchanged lines hidden (view full) --- 200 login.h \ 201 maillock.h \ 202 ndir.h \ 203 net/if_tun.h \ 204 netdb.h \ 205 netgroup.h \ 206 pam/pam_appl.h \ 207 paths.h \ |
208 poll.h \ |
|
201 pty.h \ 202 readpassphrase.h \ 203 rpc/types.h \ 204 security/pam_appl.h \ 205 sha2.h \ 206 shadow.h \ 207 stddef.h \ 208 stdint.h \ --- 15 unchanged lines hidden (view full) --- 224 sys/strtio.h \ 225 sys/sysmacros.h \ 226 sys/time.h \ 227 sys/timers.h \ 228 sys/un.h \ 229 time.h \ 230 tmpdir.h \ 231 ttyent.h \ | 209 pty.h \ 210 readpassphrase.h \ 211 rpc/types.h \ 212 security/pam_appl.h \ 213 sha2.h \ 214 shadow.h \ 215 stddef.h \ 216 stdint.h \ --- 15 unchanged lines hidden (view full) --- 232 sys/strtio.h \ 233 sys/sysmacros.h \ 234 sys/time.h \ 235 sys/timers.h \ 236 sys/un.h \ 237 time.h \ 238 tmpdir.h \ 239 ttyent.h \ |
240 ucred.h \ |
|
232 unistd.h \ 233 usersec.h \ 234 util.h \ 235 utime.h \ 236 utmp.h \ 237 utmpx.h \ 238 vis.h \ 239) --- 532 unchanged lines hidden (view full) --- 772 AC_DEFINE(USE_PIPES) 773 AC_DEFINE(NO_X11_UNIX_SOCKETS) 774 AC_DEFINE(MISSING_NFDBITS, 1, [Define on *nto-qnx systems]) 775 AC_DEFINE(MISSING_HOWMANY, 1, [Define on *nto-qnx systems]) 776 AC_DEFINE(MISSING_FD_MASK, 1, [Define on *nto-qnx systems]) 777 AC_DEFINE(DISABLE_LASTLOG) 778 AC_DEFINE(SSHD_ACQUIRES_CTTY) 779 enable_etc_default_login=no # has incompatible /etc/default/login | 241 unistd.h \ 242 usersec.h \ 243 util.h \ 244 utime.h \ 245 utmp.h \ 246 utmpx.h \ 247 vis.h \ 248) --- 532 unchanged lines hidden (view full) --- 781 AC_DEFINE(USE_PIPES) 782 AC_DEFINE(NO_X11_UNIX_SOCKETS) 783 AC_DEFINE(MISSING_NFDBITS, 1, [Define on *nto-qnx systems]) 784 AC_DEFINE(MISSING_HOWMANY, 1, [Define on *nto-qnx systems]) 785 AC_DEFINE(MISSING_FD_MASK, 1, [Define on *nto-qnx systems]) 786 AC_DEFINE(DISABLE_LASTLOG) 787 AC_DEFINE(SSHD_ACQUIRES_CTTY) 788 enable_etc_default_login=no # has incompatible /etc/default/login |
789 case "$host" in 790 *-*-nto-qnx6*) 791 AC_DEFINE(DISABLE_FD_PASSING) 792 ;; 793 esac |
|
780 ;; 781 782*-*-ultrix*) 783 AC_DEFINE(BROKEN_GETGROUPS, 1, [getgroups(0,NULL) will return -1]) 784 AC_DEFINE(BROKEN_MMAP, 1, [Ultrix mmap can't map files]) 785 AC_DEFINE(NEED_SETPGRP) 786 AC_DEFINE(HAVE_SYS_SYSLOG_H, 1, [Force use of sys/syslog.h on Ultrix]) 787 ;; --- 316 unchanged lines hidden (view full) --- 1104 fi 1105 fi 1106 if test -d "${withval}/include"; then 1107 CPPFLAGS="-I${withval}/include ${CPPFLAGS}" 1108 else 1109 CPPFLAGS="-I${withval} ${CPPFLAGS}" 1110 fi 1111 fi | 794 ;; 795 796*-*-ultrix*) 797 AC_DEFINE(BROKEN_GETGROUPS, 1, [getgroups(0,NULL) will return -1]) 798 AC_DEFINE(BROKEN_MMAP, 1, [Ultrix mmap can't map files]) 799 AC_DEFINE(NEED_SETPGRP) 800 AC_DEFINE(HAVE_SYS_SYSLOG_H, 1, [Force use of sys/syslog.h on Ultrix]) 801 ;; --- 316 unchanged lines hidden (view full) --- 1118 fi 1119 fi 1120 if test -d "${withval}/include"; then 1121 CPPFLAGS="-I${withval}/include ${CPPFLAGS}" 1122 else 1123 CPPFLAGS="-I${withval} ${CPPFLAGS}" 1124 fi 1125 fi |
1112 LIBWRAP="-lwrap" 1113 LIBS="$LIBWRAP $LIBS" | 1126 LIBS="-lwrap $LIBS" |
1114 AC_MSG_CHECKING(for libwrap) 1115 AC_TRY_LINK( 1116 [ 1117#include <sys/types.h> 1118#include <sys/socket.h> 1119#include <netinet/in.h> 1120#include <tcpd.h> 1121 int deny_severity = 0, allow_severity = 0; 1122 ], 1123 [hosts_access(0);], 1124 [ 1125 AC_MSG_RESULT(yes) 1126 AC_DEFINE(LIBWRAP, 1, 1127 [Define if you want 1128 TCP Wrappers support]) | 1127 AC_MSG_CHECKING(for libwrap) 1128 AC_TRY_LINK( 1129 [ 1130#include <sys/types.h> 1131#include <sys/socket.h> 1132#include <netinet/in.h> 1133#include <tcpd.h> 1134 int deny_severity = 0, allow_severity = 0; 1135 ], 1136 [hosts_access(0);], 1137 [ 1138 AC_MSG_RESULT(yes) 1139 AC_DEFINE(LIBWRAP, 1, 1140 [Define if you want 1141 TCP Wrappers support]) |
1129 AC_SUBST(LIBWRAP) | 1142 SSHDLIBS="$SSHDLIBS -lwrap" |
1130 TCPW_MSG="yes" 1131 ], 1132 [ 1133 AC_MSG_ERROR([*** libwrap missing]) 1134 ] 1135 ) 1136 LIBS="$saved_LIBS" 1137 fi --- 98 unchanged lines hidden (view full) --- 1236 freeaddrinfo \ 1237 futimes \ 1238 getaddrinfo \ 1239 getcwd \ 1240 getgrouplist \ 1241 getnameinfo \ 1242 getopt \ 1243 getpeereid \ | 1143 TCPW_MSG="yes" 1144 ], 1145 [ 1146 AC_MSG_ERROR([*** libwrap missing]) 1147 ] 1148 ) 1149 LIBS="$saved_LIBS" 1150 fi --- 98 unchanged lines hidden (view full) --- 1249 freeaddrinfo \ 1250 futimes \ 1251 getaddrinfo \ 1252 getcwd \ 1253 getgrouplist \ 1254 getnameinfo \ 1255 getopt \ 1256 getpeereid \ |
1257 getpeerucred \ |
|
1244 _getpty \ 1245 getrlimit \ 1246 getttyent \ 1247 glob \ 1248 inet_aton \ 1249 inet_ntoa \ 1250 inet_ntop \ 1251 innetgr \ 1252 login_getcapbool \ 1253 md5_crypt \ 1254 memmove \ 1255 mkdtemp \ 1256 mmap \ 1257 ngetaddrinfo \ 1258 nsleep \ 1259 ogetaddrinfo \ 1260 openlog_r \ 1261 openpty \ | 1258 _getpty \ 1259 getrlimit \ 1260 getttyent \ 1261 glob \ 1262 inet_aton \ 1263 inet_ntoa \ 1264 inet_ntop \ 1265 innetgr \ 1266 login_getcapbool \ 1267 md5_crypt \ 1268 memmove \ 1269 mkdtemp \ 1270 mmap \ 1271 ngetaddrinfo \ 1272 nsleep \ 1273 ogetaddrinfo \ 1274 openlog_r \ 1275 openpty \ |
1276 poll \ |
|
1262 prctl \ 1263 pstat \ 1264 readpassphrase \ 1265 realpath \ 1266 recvmsg \ 1267 rresvport_af \ 1268 sendmsg \ 1269 setdtablesize \ --- 17 unchanged lines hidden (view full) --- 1287 strerror \ 1288 strlcat \ 1289 strlcpy \ 1290 strmode \ 1291 strnvis \ 1292 strtonum \ 1293 strtoll \ 1294 strtoul \ | 1277 prctl \ 1278 pstat \ 1279 readpassphrase \ 1280 realpath \ 1281 recvmsg \ 1282 rresvport_af \ 1283 sendmsg \ 1284 setdtablesize \ --- 17 unchanged lines hidden (view full) --- 1302 strerror \ 1303 strlcat \ 1304 strlcpy \ 1305 strmode \ 1306 strnvis \ 1307 strtonum \ 1308 strtoll \ 1309 strtoul \ |
1310 swap32 \ |
|
1295 sysconf \ 1296 tcgetpgrp \ 1297 truncate \ 1298 unsetenv \ 1299 updwtmpx \ 1300 vasprintf \ 1301 vhangup \ 1302 vsnprintf \ --- 56 unchanged lines hidden (view full) --- 1359 ]) 1360 1361AC_CHECK_DECLS(writev, , , [ 1362#include <sys/types.h> 1363#include <sys/uio.h> 1364#include <unistd.h> 1365 ]) 1366 | 1311 sysconf \ 1312 tcgetpgrp \ 1313 truncate \ 1314 unsetenv \ 1315 updwtmpx \ 1316 vasprintf \ 1317 vhangup \ 1318 vsnprintf \ --- 56 unchanged lines hidden (view full) --- 1375 ]) 1376 1377AC_CHECK_DECLS(writev, , , [ 1378#include <sys/types.h> 1379#include <sys/uio.h> 1380#include <unistd.h> 1381 ]) 1382 |
1383AC_CHECK_DECLS(MAXSYMLINKS, , , [ 1384#include <sys/param.h> 1385 ]) 1386 1387AC_CHECK_DECLS(offsetof, , , [ 1388#include <stddef.h> 1389 ]) 1390 |
|
1367AC_CHECK_FUNCS(setresuid, [ 1368 dnl Some platorms have setresuid that isn't implemented, test for this 1369 AC_MSG_CHECKING(if setresuid seems to work) 1370 AC_RUN_IFELSE( 1371 [AC_LANG_SOURCE([[ 1372#include <stdlib.h> 1373#include <errno.h> 1374int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} --- 109 unchanged lines hidden (view full) --- 1484 [AC_MSG_RESULT(yes) 1485 AC_DEFINE(SNPRINTF_CONST, [const], 1486 [Define as const if snprintf() can declare const char *fmt])], 1487 [AC_MSG_RESULT(no) 1488 AC_DEFINE(SNPRINTF_CONST, [/* not const */])]) 1489 1490# Check for missing getpeereid (or equiv) support 1491NO_PEERCHECK="" | 1391AC_CHECK_FUNCS(setresuid, [ 1392 dnl Some platorms have setresuid that isn't implemented, test for this 1393 AC_MSG_CHECKING(if setresuid seems to work) 1394 AC_RUN_IFELSE( 1395 [AC_LANG_SOURCE([[ 1396#include <stdlib.h> 1397#include <errno.h> 1398int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} --- 109 unchanged lines hidden (view full) --- 1508 [AC_MSG_RESULT(yes) 1509 AC_DEFINE(SNPRINTF_CONST, [const], 1510 [Define as const if snprintf() can declare const char *fmt])], 1511 [AC_MSG_RESULT(no) 1512 AC_DEFINE(SNPRINTF_CONST, [/* not const */])]) 1513 1514# Check for missing getpeereid (or equiv) support 1515NO_PEERCHECK="" |
1492if test "x$ac_cv_func_getpeereid" != "xyes" ; then | 1516if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then |
1493 AC_MSG_CHECKING([whether system supports SO_PEERCRED getsockopt]) 1494 AC_TRY_COMPILE( 1495 [#include <sys/types.h> 1496 #include <sys/socket.h>], 1497 [int i = SO_PEERCRED;], 1498 [ AC_MSG_RESULT(yes) 1499 AC_DEFINE(HAVE_SO_PEERCRED, 1, [Have PEERCRED socket option]) 1500 ], --- 471 unchanged lines hidden (view full) --- 1972# version in OpenSSL. 1973if test "x$check_for_libcrypt_later" = "x1"; then 1974 AC_CHECK_LIB(crypt, crypt, LIBS="$LIBS -lcrypt") 1975fi 1976 1977# Search for SHA256 support in libc and/or OpenSSL 1978AC_CHECK_FUNCS(SHA256_Update EVP_sha256) 1979 | 1517 AC_MSG_CHECKING([whether system supports SO_PEERCRED getsockopt]) 1518 AC_TRY_COMPILE( 1519 [#include <sys/types.h> 1520 #include <sys/socket.h>], 1521 [int i = SO_PEERCRED;], 1522 [ AC_MSG_RESULT(yes) 1523 AC_DEFINE(HAVE_SO_PEERCRED, 1, [Have PEERCRED socket option]) 1524 ], --- 471 unchanged lines hidden (view full) --- 1996# version in OpenSSL. 1997if test "x$check_for_libcrypt_later" = "x1"; then 1998 AC_CHECK_LIB(crypt, crypt, LIBS="$LIBS -lcrypt") 1999fi 2000 2001# Search for SHA256 support in libc and/or OpenSSL 2002AC_CHECK_FUNCS(SHA256_Update EVP_sha256) 2003 |
1980AC_CHECK_LIB(iaf, ia_openinfo) | 2004saved_LIBS="$LIBS" 2005AC_CHECK_LIB(iaf, ia_openinfo, [ 2006 LIBS="$LIBS -liaf" 2007 AC_CHECK_FUNCS(set_id, [SSHDLIBS="$SSHDLIBS -liaf"]) 2008]) 2009LIBS="$saved_LIBS" |
1981 1982### Configure cryptographic random number support 1983 1984# Check wheter OpenSSL seeds itself 1985AC_MSG_CHECKING([whether OpenSSL's PRNG is internally seeded]) 1986AC_RUN_IFELSE( 1987 [AC_LANG_SOURCE([[ 1988#include <string.h> --- 33 unchanged lines hidden (view full) --- 2022 AC_CHECK_LIB(dl, dlopen, , ) 2023 AC_CHECK_LIB(pam, pam_set_item, , AC_MSG_ERROR([*** libpam missing])) 2024 AC_CHECK_FUNCS(pam_getenvlist) 2025 AC_CHECK_FUNCS(pam_putenv) 2026 LIBS="$saved_LIBS" 2027 2028 PAM_MSG="yes" 2029 | 2010 2011### Configure cryptographic random number support 2012 2013# Check wheter OpenSSL seeds itself 2014AC_MSG_CHECKING([whether OpenSSL's PRNG is internally seeded]) 2015AC_RUN_IFELSE( 2016 [AC_LANG_SOURCE([[ 2017#include <string.h> --- 33 unchanged lines hidden (view full) --- 2051 AC_CHECK_LIB(dl, dlopen, , ) 2052 AC_CHECK_LIB(pam, pam_set_item, , AC_MSG_ERROR([*** libpam missing])) 2053 AC_CHECK_FUNCS(pam_getenvlist) 2054 AC_CHECK_FUNCS(pam_putenv) 2055 LIBS="$saved_LIBS" 2056 2057 PAM_MSG="yes" 2058 |
2030 LIBPAM="-lpam" | 2059 SSHDLIBS="$SSHDLIBS -lpam" |
2031 AC_DEFINE(USE_PAM, 1, 2032 [Define if you want to enable PAM support]) 2033 2034 if test $ac_cv_lib_dl_dlopen = yes; then 2035 case "$LIBS" in 2036 *-ldl*) 2037 # libdl already in LIBS 2038 ;; 2039 *) | 2060 AC_DEFINE(USE_PAM, 1, 2061 [Define if you want to enable PAM support]) 2062 2063 if test $ac_cv_lib_dl_dlopen = yes; then 2064 case "$LIBS" in 2065 *-ldl*) 2066 # libdl already in LIBS 2067 ;; 2068 *) |
2040 LIBPAM="$LIBPAM -ldl" | 2069 SSHDLIBS="$SSHDLIBS -ldl" |
2041 ;; 2042 esac 2043 fi | 2070 ;; 2071 esac 2072 fi |
2044 AC_SUBST(LIBPAM) | |
2045 fi 2046 ] 2047) 2048 2049# Check for older PAM 2050if test "x$PAM_MSG" = "xyes" ; then 2051 # Check PAM strerror arguments (old PAM) 2052 AC_MSG_CHECKING([whether pam_strerror takes only one argument]) --- 1092 unchanged lines hidden (view full) --- 3145 [#include <sys/types.h> 3146 #include <arpa/nameser.h>]) 3147 AC_CHECK_MEMBER(HEADER.ad, 3148 [AC_DEFINE(HAVE_HEADER_AD, 1, 3149 [Define if HEADER.ad exists in arpa/nameser.h])],, 3150 [#include <arpa/nameser.h>]) 3151 ]) 3152 | 2073 fi 2074 ] 2075) 2076 2077# Check for older PAM 2078if test "x$PAM_MSG" = "xyes" ; then 2079 # Check PAM strerror arguments (old PAM) 2080 AC_MSG_CHECKING([whether pam_strerror takes only one argument]) --- 1092 unchanged lines hidden (view full) --- 3173 [#include <sys/types.h> 3174 #include <arpa/nameser.h>]) 3175 AC_CHECK_MEMBER(HEADER.ad, 3176 [AC_DEFINE(HAVE_HEADER_AD, 1, 3177 [Define if HEADER.ad exists in arpa/nameser.h])],, 3178 [#include <arpa/nameser.h>]) 3179 ]) 3180 |
3181AC_MSG_CHECKING(if struct __res_state _res is an extern) 3182AC_LINK_IFELSE([ 3183#include <stdio.h> 3184#if HAVE_SYS_TYPES_H 3185# include <sys/types.h> 3186#endif 3187#include <netinet/in.h> 3188#include <arpa/nameser.h> 3189#include <resolv.h> 3190extern struct __res_state _res; 3191int main() { return 0; } 3192 ], 3193 [AC_MSG_RESULT(yes) 3194 AC_DEFINE(HAVE__RES_EXTERN, 1, 3195 [Define if you have struct __res_state _res as an extern]) 3196 ], 3197 [ AC_MSG_RESULT(no) ] 3198) 3199 |
|
3153# Check whether user wants SELinux support 3154SELINUX_MSG="no" 3155LIBSELINUX="" 3156AC_ARG_WITH(selinux, 3157 [ --with-selinux Enable SELinux support], 3158 [ if test "x$withval" != "xno" ; then | 3200# Check whether user wants SELinux support 3201SELINUX_MSG="no" 3202LIBSELINUX="" 3203AC_ARG_WITH(selinux, 3204 [ --with-selinux Enable SELinux support], 3205 [ if test "x$withval" != "xno" ; then |
3206 save_LIBS="$LIBS" |
|
3159 AC_DEFINE(WITH_SELINUX,1,[Define if you want SELinux support.]) 3160 SELINUX_MSG="yes" 3161 AC_CHECK_HEADER([selinux/selinux.h], , 3162 AC_MSG_ERROR(SELinux support requires selinux.h header)) 3163 AC_CHECK_LIB(selinux, setexeccon, [ LIBSELINUX="-lselinux" ], 3164 AC_MSG_ERROR(SELinux support requires libselinux library)) | 3207 AC_DEFINE(WITH_SELINUX,1,[Define if you want SELinux support.]) 3208 SELINUX_MSG="yes" 3209 AC_CHECK_HEADER([selinux/selinux.h], , 3210 AC_MSG_ERROR(SELinux support requires selinux.h header)) 3211 AC_CHECK_LIB(selinux, setexeccon, [ LIBSELINUX="-lselinux" ], 3212 AC_MSG_ERROR(SELinux support requires libselinux library)) |
3165 save_LIBS="$LIBS" 3166 LIBS="$LIBS $LIBSELINUX" | 3213 SSHDLIBS="$SSHDLIBS $LIBSELINUX" |
3167 AC_CHECK_FUNCS(getseuserbyname get_default_context_with_level) 3168 LIBS="$save_LIBS" 3169 fi ] 3170) | 3214 AC_CHECK_FUNCS(getseuserbyname get_default_context_with_level) 3215 LIBS="$save_LIBS" 3216 fi ] 3217) |
3171AC_SUBST(LIBSELINUX) | |
3172 3173# Check whether user wants Kerberos 5 support 3174KRB5_MSG="no" 3175AC_ARG_WITH(kerberos5, 3176 [ --with-kerberos5=PATH Enable Kerberos 5 support], 3177 [ if test "x$withval" != "xno" ; then 3178 if test "x$withval" = "xyes" ; then 3179 KRB5ROOT="/usr/local" --- 819 unchanged lines hidden (view full) --- 3999 4000echo "" 4001 4002echo " Host: ${host}" 4003echo " Compiler: ${CC}" 4004echo " Compiler flags: ${CFLAGS}" 4005echo "Preprocessor flags: ${CPPFLAGS}" 4006echo " Linker flags: ${LDFLAGS}" | 3218 3219# Check whether user wants Kerberos 5 support 3220KRB5_MSG="no" 3221AC_ARG_WITH(kerberos5, 3222 [ --with-kerberos5=PATH Enable Kerberos 5 support], 3223 [ if test "x$withval" != "xno" ; then 3224 if test "x$withval" = "xyes" ; then 3225 KRB5ROOT="/usr/local" --- 819 unchanged lines hidden (view full) --- 4045 4046echo "" 4047 4048echo " Host: ${host}" 4049echo " Compiler: ${CC}" 4050echo " Compiler flags: ${CFLAGS}" 4051echo "Preprocessor flags: ${CPPFLAGS}" 4052echo " Linker flags: ${LDFLAGS}" |
4007echo " Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}" | 4053echo " Libraries: ${LIBS}" 4054if test ! -z "${SSHDLIBS}"; then 4055echo " +for sshd: ${SSHDLIBS}" 4056fi |
4008 4009echo "" 4010 4011if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then 4012 echo "SVR4 style packages are supported with \"make package\"" 4013 echo "" 4014fi 4015 --- 9 unchanged lines hidden (view full) --- 4025 echo "WARNING: you are using the builtin random number collection " 4026 echo "service. Please read WARNING.RNG and request that your OS " 4027 echo "vendor includes kernel-based random number collection in " 4028 echo "future versions of your OS." 4029 echo "" 4030fi 4031 4032if test ! -z "$NO_PEERCHECK" ; then | 4057 4058echo "" 4059 4060if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then 4061 echo "SVR4 style packages are supported with \"make package\"" 4062 echo "" 4063fi 4064 --- 9 unchanged lines hidden (view full) --- 4074 echo "WARNING: you are using the builtin random number collection " 4075 echo "service. Please read WARNING.RNG and request that your OS " 4076 echo "vendor includes kernel-based random number collection in " 4077 echo "future versions of your OS." 4078 echo "" 4079fi 4080 4081if test ! -z "$NO_PEERCHECK" ; then |
4033 echo "WARNING: the operating system that you are using does not " 4034 echo "appear to support either the getpeereid() API nor the " 4035 echo "SO_PEERCRED getsockopt() option. These facilities are used to " 4036 echo "enforce security checks to prevent unauthorised connections to " 4037 echo "ssh-agent. Their absence increases the risk that a malicious " 4038 echo "user can connect to your agent. " | 4082 echo "WARNING: the operating system that you are using does not" 4083 echo "appear to support getpeereid(), getpeerucred() or the" 4084 echo "SO_PEERCRED getsockopt() option. These facilities are used to" 4085 echo "enforce security checks to prevent unauthorised connections to" 4086 echo "ssh-agent. Their absence increases the risk that a malicious" 4087 echo "user can connect to your agent." |
4039 echo "" 4040fi 4041 4042if test "$AUDIT_MODULE" = "bsm" ; then 4043 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL." 4044 echo "See the Solaris section in README.platform for details." 4045fi | 4088 echo "" 4089fi 4090 4091if test "$AUDIT_MODULE" = "bsm" ; then 4092 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL." 4093 echo "See the Solaris section in README.platform for details." 4094fi |