forked from rpms/rpcbind
43 lines
1.2 KiB
Diff
43 lines
1.2 KiB
Diff
commit 29827c82fbb78725478eaf53b140e14a77fad42f
|
|
Author: Steve Dickson <steved@redhat.com>
|
|
Date: Sat Sep 15 11:32:57 2007 -0400
|
|
|
|
Added autoconf rules to turn on secure host checking via libwrap.
|
|
|
|
Signed-off-by: Steve Dickson <steved@redhat.com>
|
|
|
|
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
|
|
|