~ubuntu-branches/ubuntu/utopic/gnome-user-share/utopic

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-09-27 15:08:33 UTC
  • mfrom: (1.2.13)
  • Revision ID: package-import@ubuntu.com-20120927150833-ufqss982zfu1ah03
Tags: 3.0.4-0ubuntu1
* New upstream bugfix release
* debian/control:
  - Use standards-version 3.9.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.11.3 -*- Autoconf -*-
2
 
 
3
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
5
 
# Inc.
 
1
# generated automatically by aclocal 1.12.2 -*- Autoconf -*-
 
2
 
 
3
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
 
4
 
6
5
# This file is free software; the Free Software Foundation
7
6
# gives unlimited permission to copy and/or distribute it,
8
7
# with or without modifications, as long as this notice is preserved.
14
13
 
15
14
m4_ifndef([AC_AUTOCONF_VERSION],
16
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17
 
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
18
 
[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.
19
18
You have another version of autoconf.  It may work, but is not guaranteed to.
20
19
If you have problems, you may need to regenerate the build system entirely.
21
 
To do so, use the procedure documented by the package, typically `autoreconf'.])])
 
20
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
22
21
 
23
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
24
 
# Foundation, Inc.
 
22
# Copyright (C) 2002-2012 Free Software Foundation, Inc.
25
23
#
26
24
# This file is free software; the Free Software Foundation
27
25
# gives unlimited permission to copy and/or distribute it,
28
26
# with or without modifications, as long as this notice is preserved.
29
27
 
30
 
# serial 1
 
28
# serial 8
31
29
 
32
30
# AM_AUTOMAKE_VERSION(VERSION)
33
31
# ----------------------------
35
33
# generated from the m4 files accompanying Automake X.Y.
36
34
# (This private macro should not be called outside this file.)
37
35
AC_DEFUN([AM_AUTOMAKE_VERSION],
38
 
[am__api_version='1.11'
 
36
[am__api_version='1.12'
39
37
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
40
38
dnl require some minimum version.  Point them to the right macro.
41
 
m4_if([$1], [1.11.3], [],
 
39
m4_if([$1], [1.12.2], [],
42
40
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
43
41
])
44
42
 
54
52
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
55
53
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
56
54
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
57
 
[AM_AUTOMAKE_VERSION([1.11.3])dnl
 
55
[AM_AUTOMAKE_VERSION([1.12.2])dnl
58
56
m4_ifndef([AC_AUTOCONF_VERSION],
59
57
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
60
58
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
61
59
 
62
60
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
63
61
 
64
 
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
 
62
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
65
63
#
66
64
# This file is free software; the Free Software Foundation
67
65
# gives unlimited permission to copy and/or distribute it,
68
66
# with or without modifications, as long as this notice is preserved.
69
67
 
70
 
# serial 1
 
68
# serial 2
71
69
 
72
70
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
73
 
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
74
 
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
 
71
# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
 
72
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
75
73
#
76
74
# Of course, Automake must honor this variable whenever it calls a
77
75
# tool from the auxiliary directory.  The problem is that $srcdir (and
90
88
#
91
89
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
92
90
# are both prefixed by $srcdir.  In an in-source build this is usually
93
 
# harmless because $srcdir is `.', but things will broke when you
 
91
# harmless because $srcdir is '.', but things will broke when you
94
92
# start a VPATH build or use an absolute $srcdir.
95
93
#
96
94
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
116
114
 
117
115
# AM_CONDITIONAL                                            -*- Autoconf -*-
118
116
 
119
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
120
 
# Free Software Foundation, Inc.
 
117
# Copyright (C) 1997-2012 Free Software Foundation, Inc.
121
118
#
122
119
# This file is free software; the Free Software Foundation
123
120
# gives unlimited permission to copy and/or distribute it,
124
121
# with or without modifications, as long as this notice is preserved.
125
122
 
126
 
# serial 9
 
123
# serial 10
127
124
 
128
125
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
129
126
# -------------------------------------
130
127
# Define a conditional.
131
128
AC_DEFUN([AM_CONDITIONAL],
132
 
[AC_PREREQ(2.52)dnl
133
 
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
134
 
        [$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
135
132
AC_SUBST([$1_TRUE])dnl
136
133
AC_SUBST([$1_FALSE])dnl
137
134
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
150
147
Usually this means the macro was only invoked conditionally.]])
151
148
fi])])
152
149
 
153
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
154
 
# 2010, 2011 Free Software Foundation, Inc.
 
150
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
155
151
#
156
152
# This file is free software; the Free Software Foundation
157
153
# gives unlimited permission to copy and/or distribute it,
158
154
# with or without modifications, as long as this notice is preserved.
159
155
 
160
 
# serial 12
 
156
# serial 17
161
157
 
162
 
# 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
163
159
# written in clear, in which case automake, when reading aclocal.m4,
164
160
# will think it sees a *use*, and therefore will trigger all it's
165
161
# C support machinery.  Also note that it means that autoscan, seeing
169
165
# _AM_DEPENDENCIES(NAME)
170
166
# ----------------------
171
167
# See how the compiler implements dependency checking.
172
 
# NAME is "CC", "CXX", "GCJ", or "OBJC".
 
168
# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
173
169
# We try a few techniques and use that to set a single cache variable.
174
170
#
175
171
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
182
178
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
183
179
AC_REQUIRE([AM_DEP_TRACK])dnl
184
180
 
185
 
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
186
 
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
187
 
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
188
 
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
189
 
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
190
 
                   [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=])
191
188
 
192
189
AC_CACHE_CHECK([dependency style of $depcc],
193
190
               [am_cv_$1_dependencies_compiler_type],
195
192
  # We make a subdir and do the tests there.  Otherwise we can end up
196
193
  # making bogus files that we don't know about and never remove.  For
197
194
  # instance it was reported that on HP-UX the gcc test will end up
198
 
  # making a dummy file named `D' -- because `-MD' means `put the output
199
 
  # in D'.
 
195
  # making a dummy file named 'D' -- because '-MD' means "put the output
 
196
  # in D".
200
197
  rm -rf conftest.dir
201
198
  mkdir conftest.dir
202
199
  # Copy depcomp to subdir because otherwise we won't find it if we're
236
233
    : > sub/conftest.c
237
234
    for i in 1 2 3 4 5 6; do
238
235
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
239
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
240
 
      # Solaris 8's {/usr,}/bin/sh.
241
 
      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
242
239
    done
243
240
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
244
241
 
245
 
    # 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"
246
243
    # mode.  It turns out that the SunPro C++ compiler does not properly
247
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
248
 
    # 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.
249
246
    am__obj=sub/conftest.${OBJEXT-o}
250
247
    am__minus_obj="-o $am__obj"
251
248
    case $depmode in
254
251
      test "$am__universal" = false || continue
255
252
      ;;
256
253
    nosideeffect)
257
 
      # after this tag, mechanisms are not by side-effect, so they'll
258
 
      # 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.
259
256
      if test "x$enable_dependency_tracking" = xyes; then
260
257
        continue
261
258
      else
263
260
      fi
264
261
      ;;
265
262
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
266
 
      # This compiler won't grok `-c -o', but also, the minuso test has
 
263
      # This compiler won't grok '-c -o', but also, the minuso test has
267
264
      # not run yet.  These depmodes are late enough in the game, and
268
265
      # so weak that their functioning should not be impacted.
269
266
      am__obj=conftest.${OBJEXT-o}
311
308
# AM_SET_DEPDIR
312
309
# -------------
313
310
# Choose a directory name for dependency files.
314
 
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
 
311
# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
315
312
AC_DEFUN([AM_SET_DEPDIR],
316
313
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
317
314
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
321
318
# AM_DEP_TRACK
322
319
# ------------
323
320
AC_DEFUN([AM_DEP_TRACK],
324
 
[AC_ARG_ENABLE(dependency-tracking,
325
 
[  --disable-dependency-tracking  speeds up one-time build
326
 
  --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])])
327
328
if test "x$enable_dependency_tracking" != xno; then
328
329
  am_depcomp="$ac_aux_dir/depcomp"
329
330
  AMDEPBACKSLASH='\'
338
339
 
339
340
# Generate code to set up dependency tracking.              -*- Autoconf -*-
340
341
 
341
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
342
 
# Free Software Foundation, Inc.
 
342
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
343
343
#
344
344
# This file is free software; the Free Software Foundation
345
345
# gives unlimited permission to copy and/or distribute it,
346
346
# with or without modifications, as long as this notice is preserved.
347
347
 
348
 
#serial 5
 
348
# serial 6
349
349
 
350
350
# _AM_OUTPUT_DEPENDENCY_COMMANDS
351
351
# ------------------------------
364
364
    # Strip MF so we end up with the name of the file.
365
365
    mf=`echo "$mf" | sed -e 's/:.*$//'`
366
366
    # Check whether this is an Automake generated Makefile or not.
367
 
    # We used to match only the files named `Makefile.in', but
 
367
    # We used to match only the files named 'Makefile.in', but
368
368
    # some people rename them; so instead we look at the file content.
369
369
    # Grep'ing the first line is not enough: some people post-process
370
370
    # each Makefile.in and add a new line on top of each file to say so.
376
376
      continue
377
377
    fi
378
378
    # Extract the definition of DEPDIR, am__include, and am__quote
379
 
    # from the Makefile without running `make'.
 
379
    # from the Makefile without running 'make'.
380
380
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
381
381
    test -z "$DEPDIR" && continue
382
382
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
383
383
    test -z "am__include" && continue
384
384
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
385
 
    # When using ansi2knr, U may be empty or an underscore; expand it
386
 
    U=`sed -n 's/^U = //p' < "$mf"`
387
385
    # Find all dependency output files, they are included files with
388
386
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
389
387
    # simplest approach to changing $(DEPDIR) to its actual value in the
390
388
    # expansion.
391
389
    for file in `sed -n "
392
390
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
393
 
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
391
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
394
392
      # Make sure the directory exists.
395
393
      test -f "$dirpart/$file" && continue
396
394
      fdir=`AS_DIRNAME(["$file"])`
408
406
# This macro should only be invoked once -- use via AC_REQUIRE.
409
407
#
410
408
# This code is only required when automatic dependency tracking
411
 
# is enabled.  FIXME.  This creates each `.P' file that we will
 
409
# is enabled.  FIXME.  This creates each '.P' file that we will
412
410
# need in order to bootstrap the dependency handling code.
413
411
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
414
412
[AC_CONFIG_COMMANDS([depfiles],
418
416
 
419
417
# Do all the work for Automake.                             -*- Autoconf -*-
420
418
 
421
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
422
 
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
 
419
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
423
420
#
424
421
# This file is free software; the Free Software Foundation
425
422
# gives unlimited permission to copy and/or distribute it,
426
423
# with or without modifications, as long as this notice is preserved.
427
424
 
428
 
# serial 16
 
425
# serial 19
429
426
 
430
427
# This macro actually does too much.  Some checks are only needed if
431
428
# your package does certain things.  But this isn't really a big deal.
471
468
# Define the identity of the package.
472
469
dnl Distinguish between old-style and new-style calls.
473
470
m4_ifval([$2],
474
 
[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
475
475
 AC_SUBST([PACKAGE], [$1])dnl
476
476
 AC_SUBST([VERSION], [$2])],
477
477
[_AM_SET_OPTIONS([$1])dnl
478
478
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
479
 
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],,
480
482
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
481
483
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
482
484
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
483
485
 
484
486
_AM_IF_OPTION([no-define],,
485
 
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
486
 
 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
487
489
 
488
490
# Some tools Automake needs.
489
491
AC_REQUIRE([AM_SANITY_CHECK])dnl
490
492
AC_REQUIRE([AC_ARG_PROGRAM])dnl
491
 
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
492
 
AM_MISSING_PROG(AUTOCONF, autoconf)
493
 
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
494
 
AM_MISSING_PROG(AUTOHEADER, autoheader)
495
 
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])
496
498
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
497
499
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
498
 
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)'])
499
506
# We need awk for the "check" target.  The system "awk" is bad on
500
507
# some platforms.
501
508
AC_REQUIRE([AC_PROG_AWK])dnl
506
513
                             [_AM_PROG_TAR([v7])])])
507
514
_AM_IF_OPTION([no-dependencies],,
508
515
[AC_PROVIDE_IFELSE([AC_PROG_CC],
509
 
                  [_AM_DEPENDENCIES(CC)],
510
 
                  [define([AC_PROG_CC],
511
 
                          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
512
519
AC_PROVIDE_IFELSE([AC_PROG_CXX],
513
 
                  [_AM_DEPENDENCIES(CXX)],
514
 
                  [define([AC_PROG_CXX],
515
 
                          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
516
523
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
517
 
                  [_AM_DEPENDENCIES(OBJC)],
518
 
                  [define([AC_PROG_OBJC],
519
 
                          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
520
534
])
521
535
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
522
 
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
523
 
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
524
538
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
525
539
AC_CONFIG_COMMANDS_PRE(dnl
526
540
[m4_provide_if([_AM_COMPILER_EXEEXT],
527
541
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
528
542
])
529
543
 
530
 
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
531
545
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
532
546
dnl mangled by Autoconf and run in a shell conditional statement.
533
547
m4_define([_AC_COMPILER_EXEEXT],
555
569
done
556
570
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
557
571
 
558
 
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
559
 
# Inc.
 
572
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
560
573
#
561
574
# This file is free software; the Free Software Foundation
562
575
# gives unlimited permission to copy and/or distribute it,
563
576
# with or without modifications, as long as this notice is preserved.
564
577
 
565
 
# serial 1
 
578
# serial 8
566
579
 
567
580
# AM_PROG_INSTALL_SH
568
581
# ------------------
577
590
    install_sh="\${SHELL} $am_aux_dir/install-sh"
578
591
  esac
579
592
fi
580
 
AC_SUBST(install_sh)])
 
593
AC_SUBST([install_sh])])
581
594
 
582
 
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
595
# Copyright (C) 2003-2012 Free Software Foundation, Inc.
583
596
#
584
597
# This file is free software; the Free Software Foundation
585
598
# gives unlimited permission to copy and/or distribute it,
603
616
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
604
617
# From Jim Meyering
605
618
 
606
 
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
607
 
# 2011 Free Software Foundation, Inc.
 
619
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
608
620
#
609
621
# This file is free software; the Free Software Foundation
610
622
# gives unlimited permission to copy and/or distribute it,
611
623
# with or without modifications, as long as this notice is preserved.
612
624
 
613
 
# serial 5
 
625
# serial 7
614
626
 
615
627
# AM_MAINTAINER_MODE([DEFAULT-MODE])
616
628
# ----------------------------------
617
629
# Control maintainer-specific portions of Makefiles.
618
 
# Default is to disable them, unless `enable' is passed literally.
619
 
# 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
620
632
# can override the default with the --enable/--disable switch.
621
633
AC_DEFUN([AM_MAINTAINER_MODE],
622
634
[m4_case(m4_default([$1], [disable]),
627
639
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
628
640
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
629
641
  AC_ARG_ENABLE([maintainer-mode],
630
 
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
631
 
                          (and sometimes confusing) to the casual installer],
632
 
      [USE_MAINTAINER_MODE=$enableval],
633
 
      [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]))
634
647
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
635
648
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
636
649
  MAINT=$MAINTAINER_MODE_TRUE
642
655
 
643
656
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
644
657
 
645
 
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
 
658
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
646
659
#
647
660
# This file is free software; the Free Software Foundation
648
661
# gives unlimited permission to copy and/or distribute it,
649
662
# with or without modifications, as long as this notice is preserved.
650
663
 
651
 
# serial 4
 
664
# serial 5
652
665
 
653
666
# AM_MAKE_INCLUDE()
654
667
# -----------------
667
680
_am_result=none
668
681
# First try GNU make style include.
669
682
echo "include confinc" > confmf
670
 
# Ignore all kinds of additional output from `make'.
 
683
# Ignore all kinds of additional output from 'make'.
671
684
case `$am_make -s -f confmf 2> /dev/null` in #(
672
685
*the\ am__doit\ target*)
673
686
  am__include=include
694
707
 
695
708
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
696
709
 
697
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
698
 
# Free Software Foundation, Inc.
 
710
# Copyright (C) 1997-2012 Free Software Foundation, Inc.
699
711
#
700
712
# This file is free software; the Free Software Foundation
701
713
# gives unlimited permission to copy and/or distribute it,
702
714
# with or without modifications, as long as this notice is preserved.
703
715
 
704
 
# serial 6
 
716
# serial 7
705
717
 
706
718
# AM_MISSING_PROG(NAME, PROGRAM)
707
719
# ------------------------------
731
743
  am_missing_run="$MISSING --run "
732
744
else
733
745
  am_missing_run=
734
 
  AC_MSG_WARN([`missing' script is too old or missing])
 
746
  AC_MSG_WARN(['missing' script is too old or missing])
735
747
fi
736
748
])
737
749
 
738
 
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
739
 
# Inc.
740
 
#
741
 
# This file is free software; the Free Software Foundation
742
 
# gives unlimited permission to copy and/or distribute it,
743
 
# with or without modifications, as long as this notice is preserved.
744
 
 
745
 
# serial 1
746
 
 
747
 
# AM_PROG_MKDIR_P
748
 
# ---------------
749
 
# Check for `mkdir -p'.
750
 
AC_DEFUN([AM_PROG_MKDIR_P],
751
 
[AC_PREREQ([2.60])dnl
752
 
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
753
 
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
754
 
dnl while keeping a definition of mkdir_p for backward compatibility.
755
 
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
756
 
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
757
 
dnl Makefile.ins that do not define MKDIR_P, so we do our own
758
 
dnl adjustment using top_builddir (which is defined more often than
759
 
dnl MKDIR_P).
760
 
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
761
 
case $mkdir_p in
762
 
  [[\\/$]]* | ?:[[\\/]]*) ;;
763
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
764
 
esac
765
 
])
766
 
 
767
750
# Helper functions for option handling.                     -*- Autoconf -*-
768
751
 
769
 
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
770
 
# Foundation, Inc.
 
752
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
771
753
#
772
754
# This file is free software; the Free Software Foundation
773
755
# gives unlimited permission to copy and/or distribute it,
774
756
# with or without modifications, as long as this notice is preserved.
775
757
 
776
 
# serial 5
 
758
# serial 6
777
759
 
778
760
# _AM_MANGLE_OPTION(NAME)
779
761
# -----------------------
784
766
# --------------------
785
767
# Set option NAME.  Presently that only means defining a flag for this option.
786
768
AC_DEFUN([_AM_SET_OPTION],
787
 
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
769
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
788
770
 
789
771
# _AM_SET_OPTIONS(OPTIONS)
790
772
# ------------------------
800
782
 
801
783
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
802
784
 
803
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
804
 
# Free Software Foundation, Inc.
 
785
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
805
786
#
806
787
# This file is free software; the Free Software Foundation
807
788
# gives unlimited permission to copy and/or distribute it,
808
789
# with or without modifications, as long as this notice is preserved.
809
790
 
810
 
# serial 5
 
791
# serial 9
811
792
 
812
793
# AM_SANITY_CHECK
813
794
# ---------------
814
795
AC_DEFUN([AM_SANITY_CHECK],
815
796
[AC_MSG_CHECKING([whether build environment is sane])
816
 
# Just in case
817
 
sleep 1
818
 
echo timestamp > conftest.file
819
797
# Reject unsafe characters in $srcdir or the absolute working directory
820
798
# name.  Accept space and tab only in the latter.
821
799
am_lf='
826
804
esac
827
805
case $srcdir in
828
806
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
829
 
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
 
807
    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
830
808
esac
831
809
 
832
 
# Do `set' in a subshell so we don't clobber the current shell's
 
810
# Do 'set' in a subshell so we don't clobber the current shell's
833
811
# arguments.  Must try -L first in case configure is actually a
834
812
# symlink; some systems play weird games with the mod time of symlinks
835
813
# (eg FreeBSD returns the mod time of the symlink's containing
836
814
# directory).
837
815
if (
838
 
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
839
 
   if test "$[*]" = "X"; then
840
 
      # -L didn't work.
841
 
      set X `ls -t "$srcdir/configure" conftest.file`
842
 
   fi
843
 
   rm -f conftest.file
844
 
   if test "$[*]" != "X $srcdir/configure conftest.file" \
845
 
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
846
 
 
847
 
      # If neither matched, then we have a broken ls.  This can happen
848
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
849
 
      # broken ls alias from the environment.  This has actually
850
 
      # happened.  Such a system could not be considered "sane".
851
 
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
852
 
alias in your environment])
853
 
   fi
854
 
 
 
816
   am_has_slept=no
 
817
   for am_try in 1 2; do
 
818
     echo "timestamp, slept: $am_has_slept" > conftest.file
 
819
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
820
     if test "$[*]" = "X"; then
 
821
        # -L didn't work.
 
822
        set X `ls -t "$srcdir/configure" conftest.file`
 
823
     fi
 
824
     if test "$[*]" != "X $srcdir/configure conftest.file" \
 
825
        && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
826
 
 
827
        # If neither matched, then we have a broken ls.  This can happen
 
828
        # if, for instance, CONFIG_SHELL is bash and it inherits a
 
829
        # broken ls alias from the environment.  This has actually
 
830
        # happened.  Such a system could not be considered "sane".
 
831
        AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
832
  alias in your environment])
 
833
     fi
 
834
     if test "$[2]" = conftest.file || test $am_try -eq 2; then
 
835
       break
 
836
     fi
 
837
     # Just in case.
 
838
     sleep 1
 
839
     am_has_slept=yes
 
840
   done
855
841
   test "$[2]" = conftest.file
856
842
   )
857
843
then
861
847
   AC_MSG_ERROR([newly created file is older than distributed files!
862
848
Check your system clock])
863
849
fi
864
 
AC_MSG_RESULT(yes)])
 
850
AC_MSG_RESULT([yes])
 
851
# If we didn't sleep, we still need to ensure time stamps of config.status and
 
852
# generated files are strictly newer.
 
853
am_sleep_pid=
 
854
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
 
855
  ( sleep 1 ) &
 
856
  am_sleep_pid=$!
 
857
fi
 
858
AC_CONFIG_COMMANDS_PRE(
 
859
  [AC_MSG_CHECKING([that generated files are newer than configure])
 
860
   if test -n "$am_sleep_pid"; then
 
861
     # Hide warnings about reused PIDs.
 
862
     wait $am_sleep_pid 2>/dev/null
 
863
   fi
 
864
   AC_MSG_RESULT([done])])
 
865
rm -f conftest.file
 
866
])
865
867
 
866
 
# Copyright (C) 2009, 2011  Free Software Foundation, Inc.
 
868
# Copyright (C) 2009-2012 Free Software Foundation, Inc.
867
869
#
868
870
# This file is free software; the Free Software Foundation
869
871
# gives unlimited permission to copy and/or distribute it,
870
872
# with or without modifications, as long as this notice is preserved.
871
873
 
872
 
# serial 2
 
874
# serial 3
873
875
 
874
876
# AM_SILENT_RULES([DEFAULT])
875
877
# --------------------------
876
878
# Enable less verbose build rules; with the default set to DEFAULT
877
 
# (`yes' being less verbose, `no' or empty being verbose).
 
879
# ("yes" being less verbose, "no" or empty being verbose).
878
880
AC_DEFUN([AM_SILENT_RULES],
879
 
[AC_ARG_ENABLE([silent-rules],
880
 
[  --enable-silent-rules          less verbose build output (undo: `make V=1')
881
 
  --disable-silent-rules         verbose build output (undo: `make V=0')])
882
 
case $enable_silent_rules in
883
 
yes) AM_DEFAULT_VERBOSITY=0;;
884
 
no)  AM_DEFAULT_VERBOSITY=1;;
885
 
*)   AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
 
881
[AC_ARG_ENABLE([silent-rules], [dnl
 
882
AS_HELP_STRING(
 
883
  [--enable-silent-rules],
 
884
  [less verbose build output (undo: "make V=1")])
 
885
AS_HELP_STRING(
 
886
  [--disable-silent-rules],
 
887
  [verbose build output (undo: "make V=0")])dnl
 
888
])
 
889
case $enable_silent_rules in @%:@ (((
 
890
  yes) AM_DEFAULT_VERBOSITY=0;;
 
891
   no) AM_DEFAULT_VERBOSITY=1;;
 
892
    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
886
893
esac
887
894
dnl
888
 
dnl A few `make' implementations (e.g., NonStop OS and NextStep)
 
895
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
889
896
dnl do not support nested variable expansions.
890
897
dnl See automake bug#9928 and bug#10237.
891
898
am_make=${MAKE-make}
903
910
  am_cv_make_support_nested_variables=no
904
911
fi])
905
912
if test $am_cv_make_support_nested_variables = yes; then
906
 
  dnl Using `$V' instead of `$(V)' breaks IRIX make.
 
913
  dnl Using '$V' instead of '$(V)' breaks IRIX make.
907
914
  AM_V='$(V)'
908
915
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
909
916
else
920
927
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
921
928
])
922
929
 
923
 
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
 
930
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
924
931
#
925
932
# This file is free software; the Free Software Foundation
926
933
# gives unlimited permission to copy and/or distribute it,
927
934
# with or without modifications, as long as this notice is preserved.
928
935
 
929
 
# serial 1
 
936
# serial 2
930
937
 
931
938
# AM_PROG_INSTALL_STRIP
932
939
# ---------------------
933
 
# One issue with vendor `install' (even GNU) is that you can't
 
940
# One issue with vendor 'install' (even GNU) is that you can't
934
941
# specify the program used to strip binaries.  This is especially
935
942
# annoying in cross-compiling environments, where the build's strip
936
943
# is unlikely to handle the host's binaries.
937
944
# Fortunately install-sh will honor a STRIPPROG variable, so we
938
 
# always use install-sh in `make install-strip', and initialize
 
945
# always use install-sh in "make install-strip", and initialize
939
946
# STRIPPROG with the value of the STRIP variable (set by the user).
940
947
AC_DEFUN([AM_PROG_INSTALL_STRIP],
941
948
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
942
 
# Installed binaries are usually stripped using `strip' when the user
943
 
# run `make install-strip'.  However `strip' might not be the right
 
949
# Installed binaries are usually stripped using 'strip' when the user
 
950
# run "make install-strip".  However 'strip' might not be the right
944
951
# tool to use in cross-compilation environments, therefore Automake
945
 
# will honor the `STRIP' environment variable to overrule this program.
946
 
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
952
# will honor the 'STRIP' environment variable to overrule this program.
 
953
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
947
954
if test "$cross_compiling" != no; then
948
955
  AC_CHECK_TOOL([STRIP], [strip], :)
949
956
fi
950
957
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
951
958
AC_SUBST([INSTALL_STRIP_PROGRAM])])
952
959
 
953
 
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
 
960
# Copyright (C) 2006-2012 Free Software Foundation, Inc.
954
961
#
955
962
# This file is free software; the Free Software Foundation
956
963
# gives unlimited permission to copy and/or distribute it,
971
978
 
972
979
# Check how to create a tarball.                            -*- Autoconf -*-
973
980
 
974
 
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
 
981
# Copyright (C) 2004-2012 Free Software Foundation, Inc.
975
982
#
976
983
# This file is free software; the Free Software Foundation
977
984
# gives unlimited permission to copy and/or distribute it,
978
985
# with or without modifications, as long as this notice is preserved.
979
986
 
980
 
# serial 2
 
987
# serial 3
981
988
 
982
989
# _AM_PROG_TAR(FORMAT)
983
990
# --------------------
984
991
# Check how to create a tarball in format FORMAT.
985
 
# FORMAT should be one of `v7', `ustar', or `pax'.
 
992
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
986
993
#
987
994
# Substitute a variable $(am__tar) that is a command
988
995
# writing to stdout a FORMAT-tarball containing the directory
1005
1012
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1006
1013
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1007
1014
# Do not fold the above two line into one, because Tru64 sh and
1008
 
# Solaris sh will not grok spaces in the rhs of `-'.
 
1015
# Solaris sh will not grok spaces in the rhs of '-'.
1009
1016
for _am_tool in $_am_tools
1010
1017
do
1011
1018
  case $_am_tool in
1127
1134
# ----------------------------------
1128
1135
AC_DEFUN([PKG_PROG_PKG_CONFIG],
1129
1136
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
1130
 
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
 
1137
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
 
1138
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
1131
1139
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
1132
1140
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
1133
1141
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
1173
1181
    pkg_cv_[]$1="$$1"
1174
1182
 elif test -n "$PKG_CONFIG"; then
1175
1183
    PKG_CHECK_EXISTS([$3],
1176
 
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
1184
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
 
1185
                      test "x$?" != "x0" && pkg_failed=yes ],
1177
1186
                     [pkg_failed=yes])
1178
1187
 else
1179
1188
    pkg_failed=untried
1221
1230
        AC_MSG_RESULT([no])
1222
1231
        _PKG_SHORT_ERRORS_SUPPORTED
1223
1232
        if test $_pkg_short_errors_supported = yes; then
1224
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
 
1233
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
1225
1234
        else 
1226
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
 
1235
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
1227
1236
        fi
1228
1237
        # Put the nasty error message in config.log where it belongs
1229
1238
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
1236
1245
Consider adjusting the PKG_CONFIG_PATH environment variable if you
1237
1246
installed software in a non-standard prefix.
1238
1247
 
1239
 
_PKG_TEXT])
 
1248
_PKG_TEXT])[]dnl
1240
1249
        ])
1241
1250
elif test $pkg_failed = untried; then
1242
1251
        AC_MSG_RESULT([no])
1247
1256
 
1248
1257
_PKG_TEXT
1249
1258
 
1250
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])
 
1259
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
1251
1260
        ])
1252
1261
else
1253
1262
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
1257
1266
fi[]dnl
1258
1267
])# PKG_CHECK_MODULES
1259
1268
 
 
1269
 
 
1270
# PKG_INSTALLDIR(DIRECTORY)
 
1271
# -------------------------
 
1272
# Substitutes the variable pkgconfigdir as the location where a module
 
1273
# should install pkg-config .pc files. By default the directory is
 
1274
# $libdir/pkgconfig, but the default can be changed by passing
 
1275
# DIRECTORY. The user can override through the --with-pkgconfigdir
 
1276
# parameter.
 
1277
AC_DEFUN([PKG_INSTALLDIR],
 
1278
[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
 
1279
m4_pushdef([pkg_description],
 
1280
    [pkg-config installation directory @<:@]pkg_default[@:>@])
 
1281
AC_ARG_WITH([pkgconfigdir],
 
1282
    [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
 
1283
    [with_pkgconfigdir=]pkg_default)
 
1284
AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
 
1285
m4_popdef([pkg_default])
 
1286
m4_popdef([pkg_description])
 
1287
]) dnl PKG_INSTALLDIR
 
1288
 
 
1289
 
 
1290
# PKG_NOARCH_INSTALLDIR(DIRECTORY)
 
1291
# -------------------------
 
1292
# Substitutes the variable noarch_pkgconfigdir as the location where a
 
1293
# module should install arch-independent pkg-config .pc files. By
 
1294
# default the directory is $datadir/pkgconfig, but the default can be
 
1295
# changed by passing DIRECTORY. The user can override through the
 
1296
# --with-noarch-pkgconfigdir parameter.
 
1297
AC_DEFUN([PKG_NOARCH_INSTALLDIR],
 
1298
[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
 
1299
m4_pushdef([pkg_description],
 
1300
    [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
 
1301
AC_ARG_WITH([noarch-pkgconfigdir],
 
1302
    [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
 
1303
    [with_noarch_pkgconfigdir=]pkg_default)
 
1304
AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
 
1305
m4_popdef([pkg_default])
 
1306
m4_popdef([pkg_description])
 
1307
]) dnl PKG_NOARCH_INSTALLDIR
 
1308
 
 
1309
AC_DEFUN([YELP_HELP_INIT],
 
1310
[
 
1311
AC_REQUIRE([AC_PROG_LN_S])
 
1312
m4_pattern_allow([AM_V_at])
 
1313
m4_pattern_allow([AM_V_GEN])
 
1314
m4_pattern_allow([AM_DEFAULT_VERBOSITY])
 
1315
AC_ARG_WITH([help-dir],
 
1316
            AC_HELP_STRING([--with-help-dir=DIR],
 
1317
                           [path where help files are installed]),,
 
1318
            [with_help_dir='${datadir}/help'])
 
1319
HELP_DIR="$with_help_dir"
 
1320
AC_SUBST(HELP_DIR)
 
1321
 
 
1322
AC_ARG_VAR([ITSTOOL], [Path to the `itstool` command])
 
1323
AC_CHECK_PROG([ITSTOOL], [itstool], [itstool])
 
1324
if test x"$ITSTOOL" = x; then
 
1325
  AC_MSG_ERROR([itstool not found])
 
1326
fi
 
1327
 
 
1328
AC_ARG_VAR([XMLLINT], [Path to the `xmllint` command])
 
1329
AC_CHECK_PROG([XMLLINT], [xmllint], [xmllint])
 
1330
if test x"$XMLLINT" = x; then
 
1331
  AC_MSG_ERROR([xmllint not found])
 
1332
fi
 
1333
 
 
1334
YELP_HELP_RULES='
 
1335
HELP_ID ?=
 
1336
HELP_POT ?=
 
1337
HELP_FILES ?=
 
1338
HELP_EXTRA ?=
 
1339
HELP_MEDIA ?=
 
1340
HELP_LINGUAS ?=
 
1341
 
 
1342
_HELP_LINGUAS = $(if $(filter environment,$(origin LINGUAS)),$(filter $(LINGUAS),$(HELP_LINGUAS)),$(HELP_LINGUAS))
 
1343
_HELP_POTFILE = $(if $(HELP_POT),$(HELP_POT),$(if $(HELP_ID),$(HELP_ID).pot))
 
1344
_HELP_POFILES = $(if $(HELP_ID),$(foreach lc,$(_HELP_LINGUAS),$(lc)/$(lc).po))
 
1345
_HELP_MOFILES = $(patsubst %.po,%.mo,$(_HELP_POFILES))
 
1346
_HELP_C_FILES = $(foreach f,$(HELP_FILES),C/$(f))
 
1347
_HELP_C_EXTRA = $(foreach f,$(HELP_EXTRA),C/$(f))
 
1348
_HELP_C_MEDIA = $(foreach f,$(HELP_MEDIA),C/$(f))
 
1349
_HELP_LC_FILES = $(foreach lc,$(_HELP_LINGUAS),$(foreach f,$(HELP_FILES),$(lc)/$(f)))
 
1350
_HELP_LC_STAMPS = $(foreach lc,$(_HELP_LINGUAS),$(lc)/$(lc).stamp)
 
1351
 
 
1352
_HELP_DEFAULT_V = $(if $(AM_DEFAULT_VERBOSITY),$(AM_DEFAULT_VERBOSITY),1)
 
1353
_HELP_V = $(if $(V),$(V),$(_HELP_DEFAULT_V))
 
1354
_HELP_LC_VERBOSE = $(_HELP_LC_VERBOSE_$(_HELP_V))
 
1355
_HELP_LC_VERBOSE_ = $(_HELP_LC_VERBOSE_$(_HELP_DEFAULT_V))
 
1356
_HELP_LC_VERBOSE_0 = @echo "  GEN    "$(dir [$]@);
 
1357
 
 
1358
all: $(_HELP_C_FILES) $(_HELP_C_EXTRA) $(_HELP_C_MEDIA) $(_HELP_LC_FILES) $(_HELP_POFILES)
 
1359
 
 
1360
.PHONY: pot
 
1361
pot: $(_HELP_POTFILE)
 
1362
$(_HELP_POTFILE): $(_HELP_C_FILES) $(_HELP_C_EXTRA) $(_HELP_C_MEDIA)
 
1363
        $(AM_V_GEN)$(ITSTOOL) -o "[$]@" $(_HELP_C_FILES)
 
1364
 
 
1365
.PHONY: repo
 
1366
repo: $(_HELP_POTFILE)
 
1367
        $(AM_V_at)for po in $(_HELP_POFILES); do \
 
1368
          if test "x[$](_HELP_V)" = "x0"; then echo "  GEN    $${po}"; fi; \
 
1369
          msgmerge -q -o "$${po}" "$${po}" "$(_HELP_POTFILE)"; \
 
1370
        done
 
1371
 
 
1372
$(_HELP_POFILES):
 
1373
        $(AM_V_at)if ! test -d "$(dir [$]@)"; then mkdir "$(dir [$]@)"; fi
 
1374
        $(AM_V_at)if test ! -f "[$]@" -a -f "$(srcdir)/[$]@"; then cp "$(srcdir)/[$]@" "[$]@"; fi
 
1375
        $(AM_V_GEN)if ! test -f "[$]@"; then \
 
1376
          (cd "$(dir [$]@)" && \
 
1377
            $(ITSTOOL) -o "$(notdir [$]@).tmp" $(_HELP_C_FILES) && \
 
1378
            mv "$(notdir [$]@).tmp" "$(notdir [$]@)"); \
 
1379
        else \
 
1380
          (cd "$(dir [$]@)" && \
 
1381
            $(ITSTOOL) -o "$(notdir [$]@).tmp" $(_HELP_C_FILES) && \
 
1382
            msgmerge -o "$(notdir [$]@)" "$(notdir [$]@)" "$(notdir [$]@).tmp" && \
 
1383
            rm "$(notdir [$]@).tmp"); \
 
1384
        fi
 
1385
 
 
1386
$(_HELP_MOFILES): %.mo: %.po
 
1387
        $(AM_V_at)if ! test -d "$(dir [$]@)"; then mkdir "$(dir [$]@)"; fi
 
1388
        $(AM_V_GEN)msgfmt -o "[$]@" "$<"
 
1389
 
 
1390
$(_HELP_LC_FILES): $(_HELP_LINGUAS)
 
1391
$(_HELP_LINGUAS): $(_HELP_LC_STAMPS)
 
1392
$(_HELP_LC_STAMPS): %.stamp: %.mo
 
1393
$(_HELP_LC_STAMPS): $(_HELP_C_FILES) $(_HELP_C_EXTRA)
 
1394
        $(AM_V_at)if ! test -d "$(dir [$]@)"; then mkdir "$(dir [$]@)"; fi
 
1395
        $(_HELP_LC_VERBOSE)if test -d "C"; then d="../"; else d="$(abs_srcdir)/"; fi; \
 
1396
        mo="$(dir [$]@)$(patsubst %/$(notdir [$]@),%,[$]@).mo"; \
 
1397
        if test -f "$${mo}"; then mo="../$${mo}"; else mo="$(abs_srcdir)/$${mo}"; fi; \
 
1398
        (cd "$(dir [$]@)" && $(ITSTOOL) -m "$${mo}" $(foreach f,$(_HELP_C_FILES),$${d}/$(f))) && \
 
1399
        touch "[$]@"
 
1400
 
 
1401
.PHONY: clean-help
 
1402
mostlyclean-am: $(if $(HELP_ID),clean-help)
 
1403
clean-help:
 
1404
        rm -f $(_HELP_LC_FILES) $(_HELP_LC_STAMPS) $(_HELP_MOFILES)
 
1405
 
 
1406
EXTRA_DIST ?=
 
1407
EXTRA_DIST += $(_HELP_C_EXTRA) $(_HELP_C_MEDIA)
 
1408
EXTRA_DIST += $(foreach lc,$(HELP_LINGUAS),$(lc)/$(lc).stamp)
 
1409
EXTRA_DIST += $(foreach lc,$(HELP_LINGUAS),$(lc)/$(lc).po)
 
1410
EXTRA_DIST += $(foreach f,$(HELP_MEDIA),$(foreach lc,$(HELP_LINGUAS),$(wildcard $(lc)/$(f))))
 
1411
 
 
1412
distdir: distdir-help-files
 
1413
distdir-help-files:
 
1414
        @for lc in C $(HELP_LINGUAS); do \
 
1415
          $(MKDIR_P) "$(distdir)/$$lc"; \
 
1416
          for file in $(HELP_FILES); do \
 
1417
            if test -f "$$lc/$$file"; then d=./; else d=$(srcdir)/; fi; \
 
1418
            cp -p "$$d$$lc/$$file" "$(distdir)/$$lc/" || exit 1; \
 
1419
          done; \
 
1420
        done; \
 
1421
 
 
1422
.PHONY: check-help
 
1423
check: check-help
 
1424
check-help:
 
1425
        for lc in C $(_HELP_LINGUAS); do \
 
1426
          if test -d "$$lc"; \
 
1427
            then d=; \
 
1428
            xmlpath="$$lc"; \
 
1429
          else \
 
1430
            d="$(srcdir)/"; \
 
1431
            xmlpath="$$lc:$(srcdir)/$$lc"; \
 
1432
          fi; \
 
1433
          for page in $(HELP_FILES); do \
 
1434
            echo "$(XMLLINT) --noout --noent --path $$xmlpath --xinclude $$d$$lc/$$page"; \
 
1435
            $(XMLLINT) --noout --noent --path "$$xmlpath" --xinclude "$$d$$lc/$$page"; \
 
1436
          done; \
 
1437
        done
 
1438
 
 
1439
 
 
1440
.PHONY: install-help
 
1441
install-data-am: $(if $(HELP_ID),install-help)
 
1442
install-help:
 
1443
        @for lc in C $(_HELP_LINGUAS); do \
 
1444
          $(mkinstalldirs) "$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)" || exit 1; \
 
1445
        done
 
1446
        @for lc in C $(_HELP_LINGUAS); do for f in $(HELP_FILES); do \
 
1447
          if test -f "$$lc/$$f"; then d=; else d="$(srcdir)/"; fi; \
 
1448
          helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
 
1449
          if ! test -d "$$helpdir"; then $(mkinstalldirs) "$$helpdir"; fi; \
 
1450
          echo "$(INSTALL_DATA) $$d$$lc/$$f $$helpdir`basename $$f`"; \
 
1451
          $(INSTALL_DATA) "$$d$$lc/$$f" "$$helpdir`basename $$f`" || exit 1; \
 
1452
        done; done
 
1453
        @for f in $(_HELP_C_EXTRA); do \
 
1454
          lc=`dirname "$$f"`; lc=`basename "$$lc"`; \
 
1455
          if test -f "$$f"; then d=; else d="$(srcdir)/"; fi; \
 
1456
          helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
 
1457
          if ! test -d "$$helpdir"; then $(mkinstalldirs) "$$helpdir"; fi; \
 
1458
          echo "$(INSTALL_DATA) $$d$$f $$helpdir`basename $$f`"; \
 
1459
          $(INSTALL_DATA) "$$d$$f" "$$helpdir`basename $$f`" || exit 1; \
 
1460
        done
 
1461
        @for f in $(HELP_MEDIA); do \
 
1462
          for lc in C $(_HELP_LINGUAS); do \
 
1463
            if test -f "$$lc$$f"; then d=; else d="$(srcdir)/"; fi; \
 
1464
            helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
 
1465
            mdir=`dirname "$$f"`; \
 
1466
            if test "x$mdir" = "x."; then mdir=""; fi; \
 
1467
            if ! test -d "$$helpdir$$mdir"; then $(mkinstalldirs) "$$helpdir$$mdir"; fi; \
 
1468
            if test -f "$$d$$lc/$$f"; then \
 
1469
              echo "$(INSTALL_DATA) $$d$$lc/$$f $$helpdir$$f"; \
 
1470
              $(INSTALL_DATA) "$$d$$lc/$$f" "$$helpdir$$f" || exit 1; \
 
1471
            elif test "x$$lc" != "xC"; then \
 
1472
              echo "$(LN_S) -f $(HELP_DIR)/C/$(HELP_ID)/$$f $$helpdir$$f"; \
 
1473
              $(LN_S) -f "$(HELP_DIR)/C/$(HELP_ID)/$$f" "$$helpdir$$f" || exit 1; \
 
1474
            fi; \
 
1475
          done; \
 
1476
        done
 
1477
 
 
1478
.PHONY: uninstall-help
 
1479
uninstall-am: $(if $(HELP_ID),uninstall-help)
 
1480
uninstall-help:
 
1481
        for lc in C $(_HELP_LINGUAS); do for f in $(HELP_FILES); do \
 
1482
          helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
 
1483
          echo "rm -f $$helpdir`basename $$f`"; \
 
1484
          rm -f "$$helpdir`basename $$f`"; \
 
1485
        done; done
 
1486
        @for f in $(_HELP_C_EXTRA); do \
 
1487
          lc=`dirname "$$f"`; lc=`basename "$$lc"`; \
 
1488
          helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
 
1489
          echo "rm -f $$helpdir`basename $$f`"; \
 
1490
          rm -f "$$helpdir`basename $$f`"; \
 
1491
        done
 
1492
        @for f in $(HELP_MEDIA); do \
 
1493
          for lc in C $(_HELP_LINGUAS); do \
 
1494
            helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
 
1495
            echo "rm -f $$helpdir$$f"; \
 
1496
            rm -f "$$helpdir$$f"; \
 
1497
          done; \
 
1498
        done;
 
1499
'
 
1500
AC_SUBST([YELP_HELP_RULES])
 
1501
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([YELP_HELP_RULES])])
 
1502
])
 
1503
 
1260
1504
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
1261
1505
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
1262
1506
#
1778
2022
]
1779
2023
)
1780
2024
 
1781
 
AC_DEFUN([YELP_HELP_INIT],
1782
 
[
1783
 
AC_REQUIRE([AC_PROG_LN_S])
1784
 
m4_pattern_allow([AM_V_at])
1785
 
m4_pattern_allow([AM_V_GEN])
1786
 
m4_pattern_allow([AM_DEFAULT_VERBOSITY])
1787
 
AC_ARG_WITH([help-dir],
1788
 
            AC_HELP_STRING([--with-help-dir=DIR],
1789
 
                           [path where help files are installed]),,
1790
 
            [with_help_dir='${datadir}/help'])
1791
 
HELP_DIR="$with_help_dir"
1792
 
AC_SUBST(HELP_DIR)
1793
 
 
1794
 
AC_ARG_VAR([ITSTOOL], [Path to the `itstool` command])
1795
 
AC_CHECK_PROG([ITSTOOL], [itstool], [itstool])
1796
 
if test x"$ITSTOOL" = x; then
1797
 
  AC_MSG_ERROR([itstool not found])
1798
 
fi
1799
 
 
1800
 
AC_ARG_VAR([XMLLINT], [Path to the `xmllint` command])
1801
 
AC_CHECK_PROG([XMLLINT], [xmllint], [xmllint])
1802
 
if test x"$XMLLINT" = x; then
1803
 
  AC_MSG_ERROR([xmllint not found])
1804
 
fi
1805
 
 
1806
 
YELP_HELP_RULES='
1807
 
HELP_ID ?=
1808
 
HELP_POT ?=
1809
 
HELP_FILES ?=
1810
 
HELP_EXTRA ?=
1811
 
HELP_MEDIA ?=
1812
 
HELP_LINGUAS ?=
1813
 
 
1814
 
_HELP_LINGUAS = $(if $(filter environment,$(origin LINGUAS)),$(filter $(LINGUAS),$(HELP_LINGUAS)),$(HELP_LINGUAS))
1815
 
_HELP_POTFILE = $(if $(HELP_POT),$(HELP_POT),$(if $(HELP_ID),$(HELP_ID).pot))
1816
 
_HELP_POFILES = $(if $(HELP_ID),$(foreach lc,$(_HELP_LINGUAS),$(lc)/$(lc).po))
1817
 
_HELP_MOFILES = $(patsubst %.po,%.mo,$(_HELP_POFILES))
1818
 
_HELP_C_FILES = $(foreach f,$(HELP_FILES),C/$(f))
1819
 
_HELP_C_EXTRA = $(foreach f,$(HELP_EXTRA),C/$(f))
1820
 
_HELP_C_MEDIA = $(foreach f,$(HELP_MEDIA),C/$(f))
1821
 
_HELP_LC_FILES = $(foreach lc,$(_HELP_LINGUAS),$(foreach f,$(HELP_FILES),$(lc)/$(f)))
1822
 
_HELP_LC_STAMPS = $(foreach lc,$(_HELP_LINGUAS),$(lc)/$(lc).stamp)
1823
 
 
1824
 
_HELP_DEFAULT_V = $(if $(AM_DEFAULT_VERBOSITY),$(AM_DEFAULT_VERBOSITY),1)
1825
 
_HELP_V = $(if $(V),$(V),$(_HELP_DEFAULT_V))
1826
 
_HELP_LC_VERBOSE = $(_HELP_LC_VERBOSE_$(_HELP_V))
1827
 
_HELP_LC_VERBOSE_ = $(_HELP_LC_VERBOSE_$(_HELP_DEFAULT_V))
1828
 
_HELP_LC_VERBOSE_0 = @echo "  GEN    "$(dir [$]@);
1829
 
 
1830
 
all: $(_HELP_C_FILES) $(_HELP_C_EXTRA) $(_HELP_C_MEDIA) $(_HELP_LC_FILES) $(_HELP_POFILES)
1831
 
 
1832
 
.PHONY: pot
1833
 
pot: $(_HELP_POTFILE)
1834
 
$(_HELP_POTFILE): $(_HELP_C_FILES) $(_HELP_C_EXTRA) $(_HELP_C_MEDIA)
1835
 
        $(AM_V_GEN)$(ITSTOOL) -o "[$]@" $(_HELP_C_FILES)
1836
 
 
1837
 
.PHONY: repo
1838
 
repo: $(_HELP_POTFILE)
1839
 
        $(AM_V_at)for po in $(_HELP_POFILES); do \
1840
 
          if test "x[$](_HELP_V)" = "x0"; then echo "  GEN    $${po}"; fi; \
1841
 
          msgmerge -q -o "$${po}" "$${po}" "$(_HELP_POTFILE)"; \
1842
 
        done
1843
 
 
1844
 
$(_HELP_POFILES):
1845
 
        $(AM_V_at)if ! test -d "$(dir [$]@)"; then mkdir "$(dir [$]@)"; fi
1846
 
        $(AM_V_at)if test ! -f "[$]@" -a -f "$(srcdir)/[$]@"; then cp "$(srcdir)/[$]@" "[$]@"; fi
1847
 
        $(AM_V_GEN)if ! test -f "[$]@"; then \
1848
 
          (cd "$(dir [$]@)" && \
1849
 
            $(ITSTOOL) -o "$(notdir [$]@).tmp" $(_HELP_C_FILES) && \
1850
 
            mv "$(notdir [$]@).tmp" "$(notdir [$]@)"); \
1851
 
        else \
1852
 
          (cd "$(dir [$]@)" && \
1853
 
            $(ITSTOOL) -o "$(notdir [$]@).tmp" $(_HELP_C_FILES) && \
1854
 
            msgmerge -o "$(notdir [$]@)" "$(notdir [$]@)" "$(notdir [$]@).tmp" && \
1855
 
            rm "$(notdir [$]@).tmp"); \
1856
 
        fi
1857
 
 
1858
 
$(_HELP_MOFILES): %.mo: %.po
1859
 
        $(AM_V_at)if ! test -d "$(dir [$]@)"; then mkdir "$(dir [$]@)"; fi
1860
 
        $(AM_V_GEN)msgfmt -o "[$]@" "$<"
1861
 
 
1862
 
$(_HELP_LC_FILES): $(_HELP_LINGUAS)
1863
 
$(_HELP_LINGUAS): $(_HELP_LC_STAMPS)
1864
 
$(_HELP_LC_STAMPS): %.stamp: %.mo
1865
 
$(_HELP_LC_STAMPS): $(_HELP_C_FILES) $(_HELP_C_EXTRA)
1866
 
        $(AM_V_at)if ! test -d "$(dir [$]@)"; then mkdir "$(dir [$]@)"; fi
1867
 
        $(_HELP_LC_VERBOSE)if test -d "C"; then d="../"; else d="$(abs_srcdir)/"; fi; \
1868
 
        mo="$(dir [$]@)$(patsubst %/$(notdir [$]@),%,[$]@).mo"; \
1869
 
        if test -f "$${mo}"; then mo="../$${mo}"; else mo="$(abs_srcdir)/$${mo}"; fi; \
1870
 
        (cd "$(dir [$]@)" && $(ITSTOOL) -m "$${mo}" $(foreach f,$(_HELP_C_FILES),$${d}/$(f))) && \
1871
 
        touch "[$]@"
1872
 
 
1873
 
.PHONY: clean-help
1874
 
mostlyclean-am: $(if $(HELP_ID),clean-help)
1875
 
clean-help:
1876
 
        rm -f $(_HELP_LC_FILES) $(_HELP_LC_STAMPS) $(_HELP_MOFILES)
1877
 
 
1878
 
EXTRA_DIST ?=
1879
 
EXTRA_DIST += $(_HELP_C_FILES) $(_HELP_LC_FILES) $(_HELP_LC_STAMPS) $(_HELP_C_EXTRA) $(_HELP_C_MEDIA) $(_HELP_POFILES)
1880
 
EXTRA_DIST += $(foreach f,$(HELP_MEDIA),$(foreach lc,$(_HELP_LINGUAS),$(wildcard $(lc)/$(f))))
1881
 
 
1882
 
.PHONY: check-help
1883
 
check: check-help
1884
 
check-help:
1885
 
        for lc in C $(_HELP_LINGUAS); do \
1886
 
          if test -d "$$lc"; \
1887
 
            then d=; \
1888
 
            xmlpath="$$lc"; \
1889
 
          else \
1890
 
            d="$(srcdir)/"; \
1891
 
            xmlpath="$$lc:$(srcdir)/$$lc"; \
1892
 
          fi; \
1893
 
          for page in $(HELP_FILES); do \
1894
 
            echo "$(XMLLINT) --noout --noent --path $$xmlpath --xinclude $$d$$lc/$$page"; \
1895
 
            $(XMLLINT) --noout --noent --path "$$xmlpath" --xinclude "$$d$$lc/$$page"; \
1896
 
          done; \
1897
 
        done
1898
 
 
1899
 
 
1900
 
.PHONY: install-help
1901
 
install-data-am: $(if $(HELP_ID),install-help)
1902
 
install-help:
1903
 
        @for lc in C $(_HELP_LINGUAS); do \
1904
 
          $(mkinstalldirs) "$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)" || exit 1; \
1905
 
        done
1906
 
        @for f in $(_HELP_C_FILES) $(_HELP_LC_FILES) $(_HELP_C_EXTRA); do \
1907
 
          lc=`dirname "$$f"`; lc=`basename "$$lc"`; \
1908
 
          if test -f "$$f"; then d=; else d="$(srcdir)/"; fi; \
1909
 
          helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
1910
 
          if ! test -d "$$helpdir"; then $(mkinstalldirs) "$$helpdir"; fi; \
1911
 
          echo "$(INSTALL_DATA) $$d$$f $$helpdir`basename $$f`"; \
1912
 
          $(INSTALL_DATA) "$$d$$f" "$$helpdir`basename $$f`" || exit 1; \
1913
 
        done
1914
 
        @for f in $(HELP_MEDIA); do \
1915
 
          for lc in C $(_HELP_LINGUAS); do \
1916
 
            if test -f "$$lc$$f"; then d=; else d="$(srcdir)/"; fi; \
1917
 
            helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
1918
 
            mdir=`dirname "$$f"`; \
1919
 
            if test "x$mdir" = "x."; then mdir=""; fi; \
1920
 
            if ! test -d "$$helpdir$$mdir"; then $(mkinstalldirs) "$$helpdir$$mdir"; fi; \
1921
 
            if test -f "$$d$$lc/$$f"; then \
1922
 
              echo "$(INSTALL_DATA) $$d$$lc/$$f $$helpdir$$f"; \
1923
 
              $(INSTALL_DATA) "$$d$$lc/$$f" "$$helpdir$$f" || exit 1; \
1924
 
            elif test "x$$lc" != "xC"; then \
1925
 
              echo "$(LN_S) -f $(HELP_DIR)/C/$(HELP_ID)/$$f $$helpdir$$f"; \
1926
 
              $(LN_S) -f "$(HELP_DIR)/C/$(HELP_ID)/$$f" "$$helpdir$$f" || exit 1; \
1927
 
            fi; \
1928
 
          done; \
1929
 
        done
1930
 
 
1931
 
.PHONY: uninstall-help
1932
 
uninstall-am: $(if $(HELP_ID),uninstall-help)
1933
 
uninstall-help:
1934
 
        @for f in $(_HELP_C_FILES) $(_HELP_LC_FILES) $(_HELP_C_EXTRA); do \
1935
 
          lc=`dirname "$$f"`; lc=`basename "$$lc"`; \
1936
 
          helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
1937
 
          echo "rm -f $$helpdir`basename $$f`"; \
1938
 
          rm -f "$$helpdir`basename $$f`"; \
1939
 
        done
1940
 
        @for f in $(HELP_MEDIA); do \
1941
 
          for lc in C $(_HELP_LINGUAS); do \
1942
 
            helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
1943
 
            echo "rm -f $$helpdir$$f"; \
1944
 
            rm -f "$$helpdir$$f"; \
1945
 
          done; \
1946
 
        done;
1947
 
'
1948
 
AC_SUBST([YELP_HELP_RULES])
1949
 
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([YELP_HELP_RULES])])
1950
 
])
1951
 
 
1952
2025
m4_include([m4/intltool.m4])
1953
2026
m4_include([m4/libtool.m4])
1954
2027
m4_include([m4/ltoptions.m4])