summaryrefslogtreecommitdiffstats
path: root/llvm/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/configure.ac')
-rw-r--r--llvm/configure.ac18
1 files changed, 15 insertions, 3 deletions
diff --git a/llvm/configure.ac b/llvm/configure.ac
index 609b66fa3fd..e82780ccf30 100644
--- a/llvm/configure.ac
+++ b/llvm/configure.ac
@@ -50,15 +50,27 @@ case $build in
esac
dnl
-dnl If we are on a Solaris machine, pretend that it is V9, since that is all
-dnl that we support at the moment, and autoconf will only tell us we're a
-dnl sparc.
+dnl If we are targetting a Sparc machine running Solaris, pretend that it is
+dnl V9, since that is all that we support at the moment, and autoconf will only
+dnl tell us we're a sparc.
dnl
case $target in
*sparc*solaris*) AC_SUBST(target,[[sparcv9-sun-solaris2.8]])
;;
esac
+dnl
+dnl Determine what our target architecture is and configure accordingly.
+dnl This will allow Makefiles to make a distinction between the hardware and
+dnl the OS.
+dnl
+case $target in
+ *i*86*) AC_SUBST(ARCH,[x86])
+ ;;
+ *sparc*solaris*) AC_SUBST(ARCH,[Sparc])
+ ;;
+esac
+
dnl **************************************************************************
dnl * Check for programs.
dnl **************************************************************************
OpenPOWER on IntegriCloud