~ubuntu-branches/ubuntu/intrepid/intlfonts/intrepid

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Milan Zamazal
  • Date: 2003-11-13 08:31:28 UTC
  • Revision ID: james.westby@ubuntu.com-20031113083128-twlakixijcdvb52u
Tags: upstream-1.2.1
ImportĀ upstreamĀ versionĀ 1.2.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl Process this file with autoconf to produce a configure script.
 
2
AC_INIT()
 
3
 
 
4
AC_PROG_INSTALL
 
5
AC_SUBST(INSTALL)
 
6
 
 
7
dnl
 
8
dnl Fonts installation directory.
 
9
dnl
 
10
AC_ARG_WITH(fontdir,
 
11
    [  --with-fontdir=DIR\t  install fonts in DIR [PREFIX/share/emacs/fonts]])
 
12
fontdir=${with_fontdir}
 
13
if test -z "$fontdir" -o "${fontdir}" = yes; then
 
14
  theprefix=$prefix
 
15
  if test "x$theprefix" = "xNONE"; then
 
16
    theprefix=$ac_default_prefix
 
17
  fi
 
18
  fontdir="${theprefix}/share/emacs/fonts"
 
19
fi
 
20
AC_MSG_CHECKING([where fonts should go])
 
21
AC_MSG_RESULT(${fontdir})
 
22
AC_SUBST(fontdir)
 
23
 
 
24
dnl
 
25
dnl Compress fonts nor not
 
26
dnl
 
27
AC_ARG_ENABLE(compress,
 
28
  [  --enable-compress[=ARG] whether to compress PCF fonts or not [ARG=gzip]])
 
29
if test -z "${enable_compress}"; then
 
30
  compress=no
 
31
elif test "${enable_compress}" = "yes"; then
 
32
  compress=gzip
 
33
else
 
34
  compress=${enable_compress}
 
35
fi
 
36
AC_MSG_CHECKING(whether to compress fonts or not)
 
37
if test "${compress}" = "no" ; then
 
38
  AC_MSG_RESULT(no)
 
39
else
 
40
  AC_MSG_RESULT([yes, by ${compress}])
 
41
fi
 
42
AC_SUBST(compress)
 
43
 
 
44
dnl
 
45
dnl Installing font types
 
46
dnl
 
47
AC_ARG_WITH(pcf,
 
48
        [  --with-pcf[=ARG]       install PCF fonts
 
49
                          [ARG=yes] on Unix, [ARG=no] on DOS],,
 
50
        test -z "${COMSPEC}" || with_pcf=no)
 
51
AC_ARG_WITH(bdf,
 
52
        [  --with-bdf[=ARG]       install BDF fonts [ARG=yes]])
 
53
AC_ARG_WITH(type1,
 
54
        [  --with-type1[=ARG]     install Type1 fonts [ARG=no]],,
 
55
        with_type1=no)
 
56
AC_ARG_WITH(truetype,
 
57
        [  --with-truetype[=ARG]          install TrueType fonts [ARG=no]],,
 
58
        with_truetype=no)
 
59
targets=""
 
60
test "${with_pcf}" = "no" || targets="${targets} pcf"
 
61
test "${with_bdf}" = "no" || targets="${targets} bdf"
 
62
test "${with_type1}" = "no" || targets="${targets} type1"
 
63
test "${with_truetype}" = "no" || targets="${targets} truetype"
 
64
AC_MSG_CHECKING(installing font types)
 
65
AC_MSG_RESULT($targets)
 
66
AC_SUBST(targets)
 
67
 
 
68
AC_OUTPUT(Makefile)