summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclutton <clutton@zoho.com>2016-05-03 02:40:29 +0300
committerclutton <clutton@zoho.com>2016-05-03 02:40:29 +0300
commitd8b18df3e9dcbe4f092bed565835d3975e99432c (patch)
tree748184d12c835cca1994c1c10300ee18d33527da
parent544904cdc835ed010cb2ccded3e996b6618fb6bd (diff)
downloaddistcc-git-3.2.tar.gz
3.2 to go3.2
-rw-r--r--configure.ac45
1 files changed, 14 insertions, 31 deletions
diff --git a/configure.ac b/configure.ac
index cd5fdd1..f52e01f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -9,11 +9,10 @@ dnl Process this file with autoconf to produce a configure script
# Copyright (C) 2002, 2003, 2004 by Martin Pool
# As of 0.6cvs, distcc no longer uses automake, only autoconf.
-AC_PREREQ(2.53)
-AC_INIT(distcc, 3.2rc1, distcc@lists.samba.org)
+AC_PREREQ(2.69)
+AC_INIT(distcc, 3.2, distcc@lists.samba.org)
AC_CONFIG_HEADERS(src/config.h)
-AC_CANONICAL_HOST
# FreeBSD installs its version of libpopt into /usr/local/, but does
# not put that on the default library and header path.
@@ -23,25 +22,6 @@ AC_CANONICAL_HOST
# either set CPPFLAGS and LDFLAGS when running configure, or use
# --with-extra-foo.
-##### defaults
-
-dnl --with-docdir
-AC_DEFUN([DISTCC_WITH_DOCDIR],
-[AC_ARG_WITH(docdir,
- AC_HELP_STRING([--with-docdir=DIR],
- [Use DIR to store documentation files (default ${datadir}/doc/distcc)]),
- [with_docdir=$withval])
-if test "x$with_docdir" = "x" ; then
- docdir='${datadir}/doc/distcc'
-else
- docdir=$with_docdir
-fi
-AC_SUBST(docdir)
-])
-
-dnl Run the check for --with-docdir
-DISTCC_WITH_DOCDIR
-
# Check for socklen_t, and do something appropiate on systems
# that don't have it.
AC_CHECK_TYPE([socklen_t], ,[
@@ -85,6 +65,18 @@ getpeername(0,0,&len);
AC_ARG_WITH(included-popt,
AC_HELP_STRING([--with-included-popt], [use bundled popt library, not from system]))
+AC_ARG_ENABLE(pump-mode,
+ AC_HELP_STRING([--disable-pump-mode],
+ [include server support (pump mode), requires python]),
+ [pump_mode=${enableval}], [pump_mode=yes])
+
+# We prefer to use the latest Python
+if test "x${pump_mode}" = xyes; then
+ AM_PATH_PYTHON([3.1],,[:])
+ AC_ARG_VAR(PYTHON, [Python interpreter])
+ AC_SUBST(PYTHON_RELATIVE_LIB)
+fi
+
AC_ARG_ENABLE(rfc2553,
AC_HELP_STRING([--enable-rfc2553], [use getaddrinfo, getnameinfo, etc]))
@@ -238,14 +230,6 @@ CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
AC_PROG_MAKE_SET
AC_PROG_INSTALL
-
-# We prefer to use the latest Python
-#
-# NB: Cannot use AC_CONFIG_LIBOBJ_DIR here, because it's not present
-# in autoconf 2.53.
-AM_PATH_PYTHON([3.1],,[:])
-AC_ARG_VAR(PYTHON, [Python interpreter])
-AC_SUBST(PYTHON_RELATIVE_LIB)
AC_C_INLINE
AC_C_BIGENDIAN
@@ -523,7 +507,6 @@ CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
CC="$PTHREAD_CC"
dnl ##### Output
-AC_SUBST(docdir)
AC_SUBST(CFLAGS)
AC_SUBST(LDFLAGS)
AC_SUBST(CPPFLAGS)