694f2c2
From 2ddd36a00654950a81b248be5774ae29369bda81 Mon Sep 17 00:00:00 2001
694f2c2
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
694f2c2
Date: Tue, 8 Oct 2013 15:23:03 +0200
694f2c2
Subject: [PATCH 4/4] Respect --without-local-libwrap
694f2c2
MIME-Version: 1.0
694f2c2
Content-Type: text/plain; charset=UTF-8
694f2c2
Content-Transfer-Encoding: 8bit
694f2c2
694f2c2
Previous code treated --without-local-libwrap as --with-local-libwrap.
694f2c2
694f2c2
Signed-off-by: Petr Písař <ppisar@redhat.com>
694f2c2
---
694f2c2
 configure.ac | 6 ++++--
694f2c2
 1 file changed, 4 insertions(+), 2 deletions(-)
694f2c2
694f2c2
diff --git a/configure.ac b/configure.ac
694f2c2
index f94012c..8c2e509 100644
694f2c2
--- a/configure.ac
694f2c2
+++ b/configure.ac
694f2c2
@@ -118,8 +118,10 @@ AC_REPLACE_FUNCS(strerror)
694f2c2
 dnl Optional software.
694f2c2
 
694f2c2
 AC_ARG_WITH(local-libwrap, AS_HELP_STRING([--with-local-libwrap], 
694f2c2
-                           [Use local copy of tcpd_wrapper.]), 
694f2c2
-            build_libwrap=yes)
694f2c2
+                           [Use local copy of tcpd_wrapper.]))
694f2c2
+if test "${with_local_libwrap}" = yes; then
694f2c2
+    build_libwrap=yes;
694f2c2
+fi
694f2c2
 
694f2c2
 if test "${build_libwrap}" = "yes"; then
694f2c2
    AC_SUBST(TCPD_EXTRA_CFLAGS)
694f2c2
-- 
694f2c2
1.8.3.1
694f2c2