PATCH: Don't use test with == in toplevel configure

Rainer Orth ro@CeBiTec.Uni-Bielefeld.DE
Thu Oct 22 19:30:00 GMT 2009


When I tried to bootstrap current mainline on i386-pc-solaris2.10, the
shell choked on the toplevel configure despite CONFIG_SHELL being set to
/bin/ksh:

checking for version 0.10 of PPL... no
/vol/gcc/src/gcc-dist/configure: test: unknown operator ==

The culprit is a use of test with ==.  Although /bin/ksh understands it,
it seems that the toplevel configure is executed with /bin/sh, which
does not.  The following patch fixes this and lets the configure finish
and the bootstrap start; it probably counts as obvious.

I've found another instance of such a construct in the same file:

if test `cat cygwin-cat-check` == a ; then

This is from config/acx.m4 (ACX_CHECK_CYGWIN_CAT_WORKS) and should
probably be fixed as well, although it doesn't trigger on non-Cygwin
hosts.

Ok for mainline?

	Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University


2009-10-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	* configure.ac (CLooG test): Use = with test.
	* configure: Regenerate.

Index: configure.ac
===================================================================
--- configure.ac	(revision 153469)
+++ configure.ac	(working copy)
@@ -1572,7 +1572,7 @@
 AC_ARG_WITH(cloog_include, [  --with-cloog-include=PATH Specify directory for installed CLooG include files])
 AC_ARG_WITH(cloog_lib, [  --with-cloog-lib=PATH   Specify the directory for the installed CLooG library])
 
-if test "x$with_ppl" == "xno"; then
+if test "x$with_ppl" = "xno"; then
   with_cloog=no
 fi
 



More information about the Gcc-patches mailing list