~ubuntu-branches/ubuntu/quantal/brasero/quantal-updates

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2012-03-19 23:47:11 UTC
  • mfrom: (1.1.52)
  • Revision ID: package-import@ubuntu.com-20120319234711-4gc2g1gn4i6vj5qu
Tags: 3.3.92-0ubuntu1
* New upstream version
* Debian change:
* Apply patch from Tanguy Ortolo to fix inability to burn tracks
  with cdrdao if their length is fractionally less than a whole number
  of seconds (Closes: #619723)

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
21
 
22
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
23
 
#
24
 
# This file is free software; the Free Software Foundation
25
 
# gives unlimited permission to copy and/or distribute it,
26
 
# with or without modifications, as long as this notice is preserved.
27
 
 
28
 
# AM_AUTOMAKE_VERSION(VERSION)
29
 
# ----------------------------
30
 
# Automake X.Y traces this macro to ensure aclocal.m4 has been
31
 
# generated from the m4 files accompanying Automake X.Y.
32
 
# (This private macro should not be called outside this file.)
33
 
AC_DEFUN([AM_AUTOMAKE_VERSION],
34
 
[am__api_version='1.11'
35
 
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
36
 
dnl require some minimum version.  Point them to the right macro.
37
 
m4_if([$1], [1.11.1], [],
38
 
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
22
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
 
23
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
 
24
#
 
25
# This file is free software, distributed under the terms of the GNU
 
26
# General Public License.  As a special exception to the GNU General
 
27
# Public License, this file may be distributed as part of a program
 
28
# that contains a configuration script generated by Autoconf, under
 
29
# the same distribution terms as the rest of that program.
 
30
#
 
31
# This file can be copied and used freely without restrictions.  It can
 
32
# be used in projects which are not available under the GNU Public License
 
33
# but which still want to provide support for the GNU gettext functionality.
 
34
#
 
35
# Macro to add for using GNU gettext.
 
36
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
 
37
#
 
38
# Modified to never use included libintl. 
 
39
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
 
40
#
 
41
# Major rework to remove unused code
 
42
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
 
43
#
 
44
# Added better handling of ALL_LINGUAS from GNU gettext version 
 
45
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
 
46
#
 
47
# Modified to require ngettext
 
48
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
 
49
#
 
50
# We need this here as well, since someone might use autoconf-2.5x
 
51
# to configure GLib then an older version to configure a package
 
52
# using AM_GLIB_GNU_GETTEXT
 
53
AC_PREREQ(2.53)
 
54
 
 
55
dnl
 
56
dnl We go to great lengths to make sure that aclocal won't 
 
57
dnl try to pull in the installed version of these macros
 
58
dnl when running aclocal in the glib directory.
 
59
dnl
 
60
m4_copy([AC_DEFUN],[glib_DEFUN])
 
61
m4_copy([AC_REQUIRE],[glib_REQUIRE])
 
62
dnl
 
63
dnl At the end, if we're not within glib, we'll define the public
 
64
dnl definitions in terms of our private definitions.
 
65
dnl
 
66
 
 
67
# GLIB_LC_MESSAGES
 
68
#--------------------
 
69
glib_DEFUN([GLIB_LC_MESSAGES],
 
70
  [AC_CHECK_HEADERS([locale.h])
 
71
    if test $ac_cv_header_locale_h = yes; then
 
72
    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
 
73
      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
 
74
       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
 
75
    if test $am_cv_val_LC_MESSAGES = yes; then
 
76
      AC_DEFINE(HAVE_LC_MESSAGES, 1,
 
77
        [Define if your <locale.h> file defines LC_MESSAGES.])
 
78
    fi
 
79
  fi])
 
80
 
 
81
# GLIB_PATH_PROG_WITH_TEST
 
82
#----------------------------
 
83
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
 
84
dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
 
85
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
 
86
[# Extract the first word of "$2", so it can be a program name with args.
 
87
set dummy $2; ac_word=[$]2
 
88
AC_MSG_CHECKING([for $ac_word])
 
89
AC_CACHE_VAL(ac_cv_path_$1,
 
90
[case "[$]$1" in
 
91
  /*)
 
92
  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
 
93
  ;;
 
94
  *)
 
95
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
96
  for ac_dir in ifelse([$5], , $PATH, [$5]); do
 
97
    test -z "$ac_dir" && ac_dir=.
 
98
    if test -f $ac_dir/$ac_word; then
 
99
      if [$3]; then
 
100
        ac_cv_path_$1="$ac_dir/$ac_word"
 
101
        break
 
102
      fi
 
103
    fi
 
104
  done
 
105
  IFS="$ac_save_ifs"
 
106
dnl If no 4th arg is given, leave the cache variable unset,
 
107
dnl so AC_PATH_PROGS will keep looking.
 
108
ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
 
109
])dnl
 
110
  ;;
 
111
esac])dnl
 
112
$1="$ac_cv_path_$1"
 
113
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
 
114
  AC_MSG_RESULT([$]$1)
 
115
else
 
116
  AC_MSG_RESULT(no)
 
117
fi
 
118
AC_SUBST($1)dnl
39
119
])
40
120
 
41
 
# _AM_AUTOCONF_VERSION(VERSION)
42
 
# -----------------------------
43
 
# aclocal traces this macro to find the Autoconf version.
44
 
# This is a private macro too.  Using m4_define simplifies
45
 
# the logic in aclocal, which can simply ignore this definition.
46
 
m4_define([_AM_AUTOCONF_VERSION], [])
47
 
 
48
 
# AM_SET_CURRENT_AUTOMAKE_VERSION
 
121
# GLIB_WITH_NLS
 
122
#-----------------
 
123
glib_DEFUN([GLIB_WITH_NLS],
 
124
  dnl NLS is obligatory
 
125
  [USE_NLS=yes
 
126
    AC_SUBST(USE_NLS)
 
127
 
 
128
    gt_cv_have_gettext=no
 
129
 
 
130
    CATOBJEXT=NONE
 
131
    XGETTEXT=:
 
132
    INTLLIBS=
 
133
 
 
134
    AC_CHECK_HEADER(libintl.h,
 
135
     [gt_cv_func_dgettext_libintl="no"
 
136
      libintl_extra_libs=""
 
137
 
 
138
      #
 
139
      # First check in libc
 
140
      #
 
141
      AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
 
142
        [AC_TRY_LINK([
 
143
#include <libintl.h>
 
144
],
 
145
         [return !ngettext ("","", 1)],
 
146
          gt_cv_func_ngettext_libc=yes,
 
147
          gt_cv_func_ngettext_libc=no)
 
148
        ])
 
149
  
 
150
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
151
              AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
 
152
                [AC_TRY_LINK([
 
153
#include <libintl.h>
 
154
],
 
155
                  [return !dgettext ("","")],
 
156
                  gt_cv_func_dgettext_libc=yes,
 
157
                  gt_cv_func_dgettext_libc=no)
 
158
                ])
 
159
      fi
 
160
  
 
161
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
162
        AC_CHECK_FUNCS(bind_textdomain_codeset)
 
163
      fi
 
164
 
 
165
      #
 
166
      # If we don't have everything we want, check in libintl
 
167
      #
 
168
      if test "$gt_cv_func_dgettext_libc" != "yes" \
 
169
         || test "$gt_cv_func_ngettext_libc" != "yes" \
 
170
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
 
171
        
 
172
        AC_CHECK_LIB(intl, bindtextdomain,
 
173
            [AC_CHECK_LIB(intl, ngettext,
 
174
                    [AC_CHECK_LIB(intl, dgettext,
 
175
                                  gt_cv_func_dgettext_libintl=yes)])])
 
176
 
 
177
        if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
 
178
          AC_MSG_CHECKING([if -liconv is needed to use gettext])
 
179
          AC_MSG_RESULT([])
 
180
          AC_CHECK_LIB(intl, ngettext,
 
181
                [AC_CHECK_LIB(intl, dcgettext,
 
182
                       [gt_cv_func_dgettext_libintl=yes
 
183
                        libintl_extra_libs=-liconv],
 
184
                        :,-liconv)],
 
185
                :,-liconv)
 
186
        fi
 
187
 
 
188
        #
 
189
        # If we found libintl, then check in it for bind_textdomain_codeset();
 
190
        # we'll prefer libc if neither have bind_textdomain_codeset(),
 
191
        # and both have dgettext and ngettext
 
192
        #
 
193
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
 
194
          glib_save_LIBS="$LIBS"
 
195
          LIBS="$LIBS -lintl $libintl_extra_libs"
 
196
          unset ac_cv_func_bind_textdomain_codeset
 
197
          AC_CHECK_FUNCS(bind_textdomain_codeset)
 
198
          LIBS="$glib_save_LIBS"
 
199
 
 
200
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
 
201
            gt_cv_func_dgettext_libc=no
 
202
          else
 
203
            if test "$gt_cv_func_dgettext_libc" = "yes" \
 
204
                && test "$gt_cv_func_ngettext_libc" = "yes"; then
 
205
              gt_cv_func_dgettext_libintl=no
 
206
            fi
 
207
          fi
 
208
        fi
 
209
      fi
 
210
 
 
211
      if test "$gt_cv_func_dgettext_libc" = "yes" \
 
212
        || test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
213
        gt_cv_have_gettext=yes
 
214
      fi
 
215
  
 
216
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
217
        INTLLIBS="-lintl $libintl_extra_libs"
 
218
      fi
 
219
  
 
220
      if test "$gt_cv_have_gettext" = "yes"; then
 
221
        AC_DEFINE(HAVE_GETTEXT,1,
 
222
          [Define if the GNU gettext() function is already present or preinstalled.])
 
223
        GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
 
224
          [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
 
225
        if test "$MSGFMT" != "no"; then
 
226
          glib_save_LIBS="$LIBS"
 
227
          LIBS="$LIBS $INTLLIBS"
 
228
          AC_CHECK_FUNCS(dcgettext)
 
229
          MSGFMT_OPTS=
 
230
          AC_MSG_CHECKING([if msgfmt accepts -c])
 
231
          GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
 
232
msgid ""
 
233
msgstr ""
 
234
"Content-Type: text/plain; charset=UTF-8\n"
 
235
"Project-Id-Version: test 1.0\n"
 
236
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
 
237
"Last-Translator: test <foo@bar.xx>\n"
 
238
"Language-Team: C <LL@li.org>\n"
 
239
"MIME-Version: 1.0\n"
 
240
"Content-Transfer-Encoding: 8bit\n"
 
241
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
 
242
          AC_SUBST(MSGFMT_OPTS)
 
243
          AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
 
244
          GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
 
245
            [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
 
246
          AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
 
247
                         return _nl_msg_cat_cntr],
 
248
            [CATOBJEXT=.gmo 
 
249
             DATADIRNAME=share],
 
250
            [case $host in
 
251
            *-*-solaris*)
 
252
            dnl On Solaris, if bind_textdomain_codeset is in libc,
 
253
            dnl GNU format message catalog is always supported,
 
254
            dnl since both are added to the libc all together.
 
255
            dnl Hence, we'd like to go with DATADIRNAME=share and
 
256
            dnl and CATOBJEXT=.gmo in this case.
 
257
            AC_CHECK_FUNC(bind_textdomain_codeset,
 
258
              [CATOBJEXT=.gmo 
 
259
               DATADIRNAME=share],
 
260
              [CATOBJEXT=.mo
 
261
               DATADIRNAME=lib])
 
262
            ;;
 
263
            *-*-openbsd*)
 
264
            CATOBJEXT=.mo
 
265
            DATADIRNAME=share
 
266
            ;;
 
267
            *)
 
268
            CATOBJEXT=.mo
 
269
            DATADIRNAME=lib
 
270
            ;;
 
271
            esac])
 
272
          LIBS="$glib_save_LIBS"
 
273
          INSTOBJEXT=.mo
 
274
        else
 
275
          gt_cv_have_gettext=no
 
276
        fi
 
277
      fi
 
278
    ])
 
279
 
 
280
    if test "$gt_cv_have_gettext" = "yes" ; then
 
281
      AC_DEFINE(ENABLE_NLS, 1,
 
282
        [always defined to indicate that i18n is enabled])
 
283
    fi
 
284
 
 
285
    dnl Test whether we really found GNU xgettext.
 
286
    if test "$XGETTEXT" != ":"; then
 
287
      dnl If it is not GNU xgettext we define it as : so that the
 
288
      dnl Makefiles still can work.
 
289
      if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 
290
        : ;
 
291
      else
 
292
        AC_MSG_RESULT(
 
293
          [found xgettext program is not GNU xgettext; ignore it])
 
294
        XGETTEXT=":"
 
295
      fi
 
296
    fi
 
297
 
 
298
    # We need to process the po/ directory.
 
299
    POSUB=po
 
300
 
 
301
    AC_OUTPUT_COMMANDS(
 
302
      [case "$CONFIG_FILES" in *po/Makefile.in*)
 
303
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 
304
      esac])
 
305
 
 
306
    dnl These rules are solely for the distribution goal.  While doing this
 
307
    dnl we only have to keep exactly one list of the available catalogs
 
308
    dnl in configure.ac.
 
309
    for lang in $ALL_LINGUAS; do
 
310
      GMOFILES="$GMOFILES $lang.gmo"
 
311
      POFILES="$POFILES $lang.po"
 
312
    done
 
313
 
 
314
    dnl Make all variables we use known to autoconf.
 
315
    AC_SUBST(CATALOGS)
 
316
    AC_SUBST(CATOBJEXT)
 
317
    AC_SUBST(DATADIRNAME)
 
318
    AC_SUBST(GMOFILES)
 
319
    AC_SUBST(INSTOBJEXT)
 
320
    AC_SUBST(INTLLIBS)
 
321
    AC_SUBST(PO_IN_DATADIR_TRUE)
 
322
    AC_SUBST(PO_IN_DATADIR_FALSE)
 
323
    AC_SUBST(POFILES)
 
324
    AC_SUBST(POSUB)
 
325
  ])
 
326
 
 
327
# AM_GLIB_GNU_GETTEXT
 
328
# -------------------
 
329
# Do checks necessary for use of gettext. If a suitable implementation 
 
330
# of gettext is found in either in libintl or in the C library,
 
331
# it will set INTLLIBS to the libraries needed for use of gettext
 
332
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
 
333
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
 
334
# on various variables needed by the Makefile.in.in installed by 
 
335
# glib-gettextize.
 
336
dnl
 
337
glib_DEFUN([GLIB_GNU_GETTEXT],
 
338
  [AC_REQUIRE([AC_PROG_CC])dnl
 
339
   AC_REQUIRE([AC_HEADER_STDC])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)
49
411
# -------------------------------
50
 
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
51
 
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
52
 
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
53
 
[AM_AUTOMAKE_VERSION([1.11.1])dnl
54
 
m4_ifndef([AC_AUTOCONF_VERSION],
55
 
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
56
 
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
57
 
 
58
 
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
59
 
 
60
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
61
 
#
62
 
# This file is free software; the Free Software Foundation
63
 
# gives unlimited permission to copy and/or distribute it,
64
 
# with or without modifications, as long as this notice is preserved.
65
 
 
66
 
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
67
 
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
68
 
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
69
 
#
70
 
# Of course, Automake must honor this variable whenever it calls a
71
 
# tool from the auxiliary directory.  The problem is that $srcdir (and
72
 
# therefore $ac_aux_dir as well) can be either absolute or relative,
73
 
# depending on how configure is run.  This is pretty annoying, since
74
 
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
75
 
# source directory, any form will work fine, but in subdirectories a
76
 
# relative path needs to be adjusted first.
77
 
#
78
 
# $ac_aux_dir/missing
79
 
#    fails when called from a subdirectory if $ac_aux_dir is relative
80
 
# $top_srcdir/$ac_aux_dir/missing
81
 
#    fails if $ac_aux_dir is absolute,
82
 
#    fails when called from a subdirectory in a VPATH build with
83
 
#          a relative $ac_aux_dir
84
 
#
85
 
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
86
 
# are both prefixed by $srcdir.  In an in-source build this is usually
87
 
# harmless because $srcdir is `.', but things will broke when you
88
 
# start a VPATH build or use an absolute $srcdir.
89
 
#
90
 
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
91
 
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
92
 
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
93
 
# and then we would define $MISSING as
94
 
#   MISSING="\${SHELL} $am_aux_dir/missing"
95
 
# This will work as long as MISSING is not called from configure, because
96
 
# unfortunately $(top_srcdir) has no meaning in configure.
97
 
# However there are other variables, like CC, which are often used in
98
 
# configure, and could therefore not use this "fixed" $ac_aux_dir.
99
 
#
100
 
# Another solution, used here, is to always expand $ac_aux_dir to an
101
 
# absolute PATH.  The drawback is that using absolute paths prevent a
102
 
# configured tree to be moved without reconfiguration.
103
 
 
104
 
AC_DEFUN([AM_AUX_DIR_EXPAND],
105
 
[dnl Rely on autoconf to set up CDPATH properly.
106
 
AC_PREREQ([2.50])dnl
107
 
# expand $ac_aux_dir to an absolute path
108
 
am_aux_dir=`cd $ac_aux_dir && pwd`
109
 
])
110
 
 
111
 
# AM_CONDITIONAL                                            -*- Autoconf -*-
112
 
 
113
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
114
 
# 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
 
# serial 9
121
 
 
122
 
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
123
 
# -------------------------------------
124
 
# Define a conditional.
125
 
AC_DEFUN([AM_CONDITIONAL],
126
 
[AC_PREREQ(2.52)dnl
127
 
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
128
 
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
129
 
AC_SUBST([$1_TRUE])dnl
130
 
AC_SUBST([$1_FALSE])dnl
131
 
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
132
 
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
133
 
m4_define([_AM_COND_VALUE_$1], [$2])dnl
134
 
if $2; then
135
 
  $1_TRUE=
136
 
  $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"`
137
424
else
138
 
  $1_TRUE='#'
139
 
  $1_FALSE=
 
425
  localedir=`eval echo "${datadir}/locale"`
140
426
fi
141
 
AC_CONFIG_COMMANDS_PRE(
142
 
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
143
 
  AC_MSG_ERROR([[conditional "$1" was never defined.
144
 
Usually this means the macro was only invoked conditionally.]])
145
 
fi])])
146
 
 
147
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
148
 
# Free Software Foundation, Inc.
149
 
#
150
 
# This file is free software; the Free Software Foundation
151
 
# gives unlimited permission to copy and/or distribute it,
152
 
# with or without modifications, as long as this notice is preserved.
153
 
 
154
 
# serial 10
155
 
 
156
 
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
157
 
# written in clear, in which case automake, when reading aclocal.m4,
158
 
# will think it sees a *use*, and therefore will trigger all it's
159
 
# C support machinery.  Also note that it means that autoscan, seeing
160
 
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
161
 
 
162
 
 
163
 
# _AM_DEPENDENCIES(NAME)
164
 
# ----------------------
165
 
# See how the compiler implements dependency checking.
166
 
# NAME is "CC", "CXX", "GCJ", or "OBJC".
167
 
# We try a few techniques and use that to set a single cache variable.
168
 
#
169
 
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
170
 
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
171
 
# dependency, and given that the user is not expected to run this macro,
172
 
# just rely on AC_PROG_CC.
173
 
AC_DEFUN([_AM_DEPENDENCIES],
174
 
[AC_REQUIRE([AM_SET_DEPDIR])dnl
175
 
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
176
 
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
177
 
AC_REQUIRE([AM_DEP_TRACK])dnl
178
 
 
179
 
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
180
 
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
181
 
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
182
 
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
183
 
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
184
 
                   [depcc="$$1"   am_compiler_list=])
185
 
 
186
 
AC_CACHE_CHECK([dependency style of $depcc],
187
 
               [am_cv_$1_dependencies_compiler_type],
188
 
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
189
 
  # We make a subdir and do the tests there.  Otherwise we can end up
190
 
  # making bogus files that we don't know about and never remove.  For
191
 
  # instance it was reported that on HP-UX the gcc test will end up
192
 
  # making a dummy file named `D' -- because `-MD' means `put the output
193
 
  # in D'.
194
 
  mkdir conftest.dir
195
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
196
 
  # using a relative directory.
197
 
  cp "$am_depcomp" conftest.dir
198
 
  cd conftest.dir
199
 
  # We will build objects and dependencies in a subdirectory because
200
 
  # it helps to detect inapplicable dependency modes.  For instance
201
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
202
 
  # side effect of compilation, but ICC will put the dependencies in
203
 
  # the current directory while Tru64 will put them in the object
204
 
  # directory.
205
 
  mkdir sub
206
 
 
207
 
  am_cv_$1_dependencies_compiler_type=none
208
 
  if test "$am_compiler_list" = ""; then
209
 
     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"
210
476
  fi
211
 
  am__universal=false
212
 
  m4_case([$1], [CC],
213
 
    [case " $depcc " in #(
214
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
215
 
     esac],
216
 
    [CXX],
217
 
    [case " $depcc " in #(
218
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
219
 
     esac])
220
 
 
221
 
  for depmode in $am_compiler_list; do
222
 
    # Setup a source with many dependencies, because some compilers
223
 
    # like to wrap large dependency lists on column 80 (with \), and
224
 
    # we should not choose a depcomp mode which is confused by this.
225
 
    #
226
 
    # We need to recreate these files for each test, as the compiler may
227
 
    # overwrite some of them when testing with obscure command lines.
228
 
    # This happens at least with the AIX C compiler.
229
 
    : > sub/conftest.c
230
 
    for i in 1 2 3 4 5 6; do
231
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
232
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
233
 
      # Solaris 8's {/usr,}/bin/sh.
234
 
      touch sub/conftst$i.h
235
 
    done
236
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
237
 
 
238
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
239
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
240
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
241
 
    # versions had trouble with output in subdirs
242
 
    am__obj=sub/conftest.${OBJEXT-o}
243
 
    am__minus_obj="-o $am__obj"
244
 
    case $depmode in
245
 
    gcc)
246
 
      # This depmode causes a compiler race in universal mode.
247
 
      test "$am__universal" = false || continue
248
 
      ;;
249
 
    nosideeffect)
250
 
      # after this tag, mechanisms are not by side-effect, so they'll
251
 
      # only be used when explicitly requested
252
 
      if test "x$enable_dependency_tracking" = xyes; then
253
 
        continue
254
 
      else
255
 
        break
256
 
      fi
257
 
      ;;
258
 
    msvisualcpp | msvcmsys)
259
 
      # This compiler won't grok `-c -o', but also, the minuso test has
260
 
      # not run yet.  These depmodes are late enough in the game, and
261
 
      # so weak that their functioning should not be impacted.
262
 
      am__obj=conftest.${OBJEXT-o}
263
 
      am__minus_obj=
264
 
      ;;
265
 
    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="G ATK PANGO GDK GDK_PIXBUF GTK GCONF BONOBO BONOBO_UI GNOME LIBGLADE VTE 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
dnl GNOME_COMPILE_WARNINGS
 
516
dnl Turn on many useful compiler warnings
 
517
dnl For now, only works on GCC
 
518
AC_DEFUN([GNOME_COMPILE_WARNINGS],[
 
519
    dnl ******************************
 
520
    dnl More compiler warnings
 
521
    dnl ******************************
 
522
 
 
523
    AC_ARG_ENABLE(compile-warnings, 
 
524
                  AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
 
525
                                 [Turn on compiler warnings]),,
 
526
                  [enable_compile_warnings="m4_default([$1],[yes])"])
 
527
 
 
528
    warnCFLAGS=
 
529
    if test "x$GCC" != xyes; then
 
530
        enable_compile_warnings=no
 
531
    fi
 
532
 
 
533
    warning_flags=
 
534
    realsave_CFLAGS="$CFLAGS"
 
535
 
 
536
    case "$enable_compile_warnings" in
 
537
    no)
 
538
        warning_flags=
 
539
        ;;
 
540
    minimum)
 
541
        warning_flags="-Wall"
 
542
        ;;
 
543
    yes)
 
544
        warning_flags="-Wall -Wmissing-prototypes"
 
545
        ;;
 
546
    maximum|error)
 
547
        warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
 
548
        CFLAGS="$warning_flags $CFLAGS"
 
549
        for option in -Wno-sign-compare; do
 
550
                SAVE_CFLAGS="$CFLAGS"
 
551
                CFLAGS="$CFLAGS $option"
 
552
                AC_MSG_CHECKING([whether gcc understands $option])
 
553
                AC_TRY_COMPILE([], [],
 
554
                        has_option=yes,
 
555
                        has_option=no,)
 
556
                CFLAGS="$SAVE_CFLAGS"
 
557
                AC_MSG_RESULT($has_option)
 
558
                if test $has_option = yes; then
 
559
                  warning_flags="$warning_flags $option"
 
560
                fi
 
561
                unset has_option
 
562
                unset SAVE_CFLAGS
 
563
        done
 
564
        unset option
 
565
        if test "$enable_compile_warnings" = "error" ; then
 
566
            warning_flags="$warning_flags -Werror"
 
567
        fi
 
568
        ;;
 
569
    *)
 
570
        AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
 
571
        ;;
266
572
    esac
267
 
    if depmode=$depmode \
268
 
       source=sub/conftest.c object=$am__obj \
269
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
270
 
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
271
 
         >/dev/null 2>conftest.err &&
272
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
273
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
274
 
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
275
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
276
 
      # icc doesn't choke on unknown options, it will just issue warnings
277
 
      # or remarks (even with -Werror).  So we grep stderr for any message
278
 
      # that says an option was ignored or not supported.
279
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
280
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
281
 
      # The diagnosis changed in icc 8.0:
282
 
      #   icc: Command line remark: option '-MP' not supported
283
 
      if (grep 'ignoring option' conftest.err ||
284
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
285
 
        am_cv_$1_dependencies_compiler_type=$depmode
286
 
        break
 
573
    CFLAGS="$realsave_CFLAGS"
 
574
    AC_MSG_CHECKING(what warning flags to pass to the C compiler)
 
575
    AC_MSG_RESULT($warning_flags)
 
576
 
 
577
    AC_ARG_ENABLE(iso-c,
 
578
                  AC_HELP_STRING([--enable-iso-c],
 
579
                                 [Try to warn if code is not ISO C ]),,
 
580
                  [enable_iso_c=no])
 
581
 
 
582
    AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
 
583
    complCFLAGS=
 
584
    if test "x$enable_iso_c" != "xno"; then
 
585
        if test "x$GCC" = "xyes"; then
 
586
        case " $CFLAGS " in
 
587
            *[\ \       ]-ansi[\ \      ]*) ;;
 
588
            *) complCFLAGS="$complCFLAGS -ansi" ;;
 
589
        esac
 
590
        case " $CFLAGS " in
 
591
            *[\ \       ]-pedantic[\ \  ]*) ;;
 
592
            *) complCFLAGS="$complCFLAGS -pedantic" ;;
 
593
        esac
 
594
        fi
 
595
    fi
 
596
    AC_MSG_RESULT($complCFLAGS)
 
597
 
 
598
    WARN_CFLAGS="$warning_flags $complCFLAGS"
 
599
    AC_SUBST(WARN_CFLAGS)
 
600
])
 
601
 
 
602
dnl For C++, do basically the same thing.
 
603
 
 
604
AC_DEFUN([GNOME_CXX_WARNINGS],[
 
605
  AC_ARG_ENABLE(cxx-warnings,
 
606
                AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
 
607
                               [Turn on compiler warnings.]),,
 
608
                [enable_cxx_warnings="m4_default([$1],[minimum])"])
 
609
 
 
610
  AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
 
611
  warnCXXFLAGS=
 
612
  if test "x$GXX" != xyes; then
 
613
    enable_cxx_warnings=no
 
614
  fi
 
615
  if test "x$enable_cxx_warnings" != "xno"; then
 
616
    if test "x$GXX" = "xyes"; then
 
617
      case " $CXXFLAGS " in
 
618
      *[\ \     ]-Wall[\ \      ]*) ;;
 
619
      *) warnCXXFLAGS="-Wall -Wno-unused" ;;
 
620
      esac
 
621
 
 
622
      ## -W is not all that useful.  And it cannot be controlled
 
623
      ## with individual -Wno-xxx flags, unlike -Wall
 
624
      if test "x$enable_cxx_warnings" = "xyes"; then
 
625
        warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
287
626
      fi
288
627
    fi
289
 
  done
290
 
 
291
 
  cd ..
292
 
  rm -rf conftest.dir
293
 
else
294
 
  am_cv_$1_dependencies_compiler_type=none
295
 
fi
296
 
])
297
 
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
298
 
AM_CONDITIONAL([am__fastdep$1], [
299
 
  test "x$enable_dependency_tracking" != xno \
300
 
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
301
 
])
302
 
 
303
 
 
304
 
# AM_SET_DEPDIR
305
 
# -------------
306
 
# Choose a directory name for dependency files.
307
 
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
308
 
AC_DEFUN([AM_SET_DEPDIR],
309
 
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
310
 
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
311
 
])
312
 
 
313
 
 
314
 
# AM_DEP_TRACK
315
 
# ------------
316
 
AC_DEFUN([AM_DEP_TRACK],
317
 
[AC_ARG_ENABLE(dependency-tracking,
318
 
[  --disable-dependency-tracking  speeds up one-time build
319
 
  --enable-dependency-tracking   do not reject slow dependency extractors])
320
 
if test "x$enable_dependency_tracking" != xno; then
321
 
  am_depcomp="$ac_aux_dir/depcomp"
322
 
  AMDEPBACKSLASH='\'
323
 
fi
324
 
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
325
 
AC_SUBST([AMDEPBACKSLASH])dnl
326
 
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
327
 
])
328
 
 
329
 
# Generate code to set up dependency tracking.              -*- Autoconf -*-
330
 
 
331
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
332
 
# Free Software Foundation, Inc.
333
 
#
334
 
# This file is free software; the Free Software Foundation
335
 
# gives unlimited permission to copy and/or distribute it,
336
 
# with or without modifications, as long as this notice is preserved.
337
 
 
338
 
#serial 5
339
 
 
340
 
# _AM_OUTPUT_DEPENDENCY_COMMANDS
341
 
# ------------------------------
342
 
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
343
 
[{
344
 
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
345
 
  # are listed without --file.  Let's play safe and only enable the eval
346
 
  # if we detect the quoting.
347
 
  case $CONFIG_FILES in
348
 
  *\'*) eval set x "$CONFIG_FILES" ;;
349
 
  *)   set x $CONFIG_FILES ;;
350
 
  esac
351
 
  shift
352
 
  for mf
353
 
  do
354
 
    # Strip MF so we end up with the name of the file.
355
 
    mf=`echo "$mf" | sed -e 's/:.*$//'`
356
 
    # Check whether this is an Automake generated Makefile or not.
357
 
    # We used to match only the files named `Makefile.in', but
358
 
    # some people rename them; so instead we look at the file content.
359
 
    # Grep'ing the first line is not enough: some people post-process
360
 
    # each Makefile.in and add a new line on top of each file to say so.
361
 
    # Grep'ing the whole file is not good either: AIX grep has a line
362
 
    # limit of 2048, but all sed's we know have understand at least 4000.
363
 
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
364
 
      dirpart=`AS_DIRNAME("$mf")`
365
 
    else
366
 
      continue
367
 
    fi
368
 
    # Extract the definition of DEPDIR, am__include, and am__quote
369
 
    # from the Makefile without running `make'.
370
 
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
371
 
    test -z "$DEPDIR" && continue
372
 
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
373
 
    test -z "am__include" && continue
374
 
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
375
 
    # When using ansi2knr, U may be empty or an underscore; expand it
376
 
    U=`sed -n 's/^U = //p' < "$mf"`
377
 
    # Find all dependency output files, they are included files with
378
 
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
379
 
    # simplest approach to changing $(DEPDIR) to its actual value in the
380
 
    # expansion.
381
 
    for file in `sed -n "
382
 
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
383
 
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
384
 
      # Make sure the directory exists.
385
 
      test -f "$dirpart/$file" && continue
386
 
      fdir=`AS_DIRNAME(["$file"])`
387
 
      AS_MKDIR_P([$dirpart/$fdir])
388
 
      # echo "creating $dirpart/$file"
389
 
      echo '# dummy' > "$dirpart/$file"
390
 
    done
391
 
  done
392
 
}
393
 
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
394
 
 
395
 
 
396
 
# AM_OUTPUT_DEPENDENCY_COMMANDS
397
 
# -----------------------------
398
 
# This macro should only be invoked once -- use via AC_REQUIRE.
399
 
#
400
 
# This code is only required when automatic dependency tracking
401
 
# is enabled.  FIXME.  This creates each `.P' file that we will
402
 
# need in order to bootstrap the dependency handling code.
403
 
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
404
 
[AC_CONFIG_COMMANDS([depfiles],
405
 
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
406
 
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
407
 
])
408
 
 
409
 
# Do all the work for Automake.                             -*- Autoconf -*-
410
 
 
411
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
412
 
# 2005, 2006, 2008, 2009 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
 
# serial 16
419
 
 
420
 
# This macro actually does too much.  Some checks are only needed if
421
 
# your package does certain things.  But this isn't really a big deal.
422
 
 
423
 
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
424
 
# AM_INIT_AUTOMAKE([OPTIONS])
425
 
# -----------------------------------------------
426
 
# The call with PACKAGE and VERSION arguments is the old style
427
 
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
428
 
# and VERSION should now be passed to AC_INIT and removed from
429
 
# the call to AM_INIT_AUTOMAKE.
430
 
# We support both call styles for the transition.  After
431
 
# the next Automake release, Autoconf can make the AC_INIT
432
 
# arguments mandatory, and then we can depend on a new Autoconf
433
 
# release and drop the old call support.
434
 
AC_DEFUN([AM_INIT_AUTOMAKE],
435
 
[AC_PREREQ([2.62])dnl
436
 
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
437
 
dnl the ones we care about.
438
 
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
439
 
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
440
 
AC_REQUIRE([AC_PROG_INSTALL])dnl
441
 
if test "`cd $srcdir && pwd`" != "`pwd`"; then
442
 
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
443
 
  # is not polluted with repeated "-I."
444
 
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
445
 
  # test to see if srcdir already configured
446
 
  if test -f $srcdir/config.status; then
447
 
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
448
 
  fi
449
 
fi
450
 
 
451
 
# test whether we have cygpath
452
 
if test -z "$CYGPATH_W"; then
453
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
454
 
    CYGPATH_W='cygpath -w'
455
 
  else
456
 
    CYGPATH_W=echo
457
 
  fi
458
 
fi
459
 
AC_SUBST([CYGPATH_W])
460
 
 
461
 
# Define the identity of the package.
462
 
dnl Distinguish between old-style and new-style calls.
463
 
m4_ifval([$2],
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(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
470
 
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
471
 
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
472
 
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
473
 
 
474
 
_AM_IF_OPTION([no-define],,
475
 
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
476
 
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
477
 
 
478
 
# Some tools Automake needs.
479
 
AC_REQUIRE([AM_SANITY_CHECK])dnl
480
 
AC_REQUIRE([AC_ARG_PROGRAM])dnl
481
 
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
482
 
AM_MISSING_PROG(AUTOCONF, autoconf)
483
 
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
484
 
AM_MISSING_PROG(AUTOHEADER, autoheader)
485
 
AM_MISSING_PROG(MAKEINFO, makeinfo)
486
 
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
487
 
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
488
 
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
489
 
# We need awk for the "check" target.  The system "awk" is bad on
490
 
# some platforms.
491
 
AC_REQUIRE([AC_PROG_AWK])dnl
492
 
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
493
 
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
494
 
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
495
 
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
496
 
                             [_AM_PROG_TAR([v7])])])
497
 
_AM_IF_OPTION([no-dependencies],,
498
 
[AC_PROVIDE_IFELSE([AC_PROG_CC],
499
 
                  [_AM_DEPENDENCIES(CC)],
500
 
                  [define([AC_PROG_CC],
501
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
502
 
AC_PROVIDE_IFELSE([AC_PROG_CXX],
503
 
                  [_AM_DEPENDENCIES(CXX)],
504
 
                  [define([AC_PROG_CXX],
505
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
506
 
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
507
 
                  [_AM_DEPENDENCIES(OBJC)],
508
 
                  [define([AC_PROG_OBJC],
509
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
510
 
])
511
 
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
512
 
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
513
 
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
514
 
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
515
 
AC_CONFIG_COMMANDS_PRE(dnl
516
 
[m4_provide_if([_AM_COMPILER_EXEEXT],
517
 
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
518
 
])
519
 
 
520
 
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
521
 
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
522
 
dnl mangled by Autoconf and run in a shell conditional statement.
523
 
m4_define([_AC_COMPILER_EXEEXT],
524
 
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
525
 
 
526
 
 
527
 
# When config.status generates a header, we must update the stamp-h file.
528
 
# This file resides in the same directory as the config header
529
 
# that is generated.  The stamp files are numbered to have different names.
530
 
 
531
 
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
532
 
# loop where config.status creates the headers, so we can generate
533
 
# our stamp files there.
534
 
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
535
 
[# Compute $1's index in $config_headers.
536
 
_am_arg=$1
537
 
_am_stamp_count=1
538
 
for _am_header in $config_headers :; do
539
 
  case $_am_header in
540
 
    $_am_arg | $_am_arg:* )
541
 
      break ;;
542
 
    * )
543
 
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
544
 
  esac
545
 
done
546
 
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
547
 
 
548
 
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
549
 
#
550
 
# This file is free software; the Free Software Foundation
551
 
# gives unlimited permission to copy and/or distribute it,
552
 
# with or without modifications, as long as this notice is preserved.
553
 
 
554
 
# AM_PROG_INSTALL_SH
555
 
# ------------------
556
 
# Define $install_sh.
557
 
AC_DEFUN([AM_PROG_INSTALL_SH],
558
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
559
 
if test x"${install_sh}" != xset; then
560
 
  case $am_aux_dir in
561
 
  *\ * | *\     *)
562
 
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
563
 
  *)
564
 
    install_sh="\${SHELL} $am_aux_dir/install-sh"
565
 
  esac
566
 
fi
567
 
AC_SUBST(install_sh)])
568
 
 
569
 
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
570
 
#
571
 
# This file is free software; the Free Software Foundation
572
 
# gives unlimited permission to copy and/or distribute it,
573
 
# with or without modifications, as long as this notice is preserved.
574
 
 
575
 
# serial 2
576
 
 
577
 
# Check whether the underlying file-system supports filenames
578
 
# with a leading dot.  For instance MS-DOS doesn't.
579
 
AC_DEFUN([AM_SET_LEADING_DOT],
580
 
[rm -rf .tst 2>/dev/null
581
 
mkdir .tst 2>/dev/null
582
 
if test -d .tst; then
583
 
  am__leading_dot=.
584
 
else
585
 
  am__leading_dot=_
586
 
fi
587
 
rmdir .tst 2>/dev/null
588
 
AC_SUBST([am__leading_dot])])
589
 
 
590
 
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
591
 
# From Jim Meyering
592
 
 
593
 
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
594
 
# Free Software Foundation, Inc.
595
 
#
596
 
# This file is free software; the Free Software Foundation
597
 
# gives unlimited permission to copy and/or distribute it,
598
 
# with or without modifications, as long as this notice is preserved.
599
 
 
600
 
# serial 5
601
 
 
602
 
# AM_MAINTAINER_MODE([DEFAULT-MODE])
603
 
# ----------------------------------
604
 
# Control maintainer-specific portions of Makefiles.
605
 
# Default is to disable them, unless `enable' is passed literally.
606
 
# For symmetry, `disable' may be passed as well.  Anyway, the user
607
 
# can override the default with the --enable/--disable switch.
608
 
AC_DEFUN([AM_MAINTAINER_MODE],
609
 
[m4_case(m4_default([$1], [disable]),
610
 
       [enable], [m4_define([am_maintainer_other], [disable])],
611
 
       [disable], [m4_define([am_maintainer_other], [enable])],
612
 
       [m4_define([am_maintainer_other], [enable])
613
 
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
614
 
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
615
 
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
616
 
  AC_ARG_ENABLE([maintainer-mode],
617
 
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
618
 
                          (and sometimes confusing) to the casual installer],
619
 
      [USE_MAINTAINER_MODE=$enableval],
620
 
      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
621
 
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
622
 
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
623
 
  MAINT=$MAINTAINER_MODE_TRUE
624
 
  AC_SUBST([MAINT])dnl
625
 
]
626
 
)
627
 
 
628
 
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
629
 
 
630
 
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
631
 
 
632
 
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
633
 
#
634
 
# This file is free software; the Free Software Foundation
635
 
# gives unlimited permission to copy and/or distribute it,
636
 
# with or without modifications, as long as this notice is preserved.
637
 
 
638
 
# serial 4
639
 
 
640
 
# AM_MAKE_INCLUDE()
641
 
# -----------------
642
 
# Check to see how make treats includes.
643
 
AC_DEFUN([AM_MAKE_INCLUDE],
644
 
[am_make=${MAKE-make}
645
 
cat > confinc << 'END'
646
 
am__doit:
647
 
        @echo this is the am__doit target
648
 
.PHONY: am__doit
649
 
END
650
 
# If we don't find an include directive, just comment out the code.
651
 
AC_MSG_CHECKING([for style of include used by $am_make])
652
 
am__include="#"
653
 
am__quote=
654
 
_am_result=none
655
 
# First try GNU make style include.
656
 
echo "include confinc" > confmf
657
 
# Ignore all kinds of additional output from `make'.
658
 
case `$am_make -s -f confmf 2> /dev/null` in #(
659
 
*the\ am__doit\ target*)
660
 
  am__include=include
661
 
  am__quote=
662
 
  _am_result=GNU
663
 
  ;;
664
 
esac
665
 
# Now try BSD make style include.
666
 
if test "$am__include" = "#"; then
667
 
   echo '.include "confinc"' > confmf
668
 
   case `$am_make -s -f confmf 2> /dev/null` in #(
669
 
   *the\ am__doit\ target*)
670
 
     am__include=.include
671
 
     am__quote="\""
672
 
     _am_result=BSD
673
 
     ;;
674
 
   esac
675
 
fi
676
 
AC_SUBST([am__include])
677
 
AC_SUBST([am__quote])
678
 
AC_MSG_RESULT([$_am_result])
679
 
rm -f confinc confmf
680
 
])
681
 
 
682
 
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
683
 
 
684
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
685
 
# Free Software Foundation, Inc.
686
 
#
687
 
# This file is free software; the Free Software Foundation
688
 
# gives unlimited permission to copy and/or distribute it,
689
 
# with or without modifications, as long as this notice is preserved.
690
 
 
691
 
# serial 6
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
 
 
701
 
# AM_MISSING_HAS_RUN
702
 
# ------------------
703
 
# Define MISSING if not defined so far and test if it supports --run.
704
 
# If it does, set am_missing_run to use it, otherwise, to nothing.
705
 
AC_DEFUN([AM_MISSING_HAS_RUN],
706
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
707
 
AC_REQUIRE_AUX_FILE([missing])dnl
708
 
if test x"${MISSING+set}" != xset; then
709
 
  case $am_aux_dir in
710
 
  *\ * | *\     *)
711
 
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
712
 
  *)
713
 
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
714
 
  esac
715
 
fi
716
 
# Use eval to expand $SHELL
717
 
if eval "$MISSING --run true"; then
718
 
  am_missing_run="$MISSING --run "
719
 
else
720
 
  am_missing_run=
721
 
  AC_MSG_WARN([`missing' script is too old or missing])
722
 
fi
723
 
])
724
 
 
725
 
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
726
 
#
727
 
# This file is free software; the Free Software Foundation
728
 
# gives unlimited permission to copy and/or distribute it,
729
 
# with or without modifications, as long as this notice is preserved.
730
 
 
731
 
# AM_PROG_MKDIR_P
732
 
# ---------------
733
 
# Check for `mkdir -p'.
734
 
AC_DEFUN([AM_PROG_MKDIR_P],
735
 
[AC_PREREQ([2.60])dnl
736
 
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
737
 
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
738
 
dnl while keeping a definition of mkdir_p for backward compatibility.
739
 
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
740
 
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
741
 
dnl Makefile.ins that do not define MKDIR_P, so we do our own
742
 
dnl adjustment using top_builddir (which is defined more often than
743
 
dnl MKDIR_P).
744
 
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
745
 
case $mkdir_p in
746
 
  [[\\/$]]* | ?:[[\\/]]*) ;;
747
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
748
 
esac
749
 
])
750
 
 
751
 
# Helper functions for option handling.                     -*- Autoconf -*-
752
 
 
753
 
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
754
 
#
755
 
# This file is free software; the Free Software Foundation
756
 
# gives unlimited permission to copy and/or distribute it,
757
 
# with or without modifications, as long as this notice is preserved.
758
 
 
759
 
# serial 4
760
 
 
761
 
# _AM_MANGLE_OPTION(NAME)
762
 
# -----------------------
763
 
AC_DEFUN([_AM_MANGLE_OPTION],
764
 
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
765
 
 
766
 
# _AM_SET_OPTION(NAME)
767
 
# ------------------------------
768
 
# Set option NAME.  Presently that only means defining a flag for this option.
769
 
AC_DEFUN([_AM_SET_OPTION],
770
 
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
771
 
 
772
 
# _AM_SET_OPTIONS(OPTIONS)
773
 
# ----------------------------------
774
 
# OPTIONS is a space-separated list of Automake options.
775
 
AC_DEFUN([_AM_SET_OPTIONS],
776
 
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
777
 
 
778
 
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
779
 
# -------------------------------------------
780
 
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
781
 
AC_DEFUN([_AM_IF_OPTION],
782
 
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
783
 
 
784
 
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
785
 
 
786
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
787
 
# Free Software Foundation, Inc.
788
 
#
789
 
# This file is free software; the Free Software Foundation
790
 
# gives unlimited permission to copy and/or distribute it,
791
 
# with or without modifications, as long as this notice is preserved.
792
 
 
793
 
# serial 5
794
 
 
795
 
# AM_SANITY_CHECK
796
 
# ---------------
797
 
AC_DEFUN([AM_SANITY_CHECK],
798
 
[AC_MSG_CHECKING([whether build environment is sane])
799
 
# Just in case
800
 
sleep 1
801
 
echo timestamp > conftest.file
802
 
# Reject unsafe characters in $srcdir or the absolute working directory
803
 
# name.  Accept space and tab only in the latter.
804
 
am_lf='
 
628
  fi
 
629
  AC_MSG_RESULT($warnCXXFLAGS)
 
630
 
 
631
   AC_ARG_ENABLE(iso-cxx,
 
632
                 AC_HELP_STRING([--enable-iso-cxx],
 
633
                                [Try to warn if code is not ISO C++ ]),,
 
634
                 [enable_iso_cxx=no])
 
635
 
 
636
   AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
 
637
   complCXXFLAGS=
 
638
   if test "x$enable_iso_cxx" != "xno"; then
 
639
     if test "x$GXX" = "xyes"; then
 
640
      case " $CXXFLAGS " in
 
641
      *[\ \     ]-ansi[\ \      ]*) ;;
 
642
      *) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
 
643
      esac
 
644
 
 
645
      case " $CXXFLAGS " in
 
646
      *[\ \     ]-pedantic[\ \  ]*) ;;
 
647
      *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
 
648
      esac
 
649
     fi
 
650
   fi
 
651
  AC_MSG_RESULT($complCXXFLAGS)
 
652
 
 
653
  WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
 
654
  AC_SUBST(WARN_CXXFLAGS)
 
655
])
 
656
 
 
657
dnl Do not call GNOME_DOC_DEFINES directly.  It is split out from
 
658
dnl GNOME_DOC_INIT to allow gnome-doc-utils to bootstrap off itself.
 
659
AC_DEFUN([GNOME_DOC_DEFINES],
 
660
[
 
661
AC_ARG_WITH([help-dir],
 
662
  AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),,
 
663
  [with_help_dir='${datadir}/gnome/help'])
 
664
HELP_DIR="$with_help_dir"
 
665
AC_SUBST(HELP_DIR)
 
666
 
 
667
AC_ARG_WITH([omf-dir],
 
668
  AC_HELP_STRING([--with-omf-dir=DIR], [path to OMF files]),,
 
669
  [with_omf_dir='${datadir}/omf'])
 
670
OMF_DIR="$with_omf_dir"
 
671
AC_SUBST(OMF_DIR)
 
672
 
 
673
AC_ARG_WITH([help-formats],
 
674
  AC_HELP_STRING([--with-help-formats=FORMATS], [list of formats]),,
 
675
  [with_help_formats=''])
 
676
DOC_USER_FORMATS="$with_help_formats"
 
677
AC_SUBST(DOC_USER_FORMATS)
 
678
 
 
679
AC_ARG_ENABLE([scrollkeeper],
 
680
        [AC_HELP_STRING([--disable-scrollkeeper],
 
681
                        [do not make updates to the scrollkeeper database])],,
 
682
        enable_scrollkeeper=yes)
 
683
AM_CONDITIONAL([ENABLE_SK],[test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"])
 
684
 
 
685
dnl disable scrollkeeper automatically for distcheck
 
686
DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS"
 
687
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
 
688
 
 
689
AM_CONDITIONAL([HAVE_GNOME_DOC_UTILS],[test "$gdu_cv_have_gdu" = "yes"])
 
690
])
 
691
 
 
692
# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
 
693
#
 
694
AC_DEFUN([GNOME_DOC_INIT],
 
695
[AC_REQUIRE([AC_PROG_LN_S])dnl
 
696
 
 
697
ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1])
 
698
 
 
699
AC_MSG_CHECKING([gnome-doc-utils >= $gdu_cv_version_required])
 
700
PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required],
 
701
        [gdu_cv_have_gdu=yes],[gdu_cv_have_gdu=no])
 
702
 
 
703
if test "$gdu_cv_have_gdu" = "yes"; then
 
704
        AC_MSG_RESULT([yes])
 
705
        ifelse([$2],,[:],[$2])
 
706
else
 
707
        AC_MSG_RESULT([no])
 
708
        ifelse([$3],,[AC_MSG_ERROR([gnome-doc-utils >= $gdu_cv_version_required not found])],[$3])
 
709
fi
 
710
 
 
711
GNOME_DOC_DEFINES
 
712
])
 
713
 
 
714
dnl GLIB_GSETTINGS
 
715
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
 
716
dnl the schema should be compiled
 
717
dnl
 
718
 
 
719
AC_DEFUN([GLIB_GSETTINGS],
 
720
[
 
721
  m4_pattern_allow([AM_V_GEN])
 
722
  AC_ARG_ENABLE(schemas-compile,
 
723
                AS_HELP_STRING([--disable-schemas-compile],
 
724
                               [Disable regeneration of gschemas.compiled on install]),
 
725
                [case ${enableval} in
 
726
                  yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE=""  ;;
 
727
                  no)  GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
 
728
                  *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;;
 
729
                 esac])
 
730
  AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE])
 
731
  PKG_PROG_PKG_CONFIG([0.16])
 
732
  AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas])
 
733
  if test x$cross_compiling != xyes; then
 
734
    GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
 
735
  else
 
736
    AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas)
 
737
  fi
 
738
  AC_SUBST(GLIB_COMPILE_SCHEMAS)
 
739
  if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
 
740
    ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2])
 
741
  else
 
742
    ifelse([$1],,[:],[$1])
 
743
  fi
 
744
 
 
745
  GSETTINGS_RULES='
 
746
.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
 
747
 
 
748
mostlyclean-am: clean-gsettings-schemas
 
749
 
 
750
gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
 
751
 
 
752
%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
 
753
        $(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 [$]@
 
754
 
 
755
all-am: $(gsettings_SCHEMAS:.xml=.valid)
 
756
uninstall-am: uninstall-gsettings-schemas
 
757
install-data-am: install-gsettings-schemas
 
758
 
 
759
.SECONDARY: $(gsettings_SCHEMAS)
 
760
 
 
761
install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
 
762
        @$(NORMAL_INSTALL)
 
763
        if test -n "$^"; then \
 
764
                test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
 
765
                $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
 
766
                test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
 
767
        fi
 
768
 
 
769
uninstall-gsettings-schemas:
 
770
        @$(NORMAL_UNINSTALL)
 
771
        @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
 
772
        files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
 
773
        test -n "$$files" || exit 0; \
 
774
        echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
 
775
        cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
 
776
        test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
 
777
 
 
778
clean-gsettings-schemas:
 
779
        rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
 
780
 
 
781
ifdef gsettings_ENUM_NAMESPACE
 
782
$(gsettings__enum_file): $(gsettings_ENUM_FILES)
 
783
        $(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 [$]@
 
784
endif
805
785
'
806
 
case `pwd` in
807
 
  *[[\\\"\#\$\&\'\`$am_lf]]*)
808
 
    AC_MSG_ERROR([unsafe absolute working directory name]);;
809
 
esac
810
 
case $srcdir in
811
 
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
812
 
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
813
 
esac
814
 
 
815
 
# Do `set' in a subshell so we don't clobber the current shell's
816
 
# arguments.  Must try -L first in case configure is actually a
817
 
# symlink; some systems play weird games with the mod time of symlinks
818
 
# (eg FreeBSD returns the mod time of the symlink's containing
819
 
# directory).
820
 
if (
821
 
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
822
 
   if test "$[*]" = "X"; then
823
 
      # -L didn't work.
824
 
      set X `ls -t "$srcdir/configure" conftest.file`
825
 
   fi
826
 
   rm -f conftest.file
827
 
   if test "$[*]" != "X $srcdir/configure conftest.file" \
828
 
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
829
 
 
830
 
      # If neither matched, then we have a broken ls.  This can happen
831
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
832
 
      # broken ls alias from the environment.  This has actually
833
 
      # happened.  Such a system could not be considered "sane".
834
 
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
835
 
alias in your environment])
836
 
   fi
837
 
 
838
 
   test "$[2]" = conftest.file
839
 
   )
840
 
then
841
 
   # Ok.
842
 
   :
843
 
else
844
 
   AC_MSG_ERROR([newly created file is older than distributed files!
845
 
Check your system clock])
846
 
fi
847
 
AC_MSG_RESULT(yes)])
848
 
 
849
 
# Copyright (C) 2009  Free Software Foundation, Inc.
850
 
#
851
 
# This file is free software; the Free Software Foundation
852
 
# gives unlimited permission to copy and/or distribute it,
853
 
# with or without modifications, as long as this notice is preserved.
 
786
  _GSETTINGS_SUBST(GSETTINGS_RULES)
 
787
])
 
788
 
 
789
dnl _GSETTINGS_SUBST(VARIABLE)
 
790
dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
 
791
AC_DEFUN([_GSETTINGS_SUBST],
 
792
[
 
793
AC_SUBST([$1])
 
794
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
 
795
]
 
796
)
 
797
 
 
798
dnl -*- mode: autoconf -*-
854
799
 
855
800
# serial 1
856
801
 
857
 
# AM_SILENT_RULES([DEFAULT])
858
 
# --------------------------
859
 
# Enable less verbose build rules; with the default set to DEFAULT
860
 
# (`yes' being less verbose, `no' or empty being verbose).
861
 
AC_DEFUN([AM_SILENT_RULES],
862
 
[AC_ARG_ENABLE([silent-rules],
863
 
[  --enable-silent-rules          less verbose build output (undo: `make V=1')
864
 
  --disable-silent-rules         verbose build output (undo: `make V=0')])
865
 
case $enable_silent_rules in
866
 
yes) AM_DEFAULT_VERBOSITY=0;;
867
 
no)  AM_DEFAULT_VERBOSITY=1;;
868
 
*)   AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
 
802
dnl Usage:
 
803
dnl   GTK_DOC_CHECK([minimum-gtk-doc-version])
 
804
AC_DEFUN([GTK_DOC_CHECK],
 
805
[
 
806
  AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
807
  AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
 
808
  AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
 
809
 
 
810
  dnl check for tools we added during development
 
811
  AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check])
 
812
  AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true])
 
813
  AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf])
 
814
 
 
815
  dnl for overriding the documentation installation directory
 
816
  AC_ARG_WITH([html-dir],
 
817
    AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
 
818
    [with_html_dir='${datadir}/gtk-doc/html'])
 
819
  HTML_DIR="$with_html_dir"
 
820
  AC_SUBST([HTML_DIR])
 
821
 
 
822
  dnl enable/disable documentation building
 
823
  AC_ARG_ENABLE([gtk-doc],
 
824
    AS_HELP_STRING([--enable-gtk-doc],
 
825
                   [use gtk-doc to build documentation [[default=no]]]),,
 
826
    [enable_gtk_doc=no])
 
827
 
 
828
  if test x$enable_gtk_doc = xyes; then
 
829
    ifelse([$1],[],
 
830
      [PKG_CHECK_EXISTS([gtk-doc],,
 
831
                        AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
 
832
      [PKG_CHECK_EXISTS([gtk-doc >= $1],,
 
833
                        AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))])
 
834
    dnl don't check for glib if we build glib
 
835
    if test "x$PACKAGE_NAME" != "xglib"; then
 
836
      dnl don't fail if someone does not have glib
 
837
      PKG_CHECK_MODULES(GTKDOC_DEPS, glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0,,)
 
838
    fi
 
839
  fi
 
840
 
 
841
  AC_MSG_CHECKING([whether to build gtk-doc documentation])
 
842
  AC_MSG_RESULT($enable_gtk_doc)
 
843
 
 
844
  dnl enable/disable output formats
 
845
  AC_ARG_ENABLE([gtk-doc-html],
 
846
    AS_HELP_STRING([--enable-gtk-doc-html],
 
847
                   [build documentation in html format [[default=yes]]]),,
 
848
    [enable_gtk_doc_html=yes])
 
849
    AC_ARG_ENABLE([gtk-doc-pdf],
 
850
      AS_HELP_STRING([--enable-gtk-doc-pdf],
 
851
                     [build documentation in pdf format [[default=no]]]),,
 
852
      [enable_gtk_doc_pdf=no])
 
853
 
 
854
  if test -z "$GTKDOC_MKPDF"; then
 
855
    enable_gtk_doc_pdf=no
 
856
  fi
 
857
 
 
858
 
 
859
  AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
 
860
  AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes])
 
861
  AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes])
 
862
  AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
 
863
  AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"])
 
864
])
 
865
 
 
866
 
 
867
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
 
868
# serial 40 IT_PROG_INTLTOOL
 
869
AC_DEFUN([IT_PROG_INTLTOOL], [
 
870
AC_PREREQ([2.50])dnl
 
871
AC_REQUIRE([AM_NLS])dnl
 
872
 
 
873
case "$am__api_version" in
 
874
    1.[01234])
 
875
        AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
 
876
    ;;
 
877
    *)
 
878
    ;;
869
879
esac
870
 
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
871
 
AM_BACKSLASH='\'
872
 
AC_SUBST([AM_BACKSLASH])dnl
873
 
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
 
880
 
 
881
if test -n "$1"; then
 
882
    AC_MSG_CHECKING([for intltool >= $1])
 
883
 
 
884
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
885
    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
 
886
    [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
887
    ]
 
888
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
 
889
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
 
890
        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
 
891
fi
 
892
 
 
893
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
 
894
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
 
895
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
 
896
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
 
897
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
 
898
fi
 
899
 
 
900
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
901
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
902
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
903
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
904
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
 
905
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
906
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
907
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
908
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
909
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
910
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
911
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u --no-translations $< [$]@' 
 
912
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
913
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
914
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
915
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
916
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
917
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
 
918
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
 
919
 
 
920
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
 
921
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
 
922
_IT_SUBST(INTLTOOL_KEYS_RULE)
 
923
_IT_SUBST(INTLTOOL_PROP_RULE)
 
924
_IT_SUBST(INTLTOOL_OAF_RULE)
 
925
_IT_SUBST(INTLTOOL_PONG_RULE)
 
926
_IT_SUBST(INTLTOOL_SERVER_RULE)
 
927
_IT_SUBST(INTLTOOL_SHEET_RULE)
 
928
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
 
929
_IT_SUBST(INTLTOOL_UI_RULE)
 
930
_IT_SUBST(INTLTOOL_XAM_RULE)
 
931
_IT_SUBST(INTLTOOL_KBD_RULE)
 
932
_IT_SUBST(INTLTOOL_XML_RULE)
 
933
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
 
934
_IT_SUBST(INTLTOOL_CAVES_RULE)
 
935
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
 
936
_IT_SUBST(INTLTOOL_THEME_RULE)
 
937
_IT_SUBST(INTLTOOL_SERVICE_RULE)
 
938
_IT_SUBST(INTLTOOL_POLICY_RULE)
 
939
 
 
940
# Check the gettext tools to make sure they are GNU
 
941
AC_PATH_PROG(XGETTEXT, xgettext)
 
942
AC_PATH_PROG(MSGMERGE, msgmerge)
 
943
AC_PATH_PROG(MSGFMT, msgfmt)
 
944
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
 
945
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
 
946
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
 
947
fi
 
948
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
 
949
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
 
950
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
 
951
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
 
952
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
 
953
fi
 
954
 
 
955
AC_PATH_PROG(INTLTOOL_PERL, perl)
 
956
if test -z "$INTLTOOL_PERL"; then
 
957
   AC_MSG_ERROR([perl not found])
 
958
fi
 
959
AC_MSG_CHECKING([for perl >= 5.8.1])
 
960
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
 
961
if test $? -ne 0; then
 
962
   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
 
963
else
 
964
   IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
 
965
   AC_MSG_RESULT([$IT_PERL_VERSION])
 
966
fi
 
967
if test "x$2" != "xno-xml"; then
 
968
   AC_MSG_CHECKING([for XML::Parser])
 
969
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
 
970
       AC_MSG_RESULT([ok])
 
971
   else
 
972
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
 
973
   fi
 
974
fi
 
975
 
 
976
# Substitute ALL_LINGUAS so we can use it in po/Makefile
 
977
AC_SUBST(ALL_LINGUAS)
 
978
 
 
979
# Set DATADIRNAME correctly if it is not set yet
 
980
# (copied from glib-gettext.m4)
 
981
if test -z "$DATADIRNAME"; then
 
982
  AC_LINK_IFELSE(
 
983
    [AC_LANG_PROGRAM([[]],
 
984
                     [[extern int _nl_msg_cat_cntr;
 
985
                       return _nl_msg_cat_cntr]])],
 
986
    [DATADIRNAME=share],
 
987
    [case $host in
 
988
    *-*-solaris*)
 
989
    dnl On Solaris, if bind_textdomain_codeset is in libc,
 
990
    dnl GNU format message catalog is always supported,
 
991
    dnl since both are added to the libc all together.
 
992
    dnl Hence, we'd like to go with DATADIRNAME=share
 
993
    dnl in this case.
 
994
    AC_CHECK_FUNC(bind_textdomain_codeset,
 
995
      [DATADIRNAME=share], [DATADIRNAME=lib])
 
996
    ;;
 
997
    *)
 
998
    [DATADIRNAME=lib]
 
999
    ;;
 
1000
    esac])
 
1001
fi
 
1002
AC_SUBST(DATADIRNAME)
 
1003
 
 
1004
IT_PO_SUBDIR([po])
 
1005
 
874
1006
])
875
1007
 
876
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
877
 
#
878
 
# This file is free software; the Free Software Foundation
879
 
# gives unlimited permission to copy and/or distribute it,
880
 
# with or without modifications, as long as this notice is preserved.
881
1008
 
882
 
# AM_PROG_INSTALL_STRIP
 
1009
# IT_PO_SUBDIR(DIRNAME)
883
1010
# ---------------------
884
 
# One issue with vendor `install' (even GNU) is that you can't
885
 
# specify the program used to strip binaries.  This is especially
886
 
# annoying in cross-compiling environments, where the build's strip
887
 
# is unlikely to handle the host's binaries.
888
 
# Fortunately install-sh will honor a STRIPPROG variable, so we
889
 
# always use install-sh in `make install-strip', and initialize
890
 
# STRIPPROG with the value of the STRIP variable (set by the user).
891
 
AC_DEFUN([AM_PROG_INSTALL_STRIP],
892
 
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
893
 
# Installed binaries are usually stripped using `strip' when the user
894
 
# run `make install-strip'.  However `strip' might not be the right
895
 
# tool to use in cross-compilation environments, therefore Automake
896
 
# will honor the `STRIP' environment variable to overrule this program.
897
 
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
898
 
if test "$cross_compiling" != no; then
899
 
  AC_CHECK_TOOL([STRIP], [strip], :)
900
 
fi
901
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
902
 
AC_SUBST([INSTALL_STRIP_PROGRAM])])
903
 
 
904
 
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
905
 
#
906
 
# This file is free software; the Free Software Foundation
907
 
# gives unlimited permission to copy and/or distribute it,
908
 
# with or without modifications, as long as this notice is preserved.
909
 
 
910
 
# serial 2
911
 
 
912
 
# _AM_SUBST_NOTMAKE(VARIABLE)
913
 
# ---------------------------
914
 
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
915
 
# This macro is traced by Automake.
916
 
AC_DEFUN([_AM_SUBST_NOTMAKE])
917
 
 
918
 
# AM_SUBST_NOTMAKE(VARIABLE)
919
 
# ---------------------------
920
 
# Public sister of _AM_SUBST_NOTMAKE.
921
 
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
922
 
 
923
 
# Check how to create a tarball.                            -*- Autoconf -*-
924
 
 
925
 
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
926
 
#
927
 
# This file is free software; the Free Software Foundation
928
 
# gives unlimited permission to copy and/or distribute it,
929
 
# with or without modifications, as long as this notice is preserved.
930
 
 
931
 
# serial 2
932
 
 
933
 
# _AM_PROG_TAR(FORMAT)
934
 
# --------------------
935
 
# Check how to create a tarball in format FORMAT.
936
 
# FORMAT should be one of `v7', `ustar', or `pax'.
937
 
#
938
 
# Substitute a variable $(am__tar) that is a command
939
 
# writing to stdout a FORMAT-tarball containing the directory
940
 
# $tardir.
941
 
#     tardir=directory && $(am__tar) > result.tar
942
 
#
943
 
# Substitute a variable $(am__untar) that extract such
944
 
# a tarball read from stdin.
945
 
#     $(am__untar) < result.tar
946
 
AC_DEFUN([_AM_PROG_TAR],
947
 
[# Always define AMTAR for backward compatibility.
948
 
AM_MISSING_PROG([AMTAR], [tar])
949
 
m4_if([$1], [v7],
950
 
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
951
 
     [m4_case([$1], [ustar],, [pax],,
952
 
              [m4_fatal([Unknown tar format])])
953
 
AC_MSG_CHECKING([how to create a $1 tar archive])
954
 
# Loop over all known methods to create a tar archive until one works.
955
 
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
956
 
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
957
 
# Do not fold the above two line into one, because Tru64 sh and
958
 
# Solaris sh will not grok spaces in the rhs of `-'.
959
 
for _am_tool in $_am_tools
960
 
do
961
 
  case $_am_tool in
962
 
  gnutar)
963
 
    for _am_tar in tar gnutar gtar;
964
 
    do
965
 
      AM_RUN_LOG([$_am_tar --version]) && break
966
 
    done
967
 
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
968
 
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
969
 
    am__untar="$_am_tar -xf -"
970
 
    ;;
971
 
  plaintar)
972
 
    # Must skip GNU tar: if it does not support --format= it doesn't create
973
 
    # ustar tarball either.
974
 
    (tar --version) >/dev/null 2>&1 && continue
975
 
    am__tar='tar chf - "$$tardir"'
976
 
    am__tar_='tar chf - "$tardir"'
977
 
    am__untar='tar xf -'
978
 
    ;;
979
 
  pax)
980
 
    am__tar='pax -L -x $1 -w "$$tardir"'
981
 
    am__tar_='pax -L -x $1 -w "$tardir"'
982
 
    am__untar='pax -r'
983
 
    ;;
984
 
  cpio)
985
 
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
986
 
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
987
 
    am__untar='cpio -i -H $1 -d'
988
 
    ;;
989
 
  none)
990
 
    am__tar=false
991
 
    am__tar_=false
992
 
    am__untar=false
993
 
    ;;
994
 
  esac
995
 
 
996
 
  # If the value was cached, stop now.  We just wanted to have am__tar
997
 
  # and am__untar set.
998
 
  test -n "${am_cv_prog_tar_$1}" && break
999
 
 
1000
 
  # tar/untar a dummy directory, and stop if the command works
1001
 
  rm -rf conftest.dir
1002
 
  mkdir conftest.dir
1003
 
  echo GrepMe > conftest.dir/file
1004
 
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1005
 
  rm -rf conftest.dir
1006
 
  if test -s conftest.tar; then
1007
 
    AM_RUN_LOG([$am__untar <conftest.tar])
1008
 
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1009
 
  fi
1010
 
done
1011
 
rm -rf conftest.dir
1012
 
 
1013
 
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1014
 
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1015
 
AC_SUBST([am__tar])
1016
 
AC_SUBST([am__untar])
1017
 
]) # _AM_PROG_TAR
 
1011
# All po subdirs have to be declared with this macro; the subdir "po" is
 
1012
# declared by IT_PROG_INTLTOOL.
 
1013
#
 
1014
AC_DEFUN([IT_PO_SUBDIR],
 
1015
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
 
1016
dnl
 
1017
dnl The following CONFIG_COMMANDS should be executed at the very end
 
1018
dnl of config.status.
 
1019
AC_CONFIG_COMMANDS_PRE([
 
1020
  AC_CONFIG_COMMANDS([$1/stamp-it], [
 
1021
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
 
1022
       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
 
1023
    fi
 
1024
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
 
1025
    >"$1/stamp-it.tmp"
 
1026
    [sed '/^#/d
 
1027
         s/^[[].*] *//
 
1028
         /^[    ]*$/d
 
1029
        '"s|^|  $ac_top_srcdir/|" \
 
1030
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
 
1031
    ]
 
1032
    [sed '/^POTFILES =/,/[^\\]$/ {
 
1033
                /^POTFILES =/!d
 
1034
                r $1/POTFILES
 
1035
          }
 
1036
         ' "$1/Makefile.in" >"$1/Makefile"]
 
1037
    rm -f "$1/Makefile.tmp"
 
1038
    mv "$1/stamp-it.tmp" "$1/stamp-it"
 
1039
  ])
 
1040
])dnl
 
1041
])
 
1042
 
 
1043
# _IT_SUBST(VARIABLE)
 
1044
# -------------------
 
1045
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
 
1046
#
 
1047
AC_DEFUN([_IT_SUBST],
 
1048
[
 
1049
AC_SUBST([$1])
 
1050
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
 
1051
]
 
1052
)
 
1053
 
 
1054
# deprecated macros
 
1055
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
 
1056
# A hint is needed for aclocal from Automake <= 1.9.4:
 
1057
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
 
1058
 
1018
1059
 
1019
1060
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1020
1061
#
9649
9690
fi[]dnl
9650
9691
])# PKG_CHECK_MODULES
9651
9692
 
9652
 
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
9653
 
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
9654
 
#
9655
 
# This file is free software, distributed under the terms of the GNU
9656
 
# General Public License.  As a special exception to the GNU General
9657
 
# Public License, this file may be distributed as part of a program
9658
 
# that contains a configuration script generated by Autoconf, under
9659
 
# the same distribution terms as the rest of that program.
9660
 
#
9661
 
# This file can be copied and used freely without restrictions.  It can
9662
 
# be used in projects which are not available under the GNU Public License
9663
 
# but which still want to provide support for the GNU gettext functionality.
9664
 
#
9665
 
# Macro to add for using GNU gettext.
9666
 
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
9667
 
#
9668
 
# Modified to never use included libintl. 
9669
 
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
9670
 
#
9671
 
# Major rework to remove unused code
9672
 
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
9673
 
#
9674
 
# Added better handling of ALL_LINGUAS from GNU gettext version 
9675
 
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
9676
 
#
9677
 
# Modified to require ngettext
9678
 
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
9679
 
#
9680
 
# We need this here as well, since someone might use autoconf-2.5x
9681
 
# to configure GLib then an older version to configure a package
9682
 
# using AM_GLIB_GNU_GETTEXT
9683
 
AC_PREREQ(2.53)
9684
 
 
9685
 
dnl
9686
 
dnl We go to great lengths to make sure that aclocal won't 
9687
 
dnl try to pull in the installed version of these macros
9688
 
dnl when running aclocal in the glib directory.
9689
 
dnl
9690
 
m4_copy([AC_DEFUN],[glib_DEFUN])
9691
 
m4_copy([AC_REQUIRE],[glib_REQUIRE])
9692
 
dnl
9693
 
dnl At the end, if we're not within glib, we'll define the public
9694
 
dnl definitions in terms of our private definitions.
9695
 
dnl
9696
 
 
9697
 
# GLIB_LC_MESSAGES
9698
 
#--------------------
9699
 
glib_DEFUN([GLIB_LC_MESSAGES],
9700
 
  [AC_CHECK_HEADERS([locale.h])
9701
 
    if test $ac_cv_header_locale_h = yes; then
9702
 
    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
9703
 
      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
9704
 
       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
9705
 
    if test $am_cv_val_LC_MESSAGES = yes; then
9706
 
      AC_DEFINE(HAVE_LC_MESSAGES, 1,
9707
 
        [Define if your <locale.h> file defines LC_MESSAGES.])
9708
 
    fi
9709
 
  fi])
9710
 
 
9711
 
# GLIB_PATH_PROG_WITH_TEST
9712
 
#----------------------------
9713
 
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
9714
 
dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
9715
 
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
9716
 
[# Extract the first word of "$2", so it can be a program name with args.
9717
 
set dummy $2; ac_word=[$]2
9718
 
AC_MSG_CHECKING([for $ac_word])
9719
 
AC_CACHE_VAL(ac_cv_path_$1,
9720
 
[case "[$]$1" in
9721
 
  /*)
9722
 
  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
9723
 
  ;;
9724
 
  *)
9725
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9726
 
  for ac_dir in ifelse([$5], , $PATH, [$5]); do
9727
 
    test -z "$ac_dir" && ac_dir=.
9728
 
    if test -f $ac_dir/$ac_word; then
9729
 
      if [$3]; then
9730
 
        ac_cv_path_$1="$ac_dir/$ac_word"
 
9693
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 
9694
#
 
9695
# This file is free software; the Free Software Foundation
 
9696
# gives unlimited permission to copy and/or distribute it,
 
9697
# with or without modifications, as long as this notice is preserved.
 
9698
 
 
9699
# AM_AUTOMAKE_VERSION(VERSION)
 
9700
# ----------------------------
 
9701
# Automake X.Y traces this macro to ensure aclocal.m4 has been
 
9702
# generated from the m4 files accompanying Automake X.Y.
 
9703
# (This private macro should not be called outside this file.)
 
9704
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
9705
[am__api_version='1.11'
 
9706
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
9707
dnl require some minimum version.  Point them to the right macro.
 
9708
m4_if([$1], [1.11.1], [],
 
9709
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
9710
])
 
9711
 
 
9712
# _AM_AUTOCONF_VERSION(VERSION)
 
9713
# -----------------------------
 
9714
# aclocal traces this macro to find the Autoconf version.
 
9715
# This is a private macro too.  Using m4_define simplifies
 
9716
# the logic in aclocal, which can simply ignore this definition.
 
9717
m4_define([_AM_AUTOCONF_VERSION], [])
 
9718
 
 
9719
# AM_SET_CURRENT_AUTOMAKE_VERSION
 
9720
# -------------------------------
 
9721
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
 
9722
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
 
9723
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
 
9724
[AM_AUTOMAKE_VERSION([1.11.1])dnl
 
9725
m4_ifndef([AC_AUTOCONF_VERSION],
 
9726
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
9727
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
 
9728
 
 
9729
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 
9730
 
 
9731
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
9732
#
 
9733
# This file is free software; the Free Software Foundation
 
9734
# gives unlimited permission to copy and/or distribute it,
 
9735
# with or without modifications, as long as this notice is preserved.
 
9736
 
 
9737
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
 
9738
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
 
9739
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
 
9740
#
 
9741
# Of course, Automake must honor this variable whenever it calls a
 
9742
# tool from the auxiliary directory.  The problem is that $srcdir (and
 
9743
# therefore $ac_aux_dir as well) can be either absolute or relative,
 
9744
# depending on how configure is run.  This is pretty annoying, since
 
9745
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
 
9746
# source directory, any form will work fine, but in subdirectories a
 
9747
# relative path needs to be adjusted first.
 
9748
#
 
9749
# $ac_aux_dir/missing
 
9750
#    fails when called from a subdirectory if $ac_aux_dir is relative
 
9751
# $top_srcdir/$ac_aux_dir/missing
 
9752
#    fails if $ac_aux_dir is absolute,
 
9753
#    fails when called from a subdirectory in a VPATH build with
 
9754
#          a relative $ac_aux_dir
 
9755
#
 
9756
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
 
9757
# are both prefixed by $srcdir.  In an in-source build this is usually
 
9758
# harmless because $srcdir is `.', but things will broke when you
 
9759
# start a VPATH build or use an absolute $srcdir.
 
9760
#
 
9761
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
 
9762
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
 
9763
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
 
9764
# and then we would define $MISSING as
 
9765
#   MISSING="\${SHELL} $am_aux_dir/missing"
 
9766
# This will work as long as MISSING is not called from configure, because
 
9767
# unfortunately $(top_srcdir) has no meaning in configure.
 
9768
# However there are other variables, like CC, which are often used in
 
9769
# configure, and could therefore not use this "fixed" $ac_aux_dir.
 
9770
#
 
9771
# Another solution, used here, is to always expand $ac_aux_dir to an
 
9772
# absolute PATH.  The drawback is that using absolute paths prevent a
 
9773
# configured tree to be moved without reconfiguration.
 
9774
 
 
9775
AC_DEFUN([AM_AUX_DIR_EXPAND],
 
9776
[dnl Rely on autoconf to set up CDPATH properly.
 
9777
AC_PREREQ([2.50])dnl
 
9778
# expand $ac_aux_dir to an absolute path
 
9779
am_aux_dir=`cd $ac_aux_dir && pwd`
 
9780
])
 
9781
 
 
9782
# AM_CONDITIONAL                                            -*- Autoconf -*-
 
9783
 
 
9784
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
 
9785
# Free Software Foundation, Inc.
 
9786
#
 
9787
# This file is free software; the Free Software Foundation
 
9788
# gives unlimited permission to copy and/or distribute it,
 
9789
# with or without modifications, as long as this notice is preserved.
 
9790
 
 
9791
# serial 9
 
9792
 
 
9793
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
 
9794
# -------------------------------------
 
9795
# Define a conditional.
 
9796
AC_DEFUN([AM_CONDITIONAL],
 
9797
[AC_PREREQ(2.52)dnl
 
9798
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
9799
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
9800
AC_SUBST([$1_TRUE])dnl
 
9801
AC_SUBST([$1_FALSE])dnl
 
9802
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
9803
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
9804
m4_define([_AM_COND_VALUE_$1], [$2])dnl
 
9805
if $2; then
 
9806
  $1_TRUE=
 
9807
  $1_FALSE='#'
 
9808
else
 
9809
  $1_TRUE='#'
 
9810
  $1_FALSE=
 
9811
fi
 
9812
AC_CONFIG_COMMANDS_PRE(
 
9813
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
 
9814
  AC_MSG_ERROR([[conditional "$1" was never defined.
 
9815
Usually this means the macro was only invoked conditionally.]])
 
9816
fi])])
 
9817
 
 
9818
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
 
9819
# Free Software Foundation, Inc.
 
9820
#
 
9821
# This file is free software; the Free Software Foundation
 
9822
# gives unlimited permission to copy and/or distribute it,
 
9823
# with or without modifications, as long as this notice is preserved.
 
9824
 
 
9825
# serial 10
 
9826
 
 
9827
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
 
9828
# written in clear, in which case automake, when reading aclocal.m4,
 
9829
# will think it sees a *use*, and therefore will trigger all it's
 
9830
# C support machinery.  Also note that it means that autoscan, seeing
 
9831
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
 
9832
 
 
9833
 
 
9834
# _AM_DEPENDENCIES(NAME)
 
9835
# ----------------------
 
9836
# See how the compiler implements dependency checking.
 
9837
# NAME is "CC", "CXX", "GCJ", or "OBJC".
 
9838
# We try a few techniques and use that to set a single cache variable.
 
9839
#
 
9840
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
 
9841
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
 
9842
# dependency, and given that the user is not expected to run this macro,
 
9843
# just rely on AC_PROG_CC.
 
9844
AC_DEFUN([_AM_DEPENDENCIES],
 
9845
[AC_REQUIRE([AM_SET_DEPDIR])dnl
 
9846
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
 
9847
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
 
9848
AC_REQUIRE([AM_DEP_TRACK])dnl
 
9849
 
 
9850
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
 
9851
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
 
9852
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
9853
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
 
9854
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
 
9855
                   [depcc="$$1"   am_compiler_list=])
 
9856
 
 
9857
AC_CACHE_CHECK([dependency style of $depcc],
 
9858
               [am_cv_$1_dependencies_compiler_type],
 
9859
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
9860
  # We make a subdir and do the tests there.  Otherwise we can end up
 
9861
  # making bogus files that we don't know about and never remove.  For
 
9862
  # instance it was reported that on HP-UX the gcc test will end up
 
9863
  # making a dummy file named `D' -- because `-MD' means `put the output
 
9864
  # in D'.
 
9865
  mkdir conftest.dir
 
9866
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
9867
  # using a relative directory.
 
9868
  cp "$am_depcomp" conftest.dir
 
9869
  cd conftest.dir
 
9870
  # We will build objects and dependencies in a subdirectory because
 
9871
  # it helps to detect inapplicable dependency modes.  For instance
 
9872
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
9873
  # side effect of compilation, but ICC will put the dependencies in
 
9874
  # the current directory while Tru64 will put them in the object
 
9875
  # directory.
 
9876
  mkdir sub
 
9877
 
 
9878
  am_cv_$1_dependencies_compiler_type=none
 
9879
  if test "$am_compiler_list" = ""; then
 
9880
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
 
9881
  fi
 
9882
  am__universal=false
 
9883
  m4_case([$1], [CC],
 
9884
    [case " $depcc " in #(
 
9885
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
9886
     esac],
 
9887
    [CXX],
 
9888
    [case " $depcc " in #(
 
9889
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
9890
     esac])
 
9891
 
 
9892
  for depmode in $am_compiler_list; do
 
9893
    # Setup a source with many dependencies, because some compilers
 
9894
    # like to wrap large dependency lists on column 80 (with \), and
 
9895
    # we should not choose a depcomp mode which is confused by this.
 
9896
    #
 
9897
    # We need to recreate these files for each test, as the compiler may
 
9898
    # overwrite some of them when testing with obscure command lines.
 
9899
    # This happens at least with the AIX C compiler.
 
9900
    : > sub/conftest.c
 
9901
    for i in 1 2 3 4 5 6; do
 
9902
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
9903
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
9904
      # Solaris 8's {/usr,}/bin/sh.
 
9905
      touch sub/conftst$i.h
 
9906
    done
 
9907
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
9908
 
 
9909
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
9910
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
9911
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
9912
    # versions had trouble with output in subdirs
 
9913
    am__obj=sub/conftest.${OBJEXT-o}
 
9914
    am__minus_obj="-o $am__obj"
 
9915
    case $depmode in
 
9916
    gcc)
 
9917
      # This depmode causes a compiler race in universal mode.
 
9918
      test "$am__universal" = false || continue
 
9919
      ;;
 
9920
    nosideeffect)
 
9921
      # after this tag, mechanisms are not by side-effect, so they'll
 
9922
      # only be used when explicitly requested
 
9923
      if test "x$enable_dependency_tracking" = xyes; then
 
9924
        continue
 
9925
      else
9731
9926
        break
9732
9927
      fi
9733
 
    fi
9734
 
  done
9735
 
  IFS="$ac_save_ifs"
9736
 
dnl If no 4th arg is given, leave the cache variable unset,
9737
 
dnl so AC_PATH_PROGS will keep looking.
9738
 
ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
9739
 
])dnl
9740
 
  ;;
9741
 
esac])dnl
9742
 
$1="$ac_cv_path_$1"
9743
 
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
9744
 
  AC_MSG_RESULT([$]$1)
9745
 
else
9746
 
  AC_MSG_RESULT(no)
9747
 
fi
9748
 
AC_SUBST($1)dnl
9749
 
])
9750
 
 
9751
 
# GLIB_WITH_NLS
9752
 
#-----------------
9753
 
glib_DEFUN([GLIB_WITH_NLS],
9754
 
  dnl NLS is obligatory
9755
 
  [USE_NLS=yes
9756
 
    AC_SUBST(USE_NLS)
9757
 
 
9758
 
    gt_cv_have_gettext=no
9759
 
 
9760
 
    CATOBJEXT=NONE
9761
 
    XGETTEXT=:
9762
 
    INTLLIBS=
9763
 
 
9764
 
    AC_CHECK_HEADER(libintl.h,
9765
 
     [gt_cv_func_dgettext_libintl="no"
9766
 
      libintl_extra_libs=""
9767
 
 
9768
 
      #
9769
 
      # First check in libc
9770
 
      #
9771
 
      AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
9772
 
        [AC_TRY_LINK([
9773
 
#include <libintl.h>
9774
 
],
9775
 
         [return !ngettext ("","", 1)],
9776
 
          gt_cv_func_ngettext_libc=yes,
9777
 
          gt_cv_func_ngettext_libc=no)
9778
 
        ])
9779
 
  
9780
 
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
9781
 
              AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
9782
 
                [AC_TRY_LINK([
9783
 
#include <libintl.h>
9784
 
],
9785
 
                  [return !dgettext ("","")],
9786
 
                  gt_cv_func_dgettext_libc=yes,
9787
 
                  gt_cv_func_dgettext_libc=no)
9788
 
                ])
9789
 
      fi
9790
 
  
9791
 
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
9792
 
        AC_CHECK_FUNCS(bind_textdomain_codeset)
9793
 
      fi
9794
 
 
9795
 
      #
9796
 
      # If we don't have everything we want, check in libintl
9797
 
      #
9798
 
      if test "$gt_cv_func_dgettext_libc" != "yes" \
9799
 
         || test "$gt_cv_func_ngettext_libc" != "yes" \
9800
 
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
9801
 
        
9802
 
        AC_CHECK_LIB(intl, bindtextdomain,
9803
 
            [AC_CHECK_LIB(intl, ngettext,
9804
 
                    [AC_CHECK_LIB(intl, dgettext,
9805
 
                                  gt_cv_func_dgettext_libintl=yes)])])
9806
 
 
9807
 
        if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
9808
 
          AC_MSG_CHECKING([if -liconv is needed to use gettext])
9809
 
          AC_MSG_RESULT([])
9810
 
          AC_CHECK_LIB(intl, ngettext,
9811
 
                [AC_CHECK_LIB(intl, dcgettext,
9812
 
                       [gt_cv_func_dgettext_libintl=yes
9813
 
                        libintl_extra_libs=-liconv],
9814
 
                        :,-liconv)],
9815
 
                :,-liconv)
9816
 
        fi
9817
 
 
9818
 
        #
9819
 
        # If we found libintl, then check in it for bind_textdomain_codeset();
9820
 
        # we'll prefer libc if neither have bind_textdomain_codeset(),
9821
 
        # and both have dgettext and ngettext
9822
 
        #
9823
 
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
9824
 
          glib_save_LIBS="$LIBS"
9825
 
          LIBS="$LIBS -lintl $libintl_extra_libs"
9826
 
          unset ac_cv_func_bind_textdomain_codeset
9827
 
          AC_CHECK_FUNCS(bind_textdomain_codeset)
9828
 
          LIBS="$glib_save_LIBS"
9829
 
 
9830
 
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
9831
 
            gt_cv_func_dgettext_libc=no
9832
 
          else
9833
 
            if test "$gt_cv_func_dgettext_libc" = "yes" \
9834
 
                && test "$gt_cv_func_ngettext_libc" = "yes"; then
9835
 
              gt_cv_func_dgettext_libintl=no
9836
 
            fi
9837
 
          fi
9838
 
        fi
9839
 
      fi
9840
 
 
9841
 
      if test "$gt_cv_func_dgettext_libc" = "yes" \
9842
 
        || test "$gt_cv_func_dgettext_libintl" = "yes"; then
9843
 
        gt_cv_have_gettext=yes
9844
 
      fi
9845
 
  
9846
 
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
9847
 
        INTLLIBS="-lintl $libintl_extra_libs"
9848
 
      fi
9849
 
  
9850
 
      if test "$gt_cv_have_gettext" = "yes"; then
9851
 
        AC_DEFINE(HAVE_GETTEXT,1,
9852
 
          [Define if the GNU gettext() function is already present or preinstalled.])
9853
 
        GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
9854
 
          [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
9855
 
        if test "$MSGFMT" != "no"; then
9856
 
          glib_save_LIBS="$LIBS"
9857
 
          LIBS="$LIBS $INTLLIBS"
9858
 
          AC_CHECK_FUNCS(dcgettext)
9859
 
          MSGFMT_OPTS=
9860
 
          AC_MSG_CHECKING([if msgfmt accepts -c])
9861
 
          GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
9862
 
msgid ""
9863
 
msgstr ""
9864
 
"Content-Type: text/plain; charset=UTF-8\n"
9865
 
"Project-Id-Version: test 1.0\n"
9866
 
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
9867
 
"Last-Translator: test <foo@bar.xx>\n"
9868
 
"Language-Team: C <LL@li.org>\n"
9869
 
"MIME-Version: 1.0\n"
9870
 
"Content-Transfer-Encoding: 8bit\n"
9871
 
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
9872
 
          AC_SUBST(MSGFMT_OPTS)
9873
 
          AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
9874
 
          GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
9875
 
            [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
9876
 
          AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
9877
 
                         return _nl_msg_cat_cntr],
9878
 
            [CATOBJEXT=.gmo 
9879
 
             DATADIRNAME=share],
9880
 
            [case $host in
9881
 
            *-*-solaris*)
9882
 
            dnl On Solaris, if bind_textdomain_codeset is in libc,
9883
 
            dnl GNU format message catalog is always supported,
9884
 
            dnl since both are added to the libc all together.
9885
 
            dnl Hence, we'd like to go with DATADIRNAME=share and
9886
 
            dnl and CATOBJEXT=.gmo in this case.
9887
 
            AC_CHECK_FUNC(bind_textdomain_codeset,
9888
 
              [CATOBJEXT=.gmo 
9889
 
               DATADIRNAME=share],
9890
 
              [CATOBJEXT=.mo
9891
 
               DATADIRNAME=lib])
9892
 
            ;;
9893
 
            *-*-openbsd*)
9894
 
            CATOBJEXT=.mo
9895
 
            DATADIRNAME=share
9896
 
            ;;
9897
 
            *)
9898
 
            CATOBJEXT=.mo
9899
 
            DATADIRNAME=lib
9900
 
            ;;
9901
 
            esac])
9902
 
          LIBS="$glib_save_LIBS"
9903
 
          INSTOBJEXT=.mo
9904
 
        else
9905
 
          gt_cv_have_gettext=no
9906
 
        fi
9907
 
      fi
9908
 
    ])
9909
 
 
9910
 
    if test "$gt_cv_have_gettext" = "yes" ; then
9911
 
      AC_DEFINE(ENABLE_NLS, 1,
9912
 
        [always defined to indicate that i18n is enabled])
9913
 
    fi
9914
 
 
9915
 
    dnl Test whether we really found GNU xgettext.
9916
 
    if test "$XGETTEXT" != ":"; then
9917
 
      dnl If it is not GNU xgettext we define it as : so that the
9918
 
      dnl Makefiles still can work.
9919
 
      if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
9920
 
        : ;
9921
 
      else
9922
 
        AC_MSG_RESULT(
9923
 
          [found xgettext program is not GNU xgettext; ignore it])
9924
 
        XGETTEXT=":"
9925
 
      fi
9926
 
    fi
9927
 
 
9928
 
    # We need to process the po/ directory.
9929
 
    POSUB=po
9930
 
 
9931
 
    AC_OUTPUT_COMMANDS(
9932
 
      [case "$CONFIG_FILES" in *po/Makefile.in*)
9933
 
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9934
 
      esac])
9935
 
 
9936
 
    dnl These rules are solely for the distribution goal.  While doing this
9937
 
    dnl we only have to keep exactly one list of the available catalogs
9938
 
    dnl in configure.ac.
9939
 
    for lang in $ALL_LINGUAS; do
9940
 
      GMOFILES="$GMOFILES $lang.gmo"
9941
 
      POFILES="$POFILES $lang.po"
9942
 
    done
9943
 
 
9944
 
    dnl Make all variables we use known to autoconf.
9945
 
    AC_SUBST(CATALOGS)
9946
 
    AC_SUBST(CATOBJEXT)
9947
 
    AC_SUBST(DATADIRNAME)
9948
 
    AC_SUBST(GMOFILES)
9949
 
    AC_SUBST(INSTOBJEXT)
9950
 
    AC_SUBST(INTLLIBS)
9951
 
    AC_SUBST(PO_IN_DATADIR_TRUE)
9952
 
    AC_SUBST(PO_IN_DATADIR_FALSE)
9953
 
    AC_SUBST(POFILES)
9954
 
    AC_SUBST(POSUB)
9955
 
  ])
9956
 
 
9957
 
# AM_GLIB_GNU_GETTEXT
9958
 
# -------------------
9959
 
# Do checks necessary for use of gettext. If a suitable implementation 
9960
 
# of gettext is found in either in libintl or in the C library,
9961
 
# it will set INTLLIBS to the libraries needed for use of gettext
9962
 
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
9963
 
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
9964
 
# on various variables needed by the Makefile.in.in installed by 
9965
 
# glib-gettextize.
9966
 
dnl
9967
 
glib_DEFUN([GLIB_GNU_GETTEXT],
9968
 
  [AC_REQUIRE([AC_PROG_CC])dnl
9969
 
   AC_REQUIRE([AC_HEADER_STDC])dnl
9970
 
   
9971
 
   GLIB_LC_MESSAGES
9972
 
   GLIB_WITH_NLS
9973
 
 
9974
 
   if test "$gt_cv_have_gettext" = "yes"; then
9975
 
     if test "x$ALL_LINGUAS" = "x"; then
9976
 
       LINGUAS=
9977
 
     else
9978
 
       AC_MSG_CHECKING(for catalogs to be installed)
9979
 
       NEW_LINGUAS=
9980
 
       for presentlang in $ALL_LINGUAS; do
9981
 
         useit=no
9982
 
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
9983
 
           desiredlanguages="$LINGUAS"
9984
 
         else
9985
 
           desiredlanguages="$ALL_LINGUAS"
9986
 
         fi
9987
 
         for desiredlang in $desiredlanguages; do
9988
 
           # Use the presentlang catalog if desiredlang is
9989
 
           #   a. equal to presentlang, or
9990
 
           #   b. a variant of presentlang (because in this case,
9991
 
           #      presentlang can be used as a fallback for messages
9992
 
           #      which are not translated in the desiredlang catalog).
9993
 
           case "$desiredlang" in
9994
 
             "$presentlang"*) useit=yes;;
9995
 
           esac
9996
 
         done
9997
 
         if test $useit = yes; then
9998
 
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
9999
 
         fi
10000
 
       done
10001
 
       LINGUAS=$NEW_LINGUAS
10002
 
       AC_MSG_RESULT($LINGUAS)
10003
 
     fi
10004
 
 
10005
 
     dnl Construct list of names of catalog files to be constructed.
10006
 
     if test -n "$LINGUAS"; then
10007
 
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
10008
 
     fi
10009
 
   fi
10010
 
 
10011
 
   dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
10012
 
   dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
10013
 
   dnl Try to locate is.
10014
 
   MKINSTALLDIRS=
10015
 
   if test -n "$ac_aux_dir"; then
10016
 
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
10017
 
   fi
10018
 
   if test -z "$MKINSTALLDIRS"; then
10019
 
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10020
 
   fi
10021
 
   AC_SUBST(MKINSTALLDIRS)
10022
 
 
10023
 
   dnl Generate list of files to be processed by xgettext which will
10024
 
   dnl be included in po/Makefile.
10025
 
   test -d po || mkdir po
10026
 
   if test "x$srcdir" != "x."; then
10027
 
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
10028
 
       posrcprefix="$srcdir/"
10029
 
     else
10030
 
       posrcprefix="../$srcdir/"
10031
 
     fi
10032
 
   else
10033
 
     posrcprefix="../"
10034
 
   fi
10035
 
   rm -f po/POTFILES
10036
 
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
10037
 
        < $srcdir/po/POTFILES.in > po/POTFILES
10038
 
  ])
10039
 
 
10040
 
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
10041
 
# -------------------------------
10042
 
# Define VARIABLE to the location where catalog files will
10043
 
# be installed by po/Makefile.
10044
 
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
10045
 
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
10046
 
glib_save_prefix="$prefix"
10047
 
glib_save_exec_prefix="$exec_prefix"
10048
 
glib_save_datarootdir="$datarootdir"
10049
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
10050
 
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
10051
 
datarootdir=`eval echo "${datarootdir}"`
10052
 
if test "x$CATOBJEXT" = "x.mo" ; then
10053
 
  localedir=`eval echo "${libdir}/locale"`
10054
 
else
10055
 
  localedir=`eval echo "${datadir}/locale"`
10056
 
fi
10057
 
prefix="$glib_save_prefix"
10058
 
exec_prefix="$glib_save_exec_prefix"
10059
 
datarootdir="$glib_save_datarootdir"
10060
 
AC_DEFINE_UNQUOTED($1, "$localedir",
10061
 
  [Define the location where the catalogs will be installed])
10062
 
])
10063
 
 
10064
 
dnl
10065
 
dnl Now the definitions that aclocal will find
10066
 
dnl
10067
 
ifdef(glib_configure_ac,[],[
10068
 
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
10069
 
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
10070
 
])dnl
10071
 
 
10072
 
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
10073
 
10074
 
# Create a temporary file with TEST-FILE as its contents and pass the
10075
 
# file name to PROGRAM.  Perform ACTION-IF-PASS if PROGRAM exits with
10076
 
# 0 and perform ACTION-IF-FAIL for any other exit status.
10077
 
AC_DEFUN([GLIB_RUN_PROG],
10078
 
[cat >conftest.foo <<_ACEOF
10079
 
$2
10080
 
_ACEOF
10081
 
if AC_RUN_LOG([$1 conftest.foo]); then
10082
 
  m4_ifval([$3], [$3], [:])
10083
 
m4_ifvaln([$4], [else $4])dnl
10084
 
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
10085
 
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
10086
 
fi])
10087
 
 
10088
 
 
10089
 
# gnome-common.m4
10090
 
#
10091
 
# serial 3
10092
 
10093
 
 
10094
 
dnl GNOME_COMMON_INIT
10095
 
 
10096
 
AU_DEFUN([GNOME_COMMON_INIT],
10097
 
[
10098
 
  dnl this macro should come after AC_CONFIG_MACRO_DIR
10099
 
  AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
10100
 
 
10101
 
  dnl ensure that when the Automake generated makefile calls aclocal,
10102
 
  dnl it honours the $ACLOCAL_FLAGS environment variable
10103
 
  ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
10104
 
  if test -n "$ac_macro_dir"; then
10105
 
    ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
10106
 
  fi
10107
 
 
10108
 
  AC_SUBST([ACLOCAL_AMFLAGS])
10109
 
],
10110
 
[[$0: This macro is deprecated. You should set put "ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}"
10111
 
in your top-level Makefile.am, instead, where "m4" is the macro directory set
10112
 
with AC_CONFIG_MACRO_DIR() in your configure.ac]])
10113
 
 
10114
 
AC_DEFUN([GNOME_DEBUG_CHECK],
10115
 
[
10116
 
        AC_ARG_ENABLE([debug],
10117
 
                      AC_HELP_STRING([--enable-debug],
10118
 
                                     [turn on debugging]),,
10119
 
                      [enable_debug=no])
10120
 
 
10121
 
        if test x$enable_debug = xyes ; then
10122
 
            AC_DEFINE(GNOME_ENABLE_DEBUG, 1,
10123
 
                [Enable additional debugging at the expense of performance and size])
10124
 
        fi
10125
 
])
10126
 
 
10127
 
dnl GNOME_MAINTAINER_MODE_DEFINES ()
10128
 
dnl define DISABLE_DEPRECATED
10129
 
dnl
10130
 
AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
10131
 
[
10132
 
        AC_REQUIRE([AM_MAINTAINER_MODE])
10133
 
 
10134
 
        DISABLE_DEPRECATED=""
10135
 
        if test $USE_MAINTAINER_MODE = yes; then
10136
 
                DOMAINS="ATK GCONF BONOBO BONOBO_UI GNOME LIBGLADE VTE GNOME_VFS WNCK LIBSOUP"
10137
 
                for DOMAIN in $DOMAINS; do
10138
 
                       DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES"
10139
 
                done
10140
 
        fi
10141
 
 
10142
 
        AC_SUBST(DISABLE_DEPRECATED)
10143
 
])
10144
 
 
10145
 
dnl GNOME_COMPILE_WARNINGS
10146
 
dnl Turn on many useful compiler warnings
10147
 
dnl For now, only works on GCC
10148
 
AC_DEFUN([GNOME_COMPILE_WARNINGS],[
10149
 
    dnl ******************************
10150
 
    dnl More compiler warnings
10151
 
    dnl ******************************
10152
 
 
10153
 
    AC_ARG_ENABLE(compile-warnings, 
10154
 
                  AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
10155
 
                                 [Turn on compiler warnings]),,
10156
 
                  [enable_compile_warnings="m4_default([$1],[yes])"])
10157
 
 
10158
 
    warnCFLAGS=
10159
 
    if test "x$GCC" != xyes; then
10160
 
        enable_compile_warnings=no
10161
 
    fi
10162
 
 
10163
 
    warning_flags=
10164
 
    realsave_CFLAGS="$CFLAGS"
10165
 
 
10166
 
    case "$enable_compile_warnings" in
10167
 
    no)
10168
 
        warning_flags=
10169
 
        ;;
10170
 
    minimum)
10171
 
        warning_flags="-Wall"
10172
 
        ;;
10173
 
    yes)
10174
 
        warning_flags="-Wall -Wmissing-prototypes"
10175
 
        ;;
10176
 
    maximum|error)
10177
 
        warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
10178
 
        CFLAGS="$warning_flags $CFLAGS"
10179
 
        for option in -Wno-sign-compare; do
10180
 
                SAVE_CFLAGS="$CFLAGS"
10181
 
                CFLAGS="$CFLAGS $option"
10182
 
                AC_MSG_CHECKING([whether gcc understands $option])
10183
 
                AC_TRY_COMPILE([], [],
10184
 
                        has_option=yes,
10185
 
                        has_option=no,)
10186
 
                CFLAGS="$SAVE_CFLAGS"
10187
 
                AC_MSG_RESULT($has_option)
10188
 
                if test $has_option = yes; then
10189
 
                  warning_flags="$warning_flags $option"
10190
 
                fi
10191
 
                unset has_option
10192
 
                unset SAVE_CFLAGS
10193
 
        done
10194
 
        unset option
10195
 
        if test "$enable_compile_warnings" = "error" ; then
10196
 
            warning_flags="$warning_flags -Werror"
10197
 
        fi
10198
 
        ;;
10199
 
    *)
10200
 
        AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
10201
 
        ;;
 
9928
      ;;
 
9929
    msvisualcpp | msvcmsys)
 
9930
      # This compiler won't grok `-c -o', but also, the minuso test has
 
9931
      # not run yet.  These depmodes are late enough in the game, and
 
9932
      # so weak that their functioning should not be impacted.
 
9933
      am__obj=conftest.${OBJEXT-o}
 
9934
      am__minus_obj=
 
9935
      ;;
 
9936
    none) break ;;
10202
9937
    esac
10203
 
    CFLAGS="$realsave_CFLAGS"
10204
 
    AC_MSG_CHECKING(what warning flags to pass to the C compiler)
10205
 
    AC_MSG_RESULT($warning_flags)
10206
 
 
10207
 
    AC_ARG_ENABLE(iso-c,
10208
 
                  AC_HELP_STRING([--enable-iso-c],
10209
 
                                 [Try to warn if code is not ISO C ]),,
10210
 
                  [enable_iso_c=no])
10211
 
 
10212
 
    AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
10213
 
    complCFLAGS=
10214
 
    if test "x$enable_iso_c" != "xno"; then
10215
 
        if test "x$GCC" = "xyes"; then
10216
 
        case " $CFLAGS " in
10217
 
            *[\ \       ]-ansi[\ \      ]*) ;;
10218
 
            *) complCFLAGS="$complCFLAGS -ansi" ;;
10219
 
        esac
10220
 
        case " $CFLAGS " in
10221
 
            *[\ \       ]-pedantic[\ \  ]*) ;;
10222
 
            *) complCFLAGS="$complCFLAGS -pedantic" ;;
10223
 
        esac
10224
 
        fi
10225
 
    fi
10226
 
    AC_MSG_RESULT($complCFLAGS)
10227
 
 
10228
 
    WARN_CFLAGS="$warning_flags $complCFLAGS"
10229
 
    AC_SUBST(WARN_CFLAGS)
10230
 
])
10231
 
 
10232
 
dnl For C++, do basically the same thing.
10233
 
 
10234
 
AC_DEFUN([GNOME_CXX_WARNINGS],[
10235
 
  AC_ARG_ENABLE(cxx-warnings,
10236
 
                AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
10237
 
                               [Turn on compiler warnings.]),,
10238
 
                [enable_cxx_warnings="m4_default([$1],[minimum])"])
10239
 
 
10240
 
  AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
10241
 
  warnCXXFLAGS=
10242
 
  if test "x$GXX" != xyes; then
10243
 
    enable_cxx_warnings=no
10244
 
  fi
10245
 
  if test "x$enable_cxx_warnings" != "xno"; then
10246
 
    if test "x$GXX" = "xyes"; then
10247
 
      case " $CXXFLAGS " in
10248
 
      *[\ \     ]-Wall[\ \      ]*) ;;
10249
 
      *) warnCXXFLAGS="-Wall -Wno-unused" ;;
10250
 
      esac
10251
 
 
10252
 
      ## -W is not all that useful.  And it cannot be controlled
10253
 
      ## with individual -Wno-xxx flags, unlike -Wall
10254
 
      if test "x$enable_cxx_warnings" = "xyes"; then
10255
 
        warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
 
9938
    if depmode=$depmode \
 
9939
       source=sub/conftest.c object=$am__obj \
 
9940
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
9941
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
9942
         >/dev/null 2>conftest.err &&
 
9943
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
9944
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
9945
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
9946
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
9947
      # icc doesn't choke on unknown options, it will just issue warnings
 
9948
      # or remarks (even with -Werror).  So we grep stderr for any message
 
9949
      # that says an option was ignored or not supported.
 
9950
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
9951
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
9952
      # The diagnosis changed in icc 8.0:
 
9953
      #   icc: Command line remark: option '-MP' not supported
 
9954
      if (grep 'ignoring option' conftest.err ||
 
9955
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
9956
        am_cv_$1_dependencies_compiler_type=$depmode
 
9957
        break
10256
9958
      fi
10257
9959
    fi
10258
 
  fi
10259
 
  AC_MSG_RESULT($warnCXXFLAGS)
10260
 
 
10261
 
   AC_ARG_ENABLE(iso-cxx,
10262
 
                 AC_HELP_STRING([--enable-iso-cxx],
10263
 
                                [Try to warn if code is not ISO C++ ]),,
10264
 
                 [enable_iso_cxx=no])
10265
 
 
10266
 
   AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
10267
 
   complCXXFLAGS=
10268
 
   if test "x$enable_iso_cxx" != "xno"; then
10269
 
     if test "x$GXX" = "xyes"; then
10270
 
      case " $CXXFLAGS " in
10271
 
      *[\ \     ]-ansi[\ \      ]*) ;;
10272
 
      *) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
10273
 
      esac
10274
 
 
10275
 
      case " $CXXFLAGS " in
10276
 
      *[\ \     ]-pedantic[\ \  ]*) ;;
10277
 
      *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
10278
 
      esac
10279
 
     fi
10280
 
   fi
10281
 
  AC_MSG_RESULT($complCXXFLAGS)
10282
 
 
10283
 
  WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
10284
 
  AC_SUBST(WARN_CXXFLAGS)
10285
 
])
10286
 
 
10287
 
dnl Do not call GNOME_DOC_DEFINES directly.  It is split out from
10288
 
dnl GNOME_DOC_INIT to allow gnome-doc-utils to bootstrap off itself.
10289
 
AC_DEFUN([GNOME_DOC_DEFINES],
10290
 
[
10291
 
AC_ARG_WITH([help-dir],
10292
 
  AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),,
10293
 
  [with_help_dir='${datadir}/gnome/help'])
10294
 
HELP_DIR="$with_help_dir"
10295
 
AC_SUBST(HELP_DIR)
10296
 
 
10297
 
AC_ARG_WITH([omf-dir],
10298
 
  AC_HELP_STRING([--with-omf-dir=DIR], [path to OMF files]),,
10299
 
  [with_omf_dir='${datadir}/omf'])
10300
 
OMF_DIR="$with_omf_dir"
10301
 
AC_SUBST(OMF_DIR)
10302
 
 
10303
 
AC_ARG_WITH([help-formats],
10304
 
  AC_HELP_STRING([--with-help-formats=FORMATS], [list of formats]),,
10305
 
  [with_help_formats=''])
10306
 
DOC_USER_FORMATS="$with_help_formats"
10307
 
AC_SUBST(DOC_USER_FORMATS)
10308
 
 
10309
 
AC_ARG_ENABLE([scrollkeeper],
10310
 
        [AC_HELP_STRING([--disable-scrollkeeper],
10311
 
                        [do not make updates to the scrollkeeper database])],,
10312
 
        enable_scrollkeeper=yes)
10313
 
AM_CONDITIONAL([ENABLE_SK],[test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"])
10314
 
 
10315
 
dnl disable scrollkeeper automatically for distcheck
10316
 
DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS"
10317
 
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
10318
 
 
10319
 
AM_CONDITIONAL([HAVE_GNOME_DOC_UTILS],[test "$gdu_cv_have_gdu" = "yes"])
10320
 
])
10321
 
 
10322
 
# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
10323
 
#
10324
 
AC_DEFUN([GNOME_DOC_INIT],
10325
 
[AC_REQUIRE([AC_PROG_LN_S])dnl
10326
 
 
10327
 
if test -z "$AM_DEFAULT_VERBOSITY"; then
10328
 
  AM_DEFAULT_VERBOSITY=1
10329
 
fi
10330
 
AC_SUBST([AM_DEFAULT_VERBOSITY])
10331
 
 
10332
 
ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1])
10333
 
 
10334
 
AC_MSG_CHECKING([gnome-doc-utils >= $gdu_cv_version_required])
10335
 
PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required],
10336
 
        [gdu_cv_have_gdu=yes],[gdu_cv_have_gdu=no])
10337
 
 
10338
 
if test "$gdu_cv_have_gdu" = "yes"; then
10339
 
        AC_MSG_RESULT([yes])
10340
 
        ifelse([$2],,[:],[$2])
10341
 
else
10342
 
        AC_MSG_RESULT([no])
10343
 
        ifelse([$3],,[AC_MSG_ERROR([gnome-doc-utils >= $gdu_cv_version_required not found])],[$3])
10344
 
fi
10345
 
 
10346
 
GNOME_DOC_DEFINES
10347
 
])
10348
 
 
10349
 
dnl GLIB_GSETTINGS
10350
 
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
10351
 
dnl the schema should be compiled
10352
 
dnl
10353
 
 
10354
 
AC_DEFUN([GLIB_GSETTINGS],
10355
 
[
10356
 
  m4_pattern_allow([AM_V_GEN])
10357
 
  AC_ARG_ENABLE(schemas-compile,
10358
 
                AS_HELP_STRING([--disable-schemas-compile],
10359
 
                               [Disable regeneration of gschemas.compiled on install]),
10360
 
                [case ${enableval} in
10361
 
                  yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE=""  ;;
10362
 
                  no)  GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
10363
 
                  *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;;
10364
 
                 esac])
10365
 
  AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE])
10366
 
  PKG_PROG_PKG_CONFIG([0.16])
10367
 
  AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas])
10368
 
  if test x$cross_compiling != xyes; then
10369
 
    GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
10370
 
  else
10371
 
    AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas)
10372
 
  fi
10373
 
  AC_SUBST(GLIB_COMPILE_SCHEMAS)
10374
 
  if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
10375
 
    ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2])
10376
 
  else
10377
 
    ifelse([$1],,[:],[$1])
10378
 
  fi
10379
 
 
10380
 
  GSETTINGS_RULES='
10381
 
.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
10382
 
 
10383
 
mostlyclean-am: clean-gsettings-schemas
10384
 
 
10385
 
gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
10386
 
 
10387
 
%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
10388
 
        $(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 [$]@
10389
 
 
10390
 
all-am: $(gsettings_SCHEMAS:.xml=.valid)
10391
 
uninstall-am: uninstall-gsettings-schemas
10392
 
install-data-am: install-gsettings-schemas
10393
 
 
10394
 
.SECONDARY: $(gsettings_SCHEMAS)
10395
 
 
10396
 
install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
10397
 
        @$(NORMAL_INSTALL)
10398
 
        if test -n "$^"; then \
10399
 
                test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
10400
 
                $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
10401
 
                test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
10402
 
        fi
10403
 
 
10404
 
uninstall-gsettings-schemas:
10405
 
        @$(NORMAL_UNINSTALL)
10406
 
        @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
10407
 
        files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
10408
 
        test -n "$$files" || exit 0; \
10409
 
        echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
10410
 
        cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
10411
 
        test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
10412
 
 
10413
 
clean-gsettings-schemas:
10414
 
        rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
10415
 
 
10416
 
ifdef gsettings_ENUM_NAMESPACE
10417
 
$(gsettings__enum_file): $(gsettings_ENUM_FILES)
10418
 
        $(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 [$]@
10419
 
endif
 
9960
  done
 
9961
 
 
9962
  cd ..
 
9963
  rm -rf conftest.dir
 
9964
else
 
9965
  am_cv_$1_dependencies_compiler_type=none
 
9966
fi
 
9967
])
 
9968
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
 
9969
AM_CONDITIONAL([am__fastdep$1], [
 
9970
  test "x$enable_dependency_tracking" != xno \
 
9971
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
 
9972
])
 
9973
 
 
9974
 
 
9975
# AM_SET_DEPDIR
 
9976
# -------------
 
9977
# Choose a directory name for dependency files.
 
9978
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
 
9979
AC_DEFUN([AM_SET_DEPDIR],
 
9980
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
9981
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
 
9982
])
 
9983
 
 
9984
 
 
9985
# AM_DEP_TRACK
 
9986
# ------------
 
9987
AC_DEFUN([AM_DEP_TRACK],
 
9988
[AC_ARG_ENABLE(dependency-tracking,
 
9989
[  --disable-dependency-tracking  speeds up one-time build
 
9990
  --enable-dependency-tracking   do not reject slow dependency extractors])
 
9991
if test "x$enable_dependency_tracking" != xno; then
 
9992
  am_depcomp="$ac_aux_dir/depcomp"
 
9993
  AMDEPBACKSLASH='\'
 
9994
fi
 
9995
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
 
9996
AC_SUBST([AMDEPBACKSLASH])dnl
 
9997
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
9998
])
 
9999
 
 
10000
# Generate code to set up dependency tracking.              -*- Autoconf -*-
 
10001
 
 
10002
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
 
10003
# Free Software Foundation, Inc.
 
10004
#
 
10005
# This file is free software; the Free Software Foundation
 
10006
# gives unlimited permission to copy and/or distribute it,
 
10007
# with or without modifications, as long as this notice is preserved.
 
10008
 
 
10009
#serial 5
 
10010
 
 
10011
# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
10012
# ------------------------------
 
10013
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
 
10014
[{
 
10015
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
10016
  # are listed without --file.  Let's play safe and only enable the eval
 
10017
  # if we detect the quoting.
 
10018
  case $CONFIG_FILES in
 
10019
  *\'*) eval set x "$CONFIG_FILES" ;;
 
10020
  *)   set x $CONFIG_FILES ;;
 
10021
  esac
 
10022
  shift
 
10023
  for mf
 
10024
  do
 
10025
    # Strip MF so we end up with the name of the file.
 
10026
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
10027
    # Check whether this is an Automake generated Makefile or not.
 
10028
    # We used to match only the files named `Makefile.in', but
 
10029
    # some people rename them; so instead we look at the file content.
 
10030
    # Grep'ing the first line is not enough: some people post-process
 
10031
    # each Makefile.in and add a new line on top of each file to say so.
 
10032
    # Grep'ing the whole file is not good either: AIX grep has a line
 
10033
    # limit of 2048, but all sed's we know have understand at least 4000.
 
10034
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
10035
      dirpart=`AS_DIRNAME("$mf")`
 
10036
    else
 
10037
      continue
 
10038
    fi
 
10039
    # Extract the definition of DEPDIR, am__include, and am__quote
 
10040
    # from the Makefile without running `make'.
 
10041
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
10042
    test -z "$DEPDIR" && continue
 
10043
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
10044
    test -z "am__include" && continue
 
10045
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
10046
    # When using ansi2knr, U may be empty or an underscore; expand it
 
10047
    U=`sed -n 's/^U = //p' < "$mf"`
 
10048
    # Find all dependency output files, they are included files with
 
10049
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
10050
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
10051
    # expansion.
 
10052
    for file in `sed -n "
 
10053
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
10054
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
10055
      # Make sure the directory exists.
 
10056
      test -f "$dirpart/$file" && continue
 
10057
      fdir=`AS_DIRNAME(["$file"])`
 
10058
      AS_MKDIR_P([$dirpart/$fdir])
 
10059
      # echo "creating $dirpart/$file"
 
10060
      echo '# dummy' > "$dirpart/$file"
 
10061
    done
 
10062
  done
 
10063
}
 
10064
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
10065
 
 
10066
 
 
10067
# AM_OUTPUT_DEPENDENCY_COMMANDS
 
10068
# -----------------------------
 
10069
# This macro should only be invoked once -- use via AC_REQUIRE.
 
10070
#
 
10071
# This code is only required when automatic dependency tracking
 
10072
# is enabled.  FIXME.  This creates each `.P' file that we will
 
10073
# need in order to bootstrap the dependency handling code.
 
10074
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
 
10075
[AC_CONFIG_COMMANDS([depfiles],
 
10076
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
 
10077
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
 
10078
])
 
10079
 
 
10080
# Do all the work for Automake.                             -*- Autoconf -*-
 
10081
 
 
10082
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
10083
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
 
10084
#
 
10085
# This file is free software; the Free Software Foundation
 
10086
# gives unlimited permission to copy and/or distribute it,
 
10087
# with or without modifications, as long as this notice is preserved.
 
10088
 
 
10089
# serial 16
 
10090
 
 
10091
# This macro actually does too much.  Some checks are only needed if
 
10092
# your package does certain things.  But this isn't really a big deal.
 
10093
 
 
10094
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
 
10095
# AM_INIT_AUTOMAKE([OPTIONS])
 
10096
# -----------------------------------------------
 
10097
# The call with PACKAGE and VERSION arguments is the old style
 
10098
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
 
10099
# and VERSION should now be passed to AC_INIT and removed from
 
10100
# the call to AM_INIT_AUTOMAKE.
 
10101
# We support both call styles for the transition.  After
 
10102
# the next Automake release, Autoconf can make the AC_INIT
 
10103
# arguments mandatory, and then we can depend on a new Autoconf
 
10104
# release and drop the old call support.
 
10105
AC_DEFUN([AM_INIT_AUTOMAKE],
 
10106
[AC_PREREQ([2.62])dnl
 
10107
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
 
10108
dnl the ones we care about.
 
10109
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
 
10110
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 
10111
AC_REQUIRE([AC_PROG_INSTALL])dnl
 
10112
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
10113
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
10114
  # is not polluted with repeated "-I."
 
10115
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
10116
  # test to see if srcdir already configured
 
10117
  if test -f $srcdir/config.status; then
 
10118
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
10119
  fi
 
10120
fi
 
10121
 
 
10122
# test whether we have cygpath
 
10123
if test -z "$CYGPATH_W"; then
 
10124
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
10125
    CYGPATH_W='cygpath -w'
 
10126
  else
 
10127
    CYGPATH_W=echo
 
10128
  fi
 
10129
fi
 
10130
AC_SUBST([CYGPATH_W])
 
10131
 
 
10132
# Define the identity of the package.
 
10133
dnl Distinguish between old-style and new-style calls.
 
10134
m4_ifval([$2],
 
10135
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
10136
 AC_SUBST([PACKAGE], [$1])dnl
 
10137
 AC_SUBST([VERSION], [$2])],
 
10138
[_AM_SET_OPTIONS([$1])dnl
 
10139
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
10140
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
10141
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
 
10142
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 
10143
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 
10144
 
 
10145
_AM_IF_OPTION([no-define],,
 
10146
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
 
10147
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 
10148
 
 
10149
# Some tools Automake needs.
 
10150
AC_REQUIRE([AM_SANITY_CHECK])dnl
 
10151
AC_REQUIRE([AC_ARG_PROGRAM])dnl
 
10152
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
 
10153
AM_MISSING_PROG(AUTOCONF, autoconf)
 
10154
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
 
10155
AM_MISSING_PROG(AUTOHEADER, autoheader)
 
10156
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
10157
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
10158
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
 
10159
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
 
10160
# We need awk for the "check" target.  The system "awk" is bad on
 
10161
# some platforms.
 
10162
AC_REQUIRE([AC_PROG_AWK])dnl
 
10163
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 
10164
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
10165
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 
10166
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
10167
                             [_AM_PROG_TAR([v7])])])
 
10168
_AM_IF_OPTION([no-dependencies],,
 
10169
[AC_PROVIDE_IFELSE([AC_PROG_CC],
 
10170
                  [_AM_DEPENDENCIES(CC)],
 
10171
                  [define([AC_PROG_CC],
 
10172
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
10173
AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
10174
                  [_AM_DEPENDENCIES(CXX)],
 
10175
                  [define([AC_PROG_CXX],
 
10176
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
10177
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
10178
                  [_AM_DEPENDENCIES(OBJC)],
 
10179
                  [define([AC_PROG_OBJC],
 
10180
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
10181
])
 
10182
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
 
10183
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
 
10184
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
 
10185
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
10186
AC_CONFIG_COMMANDS_PRE(dnl
 
10187
[m4_provide_if([_AM_COMPILER_EXEEXT],
 
10188
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
 
10189
])
 
10190
 
 
10191
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
10192
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
 
10193
dnl mangled by Autoconf and run in a shell conditional statement.
 
10194
m4_define([_AC_COMPILER_EXEEXT],
 
10195
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
 
10196
 
 
10197
 
 
10198
# When config.status generates a header, we must update the stamp-h file.
 
10199
# This file resides in the same directory as the config header
 
10200
# that is generated.  The stamp files are numbered to have different names.
 
10201
 
 
10202
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
 
10203
# loop where config.status creates the headers, so we can generate
 
10204
# our stamp files there.
 
10205
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
 
10206
[# Compute $1's index in $config_headers.
 
10207
_am_arg=$1
 
10208
_am_stamp_count=1
 
10209
for _am_header in $config_headers :; do
 
10210
  case $_am_header in
 
10211
    $_am_arg | $_am_arg:* )
 
10212
      break ;;
 
10213
    * )
 
10214
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
10215
  esac
 
10216
done
 
10217
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
 
10218
 
 
10219
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
 
10220
#
 
10221
# This file is free software; the Free Software Foundation
 
10222
# gives unlimited permission to copy and/or distribute it,
 
10223
# with or without modifications, as long as this notice is preserved.
 
10224
 
 
10225
# AM_PROG_INSTALL_SH
 
10226
# ------------------
 
10227
# Define $install_sh.
 
10228
AC_DEFUN([AM_PROG_INSTALL_SH],
 
10229
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
10230
if test x"${install_sh}" != xset; then
 
10231
  case $am_aux_dir in
 
10232
  *\ * | *\     *)
 
10233
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
10234
  *)
 
10235
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
10236
  esac
 
10237
fi
 
10238
AC_SUBST(install_sh)])
 
10239
 
 
10240
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
10241
#
 
10242
# This file is free software; the Free Software Foundation
 
10243
# gives unlimited permission to copy and/or distribute it,
 
10244
# with or without modifications, as long as this notice is preserved.
 
10245
 
 
10246
# serial 2
 
10247
 
 
10248
# Check whether the underlying file-system supports filenames
 
10249
# with a leading dot.  For instance MS-DOS doesn't.
 
10250
AC_DEFUN([AM_SET_LEADING_DOT],
 
10251
[rm -rf .tst 2>/dev/null
 
10252
mkdir .tst 2>/dev/null
 
10253
if test -d .tst; then
 
10254
  am__leading_dot=.
 
10255
else
 
10256
  am__leading_dot=_
 
10257
fi
 
10258
rmdir .tst 2>/dev/null
 
10259
AC_SUBST([am__leading_dot])])
 
10260
 
 
10261
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
 
10262
# From Jim Meyering
 
10263
 
 
10264
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
 
10265
# Free Software Foundation, Inc.
 
10266
#
 
10267
# This file is free software; the Free Software Foundation
 
10268
# gives unlimited permission to copy and/or distribute it,
 
10269
# with or without modifications, as long as this notice is preserved.
 
10270
 
 
10271
# serial 5
 
10272
 
 
10273
# AM_MAINTAINER_MODE([DEFAULT-MODE])
 
10274
# ----------------------------------
 
10275
# Control maintainer-specific portions of Makefiles.
 
10276
# Default is to disable them, unless `enable' is passed literally.
 
10277
# For symmetry, `disable' may be passed as well.  Anyway, the user
 
10278
# can override the default with the --enable/--disable switch.
 
10279
AC_DEFUN([AM_MAINTAINER_MODE],
 
10280
[m4_case(m4_default([$1], [disable]),
 
10281
       [enable], [m4_define([am_maintainer_other], [disable])],
 
10282
       [disable], [m4_define([am_maintainer_other], [enable])],
 
10283
       [m4_define([am_maintainer_other], [enable])
 
10284
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
 
10285
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
 
10286
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
 
10287
  AC_ARG_ENABLE([maintainer-mode],
 
10288
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
 
10289
                          (and sometimes confusing) to the casual installer],
 
10290
      [USE_MAINTAINER_MODE=$enableval],
 
10291
      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
 
10292
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
 
10293
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
 
10294
  MAINT=$MAINTAINER_MODE_TRUE
 
10295
  AC_SUBST([MAINT])dnl
 
10296
]
 
10297
)
 
10298
 
 
10299
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
 
10300
 
 
10301
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
 
10302
 
 
10303
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
 
10304
#
 
10305
# This file is free software; the Free Software Foundation
 
10306
# gives unlimited permission to copy and/or distribute it,
 
10307
# with or without modifications, as long as this notice is preserved.
 
10308
 
 
10309
# serial 4
 
10310
 
 
10311
# AM_MAKE_INCLUDE()
 
10312
# -----------------
 
10313
# Check to see how make treats includes.
 
10314
AC_DEFUN([AM_MAKE_INCLUDE],
 
10315
[am_make=${MAKE-make}
 
10316
cat > confinc << 'END'
 
10317
am__doit:
 
10318
        @echo this is the am__doit target
 
10319
.PHONY: am__doit
 
10320
END
 
10321
# If we don't find an include directive, just comment out the code.
 
10322
AC_MSG_CHECKING([for style of include used by $am_make])
 
10323
am__include="#"
 
10324
am__quote=
 
10325
_am_result=none
 
10326
# First try GNU make style include.
 
10327
echo "include confinc" > confmf
 
10328
# Ignore all kinds of additional output from `make'.
 
10329
case `$am_make -s -f confmf 2> /dev/null` in #(
 
10330
*the\ am__doit\ target*)
 
10331
  am__include=include
 
10332
  am__quote=
 
10333
  _am_result=GNU
 
10334
  ;;
 
10335
esac
 
10336
# Now try BSD make style include.
 
10337
if test "$am__include" = "#"; then
 
10338
   echo '.include "confinc"' > confmf
 
10339
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
10340
   *the\ am__doit\ target*)
 
10341
     am__include=.include
 
10342
     am__quote="\""
 
10343
     _am_result=BSD
 
10344
     ;;
 
10345
   esac
 
10346
fi
 
10347
AC_SUBST([am__include])
 
10348
AC_SUBST([am__quote])
 
10349
AC_MSG_RESULT([$_am_result])
 
10350
rm -f confinc confmf
 
10351
])
 
10352
 
 
10353
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 
10354
 
 
10355
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
 
10356
# Free Software Foundation, Inc.
 
10357
#
 
10358
# This file is free software; the Free Software Foundation
 
10359
# gives unlimited permission to copy and/or distribute it,
 
10360
# with or without modifications, as long as this notice is preserved.
 
10361
 
 
10362
# serial 6
 
10363
 
 
10364
# AM_MISSING_PROG(NAME, PROGRAM)
 
10365
# ------------------------------
 
10366
AC_DEFUN([AM_MISSING_PROG],
 
10367
[AC_REQUIRE([AM_MISSING_HAS_RUN])
 
10368
$1=${$1-"${am_missing_run}$2"}
 
10369
AC_SUBST($1)])
 
10370
 
 
10371
 
 
10372
# AM_MISSING_HAS_RUN
 
10373
# ------------------
 
10374
# Define MISSING if not defined so far and test if it supports --run.
 
10375
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
10376
AC_DEFUN([AM_MISSING_HAS_RUN],
 
10377
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
10378
AC_REQUIRE_AUX_FILE([missing])dnl
 
10379
if test x"${MISSING+set}" != xset; then
 
10380
  case $am_aux_dir in
 
10381
  *\ * | *\     *)
 
10382
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
10383
  *)
 
10384
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
10385
  esac
 
10386
fi
 
10387
# Use eval to expand $SHELL
 
10388
if eval "$MISSING --run true"; then
 
10389
  am_missing_run="$MISSING --run "
 
10390
else
 
10391
  am_missing_run=
 
10392
  AC_MSG_WARN([`missing' script is too old or missing])
 
10393
fi
 
10394
])
 
10395
 
 
10396
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
10397
#
 
10398
# This file is free software; the Free Software Foundation
 
10399
# gives unlimited permission to copy and/or distribute it,
 
10400
# with or without modifications, as long as this notice is preserved.
 
10401
 
 
10402
# AM_PROG_MKDIR_P
 
10403
# ---------------
 
10404
# Check for `mkdir -p'.
 
10405
AC_DEFUN([AM_PROG_MKDIR_P],
 
10406
[AC_PREREQ([2.60])dnl
 
10407
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
10408
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
10409
dnl while keeping a definition of mkdir_p for backward compatibility.
 
10410
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
10411
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
10412
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
10413
dnl adjustment using top_builddir (which is defined more often than
 
10414
dnl MKDIR_P).
 
10415
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
10416
case $mkdir_p in
 
10417
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
10418
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
10419
esac
 
10420
])
 
10421
 
 
10422
# Helper functions for option handling.                     -*- Autoconf -*-
 
10423
 
 
10424
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
 
10425
#
 
10426
# This file is free software; the Free Software Foundation
 
10427
# gives unlimited permission to copy and/or distribute it,
 
10428
# with or without modifications, as long as this notice is preserved.
 
10429
 
 
10430
# serial 4
 
10431
 
 
10432
# _AM_MANGLE_OPTION(NAME)
 
10433
# -----------------------
 
10434
AC_DEFUN([_AM_MANGLE_OPTION],
 
10435
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
 
10436
 
 
10437
# _AM_SET_OPTION(NAME)
 
10438
# ------------------------------
 
10439
# Set option NAME.  Presently that only means defining a flag for this option.
 
10440
AC_DEFUN([_AM_SET_OPTION],
 
10441
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
10442
 
 
10443
# _AM_SET_OPTIONS(OPTIONS)
 
10444
# ----------------------------------
 
10445
# OPTIONS is a space-separated list of Automake options.
 
10446
AC_DEFUN([_AM_SET_OPTIONS],
 
10447
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
10448
 
 
10449
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 
10450
# -------------------------------------------
 
10451
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
10452
AC_DEFUN([_AM_IF_OPTION],
 
10453
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 
10454
 
 
10455
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
 
10456
 
 
10457
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
 
10458
# Free Software Foundation, Inc.
 
10459
#
 
10460
# This file is free software; the Free Software Foundation
 
10461
# gives unlimited permission to copy and/or distribute it,
 
10462
# with or without modifications, as long as this notice is preserved.
 
10463
 
 
10464
# serial 5
 
10465
 
 
10466
# AM_SANITY_CHECK
 
10467
# ---------------
 
10468
AC_DEFUN([AM_SANITY_CHECK],
 
10469
[AC_MSG_CHECKING([whether build environment is sane])
 
10470
# Just in case
 
10471
sleep 1
 
10472
echo timestamp > conftest.file
 
10473
# Reject unsafe characters in $srcdir or the absolute working directory
 
10474
# name.  Accept space and tab only in the latter.
 
10475
am_lf='
10420
10476
'
10421
 
  _GSETTINGS_SUBST(GSETTINGS_RULES)
10422
 
])
10423
 
 
10424
 
dnl _GSETTINGS_SUBST(VARIABLE)
10425
 
dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
10426
 
AC_DEFUN([_GSETTINGS_SUBST],
10427
 
[
10428
 
AC_SUBST([$1])
10429
 
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
10430
 
]
10431
 
)
10432
 
 
10433
 
dnl -*- mode: autoconf -*-
 
10477
case `pwd` in
 
10478
  *[[\\\"\#\$\&\'\`$am_lf]]*)
 
10479
    AC_MSG_ERROR([unsafe absolute working directory name]);;
 
10480
esac
 
10481
case $srcdir in
 
10482
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
 
10483
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
 
10484
esac
 
10485
 
 
10486
# Do `set' in a subshell so we don't clobber the current shell's
 
10487
# arguments.  Must try -L first in case configure is actually a
 
10488
# symlink; some systems play weird games with the mod time of symlinks
 
10489
# (eg FreeBSD returns the mod time of the symlink's containing
 
10490
# directory).
 
10491
if (
 
10492
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
10493
   if test "$[*]" = "X"; then
 
10494
      # -L didn't work.
 
10495
      set X `ls -t "$srcdir/configure" conftest.file`
 
10496
   fi
 
10497
   rm -f conftest.file
 
10498
   if test "$[*]" != "X $srcdir/configure conftest.file" \
 
10499
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
10500
 
 
10501
      # If neither matched, then we have a broken ls.  This can happen
 
10502
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
10503
      # broken ls alias from the environment.  This has actually
 
10504
      # happened.  Such a system could not be considered "sane".
 
10505
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
10506
alias in your environment])
 
10507
   fi
 
10508
 
 
10509
   test "$[2]" = conftest.file
 
10510
   )
 
10511
then
 
10512
   # Ok.
 
10513
   :
 
10514
else
 
10515
   AC_MSG_ERROR([newly created file is older than distributed files!
 
10516
Check your system clock])
 
10517
fi
 
10518
AC_MSG_RESULT(yes)])
 
10519
 
 
10520
# Copyright (C) 2009  Free Software Foundation, Inc.
 
10521
#
 
10522
# This file is free software; the Free Software Foundation
 
10523
# gives unlimited permission to copy and/or distribute it,
 
10524
# with or without modifications, as long as this notice is preserved.
10434
10525
 
10435
10526
# serial 1
10436
10527
 
10437
 
dnl Usage:
10438
 
dnl   GTK_DOC_CHECK([minimum-gtk-doc-version])
10439
 
AC_DEFUN([GTK_DOC_CHECK],
10440
 
[
10441
 
  AC_REQUIRE([PKG_PROG_PKG_CONFIG])
10442
 
  AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
10443
 
  AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
10444
 
 
10445
 
  dnl check for tools we added during development
10446
 
  AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check])
10447
 
  AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true])
10448
 
  AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf])
10449
 
 
10450
 
  dnl for overriding the documentation installation directory
10451
 
  AC_ARG_WITH([html-dir],
10452
 
    AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
10453
 
    [with_html_dir='${datadir}/gtk-doc/html'])
10454
 
  HTML_DIR="$with_html_dir"
10455
 
  AC_SUBST([HTML_DIR])
10456
 
 
10457
 
  dnl enable/disable documentation building
10458
 
  AC_ARG_ENABLE([gtk-doc],
10459
 
    AS_HELP_STRING([--enable-gtk-doc],
10460
 
                   [use gtk-doc to build documentation [[default=no]]]),,
10461
 
    [enable_gtk_doc=no])
10462
 
 
10463
 
  if test x$enable_gtk_doc = xyes; then
10464
 
    ifelse([$1],[],
10465
 
      [PKG_CHECK_EXISTS([gtk-doc],,
10466
 
                        AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
10467
 
      [PKG_CHECK_EXISTS([gtk-doc >= $1],,
10468
 
                        AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))])
10469
 
    dnl don't check for glib if we build glib
10470
 
    if test "x$PACKAGE_NAME" != "xglib"; then
10471
 
      dnl don't fail if someone does not have glib
10472
 
      PKG_CHECK_MODULES(GTKDOC_DEPS, glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0,,)
10473
 
    fi
10474
 
  fi
10475
 
 
10476
 
  AC_MSG_CHECKING([whether to build gtk-doc documentation])
10477
 
  AC_MSG_RESULT($enable_gtk_doc)
10478
 
 
10479
 
  dnl enable/disable output formats
10480
 
  AC_ARG_ENABLE([gtk-doc-html],
10481
 
    AS_HELP_STRING([--enable-gtk-doc-html],
10482
 
                   [build documentation in html format [[default=yes]]]),,
10483
 
    [enable_gtk_doc_html=yes])
10484
 
    AC_ARG_ENABLE([gtk-doc-pdf],
10485
 
      AS_HELP_STRING([--enable-gtk-doc-pdf],
10486
 
                     [build documentation in pdf format [[default=no]]]),,
10487
 
      [enable_gtk_doc_pdf=no])
10488
 
 
10489
 
  if test -z "$GTKDOC_MKPDF"; then
10490
 
    enable_gtk_doc_pdf=no
10491
 
  fi
10492
 
 
10493
 
 
10494
 
  AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
10495
 
  AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes])
10496
 
  AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes])
10497
 
  AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
10498
 
  AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"])
10499
 
])
10500
 
 
10501
 
 
10502
 
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
10503
 
# serial 40 IT_PROG_INTLTOOL
10504
 
AC_DEFUN([IT_PROG_INTLTOOL], [
10505
 
AC_PREREQ([2.50])dnl
10506
 
AC_REQUIRE([AM_NLS])dnl
10507
 
 
10508
 
case "$am__api_version" in
10509
 
    1.[01234])
10510
 
        AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
10511
 
    ;;
10512
 
    *)
10513
 
    ;;
 
10528
# AM_SILENT_RULES([DEFAULT])
 
10529
# --------------------------
 
10530
# Enable less verbose build rules; with the default set to DEFAULT
 
10531
# (`yes' being less verbose, `no' or empty being verbose).
 
10532
AC_DEFUN([AM_SILENT_RULES],
 
10533
[AC_ARG_ENABLE([silent-rules],
 
10534
[  --enable-silent-rules          less verbose build output (undo: `make V=1')
 
10535
  --disable-silent-rules         verbose build output (undo: `make V=0')])
 
10536
case $enable_silent_rules in
 
10537
yes) AM_DEFAULT_VERBOSITY=0;;
 
10538
no)  AM_DEFAULT_VERBOSITY=1;;
 
10539
*)   AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
10514
10540
esac
10515
 
 
10516
 
if test -n "$1"; then
10517
 
    AC_MSG_CHECKING([for intltool >= $1])
10518
 
 
10519
 
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
10520
 
    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
10521
 
    [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
10522
 
    ]
10523
 
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
10524
 
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
10525
 
        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
10526
 
fi
10527
 
 
10528
 
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
10529
 
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
10530
 
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
10531
 
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
10532
 
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
10533
 
fi
10534
 
 
10535
 
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
10536
 
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
10537
 
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
10538
 
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
10539
 
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
10540
 
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
10541
 
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
10542
 
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
10543
 
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
10544
 
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
10545
 
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
10546
 
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u --no-translations $< [$]@' 
10547
 
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
10548
 
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
10549
 
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
10550
 
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
10551
 
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
10552
 
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
10553
 
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
10554
 
 
10555
 
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
10556
 
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
10557
 
_IT_SUBST(INTLTOOL_KEYS_RULE)
10558
 
_IT_SUBST(INTLTOOL_PROP_RULE)
10559
 
_IT_SUBST(INTLTOOL_OAF_RULE)
10560
 
_IT_SUBST(INTLTOOL_PONG_RULE)
10561
 
_IT_SUBST(INTLTOOL_SERVER_RULE)
10562
 
_IT_SUBST(INTLTOOL_SHEET_RULE)
10563
 
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
10564
 
_IT_SUBST(INTLTOOL_UI_RULE)
10565
 
_IT_SUBST(INTLTOOL_XAM_RULE)
10566
 
_IT_SUBST(INTLTOOL_KBD_RULE)
10567
 
_IT_SUBST(INTLTOOL_XML_RULE)
10568
 
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
10569
 
_IT_SUBST(INTLTOOL_CAVES_RULE)
10570
 
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
10571
 
_IT_SUBST(INTLTOOL_THEME_RULE)
10572
 
_IT_SUBST(INTLTOOL_SERVICE_RULE)
10573
 
_IT_SUBST(INTLTOOL_POLICY_RULE)
10574
 
 
10575
 
# Check the gettext tools to make sure they are GNU
10576
 
AC_PATH_PROG(XGETTEXT, xgettext)
10577
 
AC_PATH_PROG(MSGMERGE, msgmerge)
10578
 
AC_PATH_PROG(MSGFMT, msgfmt)
10579
 
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
10580
 
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
10581
 
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
10582
 
fi
10583
 
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
10584
 
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
10585
 
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
10586
 
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
10587
 
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
10588
 
fi
10589
 
 
10590
 
AC_PATH_PROG(INTLTOOL_PERL, perl)
10591
 
if test -z "$INTLTOOL_PERL"; then
10592
 
   AC_MSG_ERROR([perl not found])
10593
 
fi
10594
 
AC_MSG_CHECKING([for perl >= 5.8.1])
10595
 
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
10596
 
if test $? -ne 0; then
10597
 
   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
10598
 
else
10599
 
   IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
10600
 
   AC_MSG_RESULT([$IT_PERL_VERSION])
10601
 
fi
10602
 
if test "x$2" != "xno-xml"; then
10603
 
   AC_MSG_CHECKING([for XML::Parser])
10604
 
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
10605
 
       AC_MSG_RESULT([ok])
10606
 
   else
10607
 
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
10608
 
   fi
10609
 
fi
10610
 
 
10611
 
# Substitute ALL_LINGUAS so we can use it in po/Makefile
10612
 
AC_SUBST(ALL_LINGUAS)
10613
 
 
10614
 
# Set DATADIRNAME correctly if it is not set yet
10615
 
# (copied from glib-gettext.m4)
10616
 
if test -z "$DATADIRNAME"; then
10617
 
  AC_LINK_IFELSE(
10618
 
    [AC_LANG_PROGRAM([[]],
10619
 
                     [[extern int _nl_msg_cat_cntr;
10620
 
                       return _nl_msg_cat_cntr]])],
10621
 
    [DATADIRNAME=share],
10622
 
    [case $host in
10623
 
    *-*-solaris*)
10624
 
    dnl On Solaris, if bind_textdomain_codeset is in libc,
10625
 
    dnl GNU format message catalog is always supported,
10626
 
    dnl since both are added to the libc all together.
10627
 
    dnl Hence, we'd like to go with DATADIRNAME=share
10628
 
    dnl in this case.
10629
 
    AC_CHECK_FUNC(bind_textdomain_codeset,
10630
 
      [DATADIRNAME=share], [DATADIRNAME=lib])
10631
 
    ;;
10632
 
    *)
10633
 
    [DATADIRNAME=lib]
10634
 
    ;;
10635
 
    esac])
10636
 
fi
10637
 
AC_SUBST(DATADIRNAME)
10638
 
 
10639
 
IT_PO_SUBDIR([po])
10640
 
 
 
10541
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
 
10542
AM_BACKSLASH='\'
 
10543
AC_SUBST([AM_BACKSLASH])dnl
 
10544
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
10641
10545
])
10642
10546
 
 
10547
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
10548
#
 
10549
# This file is free software; the Free Software Foundation
 
10550
# gives unlimited permission to copy and/or distribute it,
 
10551
# with or without modifications, as long as this notice is preserved.
10643
10552
 
10644
 
# IT_PO_SUBDIR(DIRNAME)
 
10553
# AM_PROG_INSTALL_STRIP
10645
10554
# ---------------------
10646
 
# All po subdirs have to be declared with this macro; the subdir "po" is
10647
 
# declared by IT_PROG_INTLTOOL.
10648
 
#
10649
 
AC_DEFUN([IT_PO_SUBDIR],
10650
 
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
10651
 
dnl
10652
 
dnl The following CONFIG_COMMANDS should be executed at the very end
10653
 
dnl of config.status.
10654
 
AC_CONFIG_COMMANDS_PRE([
10655
 
  AC_CONFIG_COMMANDS([$1/stamp-it], [
10656
 
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
10657
 
       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
10658
 
    fi
10659
 
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
10660
 
    >"$1/stamp-it.tmp"
10661
 
    [sed '/^#/d
10662
 
         s/^[[].*] *//
10663
 
         /^[    ]*$/d
10664
 
        '"s|^|  $ac_top_srcdir/|" \
10665
 
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
10666
 
    ]
10667
 
    [sed '/^POTFILES =/,/[^\\]$/ {
10668
 
                /^POTFILES =/!d
10669
 
                r $1/POTFILES
10670
 
          }
10671
 
         ' "$1/Makefile.in" >"$1/Makefile"]
10672
 
    rm -f "$1/Makefile.tmp"
10673
 
    mv "$1/stamp-it.tmp" "$1/stamp-it"
10674
 
  ])
10675
 
])dnl
10676
 
])
10677
 
 
10678
 
# _IT_SUBST(VARIABLE)
10679
 
# -------------------
10680
 
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
10681
 
#
10682
 
AC_DEFUN([_IT_SUBST],
10683
 
[
10684
 
AC_SUBST([$1])
10685
 
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
10686
 
]
10687
 
)
10688
 
 
10689
 
# deprecated macros
10690
 
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
10691
 
# A hint is needed for aclocal from Automake <= 1.9.4:
10692
 
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
10693
 
 
 
10555
# One issue with vendor `install' (even GNU) is that you can't
 
10556
# specify the program used to strip binaries.  This is especially
 
10557
# annoying in cross-compiling environments, where the build's strip
 
10558
# is unlikely to handle the host's binaries.
 
10559
# Fortunately install-sh will honor a STRIPPROG variable, so we
 
10560
# always use install-sh in `make install-strip', and initialize
 
10561
# STRIPPROG with the value of the STRIP variable (set by the user).
 
10562
AC_DEFUN([AM_PROG_INSTALL_STRIP],
 
10563
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
10564
# Installed binaries are usually stripped using `strip' when the user
 
10565
# run `make install-strip'.  However `strip' might not be the right
 
10566
# tool to use in cross-compilation environments, therefore Automake
 
10567
# will honor the `STRIP' environment variable to overrule this program.
 
10568
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
10569
if test "$cross_compiling" != no; then
 
10570
  AC_CHECK_TOOL([STRIP], [strip], :)
 
10571
fi
 
10572
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
10573
AC_SUBST([INSTALL_STRIP_PROGRAM])])
 
10574
 
 
10575
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
 
10576
#
 
10577
# This file is free software; the Free Software Foundation
 
10578
# gives unlimited permission to copy and/or distribute it,
 
10579
# with or without modifications, as long as this notice is preserved.
 
10580
 
 
10581
# serial 2
 
10582
 
 
10583
# _AM_SUBST_NOTMAKE(VARIABLE)
 
10584
# ---------------------------
 
10585
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 
10586
# This macro is traced by Automake.
 
10587
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
10588
 
 
10589
# AM_SUBST_NOTMAKE(VARIABLE)
 
10590
# ---------------------------
 
10591
# Public sister of _AM_SUBST_NOTMAKE.
 
10592
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
 
10593
 
 
10594
# Check how to create a tarball.                            -*- Autoconf -*-
 
10595
 
 
10596
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
10597
#
 
10598
# This file is free software; the Free Software Foundation
 
10599
# gives unlimited permission to copy and/or distribute it,
 
10600
# with or without modifications, as long as this notice is preserved.
 
10601
 
 
10602
# serial 2
 
10603
 
 
10604
# _AM_PROG_TAR(FORMAT)
 
10605
# --------------------
 
10606
# Check how to create a tarball in format FORMAT.
 
10607
# FORMAT should be one of `v7', `ustar', or `pax'.
 
10608
#
 
10609
# Substitute a variable $(am__tar) that is a command
 
10610
# writing to stdout a FORMAT-tarball containing the directory
 
10611
# $tardir.
 
10612
#     tardir=directory && $(am__tar) > result.tar
 
10613
#
 
10614
# Substitute a variable $(am__untar) that extract such
 
10615
# a tarball read from stdin.
 
10616
#     $(am__untar) < result.tar
 
10617
AC_DEFUN([_AM_PROG_TAR],
 
10618
[# Always define AMTAR for backward compatibility.
 
10619
AM_MISSING_PROG([AMTAR], [tar])
 
10620
m4_if([$1], [v7],
 
10621
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
10622
     [m4_case([$1], [ustar],, [pax],,
 
10623
              [m4_fatal([Unknown tar format])])
 
10624
AC_MSG_CHECKING([how to create a $1 tar archive])
 
10625
# Loop over all known methods to create a tar archive until one works.
 
10626
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
10627
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
10628
# Do not fold the above two line into one, because Tru64 sh and
 
10629
# Solaris sh will not grok spaces in the rhs of `-'.
 
10630
for _am_tool in $_am_tools
 
10631
do
 
10632
  case $_am_tool in
 
10633
  gnutar)
 
10634
    for _am_tar in tar gnutar gtar;
 
10635
    do
 
10636
      AM_RUN_LOG([$_am_tar --version]) && break
 
10637
    done
 
10638
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
10639
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
10640
    am__untar="$_am_tar -xf -"
 
10641
    ;;
 
10642
  plaintar)
 
10643
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
10644
    # ustar tarball either.
 
10645
    (tar --version) >/dev/null 2>&1 && continue
 
10646
    am__tar='tar chf - "$$tardir"'
 
10647
    am__tar_='tar chf - "$tardir"'
 
10648
    am__untar='tar xf -'
 
10649
    ;;
 
10650
  pax)
 
10651
    am__tar='pax -L -x $1 -w "$$tardir"'
 
10652
    am__tar_='pax -L -x $1 -w "$tardir"'
 
10653
    am__untar='pax -r'
 
10654
    ;;
 
10655
  cpio)
 
10656
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
10657
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
10658
    am__untar='cpio -i -H $1 -d'
 
10659
    ;;
 
10660
  none)
 
10661
    am__tar=false
 
10662
    am__tar_=false
 
10663
    am__untar=false
 
10664
    ;;
 
10665
  esac
 
10666
 
 
10667
  # If the value was cached, stop now.  We just wanted to have am__tar
 
10668
  # and am__untar set.
 
10669
  test -n "${am_cv_prog_tar_$1}" && break
 
10670
 
 
10671
  # tar/untar a dummy directory, and stop if the command works
 
10672
  rm -rf conftest.dir
 
10673
  mkdir conftest.dir
 
10674
  echo GrepMe > conftest.dir/file
 
10675
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
10676
  rm -rf conftest.dir
 
10677
  if test -s conftest.tar; then
 
10678
    AM_RUN_LOG([$am__untar <conftest.tar])
 
10679
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
10680
  fi
 
10681
done
 
10682
rm -rf conftest.dir
 
10683
 
 
10684
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
10685
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
10686
AC_SUBST([am__tar])
 
10687
AC_SUBST([am__untar])
 
10688
]) # _AM_PROG_TAR
10694
10689