diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2013-03-29 23:44:08 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2013-03-30 13:19:15 +0100 |
commit | a47b20f14284beab2239d5ddfb1fdf870f68fcdc (patch) | |
tree | e6855b8e1748260be4b03f37205207b2009b436c /configure.ac | |
parent | adde1d4cd3b7bfdd9ed523ad9e0c81f1ca5f6de5 (diff) |
Build command-line utilities by default if Python is available
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 47fafd9..4106968 100644 --- a/configure.ac +++ b/configure.ac @@ -60,6 +60,7 @@ AC_PROG_RANLIB AM_PROG_CC_C_O AC_USE_SYSTEM_EXTENSIONS AC_PROG_LN_S +AM_PATH_PYTHON(2.5) # checks for tool to convert docbook to man AC_PATH_PROGS(DOCBOOK2X_MAN, docbook2x-man) @@ -130,8 +131,17 @@ AM_CONDITIONAL([ENABLE_PAM], [test "x$enable_pam" = "xyes"]) AC_MSG_CHECKING([whether to build the command-line utilities]) AC_ARG_ENABLE(utils, AS_HELP_STRING([--enable-utils], - [build the the command-line utilities [[default=disabled]]]),, - [enable_util="no"]) + [build the the command-line utilities @<:@auto@:>@]),, + [enable_utils="auto"]) +if test "x$enable_utils" = "xauto" +then + if test "x$PYTHON" = "x" + then + enable_utils="no" + else + enable_utils="yes" + fi +fi AC_MSG_RESULT($enable_utils) AM_CONDITIONAL([ENABLE_UTILS], [test "x$enable_utils" = "xyes"]) |