aboutsummaryrefslogtreecommitdiffstats
path: root/SConstruct
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2005-04-18 21:55:58 +0200
committerVincent Richard <[email protected]>2005-04-18 21:55:58 +0200
commit49fee23e26cff90d6c1e0234be7216dbf4900e08 (patch)
treeed2e0bc04ed6f39197fecba05541307cdca0cdb4 /SConstruct
parentFixed bugs in URLs + added unit tests. (diff)
downloadvmime-49fee23e26cff90d6c1e0234be7216dbf4900e08.tar.gz
vmime-49fee23e26cff90d6c1e0234be7216dbf4900e08.zip
Fixed getLocaleCharset() in Windows platform handler, when MLang is not present.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct27
1 files changed, 25 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct
index 11443e9c..40bcdb2b 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1124,6 +1124,8 @@ AM_CONFIG_HEADER([config.h])
AM_MAINTAINER_MODE
+VMIME_ADDITIONAL_DEFINES=""
+
#
# Check compilers, processors, etc
@@ -1429,6 +1431,16 @@ x*)
;;
esac
+
+#
+# Detect some platform-specific stuff
+#
+
+if test "x$VMIME_DETECT_PLATFORM" = "xwindows"; then
+ AC_CHECK_HEADER(mlang.h, [VMIME_ADDITIONAL_DEFINES="$VMIME_ADDITIONAL_DEFINES HAVE_MLANG_H"])
+fi
+
+
""")
@@ -1615,10 +1627,21 @@ typedef unsigned ${VMIME_TYPE_INT32} vmime_uint32;
+ " $VMIME_BUILTIN_PLATFORM_" + p + " \n")
configure_in.write("""
-
-#endif // VMIME_CONFIG_HPP_INCLUDED
" > vmime/config.hpp
+
+# Additional defines
+echo "// Additional defines" >> vmime/config.hpp
+
+for d in $VMIME_ADDITIONAL_DEFINES ; do
+ echo "#define VMIME_$d 1" >> vmime/config.hpp
+done
+
+
+echo "" >> vmime/config.hpp
+echo "#endif // VMIME_CONFIG_HPP_INCLUDED" >> vmime/config.hpp
+
+
AC_MSG_RESULT([
+=================+
| CONFIGURATION |