cvs: phpdoc / configure.in configure.php /scripts file-entities.php.in
| From: | Hannes Magnusson | Date: | Mon, 17 Sep 2007 21:18:06 +0000 |
| Subject: | cvs: phpdoc / configure.in configure.php /scripts file-entities.php.in | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-33@lists.php.net to get a copy of this message | ||
bjori Mon Sep 17 21:18:06 2007 UTC
Modified files:
/phpdoc/scripts file-entities.php.in
/phpdoc configure.php configure.in
Log:
Workaround cygwin issues
# As of now, you need to pass --with-cygwin to configure/configure.php
# when running cygwin
http://cvs.php.net/viewvc.cgi/phpdoc/scripts/file-entities.php.in?r1=1.47&r2=1.48&diff_format=u
Index: phpdoc/scripts/file-entities.php.in
diff -u phpdoc/scripts/file-entities.php.in:1.47 phpdoc/scripts/file-entities.php.in:1.48
--- phpdoc/scripts/file-entities.php.in:1.47 Wed Sep 12 13:37:55 2007
+++ phpdoc/scripts/file-entities.php.in Mon Sep 17 21:18:05 2007
@@ -17,7 +17,7 @@
| Gabor Hojtsy <goba@php.net> |
+----------------------------------------------------------------------+
- $Id: file-entities.php.in,v 1.47 2007/09/12 13:37:55 bjori Exp $
+ $Id: file-entities.php.in,v 1.48 2007/09/17 21:18:05 bjori Exp $
*/
/**
@@ -395,7 +395,7 @@
if ($GLOBALS['not_windows'])
return realpath($path);
- if ((bool)@WINJADE@ || stripos(PHP_OS, "cygwin") === false) {
+ if ((bool)@WINJADE@ || !(bool)@CYGWIN@) {
return strip_cygdrive($path);
} else {
return preg_replace('@^([a-zA-Z]):/@S', '/cygdrive/$1/', $path);
http://cvs.php.net/viewvc.cgi/phpdoc/configure.php?r1=1.3&r2=1.4&diff_format=u
Index: phpdoc/configure.php
diff -u phpdoc/configure.php:1.3 phpdoc/configure.php:1.4
--- phpdoc/configure.php:1.3 Wed Sep 12 13:39:40 2007
+++ phpdoc/configure.php Mon Sep 17 21:18:06 2007
@@ -17,10 +17,10 @@
| Authors: Dave Barr <dave@php.net> |
+----------------------------------------------------------------------+
- $Id: configure.php,v 1.3 2007/09/12 13:39:40 bjori Exp $
+ $Id: configure.php,v 1.4 2007/09/17 21:18:06 bjori Exp $
*/
-$cvs_id = "$Id: configure.php,v 1.3 2007/09/12 13:39:40 bjori Exp $";
+$cvs_id = '$Id: configure.php,v 1.4 2007/09/17 21:18:06 bjori Exp $';
$srcdir = "./";
echo "configure.php: $cvs_id\n";
@@ -66,6 +66,7 @@
$ac['srcdir'] = $srcdir;
$ac['WORKDIR'] = $srcdir;
$ac['PHP'] = '';
+$ac['CYGWIN'] = false;
$ac['INIPATH'] = './scripts';
$ac['JADE'] = '';
$ac['WINJADE'] = 0;
@@ -133,12 +134,20 @@
);
foreach ($_SERVER['argv'] as $opt) {
- list($o, $v) = explode("=", $opt);
+ if (strpos($opt, "=") !== false) {
+ list($o, $v) = explode("=", $opt);
+ } else {
+ $o = $opt;
+ $v = true;
+ }
switch ($o) {
case '--help':
usage();
exit();
+ case '--with-cygwin';
+ $ac['CYGWIN'] = $v;
+ break;
case '--with-php':
$ac['PHP'] = $v;
break;
http://cvs.php.net/viewvc.cgi/phpdoc/configure.in?r1=1.244&r2=1.245&diff_format=u
Index: phpdoc/configure.in
diff -u phpdoc/configure.in:1.244 phpdoc/configure.in:1.245
--- phpdoc/configure.in:1.244 Wed Jun 27 20:24:02 2007
+++ phpdoc/configure.in Mon Sep 17 21:18:06 2007
@@ -1,4 +1,4 @@
-dnl $Id: configure.in,v 1.244 2007/06/27 20:24:02 gwynne Exp $
+dnl $Id: configure.in,v 1.245 2007/09/17 21:18:06 bjori Exp $
dnl autoconf initialisation
AC_INIT()
@@ -85,6 +85,23 @@
dnl }}}
dnl {{{
+AC_ARG_WITH(cygwin,
+[ --with-cygwin=no Running cygwin? (Default: no)],
+[
+ AC_MSG_RESULT([$withval])
+ if test $withval != "yes"; then
+ CYGWIN=0
+ else
+ CYGWIN=1
+ fi
+],[
+ CYGWIN=0
+])
+AC_SUBST(CYGWIN)
+
+dnl }}}
+
+dnl {{{
AC_MSG_CHECKING(for php.ini path)
AC_ARG_WITH(inipath,
[ --with-inipath=PATH specify path to php.ini file (default: ./scripts)],