This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Cleanup configure.in (4/n)
- From: Mark Kettenis <kettenis at chello dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 2 Jan 2003 01:51:47 +0100 (CET)
- Subject: [PATCH] Cleanup configure.in (4/n)
This puts all "Checks for programs" near each other. It also tries to
address some Automake 2.13 cross-compilation lossage with respect to
ranlib. Not sure whether it really works though.
Committed.
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* configure.in: Create "Checks for programs" section, and move
appropriate tests there.
Index: configure.in
===================================================================
RCS file: /cvs/src/src/gdb/configure.in,v
retrieving revision 1.99
diff -u -p -r1.99 configure.in
--- configure.in 1 Jan 2003 23:50:45 -0000 1.99
+++ configure.in 2 Jan 2003 00:41:47 -0000
@@ -33,6 +33,14 @@ AM_PROG_CC_STDC
AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/..)
AC_CANONICAL_SYSTEM
+# FIXME: kettenis/20030102: The AC_PROG_RANLIB from Autoconf 2.13
+# doesn't support cross-compilation, but the one from Autoconf 2.5x
+# does. Override RANLIB here (i.e. before running AC_PROG_RANLIB) to
+# deal with the lossage. Note that CY_GNU_GETTEXT currently calls
+# AC_PROG_RANLIB. This can be removed when we switch to # Autoconf
+# 2.5x.
+AC_CHECK_TOOL(RANLIB, ranlib, :)
+
dnl Set up for gettext. PACKAGE is used when we call bindtextdomain.
ALL_LINGUAS=
CY_GNU_GETTEXT
@@ -95,19 +103,25 @@ if test x"${targ_defvec}" != x ; then
AC_DEFINE_UNQUOTED(DEFAULT_BFD_VEC, ${targ_defvec})
fi
+AC_ARG_PROGRAM
+
+# --------------------- #
+# Checks for programs. #
+# --------------------- #
+
AC_PROG_AWK
AC_PROG_INSTALL
+AC_PROG_LN_S
+AC_PROG_RANLIB
+AC_PROG_YACC
+
AC_CHECK_TOOL(AR, ar)
-AC_CHECK_TOOL(RANLIB, ranlib, :)
AC_CHECK_TOOL(DLLTOOL, dlltool)
AC_CHECK_TOOL(WINDRES, windres)
-AC_PROG_YACC
-dnl MiG is needed for the Hurd.
+# Needed for GNU/Hurd.
AC_CHECK_TOOL(MIG, mig)
-AC_ARG_PROGRAM
-
# ---------------------- #
# Checks for libraries. #
# ---------------------- #
@@ -1404,8 +1418,6 @@ if test "${nativefile}" != ""; then
AC_DEFINE_UNQUOTED(GDB_NM_FILE, ${GDB_NM_FILE})
fi
AC_SUBST(nm_h)
-
-AC_PROG_LN_S
AC_LINK_FILES($files, $links)