OSDN Git Service

* flow.c (life_analysis): Only turn off PROP_LOG_LINKS and
[pf3gnuchains/gcc-fork.git] / gcc / configure.in
index bc4cf07..a860e78 100644 (file)
@@ -182,16 +182,16 @@ AC_ARG_ENABLE(checking,
                          enable expensive run-time checks.  With LIST,
                          enable only specific categories of checks.
                          Categories are: misc,tree,rtl,gc,gcac; default
-                         is misc,tree,rtl],
+                         is misc,tree,gc],
 [ac_checking=
 ac_tree_checking=
 ac_rtl_checking=
 ac_gc_checking=
 ac_gc_always_collect=
 case "${enableval}" in
-yes)   ac_checking=1 ; ac_tree_checking=1 ; ac_rtl_checking=1 ;;
+yes)   ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;;
 no)    ;;
-*)     IFS="${IFS=     }"; ac_save_IFS="$IFS" IFS="$IFS,"
+*)     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
        set fnord $enableval; shift
        IFS="$ac_save_IFS"
        for check
@@ -207,6 +207,9 @@ no) ;;
        done
        ;;
 esac
+], 
+# Enable some checks by default for development versions of GCC
+[ac_checking=1; ac_tree_checking=1; ac_gc_checking=1;])
 if test x$ac_checking != x ; then
   AC_DEFINE(ENABLE_CHECKING, 1,
 [Define if you want more run-time sanity checks.  This one gets a grab
@@ -235,7 +238,7 @@ if test x$ac_gc_always_collect != x ; then
    paranoid mode, validating the entire heap and collecting garbage at
    every opportunity.  This is extremely expensive.])
 fi
-])
+
 
 AC_ARG_ENABLE(cpp,
 [  --disable-cpp           don't provide a user-visible C preprocessor.],
@@ -329,15 +332,13 @@ AC_SUBST(NO_MINUS_C_MINUS_O)
 
 gcc_AC_C_LONG_DOUBLE
 
-AC_MSG_CHECKING(whether ${CC-cc} accepts -Wno-long-long)
-echo 'void f(){}' > conftest.c
-if test -z "`${CC-cc} -Wno-long-long -c conftest.c 2>&1`"; then
-  ac_cv_prog_cc_no_long_long=yes
-else
-  ac_cv_prog_cc_no_long_long=no
-fi
-rm -f conftest*
-echo "$ac_t"$ac_cv_prog_cc_no_long_long 1>&6
+AC_CACHE_CHECK(whether ${CC-cc} accepts -Wno-long-long,
+ac_cv_prog_cc_no_long_long,
+[save_CFLAGS="$CFLAGS"
+CFLAGS="-Wno-long-long"
+AC_TRY_COMPILE(,,ac_cv_prog_cc_no_long_long=yes,
+              ac_cv_prog_cc_no_long_long=no)
+CFLAGS="$save_CFLAGS"])
 
 # If the native compiler is GCC, we can enable warnings even in stage1.  
 # That's useful for people building cross-compilers, or just running a
@@ -477,6 +478,26 @@ AC_CHECK_FUNCS(strtoul bsearch putenv popen bcopy bzero bcmp \
 
 AC_CHECK_TYPE(ssize_t, int)
 
+# Try to determine the array type of the second argument of getgroups
+# for the target system (int or gid_t).
+AC_TYPE_GETGROUPS
+if test "${target}" = "${build}"; then
+  TARGET_GETGROUPS_T=$ac_cv_type_getgroups
+else
+  case "${target}" in
+       # This condition may need some tweaking.  It should include all
+       # targets where the array type of the second argument of getgroups
+       # is int and the type of gid_t is not equivalent to int.
+       *-*-sunos* | *-*-ultrix*)
+               TARGET_GETGROUPS_T=int
+               ;;
+       *)
+               TARGET_GETGROUPS_T=gid_t
+               ;;
+  esac
+fi
+AC_SUBST(TARGET_GETGROUPS_T)
+
 gcc_AC_FUNC_VFPRINTF_DOPRNT
 gcc_AC_FUNC_PRINTF_PTR
 
@@ -1113,10 +1134,11 @@ changequote([,])dnl
                if test x$enable_threads = x; then
                    enable_threads=$have_pthread_h
                fi
-               if test x$enable_threads = xyes; then
-                       thread_file='dce'
+               case x${enable_threads} in
+               xyes | xdce)
                        tmake_file="${tmake_file} pa/t-dce-thr"
-               fi
+                       ;;
+               esac
                install_headers_dir=install-headers-cpio
                use_collect2=yes
                ;;
@@ -1133,10 +1155,11 @@ changequote([,])dnl
                if test x$enable_threads = x; then
                    enable_threads=$have_pthread_h
                fi
-               if test x$enable_threads = xyes; then
-                       thread_file='dce'
+               case x${enable_threads} in
+               xyes | xdce)
                        tmake_file="${tmake_file} pa/t-dce-thr"
-               fi
+                       ;;
+               esac
                install_headers_dir=install-headers-cpio
                use_collect2=yes
                ;;
@@ -1256,7 +1279,7 @@ changequote([,])dnl
                use_collect2=yes
                ;;
        hppa*-*-mpeix*)
-               tm_file="${tm_file} pa/pa-mpeix.h"
+               tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
                xm_file=pa/xm-pampeix.h 
                xmake_file=pa/x-pa-mpeix 
                echo "You must use gas. Assuming it is already installed." 
@@ -1402,23 +1425,12 @@ changequote([,])dnl
                tmake_file=i386/t-i386bare
                ;;
 changequote(,)dnl
-       i[34567]86-*-beospe*)
-changequote([,])dnl
-               xm_file=i386/xm-beos.h
-               xm_defines="USE_C_ALLOCA"
-               tmake_file=i386/t-beos
-               tm_file=i386/beos-pe.h
-               xmake_file=i386/x-beos
-               extra_objs=winnt.o
-               ;;
-changequote(,)dnl
        i[34567]86-*-beoself* | i[34567]86-*-beos*)
 changequote([,])dnl
                xm_file=i386/xm-beos.h
                tmake_file='i386/t-beos i386/t-crtpic'
                tm_file=i386/beos-elf.h
                xmake_file=i386/x-beos
-               extra_objs=winnt.o
                extra_parts='crtbegin.o crtend.o'
                ;;
 changequote(,)dnl
@@ -1436,7 +1448,13 @@ changequote([,])dnl
 #              use_collect2=yes
                ;;
 changequote(,)dnl
-       i[34567]86-*-freebsdelf*)
+       i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
+changequote([,])dnl
+               tm_file="i386/freebsd.h i386/perform.h"
+               tmake_file=t-freebsd
+               ;;
+changequote(,)dnl
+       i[34567]86-*-freebsd*)
 changequote([,])dnl
                tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
                extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
@@ -1452,12 +1470,6 @@ changequote([,])dnl
                esac
                ;;
 changequote(,)dnl
-       i[34567]86-*-freebsd*)
-changequote([,])dnl
-               tm_file="i386/freebsd.h i386/perform.h"
-               tmake_file=t-freebsd
-               ;;
-changequote(,)dnl
        i[34567]86-*-netbsd*)
 changequote([,])dnl
                tm_file=i386/netbsd.h
@@ -2513,6 +2525,8 @@ changequote([,])dnl
                ;;
        m88k-*-openbsd*)
                tmake_file="${tmake_file} m88k/t-luna-gas"
+               tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
+               xm_file="xm-openbsd.h m88k/xm-m88k.h ${xm_file}"
                ;;
        m88k-*-sysv3*)
                tm_file=m88k/sysv3.h
@@ -2718,18 +2732,19 @@ changequote([,])dnl
                # On NetBSD, the headers are already okay, except for math.h.
                tmake_file=t-netbsd
                ;;
-       mips*-*-linux*)                         # Linux MIPS, either endian.
+       mips*-*-linux*)                         # Linux MIPS, either endian.
                xmake_file=x-linux
-               case $machine in
-                       mipsel-*)  tm_file="mips/elfl.h mips/linux.h" ;;
-                       *)         tm_file="mips/elf.h mips/linux.h" ;;
-               esac
+               case $machine in
+                      mips*el-*)  tm_file="mips/elfl.h mips/linux.h" ;;
+                      *)         tm_file="mips/elf.h mips/linux.h" ;;
+               esac
+               tmake_file=t-linux
                extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
                gnu_ld=yes
                gas=yes
-               if test x$enable_threads = xyes; then
-                       thread_file='posix'
-               fi
+               if test x$enable_threads = xyes; then
+                       thread_file='posix'
+               fi
                ;;
        mips*el-*-openbsd*)     # mips little endian
                target_cpu_default="MASK_GAS|MASK_ABICALLS"
@@ -3643,6 +3658,10 @@ changequote([,])dnl
                ;;
        vax-*-openbsd*)
                tmake_file="${tmake_file} vax/t-openbsd"
+               tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
+               xm_file="xm-openbsd.h vax/xm-vax.h"
+               float_format=vax
+               use_collect2=yes
                ;;
        vax-*-ultrix*)                  # vaxen running ultrix
                tm_file="${tm_file} vax/ultrix.h"
@@ -4056,7 +4075,7 @@ do
 
        for file in `eval echo '$'$var`; do
                case $file in
-               auto-host.h)
+               auto-host.h | auto-build.h )
                        ;;
                *)
                        echo '#ifdef IN_GCC' >>$link
@@ -4064,7 +4083,7 @@ do
                esac
                echo "#include \"$file\"" >>$link
                case $file in
-               auto-host.h)
+               auto-host.h | auto-build.h )
                        ;;
                *)
                        echo '#endif' >>$link
@@ -4104,7 +4123,7 @@ AC_DEFINE_UNQUOTED(VERSION, "$VERSION",
 AC_SUBST(PACKAGE)
 AC_SUBST(VERSION)
 
-ALL_LINGUAS="en_UK"
+ALL_LINGUAS="en_GB"
 
 # Enable NLS support by default
 AC_ARG_ENABLE(nls,
@@ -4114,7 +4133,7 @@ AC_ARG_ENABLE(nls,
 # if cross compiling, disable NLS support.
 # It's not worth the trouble, at least for now.
 
-if test "${build}" != "${host}" && test "x$enable_nls" == "xyes"; then
+if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
   AC_MSG_WARN(Disabling NLS support for canadian cross compiler.)
   enable_nls=no
 fi
@@ -4550,6 +4569,25 @@ case "$target" in
                [Define if your assembler supports .register.])
     fi
 
+    AC_CACHE_CHECK([assembler supports -relax],
+       gcc_cv_as_relax_opt, [
+       gcc_cv_as_relax_opt=unknown
+       if test x$gcc_cv_as != x; then
+           # Check if gas supports -relax
+           echo ".text" > conftest.s
+           if $gcc_cv_as -relax -o conftest.o conftest.s > /dev/null 2>&1; then
+               gcc_cv_as_relax_opt=yes
+           else
+               gcc_cv_as_relax_opt=no
+           fi
+           rm -f conftest.s conftest.o
+       fi
+    ])
+    if test "x$gcc_cv_as_relax_opt" = xyes; then
+       AC_DEFINE(HAVE_AS_RELAX_OPTION, 1,
+               [Define if your assembler supports -relax option.])
+    fi
+
     case "$tm_file" in
     *64*)
        AC_CACHE_CHECK([for 64 bit support in assembler ($gcc_cv_as)],