[ --enable-gui compile with experimental GNOME output module. Default: off],
[gui_b=$enableval])
+
+NCSB_DIR=unknown
+AC_ARG_WITH(ncsb-dir,
+[ --with-ncsb-dir=DIR location of Century Schoolbook fonts
+ Default: detect with locate(1)],
+ [NCSB_DIR=$withval])
+
+
reloc_b=no
AC_ARG_ENABLE(relocation,
[ --enable-relocation compile with dynamic relocation. Default: off],
FRAMEWORKDIR=".."
AC_ARG_WITH(framework-dir,
[ --with-framework-dir=DIR
- relative the optional framework directory],[
+ relative location of framework],[
if test "$withval" = "yes" -o "$withval" = "no"; then
AC_MSG_WARN(Usage: --with-framework-dir=../lib/FRAMEWORK/DIR)
else
AC_DEFINE(ARGV0_RELOCATION)
fi
+AC_MSG_CHECKING([New Century Schoolbook PFB files])
+if test "$NCSB_DIR" = "unknown"; then
+ # use `type' command rather than external program `which'
+ type locate >& /dev/null
+ if test "$?" = "0"; then
+ for d in `locate c059033l.pfb `; do
+ if test -f `dirname "$d"`/c059033l.afm ; then
+ NCSB_DIR=`dirname "$d"`
+ break
+ fi
+ done
+ if test "$NCSB_DIR" = "unknown"; then
+ AC_MSG_WARN(Could not find c059033l.pfb. Use --enable-ncsb-path to set path)
+ fi
+ else
+ AC_MSG_WARN(Could not find locate(1). Use --enable-ncsb-path to set path to c059033l.pfb)
+ fi
+fi
+
+AC_MSG_RESULT($NCSB_DIR)
+AC_SUBST(NCSB_DIR)
+
STEPMAKE_PANGO_FT2(pangoft2, REQUIRED, 1.6.0)
#STEPMAKE_PANGO(pango, REQUIRED, 1.6.0)
STEPMAKE_FONTCONFIG(fontconfig, REQUIRED, 2.2.0)