]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
build: only enable silent rules if they are not disabled
authorVincent Bernat <vincent@bernat.im>
Sun, 16 Aug 2015 10:05:03 +0000 (12:05 +0200)
committerVincent Bernat <vincent@bernat.im>
Sun, 16 Aug 2015 10:05:03 +0000 (12:05 +0200)
m4/config_subdirs.m4
m4/libevent.m4

index e71762b25c83d37fc31eaf72763eed95d03e897e..4730f1ab0db92295a07d31c3f14f37e814714571 100644 (file)
@@ -56,6 +56,12 @@ AC_DEFUN([lldp_CONFIG_SUBDIRS], [
   # different subdirs can have different --enable and --with options.
   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
 
+  # Silent rules
+  case $enable_silent_rules in
+    no)  ac_sub_configure_args="$ac_sub_configure_args --disable-silent-rules" ;;
+    *)   ac_sub_configure_args="$ac_sub_configure_args --enable-silent-rules" ;;
+  esac
+
   # Add additional options
   ac_sub_configure_args="$ac_sub_configure_args $2"
 
index 8d28955f0e9b6e37cb460673ae959c38573dedf8..257c8cfee71fc713f8b58717ff7faeb57239096a 100644 (file)
@@ -45,8 +45,16 @@ AC_DEFUN([lldp_CHECK_LIBEVENT], [
     LIBEVENT_LDFLAGS="\$(top_builddir)/libevent/libevent.la"
 
     # Call ./configure in libevent
-    lldp_CONFIG_SUBDIRS([libevent],
-       [--disable-libevent-regress --disable-thread-support --disable-openssl --disable-malloc-replacement --disable-debug-mode --enable-function-sections --disable-shared --with-pic --enable-static --enable-silent-rules])
+    libevent_configure_args="$libevent_configure_args --disable-libevent-regress"
+    libevent_configure_args="$libevent_configure_args --disable-thread-support"
+    libevent_configure_args="$libevent_configure_args --disable-openssl"
+    libevent_configure_args="$libevent_configure_args --disable-malloc-replacement"
+    libevent_configure_args="$libevent_configure_args --disable-debug-mode"
+    libevent_configure_args="$libevent_configure_args --enable-function-sections"
+    libevent_configure_args="$libevent_configure_args --disable-shared"
+    libevent_configure_args="$libevent_configure_args --with-pic"
+    libevent_configure_args="$libevent_configure_args --enable-static"
+    lldp_CONFIG_SUBDIRS([libevent], [$libevent_configure_args])
   fi
 
   AM_CONDITIONAL([LIBEVENT_EMBEDDED], [test x"$LIBEVENT_EMBEDDED" != x])