[svn] commit: r2997 - /branches/trac322/configure.ac

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Sep 21 09:39:40 UTC 2010


Author: vorner
Date: Tue Sep 21 09:39:40 2010
New Revision: 2997

Log:
Check for setproctitle, but allow skip

Modified:
    branches/trac322/configure.ac

Modified: branches/trac322/configure.ac
==============================================================================
--- branches/trac322/configure.ac (original)
+++ branches/trac322/configure.ac Tue Sep 21 09:39:40 2010
@@ -39,6 +39,12 @@
   [build programs with static link [[default=no]]]),
   [enable_static_link=yes], [enable_static_link=no])
 AM_CONDITIONAL(USE_STATIC_LINK, test $enable_static_link = yes)
+
+# allow configuring without setproctitle.
+AC_ARG_ENABLE(setproctitle-check,
+AC_HELP_STRING([--disable-setproctitle-check],
+  [do not check for setproctitle module]),
+  setproctitle_check=$enableval, setproctitle_check=yes)
 
 # OS dependent configuration
 SET_ENV_LIBRARY_PATH=no
@@ -153,6 +159,18 @@
 fi
 AC_SUBST(PYTHON_LIB)
 LDFLAGS=$LDFLAGS_SAVED
+
+# Check for the setproctitle module
+if test "$setproctitle_check" = "yes" ; then
+    AC_MSG_CHECKING(for setproctitle module)
+    if "$PYTHON" -c 'import setproctitle' 2>/dev/null ; then
+        AC_MSG_RESULT(ok)
+    else
+        AC_MSG_RESULT(missing)
+        AC_MSG_ERROR([Missing setproctitle module. Either install it or provide --disable-setproctitle-check.
+In that case we will continue, but naming of python processes will not work.])
+    fi
+fi
 
 # TODO: check for _sqlite3.py module
 




More information about the bind10-changes mailing list