mirror of
https://github.com/transmission/transmission
synced 2025-02-10 16:34:58 +00:00
more autoconf hacking
This commit is contained in:
parent
5fc5e06422
commit
fd55e5e503
2 changed files with 7 additions and 5 deletions
10
configure.ac
10
configure.ac
|
@ -56,21 +56,25 @@ dnl ----------------------------------------------------------------------------
|
|||
dnl
|
||||
dnl detection for the GTK+ client
|
||||
|
||||
AM_PATH_GTK_2_0($GTK_MINIMUM,[have_gtk=yes],[have_gtk=no][gthread])
|
||||
have_gtk=yes
|
||||
PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= $GTK_MINIMUM
|
||||
glib-2.0 >= $GLIB_MINIMUM
|
||||
gmodule-2.0 >= $GLIB_MINIMUM
|
||||
gthread-2.0 >= $GLIB_MINIMUM],, [have_gtk=no])
|
||||
AC_ARG_WITH(gtk, AC_HELP_STRING([--with-gtk], [Build gtk client]),
|
||||
[want_gtk=$withval],
|
||||
[want_gtk=$have_gtk])
|
||||
use_gtk=no
|
||||
if test "x$want_gtk" = "xyes" ; then
|
||||
if test "x$have_gtk" = "xyes"; then
|
||||
AM_PATH_GLIB_2_0($GLIB_MINIMUM,,exit 1,gobject gmodule gthread)
|
||||
AM_PATH_GTK_2_0($GTK_MINIMUM,,exit 1,gthread)
|
||||
use_gtk=yes
|
||||
else
|
||||
AC_MSG_ERROR("GTK+ not found!")
|
||||
fi
|
||||
fi
|
||||
AM_CONDITIONAL([WITH_GTK],[test "x$use_gtk" = "xyes"])
|
||||
AC_SUBST(GTK_LIBS)
|
||||
AC_SUBST(GTK_CFLAGS)
|
||||
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
|
|
@ -2,7 +2,6 @@ AM_CPPFLAGS = \
|
|||
-I$(top_srcdir) \
|
||||
$(LIBEVENT_CPPFLAGS) \
|
||||
$(GTK_CFLAGS) \
|
||||
$(GLIB_CFLAGS) \
|
||||
-DLOCALEDIR=\""$(transmissionlocaledir)"\"
|
||||
|
||||
AM_CFLAGS = $(PTHREAD_CFLAGS)
|
||||
|
@ -53,5 +52,4 @@ transmission_gtk_LDADD = \
|
|||
$(top_builddir)/libtransmission/libtransmission.a \
|
||||
$(top_builddir)/third-party/libevent/libevent.la \
|
||||
$(GTK_LIBS) \
|
||||
$(GLIB_LIBS) \
|
||||
$(PTHREAD_LIBS) -lm
|
||||
|
|
Loading…
Reference in a new issue