From 9c99d420b7adf0c1a82115f3e70a633f80ae8260 Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 25 Jul 2006 16:35:37 +0000 Subject: Moved the ETC and PIXMAPS symbols to config.h. Moved the ETC and PIXMAPS symbols to config.h. Moved the ETC and PIXMAPS symbols to config.h. Moved the ETC and PIXMAPS symbols to config.h. --- configure.in | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 82906fb..3c77551 100644 --- a/configure.in +++ b/configure.in @@ -9,10 +9,29 @@ AM_PROG_LIBTOOL AM_CONFIG_HEADER(config.h) AC_STDC_HEADERS -CXXFLAGS="$CXXFLAGS -Wall -Werror" + +CXXFLAGS="$CXXFLAGS -I../lib" +LDFLAGS="$LDFLAGS -L../lib" AC_OUTPUT(lib/Makefile) +AC_DEFINE_UNQUOTED(ETC, "$prefix/etc/miav", [The path to the config files]) +AC_DEFINE_UNQUOTED(PIXMAPS, "$prefix/share/pixmaps", [The path to the pixmap files]) + +AC_ARG_WITH(debug, [ --with-debug Build with debugging (-g -Wall -Werror and -lefence)]) +if test x$with_debug != xno && test -z "$DEBUG"; then + CXXFLAGS="$CXXFLAGS -g -Wall -Werror" + + dnl ===================== + dnl Check for efence library + dnl ===================== +# AC_CHECK_LIB(efence, malloc, , AC_MSG_ERROR([*** The electric fence library (libefence.a) was not found!])) +# LDFLAGS="$LDFLAGS -lefence" + + dnl Make code aware of debug + AC_DEFINE([USE_DEBUG], [], [Is defined if the project is configured to compile with debugging]) +fi + AC_ARG_WITH(client, [ --without-client Build without client support]) if test x$with_client != xno && test -z "$CLIENT"; then CLIENT_DIR=client -- cgit v1.2.3