summaryrefslogtreecommitdiffstats
path: root/gtk/configure.ac
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2010-05-24 18:15:40 +0000
committerjstebbins <[email protected]>2010-05-24 18:15:40 +0000
commitb1d5e7b5af2cbc601253d254389a4ef8df709639 (patch)
tree0baeb0af4fd534eabfa7f25d3456f2aa452e52a6 /gtk/configure.ac
parenteef8301f8f1c858961395ea8f1a9e6a58400e36d (diff)
LinGui: add option to completely disable update checking
configure --disable-gtk-update-checks removes the code that does update checks including the webkit library used for displaying the appcast. this is useful when packaging for a repository that has it's own update mechanism. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3323 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/configure.ac')
-rw-r--r--gtk/configure.ac27
1 files changed, 18 insertions, 9 deletions
diff --git a/gtk/configure.ac b/gtk/configure.ac
index 423923bf4..63a8a75ba 100644
--- a/gtk/configure.ac
+++ b/gtk/configure.ac
@@ -53,6 +53,10 @@ AC_ARG_ENABLE(gst,
AS_HELP_STRING([--enable-gst], [enable gstreamer on Win32]),
w32_gst=yes, w32_gst=no)
+AC_ARG_ENABLE(update-checks,
+ AS_HELP_STRING([--disable-update-checks], [disable update checks]),
+ update_checks=no, update_checks=yes)
+
# overwrite global variable (used for Makefile generation)
AC_SUBST(GLOBALCXXFLAGS, $CXXFLAGS )
AC_SUBST(GLOBALLDFLAGS, $LDFLAGS )
@@ -90,17 +94,22 @@ if test "x$w32_gst" = "xyes" -o "x$mingw_flag" != "xyes" ; then
CFLAGS="$CFLAGS -D_ENABLE_GST"
fi
-PKG_CHECK_MODULES(OldWebKitGtk, WebKitGtk, old_webkit=yes, old_webkit=no)
-if test "x$old_webkit" = "xyes" ; then
- if test "x$mingw_flag" = "xno" ; then
- GHB_PACKAGES="$GHB_PACKAGES WebKitGtk"
- CXXFLAGS="$CXXFLAGS -D_OLD_WEBKIT"
- CFLAGS="$CFLAGS -D_OLD_WEBKIT"
+PKG_PROG_PKG_CONFIG
+if test "x$update_checks" = "xyes" ; then
+ PKG_CHECK_MODULES(OldWebKitGtk, WebKitGtk, old_webkit=yes, old_webkit=no)
+ if test "x$old_webkit" = "xyes" ; then
+ if test "x$mingw_flag" = "xno" ; then
+ GHB_PACKAGES="$GHB_PACKAGES WebKitGtk"
+ CXXFLAGS="$CXXFLAGS -D_OLD_WEBKIT"
+ CFLAGS="$CFLAGS -D_OLD_WEBKIT"
+ fi
+ else
+ if test "x$mingw_flag" = "xno" ; then
+ GHB_PACKAGES="$GHB_PACKAGES webkit-1.0"
+ fi
fi
else
- if test "x$mingw_flag" = "xno" ; then
- GHB_PACKAGES="$GHB_PACKAGES webkit-1.0"
- fi
+ CFLAGS="$CFLAGS -D_NO_UPDATE_CHECK"
fi
AM_CONDITIONAL([MINGW], [test "x$mingw_flag" = "xyes"])