1
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
1
# generated automatically by aclocal 1.10 -*- Autoconf -*-
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
# 2005 Free Software Foundation, Inc.
4
# 2005, 2006 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])])
14
19
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
15
20
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
218
224
glib_save_LIBS="$LIBS"
219
225
LIBS="$LIBS $INTLLIBS"
220
226
AC_CHECK_FUNCS(dcgettext)
228
AC_MSG_CHECKING([if msgfmt accepts -c])
229
GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
232
"Content-Type: text/plain; charset=UTF-8\n"
233
"Project-Id-Version: test 1.0\n"
234
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
235
"Last-Translator: test <foo@bar.xx>\n"
236
"Language-Team: C <LL@li.org>\n"
237
"MIME-Version: 1.0\n"
238
"Content-Transfer-Encoding: 8bit\n"
239
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
240
AC_SUBST(MSGFMT_OPTS)
221
241
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
222
242
GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
223
243
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
389
409
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
390
410
glib_save_prefix="$prefix"
391
411
glib_save_exec_prefix="$exec_prefix"
412
glib_save_datarootdir="$datarootdir"
392
413
test "x$prefix" = xNONE && prefix=$ac_default_prefix
393
414
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
415
datarootdir=`eval echo "${datarootdir}"`
394
416
if test "x$CATOBJEXT" = "x.mo" ; then
395
417
localedir=`eval echo "${libdir}/locale"`
410
433
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
436
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
438
# Create a temporary file with TEST-FILE as its contents and pass the
439
# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
440
# 0 and perform ACTION-IF-FAIL for any other exit status.
441
AC_DEFUN([GLIB_RUN_PROG],
442
[cat >conftest.foo <<_ACEOF
445
if AC_RUN_LOG([$1 conftest.foo]); then
446
m4_ifval([$3], [$3], [:])
447
m4_ifvaln([$4], [else $4])dnl
448
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
449
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
453
dnl Do not call GNOME_DOC_DEFINES directly. It is split out from
454
dnl GNOME_DOC_INIT to allow gnome-doc-utils to bootstrap off itself.
455
AC_DEFUN([GNOME_DOC_DEFINES],
457
AC_ARG_WITH([help-dir],
458
AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),,
459
[with_help_dir='${datadir}/gnome/help'])
460
HELP_DIR="$with_help_dir"
463
AC_ARG_WITH([omf-dir],
464
AC_HELP_STRING([--with-omf-dir=DIR], [path to OMF files]),,
465
[with_omf_dir='${datadir}/omf'])
466
OMF_DIR="$with_omf_dir"
469
AC_ARG_WITH([help-formats],
470
AC_HELP_STRING([--with-help-formats=FORMATS], [list of formats]),,
471
[with_help_formats=''])
472
DOC_USER_FORMATS="$with_help_formats"
473
AC_SUBST(DOC_USER_FORMATS)
475
AC_ARG_ENABLE([scrollkeeper],
476
[AC_HELP_STRING([--disable-scrollkeeper],
477
[do not make updates to the scrollkeeper database])],,
478
enable_scrollkeeper=yes)
479
AM_CONDITIONAL([ENABLE_SK],[test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"])
481
AM_CONDITIONAL([HAVE_GNOME_DOC_UTILS],[test "$gdu_cv_have_gdu" = "yes"])
484
# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
486
AC_DEFUN([GNOME_DOC_INIT],
488
ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1])
490
PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required],
491
[gdu_cv_have_gdu=yes],[gdu_cv_have_gdu=no])
493
if test "$gdu_cv_have_gdu" = "yes"; then
494
ifelse([$2],,[:],[$2])
496
ifelse([$3],,[AC_MSG_ERROR([gnome-doc-utils >= $gdu_cv_version_required not found])],[$3])
414
503
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
415
# serial 35 IT_PROG_INTLTOOL
504
# serial 36 IT_PROG_INTLTOOL
416
505
AC_DEFUN([IT_PROG_INTLTOOL],
417
506
[AC_PREREQ([2.50])dnl
454
543
INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
455
544
INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
456
545
INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
546
INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
458
548
AC_SUBST(INTLTOOL_DESKTOP_RULE)
459
549
AC_SUBST(INTLTOOL_DIRECTORY_RULE)
498
AC_PATH_PROG(INTLTOOL_ICONV, iconv, iconv)
499
AC_PATH_PROG(INTLTOOL_MSGFMT, msgfmt, msgfmt)
500
AC_PATH_PROG(INTLTOOL_MSGMERGE, msgmerge, msgmerge)
501
AC_PATH_PROG(INTLTOOL_XGETTEXT, xgettext, xgettext)
503
589
# Substitute ALL_LINGUAS so we can use it in po/Makefile
504
590
AC_SUBST(ALL_LINGUAS)
592
# Set DATADIRNAME correctly if it is not set yet
593
# (copied from glib-gettext.m4)
594
if test -z "$DATADIRNAME"; then
596
[AC_LANG_PROGRAM([[]],
597
[[extern int _nl_msg_cat_cntr;
598
return _nl_msg_cat_cntr]])],
602
dnl On Solaris, if bind_textdomain_codeset is in libc,
603
dnl GNU format message catalog is always supported,
604
dnl since both are added to the libc all together.
605
dnl Hence, we'd like to go with DATADIRNAME=share
607
AC_CHECK_FUNC(bind_textdomain_codeset,
608
[DATADIRNAME=share], [DATADIRNAME=lib])
615
AC_SUBST(DATADIRNAME)
506
617
IT_PO_SUBDIR([po])
508
619
dnl The following is very similar to
525
636
for file in intltool-extract intltool-merge intltool-update; do
526
637
sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
527
638
-e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
528
-e "s|@INTLTOOL_ICONV@|${INTLTOOL_ICONV}|g" \
529
-e "s|@INTLTOOL_MSGFMT@|${INTLTOOL_MSGFMT}|g" \
530
-e "s|@INTLTOOL_MSGMERGE@|${INTLTOOL_MSGMERGE}|g" \
531
-e "s|@INTLTOOL_XGETTEXT@|${INTLTOOL_XGETTEXT}|g" \
532
639
-e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
533
640
< ${ac_aux_dir}/${file}.in > ${file}.out
534
641
if cmp -s ${file} ${file}.out 2>/dev/null; then
868
974
# ----------------------------
869
975
# Automake X.Y traces this macro to ensure aclocal.m4 has been
870
976
# generated from the m4 files accompanying Automake X.Y.
871
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
977
# (This private macro should not be called outside this file.)
978
AC_DEFUN([AM_AUTOMAKE_VERSION],
979
[am__api_version='1.10'
980
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
981
dnl require some minimum version. Point them to the right macro.
982
m4_if([$1], [1.10], [],
983
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
986
# _AM_AUTOCONF_VERSION(VERSION)
987
# -----------------------------
988
# aclocal traces this macro to find the Autoconf version.
989
# This is a private macro too. Using m4_define simplifies
990
# the logic in aclocal, which can simply ignore this definition.
991
m4_define([_AM_AUTOCONF_VERSION], [])
873
993
# AM_SET_CURRENT_AUTOMAKE_VERSION
874
994
# -------------------------------
875
# Call AM_AUTOMAKE_VERSION so it can be traced.
995
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
876
996
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
877
997
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
878
[AM_AUTOMAKE_VERSION([1.9.6])])
998
[AM_AUTOMAKE_VERSION([1.10])dnl
999
_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
880
1001
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
933
1054
# AM_CONDITIONAL -*- Autoconf -*-
935
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
1056
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
936
1057
# Free Software Foundation, Inc.
938
1059
# This file is free software; the Free Software Foundation
939
1060
# gives unlimited permission to copy and/or distribute it,
940
1061
# with or without modifications, as long as this notice is preserved.
944
1065
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
945
1066
# -------------------------------------
963
1086
Usually this means the macro was only invoked conditionally.]])
967
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
1089
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
968
1090
# Free Software Foundation, Inc.
970
1092
# This file is free software; the Free Software Foundation
971
1093
# gives unlimited permission to copy and/or distribute it,
972
1094
# with or without modifications, as long as this notice is preserved.
976
1098
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
977
1099
# written in clear, in which case automake, when reading aclocal.m4,
999
1121
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
1000
1122
[$1], CXX, [depcc="$CXX" am_compiler_list=],
1001
1123
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
1124
[$1], UPC, [depcc="$UPC" am_compiler_list=],
1002
1125
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
1003
1126
[depcc="$$1" am_compiler_list=])
1141
1266
# some people rename them; so instead we look at the file content.
1142
1267
# Grep'ing the first line is not enough: some people post-process
1143
1268
# each Makefile.in and add a new line on top of each file to say so.
1144
# So let's grep whole file.
1145
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
1269
# Grep'ing the whole file is not good either: AIX grep has a line
1270
# limit of 2048, but all sed's we know have understand at least 4000.
1271
if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
1146
1272
dirpart=`AS_DIRNAME("$mf")`
1202
1328
# Do all the work for Automake. -*- Autoconf -*-
1204
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
1205
# Free Software Foundation, Inc.
1330
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
1331
# 2005, 2006 Free Software Foundation, Inc.
1207
1333
# This file is free software; the Free Software Foundation
1208
1334
# gives unlimited permission to copy and/or distribute it,
1225
1351
# arguments mandatory, and then we can depend on a new Autoconf
1226
1352
# release and drop the old call support.
1227
1353
AC_DEFUN([AM_INIT_AUTOMAKE],
1228
[AC_PREREQ([2.58])dnl
1354
[AC_PREREQ([2.60])dnl
1229
1355
dnl Autoconf wants to disallow AM_ names. We explicitly allow
1230
1356
dnl the ones we care about.
1231
1357
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1232
1358
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
1233
1359
AC_REQUIRE([AC_PROG_INSTALL])dnl
1234
# test to see if srcdir already configured
1235
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1236
test -f $srcdir/config.status; then
1237
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
1360
if test "`cd $srcdir && pwd`" != "`pwd`"; then
1361
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
1362
# is not polluted with repeated "-I."
1363
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
1364
# test to see if srcdir already configured
1365
if test -f $srcdir/config.status; then
1366
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
1240
1370
# test whether we have cygpath
1254
1384
AC_SUBST([PACKAGE], [$1])dnl
1255
1385
AC_SUBST([VERSION], [$2])],
1256
1386
[_AM_SET_OPTIONS([$1])dnl
1387
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
1388
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
1389
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
1257
1390
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1258
1391
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1403
1540
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1405
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
1542
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
1406
1543
# Free Software Foundation, Inc.
1408
1545
# This file is free software; the Free Software Foundation
1409
1546
# gives unlimited permission to copy and/or distribute it,
1410
1547
# with or without modifications, as long as this notice is preserved.
1414
1551
# AM_MISSING_PROG(NAME, PROGRAM)
1415
1552
# ------------------------------
1425
1562
# If it does, set am_missing_run to use it, otherwise, to nothing.
1426
1563
AC_DEFUN([AM_MISSING_HAS_RUN],
1427
1564
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1565
AC_REQUIRE_AUX_FILE([missing])dnl
1428
1566
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1429
1567
# Use eval to expand $SHELL
1430
1568
if eval "$MISSING --run true"; then
1444
1582
# AM_PROG_MKDIR_P
1445
1583
# ---------------
1446
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
1448
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
1449
# created by `make install' are always world readable, even if the
1450
# installer happens to have an overly restrictive umask (e.g. 077).
1451
# This was a mistake. There are at least two reasons why we must not
1453
# - it causes special bits like SGID to be ignored,
1454
# - it may be too restrictive (some setups expect 775 directories).
1456
# Do not use -m 0755 and let people choose whatever they expect by
1459
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
1460
# Some implementations (such as Solaris 8's) are not thread-safe: if a
1461
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
1462
# concurrently, both version can detect that a/ is missing, but only
1463
# one can create it and the other will error out. Consequently we
1464
# restrict ourselves to GNU make (using the --version option ensures
1584
# Check for `mkdir -p'.
1466
1585
AC_DEFUN([AM_PROG_MKDIR_P],
1467
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1468
# We used to keeping the `.' as first argument, in order to
1469
# allow $(mkdir_p) to be used without argument. As in
1470
# $(mkdir_p) $(somedir)
1471
# where $(somedir) is conditionally defined. However this is wrong
1473
# 1. if the package is installed by a user who cannot write `.'
1474
# make install will fail,
1475
# 2. the above comment should most certainly read
1476
# $(mkdir_p) $(DESTDIR)$(somedir)
1477
# so it does not work when $(somedir) is undefined and
1478
# $(DESTDIR) is not.
1479
# To support the latter case, we have to write
1480
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1481
# so the `.' trick is pointless.
1482
mkdir_p='mkdir -p --'
1484
# On NextStep and OpenStep, the `mkdir' command does not
1485
# recognize any option. It will interpret all options as
1486
# directories to create, and then abort because `.' already
1488
for d in ./-p ./--version;
1490
test -d $d && rmdir $d
1492
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1493
if test -f "$ac_aux_dir/mkinstalldirs"; then
1494
mkdir_p='$(mkinstalldirs)'
1496
mkdir_p='$(install_sh) -d'
1499
AC_SUBST([mkdir_p])])
1586
[AC_PREREQ([2.60])dnl
1587
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1588
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
1589
dnl while keeping a definition of mkdir_p for backward compatibility.
1590
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
1591
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
1592
dnl Makefile.ins that do not define MKDIR_P, so we do our own
1593
dnl adjustment using top_builddir (which is defined more often than
1595
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
1597
[[\\/$]]* | ?:[[\\/]]*) ;;
1598
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1501
1602
# Helper functions for option handling. -*- Autoconf -*-
1608
1709
if test "$cross_compiling" != no; then
1609
1710
AC_CHECK_TOOL([STRIP], [strip], :)
1611
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1712
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1612
1713
AC_SUBST([INSTALL_STRIP_PROGRAM])])
1715
# Copyright (C) 2006 Free Software Foundation, Inc.
1717
# This file is free software; the Free Software Foundation
1718
# gives unlimited permission to copy and/or distribute it,
1719
# with or without modifications, as long as this notice is preserved.
1721
# _AM_SUBST_NOTMAKE(VARIABLE)
1722
# ---------------------------
1723
# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
1724
# This macro is traced by Automake.
1725
AC_DEFUN([_AM_SUBST_NOTMAKE])
1614
1727
# Check how to create a tarball. -*- Autoconf -*-
1616
1729
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.