~ubuntu-branches/ubuntu/utopic/brasero/utopic

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2013-12-17 13:09:35 UTC
  • mfrom: (1.1.57)
  • Revision ID: package-import@ubuntu.com-20131217130935-jm0xjju95qesfw8l
Tags: 3.10.0-0ubuntu1
* New upstream release:
  - Fixed drawing issues in media selection combo boxes
  - Fix several crashers
  - Fixes for new autotools
  - Disable audio normalisation - it's broken since GStreamer 1.0
* debian/libbrasero-media3-1.symbols:
  - Updated
* debian/patches/01_grafted_folders.patch:
* debian/patches/03_cue-invalid-frame-75.patch:
* debian/patches/04_tracker-0.16.patch:
* debian/patches/05_populate-tree-model-after-construction.patch:
  - Applied upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.13.1 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.13.4 -*- Autoconf -*-
2
2
 
3
 
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
 
3
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
4
4
 
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
20
20
If you have problems, you may need to regenerate the build system entirely.
21
21
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
22
22
 
23
 
# Copyright (C) 2002-2013 Free Software Foundation, Inc.
24
 
#
25
 
# This file is free software; the Free Software Foundation
26
 
# gives unlimited permission to copy and/or distribute it,
27
 
# with or without modifications, as long as this notice is preserved.
28
 
 
29
 
# AM_AUTOMAKE_VERSION(VERSION)
30
 
# ----------------------------
31
 
# Automake X.Y traces this macro to ensure aclocal.m4 has been
32
 
# generated from the m4 files accompanying Automake X.Y.
33
 
# (This private macro should not be called outside this file.)
34
 
AC_DEFUN([AM_AUTOMAKE_VERSION],
35
 
[am__api_version='1.13'
36
 
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
37
 
dnl require some minimum version.  Point them to the right macro.
38
 
m4_if([$1], [1.13.1], [],
39
 
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
23
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
 
24
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
 
25
#
 
26
# This file is free software, distributed under the terms of the GNU
 
27
# General Public License.  As a special exception to the GNU General
 
28
# Public License, this file may be distributed as part of a program
 
29
# that contains a configuration script generated by Autoconf, under
 
30
# the same distribution terms as the rest of that program.
 
31
#
 
32
# This file can be copied and used freely without restrictions.  It can
 
33
# be used in projects which are not available under the GNU Public License
 
34
# but which still want to provide support for the GNU gettext functionality.
 
35
#
 
36
# Macro to add for using GNU gettext.
 
37
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
 
38
#
 
39
# Modified to never use included libintl. 
 
40
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
 
41
#
 
42
# Major rework to remove unused code
 
43
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
 
44
#
 
45
# Added better handling of ALL_LINGUAS from GNU gettext version 
 
46
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
 
47
#
 
48
# Modified to require ngettext
 
49
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
 
50
#
 
51
# We need this here as well, since someone might use autoconf-2.5x
 
52
# to configure GLib then an older version to configure a package
 
53
# using AM_GLIB_GNU_GETTEXT
 
54
AC_PREREQ(2.53)
 
55
 
 
56
dnl
 
57
dnl We go to great lengths to make sure that aclocal won't 
 
58
dnl try to pull in the installed version of these macros
 
59
dnl when running aclocal in the glib directory.
 
60
dnl
 
61
m4_copy([AC_DEFUN],[glib_DEFUN])
 
62
m4_copy([AC_REQUIRE],[glib_REQUIRE])
 
63
dnl
 
64
dnl At the end, if we're not within glib, we'll define the public
 
65
dnl definitions in terms of our private definitions.
 
66
dnl
 
67
 
 
68
# GLIB_LC_MESSAGES
 
69
#--------------------
 
70
glib_DEFUN([GLIB_LC_MESSAGES],
 
71
  [AC_CHECK_HEADERS([locale.h])
 
72
    if test $ac_cv_header_locale_h = yes; then
 
73
    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
 
74
      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
 
75
       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
 
76
    if test $am_cv_val_LC_MESSAGES = yes; then
 
77
      AC_DEFINE(HAVE_LC_MESSAGES, 1,
 
78
        [Define if your <locale.h> file defines LC_MESSAGES.])
 
79
    fi
 
80
  fi])
 
81
 
 
82
# GLIB_PATH_PROG_WITH_TEST
 
83
#----------------------------
 
84
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
 
85
dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
 
86
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
 
87
[# Extract the first word of "$2", so it can be a program name with args.
 
88
set dummy $2; ac_word=[$]2
 
89
AC_MSG_CHECKING([for $ac_word])
 
90
AC_CACHE_VAL(ac_cv_path_$1,
 
91
[case "[$]$1" in
 
92
  /*)
 
93
  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
 
94
  ;;
 
95
  *)
 
96
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
97
  for ac_dir in ifelse([$5], , $PATH, [$5]); do
 
98
    test -z "$ac_dir" && ac_dir=.
 
99
    if test -f $ac_dir/$ac_word; then
 
100
      if [$3]; then
 
101
        ac_cv_path_$1="$ac_dir/$ac_word"
 
102
        break
 
103
      fi
 
104
    fi
 
105
  done
 
106
  IFS="$ac_save_ifs"
 
107
dnl If no 4th arg is given, leave the cache variable unset,
 
108
dnl so AC_PATH_PROGS will keep looking.
 
109
ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
 
110
])dnl
 
111
  ;;
 
112
esac])dnl
 
113
$1="$ac_cv_path_$1"
 
114
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
 
115
  AC_MSG_RESULT([$]$1)
 
116
else
 
117
  AC_MSG_RESULT(no)
 
118
fi
 
119
AC_SUBST($1)dnl
40
120
])
41
121
 
42
 
# _AM_AUTOCONF_VERSION(VERSION)
43
 
# -----------------------------
44
 
# aclocal traces this macro to find the Autoconf version.
45
 
# This is a private macro too.  Using m4_define simplifies
46
 
# the logic in aclocal, which can simply ignore this definition.
47
 
m4_define([_AM_AUTOCONF_VERSION], [])
48
 
 
49
 
# AM_SET_CURRENT_AUTOMAKE_VERSION
 
122
# GLIB_WITH_NLS
 
123
#-----------------
 
124
glib_DEFUN([GLIB_WITH_NLS],
 
125
  dnl NLS is obligatory
 
126
  [USE_NLS=yes
 
127
    AC_SUBST(USE_NLS)
 
128
 
 
129
    gt_cv_have_gettext=no
 
130
 
 
131
    CATOBJEXT=NONE
 
132
    XGETTEXT=:
 
133
    INTLLIBS=
 
134
 
 
135
    AC_CHECK_HEADER(libintl.h,
 
136
     [gt_cv_func_dgettext_libintl="no"
 
137
      libintl_extra_libs=""
 
138
 
 
139
      #
 
140
      # First check in libc
 
141
      #
 
142
      AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
 
143
        [AC_TRY_LINK([
 
144
#include <libintl.h>
 
145
],
 
146
         [return !ngettext ("","", 1)],
 
147
          gt_cv_func_ngettext_libc=yes,
 
148
          gt_cv_func_ngettext_libc=no)
 
149
        ])
 
150
  
 
151
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
152
              AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
 
153
                [AC_TRY_LINK([
 
154
#include <libintl.h>
 
155
],
 
156
                  [return !dgettext ("","")],
 
157
                  gt_cv_func_dgettext_libc=yes,
 
158
                  gt_cv_func_dgettext_libc=no)
 
159
                ])
 
160
      fi
 
161
  
 
162
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
163
        AC_CHECK_FUNCS(bind_textdomain_codeset)
 
164
      fi
 
165
 
 
166
      #
 
167
      # If we don't have everything we want, check in libintl
 
168
      #
 
169
      if test "$gt_cv_func_dgettext_libc" != "yes" \
 
170
         || test "$gt_cv_func_ngettext_libc" != "yes" \
 
171
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
 
172
        
 
173
        AC_CHECK_LIB(intl, bindtextdomain,
 
174
            [AC_CHECK_LIB(intl, ngettext,
 
175
                    [AC_CHECK_LIB(intl, dgettext,
 
176
                                  gt_cv_func_dgettext_libintl=yes)])])
 
177
 
 
178
        if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
 
179
          AC_MSG_CHECKING([if -liconv is needed to use gettext])
 
180
          AC_MSG_RESULT([])
 
181
          AC_CHECK_LIB(intl, ngettext,
 
182
                [AC_CHECK_LIB(intl, dcgettext,
 
183
                       [gt_cv_func_dgettext_libintl=yes
 
184
                        libintl_extra_libs=-liconv],
 
185
                        :,-liconv)],
 
186
                :,-liconv)
 
187
        fi
 
188
 
 
189
        #
 
190
        # If we found libintl, then check in it for bind_textdomain_codeset();
 
191
        # we'll prefer libc if neither have bind_textdomain_codeset(),
 
192
        # and both have dgettext and ngettext
 
193
        #
 
194
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
 
195
          glib_save_LIBS="$LIBS"
 
196
          LIBS="$LIBS -lintl $libintl_extra_libs"
 
197
          unset ac_cv_func_bind_textdomain_codeset
 
198
          AC_CHECK_FUNCS(bind_textdomain_codeset)
 
199
          LIBS="$glib_save_LIBS"
 
200
 
 
201
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
 
202
            gt_cv_func_dgettext_libc=no
 
203
          else
 
204
            if test "$gt_cv_func_dgettext_libc" = "yes" \
 
205
                && test "$gt_cv_func_ngettext_libc" = "yes"; then
 
206
              gt_cv_func_dgettext_libintl=no
 
207
            fi
 
208
          fi
 
209
        fi
 
210
      fi
 
211
 
 
212
      if test "$gt_cv_func_dgettext_libc" = "yes" \
 
213
        || test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
214
        gt_cv_have_gettext=yes
 
215
      fi
 
216
  
 
217
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
218
        INTLLIBS="-lintl $libintl_extra_libs"
 
219
      fi
 
220
  
 
221
      if test "$gt_cv_have_gettext" = "yes"; then
 
222
        AC_DEFINE(HAVE_GETTEXT,1,
 
223
          [Define if the GNU gettext() function is already present or preinstalled.])
 
224
        GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
 
225
          [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
 
226
        if test "$MSGFMT" != "no"; then
 
227
          glib_save_LIBS="$LIBS"
 
228
          LIBS="$LIBS $INTLLIBS"
 
229
          AC_CHECK_FUNCS(dcgettext)
 
230
          MSGFMT_OPTS=
 
231
          AC_MSG_CHECKING([if msgfmt accepts -c])
 
232
          GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
 
233
msgid ""
 
234
msgstr ""
 
235
"Content-Type: text/plain; charset=UTF-8\n"
 
236
"Project-Id-Version: test 1.0\n"
 
237
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
 
238
"Last-Translator: test <foo@bar.xx>\n"
 
239
"Language-Team: C <LL@li.org>\n"
 
240
"MIME-Version: 1.0\n"
 
241
"Content-Transfer-Encoding: 8bit\n"
 
242
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
 
243
          AC_SUBST(MSGFMT_OPTS)
 
244
          AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
 
245
          GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
 
246
            [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
 
247
          AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
 
248
                         return _nl_msg_cat_cntr],
 
249
            [CATOBJEXT=.gmo 
 
250
             DATADIRNAME=share],
 
251
            [case $host in
 
252
            *-*-solaris*)
 
253
            dnl On Solaris, if bind_textdomain_codeset is in libc,
 
254
            dnl GNU format message catalog is always supported,
 
255
            dnl since both are added to the libc all together.
 
256
            dnl Hence, we'd like to go with DATADIRNAME=share and
 
257
            dnl and CATOBJEXT=.gmo in this case.
 
258
            AC_CHECK_FUNC(bind_textdomain_codeset,
 
259
              [CATOBJEXT=.gmo 
 
260
               DATADIRNAME=share],
 
261
              [CATOBJEXT=.mo
 
262
               DATADIRNAME=lib])
 
263
            ;;
 
264
            *-*-openbsd*)
 
265
            CATOBJEXT=.mo
 
266
            DATADIRNAME=share
 
267
            ;;
 
268
            *)
 
269
            CATOBJEXT=.mo
 
270
            DATADIRNAME=lib
 
271
            ;;
 
272
            esac])
 
273
          LIBS="$glib_save_LIBS"
 
274
          INSTOBJEXT=.mo
 
275
        else
 
276
          gt_cv_have_gettext=no
 
277
        fi
 
278
      fi
 
279
    ])
 
280
 
 
281
    if test "$gt_cv_have_gettext" = "yes" ; then
 
282
      AC_DEFINE(ENABLE_NLS, 1,
 
283
        [always defined to indicate that i18n is enabled])
 
284
    fi
 
285
 
 
286
    dnl Test whether we really found GNU xgettext.
 
287
    if test "$XGETTEXT" != ":"; then
 
288
      dnl If it is not GNU xgettext we define it as : so that the
 
289
      dnl Makefiles still can work.
 
290
      if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 
291
        : ;
 
292
      else
 
293
        AC_MSG_RESULT(
 
294
          [found xgettext program is not GNU xgettext; ignore it])
 
295
        XGETTEXT=":"
 
296
      fi
 
297
    fi
 
298
 
 
299
    # We need to process the po/ directory.
 
300
    POSUB=po
 
301
 
 
302
    AC_OUTPUT_COMMANDS(
 
303
      [case "$CONFIG_FILES" in *po/Makefile.in*)
 
304
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 
305
      esac])
 
306
 
 
307
    dnl These rules are solely for the distribution goal.  While doing this
 
308
    dnl we only have to keep exactly one list of the available catalogs
 
309
    dnl in configure.ac.
 
310
    for lang in $ALL_LINGUAS; do
 
311
      GMOFILES="$GMOFILES $lang.gmo"
 
312
      POFILES="$POFILES $lang.po"
 
313
    done
 
314
 
 
315
    dnl Make all variables we use known to autoconf.
 
316
    AC_SUBST(CATALOGS)
 
317
    AC_SUBST(CATOBJEXT)
 
318
    AC_SUBST(DATADIRNAME)
 
319
    AC_SUBST(GMOFILES)
 
320
    AC_SUBST(INSTOBJEXT)
 
321
    AC_SUBST(INTLLIBS)
 
322
    AC_SUBST(PO_IN_DATADIR_TRUE)
 
323
    AC_SUBST(PO_IN_DATADIR_FALSE)
 
324
    AC_SUBST(POFILES)
 
325
    AC_SUBST(POSUB)
 
326
  ])
 
327
 
 
328
# AM_GLIB_GNU_GETTEXT
 
329
# -------------------
 
330
# Do checks necessary for use of gettext. If a suitable implementation 
 
331
# of gettext is found in either in libintl or in the C library,
 
332
# it will set INTLLIBS to the libraries needed for use of gettext
 
333
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
 
334
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
 
335
# on various variables needed by the Makefile.in.in installed by 
 
336
# glib-gettextize.
 
337
dnl
 
338
glib_DEFUN([GLIB_GNU_GETTEXT],
 
339
  [AC_REQUIRE([AC_PROG_CC])dnl
 
340
   
 
341
   GLIB_LC_MESSAGES
 
342
   GLIB_WITH_NLS
 
343
 
 
344
   if test "$gt_cv_have_gettext" = "yes"; then
 
345
     if test "x$ALL_LINGUAS" = "x"; then
 
346
       LINGUAS=
 
347
     else
 
348
       AC_MSG_CHECKING(for catalogs to be installed)
 
349
       NEW_LINGUAS=
 
350
       for presentlang in $ALL_LINGUAS; do
 
351
         useit=no
 
352
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
 
353
           desiredlanguages="$LINGUAS"
 
354
         else
 
355
           desiredlanguages="$ALL_LINGUAS"
 
356
         fi
 
357
         for desiredlang in $desiredlanguages; do
 
358
           # Use the presentlang catalog if desiredlang is
 
359
           #   a. equal to presentlang, or
 
360
           #   b. a variant of presentlang (because in this case,
 
361
           #      presentlang can be used as a fallback for messages
 
362
           #      which are not translated in the desiredlang catalog).
 
363
           case "$desiredlang" in
 
364
             "$presentlang"*) useit=yes;;
 
365
           esac
 
366
         done
 
367
         if test $useit = yes; then
 
368
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
 
369
         fi
 
370
       done
 
371
       LINGUAS=$NEW_LINGUAS
 
372
       AC_MSG_RESULT($LINGUAS)
 
373
     fi
 
374
 
 
375
     dnl Construct list of names of catalog files to be constructed.
 
376
     if test -n "$LINGUAS"; then
 
377
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
 
378
     fi
 
379
   fi
 
380
 
 
381
   dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
 
382
   dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
 
383
   dnl Try to locate is.
 
384
   MKINSTALLDIRS=
 
385
   if test -n "$ac_aux_dir"; then
 
386
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 
387
   fi
 
388
   if test -z "$MKINSTALLDIRS"; then
 
389
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 
390
   fi
 
391
   AC_SUBST(MKINSTALLDIRS)
 
392
 
 
393
   dnl Generate list of files to be processed by xgettext which will
 
394
   dnl be included in po/Makefile.
 
395
   test -d po || mkdir po
 
396
   if test "x$srcdir" != "x."; then
 
397
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
 
398
       posrcprefix="$srcdir/"
 
399
     else
 
400
       posrcprefix="../$srcdir/"
 
401
     fi
 
402
   else
 
403
     posrcprefix="../"
 
404
   fi
 
405
   rm -f po/POTFILES
 
406
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
 
407
        < $srcdir/po/POTFILES.in > po/POTFILES
 
408
  ])
 
409
 
 
410
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
50
411
# -------------------------------
51
 
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
52
 
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
53
 
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
54
 
[AM_AUTOMAKE_VERSION([1.13.1])dnl
55
 
m4_ifndef([AC_AUTOCONF_VERSION],
56
 
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
57
 
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
58
 
 
59
 
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
60
 
 
61
 
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
62
 
#
63
 
# This file is free software; the Free Software Foundation
64
 
# gives unlimited permission to copy and/or distribute it,
65
 
# with or without modifications, as long as this notice is preserved.
66
 
 
67
 
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
68
 
# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
69
 
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
70
 
#
71
 
# Of course, Automake must honor this variable whenever it calls a
72
 
# tool from the auxiliary directory.  The problem is that $srcdir (and
73
 
# therefore $ac_aux_dir as well) can be either absolute or relative,
74
 
# depending on how configure is run.  This is pretty annoying, since
75
 
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
76
 
# source directory, any form will work fine, but in subdirectories a
77
 
# relative path needs to be adjusted first.
78
 
#
79
 
# $ac_aux_dir/missing
80
 
#    fails when called from a subdirectory if $ac_aux_dir is relative
81
 
# $top_srcdir/$ac_aux_dir/missing
82
 
#    fails if $ac_aux_dir is absolute,
83
 
#    fails when called from a subdirectory in a VPATH build with
84
 
#          a relative $ac_aux_dir
85
 
#
86
 
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
87
 
# are both prefixed by $srcdir.  In an in-source build this is usually
88
 
# harmless because $srcdir is '.', but things will broke when you
89
 
# start a VPATH build or use an absolute $srcdir.
90
 
#
91
 
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
92
 
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
93
 
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
94
 
# and then we would define $MISSING as
95
 
#   MISSING="\${SHELL} $am_aux_dir/missing"
96
 
# This will work as long as MISSING is not called from configure, because
97
 
# unfortunately $(top_srcdir) has no meaning in configure.
98
 
# However there are other variables, like CC, which are often used in
99
 
# configure, and could therefore not use this "fixed" $ac_aux_dir.
100
 
#
101
 
# Another solution, used here, is to always expand $ac_aux_dir to an
102
 
# absolute PATH.  The drawback is that using absolute paths prevent a
103
 
# configured tree to be moved without reconfiguration.
104
 
 
105
 
AC_DEFUN([AM_AUX_DIR_EXPAND],
106
 
[dnl Rely on autoconf to set up CDPATH properly.
107
 
AC_PREREQ([2.50])dnl
108
 
# expand $ac_aux_dir to an absolute path
109
 
am_aux_dir=`cd $ac_aux_dir && pwd`
110
 
])
111
 
 
112
 
# AM_CONDITIONAL                                            -*- Autoconf -*-
113
 
 
114
 
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
115
 
#
116
 
# This file is free software; the Free Software Foundation
117
 
# gives unlimited permission to copy and/or distribute it,
118
 
# with or without modifications, as long as this notice is preserved.
119
 
 
120
 
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
121
 
# -------------------------------------
122
 
# Define a conditional.
123
 
AC_DEFUN([AM_CONDITIONAL],
124
 
[AC_PREREQ([2.52])dnl
125
 
 m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
126
 
       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
127
 
AC_SUBST([$1_TRUE])dnl
128
 
AC_SUBST([$1_FALSE])dnl
129
 
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
130
 
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
131
 
m4_define([_AM_COND_VALUE_$1], [$2])dnl
132
 
if $2; then
133
 
  $1_TRUE=
134
 
  $1_FALSE='#'
 
412
# Define VARIABLE to the location where catalog files will
 
413
# be installed by po/Makefile.
 
414
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
 
415
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
 
416
glib_save_prefix="$prefix"
 
417
glib_save_exec_prefix="$exec_prefix"
 
418
glib_save_datarootdir="$datarootdir"
 
419
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
420
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
 
421
datarootdir=`eval echo "${datarootdir}"`
 
422
if test "x$CATOBJEXT" = "x.mo" ; then
 
423
  localedir=`eval echo "${libdir}/locale"`
135
424
else
136
 
  $1_TRUE='#'
137
 
  $1_FALSE=
 
425
  localedir=`eval echo "${datadir}/locale"`
138
426
fi
139
 
AC_CONFIG_COMMANDS_PRE(
140
 
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
141
 
  AC_MSG_ERROR([[conditional "$1" was never defined.
142
 
Usually this means the macro was only invoked conditionally.]])
143
 
fi])])
144
 
 
145
 
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
146
 
#
147
 
# This file is free software; the Free Software Foundation
148
 
# gives unlimited permission to copy and/or distribute it,
149
 
# with or without modifications, as long as this notice is preserved.
150
 
 
151
 
 
152
 
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
153
 
# written in clear, in which case automake, when reading aclocal.m4,
154
 
# will think it sees a *use*, and therefore will trigger all it's
155
 
# C support machinery.  Also note that it means that autoscan, seeing
156
 
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
157
 
 
158
 
 
159
 
# _AM_DEPENDENCIES(NAME)
160
 
# ----------------------
161
 
# See how the compiler implements dependency checking.
162
 
# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
163
 
# We try a few techniques and use that to set a single cache variable.
164
 
#
165
 
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
166
 
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
167
 
# dependency, and given that the user is not expected to run this macro,
168
 
# just rely on AC_PROG_CC.
169
 
AC_DEFUN([_AM_DEPENDENCIES],
170
 
[AC_REQUIRE([AM_SET_DEPDIR])dnl
171
 
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
172
 
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
173
 
AC_REQUIRE([AM_DEP_TRACK])dnl
174
 
 
175
 
m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
176
 
      [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
177
 
      [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
178
 
      [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
179
 
      [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
180
 
      [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
181
 
                    [depcc="$$1"   am_compiler_list=])
182
 
 
183
 
AC_CACHE_CHECK([dependency style of $depcc],
184
 
               [am_cv_$1_dependencies_compiler_type],
185
 
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
186
 
  # We make a subdir and do the tests there.  Otherwise we can end up
187
 
  # making bogus files that we don't know about and never remove.  For
188
 
  # instance it was reported that on HP-UX the gcc test will end up
189
 
  # making a dummy file named 'D' -- because '-MD' means "put the output
190
 
  # in D".
191
 
  rm -rf conftest.dir
192
 
  mkdir conftest.dir
193
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
194
 
  # using a relative directory.
195
 
  cp "$am_depcomp" conftest.dir
196
 
  cd conftest.dir
197
 
  # We will build objects and dependencies in a subdirectory because
198
 
  # it helps to detect inapplicable dependency modes.  For instance
199
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
200
 
  # side effect of compilation, but ICC will put the dependencies in
201
 
  # the current directory while Tru64 will put them in the object
202
 
  # directory.
203
 
  mkdir sub
204
 
 
205
 
  am_cv_$1_dependencies_compiler_type=none
206
 
  if test "$am_compiler_list" = ""; then
207
 
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
 
427
prefix="$glib_save_prefix"
 
428
exec_prefix="$glib_save_exec_prefix"
 
429
datarootdir="$glib_save_datarootdir"
 
430
AC_DEFINE_UNQUOTED($1, "$localedir",
 
431
  [Define the location where the catalogs will be installed])
 
432
])
 
433
 
 
434
dnl
 
435
dnl Now the definitions that aclocal will find
 
436
dnl
 
437
ifdef(glib_configure_ac,[],[
 
438
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
 
439
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
 
440
])dnl
 
441
 
 
442
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
 
443
 
444
# Create a temporary file with TEST-FILE as its contents and pass the
 
445
# file name to PROGRAM.  Perform ACTION-IF-PASS if PROGRAM exits with
 
446
# 0 and perform ACTION-IF-FAIL for any other exit status.
 
447
AC_DEFUN([GLIB_RUN_PROG],
 
448
[cat >conftest.foo <<_ACEOF
 
449
$2
 
450
_ACEOF
 
451
if AC_RUN_LOG([$1 conftest.foo]); then
 
452
  m4_ifval([$3], [$3], [:])
 
453
m4_ifvaln([$4], [else $4])dnl
 
454
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
 
455
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
 
456
fi])
 
457
 
 
458
 
 
459
# gnome-common.m4
 
460
#
 
461
# serial 3
 
462
 
463
 
 
464
dnl GNOME_COMMON_INIT
 
465
 
 
466
AU_DEFUN([GNOME_COMMON_INIT],
 
467
[
 
468
  dnl this macro should come after AC_CONFIG_MACRO_DIR
 
469
  AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
 
470
 
 
471
  dnl ensure that when the Automake generated makefile calls aclocal,
 
472
  dnl it honours the $ACLOCAL_FLAGS environment variable
 
473
  ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
 
474
  if test -n "$ac_macro_dir"; then
 
475
    ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
208
476
  fi
209
 
  am__universal=false
210
 
  m4_case([$1], [CC],
211
 
    [case " $depcc " in #(
212
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
213
 
     esac],
214
 
    [CXX],
215
 
    [case " $depcc " in #(
216
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
217
 
     esac])
218
 
 
219
 
  for depmode in $am_compiler_list; do
220
 
    # Setup a source with many dependencies, because some compilers
221
 
    # like to wrap large dependency lists on column 80 (with \), and
222
 
    # we should not choose a depcomp mode which is confused by this.
223
 
    #
224
 
    # We need to recreate these files for each test, as the compiler may
225
 
    # overwrite some of them when testing with obscure command lines.
226
 
    # This happens at least with the AIX C compiler.
227
 
    : > sub/conftest.c
228
 
    for i in 1 2 3 4 5 6; do
229
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
230
 
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
231
 
      # Solaris 10 /bin/sh.
232
 
      echo '/* dummy */' > sub/conftst$i.h
233
 
    done
234
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
235
 
 
236
 
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
237
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
238
 
    # handle '-M -o', and we need to detect this.  Also, some Intel
239
 
    # versions had trouble with output in subdirs.
240
 
    am__obj=sub/conftest.${OBJEXT-o}
241
 
    am__minus_obj="-o $am__obj"
242
 
    case $depmode in
243
 
    gcc)
244
 
      # This depmode causes a compiler race in universal mode.
245
 
      test "$am__universal" = false || continue
246
 
      ;;
247
 
    nosideeffect)
248
 
      # After this tag, mechanisms are not by side-effect, so they'll
249
 
      # only be used when explicitly requested.
250
 
      if test "x$enable_dependency_tracking" = xyes; then
251
 
        continue
252
 
      else
253
 
        break
254
 
      fi
255
 
      ;;
256
 
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
257
 
      # This compiler won't grok '-c -o', but also, the minuso test has
258
 
      # not run yet.  These depmodes are late enough in the game, and
259
 
      # so weak that their functioning should not be impacted.
260
 
      am__obj=conftest.${OBJEXT-o}
261
 
      am__minus_obj=
262
 
      ;;
263
 
    none) break ;;
 
477
 
 
478
  AC_SUBST([ACLOCAL_AMFLAGS])
 
479
],
 
480
[[$0: This macro is deprecated. You should set put "ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}"
 
481
in your top-level Makefile.am, instead, where "m4" is the macro directory set
 
482
with AC_CONFIG_MACRO_DIR() in your configure.ac]])
 
483
 
 
484
AC_DEFUN([GNOME_DEBUG_CHECK],
 
485
[
 
486
        AC_ARG_ENABLE([debug],
 
487
                      AC_HELP_STRING([--enable-debug],
 
488
                                     [turn on debugging]),,
 
489
                      [enable_debug=no])
 
490
 
 
491
        if test x$enable_debug = xyes ; then
 
492
            AC_DEFINE(GNOME_ENABLE_DEBUG, 1,
 
493
                [Enable additional debugging at the expense of performance and size])
 
494
        fi
 
495
])
 
496
 
 
497
dnl GNOME_MAINTAINER_MODE_DEFINES ()
 
498
dnl define DISABLE_DEPRECATED
 
499
dnl
 
500
AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
 
501
[
 
502
        AC_REQUIRE([AM_MAINTAINER_MODE])
 
503
 
 
504
        DISABLE_DEPRECATED=""
 
505
        if test $USE_MAINTAINER_MODE = yes; then
 
506
                DOMAINS="GCONF BONOBO BONOBO_UI GNOME LIBGLADE GNOME_VFS WNCK LIBSOUP"
 
507
                for DOMAIN in $DOMAINS; do
 
508
                       DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES"
 
509
                done
 
510
        fi
 
511
 
 
512
        AC_SUBST(DISABLE_DEPRECATED)
 
513
])
 
514
 
 
515
# gnome-compiler-flags.m4
 
516
#
 
517
# serial 2
 
518
#
 
519
 
 
520
dnl GNOME_COMPILE_WARNINGS
 
521
dnl Turn on many useful compiler warnings and substitute the result into
 
522
dnl WARN_CFLAGS
 
523
dnl For now, only works on GCC
 
524
dnl Pass the default value of the --enable-compile-warnings configure option as
 
525
dnl the first argument to the macro, defaulting to 'yes'.
 
526
dnl Additional warning/error flags can be passed as an optional second argument.
 
527
dnl
 
528
dnl For example: GNOME_COMPILE_WARNINGS([maximum],[-Werror=some-flag -Wfoobar])
 
529
AC_DEFUN([GNOME_COMPILE_WARNINGS],[
 
530
    dnl ******************************
 
531
    dnl More compiler warnings
 
532
    dnl ******************************
 
533
 
 
534
    AC_ARG_ENABLE(compile-warnings, 
 
535
                  AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
 
536
                                 [Turn on compiler warnings]),,
 
537
                  [enable_compile_warnings="m4_default([$1],[yes])"])
 
538
 
 
539
    if test "x$GCC" != xyes; then
 
540
        enable_compile_warnings=no
 
541
    fi
 
542
 
 
543
    warning_flags=
 
544
    realsave_CFLAGS="$CFLAGS"
 
545
 
 
546
    dnl These are warning flags that aren't marked as fatal.  Can be
 
547
    dnl overridden on a per-project basis with -Wno-foo.
 
548
    base_warn_flags=" \
 
549
        -Wall \
 
550
        -Wstrict-prototypes \
 
551
        -Wnested-externs \
 
552
    "
 
553
 
 
554
    dnl These compiler flags typically indicate very broken or suspicious
 
555
    dnl code.  Some of them such as implicit-function-declaration are
 
556
    dnl just not default because gcc compiles a lot of legacy code.
 
557
    dnl We choose to make this set into explicit errors.
 
558
    base_error_flags=" \
 
559
        -Werror=missing-prototypes \
 
560
        -Werror=implicit-function-declaration \
 
561
        -Werror=pointer-arith \
 
562
        -Werror=init-self \
 
563
        -Werror=format-security \
 
564
        -Werror=format=2 \
 
565
        -Werror=missing-include-dirs \
 
566
    "
 
567
 
 
568
    dnl Additional warning or error flags provided by the module author to
 
569
    dnl allow stricter standards to be imposed on a per-module basis.
 
570
    dnl The author can pass -W or -Werror flags here as they see fit.
 
571
    additional_flags="m4_default([$2],[])"
 
572
 
 
573
    case "$enable_compile_warnings" in
 
574
    no)
 
575
        warning_flags=
 
576
        ;;
 
577
    minimum)
 
578
        warning_flags="-Wall"
 
579
        ;;
 
580
    yes)
 
581
        warning_flags="$base_warn_flags $base_error_flags $additional_flags"
 
582
        ;;
 
583
    maximum|error)
 
584
        warning_flags="$base_warn_flags $base_error_flags $additional_flags"
 
585
        ;;
 
586
    *)
 
587
        AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
 
588
        ;;
264
589
    esac
265
 
    if depmode=$depmode \
266
 
       source=sub/conftest.c object=$am__obj \
267
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
268
 
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
269
 
         >/dev/null 2>conftest.err &&
270
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
271
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
272
 
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
273
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
274
 
      # icc doesn't choke on unknown options, it will just issue warnings
275
 
      # or remarks (even with -Werror).  So we grep stderr for any message
276
 
      # that says an option was ignored or not supported.
277
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
278
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
279
 
      # The diagnosis changed in icc 8.0:
280
 
      #   icc: Command line remark: option '-MP' not supported
281
 
      if (grep 'ignoring option' conftest.err ||
282
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
283
 
        am_cv_$1_dependencies_compiler_type=$depmode
284
 
        break
 
590
 
 
591
    if test "$enable_compile_warnings" = "error" ; then
 
592
        warning_flags="$warning_flags -Werror"
 
593
    fi
 
594
 
 
595
    dnl Check whether GCC supports the warning options
 
596
    for option in $warning_flags; do
 
597
        save_CFLAGS="$CFLAGS"
 
598
        CFLAGS="$CFLAGS $option"
 
599
        AC_MSG_CHECKING([whether gcc understands $option])
 
600
        AC_TRY_COMPILE([], [],
 
601
            has_option=yes,
 
602
            has_option=no,)
 
603
        CFLAGS="$save_CFLAGS"
 
604
        AC_MSG_RESULT([$has_option])
 
605
        if test $has_option = yes; then
 
606
            tested_warning_flags="$tested_warning_flags $option"
 
607
        fi
 
608
        unset has_option
 
609
        unset save_CFLAGS
 
610
    done
 
611
    unset option
 
612
    CFLAGS="$realsave_CFLAGS"
 
613
    AC_MSG_CHECKING(what warning flags to pass to the C compiler)
 
614
    AC_MSG_RESULT($tested_warning_flags)
 
615
 
 
616
    AC_ARG_ENABLE(iso-c,
 
617
                  AC_HELP_STRING([--enable-iso-c],
 
618
                                 [Try to warn if code is not ISO C ]),,
 
619
                  [enable_iso_c=no])
 
620
 
 
621
    AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
 
622
    complCFLAGS=
 
623
    if test "x$enable_iso_c" != "xno"; then
 
624
        if test "x$GCC" = "xyes"; then
 
625
        case " $CFLAGS " in
 
626
            *[\ \       ]-ansi[\ \      ]*) ;;
 
627
            *) complCFLAGS="$complCFLAGS -ansi" ;;
 
628
        esac
 
629
        case " $CFLAGS " in
 
630
            *[\ \       ]-pedantic[\ \  ]*) ;;
 
631
            *) complCFLAGS="$complCFLAGS -pedantic" ;;
 
632
        esac
 
633
        fi
 
634
    fi
 
635
    AC_MSG_RESULT($complCFLAGS)
 
636
 
 
637
    WARN_CFLAGS="$tested_warning_flags $complCFLAGS"
 
638
    AC_SUBST(WARN_CFLAGS)
 
639
])
 
640
 
 
641
dnl For C++, do basically the same thing.
 
642
 
 
643
AC_DEFUN([GNOME_CXX_WARNINGS],[
 
644
  AC_ARG_ENABLE(cxx-warnings,
 
645
                AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
 
646
                               [Turn on compiler warnings.]),,
 
647
                [enable_cxx_warnings="m4_default([$1],[minimum])"])
 
648
 
 
649
  AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
 
650
  warnCXXFLAGS=
 
651
  if test "x$GXX" != xyes; then
 
652
    enable_cxx_warnings=no
 
653
  fi
 
654
  if test "x$enable_cxx_warnings" != "xno"; then
 
655
    if test "x$GXX" = "xyes"; then
 
656
      case " $CXXFLAGS " in
 
657
      *[\ \     ]-Wall[\ \      ]*) ;;
 
658
      *) warnCXXFLAGS="-Wall -Wno-unused" ;;
 
659
      esac
 
660
 
 
661
      ## -W is not all that useful.  And it cannot be controlled
 
662
      ## with individual -Wno-xxx flags, unlike -Wall
 
663
      if test "x$enable_cxx_warnings" = "xyes"; then
 
664
        warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
285
665
      fi
286
666
    fi
287
 
  done
288
 
 
289
 
  cd ..
290
 
  rm -rf conftest.dir
291
 
else
292
 
  am_cv_$1_dependencies_compiler_type=none
293
 
fi
294
 
])
295
 
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
296
 
AM_CONDITIONAL([am__fastdep$1], [
297
 
  test "x$enable_dependency_tracking" != xno \
298
 
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
299
 
])
300
 
 
301
 
 
302
 
# AM_SET_DEPDIR
303
 
# -------------
304
 
# Choose a directory name for dependency files.
305
 
# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
306
 
AC_DEFUN([AM_SET_DEPDIR],
307
 
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
308
 
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
309
 
])
310
 
 
311
 
 
312
 
# AM_DEP_TRACK
313
 
# ------------
314
 
AC_DEFUN([AM_DEP_TRACK],
315
 
[AC_ARG_ENABLE([dependency-tracking], [dnl
316
 
AS_HELP_STRING(
317
 
  [--enable-dependency-tracking],
318
 
  [do not reject slow dependency extractors])
319
 
AS_HELP_STRING(
320
 
  [--disable-dependency-tracking],
321
 
  [speeds up one-time build])])
322
 
if test "x$enable_dependency_tracking" != xno; then
323
 
  am_depcomp="$ac_aux_dir/depcomp"
324
 
  AMDEPBACKSLASH='\'
325
 
  am__nodep='_no'
326
 
fi
327
 
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
328
 
AC_SUBST([AMDEPBACKSLASH])dnl
329
 
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
330
 
AC_SUBST([am__nodep])dnl
331
 
_AM_SUBST_NOTMAKE([am__nodep])dnl
332
 
])
333
 
 
334
 
# Generate code to set up dependency tracking.              -*- Autoconf -*-
335
 
 
336
 
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
337
 
#
338
 
# This file is free software; the Free Software Foundation
339
 
# gives unlimited permission to copy and/or distribute it,
340
 
# with or without modifications, as long as this notice is preserved.
341
 
 
342
 
 
343
 
# _AM_OUTPUT_DEPENDENCY_COMMANDS
344
 
# ------------------------------
345
 
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
346
 
[{
347
 
  # Older Autoconf quotes --file arguments for eval, but not when files
348
 
  # are listed without --file.  Let's play safe and only enable the eval
349
 
  # if we detect the quoting.
350
 
  case $CONFIG_FILES in
351
 
  *\'*) eval set x "$CONFIG_FILES" ;;
352
 
  *)   set x $CONFIG_FILES ;;
353
 
  esac
354
 
  shift
355
 
  for mf
356
 
  do
357
 
    # Strip MF so we end up with the name of the file.
358
 
    mf=`echo "$mf" | sed -e 's/:.*$//'`
359
 
    # Check whether this is an Automake generated Makefile or not.
360
 
    # We used to match only the files named 'Makefile.in', but
361
 
    # some people rename them; so instead we look at the file content.
362
 
    # Grep'ing the first line is not enough: some people post-process
363
 
    # each Makefile.in and add a new line on top of each file to say so.
364
 
    # Grep'ing the whole file is not good either: AIX grep has a line
365
 
    # limit of 2048, but all sed's we know have understand at least 4000.
366
 
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
367
 
      dirpart=`AS_DIRNAME("$mf")`
368
 
    else
369
 
      continue
370
 
    fi
371
 
    # Extract the definition of DEPDIR, am__include, and am__quote
372
 
    # from the Makefile without running 'make'.
373
 
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
374
 
    test -z "$DEPDIR" && continue
375
 
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
376
 
    test -z "am__include" && continue
377
 
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
378
 
    # Find all dependency output files, they are included files with
379
 
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
380
 
    # simplest approach to changing $(DEPDIR) to its actual value in the
381
 
    # expansion.
382
 
    for file in `sed -n "
383
 
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
384
 
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
385
 
      # Make sure the directory exists.
386
 
      test -f "$dirpart/$file" && continue
387
 
      fdir=`AS_DIRNAME(["$file"])`
388
 
      AS_MKDIR_P([$dirpart/$fdir])
389
 
      # echo "creating $dirpart/$file"
390
 
      echo '# dummy' > "$dirpart/$file"
391
 
    done
392
 
  done
393
 
}
394
 
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
395
 
 
396
 
 
397
 
# AM_OUTPUT_DEPENDENCY_COMMANDS
398
 
# -----------------------------
399
 
# This macro should only be invoked once -- use via AC_REQUIRE.
400
 
#
401
 
# This code is only required when automatic dependency tracking
402
 
# is enabled.  FIXME.  This creates each '.P' file that we will
403
 
# need in order to bootstrap the dependency handling code.
404
 
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
405
 
[AC_CONFIG_COMMANDS([depfiles],
406
 
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
407
 
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
408
 
])
409
 
 
410
 
# Do all the work for Automake.                             -*- Autoconf -*-
411
 
 
412
 
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
413
 
#
414
 
# This file is free software; the Free Software Foundation
415
 
# gives unlimited permission to copy and/or distribute it,
416
 
# with or without modifications, as long as this notice is preserved.
417
 
 
418
 
# This macro actually does too much.  Some checks are only needed if
419
 
# your package does certain things.  But this isn't really a big deal.
420
 
 
421
 
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
422
 
# AM_INIT_AUTOMAKE([OPTIONS])
423
 
# -----------------------------------------------
424
 
# The call with PACKAGE and VERSION arguments is the old style
425
 
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
426
 
# and VERSION should now be passed to AC_INIT and removed from
427
 
# the call to AM_INIT_AUTOMAKE.
428
 
# We support both call styles for the transition.  After
429
 
# the next Automake release, Autoconf can make the AC_INIT
430
 
# arguments mandatory, and then we can depend on a new Autoconf
431
 
# release and drop the old call support.
432
 
AC_DEFUN([AM_INIT_AUTOMAKE],
433
 
[AC_PREREQ([2.65])dnl
434
 
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
435
 
dnl the ones we care about.
436
 
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
437
 
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
438
 
AC_REQUIRE([AC_PROG_INSTALL])dnl
439
 
if test "`cd $srcdir && pwd`" != "`pwd`"; then
440
 
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
441
 
  # is not polluted with repeated "-I."
442
 
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
443
 
  # test to see if srcdir already configured
444
 
  if test -f $srcdir/config.status; then
445
 
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
446
 
  fi
447
 
fi
448
 
 
449
 
# test whether we have cygpath
450
 
if test -z "$CYGPATH_W"; then
451
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
452
 
    CYGPATH_W='cygpath -w'
453
 
  else
454
 
    CYGPATH_W=echo
455
 
  fi
456
 
fi
457
 
AC_SUBST([CYGPATH_W])
458
 
 
459
 
# Define the identity of the package.
460
 
dnl Distinguish between old-style and new-style calls.
461
 
m4_ifval([$2],
462
 
[AC_DIAGNOSE([obsolete],
463
 
             [$0: two- and three-arguments forms are deprecated.])
464
 
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
465
 
 AC_SUBST([PACKAGE], [$1])dnl
466
 
 AC_SUBST([VERSION], [$2])],
467
 
[_AM_SET_OPTIONS([$1])dnl
468
 
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
469
 
m4_if(
470
 
  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
471
 
  [ok:ok],,
472
 
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
473
 
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
474
 
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
475
 
 
476
 
_AM_IF_OPTION([no-define],,
477
 
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
478
 
 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
479
 
 
480
 
# Some tools Automake needs.
481
 
AC_REQUIRE([AM_SANITY_CHECK])dnl
482
 
AC_REQUIRE([AC_ARG_PROGRAM])dnl
483
 
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
484
 
AM_MISSING_PROG([AUTOCONF], [autoconf])
485
 
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
486
 
AM_MISSING_PROG([AUTOHEADER], [autoheader])
487
 
AM_MISSING_PROG([MAKEINFO], [makeinfo])
488
 
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
489
 
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
490
 
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
491
 
# For better backward compatibility.  To be removed once Automake 1.9.x
492
 
# dies out for good.  For more background, see:
493
 
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
494
 
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
495
 
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
496
 
# We need awk for the "check" target.  The system "awk" is bad on
497
 
# some platforms.
498
 
AC_REQUIRE([AC_PROG_AWK])dnl
499
 
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
500
 
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
501
 
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
502
 
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
503
 
                             [_AM_PROG_TAR([v7])])])
504
 
_AM_IF_OPTION([no-dependencies],,
505
 
[AC_PROVIDE_IFELSE([AC_PROG_CC],
506
 
                  [_AM_DEPENDENCIES([CC])],
507
 
                  [m4_define([AC_PROG_CC],
508
 
                             m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
509
 
AC_PROVIDE_IFELSE([AC_PROG_CXX],
510
 
                  [_AM_DEPENDENCIES([CXX])],
511
 
                  [m4_define([AC_PROG_CXX],
512
 
                             m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
513
 
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
514
 
                  [_AM_DEPENDENCIES([OBJC])],
515
 
                  [m4_define([AC_PROG_OBJC],
516
 
                             m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
517
 
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
518
 
                  [_AM_DEPENDENCIES([OBJCXX])],
519
 
                  [m4_define([AC_PROG_OBJCXX],
520
 
                             m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
521
 
])
522
 
AC_REQUIRE([AM_SILENT_RULES])dnl
523
 
dnl The testsuite driver may need to know about EXEEXT, so add the
524
 
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
525
 
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
526
 
AC_CONFIG_COMMANDS_PRE(dnl
527
 
[m4_provide_if([_AM_COMPILER_EXEEXT],
528
 
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
529
 
])
530
 
 
531
 
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
532
 
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
533
 
dnl mangled by Autoconf and run in a shell conditional statement.
534
 
m4_define([_AC_COMPILER_EXEEXT],
535
 
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
536
 
 
537
 
 
538
 
# When config.status generates a header, we must update the stamp-h file.
539
 
# This file resides in the same directory as the config header
540
 
# that is generated.  The stamp files are numbered to have different names.
541
 
 
542
 
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
543
 
# loop where config.status creates the headers, so we can generate
544
 
# our stamp files there.
545
 
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
546
 
[# Compute $1's index in $config_headers.
547
 
_am_arg=$1
548
 
_am_stamp_count=1
549
 
for _am_header in $config_headers :; do
550
 
  case $_am_header in
551
 
    $_am_arg | $_am_arg:* )
552
 
      break ;;
553
 
    * )
554
 
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
555
 
  esac
556
 
done
557
 
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
558
 
 
559
 
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
560
 
#
561
 
# This file is free software; the Free Software Foundation
562
 
# gives unlimited permission to copy and/or distribute it,
563
 
# with or without modifications, as long as this notice is preserved.
564
 
 
565
 
# AM_PROG_INSTALL_SH
566
 
# ------------------
567
 
# Define $install_sh.
568
 
AC_DEFUN([AM_PROG_INSTALL_SH],
569
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
570
 
if test x"${install_sh}" != xset; then
571
 
  case $am_aux_dir in
572
 
  *\ * | *\     *)
573
 
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
574
 
  *)
575
 
    install_sh="\${SHELL} $am_aux_dir/install-sh"
576
 
  esac
577
 
fi
578
 
AC_SUBST([install_sh])])
579
 
 
580
 
# Copyright (C) 2003-2013 Free Software Foundation, Inc.
581
 
#
582
 
# This file is free software; the Free Software Foundation
583
 
# gives unlimited permission to copy and/or distribute it,
584
 
# with or without modifications, as long as this notice is preserved.
585
 
 
586
 
# Check whether the underlying file-system supports filenames
587
 
# with a leading dot.  For instance MS-DOS doesn't.
588
 
AC_DEFUN([AM_SET_LEADING_DOT],
589
 
[rm -rf .tst 2>/dev/null
590
 
mkdir .tst 2>/dev/null
591
 
if test -d .tst; then
592
 
  am__leading_dot=.
593
 
else
594
 
  am__leading_dot=_
595
 
fi
596
 
rmdir .tst 2>/dev/null
597
 
AC_SUBST([am__leading_dot])])
598
 
 
599
 
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
600
 
# From Jim Meyering
601
 
 
602
 
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
603
 
#
604
 
# This file is free software; the Free Software Foundation
605
 
# gives unlimited permission to copy and/or distribute it,
606
 
# with or without modifications, as long as this notice is preserved.
607
 
 
608
 
# AM_MAINTAINER_MODE([DEFAULT-MODE])
609
 
# ----------------------------------
610
 
# Control maintainer-specific portions of Makefiles.
611
 
# Default is to disable them, unless 'enable' is passed literally.
612
 
# For symmetry, 'disable' may be passed as well.  Anyway, the user
613
 
# can override the default with the --enable/--disable switch.
614
 
AC_DEFUN([AM_MAINTAINER_MODE],
615
 
[m4_case(m4_default([$1], [disable]),
616
 
       [enable], [m4_define([am_maintainer_other], [disable])],
617
 
       [disable], [m4_define([am_maintainer_other], [enable])],
618
 
       [m4_define([am_maintainer_other], [enable])
619
 
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
620
 
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
621
 
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
622
 
  AC_ARG_ENABLE([maintainer-mode],
623
 
    [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
624
 
      am_maintainer_other[ make rules and dependencies not useful
625
 
      (and sometimes confusing) to the casual installer])],
626
 
    [USE_MAINTAINER_MODE=$enableval],
627
 
    [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
628
 
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
629
 
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
630
 
  MAINT=$MAINTAINER_MODE_TRUE
631
 
  AC_SUBST([MAINT])dnl
 
667
  fi
 
668
  AC_MSG_RESULT($warnCXXFLAGS)
 
669
 
 
670
   AC_ARG_ENABLE(iso-cxx,
 
671
                 AC_HELP_STRING([--enable-iso-cxx],
 
672
                                [Try to warn if code is not ISO C++ ]),,
 
673
                 [enable_iso_cxx=no])
 
674
 
 
675
   AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
 
676
   complCXXFLAGS=
 
677
   if test "x$enable_iso_cxx" != "xno"; then
 
678
     if test "x$GXX" = "xyes"; then
 
679
      case " $CXXFLAGS " in
 
680
      *[\ \     ]-ansi[\ \      ]*) ;;
 
681
      *) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
 
682
      esac
 
683
 
 
684
      case " $CXXFLAGS " in
 
685
      *[\ \     ]-pedantic[\ \  ]*) ;;
 
686
      *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
 
687
      esac
 
688
     fi
 
689
   fi
 
690
  AC_MSG_RESULT($complCXXFLAGS)
 
691
 
 
692
  WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
 
693
  AC_SUBST(WARN_CXXFLAGS)
 
694
])
 
695
 
 
696
dnl GLIB_GSETTINGS
 
697
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
 
698
dnl the schema should be compiled
 
699
dnl
 
700
 
 
701
AC_DEFUN([GLIB_GSETTINGS],
 
702
[
 
703
  m4_pattern_allow([AM_V_GEN])
 
704
  AC_ARG_ENABLE(schemas-compile,
 
705
                AS_HELP_STRING([--disable-schemas-compile],
 
706
                               [Disable regeneration of gschemas.compiled on install]),
 
707
                [case ${enableval} in
 
708
                  yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE=""  ;;
 
709
                  no)  GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
 
710
                  *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;;
 
711
                 esac])
 
712
  AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE])
 
713
  PKG_PROG_PKG_CONFIG([0.16])
 
714
  AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas])
 
715
  if test x$cross_compiling != xyes; then
 
716
    GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
 
717
  else
 
718
    AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas)
 
719
  fi
 
720
  AC_SUBST(GLIB_COMPILE_SCHEMAS)
 
721
  if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
 
722
    ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2])
 
723
  else
 
724
    ifelse([$1],,[:],[$1])
 
725
  fi
 
726
 
 
727
  GSETTINGS_RULES='
 
728
.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
 
729
 
 
730
mostlyclean-am: clean-gsettings-schemas
 
731
 
 
732
gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
 
733
 
 
734
%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
 
735
        $(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$${d}$< && touch [$]@
 
736
 
 
737
all-am: $(gsettings_SCHEMAS:.xml=.valid)
 
738
uninstall-am: uninstall-gsettings-schemas
 
739
install-data-am: install-gsettings-schemas
 
740
 
 
741
.SECONDARY: $(gsettings_SCHEMAS)
 
742
 
 
743
install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
 
744
        @$(NORMAL_INSTALL)
 
745
        if test -n "$^"; then \
 
746
                test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
 
747
                $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
 
748
                test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
 
749
        fi
 
750
 
 
751
uninstall-gsettings-schemas:
 
752
        @$(NORMAL_UNINSTALL)
 
753
        @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
 
754
        files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
 
755
        test -n "$$files" || exit 0; \
 
756
        echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
 
757
        cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
 
758
        test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
 
759
 
 
760
clean-gsettings-schemas:
 
761
        rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
 
762
 
 
763
ifdef gsettings_ENUM_NAMESPACE
 
764
$(gsettings__enum_file): $(gsettings_ENUM_FILES)
 
765
        $(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead "  <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod "    <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail "  </@type@>" --ftail "</schemalist>" [$]^ > [$]@.tmp && mv [$]@.tmp [$]@
 
766
endif
 
767
'
 
768
  _GSETTINGS_SUBST(GSETTINGS_RULES)
 
769
])
 
770
 
 
771
dnl _GSETTINGS_SUBST(VARIABLE)
 
772
dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
 
773
AC_DEFUN([_GSETTINGS_SUBST],
 
774
[
 
775
AC_SUBST([$1])
 
776
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
632
777
]
633
778
)
634
779
 
635
 
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
636
 
 
637
 
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
638
 
#
639
 
# This file is free software; the Free Software Foundation
640
 
# gives unlimited permission to copy and/or distribute it,
641
 
# with or without modifications, as long as this notice is preserved.
642
 
 
643
 
# AM_MAKE_INCLUDE()
644
 
# -----------------
645
 
# Check to see how make treats includes.
646
 
AC_DEFUN([AM_MAKE_INCLUDE],
647
 
[am_make=${MAKE-make}
648
 
cat > confinc << 'END'
649
 
am__doit:
650
 
        @echo this is the am__doit target
651
 
.PHONY: am__doit
652
 
END
653
 
# If we don't find an include directive, just comment out the code.
654
 
AC_MSG_CHECKING([for style of include used by $am_make])
655
 
am__include="#"
656
 
am__quote=
657
 
_am_result=none
658
 
# First try GNU make style include.
659
 
echo "include confinc" > confmf
660
 
# Ignore all kinds of additional output from 'make'.
661
 
case `$am_make -s -f confmf 2> /dev/null` in #(
662
 
*the\ am__doit\ target*)
663
 
  am__include=include
664
 
  am__quote=
665
 
  _am_result=GNU
666
 
  ;;
667
 
esac
668
 
# Now try BSD make style include.
669
 
if test "$am__include" = "#"; then
670
 
   echo '.include "confinc"' > confmf
671
 
   case `$am_make -s -f confmf 2> /dev/null` in #(
672
 
   *the\ am__doit\ target*)
673
 
     am__include=.include
674
 
     am__quote="\""
675
 
     _am_result=BSD
676
 
     ;;
677
 
   esac
678
 
fi
679
 
AC_SUBST([am__include])
680
 
AC_SUBST([am__quote])
681
 
AC_MSG_RESULT([$_am_result])
682
 
rm -f confinc confmf
683
 
])
684
 
 
685
 
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
686
 
 
687
 
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
688
 
#
689
 
# This file is free software; the Free Software Foundation
690
 
# gives unlimited permission to copy and/or distribute it,
691
 
# with or without modifications, as long as this notice is preserved.
692
 
 
693
 
# AM_MISSING_PROG(NAME, PROGRAM)
694
 
# ------------------------------
695
 
AC_DEFUN([AM_MISSING_PROG],
696
 
[AC_REQUIRE([AM_MISSING_HAS_RUN])
697
 
$1=${$1-"${am_missing_run}$2"}
698
 
AC_SUBST($1)])
699
 
 
700
 
# AM_MISSING_HAS_RUN
701
 
# ------------------
702
 
# Define MISSING if not defined so far and test if it is modern enough.
703
 
# If it is, set am_missing_run to use it, otherwise, to nothing.
704
 
AC_DEFUN([AM_MISSING_HAS_RUN],
705
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
706
 
AC_REQUIRE_AUX_FILE([missing])dnl
707
 
if test x"${MISSING+set}" != xset; then
708
 
  case $am_aux_dir in
709
 
  *\ * | *\     *)
710
 
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
711
 
  *)
712
 
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
713
 
  esac
714
 
fi
715
 
# Use eval to expand $SHELL
716
 
if eval "$MISSING --is-lightweight"; then
717
 
  am_missing_run="$MISSING "
718
 
else
719
 
  am_missing_run=
720
 
  AC_MSG_WARN(['missing' script is too old or missing])
721
 
fi
722
 
])
723
 
 
724
 
# Helper functions for option handling.                     -*- Autoconf -*-
725
 
 
726
 
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
727
 
#
728
 
# This file is free software; the Free Software Foundation
729
 
# gives unlimited permission to copy and/or distribute it,
730
 
# with or without modifications, as long as this notice is preserved.
731
 
 
732
 
# _AM_MANGLE_OPTION(NAME)
733
 
# -----------------------
734
 
AC_DEFUN([_AM_MANGLE_OPTION],
735
 
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
736
 
 
737
 
# _AM_SET_OPTION(NAME)
738
 
# --------------------
739
 
# Set option NAME.  Presently that only means defining a flag for this option.
740
 
AC_DEFUN([_AM_SET_OPTION],
741
 
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
742
 
 
743
 
# _AM_SET_OPTIONS(OPTIONS)
744
 
# ------------------------
745
 
# OPTIONS is a space-separated list of Automake options.
746
 
AC_DEFUN([_AM_SET_OPTIONS],
747
 
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
748
 
 
749
 
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
750
 
# -------------------------------------------
751
 
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
752
 
AC_DEFUN([_AM_IF_OPTION],
753
 
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
754
 
 
755
 
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
756
 
 
757
 
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
758
 
#
759
 
# This file is free software; the Free Software Foundation
760
 
# gives unlimited permission to copy and/or distribute it,
761
 
# with or without modifications, as long as this notice is preserved.
762
 
 
763
 
# AM_SANITY_CHECK
764
 
# ---------------
765
 
AC_DEFUN([AM_SANITY_CHECK],
766
 
[AC_MSG_CHECKING([whether build environment is sane])
767
 
# Reject unsafe characters in $srcdir or the absolute working directory
768
 
# name.  Accept space and tab only in the latter.
769
 
am_lf='
770
 
'
771
 
case `pwd` in
772
 
  *[[\\\"\#\$\&\'\`$am_lf]]*)
773
 
    AC_MSG_ERROR([unsafe absolute working directory name]);;
774
 
esac
775
 
case $srcdir in
776
 
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
777
 
    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
778
 
esac
779
 
 
780
 
# Do 'set' in a subshell so we don't clobber the current shell's
781
 
# arguments.  Must try -L first in case configure is actually a
782
 
# symlink; some systems play weird games with the mod time of symlinks
783
 
# (eg FreeBSD returns the mod time of the symlink's containing
784
 
# directory).
785
 
if (
786
 
   am_has_slept=no
787
 
   for am_try in 1 2; do
788
 
     echo "timestamp, slept: $am_has_slept" > conftest.file
789
 
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
790
 
     if test "$[*]" = "X"; then
791
 
        # -L didn't work.
792
 
        set X `ls -t "$srcdir/configure" conftest.file`
793
 
     fi
794
 
     if test "$[*]" != "X $srcdir/configure conftest.file" \
795
 
        && test "$[*]" != "X conftest.file $srcdir/configure"; then
796
 
 
797
 
        # If neither matched, then we have a broken ls.  This can happen
798
 
        # if, for instance, CONFIG_SHELL is bash and it inherits a
799
 
        # broken ls alias from the environment.  This has actually
800
 
        # happened.  Such a system could not be considered "sane".
801
 
        AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
802
 
  alias in your environment])
803
 
     fi
804
 
     if test "$[2]" = conftest.file || test $am_try -eq 2; then
805
 
       break
806
 
     fi
807
 
     # Just in case.
808
 
     sleep 1
809
 
     am_has_slept=yes
810
 
   done
811
 
   test "$[2]" = conftest.file
812
 
   )
813
 
then
814
 
   # Ok.
815
 
   :
816
 
else
817
 
   AC_MSG_ERROR([newly created file is older than distributed files!
818
 
Check your system clock])
819
 
fi
820
 
AC_MSG_RESULT([yes])
821
 
# If we didn't sleep, we still need to ensure time stamps of config.status and
822
 
# generated files are strictly newer.
823
 
am_sleep_pid=
824
 
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
825
 
  ( sleep 1 ) &
826
 
  am_sleep_pid=$!
827
 
fi
828
 
AC_CONFIG_COMMANDS_PRE(
829
 
  [AC_MSG_CHECKING([that generated files are newer than configure])
830
 
   if test -n "$am_sleep_pid"; then
831
 
     # Hide warnings about reused PIDs.
832
 
     wait $am_sleep_pid 2>/dev/null
833
 
   fi
834
 
   AC_MSG_RESULT([done])])
835
 
rm -f conftest.file
836
 
])
837
 
 
838
 
# Copyright (C) 2009-2013 Free Software Foundation, Inc.
839
 
#
840
 
# This file is free software; the Free Software Foundation
841
 
# gives unlimited permission to copy and/or distribute it,
842
 
# with or without modifications, as long as this notice is preserved.
843
 
 
844
 
# AM_SILENT_RULES([DEFAULT])
845
 
# --------------------------
846
 
# Enable less verbose build rules; with the default set to DEFAULT
847
 
# ("yes" being less verbose, "no" or empty being verbose).
848
 
AC_DEFUN([AM_SILENT_RULES],
849
 
[AC_ARG_ENABLE([silent-rules], [dnl
850
 
AS_HELP_STRING(
851
 
  [--enable-silent-rules],
852
 
  [less verbose build output (undo: "make V=1")])
853
 
AS_HELP_STRING(
854
 
  [--disable-silent-rules],
855
 
  [verbose build output (undo: "make V=0")])dnl
856
 
])
857
 
case $enable_silent_rules in @%:@ (((
858
 
  yes) AM_DEFAULT_VERBOSITY=0;;
859
 
   no) AM_DEFAULT_VERBOSITY=1;;
860
 
    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
861
 
esac
862
 
dnl
863
 
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
864
 
dnl do not support nested variable expansions.
865
 
dnl See automake bug#9928 and bug#10237.
866
 
am_make=${MAKE-make}
867
 
AC_CACHE_CHECK([whether $am_make supports nested variables],
868
 
   [am_cv_make_support_nested_variables],
869
 
   [if AS_ECHO([['TRUE=$(BAR$(V))
870
 
BAR0=false
871
 
BAR1=true
872
 
V=1
873
 
am__doit:
874
 
        @$(TRUE)
875
 
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
876
 
  am_cv_make_support_nested_variables=yes
877
 
else
878
 
  am_cv_make_support_nested_variables=no
879
 
fi])
880
 
if test $am_cv_make_support_nested_variables = yes; then
881
 
  dnl Using '$V' instead of '$(V)' breaks IRIX make.
882
 
  AM_V='$(V)'
883
 
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
884
 
else
885
 
  AM_V=$AM_DEFAULT_VERBOSITY
886
 
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
887
 
fi
888
 
AC_SUBST([AM_V])dnl
889
 
AM_SUBST_NOTMAKE([AM_V])dnl
890
 
AC_SUBST([AM_DEFAULT_V])dnl
891
 
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
892
 
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
893
 
AM_BACKSLASH='\'
894
 
AC_SUBST([AM_BACKSLASH])dnl
895
 
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
896
 
])
897
 
 
898
 
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
899
 
#
900
 
# This file is free software; the Free Software Foundation
901
 
# gives unlimited permission to copy and/or distribute it,
902
 
# with or without modifications, as long as this notice is preserved.
903
 
 
904
 
# AM_PROG_INSTALL_STRIP
905
 
# ---------------------
906
 
# One issue with vendor 'install' (even GNU) is that you can't
907
 
# specify the program used to strip binaries.  This is especially
908
 
# annoying in cross-compiling environments, where the build's strip
909
 
# is unlikely to handle the host's binaries.
910
 
# Fortunately install-sh will honor a STRIPPROG variable, so we
911
 
# always use install-sh in "make install-strip", and initialize
912
 
# STRIPPROG with the value of the STRIP variable (set by the user).
913
 
AC_DEFUN([AM_PROG_INSTALL_STRIP],
914
 
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
915
 
# Installed binaries are usually stripped using 'strip' when the user
916
 
# run "make install-strip".  However 'strip' might not be the right
917
 
# tool to use in cross-compilation environments, therefore Automake
918
 
# will honor the 'STRIP' environment variable to overrule this program.
919
 
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
920
 
if test "$cross_compiling" != no; then
921
 
  AC_CHECK_TOOL([STRIP], [strip], :)
922
 
fi
923
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
924
 
AC_SUBST([INSTALL_STRIP_PROGRAM])])
925
 
 
926
 
# Copyright (C) 2006-2013 Free Software Foundation, Inc.
927
 
#
928
 
# This file is free software; the Free Software Foundation
929
 
# gives unlimited permission to copy and/or distribute it,
930
 
# with or without modifications, as long as this notice is preserved.
931
 
 
932
 
# _AM_SUBST_NOTMAKE(VARIABLE)
933
 
# ---------------------------
934
 
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
935
 
# This macro is traced by Automake.
936
 
AC_DEFUN([_AM_SUBST_NOTMAKE])
937
 
 
938
 
# AM_SUBST_NOTMAKE(VARIABLE)
939
 
# --------------------------
940
 
# Public sister of _AM_SUBST_NOTMAKE.
941
 
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
942
 
 
943
 
# Check how to create a tarball.                            -*- Autoconf -*-
944
 
 
945
 
# Copyright (C) 2004-2013 Free Software Foundation, Inc.
946
 
#
947
 
# This file is free software; the Free Software Foundation
948
 
# gives unlimited permission to copy and/or distribute it,
949
 
# with or without modifications, as long as this notice is preserved.
950
 
 
951
 
# _AM_PROG_TAR(FORMAT)
952
 
# --------------------
953
 
# Check how to create a tarball in format FORMAT.
954
 
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
955
 
#
956
 
# Substitute a variable $(am__tar) that is a command
957
 
# writing to stdout a FORMAT-tarball containing the directory
958
 
# $tardir.
959
 
#     tardir=directory && $(am__tar) > result.tar
960
 
#
961
 
# Substitute a variable $(am__untar) that extract such
962
 
# a tarball read from stdin.
963
 
#     $(am__untar) < result.tar
964
 
AC_DEFUN([_AM_PROG_TAR],
965
 
[# Always define AMTAR for backward compatibility.  Yes, it's still used
966
 
# in the wild :-(  We should find a proper way to deprecate it ...
967
 
AC_SUBST([AMTAR], ['$${TAR-tar}'])
968
 
m4_if([$1], [v7],
969
 
     [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
970
 
     [m4_case([$1], [ustar],, [pax],,
971
 
              [m4_fatal([Unknown tar format])])
972
 
AC_MSG_CHECKING([how to create a $1 tar archive])
973
 
# Loop over all known methods to create a tar archive until one works.
974
 
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
975
 
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
976
 
# Do not fold the above two line into one, because Tru64 sh and
977
 
# Solaris sh will not grok spaces in the rhs of '-'.
978
 
for _am_tool in $_am_tools
979
 
do
980
 
  case $_am_tool in
981
 
  gnutar)
982
 
    for _am_tar in tar gnutar gtar;
983
 
    do
984
 
      AM_RUN_LOG([$_am_tar --version]) && break
985
 
    done
986
 
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
987
 
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
988
 
    am__untar="$_am_tar -xf -"
989
 
    ;;
990
 
  plaintar)
991
 
    # Must skip GNU tar: if it does not support --format= it doesn't create
992
 
    # ustar tarball either.
993
 
    (tar --version) >/dev/null 2>&1 && continue
994
 
    am__tar='tar chf - "$$tardir"'
995
 
    am__tar_='tar chf - "$tardir"'
996
 
    am__untar='tar xf -'
997
 
    ;;
998
 
  pax)
999
 
    am__tar='pax -L -x $1 -w "$$tardir"'
1000
 
    am__tar_='pax -L -x $1 -w "$tardir"'
1001
 
    am__untar='pax -r'
1002
 
    ;;
1003
 
  cpio)
1004
 
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1005
 
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1006
 
    am__untar='cpio -i -H $1 -d'
1007
 
    ;;
1008
 
  none)
1009
 
    am__tar=false
1010
 
    am__tar_=false
1011
 
    am__untar=false
1012
 
    ;;
1013
 
  esac
1014
 
 
1015
 
  # If the value was cached, stop now.  We just wanted to have am__tar
1016
 
  # and am__untar set.
1017
 
  test -n "${am_cv_prog_tar_$1}" && break
1018
 
 
1019
 
  # tar/untar a dummy directory, and stop if the command works
1020
 
  rm -rf conftest.dir
1021
 
  mkdir conftest.dir
1022
 
  echo GrepMe > conftest.dir/file
1023
 
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1024
 
  rm -rf conftest.dir
1025
 
  if test -s conftest.tar; then
1026
 
    AM_RUN_LOG([$am__untar <conftest.tar])
1027
 
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1028
 
  fi
1029
 
done
1030
 
rm -rf conftest.dir
1031
 
 
1032
 
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1033
 
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1034
 
AC_SUBST([am__tar])
1035
 
AC_SUBST([am__untar])
1036
 
]) # _AM_PROG_TAR
 
780
dnl -*- mode: autoconf -*-
 
781
 
 
782
# serial 1
 
783
 
 
784
dnl Usage:
 
785
dnl   GTK_DOC_CHECK([minimum-gtk-doc-version])
 
786
AC_DEFUN([GTK_DOC_CHECK],
 
787
[
 
788
  AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
789
  AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
 
790
  AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
 
791
 
 
792
  dnl check for tools we added during development
 
793
  AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check])
 
794
  AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true])
 
795
  AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf])
 
796
 
 
797
  dnl for overriding the documentation installation directory
 
798
  AC_ARG_WITH([html-dir],
 
799
    AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
 
800
    [with_html_dir='${datadir}/gtk-doc/html'])
 
801
  HTML_DIR="$with_html_dir"
 
802
  AC_SUBST([HTML_DIR])
 
803
 
 
804
  dnl enable/disable documentation building
 
805
  AC_ARG_ENABLE([gtk-doc],
 
806
    AS_HELP_STRING([--enable-gtk-doc],
 
807
                   [use gtk-doc to build documentation [[default=no]]]),,
 
808
    [enable_gtk_doc=no])
 
809
 
 
810
  if test x$enable_gtk_doc = xyes; then
 
811
    ifelse([$1],[],
 
812
      [PKG_CHECK_EXISTS([gtk-doc],,
 
813
                        AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
 
814
      [PKG_CHECK_EXISTS([gtk-doc >= $1],,
 
815
                        AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))])
 
816
    dnl don't check for glib if we build glib
 
817
    if test "x$PACKAGE_NAME" != "xglib"; then
 
818
      dnl don't fail if someone does not have glib
 
819
      PKG_CHECK_MODULES(GTKDOC_DEPS, glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0,,[:])
 
820
    fi
 
821
  fi
 
822
 
 
823
  AC_MSG_CHECKING([whether to build gtk-doc documentation])
 
824
  AC_MSG_RESULT($enable_gtk_doc)
 
825
 
 
826
  dnl enable/disable output formats
 
827
  AC_ARG_ENABLE([gtk-doc-html],
 
828
    AS_HELP_STRING([--enable-gtk-doc-html],
 
829
                   [build documentation in html format [[default=yes]]]),,
 
830
    [enable_gtk_doc_html=yes])
 
831
    AC_ARG_ENABLE([gtk-doc-pdf],
 
832
      AS_HELP_STRING([--enable-gtk-doc-pdf],
 
833
                     [build documentation in pdf format [[default=no]]]),,
 
834
      [enable_gtk_doc_pdf=no])
 
835
 
 
836
  if test -z "$GTKDOC_MKPDF"; then
 
837
    enable_gtk_doc_pdf=no
 
838
  fi
 
839
 
 
840
  if test -z "$AM_DEFAULT_VERBOSITY"; then
 
841
    AM_DEFAULT_VERBOSITY=1
 
842
  fi
 
843
  AC_SUBST([AM_DEFAULT_VERBOSITY])
 
844
 
 
845
  AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
 
846
  AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes])
 
847
  AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes])
 
848
  AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
 
849
  AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"])
 
850
])
1037
851
 
1038
852
 
1039
853
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
2556
2370
  rm -rf conftest*
2557
2371
  ;;
2558
2372
 
2559
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
2373
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
2560
2374
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
2561
2375
  # Find out which ABI we are using.
2562
2376
  echo 'int i;' > conftest.$ac_ext
2570
2384
          x86_64-*linux*)
2571
2385
            LD="${LD-ld} -m elf_i386"
2572
2386
            ;;
2573
 
          ppc64-*linux*|powerpc64-*linux*)
 
2387
          powerpcle-*linux*)
 
2388
            LD="${LD-ld} -m elf32lppclinux"
 
2389
            ;;
 
2390
          powerpc-*linux*)
2574
2391
            LD="${LD-ld} -m elf32ppclinux"
2575
2392
            ;;
2576
2393
          s390x-*linux*)
2589
2406
          x86_64-*linux*)
2590
2407
            LD="${LD-ld} -m elf_x86_64"
2591
2408
            ;;
2592
 
          ppc*-*linux*|powerpc*-*linux*)
 
2409
          powerpcle-*linux*)
 
2410
            LD="${LD-ld} -m elf64lppc"
 
2411
            ;;
 
2412
          powerpc-*linux*)
2593
2413
            LD="${LD-ld} -m elf64ppc"
2594
2414
            ;;
2595
2415
          s390*-*linux*|s390*-*tpf*)
10074
9894
m4_popdef([pkg_description])
10075
9895
]) dnl PKG_NOARCH_INSTALLDIR
10076
9896
 
10077
 
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
10078
 
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
10079
 
#
10080
 
# This file is free software, distributed under the terms of the GNU
10081
 
# General Public License.  As a special exception to the GNU General
10082
 
# Public License, this file may be distributed as part of a program
10083
 
# that contains a configuration script generated by Autoconf, under
10084
 
# the same distribution terms as the rest of that program.
10085
 
#
10086
 
# This file can be copied and used freely without restrictions.  It can
10087
 
# be used in projects which are not available under the GNU Public License
10088
 
# but which still want to provide support for the GNU gettext functionality.
10089
 
#
10090
 
# Macro to add for using GNU gettext.
10091
 
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
10092
 
#
10093
 
# Modified to never use included libintl. 
10094
 
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
10095
 
#
10096
 
# Major rework to remove unused code
10097
 
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
10098
 
#
10099
 
# Added better handling of ALL_LINGUAS from GNU gettext version 
10100
 
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
10101
 
#
10102
 
# Modified to require ngettext
10103
 
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
10104
 
#
10105
 
# We need this here as well, since someone might use autoconf-2.5x
10106
 
# to configure GLib then an older version to configure a package
10107
 
# using AM_GLIB_GNU_GETTEXT
10108
 
AC_PREREQ(2.53)
10109
 
 
10110
 
dnl
10111
 
dnl We go to great lengths to make sure that aclocal won't 
10112
 
dnl try to pull in the installed version of these macros
10113
 
dnl when running aclocal in the glib directory.
10114
 
dnl
10115
 
m4_copy([AC_DEFUN],[glib_DEFUN])
10116
 
m4_copy([AC_REQUIRE],[glib_REQUIRE])
10117
 
dnl
10118
 
dnl At the end, if we're not within glib, we'll define the public
10119
 
dnl definitions in terms of our private definitions.
10120
 
dnl
10121
 
 
10122
 
# GLIB_LC_MESSAGES
10123
 
#--------------------
10124
 
glib_DEFUN([GLIB_LC_MESSAGES],
10125
 
  [AC_CHECK_HEADERS([locale.h])
10126
 
    if test $ac_cv_header_locale_h = yes; then
10127
 
    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
10128
 
      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
10129
 
       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
10130
 
    if test $am_cv_val_LC_MESSAGES = yes; then
10131
 
      AC_DEFINE(HAVE_LC_MESSAGES, 1,
10132
 
        [Define if your <locale.h> file defines LC_MESSAGES.])
10133
 
    fi
10134
 
  fi])
10135
 
 
10136
 
# GLIB_PATH_PROG_WITH_TEST
10137
 
#----------------------------
10138
 
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
10139
 
dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
10140
 
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
10141
 
[# Extract the first word of "$2", so it can be a program name with args.
10142
 
set dummy $2; ac_word=[$]2
10143
 
AC_MSG_CHECKING([for $ac_word])
10144
 
AC_CACHE_VAL(ac_cv_path_$1,
10145
 
[case "[$]$1" in
10146
 
  /*)
10147
 
  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
10148
 
  ;;
10149
 
  *)
10150
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
10151
 
  for ac_dir in ifelse([$5], , $PATH, [$5]); do
10152
 
    test -z "$ac_dir" && ac_dir=.
10153
 
    if test -f $ac_dir/$ac_word; then
10154
 
      if [$3]; then
10155
 
        ac_cv_path_$1="$ac_dir/$ac_word"
10156
 
        break
10157
 
      fi
10158
 
    fi
10159
 
  done
10160
 
  IFS="$ac_save_ifs"
10161
 
dnl If no 4th arg is given, leave the cache variable unset,
10162
 
dnl so AC_PATH_PROGS will keep looking.
10163
 
ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
10164
 
])dnl
10165
 
  ;;
10166
 
esac])dnl
10167
 
$1="$ac_cv_path_$1"
10168
 
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
10169
 
  AC_MSG_RESULT([$]$1)
10170
 
else
10171
 
  AC_MSG_RESULT(no)
10172
 
fi
10173
 
AC_SUBST($1)dnl
10174
 
])
10175
 
 
10176
 
# GLIB_WITH_NLS
10177
 
#-----------------
10178
 
glib_DEFUN([GLIB_WITH_NLS],
10179
 
  dnl NLS is obligatory
10180
 
  [USE_NLS=yes
10181
 
    AC_SUBST(USE_NLS)
10182
 
 
10183
 
    gt_cv_have_gettext=no
10184
 
 
10185
 
    CATOBJEXT=NONE
10186
 
    XGETTEXT=:
10187
 
    INTLLIBS=
10188
 
 
10189
 
    AC_CHECK_HEADER(libintl.h,
10190
 
     [gt_cv_func_dgettext_libintl="no"
10191
 
      libintl_extra_libs=""
10192
 
 
10193
 
      #
10194
 
      # First check in libc
10195
 
      #
10196
 
      AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
10197
 
        [AC_TRY_LINK([
10198
 
#include <libintl.h>
10199
 
],
10200
 
         [return !ngettext ("","", 1)],
10201
 
          gt_cv_func_ngettext_libc=yes,
10202
 
          gt_cv_func_ngettext_libc=no)
10203
 
        ])
10204
 
  
10205
 
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
10206
 
              AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
10207
 
                [AC_TRY_LINK([
10208
 
#include <libintl.h>
10209
 
],
10210
 
                  [return !dgettext ("","")],
10211
 
                  gt_cv_func_dgettext_libc=yes,
10212
 
                  gt_cv_func_dgettext_libc=no)
10213
 
                ])
10214
 
      fi
10215
 
  
10216
 
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
10217
 
        AC_CHECK_FUNCS(bind_textdomain_codeset)
10218
 
      fi
10219
 
 
10220
 
      #
10221
 
      # If we don't have everything we want, check in libintl
10222
 
      #
10223
 
      if test "$gt_cv_func_dgettext_libc" != "yes" \
10224
 
         || test "$gt_cv_func_ngettext_libc" != "yes" \
10225
 
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
10226
 
        
10227
 
        AC_CHECK_LIB(intl, bindtextdomain,
10228
 
            [AC_CHECK_LIB(intl, ngettext,
10229
 
                    [AC_CHECK_LIB(intl, dgettext,
10230
 
                                  gt_cv_func_dgettext_libintl=yes)])])
10231
 
 
10232
 
        if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
10233
 
          AC_MSG_CHECKING([if -liconv is needed to use gettext])
10234
 
          AC_MSG_RESULT([])
10235
 
          AC_CHECK_LIB(intl, ngettext,
10236
 
                [AC_CHECK_LIB(intl, dcgettext,
10237
 
                       [gt_cv_func_dgettext_libintl=yes
10238
 
                        libintl_extra_libs=-liconv],
10239
 
                        :,-liconv)],
10240
 
                :,-liconv)
10241
 
        fi
10242
 
 
10243
 
        #
10244
 
        # If we found libintl, then check in it for bind_textdomain_codeset();
10245
 
        # we'll prefer libc if neither have bind_textdomain_codeset(),
10246
 
        # and both have dgettext and ngettext
10247
 
        #
10248
 
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
10249
 
          glib_save_LIBS="$LIBS"
10250
 
          LIBS="$LIBS -lintl $libintl_extra_libs"
10251
 
          unset ac_cv_func_bind_textdomain_codeset
10252
 
          AC_CHECK_FUNCS(bind_textdomain_codeset)
10253
 
          LIBS="$glib_save_LIBS"
10254
 
 
10255
 
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
10256
 
            gt_cv_func_dgettext_libc=no
10257
 
          else
10258
 
            if test "$gt_cv_func_dgettext_libc" = "yes" \
10259
 
                && test "$gt_cv_func_ngettext_libc" = "yes"; then
10260
 
              gt_cv_func_dgettext_libintl=no
10261
 
            fi
10262
 
          fi
10263
 
        fi
10264
 
      fi
10265
 
 
10266
 
      if test "$gt_cv_func_dgettext_libc" = "yes" \
10267
 
        || test "$gt_cv_func_dgettext_libintl" = "yes"; then
10268
 
        gt_cv_have_gettext=yes
10269
 
      fi
10270
 
  
10271
 
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
10272
 
        INTLLIBS="-lintl $libintl_extra_libs"
10273
 
      fi
10274
 
  
10275
 
      if test "$gt_cv_have_gettext" = "yes"; then
10276
 
        AC_DEFINE(HAVE_GETTEXT,1,
10277
 
          [Define if the GNU gettext() function is already present or preinstalled.])
10278
 
        GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
10279
 
          [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
10280
 
        if test "$MSGFMT" != "no"; then
10281
 
          glib_save_LIBS="$LIBS"
10282
 
          LIBS="$LIBS $INTLLIBS"
10283
 
          AC_CHECK_FUNCS(dcgettext)
10284
 
          MSGFMT_OPTS=
10285
 
          AC_MSG_CHECKING([if msgfmt accepts -c])
10286
 
          GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
10287
 
msgid ""
10288
 
msgstr ""
10289
 
"Content-Type: text/plain; charset=UTF-8\n"
10290
 
"Project-Id-Version: test 1.0\n"
10291
 
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
10292
 
"Last-Translator: test <foo@bar.xx>\n"
10293
 
"Language-Team: C <LL@li.org>\n"
10294
 
"MIME-Version: 1.0\n"
10295
 
"Content-Transfer-Encoding: 8bit\n"
10296
 
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
10297
 
          AC_SUBST(MSGFMT_OPTS)
10298
 
          AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
10299
 
          GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
10300
 
            [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
10301
 
          AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
10302
 
                         return _nl_msg_cat_cntr],
10303
 
            [CATOBJEXT=.gmo 
10304
 
             DATADIRNAME=share],
10305
 
            [case $host in
10306
 
            *-*-solaris*)
10307
 
            dnl On Solaris, if bind_textdomain_codeset is in libc,
10308
 
            dnl GNU format message catalog is always supported,
10309
 
            dnl since both are added to the libc all together.
10310
 
            dnl Hence, we'd like to go with DATADIRNAME=share and
10311
 
            dnl and CATOBJEXT=.gmo in this case.
10312
 
            AC_CHECK_FUNC(bind_textdomain_codeset,
10313
 
              [CATOBJEXT=.gmo 
10314
 
               DATADIRNAME=share],
10315
 
              [CATOBJEXT=.mo
10316
 
               DATADIRNAME=lib])
10317
 
            ;;
10318
 
            *-*-openbsd*)
10319
 
            CATOBJEXT=.mo
10320
 
            DATADIRNAME=share
10321
 
            ;;
10322
 
            *)
10323
 
            CATOBJEXT=.mo
10324
 
            DATADIRNAME=lib
10325
 
            ;;
10326
 
            esac])
10327
 
          LIBS="$glib_save_LIBS"
10328
 
          INSTOBJEXT=.mo
10329
 
        else
10330
 
          gt_cv_have_gettext=no
10331
 
        fi
10332
 
      fi
10333
 
    ])
10334
 
 
10335
 
    if test "$gt_cv_have_gettext" = "yes" ; then
10336
 
      AC_DEFINE(ENABLE_NLS, 1,
10337
 
        [always defined to indicate that i18n is enabled])
10338
 
    fi
10339
 
 
10340
 
    dnl Test whether we really found GNU xgettext.
10341
 
    if test "$XGETTEXT" != ":"; then
10342
 
      dnl If it is not GNU xgettext we define it as : so that the
10343
 
      dnl Makefiles still can work.
10344
 
      if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
10345
 
        : ;
10346
 
      else
10347
 
        AC_MSG_RESULT(
10348
 
          [found xgettext program is not GNU xgettext; ignore it])
10349
 
        XGETTEXT=":"
10350
 
      fi
10351
 
    fi
10352
 
 
10353
 
    # We need to process the po/ directory.
10354
 
    POSUB=po
10355
 
 
10356
 
    AC_OUTPUT_COMMANDS(
10357
 
      [case "$CONFIG_FILES" in *po/Makefile.in*)
10358
 
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
10359
 
      esac])
10360
 
 
10361
 
    dnl These rules are solely for the distribution goal.  While doing this
10362
 
    dnl we only have to keep exactly one list of the available catalogs
10363
 
    dnl in configure.ac.
10364
 
    for lang in $ALL_LINGUAS; do
10365
 
      GMOFILES="$GMOFILES $lang.gmo"
10366
 
      POFILES="$POFILES $lang.po"
10367
 
    done
10368
 
 
10369
 
    dnl Make all variables we use known to autoconf.
10370
 
    AC_SUBST(CATALOGS)
10371
 
    AC_SUBST(CATOBJEXT)
10372
 
    AC_SUBST(DATADIRNAME)
10373
 
    AC_SUBST(GMOFILES)
10374
 
    AC_SUBST(INSTOBJEXT)
10375
 
    AC_SUBST(INTLLIBS)
10376
 
    AC_SUBST(PO_IN_DATADIR_TRUE)
10377
 
    AC_SUBST(PO_IN_DATADIR_FALSE)
10378
 
    AC_SUBST(POFILES)
10379
 
    AC_SUBST(POSUB)
10380
 
  ])
10381
 
 
10382
 
# AM_GLIB_GNU_GETTEXT
10383
 
# -------------------
10384
 
# Do checks necessary for use of gettext. If a suitable implementation 
10385
 
# of gettext is found in either in libintl or in the C library,
10386
 
# it will set INTLLIBS to the libraries needed for use of gettext
10387
 
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
10388
 
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
10389
 
# on various variables needed by the Makefile.in.in installed by 
10390
 
# glib-gettextize.
10391
 
dnl
10392
 
glib_DEFUN([GLIB_GNU_GETTEXT],
10393
 
  [AC_REQUIRE([AC_PROG_CC])dnl
10394
 
   AC_REQUIRE([AC_HEADER_STDC])dnl
10395
 
   
10396
 
   GLIB_LC_MESSAGES
10397
 
   GLIB_WITH_NLS
10398
 
 
10399
 
   if test "$gt_cv_have_gettext" = "yes"; then
10400
 
     if test "x$ALL_LINGUAS" = "x"; then
10401
 
       LINGUAS=
10402
 
     else
10403
 
       AC_MSG_CHECKING(for catalogs to be installed)
10404
 
       NEW_LINGUAS=
10405
 
       for presentlang in $ALL_LINGUAS; do
10406
 
         useit=no
10407
 
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
10408
 
           desiredlanguages="$LINGUAS"
10409
 
         else
10410
 
           desiredlanguages="$ALL_LINGUAS"
10411
 
         fi
10412
 
         for desiredlang in $desiredlanguages; do
10413
 
           # Use the presentlang catalog if desiredlang is
10414
 
           #   a. equal to presentlang, or
10415
 
           #   b. a variant of presentlang (because in this case,
10416
 
           #      presentlang can be used as a fallback for messages
10417
 
           #      which are not translated in the desiredlang catalog).
10418
 
           case "$desiredlang" in
10419
 
             "$presentlang"*) useit=yes;;
10420
 
           esac
10421
 
         done
10422
 
         if test $useit = yes; then
10423
 
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
10424
 
         fi
10425
 
       done
10426
 
       LINGUAS=$NEW_LINGUAS
10427
 
       AC_MSG_RESULT($LINGUAS)
10428
 
     fi
10429
 
 
10430
 
     dnl Construct list of names of catalog files to be constructed.
10431
 
     if test -n "$LINGUAS"; then
10432
 
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
10433
 
     fi
10434
 
   fi
10435
 
 
10436
 
   dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
10437
 
   dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
10438
 
   dnl Try to locate is.
10439
 
   MKINSTALLDIRS=
10440
 
   if test -n "$ac_aux_dir"; then
10441
 
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
10442
 
   fi
10443
 
   if test -z "$MKINSTALLDIRS"; then
10444
 
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10445
 
   fi
10446
 
   AC_SUBST(MKINSTALLDIRS)
10447
 
 
10448
 
   dnl Generate list of files to be processed by xgettext which will
10449
 
   dnl be included in po/Makefile.
10450
 
   test -d po || mkdir po
10451
 
   if test "x$srcdir" != "x."; then
10452
 
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
10453
 
       posrcprefix="$srcdir/"
10454
 
     else
10455
 
       posrcprefix="../$srcdir/"
10456
 
     fi
10457
 
   else
10458
 
     posrcprefix="../"
10459
 
   fi
10460
 
   rm -f po/POTFILES
10461
 
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
10462
 
        < $srcdir/po/POTFILES.in > po/POTFILES
10463
 
  ])
10464
 
 
10465
 
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
10466
 
# -------------------------------
10467
 
# Define VARIABLE to the location where catalog files will
10468
 
# be installed by po/Makefile.
10469
 
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
10470
 
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
10471
 
glib_save_prefix="$prefix"
10472
 
glib_save_exec_prefix="$exec_prefix"
10473
 
glib_save_datarootdir="$datarootdir"
10474
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
10475
 
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
10476
 
datarootdir=`eval echo "${datarootdir}"`
10477
 
if test "x$CATOBJEXT" = "x.mo" ; then
10478
 
  localedir=`eval echo "${libdir}/locale"`
10479
 
else
10480
 
  localedir=`eval echo "${datadir}/locale"`
10481
 
fi
10482
 
prefix="$glib_save_prefix"
10483
 
exec_prefix="$glib_save_exec_prefix"
10484
 
datarootdir="$glib_save_datarootdir"
10485
 
AC_DEFINE_UNQUOTED($1, "$localedir",
10486
 
  [Define the location where the catalogs will be installed])
10487
 
])
10488
 
 
10489
 
dnl
10490
 
dnl Now the definitions that aclocal will find
10491
 
dnl
10492
 
ifdef(glib_configure_ac,[],[
10493
 
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
10494
 
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
10495
 
])dnl
10496
 
 
10497
 
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
10498
 
10499
 
# Create a temporary file with TEST-FILE as its contents and pass the
10500
 
# file name to PROGRAM.  Perform ACTION-IF-PASS if PROGRAM exits with
10501
 
# 0 and perform ACTION-IF-FAIL for any other exit status.
10502
 
AC_DEFUN([GLIB_RUN_PROG],
10503
 
[cat >conftest.foo <<_ACEOF
10504
 
$2
10505
 
_ACEOF
10506
 
if AC_RUN_LOG([$1 conftest.foo]); then
10507
 
  m4_ifval([$3], [$3], [:])
10508
 
m4_ifvaln([$4], [else $4])dnl
10509
 
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
10510
 
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
10511
 
fi])
10512
 
 
10513
 
 
10514
 
# gnome-common.m4
10515
 
#
10516
 
# serial 3
10517
 
10518
 
 
10519
 
dnl GNOME_COMMON_INIT
10520
 
 
10521
 
AU_DEFUN([GNOME_COMMON_INIT],
10522
 
[
10523
 
  dnl this macro should come after AC_CONFIG_MACRO_DIR
10524
 
  AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
10525
 
 
10526
 
  dnl ensure that when the Automake generated makefile calls aclocal,
10527
 
  dnl it honours the $ACLOCAL_FLAGS environment variable
10528
 
  ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
10529
 
  if test -n "$ac_macro_dir"; then
10530
 
    ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
10531
 
  fi
10532
 
 
10533
 
  AC_SUBST([ACLOCAL_AMFLAGS])
10534
 
],
10535
 
[[$0: This macro is deprecated. You should set put "ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}"
10536
 
in your top-level Makefile.am, instead, where "m4" is the macro directory set
10537
 
with AC_CONFIG_MACRO_DIR() in your configure.ac]])
10538
 
 
10539
 
AC_DEFUN([GNOME_DEBUG_CHECK],
10540
 
[
10541
 
        AC_ARG_ENABLE([debug],
10542
 
                      AC_HELP_STRING([--enable-debug],
10543
 
                                     [turn on debugging]),,
10544
 
                      [enable_debug=no])
10545
 
 
10546
 
        if test x$enable_debug = xyes ; then
10547
 
            AC_DEFINE(GNOME_ENABLE_DEBUG, 1,
10548
 
                [Enable additional debugging at the expense of performance and size])
10549
 
        fi
10550
 
])
10551
 
 
10552
 
dnl GNOME_MAINTAINER_MODE_DEFINES ()
10553
 
dnl define DISABLE_DEPRECATED
10554
 
dnl
10555
 
AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
10556
 
[
10557
 
        AC_REQUIRE([AM_MAINTAINER_MODE])
10558
 
 
10559
 
        DISABLE_DEPRECATED=""
10560
 
        if test $USE_MAINTAINER_MODE = yes; then
10561
 
                DOMAINS="GCONF BONOBO BONOBO_UI GNOME LIBGLADE GNOME_VFS WNCK LIBSOUP"
10562
 
                for DOMAIN in $DOMAINS; do
10563
 
                       DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES"
10564
 
                done
10565
 
        fi
10566
 
 
10567
 
        AC_SUBST(DISABLE_DEPRECATED)
10568
 
])
10569
 
 
10570
 
dnl GNOME_COMPILE_WARNINGS
10571
 
dnl Turn on many useful compiler warnings and substitute the result into
10572
 
dnl WARN_CFLAGS
10573
 
dnl For now, only works on GCC
10574
 
AC_DEFUN([GNOME_COMPILE_WARNINGS],[
10575
 
    dnl ******************************
10576
 
    dnl More compiler warnings
10577
 
    dnl ******************************
10578
 
 
10579
 
    AC_ARG_ENABLE(compile-warnings, 
10580
 
                  AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
10581
 
                                 [Turn on compiler warnings]),,
10582
 
                  [enable_compile_warnings="m4_default([$1],[yes])"])
10583
 
 
10584
 
    if test "x$GCC" != xyes; then
10585
 
        enable_compile_warnings=no
10586
 
    fi
10587
 
 
10588
 
    warning_flags=
10589
 
    realsave_CFLAGS="$CFLAGS"
10590
 
 
10591
 
    dnl These are warning flags that aren't marked as fatal.  Can be
10592
 
    dnl overridden on a per-project basis with -Wno-foo.
10593
 
    base_warn_flags=" \
10594
 
        -Wall \
10595
 
        -Wstrict-prototypes \
10596
 
        -Wnested-externs \
10597
 
    "
10598
 
 
10599
 
    dnl These compiler flags typically indicate very broken or suspicious
10600
 
    dnl code.  Some of them such as implicit-function-declaration are
10601
 
    dnl just not default because gcc compiles a lot of legacy code.
10602
 
    dnl We choose to make this set into explicit errors.
10603
 
    base_error_flags=" \
10604
 
        -Werror=missing-prototypes \
10605
 
        -Werror=implicit-function-declaration \
10606
 
        -Werror=pointer-arith \
10607
 
        -Werror=init-self \
10608
 
        -Werror=format-security \
10609
 
        -Werror=format=2 \
10610
 
        -Werror=missing-include-dirs \
10611
 
    "
10612
 
 
10613
 
    case "$enable_compile_warnings" in
10614
 
    no)
10615
 
        warning_flags=
10616
 
        ;;
10617
 
    minimum)
10618
 
        warning_flags="-Wall"
10619
 
        ;;
10620
 
    yes)
10621
 
        warning_flags="$base_warn_flags $base_error_flags"
10622
 
        ;;
10623
 
    maximum|error)
10624
 
        warning_flags="$base_warn_flags $base_error_flags"
10625
 
        ;;
10626
 
    *)
10627
 
        AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
10628
 
        ;;
10629
 
    esac
10630
 
 
10631
 
    if test "$enable_compile_warnings" = "error" ; then
10632
 
        warning_flags="$warning_flags -Werror"
10633
 
    fi
10634
 
 
10635
 
    dnl Check whether GCC supports the warning options
10636
 
    for option in $warning_flags; do
10637
 
        save_CFLAGS="$CFLAGS"
10638
 
        CFLAGS="$CFLAGS $option"
10639
 
        AC_MSG_CHECKING([whether gcc understands $option])
10640
 
        AC_TRY_COMPILE([], [],
10641
 
            has_option=yes,
10642
 
            has_option=no,)
10643
 
        CFLAGS="$save_CFLAGS"
10644
 
        AC_MSG_RESULT([$has_option])
10645
 
        if test $has_option = yes; then
10646
 
            tested_warning_flags="$tested_warning_flags $option"
10647
 
        fi
10648
 
        unset has_option
10649
 
        unset save_CFLAGS
10650
 
    done
10651
 
    unset option
10652
 
    CFLAGS="$realsave_CFLAGS"
10653
 
    AC_MSG_CHECKING(what warning flags to pass to the C compiler)
10654
 
    AC_MSG_RESULT($tested_warning_flags)
10655
 
 
10656
 
    AC_ARG_ENABLE(iso-c,
10657
 
                  AC_HELP_STRING([--enable-iso-c],
10658
 
                                 [Try to warn if code is not ISO C ]),,
10659
 
                  [enable_iso_c=no])
10660
 
 
10661
 
    AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
10662
 
    complCFLAGS=
10663
 
    if test "x$enable_iso_c" != "xno"; then
10664
 
        if test "x$GCC" = "xyes"; then
10665
 
        case " $CFLAGS " in
10666
 
            *[\ \       ]-ansi[\ \      ]*) ;;
10667
 
            *) complCFLAGS="$complCFLAGS -ansi" ;;
10668
 
        esac
10669
 
        case " $CFLAGS " in
10670
 
            *[\ \       ]-pedantic[\ \  ]*) ;;
10671
 
            *) complCFLAGS="$complCFLAGS -pedantic" ;;
10672
 
        esac
10673
 
        fi
10674
 
    fi
10675
 
    AC_MSG_RESULT($complCFLAGS)
10676
 
 
10677
 
    WARN_CFLAGS="$tested_warning_flags $complCFLAGS"
10678
 
    AC_SUBST(WARN_CFLAGS)
10679
 
])
10680
 
 
10681
 
dnl For C++, do basically the same thing.
10682
 
 
10683
 
AC_DEFUN([GNOME_CXX_WARNINGS],[
10684
 
  AC_ARG_ENABLE(cxx-warnings,
10685
 
                AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
10686
 
                               [Turn on compiler warnings.]),,
10687
 
                [enable_cxx_warnings="m4_default([$1],[minimum])"])
10688
 
 
10689
 
  AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
10690
 
  warnCXXFLAGS=
10691
 
  if test "x$GXX" != xyes; then
10692
 
    enable_cxx_warnings=no
10693
 
  fi
10694
 
  if test "x$enable_cxx_warnings" != "xno"; then
10695
 
    if test "x$GXX" = "xyes"; then
10696
 
      case " $CXXFLAGS " in
10697
 
      *[\ \     ]-Wall[\ \      ]*) ;;
10698
 
      *) warnCXXFLAGS="-Wall -Wno-unused" ;;
10699
 
      esac
10700
 
 
10701
 
      ## -W is not all that useful.  And it cannot be controlled
10702
 
      ## with individual -Wno-xxx flags, unlike -Wall
10703
 
      if test "x$enable_cxx_warnings" = "xyes"; then
10704
 
        warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
10705
 
      fi
10706
 
    fi
10707
 
  fi
10708
 
  AC_MSG_RESULT($warnCXXFLAGS)
10709
 
 
10710
 
   AC_ARG_ENABLE(iso-cxx,
10711
 
                 AC_HELP_STRING([--enable-iso-cxx],
10712
 
                                [Try to warn if code is not ISO C++ ]),,
10713
 
                 [enable_iso_cxx=no])
10714
 
 
10715
 
   AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
10716
 
   complCXXFLAGS=
10717
 
   if test "x$enable_iso_cxx" != "xno"; then
10718
 
     if test "x$GXX" = "xyes"; then
10719
 
      case " $CXXFLAGS " in
10720
 
      *[\ \     ]-ansi[\ \      ]*) ;;
10721
 
      *) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
10722
 
      esac
10723
 
 
10724
 
      case " $CXXFLAGS " in
10725
 
      *[\ \     ]-pedantic[\ \  ]*) ;;
10726
 
      *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
10727
 
      esac
10728
 
     fi
10729
 
   fi
10730
 
  AC_MSG_RESULT($complCXXFLAGS)
10731
 
 
10732
 
  WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
10733
 
  AC_SUBST(WARN_CXXFLAGS)
10734
 
])
10735
 
 
10736
 
dnl GLIB_GSETTINGS
10737
 
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
10738
 
dnl the schema should be compiled
10739
 
dnl
10740
 
 
10741
 
AC_DEFUN([GLIB_GSETTINGS],
10742
 
[
10743
 
  m4_pattern_allow([AM_V_GEN])
10744
 
  AC_ARG_ENABLE(schemas-compile,
10745
 
                AS_HELP_STRING([--disable-schemas-compile],
10746
 
                               [Disable regeneration of gschemas.compiled on install]),
10747
 
                [case ${enableval} in
10748
 
                  yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE=""  ;;
10749
 
                  no)  GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
10750
 
                  *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;;
10751
 
                 esac])
10752
 
  AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE])
10753
 
  PKG_PROG_PKG_CONFIG([0.16])
10754
 
  AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas])
10755
 
  if test x$cross_compiling != xyes; then
10756
 
    GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
10757
 
  else
10758
 
    AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas)
10759
 
  fi
10760
 
  AC_SUBST(GLIB_COMPILE_SCHEMAS)
10761
 
  if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
10762
 
    ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2])
10763
 
  else
10764
 
    ifelse([$1],,[:],[$1])
10765
 
  fi
10766
 
 
10767
 
  GSETTINGS_RULES='
10768
 
.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
10769
 
 
10770
 
mostlyclean-am: clean-gsettings-schemas
10771
 
 
10772
 
gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
10773
 
 
10774
 
%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
10775
 
        $(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$${d}$< && touch [$]@
10776
 
 
10777
 
all-am: $(gsettings_SCHEMAS:.xml=.valid)
10778
 
uninstall-am: uninstall-gsettings-schemas
10779
 
install-data-am: install-gsettings-schemas
10780
 
 
10781
 
.SECONDARY: $(gsettings_SCHEMAS)
10782
 
 
10783
 
install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
10784
 
        @$(NORMAL_INSTALL)
10785
 
        if test -n "$^"; then \
10786
 
                test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
10787
 
                $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
10788
 
                test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
10789
 
        fi
10790
 
 
10791
 
uninstall-gsettings-schemas:
10792
 
        @$(NORMAL_UNINSTALL)
10793
 
        @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
10794
 
        files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
10795
 
        test -n "$$files" || exit 0; \
10796
 
        echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
10797
 
        cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
10798
 
        test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
10799
 
 
10800
 
clean-gsettings-schemas:
10801
 
        rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
10802
 
 
10803
 
ifdef gsettings_ENUM_NAMESPACE
10804
 
$(gsettings__enum_file): $(gsettings_ENUM_FILES)
10805
 
        $(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead "  <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod "    <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail "  </@type@>" --ftail "</schemalist>" [$]^ > [$]@.tmp && mv [$]@.tmp [$]@
10806
 
endif
10807
 
'
10808
 
  _GSETTINGS_SUBST(GSETTINGS_RULES)
10809
 
])
10810
 
 
10811
 
dnl _GSETTINGS_SUBST(VARIABLE)
10812
 
dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
10813
 
AC_DEFUN([_GSETTINGS_SUBST],
10814
 
[
10815
 
AC_SUBST([$1])
10816
 
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
10817
 
]
10818
 
)
10819
 
 
10820
 
dnl -*- mode: autoconf -*-
10821
 
 
10822
 
# serial 1
10823
 
 
10824
 
dnl Usage:
10825
 
dnl   GTK_DOC_CHECK([minimum-gtk-doc-version])
10826
 
AC_DEFUN([GTK_DOC_CHECK],
10827
 
[
10828
 
  AC_REQUIRE([PKG_PROG_PKG_CONFIG])
10829
 
  AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
10830
 
  AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
10831
 
 
10832
 
  dnl check for tools we added during development
10833
 
  AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check])
10834
 
  AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true])
10835
 
  AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf])
10836
 
 
10837
 
  dnl for overriding the documentation installation directory
10838
 
  AC_ARG_WITH([html-dir],
10839
 
    AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
10840
 
    [with_html_dir='${datadir}/gtk-doc/html'])
10841
 
  HTML_DIR="$with_html_dir"
10842
 
  AC_SUBST([HTML_DIR])
10843
 
 
10844
 
  dnl enable/disable documentation building
10845
 
  AC_ARG_ENABLE([gtk-doc],
10846
 
    AS_HELP_STRING([--enable-gtk-doc],
10847
 
                   [use gtk-doc to build documentation [[default=no]]]),,
10848
 
    [enable_gtk_doc=no])
10849
 
 
10850
 
  if test x$enable_gtk_doc = xyes; then
10851
 
    ifelse([$1],[],
10852
 
      [PKG_CHECK_EXISTS([gtk-doc],,
10853
 
                        AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
10854
 
      [PKG_CHECK_EXISTS([gtk-doc >= $1],,
10855
 
                        AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))])
10856
 
    dnl don't check for glib if we build glib
10857
 
    if test "x$PACKAGE_NAME" != "xglib"; then
10858
 
      dnl don't fail if someone does not have glib
10859
 
      PKG_CHECK_MODULES(GTKDOC_DEPS, glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0,,[:])
10860
 
    fi
10861
 
  fi
10862
 
 
10863
 
  AC_MSG_CHECKING([whether to build gtk-doc documentation])
10864
 
  AC_MSG_RESULT($enable_gtk_doc)
10865
 
 
10866
 
  dnl enable/disable output formats
10867
 
  AC_ARG_ENABLE([gtk-doc-html],
10868
 
    AS_HELP_STRING([--enable-gtk-doc-html],
10869
 
                   [build documentation in html format [[default=yes]]]),,
10870
 
    [enable_gtk_doc_html=yes])
10871
 
    AC_ARG_ENABLE([gtk-doc-pdf],
10872
 
      AS_HELP_STRING([--enable-gtk-doc-pdf],
10873
 
                     [build documentation in pdf format [[default=no]]]),,
10874
 
      [enable_gtk_doc_pdf=no])
10875
 
 
10876
 
  if test -z "$GTKDOC_MKPDF"; then
10877
 
    enable_gtk_doc_pdf=no
10878
 
  fi
10879
 
 
10880
 
  if test -z "$AM_DEFAULT_VERBOSITY"; then
10881
 
    AM_DEFAULT_VERBOSITY=1
10882
 
  fi
10883
 
  AC_SUBST([AM_DEFAULT_VERBOSITY])
10884
 
 
10885
 
  AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
10886
 
  AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes])
10887
 
  AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes])
10888
 
  AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
10889
 
  AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"])
10890
 
])
 
9897
 
 
9898
# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
 
9899
# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
9900
# -------------------------------------------
 
9901
# Retrieves the value of the pkg-config variable for the given module.
 
9902
AC_DEFUN([PKG_CHECK_VAR],
 
9903
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
9904
AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
 
9905
 
 
9906
_PKG_CONFIG([$1], [variable="][$3]["], [$2])
 
9907
AS_VAR_COPY([$1], [pkg_cv_][$1])
 
9908
 
 
9909
AS_VAR_IF([$1], [""], [$5], [$4])dnl
 
9910
])# PKG_CHECK_VAR
10891
9911
 
10892
9912
AC_DEFUN([YELP_HELP_INIT],
10893
9913
[
10943
9963
.PHONY: pot
10944
9964
pot: $(_HELP_POTFILE)
10945
9965
$(_HELP_POTFILE): $(_HELP_C_FILES) $(_HELP_C_EXTRA) $(_HELP_C_MEDIA)
10946
 
        $(AM_V_GEN)$(ITSTOOL) -o "[$]@" $(_HELP_C_FILES)
 
9966
        $(AM_V_GEN)if test -d "C"; then d=; else d="$(srcdir)/"; fi; \
 
9967
        $(ITSTOOL) -o "[$]@" $(foreach f,$(_HELP_C_FILES),"$${d}$(f)")
10947
9968
 
10948
9969
.PHONY: repo
10949
9970
repo: $(_HELP_POTFILE)
11084
10105
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([YELP_HELP_RULES])])
11085
10106
])
11086
10107
 
 
10108
# Copyright (C) 2002-2013 Free Software Foundation, Inc.
 
10109
#
 
10110
# This file is free software; the Free Software Foundation
 
10111
# gives unlimited permission to copy and/or distribute it,
 
10112
# with or without modifications, as long as this notice is preserved.
 
10113
 
 
10114
# AM_AUTOMAKE_VERSION(VERSION)
 
10115
# ----------------------------
 
10116
# Automake X.Y traces this macro to ensure aclocal.m4 has been
 
10117
# generated from the m4 files accompanying Automake X.Y.
 
10118
# (This private macro should not be called outside this file.)
 
10119
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
10120
[am__api_version='1.13'
 
10121
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
10122
dnl require some minimum version.  Point them to the right macro.
 
10123
m4_if([$1], [1.13.4], [],
 
10124
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
10125
])
 
10126
 
 
10127
# _AM_AUTOCONF_VERSION(VERSION)
 
10128
# -----------------------------
 
10129
# aclocal traces this macro to find the Autoconf version.
 
10130
# This is a private macro too.  Using m4_define simplifies
 
10131
# the logic in aclocal, which can simply ignore this definition.
 
10132
m4_define([_AM_AUTOCONF_VERSION], [])
 
10133
 
 
10134
# AM_SET_CURRENT_AUTOMAKE_VERSION
 
10135
# -------------------------------
 
10136
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
 
10137
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
 
10138
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
 
10139
[AM_AUTOMAKE_VERSION([1.13.4])dnl
 
10140
m4_ifndef([AC_AUTOCONF_VERSION],
 
10141
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
10142
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
 
10143
 
 
10144
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 
10145
 
 
10146
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
 
10147
#
 
10148
# This file is free software; the Free Software Foundation
 
10149
# gives unlimited permission to copy and/or distribute it,
 
10150
# with or without modifications, as long as this notice is preserved.
 
10151
 
 
10152
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
 
10153
# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
 
10154
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
 
10155
#
 
10156
# Of course, Automake must honor this variable whenever it calls a
 
10157
# tool from the auxiliary directory.  The problem is that $srcdir (and
 
10158
# therefore $ac_aux_dir as well) can be either absolute or relative,
 
10159
# depending on how configure is run.  This is pretty annoying, since
 
10160
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
 
10161
# source directory, any form will work fine, but in subdirectories a
 
10162
# relative path needs to be adjusted first.
 
10163
#
 
10164
# $ac_aux_dir/missing
 
10165
#    fails when called from a subdirectory if $ac_aux_dir is relative
 
10166
# $top_srcdir/$ac_aux_dir/missing
 
10167
#    fails if $ac_aux_dir is absolute,
 
10168
#    fails when called from a subdirectory in a VPATH build with
 
10169
#          a relative $ac_aux_dir
 
10170
#
 
10171
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
 
10172
# are both prefixed by $srcdir.  In an in-source build this is usually
 
10173
# harmless because $srcdir is '.', but things will broke when you
 
10174
# start a VPATH build or use an absolute $srcdir.
 
10175
#
 
10176
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
 
10177
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
 
10178
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
 
10179
# and then we would define $MISSING as
 
10180
#   MISSING="\${SHELL} $am_aux_dir/missing"
 
10181
# This will work as long as MISSING is not called from configure, because
 
10182
# unfortunately $(top_srcdir) has no meaning in configure.
 
10183
# However there are other variables, like CC, which are often used in
 
10184
# configure, and could therefore not use this "fixed" $ac_aux_dir.
 
10185
#
 
10186
# Another solution, used here, is to always expand $ac_aux_dir to an
 
10187
# absolute PATH.  The drawback is that using absolute paths prevent a
 
10188
# configured tree to be moved without reconfiguration.
 
10189
 
 
10190
AC_DEFUN([AM_AUX_DIR_EXPAND],
 
10191
[dnl Rely on autoconf to set up CDPATH properly.
 
10192
AC_PREREQ([2.50])dnl
 
10193
# expand $ac_aux_dir to an absolute path
 
10194
am_aux_dir=`cd $ac_aux_dir && pwd`
 
10195
])
 
10196
 
 
10197
# AM_CONDITIONAL                                            -*- Autoconf -*-
 
10198
 
 
10199
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
 
10200
#
 
10201
# This file is free software; the Free Software Foundation
 
10202
# gives unlimited permission to copy and/or distribute it,
 
10203
# with or without modifications, as long as this notice is preserved.
 
10204
 
 
10205
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
 
10206
# -------------------------------------
 
10207
# Define a conditional.
 
10208
AC_DEFUN([AM_CONDITIONAL],
 
10209
[AC_PREREQ([2.52])dnl
 
10210
 m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
10211
       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
10212
AC_SUBST([$1_TRUE])dnl
 
10213
AC_SUBST([$1_FALSE])dnl
 
10214
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
10215
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
10216
m4_define([_AM_COND_VALUE_$1], [$2])dnl
 
10217
if $2; then
 
10218
  $1_TRUE=
 
10219
  $1_FALSE='#'
 
10220
else
 
10221
  $1_TRUE='#'
 
10222
  $1_FALSE=
 
10223
fi
 
10224
AC_CONFIG_COMMANDS_PRE(
 
10225
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
 
10226
  AC_MSG_ERROR([[conditional "$1" was never defined.
 
10227
Usually this means the macro was only invoked conditionally.]])
 
10228
fi])])
 
10229
 
 
10230
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
 
10231
#
 
10232
# This file is free software; the Free Software Foundation
 
10233
# gives unlimited permission to copy and/or distribute it,
 
10234
# with or without modifications, as long as this notice is preserved.
 
10235
 
 
10236
 
 
10237
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
 
10238
# written in clear, in which case automake, when reading aclocal.m4,
 
10239
# will think it sees a *use*, and therefore will trigger all it's
 
10240
# C support machinery.  Also note that it means that autoscan, seeing
 
10241
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
 
10242
 
 
10243
 
 
10244
# _AM_DEPENDENCIES(NAME)
 
10245
# ----------------------
 
10246
# See how the compiler implements dependency checking.
 
10247
# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
 
10248
# We try a few techniques and use that to set a single cache variable.
 
10249
#
 
10250
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
 
10251
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
 
10252
# dependency, and given that the user is not expected to run this macro,
 
10253
# just rely on AC_PROG_CC.
 
10254
AC_DEFUN([_AM_DEPENDENCIES],
 
10255
[AC_REQUIRE([AM_SET_DEPDIR])dnl
 
10256
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
 
10257
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
 
10258
AC_REQUIRE([AM_DEP_TRACK])dnl
 
10259
 
 
10260
m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
 
10261
      [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
 
10262
      [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
10263
      [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
 
10264
      [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
 
10265
      [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
 
10266
                    [depcc="$$1"   am_compiler_list=])
 
10267
 
 
10268
AC_CACHE_CHECK([dependency style of $depcc],
 
10269
               [am_cv_$1_dependencies_compiler_type],
 
10270
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
10271
  # We make a subdir and do the tests there.  Otherwise we can end up
 
10272
  # making bogus files that we don't know about and never remove.  For
 
10273
  # instance it was reported that on HP-UX the gcc test will end up
 
10274
  # making a dummy file named 'D' -- because '-MD' means "put the output
 
10275
  # in D".
 
10276
  rm -rf conftest.dir
 
10277
  mkdir conftest.dir
 
10278
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
10279
  # using a relative directory.
 
10280
  cp "$am_depcomp" conftest.dir
 
10281
  cd conftest.dir
 
10282
  # We will build objects and dependencies in a subdirectory because
 
10283
  # it helps to detect inapplicable dependency modes.  For instance
 
10284
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
10285
  # side effect of compilation, but ICC will put the dependencies in
 
10286
  # the current directory while Tru64 will put them in the object
 
10287
  # directory.
 
10288
  mkdir sub
 
10289
 
 
10290
  am_cv_$1_dependencies_compiler_type=none
 
10291
  if test "$am_compiler_list" = ""; then
 
10292
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
 
10293
  fi
 
10294
  am__universal=false
 
10295
  m4_case([$1], [CC],
 
10296
    [case " $depcc " in #(
 
10297
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
10298
     esac],
 
10299
    [CXX],
 
10300
    [case " $depcc " in #(
 
10301
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
10302
     esac])
 
10303
 
 
10304
  for depmode in $am_compiler_list; do
 
10305
    # Setup a source with many dependencies, because some compilers
 
10306
    # like to wrap large dependency lists on column 80 (with \), and
 
10307
    # we should not choose a depcomp mode which is confused by this.
 
10308
    #
 
10309
    # We need to recreate these files for each test, as the compiler may
 
10310
    # overwrite some of them when testing with obscure command lines.
 
10311
    # This happens at least with the AIX C compiler.
 
10312
    : > sub/conftest.c
 
10313
    for i in 1 2 3 4 5 6; do
 
10314
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
10315
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 
10316
      # Solaris 10 /bin/sh.
 
10317
      echo '/* dummy */' > sub/conftst$i.h
 
10318
    done
 
10319
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
10320
 
 
10321
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
 
10322
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
10323
    # handle '-M -o', and we need to detect this.  Also, some Intel
 
10324
    # versions had trouble with output in subdirs.
 
10325
    am__obj=sub/conftest.${OBJEXT-o}
 
10326
    am__minus_obj="-o $am__obj"
 
10327
    case $depmode in
 
10328
    gcc)
 
10329
      # This depmode causes a compiler race in universal mode.
 
10330
      test "$am__universal" = false || continue
 
10331
      ;;
 
10332
    nosideeffect)
 
10333
      # After this tag, mechanisms are not by side-effect, so they'll
 
10334
      # only be used when explicitly requested.
 
10335
      if test "x$enable_dependency_tracking" = xyes; then
 
10336
        continue
 
10337
      else
 
10338
        break
 
10339
      fi
 
10340
      ;;
 
10341
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
10342
      # This compiler won't grok '-c -o', but also, the minuso test has
 
10343
      # not run yet.  These depmodes are late enough in the game, and
 
10344
      # so weak that their functioning should not be impacted.
 
10345
      am__obj=conftest.${OBJEXT-o}
 
10346
      am__minus_obj=
 
10347
      ;;
 
10348
    none) break ;;
 
10349
    esac
 
10350
    if depmode=$depmode \
 
10351
       source=sub/conftest.c object=$am__obj \
 
10352
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
10353
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
10354
         >/dev/null 2>conftest.err &&
 
10355
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
10356
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
10357
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
10358
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
10359
      # icc doesn't choke on unknown options, it will just issue warnings
 
10360
      # or remarks (even with -Werror).  So we grep stderr for any message
 
10361
      # that says an option was ignored or not supported.
 
10362
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
10363
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
10364
      # The diagnosis changed in icc 8.0:
 
10365
      #   icc: Command line remark: option '-MP' not supported
 
10366
      if (grep 'ignoring option' conftest.err ||
 
10367
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
10368
        am_cv_$1_dependencies_compiler_type=$depmode
 
10369
        break
 
10370
      fi
 
10371
    fi
 
10372
  done
 
10373
 
 
10374
  cd ..
 
10375
  rm -rf conftest.dir
 
10376
else
 
10377
  am_cv_$1_dependencies_compiler_type=none
 
10378
fi
 
10379
])
 
10380
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
 
10381
AM_CONDITIONAL([am__fastdep$1], [
 
10382
  test "x$enable_dependency_tracking" != xno \
 
10383
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
 
10384
])
 
10385
 
 
10386
 
 
10387
# AM_SET_DEPDIR
 
10388
# -------------
 
10389
# Choose a directory name for dependency files.
 
10390
# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
 
10391
AC_DEFUN([AM_SET_DEPDIR],
 
10392
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
10393
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
 
10394
])
 
10395
 
 
10396
 
 
10397
# AM_DEP_TRACK
 
10398
# ------------
 
10399
AC_DEFUN([AM_DEP_TRACK],
 
10400
[AC_ARG_ENABLE([dependency-tracking], [dnl
 
10401
AS_HELP_STRING(
 
10402
  [--enable-dependency-tracking],
 
10403
  [do not reject slow dependency extractors])
 
10404
AS_HELP_STRING(
 
10405
  [--disable-dependency-tracking],
 
10406
  [speeds up one-time build])])
 
10407
if test "x$enable_dependency_tracking" != xno; then
 
10408
  am_depcomp="$ac_aux_dir/depcomp"
 
10409
  AMDEPBACKSLASH='\'
 
10410
  am__nodep='_no'
 
10411
fi
 
10412
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
 
10413
AC_SUBST([AMDEPBACKSLASH])dnl
 
10414
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
10415
AC_SUBST([am__nodep])dnl
 
10416
_AM_SUBST_NOTMAKE([am__nodep])dnl
 
10417
])
 
10418
 
 
10419
# Generate code to set up dependency tracking.              -*- Autoconf -*-
 
10420
 
 
10421
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
 
10422
#
 
10423
# This file is free software; the Free Software Foundation
 
10424
# gives unlimited permission to copy and/or distribute it,
 
10425
# with or without modifications, as long as this notice is preserved.
 
10426
 
 
10427
 
 
10428
# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
10429
# ------------------------------
 
10430
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
 
10431
[{
 
10432
  # Older Autoconf quotes --file arguments for eval, but not when files
 
10433
  # are listed without --file.  Let's play safe and only enable the eval
 
10434
  # if we detect the quoting.
 
10435
  case $CONFIG_FILES in
 
10436
  *\'*) eval set x "$CONFIG_FILES" ;;
 
10437
  *)   set x $CONFIG_FILES ;;
 
10438
  esac
 
10439
  shift
 
10440
  for mf
 
10441
  do
 
10442
    # Strip MF so we end up with the name of the file.
 
10443
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
10444
    # Check whether this is an Automake generated Makefile or not.
 
10445
    # We used to match only the files named 'Makefile.in', but
 
10446
    # some people rename them; so instead we look at the file content.
 
10447
    # Grep'ing the first line is not enough: some people post-process
 
10448
    # each Makefile.in and add a new line on top of each file to say so.
 
10449
    # Grep'ing the whole file is not good either: AIX grep has a line
 
10450
    # limit of 2048, but all sed's we know have understand at least 4000.
 
10451
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
10452
      dirpart=`AS_DIRNAME("$mf")`
 
10453
    else
 
10454
      continue
 
10455
    fi
 
10456
    # Extract the definition of DEPDIR, am__include, and am__quote
 
10457
    # from the Makefile without running 'make'.
 
10458
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
10459
    test -z "$DEPDIR" && continue
 
10460
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
10461
    test -z "$am__include" && continue
 
10462
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
10463
    # Find all dependency output files, they are included files with
 
10464
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
10465
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
10466
    # expansion.
 
10467
    for file in `sed -n "
 
10468
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
10469
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
 
10470
      # Make sure the directory exists.
 
10471
      test -f "$dirpart/$file" && continue
 
10472
      fdir=`AS_DIRNAME(["$file"])`
 
10473
      AS_MKDIR_P([$dirpart/$fdir])
 
10474
      # echo "creating $dirpart/$file"
 
10475
      echo '# dummy' > "$dirpart/$file"
 
10476
    done
 
10477
  done
 
10478
}
 
10479
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
10480
 
 
10481
 
 
10482
# AM_OUTPUT_DEPENDENCY_COMMANDS
 
10483
# -----------------------------
 
10484
# This macro should only be invoked once -- use via AC_REQUIRE.
 
10485
#
 
10486
# This code is only required when automatic dependency tracking
 
10487
# is enabled.  FIXME.  This creates each '.P' file that we will
 
10488
# need in order to bootstrap the dependency handling code.
 
10489
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
 
10490
[AC_CONFIG_COMMANDS([depfiles],
 
10491
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
 
10492
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
 
10493
])
 
10494
 
 
10495
# Do all the work for Automake.                             -*- Autoconf -*-
 
10496
 
 
10497
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
 
10498
#
 
10499
# This file is free software; the Free Software Foundation
 
10500
# gives unlimited permission to copy and/or distribute it,
 
10501
# with or without modifications, as long as this notice is preserved.
 
10502
 
 
10503
# This macro actually does too much.  Some checks are only needed if
 
10504
# your package does certain things.  But this isn't really a big deal.
 
10505
 
 
10506
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
 
10507
# AM_INIT_AUTOMAKE([OPTIONS])
 
10508
# -----------------------------------------------
 
10509
# The call with PACKAGE and VERSION arguments is the old style
 
10510
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
 
10511
# and VERSION should now be passed to AC_INIT and removed from
 
10512
# the call to AM_INIT_AUTOMAKE.
 
10513
# We support both call styles for the transition.  After
 
10514
# the next Automake release, Autoconf can make the AC_INIT
 
10515
# arguments mandatory, and then we can depend on a new Autoconf
 
10516
# release and drop the old call support.
 
10517
AC_DEFUN([AM_INIT_AUTOMAKE],
 
10518
[AC_PREREQ([2.65])dnl
 
10519
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
 
10520
dnl the ones we care about.
 
10521
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
 
10522
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 
10523
AC_REQUIRE([AC_PROG_INSTALL])dnl
 
10524
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
10525
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
10526
  # is not polluted with repeated "-I."
 
10527
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
10528
  # test to see if srcdir already configured
 
10529
  if test -f $srcdir/config.status; then
 
10530
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
10531
  fi
 
10532
fi
 
10533
 
 
10534
# test whether we have cygpath
 
10535
if test -z "$CYGPATH_W"; then
 
10536
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
10537
    CYGPATH_W='cygpath -w'
 
10538
  else
 
10539
    CYGPATH_W=echo
 
10540
  fi
 
10541
fi
 
10542
AC_SUBST([CYGPATH_W])
 
10543
 
 
10544
# Define the identity of the package.
 
10545
dnl Distinguish between old-style and new-style calls.
 
10546
m4_ifval([$2],
 
10547
[AC_DIAGNOSE([obsolete],
 
10548
             [$0: two- and three-arguments forms are deprecated.])
 
10549
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
10550
 AC_SUBST([PACKAGE], [$1])dnl
 
10551
 AC_SUBST([VERSION], [$2])],
 
10552
[_AM_SET_OPTIONS([$1])dnl
 
10553
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
10554
m4_if(
 
10555
  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
 
10556
  [ok:ok],,
 
10557
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
 
10558
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 
10559
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 
10560
 
 
10561
_AM_IF_OPTION([no-define],,
 
10562
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
 
10563
 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
 
10564
 
 
10565
# Some tools Automake needs.
 
10566
AC_REQUIRE([AM_SANITY_CHECK])dnl
 
10567
AC_REQUIRE([AC_ARG_PROGRAM])dnl
 
10568
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
 
10569
AM_MISSING_PROG([AUTOCONF], [autoconf])
 
10570
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
 
10571
AM_MISSING_PROG([AUTOHEADER], [autoheader])
 
10572
AM_MISSING_PROG([MAKEINFO], [makeinfo])
 
10573
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
10574
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
 
10575
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
10576
# For better backward compatibility.  To be removed once Automake 1.9.x
 
10577
# dies out for good.  For more background, see:
 
10578
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
 
10579
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
 
10580
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
 
10581
# We need awk for the "check" target.  The system "awk" is bad on
 
10582
# some platforms.
 
10583
AC_REQUIRE([AC_PROG_AWK])dnl
 
10584
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 
10585
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
10586
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 
10587
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
10588
                             [_AM_PROG_TAR([v7])])])
 
10589
_AM_IF_OPTION([no-dependencies],,
 
10590
[AC_PROVIDE_IFELSE([AC_PROG_CC],
 
10591
                  [_AM_DEPENDENCIES([CC])],
 
10592
                  [m4_define([AC_PROG_CC],
 
10593
                             m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
 
10594
AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
10595
                  [_AM_DEPENDENCIES([CXX])],
 
10596
                  [m4_define([AC_PROG_CXX],
 
10597
                             m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
 
10598
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
10599
                  [_AM_DEPENDENCIES([OBJC])],
 
10600
                  [m4_define([AC_PROG_OBJC],
 
10601
                             m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
 
10602
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
 
10603
                  [_AM_DEPENDENCIES([OBJCXX])],
 
10604
                  [m4_define([AC_PROG_OBJCXX],
 
10605
                             m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
 
10606
])
 
10607
AC_REQUIRE([AM_SILENT_RULES])dnl
 
10608
dnl The testsuite driver may need to know about EXEEXT, so add the
 
10609
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
 
10610
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
10611
AC_CONFIG_COMMANDS_PRE(dnl
 
10612
[m4_provide_if([_AM_COMPILER_EXEEXT],
 
10613
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
 
10614
])
 
10615
 
 
10616
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
10617
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
 
10618
dnl mangled by Autoconf and run in a shell conditional statement.
 
10619
m4_define([_AC_COMPILER_EXEEXT],
 
10620
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
 
10621
 
 
10622
 
 
10623
# When config.status generates a header, we must update the stamp-h file.
 
10624
# This file resides in the same directory as the config header
 
10625
# that is generated.  The stamp files are numbered to have different names.
 
10626
 
 
10627
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
 
10628
# loop where config.status creates the headers, so we can generate
 
10629
# our stamp files there.
 
10630
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
 
10631
[# Compute $1's index in $config_headers.
 
10632
_am_arg=$1
 
10633
_am_stamp_count=1
 
10634
for _am_header in $config_headers :; do
 
10635
  case $_am_header in
 
10636
    $_am_arg | $_am_arg:* )
 
10637
      break ;;
 
10638
    * )
 
10639
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
10640
  esac
 
10641
done
 
10642
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
 
10643
 
 
10644
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
 
10645
#
 
10646
# This file is free software; the Free Software Foundation
 
10647
# gives unlimited permission to copy and/or distribute it,
 
10648
# with or without modifications, as long as this notice is preserved.
 
10649
 
 
10650
# AM_PROG_INSTALL_SH
 
10651
# ------------------
 
10652
# Define $install_sh.
 
10653
AC_DEFUN([AM_PROG_INSTALL_SH],
 
10654
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
10655
if test x"${install_sh}" != xset; then
 
10656
  case $am_aux_dir in
 
10657
  *\ * | *\     *)
 
10658
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
10659
  *)
 
10660
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
10661
  esac
 
10662
fi
 
10663
AC_SUBST([install_sh])])
 
10664
 
 
10665
# Copyright (C) 2003-2013 Free Software Foundation, Inc.
 
10666
#
 
10667
# This file is free software; the Free Software Foundation
 
10668
# gives unlimited permission to copy and/or distribute it,
 
10669
# with or without modifications, as long as this notice is preserved.
 
10670
 
 
10671
# Check whether the underlying file-system supports filenames
 
10672
# with a leading dot.  For instance MS-DOS doesn't.
 
10673
AC_DEFUN([AM_SET_LEADING_DOT],
 
10674
[rm -rf .tst 2>/dev/null
 
10675
mkdir .tst 2>/dev/null
 
10676
if test -d .tst; then
 
10677
  am__leading_dot=.
 
10678
else
 
10679
  am__leading_dot=_
 
10680
fi
 
10681
rmdir .tst 2>/dev/null
 
10682
AC_SUBST([am__leading_dot])])
 
10683
 
 
10684
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
 
10685
# From Jim Meyering
 
10686
 
 
10687
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
 
10688
#
 
10689
# This file is free software; the Free Software Foundation
 
10690
# gives unlimited permission to copy and/or distribute it,
 
10691
# with or without modifications, as long as this notice is preserved.
 
10692
 
 
10693
# AM_MAINTAINER_MODE([DEFAULT-MODE])
 
10694
# ----------------------------------
 
10695
# Control maintainer-specific portions of Makefiles.
 
10696
# Default is to disable them, unless 'enable' is passed literally.
 
10697
# For symmetry, 'disable' may be passed as well.  Anyway, the user
 
10698
# can override the default with the --enable/--disable switch.
 
10699
AC_DEFUN([AM_MAINTAINER_MODE],
 
10700
[m4_case(m4_default([$1], [disable]),
 
10701
       [enable], [m4_define([am_maintainer_other], [disable])],
 
10702
       [disable], [m4_define([am_maintainer_other], [enable])],
 
10703
       [m4_define([am_maintainer_other], [enable])
 
10704
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
 
10705
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
 
10706
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
 
10707
  AC_ARG_ENABLE([maintainer-mode],
 
10708
    [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
 
10709
      am_maintainer_other[ make rules and dependencies not useful
 
10710
      (and sometimes confusing) to the casual installer])],
 
10711
    [USE_MAINTAINER_MODE=$enableval],
 
10712
    [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
 
10713
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
 
10714
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
 
10715
  MAINT=$MAINTAINER_MODE_TRUE
 
10716
  AC_SUBST([MAINT])dnl
 
10717
]
 
10718
)
 
10719
 
 
10720
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
 
10721
 
 
10722
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
 
10723
#
 
10724
# This file is free software; the Free Software Foundation
 
10725
# gives unlimited permission to copy and/or distribute it,
 
10726
# with or without modifications, as long as this notice is preserved.
 
10727
 
 
10728
# AM_MAKE_INCLUDE()
 
10729
# -----------------
 
10730
# Check to see how make treats includes.
 
10731
AC_DEFUN([AM_MAKE_INCLUDE],
 
10732
[am_make=${MAKE-make}
 
10733
cat > confinc << 'END'
 
10734
am__doit:
 
10735
        @echo this is the am__doit target
 
10736
.PHONY: am__doit
 
10737
END
 
10738
# If we don't find an include directive, just comment out the code.
 
10739
AC_MSG_CHECKING([for style of include used by $am_make])
 
10740
am__include="#"
 
10741
am__quote=
 
10742
_am_result=none
 
10743
# First try GNU make style include.
 
10744
echo "include confinc" > confmf
 
10745
# Ignore all kinds of additional output from 'make'.
 
10746
case `$am_make -s -f confmf 2> /dev/null` in #(
 
10747
*the\ am__doit\ target*)
 
10748
  am__include=include
 
10749
  am__quote=
 
10750
  _am_result=GNU
 
10751
  ;;
 
10752
esac
 
10753
# Now try BSD make style include.
 
10754
if test "$am__include" = "#"; then
 
10755
   echo '.include "confinc"' > confmf
 
10756
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
10757
   *the\ am__doit\ target*)
 
10758
     am__include=.include
 
10759
     am__quote="\""
 
10760
     _am_result=BSD
 
10761
     ;;
 
10762
   esac
 
10763
fi
 
10764
AC_SUBST([am__include])
 
10765
AC_SUBST([am__quote])
 
10766
AC_MSG_RESULT([$_am_result])
 
10767
rm -f confinc confmf
 
10768
])
 
10769
 
 
10770
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 
10771
 
 
10772
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
 
10773
#
 
10774
# This file is free software; the Free Software Foundation
 
10775
# gives unlimited permission to copy and/or distribute it,
 
10776
# with or without modifications, as long as this notice is preserved.
 
10777
 
 
10778
# AM_MISSING_PROG(NAME, PROGRAM)
 
10779
# ------------------------------
 
10780
AC_DEFUN([AM_MISSING_PROG],
 
10781
[AC_REQUIRE([AM_MISSING_HAS_RUN])
 
10782
$1=${$1-"${am_missing_run}$2"}
 
10783
AC_SUBST($1)])
 
10784
 
 
10785
# AM_MISSING_HAS_RUN
 
10786
# ------------------
 
10787
# Define MISSING if not defined so far and test if it is modern enough.
 
10788
# If it is, set am_missing_run to use it, otherwise, to nothing.
 
10789
AC_DEFUN([AM_MISSING_HAS_RUN],
 
10790
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
10791
AC_REQUIRE_AUX_FILE([missing])dnl
 
10792
if test x"${MISSING+set}" != xset; then
 
10793
  case $am_aux_dir in
 
10794
  *\ * | *\     *)
 
10795
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
10796
  *)
 
10797
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
10798
  esac
 
10799
fi
 
10800
# Use eval to expand $SHELL
 
10801
if eval "$MISSING --is-lightweight"; then
 
10802
  am_missing_run="$MISSING "
 
10803
else
 
10804
  am_missing_run=
 
10805
  AC_MSG_WARN(['missing' script is too old or missing])
 
10806
fi
 
10807
])
 
10808
 
 
10809
# Helper functions for option handling.                     -*- Autoconf -*-
 
10810
 
 
10811
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
 
10812
#
 
10813
# This file is free software; the Free Software Foundation
 
10814
# gives unlimited permission to copy and/or distribute it,
 
10815
# with or without modifications, as long as this notice is preserved.
 
10816
 
 
10817
# _AM_MANGLE_OPTION(NAME)
 
10818
# -----------------------
 
10819
AC_DEFUN([_AM_MANGLE_OPTION],
 
10820
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
 
10821
 
 
10822
# _AM_SET_OPTION(NAME)
 
10823
# --------------------
 
10824
# Set option NAME.  Presently that only means defining a flag for this option.
 
10825
AC_DEFUN([_AM_SET_OPTION],
 
10826
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
 
10827
 
 
10828
# _AM_SET_OPTIONS(OPTIONS)
 
10829
# ------------------------
 
10830
# OPTIONS is a space-separated list of Automake options.
 
10831
AC_DEFUN([_AM_SET_OPTIONS],
 
10832
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
10833
 
 
10834
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 
10835
# -------------------------------------------
 
10836
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
10837
AC_DEFUN([_AM_IF_OPTION],
 
10838
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 
10839
 
 
10840
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
 
10841
 
 
10842
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
 
10843
#
 
10844
# This file is free software; the Free Software Foundation
 
10845
# gives unlimited permission to copy and/or distribute it,
 
10846
# with or without modifications, as long as this notice is preserved.
 
10847
 
 
10848
# AM_SANITY_CHECK
 
10849
# ---------------
 
10850
AC_DEFUN([AM_SANITY_CHECK],
 
10851
[AC_MSG_CHECKING([whether build environment is sane])
 
10852
# Reject unsafe characters in $srcdir or the absolute working directory
 
10853
# name.  Accept space and tab only in the latter.
 
10854
am_lf='
 
10855
'
 
10856
case `pwd` in
 
10857
  *[[\\\"\#\$\&\'\`$am_lf]]*)
 
10858
    AC_MSG_ERROR([unsafe absolute working directory name]);;
 
10859
esac
 
10860
case $srcdir in
 
10861
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
 
10862
    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
 
10863
esac
 
10864
 
 
10865
# Do 'set' in a subshell so we don't clobber the current shell's
 
10866
# arguments.  Must try -L first in case configure is actually a
 
10867
# symlink; some systems play weird games with the mod time of symlinks
 
10868
# (eg FreeBSD returns the mod time of the symlink's containing
 
10869
# directory).
 
10870
if (
 
10871
   am_has_slept=no
 
10872
   for am_try in 1 2; do
 
10873
     echo "timestamp, slept: $am_has_slept" > conftest.file
 
10874
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
10875
     if test "$[*]" = "X"; then
 
10876
        # -L didn't work.
 
10877
        set X `ls -t "$srcdir/configure" conftest.file`
 
10878
     fi
 
10879
     if test "$[*]" != "X $srcdir/configure conftest.file" \
 
10880
        && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
10881
 
 
10882
        # If neither matched, then we have a broken ls.  This can happen
 
10883
        # if, for instance, CONFIG_SHELL is bash and it inherits a
 
10884
        # broken ls alias from the environment.  This has actually
 
10885
        # happened.  Such a system could not be considered "sane".
 
10886
        AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
10887
  alias in your environment])
 
10888
     fi
 
10889
     if test "$[2]" = conftest.file || test $am_try -eq 2; then
 
10890
       break
 
10891
     fi
 
10892
     # Just in case.
 
10893
     sleep 1
 
10894
     am_has_slept=yes
 
10895
   done
 
10896
   test "$[2]" = conftest.file
 
10897
   )
 
10898
then
 
10899
   # Ok.
 
10900
   :
 
10901
else
 
10902
   AC_MSG_ERROR([newly created file is older than distributed files!
 
10903
Check your system clock])
 
10904
fi
 
10905
AC_MSG_RESULT([yes])
 
10906
# If we didn't sleep, we still need to ensure time stamps of config.status and
 
10907
# generated files are strictly newer.
 
10908
am_sleep_pid=
 
10909
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
 
10910
  ( sleep 1 ) &
 
10911
  am_sleep_pid=$!
 
10912
fi
 
10913
AC_CONFIG_COMMANDS_PRE(
 
10914
  [AC_MSG_CHECKING([that generated files are newer than configure])
 
10915
   if test -n "$am_sleep_pid"; then
 
10916
     # Hide warnings about reused PIDs.
 
10917
     wait $am_sleep_pid 2>/dev/null
 
10918
   fi
 
10919
   AC_MSG_RESULT([done])])
 
10920
rm -f conftest.file
 
10921
])
 
10922
 
 
10923
# Copyright (C) 2009-2013 Free Software Foundation, Inc.
 
10924
#
 
10925
# This file is free software; the Free Software Foundation
 
10926
# gives unlimited permission to copy and/or distribute it,
 
10927
# with or without modifications, as long as this notice is preserved.
 
10928
 
 
10929
# AM_SILENT_RULES([DEFAULT])
 
10930
# --------------------------
 
10931
# Enable less verbose build rules; with the default set to DEFAULT
 
10932
# ("yes" being less verbose, "no" or empty being verbose).
 
10933
AC_DEFUN([AM_SILENT_RULES],
 
10934
[AC_ARG_ENABLE([silent-rules], [dnl
 
10935
AS_HELP_STRING(
 
10936
  [--enable-silent-rules],
 
10937
  [less verbose build output (undo: "make V=1")])
 
10938
AS_HELP_STRING(
 
10939
  [--disable-silent-rules],
 
10940
  [verbose build output (undo: "make V=0")])dnl
 
10941
])
 
10942
case $enable_silent_rules in @%:@ (((
 
10943
  yes) AM_DEFAULT_VERBOSITY=0;;
 
10944
   no) AM_DEFAULT_VERBOSITY=1;;
 
10945
    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
 
10946
esac
 
10947
dnl
 
10948
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
 
10949
dnl do not support nested variable expansions.
 
10950
dnl See automake bug#9928 and bug#10237.
 
10951
am_make=${MAKE-make}
 
10952
AC_CACHE_CHECK([whether $am_make supports nested variables],
 
10953
   [am_cv_make_support_nested_variables],
 
10954
   [if AS_ECHO([['TRUE=$(BAR$(V))
 
10955
BAR0=false
 
10956
BAR1=true
 
10957
V=1
 
10958
am__doit:
 
10959
        @$(TRUE)
 
10960
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
 
10961
  am_cv_make_support_nested_variables=yes
 
10962
else
 
10963
  am_cv_make_support_nested_variables=no
 
10964
fi])
 
10965
if test $am_cv_make_support_nested_variables = yes; then
 
10966
  dnl Using '$V' instead of '$(V)' breaks IRIX make.
 
10967
  AM_V='$(V)'
 
10968
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
10969
else
 
10970
  AM_V=$AM_DEFAULT_VERBOSITY
 
10971
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
10972
fi
 
10973
AC_SUBST([AM_V])dnl
 
10974
AM_SUBST_NOTMAKE([AM_V])dnl
 
10975
AC_SUBST([AM_DEFAULT_V])dnl
 
10976
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
 
10977
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
 
10978
AM_BACKSLASH='\'
 
10979
AC_SUBST([AM_BACKSLASH])dnl
 
10980
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
 
10981
])
 
10982
 
 
10983
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
 
10984
#
 
10985
# This file is free software; the Free Software Foundation
 
10986
# gives unlimited permission to copy and/or distribute it,
 
10987
# with or without modifications, as long as this notice is preserved.
 
10988
 
 
10989
# AM_PROG_INSTALL_STRIP
 
10990
# ---------------------
 
10991
# One issue with vendor 'install' (even GNU) is that you can't
 
10992
# specify the program used to strip binaries.  This is especially
 
10993
# annoying in cross-compiling environments, where the build's strip
 
10994
# is unlikely to handle the host's binaries.
 
10995
# Fortunately install-sh will honor a STRIPPROG variable, so we
 
10996
# always use install-sh in "make install-strip", and initialize
 
10997
# STRIPPROG with the value of the STRIP variable (set by the user).
 
10998
AC_DEFUN([AM_PROG_INSTALL_STRIP],
 
10999
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
11000
# Installed binaries are usually stripped using 'strip' when the user
 
11001
# run "make install-strip".  However 'strip' might not be the right
 
11002
# tool to use in cross-compilation environments, therefore Automake
 
11003
# will honor the 'STRIP' environment variable to overrule this program.
 
11004
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
 
11005
if test "$cross_compiling" != no; then
 
11006
  AC_CHECK_TOOL([STRIP], [strip], :)
 
11007
fi
 
11008
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
11009
AC_SUBST([INSTALL_STRIP_PROGRAM])])
 
11010
 
 
11011
# Copyright (C) 2006-2013 Free Software Foundation, Inc.
 
11012
#
 
11013
# This file is free software; the Free Software Foundation
 
11014
# gives unlimited permission to copy and/or distribute it,
 
11015
# with or without modifications, as long as this notice is preserved.
 
11016
 
 
11017
# _AM_SUBST_NOTMAKE(VARIABLE)
 
11018
# ---------------------------
 
11019
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 
11020
# This macro is traced by Automake.
 
11021
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
11022
 
 
11023
# AM_SUBST_NOTMAKE(VARIABLE)
 
11024
# --------------------------
 
11025
# Public sister of _AM_SUBST_NOTMAKE.
 
11026
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
 
11027
 
 
11028
# Check how to create a tarball.                            -*- Autoconf -*-
 
11029
 
 
11030
# Copyright (C) 2004-2013 Free Software Foundation, Inc.
 
11031
#
 
11032
# This file is free software; the Free Software Foundation
 
11033
# gives unlimited permission to copy and/or distribute it,
 
11034
# with or without modifications, as long as this notice is preserved.
 
11035
 
 
11036
# _AM_PROG_TAR(FORMAT)
 
11037
# --------------------
 
11038
# Check how to create a tarball in format FORMAT.
 
11039
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
 
11040
#
 
11041
# Substitute a variable $(am__tar) that is a command
 
11042
# writing to stdout a FORMAT-tarball containing the directory
 
11043
# $tardir.
 
11044
#     tardir=directory && $(am__tar) > result.tar
 
11045
#
 
11046
# Substitute a variable $(am__untar) that extract such
 
11047
# a tarball read from stdin.
 
11048
#     $(am__untar) < result.tar
 
11049
#
 
11050
AC_DEFUN([_AM_PROG_TAR],
 
11051
[# Always define AMTAR for backward compatibility.  Yes, it's still used
 
11052
# in the wild :-(  We should find a proper way to deprecate it ...
 
11053
AC_SUBST([AMTAR], ['$${TAR-tar}'])
 
11054
 
 
11055
# We'll loop over all known methods to create a tar archive until one works.
 
11056
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
11057
 
 
11058
m4_if([$1], [v7],
 
11059
  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
 
11060
 
 
11061
  [m4_case([$1],
 
11062
    [ustar],
 
11063
     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
 
11064
      # There is notably a 21 bits limit for the UID and the GID.  In fact,
 
11065
      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
 
11066
      # and bug#13588).
 
11067
      am_max_uid=2097151 # 2^21 - 1
 
11068
      am_max_gid=$am_max_uid
 
11069
      # The $UID and $GID variables are not portable, so we need to resort
 
11070
      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
 
11071
      # below are definitely unexpected, so allow the users to see them
 
11072
      # (that is, avoid stderr redirection).
 
11073
      am_uid=`id -u || echo unknown`
 
11074
      am_gid=`id -g || echo unknown`
 
11075
      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
 
11076
      if test $am_uid -le $am_max_uid; then
 
11077
         AC_MSG_RESULT([yes])
 
11078
      else
 
11079
         AC_MSG_RESULT([no])
 
11080
         _am_tools=none
 
11081
      fi
 
11082
      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
 
11083
      if test $am_gid -le $am_max_gid; then
 
11084
         AC_MSG_RESULT([yes])
 
11085
      else
 
11086
        AC_MSG_RESULT([no])
 
11087
        _am_tools=none
 
11088
      fi],
 
11089
 
 
11090
  [pax],
 
11091
    [],
 
11092
 
 
11093
  [m4_fatal([Unknown tar format])])
 
11094
 
 
11095
  AC_MSG_CHECKING([how to create a $1 tar archive])
 
11096
 
 
11097
  # Go ahead even if we have the value already cached.  We do so because we
 
11098
  # need to set the values for the 'am__tar' and 'am__untar' variables.
 
11099
  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
11100
 
 
11101
  for _am_tool in $_am_tools; do
 
11102
    case $_am_tool in
 
11103
    gnutar)
 
11104
      for _am_tar in tar gnutar gtar; do
 
11105
        AM_RUN_LOG([$_am_tar --version]) && break
 
11106
      done
 
11107
      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
11108
      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
11109
      am__untar="$_am_tar -xf -"
 
11110
      ;;
 
11111
    plaintar)
 
11112
      # Must skip GNU tar: if it does not support --format= it doesn't create
 
11113
      # ustar tarball either.
 
11114
      (tar --version) >/dev/null 2>&1 && continue
 
11115
      am__tar='tar chf - "$$tardir"'
 
11116
      am__tar_='tar chf - "$tardir"'
 
11117
      am__untar='tar xf -'
 
11118
      ;;
 
11119
    pax)
 
11120
      am__tar='pax -L -x $1 -w "$$tardir"'
 
11121
      am__tar_='pax -L -x $1 -w "$tardir"'
 
11122
      am__untar='pax -r'
 
11123
      ;;
 
11124
    cpio)
 
11125
      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
11126
      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
11127
      am__untar='cpio -i -H $1 -d'
 
11128
      ;;
 
11129
    none)
 
11130
      am__tar=false
 
11131
      am__tar_=false
 
11132
      am__untar=false
 
11133
      ;;
 
11134
    esac
 
11135
 
 
11136
    # If the value was cached, stop now.  We just wanted to have am__tar
 
11137
    # and am__untar set.
 
11138
    test -n "${am_cv_prog_tar_$1}" && break
 
11139
 
 
11140
    # tar/untar a dummy directory, and stop if the command works.
 
11141
    rm -rf conftest.dir
 
11142
    mkdir conftest.dir
 
11143
    echo GrepMe > conftest.dir/file
 
11144
    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
11145
    rm -rf conftest.dir
 
11146
    if test -s conftest.tar; then
 
11147
      AM_RUN_LOG([$am__untar <conftest.tar])
 
11148
      AM_RUN_LOG([cat conftest.dir/file])
 
11149
      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
11150
    fi
 
11151
  done
 
11152
  rm -rf conftest.dir
 
11153
 
 
11154
  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
11155
  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
11156
 
 
11157
AC_SUBST([am__tar])
 
11158
AC_SUBST([am__untar])
 
11159
]) # _AM_PROG_TAR
 
11160