]> andersk Git - openssh.git/blobdiff - configure.in
- (djm) Fixes from Andrew McGill <andrewm@datrix.co.za>:
[openssh.git] / configure.in
index 62456acef04867857f8187cc8a475fc41d8c1e40..3bdf41133b75ef50e5193706b93d527003c1fa2c 100644 (file)
@@ -36,16 +36,17 @@ case "$host" in
        fi
        AC_CHECK_FUNC(authenticate, [AC_DEFINE(WITH_AIXAUTHENTICATE)])
        AC_DEFINE(BROKEN_GETADDRINFO)
+       MANTYPE='$(CATMAN)'
+       mansubdir=cat
+       dnl AIX handles lastlog as part of its login message
+       AC_DEFINE(DISABLE_LASTLOG)
        ;;
 *-*-hpux10*)
        if test -z "$GCC"; then
-               CFLAGS="$CFLAGS -Aa"
+               CFLAGS="$CFLAGS -Ae"
        fi
        CFLAGS="$CFLAGS -D_HPUX_SOURCE"
-       CFLAGS="$CFLAGS -I/usr/local/include"
-       LDFLAGS="$LDFLAGS -L/usr/local/lib"
        AC_DEFINE(IPADDR_IN_DISPLAY)
-       AC_DEFINE(USE_UTMPX)
        AC_MSG_CHECKING(for HPUX trusted system password database)
        if test -f /tcb/files/auth/system/default; then
                AC_MSG_RESULT(yes)
@@ -64,10 +65,7 @@ case "$host" in
                CFLAGS="$CFLAGS -Ae"
        fi
        CFLAGS="$CFLAGS -D_HPUX_SOURCE"
-       CFLAGS="$CFLAGS -I/usr/local/include"
-       LDFLAGS="$LDFLAGS -L/usr/local/lib"
        AC_DEFINE(IPADDR_IN_DISPLAY)
-       AC_DEFINE(USE_UTMPX)
        AC_MSG_CHECKING(for HPUX trusted system password database)
        if test -f /tcb/files/auth/system/default; then
                AC_MSG_RESULT(yes)
@@ -83,14 +81,14 @@ case "$host" in
        ;;
 *-*-irix5*)
        CFLAGS="$CFLAGS -I/usr/local/include"
-       LDFLAGS="$LDFLAGS -L/usr/local/lib"
+       LDFLAGS="$LDFLAGS"
        MANTYPE='$(CATMAN)'
        no_libsocket=1
        no_libnsl=1
        ;;
 *-*-irix6*)
        CFLAGS="$CFLAGS -I/usr/local/include"
-       LDFLAGS="$LDFLAGS -L/usr/local/lib"
+       LDFLAGS="$LDFLAGS"
        MANTYPE='$(CATMAN)'
        AC_MSG_WARN([*** Irix 6.x is not tested, please report you experiences *** ])
        no_libsocket=1
@@ -108,18 +106,66 @@ case "$host" in
        CFLAGS="$CFLAGS -I/usr/local/include"
        LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib -L/usr/ucblib -R/usr/ucblib"
        need_dash_r=1
-       AC_DEFINE(USE_UTMPX)
+       # hardwire lastlog location (can't detect it on some versions)
+       conf_lastlog_location="/var/adm/lastlog"
+       AC_MSG_CHECKING(for obsolete utmp and wtmp in solaris2.x)
+       sol2ver=`echo "$host"| sed -e 's/.*[[0-9]]\.//'`
+       if test "$sol2ver" -ge 8; then
+               AC_MSG_RESULT(yes)
+               AC_DEFINE(DISABLE_UTMP)
+               AC_DEFINE(DISABLE_WTMP)
+       else
+               AC_MSG_RESULT(no)
+       fi
+       ;;
+*-*-sunos4*)
+       CFLAGS="$CFLAGS -DSUNOS4"
+       AC_CHECK_FUNCS(getpwanam)
        ;;
 *-*-sysv*)
        CFLAGS="$CFLAGS -I/usr/local/include"
        LDFLAGS="$LDFLAGS -L/usr/local/lib"
-       AC_DEFINE(USE_UTMPX)
        MANTYPE='$(CATMAN)'
        mansubdir=cat
        LIBS="$LIBS -lgen -lsocket"
        ;;
+*-*-sco3*)
+       CFLAGS="$CFLAGS -I/usr/local/include"
+       LDFLAGS="$LDFLAGS -L/usr/local/lib"
+       MANTYPE='$(CATMAN)'
+       mansubdir=cat
+       LIBS="$LIBS -lgen -lsocket"
+       no_dev_ptmx=1
+       ;;
 esac
 
+# Allow user to specify flags
+AC_ARG_WITH(cflags,
+       [  --with-cflags           Specify additional flags to pass to compiler],
+       [
+               if test "x$withval" != "xno" ; then
+                       CFLAGS="$CFLAGS $withval"
+               fi
+       ]       
+)
+AC_ARG_WITH(ldflags,
+       [  --with-ldlags           Specify additional flags to pass to linker],
+       [
+               if test "x$withval" != "xno" ; then
+                       LDFLAGS="$LDFLAGS $withval"
+               fi
+       ]       
+)
+AC_ARG_WITH(libs,
+       [  --with-libs             Specify additional libraries to link with],
+       [
+               if test "x$withval" != "xno" ; then
+                       LIBS="$LIBS $withval"
+               fi
+       ]       
+)
+
+
 # Checks for libraries.
 AC_CHECK_LIB(z, deflate, ,AC_MSG_ERROR([*** zlib missing - please install first ***]))
 AC_CHECK_LIB(util, login, AC_DEFINE(HAVE_LIBUTIL_LOGIN) LIBS="$LIBS -lutil")
@@ -132,10 +178,20 @@ if test -z "$no_libnsl" ; then
 fi
 
 # Checks for header files.
-AC_CHECK_HEADERS(bstring.h endian.h lastlog.h login.h maillock.h netdb.h netgroup.h netinet/in_systm.h paths.h poll.h pty.h shadow.h security/pam_appl.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h sys/poll.h sys/select.h sys/stropts.h sys/sysmacros.h sys/time.h sys/ttcompat.h stddef.h util.h utmp.h utmpx.h)
+AC_CHECK_HEADERS(bstring.h endian.h lastlog.h limits.h login.h maillock.h netdb.h netgroup.h netinet/in_systm.h paths.h poll.h pty.h shadow.h security/pam_appl.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h sys/poll.h sys/select.h sys/stropts.h sys/sysmacros.h sys/time.h sys/ttcompat.h stddef.h time.h util.h utmp.h utmpx.h)
 
 # Checks for library functions.
-AC_CHECK_FUNCS(arc4random b64_ntop bindresvport_af clock freeaddrinfo gai_strerror getaddrinfo getnameinfo getrusage innetgr md5_crypt mkdtemp openpty rresvport_af setenv seteuid setlogin setproctitle setreuid snprintf strlcat strlcpy updwtmpx vsnprintf vhangup _getpty __b64_ntop)
+AC_CHECK_FUNCS(arc4random atexit b64_ntop bcopy bindresvport_af clock freeaddrinfo gai_strerror getaddrinfo getnameinfo getrusage innetgr md5_crypt memmove mkdtemp on_exit openpty rresvport_af setenv seteuid setlogin setproctitle setreuid snprintf strlcat strlcpy vsnprintf vhangup _getpty __b64_ntop)
+dnl    checks for time functions
+AC_CHECK_FUNCS(gettimeofday time)
+dnl    checks for libutil functions
+AC_CHECK_FUNCS(login logout updwtmp logwtmp)
+dnl    checks for utmp functions
+AC_CHECK_FUNCS(entutent getutent getutid getutline pututline setutent)
+AC_CHECK_FUNCS(utmpname)
+dnl    checks for utmpx functions
+AC_CHECK_FUNCS(entutxent getutxent getutxid getutxline pututxline )
+AC_CHECK_FUNCS(setutxent utmpxname)
 
 AC_CHECK_FUNC(login, 
        [AC_DEFINE(HAVE_LOGIN)],
@@ -212,37 +268,27 @@ AC_CACHE_CHECK([for OpenSSL directory], ac_cv_openssldir, [
                        LDFLAGS="$saved_LDFLAGS"
                fi
 
-               for WANTS_RSAREF in "" 1 ; do
-               
-                       if test -z "$WANTS_RSAREF" ; then
-                               LIBS="$saved_LIBS -lcrypto"
-                       else
-                               LIBS="$saved_LIBS -lcrypto -lRSAglue -lrsaref"
-                       fi
+               LIBS="$saved_LIBS -lcrypto"
 
-                       AC_TRY_RUN(
-                               [
+               # Basic test to check for compatible version and correct linking
+               # *does not* test for RSA - that comes later.
+               AC_TRY_RUN(
+                       [
 #include <string.h>
 #include <openssl/rand.h>
-#include <openssl/rsa.h>
-#include <openssl/bn.h>
-#include <openssl/sha.h>
 int main(void) 
 {
-       RSA *key; char a[2048],b[2048];;
-       memset(a, 0, sizeof(a));memset(b, 0, sizeof(b));
+       char a[2048];
+       memset(a, 0, sizeof(a));
        RAND_add(a, sizeof(a), sizeof(a));
-       key=RSA_generate_key(32,3,NULL,NULL);
-       if (key==NULL) return(1);
-       return(-1==RSA_private_decrypt(RSA_size(key),a,b,key,RSA_NO_PADDING));
+       return(RAND_status() <= 0);
 }
-                               ],
-                               [
-                                       found_crypto=1
-                                       break;
-                               ], []
-                       )
-               done
+                       ],
+                       [
+                               found_crypto=1
+                               break;
+                       ], []
+               )
 
                if test ! -z "$found_crypto" ; then
                        break;
@@ -272,13 +318,54 @@ if test ! -z "$ac_cv_openssldir" -a ! "x$ac_cv_openssldir" = "x(system)" ; then
                blibpath="$blibpath:$ssldir:$ssldir/lib"
        fi
 fi
-if test -z "$WANTS_RSAREF" ; then
-       LIBS="$saved_LIBS -lcrypto"
+LIBS="$saved_LIBS -lcrypto"
+
+# Now test RSA support
+saved_LIBS="$LIBS"
+AC_MSG_CHECKING([for RSA support])
+for WANTS_RSAREF in "" 1 ; do
+       if test -z "$WANTS_RSAREF" ; then
+               LIBS="$saved_LIBS"
+       else
+               LIBS="$saved_LIBS -lRSAglue -lrsaref"
+       fi
+       AC_TRY_RUN([
+#include <string.h>
+#include <openssl/rand.h>
+#include <openssl/rsa.h>
+#include <openssl/bn.h>
+#include <openssl/sha.h>
+int main(void) 
+{
+       int num; RSA *key; static unsigned char p_in[] = "blahblah";
+       unsigned char c[256], p[256];
+       memset(c, 0, sizeof(c)); RAND_add(c, sizeof(c), sizeof(c));
+       if ((key=RSA_generate_key(512, 3, NULL, NULL))==NULL) return(1);
+       num = RSA_public_encrypt(sizeof(p_in) - 1, p_in, c, key, RSA_PKCS1_PADDING);
+       return(-1 == RSA_private_decrypt(num, c, p, key, RSA_PKCS1_PADDING));
+}
+       ],
+       [
+               rsa_works=1
+               break;
+       ], [])
+done
+
+if test ! -z "$no_rsa" ; then
+       AC_MSG_RESULT(disabled)
 else
-       LIBS="$saved_LIBS -lcrypto -lRSAglue -lrsaref"
+       if test -z "$rsa_works" ; then
+               AC_MSG_WARN([*** No RSA support found *** ])
+       else
+               if test -z "$WANTS_RSAREF" ; then
+                       AC_MSG_RESULT(yes)
+               else
+                       AC_MSG_RESULT(using RSAref)
+                       LIBS="$saved_LIBS -lcrypto -lRSAglue -lrsaref"
+               fi
+       fi
 fi
 
-
 # Checks for data types
 AC_CHECK_SIZEOF(char, 1)
 AC_CHECK_SIZEOF(short int, 2)
@@ -381,6 +468,20 @@ if test "x$ac_cv_have_size_t" = "xyes" ; then
        AC_DEFINE(HAVE_SIZE_T)
 fi
 
+AC_CACHE_CHECK([for ssize_t], ac_cv_have_ssize_t, [
+       AC_TRY_COMPILE(
+               [
+#include <sys/types.h>
+               ],
+               [ ssize_t foo; foo = 1235; ],
+               [ ac_cv_have_ssize_t="yes" ],
+               [ ac_cv_have_ssize_t="no" ]
+       )
+])
+if test "x$ac_cv_have_ssize_t" = "xyes" ; then
+       AC_DEFINE(HAVE_SSIZE_T)
+fi
+
 
 AC_CACHE_CHECK([for struct sockaddr_storage], ac_cv_have_struct_sockaddr_storage, [
        AC_TRY_COMPILE(
@@ -449,12 +550,18 @@ OSSH_CHECK_HEADER_FOR_FIELD(ut_host, utmpx.h, HAVE_HOST_IN_UTMPX)
 OSSH_CHECK_HEADER_FOR_FIELD(syslen, utmpx.h, HAVE_SYSLEN_IN_UTMPX)
 OSSH_CHECK_HEADER_FOR_FIELD(ut_pid, utmp.h, HAVE_PID_IN_UTMP)
 OSSH_CHECK_HEADER_FOR_FIELD(ut_type, utmp.h, HAVE_TYPE_IN_UTMP)
+OSSH_CHECK_HEADER_FOR_FIELD(ut_type, utmpx.h, HAVE_TYPE_IN_UTMPX)
 OSSH_CHECK_HEADER_FOR_FIELD(ut_tv, utmp.h, HAVE_TV_IN_UTMP)
 OSSH_CHECK_HEADER_FOR_FIELD(ut_id, utmp.h, HAVE_ID_IN_UTMP)
 OSSH_CHECK_HEADER_FOR_FIELD(ut_addr, utmp.h, HAVE_ADDR_IN_UTMP)
 OSSH_CHECK_HEADER_FOR_FIELD(ut_addr, utmpx.h, HAVE_ADDR_IN_UTMPX)
 OSSH_CHECK_HEADER_FOR_FIELD(ut_addr_v6, utmp.h, HAVE_ADDR_V6_IN_UTMP)
 OSSH_CHECK_HEADER_FOR_FIELD(ut_addr_v6, utmpx.h, HAVE_ADDR_V6_IN_UTMPX)
+OSSH_CHECK_HEADER_FOR_FIELD(ut_exit, utmp.h, HAVE_EXIT_IN_UTMP)
+OSSH_CHECK_HEADER_FOR_FIELD(ut_time, utmp.h, HAVE_TIME_IN_UTMP)
+OSSH_CHECK_HEADER_FOR_FIELD(ut_time, utmpx.h, HAVE_TIME_IN_UTMPX)
+OSSH_CHECK_HEADER_FOR_FIELD(ut_tv, utmpx.h, HAVE_TV_IN_UTMPX)
+
 
 
 AC_CACHE_CHECK([for ss_family field in struct sockaddr_storage],
@@ -544,48 +651,6 @@ if test ! -z "$MAIL" ; then
        AC_DEFINE_UNQUOTED(MAIL_DIRECTORY, "$maildir")
 fi
 
-# Look for lastlog location
-AC_ARG_WITH(lastlog,
-       [  --with-lastlog=FILE     Location of lastlog file],
-       [
-               if test "x$withval" = "xno" ; then
-                       AC_DEFINE(DISABLE_LASTLOG)
-               else
-                       AC_DEFINE_UNQUOTED(LASTLOG_LOCATION, "$withval")
-               fi
-       ],
-       [
-               AC_MSG_CHECKING([location of lastlog file])
-               for lastlog in /var/log/lastlog /var/adm/lastlog /usr/adm/lastlog  /etc/security/lastlog ; do
-                       if test -f $lastlog ; then
-                               gotlastlog="file"
-                               break
-                       fi
-                       if test -d $lastlog ; then
-                               gotlastlog="dir"
-                               break
-                       fi
-               done
-               if test -z "$gotlastlog" ; then
-                       AC_MSG_RESULT(not found)
-                       nolastlog=1
-               else
-                       if test "x$gotlastlog" = "xdir" ; then
-                               AC_MSG_RESULT(${lastlog}/)
-                               AC_DEFINE(LASTLOG_IS_DIR)
-                       else
-                               AC_MSG_RESULT($lastlog)
-                               AC_DEFINE_UNQUOTED(LASTLOG_LOCATION, "$lastlog")
-                       fi
-               fi      
-       ]
-)
-
-if test ! -z "$nolastlog" ; then
-       AC_MSG_WARN([*** Disabling lastlog support *** ])
-       AC_DEFINE(DISABLE_LASTLOG)
-fi
-
 if test -z "$no_dev_ptmx" ; then
        AC_CHECK_FILE("/dev/ptmx", 
                [
@@ -792,16 +857,6 @@ AC_ARG_WITH(md5-passwords,
        ]
 )
 
-# Check whether to enable utmpx support
-AC_ARG_WITH(utmpx,
-       [  --with-utmpx            Enable utmpx support],
-       [
-               if test "x$withval" != "xno" ; then
-                       AC_DEFINE(USE_UTMPX)
-               fi
-       ]
-)
-
 # Whether to disable shadow password support
 AC_ARG_WITH(shadow,
        [  --without-shadow        Disable shadow password support],
@@ -876,9 +931,219 @@ AC_ARG_WITH(pid-dir,
 AC_DEFINE_UNQUOTED(PIDDIR, "$piddir")
 AC_SUBST(piddir)
 
+dnl allow user to disable some login recording features
+AC_ARG_ENABLE(lastlog,
+       [ --disable-lastlog        disable use of lastlog even if detected [no]],
+       [ AC_DEFINE(DISABLE_LASTLOG) ]
+)
+AC_ARG_ENABLE(utmp,
+       [ --disable-utmp           disable use of utmp even if detected [no]],
+       [ AC_DEFINE(DISABLE_UTMP) ]
+)
+AC_ARG_ENABLE(utmpx,
+       [ --disable-utmpx          disable use of utmpx even if detected [no]],
+       [ AC_DEFINE(DISABLE_UTMPX) ]
+)
+AC_ARG_ENABLE(wtmp,
+       [ --disable-wtmp           disable use of wtmp even if detected [no]],
+       [ AC_DEFINE(DISABLE_WTMP) ]
+)
+AC_ARG_ENABLE(wtmpx,
+       [ --disable-wtmpx          disable use of wtmpx even if detected [no]],
+       [ AC_DEFINE(DISABLE_WTMPX) ]
+)
+AC_ARG_ENABLE(libutil,
+       [ --disable-libutil        disable use of libutil (login() etc.) [no]],
+       [ AC_DEFINE(DISABLE_LOGIN) ]
+)
+AC_ARG_ENABLE(pututline,
+       [ --disable-pututline      disable use of pututline() etc. ([uw]tmp) [no]],
+       [ AC_DEFINE(DISABLE_PUTUTLINE) ]
+)
+AC_ARG_ENABLE(pututxline,
+       [ --disable-pututxline      disable use of pututxline() etc. ([uw]tmpx) [no]],
+       [ AC_DEFINE(DISABLE_PUTUTXLINE) ]
+)
+AC_ARG_WITH(lastlog,
+  [ --with-lastlog=FILE|DIR  specify lastlog location [common locations]],
+  [ conf_lastlog_location="$withval";  ],)
+
+dnl lastlog, [uw]tmpx? detection
+dnl  NOTE: set the paths in the platform section to avoid the
+dnl   need for command-line parameters
+dnl lastlog and [uw]tmp are subject to a file search if all else fails
+
+dnl lastlog detection
+dnl  NOTE: the code itself will detect if lastlog is a directory
+AC_MSG_CHECKING([if your system defines LASTLOG_FILE])
+AC_TRY_COMPILE([
+#include <sys/types.h>
+#include <utmp.h>
+#ifdef HAVE_LASTLOG_H
+#  include <lastlog.h>
+#endif
+#ifdef HAVE_PATHS_H
+#  include <paths.h>
+#endif
+       ],
+       [ char *lastlog = LASTLOG_FILE; ],
+       [ AC_MSG_RESULT(yes) ],
+       [
+               AC_MSG_RESULT(no)
+               AC_MSG_CHECKING([if your system defines _PATH_LASTLOG])
+               AC_TRY_COMPILE([
+#include <sys/types.h>
+#include <utmp.h>
+#ifdef HAVE_LASTLOG_H
+#  include <lastlog.h>
+#endif
+#ifdef HAVE_PATHS_H
+#  include <paths.h>
+#endif
+               ],
+               [ char *lastlog = _PATH_LASTLOG; ],
+               [ AC_MSG_RESULT(yes) ],
+               [
+                       AC_MSG_RESULT(no)
+                       system_lastlog_path=no
+               ])
+       ]
+)
+
+if test -z "$conf_lastlog_location"; then
+       if test x"$system_lastlog_path" = x"no" ; then
+               for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
+                               if test -d "$f" -o -f "$f" ; then
+                                       conf_lastlog_location=$f
+                               fi
+               done
+               if test -z "$conf_lastlog_location"; then
+                       AC_MSG_WARN([** Cannot find lastlog **])
+                       dnl Don't define DISABLE_LASTLOG - that means we don't try wtmp/wtmpx
+               fi
+       fi
+fi
+
+if test -n "$conf_lastlog_location"; then
+       AC_DEFINE_UNQUOTED(CONF_LASTLOG_FILE, "$conf_lastlog_location")
+fi     
+
+dnl utmp detection
+AC_MSG_CHECKING([if your system defines UTMP_FILE])
+AC_TRY_COMPILE([
+#include <sys/types.h>
+#include <utmp.h>
+#ifdef HAVE_PATHS_H
+#  include <paths.h>
+#endif
+       ],
+       [ char *utmp = UTMP_FILE; ],
+       [ AC_MSG_RESULT(yes) ],
+       [ AC_MSG_RESULT(no)
+         system_utmp_path=no ]
+)
+if test -z "$conf_utmp_location"; then
+       if test x"$system_utmp_path" = x"no" ; then
+               for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
+                       if test -f $f ; then
+                               conf_utmp_location=$f
+                       fi
+               done
+               if test -z "$conf_utmp_location"; then
+                       AC_DEFINE(DISABLE_UTMP)
+               fi
+       fi
+fi
+if test -n "$conf_utmp_location"; then
+       AC_DEFINE_UNQUOTED(CONF_UTMP_FILE, "$conf_utmp_location")
+fi     
+
+dnl wtmp detection
+AC_MSG_CHECKING([if your system defines WTMP_FILE])
+AC_TRY_COMPILE([
+#include <sys/types.h>
+#include <utmp.h>
+#ifdef HAVE_PATHS_H
+#  include <paths.h>
+#endif
+       ],
+       [ char *wtmp = WTMP_FILE; ],
+       [ AC_MSG_RESULT(yes) ],
+       [ AC_MSG_RESULT(no)
+         system_wtmp_path=no ]
+)
+if test -z "$conf_wtmp_location"; then
+       if test x"$system_wtmp_path" = x"no" ; then
+               for f in /usr/adm/wtmp /var/log/wtmp; do
+                       if test -f $f ; then
+                               conf_wtmp_location=$f
+                       fi
+               done
+               if test -z "$conf_wtmp_location"; then
+                       AC_DEFINE(DISABLE_WTMP)
+               fi
+       fi
+fi
+if test -n "$conf_wtmp_location"; then
+       AC_DEFINE_UNQUOTED(CONF_WTMP_FILE, "$conf_wtmp_location")
+fi     
+
+
+dnl utmpx detection - I don't know any system so perverse as to require
+dnl  utmpx, but not define UTMPX_FILE (ditto wtmpx.) No doubt it's out
+dnl  there, though.
+AC_MSG_CHECKING([if your system defines UTMPX_FILE])
+AC_TRY_COMPILE([
+#include <sys/types.h>
+#include <utmp.h>
+#ifdef HAVE_UTMPX_H
+#include <utmpx.h>
+#endif
+#ifdef HAVE_PATHS_H
+#  include <paths.h>
+#endif
+       ],
+       [ char *utmpx = UTMPX_FILE; ],
+       [ AC_MSG_RESULT(yes) ],
+       [ AC_MSG_RESULT(no)
+         system_utmpx_path=no ]
+)
+if test -z "$conf_utmpx_location"; then
+       if test x"$system_utmpx_path" = x"no" ; then
+               AC_DEFINE(DISABLE_UTMPX)
+       fi
+else
+       AC_DEFINE_UNQUOTED(CONF_UTMPX_FILE, "$conf_utmpx_location")
+fi     
+
+dnl wtmpx detection
+AC_MSG_CHECKING([if your system defines WTMPX_FILE])
+AC_TRY_COMPILE([
+#include <sys/types.h>
+#include <utmp.h>
+#ifdef HAVE_UTMPX_H
+#include <utmpx.h>
+#endif
+#ifdef HAVE_PATHS_H
+#  include <paths.h>
+#endif
+       ],
+       [ char *wtmpx = WTMPX_FILE; ],
+       [ AC_MSG_RESULT(yes) ],
+       [ AC_MSG_RESULT(no)
+         system_wtmpx_path=no ]
+)
+if test -z "$conf_wtmpx_location"; then
+       if test x"$system_wtmpx_path" = x"no" ; then
+               AC_DEFINE(DISABLE_WTMPX)
+       fi
+else
+       AC_DEFINE_UNQUOTED(CONF_WTMPX_FILE, "$conf_wtmpx_location")
+fi     
+
 
 # Change default command timeout for builtin PRNG
-entropy_timeout=100
+entropy_timeout=200
 AC_ARG_WITH(entropy-timeout,
        [  --with-entropy-timeout  Specify entropy gathering command timeout (msec)],
        [
This page took 0.12417 seconds and 4 git commands to generate.