~ubuntu-branches/ubuntu/natty/evince/natty

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2010-08-18 17:00:01 UTC
  • mfrom: (1.1.62 upstream)
  • Revision ID: james.westby@ubuntu.com-20100818170001-z65ku7vpsw3iokwa
Tags: 2.31.90-0ubuntu1
* New upstream release
* Move gir1.0-evince-2.30 -> gir1.0-evince-2.32,
  libevdocument2 -> libevdocument3,
  libevview2 -> libevview3
  * Update shlibs

Show diffs side-by-side

added added

removed removed

Lines of Context:
1074
1074
AC_SUBST([am__untar])
1075
1075
]) # _AM_PROG_TAR
1076
1076
 
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.
1082
 
dnl
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
1086
 
dnl functionality.
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.
1091
 
 
1092
 
dnl Authors:
1093
 
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
1094
 
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
1095
 
 
1096
 
AC_PREREQ(2.50)
1097
 
 
1098
 
AC_DEFUN([AM_NLS],
1099
 
[
1100
 
  AC_MSG_CHECKING([whether NLS is requested])
1101
 
  dnl Default is enabled NLS
1102
 
  AC_ARG_ENABLE(nls,
1103
 
    [  --disable-nls           do not use Native Language Support],
1104
 
    USE_NLS=$enableval, USE_NLS=yes)
1105
 
  AC_MSG_RESULT($USE_NLS)
1106
 
  AC_SUBST(USE_NLS)
1107
 
])
1108
 
 
1109
 
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
1110
 
1111
 
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
1112
 
#
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.
1117
 
#
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.
1122
 
#
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.
1126
 
#
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.
1131
 
 
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])
1140
 
fi
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])
1146
 
        else
1147
 
                AC_MSG_RESULT([no])
1148
 
                PKG_CONFIG=""
1149
 
        fi
1150
 
                
1151
 
fi[]dnl
1152
 
])# PKG_PROG_PKG_CONFIG
1153
 
 
1154
 
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1155
 
#
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.
1158
 
#
1159
 
#
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
1170
 
  $3])dnl
1171
 
fi])
1172
 
 
1173
 
 
1174
 
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
1175
 
# ---------------------------------------------
1176
 
m4_define([_PKG_CONFIG],
1177
 
[if test -n "$$1"; then
1178
 
    pkg_cv_[]$1="$$1"
1179
 
 elif test -n "$PKG_CONFIG"; then
1180
 
    PKG_CHECK_EXISTS([$3],
1181
 
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
1182
 
                     [pkg_failed=yes])
1183
 
 else
1184
 
    pkg_failed=untried
1185
 
fi[]dnl
1186
 
])# _PKG_CONFIG
1187
 
 
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
1194
 
else
1195
 
        _pkg_short_errors_supported=no
1196
 
fi[]dnl
1197
 
])# _PKG_SHORT_ERRORS_SUPPORTED
1198
 
 
1199
 
 
1200
 
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
1201
 
# [ACTION-IF-NOT-FOUND])
1202
 
#
1203
 
#
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
1207
 
#
1208
 
#
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
1214
 
 
1215
 
pkg_failed=no
1216
 
AC_MSG_CHECKING([for $1])
1217
 
 
1218
 
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
1219
 
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
1220
 
 
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.])
1224
 
 
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`
1229
 
        else 
1230
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
1231
 
        fi
1232
 
        # Put the nasty error message in config.log where it belongs
1233
 
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
1234
 
 
1235
 
        ifelse([$4], , [AC_MSG_ERROR(dnl
1236
 
[Package requirements ($2) were not met:
1237
 
 
1238
 
$$1_PKG_ERRORS
1239
 
 
1240
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
1241
 
installed software in a non-standard prefix.
1242
 
 
1243
 
_PKG_TEXT
1244
 
])],
1245
 
                [AC_MSG_RESULT([no])
1246
 
                $4])
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
1251
 
path to pkg-config.
1252
 
 
1253
 
_PKG_TEXT
1254
 
 
1255
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
1256
 
                [$4])
1257
 
else
1258
 
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
1259
 
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
1260
 
        AC_MSG_RESULT([yes])
1261
 
        ifelse([$3], , :, [$3])
1262
 
fi[]dnl
1263
 
])# PKG_CHECK_MODULES
1264
 
 
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
1741
1553
 
1742
1554
 
1743
1555
# gnome-common.m4
1744
 
#
1745
 
# serial 3
1746
1556
1747
1557
 
1748
1558
dnl GNOME_COMMON_INIT
1749
1559
 
1750
 
AU_DEFUN([GNOME_COMMON_INIT],
 
1560
AC_DEFUN([GNOME_COMMON_INIT],
1751
1561
[
1752
1562
  dnl this macro should come after AC_CONFIG_MACRO_DIR
1753
1563
  AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
1760
1570
  fi
1761
1571
 
1762
1572
  AC_SUBST([ACLOCAL_AMFLAGS])
1763
 
],
1764
 
[[$0: This macro is deprecated. You should set put "ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}"
1765
 
in your top-level Makefile.am, instead, where "m4" is the macro directory set
1766
 
with AC_CONFIG_MACRO_DIR() in your configure.ac]])
 
1573
])
1767
1574
 
1768
1575
AC_DEFUN([GNOME_DEBUG_CHECK],
1769
1576
[
2032
1839
]
2033
1840
)
2034
1841
 
 
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.
 
1847
 
 
1848
# This file is not needed with autoconf-2.53 and newer.  Remove it in 2005.
 
1849
 
 
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
 
1857
 
 
1858
undefine([AC_ISC_POSIX])
 
1859
 
 
1860
AC_DEFUN([AC_ISC_POSIX],
 
1861
  [
 
1862
    dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
 
1863
    AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
 
1864
  ]
 
1865
)
 
1866
 
 
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.
 
1872
dnl
 
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
 
1876
dnl functionality.
 
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.
 
1881
 
 
1882
dnl Authors:
 
1883
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
 
1884
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
 
1885
 
 
1886
AC_PREREQ(2.50)
 
1887
 
 
1888
AC_DEFUN([AM_NLS],
 
1889
[
 
1890
  AC_MSG_CHECKING([whether NLS is requested])
 
1891
  dnl Default is enabled NLS
 
1892
  AC_ARG_ENABLE(nls,
 
1893
    [  --disable-nls           do not use Native Language Support],
 
1894
    USE_NLS=$enableval, USE_NLS=yes)
 
1895
  AC_MSG_RESULT($USE_NLS)
 
1896
  AC_SUBST(USE_NLS)
 
1897
])
 
1898
 
 
1899
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
 
1900
 
1901
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
 
1902
#
 
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.
 
1907
#
 
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.
 
1912
#
 
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.
 
1916
#
 
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.
 
1921
 
 
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])
 
1930
fi
 
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])
 
1936
        else
 
1937
                AC_MSG_RESULT([no])
 
1938
                PKG_CONFIG=""
 
1939
        fi
 
1940
                
 
1941
fi[]dnl
 
1942
])# PKG_PROG_PKG_CONFIG
 
1943
 
 
1944
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
1945
#
 
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.
 
1948
#
 
1949
#
 
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
 
1960
  $3])dnl
 
1961
fi])
 
1962
 
 
1963
 
 
1964
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
 
1965
# ---------------------------------------------
 
1966
m4_define([_PKG_CONFIG],
 
1967
[if test -n "$$1"; then
 
1968
    pkg_cv_[]$1="$$1"
 
1969
 elif test -n "$PKG_CONFIG"; then
 
1970
    PKG_CHECK_EXISTS([$3],
 
1971
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
1972
                     [pkg_failed=yes])
 
1973
 else
 
1974
    pkg_failed=untried
 
1975
fi[]dnl
 
1976
])# _PKG_CONFIG
 
1977
 
 
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
 
1984
else
 
1985
        _pkg_short_errors_supported=no
 
1986
fi[]dnl
 
1987
])# _PKG_SHORT_ERRORS_SUPPORTED
 
1988
 
 
1989
 
 
1990
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
 
1991
# [ACTION-IF-NOT-FOUND])
 
1992
#
 
1993
#
 
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
 
1997
#
 
1998
#
 
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
 
2004
 
 
2005
pkg_failed=no
 
2006
AC_MSG_CHECKING([for $1])
 
2007
 
 
2008
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
 
2009
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
 
2010
 
 
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.])
 
2014
 
 
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`
 
2019
        else 
 
2020
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
 
2021
        fi
 
2022
        # Put the nasty error message in config.log where it belongs
 
2023
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
 
2024
 
 
2025
        ifelse([$4], , [AC_MSG_ERROR(dnl
 
2026
[Package requirements ($2) were not met:
 
2027
 
 
2028
$$1_PKG_ERRORS
 
2029
 
 
2030
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
2031
installed software in a non-standard prefix.
 
2032
 
 
2033
_PKG_TEXT
 
2034
])],
 
2035
                [AC_MSG_RESULT([no])
 
2036
                $4])
 
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
 
2041
path to pkg-config.
 
2042
 
 
2043
_PKG_TEXT
 
2044
 
 
2045
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
 
2046
                [$4])
 
2047
else
 
2048
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
 
2049
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
 
2050
        AC_MSG_RESULT([yes])
 
2051
        ifelse([$3], , :, [$3])
 
2052
fi[]dnl
 
2053
])# PKG_CHECK_MODULES
 
2054
 
2035
2055
m4_include([m4/gnome-doc-utils.m4])
2036
2056
m4_include([m4/gtk-doc.m4])
2037
2057
m4_include([m4/intltool.m4])