aboutsummaryrefslogtreecommitdiffstats
path: root/SConstruct
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2005-12-26 19:20:47 +0100
committerVincent Richard <[email protected]>2005-12-26 19:20:47 +0100
commit69e0083549f8dcc986f31d83541bd214c1c22f08 (patch)
tree112bfc048edb07f88bbfa093bc5969cd798cdd90 /SConstruct
parentFixed typo causing infinite loop. (diff)
downloadvmime-69e0083549f8dcc986f31d83541bd214c1c22f08.tar.gz
vmime-69e0083549f8dcc986f31d83541bd214c1c22f08.zip
Added support for getaddrinfo() on POSIX.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct11
1 files changed, 11 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 01e293d0..dd7847fb 100644
--- a/SConstruct
+++ b/SConstruct
@@ -827,6 +827,10 @@ if IsProtocolSupported(messaging_protocols, 'sendmail'):
config_hpp.write("""
+// Additional defines
+#define VMIME_HAVE_GETADDRINFO 1
+
+
#endif // VMIME_CONFIG_HPP_INCLUDED
""")
@@ -1661,10 +1665,17 @@ AC_PATH_PROG(SENDMAIL, sendmail, /usr/sbin/sendmail, /usr/sbin:/usr/lib)
# Detect some platform-specific stuff
#
+# -- MLang (Windows)
if test "x$VMIME_DETECT_PLATFORM" = "xwindows"; then
AC_CHECK_HEADER(mlang.h, [VMIME_ADDITIONAL_DEFINES="$VMIME_ADDITIONAL_DEFINES HAVE_MLANG_H"])
fi
+# -- getaddrinfo (POSIX)
+if test "x$VMIME_DETECT_PLATFORM" = "xposix"; then
+ AC_CHECK_HEADERS(netdb.h sys/types.h sys/socket.h,)
+ AC_CHECK_FUNC(getaddrinfo, [VMIME_ADDITIONAL_DEFINES="$VMIME_ADDITIONAL_DEFINES HAVE_GETADDRINFO"])
+fi
+
""")