From 7659545ceef542dc9951673e1f9085ef2d045699 Mon Sep 17 00:00:00 2001 From: John Criswell Date: Tue, 1 Jul 2003 22:07:39 +0000 Subject: [PATCH] Added the ARCH variable so that some of the Makefiles can perform actions based upon the target hardware architecture (as opposed to always checking the OS). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7050 91177308-0d34-0410-b5e6-96231b3b80d8 --- Makefile.config.in | 5 +++++ configure | 18 ++++++++++++++---- configure.ac | 18 +++++++++++++++--- 3 files changed, 34 insertions(+), 7 deletions(-) diff --git a/Makefile.config.in b/Makefile.config.in index 9480219db8e..e3fe5218b48 100644 --- a/Makefile.config.in +++ b/Makefile.config.in @@ -9,6 +9,11 @@ # OS=@OS@ +# +# Target hardware architecture +# +ARCH=@ARCH@ + # Path to the C++ compiler to use. This is an optional setting, which defaults # to whatever your gmake defaults to. # diff --git a/configure b/configure index 335912483f4..3fdc25ea81f 100755 --- a/configure +++ b/configure @@ -1610,6 +1610,15 @@ case $target in ;; esac +case $target in + *i*86*) ARCH=x86 + + ;; + *sparc*solaris*) ARCH=Sparc + + ;; +esac + ac_ext=cc ac_cpp='$CXXCPP $CPPFLAGS' @@ -4296,7 +4305,7 @@ test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes case $host in *-*-irix6*) # Find out which ABI we are using. - echo '#line 4299 "configure"' > conftest.$ac_ext + echo '#line 4308 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? @@ -4846,7 +4855,7 @@ chmod -w . save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" compiler_c_o=no -if { (eval echo configure:4849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then +if { (eval echo configure:4858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings if test -s out/conftest.err; then @@ -6677,7 +6686,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < conftest.$ac_ext <