On 27 September 2010 12:10,  <mt...@apache.org> wrote:
> Author: mturk
> Date: Mon Sep 27 11:10:57 2010
> New Revision: 1001670
>
> URL: http://svn.apache.org/viewvc?rev=1001670&view=rev
> Log:
> Handle some of the possible variants from the PROCESSOR_ARCHITECTURE 
> environment

Unfortunately the patch does not work, as the PROCESSOR_ARCHITECTURE
branch is never taken if BUILD_CPU is not defined.

Might be simpler to recheck if CPU is set after handling BUILD_CPU,
rather than nesting further.
i.e.

IF CPU not set
try to set from BUILD_CPU
ENDIF

IF CPU not set
try to set from PROCESSOR_ARCH*
ENDIF

>
> Modified:
>    commons/proper/daemon/trunk/src/native/windows/include/Makefile.inc
>
> Modified: commons/proper/daemon/trunk/src/native/windows/include/Makefile.inc
> URL: 
> http://svn.apache.org/viewvc/commons/proper/daemon/trunk/src/native/windows/include/Makefile.inc?rev=1001670&r1=1001669&r2=1001670&view=diff
> ==============================================================================
> --- commons/proper/daemon/trunk/src/native/windows/include/Makefile.inc 
> (original)
> +++ commons/proper/daemon/trunk/src/native/windows/include/Makefile.inc Mon 
> Sep 27 11:10:57 2010
> @@ -103,17 +103,24 @@ CPU=X64
>  !IF "$(BUILD_CPU)" == "ia64" || "$(BUILD_CPU)" == "i64"
>  CPU=I64
>  !ENDIF
> -!ENDIF
> -# Figure out CPU from the current host
> -!IF !DEFINED(CPU) || "$(CPU)" == ""
> +!ELSE
>  !IF "$(PROCESSOR_ARCHITECTURE)" == ""
>  !IF "$(PROCESSOR_ARCHITEW6432)" == ""
> -CPU=X86
> +BUILD_CPU=X86
>  !ELSE
> -CPU=$(PROCESSOR_ARCHITEW6432)
> +BUILD_CPU=$(PROCESSOR_ARCHITEW6432)
>  !ENDIF
>  !ELSE
> -CPU=$(PROCESSOR_ARCHITECTURE)
> +BUILD_CPU=$(PROCESSOR_ARCHITECTURE)
> +!ENDIF
> +!IF "$(BUILD_CPU)" == "i386" || "$(BUILD_CPU)" == "x86" || "$(BUILD_CPU)" == 
> "i686"
> +CPU=X86
> +!ENDIF
> +!IF "$(BUILD_CPU)" == "amd64" || "$(BUILD_CPU)" == "x86_64" || 
> "$(BUILD_CPU)" == "x64"
> +CPU=X64
> +!ENDIF
> +!IF "$(BUILD_CPU)" == "ia64" || "$(BUILD_CPU)" == "i64"
> +CPU=I64
>  !ENDIF
>  !ENDIF
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to