Thanks to Doug Gilmore for testing the patch and reporting a bug. Following is a revised patch... I am still looking for a gatekeeper to review.
Index: configure.ac =================================================================== --- configure.ac (revision 3859) +++ configure.ac (working copy) @@ -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 On Sat, Jan 14, 2012 at 3:18 PM, David Coakley <dcoak...@gmail.com> wrote: > Hi all, > > The following patch allows 'configure > --build=x86_64-unknown-linux-gnu' to be used to build compiler > executables that are 64-bit as documented in HOWTO-INSTALL-OPEN64. > Several people ran into this issue when building on Fedora 16 64-bit > where the system environment is set up to favor 64-bit development. > (The workaround required running configure with both the --target and > --host options; the --build option is supposed to set both of these.) > > Could a gatekeeper please review the change? I will also plan to > update the generated 'configure' script by running autoconf. > > -David Coakley / AMD Open Source Compiler Engineering > > > ------------------------------------------------------------------------------ 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