File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -138,21 +138,25 @@ AC_DEFUN(PHP_GD_T1LIB,[
138
138
[ --with-t1lib[ =DIR] GD: Include T1lib support.] )
139
139
140
140
if test "$PHP_T1LIB" != "no"; then
141
- for i in /usr/local /usr $PHP_T1LIB; do
141
+ for i in /usr /usr/local $PHP_T1LIB; do
142
142
if test -f "$i/include/t1lib.h"; then
143
- T1_DIR="$i"
143
+ T1_DIR=$i
144
144
fi
145
145
done
146
146
147
- if test "$T1_DIR" != "no" ; then
147
+ if test "$T1_DIR"; then
148
148
AC_CHECK_LIB ( t1 , T1_GetExtend ,
149
149
[
150
150
AC_DEFINE ( HAVE_LIBT1 ,1 ,[ ] )
151
151
PHP_ADD_INCLUDE("$T1_DIR/include")
152
152
PHP_ADD_LIBRARY_WITH_PATH(t1, "$T1_DIR/lib", GD_SHARED_LIBADD)
153
153
] ,[
154
154
AC_MSG_ERROR ( Problem with libt1. ( a|so ) . Please check config.log for more information. )
155
+ ] ,[
156
+ -L$T1_DIR/lib
155
157
] )
158
+ else
159
+ AC_MSG_ERROR ( Your t1lib distribution is not installed correctly. Please reinstall it. )
156
160
fi
157
161
fi
158
162
] )
You can’t perform that action at this time.
0 commit comments