1
# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
1
# generated automatically by aclocal 1.11.3 -*- Autoconf -*-
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
4
# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
5
6
# This file is free software; the Free Software Foundation
6
7
# gives unlimited permission to copy and/or distribute it,
7
8
# with or without modifications, as long as this notice is preserved.
638
dnl -*- mode: autoconf -*-
639
dnl Copyright 2009 Johan Dahlin
641
dnl This file is free software; the author(s) gives unlimited
642
dnl permission to copy and/or distribute it, with or without
643
dnl modifications, as long as this notice is preserved.
648
m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL],
650
AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
651
AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
652
AC_BEFORE([LT_INIT],[$0])dnl setup libtool first
654
dnl enable/disable introspection
655
m4_if([$2], [require],
657
enable_introspection=yes
659
AC_ARG_ENABLE(introspection,
660
AS_HELP_STRING([--enable-introspection[=@<:@no/auto/yes@:>@]],
661
[Enable introspection for this build]),,
662
[enable_introspection=auto])
665
AC_MSG_CHECKING([for gobject-introspection])
667
dnl presence/version checking
668
AS_CASE([$enable_introspection],
670
found_introspection="no (disabled, use --enable-introspection to enable)"
673
PKG_CHECK_EXISTS([gobject-introspection-1.0],,
674
AC_MSG_ERROR([gobject-introspection-1.0 is not installed]))
675
PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1],
676
found_introspection=yes,
677
AC_MSG_ERROR([You need to have gobject-introspection >= $1 installed to build AC_PACKAGE_NAME]))
680
PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, found_introspection=no)
683
AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@])
686
AC_MSG_RESULT([$found_introspection])
688
INTROSPECTION_SCANNER=
689
INTROSPECTION_COMPILER=
690
INTROSPECTION_GENERATE=
691
INTROSPECTION_GIRDIR=
692
INTROSPECTION_TYPELIBDIR=
693
if test "x$found_introspection" = "xyes"; then
694
INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
695
INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
696
INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
697
INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
698
INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
699
INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
700
INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
701
INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
703
AC_SUBST(INTROSPECTION_SCANNER)
704
AC_SUBST(INTROSPECTION_COMPILER)
705
AC_SUBST(INTROSPECTION_GENERATE)
706
AC_SUBST(INTROSPECTION_GIRDIR)
707
AC_SUBST(INTROSPECTION_TYPELIBDIR)
708
AC_SUBST(INTROSPECTION_CFLAGS)
709
AC_SUBST(INTROSPECTION_LIBS)
710
AC_SUBST(INTROSPECTION_MAKEFILE)
712
AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes")
717
dnl GOBJECT_INTROSPECTION_CHECK([minimum-g-i-version])
719
AC_DEFUN([GOBJECT_INTROSPECTION_CHECK],
721
_GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1])
725
dnl GOBJECT_INTROSPECTION_REQUIRE([minimum-g-i-version])
728
AC_DEFUN([GOBJECT_INTROSPECTION_REQUIRE],
730
_GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require])
637
733
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
638
734
# serial 1 (pkg-config-0.24)
795
891
])# PKG_CHECK_MODULES
797
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
893
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
799
896
# This file is free software; the Free Software Foundation
800
897
# gives unlimited permission to copy and/or distribute it,
801
898
# with or without modifications, as long as this notice is preserved.
803
902
# AM_AUTOMAKE_VERSION(VERSION)
804
903
# ----------------------------
805
904
# Automake X.Y traces this macro to ensure aclocal.m4 has been
825
924
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
826
925
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
827
926
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
828
[AM_AUTOMAKE_VERSION([1.11.1])dnl
927
[AM_AUTOMAKE_VERSION([1.11.3])dnl
829
928
m4_ifndef([AC_AUTOCONF_VERSION],
830
929
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
831
930
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
833
932
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
835
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
934
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
837
936
# This file is free software; the Free Software Foundation
838
937
# gives unlimited permission to copy and/or distribute it,
839
938
# with or without modifications, as long as this notice is preserved.
841
942
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
842
943
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
843
944
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
919
1020
Usually this means the macro was only invoked conditionally.]])
922
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
923
# Free Software Foundation, Inc.
1023
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
1024
# 2010, 2011 Free Software Foundation, Inc.
925
1026
# This file is free software; the Free Software Foundation
926
1027
# gives unlimited permission to copy and/or distribute it,
927
1028
# with or without modifications, as long as this notice is preserved.
931
1032
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
932
1033
# written in clear, in which case automake, when reading aclocal.m4,
1321
1426
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1323
# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
1428
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
1325
1431
# This file is free software; the Free Software Foundation
1326
1432
# gives unlimited permission to copy and/or distribute it,
1327
1433
# with or without modifications, as long as this notice is preserved.
1329
1437
# AM_PROG_INSTALL_SH
1330
1438
# ------------------
1331
1439
# Define $install_sh.
1365
1473
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
1366
1474
# From Jim Meyering
1368
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
1369
# Free Software Foundation, Inc.
1476
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
1477
# 2011 Free Software Foundation, Inc.
1371
1479
# This file is free software; the Free Software Foundation
1372
1480
# gives unlimited permission to copy and/or distribute it,
1386
1494
[disable], [m4_define([am_maintainer_other], [enable])],
1387
1495
[m4_define([am_maintainer_other], [enable])
1388
1496
m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
1389
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
1497
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
1390
1498
dnl maintainer-mode's default is 'disable' unless 'enable' is passed
1391
1499
AC_ARG_ENABLE([maintainer-mode],
1392
1500
[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
1535
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1643
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
1537
1646
# This file is free software; the Free Software Foundation
1538
1647
# gives unlimited permission to copy and/or distribute it,
1539
1648
# with or without modifications, as long as this notice is preserved.
1541
1652
# AM_PROG_MKDIR_P
1542
1653
# ---------------
1543
1654
# Check for `mkdir -p'.
1561
1672
# Helper functions for option handling. -*- Autoconf -*-
1563
# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
1674
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
1565
1677
# This file is free software; the Free Software Foundation
1566
1678
# gives unlimited permission to copy and/or distribute it,
1567
1679
# with or without modifications, as long as this notice is preserved.
1571
1683
# _AM_MANGLE_OPTION(NAME)
1572
1684
# -----------------------
1574
1686
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1576
1688
# _AM_SET_OPTION(NAME)
1577
# ------------------------------
1689
# --------------------
1578
1690
# Set option NAME. Presently that only means defining a flag for this option.
1579
1691
AC_DEFUN([_AM_SET_OPTION],
1580
1692
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1582
1694
# _AM_SET_OPTIONS(OPTIONS)
1583
# ----------------------------------
1695
# ------------------------
1584
1696
# OPTIONS is a space-separated list of Automake options.
1585
1697
AC_DEFUN([_AM_SET_OPTIONS],
1586
1698
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1591
1703
AC_DEFUN([_AM_IF_OPTION],
1592
1704
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1594
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
1706
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
1596
1708
# This file is free software; the Free Software Foundation
1597
1709
# gives unlimited permission to copy and/or distribute it,
1598
1710
# with or without modifications, as long as this notice is preserved.
1600
1714
# AM_RUN_LOG(COMMAND)
1601
1715
# -------------------
1602
1716
# Run COMMAND, save the exit status in ac_status, and log it.
1674
1788
AC_MSG_RESULT(yes)])
1676
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
1790
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
1678
1792
# This file is free software; the Free Software Foundation
1679
1793
# gives unlimited permission to copy and/or distribute it,
1680
1794
# with or without modifications, as long as this notice is preserved.
1682
1798
# AM_PROG_INSTALL_STRIP
1683
1799
# ---------------------
1684
1800
# One issue with vendor `install' (even GNU) is that you can't
1701
1817
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1702
1818
AC_SUBST([INSTALL_STRIP_PROGRAM])])
1704
# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
1820
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
1706
1822
# This file is free software; the Free Software Foundation
1707
1823
# gives unlimited permission to copy and/or distribute it,
1708
1824
# with or without modifications, as long as this notice is preserved.
1712
1828
# _AM_SUBST_NOTMAKE(VARIABLE)
1713
1829
# ---------------------------
1716
1832
AC_DEFUN([_AM_SUBST_NOTMAKE])
1718
1834
# AM_SUBST_NOTMAKE(VARIABLE)
1719
# ---------------------------
1835
# --------------------------
1720
1836
# Public sister of _AM_SUBST_NOTMAKE.
1721
1837
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1723
1839
# Check how to create a tarball. -*- Autoconf -*-
1725
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
1841
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
1727
1843
# This file is free software; the Free Software Foundation
1728
1844
# gives unlimited permission to copy and/or distribute it,
1744
1860
# a tarball read from stdin.
1745
1861
# $(am__untar) < result.tar
1746
1862
AC_DEFUN([_AM_PROG_TAR],
1747
[# Always define AMTAR for backward compatibility.
1748
AM_MISSING_PROG([AMTAR], [tar])
1863
[# Always define AMTAR for backward compatibility. Yes, it's still used
1864
# in the wild :-( We should find a proper way to deprecate it ...
1865
AC_SUBST([AMTAR], ['$${TAR-tar}'])
1749
1866
m4_if([$1], [v7],
1750
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
1867
[am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1751
1868
[m4_case([$1], [ustar],, [pax],,
1752
1869
[m4_fatal([Unknown tar format])])
1753
1870
AC_MSG_CHECKING([how to create a $1 tar archive])