cvs: peardoc / configure.in

From: Date: Sat, 12 Mar 2005 14:07:11 +0000
Subject: cvs: peardoc / configure.in
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-5651@lists.php.net to get a copy of this message
techtonik Sat Mar 12 09:07:11 2005 EDT Modified files: /peardoc configure.in Log: + Improved PHP detection on Windows systems + Path to look for DSSSL templates in phpdoc directory http://cvs.php.net/diff.php/peardoc/configure.in?r1=1.10&r2=1.11&ty=u Index: peardoc/configure.in diff -u peardoc/configure.in:1.10 peardoc/configure.in:1.11 --- peardoc/configure.in:1.10 Wed Mar 9 04:29:32 2005 +++ peardoc/configure.in Sat Mar 12 09:07:11 2005 @@ -1,7 +1,10 @@ -dnl $Id: configure.in,v 1.10 2005/03/09 09:29:32 mj Exp $ +dnl $Id: configure.in,v 1.11 2005/03/12 14:07:11 techtonik Exp $ +dnl peardoc autoconf initialisation AC_INIT(global.ent) +dnl {{{ check for PHP + dnl use given argument, if any, else search in path AC_ARG_WITH(php, [ --with-php=PATH Look for PHP executable needed for helper scripts], @@ -17,10 +20,34 @@ AC_MSG_ERROR([$withval: not an executable file]) fi else - AC_PATH_PROGS(PHP,"php php4",no) + if test -e ../phpdoc-tools/php.bat ; then + AC_MSG_CHECKING([for php]) + PHP=../phpdoc-tools/php.bat + AC_MSG_RESULT($PHP) + else + if test -e "$PHP_PEAR_BIN_DIR/cli/php" ; then + AC_MSG_CHECKING([for php]) + PHP="$PHP_PEAR_BIN_DIR/cli/php" + AC_MSG_RESULT($PHP) + else + AC_PATH_PROGS(PHP,"php php4",no) + fi + fi fi ],[ - AC_PATH_PROGS(PHP,"php php4",no) + if test -e ../phpdoc-tools/php.bat ; then + AC_MSG_CHECKING([for php]) + PHP=../phpdoc-tools/php.bat + AC_MSG_RESULT($PHP) + else + if test -e "$PHP_PEAR_BIN_DIR/cli/php" ; then + AC_MSG_CHECKING([for php]) + PHP="$PHP_PEAR_BIN_DIR/cli/php" + AC_MSG_RESULT($PHP) + else + AC_PATH_PROGS(PHP,"php php4",no) + fi + fi ] ) if test $PHP = "no"; then @@ -37,6 +64,9 @@ fi fi AC_SUBST(PHP) + +dnl }}} + dnl AC_MSG_CHECKING(for DocBook doctype) dnl check_catalog_files() { dnl for catalog in $@; do @@ -104,7 +134,8 @@ ../phpdoc-tools/dsssl/docbook \ ../phpdoc-tools/dsssl \ phpdoc-tools/dsssl/docbook \ - phpdoc-tools/dsssl + phpdoc-tools/dsssl \ + ../phpdoc/dsssl/docbook do if test -d "$dir"; then DOCBOOK_HTML="$dir/html/docbook.dsl" @@ -131,7 +162,7 @@ /usr/share/sgml/docbook/*xsl-stylesheets* \ ../phpdoc-tools/xsl/docbook \ ../phpdoc-tools/xsl \ - ../phpdoc/xsl/docbook \ + ../phpdoc/xsl/docbook \ phpdoc-tools/xsl/docbook \ phpdoc-tools/xsl do

« previous php.pear.doc (#5651) next »