OSDN Git Service

* init.c (build_new): Allow enumeration types for the array-bounds
[pf3gnuchains/gcc-fork.git] / gcc / configure.in
index b3355e1..26d9e1e 100644 (file)
@@ -151,23 +151,6 @@ if test x$local_prefix = x; then
        local_prefix=/usr/local
 fi
 
-# Build a new-libstdc++ system (ie libstdc++-v3)
-AC_MSG_CHECKING([for libstdc++ to install])
-AC_ARG_ENABLE(libstdcxx-v3,
-[  --enable-libstdcxx-v3 
-                         enable libstdc++-v3 for building and installation],
-  [enable_libstdcxx_v3="$enableval"], [enable_libstdcxx_v3=yes])
-
-if test x$enable_libstdcxx_v3 = xyes; then
-  AC_MSG_RESULT(v3)
-  HAVE_LIBSTDCXX_V3=1
-  ac_esn=1
-else
-  AC_MSG_RESULT(v2)
-  HAVE_LIBSTDCXX_V3=0
-  ac_esn=0
-fi
-
 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
 # passed in by the toplevel make and thus we'd get different behavior
 # depending on where we built the sources.
@@ -193,6 +176,12 @@ changequote([, ])dnl
   fi
 fi
 
+# Determine whether or not multilibs are enabled.
+AC_ARG_ENABLE(multilib,
+[  --enable-multilib      enable library support for multiple ABIs],
+[], [enable_multilib=yes])
+AC_SUBST(enable_multilib)
+
 # Enable expensive internal checks
 AC_ARG_ENABLE(checking,
 [  --enable-checking[=LIST]
@@ -444,7 +433,7 @@ AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
 
 # See if GNAT has been installed
-AC_CHECK_PROG(gnat, gnatbind, yes, no)
+AC_CHECK_PROG(have_gnat, gnatbind, yes, no)
 
 # See if we have the mktemp command.
 AC_CHECK_PROG(have_mktemp_command, mktemp, yes, no)
@@ -566,6 +555,7 @@ fi
 AC_SUBST(TARGET_GETGROUPS_T)
 
 gcc_AC_FUNC_VFPRINTF_DOPRNT
+gcc_AC_FUNC_STRSTR
 gcc_AC_FUNC_PRINTF_PTR
 
 case "${host}" in
@@ -727,14 +717,14 @@ fi
 # auto-host.h is the file containing items generated by autoconf and is
 # the first file included by config.h.
 null_defines=
-host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
+host_xm_file="auto-host.h gansidecl.h ${host_xm_file} defaults.h hwint.h"
 
 # If host=build, it is correct to have hconfig 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
 then
-       build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
+       build_xm_file="auto-host.h gansidecl.h ${build_xm_file} defaults.h hwint.h"
 else
        # We create a subdir, then run autoconf in the subdir.
        # To prevent recursion we set host and build for the new
@@ -756,11 +746,11 @@ else
        mv auto-host.h ../auto-build.h
        cd ..
        rm -rf $tempdir
-       build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
+       build_xm_file="auto-build.h gansidecl.h ${build_xm_file} defaults.h hwint.h"
 fi
 
-xm_file="gansidecl.h ${xm_file}"
-tm_file="gansidecl.h ${tm_file}"
+xm_file="gansidecl.h ${xm_file} defaults.h"
+tm_file="gansidecl.h ${tm_file} defaults.h"
 
 vars="host_xm_file tm_file tm_p_file xm_file build_xm_file"
 links="config.h tm.h tm_p.h tconfig.h hconfig.h"
@@ -990,7 +980,7 @@ out_object_file=`basename $out_file .c`.o
 tm_file_list=
 for f in $tm_file; do
   case $f in
-    gansidecl.h )
+    gansidecl.h | defaults.h )
        tm_file_list="${tm_file_list} $f" ;;
     *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
   esac
@@ -999,7 +989,7 @@ done
 host_xm_file_list=
 for f in $host_xm_file; do
   case $f in
-    auto-host.h | gansidecl.h | hwint.h )
+    auto-host.h | gansidecl.h | defaults.h | hwint.h )
        host_xm_file_list="${host_xm_file_list} $f" ;;
     *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
   esac
@@ -1008,7 +998,7 @@ done
 build_xm_file_list=
 for f in $build_xm_file; do
   case $f in
-    auto-build.h | auto-host.h | gansidecl.h | hwint.h )
+    auto-build.h | auto-host.h | gansidecl.h | defaults.h | hwint.h )
        build_xm_file_list="${build_xm_file_list} $f" ;;
     *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
   esac
@@ -1530,7 +1520,7 @@ changequote(,)dnl
          if test x"${add_this_lang}" = xyes; then
                case $lang in
                    ${srcdir}/ada/config-lang.in)
-                       if test x$gnat = xyes ; then
+                       if test x$have_gnat = xyes ; then
                                subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
                        fi
                        ;;
@@ -1580,27 +1570,8 @@ zlibinc=
 AC_SUBST(zlibdir)
 AC_SUBST(zlibinc)
 
-# Build a new-abi (c++) system
-AC_ARG_ENABLE(new-gxx-abi,
-[  --enable-new-gxx-abi
-                         select the new abi for g++. You must select an ABI
-                         at configuration time, so that the correct runtime
-                         support is built. You cannot mix ABIs.],
-   ,
-  enable_new_gxx_abi=yes)
-
-if test x$enable_new_gxx_abi = xyes; then
-  AC_DEFINE(ENABLE_NEW_GXX_ABI, 1,
-           [Define if you want to always select the new-abi for g++.])
-  GXX_ABI_FLAG='-fnew-abi'
-else
-  GXX_ABI_FLAG=
-fi
-AC_SUBST(GXX_ABI_FLAG)
-
-AC_DEFINE_UNQUOTED(ENABLE_STD_NAMESPACE, $ac_esn,
+AC_DEFINE_UNQUOTED(ENABLE_STD_NAMESPACE, 1,
   [Define to 1 if you want to enable namespaces (-fhonor-std) by default.])
-AC_SUBST(HAVE_LIBSTDCXX_V3)
 
 dnl Very limited version of automake's enable-maintainer-mode
 
@@ -1704,6 +1675,15 @@ do
        fi
 done
 
+check_languages=
+for language in .. $all_languages
+do
+       if test $language != ".."
+       then
+               check_languages="$check_languages check-$language"
+       fi
+done
+
 # Since we can't use `::' targets, we link each language in
 # with a set of hooks, reached indirectly via lang.${target}.
 
@@ -1727,23 +1707,21 @@ do
        echo "lang.$t: $x" >> Make-hooks
 done
 
-# If we're not building in srcdir, create .gdbinit.
+# Create .gdbinit.
 
-if test ! -f Makefile.in; then
-       echo "dir ." > .gdbinit
-       echo "dir ${srcdir}" >> .gdbinit
-       if test x$gdb_needs_out_file_path = xyes
-       then
-               echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
-       fi
-       if test "x$subdirs" != x; then
-               for s in $subdirs
-               do
-                       echo "dir ${srcdir}/$s" >> .gdbinit
-               done
-       fi
-       echo "source ${srcdir}/.gdbinit" >> .gdbinit
+echo "dir ." > .gdbinit
+echo "dir ${srcdir}" >> .gdbinit
+if test x$gdb_needs_out_file_path = xyes
+then
+       echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
+fi
+if test "x$subdirs" != x; then
+       for s in $subdirs
+       do
+               echo "dir ${srcdir}/$s" >> .gdbinit
+       done
 fi
+echo "source ${srcdir}/gdbinit.in" >> .gdbinit
 
 # Define variables host_canonical and build_canonical
 # because some Cygnus local changes in the Makefile depend on them.
@@ -1834,6 +1812,7 @@ AC_SUBST(all_stagestuff)
 AC_SUBST(build_exeext)
 AC_SUBST(build_install_headers_dir)
 AC_SUBST(build_xm_file_list)
+AC_SUBST(check_languages)
 AC_SUBST(cc_set_by_configure)
 AC_SUBST(quoted_cc_set_by_configure)
 AC_SUBST(cpp_install_dir)