From: Alex Rousskov Date: Sat, 7 Jan 2023 00:27:12 +0000 (+0000) Subject: Fix ./configure --enable-poll and --disable-poll (#1228) X-Git-Tag: SQUID_6_0_1~44 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8ff06f2ac49bd12ad67d645224e596379b755447;p=thirdparty%2Fsquid.git Fix ./configure --enable-poll and --disable-poll (#1228) ./configure: line 42685: xyes: command not found ./configure: line 42685: xno: command not found Since commit a1c2236, these options triggered errors messages above, and --enable-poll did not affect syscall selection for the I/O loop: ./configure --enable-poll configure: Using epoll for the IO loop. --- diff --git a/configure.ac b/configure.ac index 635682d08e..2e4c0488a8 100644 --- a/configure.ac +++ b/configure.ac @@ -1706,7 +1706,7 @@ AC_MSG_NOTICE([enabling select syscall for net I/O: ${enable_select:=auto}]) AC_ARG_ENABLE(poll, AS_HELP_STRING([--disable-poll],[Disable poll(2) support.]),[ SQUID_YESNO([$enableval],[--enable-poll]) - AS_IF(["x$enableval" = "xyes"],[squid_opt_io_loop_engine="poll"]) + AS_IF([test "x$enableval" = "xyes"],[squid_opt_io_loop_engine="poll"]) ]) AC_MSG_NOTICE([enabling poll syscall for net I/O: ${enable_poll:=auto}])