11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
14
# Do all the work for Automake. -*- Autoconf -*-
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.
19
# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
20
# Free Software Foundation, Inc.
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)
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.
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
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...
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
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])
72
# Define the identity of the package.
73
dnl Distinguish between old-style and new-style calls.
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
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
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)
97
# We need awk for the "check" target. The system "awk" is bad on
99
AC_REQUIRE([AC_PROG_AWK])dnl
100
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
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
114
# Copyright 2002 Free Software Foundation, Inc.
15
# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
16
# Generated from amversion.in; do not edit by hand.
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"])
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])])
143
# Helper functions for option handling. -*- Autoconf -*-
145
# Copyright 2001, 2002 Free Software Foundation, Inc.
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)
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.
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
164
# _AM_MANGLE_OPTION(NAME)
165
# -----------------------
166
AC_DEFUN([_AM_MANGLE_OPTION],
167
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
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)])
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)])])
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])])
188
# Check to make sure that the build environment is sane.
191
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
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)
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.
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
212
AC_DEFUN([AM_SANITY_CHECK],
213
[AC_MSG_CHECKING([whether build environment is sane])
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
223
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
224
if test "$[*]" = "X"; then
226
set X `ls -t $srcdir/configure conftest.file`
229
if test "$[*]" != "X $srcdir/configure conftest.file" \
230
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
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])
240
test "$[2]" = conftest.file
246
AC_MSG_ERROR([newly created file is older than distributed files!
247
Check your system clock])
254
# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
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)
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.
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
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"}
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 "
293
AC_MSG_WARN([`missing' script is too old or missing])
43
[AM_AUTOMAKE_VERSION([1.8.5])])
45
# Figure out how to run the assembler. -*- Autoconf -*-
49
# Copyright (C) 2001, 2003, 2004 Free Software Foundation, Inc.
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)
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.
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
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)])
297
77
# AM_AUX_DIR_EXPAND
299
# Copyright 2001 Free Software Foundation, Inc.
79
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
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.
354
# Rely on autoconf to set up CDPATH properly.
357
AC_DEFUN([AM_AUX_DIR_EXPAND], [
134
AC_DEFUN([AM_AUX_DIR_EXPAND],
135
[dnl Rely on autoconf to set up CDPATH properly.
358
137
# expand $ac_aux_dir to an absolute path
359
138
am_aux_dir=`cd $ac_aux_dir && pwd`
364
# Define $install_sh.
366
# Copyright 2001 Free Software Foundation, Inc.
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)
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.
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
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)])
388
# AM_PROG_INSTALL_STRIP
390
# Copyright 2001 Free Software Foundation, Inc.
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)
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.
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
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 -*-
143
# Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
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)
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.
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
162
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
163
# -------------------------------------
164
# Define a conditional.
165
AC_DEFUN([AM_CONDITIONAL],
167
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
168
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
424
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
425
AC_SUBST([INSTALL_STRIP_PROGRAM])])
427
# serial 4 -*- Autoconf -*-
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.])
184
# serial 7 -*- Autoconf -*-
186
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
187
# Free Software Foundation, Inc.
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
652
433
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
655
# Copyright 2001 Free Software Foundation, Inc. -*- Autoconf -*-
436
# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
438
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
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)
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.
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
457
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
458
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
460
# Do all the work for Automake. -*- Autoconf -*-
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.
465
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
466
# Free Software Foundation, Inc.
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)
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.
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
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])
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'
517
AC_SUBST([CYGPATH_W])
519
# Define the identity of the package.
520
dnl Distinguish between old-style and new-style calls.
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
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
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)
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
547
AC_REQUIRE([AC_PROG_AWK])dnl
548
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
549
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
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
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.
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.
574
for _am_header in $config_headers :; do
579
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
582
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
586
# Define $install_sh.
588
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
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)
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.
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
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)])
611
# Copyright (C) 2003 Free Software Foundation, Inc.
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)
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.
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
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
640
rmdir .tst 2>/dev/null
641
AC_SUBST([am__leading_dot])])
643
# Add --enable-maintainer-mode option to configure.
646
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004
647
# Free Software Foundation, Inc.
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)
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.
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
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
681
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
683
# Check to see how 'make' treats includes. -*- Autoconf -*-
685
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
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
709
AC_SUBST(am__include)
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
715
# AM_CONDITIONAL -*- Autoconf -*-
717
# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
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)
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.
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
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
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.])
759
# Add --enable-maintainer-mode option to configure.
762
# Copyright 1996, 1998, 2000, 2001 Free Software Foundation, Inc.
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)
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.
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
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
749
# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
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)
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.
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
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"}
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 "
788
AC_MSG_WARN([`missing' script is too old or missing])
794
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
796
# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
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)
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.
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
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
818
# - it causes special bits like SGID to be ignored,
819
# - it may be too restrictive (some setups expect 775 directories).
821
# Do not use -m 0755 and let people choose whatever they expect by
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
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 -- .'
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
845
for d in ./-p ./--version;
847
test -d $d && rmdir $d
849
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
850
if test -f "$ac_aux_dir/mkinstalldirs"; then
851
mkdir_p='$(mkinstalldirs)'
853
mkdir_p='$(install_sh) -d'
856
AC_SUBST([mkdir_p])])
858
# Helper functions for option handling. -*- Autoconf -*-
860
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
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)
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.
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
879
# _AM_MANGLE_OPTION(NAME)
880
# -----------------------
881
AC_DEFUN([_AM_MANGLE_OPTION],
882
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
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)])
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)])])
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])])
903
# Check to make sure that the build environment is sane.
906
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
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)
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.
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
927
AC_DEFUN([AM_SANITY_CHECK],
928
[AC_MSG_CHECKING([whether build environment is sane])
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
938
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
939
if test "$[*]" = "X"; then
941
set X `ls -t $srcdir/configure conftest.file`
944
if test "$[*]" != "X $srcdir/configure conftest.file" \
945
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
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])
955
test "$[2]" = conftest.file
961
AC_MSG_ERROR([newly created file is older than distributed files!
962
Check your system clock])
966
# AM_PROG_INSTALL_STRIP
968
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
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)
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.
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
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], :)
1002
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1003
AC_SUBST([INSTALL_STRIP_PROGRAM])])
796
1005
# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
4285
4494
# This is just to silence aclocal about the macro not being used
4286
4495
ifelse([AC_DISABLE_FAST_INSTALL])
4288
# Configure paths for libogg
4289
# Jack Moffitt <jack@icecast.org> 10-21-2000
4290
# Shamelessly stolen from Owen Taylor and Manish Singh
4292
dnl XIPH_PATH_OGG([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
4293
dnl Test for libogg, and define OGG_CFLAGS and OGG_LIBS
4295
AC_DEFUN(XIPH_PATH_OGG,
4297
dnl Get the cflags and libraries
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)
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"
4312
OGG_LIBS="$OGG_LIBS -logg"
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"
4322
AC_MSG_CHECKING(for Ogg)
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"
4332
dnl Now check if the installed Ogg is sufficiently new.
4339
#include <ogg/ogg.h>
4343
system("touch conf.oggtest");
4347
],, no_ogg=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
4348
CFLAGS="$ac_save_CFLAGS"
4349
LIBS="$ac_save_LIBS"
4352
if test "x$no_ogg" = "x" ; then
4354
ifelse([$1], , :, [$1])
4357
if test -f conf.oggtest ; then
4360
echo "*** Could not run Ogg test program, checking why..."
4361
CFLAGS="$CFLAGS $OGG_CFLAGS"
4362
LIBS="$LIBS $OGG_LIBS"
4365
#include <ogg/ogg.h>
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"
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"
4384
ifelse([$2], , :, [$2])
4386
AC_SUBST(OGG_CFLAGS)
4391
4497
# CFLAGS and library paths for XMMS
4392
4498
# written 15 December 1999 by Ben Gertzfield <che@debian.org>
4537
4643
AC_SUBST(XMMS_EFFECT_PLUGIN_DIR)
4646
# Configure paths for libogg
4647
# Jack Moffitt <jack@icecast.org> 10-21-2000
4648
# Shamelessly stolen from Owen Taylor and Manish Singh
4650
dnl XIPH_PATH_OGG([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
4651
dnl Test for libogg, and define OGG_CFLAGS and OGG_LIBS
4653
AC_DEFUN([XIPH_PATH_OGG],
4655
dnl Get the cflags and libraries
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)
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"
4670
OGG_LIBS="$OGG_LIBS -logg"
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"
4680
AC_MSG_CHECKING(for Ogg)
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"
4690
dnl Now check if the installed Ogg is sufficiently new.
4697
#include <ogg/ogg.h>
4701
system("touch conf.oggtest");
4705
],, no_ogg=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
4706
CFLAGS="$ac_save_CFLAGS"
4707
LIBS="$ac_save_LIBS"
4710
if test "x$no_ogg" = "x" ; then
4712
ifelse([$1], , :, [$1])
4715
if test -f conf.oggtest ; then
4718
echo "*** Could not run Ogg test program, checking why..."
4719
CFLAGS="$CFLAGS $OGG_CFLAGS"
4720
LIBS="$LIBS $OGG_LIBS"
4723
#include <ogg/ogg.h>
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"
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"
4742
ifelse([$2], , :, [$2])
4744
AC_SUBST(OGG_CFLAGS)
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.
4757
dnl From Bruno Haible.
4759
AC_DEFUN([AM_LANGINFO_CODESET],
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)
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).])
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
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.
4652
dnl From Bruno Haible.
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],
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.
4668
AC_LIB_WITH_FINAL_PREFIX([
4669
eval additional_includedir=\"$includedir\"
4670
eval additional_libdir=\"$libdir\"
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],
4676
if test "X$withval" = "Xno"; then
4679
if test "X$withval" = "X"; then
4680
AC_LIB_WITH_FINAL_PREFIX([
4681
eval additional_includedir=\"$includedir\"
4682
eval additional_libdir=\"$libdir\"
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.
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
4896
acl_cv_prog_gnu_ld=no
4898
with_gnu_ld=$acl_cv_prog_gnu_ld
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
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])
4914
# gcc leaves a trailing carriage return which upsets mingw
4915
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4917
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
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%/%"`
4928
test -z "$LD" && LD="$ac_prog"
4931
# If it fails, then pretend we aren't using GCC.
4935
# If it is relative, then search for the first ld in PATH.
4939
elif test "$with_gnu_ld" = yes; then
4940
AC_MSG_CHECKING([for GNU ld])
4942
AC_MSG_CHECKING([for non-GNU ld])
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
4685
additional_includedir="$withval/include"
4686
additional_libdir="$withval/lib"
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
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
4706
if test -z "$haveit"; then
4707
if test "X$additional_includedir" = "X/usr/local/include"; then
4708
if test -n "$GCC"; then
4710
linux*) haveit=yes;;
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"
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
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
4737
if test -z "$haveit"; then
4738
if test "X$additional_libdir" = "X/usr/local/lib"; then
4739
if test -n "$GCC"; then
4741
linux*) haveit=yes;;
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"
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],
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"
4766
acl_final_prefix="$prefix"
4768
if test "X$exec_prefix" = "XNONE"; then
4769
acl_final_exec_prefix='${prefix}'
4771
acl_final_exec_prefix="$exec_prefix"
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"
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],
4784
acl_save_prefix="$prefix"
4785
prefix="$acl_final_prefix"
4786
acl_save_exec_prefix="$exec_prefix"
4787
exec_prefix="$acl_final_exec_prefix"
4789
exec_prefix="$acl_save_exec_prefix"
4790
prefix="$acl_save_prefix"
4957
test "$with_gnu_ld" != yes && break
4963
acl_cv_path_LD="$LD" # Let the user override the test with a path.
4965
LD="$acl_cv_path_LD"
4966
if test -n "$LD"; then
4971
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
4793
4975
# lib-link.m4 serial 3 (gettext-0.11.3)
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.
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.
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
5367
acl_cv_prog_gnu_ld=no
5369
with_gnu_ld=$acl_cv_prog_gnu_ld
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
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])
5385
# gcc leaves a trailing carriage return which upsets mingw
5386
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5388
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
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%/%"`
5399
test -z "$LD" && LD="$ac_prog"
5402
# If it fails, then pretend we aren't using GCC.
5406
# If it is relative, then search for the first ld in PATH.
5410
elif test "$with_gnu_ld" = yes; then
5411
AC_MSG_CHECKING([for GNU ld])
5413
AC_MSG_CHECKING([for non-GNU ld])
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.
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],
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.
5554
AC_LIB_WITH_FINAL_PREFIX([
5555
eval additional_includedir=\"$includedir\"
5556
eval additional_libdir=\"$libdir\"
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],
5562
if test "X$withval" = "Xno"; then
5565
if test "X$withval" = "X"; then
5566
AC_LIB_WITH_FINAL_PREFIX([
5567
eval additional_includedir=\"$includedir\"
5568
eval additional_libdir=\"$libdir\"
5428
test "$with_gnu_ld" != yes && break
5434
acl_cv_path_LD="$LD" # Let the user override the test with a path.
5436
LD="$acl_cv_path_LD"
5437
if test -n "$LD"; then
5442
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
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.
5454
dnl From Bruno Haible.
5456
AC_DEFUN([AM_LANGINFO_CODESET],
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)
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).])
5470
# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
5472
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
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.
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.
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
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 "/".
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,
5506
patsubst([$1], [^\(/\).*], [\1])),
5507
patsubst([$1], [^\(//\)\([^/].*\|$\)], [\1])),
5508
patsubst([$1], [^\(.*[^/]\)//*[^/][^/]*/*$], [\1]))[]dnl
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])
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])
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])"
5539
])# _AM_CONFIG_HEADER
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"
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
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
5592
if test -z "$haveit"; then
5593
if test "X$additional_includedir" = "X/usr/local/include"; then
5594
if test -n "$GCC"; then
5596
linux*) haveit=yes;;
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"
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
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
5623
if test -z "$haveit"; then
5624
if test "X$additional_libdir" = "X/usr/local/lib"; then
5625
if test -n "$GCC"; then
5627
linux*) haveit=yes;;
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"
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],
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"
5652
acl_final_prefix="$prefix"
5654
if test "X$exec_prefix" = "XNONE"; then
5655
acl_final_exec_prefix='${prefix}'
5657
acl_final_exec_prefix="$exec_prefix"
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"
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],
5670
acl_save_prefix="$prefix"
5671
prefix="$acl_final_prefix"
5672
acl_save_exec_prefix="$exec_prefix"
5673
exec_prefix="$acl_final_exec_prefix"
5675
exec_prefix="$acl_save_exec_prefix"
5676
prefix="$acl_save_prefix"