2014-09-22 17:36:48 +00:00
|
|
|
AC_INIT([Zenity],[3.14.0],[http://bugzilla.gnome.org/enter_bug.cgi?product=zenity],[zenity])
|
2003-01-03 13:26:04 +00:00
|
|
|
|
2011-02-15 21:19:07 +00:00
|
|
|
AC_PREREQ([2.63])
|
2006-05-10 03:37:14 +00:00
|
|
|
|
|
|
|
AC_CONFIG_HEADERS([config.h])
|
|
|
|
AC_CONFIG_SRCDIR([src])
|
2011-02-15 21:19:07 +00:00
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
2006-05-10 03:37:14 +00:00
|
|
|
|
2011-02-15 21:19:07 +00:00
|
|
|
AM_INIT_AUTOMAKE([1.10 foreign dist-bzip2 no-dist-gzip])
|
|
|
|
AM_MAINTAINER_MODE([enable])
|
2006-05-10 03:37:14 +00:00
|
|
|
|
2010-01-25 00:47:09 +00:00
|
|
|
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
|
|
|
|
|
2011-02-15 21:19:07 +00:00
|
|
|
# Check for programs
|
2003-01-03 13:26:04 +00:00
|
|
|
AC_PROG_CC
|
|
|
|
|
2011-02-21 23:07:05 +00:00
|
|
|
GTK_REQUIRED=3.0.0
|
2010-10-02 19:57:53 +00:00
|
|
|
|
|
|
|
PKG_CHECK_MODULES([ZENITY],[gtk+-3.0 >= $GTK_REQUIRED glib-2.0])
|
2006-05-10 03:37:14 +00:00
|
|
|
AC_SUBST([ZENITY_CFLAGS])
|
|
|
|
AC_SUBST([ZENITY_LIBS])
|
2003-01-03 13:26:04 +00:00
|
|
|
|
2009-08-08 16:15:34 +00:00
|
|
|
dnl *************************
|
|
|
|
dnl Check for the GTK+ backend, if it's X11, we -lX11
|
|
|
|
dnl *************************
|
|
|
|
|
|
|
|
zenity_save_cflags="$CFLAGS"
|
|
|
|
# pull in the CFLAGS to locate gdkconfig.h
|
2010-10-02 19:57:53 +00:00
|
|
|
CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0`
|
2009-08-08 16:15:34 +00:00
|
|
|
AC_COMPILE_IFELSE([
|
2010-12-22 17:42:55 +00:00
|
|
|
#include <gdk/gdk.h>
|
2009-08-08 16:15:34 +00:00
|
|
|
|
|
|
|
int main(void) {
|
|
|
|
#ifndef GDK_WINDOWING_X11
|
|
|
|
#error GDK_WINDOWING_X11 not defined
|
|
|
|
#endif
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
],
|
|
|
|
GDK_BACKEND_X11=yes,
|
|
|
|
GDK_BACKEND_X11=no)
|
|
|
|
|
|
|
|
CFLAGS="$zenity_save_cflags"
|
|
|
|
|
|
|
|
if test "x$GDK_BACKEND_X11" = "xyes"; then
|
|
|
|
PKG_CHECK_MODULES(X, x11)
|
|
|
|
ZENITY_CFLAGS="$ZENITY_CFLAGS $X_CFLAGS"
|
|
|
|
ZENITY_LIBS="$ZENITY_LIBS $X_LIBS"
|
|
|
|
fi
|
|
|
|
|
2006-05-10 03:37:14 +00:00
|
|
|
# *******************************
|
|
|
|
# perl check
|
|
|
|
# *******************************
|
2003-01-18 19:19:20 +00:00
|
|
|
|
2006-05-10 03:37:14 +00:00
|
|
|
AC_PATH_PROG([PERL],[perl],)
|
2003-01-03 13:26:04 +00:00
|
|
|
|
2006-05-10 03:37:14 +00:00
|
|
|
# *******************************
|
|
|
|
# libnotify check
|
|
|
|
# *******************************
|
2003-05-27 21:57:46 +00:00
|
|
|
|
2010-10-09 08:59:44 +00:00
|
|
|
LIBNOTIFY_REQUIRED=0.6.1
|
2006-03-23 03:43:23 +00:00
|
|
|
|
2010-11-04 19:12:52 +00:00
|
|
|
AC_ARG_ENABLE([libnotify],
|
2011-02-15 21:19:07 +00:00
|
|
|
[AS_HELP_STRING([--enable-libnotify],
|
|
|
|
[Enable libnotify support])],
|
|
|
|
[],
|
2010-11-04 19:12:52 +00:00
|
|
|
[enable_libnotify=yes])
|
|
|
|
|
|
|
|
if test x$enable_libnotify = xyes; then
|
|
|
|
PKG_CHECK_MODULES([LIBNOTIFY], [libnotify >= $LIBNOTIFY_REQUIRED],
|
|
|
|
[HAVE_LIBNOTIFY="yes"],[HAVE_LIBNOTIFY="no"])
|
|
|
|
AC_SUBST([LIBNOTIFY_CFLAGS])
|
|
|
|
AC_SUBST([LIBNOTIFY_LIBS])
|
|
|
|
if test "x$HAVE_LIBNOTIFY" = "xyes"; then
|
|
|
|
AC_DEFINE([HAVE_LIBNOTIFY], [1], [libnotify is available on this machine])
|
|
|
|
fi
|
|
|
|
fi
|
2003-05-27 21:57:46 +00:00
|
|
|
|
2011-07-19 17:33:28 +00:00
|
|
|
# *******************************
|
|
|
|
# webkit check
|
|
|
|
# *******************************
|
|
|
|
|
|
|
|
WEBKITGTK_REQUIRED=1.4.0
|
|
|
|
|
|
|
|
AC_ARG_ENABLE([webkitgtk],
|
|
|
|
[AS_HELP_STRING([--enable-webkitgtk],
|
|
|
|
[Enable webkit support])],
|
|
|
|
[],
|
|
|
|
[enable_webkitgtk=yes])
|
|
|
|
|
|
|
|
if test x$enable_webkitgtk = xyes; then
|
|
|
|
PKG_CHECK_MODULES([WEBKIT], [webkitgtk-3.0 >= $WEBKITGTK_REQUIRED],
|
|
|
|
[HAVE_WEBKITGTK="yes"],[HAVE_WEBKITGTK="no"])
|
|
|
|
AC_SUBST([WEBKIT_CFLAGS])
|
|
|
|
AC_SUBST([WEBKIT_LIBS])
|
|
|
|
if test "x$HAVE_WEBKITGTK" = "xyes"; then
|
|
|
|
AC_DEFINE([HAVE_WEBKITGTK], [1], [webkitgtk is available on this machine])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2006-05-10 03:37:14 +00:00
|
|
|
# *******************************
|
|
|
|
# Debug
|
|
|
|
# *******************************
|
|
|
|
|
|
|
|
GNOME_DEBUG_CHECK
|
|
|
|
GNOME_COMPILE_WARNINGS([maximum])
|
|
|
|
|
|
|
|
# *******************************
|
|
|
|
# Internationalization
|
|
|
|
# *******************************
|
2011-02-15 21:19:07 +00:00
|
|
|
IT_PROG_INTLTOOL([0.40.0])
|
2003-01-03 13:26:04 +00:00
|
|
|
|
2006-04-17 04:25:44 +00:00
|
|
|
GETTEXT_PACKAGE=zenity
|
2006-05-10 03:37:14 +00:00
|
|
|
AC_SUBST([GETTEXT_PACKAGE])
|
|
|
|
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[Gettext domain])
|
2003-01-03 13:26:04 +00:00
|
|
|
|
2006-05-10 03:37:14 +00:00
|
|
|
AM_GLIB_GNU_GETTEXT
|
2003-01-03 13:26:04 +00:00
|
|
|
|
2011-02-15 21:19:07 +00:00
|
|
|
# *******************************
|
|
|
|
# User manual
|
|
|
|
# *******************************
|
2012-08-09 17:40:15 +00:00
|
|
|
YELP_HELP_INIT
|
2011-02-15 21:19:07 +00:00
|
|
|
|
2006-05-10 03:37:14 +00:00
|
|
|
# *******************************
|
2003-01-03 13:26:04 +00:00
|
|
|
|
2006-05-10 03:37:14 +00:00
|
|
|
AC_SUBST([AM_CPPFLAGS])
|
|
|
|
AC_SUBST([AM_CFLAGS])
|
|
|
|
AC_SUBST([AM_LDFLAGS])
|
2003-01-03 13:26:04 +00:00
|
|
|
|
2006-05-10 03:37:14 +00:00
|
|
|
# *******************************
|
2003-01-03 13:26:04 +00:00
|
|
|
|
2006-05-10 03:37:14 +00:00
|
|
|
AC_CONFIG_FILES([
|
2003-01-03 13:26:04 +00:00
|
|
|
Makefile
|
|
|
|
po/Makefile.in
|
|
|
|
src/Makefile
|
2003-05-27 21:57:46 +00:00
|
|
|
src/gdialog
|
2003-01-03 13:26:04 +00:00
|
|
|
data/Makefile
|
2003-01-18 19:19:20 +00:00
|
|
|
help/Makefile
|
2003-01-03 13:26:04 +00:00
|
|
|
])
|
2006-05-10 03:37:14 +00:00
|
|
|
|
|
|
|
AC_OUTPUT
|