|
|
9cfdb5 |
--- autoconf-2.13/autoconf.sh~ Fri Mar 26 20:50:48 1999
|
|
|
9cfdb5 |
+++ autoconf-2.13/autoconf.sh Fri Mar 26 20:58:22 1999
|
|
|
9cfdb5 |
@@ -52,13 +52,13 @@
|
|
|
9cfdb5 |
while test $# -gt 0 ; do
|
|
|
9cfdb5 |
case "${1}" in
|
|
|
9cfdb5 |
-h | --help | --h* )
|
|
|
9cfdb5 |
- echo "${usage}" 1>&2; exit 0 ;;
|
|
|
9cfdb5 |
+ echo "${usage}" 1>&2; rm -f $tmpout ; exit 0 ;;
|
|
|
9cfdb5 |
--localdir=* | --l*=* )
|
|
|
9cfdb5 |
localdir="`echo \"${1}\" | sed -e 's/^[^=]*=//'`"
|
|
|
9cfdb5 |
shift ;;
|
|
|
9cfdb5 |
-l | --localdir | --l*)
|
|
|
9cfdb5 |
shift
|
|
|
9cfdb5 |
- test $# -eq 0 && { echo "${usage}" 1>&2; exit 1; }
|
|
|
9cfdb5 |
+ test $# -eq 0 && { echo "${usage}" 1>&2; rm -f $tmpout; exit 1; }
|
|
|
9cfdb5 |
localdir="${1}"
|
|
|
9cfdb5 |
shift ;;
|
|
|
9cfdb5 |
--macrodir=* | --m*=* )
|
|
|
9cfdb5 |
@@ -66,7 +66,7 @@
|
|
|
9cfdb5 |
shift ;;
|
|
|
9cfdb5 |
-m | --macrodir | --m* )
|
|
|
9cfdb5 |
shift
|
|
|
9cfdb5 |
- test $# -eq 0 && { echo "${usage}" 1>&2; exit 1; }
|
|
|
9cfdb5 |
+ test $# -eq 0 && { echo "${usage}" 1>&2; rm -f $tmpout; exit 1; }
|
|
|
9cfdb5 |
AC_MACRODIR="${1}"
|
|
|
9cfdb5 |
shift ;;
|
|
|
9cfdb5 |
--version | --v* )
|
|
|
9cfdb5 |
@@ -76,7 +76,7 @@
|
|
|
9cfdb5 |
- ) # Use stdin as input.
|
|
|
9cfdb5 |
break ;;
|
|
|
9cfdb5 |
-* )
|
|
|
9cfdb5 |
- echo "${usage}" 1>&2; exit 1 ;;
|
|
|
9cfdb5 |
+ echo "${usage}" 1>&2; rm -f $tmpout; exit 1 ;;
|
|
|
9cfdb5 |
* )
|
|
|
9cfdb5 |
break ;;
|
|
|
9cfdb5 |
esac
|
|
|
9cfdb5 |
@@ -86,13 +86,14 @@
|
|
|
9cfdb5 |
version=`sed -n 's/define.AC_ACVERSION.[ ]*\([0-9.]*\).*/\1/p' \
|
|
|
9cfdb5 |
$AC_MACRODIR/acgeneral.m4`
|
|
|
9cfdb5 |
echo "Autoconf version $version"
|
|
|
9cfdb5 |
+ rm -f $tmpout
|
|
|
9cfdb5 |
exit 0
|
|
|
9cfdb5 |
fi
|
|
|
9cfdb5 |
|
|
|
9cfdb5 |
case $# in
|
|
|
9cfdb5 |
0) infile=configure.in ;;
|
|
|
9cfdb5 |
1) infile="$1" ;;
|
|
|
9cfdb5 |
- *) echo "$usage" >&2; exit 1 ;;
|
|
|
9cfdb5 |
+ *) echo "$usage" >&2; rm -f $tmpout; exit 1 ;;
|
|
|
9cfdb5 |
esac
|
|
|
9cfdb5 |
|
|
|
9cfdb5 |
trap 'rm -f $tmpin $tmpout; exit 1' 1 2 15
|
|
|
9cfdb5 |
@@ -103,6 +104,7 @@
|
|
|
9cfdb5 |
infile=$tmpin
|
|
|
9cfdb5 |
elif test ! -r "$infile"; then
|
|
|
9cfdb5 |
echo "autoconf: ${infile}: No such file or directory" >&2
|
|
|
9cfdb5 |
+ rm -f $tmpin $tmpout
|
|
|
9cfdb5 |
exit 1
|
|
|
9cfdb5 |
fi
|
|
|
9cfdb5 |
|
|
|
9cfdb5 |
@@ -111,6 +113,8 @@
|
|
|
9cfdb5 |
else
|
|
|
9cfdb5 |
use_localdir=
|
|
|
9cfdb5 |
fi
|
|
|
9cfdb5 |
+# Make sure we don't leave those around - they are annoying
|
|
|
9cfdb5 |
+trap 'rm -f $tmpin $tmpout' 0
|
|
|
9cfdb5 |
|
|
|
9cfdb5 |
# Use the frozen version of Autoconf if available.
|
|
|
9cfdb5 |
r= f=
|
|
|
9cfdb5 |
@@ -118,7 +122,7 @@
|
|
|
9cfdb5 |
case `$M4 --help < /dev/null 2>&1` in
|
|
|
9cfdb5 |
*reload-state*) test -r $AC_MACRODIR/autoconf.m4f && { r=--reload f=f; } ;;
|
|
|
9cfdb5 |
*traditional*) ;;
|
|
|
9cfdb5 |
-*) echo Autoconf requires GNU m4 1.1 or later >&2; rm -f $tmpin; exit 1 ;;
|
|
|
9cfdb5 |
+*) echo Autoconf requires GNU m4 1.1 or later >&2; rm -f $tmpin $tmpout; exit 1 ;;
|
|
|
9cfdb5 |
esac
|
|
|
9cfdb5 |
|
|
|
9cfdb5 |
$M4 -I$AC_MACRODIR $use_localdir $r autoconf.m4$f $infile > $tmpout ||
|
|
|
9cfdb5 |
@@ -154,6 +158,6 @@
|
|
|
9cfdb5 |
/__oline__/s/^\([0-9][0-9]*\):\(.*\)__oline__/\2\1/
|
|
|
9cfdb5 |
' >&4
|
|
|
9cfdb5 |
|
|
|
9cfdb5 |
-rm -f $tmpout
|
|
|
9cfdb5 |
+rm -f $tmpout $tmpin
|
|
|
9cfdb5 |
|
|
|
9cfdb5 |
exit $status
|
|
|
9cfdb5 |
--- autoconf-2.13/autoupdate.sh~ Fri Mar 26 20:50:48 1999
|
|
|
9cfdb5 |
+++ autoconf-2.13/autoupdate.sh Fri Mar 26 21:02:18 1999
|
|
|
9cfdb5 |
@@ -35,13 +35,13 @@
|
|
|
9cfdb5 |
while test $# -gt 0 ; do
|
|
|
9cfdb5 |
case "${1}" in
|
|
|
9cfdb5 |
-h | --help | --h* )
|
|
|
9cfdb5 |
- echo "${usage}" 1>&2; exit 0 ;;
|
|
|
9cfdb5 |
+ echo "${usage}" 1>&2; rm -f $sedtmp; exit 0 ;;
|
|
|
9cfdb5 |
--macrodir=* | --m*=* )
|
|
|
9cfdb5 |
AC_MACRODIR="`echo \"${1}\" | sed -e 's/^[^=]*=//'`"
|
|
|
9cfdb5 |
shift ;;
|
|
|
9cfdb5 |
-m | --macrodir | --m* )
|
|
|
9cfdb5 |
shift
|
|
|
9cfdb5 |
- test $# -eq 0 && { echo "${usage}" 1>&2; exit 1; }
|
|
|
9cfdb5 |
+ test $# -eq 0 && { echo "${usage}" 1>&2; rm -f $sedtmp; exit 1; }
|
|
|
9cfdb5 |
AC_MACRODIR="${1}"
|
|
|
9cfdb5 |
shift ;;
|
|
|
9cfdb5 |
--version | --versio | --versi | --vers)
|
|
|
9cfdb5 |
@@ -51,7 +51,7 @@
|
|
|
9cfdb5 |
- ) # Use stdin as input.
|
|
|
9cfdb5 |
break ;;
|
|
|
9cfdb5 |
-* )
|
|
|
9cfdb5 |
- echo "${usage}" 1>&2; exit 1 ;;
|
|
|
9cfdb5 |
+ echo "${usage}" 1>&2; rm -f $sedtmp; exit 1 ;;
|
|
|
9cfdb5 |
* )
|
|
|
9cfdb5 |
break ;;
|
|
|
9cfdb5 |
esac
|
|
|
9cfdb5 |
@@ -61,6 +61,7 @@
|
|
|
9cfdb5 |
version=`sed -n 's/define.AC_ACVERSION.[ ]*\([0-9.]*\).*/\1/p' \
|
|
|
9cfdb5 |
$AC_MACRODIR/acgeneral.m4`
|
|
|
9cfdb5 |
echo "Autoconf version $version"
|
|
|
9cfdb5 |
+ rm -f $sedtmp
|
|
|
9cfdb5 |
exit 0
|
|
|
9cfdb5 |
fi
|
|
|
9cfdb5 |
|
|
|
9cfdb5 |
@@ -68,6 +69,7 @@
|
|
|
9cfdb5 |
|
|
|
9cfdb5 |
tmpout=acupo.$$
|
|
|
9cfdb5 |
trap 'rm -f $sedtmp $tmpout; exit 1' 1 2 15
|
|
|
9cfdb5 |
+trap 'rm -f $sedtmp' 0
|
|
|
9cfdb5 |
case $# in
|
|
|
9cfdb5 |
0) infile=configure.in; out="> $tmpout"
|
|
|
9cfdb5 |
# Make sure $infile can be read, and $tmpout has the same permissions.
|