blob: 0585d51363d61c845e151b5cde90587ea4400187 (
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
--- configure.orig
+++ configure
@@ -34202,23 +34202,36 @@ $as_echo "If configure fails try --with-xpm-dir=<DIR>" >&6; }
done
if test -z "$FREETYPE2_DIR"; then
- as_fn_error $? "freetype-config not found." "$LINENO" 5
+ for i in $PHP_FREETYPE_DIR /usr/local /usr; do
+ if test -f "$i/bin/pkg-config"; then
+ PKGCONFIG_DIR=$i
+ PKGCONFIG_CONFIG="$i/bin/pkg-config"
+ break
+ fi
+ done
+ if test -z "$PKGCONFIG_DIR"; then
+ as_fn_error $? "freetype-config and pkg-config not found." "$LINENO" 5
+ else
+ FREETYPE2_CFLAGS=`$PKGCONFIG_CONFIG --cflags freetype2`
+ FREETYPE2_LIBS=`$PKGCONFIG_CONFIG --libs freetype2`
+ fi
+ else
+ FREETYPE2_CFLAGS=`$FREETYPE2_CONFIG --cflags`
+ FREETYPE2_LIBS=`$FREETYPE2_CONFIG --libs`
fi
- FREETYPE2_CFLAGS=`$FREETYPE2_CONFIG --cflags`
- FREETYPE2_LIBS=`$FREETYPE2_CONFIG --libs`
- for ac_i in $FREETYPE2_CFLAGS; do
- case $ac_i in
- -I*)
- ac_ii=`echo $ac_i|cut -c 3-`
+ for ac_i in $FREETYPE2_CFLAGS; do
+ case $ac_i in
+ -I*)
+ ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/include"; then
+ if test "$ac_ii" != "/usr/include"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
+ if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
+ ai_p=$ac_ii
+ else
ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
--- configure.orig
+++ configure
@@ -35890,23 +35890,34 @@ $as_echo "If configure fails try --with-xpm-dir=<DIR>" >&6; }
done
if test -z "$FREETYPE2_DIR"; then
- as_fn_error $? "freetype-config not found." "$LINENO" 5
+ for i in $PHP_FREETYPE_DIR /usr/local /usr; do
+ if test -f "$i/bin/pkg-config"; then
+ PKGCONFIG_DIR=$i
+ PKGCONFIG_CONFIG="$i/bin/pkg-config"
+ break
+ fi
+ done
+ if test -z "$PKGCONFIG_DIR"; then
+ as_fn_error $? "freetype-config and pkg-config not found." "$LINENO" 5
+ else
+ FREETYPE2_CFLAGS=`$PKGCONFIG_CONFIG --cflags freetype2`
+ FREETYPE2_LIBS=`$PKGCONFIG_CONFIG --libs freetype2`
+ fi
+ else
+ FREETYPE2_CFLAGS=`$FREETYPE2_CONFIG --cflags`
+ FREETYPE2_LIBS=`$FREETYPE2_CONFIG --libs`
fi
- FREETYPE2_CFLAGS=`$FREETYPE2_CONFIG --cflags`
- FREETYPE2_LIBS=`$FREETYPE2_CONFIG --libs`
+ for ac_i in $FREETYPE2_CFLAGS; do
+ case $ac_i in
+ -I*)
+ ac_ii=`echo $ac_i|cut -c 3-`
+ if test "$ac_ii" != "/usr/include"; then
- for ac_i in $FREETYPE2_CFLAGS; do
- case $ac_i in
- -I*)
- ac_ii=`echo $ac_i|cut -c 3-`
-
- if test "$ac_ii" != "/usr/include"; then
-
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
+ if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
+ ai_p=$ac_ii
+ else
ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
|