~noskcaj/ubuntu/trusty/tumbler/0.1.30

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Jackson Doak
  • Date: 2014-03-12 19:27:40 UTC
  • mfrom: (14.1.1 sid)
  • Revision ID: noskcaj@ubuntu.com-20140312192740-yuscjht3aapcx441
* Merge from debian. (LP: #1290528) Remaining changes:
  - Build using dh-autoreconf.
* New upstream release
* debian/rules: Disable silent rules
* debian/control: Bump standards-version to 3.9.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.13.1 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.14.1 -*- Autoconf -*-
2
2
 
3
 
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
 
3
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
4
4
 
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
337
337
dnl
338
338
glib_DEFUN([GLIB_GNU_GETTEXT],
339
339
  [AC_REQUIRE([AC_PROG_CC])dnl
340
 
   AC_REQUIRE([AC_HEADER_STDC])dnl
341
340
   
342
341
   GLIB_LC_MESSAGES
343
342
   GLIB_WITH_NLS
717
716
# generated from the m4 files accompanying Automake X.Y.
718
717
# (This private macro should not be called outside this file.)
719
718
AC_DEFUN([AM_AUTOMAKE_VERSION],
720
 
[am__api_version='1.13'
 
719
[am__api_version='1.14'
721
720
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
722
721
dnl require some minimum version.  Point them to the right macro.
723
 
m4_if([$1], [1.13.1], [],
 
722
m4_if([$1], [1.14.1], [],
724
723
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
725
724
])
726
725
 
736
735
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
737
736
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
738
737
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
739
 
[AM_AUTOMAKE_VERSION([1.13.1])dnl
 
738
[AM_AUTOMAKE_VERSION([1.14.1])dnl
740
739
m4_ifndef([AC_AUTOCONF_VERSION],
741
740
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
742
741
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
1078
1077
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1079
1078
    test -z "$DEPDIR" && continue
1080
1079
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
1081
 
    test -z "am__include" && continue
 
1080
    test -z "$am__include" && continue
1082
1081
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1083
1082
    # Find all dependency output files, they are included files with
1084
1083
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
1123
1122
# This macro actually does too much.  Some checks are only needed if
1124
1123
# your package does certain things.  But this isn't really a big deal.
1125
1124
 
 
1125
dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
 
1126
m4_define([AC_PROG_CC],
 
1127
m4_defn([AC_PROG_CC])
 
1128
[_AM_PROG_CC_C_O
 
1129
])
 
1130
 
1126
1131
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
1127
1132
# AM_INIT_AUTOMAKE([OPTIONS])
1128
1133
# -----------------------------------------------
1231
1236
AC_CONFIG_COMMANDS_PRE(dnl
1232
1237
[m4_provide_if([_AM_COMPILER_EXEEXT],
1233
1238
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
1234
 
])
 
1239
 
 
1240
# POSIX will say in a future version that running "rm -f" with no argument
 
1241
# is OK; and we want to be able to make that assumption in our Makefile
 
1242
# recipes.  So use an aggressive probe to check that the usage we want is
 
1243
# actually supported "in the wild" to an acceptable degree.
 
1244
# See automake bug#10828.
 
1245
# To make any issue more visible, cause the running configure to be aborted
 
1246
# by default if the 'rm' program in use doesn't match our expectations; the
 
1247
# user can still override this though.
 
1248
if rm -f && rm -fr && rm -rf; then : OK; else
 
1249
  cat >&2 <<'END'
 
1250
Oops!
 
1251
 
 
1252
Your 'rm' program seems unable to run without file operands specified
 
1253
on the command line, even when the '-f' option is present.  This is contrary
 
1254
to the behaviour of most rm programs out there, and not conforming with
 
1255
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
 
1256
 
 
1257
Please tell bug-automake@gnu.org about your system, including the value
 
1258
of your $PATH and any error possibly output before this message.  This
 
1259
can help us improve future automake versions.
 
1260
 
 
1261
END
 
1262
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
 
1263
    echo 'Configuration will proceed anyway, since you have set the' >&2
 
1264
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
 
1265
    echo >&2
 
1266
  else
 
1267
    cat >&2 <<'END'
 
1268
Aborting the configuration process, to ensure you take notice of the issue.
 
1269
 
 
1270
You can download and install GNU coreutils to get an 'rm' implementation
 
1271
that behaves properly: <http://www.gnu.org/software/coreutils/>.
 
1272
 
 
1273
If you want to complete the configuration process using your problematic
 
1274
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
 
1275
to "yes", and re-run configure.
 
1276
 
 
1277
END
 
1278
    AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
 
1279
  fi
 
1280
fi])
1235
1281
 
1236
1282
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
1237
1283
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
1239
1285
m4_define([_AC_COMPILER_EXEEXT],
1240
1286
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
1241
1287
 
1242
 
 
1243
1288
# When config.status generates a header, we must update the stamp-h file.
1244
1289
# This file resides in the same directory as the config header
1245
1290
# that is generated.  The stamp files are numbered to have different names.
1387
1432
rm -f confinc confmf
1388
1433
])
1389
1434
 
1390
 
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
1391
 
#
1392
 
# This file is free software; the Free Software Foundation
1393
 
# gives unlimited permission to copy and/or distribute it,
1394
 
# with or without modifications, as long as this notice is preserved.
1395
 
 
1396
 
# AM_PROG_CC_C_O
1397
 
# --------------
1398
 
# Like AC_PROG_CC_C_O, but changed for automake.
1399
 
AC_DEFUN([AM_PROG_CC_C_O],
1400
 
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
1401
 
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1402
 
AC_REQUIRE_AUX_FILE([compile])dnl
1403
 
# FIXME: we rely on the cache variable name because
1404
 
# there is no other way.
1405
 
set dummy $CC
1406
 
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
1407
 
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
1408
 
if test "$am_t" != yes; then
1409
 
   # Losing compiler, so override with the script.
1410
 
   # FIXME: It is wrong to rewrite CC.
1411
 
   # But if we don't then we get into trouble of one sort or another.
1412
 
   # A longer-term fix would be to have automake use am__CC in this case,
1413
 
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1414
 
   CC="$am_aux_dir/compile $CC"
1415
 
fi
1416
 
dnl Make sure AC_PROG_CC is never called again, or it will override our
1417
 
dnl setting of CC.
1418
 
m4_define([AC_PROG_CC],
1419
 
          [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
1420
 
])
1421
 
 
1422
1435
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
1423
1436
 
1424
1437
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
1489
1502
AC_DEFUN([_AM_IF_OPTION],
1490
1503
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1491
1504
 
 
1505
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
 
1506
#
 
1507
# This file is free software; the Free Software Foundation
 
1508
# gives unlimited permission to copy and/or distribute it,
 
1509
# with or without modifications, as long as this notice is preserved.
 
1510
 
 
1511
# _AM_PROG_CC_C_O
 
1512
# ---------------
 
1513
# Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
 
1514
# to automatically call this.
 
1515
AC_DEFUN([_AM_PROG_CC_C_O],
 
1516
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
1517
AC_REQUIRE_AUX_FILE([compile])dnl
 
1518
AC_LANG_PUSH([C])dnl
 
1519
AC_CACHE_CHECK(
 
1520
  [whether $CC understands -c and -o together],
 
1521
  [am_cv_prog_cc_c_o],
 
1522
  [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
 
1523
  # Make sure it works both with $CC and with simple cc.
 
1524
  # Following AC_PROG_CC_C_O, we do the test twice because some
 
1525
  # compilers refuse to overwrite an existing .o file with -o,
 
1526
  # though they will create one.
 
1527
  am_cv_prog_cc_c_o=yes
 
1528
  for am_i in 1 2; do
 
1529
    if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
 
1530
         && test -f conftest2.$ac_objext; then
 
1531
      : OK
 
1532
    else
 
1533
      am_cv_prog_cc_c_o=no
 
1534
      break
 
1535
    fi
 
1536
  done
 
1537
  rm -f core conftest*
 
1538
  unset am_i])
 
1539
if test "$am_cv_prog_cc_c_o" != yes; then
 
1540
   # Losing compiler, so override with the script.
 
1541
   # FIXME: It is wrong to rewrite CC.
 
1542
   # But if we don't then we get into trouble of one sort or another.
 
1543
   # A longer-term fix would be to have automake use am__CC in this case,
 
1544
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
1545
   CC="$am_aux_dir/compile $CC"
 
1546
fi
 
1547
AC_LANG_POP([C])])
 
1548
 
 
1549
# For backward compatibility.
 
1550
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
 
1551
 
1492
1552
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1493
1553
#
1494
1554
# This file is free software; the Free Software Foundation
1715
1775
# Substitute a variable $(am__untar) that extract such
1716
1776
# a tarball read from stdin.
1717
1777
#     $(am__untar) < result.tar
 
1778
#
1718
1779
AC_DEFUN([_AM_PROG_TAR],
1719
1780
[# Always define AMTAR for backward compatibility.  Yes, it's still used
1720
1781
# in the wild :-(  We should find a proper way to deprecate it ...
1721
1782
AC_SUBST([AMTAR], ['$${TAR-tar}'])
 
1783
 
 
1784
# We'll loop over all known methods to create a tar archive until one works.
 
1785
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
1786
 
1722
1787
m4_if([$1], [v7],
1723
 
     [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1724
 
     [m4_case([$1], [ustar],, [pax],,
1725
 
              [m4_fatal([Unknown tar format])])
1726
 
AC_MSG_CHECKING([how to create a $1 tar archive])
1727
 
# Loop over all known methods to create a tar archive until one works.
1728
 
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1729
 
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1730
 
# Do not fold the above two line into one, because Tru64 sh and
1731
 
# Solaris sh will not grok spaces in the rhs of '-'.
1732
 
for _am_tool in $_am_tools
1733
 
do
1734
 
  case $_am_tool in
1735
 
  gnutar)
1736
 
    for _am_tar in tar gnutar gtar;
1737
 
    do
1738
 
      AM_RUN_LOG([$_am_tar --version]) && break
1739
 
    done
1740
 
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1741
 
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1742
 
    am__untar="$_am_tar -xf -"
1743
 
    ;;
1744
 
  plaintar)
1745
 
    # Must skip GNU tar: if it does not support --format= it doesn't create
1746
 
    # ustar tarball either.
1747
 
    (tar --version) >/dev/null 2>&1 && continue
1748
 
    am__tar='tar chf - "$$tardir"'
1749
 
    am__tar_='tar chf - "$tardir"'
1750
 
    am__untar='tar xf -'
1751
 
    ;;
1752
 
  pax)
1753
 
    am__tar='pax -L -x $1 -w "$$tardir"'
1754
 
    am__tar_='pax -L -x $1 -w "$tardir"'
1755
 
    am__untar='pax -r'
1756
 
    ;;
1757
 
  cpio)
1758
 
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1759
 
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1760
 
    am__untar='cpio -i -H $1 -d'
1761
 
    ;;
1762
 
  none)
1763
 
    am__tar=false
1764
 
    am__tar_=false
1765
 
    am__untar=false
1766
 
    ;;
1767
 
  esac
1768
 
 
1769
 
  # If the value was cached, stop now.  We just wanted to have am__tar
1770
 
  # and am__untar set.
1771
 
  test -n "${am_cv_prog_tar_$1}" && break
1772
 
 
1773
 
  # tar/untar a dummy directory, and stop if the command works
1774
 
  rm -rf conftest.dir
1775
 
  mkdir conftest.dir
1776
 
  echo GrepMe > conftest.dir/file
1777
 
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1778
 
  rm -rf conftest.dir
1779
 
  if test -s conftest.tar; then
1780
 
    AM_RUN_LOG([$am__untar <conftest.tar])
1781
 
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1782
 
  fi
1783
 
done
1784
 
rm -rf conftest.dir
1785
 
 
1786
 
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1787
 
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
1788
  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
 
1789
 
 
1790
  [m4_case([$1],
 
1791
    [ustar],
 
1792
     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
 
1793
      # There is notably a 21 bits limit for the UID and the GID.  In fact,
 
1794
      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
 
1795
      # and bug#13588).
 
1796
      am_max_uid=2097151 # 2^21 - 1
 
1797
      am_max_gid=$am_max_uid
 
1798
      # The $UID and $GID variables are not portable, so we need to resort
 
1799
      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
 
1800
      # below are definitely unexpected, so allow the users to see them
 
1801
      # (that is, avoid stderr redirection).
 
1802
      am_uid=`id -u || echo unknown`
 
1803
      am_gid=`id -g || echo unknown`
 
1804
      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
 
1805
      if test $am_uid -le $am_max_uid; then
 
1806
         AC_MSG_RESULT([yes])
 
1807
      else
 
1808
         AC_MSG_RESULT([no])
 
1809
         _am_tools=none
 
1810
      fi
 
1811
      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
 
1812
      if test $am_gid -le $am_max_gid; then
 
1813
         AC_MSG_RESULT([yes])
 
1814
      else
 
1815
        AC_MSG_RESULT([no])
 
1816
        _am_tools=none
 
1817
      fi],
 
1818
 
 
1819
  [pax],
 
1820
    [],
 
1821
 
 
1822
  [m4_fatal([Unknown tar format])])
 
1823
 
 
1824
  AC_MSG_CHECKING([how to create a $1 tar archive])
 
1825
 
 
1826
  # Go ahead even if we have the value already cached.  We do so because we
 
1827
  # need to set the values for the 'am__tar' and 'am__untar' variables.
 
1828
  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
1829
 
 
1830
  for _am_tool in $_am_tools; do
 
1831
    case $_am_tool in
 
1832
    gnutar)
 
1833
      for _am_tar in tar gnutar gtar; do
 
1834
        AM_RUN_LOG([$_am_tar --version]) && break
 
1835
      done
 
1836
      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
1837
      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
1838
      am__untar="$_am_tar -xf -"
 
1839
      ;;
 
1840
    plaintar)
 
1841
      # Must skip GNU tar: if it does not support --format= it doesn't create
 
1842
      # ustar tarball either.
 
1843
      (tar --version) >/dev/null 2>&1 && continue
 
1844
      am__tar='tar chf - "$$tardir"'
 
1845
      am__tar_='tar chf - "$tardir"'
 
1846
      am__untar='tar xf -'
 
1847
      ;;
 
1848
    pax)
 
1849
      am__tar='pax -L -x $1 -w "$$tardir"'
 
1850
      am__tar_='pax -L -x $1 -w "$tardir"'
 
1851
      am__untar='pax -r'
 
1852
      ;;
 
1853
    cpio)
 
1854
      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
1855
      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
1856
      am__untar='cpio -i -H $1 -d'
 
1857
      ;;
 
1858
    none)
 
1859
      am__tar=false
 
1860
      am__tar_=false
 
1861
      am__untar=false
 
1862
      ;;
 
1863
    esac
 
1864
 
 
1865
    # If the value was cached, stop now.  We just wanted to have am__tar
 
1866
    # and am__untar set.
 
1867
    test -n "${am_cv_prog_tar_$1}" && break
 
1868
 
 
1869
    # tar/untar a dummy directory, and stop if the command works.
 
1870
    rm -rf conftest.dir
 
1871
    mkdir conftest.dir
 
1872
    echo GrepMe > conftest.dir/file
 
1873
    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
1874
    rm -rf conftest.dir
 
1875
    if test -s conftest.tar; then
 
1876
      AM_RUN_LOG([$am__untar <conftest.tar])
 
1877
      AM_RUN_LOG([cat conftest.dir/file])
 
1878
      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
1879
    fi
 
1880
  done
 
1881
  rm -rf conftest.dir
 
1882
 
 
1883
  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
1884
  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
1885
 
1788
1886
AC_SUBST([am__tar])
1789
1887
AC_SUBST([am__untar])
1790
1888
]) # _AM_PROG_TAR
1791
1889
 
1792
1890
dnl -*- mode: autoconf -*-
1793
1891
 
1794
 
# serial 1
 
1892
# serial 2
1795
1893
 
1796
1894
dnl Usage:
1797
1895
dnl   GTK_DOC_CHECK([minimum-gtk-doc-version])
1801
1899
  AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
1802
1900
  AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
1803
1901
 
 
1902
  ifelse([$1],[],[gtk_doc_requires="gtk-doc"],[gtk_doc_requires="gtk-doc >= $1"])
 
1903
  AC_MSG_CHECKING([for gtk-doc])
 
1904
  PKG_CHECK_EXISTS([$gtk_doc_requires],[have_gtk_doc=yes],[have_gtk_doc=no])
 
1905
  AC_MSG_RESULT($have_gtk_doc)
 
1906
 
 
1907
  if test "$have_gtk_doc" = "no"; then
 
1908
      AC_MSG_WARN([
 
1909
  You will not be able to create source packages with 'make dist'
 
1910
  because $gtk_doc_requires is not found.])
 
1911
  fi
 
1912
 
1804
1913
  dnl check for tools we added during development
1805
 
  AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check])
 
1914
  dnl Use AC_CHECK_PROG to avoid the check target using an absolute path that
 
1915
  dnl may not be writable by the user. Currently, automake requires that the
 
1916
  dnl test name must end in '.test'.
 
1917
  dnl https://bugzilla.gnome.org/show_bug.cgi?id=701638
 
1918
  AC_CHECK_PROG([GTKDOC_CHECK],[gtkdoc-check],[gtkdoc-check.test])
 
1919
  AC_PATH_PROG([GTKDOC_CHECK_PATH],[gtkdoc-check])
1806
1920
  AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true])
1807
1921
  AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf])
1808
1922
 
1819
1933
                   [use gtk-doc to build documentation [[default=no]]]),,
1820
1934
    [enable_gtk_doc=no])
1821
1935
 
1822
 
  if test x$enable_gtk_doc = xyes; then
1823
 
    ifelse([$1],[],
1824
 
      [PKG_CHECK_EXISTS([gtk-doc],,
1825
 
                        AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
1826
 
      [PKG_CHECK_EXISTS([gtk-doc >= $1],,
1827
 
                        AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))])
1828
 
    dnl don't check for glib if we build glib
1829
 
    if test "x$PACKAGE_NAME" != "xglib"; then
1830
 
      dnl don't fail if someone does not have glib
1831
 
      PKG_CHECK_MODULES(GTKDOC_DEPS, glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0,,)
1832
 
    fi
1833
 
  fi
1834
 
 
1835
1936
  AC_MSG_CHECKING([whether to build gtk-doc documentation])
1836
1937
  AC_MSG_RESULT($enable_gtk_doc)
1837
1938
 
 
1939
  if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
 
1940
    AC_MSG_ERROR([
 
1941
  You must have $gtk_doc_requires installed to build documentation for
 
1942
  $PACKAGE_NAME. Please install gtk-doc or disable building the
 
1943
  documentation by adding '--disable-gtk-doc' to '[$]0'.])
 
1944
  fi
 
1945
 
 
1946
  dnl don't check for glib if we build glib
 
1947
  if test "x$PACKAGE_NAME" != "xglib"; then
 
1948
    dnl don't fail if someone does not have glib
 
1949
    PKG_CHECK_MODULES(GTKDOC_DEPS, glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0,,[:])
 
1950
  fi
 
1951
 
1838
1952
  dnl enable/disable output formats
1839
1953
  AC_ARG_ENABLE([gtk-doc-html],
1840
1954
    AS_HELP_STRING([--enable-gtk-doc-html],
1849
1963
    enable_gtk_doc_pdf=no
1850
1964
  fi
1851
1965
 
 
1966
  if test -z "$AM_DEFAULT_VERBOSITY"; then
 
1967
    AM_DEFAULT_VERBOSITY=1
 
1968
  fi
 
1969
  AC_SUBST([AM_DEFAULT_VERBOSITY])
1852
1970
 
 
1971
  AM_CONDITIONAL([HAVE_GTK_DOC], [test x$have_gtk_doc = xyes])
1853
1972
  AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
1854
1973
  AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes])
1855
1974
  AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes])