This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Update autoconf for gas
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: binutils at sources dot redhat dot com
- Date: Thu, 28 Aug 2003 20:59:01 -0400
- Subject: Update autoconf for gas
Autoconf and automake, actually. There is only one thorn: the syntax for
ylwrap has changed. Fortunately only gdb and binutils in the entire src
repository use ylwrap; so we can update all users at once.
However, the two uses of ylwrap in gas are both explicit; the suffix rule is
not used. Therefore we can update automake in the gas directory without
updating ylwrap also. I'll return to fix ylwrap separately.
Is this OK?
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
2003-08-28 Daniel Jacobowitz <drow@mvista.com>
* configure.in: Update AC_PREREQ to 2.57. Use AC_CONFIG_FILES
and AC_CONFIG_COMMANDS instead of the three-argument AC_OUTPUT.
* configure: Regenerated with autoconf 2.57.
* aclocal.m4: Regenerated with aclocal-1.7.
* Makefile.in, doc/Makefile.in: Regenerated with automake-1.7.
Index: configure.in
===================================================================
RCS file: /big/fsf/rsync/src-cvs/src/gas/configure.in,v
retrieving revision 1.136
diff -u -p -r1.136 configure.in
--- configure.in 10 Jul 2003 04:44:55 -0000 1.136
+++ configure.in 29 Aug 2003 00:40:26 -0000
@@ -5,7 +5,7 @@ dnl brackets, be sure changequote invoca
dnl
dnl
dnl v2.5 needed for --bindir et al
-AC_PREREQ(2.13)
+AC_PREREQ(2.57)
AC_INIT(as.h)
AC_CANONICAL_SYSTEM
@@ -70,10 +70,14 @@ AM_CONFIG_HEADER(config.h:config.in)
# If we are on a DOS filesystem, we must use gdb.ini rather than
# .gdbinit.
-GDBINIT=".gdbinit"
case "${host}" in
*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
GDBINIT="gdb.ini"
+ AC_CONFIG_FILES(gdb.ini:gdbinit.in)
+ ;;
+ *)
+ GDBINIT=".gdbinit"
+ AC_CONFIG_FILES(.gdbinit:gdbinit.in)
;;
esac
AC_SUBST(GDBINIT)
@@ -1045,7 +1049,8 @@ dnl the build directory which include th
dnl the old symlinks don't exist, so that a reconfigure in an existing
dnl directory behaves reasonably.
-AC_OUTPUT(Makefile doc/Makefile ${GDBINIT}:gdbinit.in po/Makefile.in:po/Make-in,
+AC_CONFIG_FILES(Makefile doc/Makefile po/Makefile.in:po/Make-in)
+AC_CONFIG_COMMANDS([default],
[rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
@@ -1060,3 +1065,5 @@ AC_OUTPUT(Makefile doc/Makefile ${GDBINI
cgen_cpu_prefix=${cgen_cpu_prefix}
obj_format=${obj_format}
te_file=${te_file}])
+
+AC_OUTPUT