diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-12-16 18:23:00 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-12-16 18:23:00 +0000 |
commit | 805e22b2051e9c6a75377ea6599654d7415da483 (patch) | |
tree | c259697c448b0c6f548f153c48c46a8d7a75970f /gcc/configure.in | |
parent | 2c27ce73ee2229b0871c4ccad2342d8a4be85eff (diff) | |
download | ppe42-gcc-805e22b2051e9c6a75377ea6599654d7415da483.tar.gz ppe42-gcc-805e22b2051e9c6a75377ea6599654d7415da483.zip |
Merge basic-improvements-branch to trunk
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@60174 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/configure.in')
-rw-r--r-- | gcc/configure.in | 105 |
1 files changed, 65 insertions, 40 deletions
diff --git a/gcc/configure.in b/gcc/configure.in index c0afb232296..cb01381e6de 100644 --- a/gcc/configure.in +++ b/gcc/configure.in @@ -237,14 +237,14 @@ gcc_AC_C_LONG_LONG gcc_AC_C__BOOL # sizeof(char) is 1 by definition. -gcc_AC_COMPILE_CHECK_SIZEOF(short) -gcc_AC_COMPILE_CHECK_SIZEOF(int) -gcc_AC_COMPILE_CHECK_SIZEOF(long) +AC_COMPILE_CHECK_SIZEOF(short) +AC_COMPILE_CHECK_SIZEOF(int) +AC_COMPILE_CHECK_SIZEOF(long) if test $ac_cv_c_long_long = yes; then - gcc_AC_COMPILE_CHECK_SIZEOF(long long) + AC_COMPILE_CHECK_SIZEOF(long long) fi if test $ac_cv_c___int64 = yes; then - gcc_AC_COMPILE_CHECK_SIZEOF(__int64) + AC_COMPILE_CHECK_SIZEOF(__int64) fi gcc_AC_C_CHARSET @@ -475,6 +475,25 @@ AC_ARG_ENABLE(shared, ], [enable_shared=yes]) AC_SUBST(enable_shared) +AC_ARG_WITH(sysroot, +[ --with-sysroot[=DIR] Search for usr/lib, usr/include, et al, within DIR.], +[ + case ${with_sysroot} in + yes) TARGET_SYSTEM_ROOT='${gcc_tooldir}/sys-root' ;; + *) TARGET_SYSTEM_ROOT=$with_sysroot ;; + esac + + TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' + CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)' +], [ + TARGET_SYSTEM_ROOT= + TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=0' + CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include' +]) +AC_SUBST(TARGET_SYSTEM_ROOT) +AC_SUBST(TARGET_SYSTEM_ROOT_DEFINE) +AC_SUBST(CROSS_SYSTEM_HEADER_DIR) + # Stage specific cflags for build. stage1_cflags= case $build in @@ -557,7 +576,7 @@ AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=]) # These tests can't be done till we know if we have limits.h. gcc_AC_C_CHAR_BIT -gcc_AC_C_COMPILE_ENDIAN +AC_C_BIGENDIAN_CROSS gcc_AC_C_FLOAT_FORMAT # See if we have the mktemp command. @@ -780,6 +799,25 @@ objext='.o' AC_SUBST(manext) AC_SUBST(objext) +# With Setjmp/Longjmp based exception handling. +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.])]) + +AC_CHECK_LIB(unwind, main, use_libunwind_default=yes, use_libunwind_default=no) +# Use libunwind based exception handling. +AC_ARG_ENABLE(libunwind-exceptions, +[ --enable-libunwind-exceptions force use libunwind for exceptions], +use_libunwind_exceptions=$enableval, +use_libunwind_exceptions=$use_libunwind_default) +if test x"$use_libunwind_exceptions" = xyes; then + AC_DEFINE(USE_LIBUNWIND_EXCEPTIONS, 1, + [Define if gcc should use -lunwind.]) +fi + target_gtfiles= build_xm_file= build_xm_defines= @@ -869,6 +907,11 @@ else done fi +if test x$need_64bit_hwint = xyes; then + AC_DEFINE(NEED_64BIT_HOST_WIDE_INT, 1, +[Define to 1 if HOST_WIDE_INT must be 64 bits wide (see hwint.h).]) +fi + count=a for f in $host_xm_file; do count=${count}x @@ -923,7 +966,7 @@ fi # auto-host.h is the file containing items generated by autoconf and is # the first file included by config.h. -# If host=build, it is correct to have hconfig include auto-host.h +# If host=build, it is correct to have bconfig include auto-host.h # as well. If host!=build, we are in error and need to do more # work to find out the build config parameters. if test x$host = x$build @@ -960,9 +1003,10 @@ fi AC_SUBST(FORBUILD) tm_file="${tm_file} defaults.h" -host_xm_file="auto-host.h ansidecl.h ${host_xm_file} ${tm_file}" -build_xm_file="${build_auto} ansidecl.h ${build_xm_file} ${tm_file}" -xm_file="ansidecl.h ${xm_file} ${tm_file}" +tm_p_file="${tm_p_file} tm-preds.h" +host_xm_file="auto-host.h ansidecl.h ${host_xm_file}" +build_xm_file="${build_auto} ansidecl.h ${build_xm_file}" +xm_file="ansidecl.h ${xm_file}" # Truncate the target if necessary if test x$host_truncate_target != x; then @@ -1134,7 +1178,11 @@ done tm_p_file_list= for f in $tm_p_file; do - tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f" + case $f in + tm-preds.h ) + tm_p_file_list="${tm_p_file_list} $f" ;; + *) tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f" ;; + esac done host_xm_file_list= @@ -1188,26 +1236,21 @@ fi # This prevents libgcc2 from containing any code which requires libc # support. inhibit_libc= -if [test x$host != x$target] && [test x$with_headers = x]; then +if { test x$host != x$target && test "x$with_headers" = x && + test "x$with_sysroot" = x ; } || test x$with_newlib = xyes ; then inhibit_libc=-Dinhibit_libc -else - if [test x$with_newlib = xyes]; then - inhibit_libc=-Dinhibit_libc - fi fi AC_SUBST(inhibit_libc) # When building gcc with a cross-compiler, we need to adjust things so # that the generator programs are still built with the native compiler. # Also, we cannot run fixincludes or fix-header. -# Note that the terminology here is wrong; it should be BUILD_* throughout. -# FIXME. # These are the normal (build=host) settings: BUILD_PREFIX= AC_SUBST(BUILD_PREFIX) BUILD_PREFIX_1=ignore- AC_SUBST(BUILD_PREFIX_1) -HOST_CC='$(CC)' AC_SUBST(HOST_CC) -HOST_CFLAGS='$(ALL_CFLAGS)' AC_SUBST(HOST_CFLAGS) +BUILD_CC='$(CC)' AC_SUBST(BUILD_CC) +BUILD_CFLAGS='$(ALL_CFLAGS)' AC_SUBST(BUILD_CFLAGS) STMP_FIXINC=stmp-fixinc AC_SUBST(STMP_FIXINC) STMP_FIXPROTO=stmp-fixproto AC_SUBST(STMP_FIXPROTO) @@ -1217,8 +1260,8 @@ if test x$build != x$host then BUILD_PREFIX=build- BUILD_PREFIX_1=build- - HOST_CC='$(CC_FOR_BUILD)' - HOST_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD) $(XCFLAGS)' + BUILD_CC='$(CC_FOR_BUILD)' + BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD) $(XCFLAGS)' STMP_FIXINC= STMP_FIXPROTO= @@ -2483,24 +2526,6 @@ else fi AC_SUBST(MAINT)dnl -# With Setjmp/Longjmp based exception handling. -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.])]) - -# Use libunwind based exception handling. -AC_ARG_ENABLE(libunwind-exceptions, -[ --enable-libunwind-exceptions force use libunwind for exceptions], -use_libunwind_exceptions=$enableval, -use_libunwind_exceptions=no) -if test x"$use_libunwind_exceptions" = xyes; then - AC_DEFINE(USE_LIBUNWIND_EXCEPTIONS, 1, - [Define if gcc should use -lunwind.]) -fi - # Make empty files to contain the specs and options for each language. # Then add #include lines to for a compiler that has specs and/or options. |