summaryrefslogtreecommitdiff
path: root/Build/source/libs/graphite2/configure.ac
blob: 6cafdc14971c9060e6a1954fd088b8687be89591 (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
dnl Process this file with autoconf to produce a configure script.
dnl
dnl   Copyright (C) 2012 Peter Breitenlohner <tex-live@tug.org>
dnl
dnl   This file is free software; the copyright holder
dnl   gives unlimited permission to copy and/or distribute it,
dnl   with or without modifications, as long as this notice is preserved.
dnl
m4_include([version.ac])[] dnl define graphite2_version
AC_INIT([graphite2 for TeX Live], graphite2_version, [tex-k@tug.org])
AC_PREREQ([2.65])
AC_CONFIG_SRCDIR([graphite2-]graphite2_version[/graphite2.pc.in])
AC_CONFIG_AUX_DIR([../../build-aux])
AC_CONFIG_MACRO_DIR([../../m4])

KPSE_BASIC([graphite2])

AC_PROG_CC
AC_PROG_CXX
AC_PROG_RANLIB
AC_PROG_LN_S

LT_INIT

AC_CONFIG_HEADERS([config.h])

AM_CONDITIONAL([build], [test "x$enable_build" != xno])

if test "x$enable_build" != xno || test -f config.force; then
echo timestamp >config.force
fi

AM_CONDITIONAL([DIRECT_TYPE], [test "x$GCC" = xyes])

enable_segcache=no
AM_CONDITIONAL([WITH_SEGCACHE], [test "x$enable_segcache" != xno])
if test "x$enable_segcache" = no; then
  AC_DEFINE([GRAPHITE2_NSEGCACHE], 1,
            [Define to 1 to disable segcache support.])
fi

enable_fileface=yes
AM_CONDITIONAL([WITH_FILEFACE], [test "x$enable_fileface" != xno])
if test "x$enable_fileface" = no; then
  AC_DEFINE([GRAPHITE2_NFILEFACE], 1,
            [Define to 1 to disable fileface support.])
fi

enable_tracing=no
AM_CONDITIONAL([WITH_TRACING], [test "x$enable_tracing" != xno])
if test "x$enable_tracing" = no; then
  AC_DEFINE([GRAPHITE2_NTRACING], 1,
            [Define to 1 to disable tracing support.])
fi

AC_SUBST([GRAPHITE2_TREE], [graphite2-]graphite2_version)

AC_CONFIG_FILES([Makefile include/graphite2/Makefile])

AC_OUTPUT