~ubuntu-branches/ubuntu/maverick/brasero/maverick

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-09-14 10:23:22 UTC
  • mfrom: (1.1.44 upstream)
  • Revision ID: james.westby@ubuntu.com-20100914102322-7eigq8pge5wqfol1
Tags: 2.31.92-0ubuntu1
* New upstream release:
  - Revert to libunique from GApplication (Luis Medinas)
  - Remove dbus-glib requires from pkgconfig file (Luis Medinas)
  - Some more debugging to find out about problems with encrypted DVDs
    (Philippe Rouquier)
  - Fix minor issues in gdbus conversion. (Luis Medinas)
  - Remove dbus-glib check from configure (Luis Medinas)
  - Replace last part of dbus-glib by GDBus (Luis Medinas)
  - Fix Inhibit() d-bus parameters (Robert Ancell)
  - Remove dbus libraries from the Makefile. (Luis Medinas)
  - Use --with-gtk switch for gtk 2/3 selection (Christian Persch)
  - Fix image checksuming that did not occur when GConf or GSetting returned 0
    as a value for the checksum type key (Philippe Rouquier)
  - Don't hardcode gconf gsettings backend (Robert Ancell)
  - Fix brasero plugin directory (Robert Ancell)
* debian/control:
  - build-dep on libunique
* debian/patches/010_lpi.patch,31_link_libice.patch:
  - adapt to latest code
* debian/patches/013_gsettings_backend.patch,014_plugin_directory.patch,
  015_inhibit_params.patch:
  - removed, now upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
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.66],,
17
 
[m4_warning([this file was generated for autoconf 2.66.
 
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
 
17
[m4_warning([this file was generated for autoconf 2.65.
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
 
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
23
 
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
24
 
#
25
 
# This file is free software, distributed under the terms of the GNU
26
 
# General Public License.  As a special exception to the GNU General
27
 
# Public License, this file may be distributed as part of a program
28
 
# that contains a configuration script generated by Autoconf, under
29
 
# the same distribution terms as the rest of that program.
30
 
#
31
 
# This file can be copied and used freely without restrictions.  It can
32
 
# be used in projects which are not available under the GNU Public License
33
 
# but which still want to provide support for the GNU gettext functionality.
34
 
#
35
 
# Macro to add for using GNU gettext.
36
 
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
37
 
#
38
 
# Modified to never use included libintl. 
39
 
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
40
 
#
41
 
# Major rework to remove unused code
42
 
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
43
 
#
44
 
# Added better handling of ALL_LINGUAS from GNU gettext version 
45
 
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
46
 
#
47
 
# Modified to require ngettext
48
 
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
49
 
#
50
 
# We need this here as well, since someone might use autoconf-2.5x
51
 
# to configure GLib then an older version to configure a package
52
 
# using AM_GLIB_GNU_GETTEXT
53
 
AC_PREREQ(2.53)
54
 
 
55
 
dnl
56
 
dnl We go to great lengths to make sure that aclocal won't 
57
 
dnl try to pull in the installed version of these macros
58
 
dnl when running aclocal in the glib directory.
59
 
dnl
60
 
m4_copy([AC_DEFUN],[glib_DEFUN])
61
 
m4_copy([AC_REQUIRE],[glib_REQUIRE])
62
 
dnl
63
 
dnl At the end, if we're not within glib, we'll define the public
64
 
dnl definitions in terms of our private definitions.
65
 
dnl
66
 
 
67
 
# GLIB_LC_MESSAGES
68
 
#--------------------
69
 
glib_DEFUN([GLIB_LC_MESSAGES],
70
 
  [AC_CHECK_HEADERS([locale.h])
71
 
    if test $ac_cv_header_locale_h = yes; then
72
 
    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
73
 
      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
74
 
       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
75
 
    if test $am_cv_val_LC_MESSAGES = yes; then
76
 
      AC_DEFINE(HAVE_LC_MESSAGES, 1,
77
 
        [Define if your <locale.h> file defines LC_MESSAGES.])
78
 
    fi
79
 
  fi])
80
 
 
81
 
# GLIB_PATH_PROG_WITH_TEST
82
 
#----------------------------
83
 
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
84
 
dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
85
 
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
86
 
[# Extract the first word of "$2", so it can be a program name with args.
87
 
set dummy $2; ac_word=[$]2
88
 
AC_MSG_CHECKING([for $ac_word])
89
 
AC_CACHE_VAL(ac_cv_path_$1,
90
 
[case "[$]$1" in
91
 
  /*)
92
 
  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
93
 
  ;;
94
 
  *)
95
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
96
 
  for ac_dir in ifelse([$5], , $PATH, [$5]); do
97
 
    test -z "$ac_dir" && ac_dir=.
98
 
    if test -f $ac_dir/$ac_word; then
99
 
      if [$3]; then
100
 
        ac_cv_path_$1="$ac_dir/$ac_word"
 
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
101
255
        break
102
256
      fi
103
 
    fi
104
 
  done
105
 
  IFS="$ac_save_ifs"
106
 
dnl If no 4th arg is given, leave the cache variable unset,
107
 
dnl so AC_PATH_PROGS will keep looking.
108
 
ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
109
 
])dnl
110
 
  ;;
111
 
esac])dnl
112
 
$1="$ac_cv_path_$1"
113
 
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
114
 
  AC_MSG_RESULT([$]$1)
115
 
else
116
 
  AC_MSG_RESULT(no)
117
 
fi
118
 
AC_SUBST($1)dnl
119
 
])
120
 
 
121
 
# GLIB_WITH_NLS
122
 
#-----------------
123
 
glib_DEFUN([GLIB_WITH_NLS],
124
 
  dnl NLS is obligatory
125
 
  [USE_NLS=yes
126
 
    AC_SUBST(USE_NLS)
127
 
 
128
 
    gt_cv_have_gettext=no
129
 
 
130
 
    CATOBJEXT=NONE
131
 
    XGETTEXT=:
132
 
    INTLLIBS=
133
 
 
134
 
    AC_CHECK_HEADER(libintl.h,
135
 
     [gt_cv_func_dgettext_libintl="no"
136
 
      libintl_extra_libs=""
137
 
 
138
 
      #
139
 
      # First check in libc
140
 
      #
141
 
      AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
142
 
        [AC_TRY_LINK([
143
 
#include <libintl.h>
144
 
],
145
 
         [return !ngettext ("","", 1)],
146
 
          gt_cv_func_ngettext_libc=yes,
147
 
          gt_cv_func_ngettext_libc=no)
148
 
        ])
149
 
  
150
 
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
151
 
              AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
152
 
                [AC_TRY_LINK([
153
 
#include <libintl.h>
154
 
],
155
 
                  [return !dgettext ("","")],
156
 
                  gt_cv_func_dgettext_libc=yes,
157
 
                  gt_cv_func_dgettext_libc=no)
158
 
                ])
159
 
      fi
160
 
  
161
 
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
162
 
        AC_CHECK_FUNCS(bind_textdomain_codeset)
163
 
      fi
164
 
 
165
 
      #
166
 
      # If we don't have everything we want, check in libintl
167
 
      #
168
 
      if test "$gt_cv_func_dgettext_libc" != "yes" \
169
 
         || test "$gt_cv_func_ngettext_libc" != "yes" \
170
 
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
171
 
        
172
 
        AC_CHECK_LIB(intl, bindtextdomain,
173
 
            [AC_CHECK_LIB(intl, ngettext,
174
 
                    [AC_CHECK_LIB(intl, dgettext,
175
 
                                  gt_cv_func_dgettext_libintl=yes)])])
176
 
 
177
 
        if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
178
 
          AC_MSG_CHECKING([if -liconv is needed to use gettext])
179
 
          AC_MSG_RESULT([])
180
 
          AC_CHECK_LIB(intl, ngettext,
181
 
                [AC_CHECK_LIB(intl, dcgettext,
182
 
                       [gt_cv_func_dgettext_libintl=yes
183
 
                        libintl_extra_libs=-liconv],
184
 
                        :,-liconv)],
185
 
                :,-liconv)
186
 
        fi
187
 
 
188
 
        #
189
 
        # If we found libintl, then check in it for bind_textdomain_codeset();
190
 
        # we'll prefer libc if neither have bind_textdomain_codeset(),
191
 
        # and both have dgettext and ngettext
192
 
        #
193
 
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
194
 
          glib_save_LIBS="$LIBS"
195
 
          LIBS="$LIBS -lintl $libintl_extra_libs"
196
 
          unset ac_cv_func_bind_textdomain_codeset
197
 
          AC_CHECK_FUNCS(bind_textdomain_codeset)
198
 
          LIBS="$glib_save_LIBS"
199
 
 
200
 
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
201
 
            gt_cv_func_dgettext_libc=no
202
 
          else
203
 
            if test "$gt_cv_func_dgettext_libc" = "yes" \
204
 
                && test "$gt_cv_func_ngettext_libc" = "yes"; then
205
 
              gt_cv_func_dgettext_libintl=no
206
 
            fi
207
 
          fi
208
 
        fi
209
 
      fi
210
 
 
211
 
      if test "$gt_cv_func_dgettext_libc" = "yes" \
212
 
        || test "$gt_cv_func_dgettext_libintl" = "yes"; then
213
 
        gt_cv_have_gettext=yes
214
 
      fi
215
 
  
216
 
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
217
 
        INTLLIBS="-lintl $libintl_extra_libs"
218
 
      fi
219
 
  
220
 
      if test "$gt_cv_have_gettext" = "yes"; then
221
 
        AC_DEFINE(HAVE_GETTEXT,1,
222
 
          [Define if the GNU gettext() function is already present or preinstalled.])
223
 
        GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
224
 
          [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
225
 
        if test "$MSGFMT" != "no"; then
226
 
          glib_save_LIBS="$LIBS"
227
 
          LIBS="$LIBS $INTLLIBS"
228
 
          AC_CHECK_FUNCS(dcgettext)
229
 
          MSGFMT_OPTS=
230
 
          AC_MSG_CHECKING([if msgfmt accepts -c])
231
 
          GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
232
 
msgid ""
233
 
msgstr ""
234
 
"Content-Type: text/plain; charset=UTF-8\n"
235
 
"Project-Id-Version: test 1.0\n"
236
 
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
237
 
"Last-Translator: test <foo@bar.xx>\n"
238
 
"Language-Team: C <LL@li.org>\n"
239
 
"MIME-Version: 1.0\n"
240
 
"Content-Transfer-Encoding: 8bit\n"
241
 
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
242
 
          AC_SUBST(MSGFMT_OPTS)
243
 
          AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
244
 
          GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
245
 
            [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
246
 
          AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
247
 
                         return _nl_msg_cat_cntr],
248
 
            [CATOBJEXT=.gmo 
249
 
             DATADIRNAME=share],
250
 
            [case $host in
251
 
            *-*-solaris*)
252
 
            dnl On Solaris, if bind_textdomain_codeset is in libc,
253
 
            dnl GNU format message catalog is always supported,
254
 
            dnl since both are added to the libc all together.
255
 
            dnl Hence, we'd like to go with DATADIRNAME=share and
256
 
            dnl and CATOBJEXT=.gmo in this case.
257
 
            AC_CHECK_FUNC(bind_textdomain_codeset,
258
 
              [CATOBJEXT=.gmo 
259
 
               DATADIRNAME=share],
260
 
              [CATOBJEXT=.mo
261
 
               DATADIRNAME=lib])
262
 
            ;;
263
 
            *)
264
 
            CATOBJEXT=.mo
265
 
            DATADIRNAME=lib
266
 
            ;;
267
 
            esac])
268
 
          LIBS="$glib_save_LIBS"
269
 
          INSTOBJEXT=.mo
270
 
        else
271
 
          gt_cv_have_gettext=no
272
 
        fi
273
 
      fi
274
 
    ])
275
 
 
276
 
    if test "$gt_cv_have_gettext" = "yes" ; then
277
 
      AC_DEFINE(ENABLE_NLS, 1,
278
 
        [always defined to indicate that i18n is enabled])
279
 
    fi
280
 
 
281
 
    dnl Test whether we really found GNU xgettext.
282
 
    if test "$XGETTEXT" != ":"; then
283
 
      dnl If it is not GNU xgettext we define it as : so that the
284
 
      dnl Makefiles still can work.
285
 
      if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
286
 
        : ;
287
 
      else
288
 
        AC_MSG_RESULT(
289
 
          [found xgettext program is not GNU xgettext; ignore it])
290
 
        XGETTEXT=":"
291
 
      fi
292
 
    fi
293
 
 
294
 
    # We need to process the po/ directory.
295
 
    POSUB=po
296
 
 
297
 
    AC_OUTPUT_COMMANDS(
298
 
      [case "$CONFIG_FILES" in *po/Makefile.in*)
299
 
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
300
 
      esac])
301
 
 
302
 
    dnl These rules are solely for the distribution goal.  While doing this
303
 
    dnl we only have to keep exactly one list of the available catalogs
304
 
    dnl in configure.ac.
305
 
    for lang in $ALL_LINGUAS; do
306
 
      GMOFILES="$GMOFILES $lang.gmo"
307
 
      POFILES="$POFILES $lang.po"
308
 
    done
309
 
 
310
 
    dnl Make all variables we use known to autoconf.
311
 
    AC_SUBST(CATALOGS)
312
 
    AC_SUBST(CATOBJEXT)
313
 
    AC_SUBST(DATADIRNAME)
314
 
    AC_SUBST(GMOFILES)
315
 
    AC_SUBST(INSTOBJEXT)
316
 
    AC_SUBST(INTLLIBS)
317
 
    AC_SUBST(PO_IN_DATADIR_TRUE)
318
 
    AC_SUBST(PO_IN_DATADIR_FALSE)
319
 
    AC_SUBST(POFILES)
320
 
    AC_SUBST(POSUB)
321
 
  ])
322
 
 
323
 
# AM_GLIB_GNU_GETTEXT
324
 
# -------------------
325
 
# Do checks necessary for use of gettext. If a suitable implementation 
326
 
# of gettext is found in either in libintl or in the C library,
327
 
# it will set INTLLIBS to the libraries needed for use of gettext
328
 
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
329
 
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
330
 
# on various variables needed by the Makefile.in.in installed by 
331
 
# glib-gettextize.
332
 
dnl
333
 
glib_DEFUN([GLIB_GNU_GETTEXT],
334
 
  [AC_REQUIRE([AC_PROG_CC])dnl
335
 
   AC_REQUIRE([AC_HEADER_STDC])dnl
336
 
   
337
 
   GLIB_LC_MESSAGES
338
 
   GLIB_WITH_NLS
339
 
 
340
 
   if test "$gt_cv_have_gettext" = "yes"; then
341
 
     if test "x$ALL_LINGUAS" = "x"; then
342
 
       LINGUAS=
343
 
     else
344
 
       AC_MSG_CHECKING(for catalogs to be installed)
345
 
       NEW_LINGUAS=
346
 
       for presentlang in $ALL_LINGUAS; do
347
 
         useit=no
348
 
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
349
 
           desiredlanguages="$LINGUAS"
350
 
         else
351
 
           desiredlanguages="$ALL_LINGUAS"
352
 
         fi
353
 
         for desiredlang in $desiredlanguages; do
354
 
           # Use the presentlang catalog if desiredlang is
355
 
           #   a. equal to presentlang, or
356
 
           #   b. a variant of presentlang (because in this case,
357
 
           #      presentlang can be used as a fallback for messages
358
 
           #      which are not translated in the desiredlang catalog).
359
 
           case "$desiredlang" in
360
 
             "$presentlang"*) useit=yes;;
361
 
           esac
362
 
         done
363
 
         if test $useit = yes; then
364
 
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
365
 
         fi
366
 
       done
367
 
       LINGUAS=$NEW_LINGUAS
368
 
       AC_MSG_RESULT($LINGUAS)
369
 
     fi
370
 
 
371
 
     dnl Construct list of names of catalog files to be constructed.
372
 
     if test -n "$LINGUAS"; then
373
 
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
374
 
     fi
375
 
   fi
376
 
 
377
 
   dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
378
 
   dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
379
 
   dnl Try to locate is.
380
 
   MKINSTALLDIRS=
381
 
   if test -n "$ac_aux_dir"; then
382
 
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
383
 
   fi
384
 
   if test -z "$MKINSTALLDIRS"; then
385
 
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
386
 
   fi
387
 
   AC_SUBST(MKINSTALLDIRS)
388
 
 
389
 
   dnl Generate list of files to be processed by xgettext which will
390
 
   dnl be included in po/Makefile.
391
 
   test -d po || mkdir po
392
 
   if test "x$srcdir" != "x."; then
393
 
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
394
 
       posrcprefix="$srcdir/"
395
 
     else
396
 
       posrcprefix="../$srcdir/"
397
 
     fi
398
 
   else
399
 
     posrcprefix="../"
400
 
   fi
401
 
   rm -f po/POTFILES
402
 
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
403
 
        < $srcdir/po/POTFILES.in > po/POTFILES
404
 
  ])
405
 
 
406
 
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
407
 
# -------------------------------
408
 
# Define VARIABLE to the location where catalog files will
409
 
# be installed by po/Makefile.
410
 
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
411
 
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
412
 
glib_save_prefix="$prefix"
413
 
glib_save_exec_prefix="$exec_prefix"
414
 
glib_save_datarootdir="$datarootdir"
415
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
416
 
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
417
 
datarootdir=`eval echo "${datarootdir}"`
418
 
if test "x$CATOBJEXT" = "x.mo" ; then
419
 
  localedir=`eval echo "${libdir}/locale"`
420
 
else
421
 
  localedir=`eval echo "${datadir}/locale"`
422
 
fi
423
 
prefix="$glib_save_prefix"
424
 
exec_prefix="$glib_save_exec_prefix"
425
 
datarootdir="$glib_save_datarootdir"
426
 
AC_DEFINE_UNQUOTED($1, "$localedir",
427
 
  [Define the location where the catalogs will be installed])
428
 
])
429
 
 
430
 
dnl
431
 
dnl Now the definitions that aclocal will find
432
 
dnl
433
 
ifdef(glib_configure_ac,[],[
434
 
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
435
 
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
436
 
])dnl
437
 
 
438
 
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
439
 
440
 
# Create a temporary file with TEST-FILE as its contents and pass the
441
 
# file name to PROGRAM.  Perform ACTION-IF-PASS if PROGRAM exits with
442
 
# 0 and perform ACTION-IF-FAIL for any other exit status.
443
 
AC_DEFUN([GLIB_RUN_PROG],
444
 
[cat >conftest.foo <<_ACEOF
445
 
$2
446
 
_ACEOF
447
 
if AC_RUN_LOG([$1 conftest.foo]); then
448
 
  m4_ifval([$3], [$3], [:])
449
 
m4_ifvaln([$4], [else $4])dnl
450
 
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
451
 
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
452
 
fi])
453
 
 
454
 
 
455
 
# gnome-common.m4
456
 
457
 
 
458
 
dnl GNOME_COMMON_INIT
459
 
 
460
 
AC_DEFUN([GNOME_COMMON_INIT],
461
 
[
462
 
  dnl this macro should come after AC_CONFIG_MACRO_DIR
463
 
  AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
464
 
 
465
 
  dnl ensure that when the Automake generated makefile calls aclocal,
466
 
  dnl it honours the $ACLOCAL_FLAGS environment variable
467
 
  ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
468
 
  if test -n "$ac_macro_dir"; then
469
 
    ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
470
 
  fi
471
 
 
472
 
  AC_SUBST([ACLOCAL_AMFLAGS])
473
 
])
474
 
 
475
 
AC_DEFUN([GNOME_DEBUG_CHECK],
476
 
[
477
 
        AC_ARG_ENABLE([debug],
478
 
                      AC_HELP_STRING([--enable-debug],
479
 
                                     [turn on debugging]),,
480
 
                      [enable_debug=no])
481
 
 
482
 
        if test x$enable_debug = xyes ; then
483
 
            AC_DEFINE(GNOME_ENABLE_DEBUG, 1,
484
 
                [Enable additional debugging at the expense of performance and size])
485
 
        fi
486
 
])
487
 
 
488
 
dnl GNOME_MAINTAINER_MODE_DEFINES ()
489
 
dnl define DISABLE_DEPRECATED
490
 
dnl
491
 
AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
492
 
[
493
 
        AC_REQUIRE([AM_MAINTAINER_MODE])
494
 
 
495
 
        DISABLE_DEPRECATED=""
496
 
        if test $USE_MAINTAINER_MODE = yes; then
497
 
                DOMAINS="G ATK PANGO GDK GDK_PIXBUF GTK GCONF BONOBO BONOBO_UI GNOME LIBGLADE VTE GNOME_VFS WNCK LIBSOUP"
498
 
                for DOMAIN in $DOMAINS; do
499
 
                       DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES"
500
 
                done
501
 
        fi
502
 
 
503
 
        AC_SUBST(DISABLE_DEPRECATED)
504
 
])
505
 
 
506
 
dnl GNOME_COMPILE_WARNINGS
507
 
dnl Turn on many useful compiler warnings
508
 
dnl For now, only works on GCC
509
 
AC_DEFUN([GNOME_COMPILE_WARNINGS],[
510
 
    dnl ******************************
511
 
    dnl More compiler warnings
512
 
    dnl ******************************
513
 
 
514
 
    AC_ARG_ENABLE(compile-warnings, 
515
 
                  AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
516
 
                                 [Turn on compiler warnings]),,
517
 
                  [enable_compile_warnings="m4_default([$1],[yes])"])
518
 
 
519
 
    warnCFLAGS=
520
 
    if test "x$GCC" != xyes; then
521
 
        enable_compile_warnings=no
522
 
    fi
523
 
 
524
 
    warning_flags=
525
 
    realsave_CFLAGS="$CFLAGS"
526
 
 
527
 
    case "$enable_compile_warnings" in
528
 
    no)
529
 
        warning_flags=
530
 
        ;;
531
 
    minimum)
532
 
        warning_flags="-Wall"
533
 
        ;;
534
 
    yes)
535
 
        warning_flags="-Wall -Wmissing-prototypes"
536
 
        ;;
537
 
    maximum|error)
538
 
        warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
539
 
        CFLAGS="$warning_flags $CFLAGS"
540
 
        for option in -Wno-sign-compare; do
541
 
                SAVE_CFLAGS="$CFLAGS"
542
 
                CFLAGS="$CFLAGS $option"
543
 
                AC_MSG_CHECKING([whether gcc understands $option])
544
 
                AC_TRY_COMPILE([], [],
545
 
                        has_option=yes,
546
 
                        has_option=no,)
547
 
                CFLAGS="$SAVE_CFLAGS"
548
 
                AC_MSG_RESULT($has_option)
549
 
                if test $has_option = yes; then
550
 
                  warning_flags="$warning_flags $option"
551
 
                fi
552
 
                unset has_option
553
 
                unset SAVE_CFLAGS
554
 
        done
555
 
        unset option
556
 
        if test "$enable_compile_warnings" = "error" ; then
557
 
            warning_flags="$warning_flags -Werror"
558
 
        fi
559
 
        ;;
560
 
    *)
561
 
        AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
562
 
        ;;
 
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 ;;
563
266
    esac
564
 
    CFLAGS="$realsave_CFLAGS"
565
 
    AC_MSG_CHECKING(what warning flags to pass to the C compiler)
566
 
    AC_MSG_RESULT($warning_flags)
567
 
 
568
 
    AC_ARG_ENABLE(iso-c,
569
 
                  AC_HELP_STRING([--enable-iso-c],
570
 
                                 [Try to warn if code is not ISO C ]),,
571
 
                  [enable_iso_c=no])
572
 
 
573
 
    AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
574
 
    complCFLAGS=
575
 
    if test "x$enable_iso_c" != "xno"; then
576
 
        if test "x$GCC" = "xyes"; then
577
 
        case " $CFLAGS " in
578
 
            *[\ \       ]-ansi[\ \      ]*) ;;
579
 
            *) complCFLAGS="$complCFLAGS -ansi" ;;
580
 
        esac
581
 
        case " $CFLAGS " in
582
 
            *[\ \       ]-pedantic[\ \  ]*) ;;
583
 
            *) complCFLAGS="$complCFLAGS -pedantic" ;;
584
 
        esac
585
 
        fi
586
 
    fi
587
 
    AC_MSG_RESULT($complCFLAGS)
588
 
 
589
 
    WARN_CFLAGS="$warning_flags $complCFLAGS"
590
 
    AC_SUBST(WARN_CFLAGS)
591
 
])
592
 
 
593
 
dnl For C++, do basically the same thing.
594
 
 
595
 
AC_DEFUN([GNOME_CXX_WARNINGS],[
596
 
  AC_ARG_ENABLE(cxx-warnings,
597
 
                AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
598
 
                               [Turn on compiler warnings.]),,
599
 
                [enable_cxx_warnings="m4_default([$1],[minimum])"])
600
 
 
601
 
  AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
602
 
  warnCXXFLAGS=
603
 
  if test "x$GXX" != xyes; then
604
 
    enable_cxx_warnings=no
605
 
  fi
606
 
  if test "x$enable_cxx_warnings" != "xno"; then
607
 
    if test "x$GXX" = "xyes"; then
608
 
      case " $CXXFLAGS " in
609
 
      *[\ \     ]-Wall[\ \      ]*) ;;
610
 
      *) warnCXXFLAGS="-Wall -Wno-unused" ;;
611
 
      esac
612
 
 
613
 
      ## -W is not all that useful.  And it cannot be controlled
614
 
      ## with individual -Wno-xxx flags, unlike -Wall
615
 
      if test "x$enable_cxx_warnings" = "xyes"; then
616
 
        warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
 
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
617
287
      fi
618
288
    fi
619
 
  fi
620
 
  AC_MSG_RESULT($warnCXXFLAGS)
621
 
 
622
 
   AC_ARG_ENABLE(iso-cxx,
623
 
                 AC_HELP_STRING([--enable-iso-cxx],
624
 
                                [Try to warn if code is not ISO C++ ]),,
625
 
                 [enable_iso_cxx=no])
626
 
 
627
 
   AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
628
 
   complCXXFLAGS=
629
 
   if test "x$enable_iso_cxx" != "xno"; then
630
 
     if test "x$GXX" = "xyes"; then
631
 
      case " $CXXFLAGS " in
632
 
      *[\ \     ]-ansi[\ \      ]*) ;;
633
 
      *) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
634
 
      esac
635
 
 
636
 
      case " $CXXFLAGS " in
637
 
      *[\ \     ]-pedantic[\ \  ]*) ;;
638
 
      *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
639
 
      esac
640
 
     fi
641
 
   fi
642
 
  AC_MSG_RESULT($complCXXFLAGS)
643
 
 
644
 
  WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
645
 
  AC_SUBST(WARN_CXXFLAGS)
646
 
])
647
 
 
648
 
dnl Do not call GNOME_DOC_DEFINES directly.  It is split out from
649
 
dnl GNOME_DOC_INIT to allow gnome-doc-utils to bootstrap off itself.
650
 
AC_DEFUN([GNOME_DOC_DEFINES],
651
 
[
652
 
AC_ARG_WITH([help-dir],
653
 
  AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),,
654
 
  [with_help_dir='${datadir}/gnome/help'])
655
 
HELP_DIR="$with_help_dir"
656
 
AC_SUBST(HELP_DIR)
657
 
 
658
 
AC_ARG_WITH([omf-dir],
659
 
  AC_HELP_STRING([--with-omf-dir=DIR], [path to OMF files]),,
660
 
  [with_omf_dir='${datadir}/omf'])
661
 
OMF_DIR="$with_omf_dir"
662
 
AC_SUBST(OMF_DIR)
663
 
 
664
 
AC_ARG_WITH([help-formats],
665
 
  AC_HELP_STRING([--with-help-formats=FORMATS], [list of formats]),,
666
 
  [with_help_formats=''])
667
 
DOC_USER_FORMATS="$with_help_formats"
668
 
AC_SUBST(DOC_USER_FORMATS)
669
 
 
670
 
AC_ARG_ENABLE([scrollkeeper],
671
 
        [AC_HELP_STRING([--disable-scrollkeeper],
672
 
                        [do not make updates to the scrollkeeper database])],,
673
 
        enable_scrollkeeper=yes)
674
 
AM_CONDITIONAL([ENABLE_SK],[test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"])
675
 
 
676
 
dnl disable scrollkeeper automatically for distcheck
677
 
DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS"
678
 
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
679
 
 
680
 
AM_CONDITIONAL([HAVE_GNOME_DOC_UTILS],[test "$gdu_cv_have_gdu" = "yes"])
681
 
])
682
 
 
683
 
# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
684
 
#
685
 
AC_DEFUN([GNOME_DOC_INIT],
686
 
[AC_REQUIRE([AC_PROG_LN_S])dnl
687
 
 
688
 
ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1])
689
 
 
690
 
AC_MSG_CHECKING([gnome-doc-utils >= $gdu_cv_version_required])
691
 
PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required],
692
 
        [gdu_cv_have_gdu=yes],[gdu_cv_have_gdu=no])
693
 
 
694
 
if test "$gdu_cv_have_gdu" = "yes"; then
695
 
        AC_MSG_RESULT([yes])
696
 
        ifelse([$2],,[:],[$2])
697
 
else
698
 
        AC_MSG_RESULT([no])
699
 
        ifelse([$3],,[AC_MSG_ERROR([gnome-doc-utils >= $gdu_cv_version_required not found])],[$3])
700
 
fi
701
 
 
702
 
GNOME_DOC_DEFINES
703
 
])
704
 
 
705
 
dnl GLIB_GSETTINGS
706
 
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
707
 
dnl the schema should be compiled
708
 
dnl
709
 
 
710
 
AC_DEFUN([GLIB_GSETTINGS],
711
 
[
712
 
  m4_pattern_allow([AM_V_GEN])
713
 
  AC_ARG_ENABLE(schemas-compile,
714
 
                AC_HELP_STRING([--disable-schemas-compile],
715
 
                               [Disable regeneration of gschemas.compiled on install]),
716
 
                [case ${enableval} in
717
 
                  yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE=""  ;;
718
 
                  no)  GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
719
 
                  *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;;
720
 
                 esac])
721
 
  AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE])
722
 
  PKG_PROG_PKG_CONFIG([0.16])
723
 
  AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas])
724
 
  if test x$cross_compiling != xyes; then
725
 
    GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
726
 
  else
727
 
    AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas)
728
 
  fi
729
 
  AC_SUBST(GLIB_COMPILE_SCHEMAS)
730
 
  if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
731
 
    ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2])
732
 
  else
733
 
    ifelse([$1],,[:],[$1])
734
 
  fi
735
 
 
736
 
  GSETTINGS_RULES='
737
 
.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
738
 
 
739
 
mostlyclean-am: clean-gsettings-schemas
740
 
 
741
 
gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
742
 
 
743
 
%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
744
 
        $(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; $(GLIB_COMPILE_SCHEMAS) --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$${d}$< && touch [$]@
745
 
 
746
 
all-am: $(gsettings_SCHEMAS:.xml=.valid)
747
 
uninstall-am: uninstall-gsettings-schemas
748
 
install-data-am: install-gsettings-schemas
749
 
 
750
 
.SECONDARY: $(gsettings_SCHEMAS)
751
 
 
752
 
gsettings__base_list = \
753
 
  sed "$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g" | \
754
 
  sed "$$!N;$$!N;$$!N;$$!N;s/\n/ /g"
755
 
 
756
 
install-gsettings-schemas: $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
757
 
        @$(NORMAL_INSTALL)
758
 
        test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"
759
 
        @list='\''$(gsettings__enum_file) $(gsettings_SCHEMAS)'\''; test -n "$(gsettingsschemadir)" || list=; \
760
 
        for p in $$list; do \
761
 
          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
762
 
          echo "$$d$$p"; \
763
 
        done | $(gsettings__base_list) | \
764
 
        while read files; do \
765
 
          echo " $(INSTALL_DATA) $$files '\''$(DESTDIR)$(gsettingsschemadir)'\''"; \
766
 
          $(INSTALL_DATA) $$files "$(DESTDIR)$(gsettingsschemadir)" || exit $$?; \
767
 
        done
768
 
        test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
769
 
 
770
 
uninstall-gsettings-schemas:
771
 
        @$(NORMAL_UNINSTALL)
772
 
        @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
773
 
        files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
774
 
        test -n "$$files" || exit 0; \
775
 
        echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
776
 
        cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
777
 
        test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
778
 
 
779
 
clean-gsettings-schemas:
780
 
        rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
781
 
 
782
 
ifdef gsettings_ENUM_NAMESPACE
783
 
$(gsettings__enum_file): $(gsettings_ENUM_FILES)
784
 
        $(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>" $(gsettings_ENUM_FILES) > [$]@.tmp && mv [$]@.tmp [$]@
785
 
endif
 
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='
786
805
'
787
 
  _GSETTINGS_SUBST(GSETTINGS_RULES)
788
 
])
789
 
 
790
 
dnl _GSETTINGS_SUBST(VARIABLE)
791
 
dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
792
 
AC_DEFUN([_GSETTINGS_SUBST],
793
 
[
794
 
AC_SUBST([$1])
795
 
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
796
 
]
797
 
)
798
 
 
799
 
dnl -*- mode: autoconf -*-
 
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.
800
854
 
801
855
# serial 1
802
856
 
803
 
dnl Usage:
804
 
dnl   GTK_DOC_CHECK([minimum-gtk-doc-version])
805
 
AC_DEFUN([GTK_DOC_CHECK],
806
 
[
807
 
  AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
808
 
  AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
809
 
 
810
 
  dnl check for tools we added during development
811
 
  AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check])
812
 
  AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true])
813
 
  AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf])
814
 
 
815
 
  dnl for overriding the documentation installation directory
816
 
  AC_ARG_WITH([html-dir],
817
 
    AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
818
 
    [with_html_dir='${datadir}/gtk-doc/html'])
819
 
  HTML_DIR="$with_html_dir"
820
 
  AC_SUBST([HTML_DIR])
821
 
 
822
 
  dnl enable/disable documentation building
823
 
  AC_ARG_ENABLE([gtk-doc],
824
 
    AS_HELP_STRING([--enable-gtk-doc],
825
 
                   [use gtk-doc to build documentation [[default=no]]]),,
826
 
    [enable_gtk_doc=no])
827
 
 
828
 
  if test x$enable_gtk_doc = xyes; then
829
 
    ifelse([$1],[],
830
 
      [PKG_CHECK_EXISTS([gtk-doc],,
831
 
                        AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
832
 
      [PKG_CHECK_EXISTS([gtk-doc >= $1],,
833
 
                        AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))])
834
 
  fi
835
 
 
836
 
  AC_MSG_CHECKING([whether to build gtk-doc documentation])
837
 
  AC_MSG_RESULT($enable_gtk_doc)
838
 
 
839
 
  dnl enable/disable output formats
840
 
  AC_ARG_ENABLE([gtk-doc-html],
841
 
    AS_HELP_STRING([--enable-gtk-doc-html],
842
 
                   [build documentation in html format [[default=yes]]]),,
843
 
    [enable_gtk_doc_html=yes])
844
 
    AC_ARG_ENABLE([gtk-doc-pdf],
845
 
      AS_HELP_STRING([--enable-gtk-doc-pdf],
846
 
                     [build documentation in pdf format [[default=no]]]),,
847
 
      [enable_gtk_doc_pdf=no])
848
 
 
849
 
  if test -z "$GTKDOC_MKPDF"; then
850
 
    enable_gtk_doc_pdf=no
851
 
  fi
852
 
 
853
 
 
854
 
  AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
855
 
  AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes])
856
 
  AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes])
857
 
  AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
858
 
  AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"])
859
 
])
860
 
 
861
 
 
862
 
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
863
 
# serial 40 IT_PROG_INTLTOOL
864
 
AC_DEFUN([IT_PROG_INTLTOOL], [
865
 
AC_PREREQ([2.50])dnl
866
 
AC_REQUIRE([AM_NLS])dnl
867
 
 
868
 
case "$am__api_version" in
869
 
    1.[01234])
870
 
        AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
871
 
    ;;
872
 
    *)
873
 
    ;;
 
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]);;
874
869
esac
875
 
 
876
 
if test -n "$1"; then
877
 
    AC_MSG_CHECKING([for intltool >= $1])
878
 
 
879
 
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
880
 
    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
881
 
    [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
882
 
    ]
883
 
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
884
 
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
885
 
        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
886
 
fi
887
 
 
888
 
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
889
 
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
890
 
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
891
 
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
892
 
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
893
 
fi
894
 
 
895
 
  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 $< [$]@' 
896
 
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 $< [$]@' 
897
 
     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 $< [$]@' 
898
 
     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 $< [$]@' 
899
 
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
900
 
     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 $< [$]@' 
901
 
   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 $< [$]@' 
902
 
    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 $< [$]@' 
903
 
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 $< [$]@' 
904
 
       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 $< [$]@' 
905
 
      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 $< [$]@' 
906
 
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' 
907
 
      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 $< [$]@' 
908
 
      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 $< [$]@' 
909
 
    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 $< [$]@' 
910
 
  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 $< [$]@' 
911
 
    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 $< [$]@' 
912
 
    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 $< [$]@'
913
 
   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 $< [$]@'
914
 
 
915
 
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
916
 
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
917
 
_IT_SUBST(INTLTOOL_KEYS_RULE)
918
 
_IT_SUBST(INTLTOOL_PROP_RULE)
919
 
_IT_SUBST(INTLTOOL_OAF_RULE)
920
 
_IT_SUBST(INTLTOOL_PONG_RULE)
921
 
_IT_SUBST(INTLTOOL_SERVER_RULE)
922
 
_IT_SUBST(INTLTOOL_SHEET_RULE)
923
 
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
924
 
_IT_SUBST(INTLTOOL_UI_RULE)
925
 
_IT_SUBST(INTLTOOL_XAM_RULE)
926
 
_IT_SUBST(INTLTOOL_KBD_RULE)
927
 
_IT_SUBST(INTLTOOL_XML_RULE)
928
 
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
929
 
_IT_SUBST(INTLTOOL_CAVES_RULE)
930
 
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
931
 
_IT_SUBST(INTLTOOL_THEME_RULE)
932
 
_IT_SUBST(INTLTOOL_SERVICE_RULE)
933
 
_IT_SUBST(INTLTOOL_POLICY_RULE)
934
 
 
935
 
# Check the gettext tools to make sure they are GNU
936
 
AC_PATH_PROG(XGETTEXT, xgettext)
937
 
AC_PATH_PROG(MSGMERGE, msgmerge)
938
 
AC_PATH_PROG(MSGFMT, msgfmt)
939
 
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
940
 
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
941
 
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
942
 
fi
943
 
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
944
 
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
945
 
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
946
 
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
947
 
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
948
 
fi
949
 
 
950
 
AC_PATH_PROG(INTLTOOL_PERL, perl)
951
 
if test -z "$INTLTOOL_PERL"; then
952
 
   AC_MSG_ERROR([perl not found])
953
 
fi
954
 
AC_MSG_CHECKING([for perl >= 5.8.1])
955
 
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
956
 
if test $? -ne 0; then
957
 
   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
958
 
else
959
 
   IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
960
 
   AC_MSG_RESULT([$IT_PERL_VERSION])
961
 
fi
962
 
if test "x$2" != "xno-xml"; then
963
 
   AC_MSG_CHECKING([for XML::Parser])
964
 
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
965
 
       AC_MSG_RESULT([ok])
966
 
   else
967
 
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
968
 
   fi
969
 
fi
970
 
 
971
 
# Substitute ALL_LINGUAS so we can use it in po/Makefile
972
 
AC_SUBST(ALL_LINGUAS)
973
 
 
974
 
# Set DATADIRNAME correctly if it is not set yet
975
 
# (copied from glib-gettext.m4)
976
 
if test -z "$DATADIRNAME"; then
977
 
  AC_LINK_IFELSE(
978
 
    [AC_LANG_PROGRAM([[]],
979
 
                     [[extern int _nl_msg_cat_cntr;
980
 
                       return _nl_msg_cat_cntr]])],
981
 
    [DATADIRNAME=share],
982
 
    [case $host in
983
 
    *-*-solaris*)
984
 
    dnl On Solaris, if bind_textdomain_codeset is in libc,
985
 
    dnl GNU format message catalog is always supported,
986
 
    dnl since both are added to the libc all together.
987
 
    dnl Hence, we'd like to go with DATADIRNAME=share
988
 
    dnl in this case.
989
 
    AC_CHECK_FUNC(bind_textdomain_codeset,
990
 
      [DATADIRNAME=share], [DATADIRNAME=lib])
991
 
    ;;
992
 
    *)
993
 
    [DATADIRNAME=lib]
994
 
    ;;
995
 
    esac])
996
 
fi
997
 
AC_SUBST(DATADIRNAME)
998
 
 
999
 
IT_PO_SUBDIR([po])
1000
 
 
 
870
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
 
871
AM_BACKSLASH='\'
 
872
AC_SUBST([AM_BACKSLASH])dnl
 
873
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1001
874
])
1002
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.
1003
881
 
1004
 
# IT_PO_SUBDIR(DIRNAME)
 
882
# AM_PROG_INSTALL_STRIP
1005
883
# ---------------------
1006
 
# All po subdirs have to be declared with this macro; the subdir "po" is
1007
 
# declared by IT_PROG_INTLTOOL.
1008
 
#
1009
 
AC_DEFUN([IT_PO_SUBDIR],
1010
 
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
1011
 
dnl
1012
 
dnl The following CONFIG_COMMANDS should be executed at the very end
1013
 
dnl of config.status.
1014
 
AC_CONFIG_COMMANDS_PRE([
1015
 
  AC_CONFIG_COMMANDS([$1/stamp-it], [
1016
 
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
1017
 
       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
1018
 
    fi
1019
 
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
1020
 
    >"$1/stamp-it.tmp"
1021
 
    [sed '/^#/d
1022
 
         s/^[[].*] *//
1023
 
         /^[    ]*$/d
1024
 
        '"s|^|  $ac_top_srcdir/|" \
1025
 
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
1026
 
    ]
1027
 
    [sed '/^POTFILES =/,/[^\\]$/ {
1028
 
                /^POTFILES =/!d
1029
 
                r $1/POTFILES
1030
 
          }
1031
 
         ' "$1/Makefile.in" >"$1/Makefile"]
1032
 
    rm -f "$1/Makefile.tmp"
1033
 
    mv "$1/stamp-it.tmp" "$1/stamp-it"
1034
 
  ])
1035
 
])dnl
1036
 
])
1037
 
 
1038
 
# _IT_SUBST(VARIABLE)
1039
 
# -------------------
1040
 
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
1041
 
#
1042
 
AC_DEFUN([_IT_SUBST],
1043
 
[
1044
 
AC_SUBST([$1])
1045
 
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
1046
 
]
1047
 
)
1048
 
 
1049
 
# deprecated macros
1050
 
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
1051
 
# A hint is needed for aclocal from Automake <= 1.9.4:
1052
 
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
1053
 
 
 
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
1054
1018
 
1055
1019
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1056
1020
#
1057
1021
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1058
 
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
1059
 
#                 Inc.
 
1022
#                 2006, 2007, 2008 Free Software Foundation, Inc.
1060
1023
#   Written by Gordon Matzigkeit, 1996
1061
1024
#
1062
1025
# This file is free software; the Free Software Foundation gives
1065
1028
 
1066
1029
m4_define([_LT_COPYING], [dnl
1067
1030
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1068
 
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
1069
 
#                 Inc.
 
1031
#                 2006, 2007, 2008 Free Software Foundation, Inc.
1070
1032
#   Written by Gordon Matzigkeit, 1996
1071
1033
#
1072
1034
#   This file is part of GNU Libtool.
1093
1055
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1094
1056
])
1095
1057
 
1096
 
# serial 57 LT_INIT
 
1058
# serial 56 LT_INIT
1097
1059
 
1098
1060
 
1099
1061
# LT_PREREQ(VERSION)
1122
1084
# ------------------
1123
1085
AC_DEFUN([LT_INIT],
1124
1086
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
1125
 
AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
1126
1087
AC_BEFORE([$0], [LT_LANG])dnl
1127
1088
AC_BEFORE([$0], [LT_OUTPUT])dnl
1128
1089
AC_BEFORE([$0], [LTDL_INIT])dnl
1139
1100
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
1140
1101
m4_require([_LT_PROG_LTMAIN])dnl
1141
1102
 
1142
 
_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
1143
 
 
1144
1103
dnl Parse OPTIONS
1145
1104
_LT_SET_OPTIONS([$0], [$1])
1146
1105
 
1177
1136
    *) break;;
1178
1137
  esac
1179
1138
done
1180
 
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
1139
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1181
1140
])
1182
1141
 
1183
1142
 
1197
1156
m4_defun([_LT_SETUP],
1198
1157
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
1199
1158
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1200
 
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
1201
 
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
1202
 
 
1203
1159
_LT_DECL([], [host_alias], [0], [The host system])dnl
1204
1160
_LT_DECL([], [host], [0])dnl
1205
1161
_LT_DECL([], [host_os], [0])dnl
1241
1197
_LT_CHECK_OBJDIR
1242
1198
 
1243
1199
m4_require([_LT_TAG_COMPILER])dnl
 
1200
_LT_PROG_ECHO_BACKSLASH
1244
1201
 
1245
1202
case $host_os in
1246
1203
aix3*)
1254
1211
  ;;
1255
1212
esac
1256
1213
 
 
1214
# Sed substitution that helps us do robust quoting.  It backslashifies
 
1215
# metacharacters that are still active within double-quoted strings.
 
1216
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
 
1217
 
 
1218
# Same as above, but do not quote variable references.
 
1219
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
 
1220
 
 
1221
# Sed substitution to delay expansion of an escaped shell variable in a
 
1222
# double_quote_subst'ed string.
 
1223
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
1224
 
 
1225
# Sed substitution to delay expansion of an escaped single quote.
 
1226
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
1227
 
 
1228
# Sed substitution to avoid accidental globbing in evaled expressions
 
1229
no_glob_subst='s/\*/\\\*/g'
 
1230
 
1257
1231
# Global variables:
1258
1232
ofile=libtool
1259
1233
can_build_shared=yes
1294
1268
])# _LT_SETUP
1295
1269
 
1296
1270
 
1297
 
# _LT_PREPARE_SED_QUOTE_VARS
1298
 
# --------------------------
1299
 
# Define a few sed substitution that help us do robust quoting.
1300
 
m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
1301
 
[# Backslashify metacharacters that are still active within
1302
 
# double-quoted strings.
1303
 
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
1304
 
 
1305
 
# Same as above, but do not quote variable references.
1306
 
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
1307
 
 
1308
 
# Sed substitution to delay expansion of an escaped shell variable in a
1309
 
# double_quote_subst'ed string.
1310
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1311
 
 
1312
 
# Sed substitution to delay expansion of an escaped single quote.
1313
 
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1314
 
 
1315
 
# Sed substitution to avoid accidental globbing in evaled expressions
1316
 
no_glob_subst='s/\*/\\\*/g'
1317
 
])
1318
 
 
1319
1271
# _LT_PROG_LTMAIN
1320
1272
# ---------------
1321
1273
# Note that this code is called both from `configure', and `config.status'
1468
1420
# declaration there will have the same value as in `configure'.  VARNAME
1469
1421
# must have a single quote delimited value for this to work.
1470
1422
m4_define([_LT_CONFIG_STATUS_DECLARE],
1471
 
[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
 
1423
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
1472
1424
 
1473
1425
 
1474
1426
# _LT_CONFIG_STATUS_DECLARATIONS
1478
1430
# embedded single quotes properly.  In configure, this macro expands
1479
1431
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1480
1432
#
1481
 
#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
 
1433
#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
1482
1434
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1483
1435
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1484
1436
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1577
1529
LTCFLAGS='$LTCFLAGS'
1578
1530
compiler='$compiler_DEFAULT'
1579
1531
 
1580
 
# A function that is used when there is no print builtin or printf.
1581
 
func_fallback_echo ()
1582
 
{
1583
 
  eval 'cat <<_LTECHO_EOF
1584
 
\$[]1
1585
 
_LTECHO_EOF'
1586
 
}
1587
 
 
1588
1532
# Quote evaled strings.
1589
1533
for var in lt_decl_all_varnames([[ \
1590
1534
]], lt_decl_quote_varnames); do
1591
 
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
1535
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1592
1536
    *[[\\\\\\\`\\"\\\$]]*)
1593
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
1537
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1594
1538
      ;;
1595
1539
    *)
1596
1540
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1601
1545
# Double-quote double-evaled strings.
1602
1546
for var in lt_decl_all_varnames([[ \
1603
1547
]], lt_decl_dquote_varnames); do
1604
 
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
1548
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1605
1549
    *[[\\\\\\\`\\"\\\$]]*)
1606
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
1550
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1607
1551
      ;;
1608
1552
    *)
1609
1553
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1611
1555
    esac
1612
1556
done
1613
1557
 
 
1558
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
1559
case \$lt_ECHO in
 
1560
*'\\\[$]0 --fallback-echo"')dnl "
 
1561
  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
 
1562
  ;;
 
1563
esac
 
1564
 
1614
1565
_LT_OUTPUT_LIBTOOL_INIT
1615
1566
])
1616
1567
 
1617
 
# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
1618
 
# ------------------------------------
1619
 
# Generate a child script FILE with all initialization necessary to
1620
 
# reuse the environment learned by the parent script, and make the
1621
 
# file executable.  If COMMENT is supplied, it is inserted after the
1622
 
# `#!' sequence but before initialization text begins.  After this
1623
 
# macro, additional text can be appended to FILE to form the body of
1624
 
# the child script.  The macro ends with non-zero status if the
1625
 
# file could not be fully written (such as if the disk is full).
1626
 
m4_ifdef([AS_INIT_GENERATED],
1627
 
[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
1628
 
[m4_defun([_LT_GENERATED_FILE_INIT],
1629
 
[m4_require([AS_PREPARE])]dnl
1630
 
[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
1631
 
[lt_write_fail=0
1632
 
cat >$1 <<_ASEOF || lt_write_fail=1
1633
 
#! $SHELL
1634
 
# Generated by $as_me.
1635
 
$2
1636
 
SHELL=\${CONFIG_SHELL-$SHELL}
1637
 
export SHELL
1638
 
_ASEOF
1639
 
cat >>$1 <<\_ASEOF || lt_write_fail=1
1640
 
AS_SHELL_SANITIZE
1641
 
_AS_PREPARE
1642
 
exec AS_MESSAGE_FD>&1
1643
 
_ASEOF
1644
 
test $lt_write_fail = 0 && chmod +x $1[]dnl
1645
 
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
1646
1568
 
1647
1569
# LT_OUTPUT
1648
1570
# ---------
1652
1574
AC_DEFUN([LT_OUTPUT],
1653
1575
[: ${CONFIG_LT=./config.lt}
1654
1576
AC_MSG_NOTICE([creating $CONFIG_LT])
1655
 
_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
1656
 
[# Run this file to recreate a libtool stub with the current configuration.])
 
1577
cat >"$CONFIG_LT" <<_LTEOF
 
1578
#! $SHELL
 
1579
# Generated by $as_me.
 
1580
# Run this file to recreate a libtool stub with the current configuration.
1657
1581
 
1658
 
cat >>"$CONFIG_LT" <<\_LTEOF
1659
1582
lt_cl_silent=false
 
1583
SHELL=\${CONFIG_SHELL-$SHELL}
 
1584
_LTEOF
 
1585
 
 
1586
cat >>"$CONFIG_LT" <<\_LTEOF
 
1587
AS_SHELL_SANITIZE
 
1588
_AS_PREPARE
 
1589
 
 
1590
exec AS_MESSAGE_FD>&1
1660
1591
exec AS_MESSAGE_LOG_FD>>config.log
1661
1592
{
1662
1593
  echo
1682
1613
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1683
1614
configured by $[0], generated by m4_PACKAGE_STRING.
1684
1615
 
1685
 
Copyright (C) 2010 Free Software Foundation, Inc.
 
1616
Copyright (C) 2008 Free Software Foundation, Inc.
1686
1617
This config.lt script is free software; the Free Software Foundation
1687
1618
gives unlimited permision to copy, distribute and modify it."
1688
1619
 
1727
1658
# appending to config.log, which fails on DOS, as config.log is still kept
1728
1659
# open by configure.  Here we exec the FD to /dev/null, effectively closing
1729
1660
# config.log, so it can be properly (re)opened and appended to by config.lt.
1730
 
lt_cl_success=:
1731
 
test "$silent" = yes &&
1732
 
  lt_config_lt_args="$lt_config_lt_args --quiet"
1733
 
exec AS_MESSAGE_LOG_FD>/dev/null
1734
 
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1735
 
exec AS_MESSAGE_LOG_FD>>config.log
1736
 
$lt_cl_success || AS_EXIT(1)
 
1661
if test "$no_create" != yes; then
 
1662
  lt_cl_success=:
 
1663
  test "$silent" = yes &&
 
1664
    lt_config_lt_args="$lt_config_lt_args --quiet"
 
1665
  exec AS_MESSAGE_LOG_FD>/dev/null
 
1666
  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
 
1667
  exec AS_MESSAGE_LOG_FD>>config.log
 
1668
  $lt_cl_success || AS_EXIT(1)
 
1669
fi
1737
1670
])# LT_OUTPUT
1738
1671
 
1739
1672
 
1763
1696
 
1764
1697
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1765
1698
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1766
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1767
1699
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1768
1700
#
1769
1701
_LT_COPYING
1910
1842
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1911
1843
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1912
1844
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1913
 
AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
1914
1845
dnl aclocal-1.4 backwards compatibility:
1915
1846
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1916
1847
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1917
1848
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1918
1849
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1919
 
dnl AC_DEFUN([AC_LIBTOOL_RC], [])
1920
1850
 
1921
1851
 
1922
1852
# _LT_TAG_COMPILER
2021
1951
        [lt_cv_ld_exported_symbols_list=no])
2022
1952
        LDFLAGS="$save_LDFLAGS"
2023
1953
    ])
2024
 
    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
2025
 
      [lt_cv_ld_force_load=no
2026
 
      cat > conftest.c << _LT_EOF
2027
 
int forced_loaded() { return 2;}
2028
 
_LT_EOF
2029
 
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
2030
 
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
2031
 
      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
2032
 
      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
2033
 
      echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
2034
 
      $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
2035
 
      cat > conftest.c << _LT_EOF
2036
 
int main() { return 0;}
2037
 
_LT_EOF
2038
 
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
2039
 
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
2040
 
      _lt_result=$?
2041
 
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
2042
 
        lt_cv_ld_force_load=yes
2043
 
      else
2044
 
        cat conftest.err >&AS_MESSAGE_LOG_FD
2045
 
      fi
2046
 
        rm -f conftest.err libconftest.a conftest conftest.c
2047
 
        rm -rf conftest.dSYM
2048
 
    ])
2049
1954
    case $host_os in
2050
1955
    rhapsody* | darwin1.[[012]])
2051
1956
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
2073
1978
    else
2074
1979
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
2075
1980
    fi
2076
 
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
 
1981
    if test "$DSYMUTIL" != ":"; then
2077
1982
      _lt_dsymutil='~$DSYMUTIL $lib || :'
2078
1983
    else
2079
1984
      _lt_dsymutil=
2093
1998
  _LT_TAGVAR(hardcode_direct, $1)=no
2094
1999
  _LT_TAGVAR(hardcode_automatic, $1)=yes
2095
2000
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2096
 
  if test "$lt_cv_ld_force_load" = "yes"; then
2097
 
    _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\"`'
2098
 
  else
2099
 
    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
2100
 
  fi
 
2001
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
2101
2002
  _LT_TAGVAR(link_all_deplibs, $1)=yes
2102
2003
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
2103
2004
  case $cc_basename in
2105
2006
     *) _lt_dar_can_shared=$GCC ;;
2106
2007
  esac
2107
2008
  if test "$_lt_dar_can_shared" = "yes"; then
2108
 
    output_verbose_link_cmd=func_echo_all
 
2009
    output_verbose_link_cmd=echo
2109
2010
    _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}"
2110
2011
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
2111
2012
    _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}"
2151
2052
# _LT_SHELL_INIT(ARG)
2152
2053
# -------------------
2153
2054
m4_define([_LT_SHELL_INIT],
2154
 
[m4_divert_text([M4SH-INIT], [$1
2155
 
])])# _LT_SHELL_INIT
2156
 
 
 
2055
[ifdef([AC_DIVERSION_NOTICE],
 
2056
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
 
2057
         [AC_DIVERT_PUSH(NOTICE)])
 
2058
$1
 
2059
AC_DIVERT_POP
 
2060
])# _LT_SHELL_INIT
2157
2061
 
2158
2062
 
2159
2063
# _LT_PROG_ECHO_BACKSLASH
2160
2064
# -----------------------
2161
 
# Find how we can fake an echo command that does not interpret backslash.
2162
 
# In particular, with Autoconf 2.60 or later we add some code to the start
2163
 
# of the generated configure script which will find a shell with a builtin
2164
 
# printf (which we can use as an echo command).
 
2065
# Add some code to the start of the generated configure script which
 
2066
# will find an echo command which doesn't interpret backslashes.
2165
2067
m4_defun([_LT_PROG_ECHO_BACKSLASH],
2166
 
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2167
 
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2168
 
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2169
 
 
2170
 
AC_MSG_CHECKING([how to print strings])
2171
 
# Test print first, because it will be a builtin if present.
2172
 
if test "X`print -r -- -n 2>/dev/null`" = X-n && \
2173
 
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2174
 
  ECHO='print -r --'
2175
 
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2176
 
  ECHO='printf %s\n'
 
2068
[_LT_SHELL_INIT([
 
2069
# Check that we are running under the correct shell.
 
2070
SHELL=${CONFIG_SHELL-/bin/sh}
 
2071
 
 
2072
case X$lt_ECHO in
 
2073
X*--fallback-echo)
 
2074
  # Remove one level of quotation (which was required for Make).
 
2075
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
 
2076
  ;;
 
2077
esac
 
2078
 
 
2079
ECHO=${lt_ECHO-echo}
 
2080
if test "X[$]1" = X--no-reexec; then
 
2081
  # Discard the --no-reexec flag, and continue.
 
2082
  shift
 
2083
elif test "X[$]1" = X--fallback-echo; then
 
2084
  # Avoid inline document here, it may be left over
 
2085
  :
 
2086
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 
2087
  # Yippee, $ECHO works!
 
2088
  :
2177
2089
else
2178
 
  # Use this function as a fallback that always works.
2179
 
  func_fallback_echo ()
2180
 
  {
2181
 
    eval 'cat <<_LTECHO_EOF
2182
 
$[]1
2183
 
_LTECHO_EOF'
2184
 
  }
2185
 
  ECHO='func_fallback_echo'
2186
 
fi
2187
 
 
2188
 
# func_echo_all arg...
2189
 
# Invoke $ECHO with all args, space-separated.
2190
 
func_echo_all ()
2191
 
{
2192
 
    $ECHO "$*" 
2193
 
}
2194
 
 
2195
 
case "$ECHO" in
2196
 
  printf*) AC_MSG_RESULT([printf]) ;;
2197
 
  print*) AC_MSG_RESULT([print -r]) ;;
2198
 
  *) AC_MSG_RESULT([cat]) ;;
2199
 
esac
2200
 
 
2201
 
m4_ifdef([_AS_DETECT_SUGGESTED],
2202
 
[_AS_DETECT_SUGGESTED([
2203
 
  test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
2204
 
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2205
 
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2206
 
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2207
 
    PATH=/empty FPATH=/empty; export PATH FPATH
2208
 
    test "X`printf %s $ECHO`" = "X$ECHO" \
2209
 
      || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
2210
 
 
 
2090
  # Restart under the correct shell.
 
2091
  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
 
2092
fi
 
2093
 
 
2094
if test "X[$]1" = X--fallback-echo; then
 
2095
  # used as fallback echo
 
2096
  shift
 
2097
  cat <<_LT_EOF
 
2098
[$]*
 
2099
_LT_EOF
 
2100
  exit 0
 
2101
fi
 
2102
 
 
2103
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
2104
# if CDPATH is set.
 
2105
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
2106
 
 
2107
if test -z "$lt_ECHO"; then
 
2108
  if test "X${echo_test_string+set}" != Xset; then
 
2109
    # find a string as large as possible, as long as the shell can cope with it
 
2110
    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
 
2111
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
2112
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
 
2113
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
2114
      then
 
2115
        break
 
2116
      fi
 
2117
    done
 
2118
  fi
 
2119
 
 
2120
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
2121
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
2122
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
2123
    :
 
2124
  else
 
2125
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
2126
    # backslashes.  This makes it impossible to quote backslashes using
 
2127
    #   echo "$something" | sed 's/\\/\\\\/g'
 
2128
    #
 
2129
    # So, first we look for a working echo in the user's PATH.
 
2130
 
 
2131
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2132
    for dir in $PATH /usr/ucb; do
 
2133
      IFS="$lt_save_ifs"
 
2134
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
2135
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
2136
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
2137
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
2138
        ECHO="$dir/echo"
 
2139
        break
 
2140
      fi
 
2141
    done
 
2142
    IFS="$lt_save_ifs"
 
2143
 
 
2144
    if test "X$ECHO" = Xecho; then
 
2145
      # We didn't find a better echo, so look for alternatives.
 
2146
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
2147
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
2148
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
2149
        # This shell has a builtin print -r that does the trick.
 
2150
        ECHO='print -r'
 
2151
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
2152
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
2153
        # If we have ksh, try running configure again with it.
 
2154
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
2155
        export ORIGINAL_CONFIG_SHELL
 
2156
        CONFIG_SHELL=/bin/ksh
 
2157
        export CONFIG_SHELL
 
2158
        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
 
2159
      else
 
2160
        # Try using printf.
 
2161
        ECHO='printf %s\n'
 
2162
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
2163
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
2164
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
2165
          # Cool, printf works
 
2166
          :
 
2167
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
2168
             test "X$echo_testing_string" = 'X\t' &&
 
2169
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
2170
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
2171
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
2172
          export CONFIG_SHELL
 
2173
          SHELL="$CONFIG_SHELL"
 
2174
          export SHELL
 
2175
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
 
2176
        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
2177
             test "X$echo_testing_string" = 'X\t' &&
 
2178
             echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
2179
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
2180
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
 
2181
        else
 
2182
          # maybe with a smaller string...
 
2183
          prev=:
 
2184
 
 
2185
          for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
 
2186
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
2187
            then
 
2188
              break
 
2189
            fi
 
2190
            prev="$cmd"
 
2191
          done
 
2192
 
 
2193
          if test "$prev" != 'sed 50q "[$]0"'; then
 
2194
            echo_test_string=`eval $prev`
 
2195
            export echo_test_string
 
2196
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
 
2197
          else
 
2198
            # Oops.  We lost completely, so just stick with echo.
 
2199
            ECHO=echo
 
2200
          fi
 
2201
        fi
 
2202
      fi
 
2203
    fi
 
2204
  fi
 
2205
fi
 
2206
 
 
2207
# Copy echo and quote the copy suitably for passing to libtool from
 
2208
# the Makefile, instead of quoting the original, which is used later.
 
2209
lt_ECHO=$ECHO
 
2210
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
 
2211
   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
 
2212
fi
 
2213
 
 
2214
AC_SUBST(lt_ECHO)
 
2215
])
2211
2216
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
2212
 
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
 
2217
_LT_DECL([], [ECHO], [1],
 
2218
    [An echo program that does not interpret backslashes])
2213
2219
])# _LT_PROG_ECHO_BACKSLASH
2214
2220
 
2215
2221
 
2241
2247
  ;;
2242
2248
*-*-irix6*)
2243
2249
  # Find out which ABI we are using.
2244
 
  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
 
2250
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
2245
2251
  if AC_TRY_EVAL(ac_compile); then
2246
2252
    if test "$lt_cv_prog_gnu_ld" = yes; then
2247
2253
      case `/usr/bin/file conftest.$ac_objext` in
2393
2399
  esac
2394
2400
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2395
2401
fi
2396
 
 
2397
 
case $host_os in
2398
 
  darwin*)
2399
 
    lock_old_archive_extraction=yes ;;
2400
 
  *)
2401
 
    lock_old_archive_extraction=no ;;
2402
 
esac
2403
2402
_LT_DECL([], [old_postinstall_cmds], [2])
2404
2403
_LT_DECL([], [old_postuninstall_cmds], [2])
2405
2404
_LT_TAGDECL([], [old_archive_cmds], [2],
2406
2405
    [Commands used to build an old-style archive])
2407
 
_LT_DECL([], [lock_old_archive_extraction], [0],
2408
 
    [Whether to use a lock for old archive extraction])
2409
2406
])# _LT_CMD_OLD_ARCHIVE
2410
2407
 
2411
2408
 
2430
2427
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2431
2428
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2432
2429
   -e 's:$: $lt_compiler_flag:'`
2433
 
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
2430
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2434
2431
   (eval "$lt_compile" 2>conftest.err)
2435
2432
   ac_status=$?
2436
2433
   cat conftest.err >&AS_MESSAGE_LOG_FD
2437
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
2434
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2438
2435
   if (exit $ac_status) && test -s "$ac_outfile"; then
2439
2436
     # The compiler can only warn and ignore the option if not recognized
2440
2437
     # So say no if there are warnings other than the usual output.
2441
 
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
2438
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
2442
2439
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2443
2440
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2444
2441
       $2=yes
2478
2475
     if test -s conftest.err; then
2479
2476
       # Append any errors to the config.log.
2480
2477
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
2481
 
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
2478
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
2482
2479
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2483
2480
       if diff conftest.exp conftest.er2 >/dev/null; then
2484
2481
         $2=yes
2541
2538
    lt_cv_sys_max_cmd_len=8192;
2542
2539
    ;;
2543
2540
 
2544
 
  mint*)
2545
 
    # On MiNT this can take a long time and run out of memory.
2546
 
    lt_cv_sys_max_cmd_len=8192;
2547
 
    ;;
2548
 
 
2549
2541
  amigaos*)
2550
2542
    # On AmigaOS with pdksh, this test takes hours, literally.
2551
2543
    # So we just punt and use a minimum line length of 8192.
2610
2602
      # If test is not a shell built-in, we'll probably end up computing a
2611
2603
      # maximum length that is only half of the actual maximum length, but
2612
2604
      # we can't tell.
2613
 
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
2614
 
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
 
2605
      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
2606
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
2615
2607
              test $i != 17 # 1/2 MB should be enough
2616
2608
      do
2617
2609
        i=`expr $i + 1`
2662
2654
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2663
2655
  lt_status=$lt_dlunknown
2664
2656
  cat > conftest.$ac_ext <<_LT_EOF
2665
 
[#line $LINENO "configure"
 
2657
[#line __oline__ "configure"
2666
2658
#include "confdefs.h"
2667
2659
 
2668
2660
#if HAVE_DLFCN_H
2703
2695
#  endif
2704
2696
#endif
2705
2697
 
2706
 
/* When -fvisbility=hidden is used, assume the code has been annotated
2707
 
   correspondingly for the symbols needed.  */
2708
 
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
2709
 
void fnord () __attribute__((visibility("default")));
2710
 
#endif
2711
 
 
2712
 
void fnord () { int i=42; }
 
2698
void fnord() { int i=42;}
2713
2699
int main ()
2714
2700
{
2715
2701
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2718
2704
  if (self)
2719
2705
    {
2720
2706
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
2721
 
      else
2722
 
        {
2723
 
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
2724
 
          else puts (dlerror ());
2725
 
        }
 
2707
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2726
2708
      /* dlclose (self); */
2727
2709
    }
2728
2710
  else
2898
2880
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2899
2881
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2900
2882
   -e 's:$: $lt_compiler_flag:'`
2901
 
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
2883
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2902
2884
   (eval "$lt_compile" 2>out/conftest.err)
2903
2885
   ac_status=$?
2904
2886
   cat out/conftest.err >&AS_MESSAGE_LOG_FD
2905
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
2887
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2906
2888
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
2907
2889
   then
2908
2890
     # The compiler can only warn and ignore the option if not recognized
2909
2891
     # So say no if there are warnings
2910
 
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
2892
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
2911
2893
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2912
2894
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2913
2895
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
3066
3048
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3067
3049
m4_require([_LT_DECL_OBJDUMP])dnl
3068
3050
m4_require([_LT_DECL_SED])dnl
3069
 
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
3070
3051
AC_MSG_CHECKING([dynamic linker characteristics])
3071
3052
m4_if([$1],
3072
3053
        [], [
3075
3056
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
3076
3057
    *) lt_awk_arg="/^libraries:/" ;;
3077
3058
  esac
3078
 
  case $host_os in
3079
 
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
3080
 
    *) lt_sed_strip_eq="s,=/,/,g" ;;
3081
 
  esac
3082
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
3083
 
  case $lt_search_path_spec in
3084
 
  *\;*)
 
3059
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
3060
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
3085
3061
    # if the path contains ";" then we assume it to be the separator
3086
3062
    # otherwise default to the standard path separator (i.e. ":") - it is
3087
3063
    # assumed that no part of a normal pathname contains ";" but that should
3088
3064
    # okay in the real world where ";" in dirpaths is itself problematic.
3089
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
3090
 
    ;;
3091
 
  *)
3092
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
3093
 
    ;;
3094
 
  esac
 
3065
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
3066
  else
 
3067
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
3068
  fi
3095
3069
  # Ok, now we have the path, separated by spaces, we can step through it
3096
3070
  # and add multilib dir if necessary.
3097
3071
  lt_tmp_lt_search_path_spec=
3104
3078
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
3105
3079
    fi
3106
3080
  done
3107
 
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
 
3081
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
3108
3082
BEGIN {RS=" "; FS="/|\n";} {
3109
3083
  lt_foo="";
3110
3084
  lt_count=0;
3124
3098
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
3125
3099
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
3126
3100
}'`
3127
 
  # AWK program above erroneously prepends '/' to C:/dos/paths
3128
 
  # for these hosts.
3129
 
  case $host_os in
3130
 
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
3131
 
      $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
3132
 
  esac
3133
 
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
 
3101
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
3134
3102
else
3135
3103
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3136
3104
fi])
3218
3186
  m68k)
3219
3187
    library_names_spec='$libname.ixlibrary $libname.a'
3220
3188
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
3221
 
    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'
 
3189
    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'
3222
3190
    ;;
3223
3191
  esac
3224
3192
  ;;
3271
3239
    cygwin*)
3272
3240
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
3273
3241
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3274
 
m4_if([$1], [],[
3275
 
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
 
3242
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
3276
3243
      ;;
3277
3244
    mingw* | cegcc*)
3278
3245
      # MinGW DLLs use traditional 'lib' prefix
3279
3246
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
3247
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
3248
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
 
3249
        # It is most probably a Windows format PATH printed by
 
3250
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
3251
        # path with ; separators, and with drive letters. We can handle the
 
3252
        # drive letters (cygwin fileutils understands them), so leave them,
 
3253
        # especially as we might pass files found there to a mingw objdump,
 
3254
        # which wouldn't understand a cygwinified path. Ahh.
 
3255
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
3256
      else
 
3257
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
3258
      fi
3280
3259
      ;;
3281
3260
    pw32*)
3282
3261
      # pw32 DLLs use 'pw' prefix rather than 'lib'
3376
3355
  hardcode_into_libs=yes
3377
3356
  ;;
3378
3357
 
3379
 
haiku*)
3380
 
  version_type=linux
3381
 
  need_lib_prefix=no
3382
 
  need_version=no
3383
 
  dynamic_linker="$host_os runtime_loader"
3384
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3385
 
  soname_spec='${libname}${release}${shared_ext}$major'
3386
 
  shlibpath_var=LIBRARY_PATH
3387
 
  shlibpath_overrides_runpath=yes
3388
 
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
3389
 
  hardcode_into_libs=yes
3390
 
  ;;
3391
 
 
3392
3358
hpux9* | hpux10* | hpux11*)
3393
3359
  # Give a soname corresponding to the major version so that dld.sl refuses to
3394
3360
  # link against other versions.
3431
3397
    soname_spec='${libname}${release}${shared_ext}$major'
3432
3398
    ;;
3433
3399
  esac
3434
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 
3400
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
3435
3401
  postinstall_cmds='chmod 555 $lib'
3436
 
  # or fails outright, so override atomically:
3437
 
  install_override_mode=555
3438
3402
  ;;
3439
3403
 
3440
3404
interix[[3-9]]*)
3492
3456
  ;;
3493
3457
 
3494
3458
# This must be Linux ELF.
3495
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
3459
linux* | k*bsd*-gnu)
3496
3460
  version_type=linux
3497
3461
  need_lib_prefix=no
3498
3462
  need_version=no
3501
3465
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3502
3466
  shlibpath_var=LD_LIBRARY_PATH
3503
3467
  shlibpath_overrides_runpath=no
3504
 
 
3505
3468
  # Some binutils ld are patched to set DT_RUNPATH
3506
 
  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
3507
 
    [lt_cv_shlibpath_overrides_runpath=no
3508
 
    save_LDFLAGS=$LDFLAGS
3509
 
    save_libdir=$libdir
3510
 
    eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
3511
 
         LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
3512
 
    AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
3513
 
      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
3514
 
         [lt_cv_shlibpath_overrides_runpath=yes])])
3515
 
    LDFLAGS=$save_LDFLAGS
3516
 
    libdir=$save_libdir
3517
 
    ])
3518
 
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
3469
  save_LDFLAGS=$LDFLAGS
 
3470
  save_libdir=$libdir
 
3471
  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
 
3472
       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
 
3473
  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
3474
    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
 
3475
       [shlibpath_overrides_runpath=yes])])
 
3476
  LDFLAGS=$save_LDFLAGS
 
3477
  libdir=$save_libdir
3519
3478
 
3520
3479
  # This implies no fast_install, which is unacceptable.
3521
3480
  # Some rework will be needed to allow for fast_install
3522
3481
  # before this can be enabled.
3523
3482
  hardcode_into_libs=yes
3524
3483
 
3525
 
  # Add ABI-specific directories to the system library path.
3526
 
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
3527
 
 
3528
3484
  # Append ld.so.conf contents to the search path
3529
3485
  if test -f /etc/ld.so.conf; then
3530
 
    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' ' '`
3531
 
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
3532
 
 
 
3486
    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' ' '`
 
3487
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3533
3488
  fi
3534
3489
 
3535
3490
  # We used to test for /lib/ld.so.1 and disable shared libraries on
3761
3716
    The last name is the one that the linker finds with -lNAME]])
3762
3717
_LT_DECL([], [soname_spec], [1],
3763
3718
    [[The coded name of the library, if different from the real name]])
3764
 
_LT_DECL([], [install_override_mode], [1],
3765
 
    [Permission mode override for installation of shared libraries])
3766
3719
_LT_DECL([], [postinstall_cmds], [2],
3767
3720
    [Command to use after installation of a shared archive])
3768
3721
_LT_DECL([], [postuninstall_cmds], [2],
3875
3828
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3876
3829
m4_require([_LT_DECL_SED])dnl
3877
3830
m4_require([_LT_DECL_EGREP])dnl
3878
 
m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
3879
3831
 
3880
3832
AC_ARG_WITH([gnu-ld],
3881
3833
    [AS_HELP_STRING([--with-gnu-ld],
4005
3957
    fi
4006
3958
    ;;
4007
3959
esac
4008
 
_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
4009
 
_LT_TAGDECL([], [reload_cmds], [2])dnl
 
3960
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
 
3961
_LT_DECL([], [reload_cmds], [2])dnl
4010
3962
])# _LT_CMD_RELOAD
4011
3963
 
4012
3964
 
4058
4010
  # Base MSYS/MinGW do not provide the 'file' command needed by
4059
4011
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4060
4012
  # unless we find 'file', for example because we are cross-compiling.
4061
 
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4062
 
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
 
4013
  if ( file / ) >/dev/null 2>&1; then
4063
4014
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4064
4015
    lt_cv_file_magic_cmd='func_win32_libid'
4065
4016
  else
4066
 
    # Keep this pattern in sync with the one in func_win32_libid.
4067
 
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
 
4017
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4068
4018
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4069
4019
  fi
4070
4020
  ;;
4071
4021
 
4072
 
cegcc*)
 
4022
cegcc)
4073
4023
  # use the weaker test based on 'objdump'. See mingw*.
4074
4024
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4075
4025
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4099
4049
  lt_cv_deplibs_check_method=pass_all
4100
4050
  ;;
4101
4051
 
4102
 
haiku*)
4103
 
  lt_cv_deplibs_check_method=pass_all
4104
 
  ;;
4105
 
 
4106
4052
hpux10.20* | hpux11*)
4107
4053
  lt_cv_file_magic_cmd=/usr/bin/file
4108
4054
  case $host_cpu in
4111
4057
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4112
4058
    ;;
4113
4059
  hppa*64*)
4114
 
    [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]']
 
4060
    [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]']
4115
4061
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4116
4062
    ;;
4117
4063
  *)
4118
 
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
 
4064
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
4119
4065
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4120
4066
    ;;
4121
4067
  esac
4137
4083
  ;;
4138
4084
 
4139
4085
# This must be Linux ELF.
4140
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
4086
linux* | k*bsd*-gnu)
4141
4087
  lt_cv_deplibs_check_method=pass_all
4142
4088
  ;;
4143
4089
 
4279
4225
  NM="$lt_cv_path_NM"
4280
4226
else
4281
4227
  # Didn't find any BSD compatible name lister, look for dumpbin.
4282
 
  if test -n "$DUMPBIN"; then :
4283
 
    # Let the user override the test.
4284
 
  else
4285
 
    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
4286
 
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4287
 
    *COFF*)
4288
 
      DUMPBIN="$DUMPBIN -symbols"
4289
 
      ;;
4290
 
    *)
4291
 
      DUMPBIN=:
4292
 
      ;;
4293
 
    esac
4294
 
  fi
 
4228
  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
4295
4229
  AC_SUBST([DUMPBIN])
4296
4230
  if test "$DUMPBIN" != ":"; then
4297
4231
    NM="$DUMPBIN"
4304
4238
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
4305
4239
  [lt_cv_nm_interface="BSD nm"
4306
4240
  echo "int some_variable = 0;" > conftest.$ac_ext
4307
 
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
 
4241
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
4308
4242
  (eval "$ac_compile" 2>conftest.err)
4309
4243
  cat conftest.err >&AS_MESSAGE_LOG_FD
4310
 
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
 
4244
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
4311
4245
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4312
4246
  cat conftest.err >&AS_MESSAGE_LOG_FD
4313
 
  (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
 
4247
  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
4314
4248
  cat conftest.out >&AS_MESSAGE_LOG_FD
4315
4249
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4316
4250
    lt_cv_nm_interface="MS dumpbin"
4333
4267
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4334
4268
LIBM=
4335
4269
case $host in
4336
 
*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
 
4270
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
4337
4271
  # These system don't have libm, or don't need it
4338
4272
  ;;
4339
4273
*-ncr-sysv4.3*)
4361
4295
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4362
4296
 
4363
4297
if test "$GCC" = yes; then
4364
 
  case $cc_basename in
4365
 
  nvcc*)
4366
 
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
4367
 
  *)
4368
 
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
4369
 
  esac
 
4298
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4370
4299
 
4371
4300
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4372
4301
    lt_cv_prog_compiler_rtti_exceptions,
4383
4312
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
4384
4313
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4385
4314
AC_REQUIRE([AC_PROG_CC])dnl
4386
 
AC_REQUIRE([AC_PROG_AWK])dnl
4387
4315
AC_REQUIRE([LT_PATH_NM])dnl
4388
4316
AC_REQUIRE([LT_PATH_LD])dnl
4389
4317
m4_require([_LT_DECL_SED])dnl
4509
4437
  if AC_TRY_EVAL(ac_compile); then
4510
4438
    # Now try to grab the symbols.
4511
4439
    nlist=conftest.nm
4512
 
    if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
 
4440
    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
4513
4441
      # Try sorting and uniquifying the output.
4514
4442
      if sort "$nlist" | uniq > "$nlist"T; then
4515
4443
        mv -f "$nlist"T "$nlist"
4671
4599
      # DJGPP does not support shared libraries at all
4672
4600
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4673
4601
      ;;
4674
 
    haiku*)
4675
 
      # PIC is the default for Haiku.
4676
 
      # The "-static" flag exists, but is broken.
4677
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
4678
 
      ;;
4679
4602
    interix[[3-9]]*)
4680
4603
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4681
4604
      # Instead, we relocate shared libraries at runtime.
4781
4704
            ;;
4782
4705
        esac
4783
4706
        ;;
4784
 
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
4707
      linux* | k*bsd*-gnu)
4785
4708
        case $cc_basename in
4786
4709
          KCC*)
4787
4710
            # KAI C++ Compiler
4814
4737
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4815
4738
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4816
4739
            ;;
4817
 
          xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
4818
 
            # IBM XL 8.0, 9.0 on PPC and BlueGene
 
4740
          xlc* | xlC*)
 
4741
            # IBM XL 8.0 on PPC
4819
4742
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4820
4743
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4821
4744
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4877
4800
        ;;
4878
4801
      solaris*)
4879
4802
        case $cc_basename in
4880
 
          CC* | sunCC*)
 
4803
          CC*)
4881
4804
            # Sun C++ 4.2, 5.x and Centerline C++
4882
4805
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4883
4806
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4981
4904
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4982
4905
      ;;
4983
4906
 
4984
 
    haiku*)
4985
 
      # PIC is the default for Haiku.
4986
 
      # The "-static" flag exists, but is broken.
4987
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
4988
 
      ;;
4989
 
 
4990
4907
    hpux*)
4991
4908
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4992
4909
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
5029
4946
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5030
4947
      ;;
5031
4948
    esac
5032
 
 
5033
 
    case $cc_basename in
5034
 
    nvcc*) # Cuda Compiler Driver 2.2
5035
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
5036
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
5037
 
      ;;
5038
 
    esac
5039
4949
  else
5040
4950
    # PORTME Check for flag to pass linker flags through the system compiler.
5041
4951
    case $host_os in
5078
4988
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5079
4989
      ;;
5080
4990
 
5081
 
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
4991
    linux* | k*bsd*-gnu)
5082
4992
      case $cc_basename in
5083
4993
      # old Intel for x86_64 which still supported -KPIC.
5084
4994
      ecc*)
5099
5009
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
5100
5010
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
5101
5011
        ;;
5102
 
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
 
5012
      pgcc* | pgf77* | pgf90* | pgf95*)
5103
5013
        # Portland Group compilers (*not* the Pentium gcc compiler,
5104
5014
        # which looks to be a dead project)
5105
5015
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5111
5021
        # All Alpha code is PIC.
5112
5022
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5113
5023
        ;;
5114
 
      xl* | bgxl* | bgf* | mpixl*)
5115
 
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
 
5024
      xl*)
 
5025
        # IBM XL C 8.0/Fortran 10.1 on PPC
5116
5026
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5117
5027
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
5118
5028
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5119
5029
        ;;
5120
5030
      *)
5121
5031
        case `$CC -V 2>&1 | sed 5q` in
5122
 
        *Sun\ F* | *Sun*Fortran*)
5123
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
5124
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5125
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5126
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
5127
 
          ;;
5128
5032
        *Sun\ C*)
5129
5033
          # Sun C 5.9
5130
5034
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5131
5035
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5132
5036
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5133
5037
          ;;
 
5038
        *Sun\ F*)
 
5039
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
5040
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5041
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5042
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
 
5043
          ;;
5134
5044
        esac
5135
5045
        ;;
5136
5046
      esac
5161
5071
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5162
5072
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5163
5073
      case $cc_basename in
5164
 
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
 
5074
      f77* | f90* | f95*)
5165
5075
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5166
5076
      *)
5167
5077
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5271
5181
  aix[[4-9]]*)
5272
5182
    # If we're using GNU nm, then we don't want the "-C" option.
5273
5183
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
5274
 
    # Also, AIX nm treats weak defined symbols like other global defined
5275
 
    # symbols, whereas GNU nm marks them as "W".
5276
5184
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5277
 
      _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'
 
5185
      _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'
5278
5186
    else
5279
5187
      _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'
5280
5188
    fi
5352
5260
  esac
5353
5261
 
5354
5262
  _LT_TAGVAR(ld_shlibs, $1)=yes
5355
 
 
5356
 
  # On some targets, GNU ld is compatible enough with the native linker
5357
 
  # that we're better off using the native interface for both.
5358
 
  lt_use_gnu_ld_interface=no
5359
5263
  if test "$with_gnu_ld" = yes; then
5360
 
    case $host_os in
5361
 
      aix*)
5362
 
        # The AIX port of GNU ld has always aspired to compatibility
5363
 
        # with the native linker.  However, as the warning in the GNU ld
5364
 
        # block says, versions before 2.19.5* couldn't really create working
5365
 
        # shared libraries, regardless of the interface used.
5366
 
        case `$LD -v 2>&1` in
5367
 
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
5368
 
          *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
5369
 
          *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
5370
 
          *)
5371
 
            lt_use_gnu_ld_interface=yes
5372
 
            ;;
5373
 
        esac
5374
 
        ;;
5375
 
      *)
5376
 
        lt_use_gnu_ld_interface=yes
5377
 
        ;;
5378
 
    esac
5379
 
  fi
5380
 
 
5381
 
  if test "$lt_use_gnu_ld_interface" = yes; then
5382
5264
    # If archive_cmds runs LD, not CC, wlarc should be empty
5383
5265
    wlarc='${wl}'
5384
5266
 
5396
5278
    fi
5397
5279
    supports_anon_versioning=no
5398
5280
    case `$LD -v 2>&1` in
5399
 
      *GNU\ gold*) supports_anon_versioning=yes ;;
5400
5281
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5401
5282
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5402
5283
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5412
5293
        _LT_TAGVAR(ld_shlibs, $1)=no
5413
5294
        cat <<_LT_EOF 1>&2
5414
5295
 
5415
 
*** Warning: the GNU linker, at least up to release 2.19, is reported
 
5296
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5416
5297
*** to be unable to reliably create shared libraries on AIX.
5417
5298
*** Therefore, libtool is disabling shared libraries support.  If you
5418
 
*** really care for shared libraries, you may want to install binutils
5419
 
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
5420
 
*** You will then need to restart the configuration process.
 
5299
*** really care for shared libraries, you may want to modify your PATH
 
5300
*** so that a non-GNU linker is found, and then restart.
5421
5301
 
5422
5302
_LT_EOF
5423
5303
      fi
5453
5333
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5454
5334
      # as there is no search path for DLLs.
5455
5335
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5456
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
5457
5336
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5458
5337
      _LT_TAGVAR(always_export_symbols, $1)=no
5459
5338
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5475
5354
      fi
5476
5355
      ;;
5477
5356
 
5478
 
    haiku*)
5479
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5480
 
      _LT_TAGVAR(link_all_deplibs, $1)=yes
5481
 
      ;;
5482
 
 
5483
5357
    interix[[3-9]]*)
5484
5358
      _LT_TAGVAR(hardcode_direct, $1)=no
5485
5359
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5495
5369
      _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'
5496
5370
      ;;
5497
5371
 
5498
 
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 
5372
    gnu* | linux* | tpf* | k*bsd*-gnu)
5499
5373
      tmp_diet=no
5500
5374
      if test "$host_os" = linux-dietlibc; then
5501
5375
        case $cc_basename in
5509
5383
        tmp_sharedflag='-shared'
5510
5384
        case $cc_basename,$host_cpu in
5511
5385
        pgcc*)                          # Portland Group C compiler
5512
 
          _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'
 
5386
          _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'
5513
5387
          tmp_addflag=' $pic_flag'
5514
5388
          ;;
5515
 
        pgf77* | pgf90* | pgf95* | pgfortran*)
5516
 
                                        # Portland Group f77 and f90 compilers
5517
 
          _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'
 
5389
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
5390
          _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'
5518
5391
          tmp_addflag=' $pic_flag -Mnomain' ;;
5519
5392
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
5520
5393
          tmp_addflag=' -i_dynamic' ;;
5525
5398
        lf95*)                          # Lahey Fortran 8.1
5526
5399
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
5527
5400
          tmp_sharedflag='--shared' ;;
5528
 
        xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
 
5401
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
5529
5402
          tmp_sharedflag='-qmkshrobj'
5530
5403
          tmp_addflag= ;;
5531
 
        nvcc*)  # Cuda Compiler Driver 2.2
5532
 
          _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'
5533
 
          _LT_TAGVAR(compiler_needs_object, $1)=yes
5534
 
          ;;
5535
5404
        esac
5536
5405
        case `$CC -V 2>&1 | sed 5q` in
5537
5406
        *Sun\ C*)                       # Sun C 5.9
5538
 
          _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'
 
5407
          _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'
5539
5408
          _LT_TAGVAR(compiler_needs_object, $1)=yes
5540
5409
          tmp_sharedflag='-G' ;;
5541
5410
        *Sun\ F*)                       # Sun Fortran 8.3
5551
5420
        fi
5552
5421
 
5553
5422
        case $cc_basename in
5554
 
        xlf* | bgf* | bgxlf* | mpixlf*)
 
5423
        xlf*)
5555
5424
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5556
5425
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5557
5426
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5558
5427
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5559
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
 
5428
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
5560
5429
          if test "x$supports_anon_versioning" = xyes; then
5561
5430
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5562
5431
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5563
5432
              echo "local: *; };" >> $output_objdir/$libname.ver~
5564
 
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
5433
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5565
5434
          fi
5566
5435
          ;;
5567
5436
        esac
5682
5551
      else
5683
5552
        # If we're using GNU nm, then we don't want the "-C" option.
5684
5553
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
5685
 
        # Also, AIX nm treats weak defined symbols like other global
5686
 
        # defined symbols, whereas GNU nm marks them as "W".
5687
5554
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5688
 
          _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'
 
5555
          _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'
5689
5556
        else
5690
5557
          _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'
5691
5558
        fi
5774
5641
        # empty executable.
5775
5642
        _LT_SYS_MODULE_PATH_AIX
5776
5643
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5777
 
        _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"
 
5644
        _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"
5778
5645
      else
5779
5646
        if test "$host_cpu" = ia64; then
5780
5647
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5789
5656
          # -berok will link without error, but may produce a broken library.
5790
5657
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5791
5658
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5792
 
          if test "$with_gnu_ld" = yes; then
5793
 
            # We only use this code for GNU lds that support --whole-archive.
5794
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5795
 
          else
5796
 
            # Exported symbols can be pulled into shared objects from archives
5797
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5798
 
          fi
 
5659
          # Exported symbols can be pulled into shared objects from archives
 
5660
          _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5799
5661
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5800
5662
          # This is similar to how AIX traditionally builds its shared libraries.
5801
5663
          _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'
5834
5696
      # Tell ltmain to make .dll files, not .so files.
5835
5697
      shrext_cmds=".dll"
5836
5698
      # FIXME: Setting linknames here is a bad hack.
5837
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
5699
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5838
5700
      # The linker will automatically build a .lib file if we build a DLL.
5839
5701
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5840
5702
      # FIXME: Should let the user specify the lib program.
5901
5763
      ;;
5902
5764
 
5903
5765
    hpux10*)
5904
 
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
5766
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5905
5767
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5906
5768
      else
5907
5769
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5920
5782
      ;;
5921
5783
 
5922
5784
    hpux11*)
5923
 
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
5785
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5924
5786
        case $host_cpu in
5925
5787
        hppa*64*)
5926
5788
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5941
5803
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5942
5804
          ;;
5943
5805
        *)
5944
 
        m4_if($1, [], [
5945
 
          # Older versions of the 11.00 compiler do not understand -b yet
5946
 
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5947
 
          _LT_LINKER_OPTION([if $CC understands -b],
5948
 
            _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5949
 
            [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5950
 
            [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5951
 
          [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
 
5806
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5952
5807
          ;;
5953
5808
        esac
5954
5809
      fi
5976
5831
 
5977
5832
    irix5* | irix6* | nonstopux*)
5978
5833
      if test "$GCC" = yes; then
5979
 
        _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'
 
5834
        _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'
5980
5835
        # Try to use the -exported_symbol ld option, if it does not
5981
5836
        # work, assume that -exports_file does not work either and
5982
5837
        # implicitly export all symbols.
5983
5838
        save_LDFLAGS="$LDFLAGS"
5984
5839
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5985
5840
        AC_LINK_IFELSE(int foo(void) {},
5986
 
          _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'
 
5841
          _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'
5987
5842
        )
5988
5843
        LDFLAGS="$save_LDFLAGS"
5989
5844
      else
5990
 
        _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'
5991
 
        _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'
 
5845
        _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'
 
5846
        _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'
5992
5847
      fi
5993
5848
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5994
5849
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6050
5905
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6051
5906
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
6052
5907
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6053
 
      _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'
 
5908
      _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'
6054
5909
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6055
5910
      ;;
6056
5911
 
6057
5912
    osf3*)
6058
5913
      if test "$GCC" = yes; then
6059
5914
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6060
 
        _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'
 
5915
        _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'
6061
5916
      else
6062
5917
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6063
 
        _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'
 
5918
        _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'
6064
5919
      fi
6065
5920
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6066
5921
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6070
5925
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
6071
5926
      if test "$GCC" = yes; then
6072
5927
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6073
 
        _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'
 
5928
        _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'
6074
5929
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6075
5930
      else
6076
5931
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6077
 
        _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'
 
5932
        _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'
6078
5933
        _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~
6079
 
        $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'
 
5934
        $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'
6080
5935
 
6081
5936
        # Both c and cxx compiler support -rpath directly
6082
5937
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6267
6122
      # Test whether the compiler implicitly links with -lc since on some
6268
6123
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
6269
6124
      # to ld, don't add -lc before -lgcc.
6270
 
      AC_CACHE_CHECK([whether -lc should be explicitly linked in],
6271
 
        [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
6272
 
        [$RM conftest*
6273
 
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6125
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
 
6126
      $RM conftest*
 
6127
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6274
6128
 
6275
 
        if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6276
 
          soname=conftest
6277
 
          lib=conftest
6278
 
          libobjs=conftest.$ac_objext
6279
 
          deplibs=
6280
 
          wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
6281
 
          pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6282
 
          compiler_flags=-v
6283
 
          linker_flags=-v
6284
 
          verstring=
6285
 
          output_objdir=.
6286
 
          libname=conftest
6287
 
          lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
6288
 
          _LT_TAGVAR(allow_undefined_flag, $1)=
6289
 
          if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6290
 
          then
6291
 
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6292
 
          else
6293
 
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6294
 
          fi
6295
 
          _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6296
 
        else
6297
 
          cat conftest.err 1>&5
6298
 
        fi
6299
 
        $RM conftest*
6300
 
        ])
6301
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
 
6129
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
 
6130
        soname=conftest
 
6131
        lib=conftest
 
6132
        libobjs=conftest.$ac_objext
 
6133
        deplibs=
 
6134
        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
 
6135
        pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
 
6136
        compiler_flags=-v
 
6137
        linker_flags=-v
 
6138
        verstring=
 
6139
        output_objdir=.
 
6140
        libname=conftest
 
6141
        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
 
6142
        _LT_TAGVAR(allow_undefined_flag, $1)=
 
6143
        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
 
6144
        then
 
6145
          _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6146
        else
 
6147
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6148
        fi
 
6149
        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
6150
      else
 
6151
        cat conftest.err 1>&5
 
6152
      fi
 
6153
      $RM conftest*
 
6154
      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
6302
6155
      ;;
6303
6156
    esac
6304
6157
  fi
6464
6317
])# _LT_LANG_C_CONFIG
6465
6318
 
6466
6319
 
6467
 
# _LT_LANG_CXX_CONFIG([TAG])
6468
 
# --------------------------
6469
 
# Ensure that the configuration variables for a C++ compiler are suitably
6470
 
# defined.  These variables are subsequently used by _LT_CONFIG to write
6471
 
# the compiler configuration to `libtool'.
6472
 
m4_defun([_LT_LANG_CXX_CONFIG],
6473
 
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6474
 
m4_require([_LT_DECL_EGREP])dnl
 
6320
# _LT_PROG_CXX
 
6321
# ------------
 
6322
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
 
6323
# compiler, we have our own version here.
 
6324
m4_defun([_LT_PROG_CXX],
 
6325
[
 
6326
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
 
6327
AC_PROG_CXX
6475
6328
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6476
6329
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6477
6330
    (test "X$CXX" != "Xg++"))) ; then
6479
6332
else
6480
6333
  _lt_caught_CXX_error=yes
6481
6334
fi
 
6335
popdef([AC_MSG_ERROR])
 
6336
])# _LT_PROG_CXX
 
6337
 
 
6338
dnl aclocal-1.4 backwards compatibility:
 
6339
dnl AC_DEFUN([_LT_PROG_CXX], [])
 
6340
 
 
6341
 
 
6342
# _LT_LANG_CXX_CONFIG([TAG])
 
6343
# --------------------------
 
6344
# Ensure that the configuration variables for a C++ compiler are suitably
 
6345
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
6346
# the compiler configuration to `libtool'.
 
6347
m4_defun([_LT_LANG_CXX_CONFIG],
 
6348
[AC_REQUIRE([_LT_PROG_CXX])dnl
 
6349
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
6350
m4_require([_LT_DECL_EGREP])dnl
6482
6351
 
6483
6352
AC_LANG_PUSH(C++)
6484
6353
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6500
6369
_LT_TAGVAR(module_expsym_cmds, $1)=
6501
6370
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6502
6371
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6503
 
_LT_TAGVAR(reload_flag, $1)=$reload_flag
6504
 
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6505
6372
_LT_TAGVAR(no_undefined_flag, $1)=
6506
6373
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6507
6374
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6604
6471
      # Commands to make compiler produce verbose output that lists
6605
6472
      # what "hidden" libraries, object files and flags are used when
6606
6473
      # linking a shared library.
6607
 
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
6474
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6608
6475
 
6609
6476
    else
6610
6477
      GXX=no
6716
6583
          _LT_SYS_MODULE_PATH_AIX
6717
6584
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6718
6585
 
6719
 
          _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"
 
6586
          _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"
6720
6587
        else
6721
6588
          if test "$host_cpu" = ia64; then
6722
6589
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6731
6598
            # -berok will link without error, but may produce a broken library.
6732
6599
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6733
6600
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6734
 
            if test "$with_gnu_ld" = yes; then
6735
 
              # We only use this code for GNU lds that support --whole-archive.
6736
 
              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6737
 
            else
6738
 
              # Exported symbols can be pulled into shared objects from archives
6739
 
              _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6740
 
            fi
 
6601
            # Exported symbols can be pulled into shared objects from archives
 
6602
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6741
6603
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6742
6604
            # This is similar to how AIX traditionally builds its shared
6743
6605
            # libraries.
6770
6632
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6771
6633
        # as there is no search path for DLLs.
6772
6634
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6773
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6774
6635
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6775
6636
        _LT_TAGVAR(always_export_symbols, $1)=no
6776
6637
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6831
6692
      gnu*)
6832
6693
        ;;
6833
6694
 
6834
 
      haiku*)
6835
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6836
 
        _LT_TAGVAR(link_all_deplibs, $1)=yes
6837
 
        ;;
6838
 
 
6839
6695
      hpux9*)
6840
6696
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6841
6697
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6860
6716
            # explicitly linking system object files so we need to strip them
6861
6717
            # from the output so that they don't get included in the library
6862
6718
            # dependencies.
6863
 
            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"'
 
6719
            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'
6864
6720
            ;;
6865
6721
          *)
6866
6722
            if test "$GXX" = yes; then
6925
6781
            # explicitly linking system object files so we need to strip them
6926
6782
            # from the output so that they don't get included in the library
6927
6783
            # dependencies.
6928
 
            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"'
 
6784
            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'
6929
6785
            ;;
6930
6786
          *)
6931
6787
            if test "$GXX" = yes; then
6968
6824
        case $cc_basename in
6969
6825
          CC*)
6970
6826
            # SGI C++
6971
 
            _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'
 
6827
            _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'
6972
6828
 
6973
6829
            # Archives containing C++ object files must be created using
6974
6830
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
6979
6835
          *)
6980
6836
            if test "$GXX" = yes; then
6981
6837
              if test "$with_gnu_ld" = no; then
6982
 
                _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'
 
6838
                _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'
6983
6839
              else
6984
 
                _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'
 
6840
                _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'
6985
6841
              fi
6986
6842
            fi
6987
6843
            _LT_TAGVAR(link_all_deplibs, $1)=yes
6992
6848
        _LT_TAGVAR(inherit_rpath, $1)=yes
6993
6849
        ;;
6994
6850
 
6995
 
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
6851
      linux* | k*bsd*-gnu)
6996
6852
        case $cc_basename in
6997
6853
          KCC*)
6998
6854
            # Kuck and Associates, Inc. (KAI) C++ Compiler
7010
6866
            # explicitly linking system object files so we need to strip them
7011
6867
            # from the output so that they don't get included in the library
7012
6868
            # dependencies.
7013
 
            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"'
 
6869
            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'
7014
6870
 
7015
6871
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7016
6872
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7047
6903
          pgCC* | pgcpp*)
7048
6904
            # Portland Group C++ compiler
7049
6905
            case `$CC -V` in
7050
 
            *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
 
6906
            *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
7051
6907
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
7052
6908
                rm -rf $tpldir~
7053
6909
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
7054
 
                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
 
6910
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
7055
6911
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
7056
6912
                rm -rf $tpldir~
7057
6913
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
7058
 
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
 
6914
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
7059
6915
                $RANLIB $oldlib'
7060
6916
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
7061
6917
                rm -rf $tpldir~
7062
6918
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7063
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
6919
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
7064
6920
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
7065
6921
                rm -rf $tpldir~
7066
6922
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7067
 
                $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'
 
6923
                $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'
7068
6924
              ;;
7069
 
            *) # Version 6 and above use weak symbols
 
6925
            *) # Version 6 will use weak symbols
7070
6926
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
7071
6927
              _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'
7072
6928
              ;;
7074
6930
 
7075
6931
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
7076
6932
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7077
 
            _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'
 
6933
            _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'
7078
6934
            ;;
7079
6935
          cxx*)
7080
6936
            # Compaq C++
7093
6949
            # explicitly linking system object files so we need to strip them
7094
6950
            # from the output so that they don't get included in the library
7095
6951
            # dependencies.
7096
 
            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'
 
6952
            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'
7097
6953
            ;;
7098
 
          xl* | mpixl* | bgxl*)
 
6954
          xl*)
7099
6955
            # IBM XL 8.0 on PPC, with GNU ld
7100
6956
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7101
6957
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7115
6971
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7116
6972
              _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'
7117
6973
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7118
 
              _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'
 
6974
              _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'
7119
6975
              _LT_TAGVAR(compiler_needs_object, $1)=yes
7120
6976
 
7121
6977
              # Not sure whether something based on
7122
6978
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
7123
6979
              # would be better.
7124
 
              output_verbose_link_cmd='func_echo_all'
 
6980
              output_verbose_link_cmd='echo'
7125
6981
 
7126
6982
              # Archives containing C++ object files must be created using
7127
6983
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
7190
7046
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7191
7047
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7192
7048
          fi
7193
 
          output_verbose_link_cmd=func_echo_all
 
7049
          output_verbose_link_cmd=echo
7194
7050
        else
7195
7051
          _LT_TAGVAR(ld_shlibs, $1)=no
7196
7052
        fi
7225
7081
            case $host in
7226
7082
              osf3*)
7227
7083
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7228
 
                _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'
 
7084
                _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'
7229
7085
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7230
7086
                ;;
7231
7087
              *)
7232
7088
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7233
 
                _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'
 
7089
                _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'
7234
7090
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
7235
7091
                  echo "-hidden">> $lib.exp~
7236
 
                  $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~
 
7092
                  $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~
7237
7093
                  $RM $lib.exp'
7238
7094
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7239
7095
                ;;
7249
7105
            # explicitly linking system object files so we need to strip them
7250
7106
            # from the output so that they don't get included in the library
7251
7107
            # dependencies.
7252
 
            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"'
 
7108
            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'
7253
7109
            ;;
7254
7110
          *)
7255
7111
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7256
7112
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7257
7113
              case $host in
7258
7114
                osf3*)
7259
 
                  _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'
 
7115
                  _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'
7260
7116
                  ;;
7261
7117
                *)
7262
 
                  _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'
 
7118
                  _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'
7263
7119
                  ;;
7264
7120
              esac
7265
7121
 
7269
7125
              # Commands to make compiler produce verbose output that lists
7270
7126
              # what "hidden" libraries, object files and flags are used when
7271
7127
              # linking a shared library.
7272
 
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
7128
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7273
7129
 
7274
7130
            else
7275
7131
              # FIXME: insert proper C++ library support
7305
7161
 
7306
7162
      solaris*)
7307
7163
        case $cc_basename in
7308
 
          CC* | sunCC*)
 
7164
          CC*)
7309
7165
            # Sun C++ 4.2, 5.x and Centerline C++
7310
7166
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
7311
7167
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7326
7182
            esac
7327
7183
            _LT_TAGVAR(link_all_deplibs, $1)=yes
7328
7184
 
7329
 
            output_verbose_link_cmd='func_echo_all'
 
7185
            output_verbose_link_cmd='echo'
7330
7186
 
7331
7187
            # Archives containing C++ object files must be created using
7332
7188
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
7353
7209
                # Commands to make compiler produce verbose output that lists
7354
7210
                # what "hidden" libraries, object files and flags are used when
7355
7211
                # linking a shared library.
7356
 
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
7212
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7357
7213
              else
7358
7214
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
7359
7215
                # platform.
7364
7220
                # Commands to make compiler produce verbose output that lists
7365
7221
                # what "hidden" libraries, object files and flags are used when
7366
7222
                # linking a shared library.
7367
 
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
7223
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7368
7224
              fi
7369
7225
 
7370
7226
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
7418
7274
          CC*)
7419
7275
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7420
7276
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7421
 
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
7422
 
              '"$_LT_TAGVAR(old_archive_cmds, $1)"
7423
 
            _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
7424
 
              '"$_LT_TAGVAR(reload_cmds, $1)"
7425
7277
            ;;
7426
7278
          *)
7427
7279
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7668
7520
 
7669
7521
solaris*)
7670
7522
  case $cc_basename in
7671
 
  CC* | sunCC*)
 
7523
  CC*)
7672
7524
    # The more standards-conforming stlport4 library is
7673
7525
    # incompatible with the Cstd library. Avoid specifying
7674
7526
    # it if it's in CXXFLAGS. Ignore libCrun as
7712
7564
])# _LT_SYS_HIDDEN_LIBDEPS
7713
7565
 
7714
7566
 
 
7567
# _LT_PROG_F77
 
7568
# ------------
 
7569
# Since AC_PROG_F77 is broken, in that it returns the empty string
 
7570
# if there is no fortran compiler, we have our own version here.
 
7571
m4_defun([_LT_PROG_F77],
 
7572
[
 
7573
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
 
7574
AC_PROG_F77
 
7575
if test -z "$F77" || test "X$F77" = "Xno"; then
 
7576
  _lt_disable_F77=yes
 
7577
fi
 
7578
popdef([AC_MSG_ERROR])
 
7579
])# _LT_PROG_F77
 
7580
 
 
7581
dnl aclocal-1.4 backwards compatibility:
 
7582
dnl AC_DEFUN([_LT_PROG_F77], [])
 
7583
 
 
7584
 
7715
7585
# _LT_LANG_F77_CONFIG([TAG])
7716
7586
# --------------------------
7717
7587
# Ensure that the configuration variables for a Fortran 77 compiler are
7718
7588
# suitably defined.  These variables are subsequently used by _LT_CONFIG
7719
7589
# to write the compiler configuration to `libtool'.
7720
7590
m4_defun([_LT_LANG_F77_CONFIG],
7721
 
[AC_LANG_PUSH(Fortran 77)
7722
 
if test -z "$F77" || test "X$F77" = "Xno"; then
7723
 
  _lt_disable_F77=yes
7724
 
fi
 
7591
[AC_REQUIRE([_LT_PROG_F77])dnl
 
7592
AC_LANG_PUSH(Fortran 77)
7725
7593
 
7726
7594
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7727
7595
_LT_TAGVAR(allow_undefined_flag, $1)=
7740
7608
_LT_TAGVAR(module_expsym_cmds, $1)=
7741
7609
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7742
7610
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7743
 
_LT_TAGVAR(reload_flag, $1)=$reload_flag
7744
 
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7745
7611
_LT_TAGVAR(no_undefined_flag, $1)=
7746
7612
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7747
7613
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7841
7707
])# _LT_LANG_F77_CONFIG
7842
7708
 
7843
7709
 
 
7710
# _LT_PROG_FC
 
7711
# -----------
 
7712
# Since AC_PROG_FC is broken, in that it returns the empty string
 
7713
# if there is no fortran compiler, we have our own version here.
 
7714
m4_defun([_LT_PROG_FC],
 
7715
[
 
7716
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
 
7717
AC_PROG_FC
 
7718
if test -z "$FC" || test "X$FC" = "Xno"; then
 
7719
  _lt_disable_FC=yes
 
7720
fi
 
7721
popdef([AC_MSG_ERROR])
 
7722
])# _LT_PROG_FC
 
7723
 
 
7724
dnl aclocal-1.4 backwards compatibility:
 
7725
dnl AC_DEFUN([_LT_PROG_FC], [])
 
7726
 
 
7727
 
7844
7728
# _LT_LANG_FC_CONFIG([TAG])
7845
7729
# -------------------------
7846
7730
# Ensure that the configuration variables for a Fortran compiler are
7847
7731
# suitably defined.  These variables are subsequently used by _LT_CONFIG
7848
7732
# to write the compiler configuration to `libtool'.
7849
7733
m4_defun([_LT_LANG_FC_CONFIG],
7850
 
[AC_LANG_PUSH(Fortran)
7851
 
 
7852
 
if test -z "$FC" || test "X$FC" = "Xno"; then
7853
 
  _lt_disable_FC=yes
7854
 
fi
 
7734
[AC_REQUIRE([_LT_PROG_FC])dnl
 
7735
AC_LANG_PUSH(Fortran)
7855
7736
 
7856
7737
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7857
7738
_LT_TAGVAR(allow_undefined_flag, $1)=
7870
7751
_LT_TAGVAR(module_expsym_cmds, $1)=
7871
7752
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7872
7753
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7873
 
_LT_TAGVAR(reload_flag, $1)=$reload_flag
7874
 
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7875
7754
_LT_TAGVAR(no_undefined_flag, $1)=
7876
7755
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7877
7756
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
8017
7896
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8018
7897
 
8019
7898
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8020
 
_LT_TAGVAR(reload_flag, $1)=$reload_flag
8021
 
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8022
7899
 
8023
7900
if test -n "$compiler"; then
8024
7901
  _LT_COMPILER_NO_RTTI($1)
8380
8257
func_dirname ()
8381
8258
{
8382
8259
  # Extract subdirectory from the argument.
8383
 
  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
 
8260
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
8384
8261
  if test "X$func_dirname_result" = "X${1}"; then
8385
8262
    func_dirname_result="${3}"
8386
8263
  else
8391
8268
# func_basename file
8392
8269
func_basename ()
8393
8270
{
8394
 
  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
 
8271
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
8395
8272
}
8396
8273
 
8397
8274
dnl func_dirname_and_basename
8407
8284
func_stripname ()
8408
8285
{
8409
8286
  case ${2} in
8410
 
    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8411
 
    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
 
8287
    .*) func_stripname_result=`$ECHO "X${3}" \
 
8288
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
8289
    *)  func_stripname_result=`$ECHO "X${3}" \
 
8290
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
8412
8291
  esac
8413
8292
}
8414
8293
 
8419
8298
# func_opt_split
8420
8299
func_opt_split ()
8421
8300
{
8422
 
  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
8423
 
  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
 
8301
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
8302
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
8424
8303
}
8425
8304
 
8426
8305
# func_lo2o object
8427
8306
func_lo2o ()
8428
8307
{
8429
 
  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
 
8308
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
8430
8309
}
8431
8310
 
8432
8311
# func_xform libobj-or-source
8433
8312
func_xform ()
8434
8313
{
8435
 
  func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'`
 
8314
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
8436
8315
}
8437
8316
 
8438
8317
# func_arith arithmetic-term...
8480
8359
 
8481
8360
# Helper functions for option handling.                    -*- Autoconf -*-
8482
8361
#
8483
 
#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
8484
 
#   Inc.
 
8362
#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8485
8363
#   Written by Gary V. Vaughan, 2004
8486
8364
#
8487
8365
# This file is free software; the Free Software Foundation gives
8488
8366
# unlimited permission to copy and/or distribute it, with or without
8489
8367
# modifications, as long as this notice is preserved.
8490
8368
 
8491
 
# serial 7 ltoptions.m4
 
8369
# serial 6 ltoptions.m4
8492
8370
 
8493
8371
# This is to help aclocal find these macros, as it can't see m4_define.
8494
8372
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8603
8481
[enable_win32_dll=yes
8604
8482
 
8605
8483
case $host in
8606
 
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
 
8484
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
8607
8485
  AC_CHECK_TOOL(AS, as, false)
8608
8486
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8609
8487
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
8611
8489
esac
8612
8490
 
8613
8491
test -z "$AS" && AS=as
8614
 
_LT_DECL([], [AS],      [1], [Assembler program])dnl
 
8492
_LT_DECL([], [AS],      [0], [Assembler program])dnl
8615
8493
 
8616
8494
test -z "$DLLTOOL" && DLLTOOL=dlltool
8617
 
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
 
8495
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
8618
8496
 
8619
8497
test -z "$OBJDUMP" && OBJDUMP=objdump
8620
 
_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
 
8498
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
8621
8499
])# win32-dll
8622
8500
 
8623
8501
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8977
8855
 
8978
8856
# Generated from ltversion.in.
8979
8857
 
8980
 
# serial 3175 ltversion.m4
 
8858
# serial 3017 ltversion.m4
8981
8859
# This file is part of GNU Libtool
8982
8860
 
8983
 
m4_define([LT_PACKAGE_VERSION], [2.2.10])
8984
 
m4_define([LT_PACKAGE_REVISION], [1.3175])
 
8861
m4_define([LT_PACKAGE_VERSION], [2.2.6b])
 
8862
m4_define([LT_PACKAGE_REVISION], [1.3017])
8985
8863
 
8986
8864
AC_DEFUN([LTVERSION_VERSION],
8987
 
[macro_version='2.2.10'
8988
 
macro_revision='1.3175'
 
8865
[macro_version='2.2.6b'
 
8866
macro_revision='1.3017'
8989
8867
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8990
8868
_LT_DECL(, macro_revision, 0)
8991
8869
])
8992
8870
 
8993
8871
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
8994
8872
#
8995
 
#   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
 
8873
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
8996
8874
#   Written by Scott James Remnant, 2004.
8997
8875
#
8998
8876
# This file is free software; the Free Software Foundation gives
8999
8877
# unlimited permission to copy and/or distribute it, with or without
9000
8878
# modifications, as long as this notice is preserved.
9001
8879
 
9002
 
# serial 5 lt~obsolete.m4
 
8880
# serial 4 lt~obsolete.m4
9003
8881
 
9004
8882
# These exist entirely to fool aclocal when bootstrapping libtool.
9005
8883
#
9069
8947
m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
9070
8948
m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
9071
8949
m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
 
8950
m4_ifndef([AC_LIBTOOL_RC],              [AC_DEFUN([AC_LIBTOOL_RC])])
9072
8951
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
9073
8952
m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
9074
8953
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
9081
8960
m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
9082
8961
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
9083
8962
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
9084
 
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
9085
 
m4_ifndef([_LT_AC_PROG_CXXCPP],         [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
9086
 
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
9087
 
m4_ifndef([_LT_PROG_ECHO_BACKSLASH],    [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
9088
 
m4_ifndef([_LT_PROG_F77],               [AC_DEFUN([_LT_PROG_F77])])
9089
 
m4_ifndef([_LT_PROG_FC],                [AC_DEFUN([_LT_PROG_FC])])
9090
 
m4_ifndef([_LT_PROG_CXX],               [AC_DEFUN([_LT_PROG_CXX])])
9091
8963
 
9092
 
# nls.m4 serial 5 (gettext-0.18)
9093
 
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
9094
 
dnl Inc.
 
8964
# nls.m4 serial 3 (gettext-0.15)
 
8965
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
9095
8966
dnl This file is free software; the Free Software Foundation
9096
8967
dnl gives unlimited permission to copy and/or distribute it,
9097
8968
dnl with or without modifications, as long as this notice is preserved.
9109
8980
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
9110
8981
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
9111
8982
 
9112
 
AC_PREREQ([2.50])
 
8983
AC_PREREQ(2.50)
9113
8984
 
9114
8985
AC_DEFUN([AM_NLS],
9115
8986
[
9116
8987
  AC_MSG_CHECKING([whether NLS is requested])
9117
8988
  dnl Default is enabled NLS
9118
 
  AC_ARG_ENABLE([nls],
 
8989
  AC_ARG_ENABLE(nls,
9119
8990
    [  --disable-nls           do not use Native Language Support],
9120
8991
    USE_NLS=$enableval, USE_NLS=yes)
9121
 
  AC_MSG_RESULT([$USE_NLS])
9122
 
  AC_SUBST([USE_NLS])
 
8992
  AC_MSG_RESULT($USE_NLS)
 
8993
  AC_SUBST(USE_NLS)
9123
8994
])
9124
8995
 
9125
8996
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
9126
 
# serial 1 (pkg-config-0.24)
9127
8997
9128
8998
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
9129
8999
#
9151
9021
AC_DEFUN([PKG_PROG_PKG_CONFIG],
9152
9022
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
9153
9023
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
9154
 
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
9155
 
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
9156
 
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
9157
 
 
 
9024
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
9158
9025
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9159
9026
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
9160
9027
fi
9167
9034
                AC_MSG_RESULT([no])
9168
9035
                PKG_CONFIG=""
9169
9036
        fi
 
9037
                
9170
9038
fi[]dnl
9171
9039
])# PKG_PROG_PKG_CONFIG
9172
9040
 
9175
9043
# Check to see whether a particular set of modules exists.  Similar
9176
9044
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
9177
9045
#
9178
 
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
9179
 
# only at the first occurence in configure.ac, so if the first place
9180
 
# it's called might be skipped (such as if it is within an "if", you
9181
 
# have to call PKG_CHECK_EXISTS manually
 
9046
#
 
9047
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
 
9048
# this or PKG_CHECK_MODULES is called, or make sure to call
 
9049
# PKG_CHECK_EXISTS manually
9182
9050
# --------------------------------------------------------------
9183
9051
AC_DEFUN([PKG_CHECK_EXISTS],
9184
9052
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
9185
9053
if test -n "$PKG_CONFIG" && \
9186
9054
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
9187
 
  m4_default([$2], [:])
 
9055
  m4_ifval([$2], [$2], [:])
9188
9056
m4_ifvaln([$3], [else
9189
9057
  $3])dnl
9190
9058
fi])
9191
9059
 
 
9060
 
9192
9061
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
9193
9062
# ---------------------------------------------
9194
9063
m4_define([_PKG_CONFIG],
9241
9110
See the pkg-config man page for more details.])
9242
9111
 
9243
9112
if test $pkg_failed = yes; then
9244
 
        AC_MSG_RESULT([no])
9245
9113
        _PKG_SHORT_ERRORS_SUPPORTED
9246
9114
        if test $_pkg_short_errors_supported = yes; then
9247
9115
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
9251
9119
        # Put the nasty error message in config.log where it belongs
9252
9120
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
9253
9121
 
9254
 
        m4_default([$4], [AC_MSG_ERROR(
 
9122
        ifelse([$4], , [AC_MSG_ERROR(dnl
9255
9123
[Package requirements ($2) were not met:
9256
9124
 
9257
9125
$$1_PKG_ERRORS
9259
9127
Consider adjusting the PKG_CONFIG_PATH environment variable if you
9260
9128
installed software in a non-standard prefix.
9261
9129
 
9262
 
_PKG_TEXT])
9263
 
        ])
 
9130
_PKG_TEXT
 
9131
])],
 
9132
                [AC_MSG_RESULT([no])
 
9133
                $4])
9264
9134
elif test $pkg_failed = untried; then
9265
 
        AC_MSG_RESULT([no])
9266
 
        m4_default([$4], [AC_MSG_FAILURE(
 
9135
        ifelse([$4], , [AC_MSG_FAILURE(dnl
9267
9136
[The pkg-config script could not be found or is too old.  Make sure it
9268
9137
is in your PATH or set the PKG_CONFIG environment variable to the full
9269
9138
path to pkg-config.
9270
9139
 
9271
9140
_PKG_TEXT
9272
9141
 
9273
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])
9274
 
        ])
 
9142
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
 
9143
                [$4])
9275
9144
else
9276
9145
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
9277
9146
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
9278
9147
        AC_MSG_RESULT([yes])
9279
 
        $3
 
9148
        ifelse([$3], , :, [$3])
9280
9149
fi[]dnl
9281
9150
])# PKG_CHECK_MODULES
9282
9151
 
9283
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
9284
 
#
9285
 
# This file is free software; the Free Software Foundation
9286
 
# gives unlimited permission to copy and/or distribute it,
9287
 
# with or without modifications, as long as this notice is preserved.
9288
 
 
9289
 
# AM_AUTOMAKE_VERSION(VERSION)
9290
 
# ----------------------------
9291
 
# Automake X.Y traces this macro to ensure aclocal.m4 has been
9292
 
# generated from the m4 files accompanying Automake X.Y.
9293
 
# (This private macro should not be called outside this file.)
9294
 
AC_DEFUN([AM_AUTOMAKE_VERSION],
9295
 
[am__api_version='1.11'
9296
 
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
9297
 
dnl require some minimum version.  Point them to the right macro.
9298
 
m4_if([$1], [1.11.1], [],
9299
 
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
9152
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
 
9153
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
 
9154
#
 
9155
# This file is free software, distributed under the terms of the GNU
 
9156
# General Public License.  As a special exception to the GNU General
 
9157
# Public License, this file may be distributed as part of a program
 
9158
# that contains a configuration script generated by Autoconf, under
 
9159
# the same distribution terms as the rest of that program.
 
9160
#
 
9161
# This file can be copied and used freely without restrictions.  It can
 
9162
# be used in projects which are not available under the GNU Public License
 
9163
# but which still want to provide support for the GNU gettext functionality.
 
9164
#
 
9165
# Macro to add for using GNU gettext.
 
9166
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
 
9167
#
 
9168
# Modified to never use included libintl. 
 
9169
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
 
9170
#
 
9171
# Major rework to remove unused code
 
9172
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
 
9173
#
 
9174
# Added better handling of ALL_LINGUAS from GNU gettext version 
 
9175
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
 
9176
#
 
9177
# Modified to require ngettext
 
9178
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
 
9179
#
 
9180
# We need this here as well, since someone might use autoconf-2.5x
 
9181
# to configure GLib then an older version to configure a package
 
9182
# using AM_GLIB_GNU_GETTEXT
 
9183
AC_PREREQ(2.53)
 
9184
 
 
9185
dnl
 
9186
dnl We go to great lengths to make sure that aclocal won't 
 
9187
dnl try to pull in the installed version of these macros
 
9188
dnl when running aclocal in the glib directory.
 
9189
dnl
 
9190
m4_copy([AC_DEFUN],[glib_DEFUN])
 
9191
m4_copy([AC_REQUIRE],[glib_REQUIRE])
 
9192
dnl
 
9193
dnl At the end, if we're not within glib, we'll define the public
 
9194
dnl definitions in terms of our private definitions.
 
9195
dnl
 
9196
 
 
9197
# GLIB_LC_MESSAGES
 
9198
#--------------------
 
9199
glib_DEFUN([GLIB_LC_MESSAGES],
 
9200
  [AC_CHECK_HEADERS([locale.h])
 
9201
    if test $ac_cv_header_locale_h = yes; then
 
9202
    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
 
9203
      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
 
9204
       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
 
9205
    if test $am_cv_val_LC_MESSAGES = yes; then
 
9206
      AC_DEFINE(HAVE_LC_MESSAGES, 1,
 
9207
        [Define if your <locale.h> file defines LC_MESSAGES.])
 
9208
    fi
 
9209
  fi])
 
9210
 
 
9211
# GLIB_PATH_PROG_WITH_TEST
 
9212
#----------------------------
 
9213
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
 
9214
dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
 
9215
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
 
9216
[# Extract the first word of "$2", so it can be a program name with args.
 
9217
set dummy $2; ac_word=[$]2
 
9218
AC_MSG_CHECKING([for $ac_word])
 
9219
AC_CACHE_VAL(ac_cv_path_$1,
 
9220
[case "[$]$1" in
 
9221
  /*)
 
9222
  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
 
9223
  ;;
 
9224
  *)
 
9225
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
9226
  for ac_dir in ifelse([$5], , $PATH, [$5]); do
 
9227
    test -z "$ac_dir" && ac_dir=.
 
9228
    if test -f $ac_dir/$ac_word; then
 
9229
      if [$3]; then
 
9230
        ac_cv_path_$1="$ac_dir/$ac_word"
 
9231
        break
 
9232
      fi
 
9233
    fi
 
9234
  done
 
9235
  IFS="$ac_save_ifs"
 
9236
dnl If no 4th arg is given, leave the cache variable unset,
 
9237
dnl so AC_PATH_PROGS will keep looking.
 
9238
ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
 
9239
])dnl
 
9240
  ;;
 
9241
esac])dnl
 
9242
$1="$ac_cv_path_$1"
 
9243
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
 
9244
  AC_MSG_RESULT([$]$1)
 
9245
else
 
9246
  AC_MSG_RESULT(no)
 
9247
fi
 
9248
AC_SUBST($1)dnl
9300
9249
])
9301
9250
 
9302
 
# _AM_AUTOCONF_VERSION(VERSION)
9303
 
# -----------------------------
9304
 
# aclocal traces this macro to find the Autoconf version.
9305
 
# This is a private macro too.  Using m4_define simplifies
9306
 
# the logic in aclocal, which can simply ignore this definition.
9307
 
m4_define([_AM_AUTOCONF_VERSION], [])
9308
 
 
9309
 
# AM_SET_CURRENT_AUTOMAKE_VERSION
 
9251
# GLIB_WITH_NLS
 
9252
#-----------------
 
9253
glib_DEFUN([GLIB_WITH_NLS],
 
9254
  dnl NLS is obligatory
 
9255
  [USE_NLS=yes
 
9256
    AC_SUBST(USE_NLS)
 
9257
 
 
9258
    gt_cv_have_gettext=no
 
9259
 
 
9260
    CATOBJEXT=NONE
 
9261
    XGETTEXT=:
 
9262
    INTLLIBS=
 
9263
 
 
9264
    AC_CHECK_HEADER(libintl.h,
 
9265
     [gt_cv_func_dgettext_libintl="no"
 
9266
      libintl_extra_libs=""
 
9267
 
 
9268
      #
 
9269
      # First check in libc
 
9270
      #
 
9271
      AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
 
9272
        [AC_TRY_LINK([
 
9273
#include <libintl.h>
 
9274
],
 
9275
         [return !ngettext ("","", 1)],
 
9276
          gt_cv_func_ngettext_libc=yes,
 
9277
          gt_cv_func_ngettext_libc=no)
 
9278
        ])
 
9279
  
 
9280
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
9281
              AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
 
9282
                [AC_TRY_LINK([
 
9283
#include <libintl.h>
 
9284
],
 
9285
                  [return !dgettext ("","")],
 
9286
                  gt_cv_func_dgettext_libc=yes,
 
9287
                  gt_cv_func_dgettext_libc=no)
 
9288
                ])
 
9289
      fi
 
9290
  
 
9291
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
9292
        AC_CHECK_FUNCS(bind_textdomain_codeset)
 
9293
      fi
 
9294
 
 
9295
      #
 
9296
      # If we don't have everything we want, check in libintl
 
9297
      #
 
9298
      if test "$gt_cv_func_dgettext_libc" != "yes" \
 
9299
         || test "$gt_cv_func_ngettext_libc" != "yes" \
 
9300
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
 
9301
        
 
9302
        AC_CHECK_LIB(intl, bindtextdomain,
 
9303
            [AC_CHECK_LIB(intl, ngettext,
 
9304
                    [AC_CHECK_LIB(intl, dgettext,
 
9305
                                  gt_cv_func_dgettext_libintl=yes)])])
 
9306
 
 
9307
        if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
 
9308
          AC_MSG_CHECKING([if -liconv is needed to use gettext])
 
9309
          AC_MSG_RESULT([])
 
9310
          AC_CHECK_LIB(intl, ngettext,
 
9311
                [AC_CHECK_LIB(intl, dcgettext,
 
9312
                       [gt_cv_func_dgettext_libintl=yes
 
9313
                        libintl_extra_libs=-liconv],
 
9314
                        :,-liconv)],
 
9315
                :,-liconv)
 
9316
        fi
 
9317
 
 
9318
        #
 
9319
        # If we found libintl, then check in it for bind_textdomain_codeset();
 
9320
        # we'll prefer libc if neither have bind_textdomain_codeset(),
 
9321
        # and both have dgettext and ngettext
 
9322
        #
 
9323
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
 
9324
          glib_save_LIBS="$LIBS"
 
9325
          LIBS="$LIBS -lintl $libintl_extra_libs"
 
9326
          unset ac_cv_func_bind_textdomain_codeset
 
9327
          AC_CHECK_FUNCS(bind_textdomain_codeset)
 
9328
          LIBS="$glib_save_LIBS"
 
9329
 
 
9330
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
 
9331
            gt_cv_func_dgettext_libc=no
 
9332
          else
 
9333
            if test "$gt_cv_func_dgettext_libc" = "yes" \
 
9334
                && test "$gt_cv_func_ngettext_libc" = "yes"; then
 
9335
              gt_cv_func_dgettext_libintl=no
 
9336
            fi
 
9337
          fi
 
9338
        fi
 
9339
      fi
 
9340
 
 
9341
      if test "$gt_cv_func_dgettext_libc" = "yes" \
 
9342
        || test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
9343
        gt_cv_have_gettext=yes
 
9344
      fi
 
9345
  
 
9346
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
9347
        INTLLIBS="-lintl $libintl_extra_libs"
 
9348
      fi
 
9349
  
 
9350
      if test "$gt_cv_have_gettext" = "yes"; then
 
9351
        AC_DEFINE(HAVE_GETTEXT,1,
 
9352
          [Define if the GNU gettext() function is already present or preinstalled.])
 
9353
        GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
 
9354
          [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
 
9355
        if test "$MSGFMT" != "no"; then
 
9356
          glib_save_LIBS="$LIBS"
 
9357
          LIBS="$LIBS $INTLLIBS"
 
9358
          AC_CHECK_FUNCS(dcgettext)
 
9359
          MSGFMT_OPTS=
 
9360
          AC_MSG_CHECKING([if msgfmt accepts -c])
 
9361
          GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
 
9362
msgid ""
 
9363
msgstr ""
 
9364
"Content-Type: text/plain; charset=UTF-8\n"
 
9365
"Project-Id-Version: test 1.0\n"
 
9366
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
 
9367
"Last-Translator: test <foo@bar.xx>\n"
 
9368
"Language-Team: C <LL@li.org>\n"
 
9369
"MIME-Version: 1.0\n"
 
9370
"Content-Transfer-Encoding: 8bit\n"
 
9371
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
 
9372
          AC_SUBST(MSGFMT_OPTS)
 
9373
          AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
 
9374
          GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
 
9375
            [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
 
9376
          AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
 
9377
                         return _nl_msg_cat_cntr],
 
9378
            [CATOBJEXT=.gmo 
 
9379
             DATADIRNAME=share],
 
9380
            [case $host in
 
9381
            *-*-solaris*)
 
9382
            dnl On Solaris, if bind_textdomain_codeset is in libc,
 
9383
            dnl GNU format message catalog is always supported,
 
9384
            dnl since both are added to the libc all together.
 
9385
            dnl Hence, we'd like to go with DATADIRNAME=share and
 
9386
            dnl and CATOBJEXT=.gmo in this case.
 
9387
            AC_CHECK_FUNC(bind_textdomain_codeset,
 
9388
              [CATOBJEXT=.gmo 
 
9389
               DATADIRNAME=share],
 
9390
              [CATOBJEXT=.mo
 
9391
               DATADIRNAME=lib])
 
9392
            ;;
 
9393
            *)
 
9394
            CATOBJEXT=.mo
 
9395
            DATADIRNAME=lib
 
9396
            ;;
 
9397
            esac])
 
9398
          LIBS="$glib_save_LIBS"
 
9399
          INSTOBJEXT=.mo
 
9400
        else
 
9401
          gt_cv_have_gettext=no
 
9402
        fi
 
9403
      fi
 
9404
    ])
 
9405
 
 
9406
    if test "$gt_cv_have_gettext" = "yes" ; then
 
9407
      AC_DEFINE(ENABLE_NLS, 1,
 
9408
        [always defined to indicate that i18n is enabled])
 
9409
    fi
 
9410
 
 
9411
    dnl Test whether we really found GNU xgettext.
 
9412
    if test "$XGETTEXT" != ":"; then
 
9413
      dnl If it is not GNU xgettext we define it as : so that the
 
9414
      dnl Makefiles still can work.
 
9415
      if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 
9416
        : ;
 
9417
      else
 
9418
        AC_MSG_RESULT(
 
9419
          [found xgettext program is not GNU xgettext; ignore it])
 
9420
        XGETTEXT=":"
 
9421
      fi
 
9422
    fi
 
9423
 
 
9424
    # We need to process the po/ directory.
 
9425
    POSUB=po
 
9426
 
 
9427
    AC_OUTPUT_COMMANDS(
 
9428
      [case "$CONFIG_FILES" in *po/Makefile.in*)
 
9429
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 
9430
      esac])
 
9431
 
 
9432
    dnl These rules are solely for the distribution goal.  While doing this
 
9433
    dnl we only have to keep exactly one list of the available catalogs
 
9434
    dnl in configure.ac.
 
9435
    for lang in $ALL_LINGUAS; do
 
9436
      GMOFILES="$GMOFILES $lang.gmo"
 
9437
      POFILES="$POFILES $lang.po"
 
9438
    done
 
9439
 
 
9440
    dnl Make all variables we use known to autoconf.
 
9441
    AC_SUBST(CATALOGS)
 
9442
    AC_SUBST(CATOBJEXT)
 
9443
    AC_SUBST(DATADIRNAME)
 
9444
    AC_SUBST(GMOFILES)
 
9445
    AC_SUBST(INSTOBJEXT)
 
9446
    AC_SUBST(INTLLIBS)
 
9447
    AC_SUBST(PO_IN_DATADIR_TRUE)
 
9448
    AC_SUBST(PO_IN_DATADIR_FALSE)
 
9449
    AC_SUBST(POFILES)
 
9450
    AC_SUBST(POSUB)
 
9451
  ])
 
9452
 
 
9453
# AM_GLIB_GNU_GETTEXT
 
9454
# -------------------
 
9455
# Do checks necessary for use of gettext. If a suitable implementation 
 
9456
# of gettext is found in either in libintl or in the C library,
 
9457
# it will set INTLLIBS to the libraries needed for use of gettext
 
9458
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
 
9459
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
 
9460
# on various variables needed by the Makefile.in.in installed by 
 
9461
# glib-gettextize.
 
9462
dnl
 
9463
glib_DEFUN([GLIB_GNU_GETTEXT],
 
9464
  [AC_REQUIRE([AC_PROG_CC])dnl
 
9465
   AC_REQUIRE([AC_HEADER_STDC])dnl
 
9466
   
 
9467
   GLIB_LC_MESSAGES
 
9468
   GLIB_WITH_NLS
 
9469
 
 
9470
   if test "$gt_cv_have_gettext" = "yes"; then
 
9471
     if test "x$ALL_LINGUAS" = "x"; then
 
9472
       LINGUAS=
 
9473
     else
 
9474
       AC_MSG_CHECKING(for catalogs to be installed)
 
9475
       NEW_LINGUAS=
 
9476
       for presentlang in $ALL_LINGUAS; do
 
9477
         useit=no
 
9478
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
 
9479
           desiredlanguages="$LINGUAS"
 
9480
         else
 
9481
           desiredlanguages="$ALL_LINGUAS"
 
9482
         fi
 
9483
         for desiredlang in $desiredlanguages; do
 
9484
           # Use the presentlang catalog if desiredlang is
 
9485
           #   a. equal to presentlang, or
 
9486
           #   b. a variant of presentlang (because in this case,
 
9487
           #      presentlang can be used as a fallback for messages
 
9488
           #      which are not translated in the desiredlang catalog).
 
9489
           case "$desiredlang" in
 
9490
             "$presentlang"*) useit=yes;;
 
9491
           esac
 
9492
         done
 
9493
         if test $useit = yes; then
 
9494
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
 
9495
         fi
 
9496
       done
 
9497
       LINGUAS=$NEW_LINGUAS
 
9498
       AC_MSG_RESULT($LINGUAS)
 
9499
     fi
 
9500
 
 
9501
     dnl Construct list of names of catalog files to be constructed.
 
9502
     if test -n "$LINGUAS"; then
 
9503
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
 
9504
     fi
 
9505
   fi
 
9506
 
 
9507
   dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
 
9508
   dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
 
9509
   dnl Try to locate is.
 
9510
   MKINSTALLDIRS=
 
9511
   if test -n "$ac_aux_dir"; then
 
9512
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 
9513
   fi
 
9514
   if test -z "$MKINSTALLDIRS"; then
 
9515
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 
9516
   fi
 
9517
   AC_SUBST(MKINSTALLDIRS)
 
9518
 
 
9519
   dnl Generate list of files to be processed by xgettext which will
 
9520
   dnl be included in po/Makefile.
 
9521
   test -d po || mkdir po
 
9522
   if test "x$srcdir" != "x."; then
 
9523
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
 
9524
       posrcprefix="$srcdir/"
 
9525
     else
 
9526
       posrcprefix="../$srcdir/"
 
9527
     fi
 
9528
   else
 
9529
     posrcprefix="../"
 
9530
   fi
 
9531
   rm -f po/POTFILES
 
9532
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
 
9533
        < $srcdir/po/POTFILES.in > po/POTFILES
 
9534
  ])
 
9535
 
 
9536
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
9310
9537
# -------------------------------
9311
 
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
9312
 
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
9313
 
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
9314
 
[AM_AUTOMAKE_VERSION([1.11.1])dnl
9315
 
m4_ifndef([AC_AUTOCONF_VERSION],
9316
 
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
9317
 
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
9318
 
 
9319
 
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
9320
 
 
9321
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
9322
 
#
9323
 
# This file is free software; the Free Software Foundation
9324
 
# gives unlimited permission to copy and/or distribute it,
9325
 
# with or without modifications, as long as this notice is preserved.
9326
 
 
9327
 
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
9328
 
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
9329
 
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
9330
 
#
9331
 
# Of course, Automake must honor this variable whenever it calls a
9332
 
# tool from the auxiliary directory.  The problem is that $srcdir (and
9333
 
# therefore $ac_aux_dir as well) can be either absolute or relative,
9334
 
# depending on how configure is run.  This is pretty annoying, since
9335
 
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
9336
 
# source directory, any form will work fine, but in subdirectories a
9337
 
# relative path needs to be adjusted first.
9338
 
#
9339
 
# $ac_aux_dir/missing
9340
 
#    fails when called from a subdirectory if $ac_aux_dir is relative
9341
 
# $top_srcdir/$ac_aux_dir/missing
9342
 
#    fails if $ac_aux_dir is absolute,
9343
 
#    fails when called from a subdirectory in a VPATH build with
9344
 
#          a relative $ac_aux_dir
9345
 
#
9346
 
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
9347
 
# are both prefixed by $srcdir.  In an in-source build this is usually
9348
 
# harmless because $srcdir is `.', but things will broke when you
9349
 
# start a VPATH build or use an absolute $srcdir.
9350
 
#
9351
 
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
9352
 
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
9353
 
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
9354
 
# and then we would define $MISSING as
9355
 
#   MISSING="\${SHELL} $am_aux_dir/missing"
9356
 
# This will work as long as MISSING is not called from configure, because
9357
 
# unfortunately $(top_srcdir) has no meaning in configure.
9358
 
# However there are other variables, like CC, which are often used in
9359
 
# configure, and could therefore not use this "fixed" $ac_aux_dir.
9360
 
#
9361
 
# Another solution, used here, is to always expand $ac_aux_dir to an
9362
 
# absolute PATH.  The drawback is that using absolute paths prevent a
9363
 
# configured tree to be moved without reconfiguration.
9364
 
 
9365
 
AC_DEFUN([AM_AUX_DIR_EXPAND],
9366
 
[dnl Rely on autoconf to set up CDPATH properly.
9367
 
AC_PREREQ([2.50])dnl
9368
 
# expand $ac_aux_dir to an absolute path
9369
 
am_aux_dir=`cd $ac_aux_dir && pwd`
9370
 
])
9371
 
 
9372
 
# AM_CONDITIONAL                                            -*- Autoconf -*-
9373
 
 
9374
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
9375
 
# Free Software Foundation, Inc.
9376
 
#
9377
 
# This file is free software; the Free Software Foundation
9378
 
# gives unlimited permission to copy and/or distribute it,
9379
 
# with or without modifications, as long as this notice is preserved.
9380
 
 
9381
 
# serial 9
9382
 
 
9383
 
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
9384
 
# -------------------------------------
9385
 
# Define a conditional.
9386
 
AC_DEFUN([AM_CONDITIONAL],
9387
 
[AC_PREREQ(2.52)dnl
9388
 
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
9389
 
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
9390
 
AC_SUBST([$1_TRUE])dnl
9391
 
AC_SUBST([$1_FALSE])dnl
9392
 
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
9393
 
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
9394
 
m4_define([_AM_COND_VALUE_$1], [$2])dnl
9395
 
if $2; then
9396
 
  $1_TRUE=
9397
 
  $1_FALSE='#'
 
9538
# Define VARIABLE to the location where catalog files will
 
9539
# be installed by po/Makefile.
 
9540
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
 
9541
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
 
9542
glib_save_prefix="$prefix"
 
9543
glib_save_exec_prefix="$exec_prefix"
 
9544
glib_save_datarootdir="$datarootdir"
 
9545
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
9546
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
 
9547
datarootdir=`eval echo "${datarootdir}"`
 
9548
if test "x$CATOBJEXT" = "x.mo" ; then
 
9549
  localedir=`eval echo "${libdir}/locale"`
9398
9550
else
9399
 
  $1_TRUE='#'
9400
 
  $1_FALSE=
 
9551
  localedir=`eval echo "${datadir}/locale"`
9401
9552
fi
9402
 
AC_CONFIG_COMMANDS_PRE(
9403
 
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
9404
 
  AC_MSG_ERROR([[conditional "$1" was never defined.
9405
 
Usually this means the macro was only invoked conditionally.]])
9406
 
fi])])
9407
 
 
9408
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
9409
 
# Free Software Foundation, Inc.
9410
 
#
9411
 
# This file is free software; the Free Software Foundation
9412
 
# gives unlimited permission to copy and/or distribute it,
9413
 
# with or without modifications, as long as this notice is preserved.
9414
 
 
9415
 
# serial 10
9416
 
 
9417
 
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
9418
 
# written in clear, in which case automake, when reading aclocal.m4,
9419
 
# will think it sees a *use*, and therefore will trigger all it's
9420
 
# C support machinery.  Also note that it means that autoscan, seeing
9421
 
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
9422
 
 
9423
 
 
9424
 
# _AM_DEPENDENCIES(NAME)
9425
 
# ----------------------
9426
 
# See how the compiler implements dependency checking.
9427
 
# NAME is "CC", "CXX", "GCJ", or "OBJC".
9428
 
# We try a few techniques and use that to set a single cache variable.
9429
 
#
9430
 
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
9431
 
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
9432
 
# dependency, and given that the user is not expected to run this macro,
9433
 
# just rely on AC_PROG_CC.
9434
 
AC_DEFUN([_AM_DEPENDENCIES],
9435
 
[AC_REQUIRE([AM_SET_DEPDIR])dnl
9436
 
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
9437
 
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
9438
 
AC_REQUIRE([AM_DEP_TRACK])dnl
9439
 
 
9440
 
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
9441
 
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
9442
 
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
9443
 
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
9444
 
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
9445
 
                   [depcc="$$1"   am_compiler_list=])
9446
 
 
9447
 
AC_CACHE_CHECK([dependency style of $depcc],
9448
 
               [am_cv_$1_dependencies_compiler_type],
9449
 
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9450
 
  # We make a subdir and do the tests there.  Otherwise we can end up
9451
 
  # making bogus files that we don't know about and never remove.  For
9452
 
  # instance it was reported that on HP-UX the gcc test will end up
9453
 
  # making a dummy file named `D' -- because `-MD' means `put the output
9454
 
  # in D'.
9455
 
  mkdir conftest.dir
9456
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
9457
 
  # using a relative directory.
9458
 
  cp "$am_depcomp" conftest.dir
9459
 
  cd conftest.dir
9460
 
  # We will build objects and dependencies in a subdirectory because
9461
 
  # it helps to detect inapplicable dependency modes.  For instance
9462
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
9463
 
  # side effect of compilation, but ICC will put the dependencies in
9464
 
  # the current directory while Tru64 will put them in the object
9465
 
  # directory.
9466
 
  mkdir sub
9467
 
 
9468
 
  am_cv_$1_dependencies_compiler_type=none
9469
 
  if test "$am_compiler_list" = ""; then
9470
 
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
 
9553
prefix="$glib_save_prefix"
 
9554
exec_prefix="$glib_save_exec_prefix"
 
9555
datarootdir="$glib_save_datarootdir"
 
9556
AC_DEFINE_UNQUOTED($1, "$localedir",
 
9557
  [Define the location where the catalogs will be installed])
 
9558
])
 
9559
 
 
9560
dnl
 
9561
dnl Now the definitions that aclocal will find
 
9562
dnl
 
9563
ifdef(glib_configure_ac,[],[
 
9564
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
 
9565
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
 
9566
])dnl
 
9567
 
 
9568
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
 
9569
 
9570
# Create a temporary file with TEST-FILE as its contents and pass the
 
9571
# file name to PROGRAM.  Perform ACTION-IF-PASS if PROGRAM exits with
 
9572
# 0 and perform ACTION-IF-FAIL for any other exit status.
 
9573
AC_DEFUN([GLIB_RUN_PROG],
 
9574
[cat >conftest.foo <<_ACEOF
 
9575
$2
 
9576
_ACEOF
 
9577
if AC_RUN_LOG([$1 conftest.foo]); then
 
9578
  m4_ifval([$3], [$3], [:])
 
9579
m4_ifvaln([$4], [else $4])dnl
 
9580
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
 
9581
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
 
9582
fi])
 
9583
 
 
9584
 
 
9585
# gnome-common.m4
 
9586
#
 
9587
# serial 3
 
9588
 
9589
 
 
9590
dnl GNOME_COMMON_INIT
 
9591
 
 
9592
AU_DEFUN([GNOME_COMMON_INIT],
 
9593
[
 
9594
  dnl this macro should come after AC_CONFIG_MACRO_DIR
 
9595
  AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
 
9596
 
 
9597
  dnl ensure that when the Automake generated makefile calls aclocal,
 
9598
  dnl it honours the $ACLOCAL_FLAGS environment variable
 
9599
  ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
 
9600
  if test -n "$ac_macro_dir"; then
 
9601
    ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
9471
9602
  fi
9472
 
  am__universal=false
9473
 
  m4_case([$1], [CC],
9474
 
    [case " $depcc " in #(
9475
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
9476
 
     esac],
9477
 
    [CXX],
9478
 
    [case " $depcc " in #(
9479
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
9480
 
     esac])
9481
 
 
9482
 
  for depmode in $am_compiler_list; do
9483
 
    # Setup a source with many dependencies, because some compilers
9484
 
    # like to wrap large dependency lists on column 80 (with \), and
9485
 
    # we should not choose a depcomp mode which is confused by this.
9486
 
    #
9487
 
    # We need to recreate these files for each test, as the compiler may
9488
 
    # overwrite some of them when testing with obscure command lines.
9489
 
    # This happens at least with the AIX C compiler.
9490
 
    : > sub/conftest.c
9491
 
    for i in 1 2 3 4 5 6; do
9492
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
9493
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9494
 
      # Solaris 8's {/usr,}/bin/sh.
9495
 
      touch sub/conftst$i.h
9496
 
    done
9497
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9498
 
 
9499
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
9500
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
9501
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
9502
 
    # versions had trouble with output in subdirs
9503
 
    am__obj=sub/conftest.${OBJEXT-o}
9504
 
    am__minus_obj="-o $am__obj"
9505
 
    case $depmode in
9506
 
    gcc)
9507
 
      # This depmode causes a compiler race in universal mode.
9508
 
      test "$am__universal" = false || continue
9509
 
      ;;
9510
 
    nosideeffect)
9511
 
      # after this tag, mechanisms are not by side-effect, so they'll
9512
 
      # only be used when explicitly requested
9513
 
      if test "x$enable_dependency_tracking" = xyes; then
9514
 
        continue
9515
 
      else
9516
 
        break
9517
 
      fi
9518
 
      ;;
9519
 
    msvisualcpp | msvcmsys)
9520
 
      # This compiler won't grok `-c -o', but also, the minuso test has
9521
 
      # not run yet.  These depmodes are late enough in the game, and
9522
 
      # so weak that their functioning should not be impacted.
9523
 
      am__obj=conftest.${OBJEXT-o}
9524
 
      am__minus_obj=
9525
 
      ;;
9526
 
    none) break ;;
 
9603
 
 
9604
  AC_SUBST([ACLOCAL_AMFLAGS])
 
9605
],
 
9606
[[$0: This macro is deprecated. You should set put "ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}"
 
9607
in your top-level Makefile.am, instead, where "m4" is the macro directory set
 
9608
with AC_CONFIG_MACRO_DIR() in your configure.ac]])
 
9609
 
 
9610
AC_DEFUN([GNOME_DEBUG_CHECK],
 
9611
[
 
9612
        AC_ARG_ENABLE([debug],
 
9613
                      AC_HELP_STRING([--enable-debug],
 
9614
                                     [turn on debugging]),,
 
9615
                      [enable_debug=no])
 
9616
 
 
9617
        if test x$enable_debug = xyes ; then
 
9618
            AC_DEFINE(GNOME_ENABLE_DEBUG, 1,
 
9619
                [Enable additional debugging at the expense of performance and size])
 
9620
        fi
 
9621
])
 
9622
 
 
9623
dnl GNOME_MAINTAINER_MODE_DEFINES ()
 
9624
dnl define DISABLE_DEPRECATED
 
9625
dnl
 
9626
AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
 
9627
[
 
9628
        AC_REQUIRE([AM_MAINTAINER_MODE])
 
9629
 
 
9630
        DISABLE_DEPRECATED=""
 
9631
        if test $USE_MAINTAINER_MODE = yes; then
 
9632
                DOMAINS="G ATK PANGO GDK GDK_PIXBUF GTK GCONF BONOBO BONOBO_UI GNOME LIBGLADE VTE GNOME_VFS WNCK LIBSOUP"
 
9633
                for DOMAIN in $DOMAINS; do
 
9634
                       DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES"
 
9635
                done
 
9636
        fi
 
9637
 
 
9638
        AC_SUBST(DISABLE_DEPRECATED)
 
9639
])
 
9640
 
 
9641
dnl GNOME_COMPILE_WARNINGS
 
9642
dnl Turn on many useful compiler warnings
 
9643
dnl For now, only works on GCC
 
9644
AC_DEFUN([GNOME_COMPILE_WARNINGS],[
 
9645
    dnl ******************************
 
9646
    dnl More compiler warnings
 
9647
    dnl ******************************
 
9648
 
 
9649
    AC_ARG_ENABLE(compile-warnings, 
 
9650
                  AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
 
9651
                                 [Turn on compiler warnings]),,
 
9652
                  [enable_compile_warnings="m4_default([$1],[yes])"])
 
9653
 
 
9654
    warnCFLAGS=
 
9655
    if test "x$GCC" != xyes; then
 
9656
        enable_compile_warnings=no
 
9657
    fi
 
9658
 
 
9659
    warning_flags=
 
9660
    realsave_CFLAGS="$CFLAGS"
 
9661
 
 
9662
    case "$enable_compile_warnings" in
 
9663
    no)
 
9664
        warning_flags=
 
9665
        ;;
 
9666
    minimum)
 
9667
        warning_flags="-Wall"
 
9668
        ;;
 
9669
    yes)
 
9670
        warning_flags="-Wall -Wmissing-prototypes"
 
9671
        ;;
 
9672
    maximum|error)
 
9673
        warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
 
9674
        CFLAGS="$warning_flags $CFLAGS"
 
9675
        for option in -Wno-sign-compare; do
 
9676
                SAVE_CFLAGS="$CFLAGS"
 
9677
                CFLAGS="$CFLAGS $option"
 
9678
                AC_MSG_CHECKING([whether gcc understands $option])
 
9679
                AC_TRY_COMPILE([], [],
 
9680
                        has_option=yes,
 
9681
                        has_option=no,)
 
9682
                CFLAGS="$SAVE_CFLAGS"
 
9683
                AC_MSG_RESULT($has_option)
 
9684
                if test $has_option = yes; then
 
9685
                  warning_flags="$warning_flags $option"
 
9686
                fi
 
9687
                unset has_option
 
9688
                unset SAVE_CFLAGS
 
9689
        done
 
9690
        unset option
 
9691
        if test "$enable_compile_warnings" = "error" ; then
 
9692
            warning_flags="$warning_flags -Werror"
 
9693
        fi
 
9694
        ;;
 
9695
    *)
 
9696
        AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
 
9697
        ;;
9527
9698
    esac
9528
 
    if depmode=$depmode \
9529
 
       source=sub/conftest.c object=$am__obj \
9530
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9531
 
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9532
 
         >/dev/null 2>conftest.err &&
9533
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9534
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9535
 
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9536
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9537
 
      # icc doesn't choke on unknown options, it will just issue warnings
9538
 
      # or remarks (even with -Werror).  So we grep stderr for any message
9539
 
      # that says an option was ignored or not supported.
9540
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
9541
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
9542
 
      # The diagnosis changed in icc 8.0:
9543
 
      #   icc: Command line remark: option '-MP' not supported
9544
 
      if (grep 'ignoring option' conftest.err ||
9545
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9546
 
        am_cv_$1_dependencies_compiler_type=$depmode
9547
 
        break
 
9699
    CFLAGS="$realsave_CFLAGS"
 
9700
    AC_MSG_CHECKING(what warning flags to pass to the C compiler)
 
9701
    AC_MSG_RESULT($warning_flags)
 
9702
 
 
9703
    AC_ARG_ENABLE(iso-c,
 
9704
                  AC_HELP_STRING([--enable-iso-c],
 
9705
                                 [Try to warn if code is not ISO C ]),,
 
9706
                  [enable_iso_c=no])
 
9707
 
 
9708
    AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
 
9709
    complCFLAGS=
 
9710
    if test "x$enable_iso_c" != "xno"; then
 
9711
        if test "x$GCC" = "xyes"; then
 
9712
        case " $CFLAGS " in
 
9713
            *[\ \       ]-ansi[\ \      ]*) ;;
 
9714
            *) complCFLAGS="$complCFLAGS -ansi" ;;
 
9715
        esac
 
9716
        case " $CFLAGS " in
 
9717
            *[\ \       ]-pedantic[\ \  ]*) ;;
 
9718
            *) complCFLAGS="$complCFLAGS -pedantic" ;;
 
9719
        esac
 
9720
        fi
 
9721
    fi
 
9722
    AC_MSG_RESULT($complCFLAGS)
 
9723
 
 
9724
    WARN_CFLAGS="$warning_flags $complCFLAGS"
 
9725
    AC_SUBST(WARN_CFLAGS)
 
9726
])
 
9727
 
 
9728
dnl For C++, do basically the same thing.
 
9729
 
 
9730
AC_DEFUN([GNOME_CXX_WARNINGS],[
 
9731
  AC_ARG_ENABLE(cxx-warnings,
 
9732
                AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
 
9733
                               [Turn on compiler warnings.]),,
 
9734
                [enable_cxx_warnings="m4_default([$1],[minimum])"])
 
9735
 
 
9736
  AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
 
9737
  warnCXXFLAGS=
 
9738
  if test "x$GXX" != xyes; then
 
9739
    enable_cxx_warnings=no
 
9740
  fi
 
9741
  if test "x$enable_cxx_warnings" != "xno"; then
 
9742
    if test "x$GXX" = "xyes"; then
 
9743
      case " $CXXFLAGS " in
 
9744
      *[\ \     ]-Wall[\ \      ]*) ;;
 
9745
      *) warnCXXFLAGS="-Wall -Wno-unused" ;;
 
9746
      esac
 
9747
 
 
9748
      ## -W is not all that useful.  And it cannot be controlled
 
9749
      ## with individual -Wno-xxx flags, unlike -Wall
 
9750
      if test "x$enable_cxx_warnings" = "xyes"; then
 
9751
        warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
9548
9752
      fi
9549
9753
    fi
9550
 
  done
9551
 
 
9552
 
  cd ..
9553
 
  rm -rf conftest.dir
9554
 
else
9555
 
  am_cv_$1_dependencies_compiler_type=none
9556
 
fi
9557
 
])
9558
 
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
9559
 
AM_CONDITIONAL([am__fastdep$1], [
9560
 
  test "x$enable_dependency_tracking" != xno \
9561
 
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
9562
 
])
9563
 
 
9564
 
 
9565
 
# AM_SET_DEPDIR
9566
 
# -------------
9567
 
# Choose a directory name for dependency files.
9568
 
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
9569
 
AC_DEFUN([AM_SET_DEPDIR],
9570
 
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9571
 
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
9572
 
])
9573
 
 
9574
 
 
9575
 
# AM_DEP_TRACK
9576
 
# ------------
9577
 
AC_DEFUN([AM_DEP_TRACK],
9578
 
[AC_ARG_ENABLE(dependency-tracking,
9579
 
[  --disable-dependency-tracking  speeds up one-time build
9580
 
  --enable-dependency-tracking   do not reject slow dependency extractors])
9581
 
if test "x$enable_dependency_tracking" != xno; then
9582
 
  am_depcomp="$ac_aux_dir/depcomp"
9583
 
  AMDEPBACKSLASH='\'
9584
 
fi
9585
 
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
9586
 
AC_SUBST([AMDEPBACKSLASH])dnl
9587
 
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
9588
 
])
9589
 
 
9590
 
# Generate code to set up dependency tracking.              -*- Autoconf -*-
9591
 
 
9592
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9593
 
# Free Software Foundation, Inc.
9594
 
#
9595
 
# This file is free software; the Free Software Foundation
9596
 
# gives unlimited permission to copy and/or distribute it,
9597
 
# with or without modifications, as long as this notice is preserved.
9598
 
 
9599
 
#serial 5
9600
 
 
9601
 
# _AM_OUTPUT_DEPENDENCY_COMMANDS
9602
 
# ------------------------------
9603
 
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9604
 
[{
9605
 
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
9606
 
  # are listed without --file.  Let's play safe and only enable the eval
9607
 
  # if we detect the quoting.
9608
 
  case $CONFIG_FILES in
9609
 
  *\'*) eval set x "$CONFIG_FILES" ;;
9610
 
  *)   set x $CONFIG_FILES ;;
9611
 
  esac
9612
 
  shift
9613
 
  for mf
9614
 
  do
9615
 
    # Strip MF so we end up with the name of the file.
9616
 
    mf=`echo "$mf" | sed -e 's/:.*$//'`
9617
 
    # Check whether this is an Automake generated Makefile or not.
9618
 
    # We used to match only the files named `Makefile.in', but
9619
 
    # some people rename them; so instead we look at the file content.
9620
 
    # Grep'ing the first line is not enough: some people post-process
9621
 
    # each Makefile.in and add a new line on top of each file to say so.
9622
 
    # Grep'ing the whole file is not good either: AIX grep has a line
9623
 
    # limit of 2048, but all sed's we know have understand at least 4000.
9624
 
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9625
 
      dirpart=`AS_DIRNAME("$mf")`
9626
 
    else
9627
 
      continue
9628
 
    fi
9629
 
    # Extract the definition of DEPDIR, am__include, and am__quote
9630
 
    # from the Makefile without running `make'.
9631
 
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9632
 
    test -z "$DEPDIR" && continue
9633
 
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
9634
 
    test -z "am__include" && continue
9635
 
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9636
 
    # When using ansi2knr, U may be empty or an underscore; expand it
9637
 
    U=`sed -n 's/^U = //p' < "$mf"`
9638
 
    # Find all dependency output files, they are included files with
9639
 
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
9640
 
    # simplest approach to changing $(DEPDIR) to its actual value in the
9641
 
    # expansion.
9642
 
    for file in `sed -n "
9643
 
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9644
 
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9645
 
      # Make sure the directory exists.
9646
 
      test -f "$dirpart/$file" && continue
9647
 
      fdir=`AS_DIRNAME(["$file"])`
9648
 
      AS_MKDIR_P([$dirpart/$fdir])
9649
 
      # echo "creating $dirpart/$file"
9650
 
      echo '# dummy' > "$dirpart/$file"
9651
 
    done
9652
 
  done
9653
 
}
9654
 
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
9655
 
 
9656
 
 
9657
 
# AM_OUTPUT_DEPENDENCY_COMMANDS
9658
 
# -----------------------------
9659
 
# This macro should only be invoked once -- use via AC_REQUIRE.
9660
 
#
9661
 
# This code is only required when automatic dependency tracking
9662
 
# is enabled.  FIXME.  This creates each `.P' file that we will
9663
 
# need in order to bootstrap the dependency handling code.
9664
 
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
9665
 
[AC_CONFIG_COMMANDS([depfiles],
9666
 
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
9667
 
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
9668
 
])
9669
 
 
9670
 
# Do all the work for Automake.                             -*- Autoconf -*-
9671
 
 
9672
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
9673
 
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
9674
 
#
9675
 
# This file is free software; the Free Software Foundation
9676
 
# gives unlimited permission to copy and/or distribute it,
9677
 
# with or without modifications, as long as this notice is preserved.
9678
 
 
9679
 
# serial 16
9680
 
 
9681
 
# This macro actually does too much.  Some checks are only needed if
9682
 
# your package does certain things.  But this isn't really a big deal.
9683
 
 
9684
 
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
9685
 
# AM_INIT_AUTOMAKE([OPTIONS])
9686
 
# -----------------------------------------------
9687
 
# The call with PACKAGE and VERSION arguments is the old style
9688
 
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
9689
 
# and VERSION should now be passed to AC_INIT and removed from
9690
 
# the call to AM_INIT_AUTOMAKE.
9691
 
# We support both call styles for the transition.  After
9692
 
# the next Automake release, Autoconf can make the AC_INIT
9693
 
# arguments mandatory, and then we can depend on a new Autoconf
9694
 
# release and drop the old call support.
9695
 
AC_DEFUN([AM_INIT_AUTOMAKE],
9696
 
[AC_PREREQ([2.62])dnl
9697
 
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
9698
 
dnl the ones we care about.
9699
 
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9700
 
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
9701
 
AC_REQUIRE([AC_PROG_INSTALL])dnl
9702
 
if test "`cd $srcdir && pwd`" != "`pwd`"; then
9703
 
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9704
 
  # is not polluted with repeated "-I."
9705
 
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
9706
 
  # test to see if srcdir already configured
9707
 
  if test -f $srcdir/config.status; then
9708
 
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
9709
 
  fi
9710
 
fi
9711
 
 
9712
 
# test whether we have cygpath
9713
 
if test -z "$CYGPATH_W"; then
9714
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
9715
 
    CYGPATH_W='cygpath -w'
9716
 
  else
9717
 
    CYGPATH_W=echo
9718
 
  fi
9719
 
fi
9720
 
AC_SUBST([CYGPATH_W])
9721
 
 
9722
 
# Define the identity of the package.
9723
 
dnl Distinguish between old-style and new-style calls.
9724
 
m4_ifval([$2],
9725
 
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9726
 
 AC_SUBST([PACKAGE], [$1])dnl
9727
 
 AC_SUBST([VERSION], [$2])],
9728
 
[_AM_SET_OPTIONS([$1])dnl
9729
 
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
9730
 
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
9731
 
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
9732
 
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
9733
 
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
9734
 
 
9735
 
_AM_IF_OPTION([no-define],,
9736
 
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
9737
 
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
9738
 
 
9739
 
# Some tools Automake needs.
9740
 
AC_REQUIRE([AM_SANITY_CHECK])dnl
9741
 
AC_REQUIRE([AC_ARG_PROGRAM])dnl
9742
 
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
9743
 
AM_MISSING_PROG(AUTOCONF, autoconf)
9744
 
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
9745
 
AM_MISSING_PROG(AUTOHEADER, autoheader)
9746
 
AM_MISSING_PROG(MAKEINFO, makeinfo)
9747
 
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9748
 
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
9749
 
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
9750
 
# We need awk for the "check" target.  The system "awk" is bad on
9751
 
# some platforms.
9752
 
AC_REQUIRE([AC_PROG_AWK])dnl
9753
 
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
9754
 
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9755
 
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
9756
 
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
9757
 
                             [_AM_PROG_TAR([v7])])])
9758
 
_AM_IF_OPTION([no-dependencies],,
9759
 
[AC_PROVIDE_IFELSE([AC_PROG_CC],
9760
 
                  [_AM_DEPENDENCIES(CC)],
9761
 
                  [define([AC_PROG_CC],
9762
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
9763
 
AC_PROVIDE_IFELSE([AC_PROG_CXX],
9764
 
                  [_AM_DEPENDENCIES(CXX)],
9765
 
                  [define([AC_PROG_CXX],
9766
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
9767
 
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
9768
 
                  [_AM_DEPENDENCIES(OBJC)],
9769
 
                  [define([AC_PROG_OBJC],
9770
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
9771
 
])
9772
 
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
9773
 
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
9774
 
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
9775
 
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
9776
 
AC_CONFIG_COMMANDS_PRE(dnl
9777
 
[m4_provide_if([_AM_COMPILER_EXEEXT],
9778
 
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
9779
 
])
9780
 
 
9781
 
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
9782
 
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
9783
 
dnl mangled by Autoconf and run in a shell conditional statement.
9784
 
m4_define([_AC_COMPILER_EXEEXT],
9785
 
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
9786
 
 
9787
 
 
9788
 
# When config.status generates a header, we must update the stamp-h file.
9789
 
# This file resides in the same directory as the config header
9790
 
# that is generated.  The stamp files are numbered to have different names.
9791
 
 
9792
 
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
9793
 
# loop where config.status creates the headers, so we can generate
9794
 
# our stamp files there.
9795
 
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
9796
 
[# Compute $1's index in $config_headers.
9797
 
_am_arg=$1
9798
 
_am_stamp_count=1
9799
 
for _am_header in $config_headers :; do
9800
 
  case $_am_header in
9801
 
    $_am_arg | $_am_arg:* )
9802
 
      break ;;
9803
 
    * )
9804
 
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9805
 
  esac
9806
 
done
9807
 
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
9808
 
 
9809
 
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
9810
 
#
9811
 
# This file is free software; the Free Software Foundation
9812
 
# gives unlimited permission to copy and/or distribute it,
9813
 
# with or without modifications, as long as this notice is preserved.
9814
 
 
9815
 
# AM_PROG_INSTALL_SH
9816
 
# ------------------
9817
 
# Define $install_sh.
9818
 
AC_DEFUN([AM_PROG_INSTALL_SH],
9819
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9820
 
if test x"${install_sh}" != xset; then
9821
 
  case $am_aux_dir in
9822
 
  *\ * | *\     *)
9823
 
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
9824
 
  *)
9825
 
    install_sh="\${SHELL} $am_aux_dir/install-sh"
9826
 
  esac
9827
 
fi
9828
 
AC_SUBST(install_sh)])
9829
 
 
9830
 
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
9831
 
#
9832
 
# This file is free software; the Free Software Foundation
9833
 
# gives unlimited permission to copy and/or distribute it,
9834
 
# with or without modifications, as long as this notice is preserved.
9835
 
 
9836
 
# serial 2
9837
 
 
9838
 
# Check whether the underlying file-system supports filenames
9839
 
# with a leading dot.  For instance MS-DOS doesn't.
9840
 
AC_DEFUN([AM_SET_LEADING_DOT],
9841
 
[rm -rf .tst 2>/dev/null
9842
 
mkdir .tst 2>/dev/null
9843
 
if test -d .tst; then
9844
 
  am__leading_dot=.
9845
 
else
9846
 
  am__leading_dot=_
9847
 
fi
9848
 
rmdir .tst 2>/dev/null
9849
 
AC_SUBST([am__leading_dot])])
9850
 
 
9851
 
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
9852
 
# From Jim Meyering
9853
 
 
9854
 
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9855
 
# Free Software Foundation, Inc.
9856
 
#
9857
 
# This file is free software; the Free Software Foundation
9858
 
# gives unlimited permission to copy and/or distribute it,
9859
 
# with or without modifications, as long as this notice is preserved.
9860
 
 
9861
 
# serial 5
9862
 
 
9863
 
# AM_MAINTAINER_MODE([DEFAULT-MODE])
9864
 
# ----------------------------------
9865
 
# Control maintainer-specific portions of Makefiles.
9866
 
# Default is to disable them, unless `enable' is passed literally.
9867
 
# For symmetry, `disable' may be passed as well.  Anyway, the user
9868
 
# can override the default with the --enable/--disable switch.
9869
 
AC_DEFUN([AM_MAINTAINER_MODE],
9870
 
[m4_case(m4_default([$1], [disable]),
9871
 
       [enable], [m4_define([am_maintainer_other], [disable])],
9872
 
       [disable], [m4_define([am_maintainer_other], [enable])],
9873
 
       [m4_define([am_maintainer_other], [enable])
9874
 
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
9875
 
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
9876
 
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
9877
 
  AC_ARG_ENABLE([maintainer-mode],
9878
 
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
9879
 
                          (and sometimes confusing) to the casual installer],
9880
 
      [USE_MAINTAINER_MODE=$enableval],
9881
 
      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
9882
 
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
9883
 
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
9884
 
  MAINT=$MAINTAINER_MODE_TRUE
9885
 
  AC_SUBST([MAINT])dnl
9886
 
]
9887
 
)
9888
 
 
9889
 
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
9890
 
 
9891
 
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
9892
 
 
9893
 
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
9894
 
#
9895
 
# This file is free software; the Free Software Foundation
9896
 
# gives unlimited permission to copy and/or distribute it,
9897
 
# with or without modifications, as long as this notice is preserved.
9898
 
 
9899
 
# serial 4
9900
 
 
9901
 
# AM_MAKE_INCLUDE()
9902
 
# -----------------
9903
 
# Check to see how make treats includes.
9904
 
AC_DEFUN([AM_MAKE_INCLUDE],
9905
 
[am_make=${MAKE-make}
9906
 
cat > confinc << 'END'
9907
 
am__doit:
9908
 
        @echo this is the am__doit target
9909
 
.PHONY: am__doit
9910
 
END
9911
 
# If we don't find an include directive, just comment out the code.
9912
 
AC_MSG_CHECKING([for style of include used by $am_make])
9913
 
am__include="#"
9914
 
am__quote=
9915
 
_am_result=none
9916
 
# First try GNU make style include.
9917
 
echo "include confinc" > confmf
9918
 
# Ignore all kinds of additional output from `make'.
9919
 
case `$am_make -s -f confmf 2> /dev/null` in #(
9920
 
*the\ am__doit\ target*)
9921
 
  am__include=include
9922
 
  am__quote=
9923
 
  _am_result=GNU
9924
 
  ;;
9925
 
esac
9926
 
# Now try BSD make style include.
9927
 
if test "$am__include" = "#"; then
9928
 
   echo '.include "confinc"' > confmf
9929
 
   case `$am_make -s -f confmf 2> /dev/null` in #(
9930
 
   *the\ am__doit\ target*)
9931
 
     am__include=.include
9932
 
     am__quote="\""
9933
 
     _am_result=BSD
9934
 
     ;;
9935
 
   esac
9936
 
fi
9937
 
AC_SUBST([am__include])
9938
 
AC_SUBST([am__quote])
9939
 
AC_MSG_RESULT([$_am_result])
9940
 
rm -f confinc confmf
9941
 
])
9942
 
 
9943
 
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
9944
 
 
9945
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
9946
 
# Free Software Foundation, Inc.
9947
 
#
9948
 
# This file is free software; the Free Software Foundation
9949
 
# gives unlimited permission to copy and/or distribute it,
9950
 
# with or without modifications, as long as this notice is preserved.
9951
 
 
9952
 
# serial 6
9953
 
 
9954
 
# AM_MISSING_PROG(NAME, PROGRAM)
9955
 
# ------------------------------
9956
 
AC_DEFUN([AM_MISSING_PROG],
9957
 
[AC_REQUIRE([AM_MISSING_HAS_RUN])
9958
 
$1=${$1-"${am_missing_run}$2"}
9959
 
AC_SUBST($1)])
9960
 
 
9961
 
 
9962
 
# AM_MISSING_HAS_RUN
9963
 
# ------------------
9964
 
# Define MISSING if not defined so far and test if it supports --run.
9965
 
# If it does, set am_missing_run to use it, otherwise, to nothing.
9966
 
AC_DEFUN([AM_MISSING_HAS_RUN],
9967
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9968
 
AC_REQUIRE_AUX_FILE([missing])dnl
9969
 
if test x"${MISSING+set}" != xset; then
9970
 
  case $am_aux_dir in
9971
 
  *\ * | *\     *)
9972
 
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
9973
 
  *)
9974
 
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
9975
 
  esac
9976
 
fi
9977
 
# Use eval to expand $SHELL
9978
 
if eval "$MISSING --run true"; then
9979
 
  am_missing_run="$MISSING --run "
9980
 
else
9981
 
  am_missing_run=
9982
 
  AC_MSG_WARN([`missing' script is too old or missing])
9983
 
fi
9984
 
])
9985
 
 
9986
 
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
9987
 
#
9988
 
# This file is free software; the Free Software Foundation
9989
 
# gives unlimited permission to copy and/or distribute it,
9990
 
# with or without modifications, as long as this notice is preserved.
9991
 
 
9992
 
# AM_PROG_MKDIR_P
9993
 
# ---------------
9994
 
# Check for `mkdir -p'.
9995
 
AC_DEFUN([AM_PROG_MKDIR_P],
9996
 
[AC_PREREQ([2.60])dnl
9997
 
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
9998
 
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
9999
 
dnl while keeping a definition of mkdir_p for backward compatibility.
10000
 
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
10001
 
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
10002
 
dnl Makefile.ins that do not define MKDIR_P, so we do our own
10003
 
dnl adjustment using top_builddir (which is defined more often than
10004
 
dnl MKDIR_P).
10005
 
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
10006
 
case $mkdir_p in
10007
 
  [[\\/$]]* | ?:[[\\/]]*) ;;
10008
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
10009
 
esac
10010
 
])
10011
 
 
10012
 
# Helper functions for option handling.                     -*- Autoconf -*-
10013
 
 
10014
 
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
10015
 
#
10016
 
# This file is free software; the Free Software Foundation
10017
 
# gives unlimited permission to copy and/or distribute it,
10018
 
# with or without modifications, as long as this notice is preserved.
10019
 
 
10020
 
# serial 4
10021
 
 
10022
 
# _AM_MANGLE_OPTION(NAME)
10023
 
# -----------------------
10024
 
AC_DEFUN([_AM_MANGLE_OPTION],
10025
 
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
10026
 
 
10027
 
# _AM_SET_OPTION(NAME)
10028
 
# ------------------------------
10029
 
# Set option NAME.  Presently that only means defining a flag for this option.
10030
 
AC_DEFUN([_AM_SET_OPTION],
10031
 
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
10032
 
 
10033
 
# _AM_SET_OPTIONS(OPTIONS)
10034
 
# ----------------------------------
10035
 
# OPTIONS is a space-separated list of Automake options.
10036
 
AC_DEFUN([_AM_SET_OPTIONS],
10037
 
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
10038
 
 
10039
 
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
10040
 
# -------------------------------------------
10041
 
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
10042
 
AC_DEFUN([_AM_IF_OPTION],
10043
 
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
10044
 
 
10045
 
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
10046
 
 
10047
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
10048
 
# Free Software Foundation, Inc.
10049
 
#
10050
 
# This file is free software; the Free Software Foundation
10051
 
# gives unlimited permission to copy and/or distribute it,
10052
 
# with or without modifications, as long as this notice is preserved.
10053
 
 
10054
 
# serial 5
10055
 
 
10056
 
# AM_SANITY_CHECK
10057
 
# ---------------
10058
 
AC_DEFUN([AM_SANITY_CHECK],
10059
 
[AC_MSG_CHECKING([whether build environment is sane])
10060
 
# Just in case
10061
 
sleep 1
10062
 
echo timestamp > conftest.file
10063
 
# Reject unsafe characters in $srcdir or the absolute working directory
10064
 
# name.  Accept space and tab only in the latter.
10065
 
am_lf='
 
9754
  fi
 
9755
  AC_MSG_RESULT($warnCXXFLAGS)
 
9756
 
 
9757
   AC_ARG_ENABLE(iso-cxx,
 
9758
                 AC_HELP_STRING([--enable-iso-cxx],
 
9759
                                [Try to warn if code is not ISO C++ ]),,
 
9760
                 [enable_iso_cxx=no])
 
9761
 
 
9762
   AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
 
9763
   complCXXFLAGS=
 
9764
   if test "x$enable_iso_cxx" != "xno"; then
 
9765
     if test "x$GXX" = "xyes"; then
 
9766
      case " $CXXFLAGS " in
 
9767
      *[\ \     ]-ansi[\ \      ]*) ;;
 
9768
      *) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
 
9769
      esac
 
9770
 
 
9771
      case " $CXXFLAGS " in
 
9772
      *[\ \     ]-pedantic[\ \  ]*) ;;
 
9773
      *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
 
9774
      esac
 
9775
     fi
 
9776
   fi
 
9777
  AC_MSG_RESULT($complCXXFLAGS)
 
9778
 
 
9779
  WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
 
9780
  AC_SUBST(WARN_CXXFLAGS)
 
9781
])
 
9782
 
 
9783
dnl Do not call GNOME_DOC_DEFINES directly.  It is split out from
 
9784
dnl GNOME_DOC_INIT to allow gnome-doc-utils to bootstrap off itself.
 
9785
AC_DEFUN([GNOME_DOC_DEFINES],
 
9786
[
 
9787
AC_ARG_WITH([help-dir],
 
9788
  AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),,
 
9789
  [with_help_dir='${datadir}/gnome/help'])
 
9790
HELP_DIR="$with_help_dir"
 
9791
AC_SUBST(HELP_DIR)
 
9792
 
 
9793
AC_ARG_WITH([omf-dir],
 
9794
  AC_HELP_STRING([--with-omf-dir=DIR], [path to OMF files]),,
 
9795
  [with_omf_dir='${datadir}/omf'])
 
9796
OMF_DIR="$with_omf_dir"
 
9797
AC_SUBST(OMF_DIR)
 
9798
 
 
9799
AC_ARG_WITH([help-formats],
 
9800
  AC_HELP_STRING([--with-help-formats=FORMATS], [list of formats]),,
 
9801
  [with_help_formats=''])
 
9802
DOC_USER_FORMATS="$with_help_formats"
 
9803
AC_SUBST(DOC_USER_FORMATS)
 
9804
 
 
9805
AC_ARG_ENABLE([scrollkeeper],
 
9806
        [AC_HELP_STRING([--disable-scrollkeeper],
 
9807
                        [do not make updates to the scrollkeeper database])],,
 
9808
        enable_scrollkeeper=yes)
 
9809
AM_CONDITIONAL([ENABLE_SK],[test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"])
 
9810
 
 
9811
dnl disable scrollkeeper automatically for distcheck
 
9812
DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS"
 
9813
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
 
9814
 
 
9815
AM_CONDITIONAL([HAVE_GNOME_DOC_UTILS],[test "$gdu_cv_have_gdu" = "yes"])
 
9816
])
 
9817
 
 
9818
# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
 
9819
#
 
9820
AC_DEFUN([GNOME_DOC_INIT],
 
9821
[AC_REQUIRE([AC_PROG_LN_S])dnl
 
9822
 
 
9823
ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1])
 
9824
 
 
9825
AC_MSG_CHECKING([gnome-doc-utils >= $gdu_cv_version_required])
 
9826
PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required],
 
9827
        [gdu_cv_have_gdu=yes],[gdu_cv_have_gdu=no])
 
9828
 
 
9829
if test "$gdu_cv_have_gdu" = "yes"; then
 
9830
        AC_MSG_RESULT([yes])
 
9831
        ifelse([$2],,[:],[$2])
 
9832
else
 
9833
        AC_MSG_RESULT([no])
 
9834
        ifelse([$3],,[AC_MSG_ERROR([gnome-doc-utils >= $gdu_cv_version_required not found])],[$3])
 
9835
fi
 
9836
 
 
9837
GNOME_DOC_DEFINES
 
9838
])
 
9839
 
 
9840
dnl GLIB_GSETTINGS
 
9841
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
 
9842
dnl the schema should be compiled
 
9843
dnl
 
9844
 
 
9845
AC_DEFUN([GLIB_GSETTINGS],
 
9846
[
 
9847
  m4_pattern_allow([AM_V_GEN])
 
9848
  AC_ARG_ENABLE(schemas-compile,
 
9849
                AC_HELP_STRING([--disable-schemas-compile],
 
9850
                               [Disable regeneration of gschemas.compiled on install]),
 
9851
                [case ${enableval} in
 
9852
                  yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE=""  ;;
 
9853
                  no)  GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
 
9854
                  *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;;
 
9855
                 esac])
 
9856
  AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE])
 
9857
  PKG_PROG_PKG_CONFIG([0.16])
 
9858
  AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas])
 
9859
  if test x$cross_compiling != xyes; then
 
9860
    GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
 
9861
  else
 
9862
    AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas)
 
9863
  fi
 
9864
  AC_SUBST(GLIB_COMPILE_SCHEMAS)
 
9865
  if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
 
9866
    ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2])
 
9867
  else
 
9868
    ifelse([$1],,[:],[$1])
 
9869
  fi
 
9870
 
 
9871
  GSETTINGS_RULES='
 
9872
.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
 
9873
 
 
9874
mostlyclean-am: clean-gsettings-schemas
 
9875
 
 
9876
gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
 
9877
 
 
9878
%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
 
9879
        $(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; $(GLIB_COMPILE_SCHEMAS) --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$${d}$< && touch [$]@
 
9880
 
 
9881
all-am: $(gsettings_SCHEMAS:.xml=.valid)
 
9882
uninstall-am: uninstall-gsettings-schemas
 
9883
install-data-am: install-gsettings-schemas
 
9884
 
 
9885
.SECONDARY: $(gsettings_SCHEMAS)
 
9886
 
 
9887
gsettings__base_list = \
 
9888
  sed "$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g" | \
 
9889
  sed "$$!N;$$!N;$$!N;$$!N;s/\n/ /g"
 
9890
 
 
9891
install-gsettings-schemas: $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
 
9892
        @$(NORMAL_INSTALL)
 
9893
        test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"
 
9894
        @list='\''$(gsettings__enum_file) $(gsettings_SCHEMAS)'\''; test -n "$(gsettingsschemadir)" || list=; \
 
9895
        for p in $$list; do \
 
9896
          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
 
9897
          echo "$$d$$p"; \
 
9898
        done | $(gsettings__base_list) | \
 
9899
        while read files; do \
 
9900
          echo " $(INSTALL_DATA) $$files '\''$(DESTDIR)$(gsettingsschemadir)'\''"; \
 
9901
          $(INSTALL_DATA) $$files "$(DESTDIR)$(gsettingsschemadir)" || exit $$?; \
 
9902
        done
 
9903
        test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
 
9904
 
 
9905
uninstall-gsettings-schemas:
 
9906
        @$(NORMAL_UNINSTALL)
 
9907
        @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
 
9908
        files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
 
9909
        test -n "$$files" || exit 0; \
 
9910
        echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
 
9911
        cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
 
9912
        test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
 
9913
 
 
9914
clean-gsettings-schemas:
 
9915
        rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
 
9916
 
 
9917
ifdef gsettings_ENUM_NAMESPACE
 
9918
$(gsettings__enum_file): $(gsettings_ENUM_FILES)
 
9919
        $(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>" $(gsettings_ENUM_FILES) > [$]@.tmp && mv [$]@.tmp [$]@
 
9920
endif
10066
9921
'
10067
 
case `pwd` in
10068
 
  *[[\\\"\#\$\&\'\`$am_lf]]*)
10069
 
    AC_MSG_ERROR([unsafe absolute working directory name]);;
10070
 
esac
10071
 
case $srcdir in
10072
 
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
10073
 
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
10074
 
esac
10075
 
 
10076
 
# Do `set' in a subshell so we don't clobber the current shell's
10077
 
# arguments.  Must try -L first in case configure is actually a
10078
 
# symlink; some systems play weird games with the mod time of symlinks
10079
 
# (eg FreeBSD returns the mod time of the symlink's containing
10080
 
# directory).
10081
 
if (
10082
 
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10083
 
   if test "$[*]" = "X"; then
10084
 
      # -L didn't work.
10085
 
      set X `ls -t "$srcdir/configure" conftest.file`
10086
 
   fi
10087
 
   rm -f conftest.file
10088
 
   if test "$[*]" != "X $srcdir/configure conftest.file" \
10089
 
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
10090
 
 
10091
 
      # If neither matched, then we have a broken ls.  This can happen
10092
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
10093
 
      # broken ls alias from the environment.  This has actually
10094
 
      # happened.  Such a system could not be considered "sane".
10095
 
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
10096
 
alias in your environment])
10097
 
   fi
10098
 
 
10099
 
   test "$[2]" = conftest.file
10100
 
   )
10101
 
then
10102
 
   # Ok.
10103
 
   :
10104
 
else
10105
 
   AC_MSG_ERROR([newly created file is older than distributed files!
10106
 
Check your system clock])
10107
 
fi
10108
 
AC_MSG_RESULT(yes)])
10109
 
 
10110
 
# Copyright (C) 2009  Free Software Foundation, Inc.
10111
 
#
10112
 
# This file is free software; the Free Software Foundation
10113
 
# gives unlimited permission to copy and/or distribute it,
10114
 
# with or without modifications, as long as this notice is preserved.
 
9922
  _GSETTINGS_SUBST(GSETTINGS_RULES)
 
9923
])
 
9924
 
 
9925
dnl _GSETTINGS_SUBST(VARIABLE)
 
9926
dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
 
9927
AC_DEFUN([_GSETTINGS_SUBST],
 
9928
[
 
9929
AC_SUBST([$1])
 
9930
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
 
9931
]
 
9932
)
 
9933
 
 
9934
dnl -*- mode: autoconf -*-
10115
9935
 
10116
9936
# serial 1
10117
9937
 
10118
 
# AM_SILENT_RULES([DEFAULT])
10119
 
# --------------------------
10120
 
# Enable less verbose build rules; with the default set to DEFAULT
10121
 
# (`yes' being less verbose, `no' or empty being verbose).
10122
 
AC_DEFUN([AM_SILENT_RULES],
10123
 
[AC_ARG_ENABLE([silent-rules],
10124
 
[  --enable-silent-rules          less verbose build output (undo: `make V=1')
10125
 
  --disable-silent-rules         verbose build output (undo: `make V=0')])
10126
 
case $enable_silent_rules in
10127
 
yes) AM_DEFAULT_VERBOSITY=0;;
10128
 
no)  AM_DEFAULT_VERBOSITY=1;;
10129
 
*)   AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
 
9938
dnl Usage:
 
9939
dnl   GTK_DOC_CHECK([minimum-gtk-doc-version])
 
9940
AC_DEFUN([GTK_DOC_CHECK],
 
9941
[
 
9942
  AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
 
9943
  AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
 
9944
 
 
9945
  dnl check for tools we added during development
 
9946
  AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check])
 
9947
  AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true])
 
9948
  AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf])
 
9949
 
 
9950
  dnl for overriding the documentation installation directory
 
9951
  AC_ARG_WITH([html-dir],
 
9952
    AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
 
9953
    [with_html_dir='${datadir}/gtk-doc/html'])
 
9954
  HTML_DIR="$with_html_dir"
 
9955
  AC_SUBST([HTML_DIR])
 
9956
 
 
9957
  dnl enable/disable documentation building
 
9958
  AC_ARG_ENABLE([gtk-doc],
 
9959
    AS_HELP_STRING([--enable-gtk-doc],
 
9960
                   [use gtk-doc to build documentation [[default=no]]]),,
 
9961
    [enable_gtk_doc=no])
 
9962
 
 
9963
  if test x$enable_gtk_doc = xyes; then
 
9964
    ifelse([$1],[],
 
9965
      [PKG_CHECK_EXISTS([gtk-doc],,
 
9966
                        AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
 
9967
      [PKG_CHECK_EXISTS([gtk-doc >= $1],,
 
9968
                        AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))])
 
9969
  fi
 
9970
 
 
9971
  AC_MSG_CHECKING([whether to build gtk-doc documentation])
 
9972
  AC_MSG_RESULT($enable_gtk_doc)
 
9973
 
 
9974
  dnl enable/disable output formats
 
9975
  AC_ARG_ENABLE([gtk-doc-html],
 
9976
    AS_HELP_STRING([--enable-gtk-doc-html],
 
9977
                   [build documentation in html format [[default=yes]]]),,
 
9978
    [enable_gtk_doc_html=yes])
 
9979
    AC_ARG_ENABLE([gtk-doc-pdf],
 
9980
      AS_HELP_STRING([--enable-gtk-doc-pdf],
 
9981
                     [build documentation in pdf format [[default=no]]]),,
 
9982
      [enable_gtk_doc_pdf=no])
 
9983
 
 
9984
  if test -z "$GTKDOC_MKPDF"; then
 
9985
    enable_gtk_doc_pdf=no
 
9986
  fi
 
9987
 
 
9988
 
 
9989
  AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
 
9990
  AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes])
 
9991
  AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes])
 
9992
  AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
 
9993
  AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"])
 
9994
])
 
9995
 
 
9996
 
 
9997
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
 
9998
# serial 40 IT_PROG_INTLTOOL
 
9999
AC_DEFUN([IT_PROG_INTLTOOL], [
 
10000
AC_PREREQ([2.50])dnl
 
10001
AC_REQUIRE([AM_NLS])dnl
 
10002
 
 
10003
case "$am__api_version" in
 
10004
    1.[01234])
 
10005
        AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
 
10006
    ;;
 
10007
    *)
 
10008
    ;;
10130
10009
esac
10131
 
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
10132
 
AM_BACKSLASH='\'
10133
 
AC_SUBST([AM_BACKSLASH])dnl
10134
 
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
 
10010
 
 
10011
if test -n "$1"; then
 
10012
    AC_MSG_CHECKING([for intltool >= $1])
 
10013
 
 
10014
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
10015
    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
 
10016
    [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
10017
    ]
 
10018
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
 
10019
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
 
10020
        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
 
10021
fi
 
10022
 
 
10023
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
 
10024
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
 
10025
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
 
10026
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
 
10027
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
 
10028
fi
 
10029
 
 
10030
  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 $< [$]@' 
 
10031
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 $< [$]@' 
 
10032
     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 $< [$]@' 
 
10033
     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 $< [$]@' 
 
10034
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
 
10035
     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 $< [$]@' 
 
10036
   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 $< [$]@' 
 
10037
    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 $< [$]@' 
 
10038
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 $< [$]@' 
 
10039
       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 $< [$]@' 
 
10040
      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 $< [$]@' 
 
10041
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' 
 
10042
      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 $< [$]@' 
 
10043
      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 $< [$]@' 
 
10044
    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 $< [$]@' 
 
10045
  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 $< [$]@' 
 
10046
    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 $< [$]@' 
 
10047
    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 $< [$]@'
 
10048
   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 $< [$]@'
 
10049
 
 
10050
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
 
10051
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
 
10052
_IT_SUBST(INTLTOOL_KEYS_RULE)
 
10053
_IT_SUBST(INTLTOOL_PROP_RULE)
 
10054
_IT_SUBST(INTLTOOL_OAF_RULE)
 
10055
_IT_SUBST(INTLTOOL_PONG_RULE)
 
10056
_IT_SUBST(INTLTOOL_SERVER_RULE)
 
10057
_IT_SUBST(INTLTOOL_SHEET_RULE)
 
10058
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
 
10059
_IT_SUBST(INTLTOOL_UI_RULE)
 
10060
_IT_SUBST(INTLTOOL_XAM_RULE)
 
10061
_IT_SUBST(INTLTOOL_KBD_RULE)
 
10062
_IT_SUBST(INTLTOOL_XML_RULE)
 
10063
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
 
10064
_IT_SUBST(INTLTOOL_CAVES_RULE)
 
10065
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
 
10066
_IT_SUBST(INTLTOOL_THEME_RULE)
 
10067
_IT_SUBST(INTLTOOL_SERVICE_RULE)
 
10068
_IT_SUBST(INTLTOOL_POLICY_RULE)
 
10069
 
 
10070
# Check the gettext tools to make sure they are GNU
 
10071
AC_PATH_PROG(XGETTEXT, xgettext)
 
10072
AC_PATH_PROG(MSGMERGE, msgmerge)
 
10073
AC_PATH_PROG(MSGFMT, msgfmt)
 
10074
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
 
10075
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
 
10076
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
 
10077
fi
 
10078
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
 
10079
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
 
10080
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
 
10081
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
 
10082
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
 
10083
fi
 
10084
 
 
10085
AC_PATH_PROG(INTLTOOL_PERL, perl)
 
10086
if test -z "$INTLTOOL_PERL"; then
 
10087
   AC_MSG_ERROR([perl not found])
 
10088
fi
 
10089
AC_MSG_CHECKING([for perl >= 5.8.1])
 
10090
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
 
10091
if test $? -ne 0; then
 
10092
   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
 
10093
else
 
10094
   IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
 
10095
   AC_MSG_RESULT([$IT_PERL_VERSION])
 
10096
fi
 
10097
if test "x$2" != "xno-xml"; then
 
10098
   AC_MSG_CHECKING([for XML::Parser])
 
10099
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
 
10100
       AC_MSG_RESULT([ok])
 
10101
   else
 
10102
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
 
10103
   fi
 
10104
fi
 
10105
 
 
10106
# Substitute ALL_LINGUAS so we can use it in po/Makefile
 
10107
AC_SUBST(ALL_LINGUAS)
 
10108
 
 
10109
# Set DATADIRNAME correctly if it is not set yet
 
10110
# (copied from glib-gettext.m4)
 
10111
if test -z "$DATADIRNAME"; then
 
10112
  AC_LINK_IFELSE(
 
10113
    [AC_LANG_PROGRAM([[]],
 
10114
                     [[extern int _nl_msg_cat_cntr;
 
10115
                       return _nl_msg_cat_cntr]])],
 
10116
    [DATADIRNAME=share],
 
10117
    [case $host in
 
10118
    *-*-solaris*)
 
10119
    dnl On Solaris, if bind_textdomain_codeset is in libc,
 
10120
    dnl GNU format message catalog is always supported,
 
10121
    dnl since both are added to the libc all together.
 
10122
    dnl Hence, we'd like to go with DATADIRNAME=share
 
10123
    dnl in this case.
 
10124
    AC_CHECK_FUNC(bind_textdomain_codeset,
 
10125
      [DATADIRNAME=share], [DATADIRNAME=lib])
 
10126
    ;;
 
10127
    *)
 
10128
    [DATADIRNAME=lib]
 
10129
    ;;
 
10130
    esac])
 
10131
fi
 
10132
AC_SUBST(DATADIRNAME)
 
10133
 
 
10134
IT_PO_SUBDIR([po])
 
10135
 
10135
10136
])
10136
10137
 
10137
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
10138
 
#
10139
 
# This file is free software; the Free Software Foundation
10140
 
# gives unlimited permission to copy and/or distribute it,
10141
 
# with or without modifications, as long as this notice is preserved.
10142
10138
 
10143
 
# AM_PROG_INSTALL_STRIP
 
10139
# IT_PO_SUBDIR(DIRNAME)
10144
10140
# ---------------------
10145
 
# One issue with vendor `install' (even GNU) is that you can't
10146
 
# specify the program used to strip binaries.  This is especially
10147
 
# annoying in cross-compiling environments, where the build's strip
10148
 
# is unlikely to handle the host's binaries.
10149
 
# Fortunately install-sh will honor a STRIPPROG variable, so we
10150
 
# always use install-sh in `make install-strip', and initialize
10151
 
# STRIPPROG with the value of the STRIP variable (set by the user).
10152
 
AC_DEFUN([AM_PROG_INSTALL_STRIP],
10153
 
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
10154
 
# Installed binaries are usually stripped using `strip' when the user
10155
 
# run `make install-strip'.  However `strip' might not be the right
10156
 
# tool to use in cross-compilation environments, therefore Automake
10157
 
# will honor the `STRIP' environment variable to overrule this program.
10158
 
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
10159
 
if test "$cross_compiling" != no; then
10160
 
  AC_CHECK_TOOL([STRIP], [strip], :)
10161
 
fi
10162
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10163
 
AC_SUBST([INSTALL_STRIP_PROGRAM])])
10164
 
 
10165
 
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
10166
 
#
10167
 
# This file is free software; the Free Software Foundation
10168
 
# gives unlimited permission to copy and/or distribute it,
10169
 
# with or without modifications, as long as this notice is preserved.
10170
 
 
10171
 
# serial 2
10172
 
 
10173
 
# _AM_SUBST_NOTMAKE(VARIABLE)
10174
 
# ---------------------------
10175
 
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
10176
 
# This macro is traced by Automake.
10177
 
AC_DEFUN([_AM_SUBST_NOTMAKE])
10178
 
 
10179
 
# AM_SUBST_NOTMAKE(VARIABLE)
10180
 
# ---------------------------
10181
 
# Public sister of _AM_SUBST_NOTMAKE.
10182
 
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
10183
 
 
10184
 
# Check how to create a tarball.                            -*- Autoconf -*-
10185
 
 
10186
 
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
10187
 
#
10188
 
# This file is free software; the Free Software Foundation
10189
 
# gives unlimited permission to copy and/or distribute it,
10190
 
# with or without modifications, as long as this notice is preserved.
10191
 
 
10192
 
# serial 2
10193
 
 
10194
 
# _AM_PROG_TAR(FORMAT)
10195
 
# --------------------
10196
 
# Check how to create a tarball in format FORMAT.
10197
 
# FORMAT should be one of `v7', `ustar', or `pax'.
10198
 
#
10199
 
# Substitute a variable $(am__tar) that is a command
10200
 
# writing to stdout a FORMAT-tarball containing the directory
10201
 
# $tardir.
10202
 
#     tardir=directory && $(am__tar) > result.tar
10203
 
#
10204
 
# Substitute a variable $(am__untar) that extract such
10205
 
# a tarball read from stdin.
10206
 
#     $(am__untar) < result.tar
10207
 
AC_DEFUN([_AM_PROG_TAR],
10208
 
[# Always define AMTAR for backward compatibility.
10209
 
AM_MISSING_PROG([AMTAR], [tar])
10210
 
m4_if([$1], [v7],
10211
 
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
10212
 
     [m4_case([$1], [ustar],, [pax],,
10213
 
              [m4_fatal([Unknown tar format])])
10214
 
AC_MSG_CHECKING([how to create a $1 tar archive])
10215
 
# Loop over all known methods to create a tar archive until one works.
10216
 
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
10217
 
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
10218
 
# Do not fold the above two line into one, because Tru64 sh and
10219
 
# Solaris sh will not grok spaces in the rhs of `-'.
10220
 
for _am_tool in $_am_tools
10221
 
do
10222
 
  case $_am_tool in
10223
 
  gnutar)
10224
 
    for _am_tar in tar gnutar gtar;
10225
 
    do
10226
 
      AM_RUN_LOG([$_am_tar --version]) && break
10227
 
    done
10228
 
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
10229
 
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
10230
 
    am__untar="$_am_tar -xf -"
10231
 
    ;;
10232
 
  plaintar)
10233
 
    # Must skip GNU tar: if it does not support --format= it doesn't create
10234
 
    # ustar tarball either.
10235
 
    (tar --version) >/dev/null 2>&1 && continue
10236
 
    am__tar='tar chf - "$$tardir"'
10237
 
    am__tar_='tar chf - "$tardir"'
10238
 
    am__untar='tar xf -'
10239
 
    ;;
10240
 
  pax)
10241
 
    am__tar='pax -L -x $1 -w "$$tardir"'
10242
 
    am__tar_='pax -L -x $1 -w "$tardir"'
10243
 
    am__untar='pax -r'
10244
 
    ;;
10245
 
  cpio)
10246
 
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
10247
 
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
10248
 
    am__untar='cpio -i -H $1 -d'
10249
 
    ;;
10250
 
  none)
10251
 
    am__tar=false
10252
 
    am__tar_=false
10253
 
    am__untar=false
10254
 
    ;;
10255
 
  esac
10256
 
 
10257
 
  # If the value was cached, stop now.  We just wanted to have am__tar
10258
 
  # and am__untar set.
10259
 
  test -n "${am_cv_prog_tar_$1}" && break
10260
 
 
10261
 
  # tar/untar a dummy directory, and stop if the command works
10262
 
  rm -rf conftest.dir
10263
 
  mkdir conftest.dir
10264
 
  echo GrepMe > conftest.dir/file
10265
 
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
10266
 
  rm -rf conftest.dir
10267
 
  if test -s conftest.tar; then
10268
 
    AM_RUN_LOG([$am__untar <conftest.tar])
10269
 
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
10270
 
  fi
10271
 
done
10272
 
rm -rf conftest.dir
10273
 
 
10274
 
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
10275
 
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
10276
 
AC_SUBST([am__tar])
10277
 
AC_SUBST([am__untar])
10278
 
]) # _AM_PROG_TAR
 
10141
# All po subdirs have to be declared with this macro; the subdir "po" is
 
10142
# declared by IT_PROG_INTLTOOL.
 
10143
#
 
10144
AC_DEFUN([IT_PO_SUBDIR],
 
10145
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
 
10146
dnl
 
10147
dnl The following CONFIG_COMMANDS should be executed at the very end
 
10148
dnl of config.status.
 
10149
AC_CONFIG_COMMANDS_PRE([
 
10150
  AC_CONFIG_COMMANDS([$1/stamp-it], [
 
10151
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
 
10152
       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
 
10153
    fi
 
10154
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
 
10155
    >"$1/stamp-it.tmp"
 
10156
    [sed '/^#/d
 
10157
         s/^[[].*] *//
 
10158
         /^[    ]*$/d
 
10159
        '"s|^|  $ac_top_srcdir/|" \
 
10160
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
 
10161
    ]
 
10162
    [sed '/^POTFILES =/,/[^\\]$/ {
 
10163
                /^POTFILES =/!d
 
10164
                r $1/POTFILES
 
10165
          }
 
10166
         ' "$1/Makefile.in" >"$1/Makefile"]
 
10167
    rm -f "$1/Makefile.tmp"
 
10168
    mv "$1/stamp-it.tmp" "$1/stamp-it"
 
10169
  ])
 
10170
])dnl
 
10171
])
 
10172
 
 
10173
# _IT_SUBST(VARIABLE)
 
10174
# -------------------
 
10175
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
 
10176
#
 
10177
AC_DEFUN([_IT_SUBST],
 
10178
[
 
10179
AC_SUBST([$1])
 
10180
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
 
10181
]
 
10182
)
 
10183
 
 
10184
# deprecated macros
 
10185
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
 
10186
# A hint is needed for aclocal from Automake <= 1.9.4:
 
10187
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
 
10188
 
10279
10189