From: jrun Date: Fri, 18 Mar 2016 17:42:22 +0000 (-0400) Subject: build without any network module X-Git-Tag: neomutt-20160404~12^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa0ea1f477da71991fcfcce2dcf5b461b84fc039;p=neomutt build without any network module --- diff --git a/version.c b/version.c index 61ee8e34e..0b9677c8d 100644 --- 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