cleaned up the mp_graphic_object field names
[mplib] / src / texk / configure.in
1 dnl Top-level configure for kpathsea-using programs.
2 dnl Our job is to run configure in the relevant subdirectories.
3 dnl
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.
7 dnl 
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
10 dnl first one.
11 dnl 
12 AC_INIT(kpathsea/kpathsea.texi)
13
14 dnl These configure scripts won't work with anything else.
15 AC_PREREQ(2.13)
16
17 AC_PROG_MAKE_SET
18
19 dnl Because we include make/common.make.
20 AC_PROG_CC
21 AC_ISC_POSIX
22 AC_PROG_LN_S
23
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)
27
28 dnl Pass this down from the top level so that when the subprograms
29 dnl install kpathsea a command line value is propagated.
30 AC_PROG_INSTALL
31
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.
35 sinclude(libtool.m4)
36 sinclude(withenable.ac)
37 sinclude(kpathsea/withenable.ac)
38 sinclude(web2c/withenable.ac)
39 sinclude(xdvik/withenable.ac)
40
41 AC_PROG_LIBTOOL
42
43 if test "x$with_omega" = xno; then
44   with_odvipsk=no
45 fi
46
47 if test "x$with_x" = xno; then
48   with_xdvik=no
49 fi
50
51 PKGS='
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
55 '
56
57 ESUBDIRS=
58 for pkg in $PKGS; do
59   if eval "test \"x`echo '$with_'${pkg}`\" != xno"; then
60     ESUBDIRS="$ESUBDIRS $pkg"
61   fi
62 done
63 AC_SUBST(ESUBDIRS)
64
65 AC_CONFIG_SUBDIRS(kpathsea web2c $ESUBDIRS)
66
67 AC_OUTPUT(Makefile)