]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
If M4 is an absolute file name that
authorDavid MacKenzie <djm@djmnet.org>
Mon, 2 May 1994 23:48:08 +0000 (23:48 +0000)
committerDavid MacKenzie <djm@djmnet.org>
Mon, 2 May 1994 23:48:08 +0000 (23:48 +0000)
no longer exists, use M4=m4.
Fix tr string for Solaris tr.
Add config.h.bot if present.
From richard@sol.kbsi.com (Richard Henderson).

autoheader.in
autoheader.sh
bin/autoheader.in

index 4114ce3f6c69805dcc4591e0713b8e02ff0ab32b..ccba6beb19026956867d42a3163186c015abc2a0 100644 (file)
@@ -33,6 +33,11 @@ if test "${LANG+set}"   = 'set' ; then LANG=C;   export LANG;   fi
 
 test -z "${AC_MACRODIR}" && AC_MACRODIR=@datadir@
 test -z "${M4}" && M4=@M4@
+case "${M4}" in
+/*) # Handle the case that m4 has moved since we were configured.
+    # It may have been found originally in a build directory.
+    test -f "${M4}" || M4=m4 ;;
+esac
 
 print_version=""
 while test $# -gt 0 ; do
@@ -174,7 +179,8 @@ fi
 
 echo "$types" | tr , \\012 | sort | uniq | while read ctype; do
   test -z "$ctype" && continue
-  sym="`echo "${ctype}" | tr '[a-z *]' '[A-Z_P]'`"
+  # Solaris 2.3 tr rejects noncontiguous characters in character classes.
+  sym="`echo "${ctype}" | tr '[a-z] *' '[A-Z]_P'`"
   echo "
 /* The number of bytes in a ${ctype}.  */
 #undef SIZEOF_${sym}"
@@ -201,6 +207,8 @@ for lib in `for x in $libs; do echo $x; done | sort | uniq`; do
 #undef HAVE_LIB${sym}"
 done
 
+test -f ${config_h}.bot && cat ${config_h}.bot
+
 status=0
 
 for sym in $syms; do
index 4114ce3f6c69805dcc4591e0713b8e02ff0ab32b..ccba6beb19026956867d42a3163186c015abc2a0 100644 (file)
@@ -33,6 +33,11 @@ if test "${LANG+set}"   = 'set' ; then LANG=C;   export LANG;   fi
 
 test -z "${AC_MACRODIR}" && AC_MACRODIR=@datadir@
 test -z "${M4}" && M4=@M4@
+case "${M4}" in
+/*) # Handle the case that m4 has moved since we were configured.
+    # It may have been found originally in a build directory.
+    test -f "${M4}" || M4=m4 ;;
+esac
 
 print_version=""
 while test $# -gt 0 ; do
@@ -174,7 +179,8 @@ fi
 
 echo "$types" | tr , \\012 | sort | uniq | while read ctype; do
   test -z "$ctype" && continue
-  sym="`echo "${ctype}" | tr '[a-z *]' '[A-Z_P]'`"
+  # Solaris 2.3 tr rejects noncontiguous characters in character classes.
+  sym="`echo "${ctype}" | tr '[a-z] *' '[A-Z]_P'`"
   echo "
 /* The number of bytes in a ${ctype}.  */
 #undef SIZEOF_${sym}"
@@ -201,6 +207,8 @@ for lib in `for x in $libs; do echo $x; done | sort | uniq`; do
 #undef HAVE_LIB${sym}"
 done
 
+test -f ${config_h}.bot && cat ${config_h}.bot
+
 status=0
 
 for sym in $syms; do
index 4114ce3f6c69805dcc4591e0713b8e02ff0ab32b..ccba6beb19026956867d42a3163186c015abc2a0 100644 (file)
@@ -33,6 +33,11 @@ if test "${LANG+set}"   = 'set' ; then LANG=C;   export LANG;   fi
 
 test -z "${AC_MACRODIR}" && AC_MACRODIR=@datadir@
 test -z "${M4}" && M4=@M4@
+case "${M4}" in
+/*) # Handle the case that m4 has moved since we were configured.
+    # It may have been found originally in a build directory.
+    test -f "${M4}" || M4=m4 ;;
+esac
 
 print_version=""
 while test $# -gt 0 ; do
@@ -174,7 +179,8 @@ fi
 
 echo "$types" | tr , \\012 | sort | uniq | while read ctype; do
   test -z "$ctype" && continue
-  sym="`echo "${ctype}" | tr '[a-z *]' '[A-Z_P]'`"
+  # Solaris 2.3 tr rejects noncontiguous characters in character classes.
+  sym="`echo "${ctype}" | tr '[a-z] *' '[A-Z]_P'`"
   echo "
 /* The number of bytes in a ${ctype}.  */
 #undef SIZEOF_${sym}"
@@ -201,6 +207,8 @@ for lib in `for x in $libs; do echo $x; done | sort | uniq`; do
 #undef HAVE_LIB${sym}"
 done
 
+test -f ${config_h}.bot && cat ${config_h}.bot
+
 status=0
 
 for sym in $syms; do