OSDN Git Service

* init.c (build_new): Allow enumeration types for the array-bounds
[pf3gnuchains/gcc-fork.git] / gcc / configure.in
index 014276d..26d9e1e 100644 (file)
@@ -433,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)
@@ -1520,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
                        ;;
@@ -1570,24 +1570,6 @@ 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, 1,
   [Define to 1 if you want to enable namespaces (-fhonor-std) by default.])
 
@@ -1693,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}.
 
@@ -1716,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.
@@ -1823,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)