[llvm-commits] CVS: llvm/autoconf/configure.ac

Reid Spencer reid at x10sys.com
Wed Jul 26 14:15:12 PDT 2006



Changes in directory llvm/autoconf:

configure.ac updated: 1.237 -> 1.238
---
Log message:

For PR814: http://llvm.org/PR814 :
Provide support for making cross-compiling builds. See the PR for details.
Patch provided by Anton Korobeynikov. Thanks, Anton!


---
Diffs of the changes:  (+10 -2)

 configure.ac |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)


Index: llvm/autoconf/configure.ac
diff -u llvm/autoconf/configure.ac:1.237 llvm/autoconf/configure.ac:1.238
--- llvm/autoconf/configure.ac:1.237	Thu Jul  6 02:45:49 2006
+++ llvm/autoconf/configure.ac	Wed Jul 26 16:14:56 2006
@@ -98,9 +98,9 @@
 
 dnl Determine the platform type and cache its value. This helps us configure
 dnl the System library to the correct build platform.
-AC_CACHE_CHECK([type of operating system we're on],
+AC_CACHE_CHECK([type of operating system we're going to host on],
                [llvm_cv_os_type],
-[case $build in
+[case $host in
   *-*-aix*) 
     llvm_cv_os_type="AIX" 
     llvm_cv_platform_type="Unix" ;;
@@ -188,6 +188,14 @@
 dnl Check for the endianness of the target
 AC_C_BIGENDIAN(AC_SUBST([ENDIAN],[big]),AC_SUBST([ENDIAN],[little]))
 
+dnl Check for build platform executable suffix if we're crosscompiling
+if test "$cross_compiling" = yes; then
+  AC_SUBST(LLVM_CROSS_COMPILING, [1])  
+  AC_BUILD_EXEEXT
+else
+  AC_SUBST(LLVM_CROSS_COMPILING, [0])
+fi
+
 dnl Check to see if there's a "CVS" directory indicating that this build is
 dnl being done from a CVS checkout. This sets up several defaults for the
 dnl command line switches. When we build with a CVS directory, we get a 






More information about the llvm-commits mailing list