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)
2004-04-28 23:11:31 +00:00
AM_INIT_AUTOMAKE(zenity, 2.6.3)
2003-01-03 13:26:04 +00:00
AM_MAINTAINER_MODE
2004-01-05 23:56:32 +00:00
AC_PROG_INTLTOOL([0.29])
2003-01-03 13:26:04 +00:00
AC_PROG_CC
2003-12-31 01:52:25 +00:00
GTK_REQUIRED=2.3.1
2004-03-19 02:28:30 +00:00
PKG_CHECK_MODULES(ZENITY, gtk+-2.0 >= $GTK_REQUIRED libglade-2.0 libgnomecanvas-2.0)
2003-01-03 13:26:04 +00:00
AC_SUBST(ZENITY_CFLAGS)
AC_SUBST(ZENITY_LIBS)
AC_CHECK_LIB(popt, poptHelpOptions,, AC_MSG_ERROR([popt is required to build script.]))
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
2004-07-18 23:37:06 +00:00
dnl ***********************************************
dnl X development libraries check
dnl ***********************************************
#
# If Pango included the shared library dependencies from X11 in
# the pkg-config output, then we use that (to avoid duplicates).
# but if they were omitted to avoid binary compatibility problems
# then we need to repeat the checks.
#
if $PKG_CONFIG --exists pangoxft ; then
PANGO_PACKAGES="pangox pangoxft"
else
PANGO_PACKAGES="pangox"
fi
x_libs="`$PKG_CONFIG --libs $PANGO_PACKAGES`"
case x_libs in
*-lX11*) pango_omitted_x_deps=no ;;
*) pango_omitted_x_deps=yes ;;
esac
if test $pango_omitted_x_deps = yes ; then
AC_PATH_XTRA
if test x$no_x = xyes ; then
AC_MSG_ERROR([X development libraries not found])
else
X_LIBS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS"
fi
fi
AC_SUBST(X_LIBS)
2003-05-27 21:57:46 +00:00
dnl *******************************
dnl perl check
dnl *******************************
AC_PATH_PROG(PERL,perl,)
2003-01-03 13:26:04 +00:00
dnl *******************************
dnl Internationalization
dnl *******************************
2004-06-26 07:37:54 +00:00
ALL_LINGUAS="am ar az be bg bn ca cs cy da de el en_CA en_GB es et eu fa fi fr ga gl gu hi hr hu id is it ja ko lt mi ml mn ms ne nl nn no pa pl pt pt_BR ro ru sk sl sq sr sr@Latn sv ta th uk vi zh_CN zh_TW"
2003-01-03 13:26:04 +00:00
GETTEXT_PACKAGE=zenity-0.1
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
help/C/Makefile
2004-03-21 07:28:03 +00:00
help/sr/Makefile
2003-01-03 13:26:04 +00:00
])