Skip to content

Commit

Permalink
fixed issue #149
Browse files Browse the repository at this point in the history
  • Loading branch information
iliaal committed Jun 23, 2016
1 parent 885c754 commit bb3bc50
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ if test "$PHP_EXCEL" != "no"; then
SEARCH_FOR="libxl.h"

AC_MSG_CHECKING([for excel includes])
if test -r $PHP_LIBXL_INCDIR/include/$SEARCH_FOR; then
if test -r "$PHP_LIBXL_INCDIR/include/$SEARCH_FOR"; then
EXCEL_INCDIR=$PHP_LIBXL_INCDIR/include
elif test -r $PHP_LIBXL_INCDIR/$SEARCH_FOR; then
elif test -r "$PHP_LIBXL_INCDIR/$SEARCH_FOR"; then
EXCEL_INCDIR=$PHP_LIBXL_INCDIR
else # search default path list
for i in $SEARCH_PATH ; do
if test -r $i/include/$SEARCH_FOR; then
if test -r "$i/include/$SEARCH_FOR"; then
EXCEL_INCDIR=$i/include
fi
done
Expand All @@ -40,13 +40,13 @@ if test "$PHP_EXCEL" != "no"; then
SEARCH_FOR="libxl.${SHLIB_SUFFIX_NAME}"

AC_MSG_CHECKING([for excel libraries])
if test -r $PHP_LIBXL_LIBDIR/$PHP_LIBDIR/$SEARCH_FOR; then
if test -r "$PHP_LIBXL_LIBDIR/$PHP_LIBDIR/$SEARCH_FOR"; then
EXCEL_LIBDIR=$PHP_LIBXL_LIBDIR/$PHP_LIBDIR
elif test -r $PHP_LIBXL_LIBDIR/$SEARCH_FOR; then
elif test -r "$PHP_LIBXL_LIBDIR/$SEARCH_FOR"; then
EXCEL_LIBDIR=$PHP_LIBXL_LIBDIR
elif test -z "$EXCEL_LIBDIR"; then
for i in $SEARCH_PATH ; do
if test -r $i/$PHP_LIBDIR/$SEARCH_FOR; then
if test -r "$i/$PHP_LIBDIR/$SEARCH_FOR"; then
EXCEL_LIBDIR=$i/$PHP_LIBDIR
fi
done
Expand All @@ -60,13 +60,13 @@ if test "$PHP_EXCEL" != "no"; then
fi

AC_MSG_CHECKING([for libxml2])
if test -r $PHP_LIBXML_DIR/libxml; then
if test -r "$PHP_LIBXML_DIR/libxml"; then
LIBXML_INCDIR=$PHP_LIBXML_DIR
fi

if test -z "$LIBXML_INCDIR"; then
AC_MSG_RESULT([not found])
if test $PHP_ENABLE_LIBXML != "no"; then
if test "$PHP_ENABLE_LIBXML" != "no"; then
AC_DEFINE(EXCEL_WITH_LIBXML, 1, [ ])
fi
else
Expand Down

0 comments on commit bb3bc50

Please sign in to comment.