diff options
author | Damien Miller <djm@mindrot.org> | 2000-04-08 18:23:30 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-04-08 18:23:30 +1000 |
commit | 11e37f638d3cc064371521001eaeb2d75bfe4a8d (patch) | |
tree | 637e356df5523f27e354d4353ae4adce04dc43c6 | |
parent | bc7c7cceea205733e3d0902bc751009b5836ff9c (diff) |
- Only set define entropy collection macros if they are found
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | configure.in | 91 |
2 files changed, 62 insertions, 30 deletions
@@ -1,6 +1,7 @@ 20000408 - Avoid some compiler warnings in fake-get*.c - Add IPTOS macros for systems which lack them + - Only set define entropy collection macros if they are found 20000406 - OpenBSD CVS update: diff --git a/configure.in b/configure.in index 14dd5108..3c26e3d7 100644 --- a/configure.in +++ b/configure.in @@ -12,36 +12,6 @@ AC_CHECK_PROG(AR, ar, ar) AC_PATH_PROG(PERL, perl) AC_SUBST(PERL) -# We may need these for entropy collection -AC_PATH_PROG(PROG_LS, ls) -AC_DEFINE_UNQUOTED(PROG_LS, "$PROG_LS") -AC_PATH_PROG(PROG_NETSTAT, netstat) -AC_DEFINE_UNQUOTED(PROG_NETSTAT, "$PROG_NETSTAT") -AC_PATH_PROG(PROG_ARP, arp) -AC_DEFINE_UNQUOTED(PROG_ARP, "$PROG_ARP") -AC_PATH_PROG(PROG_IFCONFIG, ifconfig) -AC_DEFINE_UNQUOTED(PROG_IFCONFIG, "$PROG_IFCONFIG") -AC_PATH_PROG(PROG_PS, ps) -AC_DEFINE_UNQUOTED(PROG_PS, "$PROG_PS") -AC_PATH_PROG(PROG_W, w) -AC_DEFINE_UNQUOTED(PROG_W, "$PROG_W") -AC_PATH_PROG(PROG_WHO, who) -AC_DEFINE_UNQUOTED(PROG_WHO, "$PROG_WHO") -AC_PATH_PROG(PROG_LAST, last) -AC_DEFINE_UNQUOTED(PROG_LAST, "$PROG_LAST") -AC_PATH_PROG(PROG_LASTLOG, lastlog) -AC_DEFINE_UNQUOTED(PROG_LASTLOG, "$PROG_LASTLOG") -AC_PATH_PROG(PROG_DF, df) -AC_DEFINE_UNQUOTED(PROG_DF, "$PROG_DF") -AC_PATH_PROG(PROG_VMSTAT, vmstat) -AC_DEFINE_UNQUOTED(PROG_VMSTAT, "$PROG_VMSTAT") -AC_PATH_PROG(PROG_UPTIME, uptime) -AC_DEFINE_UNQUOTED(PROG_UPTIME, "$PROG_UPTIME") -AC_PATH_PROG(PROG_IPCS, ipcs) -AC_DEFINE_UNQUOTED(PROG_UPTIME, "$PROG_UPTIME") -AC_PATH_PROG(PROG_TAIL, tail) -AC_DEFINE_UNQUOTED(PROG_TAIL, "$PROG_TAIL") - if test -z "$LD" ; then LD=$CC fi @@ -662,6 +632,67 @@ AC_ARG_WITH(egd-pool, ] ) +if test -z "$RANDOM_POOL" -a -z "$EGD_SOCKET" ; then + # Use these commands to collect entropy + AC_PATH_PROG(PROG_LS, ls) + AC_PATH_PROG(PROG_NETSTAT, netstat) + AC_PATH_PROG(PROG_ARP, arp) + AC_PATH_PROG(PROG_IFCONFIG, ifconfig) + AC_PATH_PROG(PROG_PS, ps) + AC_PATH_PROG(PROG_W, w) + AC_PATH_PROG(PROG_WHO, who) + AC_PATH_PROG(PROG_LAST, last) + AC_PATH_PROG(PROG_LASTLOG, lastlog) + AC_PATH_PROG(PROG_DF, df) + AC_PATH_PROG(PROG_VMSTAT, vmstat) + AC_PATH_PROG(PROG_UPTIME, uptime) + AC_PATH_PROG(PROG_IPCS, ipcs) + AC_PATH_PROG(PROG_TAIL, tail) + AC_PATH_PROG(PROG_LS, ls) + if test ! -z "$PROG_LS" ; then + AC_DEFINE_UNQUOTED(PROG_LS, "$PROG_LS") + fi + if test ! -z "$PROG_NETSTAT" ; then + AC_DEFINE_UNQUOTED(PROG_NETSTAT, "$PROG_NETSTAT") + fi + if test ! -z "$PROG_ARP" ; then + AC_DEFINE_UNQUOTED(PROG_ARP, "$PROG_ARP") + fi + if test ! -z "$PROG_IFCONFIG" ; then + AC_DEFINE_UNQUOTED(PROG_IFCONFIG, "$PROG_IFCONFIG") + fi + if test ! -z "$PROG_PS" ; then + AC_DEFINE_UNQUOTED(PROG_PS, "$PROG_PS") + fi + if test ! -z "$PROG_W" ; then + AC_DEFINE_UNQUOTED(PROG_W, "$PROG_W") + fi + if test ! -z "$PROG_WHO" ; then + AC_DEFINE_UNQUOTED(PROG_WHO, "$PROG_WHO") + fi + if test ! -z "$PROG_LAST" ; then + AC_DEFINE_UNQUOTED(PROG_LAST, "$PROG_LAST") + fi + if test ! -z "$PROG_LASTLOG" ; then + AC_DEFINE_UNQUOTED(PROG_LASTLOG, "$PROG_LASTLOG") + fi + if test ! -z "$PROG_DF" ; then + AC_DEFINE_UNQUOTED(PROG_DF, "$PROG_DF") + fi + if test ! -z "$PROG_VMSTAT" ; then + AC_DEFINE_UNQUOTED(PROG_VMSTAT, "$PROG_VMSTAT") + fi + if test ! -z "$PROG_UPTIME" ; then + AC_DEFINE_UNQUOTED(PROG_UPTIME, "$PROG_UPTIME") + fi + if test ! -z "$PROG_UPTIME" ; then + AC_DEFINE_UNQUOTED(PROG_UPTIME, "$PROG_UPTIME") + fi + if test ! -z "$PROG_TAIL" ; then + AC_DEFINE_UNQUOTED(PROG_TAIL, "$PROG_TAIL") + fi +fi + AC_ARG_WITH(catman, [ --with-catman=man|cat Install preformatted manpages[no]], [ |