(_AC_INIT_DEFAULTS, AC_OUTPUT): Use it.
+2001-01-16 Akim Demaille <akim@epita.fr>
+
+ * acgeneral.m4 (_AC_INIT_LOG_COMPLETE): Eve out from AC_OUTPUT.
+ (_AC_INIT_DEFAULTS, AC_OUTPUT): Use it.
+
2001-01-16 Akim Demaille <akim@epita.fr>
* doc/autoconf.texi: Lots of additions and changes.
])# _AC_INIT_DEFAULTS_FDS
+# _AC_INIT_LOG_COMPLETE
+# ---------------------
+# At the end of configure, dump some useful information in the
+# log, even if AC_OUTPUT was not called.
+AC_DEFUN([_AC_INIT_LOG_COMPLETE],
+[# Save into config.log some information that might help in debugging.
+cat <<_ACEOF >&AS_MESSAGE_LOG_FD
+
+## ----------------- ##
+## Cache variables. ##
+## ----------------- ##
+
+_ACEOF
+_AC_CACHE_DUMP >&AS_MESSAGE_LOG_FD
+
+sed '/^$/d' confdefs.h >conftest.log
+if test -s conftest.log; then
+ cat <<_ACEOF >&AS_MESSAGE_LOG_FD
+
+## ------------ ##
+## confdefs.h. ##
+## ------------ ##
+
+_ACEOF
+ cat conftest.log >&AS_MESSAGE_LOG_FD
+fi
+(echo; echo) >&AS_MESSAGE_LOG_FD
+])# _AC_INIT_LOG_COMPLETE
+
+
# _AC_INIT_DEFAULTS
# -----------------
# Values which defaults can be set from `configure.ac'.
## ------------ ##
EOF
+m4_wrap([AC_EXPAND_ONCE([_AC_INIT_LOG_COMPLETE])])dnl
_AC_INIT_DEFAULTS_FDS
#
m4_divert_push([BODY])])
+
# AC_INIT([PACKAGE, VERSION, [BUG-REPORT])
# ----------------------------------------
# Include the user macro files, prepare the diversions, and output the
dnl Commands to run before creating config.status.
AC_OUTPUT_COMMANDS_PRE()dnl
-# Save into config.log some information that might help in debugging.
-cat <<_ACEOF >&AS_MESSAGE_LOG_FD
-
-## ----------------- ##
-## Cache variables. ##
-## ----------------- ##
-
-_ACEOF
-_AC_CACHE_DUMP >&AS_MESSAGE_LOG_FD
-cat <<_ACEOF >&AS_MESSAGE_LOG_FD
-
-## ------------ ##
-## confdefs.h. ##
-## ------------ ##
-
-_ACEOF
-sed '/^$/d' confdefs.h >&AS_MESSAGE_LOG_FD
+AC_EXPAND_ONCE([_AC_INIT_LOG_COMPLETE])
: ${CONFIG_STATUS=./config.status}
ac_clean_files_save=$ac_clean_files
])# _AC_INIT_DEFAULTS_FDS
+# _AC_INIT_LOG_COMPLETE
+# ---------------------
+# At the end of configure, dump some useful information in the
+# log, even if AC_OUTPUT was not called.
+AC_DEFUN([_AC_INIT_LOG_COMPLETE],
+[# Save into config.log some information that might help in debugging.
+cat <<_ACEOF >&AS_MESSAGE_LOG_FD
+
+## ----------------- ##
+## Cache variables. ##
+## ----------------- ##
+
+_ACEOF
+_AC_CACHE_DUMP >&AS_MESSAGE_LOG_FD
+
+sed '/^$/d' confdefs.h >conftest.log
+if test -s conftest.log; then
+ cat <<_ACEOF >&AS_MESSAGE_LOG_FD
+
+## ------------ ##
+## confdefs.h. ##
+## ------------ ##
+
+_ACEOF
+ cat conftest.log >&AS_MESSAGE_LOG_FD
+fi
+(echo; echo) >&AS_MESSAGE_LOG_FD
+])# _AC_INIT_LOG_COMPLETE
+
+
# _AC_INIT_DEFAULTS
# -----------------
# Values which defaults can be set from `configure.ac'.
## ------------ ##
EOF
+m4_wrap([AC_EXPAND_ONCE([_AC_INIT_LOG_COMPLETE])])dnl
_AC_INIT_DEFAULTS_FDS
#
m4_divert_push([BODY])])
+
# AC_INIT([PACKAGE, VERSION, [BUG-REPORT])
# ----------------------------------------
# Include the user macro files, prepare the diversions, and output the
dnl Commands to run before creating config.status.
AC_OUTPUT_COMMANDS_PRE()dnl
-# Save into config.log some information that might help in debugging.
-cat <<_ACEOF >&AS_MESSAGE_LOG_FD
-
-## ----------------- ##
-## Cache variables. ##
-## ----------------- ##
-
-_ACEOF
-_AC_CACHE_DUMP >&AS_MESSAGE_LOG_FD
-cat <<_ACEOF >&AS_MESSAGE_LOG_FD
-
-## ------------ ##
-## confdefs.h. ##
-## ------------ ##
-
-_ACEOF
-sed '/^$/d' confdefs.h >&AS_MESSAGE_LOG_FD
+AC_EXPAND_ONCE([_AC_INIT_LOG_COMPLETE])
: ${CONFIG_STATUS=./config.status}
ac_clean_files_save=$ac_clean_files