summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormandyke <mandyke@gmail.com>2014-03-03 05:18:21 +0000
committermandyke <mandyke@gmail.com>2014-03-03 05:18:21 +0000
commitbe166dc858c9ecde202bbc81f4cc7cf9a375dab2 (patch)
tree8dc959eb268eaa821f528a6d32a41bf3ebd86467
parente2423bf9aa42e84cc5bc96aa9a29cf9d9544d3c4 (diff)
downloaddistcc-git-be166dc858c9ecde202bbc81f4cc7cf9a375dab2.tar.gz
Fix logic with --disable-rfc2553
Passing the above option to configure should not cause ENABLE_RFC2553 to be defined. Fixes issue 68
-rw-r--r--configure.ac7
1 files changed, 5 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 8c57daa..8b18122 100644
--- a/configure.ac
+++ b/configure.ac
@@ -86,9 +86,12 @@ AC_ARG_WITH(included-popt,
AC_HELP_STRING([--with-included-popt], [use bundled popt library, not from system]))
AC_ARG_ENABLE(rfc2553,
- AC_HELP_STRING([--enable-rfc2553], [use getaddrinfo, getnameinfo, etc]),
- AC_DEFINE(ENABLE_RFC2553,1,[Use getaddrinfo(), getnameinfo(), etc]))
+ AC_HELP_STRING([--enable-rfc2553], [use getaddrinfo, getnameinfo, etc]))
+if test x"$enable_rfc2553" = xyes
+then
+ AC_DEFINE(ENABLE_RFC2553,1,[use getaddrinfo(), getnameinfo(), etc])
+fi
AC_ARG_WITH(gnome,
AC_HELP_STRING([--with-gnome], [build GNOME-based monitor]))