[Pvfs2-cvs] commit by pcarns in pvfs2-1: configure

CVS commit program cvs at parl.clemson.edu
Wed Apr 1 16:39:56 EST 2009


Update of /projects/cvsroot/pvfs2-1
In directory parlweb1:/tmp/cvs-serv688

Modified Files:
	configure 
Log Message:
Experimental fix to recent compile problems; copy the kernel makefile's
logic for detecting host arch and use it to add extra include paths for
configure tests.  Skip if user manually specifies ARCH for cross compile.

This needs testing.


Index: configure
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/configure,v
diff -p -u -r1.412 -r1.413
--- configure	1 Apr 2009 21:27:35 -0000	1.412
+++ configure	1 Apr 2009 21:39:54 -0000	1.413
@@ -8047,6 +8047,23 @@ if test -n "$lk_src" ; then
 
                 	if test -n "${ARCH}" ; then
 		CFLAGS="$CFLAGS -I$lk_src/arch/${ARCH}/include -I$lk_src/arch/${ARCH}/include/asm/mach-default"
+        else
+            SUBARCH=`uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
+            -e s/arm.*/arm/ -e s/sa110/arm/ \
+            -e s/s390x/s390/ -e s/parisc64/parisc/ \
+            -e s/ppc.*/powerpc/ -e s/mips.*/mips/ \
+            -e s/sh.*/sh/`
+            if test "x$SUBARCH" = "xi386"; then
+                ARCH=x86
+            elif test "x$SUBARCH" = xx86_64"; then
+                ARCH=x86
+            elif test "x$SUBARCH" = xsparc64"; then
+                ARCH=sparc
+            else
+                ARCH=$SUBARCH
+            fi
+
+            CFLAGS="$CFLAGS -I$lk_src/arch/${ARCH}/include -I$lk_src/arch/${ARCH}/include/asm/mach-default"
 	fi
 
 	{ echo "$as_me:$LINENO: checking for i_size_write in kernel" >&5



More information about the Pvfs2-cvs mailing list