14
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
15
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.67],,
17
[m4_warning([this file was generated for autoconf 2.67.
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
17
[m4_warning([this file was generated for autoconf 2.68.
18
18
You have another version of autoconf. It may work, but is not guaranteed to.
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
22
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
23
# serial 1 (pkg-config-0.24)
25
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
27
# This program is free software; you can redistribute it and/or modify
28
# it under the terms of the GNU General Public License as published by
29
# the Free Software Foundation; either version 2 of the License, or
30
# (at your option) any later version.
32
# This program is distributed in the hope that it will be useful, but
33
# WITHOUT ANY WARRANTY; without even the implied warranty of
34
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
35
# General Public License for more details.
37
# You should have received a copy of the GNU General Public License
38
# along with this program; if not, write to the Free Software
39
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
41
# As a special exception to the GNU General Public License, if you
42
# distribute this file as part of a program that contains a
43
# configuration script generated by Autoconf, you may include it under
44
# the same distribution terms that you use for the rest of that program.
46
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
47
# ----------------------------------
48
AC_DEFUN([PKG_PROG_PKG_CONFIG],
49
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
50
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
51
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
52
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
53
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
55
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
56
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
58
if test -n "$PKG_CONFIG"; then
59
_pkg_min_version=m4_default([$1], [0.9.0])
60
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
61
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
68
])# PKG_PROG_PKG_CONFIG
70
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
72
# Check to see whether a particular set of modules exists. Similar
73
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
75
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
76
# only at the first occurence in configure.ac, so if the first place
77
# it's called might be skipped (such as if it is within an "if", you
78
# have to call PKG_CHECK_EXISTS manually
79
# --------------------------------------------------------------
80
AC_DEFUN([PKG_CHECK_EXISTS],
81
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
82
if test -n "$PKG_CONFIG" && \
83
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
89
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
90
# ---------------------------------------------
91
m4_define([_PKG_CONFIG],
92
[if test -n "$$1"; then
94
elif test -n "$PKG_CONFIG"; then
95
PKG_CHECK_EXISTS([$3],
96
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
103
# _PKG_SHORT_ERRORS_SUPPORTED
104
# -----------------------------
105
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
106
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
107
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
108
_pkg_short_errors_supported=yes
110
_pkg_short_errors_supported=no
112
])# _PKG_SHORT_ERRORS_SUPPORTED
115
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
116
# [ACTION-IF-NOT-FOUND])
119
# Note that if there is a possibility the first call to
120
# PKG_CHECK_MODULES might not happen, you should be sure to include an
121
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
124
# --------------------------------------------------------------
125
AC_DEFUN([PKG_CHECK_MODULES],
126
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
127
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
128
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
131
AC_MSG_CHECKING([for $1])
133
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
134
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
136
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
137
and $1[]_LIBS to avoid the need to call pkg-config.
138
See the pkg-config man page for more details.])
140
if test $pkg_failed = yes; then
142
_PKG_SHORT_ERRORS_SUPPORTED
143
if test $_pkg_short_errors_supported = yes; then
144
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
146
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
148
# Put the nasty error message in config.log where it belongs
149
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
151
m4_default([$4], [AC_MSG_ERROR(
152
[Package requirements ($2) were not met:
156
Consider adjusting the PKG_CONFIG_PATH environment variable if you
157
installed software in a non-standard prefix.
161
elif test $pkg_failed = untried; then
163
m4_default([$4], [AC_MSG_FAILURE(
164
[The pkg-config script could not be found or is too old. Make sure it
165
is in your PATH or set the PKG_CONFIG environment variable to the full
170
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
173
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
174
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
178
])# PKG_CHECK_MODULES
180
22
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
182
24
# This file is free software; the Free Software Foundation
1174
1016
AC_SUBST([am__untar])
1175
1017
]) # _AM_PROG_TAR
1019
# nls.m4 serial 5 (gettext-0.18)
1020
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
1022
dnl This file is free software; the Free Software Foundation
1023
dnl gives unlimited permission to copy and/or distribute it,
1024
dnl with or without modifications, as long as this notice is preserved.
1026
dnl This file can can be used in projects which are not available under
1027
dnl the GNU General Public License or the GNU Library General Public
1028
dnl License but which still want to provide support for the GNU gettext
1030
dnl Please note that the actual code of the GNU gettext library is covered
1031
dnl by the GNU Library General Public License, and the rest of the GNU
1032
dnl gettext package package is covered by the GNU General Public License.
1033
dnl They are *not* in the public domain.
1036
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
1037
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
1043
AC_MSG_CHECKING([whether NLS is requested])
1044
dnl Default is enabled NLS
1045
AC_ARG_ENABLE([nls],
1046
[ --disable-nls do not use Native Language Support],
1047
USE_NLS=$enableval, USE_NLS=yes)
1048
AC_MSG_RESULT([$USE_NLS])
1052
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
1053
# serial 1 (pkg-config-0.24)
1055
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
1057
# This program is free software; you can redistribute it and/or modify
1058
# it under the terms of the GNU General Public License as published by
1059
# the Free Software Foundation; either version 2 of the License, or
1060
# (at your option) any later version.
1062
# This program is distributed in the hope that it will be useful, but
1063
# WITHOUT ANY WARRANTY; without even the implied warranty of
1064
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1065
# General Public License for more details.
1067
# You should have received a copy of the GNU General Public License
1068
# along with this program; if not, write to the Free Software
1069
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1071
# As a special exception to the GNU General Public License, if you
1072
# distribute this file as part of a program that contains a
1073
# configuration script generated by Autoconf, you may include it under
1074
# the same distribution terms that you use for the rest of that program.
1076
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
1077
# ----------------------------------
1078
AC_DEFUN([PKG_PROG_PKG_CONFIG],
1079
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
1080
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
1081
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
1082
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
1083
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
1085
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
1086
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
1088
if test -n "$PKG_CONFIG"; then
1089
_pkg_min_version=m4_default([$1], [0.9.0])
1090
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
1091
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
1092
AC_MSG_RESULT([yes])
1098
])# PKG_PROG_PKG_CONFIG
1100
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1102
# Check to see whether a particular set of modules exists. Similar
1103
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
1105
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
1106
# only at the first occurence in configure.ac, so if the first place
1107
# it's called might be skipped (such as if it is within an "if", you
1108
# have to call PKG_CHECK_EXISTS manually
1109
# --------------------------------------------------------------
1110
AC_DEFUN([PKG_CHECK_EXISTS],
1111
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
1112
if test -n "$PKG_CONFIG" && \
1113
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
1114
m4_default([$2], [:])
1115
m4_ifvaln([$3], [else
1119
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
1120
# ---------------------------------------------
1121
m4_define([_PKG_CONFIG],
1122
[if test -n "$$1"; then
1124
elif test -n "$PKG_CONFIG"; then
1125
PKG_CHECK_EXISTS([$3],
1126
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
1133
# _PKG_SHORT_ERRORS_SUPPORTED
1134
# -----------------------------
1135
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
1136
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
1137
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1138
_pkg_short_errors_supported=yes
1140
_pkg_short_errors_supported=no
1142
])# _PKG_SHORT_ERRORS_SUPPORTED
1145
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
1146
# [ACTION-IF-NOT-FOUND])
1149
# Note that if there is a possibility the first call to
1150
# PKG_CHECK_MODULES might not happen, you should be sure to include an
1151
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
1154
# --------------------------------------------------------------
1155
AC_DEFUN([PKG_CHECK_MODULES],
1156
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
1157
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
1158
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
1161
AC_MSG_CHECKING([for $1])
1163
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
1164
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
1166
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
1167
and $1[]_LIBS to avoid the need to call pkg-config.
1168
See the pkg-config man page for more details.])
1170
if test $pkg_failed = yes; then
1172
_PKG_SHORT_ERRORS_SUPPORTED
1173
if test $_pkg_short_errors_supported = yes; then
1174
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
1176
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
1178
# Put the nasty error message in config.log where it belongs
1179
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
1181
m4_default([$4], [AC_MSG_ERROR(
1182
[Package requirements ($2) were not met:
1186
Consider adjusting the PKG_CONFIG_PATH environment variable if you
1187
installed software in a non-standard prefix.
1191
elif test $pkg_failed = untried; then
1193
m4_default([$4], [AC_MSG_FAILURE(
1194
[The pkg-config script could not be found or is too old. Make sure it
1195
is in your PATH or set the PKG_CONFIG environment variable to the full
1200
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])
1203
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
1204
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
1205
AC_MSG_RESULT([yes])
1208
])# PKG_CHECK_MODULES
1177
1210
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
1178
1211
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
1694
# nls.m4 serial 5 (gettext-0.18)
1695
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
1697
dnl This file is free software; the Free Software Foundation
1698
dnl gives unlimited permission to copy and/or distribute it,
1699
dnl with or without modifications, as long as this notice is preserved.
1701
dnl This file can can be used in projects which are not available under
1702
dnl the GNU General Public License or the GNU Library General Public
1703
dnl License but which still want to provide support for the GNU gettext
1705
dnl Please note that the actual code of the GNU gettext library is covered
1706
dnl by the GNU Library General Public License, and the rest of the GNU
1707
dnl gettext package package is covered by the GNU General Public License.
1708
dnl They are *not* in the public domain.
1711
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
1712
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
1718
AC_MSG_CHECKING([whether NLS is requested])
1719
dnl Default is enabled NLS
1720
AC_ARG_ENABLE([nls],
1721
[ --disable-nls do not use Native Language Support],
1722
USE_NLS=$enableval, USE_NLS=yes)
1723
AC_MSG_RESULT([$USE_NLS])
1727
1727
m4_include([m4/intltool.m4])