blob: 49a6bed003e0391bbd60650e38dcc01d0e5d2eb8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
AC_PREREQ(2.53)
AC_INIT(Ogonkify, 0.7.0)
AC_CONFIG_AUX_DIR(../auxdir)
AM_INIT_AUTOMAKE
# What should get installed?
AC_ARG_ENABLE(extensions,
[ --disable-extensions small footprint installation],
[case "${enableval}" in
yes|no) ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-extensions) ;;
esac],[enable_extensions=yes])
AM_CONDITIONAL(EXTENSIONS, test x$enable_extensions = xyes)
#
# Ogonkify support
#
# Composite needs ibmfonts and perl
AC_DEFUN([ad_IBMFONTS],
[AC_PATH_X
AC_MSG_CHECKING(for IBM font files)
for i in $x_libraries/X11/fonts/Type1 \
/usr/local/share/TeX/gs/fonts
do
if test -r "$i"; then
for j in 'cour*.pfa' 'ncr*.pfa'
do
if test -n "`echo $i/$j`"; then
IBMFONTS=$i/$j
AC_SUBST(IBMFONTS)
break 2;
fi
done
fi
done
if test -n "$IBMFONTS"; then
AC_MSG_RESULT($IBMFONTS)
else
AC_MSG_RESULT(no)
fi])
# Ogonkify is written in Perl.
case "x$PERL" in
x/*) # User specified a version of Perl to use by absolute path.
AC_SUBST(PERL);;
x) # She didn't specify at all.
AC_PATH_PROG(PERL, [perl perl5], no) ;;
x*) # She specified the name, but we want the path.
AC_PATH_PROG(PERL, $PERL, no) ;;
esac
# We need the IBM PFA files.
ad_IBMFONTS
AC_CONFIG_FILES(composeglyphs, [chmod +x composeglyphs])
AC_OUTPUT(Makefile ogonkify.in
doc/Makefile
m4/Makefile)
|