]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Output error messages on
authorAkim Demaille <akim@epita.fr>
Sat, 23 Jun 2001 13:10:31 +0000 (13:10 +0000)
committerAkim Demaille <akim@epita.fr>
Sat, 23 Jun 2001 13:10:31 +0000 (13:10 +0000)
stderr.
* doc/autoconf.texi (AC_ARG_VAR): Update.

ChangeLog
acgeneral.m4
doc/autoconf.texi
lib/autoconf/general.m4

index f448787b9c98aecd21d9948268cde1151164d4ed..a54d9409854545882905dc7a21f3e9648bc71ae7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-06-23  Akim Demaille  <akim@epita.fr>
+
+       * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Output error messages on
+       stderr.
+       * doc/autoconf.texi (AC_ARG_VAR): Update.
+
 2001-06-21  Akim Demaille  <akim@epita.fr>
 
        * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Die instead of warning when
index c5976995ccb5d947b17472c0c94ae6e48e2d8865..32dc636a662e234d1fa9114d2357b81cb149914e 100644 (file)
@@ -1536,17 +1536,17 @@ for ac_var in `(set) 2>&1 |
   eval ac_new_val="\$ac_env_${ac_var}_value"
   case $ac_old_set,$ac_new_set in
     set,)
-      AS_MESSAGE([error: `$ac_var' was set to `$ac_old_val' in the previous run])
+      AS_MESSAGE([error: `$ac_var' was set to `$ac_old_val' in the previous run], 2)
       ac_cache_corrupted=: ;;
     ,set)
-      AS_MESSAGE([error: `$ac_var' was not set in the previous run])
+      AS_MESSAGE([error: `$ac_var' was not set in the previous run], 2)
       ac_cache_corrupted=: ;;
     ,);;
     *)
       if test "x$ac_old_val" != "x$ac_new_val"; then
-        AS_MESSAGE([error: `$ac_var' has changed since the previous run:])
-        AS_MESSAGE([  former value:  $ac_old_val])
-        AS_MESSAGE([  current value: $ac_new_val])
+        AS_MESSAGE([error: `$ac_var' has changed since the previous run:], 2)
+        AS_MESSAGE([  former value:  $ac_old_val], 2)
+        AS_MESSAGE([  current value: $ac_new_val], 2)
         ac_cache_corrupted=:
       fi;;
   esac
@@ -1566,7 +1566,7 @@ dnl it's sensitive.  Putting any kind of quote in it causes syntax errors.
   fi
 done
 if $ac_cache_corrupted; then
-  AS_MESSAGE([error: changes in the environment can compromise the build])
+  AS_MESSAGE([error: changes in the environment can compromise the build], 2)
   AS_ERROR([run `make distclean' and/or `rm $cache_file' and start over])
 fi
 ])# _AC_ARG_VAR_VALIDATE
index 63358a42ae2bb18297de154ad60dc5a41ce1b975..31a4de26b391261777d3e561747fdd856221a0cb 100644 (file)
@@ -5525,24 +5525,17 @@ CC=bizarre-cc}, it is impossible to notice it in @samp{CC=bizarre-cc
 @example
 $ ./configure --silent --config-cache
 $ CC=cc ./configure --silent --config-cache
-configure: WARNING: `CC' was not set in the previous run
-configure: WARNING: changes in the environment can compromise
-configure: WARNING: the build. consider removing config.cache
-configure: WARNING: and starting over
-$ CC=gcc ./configure --config-cache --silent
-configure: WARNING: `CC' has changed since the previous run:
-configure: WARNING:   former value:  cc
-configure: WARNING:   current value: gcc
-configure: WARNING: changes in the environment can compromise
-configure: WARNING: the build. consider removing config.cache
-configure: WARNING: and starting over
-$ ./configure --silent --config-cache
-configure: WARNING: `CC' was set to `gcc' in the previous run
-configure: WARNING: changes in the environment can compromise
-configure: WARNING: the build. consider removing config.cache
-configure: WARNING: and starting over
+configure: error: `CC' was not set in the previous run
+configure: error: changes in the environment can compromise \
+the build
+configure: error: run `make distclean' and/or \
+`rm config.cache' and start over
 @end example
 
+@noindent
+and similarly if the variable is unset, or if its content is changed.
+
+
 @item
 @var{variable} is kept during automatic reconfiguration
 (@pxref{config.status Invocation}) as if it had been passed as a command
index c5976995ccb5d947b17472c0c94ae6e48e2d8865..32dc636a662e234d1fa9114d2357b81cb149914e 100644 (file)
@@ -1536,17 +1536,17 @@ for ac_var in `(set) 2>&1 |
   eval ac_new_val="\$ac_env_${ac_var}_value"
   case $ac_old_set,$ac_new_set in
     set,)
-      AS_MESSAGE([error: `$ac_var' was set to `$ac_old_val' in the previous run])
+      AS_MESSAGE([error: `$ac_var' was set to `$ac_old_val' in the previous run], 2)
       ac_cache_corrupted=: ;;
     ,set)
-      AS_MESSAGE([error: `$ac_var' was not set in the previous run])
+      AS_MESSAGE([error: `$ac_var' was not set in the previous run], 2)
       ac_cache_corrupted=: ;;
     ,);;
     *)
       if test "x$ac_old_val" != "x$ac_new_val"; then
-        AS_MESSAGE([error: `$ac_var' has changed since the previous run:])
-        AS_MESSAGE([  former value:  $ac_old_val])
-        AS_MESSAGE([  current value: $ac_new_val])
+        AS_MESSAGE([error: `$ac_var' has changed since the previous run:], 2)
+        AS_MESSAGE([  former value:  $ac_old_val], 2)
+        AS_MESSAGE([  current value: $ac_new_val], 2)
         ac_cache_corrupted=:
       fi;;
   esac
@@ -1566,7 +1566,7 @@ dnl it's sensitive.  Putting any kind of quote in it causes syntax errors.
   fi
 done
 if $ac_cache_corrupted; then
-  AS_MESSAGE([error: changes in the environment can compromise the build])
+  AS_MESSAGE([error: changes in the environment can compromise the build], 2)
   AS_ERROR([run `make distclean' and/or `rm $cache_file' and start over])
 fi
 ])# _AC_ARG_VAR_VALIDATE