2003-02-09 09:33:59 +00:00
|
|
|
AC_PREREQ(2.53)
|
2003-01-03 13:26:04 +00:00
|
|
|
AC_INIT(src)
|
|
|
|
AM_CONFIG_HEADER(config.h)
|
2006-03-13 21:12:44 +00:00
|
|
|
AM_INIT_AUTOMAKE(zenity, 2.15.1)
|
2003-01-03 13:26:04 +00:00
|
|
|
|
2005-07-25 01:06:32 +00:00
|
|
|
GNOME_DOC_INIT
|
|
|
|
|
2003-01-03 13:26:04 +00:00
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
|
2006-04-17 03:46:24 +00:00
|
|
|
IT_PROG_INTLTOOL([0.34.90])
|
2003-01-03 13:26:04 +00:00
|
|
|
|
|
|
|
AC_PROG_CC
|
|
|
|
|
2005-12-18 03:19:40 +00:00
|
|
|
GTK_REQUIRED=2.6.0
|
2003-12-31 01:52:25 +00:00
|
|
|
|
2005-07-13 03:28:15 +00:00
|
|
|
PKG_CHECK_MODULES(ZENITY, gtk+-2.0 >= $GTK_REQUIRED libglade-2.0 libgnomecanvas-2.0 glib-2.0 >= 2.7.3)
|
2003-01-03 13:26:04 +00:00
|
|
|
AC_SUBST(ZENITY_CFLAGS)
|
|
|
|
AC_SUBST(ZENITY_LIBS)
|
|
|
|
|
|
|
|
dnl ***********************************************
|
2003-01-18 19:19:20 +00:00
|
|
|
dnl scrollkeeper checks
|
2003-01-03 13:26:04 +00:00
|
|
|
dnl ***********************************************
|
2003-01-18 19:19:20 +00:00
|
|
|
|
|
|
|
AC_PATH_PROG(SCROLLKEEPER_CONFIG, scrollkeeper-config,no)
|
|
|
|
if test x$SCROLLKEEPER_CONFIG = xno; then
|
|
|
|
AC_MSG_ERROR(Couldn't find scrollkeeper-config. Please install the scrollkeeper package)
|
|
|
|
fi
|
2003-01-03 13:26:04 +00:00
|
|
|
|
2003-05-27 21:57:46 +00:00
|
|
|
dnl *******************************
|
|
|
|
dnl perl check
|
|
|
|
dnl *******************************
|
|
|
|
|
|
|
|
AC_PATH_PROG(PERL,perl,)
|
2006-03-23 03:43:23 +00:00
|
|
|
|
|
|
|
dnl *******************************
|
|
|
|
dnl libnotify check
|
|
|
|
dnl *******************************
|
|
|
|
PKG_CHECK_MODULES(LIBNOTIFY, libnotify >= 0.3.2,
|
|
|
|
HAVE_LIBNOTIFY="yes", HAVE_LIBNOTIFY="no")
|
|
|
|
if test "x$HAVE_LIBNOTIFY" = "xyes"; then
|
|
|
|
ZENITY_CFLAGS="$ZENITY_CFLAGS $LIBNOTIFY_CFLAGS"
|
|
|
|
ZENITY_LIBS="$ZENITY_LIBS $LIBNOTIFY_LIBS"
|
|
|
|
|
|
|
|
AC_SUBST(ZENITY_CFLAGS)
|
|
|
|
AC_SUBST(ZENITY_LIBS)
|
|
|
|
AC_DEFINE(HAVE_LIBNOTIFY, 1, [libnotify is available on this machine])
|
|
|
|
fi
|
2003-05-27 21:57:46 +00:00
|
|
|
|
2003-01-03 13:26:04 +00:00
|
|
|
dnl *******************************
|
|
|
|
dnl Internationalization
|
|
|
|
dnl *******************************
|
|
|
|
|
2006-04-17 04:25:44 +00:00
|
|
|
GETTEXT_PACKAGE=zenity
|
2003-01-03 13:26:04 +00:00
|
|
|
AC_SUBST(GETTEXT_PACKAGE)
|
|
|
|
AM_GLIB_GNU_GETTEXT
|
|
|
|
|
|
|
|
dnl **************************************************************
|
|
|
|
dnl AM_GLIB_GNU_GETTEXT above substs $DATADIRNAME
|
|
|
|
dnl this is the directory where the *.{mo,gmo} files are installed
|
|
|
|
dnl **************************************************************
|
|
|
|
|
|
|
|
zenitylocaledir='${prefix}/${DATADIRNAME}/locale'
|
|
|
|
AC_SUBST(zenitylocaledir)
|
|
|
|
|
|
|
|
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Finding gettext package])
|
|
|
|
|
|
|
|
AC_DEFINE_UNQUOTED(GNOME_ICONDIR, "${prefix}/share/pixmaps", [Determining icon location])
|
|
|
|
|
|
|
|
AC_OUTPUT([
|
|
|
|
Makefile
|
2003-02-03 01:56:42 +00:00
|
|
|
zenity.spec
|
2003-01-03 13:26:04 +00:00
|
|
|
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
|
|
|
])
|