aboutsummaryrefslogtreecommitdiffstats
path: root/autoconf
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-08-31 01:34:10 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-08-31 01:34:10 +0000
commit886e951f3a1859be7303a785e366b49b6c43ce3a (patch)
tree5937be769c3d3c388a8eeb471eb27f906b5e128e /autoconf
parentf634f4635013235a89a39ac0f218ad2e7967bbc5 (diff)
downloadexternal_llvm-886e951f3a1859be7303a785e366b49b6c43ce3a.zip
external_llvm-886e951f3a1859be7303a785e366b49b6c43ce3a.tar.gz
external_llvm-886e951f3a1859be7303a785e366b49b6c43ce3a.tar.bz2
Recognize Interix systems as if they were SunOS and make sure we don't
attempt to configure for "Unknown" system types. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16120 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index 55c4d7e..94b306f 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -128,6 +128,10 @@ case $build in
AC_SUBST(OS,[AIX])
platform_type="AIX"
;;
+ *-*-interix*)
+ AC_SUBST(OS,[SunOS])
+ platform_type="SunOS"
+ ;;
*-*-win32*)
AC_SUBST(OS,[Win32])
platform_type="Win32"
@@ -138,6 +142,11 @@ case $build in
;;
esac
+dnl Make sure we aren't attempting to configure for an unknown system
+if test $platform_type -eq "Unknown" ; then
+ AC_MSG_ERROR([Platform is unknown, configure can't continue])
+fi
+
dnl Make a link from lib/System/platform to lib/System/$platform_type
dnl This helps the #inclusion of the system specific include files
dnl for the operating system abstraction library