~sil2100/bamf/quantal_0.3.6

« back to all changes in this revision

Viewing changes to aclocal.m4

Tags: upstream-0.2.110
ImportĀ upstreamĀ versionĀ 0.2.110

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.11.3 -*- Autoconf -*-
2
2
 
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
# Inc.
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.
634
635
  fi
635
636
])
636
637
 
 
638
dnl -*- mode: autoconf -*-
 
639
dnl Copyright 2009 Johan Dahlin
 
640
dnl
 
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.
 
644
dnl
 
645
 
 
646
# serial 1
 
647
 
 
648
m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL],
 
649
[
 
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
 
653
 
 
654
    dnl enable/disable introspection
 
655
    m4_if([$2], [require],
 
656
    [dnl
 
657
        enable_introspection=yes
 
658
    ],[dnl
 
659
        AC_ARG_ENABLE(introspection,
 
660
                  AS_HELP_STRING([--enable-introspection[=@<:@no/auto/yes@:>@]],
 
661
                                 [Enable introspection for this build]),, 
 
662
                                 [enable_introspection=auto])
 
663
    ])dnl
 
664
 
 
665
    AC_MSG_CHECKING([for gobject-introspection])
 
666
 
 
667
    dnl presence/version checking
 
668
    AS_CASE([$enable_introspection],
 
669
    [no], [dnl
 
670
        found_introspection="no (disabled, use --enable-introspection to enable)"
 
671
    ],dnl
 
672
    [yes],[dnl
 
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]))
 
678
    ],dnl
 
679
    [auto],[dnl
 
680
        PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, found_introspection=no)
 
681
    ],dnl
 
682
    [dnl        
 
683
        AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@])
 
684
    ])dnl
 
685
 
 
686
    AC_MSG_RESULT([$found_introspection])
 
687
 
 
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
 
702
    fi
 
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)
 
711
 
 
712
    AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes")
 
713
])
 
714
 
 
715
 
 
716
dnl Usage:
 
717
dnl   GOBJECT_INTROSPECTION_CHECK([minimum-g-i-version])
 
718
 
 
719
AC_DEFUN([GOBJECT_INTROSPECTION_CHECK],
 
720
[
 
721
  _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1])
 
722
])
 
723
 
 
724
dnl Usage:
 
725
dnl   GOBJECT_INTROSPECTION_REQUIRE([minimum-g-i-version])
 
726
 
 
727
 
 
728
AC_DEFUN([GOBJECT_INTROSPECTION_REQUIRE],
 
729
[
 
730
  _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require])
 
731
])
 
732
 
637
733
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
638
734
# serial 1 (pkg-config-0.24)
639
735
794
890
fi[]dnl
795
891
])# PKG_CHECK_MODULES
796
892
 
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
 
894
# Foundation, Inc.
798
895
#
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.
802
899
 
 
900
# serial 1
 
901
 
803
902
# AM_AUTOMAKE_VERSION(VERSION)
804
903
# ----------------------------
805
904
# Automake X.Y traces this macro to ensure aclocal.m4 has been
809
908
[am__api_version='1.11'
810
909
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
811
910
dnl require some minimum version.  Point them to the right macro.
812
 
m4_if([$1], [1.11.1], [],
 
911
m4_if([$1], [1.11.3], [],
813
912
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
814
913
])
815
914
 
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]))])
832
931
 
833
932
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
834
933
 
835
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
934
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
836
935
#
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.
840
939
 
 
940
# serial 1
 
941
 
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.]])
920
1021
fi])])
921
1022
 
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.
924
1025
#
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.
928
1029
 
929
 
# serial 10
 
1030
# serial 12
930
1031
 
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,
966
1067
  # instance it was reported that on HP-UX the gcc test will end up
967
1068
  # making a dummy file named `D' -- because `-MD' means `put the output
968
1069
  # in D'.
 
1070
  rm -rf conftest.dir
969
1071
  mkdir conftest.dir
970
1072
  # Copy depcomp to subdir because otherwise we won't find it if we're
971
1073
  # using a relative directory.
1030
1132
        break
1031
1133
      fi
1032
1134
      ;;
1033
 
    msvisualcpp | msvcmsys)
 
1135
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
1034
1136
      # This compiler won't grok `-c -o', but also, the minuso test has
1035
1137
      # not run yet.  These depmodes are late enough in the game, and
1036
1138
      # so weak that their functioning should not be impacted.
1095
1197
if test "x$enable_dependency_tracking" != xno; then
1096
1198
  am_depcomp="$ac_aux_dir/depcomp"
1097
1199
  AMDEPBACKSLASH='\'
 
1200
  am__nodep='_no'
1098
1201
fi
1099
1202
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
1100
1203
AC_SUBST([AMDEPBACKSLASH])dnl
1101
1204
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
1205
AC_SUBST([am__nodep])dnl
 
1206
_AM_SUBST_NOTMAKE([am__nodep])dnl
1102
1207
])
1103
1208
 
1104
1209
# Generate code to set up dependency tracking.              -*- Autoconf -*-
1320
1425
done
1321
1426
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1322
1427
 
1323
 
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
 
1428
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
 
1429
# Inc.
1324
1430
#
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.
1328
1434
 
 
1435
# serial 1
 
1436
 
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
1367
1475
 
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.
1370
1478
#
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
1532
1640
fi
1533
1641
])
1534
1642
 
1535
 
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
1643
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
 
1644
# Inc.
1536
1645
#
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.
1540
1649
 
 
1650
# serial 1
 
1651
 
1541
1652
# AM_PROG_MKDIR_P
1542
1653
# ---------------
1543
1654
# Check for `mkdir -p'.
1560
1671
 
1561
1672
# Helper functions for option handling.                     -*- Autoconf -*-
1562
1673
 
1563
 
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
 
1674
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
 
1675
# Foundation, Inc.
1564
1676
#
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.
1568
1680
 
1569
 
# serial 4
 
1681
# serial 5
1570
1682
 
1571
1683
# _AM_MANGLE_OPTION(NAME)
1572
1684
# -----------------------
1574
1686
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1575
1687
 
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)])
1581
1693
 
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])])
1593
1705
 
1594
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
1706
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
1595
1707
#
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.
1599
1711
 
 
1712
# serial 1
 
1713
 
1600
1714
# AM_RUN_LOG(COMMAND)
1601
1715
# -------------------
1602
1716
# Run COMMAND, save the exit status in ac_status, and log it.
1673
1787
fi
1674
1788
AC_MSG_RESULT(yes)])
1675
1789
 
1676
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
1790
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
1677
1791
#
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.
1681
1795
 
 
1796
# serial 1
 
1797
 
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])])
1703
1819
 
1704
 
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
 
1820
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
1705
1821
#
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.
1709
1825
 
1710
 
# serial 2
 
1826
# serial 3
1711
1827
 
1712
1828
# _AM_SUBST_NOTMAKE(VARIABLE)
1713
1829
# ---------------------------
1716
1832
AC_DEFUN([_AM_SUBST_NOTMAKE])
1717
1833
 
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($@)])
1722
1838
 
1723
1839
# Check how to create a tarball.                            -*- Autoconf -*-
1724
1840
 
1725
 
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
1841
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
1726
1842
#
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])
1816
1933
AC_SUBST([am__untar])
1817
1934
]) # _AM_PROG_TAR
1818
1935
 
1819
 
m4_include([m4/expansions.m4])
1820
1936
m4_include([m4/gtk-doc.m4])
1821
 
m4_include([m4/introspection.m4])
1822
1937
m4_include([m4/libtool.m4])
1823
1938
m4_include([m4/ltoptions.m4])
1824
1939
m4_include([m4/ltsugar.m4])