cvs: php-src(PHP_5_2) / configure.in
| From: | Jani Taskinen | Date: | Thu, 12 Jul 2007 11:33:38 +0000 |
| Subject: | cvs: php-src(PHP_5_2) / configure.in | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-45285@lists.php.net to get a copy of this message | ||
jani Thu Jul 12 11:33:38 2007 UTC
Modified files: (Branch: PHP_5_2)
/php-src configure.in
Log:
MFH: fix invalid logic + prevent non-integers to be passed
http://cvs.php.net/viewvc.cgi/php-src/configure.in?r1=1.579.2.52.2.64&r2=1.579.2.52.2.65&diff_format=u
Index: php-src/configure.in
diff -u php-src/configure.in:1.579.2.52.2.64 php-src/configure.in:1.579.2.52.2.65
--- php-src/configure.in:1.579.2.52.2.64 Wed Jul 11 23:20:36 2007
+++ php-src/configure.in Thu Jul 12 11:33:37 2007
@@ -1,4 +1,4 @@
-## $Id: configure.in,v 1.579.2.52.2.64 2007/07/11 23:20:36 jani Exp $ -*- autoconf -*-
+## $Id: configure.in,v 1.579.2.52.2.65 2007/07/12 11:33:37 jani Exp $ -*- autoconf -*-
dnl ## Process this file with autoconf to produce a configure script.
divert(1)
@@ -832,9 +832,13 @@
PHP_ARG_ENABLE(fd-setsize,,
[ --enable-fd-setsize Set size of descriptor sets], no, no)
-if test "$PHP_FD_SETSIZE" != "yes"; then
- CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=$PHP_FD_SETSIZE"
- AC_MSG_RESULT([using $PHP_FD_SETSIZE])
+if test "$PHP_FD_SETSIZE" != "no"; then
+ if test "0$PHP_FD_SETSIZE" -gt 0 2>/dev/null; then
+ CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=$PHP_FD_SETSIZE"
+ AC_MSG_RESULT([using $PHP_FD_SETSIZE])
+ else
+ AC_MSG_ERROR([Invalid value passed to --enable-fd-setsize!])
+ fi
else
AC_MSG_RESULT([using system default])
fi