AC_PREREQ(2.52) AC_INIT(ggv, 2.11.1, http://bugzilla.gnome.org/enter_bug.cgi?product=ggv) AC_CONFIG_SRCDIR(src/gtkgs.c) AM_INIT_AUTOMAKE(ggv, 2.12.0) dnl make sure we keep ACLOCAL_FLAGS around for maintainer builds to work AC_SUBST(ACLOCAL_AMFLAGS, "$ACLOCAL_FLAGS") AM_CONFIG_HEADER(config.h) AM_MAINTAINER_MODE AC_PROG_INTLTOOL([0.30]) AC_ISC_POSIX AC_PROG_CC AC_STDC_HEADERS AM_PROG_LIBTOOL AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET AC_PATH_PROG(GCONFTOOL, gconftool-2) AM_GCONF_SOURCE_2 AC_CHECK_HEADER(paths.h) AC_PATH_PROG(LPR_PROG, lpr) AC_DEFINE_UNQUOTED(LPR_PATH, "$LPR_PROG", [Path to 'lpr' executable.]) dnl a switch for enabling bonobo component g_log output being logged to a file AC_ARG_ENABLE(bonobo-debug, [AC_HELP_STRING([--enable-bonobo-debug], [Enable logging of bonobo component debug output to a file [default=no]])], AC_DEFINE(BONOBO_DEBUG, 1, [Whether to enable logging of component debug output to a file.])) dnl a switch for enabling verbose debugging output using g_log AC_ARG_ENABLE(debug, [AC_HELP_STRING([--enable-debug], [Enable verbose debugging output [default=no]])], AC_DEFINE(DEBUG, 1, [Whether to enable verbose debugging output.])) dnl A switch to enable PDF options in the preferences dialog. AC_ARG_ENABLE(pdf-options, [AC_HELP_STRING([--enable-pdf-options], [Show PDF-related options in the preferences dialog [default=no]])], AC_DEFINE(SHOW_PDF_OPTIONS, 1, [Whether to show PDF-related options in the preferences dialog.])) ################################################## # Checks for GhostScript package ################################################## AC_ARG_WITH(gs-pkg, [ --with-gs=dir Directory Where GhostScript package is installed.]) if test "x$with_gs" = "x"; then AC_PATH_PROG(GS_PROG, gs) if test -z "$GS_PROG"; then AC_MSG_ERROR(Unable to find GhostScript in the PATH. Provide the full path for GhostScript(--with-gs=PATH). You need to have Ghostscript installed in order to run GGV) fi else GS_PROG=$with_gs fi AC_DEFINE_UNQUOTED(GS_PATH, "$GS_PROG", [Path to the 'gs' executable.]) dnl check for GS version and define appropriate alpha parameters AC_MSG_CHECKING(for Ghostscript version...) GS_VERSION=`$GS_PROG --version | head -n 1` AC_MSG_RESULT(found $GS_VERSION) dnl GS tends to get a lot of BadMatch errors with the *AlphaBits parameters dnl so I've commented their use out dnl if test "$GS_VERSION" -gt "5"; then dnl AA_PARMS="-sDEVICE=x11 -dTextAlphaBits=4 -dGraphicsAlphaBits=4" dnl else dnl AA_PARMS="-sDEVICE=x11alpha" dnl fi AA_PARMS="-sDEVICE=x11alpha -dNOPLATFONTS" AC_DEFINE_UNQUOTED(ALPHA_PARAMS, "$AA_PARMS", [Anti-aliasing parameters for Ghostscript.]) AC_MSG_RESULT(Antialiasing parameters for Ghostscript: $AA_PARMS) dnl check for popt. this is required for building on solaris AC_CHECK_LIB(popt, poptGetArgs, [POPT_LIBS="-lpopt"], AC_MSG_ERROR([popt is required to build ggv. You can download the latest version from ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/])) AC_SUBST(POPT_LIBS) AC_PATH_XTRA PKG_CHECK_MODULES(GGV, gtk+-2.0 >= 2.4.0 libgnomeui-2.0 >= 2.6.0) GGV_LIBS="$GGV_LIBS $POPT_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS" dnl A switch to enable *_DISABLE__DEPRECATED flags AC_ARG_ENABLE(deprecations, [AC_HELP_STRING([--enable-deprecations], [warn about deprecated usages [default=no]])], GGV_DEPRECATED_CFLAGS="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED", GGV_DEPRECATED_CFLAGS="") dnl ************************************************** dnl * internationalization support dnl ************************************************** ALL_LINGUAS="af am ar az be bg bn bs ca cs cy da de el en_CA en_GB es et eu fa fi fr ga gl gu he hi hr hu id is it ja kn ko lt lv mk ml mn ms nb ne nl nn no pa pl pt pt_BR ro ru rw sk sl sq sr sr@Latn sv ta th tr uk vi xh zh_CN zh_TW" GETTEXT_PACKAGE=ggv AC_SUBST(GETTEXT_PACKAGE) AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext pacakge.]) AM_GLIB_GNU_GETTEXT dnl AC_LINK_FILES($nls_cv_header_libgt, $nls_cv_header_intl) AC_SUBST(GGV_CFLAGS) AC_SUBST(GGV_LIBS) dnl ================================ dnl | ORBit2 |--------------------------- dnl ================================ ORBIT_IDL="`$PKG_CONFIG --variable=orbit_idl ORBit-2.0`" AC_SUBST(ORBIT_IDL) BONOBO_IDLDIR="`$PKG_CONFIG --variable=idldir libbonobo-2.0`" AC_SUBST(BONOBO_IDLDIR) BONOBO_ACT_IDLDIR="`$PKG_CONFIG --variable=idldir bonobo-activation-2.0`" AC_SUBST(BONOBO_ACT_IDLDIR) AC_SUBST(GGV_DEPRECATED_CFLAGS) AC_OUTPUT([ Makefile ggv.spec po/Makefile.in help/Makefile help/C/Makefile help/de/Makefile help/es/Makefile help/fr/Makefile help/it/Makefile help/sv/Makefile help/ja/Makefile help/ko/Makefile help/zh_CN/Makefile help/zh_TW/Makefile src/Makefile src/stock/Makefile src/cursors/Makefile src/recent-files/Makefile bonobo/Makefile pixmaps/Makefile idl/Makefile omf-install/Makefile ])