~ubuntu-branches/ubuntu/wily/almanah/wily

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Angel Abad
  • Date: 2013-12-02 13:21:08 UTC
  • mfrom: (10.1.13 sid)
  • Revision ID: package-import@ubuntu.com-20131202132108-sfv3084bowgmzq09
Tags: 0.11.0-1
* Imported Upstream version 0.11.0
* debian/control: Update Homepage field.
* debian/patches/:
  - encrypt_database: Removed, applied upstream
  - spellchecking_error: Removed, applied upstream
  - desktop_keywords: Removed, applied upstream
* Bump Standards-Version to 3.9.5 (no changes).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.12.2 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.14 -*- 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,
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
13
13
 
 
14
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
14
15
m4_ifndef([AC_AUTOCONF_VERSION],
15
16
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
17
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
1624
1625
  rm -rf conftest*
1625
1626
  ;;
1626
1627
 
1627
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
1628
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1628
1629
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1629
1630
  # Find out which ABI we are using.
1630
1631
  echo 'int i;' > conftest.$ac_ext
1638
1639
          x86_64-*linux*)
1639
1640
            LD="${LD-ld} -m elf_i386"
1640
1641
            ;;
1641
 
          ppc64-*linux*|powerpc64-*linux*)
 
1642
          powerpc64le-*linux*)
 
1643
            LD="${LD-ld} -m elf32lppclinux"
 
1644
            ;;
 
1645
          powerpc64-*linux*)
1642
1646
            LD="${LD-ld} -m elf32ppclinux"
1643
1647
            ;;
1644
1648
          s390x-*linux*)
1657
1661
          x86_64-*linux*)
1658
1662
            LD="${LD-ld} -m elf_x86_64"
1659
1663
            ;;
1660
 
          ppc*-*linux*|powerpc*-*linux*)
 
1664
          powerpcle-*linux*)
 
1665
            LD="${LD-ld} -m elf64lppc"
 
1666
            ;;
 
1667
          powerpc-*linux*)
1661
1668
            LD="${LD-ld} -m elf64ppc"
1662
1669
            ;;
1663
1670
          s390*-*linux*|s390*-*tpf*)
8910
8917
m4_ifndef([_LT_PROG_CXX],               [AC_DEFUN([_LT_PROG_CXX])])
8911
8918
 
8912
8919
# nls.m4 serial 5 (gettext-0.18)
8913
 
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
 
8920
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2013 Free Software Foundation,
8914
8921
dnl Inc.
8915
8922
dnl This file is free software; the Free Software Foundation
8916
8923
dnl gives unlimited permission to copy and/or distribute it,
9142
9149
m4_popdef([pkg_description])
9143
9150
]) dnl PKG_NOARCH_INSTALLDIR
9144
9151
 
9145
 
# Copyright (C) 2002-2012 Free Software Foundation, Inc.
 
9152
 
 
9153
# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
 
9154
# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
9155
# -------------------------------------------
 
9156
# Retrieves the value of the pkg-config variable for the given module.
 
9157
AC_DEFUN([PKG_CHECK_VAR],
 
9158
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
9159
AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
 
9160
 
 
9161
_PKG_CONFIG([$1], [variable="][$3]["], [$2])
 
9162
AS_VAR_COPY([$1], [pkg_cv_][$1])
 
9163
 
 
9164
AS_VAR_IF([$1], [""], [$5], [$4])dnl
 
9165
])# PKG_CHECK_VAR
 
9166
 
 
9167
# Copyright (C) 2002-2013 Free Software Foundation, Inc.
9146
9168
#
9147
9169
# This file is free software; the Free Software Foundation
9148
9170
# gives unlimited permission to copy and/or distribute it,
9149
9171
# with or without modifications, as long as this notice is preserved.
9150
9172
 
9151
 
# serial 8
9152
 
 
9153
9173
# AM_AUTOMAKE_VERSION(VERSION)
9154
9174
# ----------------------------
9155
9175
# Automake X.Y traces this macro to ensure aclocal.m4 has been
9156
9176
# generated from the m4 files accompanying Automake X.Y.
9157
9177
# (This private macro should not be called outside this file.)
9158
9178
AC_DEFUN([AM_AUTOMAKE_VERSION],
9159
 
[am__api_version='1.12'
 
9179
[am__api_version='1.14'
9160
9180
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
9161
9181
dnl require some minimum version.  Point them to the right macro.
9162
 
m4_if([$1], [1.12.2], [],
 
9182
m4_if([$1], [1.14], [],
9163
9183
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
9164
9184
])
9165
9185
 
9175
9195
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
9176
9196
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
9177
9197
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
9178
 
[AM_AUTOMAKE_VERSION([1.12.2])dnl
 
9198
[AM_AUTOMAKE_VERSION([1.14])dnl
9179
9199
m4_ifndef([AC_AUTOCONF_VERSION],
9180
9200
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
9181
9201
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
9182
9202
 
9183
9203
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
9184
9204
 
9185
 
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
9205
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
9186
9206
#
9187
9207
# This file is free software; the Free Software Foundation
9188
9208
# gives unlimited permission to copy and/or distribute it,
9189
9209
# with or without modifications, as long as this notice is preserved.
9190
9210
 
9191
 
# serial 2
9192
 
 
9193
9211
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
9194
9212
# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
9195
9213
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
9237
9255
 
9238
9256
# AM_CONDITIONAL                                            -*- Autoconf -*-
9239
9257
 
9240
 
# Copyright (C) 1997-2012 Free Software Foundation, Inc.
 
9258
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
9241
9259
#
9242
9260
# This file is free software; the Free Software Foundation
9243
9261
# gives unlimited permission to copy and/or distribute it,
9244
9262
# with or without modifications, as long as this notice is preserved.
9245
9263
 
9246
 
# serial 10
9247
 
 
9248
9264
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
9249
9265
# -------------------------------------
9250
9266
# Define a conditional.
9270
9286
Usually this means the macro was only invoked conditionally.]])
9271
9287
fi])])
9272
9288
 
9273
 
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
 
9289
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
9274
9290
#
9275
9291
# This file is free software; the Free Software Foundation
9276
9292
# gives unlimited permission to copy and/or distribute it,
9277
9293
# with or without modifications, as long as this notice is preserved.
9278
9294
 
9279
 
# serial 17
9280
9295
 
9281
9296
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
9282
9297
# written in clear, in which case automake, when reading aclocal.m4,
9462
9477
 
9463
9478
# Generate code to set up dependency tracking.              -*- Autoconf -*-
9464
9479
 
9465
 
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
 
9480
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
9466
9481
#
9467
9482
# This file is free software; the Free Software Foundation
9468
9483
# gives unlimited permission to copy and/or distribute it,
9469
9484
# with or without modifications, as long as this notice is preserved.
9470
9485
 
9471
 
# serial 6
9472
9486
 
9473
9487
# _AM_OUTPUT_DEPENDENCY_COMMANDS
9474
9488
# ------------------------------
9475
9489
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9476
9490
[{
9477
 
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
9491
  # Older Autoconf quotes --file arguments for eval, but not when files
9478
9492
  # are listed without --file.  Let's play safe and only enable the eval
9479
9493
  # if we detect the quoting.
9480
9494
  case $CONFIG_FILES in
9503
9517
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9504
9518
    test -z "$DEPDIR" && continue
9505
9519
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
9506
 
    test -z "am__include" && continue
 
9520
    test -z "$am__include" && continue
9507
9521
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9508
9522
    # Find all dependency output files, they are included files with
9509
9523
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
9539
9553
 
9540
9554
# Do all the work for Automake.                             -*- Autoconf -*-
9541
9555
 
9542
 
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
 
9556
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
9543
9557
#
9544
9558
# This file is free software; the Free Software Foundation
9545
9559
# gives unlimited permission to copy and/or distribute it,
9546
9560
# with or without modifications, as long as this notice is preserved.
9547
9561
 
9548
 
# serial 19
9549
 
 
9550
9562
# This macro actually does too much.  Some checks are only needed if
9551
9563
# your package does certain things.  But this isn't really a big deal.
9552
9564
 
 
9565
dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
 
9566
m4_define([AC_PROG_CC],
 
9567
m4_defn([AC_PROG_CC])
 
9568
[_AM_PROG_CC_C_O
 
9569
])
 
9570
 
9553
9571
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
9554
9572
# AM_INIT_AUTOMAKE([OPTIONS])
9555
9573
# -----------------------------------------------
9562
9580
# arguments mandatory, and then we can depend on a new Autoconf
9563
9581
# release and drop the old call support.
9564
9582
AC_DEFUN([AM_INIT_AUTOMAKE],
9565
 
[AC_PREREQ([2.62])dnl
 
9583
[AC_PREREQ([2.65])dnl
9566
9584
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
9567
9585
dnl the ones we care about.
9568
9586
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9592
9610
dnl Distinguish between old-style and new-style calls.
9593
9611
m4_ifval([$2],
9594
9612
[AC_DIAGNOSE([obsolete],
9595
 
[$0: two- and three-arguments forms are deprecated.  For more info, see:
9596
 
http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_INIT_AUTOMAKE-invocation])
 
9613
             [$0: two- and three-arguments forms are deprecated.])
9597
9614
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9598
9615
 AC_SUBST([PACKAGE], [$1])dnl
9599
9616
 AC_SUBST([VERSION], [$2])],
9647
9664
                  [_AM_DEPENDENCIES([OBJC])],
9648
9665
                  [m4_define([AC_PROG_OBJC],
9649
9666
                             m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
9650
 
dnl Support for Objective C++ was only introduced in Autoconf 2.65,
9651
 
dnl but we still cater to Autoconf 2.62.
9652
 
m4_ifdef([AC_PROG_OBJCXX],
9653
 
[AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
 
9667
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
9654
9668
                  [_AM_DEPENDENCIES([OBJCXX])],
9655
9669
                  [m4_define([AC_PROG_OBJCXX],
9656
 
                             m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])])dnl
 
9670
                             m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
9657
9671
])
9658
 
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
9659
 
dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the
9660
 
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
9661
 
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
9672
AC_REQUIRE([AM_SILENT_RULES])dnl
 
9673
dnl The testsuite driver may need to know about EXEEXT, so add the
 
9674
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
 
9675
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
9662
9676
AC_CONFIG_COMMANDS_PRE(dnl
9663
9677
[m4_provide_if([_AM_COMPILER_EXEEXT],
9664
9678
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
9665
 
])
 
9679
 
 
9680
# POSIX will say in a future version that running "rm -f" with no argument
 
9681
# is OK; and we want to be able to make that assumption in our Makefile
 
9682
# recipes.  So use an aggressive probe to check that the usage we want is
 
9683
# actually supported "in the wild" to an acceptable degree.
 
9684
# See automake bug#10828.
 
9685
# To make any issue more visible, cause the running configure to be aborted
 
9686
# by default if the 'rm' program in use doesn't match our expectations; the
 
9687
# user can still override this though.
 
9688
if rm -f && rm -fr && rm -rf; then : OK; else
 
9689
  cat >&2 <<'END'
 
9690
Oops!
 
9691
 
 
9692
Your 'rm' program seems unable to run without file operands specified
 
9693
on the command line, even when the '-f' option is present.  This is contrary
 
9694
to the behaviour of most rm programs out there, and not conforming with
 
9695
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
 
9696
 
 
9697
Please tell bug-automake@gnu.org about your system, including the value
 
9698
of your $PATH and any error possibly output before this message.  This
 
9699
can help us improve future automake versions.
 
9700
 
 
9701
END
 
9702
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
 
9703
    echo 'Configuration will proceed anyway, since you have set the' >&2
 
9704
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
 
9705
    echo >&2
 
9706
  else
 
9707
    cat >&2 <<'END'
 
9708
Aborting the configuration process, to ensure you take notice of the issue.
 
9709
 
 
9710
You can download and install GNU coreutils to get an 'rm' implementation
 
9711
that behaves properly: <http://www.gnu.org/software/coreutils/>.
 
9712
 
 
9713
If you want to complete the configuration process using your problematic
 
9714
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
 
9715
to "yes", and re-run configure.
 
9716
 
 
9717
END
 
9718
    AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
 
9719
  fi
 
9720
fi])
9666
9721
 
9667
9722
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
9668
9723
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
9670
9725
m4_define([_AC_COMPILER_EXEEXT],
9671
9726
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
9672
9727
 
9673
 
 
9674
9728
# When config.status generates a header, we must update the stamp-h file.
9675
9729
# This file resides in the same directory as the config header
9676
9730
# that is generated.  The stamp files are numbered to have different names.
9692
9746
done
9693
9747
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
9694
9748
 
9695
 
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
9749
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
9696
9750
#
9697
9751
# This file is free software; the Free Software Foundation
9698
9752
# gives unlimited permission to copy and/or distribute it,
9699
9753
# with or without modifications, as long as this notice is preserved.
9700
9754
 
9701
 
# serial 8
9702
 
 
9703
9755
# AM_PROG_INSTALL_SH
9704
9756
# ------------------
9705
9757
# Define $install_sh.
9715
9767
fi
9716
9768
AC_SUBST([install_sh])])
9717
9769
 
9718
 
# Copyright (C) 2003-2012 Free Software Foundation, Inc.
 
9770
# Copyright (C) 2003-2013 Free Software Foundation, Inc.
9719
9771
#
9720
9772
# This file is free software; the Free Software Foundation
9721
9773
# gives unlimited permission to copy and/or distribute it,
9722
9774
# with or without modifications, as long as this notice is preserved.
9723
9775
 
9724
 
# serial 2
9725
 
 
9726
9776
# Check whether the underlying file-system supports filenames
9727
9777
# with a leading dot.  For instance MS-DOS doesn't.
9728
9778
AC_DEFUN([AM_SET_LEADING_DOT],
9738
9788
 
9739
9789
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
9740
9790
 
9741
 
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
9791
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
9742
9792
#
9743
9793
# This file is free software; the Free Software Foundation
9744
9794
# gives unlimited permission to copy and/or distribute it,
9745
9795
# with or without modifications, as long as this notice is preserved.
9746
9796
 
9747
 
# serial 5
9748
 
 
9749
9797
# AM_MAKE_INCLUDE()
9750
9798
# -----------------
9751
9799
# Check to see how make treats includes.
9788
9836
rm -f confinc confmf
9789
9837
])
9790
9838
 
9791
 
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
9792
 
#
9793
 
# This file is free software; the Free Software Foundation
9794
 
# gives unlimited permission to copy and/or distribute it,
9795
 
# with or without modifications, as long as this notice is preserved.
9796
 
 
9797
 
# serial 6
9798
 
 
9799
 
# AM_PROG_CC_C_O
9800
 
# --------------
9801
 
# Like AC_PROG_CC_C_O, but changed for automake.
9802
 
AC_DEFUN([AM_PROG_CC_C_O],
9803
 
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
9804
 
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9805
 
AC_REQUIRE_AUX_FILE([compile])dnl
9806
 
# FIXME: we rely on the cache variable name because
9807
 
# there is no other way.
9808
 
set dummy $CC
9809
 
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
9810
 
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
9811
 
if test "$am_t" != yes; then
9812
 
   # Losing compiler, so override with the script.
9813
 
   # FIXME: It is wrong to rewrite CC.
9814
 
   # But if we don't then we get into trouble of one sort or another.
9815
 
   # A longer-term fix would be to have automake use am__CC in this case,
9816
 
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
9817
 
   CC="$am_aux_dir/compile $CC"
9818
 
fi
9819
 
dnl Make sure AC_PROG_CC is never called again, or it will override our
9820
 
dnl setting of CC.
9821
 
m4_define([AC_PROG_CC],
9822
 
          [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
9823
 
])
9824
 
 
9825
9839
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
9826
9840
 
9827
 
# Copyright (C) 1997-2012 Free Software Foundation, Inc.
 
9841
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
9828
9842
#
9829
9843
# This file is free software; the Free Software Foundation
9830
9844
# gives unlimited permission to copy and/or distribute it,
9831
9845
# with or without modifications, as long as this notice is preserved.
9832
9846
 
9833
 
# serial 7
9834
 
 
9835
9847
# AM_MISSING_PROG(NAME, PROGRAM)
9836
9848
# ------------------------------
9837
9849
AC_DEFUN([AM_MISSING_PROG],
9839
9851
$1=${$1-"${am_missing_run}$2"}
9840
9852
AC_SUBST($1)])
9841
9853
 
9842
 
 
9843
9854
# AM_MISSING_HAS_RUN
9844
9855
# ------------------
9845
 
# Define MISSING if not defined so far and test if it supports --run.
9846
 
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
9856
# Define MISSING if not defined so far and test if it is modern enough.
 
9857
# If it is, set am_missing_run to use it, otherwise, to nothing.
9847
9858
AC_DEFUN([AM_MISSING_HAS_RUN],
9848
9859
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9849
9860
AC_REQUIRE_AUX_FILE([missing])dnl
9856
9867
  esac
9857
9868
fi
9858
9869
# Use eval to expand $SHELL
9859
 
if eval "$MISSING --run true"; then
9860
 
  am_missing_run="$MISSING --run "
 
9870
if eval "$MISSING --is-lightweight"; then
 
9871
  am_missing_run="$MISSING "
9861
9872
else
9862
9873
  am_missing_run=
9863
9874
  AC_MSG_WARN(['missing' script is too old or missing])
9866
9877
 
9867
9878
# Helper functions for option handling.                     -*- Autoconf -*-
9868
9879
 
9869
 
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
9880
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
9870
9881
#
9871
9882
# This file is free software; the Free Software Foundation
9872
9883
# gives unlimited permission to copy and/or distribute it,
9873
9884
# with or without modifications, as long as this notice is preserved.
9874
9885
 
9875
 
# serial 6
9876
 
 
9877
9886
# _AM_MANGLE_OPTION(NAME)
9878
9887
# -----------------------
9879
9888
AC_DEFUN([_AM_MANGLE_OPTION],
9897
9906
AC_DEFUN([_AM_IF_OPTION],
9898
9907
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
9899
9908
 
 
9909
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
 
9910
#
 
9911
# This file is free software; the Free Software Foundation
 
9912
# gives unlimited permission to copy and/or distribute it,
 
9913
# with or without modifications, as long as this notice is preserved.
 
9914
 
 
9915
# _AM_PROG_CC_C_O
 
9916
# ---------------
 
9917
# Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
 
9918
# to automatically call this.
 
9919
AC_DEFUN([_AM_PROG_CC_C_O],
 
9920
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
9921
AC_REQUIRE_AUX_FILE([compile])dnl
 
9922
AC_LANG_PUSH([C])dnl
 
9923
AC_CACHE_CHECK(
 
9924
  [whether $CC understands -c and -o together],
 
9925
  [am_cv_prog_cc_c_o],
 
9926
  [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
 
9927
  # Make sure it works both with $CC and with simple cc.
 
9928
  # Following AC_PROG_CC_C_O, we do the test twice because some
 
9929
  # compilers refuse to overwrite an existing .o file with -o,
 
9930
  # though they will create one.
 
9931
  am_cv_prog_cc_c_o=yes
 
9932
  for am_i in 1 2; do
 
9933
    if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
 
9934
         && test -f conftest2.$ac_objext; then
 
9935
      : OK
 
9936
    else
 
9937
      am_cv_prog_cc_c_o=no
 
9938
      break
 
9939
    fi
 
9940
  done
 
9941
  rm -f core conftest*
 
9942
  unset am_i])
 
9943
if test "$am_cv_prog_cc_c_o" != yes; then
 
9944
   # Losing compiler, so override with the script.
 
9945
   # FIXME: It is wrong to rewrite CC.
 
9946
   # But if we don't then we get into trouble of one sort or another.
 
9947
   # A longer-term fix would be to have automake use am__CC in this case,
 
9948
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
9949
   CC="$am_aux_dir/compile $CC"
 
9950
fi
 
9951
AC_LANG_POP([C])])
 
9952
 
 
9953
# For backward compatibility.
 
9954
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
 
9955
 
 
9956
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
 
9957
#
 
9958
# This file is free software; the Free Software Foundation
 
9959
# gives unlimited permission to copy and/or distribute it,
 
9960
# with or without modifications, as long as this notice is preserved.
 
9961
 
 
9962
# AM_RUN_LOG(COMMAND)
 
9963
# -------------------
 
9964
# Run COMMAND, save the exit status in ac_status, and log it.
 
9965
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
 
9966
AC_DEFUN([AM_RUN_LOG],
 
9967
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
 
9968
   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
 
9969
   ac_status=$?
 
9970
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
9971
   (exit $ac_status); }])
 
9972
 
9900
9973
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
9901
9974
 
9902
 
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
 
9975
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
9903
9976
#
9904
9977
# This file is free software; the Free Software Foundation
9905
9978
# gives unlimited permission to copy and/or distribute it,
9906
9979
# with or without modifications, as long as this notice is preserved.
9907
9980
 
9908
 
# serial 9
9909
 
 
9910
9981
# AM_SANITY_CHECK
9911
9982
# ---------------
9912
9983
AC_DEFUN([AM_SANITY_CHECK],
9982
10053
rm -f conftest.file
9983
10054
])
9984
10055
 
9985
 
# Copyright (C) 2009-2012 Free Software Foundation, Inc.
 
10056
# Copyright (C) 2009-2013 Free Software Foundation, Inc.
9986
10057
#
9987
10058
# This file is free software; the Free Software Foundation
9988
10059
# gives unlimited permission to copy and/or distribute it,
9989
10060
# with or without modifications, as long as this notice is preserved.
9990
10061
 
9991
 
# serial 3
9992
 
 
9993
10062
# AM_SILENT_RULES([DEFAULT])
9994
10063
# --------------------------
9995
10064
# Enable less verbose build rules; with the default set to DEFAULT
10044
10113
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
10045
10114
])
10046
10115
 
10047
 
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
10116
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
10048
10117
#
10049
10118
# This file is free software; the Free Software Foundation
10050
10119
# gives unlimited permission to copy and/or distribute it,
10051
10120
# with or without modifications, as long as this notice is preserved.
10052
10121
 
10053
 
# serial 2
10054
 
 
10055
10122
# AM_PROG_INSTALL_STRIP
10056
10123
# ---------------------
10057
10124
# One issue with vendor 'install' (even GNU) is that you can't
10074
10141
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10075
10142
AC_SUBST([INSTALL_STRIP_PROGRAM])])
10076
10143
 
10077
 
# Copyright (C) 2006-2012 Free Software Foundation, Inc.
 
10144
# Copyright (C) 2006-2013 Free Software Foundation, Inc.
10078
10145
#
10079
10146
# This file is free software; the Free Software Foundation
10080
10147
# gives unlimited permission to copy and/or distribute it,
10081
10148
# with or without modifications, as long as this notice is preserved.
10082
10149
 
10083
 
# serial 3
10084
 
 
10085
10150
# _AM_SUBST_NOTMAKE(VARIABLE)
10086
10151
# ---------------------------
10087
10152
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
10095
10160
 
10096
10161
# Check how to create a tarball.                            -*- Autoconf -*-
10097
10162
 
10098
 
# Copyright (C) 2004-2012 Free Software Foundation, Inc.
 
10163
# Copyright (C) 2004-2013 Free Software Foundation, Inc.
10099
10164
#
10100
10165
# This file is free software; the Free Software Foundation
10101
10166
# gives unlimited permission to copy and/or distribute it,
10102
10167
# with or without modifications, as long as this notice is preserved.
10103
10168
 
10104
 
# serial 3
10105
 
 
10106
10169
# _AM_PROG_TAR(FORMAT)
10107
10170
# --------------------
10108
10171
# Check how to create a tarball in format FORMAT.
10116
10179
# Substitute a variable $(am__untar) that extract such
10117
10180
# a tarball read from stdin.
10118
10181
#     $(am__untar) < result.tar
 
10182
#
10119
10183
AC_DEFUN([_AM_PROG_TAR],
10120
10184
[# Always define AMTAR for backward compatibility.  Yes, it's still used
10121
10185
# in the wild :-(  We should find a proper way to deprecate it ...
10122
10186
AC_SUBST([AMTAR], ['$${TAR-tar}'])
 
10187
 
 
10188
# We'll loop over all known methods to create a tar archive until one works.
 
10189
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
10190
 
10123
10191
m4_if([$1], [v7],
10124
 
     [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
10125
 
     [m4_case([$1], [ustar],, [pax],,
10126
 
              [m4_fatal([Unknown tar format])])
10127
 
AC_MSG_CHECKING([how to create a $1 tar archive])
10128
 
# Loop over all known methods to create a tar archive until one works.
10129
 
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
10130
 
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
10131
 
# Do not fold the above two line into one, because Tru64 sh and
10132
 
# Solaris sh will not grok spaces in the rhs of '-'.
10133
 
for _am_tool in $_am_tools
10134
 
do
10135
 
  case $_am_tool in
10136
 
  gnutar)
10137
 
    for _am_tar in tar gnutar gtar;
10138
 
    do
10139
 
      AM_RUN_LOG([$_am_tar --version]) && break
10140
 
    done
10141
 
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
10142
 
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
10143
 
    am__untar="$_am_tar -xf -"
10144
 
    ;;
10145
 
  plaintar)
10146
 
    # Must skip GNU tar: if it does not support --format= it doesn't create
10147
 
    # ustar tarball either.
10148
 
    (tar --version) >/dev/null 2>&1 && continue
10149
 
    am__tar='tar chf - "$$tardir"'
10150
 
    am__tar_='tar chf - "$tardir"'
10151
 
    am__untar='tar xf -'
10152
 
    ;;
10153
 
  pax)
10154
 
    am__tar='pax -L -x $1 -w "$$tardir"'
10155
 
    am__tar_='pax -L -x $1 -w "$tardir"'
10156
 
    am__untar='pax -r'
10157
 
    ;;
10158
 
  cpio)
10159
 
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
10160
 
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
10161
 
    am__untar='cpio -i -H $1 -d'
10162
 
    ;;
10163
 
  none)
10164
 
    am__tar=false
10165
 
    am__tar_=false
10166
 
    am__untar=false
10167
 
    ;;
10168
 
  esac
10169
 
 
10170
 
  # If the value was cached, stop now.  We just wanted to have am__tar
10171
 
  # and am__untar set.
10172
 
  test -n "${am_cv_prog_tar_$1}" && break
10173
 
 
10174
 
  # tar/untar a dummy directory, and stop if the command works
10175
 
  rm -rf conftest.dir
10176
 
  mkdir conftest.dir
10177
 
  echo GrepMe > conftest.dir/file
10178
 
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
10179
 
  rm -rf conftest.dir
10180
 
  if test -s conftest.tar; then
10181
 
    AM_RUN_LOG([$am__untar <conftest.tar])
10182
 
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
10183
 
  fi
10184
 
done
10185
 
rm -rf conftest.dir
10186
 
 
10187
 
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
10188
 
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
10192
  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
 
10193
 
 
10194
  [m4_case([$1],
 
10195
    [ustar],
 
10196
     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
 
10197
      # There is notably a 21 bits limit for the UID and the GID.  In fact,
 
10198
      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
 
10199
      # and bug#13588).
 
10200
      am_max_uid=2097151 # 2^21 - 1
 
10201
      am_max_gid=$am_max_uid
 
10202
      # The $UID and $GID variables are not portable, so we need to resort
 
10203
      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
 
10204
      # below are definitely unexpected, so allow the users to see them
 
10205
      # (that is, avoid stderr redirection).
 
10206
      am_uid=`id -u || echo unknown`
 
10207
      am_gid=`id -g || echo unknown`
 
10208
      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
 
10209
      if test $am_uid -le $am_max_uid; then
 
10210
         AC_MSG_RESULT([yes])
 
10211
      else
 
10212
         AC_MSG_RESULT([no])
 
10213
         _am_tools=none
 
10214
      fi
 
10215
      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
 
10216
      if test $am_gid -le $am_max_gid; then
 
10217
         AC_MSG_RESULT([yes])
 
10218
      else
 
10219
        AC_MSG_RESULT([no])
 
10220
        _am_tools=none
 
10221
      fi],
 
10222
 
 
10223
  [pax],
 
10224
    [],
 
10225
 
 
10226
  [m4_fatal([Unknown tar format])])
 
10227
 
 
10228
  AC_MSG_CHECKING([how to create a $1 tar archive])
 
10229
 
 
10230
  # Go ahead even if we have the value already cached.  We do so because we
 
10231
  # need to set the values for the 'am__tar' and 'am__untar' variables.
 
10232
  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
10233
 
 
10234
  for _am_tool in $_am_tools; do
 
10235
    case $_am_tool in
 
10236
    gnutar)
 
10237
      for _am_tar in tar gnutar gtar; do
 
10238
        AM_RUN_LOG([$_am_tar --version]) && break
 
10239
      done
 
10240
      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
10241
      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
10242
      am__untar="$_am_tar -xf -"
 
10243
      ;;
 
10244
    plaintar)
 
10245
      # Must skip GNU tar: if it does not support --format= it doesn't create
 
10246
      # ustar tarball either.
 
10247
      (tar --version) >/dev/null 2>&1 && continue
 
10248
      am__tar='tar chf - "$$tardir"'
 
10249
      am__tar_='tar chf - "$tardir"'
 
10250
      am__untar='tar xf -'
 
10251
      ;;
 
10252
    pax)
 
10253
      am__tar='pax -L -x $1 -w "$$tardir"'
 
10254
      am__tar_='pax -L -x $1 -w "$tardir"'
 
10255
      am__untar='pax -r'
 
10256
      ;;
 
10257
    cpio)
 
10258
      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
10259
      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
10260
      am__untar='cpio -i -H $1 -d'
 
10261
      ;;
 
10262
    none)
 
10263
      am__tar=false
 
10264
      am__tar_=false
 
10265
      am__untar=false
 
10266
      ;;
 
10267
    esac
 
10268
 
 
10269
    # If the value was cached, stop now.  We just wanted to have am__tar
 
10270
    # and am__untar set.
 
10271
    test -n "${am_cv_prog_tar_$1}" && break
 
10272
 
 
10273
    # tar/untar a dummy directory, and stop if the command works.
 
10274
    rm -rf conftest.dir
 
10275
    mkdir conftest.dir
 
10276
    echo GrepMe > conftest.dir/file
 
10277
    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
10278
    rm -rf conftest.dir
 
10279
    if test -s conftest.tar; then
 
10280
      AM_RUN_LOG([$am__untar <conftest.tar])
 
10281
      AM_RUN_LOG([cat conftest.dir/file])
 
10282
      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
10283
    fi
 
10284
  done
 
10285
  rm -rf conftest.dir
 
10286
 
 
10287
  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
10288
  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
10289
 
10189
10290
AC_SUBST([am__tar])
10190
10291
AC_SUBST([am__untar])
10191
10292
]) # _AM_PROG_TAR