From: Yann E. MORIN Date: Wed, 3 Aug 2016 20:55:55 +0000 (+0200) Subject: configure.ac: generate lists of frontends and libs before output X-Git-Tag: v4.7.0.0~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8561ba24f9bd4e0e4787d3311e3ad2b1a30cb59b;p=kconfig-frontends configure.ac: generate lists of frontends and libs before output Currently, none of those lists is AC_SUBST()ed, but a new one will be added soon, that needs to be AC_SUBST()ed. Signed-off-by: "Yann E. MORIN" --- diff --git a/configure.ac b/configure.ac index ad923e9..e44b442 100644 --- a/configure.ac +++ b/configure.ac @@ -460,6 +460,23 @@ AC_SUBST( [KCONFIGPARSER_LIB_VERSION], [m4_esyscmd_s([./scripts/version.sh --plain])]) +#---------------------------------------- +# Pretty-print the configuration settings +[fe_list=] +AS_IF([test "$enable_conf" = "yes"], [fe_list="$fe_list conf" ]) +AS_IF([test "$enable_gconf" = "yes"], [fe_list="$fe_list gconf"]) +AS_IF([test "$enable_mconf" = "yes"], [fe_list="$fe_list mconf"]) +AS_IF([test "$enable_nconf" = "yes"], [fe_list="$fe_list nconf"]) +AS_IF([test "$enable_qconf" = "yes"], [fe_list="$fe_list qconf"]) + +[lib_list=] +AS_IF( + [test "$enable_shared" = "yes"], + [lib_list="$lib_list shared (version: $KCONFIGPARSER_LIB_VERSION)"]) +AS_IF( + [test "$enable_static" = "yes"], + [lib_list="$lib_list${lib_list:+,} static"]) + #---------------------------------------- # Finalise AC_CONFIG_FILES([ @@ -480,23 +497,6 @@ AC_CONFIG_FILES([ ]) AC_OUTPUT -#---------------------------------------- -# Pretty-print the configuration settings -[fe_list=] -AS_IF([test "$enable_conf" = "yes"], [fe_list="$fe_list conf" ]) -AS_IF([test "$enable_gconf" = "yes"], [fe_list="$fe_list gconf"]) -AS_IF([test "$enable_mconf" = "yes"], [fe_list="$fe_list mconf"]) -AS_IF([test "$enable_nconf" = "yes"], [fe_list="$fe_list nconf"]) -AS_IF([test "$enable_qconf" = "yes"], [fe_list="$fe_list qconf"]) - -[lib_list=] -AS_IF( - [test "$enable_shared" = "yes"], - [lib_list="$lib_list shared (version: $KCONFIGPARSER_LIB_VERSION)"]) -AS_IF( - [test "$enable_static" = "yes"], - [lib_list="$lib_list${lib_list:+,} static"]) - AC_MSG_NOTICE() AC_MSG_NOTICE([Configured with:]) AC_MSG_NOTICE([- parser library :$lib_list])