diff options
author | Steve Dickson <steved@redhat.com> | 2007-09-15 11:32:57 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2007-09-15 11:32:57 -0400 |
commit | 29827c82fbb78725478eaf53b140e14a77fad42f (patch) | |
tree | ee68ca4bd04b7f28974b5ab7be8e02c11cc143ad | |
parent | c24026e7c2949ede4fc292335df1a08c3f6575fe (diff) | |
download | rpcbind-29827c82fbb78725478eaf53b140e14a77fad42f.tar.gz |
Added autoconf rules to turn on secure host checking via libwrap.
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r-- | configure.in | 8 | ||||
-rw-r--r-- | src/Makefile.am | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/configure.in b/configure.in index dfe5907..2bdf830 100644 --- a/configure.in +++ b/configure.in @@ -52,6 +52,14 @@ AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h \ AC_CHECK_LIB([pthread], [pthread_create]) AC_CHECK_LIB([tirpc], [clnt_create]) +AC_ARG_ENABLE(libwrap,[ --enable-libwrap Enables host name checking], + [case "${enableval}" in + yes) libwarp=true + AC_CHECK_LIB([wrap], [hosts_access]) ;; + no) libwarp=no ;; + *) AC_MSG_ERROR(bad value ${enableval} for --enable-libwrap) ;; + esac],[libwarp=false]) +AM_CONDITIONAL(LIBWRAP, test x$libwarp = xtrue) AC_CONFIG_FILES([Makefile src/Makefile man/Makefile]) AC_OUTPUT() diff --git a/src/Makefile.am b/src/Makefile.am index fd80847..d66b43f 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -9,6 +9,10 @@ if WARMSTART INCLUDES += -DWARMSTART endif +if LIBWRAP +INCLUDES += -DLIBWRAP +endif + bin_PROGRAMS = rpcbind rpcinfo |