]> granicus.if.org Git - neomutt/commitdiff
build without any network module
authorjrun <darwinskernel@gmail.com>
Fri, 18 Mar 2016 17:42:22 +0000 (13:42 -0400)
committerRichard Russon <rich@flatcap.org>
Mon, 4 Apr 2016 02:33:19 +0000 (03:33 +0100)
version.c

index 61ee8e34e125025614a5ceed8bb07f6f800d6f4e..0b9677c8dd89eb4e441cd0f022944ff7336c9e67 100644 (file)
--- a/version.c
+++ b/version.c
@@ -163,9 +163,21 @@ static struct compile_options comp_opts[] = {
 #else
        { "HAVE_CURS_SET", 0 },
 #endif
-       { "HAVE_GETADDRINFO", HAVE_GETADDRINFO },
-       { "HAVE_GETSID",      HAVE_GETSID      },
-       { "HAVE_ICONV",       HAVE_ICONV       },
+#ifdef HAVE_GETADDRINFO
+       { "HAVE_GETADDRINFO", 1 },
+#else
+       { "HAVE_GETADDRINFO", 0 },
+#endif
+#ifdef HAVE_GETSID
+       { "HAVE_GETSID", 1 },
+#else
+       { "HAVE_GETSID", 0 },
+#endif
+#ifdef HAVE_ICONV
+       { "HAVE_ICONV", 1 },
+#else
+       { "HAVE_ICONV", 0 },
+#endif
 #ifdef HAVE_LANGINFO_CODESET
        { "HAVE_LANGINFO_CODESET", 1 },
 #else
@@ -176,7 +188,11 @@ static struct compile_options comp_opts[] = {
 #else
        { "HAVE_LANGINFO_YESEXPR", 0 },
 #endif
-       { "HAVE_LIBIDN", HAVE_LIBIDN },
+#ifdef HAVE_LIBIDN
+       { "HAVE_LIBIDN", 1 },
+#else
+       { "HAVE_LIBIDN", 0 },
+#endif
 #ifdef HAVE_META
        { "HAVE_META", 1 },
 #else
@@ -207,7 +223,11 @@ static struct compile_options comp_opts[] = {
 #else
        { "HAVE_WC_FUNCS", 0 },
 #endif
-       { "ICONV_NONTRANS", ICONV_NONTRANS },
+#ifdef ICONV_NONTRANS
+       { "ICONV_NONTRANS", 1 },
+#else
+       { "ICONV_NONTRANS", 0 },
+#endif
 #ifdef USE_DOTLOCK
        { "USE_DOTLOCK", 1 },
 #else
@@ -233,7 +253,11 @@ static struct compile_options comp_opts[] = {
 #else
        { "USE_GSS", 0 },
 #endif
-       { "USE_HCACHE", USE_HCACHE },
+#ifdef USE_HCACHE
+       { "USE_HCACHE", 1 },
+#else
+       { "USE_HCACHE", 0 },
+#endif
 #ifdef USE_IMAP
        { "USE_IMAP", 1 },
 #else