~ubuntu-branches/debian/sid/pango1.0/sid

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2014-03-20 18:01:45 UTC
  • mfrom: (1.9.3)
  • Revision ID: package-import@ubuntu.com-20140320180145-y2zs0pzp6390a6y9
Tags: 1.36.3-1
* Add xauth test-dep, needed for xvfb-run
* New upstream release
  - Fix builddir != srdir builds
    + Drop 0001-Fix-tests-for-builddir-srcdir-by-setting-G_TEST_-SRC.patch,
      which was a cherry-pick of this fix.
  - Avoid a crash when FT_Face is NULL
  - Update pango_color_parse docs

Show diffs side-by-side

added added

removed removed

Lines of Context:
9961
9961
 
9962
9962
dnl -*- mode: autoconf -*-
9963
9963
 
9964
 
# serial 1
 
9964
# serial 2
9965
9965
 
9966
9966
dnl Usage:
9967
9967
dnl   GTK_DOC_CHECK([minimum-gtk-doc-version])
9971
9971
  AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
9972
9972
  AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
9973
9973
 
 
9974
  ifelse([$1],[],[gtk_doc_requires="gtk-doc"],[gtk_doc_requires="gtk-doc >= $1"])
 
9975
  AC_MSG_CHECKING([for gtk-doc])
 
9976
  PKG_CHECK_EXISTS([$gtk_doc_requires],[have_gtk_doc=yes],[have_gtk_doc=no])
 
9977
  AC_MSG_RESULT($have_gtk_doc)
 
9978
 
 
9979
  if test "$have_gtk_doc" = "no"; then
 
9980
      AC_MSG_WARN([
 
9981
  You will not be able to create source packages with 'make dist'
 
9982
  because $gtk_doc_requires is not found.])
 
9983
  fi
 
9984
 
9974
9985
  dnl check for tools we added during development
9975
9986
  dnl Use AC_CHECK_PROG to avoid the check target using an absolute path that
9976
9987
  dnl may not be writable by the user. Currently, automake requires that the
9994
10005
                   [use gtk-doc to build documentation [[default=no]]]),,
9995
10006
    [enable_gtk_doc=no])
9996
10007
 
9997
 
  if test x$enable_gtk_doc = xyes; then
9998
 
    ifelse([$1],[],
9999
 
      [PKG_CHECK_EXISTS([gtk-doc],,
10000
 
                        AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
10001
 
      [PKG_CHECK_EXISTS([gtk-doc >= $1],,
10002
 
                        AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))])
10003
 
    dnl don't check for glib if we build glib
10004
 
    if test "x$PACKAGE_NAME" != "xglib"; then
10005
 
      dnl don't fail if someone does not have glib
10006
 
      PKG_CHECK_MODULES(GTKDOC_DEPS, glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0,,[:])
10007
 
    fi
10008
 
  fi
10009
 
 
10010
10008
  AC_MSG_CHECKING([whether to build gtk-doc documentation])
10011
10009
  AC_MSG_RESULT($enable_gtk_doc)
10012
10010
 
 
10011
  if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
 
10012
    AC_MSG_ERROR([
 
10013
  You must have $gtk_doc_requires installed to build documentation for
 
10014
  $PACKAGE_NAME. Please install gtk-doc or disable building the
 
10015
  documentation by adding '--disable-gtk-doc' to '[$]0'.])
 
10016
  fi
 
10017
 
 
10018
  dnl don't check for glib if we build glib
 
10019
  if test "x$PACKAGE_NAME" != "xglib"; then
 
10020
    dnl don't fail if someone does not have glib
 
10021
    PKG_CHECK_MODULES(GTKDOC_DEPS, glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0,,[:])
 
10022
  fi
 
10023
 
10013
10024
  dnl enable/disable output formats
10014
10025
  AC_ARG_ENABLE([gtk-doc-html],
10015
10026
    AS_HELP_STRING([--enable-gtk-doc-html],
10029
10040
  fi
10030
10041
  AC_SUBST([AM_DEFAULT_VERBOSITY])
10031
10042
 
 
10043
  AM_CONDITIONAL([HAVE_GTK_DOC], [test x$have_gtk_doc = xyes])
10032
10044
  AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
10033
10045
  AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes])
10034
10046
  AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes])