5345
if test "x${genman}" = "xno"
5347
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: docbook2x-man not found: not (re)generating man pages" >&5
5348
$as_echo "$as_me: WARNING: docbook2x-man not found: not (re)generating man pages" >&2;}
5351
# check whether to install manual pages
5352
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install man pages" >&5
5353
$as_echo_n "checking whether to install man pages... " >&6; }
5355
if test "x${genman}" != "xno" || ls "${srcdir}/man/"*.? > /dev/null 2>&1
5359
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $instman" >&5
5360
$as_echo "$instman" >&6; }
5361
if test "x${instman}" != "xno"; then
5369
if test "x${instman}" = "xno"
5371
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: not installing man pages (no generator and not pre-generated)" >&5
5372
$as_echo "$as_me: WARNING: not installing man pages (no generator and not pre-generated)" >&2;}
5375
# check for Python and modules
5382
if test -n "$PYTHON"; then
5383
# If the user set $PYTHON, use it and don't search something else.
5384
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5385
$as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5387
# split strings by '.' and convert to numeric. Append some zeros
5388
# because we need at least 4 digits for the hex conversion.
5389
# map returns an iterator in Python 3.0 and a list in 2.x
5390
minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5392
# xrange is not present in Python 3.0 and range returns an iterator
5393
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5394
sys.exit(sys.hexversion < minverhex)"
5395
if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5396
($PYTHON -c "$prog") >&5 2>&5
5398
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399
(exit $ac_status); }; then :
5400
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5401
$as_echo "yes" >&6; }
5403
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5404
$as_echo "no" >&6; }
5405
as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5407
am_display_PYTHON=$PYTHON
5409
# Otherwise, try each interpreter until we find one that satisfies
5411
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5412
$as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5413
if ${am_cv_pathless_PYTHON+:} false; then :
5414
$as_echo_n "(cached) " >&6
5417
for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
5418
test "$am_cv_pathless_PYTHON" = none && break
5420
# split strings by '.' and convert to numeric. Append some zeros
5421
# because we need at least 4 digits for the hex conversion.
5422
# map returns an iterator in Python 3.0 and a list in 2.x
5423
minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5425
# xrange is not present in Python 3.0 and range returns an iterator
5426
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5427
sys.exit(sys.hexversion < minverhex)"
5428
if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5429
($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5431
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432
(exit $ac_status); }; then :
5437
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5438
$as_echo "$am_cv_pathless_PYTHON" >&6; }
5439
# Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5440
if test "$am_cv_pathless_PYTHON" = none; then
5443
# Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5444
set dummy $am_cv_pathless_PYTHON; ac_word=$2
5445
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5446
$as_echo_n "checking for $ac_word... " >&6; }
5447
if ${ac_cv_path_PYTHON+:} false; then :
5448
$as_echo_n "(cached) " >&6
5452
ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5455
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459
test -z "$as_dir" && as_dir=.
5460
for ac_exec_ext in '' $ac_executable_extensions; do
5461
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5462
ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5463
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5473
PYTHON=$ac_cv_path_PYTHON
5474
if test -n "$PYTHON"; then
5475
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5476
$as_echo "$PYTHON" >&6; }
5478
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479
$as_echo "no" >&6; }
5484
am_display_PYTHON=$am_cv_pathless_PYTHON
5488
if test "$PYTHON" = :; then
5493
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5494
$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5495
if ${am_cv_python_version+:} false; then :
5496
$as_echo_n "(cached) " >&6
5498
am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5500
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5501
$as_echo "$am_cv_python_version" >&6; }
5502
PYTHON_VERSION=$am_cv_python_version
5506
PYTHON_PREFIX='${prefix}'
5508
PYTHON_EXEC_PREFIX='${exec_prefix}'
5512
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5513
$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5514
if ${am_cv_python_platform+:} false; then :
5515
$as_echo_n "(cached) " >&6
5517
am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5519
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5520
$as_echo "$am_cv_python_platform" >&6; }
5521
PYTHON_PLATFORM=$am_cv_python_platform
5524
# Just factor out some code duplication.
5525
am_python_setup_sysconfig="\
5527
# Prefer sysconfig over distutils.sysconfig, for better compatibility
5528
# with python 3.x. See automake bug#10227.
5532
can_use_sysconfig = 0
5534
can_use_sysconfig = 1
5535
# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5536
# <https://github.com/pypa/virtualenv/issues/118>
5538
from platform import python_implementation
5539
if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5540
can_use_sysconfig = 0
5545
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5546
$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5547
if ${am_cv_python_pythondir+:} false; then :
5548
$as_echo_n "(cached) " >&6
5550
if test "x$prefix" = xNONE
5552
am_py_prefix=$ac_default_prefix
5554
am_py_prefix=$prefix
5556
am_cv_python_pythondir=`$PYTHON -c "
5557
$am_python_setup_sysconfig
5558
if can_use_sysconfig:
5559
sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5561
from distutils import sysconfig
5562
sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5563
sys.stdout.write(sitedir)"`
5564
case $am_cv_python_pythondir in
5566
am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5567
am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5570
case $am_py_prefix in
5573
am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5580
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5581
$as_echo "$am_cv_python_pythondir" >&6; }
5582
pythondir=$am_cv_python_pythondir
5586
pkgpythondir=\${pythondir}/$PACKAGE
5589
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5590
$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5591
if ${am_cv_python_pyexecdir+:} false; then :
5592
$as_echo_n "(cached) " >&6
5594
if test "x$exec_prefix" = xNONE
5596
am_py_exec_prefix=$am_py_prefix
5598
am_py_exec_prefix=$exec_prefix
5600
am_cv_python_pyexecdir=`$PYTHON -c "
5601
$am_python_setup_sysconfig
5602
if can_use_sysconfig:
5603
sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
5605
from distutils import sysconfig
5606
sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
5607
sys.stdout.write(sitedir)"`
5608
case $am_cv_python_pyexecdir in
5609
$am_py_exec_prefix*)
5610
am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
5611
am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
5614
case $am_py_exec_prefix in
5617
am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
5624
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5625
$as_echo "$am_cv_python_pyexecdir" >&6; }
5626
pyexecdir=$am_cv_python_pyexecdir
5630
pkgpyexecdir=\${pyexecdir}/$PACKAGE
5637
if test "$PYTHON" != ":"; then
5639
HAVE_PYTHON_FALSE='#'
5641
HAVE_PYTHON_TRUE='#'
5645
if test "x$PYTHON" != "x:"
5652
PYTHON_NAME=`basename $PYTHON`
5653
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: argparse" >&5
5654
$as_echo_n "checking $PYTHON_NAME module: argparse... " >&6; }
5655
$PYTHON -c "import argparse" 2>/dev/null
5658
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5659
$as_echo "yes" >&6; }
5660
eval HAVE_PYMOD_ARGPARSE=yes
5662
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663
$as_echo "no" >&6; }
5664
eval HAVE_PYMOD_ARGPARSE=no
5668
as_fn_error $? "failed to find required module argparse" "$LINENO" 5
5334
5675
# check for debugging options
5335
5676
# Check whether --enable-debug was given.
6599
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
6600
$as_echo_n "checking for library containing clock_gettime... " >&6; }
6601
if ${ac_cv_search_clock_gettime+:} false; then :
6602
$as_echo_n "(cached) " >&6
6604
ac_func_search_save_LIBS=$LIBS
6605
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6606
/* end confdefs.h. */
6608
/* Override any GCC internal prototype to avoid an error.
6609
Use char because int might match the return type of a GCC
6610
builtin and then its argument prototype would still apply. */
6614
char clock_gettime ();
6618
return clock_gettime ();
6623
for ac_lib in '' rt; do
6624
if test -z "$ac_lib"; then
6625
ac_res="none required"
6628
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6630
if ac_fn_c_try_link "$LINENO"; then :
6631
ac_cv_search_clock_gettime=$ac_res
6633
rm -f core conftest.err conftest.$ac_objext \
6635
if ${ac_cv_search_clock_gettime+:} false; then :
6639
if ${ac_cv_search_clock_gettime+:} false; then :
6642
ac_cv_search_clock_gettime=no
6645
LIBS=$ac_func_search_save_LIBS
6647
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
6648
$as_echo "$ac_cv_search_clock_gettime" >&6; }
6649
ac_res=$ac_cv_search_clock_gettime
6650
if test "$ac_res" != no; then :
6651
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6655
for ac_func in setusershell getusershell endusershell getgrouplist
6657
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6658
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6659
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6660
cat >>confdefs.h <<_ACEOF
6661
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6667
ac_fn_c_check_decl "$LINENO" "setusershell" "ac_cv_have_decl_setusershell" "$ac_includes_default"
6668
if test "x$ac_cv_have_decl_setusershell" = xyes; then :
6674
cat >>confdefs.h <<_ACEOF
6675
#define HAVE_DECL_SETUSERSHELL $ac_have_decl
6677
ac_fn_c_check_decl "$LINENO" "getusershell" "ac_cv_have_decl_getusershell" "$ac_includes_default"
6678
if test "x$ac_cv_have_decl_getusershell" = xyes; then :
6684
cat >>confdefs.h <<_ACEOF
6685
#define HAVE_DECL_GETUSERSHELL $ac_have_decl
6687
ac_fn_c_check_decl "$LINENO" "endusershell" "ac_cv_have_decl_endusershell" "$ac_includes_default"
6688
if test "x$ac_cv_have_decl_endusershell" = xyes; then :
6694
cat >>confdefs.h <<_ACEOF
6695
#define HAVE_DECL_ENDUSERSHELL $ac_have_decl
6229
6699
# checks for types
6230
6700
ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
7609
# check argument type of pam_get_item()
7610
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking argument type of pam_get_item" >&5
7611
$as_echo_n "checking argument type of pam_get_item... " >&6; }
7612
if ${nss_pam_ldapd_cv_pam_get_item_arg3_type+:} false; then :
7613
$as_echo_n "(cached) " >&6
7615
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7616
/* end confdefs.h. */
7618
#ifdef HAVE_SECURITY_PAM_APPL_H
7619
#include <security/pam_appl.h>
7621
#ifndef HAVE_PAM_PAM_MODULES_H
7622
#include <security/pam_modules.h>
7623
#ifdef HAVE_SECURITY_PAM_EXT_H
7624
#include <security/pam_ext.h>
7627
#include <pam/pam_modules.h>
7629
#ifdef HAVE_SECURITY_PAM_MODUTIL_H
7630
#include <security/pam_modutil.h>
7632
extern int pam_get_item(const pam_handle_t *pamh, int item_type, const void **item);
7642
if ac_fn_c_try_compile "$LINENO"; then :
7643
nss_pam_ldapd_cv_pam_get_item_arg3_type="const void **"
7645
nss_pam_ldapd_cv_pam_get_item_arg3_type="void **"
7647
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7649
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nss_pam_ldapd_cv_pam_get_item_arg3_type" >&5
7650
$as_echo "$nss_pam_ldapd_cv_pam_get_item_arg3_type" >&6; }
7652
if test "$nss_pam_ldapd_cv_pam_get_item_arg3_type" = "const void **"
7654
PAM_ITEM_CONST="const"
7657
cat >>confdefs.h <<_ACEOF
7658
#define PAM_ITEM_CONST $PAM_ITEM_CONST
7084
7662
# restore CFLAGS and LIBS
7085
7663
CFLAGS="$pam_save_CFLAGS"
7086
7664
LIBS="$pam_save_LIBS"
7667
# utils-specific tests
7668
if test "x$enable_utils" = "xyes"
7670
# check Python interpreter
7677
if test -n "$PYTHON"; then
7678
# If the user set $PYTHON, use it and don't search something else.
7679
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
7680
$as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
7682
# split strings by '.' and convert to numeric. Append some zeros
7683
# because we need at least 4 digits for the hex conversion.
7684
# map returns an iterator in Python 3.0 and a list in 2.x
7685
minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
7687
# xrange is not present in Python 3.0 and range returns an iterator
7688
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
7689
sys.exit(sys.hexversion < minverhex)"
7690
if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
7691
($PYTHON -c "$prog") >&5 2>&5
7693
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694
(exit $ac_status); }; then :
7695
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7696
$as_echo "yes" >&6; }
7698
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7699
$as_echo "no" >&6; }
7700
as_fn_error $? "Python interpreter is too old" "$LINENO" 5
7702
am_display_PYTHON=$PYTHON
7704
# Otherwise, try each interpreter until we find one that satisfies
7706
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
7707
$as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
7708
if ${am_cv_pathless_PYTHON+:} false; then :
7709
$as_echo_n "(cached) " >&6
7712
for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
7713
test "$am_cv_pathless_PYTHON" = none && break
7715
# split strings by '.' and convert to numeric. Append some zeros
7716
# because we need at least 4 digits for the hex conversion.
7717
# map returns an iterator in Python 3.0 and a list in 2.x
7718
minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
7720
# xrange is not present in Python 3.0 and range returns an iterator
7721
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
7722
sys.exit(sys.hexversion < minverhex)"
7723
if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
7724
($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
7726
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727
(exit $ac_status); }; then :
7732
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
7733
$as_echo "$am_cv_pathless_PYTHON" >&6; }
7734
# Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
7735
if test "$am_cv_pathless_PYTHON" = none; then
7738
# Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
7739
set dummy $am_cv_pathless_PYTHON; ac_word=$2
7740
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7741
$as_echo_n "checking for $ac_word... " >&6; }
7742
if ${ac_cv_path_PYTHON+:} false; then :
7743
$as_echo_n "(cached) " >&6
7747
ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7750
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754
test -z "$as_dir" && as_dir=.
7755
for ac_exec_ext in '' $ac_executable_extensions; do
7756
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7757
ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7758
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7768
PYTHON=$ac_cv_path_PYTHON
7769
if test -n "$PYTHON"; then
7770
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7771
$as_echo "$PYTHON" >&6; }
7773
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7774
$as_echo "no" >&6; }
7779
am_display_PYTHON=$am_cv_pathless_PYTHON
7783
if test "$PYTHON" = :; then
7784
as_fn_error $? "Python is required" "$LINENO" 5
7788
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
7789
$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
7790
if ${am_cv_python_version+:} false; then :
7791
$as_echo_n "(cached) " >&6
7793
am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
7795
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
7796
$as_echo "$am_cv_python_version" >&6; }
7797
PYTHON_VERSION=$am_cv_python_version
7801
PYTHON_PREFIX='${prefix}'
7803
PYTHON_EXEC_PREFIX='${exec_prefix}'
7807
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
7808
$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
7809
if ${am_cv_python_platform+:} false; then :
7810
$as_echo_n "(cached) " >&6
7812
am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
7814
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
7815
$as_echo "$am_cv_python_platform" >&6; }
7816
PYTHON_PLATFORM=$am_cv_python_platform
7819
# Just factor out some code duplication.
7820
am_python_setup_sysconfig="\
7822
# Prefer sysconfig over distutils.sysconfig, for better compatibility
7823
# with python 3.x. See automake bug#10227.
7827
can_use_sysconfig = 0
7829
can_use_sysconfig = 1
7830
# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
7831
# <https://github.com/pypa/virtualenv/issues/118>
7833
from platform import python_implementation
7834
if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
7835
can_use_sysconfig = 0
7840
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
7841
$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
7842
if ${am_cv_python_pythondir+:} false; then :
7843
$as_echo_n "(cached) " >&6
7845
if test "x$prefix" = xNONE
7847
am_py_prefix=$ac_default_prefix
7849
am_py_prefix=$prefix
7851
am_cv_python_pythondir=`$PYTHON -c "
7852
$am_python_setup_sysconfig
7853
if can_use_sysconfig:
7854
sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
7856
from distutils import sysconfig
7857
sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
7858
sys.stdout.write(sitedir)"`
7859
case $am_cv_python_pythondir in
7861
am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
7862
am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
7865
case $am_py_prefix in
7868
am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
7875
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
7876
$as_echo "$am_cv_python_pythondir" >&6; }
7877
pythondir=$am_cv_python_pythondir
7881
pkgpythondir=\${pythondir}/$PACKAGE
7884
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
7885
$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
7886
if ${am_cv_python_pyexecdir+:} false; then :
7887
$as_echo_n "(cached) " >&6
7889
if test "x$exec_prefix" = xNONE
7891
am_py_exec_prefix=$am_py_prefix
7893
am_py_exec_prefix=$exec_prefix
7895
am_cv_python_pyexecdir=`$PYTHON -c "
7896
$am_python_setup_sysconfig
7897
if can_use_sysconfig:
7898
sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
7900
from distutils import sysconfig
7901
sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
7902
sys.stdout.write(sitedir)"`
7903
case $am_cv_python_pyexecdir in
7904
$am_py_exec_prefix*)
7905
am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
7906
am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
7909
case $am_py_exec_prefix in
7912
am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
7919
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
7920
$as_echo "$am_cv_python_pyexecdir" >&6; }
7921
pyexecdir=$am_cv_python_pyexecdir
7925
pkgpyexecdir=\${pyexecdir}/$PACKAGE
7937
PYTHON_NAME=`basename $PYTHON`
7938
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: argparse" >&5
7939
$as_echo_n "checking $PYTHON_NAME module: argparse... " >&6; }
7940
$PYTHON -c "import argparse" 2>/dev/null
7943
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7944
$as_echo "yes" >&6; }
7945
eval HAVE_PYMOD_ARGPARSE=yes
7947
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7948
$as_echo "no" >&6; }
7949
eval HAVE_PYMOD_ARGPARSE=no
7953
as_fn_error $? "failed to find required module argparse" "$LINENO" 5
7958
if test "x$HAVE_PYMOD_ARGPARSE" != "xyes"
7960
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Required Python modules missing" >&5
7961
$as_echo "$as_me: WARNING: Required Python modules missing" >&2;}
7089
7965
# nslcd daemon-specific tests
7090
7966
if test "x$enable_nslcd" = "xyes"
9361
# save CFLAGS and LIBS to restore later
9362
krb5_save_CFLAGS="$CFLAGS"
9363
krb5_save_LIBS="$LIBS"
9365
# find library that contains krb5_is_thread_safe
9366
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing krb5_sendauth" >&5
9367
$as_echo_n "checking for library containing krb5_sendauth... " >&6; }
9368
if ${ac_cv_search_krb5_sendauth+:} false; then :
9369
$as_echo_n "(cached) " >&6
9371
ac_func_search_save_LIBS=$LIBS
9372
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9373
/* end confdefs.h. */
9375
/* Override any GCC internal prototype to avoid an error.
9376
Use char because int might match the return type of a GCC
9377
builtin and then its argument prototype would still apply. */
9381
char krb5_sendauth ();
9385
return krb5_sendauth ();
9390
for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
9391
if test -z "$ac_lib"; then
9392
ac_res="none required"
9395
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9397
if ac_fn_c_try_link "$LINENO"; then :
9398
ac_cv_search_krb5_sendauth=$ac_res
9400
rm -f core conftest.err conftest.$ac_objext \
9402
if ${ac_cv_search_krb5_sendauth+:} false; then :
9406
if ${ac_cv_search_krb5_sendauth+:} false; then :
9409
ac_cv_search_krb5_sendauth=no
9412
LIBS=$ac_func_search_save_LIBS
9414
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_krb5_sendauth" >&5
9415
$as_echo "$ac_cv_search_krb5_sendauth" >&6; }
9416
ac_res=$ac_cv_search_krb5_sendauth
9417
if test "$ac_res" != no; then :
9418
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9422
for ac_func in krb5_is_thread_safe
9424
ac_fn_c_check_func "$LINENO" "krb5_is_thread_safe" "ac_cv_func_krb5_is_thread_safe"
9425
if test "x$ac_cv_func_krb5_is_thread_safe" = xyes; then :
9426
cat >>confdefs.h <<_ACEOF
9427
#define HAVE_KRB5_IS_THREAD_SAFE 1
9434
# see if krb5 is thread safe
9435
if test "x$ac_cv_func_krb5_is_thread_safe" == "xyes"
9437
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking krb5 thread safety" >&5
9438
$as_echo_n "checking krb5 thread safety... " >&6; }
9439
if ${nslcd_cv_krb5_is_thread_safe+:} false; then :
9440
$as_echo_n "(cached) " >&6
9442
if test "$cross_compiling" = yes; then :
9443
nslcd_cv_krb5_is_thread_safe=unknown
9445
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9446
/* end confdefs.h. */
9454
if (!krb5_is_thread_safe())
9461
if ac_fn_c_try_run "$LINENO"; then :
9462
nslcd_cv_krb5_is_thread_safe=yes
9464
nslcd_cv_krb5_is_thread_safe=no
9466
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9467
conftest.$ac_objext conftest.beam conftest.$ac_ext
9471
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nslcd_cv_krb5_is_thread_safe" >&5
9472
$as_echo "$nslcd_cv_krb5_is_thread_safe" >&6; }
9473
if test "x$nslcd_cv_krb5_is_thread_safe" == "xno"
9475
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: krb5 is NOT thread safe" >&5
9476
$as_echo "$as_me: WARNING: krb5 is NOT thread safe" >&2;}
9480
# restore CFLAGS and LIBS because we don't directly use krb5
9481
CFLAGS="$krb5_save_CFLAGS"
9482
LIBS="$krb5_save_LIBS"
8572
9486
# check for ldap function availability
8573
for ac_func in ldap_parse_result ldap_memfree ldap_controls_free ldap_control_free
8575
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8576
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8577
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8578
cat >>confdefs.h <<_ACEOF
8579
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8585
for ac_func in ldap_explode_dn ldap_explode_rdn ldap_set_option ldap_get_option
8587
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8588
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8589
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8590
cat >>confdefs.h <<_ACEOF
8591
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8597
for ac_func in ldap_abandon ldap_simple_bind_s ldap_unbind ldap_set_rebind_proc
8599
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8600
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8601
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8602
cat >>confdefs.h <<_ACEOF
8603
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8609
for ac_func in ldap_initialize ldap_search_ext ldap_start_tls_s
8611
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8612
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8613
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8614
cat >>confdefs.h <<_ACEOF
8615
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8621
for ac_func in ldap_create_control ldap_extended_operation_s
9487
for ac_func in ber_bvfree ber_free ber_set_option ber_get_enum
9489
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9490
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9491
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9492
cat >>confdefs.h <<_ACEOF
9493
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9499
for ac_func in ldap_initialize ldap_start_tls_s
9501
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9502
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9503
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9504
cat >>confdefs.h <<_ACEOF
9505
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9511
for ac_func in ldap_get_option ldap_set_option ldap_set_rebind_proc
9513
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9514
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9515
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9516
cat >>confdefs.h <<_ACEOF
9517
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9523
for ac_func in ldap_simple_bind_s ldap_sasl_bind ldap_sasl_bind_s ldap_unbind
9525
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9526
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9527
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9528
cat >>confdefs.h <<_ACEOF
9529
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9535
for ac_func in ldap_search_ext ldap_modify_ext_s ldap_extended_operation_s
9537
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9538
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9539
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9540
cat >>confdefs.h <<_ACEOF
9541
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9547
for ac_func in ldap_explode_dn ldap_explode_rdn
8623
9549
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8624
9550
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8645
for ac_func in ldap_get_values ldap_get_values_len ldap_value_free ldap_value_free_len
8647
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8648
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8649
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8650
cat >>confdefs.h <<_ACEOF
8651
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8657
for ac_func in ldap_get_dn ldap_explode_dn ldap_count_values_len
8659
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8660
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8661
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8662
cat >>confdefs.h <<_ACEOF
8663
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8669
for ac_func in ldap_err2string ldap_msgfree ldap_result
8671
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8672
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8673
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8674
cat >>confdefs.h <<_ACEOF
8675
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8681
for ac_func in ber_bvfree ber_free ber_set_option ldap_modify_ext_s
8683
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8684
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8685
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8686
cat >>confdefs.h <<_ACEOF
8687
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8693
for ac_func in ldap_first_attribute ldap_next_attribute
9571
for ac_func in ldap_result ldap_parse_result ldap_msgfree ldap_memfree
9573
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9574
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9575
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9576
cat >>confdefs.h <<_ACEOF
9577
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9583
for ac_func in ldap_get_dn ldap_first_attribute ldap_next_attribute
9585
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9586
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9587
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9588
cat >>confdefs.h <<_ACEOF
9589
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9595
for ac_func in ldap_get_values ldap_value_free
9597
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9598
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9599
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9600
cat >>confdefs.h <<_ACEOF
9601
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9607
for ac_func in ldap_get_values_len ldap_count_values_len ldap_value_free_len
9609
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9610
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9611
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9612
cat >>confdefs.h <<_ACEOF
9613
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9619
for ac_func in ldap_err2string ldap_abandon
9621
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9622
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9623
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9624
cat >>confdefs.h <<_ACEOF
9625
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9631
for ac_func in ldap_control_create ldap_create_control ldap_control_find
9633
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9634
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9635
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9636
cat >>confdefs.h <<_ACEOF
9637
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9643
for ac_func in ldap_controls_free ldap_control_free ldap_get_entry_controls
9645
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9646
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9647
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9648
cat >>confdefs.h <<_ACEOF
9649
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9655
for ac_func in ldap_parse_passwordpolicy_control ldap_passwordpolicy_err2txt
9657
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9658
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9659
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9660
cat >>confdefs.h <<_ACEOF
9661
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9667
for ac_func in ldap_create_deref_control ldap_create_deref_control_value
9669
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9670
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9671
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9672
cat >>confdefs.h <<_ACEOF
9673
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9679
for ac_func in ldap_parse_deref_control ldap_derefresponse_free
8695
9681
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8696
9682
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9866
# check for broken implementations of ldap_create_deref_control()
9867
if test "x$ac_cv_func_ldap_create_deref_control" = "xyes"
9869
# this bug cannot be determined on compile time so we run a
9870
# small test program
9871
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ldap_create_deref_control() implementation" >&5
9872
$as_echo_n "checking ldap_create_deref_control() implementation... " >&6; }
9873
if ${nslcd_cv_ldap_create_deref_control_working+:} false; then :
9874
$as_echo_n "(cached) " >&6
9876
if test "$cross_compiling" = yes; then :
9877
nslcd_cv_ldap_create_deref_control_working=cross
9879
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9880
/* end confdefs.h. */
9892
LDAPControl *ctrls[2] = {NULL, NULL};
9893
struct LDAPDerefSpec ds[2];
9894
char *attrs[2] = {"uid", NULL};
9895
ld = ldap_init("localhost", LDAP_PORT);
9898
fprintf(stderr, "ldap_init() failed\n");
9901
ds[0].derefAttr = "member";
9902
ds[0].attributes = attrs;
9903
ds[1].derefAttr = NULL;
9904
rc = ldap_create_deref_control(ld, ds, 0, &ctrls[0]);
9905
if (rc != LDAP_SUCCESS)
9907
fprintf(stderr, "ldap_create_deref_control() failed: %s\n",
9908
ldap_err2string(rc));
9911
if (ldap_control_find(LDAP_CONTROL_X_DEREF, ctrls, NULL) != NULL)
9913
if (ldap_control_find(LDAP_CONTROL_PAGEDRESULTS, ctrls, NULL) != NULL)
9915
fprintf(stderr, "ldap_create_deref_control() created LDAP_CONTROL_PAGEDRESULTS control\n");
9918
fprintf(stderr, "ldap_create_deref_control() created unknown control\n");
9925
if ac_fn_c_try_run "$LINENO"; then :
9926
nslcd_cv_ldap_create_deref_control_working=ok
9928
if test "$?" -eq 3; then nslcd_cv_ldap_create_deref_control_working=broken
9929
else nslcd_cv_ldap_create_deref_control_working=unknown; fi
9931
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9932
conftest.$ac_objext conftest.beam conftest.$ac_ext
9936
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nslcd_cv_ldap_create_deref_control_working" >&5
9937
$as_echo "$nslcd_cv_ldap_create_deref_control_working" >&6; }
9938
if test "x$nslcd_cv_ldap_create_deref_control_working" != "xok"
9940
{ $as_echo "$as_me:${as_lineno-$LINENO}: using replacement ldap_create_deref_control()" >&5
9941
$as_echo "$as_me: using replacement ldap_create_deref_control()" >&6;}
9942
case " $LIBOBJS " in
9943
*" derefctrl.$ac_objext "* ) ;;
9944
*) LIBOBJS="$LIBOBJS derefctrl.$ac_objext"
9949
$as_echo "#define REPLACE_LDAP_CREATE_DEREF_CONTROL 1" >>confdefs.h
8852
9954
# save nslcd LIBS and CFLAGS and restore originals
8853
9955
nslcd_CFLAGS="$CFLAGS"
8854
9956
nslcd_LIBS="$LIBS"
10229
if test -z $PYTHON;
10233
PYTHON_NAME=`basename $PYTHON`
10234
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: daemon" >&5
10235
$as_echo_n "checking $PYTHON_NAME module: daemon... " >&6; }
10236
$PYTHON -c "import daemon" 2>/dev/null
10239
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10240
$as_echo "yes" >&6; }
10241
eval HAVE_PYMOD_DAEMON=yes
10243
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10244
$as_echo "no" >&6; }
10245
eval HAVE_PYMOD_DAEMON=no
10249
as_fn_error $? "failed to find required module daemon" "$LINENO" 5
10255
if test -z $PYTHON;
10259
PYTHON_NAME=`basename $PYTHON`
10260
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: fcntl" >&5
10261
$as_echo_n "checking $PYTHON_NAME module: fcntl... " >&6; }
10262
$PYTHON -c "import fcntl" 2>/dev/null
10265
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10266
$as_echo "yes" >&6; }
10267
eval HAVE_PYMOD_FCNTL=yes
10269
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10270
$as_echo "no" >&6; }
10271
eval HAVE_PYMOD_FCNTL=no
10275
as_fn_error $? "failed to find required module fcntl" "$LINENO" 5
10281
if test -z $PYTHON;
10285
PYTHON_NAME=`basename $PYTHON`
10286
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: fnmatch" >&5
10287
$as_echo_n "checking $PYTHON_NAME module: fnmatch... " >&6; }
10288
$PYTHON -c "import fnmatch" 2>/dev/null
10291
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10292
$as_echo "yes" >&6; }
10293
eval HAVE_PYMOD_FNMATCH=yes
10295
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10296
$as_echo "no" >&6; }
10297
eval HAVE_PYMOD_FNMATCH=no
10301
as_fn_error $? "failed to find required module fnmatch" "$LINENO" 5
10307
if test -z $PYTHON;
10311
PYTHON_NAME=`basename $PYTHON`
10312
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: ldap" >&5
10313
$as_echo_n "checking $PYTHON_NAME module: ldap... " >&6; }
10314
$PYTHON -c "import ldap" 2>/dev/null
10317
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10318
$as_echo "yes" >&6; }
10319
eval HAVE_PYMOD_LDAP=yes
10321
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10322
$as_echo "no" >&6; }
10323
eval HAVE_PYMOD_LDAP=no
10327
as_fn_error $? "failed to find required module ldap" "$LINENO" 5
10333
if test -z $PYTHON;
10337
PYTHON_NAME=`basename $PYTHON`
10338
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: sqlite3" >&5
10339
$as_echo_n "checking $PYTHON_NAME module: sqlite3... " >&6; }
10340
$PYTHON -c "import sqlite3" 2>/dev/null
10343
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10344
$as_echo "yes" >&6; }
10345
eval HAVE_PYMOD_SQLITE3=yes
10347
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10348
$as_echo "no" >&6; }
10349
eval HAVE_PYMOD_SQLITE3=no
10353
as_fn_error $? "failed to find required module sqlite3" "$LINENO" 5
10358
# required by ldap.controls.ppolicy:
10360
if test -z $PYTHON;
10364
PYTHON_NAME=`basename $PYTHON`
10365
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: pyasn1" >&5
10366
$as_echo_n "checking $PYTHON_NAME module: pyasn1... " >&6; }
10367
$PYTHON -c "import pyasn1" 2>/dev/null
10370
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10371
$as_echo "yes" >&6; }
10372
eval HAVE_PYMOD_PYASN1=yes
10374
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10375
$as_echo "no" >&6; }
10376
eval HAVE_PYMOD_PYASN1=no
10380
as_fn_error $? "failed to find required module pyasn1" "$LINENO" 5
10386
if test -z $PYTHON;
10390
PYTHON_NAME=`basename $PYTHON`
10391
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: pyasn1_modules" >&5
10392
$as_echo_n "checking $PYTHON_NAME module: pyasn1_modules... " >&6; }
10393
$PYTHON -c "import pyasn1_modules" 2>/dev/null
10396
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10397
$as_echo "yes" >&6; }
10398
eval HAVE_PYMOD_PYASN1_MODULES=yes
10400
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10401
$as_echo "no" >&6; }
10402
eval HAVE_PYMOD_PYASN1_MODULES=no
10406
as_fn_error $? "failed to find required module pyasn1_modules" "$LINENO" 5
10411
if test "x$HAVE_PYMOD_DAEMON" != "xyes" || \
10412
test "x$HAVE_PYMOD_FCNTL" != "xyes" || \
10413
test "x$HAVE_PYMOD_FNMATCH" != "xyes" || \
10414
test "x$HAVE_PYMOD_LDAP" != "xyes" || \
10415
test "x$HAVE_PYMOD_SQLITE3" != "xyes" || \
10416
test "x$HAVE_PYMOD_PYASN1" != "xyes" || \
10417
test "x$HAVE_PYMOD_PYASN1_MODULES" != "xyes"
10419
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Required Python modules missing" >&5
10420
$as_echo "$as_me: WARNING: Required Python modules missing" >&2;}
10424
if test -z $PYTHON;
10428
PYTHON_NAME=`basename $PYTHON`
10429
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: setproctitle" >&5
10430
$as_echo_n "checking $PYTHON_NAME module: setproctitle... " >&6; }
10431
$PYTHON -c "import setproctitle" 2>/dev/null
10434
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10435
$as_echo "yes" >&6; }
10436
eval HAVE_PYMOD_SETPROCTITLE=yes
10438
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10439
$as_echo "no" >&6; }
10440
eval HAVE_PYMOD_SETPROCTITLE=no
10444
as_fn_error $? "failed to find required module setproctitle" "$LINENO" 5
9128
10451
if test "x${with_nss_flavour}" = xglibc; then