From b244823900f32891903c44962f530503004a8348 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 22 Apr 2016 11:53:07 +0200 Subject: 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 --- configure | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- cgit v1.2.3-54-g00ecf