summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-04-22 11:53:07 +0200
committerTobias Klauser <tklauser@distanz.ch>2016-04-22 11:54:48 +0200
commitb244823900f32891903c44962f530503004a8348 (patch)
treebf1fd37e86f5efc126f0a16ab9cf4be58f1e0231
parent6b7f7cc3ff9590caa858808fb47f0a82ad17f8fc (diff)
build: configure: Write a comment to config.h for disabled features
When looking at config.h it should be obvious which features were enabled and disabled, so put a comment there in cased they are disabled. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rwxr-xr-xconfigure10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure b/configure
index 5055654..067b675 100755
--- a/configure
+++ b/configure
@@ -602,22 +602,32 @@ gen_config_hdr()
if [ "$HAVE_LIBPCAP" == "1" ] ; then
_have_libpcap="#define HAVE_TCPDUMP_LIKE_FILTER 1"
+ else
+ _have_libpcap="/* HAVE_TCPDUMP_LIKE_FILTER is not defined */"
fi
if [ "$HAVE_HWTSTAMP" == "1" ] ; then
_have_hwts="#define HAVE_HARDWARE_TIMESTAMPING 1"
+ else
+ _have_hwts="/* HAVE_HARDWARE_TIMESTAMPING is not defined */"
fi
if [ "$HAVE_LIBGEOIP" == "1" ] ; then
_have_libgeoip="#define HAVE_GEOIP 1"
+ else
+ _have_libgeoip="/* HAVE_GEOIP is not defined */"
fi
if [ "$HAVE_LIBZ" == "1" ] ; then
_have_libz="#define HAVE_LIBZ 1"
+ else
+ _have_libz="/* HAVE_LIBZ is not defined */"
fi
if [ "$HAVE_TPACKET3" == "1" ] ; then
_have_tp3="#define HAVE_TPACKET3 1"
+ else
+ _have_tp3="/* HAVE_TPACKET3 is not defined */"
fi
cat > config.h << EOF