aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-04-03 23:51:57 +0000
committerUlrich Drepper <drepper@redhat.com>2009-04-03 23:51:57 +0000
commitc0bac8b05a52c6a5d39fc6ac50779773fbc28f20 (patch)
tree2b04b82b7a4c5567c0487a1f7510e2a805ed930f /configure.in
parente109c6124fe121618e42ba882e2a0af6e97b8efc (diff)
downloadglibc-c0bac8b05a52c6a5d39fc6ac50779773fbc28f20.tar
glibc-c0bac8b05a52c6a5d39fc6ac50779773fbc28f20.tar.gz
glibc-c0bac8b05a52c6a5d39fc6ac50779773fbc28f20.tar.bz2
glibc-c0bac8b05a52c6a5d39fc6ac50779773fbc28f20.zip
* configure.in: We need to test for the compiler earlier.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in17
1 files changed, 9 insertions, 8 deletions
diff --git a/configure.in b/configure.in
index 02832ddd30..d54e952d91 100644
--- a/configure.in
+++ b/configure.in
@@ -6,6 +6,15 @@ AC_CONFIG_SRCDIR([include/features.h])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_AUX_DIR([scripts])
+AC_PROG_CC
+if test $host != $build; then
+ AC_CHECK_PROGS(BUILD_CC, gcc cc)
+fi
+AC_SUBST(cross_compiling)
+AC_PROG_CPP
+# We need the C++ compiler only for testing.
+AC_PROG_CXX
+
if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
AC_MSG_ERROR([you must configure in a separate build directory])
fi
@@ -882,14 +891,6 @@ if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
fi
AC_PROG_LN_S
-AC_PROG_CC
-if test $host != $build; then
- AC_CHECK_PROGS(BUILD_CC, gcc cc)
-fi
-AC_SUBST(cross_compiling)
-AC_PROG_CPP
-# We need the C++ compiler only for testing.
-AC_PROG_CXX
LIBC_PROG_BINUTILS
AC_SUBST(MIG)dnl Needed by sysdeps/mach/configure.in