fixes for host gcc 4.6.1
[zpugcc/jano.git] / toolchain / gcc / newlib / doc / configure.in
blobb116b3538cc8b23bde1258bb31fad39f538112d4
1 dnl This is the newlib/doc configure.in file.
2 dnl Process this file with autoconf to produce a configure script.
4 AC_PREREQ(2.5)
5 AC_INIT(makedoc.c)
7 dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 
8 AC_CONFIG_AUX_DIR(../..)
10 NEWLIB_CONFIGURE(..)
12 # Put a plausible default for CC_FOR_BUILD in Makefile.
13 if test -z "$CC_FOR_BUILD"; then
14   if test "x$cross_compiling" = "xno"; then
15     CC_FOR_BUILD='$(CC)'
16   else
17     CC_FOR_BUILD=gcc
18   fi
20 AC_SUBST(CC_FOR_BUILD)
22 # Also set EXEEXT_FOR_BUILD.
23 if test "x$cross_compiling" = "xno"; then
24   EXEEXT_FOR_BUILD='$(EXEEXT)'
25 else
26   AC_CACHE_CHECK([for build system executable suffix], newlib_cv_build_exeext,
27     [cat > ac_c_test.c << 'EOF'
28 int main() {
29 /* Nothing needed here */
31 EOF
32     ${CC_FOR_BUILD} -o ac_c_test am_c_test.c 1>&5 2>&5
33     newlib_cv_build_exeext=`echo ac_c_test.* | grep -v ac_c_test.c | sed -e s/ac_c_test//`
34     rm -f ac_c_test*
35     test x"${newlib_cv_build_exeext}" = x && newlib_cv_build_exeext=no])
36   EXEEXT_FOR_BUILD=""
37   test x"${newlib_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${newlib_cv_build_exeext}
39 AC_SUBST(EXEEXT_FOR_BUILD)
41 AC_OUTPUT(Makefile)