diff --git a/ChangeLog b/ChangeLog index 75f13e2a58806481056de1196d142e6fc543a399..e2180172364fc8253704839dc1c4466990fded7c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-06-12 Niels M�ller <nisse@lysator.liu.se> + + * configure.ac: Display summary at the end oc configure.. + (asm_path): Set only if enable_assember is yes. + 2011-06-10 Niels M�ller <nisse@lysator.liu.se> * serpent-encrypt.c (SBOX5): Renamed arguments. Eliminated diff --git a/configure.ac b/configure.ac index 8dcc08099bbaf863a472fe6335c7c70c9c975ed7..e849434b135da6cc7bd432780173460a6deda06d 100644 --- a/configure.ac +++ b/configure.ac @@ -186,29 +186,30 @@ fi # Select assembler code asm_path= -case "$host_cpu" in - [i?86* | k[5-8]* | pentium* | athlon]) - asm_path=x86 - ;; - [x86_64 | amd64]) - if test "$ABI" = 64 ; then - asm_path=x86_64 - else +if test "x$enable_assembler" = xyes ; then + case "$host_cpu" in + [i?86* | k[5-8]* | pentium* | athlon]) asm_path=x86 - fi - ;; - *sparc*) - if test "$ABI" = 64 ; then - asm_path=sparc64 - else - asm_path=sparc32 - fi - ;; - *) - enable_assembler=no - ;; -esac - + ;; + [x86_64 | amd64]) + if test "$ABI" = 64 ; then + asm_path=x86_64 + else + asm_path=x86 + fi + ;; + *sparc*) + if test "$ABI" = 64 ; then + asm_path=sparc64 + else + asm_path=sparc32 + fi + ;; + *) + enable_assembler=no + ;; + esac +fi # echo "enable_assembler: $enable_assembler, asm_path: $asm_path" if test "x$enable_assembler" = xyes ; then @@ -593,3 +594,15 @@ AC_CONFIG_FILES([tools/Makefile testsuite/Makefile examples/Makefile]) AC_OUTPUT +AC_MSG_NOTICE([summary of build options: + + Version: ${PACKAGE_STRING} + Host type: ${host} + ABI: ${ABI} + Assembly files: ${asm_path:-none} + Install prefix: ${prefix} + Library directory: ${libdir} + Compiler: ${CC} + Shared libraries: ${enable_shared} + Public key crypto: ${enable_public_key} +])