1068
1068
AC_SUBST([am__untar])
1069
1069
]) # _AM_PROG_TAR
1071
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
1073
# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
1074
# Written by Scott James Remnant, 2004.
1076
# This file is free software; the Free Software Foundation gives
1077
# unlimited permission to copy and/or distribute it, with or without
1078
# modifications, as long as this notice is preserved.
1080
# serial 5 lt~obsolete.m4
1082
# These exist entirely to fool aclocal when bootstrapping libtool.
1084
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
1085
# which have later been changed to m4_define as they aren't part of the
1086
# exported API, or moved to Autoconf or Automake where they belong.
1088
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
1089
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
1090
# using a macro with the same name in our local m4/libtool.m4 it'll
1091
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
1092
# and doesn't know about Autoconf macros at all.)
1094
# So we provide this file, which has a silly filename so it's always
1095
# included after everything else. This provides aclocal with the
1096
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
1097
# because those macros already exist, or will be overwritten later.
1098
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
1100
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
1101
# Yes, that means every name once taken will need to remain here until
1102
# we give up compatibility with versions before 1.7, at which point
1103
# we need to keep only those names which we still refer to.
1105
# This is to help aclocal find these macros, as it can't see m4_define.
1106
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
1108
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
1109
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
1110
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
1111
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
1112
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
1113
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
1114
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
1115
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
1116
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
1117
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
1118
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
1119
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
1120
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
1121
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
1122
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
1123
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
1124
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
1125
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
1126
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
1127
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
1128
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
1129
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
1130
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
1131
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
1132
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
1133
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
1134
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
1135
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
1136
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
1137
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
1138
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
1139
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
1140
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
1141
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
1142
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
1143
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
1144
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
1145
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
1146
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
1147
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
1148
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
1149
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
1150
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
1151
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
1152
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
1153
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
1154
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
1155
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
1156
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
1157
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
1158
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
1159
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
1160
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
1161
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
1162
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
1163
m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
1164
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
1165
m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
1166
m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
1167
m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
1168
m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
1071
# nls.m4 serial 5 (gettext-0.18)
1072
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
1074
dnl This file is free software; the Free Software Foundation
1075
dnl gives unlimited permission to copy and/or distribute it,
1076
dnl with or without modifications, as long as this notice is preserved.
1078
dnl This file can can be used in projects which are not available under
1079
dnl the GNU General Public License or the GNU Library General Public
1080
dnl License but which still want to provide support for the GNU gettext
1082
dnl Please note that the actual code of the GNU gettext library is covered
1083
dnl by the GNU Library General Public License, and the rest of the GNU
1084
dnl gettext package package is covered by the GNU General Public License.
1085
dnl They are *not* in the public domain.
1088
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
1089
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
1095
AC_MSG_CHECKING([whether NLS is requested])
1096
dnl Default is enabled NLS
1097
AC_ARG_ENABLE([nls],
1098
[ --disable-nls do not use Native Language Support],
1099
USE_NLS=$enableval, USE_NLS=yes)
1100
AC_MSG_RESULT([$USE_NLS])
1104
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
1105
# serial 1 (pkg-config-0.24)
1107
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
1109
# This program is free software; you can redistribute it and/or modify
1110
# it under the terms of the GNU General Public License as published by
1111
# the Free Software Foundation; either version 2 of the License, or
1112
# (at your option) any later version.
1114
# This program is distributed in the hope that it will be useful, but
1115
# WITHOUT ANY WARRANTY; without even the implied warranty of
1116
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1117
# General Public License for more details.
1119
# You should have received a copy of the GNU General Public License
1120
# along with this program; if not, write to the Free Software
1121
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1123
# As a special exception to the GNU General Public License, if you
1124
# distribute this file as part of a program that contains a
1125
# configuration script generated by Autoconf, you may include it under
1126
# the same distribution terms that you use for the rest of that program.
1128
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
1129
# ----------------------------------
1130
AC_DEFUN([PKG_PROG_PKG_CONFIG],
1131
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
1132
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
1133
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
1134
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
1135
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
1137
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
1138
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
1140
if test -n "$PKG_CONFIG"; then
1141
_pkg_min_version=m4_default([$1], [0.9.0])
1142
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
1143
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
1144
AC_MSG_RESULT([yes])
1150
])# PKG_PROG_PKG_CONFIG
1152
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1154
# Check to see whether a particular set of modules exists. Similar
1155
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
1157
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
1158
# only at the first occurence in configure.ac, so if the first place
1159
# it's called might be skipped (such as if it is within an "if", you
1160
# have to call PKG_CHECK_EXISTS manually
1161
# --------------------------------------------------------------
1162
AC_DEFUN([PKG_CHECK_EXISTS],
1163
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
1164
if test -n "$PKG_CONFIG" && \
1165
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
1166
m4_default([$2], [:])
1167
m4_ifvaln([$3], [else
1171
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
1172
# ---------------------------------------------
1173
m4_define([_PKG_CONFIG],
1174
[if test -n "$$1"; then
1176
elif test -n "$PKG_CONFIG"; then
1177
PKG_CHECK_EXISTS([$3],
1178
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
1185
# _PKG_SHORT_ERRORS_SUPPORTED
1186
# -----------------------------
1187
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
1188
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
1189
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1190
_pkg_short_errors_supported=yes
1192
_pkg_short_errors_supported=no
1194
])# _PKG_SHORT_ERRORS_SUPPORTED
1197
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
1198
# [ACTION-IF-NOT-FOUND])
1201
# Note that if there is a possibility the first call to
1202
# PKG_CHECK_MODULES might not happen, you should be sure to include an
1203
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
1206
# --------------------------------------------------------------
1207
AC_DEFUN([PKG_CHECK_MODULES],
1208
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
1209
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
1210
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
1213
AC_MSG_CHECKING([for $1])
1215
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
1216
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
1218
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
1219
and $1[]_LIBS to avoid the need to call pkg-config.
1220
See the pkg-config man page for more details.])
1222
if test $pkg_failed = yes; then
1224
_PKG_SHORT_ERRORS_SUPPORTED
1225
if test $_pkg_short_errors_supported = yes; then
1226
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
1228
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
1230
# Put the nasty error message in config.log where it belongs
1231
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
1233
m4_default([$4], [AC_MSG_ERROR(
1234
[Package requirements ($2) were not met:
1238
Consider adjusting the PKG_CONFIG_PATH environment variable if you
1239
installed software in a non-standard prefix.
1243
elif test $pkg_failed = untried; then
1245
m4_default([$4], [AC_MSG_FAILURE(
1246
[The pkg-config script could not be found or is too old. Make sure it
1247
is in your PATH or set the PKG_CONFIG environment variable to the full
1252
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])
1255
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
1256
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
1257
AC_MSG_RESULT([yes])
1260
])# PKG_CHECK_MODULES
1170
1262
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
1171
1263
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
1889
# nls.m4 serial 5 (gettext-0.18)
1890
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
1892
dnl This file is free software; the Free Software Foundation
1893
dnl gives unlimited permission to copy and/or distribute it,
1894
dnl with or without modifications, as long as this notice is preserved.
1896
dnl This file can can be used in projects which are not available under
1897
dnl the GNU General Public License or the GNU Library General Public
1898
dnl License but which still want to provide support for the GNU gettext
1900
dnl Please note that the actual code of the GNU gettext library is covered
1901
dnl by the GNU Library General Public License, and the rest of the GNU
1902
dnl gettext package package is covered by the GNU General Public License.
1903
dnl They are *not* in the public domain.
1906
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
1907
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
1913
AC_MSG_CHECKING([whether NLS is requested])
1914
dnl Default is enabled NLS
1915
AC_ARG_ENABLE([nls],
1916
[ --disable-nls do not use Native Language Support],
1917
USE_NLS=$enableval, USE_NLS=yes)
1918
AC_MSG_RESULT([$USE_NLS])
1922
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
1923
# serial 1 (pkg-config-0.24)
1925
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
1927
# This program is free software; you can redistribute it and/or modify
1928
# it under the terms of the GNU General Public License as published by
1929
# the Free Software Foundation; either version 2 of the License, or
1930
# (at your option) any later version.
1932
# This program is distributed in the hope that it will be useful, but
1933
# WITHOUT ANY WARRANTY; without even the implied warranty of
1934
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1935
# General Public License for more details.
1937
# You should have received a copy of the GNU General Public License
1938
# along with this program; if not, write to the Free Software
1939
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1941
# As a special exception to the GNU General Public License, if you
1942
# distribute this file as part of a program that contains a
1943
# configuration script generated by Autoconf, you may include it under
1944
# the same distribution terms that you use for the rest of that program.
1946
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
1947
# ----------------------------------
1948
AC_DEFUN([PKG_PROG_PKG_CONFIG],
1949
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
1950
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
1951
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
1952
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
1953
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
1955
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
1956
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
1958
if test -n "$PKG_CONFIG"; then
1959
_pkg_min_version=m4_default([$1], [0.9.0])
1960
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
1961
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
1962
AC_MSG_RESULT([yes])
1968
])# PKG_PROG_PKG_CONFIG
1970
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1972
# Check to see whether a particular set of modules exists. Similar
1973
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
1975
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
1976
# only at the first occurence in configure.ac, so if the first place
1977
# it's called might be skipped (such as if it is within an "if", you
1978
# have to call PKG_CHECK_EXISTS manually
1979
# --------------------------------------------------------------
1980
AC_DEFUN([PKG_CHECK_EXISTS],
1981
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
1982
if test -n "$PKG_CONFIG" && \
1983
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
1984
m4_default([$2], [:])
1985
m4_ifvaln([$3], [else
1989
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
1990
# ---------------------------------------------
1991
m4_define([_PKG_CONFIG],
1992
[if test -n "$$1"; then
1994
elif test -n "$PKG_CONFIG"; then
1995
PKG_CHECK_EXISTS([$3],
1996
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
2003
# _PKG_SHORT_ERRORS_SUPPORTED
2004
# -----------------------------
2005
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
2006
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
2007
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2008
_pkg_short_errors_supported=yes
2010
_pkg_short_errors_supported=no
2012
])# _PKG_SHORT_ERRORS_SUPPORTED
2015
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
2016
# [ACTION-IF-NOT-FOUND])
2019
# Note that if there is a possibility the first call to
2020
# PKG_CHECK_MODULES might not happen, you should be sure to include an
2021
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
2024
# --------------------------------------------------------------
2025
AC_DEFUN([PKG_CHECK_MODULES],
2026
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
2027
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
2028
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
2031
AC_MSG_CHECKING([for $1])
2033
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
2034
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
2036
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
2037
and $1[]_LIBS to avoid the need to call pkg-config.
2038
See the pkg-config man page for more details.])
2040
if test $pkg_failed = yes; then
2042
_PKG_SHORT_ERRORS_SUPPORTED
2043
if test $_pkg_short_errors_supported = yes; then
2044
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
2046
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
2048
# Put the nasty error message in config.log where it belongs
2049
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
2051
m4_default([$4], [AC_MSG_ERROR(
2052
[Package requirements ($2) were not met:
2056
Consider adjusting the PKG_CONFIG_PATH environment variable if you
2057
installed software in a non-standard prefix.
2061
elif test $pkg_failed = untried; then
2063
m4_default([$4], [AC_MSG_FAILURE(
2064
[The pkg-config script could not be found or is too old. Make sure it
2065
is in your PATH or set the PKG_CONFIG environment variable to the full
2070
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])dnl
2073
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
2074
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
2075
AC_MSG_RESULT([yes])
2078
])# PKG_CHECK_MODULES
2080
1981
m4_include([m4/intltool.m4])
2081
1982
m4_include([m4/libtool.m4])
2082
1983
m4_include([m4/ltoptions.m4])