From: Akim Demaille Date: Mon, 7 Feb 2000 17:23:07 +0000 (+0000) Subject: Give explicit diagnostics when an input file (for config headers; X-Git-Tag: autoconf-2.50~1227 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb4e32afa32e7a49d65150fe34e24a1b8dc652b2;p=thirdparty%2Fautoconf.git Give explicit diagnostics when an input file (for config headers; config files etc.) does not exist. From Jim Meyering. * acgeneral.m4 (AC_OUTPUT_FILES, AC_OUTPUT_HEADERS): Check for the existence of source files. --- diff --git a/ChangeLog b/ChangeLog index 19969bbc1..6f131f699 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2000-02-07 Akim Demaille + + Give explicit diagnostics when an input file (for config headers; + config files etc.) does not exist. + From Jim Meyering. + + * acgeneral.m4 (AC_OUTPUT_FILES, AC_OUTPUT_HEADERS): Check for the + existence of source files. + 2000-02-07 Akim Demaille Torture test config.status, AC_SUBST and AC_DEFINE. diff --git a/acgeneral.m4 b/acgeneral.m4 index 73d46a288..56a6bc017 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -3859,6 +3859,11 @@ changequote([, ])dnl # Don't redirect the output to AC_FILE directly: use `mv' so that updating # is atomic, and doesn't need trapping. ac_file_inputs=`echo $ac_file_in | sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` + for ac_file_input in $ac_file_inputs; + do + test -f "$ac_file_input" || + AC_MSG_ERROR(cannot find input file `$ac_file_input') + done EOF cat >>$CONFIG_STATUS <$ac_cs_root.in diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index 73d46a288..56a6bc017 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -3859,6 +3859,11 @@ changequote([, ])dnl # Don't redirect the output to AC_FILE directly: use `mv' so that updating # is atomic, and doesn't need trapping. ac_file_inputs=`echo $ac_file_in | sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` + for ac_file_input in $ac_file_inputs; + do + test -f "$ac_file_input" || + AC_MSG_ERROR(cannot find input file `$ac_file_input') + done EOF cat >>$CONFIG_STATUS <$ac_cs_root.in