mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Update aclocal.m4
This commit is contained in:
63
aclocal.m4
vendored
63
aclocal.m4
vendored
@@ -1,4 +1,4 @@
|
|||||||
# generated automatically by aclocal 1.11.6 -*- Autoconf -*-
|
# generated automatically by aclocal 1.15 -*- Autoconf -*-
|
||||||
|
|
||||||
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
|
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
|
||||||
|
|
||||||
@@ -11,20 +11,21 @@
|
|||||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
# PARTICULAR PURPOSE.
|
# PARTICULAR PURPOSE.
|
||||||
|
|
||||||
|
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
|
||||||
# nls.m4 serial 5 (gettext-0.18)
|
# nls.m4 serial 5 (gettext-0.18)
|
||||||
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
|
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014 Free Software Foundation,
|
||||||
dnl Inc.
|
dnl Inc.
|
||||||
dnl This file is free software; the Free Software Foundation
|
dnl This file is free software; the Free Software Foundation
|
||||||
dnl gives unlimited permission to copy and/or distribute it,
|
dnl gives unlimited permission to copy and/or distribute it,
|
||||||
dnl with or without modifications, as long as this notice is preserved.
|
dnl with or without modifications, as long as this notice is preserved.
|
||||||
dnl
|
dnl
|
||||||
dnl This file can can be used in projects which are not available under
|
dnl This file can be used in projects which are not available under
|
||||||
dnl the GNU General Public License or the GNU Library General Public
|
dnl the GNU General Public License or the GNU Library General Public
|
||||||
dnl License but which still want to provide support for the GNU gettext
|
dnl License but which still want to provide support for the GNU gettext
|
||||||
dnl functionality.
|
dnl functionality.
|
||||||
dnl Please note that the actual code of the GNU gettext library is covered
|
dnl Please note that the actual code of the GNU gettext library is covered
|
||||||
dnl by the GNU Library General Public License, and the rest of the GNU
|
dnl by the GNU Library General Public License, and the rest of the GNU
|
||||||
dnl gettext package package is covered by the GNU General Public License.
|
dnl gettext package is covered by the GNU General Public License.
|
||||||
dnl They are *not* in the public domain.
|
dnl They are *not* in the public domain.
|
||||||
|
|
||||||
dnl Authors:
|
dnl Authors:
|
||||||
@@ -44,14 +45,12 @@ AC_DEFUN([AM_NLS],
|
|||||||
AC_SUBST([USE_NLS])
|
AC_SUBST([USE_NLS])
|
||||||
])
|
])
|
||||||
|
|
||||||
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009,
|
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
|
||||||
# 2011 Free Software Foundation, Inc.
|
|
||||||
#
|
#
|
||||||
# This file is free software; the Free Software Foundation
|
# This file is free software; the Free Software Foundation
|
||||||
# gives unlimited permission to copy and/or distribute it,
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
# with or without modifications, as long as this notice is preserved.
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
# serial 2
|
|
||||||
|
|
||||||
# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
|
# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
@@ -80,7 +79,7 @@ AC_DEFUN([AM_PATH_PYTHON],
|
|||||||
dnl Find a Python interpreter. Python versions prior to 2.0 are not
|
dnl Find a Python interpreter. Python versions prior to 2.0 are not
|
||||||
dnl supported. (2.0 was released on October 16, 2000).
|
dnl supported. (2.0 was released on October 16, 2000).
|
||||||
m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
|
m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
|
||||||
[python python2 python3 python3.2 python3.1 python3.0 python2.7 dnl
|
[python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 dnl
|
||||||
python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0])
|
python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0])
|
||||||
|
|
||||||
AC_ARG_VAR([PYTHON], [the Python interpreter])
|
AC_ARG_VAR([PYTHON], [the Python interpreter])
|
||||||
@@ -96,10 +95,11 @@ AC_DEFUN([AM_PATH_PYTHON],
|
|||||||
dnl A version check is needed.
|
dnl A version check is needed.
|
||||||
if test -n "$PYTHON"; then
|
if test -n "$PYTHON"; then
|
||||||
# If the user set $PYTHON, use it and don't search something else.
|
# If the user set $PYTHON, use it and don't search something else.
|
||||||
AC_MSG_CHECKING([whether $PYTHON version >= $1])
|
AC_MSG_CHECKING([whether $PYTHON version is >= $1])
|
||||||
AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
|
AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
|
||||||
[AC_MSG_RESULT(yes)],
|
[AC_MSG_RESULT([yes])],
|
||||||
[AC_MSG_ERROR(too old)])
|
[AC_MSG_RESULT([no])
|
||||||
|
AC_MSG_ERROR([Python interpreter is too old])])
|
||||||
am_display_PYTHON=$PYTHON
|
am_display_PYTHON=$PYTHON
|
||||||
else
|
else
|
||||||
# Otherwise, try each interpreter until we find one that satisfies
|
# Otherwise, try each interpreter until we find one that satisfies
|
||||||
@@ -148,6 +148,25 @@ AC_DEFUN([AM_PATH_PYTHON],
|
|||||||
[am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`])
|
[am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`])
|
||||||
AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_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 Set up 4 directories:
|
||||||
|
|
||||||
@@ -164,7 +183,14 @@ AC_DEFUN([AM_PATH_PYTHON],
|
|||||||
else
|
else
|
||||||
am_py_prefix=$prefix
|
am_py_prefix=$prefix
|
||||||
fi
|
fi
|
||||||
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`
|
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
|
case $am_cv_python_pythondir in
|
||||||
$am_py_prefix*)
|
$am_py_prefix*)
|
||||||
am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
|
am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
|
||||||
@@ -199,7 +225,14 @@ AC_DEFUN([AM_PATH_PYTHON],
|
|||||||
else
|
else
|
||||||
am_py_exec_prefix=$exec_prefix
|
am_py_exec_prefix=$exec_prefix
|
||||||
fi
|
fi
|
||||||
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`
|
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
|
case $am_cv_python_pyexecdir in
|
||||||
$am_py_exec_prefix*)
|
$am_py_exec_prefix*)
|
||||||
am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
|
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]]
|
|||||||
sys.exit(sys.hexversion < minverhex)"
|
sys.exit(sys.hexversion < minverhex)"
|
||||||
AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
|
AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
|
||||||
|
|
||||||
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
|
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# This file is free software; the Free Software Foundation
|
# This file is free software; the Free Software Foundation
|
||||||
# gives unlimited permission to copy and/or distribute it,
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
# with or without modifications, as long as this notice is preserved.
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
# serial 1
|
|
||||||
|
|
||||||
# AM_RUN_LOG(COMMAND)
|
# AM_RUN_LOG(COMMAND)
|
||||||
# -------------------
|
# -------------------
|
||||||
# Run COMMAND, save the exit status in ac_status, and log it.
|
# Run COMMAND, save the exit status in ac_status, and log it.
|
||||||
|
|||||||
Reference in New Issue
Block a user