5936
5936
AC_MSG_RESULT([$SED])
5940
dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
5941
dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
5942
dnl also defines GSTUFF_PKG_ERRORS on error
5943
AC_DEFUN(PKG_CHECK_MODULES, [
5946
if test -z "$PKG_CONFIG"; then
5947
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
5950
if test "$PKG_CONFIG" = "no" ; then
5951
echo "*** The pkg-config script could not be found. Make sure it is"
5952
echo "*** in your path, or set the PKG_CONFIG environment variable"
5953
echo "*** to the full path to pkg-config."
5954
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
5956
PKG_CONFIG_MIN_VERSION=0.9.0
5957
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5958
AC_MSG_CHECKING(for $2)
5960
if $PKG_CONFIG --exists "$2" ; then
5964
AC_MSG_CHECKING($1_CFLAGS)
5965
$1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
5966
AC_MSG_RESULT($$1_CFLAGS)
5968
AC_MSG_CHECKING($1_LIBS)
5969
$1_LIBS=`$PKG_CONFIG --libs "$2"`
5970
AC_MSG_RESULT($$1_LIBS)
5974
## If we have a custom action on failure, don't print errors, but
5975
## do set a variable so people can do so.
5976
$1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
5977
ifelse([$4], ,echo $$1_PKG_ERRORS,)
5983
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5984
echo "*** See http://www.freedesktop.org/software/pkgconfig"
5988
if test $succeeded = yes; then
5989
ifelse([$3], , :, [$3])
5991
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])
5997
5939
# -*- Autoconf -*-
5998
5940
# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
5999
5941
# Generated from amversion.in; do not edit by hand.
6336
grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
6337
# Extract the definition of DEP_FILES from the Makefile without
6284
# Extract the definition of DEPDIR, am__include, and am__quote
6285
# from the Makefile without running `make'.
6339
6286
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6340
6287
test -z "$DEPDIR" && continue
6288
am__include=`sed -n 's/^am__include = //p' < "$mf"`
6289
test -z "am__include" && continue
6290
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6341
6291
# When using ansi2knr, U may be empty or an underscore; expand it
6342
6292
U=`sed -n 's/^U = //p' < "$mf"`
6343
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
6344
# We invoke sed twice because it is the simplest approach to
6345
# changing $(DEPDIR) to its actual value in the expansion.
6346
for file in `sed -n '
6347
/^DEP_FILES = .*\\\\$/ {
6356
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
6293
# Find all dependency output files, they are included files with
6294
# $(DEPDIR) in their names. We invoke sed twice because it is the
6295
# simplest approach to changing $(DEPDIR) to its actual value in the
6297
for file in `sed -n "
6298
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6357
6299
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6358
6300
# Make sure the directory exists.
6359
6301
test -f "$dirpart/$file" && continue
6777
6720
AC_DEFUN([AM_PROG_MKDIR_P],
6778
6721
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6779
# Keeping the `.' argument allows $(mkdir_p) to be used without
6780
# argument. Indeed, we sometimes output rules like
6722
# We used to keeping the `.' as first argument, in order to
6723
# allow $(mkdir_p) to be used without argument. As in
6781
6724
# $(mkdir_p) $(somedir)
6782
# where $(somedir) is conditionally defined.
6783
# (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
6784
# expensive solution, as it forces Make to start a sub-shell.)
6785
mkdir_p='mkdir -p -- .'
6725
# where $(somedir) is conditionally defined. However this is wrong
6727
# 1. if the package is installed by a user who cannot write `.'
6728
# make install will fail,
6729
# 2. the above comment should most certainly read
6730
# $(mkdir_p) $(DESTDIR)$(somedir)
6731
# so it does not work when $(somedir) is undefined and
6732
# $(DESTDIR) is not.
6733
# To support the latter case, we have to write
6734
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6735
# so the `.' trick is pointless.
6736
mkdir_p='mkdir -p --'
6787
6738
# On NextStep and OpenStep, the `mkdir' command does not
6788
6739
# recognize any option. It will interpret all options as
6845
6796
AC_DEFUN([_AM_IF_OPTION],
6846
6797
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
6799
# Copyright (C) 2001, 2003 Free Software Foundation, Inc. -*- Autoconf -*-
6801
# This program is free software; you can redistribute it and/or modify
6802
# it under the terms of the GNU General Public License as published by
6803
# the Free Software Foundation; either version 2, or (at your option)
6804
# any later version.
6806
# This program is distributed in the hope that it will be useful,
6807
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6808
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6809
# GNU General Public License for more details.
6811
# You should have received a copy of the GNU General Public License
6812
# along with this program; if not, write to the Free Software
6813
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6816
# AM_RUN_LOG(COMMAND)
6817
# -------------------
6818
# Run COMMAND, save the exit status in ac_status, and log it.
6819
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
6820
AC_DEFUN([AM_RUN_LOG],
6821
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
6822
($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
6824
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
6825
(exit $ac_status); }])
6849
6828
# Check to make sure that the build environment is sane.
6948
6927
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6949
6928
AC_SUBST([INSTALL_STRIP_PROGRAM])])
6930
# Check how to create a tarball. -*- Autoconf -*-
6932
# Copyright (C) 2004 Free Software Foundation, Inc.
6934
# This program is free software; you can redistribute it and/or modify
6935
# it under the terms of the GNU General Public License as published by
6936
# the Free Software Foundation; either version 2, or (at your option)
6937
# any later version.
6939
# This program is distributed in the hope that it will be useful,
6940
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6941
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6942
# GNU General Public License for more details.
6944
# You should have received a copy of the GNU General Public License
6945
# along with this program; if not, write to the Free Software
6946
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6952
# _AM_PROG_TAR(FORMAT)
6953
# --------------------
6954
# Check how to create a tarball in format FORMAT.
6955
# FORMAT should be one of `v7', `ustar', or `pax'.
6957
# Substitute a variable $(am__tar) that is a command
6958
# writing to stdout a FORMAT-tarball containing the directory
6960
# tardir=directory && $(am__tar) > result.tar
6962
# Substitute a variable $(am__untar) that extract such
6963
# a tarball read from stdin.
6964
# $(am__untar) < result.tar
6965
AC_DEFUN([_AM_PROG_TAR],
6966
[# Always define AMTAR for backward compatibility.
6967
AM_MISSING_PROG([AMTAR], [tar])
6969
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
6970
[m4_case([$1], [ustar],, [pax],,
6971
[m4_fatal([Unknown tar format])])
6972
AC_MSG_CHECKING([how to create a $1 tar archive])
6973
# Loop over all known methods to create a tar archive until one works.
6974
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
6975
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
6976
# Do not fold the above two line into one, because Tru64 sh and
6977
# Solaris sh will not grok spaces in the rhs of `-'.
6978
for _am_tool in $_am_tools
6982
for _am_tar in tar gnutar gtar;
6984
AM_RUN_LOG([$_am_tar --version]) && break
6986
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
6987
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
6988
am__untar="$_am_tar -xf -"
6991
# Must skip GNU tar: if it does not support --format= it doesn't create
6992
# ustar tarball either.
6993
(tar --version) >/dev/null 2>&1 && continue
6994
am__tar='tar chf - "$$tardir"'
6995
am__tar_='tar chf - "$tardir"'
6996
am__untar='tar xf -'
6999
am__tar='pax -L -x $1 -w "$$tardir"'
7000
am__tar_='pax -L -x $1 -w "$tardir"'
7004
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
7005
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
7006
am__untar='cpio -i -H $1 -d'
7015
# If the value was cached, stop now. We just wanted to have am__tar
7016
# and am__untar set.
7017
test -n "${am_cv_prog_tar_$1}" && break
7019
# tar/untar a dummy directory, and stop if the command works
7022
echo GrepMe > conftest.dir/file
7023
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
7025
if test -s conftest.tar; then
7026
AM_RUN_LOG([$am__untar <conftest.tar])
7027
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
7032
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
7033
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
7035
AC_SUBST([am__untar])
7039
dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
7040
dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
7041
dnl also defines GSTUFF_PKG_ERRORS on error
7042
AC_DEFUN([PKG_CHECK_MODULES], [
7045
if test -z "$PKG_CONFIG"; then
7046
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
7049
if test "$PKG_CONFIG" = "no" ; then
7050
echo "*** The pkg-config script could not be found. Make sure it is"
7051
echo "*** in your path, or set the PKG_CONFIG environment variable"
7052
echo "*** to the full path to pkg-config."
7053
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
7055
PKG_CONFIG_MIN_VERSION=0.9.0
7056
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7057
AC_MSG_CHECKING(for $2)
7059
if $PKG_CONFIG --exists "$2" ; then
7063
AC_MSG_CHECKING($1_CFLAGS)
7064
$1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
7065
AC_MSG_RESULT($$1_CFLAGS)
7067
AC_MSG_CHECKING($1_LIBS)
7068
$1_LIBS=`$PKG_CONFIG --libs "$2"`
7069
AC_MSG_RESULT($$1_LIBS)
7073
## If we have a custom action on failure, don't print errors, but
7074
## do set a variable so people can do so.
7075
$1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
7076
ifelse([$4], ,echo $$1_PKG_ERRORS,)
7082
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7083
echo "*** See http://www.freedesktop.org/software/pkgconfig"
7087
if test $succeeded = yes; then
7088
ifelse([$3], , :, [$3])
7090
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])