~ubuntu-branches/ubuntu/karmic/flac/karmic

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Matt Zimmerman
  • Date: 2005-01-08 15:08:22 UTC
  • mto: (8.1.1 lenny)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20050108150822-yvinilrafylazcyv
Tags: upstream-1.1.1
ImportĀ upstreamĀ versionĀ 1.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# aclocal.m4 generated automatically by aclocal 1.6.3 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.8.5 -*- Autoconf -*-
2
2
 
3
 
# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
 
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
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
 
# 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 1996, 1997, 1998, 1999, 2000, 2001, 2002
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 8
38
 
 
39
 
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
40
 
# written in clear, in which case automake, when reading aclocal.m4,
41
 
# will think it sees a *use*, and therefore will trigger all it's
42
 
# C support machinery.  Also note that it means that autoscan, seeing
43
 
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
44
 
 
45
 
 
46
 
AC_PREREQ([2.52])
47
 
 
48
 
# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
49
 
# the ones we care about.
50
 
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
51
 
 
52
 
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
53
 
# AM_INIT_AUTOMAKE([OPTIONS])
54
 
# -----------------------------------------------
55
 
# The call with PACKAGE and VERSION arguments is the old style
56
 
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
57
 
# and VERSION should now be passed to AC_INIT and removed from
58
 
# the call to AM_INIT_AUTOMAKE.
59
 
# We support both call styles for the transition.  After
60
 
# the next Automake release, Autoconf can make the AC_INIT
61
 
# arguments mandatory, and then we can depend on a new Autoconf
62
 
# release and drop the old call support.
63
 
AC_DEFUN([AM_INIT_AUTOMAKE],
64
 
[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
65
 
 AC_REQUIRE([AC_PROG_INSTALL])dnl
66
 
# test to see if srcdir already configured
67
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
68
 
   test -f $srcdir/config.status; then
69
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
70
 
fi
71
 
 
72
 
# Define the identity of the package.
73
 
dnl Distinguish between old-style and new-style calls.
74
 
m4_ifval([$2],
75
 
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
76
 
 AC_SUBST([PACKAGE], [$1])dnl
77
 
 AC_SUBST([VERSION], [$2])],
78
 
[_AM_SET_OPTIONS([$1])dnl
79
 
 AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl
80
 
 AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl
81
 
 
82
 
_AM_IF_OPTION([no-define],,
83
 
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
84
 
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
85
 
 
86
 
# Some tools Automake needs.
87
 
AC_REQUIRE([AM_SANITY_CHECK])dnl
88
 
AC_REQUIRE([AC_ARG_PROGRAM])dnl
89
 
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
90
 
AM_MISSING_PROG(AUTOCONF, autoconf)
91
 
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
92
 
AM_MISSING_PROG(AUTOHEADER, autoheader)
93
 
AM_MISSING_PROG(MAKEINFO, makeinfo)
94
 
AM_MISSING_PROG(AMTAR, tar)
95
 
AM_PROG_INSTALL_SH
96
 
AM_PROG_INSTALL_STRIP
97
 
# We need awk for the "check" target.  The system "awk" is bad on
98
 
# some platforms.
99
 
AC_REQUIRE([AC_PROG_AWK])dnl
100
 
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
101
 
 
102
 
_AM_IF_OPTION([no-dependencies],,
103
 
[AC_PROVIDE_IFELSE([AC_PROG_][CC],
104
 
                  [_AM_DEPENDENCIES(CC)],
105
 
                  [define([AC_PROG_][CC],
106
 
                          defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl
107
 
AC_PROVIDE_IFELSE([AC_PROG_][CXX],
108
 
                  [_AM_DEPENDENCIES(CXX)],
109
 
                  [define([AC_PROG_][CXX],
110
 
                          defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl
111
 
])
112
 
])
113
 
 
114
 
# Copyright 2002  Free Software Foundation, Inc.
 
14
#                                                        -*- Autoconf -*-
 
15
# Copyright (C) 2002, 2003  Free Software Foundation, Inc.
 
16
# Generated from amversion.in; do not edit by hand.
115
17
 
116
18
# This program is free software; you can redistribute it and/or modify
117
19
# it under the terms of the GNU General Public License as published by
131
33
# ----------------------------
132
34
# Automake X.Y traces this macro to ensure aclocal.m4 has been
133
35
# generated from the m4 files accompanying Automake X.Y.
134
 
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.6"])
 
36
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
135
37
 
136
38
# AM_SET_CURRENT_AUTOMAKE_VERSION
137
39
# -------------------------------
138
40
# Call AM_AUTOMAKE_VERSION so it can be traced.
139
41
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
140
42
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
141
 
         [AM_AUTOMAKE_VERSION([1.6.3])])
142
 
 
143
 
# Helper functions for option handling.                    -*- Autoconf -*-
144
 
 
145
 
# Copyright 2001, 2002  Free Software Foundation, Inc.
146
 
 
147
 
# This program is free software; you can redistribute it and/or modify
148
 
# it under the terms of the GNU General Public License as published by
149
 
# the Free Software Foundation; either version 2, or (at your option)
150
 
# any later version.
151
 
 
152
 
# This program is distributed in the hope that it will be useful,
153
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
154
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
155
 
# GNU General Public License for more details.
156
 
 
157
 
# You should have received a copy of the GNU General Public License
158
 
# along with this program; if not, write to the Free Software
159
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
160
 
# 02111-1307, USA.
161
 
 
162
 
# serial 2
163
 
 
164
 
# _AM_MANGLE_OPTION(NAME)
165
 
# -----------------------
166
 
AC_DEFUN([_AM_MANGLE_OPTION],
167
 
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
168
 
 
169
 
# _AM_SET_OPTION(NAME)
170
 
# ------------------------------
171
 
# Set option NAME.  Presently that only means defining a flag for this option.
172
 
AC_DEFUN([_AM_SET_OPTION],
173
 
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
174
 
 
175
 
# _AM_SET_OPTIONS(OPTIONS)
176
 
# ----------------------------------
177
 
# OPTIONS is a space-separated list of Automake options.
178
 
AC_DEFUN([_AM_SET_OPTIONS],
179
 
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
180
 
 
181
 
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
182
 
# -------------------------------------------
183
 
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
184
 
AC_DEFUN([_AM_IF_OPTION],
185
 
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
186
 
 
187
 
#
188
 
# Check to make sure that the build environment is sane.
189
 
#
190
 
 
191
 
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
192
 
 
193
 
# This program is free software; you can redistribute it and/or modify
194
 
# it under the terms of the GNU General Public License as published by
195
 
# the Free Software Foundation; either version 2, or (at your option)
196
 
# any later version.
197
 
 
198
 
# This program is distributed in the hope that it will be useful,
199
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
200
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
201
 
# GNU General Public License for more details.
202
 
 
203
 
# You should have received a copy of the GNU General Public License
204
 
# along with this program; if not, write to the Free Software
205
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
206
 
# 02111-1307, USA.
207
 
 
208
 
# serial 3
209
 
 
210
 
# AM_SANITY_CHECK
211
 
# ---------------
212
 
AC_DEFUN([AM_SANITY_CHECK],
213
 
[AC_MSG_CHECKING([whether build environment is sane])
214
 
# Just in case
215
 
sleep 1
216
 
echo timestamp > conftest.file
217
 
# Do `set' in a subshell so we don't clobber the current shell's
218
 
# arguments.  Must try -L first in case configure is actually a
219
 
# symlink; some systems play weird games with the mod time of symlinks
220
 
# (eg FreeBSD returns the mod time of the symlink's containing
221
 
# directory).
222
 
if (
223
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
224
 
   if test "$[*]" = "X"; then
225
 
      # -L didn't work.
226
 
      set X `ls -t $srcdir/configure conftest.file`
227
 
   fi
228
 
   rm -f conftest.file
229
 
   if test "$[*]" != "X $srcdir/configure conftest.file" \
230
 
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
231
 
 
232
 
      # If neither matched, then we have a broken ls.  This can happen
233
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
234
 
      # broken ls alias from the environment.  This has actually
235
 
      # happened.  Such a system could not be considered "sane".
236
 
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
237
 
alias in your environment])
238
 
   fi
239
 
 
240
 
   test "$[2]" = conftest.file
241
 
   )
242
 
then
243
 
   # Ok.
244
 
   :
245
 
else
246
 
   AC_MSG_ERROR([newly created file is older than distributed files!
247
 
Check your system clock])
248
 
fi
249
 
AC_MSG_RESULT(yes)])
250
 
 
251
 
#  -*- Autoconf -*-
252
 
 
253
 
 
254
 
# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
255
 
 
256
 
# This program is free software; you can redistribute it and/or modify
257
 
# it under the terms of the GNU General Public License as published by
258
 
# the Free Software Foundation; either version 2, or (at your option)
259
 
# any later version.
260
 
 
261
 
# This program is distributed in the hope that it will be useful,
262
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
263
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
264
 
# GNU General Public License for more details.
265
 
 
266
 
# You should have received a copy of the GNU General Public License
267
 
# along with this program; if not, write to the Free Software
268
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
269
 
# 02111-1307, USA.
270
 
 
271
 
# serial 3
272
 
 
273
 
# AM_MISSING_PROG(NAME, PROGRAM)
274
 
# ------------------------------
275
 
AC_DEFUN([AM_MISSING_PROG],
276
 
[AC_REQUIRE([AM_MISSING_HAS_RUN])
277
 
$1=${$1-"${am_missing_run}$2"}
278
 
AC_SUBST($1)])
279
 
 
280
 
 
281
 
# AM_MISSING_HAS_RUN
282
 
# ------------------
283
 
# Define MISSING if not defined so far and test if it supports --run.
284
 
# If it does, set am_missing_run to use it, otherwise, to nothing.
285
 
AC_DEFUN([AM_MISSING_HAS_RUN],
286
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
287
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
288
 
# Use eval to expand $SHELL
289
 
if eval "$MISSING --run true"; then
290
 
  am_missing_run="$MISSING --run "
291
 
else
292
 
  am_missing_run=
293
 
  AC_MSG_WARN([`missing' script is too old or missing])
294
 
fi
 
43
         [AM_AUTOMAKE_VERSION([1.8.5])])
 
44
 
 
45
# Figure out how to run the assembler.             -*- Autoconf -*-
 
46
 
 
47
# serial 3
 
48
 
 
49
# Copyright (C) 2001, 2003, 2004 Free Software Foundation, Inc.
 
50
 
 
51
# This program is free software; you can redistribute it and/or modify
 
52
# it under the terms of the GNU General Public License as published by
 
53
# the Free Software Foundation; either version 2, or (at your option)
 
54
# any later version.
 
55
 
 
56
# This program is distributed in the hope that it will be useful,
 
57
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
58
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
59
# GNU General Public License for more details.
 
60
 
 
61
# You should have received a copy of the GNU General Public License
 
62
# along with this program; if not, write to the Free Software
 
63
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
64
# 02111-1307, USA.
 
65
 
 
66
# AM_PROG_AS
 
67
# ----------
 
68
AC_DEFUN([AM_PROG_AS],
 
69
[# By default we simply use the C compiler to build assembly code.
 
70
AC_REQUIRE([AC_PROG_CC])
 
71
test "${CCAS+set}" = set || CCAS=$CC
 
72
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
 
73
AC_ARG_VAR([CCAS],      [assembler compiler command (defaults to CC)])
 
74
AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
295
75
])
296
76
 
297
77
# AM_AUX_DIR_EXPAND
298
78
 
299
 
# Copyright 2001 Free Software Foundation, Inc.
 
79
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
300
80
 
301
81
# This program is free software; you can redistribute it and/or modify
302
82
# it under the terms of the GNU General Public License as published by
351
131
# absolute PATH.  The drawback is that using absolute paths prevent a
352
132
# configured tree to be moved without reconfiguration.
353
133
 
354
 
# Rely on autoconf to set up CDPATH properly.
355
 
AC_PREREQ([2.50])
356
 
 
357
 
AC_DEFUN([AM_AUX_DIR_EXPAND], [
 
134
AC_DEFUN([AM_AUX_DIR_EXPAND],
 
135
[dnl Rely on autoconf to set up CDPATH properly.
 
136
AC_PREREQ([2.50])dnl
358
137
# expand $ac_aux_dir to an absolute path
359
138
am_aux_dir=`cd $ac_aux_dir && pwd`
360
139
])
361
140
 
362
 
# AM_PROG_INSTALL_SH
363
 
# ------------------
364
 
# Define $install_sh.
365
 
 
366
 
# Copyright 2001 Free Software Foundation, Inc.
367
 
 
368
 
# This program is free software; you can redistribute it and/or modify
369
 
# it under the terms of the GNU General Public License as published by
370
 
# the Free Software Foundation; either version 2, or (at your option)
371
 
# any later version.
372
 
 
373
 
# This program is distributed in the hope that it will be useful,
374
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
375
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
376
 
# GNU General Public License for more details.
377
 
 
378
 
# You should have received a copy of the GNU General Public License
379
 
# along with this program; if not, write to the Free Software
380
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
381
 
# 02111-1307, USA.
382
 
 
383
 
AC_DEFUN([AM_PROG_INSTALL_SH],
384
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
385
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
386
 
AC_SUBST(install_sh)])
387
 
 
388
 
# AM_PROG_INSTALL_STRIP
389
 
 
390
 
# Copyright 2001 Free Software Foundation, Inc.
391
 
 
392
 
# This program is free software; you can redistribute it and/or modify
393
 
# it under the terms of the GNU General Public License as published by
394
 
# the Free Software Foundation; either version 2, or (at your option)
395
 
# any later version.
396
 
 
397
 
# This program is distributed in the hope that it will be useful,
398
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
399
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
400
 
# GNU General Public License for more details.
401
 
 
402
 
# You should have received a copy of the GNU General Public License
403
 
# along with this program; if not, write to the Free Software
404
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
405
 
# 02111-1307, USA.
406
 
 
407
 
# One issue with vendor `install' (even GNU) is that you can't
408
 
# specify the program used to strip binaries.  This is especially
409
 
# annoying in cross-compiling environments, where the build's strip
410
 
# is unlikely to handle the host's binaries.
411
 
# Fortunately install-sh will honor a STRIPPROG variable, so we
412
 
# always use install-sh in `make install-strip', and initialize
413
 
# STRIPPROG with the value of the STRIP variable (set by the user).
414
 
AC_DEFUN([AM_PROG_INSTALL_STRIP],
415
 
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
416
 
# Installed binaries are usually stripped using `strip' when the user
417
 
# run `make install-strip'.  However `strip' might not be the right
418
 
# tool to use in cross-compilation environments, therefore Automake
419
 
# will honor the `STRIP' environment variable to overrule this program.
420
 
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
421
 
if test "$cross_compiling" != no; then
422
 
  AC_CHECK_TOOL([STRIP], [strip], :)
 
141
# AM_CONDITIONAL                                              -*- Autoconf -*-
 
142
 
 
143
# Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
 
144
 
 
145
# This program is free software; you can redistribute it and/or modify
 
146
# it under the terms of the GNU General Public License as published by
 
147
# the Free Software Foundation; either version 2, or (at your option)
 
148
# any later version.
 
149
 
 
150
# This program is distributed in the hope that it will be useful,
 
151
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
152
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
153
# GNU General Public License for more details.
 
154
 
 
155
# You should have received a copy of the GNU General Public License
 
156
# along with this program; if not, write to the Free Software
 
157
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
158
# 02111-1307, USA.
 
159
 
 
160
# serial 6
 
161
 
 
162
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
 
163
# -------------------------------------
 
164
# Define a conditional.
 
165
AC_DEFUN([AM_CONDITIONAL],
 
166
[AC_PREREQ(2.52)dnl
 
167
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
168
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
169
AC_SUBST([$1_TRUE])
 
170
AC_SUBST([$1_FALSE])
 
171
if $2; then
 
172
  $1_TRUE=
 
173
  $1_FALSE='#'
 
174
else
 
175
  $1_TRUE='#'
 
176
  $1_FALSE=
423
177
fi
424
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
425
 
AC_SUBST([INSTALL_STRIP_PROGRAM])])
426
 
 
427
 
# serial 4                                              -*- Autoconf -*-
428
 
 
429
 
# Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
 
178
AC_CONFIG_COMMANDS_PRE(
 
179
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
 
180
  AC_MSG_ERROR([conditional "$1" was never defined.
 
181
Usually this means the macro was only invoked conditionally.])
 
182
fi])])
 
183
 
 
184
# serial 7                                              -*- Autoconf -*-
 
185
 
 
186
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
 
187
# Free Software Foundation, Inc.
430
188
 
431
189
# This program is free software; you can redistribute it and/or modify
432
190
# it under the terms of the GNU General Public License as published by
487
245
  # using a relative directory.
488
246
  cp "$am_depcomp" conftest.dir
489
247
  cd conftest.dir
 
248
  # We will build objects and dependencies in a subdirectory because
 
249
  # it helps to detect inapplicable dependency modes.  For instance
 
250
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
251
  # side effect of compilation, but ICC will put the dependencies in
 
252
  # the current directory while Tru64 will put them in the object
 
253
  # directory.
 
254
  mkdir sub
490
255
 
491
256
  am_cv_$1_dependencies_compiler_type=none
492
257
  if test "$am_compiler_list" = ""; then
493
258
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
494
259
  fi
495
260
  for depmode in $am_compiler_list; do
 
261
    # Setup a source with many dependencies, because some compilers
 
262
    # like to wrap large dependency lists on column 80 (with \), and
 
263
    # we should not choose a depcomp mode which is confused by this.
 
264
    #
496
265
    # We need to recreate these files for each test, as the compiler may
497
266
    # overwrite some of them when testing with obscure command lines.
498
267
    # This happens at least with the AIX C compiler.
499
 
    echo '#include "conftest.h"' > conftest.c
500
 
    echo 'int i;' > conftest.h
501
 
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
 
268
    : > sub/conftest.c
 
269
    for i in 1 2 3 4 5 6; do
 
270
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
271
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
272
      # Solaris 8's {/usr,}/bin/sh.
 
273
      touch sub/conftst$i.h
 
274
    done
 
275
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
502
276
 
503
277
    case $depmode in
504
278
    nosideeffect)
516
290
    # mode.  It turns out that the SunPro C++ compiler does not properly
517
291
    # handle `-M -o', and we need to detect this.
518
292
    if depmode=$depmode \
519
 
       source=conftest.c object=conftest.o \
520
 
       depfile=conftest.Po tmpdepfile=conftest.TPo \
521
 
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
522
 
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
 
293
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
294
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
295
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
296
         >/dev/null 2>conftest.err &&
 
297
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
298
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
523
299
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
524
 
      am_cv_$1_dependencies_compiler_type=$depmode
525
 
      break
 
300
      # icc doesn't choke on unknown options, it will just issue warnings
 
301
      # or remarks (even with -Werror).  So we grep stderr for any message
 
302
      # that says an option was ignored or not supported.
 
303
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
304
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
305
      # The diagnosis changed in icc 8.0:
 
306
      #   icc: Command line remark: option '-MP' not supported
 
307
      if (grep 'ignoring option' conftest.err ||
 
308
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
309
        am_cv_$1_dependencies_compiler_type=$depmode
 
310
        break
 
311
      fi
526
312
    fi
527
313
  done
528
314
 
533
319
fi
534
320
])
535
321
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
 
322
AM_CONDITIONAL([am__fastdep$1], [
 
323
  test "x$enable_dependency_tracking" != xno \
 
324
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
536
325
])
537
326
 
538
327
 
541
330
# Choose a directory name for dependency files.
542
331
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
543
332
AC_DEFUN([AM_SET_DEPDIR],
544
 
[rm -f .deps 2>/dev/null
545
 
mkdir .deps 2>/dev/null
546
 
if test -d .deps; then
547
 
  DEPDIR=.deps
548
 
else
549
 
  # MS-DOS does not allow filenames that begin with a dot.
550
 
  DEPDIR=_deps
551
 
fi
552
 
rmdir .deps 2>/dev/null
553
 
AC_SUBST([DEPDIR])
 
333
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
334
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
554
335
])
555
336
 
556
337
 
558
339
# ------------
559
340
AC_DEFUN([AM_DEP_TRACK],
560
341
[AC_ARG_ENABLE(dependency-tracking,
561
 
[  --disable-dependency-tracking Speeds up one-time builds
562
 
  --enable-dependency-tracking  Do not reject slow dependency extractors])
 
342
[  --disable-dependency-tracking  speeds up one-time build
 
343
  --enable-dependency-tracking   do not reject slow dependency extractors])
563
344
if test "x$enable_dependency_tracking" != xno; then
564
345
  am_depcomp="$ac_aux_dir/depcomp"
565
346
  AMDEPBACKSLASH='\'
570
351
 
571
352
# Generate code to set up dependency tracking.   -*- Autoconf -*-
572
353
 
573
 
# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
 
354
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
574
355
 
575
356
# This program is free software; you can redistribute it and/or modify
576
357
# it under the terms of the GNU General Public License as published by
609
390
  grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
610
391
  # Extract the definition of DEP_FILES from the Makefile without
611
392
  # running `make'.
612
 
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 
393
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
613
394
  test -z "$DEPDIR" && continue
614
395
  # When using ansi2knr, U may be empty or an underscore; expand it
615
 
  U=`sed -n -e '/^U = / s///p' < "$mf"`
 
396
  U=`sed -n 's/^U = //p' < "$mf"`
616
397
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
617
398
  # We invoke sed twice because it is the simplest approach to
618
399
  # changing $(DEPDIR) to its actual value in the expansion.
619
 
  for file in `sed -n -e '
 
400
  for file in `sed -n '
620
401
    /^DEP_FILES = .*\\\\$/ {
621
402
      s/^DEP_FILES = //
622
403
      :loop
652
433
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
653
434
])
654
435
 
655
 
# Copyright 2001 Free Software Foundation, Inc.             -*- Autoconf -*-
 
436
# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
 
437
 
 
438
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
 
439
 
 
440
# This program is free software; you can redistribute it and/or modify
 
441
# it under the terms of the GNU General Public License as published by
 
442
# the Free Software Foundation; either version 2, or (at your option)
 
443
# any later version.
 
444
 
 
445
# This program is distributed in the hope that it will be useful,
 
446
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
447
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
448
# GNU General Public License for more details.
 
449
 
 
450
# You should have received a copy of the GNU General Public License
 
451
# along with this program; if not, write to the Free Software
 
452
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
453
# 02111-1307, USA.
 
454
 
 
455
# serial 7
 
456
 
 
457
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
 
458
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
 
459
 
 
460
# Do all the work for Automake.                            -*- Autoconf -*-
 
461
 
 
462
# This macro actually does too much some checks are only needed if
 
463
# your package does certain things.  But this isn't really a big deal.
 
464
 
 
465
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
 
466
# Free Software Foundation, Inc.
 
467
 
 
468
# This program is free software; you can redistribute it and/or modify
 
469
# it under the terms of the GNU General Public License as published by
 
470
# the Free Software Foundation; either version 2, or (at your option)
 
471
# any later version.
 
472
 
 
473
# This program is distributed in the hope that it will be useful,
 
474
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
475
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
476
# GNU General Public License for more details.
 
477
 
 
478
# You should have received a copy of the GNU General Public License
 
479
# along with this program; if not, write to the Free Software
 
480
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
481
# 02111-1307, USA.
 
482
 
 
483
# serial 11
 
484
 
 
485
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
 
486
# AM_INIT_AUTOMAKE([OPTIONS])
 
487
# -----------------------------------------------
 
488
# The call with PACKAGE and VERSION arguments is the old style
 
489
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
 
490
# and VERSION should now be passed to AC_INIT and removed from
 
491
# the call to AM_INIT_AUTOMAKE.
 
492
# We support both call styles for the transition.  After
 
493
# the next Automake release, Autoconf can make the AC_INIT
 
494
# arguments mandatory, and then we can depend on a new Autoconf
 
495
# release and drop the old call support.
 
496
AC_DEFUN([AM_INIT_AUTOMAKE],
 
497
[AC_PREREQ([2.58])dnl
 
498
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
 
499
dnl the ones we care about.
 
500
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
 
501
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 
502
AC_REQUIRE([AC_PROG_INSTALL])dnl
 
503
# test to see if srcdir already configured
 
504
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
505
   test -f $srcdir/config.status; then
 
506
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
507
fi
 
508
 
 
509
# test whether we have cygpath
 
510
if test -z "$CYGPATH_W"; then
 
511
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
512
    CYGPATH_W='cygpath -w'
 
513
  else
 
514
    CYGPATH_W=echo
 
515
  fi
 
516
fi
 
517
AC_SUBST([CYGPATH_W])
 
518
 
 
519
# Define the identity of the package.
 
520
dnl Distinguish between old-style and new-style calls.
 
521
m4_ifval([$2],
 
522
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
523
 AC_SUBST([PACKAGE], [$1])dnl
 
524
 AC_SUBST([VERSION], [$2])],
 
525
[_AM_SET_OPTIONS([$1])dnl
 
526
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 
527
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 
528
 
 
529
_AM_IF_OPTION([no-define],,
 
530
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
 
531
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 
532
 
 
533
# Some tools Automake needs.
 
534
AC_REQUIRE([AM_SANITY_CHECK])dnl
 
535
AC_REQUIRE([AC_ARG_PROGRAM])dnl
 
536
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
 
537
AM_MISSING_PROG(AUTOCONF, autoconf)
 
538
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
 
539
AM_MISSING_PROG(AUTOHEADER, autoheader)
 
540
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
541
AM_MISSING_PROG(AMTAR, tar)
 
542
AM_PROG_INSTALL_SH
 
543
AM_PROG_INSTALL_STRIP
 
544
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
 
545
# We need awk for the "check" target.  The system "awk" is bad on
 
546
# some platforms.
 
547
AC_REQUIRE([AC_PROG_AWK])dnl
 
548
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 
549
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
550
 
 
551
_AM_IF_OPTION([no-dependencies],,
 
552
[AC_PROVIDE_IFELSE([AC_PROG_CC],
 
553
                  [_AM_DEPENDENCIES(CC)],
 
554
                  [define([AC_PROG_CC],
 
555
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
556
AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
557
                  [_AM_DEPENDENCIES(CXX)],
 
558
                  [define([AC_PROG_CXX],
 
559
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
560
])
 
561
])
 
562
 
 
563
 
 
564
# When config.status generates a header, we must update the stamp-h file.
 
565
# This file resides in the same directory as the config header
 
566
# that is generated.  The stamp files are numbered to have different names.
 
567
 
 
568
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
 
569
# loop where config.status creates the headers, so we can generate
 
570
# our stamp files there.
 
571
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
 
572
[# Compute $1's index in $config_headers.
 
573
_am_stamp_count=1
 
574
for _am_header in $config_headers :; do
 
575
  case $_am_header in
 
576
    $1 | $1:* )
 
577
      break ;;
 
578
    * )
 
579
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
580
  esac
 
581
done
 
582
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
 
583
 
 
584
# AM_PROG_INSTALL_SH
 
585
# ------------------
 
586
# Define $install_sh.
 
587
 
 
588
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
 
589
 
 
590
# This program is free software; you can redistribute it and/or modify
 
591
# it under the terms of the GNU General Public License as published by
 
592
# the Free Software Foundation; either version 2, or (at your option)
 
593
# any later version.
 
594
 
 
595
# This program is distributed in the hope that it will be useful,
 
596
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
597
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
598
# GNU General Public License for more details.
 
599
 
 
600
# You should have received a copy of the GNU General Public License
 
601
# along with this program; if not, write to the Free Software
 
602
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
603
# 02111-1307, USA.
 
604
 
 
605
AC_DEFUN([AM_PROG_INSTALL_SH],
 
606
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
607
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
608
AC_SUBST(install_sh)])
 
609
 
 
610
#                                                          -*- Autoconf -*-
 
611
# Copyright (C) 2003  Free Software Foundation, Inc.
 
612
 
 
613
# This program is free software; you can redistribute it and/or modify
 
614
# it under the terms of the GNU General Public License as published by
 
615
# the Free Software Foundation; either version 2, or (at your option)
 
616
# any later version.
 
617
 
 
618
# This program is distributed in the hope that it will be useful,
 
619
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
620
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
621
# GNU General Public License for more details.
 
622
 
 
623
# You should have received a copy of the GNU General Public License
 
624
# along with this program; if not, write to the Free Software
 
625
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
626
# 02111-1307, USA.
 
627
 
 
628
# serial 1
 
629
 
 
630
# Check whether the underlying file-system supports filenames
 
631
# with a leading dot.  For instance MS-DOS doesn't.
 
632
AC_DEFUN([AM_SET_LEADING_DOT],
 
633
[rm -rf .tst 2>/dev/null
 
634
mkdir .tst 2>/dev/null
 
635
if test -d .tst; then
 
636
  am__leading_dot=.
 
637
else
 
638
  am__leading_dot=_
 
639
fi
 
640
rmdir .tst 2>/dev/null
 
641
AC_SUBST([am__leading_dot])])
 
642
 
 
643
# Add --enable-maintainer-mode option to configure.
 
644
# From Jim Meyering
 
645
 
 
646
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004
 
647
# 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 3
 
665
 
 
666
AC_DEFUN([AM_MAINTAINER_MODE],
 
667
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
 
668
  dnl maintainer-mode is disabled by default
 
669
  AC_ARG_ENABLE(maintainer-mode,
 
670
[  --enable-maintainer-mode  enable make rules and dependencies not useful
 
671
                          (and sometimes confusing) to the casual installer],
 
672
      USE_MAINTAINER_MODE=$enableval,
 
673
      USE_MAINTAINER_MODE=no)
 
674
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
 
675
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
 
676
  MAINT=$MAINTAINER_MODE_TRUE
 
677
  AC_SUBST(MAINT)dnl
 
678
]
 
679
)
 
680
 
 
681
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
 
682
 
 
683
# Check to see how 'make' treats includes.      -*- Autoconf -*-
 
684
 
 
685
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
656
686
 
657
687
# This program is free software; you can redistribute it and/or modify
658
688
# it under the terms of the GNU General Public License as published by
677
707
AC_DEFUN([AM_MAKE_INCLUDE],
678
708
[am_make=${MAKE-make}
679
709
cat > confinc << 'END'
680
 
doit:
 
710
am__doit:
681
711
        @echo done
 
712
.PHONY: am__doit
682
713
END
683
714
# If we don't find an include directive, just comment out the code.
684
715
AC_MSG_CHECKING([for style of include used by $am_make])
692
723
# In particular we don't look at `^make:' because GNU make might
693
724
# be invoked under some other name (usually "gmake"), in which
694
725
# case it prints its new name instead of `make'.
695
 
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
 
726
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
696
727
   am__include=include
697
728
   am__quote=
698
729
   _am_result=GNU
706
737
      _am_result=BSD
707
738
   fi
708
739
fi
709
 
AC_SUBST(am__include)
710
 
AC_SUBST(am__quote)
711
 
AC_MSG_RESULT($_am_result)
 
740
AC_SUBST([am__include])
 
741
AC_SUBST([am__quote])
 
742
AC_MSG_RESULT([$_am_result])
712
743
rm -f confinc confmf
713
744
])
714
745
 
715
 
# AM_CONDITIONAL                                              -*- Autoconf -*-
716
 
 
717
 
# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
718
 
 
719
 
# This program is free software; you can redistribute it and/or modify
720
 
# it under the terms of the GNU General Public License as published by
721
 
# the Free Software Foundation; either version 2, or (at your option)
722
 
# any later version.
723
 
 
724
 
# This program is distributed in the hope that it will be useful,
725
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
726
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
727
 
# GNU General Public License for more details.
728
 
 
729
 
# You should have received a copy of the GNU General Public License
730
 
# along with this program; if not, write to the Free Software
731
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
732
 
# 02111-1307, USA.
733
 
 
734
 
# serial 5
735
 
 
736
 
AC_PREREQ(2.52)
737
 
 
738
 
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
739
 
# -------------------------------------
740
 
# Define a conditional.
741
 
AC_DEFUN([AM_CONDITIONAL],
742
 
[ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
743
 
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
744
 
AC_SUBST([$1_TRUE])
745
 
AC_SUBST([$1_FALSE])
746
 
if $2; then
747
 
  $1_TRUE=
748
 
  $1_FALSE='#'
749
 
else
750
 
  $1_TRUE='#'
751
 
  $1_FALSE=
752
 
fi
753
 
AC_CONFIG_COMMANDS_PRE(
754
 
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
755
 
  AC_MSG_ERROR([conditional \"$1\" was never defined.
756
 
Usually this means the macro was only invoked conditionally.])
757
 
fi])])
758
 
 
759
 
# Add --enable-maintainer-mode option to configure.
760
 
# From Jim Meyering
761
 
 
762
 
# Copyright 1996, 1998, 2000, 2001 Free Software Foundation, Inc.
763
 
 
764
 
# This program is free software; you can redistribute it and/or modify
765
 
# it under the terms of the GNU General Public License as published by
766
 
# the Free Software Foundation; either version 2, or (at your option)
767
 
# any later version.
768
 
 
769
 
# This program is distributed in the hope that it will be useful,
770
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
771
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
772
 
# GNU General Public License for more details.
773
 
 
774
 
# You should have received a copy of the GNU General Public License
775
 
# along with this program; if not, write to the Free Software
776
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
777
 
# 02111-1307, USA.
778
 
 
779
 
# serial 1
780
 
 
781
 
AC_DEFUN([AM_MAINTAINER_MODE],
782
 
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
783
 
  dnl maintainer-mode is disabled by default
784
 
  AC_ARG_ENABLE(maintainer-mode,
785
 
[  --enable-maintainer-mode enable make rules and dependencies not useful
786
 
                          (and sometimes confusing) to the casual installer],
787
 
      USE_MAINTAINER_MODE=$enableval,
788
 
      USE_MAINTAINER_MODE=no)
789
 
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
790
 
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
791
 
  MAINT=$MAINTAINER_MODE_TRUE
792
 
  AC_SUBST(MAINT)dnl
793
 
]
794
 
)
 
746
#  -*- Autoconf -*-
 
747
 
 
748
 
 
749
# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
 
750
 
 
751
# This program is free software; you can redistribute it and/or modify
 
752
# it under the terms of the GNU General Public License as published by
 
753
# the Free Software Foundation; either version 2, or (at your option)
 
754
# any later version.
 
755
 
 
756
# This program is distributed in the hope that it will be useful,
 
757
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
758
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
759
# GNU General Public License for more details.
 
760
 
 
761
# You should have received a copy of the GNU General Public License
 
762
# along with this program; if not, write to the Free Software
 
763
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
764
# 02111-1307, USA.
 
765
 
 
766
# serial 3
 
767
 
 
768
# AM_MISSING_PROG(NAME, PROGRAM)
 
769
# ------------------------------
 
770
AC_DEFUN([AM_MISSING_PROG],
 
771
[AC_REQUIRE([AM_MISSING_HAS_RUN])
 
772
$1=${$1-"${am_missing_run}$2"}
 
773
AC_SUBST($1)])
 
774
 
 
775
 
 
776
# AM_MISSING_HAS_RUN
 
777
# ------------------
 
778
# Define MISSING if not defined so far and test if it supports --run.
 
779
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
780
AC_DEFUN([AM_MISSING_HAS_RUN],
 
781
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
782
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
783
# Use eval to expand $SHELL
 
784
if eval "$MISSING --run true"; then
 
785
  am_missing_run="$MISSING --run "
 
786
else
 
787
  am_missing_run=
 
788
  AC_MSG_WARN([`missing' script is too old or missing])
 
789
fi
 
790
])
 
791
 
 
792
# AM_PROG_MKDIR_P
 
793
# ---------------
 
794
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
 
795
 
 
796
# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
 
797
 
 
798
# This program is free software; you can redistribute it and/or modify
 
799
# it under the terms of the GNU General Public License as published by
 
800
# the Free Software Foundation; either version 2, or (at your option)
 
801
# any later version.
 
802
 
 
803
# This program is distributed in the hope that it will be useful,
 
804
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
805
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
806
# GNU General Public License for more details.
 
807
 
 
808
# You should have received a copy of the GNU General Public License
 
809
# along with this program; if not, write to the Free Software
 
810
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
811
# 02111-1307, USA.
 
812
 
 
813
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
 
814
# created by `make install' are always world readable, even if the
 
815
# installer happens to have an overly restrictive umask (e.g. 077).
 
816
# This was a mistake.  There are at least two reasons why we must not
 
817
# use `-m 0755':
 
818
#   - it causes special bits like SGID to be ignored,
 
819
#   - it may be too restrictive (some setups expect 775 directories).
 
820
#
 
821
# Do not use -m 0755 and let people choose whatever they expect by
 
822
# setting umask.
 
823
#
 
824
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
 
825
# Some implementations (such as Solaris 8's) are not thread-safe: if a
 
826
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
 
827
# concurrently, both version can detect that a/ is missing, but only
 
828
# one can create it and the other will error out.  Consequently we
 
829
# restrict ourselves to GNU make (using the --version option ensures
 
830
# this.)
 
831
AC_DEFUN([AM_PROG_MKDIR_P],
 
832
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
833
  # Keeping the `.' argument allows $(mkdir_p) to be used without
 
834
  # argument.  Indeed, we sometimes output rules like
 
835
  #   $(mkdir_p) $(somedir)
 
836
  # where $(somedir) is conditionally defined.
 
837
  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
 
838
  # expensive solution, as it forces Make to start a sub-shell.)
 
839
  mkdir_p='mkdir -p -- .'
 
840
else
 
841
  # On NextStep and OpenStep, the `mkdir' command does not
 
842
  # recognize any option.  It will interpret all options as
 
843
  # directories to create, and then abort because `.' already
 
844
  # exists.
 
845
  for d in ./-p ./--version;
 
846
  do
 
847
    test -d $d && rmdir $d
 
848
  done
 
849
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
850
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
851
    mkdir_p='$(mkinstalldirs)'
 
852
  else
 
853
    mkdir_p='$(install_sh) -d'
 
854
  fi
 
855
fi
 
856
AC_SUBST([mkdir_p])])
 
857
 
 
858
# Helper functions for option handling.                    -*- Autoconf -*-
 
859
 
 
860
# Copyright (C) 2001, 2002, 2003  Free Software Foundation, Inc.
 
861
 
 
862
# This program is free software; you can redistribute it and/or modify
 
863
# it under the terms of the GNU General Public License as published by
 
864
# the Free Software Foundation; either version 2, or (at your option)
 
865
# any later version.
 
866
 
 
867
# This program is distributed in the hope that it will be useful,
 
868
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
869
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
870
# GNU General Public License for more details.
 
871
 
 
872
# You should have received a copy of the GNU General Public License
 
873
# along with this program; if not, write to the Free Software
 
874
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
875
# 02111-1307, USA.
 
876
 
 
877
# serial 2
 
878
 
 
879
# _AM_MANGLE_OPTION(NAME)
 
880
# -----------------------
 
881
AC_DEFUN([_AM_MANGLE_OPTION],
 
882
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
 
883
 
 
884
# _AM_SET_OPTION(NAME)
 
885
# ------------------------------
 
886
# Set option NAME.  Presently that only means defining a flag for this option.
 
887
AC_DEFUN([_AM_SET_OPTION],
 
888
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
889
 
 
890
# _AM_SET_OPTIONS(OPTIONS)
 
891
# ----------------------------------
 
892
# OPTIONS is a space-separated list of Automake options.
 
893
AC_DEFUN([_AM_SET_OPTIONS],
 
894
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
895
 
 
896
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 
897
# -------------------------------------------
 
898
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
899
AC_DEFUN([_AM_IF_OPTION],
 
900
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 
901
 
 
902
#
 
903
# Check to make sure that the build environment is sane.
 
904
#
 
905
 
 
906
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
 
907
 
 
908
# This program is free software; you can redistribute it and/or modify
 
909
# it under the terms of the GNU General Public License as published by
 
910
# the Free Software Foundation; either version 2, or (at your option)
 
911
# any later version.
 
912
 
 
913
# This program is distributed in the hope that it will be useful,
 
914
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
915
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
916
# GNU General Public License for more details.
 
917
 
 
918
# You should have received a copy of the GNU General Public License
 
919
# along with this program; if not, write to the Free Software
 
920
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
921
# 02111-1307, USA.
 
922
 
 
923
# serial 3
 
924
 
 
925
# AM_SANITY_CHECK
 
926
# ---------------
 
927
AC_DEFUN([AM_SANITY_CHECK],
 
928
[AC_MSG_CHECKING([whether build environment is sane])
 
929
# Just in case
 
930
sleep 1
 
931
echo timestamp > conftest.file
 
932
# Do `set' in a subshell so we don't clobber the current shell's
 
933
# arguments.  Must try -L first in case configure is actually a
 
934
# symlink; some systems play weird games with the mod time of symlinks
 
935
# (eg FreeBSD returns the mod time of the symlink's containing
 
936
# directory).
 
937
if (
 
938
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
939
   if test "$[*]" = "X"; then
 
940
      # -L didn't work.
 
941
      set X `ls -t $srcdir/configure conftest.file`
 
942
   fi
 
943
   rm -f conftest.file
 
944
   if test "$[*]" != "X $srcdir/configure conftest.file" \
 
945
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
946
 
 
947
      # If neither matched, then we have a broken ls.  This can happen
 
948
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
949
      # broken ls alias from the environment.  This has actually
 
950
      # happened.  Such a system could not be considered "sane".
 
951
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
952
alias in your environment])
 
953
   fi
 
954
 
 
955
   test "$[2]" = conftest.file
 
956
   )
 
957
then
 
958
   # Ok.
 
959
   :
 
960
else
 
961
   AC_MSG_ERROR([newly created file is older than distributed files!
 
962
Check your system clock])
 
963
fi
 
964
AC_MSG_RESULT(yes)])
 
965
 
 
966
# AM_PROG_INSTALL_STRIP
 
967
 
 
968
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
 
969
 
 
970
# This program is free software; you can redistribute it and/or modify
 
971
# it under the terms of the GNU General Public License as published by
 
972
# the Free Software Foundation; either version 2, or (at your option)
 
973
# any later version.
 
974
 
 
975
# This program is distributed in the hope that it will be useful,
 
976
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
977
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
978
# GNU General Public License for more details.
 
979
 
 
980
# You should have received a copy of the GNU General Public License
 
981
# along with this program; if not, write to the Free Software
 
982
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
983
# 02111-1307, USA.
 
984
 
 
985
# One issue with vendor `install' (even GNU) is that you can't
 
986
# specify the program used to strip binaries.  This is especially
 
987
# annoying in cross-compiling environments, where the build's strip
 
988
# is unlikely to handle the host's binaries.
 
989
# Fortunately install-sh will honor a STRIPPROG variable, so we
 
990
# always use install-sh in `make install-strip', and initialize
 
991
# STRIPPROG with the value of the STRIP variable (set by the user).
 
992
AC_DEFUN([AM_PROG_INSTALL_STRIP],
 
993
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
994
# Installed binaries are usually stripped using `strip' when the user
 
995
# run `make install-strip'.  However `strip' might not be the right
 
996
# tool to use in cross-compilation environments, therefore Automake
 
997
# will honor the `STRIP' environment variable to overrule this program.
 
998
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
999
if test "$cross_compiling" != no; then
 
1000
  AC_CHECK_TOOL([STRIP], [strip], :)
 
1001
fi
 
1002
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1003
AC_SUBST([INSTALL_STRIP_PROGRAM])])
795
1004
 
796
1005
# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
797
1006
 
4285
4494
# This is just to silence aclocal about the macro not being used
4286
4495
ifelse([AC_DISABLE_FAST_INSTALL])
4287
4496
 
4288
 
# Configure paths for libogg
4289
 
# Jack Moffitt <jack@icecast.org> 10-21-2000
4290
 
# Shamelessly stolen from Owen Taylor and Manish Singh
4291
 
 
4292
 
dnl XIPH_PATH_OGG([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
4293
 
dnl Test for libogg, and define OGG_CFLAGS and OGG_LIBS
4294
 
dnl
4295
 
AC_DEFUN(XIPH_PATH_OGG,
4296
 
[dnl 
4297
 
dnl Get the cflags and libraries
4298
 
dnl
4299
 
AC_ARG_WITH(ogg,[  --with-ogg=PFX   Prefix where libogg is installed (optional)], ogg_prefix="$withval", ogg_prefix="")
4300
 
AC_ARG_WITH(ogg-libraries,[  --with-ogg-libraries=DIR   Directory where libogg library is installed (optional)], ogg_libraries="$withval", ogg_libraries="")
4301
 
AC_ARG_WITH(ogg-includes,[  --with-ogg-includes=DIR   Directory where libogg header files are installed (optional)], ogg_includes="$withval", ogg_includes="")
4302
 
AC_ARG_ENABLE(oggtest, [  --disable-oggtest       Do not try to compile and run a test Ogg program],, enable_oggtest=yes)
4303
 
 
4304
 
  if test "x$ogg_libraries" != "x" ; then
4305
 
    OGG_LIBS="-L$ogg_libraries"
4306
 
  elif test "x$ogg_prefix" != "x" ; then
4307
 
    OGG_LIBS="-L$ogg_prefix/lib"
4308
 
  elif test "x$prefix" != "xNONE" ; then
4309
 
    OGG_LIBS="-L$prefix/lib"
4310
 
  fi
4311
 
 
4312
 
  OGG_LIBS="$OGG_LIBS -logg"
4313
 
 
4314
 
  if test "x$ogg_includes" != "x" ; then
4315
 
    OGG_CFLAGS="-I$ogg_includes"
4316
 
  elif test "x$ogg_prefix" != "x" ; then
4317
 
    OGG_CFLAGS="-I$ogg_prefix/include"
4318
 
  elif test "$prefix" != "xNONE"; then
4319
 
    OGG_CFLAGS="-I$prefix/include"
4320
 
  fi
4321
 
 
4322
 
  AC_MSG_CHECKING(for Ogg)
4323
 
  no_ogg=""
4324
 
 
4325
 
 
4326
 
  if test "x$enable_oggtest" = "xyes" ; then
4327
 
    ac_save_CFLAGS="$CFLAGS"
4328
 
    ac_save_LIBS="$LIBS"
4329
 
    CFLAGS="$CFLAGS $OGG_CFLAGS"
4330
 
    LIBS="$LIBS $OGG_LIBS"
4331
 
dnl
4332
 
dnl Now check if the installed Ogg is sufficiently new.
4333
 
dnl
4334
 
      rm -f conf.oggtest
4335
 
      AC_TRY_RUN([
4336
 
#include <stdio.h>
4337
 
#include <stdlib.h>
4338
 
#include <string.h>
4339
 
#include <ogg/ogg.h>
4340
 
 
4341
 
int main ()
4342
 
{
4343
 
  system("touch conf.oggtest");
4344
 
  return 0;
4345
 
}
4346
 
 
4347
 
],, no_ogg=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
4348
 
       CFLAGS="$ac_save_CFLAGS"
4349
 
       LIBS="$ac_save_LIBS"
4350
 
  fi
4351
 
 
4352
 
  if test "x$no_ogg" = "x" ; then
4353
 
     AC_MSG_RESULT(yes)
4354
 
     ifelse([$1], , :, [$1])     
4355
 
  else
4356
 
     AC_MSG_RESULT(no)
4357
 
     if test -f conf.oggtest ; then
4358
 
       :
4359
 
     else
4360
 
       echo "*** Could not run Ogg test program, checking why..."
4361
 
       CFLAGS="$CFLAGS $OGG_CFLAGS"
4362
 
       LIBS="$LIBS $OGG_LIBS"
4363
 
       AC_TRY_LINK([
4364
 
#include <stdio.h>
4365
 
#include <ogg/ogg.h>
4366
 
],     [ return 0; ],
4367
 
       [ echo "*** The test program compiled, but did not run. This usually means"
4368
 
       echo "*** that the run-time linker is not finding Ogg or finding the wrong"
4369
 
       echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
4370
 
       echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
4371
 
       echo "*** to the installed location  Also, make sure you have run ldconfig if that"
4372
 
       echo "*** is required on your system"
4373
 
       echo "***"
4374
 
       echo "*** If you have an old version installed, it is best to remove it, although"
4375
 
       echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
4376
 
       [ echo "*** The test program failed to compile or link. See the file config.log for the"
4377
 
       echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
4378
 
       echo "*** or that you have moved Ogg since it was installed." ])
4379
 
       CFLAGS="$ac_save_CFLAGS"
4380
 
       LIBS="$ac_save_LIBS"
4381
 
     fi
4382
 
     OGG_CFLAGS=""
4383
 
     OGG_LIBS=""
4384
 
     ifelse([$2], , :, [$2])
4385
 
  fi
4386
 
  AC_SUBST(OGG_CFLAGS)
4387
 
  AC_SUBST(OGG_LIBS)
4388
 
  rm -f conf.oggtest
4389
 
])
4390
 
 
4391
4497
# CFLAGS and library paths for XMMS
4392
4498
# written 15 December 1999 by Ben Gertzfield <che@debian.org>
4393
4499
 
4537
4643
AC_SUBST(XMMS_EFFECT_PLUGIN_DIR)
4538
4644
])
4539
4645
 
 
4646
# Configure paths for libogg
 
4647
# Jack Moffitt <jack@icecast.org> 10-21-2000
 
4648
# Shamelessly stolen from Owen Taylor and Manish Singh
 
4649
 
 
4650
dnl XIPH_PATH_OGG([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
 
4651
dnl Test for libogg, and define OGG_CFLAGS and OGG_LIBS
 
4652
dnl
 
4653
AC_DEFUN([XIPH_PATH_OGG],
 
4654
[dnl 
 
4655
dnl Get the cflags and libraries
 
4656
dnl
 
4657
AC_ARG_WITH(ogg,[  --with-ogg=PFX   Prefix where libogg is installed (optional)], ogg_prefix="$withval", ogg_prefix="")
 
4658
AC_ARG_WITH(ogg-libraries,[  --with-ogg-libraries=DIR   Directory where libogg library is installed (optional)], ogg_libraries="$withval", ogg_libraries="")
 
4659
AC_ARG_WITH(ogg-includes,[  --with-ogg-includes=DIR   Directory where libogg header files are installed (optional)], ogg_includes="$withval", ogg_includes="")
 
4660
AC_ARG_ENABLE(oggtest, [  --disable-oggtest       Do not try to compile and run a test Ogg program],, enable_oggtest=yes)
 
4661
 
 
4662
  if test "x$ogg_libraries" != "x" ; then
 
4663
    OGG_LIBS="-L$ogg_libraries"
 
4664
  elif test "x$ogg_prefix" != "x" ; then
 
4665
    OGG_LIBS="-L$ogg_prefix/lib"
 
4666
  elif test "x$prefix" != "xNONE" ; then
 
4667
    OGG_LIBS="-L$prefix/lib"
 
4668
  fi
 
4669
 
 
4670
  OGG_LIBS="$OGG_LIBS -logg"
 
4671
 
 
4672
  if test "x$ogg_includes" != "x" ; then
 
4673
    OGG_CFLAGS="-I$ogg_includes"
 
4674
  elif test "x$ogg_prefix" != "x" ; then
 
4675
    OGG_CFLAGS="-I$ogg_prefix/include"
 
4676
  elif test "x$prefix" != "xNONE"; then
 
4677
    OGG_CFLAGS="-I$prefix/include"
 
4678
  fi
 
4679
 
 
4680
  AC_MSG_CHECKING(for Ogg)
 
4681
  no_ogg=""
 
4682
 
 
4683
 
 
4684
  if test "x$enable_oggtest" = "xyes" ; then
 
4685
    ac_save_CFLAGS="$CFLAGS"
 
4686
    ac_save_LIBS="$LIBS"
 
4687
    CFLAGS="$CFLAGS $OGG_CFLAGS"
 
4688
    LIBS="$LIBS $OGG_LIBS"
 
4689
dnl
 
4690
dnl Now check if the installed Ogg is sufficiently new.
 
4691
dnl
 
4692
      rm -f conf.oggtest
 
4693
      AC_TRY_RUN([
 
4694
#include <stdio.h>
 
4695
#include <stdlib.h>
 
4696
#include <string.h>
 
4697
#include <ogg/ogg.h>
 
4698
 
 
4699
int main ()
 
4700
{
 
4701
  system("touch conf.oggtest");
 
4702
  return 0;
 
4703
}
 
4704
 
 
4705
],, no_ogg=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
 
4706
       CFLAGS="$ac_save_CFLAGS"
 
4707
       LIBS="$ac_save_LIBS"
 
4708
  fi
 
4709
 
 
4710
  if test "x$no_ogg" = "x" ; then
 
4711
     AC_MSG_RESULT(yes)
 
4712
     ifelse([$1], , :, [$1])     
 
4713
  else
 
4714
     AC_MSG_RESULT(no)
 
4715
     if test -f conf.oggtest ; then
 
4716
       :
 
4717
     else
 
4718
       echo "*** Could not run Ogg test program, checking why..."
 
4719
       CFLAGS="$CFLAGS $OGG_CFLAGS"
 
4720
       LIBS="$LIBS $OGG_LIBS"
 
4721
       AC_TRY_LINK([
 
4722
#include <stdio.h>
 
4723
#include <ogg/ogg.h>
 
4724
],     [ return 0; ],
 
4725
       [ echo "*** The test program compiled, but did not run. This usually means"
 
4726
       echo "*** that the run-time linker is not finding Ogg or finding the wrong"
 
4727
       echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
 
4728
       echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
 
4729
       echo "*** to the installed location  Also, make sure you have run ldconfig if that"
 
4730
       echo "*** is required on your system"
 
4731
       echo "***"
 
4732
       echo "*** If you have an old version installed, it is best to remove it, although"
 
4733
       echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
 
4734
       [ echo "*** The test program failed to compile or link. See the file config.log for the"
 
4735
       echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
 
4736
       echo "*** or that you have moved Ogg since it was installed." ])
 
4737
       CFLAGS="$ac_save_CFLAGS"
 
4738
       LIBS="$ac_save_LIBS"
 
4739
     fi
 
4740
     OGG_CFLAGS=""
 
4741
     OGG_LIBS=""
 
4742
     ifelse([$2], , :, [$2])
 
4743
  fi
 
4744
  AC_SUBST(OGG_CFLAGS)
 
4745
  AC_SUBST(OGG_LIBS)
 
4746
  rm -f conf.oggtest
 
4747
])
 
4748
 
 
4749
# codeset.m4 serial AM1 (gettext-0.10.40)
 
4750
dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
 
4751
dnl This file is free software, distributed under the terms of the GNU
 
4752
dnl General Public License.  As a special exception to the GNU General
 
4753
dnl Public License, this file may be distributed as part of a program
 
4754
dnl that contains a configuration script generated by Autoconf, under
 
4755
dnl the same distribution terms as the rest of that program.
 
4756
 
 
4757
dnl From Bruno Haible.
 
4758
 
 
4759
AC_DEFUN([AM_LANGINFO_CODESET],
 
4760
[
 
4761
  AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset,
 
4762
    [AC_TRY_LINK([#include <langinfo.h>],
 
4763
      [char* cs = nl_langinfo(CODESET);],
 
4764
      am_cv_langinfo_codeset=yes,
 
4765
      am_cv_langinfo_codeset=no)
 
4766
    ])
 
4767
  if test $am_cv_langinfo_codeset = yes; then
 
4768
    AC_DEFINE(HAVE_LANGINFO_CODESET, 1,
 
4769
      [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
 
4770
  fi
 
4771
])
 
4772
 
4540
4773
# iconv.m4 serial AM4 (gettext-0.11.3)
4541
4774
dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
4542
4775
dnl This file is free software, distributed under the terms of the GNU
4641
4874
  fi
4642
4875
])
4643
4876
 
4644
 
# lib-prefix.m4 serial 1 (gettext-0.11)
4645
 
dnl Copyright (C) 2001-2002 Free Software Foundation, Inc.
 
4877
# lib-ld.m4 serial 1 (gettext-0.11)
 
4878
dnl Copyright (C) 1996-2002 Free Software Foundation, Inc.
4646
4879
dnl This file is free software, distributed under the terms of the GNU
4647
4880
dnl General Public License.  As a special exception to the GNU General
4648
4881
dnl Public License, this file may be distributed as part of a program
4649
4882
dnl that contains a configuration script generated by Autoconf, under
4650
4883
dnl the same distribution terms as the rest of that program.
4651
4884
 
4652
 
dnl From Bruno Haible.
4653
 
 
4654
 
dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
4655
 
dnl to access previously installed libraries. The basic assumption is that
4656
 
dnl a user will want packages to use other packages he previously installed
4657
 
dnl with the same --prefix option.
4658
 
dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
4659
 
dnl libraries, but is otherwise very convenient.
4660
 
AC_DEFUN([AC_LIB_PREFIX],
4661
 
[
4662
 
  AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
4663
 
  AC_REQUIRE([AC_PROG_CC])
4664
 
  AC_REQUIRE([AC_CANONICAL_HOST])
4665
 
  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
4666
 
  dnl By default, look in $includedir and $libdir.
4667
 
  use_additional=yes
4668
 
  AC_LIB_WITH_FINAL_PREFIX([
4669
 
    eval additional_includedir=\"$includedir\"
4670
 
    eval additional_libdir=\"$libdir\"
4671
 
  ])
4672
 
  AC_ARG_WITH([lib-prefix],
4673
 
[  --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
4674
 
  --without-lib-prefix    don't search for libraries in includedir and libdir],
4675
 
[
4676
 
    if test "X$withval" = "Xno"; then
4677
 
      use_additional=no
4678
 
    else
4679
 
      if test "X$withval" = "X"; then
4680
 
        AC_LIB_WITH_FINAL_PREFIX([
4681
 
          eval additional_includedir=\"$includedir\"
4682
 
          eval additional_libdir=\"$libdir\"
4683
 
        ])
 
4885
dnl Subroutines of libtool.m4,
 
4886
dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
 
4887
dnl with libtool.m4.
 
4888
 
 
4889
dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
 
4890
AC_DEFUN([AC_LIB_PROG_LD_GNU],
 
4891
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
 
4892
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
4893
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
 
4894
  acl_cv_prog_gnu_ld=yes
 
4895
else
 
4896
  acl_cv_prog_gnu_ld=no
 
4897
fi])
 
4898
with_gnu_ld=$acl_cv_prog_gnu_ld
 
4899
])
 
4900
 
 
4901
dnl From libtool-1.4. Sets the variable LD.
 
4902
AC_DEFUN([AC_LIB_PROG_LD],
 
4903
[AC_ARG_WITH(gnu-ld,
 
4904
[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
 
4905
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
 
4906
AC_REQUIRE([AC_PROG_CC])dnl
 
4907
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
4908
ac_prog=ld
 
4909
if test "$GCC" = yes; then
 
4910
  # Check if gcc -print-prog-name=ld gives a path.
 
4911
  AC_MSG_CHECKING([for ld used by GCC])
 
4912
  case $host in
 
4913
  *-*-mingw*)
 
4914
    # gcc leaves a trailing carriage return which upsets mingw
 
4915
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4916
  *)
 
4917
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4918
  esac
 
4919
  case $ac_prog in
 
4920
    # Accept absolute paths.
 
4921
    [[\\/]* | [A-Za-z]:[\\/]*)]
 
4922
      [re_direlt='/[^/][^/]*/\.\./']
 
4923
      # Canonicalize the path of ld
 
4924
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
4925
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
4926
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
4927
      done
 
4928
      test -z "$LD" && LD="$ac_prog"
 
4929
      ;;
 
4930
  "")
 
4931
    # If it fails, then pretend we aren't using GCC.
 
4932
    ac_prog=ld
 
4933
    ;;
 
4934
  *)
 
4935
    # If it is relative, then search for the first ld in PATH.
 
4936
    with_gnu_ld=unknown
 
4937
    ;;
 
4938
  esac
 
4939
elif test "$with_gnu_ld" = yes; then
 
4940
  AC_MSG_CHECKING([for GNU ld])
 
4941
else
 
4942
  AC_MSG_CHECKING([for non-GNU ld])
 
4943
fi
 
4944
AC_CACHE_VAL(acl_cv_path_LD,
 
4945
[if test -z "$LD"; then
 
4946
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
4947
  for ac_dir in $PATH; do
 
4948
    test -z "$ac_dir" && ac_dir=.
 
4949
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4950
      acl_cv_path_LD="$ac_dir/$ac_prog"
 
4951
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4952
      # but apparently some GNU ld's only accept -v.
 
4953
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4954
      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
 
4955
        test "$with_gnu_ld" != no && break
4684
4956
      else
4685
 
        additional_includedir="$withval/include"
4686
 
        additional_libdir="$withval/lib"
4687
 
      fi
4688
 
    fi
4689
 
])
4690
 
  if test $use_additional = yes; then
4691
 
    dnl Potentially add $additional_includedir to $CPPFLAGS.
4692
 
    dnl But don't add it
4693
 
    dnl   1. if it's the standard /usr/include,
4694
 
    dnl   2. if it's already present in $CPPFLAGS,
4695
 
    dnl   3. if it's /usr/local/include and we are using GCC on Linux,
4696
 
    dnl   4. if it doesn't exist as a directory.
4697
 
    if test "X$additional_includedir" != "X/usr/include"; then
4698
 
      haveit=
4699
 
      for x in $CPPFLAGS; do
4700
 
        AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
4701
 
        if test "X$x" = "X-I$additional_includedir"; then
4702
 
          haveit=yes
4703
 
          break
4704
 
        fi
4705
 
      done
4706
 
      if test -z "$haveit"; then
4707
 
        if test "X$additional_includedir" = "X/usr/local/include"; then
4708
 
          if test -n "$GCC"; then
4709
 
            case $host_os in
4710
 
              linux*) haveit=yes;;
4711
 
            esac
4712
 
          fi
4713
 
        fi
4714
 
        if test -z "$haveit"; then
4715
 
          if test -d "$additional_includedir"; then
4716
 
            dnl Really add $additional_includedir to $CPPFLAGS.
4717
 
            CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
4718
 
          fi
4719
 
        fi
4720
 
      fi
4721
 
    fi
4722
 
    dnl Potentially add $additional_libdir to $LDFLAGS.
4723
 
    dnl But don't add it
4724
 
    dnl   1. if it's the standard /usr/lib,
4725
 
    dnl   2. if it's already present in $LDFLAGS,
4726
 
    dnl   3. if it's /usr/local/lib and we are using GCC on Linux,
4727
 
    dnl   4. if it doesn't exist as a directory.
4728
 
    if test "X$additional_libdir" != "X/usr/lib"; then
4729
 
      haveit=
4730
 
      for x in $LDFLAGS; do
4731
 
        AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
4732
 
        if test "X$x" = "X-L$additional_libdir"; then
4733
 
          haveit=yes
4734
 
          break
4735
 
        fi
4736
 
      done
4737
 
      if test -z "$haveit"; then
4738
 
        if test "X$additional_libdir" = "X/usr/local/lib"; then
4739
 
          if test -n "$GCC"; then
4740
 
            case $host_os in
4741
 
              linux*) haveit=yes;;
4742
 
            esac
4743
 
          fi
4744
 
        fi
4745
 
        if test -z "$haveit"; then
4746
 
          if test -d "$additional_libdir"; then
4747
 
            dnl Really add $additional_libdir to $LDFLAGS.
4748
 
            LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
4749
 
          fi
4750
 
        fi
4751
 
      fi
4752
 
    fi
4753
 
  fi
4754
 
])
4755
 
 
4756
 
dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
4757
 
dnl acl_final_exec_prefix, containing the values to which $prefix and
4758
 
dnl $exec_prefix will expand at the end of the configure script.
4759
 
AC_DEFUN([AC_LIB_PREPARE_PREFIX],
4760
 
[
4761
 
  dnl Unfortunately, prefix and exec_prefix get only finally determined
4762
 
  dnl at the end of configure.
4763
 
  if test "X$prefix" = "XNONE"; then
4764
 
    acl_final_prefix="$ac_default_prefix"
4765
 
  else
4766
 
    acl_final_prefix="$prefix"
4767
 
  fi
4768
 
  if test "X$exec_prefix" = "XNONE"; then
4769
 
    acl_final_exec_prefix='${prefix}'
4770
 
  else
4771
 
    acl_final_exec_prefix="$exec_prefix"
4772
 
  fi
4773
 
  acl_save_prefix="$prefix"
4774
 
  prefix="$acl_final_prefix"
4775
 
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4776
 
  prefix="$acl_save_prefix"
4777
 
])
4778
 
 
4779
 
dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
4780
 
dnl variables prefix and exec_prefix bound to the values they will have
4781
 
dnl at the end of the configure script.
4782
 
AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
4783
 
[
4784
 
  acl_save_prefix="$prefix"
4785
 
  prefix="$acl_final_prefix"
4786
 
  acl_save_exec_prefix="$exec_prefix"
4787
 
  exec_prefix="$acl_final_exec_prefix"
4788
 
  $1
4789
 
  exec_prefix="$acl_save_exec_prefix"
4790
 
  prefix="$acl_save_prefix"
 
4957
        test "$with_gnu_ld" != yes && break
 
4958
      fi
 
4959
    fi
 
4960
  done
 
4961
  IFS="$ac_save_ifs"
 
4962
else
 
4963
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
 
4964
fi])
 
4965
LD="$acl_cv_path_LD"
 
4966
if test -n "$LD"; then
 
4967
  AC_MSG_RESULT($LD)
 
4968
else
 
4969
  AC_MSG_RESULT(no)
 
4970
fi
 
4971
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
 
4972
AC_LIB_PROG_LD_GNU
4791
4973
])
4792
4974
 
4793
4975
# lib-link.m4 serial 3 (gettext-0.11.3)
5345
5527
  done
5346
5528
])
5347
5529
 
5348
 
# lib-ld.m4 serial 1 (gettext-0.11)
5349
 
dnl Copyright (C) 1996-2002 Free Software Foundation, Inc.
 
5530
# lib-prefix.m4 serial 1 (gettext-0.11)
 
5531
dnl Copyright (C) 2001-2002 Free Software Foundation, Inc.
5350
5532
dnl This file is free software, distributed under the terms of the GNU
5351
5533
dnl General Public License.  As a special exception to the GNU General
5352
5534
dnl Public License, this file may be distributed as part of a program
5353
5535
dnl that contains a configuration script generated by Autoconf, under
5354
5536
dnl the same distribution terms as the rest of that program.
5355
5537
 
5356
 
dnl Subroutines of libtool.m4,
5357
 
dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
5358
 
dnl with libtool.m4.
5359
 
 
5360
 
dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
5361
 
AC_DEFUN([AC_LIB_PROG_LD_GNU],
5362
 
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
5363
 
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
5364
 
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5365
 
  acl_cv_prog_gnu_ld=yes
5366
 
else
5367
 
  acl_cv_prog_gnu_ld=no
5368
 
fi])
5369
 
with_gnu_ld=$acl_cv_prog_gnu_ld
5370
 
])
5371
 
 
5372
 
dnl From libtool-1.4. Sets the variable LD.
5373
 
AC_DEFUN([AC_LIB_PROG_LD],
5374
 
[AC_ARG_WITH(gnu-ld,
5375
 
[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
5376
 
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
5377
 
AC_REQUIRE([AC_PROG_CC])dnl
5378
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
5379
 
ac_prog=ld
5380
 
if test "$GCC" = yes; then
5381
 
  # Check if gcc -print-prog-name=ld gives a path.
5382
 
  AC_MSG_CHECKING([for ld used by GCC])
5383
 
  case $host in
5384
 
  *-*-mingw*)
5385
 
    # gcc leaves a trailing carriage return which upsets mingw
5386
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5387
 
  *)
5388
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5389
 
  esac
5390
 
  case $ac_prog in
5391
 
    # Accept absolute paths.
5392
 
    [[\\/]* | [A-Za-z]:[\\/]*)]
5393
 
      [re_direlt='/[^/][^/]*/\.\./']
5394
 
      # Canonicalize the path of ld
5395
 
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5396
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5397
 
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5398
 
      done
5399
 
      test -z "$LD" && LD="$ac_prog"
5400
 
      ;;
5401
 
  "")
5402
 
    # If it fails, then pretend we aren't using GCC.
5403
 
    ac_prog=ld
5404
 
    ;;
5405
 
  *)
5406
 
    # If it is relative, then search for the first ld in PATH.
5407
 
    with_gnu_ld=unknown
5408
 
    ;;
5409
 
  esac
5410
 
elif test "$with_gnu_ld" = yes; then
5411
 
  AC_MSG_CHECKING([for GNU ld])
5412
 
else
5413
 
  AC_MSG_CHECKING([for non-GNU ld])
5414
 
fi
5415
 
AC_CACHE_VAL(acl_cv_path_LD,
5416
 
[if test -z "$LD"; then
5417
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5418
 
  for ac_dir in $PATH; do
5419
 
    test -z "$ac_dir" && ac_dir=.
5420
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5421
 
      acl_cv_path_LD="$ac_dir/$ac_prog"
5422
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
5423
 
      # but apparently some GNU ld's only accept -v.
5424
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
5425
 
      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5426
 
        test "$with_gnu_ld" != no && break
 
5538
dnl From Bruno Haible.
 
5539
 
 
5540
dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
 
5541
dnl to access previously installed libraries. The basic assumption is that
 
5542
dnl a user will want packages to use other packages he previously installed
 
5543
dnl with the same --prefix option.
 
5544
dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
 
5545
dnl libraries, but is otherwise very convenient.
 
5546
AC_DEFUN([AC_LIB_PREFIX],
 
5547
[
 
5548
  AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
 
5549
  AC_REQUIRE([AC_PROG_CC])
 
5550
  AC_REQUIRE([AC_CANONICAL_HOST])
 
5551
  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
 
5552
  dnl By default, look in $includedir and $libdir.
 
5553
  use_additional=yes
 
5554
  AC_LIB_WITH_FINAL_PREFIX([
 
5555
    eval additional_includedir=\"$includedir\"
 
5556
    eval additional_libdir=\"$libdir\"
 
5557
  ])
 
5558
  AC_ARG_WITH([lib-prefix],
 
5559
[  --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
 
5560
  --without-lib-prefix    don't search for libraries in includedir and libdir],
 
5561
[
 
5562
    if test "X$withval" = "Xno"; then
 
5563
      use_additional=no
 
5564
    else
 
5565
      if test "X$withval" = "X"; then
 
5566
        AC_LIB_WITH_FINAL_PREFIX([
 
5567
          eval additional_includedir=\"$includedir\"
 
5568
          eval additional_libdir=\"$libdir\"
 
5569
        ])
5427
5570
      else
5428
 
        test "$with_gnu_ld" != yes && break
5429
 
      fi
5430
 
    fi
5431
 
  done
5432
 
  IFS="$ac_save_ifs"
5433
 
else
5434
 
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
5435
 
fi])
5436
 
LD="$acl_cv_path_LD"
5437
 
if test -n "$LD"; then
5438
 
  AC_MSG_RESULT($LD)
5439
 
else
5440
 
  AC_MSG_RESULT(no)
5441
 
fi
5442
 
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
5443
 
AC_LIB_PROG_LD_GNU
5444
 
])
5445
 
 
5446
 
# codeset.m4 serial AM1 (gettext-0.10.40)
5447
 
dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
5448
 
dnl This file is free software, distributed under the terms of the GNU
5449
 
dnl General Public License.  As a special exception to the GNU General
5450
 
dnl Public License, this file may be distributed as part of a program
5451
 
dnl that contains a configuration script generated by Autoconf, under
5452
 
dnl the same distribution terms as the rest of that program.
5453
 
 
5454
 
dnl From Bruno Haible.
5455
 
 
5456
 
AC_DEFUN([AM_LANGINFO_CODESET],
5457
 
[
5458
 
  AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset,
5459
 
    [AC_TRY_LINK([#include <langinfo.h>],
5460
 
      [char* cs = nl_langinfo(CODESET);],
5461
 
      am_cv_langinfo_codeset=yes,
5462
 
      am_cv_langinfo_codeset=no)
5463
 
    ])
5464
 
  if test $am_cv_langinfo_codeset = yes; then
5465
 
    AC_DEFINE(HAVE_LANGINFO_CODESET, 1,
5466
 
      [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
5467
 
  fi
5468
 
])
5469
 
 
5470
 
# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
5471
 
 
5472
 
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
5473
 
 
5474
 
# This program is free software; you can redistribute it and/or modify
5475
 
# it under the terms of the GNU General Public License as published by
5476
 
# the Free Software Foundation; either version 2, or (at your option)
5477
 
# any later version.
5478
 
 
5479
 
# This program is distributed in the hope that it will be useful,
5480
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
5481
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
5482
 
# GNU General Public License for more details.
5483
 
 
5484
 
# You should have received a copy of the GNU General Public License
5485
 
# along with this program; if not, write to the Free Software
5486
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
5487
 
# 02111-1307, USA.
5488
 
 
5489
 
AC_PREREQ([2.52])
5490
 
 
5491
 
# serial 6
5492
 
 
5493
 
# When config.status generates a header, we must update the stamp-h file.
5494
 
# This file resides in the same directory as the config header
5495
 
# that is generated.  We must strip everything past the first ":",
5496
 
# and everything past the last "/".
5497
 
 
5498
 
# _AM_DIRNAME(PATH)
5499
 
# -----------------
5500
 
# Like AS_DIRNAME, only do it during macro expansion
5501
 
AC_DEFUN([_AM_DIRNAME],
5502
 
       [m4_if(regexp([$1], [^.*[^/]//*[^/][^/]*/*$]), -1,
5503
 
              m4_if(regexp([$1], [^//\([^/]\|$\)]), -1,
5504
 
                    m4_if(regexp([$1], [^/.*]), -1,
5505
 
                          [.],
5506
 
                          patsubst([$1], [^\(/\).*], [\1])),
5507
 
                    patsubst([$1], [^\(//\)\([^/].*\|$\)], [\1])),
5508
 
              patsubst([$1], [^\(.*[^/]\)//*[^/][^/]*/*$], [\1]))[]dnl
5509
 
])# _AM_DIRNAME
5510
 
 
5511
 
 
5512
 
# The stamp files are numbered to have different names.
5513
 
# We could number them on a directory basis, but that's additional
5514
 
# complications, let's have a unique counter.
5515
 
m4_define([_AM_STAMP_Count], [0])
5516
 
 
5517
 
 
5518
 
# _AM_STAMP(HEADER)
5519
 
# -----------------
5520
 
# The name of the stamp file for HEADER.
5521
 
AC_DEFUN([_AM_STAMP],
5522
 
[m4_define([_AM_STAMP_Count], m4_incr(_AM_STAMP_Count))dnl
5523
 
AS_ESCAPE(_AM_DIRNAME(patsubst([$1],
5524
 
                               [:.*])))/stamp-h[]_AM_STAMP_Count])
5525
 
 
5526
 
 
5527
 
# _AM_CONFIG_HEADER(HEADER[:SOURCES], COMMANDS, INIT-COMMANDS)
5528
 
# ------------------------------------------------------------
5529
 
# We used to try to get a real timestamp in stamp-h.  But the fear is that
5530
 
# that will cause unnecessary cvs conflicts.
5531
 
AC_DEFUN([_AM_CONFIG_HEADER],
5532
 
[# Add the stamp file to the list of files AC keeps track of,
5533
 
# along with our hook.
5534
 
AC_CONFIG_HEADERS([$1],
5535
 
                  [# update the timestamp
5536
 
echo 'timestamp for $1' >"_AM_STAMP([$1])"
5537
 
$2],
5538
 
                  [$3])
5539
 
])# _AM_CONFIG_HEADER
5540
 
 
5541
 
 
5542
 
# AM_CONFIG_HEADER(HEADER[:SOURCES]..., COMMANDS, INIT-COMMANDS)
5543
 
# --------------------------------------------------------------
5544
 
AC_DEFUN([AM_CONFIG_HEADER],
5545
 
[AC_FOREACH([_AM_File], [$1], [_AM_CONFIG_HEADER(_AM_File, [$2], [$3])])
5546
 
])# AM_CONFIG_HEADER
 
5571
        additional_includedir="$withval/include"
 
5572
        additional_libdir="$withval/lib"
 
5573
      fi
 
5574
    fi
 
5575
])
 
5576
  if test $use_additional = yes; then
 
5577
    dnl Potentially add $additional_includedir to $CPPFLAGS.
 
5578
    dnl But don't add it
 
5579
    dnl   1. if it's the standard /usr/include,
 
5580
    dnl   2. if it's already present in $CPPFLAGS,
 
5581
    dnl   3. if it's /usr/local/include and we are using GCC on Linux,
 
5582
    dnl   4. if it doesn't exist as a directory.
 
5583
    if test "X$additional_includedir" != "X/usr/include"; then
 
5584
      haveit=
 
5585
      for x in $CPPFLAGS; do
 
5586
        AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
 
5587
        if test "X$x" = "X-I$additional_includedir"; then
 
5588
          haveit=yes
 
5589
          break
 
5590
        fi
 
5591
      done
 
5592
      if test -z "$haveit"; then
 
5593
        if test "X$additional_includedir" = "X/usr/local/include"; then
 
5594
          if test -n "$GCC"; then
 
5595
            case $host_os in
 
5596
              linux*) haveit=yes;;
 
5597
            esac
 
5598
          fi
 
5599
        fi
 
5600
        if test -z "$haveit"; then
 
5601
          if test -d "$additional_includedir"; then
 
5602
            dnl Really add $additional_includedir to $CPPFLAGS.
 
5603
            CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
 
5604
          fi
 
5605
        fi
 
5606
      fi
 
5607
    fi
 
5608
    dnl Potentially add $additional_libdir to $LDFLAGS.
 
5609
    dnl But don't add it
 
5610
    dnl   1. if it's the standard /usr/lib,
 
5611
    dnl   2. if it's already present in $LDFLAGS,
 
5612
    dnl   3. if it's /usr/local/lib and we are using GCC on Linux,
 
5613
    dnl   4. if it doesn't exist as a directory.
 
5614
    if test "X$additional_libdir" != "X/usr/lib"; then
 
5615
      haveit=
 
5616
      for x in $LDFLAGS; do
 
5617
        AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
 
5618
        if test "X$x" = "X-L$additional_libdir"; then
 
5619
          haveit=yes
 
5620
          break
 
5621
        fi
 
5622
      done
 
5623
      if test -z "$haveit"; then
 
5624
        if test "X$additional_libdir" = "X/usr/local/lib"; then
 
5625
          if test -n "$GCC"; then
 
5626
            case $host_os in
 
5627
              linux*) haveit=yes;;
 
5628
            esac
 
5629
          fi
 
5630
        fi
 
5631
        if test -z "$haveit"; then
 
5632
          if test -d "$additional_libdir"; then
 
5633
            dnl Really add $additional_libdir to $LDFLAGS.
 
5634
            LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
 
5635
          fi
 
5636
        fi
 
5637
      fi
 
5638
    fi
 
5639
  fi
 
5640
])
 
5641
 
 
5642
dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
 
5643
dnl acl_final_exec_prefix, containing the values to which $prefix and
 
5644
dnl $exec_prefix will expand at the end of the configure script.
 
5645
AC_DEFUN([AC_LIB_PREPARE_PREFIX],
 
5646
[
 
5647
  dnl Unfortunately, prefix and exec_prefix get only finally determined
 
5648
  dnl at the end of configure.
 
5649
  if test "X$prefix" = "XNONE"; then
 
5650
    acl_final_prefix="$ac_default_prefix"
 
5651
  else
 
5652
    acl_final_prefix="$prefix"
 
5653
  fi
 
5654
  if test "X$exec_prefix" = "XNONE"; then
 
5655
    acl_final_exec_prefix='${prefix}'
 
5656
  else
 
5657
    acl_final_exec_prefix="$exec_prefix"
 
5658
  fi
 
5659
  acl_save_prefix="$prefix"
 
5660
  prefix="$acl_final_prefix"
 
5661
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
 
5662
  prefix="$acl_save_prefix"
 
5663
])
 
5664
 
 
5665
dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
 
5666
dnl variables prefix and exec_prefix bound to the values they will have
 
5667
dnl at the end of the configure script.
 
5668
AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
 
5669
[
 
5670
  acl_save_prefix="$prefix"
 
5671
  prefix="$acl_final_prefix"
 
5672
  acl_save_exec_prefix="$exec_prefix"
 
5673
  exec_prefix="$acl_final_exec_prefix"
 
5674
  $1
 
5675
  exec_prefix="$acl_save_exec_prefix"
 
5676
  prefix="$acl_save_prefix"
 
5677
])
5547
5678