4 [daniel.hams@gmail.com])
5 AC_CONFIG_SRCDIR(prolooks.pc.in)
6 AC_CONFIG_MACRO_DIR(macros)
7 AM_CONFIG_HEADER(config.h)
8 AM_INIT_AUTOMAKE([1.9 dist-bzip2 no-dist-gzip])
13 PACKAGE_SUFFIX="-${ABI_VERSION}"
14 AC_SUBST(PACKAGE_SUFFIX)
15 AC_DEFINE_UNQUOTED(PACKAGE_SUFFIX, "$PACKAGE_SUFFIX", [Define to the suffix of this package])
17 program_transform_name="s,\$\$,${PACKAGE_SUFFIX},"
19 AC_SUBST(ACLOCAL_AMFLAGS, "-I macros")
31 PKG_CHECK_MODULES(PROLOOKS, \
32 gtk+-3.0 >= $GTK_REQS \
33 glib-2.0 >= $GLIB_REQS \
34 cairo >= $CAIRO_REQS )
36 AM_PROG_VALAC([$VALA_REQS])
38 VAPIDIR="$datadir/vala/vapi"
40 if test -z "$VALAC"; then
41 AC_MSG_ERROR([The Vala compiler could not be found or is too old.])
44 pkg_modules="gtk+-3.0 >= $GTK_REQS glib-2.0 >= $GLIB_REQS cairo >=$CAIRO_REQS"
45 PROLOOKS_PACKAGES="--pkg gtk+-3.0 --pkg glib-2.0 --pkg cairo --pkg posix"
46 PKG_CHECK_MODULES(PROLOOKS, [$pkg_modules])
47 AC_SUBST(PROLOOKS_CFLAGS)
48 AC_SUBST(PROLOOKS_LIBS)
49 AC_SUBST(PROLOOKS_PACKAGES)
51 GOBJECT_INTROSPECTION_CHECK([1.30.0])
53 AC_MSG_CHECKING(if glade integration should be enabled)
54 AC_ARG_ENABLE([gladeui],
55 AS_HELP_STRING([--enable-gladeui],[enable glade widget catalog installation]),
58 AC_MSG_RESULT([$enable_glade])
59 AM_CONDITIONAL(ENABLE_GLADE, test x"$enable_glade" = xyes)
62 if test x$enable_glade = xyes; then
63 dnl Check we have a recent enough gladeui for catalog integration
64 PKG_CHECK_MODULES(glade, [gladeui-1.0 >= $GLADE_REQS] )
66 dnl Check for glade catalog installation dirs needed if glade is enabled
67 AC_MSG_CHECKING(for glade catalog dirs)
68 GLADE_CATALOG_DIR=`pkg-config gladeui-1.0 --variable catalogdir`
69 AC_SUBST(GLADE_CATALOG_DIR)
70 GLADE_PIXMAP_DIR=`pkg-config gladeui-1.0 --variable pixmapdir`
71 AC_SUBST(GLADE_PIXMAP_DIR)
72 GLADE_MODULE_DIR=`pkg-config gladeui-1.0 --variable moduledir`
73 AC_SUBST(GLADE_MODULE_DIR)
74 if test x"$GLADE_CATALOG_DIR" = x -o x"$GLADE_PIXMAP_DIR" = x -o x"$GLADE_MODULE_DIR" = x; then
75 AC_MSG_ERROR([Glade catalog support enabled but could not find catalog installation dirs])
77 AC_MSG_RESULT($GLADE_CATALOG_DIR $GLADE_PIXMAP_DIR $GLADE_MODULE_DIR)
80 AC_MSG_CHECKING(if demos should be enabled)
81 AC_ARG_ENABLE([demos],
82 AS_HELP_STRING([--enable-demos],[build demo programs]),
85 AC_MSG_RESULT([$enable_demos])
86 AM_CONDITIONAL(ENABLE_DEMOS, test x"$enable_demos" = xyes)
88 AC_OUTPUT([prolooks.pc
92 gladeui/icons/Makefile
93 gladeui/icons/16x16/Makefile
94 gladeui/icons/22x22/Makefile