master chld/ports-heresy / devel / binutils / ada-test.patch
 1--- configure
 2+++ configure
 3@@ -5341,9 +5341,8 @@
 4 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
 5 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
 6 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
 7-  $as_echo_n "(cached) " >&6
 8-else
 9-  cat >conftest.adb <<EOF
10+							$as_echo_n "(cached) " >&6
11+							fi
12 procedure conftest is begin null; end conftest;
13 EOF
14 acx_cv_cc_gcc_supports_ada=no
15@@ -5355,14 +5354,6 @@
16 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
17 # given a .adb file, but produce no object file.  So we must check
18 # if an object file was really produced to guard against this.
19-errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
20-if test x"$errors" = x && test -f conftest.$ac_objext; then
21-  acx_cv_cc_gcc_supports_ada=yes
22-fi
23-rm -f conftest.*
24-fi
25-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
26-$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
27 
28 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
29   have_gnat=yes