blob: 1f00df68e7fef57eff96329c2c276037b8837f9b [file] [log] [blame]
jjako52c24142002-12-16 13:33:51 +00001dnl aclocal.m4 generated automatically by aclocal 1.4
2
3dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved.
7
8dnl This program is distributed in the hope that it will be useful,
9dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11dnl PARTICULAR PURPOSE.
12
13
14# serial 40 AC_PROG_LIBTOOL
15AC_DEFUN(AC_PROG_LIBTOOL,
16[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
17
18# Save cache, so that ltconfig can load it
19AC_CACHE_SAVE
20
21# Actually configure libtool. ac_aux_dir is where install-sh is found.
22CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
23LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
24LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
25DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
26${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
27$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
28|| AC_MSG_ERROR([libtool configure failed])
29
30# Reload cache, that may have been modified by ltconfig
31AC_CACHE_LOAD
32
33# This can be used to rebuild libtool when needed
34LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
35
36# Always use our own libtool.
37LIBTOOL='$(SHELL) $(top_builddir)/libtool'
38AC_SUBST(LIBTOOL)dnl
39
40# Redirect the config.log output again, so that the ltconfig log is not
41# clobbered by the next message.
42exec 5>>./config.log
43])
44
45AC_DEFUN(AC_LIBTOOL_SETUP,
46[AC_PREREQ(2.13)dnl
47AC_REQUIRE([AC_ENABLE_SHARED])dnl
48AC_REQUIRE([AC_ENABLE_STATIC])dnl
49AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
50AC_REQUIRE([AC_CANONICAL_HOST])dnl
51AC_REQUIRE([AC_CANONICAL_BUILD])dnl
52AC_REQUIRE([AC_PROG_RANLIB])dnl
53AC_REQUIRE([AC_PROG_CC])dnl
54AC_REQUIRE([AC_PROG_LD])dnl
55AC_REQUIRE([AC_PROG_NM])dnl
56AC_REQUIRE([AC_PROG_LN_S])dnl
57dnl
58
59case "$target" in
60NONE) lt_target="$host" ;;
61*) lt_target="$target" ;;
62esac
63
64# Check for any special flags to pass to ltconfig.
65#
66# the following will cause an existing older ltconfig to fail, so
67# we ignore this at the expense of the cache file... Checking this
68# will just take longer ... bummer!
69#libtool_flags="--cache-file=$cache_file"
70#
71test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
72test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
73test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
74test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
75test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
76ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN],
77[libtool_flags="$libtool_flags --enable-dlopen"])
78ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
79[libtool_flags="$libtool_flags --enable-win32-dll"])
80AC_ARG_ENABLE(libtool-lock,
81 [ --disable-libtool-lock avoid locking (might break parallel builds)])
82test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
83test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
84
85# Some flags need to be propagated to the compiler or linker for good
86# libtool support.
87case "$lt_target" in
88*-*-irix6*)
89 # Find out which ABI we are using.
90 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
91 if AC_TRY_EVAL(ac_compile); then
92 case "`/usr/bin/file conftest.o`" in
93 *32-bit*)
94 LD="${LD-ld} -32"
95 ;;
96 *N32*)
97 LD="${LD-ld} -n32"
98 ;;
99 *64-bit*)
100 LD="${LD-ld} -64"
101 ;;
102 esac
103 fi
104 rm -rf conftest*
105 ;;
106
107*-*-sco3.2v5*)
108 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
109 SAVE_CFLAGS="$CFLAGS"
110 CFLAGS="$CFLAGS -belf"
111 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
112 [AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])])
113 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
114 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
115 CFLAGS="$SAVE_CFLAGS"
116 fi
117 ;;
118
119ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
120[*-*-cygwin* | *-*-mingw*)
121 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
122 AC_CHECK_TOOL(AS, as, false)
123 AC_CHECK_TOOL(OBJDUMP, objdump, false)
124 ;;
125])
126esac
127])
128
129# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
130AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
131
132# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
133AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
134
135# AC_ENABLE_SHARED - implement the --enable-shared flag
136# Usage: AC_ENABLE_SHARED[(DEFAULT)]
137# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
138# `yes'.
139AC_DEFUN(AC_ENABLE_SHARED, [dnl
140define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
141AC_ARG_ENABLE(shared,
142changequote(<<, >>)dnl
143<< --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
144changequote([, ])dnl
145[p=${PACKAGE-default}
146case "$enableval" in
147yes) enable_shared=yes ;;
148no) enable_shared=no ;;
149*)
150 enable_shared=no
151 # Look at the argument we got. We use all the common list separators.
152 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
153 for pkg in $enableval; do
154 if test "X$pkg" = "X$p"; then
155 enable_shared=yes
156 fi
157 done
158 IFS="$ac_save_ifs"
159 ;;
160esac],
161enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
162])
163
164# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
165AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
166AC_ENABLE_SHARED(no)])
167
168# AC_ENABLE_STATIC - implement the --enable-static flag
169# Usage: AC_ENABLE_STATIC[(DEFAULT)]
170# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
171# `yes'.
172AC_DEFUN(AC_ENABLE_STATIC, [dnl
173define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
174AC_ARG_ENABLE(static,
175changequote(<<, >>)dnl
176<< --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
177changequote([, ])dnl
178[p=${PACKAGE-default}
179case "$enableval" in
180yes) enable_static=yes ;;
181no) enable_static=no ;;
182*)
183 enable_static=no
184 # Look at the argument we got. We use all the common list separators.
185 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
186 for pkg in $enableval; do
187 if test "X$pkg" = "X$p"; then
188 enable_static=yes
189 fi
190 done
191 IFS="$ac_save_ifs"
192 ;;
193esac],
194enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
195])
196
197# AC_DISABLE_STATIC - set the default static flag to --disable-static
198AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
199AC_ENABLE_STATIC(no)])
200
201
202# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
203# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
204# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
205# `yes'.
206AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl
207define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
208AC_ARG_ENABLE(fast-install,
209changequote(<<, >>)dnl
210<< --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
211changequote([, ])dnl
212[p=${PACKAGE-default}
213case "$enableval" in
214yes) enable_fast_install=yes ;;
215no) enable_fast_install=no ;;
216*)
217 enable_fast_install=no
218 # Look at the argument we got. We use all the common list separators.
219 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
220 for pkg in $enableval; do
221 if test "X$pkg" = "X$p"; then
222 enable_fast_install=yes
223 fi
224 done
225 IFS="$ac_save_ifs"
226 ;;
227esac],
228enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
229])
230
231# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
232AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
233AC_ENABLE_FAST_INSTALL(no)])
234
235# AC_PROG_LD - find the path to the GNU or non-GNU linker
236AC_DEFUN(AC_PROG_LD,
237[AC_ARG_WITH(gnu-ld,
238[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
239test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
240AC_REQUIRE([AC_PROG_CC])dnl
241AC_REQUIRE([AC_CANONICAL_HOST])dnl
242AC_REQUIRE([AC_CANONICAL_BUILD])dnl
243ac_prog=ld
244if test "$ac_cv_prog_gcc" = yes; then
245 # Check if gcc -print-prog-name=ld gives a path.
246 AC_MSG_CHECKING([for ld used by GCC])
247 ac_prog=`($CC -print-prog-name=ld) 2>&5`
248 case "$ac_prog" in
249 # Accept absolute paths.
250changequote(,)dnl
251 [\\/]* | [A-Za-z]:[\\/]*)
252 re_direlt='/[^/][^/]*/\.\./'
253changequote([,])dnl
254 # Canonicalize the path of ld
255 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
256 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
257 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
258 done
259 test -z "$LD" && LD="$ac_prog"
260 ;;
261 "")
262 # If it fails, then pretend we aren't using GCC.
263 ac_prog=ld
264 ;;
265 *)
266 # If it is relative, then search for the first ld in PATH.
267 with_gnu_ld=unknown
268 ;;
269 esac
270elif test "$with_gnu_ld" = yes; then
271 AC_MSG_CHECKING([for GNU ld])
272else
273 AC_MSG_CHECKING([for non-GNU ld])
274fi
275AC_CACHE_VAL(ac_cv_path_LD,
276[if test -z "$LD"; then
277 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
278 for ac_dir in $PATH; do
279 test -z "$ac_dir" && ac_dir=.
280 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
281 ac_cv_path_LD="$ac_dir/$ac_prog"
282 # Check to see if the program is GNU ld. I'd rather use --version,
283 # but apparently some GNU ld's only accept -v.
284 # Break only if it was the GNU/non-GNU ld that we prefer.
285 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
286 test "$with_gnu_ld" != no && break
287 else
288 test "$with_gnu_ld" != yes && break
289 fi
290 fi
291 done
292 IFS="$ac_save_ifs"
293else
294 ac_cv_path_LD="$LD" # Let the user override the test with a path.
295fi])
296LD="$ac_cv_path_LD"
297if test -n "$LD"; then
298 AC_MSG_RESULT($LD)
299else
300 AC_MSG_RESULT(no)
301fi
302test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
303AC_PROG_LD_GNU
304])
305
306AC_DEFUN(AC_PROG_LD_GNU,
307[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
308[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
309if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
310 ac_cv_prog_gnu_ld=yes
311else
312 ac_cv_prog_gnu_ld=no
313fi])
314])
315
316# AC_PROG_NM - find the path to a BSD-compatible name lister
317AC_DEFUN(AC_PROG_NM,
318[AC_MSG_CHECKING([for BSD-compatible nm])
319AC_CACHE_VAL(ac_cv_path_NM,
320[if test -n "$NM"; then
321 # Let the user override the test.
322 ac_cv_path_NM="$NM"
323else
324 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
325 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
326 test -z "$ac_dir" && ac_dir=.
327 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
328 # Check to see if the nm accepts a BSD-compat flag.
329 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
330 # nm: unknown option "B" ignored
331 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
332 ac_cv_path_NM="$ac_dir/nm -B"
333 break
334 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
335 ac_cv_path_NM="$ac_dir/nm -p"
336 break
337 else
338 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
339 continue # so that we can try to find one that supports BSD flags
340 fi
341 fi
342 done
343 IFS="$ac_save_ifs"
344 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
345fi])
346NM="$ac_cv_path_NM"
347AC_MSG_RESULT([$NM])
348])
349
350# AC_CHECK_LIBM - check for math library
351AC_DEFUN(AC_CHECK_LIBM,
352[AC_REQUIRE([AC_CANONICAL_HOST])dnl
353LIBM=
354case "$lt_target" in
355*-*-beos* | *-*-cygwin*)
356 # These system don't have libm
357 ;;
358*-ncr-sysv4.3*)
359 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
360 AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
361 ;;
362*)
363 AC_CHECK_LIB(m, main, LIBM="-lm")
364 ;;
365esac
366])
367
368# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
369# the libltdl convenience library and INCLTDL to the include flags for
370# the libltdl header and adds --enable-ltdl-convenience to the
371# configure arguments. Note that LIBLTDL and INCLTDL are not
372# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
373# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
374# with '${top_builddir}/' and INCLTDL will be prefixed with
375# '${top_srcdir}/' (note the single quotes!). If your package is not
376# flat and you're not using automake, define top_builddir and
377# top_srcdir appropriately in the Makefiles.
378AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
379 case "$enable_ltdl_convenience" in
380 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
381 "") enable_ltdl_convenience=yes
382 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
383 esac
384 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
385 INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
386])
387
388# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
389# the libltdl installable library and INCLTDL to the include flags for
390# the libltdl header and adds --enable-ltdl-install to the configure
391# arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
392# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
393# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
394# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
395# with '${top_srcdir}/' (note the single quotes!). If your package is
396# not flat and you're not using automake, define top_builddir and
397# top_srcdir appropriately in the Makefiles.
398# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
399AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
400 AC_CHECK_LIB(ltdl, main,
401 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
402 [if test x"$enable_ltdl_install" = xno; then
403 AC_MSG_WARN([libltdl not installed, but installation disabled])
404 else
405 enable_ltdl_install=yes
406 fi
407 ])
408 if test x"$enable_ltdl_install" = x"yes"; then
409 ac_configure_args="$ac_configure_args --enable-ltdl-install"
410 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
411 INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
412 else
413 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
414 LIBLTDL="-lltdl"
415 INCLTDL=
416 fi
417])
418
419dnl old names
420AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl
421AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl
422AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl
423AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl
424AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl
425AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl
426AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl
427
428dnl This is just to silence aclocal about the macro not being used
429ifelse([AC_DISABLE_FAST_INSTALL])dnl
430
431# Do all the work for Automake. This macro actually does too much --
432# some checks are only needed if your package does certain things.
433# But this isn't really a big deal.
434
435# serial 1
436
437dnl Usage:
438dnl AM_INIT_AUTOMAKE(package,version, [no-define])
439
440AC_DEFUN(AM_INIT_AUTOMAKE,
441[AC_REQUIRE([AC_PROG_INSTALL])
442PACKAGE=[$1]
443AC_SUBST(PACKAGE)
444VERSION=[$2]
445AC_SUBST(VERSION)
446dnl test to see if srcdir already configured
447if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
448 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
449fi
450ifelse([$3],,
451AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
452AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
453AC_REQUIRE([AM_SANITY_CHECK])
454AC_REQUIRE([AC_ARG_PROGRAM])
455dnl FIXME This is truly gross.
456missing_dir=`cd $ac_aux_dir && pwd`
457AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
458AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
459AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
460AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
461AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
462AC_REQUIRE([AC_PROG_MAKE_SET])])
463
464#
465# Check to make sure that the build environment is sane.
466#
467
468AC_DEFUN(AM_SANITY_CHECK,
469[AC_MSG_CHECKING([whether build environment is sane])
470# Just in case
471sleep 1
472echo timestamp > conftestfile
473# Do `set' in a subshell so we don't clobber the current shell's
474# arguments. Must try -L first in case configure is actually a
475# symlink; some systems play weird games with the mod time of symlinks
476# (eg FreeBSD returns the mod time of the symlink's containing
477# directory).
478if (
479 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
480 if test "[$]*" = "X"; then
481 # -L didn't work.
482 set X `ls -t $srcdir/configure conftestfile`
483 fi
484 if test "[$]*" != "X $srcdir/configure conftestfile" \
485 && test "[$]*" != "X conftestfile $srcdir/configure"; then
486
487 # If neither matched, then we have a broken ls. This can happen
488 # if, for instance, CONFIG_SHELL is bash and it inherits a
489 # broken ls alias from the environment. This has actually
490 # happened. Such a system could not be considered "sane".
491 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
492alias in your environment])
493 fi
494
495 test "[$]2" = conftestfile
496 )
497then
498 # Ok.
499 :
500else
501 AC_MSG_ERROR([newly created file is older than distributed files!
502Check your system clock])
503fi
504rm -f conftest*
505AC_MSG_RESULT(yes)])
506
507dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
508dnl The program must properly implement --version.
509AC_DEFUN(AM_MISSING_PROG,
510[AC_MSG_CHECKING(for working $2)
511# Run test in a subshell; some versions of sh will print an error if
512# an executable is not found, even if stderr is redirected.
513# Redirect stdin to placate older versions of autoconf. Sigh.
514if ($2 --version) < /dev/null > /dev/null 2>&1; then
515 $1=$2
516 AC_MSG_RESULT(found)
517else
518 $1="$3/missing $2"
519 AC_MSG_RESULT(missing)
520fi
521AC_SUBST($1)])
522