Hello!
When I tried to build copy of manual using configure option
--with-php="path with whitespaces", I got error.
In attached diff patch, allows use whitespaces in paths.
Regards,
Sveta.
--- C:\Documents and Settings\user\Local
Settings\Temp\TCVb9fa.tmp\configure.1.233.in Tue Sep 06 13:52:54 2005
+++ C:\cygwin\home\sveta\php-srcs\phpdoc-ru\configure.in Fri Jan 20
01:15:21 2006
@@ -25,11 +25,11 @@
AC_ARG_WITH(php,
[ --with-php=PATH look for PHP executable needed for helper scripts],
[
- if test $withval != "yes"; then
+ if test "$withval" != "yes"; then
AC_MSG_CHECKING([for php])
- if test -x $withval; then
- PHP=$withval
- AC_MSG_RESULT($PHP)
+ if test -x "$withval"; then
+ PHP="$withval"
+ AC_MSG_RESULT("$PHP")
else
PHP=no
AC_MSG_RESULT(no)
@@ -39,12 +39,12 @@
if test -e ../phpdoc-tools/php.bat ; then
AC_MSG_CHECKING([for php])
PHP=../phpdoc-tools/php.bat
- AC_MSG_RESULT($PHP)
+ AC_MSG_RESULT("$PHP")
else
if test -e "$PHP_PEAR_BIN_DIR/cli/php" ; then
AC_MSG_CHECKING([for php])
- PHP=`echo $PHP_PEAR_BIN_DIR/cli/php | tr '\\\\' '/'`
- AC_MSG_RESULT($PHP)
+ PHP=`echo "$PHP_PEAR_BIN_DIR/cli/php" | tr '\\\\' '/'`
+ AC_MSG_RESULT("$PHP")
else
AC_PATH_PROGS(PHP,"php php4",no)
fi
@@ -54,25 +54,25 @@
if test -e ../phpdoc-tools/php.bat ; then
AC_MSG_CHECKING([for php])
PHP=../phpdoc-tools/php.bat
- AC_MSG_RESULT($PHP)
+ AC_MSG_RESULT("$PHP")
else
if test -e "$PHP_PEAR_BIN_DIR/cli/php" ; then
AC_MSG_CHECKING([for php])
- PHP=`echo $PHP_PEAR_BIN_DIR/cli/php | tr '\\\\' '/'`
- AC_MSG_RESULT($PHP)
+ PHP=`echo "$PHP_PEAR_BIN_DIR/cli/php" | tr '\\\\' '/'`
+ AC_MSG_RESULT("$PHP")
else
AC_PATH_PROGS(PHP,"php php4",no)
fi
fi
]
)
-if test $PHP = "no"; then
+if test "$PHP" = "no"; then
AC_MSG_ERROR([no PHP binary found])
else
AC_MSG_CHECKING([php version])
- PHPVERSION=`$PHP -q -f $srcdir/scripts/version.php`
+ PHPVERSION=`"$PHP" -q -f $srcdir/scripts/version.php`
- if test "yes" = `echo '<?php echo phpversion()>3?"yes":"no"; ?>' | $PHP -q`;
then
+ if test "yes" = `echo '<?php echo phpversion()>3?"yes":"no"; ?>' | "$PHP"
-q`; then
AC_MSG_RESULT($PHPVERSION)
else
AC_MSG_RESULT($PHPVERSION)
@@ -89,7 +89,7 @@
AC_ARG_WITH(inipath,
[ --with-inipath=PATH specify path to php.ini file (default: ./scripts)],
[
- AC_MSG_RESULT([$withval])
+ AC_MSG_RESULT(["$withval"])
INIPATH="$withval"
],[
AC_MSG_RESULT([./scripts])
@@ -106,10 +106,10 @@
AC_ARG_WITH(jade,
[ --with-jade=PATH look for jade or openjade executable],[
- if test $withval != "yes"; then
+ if test "$withval" != "yes"; then
AC_MSG_CHECKING([for jade])
- if test -x $withval; then
- JADE=$withval
+ if test -x "$withval"; then
+ JADE="$withval"
AC_MSG_RESULT($JADE)
else
JADE=no
@@ -164,10 +164,10 @@
AC_ARG_WITH(nsgmls,
[ --with-nsgmls=PATH look for nsgmls or onsgmls executable],[
- if test $withval != "yes"; then
+ if test "$withval" != "yes"; then
AC_MSG_CHECKING([for nsgmls])
- if test -x $withval; then
- NSGMLS=$withval
+ if test -x "$withval"; then
+ NSGMLS="$withval"
AC_MSG_RESULT($NSGMLS)
else
NSGMLS=no
@@ -218,11 +218,11 @@
AC_ARG_WITH(xsltproc,
[ --with-xsltproc=PATH look for xsltproc],
[
- if test $withval != "yes"; then
+ if test "$withval" != "yes"; then
AC_MSG_CHECKING([for xsltproc])
- if test -x $withval -a -f $withval
+ if test -x "$withval" -a -f "$withval"
then
- XSLTPROC=$withval
+ XSLTPROC="$withval"
AC_MSG_RESULT($XSLTPROC)
else
XSLTPROC=no
@@ -261,11 +261,11 @@
AC_ARG_WITH(xmllint,
[ --with-xmllint=PATH check for xmllint],
[
- if test $withval != "yes"; then
+ if test "$withval" != "yes"; then
AC_MSG_CHECKING([for xmllint])
- if test -x $withval -a -f $withval
+ if test -x "$withval" -a -f "$withval"
then
- XMLLINT=$withval
+ XMLLINT="$withval"
AC_MSG_RESULT($XMLLINT)
else
XMLLINT=no
@@ -310,9 +310,9 @@
[ --with-dsssl=[DIR] look for DSSSL stylesheets in the specified
directory],
[
if test -f "$withval/html/docbook.dsl" ; then
- DOCBOOK_HTML=$withval/html/docbook.dsl
- DOCBOOK_PRINT=$withval/print/docbook.dsl
- AC_MSG_RESULT(in $withval)
+ DOCBOOK_HTML="$withval/html/docbook.dsl"
+ DOCBOOK_PRINT="$withval/print/docbook.dsl"
+ AC_MSG_RESULT(in "$withval")
fi
],[
DOCBOOK_HTML="$srcdir/dsssl/docbook/html/docbook.dsl"
@@ -388,13 +388,13 @@
[ --with-source=[DIR] look at the specified source directory],
[
if test -d "$withval" ; then
- PHP_SOURCE=$withval
+ PHP_SOURCE="$withval"
else
for PHP_SOURCE in \
$srcdir/../php4 \
$srcdir/../php-src
do
- if test -d $PHP_SOURCE; then
+ if test -d "$PHP_SOURCE"; then
break
fi
done
@@ -429,7 +429,7 @@
PEAR_SOURCE=no
fi
else
- PEAR_SOURCE=$withval
+ PEAR_SOURCE="$withval"
if test ! -d $PEAR_SOURCE; then
AC_MSG_ERROR(['$withval' is not a valid directory'])
fi
@@ -454,8 +454,8 @@
PECL_SOURCE=no
fi
else
- PECL_SOURCE=$withval
- if test ! -d $PECL_SOURCE; then
+ PECL_SOURCE="$withval"
+ if test ! -d "$PECL_SOURCE"; then
AC_MSG_ERROR(['$withval' is not a valid directory'])
fi
fi
@@ -473,7 +473,7 @@
AC_ARG_WITH(extension,
[ --with-extension=[DIR] look at the specified extension directory],
[
- AC_MSG_RESULT($withval)
+ AC_MSG_RESULT("$withval")
list=`echo "$withval" | sed -e"s/,/ /g"`
EXT_SOURCE="";
for dir in $list; do
@@ -496,7 +496,7 @@
AC_ARG_WITH(htmlcss,
[ --with-htmlcss=URL specify a CSS file to include in html docs],
[
- AC_MSG_RESULT([$withval])
+ AC_MSG_RESULT(["$withval"])
HTMLCSS="(define %stylesheet% \"$withval\")"
],[
HTMLCSS=""
@@ -582,7 +582,7 @@
LANG_HACK_FOR_HE="no"
HACK_RTL_LANGS_PAGES=""
HACK_RTL_LANGS_PHPWEB=""
- case $withval in
+ case "$withval" in
kr)
LANG="ko"
LANGWEB="ko"
@@ -834,16 +834,16 @@
dnl {{{ generate entity mapping file, missing entities and IDs
dnl if we have PHP use it for all of these things
-if test $PHP != "no"
+if test "$PHP" != "no"
then
dnl create entity mapping file supporting Zend, CHM and other specialities
- $PHP -c $INIPATH -q ./scripts/file-entities.php
+ "$PHP" -c $INIPATH -q ./scripts/file-entities.php
dnl create missing-entities.ent and missing-ids.xml
rm -f entities/missing*
rm -f entities/missing-ids.xml
- $PHP -c $INIPATH -q ./scripts/missing-entities.php
+ "$PHP" -c $INIPATH -q ./scripts/missing-entities.php
else