1 dnl aclocal.m4 generated automatically by aclocal 1.3
3 dnl Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
4 dnl This Makefile.in is free software; the Free Software Foundation
5 dnl gives unlimited permission to copy and/or distribute it,
6 dnl with or without modifications, as long as this notice is preserved.
8 dnl This program is distributed in the hope that it will be useful,
9 dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 dnl PARTICULAR PURPOSE.
13 dnl AC_REPLACE_GNU_GETOPT
14 AC_DEFUN(AC_REPLACE_GNU_GETOPT,
15 [AC_CHECK_FUNC(getopt_long, , [LIBOBJS="$LIBOBJS getopt1.o getopt.o"])
20 dnl taken from taylor uucp
21 AC_DEFUN(LRZSZ_ERRNO_DECL,[
22 AC_MSG_CHECKING(for errno declaration)
23 AC_CACHE_VAL(lrzsz_cv_decl_errno,
24 [AC_TRY_COMPILE([#include <errno.h>], [int i = errno; errno = 1;],
25 lrzsz_cv_decl_errno=yes, lrzsz_cv_decl_errno=no)])
26 AC_MSG_RESULT($lrzsz_cv_decl_errno)
27 if test $lrzsz_cv_decl_errno = yes; then
28 AC_DEFINE([HAVE_ERRNO_DECLARATION])
33 AC_DEFUN([LRZSZ_HEADERS_TERM_IO],[
34 AC_CHECK_HEADERS(termios.h sys/termios.h termio.h sys/termio.h sgtty.h)dnl
37 dnl LRZSZ_TYPE_SPEED_T
38 AC_DEFUN(LRZSZ_TYPE_SPEED_T,[
39 AC_REQUIRE([AC_HEADER_STDC])dnl
40 AC_REQUIRE([LRZSZ_HEADERS_TERM_IO])dnl
41 AC_MSG_CHECKING(for speed_t)
42 AC_CACHE_VAL(ac_cv_type_speed_t,
43 [AC_EGREP_CPP(speed_t, [#include <sys/types.h>
51 #if defined(HAVE_SYS_TERMIOS_H)
52 #include <sys/termios.h>
54 #if defined(HAVE_TERMIO_H)
57 #if defined(HAVE_SYS_TERMIO_H)
58 #include <sys/termio.h>
60 #if defined(HAVE_SGTTY_H)
63 #error neither termio.h nor sgtty.h found. Cannot continue. */
69 ], ac_cv_type_speed_t=yes, ac_cv_type_speed_t=no)])dnl
70 AC_MSG_RESULT($ac_cv_type_speed_t)
71 if test $ac_cv_type_speed_t = no; then
72 AC_DEFINE([speed_t],long)
76 AC_DEFUN(lrzsz_HEADER_SYS_SELECT,
77 [AC_CACHE_CHECK([whether sys/time.h and sys/select.h may both be included],
78 lrzsz_cv_header_sys_select,
79 [AC_TRY_COMPILE([#include <sys/types.h>
81 #include <sys/select.h>],
82 [struct tm *tp;], lrzsz_cv_header_sys_select=yes, lrzsz_cv_header_sys_select=no)])
83 if test $lrzsz_cv_header_sys_select = no; then
84 AC_DEFINE(SYS_TIME_WITHOUT_SYS_SELECT)
89 # Do all the work for Automake. This macro actually does too much --
90 # some checks are only needed if your package does certain things.
91 # But this isn't really a big deal.
96 dnl AM_INIT_AUTOMAKE(package,version, [no-define])
98 AC_DEFUN(AM_INIT_AUTOMAKE,
99 [AC_REQUIRE([AM_PROG_INSTALL])
104 dnl test to see if srcdir already configured
105 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
106 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
109 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
110 AC_DEFINE_UNQUOTED(VERSION, "$VERSION"))
111 AC_REQUIRE([AM_SANITY_CHECK])
112 AC_REQUIRE([AC_ARG_PROGRAM])
113 dnl FIXME This is truly gross.
114 missing_dir=`cd $ac_aux_dir && pwd`
115 AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
116 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
117 AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
118 AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
119 AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
120 AC_REQUIRE([AC_PROG_MAKE_SET])])
125 AC_DEFUN(AM_PROG_INSTALL,
126 [AC_REQUIRE([AC_PROG_INSTALL])
127 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
128 AC_SUBST(INSTALL_SCRIPT)dnl
132 # Check to make sure that the build environment is sane.
135 AC_DEFUN(AM_SANITY_CHECK,
136 [AC_MSG_CHECKING([whether build environment is sane])
139 echo timestamp > conftestfile
140 # Do `set' in a subshell so we don't clobber the current shell's
141 # arguments. Must try -L first in case configure is actually a
142 # symlink; some systems play weird games with the mod time of symlinks
143 # (eg FreeBSD returns the mod time of the symlink's containing
146 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
147 if test "[$]*" = "X"; then
149 set X `ls -t $srcdir/configure conftestfile`
151 if test "[$]*" != "X $srcdir/configure conftestfile" \
152 && test "[$]*" != "X conftestfile $srcdir/configure"; then
154 # If neither matched, then we have a broken ls. This can happen
155 # if, for instance, CONFIG_SHELL is bash and it inherits a
156 # broken ls alias from the environment. This has actually
157 # happened. Such a system could not be considered "sane".
158 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
159 alias in your environment])
162 test "[$]2" = conftestfile
168 AC_MSG_ERROR([newly created file is older than distributed files!
169 Check your system clock])
174 dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
175 dnl The program must properly implement --version.
176 AC_DEFUN(AM_MISSING_PROG,
177 [AC_MSG_CHECKING(for working $2)
178 # Run test in a subshell; some versions of sh will print an error if
179 # an executable is not found, even if stderr is redirected.
180 # Redirect stdin to placate older versions of autoconf. Sigh.
181 if ($2 --version) < /dev/null > /dev/null 2>&1; then
186 AC_MSG_RESULT(missing)
190 # Like AC_CONFIG_HEADER, but automatically create stamp file.
192 AC_DEFUN(AM_CONFIG_HEADER,
194 AC_CONFIG_HEADER([$1])
195 dnl When config.status generates a header, we must update the stamp-h file.
196 dnl This file resides in the same directory as the config header
197 dnl that is generated. We must strip everything past the first ":",
198 dnl and everything past the last "/".
199 AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
200 ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
201 <<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
203 for am_file in <<$1>>; do
204 case " <<$>>CONFIG_HEADERS " in
205 *" <<$>>am_file "*<<)>>
206 echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
209 am_indx=`expr "<<$>>am_indx" + 1`
216 AC_DEFUN(AM_C_PROTOTYPES,
217 [AC_REQUIRE([AM_PROG_CC_STDC])
218 AC_REQUIRE([AC_PROG_CPP])
219 AC_MSG_CHECKING([for function prototypes])
220 if test "$am_cv_prog_cc_stdc" != no; then
222 AC_DEFINE(PROTOTYPES)
226 U=_ ANSI2KNR=./ansi2knr
227 # Ensure some checks needed by ansi2knr itself.
229 AC_CHECK_HEADERS(string.h)
232 AC_SUBST(ANSI2KNR)dnl
238 # @defmac AC_PROG_CC_STDC
239 # @maindex PROG_CC_STDC
241 # If the C compiler in not in ANSI C mode by default, try to add an option
242 # to output variable @code{CC} to make it so. This macro tries various
243 # options that select ANSI C on some system or another. It considers the
244 # compiler to be in ANSI C mode if it handles function prototypes correctly.
246 # If you use this macro, you should check after calling it whether the C
247 # compiler has been set to accept ANSI C; if not, the shell variable
248 # @code{am_cv_prog_cc_stdc} is set to @samp{no}. If you wrote your source
249 # code in ANSI C, you can make an un-ANSIfied copy of it by using the
250 # program @code{ansi2knr}, which comes with Ghostscript.
253 AC_DEFUN(AM_PROG_CC_STDC,
254 [AC_REQUIRE([AC_PROG_CC])
255 AC_BEFORE([$0], [AC_C_INLINE])
256 AC_BEFORE([$0], [AC_C_CONST])
257 dnl Force this before AC_PROG_CPP. Some cpp's, eg on HPUX, require
258 dnl a magic option to avoid problems with ANSI preprocessor commands
260 dnl FIXME: can't do this because then AC_AIX won't work due to a
261 dnl circular dependency.
262 dnl AC_BEFORE([$0], [AC_PROG_CPP])
263 AC_MSG_CHECKING(for ${CC-cc} option to accept ANSI C)
264 AC_CACHE_VAL(am_cv_prog_cc_stdc,
265 [am_cv_prog_cc_stdc=no
267 # Don't try gcc -ansi; that turns off useful extensions and
268 # breaks some systems' header files.
270 # Ultrix and OSF/1 -std1
271 # HP-UX -Aa -D_HPUX_SOURCE
272 # SVR4 -Xc -D__EXTENSIONS__
273 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
275 CC="$ac_save_CC $ac_arg"
279 #include <sys/types.h>
280 #include <sys/stat.h>
281 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
282 struct buf { int x; };
283 FILE * (*rcsopen) (struct buf *, struct stat *, int);
284 static char *e (p, i)
290 static char *f (char * (*g) (char **, int), char **p, ...)
295 s = g (p, va_arg (v,int));
299 int test (int i, double x);
300 struct s1 {int (*f) (int a);};
301 struct s2 {int (*f) (double a);};
302 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
306 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
308 [am_cv_prog_cc_stdc="$ac_arg"; break])
312 if test -z "$am_cv_prog_cc_stdc"; then
313 AC_MSG_RESULT([none needed])
315 AC_MSG_RESULT($am_cv_prog_cc_stdc)
317 case "x$am_cv_prog_cc_stdc" in
319 *) CC="$CC $am_cv_prog_cc_stdc" ;;
323 # Macro to add for using GNU gettext.
324 # Ulrich Drepper <drepper@cygnus.com>, 1995.
326 # This file file be copied and used freely without restrictions. It can
327 # be used in projects which are not available under the GNU Public License
328 # but which still want to provide support for the GNU gettext functionality.
329 # Please note that the actual code is *not* freely available.
333 AC_DEFUN(AM_WITH_NLS,
334 [AC_MSG_CHECKING([whether NLS is requested])
335 dnl Default is enabled NLS
337 [ --disable-nls do not use Native Language Support],
338 USE_NLS=$enableval, USE_NLS=yes)
339 AC_MSG_RESULT($USE_NLS)
342 USE_INCLUDED_LIBINTL=no
344 dnl If we use NLS figure out what method
345 if test "$USE_NLS" = "yes"; then
346 AC_DEFINE(ENABLE_NLS)
347 AC_MSG_CHECKING([whether included gettext is requested])
348 AC_ARG_WITH(included-gettext,
349 [ --with-included-gettext use the GNU gettext library included here],
350 nls_cv_force_use_gnu_gettext=$withval,
351 nls_cv_force_use_gnu_gettext=no)
352 AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
354 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
355 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
356 dnl User does not insist on using GNU NLS library. Figure out what
357 dnl to use. If gettext or catgets are available (in this order) we
358 dnl use this. Else we have to fall back to GNU NLS library.
359 dnl catgets is only used if permitted by option --with-catgets.
364 AC_CHECK_HEADER(libintl.h,
365 [AC_CACHE_CHECK([for gettext in libc], gt_cv_func_gettext_libc,
366 [AC_TRY_LINK([#include <libintl.h>], [return (int) gettext ("")],
367 gt_cv_func_gettext_libc=yes, gt_cv_func_gettext_libc=no)])
369 if test "$gt_cv_func_gettext_libc" != "yes"; then
370 AC_CHECK_LIB(intl, bindtextdomain,
371 [AC_CACHE_CHECK([for gettext in libintl],
372 gt_cv_func_gettext_libintl,
373 [AC_TRY_LINK([], [return (int) gettext ("")],
374 gt_cv_func_gettext_libintl=yes,
375 gt_cv_func_gettext_libintl=no)])])
378 if test "$gt_cv_func_gettext_libc" = "yes" \
379 || test "$gt_cv_func_gettext_libintl" = "yes"; then
380 AC_DEFINE(HAVE_GETTEXT)
381 AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
382 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
383 if test "$MSGFMT" != "no"; then
384 AC_CHECK_FUNCS(dcgettext)
385 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
386 AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
387 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
388 AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
389 return _nl_msg_cat_cntr],
399 if test "$CATOBJEXT" = "NONE"; then
400 AC_MSG_CHECKING([whether catgets can be used])
402 [ --with-catgets use catgets functions if available],
403 nls_cv_use_catgets=$withval, nls_cv_use_catgets=no)
404 AC_MSG_RESULT($nls_cv_use_catgets)
406 if test "$nls_cv_use_catgets" = "yes"; then
407 dnl No gettext in C library. Try catgets next.
408 AC_CHECK_LIB(i, main)
409 AC_CHECK_FUNC(catgets,
410 [AC_DEFINE(HAVE_CATGETS)
411 INTLOBJS="\$(CATOBJS)"
412 AC_PATH_PROG(GENCAT, gencat, no)dnl
413 if test "$GENCAT" != "no"; then
414 AC_PATH_PROG(GMSGFMT, gmsgfmt, no)
415 if test "$GMSGFMT" = "no"; then
416 AM_PATH_PROG_WITH_TEST(GMSGFMT, msgfmt,
417 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)
419 AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
420 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
421 USE_INCLUDED_LIBINTL=yes
425 INTLDEPS='$(top_builddir)/intl/libintl.a'
427 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
428 nls_cv_header_intl=intl/libintl.h
429 nls_cv_header_libgt=intl/libgettext.h
434 if test "$CATOBJEXT" = "NONE"; then
435 dnl Neither gettext nor catgets in included in the C library.
436 dnl Fall back on GNU gettext library.
437 nls_cv_use_gnu_gettext=yes
441 if test "$nls_cv_use_gnu_gettext" = "yes"; then
442 dnl Mark actions used to generate GNU NLS library.
443 INTLOBJS="\$(GETTOBJS)"
444 AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
445 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], msgfmt)
446 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
447 AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
448 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
450 USE_INCLUDED_LIBINTL=yes
454 INTLDEPS='$(top_builddir)/intl/libintl.a'
456 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
457 nls_cv_header_intl=intl/libintl.h
458 nls_cv_header_libgt=intl/libgettext.h
461 dnl Test whether we really found GNU xgettext.
462 if test "$XGETTEXT" != ":"; then
463 dnl If it is no GNU xgettext we define it as : so that the
464 dnl Makefiles still can work.
465 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
469 [found xgettext programs is not GNU xgettext; ignore it])
474 # We need to process the po/ directory.
478 nls_cv_header_intl=intl/libintl.h
479 nls_cv_header_libgt=intl/libgettext.h
482 # If this is used in GNU gettext we have to set USE_NLS to `yes'
483 # because some of the sources are only built for this goal.
484 if test "$PACKAGE" = gettext; then
486 USE_INCLUDED_LIBINTL=yes
489 dnl These rules are solely for the distribution goal. While doing this
490 dnl we only have to keep exactly one list of the available catalogs
492 for lang in $ALL_LINGUAS; do
493 GMOFILES="$GMOFILES $lang.gmo"
494 POFILES="$POFILES $lang.po"
497 dnl Make all variables we use known to autoconf.
498 AC_SUBST(USE_INCLUDED_LIBINTL)
501 AC_SUBST(DATADIRNAME)
511 AC_DEFUN(AM_GNU_GETTEXT,
512 [AC_REQUIRE([AC_PROG_MAKE_SET])dnl
513 AC_REQUIRE([AC_PROG_CC])dnl
514 AC_REQUIRE([AC_PROG_RANLIB])dnl
515 AC_REQUIRE([AC_ISC_POSIX])dnl
516 AC_REQUIRE([AC_HEADER_STDC])dnl
517 AC_REQUIRE([AC_C_CONST])dnl
518 AC_REQUIRE([AC_C_INLINE])dnl
519 AC_REQUIRE([AC_TYPE_OFF_T])dnl
520 AC_REQUIRE([AC_TYPE_SIZE_T])dnl
521 AC_REQUIRE([AC_FUNC_ALLOCA])dnl
522 AC_REQUIRE([AC_FUNC_MMAP])dnl
524 AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h string.h \
525 unistd.h values.h sys/param.h])
526 AC_CHECK_FUNCS([getcwd munmap putenv setenv setlocale strchr strcasecmp \
527 __argz_count __argz_stringify __argz_next])
529 if test "${ac_cv_func_stpcpy+set}" != "set"; then
530 AC_CHECK_FUNCS(stpcpy)
532 if test "${ac_cv_func_stpcpy}" = "yes"; then
533 AC_DEFINE(HAVE_STPCPY)
539 if test "x$CATOBJEXT" != "x"; then
540 if test "x$ALL_LINGUAS" = "x"; then
543 AC_MSG_CHECKING(for catalogs to be installed)
545 for lang in ${LINGUAS=$ALL_LINGUAS}; do
546 case "$ALL_LINGUAS" in
547 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
551 AC_MSG_RESULT($LINGUAS)
554 dnl Construct list of names of catalog files to be constructed.
555 if test -n "$LINGUAS"; then
556 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
560 dnl The reference to <locale.h> in the installed <libintl.h> file
561 dnl must be resolved because we cannot expect the users of this
562 dnl to define HAVE_LOCALE_H.
563 if test $ac_cv_header_locale_h = yes; then
564 INCLUDE_LOCALE_H="#include <locale.h>"
567 /* The system does not provide the header <locale.h>. Take care yourself. */"
569 AC_SUBST(INCLUDE_LOCALE_H)
571 dnl Determine which catalog format we have (if any is needed)
572 dnl For now we know about two different formats:
573 dnl Linux libc-5 and the normal X/Open format
574 test -d intl || mkdir intl
575 if test "$CATOBJEXT" = ".cat"; then
576 AC_CHECK_HEADER(linux/version.h, msgformat=linux, msgformat=xopen)
578 dnl Transform the SED scripts while copying because some dumb SEDs
579 dnl cannot handle comments.
580 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
582 dnl po2tbl.sed is always needed.
583 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
584 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
586 dnl In the intl/Makefile.in we have a special dependency which makes
587 dnl only sense for gettext. We comment this out for non-gettext
589 if test "$PACKAGE" = "gettext"; then
599 dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
600 dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
601 dnl Try to locate is.
603 if test -n "$ac_aux_dir"; then
604 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
606 if test -z "$MKINSTALLDIRS"; then
607 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
609 AC_SUBST(MKINSTALLDIRS)
611 dnl *** For now the libtool support in intl/Makefile is not for real.
615 dnl Generate list of files to be processed by xgettext which will
616 dnl be included in po/Makefile.
617 test -d po || mkdir po
618 if test "x$srcdir" != "x."; then
619 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
620 posrcprefix="$srcdir/"
622 posrcprefix="../$srcdir/"
628 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
629 < $srcdir/po/POTFILES.in > po/POTFILES
632 # Search path for a program which passes the given test.
633 # Ulrich Drepper <drepper@cygnus.com>, 1996.
635 # This file file be copied and used freely without restrictions. It can
636 # be used in projects which are not available under the GNU Public License
637 # but which still want to provide support for the GNU gettext functionality.
638 # Please note that the actual code is *not* freely available.
642 dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
643 dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
644 AC_DEFUN(AM_PATH_PROG_WITH_TEST,
645 [# Extract the first word of "$2", so it can be a program name with args.
646 set dummy $2; ac_word=[$]2
647 AC_MSG_CHECKING([for $ac_word])
648 AC_CACHE_VAL(ac_cv_path_$1,
651 ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
655 for ac_dir in ifelse([$5], , $PATH, [$5]); do
656 test -z "$ac_dir" && ac_dir=.
657 if test -f $ac_dir/$ac_word; then
659 ac_cv_path_$1="$ac_dir/$ac_word"
665 dnl If no 4th arg is given, leave the cache variable unset,
666 dnl so AC_PATH_PROGS will keep looking.
667 ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
672 if test -n "[$]$1"; then
680 # Check whether LC_MESSAGES is available in <locale.h>.
681 # Ulrich Drepper <drepper@cygnus.com>, 1995.
683 # This file file be copied and used freely without restrictions. It can
684 # be used in projects which are not available under the GNU Public License
685 # but which still want to provide support for the GNU gettext functionality.
686 # Please note that the actual code is *not* freely available.
690 AC_DEFUN(AM_LC_MESSAGES,
691 [if test $ac_cv_header_locale_h = yes; then
692 AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
693 [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
694 am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
695 if test $am_cv_val_LC_MESSAGES = yes; then
696 AC_DEFINE(HAVE_LC_MESSAGES)