r19336 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r19335‎ | r19336 | r19337 >
Date:14:03, 16 January 2007
Author:river
Status:old
Tags:
Comment:
-Wcast-qual causes warnings in boost
Modified paths:
  • /trunk/loreley/configure.in (modified) (history)

Diff [purge]

Index: trunk/loreley/configure.in
@@ -58,7 +58,7 @@
5959 testflag -Wswitch-enum
6060 dnl testflag -Wshadow
6161 testflag -Wpointer-arith
62 -testflag -Wcast-qual
 62+#testflag -Wcast-qual
6363 testflag -Wcast-align
6464 testflag -Wwrite-strings
6565 testflag -Wredundant-decls
@@ -176,6 +176,14 @@
177177 CPPFLAGS="$CPPFLAGS -I${withval}/include" LDFLAGS="$LDFLAGS -L${withval}/lib"],)
178178 AC_ARG_WITH(bdb, AC_HELP_STRING([--with-bdb=PATH],[prefix where Oracle Berkeley DB is installed]),[
179179 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+],[])
180188 AC_ARG_ENABLE(allocators,
181189 AC_HELP_STRING([--disable-allocators],[disable built-in optimised allocators]),
182190 [
@@ -192,7 +200,9 @@
193201 AC_SEARCH_LIBS(sendfile, sendfile)
194202 AC_SEARCH_LIBS(zlibVersion, z,,AC_MSG_ERROR([zlib not found]))
195203 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
197207 AC_SEARCH_LIBS(db_create, db-4.5 db-4.4 db-4.3 db-4.2,,AC_MSG_ERROR([Berkeley DB not found]))
198208
199209 AC_CHECK_TYPES([u_int8_t, u_int16_t, u_int32_t, u_int64_t])