Index: trunk/loreley/configure.in |
— | — | @@ -58,7 +58,7 @@ |
59 | 59 | testflag -Wswitch-enum |
60 | 60 | dnl testflag -Wshadow |
61 | 61 | testflag -Wpointer-arith |
62 | | -testflag -Wcast-qual |
| 62 | +#testflag -Wcast-qual |
63 | 63 | testflag -Wcast-align |
64 | 64 | testflag -Wwrite-strings |
65 | 65 | testflag -Wredundant-decls |
— | — | @@ -176,6 +176,14 @@ |
177 | 177 | CPPFLAGS="$CPPFLAGS -I${withval}/include" LDFLAGS="$LDFLAGS -L${withval}/lib"],) |
178 | 178 | AC_ARG_WITH(bdb, AC_HELP_STRING([--with-bdb=PATH],[prefix where Oracle Berkeley DB is installed]),[ |
179 | 179 | CPPFLAGS="$CPPFLAGS -I${withval}/include" LDFLAGS="$LDFLAGS -L${withval}/lib"],) |
| 180 | +solio=no |
| 181 | +AC_ARG_ENABLE(solaris-io, AC_HELP_STRING([--enable-solaris-io],[enable Solaris 10 (or greater) specific I/O mechanism]), |
| 182 | + [ |
| 183 | +if test "$enableval" = "yes"; then |
| 184 | + AC_DEFINE([SOLARIS_IO], [], [Use Solaris-specific I/O mechanism]) |
| 185 | + solio=yes |
| 186 | +fi |
| 187 | +],[]) |
180 | 188 | AC_ARG_ENABLE(allocators, |
181 | 189 | AC_HELP_STRING([--disable-allocators],[disable built-in optimised allocators]), |
182 | 190 | [ |
— | — | @@ -192,7 +200,9 @@ |
193 | 201 | AC_SEARCH_LIBS(sendfile, sendfile) |
194 | 202 | AC_SEARCH_LIBS(zlibVersion, z,,AC_MSG_ERROR([zlib not found])) |
195 | 203 | AC_SEARCH_LIBS(pthread_key_create, pthread) |
196 | | -AC_SEARCH_LIBS(event_add, event,,AC_MSG_ERROR([libevent not found (maybe you need --with-libevent)])) |
| 204 | +if test "$solio" = "no"; then |
| 205 | + AC_SEARCH_LIBS(event_add, event,,AC_MSG_ERROR([libevent not found (maybe you need --with-libevent)])) |
| 206 | +fi |
197 | 207 | AC_SEARCH_LIBS(db_create, db-4.5 db-4.4 db-4.3 db-4.2,,AC_MSG_ERROR([Berkeley DB not found])) |
198 | 208 | |
199 | 209 | AC_CHECK_TYPES([u_int8_t, u_int16_t, u_int32_t, u_int64_t]) |