Skip to content

Commit 25d267d

Browse files
committed
fixed issue #149
1 parent e28b283 commit 25d267d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

config.m4

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ if test "$PHP_EXCEL" != "no"; then
1818
SEARCH_FOR="libxl.h"
1919

2020
AC_MSG_CHECKING([for excel includes])
21-
if test -r $PHP_LIBXL_INCDIR/include/$SEARCH_FOR; then
21+
if test -r "$PHP_LIBXL_INCDIR/include/$SEARCH_FOR"; then
2222
EXCEL_INCDIR=$PHP_LIBXL_INCDIR/include
23-
elif test -r $PHP_LIBXL_INCDIR/$SEARCH_FOR; then
23+
elif test -r "$PHP_LIBXL_INCDIR/$SEARCH_FOR"; then
2424
EXCEL_INCDIR=$PHP_LIBXL_INCDIR
2525
else # search default path list
2626
for i in $SEARCH_PATH ; do
27-
if test -r $i/include/$SEARCH_FOR; then
27+
if test -r "$i/include/$SEARCH_FOR"; then
2828
EXCEL_INCDIR=$i/include
2929
fi
3030
done
@@ -40,13 +40,13 @@ if test "$PHP_EXCEL" != "no"; then
4040
SEARCH_FOR="libxl.${SHLIB_SUFFIX_NAME}"
4141

4242
AC_MSG_CHECKING([for excel libraries])
43-
if test -r $PHP_LIBXL_LIBDIR/$PHP_LIBDIR/$SEARCH_FOR; then
43+
if test -r "$PHP_LIBXL_LIBDIR/$PHP_LIBDIR/$SEARCH_FOR"; then
4444
EXCEL_LIBDIR=$PHP_LIBXL_LIBDIR/$PHP_LIBDIR
45-
elif test -r $PHP_LIBXL_LIBDIR/$SEARCH_FOR; then
45+
elif test -r "$PHP_LIBXL_LIBDIR/$SEARCH_FOR"; then
4646
EXCEL_LIBDIR=$PHP_LIBXL_LIBDIR
4747
elif test -z "$EXCEL_LIBDIR"; then
4848
for i in $SEARCH_PATH ; do
49-
if test -r $i/$PHP_LIBDIR/$SEARCH_FOR; then
49+
if test -r "$i/$PHP_LIBDIR/$SEARCH_FOR"; then
5050
EXCEL_LIBDIR=$i/$PHP_LIBDIR
5151
fi
5252
done
@@ -60,13 +60,13 @@ if test "$PHP_EXCEL" != "no"; then
6060
fi
6161

6262
AC_MSG_CHECKING([for libxml2])
63-
if test -r $PHP_LIBXML_DIR/libxml; then
63+
if test -r "$PHP_LIBXML_DIR/libxml"; then
6464
LIBXML_INCDIR=$PHP_LIBXML_DIR
6565
fi
6666

6767
if test -z "$LIBXML_INCDIR"; then
6868
AC_MSG_RESULT([not found])
69-
if test $PHP_ENABLE_LIBXML != "no"; then
69+
if test "$PHP_ENABLE_LIBXML" != "no"; then
7070
AC_DEFINE(EXCEL_WITH_LIBXML, 1, [ ])
7171
fi
7272
else

0 commit comments

Comments
 (0)