summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-08-05 18:14:38 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-08-05 18:14:38 +0000
commit58800d9d604d9aa36fed3f3a4eaddaacc6857877 (patch)
tree3241a49683514ff0c03e50bc16483958e41a652b
parent1828eee6a6d91fd385ad1e69d93044516493aa91 (diff)
downloadmana-58800d9d604d9aa36fed3f3a4eaddaacc6857877.tar.gz
mana-58800d9d604d9aa36fed3f3a4eaddaacc6857877.tar.bz2
mana-58800d9d604d9aa36fed3f3a4eaddaacc6857877.tar.xz
mana-58800d9d604d9aa36fed3f3a4eaddaacc6857877.zip
Do not include config.h when the program has not been configured.
-rw-r--r--src/Makefile.am1
-rw-r--r--src/resources/gettext.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 42b9d262..b3142582 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -307,5 +307,6 @@ tmw_SOURCES = gui/widgets/dropdown.cpp \
# set the include path found by configure
INCLUDES = \
$(all_includes) \
+ -DHAS_CONFIG_H \
-DTMW_DATADIR=\""$(pkgdatadir)/"\" \
-DLOCALEDIR=\""$(localedir)"\"
diff --git a/src/resources/gettext.h b/src/resources/gettext.h
index 4b893a6f..9abb5771 100644
--- a/src/resources/gettext.h
+++ b/src/resources/gettext.h
@@ -24,7 +24,9 @@
#ifndef _TMW_RESOURCES_GETTEXT_H
#define _TMW_RESOURCES_GETTEXT_H
+#ifdef HAS_CONFIG_H
#include "../../config.h"
+#endif
#if ENABLE_NLS