From c4bca9812790cd62bd46b9f8c8a51e062a299512 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 1 Jul 2001 23:33:08 +0000 Subject: [PATCH] * missing: Updated. * lib/missing: Updated. Added comment explaining configure.ac oddity. --- ChangeLog | 4 ++++ lib/missing | 18 +++++++++++++----- missing | 2 ++ 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 965eaf78..e9fa9049 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2001-07-01 Tom Tromey + * missing: Updated. + * lib/missing: Updated. Added comment explaining configure.ac + oddity. + * lib/depcomp: Reorder arguments to gcc3. From Per Oyvind Hvidsten. diff --git a/lib/missing b/lib/missing index 5f9da906..e31663d9 100755 --- a/lib/missing +++ b/lib/missing @@ -25,6 +25,14 @@ fi run=: +# In the cases where this matters, `missing' is being run in the +# srcdir already. +if test -f configure.ac; then + configure_ac=configure.ac +else + configure_ac=configure.in +fi + case "$1" in --run) # Try to run requested program, and just exit if it succeeds. @@ -77,7 +85,7 @@ Supported PROGRAM values: aclocal) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if - you modified \`acinclude.m4' or \`configure.in'. You might want + you modified \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 @@ -86,7 +94,7 @@ WARNING: \`$1' is missing on your system. You should only need it if autoconf) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if - you modified \`configure.in'. You might want to install the + you modified \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure @@ -95,10 +103,10 @@ WARNING: \`$1' is missing on your system. You should only need it if autoheader) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if - you modified \`acconfig.h' or \`configure.in'. You might want + you modified \`acconfig.h' or \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." - files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' configure.in` + files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` test -z "$files" && files="config.h" touch_files= for f in $files; do @@ -114,7 +122,7 @@ WARNING: \`$1' is missing on your system. You should only need it if automake) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if - you modified \`Makefile.am', \`acinclude.m4' or \`configure.in'. + you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print | diff --git a/missing b/missing index 02dd5413..e31663d9 100755 --- a/missing +++ b/missing @@ -25,6 +25,8 @@ fi run=: +# In the cases where this matters, `missing' is being run in the +# srcdir already. if test -f configure.ac; then configure_ac=configure.ac else -- 2.43.5