1
# generated automatically by aclocal 1.10 -*- Autoconf -*-
1
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
# 2005, 2006 Free Software Foundation, Inc.
4
# 2005 Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
14
m4_if(m4_PACKAGE_VERSION, [2.61],,
15
[m4_fatal([this file was generated for autoconf 2.61.
16
You have another version of autoconf. If you want to use that,
17
you should regenerate the build system entirely.], [63])])
15
dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
16
dnl (i.e. pass to gconftool-2
17
dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where
18
dnl you should install foo.schemas files
21
AC_DEFUN([AM_GCONF_SOURCE_2],
23
if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
24
GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
26
GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
29
AC_ARG_WITH(gconf-source,
30
[ --with-gconf-source=sourceaddress Config database for installing schema files.],GCONF_SCHEMA_CONFIG_SOURCE="$withval",)
32
AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
33
AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
35
if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
36
GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
39
AC_ARG_WITH(gconf-schema-file-dir,
40
[ --with-gconf-schema-file-dir=dir Directory for installing schema files.],GCONF_SCHEMA_FILE_DIR="$withval",)
42
AC_SUBST(GCONF_SCHEMA_FILE_DIR)
43
AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
45
AC_ARG_ENABLE(schemas-install,
46
[ --disable-schemas-install Disable the schemas installation],
49
*) AC_MSG_ERROR(bad value ${enableval} for --enable-schemas-install) ;;
51
AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
54
dnl -*- mode: autoconf -*-
59
dnl GTK_DOC_CHECK([minimum-gtk-doc-version])
60
AC_DEFUN([GTK_DOC_CHECK],
62
AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
63
AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
64
dnl for overriding the documentation installation directory
66
AC_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
67
[with_html_dir='${datadir}/gtk-doc/html'])
68
HTML_DIR="$with_html_dir"
71
dnl enable/disable documentation building
72
AC_ARG_ENABLE(gtk-doc,
73
AC_HELP_STRING([--enable-gtk-doc],
74
[use gtk-doc to build documentation [default=no]]),,
78
if test x$enable_gtk_doc = xyes; then
79
if test -z "$PKG_CONFIG"; then
80
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
82
if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
86
dnl do we want to do a version check?
88
[gtk_doc_min_version=$1
89
if test "$have_gtk_doc" = yes; then
90
AC_MSG_CHECKING([gtk-doc version >= $gtk_doc_min_version])
91
if $PKG_CONFIG --atleast-version $gtk_doc_min_version gtk-doc; then
99
if test "$have_gtk_doc" != yes; then
104
AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)
105
AM_CONDITIONAL(GTK_DOC_USE_LIBTOOL, test -n "$LIBTOOL")
19
108
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
21
# serial 48 AC_PROG_LIBTOOL
110
# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
24
113
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
1583
1660
# before this can be enabled.
1584
1661
hardcode_into_libs=yes
1586
# find out which ABI we are using
1589
x86_64*|s390x*|powerpc64*)
1590
echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1591
if AC_TRY_EVAL(ac_compile); then
1592
case `/usr/bin/file conftest.$ac_objext` in
1595
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
1603
1663
# Append ld.so.conf contents to the search path
1604
1664
if test -f /etc/ld.so.conf; then
1605
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1606
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
1665
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1666
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1609
1669
# We used to test for /lib/ld.so.1 and disable shared libraries on
6583
6641
# ----------------------------
6584
6642
# Automake X.Y traces this macro to ensure aclocal.m4 has been
6585
6643
# generated from the m4 files accompanying Automake X.Y.
6586
# (This private macro should not be called outside this file.)
6587
AC_DEFUN([AM_AUTOMAKE_VERSION],
6588
[am__api_version='1.10'
6589
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
6590
dnl require some minimum version. Point them to the right macro.
6591
m4_if([$1], [1.10], [],
6592
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
6595
# _AM_AUTOCONF_VERSION(VERSION)
6596
# -----------------------------
6597
# aclocal traces this macro to find the Autoconf version.
6598
# This is a private macro too. Using m4_define simplifies
6599
# the logic in aclocal, which can simply ignore this definition.
6600
m4_define([_AM_AUTOCONF_VERSION], [])
6644
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
6602
6646
# AM_SET_CURRENT_AUTOMAKE_VERSION
6603
6647
# -------------------------------
6604
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
6648
# Call AM_AUTOMAKE_VERSION so it can be traced.
6605
6649
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6606
6650
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6607
[AM_AUTOMAKE_VERSION([1.10])dnl
6608
_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
6651
[AM_AUTOMAKE_VERSION([1.9.6])])
6610
6653
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
6663
6706
# AM_CONDITIONAL -*- Autoconf -*-
6665
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
6708
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
6666
6709
# Free Software Foundation, Inc.
6668
6711
# This file is free software; the Free Software Foundation
6669
6712
# gives unlimited permission to copy and/or distribute it,
6670
6713
# with or without modifications, as long as this notice is preserved.
6674
6717
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
6675
6718
# -------------------------------------
6695
6736
Usually this means the macro was only invoked conditionally.]])
6698
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
6740
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6699
6741
# Free Software Foundation, Inc.
6701
6743
# This file is free software; the Free Software Foundation
6702
6744
# gives unlimited permission to copy and/or distribute it,
6703
6745
# with or without modifications, as long as this notice is preserved.
6707
6749
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6708
6750
# written in clear, in which case automake, when reading aclocal.m4,
6730
6772
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
6731
6773
[$1], CXX, [depcc="$CXX" am_compiler_list=],
6732
6774
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
6733
[$1], UPC, [depcc="$UPC" am_compiler_list=],
6734
6775
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
6735
6776
[depcc="$$1" am_compiler_list=])
6922
6960
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
6925
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
6926
# Free Software Foundation, Inc.
6928
# This file is free software; the Free Software Foundation
6929
# gives unlimited permission to copy and/or distribute it,
6930
# with or without modifications, as long as this notice is preserved.
6934
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
6935
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
6937
6963
# Do all the work for Automake. -*- Autoconf -*-
6939
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
6940
# 2005, 2006 Free Software Foundation, Inc.
6965
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
6966
# Free Software Foundation, Inc.
6942
6968
# This file is free software; the Free Software Foundation
6943
6969
# gives unlimited permission to copy and/or distribute it,
6960
6986
# arguments mandatory, and then we can depend on a new Autoconf
6961
6987
# release and drop the old call support.
6962
6988
AC_DEFUN([AM_INIT_AUTOMAKE],
6963
[AC_PREREQ([2.60])dnl
6989
[AC_PREREQ([2.58])dnl
6964
6990
dnl Autoconf wants to disallow AM_ names. We explicitly allow
6965
6991
dnl the ones we care about.
6966
6992
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
6967
6993
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
6968
6994
AC_REQUIRE([AC_PROG_INSTALL])dnl
6969
if test "`cd $srcdir && pwd`" != "`pwd`"; then
6970
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
6971
# is not polluted with repeated "-I."
6972
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
6973
# test to see if srcdir already configured
6974
if test -f $srcdir/config.status; then
6975
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
6995
# test to see if srcdir already configured
6996
if test "`cd $srcdir && pwd`" != "`pwd`" &&
6997
test -f $srcdir/config.status; then
6998
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
6979
7001
# test whether we have cygpath
6993
7015
AC_SUBST([PACKAGE], [$1])dnl
6994
7016
AC_SUBST([VERSION], [$2])],
6995
7017
[_AM_SET_OPTIONS([$1])dnl
6996
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
6997
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
6998
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
6999
7018
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
7000
7019
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
7178
7193
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
7180
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
7195
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
7181
7196
# Free Software Foundation, Inc.
7183
7198
# This file is free software; the Free Software Foundation
7184
7199
# gives unlimited permission to copy and/or distribute it,
7185
7200
# with or without modifications, as long as this notice is preserved.
7189
7204
# AM_MISSING_PROG(NAME, PROGRAM)
7190
7205
# ------------------------------
7220
7234
# AM_PROG_MKDIR_P
7221
7235
# ---------------
7222
# Check for `mkdir -p'.
7236
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
7238
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
7239
# created by `make install' are always world readable, even if the
7240
# installer happens to have an overly restrictive umask (e.g. 077).
7241
# This was a mistake. There are at least two reasons why we must not
7243
# - it causes special bits like SGID to be ignored,
7244
# - it may be too restrictive (some setups expect 775 directories).
7246
# Do not use -m 0755 and let people choose whatever they expect by
7249
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
7250
# Some implementations (such as Solaris 8's) are not thread-safe: if a
7251
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
7252
# concurrently, both version can detect that a/ is missing, but only
7253
# one can create it and the other will error out. Consequently we
7254
# restrict ourselves to GNU make (using the --version option ensures
7223
7256
AC_DEFUN([AM_PROG_MKDIR_P],
7224
[AC_PREREQ([2.60])dnl
7225
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
7226
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
7227
dnl while keeping a definition of mkdir_p for backward compatibility.
7228
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
7229
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
7230
dnl Makefile.ins that do not define MKDIR_P, so we do our own
7231
dnl adjustment using top_builddir (which is defined more often than
7233
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
7235
[[\\/$]]* | ?:[[\\/]]*) ;;
7236
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7257
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7258
# We used to keeping the `.' as first argument, in order to
7259
# allow $(mkdir_p) to be used without argument. As in
7260
# $(mkdir_p) $(somedir)
7261
# where $(somedir) is conditionally defined. However this is wrong
7263
# 1. if the package is installed by a user who cannot write `.'
7264
# make install will fail,
7265
# 2. the above comment should most certainly read
7266
# $(mkdir_p) $(DESTDIR)$(somedir)
7267
# so it does not work when $(somedir) is undefined and
7268
# $(DESTDIR) is not.
7269
# To support the latter case, we have to write
7270
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
7271
# so the `.' trick is pointless.
7272
mkdir_p='mkdir -p --'
7274
# On NextStep and OpenStep, the `mkdir' command does not
7275
# recognize any option. It will interpret all options as
7276
# directories to create, and then abort because `.' already
7278
for d in ./-p ./--version;
7280
test -d $d && rmdir $d
7282
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7283
if test -f "$ac_aux_dir/mkinstalldirs"; then
7284
mkdir_p='$(mkinstalldirs)'
7286
mkdir_p='$(install_sh) -d'
7289
AC_SUBST([mkdir_p])])
7240
7291
# Helper functions for option handling. -*- Autoconf -*-
7347
7398
if test "$cross_compiling" != no; then
7348
7399
AC_CHECK_TOOL([STRIP], [strip], :)
7350
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7401
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
7351
7402
AC_SUBST([INSTALL_STRIP_PROGRAM])])
7353
# Copyright (C) 2006 Free Software Foundation, Inc.
7355
# This file is free software; the Free Software Foundation
7356
# gives unlimited permission to copy and/or distribute it,
7357
# with or without modifications, as long as this notice is preserved.
7359
# _AM_SUBST_NOTMAKE(VARIABLE)
7360
# ---------------------------
7361
# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
7362
# This macro is traced by Automake.
7363
AC_DEFUN([_AM_SUBST_NOTMAKE])
7365
7404
# Check how to create a tarball. -*- Autoconf -*-
7367
7406
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
7458
7497
AC_SUBST([am__untar])
7459
7498
]) # _AM_PROG_TAR
7461
dnl AM_GCONF_SOURCE_2
7462
dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
7463
dnl (i.e. pass to gconftool-2
7464
dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where
7465
dnl you should install foo.schemas files
7468
AC_DEFUN([AM_GCONF_SOURCE_2],
7470
if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
7471
GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
7473
GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
7476
AC_ARG_WITH(gconf-source,
7477
[ --with-gconf-source=sourceaddress Config database for installing schema files.],GCONF_SCHEMA_CONFIG_SOURCE="$withval",)
7479
AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
7480
AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
7482
if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
7483
GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
7486
AC_ARG_WITH(gconf-schema-file-dir,
7487
[ --with-gconf-schema-file-dir=dir Directory for installing schema files.],GCONF_SCHEMA_FILE_DIR="$withval",)
7489
AC_SUBST(GCONF_SCHEMA_FILE_DIR)
7490
AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
7492
AC_ARG_ENABLE(schemas-install,
7493
[ --disable-schemas-install Disable the schemas installation],
7494
[case ${enableval} in
7496
*) AC_MSG_ERROR(bad value ${enableval} for --enable-schemas-install) ;;
7498
AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
7501
7500
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
7502
7501
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
8090
8090
AC_SUBST(WARN_CXXFLAGS)
8093
dnl -*- mode: autoconf -*-
8098
dnl GTK_DOC_CHECK([minimum-gtk-doc-version])
8099
AC_DEFUN([GTK_DOC_CHECK],
8101
AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
8102
AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
8103
dnl for overriding the documentation installation directory
8104
AC_ARG_WITH(html-dir,
8105
AC_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
8106
[with_html_dir='${datadir}/gtk-doc/html'])
8107
HTML_DIR="$with_html_dir"
8110
dnl enable/disable documentation building
8111
AC_ARG_ENABLE(gtk-doc,
8112
AC_HELP_STRING([--enable-gtk-doc],
8113
[use gtk-doc to build documentation [default=no]]),,
8117
if test x$enable_gtk_doc = xyes; then
8118
if test -z "$PKG_CONFIG"; then
8119
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
8121
if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
8125
dnl do we want to do a version check?
8127
[gtk_doc_min_version=$1
8128
if test "$have_gtk_doc" = yes; then
8129
AC_MSG_CHECKING([gtk-doc version >= $gtk_doc_min_version])
8130
if $PKG_CONFIG --atleast-version $gtk_doc_min_version gtk-doc; then
8138
if test "$have_gtk_doc" != yes; then
8143
AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)
8144
AM_CONDITIONAL(GTK_DOC_USE_LIBTOOL, test -n "$LIBTOOL")
8148
8094
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
8149
8095
# serial 35 IT_PROG_INTLTOOL
8237
8183
# Substitute ALL_LINGUAS so we can use it in po/Makefile
8238
8184
AC_SUBST(ALL_LINGUAS)
8240
# Set DATADIRNAME correctly if it is not set yet
8241
# (copied from glib-gettext.m4)
8242
if test -z "$DATADIRNAME"; then
8243
AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
8244
return _nl_msg_cat_cntr],
8245
[DATADIRNAME=share],
8248
dnl On Solaris, if bind_textdomain_codeset is in libc,
8249
dnl GNU format message catalog is always supported,
8250
dnl since both are added to the libc all together.
8251
dnl Hence, we'd like to go with DATADIRNAME=share
8253
AC_CHECK_FUNC(bind_textdomain_codeset,
8254
[DATADIRNAME=share], [DATADIRNAME=lib])
8261
AC_SUBST(DATADIRNAME)
8263
8186
IT_PO_SUBDIR([po])
8265
8188
dnl The following is very similar to