[sword-svn] r2008 - trunk
dglassey at www.crosswire.org
dglassey at www.crosswire.org
Sat Nov 25 14:17:33 MST 2006
Author: dglassey
Date: 2006-11-25 14:17:33 -0700 (Sat, 25 Nov 2006)
New Revision: 2008
Modified:
trunk/configure.ac
Log:
add --enable-warnings to build with warnings as errors
fixes for clucene detection
Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac 2006-11-25 21:16:31 UTC (rev 2007)
+++ trunk/configure.ac 2006-11-25 21:17:33 UTC (rev 2008)
@@ -58,6 +58,8 @@
# ---------------------------------------------------------------------
AC_ARG_ENABLE(debug,
AC_HELP_STRING([--enable-debug],[build debug library (default=no)]),,enable_debug=no)
+AC_ARG_ENABLE(warnings,
+ AC_HELP_STRING([--enable-warnings],[build with compiler warnings as errors (default=no)]),,enable_warnings=no)
AC_ARG_ENABLE(profile,
AC_HELP_STRING([--enable-profile],[allow profiling (default=no)]),,enable_profile=no)
AC_ARG_ENABLE(profilefn,
@@ -160,14 +162,17 @@
else
AM_CFLAGS="-O2"
AM_CXXFLAGS="-O2"
-# AM_CFLAGS="$AM_CFLAGS -Werror"
-# AM_CXXFLAGS="$AM_CXXFLAGS -Werror"
fi
# AC_DEFINE(DEBUG)
#else
# AC_DEFINE(NDEBUG)
#fi
+if test x$enable_warnings = xyes; then
+ AM_CFLAGS="$AM_CFLAGS -Werror"
+ AM_CXXFLAGS="$AM_CXXFLAGS -Werror"
+fi
+
if test x$enable_profile = xyes; then
AM_CFLAGS="$AM_CFLAGS -pg"
AM_CXXFLAGS="$AM_CXXFLAGS -pg"
@@ -204,14 +209,15 @@
# Check for clucene for lucene searching support
# ---------------------------------------------------------------------
-#FIXME: always make lucene available without checking for lib and headers
-if test x$with_clucene = xyes; then
+use_clucene=
+if test -z "$with_clucene"; then
echo "lucene found - lucene searching options available"
-# LUCENE_AM_CFLAGS=""
-# LUCENE_LIBS="-lclucene"
AM_CXXFLAGS="$AM_CXXFLAGS $CLUCENE_CXXFLAGS -DUSELUCENE"
AM_CFLAGS="$AM_CFLAGS -DUSELUCENE"
LIBS="$LIBS $CLUCENE_LIBS"
+ use_clucene="yes"
+else
+ echo "lucene searching options not available"
fi
@@ -259,7 +265,7 @@
# ---------------------------------------------------------------------
AM_CONDITIONAL(MINGW, test x$target_mingw32 = xyes)
AM_CONDITIONAL(ICU, test x$with_icu = xyes)
-AM_CONDITIONAL(USELUCENE, test x$with_clucene = xyes)
+AM_CONDITIONAL(USELUCENE, test x$use_clucene = xyes)
AM_CONDITIONAL(ICUSWORD, test x$with_icu = xsword)
AM_CONDITIONAL(ZLIB, test x$with_zlib = xyes)
AM_CONDITIONAL(INSTCONF, test x$with_conf = xyes)
More information about the sword-cvs
mailing list