6824
6824
cp $gdumk gnome-doc-utils.make
6827
if ! grep -q 'gnome-doc-utils\.make' $ac_top_srcdir/Makefile.am; then
6827
if ! grep 'gnome-doc-utils\.make' $ac_top_srcdir/Makefile.am >/dev/null; then
6828
6828
echo gnome-doc-utils.make should be added to EXTRA_DIST in Makefile.am
6834
dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
6835
dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
6836
dnl also defines GSTUFF_PKG_ERRORS on error
6837
AC_DEFUN(PKG_CHECK_MODULES, [
6840
if test -z "$PKG_CONFIG"; then
6841
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
6844
if test "$PKG_CONFIG" = "no" ; then
6845
echo "*** The pkg-config script could not be found. Make sure it is"
6846
echo "*** in your path, or set the PKG_CONFIG environment variable"
6847
echo "*** to the full path to pkg-config."
6848
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
6850
PKG_CONFIG_MIN_VERSION=0.9.0
6851
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6852
AC_MSG_CHECKING(for $2)
6854
if $PKG_CONFIG --exists "$2" ; then
6858
AC_MSG_CHECKING($1_CFLAGS)
6859
$1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
6860
AC_MSG_RESULT($$1_CFLAGS)
6862
AC_MSG_CHECKING($1_LIBS)
6863
$1_LIBS=`$PKG_CONFIG --libs "$2"`
6864
AC_MSG_RESULT($$1_LIBS)
6868
## If we have a custom action on failure, don't print errors, but
6869
## do set a variable so people can do so.
6870
$1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
6871
ifelse([$4], ,echo $$1_PKG_ERRORS,)
6877
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6878
echo "*** See http://www.freedesktop.org/software/pkgconfig"
6882
if test $succeeded = yes; then
6883
ifelse([$3], , :, [$3])
6885
ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])
6833
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
6835
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
6837
# This program is free software; you can redistribute it and/or modify
6838
# it under the terms of the GNU General Public License as published by
6839
# the Free Software Foundation; either version 2 of the License, or
6840
# (at your option) any later version.
6842
# This program is distributed in the hope that it will be useful, but
6843
# WITHOUT ANY WARRANTY; without even the implied warranty of
6844
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6845
# General Public License for more details.
6847
# You should have received a copy of the GNU General Public License
6848
# along with this program; if not, write to the Free Software
6849
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6851
# As a special exception to the GNU General Public License, if you
6852
# distribute this file as part of a program that contains a
6853
# configuration script generated by Autoconf, you may include it under
6854
# the same distribution terms that you use for the rest of that program.
6856
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
6857
# ----------------------------------
6858
AC_DEFUN([PKG_PROG_PKG_CONFIG],
6859
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
6860
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
6861
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
6862
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6863
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
6865
if test -n "$PKG_CONFIG"; then
6866
_pkg_min_version=m4_ifval([$1], [$1], [0.9.0])
6867
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
6868
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6869
AC_MSG_RESULT([yes])
6876
])# PKG_PROG_PKG_CONFIG
6878
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
6880
# Check to see whether a particular set of modules exists. Similar
6881
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
6884
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
6885
# this or PKG_CHECK_MODULES is called, or make sure to call
6886
# PKG_CHECK_EXISTS manually
6887
# --------------------------------------------------------------
6888
AC_DEFUN([PKG_CHECK_EXISTS],
6889
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
6890
if test -n "$PKG_CONFIG" && \
6891
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
6892
m4_ifval([$2], [$2], [:])
6893
m4_ifvaln([$3], [else
6898
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
6899
# ---------------------------------------------
6900
m4_define([_PKG_CONFIG],
6901
[if test -n "$PKG_CONFIG"; then
6902
PKG_CHECK_EXISTS([$3],
6903
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
6910
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
6911
# [ACTION-IF-NOT-FOUND])
6914
# Note that if there is a possibility the first call to
6915
# PKG_CHECK_MODULES might not happen, you should be sure to include an
6916
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
6919
# --------------------------------------------------------------
6920
AC_DEFUN([PKG_CHECK_MODULES],
6921
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
6922
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
6923
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
6926
AC_MSG_CHECKING([for $1])
6928
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
6929
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
6931
if test $pkg_failed = yes; then
6932
$1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
6933
# Put the nasty error message in config.log where it belongs
6934
echo "$$1[]_PKG_ERRORS" 1>&AS_MESSAGE_LOG_FD
6936
ifelse([$4], , [AC_MSG_ERROR(dnl
6937
[Package requirements ($2) were not met.
6938
Consider adjusting the PKG_CONFIG_PATH environment variable if you
6939
installed software in a non-standard prefix.
6941
Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables
6942
to avoid the need to call pkg-config. See the pkg-config man page for
6945
elif test $pkg_failed = untried; then
6946
ifelse([$4], , [AC_MSG_FAILURE(dnl
6947
[The pkg-config script could not be found or is too old. Make sure it
6948
is in your PATH or set the PKG_CONFIG environment variable to the full
6951
Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables
6952
to avoid the need to call pkg-config. See the pkg-config man page for
6955
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
6958
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
6959
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
6960
AC_MSG_RESULT([yes])
6961
ifelse([$3], , :, [$3])
6963
])# PKG_CHECK_MODULES
6891
6965
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
6892
6966
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
7382
7456
ifdef([AC_DIVERSION_ICMDS],[
7383
7457
AC_DIVERT_PUSH(AC_DIVERSION_ICMDS)
7385
mv -f po/POTFILES po/POTFILES.tmp
7386
sed -e '/\[encoding.*\]/d' -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
7458
[mv -f po/POTFILES po/POTFILES.tmp
7459
sed -e '/[[]encoding.*]/d' -e 's/[[].*] *//' < po/POTFILES.tmp > po/POTFILES
7387
7460
rm -f po/POTFILES.tmp
7389
7462
AC_DIVERT_POP()
7391
7464
ifdef([AC_CONFIG_COMMANDS_PRE],[
7392
7465
AC_CONFIG_COMMANDS_PRE([
7394
mv -f po/POTFILES po/POTFILES.tmp
7395
sed -e '/\[encoding.*\]/d' -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
7466
[mv -f po/POTFILES po/POTFILES.tmp
7467
sed -e '/[[]encoding.*]/d' -e 's/[[].*] *//' < po/POTFILES.tmp > po/POTFILES
7396
7468
rm -f po/POTFILES.tmp
7401
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7402
# Keeping the `.' argument allows $(mkdir_p) to be used without
7403
# argument. Indeed, we sometimes output rules like
7404
# $(mkdir_p) $(somedir)
7405
# where $(somedir) is conditionally defined.
7406
# (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
7407
# expensive solution, as it forces Make to start a sub-shell.)
7408
mkdir_p='mkdir -p -- .'
7410
# On NextStep and OpenStep, the `mkdir' command does not
7411
# recognize any option. It will interpret all options as
7412
# directories to create, and then abort because `.' already
7414
for d in ./-p ./--version;
7416
test -d $d && rmdir $d
7418
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7419
if test -f "$ac_aux_dir/mkinstalldirs"; then
7420
mkdir_p='$(mkinstalldirs)'
7422
mkdir_p='$(install_sh) -d'
7428
7474
# Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.