summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>2002-04-25 18:54:02 +0000
committerEzra Peisach <epeisach@mit.edu>2002-04-25 18:54:02 +0000
commita0449ce6ceaeac14fe31dff177dfce27320812f3 (patch)
tree494c4d1a1761accc38f935040a4de5598dc274dc /src
parent04e219f96bda1fd246f1cf302a41d44cc522b3eb (diff)
downloadkrb5-a0449ce6ceaeac14fe31dff177dfce27320812f3.tar.gz
krb5-a0449ce6ceaeac14fe31dff177dfce27320812f3.tar.xz
krb5-a0449ce6ceaeac14fe31dff177dfce27320812f3.zip
* reconf: Only for autoreconf 2.53, create a private copy of
autoreconf with a patch to a bug that prevented use of three levels configure.in files. The bug is fixed in the development version 2.53a. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14423 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/util/ChangeLog7
-rw-r--r--src/util/reconf27
2 files changed, 34 insertions, 0 deletions
diff --git a/src/util/ChangeLog b/src/util/ChangeLog
index 7df40add6..060b85b0e 100644
--- a/src/util/ChangeLog
+++ b/src/util/ChangeLog
@@ -1,3 +1,10 @@
+2002-04-25 Ezra Peisach <epeisach@bu.edu>
+
+ * reconf: Only for autoreconf 2.53, create a private copy of
+ autoreconf with a patch to a bug that prevented use of three
+ levels configure.in files. The bug is fixed in the development
+ version 2.53a.
+
2002-04-16 Danilo Almeida <dalmeida@mit.edu>
* def-check.pl: Handle KRB5_CALLCONV_WRONG in .def file.
diff --git a/src/util/reconf b/src/util/reconf
index 734a8170c..b896227c5 100644
--- a/src/util/reconf
+++ b/src/util/reconf
@@ -47,6 +47,33 @@ if autoreconf --version | sed -e "$sedcmd1" -e "$sedcmd2" | egrep "$patb" >/dev/
localdir=`pwd`
;;
esac
+
+ # Determine if we need to patch autoreconf for 2.53
+ case "$autoconfversion" in
+ 2.53)
+ echo "Patching autoreconf"
+ # Walk the path to find autoreconf
+ autoreconfpath=
+ for i in `echo $PATH | sed -e 's/:/ /g'` ; do
+ if test -r $i/autoreconf; then
+ autoreconfpath=$i/autoreconf
+ break
+ fi
+ done
+ if test "x$autoreconfpath" = "x" ; then
+ echo "Could not find autoreconf executable!!!"
+ exit
+ fi
+
+ echo "About to patch $autoreconfpath to ..."
+ TMPCMD=/tmp/autoreconf$$
+ sed -e 's/push @ARGV, $_;/push @ARGV, catfile ($directory, $_);/' $autoreconfpath > $TMPCMD
+ autoreconf="/bin/sh $TMPCMD"
+ trap "rm $TMPCMD" 0
+ ;;
+ *)
+ ;;
+ esac
else
echo "Couldn't find autoconf 2.13 or higher in your path."
echo " "