httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fua...@apache.org
Subject svn commit: r1328714 - /httpd/httpd/trunk/configure.in
Date Sat, 21 Apr 2012 17:31:31 GMT
Author: fuankg
Date: Sat Apr 21 17:31:30 2012
New Revision: 1328714

URL: http://svn.apache.org/viewvc?rev=1328714&view=rev
Log:
Final step to make cross compilation working.

In case of cross compilation set CC_FOR_BUILD to cc unless
we got already CC_FOR_BUILD from environment.

Modified:
    httpd/httpd/trunk/configure.in

Modified: httpd/httpd/trunk/configure.in
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/configure.in?rev=1328714&r1=1328713&r2=1328714&view=diff
==============================================================================
--- httpd/httpd/trunk/configure.in (original)
+++ httpd/httpd/trunk/configure.in Sat Apr 21 17:31:30 2012
@@ -193,6 +193,14 @@ AC_PROG_CPP
 dnl Try to get c99 support for variadic macros
 ifdef([AC_PROG_CC_C99], [AC_PROG_CC_C99])
 
+dnl In case of cross compilation we set CC_FOR_BUILD to cc unless
+dnl we got already CC_FOR_BUILD from environment.
+if test "x${build_alias}" != "x${host_alias}"; then
+  if test "x${CC_FOR_BUILD}" = "x"; then
+    CC_FOR_BUILD=cc
+  fi
+fi
+
 if test "x${cache_file}" = "x/dev/null"; then
   # Likewise, ensure that CC and CPP are passed through to the pcre
   # configure script iff caching is disabled (the autoconf 2.5x default).



Mime
View raw message