Set LIB_EXE_MACHINE_FLAG to either X86 or X64 on Windows. AC_SUBST it.

2008-08-04  Tor Lillqvist  <tml@novell.com>

	* configure.in: Set LIB_EXE_MACHINE_FLAG to either X86 or X64 on
	Windows. AC_SUBST it.

	* gdk/Makefile.am
	* gtk/Makefile.am: Pass appropriate -machine flag to lib.exe.


svn path=/trunk/; revision=20957
This commit is contained in:
Tor Lillqvist
2008-08-03 23:47:10 +00:00
committed by Tor Lillqvist
parent 963ee0de5e
commit 71d9f3d45b
4 changed files with 20 additions and 3 deletions

View File

@ -123,11 +123,17 @@ AC_CANONICAL_HOST
MATH_LIB=-lm
AC_MSG_CHECKING([for native Win32])
LIB_EXE_MACHINE_FLAG=X86
case "$host" in
*-*-mingw*)
os_win32=yes
gio_can_sniff=no
MATH_LIB=
case "$host" in
x86_64-*-*)
LIB_EXE_MACHINE_FLAG=X64
;;
esac
;;
*)
os_win32=no
@ -135,11 +141,14 @@ case "$host" in
esac
AC_MSG_RESULT([$os_win32])
AC_SUBST(LIB_EXE_MACHINE_FLAG)
case $host in
*-*-linux*)
os_linux=yes
;;
esac
dnl Initialize libtool
AC_PROG_CC
AM_DISABLE_STATIC