1 dnl We define the macro GLIBC_PROVIDES to do an AC_PROVIDE for each macro
2 dnl which appears in configure.in before the sysdep configure scripts are run.
3 dnl Each sysdep configure.in does GLIBC_PROVIDES first, to avoid any
4 dnl AC_REQUIREs or AC_BEFOREs duplicating their code.
6 define(AC_FD_MSG,6)dnl Autoconf lossage.
7 define(AC_FD_CC,5)dnl Autoconf lossage.
8 AC_DEFUN([GLIBC_PROVIDES], [dnl
9 AC_PROVIDE([AC_PROG_INSTALL])dnl
10 AC_PROVIDE([AC_PROG_RANLIB])dnl
11 AC_PROVIDE([AC_PROG_CC])dnl
12 AC_PROVIDE([AC_PROG_CPP])dnl
13 # This file is generated from configure.in by Autoconf. DO NOT EDIT!
16 dnl Check for a symbol
18 AC_DEFUN(AC_CHECK_SYMBOL, [dnl
19 AC_MSG_CHECKING(for $1)
20 AC_CACHE_VAL(ac_cv_check_symbol_$1, [dnl
23 extern char *$1[]; puts(*$1);,
25 ac_cv_check_symbol_$1=yes, ac_cv_check_symbol_$1=no)])
26 if test "$ac_cv_check_symbol_$1" = yes; then
28 ac_tr_symbol=`echo $1 | tr '[a-z]' '[A-Z]'`
30 AC_DEFINE_UNQUOTED(HAVE_${ac_tr_symbol})
32 AC_MSG_RESULT($ac_cv_check_symbol_$1)])dnl
35 dnl These modifications are to allow for an empty cross compiler tree.
36 dnl In the situation that cross-linking is impossible, the variable
37 dnl `cross_linkable' will be substituted with "yes".
38 AC_DEFUN(AC_PROG_CC_LOCAL,
39 [AC_BEFORE([$0], [AC_PROG_CPP])dnl
40 AC_CHECK_PROG(CC, gcc, gcc)
41 if test -z "$CC"; then
42 AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc)
43 test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH])
46 AC_PROG_CC_WORKS_LOCAL
49 dnl The following differs from the AC_PROG_CC macro in autoconf. Since
50 dnl we require a recent version of gcc to be used we do not need to go
51 dnl into lengths and test for bugs in old versions. It must be gcc 2.7
53 if test $ac_cv_prog_gcc = yes; then
57 cat > conftest.c <<EOF
58 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
62 if AC_TRY_COMMAND(${CC-cc} -E conftest.c) | egrep yes >/dev/null 2>&1; then
63 if test -z "$CFLAGS"; then
67 AC_MSG_ERROR([We require GNU CC version 2.7 or newer])
70 AC_MSG_ERROR([GNU libc must be compiled using GNU CC])
74 AC_DEFUN(AC_PROG_CC_WORKS_LOCAL,
75 [AC_MSG_CHECKING([whether the C compiler ($CC $CFLAGS $LDFLAGS) works])
78 AC_TRY_COMPILER([main(){return(0);}], ac_cv_prog_cc_works, ac_cv_prog_cc_cross)
80 AC_MSG_RESULT($ac_cv_prog_cc_works)
81 if test $ac_cv_prog_cc_works = no; then
83 ac_cv_prog_cc_cross=yes
84 dnl AC_MSG_ERROR([installation or configuration problem: C compiler cannot create executables.])
88 AC_MSG_CHECKING([whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler])
89 AC_MSG_RESULT($ac_cv_prog_cc_cross)
90 AC_SUBST(cross_linkable)
91 cross_compiling=$ac_cv_prog_cc_cross