Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[xsrc/xorg]: xsrc/external/mit/xkeyboard-config/dist initial import of xkeybo...



details:   https://anonhg.NetBSD.org/xsrc/rev/e572cdb16cf0
branches:  xorg
changeset: 10472:e572cdb16cf0
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Feb 23 11:13:32 2020 +0000

description:
initial import of xkeyboard-config-2.29

diffstat:

 external/mit/xkeyboard-config/dist/Makefile.am                        |     3 +
 external/mit/xkeyboard-config/dist/Makefile.in                        |    12 +
 external/mit/xkeyboard-config/dist/NEWS                               |     4 +
 external/mit/xkeyboard-config/dist/aclocal.m4                         |   238 +
 external/mit/xkeyboard-config/dist/compat/Makefile.am                 |     2 +-
 external/mit/xkeyboard-config/dist/compat/Makefile.in                 |    11 +-
 external/mit/xkeyboard-config/dist/compat/ledcompose                  |    16 +
 external/mit/xkeyboard-config/dist/configure                          |   295 +-
 external/mit/xkeyboard-config/dist/configure.ac                       |     4 +-
 external/mit/xkeyboard-config/dist/docs/Makefile.in                   |     9 +
 external/mit/xkeyboard-config/dist/geometry/Makefile.in               |     9 +
 external/mit/xkeyboard-config/dist/geometry/digital_vndr/Makefile.in  |     9 +
 external/mit/xkeyboard-config/dist/geometry/sgi_vndr/Makefile.in      |     9 +
 external/mit/xkeyboard-config/dist/keycodes/Makefile.in               |     9 +
 external/mit/xkeyboard-config/dist/keycodes/digital_vndr/Makefile.in  |     9 +
 external/mit/xkeyboard-config/dist/keycodes/evdev                     |     6 +-
 external/mit/xkeyboard-config/dist/keycodes/sgi_vndr/Makefile.in      |     9 +
 external/mit/xkeyboard-config/dist/man/Makefile.in                    |     9 +
 external/mit/xkeyboard-config/dist/po/af.gmo                          |   Bin 
 external/mit/xkeyboard-config/dist/po/af.po                           |  2518 +++--
 external/mit/xkeyboard-config/dist/po/az.gmo                          |   Bin 
 external/mit/xkeyboard-config/dist/po/az.po                           |  2518 +++--
 external/mit/xkeyboard-config/dist/po/bg.gmo                          |   Bin 
 external/mit/xkeyboard-config/dist/po/bg.po                           |  4246 ++++-----
 external/mit/xkeyboard-config/dist/po/ca.gmo                          |   Bin 
 external/mit/xkeyboard-config/dist/po/ca.po                           |  2359 ++--
 external/mit/xkeyboard-config/dist/po/crh.gmo                         |   Bin 
 external/mit/xkeyboard-config/dist/po/crh.po                          |  2376 ++--
 external/mit/xkeyboard-config/dist/po/cs.gmo                          |   Bin 
 external/mit/xkeyboard-config/dist/po/cs.po                           |  2365 ++--
 external/mit/xkeyboard-config/dist/po/da.gmo                          |   Bin 
 external/mit/xkeyboard-config/dist/po/da.po                           |  2343 ++--
 external/mit/xkeyboard-config/dist/po/de.gmo                          |   Bin 
 external/mit/xkeyboard-config/dist/po/de.po                           |  2341 ++--
 external/mit/xkeyboard-config/dist/po/el.gmo                          |   Bin 
 external/mit/xkeyboard-config/dist/po/el.po                           |  2289 ++--
 external/mit/xkeyboard-config/dist/po/en_GB.gmo                       |   Bin 
 external/mit/xkeyboard-config/dist/po/en_GB.po                        |  2473 +++--
 external/mit/xkeyboard-config/dist/po/eo.gmo                          |   Bin 
 external/mit/xkeyboard-config/dist/po/eo.po                           |  2492 +++--
 external/mit/xkeyboard-config/dist/po/es.gmo                          |   Bin 
 external/mit/xkeyboard-config/dist/po/es.po                           |  2366 ++--
 external/mit/xkeyboard-config/dist/po/fi.gmo                          |   Bin 
 external/mit/xkeyboard-config/dist/po/fi.po                           |  2374 ++--
 external/mit/xkeyboard-config/dist/po/fr.gmo                          |   Bin 
 external/mit/xkeyboard-config/dist/po/fr.po                           |  2363 ++--
 external/mit/xkeyboard-config/dist/po/fur.gmo                         |   Bin 
 external/mit/xkeyboard-config/dist/po/fur.po                          |  2427 ++--
 external/mit/xkeyboard-config/dist/po/gl.gmo                          |   Bin 
 external/mit/xkeyboard-config/dist/po/gl.po                           |  2471 +++--
 external/mit/xkeyboard-config/dist/po/hr.gmo                          |   Bin 
 external/mit/xkeyboard-config/dist/po/hr.po                           |  2400 ++--
 external/mit/xkeyboard-config/dist/po/hu.gmo                          |   Bin 
 external/mit/xkeyboard-config/dist/po/hu.po                           |  2332 ++--
 external/mit/xkeyboard-config/dist/po/id.gmo                          |   Bin 
 external/mit/xkeyboard-config/dist/po/id.po                           |  2343 ++--
 external/mit/xkeyboard-config/dist/po/it.gmo                          |   Bin 
 external/mit/xkeyboard-config/dist/po/it.po                           |  2276 ++--
 external/mit/xkeyboard-config/dist/po/ja.gmo                          |   Bin 
 external/mit/xkeyboard-config/dist/po/ja.po                           |  2289 ++--
 external/mit/xkeyboard-config/dist/po/ka.gmo                          |   Bin 
 external/mit/xkeyboard-config/dist/po/ka.po                           |  2519 +++--
 external/mit/xkeyboard-config/dist/po/ko.gmo                          |   Bin 
 external/mit/xkeyboard-config/dist/po/ko.po                           |  2346 ++--
 external/mit/xkeyboard-config/dist/po/ky.gmo                          |   Bin 
 external/mit/xkeyboard-config/dist/po/ky.po                           |  2476 +++--
 external/mit/xkeyboard-config/dist/po/lt.gmo                          |   Bin 
 external/mit/xkeyboard-config/dist/po/lt.po                           |  2288 ++--
 external/mit/xkeyboard-config/dist/po/nb.gmo                          |   Bin 
 external/mit/xkeyboard-config/dist/po/nb.po                           |  2542 +++--
 external/mit/xkeyboard-config/dist/po/nl.gmo                          |   Bin 
 external/mit/xkeyboard-config/dist/po/nl.po                           |  2363 ++--
 external/mit/xkeyboard-config/dist/po/pl.gmo                          |   Bin 
 external/mit/xkeyboard-config/dist/po/pl.po                           |  2346 ++--
 external/mit/xkeyboard-config/dist/po/pt.gmo                          |   Bin 
 external/mit/xkeyboard-config/dist/po/pt.po                           |  2385 ++--
 external/mit/xkeyboard-config/dist/po/pt_BR.gmo                       |   Bin 
 external/mit/xkeyboard-config/dist/po/pt_BR.po                        |  2344 ++--
 external/mit/xkeyboard-config/dist/po/ro.gmo                          |   Bin 
 external/mit/xkeyboard-config/dist/po/ro.po                           |  2325 ++--
 external/mit/xkeyboard-config/dist/po/ru.gmo                          |   Bin 
 external/mit/xkeyboard-config/dist/po/ru.po                           |  2381 ++--
 external/mit/xkeyboard-config/dist/po/rw.gmo                          |   Bin 
 external/mit/xkeyboard-config/dist/po/rw.po                           |  2610 +++--
 external/mit/xkeyboard-config/dist/po/sk.gmo                          |   Bin 
 external/mit/xkeyboard-config/dist/po/sk.po                           |  2356 ++--
 external/mit/xkeyboard-config/dist/po/sl.gmo                          |   Bin 
 external/mit/xkeyboard-config/dist/po/sl.po                           |  2297 ++--
 external/mit/xkeyboard-config/dist/po/sq.gmo                          |   Bin 
 external/mit/xkeyboard-config/dist/po/sq.po                           |  2518 +++--
 external/mit/xkeyboard-config/dist/po/sr.gmo                          |   Bin 
 external/mit/xkeyboard-config/dist/po/sr.po                           |  2449 +++--
 external/mit/xkeyboard-config/dist/po/sv.gmo                          |   Bin 
 external/mit/xkeyboard-config/dist/po/sv.po                           |  2363 ++--
 external/mit/xkeyboard-config/dist/po/tr.gmo                          |   Bin 
 external/mit/xkeyboard-config/dist/po/tr.po                           |  3346 ++----
 external/mit/xkeyboard-config/dist/po/uk.gmo                          |   Bin 
 external/mit/xkeyboard-config/dist/po/uk.po                           |  2373 ++--
 external/mit/xkeyboard-config/dist/po/vi.gmo                          |   Bin 
 external/mit/xkeyboard-config/dist/po/vi.po                           |  2289 ++--
 external/mit/xkeyboard-config/dist/po/xkeyboard-config.pot            |  2898 +++---
 external/mit/xkeyboard-config/dist/po/zh_CN.gmo                       |   Bin 
 external/mit/xkeyboard-config/dist/po/zh_CN.po                        |  2460 +++--
 external/mit/xkeyboard-config/dist/po/zh_TW.gmo                       |   Bin 
 external/mit/xkeyboard-config/dist/po/zh_TW.po                        |  2287 ++--
 external/mit/xkeyboard-config/dist/rules/Makefile.am                  |   291 +-
 external/mit/xkeyboard-config/dist/rules/Makefile.in                  |   302 +-
 external/mit/xkeyboard-config/dist/rules/base.extras.xml              |   194 +-
 external/mit/xkeyboard-config/dist/rules/base.l1_k.part               |     1 +
 external/mit/xkeyboard-config/dist/rules/base.l1o_s.part              |     1 +
 external/mit/xkeyboard-config/dist/rules/base.l2o_s.part              |     1 +
 external/mit/xkeyboard-config/dist/rules/base.l3o_s.part              |     1 +
 external/mit/xkeyboard-config/dist/rules/base.l4o_s.part              |     1 +
 external/mit/xkeyboard-config/dist/rules/base.l_k.part                |     1 +
 external/mit/xkeyboard-config/dist/rules/base.lists.base.part         |     2 +-
 external/mit/xkeyboard-config/dist/rules/base.lists.part              |     4 +-
 external/mit/xkeyboard-config/dist/rules/base.lo_s.part               |     1 +
 external/mit/xkeyboard-config/dist/rules/base.m_g.part                |     1 +
 external/mit/xkeyboard-config/dist/rules/base.m_k.part                |     1 +
 external/mit/xkeyboard-config/dist/rules/base.m_s.part                |     1 +
 external/mit/xkeyboard-config/dist/rules/base.m_t.part                |     1 +
 external/mit/xkeyboard-config/dist/rules/base.ml1_c.part              |     1 +
 external/mit/xkeyboard-config/dist/rules/base.ml1_s.part              |     1 +
 external/mit/xkeyboard-config/dist/rules/base.ml2_s.part              |     1 +
 external/mit/xkeyboard-config/dist/rules/base.ml3_s.part              |     1 +
 external/mit/xkeyboard-config/dist/rules/base.ml4_s.part              |     1 +
 external/mit/xkeyboard-config/dist/rules/base.ml_c.part               |     1 +
 external/mit/xkeyboard-config/dist/rules/base.ml_g.part               |     1 +
 external/mit/xkeyboard-config/dist/rules/base.ml_s.part               |     2 +-
 external/mit/xkeyboard-config/dist/rules/base.ml_s1.part              |     1 +
 external/mit/xkeyboard-config/dist/rules/base.mlv_s.part              |     1 +
 external/mit/xkeyboard-config/dist/rules/base.o_c.part                |     2 +
 external/mit/xkeyboard-config/dist/rules/base.o_k.part                |     1 +
 external/mit/xkeyboard-config/dist/rules/base.o_s.part                |    14 +-
 external/mit/xkeyboard-config/dist/rules/base.o_t.part                |     1 +
 external/mit/xkeyboard-config/dist/rules/base.xml                     |   285 +-
 external/mit/xkeyboard-config/dist/rules/compat/Makefile.am           |    48 +-
 external/mit/xkeyboard-config/dist/rules/compat/Makefile.in           |    55 +-
 external/mit/xkeyboard-config/dist/rules/compat/base.l1v1_c.part      |     1 +
 external/mit/xkeyboard-config/dist/rules/compat/base.l2v2_c.part      |     1 +
 external/mit/xkeyboard-config/dist/rules/compat/base.l3v3_c.part      |     1 +
 external/mit/xkeyboard-config/dist/rules/compat/base.l4v4_c.part      |     1 +
 external/mit/xkeyboard-config/dist/rules/compat/base.lists.part       |     1 -
 external/mit/xkeyboard-config/dist/rules/compat/base.lv_c.part        |     1 +
 external/mit/xkeyboard-config/dist/rules/compat/base.o_s.part         |     1 +
 external/mit/xkeyboard-config/dist/rules/compat/layoutsMapping.lst    |     4 +-
 external/mit/xkeyboard-config/dist/rules/compat/map-variants.py       |   133 +
 external/mit/xkeyboard-config/dist/rules/compat/variantsMapping.lst   |     6 +-
 external/mit/xkeyboard-config/dist/rules/evdev.extras.xml             |   194 +-
 external/mit/xkeyboard-config/dist/rules/evdev.lists.base.part        |     1 +
 external/mit/xkeyboard-config/dist/rules/evdev.m_k.part               |     2 +-
 external/mit/xkeyboard-config/dist/rules/evdev.m_s.part               |     1 +
 external/mit/xkeyboard-config/dist/rules/evdev.ml_s1.part             |     1 +
 external/mit/xkeyboard-config/dist/rules/evdev.xml                    |   285 +-
 external/mit/xkeyboard-config/dist/rules/merge.py                     |    60 +
 external/mit/xkeyboard-config/dist/rules/xfree98                      |     2 +
 external/mit/xkeyboard-config/dist/symbols/Makefile.am                |     2 +-
 external/mit/xkeyboard-config/dist/symbols/Makefile.in                |    11 +-
 external/mit/xkeyboard-config/dist/symbols/al                         |    48 +
 external/mit/xkeyboard-config/dist/symbols/altwin                     |     6 +
 external/mit/xkeyboard-config/dist/symbols/apl                        |     3 +-
 external/mit/xkeyboard-config/dist/symbols/br                         |     2 +-
 external/mit/xkeyboard-config/dist/symbols/cn                         |   462 +
 external/mit/xkeyboard-config/dist/symbols/ctrl                       |    19 +
 external/mit/xkeyboard-config/dist/symbols/cz                         |   121 +-
 external/mit/xkeyboard-config/dist/symbols/de                         |    47 +-
 external/mit/xkeyboard-config/dist/symbols/digital_vndr/Makefile.in   |     9 +
 external/mit/xkeyboard-config/dist/symbols/fi                         |    22 +-
 external/mit/xkeyboard-config/dist/symbols/fr                         |   175 +
 external/mit/xkeyboard-config/dist/symbols/fujitsu_vndr/Makefile.in   |     9 +
 external/mit/xkeyboard-config/dist/symbols/gb                         |     2 +
 external/mit/xkeyboard-config/dist/symbols/hp_vndr/Makefile.in        |     9 +
 external/mit/xkeyboard-config/dist/symbols/hr                         |     1 +
 external/mit/xkeyboard-config/dist/symbols/id                         |   140 +-
 external/mit/xkeyboard-config/dist/symbols/inet                       |    37 +-
 external/mit/xkeyboard-config/dist/symbols/is                         |    20 +-
 external/mit/xkeyboard-config/dist/symbols/it                         |    44 -
 external/mit/xkeyboard-config/dist/symbols/jolla_vndr/Makefile.in     |     9 +
 external/mit/xkeyboard-config/dist/symbols/jv                         |    70 +
 external/mit/xkeyboard-config/dist/symbols/ke                         |    89 +-
 external/mit/xkeyboard-config/dist/symbols/level3                     |    18 +
 external/mit/xkeyboard-config/dist/symbols/lt                         |    27 +
 external/mit/xkeyboard-config/dist/symbols/macintosh_vndr/Makefile.in |     9 +
 external/mit/xkeyboard-config/dist/symbols/nec_vndr/Makefile.in       |     9 +
 external/mit/xkeyboard-config/dist/symbols/nokia_vndr/Makefile.in     |     9 +
 external/mit/xkeyboard-config/dist/symbols/rs                         |     2 +-
 external/mit/xkeyboard-config/dist/symbols/ru                         |    28 +-
 external/mit/xkeyboard-config/dist/symbols/sgi_vndr/Makefile.in       |     9 +
 external/mit/xkeyboard-config/dist/symbols/sharp_vndr/Makefile.in     |     9 +
 external/mit/xkeyboard-config/dist/symbols/sk                         |    39 +
 external/mit/xkeyboard-config/dist/symbols/sony_vndr/Makefile.in      |     9 +
 external/mit/xkeyboard-config/dist/symbols/sun_vndr/Makefile.in       |     9 +
 external/mit/xkeyboard-config/dist/symbols/sun_vndr/de                |     5 -
 external/mit/xkeyboard-config/dist/symbols/sun_vndr/fi                |    46 +-
 external/mit/xkeyboard-config/dist/symbols/sun_vndr/it                |     5 -
 external/mit/xkeyboard-config/dist/symbols/sun_vndr/us                |    70 +-
 external/mit/xkeyboard-config/dist/symbols/tr                         |     2 +-
 external/mit/xkeyboard-config/dist/symbols/typo                       |     4 +
 external/mit/xkeyboard-config/dist/symbols/us                         |   182 +-
 external/mit/xkeyboard-config/dist/symbols/xfree68_vndr/Makefile.in   |     9 +
 external/mit/xkeyboard-config/dist/types/Makefile.in                  |     9 +
 201 files changed, 59917 insertions(+), 53051 deletions(-)

diffs (truncated from 258288 to 300 lines):

diff -r 4337ce240c76 -r e572cdb16cf0 external/mit/xkeyboard-config/dist/Makefile.am
--- a/external/mit/xkeyboard-config/dist/Makefile.am    Sun Feb 23 10:17:32 2020 +0000
+++ b/external/mit/xkeyboard-config/dist/Makefile.am    Sun Feb 23 11:13:32 2020 +0000
@@ -11,5 +11,8 @@
 
 ACLOCAL_AMFLAGS = -I m4
 
+# we don't care about runtime dependencies during distcheck
+AM_DISTCHECK_CONFIGURE_FLAGS=--disable-runtime-deps
+
 sync-po:
        rsync -Lrtvz translationproject.org::tp/latest/xkeyboard-config/  po
diff -r 4337ce240c76 -r e572cdb16cf0 external/mit/xkeyboard-config/dist/Makefile.in
--- a/external/mit/xkeyboard-config/dist/Makefile.in    Sun Feb 23 10:17:32 2020 +0000
+++ b/external/mit/xkeyboard-config/dist/Makefile.in    Sun Feb 23 11:13:32 2020 +0000
@@ -309,6 +309,11 @@
 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
 POSUB = @POSUB@
+PYTHON = @PYTHON@
+PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@
+PYTHON_PLATFORM = @PYTHON_PLATFORM@
+PYTHON_PREFIX = @PYTHON_PREFIX@
+PYTHON_VERSION = @PYTHON_VERSION@
 SED = @SED@
 SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
@@ -359,9 +364,13 @@
 mkdir_p = @mkdir_p@
 oldincludedir = @oldincludedir@
 pdfdir = @pdfdir@
+pkgpyexecdir = @pkgpyexecdir@
+pkgpythondir = @pkgpythondir@
 prefix = @prefix@
 program_transform_name = @program_transform_name@
 psdir = @psdir@
+pyexecdir = @pyexecdir@
+pythondir = @pythondir@
 sbindir = @sbindir@
 sharedstatedir = @sharedstatedir@
 srcdir = @srcdir@
@@ -381,6 +390,9 @@
        xkeyboard-config.pc.in
 
 ACLOCAL_AMFLAGS = -I m4
+
+# we don't care about runtime dependencies during distcheck
+AM_DISTCHECK_CONFIGURE_FLAGS = --disable-runtime-deps
 all: all-recursive
 
 .SUFFIXES:
diff -r 4337ce240c76 -r e572cdb16cf0 external/mit/xkeyboard-config/dist/NEWS
--- a/external/mit/xkeyboard-config/dist/NEWS   Sun Feb 23 10:17:32 2020 +0000
+++ b/external/mit/xkeyboard-config/dist/NEWS   Sun Feb 23 11:13:32 2020 +0000
@@ -1,3 +1,7 @@
+2.29   47 commits
+       Translations updated
+2.28   28 commits
+       Translations updated
 2.27   Big change: dropping intltool
        24 commits
        Translations updated
diff -r 4337ce240c76 -r e572cdb16cf0 external/mit/xkeyboard-config/dist/aclocal.m4
--- a/external/mit/xkeyboard-config/dist/aclocal.m4     Sun Feb 23 10:17:32 2020 +0000
+++ b/external/mit/xkeyboard-config/dist/aclocal.m4     Sun Feb 23 11:13:32 2020 +0000
@@ -3058,6 +3058,244 @@
 # For backward compatibility.
 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
 
+# Copyright (C) 1999-2018 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+
+# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
+# ---------------------------------------------------------------------------
+# Adds support for distributing Python modules and packages.  To
+# install modules, copy them to $(pythondir), using the python_PYTHON
+# automake variable.  To install a package with the same name as the
+# automake package, install to $(pkgpythondir), or use the
+# pkgpython_PYTHON automake variable.
+#
+# The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
+# locations to install python extension modules (shared libraries).
+# Another macro is required to find the appropriate flags to compile
+# extension modules.
+#
+# If your package is configured with a different prefix to python,
+# users will have to add the install directory to the PYTHONPATH
+# environment variable, or create a .pth file (see the python
+# documentation for details).
+#
+# If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
+# cause an error if the version of python installed on the system
+# doesn't meet the requirement.  MINIMUM-VERSION should consist of
+# numbers and dots only.
+AC_DEFUN([AM_PATH_PYTHON],
+ [
+  dnl Find a Python interpreter.  Python versions prior to 2.0 are not
+  dnl supported. (2.0 was released on October 16, 2000).
+  m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
+[python python2 python3 dnl
+ python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 dnl
+ python3.2 python3.1 python3.0 dnl
+ python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 dnl
+ python2.0])
+
+  AC_ARG_VAR([PYTHON], [the Python interpreter])
+
+  m4_if([$1],[],[
+    dnl No version check is needed.
+    # Find any Python interpreter.
+    if test -z "$PYTHON"; then
+      AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
+    fi
+    am_display_PYTHON=python
+  ], [
+    dnl A version check is needed.
+    if test -n "$PYTHON"; then
+      # If the user set $PYTHON, use it and don't search something else.
+      AC_MSG_CHECKING([whether $PYTHON version is >= $1])
+      AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
+                             [AC_MSG_RESULT([yes])],
+                             [AC_MSG_RESULT([no])
+                              AC_MSG_ERROR([Python interpreter is too old])])
+      am_display_PYTHON=$PYTHON
+    else
+      # Otherwise, try each interpreter until we find one that satisfies
+      # VERSION.
+      AC_CACHE_CHECK([for a Python interpreter with version >= $1],
+       [am_cv_pathless_PYTHON],[
+       for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
+         test "$am_cv_pathless_PYTHON" = none && break
+         AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
+       done])
+      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
+      if test "$am_cv_pathless_PYTHON" = none; then
+       PYTHON=:
+      else
+        AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
+      fi
+      am_display_PYTHON=$am_cv_pathless_PYTHON
+    fi
+  ])
+
+  if test "$PYTHON" = :; then
+  dnl Run any user-specified action, or abort.
+    m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
+  else
+
+  dnl Query Python for its version number.  Getting [:3] seems to be
+  dnl the best way to do this; it's what "site.py" does in the standard
+  dnl library.
+
+  AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
+    [am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[[:3]])"`])
+  AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
+
+  dnl Use the values of $prefix and $exec_prefix for the corresponding
+  dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX.  These are made
+  dnl distinct variables so they can be overridden if need be.  However,
+  dnl general consensus is that you shouldn't need this ability.
+
+  AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
+  AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
+
+  dnl At times (like when building shared libraries) you may want
+  dnl to know which OS platform Python thinks this is.
+
+  AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
+    [am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`])
+  AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
+
+  # Just factor out some code duplication.
+  am_python_setup_sysconfig="\
+import sys
+# Prefer sysconfig over distutils.sysconfig, for better compatibility
+# with python 3.x.  See automake bug#10227.
+try:
+    import sysconfig
+except ImportError:
+    can_use_sysconfig = 0
+else:
+    can_use_sysconfig = 1
+# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
+# <https://github.com/pypa/virtualenv/issues/118>
+try:
+    from platform import python_implementation
+    if python_implementation() == 'CPython' and sys.version[[:3]] == '2.7':
+        can_use_sysconfig = 0
+except ImportError:
+    pass"
+
+  dnl Set up 4 directories:
+
+  dnl pythondir -- where to install python scripts.  This is the
+  dnl   site-packages directory, not the python standard library
+  dnl   directory like in previous automake betas.  This behavior
+  dnl   is more consistent with lispdir.m4 for example.
+  dnl Query distutils for this directory.
+  AC_CACHE_CHECK([for $am_display_PYTHON script directory],
+    [am_cv_python_pythondir],
+    [if test "x$prefix" = xNONE
+     then
+       am_py_prefix=$ac_default_prefix
+     else
+       am_py_prefix=$prefix
+     fi
+     am_cv_python_pythondir=`$PYTHON -c "
+$am_python_setup_sysconfig
+if can_use_sysconfig:
+    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
+else:
+    from distutils import sysconfig
+    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
+sys.stdout.write(sitedir)"`
+     case $am_cv_python_pythondir in
+     $am_py_prefix*)
+       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
+       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
+       ;;
+     *)
+       case $am_py_prefix in
+         /usr|/System*) ;;
+         *)
+         am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
+         ;;
+       esac
+       ;;
+     esac
+    ])
+  AC_SUBST([pythondir], [$am_cv_python_pythondir])
+
+  dnl pkgpythondir -- $PACKAGE directory under pythondir.  Was
+  dnl   PYTHON_SITE_PACKAGE in previous betas, but this naming is
+  dnl   more consistent with the rest of automake.
+
+  AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
+
+  dnl pyexecdir -- directory for installing python extension modules
+  dnl   (shared libraries)
+  dnl Query distutils for this directory.
+  AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
+    [am_cv_python_pyexecdir],
+    [if test "x$exec_prefix" = xNONE
+     then
+       am_py_exec_prefix=$am_py_prefix
+     else
+       am_py_exec_prefix=$exec_prefix
+     fi
+     am_cv_python_pyexecdir=`$PYTHON -c "
+$am_python_setup_sysconfig
+if can_use_sysconfig:
+    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
+else:
+    from distutils import sysconfig
+    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
+sys.stdout.write(sitedir)"`
+     case $am_cv_python_pyexecdir in
+     $am_py_exec_prefix*)
+       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
+       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
+       ;;
+     *)
+       case $am_py_exec_prefix in
+         /usr|/System*) ;;
+         *)
+          am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
+          ;;
+       esac
+       ;;
+     esac
+    ])
+  AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
+
+  dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
+
+  AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
+
+  dnl Run any user-specified action.
+  $2
+  fi
+
+])
+
+
+# AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
+# ---------------------------------------------------------------------------
+# Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
+# Run ACTION-IF-FALSE otherwise.
+# This test uses sys.hexversion instead of the string equivalent (first
+# word of sys.version), in order to cope with versions such as 2.2c1.
+# This supports Python 2.0 or higher. (2.0 was released on October 16, 2000).
+AC_DEFUN([AM_PYTHON_CHECK_VERSION],
+ [prog="import sys
+# split strings by '.' and convert to numeric.  Append some zeros
+# because we need at least 4 digits for the hex conversion.
+# map returns an iterator in Python 3.0 and a list in 2.x



Home | Main Index | Thread Index | Old Index