]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* acgeneral.m4: s/1>&/>&/g.
authorAkim Demaille <akim@epita.fr>
Tue, 11 Apr 2000 09:21:29 +0000 (09:21 +0000)
committerAkim Demaille <akim@epita.fr>
Tue, 11 Apr 2000 09:21:29 +0000 (09:21 +0000)
(AC_FD_LOG): New macro, replaces...
(AC_FD_CC): this.  Provide an AU definition.
(_AC_ECHO_UNQUOTED, _AC_ECHO_N): Use m4_default.

ChangeLog
acgeneral.m4
aclang.m4
configure
lib/autoconf/c.m4
lib/autoconf/fortran.m4
lib/autoconf/general.m4
lib/autoconf/lang.m4

index cb567ad7faa661fd39c6f5964e2226f6a4994ad2..3cc06a979ebbab4e0fc34a5e2fa5bec80134ec90 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2000-04-07  Akim Demaille  <akim@epita.fr>
+
+       * acgeneral.m4: s/1>&/>&/g.
+       (AC_FD_LOG): New macro, replaces...
+       (AC_FD_CC): this.  Provide an AU definition.
+       (_AC_ECHO_UNQUOTED, _AC_ECHO_N): Use m4_default.
+
 2000-04-05  Akim Demaille  <akim@epita.fr>
 
        At the end of `./configure', save the cache values, and the CPP
index bad8e97c59b79532d4097e2e4538bb7136ae49a0..40445453476b176ec1c59f63283010caf680d062 100644 (file)
@@ -1454,16 +1454,17 @@ done
 # 2 errors and warnings
 # 3 some systems may open it to /dev/tty
 # 4 used on the Kubota Titan
-define(AC_FD_MSG, 6)dnl
+define([AC_FD_MSG], 6)dnl
 @%:@ AC_FD_MSG checking for... messages and results
-define(AC_FD_CC, 5)dnl
-@%:@ AC_FD_CC compiler messages saved in config.log
+define([AC_FD_LOG], 5)dnl
+AU_DEFUN([AC_FD_CC], [AC_FD_LOG])dnl That's how it used to be named.
+@%:@ AC_FD_LOG compiler messages saved in config.log
 if test "$silent" = yes; then
   exec AC_FD_MSG>/dev/null
 else
   exec AC_FD_MSG>&1
 fi
-exec AC_FD_CC>./config.log
+exec AC_FD_LOG>./config.log
 
 echo "\
 This file contains any messages produced by compilers while
@@ -1472,7 +1473,7 @@ running configure, to aid debugging if configure makes a mistake.
 It was created by configure ifset([AC_PACKAGE_STRING],
                             [(AC_PACKAGE_STRING)]) AC_ACVERSION, executed with
  > [$]0 $ac_configure_args
-" 1>&AC_FD_CC
+" >&AC_FD_LOG
 
 # confdefs.h avoids OS command line length limits that DEFS can exceed.
 rm -rf conftest* confdefs.h
@@ -1801,7 +1802,7 @@ dnl Set the other $[1] vars.  Propagate the failures of config.sub.
   ac_cv_$1_vendor=`echo $ac_cv_$1 | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\2/'`
   ac_cv_$1_os=`echo $ac_cv_$1 | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\3/'`
 else
-  echo $ECHO_N "(cached) $ECHO_C" 1>&AC_FD_MSG
+  echo $ECHO_N "(cached) $ECHO_C" >&AC_FD_MSG
 fi
 
 AC_MSG_RESULT($ac_cv_$1)
@@ -1963,7 +1964,7 @@ define(AC_CACHE_VAL,
 dnl shell variable, so we need the eval.
 dnl if test "${$1+set}" = set; then
 AC_VAR_IF_SET([$1],
-              [echo $ECHO_N "(cached) $ECHO_C" 1>&AC_FD_MSG],
+              [echo $ECHO_N "(cached) $ECHO_C" >&AC_FD_MSG],
               [$2])])
 
 
@@ -2099,7 +2100,7 @@ define(_AC_SH_QUOTE,
 # Expands into a sh call to echo onto FD (default is AC_FD_MSG).
 # The shell performs its expansions on STRING.
 define([_AC_ECHO_UNQUOTED],
-[echo "[$1]" 1>&ifelse($2,, AC_FD_MSG, $2)])
+[echo "[$1]" >&m4_default([$2], [AC_FD_MSG])])
 
 
 # _AC_ECHO(STRING, [FD])
@@ -2113,59 +2114,59 @@ define([_AC_ECHO],
 # _AC_ECHO_N(STRING, [FD])
 # ------------------------
 # Same as _AC_ECHO, but echo doesn't return to a new line.
-define(_AC_ECHO_N,
-[echo $ECHO_N "_AC_SH_QUOTE($1)$ECHO_C" 1>&ifelse($2,,AC_FD_MSG,$2)])
+define([_AC_ECHO_N],
+[echo $ECHO_N "_AC_SH_QUOTE($1)$ECHO_C" >&m4_default([$2], [AC_FD_MSG])])
 
 
 # AC_MSG_CHECKING(FEATURE-DESCRIPTION)
 # ------------------------------------
-define(AC_MSG_CHECKING,
+define([AC_MSG_CHECKING],
 [_AC_ECHO_N([checking $1... ])
-_AC_ECHO([configure:__oline__: checking $1], AC_FD_CC)])
+_AC_ECHO([configure:__oline__: checking $1], AC_FD_LOG)])
 
 
 # AC_CHECKING(FEATURE-DESCRIPTION)
 # --------------------------------
-define(AC_CHECKING,
+define([AC_CHECKING],
 [_AC_ECHO([checking $1])
-_AC_ECHO([configure:__oline__: checking $1], AC_FD_CC)])
+_AC_ECHO([configure:__oline__: checking $1], AC_FD_LOG)])
 
 
 # AC_MSG_RESULT(RESULT-DESCRIPTION)
 # ---------------------------------
-define(AC_MSG_RESULT,
+define([AC_MSG_RESULT],
 [_AC_ECHO([$ECHO_T""$1])])
 
 
 # AC_MSG_RESULT_UNQUOTED(RESULT-DESCRIPTION)
 # ------------------------------------------
 # Likewise, but perform $ ` \ shell substitutions.
-define(AC_MSG_RESULT_UNQUOTED,
+define([AC_MSG_RESULT_UNQUOTED],
 [_AC_ECHO_UNQUOTED([$ECHO_T""$1])])
 
 
 # AC_VERBOSE(RESULT-DESCRIPTION)
 # ------------------------------
-define(AC_VERBOSE,
+define([AC_VERBOSE],
 [AC_OBSOLETE([$0], [; instead use AC_MSG_RESULT])dnl
 _AC_ECHO([     $1])])
 
 
 # AC_MSG_WARN(PROBLEM-DESCRIPTION)
 # --------------------------------
-define(AC_MSG_WARN,
+define([AC_MSG_WARN],
 [_AC_ECHO([configure: warning: $1], 2)])
 
 
 # AC_MSG_ERROR(ERROR-DESCRIPTION, [EXIT-STATUS])
 # ----------------------------------------------
-define(AC_MSG_ERROR,
+define([AC_MSG_ERROR],
 [{ _AC_ECHO([configure: error: $1], 2); exit m4_default([$2], 1); }])
 
 
 # AC_MSG_ERROR_UNQUOTED(ERROR-DESCRIPTION, [EXIT-STATUS])
 # -------------------------------------------------------
-define(AC_MSG_ERROR_UNQUOTED,
+define([AC_MSG_ERROR_UNQUOTED],
 [{ _AC_ECHO_UNQUOTED([configure: error: $1], 2); exit m4_default([$2], 1); }])
 
 
@@ -2184,8 +2185,8 @@ define(AC_MSG_ERROR_UNQUOTED,
 # The purpose of this macro is to "configure:123: command line"
 # written into config.log for every test run.
 AC_DEFUN(AC_TRY_EVAL,
-[{ (eval echo configure:__oline__: \"[$]$1\") 1>&AC_FD_CC; dnl
-(eval [$]$1) 2>&AC_FD_CC; }])
+[{ (eval echo configure:__oline__: \"[$]$1\") >&AC_FD_LOG; dnl
+(eval [$]$1) 2>&AC_FD_LOG; }])
 
 
 # AC_TRY_COMMAND(COMMAND)
@@ -2534,7 +2535,7 @@ AC_DEFUN(AC_PREFIX_PROGRAM,
 pushdef(AC_Prog, translit($1, a-z, A-Z))dnl
 if test "x$prefix" = xNONE; then
 dnl We reimplement AC_MSG_CHECKING (mostly) to avoid the ... in the middle.
-echo $ECHO_N "checking for prefix by $ECHO_C" 1>&AC_FD_MSG
+echo $ECHO_N "checking for prefix by $ECHO_C" >&AC_FD_MSG
 AC_PATH_PROG(AC_Prog, $1)
   if test -n "$ac_cv_path_[]AC_Prog"; then
     prefix=`echo $ac_cv_path_[]AC_Prog | [sed 's%/[^/][^/]*//*[^/][^/]*$%%']`
@@ -2690,9 +2691,9 @@ ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   m4_default([$2], :)
 else
-  echo "$ac_err" >&AC_FD_CC
-  echo "configure: failed program was:" >&AC_FD_CC
-  cat conftest.$ac_ext >&AC_FD_CC
+  echo "$ac_err" >&AC_FD_LOG
+  echo "configure: failed program was:" >&AC_FD_LOG
+  cat conftest.$ac_ext >&AC_FD_LOG
   $3
 fi
 rm -f conftest*])
@@ -2719,7 +2720,7 @@ AC_LANG_SOURCE([[$2]])
 EOF
 dnl eval is necessary to expand ac_cpp.
 dnl Ultrix and Pyramid sh refuse to redirect output of eval, so use subshell.
-if (eval "$ac_cpp conftest.$ac_ext") 2>&AC_FD_CC |
+if (eval "$ac_cpp conftest.$ac_ext") 2>&AC_FD_LOG |
 dnl Prevent m4 from eating character classes:
 changequote(, )dnl
   egrep "$1" >/dev/null 2>&1; then
@@ -2749,8 +2750,8 @@ EOF
 if AC_TRY_EVAL(ac_compile); then
   m4_default([$2], :)
 else
-  echo "configure: failed program was:" >&AC_FD_CC
-  cat conftest.$ac_ext >&AC_FD_CC
+  echo "configure: failed program was:" >&AC_FD_LOG
+  cat conftest.$ac_ext >&AC_FD_LOG
 ifval([$3],
 [  $3
 ])dnl
@@ -2783,8 +2784,8 @@ EOF
 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
   m4_default([$2], :)
 else
-  echo "configure: failed program was:" >&AC_FD_CC
-  cat conftest.$ac_ext >&AC_FD_CC
+  echo "configure: failed program was:" >&AC_FD_LOG
+  cat conftest.$ac_ext >&AC_FD_LOG
 ifval([$3],
 [  $3
 ])dnl
@@ -2835,8 +2836,8 @@ if AC_TRY_EVAL(ac_link) &&
    test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
   m4_default([$2], :)
 else
-  echo "configure: failed program was:" >&AC_FD_CC
-  cat conftest.$ac_ext >&AC_FD_CC
+  echo "configure: failed program was:" >&AC_FD_LOG
+  cat conftest.$ac_ext >&AC_FD_LOG
 ifval([$3],
 [  $3
 ])dnl
@@ -3627,13 +3628,13 @@ ifset([AC_LIST_HEADERS], [DEFS=-DHAVE_CONFIG_H], [AC_OUTPUT_MAKE_DEFS()])
 dnl Commands to run before creating config.status.
 AC_OUTPUT_COMMANDS_PRE()dnl
 
-# Save into config.log some informations which might help to debug.
-echo >>config.log
-echo "The cache variables are:" >>config.log
-_AC_CACHE_DUMP | sed -e 's/^/| /' >>config.log
-echo >>config.log
-echo "confdefs.h is:" >>config.log
-cat confdefs.h | sed -e 's/^/| /' >>config.log
+# Save into config.log some information that might help in debugging.
+echo >&AC_FD_LOG
+echo "Cache variables:" >&AC_FD_LOG
+_AC_CACHE_DUMP | sed -e 's/^/| /' >&AC_FD_LOG
+echo >&AC_FD_LOG
+echo "confdefs.h:" >&AC_FD_LOG
+cat confdefs.h | sed -e 's/^/| /' >&AC_FD_LOG
 
 : ${CONFIG_STATUS=./config.status}
 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
index 397f77f7dab4d7bdc791b594e0f987e12565409f..b59e9410daaa9c7c7c90025a7c4b0f17f327aa4c 100644 (file)
--- a/aclang.m4
+++ b/aclang.m4
@@ -166,8 +166,8 @@ define([AC_LANG(C)],
 [ac_ext=c
 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 ac_cpp='$CPP $CPPFLAGS'
-ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&AC_FD_CC'
-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AC_FD_CC'
+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&AC_FD_LOG'
+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG'
 cross_compiling=$ac_cv_prog_cc_cross
 ])
 
@@ -229,8 +229,8 @@ define([AC_LANG(C++)],
 [ac_ext=C
 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 ac_cpp='$CXXCPP $CPPFLAGS'
-ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&AC_FD_CC'
-ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AC_FD_CC'
+ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&AC_FD_LOG'
+ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG'
 cross_compiling=$ac_cv_prog_cxx_cross
 ])
 
@@ -273,8 +273,8 @@ define([AC_LANG_CALL(C++)], defn([AC_LANG_CALL(C)]))
 # ------------------
 define([AC_LANG(FORTRAN77)],
 [ac_ext=f
-ac_compile='${F77-f77} -c $FFLAGS conftest.$ac_ext 1>&AC_FD_CC'
-ac_link='${F77-f77} -o conftest${ac_exeext} $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AC_FD_CC'
+ac_compile='${F77-f77} -c $FFLAGS conftest.$ac_ext >&AC_FD_LOG'
+ac_link='${F77-f77} -o conftest${ac_exeext} $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG'
 cross_compiling=$ac_cv_prog_f77_cross
 ])
 
@@ -452,7 +452,7 @@ if AC_TRY_COMMAND(${CC-cc} -E conftest.c) | egrep yes >/dev/null 2>&1; then
   ac_cv_prog_gcc=yes
 else
   ac_cv_prog_gcc=no
-fi])dnl
+fi])[]dnl
 ])# AC_PROG_CC_GNU
 
 
@@ -510,15 +510,15 @@ AC_CACHE_VAL(ac_cv_prog_cc_${ac_cc}_c_o,
 # Make sure it works both with $CC and with simple cc.
 # We do the test twice because some compilers refuse to overwrite an
 # existing .o file with -o, though they will create one.
-ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&AC_FD_CC'
+ac_try='${CC-cc} -c conftest.c -o conftest.o >&AC_FD_LOG'
 if AC_TRY_EVAL(ac_try) &&
    test -f conftest.o && AC_TRY_EVAL(ac_try);
 then
   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
   if test "x$CC" != xcc; then
     # Test first that cc exists at all.
-    if AC_TRY_COMMAND(cc -c conftest.c 1>&AC_FD_CC); then
-      ac_try='cc -c conftest.c -o conftest.o 1>&AC_FD_CC'
+    if AC_TRY_COMMAND(cc -c conftest.c >&AC_FD_LOG); then
+      ac_try='cc -c conftest.c -o conftest.o >&AC_FD_LOG'
       if AC_TRY_EVAL(ac_try) &&
         test -f conftest.o && AC_TRY_EVAL(ac_try);
       then
@@ -649,7 +649,7 @@ if AC_TRY_COMMAND(${CXX-g++} -E conftest.C) | egrep yes >/dev/null 2>&1; then
   ac_cv_prog_gxx=yes
 else
   ac_cv_prog_gxx=no
-fi])dnl
+fi])[]dnl
 ])# AC_PROG_CXX_GNU
 
 
@@ -792,7 +792,7 @@ EOF
 # We do the `AC_TRY_EVAL' test twice because some compilers refuse to
 # overwrite an existing `.o' file with `-o', although they will create
 # one.
-ac_try='$F77 $FFLAGS -c conftest.f -o conftest.o 1>&AC_FD_CC'
+ac_try='$F77 $FFLAGS -c conftest.f -o conftest.o >&AC_FD_LOG'
 if AC_TRY_EVAL(ac_try) && test -f conftest.o && AC_TRY_EVAL(ac_try); then
   eval ac_cv_prog_f77_${ac_f77}_c_o=yes
 else
@@ -1215,11 +1215,11 @@ cat >conftest.$ac_ext <<EOF
 EOF
 
 # Save the "compiler output file descriptor" to FD 8.
-exec 8>&AC_FD_CC
+exec 8>&AC_FD_LOG
 
 # Temporarily redirect compiler output to stdout, since this is what
 # we want to capture in AC_LINK_OUTPUT.
-exec AC_FD_CC>&1
+exec AC_FD_LOG>&1
 
 # Compile and link our simple test program by passing the "-v" flag
 # to the Fortran 77 compiler in order to get "verbose" output that
@@ -1231,7 +1231,7 @@ ac_link_output=`eval $ac_link 2>&1 | grep -v 'Driving:'`
 FFLAGS="$ac_save_FFLAGS"
 
 # Restore the "compiler output file descriptor".
-exec AC_FD_CC>&8
+exec AC_FD_LOG>&8
 
 rm -f conftest.*
 
@@ -1427,8 +1427,8 @@ if AC_TRY_EVAL(ac_compile); then
   rm -f conftest*
   rm -f cf77_test*
 else
-  echo "configure: failed program was:" >&AC_FD_CC
-  cat conftest.$ac_ext >&AC_FD_CC
+  echo "configure: failed program was:" >&AC_FD_LOG
+  cat conftest.$ac_ext >&AC_FD_LOG
 fi
 AC_LANG_RESTORE()dnl
 ])
index 44de9f0304d825bcadb0ff434547199714d8b49e..f5f4eefce0b62b60337b44d2a4f654abd11eeb10 100755 (executable)
--- a/configure
+++ b/configure
@@ -135,7 +135,7 @@ do
     ac_feature=`echo "$ac_option"|sed -e 's/-*disable-//'`
     # Reject names that are not valid shell variable names.
     if echo "$ac_feature" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
-      { echo "configure: error: invalid feature: $ac_feature" 1>&2; exit 1; }
+      { echo "configure: error: invalid feature: $ac_feature" >&2; exit 1; }
     fi
     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
     eval "enable_${ac_feature}=no" ;;
@@ -144,7 +144,7 @@ do
     ac_feature=`echo "$ac_option"|sed -e 's/-*enable-//' -e 's/=.*//'`
     # Reject names that are not valid shell variable names.
     if echo "$ac_feature" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
-      { echo "configure: error: invalid feature: $ac_feature" 1>&2; exit 1; }
+      { echo "configure: error: invalid feature: $ac_feature" >&2; exit 1; }
     fi
     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
     case "$ac_option" in
@@ -326,7 +326,7 @@ do
     ac_package=`echo "$ac_option"|sed -e 's/-*with-//' -e 's/=.*//'`
     # Reject names that are not valid shell variable names.
     if echo "$ac_package" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
-      { echo "configure: error: invalid package: $ac_package" 1>&2; exit 1; }
+      { echo "configure: error: invalid package: $ac_package" >&2; exit 1; }
     fi
     ac_package=`echo $ac_package| sed 's/-/_/g'`
     case "$ac_option" in
@@ -339,7 +339,7 @@ do
     ac_package=`echo "$ac_option"|sed -e 's/-*without-//'`
     # Reject names that are not valid shell variable names.
     if echo "$ac_package" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
-      { echo "configure: error: invalid package: $ac_package" 1>&2; exit 1; }
+      { echo "configure: error: invalid package: $ac_package" >&2; exit 1; }
     fi
     ac_package=`echo $ac_package| sed 's/-/_/g'`
     eval "with_${ac_package}=no" ;;
@@ -363,14 +363,14 @@ do
     x_libraries="$ac_optarg" ;;
 
   -*) { echo "configure: error: unrecognized option: $ac_option
-Try \`configure --help' for more information." 1>&2; exit 1; }
+Try \`configure --help' for more information." >&2; exit 1; }
     ;;
 
   *=*)
     ac_envvar=`echo "$ac_option" | sed -e 's/=.*//'`
     # Reject names that are not valid shell variable names.
     if echo "$ac_envvar" | grep '[^a-zA-Z0-9_]' >/dev/null 2>&1; then
-      { echo "configure: error: invalid variable name: $ac_envvar" 1>&2; exit 1; }
+      { echo "configure: error: invalid variable name: $ac_envvar" >&2; exit 1; }
     fi
     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
     eval "$ac_envvar='$ac_optarg'"
@@ -378,10 +378,10 @@ Try \`configure --help' for more information." 1>&2; exit 1; }
 
   *)
     if echo "$ac_option" | grep '[^-a-zA-Z0-9.]' >/dev/null 2>&1; then
-      echo "configure: warning: invalid host type: $ac_option" 1>&2
+      echo "configure: warning: invalid host type: $ac_option" >&2
     fi
     if test "x$nonopt" != xNONE; then
-      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
+      { echo "configure: error: can only configure for one host and one target at a time" >&2; exit 1; }
     fi
     nonopt="$ac_option"
     ;;
@@ -390,7 +390,7 @@ Try \`configure --help' for more information." 1>&2; exit 1; }
 done
 
 if test -n "$ac_prev"; then
-  { echo "configure: error: missing argument to --\`echo $ac_prev | sed 's/_/-/g'\`" 1>&2; exit 1; }
+  { echo "configure: error: missing argument to --\`echo $ac_prev | sed 's/_/-/g'\`" >&2; exit 1; }
 fi
 
 # Be sure to have absolute paths.
@@ -402,7 +402,7 @@ do
   case $ac_val in
     [\\/$]* | ?:[\\/]* ) ;;
     NONE ) ;;
-    *)  { echo "configure: error: expected an absolute path for --$ac_var: $ac_val" 1>&2; exit 1; };;
+    *)  { echo "configure: error: expected an absolute path for --$ac_var: $ac_val" >&2; exit 1; };;
   esac
 done
 
@@ -422,9 +422,9 @@ else
 fi
 if test ! -r $srcdir/$ac_unique_file; then
   if test "$ac_srcdir_defaulted" = yes; then
-    { echo "configure: error: cannot find sources in $ac_confdir or .." 1>&2; exit 1; }
+    { echo "configure: error: cannot find sources in $ac_confdir or .." >&2; exit 1; }
   else
-    { echo "configure: error: cannot find sources in $srcdir" 1>&2; exit 1; }
+    { echo "configure: error: cannot find sources in $srcdir" >&2; exit 1; }
   fi
 fi
 srcdir=`echo "$srcdir" | sed 's%\([^/]\)/*$%\1%'`
@@ -526,7 +526,7 @@ if test "$ac_init_help" = "recursive"; then
       echo
       $ac_configure --help
     else
-      echo "configure: warning: no configuration information is in $ac_subdir" 1>&2
+      echo "configure: warning: no configuration information is in $ac_subdir" >&2
     fi
     cd $ac_popdir
   done
@@ -601,7 +601,7 @@ running configure, to aid debugging if configure makes a mistake.
 
 It was created by configure (Autoconf 2.14a) 2.14a, executed with
  > $0 $ac_configure_args
-" 1>&5
+" >&5
 
 # confdefs.h avoids OS command line length limits that DEFS can exceed.
 rm -rf conftest* confdefs.h
@@ -634,8 +634,8 @@ fi
 ac_ext=c
 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 ac_cpp='$CPP $CPPFLAGS'
-ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 cross_compiling=$ac_cv_prog_cc_cross
 
 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
@@ -667,7 +667,7 @@ for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
   fi
 done
 if test -z "$ac_aux_dir"; then
-  { echo "configure: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
+  { echo "configure: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2; exit 1; }
 fi
 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
@@ -684,11 +684,11 @@ ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 # ./install, which can be erroneously created by make from ./install.sh.
-echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" 1>&6
-echo "configure:607: checking for a BSD compatible install" 1>&5
+echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
+echo "configure:607: checking for a BSD compatible install" >&5
 if test -z "$INSTALL"; then
 if test "${ac_cv_path_install+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" 1>&6
+  echo $ECHO_N "(cached) $ECHO_C" >&6
 else
     ac_save_IFS=$IFS; IFS=':'
   for ac_dir in $PATH; do
@@ -731,7 +731,7 @@ fi
     INSTALL="$ac_install_sh"
   fi
 fi
-echo "$ECHO_T""$INSTALL" 1>&6
+echo "$ECHO_T""$INSTALL" >&6
 
 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 # It thinks the first close brace ends the variable substitution.
@@ -741,8 +741,8 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
-echo $ECHO_N "checking whether build environment is sane... $ECHO_C" 1>&6
-echo "configure:659: checking whether build environment is sane" 1>&5
+echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
+echo "configure:659: checking whether build environment is sane" >&5
 # Just in case
 sleep 1
 echo timestamp > conftestfile
@@ -765,7 +765,7 @@ if (
       # broken ls alias from the environment.  This has actually
       # happened.  Such a system could not be considered "sane".
       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
-alias in your environment" 1>&2; exit 1; }
+alias in your environment" >&2; exit 1; }
    fi
 
    test "$2" = conftestfile
@@ -775,10 +775,10 @@ then
    :
 else
    { echo "configure: error: newly created file is older than distributed files!
-Check your system clock" 1>&2; exit 1; }
+Check your system clock" >&2; exit 1; }
 fi
 rm -f conftest*
-echo "$ECHO_T""yes" 1>&6
+echo "$ECHO_T""yes" >&6
 if test "$program_transform_name" = s,x,x,; then
   program_transform_name=
 else
@@ -798,11 +798,11 @@ test "$program_suffix" != NONE &&
 # sed with no file args requires a program.
 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
 
-echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" 1>&6
-echo "configure:712: checking whether ${MAKE-make} sets \${MAKE}" 1>&5
+echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
+echo "configure:712: checking whether ${MAKE-make} sets \${MAKE}" >&5
 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
-  echo $ECHO_N "(cached) $ECHO_C" 1>&6
+  echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   cat >conftestmake <<\EOF
 all:
@@ -818,10 +818,10 @@ fi
 rm -f conftestmake
 fi
 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
-  echo "$ECHO_T""yes" 1>&6
+  echo "$ECHO_T""yes" >&6
   SET_MAKE=
 else
-  echo "$ECHO_T""no" 1>&6
+  echo "$ECHO_T""no" >&6
   SET_MAKE="MAKE=${MAKE-make}"
 fi
 
@@ -830,7 +830,7 @@ PACKAGE=autoconf
 VERSION=2.14a
 
 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
-  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
+  { echo "configure: error: source directory already configured; run "make distclean" there first" >&2; exit 1; }
 fi
 #
 
@@ -845,69 +845,69 @@ cat >>confdefs.h <<EOF
 EOF
 
 missing_dir=`cd $ac_aux_dir && pwd`
-echo $ECHO_N "checking for working aclocal... $ECHO_C" 1>&6
-echo "configure:752: checking for working aclocal" 1>&5
+echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
+echo "configure:752: checking for working aclocal" >&5
 # Run test in a subshell; some versions of sh will print an error if
 # an executable is not found, even if stderr is redirected.
 # Redirect stdin to placate older versions of autoconf.  Sigh.
 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
    ACLOCAL=aclocal
-   echo "$ECHO_T""found" 1>&6
+   echo "$ECHO_T""found" >&6
 else
    ACLOCAL="$missing_dir/missing aclocal"
-   echo "$ECHO_T""missing" 1>&6
+   echo "$ECHO_T""missing" >&6
 fi
 
-echo $ECHO_N "checking for working autoconf... $ECHO_C" 1>&6
-echo "configure:764: checking for working autoconf" 1>&5
+echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
+echo "configure:764: checking for working autoconf" >&5
 # Run test in a subshell; some versions of sh will print an error if
 # an executable is not found, even if stderr is redirected.
 # Redirect stdin to placate older versions of autoconf.  Sigh.
 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
    AUTOCONF=autoconf
-   echo "$ECHO_T""found" 1>&6
+   echo "$ECHO_T""found" >&6
 else
    AUTOCONF="$missing_dir/missing autoconf"
-   echo "$ECHO_T""missing" 1>&6
+   echo "$ECHO_T""missing" >&6
 fi
 
-echo $ECHO_N "checking for working automake... $ECHO_C" 1>&6
-echo "configure:776: checking for working automake" 1>&5
+echo $ECHO_N "checking for working automake... $ECHO_C" >&6
+echo "configure:776: checking for working automake" >&5
 # Run test in a subshell; some versions of sh will print an error if
 # an executable is not found, even if stderr is redirected.
 # Redirect stdin to placate older versions of autoconf.  Sigh.
 if (automake --version) < /dev/null > /dev/null 2>&1; then
    AUTOMAKE=automake
-   echo "$ECHO_T""found" 1>&6
+   echo "$ECHO_T""found" >&6
 else
    AUTOMAKE="$missing_dir/missing automake"
-   echo "$ECHO_T""missing" 1>&6
+   echo "$ECHO_T""missing" >&6
 fi
 
-echo $ECHO_N "checking for working autoheader... $ECHO_C" 1>&6
-echo "configure:788: checking for working autoheader" 1>&5
+echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
+echo "configure:788: checking for working autoheader" >&5
 # Run test in a subshell; some versions of sh will print an error if
 # an executable is not found, even if stderr is redirected.
 # Redirect stdin to placate older versions of autoconf.  Sigh.
 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
    AUTOHEADER=autoheader
-   echo "$ECHO_T""found" 1>&6
+   echo "$ECHO_T""found" >&6
 else
    AUTOHEADER="$missing_dir/missing autoheader"
-   echo "$ECHO_T""missing" 1>&6
+   echo "$ECHO_T""missing" >&6
 fi
 
-echo $ECHO_N "checking for working makeinfo... $ECHO_C" 1>&6
-echo "configure:800: checking for working makeinfo" 1>&5
+echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
+echo "configure:800: checking for working makeinfo" >&5
 # Run test in a subshell; some versions of sh will print an error if
 # an executable is not found, even if stderr is redirected.
 # Redirect stdin to placate older versions of autoconf.  Sigh.
 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
    MAKEINFO=makeinfo
-   echo "$ECHO_T""found" 1>&6
+   echo "$ECHO_T""found" >&6
 else
    MAKEINFO="$missing_dir/missing makeinfo"
-   echo "$ECHO_T""missing" 1>&6
+   echo "$ECHO_T""missing" >&6
 fi
 
 AT_TESTPATH=..
@@ -916,10 +916,10 @@ for ac_prog in gm4 gnum4 m4
 do
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
-echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
-echo "configure:817: checking for $ac_word" 1>&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+echo "configure:817: checking for $ac_word" >&5
 if test "${ac_cv_path_M4+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" 1>&6
+  echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   case "$M4" in
   [\\/]* | ?:[\\/]*)
@@ -941,19 +941,19 @@ esac
 fi
 M4="$ac_cv_path_M4"
 if test -n "$M4"; then
-  echo "$ECHO_T""$M4" 1>&6
+  echo "$ECHO_T""$M4" >&6
 else
-  echo "$ECHO_T""no" 1>&6
+  echo "$ECHO_T""no" >&6
 fi
 
 test -n "$M4" && break
 done
 test -n "$M4" || M4="m4"
 
-echo $ECHO_N "checking whether m4 supports frozen files... $ECHO_C" 1>&6
-echo "configure:849: checking whether m4 supports frozen files" 1>&5
+echo $ECHO_N "checking whether m4 supports frozen files... $ECHO_C" >&6
+echo "configure:849: checking whether m4 supports frozen files" >&5
 if test "${ac_cv_prog_gnu_m4+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" 1>&6
+  echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_cv_prog_gnu_m4=no
 if test x"$M4" != x; then
@@ -962,19 +962,19 @@ if test x"$M4" != x; then
   esac
 fi
 fi
-echo "$ECHO_T""$ac_cv_prog_gnu_m4" 1>&6
+echo "$ECHO_T""$ac_cv_prog_gnu_m4" >&6
 if test x"$ac_cv_prog_gnu_m4" != xyes; then
-  { echo "configure: error: GNU m4 1.4 is required" 1>&2; exit 1; }
+  { echo "configure: error: GNU m4 1.4 is required" >&2; exit 1; }
 fi
 
 for ac_prog in mawk gawk nawk awk
 do
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
-echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
-echo "configure:869: checking for $ac_word" 1>&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+echo "configure:869: checking for $ac_word" >&5
 if test "${ac_cv_prog_AWK+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" 1>&6
+  echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   if test -n "$AWK"; then
   ac_cv_prog_AWK="$AWK" # Let the user override the test.
@@ -996,33 +996,33 @@ fi
 fi
 AWK="$ac_cv_prog_AWK"
 if test -n "$AWK"; then
-  echo "$ECHO_T""$AWK" 1>&6
+  echo "$ECHO_T""$AWK" >&6
 else
-  echo "$ECHO_T""no" 1>&6
+  echo "$ECHO_T""no" >&6
 fi
 
 test -n "$AWK" && break
 done
 
-echo $ECHO_N "checking for working help2man... $ECHO_C" 1>&6
-echo "configure:900: checking for working help2man" 1>&5
+echo $ECHO_N "checking for working help2man... $ECHO_C" >&6
+echo "configure:900: checking for working help2man" >&5
 # Run test in a subshell; some versions of sh will print an error if
 # an executable is not found, even if stderr is redirected.
 # Redirect stdin to placate older versions of autoconf.  Sigh.
 if (help2man --version) < /dev/null > /dev/null 2>&1; then
    HELP2MAN=help2man
-   echo "$ECHO_T""found" 1>&6
+   echo "$ECHO_T""found" >&6
 else
    HELP2MAN="\${SHELL} \${top_srcdir}/missing help2man"
-   echo "$ECHO_T""missing" 1>&6
+   echo "$ECHO_T""missing" >&6
 fi
 
 # Extract the first word of "perl", so it can be a program name with args.
 set dummy perl; ac_word=$2
-echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
-echo "configure:914: checking for $ac_word" 1>&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+echo "configure:914: checking for $ac_word" >&5
 if test "${ac_cv_path_PERL+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" 1>&6
+  echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   case "$PERL" in
   [\\/]* | ?:[\\/]*)
@@ -1045,15 +1045,15 @@ esac
 fi
 PERL="$ac_cv_path_PERL"
 if test -n "$PERL"; then
-  echo "$ECHO_T""$PERL" 1>&6
+  echo "$ECHO_T""$PERL" >&6
 else
-  echo "$ECHO_T""no" 1>&6
+  echo "$ECHO_T""no" >&6
 fi
 
 if test "$PERL" != no; then
   PERLSCRIPTS=autoscan
 else
-  echo "configure: warning: autoscan will not be built since perl is not found" 1>&2
+  echo "configure: warning: autoscan will not be built since perl is not found" >&2
 fi
 
 # Find a good install program.  We prefer a C program (faster),
@@ -1067,11 +1067,11 @@ fi
 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 # ./install, which can be erroneously created by make from ./install.sh.
-echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" 1>&6
-echo "configure:960: checking for a BSD compatible install" 1>&5
+echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
+echo "configure:960: checking for a BSD compatible install" >&5
 if test -z "$INSTALL"; then
 if test "${ac_cv_path_install+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" 1>&6
+  echo $ECHO_N "(cached) $ECHO_C" >&6
 else
     ac_save_IFS=$IFS; IFS=':'
   for ac_dir in $PATH; do
@@ -1114,7 +1114,7 @@ fi
     INSTALL="$ac_install_sh"
   fi
 fi
-echo "$ECHO_T""$INSTALL" 1>&6
+echo "$ECHO_T""$INSTALL" >&6
 
 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 # It thinks the first close brace ends the variable substitution.
@@ -1217,9 +1217,9 @@ ac_LF_and_DOT=`echo; echo .`
 DEFS=`sed -f conftest.defs confdefs.h | tr "$ac_LF_and_DOT" ' .'`
 rm -f conftest.defs
 
-# Save into config.log some informations which might help to debug.
-echo >>config.log
-echo "The cache variables are:" >>config.log
+# Save into config.log some information that might help in debugging
+echo >&5
+echo "Cache variables:" >&5
 # The following way of writing the cache mishandles newlines in values,
 # but we know of no workaround that is simple, portable, and efficient.
 # So, don't put newlines in cache variables' values.
@@ -1240,10 +1240,10 @@ echo "The cache variables are:" >>config.log
       sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\2/p'
       ;;
     esac;
-} | sed -e 's/^/| /' >>config.log
-echo >>config.log
-echo "confdefs.h is:" >>config.log
-cat confdefs.h | sed -e 's/^/| /' >>config.log
+} | sed -e 's/^/| /' >&5
+echo >&5
+echo "confdefs.h:" >&5
+cat confdefs.h | sed -e 's/^/| /' >&5
 
 : ${CONFIG_STATUS=./config.status}
 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
@@ -1523,7 +1523,7 @@ for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
   for ac_file_input in $ac_file_inputs;
   do
     test -f "$ac_file_input" ||
-        { echo "configure: error: cannot find input file \`$ac_file_input'" 1>&2; exit 1; }
+        { echo "configure: error: cannot find input file \`$ac_file_input'" >&2; exit 1; }
   done
 EOF
 cat >>$CONFIG_STATUS <<EOF
index 397f77f7dab4d7bdc791b594e0f987e12565409f..b59e9410daaa9c7c7c90025a7c4b0f17f327aa4c 100644 (file)
@@ -166,8 +166,8 @@ define([AC_LANG(C)],
 [ac_ext=c
 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 ac_cpp='$CPP $CPPFLAGS'
-ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&AC_FD_CC'
-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AC_FD_CC'
+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&AC_FD_LOG'
+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG'
 cross_compiling=$ac_cv_prog_cc_cross
 ])
 
@@ -229,8 +229,8 @@ define([AC_LANG(C++)],
 [ac_ext=C
 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 ac_cpp='$CXXCPP $CPPFLAGS'
-ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&AC_FD_CC'
-ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AC_FD_CC'
+ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&AC_FD_LOG'
+ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG'
 cross_compiling=$ac_cv_prog_cxx_cross
 ])
 
@@ -273,8 +273,8 @@ define([AC_LANG_CALL(C++)], defn([AC_LANG_CALL(C)]))
 # ------------------
 define([AC_LANG(FORTRAN77)],
 [ac_ext=f
-ac_compile='${F77-f77} -c $FFLAGS conftest.$ac_ext 1>&AC_FD_CC'
-ac_link='${F77-f77} -o conftest${ac_exeext} $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AC_FD_CC'
+ac_compile='${F77-f77} -c $FFLAGS conftest.$ac_ext >&AC_FD_LOG'
+ac_link='${F77-f77} -o conftest${ac_exeext} $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG'
 cross_compiling=$ac_cv_prog_f77_cross
 ])
 
@@ -452,7 +452,7 @@ if AC_TRY_COMMAND(${CC-cc} -E conftest.c) | egrep yes >/dev/null 2>&1; then
   ac_cv_prog_gcc=yes
 else
   ac_cv_prog_gcc=no
-fi])dnl
+fi])[]dnl
 ])# AC_PROG_CC_GNU
 
 
@@ -510,15 +510,15 @@ AC_CACHE_VAL(ac_cv_prog_cc_${ac_cc}_c_o,
 # Make sure it works both with $CC and with simple cc.
 # We do the test twice because some compilers refuse to overwrite an
 # existing .o file with -o, though they will create one.
-ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&AC_FD_CC'
+ac_try='${CC-cc} -c conftest.c -o conftest.o >&AC_FD_LOG'
 if AC_TRY_EVAL(ac_try) &&
    test -f conftest.o && AC_TRY_EVAL(ac_try);
 then
   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
   if test "x$CC" != xcc; then
     # Test first that cc exists at all.
-    if AC_TRY_COMMAND(cc -c conftest.c 1>&AC_FD_CC); then
-      ac_try='cc -c conftest.c -o conftest.o 1>&AC_FD_CC'
+    if AC_TRY_COMMAND(cc -c conftest.c >&AC_FD_LOG); then
+      ac_try='cc -c conftest.c -o conftest.o >&AC_FD_LOG'
       if AC_TRY_EVAL(ac_try) &&
         test -f conftest.o && AC_TRY_EVAL(ac_try);
       then
@@ -649,7 +649,7 @@ if AC_TRY_COMMAND(${CXX-g++} -E conftest.C) | egrep yes >/dev/null 2>&1; then
   ac_cv_prog_gxx=yes
 else
   ac_cv_prog_gxx=no
-fi])dnl
+fi])[]dnl
 ])# AC_PROG_CXX_GNU
 
 
@@ -792,7 +792,7 @@ EOF
 # We do the `AC_TRY_EVAL' test twice because some compilers refuse to
 # overwrite an existing `.o' file with `-o', although they will create
 # one.
-ac_try='$F77 $FFLAGS -c conftest.f -o conftest.o 1>&AC_FD_CC'
+ac_try='$F77 $FFLAGS -c conftest.f -o conftest.o >&AC_FD_LOG'
 if AC_TRY_EVAL(ac_try) && test -f conftest.o && AC_TRY_EVAL(ac_try); then
   eval ac_cv_prog_f77_${ac_f77}_c_o=yes
 else
@@ -1215,11 +1215,11 @@ cat >conftest.$ac_ext <<EOF
 EOF
 
 # Save the "compiler output file descriptor" to FD 8.
-exec 8>&AC_FD_CC
+exec 8>&AC_FD_LOG
 
 # Temporarily redirect compiler output to stdout, since this is what
 # we want to capture in AC_LINK_OUTPUT.
-exec AC_FD_CC>&1
+exec AC_FD_LOG>&1
 
 # Compile and link our simple test program by passing the "-v" flag
 # to the Fortran 77 compiler in order to get "verbose" output that
@@ -1231,7 +1231,7 @@ ac_link_output=`eval $ac_link 2>&1 | grep -v 'Driving:'`
 FFLAGS="$ac_save_FFLAGS"
 
 # Restore the "compiler output file descriptor".
-exec AC_FD_CC>&8
+exec AC_FD_LOG>&8
 
 rm -f conftest.*
 
@@ -1427,8 +1427,8 @@ if AC_TRY_EVAL(ac_compile); then
   rm -f conftest*
   rm -f cf77_test*
 else
-  echo "configure: failed program was:" >&AC_FD_CC
-  cat conftest.$ac_ext >&AC_FD_CC
+  echo "configure: failed program was:" >&AC_FD_LOG
+  cat conftest.$ac_ext >&AC_FD_LOG
 fi
 AC_LANG_RESTORE()dnl
 ])
index 397f77f7dab4d7bdc791b594e0f987e12565409f..b59e9410daaa9c7c7c90025a7c4b0f17f327aa4c 100644 (file)
@@ -166,8 +166,8 @@ define([AC_LANG(C)],
 [ac_ext=c
 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 ac_cpp='$CPP $CPPFLAGS'
-ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&AC_FD_CC'
-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AC_FD_CC'
+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&AC_FD_LOG'
+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG'
 cross_compiling=$ac_cv_prog_cc_cross
 ])
 
@@ -229,8 +229,8 @@ define([AC_LANG(C++)],
 [ac_ext=C
 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 ac_cpp='$CXXCPP $CPPFLAGS'
-ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&AC_FD_CC'
-ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AC_FD_CC'
+ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&AC_FD_LOG'
+ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG'
 cross_compiling=$ac_cv_prog_cxx_cross
 ])
 
@@ -273,8 +273,8 @@ define([AC_LANG_CALL(C++)], defn([AC_LANG_CALL(C)]))
 # ------------------
 define([AC_LANG(FORTRAN77)],
 [ac_ext=f
-ac_compile='${F77-f77} -c $FFLAGS conftest.$ac_ext 1>&AC_FD_CC'
-ac_link='${F77-f77} -o conftest${ac_exeext} $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AC_FD_CC'
+ac_compile='${F77-f77} -c $FFLAGS conftest.$ac_ext >&AC_FD_LOG'
+ac_link='${F77-f77} -o conftest${ac_exeext} $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG'
 cross_compiling=$ac_cv_prog_f77_cross
 ])
 
@@ -452,7 +452,7 @@ if AC_TRY_COMMAND(${CC-cc} -E conftest.c) | egrep yes >/dev/null 2>&1; then
   ac_cv_prog_gcc=yes
 else
   ac_cv_prog_gcc=no
-fi])dnl
+fi])[]dnl
 ])# AC_PROG_CC_GNU
 
 
@@ -510,15 +510,15 @@ AC_CACHE_VAL(ac_cv_prog_cc_${ac_cc}_c_o,
 # Make sure it works both with $CC and with simple cc.
 # We do the test twice because some compilers refuse to overwrite an
 # existing .o file with -o, though they will create one.
-ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&AC_FD_CC'
+ac_try='${CC-cc} -c conftest.c -o conftest.o >&AC_FD_LOG'
 if AC_TRY_EVAL(ac_try) &&
    test -f conftest.o && AC_TRY_EVAL(ac_try);
 then
   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
   if test "x$CC" != xcc; then
     # Test first that cc exists at all.
-    if AC_TRY_COMMAND(cc -c conftest.c 1>&AC_FD_CC); then
-      ac_try='cc -c conftest.c -o conftest.o 1>&AC_FD_CC'
+    if AC_TRY_COMMAND(cc -c conftest.c >&AC_FD_LOG); then
+      ac_try='cc -c conftest.c -o conftest.o >&AC_FD_LOG'
       if AC_TRY_EVAL(ac_try) &&
         test -f conftest.o && AC_TRY_EVAL(ac_try);
       then
@@ -649,7 +649,7 @@ if AC_TRY_COMMAND(${CXX-g++} -E conftest.C) | egrep yes >/dev/null 2>&1; then
   ac_cv_prog_gxx=yes
 else
   ac_cv_prog_gxx=no
-fi])dnl
+fi])[]dnl
 ])# AC_PROG_CXX_GNU
 
 
@@ -792,7 +792,7 @@ EOF
 # We do the `AC_TRY_EVAL' test twice because some compilers refuse to
 # overwrite an existing `.o' file with `-o', although they will create
 # one.
-ac_try='$F77 $FFLAGS -c conftest.f -o conftest.o 1>&AC_FD_CC'
+ac_try='$F77 $FFLAGS -c conftest.f -o conftest.o >&AC_FD_LOG'
 if AC_TRY_EVAL(ac_try) && test -f conftest.o && AC_TRY_EVAL(ac_try); then
   eval ac_cv_prog_f77_${ac_f77}_c_o=yes
 else
@@ -1215,11 +1215,11 @@ cat >conftest.$ac_ext <<EOF
 EOF
 
 # Save the "compiler output file descriptor" to FD 8.
-exec 8>&AC_FD_CC
+exec 8>&AC_FD_LOG
 
 # Temporarily redirect compiler output to stdout, since this is what
 # we want to capture in AC_LINK_OUTPUT.
-exec AC_FD_CC>&1
+exec AC_FD_LOG>&1
 
 # Compile and link our simple test program by passing the "-v" flag
 # to the Fortran 77 compiler in order to get "verbose" output that
@@ -1231,7 +1231,7 @@ ac_link_output=`eval $ac_link 2>&1 | grep -v 'Driving:'`
 FFLAGS="$ac_save_FFLAGS"
 
 # Restore the "compiler output file descriptor".
-exec AC_FD_CC>&8
+exec AC_FD_LOG>&8
 
 rm -f conftest.*
 
@@ -1427,8 +1427,8 @@ if AC_TRY_EVAL(ac_compile); then
   rm -f conftest*
   rm -f cf77_test*
 else
-  echo "configure: failed program was:" >&AC_FD_CC
-  cat conftest.$ac_ext >&AC_FD_CC
+  echo "configure: failed program was:" >&AC_FD_LOG
+  cat conftest.$ac_ext >&AC_FD_LOG
 fi
 AC_LANG_RESTORE()dnl
 ])
index bad8e97c59b79532d4097e2e4538bb7136ae49a0..40445453476b176ec1c59f63283010caf680d062 100644 (file)
@@ -1454,16 +1454,17 @@ done
 # 2 errors and warnings
 # 3 some systems may open it to /dev/tty
 # 4 used on the Kubota Titan
-define(AC_FD_MSG, 6)dnl
+define([AC_FD_MSG], 6)dnl
 @%:@ AC_FD_MSG checking for... messages and results
-define(AC_FD_CC, 5)dnl
-@%:@ AC_FD_CC compiler messages saved in config.log
+define([AC_FD_LOG], 5)dnl
+AU_DEFUN([AC_FD_CC], [AC_FD_LOG])dnl That's how it used to be named.
+@%:@ AC_FD_LOG compiler messages saved in config.log
 if test "$silent" = yes; then
   exec AC_FD_MSG>/dev/null
 else
   exec AC_FD_MSG>&1
 fi
-exec AC_FD_CC>./config.log
+exec AC_FD_LOG>./config.log
 
 echo "\
 This file contains any messages produced by compilers while
@@ -1472,7 +1473,7 @@ running configure, to aid debugging if configure makes a mistake.
 It was created by configure ifset([AC_PACKAGE_STRING],
                             [(AC_PACKAGE_STRING)]) AC_ACVERSION, executed with
  > [$]0 $ac_configure_args
-" 1>&AC_FD_CC
+" >&AC_FD_LOG
 
 # confdefs.h avoids OS command line length limits that DEFS can exceed.
 rm -rf conftest* confdefs.h
@@ -1801,7 +1802,7 @@ dnl Set the other $[1] vars.  Propagate the failures of config.sub.
   ac_cv_$1_vendor=`echo $ac_cv_$1 | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\2/'`
   ac_cv_$1_os=`echo $ac_cv_$1 | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\3/'`
 else
-  echo $ECHO_N "(cached) $ECHO_C" 1>&AC_FD_MSG
+  echo $ECHO_N "(cached) $ECHO_C" >&AC_FD_MSG
 fi
 
 AC_MSG_RESULT($ac_cv_$1)
@@ -1963,7 +1964,7 @@ define(AC_CACHE_VAL,
 dnl shell variable, so we need the eval.
 dnl if test "${$1+set}" = set; then
 AC_VAR_IF_SET([$1],
-              [echo $ECHO_N "(cached) $ECHO_C" 1>&AC_FD_MSG],
+              [echo $ECHO_N "(cached) $ECHO_C" >&AC_FD_MSG],
               [$2])])
 
 
@@ -2099,7 +2100,7 @@ define(_AC_SH_QUOTE,
 # Expands into a sh call to echo onto FD (default is AC_FD_MSG).
 # The shell performs its expansions on STRING.
 define([_AC_ECHO_UNQUOTED],
-[echo "[$1]" 1>&ifelse($2,, AC_FD_MSG, $2)])
+[echo "[$1]" >&m4_default([$2], [AC_FD_MSG])])
 
 
 # _AC_ECHO(STRING, [FD])
@@ -2113,59 +2114,59 @@ define([_AC_ECHO],
 # _AC_ECHO_N(STRING, [FD])
 # ------------------------
 # Same as _AC_ECHO, but echo doesn't return to a new line.
-define(_AC_ECHO_N,
-[echo $ECHO_N "_AC_SH_QUOTE($1)$ECHO_C" 1>&ifelse($2,,AC_FD_MSG,$2)])
+define([_AC_ECHO_N],
+[echo $ECHO_N "_AC_SH_QUOTE($1)$ECHO_C" >&m4_default([$2], [AC_FD_MSG])])
 
 
 # AC_MSG_CHECKING(FEATURE-DESCRIPTION)
 # ------------------------------------
-define(AC_MSG_CHECKING,
+define([AC_MSG_CHECKING],
 [_AC_ECHO_N([checking $1... ])
-_AC_ECHO([configure:__oline__: checking $1], AC_FD_CC)])
+_AC_ECHO([configure:__oline__: checking $1], AC_FD_LOG)])
 
 
 # AC_CHECKING(FEATURE-DESCRIPTION)
 # --------------------------------
-define(AC_CHECKING,
+define([AC_CHECKING],
 [_AC_ECHO([checking $1])
-_AC_ECHO([configure:__oline__: checking $1], AC_FD_CC)])
+_AC_ECHO([configure:__oline__: checking $1], AC_FD_LOG)])
 
 
 # AC_MSG_RESULT(RESULT-DESCRIPTION)
 # ---------------------------------
-define(AC_MSG_RESULT,
+define([AC_MSG_RESULT],
 [_AC_ECHO([$ECHO_T""$1])])
 
 
 # AC_MSG_RESULT_UNQUOTED(RESULT-DESCRIPTION)
 # ------------------------------------------
 # Likewise, but perform $ ` \ shell substitutions.
-define(AC_MSG_RESULT_UNQUOTED,
+define([AC_MSG_RESULT_UNQUOTED],
 [_AC_ECHO_UNQUOTED([$ECHO_T""$1])])
 
 
 # AC_VERBOSE(RESULT-DESCRIPTION)
 # ------------------------------
-define(AC_VERBOSE,
+define([AC_VERBOSE],
 [AC_OBSOLETE([$0], [; instead use AC_MSG_RESULT])dnl
 _AC_ECHO([     $1])])
 
 
 # AC_MSG_WARN(PROBLEM-DESCRIPTION)
 # --------------------------------
-define(AC_MSG_WARN,
+define([AC_MSG_WARN],
 [_AC_ECHO([configure: warning: $1], 2)])
 
 
 # AC_MSG_ERROR(ERROR-DESCRIPTION, [EXIT-STATUS])
 # ----------------------------------------------
-define(AC_MSG_ERROR,
+define([AC_MSG_ERROR],
 [{ _AC_ECHO([configure: error: $1], 2); exit m4_default([$2], 1); }])
 
 
 # AC_MSG_ERROR_UNQUOTED(ERROR-DESCRIPTION, [EXIT-STATUS])
 # -------------------------------------------------------
-define(AC_MSG_ERROR_UNQUOTED,
+define([AC_MSG_ERROR_UNQUOTED],
 [{ _AC_ECHO_UNQUOTED([configure: error: $1], 2); exit m4_default([$2], 1); }])
 
 
@@ -2184,8 +2185,8 @@ define(AC_MSG_ERROR_UNQUOTED,
 # The purpose of this macro is to "configure:123: command line"
 # written into config.log for every test run.
 AC_DEFUN(AC_TRY_EVAL,
-[{ (eval echo configure:__oline__: \"[$]$1\") 1>&AC_FD_CC; dnl
-(eval [$]$1) 2>&AC_FD_CC; }])
+[{ (eval echo configure:__oline__: \"[$]$1\") >&AC_FD_LOG; dnl
+(eval [$]$1) 2>&AC_FD_LOG; }])
 
 
 # AC_TRY_COMMAND(COMMAND)
@@ -2534,7 +2535,7 @@ AC_DEFUN(AC_PREFIX_PROGRAM,
 pushdef(AC_Prog, translit($1, a-z, A-Z))dnl
 if test "x$prefix" = xNONE; then
 dnl We reimplement AC_MSG_CHECKING (mostly) to avoid the ... in the middle.
-echo $ECHO_N "checking for prefix by $ECHO_C" 1>&AC_FD_MSG
+echo $ECHO_N "checking for prefix by $ECHO_C" >&AC_FD_MSG
 AC_PATH_PROG(AC_Prog, $1)
   if test -n "$ac_cv_path_[]AC_Prog"; then
     prefix=`echo $ac_cv_path_[]AC_Prog | [sed 's%/[^/][^/]*//*[^/][^/]*$%%']`
@@ -2690,9 +2691,9 @@ ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   m4_default([$2], :)
 else
-  echo "$ac_err" >&AC_FD_CC
-  echo "configure: failed program was:" >&AC_FD_CC
-  cat conftest.$ac_ext >&AC_FD_CC
+  echo "$ac_err" >&AC_FD_LOG
+  echo "configure: failed program was:" >&AC_FD_LOG
+  cat conftest.$ac_ext >&AC_FD_LOG
   $3
 fi
 rm -f conftest*])
@@ -2719,7 +2720,7 @@ AC_LANG_SOURCE([[$2]])
 EOF
 dnl eval is necessary to expand ac_cpp.
 dnl Ultrix and Pyramid sh refuse to redirect output of eval, so use subshell.
-if (eval "$ac_cpp conftest.$ac_ext") 2>&AC_FD_CC |
+if (eval "$ac_cpp conftest.$ac_ext") 2>&AC_FD_LOG |
 dnl Prevent m4 from eating character classes:
 changequote(, )dnl
   egrep "$1" >/dev/null 2>&1; then
@@ -2749,8 +2750,8 @@ EOF
 if AC_TRY_EVAL(ac_compile); then
   m4_default([$2], :)
 else
-  echo "configure: failed program was:" >&AC_FD_CC
-  cat conftest.$ac_ext >&AC_FD_CC
+  echo "configure: failed program was:" >&AC_FD_LOG
+  cat conftest.$ac_ext >&AC_FD_LOG
 ifval([$3],
 [  $3
 ])dnl
@@ -2783,8 +2784,8 @@ EOF
 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
   m4_default([$2], :)
 else
-  echo "configure: failed program was:" >&AC_FD_CC
-  cat conftest.$ac_ext >&AC_FD_CC
+  echo "configure: failed program was:" >&AC_FD_LOG
+  cat conftest.$ac_ext >&AC_FD_LOG
 ifval([$3],
 [  $3
 ])dnl
@@ -2835,8 +2836,8 @@ if AC_TRY_EVAL(ac_link) &&
    test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
   m4_default([$2], :)
 else
-  echo "configure: failed program was:" >&AC_FD_CC
-  cat conftest.$ac_ext >&AC_FD_CC
+  echo "configure: failed program was:" >&AC_FD_LOG
+  cat conftest.$ac_ext >&AC_FD_LOG
 ifval([$3],
 [  $3
 ])dnl
@@ -3627,13 +3628,13 @@ ifset([AC_LIST_HEADERS], [DEFS=-DHAVE_CONFIG_H], [AC_OUTPUT_MAKE_DEFS()])
 dnl Commands to run before creating config.status.
 AC_OUTPUT_COMMANDS_PRE()dnl
 
-# Save into config.log some informations which might help to debug.
-echo >>config.log
-echo "The cache variables are:" >>config.log
-_AC_CACHE_DUMP | sed -e 's/^/| /' >>config.log
-echo >>config.log
-echo "confdefs.h is:" >>config.log
-cat confdefs.h | sed -e 's/^/| /' >>config.log
+# Save into config.log some information that might help in debugging.
+echo >&AC_FD_LOG
+echo "Cache variables:" >&AC_FD_LOG
+_AC_CACHE_DUMP | sed -e 's/^/| /' >&AC_FD_LOG
+echo >&AC_FD_LOG
+echo "confdefs.h:" >&AC_FD_LOG
+cat confdefs.h | sed -e 's/^/| /' >&AC_FD_LOG
 
 : ${CONFIG_STATUS=./config.status}
 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
index 397f77f7dab4d7bdc791b594e0f987e12565409f..b59e9410daaa9c7c7c90025a7c4b0f17f327aa4c 100644 (file)
@@ -166,8 +166,8 @@ define([AC_LANG(C)],
 [ac_ext=c
 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 ac_cpp='$CPP $CPPFLAGS'
-ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&AC_FD_CC'
-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AC_FD_CC'
+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&AC_FD_LOG'
+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG'
 cross_compiling=$ac_cv_prog_cc_cross
 ])
 
@@ -229,8 +229,8 @@ define([AC_LANG(C++)],
 [ac_ext=C
 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 ac_cpp='$CXXCPP $CPPFLAGS'
-ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&AC_FD_CC'
-ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AC_FD_CC'
+ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&AC_FD_LOG'
+ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG'
 cross_compiling=$ac_cv_prog_cxx_cross
 ])
 
@@ -273,8 +273,8 @@ define([AC_LANG_CALL(C++)], defn([AC_LANG_CALL(C)]))
 # ------------------
 define([AC_LANG(FORTRAN77)],
 [ac_ext=f
-ac_compile='${F77-f77} -c $FFLAGS conftest.$ac_ext 1>&AC_FD_CC'
-ac_link='${F77-f77} -o conftest${ac_exeext} $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AC_FD_CC'
+ac_compile='${F77-f77} -c $FFLAGS conftest.$ac_ext >&AC_FD_LOG'
+ac_link='${F77-f77} -o conftest${ac_exeext} $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG'
 cross_compiling=$ac_cv_prog_f77_cross
 ])
 
@@ -452,7 +452,7 @@ if AC_TRY_COMMAND(${CC-cc} -E conftest.c) | egrep yes >/dev/null 2>&1; then
   ac_cv_prog_gcc=yes
 else
   ac_cv_prog_gcc=no
-fi])dnl
+fi])[]dnl
 ])# AC_PROG_CC_GNU
 
 
@@ -510,15 +510,15 @@ AC_CACHE_VAL(ac_cv_prog_cc_${ac_cc}_c_o,
 # Make sure it works both with $CC and with simple cc.
 # We do the test twice because some compilers refuse to overwrite an
 # existing .o file with -o, though they will create one.
-ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&AC_FD_CC'
+ac_try='${CC-cc} -c conftest.c -o conftest.o >&AC_FD_LOG'
 if AC_TRY_EVAL(ac_try) &&
    test -f conftest.o && AC_TRY_EVAL(ac_try);
 then
   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
   if test "x$CC" != xcc; then
     # Test first that cc exists at all.
-    if AC_TRY_COMMAND(cc -c conftest.c 1>&AC_FD_CC); then
-      ac_try='cc -c conftest.c -o conftest.o 1>&AC_FD_CC'
+    if AC_TRY_COMMAND(cc -c conftest.c >&AC_FD_LOG); then
+      ac_try='cc -c conftest.c -o conftest.o >&AC_FD_LOG'
       if AC_TRY_EVAL(ac_try) &&
         test -f conftest.o && AC_TRY_EVAL(ac_try);
       then
@@ -649,7 +649,7 @@ if AC_TRY_COMMAND(${CXX-g++} -E conftest.C) | egrep yes >/dev/null 2>&1; then
   ac_cv_prog_gxx=yes
 else
   ac_cv_prog_gxx=no
-fi])dnl
+fi])[]dnl
 ])# AC_PROG_CXX_GNU
 
 
@@ -792,7 +792,7 @@ EOF
 # We do the `AC_TRY_EVAL' test twice because some compilers refuse to
 # overwrite an existing `.o' file with `-o', although they will create
 # one.
-ac_try='$F77 $FFLAGS -c conftest.f -o conftest.o 1>&AC_FD_CC'
+ac_try='$F77 $FFLAGS -c conftest.f -o conftest.o >&AC_FD_LOG'
 if AC_TRY_EVAL(ac_try) && test -f conftest.o && AC_TRY_EVAL(ac_try); then
   eval ac_cv_prog_f77_${ac_f77}_c_o=yes
 else
@@ -1215,11 +1215,11 @@ cat >conftest.$ac_ext <<EOF
 EOF
 
 # Save the "compiler output file descriptor" to FD 8.
-exec 8>&AC_FD_CC
+exec 8>&AC_FD_LOG
 
 # Temporarily redirect compiler output to stdout, since this is what
 # we want to capture in AC_LINK_OUTPUT.
-exec AC_FD_CC>&1
+exec AC_FD_LOG>&1
 
 # Compile and link our simple test program by passing the "-v" flag
 # to the Fortran 77 compiler in order to get "verbose" output that
@@ -1231,7 +1231,7 @@ ac_link_output=`eval $ac_link 2>&1 | grep -v 'Driving:'`
 FFLAGS="$ac_save_FFLAGS"
 
 # Restore the "compiler output file descriptor".
-exec AC_FD_CC>&8
+exec AC_FD_LOG>&8
 
 rm -f conftest.*
 
@@ -1427,8 +1427,8 @@ if AC_TRY_EVAL(ac_compile); then
   rm -f conftest*
   rm -f cf77_test*
 else
-  echo "configure: failed program was:" >&AC_FD_CC
-  cat conftest.$ac_ext >&AC_FD_CC
+  echo "configure: failed program was:" >&AC_FD_LOG
+  cat conftest.$ac_ext >&AC_FD_LOG
 fi
 AC_LANG_RESTORE()dnl
 ])