summaryrefslogtreecommitdiff
path: root/Build/source/texk/xdv2pdf/configure.ac
blob: efe6e62ccc5dd91a2ed05902bb4f08cb2055de70 (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
61
62
dnl Process this file with autoconf to produce a configure script.
dnl
dnl   Copyright (C) 2009 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
AC_INIT([xdv2pdf], [0.998], [tex-k@tug.org])
AC_PREREQ([2.63])
AC_CONFIG_SRCDIR([xdv2pdf.cpp])
AC_CONFIG_AUX_DIR([../../build-aux])
AC_CONFIG_MACRO_DIR([../../m4])

dnl Common code for all programs using libkpathsea.
KPSE_COMMON([xdv2pdf])

AC_CONFIG_HEADERS([config.h])

dnl Checks for programs.
AC_PROG_CXX
AC_PROG_OBJC

KPSE_KPATHSEA_FLAGS

dnl First, check if we're configuring on Mac OS X -- can't build elsewhere

KPSE_CHECK_FRAMEWORK([Carbon], [ATSUStyle style])
KPSE_CHECK_FRAMEWORK([QuickTime], [ImageDescriptionHandle h])

if test "x$kpse_cv_have_Carbon:$kpse_cv_have_QuickTime" = xyes:yes; then
  build=yes
else
  AC_MSG_WARN([Carbon or QuickTime framework not found, can not build xdv2pdf.])
  build=no
fi

if test "x$build" = xyes; then

dnl Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
AC_STRUCT_TM
AC_C_BIGENDIAN

dnl Checks for library functions.
AC_CHECK_FUNCS([strspn system])
AC_SEARCH_LIBS([pow], [m])

dnl Check that Kpathsea supports the opentype file format.
KPSE_ADD_FLAGS([kpathsea])
KPSE_CHECK_KPSE_FORMAT([opentype], ,
                       [build=no
AC_MSG_WARN([Kpathsea does not support opentype files, can not build xdv2pdf.])])
KPSE_RESTORE_FLAGS

fi

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

AC_CONFIG_FILES([Makefile])

AC_OUTPUT