[gitg] configure: avoid duplicated check
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] configure: avoid duplicated check
- Date: Mon, 21 Dec 2015 13:34:51 +0000 (UTC)
commit db3b9cb7c58998e6052580a3657bb0f5f7e333ad
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Mon Dec 21 14:34:32 2015 +0100
configure: avoid duplicated check
configure.ac | 25 ++++++-------------------
1 files changed, 6 insertions(+), 19 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index e25b902..a95ef0d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -101,17 +101,23 @@ do
quartz)
gdk_windowing_quartz=yes
GIO_SYSTEM_PKG=gio-unix-2.0
+ PLATFORM_NAME=osx
;;
win32)
gdk_windowing_win32=yes
GIO_SYSTEM_PKG=gio-windows-2.0
+ PLATFORM_NAME=win32
;;
x11)
gdk_windowing_x11=yes
GIO_SYSTEM_PKG=gio-unix-2.0
+ PLATFORM_NAME=unix
esac
done
+AC_SUBST(PLATFORM_NAME)
+AM_CONDITIONAL(PLATFORM_OSX, test x"$PLATFORM_NAME" = "xosx")
+
PKG_CHECK_MODULES(LIBGITG, [
gthread-2.0 >= $GLIB_REQUIRED_VERSION
glib-2.0 >= $GLIB_REQUIRED_VERSION
@@ -328,25 +334,6 @@ fi
AM_CONDITIONAL(ENABLE_PYTHON, test x"$enable_python" = "xyes")
-dnl check for native osx
-gdk_targets=`$PKG_CONFIG --variable=targets gdk-3.0`
-PLATFORM_NAME="other"
-
-for target in $gdk_targets;
-do
- case "$target" in
- quartz)
- PLATFORM_NAME=osx
- ;;
- win32)
- PLATFORM_NAME=win32
- ;;
- esac
-done
-
-AC_SUBST(PLATFORM_NAME)
-AM_CONDITIONAL(PLATFORM_OSX, test x"$PLATFORM_NAME" = "xosx")
-
dnl libgd
LIBGD_INIT([
tagged-entry
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]