1 --- flux-0.4.1/acinclude.m4~ Thu Feb 10 00:02:07 2000
2 +++ flux-0.4.1/acinclude.m4 Sat Dec 15 21:19:33 2001
14 -# Macro to add for using GNU gettext.
15 -# Ulrich Drepper <drepper@cygnus.com>, 1995.
17 -# This file can be copied and used freely without restrictions. It can
18 -# be used in projects which are not available under the GNU Public License
19 -# but which still want to provide support for the GNU gettext functionality.
20 -# Please note that the actual code is *not* freely available.
22 -# serial 5 + patch (wk 21.10.98)
24 -AC_DEFUN(AM_WITH_NLS,
25 - [AC_MSG_CHECKING([whether NLS is requested])
26 - dnl Default is enabled NLS
28 - [ --disable-nls do not use Native Language Support],
29 - USE_NLS=$enableval, USE_NLS=yes)
30 - AC_MSG_RESULT($USE_NLS)
33 - USE_INCLUDED_LIBINTL=no
35 - dnl If we use NLS figure out what method
36 - if test "$USE_NLS" = "yes"; then
37 - AC_DEFINE(ENABLE_NLS)
38 - AC_MSG_CHECKING([whether included gettext is requested])
39 - AC_ARG_WITH(included-gettext,
40 - [ --with-included-gettext use the GNU gettext library included here],
41 - nls_cv_force_use_gnu_gettext=$withval,
42 - nls_cv_force_use_gnu_gettext=no)
43 - AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
45 - nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
46 - if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
47 - dnl User does not insist on using GNU NLS library. Figure out what
48 - dnl to use. If gettext or catgets are available (in this order) we
49 - dnl use this. Else we have to fall back to GNU NLS library.
50 - dnl catgets is only used if permitted by option --with-catgets.
52 - nls_cv_header_libgt=
55 - AC_CHECK_HEADER(libintl.h,
56 - [AC_CACHE_CHECK([for gettext in libc], gt_cv_func_gettext_libc,
57 - [AC_TRY_LINK([#include <libintl.h>], [return (int) gettext ("")],
58 - gt_cv_func_gettext_libc=yes, gt_cv_func_gettext_libc=no)])
60 - if test "$gt_cv_func_gettext_libc" != "yes"; then
61 - AC_CHECK_LIB(intl, bindtextdomain,
62 - [AC_CHECK_LIB(intl, gettext,
63 - gt_cv_func_gettext_libintl=yes,
64 - gt_cv_func_gettext_libintl=no)])
67 - if test "$gt_cv_func_gettext_libintl" = "yes" ; then
71 - if test "$gt_cv_func_gettext_libc" = "yes" \
72 - || test "$gt_cv_func_gettext_libintl" = "yes"; then
73 - AC_DEFINE(HAVE_GETTEXT)
74 - AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
75 - [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
76 - if test "$MSGFMT" != "no"; then
77 - AC_CHECK_FUNCS(dcgettext)
78 - AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
79 - AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
80 - [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
81 - AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
82 - return _nl_msg_cat_cntr],
92 - if test "$CATOBJEXT" = "NONE"; then
93 - AC_MSG_CHECKING([whether catgets can be used])
94 - AC_ARG_WITH(catgets,
95 - [ --with-catgets use catgets functions if available],
96 - nls_cv_use_catgets=$withval, nls_cv_use_catgets=no)
97 - AC_MSG_RESULT($nls_cv_use_catgets)
99 - if test "$nls_cv_use_catgets" = "yes"; then
100 - dnl No gettext in C library. Try catgets next.
101 - AC_CHECK_LIB(i, main)
102 - AC_CHECK_FUNC(catgets,
103 - [AC_DEFINE(HAVE_CATGETS)
104 - INTLOBJS="\$(CATOBJS)"
105 - AC_PATH_PROG(GENCAT, gencat, no)dnl
106 - if test "$GENCAT" != "no"; then
107 - AC_PATH_PROG(GMSGFMT, gmsgfmt, no)
108 - if test "$GMSGFMT" = "no"; then
109 - AM_PATH_PROG_WITH_TEST(GMSGFMT, msgfmt,
110 - [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)
112 - AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
113 - [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
114 - USE_INCLUDED_LIBINTL=yes
118 - INTLDEPS='$(top_builddir)/intl/libintl.a'
120 - LIBS=`echo $LIBS | sed -e 's/-lintl//'`
121 - nls_cv_header_intl=intl/libintl.h
122 - nls_cv_header_libgt=intl/libgettext.h
127 - if test "$CATOBJEXT" = "NONE"; then
128 - dnl Neither gettext nor catgets in included in the C library.
129 - dnl Fall back on GNU gettext library.
130 - nls_cv_use_gnu_gettext=yes
134 - if test "$nls_cv_use_gnu_gettext" = "yes"; then
135 - dnl Mark actions used to generate GNU NLS library.
136 - INTLOBJS="\$(GETTOBJS)"
137 - AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
138 - [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], msgfmt)
139 - AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
140 - AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
141 - [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
143 - USE_INCLUDED_LIBINTL=yes
147 - INTLDEPS='$(top_builddir)/intl/libintl.a'
149 - LIBS=`echo $LIBS | sed -e 's/-lintl//'`
150 - nls_cv_header_intl=intl/libintl.h
151 - nls_cv_header_libgt=intl/libgettext.h
154 - dnl Test whether we really found GNU xgettext.
155 - if test "$XGETTEXT" != ":"; then
156 - dnl If it is no GNU xgettext we define it as : so that the
157 - dnl Makefiles still can work.
158 - if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
162 - [found xgettext program is not GNU xgettext; ignore it])
167 - # We need to process the po/ directory.
171 - nls_cv_header_intl=intl/libintl.h
172 - nls_cv_header_libgt=intl/libgettext.h
174 - AC_LINK_FILES($nls_cv_header_libgt, $nls_cv_header_intl)
175 - AC_OUTPUT_COMMANDS(
176 - [case "$CONFIG_FILES" in *po/Makefile.in*)
177 - sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
181 - # If this is used in GNU gettext we have to set USE_NLS to `yes'
182 - # because some of the sources are only built for this goal.
183 - if test "$PACKAGE" = gettext; then
185 - USE_INCLUDED_LIBINTL=yes
188 - dnl These rules are solely for the distribution goal. While doing this
189 - dnl we only have to keep exactly one list of the available catalogs
190 - dnl in configure.in.
191 - for lang in $ALL_LINGUAS; do
192 - GMOFILES="$GMOFILES $lang.gmo"
193 - POFILES="$POFILES $lang.po"
196 - dnl Make all variables we use known to autoconf.
197 - AC_SUBST(USE_INCLUDED_LIBINTL)
199 - AC_SUBST(CATOBJEXT)
200 - AC_SUBST(DATADIRNAME)
202 - AC_SUBST(INSTOBJEXT)
211 -AC_DEFUN(AM_GNU_GETTEXT,
212 - [AC_REQUIRE([AC_PROG_MAKE_SET])dnl
213 - AC_REQUIRE([AC_PROG_CC])dnl
214 - AC_REQUIRE([AC_PROG_RANLIB])dnl
215 - AC_REQUIRE([AC_ISC_POSIX])dnl
216 - AC_REQUIRE([AC_HEADER_STDC])dnl
217 - AC_REQUIRE([AC_C_CONST])dnl
218 - AC_REQUIRE([AC_C_INLINE])dnl
219 - AC_REQUIRE([AC_TYPE_OFF_T])dnl
220 - AC_REQUIRE([AC_TYPE_SIZE_T])dnl
221 - AC_REQUIRE([AC_FUNC_ALLOCA])dnl
222 - AC_REQUIRE([AC_FUNC_MMAP])dnl
224 - AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h string.h \
225 -unistd.h sys/param.h])
226 - AC_CHECK_FUNCS([getcwd munmap putenv setenv setlocale strchr strcasecmp \
227 -strdup __argz_count __argz_stringify __argz_next])
229 - if test "${ac_cv_func_stpcpy+set}" != "set"; then
230 - AC_CHECK_FUNCS(stpcpy)
232 - if test "${ac_cv_func_stpcpy}" = "yes"; then
233 - AC_DEFINE(HAVE_STPCPY)
239 - if test "x$CATOBJEXT" != "x"; then
240 - if test "x$ALL_LINGUAS" = "x"; then
243 - AC_MSG_CHECKING(for catalogs to be installed)
245 - for lang in ${LINGUAS=$ALL_LINGUAS}; do
246 - case "$ALL_LINGUAS" in
247 - *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
250 - LINGUAS=$NEW_LINGUAS
251 - AC_MSG_RESULT($LINGUAS)
254 - dnl Construct list of names of catalog files to be constructed.
255 - if test -n "$LINGUAS"; then
256 - for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
260 - dnl The reference to <locale.h> in the installed <libintl.h> file
261 - dnl must be resolved because we cannot expect the users of this
262 - dnl to define HAVE_LOCALE_H.
263 - if test $ac_cv_header_locale_h = yes; then
264 - INCLUDE_LOCALE_H="#include <locale.h>"
266 - INCLUDE_LOCALE_H="\
267 -/* The system does not provide the header <locale.h>. Take care yourself. */"
269 - AC_SUBST(INCLUDE_LOCALE_H)
271 - dnl Determine which catalog format we have (if any is needed)
272 - dnl For now we know about two different formats:
273 - dnl Linux libc-5 and the normal X/Open format
274 - test -d intl || mkdir intl
275 - if test "$CATOBJEXT" = ".cat"; then
276 - AC_CHECK_HEADER(linux/version.h, msgformat=linux, msgformat=xopen)
278 - dnl Transform the SED scripts while copying because some dumb SEDs
279 - dnl cannot handle comments.
280 - sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
282 - dnl po2tbl.sed is always needed.
283 - sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
284 - $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
286 - dnl In the intl/Makefile.in we have a special dependency which makes
287 - dnl only sense for gettext. We comment this out for non-gettext
289 - if test "$PACKAGE" = "gettext"; then
299 - dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
300 - dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
301 - dnl Try to locate is.
303 - if test -n "$ac_aux_dir"; then
304 - MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
306 - if test -z "$MKINSTALLDIRS"; then
307 - MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
309 - AC_SUBST(MKINSTALLDIRS)
311 - dnl *** For now the libtool support in intl/Makefile is not for real.
315 - dnl Generate list of files to be processed by xgettext which will
316 - dnl be included in po/Makefile.
317 - test -d po || mkdir po
318 - if test "x$srcdir" != "x."; then
319 - if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
320 - posrcprefix="$srcdir/"
322 - posrcprefix="../$srcdir/"
328 - sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
329 - < $srcdir/po/POTFILES.in > po/POTFILES
332 -dnl aclocal.m4 generated automatically by aclocal 1.3
334 -dnl Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
335 -dnl This Makefile.in is free software; the Free Software Foundation
336 -dnl gives unlimited permission to copy and/or distribute it,
337 -dnl with or without modifications, as long as this notice is preserved.
339 -dnl This program is distributed in the hope that it will be useful,
340 -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
341 -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
342 -dnl PARTICULAR PURPOSE.
344 -dnl macros to configure g10
347 -dnl WK_MSG_PRINT(STRING)
350 -define(WK_MSG_PRINT,
351 - [ echo $ac_n "$1"" $ac_c" 1>&AC_FD_MSG
355 dnl WK_CHECK_TYPEDEF(TYPE, HAVE_NAME)
356 dnl Check whether a typedef exists and create a #define $2 if it exists
358 @@ -556,357 +208,3 @@
362 -dnl WK_LINK_FILES( SRC, DEST )
363 -dnl same as AC_LINK_FILES, but collect the files to link in
364 -dnl some special variables and do the link
365 -dnl when WK_DO_LINK_FILES is called
366 -dnl This is a workaround for AC_LINK_FILES, because it does not work
367 -dnl correct when using a caching scheme
369 -define(WK_LINK_FILES,
370 - [ if test "x$wk_link_files_src" = "x"; then
371 - wk_link_files_src="$1"
372 - wk_link_files_dst="$2"
374 - wk_link_files_src="$wk_link_files_src $1"
375 - wk_link_files_dst="$wk_link_files_dst $2"
378 -define(WK_DO_LINK_FILES,
379 - [ AC_LINK_FILES( $wk_link_files_src, $wk_link_files_dst )
384 -dnl define either LITTLE_ENDIAN_HOST or BIG_ENDIAN_HOST
386 -define(WK_CHECK_ENDIAN,
387 - [ if test "$cross_compiling" = yes; then
388 - AC_MSG_WARN(cross compiling; assuming little endianess)
390 - AC_MSG_CHECKING(endianess)
391 - AC_CACHE_VAL(wk_cv_c_endian,
392 - [ wk_cv_c_endian=unknown
393 - # See if sys/param.h defines the BYTE_ORDER macro.
394 - AC_TRY_COMPILE([#include <sys/types.h>
395 - #include <sys/param.h>], [
396 - #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
397 - bogus endian macros
398 - #endif], [# It does; now see whether it defined to BIG_ENDIAN or not.
399 - AC_TRY_COMPILE([#include <sys/types.h>
400 - #include <sys/param.h>], [
401 - #if BYTE_ORDER != BIG_ENDIAN
403 - #endif], wk_cv_c_endian=big, wk_cv_c_endian=little)])
404 - if test "$wk_cv_c_endian" = unknown; then
405 - AC_TRY_RUN([main () {
406 - /* Are we little or big endian? From Harbison&Steele. */
410 - char c[sizeof (long)];
413 - exit (u.c[sizeof (long) - 1] == 1);
415 - wk_cv_c_endian=little,
416 - wk_cv_c_endian=big,
417 - wk_cv_c_endian=little
421 - AC_MSG_RESULT([$wk_cv_c_endian])
422 - if test "$wk_cv_c_endian" = little; then
423 - AC_DEFINE(LITTLE_ENDIAN_HOST)
425 - AC_DEFINE(BIG_ENDIAN_HOST)
431 -define(WK_CHECK_CACHE,
432 - [ AC_MSG_CHECKING(cached information)
433 - wk_hostcheck="$target"
434 - AC_CACHE_VAL(wk_cv_hostcheck, [ wk_cv_hostcheck="$wk_hostcheck" ])
435 - if test "$wk_cv_hostcheck" != "$wk_hostcheck"; then
436 - AC_MSG_RESULT(changed)
437 - AC_MSG_WARN(config.cache exists!)
438 - AC_MSG_ERROR(you must do 'make distclean' first to compile for
439 - different target or different parameters.)
448 -# Check for SysV IPC (from GIMP)
449 -# And see whether we have a SHM_LOCK (FreeBSD does not have it).
452 -define(WK_CHECK_IPC,
453 - [ AC_CHECK_HEADERS(sys/ipc.h sys/shm.h)
454 - if test "$ac_cv_header_sys_shm_h" = "yes"; then
455 - AC_MSG_CHECKING(whether shmctl IPC_RMID allowes subsequent attaches)
457 - #include <sys/types.h>
458 - #include <sys/ipc.h>
459 - #include <sys/shm.h>
464 - id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0777);
467 - shmaddr = shmat (id, 0, 0);
468 - shmctl (id, IPC_RMID, 0);
469 - if ((char*) shmat (id, 0, 0) == (char*) -1)
479 - AC_DEFINE(IPC_RMID_DEFERRED_RELEASE)
480 - AC_MSG_RESULT(yes),
482 - AC_MSG_RESULT(assuming no))
483 - AC_MSG_CHECKING(whether SHM_LOCK is available)
484 - AC_TRY_COMPILE([#include <sys/types.h>
485 - #include <sys/ipc.h>
486 - #include <sys/shm.h>],[
487 - int foo( int shm_id ) { shmctl(shm_id, SHM_LOCK, 0); }
489 - AC_DEFINE(IPC_HAVE_SHM_LOCK)
490 - AC_MSG_RESULT(yes),
496 -# Check whether mlock is broken (hpux 10.20 raises a SIGBUS if mlock
497 -# is not called from uid 0 (not tested whether uid 0 works)
500 -define(WK_CHECK_MLOCK,
501 - [ AC_CHECK_FUNCS(mlock)
502 - if test "$ac_cv_func_mlock" = "yes"; then
503 - AC_MSG_CHECKING(whether mlock is broken)
505 - #include <stdlib.h>
506 - #include <unistd.h>
508 - #include <sys/mman.h>
509 - #include <sys/types.h>
516 - long int pgsize = getpagesize();
518 - pool = malloc( 4096 + pgsize );
521 - pool += (pgsize - ((long int)pool % pgsize));
523 - err = mlock( pool, 4096 );
524 - if( !err || errno == EPERM )
525 - return 0; /* okay */
527 - return 1; /* hmmm */
532 - AC_DEFINE(HAVE_BROKEN_MLOCK)
533 - AC_MSG_RESULT(yes),
534 - AC_MSG_RESULT(assuming no))
540 -# Search path for a program which passes the given test.
541 -# Ulrich Drepper <drepper@cygnus.com>, 1996.
543 -# This file can be copied and used freely without restrictions. It can
544 -# be used in projects which are not available under the GNU Public License
545 -# but which still want to provide support for the GNU gettext functionality.
546 -# Please note that the actual code is *not* freely available.
550 -dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
551 -dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
552 -AC_DEFUN(AM_PATH_PROG_WITH_TEST,
553 -[# Extract the first word of "$2", so it can be a program name with args.
554 -set dummy $2; ac_word=[$]2
555 -AC_MSG_CHECKING([for $ac_word])
556 -AC_CACHE_VAL(ac_cv_path_$1,
559 - ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
562 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
563 - for ac_dir in ifelse([$5], , $PATH, [$5]); do
564 - test -z "$ac_dir" && ac_dir=.
565 - if test -f $ac_dir/$ac_word; then
567 - ac_cv_path_$1="$ac_dir/$ac_word"
573 -dnl If no 4th arg is given, leave the cache variable unset,
574 -dnl so AC_PATH_PROGS will keep looking.
575 -ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
580 -if test -n "[$]$1"; then
581 - AC_MSG_RESULT([$]$1)
588 -# Check whether LC_MESSAGES is available in <locale.h>.
589 -# Ulrich Drepper <drepper@cygnus.com>, 1995.
591 -# This file can be copied and used freely without restrictions. It can
592 -# be used in projects which are not available under the GNU Public License
593 -# but which still want to provide support for the GNU gettext functionality.
594 -# Please note that the actual code is *not* freely available.
598 -AC_DEFUN(AM_LC_MESSAGES,
599 - [if test $ac_cv_header_locale_h = yes; then
600 - AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
601 - [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
602 - am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
603 - if test $am_cv_val_LC_MESSAGES = yes; then
604 - AC_DEFINE(HAVE_LC_MESSAGES)
608 -# Like AC_CONFIG_HEADER, but automatically create stamp file.
610 -AC_DEFUN(AM_CONFIG_HEADER,
612 -AC_CONFIG_HEADER([$1])
613 -dnl When config.status generates a header, we must update the stamp-h file.
614 -dnl This file resides in the same directory as the config header
615 -dnl that is generated. We must strip everything past the first ":",
616 -dnl and everything past the last "/".
617 -AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
618 -ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
619 -<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
621 -for am_file in <<$1>>; do
622 - case " <<$>>CONFIG_HEADERS " in
623 - *" <<$>>am_file "*<<)>>
624 - echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
627 - am_indx=`expr "<<$>>am_indx" + 1`
632 -# Check to make sure that the build environment is sane.
635 -AC_DEFUN(AM_SANITY_CHECK,
636 -[AC_MSG_CHECKING([whether build environment is sane])
639 -echo timestamp > conftestfile
640 -# Do `set' in a subshell so we don't clobber the current shell's
641 -# arguments. Must try -L first in case configure is actually a
642 -# symlink; some systems play weird games with the mod time of symlinks
643 -# (eg FreeBSD returns the mod time of the symlink's containing
646 - set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
647 - if test "[$]*" = "X"; then
649 - set X `ls -t $srcdir/configure conftestfile`
651 - if test "[$]*" != "X $srcdir/configure conftestfile" \
652 - && test "[$]*" != "X conftestfile $srcdir/configure"; then
654 - # If neither matched, then we have a broken ls. This can happen
655 - # if, for instance, CONFIG_SHELL is bash and it inherits a
656 - # broken ls alias from the environment. This has actually
657 - # happened. Such a system could not be considered "sane".
658 - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
659 -alias in your environment])
662 - test "[$]2" = conftestfile
668 - AC_MSG_ERROR([newly created file is older than distributed files!
669 -Check your system clock])
672 -AC_MSG_RESULT(yes)])
674 -dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
675 -dnl The program must properly implement --version.
676 -AC_DEFUN(AM_MISSING_PROG,
677 -[AC_MSG_CHECKING(for working $2)
678 -# Run test in a subshell; some versions of sh will print an error if
679 -# an executable is not found, even if stderr is redirected.
680 -# Redirect stdin to placate older versions of autoconf. Sigh.
681 -if ($2 --version) < /dev/null > /dev/null 2>&1; then
683 - AC_MSG_RESULT(found)
686 - AC_MSG_RESULT(missing)
690 -# Check to see if we're running under Cygwin32, without using
691 -# AC_CANONICAL_*. If so, set output variable CYGWIN32 to "yes".
692 -# Otherwise set it to "no".
695 -AC_DEFUN(AM_CYGWIN32,
696 -[AC_CACHE_CHECK(for Cygwin32 environment, am_cv_cygwin32,
697 -[AC_TRY_COMPILE(,[return __CYGWIN32__;],
698 -am_cv_cygwin32=yes, am_cv_cygwin32=no)
701 -test "$am_cv_cygwin32" = yes && CYGWIN32=yes])
703 -# Define a conditional.
705 -AC_DEFUN(AM_CONDITIONAL,