~ubuntu-branches/ubuntu/feisty/libgnome/feisty

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-01-09 10:07:49 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20070109100749-uc3lve73086th31g
Tags: 2.17.2-0ubuntu1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.10 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
2
2
 
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.
13
13
 
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
dnl AM_GCONF_SOURCE_2
 
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
 
19
dnl
 
20
 
 
21
AC_DEFUN([AM_GCONF_SOURCE_2],
 
22
[
 
23
  if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
 
24
    GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
 
25
  else
 
26
    GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
 
27
  fi
 
28
 
 
29
  AC_ARG_WITH(gconf-source, 
 
30
  [  --with-gconf-source=sourceaddress      Config database for installing schema files.],GCONF_SCHEMA_CONFIG_SOURCE="$withval",)
 
31
 
 
32
  AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
 
33
  AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
 
34
 
 
35
  if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
 
36
    GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
 
37
  fi
 
38
 
 
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",)
 
41
 
 
42
  AC_SUBST(GCONF_SCHEMA_FILE_DIR)
 
43
  AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
 
44
 
 
45
  AC_ARG_ENABLE(schemas-install,
 
46
     [  --disable-schemas-install       Disable the schemas installation],
 
47
     [case ${enableval} in
 
48
       yes|no) ;;
 
49
       *) AC_MSG_ERROR(bad value ${enableval} for --enable-schemas-install) ;;
 
50
      esac])
 
51
  AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
 
52
])
 
53
 
 
54
dnl -*- mode: autoconf -*-
 
55
 
 
56
# serial 1
 
57
 
 
58
dnl Usage:
 
59
dnl   GTK_DOC_CHECK([minimum-gtk-doc-version])
 
60
AC_DEFUN([GTK_DOC_CHECK],
 
61
[
 
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
 
65
  AC_ARG_WITH(html-dir,
 
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"
 
69
  AC_SUBST(HTML_DIR)
 
70
 
 
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]]),,
 
75
    enable_gtk_doc=no)
 
76
 
 
77
  have_gtk_doc=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)
 
81
    fi
 
82
    if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
 
83
      have_gtk_doc=yes
 
84
    fi
 
85
 
 
86
  dnl do we want to do a version check?
 
87
ifelse([$1],[],,
 
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
 
92
        AC_MSG_RESULT(yes)
 
93
      else
 
94
        AC_MSG_RESULT(no)
 
95
        have_gtk_doc=no
 
96
      fi
 
97
    fi
 
98
])
 
99
    if test "$have_gtk_doc" != yes; then
 
100
      enable_gtk_doc=no
 
101
    fi
 
102
  fi
 
103
 
 
104
  AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)
 
105
  AM_CONDITIONAL(GTK_DOC_USE_LIBTOOL, test -n "$LIBTOOL")
 
106
])
18
107
 
19
108
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
20
109
 
21
 
# serial 48 AC_PROG_LIBTOOL
 
110
# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
22
111
 
23
112
 
24
113
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
1402
1491
  dynamic_linker=no
1403
1492
  ;;
1404
1493
 
1405
 
kfreebsd*-gnu)
1406
 
  version_type=linux
1407
 
  need_lib_prefix=no
1408
 
  need_version=no
1409
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1410
 
  soname_spec='${libname}${release}${shared_ext}$major'
1411
 
  shlibpath_var=LD_LIBRARY_PATH
1412
 
  shlibpath_overrides_runpath=no
1413
 
  hardcode_into_libs=yes
1414
 
  dynamic_linker='GNU ld.so'
1415
 
  ;;
1416
 
 
1417
1494
freebsd* | dragonfly*)
1418
1495
  # DragonFly does not have aout.  When/if they implement a new
1419
1496
  # versioning mechanism, adjust this.
1569
1646
  ;;
1570
1647
 
1571
1648
# This must be Linux ELF.
1572
 
linux*)
 
1649
linux* | k*bsd*-gnu)
1573
1650
  version_type=linux
1574
1651
  need_lib_prefix=no
1575
1652
  need_version=no
1583
1660
  # before this can be enabled.
1584
1661
  hardcode_into_libs=yes
1585
1662
 
1586
 
  # find out which ABI we are using
1587
 
  libsuff=
1588
 
  case "$host_cpu" in
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
1593
 
      *64-bit*)
1594
 
        libsuff=64
1595
 
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
1596
 
        ;;
1597
 
      esac
1598
 
    fi
1599
 
    rm -rf conftest*
1600
 
    ;;
1601
 
  esac
1602
 
 
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"
1607
1667
  fi
1608
1668
 
1609
1669
  # We used to test for /lib/ld.so.1 and disable shared libraries on
1615
1675
  dynamic_linker='GNU/Linux ld.so'
1616
1676
  ;;
1617
1677
 
1618
 
knetbsd*-gnu)
 
1678
netbsdelf*-gnu)
1619
1679
  version_type=linux
1620
1680
  need_lib_prefix=no
1621
1681
  need_version=no
1624
1684
  shlibpath_var=LD_LIBRARY_PATH
1625
1685
  shlibpath_overrides_runpath=no
1626
1686
  hardcode_into_libs=yes
1627
 
  dynamic_linker='GNU ld.so'
 
1687
  dynamic_linker='NetBSD ld.elf_so'
1628
1688
  ;;
1629
1689
 
1630
1690
netbsd*)
2332
2392
  lt_cv_deplibs_check_method=pass_all
2333
2393
  ;;
2334
2394
 
2335
 
freebsd* | kfreebsd*-gnu | dragonfly*)
 
2395
freebsd* | dragonfly*)
2336
2396
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2337
2397
    case $host_cpu in
2338
2398
    i*86 )
2386
2446
  ;;
2387
2447
 
2388
2448
# This must be Linux ELF.
2389
 
linux*)
 
2449
linux* | k*bsd*-gnu)
2390
2450
  lt_cv_deplibs_check_method=pass_all
2391
2451
  ;;
2392
2452
 
2393
 
netbsd*)
 
2453
netbsd* | netbsdelf*-gnu)
2394
2454
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2395
2455
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2396
2456
  else
3138
3198
  freebsd-elf*)
3139
3199
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3140
3200
    ;;
3141
 
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
3201
  freebsd* | dragonfly*)
3142
3202
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3143
3203
    # conventions
3144
3204
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3297
3357
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3298
3358
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3299
3359
    ;;
3300
 
  linux*)
 
3360
  linux* | k*bsd*-gnu)
3301
3361
    case $cc_basename in
3302
3362
      KCC*)
3303
3363
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3399
3459
        ;;
3400
3460
    esac
3401
3461
    ;;
3402
 
  netbsd*)
 
3462
  netbsd* | netbsdelf*-gnu)
3403
3463
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3404
3464
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3405
3465
      wlarc=
4310
4370
# Is the compiler the GNU C compiler?
4311
4371
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4312
4372
 
4313
 
gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
4314
 
gcc_ver=\`gcc -dumpversion\`
4315
 
 
4316
4373
# An ERE matcher.
4317
4374
EGREP=$lt_EGREP
4318
4375
 
4446
4503
 
4447
4504
# Dependencies to place before the objects being linked to create a
4448
4505
# shared library.
4449
 
predep_objects=\`echo $lt_[]_LT_AC_TAGVAR(predep_objects, $1) | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
 
4506
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4450
4507
 
4451
4508
# Dependencies to place after the objects being linked to create a
4452
4509
# shared library.
4453
 
postdep_objects=\`echo $lt_[]_LT_AC_TAGVAR(postdep_objects, $1) | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
 
4510
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4454
4511
 
4455
4512
# Dependencies to place before the objects being linked to create a
4456
4513
# shared library.
4462
4519
 
4463
4520
# The library search path used internally by the compiler when linking
4464
4521
# a shared library.
4465
 
compiler_lib_search_path=\`echo $lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
 
4522
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4466
4523
 
4467
4524
# Method to check whether dependent libraries are shared objects.
4468
4525
deplibs_check_method=$lt_deplibs_check_method
4542
4599
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4543
4600
 
4544
4601
# Compile-time system search path for libraries
4545
 
sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
 
4602
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4546
4603
 
4547
4604
# Run-time system search path for libraries
4548
4605
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4667
4724
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4668
4725
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4669
4726
  ;;
4670
 
linux*)
 
4727
linux* | k*bsd*-gnu)
4671
4728
  if test "$host_cpu" = ia64; then
4672
4729
    symcode='[[ABCDGIRSTW]]'
4673
4730
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4940
4997
            ;;
4941
4998
        esac
4942
4999
        ;;
4943
 
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
5000
      freebsd* | dragonfly*)
4944
5001
        # FreeBSD uses GNU C++
4945
5002
        ;;
4946
5003
      hpux9* | hpux10* | hpux11*)
4983
5040
            ;;
4984
5041
        esac
4985
5042
        ;;
4986
 
      linux*)
 
5043
      linux* | k*bsd*-gnu)
4987
5044
        case $cc_basename in
4988
5045
          KCC*)
4989
5046
            # KAI C++ Compiler
5026
5083
            ;;
5027
5084
        esac
5028
5085
        ;;
5029
 
      netbsd*)
 
5086
      netbsd* | netbsdelf*-gnu)
5030
5087
        ;;
5031
5088
      osf3* | osf4* | osf5*)
5032
5089
        case $cc_basename in
5237
5294
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5238
5295
      ;;
5239
5296
 
5240
 
    linux*)
 
5297
    linux* | k*bsd*-gnu)
5241
5298
      case $cc_basename in
5242
5299
      icc* | ecc*)
5243
5300
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5378
5435
  cygwin* | mingw*)
5379
5436
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5380
5437
  ;;
 
5438
  linux* | k*bsd*-gnu)
 
5439
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
 
5440
  ;;
5381
5441
  *)
5382
5442
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5383
5443
  ;;
5548
5608
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5549
5609
      ;;
5550
5610
 
5551
 
    linux*)
 
5611
    linux* | k*bsd*-gnu)
5552
5612
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5553
5613
        tmp_addflag=
5554
5614
        case $cc_basename,$host_cpu in
5574
5634
  $echo "local: *; };" >> $output_objdir/$libname.ver~
5575
5635
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5576
5636
        fi
 
5637
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5577
5638
      else
5578
5639
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5579
5640
      fi
5580
5641
      ;;
5581
5642
 
5582
 
    netbsd*)
 
5643
    netbsd* | netbsdelf*-gnu)
5583
5644
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5584
5645
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5585
5646
        wlarc=
5909
5970
      ;;
5910
5971
 
5911
5972
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5912
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
5973
    freebsd* | dragonfly*)
5913
5974
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5914
5975
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5915
5976
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6011
6072
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6012
6073
      ;;
6013
6074
 
6014
 
    netbsd*)
 
6075
    netbsd* | netbsdelf*-gnu)
6015
6076
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6016
6077
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6017
6078
      else
6378
6439
    done
6379
6440
  done
6380
6441
done
6381
 
IFS=$as_save_IFS
6382
6442
lt_ac_max=0
6383
6443
lt_ac_count=0
6384
6444
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6411
6471
done
6412
6472
])
6413
6473
SED=$lt_cv_path_SED
6414
 
AC_SUBST([SED])
6415
6474
AC_MSG_RESULT([$SED])
6416
6475
])
6417
6476
 
6553
6612
 
6554
6613
_PKG_TEXT
6555
6614
])],
6556
 
                [AC_MSG_RESULT([no])
6557
 
                $4])
 
6615
                [$4])
6558
6616
elif test $pkg_failed = untried; then
6559
6617
        ifelse([$4], , [AC_MSG_FAILURE(dnl
6560
6618
[The pkg-config script could not be found or is too old.  Make sure it
6573
6631
fi[]dnl
6574
6632
])# PKG_CHECK_MODULES
6575
6633
 
6576
 
# Copyright (C) 2002, 2003, 2005, 2006  Free Software Foundation, Inc.
 
6634
# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
6577
6635
#
6578
6636
# This file is free software; the Free Software Foundation
6579
6637
# gives unlimited permission to copy and/or distribute it,
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
6593
 
])
6594
 
 
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"])
6601
6645
 
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])])
6609
6652
 
6610
6653
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
6611
6654
 
6662
6705
 
6663
6706
# AM_CONDITIONAL                                            -*- Autoconf -*-
6664
6707
 
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.
6667
6710
#
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.
6671
6714
 
6672
 
# serial 8
 
6715
# serial 7
6673
6716
 
6674
6717
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
6675
6718
# -------------------------------------
6678
6721
[AC_PREREQ(2.52)dnl
6679
6722
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
6680
6723
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
6681
 
AC_SUBST([$1_TRUE])dnl
6682
 
AC_SUBST([$1_FALSE])dnl
6683
 
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
6684
 
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
6724
AC_SUBST([$1_TRUE])
 
6725
AC_SUBST([$1_FALSE])
6685
6726
if $2; then
6686
6727
  $1_TRUE=
6687
6728
  $1_FALSE='#'
6695
6736
Usually this means the macro was only invoked conditionally.]])
6696
6737
fi])])
6697
6738
 
6698
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
 
6739
 
 
6740
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6699
6741
# Free Software Foundation, Inc.
6700
6742
#
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.
6704
6746
 
6705
 
# serial 9
 
6747
# serial 8
6706
6748
 
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=])
6736
6777
 
6796
6837
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6797
6838
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6798
6839
         >/dev/null 2>conftest.err &&
6799
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6800
6840
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6801
6841
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6802
6842
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6849
6889
  AMDEPBACKSLASH='\'
6850
6890
fi
6851
6891
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
6852
 
AC_SUBST([AMDEPBACKSLASH])dnl
6853
 
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
6892
AC_SUBST([AMDEPBACKSLASH])
6854
6893
])
6855
6894
 
6856
6895
# Generate code to set up dependency tracking.              -*- Autoconf -*-
6875
6914
  # some people rename them; so instead we look at the file content.
6876
6915
  # Grep'ing the first line is not enough: some people post-process
6877
6916
  # each Makefile.in and add a new line on top of each file to say so.
6878
 
  # Grep'ing the whole file is not good either: AIX grep has a line
6879
 
  # limit of 2048, but all sed's we know have understand at least 4000.
6880
 
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
 
6917
  # So let's grep whole file.
 
6918
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6881
6919
    dirpart=`AS_DIRNAME("$mf")`
6882
6920
  else
6883
6921
    continue
6922
6960
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
6923
6961
])
6924
6962
 
6925
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
6926
 
# Free Software Foundation, Inc.
6927
 
#
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.
6931
 
 
6932
 
# serial 8
6933
 
 
6934
 
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
6935
 
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
6936
 
 
6937
6963
# Do all the work for Automake.                             -*- Autoconf -*-
6938
6964
 
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.
6941
6967
#
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])
6976
 
  fi
 
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])
6977
6999
fi
6978
7000
 
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
7001
7020
 
7031
7050
                  [_AM_DEPENDENCIES(CXX)],
7032
7051
                  [define([AC_PROG_CXX],
7033
7052
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
7034
 
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
7035
 
                  [_AM_DEPENDENCIES(OBJC)],
7036
 
                  [define([AC_PROG_OBJC],
7037
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
7038
7053
])
7039
7054
])
7040
7055
 
7070
7085
# Define $install_sh.
7071
7086
AC_DEFUN([AM_PROG_INSTALL_SH],
7072
7087
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7073
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
7088
install_sh=${install_sh-"$am_aux_dir/install-sh"}
7074
7089
AC_SUBST(install_sh)])
7075
7090
 
7076
7091
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
7177
7192
 
7178
7193
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
7179
7194
 
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.
7182
7197
#
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.
7186
7201
 
7187
 
# serial 5
 
7202
# serial 4
7188
7203
 
7189
7204
# AM_MISSING_PROG(NAME, PROGRAM)
7190
7205
# ------------------------------
7200
7215
# If it does, set am_missing_run to use it, otherwise, to nothing.
7201
7216
AC_DEFUN([AM_MISSING_HAS_RUN],
7202
7217
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7203
 
AC_REQUIRE_AUX_FILE([missing])dnl
7204
7218
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
7205
7219
# Use eval to expand $SHELL
7206
7220
if eval "$MISSING --run true"; then
7211
7225
fi
7212
7226
])
7213
7227
 
7214
 
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
7228
# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
7215
7229
#
7216
7230
# This file is free software; the Free Software Foundation
7217
7231
# gives unlimited permission to copy and/or distribute it,
7219
7233
 
7220
7234
# AM_PROG_MKDIR_P
7221
7235
# ---------------
7222
 
# Check for `mkdir -p'.
 
7236
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
 
7237
#
 
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
 
7242
# use `-m 0755':
 
7243
#   - it causes special bits like SGID to be ignored,
 
7244
#   - it may be too restrictive (some setups expect 775 directories).
 
7245
#
 
7246
# Do not use -m 0755 and let people choose whatever they expect by
 
7247
# setting umask.
 
7248
#
 
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
 
7255
# this.)
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
7232
 
dnl MKDIR_P).
7233
 
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
7234
 
case $mkdir_p in
7235
 
  [[\\/$]]* | ?:[[\\/]]*) ;;
7236
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7237
 
esac
7238
 
])
 
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
 
7262
  # for two reasons:
 
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 --'
 
7273
else
 
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
 
7277
  # exists.
 
7278
  for d in ./-p ./--version;
 
7279
  do
 
7280
    test -d $d && rmdir $d
 
7281
  done
 
7282
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
7283
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
7284
    mkdir_p='$(mkinstalldirs)'
 
7285
  else
 
7286
    mkdir_p='$(install_sh) -d'
 
7287
  fi
 
7288
fi
 
7289
AC_SUBST([mkdir_p])])
7239
7290
 
7240
7291
# Helper functions for option handling.                     -*- Autoconf -*-
7241
7292
 
7347
7398
if test "$cross_compiling" != no; then
7348
7399
  AC_CHECK_TOOL([STRIP], [strip], :)
7349
7400
fi
7350
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
7401
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
7351
7402
AC_SUBST([INSTALL_STRIP_PROGRAM])])
7352
7403
 
7353
 
# Copyright (C) 2006  Free Software Foundation, Inc.
7354
 
#
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.
7358
 
 
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])
7364
 
 
7365
7404
# Check how to create a tarball.                            -*- Autoconf -*-
7366
7405
 
7367
7406
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
7458
7497
AC_SUBST([am__untar])
7459
7498
]) # _AM_PROG_TAR
7460
7499
 
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
7466
 
dnl
7467
 
 
7468
 
AC_DEFUN([AM_GCONF_SOURCE_2],
7469
 
[
7470
 
  if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
7471
 
    GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
7472
 
  else
7473
 
    GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
7474
 
  fi
7475
 
 
7476
 
  AC_ARG_WITH(gconf-source, 
7477
 
  [  --with-gconf-source=sourceaddress      Config database for installing schema files.],GCONF_SCHEMA_CONFIG_SOURCE="$withval",)
7478
 
 
7479
 
  AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
7480
 
  AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
7481
 
 
7482
 
  if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
7483
 
    GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
7484
 
  fi
7485
 
 
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",)
7488
 
 
7489
 
  AC_SUBST(GCONF_SCHEMA_FILE_DIR)
7490
 
  AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
7491
 
 
7492
 
  AC_ARG_ENABLE(schemas-install,
7493
 
     [  --disable-schemas-install       Disable the schemas installation],
7494
 
     [case ${enableval} in
7495
 
       yes|no) ;;
7496
 
       *) AC_MSG_ERROR(bad value ${enableval} for --enable-schemas-install) ;;
7497
 
      esac])
7498
 
  AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
7499
 
])
7500
 
 
7501
7500
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
7502
7501
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
7503
7502
#
7601
7600
#-----------------
7602
7601
glib_DEFUN([GLIB_WITH_NLS],
7603
7602
  dnl NLS is obligatory
7604
 
  [USE_NLS=yes
 
7603
  [AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
7604
    USE_NLS=yes
7605
7605
    AC_SUBST(USE_NLS)
7606
7606
 
7607
7607
    gt_cv_have_gettext=no
7941
7941
        AC_REQUIRE([AM_MAINTAINER_MODE])
7942
7942
 
7943
7943
        if test $USE_MAINTAINER_MODE = yes; then
7944
 
                DISABLE_DEPRECATED="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DBONOBO_DISABLE_DEPRECATED"
 
7944
                DISABLE_DEPRECATED="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGCONF_DISABLE_DEPRECATED -DBONOBO_DISABLE_DEPRECATED -DBONOBO_UI_DISABLE_DEPRECATED -DGNOME_VFS_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DLIBGLADE_DISABLE_DEPRECATED"
7945
7945
        else
7946
7946
                DISABLE_DEPRECATED=""
7947
7947
        fi
8045
8045
 
8046
8046
  AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
8047
8047
  warnCXXFLAGS=
8048
 
  if test "x$GCC" != xyes; then
8049
 
    enable_compile_warnings=no
 
8048
  if test "x$GXX" != xyes; then
 
8049
    enable_cxx_warnings=no
8050
8050
  fi
8051
8051
  if test "x$enable_cxx_warnings" != "xno"; then
8052
 
    if test "x$GCC" = "xyes"; then
 
8052
    if test "x$GXX" = "xyes"; then
8053
8053
      case " $CXXFLAGS " in
8054
8054
      *[\ \     ]-Wall[\ \      ]*) ;;
8055
8055
      *) warnCXXFLAGS="-Wall -Wno-unused" ;;
8072
8072
   AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
8073
8073
   complCXXFLAGS=
8074
8074
   if test "x$enable_iso_cxx" != "xno"; then
8075
 
     if test "x$GCC" = "xyes"; then
 
8075
     if test "x$GXX" = "xyes"; then
8076
8076
      case " $CXXFLAGS " in
8077
8077
      *[\ \     ]-ansi[\ \      ]*) ;;
8078
8078
      *) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
8090
8090
  AC_SUBST(WARN_CXXFLAGS)
8091
8091
])
8092
8092
 
8093
 
dnl -*- mode: autoconf -*-
8094
 
 
8095
 
# serial 1
8096
 
 
8097
 
dnl Usage:
8098
 
dnl   GTK_DOC_CHECK([minimum-gtk-doc-version])
8099
 
AC_DEFUN([GTK_DOC_CHECK],
8100
 
[
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"
8108
 
  AC_SUBST(HTML_DIR)
8109
 
 
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]]),,
8114
 
    enable_gtk_doc=no)
8115
 
 
8116
 
  have_gtk_doc=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)
8120
 
    fi
8121
 
    if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
8122
 
      have_gtk_doc=yes
8123
 
    fi
8124
 
 
8125
 
  dnl do we want to do a version check?
8126
 
ifelse([$1],[],,
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
8131
 
        AC_MSG_RESULT(yes)
8132
 
      else
8133
 
        AC_MSG_RESULT(no)
8134
 
        have_gtk_doc=no
8135
 
      fi
8136
 
    fi
8137
 
])
8138
 
    if test "$have_gtk_doc" != yes; then
8139
 
      enable_gtk_doc=no
8140
 
    fi
8141
 
  fi
8142
 
 
8143
 
  AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)
8144
 
  AM_CONDITIONAL(GTK_DOC_USE_LIBTOOL, test -n "$LIBTOOL")
8145
 
])
8146
 
 
8147
8093
 
8148
8094
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
8149
8095
# serial 35 IT_PROG_INTLTOOL
8236
8182
 
8237
8183
# Substitute ALL_LINGUAS so we can use it in po/Makefile
8238
8184
AC_SUBST(ALL_LINGUAS)
8239
 
 
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],
8246
 
    [case $host in
8247
 
    *-*-solaris*)
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
8252
 
    dnl in this case.
8253
 
    AC_CHECK_FUNC(bind_textdomain_codeset,
8254
 
      [DATADIRNAME=share], [DATADIRNAME=lib])
8255
 
    ;;
8256
 
    *)
8257
 
    [DATADIRNAME=lib]
8258
 
    ;;
8259
 
    esac])
8260
 
fi
8261
 
AC_SUBST(DATADIRNAME)
8262
 
 
 
8185
    
8263
8186
IT_PO_SUBDIR([po])
8264
8187
 
8265
8188
dnl The following is very similar to