Author: dcoakley Date: 2012-01-20 02:19:49 -0500 (Fri, 20 Jan 2012) New Revision: 3861
Modified: trunk/configure trunk/configure.ac Log: Correct the handling of 'configure --build=x86_64-unknown-linux-gnu'. When the --build option is given, configure should behave as if the --host and --target options were given with the same value. Approved by: Mike Murphy Modified: trunk/configure =================================================================== --- trunk/configure 2012-01-19 08:38:15 UTC (rev 3860) +++ trunk/configure 2012-01-20 07:19:49 UTC (rev 3861) @@ -1364,12 +1364,12 @@ # unless the user specifies otherwise, we default to 32 bit mode as the # default on x86 64 bit platforms. -if test "$host_alias" = "" && test "$host_cpu" = "x86_64"; then +if test "$build_alias" = "" && test "$host_alias" = "" && test "$host_cpu" = "x86_64"; then host_cpu=i686 host=$host_cpu-$host_vendor-$host_os fi -if test "$target_alias" = "" && test "$target_cpu" = "x86_64"; then +if test "$build_alias" = "" && test "$target_alias" = "" && test "$target_cpu" = "x86_64"; then target_cpu=i686 target=$target_cpu-$target_vendor-$target_os fi Modified: trunk/configure.ac =================================================================== --- trunk/configure.ac 2012-01-19 08:38:15 UTC (rev 3860) +++ trunk/configure.ac 2012-01-20 07:19:49 UTC (rev 3861) @@ -34,6 +34,7 @@ AC_PREREQ([2.59]) AC_INIT([opencc],[4.2]) +AC_CANONICAL_BUILD AC_CANONICAL_HOST AC_CANONICAL_TARGET #AC_PROG_CC @@ -44,12 +45,12 @@ # unless the user specifies otherwise, we default to 32 bit mode as the # default on x86 64 bit platforms. -if test "$host_alias" = "" && test "$host_cpu" = "x86_64"; then +if test "$build_alias" = "" && test "$host_alias" = "" && test "$host_cpu" = "x86_64"; then host_cpu=i686 host=$host_cpu-$host_vendor-$host_os fi -if test "$target_alias" = "" && test "$target_cpu" = "x86_64"; then +if test "$build_alias" = "" && test "$target_alias" = "" && test "$target_cpu" = "x86_64"; then target_cpu=i686 target=$target_cpu-$target_vendor-$target_os fi ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Open64-devel mailing list Open64-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/open64-devel