aboutsummaryrefslogtreecommitdiffstats
path: root/autoconf/configure.ac
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-08-31 14:20:36 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-08-31 14:20:36 +0000
commit73fb5489424a79dca9352ed8812c96d48804b681 (patch)
tree5ec39392c9edfe8b7216d40f07f8ae1053c2c41a /autoconf/configure.ac
parentcc8bd9ca7c4991774e40c9d8974ff48ad1a60d38 (diff)
downloadexternal_llvm-73fb5489424a79dca9352ed8812c96d48804b681.zip
external_llvm-73fb5489424a79dca9352ed8812c96d48804b681.tar.gz
external_llvm-73fb5489424a79dca9352ed8812c96d48804b681.tar.bz2
Fix a "test" botch.
Alphabetize the platform list Install some AC_MSG_CHECKING/AC_MSG_RESULT pairs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16122 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf/configure.ac')
-rw-r--r--autoconf/configure.ac69
1 files changed, 44 insertions, 25 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index 94b306f..771a8ee 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -99,7 +99,29 @@ AC_CANONICAL_TARGET
dnl Set the "OS" Makefile variable based on the system we are building on.
dnl We will use the build machine information to set some variables.
+
+AC_MSG_CHECKING([support for generic build operating system])
case $build in
+ *-*-aix*)
+ AC_SUBST(OS,[AIX])
+ platform_type="AIX"
+ ;;
+ *-*-cygwin*)
+ AC_SUBST(OS,[Cygwin])
+ platform_type="Cygwin"
+ ;;
+ *-*-darwin*)
+ AC_SUBST(OS,[Darwin])
+ platform_type="Darwin"
+ ;;
+ *-*-freebsd*)
+ AC_SUBST(OS,[Linux])
+ platform_type="Linux"
+ ;;
+ *-*-interix*)
+ AC_SUBST(OS,[SunOS])
+ platform_type="SunOS"
+ ;;
*-*-linux*)
AC_SUBST(OS,[Linux])
platform_type="Linux"
@@ -116,22 +138,6 @@ case $build in
AC_SUBST(LLVMGCCDIR,[/home/vadve/lattner/local/sparc/llvm-gcc/])
fi
;;
- *-*-cygwin*)
- AC_SUBST(OS,[Cygwin])
- platform_type="Cygwin"
- ;;
- *-*-darwin*)
- AC_SUBST(OS,[Darwin])
- platform_type="Darwin"
- ;;
- *-*-aix*)
- AC_SUBST(OS,[AIX])
- platform_type="AIX"
- ;;
- *-*-interix*)
- AC_SUBST(OS,[SunOS])
- platform_type="SunOS"
- ;;
*-*-win32*)
AC_SUBST(OS,[Win32])
platform_type="Win32"
@@ -143,7 +149,7 @@ case $build in
esac
dnl Make sure we aren't attempting to configure for an unknown system
-if test $platform_type -eq "Unknown" ; then
+if test "$platform_type" = "Unknown" ; then
AC_MSG_ERROR([Platform is unknown, configure can't continue])
fi
@@ -152,6 +158,9 @@ dnl This helps the #inclusion of the system specific include files
dnl for the operating system abstraction library
AC_CONFIG_LINKS(lib/System/platform:lib/System/$platform_type)
+AC_MSG_RESULT($platform_type)
+
+AC_MSG_CHECKING(target architecture)
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.
@@ -164,16 +173,26 @@ 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.
case $target in
- i*86-*) AC_SUBST(ARCH,[x86])
- ;;
- sparc*-*) AC_SUBST(ARCH,[Sparc])
- ;;
- powerpc*-*) AC_SUBST(ARCH,[PowerPC])
- ;;
- *) AC_SUBST(ARCH,[Unknown])
- ;;
+ i*86-*)
+ ARCH="x86"
+ AC_SUBST(ARCH,[x86])
+ ;;
+ sparc*-*)
+ ARCH="Sparc"
+ AC_SUBST(ARCH,[Sparc])
+ ;;
+ powerpc*-*)
+ ARCH="PowerPC"
+ AC_SUBST(ARCH,[PowerPC])
+ ;;
+ *)
+ ARCH="Unknown"
+ AC_SUBST(ARCH,[Unknown])
+ ;;
esac
+AC_MSG_RESULT($ARCH)
+
dnl Check for compilation tools
AC_PROG_CXX
AC_PROG_CC(gcc)