[gnio] Add OS detection
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnio] Add OS detection
- Date: Wed, 29 Apr 2009 07:46:58 -0400 (EDT)
commit b4f3e234c9948d8a341ca45ca836d3b78584a45a
Author: Alexander Larsson <alexl redhat com>
Date: Wed Apr 29 13:43:29 2009 +0200
Add OS detection
---
configure.ac | 31 +++++++++++++++++++++++++++++++
1 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
index 714de6d..9e084f6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -88,6 +88,37 @@ AC_ARG_ENABLE(gir-vapi,
])
AM_CONDITIONAL(ENABLE_GIR_VAPI, test "$enable_gir_vapi" = "yes")
+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
+ ;;
+esac
+AC_MSG_RESULT([$os_win32])
+
+AC_SUBST(LIB_EXE_MACHINE_FLAG)
+
+case $host in
+ *-*-linux*)
+ os_linux=yes
+ ;;
+esac
+
+AM_CONDITIONAL(OS_WIN32, test "$os_win32" = "yes")
+AM_CONDITIONAL(OS_UNIX, test "$os_win32" != "yes")
+AM_CONDITIONAL(OS_LINUX, test "$os_linux" = "yes")
+
AC_OUTPUT([
docs/reference/gio/Makefile
docs/reference/Makefile
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]