* aclocal.m4: fixes for dealing with new version of autoconf, in
authorTom Yu <tlyu@mit.edu>
Fri, 1 Jul 1994 06:23:10 +0000 (06:23 +0000)
committerTom Yu <tlyu@mit.edu>
Fri, 1 Jul 1994 06:23:10 +0000 (06:23 +0000)
particular quoting and BUILDTOP

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3935 dc483132-0cff-0310-8789-dd5450dbe970

src/ChangeLog
src/aclocal.m4

index 04bca0048764cf0a1553829a307976475ad9f58f..bc9543053392aae8f07cce774accbd7cb9a19c4f 100644 (file)
@@ -1,3 +1,8 @@
+Fri Jul  1 02:21:51 1994  Tom Yu  (tlyu at dragons-lair)
+
+       * aclocal.m4: fixes for dealing with new version of autoconf, in
+       particular quoting and BUILDTOP
+
 Wed Jun 29 01:36:38 1994  Tom Yu  (tlyu at dragons-lair)
 
        * aclocal.m4: oops... fixing some problems with the quoter.
index 7bd2cacc52faafcd84522c526b3bb78804bac304..6ac3342077e171bf0660d214e36ff9cc53c3c271 100644 (file)
@@ -30,7 +30,7 @@ dnl set up buildtop stuff
 dnl
 define(AC_BUILDTOP,[.])dnl
 define(AC_SET_BUILDTOP,
-[BUILDTOP=AC_BUILDTOP
+[BUILDTOP=AC_TOPDIR
 AC_SUBST(BUILDTOP)dnl
 ])dnl
 dnl
@@ -46,21 +46,20 @@ if [ -z "${norecursion}" ] ; then
        recurse_args=
        recur_state=
 # ok this stuff really belongs in ac_general.m4, but we'll live :-)
-       for arg do
+       for arg in $configure_args; do
                if test -z "$recur_state" ; then
-                       case $arg in
-                               *\"*|*\\*|*\<<<$>>>*)
-                               arg=`echo $arg|sed -e 's/\\\\/\\\\\\\\/g;s/"/\\\\"/g;s/\\$/\\\\$/g'`
-                               ;;
+                       eval unquoted_arg="$arg"
+                       case "$unquoted_arg" in
                                -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                                recur_state="skip"
                                continue
                                ;;
                                -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                                ;;
+                               *)
+                               recurse_args="$recurse_args $arg"
+                               ;;
                        esac
-                       # yes this is gross but we need it to make sure that things don't get scrod
-                       recurse_args="$recurse_args \"$arg\""
                else
                        recur_state=
                fi