dnl
dnl Process this file with autoconf to create configure.
+AC_INIT(fonts.dtd)
+
dnl ==========================================================================
dnl Versioning
dnl ==========================================================================
-dnl The version number is also in fontconfig/fontconfig.h
-AC_INIT(ChangeLog,1.0.3,fontconfig@fontconfig.org)
+dnl This is the package version number, not the shared library version number
+dnl The shared library version lives in fontconfig/fontconfig.h
+AM_INIT_AUTOMAKE(fontconfig, 2.1.90)
FONTCONFIG_HEADER=fontconfig/fontconfig.h
FONTCONFIG_MAJOR=`awk '/^#define FC_MAJOR/ { print $3 }' $FONTCONFIG_HEADER`
FONTCONFIG_MINOR=`awk '/^#define FC_MINOR/ { print $3 }' $FONTCONFIG_HEADER`
FONTCONFIG_REVISION=`awk '/^#define FC_REVISION/ { print $3 }' $FONTCONFIG_HEADER`
-FONTCONFIG_VERSION="$FONTCONFIG_MAJOR.$FONTCONFIG_MINOR.$FONTCONFIG_REVISION"
AC_SUBST(FONTCONFIG_MAJOR)
AC_SUBST(FONTCONFIG_MINOR)
AC_SUBST(FONTCONFIG_REVISION)
-AC_SUBST(FONTCONFIG_VERSION)
dnl libtool versioning
dnl ==========================================================================
-AM_INIT_AUTOMAKE(fontconfig, $FONTCONFIG_VERSION)
-
AM_CONFIG_HEADER(config.h)
AC_PROG_CC
case "$x_fonts" in
yes)
FC_X_FONTS=""
- for dir in /usr/X11R6/lib /usr/X11/lib /usr/lib/X11; do
+ for dir in /usr/X11R6/lib/X11 /usr/X11/lib/X11 /usr/lib/X11; do
case x"$FC_X_FONTS" in
x)
if test -d "$dir/fonts"; then
case "$confdir" in
no|yes)
- confdir=/etc/fonts
+ confdir='${sysconfdir}'/fonts
;;
*)
;;
esac
AC_SUBST(confdir)
-CONFDIR='${confdir}'
+CONFDIR=${confdir}
AC_DEFINE_UNQUOTED(CONFDIR, "$CONFDIR",[Font configuration directory])
AC_SUBST(CONFDIR)
ORTH_FILES=`cd fc-lang && echo *.orth`
AC_SUBST(ORTH_FILES)
+#
+# Let people not build/install docs if they don't have docbook
+#
+
+AC_CHECK_PROG(HASDOCBOOK, docbook2html, yes, no)
+
+AC_ARG_ENABLE(docs, [ --disable-docs Don't build and install documentation],,enable_docs=yes)
+
+if test "x$enable_docs" = xyes; then
+ if test "x$HASDOCBOOK" != xyes; then
+ enable_docs=no
+ fi
+fi
+
+AM_CONDITIONAL(ENABLE_DOCS, test "x$enable_docs" = xyes)
+
#
# Figure out where to install documentation
#
fc-cache/Makefile
fc-list/Makefile
doc/Makefile
+test/Makefile
fontconfig.spec
fontconfig.pc
fonts.conf