-echo $ac_n "checking for working tcpd.h""... $ac_c" 1>&6
-echo "configure:1308: checking for working tcpd.h" >&5
-oldLibs=$LIBS
-LIBS="$LIBS -lwrap"
-cat > conftest.$ac_ext <<EOF
-#line 1312 "configure"
+# Check whether --enable-tcpd or --disable-tcpd was given.
+if test "${enable_tcpd+set}" = set; then
+ enableval="$enable_tcpd"
+ :
+fi
+
+if test "$enable_tcpd" = "yes"; then
+ echo $ac_n "checking for working tcpd.h""... $ac_c" 1>&6
+echo "configure:1315: checking for working tcpd.h" >&5
+ oldLibs=$LIBS
+ LIBS="$LIBS -lwrap"
+ cat > conftest.$ac_ext <<EOF
+#line 1319 "configure"