13501
13520
$as_echo "$as_me: error: dbus-binding-tool (from dbus-glib) is required" >&2;}
13502
13521
{ (exit 1); exit 1; }; }
13505
for ac_prog in python2.3 python2.4 python2.5 python
13507
# Extract the first word of "$ac_prog", so it can be a program name with args.
13508
set dummy $ac_prog; ac_word=$2
13528
if test -n "$PYTHON"; then
13529
# If the user set $PYTHON, use it and don't search something else.
13530
{ $as_echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.5" >&5
13531
$as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
13532
prog="import sys, string
13533
# split strings by '.' and convert to numeric. Append some zeros
13534
# because we need at least 4 digits for the hex conversion.
13535
minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
13537
for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
13538
sys.exit(sys.hexversion < minverhex)"
13539
if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
13540
($PYTHON -c "$prog") >&5 2>&5
13542
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543
(exit $ac_status); }; then
13544
{ $as_echo "$as_me:$LINENO: result: yes" >&5
13545
$as_echo "yes" >&6; }
13547
{ { $as_echo "$as_me:$LINENO: error: too old" >&5
13548
$as_echo "$as_me: error: too old" >&2;}
13549
{ (exit 1); exit 1; }; }
13552
am_display_PYTHON=$PYTHON
13554
# Otherwise, try each interpreter until we find one that satisfies
13556
{ $as_echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.5" >&5
13557
$as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
13558
if test "${am_cv_pathless_PYTHON+set}" = set; then
13559
$as_echo_n "(cached) " >&6
13562
for am_cv_pathless_PYTHON in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
13563
test "$am_cv_pathless_PYTHON" = none && break
13564
prog="import sys, string
13565
# split strings by '.' and convert to numeric. Append some zeros
13566
# because we need at least 4 digits for the hex conversion.
13567
minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
13569
for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
13570
sys.exit(sys.hexversion < minverhex)"
13571
if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
13572
($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
13574
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575
(exit $ac_status); }; then
13581
{ $as_echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
13582
$as_echo "$am_cv_pathless_PYTHON" >&6; }
13583
# Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
13584
if test "$am_cv_pathless_PYTHON" = none; then
13587
# Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
13588
set dummy $am_cv_pathless_PYTHON; ac_word=$2
13509
13589
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13510
13590
$as_echo_n "checking for $ac_word... " >&6; }
13511
if test "${ac_cv_prog_PYTHON+set}" = set; then
13591
if test "${ac_cv_path_PYTHON+set}" = set; then
13512
13592
$as_echo_n "(cached) " >&6
13514
if test -n "$PYTHON"; then
13515
ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
13517
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13596
ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
13599
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13518
13600
for as_dir in $PATH
13520
13602
IFS=$as_save_IFS
13521
13603
test -z "$as_dir" && as_dir=.
13522
13604
for ac_exec_ext in '' $ac_executable_extensions; do
13523
13605
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13524
ac_cv_prog_PYTHON="$ac_prog"
13606
ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
13525
13607
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13544
test -n "$PYTHON" && break
13547
if test -z "$PYTHON"; then
13548
{ { $as_echo "$as_me:$LINENO: error: Python is required to compile this package" >&5
13549
$as_echo "$as_me: error: Python is required to compile this package" >&2;}
13628
am_display_PYTHON=$am_cv_pathless_PYTHON
13632
if test "$PYTHON" = :; then
13633
{ { $as_echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
13634
$as_echo "$as_me: error: no suitable Python interpreter found" >&2;}
13550
13635
{ (exit 1); exit 1; }; }
13553
# Check for a python >= 2.4 with twisted to run python tests
13554
{ $as_echo "$as_me:$LINENO: checking for Python >= 2.4 with Twisted and XMPP protocol support" >&5
13555
$as_echo_n "checking for Python >= 2.4 with Twisted and XMPP protocol support... " >&6; }
13556
for TEST_PYTHON in python2.4 python2.5 python; do
13557
if $TEST_PYTHON -c "from sys import version_info;
13558
raise SystemExit(version_info < (2, 4, 0, 'final', 0))" \
13559
>/dev/null 2>&1; then
13560
if $TEST_PYTHON -c "import twisted.words.xish.domish,
13561
twisted.words.protocols.jabber, twisted.internet.reactor" \
13562
>/dev/null 2>&1; then
13563
{ $as_echo "$as_me:$LINENO: result: $TEST_PYTHON" >&5
13639
{ $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
13640
$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
13641
if test "${am_cv_python_version+set}" = set; then
13642
$as_echo_n "(cached) " >&6
13644
am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
13646
{ $as_echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
13647
$as_echo "$am_cv_python_version" >&6; }
13648
PYTHON_VERSION=$am_cv_python_version
13652
PYTHON_PREFIX='${prefix}'
13654
PYTHON_EXEC_PREFIX='${exec_prefix}'
13658
{ $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
13659
$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
13660
if test "${am_cv_python_platform+set}" = set; then
13661
$as_echo_n "(cached) " >&6
13663
am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
13665
{ $as_echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
13666
$as_echo "$am_cv_python_platform" >&6; }
13667
PYTHON_PLATFORM=$am_cv_python_platform
13672
{ $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
13673
$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
13674
if test "${am_cv_python_pythondir+set}" = set; then
13675
$as_echo_n "(cached) " >&6
13677
if test "x$prefix" = xNONE
13679
am_py_prefix=$ac_default_prefix
13681
am_py_prefix=$prefix
13683
am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
13684
echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
13685
case $am_cv_python_pythondir in
13687
am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
13688
am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
13693
{ $as_echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
13694
$as_echo "$am_cv_python_pythondir" >&6; }
13695
pythondir=$am_cv_python_pythondir
13699
pkgpythondir=\${pythondir}/$PACKAGE
13702
{ $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
13703
$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
13704
if test "${am_cv_python_pyexecdir+set}" = set; then
13705
$as_echo_n "(cached) " >&6
13707
if test "x$exec_prefix" = xNONE
13709
am_py_exec_prefix=$am_py_prefix
13711
am_py_exec_prefix=$exec_prefix
13713
am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
13714
echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
13715
case $am_cv_python_pyexecdir in
13716
$am_py_exec_prefix*)
13717
am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
13718
am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
13723
{ $as_echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
13724
$as_echo "$am_cv_python_pyexecdir" >&6; }
13725
pyexecdir=$am_cv_python_pyexecdir
13729
pkgpyexecdir=\${pyexecdir}/$PACKAGE
13737
# Check for a python >= 2.5 with twisted to run python tests
13738
{ $as_echo "$as_me:$LINENO: checking for Python with Twisted and XMPP protocol support" >&5
13739
$as_echo_n "checking for Python with Twisted and XMPP protocol support... " >&6; }
13740
if $PYTHON -c "import twisted.words.xish.domish, twisted.words.protocols.jabber, twisted.internet.reactor" >/dev/null 2>&1; then
13741
TEST_PYTHON="$PYTHON"
13745
{ $as_echo "$as_me:$LINENO: result: $TEST_PYTHON" >&5
13564
13746
$as_echo "$TEST_PYTHON" >&6; }
13568
WANT_TWISTED_TESTS_TRUE=
13569
WANT_TWISTED_TESTS_FALSE='#'
13571
WANT_TWISTED_TESTS_TRUE='#'
13572
WANT_TWISTED_TESTS_FALSE=
13584
13750
if test false != "$TEST_PYTHON"; then
13585
13751
WANT_TWISTED_TESTS_TRUE=
16298
ac_config_files="$ac_config_files Makefile docs/Makefile lib/Makefile lib/gibber/Makefile lib/gibber/examples/Makefile lib/gibber/tests/Makefile lib/gibber/tests/inputs/Makefile src/Makefile m4/Makefile data/Makefile extensions/Makefile tools/Makefile tests/Makefile tests/twisted/Makefile tests/twisted/tools/Makefile"
16466
# Check whether --enable-shave was given.
16467
if test "${enable_shave+set}" = set; then
16468
enableval=$enable_shave;
16476
if test x"$enable_shave" = xyes; then
16477
shavedir="$ac_pwd/."
16482
AM_MAKEFLAGS='`test -z $V && echo -s`'
16485
# Extract the first word of "sed", so it can be a program name with args.
16486
set dummy sed; ac_word=$2
16487
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16488
$as_echo_n "checking for $ac_word... " >&6; }
16489
if test "${ac_cv_prog_SED+set}" = set; then
16490
$as_echo_n "(cached) " >&6
16492
if test -n "$SED"; then
16493
ac_cv_prog_SED="$SED" # Let the user override the test.
16495
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16496
for as_dir in $PATH
16499
test -z "$as_dir" && as_dir=.
16500
for ac_exec_ext in '' $ac_executable_extensions; do
16501
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16502
ac_cv_prog_SED="sed"
16503
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16510
test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="false"
16513
SED=$ac_cv_prog_SED
16514
if test -n "$SED"; then
16515
{ $as_echo "$as_me:$LINENO: result: $SED" >&5
16516
$as_echo "$SED" >&6; }
16518
{ $as_echo "$as_me:$LINENO: result: no" >&5
16519
$as_echo "no" >&6; }
16524
SHAVE_SAVED_LIBTOOL=$LIBTOOL
16525
LIBTOOL="${SHELL} ${shavedir}/shave-libtool '${SHAVE_SAVED_LIBTOOL}'"
16529
SHAVE_SAVED_CXX=$CXX
16531
SHAVE_SAVED_F77=$F77
16532
SHAVE_SAVED_OBJC=$OBJC
16533
CC="${SHELL} ${shavedir}/shave cc ${SHAVE_SAVED_CC}"
16534
CXX="${SHELL} ${shavedir}/shave cxx ${SHAVE_SAVED_CXX}"
16535
FC="${SHELL} ${shavedir}/shave fc ${SHAVE_SAVED_FC}"
16536
F77="${SHELL} ${shavedir}/shave f77 ${SHAVE_SAVED_F77}"
16537
OBJC="${SHELL} ${shavedir}/shave objc ${SHAVE_SAVED_OBJC}"
16553
ac_config_files="$ac_config_files Makefile docs/Makefile lib/Makefile lib/gibber/Makefile lib/gibber/examples/Makefile lib/gibber/tests/Makefile lib/gibber/tests/inputs/Makefile src/Makefile m4/Makefile data/Makefile extensions/Makefile tools/Makefile tests/Makefile tests/twisted/Makefile tests/twisted/tools/Makefile shave shave-libtool"
16300
16555
cat >confcache <<\_ACEOF
16301
16556
# This file is a shell script that caches the results of configure