~timchen119/ubuntu/trusty/gnome-bluetooth/lp1035431

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Emilio Pozuelo Monfort
  • Date: 2011-02-27 15:45:22 UTC
  • mfrom: (1.3.2 upstream)
  • mto: (2.2.3 experimental) (1.5.1)
  • mto: This revision was merged to the branch mainline in revision 53.
  • Revision ID: james.westby@ubuntu.com-20110227154522-dnnoqasv5v3mv42a
Tags: upstream-2.91.5
ImportĀ upstreamĀ versionĀ 2.91.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.11 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
4
# 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
13
13
 
14
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
17
 
[m4_warning([this file was generated for autoconf 2.63.
 
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.66],,
 
17
[m4_warning([this file was generated for autoconf 2.66.
18
18
You have another version of autoconf.  It may work, but is not guaranteed to.
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
21
 
22
 
dnl AM_GCONF_SOURCE_2
23
 
dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
24
 
dnl  (i.e. pass to gconftool-2
25
 
dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where
26
 
dnl  you should install foo.schemas files
27
 
dnl
28
 
 
29
 
AC_DEFUN([AM_GCONF_SOURCE_2],
 
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
 
39
])
 
40
 
 
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
 
49
# -------------------------------
 
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='#'
 
137
else
 
138
  $1_TRUE='#'
 
139
  $1_FALSE=
 
140
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`
 
210
  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 ;;
 
266
    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
 
287
      fi
 
288
    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='
 
805
'
 
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.
 
854
 
 
855
# serial 1
 
856
 
 
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]);;
 
869
esac
 
870
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
 
871
AM_BACKSLASH='\'
 
872
AC_SUBST([AM_BACKSLASH])dnl
 
873
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
 
874
])
 
875
 
 
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
 
 
882
# AM_PROG_INSTALL_STRIP
 
883
# ---------------------
 
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
 
1018
 
 
1019
# gettext.m4 serial 63 (gettext-0.18)
 
1020
dnl Copyright (C) 1995-2010 Free Software Foundation, Inc.
 
1021
dnl This file is free software; the Free Software Foundation
 
1022
dnl gives unlimited permission to copy and/or distribute it,
 
1023
dnl with or without modifications, as long as this notice is preserved.
 
1024
dnl
 
1025
dnl This file can can be used in projects which are not available under
 
1026
dnl the GNU General Public License or the GNU Library General Public
 
1027
dnl License but which still want to provide support for the GNU gettext
 
1028
dnl functionality.
 
1029
dnl Please note that the actual code of the GNU gettext library is covered
 
1030
dnl by the GNU Library General Public License, and the rest of the GNU
 
1031
dnl gettext package package is covered by the GNU General Public License.
 
1032
dnl They are *not* in the public domain.
 
1033
 
 
1034
dnl Authors:
 
1035
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
 
1036
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2006, 2008-2010.
 
1037
 
 
1038
dnl Macro to add for using GNU gettext.
 
1039
 
 
1040
dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]).
 
1041
dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The
 
1042
dnl    default (if it is not specified or empty) is 'no-libtool'.
 
1043
dnl    INTLSYMBOL should be 'external' for packages with no intl directory,
 
1044
dnl    and 'no-libtool' or 'use-libtool' for packages with an intl directory.
 
1045
dnl    If INTLSYMBOL is 'use-libtool', then a libtool library
 
1046
dnl    $(top_builddir)/intl/libintl.la will be created (shared and/or static,
 
1047
dnl    depending on --{enable,disable}-{shared,static} and on the presence of
 
1048
dnl    AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library
 
1049
dnl    $(top_builddir)/intl/libintl.a will be created.
 
1050
dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext
 
1051
dnl    implementations (in libc or libintl) without the ngettext() function
 
1052
dnl    will be ignored.  If NEEDSYMBOL is specified and is
 
1053
dnl    'need-formatstring-macros', then GNU gettext implementations that don't
 
1054
dnl    support the ISO C 99 <inttypes.h> formatstring macros will be ignored.
 
1055
dnl INTLDIR is used to find the intl libraries.  If empty,
 
1056
dnl    the value `$(top_builddir)/intl/' is used.
 
1057
dnl
 
1058
dnl The result of the configuration is one of three cases:
 
1059
dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled
 
1060
dnl    and used.
 
1061
dnl    Catalog format: GNU --> install in $(datadir)
 
1062
dnl    Catalog extension: .mo after installation, .gmo in source tree
 
1063
dnl 2) GNU gettext has been found in the system's C library.
 
1064
dnl    Catalog format: GNU --> install in $(datadir)
 
1065
dnl    Catalog extension: .mo after installation, .gmo in source tree
 
1066
dnl 3) No internationalization, always use English msgid.
 
1067
dnl    Catalog format: none
 
1068
dnl    Catalog extension: none
 
1069
dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur.
 
1070
dnl The use of .gmo is historical (it was needed to avoid overwriting the
 
1071
dnl GNU format catalogs when building on a platform with an X/Open gettext),
 
1072
dnl but we keep it in order not to force irrelevant filename changes on the
 
1073
dnl maintainers.
 
1074
dnl
 
1075
AC_DEFUN([AM_GNU_GETTEXT],
30
1076
[
31
 
  if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
32
 
    GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
33
 
  else
34
 
    GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
35
 
  fi
36
 
 
37
 
  AC_ARG_WITH([gconf-source],
38
 
              AC_HELP_STRING([--with-gconf-source=sourceaddress],
39
 
                             [Config database for installing schema files.]),
40
 
              [GCONF_SCHEMA_CONFIG_SOURCE="$withval"],)
41
 
 
42
 
  AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
43
 
  AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
44
 
 
45
 
  if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
46
 
    GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
47
 
  fi
48
 
 
49
 
  AC_ARG_WITH([gconf-schema-file-dir],
50
 
              AC_HELP_STRING([--with-gconf-schema-file-dir=dir],
51
 
                             [Directory for installing schema files.]),
52
 
              [GCONF_SCHEMA_FILE_DIR="$withval"],)
53
 
 
54
 
  AC_SUBST(GCONF_SCHEMA_FILE_DIR)
55
 
  AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
56
 
 
57
 
  AC_ARG_ENABLE(schemas-install,
58
 
        AC_HELP_STRING([--disable-schemas-install],
59
 
                       [Disable the schemas installation]),
60
 
     [case ${enableval} in
61
 
       yes|no) ;;
62
 
       *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-install]) ;;
63
 
      esac])
64
 
  AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
65
 
])
66
 
 
67
 
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
68
 
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
69
 
#
70
 
# This file is free software, distributed under the terms of the GNU
71
 
# General Public License.  As a special exception to the GNU General
72
 
# Public License, this file may be distributed as part of a program
73
 
# that contains a configuration script generated by Autoconf, under
74
 
# the same distribution terms as the rest of that program.
75
 
#
76
 
# This file can be copied and used freely without restrictions.  It can
77
 
# be used in projects which are not available under the GNU Public License
78
 
# but which still want to provide support for the GNU gettext functionality.
79
 
#
80
 
# Macro to add for using GNU gettext.
81
 
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
82
 
#
83
 
# Modified to never use included libintl. 
84
 
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
85
 
#
86
 
# Major rework to remove unused code
87
 
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
88
 
#
89
 
# Added better handling of ALL_LINGUAS from GNU gettext version 
90
 
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
91
 
#
92
 
# Modified to require ngettext
93
 
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
94
 
#
95
 
# We need this here as well, since someone might use autoconf-2.5x
96
 
# to configure GLib then an older version to configure a package
97
 
# using AM_GLIB_GNU_GETTEXT
98
 
AC_PREREQ(2.53)
99
 
 
100
 
dnl
101
 
dnl We go to great lengths to make sure that aclocal won't 
102
 
dnl try to pull in the installed version of these macros
103
 
dnl when running aclocal in the glib directory.
104
 
dnl
105
 
m4_copy([AC_DEFUN],[glib_DEFUN])
106
 
m4_copy([AC_REQUIRE],[glib_REQUIRE])
107
 
dnl
108
 
dnl At the end, if we're not within glib, we'll define the public
109
 
dnl definitions in terms of our private definitions.
110
 
dnl
111
 
 
112
 
# GLIB_LC_MESSAGES
113
 
#--------------------
114
 
glib_DEFUN([GLIB_LC_MESSAGES],
115
 
  [AC_CHECK_HEADERS([locale.h])
116
 
    if test $ac_cv_header_locale_h = yes; then
117
 
    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
118
 
      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
119
 
       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
120
 
    if test $am_cv_val_LC_MESSAGES = yes; then
121
 
      AC_DEFINE(HAVE_LC_MESSAGES, 1,
122
 
        [Define if your <locale.h> file defines LC_MESSAGES.])
123
 
    fi
124
 
  fi])
125
 
 
126
 
# GLIB_PATH_PROG_WITH_TEST
127
 
#----------------------------
128
 
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
129
 
dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
130
 
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
131
 
[# Extract the first word of "$2", so it can be a program name with args.
132
 
set dummy $2; ac_word=[$]2
133
 
AC_MSG_CHECKING([for $ac_word])
134
 
AC_CACHE_VAL(ac_cv_path_$1,
135
 
[case "[$]$1" in
136
 
  /*)
137
 
  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
138
 
  ;;
139
 
  *)
140
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
141
 
  for ac_dir in ifelse([$5], , $PATH, [$5]); do
142
 
    test -z "$ac_dir" && ac_dir=.
143
 
    if test -f $ac_dir/$ac_word; then
144
 
      if [$3]; then
145
 
        ac_cv_path_$1="$ac_dir/$ac_word"
146
 
        break
147
 
      fi
148
 
    fi
149
 
  done
150
 
  IFS="$ac_save_ifs"
151
 
dnl If no 4th arg is given, leave the cache variable unset,
152
 
dnl so AC_PATH_PROGS will keep looking.
153
 
ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
154
 
])dnl
155
 
  ;;
156
 
esac])dnl
157
 
$1="$ac_cv_path_$1"
158
 
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
159
 
  AC_MSG_RESULT([$]$1)
160
 
else
161
 
  AC_MSG_RESULT(no)
162
 
fi
163
 
AC_SUBST($1)dnl
164
 
])
165
 
 
166
 
# GLIB_WITH_NLS
167
 
#-----------------
168
 
glib_DEFUN([GLIB_WITH_NLS],
169
 
  dnl NLS is obligatory
170
 
  [USE_NLS=yes
171
 
    AC_SUBST(USE_NLS)
172
 
 
173
 
    gt_cv_have_gettext=no
174
 
 
175
 
    CATOBJEXT=NONE
176
 
    XGETTEXT=:
177
 
    INTLLIBS=
178
 
 
179
 
    AC_CHECK_HEADER(libintl.h,
180
 
     [gt_cv_func_dgettext_libintl="no"
181
 
      libintl_extra_libs=""
182
 
 
183
 
      #
184
 
      # First check in libc
185
 
      #
186
 
      AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
187
 
        [AC_TRY_LINK([
188
 
#include <libintl.h>
189
 
],
190
 
         [return !ngettext ("","", 1)],
191
 
          gt_cv_func_ngettext_libc=yes,
192
 
          gt_cv_func_ngettext_libc=no)
193
 
        ])
194
 
  
195
 
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
196
 
              AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
197
 
                [AC_TRY_LINK([
198
 
#include <libintl.h>
199
 
],
200
 
                  [return !dgettext ("","")],
201
 
                  gt_cv_func_dgettext_libc=yes,
202
 
                  gt_cv_func_dgettext_libc=no)
203
 
                ])
204
 
      fi
205
 
  
206
 
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
207
 
        AC_CHECK_FUNCS(bind_textdomain_codeset)
208
 
      fi
209
 
 
210
 
      #
211
 
      # If we don't have everything we want, check in libintl
212
 
      #
213
 
      if test "$gt_cv_func_dgettext_libc" != "yes" \
214
 
         || test "$gt_cv_func_ngettext_libc" != "yes" \
215
 
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
216
 
        
217
 
        AC_CHECK_LIB(intl, bindtextdomain,
218
 
            [AC_CHECK_LIB(intl, ngettext,
219
 
                    [AC_CHECK_LIB(intl, dgettext,
220
 
                                  gt_cv_func_dgettext_libintl=yes)])])
221
 
 
222
 
        if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
223
 
          AC_MSG_CHECKING([if -liconv is needed to use gettext])
224
 
          AC_MSG_RESULT([])
225
 
          AC_CHECK_LIB(intl, ngettext,
226
 
                [AC_CHECK_LIB(intl, dcgettext,
227
 
                       [gt_cv_func_dgettext_libintl=yes
228
 
                        libintl_extra_libs=-liconv],
229
 
                        :,-liconv)],
230
 
                :,-liconv)
231
 
        fi
232
 
 
233
 
        #
234
 
        # If we found libintl, then check in it for bind_textdomain_codeset();
235
 
        # we'll prefer libc if neither have bind_textdomain_codeset(),
236
 
        # and both have dgettext and ngettext
237
 
        #
238
 
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
239
 
          glib_save_LIBS="$LIBS"
240
 
          LIBS="$LIBS -lintl $libintl_extra_libs"
241
 
          unset ac_cv_func_bind_textdomain_codeset
242
 
          AC_CHECK_FUNCS(bind_textdomain_codeset)
243
 
          LIBS="$glib_save_LIBS"
244
 
 
245
 
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
246
 
            gt_cv_func_dgettext_libc=no
247
 
          else
248
 
            if test "$gt_cv_func_dgettext_libc" = "yes" \
249
 
                && test "$gt_cv_func_ngettext_libc" = "yes"; then
250
 
              gt_cv_func_dgettext_libintl=no
 
1077
  dnl Argument checking.
 
1078
  ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,
 
1079
    [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT
 
1080
])])])])])
 
1081
  ifelse(ifelse([$1], [], [old])[]ifelse([$1], [no-libtool], [old]), [old],
 
1082
    [AC_DIAGNOSE([obsolete], [Use of AM_GNU_GETTEXT without [external] argument is deprecated.])])
 
1083
  ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
 
1084
    [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
 
1085
])])])])
 
1086
  define([gt_included_intl],
 
1087
    ifelse([$1], [external],
 
1088
      ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]),
 
1089
      [yes]))
 
1090
  define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], []))
 
1091
  gt_NEEDS_INIT
 
1092
  AM_GNU_GETTEXT_NEED([$2])
 
1093
 
 
1094
  AC_REQUIRE([AM_PO_SUBDIRS])dnl
 
1095
  ifelse(gt_included_intl, yes, [
 
1096
    AC_REQUIRE([AM_INTL_SUBDIR])dnl
 
1097
  ])
 
1098
 
 
1099
  dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
 
1100
  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
 
1101
  AC_REQUIRE([AC_LIB_RPATH])
 
1102
 
 
1103
  dnl Sometimes libintl requires libiconv, so first search for libiconv.
 
1104
  dnl Ideally we would do this search only after the
 
1105
  dnl      if test "$USE_NLS" = "yes"; then
 
1106
  dnl        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
 
1107
  dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT
 
1108
  dnl the configure script would need to contain the same shell code
 
1109
  dnl again, outside any 'if'. There are two solutions:
 
1110
  dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'.
 
1111
  dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE.
 
1112
  dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not
 
1113
  dnl documented, we avoid it.
 
1114
  ifelse(gt_included_intl, yes, , [
 
1115
    AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
 
1116
  ])
 
1117
 
 
1118
  dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation.
 
1119
  gt_INTL_MACOSX
 
1120
 
 
1121
  dnl Set USE_NLS.
 
1122
  AC_REQUIRE([AM_NLS])
 
1123
 
 
1124
  ifelse(gt_included_intl, yes, [
 
1125
    BUILD_INCLUDED_LIBINTL=no
 
1126
    USE_INCLUDED_LIBINTL=no
 
1127
  ])
 
1128
  LIBINTL=
 
1129
  LTLIBINTL=
 
1130
  POSUB=
 
1131
 
 
1132
  dnl Add a version number to the cache macros.
 
1133
  case " $gt_needs " in
 
1134
    *" need-formatstring-macros "*) gt_api_version=3 ;;
 
1135
    *" need-ngettext "*) gt_api_version=2 ;;
 
1136
    *) gt_api_version=1 ;;
 
1137
  esac
 
1138
  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
 
1139
  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
 
1140
 
 
1141
  dnl If we use NLS figure out what method
 
1142
  if test "$USE_NLS" = "yes"; then
 
1143
    gt_use_preinstalled_gnugettext=no
 
1144
    ifelse(gt_included_intl, yes, [
 
1145
      AC_MSG_CHECKING([whether included gettext is requested])
 
1146
      AC_ARG_WITH([included-gettext],
 
1147
        [  --with-included-gettext use the GNU gettext library included here],
 
1148
        nls_cv_force_use_gnu_gettext=$withval,
 
1149
        nls_cv_force_use_gnu_gettext=no)
 
1150
      AC_MSG_RESULT([$nls_cv_force_use_gnu_gettext])
 
1151
 
 
1152
      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
 
1153
      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
 
1154
    ])
 
1155
        dnl User does not insist on using GNU NLS library.  Figure out what
 
1156
        dnl to use.  If GNU gettext is available we use this.  Else we have
 
1157
        dnl to fall back to GNU NLS library.
 
1158
 
 
1159
        if test $gt_api_version -ge 3; then
 
1160
          gt_revision_test_code='
 
1161
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
 
1162
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
 
1163
#endif
 
1164
changequote(,)dnl
 
1165
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
 
1166
changequote([,])dnl
 
1167
'
 
1168
        else
 
1169
          gt_revision_test_code=
 
1170
        fi
 
1171
        if test $gt_api_version -ge 2; then
 
1172
          gt_expression_test_code=' + * ngettext ("", "", 0)'
 
1173
        else
 
1174
          gt_expression_test_code=
 
1175
        fi
 
1176
 
 
1177
        AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc],
 
1178
         [AC_TRY_LINK([#include <libintl.h>
 
1179
$gt_revision_test_code
 
1180
extern int _nl_msg_cat_cntr;
 
1181
extern int *_nl_domain_bindings;],
 
1182
            [bindtextdomain ("", "");
 
1183
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings],
 
1184
            [eval "$gt_func_gnugettext_libc=yes"],
 
1185
            [eval "$gt_func_gnugettext_libc=no"])])
 
1186
 
 
1187
        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
 
1188
          dnl Sometimes libintl requires libiconv, so first search for libiconv.
 
1189
          ifelse(gt_included_intl, yes, , [
 
1190
            AM_ICONV_LINK
 
1191
          ])
 
1192
          dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL
 
1193
          dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv])
 
1194
          dnl because that would add "-liconv" to LIBINTL and LTLIBINTL
 
1195
          dnl even if libiconv doesn't exist.
 
1196
          AC_LIB_LINKFLAGS_BODY([intl])
 
1197
          AC_CACHE_CHECK([for GNU gettext in libintl],
 
1198
            [$gt_func_gnugettext_libintl],
 
1199
           [gt_save_CPPFLAGS="$CPPFLAGS"
 
1200
            CPPFLAGS="$CPPFLAGS $INCINTL"
 
1201
            gt_save_LIBS="$LIBS"
 
1202
            LIBS="$LIBS $LIBINTL"
 
1203
            dnl Now see whether libintl exists and does not depend on libiconv.
 
1204
            AC_TRY_LINK([#include <libintl.h>
 
1205
$gt_revision_test_code
 
1206
extern int _nl_msg_cat_cntr;
 
1207
extern
 
1208
#ifdef __cplusplus
 
1209
"C"
 
1210
#endif
 
1211
const char *_nl_expand_alias (const char *);],
 
1212
              [bindtextdomain ("", "");
 
1213
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")],
 
1214
              [eval "$gt_func_gnugettext_libintl=yes"],
 
1215
              [eval "$gt_func_gnugettext_libintl=no"])
 
1216
            dnl Now see whether libintl exists and depends on libiconv.
 
1217
            if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
 
1218
              LIBS="$LIBS $LIBICONV"
 
1219
              AC_TRY_LINK([#include <libintl.h>
 
1220
$gt_revision_test_code
 
1221
extern int _nl_msg_cat_cntr;
 
1222
extern
 
1223
#ifdef __cplusplus
 
1224
"C"
 
1225
#endif
 
1226
const char *_nl_expand_alias (const char *);],
 
1227
                [bindtextdomain ("", "");
 
1228
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")],
 
1229
               [LIBINTL="$LIBINTL $LIBICONV"
 
1230
                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
 
1231
                eval "$gt_func_gnugettext_libintl=yes"
 
1232
               ])
251
1233
            fi
252
 
          fi
253
 
        fi
254
 
      fi
255
 
 
256
 
      if test "$gt_cv_func_dgettext_libc" = "yes" \
257
 
        || test "$gt_cv_func_dgettext_libintl" = "yes"; then
258
 
        gt_cv_have_gettext=yes
259
 
      fi
260
 
  
261
 
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
262
 
        INTLLIBS="-lintl $libintl_extra_libs"
263
 
      fi
264
 
  
265
 
      if test "$gt_cv_have_gettext" = "yes"; then
266
 
        AC_DEFINE(HAVE_GETTEXT,1,
267
 
          [Define if the GNU gettext() function is already present or preinstalled.])
268
 
        GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
269
 
          [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
270
 
        if test "$MSGFMT" != "no"; then
271
 
          glib_save_LIBS="$LIBS"
272
 
          LIBS="$LIBS $INTLLIBS"
273
 
          AC_CHECK_FUNCS(dcgettext)
274
 
          MSGFMT_OPTS=
275
 
          AC_MSG_CHECKING([if msgfmt accepts -c])
276
 
          GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
277
 
msgid ""
278
 
msgstr ""
279
 
"Content-Type: text/plain; charset=UTF-8\n"
280
 
"Project-Id-Version: test 1.0\n"
281
 
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
282
 
"Last-Translator: test <foo@bar.xx>\n"
283
 
"Language-Team: C <LL@li.org>\n"
284
 
"MIME-Version: 1.0\n"
285
 
"Content-Transfer-Encoding: 8bit\n"
286
 
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
287
 
          AC_SUBST(MSGFMT_OPTS)
288
 
          AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
289
 
          GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
290
 
            [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
291
 
          AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
292
 
                         return _nl_msg_cat_cntr],
293
 
            [CATOBJEXT=.gmo 
294
 
             DATADIRNAME=share],
295
 
            [case $host in
296
 
            *-*-solaris*)
297
 
            dnl On Solaris, if bind_textdomain_codeset is in libc,
298
 
            dnl GNU format message catalog is always supported,
299
 
            dnl since both are added to the libc all together.
300
 
            dnl Hence, we'd like to go with DATADIRNAME=share and
301
 
            dnl and CATOBJEXT=.gmo in this case.
302
 
            AC_CHECK_FUNC(bind_textdomain_codeset,
303
 
              [CATOBJEXT=.gmo 
304
 
               DATADIRNAME=share],
305
 
              [CATOBJEXT=.mo
306
 
               DATADIRNAME=lib])
307
 
            ;;
308
 
            *)
309
 
            CATOBJEXT=.mo
310
 
            DATADIRNAME=lib
311
 
            ;;
312
 
            esac])
313
 
          LIBS="$glib_save_LIBS"
314
 
          INSTOBJEXT=.mo
315
 
        else
316
 
          gt_cv_have_gettext=no
317
 
        fi
 
1234
            CPPFLAGS="$gt_save_CPPFLAGS"
 
1235
            LIBS="$gt_save_LIBS"])
 
1236
        fi
 
1237
 
 
1238
        dnl If an already present or preinstalled GNU gettext() is found,
 
1239
        dnl use it.  But if this macro is used in GNU gettext, and GNU
 
1240
        dnl gettext is already preinstalled in libintl, we update this
 
1241
        dnl libintl.  (Cf. the install rule in intl/Makefile.in.)
 
1242
        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
 
1243
           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
 
1244
                && test "$PACKAGE" != gettext-runtime \
 
1245
                && test "$PACKAGE" != gettext-tools; }; then
 
1246
          gt_use_preinstalled_gnugettext=yes
 
1247
        else
 
1248
          dnl Reset the values set by searching for libintl.
 
1249
          LIBINTL=
 
1250
          LTLIBINTL=
 
1251
          INCINTL=
 
1252
        fi
 
1253
 
 
1254
    ifelse(gt_included_intl, yes, [
 
1255
        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
 
1256
          dnl GNU gettext is not found in the C library.
 
1257
          dnl Fall back on included GNU gettext library.
 
1258
          nls_cv_use_gnu_gettext=yes
 
1259
        fi
 
1260
      fi
 
1261
 
 
1262
      if test "$nls_cv_use_gnu_gettext" = "yes"; then
 
1263
        dnl Mark actions used to generate GNU NLS library.
 
1264
        BUILD_INCLUDED_LIBINTL=yes
 
1265
        USE_INCLUDED_LIBINTL=yes
 
1266
        LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD"
 
1267
        LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD"
 
1268
        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
 
1269
      fi
 
1270
 
 
1271
      CATOBJEXT=
 
1272
      if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
1273
         || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
1274
        dnl Mark actions to use GNU gettext tools.
 
1275
        CATOBJEXT=.gmo
318
1276
      fi
319
1277
    ])
320
1278
 
321
 
    if test "$gt_cv_have_gettext" = "yes" ; then
322
 
      AC_DEFINE(ENABLE_NLS, 1,
323
 
        [always defined to indicate that i18n is enabled])
324
 
    fi
325
 
 
326
 
    dnl Test whether we really found GNU xgettext.
327
 
    if test "$XGETTEXT" != ":"; then
328
 
      dnl If it is not GNU xgettext we define it as : so that the
329
 
      dnl Makefiles still can work.
330
 
      if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
331
 
        : ;
 
1279
    if test -n "$INTL_MACOSX_LIBS"; then
 
1280
      if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
1281
         || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
1282
        dnl Some extra flags are needed during linking.
 
1283
        LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
 
1284
        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
 
1285
      fi
 
1286
    fi
 
1287
 
 
1288
    if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
1289
       || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
1290
      AC_DEFINE([ENABLE_NLS], [1],
 
1291
        [Define to 1 if translation of program messages to the user's native language
 
1292
   is requested.])
 
1293
    else
 
1294
      USE_NLS=no
 
1295
    fi
 
1296
  fi
 
1297
 
 
1298
  AC_MSG_CHECKING([whether to use NLS])
 
1299
  AC_MSG_RESULT([$USE_NLS])
 
1300
  if test "$USE_NLS" = "yes"; then
 
1301
    AC_MSG_CHECKING([where the gettext function comes from])
 
1302
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
 
1303
      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
 
1304
        gt_source="external libintl"
332
1305
      else
333
 
        AC_MSG_RESULT(
334
 
          [found xgettext program is not GNU xgettext; ignore it])
335
 
        XGETTEXT=":"
336
 
      fi
337
 
    fi
338
 
 
339
 
    # We need to process the po/ directory.
 
1306
        gt_source="libc"
 
1307
      fi
 
1308
    else
 
1309
      gt_source="included intl directory"
 
1310
    fi
 
1311
    AC_MSG_RESULT([$gt_source])
 
1312
  fi
 
1313
 
 
1314
  if test "$USE_NLS" = "yes"; then
 
1315
 
 
1316
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
 
1317
      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
 
1318
        AC_MSG_CHECKING([how to link with libintl])
 
1319
        AC_MSG_RESULT([$LIBINTL])
 
1320
        AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])
 
1321
      fi
 
1322
 
 
1323
      dnl For backward compatibility. Some packages may be using this.
 
1324
      AC_DEFINE([HAVE_GETTEXT], [1],
 
1325
       [Define if the GNU gettext() function is already present or preinstalled.])
 
1326
      AC_DEFINE([HAVE_DCGETTEXT], [1],
 
1327
       [Define if the GNU dcgettext() function is already present or preinstalled.])
 
1328
    fi
 
1329
 
 
1330
    dnl We need to process the po/ directory.
340
1331
    POSUB=po
341
 
 
342
 
    AC_OUTPUT_COMMANDS(
343
 
      [case "$CONFIG_FILES" in *po/Makefile.in*)
344
 
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
345
 
      esac])
346
 
 
347
 
    dnl These rules are solely for the distribution goal.  While doing this
348
 
    dnl we only have to keep exactly one list of the available catalogs
349
 
    dnl in configure.in.
350
 
    for lang in $ALL_LINGUAS; do
351
 
      GMOFILES="$GMOFILES $lang.gmo"
352
 
      POFILES="$POFILES $lang.po"
353
 
    done
 
1332
  fi
 
1333
 
 
1334
  ifelse(gt_included_intl, yes, [
 
1335
    dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL
 
1336
    dnl to 'yes' because some of the testsuite requires it.
 
1337
    if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
 
1338
      BUILD_INCLUDED_LIBINTL=yes
 
1339
    fi
354
1340
 
355
1341
    dnl Make all variables we use known to autoconf.
356
 
    AC_SUBST(CATALOGS)
357
 
    AC_SUBST(CATOBJEXT)
358
 
    AC_SUBST(DATADIRNAME)
359
 
    AC_SUBST(GMOFILES)
360
 
    AC_SUBST(INSTOBJEXT)
361
 
    AC_SUBST(INTLLIBS)
362
 
    AC_SUBST(PO_IN_DATADIR_TRUE)
363
 
    AC_SUBST(PO_IN_DATADIR_FALSE)
364
 
    AC_SUBST(POFILES)
365
 
    AC_SUBST(POSUB)
366
 
  ])
367
 
 
368
 
# AM_GLIB_GNU_GETTEXT
369
 
# -------------------
370
 
# Do checks necessary for use of gettext. If a suitable implementation 
371
 
# of gettext is found in either in libintl or in the C library,
372
 
# it will set INTLLIBS to the libraries needed for use of gettext
373
 
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
374
 
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
375
 
# on various variables needed by the Makefile.in.in installed by 
376
 
# glib-gettextize.
377
 
dnl
378
 
glib_DEFUN([GLIB_GNU_GETTEXT],
379
 
  [AC_REQUIRE([AC_PROG_CC])dnl
380
 
   AC_REQUIRE([AC_HEADER_STDC])dnl
381
 
   
382
 
   GLIB_LC_MESSAGES
383
 
   GLIB_WITH_NLS
384
 
 
385
 
   if test "$gt_cv_have_gettext" = "yes"; then
386
 
     if test "x$ALL_LINGUAS" = "x"; then
387
 
       LINGUAS=
388
 
     else
389
 
       AC_MSG_CHECKING(for catalogs to be installed)
390
 
       NEW_LINGUAS=
391
 
       for presentlang in $ALL_LINGUAS; do
392
 
         useit=no
393
 
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
394
 
           desiredlanguages="$LINGUAS"
395
 
         else
396
 
           desiredlanguages="$ALL_LINGUAS"
397
 
         fi
398
 
         for desiredlang in $desiredlanguages; do
399
 
           # Use the presentlang catalog if desiredlang is
400
 
           #   a. equal to presentlang, or
401
 
           #   b. a variant of presentlang (because in this case,
402
 
           #      presentlang can be used as a fallback for messages
403
 
           #      which are not translated in the desiredlang catalog).
404
 
           case "$desiredlang" in
405
 
             "$presentlang"*) useit=yes;;
406
 
           esac
407
 
         done
408
 
         if test $useit = yes; then
409
 
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
410
 
         fi
411
 
       done
412
 
       LINGUAS=$NEW_LINGUAS
413
 
       AC_MSG_RESULT($LINGUAS)
414
 
     fi
415
 
 
416
 
     dnl Construct list of names of catalog files to be constructed.
417
 
     if test -n "$LINGUAS"; then
418
 
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
419
 
     fi
420
 
   fi
421
 
 
422
 
   dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
423
 
   dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
424
 
   dnl Try to locate is.
425
 
   MKINSTALLDIRS=
426
 
   if test -n "$ac_aux_dir"; then
427
 
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
428
 
   fi
429
 
   if test -z "$MKINSTALLDIRS"; then
430
 
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
431
 
   fi
432
 
   AC_SUBST(MKINSTALLDIRS)
433
 
 
434
 
   dnl Generate list of files to be processed by xgettext which will
435
 
   dnl be included in po/Makefile.
436
 
   test -d po || mkdir po
437
 
   if test "x$srcdir" != "x."; then
438
 
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
439
 
       posrcprefix="$srcdir/"
440
 
     else
441
 
       posrcprefix="../$srcdir/"
442
 
     fi
443
 
   else
444
 
     posrcprefix="../"
445
 
   fi
446
 
   rm -f po/POTFILES
447
 
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
448
 
        < $srcdir/po/POTFILES.in > po/POTFILES
449
 
  ])
450
 
 
451
 
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
452
 
# -------------------------------
453
 
# Define VARIABLE to the location where catalog files will
454
 
# be installed by po/Makefile.
455
 
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
456
 
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
457
 
glib_save_prefix="$prefix"
458
 
glib_save_exec_prefix="$exec_prefix"
459
 
glib_save_datarootdir="$datarootdir"
460
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
461
 
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
462
 
datarootdir=`eval echo "${datarootdir}"`
463
 
if test "x$CATOBJEXT" = "x.mo" ; then
464
 
  localedir=`eval echo "${libdir}/locale"`
465
 
else
466
 
  localedir=`eval echo "${datadir}/locale"`
467
 
fi
468
 
prefix="$glib_save_prefix"
469
 
exec_prefix="$glib_save_exec_prefix"
470
 
datarootdir="$glib_save_datarootdir"
471
 
AC_DEFINE_UNQUOTED($1, "$localedir",
472
 
  [Define the location where the catalogs will be installed])
473
 
])
474
 
 
475
 
dnl
476
 
dnl Now the definitions that aclocal will find
477
 
dnl
478
 
ifdef(glib_configure_in,[],[
479
 
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
480
 
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
481
 
])dnl
482
 
 
483
 
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
484
 
485
 
# Create a temporary file with TEST-FILE as its contents and pass the
486
 
# file name to PROGRAM.  Perform ACTION-IF-PASS if PROGRAM exits with
487
 
# 0 and perform ACTION-IF-FAIL for any other exit status.
488
 
AC_DEFUN([GLIB_RUN_PROG],
489
 
[cat >conftest.foo <<_ACEOF
490
 
$2
491
 
_ACEOF
492
 
if AC_RUN_LOG([$1 conftest.foo]); then
493
 
  m4_ifval([$3], [$3], [:])
494
 
m4_ifvaln([$4], [else $4])dnl
495
 
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
496
 
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
 
1342
    AC_SUBST([BUILD_INCLUDED_LIBINTL])
 
1343
    AC_SUBST([USE_INCLUDED_LIBINTL])
 
1344
    AC_SUBST([CATOBJEXT])
 
1345
 
 
1346
    dnl For backward compatibility. Some configure.ins may be using this.
 
1347
    nls_cv_header_intl=
 
1348
    nls_cv_header_libgt=
 
1349
 
 
1350
    dnl For backward compatibility. Some Makefiles may be using this.
 
1351
    DATADIRNAME=share
 
1352
    AC_SUBST([DATADIRNAME])
 
1353
 
 
1354
    dnl For backward compatibility. Some Makefiles may be using this.
 
1355
    INSTOBJEXT=.mo
 
1356
    AC_SUBST([INSTOBJEXT])
 
1357
 
 
1358
    dnl For backward compatibility. Some Makefiles may be using this.
 
1359
    GENCAT=gencat
 
1360
    AC_SUBST([GENCAT])
 
1361
 
 
1362
    dnl For backward compatibility. Some Makefiles may be using this.
 
1363
    INTLOBJS=
 
1364
    if test "$USE_INCLUDED_LIBINTL" = yes; then
 
1365
      INTLOBJS="\$(GETTOBJS)"
 
1366
    fi
 
1367
    AC_SUBST([INTLOBJS])
 
1368
 
 
1369
    dnl Enable libtool support if the surrounding package wishes it.
 
1370
    INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix
 
1371
    AC_SUBST([INTL_LIBTOOL_SUFFIX_PREFIX])
 
1372
  ])
 
1373
 
 
1374
  dnl For backward compatibility. Some Makefiles may be using this.
 
1375
  INTLLIBS="$LIBINTL"
 
1376
  AC_SUBST([INTLLIBS])
 
1377
 
 
1378
  dnl Make all documented variables known to autoconf.
 
1379
  AC_SUBST([LIBINTL])
 
1380
  AC_SUBST([LTLIBINTL])
 
1381
  AC_SUBST([POSUB])
 
1382
])
 
1383
 
 
1384
 
 
1385
dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized.
 
1386
m4_define([gt_NEEDS_INIT],
 
1387
[
 
1388
  m4_divert_text([DEFAULTS], [gt_needs=])
 
1389
  m4_define([gt_NEEDS_INIT], [])
 
1390
])
 
1391
 
 
1392
 
 
1393
dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL])
 
1394
AC_DEFUN([AM_GNU_GETTEXT_NEED],
 
1395
[
 
1396
  m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"])
 
1397
])
 
1398
 
 
1399
 
 
1400
dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])
 
1401
AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
 
1402
 
 
1403
# iconv.m4 serial 11 (gettext-0.18.1)
 
1404
dnl Copyright (C) 2000-2002, 2007-2010 Free Software Foundation, Inc.
 
1405
dnl This file is free software; the Free Software Foundation
 
1406
dnl gives unlimited permission to copy and/or distribute it,
 
1407
dnl with or without modifications, as long as this notice is preserved.
 
1408
 
 
1409
dnl From Bruno Haible.
 
1410
 
 
1411
AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],
 
1412
[
 
1413
  dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
 
1414
  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
 
1415
  AC_REQUIRE([AC_LIB_RPATH])
 
1416
 
 
1417
  dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
 
1418
  dnl accordingly.
 
1419
  AC_LIB_LINKFLAGS_BODY([iconv])
 
1420
])
 
1421
 
 
1422
AC_DEFUN([AM_ICONV_LINK],
 
1423
[
 
1424
  dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
 
1425
  dnl those with the standalone portable GNU libiconv installed).
 
1426
  AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
 
1427
 
 
1428
  dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
 
1429
  dnl accordingly.
 
1430
  AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
 
1431
 
 
1432
  dnl Add $INCICONV to CPPFLAGS before performing the following checks,
 
1433
  dnl because if the user has installed libiconv and not disabled its use
 
1434
  dnl via --without-libiconv-prefix, he wants to use it. The first
 
1435
  dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed.
 
1436
  am_save_CPPFLAGS="$CPPFLAGS"
 
1437
  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
 
1438
 
 
1439
  AC_CACHE_CHECK([for iconv], [am_cv_func_iconv], [
 
1440
    am_cv_func_iconv="no, consider installing GNU libiconv"
 
1441
    am_cv_lib_iconv=no
 
1442
    AC_TRY_LINK([#include <stdlib.h>
 
1443
#include <iconv.h>],
 
1444
      [iconv_t cd = iconv_open("","");
 
1445
       iconv(cd,NULL,NULL,NULL,NULL);
 
1446
       iconv_close(cd);],
 
1447
      [am_cv_func_iconv=yes])
 
1448
    if test "$am_cv_func_iconv" != yes; then
 
1449
      am_save_LIBS="$LIBS"
 
1450
      LIBS="$LIBS $LIBICONV"
 
1451
      AC_TRY_LINK([#include <stdlib.h>
 
1452
#include <iconv.h>],
 
1453
        [iconv_t cd = iconv_open("","");
 
1454
         iconv(cd,NULL,NULL,NULL,NULL);
 
1455
         iconv_close(cd);],
 
1456
        [am_cv_lib_iconv=yes]
 
1457
        [am_cv_func_iconv=yes])
 
1458
      LIBS="$am_save_LIBS"
 
1459
    fi
 
1460
  ])
 
1461
  if test "$am_cv_func_iconv" = yes; then
 
1462
    AC_CACHE_CHECK([for working iconv], [am_cv_func_iconv_works], [
 
1463
      dnl This tests against bugs in AIX 5.1, HP-UX 11.11, Solaris 10.
 
1464
      am_save_LIBS="$LIBS"
 
1465
      if test $am_cv_lib_iconv = yes; then
 
1466
        LIBS="$LIBS $LIBICONV"
 
1467
      fi
 
1468
      AC_TRY_RUN([
 
1469
#include <iconv.h>
 
1470
#include <string.h>
 
1471
int main ()
 
1472
{
 
1473
  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
 
1474
     returns.  */
 
1475
  {
 
1476
    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
 
1477
    if (cd_utf8_to_88591 != (iconv_t)(-1))
 
1478
      {
 
1479
        static const char input[] = "\342\202\254"; /* EURO SIGN */
 
1480
        char buf[10];
 
1481
        const char *inptr = input;
 
1482
        size_t inbytesleft = strlen (input);
 
1483
        char *outptr = buf;
 
1484
        size_t outbytesleft = sizeof (buf);
 
1485
        size_t res = iconv (cd_utf8_to_88591,
 
1486
                            (char **) &inptr, &inbytesleft,
 
1487
                            &outptr, &outbytesleft);
 
1488
        if (res == 0)
 
1489
          return 1;
 
1490
      }
 
1491
  }
 
1492
  /* Test against Solaris 10 bug: Failures are not distinguishable from
 
1493
     successful returns.  */
 
1494
  {
 
1495
    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
 
1496
    if (cd_ascii_to_88591 != (iconv_t)(-1))
 
1497
      {
 
1498
        static const char input[] = "\263";
 
1499
        char buf[10];
 
1500
        const char *inptr = input;
 
1501
        size_t inbytesleft = strlen (input);
 
1502
        char *outptr = buf;
 
1503
        size_t outbytesleft = sizeof (buf);
 
1504
        size_t res = iconv (cd_ascii_to_88591,
 
1505
                            (char **) &inptr, &inbytesleft,
 
1506
                            &outptr, &outbytesleft);
 
1507
        if (res == 0)
 
1508
          return 1;
 
1509
      }
 
1510
  }
 
1511
#if 0 /* This bug could be worked around by the caller.  */
 
1512
  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
 
1513
  {
 
1514
    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
 
1515
    if (cd_88591_to_utf8 != (iconv_t)(-1))
 
1516
      {
 
1517
        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
 
1518
        char buf[50];
 
1519
        const char *inptr = input;
 
1520
        size_t inbytesleft = strlen (input);
 
1521
        char *outptr = buf;
 
1522
        size_t outbytesleft = sizeof (buf);
 
1523
        size_t res = iconv (cd_88591_to_utf8,
 
1524
                            (char **) &inptr, &inbytesleft,
 
1525
                            &outptr, &outbytesleft);
 
1526
        if ((int)res > 0)
 
1527
          return 1;
 
1528
      }
 
1529
  }
 
1530
#endif
 
1531
  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
 
1532
     provided.  */
 
1533
  if (/* Try standardized names.  */
 
1534
      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
 
1535
      /* Try IRIX, OSF/1 names.  */
 
1536
      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
 
1537
      /* Try AIX names.  */
 
1538
      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
 
1539
      /* Try HP-UX names.  */
 
1540
      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
 
1541
    return 1;
 
1542
  return 0;
 
1543
}], [am_cv_func_iconv_works=yes], [am_cv_func_iconv_works=no],
 
1544
        [case "$host_os" in
 
1545
           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
 
1546
           *)            am_cv_func_iconv_works="guessing yes" ;;
 
1547
         esac])
 
1548
      LIBS="$am_save_LIBS"
 
1549
    ])
 
1550
    case "$am_cv_func_iconv_works" in
 
1551
      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
 
1552
      *)   am_func_iconv=yes ;;
 
1553
    esac
 
1554
  else
 
1555
    am_func_iconv=no am_cv_lib_iconv=no
 
1556
  fi
 
1557
  if test "$am_func_iconv" = yes; then
 
1558
    AC_DEFINE([HAVE_ICONV], [1],
 
1559
      [Define if you have the iconv() function and it works.])
 
1560
  fi
 
1561
  if test "$am_cv_lib_iconv" = yes; then
 
1562
    AC_MSG_CHECKING([how to link with libiconv])
 
1563
    AC_MSG_RESULT([$LIBICONV])
 
1564
  else
 
1565
    dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
 
1566
    dnl either.
 
1567
    CPPFLAGS="$am_save_CPPFLAGS"
 
1568
    LIBICONV=
 
1569
    LTLIBICONV=
 
1570
  fi
 
1571
  AC_SUBST([LIBICONV])
 
1572
  AC_SUBST([LTLIBICONV])
 
1573
])
 
1574
 
 
1575
dnl Define AM_ICONV using AC_DEFUN_ONCE for Autoconf >= 2.64, in order to
 
1576
dnl avoid warnings like
 
1577
dnl "warning: AC_REQUIRE: `AM_ICONV' was expanded before it was required".
 
1578
dnl This is tricky because of the way 'aclocal' is implemented:
 
1579
dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN.
 
1580
dnl   Otherwise aclocal's initial scan pass would miss the macro definition.
 
1581
dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions.
 
1582
dnl   Otherwise aclocal would emit many "Use of uninitialized value $1"
 
1583
dnl   warnings.
 
1584
m4_define([gl_iconv_AC_DEFUN],
 
1585
  m4_version_prereq([2.64],
 
1586
    [[AC_DEFUN_ONCE(
 
1587
        [$1], [$2])]],
 
1588
    [[AC_DEFUN(
 
1589
        [$1], [$2])]]))
 
1590
gl_iconv_AC_DEFUN([AM_ICONV],
 
1591
[
 
1592
  AM_ICONV_LINK
 
1593
  if test "$am_cv_func_iconv" = yes; then
 
1594
    AC_MSG_CHECKING([for iconv declaration])
 
1595
    AC_CACHE_VAL([am_cv_proto_iconv], [
 
1596
      AC_TRY_COMPILE([
 
1597
#include <stdlib.h>
 
1598
#include <iconv.h>
 
1599
extern
 
1600
#ifdef __cplusplus
 
1601
"C"
 
1602
#endif
 
1603
#if defined(__STDC__) || defined(__cplusplus)
 
1604
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
 
1605
#else
 
1606
size_t iconv();
 
1607
#endif
 
1608
], [], [am_cv_proto_iconv_arg1=""], [am_cv_proto_iconv_arg1="const"])
 
1609
      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"])
 
1610
    am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
 
1611
    AC_MSG_RESULT([
 
1612
         $am_cv_proto_iconv])
 
1613
    AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1],
 
1614
      [Define as const if the declaration of iconv() needs const.])
 
1615
  fi
 
1616
])
 
1617
 
 
1618
# intlmacosx.m4 serial 3 (gettext-0.18)
 
1619
dnl Copyright (C) 2004-2010 Free Software Foundation, Inc.
 
1620
dnl This file is free software; the Free Software Foundation
 
1621
dnl gives unlimited permission to copy and/or distribute it,
 
1622
dnl with or without modifications, as long as this notice is preserved.
 
1623
dnl
 
1624
dnl This file can can be used in projects which are not available under
 
1625
dnl the GNU General Public License or the GNU Library General Public
 
1626
dnl License but which still want to provide support for the GNU gettext
 
1627
dnl functionality.
 
1628
dnl Please note that the actual code of the GNU gettext library is covered
 
1629
dnl by the GNU Library General Public License, and the rest of the GNU
 
1630
dnl gettext package package is covered by the GNU General Public License.
 
1631
dnl They are *not* in the public domain.
 
1632
 
 
1633
dnl Checks for special options needed on MacOS X.
 
1634
dnl Defines INTL_MACOSX_LIBS.
 
1635
AC_DEFUN([gt_INTL_MACOSX],
 
1636
[
 
1637
  dnl Check for API introduced in MacOS X 10.2.
 
1638
  AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
 
1639
    [gt_cv_func_CFPreferencesCopyAppValue],
 
1640
    [gt_save_LIBS="$LIBS"
 
1641
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
 
1642
     AC_TRY_LINK([#include <CoreFoundation/CFPreferences.h>],
 
1643
       [CFPreferencesCopyAppValue(NULL, NULL)],
 
1644
       [gt_cv_func_CFPreferencesCopyAppValue=yes],
 
1645
       [gt_cv_func_CFPreferencesCopyAppValue=no])
 
1646
     LIBS="$gt_save_LIBS"])
 
1647
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
 
1648
    AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], [1],
 
1649
      [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])
 
1650
  fi
 
1651
  dnl Check for API introduced in MacOS X 10.3.
 
1652
  AC_CACHE_CHECK([for CFLocaleCopyCurrent], [gt_cv_func_CFLocaleCopyCurrent],
 
1653
    [gt_save_LIBS="$LIBS"
 
1654
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
 
1655
     AC_TRY_LINK([#include <CoreFoundation/CFLocale.h>], [CFLocaleCopyCurrent();],
 
1656
       [gt_cv_func_CFLocaleCopyCurrent=yes],
 
1657
       [gt_cv_func_CFLocaleCopyCurrent=no])
 
1658
     LIBS="$gt_save_LIBS"])
 
1659
  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
1660
    AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], [1],
 
1661
      [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.])
 
1662
  fi
 
1663
  INTL_MACOSX_LIBS=
 
1664
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
1665
    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
 
1666
  fi
 
1667
  AC_SUBST([INTL_MACOSX_LIBS])
 
1668
])
 
1669
 
 
1670
# lib-ld.m4 serial 4 (gettext-0.18)
 
1671
dnl Copyright (C) 1996-2003, 2009-2010 Free Software Foundation, Inc.
 
1672
dnl This file is free software; the Free Software Foundation
 
1673
dnl gives unlimited permission to copy and/or distribute it,
 
1674
dnl with or without modifications, as long as this notice is preserved.
 
1675
 
 
1676
dnl Subroutines of libtool.m4,
 
1677
dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
 
1678
dnl with libtool.m4.
 
1679
 
 
1680
dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
 
1681
AC_DEFUN([AC_LIB_PROG_LD_GNU],
 
1682
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], [acl_cv_prog_gnu_ld],
 
1683
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
1684
case `$LD -v 2>&1 </dev/null` in
 
1685
*GNU* | *'with BFD'*)
 
1686
  acl_cv_prog_gnu_ld=yes ;;
 
1687
*)
 
1688
  acl_cv_prog_gnu_ld=no ;;
 
1689
esac])
 
1690
with_gnu_ld=$acl_cv_prog_gnu_ld
 
1691
])
 
1692
 
 
1693
dnl From libtool-1.4. Sets the variable LD.
 
1694
AC_DEFUN([AC_LIB_PROG_LD],
 
1695
[AC_ARG_WITH([gnu-ld],
 
1696
[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
 
1697
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
 
1698
AC_REQUIRE([AC_PROG_CC])dnl
 
1699
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
1700
# Prepare PATH_SEPARATOR.
 
1701
# The user is always right.
 
1702
if test "${PATH_SEPARATOR+set}" != set; then
 
1703
  echo "#! /bin/sh" >conf$$.sh
 
1704
  echo  "exit 0"   >>conf$$.sh
 
1705
  chmod +x conf$$.sh
 
1706
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
1707
    PATH_SEPARATOR=';'
 
1708
  else
 
1709
    PATH_SEPARATOR=:
 
1710
  fi
 
1711
  rm -f conf$$.sh
 
1712
fi
 
1713
ac_prog=ld
 
1714
if test "$GCC" = yes; then
 
1715
  # Check if gcc -print-prog-name=ld gives a path.
 
1716
  AC_MSG_CHECKING([for ld used by GCC])
 
1717
  case $host in
 
1718
  *-*-mingw*)
 
1719
    # gcc leaves a trailing carriage return which upsets mingw
 
1720
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
1721
  *)
 
1722
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
1723
  esac
 
1724
  case $ac_prog in
 
1725
    # Accept absolute paths.
 
1726
    [[\\/]* | [A-Za-z]:[\\/]*)]
 
1727
      [re_direlt='/[^/][^/]*/\.\./']
 
1728
      # Canonicalize the path of ld
 
1729
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
1730
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
1731
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
1732
      done
 
1733
      test -z "$LD" && LD="$ac_prog"
 
1734
      ;;
 
1735
  "")
 
1736
    # If it fails, then pretend we aren't using GCC.
 
1737
    ac_prog=ld
 
1738
    ;;
 
1739
  *)
 
1740
    # If it is relative, then search for the first ld in PATH.
 
1741
    with_gnu_ld=unknown
 
1742
    ;;
 
1743
  esac
 
1744
elif test "$with_gnu_ld" = yes; then
 
1745
  AC_MSG_CHECKING([for GNU ld])
 
1746
else
 
1747
  AC_MSG_CHECKING([for non-GNU ld])
 
1748
fi
 
1749
AC_CACHE_VAL([acl_cv_path_LD],
 
1750
[if test -z "$LD"; then
 
1751
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
1752
  for ac_dir in $PATH; do
 
1753
    test -z "$ac_dir" && ac_dir=.
 
1754
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
1755
      acl_cv_path_LD="$ac_dir/$ac_prog"
 
1756
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
1757
      # but apparently some GNU ld's only accept -v.
 
1758
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
1759
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
 
1760
      *GNU* | *'with BFD'*)
 
1761
        test "$with_gnu_ld" != no && break ;;
 
1762
      *)
 
1763
        test "$with_gnu_ld" != yes && break ;;
 
1764
      esac
 
1765
    fi
 
1766
  done
 
1767
  IFS="$ac_save_ifs"
 
1768
else
 
1769
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
497
1770
fi])
498
 
 
499
 
 
500
 
# gnome-common.m4
501
 
502
 
 
503
 
dnl GNOME_COMMON_INIT
504
 
 
505
 
AC_DEFUN([GNOME_COMMON_INIT],
506
 
[
507
 
  dnl this macro should come after AC_CONFIG_MACRO_DIR
508
 
  AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
509
 
 
510
 
  dnl ensure that when the Automake generated makefile calls aclocal,
511
 
  dnl it honours the $ACLOCAL_FLAGS environment variable
512
 
  ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
513
 
  if test -n "$ac_macro_dir"; then
514
 
    ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
515
 
  fi
516
 
 
517
 
  AC_SUBST([ACLOCAL_AMFLAGS])
518
 
])
519
 
 
520
 
AC_DEFUN([GNOME_DEBUG_CHECK],
521
 
[
522
 
        AC_ARG_ENABLE([debug],
523
 
                      AC_HELP_STRING([--enable-debug],
524
 
                                     [turn on debugging]),,
525
 
                      [enable_debug=no])
526
 
 
527
 
        if test x$enable_debug = xyes ; then
528
 
            AC_DEFINE(GNOME_ENABLE_DEBUG, 1,
529
 
                [Enable additional debugging at the expense of performance and size])
530
 
        fi
531
 
])
532
 
 
533
 
dnl GNOME_MAINTAINER_MODE_DEFINES ()
534
 
dnl define DISABLE_DEPRECATED
535
 
dnl
536
 
AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
537
 
[
538
 
        AC_REQUIRE([AM_MAINTAINER_MODE])
539
 
 
540
 
        DISABLE_DEPRECATED=""
541
 
        if test $USE_MAINTAINER_MODE = yes; then
542
 
                DOMAINS="G ATK PANGO GDK GDK_PIXBUF GTK GCONF BONOBO BONOBO_UI GNOME LIBGLADE VTE GNOME_VFS WNCK LIBSOUP"
543
 
                for DOMAIN in $DOMAINS; do
544
 
                       DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES"
545
 
                done
546
 
        fi
547
 
 
548
 
        AC_SUBST(DISABLE_DEPRECATED)
549
 
])
550
 
 
551
 
dnl GNOME_COMPILE_WARNINGS
552
 
dnl Turn on many useful compiler warnings
553
 
dnl For now, only works on GCC
554
 
AC_DEFUN([GNOME_COMPILE_WARNINGS],[
555
 
    dnl ******************************
556
 
    dnl More compiler warnings
557
 
    dnl ******************************
558
 
 
559
 
    AC_ARG_ENABLE(compile-warnings, 
560
 
                  AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
561
 
                                 [Turn on compiler warnings]),,
562
 
                  [enable_compile_warnings="m4_default([$1],[yes])"])
563
 
 
564
 
    warnCFLAGS=
565
 
    if test "x$GCC" != xyes; then
566
 
        enable_compile_warnings=no
567
 
    fi
568
 
 
569
 
    warning_flags=
570
 
    realsave_CFLAGS="$CFLAGS"
571
 
 
572
 
    case "$enable_compile_warnings" in
573
 
    no)
574
 
        warning_flags=
575
 
        ;;
576
 
    minimum)
577
 
        warning_flags="-Wall"
578
 
        ;;
579
 
    yes)
580
 
        warning_flags="-Wall -Wmissing-prototypes"
581
 
        ;;
582
 
    maximum|error)
583
 
        warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
584
 
        CFLAGS="$warning_flags $CFLAGS"
585
 
        for option in -Wno-sign-compare; do
586
 
                SAVE_CFLAGS="$CFLAGS"
587
 
                CFLAGS="$CFLAGS $option"
588
 
                AC_MSG_CHECKING([whether gcc understands $option])
589
 
                AC_TRY_COMPILE([], [],
590
 
                        has_option=yes,
591
 
                        has_option=no,)
592
 
                CFLAGS="$SAVE_CFLAGS"
593
 
                AC_MSG_RESULT($has_option)
594
 
                if test $has_option = yes; then
595
 
                  warning_flags="$warning_flags $option"
596
 
                fi
597
 
                unset has_option
598
 
                unset SAVE_CFLAGS
599
 
        done
600
 
        unset option
601
 
        if test "$enable_compile_warnings" = "error" ; then
602
 
            warning_flags="$warning_flags -Werror"
603
 
        fi
604
 
        ;;
605
 
    *)
606
 
        AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
607
 
        ;;
 
1771
LD="$acl_cv_path_LD"
 
1772
if test -n "$LD"; then
 
1773
  AC_MSG_RESULT([$LD])
 
1774
else
 
1775
  AC_MSG_RESULT([no])
 
1776
fi
 
1777
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
 
1778
AC_LIB_PROG_LD_GNU
 
1779
])
 
1780
 
 
1781
# lib-link.m4 serial 21 (gettext-0.18)
 
1782
dnl Copyright (C) 2001-2010 Free Software Foundation, Inc.
 
1783
dnl This file is free software; the Free Software Foundation
 
1784
dnl gives unlimited permission to copy and/or distribute it,
 
1785
dnl with or without modifications, as long as this notice is preserved.
 
1786
 
 
1787
dnl From Bruno Haible.
 
1788
 
 
1789
AC_PREREQ([2.54])
 
1790
 
 
1791
dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
 
1792
dnl the libraries corresponding to explicit and implicit dependencies.
 
1793
dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
 
1794
dnl augments the CPPFLAGS variable.
 
1795
dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
 
1796
dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
 
1797
AC_DEFUN([AC_LIB_LINKFLAGS],
 
1798
[
 
1799
  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
 
1800
  AC_REQUIRE([AC_LIB_RPATH])
 
1801
  pushdef([Name],[translit([$1],[./-], [___])])
 
1802
  pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
 
1803
                                [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
 
1804
  AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
 
1805
    AC_LIB_LINKFLAGS_BODY([$1], [$2])
 
1806
    ac_cv_lib[]Name[]_libs="$LIB[]NAME"
 
1807
    ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
 
1808
    ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
 
1809
    ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX"
 
1810
  ])
 
1811
  LIB[]NAME="$ac_cv_lib[]Name[]_libs"
 
1812
  LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
 
1813
  INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
 
1814
  LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix"
 
1815
  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
 
1816
  AC_SUBST([LIB]NAME)
 
1817
  AC_SUBST([LTLIB]NAME)
 
1818
  AC_SUBST([LIB]NAME[_PREFIX])
 
1819
  dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
 
1820
  dnl results of this search when this library appears as a dependency.
 
1821
  HAVE_LIB[]NAME=yes
 
1822
  popdef([NAME])
 
1823
  popdef([Name])
 
1824
])
 
1825
 
 
1826
dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode, [missing-message])
 
1827
dnl searches for libname and the libraries corresponding to explicit and
 
1828
dnl implicit dependencies, together with the specified include files and
 
1829
dnl the ability to compile and link the specified testcode. The missing-message
 
1830
dnl defaults to 'no' and may contain additional hints for the user.
 
1831
dnl If found, it sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME}
 
1832
dnl and LTLIB${NAME} variables and augments the CPPFLAGS variable, and
 
1833
dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
 
1834
dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
 
1835
dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
 
1836
dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
 
1837
AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
 
1838
[
 
1839
  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
 
1840
  AC_REQUIRE([AC_LIB_RPATH])
 
1841
  pushdef([Name],[translit([$1],[./-], [___])])
 
1842
  pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
 
1843
                                [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
 
1844
 
 
1845
  dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
 
1846
  dnl accordingly.
 
1847
  AC_LIB_LINKFLAGS_BODY([$1], [$2])
 
1848
 
 
1849
  dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
 
1850
  dnl because if the user has installed lib[]Name and not disabled its use
 
1851
  dnl via --without-lib[]Name-prefix, he wants to use it.
 
1852
  ac_save_CPPFLAGS="$CPPFLAGS"
 
1853
  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
 
1854
 
 
1855
  AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
 
1856
    ac_save_LIBS="$LIBS"
 
1857
    dnl If $LIB[]NAME contains some -l options, add it to the end of LIBS,
 
1858
    dnl because these -l options might require -L options that are present in
 
1859
    dnl LIBS. -l options benefit only from the -L options listed before it.
 
1860
    dnl Otherwise, add it to the front of LIBS, because it may be a static
 
1861
    dnl library that depends on another static library that is present in LIBS.
 
1862
    dnl Static libraries benefit only from the static libraries listed after
 
1863
    dnl it.
 
1864
    case " $LIB[]NAME" in
 
1865
      *" -l"*) LIBS="$LIBS $LIB[]NAME" ;;
 
1866
      *)       LIBS="$LIB[]NAME $LIBS" ;;
608
1867
    esac
609
 
    CFLAGS="$realsave_CFLAGS"
610
 
    AC_MSG_CHECKING(what warning flags to pass to the C compiler)
611
 
    AC_MSG_RESULT($warning_flags)
612
 
 
613
 
    AC_ARG_ENABLE(iso-c,
614
 
                  AC_HELP_STRING([--enable-iso-c],
615
 
                                 [Try to warn if code is not ISO C ]),,
616
 
                  [enable_iso_c=no])
617
 
 
618
 
    AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
619
 
    complCFLAGS=
620
 
    if test "x$enable_iso_c" != "xno"; then
621
 
        if test "x$GCC" = "xyes"; then
622
 
        case " $CFLAGS " in
623
 
            *[\ \       ]-ansi[\ \      ]*) ;;
624
 
            *) complCFLAGS="$complCFLAGS -ansi" ;;
625
 
        esac
626
 
        case " $CFLAGS " in
627
 
            *[\ \       ]-pedantic[\ \  ]*) ;;
628
 
            *) complCFLAGS="$complCFLAGS -pedantic" ;;
629
 
        esac
630
 
        fi
631
 
    fi
632
 
    AC_MSG_RESULT($complCFLAGS)
633
 
 
634
 
    WARN_CFLAGS="$warning_flags $complCFLAGS"
635
 
    AC_SUBST(WARN_CFLAGS)
636
 
])
637
 
 
638
 
dnl For C++, do basically the same thing.
639
 
 
640
 
AC_DEFUN([GNOME_CXX_WARNINGS],[
641
 
  AC_ARG_ENABLE(cxx-warnings,
642
 
                AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
643
 
                               [Turn on compiler warnings.]),,
644
 
                [enable_cxx_warnings="m4_default([$1],[minimum])"])
645
 
 
646
 
  AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
647
 
  warnCXXFLAGS=
648
 
  if test "x$GXX" != xyes; then
649
 
    enable_cxx_warnings=no
650
 
  fi
651
 
  if test "x$enable_cxx_warnings" != "xno"; then
652
 
    if test "x$GXX" = "xyes"; then
653
 
      case " $CXXFLAGS " in
654
 
      *[\ \     ]-Wall[\ \      ]*) ;;
655
 
      *) warnCXXFLAGS="-Wall -Wno-unused" ;;
656
 
      esac
657
 
 
658
 
      ## -W is not all that useful.  And it cannot be controlled
659
 
      ## with individual -Wno-xxx flags, unlike -Wall
660
 
      if test "x$enable_cxx_warnings" = "xyes"; then
661
 
        warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
662
 
      fi
663
 
    fi
664
 
  fi
665
 
  AC_MSG_RESULT($warnCXXFLAGS)
666
 
 
667
 
   AC_ARG_ENABLE(iso-cxx,
668
 
                 AC_HELP_STRING([--enable-iso-cxx],
669
 
                                [Try to warn if code is not ISO C++ ]),,
670
 
                 [enable_iso_cxx=no])
671
 
 
672
 
   AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
673
 
   complCXXFLAGS=
674
 
   if test "x$enable_iso_cxx" != "xno"; then
675
 
     if test "x$GXX" = "xyes"; then
676
 
      case " $CXXFLAGS " in
677
 
      *[\ \     ]-ansi[\ \      ]*) ;;
678
 
      *) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
679
 
      esac
680
 
 
681
 
      case " $CXXFLAGS " in
682
 
      *[\ \     ]-pedantic[\ \  ]*) ;;
683
 
      *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
684
 
      esac
685
 
     fi
686
 
   fi
687
 
  AC_MSG_RESULT($complCXXFLAGS)
688
 
 
689
 
  WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
690
 
  AC_SUBST(WARN_CXXFLAGS)
691
 
])
692
 
 
693
 
dnl Do not call GNOME_DOC_DEFINES directly.  It is split out from
694
 
dnl GNOME_DOC_INIT to allow gnome-doc-utils to bootstrap off itself.
695
 
AC_DEFUN([GNOME_DOC_DEFINES],
696
 
[
697
 
AC_ARG_WITH([help-dir],
698
 
  AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),,
699
 
  [with_help_dir='${datadir}/gnome/help'])
700
 
HELP_DIR="$with_help_dir"
701
 
AC_SUBST(HELP_DIR)
702
 
 
703
 
AC_ARG_WITH([omf-dir],
704
 
  AC_HELP_STRING([--with-omf-dir=DIR], [path to OMF files]),,
705
 
  [with_omf_dir='${datadir}/omf'])
706
 
OMF_DIR="$with_omf_dir"
707
 
AC_SUBST(OMF_DIR)
708
 
 
709
 
AC_ARG_WITH([help-formats],
710
 
  AC_HELP_STRING([--with-help-formats=FORMATS], [list of formats]),,
711
 
  [with_help_formats=''])
712
 
DOC_USER_FORMATS="$with_help_formats"
713
 
AC_SUBST(DOC_USER_FORMATS)
714
 
 
715
 
AC_ARG_ENABLE([scrollkeeper],
716
 
        [AC_HELP_STRING([--disable-scrollkeeper],
717
 
                        [do not make updates to the scrollkeeper database])],,
718
 
        enable_scrollkeeper=yes)
719
 
AM_CONDITIONAL([ENABLE_SK],[test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"])
720
 
 
721
 
dnl disable scrollkeeper automatically for distcheck
722
 
DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS"
723
 
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
724
 
 
725
 
AM_CONDITIONAL([HAVE_GNOME_DOC_UTILS],[test "$gdu_cv_have_gdu" = "yes"])
726
 
])
727
 
 
728
 
# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
729
 
#
730
 
AC_DEFUN([GNOME_DOC_INIT],
731
 
[AC_REQUIRE([AC_PROG_LN_S])dnl
732
 
 
733
 
ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1])
734
 
 
735
 
AC_MSG_CHECKING([gnome-doc-utils >= $gdu_cv_version_required])
736
 
PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required],
737
 
        [gdu_cv_have_gdu=yes],[gdu_cv_have_gdu=no])
738
 
 
739
 
if test "$gdu_cv_have_gdu" = "yes"; then
740
 
        AC_MSG_RESULT([yes])
741
 
        ifelse([$2],,[:],[$2])
742
 
else
743
 
        AC_MSG_RESULT([no])
744
 
        ifelse([$3],,[AC_MSG_ERROR([gnome-doc-utils >= $gdu_cv_version_required not found])],[$3])
745
 
fi
746
 
 
747
 
GNOME_DOC_DEFINES
748
 
])
749
 
 
750
 
dnl -*- mode: autoconf -*-
751
 
 
752
 
# serial 1
753
 
 
754
 
dnl Usage:
755
 
dnl   GTK_DOC_CHECK([minimum-gtk-doc-version])
756
 
AC_DEFUN([GTK_DOC_CHECK],
757
 
[
758
 
  AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
759
 
  AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
760
 
  dnl for overriding the documentation installation directory
761
 
  AC_ARG_WITH([html-dir],
762
 
    AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
763
 
    [with_html_dir='${datadir}/gtk-doc/html'])
764
 
  HTML_DIR="$with_html_dir"
765
 
  AC_SUBST([HTML_DIR])
766
 
 
767
 
  dnl enable/disable documentation building
768
 
  AC_ARG_ENABLE([gtk-doc],
769
 
    AS_HELP_STRING([--enable-gtk-doc],
770
 
                   [use gtk-doc to build documentation [[default=no]]]),,
771
 
    [enable_gtk_doc=no])
772
 
 
773
 
  if test x$enable_gtk_doc = xyes; then
774
 
    ifelse([$1],[],
775
 
      [PKG_CHECK_EXISTS([gtk-doc],,
776
 
                        AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
777
 
      [PKG_CHECK_EXISTS([gtk-doc >= $1],,
778
 
                        AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build gtk-doc]))])
779
 
  fi
780
 
 
781
 
  AC_MSG_CHECKING([whether to build gtk-doc documentation])
782
 
  AC_MSG_RESULT($enable_gtk_doc)
783
 
 
784
 
  AC_PATH_PROGS(GTKDOC_CHECK,gtkdoc-check,)
785
 
 
786
 
  AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
787
 
  AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
788
 
])
789
 
 
790
 
 
791
 
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
792
 
# serial 40 IT_PROG_INTLTOOL
793
 
AC_DEFUN([IT_PROG_INTLTOOL], [
794
 
AC_PREREQ([2.50])dnl
795
 
AC_REQUIRE([AM_NLS])dnl
796
 
 
797
 
case "$am__api_version" in
798
 
    1.[01234])
799
 
        AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
800
 
    ;;
801
 
    *)
802
 
    ;;
803
 
esac
804
 
 
805
 
if test -n "$1"; then
806
 
    AC_MSG_CHECKING([for intltool >= $1])
807
 
 
808
 
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
809
 
    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
810
 
    [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
811
 
    ]
812
 
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
813
 
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
814
 
        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
815
 
fi
816
 
 
817
 
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
818
 
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
819
 
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
820
 
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
821
 
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
822
 
fi
823
 
 
824
 
  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 $< [$]@' 
825
 
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 $< [$]@' 
826
 
     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 $< [$]@' 
827
 
     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 $< [$]@' 
828
 
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
829
 
     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 $< [$]@' 
830
 
   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 $< [$]@' 
831
 
    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 $< [$]@' 
832
 
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 $< [$]@' 
833
 
       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 $< [$]@' 
834
 
      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 $< [$]@' 
835
 
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' 
836
 
      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 $< [$]@' 
837
 
      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 $< [$]@' 
838
 
    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 $< [$]@' 
839
 
  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 $< [$]@' 
840
 
    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 $< [$]@' 
841
 
    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 $< [$]@'
842
 
   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 $< [$]@'
843
 
 
844
 
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
845
 
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
846
 
_IT_SUBST(INTLTOOL_KEYS_RULE)
847
 
_IT_SUBST(INTLTOOL_PROP_RULE)
848
 
_IT_SUBST(INTLTOOL_OAF_RULE)
849
 
_IT_SUBST(INTLTOOL_PONG_RULE)
850
 
_IT_SUBST(INTLTOOL_SERVER_RULE)
851
 
_IT_SUBST(INTLTOOL_SHEET_RULE)
852
 
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
853
 
_IT_SUBST(INTLTOOL_UI_RULE)
854
 
_IT_SUBST(INTLTOOL_XAM_RULE)
855
 
_IT_SUBST(INTLTOOL_KBD_RULE)
856
 
_IT_SUBST(INTLTOOL_XML_RULE)
857
 
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
858
 
_IT_SUBST(INTLTOOL_CAVES_RULE)
859
 
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
860
 
_IT_SUBST(INTLTOOL_THEME_RULE)
861
 
_IT_SUBST(INTLTOOL_SERVICE_RULE)
862
 
_IT_SUBST(INTLTOOL_POLICY_RULE)
863
 
 
864
 
# Check the gettext tools to make sure they are GNU
865
 
AC_PATH_PROG(XGETTEXT, xgettext)
866
 
AC_PATH_PROG(MSGMERGE, msgmerge)
867
 
AC_PATH_PROG(MSGFMT, msgfmt)
868
 
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
869
 
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
870
 
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
871
 
fi
872
 
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
873
 
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
874
 
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
875
 
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
876
 
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
877
 
fi
878
 
 
879
 
AC_PATH_PROG(INTLTOOL_PERL, perl)
880
 
if test -z "$INTLTOOL_PERL"; then
881
 
   AC_MSG_ERROR([perl not found])
882
 
fi
883
 
AC_MSG_CHECKING([for perl >= 5.8.1])
884
 
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
885
 
if test $? -ne 0; then
886
 
   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
887
 
else
888
 
   IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
889
 
   AC_MSG_RESULT([$IT_PERL_VERSION])
890
 
fi
891
 
if test "x$2" != "xno-xml"; then
892
 
   AC_MSG_CHECKING([for XML::Parser])
893
 
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
894
 
       AC_MSG_RESULT([ok])
895
 
   else
896
 
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
897
 
   fi
898
 
fi
899
 
 
900
 
# Substitute ALL_LINGUAS so we can use it in po/Makefile
901
 
AC_SUBST(ALL_LINGUAS)
902
 
 
903
 
# Set DATADIRNAME correctly if it is not set yet
904
 
# (copied from glib-gettext.m4)
905
 
if test -z "$DATADIRNAME"; then
906
 
  AC_LINK_IFELSE(
907
 
    [AC_LANG_PROGRAM([[]],
908
 
                     [[extern int _nl_msg_cat_cntr;
909
 
                       return _nl_msg_cat_cntr]])],
910
 
    [DATADIRNAME=share],
911
 
    [case $host in
912
 
    *-*-solaris*)
913
 
    dnl On Solaris, if bind_textdomain_codeset is in libc,
914
 
    dnl GNU format message catalog is always supported,
915
 
    dnl since both are added to the libc all together.
916
 
    dnl Hence, we'd like to go with DATADIRNAME=share
917
 
    dnl in this case.
918
 
    AC_CHECK_FUNC(bind_textdomain_codeset,
919
 
      [DATADIRNAME=share], [DATADIRNAME=lib])
920
 
    ;;
921
 
    *)
922
 
    [DATADIRNAME=lib]
923
 
    ;;
924
 
    esac])
925
 
fi
926
 
AC_SUBST(DATADIRNAME)
927
 
 
928
 
IT_PO_SUBDIR([po])
929
 
 
930
 
])
931
 
 
932
 
 
933
 
# IT_PO_SUBDIR(DIRNAME)
934
 
# ---------------------
935
 
# All po subdirs have to be declared with this macro; the subdir "po" is
936
 
# declared by IT_PROG_INTLTOOL.
937
 
#
938
 
AC_DEFUN([IT_PO_SUBDIR],
939
 
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
940
 
dnl
941
 
dnl The following CONFIG_COMMANDS should be exetuted at the very end
942
 
dnl of config.status.
943
 
AC_CONFIG_COMMANDS_PRE([
944
 
  AC_CONFIG_COMMANDS([$1/stamp-it], [
945
 
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
946
 
       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
947
 
    fi
948
 
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
949
 
    >"$1/stamp-it.tmp"
950
 
    [sed '/^#/d
951
 
         s/^[[].*] *//
952
 
         /^[    ]*$/d
953
 
        '"s|^|  $ac_top_srcdir/|" \
954
 
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
955
 
    ]
956
 
    [sed '/^POTFILES =/,/[^\\]$/ {
957
 
                /^POTFILES =/!d
958
 
                r $1/POTFILES
959
 
          }
960
 
         ' "$1/Makefile.in" >"$1/Makefile"]
961
 
    rm -f "$1/Makefile.tmp"
962
 
    mv "$1/stamp-it.tmp" "$1/stamp-it"
963
 
  ])
964
 
])dnl
965
 
])
966
 
 
967
 
# _IT_SUBST(VARIABLE)
968
 
# -------------------
969
 
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
970
 
#
971
 
AC_DEFUN([_IT_SUBST],
972
 
[
973
 
AC_SUBST([$1])
974
 
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
975
 
]
976
 
)
977
 
 
978
 
# deprecated macros
979
 
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
980
 
# A hint is needed for aclocal from Automake <= 1.9.4:
981
 
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
982
 
 
 
1868
    AC_TRY_LINK([$3], [$4],
 
1869
      [ac_cv_lib[]Name=yes],
 
1870
      [ac_cv_lib[]Name='m4_if([$5], [], [no], [[$5]])'])
 
1871
    LIBS="$ac_save_LIBS"
 
1872
  ])
 
1873
  if test "$ac_cv_lib[]Name" = yes; then
 
1874
    HAVE_LIB[]NAME=yes
 
1875
    AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the lib][$1 library.])
 
1876
    AC_MSG_CHECKING([how to link with lib[]$1])
 
1877
    AC_MSG_RESULT([$LIB[]NAME])
 
1878
  else
 
1879
    HAVE_LIB[]NAME=no
 
1880
    dnl If $LIB[]NAME didn't lead to a usable library, we don't need
 
1881
    dnl $INC[]NAME either.
 
1882
    CPPFLAGS="$ac_save_CPPFLAGS"
 
1883
    LIB[]NAME=
 
1884
    LTLIB[]NAME=
 
1885
    LIB[]NAME[]_PREFIX=
 
1886
  fi
 
1887
  AC_SUBST([HAVE_LIB]NAME)
 
1888
  AC_SUBST([LIB]NAME)
 
1889
  AC_SUBST([LTLIB]NAME)
 
1890
  AC_SUBST([LIB]NAME[_PREFIX])
 
1891
  popdef([NAME])
 
1892
  popdef([Name])
 
1893
])
 
1894
 
 
1895
dnl Determine the platform dependent parameters needed to use rpath:
 
1896
dnl   acl_libext,
 
1897
dnl   acl_shlibext,
 
1898
dnl   acl_hardcode_libdir_flag_spec,
 
1899
dnl   acl_hardcode_libdir_separator,
 
1900
dnl   acl_hardcode_direct,
 
1901
dnl   acl_hardcode_minus_L.
 
1902
AC_DEFUN([AC_LIB_RPATH],
 
1903
[
 
1904
  dnl Tell automake >= 1.10 to complain if config.rpath is missing.
 
1905
  m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
 
1906
  AC_REQUIRE([AC_PROG_CC])                dnl we use $CC, $GCC, $LDFLAGS
 
1907
  AC_REQUIRE([AC_LIB_PROG_LD])            dnl we use $LD, $with_gnu_ld
 
1908
  AC_REQUIRE([AC_CANONICAL_HOST])         dnl we use $host
 
1909
  AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
 
1910
  AC_CACHE_CHECK([for shared library run path origin], [acl_cv_rpath], [
 
1911
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
 
1912
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
 
1913
    . ./conftest.sh
 
1914
    rm -f ./conftest.sh
 
1915
    acl_cv_rpath=done
 
1916
  ])
 
1917
  wl="$acl_cv_wl"
 
1918
  acl_libext="$acl_cv_libext"
 
1919
  acl_shlibext="$acl_cv_shlibext"
 
1920
  acl_libname_spec="$acl_cv_libname_spec"
 
1921
  acl_library_names_spec="$acl_cv_library_names_spec"
 
1922
  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
 
1923
  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
 
1924
  acl_hardcode_direct="$acl_cv_hardcode_direct"
 
1925
  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
 
1926
  dnl Determine whether the user wants rpath handling at all.
 
1927
  AC_ARG_ENABLE([rpath],
 
1928
    [  --disable-rpath         do not hardcode runtime library paths],
 
1929
    :, enable_rpath=yes)
 
1930
])
 
1931
 
 
1932
dnl AC_LIB_FROMPACKAGE(name, package)
 
1933
dnl declares that libname comes from the given package. The configure file
 
1934
dnl will then not have a --with-libname-prefix option but a
 
1935
dnl --with-package-prefix option. Several libraries can come from the same
 
1936
dnl package. This declaration must occur before an AC_LIB_LINKFLAGS or similar
 
1937
dnl macro call that searches for libname.
 
1938
AC_DEFUN([AC_LIB_FROMPACKAGE],
 
1939
[
 
1940
  pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
 
1941
                                [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
 
1942
  define([acl_frompackage_]NAME, [$2])
 
1943
  popdef([NAME])
 
1944
  pushdef([PACK],[$2])
 
1945
  pushdef([PACKUP],[translit(PACK,[abcdefghijklmnopqrstuvwxyz./-],
 
1946
                                  [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
 
1947
  define([acl_libsinpackage_]PACKUP,
 
1948
    m4_ifdef([acl_libsinpackage_]PACKUP, [acl_libsinpackage_]PACKUP[[, ]],)[lib$1])
 
1949
  popdef([PACKUP])
 
1950
  popdef([PACK])
 
1951
])
 
1952
 
 
1953
dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
 
1954
dnl the libraries corresponding to explicit and implicit dependencies.
 
1955
dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
 
1956
dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found
 
1957
dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
 
1958
AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
 
1959
[
 
1960
  AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
 
1961
  pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
 
1962
                                [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
 
1963
  pushdef([PACK],[m4_ifdef([acl_frompackage_]NAME, [acl_frompackage_]NAME, lib[$1])])
 
1964
  pushdef([PACKUP],[translit(PACK,[abcdefghijklmnopqrstuvwxyz./-],
 
1965
                                  [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
 
1966
  pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])])
 
1967
  dnl Autoconf >= 2.61 supports dots in --with options.
 
1968
  pushdef([P_A_C_K],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit(PACK,[.],[_])],PACK)])
 
1969
  dnl By default, look in $includedir and $libdir.
 
1970
  use_additional=yes
 
1971
  AC_LIB_WITH_FINAL_PREFIX([
 
1972
    eval additional_includedir=\"$includedir\"
 
1973
    eval additional_libdir=\"$libdir\"
 
1974
  ])
 
1975
  AC_ARG_WITH(P_A_C_K[-prefix],
 
1976
[[  --with-]]P_A_C_K[[-prefix[=DIR]  search for ]PACKLIBS[ in DIR/include and DIR/lib
 
1977
  --without-]]P_A_C_K[[-prefix     don't search for ]PACKLIBS[ in includedir and libdir]],
 
1978
[
 
1979
    if test "X$withval" = "Xno"; then
 
1980
      use_additional=no
 
1981
    else
 
1982
      if test "X$withval" = "X"; then
 
1983
        AC_LIB_WITH_FINAL_PREFIX([
 
1984
          eval additional_includedir=\"$includedir\"
 
1985
          eval additional_libdir=\"$libdir\"
 
1986
        ])
 
1987
      else
 
1988
        additional_includedir="$withval/include"
 
1989
        additional_libdir="$withval/$acl_libdirstem"
 
1990
        if test "$acl_libdirstem2" != "$acl_libdirstem" \
 
1991
           && ! test -d "$withval/$acl_libdirstem"; then
 
1992
          additional_libdir="$withval/$acl_libdirstem2"
 
1993
        fi
 
1994
      fi
 
1995
    fi
 
1996
])
 
1997
  dnl Search the library and its dependencies in $additional_libdir and
 
1998
  dnl $LDFLAGS. Using breadth-first-seach.
 
1999
  LIB[]NAME=
 
2000
  LTLIB[]NAME=
 
2001
  INC[]NAME=
 
2002
  LIB[]NAME[]_PREFIX=
 
2003
  dnl HAVE_LIB${NAME} is an indicator that LIB${NAME}, LTLIB${NAME} have been
 
2004
  dnl computed. So it has to be reset here.
 
2005
  HAVE_LIB[]NAME=
 
2006
  rpathdirs=
 
2007
  ltrpathdirs=
 
2008
  names_already_handled=
 
2009
  names_next_round='$1 $2'
 
2010
  while test -n "$names_next_round"; do
 
2011
    names_this_round="$names_next_round"
 
2012
    names_next_round=
 
2013
    for name in $names_this_round; do
 
2014
      already_handled=
 
2015
      for n in $names_already_handled; do
 
2016
        if test "$n" = "$name"; then
 
2017
          already_handled=yes
 
2018
          break
 
2019
        fi
 
2020
      done
 
2021
      if test -z "$already_handled"; then
 
2022
        names_already_handled="$names_already_handled $name"
 
2023
        dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
 
2024
        dnl or AC_LIB_HAVE_LINKFLAGS call.
 
2025
        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
2026
        eval value=\"\$HAVE_LIB$uppername\"
 
2027
        if test -n "$value"; then
 
2028
          if test "$value" = yes; then
 
2029
            eval value=\"\$LIB$uppername\"
 
2030
            test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
 
2031
            eval value=\"\$LTLIB$uppername\"
 
2032
            test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
 
2033
          else
 
2034
            dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
 
2035
            dnl that this library doesn't exist. So just drop it.
 
2036
            :
 
2037
          fi
 
2038
        else
 
2039
          dnl Search the library lib$name in $additional_libdir and $LDFLAGS
 
2040
          dnl and the already constructed $LIBNAME/$LTLIBNAME.
 
2041
          found_dir=
 
2042
          found_la=
 
2043
          found_so=
 
2044
          found_a=
 
2045
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
2046
          if test -n "$acl_shlibext"; then
 
2047
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
2048
          else
 
2049
            shrext=
 
2050
          fi
 
2051
          if test $use_additional = yes; then
 
2052
            dir="$additional_libdir"
 
2053
            dnl The same code as in the loop below:
 
2054
            dnl First look for a shared library.
 
2055
            if test -n "$acl_shlibext"; then
 
2056
              if test -f "$dir/$libname$shrext"; then
 
2057
                found_dir="$dir"
 
2058
                found_so="$dir/$libname$shrext"
 
2059
              else
 
2060
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
2061
                  ver=`(cd "$dir" && \
 
2062
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
2063
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
2064
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
2065
                        | sed 1q ) 2>/dev/null`
 
2066
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
2067
                    found_dir="$dir"
 
2068
                    found_so="$dir/$libname$shrext.$ver"
 
2069
                  fi
 
2070
                else
 
2071
                  eval library_names=\"$acl_library_names_spec\"
 
2072
                  for f in $library_names; do
 
2073
                    if test -f "$dir/$f"; then
 
2074
                      found_dir="$dir"
 
2075
                      found_so="$dir/$f"
 
2076
                      break
 
2077
                    fi
 
2078
                  done
 
2079
                fi
 
2080
              fi
 
2081
            fi
 
2082
            dnl Then look for a static library.
 
2083
            if test "X$found_dir" = "X"; then
 
2084
              if test -f "$dir/$libname.$acl_libext"; then
 
2085
                found_dir="$dir"
 
2086
                found_a="$dir/$libname.$acl_libext"
 
2087
              fi
 
2088
            fi
 
2089
            if test "X$found_dir" != "X"; then
 
2090
              if test -f "$dir/$libname.la"; then
 
2091
                found_la="$dir/$libname.la"
 
2092
              fi
 
2093
            fi
 
2094
          fi
 
2095
          if test "X$found_dir" = "X"; then
 
2096
            for x in $LDFLAGS $LTLIB[]NAME; do
 
2097
              AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
 
2098
              case "$x" in
 
2099
                -L*)
 
2100
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
2101
                  dnl First look for a shared library.
 
2102
                  if test -n "$acl_shlibext"; then
 
2103
                    if test -f "$dir/$libname$shrext"; then
 
2104
                      found_dir="$dir"
 
2105
                      found_so="$dir/$libname$shrext"
 
2106
                    else
 
2107
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
2108
                        ver=`(cd "$dir" && \
 
2109
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
2110
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
2111
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
2112
                              | sed 1q ) 2>/dev/null`
 
2113
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
2114
                          found_dir="$dir"
 
2115
                          found_so="$dir/$libname$shrext.$ver"
 
2116
                        fi
 
2117
                      else
 
2118
                        eval library_names=\"$acl_library_names_spec\"
 
2119
                        for f in $library_names; do
 
2120
                          if test -f "$dir/$f"; then
 
2121
                            found_dir="$dir"
 
2122
                            found_so="$dir/$f"
 
2123
                            break
 
2124
                          fi
 
2125
                        done
 
2126
                      fi
 
2127
                    fi
 
2128
                  fi
 
2129
                  dnl Then look for a static library.
 
2130
                  if test "X$found_dir" = "X"; then
 
2131
                    if test -f "$dir/$libname.$acl_libext"; then
 
2132
                      found_dir="$dir"
 
2133
                      found_a="$dir/$libname.$acl_libext"
 
2134
                    fi
 
2135
                  fi
 
2136
                  if test "X$found_dir" != "X"; then
 
2137
                    if test -f "$dir/$libname.la"; then
 
2138
                      found_la="$dir/$libname.la"
 
2139
                    fi
 
2140
                  fi
 
2141
                  ;;
 
2142
              esac
 
2143
              if test "X$found_dir" != "X"; then
 
2144
                break
 
2145
              fi
 
2146
            done
 
2147
          fi
 
2148
          if test "X$found_dir" != "X"; then
 
2149
            dnl Found the library.
 
2150
            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
 
2151
            if test "X$found_so" != "X"; then
 
2152
              dnl Linking with a shared library. We attempt to hardcode its
 
2153
              dnl directory into the executable's runpath, unless it's the
 
2154
              dnl standard /usr/lib.
 
2155
              if test "$enable_rpath" = no \
 
2156
                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
 
2157
                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
 
2158
                dnl No hardcoding is needed.
 
2159
                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
 
2160
              else
 
2161
                dnl Use an explicit option to hardcode DIR into the resulting
 
2162
                dnl binary.
 
2163
                dnl Potentially add DIR to ltrpathdirs.
 
2164
                dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
 
2165
                haveit=
 
2166
                for x in $ltrpathdirs; do
 
2167
                  if test "X$x" = "X$found_dir"; then
 
2168
                    haveit=yes
 
2169
                    break
 
2170
                  fi
 
2171
                done
 
2172
                if test -z "$haveit"; then
 
2173
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
2174
                fi
 
2175
                dnl The hardcoding into $LIBNAME is system dependent.
 
2176
                if test "$acl_hardcode_direct" = yes; then
 
2177
                  dnl Using DIR/libNAME.so during linking hardcodes DIR into the
 
2178
                  dnl resulting binary.
 
2179
                  LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
 
2180
                else
 
2181
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
 
2182
                    dnl Use an explicit option to hardcode DIR into the resulting
 
2183
                    dnl binary.
 
2184
                    LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
 
2185
                    dnl Potentially add DIR to rpathdirs.
 
2186
                    dnl The rpathdirs will be appended to $LIBNAME at the end.
 
2187
                    haveit=
 
2188
                    for x in $rpathdirs; do
 
2189
                      if test "X$x" = "X$found_dir"; then
 
2190
                        haveit=yes
 
2191
                        break
 
2192
                      fi
 
2193
                    done
 
2194
                    if test -z "$haveit"; then
 
2195
                      rpathdirs="$rpathdirs $found_dir"
 
2196
                    fi
 
2197
                  else
 
2198
                    dnl Rely on "-L$found_dir".
 
2199
                    dnl But don't add it if it's already contained in the LDFLAGS
 
2200
                    dnl or the already constructed $LIBNAME
 
2201
                    haveit=
 
2202
                    for x in $LDFLAGS $LIB[]NAME; do
 
2203
                      AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
 
2204
                      if test "X$x" = "X-L$found_dir"; then
 
2205
                        haveit=yes
 
2206
                        break
 
2207
                      fi
 
2208
                    done
 
2209
                    if test -z "$haveit"; then
 
2210
                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
 
2211
                    fi
 
2212
                    if test "$acl_hardcode_minus_L" != no; then
 
2213
                      dnl FIXME: Not sure whether we should use
 
2214
                      dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
 
2215
                      dnl here.
 
2216
                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
 
2217
                    else
 
2218
                      dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH
 
2219
                      dnl here, because this doesn't fit in flags passed to the
 
2220
                      dnl compiler. So give up. No hardcoding. This affects only
 
2221
                      dnl very old systems.
 
2222
                      dnl FIXME: Not sure whether we should use
 
2223
                      dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
 
2224
                      dnl here.
 
2225
                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
 
2226
                    fi
 
2227
                  fi
 
2228
                fi
 
2229
              fi
 
2230
            else
 
2231
              if test "X$found_a" != "X"; then
 
2232
                dnl Linking with a static library.
 
2233
                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
 
2234
              else
 
2235
                dnl We shouldn't come here, but anyway it's good to have a
 
2236
                dnl fallback.
 
2237
                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
 
2238
              fi
 
2239
            fi
 
2240
            dnl Assume the include files are nearby.
 
2241
            additional_includedir=
 
2242
            case "$found_dir" in
 
2243
              */$acl_libdirstem | */$acl_libdirstem/)
 
2244
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
2245
                if test "$name" = '$1'; then
 
2246
                  LIB[]NAME[]_PREFIX="$basedir"
 
2247
                fi
 
2248
                additional_includedir="$basedir/include"
 
2249
                ;;
 
2250
              */$acl_libdirstem2 | */$acl_libdirstem2/)
 
2251
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
 
2252
                if test "$name" = '$1'; then
 
2253
                  LIB[]NAME[]_PREFIX="$basedir"
 
2254
                fi
 
2255
                additional_includedir="$basedir/include"
 
2256
                ;;
 
2257
            esac
 
2258
            if test "X$additional_includedir" != "X"; then
 
2259
              dnl Potentially add $additional_includedir to $INCNAME.
 
2260
              dnl But don't add it
 
2261
              dnl   1. if it's the standard /usr/include,
 
2262
              dnl   2. if it's /usr/local/include and we are using GCC on Linux,
 
2263
              dnl   3. if it's already present in $CPPFLAGS or the already
 
2264
              dnl      constructed $INCNAME,
 
2265
              dnl   4. if it doesn't exist as a directory.
 
2266
              if test "X$additional_includedir" != "X/usr/include"; then
 
2267
                haveit=
 
2268
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
2269
                  if test -n "$GCC"; then
 
2270
                    case $host_os in
 
2271
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
2272
                    esac
 
2273
                  fi
 
2274
                fi
 
2275
                if test -z "$haveit"; then
 
2276
                  for x in $CPPFLAGS $INC[]NAME; do
 
2277
                    AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
 
2278
                    if test "X$x" = "X-I$additional_includedir"; then
 
2279
                      haveit=yes
 
2280
                      break
 
2281
                    fi
 
2282
                  done
 
2283
                  if test -z "$haveit"; then
 
2284
                    if test -d "$additional_includedir"; then
 
2285
                      dnl Really add $additional_includedir to $INCNAME.
 
2286
                      INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
 
2287
                    fi
 
2288
                  fi
 
2289
                fi
 
2290
              fi
 
2291
            fi
 
2292
            dnl Look for dependencies.
 
2293
            if test -n "$found_la"; then
 
2294
              dnl Read the .la file. It defines the variables
 
2295
              dnl dlname, library_names, old_library, dependency_libs, current,
 
2296
              dnl age, revision, installed, dlopen, dlpreopen, libdir.
 
2297
              save_libdir="$libdir"
 
2298
              case "$found_la" in
 
2299
                */* | *\\*) . "$found_la" ;;
 
2300
                *) . "./$found_la" ;;
 
2301
              esac
 
2302
              libdir="$save_libdir"
 
2303
              dnl We use only dependency_libs.
 
2304
              for dep in $dependency_libs; do
 
2305
                case "$dep" in
 
2306
                  -L*)
 
2307
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
2308
                    dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
 
2309
                    dnl But don't add it
 
2310
                    dnl   1. if it's the standard /usr/lib,
 
2311
                    dnl   2. if it's /usr/local/lib and we are using GCC on Linux,
 
2312
                    dnl   3. if it's already present in $LDFLAGS or the already
 
2313
                    dnl      constructed $LIBNAME,
 
2314
                    dnl   4. if it doesn't exist as a directory.
 
2315
                    if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
 
2316
                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
 
2317
                      haveit=
 
2318
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
 
2319
                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
 
2320
                        if test -n "$GCC"; then
 
2321
                          case $host_os in
 
2322
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
2323
                          esac
 
2324
                        fi
 
2325
                      fi
 
2326
                      if test -z "$haveit"; then
 
2327
                        haveit=
 
2328
                        for x in $LDFLAGS $LIB[]NAME; do
 
2329
                          AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
 
2330
                          if test "X$x" = "X-L$additional_libdir"; then
 
2331
                            haveit=yes
 
2332
                            break
 
2333
                          fi
 
2334
                        done
 
2335
                        if test -z "$haveit"; then
 
2336
                          if test -d "$additional_libdir"; then
 
2337
                            dnl Really add $additional_libdir to $LIBNAME.
 
2338
                            LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
 
2339
                          fi
 
2340
                        fi
 
2341
                        haveit=
 
2342
                        for x in $LDFLAGS $LTLIB[]NAME; do
 
2343
                          AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
 
2344
                          if test "X$x" = "X-L$additional_libdir"; then
 
2345
                            haveit=yes
 
2346
                            break
 
2347
                          fi
 
2348
                        done
 
2349
                        if test -z "$haveit"; then
 
2350
                          if test -d "$additional_libdir"; then
 
2351
                            dnl Really add $additional_libdir to $LTLIBNAME.
 
2352
                            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
 
2353
                          fi
 
2354
                        fi
 
2355
                      fi
 
2356
                    fi
 
2357
                    ;;
 
2358
                  -R*)
 
2359
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
2360
                    if test "$enable_rpath" != no; then
 
2361
                      dnl Potentially add DIR to rpathdirs.
 
2362
                      dnl The rpathdirs will be appended to $LIBNAME at the end.
 
2363
                      haveit=
 
2364
                      for x in $rpathdirs; do
 
2365
                        if test "X$x" = "X$dir"; then
 
2366
                          haveit=yes
 
2367
                          break
 
2368
                        fi
 
2369
                      done
 
2370
                      if test -z "$haveit"; then
 
2371
                        rpathdirs="$rpathdirs $dir"
 
2372
                      fi
 
2373
                      dnl Potentially add DIR to ltrpathdirs.
 
2374
                      dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
 
2375
                      haveit=
 
2376
                      for x in $ltrpathdirs; do
 
2377
                        if test "X$x" = "X$dir"; then
 
2378
                          haveit=yes
 
2379
                          break
 
2380
                        fi
 
2381
                      done
 
2382
                      if test -z "$haveit"; then
 
2383
                        ltrpathdirs="$ltrpathdirs $dir"
 
2384
                      fi
 
2385
                    fi
 
2386
                    ;;
 
2387
                  -l*)
 
2388
                    dnl Handle this in the next round.
 
2389
                    names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
2390
                    ;;
 
2391
                  *.la)
 
2392
                    dnl Handle this in the next round. Throw away the .la's
 
2393
                    dnl directory; it is already contained in a preceding -L
 
2394
                    dnl option.
 
2395
                    names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
2396
                    ;;
 
2397
                  *)
 
2398
                    dnl Most likely an immediate library name.
 
2399
                    LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
 
2400
                    LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
 
2401
                    ;;
 
2402
                esac
 
2403
              done
 
2404
            fi
 
2405
          else
 
2406
            dnl Didn't find the library; assume it is in the system directories
 
2407
            dnl known to the linker and runtime loader. (All the system
 
2408
            dnl directories known to the linker should also be known to the
 
2409
            dnl runtime loader, otherwise the system is severely misconfigured.)
 
2410
            LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
 
2411
            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
 
2412
          fi
 
2413
        fi
 
2414
      fi
 
2415
    done
 
2416
  done
 
2417
  if test "X$rpathdirs" != "X"; then
 
2418
    if test -n "$acl_hardcode_libdir_separator"; then
 
2419
      dnl Weird platform: only the last -rpath option counts, the user must
 
2420
      dnl pass all path elements in one option. We can arrange that for a
 
2421
      dnl single library, but not when more than one $LIBNAMEs are used.
 
2422
      alldirs=
 
2423
      for found_dir in $rpathdirs; do
 
2424
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
 
2425
      done
 
2426
      dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl.
 
2427
      acl_save_libdir="$libdir"
 
2428
      libdir="$alldirs"
 
2429
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
2430
      libdir="$acl_save_libdir"
 
2431
      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
 
2432
    else
 
2433
      dnl The -rpath options are cumulative.
 
2434
      for found_dir in $rpathdirs; do
 
2435
        acl_save_libdir="$libdir"
 
2436
        libdir="$found_dir"
 
2437
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
2438
        libdir="$acl_save_libdir"
 
2439
        LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
 
2440
      done
 
2441
    fi
 
2442
  fi
 
2443
  if test "X$ltrpathdirs" != "X"; then
 
2444
    dnl When using libtool, the option that works for both libraries and
 
2445
    dnl executables is -R. The -R options are cumulative.
 
2446
    for found_dir in $ltrpathdirs; do
 
2447
      LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
 
2448
    done
 
2449
  fi
 
2450
  popdef([P_A_C_K])
 
2451
  popdef([PACKLIBS])
 
2452
  popdef([PACKUP])
 
2453
  popdef([PACK])
 
2454
  popdef([NAME])
 
2455
])
 
2456
 
 
2457
dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
 
2458
dnl unless already present in VAR.
 
2459
dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
 
2460
dnl contains two or three consecutive elements that belong together.
 
2461
AC_DEFUN([AC_LIB_APPENDTOVAR],
 
2462
[
 
2463
  for element in [$2]; do
 
2464
    haveit=
 
2465
    for x in $[$1]; do
 
2466
      AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
 
2467
      if test "X$x" = "X$element"; then
 
2468
        haveit=yes
 
2469
        break
 
2470
      fi
 
2471
    done
 
2472
    if test -z "$haveit"; then
 
2473
      [$1]="${[$1]}${[$1]:+ }$element"
 
2474
    fi
 
2475
  done
 
2476
])
 
2477
 
 
2478
dnl For those cases where a variable contains several -L and -l options
 
2479
dnl referring to unknown libraries and directories, this macro determines the
 
2480
dnl necessary additional linker options for the runtime path.
 
2481
dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL])
 
2482
dnl sets LDADDVAR to linker options needed together with LIBSVALUE.
 
2483
dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed,
 
2484
dnl otherwise linking without libtool is assumed.
 
2485
AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS],
 
2486
[
 
2487
  AC_REQUIRE([AC_LIB_RPATH])
 
2488
  AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
 
2489
  $1=
 
2490
  if test "$enable_rpath" != no; then
 
2491
    if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
 
2492
      dnl Use an explicit option to hardcode directories into the resulting
 
2493
      dnl binary.
 
2494
      rpathdirs=
 
2495
      next=
 
2496
      for opt in $2; do
 
2497
        if test -n "$next"; then
 
2498
          dir="$next"
 
2499
          dnl No need to hardcode the standard /usr/lib.
 
2500
          if test "X$dir" != "X/usr/$acl_libdirstem" \
 
2501
             && test "X$dir" != "X/usr/$acl_libdirstem2"; then
 
2502
            rpathdirs="$rpathdirs $dir"
 
2503
          fi
 
2504
          next=
 
2505
        else
 
2506
          case $opt in
 
2507
            -L) next=yes ;;
 
2508
            -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
 
2509
                 dnl No need to hardcode the standard /usr/lib.
 
2510
                 if test "X$dir" != "X/usr/$acl_libdirstem" \
 
2511
                    && test "X$dir" != "X/usr/$acl_libdirstem2"; then
 
2512
                   rpathdirs="$rpathdirs $dir"
 
2513
                 fi
 
2514
                 next= ;;
 
2515
            *) next= ;;
 
2516
          esac
 
2517
        fi
 
2518
      done
 
2519
      if test "X$rpathdirs" != "X"; then
 
2520
        if test -n ""$3""; then
 
2521
          dnl libtool is used for linking. Use -R options.
 
2522
          for dir in $rpathdirs; do
 
2523
            $1="${$1}${$1:+ }-R$dir"
 
2524
          done
 
2525
        else
 
2526
          dnl The linker is used for linking directly.
 
2527
          if test -n "$acl_hardcode_libdir_separator"; then
 
2528
            dnl Weird platform: only the last -rpath option counts, the user
 
2529
            dnl must pass all path elements in one option.
 
2530
            alldirs=
 
2531
            for dir in $rpathdirs; do
 
2532
              alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
 
2533
            done
 
2534
            acl_save_libdir="$libdir"
 
2535
            libdir="$alldirs"
 
2536
            eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
2537
            libdir="$acl_save_libdir"
 
2538
            $1="$flag"
 
2539
          else
 
2540
            dnl The -rpath options are cumulative.
 
2541
            for dir in $rpathdirs; do
 
2542
              acl_save_libdir="$libdir"
 
2543
              libdir="$dir"
 
2544
              eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
2545
              libdir="$acl_save_libdir"
 
2546
              $1="${$1}${$1:+ }$flag"
 
2547
            done
 
2548
          fi
 
2549
        fi
 
2550
      fi
 
2551
    fi
 
2552
  fi
 
2553
  AC_SUBST([$1])
 
2554
])
 
2555
 
 
2556
# lib-prefix.m4 serial 7 (gettext-0.18)
 
2557
dnl Copyright (C) 2001-2005, 2008-2010 Free Software Foundation, Inc.
 
2558
dnl This file is free software; the Free Software Foundation
 
2559
dnl gives unlimited permission to copy and/or distribute it,
 
2560
dnl with or without modifications, as long as this notice is preserved.
 
2561
 
 
2562
dnl From Bruno Haible.
 
2563
 
 
2564
dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
 
2565
dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
 
2566
dnl require excessive bracketing.
 
2567
ifdef([AC_HELP_STRING],
 
2568
[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
 
2569
[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
 
2570
 
 
2571
dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
 
2572
dnl to access previously installed libraries. The basic assumption is that
 
2573
dnl a user will want packages to use other packages he previously installed
 
2574
dnl with the same --prefix option.
 
2575
dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
 
2576
dnl libraries, but is otherwise very convenient.
 
2577
AC_DEFUN([AC_LIB_PREFIX],
 
2578
[
 
2579
  AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
 
2580
  AC_REQUIRE([AC_PROG_CC])
 
2581
  AC_REQUIRE([AC_CANONICAL_HOST])
 
2582
  AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
 
2583
  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
 
2584
  dnl By default, look in $includedir and $libdir.
 
2585
  use_additional=yes
 
2586
  AC_LIB_WITH_FINAL_PREFIX([
 
2587
    eval additional_includedir=\"$includedir\"
 
2588
    eval additional_libdir=\"$libdir\"
 
2589
  ])
 
2590
  AC_LIB_ARG_WITH([lib-prefix],
 
2591
[  --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
 
2592
  --without-lib-prefix    don't search for libraries in includedir and libdir],
 
2593
[
 
2594
    if test "X$withval" = "Xno"; then
 
2595
      use_additional=no
 
2596
    else
 
2597
      if test "X$withval" = "X"; then
 
2598
        AC_LIB_WITH_FINAL_PREFIX([
 
2599
          eval additional_includedir=\"$includedir\"
 
2600
          eval additional_libdir=\"$libdir\"
 
2601
        ])
 
2602
      else
 
2603
        additional_includedir="$withval/include"
 
2604
        additional_libdir="$withval/$acl_libdirstem"
 
2605
      fi
 
2606
    fi
 
2607
])
 
2608
  if test $use_additional = yes; then
 
2609
    dnl Potentially add $additional_includedir to $CPPFLAGS.
 
2610
    dnl But don't add it
 
2611
    dnl   1. if it's the standard /usr/include,
 
2612
    dnl   2. if it's already present in $CPPFLAGS,
 
2613
    dnl   3. if it's /usr/local/include and we are using GCC on Linux,
 
2614
    dnl   4. if it doesn't exist as a directory.
 
2615
    if test "X$additional_includedir" != "X/usr/include"; then
 
2616
      haveit=
 
2617
      for x in $CPPFLAGS; do
 
2618
        AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
 
2619
        if test "X$x" = "X-I$additional_includedir"; then
 
2620
          haveit=yes
 
2621
          break
 
2622
        fi
 
2623
      done
 
2624
      if test -z "$haveit"; then
 
2625
        if test "X$additional_includedir" = "X/usr/local/include"; then
 
2626
          if test -n "$GCC"; then
 
2627
            case $host_os in
 
2628
              linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
2629
            esac
 
2630
          fi
 
2631
        fi
 
2632
        if test -z "$haveit"; then
 
2633
          if test -d "$additional_includedir"; then
 
2634
            dnl Really add $additional_includedir to $CPPFLAGS.
 
2635
            CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
 
2636
          fi
 
2637
        fi
 
2638
      fi
 
2639
    fi
 
2640
    dnl Potentially add $additional_libdir to $LDFLAGS.
 
2641
    dnl But don't add it
 
2642
    dnl   1. if it's the standard /usr/lib,
 
2643
    dnl   2. if it's already present in $LDFLAGS,
 
2644
    dnl   3. if it's /usr/local/lib and we are using GCC on Linux,
 
2645
    dnl   4. if it doesn't exist as a directory.
 
2646
    if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
 
2647
      haveit=
 
2648
      for x in $LDFLAGS; do
 
2649
        AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
 
2650
        if test "X$x" = "X-L$additional_libdir"; then
 
2651
          haveit=yes
 
2652
          break
 
2653
        fi
 
2654
      done
 
2655
      if test -z "$haveit"; then
 
2656
        if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
 
2657
          if test -n "$GCC"; then
 
2658
            case $host_os in
 
2659
              linux*) haveit=yes;;
 
2660
            esac
 
2661
          fi
 
2662
        fi
 
2663
        if test -z "$haveit"; then
 
2664
          if test -d "$additional_libdir"; then
 
2665
            dnl Really add $additional_libdir to $LDFLAGS.
 
2666
            LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
 
2667
          fi
 
2668
        fi
 
2669
      fi
 
2670
    fi
 
2671
  fi
 
2672
])
 
2673
 
 
2674
dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
 
2675
dnl acl_final_exec_prefix, containing the values to which $prefix and
 
2676
dnl $exec_prefix will expand at the end of the configure script.
 
2677
AC_DEFUN([AC_LIB_PREPARE_PREFIX],
 
2678
[
 
2679
  dnl Unfortunately, prefix and exec_prefix get only finally determined
 
2680
  dnl at the end of configure.
 
2681
  if test "X$prefix" = "XNONE"; then
 
2682
    acl_final_prefix="$ac_default_prefix"
 
2683
  else
 
2684
    acl_final_prefix="$prefix"
 
2685
  fi
 
2686
  if test "X$exec_prefix" = "XNONE"; then
 
2687
    acl_final_exec_prefix='${prefix}'
 
2688
  else
 
2689
    acl_final_exec_prefix="$exec_prefix"
 
2690
  fi
 
2691
  acl_save_prefix="$prefix"
 
2692
  prefix="$acl_final_prefix"
 
2693
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
 
2694
  prefix="$acl_save_prefix"
 
2695
])
 
2696
 
 
2697
dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
 
2698
dnl variables prefix and exec_prefix bound to the values they will have
 
2699
dnl at the end of the configure script.
 
2700
AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
 
2701
[
 
2702
  acl_save_prefix="$prefix"
 
2703
  prefix="$acl_final_prefix"
 
2704
  acl_save_exec_prefix="$exec_prefix"
 
2705
  exec_prefix="$acl_final_exec_prefix"
 
2706
  $1
 
2707
  exec_prefix="$acl_save_exec_prefix"
 
2708
  prefix="$acl_save_prefix"
 
2709
])
 
2710
 
 
2711
dnl AC_LIB_PREPARE_MULTILIB creates
 
2712
dnl - a variable acl_libdirstem, containing the basename of the libdir, either
 
2713
dnl   "lib" or "lib64" or "lib/64",
 
2714
dnl - a variable acl_libdirstem2, as a secondary possible value for
 
2715
dnl   acl_libdirstem, either the same as acl_libdirstem or "lib/sparcv9" or
 
2716
dnl   "lib/amd64".
 
2717
AC_DEFUN([AC_LIB_PREPARE_MULTILIB],
 
2718
[
 
2719
  dnl There is no formal standard regarding lib and lib64.
 
2720
  dnl On glibc systems, the current practice is that on a system supporting
 
2721
  dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under
 
2722
  dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. We determine
 
2723
  dnl the compiler's default mode by looking at the compiler's library search
 
2724
  dnl path. If at least one of its elements ends in /lib64 or points to a
 
2725
  dnl directory whose absolute pathname ends in /lib64, we assume a 64-bit ABI.
 
2726
  dnl Otherwise we use the default, namely "lib".
 
2727
  dnl On Solaris systems, the current practice is that on a system supporting
 
2728
  dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under
 
2729
  dnl $prefix/lib/64 (which is a symlink to either $prefix/lib/sparcv9 or
 
2730
  dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib.
 
2731
  AC_REQUIRE([AC_CANONICAL_HOST])
 
2732
  acl_libdirstem=lib
 
2733
  acl_libdirstem2=
 
2734
  case "$host_os" in
 
2735
    solaris*)
 
2736
      dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment
 
2737
      dnl <http://docs.sun.com/app/docs/doc/816-5138/dev-env?l=en&a=view>.
 
2738
      dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link."
 
2739
      dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the
 
2740
      dnl symlink is missing, so we set acl_libdirstem2 too.
 
2741
      AC_CACHE_CHECK([for 64-bit host], [gl_cv_solaris_64bit],
 
2742
        [AC_EGREP_CPP([sixtyfour bits], [
 
2743
#ifdef _LP64
 
2744
sixtyfour bits
 
2745
#endif
 
2746
           ], [gl_cv_solaris_64bit=yes], [gl_cv_solaris_64bit=no])
 
2747
        ])
 
2748
      if test $gl_cv_solaris_64bit = yes; then
 
2749
        acl_libdirstem=lib/64
 
2750
        case "$host_cpu" in
 
2751
          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
 
2752
          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
 
2753
        esac
 
2754
      fi
 
2755
      ;;
 
2756
    *)
 
2757
      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
 
2758
      if test -n "$searchpath"; then
 
2759
        acl_save_IFS="${IFS=    }"; IFS=":"
 
2760
        for searchdir in $searchpath; do
 
2761
          if test -d "$searchdir"; then
 
2762
            case "$searchdir" in
 
2763
              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
 
2764
              */../ | */.. )
 
2765
                # Better ignore directories of this form. They are misleading.
 
2766
                ;;
 
2767
              *) searchdir=`cd "$searchdir" && pwd`
 
2768
                 case "$searchdir" in
 
2769
                   */lib64 ) acl_libdirstem=lib64 ;;
 
2770
                 esac ;;
 
2771
            esac
 
2772
          fi
 
2773
        done
 
2774
        IFS="$acl_save_IFS"
 
2775
      fi
 
2776
      ;;
 
2777
  esac
 
2778
  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
 
2779
])
983
2780
 
984
2781
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
985
2782
#
986
2783
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
987
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
2784
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
 
2785
#                 Inc.
988
2786
#   Written by Gordon Matzigkeit, 1996
989
2787
#
990
2788
# This file is free software; the Free Software Foundation gives
993
2791
 
994
2792
m4_define([_LT_COPYING], [dnl
995
2793
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
996
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
2794
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
 
2795
#                 Inc.
997
2796
#   Written by Gordon Matzigkeit, 1996
998
2797
#
999
2798
#   This file is part of GNU Libtool.
1020
2819
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1021
2820
])
1022
2821
 
1023
 
# serial 56 LT_INIT
 
2822
# serial 57 LT_INIT
1024
2823
 
1025
2824
 
1026
2825
# LT_PREREQ(VERSION)
1049
2848
# ------------------
1050
2849
AC_DEFUN([LT_INIT],
1051
2850
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
 
2851
AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
1052
2852
AC_BEFORE([$0], [LT_LANG])dnl
1053
2853
AC_BEFORE([$0], [LT_OUTPUT])dnl
1054
2854
AC_BEFORE([$0], [LTDL_INIT])dnl
1065
2865
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
1066
2866
m4_require([_LT_PROG_LTMAIN])dnl
1067
2867
 
 
2868
_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
 
2869
 
1068
2870
dnl Parse OPTIONS
1069
2871
_LT_SET_OPTIONS([$0], [$1])
1070
2872
 
1101
2903
    *) break;;
1102
2904
  esac
1103
2905
done
1104
 
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
2906
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1105
2907
])
1106
2908
 
1107
2909
 
1121
2923
m4_defun([_LT_SETUP],
1122
2924
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
1123
2925
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
2926
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
 
2927
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
 
2928
 
1124
2929
_LT_DECL([], [host_alias], [0], [The host system])dnl
1125
2930
_LT_DECL([], [host], [0])dnl
1126
2931
_LT_DECL([], [host_os], [0])dnl
1162
2967
_LT_CHECK_OBJDIR
1163
2968
 
1164
2969
m4_require([_LT_TAG_COMPILER])dnl
1165
 
_LT_PROG_ECHO_BACKSLASH
1166
2970
 
1167
2971
case $host_os in
1168
2972
aix3*)
1176
2980
  ;;
1177
2981
esac
1178
2982
 
1179
 
# Sed substitution that helps us do robust quoting.  It backslashifies
1180
 
# metacharacters that are still active within double-quoted strings.
1181
 
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
1182
 
 
1183
 
# Same as above, but do not quote variable references.
1184
 
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
1185
 
 
1186
 
# Sed substitution to delay expansion of an escaped shell variable in a
1187
 
# double_quote_subst'ed string.
1188
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1189
 
 
1190
 
# Sed substitution to delay expansion of an escaped single quote.
1191
 
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1192
 
 
1193
 
# Sed substitution to avoid accidental globbing in evaled expressions
1194
 
no_glob_subst='s/\*/\\\*/g'
1195
 
 
1196
2983
# Global variables:
1197
2984
ofile=libtool
1198
2985
can_build_shared=yes
1233
3020
])# _LT_SETUP
1234
3021
 
1235
3022
 
 
3023
# _LT_PREPARE_SED_QUOTE_VARS
 
3024
# --------------------------
 
3025
# Define a few sed substitution that help us do robust quoting.
 
3026
m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
 
3027
[# Backslashify metacharacters that are still active within
 
3028
# double-quoted strings.
 
3029
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
 
3030
 
 
3031
# Same as above, but do not quote variable references.
 
3032
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
 
3033
 
 
3034
# Sed substitution to delay expansion of an escaped shell variable in a
 
3035
# double_quote_subst'ed string.
 
3036
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
3037
 
 
3038
# Sed substitution to delay expansion of an escaped single quote.
 
3039
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
3040
 
 
3041
# Sed substitution to avoid accidental globbing in evaled expressions
 
3042
no_glob_subst='s/\*/\\\*/g'
 
3043
])
 
3044
 
1236
3045
# _LT_PROG_LTMAIN
1237
3046
# ---------------
1238
3047
# Note that this code is called both from `configure', and `config.status'
1385
3194
# declaration there will have the same value as in `configure'.  VARNAME
1386
3195
# must have a single quote delimited value for this to work.
1387
3196
m4_define([_LT_CONFIG_STATUS_DECLARE],
1388
 
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
 
3197
[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
1389
3198
 
1390
3199
 
1391
3200
# _LT_CONFIG_STATUS_DECLARATIONS
1395
3204
# embedded single quotes properly.  In configure, this macro expands
1396
3205
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1397
3206
#
1398
 
#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
 
3207
#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
1399
3208
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1400
3209
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1401
3210
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1494
3303
LTCFLAGS='$LTCFLAGS'
1495
3304
compiler='$compiler_DEFAULT'
1496
3305
 
 
3306
# A function that is used when there is no print builtin or printf.
 
3307
func_fallback_echo ()
 
3308
{
 
3309
  eval 'cat <<_LTECHO_EOF
 
3310
\$[]1
 
3311
_LTECHO_EOF'
 
3312
}
 
3313
 
1497
3314
# Quote evaled strings.
1498
3315
for var in lt_decl_all_varnames([[ \
1499
3316
]], lt_decl_quote_varnames); do
1500
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
3317
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1501
3318
    *[[\\\\\\\`\\"\\\$]]*)
1502
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
3319
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1503
3320
      ;;
1504
3321
    *)
1505
3322
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1510
3327
# Double-quote double-evaled strings.
1511
3328
for var in lt_decl_all_varnames([[ \
1512
3329
]], lt_decl_dquote_varnames); do
1513
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
3330
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1514
3331
    *[[\\\\\\\`\\"\\\$]]*)
1515
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
3332
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1516
3333
      ;;
1517
3334
    *)
1518
3335
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1520
3337
    esac
1521
3338
done
1522
3339
 
1523
 
# Fix-up fallback echo if it was mangled by the above quoting rules.
1524
 
case \$lt_ECHO in
1525
 
*'\\\[$]0 --fallback-echo"')dnl "
1526
 
  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1527
 
  ;;
1528
 
esac
1529
 
 
1530
3340
_LT_OUTPUT_LIBTOOL_INIT
1531
3341
])
1532
3342
 
 
3343
# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
 
3344
# ------------------------------------
 
3345
# Generate a child script FILE with all initialization necessary to
 
3346
# reuse the environment learned by the parent script, and make the
 
3347
# file executable.  If COMMENT is supplied, it is inserted after the
 
3348
# `#!' sequence but before initialization text begins.  After this
 
3349
# macro, additional text can be appended to FILE to form the body of
 
3350
# the child script.  The macro ends with non-zero status if the
 
3351
# file could not be fully written (such as if the disk is full).
 
3352
m4_ifdef([AS_INIT_GENERATED],
 
3353
[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
 
3354
[m4_defun([_LT_GENERATED_FILE_INIT],
 
3355
[m4_require([AS_PREPARE])]dnl
 
3356
[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
 
3357
[lt_write_fail=0
 
3358
cat >$1 <<_ASEOF || lt_write_fail=1
 
3359
#! $SHELL
 
3360
# Generated by $as_me.
 
3361
$2
 
3362
SHELL=\${CONFIG_SHELL-$SHELL}
 
3363
export SHELL
 
3364
_ASEOF
 
3365
cat >>$1 <<\_ASEOF || lt_write_fail=1
 
3366
AS_SHELL_SANITIZE
 
3367
_AS_PREPARE
 
3368
exec AS_MESSAGE_FD>&1
 
3369
_ASEOF
 
3370
test $lt_write_fail = 0 && chmod +x $1[]dnl
 
3371
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
1533
3372
 
1534
3373
# LT_OUTPUT
1535
3374
# ---------
1539
3378
AC_DEFUN([LT_OUTPUT],
1540
3379
[: ${CONFIG_LT=./config.lt}
1541
3380
AC_MSG_NOTICE([creating $CONFIG_LT])
1542
 
cat >"$CONFIG_LT" <<_LTEOF
1543
 
#! $SHELL
1544
 
# Generated by $as_me.
1545
 
# Run this file to recreate a libtool stub with the current configuration.
 
3381
_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
 
3382
[# Run this file to recreate a libtool stub with the current configuration.])
1546
3383
 
 
3384
cat >>"$CONFIG_LT" <<\_LTEOF
1547
3385
lt_cl_silent=false
1548
 
SHELL=\${CONFIG_SHELL-$SHELL}
1549
 
_LTEOF
1550
 
 
1551
 
cat >>"$CONFIG_LT" <<\_LTEOF
1552
 
AS_SHELL_SANITIZE
1553
 
_AS_PREPARE
1554
 
 
1555
 
exec AS_MESSAGE_FD>&1
1556
3386
exec AS_MESSAGE_LOG_FD>>config.log
1557
3387
{
1558
3388
  echo
1578
3408
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1579
3409
configured by $[0], generated by m4_PACKAGE_STRING.
1580
3410
 
1581
 
Copyright (C) 2008 Free Software Foundation, Inc.
 
3411
Copyright (C) 2010 Free Software Foundation, Inc.
1582
3412
This config.lt script is free software; the Free Software Foundation
1583
3413
gives unlimited permision to copy, distribute and modify it."
1584
3414
 
1623
3453
# appending to config.log, which fails on DOS, as config.log is still kept
1624
3454
# open by configure.  Here we exec the FD to /dev/null, effectively closing
1625
3455
# config.log, so it can be properly (re)opened and appended to by config.lt.
1626
 
if test "$no_create" != yes; then
1627
 
  lt_cl_success=:
1628
 
  test "$silent" = yes &&
1629
 
    lt_config_lt_args="$lt_config_lt_args --quiet"
1630
 
  exec AS_MESSAGE_LOG_FD>/dev/null
1631
 
  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1632
 
  exec AS_MESSAGE_LOG_FD>>config.log
1633
 
  $lt_cl_success || AS_EXIT(1)
1634
 
fi
 
3456
lt_cl_success=:
 
3457
test "$silent" = yes &&
 
3458
  lt_config_lt_args="$lt_config_lt_args --quiet"
 
3459
exec AS_MESSAGE_LOG_FD>/dev/null
 
3460
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
 
3461
exec AS_MESSAGE_LOG_FD>>config.log
 
3462
$lt_cl_success || AS_EXIT(1)
1635
3463
])# LT_OUTPUT
1636
3464
 
1637
3465
 
1808
3636
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1809
3637
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1810
3638
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
 
3639
AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
1811
3640
dnl aclocal-1.4 backwards compatibility:
1812
3641
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1813
3642
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1814
3643
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1815
3644
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
 
3645
dnl AC_DEFUN([AC_LIBTOOL_RC], [])
1816
3646
 
1817
3647
 
1818
3648
# _LT_TAG_COMPILER
1917
3747
        [lt_cv_ld_exported_symbols_list=no])
1918
3748
        LDFLAGS="$save_LDFLAGS"
1919
3749
    ])
 
3750
    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
 
3751
      [lt_cv_ld_force_load=no
 
3752
      cat > conftest.c << _LT_EOF
 
3753
int forced_loaded() { return 2;}
 
3754
_LT_EOF
 
3755
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
 
3756
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
 
3757
      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
 
3758
      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
 
3759
      echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
 
3760
      $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
 
3761
      cat > conftest.c << _LT_EOF
 
3762
int main() { return 0;}
 
3763
_LT_EOF
 
3764
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
 
3765
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
3766
      _lt_result=$?
 
3767
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
 
3768
        lt_cv_ld_force_load=yes
 
3769
      else
 
3770
        cat conftest.err >&AS_MESSAGE_LOG_FD
 
3771
      fi
 
3772
        rm -f conftest.err libconftest.a conftest conftest.c
 
3773
        rm -rf conftest.dSYM
 
3774
    ])
1920
3775
    case $host_os in
1921
3776
    rhapsody* | darwin1.[[012]])
1922
3777
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1944
3799
    else
1945
3800
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1946
3801
    fi
1947
 
    if test "$DSYMUTIL" != ":"; then
 
3802
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1948
3803
      _lt_dsymutil='~$DSYMUTIL $lib || :'
1949
3804
    else
1950
3805
      _lt_dsymutil=
1964
3819
  _LT_TAGVAR(hardcode_direct, $1)=no
1965
3820
  _LT_TAGVAR(hardcode_automatic, $1)=yes
1966
3821
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1967
 
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
3822
  if test "$lt_cv_ld_force_load" = "yes"; then
 
3823
    _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
3824
  else
 
3825
    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
3826
  fi
1968
3827
  _LT_TAGVAR(link_all_deplibs, $1)=yes
1969
3828
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1970
3829
  case $cc_basename in
1972
3831
     *) _lt_dar_can_shared=$GCC ;;
1973
3832
  esac
1974
3833
  if test "$_lt_dar_can_shared" = "yes"; then
1975
 
    output_verbose_link_cmd=echo
 
3834
    output_verbose_link_cmd=func_echo_all
1976
3835
    _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1977
3836
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1978
3837
    _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
2018
3877
# _LT_SHELL_INIT(ARG)
2019
3878
# -------------------
2020
3879
m4_define([_LT_SHELL_INIT],
2021
 
[ifdef([AC_DIVERSION_NOTICE],
2022
 
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
2023
 
         [AC_DIVERT_PUSH(NOTICE)])
2024
 
$1
2025
 
AC_DIVERT_POP
2026
 
])# _LT_SHELL_INIT
 
3880
[m4_divert_text([M4SH-INIT], [$1
 
3881
])])# _LT_SHELL_INIT
 
3882
 
2027
3883
 
2028
3884
 
2029
3885
# _LT_PROG_ECHO_BACKSLASH
2030
3886
# -----------------------
2031
 
# Add some code to the start of the generated configure script which
2032
 
# will find an echo command which doesn't interpret backslashes.
 
3887
# Find how we can fake an echo command that does not interpret backslash.
 
3888
# In particular, with Autoconf 2.60 or later we add some code to the start
 
3889
# of the generated configure script which will find a shell with a builtin
 
3890
# printf (which we can use as an echo command).
2033
3891
m4_defun([_LT_PROG_ECHO_BACKSLASH],
2034
 
[_LT_SHELL_INIT([
2035
 
# Check that we are running under the correct shell.
2036
 
SHELL=${CONFIG_SHELL-/bin/sh}
2037
 
 
2038
 
case X$lt_ECHO in
2039
 
X*--fallback-echo)
2040
 
  # Remove one level of quotation (which was required for Make).
2041
 
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
2042
 
  ;;
 
3892
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
3893
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
3894
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
3895
 
 
3896
AC_MSG_CHECKING([how to print strings])
 
3897
# Test print first, because it will be a builtin if present.
 
3898
if test "X`print -r -- -n 2>/dev/null`" = X-n && \
 
3899
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
3900
  ECHO='print -r --'
 
3901
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
3902
  ECHO='printf %s\n'
 
3903
else
 
3904
  # Use this function as a fallback that always works.
 
3905
  func_fallback_echo ()
 
3906
  {
 
3907
    eval 'cat <<_LTECHO_EOF
 
3908
$[]1
 
3909
_LTECHO_EOF'
 
3910
  }
 
3911
  ECHO='func_fallback_echo'
 
3912
fi
 
3913
 
 
3914
# func_echo_all arg...
 
3915
# Invoke $ECHO with all args, space-separated.
 
3916
func_echo_all ()
 
3917
{
 
3918
    $ECHO "$*" 
 
3919
}
 
3920
 
 
3921
case "$ECHO" in
 
3922
  printf*) AC_MSG_RESULT([printf]) ;;
 
3923
  print*) AC_MSG_RESULT([print -r]) ;;
 
3924
  *) AC_MSG_RESULT([cat]) ;;
2043
3925
esac
2044
3926
 
2045
 
ECHO=${lt_ECHO-echo}
2046
 
if test "X[$]1" = X--no-reexec; then
2047
 
  # Discard the --no-reexec flag, and continue.
2048
 
  shift
2049
 
elif test "X[$]1" = X--fallback-echo; then
2050
 
  # Avoid inline document here, it may be left over
2051
 
  :
2052
 
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
2053
 
  # Yippee, $ECHO works!
2054
 
  :
2055
 
else
2056
 
  # Restart under the correct shell.
2057
 
  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
2058
 
fi
2059
 
 
2060
 
if test "X[$]1" = X--fallback-echo; then
2061
 
  # used as fallback echo
2062
 
  shift
2063
 
  cat <<_LT_EOF
2064
 
[$]*
2065
 
_LT_EOF
2066
 
  exit 0
2067
 
fi
2068
 
 
2069
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
2070
 
# if CDPATH is set.
2071
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2072
 
 
2073
 
if test -z "$lt_ECHO"; then
2074
 
  if test "X${echo_test_string+set}" != Xset; then
2075
 
    # find a string as large as possible, as long as the shell can cope with it
2076
 
    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
2077
 
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
2078
 
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
2079
 
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
2080
 
      then
2081
 
        break
2082
 
      fi
2083
 
    done
2084
 
  fi
2085
 
 
2086
 
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
2087
 
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
2088
 
     test "X$echo_testing_string" = "X$echo_test_string"; then
2089
 
    :
2090
 
  else
2091
 
    # The Solaris, AIX, and Digital Unix default echo programs unquote
2092
 
    # backslashes.  This makes it impossible to quote backslashes using
2093
 
    #   echo "$something" | sed 's/\\/\\\\/g'
2094
 
    #
2095
 
    # So, first we look for a working echo in the user's PATH.
2096
 
 
2097
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2098
 
    for dir in $PATH /usr/ucb; do
2099
 
      IFS="$lt_save_ifs"
2100
 
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
2101
 
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
2102
 
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
2103
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
2104
 
        ECHO="$dir/echo"
2105
 
        break
2106
 
      fi
2107
 
    done
2108
 
    IFS="$lt_save_ifs"
2109
 
 
2110
 
    if test "X$ECHO" = Xecho; then
2111
 
      # We didn't find a better echo, so look for alternatives.
2112
 
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
2113
 
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
2114
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
2115
 
        # This shell has a builtin print -r that does the trick.
2116
 
        ECHO='print -r'
2117
 
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
2118
 
           test "X$CONFIG_SHELL" != X/bin/ksh; then
2119
 
        # If we have ksh, try running configure again with it.
2120
 
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2121
 
        export ORIGINAL_CONFIG_SHELL
2122
 
        CONFIG_SHELL=/bin/ksh
2123
 
        export CONFIG_SHELL
2124
 
        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
2125
 
      else
2126
 
        # Try using printf.
2127
 
        ECHO='printf %s\n'
2128
 
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
2129
 
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
2130
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
2131
 
          # Cool, printf works
2132
 
          :
2133
 
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2134
 
             test "X$echo_testing_string" = 'X\t' &&
2135
 
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2136
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
2137
 
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
2138
 
          export CONFIG_SHELL
2139
 
          SHELL="$CONFIG_SHELL"
2140
 
          export SHELL
2141
 
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
2142
 
        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2143
 
             test "X$echo_testing_string" = 'X\t' &&
2144
 
             echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2145
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
2146
 
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
2147
 
        else
2148
 
          # maybe with a smaller string...
2149
 
          prev=:
2150
 
 
2151
 
          for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
2152
 
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
2153
 
            then
2154
 
              break
2155
 
            fi
2156
 
            prev="$cmd"
2157
 
          done
2158
 
 
2159
 
          if test "$prev" != 'sed 50q "[$]0"'; then
2160
 
            echo_test_string=`eval $prev`
2161
 
            export echo_test_string
2162
 
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
2163
 
          else
2164
 
            # Oops.  We lost completely, so just stick with echo.
2165
 
            ECHO=echo
2166
 
          fi
2167
 
        fi
2168
 
      fi
2169
 
    fi
2170
 
  fi
2171
 
fi
2172
 
 
2173
 
# Copy echo and quote the copy suitably for passing to libtool from
2174
 
# the Makefile, instead of quoting the original, which is used later.
2175
 
lt_ECHO=$ECHO
2176
 
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
2177
 
   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
2178
 
fi
2179
 
 
2180
 
AC_SUBST(lt_ECHO)
2181
 
])
 
3927
m4_ifdef([_AS_DETECT_SUGGESTED],
 
3928
[_AS_DETECT_SUGGESTED([
 
3929
  test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
 
3930
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
3931
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
3932
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
3933
    PATH=/empty FPATH=/empty; export PATH FPATH
 
3934
    test "X`printf %s $ECHO`" = "X$ECHO" \
 
3935
      || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
 
3936
 
2182
3937
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
2183
 
_LT_DECL([], [ECHO], [1],
2184
 
    [An echo program that does not interpret backslashes])
 
3938
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
2185
3939
])# _LT_PROG_ECHO_BACKSLASH
2186
3940
 
2187
3941
 
2213
3967
  ;;
2214
3968
*-*-irix6*)
2215
3969
  # Find out which ABI we are using.
2216
 
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
 
3970
  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
2217
3971
  if AC_TRY_EVAL(ac_compile); then
2218
3972
    if test "$lt_cv_prog_gnu_ld" = yes; then
2219
3973
      case `/usr/bin/file conftest.$ac_objext` in
2365
4119
  esac
2366
4120
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2367
4121
fi
 
4122
 
 
4123
case $host_os in
 
4124
  darwin*)
 
4125
    lock_old_archive_extraction=yes ;;
 
4126
  *)
 
4127
    lock_old_archive_extraction=no ;;
 
4128
esac
2368
4129
_LT_DECL([], [old_postinstall_cmds], [2])
2369
4130
_LT_DECL([], [old_postuninstall_cmds], [2])
2370
4131
_LT_TAGDECL([], [old_archive_cmds], [2],
2371
4132
    [Commands used to build an old-style archive])
 
4133
_LT_DECL([], [lock_old_archive_extraction], [0],
 
4134
    [Whether to use a lock for old archive extraction])
2372
4135
])# _LT_CMD_OLD_ARCHIVE
2373
4136
 
2374
4137
 
2393
4156
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2394
4157
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2395
4158
   -e 's:$: $lt_compiler_flag:'`
2396
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
4159
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2397
4160
   (eval "$lt_compile" 2>conftest.err)
2398
4161
   ac_status=$?
2399
4162
   cat conftest.err >&AS_MESSAGE_LOG_FD
2400
 
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
4163
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2401
4164
   if (exit $ac_status) && test -s "$ac_outfile"; then
2402
4165
     # The compiler can only warn and ignore the option if not recognized
2403
4166
     # So say no if there are warnings other than the usual output.
2404
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
4167
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
2405
4168
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2406
4169
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2407
4170
       $2=yes
2441
4204
     if test -s conftest.err; then
2442
4205
       # Append any errors to the config.log.
2443
4206
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
2444
 
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
4207
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
2445
4208
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2446
4209
       if diff conftest.exp conftest.er2 >/dev/null; then
2447
4210
         $2=yes
2504
4267
    lt_cv_sys_max_cmd_len=8192;
2505
4268
    ;;
2506
4269
 
 
4270
  mint*)
 
4271
    # On MiNT this can take a long time and run out of memory.
 
4272
    lt_cv_sys_max_cmd_len=8192;
 
4273
    ;;
 
4274
 
2507
4275
  amigaos*)
2508
4276
    # On AmigaOS with pdksh, this test takes hours, literally.
2509
4277
    # So we just punt and use a minimum line length of 8192.
2568
4336
      # If test is not a shell built-in, we'll probably end up computing a
2569
4337
      # maximum length that is only half of the actual maximum length, but
2570
4338
      # we can't tell.
2571
 
      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
2572
 
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
4339
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
 
4340
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
2573
4341
              test $i != 17 # 1/2 MB should be enough
2574
4342
      do
2575
4343
        i=`expr $i + 1`
2620
4388
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2621
4389
  lt_status=$lt_dlunknown
2622
4390
  cat > conftest.$ac_ext <<_LT_EOF
2623
 
[#line __oline__ "configure"
 
4391
[#line $LINENO "configure"
2624
4392
#include "confdefs.h"
2625
4393
 
2626
4394
#if HAVE_DLFCN_H
2661
4429
#  endif
2662
4430
#endif
2663
4431
 
2664
 
void fnord() { int i=42;}
 
4432
/* When -fvisbility=hidden is used, assume the code has been annotated
 
4433
   correspondingly for the symbols needed.  */
 
4434
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
4435
void fnord () __attribute__((visibility("default")));
 
4436
#endif
 
4437
 
 
4438
void fnord () { int i=42; }
2665
4439
int main ()
2666
4440
{
2667
4441
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2670
4444
  if (self)
2671
4445
    {
2672
4446
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
2673
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
4447
      else
 
4448
        {
 
4449
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
4450
          else puts (dlerror ());
 
4451
        }
2674
4452
      /* dlclose (self); */
2675
4453
    }
2676
4454
  else
2846
4624
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2847
4625
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2848
4626
   -e 's:$: $lt_compiler_flag:'`
2849
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
4627
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2850
4628
   (eval "$lt_compile" 2>out/conftest.err)
2851
4629
   ac_status=$?
2852
4630
   cat out/conftest.err >&AS_MESSAGE_LOG_FD
2853
 
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
4631
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2854
4632
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
2855
4633
   then
2856
4634
     # The compiler can only warn and ignore the option if not recognized
2857
4635
     # So say no if there are warnings
2858
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
4636
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2859
4637
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2860
4638
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2861
4639
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
3014
4792
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3015
4793
m4_require([_LT_DECL_OBJDUMP])dnl
3016
4794
m4_require([_LT_DECL_SED])dnl
 
4795
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
3017
4796
AC_MSG_CHECKING([dynamic linker characteristics])
3018
4797
m4_if([$1],
3019
4798
        [], [
3022
4801
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
3023
4802
    *) lt_awk_arg="/^libraries:/" ;;
3024
4803
  esac
3025
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3026
 
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
4804
  case $host_os in
 
4805
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
 
4806
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
4807
  esac
 
4808
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
4809
  case $lt_search_path_spec in
 
4810
  *\;*)
3027
4811
    # if the path contains ";" then we assume it to be the separator
3028
4812
    # otherwise default to the standard path separator (i.e. ":") - it is
3029
4813
    # assumed that no part of a normal pathname contains ";" but that should
3030
4814
    # okay in the real world where ";" in dirpaths is itself problematic.
3031
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
3032
 
  else
3033
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
3034
 
  fi
 
4815
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
4816
    ;;
 
4817
  *)
 
4818
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
4819
    ;;
 
4820
  esac
3035
4821
  # Ok, now we have the path, separated by spaces, we can step through it
3036
4822
  # and add multilib dir if necessary.
3037
4823
  lt_tmp_lt_search_path_spec=
3044
4830
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
3045
4831
    fi
3046
4832
  done
3047
 
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
4833
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
3048
4834
BEGIN {RS=" "; FS="/|\n";} {
3049
4835
  lt_foo="";
3050
4836
  lt_count=0;
3064
4850
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
3065
4851
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
3066
4852
}'`
3067
 
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
4853
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
4854
  # for these hosts.
 
4855
  case $host_os in
 
4856
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
4857
      $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
 
4858
  esac
 
4859
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
3068
4860
else
3069
4861
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3070
4862
fi])
3152
4944
  m68k)
3153
4945
    library_names_spec='$libname.ixlibrary $libname.a'
3154
4946
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
3155
 
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
4947
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
3156
4948
    ;;
3157
4949
  esac
3158
4950
  ;;
3205
4997
    cygwin*)
3206
4998
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
3207
4999
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3208
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
5000
m4_if([$1], [],[
 
5001
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
3209
5002
      ;;
3210
5003
    mingw* | cegcc*)
3211
5004
      # MinGW DLLs use traditional 'lib' prefix
3212
5005
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3213
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3214
 
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
3215
 
        # It is most probably a Windows format PATH printed by
3216
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
3217
 
        # path with ; separators, and with drive letters. We can handle the
3218
 
        # drive letters (cygwin fileutils understands them), so leave them,
3219
 
        # especially as we might pass files found there to a mingw objdump,
3220
 
        # which wouldn't understand a cygwinified path. Ahh.
3221
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3222
 
      else
3223
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
3224
 
      fi
3225
5006
      ;;
3226
5007
    pw32*)
3227
5008
      # pw32 DLLs use 'pw' prefix rather than 'lib'
3321
5102
  hardcode_into_libs=yes
3322
5103
  ;;
3323
5104
 
 
5105
haiku*)
 
5106
  version_type=linux
 
5107
  need_lib_prefix=no
 
5108
  need_version=no
 
5109
  dynamic_linker="$host_os runtime_loader"
 
5110
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
5111
  soname_spec='${libname}${release}${shared_ext}$major'
 
5112
  shlibpath_var=LIBRARY_PATH
 
5113
  shlibpath_overrides_runpath=yes
 
5114
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
5115
  hardcode_into_libs=yes
 
5116
  ;;
 
5117
 
3324
5118
hpux9* | hpux10* | hpux11*)
3325
5119
  # Give a soname corresponding to the major version so that dld.sl refuses to
3326
5120
  # link against other versions.
3363
5157
    soname_spec='${libname}${release}${shared_ext}$major'
3364
5158
    ;;
3365
5159
  esac
3366
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
5160
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
3367
5161
  postinstall_cmds='chmod 555 $lib'
 
5162
  # or fails outright, so override atomically:
 
5163
  install_override_mode=555
3368
5164
  ;;
3369
5165
 
3370
5166
interix[[3-9]]*)
3422
5218
  ;;
3423
5219
 
3424
5220
# This must be Linux ELF.
3425
 
linux* | k*bsd*-gnu)
 
5221
linux* | k*bsd*-gnu | kopensolaris*-gnu)
3426
5222
  version_type=linux
3427
5223
  need_lib_prefix=no
3428
5224
  need_version=no
3431
5227
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3432
5228
  shlibpath_var=LD_LIBRARY_PATH
3433
5229
  shlibpath_overrides_runpath=no
 
5230
 
3434
5231
  # Some binutils ld are patched to set DT_RUNPATH
3435
 
  save_LDFLAGS=$LDFLAGS
3436
 
  save_libdir=$libdir
3437
 
  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
3438
 
       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
3439
 
  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
3440
 
    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
3441
 
       [shlibpath_overrides_runpath=yes])])
3442
 
  LDFLAGS=$save_LDFLAGS
3443
 
  libdir=$save_libdir
 
5232
  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
 
5233
    [lt_cv_shlibpath_overrides_runpath=no
 
5234
    save_LDFLAGS=$LDFLAGS
 
5235
    save_libdir=$libdir
 
5236
    eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
 
5237
         LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
 
5238
    AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
5239
      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
 
5240
         [lt_cv_shlibpath_overrides_runpath=yes])])
 
5241
    LDFLAGS=$save_LDFLAGS
 
5242
    libdir=$save_libdir
 
5243
    ])
 
5244
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
3444
5245
 
3445
5246
  # This implies no fast_install, which is unacceptable.
3446
5247
  # Some rework will be needed to allow for fast_install
3452
5253
 
3453
5254
  # Append ld.so.conf contents to the search path
3454
5255
  if test -f /etc/ld.so.conf; then
3455
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[   ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
5256
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[   ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
3456
5257
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
5258
 
3457
5259
  fi
3458
5260
 
3459
5261
  # We used to test for /lib/ld.so.1 and disable shared libraries on
3685
5487
    The last name is the one that the linker finds with -lNAME]])
3686
5488
_LT_DECL([], [soname_spec], [1],
3687
5489
    [[The coded name of the library, if different from the real name]])
 
5490
_LT_DECL([], [install_override_mode], [1],
 
5491
    [Permission mode override for installation of shared libraries])
3688
5492
_LT_DECL([], [postinstall_cmds], [2],
3689
5493
    [Command to use after installation of a shared archive])
3690
5494
_LT_DECL([], [postuninstall_cmds], [2],
3797
5601
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3798
5602
m4_require([_LT_DECL_SED])dnl
3799
5603
m4_require([_LT_DECL_EGREP])dnl
 
5604
m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
3800
5605
 
3801
5606
AC_ARG_WITH([gnu-ld],
3802
5607
    [AS_HELP_STRING([--with-gnu-ld],
3926
5731
    fi
3927
5732
    ;;
3928
5733
esac
3929
 
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3930
 
_LT_DECL([], [reload_cmds], [2])dnl
 
5734
_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
 
5735
_LT_TAGDECL([], [reload_cmds], [2])dnl
3931
5736
])# _LT_CMD_RELOAD
3932
5737
 
3933
5738
 
3979
5784
  # Base MSYS/MinGW do not provide the 'file' command needed by
3980
5785
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
3981
5786
  # unless we find 'file', for example because we are cross-compiling.
3982
 
  if ( file / ) >/dev/null 2>&1; then
 
5787
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
5788
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3983
5789
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3984
5790
    lt_cv_file_magic_cmd='func_win32_libid'
3985
5791
  else
3986
 
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
5792
    # Keep this pattern in sync with the one in func_win32_libid.
 
5793
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3987
5794
    lt_cv_file_magic_cmd='$OBJDUMP -f'
3988
5795
  fi
3989
5796
  ;;
3990
5797
 
3991
 
cegcc)
 
5798
cegcc*)
3992
5799
  # use the weaker test based on 'objdump'. See mingw*.
3993
5800
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3994
5801
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4018
5825
  lt_cv_deplibs_check_method=pass_all
4019
5826
  ;;
4020
5827
 
 
5828
haiku*)
 
5829
  lt_cv_deplibs_check_method=pass_all
 
5830
  ;;
 
5831
 
4021
5832
hpux10.20* | hpux11*)
4022
5833
  lt_cv_file_magic_cmd=/usr/bin/file
4023
5834
  case $host_cpu in
4026
5837
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4027
5838
    ;;
4028
5839
  hppa*64*)
4029
 
    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
 
5840
    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
4030
5841
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4031
5842
    ;;
4032
5843
  *)
4033
 
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
 
5844
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
4034
5845
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4035
5846
    ;;
4036
5847
  esac
4052
5863
  ;;
4053
5864
 
4054
5865
# This must be Linux ELF.
4055
 
linux* | k*bsd*-gnu)
 
5866
linux* | k*bsd*-gnu | kopensolaris*-gnu)
4056
5867
  lt_cv_deplibs_check_method=pass_all
4057
5868
  ;;
4058
5869
 
4194
6005
  NM="$lt_cv_path_NM"
4195
6006
else
4196
6007
  # Didn't find any BSD compatible name lister, look for dumpbin.
4197
 
  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
 
6008
  if test -n "$DUMPBIN"; then :
 
6009
    # Let the user override the test.
 
6010
  else
 
6011
    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
 
6012
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
6013
    *COFF*)
 
6014
      DUMPBIN="$DUMPBIN -symbols"
 
6015
      ;;
 
6016
    *)
 
6017
      DUMPBIN=:
 
6018
      ;;
 
6019
    esac
 
6020
  fi
4198
6021
  AC_SUBST([DUMPBIN])
4199
6022
  if test "$DUMPBIN" != ":"; then
4200
6023
    NM="$DUMPBIN"
4207
6030
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
4208
6031
  [lt_cv_nm_interface="BSD nm"
4209
6032
  echo "int some_variable = 0;" > conftest.$ac_ext
4210
 
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
 
6033
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
4211
6034
  (eval "$ac_compile" 2>conftest.err)
4212
6035
  cat conftest.err >&AS_MESSAGE_LOG_FD
4213
 
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
 
6036
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
4214
6037
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4215
6038
  cat conftest.err >&AS_MESSAGE_LOG_FD
4216
 
  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
 
6039
  (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
4217
6040
  cat conftest.out >&AS_MESSAGE_LOG_FD
4218
6041
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4219
6042
    lt_cv_nm_interface="MS dumpbin"
4236
6059
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4237
6060
LIBM=
4238
6061
case $host in
4239
 
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
 
6062
*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
4240
6063
  # These system don't have libm, or don't need it
4241
6064
  ;;
4242
6065
*-ncr-sysv4.3*)
4264
6087
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4265
6088
 
4266
6089
if test "$GCC" = yes; then
4267
 
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
6090
  case $cc_basename in
 
6091
  nvcc*)
 
6092
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
 
6093
  *)
 
6094
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
 
6095
  esac
4268
6096
 
4269
6097
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4270
6098
    lt_cv_prog_compiler_rtti_exceptions,
4281
6109
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
4282
6110
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4283
6111
AC_REQUIRE([AC_PROG_CC])dnl
 
6112
AC_REQUIRE([AC_PROG_AWK])dnl
4284
6113
AC_REQUIRE([LT_PATH_NM])dnl
4285
6114
AC_REQUIRE([LT_PATH_LD])dnl
4286
6115
m4_require([_LT_DECL_SED])dnl
4406
6235
  if AC_TRY_EVAL(ac_compile); then
4407
6236
    # Now try to grab the symbols.
4408
6237
    nlist=conftest.nm
4409
 
    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
 
6238
    if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
4410
6239
      # Try sorting and uniquifying the output.
4411
6240
      if sort "$nlist" | uniq > "$nlist"T; then
4412
6241
        mv -f "$nlist"T "$nlist"
4568
6397
      # DJGPP does not support shared libraries at all
4569
6398
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4570
6399
      ;;
 
6400
    haiku*)
 
6401
      # PIC is the default for Haiku.
 
6402
      # The "-static" flag exists, but is broken.
 
6403
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
 
6404
      ;;
4571
6405
    interix[[3-9]]*)
4572
6406
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4573
6407
      # Instead, we relocate shared libraries at runtime.
4673
6507
            ;;
4674
6508
        esac
4675
6509
        ;;
4676
 
      linux* | k*bsd*-gnu)
 
6510
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
4677
6511
        case $cc_basename in
4678
6512
          KCC*)
4679
6513
            # KAI C++ Compiler
4706
6540
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4707
6541
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4708
6542
            ;;
4709
 
          xlc* | xlC*)
4710
 
            # IBM XL 8.0 on PPC
 
6543
          xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
 
6544
            # IBM XL 8.0, 9.0 on PPC and BlueGene
4711
6545
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4712
6546
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4713
6547
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4769
6603
        ;;
4770
6604
      solaris*)
4771
6605
        case $cc_basename in
4772
 
          CC*)
 
6606
          CC* | sunCC*)
4773
6607
            # Sun C++ 4.2, 5.x and Centerline C++
4774
6608
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4775
6609
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4873
6707
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4874
6708
      ;;
4875
6709
 
 
6710
    haiku*)
 
6711
      # PIC is the default for Haiku.
 
6712
      # The "-static" flag exists, but is broken.
 
6713
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
 
6714
      ;;
 
6715
 
4876
6716
    hpux*)
4877
6717
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4878
6718
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
4915
6755
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4916
6756
      ;;
4917
6757
    esac
 
6758
 
 
6759
    case $cc_basename in
 
6760
    nvcc*) # Cuda Compiler Driver 2.2
 
6761
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
 
6762
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
 
6763
      ;;
 
6764
    esac
4918
6765
  else
4919
6766
    # PORTME Check for flag to pass linker flags through the system compiler.
4920
6767
    case $host_os in
4957
6804
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4958
6805
      ;;
4959
6806
 
4960
 
    linux* | k*bsd*-gnu)
 
6807
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
4961
6808
      case $cc_basename in
4962
6809
      # old Intel for x86_64 which still supported -KPIC.
4963
6810
      ecc*)
4978
6825
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4979
6826
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4980
6827
        ;;
4981
 
      pgcc* | pgf77* | pgf90* | pgf95*)
 
6828
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4982
6829
        # Portland Group compilers (*not* the Pentium gcc compiler,
4983
6830
        # which looks to be a dead project)
4984
6831
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4990
6837
        # All Alpha code is PIC.
4991
6838
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4992
6839
        ;;
4993
 
      xl*)
4994
 
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
6840
      xl* | bgxl* | bgf* | mpixl*)
 
6841
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4995
6842
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4996
6843
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4997
6844
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4998
6845
        ;;
4999
6846
      *)
5000
6847
        case `$CC -V 2>&1 | sed 5q` in
 
6848
        *Sun\ F* | *Sun*Fortran*)
 
6849
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
6850
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6851
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6852
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
 
6853
          ;;
5001
6854
        *Sun\ C*)
5002
6855
          # Sun C 5.9
5003
6856
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5004
6857
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5005
6858
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5006
6859
          ;;
5007
 
        *Sun\ F*)
5008
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
5009
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5010
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5011
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
5012
 
          ;;
5013
6860
        esac
5014
6861
        ;;
5015
6862
      esac
5040
6887
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5041
6888
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5042
6889
      case $cc_basename in
5043
 
      f77* | f90* | f95*)
 
6890
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
5044
6891
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5045
6892
      *)
5046
6893
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5150
6997
  aix[[4-9]]*)
5151
6998
    # If we're using GNU nm, then we don't want the "-C" option.
5152
6999
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
7000
    # Also, AIX nm treats weak defined symbols like other global defined
 
7001
    # symbols, whereas GNU nm marks them as "W".
5153
7002
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5154
 
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
7003
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5155
7004
    else
5156
7005
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5157
7006
    fi
5229
7078
  esac
5230
7079
 
5231
7080
  _LT_TAGVAR(ld_shlibs, $1)=yes
 
7081
 
 
7082
  # On some targets, GNU ld is compatible enough with the native linker
 
7083
  # that we're better off using the native interface for both.
 
7084
  lt_use_gnu_ld_interface=no
5232
7085
  if test "$with_gnu_ld" = yes; then
 
7086
    case $host_os in
 
7087
      aix*)
 
7088
        # The AIX port of GNU ld has always aspired to compatibility
 
7089
        # with the native linker.  However, as the warning in the GNU ld
 
7090
        # block says, versions before 2.19.5* couldn't really create working
 
7091
        # shared libraries, regardless of the interface used.
 
7092
        case `$LD -v 2>&1` in
 
7093
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
7094
          *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
 
7095
          *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
 
7096
          *)
 
7097
            lt_use_gnu_ld_interface=yes
 
7098
            ;;
 
7099
        esac
 
7100
        ;;
 
7101
      *)
 
7102
        lt_use_gnu_ld_interface=yes
 
7103
        ;;
 
7104
    esac
 
7105
  fi
 
7106
 
 
7107
  if test "$lt_use_gnu_ld_interface" = yes; then
5233
7108
    # If archive_cmds runs LD, not CC, wlarc should be empty
5234
7109
    wlarc='${wl}'
5235
7110
 
5247
7122
    fi
5248
7123
    supports_anon_versioning=no
5249
7124
    case `$LD -v 2>&1` in
 
7125
      *GNU\ gold*) supports_anon_versioning=yes ;;
5250
7126
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5251
7127
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5252
7128
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5262
7138
        _LT_TAGVAR(ld_shlibs, $1)=no
5263
7139
        cat <<_LT_EOF 1>&2
5264
7140
 
5265
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
7141
*** Warning: the GNU linker, at least up to release 2.19, is reported
5266
7142
*** to be unable to reliably create shared libraries on AIX.
5267
7143
*** Therefore, libtool is disabling shared libraries support.  If you
5268
 
*** really care for shared libraries, you may want to modify your PATH
5269
 
*** so that a non-GNU linker is found, and then restart.
 
7144
*** really care for shared libraries, you may want to install binutils
 
7145
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
7146
*** You will then need to restart the configuration process.
5270
7147
 
5271
7148
_LT_EOF
5272
7149
      fi
5302
7179
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5303
7180
      # as there is no search path for DLLs.
5304
7181
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
7182
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
5305
7183
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5306
7184
      _LT_TAGVAR(always_export_symbols, $1)=no
5307
7185
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5323
7201
      fi
5324
7202
      ;;
5325
7203
 
 
7204
    haiku*)
 
7205
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7206
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
7207
      ;;
 
7208
 
5326
7209
    interix[[3-9]]*)
5327
7210
      _LT_TAGVAR(hardcode_direct, $1)=no
5328
7211
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5338
7221
      _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5339
7222
      ;;
5340
7223
 
5341
 
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
7224
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
5342
7225
      tmp_diet=no
5343
7226
      if test "$host_os" = linux-dietlibc; then
5344
7227
        case $cc_basename in
5352
7235
        tmp_sharedflag='-shared'
5353
7236
        case $cc_basename,$host_cpu in
5354
7237
        pgcc*)                          # Portland Group C compiler
5355
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
7238
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5356
7239
          tmp_addflag=' $pic_flag'
5357
7240
          ;;
5358
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
5359
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
7241
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
7242
                                        # Portland Group f77 and f90 compilers
 
7243
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5360
7244
          tmp_addflag=' $pic_flag -Mnomain' ;;
5361
7245
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
5362
7246
          tmp_addflag=' -i_dynamic' ;;
5367
7251
        lf95*)                          # Lahey Fortran 8.1
5368
7252
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
5369
7253
          tmp_sharedflag='--shared' ;;
5370
 
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
 
7254
        xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
5371
7255
          tmp_sharedflag='-qmkshrobj'
5372
7256
          tmp_addflag= ;;
 
7257
        nvcc*)  # Cuda Compiler Driver 2.2
 
7258
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
7259
          _LT_TAGVAR(compiler_needs_object, $1)=yes
 
7260
          ;;
5373
7261
        esac
5374
7262
        case `$CC -V 2>&1 | sed 5q` in
5375
7263
        *Sun\ C*)                       # Sun C 5.9
5376
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
7264
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5377
7265
          _LT_TAGVAR(compiler_needs_object, $1)=yes
5378
7266
          tmp_sharedflag='-G' ;;
5379
7267
        *Sun\ F*)                       # Sun Fortran 8.3
5389
7277
        fi
5390
7278
 
5391
7279
        case $cc_basename in
5392
 
        xlf*)
 
7280
        xlf* | bgf* | bgxlf* | mpixlf*)
5393
7281
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5394
7282
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5395
7283
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5396
7284
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5397
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
7285
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
5398
7286
          if test "x$supports_anon_versioning" = xyes; then
5399
7287
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5400
7288
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5401
7289
              echo "local: *; };" >> $output_objdir/$libname.ver~
5402
 
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
7290
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5403
7291
          fi
5404
7292
          ;;
5405
7293
        esac
5520
7408
      else
5521
7409
        # If we're using GNU nm, then we don't want the "-C" option.
5522
7410
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
7411
        # Also, AIX nm treats weak defined symbols like other global
 
7412
        # defined symbols, whereas GNU nm marks them as "W".
5523
7413
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5524
 
          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
7414
          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5525
7415
        else
5526
7416
          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5527
7417
        fi
5610
7500
        # empty executable.
5611
7501
        _LT_SYS_MODULE_PATH_AIX
5612
7502
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5613
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
7503
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5614
7504
      else
5615
7505
        if test "$host_cpu" = ia64; then
5616
7506
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5625
7515
          # -berok will link without error, but may produce a broken library.
5626
7516
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5627
7517
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5628
 
          # Exported symbols can be pulled into shared objects from archives
5629
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
7518
          if test "$with_gnu_ld" = yes; then
 
7519
            # We only use this code for GNU lds that support --whole-archive.
 
7520
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
7521
          else
 
7522
            # Exported symbols can be pulled into shared objects from archives
 
7523
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
7524
          fi
5630
7525
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5631
7526
          # This is similar to how AIX traditionally builds its shared libraries.
5632
7527
          _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5665
7560
      # Tell ltmain to make .dll files, not .so files.
5666
7561
      shrext_cmds=".dll"
5667
7562
      # FIXME: Setting linknames here is a bad hack.
5668
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
7563
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5669
7564
      # The linker will automatically build a .lib file if we build a DLL.
5670
7565
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5671
7566
      # FIXME: Should let the user specify the lib program.
5732
7627
      ;;
5733
7628
 
5734
7629
    hpux10*)
5735
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7630
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5736
7631
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5737
7632
      else
5738
7633
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5751
7646
      ;;
5752
7647
 
5753
7648
    hpux11*)
5754
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7649
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5755
7650
        case $host_cpu in
5756
7651
        hppa*64*)
5757
7652
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5772
7667
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5773
7668
          ;;
5774
7669
        *)
5775
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7670
        m4_if($1, [], [
 
7671
          # Older versions of the 11.00 compiler do not understand -b yet
 
7672
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
7673
          _LT_LINKER_OPTION([if $CC understands -b],
 
7674
            _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
 
7675
            [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
 
7676
            [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
 
7677
          [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
5776
7678
          ;;
5777
7679
        esac
5778
7680
      fi
5800
7702
 
5801
7703
    irix5* | irix6* | nonstopux*)
5802
7704
      if test "$GCC" = yes; then
5803
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
7705
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5804
7706
        # Try to use the -exported_symbol ld option, if it does not
5805
7707
        # work, assume that -exports_file does not work either and
5806
7708
        # implicitly export all symbols.
5807
7709
        save_LDFLAGS="$LDFLAGS"
5808
7710
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5809
7711
        AC_LINK_IFELSE(int foo(void) {},
5810
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
7712
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5811
7713
        )
5812
7714
        LDFLAGS="$save_LDFLAGS"
5813
7715
      else
5814
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5815
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
7716
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
7717
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
5816
7718
      fi
5817
7719
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5818
7720
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5874
7776
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5875
7777
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5876
7778
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5877
 
      _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
7779
      _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5878
7780
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5879
7781
      ;;
5880
7782
 
5881
7783
    osf3*)
5882
7784
      if test "$GCC" = yes; then
5883
7785
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5884
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
7786
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5885
7787
      else
5886
7788
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5887
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
7789
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5888
7790
      fi
5889
7791
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5890
7792
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5894
7796
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
5895
7797
      if test "$GCC" = yes; then
5896
7798
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5897
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
7799
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5898
7800
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5899
7801
      else
5900
7802
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5901
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
7803
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5902
7804
        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
5903
 
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 
7805
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
5904
7806
 
5905
7807
        # Both c and cxx compiler support -rpath directly
5906
7808
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6091
7993
      # Test whether the compiler implicitly links with -lc since on some
6092
7994
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
6093
7995
      # to ld, don't add -lc before -lgcc.
6094
 
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6095
 
      $RM conftest*
6096
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7996
      AC_CACHE_CHECK([whether -lc should be explicitly linked in],
 
7997
        [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
 
7998
        [$RM conftest*
 
7999
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6097
8000
 
6098
 
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6099
 
        soname=conftest
6100
 
        lib=conftest
6101
 
        libobjs=conftest.$ac_objext
6102
 
        deplibs=
6103
 
        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
6104
 
        pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6105
 
        compiler_flags=-v
6106
 
        linker_flags=-v
6107
 
        verstring=
6108
 
        output_objdir=.
6109
 
        libname=conftest
6110
 
        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
6111
 
        _LT_TAGVAR(allow_undefined_flag, $1)=
6112
 
        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6113
 
        then
6114
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6115
 
        else
6116
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6117
 
        fi
6118
 
        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6119
 
      else
6120
 
        cat conftest.err 1>&5
6121
 
      fi
6122
 
      $RM conftest*
6123
 
      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
 
8001
        if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
 
8002
          soname=conftest
 
8003
          lib=conftest
 
8004
          libobjs=conftest.$ac_objext
 
8005
          deplibs=
 
8006
          wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
 
8007
          pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
 
8008
          compiler_flags=-v
 
8009
          linker_flags=-v
 
8010
          verstring=
 
8011
          output_objdir=.
 
8012
          libname=conftest
 
8013
          lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
 
8014
          _LT_TAGVAR(allow_undefined_flag, $1)=
 
8015
          if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
 
8016
          then
 
8017
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
8018
          else
 
8019
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
8020
          fi
 
8021
          _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
8022
        else
 
8023
          cat conftest.err 1>&5
 
8024
        fi
 
8025
        $RM conftest*
 
8026
        ])
 
8027
      _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
6124
8028
      ;;
6125
8029
    esac
6126
8030
  fi
6286
8190
])# _LT_LANG_C_CONFIG
6287
8191
 
6288
8192
 
6289
 
# _LT_PROG_CXX
6290
 
# ------------
6291
 
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
6292
 
# compiler, we have our own version here.
6293
 
m4_defun([_LT_PROG_CXX],
6294
 
[
6295
 
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
6296
 
AC_PROG_CXX
 
8193
# _LT_LANG_CXX_CONFIG([TAG])
 
8194
# --------------------------
 
8195
# Ensure that the configuration variables for a C++ compiler are suitably
 
8196
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
8197
# the compiler configuration to `libtool'.
 
8198
m4_defun([_LT_LANG_CXX_CONFIG],
 
8199
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
8200
m4_require([_LT_DECL_EGREP])dnl
6297
8201
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6298
8202
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6299
8203
    (test "X$CXX" != "Xg++"))) ; then
6301
8205
else
6302
8206
  _lt_caught_CXX_error=yes
6303
8207
fi
6304
 
popdef([AC_MSG_ERROR])
6305
 
])# _LT_PROG_CXX
6306
 
 
6307
 
dnl aclocal-1.4 backwards compatibility:
6308
 
dnl AC_DEFUN([_LT_PROG_CXX], [])
6309
 
 
6310
 
 
6311
 
# _LT_LANG_CXX_CONFIG([TAG])
6312
 
# --------------------------
6313
 
# Ensure that the configuration variables for a C++ compiler are suitably
6314
 
# defined.  These variables are subsequently used by _LT_CONFIG to write
6315
 
# the compiler configuration to `libtool'.
6316
 
m4_defun([_LT_LANG_CXX_CONFIG],
6317
 
[AC_REQUIRE([_LT_PROG_CXX])dnl
6318
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6319
 
m4_require([_LT_DECL_EGREP])dnl
6320
8208
 
6321
8209
AC_LANG_PUSH(C++)
6322
8210
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6338
8226
_LT_TAGVAR(module_expsym_cmds, $1)=
6339
8227
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6340
8228
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
8229
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
8230
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6341
8231
_LT_TAGVAR(no_undefined_flag, $1)=
6342
8232
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6343
8233
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6440
8330
      # Commands to make compiler produce verbose output that lists
6441
8331
      # what "hidden" libraries, object files and flags are used when
6442
8332
      # linking a shared library.
6443
 
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
8333
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6444
8334
 
6445
8335
    else
6446
8336
      GXX=no
6552
8442
          _LT_SYS_MODULE_PATH_AIX
6553
8443
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6554
8444
 
6555
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
8445
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6556
8446
        else
6557
8447
          if test "$host_cpu" = ia64; then
6558
8448
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6567
8457
            # -berok will link without error, but may produce a broken library.
6568
8458
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6569
8459
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6570
 
            # Exported symbols can be pulled into shared objects from archives
6571
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
8460
            if test "$with_gnu_ld" = yes; then
 
8461
              # We only use this code for GNU lds that support --whole-archive.
 
8462
              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
8463
            else
 
8464
              # Exported symbols can be pulled into shared objects from archives
 
8465
              _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
8466
            fi
6572
8467
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6573
8468
            # This is similar to how AIX traditionally builds its shared
6574
8469
            # libraries.
6601
8496
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6602
8497
        # as there is no search path for DLLs.
6603
8498
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
8499
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6604
8500
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6605
8501
        _LT_TAGVAR(always_export_symbols, $1)=no
6606
8502
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6661
8557
      gnu*)
6662
8558
        ;;
6663
8559
 
 
8560
      haiku*)
 
8561
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8562
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
8563
        ;;
 
8564
 
6664
8565
      hpux9*)
6665
8566
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6666
8567
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6685
8586
            # explicitly linking system object files so we need to strip them
6686
8587
            # from the output so that they don't get included in the library
6687
8588
            # dependencies.
6688
 
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
8589
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6689
8590
            ;;
6690
8591
          *)
6691
8592
            if test "$GXX" = yes; then
6750
8651
            # explicitly linking system object files so we need to strip them
6751
8652
            # from the output so that they don't get included in the library
6752
8653
            # dependencies.
6753
 
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
8654
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6754
8655
            ;;
6755
8656
          *)
6756
8657
            if test "$GXX" = yes; then
6793
8694
        case $cc_basename in
6794
8695
          CC*)
6795
8696
            # SGI C++
6796
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
8697
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6797
8698
 
6798
8699
            # Archives containing C++ object files must be created using
6799
8700
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
6804
8705
          *)
6805
8706
            if test "$GXX" = yes; then
6806
8707
              if test "$with_gnu_ld" = no; then
6807
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
8708
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6808
8709
              else
6809
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
 
8710
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
6810
8711
              fi
6811
8712
            fi
6812
8713
            _LT_TAGVAR(link_all_deplibs, $1)=yes
6817
8718
        _LT_TAGVAR(inherit_rpath, $1)=yes
6818
8719
        ;;
6819
8720
 
6820
 
      linux* | k*bsd*-gnu)
 
8721
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
6821
8722
        case $cc_basename in
6822
8723
          KCC*)
6823
8724
            # Kuck and Associates, Inc. (KAI) C++ Compiler
6835
8736
            # explicitly linking system object files so we need to strip them
6836
8737
            # from the output so that they don't get included in the library
6837
8738
            # dependencies.
6838
 
            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
8739
            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6839
8740
 
6840
8741
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6841
8742
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6872
8773
          pgCC* | pgcpp*)
6873
8774
            # Portland Group C++ compiler
6874
8775
            case `$CC -V` in
6875
 
            *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
 
8776
            *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
6876
8777
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6877
8778
                rm -rf $tpldir~
6878
8779
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6879
 
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
 
8780
                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
6880
8781
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6881
8782
                rm -rf $tpldir~
6882
8783
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6883
 
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
 
8784
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
6884
8785
                $RANLIB $oldlib'
6885
8786
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6886
8787
                rm -rf $tpldir~
6887
8788
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6888
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
8789
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6889
8790
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6890
8791
                rm -rf $tpldir~
6891
8792
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6892
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
8793
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6893
8794
              ;;
6894
 
            *) # Version 6 will use weak symbols
 
8795
            *) # Version 6 and above use weak symbols
6895
8796
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6896
8797
              _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6897
8798
              ;;
6899
8800
 
6900
8801
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6901
8802
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6902
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
8803
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6903
8804
            ;;
6904
8805
          cxx*)
6905
8806
            # Compaq C++
6918
8819
            # explicitly linking system object files so we need to strip them
6919
8820
            # from the output so that they don't get included in the library
6920
8821
            # dependencies.
6921
 
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
8822
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
6922
8823
            ;;
6923
 
          xl*)
 
8824
          xl* | mpixl* | bgxl*)
6924
8825
            # IBM XL 8.0 on PPC, with GNU ld
6925
8826
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6926
8827
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6940
8841
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6941
8842
              _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
6942
8843
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6943
 
              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
8844
              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6944
8845
              _LT_TAGVAR(compiler_needs_object, $1)=yes
6945
8846
 
6946
8847
              # Not sure whether something based on
6947
8848
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6948
8849
              # would be better.
6949
 
              output_verbose_link_cmd='echo'
 
8850
              output_verbose_link_cmd='func_echo_all'
6950
8851
 
6951
8852
              # Archives containing C++ object files must be created using
6952
8853
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
7015
8916
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7016
8917
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7017
8918
          fi
7018
 
          output_verbose_link_cmd=echo
 
8919
          output_verbose_link_cmd=func_echo_all
7019
8920
        else
7020
8921
          _LT_TAGVAR(ld_shlibs, $1)=no
7021
8922
        fi
7050
8951
            case $host in
7051
8952
              osf3*)
7052
8953
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7053
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
8954
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
7054
8955
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7055
8956
                ;;
7056
8957
              *)
7057
8958
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7058
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
8959
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
7059
8960
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
7060
8961
                  echo "-hidden">> $lib.exp~
7061
 
                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
 
8962
                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
7062
8963
                  $RM $lib.exp'
7063
8964
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7064
8965
                ;;
7074
8975
            # explicitly linking system object files so we need to strip them
7075
8976
            # from the output so that they don't get included in the library
7076
8977
            # dependencies.
7077
 
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
8978
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
7078
8979
            ;;
7079
8980
          *)
7080
8981
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7081
8982
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7082
8983
              case $host in
7083
8984
                osf3*)
7084
 
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
8985
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7085
8986
                  ;;
7086
8987
                *)
7087
 
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
8988
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7088
8989
                  ;;
7089
8990
              esac
7090
8991
 
7094
8995
              # Commands to make compiler produce verbose output that lists
7095
8996
              # what "hidden" libraries, object files and flags are used when
7096
8997
              # linking a shared library.
7097
 
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
8998
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7098
8999
 
7099
9000
            else
7100
9001
              # FIXME: insert proper C++ library support
7130
9031
 
7131
9032
      solaris*)
7132
9033
        case $cc_basename in
7133
 
          CC*)
 
9034
          CC* | sunCC*)
7134
9035
            # Sun C++ 4.2, 5.x and Centerline C++
7135
9036
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
7136
9037
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7151
9052
            esac
7152
9053
            _LT_TAGVAR(link_all_deplibs, $1)=yes
7153
9054
 
7154
 
            output_verbose_link_cmd='echo'
 
9055
            output_verbose_link_cmd='func_echo_all'
7155
9056
 
7156
9057
            # Archives containing C++ object files must be created using
7157
9058
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
7178
9079
                # Commands to make compiler produce verbose output that lists
7179
9080
                # what "hidden" libraries, object files and flags are used when
7180
9081
                # linking a shared library.
7181
 
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
9082
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7182
9083
              else
7183
9084
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
7184
9085
                # platform.
7189
9090
                # Commands to make compiler produce verbose output that lists
7190
9091
                # what "hidden" libraries, object files and flags are used when
7191
9092
                # linking a shared library.
7192
 
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
9093
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7193
9094
              fi
7194
9095
 
7195
9096
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
7243
9144
          CC*)
7244
9145
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7245
9146
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9147
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
 
9148
              '"$_LT_TAGVAR(old_archive_cmds, $1)"
 
9149
            _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
 
9150
              '"$_LT_TAGVAR(reload_cmds, $1)"
7246
9151
            ;;
7247
9152
          *)
7248
9153
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7489
9394
 
7490
9395
solaris*)
7491
9396
  case $cc_basename in
7492
 
  CC*)
 
9397
  CC* | sunCC*)
7493
9398
    # The more standards-conforming stlport4 library is
7494
9399
    # incompatible with the Cstd library. Avoid specifying
7495
9400
    # it if it's in CXXFLAGS. Ignore libCrun as
7533
9438
])# _LT_SYS_HIDDEN_LIBDEPS
7534
9439
 
7535
9440
 
7536
 
# _LT_PROG_F77
7537
 
# ------------
7538
 
# Since AC_PROG_F77 is broken, in that it returns the empty string
7539
 
# if there is no fortran compiler, we have our own version here.
7540
 
m4_defun([_LT_PROG_F77],
7541
 
[
7542
 
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
7543
 
AC_PROG_F77
7544
 
if test -z "$F77" || test "X$F77" = "Xno"; then
7545
 
  _lt_disable_F77=yes
7546
 
fi
7547
 
popdef([AC_MSG_ERROR])
7548
 
])# _LT_PROG_F77
7549
 
 
7550
 
dnl aclocal-1.4 backwards compatibility:
7551
 
dnl AC_DEFUN([_LT_PROG_F77], [])
7552
 
 
7553
 
 
7554
9441
# _LT_LANG_F77_CONFIG([TAG])
7555
9442
# --------------------------
7556
9443
# Ensure that the configuration variables for a Fortran 77 compiler are
7557
9444
# suitably defined.  These variables are subsequently used by _LT_CONFIG
7558
9445
# to write the compiler configuration to `libtool'.
7559
9446
m4_defun([_LT_LANG_F77_CONFIG],
7560
 
[AC_REQUIRE([_LT_PROG_F77])dnl
7561
 
AC_LANG_PUSH(Fortran 77)
 
9447
[AC_LANG_PUSH(Fortran 77)
 
9448
if test -z "$F77" || test "X$F77" = "Xno"; then
 
9449
  _lt_disable_F77=yes
 
9450
fi
7562
9451
 
7563
9452
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7564
9453
_LT_TAGVAR(allow_undefined_flag, $1)=
7577
9466
_LT_TAGVAR(module_expsym_cmds, $1)=
7578
9467
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7579
9468
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
9469
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
9470
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7580
9471
_LT_TAGVAR(no_undefined_flag, $1)=
7581
9472
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7582
9473
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7676
9567
])# _LT_LANG_F77_CONFIG
7677
9568
 
7678
9569
 
7679
 
# _LT_PROG_FC
7680
 
# -----------
7681
 
# Since AC_PROG_FC is broken, in that it returns the empty string
7682
 
# if there is no fortran compiler, we have our own version here.
7683
 
m4_defun([_LT_PROG_FC],
7684
 
[
7685
 
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
7686
 
AC_PROG_FC
7687
 
if test -z "$FC" || test "X$FC" = "Xno"; then
7688
 
  _lt_disable_FC=yes
7689
 
fi
7690
 
popdef([AC_MSG_ERROR])
7691
 
])# _LT_PROG_FC
7692
 
 
7693
 
dnl aclocal-1.4 backwards compatibility:
7694
 
dnl AC_DEFUN([_LT_PROG_FC], [])
7695
 
 
7696
 
 
7697
9570
# _LT_LANG_FC_CONFIG([TAG])
7698
9571
# -------------------------
7699
9572
# Ensure that the configuration variables for a Fortran compiler are
7700
9573
# suitably defined.  These variables are subsequently used by _LT_CONFIG
7701
9574
# to write the compiler configuration to `libtool'.
7702
9575
m4_defun([_LT_LANG_FC_CONFIG],
7703
 
[AC_REQUIRE([_LT_PROG_FC])dnl
7704
 
AC_LANG_PUSH(Fortran)
 
9576
[AC_LANG_PUSH(Fortran)
 
9577
 
 
9578
if test -z "$FC" || test "X$FC" = "Xno"; then
 
9579
  _lt_disable_FC=yes
 
9580
fi
7705
9581
 
7706
9582
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7707
9583
_LT_TAGVAR(allow_undefined_flag, $1)=
7720
9596
_LT_TAGVAR(module_expsym_cmds, $1)=
7721
9597
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7722
9598
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
9599
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
9600
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7723
9601
_LT_TAGVAR(no_undefined_flag, $1)=
7724
9602
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7725
9603
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7865
9743
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7866
9744
 
7867
9745
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
9746
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
9747
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7868
9748
 
7869
9749
if test -n "$compiler"; then
7870
9750
  _LT_COMPILER_NO_RTTI($1)
8226
10106
func_dirname ()
8227
10107
{
8228
10108
  # Extract subdirectory from the argument.
8229
 
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
10109
  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
8230
10110
  if test "X$func_dirname_result" = "X${1}"; then
8231
10111
    func_dirname_result="${3}"
8232
10112
  else
8237
10117
# func_basename file
8238
10118
func_basename ()
8239
10119
{
8240
 
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
10120
  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
8241
10121
}
8242
10122
 
8243
10123
dnl func_dirname_and_basename
8253
10133
func_stripname ()
8254
10134
{
8255
10135
  case ${2} in
8256
 
    .*) func_stripname_result=`$ECHO "X${3}" \
8257
 
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
8258
 
    *)  func_stripname_result=`$ECHO "X${3}" \
8259
 
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
10136
    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
 
10137
    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8260
10138
  esac
8261
10139
}
8262
10140
 
8267
10145
# func_opt_split
8268
10146
func_opt_split ()
8269
10147
{
8270
 
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
8271
 
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
10148
  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
 
10149
  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
8272
10150
}
8273
10151
 
8274
10152
# func_lo2o object
8275
10153
func_lo2o ()
8276
10154
{
8277
 
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
10155
  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
8278
10156
}
8279
10157
 
8280
10158
# func_xform libobj-or-source
8281
10159
func_xform ()
8282
10160
{
8283
 
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
 
10161
  func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'`
8284
10162
}
8285
10163
 
8286
10164
# func_arith arithmetic-term...
8328
10206
 
8329
10207
# Helper functions for option handling.                    -*- Autoconf -*-
8330
10208
#
8331
 
#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
10209
#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
 
10210
#   Inc.
8332
10211
#   Written by Gary V. Vaughan, 2004
8333
10212
#
8334
10213
# This file is free software; the Free Software Foundation gives
8335
10214
# unlimited permission to copy and/or distribute it, with or without
8336
10215
# modifications, as long as this notice is preserved.
8337
10216
 
8338
 
# serial 6 ltoptions.m4
 
10217
# serial 7 ltoptions.m4
8339
10218
 
8340
10219
# This is to help aclocal find these macros, as it can't see m4_define.
8341
10220
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8450
10329
[enable_win32_dll=yes
8451
10330
 
8452
10331
case $host in
8453
 
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
 
10332
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8454
10333
  AC_CHECK_TOOL(AS, as, false)
8455
10334
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8456
10335
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
8458
10337
esac
8459
10338
 
8460
10339
test -z "$AS" && AS=as
8461
 
_LT_DECL([], [AS],      [0], [Assembler program])dnl
 
10340
_LT_DECL([], [AS],      [1], [Assembler program])dnl
8462
10341
 
8463
10342
test -z "$DLLTOOL" && DLLTOOL=dlltool
8464
 
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
 
10343
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
8465
10344
 
8466
10345
test -z "$OBJDUMP" && OBJDUMP=objdump
8467
 
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
 
10346
_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
8468
10347
])# win32-dll
8469
10348
 
8470
10349
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8824
10703
 
8825
10704
# Generated from ltversion.in.
8826
10705
 
8827
 
# serial 3012 ltversion.m4
 
10706
# serial 3175 ltversion.m4
8828
10707
# This file is part of GNU Libtool
8829
10708
 
8830
 
m4_define([LT_PACKAGE_VERSION], [2.2.6])
8831
 
m4_define([LT_PACKAGE_REVISION], [1.3012])
 
10709
m4_define([LT_PACKAGE_VERSION], [2.2.10])
 
10710
m4_define([LT_PACKAGE_REVISION], [1.3175])
8832
10711
 
8833
10712
AC_DEFUN([LTVERSION_VERSION],
8834
 
[macro_version='2.2.6'
8835
 
macro_revision='1.3012'
 
10713
[macro_version='2.2.10'
 
10714
macro_revision='1.3175'
8836
10715
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8837
10716
_LT_DECL(, macro_revision, 0)
8838
10717
])
8839
10718
 
8840
10719
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
8841
10720
#
8842
 
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
 
10721
#   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
8843
10722
#   Written by Scott James Remnant, 2004.
8844
10723
#
8845
10724
# This file is free software; the Free Software Foundation gives
8846
10725
# unlimited permission to copy and/or distribute it, with or without
8847
10726
# modifications, as long as this notice is preserved.
8848
10727
 
8849
 
# serial 4 lt~obsolete.m4
 
10728
# serial 5 lt~obsolete.m4
8850
10729
 
8851
10730
# These exist entirely to fool aclocal when bootstrapping libtool.
8852
10731
#
8916
10795
m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
8917
10796
m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
8918
10797
m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
8919
 
m4_ifndef([AC_LIBTOOL_RC],              [AC_DEFUN([AC_LIBTOOL_RC])])
8920
10798
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8921
10799
m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8922
10800
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8929
10807
m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8930
10808
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8931
10809
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
 
10810
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
 
10811
m4_ifndef([_LT_AC_PROG_CXXCPP],         [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
 
10812
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
 
10813
m4_ifndef([_LT_PROG_ECHO_BACKSLASH],    [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
 
10814
m4_ifndef([_LT_PROG_F77],               [AC_DEFUN([_LT_PROG_F77])])
 
10815
m4_ifndef([_LT_PROG_FC],                [AC_DEFUN([_LT_PROG_FC])])
 
10816
m4_ifndef([_LT_PROG_CXX],               [AC_DEFUN([_LT_PROG_CXX])])
8932
10817
 
8933
 
# nls.m4 serial 3 (gettext-0.15)
8934
 
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
 
10818
# nls.m4 serial 5 (gettext-0.18)
 
10819
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
 
10820
dnl Inc.
8935
10821
dnl This file is free software; the Free Software Foundation
8936
10822
dnl gives unlimited permission to copy and/or distribute it,
8937
10823
dnl with or without modifications, as long as this notice is preserved.
8949
10835
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
8950
10836
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
8951
10837
 
8952
 
AC_PREREQ(2.50)
 
10838
AC_PREREQ([2.50])
8953
10839
 
8954
10840
AC_DEFUN([AM_NLS],
8955
10841
[
8956
10842
  AC_MSG_CHECKING([whether NLS is requested])
8957
10843
  dnl Default is enabled NLS
8958
 
  AC_ARG_ENABLE(nls,
 
10844
  AC_ARG_ENABLE([nls],
8959
10845
    [  --disable-nls           do not use Native Language Support],
8960
10846
    USE_NLS=$enableval, USE_NLS=yes)
8961
 
  AC_MSG_RESULT($USE_NLS)
8962
 
  AC_SUBST(USE_NLS)
 
10847
  AC_MSG_RESULT([$USE_NLS])
 
10848
  AC_SUBST([USE_NLS])
8963
10849
])
8964
10850
 
8965
10851
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
 
10852
# serial 1 (pkg-config-0.24)
8966
10853
8967
10854
# Copyright Ā© 2004 Scott James Remnant <scott@netsplit.com>.
8968
10855
#
8990
10877
AC_DEFUN([PKG_PROG_PKG_CONFIG],
8991
10878
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
8992
10879
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
8993
 
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
 
10880
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
 
10881
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
 
10882
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
 
10883
 
8994
10884
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8995
10885
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
8996
10886
fi
9003
10893
                AC_MSG_RESULT([no])
9004
10894
                PKG_CONFIG=""
9005
10895
        fi
9006
 
                
9007
10896
fi[]dnl
9008
10897
])# PKG_PROG_PKG_CONFIG
9009
10898
 
9012
10901
# Check to see whether a particular set of modules exists.  Similar
9013
10902
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
9014
10903
#
9015
 
#
9016
 
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
9017
 
# this or PKG_CHECK_MODULES is called, or make sure to call
9018
 
# PKG_CHECK_EXISTS manually
 
10904
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
10905
# only at the first occurence in configure.ac, so if the first place
 
10906
# it's called might be skipped (such as if it is within an "if", you
 
10907
# have to call PKG_CHECK_EXISTS manually
9019
10908
# --------------------------------------------------------------
9020
10909
AC_DEFUN([PKG_CHECK_EXISTS],
9021
10910
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
9022
10911
if test -n "$PKG_CONFIG" && \
9023
10912
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
9024
 
  m4_ifval([$2], [$2], [:])
 
10913
  m4_default([$2], [:])
9025
10914
m4_ifvaln([$3], [else
9026
10915
  $3])dnl
9027
10916
fi])
9028
10917
 
9029
 
 
9030
10918
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
9031
10919
# ---------------------------------------------
9032
10920
m4_define([_PKG_CONFIG],
9079
10967
See the pkg-config man page for more details.])
9080
10968
 
9081
10969
if test $pkg_failed = yes; then
 
10970
        AC_MSG_RESULT([no])
9082
10971
        _PKG_SHORT_ERRORS_SUPPORTED
9083
10972
        if test $_pkg_short_errors_supported = yes; then
9084
10973
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
9088
10977
        # Put the nasty error message in config.log where it belongs
9089
10978
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
9090
10979
 
9091
 
        ifelse([$4], , [AC_MSG_ERROR(dnl
 
10980
        m4_default([$4], [AC_MSG_ERROR(
9092
10981
[Package requirements ($2) were not met:
9093
10982
 
9094
10983
$$1_PKG_ERRORS
9096
10985
Consider adjusting the PKG_CONFIG_PATH environment variable if you
9097
10986
installed software in a non-standard prefix.
9098
10987
 
9099
 
_PKG_TEXT
9100
 
])],
9101
 
                [AC_MSG_RESULT([no])
9102
 
                $4])
 
10988
_PKG_TEXT])
 
10989
        ])
9103
10990
elif test $pkg_failed = untried; then
9104
 
        ifelse([$4], , [AC_MSG_FAILURE(dnl
 
10991
        AC_MSG_RESULT([no])
 
10992
        m4_default([$4], [AC_MSG_FAILURE(
9105
10993
[The pkg-config script could not be found or is too old.  Make sure it
9106
10994
is in your PATH or set the PKG_CONFIG environment variable to the full
9107
10995
path to pkg-config.
9108
10996
 
9109
10997
_PKG_TEXT
9110
10998
 
9111
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
9112
 
                [$4])
 
10999
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])
 
11000
        ])
9113
11001
else
9114
11002
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
9115
11003
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
9116
11004
        AC_MSG_RESULT([yes])
9117
 
        ifelse([$3], , :, [$3])
 
11005
        $3
9118
11006
fi[]dnl
9119
11007
])# PKG_CHECK_MODULES
9120
11008
 
9121
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
9122
 
#
9123
 
# This file is free software; the Free Software Foundation
9124
 
# gives unlimited permission to copy and/or distribute it,
9125
 
# with or without modifications, as long as this notice is preserved.
9126
 
 
9127
 
# AM_AUTOMAKE_VERSION(VERSION)
9128
 
# ----------------------------
9129
 
# Automake X.Y traces this macro to ensure aclocal.m4 has been
9130
 
# generated from the m4 files accompanying Automake X.Y.
9131
 
# (This private macro should not be called outside this file.)
9132
 
AC_DEFUN([AM_AUTOMAKE_VERSION],
9133
 
[am__api_version='1.11'
9134
 
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
9135
 
dnl require some minimum version.  Point them to the right macro.
9136
 
m4_if([$1], [1.11], [],
9137
 
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
9138
 
])
9139
 
 
9140
 
# _AM_AUTOCONF_VERSION(VERSION)
9141
 
# -----------------------------
9142
 
# aclocal traces this macro to find the Autoconf version.
9143
 
# This is a private macro too.  Using m4_define simplifies
9144
 
# the logic in aclocal, which can simply ignore this definition.
9145
 
m4_define([_AM_AUTOCONF_VERSION], [])
9146
 
 
9147
 
# AM_SET_CURRENT_AUTOMAKE_VERSION
9148
 
# -------------------------------
9149
 
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
9150
 
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
9151
 
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
9152
 
[AM_AUTOMAKE_VERSION([1.11])dnl
9153
 
m4_ifndef([AC_AUTOCONF_VERSION],
9154
 
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
9155
 
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
9156
 
 
9157
 
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
9158
 
 
9159
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
9160
 
#
9161
 
# This file is free software; the Free Software Foundation
9162
 
# gives unlimited permission to copy and/or distribute it,
9163
 
# with or without modifications, as long as this notice is preserved.
9164
 
 
9165
 
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
9166
 
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
9167
 
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
9168
 
#
9169
 
# Of course, Automake must honor this variable whenever it calls a
9170
 
# tool from the auxiliary directory.  The problem is that $srcdir (and
9171
 
# therefore $ac_aux_dir as well) can be either absolute or relative,
9172
 
# depending on how configure is run.  This is pretty annoying, since
9173
 
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
9174
 
# source directory, any form will work fine, but in subdirectories a
9175
 
# relative path needs to be adjusted first.
9176
 
#
9177
 
# $ac_aux_dir/missing
9178
 
#    fails when called from a subdirectory if $ac_aux_dir is relative
9179
 
# $top_srcdir/$ac_aux_dir/missing
9180
 
#    fails if $ac_aux_dir is absolute,
9181
 
#    fails when called from a subdirectory in a VPATH build with
9182
 
#          a relative $ac_aux_dir
9183
 
#
9184
 
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
9185
 
# are both prefixed by $srcdir.  In an in-source build this is usually
9186
 
# harmless because $srcdir is `.', but things will broke when you
9187
 
# start a VPATH build or use an absolute $srcdir.
9188
 
#
9189
 
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
9190
 
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
9191
 
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
9192
 
# and then we would define $MISSING as
9193
 
#   MISSING="\${SHELL} $am_aux_dir/missing"
9194
 
# This will work as long as MISSING is not called from configure, because
9195
 
# unfortunately $(top_srcdir) has no meaning in configure.
9196
 
# However there are other variables, like CC, which are often used in
9197
 
# configure, and could therefore not use this "fixed" $ac_aux_dir.
9198
 
#
9199
 
# Another solution, used here, is to always expand $ac_aux_dir to an
9200
 
# absolute PATH.  The drawback is that using absolute paths prevent a
9201
 
# configured tree to be moved without reconfiguration.
9202
 
 
9203
 
AC_DEFUN([AM_AUX_DIR_EXPAND],
9204
 
[dnl Rely on autoconf to set up CDPATH properly.
9205
 
AC_PREREQ([2.50])dnl
9206
 
# expand $ac_aux_dir to an absolute path
9207
 
am_aux_dir=`cd $ac_aux_dir && pwd`
9208
 
])
9209
 
 
9210
 
# AM_CONDITIONAL                                            -*- Autoconf -*-
9211
 
 
9212
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
9213
 
# Free Software Foundation, Inc.
9214
 
#
9215
 
# This file is free software; the Free Software Foundation
9216
 
# gives unlimited permission to copy and/or distribute it,
9217
 
# with or without modifications, as long as this notice is preserved.
9218
 
 
9219
 
# serial 9
9220
 
 
9221
 
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
9222
 
# -------------------------------------
9223
 
# Define a conditional.
9224
 
AC_DEFUN([AM_CONDITIONAL],
9225
 
[AC_PREREQ(2.52)dnl
9226
 
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
9227
 
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
9228
 
AC_SUBST([$1_TRUE])dnl
9229
 
AC_SUBST([$1_FALSE])dnl
9230
 
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
9231
 
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
9232
 
m4_define([_AM_COND_VALUE_$1], [$2])dnl
9233
 
if $2; then
9234
 
  $1_TRUE=
9235
 
  $1_FALSE='#'
9236
 
else
9237
 
  $1_TRUE='#'
9238
 
  $1_FALSE=
9239
 
fi
9240
 
AC_CONFIG_COMMANDS_PRE(
9241
 
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
9242
 
  AC_MSG_ERROR([[conditional "$1" was never defined.
9243
 
Usually this means the macro was only invoked conditionally.]])
9244
 
fi])])
9245
 
 
9246
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
9247
 
# Free Software Foundation, Inc.
9248
 
#
9249
 
# This file is free software; the Free Software Foundation
9250
 
# gives unlimited permission to copy and/or distribute it,
9251
 
# with or without modifications, as long as this notice is preserved.
9252
 
 
9253
 
# serial 10
9254
 
 
9255
 
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
9256
 
# written in clear, in which case automake, when reading aclocal.m4,
9257
 
# will think it sees a *use*, and therefore will trigger all it's
9258
 
# C support machinery.  Also note that it means that autoscan, seeing
9259
 
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
9260
 
 
9261
 
 
9262
 
# _AM_DEPENDENCIES(NAME)
9263
 
# ----------------------
9264
 
# See how the compiler implements dependency checking.
9265
 
# NAME is "CC", "CXX", "GCJ", or "OBJC".
9266
 
# We try a few techniques and use that to set a single cache variable.
9267
 
#
9268
 
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
9269
 
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
9270
 
# dependency, and given that the user is not expected to run this macro,
9271
 
# just rely on AC_PROG_CC.
9272
 
AC_DEFUN([_AM_DEPENDENCIES],
9273
 
[AC_REQUIRE([AM_SET_DEPDIR])dnl
9274
 
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
9275
 
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
9276
 
AC_REQUIRE([AM_DEP_TRACK])dnl
9277
 
 
9278
 
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
9279
 
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
9280
 
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
9281
 
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
9282
 
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
9283
 
                   [depcc="$$1"   am_compiler_list=])
9284
 
 
9285
 
AC_CACHE_CHECK([dependency style of $depcc],
9286
 
               [am_cv_$1_dependencies_compiler_type],
9287
 
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9288
 
  # We make a subdir and do the tests there.  Otherwise we can end up
9289
 
  # making bogus files that we don't know about and never remove.  For
9290
 
  # instance it was reported that on HP-UX the gcc test will end up
9291
 
  # making a dummy file named `D' -- because `-MD' means `put the output
9292
 
  # in D'.
9293
 
  mkdir conftest.dir
9294
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
9295
 
  # using a relative directory.
9296
 
  cp "$am_depcomp" conftest.dir
9297
 
  cd conftest.dir
9298
 
  # We will build objects and dependencies in a subdirectory because
9299
 
  # it helps to detect inapplicable dependency modes.  For instance
9300
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
9301
 
  # side effect of compilation, but ICC will put the dependencies in
9302
 
  # the current directory while Tru64 will put them in the object
9303
 
  # directory.
9304
 
  mkdir sub
9305
 
 
9306
 
  am_cv_$1_dependencies_compiler_type=none
9307
 
  if test "$am_compiler_list" = ""; then
9308
 
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
9309
 
  fi
9310
 
  am__universal=false
9311
 
  m4_case([$1], [CC],
9312
 
    [case " $depcc " in #(
9313
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
9314
 
     esac],
9315
 
    [CXX],
9316
 
    [case " $depcc " in #(
9317
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
9318
 
     esac])
9319
 
 
9320
 
  for depmode in $am_compiler_list; do
9321
 
    # Setup a source with many dependencies, because some compilers
9322
 
    # like to wrap large dependency lists on column 80 (with \), and
9323
 
    # we should not choose a depcomp mode which is confused by this.
9324
 
    #
9325
 
    # We need to recreate these files for each test, as the compiler may
9326
 
    # overwrite some of them when testing with obscure command lines.
9327
 
    # This happens at least with the AIX C compiler.
9328
 
    : > sub/conftest.c
9329
 
    for i in 1 2 3 4 5 6; do
9330
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
9331
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9332
 
      # Solaris 8's {/usr,}/bin/sh.
9333
 
      touch sub/conftst$i.h
9334
 
    done
9335
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9336
 
 
9337
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
9338
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
9339
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
9340
 
    # versions had trouble with output in subdirs
9341
 
    am__obj=sub/conftest.${OBJEXT-o}
9342
 
    am__minus_obj="-o $am__obj"
9343
 
    case $depmode in
9344
 
    gcc)
9345
 
      # This depmode causes a compiler race in universal mode.
9346
 
      test "$am__universal" = false || continue
9347
 
      ;;
9348
 
    nosideeffect)
9349
 
      # after this tag, mechanisms are not by side-effect, so they'll
9350
 
      # only be used when explicitly requested
9351
 
      if test "x$enable_dependency_tracking" = xyes; then
9352
 
        continue
 
11009
# po.m4 serial 17 (gettext-0.18)
 
11010
dnl Copyright (C) 1995-2010 Free Software Foundation, Inc.
 
11011
dnl This file is free software; the Free Software Foundation
 
11012
dnl gives unlimited permission to copy and/or distribute it,
 
11013
dnl with or without modifications, as long as this notice is preserved.
 
11014
dnl
 
11015
dnl This file can can be used in projects which are not available under
 
11016
dnl the GNU General Public License or the GNU Library General Public
 
11017
dnl License but which still want to provide support for the GNU gettext
 
11018
dnl functionality.
 
11019
dnl Please note that the actual code of the GNU gettext library is covered
 
11020
dnl by the GNU Library General Public License, and the rest of the GNU
 
11021
dnl gettext package package is covered by the GNU General Public License.
 
11022
dnl They are *not* in the public domain.
 
11023
 
 
11024
dnl Authors:
 
11025
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
 
11026
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
 
11027
 
 
11028
AC_PREREQ([2.50])
 
11029
 
 
11030
dnl Checks for all prerequisites of the po subdirectory.
 
11031
AC_DEFUN([AM_PO_SUBDIRS],
 
11032
[
 
11033
  AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 
11034
  AC_REQUIRE([AC_PROG_INSTALL])dnl
 
11035
  AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake
 
11036
  AC_REQUIRE([AM_NLS])dnl
 
11037
 
 
11038
  dnl Release version of the gettext macros. This is used to ensure that
 
11039
  dnl the gettext macros and po/Makefile.in.in are in sync.
 
11040
  AC_SUBST([GETTEXT_MACRO_VERSION], [0.18])
 
11041
 
 
11042
  dnl Perform the following tests also if --disable-nls has been given,
 
11043
  dnl because they are needed for "make dist" to work.
 
11044
 
 
11045
  dnl Search for GNU msgfmt in the PATH.
 
11046
  dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
 
11047
  dnl The second test excludes FreeBSD msgfmt.
 
11048
  AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
 
11049
    [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
 
11050
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
 
11051
    :)
 
11052
  AC_PATH_PROG([GMSGFMT], [gmsgfmt], [$MSGFMT])
 
11053
 
 
11054
  dnl Test whether it is GNU msgfmt >= 0.15.
 
11055
changequote(,)dnl
 
11056
  case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 
11057
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
 
11058
    *) MSGFMT_015=$MSGFMT ;;
 
11059
  esac
 
11060
changequote([,])dnl
 
11061
  AC_SUBST([MSGFMT_015])
 
11062
changequote(,)dnl
 
11063
  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 
11064
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
 
11065
    *) GMSGFMT_015=$GMSGFMT ;;
 
11066
  esac
 
11067
changequote([,])dnl
 
11068
  AC_SUBST([GMSGFMT_015])
 
11069
 
 
11070
  dnl Search for GNU xgettext 0.12 or newer in the PATH.
 
11071
  dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
 
11072
  dnl The second test excludes FreeBSD xgettext.
 
11073
  AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
 
11074
    [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
 
11075
     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
 
11076
    :)
 
11077
  dnl Remove leftover from FreeBSD xgettext call.
 
11078
  rm -f messages.po
 
11079
 
 
11080
  dnl Test whether it is GNU xgettext >= 0.15.
 
11081
changequote(,)dnl
 
11082
  case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 
11083
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
 
11084
    *) XGETTEXT_015=$XGETTEXT ;;
 
11085
  esac
 
11086
changequote([,])dnl
 
11087
  AC_SUBST([XGETTEXT_015])
 
11088
 
 
11089
  dnl Search for GNU msgmerge 0.11 or newer in the PATH.
 
11090
  AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
 
11091
    [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)
 
11092
 
 
11093
  dnl Installation directories.
 
11094
  dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we
 
11095
  dnl have to define it here, so that it can be used in po/Makefile.
 
11096
  test -n "$localedir" || localedir='${datadir}/locale'
 
11097
  AC_SUBST([localedir])
 
11098
 
 
11099
  dnl Support for AM_XGETTEXT_OPTION.
 
11100
  test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
 
11101
  AC_SUBST([XGETTEXT_EXTRA_OPTIONS])
 
11102
 
 
11103
  AC_CONFIG_COMMANDS([po-directories], [[
 
11104
    for ac_file in $CONFIG_FILES; do
 
11105
      # Support "outfile[:infile[:infile...]]"
 
11106
      case "$ac_file" in
 
11107
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
11108
      esac
 
11109
      # PO directories have a Makefile.in generated from Makefile.in.in.
 
11110
      case "$ac_file" in */Makefile.in)
 
11111
        # Adjust a relative srcdir.
 
11112
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
 
11113
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
 
11114
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
 
11115
        # In autoconf-2.13 it is called $ac_given_srcdir.
 
11116
        # In autoconf-2.50 it is called $srcdir.
 
11117
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
 
11118
        case "$ac_given_srcdir" in
 
11119
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
 
11120
          /*) top_srcdir="$ac_given_srcdir" ;;
 
11121
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
11122
        esac
 
11123
        # Treat a directory as a PO directory if and only if it has a
 
11124
        # POTFILES.in file. This allows packages to have multiple PO
 
11125
        # directories under different names or in different locations.
 
11126
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
 
11127
          rm -f "$ac_dir/POTFILES"
 
11128
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
 
11129
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
 
11130
          POMAKEFILEDEPS="POTFILES.in"
 
11131
          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
 
11132
          # on $ac_dir but don't depend on user-specified configuration
 
11133
          # parameters.
 
11134
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
 
11135
            # The LINGUAS file contains the set of available languages.
 
11136
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
 
11137
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
 
11138
            fi
 
11139
            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
 
11140
            # Hide the ALL_LINGUAS assigment from automake < 1.5.
 
11141
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
 
11142
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
 
11143
          else
 
11144
            # The set of available languages was given in configure.in.
 
11145
            # Hide the ALL_LINGUAS assigment from automake < 1.5.
 
11146
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
 
11147
          fi
 
11148
          # Compute POFILES
 
11149
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
 
11150
          # Compute UPDATEPOFILES
 
11151
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
 
11152
          # Compute DUMMYPOFILES
 
11153
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
 
11154
          # Compute GMOFILES
 
11155
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
 
11156
          case "$ac_given_srcdir" in
 
11157
            .) srcdirpre= ;;
 
11158
            *) srcdirpre='$(srcdir)/' ;;
 
11159
          esac
 
11160
          POFILES=
 
11161
          UPDATEPOFILES=
 
11162
          DUMMYPOFILES=
 
11163
          GMOFILES=
 
11164
          for lang in $ALL_LINGUAS; do
 
11165
            POFILES="$POFILES $srcdirpre$lang.po"
 
11166
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
 
11167
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
 
11168
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
 
11169
          done
 
11170
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
 
11171
          # environment variable.
 
11172
          INST_LINGUAS=
 
11173
          if test -n "$ALL_LINGUAS"; then
 
11174
            for presentlang in $ALL_LINGUAS; do
 
11175
              useit=no
 
11176
              if test "%UNSET%" != "$LINGUAS"; then
 
11177
                desiredlanguages="$LINGUAS"
 
11178
              else
 
11179
                desiredlanguages="$ALL_LINGUAS"
 
11180
              fi
 
11181
              for desiredlang in $desiredlanguages; do
 
11182
                # Use the presentlang catalog if desiredlang is
 
11183
                #   a. equal to presentlang, or
 
11184
                #   b. a variant of presentlang (because in this case,
 
11185
                #      presentlang can be used as a fallback for messages
 
11186
                #      which are not translated in the desiredlang catalog).
 
11187
                case "$desiredlang" in
 
11188
                  "$presentlang"*) useit=yes;;
 
11189
                esac
 
11190
              done
 
11191
              if test $useit = yes; then
 
11192
                INST_LINGUAS="$INST_LINGUAS $presentlang"
 
11193
              fi
 
11194
            done
 
11195
          fi
 
11196
          CATALOGS=
 
11197
          if test -n "$INST_LINGUAS"; then
 
11198
            for lang in $INST_LINGUAS; do
 
11199
              CATALOGS="$CATALOGS $lang.gmo"
 
11200
            done
 
11201
          fi
 
11202
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
 
11203
          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
 
11204
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
 
11205
            if test -f "$f"; then
 
11206
              case "$f" in
 
11207
                *.orig | *.bak | *~) ;;
 
11208
                *) cat "$f" >> "$ac_dir/Makefile" ;;
 
11209
              esac
 
11210
            fi
 
11211
          done
 
11212
        fi
 
11213
        ;;
 
11214
      esac
 
11215
    done]],
 
11216
   [# Capture the value of obsolete ALL_LINGUAS because we need it to compute
 
11217
    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
 
11218
    # from automake < 1.5.
 
11219
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
 
11220
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
 
11221
    LINGUAS="${LINGUAS-%UNSET%}"
 
11222
   ])
 
11223
])
 
11224
 
 
11225
dnl Postprocesses a Makefile in a directory containing PO files.
 
11226
AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE],
 
11227
[
 
11228
  # When this code is run, in config.status, two variables have already been
 
11229
  # set:
 
11230
  # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in,
 
11231
  # - LINGUAS is the value of the environment variable LINGUAS at configure
 
11232
  #   time.
 
11233
 
 
11234
changequote(,)dnl
 
11235
  # Adjust a relative srcdir.
 
11236
  ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
 
11237
  ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
 
11238
  ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
 
11239
  # In autoconf-2.13 it is called $ac_given_srcdir.
 
11240
  # In autoconf-2.50 it is called $srcdir.
 
11241
  test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
 
11242
  case "$ac_given_srcdir" in
 
11243
    .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
 
11244
    /*) top_srcdir="$ac_given_srcdir" ;;
 
11245
    *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
11246
  esac
 
11247
 
 
11248
  # Find a way to echo strings without interpreting backslash.
 
11249
  if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then
 
11250
    gt_echo='echo'
 
11251
  else
 
11252
    if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then
 
11253
      gt_echo='printf %s\n'
 
11254
    else
 
11255
      echo_func () {
 
11256
        cat <<EOT
 
11257
$*
 
11258
EOT
 
11259
      }
 
11260
      gt_echo='echo_func'
 
11261
    fi
 
11262
  fi
 
11263
 
 
11264
  # A sed script that extracts the value of VARIABLE from a Makefile.
 
11265
  sed_x_variable='
 
11266
# Test if the hold space is empty.
 
11267
x
 
11268
s/P/P/
 
11269
x
 
11270
ta
 
11271
# Yes it was empty. Look if we have the expected variable definition.
 
11272
/^[      ]*VARIABLE[     ]*=/{
 
11273
  # Seen the first line of the variable definition.
 
11274
  s/^[   ]*VARIABLE[     ]*=//
 
11275
  ba
 
11276
}
 
11277
bd
 
11278
:a
 
11279
# Here we are processing a line from the variable definition.
 
11280
# Remove comment, more precisely replace it with a space.
 
11281
s/#.*$/ /
 
11282
# See if the line ends in a backslash.
 
11283
tb
 
11284
:b
 
11285
s/\\$//
 
11286
# Print the line, without the trailing backslash.
 
11287
p
 
11288
tc
 
11289
# There was no trailing backslash. The end of the variable definition is
 
11290
# reached. Clear the hold space.
 
11291
s/^.*$//
 
11292
x
 
11293
bd
 
11294
:c
 
11295
# A trailing backslash means that the variable definition continues in the
 
11296
# next line. Put a nonempty string into the hold space to indicate this.
 
11297
s/^.*$/P/
 
11298
x
 
11299
:d
 
11300
'
 
11301
changequote([,])dnl
 
11302
 
 
11303
  # Set POTFILES to the value of the Makefile variable POTFILES.
 
11304
  sed_x_POTFILES=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`
 
11305
  POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"`
 
11306
  # Compute POTFILES_DEPS as
 
11307
  #   $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
 
11308
  POTFILES_DEPS=
 
11309
  for file in $POTFILES; do
 
11310
    POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file"
 
11311
  done
 
11312
  POMAKEFILEDEPS=""
 
11313
 
 
11314
  if test -n "$OBSOLETE_ALL_LINGUAS"; then
 
11315
    test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
 
11316
  fi
 
11317
  if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
 
11318
    # The LINGUAS file contains the set of available languages.
 
11319
    ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
 
11320
    POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
 
11321
  else
 
11322
    # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.
 
11323
    sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`
 
11324
    ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`
 
11325
  fi
 
11326
  # Hide the ALL_LINGUAS assigment from automake < 1.5.
 
11327
  eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
 
11328
  # Compute POFILES
 
11329
  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
 
11330
  # Compute UPDATEPOFILES
 
11331
  # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
 
11332
  # Compute DUMMYPOFILES
 
11333
  # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
 
11334
  # Compute GMOFILES
 
11335
  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
 
11336
  # Compute PROPERTIESFILES
 
11337
  # as      $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties)
 
11338
  # Compute CLASSFILES
 
11339
  # as      $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class)
 
11340
  # Compute QMFILES
 
11341
  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)
 
11342
  # Compute MSGFILES
 
11343
  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)
 
11344
  # Compute RESOURCESDLLFILES
 
11345
  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)
 
11346
  case "$ac_given_srcdir" in
 
11347
    .) srcdirpre= ;;
 
11348
    *) srcdirpre='$(srcdir)/' ;;
 
11349
  esac
 
11350
  POFILES=
 
11351
  UPDATEPOFILES=
 
11352
  DUMMYPOFILES=
 
11353
  GMOFILES=
 
11354
  PROPERTIESFILES=
 
11355
  CLASSFILES=
 
11356
  QMFILES=
 
11357
  MSGFILES=
 
11358
  RESOURCESDLLFILES=
 
11359
  for lang in $ALL_LINGUAS; do
 
11360
    POFILES="$POFILES $srcdirpre$lang.po"
 
11361
    UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
 
11362
    DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
 
11363
    GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
 
11364
    PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties"
 
11365
    CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class"
 
11366
    QMFILES="$QMFILES $srcdirpre$lang.qm"
 
11367
    frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
 
11368
    MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg"
 
11369
    frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
 
11370
    RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll"
 
11371
  done
 
11372
  # CATALOGS depends on both $ac_dir and the user's LINGUAS
 
11373
  # environment variable.
 
11374
  INST_LINGUAS=
 
11375
  if test -n "$ALL_LINGUAS"; then
 
11376
    for presentlang in $ALL_LINGUAS; do
 
11377
      useit=no
 
11378
      if test "%UNSET%" != "$LINGUAS"; then
 
11379
        desiredlanguages="$LINGUAS"
9353
11380
      else
9354
 
        break
9355
 
      fi
9356
 
      ;;
9357
 
    msvisualcpp | msvcmsys)
9358
 
      # This compiler won't grok `-c -o', but also, the minuso test has
9359
 
      # not run yet.  These depmodes are late enough in the game, and
9360
 
      # so weak that their functioning should not be impacted.
9361
 
      am__obj=conftest.${OBJEXT-o}
9362
 
      am__minus_obj=
9363
 
      ;;
9364
 
    none) break ;;
 
11381
        desiredlanguages="$ALL_LINGUAS"
 
11382
      fi
 
11383
      for desiredlang in $desiredlanguages; do
 
11384
        # Use the presentlang catalog if desiredlang is
 
11385
        #   a. equal to presentlang, or
 
11386
        #   b. a variant of presentlang (because in this case,
 
11387
        #      presentlang can be used as a fallback for messages
 
11388
        #      which are not translated in the desiredlang catalog).
 
11389
        case "$desiredlang" in
 
11390
          "$presentlang"*) useit=yes;;
 
11391
        esac
 
11392
      done
 
11393
      if test $useit = yes; then
 
11394
        INST_LINGUAS="$INST_LINGUAS $presentlang"
 
11395
      fi
 
11396
    done
 
11397
  fi
 
11398
  CATALOGS=
 
11399
  JAVACATALOGS=
 
11400
  QTCATALOGS=
 
11401
  TCLCATALOGS=
 
11402
  CSHARPCATALOGS=
 
11403
  if test -n "$INST_LINGUAS"; then
 
11404
    for lang in $INST_LINGUAS; do
 
11405
      CATALOGS="$CATALOGS $lang.gmo"
 
11406
      JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties"
 
11407
      QTCATALOGS="$QTCATALOGS $lang.qm"
 
11408
      frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
 
11409
      TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg"
 
11410
      frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
 
11411
      CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll"
 
11412
    done
 
11413
  fi
 
11414
 
 
11415
  sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp"
 
11416
  if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then
 
11417
    # Add dependencies that cannot be formulated as a simple suffix rule.
 
11418
    for lang in $ALL_LINGUAS; do
 
11419
      frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
 
11420
      cat >> "$ac_file.tmp" <<EOF
 
11421
$frobbedlang.msg: $lang.po
 
11422
        @echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \
 
11423
        \$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
 
11424
EOF
 
11425
    done
 
11426
  fi
 
11427
  if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then
 
11428
    # Add dependencies that cannot be formulated as a simple suffix rule.
 
11429
    for lang in $ALL_LINGUAS; do
 
11430
      frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
 
11431
      cat >> "$ac_file.tmp" <<EOF
 
11432
$frobbedlang/\$(DOMAIN).resources.dll: $lang.po
 
11433
        @echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \
 
11434
        \$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
 
11435
EOF
 
11436
    done
 
11437
  fi
 
11438
  if test -n "$POMAKEFILEDEPS"; then
 
11439
    cat >> "$ac_file.tmp" <<EOF
 
11440
Makefile: $POMAKEFILEDEPS
 
11441
EOF
 
11442
  fi
 
11443
  mv "$ac_file.tmp" "$ac_file"
 
11444
])
 
11445
 
 
11446
dnl Initializes the accumulator used by AM_XGETTEXT_OPTION.
 
11447
AC_DEFUN([AM_XGETTEXT_OPTION_INIT],
 
11448
[
 
11449
  XGETTEXT_EXTRA_OPTIONS=
 
11450
])
 
11451
 
 
11452
dnl Registers an option to be passed to xgettext in the po subdirectory.
 
11453
AC_DEFUN([AM_XGETTEXT_OPTION],
 
11454
[
 
11455
  AC_REQUIRE([AM_XGETTEXT_OPTION_INIT])
 
11456
  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS $1"
 
11457
])
 
11458
 
 
11459
# progtest.m4 serial 6 (gettext-0.18)
 
11460
dnl Copyright (C) 1996-2003, 2005, 2008-2010 Free Software Foundation, Inc.
 
11461
dnl This file is free software; the Free Software Foundation
 
11462
dnl gives unlimited permission to copy and/or distribute it,
 
11463
dnl with or without modifications, as long as this notice is preserved.
 
11464
dnl
 
11465
dnl This file can can be used in projects which are not available under
 
11466
dnl the GNU General Public License or the GNU Library General Public
 
11467
dnl License but which still want to provide support for the GNU gettext
 
11468
dnl functionality.
 
11469
dnl Please note that the actual code of the GNU gettext library is covered
 
11470
dnl by the GNU Library General Public License, and the rest of the GNU
 
11471
dnl gettext package package is covered by the GNU General Public License.
 
11472
dnl They are *not* in the public domain.
 
11473
 
 
11474
dnl Authors:
 
11475
dnl   Ulrich Drepper <drepper@cygnus.com>, 1996.
 
11476
 
 
11477
AC_PREREQ([2.50])
 
11478
 
 
11479
# Search path for a program which passes the given test.
 
11480
 
 
11481
dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
 
11482
dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
 
11483
AC_DEFUN([AM_PATH_PROG_WITH_TEST],
 
11484
[
 
11485
# Prepare PATH_SEPARATOR.
 
11486
# The user is always right.
 
11487
if test "${PATH_SEPARATOR+set}" != set; then
 
11488
  echo "#! /bin/sh" >conf$$.sh
 
11489
  echo  "exit 0"   >>conf$$.sh
 
11490
  chmod +x conf$$.sh
 
11491
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
11492
    PATH_SEPARATOR=';'
 
11493
  else
 
11494
    PATH_SEPARATOR=:
 
11495
  fi
 
11496
  rm -f conf$$.sh
 
11497
fi
 
11498
 
 
11499
# Find out how to test for executable files. Don't use a zero-byte file,
 
11500
# as systems may use methods other than mode bits to determine executability.
 
11501
cat >conf$$.file <<_ASEOF
 
11502
#! /bin/sh
 
11503
exit 0
 
11504
_ASEOF
 
11505
chmod +x conf$$.file
 
11506
if test -x conf$$.file >/dev/null 2>&1; then
 
11507
  ac_executable_p="test -x"
 
11508
else
 
11509
  ac_executable_p="test -f"
 
11510
fi
 
11511
rm -f conf$$.file
 
11512
 
 
11513
# Extract the first word of "$2", so it can be a program name with args.
 
11514
set dummy $2; ac_word=[$]2
 
11515
AC_MSG_CHECKING([for $ac_word])
 
11516
AC_CACHE_VAL([ac_cv_path_$1],
 
11517
[case "[$]$1" in
 
11518
  [[\\/]]* | ?:[[\\/]]*)
 
11519
    ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
 
11520
    ;;
 
11521
  *)
 
11522
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
11523
    for ac_dir in ifelse([$5], , $PATH, [$5]); do
 
11524
      IFS="$ac_save_IFS"
 
11525
      test -z "$ac_dir" && ac_dir=.
 
11526
      for ac_exec_ext in '' $ac_executable_extensions; do
 
11527
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
11528
          echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD
 
11529
          if [$3]; then
 
11530
            ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext"
 
11531
            break 2
 
11532
          fi
 
11533
        fi
 
11534
      done
 
11535
    done
 
11536
    IFS="$ac_save_IFS"
 
11537
dnl If no 4th arg is given, leave the cache variable unset,
 
11538
dnl so AC_PATH_PROGS will keep looking.
 
11539
ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
 
11540
])dnl
 
11541
    ;;
 
11542
esac])dnl
 
11543
$1="$ac_cv_path_$1"
 
11544
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
 
11545
  AC_MSG_RESULT([$][$1])
 
11546
else
 
11547
  AC_MSG_RESULT([no])
 
11548
fi
 
11549
AC_SUBST([$1])dnl
 
11550
])
 
11551
 
 
11552
# gnome-common.m4
 
11553
#
 
11554
# serial 3
 
11555
 
11556
 
 
11557
dnl GNOME_COMMON_INIT
 
11558
 
 
11559
AU_DEFUN([GNOME_COMMON_INIT],
 
11560
[
 
11561
  dnl this macro should come after AC_CONFIG_MACRO_DIR
 
11562
  AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
 
11563
 
 
11564
  dnl ensure that when the Automake generated makefile calls aclocal,
 
11565
  dnl it honours the $ACLOCAL_FLAGS environment variable
 
11566
  ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
 
11567
  if test -n "$ac_macro_dir"; then
 
11568
    ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
 
11569
  fi
 
11570
 
 
11571
  AC_SUBST([ACLOCAL_AMFLAGS])
 
11572
],
 
11573
[[$0: This macro is deprecated. You should set put "ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}"
 
11574
in your top-level Makefile.am, instead, where "m4" is the macro directory set
 
11575
with AC_CONFIG_MACRO_DIR() in your configure.ac]])
 
11576
 
 
11577
AC_DEFUN([GNOME_DEBUG_CHECK],
 
11578
[
 
11579
        AC_ARG_ENABLE([debug],
 
11580
                      AC_HELP_STRING([--enable-debug],
 
11581
                                     [turn on debugging]),,
 
11582
                      [enable_debug=no])
 
11583
 
 
11584
        if test x$enable_debug = xyes ; then
 
11585
            AC_DEFINE(GNOME_ENABLE_DEBUG, 1,
 
11586
                [Enable additional debugging at the expense of performance and size])
 
11587
        fi
 
11588
])
 
11589
 
 
11590
dnl GNOME_MAINTAINER_MODE_DEFINES ()
 
11591
dnl define DISABLE_DEPRECATED
 
11592
dnl
 
11593
AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
 
11594
[
 
11595
        AC_REQUIRE([AM_MAINTAINER_MODE])
 
11596
 
 
11597
        DISABLE_DEPRECATED=""
 
11598
        if test $USE_MAINTAINER_MODE = yes; then
 
11599
                DOMAINS="G ATK PANGO GDK GDK_PIXBUF GTK GCONF BONOBO BONOBO_UI GNOME LIBGLADE VTE GNOME_VFS WNCK LIBSOUP"
 
11600
                for DOMAIN in $DOMAINS; do
 
11601
                       DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES"
 
11602
                done
 
11603
        fi
 
11604
 
 
11605
        AC_SUBST(DISABLE_DEPRECATED)
 
11606
])
 
11607
 
 
11608
dnl GNOME_COMPILE_WARNINGS
 
11609
dnl Turn on many useful compiler warnings
 
11610
dnl For now, only works on GCC
 
11611
AC_DEFUN([GNOME_COMPILE_WARNINGS],[
 
11612
    dnl ******************************
 
11613
    dnl More compiler warnings
 
11614
    dnl ******************************
 
11615
 
 
11616
    AC_ARG_ENABLE(compile-warnings, 
 
11617
                  AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
 
11618
                                 [Turn on compiler warnings]),,
 
11619
                  [enable_compile_warnings="m4_default([$1],[yes])"])
 
11620
 
 
11621
    warnCFLAGS=
 
11622
    if test "x$GCC" != xyes; then
 
11623
        enable_compile_warnings=no
 
11624
    fi
 
11625
 
 
11626
    warning_flags=
 
11627
    realsave_CFLAGS="$CFLAGS"
 
11628
 
 
11629
    case "$enable_compile_warnings" in
 
11630
    no)
 
11631
        warning_flags=
 
11632
        ;;
 
11633
    minimum)
 
11634
        warning_flags="-Wall"
 
11635
        ;;
 
11636
    yes)
 
11637
        warning_flags="-Wall -Wmissing-prototypes"
 
11638
        ;;
 
11639
    maximum|error)
 
11640
        warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
 
11641
        CFLAGS="$warning_flags $CFLAGS"
 
11642
        for option in -Wno-sign-compare; do
 
11643
                SAVE_CFLAGS="$CFLAGS"
 
11644
                CFLAGS="$CFLAGS $option"
 
11645
                AC_MSG_CHECKING([whether gcc understands $option])
 
11646
                AC_TRY_COMPILE([], [],
 
11647
                        has_option=yes,
 
11648
                        has_option=no,)
 
11649
                CFLAGS="$SAVE_CFLAGS"
 
11650
                AC_MSG_RESULT($has_option)
 
11651
                if test $has_option = yes; then
 
11652
                  warning_flags="$warning_flags $option"
 
11653
                fi
 
11654
                unset has_option
 
11655
                unset SAVE_CFLAGS
 
11656
        done
 
11657
        unset option
 
11658
        if test "$enable_compile_warnings" = "error" ; then
 
11659
            warning_flags="$warning_flags -Werror"
 
11660
        fi
 
11661
        ;;
 
11662
    *)
 
11663
        AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
 
11664
        ;;
9365
11665
    esac
9366
 
    if depmode=$depmode \
9367
 
       source=sub/conftest.c object=$am__obj \
9368
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9369
 
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9370
 
         >/dev/null 2>conftest.err &&
9371
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9372
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9373
 
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9374
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9375
 
      # icc doesn't choke on unknown options, it will just issue warnings
9376
 
      # or remarks (even with -Werror).  So we grep stderr for any message
9377
 
      # that says an option was ignored or not supported.
9378
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
9379
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
9380
 
      # The diagnosis changed in icc 8.0:
9381
 
      #   icc: Command line remark: option '-MP' not supported
9382
 
      if (grep 'ignoring option' conftest.err ||
9383
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9384
 
        am_cv_$1_dependencies_compiler_type=$depmode
9385
 
        break
 
11666
    CFLAGS="$realsave_CFLAGS"
 
11667
    AC_MSG_CHECKING(what warning flags to pass to the C compiler)
 
11668
    AC_MSG_RESULT($warning_flags)
 
11669
 
 
11670
    AC_ARG_ENABLE(iso-c,
 
11671
                  AC_HELP_STRING([--enable-iso-c],
 
11672
                                 [Try to warn if code is not ISO C ]),,
 
11673
                  [enable_iso_c=no])
 
11674
 
 
11675
    AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
 
11676
    complCFLAGS=
 
11677
    if test "x$enable_iso_c" != "xno"; then
 
11678
        if test "x$GCC" = "xyes"; then
 
11679
        case " $CFLAGS " in
 
11680
            *[\ \       ]-ansi[\ \      ]*) ;;
 
11681
            *) complCFLAGS="$complCFLAGS -ansi" ;;
 
11682
        esac
 
11683
        case " $CFLAGS " in
 
11684
            *[\ \       ]-pedantic[\ \  ]*) ;;
 
11685
            *) complCFLAGS="$complCFLAGS -pedantic" ;;
 
11686
        esac
 
11687
        fi
 
11688
    fi
 
11689
    AC_MSG_RESULT($complCFLAGS)
 
11690
 
 
11691
    WARN_CFLAGS="$warning_flags $complCFLAGS"
 
11692
    AC_SUBST(WARN_CFLAGS)
 
11693
])
 
11694
 
 
11695
dnl For C++, do basically the same thing.
 
11696
 
 
11697
AC_DEFUN([GNOME_CXX_WARNINGS],[
 
11698
  AC_ARG_ENABLE(cxx-warnings,
 
11699
                AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
 
11700
                               [Turn on compiler warnings.]),,
 
11701
                [enable_cxx_warnings="m4_default([$1],[minimum])"])
 
11702
 
 
11703
  AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
 
11704
  warnCXXFLAGS=
 
11705
  if test "x$GXX" != xyes; then
 
11706
    enable_cxx_warnings=no
 
11707
  fi
 
11708
  if test "x$enable_cxx_warnings" != "xno"; then
 
11709
    if test "x$GXX" = "xyes"; then
 
11710
      case " $CXXFLAGS " in
 
11711
      *[\ \     ]-Wall[\ \      ]*) ;;
 
11712
      *) warnCXXFLAGS="-Wall -Wno-unused" ;;
 
11713
      esac
 
11714
 
 
11715
      ## -W is not all that useful.  And it cannot be controlled
 
11716
      ## with individual -Wno-xxx flags, unlike -Wall
 
11717
      if test "x$enable_cxx_warnings" = "xyes"; then
 
11718
        warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
9386
11719
      fi
9387
11720
    fi
9388
 
  done
9389
 
 
9390
 
  cd ..
9391
 
  rm -rf conftest.dir
9392
 
else
9393
 
  am_cv_$1_dependencies_compiler_type=none
9394
 
fi
9395
 
])
9396
 
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
9397
 
AM_CONDITIONAL([am__fastdep$1], [
9398
 
  test "x$enable_dependency_tracking" != xno \
9399
 
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
9400
 
])
9401
 
 
9402
 
 
9403
 
# AM_SET_DEPDIR
9404
 
# -------------
9405
 
# Choose a directory name for dependency files.
9406
 
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
9407
 
AC_DEFUN([AM_SET_DEPDIR],
9408
 
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9409
 
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
9410
 
])
9411
 
 
9412
 
 
9413
 
# AM_DEP_TRACK
9414
 
# ------------
9415
 
AC_DEFUN([AM_DEP_TRACK],
9416
 
[AC_ARG_ENABLE(dependency-tracking,
9417
 
[  --disable-dependency-tracking  speeds up one-time build
9418
 
  --enable-dependency-tracking   do not reject slow dependency extractors])
9419
 
if test "x$enable_dependency_tracking" != xno; then
9420
 
  am_depcomp="$ac_aux_dir/depcomp"
9421
 
  AMDEPBACKSLASH='\'
9422
 
fi
9423
 
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
9424
 
AC_SUBST([AMDEPBACKSLASH])dnl
9425
 
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
9426
 
])
9427
 
 
9428
 
# Generate code to set up dependency tracking.              -*- Autoconf -*-
9429
 
 
9430
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9431
 
# Free Software Foundation, Inc.
9432
 
#
9433
 
# This file is free software; the Free Software Foundation
9434
 
# gives unlimited permission to copy and/or distribute it,
9435
 
# with or without modifications, as long as this notice is preserved.
9436
 
 
9437
 
#serial 5
9438
 
 
9439
 
# _AM_OUTPUT_DEPENDENCY_COMMANDS
9440
 
# ------------------------------
9441
 
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9442
 
[{
9443
 
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
9444
 
  # are listed without --file.  Let's play safe and only enable the eval
9445
 
  # if we detect the quoting.
9446
 
  case $CONFIG_FILES in
9447
 
  *\'*) eval set x "$CONFIG_FILES" ;;
9448
 
  *)   set x $CONFIG_FILES ;;
9449
 
  esac
9450
 
  shift
9451
 
  for mf
9452
 
  do
9453
 
    # Strip MF so we end up with the name of the file.
9454
 
    mf=`echo "$mf" | sed -e 's/:.*$//'`
9455
 
    # Check whether this is an Automake generated Makefile or not.
9456
 
    # We used to match only the files named `Makefile.in', but
9457
 
    # some people rename them; so instead we look at the file content.
9458
 
    # Grep'ing the first line is not enough: some people post-process
9459
 
    # each Makefile.in and add a new line on top of each file to say so.
9460
 
    # Grep'ing the whole file is not good either: AIX grep has a line
9461
 
    # limit of 2048, but all sed's we know have understand at least 4000.
9462
 
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9463
 
      dirpart=`AS_DIRNAME("$mf")`
9464
 
    else
9465
 
      continue
9466
 
    fi
9467
 
    # Extract the definition of DEPDIR, am__include, and am__quote
9468
 
    # from the Makefile without running `make'.
9469
 
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9470
 
    test -z "$DEPDIR" && continue
9471
 
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
9472
 
    test -z "am__include" && continue
9473
 
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9474
 
    # When using ansi2knr, U may be empty or an underscore; expand it
9475
 
    U=`sed -n 's/^U = //p' < "$mf"`
9476
 
    # Find all dependency output files, they are included files with
9477
 
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
9478
 
    # simplest approach to changing $(DEPDIR) to its actual value in the
9479
 
    # expansion.
9480
 
    for file in `sed -n "
9481
 
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9482
 
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9483
 
      # Make sure the directory exists.
9484
 
      test -f "$dirpart/$file" && continue
9485
 
      fdir=`AS_DIRNAME(["$file"])`
9486
 
      AS_MKDIR_P([$dirpart/$fdir])
9487
 
      # echo "creating $dirpart/$file"
9488
 
      echo '# dummy' > "$dirpart/$file"
9489
 
    done
9490
 
  done
9491
 
}
9492
 
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
9493
 
 
9494
 
 
9495
 
# AM_OUTPUT_DEPENDENCY_COMMANDS
9496
 
# -----------------------------
9497
 
# This macro should only be invoked once -- use via AC_REQUIRE.
9498
 
#
9499
 
# This code is only required when automatic dependency tracking
9500
 
# is enabled.  FIXME.  This creates each `.P' file that we will
9501
 
# need in order to bootstrap the dependency handling code.
9502
 
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
9503
 
[AC_CONFIG_COMMANDS([depfiles],
9504
 
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
9505
 
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
9506
 
])
9507
 
 
9508
 
# Do all the work for Automake.                             -*- Autoconf -*-
9509
 
 
9510
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
9511
 
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
9512
 
#
9513
 
# This file is free software; the Free Software Foundation
9514
 
# gives unlimited permission to copy and/or distribute it,
9515
 
# with or without modifications, as long as this notice is preserved.
9516
 
 
9517
 
# serial 16
9518
 
 
9519
 
# This macro actually does too much.  Some checks are only needed if
9520
 
# your package does certain things.  But this isn't really a big deal.
9521
 
 
9522
 
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
9523
 
# AM_INIT_AUTOMAKE([OPTIONS])
9524
 
# -----------------------------------------------
9525
 
# The call with PACKAGE and VERSION arguments is the old style
9526
 
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
9527
 
# and VERSION should now be passed to AC_INIT and removed from
9528
 
# the call to AM_INIT_AUTOMAKE.
9529
 
# We support both call styles for the transition.  After
9530
 
# the next Automake release, Autoconf can make the AC_INIT
9531
 
# arguments mandatory, and then we can depend on a new Autoconf
9532
 
# release and drop the old call support.
9533
 
AC_DEFUN([AM_INIT_AUTOMAKE],
9534
 
[AC_PREREQ([2.62])dnl
9535
 
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
9536
 
dnl the ones we care about.
9537
 
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9538
 
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
9539
 
AC_REQUIRE([AC_PROG_INSTALL])dnl
9540
 
if test "`cd $srcdir && pwd`" != "`pwd`"; then
9541
 
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9542
 
  # is not polluted with repeated "-I."
9543
 
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
9544
 
  # test to see if srcdir already configured
9545
 
  if test -f $srcdir/config.status; then
9546
 
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
9547
 
  fi
9548
 
fi
9549
 
 
9550
 
# test whether we have cygpath
9551
 
if test -z "$CYGPATH_W"; then
9552
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
9553
 
    CYGPATH_W='cygpath -w'
9554
 
  else
9555
 
    CYGPATH_W=echo
9556
 
  fi
9557
 
fi
9558
 
AC_SUBST([CYGPATH_W])
9559
 
 
9560
 
# Define the identity of the package.
9561
 
dnl Distinguish between old-style and new-style calls.
9562
 
m4_ifval([$2],
9563
 
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9564
 
 AC_SUBST([PACKAGE], [$1])dnl
9565
 
 AC_SUBST([VERSION], [$2])],
9566
 
[_AM_SET_OPTIONS([$1])dnl
9567
 
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
9568
 
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
9569
 
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
9570
 
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
9571
 
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
9572
 
 
9573
 
_AM_IF_OPTION([no-define],,
9574
 
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
9575
 
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
9576
 
 
9577
 
# Some tools Automake needs.
9578
 
AC_REQUIRE([AM_SANITY_CHECK])dnl
9579
 
AC_REQUIRE([AC_ARG_PROGRAM])dnl
9580
 
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
9581
 
AM_MISSING_PROG(AUTOCONF, autoconf)
9582
 
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
9583
 
AM_MISSING_PROG(AUTOHEADER, autoheader)
9584
 
AM_MISSING_PROG(MAKEINFO, makeinfo)
9585
 
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9586
 
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
9587
 
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
9588
 
# We need awk for the "check" target.  The system "awk" is bad on
9589
 
# some platforms.
9590
 
AC_REQUIRE([AC_PROG_AWK])dnl
9591
 
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
9592
 
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9593
 
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
9594
 
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
9595
 
                             [_AM_PROG_TAR([v7])])])
9596
 
_AM_IF_OPTION([no-dependencies],,
9597
 
[AC_PROVIDE_IFELSE([AC_PROG_CC],
9598
 
                  [_AM_DEPENDENCIES(CC)],
9599
 
                  [define([AC_PROG_CC],
9600
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
9601
 
AC_PROVIDE_IFELSE([AC_PROG_CXX],
9602
 
                  [_AM_DEPENDENCIES(CXX)],
9603
 
                  [define([AC_PROG_CXX],
9604
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
9605
 
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
9606
 
                  [_AM_DEPENDENCIES(OBJC)],
9607
 
                  [define([AC_PROG_OBJC],
9608
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
9609
 
])
9610
 
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
9611
 
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
9612
 
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
9613
 
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
9614
 
AC_CONFIG_COMMANDS_PRE(dnl
9615
 
[m4_provide_if([_AM_COMPILER_EXEEXT],
9616
 
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
9617
 
])
9618
 
 
9619
 
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
9620
 
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
9621
 
dnl mangled by Autoconf and run in a shell conditional statement.
9622
 
m4_define([_AC_COMPILER_EXEEXT],
9623
 
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
9624
 
 
9625
 
 
9626
 
# When config.status generates a header, we must update the stamp-h file.
9627
 
# This file resides in the same directory as the config header
9628
 
# that is generated.  The stamp files are numbered to have different names.
9629
 
 
9630
 
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
9631
 
# loop where config.status creates the headers, so we can generate
9632
 
# our stamp files there.
9633
 
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
9634
 
[# Compute $1's index in $config_headers.
9635
 
_am_arg=$1
9636
 
_am_stamp_count=1
9637
 
for _am_header in $config_headers :; do
9638
 
  case $_am_header in
9639
 
    $_am_arg | $_am_arg:* )
9640
 
      break ;;
9641
 
    * )
9642
 
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9643
 
  esac
9644
 
done
9645
 
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
9646
 
 
9647
 
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
9648
 
#
9649
 
# This file is free software; the Free Software Foundation
9650
 
# gives unlimited permission to copy and/or distribute it,
9651
 
# with or without modifications, as long as this notice is preserved.
9652
 
 
9653
 
# AM_PROG_INSTALL_SH
9654
 
# ------------------
9655
 
# Define $install_sh.
9656
 
AC_DEFUN([AM_PROG_INSTALL_SH],
9657
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9658
 
if test x"${install_sh}" != xset; then
9659
 
  case $am_aux_dir in
9660
 
  *\ * | *\     *)
9661
 
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
9662
 
  *)
9663
 
    install_sh="\${SHELL} $am_aux_dir/install-sh"
9664
 
  esac
9665
 
fi
9666
 
AC_SUBST(install_sh)])
9667
 
 
9668
 
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
9669
 
#
9670
 
# This file is free software; the Free Software Foundation
9671
 
# gives unlimited permission to copy and/or distribute it,
9672
 
# with or without modifications, as long as this notice is preserved.
9673
 
 
9674
 
# serial 2
9675
 
 
9676
 
# Check whether the underlying file-system supports filenames
9677
 
# with a leading dot.  For instance MS-DOS doesn't.
9678
 
AC_DEFUN([AM_SET_LEADING_DOT],
9679
 
[rm -rf .tst 2>/dev/null
9680
 
mkdir .tst 2>/dev/null
9681
 
if test -d .tst; then
9682
 
  am__leading_dot=.
9683
 
else
9684
 
  am__leading_dot=_
9685
 
fi
9686
 
rmdir .tst 2>/dev/null
9687
 
AC_SUBST([am__leading_dot])])
9688
 
 
9689
 
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
9690
 
# From Jim Meyering
9691
 
 
9692
 
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9693
 
# 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
 
# serial 5
9700
 
 
9701
 
# AM_MAINTAINER_MODE([DEFAULT-MODE])
9702
 
# ----------------------------------
9703
 
# Control maintainer-specific portions of Makefiles.
9704
 
# Default is to disable them, unless `enable' is passed literally.
9705
 
# For symmetry, `disable' may be passed as well.  Anyway, the user
9706
 
# can override the default with the --enable/--disable switch.
9707
 
AC_DEFUN([AM_MAINTAINER_MODE],
9708
 
[m4_case(m4_default([$1], [disable]),
9709
 
       [enable], [m4_define([am_maintainer_other], [disable])],
9710
 
       [disable], [m4_define([am_maintainer_other], [enable])],
9711
 
       [m4_define([am_maintainer_other], [enable])
9712
 
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
9713
 
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
9714
 
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
9715
 
  AC_ARG_ENABLE([maintainer-mode],
9716
 
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
9717
 
                          (and sometimes confusing) to the casual installer],
9718
 
      [USE_MAINTAINER_MODE=$enableval],
9719
 
      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
9720
 
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
9721
 
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
9722
 
  MAINT=$MAINTAINER_MODE_TRUE
9723
 
  AC_SUBST([MAINT])dnl
 
11721
  fi
 
11722
  AC_MSG_RESULT($warnCXXFLAGS)
 
11723
 
 
11724
   AC_ARG_ENABLE(iso-cxx,
 
11725
                 AC_HELP_STRING([--enable-iso-cxx],
 
11726
                                [Try to warn if code is not ISO C++ ]),,
 
11727
                 [enable_iso_cxx=no])
 
11728
 
 
11729
   AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
 
11730
   complCXXFLAGS=
 
11731
   if test "x$enable_iso_cxx" != "xno"; then
 
11732
     if test "x$GXX" = "xyes"; then
 
11733
      case " $CXXFLAGS " in
 
11734
      *[\ \     ]-ansi[\ \      ]*) ;;
 
11735
      *) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
 
11736
      esac
 
11737
 
 
11738
      case " $CXXFLAGS " in
 
11739
      *[\ \     ]-pedantic[\ \  ]*) ;;
 
11740
      *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
 
11741
      esac
 
11742
     fi
 
11743
   fi
 
11744
  AC_MSG_RESULT($complCXXFLAGS)
 
11745
 
 
11746
  WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
 
11747
  AC_SUBST(WARN_CXXFLAGS)
 
11748
])
 
11749
 
 
11750
dnl Do not call GNOME_DOC_DEFINES directly.  It is split out from
 
11751
dnl GNOME_DOC_INIT to allow gnome-doc-utils to bootstrap off itself.
 
11752
AC_DEFUN([GNOME_DOC_DEFINES],
 
11753
[
 
11754
AC_ARG_WITH([help-dir],
 
11755
  AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),,
 
11756
  [with_help_dir='${datadir}/gnome/help'])
 
11757
HELP_DIR="$with_help_dir"
 
11758
AC_SUBST(HELP_DIR)
 
11759
 
 
11760
AC_ARG_WITH([omf-dir],
 
11761
  AC_HELP_STRING([--with-omf-dir=DIR], [path to OMF files]),,
 
11762
  [with_omf_dir='${datadir}/omf'])
 
11763
OMF_DIR="$with_omf_dir"
 
11764
AC_SUBST(OMF_DIR)
 
11765
 
 
11766
AC_ARG_WITH([help-formats],
 
11767
  AC_HELP_STRING([--with-help-formats=FORMATS], [list of formats]),,
 
11768
  [with_help_formats=''])
 
11769
DOC_USER_FORMATS="$with_help_formats"
 
11770
AC_SUBST(DOC_USER_FORMATS)
 
11771
 
 
11772
AC_ARG_ENABLE([scrollkeeper],
 
11773
        [AC_HELP_STRING([--disable-scrollkeeper],
 
11774
                        [do not make updates to the scrollkeeper database])],,
 
11775
        enable_scrollkeeper=yes)
 
11776
AM_CONDITIONAL([ENABLE_SK],[test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"])
 
11777
 
 
11778
dnl disable scrollkeeper automatically for distcheck
 
11779
DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS"
 
11780
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
 
11781
 
 
11782
AM_CONDITIONAL([HAVE_GNOME_DOC_UTILS],[test "$gdu_cv_have_gdu" = "yes"])
 
11783
])
 
11784
 
 
11785
# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
 
11786
#
 
11787
AC_DEFUN([GNOME_DOC_INIT],
 
11788
[AC_REQUIRE([AC_PROG_LN_S])dnl
 
11789
 
 
11790
ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1])
 
11791
 
 
11792
AC_MSG_CHECKING([gnome-doc-utils >= $gdu_cv_version_required])
 
11793
PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required],
 
11794
        [gdu_cv_have_gdu=yes],[gdu_cv_have_gdu=no])
 
11795
 
 
11796
if test "$gdu_cv_have_gdu" = "yes"; then
 
11797
        AC_MSG_RESULT([yes])
 
11798
        ifelse([$2],,[:],[$2])
 
11799
else
 
11800
        AC_MSG_RESULT([no])
 
11801
        ifelse([$3],,[AC_MSG_ERROR([gnome-doc-utils >= $gdu_cv_version_required not found])],[$3])
 
11802
fi
 
11803
 
 
11804
GNOME_DOC_DEFINES
 
11805
])
 
11806
 
 
11807
dnl GLIB_GSETTINGS
 
11808
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
 
11809
dnl the schema should be compiled
 
11810
dnl
 
11811
 
 
11812
AC_DEFUN([GLIB_GSETTINGS],
 
11813
[
 
11814
  m4_pattern_allow([AM_V_GEN])
 
11815
  AC_ARG_ENABLE(schemas-compile,
 
11816
                AC_HELP_STRING([--disable-schemas-compile],
 
11817
                               [Disable regeneration of gschemas.compiled on install]),
 
11818
                [case ${enableval} in
 
11819
                  yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE=""  ;;
 
11820
                  no)  GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
 
11821
                  *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;;
 
11822
                 esac])
 
11823
  AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE])
 
11824
  PKG_PROG_PKG_CONFIG([0.16])
 
11825
  AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas])
 
11826
  if test x$cross_compiling != xyes; then
 
11827
    GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
 
11828
  else
 
11829
    AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas)
 
11830
  fi
 
11831
  AC_SUBST(GLIB_COMPILE_SCHEMAS)
 
11832
  if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
 
11833
    ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2])
 
11834
  else
 
11835
    ifelse([$1],,[:],[$1])
 
11836
  fi
 
11837
 
 
11838
  GSETTINGS_RULES='
 
11839
.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
 
11840
 
 
11841
mostlyclean-am: clean-gsettings-schemas
 
11842
 
 
11843
gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
 
11844
 
 
11845
%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
 
11846
        $(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 [$]@
 
11847
 
 
11848
all-am: $(gsettings_SCHEMAS:.xml=.valid)
 
11849
uninstall-am: uninstall-gsettings-schemas
 
11850
install-data-am: install-gsettings-schemas
 
11851
 
 
11852
.SECONDARY: $(gsettings_SCHEMAS)
 
11853
 
 
11854
install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
 
11855
        @$(NORMAL_INSTALL)
 
11856
        if test -n "$^"; then \
 
11857
                test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
 
11858
                $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
 
11859
                test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
 
11860
        fi
 
11861
 
 
11862
uninstall-gsettings-schemas:
 
11863
        @$(NORMAL_UNINSTALL)
 
11864
        @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
 
11865
        files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
 
11866
        test -n "$$files" || exit 0; \
 
11867
        echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
 
11868
        cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
 
11869
        test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
 
11870
 
 
11871
clean-gsettings-schemas:
 
11872
        rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
 
11873
 
 
11874
ifdef gsettings_ENUM_NAMESPACE
 
11875
$(gsettings__enum_file): $(gsettings_ENUM_FILES)
 
11876
        $(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 [$]@
 
11877
endif
 
11878
'
 
11879
  _GSETTINGS_SUBST(GSETTINGS_RULES)
 
11880
])
 
11881
 
 
11882
dnl _GSETTINGS_SUBST(VARIABLE)
 
11883
dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
 
11884
AC_DEFUN([_GSETTINGS_SUBST],
 
11885
[
 
11886
AC_SUBST([$1])
 
11887
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
9724
11888
]
9725
11889
)
9726
11890
 
9727
 
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
9728
 
 
9729
 
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
9730
 
 
9731
 
# Copyright (C) 2001, 2002, 2003, 2005, 2009  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
 
# serial 4
9738
 
 
9739
 
# AM_MAKE_INCLUDE()
9740
 
# -----------------
9741
 
# Check to see how make treats includes.
9742
 
AC_DEFUN([AM_MAKE_INCLUDE],
9743
 
[am_make=${MAKE-make}
9744
 
cat > confinc << 'END'
9745
 
am__doit:
9746
 
        @echo this is the am__doit target
9747
 
.PHONY: am__doit
9748
 
END
9749
 
# If we don't find an include directive, just comment out the code.
9750
 
AC_MSG_CHECKING([for style of include used by $am_make])
9751
 
am__include="#"
9752
 
am__quote=
9753
 
_am_result=none
9754
 
# First try GNU make style include.
9755
 
echo "include confinc" > confmf
9756
 
# Ignore all kinds of additional output from `make'.
9757
 
case `$am_make -s -f confmf 2> /dev/null` in #(
9758
 
*the\ am__doit\ target*)
9759
 
  am__include=include
9760
 
  am__quote=
9761
 
  _am_result=GNU
9762
 
  ;;
9763
 
esac
9764
 
# Now try BSD make style include.
9765
 
if test "$am__include" = "#"; then
9766
 
   echo '.include "confinc"' > confmf
9767
 
   case `$am_make -s -f confmf 2> /dev/null` in #(
9768
 
   *the\ am__doit\ target*)
9769
 
     am__include=.include
9770
 
     am__quote="\""
9771
 
     _am_result=BSD
9772
 
     ;;
9773
 
   esac
9774
 
fi
9775
 
AC_SUBST([am__include])
9776
 
AC_SUBST([am__quote])
9777
 
AC_MSG_RESULT([$_am_result])
9778
 
rm -f confinc confmf
9779
 
])
9780
 
 
9781
 
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
9782
 
 
9783
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
9784
 
# Free Software Foundation, Inc.
9785
 
#
9786
 
# This file is free software; the Free Software Foundation
9787
 
# gives unlimited permission to copy and/or distribute it,
9788
 
# with or without modifications, as long as this notice is preserved.
9789
 
 
9790
 
# serial 6
9791
 
 
9792
 
# AM_MISSING_PROG(NAME, PROGRAM)
9793
 
# ------------------------------
9794
 
AC_DEFUN([AM_MISSING_PROG],
9795
 
[AC_REQUIRE([AM_MISSING_HAS_RUN])
9796
 
$1=${$1-"${am_missing_run}$2"}
9797
 
AC_SUBST($1)])
9798
 
 
9799
 
 
9800
 
# AM_MISSING_HAS_RUN
9801
 
# ------------------
9802
 
# Define MISSING if not defined so far and test if it supports --run.
9803
 
# If it does, set am_missing_run to use it, otherwise, to nothing.
9804
 
AC_DEFUN([AM_MISSING_HAS_RUN],
9805
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9806
 
AC_REQUIRE_AUX_FILE([missing])dnl
9807
 
if test x"${MISSING+set}" != xset; then
9808
 
  case $am_aux_dir in
9809
 
  *\ * | *\     *)
9810
 
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
9811
 
  *)
9812
 
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
9813
 
  esac
9814
 
fi
9815
 
# Use eval to expand $SHELL
9816
 
if eval "$MISSING --run true"; then
9817
 
  am_missing_run="$MISSING --run "
9818
 
else
9819
 
  am_missing_run=
9820
 
  AC_MSG_WARN([`missing' script is too old or missing])
9821
 
fi
9822
 
])
9823
 
 
9824
 
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
9825
 
#
9826
 
# This file is free software; the Free Software Foundation
9827
 
# gives unlimited permission to copy and/or distribute it,
9828
 
# with or without modifications, as long as this notice is preserved.
9829
 
 
9830
 
# AM_PROG_MKDIR_P
9831
 
# ---------------
9832
 
# Check for `mkdir -p'.
9833
 
AC_DEFUN([AM_PROG_MKDIR_P],
9834
 
[AC_PREREQ([2.60])dnl
9835
 
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
9836
 
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
9837
 
dnl while keeping a definition of mkdir_p for backward compatibility.
9838
 
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
9839
 
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
9840
 
dnl Makefile.ins that do not define MKDIR_P, so we do our own
9841
 
dnl adjustment using top_builddir (which is defined more often than
9842
 
dnl MKDIR_P).
9843
 
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
9844
 
case $mkdir_p in
9845
 
  [[\\/$]]* | ?:[[\\/]]*) ;;
9846
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
9847
 
esac
9848
 
])
9849
 
 
9850
 
# Helper functions for option handling.                     -*- Autoconf -*-
9851
 
 
9852
 
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
9853
 
#
9854
 
# This file is free software; the Free Software Foundation
9855
 
# gives unlimited permission to copy and/or distribute it,
9856
 
# with or without modifications, as long as this notice is preserved.
9857
 
 
9858
 
# serial 4
9859
 
 
9860
 
# _AM_MANGLE_OPTION(NAME)
9861
 
# -----------------------
9862
 
AC_DEFUN([_AM_MANGLE_OPTION],
9863
 
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
9864
 
 
9865
 
# _AM_SET_OPTION(NAME)
9866
 
# ------------------------------
9867
 
# Set option NAME.  Presently that only means defining a flag for this option.
9868
 
AC_DEFUN([_AM_SET_OPTION],
9869
 
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
9870
 
 
9871
 
# _AM_SET_OPTIONS(OPTIONS)
9872
 
# ----------------------------------
9873
 
# OPTIONS is a space-separated list of Automake options.
9874
 
AC_DEFUN([_AM_SET_OPTIONS],
9875
 
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
9876
 
 
9877
 
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
9878
 
# -------------------------------------------
9879
 
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
9880
 
AC_DEFUN([_AM_IF_OPTION],
9881
 
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
9882
 
 
9883
 
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
9884
 
 
9885
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
9886
 
# Free Software Foundation, Inc.
9887
 
#
9888
 
# This file is free software; the Free Software Foundation
9889
 
# gives unlimited permission to copy and/or distribute it,
9890
 
# with or without modifications, as long as this notice is preserved.
9891
 
 
9892
 
# serial 5
9893
 
 
9894
 
# AM_SANITY_CHECK
9895
 
# ---------------
9896
 
AC_DEFUN([AM_SANITY_CHECK],
9897
 
[AC_MSG_CHECKING([whether build environment is sane])
9898
 
# Just in case
9899
 
sleep 1
9900
 
echo timestamp > conftest.file
9901
 
# Reject unsafe characters in $srcdir or the absolute working directory
9902
 
# name.  Accept space and tab only in the latter.
9903
 
am_lf='
9904
 
'
9905
 
case `pwd` in
9906
 
  *[[\\\"\#\$\&\'\`$am_lf]]*)
9907
 
    AC_MSG_ERROR([unsafe absolute working directory name]);;
9908
 
esac
9909
 
case $srcdir in
9910
 
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
9911
 
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
9912
 
esac
9913
 
 
9914
 
# Do `set' in a subshell so we don't clobber the current shell's
9915
 
# arguments.  Must try -L first in case configure is actually a
9916
 
# symlink; some systems play weird games with the mod time of symlinks
9917
 
# (eg FreeBSD returns the mod time of the symlink's containing
9918
 
# directory).
9919
 
if (
9920
 
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
9921
 
   if test "$[*]" = "X"; then
9922
 
      # -L didn't work.
9923
 
      set X `ls -t "$srcdir/configure" conftest.file`
9924
 
   fi
9925
 
   rm -f conftest.file
9926
 
   if test "$[*]" != "X $srcdir/configure conftest.file" \
9927
 
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
9928
 
 
9929
 
      # If neither matched, then we have a broken ls.  This can happen
9930
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
9931
 
      # broken ls alias from the environment.  This has actually
9932
 
      # happened.  Such a system could not be considered "sane".
9933
 
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
9934
 
alias in your environment])
9935
 
   fi
9936
 
 
9937
 
   test "$[2]" = conftest.file
9938
 
   )
9939
 
then
9940
 
   # Ok.
9941
 
   :
9942
 
else
9943
 
   AC_MSG_ERROR([newly created file is older than distributed files!
9944
 
Check your system clock])
9945
 
fi
9946
 
AC_MSG_RESULT(yes)])
9947
 
 
9948
 
# Copyright (C) 2009  Free Software Foundation, Inc.
9949
 
#
9950
 
# This file is free software; the Free Software Foundation
9951
 
# gives unlimited permission to copy and/or distribute it,
9952
 
# with or without modifications, as long as this notice is preserved.
 
11891
dnl -*- mode: autoconf -*-
9953
11892
 
9954
11893
# serial 1
9955
11894
 
9956
 
# AM_SILENT_RULES([DEFAULT])
9957
 
# --------------------------
9958
 
# Enable less verbose build rules; with the default set to DEFAULT
9959
 
# (`yes' being less verbose, `no' or empty being verbose).
9960
 
AC_DEFUN([AM_SILENT_RULES],
9961
 
[AC_ARG_ENABLE([silent-rules],
9962
 
[  --enable-silent-rules          less verbose build output (undo: `make V=1')
9963
 
  --disable-silent-rules         verbose build output (undo: `make V=0')])
9964
 
case $enable_silent_rules in
9965
 
yes) AM_DEFAULT_VERBOSITY=0;;
9966
 
no)  AM_DEFAULT_VERBOSITY=1;;
9967
 
*)   AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
 
11895
dnl Usage:
 
11896
dnl   GTK_DOC_CHECK([minimum-gtk-doc-version])
 
11897
AC_DEFUN([GTK_DOC_CHECK],
 
11898
[
 
11899
  AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
 
11900
  AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
 
11901
 
 
11902
  dnl check for tools we added during development
 
11903
  AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check])
 
11904
  AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true])
 
11905
  AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf])
 
11906
 
 
11907
  dnl for overriding the documentation installation directory
 
11908
  AC_ARG_WITH([html-dir],
 
11909
    AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
 
11910
    [with_html_dir='${datadir}/gtk-doc/html'])
 
11911
  HTML_DIR="$with_html_dir"
 
11912
  AC_SUBST([HTML_DIR])
 
11913
 
 
11914
  dnl enable/disable documentation building
 
11915
  AC_ARG_ENABLE([gtk-doc],
 
11916
    AS_HELP_STRING([--enable-gtk-doc],
 
11917
                   [use gtk-doc to build documentation [[default=no]]]),,
 
11918
    [enable_gtk_doc=no])
 
11919
 
 
11920
  if test x$enable_gtk_doc = xyes; then
 
11921
    ifelse([$1],[],
 
11922
      [PKG_CHECK_EXISTS([gtk-doc],,
 
11923
                        AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
 
11924
      [PKG_CHECK_EXISTS([gtk-doc >= $1],,
 
11925
                        AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))])
 
11926
  fi
 
11927
 
 
11928
  AC_MSG_CHECKING([whether to build gtk-doc documentation])
 
11929
  AC_MSG_RESULT($enable_gtk_doc)
 
11930
 
 
11931
  dnl enable/disable output formats
 
11932
  AC_ARG_ENABLE([gtk-doc-html],
 
11933
    AS_HELP_STRING([--enable-gtk-doc-html],
 
11934
                   [build documentation in html format [[default=yes]]]),,
 
11935
    [enable_gtk_doc_html=yes])
 
11936
    AC_ARG_ENABLE([gtk-doc-pdf],
 
11937
      AS_HELP_STRING([--enable-gtk-doc-pdf],
 
11938
                     [build documentation in pdf format [[default=no]]]),,
 
11939
      [enable_gtk_doc_pdf=no])
 
11940
 
 
11941
  if test -z "$GTKDOC_MKPDF"; then
 
11942
    enable_gtk_doc_pdf=no
 
11943
  fi
 
11944
 
 
11945
 
 
11946
  AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
 
11947
  AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes])
 
11948
  AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes])
 
11949
  AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
 
11950
  AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"])
 
11951
])
 
11952
 
 
11953
 
 
11954
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
 
11955
# serial 40 IT_PROG_INTLTOOL
 
11956
AC_DEFUN([IT_PROG_INTLTOOL], [
 
11957
AC_PREREQ([2.50])dnl
 
11958
AC_REQUIRE([AM_NLS])dnl
 
11959
 
 
11960
case "$am__api_version" in
 
11961
    1.[01234])
 
11962
        AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
 
11963
    ;;
 
11964
    *)
 
11965
    ;;
9968
11966
esac
9969
 
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
9970
 
AM_BACKSLASH='\'
9971
 
AC_SUBST([AM_BACKSLASH])dnl
9972
 
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
 
11967
 
 
11968
if test -n "$1"; then
 
11969
    AC_MSG_CHECKING([for intltool >= $1])
 
11970
 
 
11971
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
11972
    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
 
11973
    [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
11974
    ]
 
11975
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
 
11976
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
 
11977
        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
 
11978
fi
 
11979
 
 
11980
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
 
11981
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
 
11982
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
 
11983
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
 
11984
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
 
11985
fi
 
11986
 
 
11987
  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 $< [$]@' 
 
11988
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 $< [$]@' 
 
11989
     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 $< [$]@' 
 
11990
     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 $< [$]@' 
 
11991
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
 
11992
     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 $< [$]@' 
 
11993
   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 $< [$]@' 
 
11994
    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 $< [$]@' 
 
11995
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 $< [$]@' 
 
11996
       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 $< [$]@' 
 
11997
      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 $< [$]@' 
 
11998
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' 
 
11999
      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 $< [$]@' 
 
12000
      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 $< [$]@' 
 
12001
    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 $< [$]@' 
 
12002
  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 $< [$]@' 
 
12003
    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 $< [$]@' 
 
12004
    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 $< [$]@'
 
12005
   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 $< [$]@'
 
12006
 
 
12007
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
 
12008
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
 
12009
_IT_SUBST(INTLTOOL_KEYS_RULE)
 
12010
_IT_SUBST(INTLTOOL_PROP_RULE)
 
12011
_IT_SUBST(INTLTOOL_OAF_RULE)
 
12012
_IT_SUBST(INTLTOOL_PONG_RULE)
 
12013
_IT_SUBST(INTLTOOL_SERVER_RULE)
 
12014
_IT_SUBST(INTLTOOL_SHEET_RULE)
 
12015
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
 
12016
_IT_SUBST(INTLTOOL_UI_RULE)
 
12017
_IT_SUBST(INTLTOOL_XAM_RULE)
 
12018
_IT_SUBST(INTLTOOL_KBD_RULE)
 
12019
_IT_SUBST(INTLTOOL_XML_RULE)
 
12020
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
 
12021
_IT_SUBST(INTLTOOL_CAVES_RULE)
 
12022
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
 
12023
_IT_SUBST(INTLTOOL_THEME_RULE)
 
12024
_IT_SUBST(INTLTOOL_SERVICE_RULE)
 
12025
_IT_SUBST(INTLTOOL_POLICY_RULE)
 
12026
 
 
12027
# Check the gettext tools to make sure they are GNU
 
12028
AC_PATH_PROG(XGETTEXT, xgettext)
 
12029
AC_PATH_PROG(MSGMERGE, msgmerge)
 
12030
AC_PATH_PROG(MSGFMT, msgfmt)
 
12031
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
 
12032
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
 
12033
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
 
12034
fi
 
12035
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
 
12036
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
 
12037
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
 
12038
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
 
12039
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
 
12040
fi
 
12041
 
 
12042
AC_PATH_PROG(INTLTOOL_PERL, perl)
 
12043
if test -z "$INTLTOOL_PERL"; then
 
12044
   AC_MSG_ERROR([perl not found])
 
12045
fi
 
12046
AC_MSG_CHECKING([for perl >= 5.8.1])
 
12047
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
 
12048
if test $? -ne 0; then
 
12049
   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
 
12050
else
 
12051
   IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
 
12052
   AC_MSG_RESULT([$IT_PERL_VERSION])
 
12053
fi
 
12054
if test "x$2" != "xno-xml"; then
 
12055
   AC_MSG_CHECKING([for XML::Parser])
 
12056
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
 
12057
       AC_MSG_RESULT([ok])
 
12058
   else
 
12059
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
 
12060
   fi
 
12061
fi
 
12062
 
 
12063
# Substitute ALL_LINGUAS so we can use it in po/Makefile
 
12064
AC_SUBST(ALL_LINGUAS)
 
12065
 
 
12066
# Set DATADIRNAME correctly if it is not set yet
 
12067
# (copied from glib-gettext.m4)
 
12068
if test -z "$DATADIRNAME"; then
 
12069
  AC_LINK_IFELSE(
 
12070
    [AC_LANG_PROGRAM([[]],
 
12071
                     [[extern int _nl_msg_cat_cntr;
 
12072
                       return _nl_msg_cat_cntr]])],
 
12073
    [DATADIRNAME=share],
 
12074
    [case $host in
 
12075
    *-*-solaris*)
 
12076
    dnl On Solaris, if bind_textdomain_codeset is in libc,
 
12077
    dnl GNU format message catalog is always supported,
 
12078
    dnl since both are added to the libc all together.
 
12079
    dnl Hence, we'd like to go with DATADIRNAME=share
 
12080
    dnl in this case.
 
12081
    AC_CHECK_FUNC(bind_textdomain_codeset,
 
12082
      [DATADIRNAME=share], [DATADIRNAME=lib])
 
12083
    ;;
 
12084
    *)
 
12085
    [DATADIRNAME=lib]
 
12086
    ;;
 
12087
    esac])
 
12088
fi
 
12089
AC_SUBST(DATADIRNAME)
 
12090
 
 
12091
IT_PO_SUBDIR([po])
 
12092
 
9973
12093
])
9974
12094
 
9975
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
9976
 
#
9977
 
# This file is free software; the Free Software Foundation
9978
 
# gives unlimited permission to copy and/or distribute it,
9979
 
# with or without modifications, as long as this notice is preserved.
9980
12095
 
9981
 
# AM_PROG_INSTALL_STRIP
 
12096
# IT_PO_SUBDIR(DIRNAME)
9982
12097
# ---------------------
9983
 
# One issue with vendor `install' (even GNU) is that you can't
9984
 
# specify the program used to strip binaries.  This is especially
9985
 
# annoying in cross-compiling environments, where the build's strip
9986
 
# is unlikely to handle the host's binaries.
9987
 
# Fortunately install-sh will honor a STRIPPROG variable, so we
9988
 
# always use install-sh in `make install-strip', and initialize
9989
 
# STRIPPROG with the value of the STRIP variable (set by the user).
9990
 
AC_DEFUN([AM_PROG_INSTALL_STRIP],
9991
 
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9992
 
# Installed binaries are usually stripped using `strip' when the user
9993
 
# run `make install-strip'.  However `strip' might not be the right
9994
 
# tool to use in cross-compilation environments, therefore Automake
9995
 
# will honor the `STRIP' environment variable to overrule this program.
9996
 
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
9997
 
if test "$cross_compiling" != no; then
9998
 
  AC_CHECK_TOOL([STRIP], [strip], :)
9999
 
fi
10000
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10001
 
AC_SUBST([INSTALL_STRIP_PROGRAM])])
10002
 
 
10003
 
# Copyright (C) 2006, 2008  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 2
10010
 
 
10011
 
# _AM_SUBST_NOTMAKE(VARIABLE)
10012
 
# ---------------------------
10013
 
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
10014
 
# This macro is traced by Automake.
10015
 
AC_DEFUN([_AM_SUBST_NOTMAKE])
10016
 
 
10017
 
# AM_SUBST_NOTMAKE(VARIABLE)
10018
 
# ---------------------------
10019
 
# Public sister of _AM_SUBST_NOTMAKE.
10020
 
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
10021
 
 
10022
 
# Check how to create a tarball.                            -*- Autoconf -*-
10023
 
 
10024
 
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
10025
 
#
10026
 
# This file is free software; the Free Software Foundation
10027
 
# gives unlimited permission to copy and/or distribute it,
10028
 
# with or without modifications, as long as this notice is preserved.
10029
 
 
10030
 
# serial 2
10031
 
 
10032
 
# _AM_PROG_TAR(FORMAT)
10033
 
# --------------------
10034
 
# Check how to create a tarball in format FORMAT.
10035
 
# FORMAT should be one of `v7', `ustar', or `pax'.
10036
 
#
10037
 
# Substitute a variable $(am__tar) that is a command
10038
 
# writing to stdout a FORMAT-tarball containing the directory
10039
 
# $tardir.
10040
 
#     tardir=directory && $(am__tar) > result.tar
10041
 
#
10042
 
# Substitute a variable $(am__untar) that extract such
10043
 
# a tarball read from stdin.
10044
 
#     $(am__untar) < result.tar
10045
 
AC_DEFUN([_AM_PROG_TAR],
10046
 
[# Always define AMTAR for backward compatibility.
10047
 
AM_MISSING_PROG([AMTAR], [tar])
10048
 
m4_if([$1], [v7],
10049
 
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
10050
 
     [m4_case([$1], [ustar],, [pax],,
10051
 
              [m4_fatal([Unknown tar format])])
10052
 
AC_MSG_CHECKING([how to create a $1 tar archive])
10053
 
# Loop over all known methods to create a tar archive until one works.
10054
 
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
10055
 
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
10056
 
# Do not fold the above two line into one, because Tru64 sh and
10057
 
# Solaris sh will not grok spaces in the rhs of `-'.
10058
 
for _am_tool in $_am_tools
10059
 
do
10060
 
  case $_am_tool in
10061
 
  gnutar)
10062
 
    for _am_tar in tar gnutar gtar;
10063
 
    do
10064
 
      AM_RUN_LOG([$_am_tar --version]) && break
10065
 
    done
10066
 
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
10067
 
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
10068
 
    am__untar="$_am_tar -xf -"
10069
 
    ;;
10070
 
  plaintar)
10071
 
    # Must skip GNU tar: if it does not support --format= it doesn't create
10072
 
    # ustar tarball either.
10073
 
    (tar --version) >/dev/null 2>&1 && continue
10074
 
    am__tar='tar chf - "$$tardir"'
10075
 
    am__tar_='tar chf - "$tardir"'
10076
 
    am__untar='tar xf -'
10077
 
    ;;
10078
 
  pax)
10079
 
    am__tar='pax -L -x $1 -w "$$tardir"'
10080
 
    am__tar_='pax -L -x $1 -w "$tardir"'
10081
 
    am__untar='pax -r'
10082
 
    ;;
10083
 
  cpio)
10084
 
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
10085
 
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
10086
 
    am__untar='cpio -i -H $1 -d'
10087
 
    ;;
10088
 
  none)
10089
 
    am__tar=false
10090
 
    am__tar_=false
10091
 
    am__untar=false
10092
 
    ;;
10093
 
  esac
10094
 
 
10095
 
  # If the value was cached, stop now.  We just wanted to have am__tar
10096
 
  # and am__untar set.
10097
 
  test -n "${am_cv_prog_tar_$1}" && break
10098
 
 
10099
 
  # tar/untar a dummy directory, and stop if the command works
10100
 
  rm -rf conftest.dir
10101
 
  mkdir conftest.dir
10102
 
  echo GrepMe > conftest.dir/file
10103
 
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
10104
 
  rm -rf conftest.dir
10105
 
  if test -s conftest.tar; then
10106
 
    AM_RUN_LOG([$am__untar <conftest.tar])
10107
 
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
10108
 
  fi
10109
 
done
10110
 
rm -rf conftest.dir
10111
 
 
10112
 
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
10113
 
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
10114
 
AC_SUBST([am__tar])
10115
 
AC_SUBST([am__untar])
10116
 
]) # _AM_PROG_TAR
 
12098
# All po subdirs have to be declared with this macro; the subdir "po" is
 
12099
# declared by IT_PROG_INTLTOOL.
 
12100
#
 
12101
AC_DEFUN([IT_PO_SUBDIR],
 
12102
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
 
12103
dnl
 
12104
dnl The following CONFIG_COMMANDS should be executed at the very end
 
12105
dnl of config.status.
 
12106
AC_CONFIG_COMMANDS_PRE([
 
12107
  AC_CONFIG_COMMANDS([$1/stamp-it], [
 
12108
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
 
12109
       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
 
12110
    fi
 
12111
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
 
12112
    >"$1/stamp-it.tmp"
 
12113
    [sed '/^#/d
 
12114
         s/^[[].*] *//
 
12115
         /^[    ]*$/d
 
12116
        '"s|^|  $ac_top_srcdir/|" \
 
12117
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
 
12118
    ]
 
12119
    [sed '/^POTFILES =/,/[^\\]$/ {
 
12120
                /^POTFILES =/!d
 
12121
                r $1/POTFILES
 
12122
          }
 
12123
         ' "$1/Makefile.in" >"$1/Makefile"]
 
12124
    rm -f "$1/Makefile.tmp"
 
12125
    mv "$1/stamp-it.tmp" "$1/stamp-it"
 
12126
  ])
 
12127
])dnl
 
12128
])
 
12129
 
 
12130
# _IT_SUBST(VARIABLE)
 
12131
# -------------------
 
12132
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
 
12133
#
 
12134
AC_DEFUN([_IT_SUBST],
 
12135
[
 
12136
AC_SUBST([$1])
 
12137
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
 
12138
]
 
12139
)
 
12140
 
 
12141
# deprecated macros
 
12142
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
 
12143
# A hint is needed for aclocal from Automake <= 1.9.4:
 
12144
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
 
12145
 
 
12146
 
 
12147
dnl -*- mode: autoconf -*-
 
12148
dnl Copyright 2009 Johan Dahlin
 
12149
dnl
 
12150
dnl This file is free software; the author(s) gives unlimited
 
12151
dnl permission to copy and/or distribute it, with or without
 
12152
dnl modifications, as long as this notice is preserved.
 
12153
dnl
 
12154
 
 
12155
# serial 1
 
12156
 
 
12157
m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL],
 
12158
[
 
12159
    AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
 
12160
    AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
 
12161
    AC_BEFORE([LT_INIT],[$0])dnl setup libtool first
 
12162
 
 
12163
    dnl enable/disable introspection
 
12164
    m4_if([$2], [require],
 
12165
    [dnl
 
12166
        enable_introspection=yes
 
12167
    ],[dnl
 
12168
        AC_ARG_ENABLE(introspection,
 
12169
                  AS_HELP_STRING([--enable-introspection[=@<:@no/auto/yes@:>@]],
 
12170
                                 [Enable introspection for this build]),, 
 
12171
                                 [enable_introspection=auto])
 
12172
    ])dnl
 
12173
 
 
12174
    AC_MSG_CHECKING([for gobject-introspection])
 
12175
 
 
12176
    dnl presence/version checking
 
12177
    AS_CASE([$enable_introspection],
 
12178
    [no], [dnl
 
12179
        found_introspection="no (disabled, use --enable-introspection to enable)"
 
12180
    ],dnl
 
12181
    [yes],[dnl
 
12182
        PKG_CHECK_EXISTS([gobject-introspection-1.0],,
 
12183
                         AC_MSG_ERROR([gobject-introspection-1.0 is not installed]))
 
12184
        PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1],
 
12185
                         found_introspection=yes,
 
12186
                         AC_MSG_ERROR([You need to have gobject-introspection >= $1 installed to build AC_PACKAGE_NAME]))
 
12187
    ],dnl
 
12188
    [auto],[dnl
 
12189
        PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, found_introspection=no)
 
12190
    ],dnl
 
12191
    [dnl        
 
12192
        AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@])
 
12193
    ])dnl
 
12194
 
 
12195
    AC_MSG_RESULT([$found_introspection])
 
12196
 
 
12197
    INTROSPECTION_SCANNER=
 
12198
    INTROSPECTION_COMPILER=
 
12199
    INTROSPECTION_GENERATE=
 
12200
    INTROSPECTION_GIRDIR=
 
12201
    INTROSPECTION_TYPELIBDIR=
 
12202
    if test "x$found_introspection" = "xyes"; then
 
12203
       INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
 
12204
       INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
 
12205
       INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
 
12206
       INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
 
12207
       INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
 
12208
       INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
 
12209
       INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
 
12210
       INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
 
12211
    fi
 
12212
    AC_SUBST(INTROSPECTION_SCANNER)
 
12213
    AC_SUBST(INTROSPECTION_COMPILER)
 
12214
    AC_SUBST(INTROSPECTION_GENERATE)
 
12215
    AC_SUBST(INTROSPECTION_GIRDIR)
 
12216
    AC_SUBST(INTROSPECTION_TYPELIBDIR)
 
12217
    AC_SUBST(INTROSPECTION_CFLAGS)
 
12218
    AC_SUBST(INTROSPECTION_LIBS)
 
12219
    AC_SUBST(INTROSPECTION_MAKEFILE)
 
12220
 
 
12221
    AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes")
 
12222
])
 
12223
 
 
12224
 
 
12225
dnl Usage:
 
12226
dnl   GOBJECT_INTROSPECTION_CHECK([minimum-g-i-version])
 
12227
 
 
12228
AC_DEFUN([GOBJECT_INTROSPECTION_CHECK],
 
12229
[
 
12230
  _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1])
 
12231
])
 
12232
 
 
12233
dnl Usage:
 
12234
dnl   GOBJECT_INTROSPECTION_REQUIRE([minimum-g-i-version])
 
12235
 
 
12236
 
 
12237
AC_DEFUN([GOBJECT_INTROSPECTION_REQUIRE],
 
12238
[
 
12239
  _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require])
 
12240
])
10117
12241
 
10118
12242
m4_include([acinclude.m4])