This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
newlib/configure patch
- From: Joe Buehler <jbuehler at hekimian dot com>
- To: newlib at sources dot redhat dot com
- Date: Fri, 22 Nov 2002 09:58:13 -0500
- Subject: newlib/configure patch
- Organization: Spirent Communications
- Reply-to: joseph dot buehler at spirentcom dot com
A test in newlib/configure will malfunction under at least some
shells (e.g. ksh) if ${CC} does not contain the string /libc/include.
The "test -z" ends up with no argument after the -z, which is a syntax
error.
Index: src/newlib/configure
===================================================================
RCS file: /cvs/src/src/newlib/configure,v
retrieving revision 1.16
diff -u -r1.16 configure
--- src/newlib/configure 7 Jun 2002 21:59:35 -0000 1.16
+++ src/newlib/configure 8 Aug 2002 16:38:25 -0000
@@ -2987,7 +2987,8 @@
# These get added in the top-level configure.in, except in the case where
# newlib is being built natively.
-if test -z `echo ${CC} | grep \/libc\/include`; then
+X=`echo ${CC} | grep \/libc\/include`
+if test -z "$X"; then
CC_FOR_NEWLIB="${CC} -I$PWD/targ-include -I${newlib_basedir}/libc/include"
else
CC_FOR_NEWLIB="${CC}"
--
Joe Buehler