X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=gcc%2Fconfigure.ac;h=8a53d59326eb2be0f2bbef1f67e7dd1a4615eb93;hp=118d9b2a77bb53f9d0578caeaf82cec53cbe8a1b;hb=f1984c5732a8b17b8f085ed0befaeb2f443d001e;hpb=9c85a98a2b03f3bacaba6103c8112066d0d272bb diff --git a/gcc/configure.ac b/gcc/configure.ac index 118d9b2a77b..8a53d59326e 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -276,6 +276,8 @@ rm -f a.out a.exe b.out # Find the native compiler AC_PROG_CC AM_PROG_CC_C_O +ACX_PROG_GNAT([-I"$srcdir"/ada]) + # autoconf is lame and doesn't give us any substitution variable for this. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then NO_MINUS_C_MINUS_O=yes @@ -297,6 +299,7 @@ AC_SUBST(CFLAGS) # Check C compiler features # ------------------------- +AC_USE_SYSTEM_EXTENSIONS AC_PROG_CPP AC_C_INLINE @@ -367,7 +370,7 @@ do ac_gc_always_collect= ; ac_rtl_checking= ; ac_rtlflag_checking=1 ; ac_runtime_checking=1 ; ac_tree_checking=1 ; ac_valgrind_checking= ; - ac_types_checking= ;; + ac_types_checking=1 ;; no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ; ac_fold_checking= ; ac_gc_checking= ; ac_gc_always_collect= ; ac_rtl_checking= ; @@ -896,20 +899,6 @@ fi # Checks for C headers # -------------------- -AC_MSG_CHECKING(for GNU C library) -AC_CACHE_VAL(gcc_cv_glibc, -[AC_COMPILE_IFELSE([AC_LANG_PROGRAM( - [[#include ]], [[ -#if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) -#error Not a GNU C library system -#endif]])], - [gcc_cv_glibc=yes], - [gcc_cv_glibc=no])]) -AC_MSG_RESULT($gcc_cv_glibc) -if test $gcc_cv_glibc = yes; then - AC_DEFINE(_GNU_SOURCE, 1, [Always define this when using the GNU C Library]) -fi - # Need to reject headers which give warnings, so that the -Werror bootstrap # works later. *sigh* This needs to come before all header checks. AC_PROG_CPP_WERROR @@ -1163,9 +1152,29 @@ AC_SUBST(objext) AC_ARG_ENABLE(sjlj-exceptions, [ --enable-sjlj-exceptions arrange to use setjmp/longjmp exception handling], -[sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi` -AC_DEFINE_UNQUOTED(CONFIG_SJLJ_EXCEPTIONS, $sjlj, - [Define 0/1 to force the choice for exception handling model.])]) +[case $target in + *-*-hpux10*) + if test $enableval != yes; then + AC_MSG_WARN([dwarf2 exceptions not supported, sjlj exceptions forced]) + enableval=yes + fi + ;; +esac +force_sjlj_exceptions=yes], +[case $target in + *-*-hpux10*) + force_sjlj_exceptions=yes + enableval=yes + ;; + *) + force_sjlj_exceptions=no + ;; +esac]) +if test $force_sjlj_exceptions = yes; then + sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi` + AC_DEFINE_UNQUOTED(CONFIG_SJLJ_EXCEPTIONS, $sjlj, + [Define 0/1 to force the choice for exception handling model.]) +fi # For platforms with the unwind ABI which includes an unwind library, # libunwind, we can choose to use the system libunwind. @@ -1728,7 +1737,7 @@ fi # then define inhibit_libc in LIBGCC2_CFLAGS. # This prevents libgcc2 from containing any code which requires libc # support. -inhibit_libc=false +: ${inhibit_libc=false} if { { test x$host != x$target && test "x$with_sysroot" = x ; } || test x$with_newlib = xyes ; } && { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then @@ -1807,6 +1816,21 @@ esac # Assembler & linker features # --------------------------- +# During stage 2, ld is actually gcc/collect-ld, which is a small script to +# discern between when to use prev-ld/ld-new and when to use ld/ld-new. +# However when ld-new is first executed from the build tree, libtool will +# relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers +# to the build tree. While doing this we need to use the previous-stage +# linker, or we have an infinite loop. The presence of a shell script as +# ld/ld-new, and the fact that the script *uses ld itself*, is what confuses +# the gcc/collect-ld script. So we need to know how libtool works, or +# exec-tool will fail. + +m4_defun([_LT_CONFIG_COMMANDS], []) +AC_PROG_LIBTOOL +AC_SUBST(objdir) +AC_SUBST(enable_fast_install) + # Identify the assembler which will work hand-in-glove with the newly # built GCC, so that we can examine its features. This is the assembler # which will be driven by the driver program. @@ -3683,9 +3707,6 @@ else fi) AC_SUBST(slibdir) -objdir=`${PWDCMD-pwd}` -AC_SUBST(objdir) - AC_ARG_WITH(datarootdir, [ --with-datarootdir=DIR Use DIR as the data root [[PREFIX/share]]], datarootdir="\${prefix}/$with_datarootdir",