From: Jani Taskinen Date: Thu, 12 Jul 2007 11:33:18 +0000 (+0000) Subject: - Fix invalid logic (plus made it possible to pass only integers to this) X-Git-Tag: BEFORE_IMPORT_OF_MYSQLND~187 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c4e5bda83e6dc46e4f6ca6413e9d77a956f2a7f2;p=php - Fix invalid logic (plus made it possible to pass only integers to this) --- diff --git a/configure.in b/configure.in index 81b4bdba63..fe06f78b9c 100644 --- a/configure.in +++ b/configure.in @@ -800,9 +800,13 @@ AC_MSG_CHECKING([how big to make fd sets]) 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