1 dnl Process this file with autoconf to produce a configure script.
4 AC_INIT([cantarell-fonts], [0.0.12],
5 [http://bugzilla.gnome.org/enter_bug.cgi?product=cantarell-fonts])
7 AM_INIT_AUTOMAKE([1.9 tar-ustar foreign dist-bzip2 no-dist-gzip])
9 AC_ARG_ENABLE(source-rebuild,
10 AS_HELP_STRING([--enable-source-rebuild], [Rebuild from source using fontforge]),,
11 enable_source_rebuild=no)
12 AM_CONDITIONAL(SOURCE_REBUILD, test x$enable_source_rebuild != xno)
14 PKG_PROG_PKG_CONFIG([0.19])
17 # Workaround to make aclocal get the right flags
18 AC_SUBST(ACLOCAL_AMFLAGS, "\${ACLOCAL_FLAGS}")
20 AC_ARG_WITH([configdir],
21 [AC_HELP_STRING([--with-configdir=DIR],
22 [Use DIR to store fontconfig configuration files [default=DATADIR/fontconfig/conf.avail]])],
23 [configdir="$withval"],
28 configdir='${datadir}'/fontconfig/conf.avail
34 CONFIGDIR=${configdir}
37 AC_ARG_WITH([fontdir],
38 [AC_HELP_STRING([--with-fontdir=DIR],
39 [Use DIR to store font files [default=DATADIR/fonts/cantarell]])],
45 fontdir='${datadir}'/fonts/cantarell
68 rebuild via fontforge: ${enable_source_rebuild}