From: Akim Demaille Date: Thu, 13 Jul 2000 08:46:08 +0000 (+0000) Subject: * acgeneral.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS): Properly X-Git-Tag: autoconf-2.50~725 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7bcdbd35be1d8905ce914ea81a5cfd0d2c83dce;p=thirdparty%2Fautoconf.git * acgeneral.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS): Properly handle absolute input file names. From Alexandre Oliva. --- diff --git a/ChangeLog b/ChangeLog index d4c542528..afa00c122 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2000-07-13 Akim Demaille + + * acgeneral.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS): Properly + handle absolute input file names. + From Alexandre Oliva. + 2000-07-12 Martin Wilck * aclang.m4 (AC_PROG_F77): Delete AC_BEFORE(AC_PROG_CPP) that diff --git a/acgeneral.m4 b/acgeneral.m4 index e1bfe11de..f835aecf2 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -4635,21 +4635,26 @@ AC_PROVIDE_IFELSE([AC_PROG_INSTALL], # First look for the input files in the build tree, otherwise in the # src tree. ac_file_inputs=`IFS=: - for f in $ac_file_in; do - case $f in - -) echo $tmp/stdin ;; - *) if test -f "$f"; then - # Build tree or absolute - echo $f - elif test -f "$ac_given_srcdir/$f"; then - # Source tree - echo $ac_given_srcdir/$f - else - # /dev/null tree - AC_MSG_ERROR([cannot find input file \\`$f']) - fi;; - esac - done` + for f in $ac_file_in; do + case $f in + -) echo $tmp/stdin ;; + [[\\/$]]* | ?:[[\\/]]*) + # Absolute + test -f "$f" || AC_MSG_ERROR([cannot find input file \\`$f']) + echo $f;; + *) # Relative + if test -f "$f"; then + # Build tree + echo $f + elif test -f "$ac_given_srcdir/$f"; then + # Source tree + echo $ac_given_srcdir/$f + else + # /dev/null tree + AC_MSG_ERROR([cannot find input file \\`$f']) + fi;; + esac + done` EOF cat >>$CONFIG_STATUS <$tmp/in diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index e1bfe11de..f835aecf2 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -4635,21 +4635,26 @@ AC_PROVIDE_IFELSE([AC_PROG_INSTALL], # First look for the input files in the build tree, otherwise in the # src tree. ac_file_inputs=`IFS=: - for f in $ac_file_in; do - case $f in - -) echo $tmp/stdin ;; - *) if test -f "$f"; then - # Build tree or absolute - echo $f - elif test -f "$ac_given_srcdir/$f"; then - # Source tree - echo $ac_given_srcdir/$f - else - # /dev/null tree - AC_MSG_ERROR([cannot find input file \\`$f']) - fi;; - esac - done` + for f in $ac_file_in; do + case $f in + -) echo $tmp/stdin ;; + [[\\/$]]* | ?:[[\\/]]*) + # Absolute + test -f "$f" || AC_MSG_ERROR([cannot find input file \\`$f']) + echo $f;; + *) # Relative + if test -f "$f"; then + # Build tree + echo $f + elif test -f "$ac_given_srcdir/$f"; then + # Source tree + echo $ac_given_srcdir/$f + else + # /dev/null tree + AC_MSG_ERROR([cannot find input file \\`$f']) + fi;; + esac + done` EOF cat >>$CONFIG_STATUS <$tmp/in