# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ(2.57) AC_INIT(libgksuui1.0, 1.0.7, kov@debian.org) AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) AC_CONFIG_SRCDIR(libgksuui/gksuui-dialog.c) AM_CONFIG_HEADER(config.h) AM_MAINTAINER_MODE AC_DEFINE(PACKAGE, AC_PACKAGE_NAME, [package name]) AC_DEFINE(VERSION, AC_PACKAGE_VERSION, [package version]) # Checks for programs. AC_PROG_CC AC_PROG_INSTALL AC_PROG_LIBTOOL # Checks for Gtk2.0 AM_PATH_GTK_2_0(2.0.0,, AC_MSG_ERROR(Can't find GTK 2.0.0 or better) ) # Checks for library functions. ALL_LINGUAS="ca cs da de es fr hu pl pt_BR nb nl ro ru sk" AM_GNU_GETTEXT AM_GNU_GETTEXT_VERSION(0.14.1) ################################################## # Check for gtk-doc. ################################################## AC_ARG_WITH(html-dir, [ --with-html-dir=PATH path to installed docs ]) if test "x$with_html_dir" = "x" ; then HTML_DIR='${datadir}/gtk-doc/html' else HTML_DIR=$with_html_dir fi AC_SUBST(HTML_DIR) gtk_doc_min_version=1.0 AC_MSG_CHECKING([gtk-doc version >= $gtk_doc_min_version]) if pkg-config --atleast-version=$gtk_doc_min_version gtk-doc; then AC_MSG_RESULT(yes) GTKDOC=true else AC_MSG_RESULT(no) GTKDOC=false fi dnl Let people disable the gtk-doc stuff. AC_ARG_ENABLE(gtk-doc, [ --enable-gtk-doc Use gtk-doc to build documentation [default=yes]], enable_gtk_doc="$enableval", enable_gtk_doc=yes) AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes) AM_CONDITIONAL(GTK_DOC_USE_LIBTOOL, test x$use_libtool = xyes) # end of gtk-doc check AC_CONFIG_FILES([ Makefile intl/Makefile po/Makefile.in m4/Makefile libgksuui/Makefile libgksuui/libgksuui1.0.pc graphics/Makefile docs/Makefile ]) AC_OUTPUT