Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 267615 Details for
Bug 361029
app-pda/libimobiledevice: Missing support for swig-2.0.0 and above
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Autotools update for latest 1.0.6 libimobiledevice
libimobiledevice-1.0.6-update.patch (text/plain), 36.04 KB, created by
Samuli Suominen (RETIRED)
on 2011-03-29 01:35:24 UTC
(
hide
)
Description:
Autotools update for latest 1.0.6 libimobiledevice
Filename:
MIME Type:
Creator:
Samuli Suominen (RETIRED)
Created:
2011-03-29 01:35:24 UTC
Size:
36.04 KB
patch
obsolete
>diff -ruN libimobiledevice-1.0.6.orig/configure.ac libimobiledevice-1.0.6/configure.ac >--- libimobiledevice-1.0.6.orig/configure.ac 2011-03-26 18:29:34.000000000 +0200 >+++ libimobiledevice-1.0.6/configure.ac 2011-03-29 04:18:24.000000000 +0300 >@@ -59,9 +59,10 @@ > [build_swig=true]) > if test "$build_swig" = "true"; then > AM_PATH_PYTHON(2.3) >- AC_PROG_SWIG(1.3.21) >+ AX_PKG_SWIG(1.3.21) > AX_SWIG_ENABLE_CXX >- SWIG_PYTHON >+ AX_SWIG_MULTI_MODULE_SUPPORT >+ AX_SWIG_PYTHON > else > SWIG=false > fi >diff -ruN libimobiledevice-1.0.6.orig/m4/ac_pkg_swig.m4 libimobiledevice-1.0.6/m4/ac_pkg_swig.m4 >--- libimobiledevice-1.0.6.orig/m4/ac_pkg_swig.m4 2010-01-08 17:34:39.000000000 +0200 >+++ libimobiledevice-1.0.6/m4/ac_pkg_swig.m4 1970-01-01 02:00:00.000000000 +0200 >@@ -1,122 +0,0 @@ >-# =========================================================================== >-# http://autoconf-archive.cryp.to/ac_pkg_swig.html >-# =========================================================================== >-# >-# SYNOPSIS >-# >-# AC_PROG_SWIG([major.minor.micro]) >-# >-# DESCRIPTION >-# >-# This macro searches for a SWIG installation on your system. If found you >-# should call SWIG via $(SWIG). You can use the optional first argument to >-# check if the version of the available SWIG is greater than or equal to >-# the value of the argument. It should have the format: N[.N[.N]] (N is a >-# number between 0 and 999. Only the first N is mandatory.) >-# >-# If the version argument is given (e.g. 1.3.17), AC_PROG_SWIG checks that >-# the swig package is this version number or higher. >-# >-# In configure.in, use as: >-# >-# AC_PROG_SWIG(1.3.17) >-# SWIG_ENABLE_CXX >-# SWIG_MULTI_MODULE_SUPPORT >-# SWIG_PYTHON >-# >-# LAST MODIFICATION >-# >-# 2008-04-12 >-# >-# COPYLEFT >-# >-# Copyright (c) 2008 Sebastian Huber <sebastian-huber@web.de> >-# Copyright (c) 2008 Alan W. Irwin <irwin@beluga.phys.uvic.ca> >-# Copyright (c) 2008 Rafael Laboissiere <rafael@laboissiere.net> >-# Copyright (c) 2008 Andrew Collier <colliera@ukzn.ac.za> >-# >-# 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 2 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 Macro 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. >- >-AC_DEFUN([AC_PROG_SWIG],[ >- AC_PATH_PROG([SWIG],[swig]) >- if test -z "$SWIG" ; then >- AC_MSG_WARN([cannot find 'swig' program. You should look at http://www.swig.org] or install your distribution specific swig package.) >- SWIG=false >- elif test -n "$1" ; then >- AC_MSG_CHECKING([for SWIG version]) >- [swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`] >- AC_MSG_RESULT([$swig_version]) >- if test -n "$swig_version" ; then >- # Calculate the required version number components >- [required=$1] >- [required_major=`echo $required | sed 's/[^0-9].*//'`] >- if test -z "$required_major" ; then >- [required_major=0] >- fi >- [required=`echo $required | sed 's/[0-9]*[^0-9]//'`] >- [required_minor=`echo $required | sed 's/[^0-9].*//'`] >- if test -z "$required_minor" ; then >- [required_minor=0] >- fi >- [required=`echo $required | sed 's/[0-9]*[^0-9]//'`] >- [required_patch=`echo $required | sed 's/[^0-9].*//'`] >- if test -z "$required_patch" ; then >- [required_patch=0] >- fi >- # Calculate the available version number components >- [available=$swig_version] >- [available_major=`echo $available | sed 's/[^0-9].*//'`] >- if test -z "$available_major" ; then >- [available_major=0] >- fi >- [available=`echo $available | sed 's/[0-9]*[^0-9]//'`] >- [available_minor=`echo $available | sed 's/[^0-9].*//'`] >- if test -z "$available_minor" ; then >- [available_minor=0] >- fi >- [available=`echo $available | sed 's/[0-9]*[^0-9]//'`] >- [available_patch=`echo $available | sed 's/[^0-9].*//'`] >- if test -z "$available_patch" ; then >- [available_patch=0] >- fi >- if test $available_major -ne $required_major \ >- -o $available_minor -ne $required_minor \ >- -o $available_patch -lt $required_patch ; then >- AC_MSG_WARN([SWIG version >= $1 is required. You have $swig_version. You should look at http://www.swig.org]) >- SWIG=false >- else >- AC_MSG_NOTICE([SWIG executable is '$SWIG']) >- SWIG_LIB=`$SWIG -swiglib` >- AC_MSG_NOTICE([SWIG library directory is '$SWIG_LIB']) >- fi >- else >- AC_MSG_WARN([cannot determine SWIG version]) >- SWIG=false >- fi >- fi >- AC_SUBST([SWIG_LIB]) >-]) >diff -ruN libimobiledevice-1.0.6.orig/m4/ax_pkg_swig.m4 libimobiledevice-1.0.6/m4/ax_pkg_swig.m4 >--- libimobiledevice-1.0.6.orig/m4/ax_pkg_swig.m4 1970-01-01 02:00:00.000000000 +0200 >+++ libimobiledevice-1.0.6/m4/ax_pkg_swig.m4 2011-03-29 04:13:39.000000000 +0300 >@@ -0,0 +1,135 @@ >+# =========================================================================== >+# http://www.gnu.org/software/autoconf-archive/ax_pkg_swig.html >+# =========================================================================== >+# >+# SYNOPSIS >+# >+# AX_PKG_SWIG([major.minor.micro], [action-if-found], [action-if-not-found]) >+# >+# DESCRIPTION >+# >+# This macro searches for a SWIG installation on your system. If found, >+# then SWIG is AC_SUBST'd; if not found, then $SWIG is empty. If SWIG is >+# found, then SWIG_LIB is set to the SWIG library path, and AC_SUBST'd. >+# >+# You can use the optional first argument to check if the version of the >+# available SWIG is greater than or equal to the value of the argument. It >+# should have the format: N[.N[.N]] (N is a number between 0 and 999. Only >+# the first N is mandatory.) If the version argument is given (e.g. >+# 1.3.17), AX_PKG_SWIG checks that the swig package is this version number >+# or higher. >+# >+# As usual, action-if-found is executed if SWIG is found, otherwise >+# action-if-not-found is executed. >+# >+# In configure.in, use as: >+# >+# AX_PKG_SWIG(1.3.17, [], [ AC_MSG_ERROR([SWIG is required to build..]) ]) >+# AX_SWIG_ENABLE_CXX >+# AX_SWIG_MULTI_MODULE_SUPPORT >+# AX_SWIG_PYTHON >+# >+# LICENSE >+# >+# Copyright (c) 2008 Sebastian Huber <sebastian-huber@web.de> >+# Copyright (c) 2008 Alan W. Irwin <irwin@beluga.phys.uvic.ca> >+# Copyright (c) 2008 Rafael Laboissiere <rafael@laboissiere.net> >+# Copyright (c) 2008 Andrew Collier <colliera@ukzn.ac.za> >+# Copyright (c) 2011 Murray Cumming <murrayc@openismus.com> >+# >+# 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 2 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 >+ >+AC_DEFUN([AX_PKG_SWIG],[ >+ # Ubuntu has swig 2.0 as /usr/bin/swig2.0 >+ AC_PATH_PROGS([SWIG],[swig swig2.0]) >+ if test -z "$SWIG" ; then >+ m4_ifval([$3],[$3],[:]) >+ elif test -n "$1" ; then >+ AC_MSG_CHECKING([SWIG version]) >+ [swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`] >+ AC_MSG_RESULT([$swig_version]) >+ if test -n "$swig_version" ; then >+ # Calculate the required version number components >+ [required=$1] >+ [required_major=`echo $required | sed 's/[^0-9].*//'`] >+ if test -z "$required_major" ; then >+ [required_major=0] >+ fi >+ [required=`echo $required | sed 's/[0-9]*[^0-9]//'`] >+ [required_minor=`echo $required | sed 's/[^0-9].*//'`] >+ if test -z "$required_minor" ; then >+ [required_minor=0] >+ fi >+ [required=`echo $required | sed 's/[0-9]*[^0-9]//'`] >+ [required_patch=`echo $required | sed 's/[^0-9].*//'`] >+ if test -z "$required_patch" ; then >+ [required_patch=0] >+ fi >+ # Calculate the available version number components >+ [available=$swig_version] >+ [available_major=`echo $available | sed 's/[^0-9].*//'`] >+ if test -z "$available_major" ; then >+ [available_major=0] >+ fi >+ [available=`echo $available | sed 's/[0-9]*[^0-9]//'`] >+ [available_minor=`echo $available | sed 's/[^0-9].*//'`] >+ if test -z "$available_minor" ; then >+ [available_minor=0] >+ fi >+ [available=`echo $available | sed 's/[0-9]*[^0-9]//'`] >+ [available_patch=`echo $available | sed 's/[^0-9].*//'`] >+ if test -z "$available_patch" ; then >+ [available_patch=0] >+ fi >+ # Convert the version tuple into a single number for easier comparison. >+ # Using base 100 should be safe since SWIG internally uses BCD values >+ # to encode its version number. >+ required_swig_vernum=`expr $required_major \* 10000 \ >+ \+ $required_minor \* 100 \+ $required_patch` >+ available_swig_vernum=`expr $available_major \* 10000 \ >+ \+ $available_minor \* 100 \+ $available_patch` >+ >+ if test $available_swig_vernum -lt $required_swig_vernum; then >+ AC_MSG_WARN([SWIG version >= $1 is required. You have $swig_version.]) >+ SWIG='' >+ m4_ifval([$3],[$3],[]) >+ else >+ AC_MSG_CHECKING([for SWIG library]) >+ SWIG_LIB=`$SWIG -swiglib` >+ AC_MSG_RESULT([$SWIG_LIB]) >+ m4_ifval([$2],[$2],[]) >+ fi >+ else >+ AC_MSG_WARN([cannot determine SWIG version]) >+ SWIG='' >+ m4_ifval([$3],[$3],[]) >+ fi >+ fi >+ AC_SUBST([SWIG_LIB]) >+]) >diff -ruN libimobiledevice-1.0.6.orig/m4/ax_python_devel.m4 libimobiledevice-1.0.6/m4/ax_python_devel.m4 >--- libimobiledevice-1.0.6.orig/m4/ax_python_devel.m4 1970-01-01 02:00:00.000000000 +0200 >+++ libimobiledevice-1.0.6/m4/ax_python_devel.m4 2011-03-29 04:26:06.000000000 +0300 >@@ -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 >+ 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 >+ AC_MSG_RESULT([$PYTHON_CPPFLAGS]) >+ AC_SUBST([PYTHON_CPPFLAGS]) >+ >+ # >+ # Check for Python library path >+ # >+ AC_MSG_CHECKING([for Python library path]) >+ 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 >+ AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"], >+ [If available, contains the Python version number currently in use.]) >+ >+ # 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 >+ AC_MSG_ERROR([ >+ Cannot determine location of your Python DSO. Please check it was installed with >+ dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand. >+ ]) >+ fi >+ fi >+ AC_MSG_RESULT([$PYTHON_LDFLAGS]) >+ AC_SUBST([PYTHON_LDFLAGS]) >+ >+ # >+ # Check for site packages >+ # >+ AC_MSG_CHECKING([for Python site-packages path]) >+ if test -z "$PYTHON_SITE_PKG"; then >+ PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \ >+ print (distutils.sysconfig.get_python_lib(0,0));"` >+ fi >+ AC_MSG_RESULT([$PYTHON_SITE_PKG]) >+ AC_SUBST([PYTHON_SITE_PKG]) >+ >+ # >+ # libraries which must be linked in when embedding >+ # >+ AC_MSG_CHECKING(python extra libraries) >+ 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 >+ AC_MSG_RESULT([$PYTHON_EXTRA_LIBS]) >+ AC_SUBST(PYTHON_EXTRA_LIBS) >+ >+ # >+ # linking flags needed when embedding >+ # >+ AC_MSG_CHECKING(python extra linking flags) >+ 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 >+ AC_MSG_RESULT([$PYTHON_EXTRA_LDFLAGS]) >+ AC_SUBST(PYTHON_EXTRA_LDFLAGS) >+ >+ # >+ # final check to see if everything compiles alright >+ # >+ AC_MSG_CHECKING([consistency of all components of python development environment]) >+ # 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_LANG_PUSH([C]) >+ AC_LINK_IFELSE([ >+ AC_LANG_PROGRAM([[#include <Python.h>]], >+ [[Py_Initialize();]]) >+ ],[pythonexists=yes],[pythonexists=no]) >+ AC_LANG_POP([C]) >+ # turn back to default flags >+ CPPFLAGS="$ac_save_CPPFLAGS" >+ LIBS="$ac_save_LIBS" >+ >+ AC_MSG_RESULT([$pythonexists]) >+ >+ if test ! "x$pythonexists" = "xyes"; then >+ AC_MSG_FAILURE([ >+ 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. >+ ============================================================================ >+ ]) >+ PYTHON_VERSION="" >+ fi >+ >+ # >+ # all done! >+ # >+]) >diff -ruN libimobiledevice-1.0.6.orig/m4/ax_swig_enable_cxx.m4 libimobiledevice-1.0.6/m4/ax_swig_enable_cxx.m4 >--- libimobiledevice-1.0.6.orig/m4/ax_swig_enable_cxx.m4 2010-01-08 17:34:39.000000000 +0200 >+++ libimobiledevice-1.0.6/m4/ax_swig_enable_cxx.m4 2011-03-29 04:14:27.000000000 +0300 >@@ -1,5 +1,5 @@ > # =========================================================================== >-# http://www.nongnu.org/autoconf-archive/ax_swig_enable_cxx.html >+# http://www.gnu.org/software/autoconf-archive/ax_swig_enable_cxx.html > # =========================================================================== > # > # SYNOPSIS >@@ -43,11 +43,11 @@ > # modified version of the Autoconf Macro, you may extend this special > # exception to the GPL to apply to your modified version as well. > >+#serial 6 >+ > AU_ALIAS([SWIG_ENABLE_CXX], [AX_SWIG_ENABLE_CXX]) > AC_DEFUN([AX_SWIG_ENABLE_CXX],[ >- AC_REQUIRE([AC_PROG_SWIG]) >+ AC_REQUIRE([AX_PKG_SWIG]) > AC_REQUIRE([AC_PROG_CXX]) >- if test "$SWIG" != "false"; then >- SWIG="$SWIG -c++" >- fi >+ SWIG="$SWIG -c++" > ]) >diff -ruN libimobiledevice-1.0.6.orig/m4/ax_swig_multi_module_support.m4 libimobiledevice-1.0.6/m4/ax_swig_multi_module_support.m4 >--- libimobiledevice-1.0.6.orig/m4/ax_swig_multi_module_support.m4 1970-01-01 02:00:00.000000000 +0200 >+++ libimobiledevice-1.0.6/m4/ax_swig_multi_module_support.m4 2011-03-29 04:18:46.000000000 +0300 >@@ -0,0 +1,56 @@ >+# ================================================================================ >+# http://www.gnu.org/software/autoconf-archive/ax_swig_multi_module_support.html >+# ================================================================================ >+# >+# SYNOPSIS >+# >+# AX_SWIG_MULTI_MODULE_SUPPORT >+# >+# DESCRIPTION >+# >+# Enable support for multiple modules. This effects all invocations of >+# $(SWIG). You have to link all generated modules against the appropriate >+# SWIG runtime library. If you want to build Python modules for example, >+# use the AX_SWIG_PYTHON macro and link the modules against >+# $(AX_SWIG_PYTHON_LIBS). >+# >+# LICENSE >+# >+# Copyright (c) 2008 Sebastian Huber <sebastian-huber@web.de> >+# Copyright (c) 2008 Alan W. Irwin <irwin@beluga.phys.uvic.ca> >+# Copyright (c) 2008 Rafael Laboissiere <rafael@laboissiere.net> >+# Copyright (c) 2008 Andrew Collier <colliera@ukzn.ac.za> >+# >+# 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 2 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 7 >+ >+AU_ALIAS([SWIG_MULTI_MODULE_SUPPORT], [AX_SWIG_MULTI_MODULE_SUPPORT]) >+AC_DEFUN([AX_SWIG_MULTI_MODULE_SUPPORT],[ >+ AC_REQUIRE([AX_PKG_SWIG]) >+ SWIG="$SWIG -noruntime" >+]) >diff -ruN libimobiledevice-1.0.6.orig/m4/ax_swig_python.m4 libimobiledevice-1.0.6/m4/ax_swig_python.m4 >--- libimobiledevice-1.0.6.orig/m4/ax_swig_python.m4 1970-01-01 02:00:00.000000000 +0200 >+++ libimobiledevice-1.0.6/m4/ax_swig_python.m4 2011-03-29 04:12:41.000000000 +0300 >@@ -0,0 +1,64 @@ >+# =========================================================================== >+# http://www.gnu.org/software/autoconf-archive/ax_swig_python.html >+# =========================================================================== >+# >+# SYNOPSIS >+# >+# AX_SWIG_PYTHON([use-shadow-classes = {no, yes}]) >+# >+# DESCRIPTION >+# >+# Checks for Python and provides the $(AX_SWIG_PYTHON_CPPFLAGS), and >+# $(AX_SWIG_PYTHON_OPT) output variables. >+# >+# $(AX_SWIG_PYTHON_OPT) contains all necessary SWIG options to generate >+# code for Python. Shadow classes are enabled unless the value of the >+# optional first argument is exactly 'no'. If you need multi module >+# support (provided by the AX_SWIG_MULTI_MODULE_SUPPORT macro) use >+# $(AX_SWIG_PYTHON_LIBS) to link against the appropriate library. It >+# contains the SWIG Python runtime library that is needed by the type >+# check system for example. >+# >+# LICENSE >+# >+# Copyright (c) 2008 Sebastian Huber <sebastian-huber@web.de> >+# Copyright (c) 2008 Alan W. Irwin <irwin@beluga.phys.uvic.ca> >+# Copyright (c) 2008 Rafael Laboissiere <rafael@laboissiere.net> >+# Copyright (c) 2008 Andrew Collier <colliera@ukzn.ac.za> >+# >+# 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 2 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 7 >+ >+AU_ALIAS([SWIG_PYTHON], [AX_SWIG_PYTHON]) >+AC_DEFUN([AX_SWIG_PYTHON],[ >+ AC_REQUIRE([AX_PKG_SWIG]) >+ AC_REQUIRE([AX_PYTHON_DEVEL]) >+ test "x$1" != "xno" || swig_shadow=" -noproxy" >+ AC_SUBST([AX_SWIG_PYTHON_OPT],[-python$swig_shadow]) >+ AC_SUBST([AX_SWIG_PYTHON_CPPFLAGS],[$PYTHON_CPPFLAGS]) >+]) >diff -ruN libimobiledevice-1.0.6.orig/m4/swig_python.m4 libimobiledevice-1.0.6/m4/swig_python.m4 >--- libimobiledevice-1.0.6.orig/m4/swig_python.m4 2009-04-24 13:39:50.000000000 +0300 >+++ libimobiledevice-1.0.6/m4/swig_python.m4 1970-01-01 02:00:00.000000000 +0200 >@@ -1,65 +0,0 @@ >-# =========================================================================== >-# http://autoconf-archive.cryp.to/swig_python.html >-# =========================================================================== >-# >-# SYNOPSIS >-# >-# SWIG_PYTHON([use-shadow-classes = {no, yes}]) >-# >-# DESCRIPTION >-# >-# Checks for Python and provides the $(SWIG_PYTHON_CPPFLAGS), and >-# $(SWIG_PYTHON_OPT) output variables. >-# >-# $(SWIG_PYTHON_OPT) contains all necessary SWIG options to generate code >-# for Python. Shadow classes are enabled unless the value of the optional >-# first argument is exactly 'no'. If you need multi module support >-# (provided by the SWIG_MULTI_MODULE_SUPPORT macro) use >-# $(SWIG_PYTHON_LIBS) to link against the appropriate library. It contains >-# the SWIG Python runtime library that is needed by the type check system >-# for example. >-# >-# LAST MODIFICATION >-# >-# 2008-04-12 >-# >-# COPYLEFT >-# >-# Copyright (c) 2008 Sebastian Huber <sebastian-huber@web.de> >-# Copyright (c) 2008 Alan W. Irwin <irwin@beluga.phys.uvic.ca> >-# Copyright (c) 2008 Rafael Laboissiere <rafael@laboissiere.net> >-# Copyright (c) 2008 Andrew Collier <colliera@ukzn.ac.za> >-# >-# 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 2 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 Macro 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. >- >-AC_DEFUN([SWIG_PYTHON],[ >- AC_REQUIRE([AC_PROG_SWIG]) >- AC_REQUIRE([AC_PYTHON_DEVEL]) >- test "x$1" != "xno" || swig_shadow=" -noproxy" >- AC_SUBST([SWIG_PYTHON_OPT],[-python$swig_shadow]) >- AC_SUBST([SWIG_PYTHON_CPPFLAGS],[$PYTHON_CPPFLAGS]) >-])
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 361029
: 267615 |
267617