~valavanisalex/ubuntu/oneiric/inkscape/inkscape_0.48.1-2ubuntu4

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2006-07-06 22:03:02 UTC
  • mto: (2.4.1 sid) (1.4.1 upstream) (45.1.3 maverick)
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20060706220302-itgso3qgxdaxjmcy
Tags: upstream-0.44
ImportĀ upstreamĀ versionĀ 0.44

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.8.5 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.7.9 -*- Autoconf -*-
2
2
 
3
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
 
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
4
4
# Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
13
13
 
14
 
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
15
 
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
16
 
#
17
 
# This file is free software, distributed under the terms of the GNU
18
 
# General Public License.  As a special exception to the GNU General
19
 
# Public License, this file may be distributed as part of a program
20
 
# that contains a configuration script generated by Autoconf, under
21
 
# the same distribution terms as the rest of that program.
22
 
#
23
 
# This file can be copied and used freely without restrictions.  It can
24
 
# be used in projects which are not available under the GNU Public License
25
 
# but which still want to provide support for the GNU gettext functionality.
26
 
#
27
 
# Macro to add for using GNU gettext.
28
 
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
29
 
#
30
 
# Modified to never use included libintl. 
31
 
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
32
 
#
33
 
# Major rework to remove unused code
34
 
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
35
 
#
36
 
# Added better handling of ALL_LINGUAS from GNU gettext version 
37
 
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
38
 
#
39
 
# Modified to require ngettext
40
 
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
41
 
#
42
 
# We need this here as well, since someone might use autoconf-2.5x
43
 
# to configure GLib then an older version to configure a package
44
 
# using AM_GLIB_GNU_GETTEXT
45
 
AC_PREREQ(2.53)
46
 
 
47
 
dnl
48
 
dnl We go to great lengths to make sure that aclocal won't 
49
 
dnl try to pull in the installed version of these macros
50
 
dnl when running aclocal in the glib directory.
51
 
dnl
52
 
m4_copy([AC_DEFUN],[glib_DEFUN])
53
 
m4_copy([AC_REQUIRE],[glib_REQUIRE])
54
 
dnl
55
 
dnl At the end, if we're not within glib, we'll define the public
56
 
dnl definitions in terms of our private definitions.
57
 
dnl
58
 
 
59
 
# GLIB_LC_MESSAGES
60
 
#--------------------
61
 
glib_DEFUN([GLIB_LC_MESSAGES],
62
 
  [AC_CHECK_HEADERS([locale.h])
63
 
    if test $ac_cv_header_locale_h = yes; then
64
 
    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
65
 
      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
66
 
       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
67
 
    if test $am_cv_val_LC_MESSAGES = yes; then
68
 
      AC_DEFINE(HAVE_LC_MESSAGES, 1,
69
 
        [Define if your <locale.h> file defines LC_MESSAGES.])
70
 
    fi
71
 
  fi])
72
 
 
73
 
# GLIB_PATH_PROG_WITH_TEST
74
 
#----------------------------
75
 
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
76
 
dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
77
 
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
78
 
[# Extract the first word of "$2", so it can be a program name with args.
79
 
set dummy $2; ac_word=[$]2
80
 
AC_MSG_CHECKING([for $ac_word])
81
 
AC_CACHE_VAL(ac_cv_path_$1,
82
 
[case "[$]$1" in
83
 
  /*)
84
 
  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
85
 
  ;;
86
 
  *)
87
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
88
 
  for ac_dir in ifelse([$5], , $PATH, [$5]); do
89
 
    test -z "$ac_dir" && ac_dir=.
90
 
    if test -f $ac_dir/$ac_word; then
91
 
      if [$3]; then
92
 
        ac_cv_path_$1="$ac_dir/$ac_word"
 
14
# Do all the work for Automake.                            -*- Autoconf -*-
 
15
 
 
16
# This macro actually does too much some checks are only needed if
 
17
# your package does certain things.  But this isn't really a big deal.
 
18
 
 
19
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
 
20
# Free Software Foundation, Inc.
 
21
 
 
22
# This program is free software; you can redistribute it and/or modify
 
23
# it under the terms of the GNU General Public License as published by
 
24
# the Free Software Foundation; either version 2, or (at your option)
 
25
# any later version.
 
26
 
 
27
# This program is distributed in the hope that it will be useful,
 
28
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
29
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
30
# GNU General Public License for more details.
 
31
 
 
32
# You should have received a copy of the GNU General Public License
 
33
# along with this program; if not, write to the Free Software
 
34
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
35
# 02111-1307, USA.
 
36
 
 
37
# serial 10
 
38
 
 
39
AC_PREREQ([2.54])
 
40
 
 
41
# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
 
42
# the ones we care about.
 
43
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
 
44
 
 
45
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
 
46
# AM_INIT_AUTOMAKE([OPTIONS])
 
47
# -----------------------------------------------
 
48
# The call with PACKAGE and VERSION arguments is the old style
 
49
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
 
50
# and VERSION should now be passed to AC_INIT and removed from
 
51
# the call to AM_INIT_AUTOMAKE.
 
52
# We support both call styles for the transition.  After
 
53
# the next Automake release, Autoconf can make the AC_INIT
 
54
# arguments mandatory, and then we can depend on a new Autoconf
 
55
# release and drop the old call support.
 
56
AC_DEFUN([AM_INIT_AUTOMAKE],
 
57
[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 
58
 AC_REQUIRE([AC_PROG_INSTALL])dnl
 
59
# test to see if srcdir already configured
 
60
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
61
   test -f $srcdir/config.status; then
 
62
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
63
fi
 
64
 
 
65
# test whether we have cygpath
 
66
if test -z "$CYGPATH_W"; then
 
67
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
68
    CYGPATH_W='cygpath -w'
 
69
  else
 
70
    CYGPATH_W=echo
 
71
  fi
 
72
fi
 
73
AC_SUBST([CYGPATH_W])
 
74
 
 
75
# Define the identity of the package.
 
76
dnl Distinguish between old-style and new-style calls.
 
77
m4_ifval([$2],
 
78
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
79
 AC_SUBST([PACKAGE], [$1])dnl
 
80
 AC_SUBST([VERSION], [$2])],
 
81
[_AM_SET_OPTIONS([$1])dnl
 
82
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 
83
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 
84
 
 
85
_AM_IF_OPTION([no-define],,
 
86
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
 
87
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 
88
 
 
89
# Some tools Automake needs.
 
90
AC_REQUIRE([AM_SANITY_CHECK])dnl
 
91
AC_REQUIRE([AC_ARG_PROGRAM])dnl
 
92
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
 
93
AM_MISSING_PROG(AUTOCONF, autoconf)
 
94
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
 
95
AM_MISSING_PROG(AUTOHEADER, autoheader)
 
96
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
97
AM_MISSING_PROG(AMTAR, tar)
 
98
AM_PROG_INSTALL_SH
 
99
AM_PROG_INSTALL_STRIP
 
100
# We need awk for the "check" target.  The system "awk" is bad on
 
101
# some platforms.
 
102
AC_REQUIRE([AC_PROG_AWK])dnl
 
103
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 
104
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
105
 
 
106
_AM_IF_OPTION([no-dependencies],,
 
107
[AC_PROVIDE_IFELSE([AC_PROG_CC],
 
108
                  [_AM_DEPENDENCIES(CC)],
 
109
                  [define([AC_PROG_CC],
 
110
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
111
AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
112
                  [_AM_DEPENDENCIES(CXX)],
 
113
                  [define([AC_PROG_CXX],
 
114
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
115
])
 
116
])
 
117
 
 
118
 
 
119
# When config.status generates a header, we must update the stamp-h file.
 
120
# This file resides in the same directory as the config header
 
121
# that is generated.  The stamp files are numbered to have different names.
 
122
 
 
123
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
 
124
# loop where config.status creates the headers, so we can generate
 
125
# our stamp files there.
 
126
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
 
127
[# Compute $1's index in $config_headers.
 
128
_am_stamp_count=1
 
129
for _am_header in $config_headers :; do
 
130
  case $_am_header in
 
131
    $1 | $1:* )
 
132
      break ;;
 
133
    * )
 
134
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
135
  esac
 
136
done
 
137
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
 
138
 
 
139
# Copyright 2002  Free Software Foundation, Inc.
 
140
 
 
141
# This program is free software; you can redistribute it and/or modify
 
142
# it under the terms of the GNU General Public License as published by
 
143
# the Free Software Foundation; either version 2, or (at your option)
 
144
# any later version.
 
145
 
 
146
# This program is distributed in the hope that it will be useful,
 
147
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
148
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
149
# GNU General Public License for more details.
 
150
 
 
151
# You should have received a copy of the GNU General Public License
 
152
# along with this program; if not, write to the Free Software
 
153
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
154
 
 
155
# AM_AUTOMAKE_VERSION(VERSION)
 
156
# ----------------------------
 
157
# Automake X.Y traces this macro to ensure aclocal.m4 has been
 
158
# generated from the m4 files accompanying Automake X.Y.
 
159
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
 
160
 
 
161
# AM_SET_CURRENT_AUTOMAKE_VERSION
 
162
# -------------------------------
 
163
# Call AM_AUTOMAKE_VERSION so it can be traced.
 
164
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
 
165
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
 
166
         [AM_AUTOMAKE_VERSION([1.7.9])])
 
167
 
 
168
# Helper functions for option handling.                    -*- Autoconf -*-
 
169
 
 
170
# Copyright 2001, 2002  Free Software Foundation, Inc.
 
171
 
 
172
# This program is free software; you can redistribute it and/or modify
 
173
# it under the terms of the GNU General Public License as published by
 
174
# the Free Software Foundation; either version 2, or (at your option)
 
175
# any later version.
 
176
 
 
177
# This program is distributed in the hope that it will be useful,
 
178
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
179
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
180
# GNU General Public License for more details.
 
181
 
 
182
# You should have received a copy of the GNU General Public License
 
183
# along with this program; if not, write to the Free Software
 
184
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
185
# 02111-1307, USA.
 
186
 
 
187
# serial 2
 
188
 
 
189
# _AM_MANGLE_OPTION(NAME)
 
190
# -----------------------
 
191
AC_DEFUN([_AM_MANGLE_OPTION],
 
192
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
 
193
 
 
194
# _AM_SET_OPTION(NAME)
 
195
# ------------------------------
 
196
# Set option NAME.  Presently that only means defining a flag for this option.
 
197
AC_DEFUN([_AM_SET_OPTION],
 
198
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
199
 
 
200
# _AM_SET_OPTIONS(OPTIONS)
 
201
# ----------------------------------
 
202
# OPTIONS is a space-separated list of Automake options.
 
203
AC_DEFUN([_AM_SET_OPTIONS],
 
204
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
205
 
 
206
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 
207
# -------------------------------------------
 
208
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
209
AC_DEFUN([_AM_IF_OPTION],
 
210
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 
211
 
 
212
#
 
213
# Check to make sure that the build environment is sane.
 
214
#
 
215
 
 
216
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
 
217
 
 
218
# This program is free software; you can redistribute it and/or modify
 
219
# it under the terms of the GNU General Public License as published by
 
220
# the Free Software Foundation; either version 2, or (at your option)
 
221
# any later version.
 
222
 
 
223
# This program is distributed in the hope that it will be useful,
 
224
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
225
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
226
# GNU General Public License for more details.
 
227
 
 
228
# You should have received a copy of the GNU General Public License
 
229
# along with this program; if not, write to the Free Software
 
230
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
231
# 02111-1307, USA.
 
232
 
 
233
# serial 3
 
234
 
 
235
# AM_SANITY_CHECK
 
236
# ---------------
 
237
AC_DEFUN([AM_SANITY_CHECK],
 
238
[AC_MSG_CHECKING([whether build environment is sane])
 
239
# Just in case
 
240
sleep 1
 
241
echo timestamp > conftest.file
 
242
# Do `set' in a subshell so we don't clobber the current shell's
 
243
# arguments.  Must try -L first in case configure is actually a
 
244
# symlink; some systems play weird games with the mod time of symlinks
 
245
# (eg FreeBSD returns the mod time of the symlink's containing
 
246
# directory).
 
247
if (
 
248
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
249
   if test "$[*]" = "X"; then
 
250
      # -L didn't work.
 
251
      set X `ls -t $srcdir/configure conftest.file`
 
252
   fi
 
253
   rm -f conftest.file
 
254
   if test "$[*]" != "X $srcdir/configure conftest.file" \
 
255
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
256
 
 
257
      # If neither matched, then we have a broken ls.  This can happen
 
258
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
259
      # broken ls alias from the environment.  This has actually
 
260
      # happened.  Such a system could not be considered "sane".
 
261
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
262
alias in your environment])
 
263
   fi
 
264
 
 
265
   test "$[2]" = conftest.file
 
266
   )
 
267
then
 
268
   # Ok.
 
269
   :
 
270
else
 
271
   AC_MSG_ERROR([newly created file is older than distributed files!
 
272
Check your system clock])
 
273
fi
 
274
AC_MSG_RESULT(yes)])
 
275
 
 
276
#  -*- Autoconf -*-
 
277
 
 
278
 
 
279
# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
 
280
 
 
281
# This program is free software; you can redistribute it and/or modify
 
282
# it under the terms of the GNU General Public License as published by
 
283
# the Free Software Foundation; either version 2, or (at your option)
 
284
# any later version.
 
285
 
 
286
# This program is distributed in the hope that it will be useful,
 
287
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
288
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
289
# GNU General Public License for more details.
 
290
 
 
291
# You should have received a copy of the GNU General Public License
 
292
# along with this program; if not, write to the Free Software
 
293
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
294
# 02111-1307, USA.
 
295
 
 
296
# serial 3
 
297
 
 
298
# AM_MISSING_PROG(NAME, PROGRAM)
 
299
# ------------------------------
 
300
AC_DEFUN([AM_MISSING_PROG],
 
301
[AC_REQUIRE([AM_MISSING_HAS_RUN])
 
302
$1=${$1-"${am_missing_run}$2"}
 
303
AC_SUBST($1)])
 
304
 
 
305
 
 
306
# AM_MISSING_HAS_RUN
 
307
# ------------------
 
308
# Define MISSING if not defined so far and test if it supports --run.
 
309
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
310
AC_DEFUN([AM_MISSING_HAS_RUN],
 
311
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
312
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
313
# Use eval to expand $SHELL
 
314
if eval "$MISSING --run true"; then
 
315
  am_missing_run="$MISSING --run "
 
316
else
 
317
  am_missing_run=
 
318
  AC_MSG_WARN([`missing' script is too old or missing])
 
319
fi
 
320
])
 
321
 
 
322
# AM_AUX_DIR_EXPAND
 
323
 
 
324
# Copyright 2001 Free Software Foundation, Inc.
 
325
 
 
326
# This program is free software; you can redistribute it and/or modify
 
327
# it under the terms of the GNU General Public License as published by
 
328
# the Free Software Foundation; either version 2, or (at your option)
 
329
# any later version.
 
330
 
 
331
# This program is distributed in the hope that it will be useful,
 
332
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
333
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
334
# GNU General Public License for more details.
 
335
 
 
336
# You should have received a copy of the GNU General Public License
 
337
# along with this program; if not, write to the Free Software
 
338
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
339
# 02111-1307, USA.
 
340
 
 
341
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
 
342
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
 
343
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
 
344
#
 
345
# Of course, Automake must honor this variable whenever it calls a
 
346
# tool from the auxiliary directory.  The problem is that $srcdir (and
 
347
# therefore $ac_aux_dir as well) can be either absolute or relative,
 
348
# depending on how configure is run.  This is pretty annoying, since
 
349
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
 
350
# source directory, any form will work fine, but in subdirectories a
 
351
# relative path needs to be adjusted first.
 
352
#
 
353
# $ac_aux_dir/missing
 
354
#    fails when called from a subdirectory if $ac_aux_dir is relative
 
355
# $top_srcdir/$ac_aux_dir/missing
 
356
#    fails if $ac_aux_dir is absolute,
 
357
#    fails when called from a subdirectory in a VPATH build with
 
358
#          a relative $ac_aux_dir
 
359
#
 
360
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
 
361
# are both prefixed by $srcdir.  In an in-source build this is usually
 
362
# harmless because $srcdir is `.', but things will broke when you
 
363
# start a VPATH build or use an absolute $srcdir.
 
364
#
 
365
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
 
366
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
 
367
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
 
368
# and then we would define $MISSING as
 
369
#   MISSING="\${SHELL} $am_aux_dir/missing"
 
370
# This will work as long as MISSING is not called from configure, because
 
371
# unfortunately $(top_srcdir) has no meaning in configure.
 
372
# However there are other variables, like CC, which are often used in
 
373
# configure, and could therefore not use this "fixed" $ac_aux_dir.
 
374
#
 
375
# Another solution, used here, is to always expand $ac_aux_dir to an
 
376
# absolute PATH.  The drawback is that using absolute paths prevent a
 
377
# configured tree to be moved without reconfiguration.
 
378
 
 
379
# Rely on autoconf to set up CDPATH properly.
 
380
AC_PREREQ([2.50])
 
381
 
 
382
AC_DEFUN([AM_AUX_DIR_EXPAND], [
 
383
# expand $ac_aux_dir to an absolute path
 
384
am_aux_dir=`cd $ac_aux_dir && pwd`
 
385
])
 
386
 
 
387
# AM_PROG_INSTALL_SH
 
388
# ------------------
 
389
# Define $install_sh.
 
390
 
 
391
# Copyright 2001 Free Software Foundation, Inc.
 
392
 
 
393
# This program is free software; you can redistribute it and/or modify
 
394
# it under the terms of the GNU General Public License as published by
 
395
# the Free Software Foundation; either version 2, or (at your option)
 
396
# any later version.
 
397
 
 
398
# This program is distributed in the hope that it will be useful,
 
399
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
400
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
401
# GNU General Public License for more details.
 
402
 
 
403
# You should have received a copy of the GNU General Public License
 
404
# along with this program; if not, write to the Free Software
 
405
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
406
# 02111-1307, USA.
 
407
 
 
408
AC_DEFUN([AM_PROG_INSTALL_SH],
 
409
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
410
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
411
AC_SUBST(install_sh)])
 
412
 
 
413
# AM_PROG_INSTALL_STRIP
 
414
 
 
415
# Copyright 2001 Free Software Foundation, Inc.
 
416
 
 
417
# This program is free software; you can redistribute it and/or modify
 
418
# it under the terms of the GNU General Public License as published by
 
419
# the Free Software Foundation; either version 2, or (at your option)
 
420
# any later version.
 
421
 
 
422
# This program is distributed in the hope that it will be useful,
 
423
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
424
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
425
# GNU General Public License for more details.
 
426
 
 
427
# You should have received a copy of the GNU General Public License
 
428
# along with this program; if not, write to the Free Software
 
429
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
430
# 02111-1307, USA.
 
431
 
 
432
# One issue with vendor `install' (even GNU) is that you can't
 
433
# specify the program used to strip binaries.  This is especially
 
434
# annoying in cross-compiling environments, where the build's strip
 
435
# is unlikely to handle the host's binaries.
 
436
# Fortunately install-sh will honor a STRIPPROG variable, so we
 
437
# always use install-sh in `make install-strip', and initialize
 
438
# STRIPPROG with the value of the STRIP variable (set by the user).
 
439
AC_DEFUN([AM_PROG_INSTALL_STRIP],
 
440
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
441
# Installed binaries are usually stripped using `strip' when the user
 
442
# run `make install-strip'.  However `strip' might not be the right
 
443
# tool to use in cross-compilation environments, therefore Automake
 
444
# will honor the `STRIP' environment variable to overrule this program.
 
445
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
446
if test "$cross_compiling" != no; then
 
447
  AC_CHECK_TOOL([STRIP], [strip], :)
 
448
fi
 
449
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
450
AC_SUBST([INSTALL_STRIP_PROGRAM])])
 
451
 
 
452
#                                                          -*- Autoconf -*-
 
453
# Copyright (C) 2003  Free Software Foundation, Inc.
 
454
 
 
455
# This program is free software; you can redistribute it and/or modify
 
456
# it under the terms of the GNU General Public License as published by
 
457
# the Free Software Foundation; either version 2, or (at your option)
 
458
# any later version.
 
459
 
 
460
# This program is distributed in the hope that it will be useful,
 
461
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
462
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
463
# GNU General Public License for more details.
 
464
 
 
465
# You should have received a copy of the GNU General Public License
 
466
# along with this program; if not, write to the Free Software
 
467
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
468
# 02111-1307, USA.
 
469
 
 
470
# serial 1
 
471
 
 
472
# Check whether the underlying file-system supports filenames
 
473
# with a leading dot.  For instance MS-DOS doesn't.
 
474
AC_DEFUN([AM_SET_LEADING_DOT],
 
475
[rm -rf .tst 2>/dev/null
 
476
mkdir .tst 2>/dev/null
 
477
if test -d .tst; then
 
478
  am__leading_dot=.
 
479
else
 
480
  am__leading_dot=_
 
481
fi
 
482
rmdir .tst 2>/dev/null
 
483
AC_SUBST([am__leading_dot])])
 
484
 
 
485
# serial 5                                              -*- Autoconf -*-
 
486
 
 
487
# Copyright (C) 1999, 2000, 2001, 2002, 2003  Free Software Foundation, Inc.
 
488
 
 
489
# This program is free software; you can redistribute it and/or modify
 
490
# it under the terms of the GNU General Public License as published by
 
491
# the Free Software Foundation; either version 2, or (at your option)
 
492
# any later version.
 
493
 
 
494
# This program is distributed in the hope that it will be useful,
 
495
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
496
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
497
# GNU General Public License for more details.
 
498
 
 
499
# You should have received a copy of the GNU General Public License
 
500
# along with this program; if not, write to the Free Software
 
501
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
502
# 02111-1307, USA.
 
503
 
 
504
 
 
505
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
 
506
# written in clear, in which case automake, when reading aclocal.m4,
 
507
# will think it sees a *use*, and therefore will trigger all it's
 
508
# C support machinery.  Also note that it means that autoscan, seeing
 
509
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
 
510
 
 
511
 
 
512
 
 
513
# _AM_DEPENDENCIES(NAME)
 
514
# ----------------------
 
515
# See how the compiler implements dependency checking.
 
516
# NAME is "CC", "CXX", "GCJ", or "OBJC".
 
517
# We try a few techniques and use that to set a single cache variable.
 
518
#
 
519
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
 
520
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
 
521
# dependency, and given that the user is not expected to run this macro,
 
522
# just rely on AC_PROG_CC.
 
523
AC_DEFUN([_AM_DEPENDENCIES],
 
524
[AC_REQUIRE([AM_SET_DEPDIR])dnl
 
525
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
 
526
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
 
527
AC_REQUIRE([AM_DEP_TRACK])dnl
 
528
 
 
529
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
 
530
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
 
531
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
532
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
 
533
                   [depcc="$$1"   am_compiler_list=])
 
534
 
 
535
AC_CACHE_CHECK([dependency style of $depcc],
 
536
               [am_cv_$1_dependencies_compiler_type],
 
537
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
538
  # We make a subdir and do the tests there.  Otherwise we can end up
 
539
  # making bogus files that we don't know about and never remove.  For
 
540
  # instance it was reported that on HP-UX the gcc test will end up
 
541
  # making a dummy file named `D' -- because `-MD' means `put the output
 
542
  # in D'.
 
543
  mkdir conftest.dir
 
544
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
545
  # using a relative directory.
 
546
  cp "$am_depcomp" conftest.dir
 
547
  cd conftest.dir
 
548
  # We will build objects and dependencies in a subdirectory because
 
549
  # it helps to detect inapplicable dependency modes.  For instance
 
550
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
551
  # side effect of compilation, but ICC will put the dependencies in
 
552
  # the current directory while Tru64 will put them in the object
 
553
  # directory.
 
554
  mkdir sub
 
555
 
 
556
  am_cv_$1_dependencies_compiler_type=none
 
557
  if test "$am_compiler_list" = ""; then
 
558
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
 
559
  fi
 
560
  for depmode in $am_compiler_list; do
 
561
    # Setup a source with many dependencies, because some compilers
 
562
    # like to wrap large dependency lists on column 80 (with \), and
 
563
    # we should not choose a depcomp mode which is confused by this.
 
564
    #
 
565
    # We need to recreate these files for each test, as the compiler may
 
566
    # overwrite some of them when testing with obscure command lines.
 
567
    # This happens at least with the AIX C compiler.
 
568
    : > sub/conftest.c
 
569
    for i in 1 2 3 4 5 6; do
 
570
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
571
      : > sub/conftst$i.h
 
572
    done
 
573
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
574
 
 
575
    case $depmode in
 
576
    nosideeffect)
 
577
      # after this tag, mechanisms are not by side-effect, so they'll
 
578
      # only be used when explicitly requested
 
579
      if test "x$enable_dependency_tracking" = xyes; then
 
580
        continue
 
581
      else
93
582
        break
94
583
      fi
95
 
    fi
96
 
  done
97
 
  IFS="$ac_save_ifs"
98
 
dnl If no 4th arg is given, leave the cache variable unset,
99
 
dnl so AC_PATH_PROGS will keep looking.
100
 
ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
101
 
])dnl
102
 
  ;;
103
 
esac])dnl
104
 
$1="$ac_cv_path_$1"
105
 
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
106
 
  AC_MSG_RESULT([$]$1)
107
 
else
108
 
  AC_MSG_RESULT(no)
109
 
fi
110
 
AC_SUBST($1)dnl
111
 
])
112
 
 
113
 
# GLIB_WITH_NLS
114
 
#-----------------
115
 
glib_DEFUN([GLIB_WITH_NLS],
116
 
  dnl NLS is obligatory
117
 
  [USE_NLS=yes
118
 
    AC_SUBST(USE_NLS)
119
 
 
120
 
    gt_cv_have_gettext=no
121
 
 
122
 
    CATOBJEXT=NONE
123
 
    XGETTEXT=:
124
 
    INTLLIBS=
125
 
 
126
 
    AC_CHECK_HEADER(libintl.h,
127
 
     [gt_cv_func_dgettext_libintl="no"
128
 
      libintl_extra_libs=""
129
 
 
130
 
      #
131
 
      # First check in libc
132
 
      #
133
 
      AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
134
 
        [AC_TRY_LINK([
135
 
#include <libintl.h>
136
 
],
137
 
         [return !ngettext ("","", 1)],
138
 
          gt_cv_func_ngettext_libc=yes,
139
 
          gt_cv_func_ngettext_libc=no)
140
 
        ])
141
 
  
142
 
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
143
 
              AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
144
 
                [AC_TRY_LINK([
145
 
#include <libintl.h>
146
 
],
147
 
                  [return !dgettext ("","")],
148
 
                  gt_cv_func_dgettext_libc=yes,
149
 
                  gt_cv_func_dgettext_libc=no)
150
 
                ])
151
 
      fi
152
 
  
153
 
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
154
 
        AC_CHECK_FUNCS(bind_textdomain_codeset)
155
 
      fi
156
 
 
157
 
      #
158
 
      # If we don't have everything we want, check in libintl
159
 
      #
160
 
      if test "$gt_cv_func_dgettext_libc" != "yes" \
161
 
         || test "$gt_cv_func_ngettext_libc" != "yes" \
162
 
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
163
 
        
164
 
        AC_CHECK_LIB(intl, bindtextdomain,
165
 
            [AC_CHECK_LIB(intl, ngettext,
166
 
                    [AC_CHECK_LIB(intl, dgettext,
167
 
                                  gt_cv_func_dgettext_libintl=yes)])])
168
 
 
169
 
        if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
170
 
          AC_MSG_CHECKING([if -liconv is needed to use gettext])
171
 
          AC_MSG_RESULT([])
172
 
          AC_CHECK_LIB(intl, ngettext,
173
 
                [AC_CHECK_LIB(intl, dcgettext,
174
 
                       [gt_cv_func_dgettext_libintl=yes
175
 
                        libintl_extra_libs=-liconv],
176
 
                        :,-liconv)],
177
 
                :,-liconv)
178
 
        fi
179
 
 
180
 
        #
181
 
        # If we found libintl, then check in it for bind_textdomain_codeset();
182
 
        # we'll prefer libc if neither have bind_textdomain_codeset(),
183
 
        # and both have dgettext and ngettext
184
 
        #
185
 
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
186
 
          glib_save_LIBS="$LIBS"
187
 
          LIBS="$LIBS -lintl $libintl_extra_libs"
188
 
          unset ac_cv_func_bind_textdomain_codeset
189
 
          AC_CHECK_FUNCS(bind_textdomain_codeset)
190
 
          LIBS="$glib_save_LIBS"
191
 
 
192
 
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
193
 
            gt_cv_func_dgettext_libc=no
194
 
          else
195
 
            if test "$gt_cv_func_dgettext_libc" = "yes" \
196
 
                && test "$gt_cv_func_ngettext_libc" = "yes"; then
197
 
              gt_cv_func_dgettext_libintl=no
198
 
            fi
199
 
          fi
200
 
        fi
201
 
      fi
202
 
 
203
 
      if test "$gt_cv_func_dgettext_libc" = "yes" \
204
 
        || test "$gt_cv_func_dgettext_libintl" = "yes"; then
205
 
        gt_cv_have_gettext=yes
206
 
      fi
207
 
  
208
 
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
209
 
        INTLLIBS="-lintl $libintl_extra_libs"
210
 
      fi
211
 
  
212
 
      if test "$gt_cv_have_gettext" = "yes"; then
213
 
        AC_DEFINE(HAVE_GETTEXT,1,
214
 
          [Define if the GNU gettext() function is already present or preinstalled.])
215
 
        GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
216
 
          [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
217
 
        if test "$MSGFMT" != "no"; then
218
 
          glib_save_LIBS="$LIBS"
219
 
          LIBS="$LIBS $INTLLIBS"
220
 
          AC_CHECK_FUNCS(dcgettext)
221
 
          AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
222
 
          GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
223
 
            [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
224
 
          AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
225
 
                         return _nl_msg_cat_cntr],
226
 
            [CATOBJEXT=.gmo 
227
 
             DATADIRNAME=share],
228
 
            [case $host in
229
 
            *-*-solaris*)
230
 
            dnl On Solaris, if bind_textdomain_codeset is in libc,
231
 
            dnl GNU format message catalog is always supported,
232
 
            dnl since both are added to the libc all together.
233
 
            dnl Hence, we'd like to go with DATADIRNAME=share and
234
 
            dnl and CATOBJEXT=.gmo in this case.
235
 
            AC_CHECK_FUNC(bind_textdomain_codeset,
236
 
              [CATOBJEXT=.gmo 
237
 
               DATADIRNAME=share],
238
 
              [CATOBJEXT=.mo
239
 
               DATADIRNAME=lib])
240
 
            ;;
241
 
            *)
242
 
            CATOBJEXT=.mo
243
 
            DATADIRNAME=lib
244
 
            ;;
245
 
            esac])
246
 
          LIBS="$glib_save_LIBS"
247
 
          INSTOBJEXT=.mo
248
 
        else
249
 
          gt_cv_have_gettext=no
250
 
        fi
251
 
      fi
252
 
    ])
253
 
 
254
 
    if test "$gt_cv_have_gettext" = "yes" ; then
255
 
      AC_DEFINE(ENABLE_NLS, 1,
256
 
        [always defined to indicate that i18n is enabled])
257
 
    fi
258
 
 
259
 
    dnl Test whether we really found GNU xgettext.
260
 
    if test "$XGETTEXT" != ":"; then
261
 
      dnl If it is not GNU xgettext we define it as : so that the
262
 
      dnl Makefiles still can work.
263
 
      if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
264
 
        : ;
265
 
      else
266
 
        AC_MSG_RESULT(
267
 
          [found xgettext program is not GNU xgettext; ignore it])
268
 
        XGETTEXT=":"
269
 
      fi
270
 
    fi
271
 
 
272
 
    # We need to process the po/ directory.
273
 
    POSUB=po
274
 
 
275
 
    AC_OUTPUT_COMMANDS(
276
 
      [case "$CONFIG_FILES" in *po/Makefile.in*)
277
 
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
278
 
      esac])
279
 
 
280
 
    dnl These rules are solely for the distribution goal.  While doing this
281
 
    dnl we only have to keep exactly one list of the available catalogs
282
 
    dnl in configure.in.
283
 
    for lang in $ALL_LINGUAS; do
284
 
      GMOFILES="$GMOFILES $lang.gmo"
285
 
      POFILES="$POFILES $lang.po"
286
 
    done
287
 
 
288
 
    dnl Make all variables we use known to autoconf.
289
 
    AC_SUBST(CATALOGS)
290
 
    AC_SUBST(CATOBJEXT)
291
 
    AC_SUBST(DATADIRNAME)
292
 
    AC_SUBST(GMOFILES)
293
 
    AC_SUBST(INSTOBJEXT)
294
 
    AC_SUBST(INTLLIBS)
295
 
    AC_SUBST(PO_IN_DATADIR_TRUE)
296
 
    AC_SUBST(PO_IN_DATADIR_FALSE)
297
 
    AC_SUBST(POFILES)
298
 
    AC_SUBST(POSUB)
299
 
  ])
300
 
 
301
 
# AM_GLIB_GNU_GETTEXT
302
 
# -------------------
303
 
# Do checks necessary for use of gettext. If a suitable implementation 
304
 
# of gettext is found in either in libintl or in the C library,
305
 
# it will set INTLLIBS to the libraries needed for use of gettext
306
 
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
307
 
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
308
 
# on various variables needed by the Makefile.in.in installed by 
309
 
# glib-gettextize.
310
 
dnl
311
 
glib_DEFUN([GLIB_GNU_GETTEXT],
312
 
  [AC_REQUIRE([AC_PROG_CC])dnl
313
 
   AC_REQUIRE([AC_HEADER_STDC])dnl
314
 
   
315
 
   GLIB_LC_MESSAGES
316
 
   GLIB_WITH_NLS
317
 
 
318
 
   if test "$gt_cv_have_gettext" = "yes"; then
319
 
     if test "x$ALL_LINGUAS" = "x"; then
320
 
       LINGUAS=
321
 
     else
322
 
       AC_MSG_CHECKING(for catalogs to be installed)
323
 
       NEW_LINGUAS=
324
 
       for presentlang in $ALL_LINGUAS; do
325
 
         useit=no
326
 
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
327
 
           desiredlanguages="$LINGUAS"
328
 
         else
329
 
           desiredlanguages="$ALL_LINGUAS"
330
 
         fi
331
 
         for desiredlang in $desiredlanguages; do
332
 
           # Use the presentlang catalog if desiredlang is
333
 
           #   a. equal to presentlang, or
334
 
           #   b. a variant of presentlang (because in this case,
335
 
           #      presentlang can be used as a fallback for messages
336
 
           #      which are not translated in the desiredlang catalog).
337
 
           case "$desiredlang" in
338
 
             "$presentlang"*) useit=yes;;
339
 
           esac
340
 
         done
341
 
         if test $useit = yes; then
342
 
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
343
 
         fi
344
 
       done
345
 
       LINGUAS=$NEW_LINGUAS
346
 
       AC_MSG_RESULT($LINGUAS)
347
 
     fi
348
 
 
349
 
     dnl Construct list of names of catalog files to be constructed.
350
 
     if test -n "$LINGUAS"; then
351
 
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
352
 
     fi
353
 
   fi
354
 
 
355
 
   dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
356
 
   dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
357
 
   dnl Try to locate is.
358
 
   MKINSTALLDIRS=
359
 
   if test -n "$ac_aux_dir"; then
360
 
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
361
 
   fi
362
 
   if test -z "$MKINSTALLDIRS"; then
363
 
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
364
 
   fi
365
 
   AC_SUBST(MKINSTALLDIRS)
366
 
 
367
 
   dnl Generate list of files to be processed by xgettext which will
368
 
   dnl be included in po/Makefile.
369
 
   test -d po || mkdir po
370
 
   if test "x$srcdir" != "x."; then
371
 
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
372
 
       posrcprefix="$srcdir/"
373
 
     else
374
 
       posrcprefix="../$srcdir/"
375
 
     fi
376
 
   else
377
 
     posrcprefix="../"
378
 
   fi
379
 
   rm -f po/POTFILES
380
 
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
381
 
        < $srcdir/po/POTFILES.in > po/POTFILES
382
 
  ])
383
 
 
384
 
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
385
 
# -------------------------------
386
 
# Define VARIABLE to the location where catalog files will
387
 
# be installed by po/Makefile.
388
 
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
389
 
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
390
 
glib_save_prefix="$prefix"
391
 
glib_save_exec_prefix="$exec_prefix"
392
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
393
 
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
394
 
if test "x$CATOBJEXT" = "x.mo" ; then
395
 
  localedir=`eval echo "${libdir}/locale"`
396
 
else
397
 
  localedir=`eval echo "${datadir}/locale"`
398
 
fi
399
 
prefix="$glib_save_prefix"
400
 
exec_prefix="$glib_save_exec_prefix"
401
 
AC_DEFINE_UNQUOTED($1, "$localedir",
402
 
  [Define the location where the catalogs will be installed])
403
 
])
404
 
 
405
 
dnl
406
 
dnl Now the definitions that aclocal will find
407
 
dnl
408
 
ifdef(glib_configure_in,[],[
409
 
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
410
 
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
411
 
])dnl
 
584
      ;;
 
585
    none) break ;;
 
586
    esac
 
587
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
588
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
589
    # handle `-M -o', and we need to detect this.
 
590
    if depmode=$depmode \
 
591
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
592
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
593
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
594
         >/dev/null 2>conftest.err &&
 
595
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
596
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
597
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
598
      # icc doesn't choke on unknown options, it will just issue warnings
 
599
      # (even with -Werror).  So we grep stderr for any message
 
600
      # that says an option was ignored.
 
601
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
602
        am_cv_$1_dependencies_compiler_type=$depmode
 
603
        break
 
604
      fi
 
605
    fi
 
606
  done
 
607
 
 
608
  cd ..
 
609
  rm -rf conftest.dir
 
610
else
 
611
  am_cv_$1_dependencies_compiler_type=none
 
612
fi
 
613
])
 
614
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
 
615
AM_CONDITIONAL([am__fastdep$1], [
 
616
  test "x$enable_dependency_tracking" != xno \
 
617
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
 
618
])
 
619
 
 
620
 
 
621
# AM_SET_DEPDIR
 
622
# -------------
 
623
# Choose a directory name for dependency files.
 
624
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
 
625
AC_DEFUN([AM_SET_DEPDIR],
 
626
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
627
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
 
628
])
 
629
 
 
630
 
 
631
# AM_DEP_TRACK
 
632
# ------------
 
633
AC_DEFUN([AM_DEP_TRACK],
 
634
[AC_ARG_ENABLE(dependency-tracking,
 
635
[  --disable-dependency-tracking Speeds up one-time builds
 
636
  --enable-dependency-tracking  Do not reject slow dependency extractors])
 
637
if test "x$enable_dependency_tracking" != xno; then
 
638
  am_depcomp="$ac_aux_dir/depcomp"
 
639
  AMDEPBACKSLASH='\'
 
640
fi
 
641
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
 
642
AC_SUBST([AMDEPBACKSLASH])
 
643
])
 
644
 
 
645
# Generate code to set up dependency tracking.   -*- Autoconf -*-
 
646
 
 
647
# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
 
648
 
 
649
# This program is free software; you can redistribute it and/or modify
 
650
# it under the terms of the GNU General Public License as published by
 
651
# the Free Software Foundation; either version 2, or (at your option)
 
652
# any later version.
 
653
 
 
654
# This program is distributed in the hope that it will be useful,
 
655
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
656
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
657
# GNU General Public License for more details.
 
658
 
 
659
# You should have received a copy of the GNU General Public License
 
660
# along with this program; if not, write to the Free Software
 
661
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
662
# 02111-1307, USA.
 
663
 
 
664
#serial 2
 
665
 
 
666
# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
667
# ------------------------------
 
668
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
 
669
[for mf in $CONFIG_FILES; do
 
670
  # Strip MF so we end up with the name of the file.
 
671
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
672
  # Check whether this is an Automake generated Makefile or not.
 
673
  # We used to match only the files named `Makefile.in', but
 
674
  # some people rename them; so instead we look at the file content.
 
675
  # Grep'ing the first line is not enough: some people post-process
 
676
  # each Makefile.in and add a new line on top of each file to say so.
 
677
  # So let's grep whole file.
 
678
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
679
    dirpart=`AS_DIRNAME("$mf")`
 
680
  else
 
681
    continue
 
682
  fi
 
683
  grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
 
684
  # Extract the definition of DEP_FILES from the Makefile without
 
685
  # running `make'.
 
686
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 
687
  test -z "$DEPDIR" && continue
 
688
  # When using ansi2knr, U may be empty or an underscore; expand it
 
689
  U=`sed -n -e '/^U = / s///p' < "$mf"`
 
690
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
 
691
  # We invoke sed twice because it is the simplest approach to
 
692
  # changing $(DEPDIR) to its actual value in the expansion.
 
693
  for file in `sed -n -e '
 
694
    /^DEP_FILES = .*\\\\$/ {
 
695
      s/^DEP_FILES = //
 
696
      :loop
 
697
        s/\\\\$//
 
698
        p
 
699
        n
 
700
        /\\\\$/ b loop
 
701
      p
 
702
    }
 
703
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
704
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
705
    # Make sure the directory exists.
 
706
    test -f "$dirpart/$file" && continue
 
707
    fdir=`AS_DIRNAME(["$file"])`
 
708
    AS_MKDIR_P([$dirpart/$fdir])
 
709
    # echo "creating $dirpart/$file"
 
710
    echo '# dummy' > "$dirpart/$file"
 
711
  done
 
712
done
 
713
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
714
 
 
715
 
 
716
# AM_OUTPUT_DEPENDENCY_COMMANDS
 
717
# -----------------------------
 
718
# This macro should only be invoked once -- use via AC_REQUIRE.
 
719
#
 
720
# This code is only required when automatic dependency tracking
 
721
# is enabled.  FIXME.  This creates each `.P' file that we will
 
722
# need in order to bootstrap the dependency handling code.
 
723
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
 
724
[AC_CONFIG_COMMANDS([depfiles],
 
725
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
 
726
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
 
727
])
 
728
 
 
729
# Check to see how 'make' treats includes.      -*- Autoconf -*-
 
730
 
 
731
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
 
732
 
 
733
# This program is free software; you can redistribute it and/or modify
 
734
# it under the terms of the GNU General Public License as published by
 
735
# the Free Software Foundation; either version 2, or (at your option)
 
736
# any later version.
 
737
 
 
738
# This program is distributed in the hope that it will be useful,
 
739
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
740
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
741
# GNU General Public License for more details.
 
742
 
 
743
# You should have received a copy of the GNU General Public License
 
744
# along with this program; if not, write to the Free Software
 
745
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
746
# 02111-1307, USA.
 
747
 
 
748
# serial 2
 
749
 
 
750
# AM_MAKE_INCLUDE()
 
751
# -----------------
 
752
# Check to see how make treats includes.
 
753
AC_DEFUN([AM_MAKE_INCLUDE],
 
754
[am_make=${MAKE-make}
 
755
cat > confinc << 'END'
 
756
am__doit:
 
757
        @echo done
 
758
.PHONY: am__doit
 
759
END
 
760
# If we don't find an include directive, just comment out the code.
 
761
AC_MSG_CHECKING([for style of include used by $am_make])
 
762
am__include="#"
 
763
am__quote=
 
764
_am_result=none
 
765
# First try GNU make style include.
 
766
echo "include confinc" > confmf
 
767
# We grep out `Entering directory' and `Leaving directory'
 
768
# messages which can occur if `w' ends up in MAKEFLAGS.
 
769
# In particular we don't look at `^make:' because GNU make might
 
770
# be invoked under some other name (usually "gmake"), in which
 
771
# case it prints its new name instead of `make'.
 
772
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
773
   am__include=include
 
774
   am__quote=
 
775
   _am_result=GNU
 
776
fi
 
777
# Now try BSD make style include.
 
778
if test "$am__include" = "#"; then
 
779
   echo '.include "confinc"' > confmf
 
780
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
781
      am__include=.include
 
782
      am__quote="\""
 
783
      _am_result=BSD
 
784
   fi
 
785
fi
 
786
AC_SUBST([am__include])
 
787
AC_SUBST([am__quote])
 
788
AC_MSG_RESULT([$_am_result])
 
789
rm -f confinc confmf
 
790
])
 
791
 
 
792
# AM_CONDITIONAL                                              -*- Autoconf -*-
 
793
 
 
794
# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
 
795
 
 
796
# This program is free software; you can redistribute it and/or modify
 
797
# it under the terms of the GNU General Public License as published by
 
798
# the Free Software Foundation; either version 2, or (at your option)
 
799
# any later version.
 
800
 
 
801
# This program is distributed in the hope that it will be useful,
 
802
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
803
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
804
# GNU General Public License for more details.
 
805
 
 
806
# You should have received a copy of the GNU General Public License
 
807
# along with this program; if not, write to the Free Software
 
808
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
809
# 02111-1307, USA.
 
810
 
 
811
# serial 5
 
812
 
 
813
AC_PREREQ(2.52)
 
814
 
 
815
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
 
816
# -------------------------------------
 
817
# Define a conditional.
 
818
AC_DEFUN([AM_CONDITIONAL],
 
819
[ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
820
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
821
AC_SUBST([$1_TRUE])
 
822
AC_SUBST([$1_FALSE])
 
823
if $2; then
 
824
  $1_TRUE=
 
825
  $1_FALSE='#'
 
826
else
 
827
  $1_TRUE='#'
 
828
  $1_FALSE=
 
829
fi
 
830
AC_CONFIG_COMMANDS_PRE(
 
831
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
 
832
  AC_MSG_ERROR([conditional "$1" was never defined.
 
833
Usually this means the macro was only invoked conditionally.])
 
834
fi])])
 
835
 
 
836
# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
 
837
 
 
838
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
 
839
 
 
840
# This program is free software; you can redistribute it and/or modify
 
841
# it under the terms of the GNU General Public License as published by
 
842
# the Free Software Foundation; either version 2, or (at your option)
 
843
# any later version.
 
844
 
 
845
# This program is distributed in the hope that it will be useful,
 
846
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
847
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
848
# GNU General Public License for more details.
 
849
 
 
850
# You should have received a copy of the GNU General Public License
 
851
# along with this program; if not, write to the Free Software
 
852
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
853
# 02111-1307, USA.
 
854
 
 
855
AC_PREREQ([2.52])
 
856
 
 
857
# serial 6
 
858
 
 
859
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
 
860
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
412
861
 
413
862
 
414
863
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
572
1021
AC_DEFUN([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL($@)])
573
1022
 
574
1023
 
 
1024
# serial 2
 
1025
 
 
1026
# AM_PROG_CC_C_O
 
1027
# --------------
 
1028
# Like AC_PROG_CC_C_O, but changed for automake.
 
1029
 
 
1030
# Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
 
1031
 
 
1032
# This program is free software; you can redistribute it and/or modify
 
1033
# it under the terms of the GNU General Public License as published by
 
1034
# the Free Software Foundation; either version 2, or (at your option)
 
1035
# any later version.
 
1036
 
 
1037
# This program is distributed in the hope that it will be useful,
 
1038
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
1039
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
1040
# GNU General Public License for more details.
 
1041
 
 
1042
# You should have received a copy of the GNU General Public License
 
1043
# along with this program; if not, write to the Free Software
 
1044
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
1045
# 02111-1307, USA.
 
1046
 
 
1047
AC_DEFUN([AM_PROG_CC_C_O],
 
1048
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
 
1049
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
1050
# FIXME: we rely on the cache variable name because
 
1051
# there is no other way.
 
1052
set dummy $CC
 
1053
ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
 
1054
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
 
1055
   # Losing compiler, so override with the script.
 
1056
   # FIXME: It is wrong to rewrite CC.
 
1057
   # But if we don't then we get into trouble of one sort or another.
 
1058
   # A longer-term fix would be to have automake use am__CC in this case,
 
1059
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
1060
   CC="$am_aux_dir/compile $CC"
 
1061
fi
 
1062
])
 
1063
 
 
1064
# isc-posix.m4 serial 2 (gettext-0.11.2)
 
1065
dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
 
1066
dnl This file is free software; the Free Software Foundation
 
1067
dnl gives unlimited permission to copy and/or distribute it,
 
1068
dnl with or without modifications, as long as this notice is preserved.
 
1069
 
 
1070
# This file is not needed with autoconf-2.53 and newer.  Remove it in 2005.
 
1071
 
 
1072
# This test replaces the one in autoconf.
 
1073
# Currently this macro should have the same name as the autoconf macro
 
1074
# because gettext's gettext.m4 (distributed in the automake package)
 
1075
# still uses it.  Otherwise, the use in gettext.m4 makes autoheader
 
1076
# give these diagnostics:
 
1077
#   configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
 
1078
#   configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
 
1079
 
 
1080
undefine([AC_ISC_POSIX])
 
1081
 
 
1082
AC_DEFUN([AC_ISC_POSIX],
 
1083
  [
 
1084
    dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
 
1085
    AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
 
1086
  ]
 
1087
)
 
1088
 
 
1089
 
 
1090
# Copyright 1996, 1997, 1999, 2000, 2001, 2002  Free Software Foundation, Inc.
 
1091
 
 
1092
# This program is free software; you can redistribute it and/or modify
 
1093
# it under the terms of the GNU General Public License as published by
 
1094
# the Free Software Foundation; either version 2, or (at your option)
 
1095
# any later version.
 
1096
 
 
1097
# This program is distributed in the hope that it will be useful,
 
1098
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
1099
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
1100
# GNU General Public License for more details.
 
1101
 
 
1102
# You should have received a copy of the GNU General Public License
 
1103
# along with this program; if not, write to the Free Software
 
1104
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
1105
# 02111-1307, USA.
 
1106
 
 
1107
# serial 2
 
1108
 
 
1109
# @defmac AC_PROG_CC_STDC
 
1110
# @maindex PROG_CC_STDC
 
1111
# @ovindex CC
 
1112
# If the C compiler in not in ANSI C mode by default, try to add an option
 
1113
# to output variable @code{CC} to make it so.  This macro tries various
 
1114
# options that select ANSI C on some system or another.  It considers the
 
1115
# compiler to be in ANSI C mode if it handles function prototypes correctly.
 
1116
#
 
1117
# If you use this macro, you should check after calling it whether the C
 
1118
# compiler has been set to accept ANSI C; if not, the shell variable
 
1119
# @code{am_cv_prog_cc_stdc} is set to @samp{no}.  If you wrote your source
 
1120
# code in ANSI C, you can make an un-ANSIfied copy of it by using the
 
1121
# program @code{ansi2knr}, which comes with Ghostscript.
 
1122
# @end defmac
 
1123
 
 
1124
AC_DEFUN([AM_PROG_CC_STDC],
 
1125
[AC_REQUIRE([AC_PROG_CC])
 
1126
AC_BEFORE([$0], [AC_C_INLINE])
 
1127
AC_BEFORE([$0], [AC_C_CONST])
 
1128
dnl Force this before AC_PROG_CPP.  Some cpp's, eg on HPUX, require
 
1129
dnl a magic option to avoid problems with ANSI preprocessor commands
 
1130
dnl like #elif.
 
1131
dnl FIXME: can't do this because then AC_AIX won't work due to a
 
1132
dnl circular dependency.
 
1133
dnl AC_BEFORE([$0], [AC_PROG_CPP])
 
1134
AC_MSG_CHECKING([for ${CC-cc} option to accept ANSI C])
 
1135
AC_CACHE_VAL(am_cv_prog_cc_stdc,
 
1136
[am_cv_prog_cc_stdc=no
 
1137
ac_save_CC="$CC"
 
1138
# Don't try gcc -ansi; that turns off useful extensions and
 
1139
# breaks some systems' header files.
 
1140
# AIX                   -qlanglvl=ansi
 
1141
# Ultrix and OSF/1      -std1
 
1142
# HP-UX 10.20 and later -Ae
 
1143
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
1144
# SVR4                  -Xc -D__EXTENSIONS__
 
1145
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
1146
do
 
1147
  CC="$ac_save_CC $ac_arg"
 
1148
  AC_TRY_COMPILE(
 
1149
[#include <stdarg.h>
 
1150
#include <stdio.h>
 
1151
#include <sys/types.h>
 
1152
#include <sys/stat.h>
 
1153
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
1154
struct buf { int x; };
 
1155
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
1156
static char *e (p, i)
 
1157
     char **p;
 
1158
     int i;
 
1159
{
 
1160
  return p[i];
 
1161
}
 
1162
static char *f (char * (*g) (char **, int), char **p, ...)
 
1163
{
 
1164
  char *s;
 
1165
  va_list v;
 
1166
  va_start (v,p);
 
1167
  s = g (p, va_arg (v,int));
 
1168
  va_end (v);
 
1169
  return s;
 
1170
}
 
1171
int test (int i, double x);
 
1172
struct s1 {int (*f) (int a);};
 
1173
struct s2 {int (*f) (double a);};
 
1174
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
1175
int argc;
 
1176
char **argv;
 
1177
], [
 
1178
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
1179
],
 
1180
[am_cv_prog_cc_stdc="$ac_arg"; break])
 
1181
done
 
1182
CC="$ac_save_CC"
 
1183
])
 
1184
if test -z "$am_cv_prog_cc_stdc"; then
 
1185
  AC_MSG_RESULT([none needed])
 
1186
else
 
1187
  AC_MSG_RESULT([$am_cv_prog_cc_stdc])
 
1188
fi
 
1189
case "x$am_cv_prog_cc_stdc" in
 
1190
  x|xno) ;;
 
1191
  *) CC="$CC $am_cv_prog_cc_stdc" ;;
 
1192
esac
 
1193
])
 
1194
 
 
1195
AU_DEFUN([fp_PROG_CC_STDC], [AM_PROG_CC_STDC])
 
1196
 
 
1197
# Figure out how to run the assembler.             -*- Autoconf -*-
 
1198
 
 
1199
# serial 2
 
1200
 
 
1201
# Copyright 2001 Free Software Foundation, Inc.
 
1202
 
 
1203
# This program is free software; you can redistribute it and/or modify
 
1204
# it under the terms of the GNU General Public License as published by
 
1205
# the Free Software Foundation; either version 2, or (at your option)
 
1206
# any later version.
 
1207
 
 
1208
# This program is distributed in the hope that it will be useful,
 
1209
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
1210
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
1211
# GNU General Public License for more details.
 
1212
 
 
1213
# You should have received a copy of the GNU General Public License
 
1214
# along with this program; if not, write to the Free Software
 
1215
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
1216
# 02111-1307, USA.
 
1217
 
 
1218
# AM_PROG_AS
 
1219
# ----------
 
1220
AC_DEFUN([AM_PROG_AS],
 
1221
[# By default we simply use the C compiler to build assembly code.
 
1222
AC_REQUIRE([AC_PROG_CC])
 
1223
: ${CCAS='$(CC)'}
 
1224
# Set ASFLAGS if not already set.
 
1225
: ${CCASFLAGS='$(CFLAGS)'}
 
1226
AC_SUBST(CCAS)
 
1227
AC_SUBST(CCASFLAGS)])
 
1228
 
575
1229
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
576
1230
 
577
1231
# serial 47 AC_PROG_LIBTOOL
6488
7142
AC_MSG_RESULT([$SED])
6489
7143
])
6490
7144
 
 
7145
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
 
7146
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
 
7147
#
 
7148
# This file is free software, distributed under the terms of the GNU
 
7149
# General Public License.  As a special exception to the GNU General
 
7150
# Public License, this file may be distributed as part of a program
 
7151
# that contains a configuration script generated by Autoconf, under
 
7152
# the same distribution terms as the rest of that program.
 
7153
#
 
7154
# This file can be copied and used freely without restrictions.  It can
 
7155
# be used in projects which are not available under the GNU Public License
 
7156
# but which still want to provide support for the GNU gettext functionality.
 
7157
#
 
7158
# Macro to add for using GNU gettext.
 
7159
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
 
7160
#
 
7161
# Modified to never use included libintl. 
 
7162
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
 
7163
#
 
7164
# Major rework to remove unused code
 
7165
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
 
7166
#
 
7167
# Added better handling of ALL_LINGUAS from GNU gettext version 
 
7168
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
 
7169
#
 
7170
# Modified to require ngettext
 
7171
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
 
7172
#
 
7173
# We need this here as well, since someone might use autoconf-2.5x
 
7174
# to configure GLib then an older version to configure a package
 
7175
# using AM_GLIB_GNU_GETTEXT
 
7176
AC_PREREQ(2.53)
 
7177
 
 
7178
dnl
 
7179
dnl We go to great lengths to make sure that aclocal won't 
 
7180
dnl try to pull in the installed version of these macros
 
7181
dnl when running aclocal in the glib directory.
 
7182
dnl
 
7183
m4_copy([AC_DEFUN],[glib_DEFUN])
 
7184
m4_copy([AC_REQUIRE],[glib_REQUIRE])
 
7185
dnl
 
7186
dnl At the end, if we're not within glib, we'll define the public
 
7187
dnl definitions in terms of our private definitions.
 
7188
dnl
 
7189
 
 
7190
# GLIB_LC_MESSAGES
 
7191
#--------------------
 
7192
glib_DEFUN([GLIB_LC_MESSAGES],
 
7193
  [AC_CHECK_HEADERS([locale.h])
 
7194
    if test $ac_cv_header_locale_h = yes; then
 
7195
    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
 
7196
      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
 
7197
       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
 
7198
    if test $am_cv_val_LC_MESSAGES = yes; then
 
7199
      AC_DEFINE(HAVE_LC_MESSAGES, 1,
 
7200
        [Define if your <locale.h> file defines LC_MESSAGES.])
 
7201
    fi
 
7202
  fi])
 
7203
 
 
7204
# GLIB_PATH_PROG_WITH_TEST
 
7205
#----------------------------
 
7206
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
 
7207
dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
 
7208
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
 
7209
[# Extract the first word of "$2", so it can be a program name with args.
 
7210
set dummy $2; ac_word=[$]2
 
7211
AC_MSG_CHECKING([for $ac_word])
 
7212
AC_CACHE_VAL(ac_cv_path_$1,
 
7213
[case "[$]$1" in
 
7214
  /*)
 
7215
  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
 
7216
  ;;
 
7217
  *)
 
7218
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
7219
  for ac_dir in ifelse([$5], , $PATH, [$5]); do
 
7220
    test -z "$ac_dir" && ac_dir=.
 
7221
    if test -f $ac_dir/$ac_word; then
 
7222
      if [$3]; then
 
7223
        ac_cv_path_$1="$ac_dir/$ac_word"
 
7224
        break
 
7225
      fi
 
7226
    fi
 
7227
  done
 
7228
  IFS="$ac_save_ifs"
 
7229
dnl If no 4th arg is given, leave the cache variable unset,
 
7230
dnl so AC_PATH_PROGS will keep looking.
 
7231
ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
 
7232
])dnl
 
7233
  ;;
 
7234
esac])dnl
 
7235
$1="$ac_cv_path_$1"
 
7236
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
 
7237
  AC_MSG_RESULT([$]$1)
 
7238
else
 
7239
  AC_MSG_RESULT(no)
 
7240
fi
 
7241
AC_SUBST($1)dnl
 
7242
])
 
7243
 
 
7244
# GLIB_WITH_NLS
 
7245
#-----------------
 
7246
glib_DEFUN([GLIB_WITH_NLS],
 
7247
  dnl NLS is obligatory
 
7248
  [USE_NLS=yes
 
7249
    AC_SUBST(USE_NLS)
 
7250
 
 
7251
    gt_cv_have_gettext=no
 
7252
 
 
7253
    CATOBJEXT=NONE
 
7254
    XGETTEXT=:
 
7255
    INTLLIBS=
 
7256
 
 
7257
    AC_CHECK_HEADER(libintl.h,
 
7258
     [gt_cv_func_dgettext_libintl="no"
 
7259
      libintl_extra_libs=""
 
7260
 
 
7261
      #
 
7262
      # First check in libc
 
7263
      #
 
7264
      AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
 
7265
        [AC_TRY_LINK([
 
7266
#include <libintl.h>
 
7267
],
 
7268
         [return !ngettext ("","", 1)],
 
7269
          gt_cv_func_ngettext_libc=yes,
 
7270
          gt_cv_func_ngettext_libc=no)
 
7271
        ])
 
7272
  
 
7273
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
7274
              AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
 
7275
                [AC_TRY_LINK([
 
7276
#include <libintl.h>
 
7277
],
 
7278
                  [return !dgettext ("","")],
 
7279
                  gt_cv_func_dgettext_libc=yes,
 
7280
                  gt_cv_func_dgettext_libc=no)
 
7281
                ])
 
7282
      fi
 
7283
  
 
7284
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
7285
        AC_CHECK_FUNCS(bind_textdomain_codeset)
 
7286
      fi
 
7287
 
 
7288
      #
 
7289
      # If we don't have everything we want, check in libintl
 
7290
      #
 
7291
      if test "$gt_cv_func_dgettext_libc" != "yes" \
 
7292
         || test "$gt_cv_func_ngettext_libc" != "yes" \
 
7293
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
 
7294
        
 
7295
        AC_CHECK_LIB(intl, bindtextdomain,
 
7296
            [AC_CHECK_LIB(intl, ngettext,
 
7297
                    [AC_CHECK_LIB(intl, dgettext,
 
7298
                                  gt_cv_func_dgettext_libintl=yes)])])
 
7299
 
 
7300
        if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
 
7301
          AC_MSG_CHECKING([if -liconv is needed to use gettext])
 
7302
          AC_MSG_RESULT([])
 
7303
          AC_CHECK_LIB(intl, ngettext,
 
7304
                [AC_CHECK_LIB(intl, dcgettext,
 
7305
                       [gt_cv_func_dgettext_libintl=yes
 
7306
                        libintl_extra_libs=-liconv],
 
7307
                        :,-liconv)],
 
7308
                :,-liconv)
 
7309
        fi
 
7310
 
 
7311
        #
 
7312
        # If we found libintl, then check in it for bind_textdomain_codeset();
 
7313
        # we'll prefer libc if neither have bind_textdomain_codeset(),
 
7314
        # and both have dgettext and ngettext
 
7315
        #
 
7316
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
 
7317
          glib_save_LIBS="$LIBS"
 
7318
          LIBS="$LIBS -lintl $libintl_extra_libs"
 
7319
          unset ac_cv_func_bind_textdomain_codeset
 
7320
          AC_CHECK_FUNCS(bind_textdomain_codeset)
 
7321
          LIBS="$glib_save_LIBS"
 
7322
 
 
7323
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
 
7324
            gt_cv_func_dgettext_libc=no
 
7325
          else
 
7326
            if test "$gt_cv_func_dgettext_libc" = "yes" \
 
7327
                && test "$gt_cv_func_ngettext_libc" = "yes"; then
 
7328
              gt_cv_func_dgettext_libintl=no
 
7329
            fi
 
7330
          fi
 
7331
        fi
 
7332
      fi
 
7333
 
 
7334
      if test "$gt_cv_func_dgettext_libc" = "yes" \
 
7335
        || test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
7336
        gt_cv_have_gettext=yes
 
7337
      fi
 
7338
  
 
7339
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
7340
        INTLLIBS="-lintl $libintl_extra_libs"
 
7341
      fi
 
7342
  
 
7343
      if test "$gt_cv_have_gettext" = "yes"; then
 
7344
        AC_DEFINE(HAVE_GETTEXT,1,
 
7345
          [Define if the GNU gettext() function is already present or preinstalled.])
 
7346
        GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
 
7347
          [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
 
7348
        if test "$MSGFMT" != "no"; then
 
7349
          glib_save_LIBS="$LIBS"
 
7350
          LIBS="$LIBS $INTLLIBS"
 
7351
          AC_CHECK_FUNCS(dcgettext)
 
7352
          AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
 
7353
          GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
 
7354
            [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
 
7355
          AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
 
7356
                         return _nl_msg_cat_cntr],
 
7357
            [CATOBJEXT=.gmo 
 
7358
             DATADIRNAME=share],
 
7359
            [case $host in
 
7360
            *-*-solaris*)
 
7361
            dnl On Solaris, if bind_textdomain_codeset is in libc,
 
7362
            dnl GNU format message catalog is always supported,
 
7363
            dnl since both are added to the libc all together.
 
7364
            dnl Hence, we'd like to go with DATADIRNAME=share and
 
7365
            dnl and CATOBJEXT=.gmo in this case.
 
7366
            AC_CHECK_FUNC(bind_textdomain_codeset,
 
7367
              [CATOBJEXT=.gmo 
 
7368
               DATADIRNAME=share],
 
7369
              [CATOBJEXT=.mo
 
7370
               DATADIRNAME=lib])
 
7371
            ;;
 
7372
            *)
 
7373
            CATOBJEXT=.mo
 
7374
            DATADIRNAME=lib
 
7375
            ;;
 
7376
            esac])
 
7377
          LIBS="$glib_save_LIBS"
 
7378
          INSTOBJEXT=.mo
 
7379
        else
 
7380
          gt_cv_have_gettext=no
 
7381
        fi
 
7382
      fi
 
7383
    ])
 
7384
 
 
7385
    if test "$gt_cv_have_gettext" = "yes" ; then
 
7386
      AC_DEFINE(ENABLE_NLS, 1,
 
7387
        [always defined to indicate that i18n is enabled])
 
7388
    fi
 
7389
 
 
7390
    dnl Test whether we really found GNU xgettext.
 
7391
    if test "$XGETTEXT" != ":"; then
 
7392
      dnl If it is not GNU xgettext we define it as : so that the
 
7393
      dnl Makefiles still can work.
 
7394
      if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 
7395
        : ;
 
7396
      else
 
7397
        AC_MSG_RESULT(
 
7398
          [found xgettext program is not GNU xgettext; ignore it])
 
7399
        XGETTEXT=":"
 
7400
      fi
 
7401
    fi
 
7402
 
 
7403
    # We need to process the po/ directory.
 
7404
    POSUB=po
 
7405
 
 
7406
    AC_OUTPUT_COMMANDS(
 
7407
      [case "$CONFIG_FILES" in *po/Makefile.in*)
 
7408
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 
7409
      esac])
 
7410
 
 
7411
    dnl These rules are solely for the distribution goal.  While doing this
 
7412
    dnl we only have to keep exactly one list of the available catalogs
 
7413
    dnl in configure.in.
 
7414
    for lang in $ALL_LINGUAS; do
 
7415
      GMOFILES="$GMOFILES $lang.gmo"
 
7416
      POFILES="$POFILES $lang.po"
 
7417
    done
 
7418
 
 
7419
    dnl Make all variables we use known to autoconf.
 
7420
    AC_SUBST(CATALOGS)
 
7421
    AC_SUBST(CATOBJEXT)
 
7422
    AC_SUBST(DATADIRNAME)
 
7423
    AC_SUBST(GMOFILES)
 
7424
    AC_SUBST(INSTOBJEXT)
 
7425
    AC_SUBST(INTLLIBS)
 
7426
    AC_SUBST(PO_IN_DATADIR_TRUE)
 
7427
    AC_SUBST(PO_IN_DATADIR_FALSE)
 
7428
    AC_SUBST(POFILES)
 
7429
    AC_SUBST(POSUB)
 
7430
  ])
 
7431
 
 
7432
# AM_GLIB_GNU_GETTEXT
 
7433
# -------------------
 
7434
# Do checks necessary for use of gettext. If a suitable implementation 
 
7435
# of gettext is found in either in libintl or in the C library,
 
7436
# it will set INTLLIBS to the libraries needed for use of gettext
 
7437
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
 
7438
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
 
7439
# on various variables needed by the Makefile.in.in installed by 
 
7440
# glib-gettextize.
 
7441
dnl
 
7442
glib_DEFUN([GLIB_GNU_GETTEXT],
 
7443
  [AC_REQUIRE([AC_PROG_CC])dnl
 
7444
   AC_REQUIRE([AC_HEADER_STDC])dnl
 
7445
   
 
7446
   GLIB_LC_MESSAGES
 
7447
   GLIB_WITH_NLS
 
7448
 
 
7449
   if test "$gt_cv_have_gettext" = "yes"; then
 
7450
     if test "x$ALL_LINGUAS" = "x"; then
 
7451
       LINGUAS=
 
7452
     else
 
7453
       AC_MSG_CHECKING(for catalogs to be installed)
 
7454
       NEW_LINGUAS=
 
7455
       for presentlang in $ALL_LINGUAS; do
 
7456
         useit=no
 
7457
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
 
7458
           desiredlanguages="$LINGUAS"
 
7459
         else
 
7460
           desiredlanguages="$ALL_LINGUAS"
 
7461
         fi
 
7462
         for desiredlang in $desiredlanguages; do
 
7463
           # Use the presentlang catalog if desiredlang is
 
7464
           #   a. equal to presentlang, or
 
7465
           #   b. a variant of presentlang (because in this case,
 
7466
           #      presentlang can be used as a fallback for messages
 
7467
           #      which are not translated in the desiredlang catalog).
 
7468
           case "$desiredlang" in
 
7469
             "$presentlang"*) useit=yes;;
 
7470
           esac
 
7471
         done
 
7472
         if test $useit = yes; then
 
7473
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
 
7474
         fi
 
7475
       done
 
7476
       LINGUAS=$NEW_LINGUAS
 
7477
       AC_MSG_RESULT($LINGUAS)
 
7478
     fi
 
7479
 
 
7480
     dnl Construct list of names of catalog files to be constructed.
 
7481
     if test -n "$LINGUAS"; then
 
7482
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
 
7483
     fi
 
7484
   fi
 
7485
 
 
7486
   dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
 
7487
   dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
 
7488
   dnl Try to locate is.
 
7489
   MKINSTALLDIRS=
 
7490
   if test -n "$ac_aux_dir"; then
 
7491
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 
7492
   fi
 
7493
   if test -z "$MKINSTALLDIRS"; then
 
7494
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 
7495
   fi
 
7496
   AC_SUBST(MKINSTALLDIRS)
 
7497
 
 
7498
   dnl Generate list of files to be processed by xgettext which will
 
7499
   dnl be included in po/Makefile.
 
7500
   test -d po || mkdir po
 
7501
   if test "x$srcdir" != "x."; then
 
7502
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
 
7503
       posrcprefix="$srcdir/"
 
7504
     else
 
7505
       posrcprefix="../$srcdir/"
 
7506
     fi
 
7507
   else
 
7508
     posrcprefix="../"
 
7509
   fi
 
7510
   rm -f po/POTFILES
 
7511
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
 
7512
        < $srcdir/po/POTFILES.in > po/POTFILES
 
7513
  ])
 
7514
 
 
7515
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
 
7516
# -------------------------------
 
7517
# Define VARIABLE to the location where catalog files will
 
7518
# be installed by po/Makefile.
 
7519
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
 
7520
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
 
7521
glib_save_prefix="$prefix"
 
7522
glib_save_exec_prefix="$exec_prefix"
 
7523
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
7524
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
 
7525
if test "x$CATOBJEXT" = "x.mo" ; then
 
7526
  localedir=`eval echo "${libdir}/locale"`
 
7527
else
 
7528
  localedir=`eval echo "${datadir}/locale"`
 
7529
fi
 
7530
prefix="$glib_save_prefix"
 
7531
exec_prefix="$glib_save_exec_prefix"
 
7532
AC_DEFINE_UNQUOTED($1, "$localedir",
 
7533
  [Define the location where the catalogs will be installed])
 
7534
])
 
7535
 
 
7536
dnl
 
7537
dnl Now the definitions that aclocal will find
 
7538
dnl
 
7539
ifdef(glib_configure_in,[],[
 
7540
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
 
7541
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
 
7542
])dnl
 
7543
 
6491
7544
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
6492
7545
6493
7546
# Copyright Ā© 2004 Scott James Remnant <scott@netsplit.com>.
6620
7673
fi[]dnl
6621
7674
])# PKG_CHECK_MODULES
6622
7675
 
6623
 
#                                                        -*- Autoconf -*-
6624
 
# Copyright (C) 2002, 2003  Free Software Foundation, Inc.
6625
 
# Generated from amversion.in; do not edit by hand.
6626
 
 
6627
 
# This program is free software; you can redistribute it and/or modify
6628
 
# it under the terms of the GNU General Public License as published by
6629
 
# the Free Software Foundation; either version 2, or (at your option)
6630
 
# any later version.
6631
 
 
6632
 
# This program is distributed in the hope that it will be useful,
6633
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6634
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6635
 
# GNU General Public License for more details.
6636
 
 
6637
 
# You should have received a copy of the GNU General Public License
6638
 
# along with this program; if not, write to the Free Software
6639
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6640
 
 
6641
 
# AM_AUTOMAKE_VERSION(VERSION)
6642
 
# ----------------------------
6643
 
# Automake X.Y traces this macro to ensure aclocal.m4 has been
6644
 
# generated from the m4 files accompanying Automake X.Y.
6645
 
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
6646
 
 
6647
 
# AM_SET_CURRENT_AUTOMAKE_VERSION
6648
 
# -------------------------------
6649
 
# Call AM_AUTOMAKE_VERSION so it can be traced.
6650
 
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6651
 
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6652
 
         [AM_AUTOMAKE_VERSION([1.8.5])])
6653
 
 
6654
 
# Figure out how to run the assembler.             -*- Autoconf -*-
6655
 
 
6656
 
# serial 3
6657
 
 
6658
 
# Copyright (C) 2001, 2003, 2004 Free Software Foundation, Inc.
6659
 
 
6660
 
# This program is free software; you can redistribute it and/or modify
6661
 
# it under the terms of the GNU General Public License as published by
6662
 
# the Free Software Foundation; either version 2, or (at your option)
6663
 
# any later version.
6664
 
 
6665
 
# This program is distributed in the hope that it will be useful,
6666
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6667
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6668
 
# GNU General Public License for more details.
6669
 
 
6670
 
# You should have received a copy of the GNU General Public License
6671
 
# along with this program; if not, write to the Free Software
6672
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6673
 
# 02111-1307, USA.
6674
 
 
6675
 
# AM_PROG_AS
6676
 
# ----------
6677
 
AC_DEFUN([AM_PROG_AS],
6678
 
[# By default we simply use the C compiler to build assembly code.
6679
 
AC_REQUIRE([AC_PROG_CC])
6680
 
test "${CCAS+set}" = set || CCAS=$CC
6681
 
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6682
 
AC_ARG_VAR([CCAS],      [assembler compiler command (defaults to CC)])
6683
 
AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
6684
 
])
6685
 
 
6686
 
# AM_AUX_DIR_EXPAND
6687
 
 
6688
 
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
6689
 
 
6690
 
# This program is free software; you can redistribute it and/or modify
6691
 
# it under the terms of the GNU General Public License as published by
6692
 
# the Free Software Foundation; either version 2, or (at your option)
6693
 
# any later version.
6694
 
 
6695
 
# This program is distributed in the hope that it will be useful,
6696
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6697
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6698
 
# GNU General Public License for more details.
6699
 
 
6700
 
# You should have received a copy of the GNU General Public License
6701
 
# along with this program; if not, write to the Free Software
6702
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6703
 
# 02111-1307, USA.
6704
 
 
6705
 
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
6706
 
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
6707
 
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
6708
 
#
6709
 
# Of course, Automake must honor this variable whenever it calls a
6710
 
# tool from the auxiliary directory.  The problem is that $srcdir (and
6711
 
# therefore $ac_aux_dir as well) can be either absolute or relative,
6712
 
# depending on how configure is run.  This is pretty annoying, since
6713
 
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
6714
 
# source directory, any form will work fine, but in subdirectories a
6715
 
# relative path needs to be adjusted first.
6716
 
#
6717
 
# $ac_aux_dir/missing
6718
 
#    fails when called from a subdirectory if $ac_aux_dir is relative
6719
 
# $top_srcdir/$ac_aux_dir/missing
6720
 
#    fails if $ac_aux_dir is absolute,
6721
 
#    fails when called from a subdirectory in a VPATH build with
6722
 
#          a relative $ac_aux_dir
6723
 
#
6724
 
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
6725
 
# are both prefixed by $srcdir.  In an in-source build this is usually
6726
 
# harmless because $srcdir is `.', but things will broke when you
6727
 
# start a VPATH build or use an absolute $srcdir.
6728
 
#
6729
 
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
6730
 
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
6731
 
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
6732
 
# and then we would define $MISSING as
6733
 
#   MISSING="\${SHELL} $am_aux_dir/missing"
6734
 
# This will work as long as MISSING is not called from configure, because
6735
 
# unfortunately $(top_srcdir) has no meaning in configure.
6736
 
# However there are other variables, like CC, which are often used in
6737
 
# configure, and could therefore not use this "fixed" $ac_aux_dir.
6738
 
#
6739
 
# Another solution, used here, is to always expand $ac_aux_dir to an
6740
 
# absolute PATH.  The drawback is that using absolute paths prevent a
6741
 
# configured tree to be moved without reconfiguration.
6742
 
 
6743
 
AC_DEFUN([AM_AUX_DIR_EXPAND],
6744
 
[dnl Rely on autoconf to set up CDPATH properly.
6745
 
AC_PREREQ([2.50])dnl
6746
 
# expand $ac_aux_dir to an absolute path
6747
 
am_aux_dir=`cd $ac_aux_dir && pwd`
6748
 
])
6749
 
 
6750
 
 
6751
 
# Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003
6752
 
# Free Software Foundation, Inc.
6753
 
 
6754
 
# This program is free software; you can redistribute it and/or modify
6755
 
# it under the terms of the GNU General Public License as published by
6756
 
# the Free Software Foundation; either version 2, or (at your option)
6757
 
# any later version.
6758
 
 
6759
 
# This program is distributed in the hope that it will be useful,
6760
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6761
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6762
 
# GNU General Public License for more details.
6763
 
 
6764
 
# You should have received a copy of the GNU General Public License
6765
 
# along with this program; if not, write to the Free Software
6766
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6767
 
# 02111-1307, USA.
6768
 
 
6769
 
# serial 3
6770
 
 
6771
 
# This was merged into AC_PROG_CC in Autoconf.
6772
 
 
6773
 
AU_DEFUN([AM_PROG_CC_STDC],
6774
 
[AC_PROG_CC
6775
 
AC_DIAGNOSE([obsolete], [$0:
6776
 
        your code should no longer depend upon `am_cv_prog_cc_stdc', but upon
6777
 
        `ac_cv_prog_cc_stdc'.  Remove this warning and the assignment when
6778
 
        you adjust the code.  You can also remove the above call to
6779
 
        AC_PROG_CC if you already called it elsewhere.])
6780
 
am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6781
 
])
6782
 
AU_DEFUN([fp_PROG_CC_STDC])
6783
 
 
6784
 
# AM_CONDITIONAL                                              -*- Autoconf -*-
6785
 
 
6786
 
# Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
6787
 
 
6788
 
# This program is free software; you can redistribute it and/or modify
6789
 
# it under the terms of the GNU General Public License as published by
6790
 
# the Free Software Foundation; either version 2, or (at your option)
6791
 
# any later version.
6792
 
 
6793
 
# This program is distributed in the hope that it will be useful,
6794
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6795
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6796
 
# GNU General Public License for more details.
6797
 
 
6798
 
# You should have received a copy of the GNU General Public License
6799
 
# along with this program; if not, write to the Free Software
6800
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6801
 
# 02111-1307, USA.
6802
 
 
6803
 
# serial 6
6804
 
 
6805
 
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
6806
 
# -------------------------------------
6807
 
# Define a conditional.
6808
 
AC_DEFUN([AM_CONDITIONAL],
6809
 
[AC_PREREQ(2.52)dnl
6810
 
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
6811
 
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
6812
 
AC_SUBST([$1_TRUE])
6813
 
AC_SUBST([$1_FALSE])
6814
 
if $2; then
6815
 
  $1_TRUE=
6816
 
  $1_FALSE='#'
6817
 
else
6818
 
  $1_TRUE='#'
6819
 
  $1_FALSE=
6820
 
fi
6821
 
AC_CONFIG_COMMANDS_PRE(
6822
 
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
6823
 
  AC_MSG_ERROR([conditional "$1" was never defined.
6824
 
Usually this means the macro was only invoked conditionally.])
6825
 
fi])])
6826
 
 
6827
 
# serial 7                                              -*- Autoconf -*-
6828
 
 
6829
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
6830
 
# Free Software Foundation, Inc.
6831
 
 
6832
 
# This program is free software; you can redistribute it and/or modify
6833
 
# it under the terms of the GNU General Public License as published by
6834
 
# the Free Software Foundation; either version 2, or (at your option)
6835
 
# any later version.
6836
 
 
6837
 
# This program is distributed in the hope that it will be useful,
6838
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6839
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6840
 
# GNU General Public License for more details.
6841
 
 
6842
 
# You should have received a copy of the GNU General Public License
6843
 
# along with this program; if not, write to the Free Software
6844
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6845
 
# 02111-1307, USA.
6846
 
 
6847
 
 
6848
 
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6849
 
# written in clear, in which case automake, when reading aclocal.m4,
6850
 
# will think it sees a *use*, and therefore will trigger all it's
6851
 
# C support machinery.  Also note that it means that autoscan, seeing
6852
 
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
6853
 
 
6854
 
 
6855
 
 
6856
 
# _AM_DEPENDENCIES(NAME)
6857
 
# ----------------------
6858
 
# See how the compiler implements dependency checking.
6859
 
# NAME is "CC", "CXX", "GCJ", or "OBJC".
6860
 
# We try a few techniques and use that to set a single cache variable.
6861
 
#
6862
 
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
6863
 
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
6864
 
# dependency, and given that the user is not expected to run this macro,
6865
 
# just rely on AC_PROG_CC.
6866
 
AC_DEFUN([_AM_DEPENDENCIES],
6867
 
[AC_REQUIRE([AM_SET_DEPDIR])dnl
6868
 
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
6869
 
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
6870
 
AC_REQUIRE([AM_DEP_TRACK])dnl
6871
 
 
6872
 
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
6873
 
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
6874
 
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
6875
 
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
6876
 
                   [depcc="$$1"   am_compiler_list=])
6877
 
 
6878
 
AC_CACHE_CHECK([dependency style of $depcc],
6879
 
               [am_cv_$1_dependencies_compiler_type],
6880
 
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6881
 
  # We make a subdir and do the tests there.  Otherwise we can end up
6882
 
  # making bogus files that we don't know about and never remove.  For
6883
 
  # instance it was reported that on HP-UX the gcc test will end up
6884
 
  # making a dummy file named `D' -- because `-MD' means `put the output
6885
 
  # in D'.
6886
 
  mkdir conftest.dir
6887
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
6888
 
  # using a relative directory.
6889
 
  cp "$am_depcomp" conftest.dir
6890
 
  cd conftest.dir
6891
 
  # We will build objects and dependencies in a subdirectory because
6892
 
  # it helps to detect inapplicable dependency modes.  For instance
6893
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
6894
 
  # side effect of compilation, but ICC will put the dependencies in
6895
 
  # the current directory while Tru64 will put them in the object
6896
 
  # directory.
6897
 
  mkdir sub
6898
 
 
6899
 
  am_cv_$1_dependencies_compiler_type=none
6900
 
  if test "$am_compiler_list" = ""; then
6901
 
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
6902
 
  fi
6903
 
  for depmode in $am_compiler_list; do
6904
 
    # Setup a source with many dependencies, because some compilers
6905
 
    # like to wrap large dependency lists on column 80 (with \), and
6906
 
    # we should not choose a depcomp mode which is confused by this.
6907
 
    #
6908
 
    # We need to recreate these files for each test, as the compiler may
6909
 
    # overwrite some of them when testing with obscure command lines.
6910
 
    # This happens at least with the AIX C compiler.
6911
 
    : > sub/conftest.c
6912
 
    for i in 1 2 3 4 5 6; do
6913
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6914
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6915
 
      # Solaris 8's {/usr,}/bin/sh.
6916
 
      touch sub/conftst$i.h
6917
 
    done
6918
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6919
 
 
6920
 
    case $depmode in
6921
 
    nosideeffect)
6922
 
      # after this tag, mechanisms are not by side-effect, so they'll
6923
 
      # only be used when explicitly requested
6924
 
      if test "x$enable_dependency_tracking" = xyes; then
6925
 
        continue
6926
 
      else
6927
 
        break
6928
 
      fi
6929
 
      ;;
6930
 
    none) break ;;
6931
 
    esac
6932
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6933
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
6934
 
    # handle `-M -o', and we need to detect this.
6935
 
    if depmode=$depmode \
6936
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6937
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6938
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6939
 
         >/dev/null 2>conftest.err &&
6940
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6941
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6942
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6943
 
      # icc doesn't choke on unknown options, it will just issue warnings
6944
 
      # or remarks (even with -Werror).  So we grep stderr for any message
6945
 
      # that says an option was ignored or not supported.
6946
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
6947
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
6948
 
      # The diagnosis changed in icc 8.0:
6949
 
      #   icc: Command line remark: option '-MP' not supported
6950
 
      if (grep 'ignoring option' conftest.err ||
6951
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6952
 
        am_cv_$1_dependencies_compiler_type=$depmode
6953
 
        break
6954
 
      fi
6955
 
    fi
6956
 
  done
6957
 
 
6958
 
  cd ..
6959
 
  rm -rf conftest.dir
6960
 
else
6961
 
  am_cv_$1_dependencies_compiler_type=none
6962
 
fi
6963
 
])
6964
 
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
6965
 
AM_CONDITIONAL([am__fastdep$1], [
6966
 
  test "x$enable_dependency_tracking" != xno \
6967
 
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
6968
 
])
6969
 
 
6970
 
 
6971
 
# AM_SET_DEPDIR
6972
 
# -------------
6973
 
# Choose a directory name for dependency files.
6974
 
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
6975
 
AC_DEFUN([AM_SET_DEPDIR],
6976
 
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
6977
 
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
6978
 
])
6979
 
 
6980
 
 
6981
 
# AM_DEP_TRACK
6982
 
# ------------
6983
 
AC_DEFUN([AM_DEP_TRACK],
6984
 
[AC_ARG_ENABLE(dependency-tracking,
6985
 
[  --disable-dependency-tracking  speeds up one-time build
6986
 
  --enable-dependency-tracking   do not reject slow dependency extractors])
6987
 
if test "x$enable_dependency_tracking" != xno; then
6988
 
  am_depcomp="$ac_aux_dir/depcomp"
6989
 
  AMDEPBACKSLASH='\'
6990
 
fi
6991
 
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
6992
 
AC_SUBST([AMDEPBACKSLASH])
6993
 
])
6994
 
 
6995
 
# Generate code to set up dependency tracking.   -*- Autoconf -*-
6996
 
 
6997
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
6998
 
 
6999
 
# This program is free software; you can redistribute it and/or modify
7000
 
# it under the terms of the GNU General Public License as published by
7001
 
# the Free Software Foundation; either version 2, or (at your option)
7002
 
# any later version.
7003
 
 
7004
 
# This program is distributed in the hope that it will be useful,
7005
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7006
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7007
 
# GNU General Public License for more details.
7008
 
 
7009
 
# You should have received a copy of the GNU General Public License
7010
 
# along with this program; if not, write to the Free Software
7011
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7012
 
# 02111-1307, USA.
7013
 
 
7014
 
#serial 2
7015
 
 
7016
 
# _AM_OUTPUT_DEPENDENCY_COMMANDS
7017
 
# ------------------------------
7018
 
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
7019
 
[for mf in $CONFIG_FILES; do
7020
 
  # Strip MF so we end up with the name of the file.
7021
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
7022
 
  # Check whether this is an Automake generated Makefile or not.
7023
 
  # We used to match only the files named `Makefile.in', but
7024
 
  # some people rename them; so instead we look at the file content.
7025
 
  # Grep'ing the first line is not enough: some people post-process
7026
 
  # each Makefile.in and add a new line on top of each file to say so.
7027
 
  # So let's grep whole file.
7028
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7029
 
    dirpart=`AS_DIRNAME("$mf")`
7030
 
  else
7031
 
    continue
7032
 
  fi
7033
 
  grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
7034
 
  # Extract the definition of DEP_FILES from the Makefile without
7035
 
  # running `make'.
7036
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7037
 
  test -z "$DEPDIR" && continue
7038
 
  # When using ansi2knr, U may be empty or an underscore; expand it
7039
 
  U=`sed -n 's/^U = //p' < "$mf"`
7040
 
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
7041
 
  # We invoke sed twice because it is the simplest approach to
7042
 
  # changing $(DEPDIR) to its actual value in the expansion.
7043
 
  for file in `sed -n '
7044
 
    /^DEP_FILES = .*\\\\$/ {
7045
 
      s/^DEP_FILES = //
7046
 
      :loop
7047
 
        s/\\\\$//
7048
 
        p
7049
 
        n
7050
 
        /\\\\$/ b loop
7051
 
      p
7052
 
    }
7053
 
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
7054
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7055
 
    # Make sure the directory exists.
7056
 
    test -f "$dirpart/$file" && continue
7057
 
    fdir=`AS_DIRNAME(["$file"])`
7058
 
    AS_MKDIR_P([$dirpart/$fdir])
7059
 
    # echo "creating $dirpart/$file"
7060
 
    echo '# dummy' > "$dirpart/$file"
7061
 
  done
7062
 
done
7063
 
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
7064
 
 
7065
 
 
7066
 
# AM_OUTPUT_DEPENDENCY_COMMANDS
7067
 
# -----------------------------
7068
 
# This macro should only be invoked once -- use via AC_REQUIRE.
7069
 
#
7070
 
# This code is only required when automatic dependency tracking
7071
 
# is enabled.  FIXME.  This creates each `.P' file that we will
7072
 
# need in order to bootstrap the dependency handling code.
7073
 
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
7074
 
[AC_CONFIG_COMMANDS([depfiles],
7075
 
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
7076
 
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
7077
 
])
7078
 
 
7079
 
# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
7080
 
 
7081
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
7082
 
 
7083
 
# This program is free software; you can redistribute it and/or modify
7084
 
# it under the terms of the GNU General Public License as published by
7085
 
# the Free Software Foundation; either version 2, or (at your option)
7086
 
# any later version.
7087
 
 
7088
 
# This program is distributed in the hope that it will be useful,
7089
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7090
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7091
 
# GNU General Public License for more details.
7092
 
 
7093
 
# You should have received a copy of the GNU General Public License
7094
 
# along with this program; if not, write to the Free Software
7095
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7096
 
# 02111-1307, USA.
7097
 
 
7098
 
# serial 7
7099
 
 
7100
 
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
7101
 
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
7102
 
 
7103
 
# Do all the work for Automake.                            -*- Autoconf -*-
7104
 
 
7105
 
# This macro actually does too much some checks are only needed if
7106
 
# your package does certain things.  But this isn't really a big deal.
7107
 
 
7108
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
7109
 
# Free Software Foundation, Inc.
7110
 
 
7111
 
# This program is free software; you can redistribute it and/or modify
7112
 
# it under the terms of the GNU General Public License as published by
7113
 
# the Free Software Foundation; either version 2, or (at your option)
7114
 
# any later version.
7115
 
 
7116
 
# This program is distributed in the hope that it will be useful,
7117
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7118
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7119
 
# GNU General Public License for more details.
7120
 
 
7121
 
# You should have received a copy of the GNU General Public License
7122
 
# along with this program; if not, write to the Free Software
7123
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7124
 
# 02111-1307, USA.
7125
 
 
7126
 
# serial 11
7127
 
 
7128
 
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
7129
 
# AM_INIT_AUTOMAKE([OPTIONS])
7130
 
# -----------------------------------------------
7131
 
# The call with PACKAGE and VERSION arguments is the old style
7132
 
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
7133
 
# and VERSION should now be passed to AC_INIT and removed from
7134
 
# the call to AM_INIT_AUTOMAKE.
7135
 
# We support both call styles for the transition.  After
7136
 
# the next Automake release, Autoconf can make the AC_INIT
7137
 
# arguments mandatory, and then we can depend on a new Autoconf
7138
 
# release and drop the old call support.
7139
 
AC_DEFUN([AM_INIT_AUTOMAKE],
7140
 
[AC_PREREQ([2.58])dnl
7141
 
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
7142
 
dnl the ones we care about.
7143
 
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
7144
 
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
7145
 
AC_REQUIRE([AC_PROG_INSTALL])dnl
7146
 
# test to see if srcdir already configured
7147
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
7148
 
   test -f $srcdir/config.status; then
7149
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7150
 
fi
7151
 
 
7152
 
# test whether we have cygpath
7153
 
if test -z "$CYGPATH_W"; then
7154
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
7155
 
    CYGPATH_W='cygpath -w'
7156
 
  else
7157
 
    CYGPATH_W=echo
7158
 
  fi
7159
 
fi
7160
 
AC_SUBST([CYGPATH_W])
7161
 
 
7162
 
# Define the identity of the package.
7163
 
dnl Distinguish between old-style and new-style calls.
7164
 
m4_ifval([$2],
7165
 
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
7166
 
 AC_SUBST([PACKAGE], [$1])dnl
7167
 
 AC_SUBST([VERSION], [$2])],
7168
 
[_AM_SET_OPTIONS([$1])dnl
7169
 
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
7170
 
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
7171
 
 
7172
 
_AM_IF_OPTION([no-define],,
7173
 
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
7174
 
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
7175
 
 
7176
 
# Some tools Automake needs.
7177
 
AC_REQUIRE([AM_SANITY_CHECK])dnl
7178
 
AC_REQUIRE([AC_ARG_PROGRAM])dnl
7179
 
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
7180
 
AM_MISSING_PROG(AUTOCONF, autoconf)
7181
 
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
7182
 
AM_MISSING_PROG(AUTOHEADER, autoheader)
7183
 
AM_MISSING_PROG(MAKEINFO, makeinfo)
7184
 
AM_MISSING_PROG(AMTAR, tar)
7185
 
AM_PROG_INSTALL_SH
7186
 
AM_PROG_INSTALL_STRIP
7187
 
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
7188
 
# We need awk for the "check" target.  The system "awk" is bad on
7189
 
# some platforms.
7190
 
AC_REQUIRE([AC_PROG_AWK])dnl
7191
 
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
7192
 
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
7193
 
 
7194
 
_AM_IF_OPTION([no-dependencies],,
7195
 
[AC_PROVIDE_IFELSE([AC_PROG_CC],
7196
 
                  [_AM_DEPENDENCIES(CC)],
7197
 
                  [define([AC_PROG_CC],
7198
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
7199
 
AC_PROVIDE_IFELSE([AC_PROG_CXX],
7200
 
                  [_AM_DEPENDENCIES(CXX)],
7201
 
                  [define([AC_PROG_CXX],
7202
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
7203
 
])
7204
 
])
7205
 
 
7206
 
 
7207
 
# When config.status generates a header, we must update the stamp-h file.
7208
 
# This file resides in the same directory as the config header
7209
 
# that is generated.  The stamp files are numbered to have different names.
7210
 
 
7211
 
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
7212
 
# loop where config.status creates the headers, so we can generate
7213
 
# our stamp files there.
7214
 
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
7215
 
[# Compute $1's index in $config_headers.
7216
 
_am_stamp_count=1
7217
 
for _am_header in $config_headers :; do
7218
 
  case $_am_header in
7219
 
    $1 | $1:* )
7220
 
      break ;;
7221
 
    * )
7222
 
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7223
 
  esac
7224
 
done
7225
 
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
7226
 
 
7227
 
# AM_PROG_INSTALL_SH
7228
 
# ------------------
7229
 
# Define $install_sh.
7230
 
 
7231
 
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
7232
 
 
7233
 
# This program is free software; you can redistribute it and/or modify
7234
 
# it under the terms of the GNU General Public License as published by
7235
 
# the Free Software Foundation; either version 2, or (at your option)
7236
 
# any later version.
7237
 
 
7238
 
# This program is distributed in the hope that it will be useful,
7239
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7240
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7241
 
# GNU General Public License for more details.
7242
 
 
7243
 
# You should have received a copy of the GNU General Public License
7244
 
# along with this program; if not, write to the Free Software
7245
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7246
 
# 02111-1307, USA.
7247
 
 
7248
 
AC_DEFUN([AM_PROG_INSTALL_SH],
7249
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7250
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
7251
 
AC_SUBST(install_sh)])
7252
 
 
7253
 
#                                                          -*- Autoconf -*-
7254
 
# Copyright (C) 2003  Free Software Foundation, Inc.
7255
 
 
7256
 
# This program is free software; you can redistribute it and/or modify
7257
 
# it under the terms of the GNU General Public License as published by
7258
 
# the Free Software Foundation; either version 2, or (at your option)
7259
 
# any later version.
7260
 
 
7261
 
# This program is distributed in the hope that it will be useful,
7262
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7263
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7264
 
# GNU General Public License for more details.
7265
 
 
7266
 
# You should have received a copy of the GNU General Public License
7267
 
# along with this program; if not, write to the Free Software
7268
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7269
 
# 02111-1307, USA.
7270
 
 
7271
 
# serial 1
7272
 
 
7273
 
# Check whether the underlying file-system supports filenames
7274
 
# with a leading dot.  For instance MS-DOS doesn't.
7275
 
AC_DEFUN([AM_SET_LEADING_DOT],
7276
 
[rm -rf .tst 2>/dev/null
7277
 
mkdir .tst 2>/dev/null
7278
 
if test -d .tst; then
7279
 
  am__leading_dot=.
7280
 
else
7281
 
  am__leading_dot=_
7282
 
fi
7283
 
rmdir .tst 2>/dev/null
7284
 
AC_SUBST([am__leading_dot])])
7285
 
 
7286
 
# Check to see how 'make' treats includes.      -*- Autoconf -*-
7287
 
 
7288
 
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
7289
 
 
7290
 
# This program is free software; you can redistribute it and/or modify
7291
 
# it under the terms of the GNU General Public License as published by
7292
 
# the Free Software Foundation; either version 2, or (at your option)
7293
 
# any later version.
7294
 
 
7295
 
# This program is distributed in the hope that it will be useful,
7296
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7297
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7298
 
# GNU General Public License for more details.
7299
 
 
7300
 
# You should have received a copy of the GNU General Public License
7301
 
# along with this program; if not, write to the Free Software
7302
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7303
 
# 02111-1307, USA.
7304
 
 
7305
 
# serial 2
7306
 
 
7307
 
# AM_MAKE_INCLUDE()
7308
 
# -----------------
7309
 
# Check to see how make treats includes.
7310
 
AC_DEFUN([AM_MAKE_INCLUDE],
7311
 
[am_make=${MAKE-make}
7312
 
cat > confinc << 'END'
7313
 
am__doit:
7314
 
        @echo done
7315
 
.PHONY: am__doit
7316
 
END
7317
 
# If we don't find an include directive, just comment out the code.
7318
 
AC_MSG_CHECKING([for style of include used by $am_make])
7319
 
am__include="#"
7320
 
am__quote=
7321
 
_am_result=none
7322
 
# First try GNU make style include.
7323
 
echo "include confinc" > confmf
7324
 
# We grep out `Entering directory' and `Leaving directory'
7325
 
# messages which can occur if `w' ends up in MAKEFLAGS.
7326
 
# In particular we don't look at `^make:' because GNU make might
7327
 
# be invoked under some other name (usually "gmake"), in which
7328
 
# case it prints its new name instead of `make'.
7329
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
7330
 
   am__include=include
7331
 
   am__quote=
7332
 
   _am_result=GNU
7333
 
fi
7334
 
# Now try BSD make style include.
7335
 
if test "$am__include" = "#"; then
7336
 
   echo '.include "confinc"' > confmf
7337
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
7338
 
      am__include=.include
7339
 
      am__quote="\""
7340
 
      _am_result=BSD
7341
 
   fi
7342
 
fi
7343
 
AC_SUBST([am__include])
7344
 
AC_SUBST([am__quote])
7345
 
AC_MSG_RESULT([$_am_result])
7346
 
rm -f confinc confmf
7347
 
])
7348
 
 
7349
 
# serial 2
7350
 
 
7351
 
# AM_PROG_CC_C_O
7352
 
# --------------
7353
 
# Like AC_PROG_CC_C_O, but changed for automake.
7354
 
 
7355
 
# Copyright (C) 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
7356
 
 
7357
 
# This program is free software; you can redistribute it and/or modify
7358
 
# it under the terms of the GNU General Public License as published by
7359
 
# the Free Software Foundation; either version 2, or (at your option)
7360
 
# any later version.
7361
 
 
7362
 
# This program is distributed in the hope that it will be useful,
7363
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7364
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7365
 
# GNU General Public License for more details.
7366
 
 
7367
 
# You should have received a copy of the GNU General Public License
7368
 
# along with this program; if not, write to the Free Software
7369
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7370
 
# 02111-1307, USA.
7371
 
 
7372
 
AC_DEFUN([AM_PROG_CC_C_O],
7373
 
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
7374
 
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7375
 
# FIXME: we rely on the cache variable name because
7376
 
# there is no other way.
7377
 
set dummy $CC
7378
 
ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
7379
 
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
7380
 
   # Losing compiler, so override with the script.
7381
 
   # FIXME: It is wrong to rewrite CC.
7382
 
   # But if we don't then we get into trouble of one sort or another.
7383
 
   # A longer-term fix would be to have automake use am__CC in this case,
7384
 
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7385
 
   CC="$am_aux_dir/compile $CC"
7386
 
fi
7387
 
])
7388
 
 
7389
 
#  -*- Autoconf -*-
7390
 
 
7391
 
 
7392
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
7393
 
 
7394
 
# This program is free software; you can redistribute it and/or modify
7395
 
# it under the terms of the GNU General Public License as published by
7396
 
# the Free Software Foundation; either version 2, or (at your option)
7397
 
# any later version.
7398
 
 
7399
 
# This program is distributed in the hope that it will be useful,
7400
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7401
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7402
 
# GNU General Public License for more details.
7403
 
 
7404
 
# You should have received a copy of the GNU General Public License
7405
 
# along with this program; if not, write to the Free Software
7406
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7407
 
# 02111-1307, USA.
7408
 
 
7409
 
# serial 3
7410
 
 
7411
 
# AM_MISSING_PROG(NAME, PROGRAM)
7412
 
# ------------------------------
7413
 
AC_DEFUN([AM_MISSING_PROG],
7414
 
[AC_REQUIRE([AM_MISSING_HAS_RUN])
7415
 
$1=${$1-"${am_missing_run}$2"}
7416
 
AC_SUBST($1)])
7417
 
 
7418
 
 
7419
 
# AM_MISSING_HAS_RUN
7420
 
# ------------------
7421
 
# Define MISSING if not defined so far and test if it supports --run.
7422
 
# If it does, set am_missing_run to use it, otherwise, to nothing.
7423
 
AC_DEFUN([AM_MISSING_HAS_RUN],
7424
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7425
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
7426
 
# Use eval to expand $SHELL
7427
 
if eval "$MISSING --run true"; then
7428
 
  am_missing_run="$MISSING --run "
7429
 
else
7430
 
  am_missing_run=
7431
 
  AC_MSG_WARN([`missing' script is too old or missing])
7432
 
fi
7433
 
])
7434
 
 
7435
 
# AM_PROG_MKDIR_P
7436
 
# ---------------
7437
 
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
7438
 
 
7439
 
# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
7440
 
 
7441
 
# This program is free software; you can redistribute it and/or modify
7442
 
# it under the terms of the GNU General Public License as published by
7443
 
# the Free Software Foundation; either version 2, or (at your option)
7444
 
# any later version.
7445
 
 
7446
 
# This program is distributed in the hope that it will be useful,
7447
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7448
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7449
 
# GNU General Public License for more details.
7450
 
 
7451
 
# You should have received a copy of the GNU General Public License
7452
 
# along with this program; if not, write to the Free Software
7453
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7454
 
# 02111-1307, USA.
7455
 
 
7456
 
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
7457
 
# created by `make install' are always world readable, even if the
7458
 
# installer happens to have an overly restrictive umask (e.g. 077).
7459
 
# This was a mistake.  There are at least two reasons why we must not
7460
 
# use `-m 0755':
7461
 
#   - it causes special bits like SGID to be ignored,
7462
 
#   - it may be too restrictive (some setups expect 775 directories).
7463
 
#
7464
 
# Do not use -m 0755 and let people choose whatever they expect by
7465
 
# setting umask.
7466
 
#
7467
 
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
7468
 
# Some implementations (such as Solaris 8's) are not thread-safe: if a
7469
 
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
7470
 
# concurrently, both version can detect that a/ is missing, but only
7471
 
# one can create it and the other will error out.  Consequently we
7472
 
# restrict ourselves to GNU make (using the --version option ensures
7473
 
# this.)
7474
 
AC_DEFUN([AM_PROG_MKDIR_P],
7475
 
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7476
 
  # Keeping the `.' argument allows $(mkdir_p) to be used without
7477
 
  # argument.  Indeed, we sometimes output rules like
7478
 
  #   $(mkdir_p) $(somedir)
7479
 
  # where $(somedir) is conditionally defined.
7480
 
  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
7481
 
  # expensive solution, as it forces Make to start a sub-shell.)
7482
 
  mkdir_p='mkdir -p -- .'
7483
 
else
7484
 
  # On NextStep and OpenStep, the `mkdir' command does not
7485
 
  # recognize any option.  It will interpret all options as
7486
 
  # directories to create, and then abort because `.' already
7487
 
  # exists.
7488
 
  for d in ./-p ./--version;
7489
 
  do
7490
 
    test -d $d && rmdir $d
7491
 
  done
7492
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7493
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
7494
 
    mkdir_p='$(mkinstalldirs)'
7495
 
  else
7496
 
    mkdir_p='$(install_sh) -d'
7497
 
  fi
7498
 
fi
7499
 
AC_SUBST([mkdir_p])])
7500
 
 
7501
 
# Helper functions for option handling.                    -*- Autoconf -*-
7502
 
 
7503
 
# Copyright (C) 2001, 2002, 2003  Free Software Foundation, Inc.
7504
 
 
7505
 
# This program is free software; you can redistribute it and/or modify
7506
 
# it under the terms of the GNU General Public License as published by
7507
 
# the Free Software Foundation; either version 2, or (at your option)
7508
 
# any later version.
7509
 
 
7510
 
# This program is distributed in the hope that it will be useful,
7511
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7512
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7513
 
# GNU General Public License for more details.
7514
 
 
7515
 
# You should have received a copy of the GNU General Public License
7516
 
# along with this program; if not, write to the Free Software
7517
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7518
 
# 02111-1307, USA.
7519
 
 
7520
 
# serial 2
7521
 
 
7522
 
# _AM_MANGLE_OPTION(NAME)
7523
 
# -----------------------
7524
 
AC_DEFUN([_AM_MANGLE_OPTION],
7525
 
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
7526
 
 
7527
 
# _AM_SET_OPTION(NAME)
7528
 
# ------------------------------
7529
 
# Set option NAME.  Presently that only means defining a flag for this option.
7530
 
AC_DEFUN([_AM_SET_OPTION],
7531
 
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
7532
 
 
7533
 
# _AM_SET_OPTIONS(OPTIONS)
7534
 
# ----------------------------------
7535
 
# OPTIONS is a space-separated list of Automake options.
7536
 
AC_DEFUN([_AM_SET_OPTIONS],
7537
 
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
7538
 
 
7539
 
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
7540
 
# -------------------------------------------
7541
 
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
7542
 
AC_DEFUN([_AM_IF_OPTION],
7543
 
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
7544
 
 
7545
 
#
7546
 
# Check to make sure that the build environment is sane.
7547
 
#
7548
 
 
7549
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
7550
 
 
7551
 
# This program is free software; you can redistribute it and/or modify
7552
 
# it under the terms of the GNU General Public License as published by
7553
 
# the Free Software Foundation; either version 2, or (at your option)
7554
 
# any later version.
7555
 
 
7556
 
# This program is distributed in the hope that it will be useful,
7557
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7558
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7559
 
# GNU General Public License for more details.
7560
 
 
7561
 
# You should have received a copy of the GNU General Public License
7562
 
# along with this program; if not, write to the Free Software
7563
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7564
 
# 02111-1307, USA.
7565
 
 
7566
 
# serial 3
7567
 
 
7568
 
# AM_SANITY_CHECK
7569
 
# ---------------
7570
 
AC_DEFUN([AM_SANITY_CHECK],
7571
 
[AC_MSG_CHECKING([whether build environment is sane])
7572
 
# Just in case
7573
 
sleep 1
7574
 
echo timestamp > conftest.file
7575
 
# Do `set' in a subshell so we don't clobber the current shell's
7576
 
# arguments.  Must try -L first in case configure is actually a
7577
 
# symlink; some systems play weird games with the mod time of symlinks
7578
 
# (eg FreeBSD returns the mod time of the symlink's containing
7579
 
# directory).
7580
 
if (
7581
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
7582
 
   if test "$[*]" = "X"; then
7583
 
      # -L didn't work.
7584
 
      set X `ls -t $srcdir/configure conftest.file`
7585
 
   fi
7586
 
   rm -f conftest.file
7587
 
   if test "$[*]" != "X $srcdir/configure conftest.file" \
7588
 
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
7589
 
 
7590
 
      # If neither matched, then we have a broken ls.  This can happen
7591
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
7592
 
      # broken ls alias from the environment.  This has actually
7593
 
      # happened.  Such a system could not be considered "sane".
7594
 
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
7595
 
alias in your environment])
7596
 
   fi
7597
 
 
7598
 
   test "$[2]" = conftest.file
7599
 
   )
7600
 
then
7601
 
   # Ok.
7602
 
   :
7603
 
else
7604
 
   AC_MSG_ERROR([newly created file is older than distributed files!
7605
 
Check your system clock])
7606
 
fi
7607
 
AC_MSG_RESULT(yes)])
7608
 
 
7609
 
# AM_PROG_INSTALL_STRIP
7610
 
 
7611
 
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
7612
 
 
7613
 
# This program is free software; you can redistribute it and/or modify
7614
 
# it under the terms of the GNU General Public License as published by
7615
 
# the Free Software Foundation; either version 2, or (at your option)
7616
 
# any later version.
7617
 
 
7618
 
# This program is distributed in the hope that it will be useful,
7619
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7620
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7621
 
# GNU General Public License for more details.
7622
 
 
7623
 
# You should have received a copy of the GNU General Public License
7624
 
# along with this program; if not, write to the Free Software
7625
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7626
 
# 02111-1307, USA.
7627
 
 
7628
 
# One issue with vendor `install' (even GNU) is that you can't
7629
 
# specify the program used to strip binaries.  This is especially
7630
 
# annoying in cross-compiling environments, where the build's strip
7631
 
# is unlikely to handle the host's binaries.
7632
 
# Fortunately install-sh will honor a STRIPPROG variable, so we
7633
 
# always use install-sh in `make install-strip', and initialize
7634
 
# STRIPPROG with the value of the STRIP variable (set by the user).
7635
 
AC_DEFUN([AM_PROG_INSTALL_STRIP],
7636
 
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
7637
 
# Installed binaries are usually stripped using `strip' when the user
7638
 
# run `make install-strip'.  However `strip' might not be the right
7639
 
# tool to use in cross-compilation environments, therefore Automake
7640
 
# will honor the `STRIP' environment variable to overrule this program.
7641
 
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
7642
 
if test "$cross_compiling" != no; then
7643
 
  AC_CHECK_TOOL([STRIP], [strip], :)
7644
 
fi
7645
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
7646
 
AC_SUBST([INSTALL_STRIP_PROGRAM])])
7647