From 2a1a6bda2b5a7fd8fd79cdf60ee86a02c2d55107 Mon Sep 17 00:00:00 2001 From: Ken Hornstein Date: Thu, 2 Feb 2012 22:13:57 -0500 Subject: [PATCH] Move the eval statements inside of AC_CONFIG_COMMANDS_POST macro, otherwise the stuff we output might not be correct. --- configure.ac | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/configure.ac b/configure.ac index 6a75a38..ba848c3 100644 --- a/configure.ac +++ b/configure.ac @@ -733,6 +733,19 @@ nmh_cv_path_signal_h=$SIGNAL_H SIGNAL_H=$nmh_cv_path_signal_h AC_SUBST(SIGNAL_H)dnl +dnl +dnl Sigh, this is required because under the new world order autoconf has +dnl nothing to create in a few of the build directories when doing an object +dnl tree build. So make sure we created certain directories if they don't +dnl exist. +dnl + +AC_CONFIG_COMMANDS([build-directories], +[test -d etc || ${MKDIR_P} etc +test -d man || ${MKDIR_P} man]) + +AC_CONFIG_COMMANDS_POST([ + dnl These odd looking assignments are done to expand out unexpanded dnl variables in bindir et al (for instance mandir is '${datarootdir}/man', dnl but expanding that gives '${prefix}/share/man', so we need to expand @@ -746,18 +759,6 @@ eval "nmhlib=${libdir}"; eval "nmhlib=${nmhlib}" eval "nmhman=${mandir}"; eval "nmhman=${nmhman}" eval "nmhrpm=${nmhrpm}"; -dnl -dnl Sigh, this is required because under the new world order autoconf has -dnl nothing to create in a few of the build directories when doing an object -dnl tree build. So make sure we created certain directories if they don't -dnl exist. -dnl - -AC_CONFIG_COMMANDS([build-directories], -[test -d etc || ${MKDIR_P} etc -test -d man || ${MKDIR_P} man]) - -AC_CONFIG_COMMANDS_POST([ echo " nmh configuration ----------------- -- 1.7.10.4