Subject: ./configure summary?

./configure summary?

From: Simon Josefsson <>
Date: Mon, 01 Mar 2010 12:37:00 +0100

Any objections to pushing the patch below, so that when ./configure has
completed it will print something like this:

config.status: executing depfiles commands
config.status: executing libtool commands
configure: summary of build options:

  version: 1.2.5_DEV
  Host type: i686-pc-linux-gnu
  Install prefix: /usr/local
  Compiler: gcc
  Compiler flags: -g -O2
  Library types: Shared=yes, Static=yes
  Crypto library: openssl: yes (AES-CTR: no) libgcrypt:
  Debug build: no
  Path to sshd: /usr/sbin/sshd (only for self-tests)
  libz compression: yes

jas_at_mocca:~/src/libssh2 master$


diff --git a/ b/
index a9b54b0..4debd24 100644
--- a/
+++ b/
@@ -152,6 +152,7 @@ dnl ************************************************************
 dnl option to switch on compiler debug options
 AC_MSG_CHECKING([whether to enable pedantic and debug compiler options])
 AC_HELP_STRING([--enable-debug],[Enable pedantic and debug options])
 AC_HELP_STRING([--disable-debug],[Disable debug options]),
@@ -160,7 +161,7 @@ AC_HELP_STRING([--disable-debug],[Disable debug options]),
   *) AC_MSG_RESULT(yes)
+ enable_debug=yes
     CFLAGS="$CFLAGS -g"
@@ -267,3 +268,17 @@ AC_CONFIG_FILES([Makefile
+AC_MSG_NOTICE([summary of build options:
+ version: ${VERSION}
+ Host type: ${host}
+ Install prefix: ${prefix}
+ Compiler: ${CC}
+ Compiler flags: ${CFLAGS}
+ Library types: Shared=${enable_shared}, Static=${enable_static}
+ Crypto library: openssl: $ac_cv_libssl (AES-CTR: $ac_cv_func_EVP_aes128_ctr) libgcrypt: $ac_cv_libgcrypt
+ Debug build: $enable_debug
+ Path to sshd: $ac_cv_path_SSHD (only for self-tests)
+ libz compression: $ac_cv_libz
Received on 2010-03-01