1
- # generated automatically by aclocal 1.11.6 -*- Autoconf -*-
1
+ # generated automatically by aclocal 1.15 -*- Autoconf -*-
2
2
3
3
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
4
4
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
13
13
14
+ m4_ifndef ( [ AC_CONFIG_MACRO_DIRS] , [ m4_defun([ _AM_CONFIG_MACRO_DIRS] , [ ] )m4_defun([ AC_CONFIG_MACRO_DIRS] , [ _AM_CONFIG_MACRO_DIRS($@ )] )] )
14
15
# nls.m4 serial 5 (gettext-0.18)
15
- dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
16
+ dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014 Free Software Foundation,
16
17
dnl Inc.
17
18
dnl This file is free software; the Free Software Foundation
18
19
dnl gives unlimited permission to copy and/or distribute it,
19
20
dnl with or without modifications, as long as this notice is preserved.
20
21
dnl
21
- dnl This file can can be used in projects which are not available under
22
+ dnl This file can be used in projects which are not available under
22
23
dnl the GNU General Public License or the GNU Library General Public
23
24
dnl License but which still want to provide support for the GNU gettext
24
25
dnl functionality.
25
26
dnl Please note that the actual code of the GNU gettext library is covered
26
27
dnl by the GNU Library General Public License, and the rest of the GNU
27
- dnl gettext package package is covered by the GNU General Public License.
28
+ dnl gettext package is covered by the GNU General Public License.
28
29
dnl They are *not* in the public domain.
29
30
30
31
dnl Authors:
@@ -44,14 +45,12 @@ AC_DEFUN([AM_NLS],
44
45
AC_SUBST ( [ USE_NLS] )
45
46
] )
46
47
47
- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009,
48
- # 2011 Free Software Foundation, Inc.
48
+ # Copyright (C) 1999-2014 Free Software Foundation, Inc.
49
49
#
50
50
# This file is free software; the Free Software Foundation
51
51
# gives unlimited permission to copy and/or distribute it,
52
52
# with or without modifications, as long as this notice is preserved.
53
53
54
- # serial 2
55
54
56
55
# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
57
56
# ---------------------------------------------------------------------------
@@ -80,7 +79,7 @@ AC_DEFUN([AM_PATH_PYTHON],
80
79
dnl Find a Python interpreter. Python versions prior to 2.0 are not
81
80
dnl supported. (2.0 was released on October 16, 2000).
82
81
m4_define_default([ _AM_PYTHON_INTERPRETER_LIST] ,
83
- [ python python2 python3 python3.2 python3.1 python3.0 python2.7 dnl
82
+ [ python python2 python3 python3.3 python3. 2 python3.1 python3.0 python2.7 dnl
84
83
python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0] )
85
84
86
85
AC_ARG_VAR ( [ PYTHON] , [ the Python interpreter] )
@@ -96,10 +95,11 @@ AC_DEFUN([AM_PATH_PYTHON],
96
95
dnl A version check is needed.
97
96
if test -n "$PYTHON"; then
98
97
# If the user set $PYTHON, use it and don't search something else.
99
- AC_MSG_CHECKING ( [ whether $PYTHON version >= $1 ] )
98
+ AC_MSG_CHECKING ( [ whether $PYTHON version is >= $1 ] )
100
99
AM_PYTHON_CHECK_VERSION([ $PYTHON] , [ $1 ] ,
101
- [ AC_MSG_RESULT ( yes ) ] ,
102
- [ AC_MSG_ERROR ( too old ) ] )
100
+ [ AC_MSG_RESULT ( [ yes] ) ] ,
101
+ [ AC_MSG_RESULT ( [ no] )
102
+ AC_MSG_ERROR ( [ Python interpreter is too old] ) ] )
103
103
am_display_PYTHON=$PYTHON
104
104
else
105
105
# Otherwise, try each interpreter until we find one that satisfies
@@ -148,6 +148,25 @@ AC_DEFUN([AM_PATH_PYTHON],
148
148
[ am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`] )
149
149
AC_SUBST ( [ PYTHON_PLATFORM] , [ $am_cv_python_platform] )
150
150
151
+ # Just factor out some code duplication.
152
+ am_python_setup_sysconfig="\
153
+ import sys
154
+ # Prefer sysconfig over distutils.sysconfig, for better compatibility
155
+ # with python 3.x. See automake bug#10227.
156
+ try:
157
+ import sysconfig
158
+ except ImportError:
159
+ can_use_sysconfig = 0
160
+ else:
161
+ can_use_sysconfig = 1
162
+ # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
163
+ # <https://github.com/pypa/virtualenv/issues/118>
164
+ try:
165
+ from platform import python_implementation
166
+ if python_implementation() == 'CPython' and sys.version[ [ :3] ] == '2.7':
167
+ can_use_sysconfig = 0
168
+ except ImportError:
169
+ pass"
151
170
152
171
dnl Set up 4 directories:
153
172
@@ -164,7 +183,14 @@ AC_DEFUN([AM_PATH_PYTHON],
164
183
else
165
184
am_py_prefix=$prefix
166
185
fi
167
- am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null`
186
+ am_cv_python_pythondir=`$PYTHON -c "
187
+ $am_python_setup_sysconfig
188
+ if can_use_sysconfig:
189
+ sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
190
+ else:
191
+ from distutils import sysconfig
192
+ sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
193
+ sys.stdout.write(sitedir)"`
168
194
case $am_cv_python_pythondir in
169
195
$am_py_prefix*)
170
196
am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
@@ -199,7 +225,14 @@ AC_DEFUN([AM_PATH_PYTHON],
199
225
else
200
226
am_py_exec_prefix=$exec_prefix
201
227
fi
202
- am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null`
228
+ am_cv_python_pyexecdir=`$PYTHON -c "
229
+ $am_python_setup_sysconfig
230
+ if can_use_sysconfig:
231
+ sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
232
+ else:
233
+ from distutils import sysconfig
234
+ sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
235
+ sys.stdout.write(sitedir)"`
203
236
case $am_cv_python_pyexecdir in
204
237
$am_py_exec_prefix*)
205
238
am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
@@ -247,14 +280,12 @@ for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[[i]]
247
280
sys.exit(sys.hexversion < minverhex)"
248
281
AS_IF ( [ AM_RUN_LOG([ $1 -c "$prog"] )] , [ $3 ] , [ $4 ] ) ] )
249
282
250
- # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
283
+ # Copyright (C) 2001-2014 Free Software Foundation, Inc.
251
284
#
252
285
# This file is free software; the Free Software Foundation
253
286
# gives unlimited permission to copy and/or distribute it,
254
287
# with or without modifications, as long as this notice is preserved.
255
288
256
- # serial 1
257
-
258
289
# AM_RUN_LOG(COMMAND)
259
290
# -------------------
260
291
# Run COMMAND, save the exit status in ac_status, and log it.
0 commit comments