1016
1016
AC_SUBST([am__untar])
1017
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|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
1081
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
1082
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
1083
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
1084
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
1086
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
1087
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
1089
if test -n "$PKG_CONFIG"; then
1090
_pkg_min_version=m4_default([$1], [0.9.0])
1091
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
1092
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
1093
AC_MSG_RESULT([yes])
1099
])# PKG_PROG_PKG_CONFIG
1101
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1103
# Check to see whether a particular set of modules exists. Similar
1104
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
1106
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
1107
# only at the first occurence in configure.ac, so if the first place
1108
# it's called might be skipped (such as if it is within an "if", you
1109
# have to call PKG_CHECK_EXISTS manually
1110
# --------------------------------------------------------------
1111
AC_DEFUN([PKG_CHECK_EXISTS],
1112
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
1113
if test -n "$PKG_CONFIG" && \
1114
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
1115
m4_default([$2], [:])
1116
m4_ifvaln([$3], [else
1120
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
1121
# ---------------------------------------------
1122
m4_define([_PKG_CONFIG],
1123
[if test -n "$$1"; then
1125
elif test -n "$PKG_CONFIG"; then
1126
PKG_CHECK_EXISTS([$3],
1127
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
1128
test "x$?" != "x0" && pkg_failed=yes ],
1135
# _PKG_SHORT_ERRORS_SUPPORTED
1136
# -----------------------------
1137
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
1138
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
1139
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1140
_pkg_short_errors_supported=yes
1142
_pkg_short_errors_supported=no
1144
])# _PKG_SHORT_ERRORS_SUPPORTED
1147
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
1148
# [ACTION-IF-NOT-FOUND])
1151
# Note that if there is a possibility the first call to
1152
# PKG_CHECK_MODULES might not happen, you should be sure to include an
1153
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
1156
# --------------------------------------------------------------
1157
AC_DEFUN([PKG_CHECK_MODULES],
1158
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
1159
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
1160
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
1163
AC_MSG_CHECKING([for $1])
1165
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
1166
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
1168
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
1169
and $1[]_LIBS to avoid the need to call pkg-config.
1170
See the pkg-config man page for more details.])
1172
if test $pkg_failed = yes; then
1174
_PKG_SHORT_ERRORS_SUPPORTED
1175
if test $_pkg_short_errors_supported = yes; then
1176
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
1178
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
1180
# Put the nasty error message in config.log where it belongs
1181
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
1183
m4_default([$4], [AC_MSG_ERROR(
1184
[Package requirements ($2) were not met:
1188
Consider adjusting the PKG_CONFIG_PATH environment variable if you
1189
installed software in a non-standard prefix.
1193
elif test $pkg_failed = untried; then
1195
m4_default([$4], [AC_MSG_FAILURE(
1196
[The pkg-config script could not be found or is too old. Make sure it
1197
is in your PATH or set the PKG_CONFIG environment variable to the full
1202
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
1205
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
1206
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
1207
AC_MSG_RESULT([yes])
1210
])# PKG_CHECK_MODULES
1019
1212
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
1020
1213
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
1536
# nls.m4 serial 5 (gettext-0.18)
1537
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
1539
dnl This file is free software; the Free Software Foundation
1540
dnl gives unlimited permission to copy and/or distribute it,
1541
dnl with or without modifications, as long as this notice is preserved.
1543
dnl This file can can be used in projects which are not available under
1544
dnl the GNU General Public License or the GNU Library General Public
1545
dnl License but which still want to provide support for the GNU gettext
1547
dnl Please note that the actual code of the GNU gettext library is covered
1548
dnl by the GNU Library General Public License, and the rest of the GNU
1549
dnl gettext package package is covered by the GNU General Public License.
1550
dnl They are *not* in the public domain.
1553
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
1554
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
1560
AC_MSG_CHECKING([whether NLS is requested])
1561
dnl Default is enabled NLS
1562
AC_ARG_ENABLE([nls],
1563
[ --disable-nls do not use Native Language Support],
1564
USE_NLS=$enableval, USE_NLS=yes)
1565
AC_MSG_RESULT([$USE_NLS])
1569
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
1570
# serial 1 (pkg-config-0.24)
1572
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
1574
# This program is free software; you can redistribute it and/or modify
1575
# it under the terms of the GNU General Public License as published by
1576
# the Free Software Foundation; either version 2 of the License, or
1577
# (at your option) any later version.
1579
# This program is distributed in the hope that it will be useful, but
1580
# WITHOUT ANY WARRANTY; without even the implied warranty of
1581
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1582
# General Public License for more details.
1584
# You should have received a copy of the GNU General Public License
1585
# along with this program; if not, write to the Free Software
1586
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1588
# As a special exception to the GNU General Public License, if you
1589
# distribute this file as part of a program that contains a
1590
# configuration script generated by Autoconf, you may include it under
1591
# the same distribution terms that you use for the rest of that program.
1593
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
1594
# ----------------------------------
1595
AC_DEFUN([PKG_PROG_PKG_CONFIG],
1596
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
1597
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
1598
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
1599
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
1600
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
1602
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
1603
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
1605
if test -n "$PKG_CONFIG"; then
1606
_pkg_min_version=m4_default([$1], [0.9.0])
1607
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
1608
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
1609
AC_MSG_RESULT([yes])
1615
])# PKG_PROG_PKG_CONFIG
1617
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1619
# Check to see whether a particular set of modules exists. Similar
1620
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
1622
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
1623
# only at the first occurence in configure.ac, so if the first place
1624
# it's called might be skipped (such as if it is within an "if", you
1625
# have to call PKG_CHECK_EXISTS manually
1626
# --------------------------------------------------------------
1627
AC_DEFUN([PKG_CHECK_EXISTS],
1628
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
1629
if test -n "$PKG_CONFIG" && \
1630
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
1631
m4_default([$2], [:])
1632
m4_ifvaln([$3], [else
1636
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
1637
# ---------------------------------------------
1638
m4_define([_PKG_CONFIG],
1639
[if test -n "$$1"; then
1641
elif test -n "$PKG_CONFIG"; then
1642
PKG_CHECK_EXISTS([$3],
1643
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
1650
# _PKG_SHORT_ERRORS_SUPPORTED
1651
# -----------------------------
1652
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
1653
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
1654
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1655
_pkg_short_errors_supported=yes
1657
_pkg_short_errors_supported=no
1659
])# _PKG_SHORT_ERRORS_SUPPORTED
1662
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
1663
# [ACTION-IF-NOT-FOUND])
1666
# Note that if there is a possibility the first call to
1667
# PKG_CHECK_MODULES might not happen, you should be sure to include an
1668
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
1671
# --------------------------------------------------------------
1672
AC_DEFUN([PKG_CHECK_MODULES],
1673
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
1674
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
1675
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
1678
AC_MSG_CHECKING([for $1])
1680
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
1681
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
1683
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
1684
and $1[]_LIBS to avoid the need to call pkg-config.
1685
See the pkg-config man page for more details.])
1687
if test $pkg_failed = yes; then
1689
_PKG_SHORT_ERRORS_SUPPORTED
1690
if test $_pkg_short_errors_supported = yes; then
1691
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
1693
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
1695
# Put the nasty error message in config.log where it belongs
1696
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
1698
m4_default([$4], [AC_MSG_ERROR(
1699
[Package requirements ($2) were not met:
1703
Consider adjusting the PKG_CONFIG_PATH environment variable if you
1704
installed software in a non-standard prefix.
1708
elif test $pkg_failed = untried; then
1710
m4_default([$4], [AC_MSG_FAILURE(
1711
[The pkg-config script could not be found or is too old. Make sure it
1712
is in your PATH or set the PKG_CONFIG environment variable to the full
1717
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])dnl
1720
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
1721
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
1722
AC_MSG_RESULT([yes])
1725
])# PKG_CHECK_MODULES
1727
1729
m4_include([m4/intltool.m4])