1
|
1
|
# Configure paths for FreeType2
|
2
|
|
-# Marcelo Magallon 2001-10-26, based on gtk.m4 by Owen Taylor
|
|
2
|
+# Marcelo Magallon 2001-10-26, based on `gtk.m4` by Owen Taylor
|
3
|
3
|
#
|
4
|
4
|
# Copyright (C) 2001-2021 by
|
5
|
5
|
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
... |
... |
@@ -15,32 +15,32 @@ |
15
|
15
|
# generated by Autoconf, under the same distribution terms as the rest of
|
16
|
16
|
# that program.
|
17
|
17
|
#
|
18
|
|
-# serial 5
|
|
18
|
+# serial 6
|
19
|
19
|
|
20
|
20
|
# AC_CHECK_FT2([MINIMUM-VERSION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
|
21
|
21
|
# Test for FreeType 2, and define FT2_CFLAGS and FT2_LIBS.
|
22
|
|
-# MINIMUM-VERSION is what libtool reports; the default is `7.0.1' (this is
|
|
22
|
+# MINIMUM-VERSION is what libtool reports; the default is '7.0.1' (this is
|
23
|
23
|
# FreeType 2.0.4).
|
24
|
24
|
#
|
|
25
|
+# To make this code work with older autoconf versions, `AS_HELP_STRING` is
|
|
26
|
+# not quoted.
|
|
27
|
+#
|
25
|
28
|
AC_DEFUN([AC_CHECK_FT2],
|
26
|
29
|
[# Get the cflags and libraries from the freetype-config script
|
27
|
30
|
#
|
28
|
31
|
AC_ARG_WITH([ft-prefix],
|
29
|
|
- dnl don't quote AS_HELP_STRING!
|
30
|
32
|
AS_HELP_STRING([--with-ft-prefix=PREFIX],
|
31
|
33
|
[Prefix where FreeType is installed (optional)]),
|
32
|
34
|
[ft_config_prefix="$withval"],
|
33
|
35
|
[ft_config_prefix=""])
|
34
|
36
|
|
35
|
37
|
AC_ARG_WITH([ft-exec-prefix],
|
36
|
|
- dnl don't quote AS_HELP_STRING!
|
37
|
38
|
AS_HELP_STRING([--with-ft-exec-prefix=PREFIX],
|
38
|
39
|
[Exec prefix where FreeType is installed (optional)]),
|
39
|
40
|
[ft_config_exec_prefix="$withval"],
|
40
|
41
|
[ft_config_exec_prefix=""])
|
41
|
42
|
|
42
|
43
|
AC_ARG_ENABLE([freetypetest],
|
43
|
|
- dnl don't quote AS_HELP_STRING!
|
44
|
44
|
AS_HELP_STRING([--disable-freetypetest],
|
45
|
45
|
[Do not try to compile and run a test FreeType program]),
|
46
|
46
|
[],
|