1074
1074
AC_SUBST([am__untar])
1075
1075
]) # _AM_PROG_TAR
1077
# nls.m4 serial 3 (gettext-0.15)
1078
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
1079
dnl This file is free software; the Free Software Foundation
1080
dnl gives unlimited permission to copy and/or distribute it,
1081
dnl with or without modifications, as long as this notice is preserved.
1083
dnl This file can can be used in projects which are not available under
1084
dnl the GNU General Public License or the GNU Library General Public
1085
dnl License but which still want to provide support for the GNU gettext
1087
dnl Please note that the actual code of the GNU gettext library is covered
1088
dnl by the GNU Library General Public License, and the rest of the GNU
1089
dnl gettext package package is covered by the GNU General Public License.
1090
dnl They are *not* in the public domain.
1093
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
1094
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
1100
AC_MSG_CHECKING([whether NLS is requested])
1101
dnl Default is enabled NLS
1103
[ --disable-nls do not use Native Language Support],
1104
USE_NLS=$enableval, USE_NLS=yes)
1105
AC_MSG_RESULT($USE_NLS)
1109
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
1111
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
1113
# This program is free software; you can redistribute it and/or modify
1114
# it under the terms of the GNU General Public License as published by
1115
# the Free Software Foundation; either version 2 of the License, or
1116
# (at your option) any later version.
1118
# This program is distributed in the hope that it will be useful, but
1119
# WITHOUT ANY WARRANTY; without even the implied warranty of
1120
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1121
# General Public License for more details.
1123
# You should have received a copy of the GNU General Public License
1124
# along with this program; if not, write to the Free Software
1125
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1127
# As a special exception to the GNU General Public License, if you
1128
# distribute this file as part of a program that contains a
1129
# configuration script generated by Autoconf, you may include it under
1130
# the same distribution terms that you use for the rest of that program.
1132
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
1133
# ----------------------------------
1134
AC_DEFUN([PKG_PROG_PKG_CONFIG],
1135
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
1136
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
1137
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
1138
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
1139
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
1141
if test -n "$PKG_CONFIG"; then
1142
_pkg_min_version=m4_default([$1], [0.9.0])
1143
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
1144
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
1145
AC_MSG_RESULT([yes])
1152
])# PKG_PROG_PKG_CONFIG
1154
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1156
# Check to see whether a particular set of modules exists. Similar
1157
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
1160
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
1161
# this or PKG_CHECK_MODULES is called, or make sure to call
1162
# PKG_CHECK_EXISTS manually
1163
# --------------------------------------------------------------
1164
AC_DEFUN([PKG_CHECK_EXISTS],
1165
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
1166
if test -n "$PKG_CONFIG" && \
1167
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
1168
m4_ifval([$2], [$2], [:])
1169
m4_ifvaln([$3], [else
1174
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
1175
# ---------------------------------------------
1176
m4_define([_PKG_CONFIG],
1177
[if test -n "$$1"; then
1179
elif test -n "$PKG_CONFIG"; then
1180
PKG_CHECK_EXISTS([$3],
1181
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
1188
# _PKG_SHORT_ERRORS_SUPPORTED
1189
# -----------------------------
1190
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
1191
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
1192
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1193
_pkg_short_errors_supported=yes
1195
_pkg_short_errors_supported=no
1197
])# _PKG_SHORT_ERRORS_SUPPORTED
1200
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
1201
# [ACTION-IF-NOT-FOUND])
1204
# Note that if there is a possibility the first call to
1205
# PKG_CHECK_MODULES might not happen, you should be sure to include an
1206
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
1209
# --------------------------------------------------------------
1210
AC_DEFUN([PKG_CHECK_MODULES],
1211
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
1212
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
1213
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
1216
AC_MSG_CHECKING([for $1])
1218
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
1219
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
1221
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
1222
and $1[]_LIBS to avoid the need to call pkg-config.
1223
See the pkg-config man page for more details.])
1225
if test $pkg_failed = yes; then
1226
_PKG_SHORT_ERRORS_SUPPORTED
1227
if test $_pkg_short_errors_supported = yes; then
1228
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
1230
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
1232
# Put the nasty error message in config.log where it belongs
1233
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
1235
ifelse([$4], , [AC_MSG_ERROR(dnl
1236
[Package requirements ($2) were not met:
1240
Consider adjusting the PKG_CONFIG_PATH environment variable if you
1241
installed software in a non-standard prefix.
1245
[AC_MSG_RESULT([no])
1247
elif test $pkg_failed = untried; then
1248
ifelse([$4], , [AC_MSG_FAILURE(dnl
1249
[The pkg-config script could not be found or is too old. Make sure it
1250
is in your PATH or set the PKG_CONFIG environment variable to the full
1255
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
1258
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
1259
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
1260
AC_MSG_RESULT([yes])
1261
ifelse([$3], , :, [$3])
1263
])# PKG_CHECK_MODULES
1265
1077
dnl AM_GCONF_SOURCE_2
1266
1078
dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
1267
1079
dnl (i.e. pass to gconftool-2
1842
# isc-posix.m4 serial 2 (gettext-0.11.2)
1843
dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
1844
dnl This file is free software; the Free Software Foundation
1845
dnl gives unlimited permission to copy and/or distribute it,
1846
dnl with or without modifications, as long as this notice is preserved.
1848
# This file is not needed with autoconf-2.53 and newer. Remove it in 2005.
1850
# This test replaces the one in autoconf.
1851
# Currently this macro should have the same name as the autoconf macro
1852
# because gettext's gettext.m4 (distributed in the automake package)
1853
# still uses it. Otherwise, the use in gettext.m4 makes autoheader
1854
# give these diagnostics:
1855
# configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
1856
# configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
1858
undefine([AC_ISC_POSIX])
1860
AC_DEFUN([AC_ISC_POSIX],
1862
dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
1863
AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
1867
# nls.m4 serial 3 (gettext-0.15)
1868
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
1869
dnl This file is free software; the Free Software Foundation
1870
dnl gives unlimited permission to copy and/or distribute it,
1871
dnl with or without modifications, as long as this notice is preserved.
1873
dnl This file can can be used in projects which are not available under
1874
dnl the GNU General Public License or the GNU Library General Public
1875
dnl License but which still want to provide support for the GNU gettext
1877
dnl Please note that the actual code of the GNU gettext library is covered
1878
dnl by the GNU Library General Public License, and the rest of the GNU
1879
dnl gettext package package is covered by the GNU General Public License.
1880
dnl They are *not* in the public domain.
1883
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
1884
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
1890
AC_MSG_CHECKING([whether NLS is requested])
1891
dnl Default is enabled NLS
1893
[ --disable-nls do not use Native Language Support],
1894
USE_NLS=$enableval, USE_NLS=yes)
1895
AC_MSG_RESULT($USE_NLS)
1899
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
1901
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
1903
# This program is free software; you can redistribute it and/or modify
1904
# it under the terms of the GNU General Public License as published by
1905
# the Free Software Foundation; either version 2 of the License, or
1906
# (at your option) any later version.
1908
# This program is distributed in the hope that it will be useful, but
1909
# WITHOUT ANY WARRANTY; without even the implied warranty of
1910
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1911
# General Public License for more details.
1913
# You should have received a copy of the GNU General Public License
1914
# along with this program; if not, write to the Free Software
1915
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1917
# As a special exception to the GNU General Public License, if you
1918
# distribute this file as part of a program that contains a
1919
# configuration script generated by Autoconf, you may include it under
1920
# the same distribution terms that you use for the rest of that program.
1922
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
1923
# ----------------------------------
1924
AC_DEFUN([PKG_PROG_PKG_CONFIG],
1925
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
1926
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
1927
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
1928
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
1929
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
1931
if test -n "$PKG_CONFIG"; then
1932
_pkg_min_version=m4_default([$1], [0.9.0])
1933
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
1934
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
1935
AC_MSG_RESULT([yes])
1942
])# PKG_PROG_PKG_CONFIG
1944
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1946
# Check to see whether a particular set of modules exists. Similar
1947
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
1950
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
1951
# this or PKG_CHECK_MODULES is called, or make sure to call
1952
# PKG_CHECK_EXISTS manually
1953
# --------------------------------------------------------------
1954
AC_DEFUN([PKG_CHECK_EXISTS],
1955
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
1956
if test -n "$PKG_CONFIG" && \
1957
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
1958
m4_ifval([$2], [$2], [:])
1959
m4_ifvaln([$3], [else
1964
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
1965
# ---------------------------------------------
1966
m4_define([_PKG_CONFIG],
1967
[if test -n "$$1"; then
1969
elif test -n "$PKG_CONFIG"; then
1970
PKG_CHECK_EXISTS([$3],
1971
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
1978
# _PKG_SHORT_ERRORS_SUPPORTED
1979
# -----------------------------
1980
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
1981
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
1982
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1983
_pkg_short_errors_supported=yes
1985
_pkg_short_errors_supported=no
1987
])# _PKG_SHORT_ERRORS_SUPPORTED
1990
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
1991
# [ACTION-IF-NOT-FOUND])
1994
# Note that if there is a possibility the first call to
1995
# PKG_CHECK_MODULES might not happen, you should be sure to include an
1996
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
1999
# --------------------------------------------------------------
2000
AC_DEFUN([PKG_CHECK_MODULES],
2001
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
2002
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
2003
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
2006
AC_MSG_CHECKING([for $1])
2008
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
2009
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
2011
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
2012
and $1[]_LIBS to avoid the need to call pkg-config.
2013
See the pkg-config man page for more details.])
2015
if test $pkg_failed = yes; then
2016
_PKG_SHORT_ERRORS_SUPPORTED
2017
if test $_pkg_short_errors_supported = yes; then
2018
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
2020
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
2022
# Put the nasty error message in config.log where it belongs
2023
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
2025
ifelse([$4], , [AC_MSG_ERROR(dnl
2026
[Package requirements ($2) were not met:
2030
Consider adjusting the PKG_CONFIG_PATH environment variable if you
2031
installed software in a non-standard prefix.
2035
[AC_MSG_RESULT([no])
2037
elif test $pkg_failed = untried; then
2038
ifelse([$4], , [AC_MSG_FAILURE(dnl
2039
[The pkg-config script could not be found or is too old. Make sure it
2040
is in your PATH or set the PKG_CONFIG environment variable to the full
2045
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
2048
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
2049
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
2050
AC_MSG_RESULT([yes])
2051
ifelse([$3], , :, [$3])
2053
])# PKG_CHECK_MODULES
2035
2055
m4_include([m4/gnome-doc-utils.m4])
2036
2056
m4_include([m4/gtk-doc.m4])
2037
2057
m4_include([m4/intltool.m4])