[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])
+ [ --with-ncsb-dir=DIR location of Century Schoolbook fonts.],
+ [NCSB_DIR=$withval],
+ )
reloc_b=no
AC_ARG_ENABLE(relocation,
STEPMAKE_PATH_PROG(GHOSTSCRIPT, gs, OPTIONAL, 8.15)
STEPMAKE_PROGS(MFTRACE, mftrace, REQUIRED, 1.1.19)
+STEPMAKE_PROGS(FCMATCH, fc-match, OPTIONAL, 2.1.0)
STEPMAKE_PATH_PROG(FONTFORGE, fontforge, REQUIRED, 20050624)
AC_CHECK_HEADERS([assert.h grp.h libio.h pwd.h sys/stat.h wchar.h])
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)
+
+if test "$NCSB_DIR" != "" ; then
+ if test ! -f "$NCSB_DIR/c059016l.pfb"; then
+ AC_MSG_WARN($NCSB_DIR does not contain c059033l.pfb. Use --with-ncsb-dir)
fi
fi
+
AC_MSG_RESULT($NCSB_DIR)
AC_SUBST(NCSB_DIR)