~ubuntu-branches/ubuntu/wily/totem-pl-parser/wily

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Simon McVittie
  • Date: 2012-10-23 17:38:31 UTC
  • mfrom: (1.4.21) (1.5.16 sid)
  • Revision ID: package-import@ubuntu.com-20121023173831-dbrzsvlg09bj0ewh
Tags: 3.4.3-1
* Team upload
* New upstream bug fix release
  - build-depend on GLib 2.34, for g_clear_pointer()

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
2
 
 
3
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
 
1
# generated automatically by aclocal 1.12.2 -*- Autoconf -*-
 
2
 
 
3
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
 
4
 
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
13
13
 
14
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
17
 
[m4_warning([this file was generated for autoconf 2.68.
 
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
 
17
[m4_warning([this file was generated for autoconf 2.69.
18
18
You have another version of autoconf.  It may work, but is not guaranteed to.
19
19
If you have problems, you may need to regenerate the build system entirely.
20
 
To do so, use the procedure documented by the package, typically `autoreconf'.])])
 
20
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
21
21
 
22
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 
22
# Copyright (C) 2002-2012 Free Software Foundation, Inc.
23
23
#
24
24
# This file is free software; the Free Software Foundation
25
25
# gives unlimited permission to copy and/or distribute it,
26
26
# with or without modifications, as long as this notice is preserved.
27
27
 
 
28
# serial 8
 
29
 
28
30
# AM_AUTOMAKE_VERSION(VERSION)
29
31
# ----------------------------
30
32
# Automake X.Y traces this macro to ensure aclocal.m4 has been
31
33
# generated from the m4 files accompanying Automake X.Y.
32
34
# (This private macro should not be called outside this file.)
33
35
AC_DEFUN([AM_AUTOMAKE_VERSION],
34
 
[am__api_version='1.11'
 
36
[am__api_version='1.12'
35
37
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
36
38
dnl require some minimum version.  Point them to the right macro.
37
 
m4_if([$1], [1.11.1], [],
 
39
m4_if([$1], [1.12.2], [],
38
40
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
39
41
])
40
42
 
50
52
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
51
53
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
52
54
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
53
 
[AM_AUTOMAKE_VERSION([1.11.1])dnl
 
55
[AM_AUTOMAKE_VERSION([1.12.2])dnl
54
56
m4_ifndef([AC_AUTOCONF_VERSION],
55
57
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
56
58
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
57
59
 
58
60
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
59
61
 
60
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
62
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
61
63
#
62
64
# This file is free software; the Free Software Foundation
63
65
# gives unlimited permission to copy and/or distribute it,
64
66
# with or without modifications, as long as this notice is preserved.
65
67
 
 
68
# serial 2
 
69
 
66
70
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
67
 
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
68
 
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
 
71
# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
 
72
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
69
73
#
70
74
# Of course, Automake must honor this variable whenever it calls a
71
75
# tool from the auxiliary directory.  The problem is that $srcdir (and
84
88
#
85
89
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
86
90
# are both prefixed by $srcdir.  In an in-source build this is usually
87
 
# harmless because $srcdir is `.', but things will broke when you
 
91
# harmless because $srcdir is '.', but things will broke when you
88
92
# start a VPATH build or use an absolute $srcdir.
89
93
#
90
94
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
110
114
 
111
115
# AM_CONDITIONAL                                            -*- Autoconf -*-
112
116
 
113
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
114
 
# Free Software Foundation, Inc.
 
117
# Copyright (C) 1997-2012 Free Software Foundation, Inc.
115
118
#
116
119
# This file is free software; the Free Software Foundation
117
120
# gives unlimited permission to copy and/or distribute it,
118
121
# with or without modifications, as long as this notice is preserved.
119
122
 
120
 
# serial 9
 
123
# serial 10
121
124
 
122
125
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
123
126
# -------------------------------------
124
127
# Define a conditional.
125
128
AC_DEFUN([AM_CONDITIONAL],
126
 
[AC_PREREQ(2.52)dnl
127
 
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
128
 
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
129
[AC_PREREQ([2.52])dnl
 
130
 m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
131
       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
129
132
AC_SUBST([$1_TRUE])dnl
130
133
AC_SUBST([$1_FALSE])dnl
131
134
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
144
147
Usually this means the macro was only invoked conditionally.]])
145
148
fi])])
146
149
 
147
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
148
 
# Free Software Foundation, Inc.
 
150
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
149
151
#
150
152
# This file is free software; the Free Software Foundation
151
153
# gives unlimited permission to copy and/or distribute it,
152
154
# with or without modifications, as long as this notice is preserved.
153
155
 
154
 
# serial 10
 
156
# serial 17
155
157
 
156
 
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
 
158
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
157
159
# written in clear, in which case automake, when reading aclocal.m4,
158
160
# will think it sees a *use*, and therefore will trigger all it's
159
161
# C support machinery.  Also note that it means that autoscan, seeing
163
165
# _AM_DEPENDENCIES(NAME)
164
166
# ----------------------
165
167
# See how the compiler implements dependency checking.
166
 
# NAME is "CC", "CXX", "GCJ", or "OBJC".
 
168
# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
167
169
# We try a few techniques and use that to set a single cache variable.
168
170
#
169
171
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
176
178
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
177
179
AC_REQUIRE([AM_DEP_TRACK])dnl
178
180
 
179
 
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
180
 
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
181
 
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
182
 
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
183
 
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
184
 
                   [depcc="$$1"   am_compiler_list=])
 
181
m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
 
182
      [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
 
183
      [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
184
      [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
 
185
      [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
 
186
      [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
 
187
                    [depcc="$$1"   am_compiler_list=])
185
188
 
186
189
AC_CACHE_CHECK([dependency style of $depcc],
187
190
               [am_cv_$1_dependencies_compiler_type],
189
192
  # We make a subdir and do the tests there.  Otherwise we can end up
190
193
  # making bogus files that we don't know about and never remove.  For
191
194
  # instance it was reported that on HP-UX the gcc test will end up
192
 
  # making a dummy file named `D' -- because `-MD' means `put the output
193
 
  # in D'.
 
195
  # making a dummy file named 'D' -- because '-MD' means "put the output
 
196
  # in D".
 
197
  rm -rf conftest.dir
194
198
  mkdir conftest.dir
195
199
  # Copy depcomp to subdir because otherwise we won't find it if we're
196
200
  # using a relative directory.
229
233
    : > sub/conftest.c
230
234
    for i in 1 2 3 4 5 6; do
231
235
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
232
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
233
 
      # Solaris 8's {/usr,}/bin/sh.
234
 
      touch sub/conftst$i.h
 
236
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 
237
      # Solaris 10 /bin/sh.
 
238
      echo '/* dummy */' > sub/conftst$i.h
235
239
    done
236
240
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
237
241
 
238
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
242
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
239
243
    # mode.  It turns out that the SunPro C++ compiler does not properly
240
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
241
 
    # versions had trouble with output in subdirs
 
244
    # handle '-M -o', and we need to detect this.  Also, some Intel
 
245
    # versions had trouble with output in subdirs.
242
246
    am__obj=sub/conftest.${OBJEXT-o}
243
247
    am__minus_obj="-o $am__obj"
244
248
    case $depmode in
247
251
      test "$am__universal" = false || continue
248
252
      ;;
249
253
    nosideeffect)
250
 
      # after this tag, mechanisms are not by side-effect, so they'll
251
 
      # only be used when explicitly requested
 
254
      # After this tag, mechanisms are not by side-effect, so they'll
 
255
      # only be used when explicitly requested.
252
256
      if test "x$enable_dependency_tracking" = xyes; then
253
257
        continue
254
258
      else
255
259
        break
256
260
      fi
257
261
      ;;
258
 
    msvisualcpp | msvcmsys)
259
 
      # This compiler won't grok `-c -o', but also, the minuso test has
 
262
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
263
      # This compiler won't grok '-c -o', but also, the minuso test has
260
264
      # not run yet.  These depmodes are late enough in the game, and
261
265
      # so weak that their functioning should not be impacted.
262
266
      am__obj=conftest.${OBJEXT-o}
304
308
# AM_SET_DEPDIR
305
309
# -------------
306
310
# Choose a directory name for dependency files.
307
 
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
 
311
# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
308
312
AC_DEFUN([AM_SET_DEPDIR],
309
313
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
310
314
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
314
318
# AM_DEP_TRACK
315
319
# ------------
316
320
AC_DEFUN([AM_DEP_TRACK],
317
 
[AC_ARG_ENABLE(dependency-tracking,
318
 
[  --disable-dependency-tracking  speeds up one-time build
319
 
  --enable-dependency-tracking   do not reject slow dependency extractors])
 
321
[AC_ARG_ENABLE([dependency-tracking], [dnl
 
322
AS_HELP_STRING(
 
323
  [--enable-dependency-tracking],
 
324
  [do not reject slow dependency extractors])
 
325
AS_HELP_STRING(
 
326
  [--disable-dependency-tracking],
 
327
  [speeds up one-time build])])
320
328
if test "x$enable_dependency_tracking" != xno; then
321
329
  am_depcomp="$ac_aux_dir/depcomp"
322
330
  AMDEPBACKSLASH='\'
 
331
  am__nodep='_no'
323
332
fi
324
333
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
325
334
AC_SUBST([AMDEPBACKSLASH])dnl
326
335
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
336
AC_SUBST([am__nodep])dnl
 
337
_AM_SUBST_NOTMAKE([am__nodep])dnl
327
338
])
328
339
 
329
340
# Generate code to set up dependency tracking.              -*- Autoconf -*-
330
341
 
331
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
332
 
# Free Software Foundation, Inc.
 
342
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
333
343
#
334
344
# This file is free software; the Free Software Foundation
335
345
# gives unlimited permission to copy and/or distribute it,
336
346
# with or without modifications, as long as this notice is preserved.
337
347
 
338
 
#serial 5
 
348
# serial 6
339
349
 
340
350
# _AM_OUTPUT_DEPENDENCY_COMMANDS
341
351
# ------------------------------
354
364
    # Strip MF so we end up with the name of the file.
355
365
    mf=`echo "$mf" | sed -e 's/:.*$//'`
356
366
    # Check whether this is an Automake generated Makefile or not.
357
 
    # We used to match only the files named `Makefile.in', but
 
367
    # We used to match only the files named 'Makefile.in', but
358
368
    # some people rename them; so instead we look at the file content.
359
369
    # Grep'ing the first line is not enough: some people post-process
360
370
    # each Makefile.in and add a new line on top of each file to say so.
366
376
      continue
367
377
    fi
368
378
    # Extract the definition of DEPDIR, am__include, and am__quote
369
 
    # from the Makefile without running `make'.
 
379
    # from the Makefile without running 'make'.
370
380
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
371
381
    test -z "$DEPDIR" && continue
372
382
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
373
383
    test -z "am__include" && continue
374
384
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
375
 
    # When using ansi2knr, U may be empty or an underscore; expand it
376
 
    U=`sed -n 's/^U = //p' < "$mf"`
377
385
    # Find all dependency output files, they are included files with
378
386
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
379
387
    # simplest approach to changing $(DEPDIR) to its actual value in the
380
388
    # expansion.
381
389
    for file in `sed -n "
382
390
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
383
 
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
391
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
384
392
      # Make sure the directory exists.
385
393
      test -f "$dirpart/$file" && continue
386
394
      fdir=`AS_DIRNAME(["$file"])`
398
406
# This macro should only be invoked once -- use via AC_REQUIRE.
399
407
#
400
408
# This code is only required when automatic dependency tracking
401
 
# is enabled.  FIXME.  This creates each `.P' file that we will
 
409
# is enabled.  FIXME.  This creates each '.P' file that we will
402
410
# need in order to bootstrap the dependency handling code.
403
411
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
404
412
[AC_CONFIG_COMMANDS([depfiles],
408
416
 
409
417
# Do all the work for Automake.                             -*- Autoconf -*-
410
418
 
411
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
412
 
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
 
419
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
413
420
#
414
421
# This file is free software; the Free Software Foundation
415
422
# gives unlimited permission to copy and/or distribute it,
416
423
# with or without modifications, as long as this notice is preserved.
417
424
 
418
 
# serial 16
 
425
# serial 19
419
426
 
420
427
# This macro actually does too much.  Some checks are only needed if
421
428
# your package does certain things.  But this isn't really a big deal.
461
468
# Define the identity of the package.
462
469
dnl Distinguish between old-style and new-style calls.
463
470
m4_ifval([$2],
464
 
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
471
[AC_DIAGNOSE([obsolete],
 
472
[$0: two- and three-arguments forms are deprecated.  For more info, see:
 
473
http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_INIT_AUTOMAKE-invocation])
 
474
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
465
475
 AC_SUBST([PACKAGE], [$1])dnl
466
476
 AC_SUBST([VERSION], [$2])],
467
477
[_AM_SET_OPTIONS([$1])dnl
468
478
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
469
 
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
479
m4_if(
 
480
  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
 
481
  [ok:ok],,
470
482
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
471
483
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
472
484
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
473
485
 
474
486
_AM_IF_OPTION([no-define],,
475
 
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
476
 
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 
487
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
 
488
 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
477
489
 
478
490
# Some tools Automake needs.
479
491
AC_REQUIRE([AM_SANITY_CHECK])dnl
480
492
AC_REQUIRE([AC_ARG_PROGRAM])dnl
481
 
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
482
 
AM_MISSING_PROG(AUTOCONF, autoconf)
483
 
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
484
 
AM_MISSING_PROG(AUTOHEADER, autoheader)
485
 
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
493
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
 
494
AM_MISSING_PROG([AUTOCONF], [autoconf])
 
495
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
 
496
AM_MISSING_PROG([AUTOHEADER], [autoheader])
 
497
AM_MISSING_PROG([MAKEINFO], [makeinfo])
486
498
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
487
499
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
488
 
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
 
500
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
501
# For better backward compatibility.  To be removed once Automake 1.9.x
 
502
# dies out for good.  For more background, see:
 
503
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
 
504
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
 
505
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
489
506
# We need awk for the "check" target.  The system "awk" is bad on
490
507
# some platforms.
491
508
AC_REQUIRE([AC_PROG_AWK])dnl
496
513
                             [_AM_PROG_TAR([v7])])])
497
514
_AM_IF_OPTION([no-dependencies],,
498
515
[AC_PROVIDE_IFELSE([AC_PROG_CC],
499
 
                  [_AM_DEPENDENCIES(CC)],
500
 
                  [define([AC_PROG_CC],
501
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
516
                  [_AM_DEPENDENCIES([CC])],
 
517
                  [m4_define([AC_PROG_CC],
 
518
                             m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
502
519
AC_PROVIDE_IFELSE([AC_PROG_CXX],
503
 
                  [_AM_DEPENDENCIES(CXX)],
504
 
                  [define([AC_PROG_CXX],
505
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
520
                  [_AM_DEPENDENCIES([CXX])],
 
521
                  [m4_define([AC_PROG_CXX],
 
522
                             m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
506
523
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
507
 
                  [_AM_DEPENDENCIES(OBJC)],
508
 
                  [define([AC_PROG_OBJC],
509
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
524
                  [_AM_DEPENDENCIES([OBJC])],
 
525
                  [m4_define([AC_PROG_OBJC],
 
526
                             m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
 
527
dnl Support for Objective C++ was only introduced in Autoconf 2.65,
 
528
dnl but we still cater to Autoconf 2.62.
 
529
m4_ifdef([AC_PROG_OBJCXX],
 
530
[AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
 
531
                  [_AM_DEPENDENCIES([OBJCXX])],
 
532
                  [m4_define([AC_PROG_OBJCXX],
 
533
                             m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])])dnl
510
534
])
511
535
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
512
 
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
513
 
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
 
536
dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the
 
537
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
514
538
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
515
539
AC_CONFIG_COMMANDS_PRE(dnl
516
540
[m4_provide_if([_AM_COMPILER_EXEEXT],
517
541
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
518
542
])
519
543
 
520
 
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
544
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
521
545
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
522
546
dnl mangled by Autoconf and run in a shell conditional statement.
523
547
m4_define([_AC_COMPILER_EXEEXT],
545
569
done
546
570
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
547
571
 
548
 
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
 
572
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
549
573
#
550
574
# This file is free software; the Free Software Foundation
551
575
# gives unlimited permission to copy and/or distribute it,
552
576
# with or without modifications, as long as this notice is preserved.
553
577
 
 
578
# serial 8
 
579
 
554
580
# AM_PROG_INSTALL_SH
555
581
# ------------------
556
582
# Define $install_sh.
564
590
    install_sh="\${SHELL} $am_aux_dir/install-sh"
565
591
  esac
566
592
fi
567
 
AC_SUBST(install_sh)])
 
593
AC_SUBST([install_sh])])
568
594
 
569
 
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
595
# Copyright (C) 2003-2012 Free Software Foundation, Inc.
570
596
#
571
597
# This file is free software; the Free Software Foundation
572
598
# gives unlimited permission to copy and/or distribute it,
590
616
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
591
617
# From Jim Meyering
592
618
 
593
 
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
594
 
# Free Software Foundation, Inc.
 
619
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
595
620
#
596
621
# This file is free software; the Free Software Foundation
597
622
# gives unlimited permission to copy and/or distribute it,
598
623
# with or without modifications, as long as this notice is preserved.
599
624
 
600
 
# serial 5
 
625
# serial 7
601
626
 
602
627
# AM_MAINTAINER_MODE([DEFAULT-MODE])
603
628
# ----------------------------------
604
629
# Control maintainer-specific portions of Makefiles.
605
 
# Default is to disable them, unless `enable' is passed literally.
606
 
# For symmetry, `disable' may be passed as well.  Anyway, the user
 
630
# Default is to disable them, unless 'enable' is passed literally.
 
631
# For symmetry, 'disable' may be passed as well.  Anyway, the user
607
632
# can override the default with the --enable/--disable switch.
608
633
AC_DEFUN([AM_MAINTAINER_MODE],
609
634
[m4_case(m4_default([$1], [disable]),
611
636
       [disable], [m4_define([am_maintainer_other], [enable])],
612
637
       [m4_define([am_maintainer_other], [enable])
613
638
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
614
 
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
 
639
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
615
640
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
616
641
  AC_ARG_ENABLE([maintainer-mode],
617
 
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
618
 
                          (and sometimes confusing) to the casual installer],
619
 
      [USE_MAINTAINER_MODE=$enableval],
620
 
      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
 
642
    [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
 
643
      am_maintainer_other[ make rules and dependencies not useful
 
644
      (and sometimes confusing) to the casual installer])],
 
645
    [USE_MAINTAINER_MODE=$enableval],
 
646
    [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
621
647
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
622
648
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
623
649
  MAINT=$MAINTAINER_MODE_TRUE
629
655
 
630
656
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
631
657
 
632
 
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
 
658
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
633
659
#
634
660
# This file is free software; the Free Software Foundation
635
661
# gives unlimited permission to copy and/or distribute it,
636
662
# with or without modifications, as long as this notice is preserved.
637
663
 
638
 
# serial 4
 
664
# serial 5
639
665
 
640
666
# AM_MAKE_INCLUDE()
641
667
# -----------------
654
680
_am_result=none
655
681
# First try GNU make style include.
656
682
echo "include confinc" > confmf
657
 
# Ignore all kinds of additional output from `make'.
 
683
# Ignore all kinds of additional output from 'make'.
658
684
case `$am_make -s -f confmf 2> /dev/null` in #(
659
685
*the\ am__doit\ target*)
660
686
  am__include=include
679
705
rm -f confinc confmf
680
706
])
681
707
 
682
 
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
683
 
# Free Software Foundation, Inc.
 
708
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
684
709
#
685
710
# This file is free software; the Free Software Foundation
686
711
# gives unlimited permission to copy and/or distribute it,
716
741
 
717
742
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
718
743
 
719
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
720
 
# Free Software Foundation, Inc.
 
744
# Copyright (C) 1997-2012 Free Software Foundation, Inc.
721
745
#
722
746
# This file is free software; the Free Software Foundation
723
747
# gives unlimited permission to copy and/or distribute it,
724
748
# with or without modifications, as long as this notice is preserved.
725
749
 
726
 
# serial 6
 
750
# serial 7
727
751
 
728
752
# AM_MISSING_PROG(NAME, PROGRAM)
729
753
# ------------------------------
753
777
  am_missing_run="$MISSING --run "
754
778
else
755
779
  am_missing_run=
756
 
  AC_MSG_WARN([`missing' script is too old or missing])
 
780
  AC_MSG_WARN(['missing' script is too old or missing])
757
781
fi
758
782
])
759
783
 
760
 
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
761
 
#
762
 
# This file is free software; the Free Software Foundation
763
 
# gives unlimited permission to copy and/or distribute it,
764
 
# with or without modifications, as long as this notice is preserved.
765
 
 
766
 
# AM_PROG_MKDIR_P
767
 
# ---------------
768
 
# Check for `mkdir -p'.
769
 
AC_DEFUN([AM_PROG_MKDIR_P],
770
 
[AC_PREREQ([2.60])dnl
771
 
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
772
 
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
773
 
dnl while keeping a definition of mkdir_p for backward compatibility.
774
 
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
775
 
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
776
 
dnl Makefile.ins that do not define MKDIR_P, so we do our own
777
 
dnl adjustment using top_builddir (which is defined more often than
778
 
dnl MKDIR_P).
779
 
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
780
 
case $mkdir_p in
781
 
  [[\\/$]]* | ?:[[\\/]]*) ;;
782
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
783
 
esac
784
 
])
785
 
 
786
784
# Helper functions for option handling.                     -*- Autoconf -*-
787
785
 
788
 
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
 
786
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
789
787
#
790
788
# This file is free software; the Free Software Foundation
791
789
# gives unlimited permission to copy and/or distribute it,
792
790
# with or without modifications, as long as this notice is preserved.
793
791
 
794
 
# serial 4
 
792
# serial 6
795
793
 
796
794
# _AM_MANGLE_OPTION(NAME)
797
795
# -----------------------
799
797
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
800
798
 
801
799
# _AM_SET_OPTION(NAME)
802
 
# ------------------------------
 
800
# --------------------
803
801
# Set option NAME.  Presently that only means defining a flag for this option.
804
802
AC_DEFUN([_AM_SET_OPTION],
805
 
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
803
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
806
804
 
807
805
# _AM_SET_OPTIONS(OPTIONS)
808
 
# ----------------------------------
 
806
# ------------------------
809
807
# OPTIONS is a space-separated list of Automake options.
810
808
AC_DEFUN([_AM_SET_OPTIONS],
811
809
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
818
816
 
819
817
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
820
818
 
821
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
822
 
# Free Software Foundation, Inc.
 
819
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
823
820
#
824
821
# This file is free software; the Free Software Foundation
825
822
# gives unlimited permission to copy and/or distribute it,
826
823
# with or without modifications, as long as this notice is preserved.
827
824
 
828
 
# serial 5
 
825
# serial 9
829
826
 
830
827
# AM_SANITY_CHECK
831
828
# ---------------
832
829
AC_DEFUN([AM_SANITY_CHECK],
833
830
[AC_MSG_CHECKING([whether build environment is sane])
834
 
# Just in case
835
 
sleep 1
836
 
echo timestamp > conftest.file
837
831
# Reject unsafe characters in $srcdir or the absolute working directory
838
832
# name.  Accept space and tab only in the latter.
839
833
am_lf='
844
838
esac
845
839
case $srcdir in
846
840
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
847
 
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
 
841
    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
848
842
esac
849
843
 
850
 
# Do `set' in a subshell so we don't clobber the current shell's
 
844
# Do 'set' in a subshell so we don't clobber the current shell's
851
845
# arguments.  Must try -L first in case configure is actually a
852
846
# symlink; some systems play weird games with the mod time of symlinks
853
847
# (eg FreeBSD returns the mod time of the symlink's containing
854
848
# directory).
855
849
if (
856
 
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
857
 
   if test "$[*]" = "X"; then
858
 
      # -L didn't work.
859
 
      set X `ls -t "$srcdir/configure" conftest.file`
860
 
   fi
861
 
   rm -f conftest.file
862
 
   if test "$[*]" != "X $srcdir/configure conftest.file" \
863
 
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
864
 
 
865
 
      # If neither matched, then we have a broken ls.  This can happen
866
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
867
 
      # broken ls alias from the environment.  This has actually
868
 
      # happened.  Such a system could not be considered "sane".
869
 
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
870
 
alias in your environment])
871
 
   fi
872
 
 
 
850
   am_has_slept=no
 
851
   for am_try in 1 2; do
 
852
     echo "timestamp, slept: $am_has_slept" > conftest.file
 
853
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
854
     if test "$[*]" = "X"; then
 
855
        # -L didn't work.
 
856
        set X `ls -t "$srcdir/configure" conftest.file`
 
857
     fi
 
858
     if test "$[*]" != "X $srcdir/configure conftest.file" \
 
859
        && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
860
 
 
861
        # If neither matched, then we have a broken ls.  This can happen
 
862
        # if, for instance, CONFIG_SHELL is bash and it inherits a
 
863
        # broken ls alias from the environment.  This has actually
 
864
        # happened.  Such a system could not be considered "sane".
 
865
        AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
866
  alias in your environment])
 
867
     fi
 
868
     if test "$[2]" = conftest.file || test $am_try -eq 2; then
 
869
       break
 
870
     fi
 
871
     # Just in case.
 
872
     sleep 1
 
873
     am_has_slept=yes
 
874
   done
873
875
   test "$[2]" = conftest.file
874
876
   )
875
877
then
879
881
   AC_MSG_ERROR([newly created file is older than distributed files!
880
882
Check your system clock])
881
883
fi
882
 
AC_MSG_RESULT(yes)])
 
884
AC_MSG_RESULT([yes])
 
885
# If we didn't sleep, we still need to ensure time stamps of config.status and
 
886
# generated files are strictly newer.
 
887
am_sleep_pid=
 
888
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
 
889
  ( sleep 1 ) &
 
890
  am_sleep_pid=$!
 
891
fi
 
892
AC_CONFIG_COMMANDS_PRE(
 
893
  [AC_MSG_CHECKING([that generated files are newer than configure])
 
894
   if test -n "$am_sleep_pid"; then
 
895
     # Hide warnings about reused PIDs.
 
896
     wait $am_sleep_pid 2>/dev/null
 
897
   fi
 
898
   AC_MSG_RESULT([done])])
 
899
rm -f conftest.file
 
900
])
883
901
 
884
 
# Copyright (C) 2009  Free Software Foundation, Inc.
 
902
# Copyright (C) 2009-2012 Free Software Foundation, Inc.
885
903
#
886
904
# This file is free software; the Free Software Foundation
887
905
# gives unlimited permission to copy and/or distribute it,
888
906
# with or without modifications, as long as this notice is preserved.
889
907
 
890
 
# serial 1
 
908
# serial 3
891
909
 
892
910
# AM_SILENT_RULES([DEFAULT])
893
911
# --------------------------
894
912
# Enable less verbose build rules; with the default set to DEFAULT
895
 
# (`yes' being less verbose, `no' or empty being verbose).
 
913
# ("yes" being less verbose, "no" or empty being verbose).
896
914
AC_DEFUN([AM_SILENT_RULES],
897
 
[AC_ARG_ENABLE([silent-rules],
898
 
[  --enable-silent-rules          less verbose build output (undo: `make V=1')
899
 
  --disable-silent-rules         verbose build output (undo: `make V=0')])
900
 
case $enable_silent_rules in
901
 
yes) AM_DEFAULT_VERBOSITY=0;;
902
 
no)  AM_DEFAULT_VERBOSITY=1;;
903
 
*)   AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
 
915
[AC_ARG_ENABLE([silent-rules], [dnl
 
916
AS_HELP_STRING(
 
917
  [--enable-silent-rules],
 
918
  [less verbose build output (undo: "make V=1")])
 
919
AS_HELP_STRING(
 
920
  [--disable-silent-rules],
 
921
  [verbose build output (undo: "make V=0")])dnl
 
922
])
 
923
case $enable_silent_rules in @%:@ (((
 
924
  yes) AM_DEFAULT_VERBOSITY=0;;
 
925
   no) AM_DEFAULT_VERBOSITY=1;;
 
926
    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
904
927
esac
 
928
dnl
 
929
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
 
930
dnl do not support nested variable expansions.
 
931
dnl See automake bug#9928 and bug#10237.
 
932
am_make=${MAKE-make}
 
933
AC_CACHE_CHECK([whether $am_make supports nested variables],
 
934
   [am_cv_make_support_nested_variables],
 
935
   [if AS_ECHO([['TRUE=$(BAR$(V))
 
936
BAR0=false
 
937
BAR1=true
 
938
V=1
 
939
am__doit:
 
940
        @$(TRUE)
 
941
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
 
942
  am_cv_make_support_nested_variables=yes
 
943
else
 
944
  am_cv_make_support_nested_variables=no
 
945
fi])
 
946
if test $am_cv_make_support_nested_variables = yes; then
 
947
  dnl Using '$V' instead of '$(V)' breaks IRIX make.
 
948
  AM_V='$(V)'
 
949
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
950
else
 
951
  AM_V=$AM_DEFAULT_VERBOSITY
 
952
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
953
fi
 
954
AC_SUBST([AM_V])dnl
 
955
AM_SUBST_NOTMAKE([AM_V])dnl
 
956
AC_SUBST([AM_DEFAULT_V])dnl
 
957
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
905
958
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
906
959
AM_BACKSLASH='\'
907
960
AC_SUBST([AM_BACKSLASH])dnl
908
961
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
909
962
])
910
963
 
911
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
964
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
912
965
#
913
966
# This file is free software; the Free Software Foundation
914
967
# gives unlimited permission to copy and/or distribute it,
915
968
# with or without modifications, as long as this notice is preserved.
916
969
 
 
970
# serial 2
 
971
 
917
972
# AM_PROG_INSTALL_STRIP
918
973
# ---------------------
919
 
# One issue with vendor `install' (even GNU) is that you can't
 
974
# One issue with vendor 'install' (even GNU) is that you can't
920
975
# specify the program used to strip binaries.  This is especially
921
976
# annoying in cross-compiling environments, where the build's strip
922
977
# is unlikely to handle the host's binaries.
923
978
# Fortunately install-sh will honor a STRIPPROG variable, so we
924
 
# always use install-sh in `make install-strip', and initialize
 
979
# always use install-sh in "make install-strip", and initialize
925
980
# STRIPPROG with the value of the STRIP variable (set by the user).
926
981
AC_DEFUN([AM_PROG_INSTALL_STRIP],
927
982
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
928
 
# Installed binaries are usually stripped using `strip' when the user
929
 
# run `make install-strip'.  However `strip' might not be the right
 
983
# Installed binaries are usually stripped using 'strip' when the user
 
984
# run "make install-strip".  However 'strip' might not be the right
930
985
# tool to use in cross-compilation environments, therefore Automake
931
 
# will honor the `STRIP' environment variable to overrule this program.
932
 
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
986
# will honor the 'STRIP' environment variable to overrule this program.
 
987
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
933
988
if test "$cross_compiling" != no; then
934
989
  AC_CHECK_TOOL([STRIP], [strip], :)
935
990
fi
936
991
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
937
992
AC_SUBST([INSTALL_STRIP_PROGRAM])])
938
993
 
939
 
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
 
994
# Copyright (C) 2006-2012 Free Software Foundation, Inc.
940
995
#
941
996
# This file is free software; the Free Software Foundation
942
997
# gives unlimited permission to copy and/or distribute it,
943
998
# with or without modifications, as long as this notice is preserved.
944
999
 
945
 
# serial 2
 
1000
# serial 3
946
1001
 
947
1002
# _AM_SUBST_NOTMAKE(VARIABLE)
948
1003
# ---------------------------
951
1006
AC_DEFUN([_AM_SUBST_NOTMAKE])
952
1007
 
953
1008
# AM_SUBST_NOTMAKE(VARIABLE)
954
 
# ---------------------------
 
1009
# --------------------------
955
1010
# Public sister of _AM_SUBST_NOTMAKE.
956
1011
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
957
1012
 
958
1013
# Check how to create a tarball.                            -*- Autoconf -*-
959
1014
 
960
 
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
1015
# Copyright (C) 2004-2012 Free Software Foundation, Inc.
961
1016
#
962
1017
# This file is free software; the Free Software Foundation
963
1018
# gives unlimited permission to copy and/or distribute it,
964
1019
# with or without modifications, as long as this notice is preserved.
965
1020
 
966
 
# serial 2
 
1021
# serial 3
967
1022
 
968
1023
# _AM_PROG_TAR(FORMAT)
969
1024
# --------------------
970
1025
# Check how to create a tarball in format FORMAT.
971
 
# FORMAT should be one of `v7', `ustar', or `pax'.
 
1026
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
972
1027
#
973
1028
# Substitute a variable $(am__tar) that is a command
974
1029
# writing to stdout a FORMAT-tarball containing the directory
979
1034
# a tarball read from stdin.
980
1035
#     $(am__untar) < result.tar
981
1036
AC_DEFUN([_AM_PROG_TAR],
982
 
[# Always define AMTAR for backward compatibility.
983
 
AM_MISSING_PROG([AMTAR], [tar])
 
1037
[# Always define AMTAR for backward compatibility.  Yes, it's still used
 
1038
# in the wild :-(  We should find a proper way to deprecate it ...
 
1039
AC_SUBST([AMTAR], ['$${TAR-tar}'])
984
1040
m4_if([$1], [v7],
985
 
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
1041
     [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
986
1042
     [m4_case([$1], [ustar],, [pax],,
987
1043
              [m4_fatal([Unknown tar format])])
988
1044
AC_MSG_CHECKING([how to create a $1 tar archive])
990
1046
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
991
1047
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
992
1048
# Do not fold the above two line into one, because Tru64 sh and
993
 
# Solaris sh will not grok spaces in the rhs of `-'.
 
1049
# Solaris sh will not grok spaces in the rhs of '-'.
994
1050
for _am_tool in $_am_tools
995
1051
do
996
1052
  case $_am_tool in
1051
1107
AC_SUBST([am__untar])
1052
1108
]) # _AM_PROG_TAR
1053
1109
 
 
1110
 
 
1111
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
 
1112
# serial 42 IT_PROG_INTLTOOL
 
1113
AC_DEFUN([IT_PROG_INTLTOOL], [
 
1114
AC_PREREQ([2.50])dnl
 
1115
AC_REQUIRE([AM_NLS])dnl
 
1116
 
 
1117
case "$am__api_version" in
 
1118
    1.[01234])
 
1119
        AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
 
1120
    ;;
 
1121
    *)
 
1122
    ;;
 
1123
esac
 
1124
 
 
1125
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
1126
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
 
1127
INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
1128
if test -n "$1"; then
 
1129
    AC_MSG_CHECKING([for intltool >= $1])
 
1130
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
 
1131
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
 
1132
        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
 
1133
fi
 
1134
 
 
1135
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
 
1136
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
 
1137
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
 
1138
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
 
1139
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
 
1140
fi
 
1141
 
 
1142
if test -z "$AM_DEFAULT_VERBOSITY"; then
 
1143
  AM_DEFAULT_VERBOSITY=1
 
1144
fi
 
1145
AC_SUBST([AM_DEFAULT_VERBOSITY])
 
1146
 
 
1147
INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
 
1148
INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
 
1149
INTLTOOL__v_MERGE_0='@echo "  ITMRG " [$]@;'
 
1150
AC_SUBST(INTLTOOL_V_MERGE)
 
1151
AC_SUBST(INTLTOOL__v_MERGE_)
 
1152
AC_SUBST(INTLTOOL__v_MERGE_0)
 
1153
 
 
1154
INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
 
1155
intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
 
1156
intltool__v_merge_options_0='-q'
 
1157
AC_SUBST(INTLTOOL_V_MERGE_OPTIONS)
 
1158
AC_SUBST(intltool__v_merge_options_)
 
1159
AC_SUBST(intltool__v_merge_options_0)
 
1160
 
 
1161
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1162
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1163
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1164
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1165
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@'
 
1166
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1167
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1168
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1169
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1170
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1171
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1172
if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
 
1173
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@'
 
1174
else
 
1175
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir'
 
1176
fi
 
1177
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1178
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1179
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1180
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1181
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1182
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
 
1183
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
 
1184
 
 
1185
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
 
1186
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
 
1187
_IT_SUBST(INTLTOOL_KEYS_RULE)
 
1188
_IT_SUBST(INTLTOOL_PROP_RULE)
 
1189
_IT_SUBST(INTLTOOL_OAF_RULE)
 
1190
_IT_SUBST(INTLTOOL_PONG_RULE)
 
1191
_IT_SUBST(INTLTOOL_SERVER_RULE)
 
1192
_IT_SUBST(INTLTOOL_SHEET_RULE)
 
1193
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
 
1194
_IT_SUBST(INTLTOOL_UI_RULE)
 
1195
_IT_SUBST(INTLTOOL_XAM_RULE)
 
1196
_IT_SUBST(INTLTOOL_KBD_RULE)
 
1197
_IT_SUBST(INTLTOOL_XML_RULE)
 
1198
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
 
1199
_IT_SUBST(INTLTOOL_CAVES_RULE)
 
1200
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
 
1201
_IT_SUBST(INTLTOOL_THEME_RULE)
 
1202
_IT_SUBST(INTLTOOL_SERVICE_RULE)
 
1203
_IT_SUBST(INTLTOOL_POLICY_RULE)
 
1204
 
 
1205
# Check the gettext tools to make sure they are GNU
 
1206
AC_PATH_PROG(XGETTEXT, xgettext)
 
1207
AC_PATH_PROG(MSGMERGE, msgmerge)
 
1208
AC_PATH_PROG(MSGFMT, msgfmt)
 
1209
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
 
1210
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
 
1211
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
 
1212
fi
 
1213
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
 
1214
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
 
1215
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
 
1216
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
 
1217
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
 
1218
fi
 
1219
 
 
1220
AC_PATH_PROG(INTLTOOL_PERL, perl)
 
1221
if test -z "$INTLTOOL_PERL"; then
 
1222
   AC_MSG_ERROR([perl not found])
 
1223
fi
 
1224
AC_MSG_CHECKING([for perl >= 5.8.1])
 
1225
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
 
1226
if test $? -ne 0; then
 
1227
   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
 
1228
else
 
1229
   IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
 
1230
   AC_MSG_RESULT([$IT_PERL_VERSION])
 
1231
fi
 
1232
if test "x$2" != "xno-xml"; then
 
1233
   AC_MSG_CHECKING([for XML::Parser])
 
1234
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
 
1235
       AC_MSG_RESULT([ok])
 
1236
   else
 
1237
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
 
1238
   fi
 
1239
fi
 
1240
 
 
1241
# Substitute ALL_LINGUAS so we can use it in po/Makefile
 
1242
AC_SUBST(ALL_LINGUAS)
 
1243
 
 
1244
# Set DATADIRNAME correctly if it is not set yet
 
1245
# (copied from glib-gettext.m4)
 
1246
if test -z "$DATADIRNAME"; then
 
1247
  AC_LINK_IFELSE(
 
1248
    [AC_LANG_PROGRAM([[]],
 
1249
                     [[extern int _nl_msg_cat_cntr;
 
1250
                       return _nl_msg_cat_cntr]])],
 
1251
    [DATADIRNAME=share],
 
1252
    [case $host in
 
1253
    *-*-solaris*)
 
1254
    dnl On Solaris, if bind_textdomain_codeset is in libc,
 
1255
    dnl GNU format message catalog is always supported,
 
1256
    dnl since both are added to the libc all together.
 
1257
    dnl Hence, we'd like to go with DATADIRNAME=share
 
1258
    dnl in this case.
 
1259
    AC_CHECK_FUNC(bind_textdomain_codeset,
 
1260
      [DATADIRNAME=share], [DATADIRNAME=lib])
 
1261
    ;;
 
1262
    *)
 
1263
    [DATADIRNAME=lib]
 
1264
    ;;
 
1265
    esac])
 
1266
fi
 
1267
AC_SUBST(DATADIRNAME)
 
1268
 
 
1269
IT_PO_SUBDIR([po])
 
1270
 
 
1271
])
 
1272
 
 
1273
 
 
1274
# IT_PO_SUBDIR(DIRNAME)
 
1275
# ---------------------
 
1276
# All po subdirs have to be declared with this macro; the subdir "po" is
 
1277
# declared by IT_PROG_INTLTOOL.
 
1278
#
 
1279
AC_DEFUN([IT_PO_SUBDIR],
 
1280
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
 
1281
dnl
 
1282
dnl The following CONFIG_COMMANDS should be executed at the very end
 
1283
dnl of config.status.
 
1284
AC_CONFIG_COMMANDS_PRE([
 
1285
  AC_CONFIG_COMMANDS([$1/stamp-it], [
 
1286
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
 
1287
       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
 
1288
    fi
 
1289
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
 
1290
    >"$1/stamp-it.tmp"
 
1291
    [sed '/^#/d
 
1292
         s/^[[].*] *//
 
1293
         /^[    ]*$/d
 
1294
        '"s|^|  $ac_top_srcdir/|" \
 
1295
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
 
1296
    ]
 
1297
    [sed '/^POTFILES =/,/[^\\]$/ {
 
1298
                /^POTFILES =/!d
 
1299
                r $1/POTFILES
 
1300
          }
 
1301
         ' "$1/Makefile.in" >"$1/Makefile"]
 
1302
    rm -f "$1/Makefile.tmp"
 
1303
    mv "$1/stamp-it.tmp" "$1/stamp-it"
 
1304
  ])
 
1305
])dnl
 
1306
])
 
1307
 
 
1308
# _IT_SUBST(VARIABLE)
 
1309
# -------------------
 
1310
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
 
1311
#
 
1312
AC_DEFUN([_IT_SUBST],
 
1313
[
 
1314
AC_SUBST([$1])
 
1315
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
 
1316
]
 
1317
)
 
1318
 
 
1319
# deprecated macros
 
1320
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
 
1321
# A hint is needed for aclocal from Automake <= 1.9.4:
 
1322
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
 
1323
 
 
1324
 
1054
1325
dnl Autoconf macros for libgcrypt
1055
1326
dnl       Copyright (C) 2002, 2004 Free Software Foundation, Inc.
1056
1327
dnl
1178
1449
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1179
1450
#
1180
1451
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1181
 
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
1182
 
#                 Inc.
 
1452
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
1453
#                 Foundation, Inc.
1183
1454
#   Written by Gordon Matzigkeit, 1996
1184
1455
#
1185
1456
# This file is free software; the Free Software Foundation gives
1188
1459
 
1189
1460
m4_define([_LT_COPYING], [dnl
1190
1461
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1191
 
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
1192
 
#                 Inc.
 
1462
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
1463
#                 Foundation, Inc.
1193
1464
#   Written by Gordon Matzigkeit, 1996
1194
1465
#
1195
1466
#   This file is part of GNU Libtool.
1323
1594
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
1324
1595
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
1325
1596
 
 
1597
_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
 
1598
dnl
1326
1599
_LT_DECL([], [host_alias], [0], [The host system])dnl
1327
1600
_LT_DECL([], [host], [0])dnl
1328
1601
_LT_DECL([], [host_os], [0])dnl
1808
2081
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1809
2082
configured by $[0], generated by m4_PACKAGE_STRING.
1810
2083
 
1811
 
Copyright (C) 2010 Free Software Foundation, Inc.
 
2084
Copyright (C) 2011 Free Software Foundation, Inc.
1812
2085
This config.lt script is free software; the Free Software Foundation
1813
2086
gives unlimited permision to copy, distribute and modify it."
1814
2087
 
1972
2245
m4_case([$1],
1973
2246
  [C],                  [_LT_LANG(C)],
1974
2247
  [C++],                [_LT_LANG(CXX)],
 
2248
  [Go],                 [_LT_LANG(GO)],
1975
2249
  [Java],               [_LT_LANG(GCJ)],
1976
2250
  [Fortran 77],         [_LT_LANG(F77)],
1977
2251
  [Fortran],            [_LT_LANG(FC)],
1993
2267
])# _LT_LANG
1994
2268
 
1995
2269
 
 
2270
m4_ifndef([AC_PROG_GO], [
 
2271
# NOTE: This macro has been submitted for inclusion into   #
 
2272
#  GNU Autoconf as AC_PROG_GO.  When it is available in    #
 
2273
#  a released version of Autoconf we should remove this    #
 
2274
#  macro and use it instead.                               #
 
2275
m4_defun([AC_PROG_GO],
 
2276
[AC_LANG_PUSH(Go)dnl
 
2277
AC_ARG_VAR([GOC],     [Go compiler command])dnl
 
2278
AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
 
2279
_AC_ARG_VAR_LDFLAGS()dnl
 
2280
AC_CHECK_TOOL(GOC, gccgo)
 
2281
if test -z "$GOC"; then
 
2282
  if test -n "$ac_tool_prefix"; then
 
2283
    AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
 
2284
  fi
 
2285
fi
 
2286
if test -z "$GOC"; then
 
2287
  AC_CHECK_PROG(GOC, gccgo, gccgo, false)
 
2288
fi
 
2289
])#m4_defun
 
2290
])#m4_ifndef
 
2291
 
 
2292
 
1996
2293
# _LT_LANG_DEFAULT_CONFIG
1997
2294
# -----------------------
1998
2295
m4_defun([_LT_LANG_DEFAULT_CONFIG],
2023
2320
       m4_ifdef([LT_PROG_GCJ],
2024
2321
        [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
2025
2322
 
 
2323
AC_PROVIDE_IFELSE([AC_PROG_GO],
 
2324
  [LT_LANG(GO)],
 
2325
  [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
 
2326
 
2026
2327
AC_PROVIDE_IFELSE([LT_PROG_RC],
2027
2328
  [LT_LANG(RC)],
2028
2329
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
2125
2426
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
2126
2427
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
2127
2428
        _lt_result=$?
2128
 
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
2429
        # If there is a non-empty error log, and "single_module"
 
2430
        # appears in it, assume the flag caused a linker warning
 
2431
        if test -s conftest.err && $GREP single_module conftest.err; then
 
2432
          cat conftest.err >&AS_MESSAGE_LOG_FD
 
2433
        # Otherwise, if the output was created with a 0 exit code from
 
2434
        # the compiler, it worked.
 
2435
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
2129
2436
          lt_cv_apple_cc_single_mod=yes
2130
2437
        else
2131
2438
          cat conftest.err >&AS_MESSAGE_LOG_FD
2133
2440
        rm -rf libconftest.dylib*
2134
2441
        rm -f conftest.*
2135
2442
      fi])
 
2443
 
2136
2444
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
2137
2445
      [lt_cv_ld_exported_symbols_list],
2138
2446
      [lt_cv_ld_exported_symbols_list=no
2144
2452
        [lt_cv_ld_exported_symbols_list=no])
2145
2453
        LDFLAGS="$save_LDFLAGS"
2146
2454
    ])
 
2455
 
2147
2456
    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
2148
2457
      [lt_cv_ld_force_load=no
2149
2458
      cat > conftest.c << _LT_EOF
2161
2470
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
2162
2471
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
2163
2472
      _lt_result=$?
2164
 
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
 
2473
      if test -s conftest.err && $GREP force_load conftest.err; then
 
2474
        cat conftest.err >&AS_MESSAGE_LOG_FD
 
2475
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
2165
2476
        lt_cv_ld_force_load=yes
2166
2477
      else
2167
2478
        cat conftest.err >&AS_MESSAGE_LOG_FD
2206
2517
])
2207
2518
 
2208
2519
 
2209
 
# _LT_DARWIN_LINKER_FEATURES
2210
 
# --------------------------
 
2520
# _LT_DARWIN_LINKER_FEATURES([TAG])
 
2521
# ---------------------------------
2211
2522
# Checks for linker and compiler features on darwin
2212
2523
m4_defun([_LT_DARWIN_LINKER_FEATURES],
2213
2524
[
2218
2529
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2219
2530
  if test "$lt_cv_ld_force_load" = "yes"; then
2220
2531
    _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
2532
    m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
 
2533
                  [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
2221
2534
  else
2222
2535
    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
2223
2536
  fi
2501
2814
    CFLAGS="$SAVE_CFLAGS"
2502
2815
  fi
2503
2816
  ;;
2504
 
sparc*-*solaris*)
 
2817
*-*solaris*)
2505
2818
  # Find out which ABI we are using.
2506
2819
  echo 'int i;' > conftest.$ac_ext
2507
2820
  if AC_TRY_EVAL(ac_compile); then
2508
2821
    case `/usr/bin/file conftest.o` in
2509
2822
    *64-bit*)
2510
2823
      case $lt_cv_prog_gnu_ld in
2511
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
2824
      yes*)
 
2825
        case $host in
 
2826
        i?86-*-solaris*)
 
2827
          LD="${LD-ld} -m elf_x86_64"
 
2828
          ;;
 
2829
        sparc*-*-solaris*)
 
2830
          LD="${LD-ld} -m elf64_sparc"
 
2831
          ;;
 
2832
        esac
 
2833
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 
2834
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 
2835
          LD="${LD-ld}_sol2"
 
2836
        fi
 
2837
        ;;
2512
2838
      *)
2513
2839
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
2514
2840
          LD="${LD-ld} -64"
2585
2911
if test -n "$RANLIB"; then
2586
2912
  case $host_os in
2587
2913
  openbsd*)
2588
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
2914
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
2589
2915
    ;;
2590
2916
  *)
2591
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
2917
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
2592
2918
    ;;
2593
2919
  esac
2594
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
2920
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
2595
2921
fi
2596
2922
 
2597
2923
case $host_os in
2771
3097
    lt_cv_sys_max_cmd_len=196608
2772
3098
    ;;
2773
3099
 
 
3100
  os2*)
 
3101
    # The test takes a long time on OS/2.
 
3102
    lt_cv_sys_max_cmd_len=8192
 
3103
    ;;
 
3104
 
2774
3105
  osf*)
2775
3106
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2776
3107
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2810
3141
      # If test is not a shell built-in, we'll probably end up computing a
2811
3142
      # maximum length that is only half of the actual maximum length, but
2812
3143
      # we can't tell.
2813
 
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
 
3144
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
2814
3145
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
2815
3146
              test $i != 17 # 1/2 MB should be enough
2816
3147
      do
3356
3687
 
3357
3688
case $host_os in
3358
3689
aix3*)
3359
 
  version_type=linux
 
3690
  version_type=linux # correct to gnu/linux during the next big refactor
3360
3691
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
3361
3692
  shlibpath_var=LIBPATH
3362
3693
 
3365
3696
  ;;
3366
3697
 
3367
3698
aix[[4-9]]*)
3368
 
  version_type=linux
 
3699
  version_type=linux # correct to gnu/linux during the next big refactor
3369
3700
  need_lib_prefix=no
3370
3701
  need_version=no
3371
3702
  hardcode_into_libs=yes
3430
3761
  ;;
3431
3762
 
3432
3763
bsdi[[45]]*)
3433
 
  version_type=linux
 
3764
  version_type=linux # correct to gnu/linux during the next big refactor
3434
3765
  need_version=no
3435
3766
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3436
3767
  soname_spec='${libname}${release}${shared_ext}$major'
3569
3900
  ;;
3570
3901
 
3571
3902
dgux*)
3572
 
  version_type=linux
 
3903
  version_type=linux # correct to gnu/linux during the next big refactor
3573
3904
  need_lib_prefix=no
3574
3905
  need_version=no
3575
3906
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
3577
3908
  shlibpath_var=LD_LIBRARY_PATH
3578
3909
  ;;
3579
3910
 
3580
 
freebsd1*)
3581
 
  dynamic_linker=no
3582
 
  ;;
3583
 
 
3584
3911
freebsd* | dragonfly*)
3585
3912
  # DragonFly does not have aout.  When/if they implement a new
3586
3913
  # versioning mechanism, adjust this.
3588
3915
    objformat=`/usr/bin/objformat`
3589
3916
  else
3590
3917
    case $host_os in
3591
 
    freebsd[[123]]*) objformat=aout ;;
 
3918
    freebsd[[23]].*) objformat=aout ;;
3592
3919
    *) objformat=elf ;;
3593
3920
    esac
3594
3921
  fi
3606
3933
  esac
3607
3934
  shlibpath_var=LD_LIBRARY_PATH
3608
3935
  case $host_os in
3609
 
  freebsd2*)
 
3936
  freebsd2.*)
3610
3937
    shlibpath_overrides_runpath=yes
3611
3938
    ;;
3612
3939
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
3626
3953
  ;;
3627
3954
 
3628
3955
gnu*)
3629
 
  version_type=linux
 
3956
  version_type=linux # correct to gnu/linux during the next big refactor
3630
3957
  need_lib_prefix=no
3631
3958
  need_version=no
3632
3959
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3633
3960
  soname_spec='${libname}${release}${shared_ext}$major'
3634
3961
  shlibpath_var=LD_LIBRARY_PATH
 
3962
  shlibpath_overrides_runpath=no
3635
3963
  hardcode_into_libs=yes
3636
3964
  ;;
3637
3965
 
3638
3966
haiku*)
3639
 
  version_type=linux
 
3967
  version_type=linux # correct to gnu/linux during the next big refactor
3640
3968
  need_lib_prefix=no
3641
3969
  need_version=no
3642
3970
  dynamic_linker="$host_os runtime_loader"
3697
4025
  ;;
3698
4026
 
3699
4027
interix[[3-9]]*)
3700
 
  version_type=linux
 
4028
  version_type=linux # correct to gnu/linux during the next big refactor
3701
4029
  need_lib_prefix=no
3702
4030
  need_version=no
3703
4031
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3713
4041
    nonstopux*) version_type=nonstopux ;;
3714
4042
    *)
3715
4043
        if test "$lt_cv_prog_gnu_ld" = yes; then
3716
 
                version_type=linux
 
4044
                version_type=linux # correct to gnu/linux during the next big refactor
3717
4045
        else
3718
4046
                version_type=irix
3719
4047
        fi ;;
3750
4078
  dynamic_linker=no
3751
4079
  ;;
3752
4080
 
3753
 
# This must be Linux ELF.
 
4081
# This must be glibc/ELF.
3754
4082
linux* | k*bsd*-gnu | kopensolaris*-gnu)
3755
 
  version_type=linux
 
4083
  version_type=linux # correct to gnu/linux during the next big refactor
3756
4084
  need_lib_prefix=no
3757
4085
  need_version=no
3758
4086
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3819
4147
  ;;
3820
4148
 
3821
4149
newsos6)
3822
 
  version_type=linux
 
4150
  version_type=linux # correct to gnu/linux during the next big refactor
3823
4151
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3824
4152
  shlibpath_var=LD_LIBRARY_PATH
3825
4153
  shlibpath_overrides_runpath=yes
3888
4216
  ;;
3889
4217
 
3890
4218
solaris*)
3891
 
  version_type=linux
 
4219
  version_type=linux # correct to gnu/linux during the next big refactor
3892
4220
  need_lib_prefix=no
3893
4221
  need_version=no
3894
4222
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3913
4241
  ;;
3914
4242
 
3915
4243
sysv4 | sysv4.3*)
3916
 
  version_type=linux
 
4244
  version_type=linux # correct to gnu/linux during the next big refactor
3917
4245
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3918
4246
  soname_spec='${libname}${release}${shared_ext}$major'
3919
4247
  shlibpath_var=LD_LIBRARY_PATH
3937
4265
 
3938
4266
sysv4*MP*)
3939
4267
  if test -d /usr/nec ;then
3940
 
    version_type=linux
 
4268
    version_type=linux # correct to gnu/linux during the next big refactor
3941
4269
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3942
4270
    soname_spec='$libname${shared_ext}.$major'
3943
4271
    shlibpath_var=LD_LIBRARY_PATH
3968
4296
 
3969
4297
tpf*)
3970
4298
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
3971
 
  version_type=linux
 
4299
  version_type=linux # correct to gnu/linux during the next big refactor
3972
4300
  need_lib_prefix=no
3973
4301
  need_version=no
3974
4302
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3978
4306
  ;;
3979
4307
 
3980
4308
uts4*)
3981
 
  version_type=linux
 
4309
  version_type=linux # correct to gnu/linux during the next big refactor
3982
4310
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3983
4311
  soname_spec='${libname}${release}${shared_ext}$major'
3984
4312
  shlibpath_var=LD_LIBRARY_PATH
4400
4728
  lt_cv_deplibs_check_method=pass_all
4401
4729
  ;;
4402
4730
 
4403
 
# This must be Linux ELF.
 
4731
# This must be glibc/ELF.
4404
4732
linux* | k*bsd*-gnu | kopensolaris*-gnu)
4405
4733
  lt_cv_deplibs_check_method=pass_all
4406
4734
  ;;
4820
5148
    # which start with @ or ?.
4821
5149
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
4822
5150
"     {last_section=section; section=\$ 3};"\
 
5151
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
4823
5152
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4824
5153
"     \$ 0!~/External *\|/{next};"\
4825
5154
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5404
5733
    case $cc_basename in
5405
5734
    nvcc*) # Cuda Compiler Driver 2.2
5406
5735
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
5407
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
 
5736
      if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
 
5737
        _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
 
5738
      fi
5408
5739
      ;;
5409
5740
    esac
5410
5741
  else
5496
5827
        ;;
5497
5828
      *)
5498
5829
        case `$CC -V 2>&1 | sed 5q` in
5499
 
        *Sun\ F* | *Sun*Fortran*)
 
5830
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
5500
5831
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
5501
5832
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5502
5833
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5503
5834
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
5504
5835
          ;;
 
5836
        *Sun\ F* | *Sun*Fortran*)
 
5837
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5838
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5839
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5840
          ;;
5505
5841
        *Sun\ C*)
5506
5842
          # Sun C 5.9
5507
5843
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5508
5844
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5509
5845
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5510
5846
          ;;
 
5847
        *Intel*\ [[CF]]*Compiler*)
 
5848
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5849
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5850
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5851
          ;;
 
5852
        *Portland\ Group*)
 
5853
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5854
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
5855
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5856
          ;;
5511
5857
        esac
5512
5858
        ;;
5513
5859
      esac
5667
6013
    ;;
5668
6014
  cygwin* | mingw* | cegcc*)
5669
6015
    case $cc_basename in
5670
 
    cl*) ;;
 
6016
    cl*)
 
6017
      _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
6018
      ;;
5671
6019
    *)
5672
6020
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
5673
6021
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
5692
6040
  _LT_TAGVAR(hardcode_direct, $1)=no
5693
6041
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5694
6042
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5695
 
  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5696
6043
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
5697
6044
  _LT_TAGVAR(hardcode_minus_L, $1)=no
5698
6045
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5943
6290
        xlf* | bgf* | bgxlf* | mpixlf*)
5944
6291
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5945
6292
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5946
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5947
 
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
6293
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5948
6294
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
5949
6295
          if test "x$supports_anon_versioning" = xyes; then
5950
6296
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6239
6585
        # The linker will not automatically build a static lib if we build a DLL.
6240
6586
        # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6241
6587
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6588
        _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
6242
6589
        _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
6243
6590
        # Don't use ranlib
6244
6591
        _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6285
6632
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6286
6633
      ;;
6287
6634
 
6288
 
    freebsd1*)
6289
 
      _LT_TAGVAR(ld_shlibs, $1)=no
6290
 
      ;;
6291
 
 
6292
6635
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6293
6636
    # support.  Future versions do this automatically, but an explicit c++rt0.o
6294
6637
    # does not break anything, and helps significantly (at the cost of a little
6301
6644
      ;;
6302
6645
 
6303
6646
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6304
 
    freebsd2*)
 
6647
    freebsd2.*)
6305
6648
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6306
6649
      _LT_TAGVAR(hardcode_direct, $1)=yes
6307
6650
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
6340
6683
      fi
6341
6684
      if test "$with_gnu_ld" = no; then
6342
6685
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6343
 
        _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6344
6686
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6345
6687
        _LT_TAGVAR(hardcode_direct, $1)=yes
6346
6688
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6782
7124
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
6783
7125
    [Flag to hardcode $libdir into a binary during linking.
6784
7126
    This must work even if $libdir does not exist])
6785
 
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
6786
 
    [[If ld is used when linking, flag to hardcode $libdir into a binary
6787
 
    during linking.  This must work even if $libdir does not exist]])
6788
7127
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
6789
7128
    [Whether we need a single "-rpath" flag with a separated argument])
6790
7129
_LT_TAGDECL([], [hardcode_direct], [0],
6938
7277
_LT_TAGVAR(hardcode_direct, $1)=no
6939
7278
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6940
7279
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6941
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6942
7280
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6943
7281
_LT_TAGVAR(hardcode_minus_L, $1)=no
6944
7282
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7308
7646
        esac
7309
7647
        ;;
7310
7648
 
7311
 
      freebsd[[12]]*)
 
7649
      freebsd2.*)
7312
7650
        # C++ shared libraries reported to be fairly broken before
7313
7651
        # switch to ELF
7314
7652
        _LT_TAGVAR(ld_shlibs, $1)=no
8069
8407
  }
8070
8408
};
8071
8409
_LT_EOF
 
8410
], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
 
8411
package foo
 
8412
func foo() {
 
8413
}
 
8414
_LT_EOF
8072
8415
])
8073
8416
 
8074
8417
_lt_libdeps_save_CFLAGS=$CFLAGS
8075
8418
case "$CC $CFLAGS " in #(
8076
8419
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
8077
8420
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
 
8421
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
8078
8422
esac
8079
8423
 
8080
8424
dnl Parse the compiler output and extract the necessary
8271
8615
_LT_TAGVAR(hardcode_direct, $1)=no
8272
8616
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
8273
8617
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
8274
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
8275
8618
_LT_TAGVAR(hardcode_libdir_separator, $1)=
8276
8619
_LT_TAGVAR(hardcode_minus_L, $1)=no
8277
8620
_LT_TAGVAR(hardcode_automatic, $1)=no
8404
8747
_LT_TAGVAR(hardcode_direct, $1)=no
8405
8748
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
8406
8749
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
8407
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
8408
8750
_LT_TAGVAR(hardcode_libdir_separator, $1)=
8409
8751
_LT_TAGVAR(hardcode_minus_L, $1)=no
8410
8752
_LT_TAGVAR(hardcode_automatic, $1)=no
8587
8929
])# _LT_LANG_GCJ_CONFIG
8588
8930
 
8589
8931
 
 
8932
# _LT_LANG_GO_CONFIG([TAG])
 
8933
# --------------------------
 
8934
# Ensure that the configuration variables for the GNU Go compiler
 
8935
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
8936
# to write the compiler configuration to `libtool'.
 
8937
m4_defun([_LT_LANG_GO_CONFIG],
 
8938
[AC_REQUIRE([LT_PROG_GO])dnl
 
8939
AC_LANG_SAVE
 
8940
 
 
8941
# Source file extension for Go test sources.
 
8942
ac_ext=go
 
8943
 
 
8944
# Object file extension for compiled Go test sources.
 
8945
objext=o
 
8946
_LT_TAGVAR(objext, $1)=$objext
 
8947
 
 
8948
# Code to be used in simple compile tests
 
8949
lt_simple_compile_test_code="package main; func main() { }"
 
8950
 
 
8951
# Code to be used in simple link tests
 
8952
lt_simple_link_test_code='package main; func main() { }'
 
8953
 
 
8954
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
8955
_LT_TAG_COMPILER
 
8956
 
 
8957
# save warnings/boilerplate of simple test code
 
8958
_LT_COMPILER_BOILERPLATE
 
8959
_LT_LINKER_BOILERPLATE
 
8960
 
 
8961
# Allow CC to be a program name with arguments.
 
8962
lt_save_CC=$CC
 
8963
lt_save_CFLAGS=$CFLAGS
 
8964
lt_save_GCC=$GCC
 
8965
GCC=yes
 
8966
CC=${GOC-"gccgo"}
 
8967
CFLAGS=$GOFLAGS
 
8968
compiler=$CC
 
8969
_LT_TAGVAR(compiler, $1)=$CC
 
8970
_LT_TAGVAR(LD, $1)="$LD"
 
8971
_LT_CC_BASENAME([$compiler])
 
8972
 
 
8973
# Go did not exist at the time GCC didn't implicitly link libc in.
 
8974
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
8975
 
 
8976
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
8977
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
8978
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
 
8979
 
 
8980
if test -n "$compiler"; then
 
8981
  _LT_COMPILER_NO_RTTI($1)
 
8982
  _LT_COMPILER_PIC($1)
 
8983
  _LT_COMPILER_C_O($1)
 
8984
  _LT_COMPILER_FILE_LOCKS($1)
 
8985
  _LT_LINKER_SHLIBS($1)
 
8986
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
8987
 
 
8988
  _LT_CONFIG($1)
 
8989
fi
 
8990
 
 
8991
AC_LANG_RESTORE
 
8992
 
 
8993
GCC=$lt_save_GCC
 
8994
CC=$lt_save_CC
 
8995
CFLAGS=$lt_save_CFLAGS
 
8996
])# _LT_LANG_GO_CONFIG
 
8997
 
 
8998
 
8590
8999
# _LT_LANG_RC_CONFIG([TAG])
8591
9000
# -------------------------
8592
9001
# Ensure that the configuration variables for the Windows resource compiler
8656
9065
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
8657
9066
 
8658
9067
 
 
9068
# LT_PROG_GO
 
9069
# ----------
 
9070
AC_DEFUN([LT_PROG_GO],
 
9071
[AC_CHECK_TOOL(GOC, gccgo,)
 
9072
])
 
9073
 
 
9074
 
8659
9075
# LT_PROG_RC
8660
9076
# ----------
8661
9077
AC_DEFUN([LT_PROG_RC],
9320
9736
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
9321
9737
m4_define([_LT_WITH_PIC],
9322
9738
[AC_ARG_WITH([pic],
9323
 
    [AS_HELP_STRING([--with-pic],
 
9739
    [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
9324
9740
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
9325
 
    [pic_mode="$withval"],
 
9741
    [lt_p=${PACKAGE-default}
 
9742
    case $withval in
 
9743
    yes|no) pic_mode=$withval ;;
 
9744
    *)
 
9745
      pic_mode=default
 
9746
      # Look at the argument we got.  We use all the common list separators.
 
9747
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9748
      for lt_pkg in $withval; do
 
9749
        IFS="$lt_save_ifs"
 
9750
        if test "X$lt_pkg" = "X$lt_p"; then
 
9751
          pic_mode=yes
 
9752
        fi
 
9753
      done
 
9754
      IFS="$lt_save_ifs"
 
9755
      ;;
 
9756
    esac],
9326
9757
    [pic_mode=default])
9327
9758
 
9328
9759
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
9494
9925
 
9495
9926
# @configure_input@
9496
9927
 
9497
 
# serial 3293 ltversion.m4
 
9928
# serial 3337 ltversion.m4
9498
9929
# This file is part of GNU Libtool
9499
9930
 
9500
 
m4_define([LT_PACKAGE_VERSION], [2.4])
9501
 
m4_define([LT_PACKAGE_REVISION], [1.3293])
 
9931
m4_define([LT_PACKAGE_VERSION], [2.4.2])
 
9932
m4_define([LT_PACKAGE_REVISION], [1.3337])
9502
9933
 
9503
9934
AC_DEFUN([LTVERSION_VERSION],
9504
 
[macro_version='2.4'
9505
 
macro_revision='1.3293'
 
9935
[macro_version='2.4.2'
 
9936
macro_revision='1.3337'
9506
9937
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
9507
9938
_LT_DECL(, macro_revision, 0)
9508
9939
])
9667
10098
# ----------------------------------
9668
10099
AC_DEFUN([PKG_PROG_PKG_CONFIG],
9669
10100
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
9670
 
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
 
10101
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
 
10102
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
9671
10103
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
9672
10104
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
9673
10105
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
9713
10145
    pkg_cv_[]$1="$$1"
9714
10146
 elif test -n "$PKG_CONFIG"; then
9715
10147
    PKG_CHECK_EXISTS([$3],
9716
 
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
10148
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
 
10149
                      test "x$?" != "x0" && pkg_failed=yes ],
9717
10150
                     [pkg_failed=yes])
9718
10151
 else
9719
10152
    pkg_failed=untried
9761
10194
        AC_MSG_RESULT([no])
9762
10195
        _PKG_SHORT_ERRORS_SUPPORTED
9763
10196
        if test $_pkg_short_errors_supported = yes; then
9764
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
 
10197
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
9765
10198
        else 
9766
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
 
10199
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
9767
10200
        fi
9768
10201
        # Put the nasty error message in config.log where it belongs
9769
10202
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
9776
10209
Consider adjusting the PKG_CONFIG_PATH environment variable if you
9777
10210
installed software in a non-standard prefix.
9778
10211
 
9779
 
_PKG_TEXT])
 
10212
_PKG_TEXT])[]dnl
9780
10213
        ])
9781
10214
elif test $pkg_failed = untried; then
9782
10215
        AC_MSG_RESULT([no])
9787
10220
 
9788
10221
_PKG_TEXT
9789
10222
 
9790
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])
 
10223
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
9791
10224
        ])
9792
10225
else
9793
10226
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
9797
10230
fi[]dnl
9798
10231
])# PKG_CHECK_MODULES
9799
10232
 
 
10233
 
 
10234
# PKG_INSTALLDIR(DIRECTORY)
 
10235
# -------------------------
 
10236
# Substitutes the variable pkgconfigdir as the location where a module
 
10237
# should install pkg-config .pc files. By default the directory is
 
10238
# $libdir/pkgconfig, but the default can be changed by passing
 
10239
# DIRECTORY. The user can override through the --with-pkgconfigdir
 
10240
# parameter.
 
10241
AC_DEFUN([PKG_INSTALLDIR],
 
10242
[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
 
10243
m4_pushdef([pkg_description],
 
10244
    [pkg-config installation directory @<:@]pkg_default[@:>@])
 
10245
AC_ARG_WITH([pkgconfigdir],
 
10246
    [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
 
10247
    [with_pkgconfigdir=]pkg_default)
 
10248
AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
 
10249
m4_popdef([pkg_default])
 
10250
m4_popdef([pkg_description])
 
10251
]) dnl PKG_INSTALLDIR
 
10252
 
 
10253
 
 
10254
# PKG_NOARCH_INSTALLDIR(DIRECTORY)
 
10255
# -------------------------
 
10256
# Substitutes the variable noarch_pkgconfigdir as the location where a
 
10257
# module should install arch-independent pkg-config .pc files. By
 
10258
# default the directory is $datadir/pkgconfig, but the default can be
 
10259
# changed by passing DIRECTORY. The user can override through the
 
10260
# --with-noarch-pkgconfigdir parameter.
 
10261
AC_DEFUN([PKG_NOARCH_INSTALLDIR],
 
10262
[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
 
10263
m4_pushdef([pkg_description],
 
10264
    [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
 
10265
AC_ARG_WITH([noarch-pkgconfigdir],
 
10266
    [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
 
10267
    [with_noarch_pkgconfigdir=]pkg_default)
 
10268
AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
 
10269
m4_popdef([pkg_default])
 
10270
m4_popdef([pkg_description])
 
10271
]) dnl PKG_NOARCH_INSTALLDIR
 
10272
 
 
10273
dnl GNOME_CODE_COVERAGE
 
10274
dnl
 
10275
dnl Defines CODE_COVERAGE_CFLAGS and CODE_COVERAGE_LDFLAGS which should be
 
10276
dnl included in the CFLAGS and LIBS/LDFLAGS variables of every build target
 
10277
dnl (program or library) which should be built with code coverage support.
 
10278
dnl Also defines GNOME_CODE_COVERAGE_RULES which should be substituted in your
 
10279
dnl Makefile; and $enable_code_coverage which can be used in subsequent
 
10280
dnl configure output.
 
10281
dnl
 
10282
dnl Note that all optimisation flags in CFLAGS must be disabled when code
 
10283
dnl coverage is enabled.
 
10284
dnl
 
10285
dnl Derived from Makefile.decl in GLib, originally licenced under LGPLv2.1+.
 
10286
dnl This file is licenced under GPLv3. For the full gnome-common licence
 
10287
dnl (GPLv3), see the COPYING file.
 
10288
dnl
 
10289
dnl Usage example:
 
10290
dnl configure.ac:
 
10291
dnl    GNOME_CODE_COVERAGE
 
10292
dnl
 
10293
dnl Makefile.am:
 
10294
dnl    @GNOME_CODE_COVERAGE_RULES@
 
10295
dnl    my_program_LIBS = … $(CODE_COVERAGE_LDFLAGS) …
 
10296
dnl    my_program_CFLAGS = … $(CODE_COVERAGE_CFLAGS) …
 
10297
dnl
 
10298
dnl This results in a “check-code-coverage” rule being added to any Makefile.am
 
10299
dnl which includes “@GNOME_CODE_COVERAGE_RULES@” (assuming the module has been
 
10300
dnl configured with --enable-code-coverage). Running `make check-code-coverage`
 
10301
dnl in that directory will run the module’s test suite (`make check`) and build
 
10302
dnl a code coverage report detailing the code which was touched, then print the
 
10303
dnl URI for the report.
 
10304
 
 
10305
AC_DEFUN([GNOME_CODE_COVERAGE],[
 
10306
        dnl Check for --enable-code-coverage
 
10307
        AC_MSG_CHECKING([whether to build with code coverage support])
 
10308
        AC_ARG_ENABLE([code-coverage], AS_HELP_STRING([--enable-code-coverage], [Whether to enable code coverage support]),, enable_code_coverage=no)
 
10309
        AM_CONDITIONAL([CODE_COVERAGE_ENABLED], [test x$enable_code_coverage = xyes])
 
10310
        AC_SUBST([CODE_COVERAGE_ENABLED], [$enable_code_coverage])
 
10311
        AC_MSG_RESULT($enable_code_coverage)
 
10312
 
 
10313
        AS_IF([ test "$enable_code_coverage" = "yes" ], [
 
10314
                dnl Check if gcc is being used
 
10315
                AS_IF([ test "$GCC" = "no" ], [
 
10316
                        AC_MSG_ERROR([not compiling with gcc, which is required for gcov code coverage])
 
10317
                ])
 
10318
 
 
10319
                # List of supported lcov versions.
 
10320
                lcov_version_list="1.6 1.7 1.8 1.9"
 
10321
 
 
10322
                AC_CHECK_PROG([LCOV], [lcov], [lcov])
 
10323
                AC_CHECK_PROG([GENHTML], [genhtml], [genhtml])
 
10324
 
 
10325
                AS_IF([ test "$LCOV" ], [
 
10326
                        AC_CACHE_CHECK([for lcov version], gnome_cv_lcov_version, [
 
10327
                                gnome_cv_lcov_version=invalid
 
10328
                                lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'`
 
10329
                                for lcov_check_version in $lcov_version_list; do
 
10330
                                        if test "$lcov_version" = "$lcov_check_version"; then
 
10331
                                                gnome_cv_lcov_version="$lcov_check_version (ok)"
 
10332
                                        fi
 
10333
                                done
 
10334
                        ])
 
10335
                ], [
 
10336
                        lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list"
 
10337
                        AC_MSG_ERROR([$lcov_msg])
 
10338
                ])
 
10339
 
 
10340
                case $gnome_cv_lcov_version in
 
10341
                        ""|invalid[)]
 
10342
                                lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)."
 
10343
                                AC_MSG_ERROR([$lcov_msg])
 
10344
                                LCOV="exit 0;"
 
10345
                        ;;
 
10346
                esac
 
10347
 
 
10348
                AS_IF([ test -z "$GENHTML" ], [
 
10349
                        AC_MSG_ERROR([Could not find genhtml from the lcov package])
 
10350
                ])
 
10351
 
 
10352
                dnl Build the code coverage flags
 
10353
                CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
 
10354
                CODE_COVERAGE_LDFLAGS="-lgcov"
 
10355
 
 
10356
                AC_SUBST([CODE_COVERAGE_CFLAGS])
 
10357
                AC_SUBST([CODE_COVERAGE_LDFLAGS])
 
10358
        ])
 
10359
 
 
10360
GNOME_CODE_COVERAGE_RULES='
 
10361
# Code coverage
 
10362
#
 
10363
# Optional:
 
10364
#  - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
 
10365
#    (Default: $(top_builddir))
 
10366
#  - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
 
10367
#    by lcov for code coverage. (Default:
 
10368
#    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
 
10369
#  - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
 
10370
#    reports to be created. (Default:
 
10371
#    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
 
10372
#  - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the lcov instance.
 
10373
#    (Default: empty)
 
10374
#  - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
 
10375
#    instance. (Default: empty)
 
10376
#
 
10377
# The generated report will be titled using the $(PACKAGE_NAME) and
 
10378
# $(PACKAGE_VERSION). In order to add the current git hash to the title,
 
10379
# use the git-version-gen script, available online.
 
10380
 
 
10381
# Optional variables
 
10382
CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
 
10383
CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
 
10384
CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
 
10385
CODE_COVERAGE_LCOV_OPTIONS ?=
 
10386
CODE_COVERAGE_GENHTML_OPTIONS ?=
 
10387
 
 
10388
# Use recursive makes in order to ignore errors during check
 
10389
check-code-coverage:
 
10390
ifdef CODE_COVERAGE_ENABLED
 
10391
        -$(MAKE) $(AM_MAKEFLAGS) -k check
 
10392
        $(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
 
10393
else
 
10394
        @echo "Need to reconfigure with --enable-code-coverage"
 
10395
endif
 
10396
 
 
10397
# Capture code coverage data
 
10398
code-coverage-capture: code-coverage-capture-hook
 
10399
ifdef CODE_COVERAGE_ENABLED
 
10400
        $(LCOV) --directory $(CODE_COVERAGE_DIRECTORY) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_OPTIONS)
 
10401
        $(LCOV) --directory $(CODE_COVERAGE_DIRECTORY) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" --output-file "$(CODE_COVERAGE_OUTPUT_FILE)"
 
10402
        -rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
 
10403
        LANG=C $(GENHTML) --prefix $(CODE_COVERAGE_DIRECTORY) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
 
10404
        @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
 
10405
else
 
10406
        @echo "Need to reconfigure with --enable-code-coverage"
 
10407
endif
 
10408
 
 
10409
# Hook rule executed before code-coverage-capture, overridable by the user
 
10410
code-coverage-capture-hook:
 
10411
 
 
10412
clean: code-coverage-clean
 
10413
code-coverage-clean:
 
10414
        -$(LCOV) --directory $(top_builddir) -z
 
10415
        -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
 
10416
        -find . -name "*.gcda" -o -name "*.gcov" -delete
 
10417
 
 
10418
GITIGNOREFILES ?=
 
10419
GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
 
10420
 
 
10421
DISTCHECK_CONFIGURE_FLAGS ?=
 
10422
DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
 
10423
 
 
10424
.PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
 
10425
'
 
10426
 
 
10427
        AC_SUBST([GNOME_CODE_COVERAGE_RULES])
 
10428
        m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([GNOME_CODE_COVERAGE_RULES])])
 
10429
])
 
10430
 
9800
10431
# gnome-common.m4
9801
10432
#
9802
10433
# serial 3
9844
10475
 
9845
10476
        DISABLE_DEPRECATED=""
9846
10477
        if test $USE_MAINTAINER_MODE = yes; then
9847
 
                DOMAINS="G ATK PANGO GDK GDK_PIXBUF GTK GCONF BONOBO BONOBO_UI GNOME LIBGLADE VTE GNOME_VFS WNCK LIBSOUP"
 
10478
                DOMAINS="GCONF BONOBO BONOBO_UI GNOME LIBGLADE GNOME_VFS WNCK LIBSOUP"
9848
10479
                for DOMAIN in $DOMAINS; do
9849
10480
                       DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES"
9850
10481
                done
10063
10694
  AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"])
10064
10695
])
10065
10696
 
10066
 
 
10067
 
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
10068
 
# serial 40 IT_PROG_INTLTOOL
10069
 
AC_DEFUN([IT_PROG_INTLTOOL], [
10070
 
AC_PREREQ([2.50])dnl
10071
 
AC_REQUIRE([AM_NLS])dnl
10072
 
 
10073
 
case "$am__api_version" in
10074
 
    1.[01234])
10075
 
        AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
10076
 
    ;;
10077
 
    *)
10078
 
    ;;
10079
 
esac
10080
 
 
10081
 
if test -n "$1"; then
10082
 
    AC_MSG_CHECKING([for intltool >= $1])
10083
 
 
10084
 
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
10085
 
    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
10086
 
    [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
10087
 
    ]
10088
 
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
10089
 
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
10090
 
        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
10091
 
fi
10092
 
 
10093
 
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
10094
 
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
10095
 
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
10096
 
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
10097
 
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
10098
 
fi
10099
 
 
10100
 
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
10101
 
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
10102
 
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
10103
 
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
10104
 
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
10105
 
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
10106
 
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
10107
 
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
10108
 
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
10109
 
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
10110
 
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
10111
 
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' 
10112
 
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
10113
 
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
10114
 
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
10115
 
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
10116
 
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
10117
 
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
10118
 
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
10119
 
 
10120
 
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
10121
 
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
10122
 
_IT_SUBST(INTLTOOL_KEYS_RULE)
10123
 
_IT_SUBST(INTLTOOL_PROP_RULE)
10124
 
_IT_SUBST(INTLTOOL_OAF_RULE)
10125
 
_IT_SUBST(INTLTOOL_PONG_RULE)
10126
 
_IT_SUBST(INTLTOOL_SERVER_RULE)
10127
 
_IT_SUBST(INTLTOOL_SHEET_RULE)
10128
 
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
10129
 
_IT_SUBST(INTLTOOL_UI_RULE)
10130
 
_IT_SUBST(INTLTOOL_XAM_RULE)
10131
 
_IT_SUBST(INTLTOOL_KBD_RULE)
10132
 
_IT_SUBST(INTLTOOL_XML_RULE)
10133
 
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
10134
 
_IT_SUBST(INTLTOOL_CAVES_RULE)
10135
 
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
10136
 
_IT_SUBST(INTLTOOL_THEME_RULE)
10137
 
_IT_SUBST(INTLTOOL_SERVICE_RULE)
10138
 
_IT_SUBST(INTLTOOL_POLICY_RULE)
10139
 
 
10140
 
# Check the gettext tools to make sure they are GNU
10141
 
AC_PATH_PROG(XGETTEXT, xgettext)
10142
 
AC_PATH_PROG(MSGMERGE, msgmerge)
10143
 
AC_PATH_PROG(MSGFMT, msgfmt)
10144
 
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
10145
 
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
10146
 
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
10147
 
fi
10148
 
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
10149
 
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
10150
 
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
10151
 
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
10152
 
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
10153
 
fi
10154
 
 
10155
 
AC_PATH_PROG(INTLTOOL_PERL, perl)
10156
 
if test -z "$INTLTOOL_PERL"; then
10157
 
   AC_MSG_ERROR([perl not found])
10158
 
fi
10159
 
AC_MSG_CHECKING([for perl >= 5.8.1])
10160
 
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
10161
 
if test $? -ne 0; then
10162
 
   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
10163
 
else
10164
 
   IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
10165
 
   AC_MSG_RESULT([$IT_PERL_VERSION])
10166
 
fi
10167
 
if test "x$2" != "xno-xml"; then
10168
 
   AC_MSG_CHECKING([for XML::Parser])
10169
 
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
10170
 
       AC_MSG_RESULT([ok])
10171
 
   else
10172
 
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
10173
 
   fi
10174
 
fi
10175
 
 
10176
 
# Substitute ALL_LINGUAS so we can use it in po/Makefile
10177
 
AC_SUBST(ALL_LINGUAS)
10178
 
 
10179
 
# Set DATADIRNAME correctly if it is not set yet
10180
 
# (copied from glib-gettext.m4)
10181
 
if test -z "$DATADIRNAME"; then
10182
 
  AC_LINK_IFELSE(
10183
 
    [AC_LANG_PROGRAM([[]],
10184
 
                     [[extern int _nl_msg_cat_cntr;
10185
 
                       return _nl_msg_cat_cntr]])],
10186
 
    [DATADIRNAME=share],
10187
 
    [case $host in
10188
 
    *-*-solaris*)
10189
 
    dnl On Solaris, if bind_textdomain_codeset is in libc,
10190
 
    dnl GNU format message catalog is always supported,
10191
 
    dnl since both are added to the libc all together.
10192
 
    dnl Hence, we'd like to go with DATADIRNAME=share
10193
 
    dnl in this case.
10194
 
    AC_CHECK_FUNC(bind_textdomain_codeset,
10195
 
      [DATADIRNAME=share], [DATADIRNAME=lib])
10196
 
    ;;
10197
 
    *)
10198
 
    [DATADIRNAME=lib]
10199
 
    ;;
10200
 
    esac])
10201
 
fi
10202
 
AC_SUBST(DATADIRNAME)
10203
 
 
10204
 
IT_PO_SUBDIR([po])
10205
 
 
10206
 
])
10207
 
 
10208
 
 
10209
 
# IT_PO_SUBDIR(DIRNAME)
10210
 
# ---------------------
10211
 
# All po subdirs have to be declared with this macro; the subdir "po" is
10212
 
# declared by IT_PROG_INTLTOOL.
10213
 
#
10214
 
AC_DEFUN([IT_PO_SUBDIR],
10215
 
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
10216
 
dnl
10217
 
dnl The following CONFIG_COMMANDS should be executed at the very end
10218
 
dnl of config.status.
10219
 
AC_CONFIG_COMMANDS_PRE([
10220
 
  AC_CONFIG_COMMANDS([$1/stamp-it], [
10221
 
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
10222
 
       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
10223
 
    fi
10224
 
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
10225
 
    >"$1/stamp-it.tmp"
10226
 
    [sed '/^#/d
10227
 
         s/^[[].*] *//
10228
 
         /^[    ]*$/d
10229
 
        '"s|^|  $ac_top_srcdir/|" \
10230
 
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
10231
 
    ]
10232
 
    [sed '/^POTFILES =/,/[^\\]$/ {
10233
 
                /^POTFILES =/!d
10234
 
                r $1/POTFILES
10235
 
          }
10236
 
         ' "$1/Makefile.in" >"$1/Makefile"]
10237
 
    rm -f "$1/Makefile.tmp"
10238
 
    mv "$1/stamp-it.tmp" "$1/stamp-it"
10239
 
  ])
10240
 
])dnl
10241
 
])
10242
 
 
10243
 
# _IT_SUBST(VARIABLE)
10244
 
# -------------------
10245
 
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
10246
 
#
10247
 
AC_DEFUN([_IT_SUBST],
10248
 
[
10249
 
AC_SUBST([$1])
10250
 
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
10251
 
]
10252
 
)
10253
 
 
10254
 
# deprecated macros
10255
 
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
10256
 
# A hint is needed for aclocal from Automake <= 1.9.4:
10257
 
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
10258
 
 
10259
 
 
10260
10697
dnl -*- mode: autoconf -*-
10261
10698
dnl Copyright 2009 Johan Dahlin
10262
10699
dnl
10300
10737
    ],dnl
10301
10738
    [auto],[dnl
10302
10739
        PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, found_introspection=no)
 
10740
        dnl Canonicalize enable_introspection
 
10741
        enable_introspection=$found_introspection
10303
10742
    ],dnl
10304
10743
    [dnl        
10305
10744
        AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@])