]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Don't hard code
authorAkim Demaille <akim@epita.fr>
Mon, 19 Mar 2001 13:29:02 +0000 (13:29 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 19 Mar 2001 13:29:02 +0000 (13:29 +0000)
`/bin/sh', use $SHELL.
From Paul Eggert.

ChangeLog
acgeneral.m4
configure
lib/autoconf/general.m4

index a43a69a1827f4c1aa859dbb5ae511a9264232b93..a614bdefdcc2cc46c8ee40d42b81ad7f20dd52de 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-03-19  Akim Demaille  <akim@epita.fr>
+
+       * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Don't hard code
+       `/bin/sh', use $SHELL.
+       From Paul Eggert.
+
 2001-03-19  Akim Demaille  <akim@epita.fr>
 
        * acfunctions.m4 (AC_FUNC_STRERROR_R): Update to
index b8764a3f7e1f1812d4141e7ef0158135cfd8d7a8..70680c18abe02636330b41f0f9bcbf04b3b288c7 100644 (file)
@@ -3588,17 +3588,20 @@ AC_PROVIDE_IFELSE([AC_CONFIG_SUBDIRS], [_AC_OUTPUT_SUBDIRS()])dnl
 # shells die.  Unfortunately the limit is not known precisely...
 m4_define([_AC_OUTPUT_CONFIG_STATUS],
 [AC_MSG_NOTICE([creating $CONFIG_STATUS])
-cat >$CONFIG_STATUS <<\_ACEOF
-#! /bin/sh
+cat >$CONFIG_STATUS <<_ACEOF
+#! $SHELL
 # Generated automatically by configure.
 # Run this file to recreate the current configuration.
 # Compiler output produced by configure, useful for debugging
 # configure, is in config.log if it exists.
 
 debug=false
-as_me=`echo "$[0]" | sed 's,.*/,,'`
-SHELL=${CONFIG_SHELL-/bin/sh}
+as_me=\`echo "\$[0]" | sed 's,.*/,,'\`
+SHELL=\${CONFIG_SHELL-$SHELL}
+
+_ACEOF
 
+cat >>$CONFIG_STATUS <<\_ACEOF
 AS_SHELL_SANITIZE
 _AC_INIT_DEFAULTS_FDS
 cat >&AS_MESSAGE_LOG_FD << EOF
index ff8c00a7ec46ad648c29d913a023c772a4d52341..5adc1fe629f96ec6a63f91f2f01122230d7d9c49 100755 (executable)
--- a/configure
+++ b/configure
@@ -1571,17 +1571,20 @@ ac_clean_files_save=$ac_clean_files
 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 { echo "$as_me:1572: creating $CONFIG_STATUS" >&5
 echo "$as_me: creating $CONFIG_STATUS" >&6;}
-cat >$CONFIG_STATUS <<\_ACEOF
-#! /bin/sh
+cat >$CONFIG_STATUS <<_ACEOF
+#! $SHELL
 # Generated automatically by configure.
 # Run this file to recreate the current configuration.
 # Compiler output produced by configure, useful for debugging
 # configure, is in config.log if it exists.
 
 debug=false
-as_me=`echo "$0" | sed 's,.*/,,'`
-SHELL=${CONFIG_SHELL-/bin/sh}
+as_me=\`echo "\$0" | sed 's,.*/,,'\`
+SHELL=\${CONFIG_SHELL-$SHELL}
+
+_ACEOF
 
+cat >>$CONFIG_STATUS <<\_ACEOF
 # Be Bourne compatible
 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   emulate sh
@@ -1745,7 +1748,7 @@ cat >>$CONFIG_STATUS <<\EOF
     echo "$ac_cs_version"; exit 0 ;;
   --he | --h)
     # Conflict between --help and --header
-    { { echo "$as_me:1748: error: ambiguous option: $1
+    { { echo "$as_me:1751: error: ambiguous option: $1
 Try \`$0 --help' for more information." >&5
 echo "$as_me: error: ambiguous option: $1
 Try \`$0 --help' for more information." >&2;}
@@ -1772,12 +1775,12 @@ Try \`$0 --help' for more information." >&2;}
   'tests/atconfig' ) CONFIG_FILES="$CONFIG_FILES tests/atconfig" ;;
 
   # This is an error.
-  -*) { { echo "$as_me:1775: error: unrecognized option: $1
+  -*) { { echo "$as_me:1778: error: unrecognized option: $1
 Try \`$0 --help' for more information." >&5
 echo "$as_me: error: unrecognized option: $1
 Try \`$0 --help' for more information." >&2;}
    { (exit 1); exit 1; }; } ;;
-  *) { { echo "$as_me:1780: error: invalid argument: $1" >&5
+  *) { { echo "$as_me:1783: error: invalid argument: $1" >&5
 echo "$as_me: error: invalid argument: $1" >&2;}
    { (exit 1); exit 1; }; };;
   esac
@@ -1991,7 +1994,7 @@ done; }
   esac
 
   if test x"$ac_file" != x-; then
-    { echo "$as_me:1994: creating $ac_file" >&5
+    { echo "$as_me:1997: creating $ac_file" >&5
 echo "$as_me: creating $ac_file" >&6;}
     rm -f "$ac_file"
   fi
@@ -2009,7 +2012,7 @@ echo "$as_me: creating $ac_file" >&6;}
       -) echo $tmp/stdin ;;
       [\\/$]* | ?:[\\/]*)
          # Absolute
-         test -f "$f" || { { echo "$as_me:2012: error: cannot find input file: $f" >&5
+         test -f "$f" || { { echo "$as_me:2015: error: cannot find input file: $f" >&5
 echo "$as_me: error: cannot find input file: $f" >&2;}
    { (exit 1); exit 1; }; }
          echo $f;;
@@ -2022,7 +2025,7 @@ echo "$as_me: error: cannot find input file: $f" >&2;}
            echo $srcdir/$f
          else
            # /dev/null tree
-           { { echo "$as_me:2025: error: cannot find input file: $f" >&5
+           { { echo "$as_me:2028: error: cannot find input file: $f" >&5
 echo "$as_me: error: cannot find input file: $f" >&2;}
    { (exit 1); exit 1; }; }
          fi;;
index b8764a3f7e1f1812d4141e7ef0158135cfd8d7a8..70680c18abe02636330b41f0f9bcbf04b3b288c7 100644 (file)
@@ -3588,17 +3588,20 @@ AC_PROVIDE_IFELSE([AC_CONFIG_SUBDIRS], [_AC_OUTPUT_SUBDIRS()])dnl
 # shells die.  Unfortunately the limit is not known precisely...
 m4_define([_AC_OUTPUT_CONFIG_STATUS],
 [AC_MSG_NOTICE([creating $CONFIG_STATUS])
-cat >$CONFIG_STATUS <<\_ACEOF
-#! /bin/sh
+cat >$CONFIG_STATUS <<_ACEOF
+#! $SHELL
 # Generated automatically by configure.
 # Run this file to recreate the current configuration.
 # Compiler output produced by configure, useful for debugging
 # configure, is in config.log if it exists.
 
 debug=false
-as_me=`echo "$[0]" | sed 's,.*/,,'`
-SHELL=${CONFIG_SHELL-/bin/sh}
+as_me=\`echo "\$[0]" | sed 's,.*/,,'\`
+SHELL=\${CONFIG_SHELL-$SHELL}
+
+_ACEOF
 
+cat >>$CONFIG_STATUS <<\_ACEOF
 AS_SHELL_SANITIZE
 _AC_INIT_DEFAULTS_FDS
 cat >&AS_MESSAGE_LOG_FD << EOF