1 dnl Top-level configure for kpathsea-using programs.
2 dnl Our job is to run configure in the relevant subdirectories.
4 dnl Assumption: each program will create a c-auto.h that defines
5 dnl everything kpathsea needs. We arrange this by including (at
6 dnl autoconf time) kpathsea/common.ac.
8 dnl Consequence: we don't need to run configure in the kpathsea directory
9 dnl itself; we can just copy from a program directory. We'll use the
12 AC_INIT(kpathsea/kpathsea.texi)
14 dnl These configure scripts won't work with anything else.
19 dnl Because we include make/common.make.
24 dnl If we guessed the prefix in the subdirectories, it might guess
25 dnl differently than the prefix here, and that would cause confusion.
26 AC_PREFIX_PROGRAM(tex)
28 dnl Pass this down from the top level so that when the subprograms
29 dnl install kpathsea a command line value is propagated.
32 dnl If the other programs ever acquire their own --with or --enable
33 dnl options, they must be added, so configure --help at the top level
34 dnl will show all the options.
36 sinclude(withenable.ac)
37 sinclude(kpathsea/withenable.ac)
38 sinclude(web2c/withenable.ac)
39 sinclude(xdvik/withenable.ac)
43 if test "x$with_omega" = xno; then
47 if test "x$with_x" = xno; then
52 afm2pl bibtex8 cjkutils detex devnag dtl dvi2tty dvidvi dviljk dvipdfm
53 dvipng dvipsk gsftopk lacheck makeindexk musixflx odvipsk ps2pkm
54 seetexk tetex tex4htk texlive ttf2pk tth xdvik
59 if eval "test \"x`echo '$with_'${pkg}`\" != xno"; then
60 ESUBDIRS="$ESUBDIRS $pkg"
65 AC_CONFIG_SUBDIRS(kpathsea web2c $ESUBDIRS)