Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added Python m4 macros to remove hardcoded python2.7 dep

  • Loading branch information...
commit 7e900245f4f8113d883ef285eb057a304518e19c 1 parent 6b7abf6
@AidanDelaney AidanDelaney authored
View
10 Makefile.in
@@ -39,7 +39,8 @@ DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
$(top_srcdir)/configure AUTHORS ChangeLog INSTALL config.guess \
config.sub depcomp install-sh ltmain.sh missing
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__aclocal_m4_deps = $(top_srcdir)/m4/ax_python_devel.m4 \
+ $(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
@@ -160,6 +161,13 @@ PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
+PYTHON = @PYTHON@
+PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@
+PYTHON_EXTRA_LDFLAGS = @PYTHON_EXTRA_LDFLAGS@
+PYTHON_EXTRA_LIBS = @PYTHON_EXTRA_LIBS@
+PYTHON_LDFLAGS = @PYTHON_LDFLAGS@
+PYTHON_SITE_PKG = @PYTHON_SITE_PKG@
+PYTHON_VERSION = @PYTHON_VERSION@
RANLIB = @RANLIB@
SED = @SED@
SET_MAKE = @SET_MAKE@
View
453 autom4te.cache/output.1
@@ -613,6 +613,13 @@ ac_subst_vars='am__EXEEXT_FALSE
am__EXEEXT_TRUE
LTLIBOBJS
LIB@&t@OBJS
+PYTHON_EXTRA_LDFLAGS
+PYTHON_EXTRA_LIBS
+PYTHON_SITE_PKG
+PYTHON_LDFLAGS
+PYTHON_CPPFLAGS
+PYTHON
+PYTHON_VERSION
CXXCPP
am__fastdepCXX_FALSE
am__fastdepCXX_TRUE
@@ -751,7 +758,8 @@ CPP
CXX
CXXFLAGS
CCC
-CXXCPP'
+CXXCPP
+PYTHON_VERSION'
# Initialize some variables set by options.
@@ -1401,6 +1409,10 @@ Some influential environment variables:
CXX C++ compiler command
CXXFLAGS C++ compiler flags
CXXCPP C++ preprocessor
+ PYTHON_VERSION
+ The installed Python version to use, for example '2.3'. This
+ string will be appended to the Python interpreter canonical
+ name.
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
@@ -15577,6 +15589,445 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
+# ===========================================================================
+# http://www.gnu.org/software/autoconf-archive/ax_python_devel.html
+# ===========================================================================
+#
+# SYNOPSIS
+#
+# AX_PYTHON_DEVEL([version])
+#
+# DESCRIPTION
+#
+# Note: Defines as a precious variable "PYTHON_VERSION". Don't override it
+# in your configure.ac.
+#
+# This macro checks for Python and tries to get the include path to
+# 'Python.h'. It provides the $(PYTHON_CPPFLAGS) and $(PYTHON_LDFLAGS)
+# output variables. It also exports $(PYTHON_EXTRA_LIBS) and
+# $(PYTHON_EXTRA_LDFLAGS) for embedding Python in your code.
+#
+# You can search for some particular version of Python by passing a
+# parameter to this macro, for example ">= '2.3.1'", or "== '2.4'". Please
+# note that you *have* to pass also an operator along with the version to
+# match, and pay special attention to the single quotes surrounding the
+# version number. Don't use "PYTHON_VERSION" for this: that environment
+# variable is declared as precious and thus reserved for the end-user.
+#
+# This macro should work for all versions of Python >= 2.1.0. As an end
+# user, you can disable the check for the python version by setting the
+# PYTHON_NOVERSIONCHECK environment variable to something else than the
+# empty string.
+#
+# If you need to use this macro for an older Python version, please
+# contact the authors. We're always open for feedback.
+#
+# LICENSE
+#
+# Copyright (c) 2009 Sebastian Huber <sebastian-huber@web.de>
+# Copyright (c) 2009 Alan W. Irwin <irwin@beluga.phys.uvic.ca>
+# Copyright (c) 2009 Rafael Laboissiere <rafael@laboissiere.net>
+# Copyright (c) 2009 Andrew Collier <colliera@ukzn.ac.za>
+# Copyright (c) 2009 Matteo Settenvini <matteo@member.fsf.org>
+# Copyright (c) 2009 Horst Knorr <hk_classes@knoda.org>
+#
+# This program is free software: you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation, either version 3 of the License, or (at your
+# option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
+# Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+# As a special exception, the respective Autoconf Macro's copyright owner
+# gives unlimited permission to copy, distribute and modify the configure
+# scripts that are the output of Autoconf when processing the Macro. You
+# need not follow the terms of the GNU General Public License when using
+# or distributing such scripts, even though portions of the text of the
+# Macro appear in them. The GNU General Public License (GPL) does govern
+# all other use of the material that constitutes the Autoconf Macro.
+#
+# This special exception to the GPL applies to versions of the Autoconf
+# Macro released by the Autoconf Archive. When you make and distribute a
+# modified version of the Autoconf Macro, you may extend this special
+# exception to the GPL to apply to your modified version as well.
+
+#serial 8
+
+# This is what autoupdate's m4 run will expand. It fires
+# the warning (with _au_warn_XXX), outputs it into the
+# updated configure.ac (with AC_DIAGNOSE), and then outputs
+# the replacement expansion.
+
+
+# This is an auxiliary macro that is also run when
+# autoupdate runs m4. It simply calls m4_warning, but
+# we need a wrapper so that each warning is emitted only
+# once. We break the quoting in m4_warning's argument in
+# order to expand this macro's arguments, not AU_DEFUN's.
+
+
+# Finally, this is the expansion that is picked up by
+# autoconf. It tells the user to run autoupdate, and
+# then outputs the replacement expansion. We do not care
+# about autoupdate's warning because that contains
+# information on what to do *after* running autoupdate.
+
+
+
+
+ #
+ # Allow the use of a (user set) custom python version
+ #
+
+
+ # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
+set dummy python$PYTHON_VERSION; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_PYTHON+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $PYTHON in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ ;;
+esac
+fi
+PYTHON=$ac_cv_path_PYTHON
+if test -n "$PYTHON"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
+$as_echo "$PYTHON" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ if test -z "$PYTHON"; then
+ as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
+ PYTHON_VERSION=""
+ fi
+
+ #
+ # Check for a version of Python >= 2.1.0
+ #
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
+$as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
+ ac_supports_python_ver=`$PYTHON -c "import sys; \
+ ver = sys.version.split ()[0]; \
+ print (ver >= '2.1.0')"`
+ if test "$ac_supports_python_ver" != "True"; then
+ if test -z "$PYTHON_NOVERSIONCHECK"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "
+This version of the AC@&t@_PYTHON_DEVEL macro
+doesn't work properly with versions of Python before
+2.1.0. You may need to re-run configure, setting the
+variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
+PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
+Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
+to something else than an empty string.
+
+See \`config.log' for more details" "$LINENO" 5; }
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
+$as_echo "skip at user request" >&6; }
+ fi
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ fi
+
+ #
+ # if the macro parameter ``version'' is set, honour it
+ #
+ if test -n ""; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
+$as_echo_n "checking for a version of Python ... " >&6; }
+ ac_supports_python_ver=`$PYTHON -c "import sys; \
+ ver = sys.version.split ()[0]; \
+ print (ver )"`
+ if test "$ac_supports_python_ver" = "True"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ as_fn_error $? "this package requires Python .
+If you have it installed, but it isn't the default Python
+interpreter in your system path, please pass the PYTHON_VERSION
+variable to configure. See \`\`configure --help'' for reference.
+" "$LINENO" 5
+ PYTHON_VERSION=""
+ fi
+ fi
+
+ #
+ # Check if you have distutils, else fail
+ #
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
+$as_echo_n "checking for the distutils Python package... " >&6; }
+ ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
+ if test -z "$ac_distutils_result"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ as_fn_error $? "cannot import Python module \"distutils\".
+Please check your Python installation. The error was:
+$ac_distutils_result" "$LINENO" 5
+ PYTHON_VERSION=""
+ fi
+
+ #
+ # Check for Python include path
+ #
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
+$as_echo_n "checking for Python include path... " >&6; }
+ if test -z "$PYTHON_CPPFLAGS"; then
+ python_path=`$PYTHON -c "import distutils.sysconfig; \
+ print (distutils.sysconfig.get_python_inc ());"`
+ if test -n "${python_path}"; then
+ python_path="-I$python_path"
+ fi
+ PYTHON_CPPFLAGS=$python_path
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
+$as_echo "$PYTHON_CPPFLAGS" >&6; }
+
+
+ #
+ # Check for Python library path
+ #
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
+$as_echo_n "checking for Python library path... " >&6; }
+ if test -z "$PYTHON_LDFLAGS"; then
+ # (makes two attempts to ensure we've got a version number
+ # from the interpreter)
+ ac_python_version=`cat<<EOD | $PYTHON -
+
+# join all versioning strings, on some systems
+# major/minor numbers could be in different list elements
+from distutils.sysconfig import *
+ret = ''
+for e in get_config_vars ('VERSION'):
+ if (e != None):
+ ret += e
+print (ret)
+EOD`
+
+ if test -z "$ac_python_version"; then
+ if test -n "$PYTHON_VERSION"; then
+ ac_python_version=$PYTHON_VERSION
+ else
+ ac_python_version=`$PYTHON -c "import sys; \
+ print (sys.version[:3])"`
+ fi
+ fi
+
+ # Make the versioning information available to the compiler
+
+cat >>confdefs.h <<_ACEOF
+@%:@define HAVE_PYTHON "$ac_python_version"
+_ACEOF
+
+
+ # First, the library directory:
+ ac_python_libdir=`cat<<EOD | $PYTHON -
+
+# There should be only one
+import distutils.sysconfig
+for e in distutils.sysconfig.get_config_vars ('LIBDIR'):
+ if e != None:
+ print (e)
+ break
+EOD`
+
+ # Before checking for libpythonX.Y, we need to know
+ # the extension the OS we're on uses for libraries
+ # (we take the first one, if there's more than one fix me!):
+ ac_python_soext=`$PYTHON -c \
+ "import distutils.sysconfig; \
+ print (distutils.sysconfig.get_config_vars('SO')[0])"`
+
+ # Now, for the library:
+ ac_python_soname=`$PYTHON -c \
+ "import distutils.sysconfig; \
+ print (distutils.sysconfig.get_config_vars('LDLIBRARY')[0])"`
+
+ # Strip away extension from the end to canonicalize its name:
+ ac_python_library=`echo "$ac_python_soname" | sed "s/${ac_python_soext}$//"`
+
+ # This small piece shamelessly adapted from PostgreSQL python macro;
+ # credits goes to momjian, I think. I'd like to put the right name
+ # in the credits, if someone can point me in the right direction... ?
+ #
+ if test -n "$ac_python_libdir" -a -n "$ac_python_library" \
+ -a x"$ac_python_library" != x"$ac_python_soname"
+ then
+ # use the official shared library
+ ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
+ PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
+ else
+ # old way: use libpython from python_configdir
+ ac_python_libdir=`$PYTHON -c \
+ "from distutils.sysconfig import get_python_lib as f; \
+ import os; \
+ print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
+ PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
+ fi
+
+ if test -z "PYTHON_LDFLAGS"; then
+ as_fn_error $? "
+ Cannot determine location of your Python DSO. Please check it was installed with
+ dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
+ " "$LINENO" 5
+ fi
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
+$as_echo "$PYTHON_LDFLAGS" >&6; }
+
+
+ #
+ # Check for site packages
+ #
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
+$as_echo_n "checking for Python site-packages path... " >&6; }
+ if test -z "$PYTHON_SITE_PKG"; then
+ PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
+ print (distutils.sysconfig.get_python_lib(0,0));"`
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
+$as_echo "$PYTHON_SITE_PKG" >&6; }
+
+
+ #
+ # libraries which must be linked in when embedding
+ #
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
+$as_echo_n "checking python extra libraries... " >&6; }
+ if test -z "$PYTHON_EXTRA_LIBS"; then
+ PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
+ conf = distutils.sysconfig.get_config_var; \
+ print (conf('LOCALMODLIBS') + ' ' + conf('LIBS'))"`
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
+$as_echo "$PYTHON_EXTRA_LIBS" >&6; }
+
+
+ #
+ # linking flags needed when embedding
+ #
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
+$as_echo_n "checking python extra linking flags... " >&6; }
+ if test -z "$PYTHON_EXTRA_LDFLAGS"; then
+ PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
+ conf = distutils.sysconfig.get_config_var; \
+ print (conf('LINKFORSHARED'))"`
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
+$as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
+
+
+ #
+ # final check to see if everything compiles alright
+ #
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
+$as_echo_n "checking consistency of all components of python development environment... " >&6; }
+ # save current global flags
+ ac_save_LIBS="$LIBS"
+ ac_save_CPPFLAGS="$CPPFLAGS"
+ LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
+ CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
+ ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <Python.h>
+int
+main ()
+{
+Py_Initialize();
+ ;
+ return 0;
+}
+
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ pythonexists=yes
+else
+ pythonexists=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+ # turn back to default flags
+ CPPFLAGS="$ac_save_CPPFLAGS"
+ LIBS="$ac_save_LIBS"
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
+$as_echo "$pythonexists" >&6; }
+
+ if test ! "x$pythonexists" = "xyes"; then
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "
+ Could not link test program to Python. Maybe the main Python library has been
+ installed in some non-standard library path. If so, pass it to configure,
+ via the LDFLAGS environment variable.
+ Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
+ ============================================================================
+ ERROR!
+ You probably have to install the development version of the Python package
+ for your distribution. The exact name of this package varies among them.
+ ============================================================================
+
+See \`config.log' for more details" "$LINENO" 5; }
+ PYTHON_VERSION=""
+ fi
+
+ #
+ # all done!
+ #
+
+
ac_config_files="$ac_config_files Makefile src/Makefile"
cat >confcache <<\_ACEOF
View
217 autom4te.cache/requests
@@ -414,6 +414,7 @@
'AM_PROG_LD' => 1,
'_LT_AC_FILE_LTDLL_C' => 1,
'AC_LIB_LTDL' => 1,
+ 'AX_PYTHON_DEVEL' => 1,
'AU_DEFUN' => 1,
'AC_PROG_NM' => 1,
'AC_LIBTOOL_DLOPEN' => 1,
@@ -456,6 +457,7 @@
'AC_LIBTOOL_LANG_F77_CONFIG' => 1,
'AM_CONDITIONAL' => 1,
'LT_LIB_DLLOAD' => 1,
+ 'AC_PYTHON_DEVEL' => 1,
'LTVERSION_VERSION' => 1,
'_LT_PROG_CXX' => 1,
'_LT_PROG_F77' => 1,
@@ -545,6 +547,221 @@
'_LT_CC_BASENAME' => 1,
'_LT_LIBOBJ' => 1
}
+ ], 'Autom4te::Request' ),
+ bless( [
+ '6',
+ 1,
+ [
+ '/usr/share/autoconf'
+ ],
+ [
+ '/usr/share/autoconf/autoconf/autoconf.m4f',
+ '/usr/share/aclocal/argz.m4',
+ '/usr/share/aclocal/libtool.m4',
+ '/usr/share/aclocal/ltdl.m4',
+ '/usr/share/aclocal/ltoptions.m4',
+ '/usr/share/aclocal/ltsugar.m4',
+ '/usr/share/aclocal/ltversion.m4',
+ '/usr/share/aclocal/lt~obsolete.m4',
+ '/usr/share/aclocal-1.11/amversion.m4',
+ '/usr/share/aclocal-1.11/auxdir.m4',
+ '/usr/share/aclocal-1.11/cond.m4',
+ '/usr/share/aclocal-1.11/depend.m4',
+ '/usr/share/aclocal-1.11/depout.m4',
+ '/usr/share/aclocal-1.11/init.m4',
+ '/usr/share/aclocal-1.11/install-sh.m4',
+ '/usr/share/aclocal-1.11/lead-dot.m4',
+ '/usr/share/aclocal-1.11/make.m4',
+ '/usr/share/aclocal-1.11/missing.m4',
+ '/usr/share/aclocal-1.11/mkdirp.m4',
+ '/usr/share/aclocal-1.11/options.m4',
+ '/usr/share/aclocal-1.11/python.m4',
+ '/usr/share/aclocal-1.11/runlog.m4',
+ '/usr/share/aclocal-1.11/sanity.m4',
+ '/usr/share/aclocal-1.11/silent.m4',
+ '/usr/share/aclocal-1.11/strip.m4',
+ '/usr/share/aclocal-1.11/substnot.m4',
+ '/usr/share/aclocal-1.11/tar.m4',
+ 'configure.ac'
+ ],
+ {
+ 'AM_ENABLE_STATIC' => 1,
+ 'AC_LIBTOOL_LANG_RC_CONFIG' => 1,
+ '_LT_AC_SHELL_INIT' => 1,
+ 'AC_DEFUN' => 1,
+ 'AC_PROG_LIBTOOL' => 1,
+ '_LT_AC_LANG_CXX_CONFIG' => 1,
+ 'AM_PROG_MKDIR_P' => 1,
+ 'AM_PYTHON_CHECK_VERSION' => 1,
+ 'AM_AUTOMAKE_VERSION' => 1,
+ 'AM_SUBST_NOTMAKE' => 1,
+ 'AM_MISSING_PROG' => 1,
+ 'AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH' => 1,
+ '_LT_AC_LANG_C_CONFIG' => 1,
+ 'AM_PROG_INSTALL_STRIP' => 1,
+ '_m4_warn' => 1,
+ 'AC_LIBTOOL_OBJDIR' => 1,
+ 'gl_FUNC_ARGZ' => 1,
+ 'AM_SANITY_CHECK' => 1,
+ 'LTOBSOLETE_VERSION' => 1,
+ 'AC_LIBTOOL_LANG_GCJ_CONFIG' => 1,
+ 'AC_LIBTOOL_PROG_COMPILER_PIC' => 1,
+ 'LT_LIB_M' => 1,
+ '_LT_AC_CHECK_DLFCN' => 1,
+ 'AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE' => 1,
+ 'LTSUGAR_VERSION' => 1,
+ '_LT_PROG_LTMAIN' => 1,
+ 'LT_SYS_SYMBOL_USCORE' => 1,
+ '_AM_PROG_TAR' => 1,
+ 'AC_LIBTOOL_GCJ' => 1,
+ '_LT_WITH_SYSROOT' => 1,
+ 'LT_FUNC_DLSYM_USCORE' => 1,
+ 'LT_SYS_DLOPEN_DEPLIBS' => 1,
+ '_LT_AC_LANG_F77' => 1,
+ 'AC_LIBTOOL_CONFIG' => 1,
+ '_AM_SUBST_NOTMAKE' => 1,
+ 'AC_LTDL_DLLIB' => 1,
+ '_AM_AUTOCONF_VERSION' => 1,
+ 'AM_DISABLE_SHARED' => 1,
+ '_LT_PROG_ECHO_BACKSLASH' => 1,
+ '_LTDL_SETUP' => 1,
+ '_LT_AC_LANG_CXX' => 1,
+ 'AM_PROG_LIBTOOL' => 1,
+ 'AC_LIB_LTDL' => 1,
+ '_LT_AC_FILE_LTDLL_C' => 1,
+ 'AM_PROG_LD' => 1,
+ 'AU_DEFUN' => 1,
+ 'AC_PROG_NM' => 1,
+ 'AC_LIBTOOL_DLOPEN' => 1,
+ 'AC_PROG_LD' => 1,
+ 'AC_PROG_LD_GNU' => 1,
+ 'AC_ENABLE_FAST_INSTALL' => 1,
+ 'AC_LIBTOOL_FC' => 1,
+ 'LTDL_CONVENIENCE' => 1,
+ '_AM_SET_OPTION' => 1,
+ 'AC_LTDL_PREOPEN' => 1,
+ '_LT_LINKER_BOILERPLATE' => 1,
+ '_LT_PREPARE_SED_QUOTE_VARS' => 1,
+ 'AC_LIBTOOL_LANG_CXX_CONFIG' => 1,
+ 'AC_LIBTOOL_PROG_CC_C_O' => 1,
+ 'gl_PREREQ_ARGZ' => 1,
+ 'LT_SUPPORTED_TAG' => 1,
+ 'AM_OUTPUT_DEPENDENCY_COMMANDS' => 1,
+ 'LT_PROG_RC' => 1,
+ 'LT_SYS_MODULE_EXT' => 1,
+ 'AC_DEFUN_ONCE' => 1,
+ '_LT_AC_LANG_GCJ' => 1,
+ 'AC_LTDL_OBJDIR' => 1,
+ '_LT_PATH_TOOL_PREFIX' => 1,
+ 'AC_LIBTOOL_RC' => 1,
+ 'AM_SILENT_RULES' => 1,
+ 'AC_DISABLE_FAST_INSTALL' => 1,
+ '_LT_AC_PROG_ECHO_BACKSLASH' => 1,
+ '_LT_AC_SYS_LIBPATH_AIX' => 1,
+ '_LT_AC_TRY_DLOPEN_SELF' => 1,
+ 'include' => 1,
+ 'LT_AC_PROG_SED' => 1,
+ 'AM_ENABLE_SHARED' => 1,
+ 'LTDL_INSTALLABLE' => 1,
+ '_LT_AC_LANG_GCJ_CONFIG' => 1,
+ 'AC_ENABLE_SHARED' => 1,
+ 'AC_ENABLE_STATIC' => 1,
+ 'AC_LIBTOOL_SYS_HARD_LINK_LOCKS' => 1,
+ '_LT_REQUIRED_DARWIN_CHECKS' => 1,
+ '_LT_AC_TAGVAR' => 1,
+ 'AC_LIBTOOL_LANG_F77_CONFIG' => 1,
+ 'AM_CONDITIONAL' => 1,
+ 'LT_LIB_DLLOAD' => 1,
+ 'LTDL_INIT' => 1,
+ '_LT_PROG_F77' => 1,
+ '_LT_PROG_CXX' => 1,
+ 'LTVERSION_VERSION' => 1,
+ 'AM_PROG_INSTALL_SH' => 1,
+ 'm4_include' => 1,
+ 'AC_PROG_EGREP' => 1,
+ '_AC_AM_CONFIG_HEADER_HOOK' => 1,
+ 'AC_PATH_MAGIC' => 1,
+ 'AM_PATH_PYTHON' => 1,
+ 'AC_LTDL_SYSSEARCHPATH' => 1,
+ 'AM_MAKE_INCLUDE' => 1,
+ 'LT_CMD_MAX_LEN' => 1,
+ '_LT_AC_TAGCONFIG' => 1,
+ 'm4_pattern_forbid' => 1,
+ '_LT_LINKER_OPTION' => 1,
+ 'AC_LIBTOOL_COMPILER_OPTION' => 1,
+ 'AC_DISABLE_SHARED' => 1,
+ '_LT_COMPILER_BOILERPLATE' => 1,
+ 'AC_LIBTOOL_WIN32_DLL' => 1,
+ 'AC_LIBTOOL_SETUP' => 1,
+ 'AC_PROG_LD_RELOAD_FLAG' => 1,
+ 'AC_LTDL_DLSYM_USCORE' => 1,
+ 'AM_MISSING_HAS_RUN' => 1,
+ 'LT_LANG' => 1,
+ 'LT_SYS_DLSEARCH_PATH' => 1,
+ 'LT_CONFIG_LTDL_DIR' => 1,
+ 'AC_LIBTOOL_DLOPEN_SELF' => 1,
+ 'LT_OUTPUT' => 1,
+ 'AC_LIBTOOL_PROG_LD_SHLIBS' => 1,
+ 'AC_WITH_LTDL' => 1,
+ 'AC_LIBTOOL_LINKER_OPTION' => 1,
+ 'LT_AC_PROG_RC' => 1,
+ 'AC_LIBTOOL_CXX' => 1,
+ 'LT_INIT' => 1,
+ 'LT_AC_PROG_GCJ' => 1,
+ 'LT_SYS_DLOPEN_SELF' => 1,
+ 'AM_DEP_TRACK' => 1,
+ 'AM_DISABLE_STATIC' => 1,
+ '_LT_AC_PROG_CXXCPP' => 1,
+ '_AC_PROG_LIBTOOL' => 1,
+ '_AM_IF_OPTION' => 1,
+ 'AC_PATH_TOOL_PREFIX' => 1,
+ 'AC_LIBTOOL_F77' => 1,
+ 'm4_pattern_allow' => 1,
+ 'AM_SET_LEADING_DOT' => 1,
+ 'LT_AC_PROG_EGREP' => 1,
+ '_LT_PROG_FC' => 1,
+ '_AM_DEPENDENCIES' => 1,
+ 'AC_LIBTOOL_LANG_C_CONFIG' => 1,
+ 'LTOPTIONS_VERSION' => 1,
+ '_LT_AC_SYS_COMPILER' => 1,
+ 'AM_PROG_NM' => 1,
+ 'AC_LIBLTDL_CONVENIENCE' => 1,
+ 'AC_DEPLIBS_CHECK_METHOD' => 1,
+ 'AM_SET_CURRENT_AUTOMAKE_VERSION' => 1,
+ 'AC_LIBLTDL_INSTALLABLE' => 1,
+ 'AC_LTDL_ENABLE_INSTALL' => 1,
+ 'AC_LIBTOOL_SYS_DYNAMIC_LINKER' => 1,
+ 'LT_PROG_GCJ' => 1,
+ 'AM_INIT_AUTOMAKE' => 1,
+ 'AC_DISABLE_STATIC' => 1,
+ 'LT_PATH_NM' => 1,
+ 'AC_LTDL_SHLIBEXT' => 1,
+ '_LT_AC_LOCK' => 1,
+ '_LT_AC_LANG_RC_CONFIG' => 1,
+ 'LT_SYS_MODULE_PATH' => 1,
+ 'AC_LIBTOOL_POSTDEP_PREDEP' => 1,
+ 'LT_WITH_LTDL' => 1,
+ 'AC_LTDL_SHLIBPATH' => 1,
+ 'AM_AUX_DIR_EXPAND' => 1,
+ '_LT_AC_LANG_F77_CONFIG' => 1,
+ 'AC_LIBTOOL_PROG_COMPILER_NO_RTTI' => 1,
+ '_AM_SET_OPTIONS' => 1,
+ '_LT_COMPILER_OPTION' => 1,
+ '_AM_OUTPUT_DEPENDENCY_COMMANDS' => 1,
+ 'AM_RUN_LOG' => 1,
+ 'AC_LIBTOOL_SYS_OLD_ARCHIVE' => 1,
+ 'AC_LTDL_SYS_DLOPEN_DEPLIBS' => 1,
+ 'AC_LIBTOOL_PICMODE' => 1,
+ 'LT_PATH_LD' => 1,
+ 'AC_CHECK_LIBM' => 1,
+ 'AC_LIBTOOL_SYS_LIB_STRIP' => 1,
+ '_AM_MANGLE_OPTION' => 1,
+ 'AC_LTDL_SYMBOL_USCORE' => 1,
+ 'AC_LIBTOOL_SYS_MAX_CMD_LEN' => 1,
+ 'AM_SET_DEPDIR' => 1,
+ '_LT_CC_BASENAME' => 1,
+ '_LT_LIBOBJ' => 1
+ }
], 'Autom4te::Request' )
);
View
86 autom4te.cache/traces.1
@@ -551,35 +551,61 @@ m4trace:configure.ac:8: -1- m4_pattern_allow([^CXXCPP$])
m4trace:configure.ac:8: -1- AC_SUBST([LD])
m4trace:configure.ac:8: -1- AC_SUBST_TRACE([LD])
m4trace:configure.ac:8: -1- m4_pattern_allow([^LD$])
-m4trace:configure.ac:10: -1- AC_CONFIG_FILES([Makefile src/Makefile])
-m4trace:configure.ac:11: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs])
-m4trace:configure.ac:11: -1- AC_SUBST_TRACE([LIB@&t@OBJS])
-m4trace:configure.ac:11: -1- m4_pattern_allow([^LIB@&t@OBJS$])
-m4trace:configure.ac:11: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs])
-m4trace:configure.ac:11: -1- AC_SUBST_TRACE([LTLIBOBJS])
-m4trace:configure.ac:11: -1- m4_pattern_allow([^LTLIBOBJS$])
-m4trace:configure.ac:11: -1- AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])
-m4trace:configure.ac:11: -1- AC_SUBST([am__EXEEXT_TRUE])
-m4trace:configure.ac:11: -1- AC_SUBST_TRACE([am__EXEEXT_TRUE])
-m4trace:configure.ac:11: -1- m4_pattern_allow([^am__EXEEXT_TRUE$])
-m4trace:configure.ac:11: -1- AC_SUBST([am__EXEEXT_FALSE])
-m4trace:configure.ac:11: -1- AC_SUBST_TRACE([am__EXEEXT_FALSE])
-m4trace:configure.ac:11: -1- m4_pattern_allow([^am__EXEEXT_FALSE$])
-m4trace:configure.ac:11: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_TRUE])
-m4trace:configure.ac:11: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_FALSE])
-m4trace:configure.ac:11: -1- AC_SUBST_TRACE([top_builddir])
-m4trace:configure.ac:11: -1- AC_SUBST_TRACE([top_build_prefix])
-m4trace:configure.ac:11: -1- AC_SUBST_TRACE([srcdir])
-m4trace:configure.ac:11: -1- AC_SUBST_TRACE([abs_srcdir])
-m4trace:configure.ac:11: -1- AC_SUBST_TRACE([top_srcdir])
-m4trace:configure.ac:11: -1- AC_SUBST_TRACE([abs_top_srcdir])
-m4trace:configure.ac:11: -1- AC_SUBST_TRACE([builddir])
-m4trace:configure.ac:11: -1- AC_SUBST_TRACE([abs_builddir])
-m4trace:configure.ac:11: -1- AC_SUBST_TRACE([abs_top_builddir])
-m4trace:configure.ac:11: -1- AC_SUBST_TRACE([INSTALL])
-m4trace:configure.ac:11: -1- AC_SUBST_TRACE([MKDIR_P])
-m4trace:configure.ac:11: -1- AC_REQUIRE_AUX_FILE([ltmain.sh])
-m4trace:configure.ac:13: -1- AH_OUTPUT([HAVE_ZLIB_H], [/* Define to 1 if you have the <zlib.h> header file. */
+m4trace:configure.ac:10: -1- m4_include([m4/ax_python_devel.m4])
+m4trace:configure.ac:11: -1- AC_SUBST([PYTHON_VERSION])
+m4trace:configure.ac:11: -1- AC_SUBST_TRACE([PYTHON_VERSION])
+m4trace:configure.ac:11: -1- m4_pattern_allow([^PYTHON_VERSION$])
+m4trace:configure.ac:11: -1- AC_SUBST([PYTHON])
+m4trace:configure.ac:11: -1- AC_SUBST_TRACE([PYTHON])
+m4trace:configure.ac:11: -1- m4_pattern_allow([^PYTHON$])
+m4trace:configure.ac:11: -1- AC_SUBST([PYTHON_CPPFLAGS])
+m4trace:configure.ac:11: -1- AC_SUBST_TRACE([PYTHON_CPPFLAGS])
+m4trace:configure.ac:11: -1- m4_pattern_allow([^PYTHON_CPPFLAGS$])
+m4trace:configure.ac:11: -1- AC_DEFINE_TRACE_LITERAL([HAVE_PYTHON])
+m4trace:configure.ac:11: -1- m4_pattern_allow([^HAVE_PYTHON$])
+m4trace:configure.ac:11: -1- AH_OUTPUT([HAVE_PYTHON], [/* If available, contains the Python version number currently in use. */
+@%:@undef HAVE_PYTHON])
+m4trace:configure.ac:11: -1- AC_SUBST([PYTHON_LDFLAGS])
+m4trace:configure.ac:11: -1- AC_SUBST_TRACE([PYTHON_LDFLAGS])
+m4trace:configure.ac:11: -1- m4_pattern_allow([^PYTHON_LDFLAGS$])
+m4trace:configure.ac:11: -1- AC_SUBST([PYTHON_SITE_PKG])
+m4trace:configure.ac:11: -1- AC_SUBST_TRACE([PYTHON_SITE_PKG])
+m4trace:configure.ac:11: -1- m4_pattern_allow([^PYTHON_SITE_PKG$])
+m4trace:configure.ac:11: -1- AC_SUBST([PYTHON_EXTRA_LIBS])
+m4trace:configure.ac:11: -1- AC_SUBST_TRACE([PYTHON_EXTRA_LIBS])
+m4trace:configure.ac:11: -1- m4_pattern_allow([^PYTHON_EXTRA_LIBS$])
+m4trace:configure.ac:11: -1- AC_SUBST([PYTHON_EXTRA_LDFLAGS])
+m4trace:configure.ac:11: -1- AC_SUBST_TRACE([PYTHON_EXTRA_LDFLAGS])
+m4trace:configure.ac:11: -1- m4_pattern_allow([^PYTHON_EXTRA_LDFLAGS$])
+m4trace:configure.ac:13: -1- AC_CONFIG_FILES([Makefile src/Makefile])
+m4trace:configure.ac:14: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs])
+m4trace:configure.ac:14: -1- AC_SUBST_TRACE([LIB@&t@OBJS])
+m4trace:configure.ac:14: -1- m4_pattern_allow([^LIB@&t@OBJS$])
+m4trace:configure.ac:14: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs])
+m4trace:configure.ac:14: -1- AC_SUBST_TRACE([LTLIBOBJS])
+m4trace:configure.ac:14: -1- m4_pattern_allow([^LTLIBOBJS$])
+m4trace:configure.ac:14: -1- AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])
+m4trace:configure.ac:14: -1- AC_SUBST([am__EXEEXT_TRUE])
+m4trace:configure.ac:14: -1- AC_SUBST_TRACE([am__EXEEXT_TRUE])
+m4trace:configure.ac:14: -1- m4_pattern_allow([^am__EXEEXT_TRUE$])
+m4trace:configure.ac:14: -1- AC_SUBST([am__EXEEXT_FALSE])
+m4trace:configure.ac:14: -1- AC_SUBST_TRACE([am__EXEEXT_FALSE])
+m4trace:configure.ac:14: -1- m4_pattern_allow([^am__EXEEXT_FALSE$])
+m4trace:configure.ac:14: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_TRUE])
+m4trace:configure.ac:14: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_FALSE])
+m4trace:configure.ac:14: -1- AC_SUBST_TRACE([top_builddir])
+m4trace:configure.ac:14: -1- AC_SUBST_TRACE([top_build_prefix])
+m4trace:configure.ac:14: -1- AC_SUBST_TRACE([srcdir])
+m4trace:configure.ac:14: -1- AC_SUBST_TRACE([abs_srcdir])
+m4trace:configure.ac:14: -1- AC_SUBST_TRACE([top_srcdir])
+m4trace:configure.ac:14: -1- AC_SUBST_TRACE([abs_top_srcdir])
+m4trace:configure.ac:14: -1- AC_SUBST_TRACE([builddir])
+m4trace:configure.ac:14: -1- AC_SUBST_TRACE([abs_builddir])
+m4trace:configure.ac:14: -1- AC_SUBST_TRACE([abs_top_builddir])
+m4trace:configure.ac:14: -1- AC_SUBST_TRACE([INSTALL])
+m4trace:configure.ac:14: -1- AC_SUBST_TRACE([MKDIR_P])
+m4trace:configure.ac:14: -1- AC_REQUIRE_AUX_FILE([ltmain.sh])
+m4trace:configure.ac:16: -1- AH_OUTPUT([HAVE_ZLIB_H], [/* Define to 1 if you have the <zlib.h> header file. */
@%:@undef HAVE_ZLIB_H])
-m4trace:configure.ac:13: -1- AH_OUTPUT([HAVE_MATH_H], [/* Define to 1 if you have the <math.h> header file. */
+m4trace:configure.ac:16: -1- AH_OUTPUT([HAVE_MATH_H], [/* Define to 1 if you have the <math.h> header file. */
@%:@undef HAVE_MATH_H])
View
3  config.h
@@ -13,6 +13,9 @@
/* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
+/* If available, contains the Python version number currently in use. */
+#define HAVE_PYTHON "2.7"
+
/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1
View
3  config.h.in
@@ -12,6 +12,9 @@
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
+/* If available, contains the Python version number currently in use. */
+#undef HAVE_PYTHON
+
/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
View
781 config.log
@@ -4,7 +4,7 @@ running configure, to aid debugging if configure makes a mistake.
It was created by Gubbins configure 0.1, which was
generated by GNU Autoconf 2.68. Invocation command line was
- $ ./configure
+ $ ./configure --no-create --no-recursion
## --------- ##
## Platform. ##
@@ -44,37 +44,37 @@ PATH: /home/aidan/AndroidSDK/android-sdk-linux_x86/tools
## Core tests. ##
## ----------- ##
-configure:2350: checking for a BSD-compatible install
-configure:2418: result: /usr/bin/install -c
-configure:2429: checking whether build environment is sane
-configure:2479: result: yes
-configure:2620: checking for a thread-safe mkdir -p
-configure:2659: result: /bin/mkdir -p
-configure:2672: checking for gawk
-configure:2688: found /usr/bin/gawk
-configure:2699: result: gawk
-configure:2710: checking whether make sets $(MAKE)
-configure:2732: result: yes
-configure:2845: checking build system type
-configure:2859: result: x86_64-unknown-linux-gnu
-configure:2879: checking host system type
-configure:2892: result: x86_64-unknown-linux-gnu
-configure:2933: checking how to print strings
-configure:2960: result: printf
-configure:2993: checking for style of include used by make
-configure:3021: result: GNU
-configure:3091: checking for gcc
-configure:3107: found /usr/bin/gcc
-configure:3118: result: gcc
-configure:3347: checking for C compiler version
-configure:3356: gcc --version >&5
+configure:2362: checking for a BSD-compatible install
+configure:2430: result: /usr/bin/install -c
+configure:2441: checking whether build environment is sane
+configure:2491: result: yes
+configure:2632: checking for a thread-safe mkdir -p
+configure:2671: result: /bin/mkdir -p
+configure:2684: checking for gawk
+configure:2700: found /usr/bin/gawk
+configure:2711: result: gawk
+configure:2722: checking whether make sets $(MAKE)
+configure:2744: result: yes
+configure:2857: checking build system type
+configure:2871: result: x86_64-unknown-linux-gnu
+configure:2891: checking host system type
+configure:2904: result: x86_64-unknown-linux-gnu
+configure:2945: checking how to print strings
+configure:2972: result: printf
+configure:3005: checking for style of include used by make
+configure:3033: result: GNU
+configure:3103: checking for gcc
+configure:3119: found /usr/bin/gcc
+configure:3130: result: gcc
+configure:3359: checking for C compiler version
+configure:3368: gcc --version >&5
gcc (GCC) 4.6.3 20120306 (Red Hat 4.6.3-2)
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-configure:3367: $? = 0
-configure:3356: gcc -v >&5
+configure:3379: $? = 0
+configure:3368: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.6.3/lto-wrapper
@@ -82,136 +82,136 @@ Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.6.3 20120306 (Red Hat 4.6.3-2) (GCC)
-configure:3367: $? = 0
-configure:3356: gcc -V >&5
+configure:3379: $? = 0
+configure:3368: gcc -V >&5
gcc: error: unrecognized option '-V'
gcc: fatal error: no input files
compilation terminated.
-configure:3367: $? = 4
-configure:3356: gcc -qversion >&5
+configure:3379: $? = 4
+configure:3368: gcc -qversion >&5
gcc: error: unrecognized option '-qversion'
gcc: fatal error: no input files
compilation terminated.
-configure:3367: $? = 4
-configure:3387: checking whether the C compiler works
-configure:3409: gcc conftest.c >&5
-configure:3413: $? = 0
-configure:3461: result: yes
-configure:3464: checking for C compiler default output file name
-configure:3466: result: a.out
-configure:3472: checking for suffix of executables
-configure:3479: gcc -o conftest conftest.c >&5
-configure:3483: $? = 0
-configure:3505: result:
-configure:3527: checking whether we are cross compiling
-configure:3535: gcc -o conftest conftest.c >&5
-configure:3539: $? = 0
-configure:3546: ./conftest
-configure:3550: $? = 0
-configure:3565: result: no
-configure:3570: checking for suffix of object files
-configure:3592: gcc -c conftest.c >&5
-configure:3596: $? = 0
-configure:3617: result: o
-configure:3621: checking whether we are using the GNU C compiler
-configure:3640: gcc -c conftest.c >&5
-configure:3640: $? = 0
-configure:3649: result: yes
-configure:3658: checking whether gcc accepts -g
-configure:3678: gcc -c -g conftest.c >&5
-configure:3678: $? = 0
-configure:3719: result: yes
-configure:3736: checking for gcc option to accept ISO C89
-configure:3800: gcc -c -g -O2 conftest.c >&5
-configure:3800: $? = 0
-configure:3813: result: none needed
-configure:3835: checking dependency style of gcc
-configure:3945: result: gcc3
-configure:3960: checking for a sed that does not truncate output
-configure:4024: result: /bin/sed
-configure:4042: checking for grep that handles long lines and -e
-configure:4100: result: /bin/grep
-configure:4105: checking for egrep
-configure:4167: result: /bin/grep -E
-configure:4172: checking for fgrep
-configure:4234: result: /bin/grep -F
-configure:4269: checking for ld used by gcc
-configure:4336: result: /usr/bin/ld
-configure:4343: checking if the linker (/usr/bin/ld) is GNU ld
-configure:4358: result: yes
-configure:4370: checking for BSD- or MS-compatible name lister (nm)
-configure:4419: result: /usr/bin/nm -B
-configure:4549: checking the name lister (/usr/bin/nm -B) interface
-configure:4556: gcc -c -g -O2 conftest.c >&5
-configure:4559: /usr/bin/nm -B "conftest.o"
-configure:4562: output
+configure:3379: $? = 4
+configure:3399: checking whether the C compiler works
+configure:3421: gcc conftest.c >&5
+configure:3425: $? = 0
+configure:3473: result: yes
+configure:3476: checking for C compiler default output file name
+configure:3478: result: a.out
+configure:3484: checking for suffix of executables
+configure:3491: gcc -o conftest conftest.c >&5
+configure:3495: $? = 0
+configure:3517: result:
+configure:3539: checking whether we are cross compiling
+configure:3547: gcc -o conftest conftest.c >&5
+configure:3551: $? = 0
+configure:3558: ./conftest
+configure:3562: $? = 0
+configure:3577: result: no
+configure:3582: checking for suffix of object files
+configure:3604: gcc -c conftest.c >&5
+configure:3608: $? = 0
+configure:3629: result: o
+configure:3633: checking whether we are using the GNU C compiler
+configure:3652: gcc -c conftest.c >&5
+configure:3652: $? = 0
+configure:3661: result: yes
+configure:3670: checking whether gcc accepts -g
+configure:3690: gcc -c -g conftest.c >&5
+configure:3690: $? = 0
+configure:3731: result: yes
+configure:3748: checking for gcc option to accept ISO C89
+configure:3812: gcc -c -g -O2 conftest.c >&5
+configure:3812: $? = 0
+configure:3825: result: none needed
+configure:3847: checking dependency style of gcc
+configure:3957: result: gcc3
+configure:3972: checking for a sed that does not truncate output
+configure:4036: result: /bin/sed
+configure:4054: checking for grep that handles long lines and -e
+configure:4112: result: /bin/grep
+configure:4117: checking for egrep
+configure:4179: result: /bin/grep -E
+configure:4184: checking for fgrep
+configure:4246: result: /bin/grep -F
+configure:4281: checking for ld used by gcc
+configure:4348: result: /usr/bin/ld
+configure:4355: checking if the linker (/usr/bin/ld) is GNU ld
+configure:4370: result: yes
+configure:4382: checking for BSD- or MS-compatible name lister (nm)
+configure:4431: result: /usr/bin/nm -B
+configure:4561: checking the name lister (/usr/bin/nm -B) interface
+configure:4568: gcc -c -g -O2 conftest.c >&5
+configure:4571: /usr/bin/nm -B "conftest.o"
+configure:4574: output
0000000000000000 B some_variable
-configure:4569: result: BSD nm
-configure:4572: checking whether ln -s works
-configure:4576: result: yes
-configure:4584: checking the maximum length of command line arguments
-configure:4709: result: 1572864
-configure:4726: checking whether the shell understands some XSI constructs
-configure:4736: result: yes
-configure:4740: checking whether the shell understands "+="
-configure:4746: result: yes
-configure:4781: checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format
-configure:4821: result: func_convert_file_noop
-configure:4828: checking how to convert x86_64-unknown-linux-gnu file names to toolchain format
-configure:4848: result: func_convert_file_noop
-configure:4855: checking for /usr/bin/ld option to reload object files
-configure:4862: result: -r
-configure:4936: checking for objdump
-configure:4952: found /usr/bin/objdump
-configure:4963: result: objdump
-configure:4995: checking how to recognize dependent libraries
-configure:5197: result: pass_all
-configure:5282: checking for dlltool
-configure:5312: result: no
-configure:5342: checking how to associate runtime and link libraries
-configure:5369: result: printf %s\n
-configure:5430: checking for ar
-configure:5446: found /usr/bin/ar
-configure:5457: result: ar
-configure:5494: checking for archiver @FILE support
-configure:5511: gcc -c -g -O2 conftest.c >&5
-configure:5511: $? = 0
-configure:5514: ar cru libconftest.a @conftest.lst >&5
-configure:5517: $? = 0
-configure:5522: ar cru libconftest.a @conftest.lst >&5
+configure:4581: result: BSD nm
+configure:4584: checking whether ln -s works
+configure:4588: result: yes
+configure:4596: checking the maximum length of command line arguments
+configure:4721: result: 1572864
+configure:4738: checking whether the shell understands some XSI constructs
+configure:4748: result: yes
+configure:4752: checking whether the shell understands "+="
+configure:4758: result: yes
+configure:4793: checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format
+configure:4833: result: func_convert_file_noop
+configure:4840: checking how to convert x86_64-unknown-linux-gnu file names to toolchain format
+configure:4860: result: func_convert_file_noop
+configure:4867: checking for /usr/bin/ld option to reload object files
+configure:4874: result: -r
+configure:4948: checking for objdump
+configure:4964: found /usr/bin/objdump
+configure:4975: result: objdump
+configure:5007: checking how to recognize dependent libraries
+configure:5209: result: pass_all
+configure:5294: checking for dlltool
+configure:5324: result: no
+configure:5354: checking how to associate runtime and link libraries
+configure:5381: result: printf %s\n
+configure:5442: checking for ar
+configure:5458: found /usr/bin/ar
+configure:5469: result: ar
+configure:5506: checking for archiver @FILE support
+configure:5523: gcc -c -g -O2 conftest.c >&5
+configure:5523: $? = 0
+configure:5526: ar cru libconftest.a @conftest.lst >&5
+configure:5529: $? = 0
+configure:5534: ar cru libconftest.a @conftest.lst >&5
ar: conftest.o: No such file or directory
-configure:5525: $? = 1
-configure:5537: result: @
-configure:5595: checking for strip
-configure:5611: found /usr/bin/strip
-configure:5622: result: strip
-configure:5694: checking for ranlib
-configure:5710: found /usr/bin/ranlib
-configure:5721: result: ranlib
-configure:5823: checking command to parse /usr/bin/nm -B output from gcc object
-configure:5942: gcc -c -g -O2 conftest.c >&5
-configure:5945: $? = 0
-configure:5949: /usr/bin/nm -B conftest.o \| sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' \> conftest.nm
-configure:5952: $? = 0
-configure:6018: gcc -o conftest -g -O2 conftest.c conftstm.o >&5
-configure:6021: $? = 0
-configure:6059: result: ok
-configure:6096: checking for sysroot
-configure:6126: result: no
-configure:6203: gcc -c -g -O2 conftest.c >&5
-configure:6206: $? = 0
-configure:6369: checking for mt
-configure:6399: result: no
-configure:6419: checking if : is a manifest tool
-configure:6425: : '-?'
-configure:6433: result: no
-configure:7065: checking how to run the C preprocessor
-configure:7096: gcc -E conftest.c
-configure:7096: $? = 0
-configure:7110: gcc -E conftest.c
+configure:5537: $? = 1
+configure:5549: result: @
+configure:5607: checking for strip
+configure:5623: found /usr/bin/strip
+configure:5634: result: strip
+configure:5706: checking for ranlib
+configure:5722: found /usr/bin/ranlib
+configure:5733: result: ranlib
+configure:5835: checking command to parse /usr/bin/nm -B output from gcc object
+configure:5954: gcc -c -g -O2 conftest.c >&5
+configure:5957: $? = 0
+configure:5961: /usr/bin/nm -B conftest.o \| sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' \> conftest.nm
+configure:5964: $? = 0
+configure:6030: gcc -o conftest -g -O2 conftest.c conftstm.o >&5
+configure:6033: $? = 0
+configure:6071: result: ok
+configure:6108: checking for sysroot
+configure:6138: result: no
+configure:6215: gcc -c -g -O2 conftest.c >&5
+configure:6218: $? = 0
+configure:6381: checking for mt
+configure:6411: result: no
+configure:6431: checking if : is a manifest tool
+configure:6437: : '-?'
+configure:6445: result: no
+configure:7077: checking how to run the C preprocessor
+configure:7108: gcc -E conftest.c
+configure:7108: $? = 0
+configure:7122: gcc -E conftest.c
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
-configure:7110: $? = 1
+configure:7122: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Gubbins"
@@ -224,13 +224,13 @@ configure: failed program was:
| #define VERSION "0.1"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
-configure:7135: result: gcc -E
-configure:7155: gcc -E conftest.c
-configure:7155: $? = 0
-configure:7169: gcc -E conftest.c
+configure:7147: result: gcc -E
+configure:7167: gcc -E conftest.c
+configure:7167: $? = 0
+configure:7181: gcc -E conftest.c
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
-configure:7169: $? = 1
+configure:7181: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Gubbins"
@@ -243,108 +243,108 @@ configure: failed program was:
| #define VERSION "0.1"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
-configure:7198: checking for ANSI C header files
-configure:7218: gcc -c -g -O2 conftest.c >&5
-configure:7218: $? = 0
-configure:7291: gcc -o conftest -g -O2 conftest.c >&5
-configure:7291: $? = 0
-configure:7291: ./conftest
-configure:7291: $? = 0
-configure:7302: result: yes
-configure:7315: checking for sys/types.h
-configure:7315: gcc -c -g -O2 conftest.c >&5
-configure:7315: $? = 0
-configure:7315: result: yes
-configure:7315: checking for sys/stat.h
-configure:7315: gcc -c -g -O2 conftest.c >&5
-configure:7315: $? = 0
-configure:7315: result: yes
-configure:7315: checking for stdlib.h
-configure:7315: gcc -c -g -O2 conftest.c >&5
-configure:7315: $? = 0
-configure:7315: result: yes
-configure:7315: checking for string.h
-configure:7315: gcc -c -g -O2 conftest.c >&5
-configure:7315: $? = 0
-configure:7315: result: yes
-configure:7315: checking for memory.h
-configure:7315: gcc -c -g -O2 conftest.c >&5
-configure:7315: $? = 0
-configure:7315: result: yes
-configure:7315: checking for strings.h
-configure:7315: gcc -c -g -O2 conftest.c >&5
-configure:7315: $? = 0
-configure:7315: result: yes
-configure:7315: checking for inttypes.h
-configure:7315: gcc -c -g -O2 conftest.c >&5
-configure:7315: $? = 0
-configure:7315: result: yes
-configure:7315: checking for stdint.h
-configure:7315: gcc -c -g -O2 conftest.c >&5
-configure:7315: $? = 0
-configure:7315: result: yes
-configure:7315: checking for unistd.h
-configure:7315: gcc -c -g -O2 conftest.c >&5
-configure:7315: $? = 0
-configure:7315: result: yes
-configure:7329: checking for dlfcn.h
-configure:7329: gcc -c -g -O2 conftest.c >&5
-configure:7329: $? = 0
-configure:7329: result: yes
-configure:7516: checking for objdir
-configure:7531: result: .libs
-configure:7798: checking if gcc supports -fno-rtti -fno-exceptions
-configure:7816: gcc -c -g -O2 -fno-rtti -fno-exceptions conftest.c >&5
+configure:7210: checking for ANSI C header files
+configure:7230: gcc -c -g -O2 conftest.c >&5
+configure:7230: $? = 0
+configure:7303: gcc -o conftest -g -O2 conftest.c >&5
+configure:7303: $? = 0
+configure:7303: ./conftest
+configure:7303: $? = 0
+configure:7314: result: yes
+configure:7327: checking for sys/types.h
+configure:7327: gcc -c -g -O2 conftest.c >&5
+configure:7327: $? = 0
+configure:7327: result: yes
+configure:7327: checking for sys/stat.h
+configure:7327: gcc -c -g -O2 conftest.c >&5
+configure:7327: $? = 0
+configure:7327: result: yes
+configure:7327: checking for stdlib.h
+configure:7327: gcc -c -g -O2 conftest.c >&5
+configure:7327: $? = 0
+configure:7327: result: yes
+configure:7327: checking for string.h
+configure:7327: gcc -c -g -O2 conftest.c >&5
+configure:7327: $? = 0
+configure:7327: result: yes
+configure:7327: checking for memory.h
+configure:7327: gcc -c -g -O2 conftest.c >&5
+configure:7327: $? = 0
+configure:7327: result: yes
+configure:7327: checking for strings.h
+configure:7327: gcc -c -g -O2 conftest.c >&5
+configure:7327: $? = 0
+configure:7327: result: yes
+configure:7327: checking for inttypes.h
+configure:7327: gcc -c -g -O2 conftest.c >&5
+configure:7327: $? = 0
+configure:7327: result: yes
+configure:7327: checking for stdint.h
+configure:7327: gcc -c -g -O2 conftest.c >&5
+configure:7327: $? = 0
+configure:7327: result: yes
+configure:7327: checking for unistd.h
+configure:7327: gcc -c -g -O2 conftest.c >&5
+configure:7327: $? = 0
+configure:7327: result: yes
+configure:7341: checking for dlfcn.h
+configure:7341: gcc -c -g -O2 conftest.c >&5
+configure:7341: $? = 0
+configure:7341: result: yes
+configure:7528: checking for objdir
+configure:7543: result: .libs
+configure:7810: checking if gcc supports -fno-rtti -fno-exceptions
+configure:7828: gcc -c -g -O2 -fno-rtti -fno-exceptions conftest.c >&5
cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC++ but not for C [enabled by default]
-configure:7820: $? = 0
-configure:7833: result: no
-configure:8143: checking for gcc option to produce PIC
-configure:8150: result: -fPIC -DPIC
-configure:8158: checking if gcc PIC flag -fPIC -DPIC works
-configure:8176: gcc -c -g -O2 -fPIC -DPIC -DPIC conftest.c >&5
-configure:8180: $? = 0
-configure:8193: result: yes
-configure:8222: checking if gcc static flag -static works
-configure:8250: result: no
-configure:8265: checking if gcc supports -c -o file.o
-configure:8286: gcc -c -g -O2 -o out/conftest2.o conftest.c >&5
-configure:8290: $? = 0
-configure:8312: result: yes
-configure:8320: checking if gcc supports -c -o file.o
-configure:8367: result: yes
-configure:8400: checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries
-configure:9558: result: yes
-configure:9595: checking whether -lc should be explicitly linked in
-configure:9603: gcc -c -g -O2 conftest.c >&5
-configure:9606: $? = 0
-configure:9621: gcc -shared -fPIC -DPIC conftest.o -v -Wl,-soname -Wl,conftest -o conftest 2\>\&1 \| /bin/grep -lc \>/dev/null 2\>\&1
-configure:9624: $? = 0
-configure:9638: result: no
-configure:9803: checking dynamic linker characteristics
-configure:10317: gcc -o conftest -g -O2 -Wl,-rpath -Wl,/foo conftest.c >&5
-configure:10317: $? = 0
-configure:10543: result: GNU/Linux ld.so
-configure:10650: checking how to hardcode library paths into programs
-configure:10675: result: immediate
-configure:11215: checking whether stripping libraries is possible
-configure:11220: result: yes
-configure:11255: checking if libtool supports shared libraries
-configure:11257: result: yes
-configure:11260: checking whether to build shared libraries
-configure:11281: result: yes
-configure:11284: checking whether to build static libraries
-configure:11288: result: yes
-configure:11371: checking for gcc
-configure:11398: result: gcc
-configure:11627: checking for C compiler version
-configure:11636: gcc --version >&5
+configure:7832: $? = 0
+configure:7845: result: no
+configure:8155: checking for gcc option to produce PIC
+configure:8162: result: -fPIC -DPIC
+configure:8170: checking if gcc PIC flag -fPIC -DPIC works
+configure:8188: gcc -c -g -O2 -fPIC -DPIC -DPIC conftest.c >&5
+configure:8192: $? = 0
+configure:8205: result: yes
+configure:8234: checking if gcc static flag -static works
+configure:8262: result: no
+configure:8277: checking if gcc supports -c -o file.o
+configure:8298: gcc -c -g -O2 -o out/conftest2.o conftest.c >&5
+configure:8302: $? = 0
+configure:8324: result: yes
+configure:8332: checking if gcc supports -c -o file.o
+configure:8379: result: yes
+configure:8412: checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries
+configure:9570: result: yes
+configure:9607: checking whether -lc should be explicitly linked in
+configure:9615: gcc -c -g -O2 conftest.c >&5
+configure:9618: $? = 0
+configure:9633: gcc -shared -fPIC -DPIC conftest.o -v -Wl,-soname -Wl,conftest -o conftest 2\>\&1 \| /bin/grep -lc \>/dev/null 2\>\&1
+configure:9636: $? = 0
+configure:9650: result: no
+configure:9815: checking dynamic linker characteristics
+configure:10329: gcc -o conftest -g -O2 -Wl,-rpath -Wl,/foo conftest.c >&5
+configure:10329: $? = 0
+configure:10555: result: GNU/Linux ld.so
+configure:10662: checking how to hardcode library paths into programs
+configure:10687: result: immediate
+configure:11227: checking whether stripping libraries is possible
+configure:11232: result: yes
+configure:11267: checking if libtool supports shared libraries
+configure:11269: result: yes
+configure:11272: checking whether to build shared libraries
+configure:11293: result: yes
+configure:11296: checking whether to build static libraries
+configure:11300: result: yes
+configure:11383: checking for gcc
+configure:11410: result: gcc
+configure:11639: checking for C compiler version
+configure:11648: gcc --version >&5
gcc (GCC) 4.6.3 20120306 (Red Hat 4.6.3-2)
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-configure:11647: $? = 0
-configure:11636: gcc -v >&5
+configure:11659: $? = 0
+configure:11648: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.6.3/lto-wrapper
@@ -352,37 +352,37 @@ Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.6.3 20120306 (Red Hat 4.6.3-2) (GCC)
-configure:11647: $? = 0
-configure:11636: gcc -V >&5
+configure:11659: $? = 0
+configure:11648: gcc -V >&5
gcc: error: unrecognized option '-V'
gcc: fatal error: no input files
compilation terminated.
-configure:11647: $? = 4
-configure:11636: gcc -qversion >&5
+configure:11659: $? = 4
+configure:11648: gcc -qversion >&5
gcc: error: unrecognized option '-qversion'
gcc: fatal error: no input files
compilation terminated.
-configure:11647: $? = 4
-configure:11651: checking whether we are using the GNU C compiler
-configure:11679: result: yes
-configure:11688: checking whether gcc accepts -g
-configure:11749: result: yes
-configure:11766: checking for gcc option to accept ISO C89
-configure:11843: result: none needed
-configure:11865: checking dependency style of gcc
-configure:11975: result: gcc3
-configure:12048: checking for g++
-configure:12064: found /usr/bin/g++
-configure:12075: result: g++
-configure:12102: checking for C++ compiler version
-configure:12111: g++ --version >&5
+configure:11659: $? = 4
+configure:11663: checking whether we are using the GNU C compiler
+configure:11691: result: yes
+configure:11700: checking whether gcc accepts -g
+configure:11761: result: yes
+configure:11778: checking for gcc option to accept ISO C89
+configure:11855: result: none needed
+configure:11877: checking dependency style of gcc
+configure:11987: result: gcc3
+configure:12060: checking for g++
+configure:12076: found /usr/bin/g++
+configure:12087: result: g++
+configure:12114: checking for C++ compiler version
+configure:12123: g++ --version >&5
g++ (GCC) 4.6.3 20120306 (Red Hat 4.6.3-2)
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-configure:12122: $? = 0
-configure:12111: g++ -v >&5
+configure:12134: $? = 0
+configure:12123: g++ -v >&5
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.6.3/lto-wrapper
@@ -390,34 +390,34 @@ Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.6.3 20120306 (Red Hat 4.6.3-2) (GCC)
-configure:12122: $? = 0
-configure:12111: g++ -V >&5
+configure:12134: $? = 0
+configure:12123: g++ -V >&5
g++: error: unrecognized option '-V'
g++: fatal error: no input files
compilation terminated.
-configure:12122: $? = 4
-configure:12111: g++ -qversion >&5
+configure:12134: $? = 4
+configure:12123: g++ -qversion >&5
g++: error: unrecognized option '-qversion'
g++: fatal error: no input files
compilation terminated.
-configure:12122: $? = 4
-configure:12126: checking whether we are using the GNU C++ compiler
-configure:12145: g++ -c conftest.cpp >&5
-configure:12145: $? = 0
-configure:12154: result: yes
-configure:12163: checking whether g++ accepts -g
-configure:12183: g++ -c -g conftest.cpp >&5
-configure:12183: $? = 0
-configure:12224: result: yes
-configure:12249: checking dependency style of g++
-configure:12359: result: gcc3
-configure:12392: checking how to run the C++ preprocessor
-configure:12419: g++ -E conftest.cpp
-configure:12419: $? = 0
-configure:12433: g++ -E conftest.cpp
+configure:12134: $? = 4
+configure:12138: checking whether we are using the GNU C++ compiler
+configure:12157: g++ -c conftest.cpp >&5
+configure:12157: $? = 0
+configure:12166: result: yes
+configure:12175: checking whether g++ accepts -g
+configure:12195: g++ -c -g conftest.cpp >&5
+configure:12195: $? = 0
+configure:12236: result: yes
+configure:12261: checking dependency style of g++
+configure:12371: result: gcc3
+configure:12404: checking how to run the C++ preprocessor
+configure:12431: g++ -E conftest.cpp
+configure:12431: $? = 0
+configure:12445: g++ -E conftest.cpp
conftest.cpp:23:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
-configure:12433: $? = 1
+configure:12445: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Gubbins"
@@ -442,13 +442,13 @@ configure: failed program was:
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
-configure:12458: result: g++ -E
-configure:12478: g++ -E conftest.cpp
-configure:12478: $? = 0
-configure:12492: g++ -E conftest.cpp
+configure:12470: result: g++ -E
+configure:12490: g++ -E conftest.cpp
+configure:12490: $? = 0
+configure:12504: g++ -E conftest.cpp
conftest.cpp:23:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
-configure:12492: $? = 1
+configure:12504: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Gubbins"
@@ -473,77 +473,76 @@ configure: failed program was:
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
-configure:12662: checking for ld used by g++
-configure:12729: result: /usr/bin/ld -m elf_x86_64
-configure:12736: checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld
-configure:12751: result: yes
-configure:12806: checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries
-configure:13810: result: yes
-configure:13845: g++ -c -g -O2 conftest.cpp >&5
-configure:13848: $? = 0
-configure:14368: checking for g++ option to produce PIC
-configure:14375: result: -fPIC -DPIC
-configure:14383: checking if g++ PIC flag -fPIC -DPIC works
-configure:14401: g++ -c -g -O2 -fPIC -DPIC -DPIC conftest.cpp >&5
-configure:14405: $? = 0
-configure:14418: result: yes
-configure:14441: checking if g++ static flag -static works
-configure:14469: result: no
-configure:14481: checking if g++ supports -c -o file.o
-configure:14502: g++ -c -g -O2 -o out/conftest2.o conftest.cpp >&5
-configure:14506: $? = 0
-configure:14528: result: yes
-configure:14533: checking if g++ supports -c -o file.o
-configure:14580: result: yes
-configure:14610: checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries
-configure:14644: result: yes
-configure:14787: checking dynamic linker characteristics
-configure:15461: result: GNU/Linux ld.so
-configure:15514: checking how to hardcode library paths into programs
-configure:15539: result: immediate
-configure:15720: creating ./config.status
-
-## ---------------------- ##
-## Running config.status. ##
-## ---------------------- ##
-
-This file was extended by Gubbins config.status 0.1, which was
-generated by GNU Autoconf 2.68. Invocation command line was
-
- CONFIG_FILES =
- CONFIG_HEADERS =
- CONFIG_LINKS =
- CONFIG_COMMANDS =
- $ ./config.status
-
-on SillyFace
-
-config.status:1152: creating Makefile
-config.status:1152: creating src/Makefile
-config.status:1152: creating config.h
-config.status:1333: config.h is unchanged
-config.status:1381: executing depfiles commands
-config.status:1381: executing libtool commands
-configure:18235: checking zlib.h usability
-configure:18235: gcc -c -g -O2 conftest.c >&5
-configure:18235: $? = 0
-configure:18235: result: yes
-configure:18235: checking zlib.h presence
-configure:18235: gcc -E conftest.c
-configure:18235: $? = 0
-configure:18235: result: yes
-configure:18235: checking for zlib.h
-configure:18235: result: yes
-configure:18235: checking math.h usability
-configure:18235: gcc -c -g -O2 conftest.c >&5
-configure:18235: $? = 0
-configure:18235: result: yes
-configure:18235: checking math.h presence
-configure:18235: gcc -E conftest.c
-configure:18235: $? = 0
-configure:18235: result: yes
-configure:18235: checking for math.h
-configure:18235: result: yes
+configure:12674: checking for ld used by g++
+configure:12741: result: /usr/bin/ld -m elf_x86_64
+configure:12748: checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld
+configure:12763: result: yes
+configure:12818: checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries
+configure:13822: result: yes
+configure:13857: g++ -c -g -O2 conftest.cpp >&5
+configure:13860: $? = 0
+configure:14380: checking for g++ option to produce PIC
+configure:14387: result: -fPIC -DPIC
+configure:14395: checking if g++ PIC flag -fPIC -DPIC works
+configure:14413: g++ -c -g -O2 -fPIC -DPIC -DPIC conftest.cpp >&5
+configure:14417: $? = 0
+configure:14430: result: yes
+configure:14453: checking if g++ static flag -static works
+configure:14481: result: no
+configure:14493: checking if g++ supports -c -o file.o
+configure:14514: g++ -c -g -O2 -o out/conftest2.o conftest.cpp >&5
+configure:14518: $? = 0
+configure:14540: result: yes
+configure:14545: checking if g++ supports -c -o file.o
+configure:14592: result: yes
+configure:14622: checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries
+configure:14656: result: yes
+configure:14799: checking dynamic linker characteristics
+configure:15473: result: GNU/Linux ld.so
+configure:15526: checking how to hardcode library paths into programs
+configure:15551: result: immediate
+configure:15691: checking for python
+configure:15709: found /usr/bin/python
+configure:15721: result: /usr/bin/python
+configure:15737: checking for a version of Python >= '2.1.0'
+configure:15763: result: yes
+configure:15794: checking for the distutils Python package
+configure:15798: result: yes
+configure:15812: checking for Python include path
+configure:15822: result: -I/usr/include/python2.7
+configure:15829: checking for Python library path
+configure:15914: result: -L/usr/lib64 -lpython2.7
+configure:15921: checking for Python site-packages path
+configure:15927: result: /usr/lib/python2.7/site-packages
+configure:15934: checking python extra libraries
+configure:15941: result: -lpthread -ldl -lutil
+configure:15948: checking python extra linking flags
+configure:15955: result: -Xlinker -export-dynamic
+configure:15962: checking consistency of all components of python development environment
+configure:15988: gcc -o conftest -g -O2 -I/usr/include/python2.7 conftest.c -L/usr/lib64 -lpython2.7 -Xlinker -export-dynamic -lpthread -ldl -lutil >&5
+configure:15988: $? = 0
+configure:16005: result: yes
+configure:16171: creating ./config.status
+configure:18686: checking zlib.h usability
+configure:18686: gcc -c -g -O2 conftest.c >&5
+configure:18686: $? = 0
+configure:18686: result: yes
+configure:18686: checking zlib.h presence
+configure:18686: gcc -E conftest.c
+configure:18686: $? = 0
+configure:18686: result: yes
+configure:18686: checking for zlib.h
+configure:18686: result: yes
+configure:18686: checking math.h usability
+configure:18686: gcc -c -g -O2 conftest.c >&5
+configure:18686: $? = 0
+configure:18686: result: yes
+configure:18686: checking math.h presence
+configure:18686: gcc -E conftest.c
+configure:18686: $? = 0
+configure:18686: result: yes
+configure:18686: checking for math.h
+configure:18686: result: yes
## ---------------- ##
## Cache variables. ##
@@ -572,6 +571,8 @@ ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
+ac_cv_env_PYTHON_VERSION_set=
+ac_cv_env_PYTHON_VERSION_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
@@ -596,6 +597,7 @@ ac_cv_objext=o
ac_cv_path_EGREP='/bin/grep -E'
ac_cv_path_FGREP='/bin/grep -F'
ac_cv_path_GREP=/bin/grep
+ac_cv_path_PYTHON=/usr/bin/python
ac_cv_path_SED=/bin/sed
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
@@ -712,6 +714,13 @@ PACKAGE_TARNAME='gubbins'
PACKAGE_URL=''
PACKAGE_VERSION='0.1'
PATH_SEPARATOR=':'
+PYTHON='/usr/bin/python'
+PYTHON_CPPFLAGS='-I/usr/include/python2.7'
+PYTHON_EXTRA_LDFLAGS='-Xlinker -export-dynamic'
+PYTHON_EXTRA_LIBS=' -lpthread -ldl -lutil'
+PYTHON_LDFLAGS='-L/usr/lib64 -lpython2.7'
+PYTHON_SITE_PKG='/usr/lib/python2.7/site-packages'
+PYTHON_VERSION=''
RANLIB='ranlib'
SED='/bin/sed'
SET_MAKE=''
@@ -795,6 +804,7 @@ target_alias=''
#define HAVE_UNISTD_H 1
#define HAVE_DLFCN_H 1
#define LT_OBJDIR ".libs/"
+#define HAVE_PYTHON "2.7"
#define HAVE_ZLIB_H 1
#define HAVE_MATH_H 1
@@ -811,9 +821,48 @@ generated by GNU Autoconf 2.68. Invocation command line was
CONFIG_HEADERS =
CONFIG_LINKS =
CONFIG_COMMANDS =
+ $ ./config.status
+
+on SillyFace
+
+config.status:1160: creating Makefile
+config.status:1160: creating src/Makefile
+config.status:1160: creating config.h
+config.status:1341: config.h is unchanged
+config.status:1389: executing depfiles commands
+config.status:1389: executing libtool commands
+
+## ---------------------- ##
+## Running config.status. ##
+## ---------------------- ##
+
+This file was extended by Gubbins config.status 0.1, which was
+generated by GNU Autoconf 2.68. Invocation command line was
+
+ CONFIG_FILES =
+ CONFIG_HEADERS =
+ CONFIG_LINKS =
+ CONFIG_COMMANDS =
+ $ ./config.status config.h
+
+on SillyFace
+
+config.status:1160: creating config.h
+
+## ---------------------- ##
+## Running config.status. ##
+## ---------------------- ##
+
+This file was extended by Gubbins config.status 0.1, which was
+generated by GNU Autoconf 2.68. Invocation command line was
+
+ CONFIG_FILES =
+ CONFIG_HEADERS =
+ CONFIG_LINKS =
+ CONFIG_COMMANDS =
$ ./config.status src/Makefile depfiles
on SillyFace
-config.status:1152: creating src/Makefile
-config.status:1381: executing depfiles commands
+config.status:1160: creating src/Makefile
+config.status:1389: executing depfiles commands
View
8 config.status
@@ -887,6 +887,13 @@ S["am__EXEEXT_FALSE"]=""
S["am__EXEEXT_TRUE"]="#"
S["LTLIBOBJS"]=""
S["LIBOBJS"]=""
+S["PYTHON_EXTRA_LDFLAGS"]="-Xlinker -export-dynamic"
+S["PYTHON_EXTRA_LIBS"]=" -lpthread -ldl -lutil"
+S["PYTHON_SITE_PKG"]="/usr/lib/python2.7/site-packages"
+S["PYTHON_LDFLAGS"]="-L/usr/lib64 -lpython2.7"
+S["PYTHON_CPPFLAGS"]="-I/usr/include/python2.7"
+S["PYTHON"]="/usr/bin/python"
+S["PYTHON_VERSION"]=""
S["CXXCPP"]="g++ -E"
S["am__fastdepCXX_FALSE"]="#"
S["am__fastdepCXX_TRUE"]=""
@@ -1062,6 +1069,7 @@ D["HAVE_STDINT_H"]=" 1"
D["HAVE_UNISTD_H"]=" 1"
D["HAVE_DLFCN_H"]=" 1"
D["LT_OBJDIR"]=" \".libs/\""
+D["HAVE_PYTHON"]=" \"2.7\""
for (key in D) D_is_set[key] = 1
FS = ""
}
View
453 configure
@@ -613,6 +613,13 @@ ac_subst_vars='am__EXEEXT_FALSE
am__EXEEXT_TRUE
LTLIBOBJS
LIBOBJS
+PYTHON_EXTRA_LDFLAGS
+PYTHON_EXTRA_LIBS
+PYTHON_SITE_PKG
+PYTHON_LDFLAGS
+PYTHON_CPPFLAGS
+PYTHON
+PYTHON_VERSION
CXXCPP
am__fastdepCXX_FALSE
am__fastdepCXX_TRUE
@@ -751,7 +758,8 @@ CPP
CXX
CXXFLAGS
CCC
-CXXCPP'
+CXXCPP
+PYTHON_VERSION'
# Initialize some variables set by options.
@@ -1401,6 +1409,10 @@ Some influential environment variables:
CXX C++ compiler command
CXXFLAGS C++ compiler flags
CXXCPP C++ preprocessor
+ PYTHON_VERSION
+ The installed Python version to use, for example '2.3'. This
+ string will be appended to the Python interpreter canonical
+ name.
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
@@ -15577,6 +15589,445 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
+# ===========================================================================
+# http://www.gnu.org/software/autoconf-archive/ax_python_devel.html
+# ===========================================================================
+#
+# SYNOPSIS
+#
+# AX_PYTHON_DEVEL([version])
+#
+# DESCRIPTION
+#
+# Note: Defines as a precious variable "PYTHON_VERSION". Don't override it
+# in your configure.ac.
+#
+# This macro checks for Python and tries to get the include path to
+# 'Python.h'. It provides the $(PYTHON_CPPFLAGS) and $(PYTHON_LDFLAGS)
+# output variables. It also exports $(PYTHON_EXTRA_LIBS) and
+# $(PYTHON_EXTRA_LDFLAGS) for embedding Python in your code.
+#
+# You can search for some particular version of Python by passing a
+# parameter to this macro, for example ">= '2.3.1'", or "== '2.4'". Please
+# note that you *have* to pass also an operator along with the version to
+# match, and pay special attention to the single quotes surrounding the
+# version number. Don't use "PYTHON_VERSION" for this: that environment
+# variable is declared as precious and thus reserved for the end-user.
+#
+# This macro should work for all versions of Python >= 2.1.0. As an end
+# user, you can disable the check for the python version by setting the
+# PYTHON_NOVERSIONCHECK environment variable to something else than the
+# empty string.
+#
+# If you need to use this macro for an older Python version, please
+# contact the authors. We're always open for feedback.
+#
+# LICENSE
+#
+# Copyright (c) 2009 Sebastian Huber <sebastian-huber@web.de>
+# Copyright (c) 2009 Alan W. Irwin <irwin@beluga.phys.uvic.ca>
+# Copyright (c) 2009 Rafael Laboissiere <rafael@laboissiere.net>
+# Copyright (c) 2009 Andrew Collier <colliera@ukzn.ac.za>
+# Copyright (c) 2009 Matteo Settenvini <matteo@member.fsf.org>
+# Copyright (c) 2009 Horst Knorr <hk_classes@knoda.org>
+#
+# This program is free software: you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation, either version 3 of the License, or (at your
+# option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
+# Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+# As a special exception, the respective Autoconf Macro's copyright owner
+# gives unlimited permission to copy, distribute and modify the configure
+# scripts that are the output of Autoconf when processing the Macro. You
+# need not follow the terms of the GNU General Public License when using
+# or distributing such scripts, even though portions of the text of the
+# Macro appear in them. The GNU General Public License (GPL) does govern
+# all other use of the material that constitutes the Autoconf Macro.
+#
+# This special exception to the GPL applies to versions of the Autoconf
+# Macro released by the Autoconf Archive. When you make and distribute a
+# modified version of the Autoconf Macro, you may extend this special
+# exception to the GPL to apply to your modified version as well.
+
+#serial 8
+
+# This is what autoupdate's m4 run will expand. It fires
+# the warning (with _au_warn_XXX), outputs it into the
+# updated configure.ac (with AC_DIAGNOSE), and then outputs
+# the replacement expansion.
+
+
+# This is an auxiliary macro that is also run when
+# autoupdate runs m4. It simply calls m4_warning, but
+# we need a wrapper so that each warning is emitted only
+# once. We break the quoting in m4_warning's argument in
+# order to expand this macro's arguments, not AU_DEFUN's.
+
+
+# Finally, this is the expansion that is picked up by
+# autoconf. It tells the user to run autoupdate, and
+# then outputs the replacement expansion. We do not care
+# about autoupdate's warning because that contains
+# information on what to do *after* running autoupdate.
+
+
+
+
+ #
+ # Allow the use of a (user set) custom python version
+ #
+
+
+ # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
+set dummy python$PYTHON_VERSION; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_PYTHON+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $PYTHON in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ ;;
+esac
+fi
+PYTHON=$ac_cv_path_PYTHON
+if test -n "$PYTHON"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
+$as_echo "$PYTHON" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ if test -z "$PYTHON"; then
+ as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
+ PYTHON_VERSION=""
+ fi
+
+ #
+ # Check for a version of Python >= 2.1.0
+ #
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
+$as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
+ ac_supports_python_ver=`$PYTHON -c "import sys; \
+ ver = sys.version.split ()[0]; \
+ print (ver >= '2.1.0')"`
+ if test "$ac_supports_python_ver" != "True"; then
+ if test -z "$PYTHON_NOVERSIONCHECK"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "
+This version of the AC_PYTHON_DEVEL macro
+doesn't work properly with versions of Python before
+2.1.0. You may need to re-run configure, setting the
+variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
+PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
+Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
+to something else than an empty string.
+
+See \`config.log' for more details" "$LINENO" 5; }
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
+$as_echo "skip at user request" >&6; }
+ fi
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ fi
+
+ #
+ # if the macro parameter ``version'' is set, honour it
+ #
+ if test -n ""; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
+$as_echo_n "checking for a version of Python ... " >&6; }
+ ac_supports_python_ver=`$PYTHON -c "import sys; \
+ ver = sys.version.split ()[0]; \
+ print (ver )"`
+ if test "$ac_supports_python_ver" = "True"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ as_fn_error $? "this package requires Python .
+If you have it installed, but it isn't the default Python
+interpreter in your system path, please pass the PYTHON_VERSION
+variable to configure. See \`\`configure --help'' for reference.
+" "$LINENO" 5
+ PYTHON_VERSION=""
+ fi
+ fi
+
+ #
+ # Check if you have distutils, else fail
+ #
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
+$as_echo_n "checking for the distutils Python package... " >&6; }
+ ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
+ if test -z "$ac_distutils_result"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ as_fn_error $? "cannot import Python module \"distutils\".
+Please check your Python installation. The error was:
+$ac_distutils_result" "$LINENO" 5
+ PYTHON_VERSION=""
+ fi
+
+ #
+ # Check for Python include path
+ #
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
+$as_echo_n "checking for Python include path... " >&6; }
+ if test -z "$PYTHON_CPPFLAGS"; then
+ python_path=`$PYTHON -c "import distutils.sysconfig; \
+ print (distutils.sysconfig.get_python_inc ());"`
+ if test -n "${python_path}"; then
+ python_path="-I$python_path"
+ fi
+ PYTHON_CPPFLAGS=$python_path
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
+$as_echo "$PYTHON_CPPFLAGS" >&6; }
+
+
+ #
+ # Check for Python library path
+ #
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
+$as_echo_n "checking for Python library path... " >&6; }
+ if test -z "$PYTHON_LDFLAGS"; then
+ # (makes two attempts to ensure we've got a version number
+ # from the interpreter)
+ ac_python_version=`cat<<EOD | $PYTHON -
+
+# join all versioning strings, on some systems
+# major/minor numbers could be in different list elements
+from distutils.sysconfig import *
+ret = ''
+for e in get_config_vars ('VERSION'):
+ if (e != None):
+ ret += e
+print (ret)
+EOD`
+
+ if test -z "$ac_python_version"; then
+ if test -n "$PYTHON_VERSION"; then
+ ac_python_version=$PYTHON_VERSION
+ else
+ ac_python_version=`$PYTHON -c "import sys; \
+ print (sys.version[:3])"`
+ fi
+ fi
+
+ # Make the versioning information available to the compiler
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_PYTHON "$ac_python_version"
+_ACEOF
+
+
+ # First, the library directory:
+ ac_python_libdir=`cat<<EOD | $PYTHON -
+
+# There should be only one
+import distutils.sysconfig
+for e in distutils.sysconfig.get_config_vars ('LIBDIR'):
+ if e != None:
+ print (e)
+ break
+EOD`
+
+ # Before checking for libpythonX.Y, we need to know
+ # the extension the OS we're on uses for libraries
+ # (we take the first one, if there's more than one fix me!):
+ ac_python_soext=`$PYTHON -c \
+ "import distutils.sysconfig; \
+ print (distutils.sysconfig.get_config_vars('SO')[0])"`
+
+ # Now, for the library:
+ ac_python_soname=`$PYTHON -c \
+ "import distutils.sysconfig; \
+ print (distutils.sysconfig.get_config_vars('LDLIBRARY')[0])"`
+
+ # Strip away extension from the end to canonicalize its name:
+ ac_python_library=`echo "$ac_python_soname" | sed "s/${ac_python_soext}$//"`
+
+ # This small piece shamelessly adapted from PostgreSQL python macro;
+ # credits goes to momjian, I think. I'd like to put the right name
+ # in the credits, if someone can point me in the right direction... ?
+ #
+ if test -n "$ac_python_libdir" -a -n "$ac_python_library" \
+ -a x"$ac_python_library" != x"$ac_python_soname"
+ then
+ # use the official shared library
+ ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
+ PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
+ else
+ # old way: use libpython from python_configdir
+ ac_python_libdir=`$PYTHON -c \
+ "from distutils.sysconfig import get_python_lib as f; \
+ import os; \
+ print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
+ PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
+ fi
+
+ if test -z "PYTHON_LDFLAGS"; then
+ as_fn_error $? "
+ Cannot determine location of your Python DSO. Please check it was installed with
+ dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
+ " "$LINENO" 5
+ fi
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
+$as_echo "$PYTHON_LDFLAGS" >&6; }
+
+
+ #
+ # Check for site packages
+ #
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
+$as_echo_n "checking for Python site-packages path... " >&6; }
+ if test -z "$PYTHON_SITE_PKG"; then
+ PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
+ print (distutils.sysconfig.get_python_lib(0,0));"`
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
+$as_echo "$PYTHON_SITE_PKG" >&6; }
+
+
+ #
+ # libraries which must be linked in when embedding
+ #
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
+$as_echo_n "checking python extra libraries... " >&6; }
+ if test -z "$PYTHON_EXTRA_LIBS"; then
+ PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
+ conf = distutils.sysconfig.get_config_var; \
+ print (conf('LOCALMODLIBS') + ' ' + conf('LIBS'))"`
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
+$as_echo "$PYTHON_EXTRA_LIBS" >&6; }
+
+
+ #
+ # linking flags needed when embedding
+ #
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
+$as_echo_n "checking python extra linking flags... " >&6; }
+ if test -z "$PYTHON_EXTRA_LDFLAGS"; then
+ PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
+ conf = distutils.sysconfig.get_config_var; \
+ print (conf('LINKFORSHARED'))"`
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
+$as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
+
+
+ #
+ # final check to see if everything compiles alright
+ #
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
+$as_echo_n "checking consistency of all components of python development environment... " >&6; }
+ # save current global flags
+ ac_save_LIBS="$LIBS"
+ ac_save_CPPFLAGS="$CPPFLAGS"
+ LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
+ CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
+ ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <Python.h>
+int
+main ()
+{
+Py_Initialize();
+ ;
+ return 0;
+}
+
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ pythonexists=yes
+else
+ pythonexists=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+ # turn back to default flags
+ CPPFLAGS="$ac_save_CPPFLAGS"
+ LIBS="$ac_save_LIBS"
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
+$as_echo "$pythonexists" >&6; }
+
+ if test ! "x$pythonexists" = "xyes"; then
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "
+ Could not link test program to Python. Maybe the main Python library has been
+ installed in some non-standard library path. If so, pass it to configure,
+ via the LDFLAGS environment variable.
+ Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
+ ============================================================================
+ ERROR!
+ You probably have to install the development version of the Python package
+ for your distribution. The exact name of this package varies among them.
+ ============================================================================
+
+See \`config.log' for more details" "$LINENO" 5; }
+ PYTHON_VERSION=""
+ fi
+
+ #
+ # all done!
+ #
+
+
ac_config_files="$ac_config_files Makefile src/Makefile"
cat >confcache <<\_ACEOF
View
3  configure.ac
@@ -7,6 +7,9 @@ AC_PROG_LIBTOOL
AC_PROG_CC
AC_PROG_CXX
+m4_include([m4/ax_python_devel.m4])
+AX_PYTHON_DEVEL
+
AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT
View
325 m4/ax_python_devel.m4
@@ -0,0 +1,325 @@
+# ===========================================================================
+# http://www.gnu.org/software/autoconf-archive/ax_python_devel.html
+# ===========================================================================
+#
+# SYNOPSIS
+#
+# AX_PYTHON_DEVEL([version])
+#
+# DESCRIPTION
+#
+# Note: Defines as a precious variable "PYTHON_VERSION". Don't override it
+# in your configure.ac.
+#
+# This macro checks for Python and tries to get the include path to
+# 'Python.h'. It provides the $(PYTHON_CPPFLAGS) and $(PYTHON_LDFLAGS)
+# output variables. It also exports $(PYTHON_EXTRA_LIBS) and
+# $(PYTHON_EXTRA_LDFLAGS) for embedding Python in your code.
+#
+# You can search for some particular version of Python by passing a
+# parameter to this macro, for example ">= '2.3.1'", or "== '2.4'". Please
+# note that you *have* to pass also an operator along with the version to
+# match, and pay special attention to the single quotes surrounding the
+# version number. Don't use "PYTHON_VERSION" for this: that environment
+# variable is declared as precious and thus reserved for the end-user.
+#
+# This macro should work for all versions of Python >= 2.1.0. As an end
+# user, you can disable the check for the python version by setting the
+# PYTHON_NOVERSIONCHECK environment variable to something else than the
+# empty string.
+#
+# If you need to use this macro for an older Python version, please
+# contact the authors. We're always open for feedback.
+#
+# LICENSE
+#
+# Copyright (c) 2009 Sebastian Huber <sebastian-huber@web.de>
+# Copyright (c) 2009 Alan W. Irwin <irwin@beluga.phys.uvic.ca>
+# Copyright (c) 2009 Rafael Laboissiere <rafael@laboissiere.net>
+# Copyright (c) 2009 Andrew Collier <colliera@ukzn.ac.za>
+# Copyright (c) 2009 Matteo Settenvini <matteo@member.fsf.org>
+# Copyright (c) 2009 Horst Knorr <hk_classes@knoda.org>
+#
+# This program is free software: you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation, either version 3 of the License, or (at your
+# option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
+# Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+# As a special exception, the respective Autoconf Macro's copyright owner
+# gives unlimited permission to copy, distribute and modify the configure
+# scripts that are the output of Autoconf when processing the Macro. You
+# need not follow the terms of the GNU General Public License when using
+# or distributing such scripts, even though portions of the text of the
+# Macro appear in them. The GNU General Public License (GPL) does govern
+# all other use of the material that constitutes the Autoconf Macro.
+#
+# This special exception to the GPL applies to versions of the Autoconf
+# Macro released by the Autoconf Archive. When you make and distribute a
+# modified version of the Autoconf Macro, you may extend this special
+# exception to the GPL to apply to your modified version as well.
+
+#serial 8
+
+AU_ALIAS([AC_PYTHON_DEVEL], [AX_PYTHON_DEVEL])
+AC_DEFUN([AX_PYTHON_DEVEL],[
+ #
+ # Allow the use of a (user set) custom python version
+ #
+ AC_ARG_VAR([PYTHON_VERSION],[The installed Python
+ version to use, for example '2.3'. This string
+ will be appended to the Python interpreter
+ canonical name.])
+
+ AC_PATH_PROG([PYTHON],[python[$PYTHON_VERSION]])
+ if test -z "$PYTHON"; then
+ AC_MSG_ERROR([Cannot find python$PYTHON_VERSION in your system path])
+ PYTHON_VERSION=""
+ fi
+
+ #
+ # Check for a version of Python >= 2.1.0
+ #
+ AC_MSG_CHECKING([for a version of Python >= '2.1.0'])
+ ac_supports_python_ver=`$PYTHON -c "import sys; \
+ ver = sys.version.split ()[[0]]; \
+ print (ver >= '2.1.0')"`
+ if test "$ac_supports_python_ver" != "True"; then
+ if test -z "$PYTHON_NOVERSIONCHECK"; then
+ AC_MSG_RESULT([no])
+ AC_MSG_FAILURE([
+This version of the AC@&t@_PYTHON_DEVEL macro
+doesn't work properly with versions of Python before
+2.1.0. You may need to re-run configure, setting the
+variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
+PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
+Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
+to something else than an empty string.
+])
+ else
+ AC_MSG_RESULT([skip at user request])
+ fi
+ else
+ AC_MSG_RESULT([yes])
+ fi
+
+ #
+ # if the macro parameter ``version'' is set, honour it
+ #
+ if test -n "$1"; then
+ AC_MSG_CHECKING([for a version of Python $1])
+ ac_supports_python_ver=`$PYTHON -c "import sys; \
+ ver = sys.version.split ()[[0]]; \
+ print (ver $1)"`
+ if test "$ac_supports_python_ver" = "True"; then
+ AC_MSG_RESULT([yes])
+ else
+ AC_MSG_RESULT([no])
+ AC_MSG_ERROR([this package requires Python $1.
+If you have it installed, but it isn't the default Python
+interpreter in your system path, please pass the PYTHON_VERSION
+variable to configure. See ``configure --help'' for reference.
+])
+ PYTHON_VERSION=""
+ fi
+ fi
+
+ #
+ # Check if you have distutils, else fail
+ #
+ AC_MSG_CHECKING([for the distutils Python package])
+ ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
+ if test -z "$ac_distutils_result"; then
+ AC_MSG_RESULT([yes])
+ else
+ AC_MSG_RESULT([no])
+ AC_MSG_ERROR([cannot import Python module "distutils".
+Please check your Python installation. The error was:
+$ac_distutils_result])
+ PYTHON_VERSION=""
+ fi
+
+ #
+ # Check for Python include path
+ #
+ AC_MSG_CHECKING([for Python include path])
+ if test -z "$PYTHON_CPPFLAGS"; then