summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/xetexdir/tests.ac
blob: 552aea23dc05da13d661515a7b6c1cd138482701 (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
# Extra configure tests to support XeTeX

AC_DEFUN([AC_HAS_CARBON], [
#
#   Check for Carbon framework on Mac OS X
#
  _cppflags=$CPPFLAGS _ldflags=$LDFLAGS
  AC_MSG_CHECKING([for Apple Carbon framework])
  AC_TRY_COMPILE(
    [
#include <Carbon/Carbon.h>
      ], [
ATSUStyle style;
    ],
    [ AC_MSG_RESULT(yes)
      AC_DEFINE(HAVE_CARBON, 1, [Define if you have Carbon])
      LDCARBON="-framework Carbon"
      has_carbon=yes
    ],
    [ AC_MSG_RESULT(no)
      LDCARBON=
      has_carbon=no
    ]
  )
])

AC_DEFUN([AC_HAS_QUICKTIME], [
#
#   Check for QuickTime framework on Mac OS X
#
  _cppflags=$CPPFLAGS _ldflags=$LDFLAGS
  AC_MSG_CHECKING([for Apple QuickTime framework])
  AC_TRY_COMPILE(
    [
#include <QuickTime/QuickTime.h>
      ], [
ImageDescriptionHandle h;
    ],
    [ AC_MSG_RESULT(yes)
      AC_DEFINE(HAVE_QUICKTIME, 1, [Define if you have QuickTime])
      LDQUICKTIME="-framework QuickTime"
      has_quicktime=yes
    ],
    [ AC_MSG_RESULT(no)
      LDQUICKTIME=
      has_quicktime=no
    ]
  )
])