~ubuntu-branches/ubuntu/utopic/inkscape/utopic-proposed

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Alex Valavanis
  • Date: 2014-08-19 19:10:32 UTC
  • mfrom: (1.6.5) (2.5.14 sid)
  • Revision ID: package-import@ubuntu.com-20140819191032-2eca1qihaszjk9i6
Tags: 0.48.5-2ubuntu1
* Merge with Debian Unstable (LP: #1358863). Fixes several Ubuntu bugs:
  - Illustrator CS SVG won't load: namespace URIs in entities (LP: #166371)
  - inkscape crashed with SIGSEGV in
    sp_dtw_color_profile_event() (LP: #966441)
  - inkscape crashed with SIGSEGV (LP: #1051017)
  - inkscape crashed with SIGSEGV in Inkscape::Preferences::_getNode()
    (LP: #1163241)
  - save a copy reverts to save as (LP: #529843)
  - Extension to braille not working on Xubuntu 12.10 (LP: #1090865)
* Remaining changes:
  - debian/control:
    + Set Ubuntu Developer as maintainer,
    + build-depend on dh-translation to handle Ubuntu translation,
    + demote pstoedit from Recommends to Suggests (because it's in universe),
  - debian/patches/0006_add_unity_quicklist_support.patch: add.
  - debian/patches/series: update.
  - debian/rules:
    + add dh_translation to handle Ubuntu translation
* Drop debian/patches/librevenge.patch (superseded by
    debian/patches/0006-Update_to_new_libwpg.patch)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.11.6 -*- Autoconf -*-
2
 
 
3
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
5
 
# Inc.
 
1
# generated automatically by aclocal 1.14.1 -*- Autoconf -*-
 
2
 
 
3
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
 
4
 
6
5
# This file is free software; the Free Software Foundation
7
6
# gives unlimited permission to copy and/or distribute it,
8
7
# with or without modifications, as long as this notice is preserved.
12
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13
12
# PARTICULAR PURPOSE.
14
13
 
 
14
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
15
15
m4_ifndef([AC_AUTOCONF_VERSION],
16
16
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17
17
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
18
18
[m4_warning([this file was generated for autoconf 2.69.
19
19
You have another version of autoconf.  It may work, but is not guaranteed to.
20
20
If you have problems, you may need to regenerate the build system entirely.
21
 
To do so, use the procedure documented by the package, typically `autoreconf'.])])
 
21
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
22
22
 
23
23
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
24
24
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
337
337
dnl
338
338
glib_DEFUN([GLIB_GNU_GETTEXT],
339
339
  [AC_REQUIRE([AC_PROG_CC])dnl
340
 
   AC_REQUIRE([AC_HEADER_STDC])dnl
341
340
   
342
341
   GLIB_LC_MESSAGES
343
342
   GLIB_WITH_NLS
673
672
 
674
673
 
675
674
# nls.m4 serial 5 (gettext-0.18)
676
 
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
 
675
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2013 Free Software Foundation,
677
676
dnl Inc.
678
677
dnl This file is free software; the Free Software Foundation
679
678
dnl gives unlimited permission to copy and/or distribute it,
865
864
fi[]dnl
866
865
])# PKG_CHECK_MODULES
867
866
 
868
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
869
 
# Foundation, Inc.
 
867
# Copyright (C) 2002-2013 Free Software Foundation, Inc.
870
868
#
871
869
# This file is free software; the Free Software Foundation
872
870
# gives unlimited permission to copy and/or distribute it,
873
871
# with or without modifications, as long as this notice is preserved.
874
872
 
875
 
# serial 1
876
 
 
877
873
# AM_AUTOMAKE_VERSION(VERSION)
878
874
# ----------------------------
879
875
# Automake X.Y traces this macro to ensure aclocal.m4 has been
880
876
# generated from the m4 files accompanying Automake X.Y.
881
877
# (This private macro should not be called outside this file.)
882
878
AC_DEFUN([AM_AUTOMAKE_VERSION],
883
 
[am__api_version='1.11'
 
879
[am__api_version='1.14'
884
880
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
885
881
dnl require some minimum version.  Point them to the right macro.
886
 
m4_if([$1], [1.11.6], [],
 
882
m4_if([$1], [1.14.1], [],
887
883
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
888
884
])
889
885
 
899
895
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
900
896
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
901
897
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
902
 
[AM_AUTOMAKE_VERSION([1.11.6])dnl
 
898
[AM_AUTOMAKE_VERSION([1.14.1])dnl
903
899
m4_ifndef([AC_AUTOCONF_VERSION],
904
900
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
905
901
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
906
902
 
907
903
# Figure out how to run the assembler.                      -*- Autoconf -*-
908
904
 
909
 
# Copyright (C) 2001, 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
905
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
910
906
#
911
907
# This file is free software; the Free Software Foundation
912
908
# gives unlimited permission to copy and/or distribute it,
913
909
# with or without modifications, as long as this notice is preserved.
914
910
 
915
 
# serial 5
916
 
 
917
911
# AM_PROG_AS
918
912
# ----------
919
913
AC_DEFUN([AM_PROG_AS],
928
922
 
929
923
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
930
924
 
931
 
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
 
925
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
932
926
#
933
927
# This file is free software; the Free Software Foundation
934
928
# gives unlimited permission to copy and/or distribute it,
935
929
# with or without modifications, as long as this notice is preserved.
936
930
 
937
 
# serial 1
938
 
 
939
931
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
940
 
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
941
 
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
 
932
# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
 
933
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
942
934
#
943
935
# Of course, Automake must honor this variable whenever it calls a
944
936
# tool from the auxiliary directory.  The problem is that $srcdir (and
957
949
#
958
950
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
959
951
# are both prefixed by $srcdir.  In an in-source build this is usually
960
 
# harmless because $srcdir is `.', but things will broke when you
 
952
# harmless because $srcdir is '.', but things will broke when you
961
953
# start a VPATH build or use an absolute $srcdir.
962
954
#
963
955
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
981
973
am_aux_dir=`cd $ac_aux_dir && pwd`
982
974
])
983
975
 
984
 
 
985
 
# Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2005
986
 
# Free Software Foundation, Inc.
987
 
#
988
 
# This file is free software; the Free Software Foundation
989
 
# gives unlimited permission to copy and/or distribute it,
990
 
# with or without modifications, as long as this notice is preserved.
991
 
 
992
 
# serial 4
993
 
 
994
 
# This was merged into AC_PROG_CC in Autoconf.
995
 
 
996
 
AU_DEFUN([AM_PROG_CC_STDC],
997
 
[AC_PROG_CC
998
 
AC_DIAGNOSE([obsolete], [$0:
999
 
        your code should no longer depend upon `am_cv_prog_cc_stdc', but upon
1000
 
        `ac_cv_prog_cc_stdc'.  Remove this warning and the assignment when
1001
 
        you adjust the code.  You can also remove the above call to
1002
 
        AC_PROG_CC if you already called it elsewhere.])
1003
 
am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
1004
 
])
1005
 
AU_DEFUN([fp_PROG_CC_STDC])
1006
 
 
1007
976
# AM_CONDITIONAL                                            -*- Autoconf -*-
1008
977
 
1009
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
1010
 
# Free Software Foundation, Inc.
 
978
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
1011
979
#
1012
980
# This file is free software; the Free Software Foundation
1013
981
# gives unlimited permission to copy and/or distribute it,
1014
982
# with or without modifications, as long as this notice is preserved.
1015
983
 
1016
 
# serial 9
1017
 
 
1018
984
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
1019
985
# -------------------------------------
1020
986
# Define a conditional.
1021
987
AC_DEFUN([AM_CONDITIONAL],
1022
 
[AC_PREREQ(2.52)dnl
1023
 
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
1024
 
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
988
[AC_PREREQ([2.52])dnl
 
989
 m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
990
       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
1025
991
AC_SUBST([$1_TRUE])dnl
1026
992
AC_SUBST([$1_FALSE])dnl
1027
993
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
1040
1006
Usually this means the macro was only invoked conditionally.]])
1041
1007
fi])])
1042
1008
 
1043
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
1044
 
# 2010, 2011 Free Software Foundation, Inc.
 
1009
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
1045
1010
#
1046
1011
# This file is free software; the Free Software Foundation
1047
1012
# gives unlimited permission to copy and/or distribute it,
1048
1013
# with or without modifications, as long as this notice is preserved.
1049
1014
 
1050
 
# serial 12
1051
1015
 
1052
 
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
 
1016
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
1053
1017
# written in clear, in which case automake, when reading aclocal.m4,
1054
1018
# will think it sees a *use*, and therefore will trigger all it's
1055
1019
# C support machinery.  Also note that it means that autoscan, seeing
1059
1023
# _AM_DEPENDENCIES(NAME)
1060
1024
# ----------------------
1061
1025
# See how the compiler implements dependency checking.
1062
 
# NAME is "CC", "CXX", "GCJ", or "OBJC".
 
1026
# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
1063
1027
# We try a few techniques and use that to set a single cache variable.
1064
1028
#
1065
1029
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
1072
1036
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
1073
1037
AC_REQUIRE([AM_DEP_TRACK])dnl
1074
1038
 
1075
 
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
1076
 
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
1077
 
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
1078
 
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
1079
 
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
1080
 
                   [depcc="$$1"   am_compiler_list=])
 
1039
m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
 
1040
      [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
 
1041
      [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
1042
      [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
 
1043
      [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
 
1044
      [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
 
1045
                    [depcc="$$1"   am_compiler_list=])
1081
1046
 
1082
1047
AC_CACHE_CHECK([dependency style of $depcc],
1083
1048
               [am_cv_$1_dependencies_compiler_type],
1085
1050
  # We make a subdir and do the tests there.  Otherwise we can end up
1086
1051
  # making bogus files that we don't know about and never remove.  For
1087
1052
  # instance it was reported that on HP-UX the gcc test will end up
1088
 
  # making a dummy file named `D' -- because `-MD' means `put the output
1089
 
  # in D'.
 
1053
  # making a dummy file named 'D' -- because '-MD' means "put the output
 
1054
  # in D".
1090
1055
  rm -rf conftest.dir
1091
1056
  mkdir conftest.dir
1092
1057
  # Copy depcomp to subdir because otherwise we won't find it if we're
1126
1091
    : > sub/conftest.c
1127
1092
    for i in 1 2 3 4 5 6; do
1128
1093
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
1129
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1130
 
      # Solaris 8's {/usr,}/bin/sh.
1131
 
      touch sub/conftst$i.h
 
1094
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 
1095
      # Solaris 10 /bin/sh.
 
1096
      echo '/* dummy */' > sub/conftst$i.h
1132
1097
    done
1133
1098
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1134
1099
 
1135
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
1100
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
1136
1101
    # mode.  It turns out that the SunPro C++ compiler does not properly
1137
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
1138
 
    # versions had trouble with output in subdirs
 
1102
    # handle '-M -o', and we need to detect this.  Also, some Intel
 
1103
    # versions had trouble with output in subdirs.
1139
1104
    am__obj=sub/conftest.${OBJEXT-o}
1140
1105
    am__minus_obj="-o $am__obj"
1141
1106
    case $depmode in
1144
1109
      test "$am__universal" = false || continue
1145
1110
      ;;
1146
1111
    nosideeffect)
1147
 
      # after this tag, mechanisms are not by side-effect, so they'll
1148
 
      # only be used when explicitly requested
 
1112
      # After this tag, mechanisms are not by side-effect, so they'll
 
1113
      # only be used when explicitly requested.
1149
1114
      if test "x$enable_dependency_tracking" = xyes; then
1150
1115
        continue
1151
1116
      else
1153
1118
      fi
1154
1119
      ;;
1155
1120
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
1156
 
      # This compiler won't grok `-c -o', but also, the minuso test has
 
1121
      # This compiler won't grok '-c -o', but also, the minuso test has
1157
1122
      # not run yet.  These depmodes are late enough in the game, and
1158
1123
      # so weak that their functioning should not be impacted.
1159
1124
      am__obj=conftest.${OBJEXT-o}
1201
1166
# AM_SET_DEPDIR
1202
1167
# -------------
1203
1168
# Choose a directory name for dependency files.
1204
 
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
 
1169
# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
1205
1170
AC_DEFUN([AM_SET_DEPDIR],
1206
1171
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1207
1172
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
1211
1176
# AM_DEP_TRACK
1212
1177
# ------------
1213
1178
AC_DEFUN([AM_DEP_TRACK],
1214
 
[AC_ARG_ENABLE(dependency-tracking,
1215
 
[  --disable-dependency-tracking  speeds up one-time build
1216
 
  --enable-dependency-tracking   do not reject slow dependency extractors])
 
1179
[AC_ARG_ENABLE([dependency-tracking], [dnl
 
1180
AS_HELP_STRING(
 
1181
  [--enable-dependency-tracking],
 
1182
  [do not reject slow dependency extractors])
 
1183
AS_HELP_STRING(
 
1184
  [--disable-dependency-tracking],
 
1185
  [speeds up one-time build])])
1217
1186
if test "x$enable_dependency_tracking" != xno; then
1218
1187
  am_depcomp="$ac_aux_dir/depcomp"
1219
1188
  AMDEPBACKSLASH='\'
1228
1197
 
1229
1198
# Generate code to set up dependency tracking.              -*- Autoconf -*-
1230
1199
 
1231
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
1232
 
# Free Software Foundation, Inc.
 
1200
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
1233
1201
#
1234
1202
# This file is free software; the Free Software Foundation
1235
1203
# gives unlimited permission to copy and/or distribute it,
1236
1204
# with or without modifications, as long as this notice is preserved.
1237
1205
 
1238
 
#serial 5
1239
1206
 
1240
1207
# _AM_OUTPUT_DEPENDENCY_COMMANDS
1241
1208
# ------------------------------
1242
1209
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
1243
1210
[{
1244
 
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
1211
  # Older Autoconf quotes --file arguments for eval, but not when files
1245
1212
  # are listed without --file.  Let's play safe and only enable the eval
1246
1213
  # if we detect the quoting.
1247
1214
  case $CONFIG_FILES in
1254
1221
    # Strip MF so we end up with the name of the file.
1255
1222
    mf=`echo "$mf" | sed -e 's/:.*$//'`
1256
1223
    # Check whether this is an Automake generated Makefile or not.
1257
 
    # We used to match only the files named `Makefile.in', but
 
1224
    # We used to match only the files named 'Makefile.in', but
1258
1225
    # some people rename them; so instead we look at the file content.
1259
1226
    # Grep'ing the first line is not enough: some people post-process
1260
1227
    # each Makefile.in and add a new line on top of each file to say so.
1266
1233
      continue
1267
1234
    fi
1268
1235
    # Extract the definition of DEPDIR, am__include, and am__quote
1269
 
    # from the Makefile without running `make'.
 
1236
    # from the Makefile without running 'make'.
1270
1237
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1271
1238
    test -z "$DEPDIR" && continue
1272
1239
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
1273
 
    test -z "am__include" && continue
 
1240
    test -z "$am__include" && continue
1274
1241
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1275
 
    # When using ansi2knr, U may be empty or an underscore; expand it
1276
 
    U=`sed -n 's/^U = //p' < "$mf"`
1277
1242
    # Find all dependency output files, they are included files with
1278
1243
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
1279
1244
    # simplest approach to changing $(DEPDIR) to its actual value in the
1280
1245
    # expansion.
1281
1246
    for file in `sed -n "
1282
1247
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1283
 
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
1248
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
1284
1249
      # Make sure the directory exists.
1285
1250
      test -f "$dirpart/$file" && continue
1286
1251
      fdir=`AS_DIRNAME(["$file"])`
1298
1263
# This macro should only be invoked once -- use via AC_REQUIRE.
1299
1264
#
1300
1265
# This code is only required when automatic dependency tracking
1301
 
# is enabled.  FIXME.  This creates each `.P' file that we will
 
1266
# is enabled.  FIXME.  This creates each '.P' file that we will
1302
1267
# need in order to bootstrap the dependency handling code.
1303
1268
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
1304
1269
[AC_CONFIG_COMMANDS([depfiles],
1306
1271
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
1307
1272
])
1308
1273
 
1309
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
1310
 
# Free Software Foundation, Inc.
1311
 
#
1312
 
# This file is free software; the Free Software Foundation
1313
 
# gives unlimited permission to copy and/or distribute it,
1314
 
# with or without modifications, as long as this notice is preserved.
1315
 
 
1316
 
# serial 8
1317
 
 
1318
 
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
1319
 
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
1320
 
 
1321
1274
# Do all the work for Automake.                             -*- Autoconf -*-
1322
1275
 
1323
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
1324
 
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
 
1276
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
1325
1277
#
1326
1278
# This file is free software; the Free Software Foundation
1327
1279
# gives unlimited permission to copy and/or distribute it,
1328
1280
# with or without modifications, as long as this notice is preserved.
1329
1281
 
1330
 
# serial 16
1331
 
 
1332
1282
# This macro actually does too much.  Some checks are only needed if
1333
1283
# your package does certain things.  But this isn't really a big deal.
1334
1284
 
 
1285
dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
 
1286
m4_define([AC_PROG_CC],
 
1287
m4_defn([AC_PROG_CC])
 
1288
[_AM_PROG_CC_C_O
 
1289
])
 
1290
 
1335
1291
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
1336
1292
# AM_INIT_AUTOMAKE([OPTIONS])
1337
1293
# -----------------------------------------------
1344
1300
# arguments mandatory, and then we can depend on a new Autoconf
1345
1301
# release and drop the old call support.
1346
1302
AC_DEFUN([AM_INIT_AUTOMAKE],
1347
 
[AC_PREREQ([2.62])dnl
 
1303
[AC_PREREQ([2.65])dnl
1348
1304
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
1349
1305
dnl the ones we care about.
1350
1306
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1373
1329
# Define the identity of the package.
1374
1330
dnl Distinguish between old-style and new-style calls.
1375
1331
m4_ifval([$2],
1376
 
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
1332
[AC_DIAGNOSE([obsolete],
 
1333
             [$0: two- and three-arguments forms are deprecated.])
 
1334
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1377
1335
 AC_SUBST([PACKAGE], [$1])dnl
1378
1336
 AC_SUBST([VERSION], [$2])],
1379
1337
[_AM_SET_OPTIONS([$1])dnl
1380
1338
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
1381
 
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
1339
m4_if(
 
1340
  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
 
1341
  [ok:ok],,
1382
1342
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
1383
1343
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1384
1344
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1385
1345
 
1386
1346
_AM_IF_OPTION([no-define],,
1387
 
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
1388
 
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 
1347
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
 
1348
 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
1389
1349
 
1390
1350
# Some tools Automake needs.
1391
1351
AC_REQUIRE([AM_SANITY_CHECK])dnl
1392
1352
AC_REQUIRE([AC_ARG_PROGRAM])dnl
1393
 
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
1394
 
AM_MISSING_PROG(AUTOCONF, autoconf)
1395
 
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
1396
 
AM_MISSING_PROG(AUTOHEADER, autoheader)
1397
 
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
1353
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
 
1354
AM_MISSING_PROG([AUTOCONF], [autoconf])
 
1355
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
 
1356
AM_MISSING_PROG([AUTOHEADER], [autoheader])
 
1357
AM_MISSING_PROG([MAKEINFO], [makeinfo])
1398
1358
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1399
1359
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
1400
 
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
 
1360
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
1361
# For better backward compatibility.  To be removed once Automake 1.9.x
 
1362
# dies out for good.  For more background, see:
 
1363
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
 
1364
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
 
1365
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
1401
1366
# We need awk for the "check" target.  The system "awk" is bad on
1402
1367
# some platforms.
1403
1368
AC_REQUIRE([AC_PROG_AWK])dnl
1408
1373
                             [_AM_PROG_TAR([v7])])])
1409
1374
_AM_IF_OPTION([no-dependencies],,
1410
1375
[AC_PROVIDE_IFELSE([AC_PROG_CC],
1411
 
                  [_AM_DEPENDENCIES(CC)],
1412
 
                  [define([AC_PROG_CC],
1413
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
1376
                  [_AM_DEPENDENCIES([CC])],
 
1377
                  [m4_define([AC_PROG_CC],
 
1378
                             m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
1414
1379
AC_PROVIDE_IFELSE([AC_PROG_CXX],
1415
 
                  [_AM_DEPENDENCIES(CXX)],
1416
 
                  [define([AC_PROG_CXX],
1417
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
1380
                  [_AM_DEPENDENCIES([CXX])],
 
1381
                  [m4_define([AC_PROG_CXX],
 
1382
                             m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
1418
1383
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
1419
 
                  [_AM_DEPENDENCIES(OBJC)],
1420
 
                  [define([AC_PROG_OBJC],
1421
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
1384
                  [_AM_DEPENDENCIES([OBJC])],
 
1385
                  [m4_define([AC_PROG_OBJC],
 
1386
                             m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
 
1387
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
 
1388
                  [_AM_DEPENDENCIES([OBJCXX])],
 
1389
                  [m4_define([AC_PROG_OBJCXX],
 
1390
                             m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
1422
1391
])
1423
 
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
1424
 
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
1425
 
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
1426
 
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
1392
AC_REQUIRE([AM_SILENT_RULES])dnl
 
1393
dnl The testsuite driver may need to know about EXEEXT, so add the
 
1394
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
 
1395
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
1427
1396
AC_CONFIG_COMMANDS_PRE(dnl
1428
1397
[m4_provide_if([_AM_COMPILER_EXEEXT],
1429
1398
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
1430
 
])
1431
 
 
1432
 
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
1399
 
 
1400
# POSIX will say in a future version that running "rm -f" with no argument
 
1401
# is OK; and we want to be able to make that assumption in our Makefile
 
1402
# recipes.  So use an aggressive probe to check that the usage we want is
 
1403
# actually supported "in the wild" to an acceptable degree.
 
1404
# See automake bug#10828.
 
1405
# To make any issue more visible, cause the running configure to be aborted
 
1406
# by default if the 'rm' program in use doesn't match our expectations; the
 
1407
# user can still override this though.
 
1408
if rm -f && rm -fr && rm -rf; then : OK; else
 
1409
  cat >&2 <<'END'
 
1410
Oops!
 
1411
 
 
1412
Your 'rm' program seems unable to run without file operands specified
 
1413
on the command line, even when the '-f' option is present.  This is contrary
 
1414
to the behaviour of most rm programs out there, and not conforming with
 
1415
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
 
1416
 
 
1417
Please tell bug-automake@gnu.org about your system, including the value
 
1418
of your $PATH and any error possibly output before this message.  This
 
1419
can help us improve future automake versions.
 
1420
 
 
1421
END
 
1422
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
 
1423
    echo 'Configuration will proceed anyway, since you have set the' >&2
 
1424
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
 
1425
    echo >&2
 
1426
  else
 
1427
    cat >&2 <<'END'
 
1428
Aborting the configuration process, to ensure you take notice of the issue.
 
1429
 
 
1430
You can download and install GNU coreutils to get an 'rm' implementation
 
1431
that behaves properly: <http://www.gnu.org/software/coreutils/>.
 
1432
 
 
1433
If you want to complete the configuration process using your problematic
 
1434
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
 
1435
to "yes", and re-run configure.
 
1436
 
 
1437
END
 
1438
    AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
 
1439
  fi
 
1440
fi])
 
1441
 
 
1442
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
1433
1443
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
1434
1444
dnl mangled by Autoconf and run in a shell conditional statement.
1435
1445
m4_define([_AC_COMPILER_EXEEXT],
1436
1446
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
1437
1447
 
1438
 
 
1439
1448
# When config.status generates a header, we must update the stamp-h file.
1440
1449
# This file resides in the same directory as the config header
1441
1450
# that is generated.  The stamp files are numbered to have different names.
1457
1466
done
1458
1467
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1459
1468
 
1460
 
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
1461
 
# Inc.
 
1469
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1462
1470
#
1463
1471
# This file is free software; the Free Software Foundation
1464
1472
# gives unlimited permission to copy and/or distribute it,
1465
1473
# with or without modifications, as long as this notice is preserved.
1466
1474
 
1467
 
# serial 1
1468
 
 
1469
1475
# AM_PROG_INSTALL_SH
1470
1476
# ------------------
1471
1477
# Define $install_sh.
1479
1485
    install_sh="\${SHELL} $am_aux_dir/install-sh"
1480
1486
  esac
1481
1487
fi
1482
 
AC_SUBST(install_sh)])
 
1488
AC_SUBST([install_sh])])
1483
1489
 
1484
 
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
1490
# Copyright (C) 2003-2013 Free Software Foundation, Inc.
1485
1491
#
1486
1492
# This file is free software; the Free Software Foundation
1487
1493
# gives unlimited permission to copy and/or distribute it,
1488
1494
# with or without modifications, as long as this notice is preserved.
1489
1495
 
1490
 
# serial 2
1491
 
 
1492
1496
# Check whether the underlying file-system supports filenames
1493
1497
# with a leading dot.  For instance MS-DOS doesn't.
1494
1498
AC_DEFUN([AM_SET_LEADING_DOT],
1504
1508
 
1505
1509
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
1506
1510
 
1507
 
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
 
1511
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1508
1512
#
1509
1513
# This file is free software; the Free Software Foundation
1510
1514
# gives unlimited permission to copy and/or distribute it,
1511
1515
# with or without modifications, as long as this notice is preserved.
1512
1516
 
1513
 
# serial 4
1514
 
 
1515
1517
# AM_MAKE_INCLUDE()
1516
1518
# -----------------
1517
1519
# Check to see how make treats includes.
1529
1531
_am_result=none
1530
1532
# First try GNU make style include.
1531
1533
echo "include confinc" > confmf
1532
 
# Ignore all kinds of additional output from `make'.
 
1534
# Ignore all kinds of additional output from 'make'.
1533
1535
case `$am_make -s -f confmf 2> /dev/null` in #(
1534
1536
*the\ am__doit\ target*)
1535
1537
  am__include=include
1554
1556
rm -f confinc confmf
1555
1557
])
1556
1558
 
1557
 
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
1558
 
# Free Software Foundation, Inc.
1559
 
#
1560
 
# This file is free software; the Free Software Foundation
1561
 
# gives unlimited permission to copy and/or distribute it,
1562
 
# with or without modifications, as long as this notice is preserved.
1563
 
 
1564
 
# serial 6
1565
 
 
1566
 
# AM_PROG_CC_C_O
1567
 
# --------------
1568
 
# Like AC_PROG_CC_C_O, but changed for automake.
1569
 
AC_DEFUN([AM_PROG_CC_C_O],
1570
 
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
1571
 
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1572
 
AC_REQUIRE_AUX_FILE([compile])dnl
1573
 
# FIXME: we rely on the cache variable name because
1574
 
# there is no other way.
1575
 
set dummy $CC
1576
 
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
1577
 
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
1578
 
if test "$am_t" != yes; then
1579
 
   # Losing compiler, so override with the script.
1580
 
   # FIXME: It is wrong to rewrite CC.
1581
 
   # But if we don't then we get into trouble of one sort or another.
1582
 
   # A longer-term fix would be to have automake use am__CC in this case,
1583
 
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1584
 
   CC="$am_aux_dir/compile $CC"
1585
 
fi
1586
 
dnl Make sure AC_PROG_CC is never called again, or it will override our
1587
 
dnl setting of CC.
1588
 
m4_define([AC_PROG_CC],
1589
 
          [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
1590
 
])
1591
 
 
1592
1559
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
1593
1560
 
1594
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
1595
 
# Free Software Foundation, Inc.
 
1561
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
1596
1562
#
1597
1563
# This file is free software; the Free Software Foundation
1598
1564
# gives unlimited permission to copy and/or distribute it,
1599
1565
# with or without modifications, as long as this notice is preserved.
1600
1566
 
1601
 
# serial 6
1602
 
 
1603
1567
# AM_MISSING_PROG(NAME, PROGRAM)
1604
1568
# ------------------------------
1605
1569
AC_DEFUN([AM_MISSING_PROG],
1607
1571
$1=${$1-"${am_missing_run}$2"}
1608
1572
AC_SUBST($1)])
1609
1573
 
1610
 
 
1611
1574
# AM_MISSING_HAS_RUN
1612
1575
# ------------------
1613
 
# Define MISSING if not defined so far and test if it supports --run.
1614
 
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
1576
# Define MISSING if not defined so far and test if it is modern enough.
 
1577
# If it is, set am_missing_run to use it, otherwise, to nothing.
1615
1578
AC_DEFUN([AM_MISSING_HAS_RUN],
1616
1579
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1617
1580
AC_REQUIRE_AUX_FILE([missing])dnl
1624
1587
  esac
1625
1588
fi
1626
1589
# Use eval to expand $SHELL
1627
 
if eval "$MISSING --run true"; then
1628
 
  am_missing_run="$MISSING --run "
 
1590
if eval "$MISSING --is-lightweight"; then
 
1591
  am_missing_run="$MISSING "
1629
1592
else
1630
1593
  am_missing_run=
1631
 
  AC_MSG_WARN([`missing' script is too old or missing])
 
1594
  AC_MSG_WARN(['missing' script is too old or missing])
1632
1595
fi
1633
1596
])
1634
1597
 
1635
 
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
1636
 
# Inc.
 
1598
#  -*- Autoconf -*-
 
1599
# Obsolete and "removed" macros, that must however still report explicit
 
1600
# error messages when used, to smooth transition.
 
1601
#
 
1602
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
1637
1603
#
1638
1604
# This file is free software; the Free Software Foundation
1639
1605
# gives unlimited permission to copy and/or distribute it,
1640
1606
# with or without modifications, as long as this notice is preserved.
1641
1607
 
1642
 
# serial 1
1643
 
 
1644
 
# AM_PROG_MKDIR_P
1645
 
# ---------------
1646
 
# Check for `mkdir -p'.
1647
 
AC_DEFUN([AM_PROG_MKDIR_P],
1648
 
[AC_PREREQ([2.60])dnl
1649
 
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1650
 
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
1651
 
dnl while keeping a definition of mkdir_p for backward compatibility.
1652
 
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
1653
 
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
1654
 
dnl Makefile.ins that do not define MKDIR_P, so we do our own
1655
 
dnl adjustment using top_builddir (which is defined more often than
1656
 
dnl MKDIR_P).
1657
 
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
1658
 
case $mkdir_p in
1659
 
  [[\\/$]]* | ?:[[\\/]]*) ;;
1660
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1661
 
esac
1662
 
])
 
1608
AC_DEFUN([AM_CONFIG_HEADER],
 
1609
[AC_DIAGNOSE([obsolete],
 
1610
['$0': this macro is obsolete.
 
1611
You should use the 'AC][_CONFIG_HEADERS' macro instead.])dnl
 
1612
AC_CONFIG_HEADERS($@)])
 
1613
 
 
1614
AC_DEFUN([AM_PROG_CC_STDC],
 
1615
[AC_PROG_CC
 
1616
am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
 
1617
AC_DIAGNOSE([obsolete],
 
1618
['$0': this macro is obsolete.
 
1619
You should simply use the 'AC][_PROG_CC' macro instead.
 
1620
Also, your code should no longer depend upon 'am_cv_prog_cc_stdc',
 
1621
but upon 'ac_cv_prog_cc_stdc'.])])
 
1622
 
 
1623
AC_DEFUN([AM_C_PROTOTYPES],
 
1624
         [AC_FATAL([automatic de-ANSI-fication support has been removed])])
 
1625
AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])
1663
1626
 
1664
1627
# Helper functions for option handling.                     -*- Autoconf -*-
1665
1628
 
1666
 
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
1667
 
# Foundation, Inc.
 
1629
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1668
1630
#
1669
1631
# This file is free software; the Free Software Foundation
1670
1632
# gives unlimited permission to copy and/or distribute it,
1671
1633
# with or without modifications, as long as this notice is preserved.
1672
1634
 
1673
 
# serial 5
1674
 
 
1675
1635
# _AM_MANGLE_OPTION(NAME)
1676
1636
# -----------------------
1677
1637
AC_DEFUN([_AM_MANGLE_OPTION],
1681
1641
# --------------------
1682
1642
# Set option NAME.  Presently that only means defining a flag for this option.
1683
1643
AC_DEFUN([_AM_SET_OPTION],
1684
 
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
1644
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
1685
1645
 
1686
1646
# _AM_SET_OPTIONS(OPTIONS)
1687
1647
# ------------------------
1695
1655
AC_DEFUN([_AM_IF_OPTION],
1696
1656
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1697
1657
 
1698
 
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
1699
 
#
1700
 
# This file is free software; the Free Software Foundation
1701
 
# gives unlimited permission to copy and/or distribute it,
1702
 
# with or without modifications, as long as this notice is preserved.
1703
 
 
1704
 
# serial 1
 
1658
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
 
1659
#
 
1660
# This file is free software; the Free Software Foundation
 
1661
# gives unlimited permission to copy and/or distribute it,
 
1662
# with or without modifications, as long as this notice is preserved.
 
1663
 
 
1664
# _AM_PROG_CC_C_O
 
1665
# ---------------
 
1666
# Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
 
1667
# to automatically call this.
 
1668
AC_DEFUN([_AM_PROG_CC_C_O],
 
1669
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
1670
AC_REQUIRE_AUX_FILE([compile])dnl
 
1671
AC_LANG_PUSH([C])dnl
 
1672
AC_CACHE_CHECK(
 
1673
  [whether $CC understands -c and -o together],
 
1674
  [am_cv_prog_cc_c_o],
 
1675
  [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
 
1676
  # Make sure it works both with $CC and with simple cc.
 
1677
  # Following AC_PROG_CC_C_O, we do the test twice because some
 
1678
  # compilers refuse to overwrite an existing .o file with -o,
 
1679
  # though they will create one.
 
1680
  am_cv_prog_cc_c_o=yes
 
1681
  for am_i in 1 2; do
 
1682
    if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
 
1683
         && test -f conftest2.$ac_objext; then
 
1684
      : OK
 
1685
    else
 
1686
      am_cv_prog_cc_c_o=no
 
1687
      break
 
1688
    fi
 
1689
  done
 
1690
  rm -f core conftest*
 
1691
  unset am_i])
 
1692
if test "$am_cv_prog_cc_c_o" != yes; then
 
1693
   # Losing compiler, so override with the script.
 
1694
   # FIXME: It is wrong to rewrite CC.
 
1695
   # But if we don't then we get into trouble of one sort or another.
 
1696
   # A longer-term fix would be to have automake use am__CC in this case,
 
1697
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
1698
   CC="$am_aux_dir/compile $CC"
 
1699
fi
 
1700
AC_LANG_POP([C])])
 
1701
 
 
1702
# For backward compatibility.
 
1703
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
 
1704
 
 
1705
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
 
1706
#
 
1707
# This file is free software; the Free Software Foundation
 
1708
# gives unlimited permission to copy and/or distribute it,
 
1709
# with or without modifications, as long as this notice is preserved.
1705
1710
 
1706
1711
# AM_RUN_LOG(COMMAND)
1707
1712
# -------------------
1716
1721
 
1717
1722
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
1718
1723
 
1719
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
1720
 
# Free Software Foundation, Inc.
 
1724
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
1721
1725
#
1722
1726
# This file is free software; the Free Software Foundation
1723
1727
# gives unlimited permission to copy and/or distribute it,
1724
1728
# with or without modifications, as long as this notice is preserved.
1725
1729
 
1726
 
# serial 5
1727
 
 
1728
1730
# AM_SANITY_CHECK
1729
1731
# ---------------
1730
1732
AC_DEFUN([AM_SANITY_CHECK],
1731
1733
[AC_MSG_CHECKING([whether build environment is sane])
1732
 
# Just in case
1733
 
sleep 1
1734
 
echo timestamp > conftest.file
1735
1734
# Reject unsafe characters in $srcdir or the absolute working directory
1736
1735
# name.  Accept space and tab only in the latter.
1737
1736
am_lf='
1742
1741
esac
1743
1742
case $srcdir in
1744
1743
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
1745
 
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
 
1744
    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1746
1745
esac
1747
1746
 
1748
 
# Do `set' in a subshell so we don't clobber the current shell's
 
1747
# Do 'set' in a subshell so we don't clobber the current shell's
1749
1748
# arguments.  Must try -L first in case configure is actually a
1750
1749
# symlink; some systems play weird games with the mod time of symlinks
1751
1750
# (eg FreeBSD returns the mod time of the symlink's containing
1752
1751
# directory).
1753
1752
if (
1754
 
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1755
 
   if test "$[*]" = "X"; then
1756
 
      # -L didn't work.
1757
 
      set X `ls -t "$srcdir/configure" conftest.file`
1758
 
   fi
1759
 
   rm -f conftest.file
1760
 
   if test "$[*]" != "X $srcdir/configure conftest.file" \
1761
 
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
1762
 
 
1763
 
      # If neither matched, then we have a broken ls.  This can happen
1764
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1765
 
      # broken ls alias from the environment.  This has actually
1766
 
      # happened.  Such a system could not be considered "sane".
1767
 
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
1768
 
alias in your environment])
1769
 
   fi
1770
 
 
 
1753
   am_has_slept=no
 
1754
   for am_try in 1 2; do
 
1755
     echo "timestamp, slept: $am_has_slept" > conftest.file
 
1756
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
1757
     if test "$[*]" = "X"; then
 
1758
        # -L didn't work.
 
1759
        set X `ls -t "$srcdir/configure" conftest.file`
 
1760
     fi
 
1761
     if test "$[*]" != "X $srcdir/configure conftest.file" \
 
1762
        && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
1763
 
 
1764
        # If neither matched, then we have a broken ls.  This can happen
 
1765
        # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1766
        # broken ls alias from the environment.  This has actually
 
1767
        # happened.  Such a system could not be considered "sane".
 
1768
        AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
1769
  alias in your environment])
 
1770
     fi
 
1771
     if test "$[2]" = conftest.file || test $am_try -eq 2; then
 
1772
       break
 
1773
     fi
 
1774
     # Just in case.
 
1775
     sleep 1
 
1776
     am_has_slept=yes
 
1777
   done
1771
1778
   test "$[2]" = conftest.file
1772
1779
   )
1773
1780
then
1777
1784
   AC_MSG_ERROR([newly created file is older than distributed files!
1778
1785
Check your system clock])
1779
1786
fi
1780
 
AC_MSG_RESULT(yes)])
 
1787
AC_MSG_RESULT([yes])
 
1788
# If we didn't sleep, we still need to ensure time stamps of config.status and
 
1789
# generated files are strictly newer.
 
1790
am_sleep_pid=
 
1791
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
 
1792
  ( sleep 1 ) &
 
1793
  am_sleep_pid=$!
 
1794
fi
 
1795
AC_CONFIG_COMMANDS_PRE(
 
1796
  [AC_MSG_CHECKING([that generated files are newer than configure])
 
1797
   if test -n "$am_sleep_pid"; then
 
1798
     # Hide warnings about reused PIDs.
 
1799
     wait $am_sleep_pid 2>/dev/null
 
1800
   fi
 
1801
   AC_MSG_RESULT([done])])
 
1802
rm -f conftest.file
 
1803
])
1781
1804
 
1782
 
# Copyright (C) 2009, 2011  Free Software Foundation, Inc.
 
1805
# Copyright (C) 2009-2013 Free Software Foundation, Inc.
1783
1806
#
1784
1807
# This file is free software; the Free Software Foundation
1785
1808
# gives unlimited permission to copy and/or distribute it,
1786
1809
# with or without modifications, as long as this notice is preserved.
1787
1810
 
1788
 
# serial 2
1789
 
 
1790
1811
# AM_SILENT_RULES([DEFAULT])
1791
1812
# --------------------------
1792
1813
# Enable less verbose build rules; with the default set to DEFAULT
1793
 
# (`yes' being less verbose, `no' or empty being verbose).
 
1814
# ("yes" being less verbose, "no" or empty being verbose).
1794
1815
AC_DEFUN([AM_SILENT_RULES],
1795
 
[AC_ARG_ENABLE([silent-rules],
1796
 
[  --enable-silent-rules          less verbose build output (undo: `make V=1')
1797
 
  --disable-silent-rules         verbose build output (undo: `make V=0')])
1798
 
case $enable_silent_rules in
1799
 
yes) AM_DEFAULT_VERBOSITY=0;;
1800
 
no)  AM_DEFAULT_VERBOSITY=1;;
1801
 
*)   AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
 
1816
[AC_ARG_ENABLE([silent-rules], [dnl
 
1817
AS_HELP_STRING(
 
1818
  [--enable-silent-rules],
 
1819
  [less verbose build output (undo: "make V=1")])
 
1820
AS_HELP_STRING(
 
1821
  [--disable-silent-rules],
 
1822
  [verbose build output (undo: "make V=0")])dnl
 
1823
])
 
1824
case $enable_silent_rules in @%:@ (((
 
1825
  yes) AM_DEFAULT_VERBOSITY=0;;
 
1826
   no) AM_DEFAULT_VERBOSITY=1;;
 
1827
    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1802
1828
esac
1803
1829
dnl
1804
 
dnl A few `make' implementations (e.g., NonStop OS and NextStep)
 
1830
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1805
1831
dnl do not support nested variable expansions.
1806
1832
dnl See automake bug#9928 and bug#10237.
1807
1833
am_make=${MAKE-make}
1819
1845
  am_cv_make_support_nested_variables=no
1820
1846
fi])
1821
1847
if test $am_cv_make_support_nested_variables = yes; then
1822
 
  dnl Using `$V' instead of `$(V)' breaks IRIX make.
 
1848
  dnl Using '$V' instead of '$(V)' breaks IRIX make.
1823
1849
  AM_V='$(V)'
1824
1850
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1825
1851
else
1836
1862
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1837
1863
])
1838
1864
 
1839
 
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
 
1865
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1840
1866
#
1841
1867
# This file is free software; the Free Software Foundation
1842
1868
# gives unlimited permission to copy and/or distribute it,
1843
1869
# with or without modifications, as long as this notice is preserved.
1844
1870
 
1845
 
# serial 1
1846
 
 
1847
1871
# AM_PROG_INSTALL_STRIP
1848
1872
# ---------------------
1849
 
# One issue with vendor `install' (even GNU) is that you can't
 
1873
# One issue with vendor 'install' (even GNU) is that you can't
1850
1874
# specify the program used to strip binaries.  This is especially
1851
1875
# annoying in cross-compiling environments, where the build's strip
1852
1876
# is unlikely to handle the host's binaries.
1853
1877
# Fortunately install-sh will honor a STRIPPROG variable, so we
1854
 
# always use install-sh in `make install-strip', and initialize
 
1878
# always use install-sh in "make install-strip", and initialize
1855
1879
# STRIPPROG with the value of the STRIP variable (set by the user).
1856
1880
AC_DEFUN([AM_PROG_INSTALL_STRIP],
1857
1881
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1858
 
# Installed binaries are usually stripped using `strip' when the user
1859
 
# run `make install-strip'.  However `strip' might not be the right
 
1882
# Installed binaries are usually stripped using 'strip' when the user
 
1883
# run "make install-strip".  However 'strip' might not be the right
1860
1884
# tool to use in cross-compilation environments, therefore Automake
1861
 
# will honor the `STRIP' environment variable to overrule this program.
1862
 
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
1885
# will honor the 'STRIP' environment variable to overrule this program.
 
1886
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1863
1887
if test "$cross_compiling" != no; then
1864
1888
  AC_CHECK_TOOL([STRIP], [strip], :)
1865
1889
fi
1866
1890
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1867
1891
AC_SUBST([INSTALL_STRIP_PROGRAM])])
1868
1892
 
1869
 
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
 
1893
# Copyright (C) 2006-2013 Free Software Foundation, Inc.
1870
1894
#
1871
1895
# This file is free software; the Free Software Foundation
1872
1896
# gives unlimited permission to copy and/or distribute it,
1873
1897
# with or without modifications, as long as this notice is preserved.
1874
1898
 
1875
 
# serial 3
1876
 
 
1877
1899
# _AM_SUBST_NOTMAKE(VARIABLE)
1878
1900
# ---------------------------
1879
1901
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1887
1909
 
1888
1910
# Check how to create a tarball.                            -*- Autoconf -*-
1889
1911
 
1890
 
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
 
1912
# Copyright (C) 2004-2013 Free Software Foundation, Inc.
1891
1913
#
1892
1914
# This file is free software; the Free Software Foundation
1893
1915
# gives unlimited permission to copy and/or distribute it,
1894
1916
# with or without modifications, as long as this notice is preserved.
1895
1917
 
1896
 
# serial 2
1897
 
 
1898
1918
# _AM_PROG_TAR(FORMAT)
1899
1919
# --------------------
1900
1920
# Check how to create a tarball in format FORMAT.
1901
 
# FORMAT should be one of `v7', `ustar', or `pax'.
 
1921
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
1902
1922
#
1903
1923
# Substitute a variable $(am__tar) that is a command
1904
1924
# writing to stdout a FORMAT-tarball containing the directory
1908
1928
# Substitute a variable $(am__untar) that extract such
1909
1929
# a tarball read from stdin.
1910
1930
#     $(am__untar) < result.tar
 
1931
#
1911
1932
AC_DEFUN([_AM_PROG_TAR],
1912
1933
[# Always define AMTAR for backward compatibility.  Yes, it's still used
1913
1934
# in the wild :-(  We should find a proper way to deprecate it ...
1914
1935
AC_SUBST([AMTAR], ['$${TAR-tar}'])
 
1936
 
 
1937
# We'll loop over all known methods to create a tar archive until one works.
 
1938
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
1939
 
1915
1940
m4_if([$1], [v7],
1916
 
     [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1917
 
     [m4_case([$1], [ustar],, [pax],,
1918
 
              [m4_fatal([Unknown tar format])])
1919
 
AC_MSG_CHECKING([how to create a $1 tar archive])
1920
 
# Loop over all known methods to create a tar archive until one works.
1921
 
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1922
 
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1923
 
# Do not fold the above two line into one, because Tru64 sh and
1924
 
# Solaris sh will not grok spaces in the rhs of `-'.
1925
 
for _am_tool in $_am_tools
1926
 
do
1927
 
  case $_am_tool in
1928
 
  gnutar)
1929
 
    for _am_tar in tar gnutar gtar;
1930
 
    do
1931
 
      AM_RUN_LOG([$_am_tar --version]) && break
1932
 
    done
1933
 
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1934
 
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1935
 
    am__untar="$_am_tar -xf -"
1936
 
    ;;
1937
 
  plaintar)
1938
 
    # Must skip GNU tar: if it does not support --format= it doesn't create
1939
 
    # ustar tarball either.
1940
 
    (tar --version) >/dev/null 2>&1 && continue
1941
 
    am__tar='tar chf - "$$tardir"'
1942
 
    am__tar_='tar chf - "$tardir"'
1943
 
    am__untar='tar xf -'
1944
 
    ;;
1945
 
  pax)
1946
 
    am__tar='pax -L -x $1 -w "$$tardir"'
1947
 
    am__tar_='pax -L -x $1 -w "$tardir"'
1948
 
    am__untar='pax -r'
1949
 
    ;;
1950
 
  cpio)
1951
 
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1952
 
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1953
 
    am__untar='cpio -i -H $1 -d'
1954
 
    ;;
1955
 
  none)
1956
 
    am__tar=false
1957
 
    am__tar_=false
1958
 
    am__untar=false
1959
 
    ;;
1960
 
  esac
1961
 
 
1962
 
  # If the value was cached, stop now.  We just wanted to have am__tar
1963
 
  # and am__untar set.
1964
 
  test -n "${am_cv_prog_tar_$1}" && break
1965
 
 
1966
 
  # tar/untar a dummy directory, and stop if the command works
1967
 
  rm -rf conftest.dir
1968
 
  mkdir conftest.dir
1969
 
  echo GrepMe > conftest.dir/file
1970
 
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1971
 
  rm -rf conftest.dir
1972
 
  if test -s conftest.tar; then
1973
 
    AM_RUN_LOG([$am__untar <conftest.tar])
1974
 
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1975
 
  fi
1976
 
done
1977
 
rm -rf conftest.dir
1978
 
 
1979
 
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1980
 
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
1941
  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
 
1942
 
 
1943
  [m4_case([$1],
 
1944
    [ustar],
 
1945
     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
 
1946
      # There is notably a 21 bits limit for the UID and the GID.  In fact,
 
1947
      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
 
1948
      # and bug#13588).
 
1949
      am_max_uid=2097151 # 2^21 - 1
 
1950
      am_max_gid=$am_max_uid
 
1951
      # The $UID and $GID variables are not portable, so we need to resort
 
1952
      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
 
1953
      # below are definitely unexpected, so allow the users to see them
 
1954
      # (that is, avoid stderr redirection).
 
1955
      am_uid=`id -u || echo unknown`
 
1956
      am_gid=`id -g || echo unknown`
 
1957
      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
 
1958
      if test $am_uid -le $am_max_uid; then
 
1959
         AC_MSG_RESULT([yes])
 
1960
      else
 
1961
         AC_MSG_RESULT([no])
 
1962
         _am_tools=none
 
1963
      fi
 
1964
      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
 
1965
      if test $am_gid -le $am_max_gid; then
 
1966
         AC_MSG_RESULT([yes])
 
1967
      else
 
1968
        AC_MSG_RESULT([no])
 
1969
        _am_tools=none
 
1970
      fi],
 
1971
 
 
1972
  [pax],
 
1973
    [],
 
1974
 
 
1975
  [m4_fatal([Unknown tar format])])
 
1976
 
 
1977
  AC_MSG_CHECKING([how to create a $1 tar archive])
 
1978
 
 
1979
  # Go ahead even if we have the value already cached.  We do so because we
 
1980
  # need to set the values for the 'am__tar' and 'am__untar' variables.
 
1981
  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
1982
 
 
1983
  for _am_tool in $_am_tools; do
 
1984
    case $_am_tool in
 
1985
    gnutar)
 
1986
      for _am_tar in tar gnutar gtar; do
 
1987
        AM_RUN_LOG([$_am_tar --version]) && break
 
1988
      done
 
1989
      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
1990
      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
1991
      am__untar="$_am_tar -xf -"
 
1992
      ;;
 
1993
    plaintar)
 
1994
      # Must skip GNU tar: if it does not support --format= it doesn't create
 
1995
      # ustar tarball either.
 
1996
      (tar --version) >/dev/null 2>&1 && continue
 
1997
      am__tar='tar chf - "$$tardir"'
 
1998
      am__tar_='tar chf - "$tardir"'
 
1999
      am__untar='tar xf -'
 
2000
      ;;
 
2001
    pax)
 
2002
      am__tar='pax -L -x $1 -w "$$tardir"'
 
2003
      am__tar_='pax -L -x $1 -w "$tardir"'
 
2004
      am__untar='pax -r'
 
2005
      ;;
 
2006
    cpio)
 
2007
      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
2008
      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
2009
      am__untar='cpio -i -H $1 -d'
 
2010
      ;;
 
2011
    none)
 
2012
      am__tar=false
 
2013
      am__tar_=false
 
2014
      am__untar=false
 
2015
      ;;
 
2016
    esac
 
2017
 
 
2018
    # If the value was cached, stop now.  We just wanted to have am__tar
 
2019
    # and am__untar set.
 
2020
    test -n "${am_cv_prog_tar_$1}" && break
 
2021
 
 
2022
    # tar/untar a dummy directory, and stop if the command works.
 
2023
    rm -rf conftest.dir
 
2024
    mkdir conftest.dir
 
2025
    echo GrepMe > conftest.dir/file
 
2026
    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
2027
    rm -rf conftest.dir
 
2028
    if test -s conftest.tar; then
 
2029
      AM_RUN_LOG([$am__untar <conftest.tar])
 
2030
      AM_RUN_LOG([cat conftest.dir/file])
 
2031
      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
2032
    fi
 
2033
  done
 
2034
  rm -rf conftest.dir
 
2035
 
 
2036
  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
2037
  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
2038
 
1981
2039
AC_SUBST([am__tar])
1982
2040
AC_SUBST([am__untar])
1983
2041
]) # _AM_PROG_TAR