This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch to clean messy configure output for ada driver and perl Pod::Man


When running configure in a clean environment on solaris2.7 I get:

 > checking for compiler driver that understands Ada... configure: gcc: not found
 > configure: gcc: not found
 > configure: gnatgcc: not found
 > configure: gnatgcc: not found
 > configure: gnatcc: not found
 > configure: gnatcc: not found
 > configure: adagcc: not found
 > configure: adagcc: not found
 > configure: adacc: not found
 > configure: adacc: not found
 > no
 > [...]
 > checking for recent Pod::Man... configure: perl: not found
 > no

IIRC, in order to get stderr redirected properly for tests like this
one needs to use a subshell.  (Though bash handles it fine.)

Tested by rerunning configure, the output was:

 > checking for compiler driver that understands Ada... no
 > [...]
 > checking for recent Pod::Man... no

Okay to install?

		Thanks,
		--Kaveh


2001-12-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* aclocal.m4 (gcc_AC_PROG_GNAT): Run prospective ada drivers in
	subshells.
	* configure.in: Likewise for perl Pod::Man.

	* configure: Regenerated.

diff -rup orig/egcc-CVS20011214/gcc/aclocal.m4 egcc-CVS20011214/gcc/aclocal.m4
--- orig/egcc-CVS20011214/gcc/aclocal.m4	Fri Nov 30 07:30:41 2001
+++ egcc-CVS20011214/gcc/aclocal.m4	Sat Dec 15 09:20:33 2001
@@ -321,7 +321,7 @@ for cand in ${ac_tool_prefix}$user_adac	
   # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
   # Therefore we must check for the error message as well as an
   # unsuccessful exit.
-  errors=`$cand -c conftest.adb 2>&1 || echo failure`
+  errors=`($cand -c conftest.adb) 2>&1 || echo failure`
   if test x"$errors" = x; then
     gcc_cv_prog_adac=$cand
     break
diff -rup orig/egcc-CVS20011214/gcc/configure.in egcc-CVS20011214/gcc/configure.in
--- orig/egcc-CVS20011214/gcc/configure.in	Tue Dec 11 07:28:19 2001
+++ egcc-CVS20011214/gcc/configure.in	Sat Dec 15 09:27:58 2001
@@ -501,7 +501,7 @@ fi
 
 # Is pod2man recent enough to regenerate manpages?
 AC_MSG_CHECKING([for recent Pod::Man])
-if perl -e 'use 1.10 Pod::Man' >/dev/null 2>&1; then
+if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
   AC_MSG_RESULT(yes)
   GENERATED_MANPAGES=generated-manpages		AC_SUBST(GENERATED_MANPAGES)
 else
diff -rup orig/egcc-CVS20011214/gcc/configure egcc-CVS20011214/gcc/configure
--- orig/egcc-CVS20011214/gcc/configure	Tue Dec 11 07:28:19 2001
+++ egcc-CVS20011214/gcc/configure	Sat Dec 15 09:30:13 2001
@@ -2997,7 +2997,7 @@ for cand in ${ac_tool_prefix}$user_adac	
   # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
   # Therefore we must check for the error message as well as an
   # unsuccessful exit.
-  errors=`$cand -c conftest.adb 2>&1 || echo failure`
+  errors=`($cand -c conftest.adb) 2>&1 || echo failure`
   if test x"$errors" = x; then
     gcc_cv_prog_adac=$cand
     break
@@ -3124,7 +3124,7 @@ fi
 # Is pod2man recent enough to regenerate manpages?
 echo $ac_n "checking for recent Pod::Man""... $ac_c" 1>&6
 echo "configure:3127: checking for recent Pod::Man" >&5
-if perl -e 'use 1.10 Pod::Man' >/dev/null 2>&1; then
+if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
   echo "$ac_t""yes" 1>&6
   GENERATED_MANPAGES=generated-manpages		
 else


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]