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)
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
;;
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}.
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.
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)