X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=gcc%2Fconfigure.ac;h=d5244bd380094ebccef01476e39993ba02c53656;hp=001ff503aafea90d569ef2403f5222eaa7818953;hb=36eba48c3119a0236a818f0bb51b11c56b4f351e;hpb=de4e1ab69e80df42173ea9f2449fbda8dc2ecdbd diff --git a/gcc/configure.ac b/gcc/configure.ac index 001ff503aaf..d5244bd3800 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -323,9 +323,8 @@ AC_CHECK_TYPES([__int64], [AC_CHECK_SIZEOF(__int64)]) # So, we only use -pedantic if we can disable those warnings. ACX_PROG_CC_WARNING_OPTS([-W -Wall -Wwrite-strings -Wstrict-prototypes \ - -Wmissing-prototypes], [loose_warn]) -ACX_PROG_CC_WARNING_OPTS([-Wc++-compat], [cxx_compat_warn]) -ACX_PROG_CC_WARNING_OPTS([-Wold-style-definition \ + -Wmissing-prototypes -Wcast-qual], [loose_warn]) +ACX_PROG_CC_WARNING_OPTS([-Wold-style-definition -Wc++-compat \ -Wmissing-format-attribute], [strict_warn]) ACX_PROG_CC_WARNING_ALMOST_PEDANTIC([-Wno-long-long -Wno-variadic-macros \ -Wno-overlength-strings], [strict_warn]) @@ -988,7 +987,7 @@ define(gcc_UNLOCKED_FUNCS, clearerr_unlocked feof_unlocked dnl fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked dnl putchar_unlocked putc_unlocked) AC_CHECK_FUNCS(times clock kill getrlimit setrlimit atoll atoq \ - sysconf strsignal getrusage nl_langinfo scandir alphasort \ + sysconf strsignal getrusage nl_langinfo \ gettimeofday mbstowcs wcswidth mmap mincore setlocale \ gcc_UNLOCKED_FUNCS) @@ -1011,6 +1010,7 @@ int main() fi AC_CHECK_TYPE(ssize_t, int) +AC_CHECK_TYPE(caddr_t, char *) # Try to determine the array type of the second argument of getgroups # for the target system (int or gid_t). @@ -1078,7 +1078,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include #endif ]], [[rlim_t l = 0;]])],[],[AC_DEFINE([rlim_t],[long], -[Define to \`long' if doesn't define.])]) +[Define to `long' if doesn't define.])]) # On AIX 5.2, conflicts with , as both define incompatible # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname @@ -1368,8 +1368,12 @@ fi # Make gthr-default.h if we have a thread file. gthread_flags= if test $thread_file != single; then - rm -f gthr-default.h - echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h + echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t + if diff gthr-default.h-t gthr-default.h 2>/dev/null; then + rm -f gthr-default.h-t + else + mv -f gthr-default.h-t gthr-default.h + fi gthread_flags=-DHAVE_GTHR_DEFAULT fi AC_SUBST(gthread_flags) @@ -1460,6 +1464,7 @@ else esac saved_CFLAGS="${CFLAGS}" CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \ + LDFLAGS="${LDFLAGS_FOR_BUILD}" \ ${realsrcdir}/configure \ --enable-languages=${enable_languages-all} \ --target=$target_alias --host=$build_alias --build=$build_alias @@ -1528,6 +1533,10 @@ AC_ARG_ENABLE(secureplt, [ --enable-secureplt enable -msecure-plt by default for PowerPC], [], []) +AC_ARG_ENABLE(cld, +[ --enable-cld enable -mcld by default for 32bit x86], [], +[enable_cld=no]) + # Windows32 Registry support for specifying GCC installation paths. AC_ARG_ENABLE(win32-registry, [ --disable-win32-registry @@ -1752,6 +1761,7 @@ AC_SUBST(inhibit_libc) # These are the normal (build=host) settings: CC_FOR_BUILD='$(CC)' AC_SUBST(CC_FOR_BUILD) BUILD_CFLAGS='$(ALL_CFLAGS)' AC_SUBST(BUILD_CFLAGS) +BUILD_LDFLAGS='$(LDFLAGS)' AC_SUBST(BUILD_LDFLAGS) STMP_FIXINC=stmp-fixinc AC_SUBST(STMP_FIXINC) # Possibly disable fixproto, on a per-target basis. @@ -1769,6 +1779,7 @@ AC_SUBST(STMP_FIXPROTO) if test x$build != x$host || test "x$coverage_flags" != x then BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)' + BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)' if test "x$TARGET_SYSTEM_ROOT" = x; then if test "x$STMP_FIXPROTO" != x; then @@ -3052,8 +3063,9 @@ esac # version to the per-target configury. case "$target" in i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \ - | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \ - | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-* | spu-*-*) + | x86_64*-*-* | hppa*-*-* | arm*-*-* \ + | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-* \ + | spu-*-* | fido*-*-*) insn="nop" ;; ia64*-*-* | s390*-*-*) @@ -3799,6 +3811,7 @@ AC_SUBST(xm_include_list) AC_SUBST(xm_defines) AC_SUBST(c_target_objs) AC_SUBST(cxx_target_objs) +AC_SUBST(fortran_target_objs) AC_SUBST(target_cpu_default) AC_SUBST_FILE(language_hooks)