Lines Matching +full:0 +full:- +full:9 +full:a +full:- +full:z +full:-
2 # https://www.gnu.org/software/autoconf-archive/ax_pkg_swig.html
7 # AX_PKG_SWIG([major.minor.micro], [action-if-found], [action-if-not-found])
11 # This macro searches for a SWIG installation on your system. If found,
17 # should have the format: N[.N[.N]] (N is a number between 0 and 999. Only
22 # As usual, action-if-found is executed if SWIG is found, otherwise
23 # action-if-not-found is executed.
34 # Copyright (c) 2008 Sebastian Huber <sebastian-huber@web.de>
40 # Copyright (c) 2021 Vincent Danjean <Vincent.Danjean@ens-lyon.org>
49 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
52 # You should have received a copy of the GNU General Public License along
55 # As a special exception, the respective Autoconf Macro's copyright owner
64 # Macro released by the Autoconf Archive. When you make and distribute a
72 AC_PATH_PROGS([SWIG],[swig swig3.0 swig2.0])
73 if test -z "$SWIG" ; then
75 elif test -z "$1" ; then
79 …[swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0…
81 if test -n "$swig_version" ; then
84 [required_major=`echo $required | sed 's/[^0-9].*//'`]
85 if test -z "$required_major" ; then
86 [required_major=0]
88 [required=`echo $required. | sed 's/[0-9]*[^0-9]//'`]
89 [required_minor=`echo $required | sed 's/[^0-9].*//'`]
90 if test -z "$required_minor" ; then
91 [required_minor=0]
93 [required=`echo $required. | sed 's/[0-9]*[^0-9]//'`]
94 [required_patch=`echo $required | sed 's/[^0-9].*//'`]
95 if test -z "$required_patch" ; then
96 [required_patch=0]
100 [available_major=`echo $available | sed 's/[^0-9].*//'`]
101 if test -z "$available_major" ; then
102 [available_major=0]
104 [available=`echo $available | sed 's/[0-9]*[^0-9]//'`]
105 [available_minor=`echo $available | sed 's/[^0-9].*//'`]
106 if test -z "$available_minor" ; then
107 [available_minor=0]
109 [available=`echo $available | sed 's/[0-9]*[^0-9]//'`]
110 [available_patch=`echo $available | sed 's/[^0-9].*//'`]
111 if test -z "$available_patch" ; then
112 [available_patch=0]
114 # Convert the version tuple into a single number for easier comparison.
122 if test $available_swig_vernum -lt $required_swig_vernum; then
128 SWIG_LIB=`$SWIG -swiglib | tr '\r\n' ' '`