Преглед на файлове

build: Add a configuration summary to configure output

Remove the notices printed inbetween the checks as this is now printed
as part of the summary.
Guillem Jover преди 10 години
родител
ревизия
c12278e352
променени са 3 файла, в които са добавени 38 реда и са изтрити 2 реда
  1. 37 0
      configure.ac
  2. 1 0
      debian/changelog
  3. 0 2
      m4/dpkg-build.m4

+ 37 - 0
configure.ac

@@ -159,3 +159,40 @@ AC_CONFIG_FILES([ Makefile
 		  utils/Makefile ])
 AC_CONFIG_HEADERS([config.h])
 AC_OUTPUT
+
+# Print the current configuration
+cat <<CONFIG
+
+Configuration:
+  Features:
+    NLS . . . . . . . . . . . . . : $USE_NLS
+    unicode support . . . . . . . : $USE_UNICODE
+    development documentation . . : $build_devel_docs
+    code coverage . . . . . . . . : $enable_coverage
+    build shared libraries  . . . : $enable_shared
+    mmap loaders  . . . . . . . . : $enable_mmap
+    default dpkg-deb compressor . : $with_dpkg_deb_compressor
+
+  Paths:
+    devlibdir . . . . . . . . . . : $devlibdir
+    pkgconfdir  . . . . . . . . . : $pkgconfdir
+    admindir  . . . . . . . . . . : $admindir
+    logdir  . . . . . . . . . . . : $logdir
+    perl interpreter  . . . . . . : $PERL
+    perl libdir . . . . . . . . . : $PERL_LIBDIR
+
+  Programs:
+    update-alternatives . . . . . : $build_update_alternatives
+    start-stop-daemon . . . . . . : $build_start_stop_daemon
+    dselect . . . . . . . . . . . : $build_dselect
+
+  System Libraries:
+    libps . . . . . . . . . . . . : ${have_libps:-no}
+    libkvm  . . . . . . . . . . . : ${have_libkvm:-no}
+    libselinux  . . . . . . . . . : $with_selinux
+    libmd . . . . . . . . . . . . : $with_libmd
+    libz  . . . . . . . . . . . . : $with_zlib
+    liblzma . . . . . . . . . . . : $with_liblzma
+    libbz2  . . . . . . . . . . . : $with_bz2
+    libcurses . . . . . . . . . . : ${have_libcurses:-no}
+CONFIG

+ 1 - 0
debian/changelog

@@ -75,6 +75,7 @@ dpkg (1.18.5) UNRELEASED; urgency=medium
     - Remove unused UA_LIBS variable.
     - Split libps and libkvm detection into their own macros and variables.
     - Make it possible to build without system libmd.
+    - Add a configuration summary to configure output.
   * Test suite:
     - Add a unit test to compile perl code with warnings.
     - Add a unit test for the trigger deferred parser.

+ 0 - 2
m4/dpkg-build.m4

@@ -58,7 +58,6 @@ AC_DEFUN([DPKG_WITH_DIR], [
             [$1="$with_$1"])
   )
   AC_SUBST([$1])
-  AC_MSG_NOTICE([using directory $1 = '$$1'])
 ])# DPKG_WITH_DIR
 
 # DPKG_DEB_COMPRESSOR(COMP)
@@ -75,7 +74,6 @@ AC_DEFUN([DPKG_DEB_COMPRESSOR], [
   AC_DEFINE_UNQUOTED([DPKG_DEB_DEFAULT_COMPRESSOR],
                      [COMPRESSOR_TYPE_]AS_TR_CPP(${with_dpkg_deb_compressor}),
                      [default dpkg-deb build compressor])
-  AC_MSG_NOTICE([using default dpkg-deb compressor = $with_dpkg_deb_compressor])
 ]) # DPKG_DEB_COMPRESSOR
 
 # DPKG_DIST_CHECK(COND, ERROR)