jani Thu Jul 12 11:33:18 2007 UTC
Modified files:
/php-src configure.in
Log:
- Fix invalid logic (plus made it possible to pass only integers to this)
http://cvs.php.net/viewvc.cgi/php-src/configure.in?r1=1.634&r2=1.635&diff_format=u
Index: php-src/configure.in
diff -u php-src/configure.in:1.634 php-src/configure.in:1.635
--- php-src/configure.in:1.634 Wed Jul 11 23:13:19 2007
+++ php-src/configure.in Thu Jul 12 11:33:18 2007
@@ -1,4 +1,4 @@
-## $Id: configure.in,v 1.634 2007/07/11 23:13:19 jani Exp $ -*- autoconf -*-
+## $Id: configure.in,v 1.635 2007/07/12 11:33:18 jani Exp $ -*- autoconf -*-
dnl ## Process this file with autoconf to produce a configure script.
divert(1)
@@ -800,9 +800,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
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php