1 dnl aclocal.m4 -*-shell-script-*-
2 dnl WARNING WARNING WARNING
3 dnl do not edit! this is aclocal.m4, generated from stepmake/aclocal.m4
4 dnl aclocal.m4 -*-shell-script-*-
5 dnl StepMake subroutines for configure.in
8 ### mostly interal macros
10 # Get full path of executable ($1)
11 AC_DEFUN(STEPMAKE_GET_EXECUTABLE, [
12 ## which doesn't work in ash, if /usr/bin/which isn't installed
13 ## type -p doesn't work in ash
14 ## command -v doesn't work in zsh
15 ## command -v "$1" 2>&1
16 ## this test should work in ash, bash, pdksh (ksh), zsh
17 type -p "$1" 2>/dev/null | tail -1 | awk '{print $NF}'
21 # Get version string from executable ($1)
22 AC_DEFUN(STEPMAKE_GET_VERSION, [
23 "$1" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
26 # Calculate numeric version from version string ($1)
27 AC_DEFUN(STEPMAKE_NUMERIC_VERSION, [
30 if ([$]3) {last = [$]3}
33 {printf "%s%s%s\n",[$]1*100, [$]2*10,last}'
37 # Add item ($2) to list ($1, one of 'OPTIONAL', 'REQUIRED')
38 AC_DEFUN(STEPMAKE_ADD_ENTRY, [
39 eval "$1"=\"`eval echo \"'$'$1\" \"$2\"`\"
42 # Check if tested program ($2) was found ($1).
43 # If not, add entry to missing-list ($3, one of 'OPTIONAL', 'REQUIRED').
44 # We could abort here if a 'REQUIRED' program is not found
45 AC_DEFUN(STEPMAKE_OPTIONAL_REQUIRED, [
46 STEPMAKE_CHECK_SEARCH_RESULT($1)
47 if test $? -ne 0; then
48 STEPMAKE_ADD_ENTRY($3, $2)
49 if test "$3" = "REQUIRED"; then
50 command="echo ERROR: $2 not found"
51 # abort configure process here?
53 command="- echo $2 not found"
63 # Return if tested proram ($1) was found (true) or not (false).
64 AC_DEFUN(STEPMAKE_CHECK_SEARCH_RESULT, [
65 r="`eval echo '$'"$1"`"
66 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"$1"`' : '.*\(echo\)' > /dev/null; then
69 ##STEPMAKE_WARN(cannot find $2. $3)
75 # Check version of program ($1)
76 # If version is smaller than requested ($3),
77 # add entry to missing-list ($2, one of 'OPTIONAL', 'REQUIRED').
78 AC_DEFUN(STEPMAKE_CHECK_VERSION, [
79 r="`eval echo '$'"$1"`"
80 AC_MSG_CHECKING("$r version")
81 #exe=`STEPMAKE_GET_EXECUTABLE($r)`
82 exe=`STEPMAKE_GET_EXECUTABLE($r)`
83 ver=`STEPMAKE_GET_VERSION($exe)`
84 num=`STEPMAKE_NUMERIC_VERSION($ver)`
85 req=`STEPMAKE_NUMERIC_VERSION($3)`
87 if test "$num" -lt "$req"; then
88 STEPMAKE_ADD_ENTRY($2, "$r $3 (installed: $ver)")
92 ### Macros to build configure.in
95 AC_DEFUN(STEPMAKE_BIBTEX2HTML, [
96 STEPMAKE_PROGS(BIBTEX2HTML, bibtex2html bib2html, $1)
97 if test "$BIBTEX2HTML" = "bib2html"; then
98 BIBTEX2HTML_FLAGS='$< $(@)'
100 BIBTEX2HTML_FLAGS='-o $(@D)/$(*F) $<'
102 AC_SUBST(BIBTEX2HTML)
103 AC_SUBST(BIBTEX2HTML_FLAGS)
107 AC_DEFUN(STEPMAKE_BISON, [
108 # ugh, automake: we want (and check for) bison
111 STEPMAKE_PROGS(BISON, bison, $1)
113 # urg. should test functionality rather than version.
114 if test "$BISON" = "bison" -a -n "$2"; then
115 STEPMAKE_CHECK_VERSION(BISON, $1, $2)
120 AC_DEFUN(STEPMAKE_COMPILE, [
121 # -O is necessary to get inlining
123 CXXFLAGS=${CXXFLAGS-$CFLAGS}
124 LDFLAGS=${LDFLAGS-""}
130 AC_ARG_ENABLE(checking,
131 [ --enable-checking set runtime checks (assert calls). Default: on],
132 [checking_b=$enableval] )
134 AC_ARG_ENABLE(debugging,
135 [ --enable-debugging compile with debugging info. Default: on],
136 [debug_b=$enableval])
138 AC_ARG_ENABLE(optimising,
139 [ --enable-optimising compile with optimising. Default: on],
140 [optimise_b=$enableval])
142 AC_ARG_ENABLE(profiling,
143 [ --enable-profiling compile with gprof support. Default: off],
144 [profile_b=$enableval])
147 if test "$checking_b" = no; then
150 DEFINES="$DEFINES -DNDEBUG"
153 if test "$optimise_b" = yes; then
154 OPTIMIZE="-O2 -finline-functions"
158 if test $profile_b = yes; then
160 OPTIMIZE="$OPTIMIZE -pg"
163 if test $debug_b = yes; then
164 OPTIMIZE="$OPTIMIZE -g"
169 STEPMAKE_OPTIONAL_REQUIRED(CC, cc, $1)
173 CFLAGS="$CFLAGS $OPTIMIZE"
174 CPPFLAGS=${CPPFLAGS-""}
176 AC_MSG_CHECKING([for IEEE-conformance compiler flags])
177 save_cflags="$CFLAGS"
180 dnl should do compile test?
181 AC_MSG_RESULT(-mieee)
182 CFLAGS="-mieee $CFLAGS"
185 AC_MSG_RESULT([none])
188 AC_SUBST(cross_compiling)
195 AC_SUBST(EXTRA_LIBES)
198 AC_DEFUN(STEPMAKE_CXX, [
201 STEPMAKE_OPTIONAL_REQUIRED(CXX, c++, $1)
203 CPPFLAGS="$CPPFLAGS $DEFINES"
204 CXXFLAGS="$CXXFLAGS $OPTIMIZE"
205 LDFLAGS="$LDFLAGS $EXTRA_LIBES"
214 AC_DEFUN(STEPMAKE_CXXTEMPLATE, [
215 AC_CACHE_CHECK([whether explicit instantiation is needed],
216 lily_cv_need_explicit_instantiation,
218 template <class T> struct foo { static int baz; };
219 template <class T> int foo<T>::baz = 1;
220 ], [ return foo<int>::baz; ],
221 lily_cv_need_explicit_instantiation=no,
222 lily_cv_need_explicit_instantiation=yes))
223 if test x"$lily_cv_need_explicit_instantiation"x = x"yes"x; then
224 AC_DEFINE(NEED_EXPLICIT_INSTANTIATION)
229 AC_DEFUN(STEPMAKE_DATADIR, [
230 if test "$datadir" = "\${prefix}/share"; then
231 datadir='${prefix}/share/'$package/$FULL_VERSION
233 DIR_DATADIR=${datadir}
235 if test "$prefix" = "NONE"; then
236 presome=${ac_default_prefix}
238 DIR_DATADIR=`echo ${DIR_DATADIR} | sed "s!\\\${prefix}!$presome!"`
241 AC_SUBST(DIR_DATADIR)
243 # we used to set DIR_SHAREDSTATEDIR here,
244 # but apparently that broke something
246 AC_DEFINE_UNQUOTED(DIR_DATADIR, "${DIR_DATADIR}")
250 AC_DEFUN(STEPMAKE_END, [
254 AC_OUTPUT($CONFIGFILE.make:config.make.in)
257 if test -n "$OPTIONAL"; then
259 echo "WARNING: Please consider installing optional programs: $OPTIONAL"
262 if test -n "$REQUIRED"; then
264 echo "ERROR: Please install required programs: $REQUIRED"
267 if test -n "$OPTIONAL$REQUIRED"; then
269 echo "See INSTALL.txt for more information on how to build $PACKAGE_NAME"
270 echo "Remove config.cache before rerunning ./configure"
273 if test -n "$REQUIRED"; then
274 rm -f $srcdir/GNUmakefile
278 # regular in-place build
279 # test for srcdir_build = yes ?
280 if test "$builddir" = "."; then
281 rm -f $srcdir/GNUmakefile
282 cp $srcdir/GNUmakefile.in $srcdir/GNUmakefile
283 chmod 444 $srcdir/GNUmakefile
284 else # --srcdir build
286 cp $srcdir/make/srcdir.make.in GNUmakefile
287 chmod 444 GNUmakefile
292 AC_DEFUN(STEPMAKE_FLEX, [
293 # ugh, automake: we want (and check for) flex
295 # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
299 ac_cv_prog_lex_root=lex.yy
300 STEPMAKE_PROGS(FLEX, flex, $1)
304 AC_DEFUN(STEPMAKE_FLEXLEXER, [
305 AC_HAVE_HEADERS(FlexLexer.h, true, false)
306 if test $? -ne 0; then
307 warn='FlexLexer.h (flex package)'
308 STEPMAKE_ADD_ENTRY($1, $warn)
313 AC_DEFUN(STEPMAKE_GCC, [
314 if test "$GCC" = "yes"; then
315 STEPMAKE_CHECK_VERSION(CC, $1, $2)
317 warn="$CC (Please install *GNU* cc)"
318 STEPMAKE_ADD_ENTRY($1, $warn)
323 AC_DEFUN(STEPMAKE_GETTEXT, [
324 DIR_LOCALEDIR=${localedir}
326 if test "$prefix" = "NONE"; then
327 presome=${ac_default_prefix}
329 DIR_LOCALEDIR=`echo ${DIR_LOCALEDIR} | sed "s!\\\${prefix}!$presome!"`
331 AC_SUBST(DIR_LOCALEDIR)
332 AC_DEFINE_UNQUOTED(DIR_LOCALEDIR, "${DIR_LOCALEDIR}")
334 AC_CHECK_LIB(intl, gettext)
335 AC_CHECK_FUNCS(gettext)
339 AC_DEFUN(STEPMAKE_GUILE, [
340 STEPMAKE_PATH_PROG(GUILE, guile, $1)
344 # STEPMAKE_GUILE_FLAGS --- set flags for compiling and linking with Guile
346 # This macro runs the guile-config script, installed with Guile,
347 # to find out where Guile's header files and libraries are
348 # installed. It sets two variables, marked for substitution, as
351 # GUILE_CFLAGS --- flags to pass to a C or C++ compiler to build
352 # code that uses Guile header files. This is almost
353 # always just a -I flag.
355 # GUILE_LDFLAGS --- flags to pass to the linker to link a
356 # program against Guile. This includes -lguile for
357 # the Guile library itself, any libraries that Guile
358 # itself requires (like -lqthreads), and so on. It may
359 # also include a -L flag to tell the compiler where to
360 # find the libraries.
362 AC_DEFUN([STEPMAKE_GUILE_FLAGS], [
363 exe=`STEPMAKE_GET_EXECUTABLE($guile_config)`
364 if test -x $exe; then
365 AC_MSG_CHECKING("guile compile flags")
366 GUILE_CFLAGS="`$guile_config compile`"
367 AC_MSG_RESULT($GUILE_CFLAGS)
368 AC_MSG_CHECKING("guile link flags")
369 GUILE_LDFLAGS="`$guile_config link`"
370 AC_MSG_RESULT($GUILE_LDFLAGS)
372 AC_SUBST(GUILE_CFLAGS)
373 AC_SUBST(GUILE_LDFLAGS)
377 AC_DEFUN(STEPMAKE_GUILE_DEVEL, [
378 ## First, let's just see if we can find Guile at all.
379 AC_MSG_CHECKING("for guile-config")
380 for guile_config in guile-config $target-guile-config $build-guile-config; do
381 AC_MSG_RESULT("$guile_config")
382 if ! $guile_config --version > /dev/null 2>&1 ; then
383 AC_MSG_WARN("cannot execute $guile_config")
384 AC_MSG_CHECKING("if we are cross compiling")
385 GUILE_CONFIG='echo no guile-config'
387 GUILE_CONFIG=$guile_config
391 STEPMAKE_OPTIONAL_REQUIRED(GUILE_CONFIG, $guile_config, $1)
392 if test $? -ne 0; then
393 STEPMAKE_ADD_ENTRY($1, 'guile-config (guile-devel, guile-dev or libguile-dev package)')
396 STEPMAKE_CHECK_SEARCH_RESULT(GUILE_CONFIG)
397 # urg. should test functionality rather than version.
398 if test $? -eq 0 -a -n "$2"; then
399 STEPMAKE_CHECK_VERSION(GUILE_CONFIG, $1, $2)
402 AC_SUBST(GUILE_CONFIG)
405 changequote(<<, >>)dnl
406 GUILE_MAJOR_VERSION=`expr $guile_version : '\([0-9]*\)'`
407 GUILE_MINOR_VERSION=`expr $guile_version : '[0-9]*\.\([0-9]*\)'`
410 AC_DEFINE_UNQUOTED(GUILE_MAJOR_VERSION, $GUILE_MAJOR_VERSION)
411 AC_DEFINE_UNQUOTED(GUILE_MINOR_VERSION, $GUILE_MINOR_VERSION)
415 AC_DEFUN(STEPMAKE_GXX, [
416 if test "$GXX" = "yes"; then
417 STEPMAKE_CHECK_VERSION(CXX, $1, $2)
419 warn="$CXX (Please install *GNU* c++)"
420 STEPMAKE_ADD_ENTRY($1, $warn)
425 AC_DEFUN(STEPMAKE_INIT, [
428 FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
429 if test x$MY_PATCH_LEVEL != x; then
430 FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
433 # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
434 changequote(<<, >>)dnl
435 PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
436 package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
439 # No versioning on directory names of sub-packages
441 stepmake=${datadir}/stepmake
443 if test "$prefix" = "NONE"; then
444 presome=${ac_default_prefix}
446 stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
448 # urg, how is this supposed to work?
449 if test "$program_prefix" = "NONE"; then
452 if test "$program_suffix" = "NONE"; then
456 AC_MSG_CHECKING(Package)
457 if test "x$PACKAGE" = "xSTEPMAKE"; then
458 AC_MSG_RESULT(Stepmake package!)
460 AC_MSG_CHECKING(builddir)
461 if test "$srcdir" = "."; then
464 absolute_builddir="`pwd`"
465 package_absolute_builddir="`dirname $absolute_builddir`"
466 package_srcdir="`dirname $srcdir`"
467 builddir="`dirname $package_srcdir`/`basename $package_absolute_builddir`/`basename $absolute_builddir`"
469 AC_MSG_RESULT($builddir)
471 (cd stepmake 2>/dev/null || mkdir stepmake)
472 (cd stepmake; rm -f bin; ln -s ../$srcdir/bin .)
473 AC_CONFIG_AUX_DIR(bin)
476 AC_MSG_RESULT($PACKAGE)
478 AC_MSG_CHECKING(builddir)
479 if test "$srcdir" = "."; then
483 absolute_builddir="`pwd`"
484 # builddir="`dirname $srcdir`/`basename $absolute_builddir`"
485 builddir="`bash $srcdir/buildscripts/walk.sh \"$srcdir\"`"
488 AC_MSG_RESULT($builddir)
489 if expr "$srcdir" : '/' > /dev/null 2>&1; then
491 STEPMAKE_WARN(Absolute --srcdir specified: $srcdir)
494 AC_MSG_CHECKING(for stepmake)
495 # Check for installed stepmake
496 if test -d $stepmake; then
497 AC_MSG_RESULT($stepmake)
499 if test "$absolute_srcdir" != "yes"; then
500 stepmake='$(depth)'/$srcdir/stepmake
502 stepmake=$srcdir/stepmake
504 AC_MSG_RESULT($srcdir/stepmake ($datadir/stepmake not found))
508 $HOME/usr/local/share/stepmake/bin\
509 $HOME/usr/local/lib/stepmake/bin\
510 $HOME/usr/share/stepmake/bin\
511 $HOME/usr/lib/stepmake/bin\
512 /usr/local/share/stepmake/bin\
513 /usr/local/lib/stepmake/bin\
514 /usr/share/stepmake/bin\
515 /usr/lib/stepmake/bin\
517 $srcdir/stepmake/bin\
525 AC_SUBST(PACKAGE_NAME)
526 AC_DEFINE_UNQUOTED(PACKAGE, "${PACKAGE_NAME}")
527 AC_DEFINE_UNQUOTED(TOPLEVEL_VERSION, "${FULL_VERSION}")
529 if test "$package_depth" = "" ; then
532 package_depth="../$package_depth"
535 AC_SUBST(package_depth)
537 AUTOGENERATE="This file was automatically generated by configure"
538 AC_SUBST(AUTOGENERATE)
541 AC_ARG_ENABLE(config,
542 [ --enable-config=CONF put settings in config-CONF.make and config-CONF.h;
543 do \`make conf=CONF' to get output in ./out-CONF],
544 [CONFIGURATION=$enableval])
548 test -n "$CONFIGURATION" && CONFIGSUFFIX="-$CONFIGURATION"
549 CONFIGFILE=config$CONFIGSUFFIX
550 AC_SUBST(CONFIGSUFFIX)
553 STEPMAKE_PROGS(MAKE, gmake make, REQUIRED)
554 STEPMAKE_PROGS(FIND, find, REQUIRED)
556 STEPMAKE_PROGS(TAR, tar, REQUIRED)
558 if test "x`uname`" = "xHP-UX"; then
559 AC_PATH_PROG(BASH, bash, /bin/sh)
560 STEPMAKE_WARN(avoiding buggy /bin/sh)
561 AC_PATH_PROG(SHELL, bash, /bin/ksh)
563 AC_PATH_PROG(BASH, bash, /bin/sh)
568 STEPMAKE_PATH_PROG(PYTHON, python, REQUIRED)
570 if expr "$MAKE" : '.*\(echo\)' >/dev/null; then
571 $MAKE -v 2> /dev/null | grep GNU > /dev/null
572 if test "$?" = 1; then
573 warn='make (Please install *GNU* make)'
574 # STEPMAKE_WARN($warn)
575 STEPMAKE_ADD_ENTRY(REQUIRED, $warn)
579 if test "$OSTYPE" = "cygwin" -o "$OSTYPE" = "cygwin32" -o "$OSTYPE" = "Windows_NT"; then
580 LN=cp # hard link does not work under cygnus-nt
581 LN_S='cp -r' # symbolic link does not work for native nt
587 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
595 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-sh -c"
597 AC_SUBST(program_prefix)
598 AC_SUBST(program_suffix)
603 AC_DEFINE_UNQUOTED(DIRSEP, '${DIRSEP}')
604 AC_DEFINE_UNQUOTED(PATHSEP, '${PATHSEP}')
613 AC_DEFUN(STEPMAKE_KPATHSEA, [
616 #FIXME --with-xxx is meant for specifying a PATH too,
617 # so this should read: --enable-kpathsea,
618 # or --with-kpathsea-include=PATH --with-kpathsea-lib=PATH
619 AC_ARG_WITH(kpathsea,
620 [ --with-kpathsea use kpathsea lib. Default: on],
621 [kpathsea_b=$with_kpathsea])
623 if test "$kpathsea_b" != "no"; then
624 AC_HAVE_HEADERS(kpathsea/kpathsea.h)
625 AC_CHECK_LIB(kpathsea, kpse_find_file)
626 AC_CHECK_FUNCS(kpse_find_file,, AC_ERROR(Cannot find kpathsea functions. You should install kpathsea; see INSTALL.txt. Rerun ./configure --without-kpathsea only if kpathsea is not available for your platform.))
628 AC_MSG_CHECKING(whether to use kpathsea)
629 if test "$kpathsea_b" != no; then
638 AC_DEFINE_UNQUOTED(KPATHSEA, $KPATHSEA)
642 AC_DEFUN(STEPMAKE_LIB, [
643 STEPMAKE_PROGS(AR, ar, $1)
645 STEPMAKE_OPTIONAL_REQUIRED(RANLIB, ranlib, $1)
649 AC_DEFUN(STEPMAKE_LIBTOOL, [
651 # **Never** try to set library version numbers so that they correspond
652 # to the release number of your package. This is an abuse that only
653 # fosters misunderstanding of the purpose of library versions.
655 REVISION=$PATCH_LEVEL
656 # CURRENT=$MINOR_VERSION
657 CURRENT=`expr $MINOR_VERSION + 1`
658 # AGE=$(expr $MAJOR_VERSION + 1)
666 AC_DEFUN(STEPMAKE_LOCALE, [
671 AC_ARG_WITH(localedir,
672 [ --with-localedir=LOCALE use LOCALE as locale dir. Default:
673 PREFIX/share/locale ],
674 localedir=$with_localedir,
675 localedir='${prefix}/share/locale')
678 [ --with-lang=LANG use LANG as language to emit messages],
682 AC_MSG_CHECKING(language)
684 En* | en* | Am* | am* | US* | us*)
686 NL | nl | Du* | du* | Ned* | ned*)
695 if test "$lang" = "unknown" ; then
696 STEPMAKE_WARN($language not supported; available are: $ALL_LINGUAS)
702 AC_DEFUN(STEPMAKE_MAKEINFO, [
703 STEPMAKE_PROGS(MAKEINFO, makeinfo, $1)
704 if test "$MAKEINFO" = "makeinfo"; then
705 AC_MSG_CHECKING(whether makeinfo can split html by @node)
707 makeinfo --html --output=out/split <<EOF
709 \input texinfo @c -*-texinfo-*-
710 @setfilename split.info
714 if test -d out/split; then
715 SPLITTING_MAKEINFO=yes
720 STEPMAKE_WARN(your html documentation will be one large file)
724 AC_SUBST(SPLITTING_MAKEINFO)
729 AC_DEFUN(STEPMAKE_MAN, [
730 STEPMAKE_PROGS(GROFF, groff ditroff, $1)
732 STEPMAKE_PROGS(TROFF, troff, $1)
734 STEPMAKE_PROGS(TBL, tbl, $1)
739 AC_DEFUN(STEPMAKE_MSGFMT, [
740 STEPMAKE_PROGS(MSGFMT, msgfmt, $1)
744 # Check for program ($2), set full path result to ($1).
745 # If missing, add entry to missing-list ($3, one of 'OPTIONAL', 'REQUIRED')
746 AC_DEFUN(STEPMAKE_PATH_PROG, [
747 AC_CHECK_PROGS($1, $2, no)
748 STEPMAKE_OPTIONAL_REQUIRED($1, $2, $3)
749 if test $? -eq 0; then
751 if test -n "$4"; then
752 STEPMAKE_CHECK_VERSION($1, $3, $4)
758 # Check for program in set of names ($2), set result to ($1) .
759 # If missing, add entry to missing-list ($3, one of 'OPTIONAL', 'REQUIRED')
760 # If exists, and a minimal version ($4) is required
761 AC_DEFUN(STEPMAKE_PROGS, [
762 AC_CHECK_PROGS($1, $2, no)
763 STEPMAKE_OPTIONAL_REQUIRED($1, $2, $3)
764 if test $? -eq 0 -a -n "$4"; then
765 STEPMAKE_CHECK_VERSION($1, $3, $4)
770 AC_DEFUN(STEPMAKE_PERL, [
771 STEPMAKE_PATH_PROG(PERL, perl, $1)
775 AC_DEFUN(STEPMAKE_PYTHON_DEVEL, [
776 AC_HAVE_HEADERS(python2.2/Python.h python2.1/Python.h python2.0/Python.h python2/Python.h python/Python.h python1.5/Python.h Python.h, PYTHON_HEADER=yes)
777 if test -z "$PYTHON_HEADER"; then
778 warn='python.h (python-devel, python-dev or libpython-dev package)'
779 STEPMAKE_ADD_ENTRY($1, $warn)
784 AC_DEFUN(STEPMAKE_TEXMF_DIRS, [
785 AC_ARG_ENABLE(tfm-path,
786 [ --enable-tfm-path=PATH set path of tex directories where tfm files live,
787 esp.: cmr10.tfm. Default: use kpsewhich],
788 [tfm_path=$enableval],
792 STEPMAKE_PROGS(KPSEWHICH, kpsewhich, OPTIONAL)
793 AC_MSG_CHECKING(for tfm path)
797 if test "x$tfm_path" = xauto ; then
798 if test "x$KPSEWHICH" != "xno" ; then
799 for i in $TFM_FONTS; do
800 dir=`$KPSEWHICH tfm ${i}10.tfm`
801 TFM_PATH="$TFM_PATH `dirname $dir`"
804 STEPMAKE_WARN(Please specify where cmr10.tfm lives:
805 ./configure --enable-tfm-path=/usr/local/TeX/lib/tex/fonts)
811 TFM_PATH=`echo $TFM_PATH | tr ':' ' '`
812 AC_MSG_RESULT($TFM_PATH)
817 AC_DEFUN(STEPMAKE_TEXMF, [
818 # urg, never know what names these teTeX guys will think up
820 STEPMAKE_PROGS(METAFONT, mf mfont, $1)
821 STEPMAKE_PROGS(INIMETAFONT, inimf inimfont, $1)
823 AC_MSG_CHECKING(for working metafont mode)
824 modelist='ljfour lj4 lj3 lj2 ljet laserjet'
825 for MFMODE in $modelist; do
826 $METAFONT "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
827 if test -f mfput.tfm; then
831 AC_MSG_RESULT($MFMODE)
839 AC_DEFUN(STEPMAKE_WARN, [