- tabs in preamble
[packages/flux.git] / flux-acinclude_fix.patch
CommitLineData
abff636a 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
3@@ -189,354 +189,6 @@
4 fi
5 ])
c9bf22f1 6
abff636a 7-
8-
9-
10-
11-
c9bf22f1 12-
13-
14-# Macro to add for using GNU gettext.
15-# Ulrich Drepper <drepper@cygnus.com>, 1995.
16-#
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.
21-
22-# serial 5 + patch (wk 21.10.98)
23-
24-AC_DEFUN(AM_WITH_NLS,
25- [AC_MSG_CHECKING([whether NLS is requested])
26- dnl Default is enabled NLS
27- AC_ARG_ENABLE(nls,
28- [ --disable-nls do not use Native Language Support],
29- USE_NLS=$enableval, USE_NLS=yes)
30- AC_MSG_RESULT($USE_NLS)
31- AC_SUBST(USE_NLS)
32-
33- USE_INCLUDED_LIBINTL=no
34-
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)
44-
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.
51- nls_cv_header_intl=
52- nls_cv_header_libgt=
53- CATOBJEXT=NONE
54-
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)])
59-
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)])
65- fi
66-
67- if test "$gt_cv_func_gettext_libintl" = "yes" ; then
68- LIBS="-lintl $LIBS"
69- fi
70-
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],
83- [CATOBJEXT=.gmo
84- DATADIRNAME=share],
85- [CATOBJEXT=.mo
86- DATADIRNAME=lib])
87- INSTOBJEXT=.mo
88- fi
89- fi
90- ])
91-
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)
98-
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)
111- fi
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
115- CATOBJEXT=.cat
116- INSTOBJEXT=.cat
117- DATADIRNAME=lib
118- INTLDEPS='$(top_builddir)/intl/libintl.a'
119- INTLLIBS=$INTLDEPS
120- LIBS=`echo $LIBS | sed -e 's/-lintl//'`
121- nls_cv_header_intl=intl/libintl.h
122- nls_cv_header_libgt=intl/libgettext.h
123- fi])
124- fi
125- fi
126-
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
131- fi
132- fi
133-
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)'`"], :)
142- AC_SUBST(MSGFMT)
143- USE_INCLUDED_LIBINTL=yes
144- CATOBJEXT=.gmo
145- INSTOBJEXT=.mo
146- DATADIRNAME=share
147- INTLDEPS='$(top_builddir)/intl/libintl.a'
148- INTLLIBS=$INTLDEPS
149- LIBS=`echo $LIBS | sed -e 's/-lintl//'`
150- nls_cv_header_intl=intl/libintl.h
151- nls_cv_header_libgt=intl/libgettext.h
152- fi
153-
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
159- : ;
160- else
161- AC_MSG_RESULT(
162- [found xgettext program is not GNU xgettext; ignore it])
163- XGETTEXT=":"
164- fi
165- fi
166-
167- # We need to process the po/ directory.
168- POSUB=po
169- else
170- DATADIRNAME=share
171- nls_cv_header_intl=intl/libintl.h
172- nls_cv_header_libgt=intl/libgettext.h
173- fi
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
178- esac])
179-
180-
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
184- USE_NLS=yes
185- USE_INCLUDED_LIBINTL=yes
186- fi
187-
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"
194- done
195-
196- dnl Make all variables we use known to autoconf.
197- AC_SUBST(USE_INCLUDED_LIBINTL)
198- AC_SUBST(CATALOGS)
199- AC_SUBST(CATOBJEXT)
200- AC_SUBST(DATADIRNAME)
201- AC_SUBST(GMOFILES)
202- AC_SUBST(INSTOBJEXT)
203- AC_SUBST(INTLDEPS)
204- AC_SUBST(INTLLIBS)
205- AC_SUBST(INTLOBJS)
206- AC_SUBST(POFILES)
207- AC_SUBST(POSUB)
208- ])
209-
210-
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
223-
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])
228-
229- if test "${ac_cv_func_stpcpy+set}" != "set"; then
230- AC_CHECK_FUNCS(stpcpy)
231- fi
232- if test "${ac_cv_func_stpcpy}" = "yes"; then
233- AC_DEFINE(HAVE_STPCPY)
234- fi
235-
236- AM_LC_MESSAGES
237- AM_WITH_NLS
238-
239- if test "x$CATOBJEXT" != "x"; then
240- if test "x$ALL_LINGUAS" = "x"; then
241- LINGUAS=
242- else
243- AC_MSG_CHECKING(for catalogs to be installed)
244- NEW_LINGUAS=
245- for lang in ${LINGUAS=$ALL_LINGUAS}; do
246- case "$ALL_LINGUAS" in
247- *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
248- esac
249- done
250- LINGUAS=$NEW_LINGUAS
251- AC_MSG_RESULT($LINGUAS)
252- fi
253-
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
257- fi
258- fi
259-
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>"
265- else
266- INCLUDE_LOCALE_H="\
267-/* The system does not provide the header <locale.h>. Take care yourself. */"
268- fi
269- AC_SUBST(INCLUDE_LOCALE_H)
270-
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)
277-
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
281- fi
282- dnl po2tbl.sed is always needed.
283- sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
284- $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
285-
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
288- dnl packages.
289- if test "$PACKAGE" = "gettext"; then
290- GT_NO="#NO#"
291- GT_YES=
292- else
293- GT_NO=
294- GT_YES="#YES#"
295- fi
296- AC_SUBST(GT_NO)
297- AC_SUBST(GT_YES)
298-
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.
302- MKINSTALLDIRS=
303- if test -n "$ac_aux_dir"; then
304- MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
305- fi
306- if test -z "$MKINSTALLDIRS"; then
307- MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
308- fi
309- AC_SUBST(MKINSTALLDIRS)
310-
311- dnl *** For now the libtool support in intl/Makefile is not for real.
312- l=
313- AC_SUBST(l)
314-
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/"
321- else
322- posrcprefix="../$srcdir/"
323- fi
324- else
325- posrcprefix="../"
326- fi
327- rm -f po/POTFILES
328- sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
329- < $srcdir/po/POTFILES.in > po/POTFILES
330- ])
331-
332-dnl aclocal.m4 generated automatically by aclocal 1.3
333-
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.
338-
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.
343-
344-dnl macros to configure g10
345-
346-
347-dnl WK_MSG_PRINT(STRING)
348-dnl print a message
349-dnl
350-define(WK_MSG_PRINT,
351- [ echo $ac_n "$1"" $ac_c" 1>&AC_FD_MSG
352- ])
353-
354-
abff636a 355 dnl WK_CHECK_TYPEDEF(TYPE, HAVE_NAME)
356 dnl Check whether a typedef exists and create a #define $2 if it exists
357 dnl
358@@ -556,357 +208,3 @@
359
360
361
c9bf22f1 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
368-dnl
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"
373- else
374- wk_link_files_src="$wk_link_files_src $1"
375- wk_link_files_dst="$wk_link_files_dst $2"
376- fi
377- ])
378-define(WK_DO_LINK_FILES,
379- [ AC_LINK_FILES( $wk_link_files_src, $wk_link_files_dst )
380- ])
381-
382-
383-dnl WK_CHECK_ENDIAN
384-dnl define either LITTLE_ENDIAN_HOST or BIG_ENDIAN_HOST
385-dnl
386-define(WK_CHECK_ENDIAN,
387- [ if test "$cross_compiling" = yes; then
388- AC_MSG_WARN(cross compiling; assuming little endianess)
389- fi
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
402- not 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. */
407- union
408- {
409- long l;
410- char c[sizeof (long)];
411- } u;
412- u.l = 1;
413- exit (u.c[sizeof (long) - 1] == 1);
414- }],
415- wk_cv_c_endian=little,
416- wk_cv_c_endian=big,
417- wk_cv_c_endian=little
418- )
419- fi
420- ])
421- AC_MSG_RESULT([$wk_cv_c_endian])
422- if test "$wk_cv_c_endian" = little; then
423- AC_DEFINE(LITTLE_ENDIAN_HOST)
424- else
425- AC_DEFINE(BIG_ENDIAN_HOST)
426- fi
427- ])
428-
429-dnl WK_CHECK_CACHE
430-dnl
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.)
440- else
441- AC_MSG_RESULT(ok)
442- fi
443- ])
444-
445-
446-
447-
448-# Check for SysV IPC (from GIMP)
449-# And see whether we have a SHM_LOCK (FreeBSD does not have it).
450-dnl WK_CHECK_IPC
451-dnl
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)
456- AC_TRY_RUN([
457- #include <sys/types.h>
458- #include <sys/ipc.h>
459- #include <sys/shm.h>
460- int main()
461- {
462- int id;
463- char *shmaddr;
464- id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0777);
465- if (id == -1)
466- exit (2);
467- shmaddr = shmat (id, 0, 0);
468- shmctl (id, IPC_RMID, 0);
469- if ((char*) shmat (id, 0, 0) == (char*) -1)
470- {
471- shmdt (shmaddr);
472- exit (1);
473- }
474- shmdt (shmaddr);
475- shmdt (shmaddr);
476- exit (0);
477- }
478- ],
479- AC_DEFINE(IPC_RMID_DEFERRED_RELEASE)
480- AC_MSG_RESULT(yes),
481- AC_MSG_RESULT(no),
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); }
488- ],
489- AC_DEFINE(IPC_HAVE_SHM_LOCK)
490- AC_MSG_RESULT(yes),
491- AC_MSG_RESULT(no))
492- fi
493- ])
494-
495-
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)
498-dnl WK_CHECK_MLOCK
499-dnl
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)
504- AC_TRY_RUN([
505- #include <stdlib.h>
506- #include <unistd.h>
507- #include <errno.h>
508- #include <sys/mman.h>
509- #include <sys/types.h>
510- #include <fcntl.h>
511-
512- int main()
513- {
514- char *pool;
515- int err;
516- long int pgsize = getpagesize();
517-
518- pool = malloc( 4096 + pgsize );
519- if( !pool )
520- return 2;
521- pool += (pgsize - ((long int)pool % pgsize));
522-
523- err = mlock( pool, 4096 );
524- if( !err || errno == EPERM )
525- return 0; /* okay */
526-
527- return 1; /* hmmm */
528- }
529-
530- ],
531- AC_MSG_RESULT(no),
532- AC_DEFINE(HAVE_BROKEN_MLOCK)
533- AC_MSG_RESULT(yes),
534- AC_MSG_RESULT(assuming no))
535- fi
536- ])
537-
538-
539-
540-# Search path for a program which passes the given test.
541-# Ulrich Drepper <drepper@cygnus.com>, 1996.
542-#
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.
547-
548-# serial 1
549-
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,
557-[case "[$]$1" in
558- /*)
559- ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
560- ;;
561- *)
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
566- if [$3]; then
567- ac_cv_path_$1="$ac_dir/$ac_word"
568- break
569- fi
570- fi
571- done
572- IFS="$ac_save_ifs"
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"
576-])dnl
577- ;;
578-esac])dnl
579-$1="$ac_cv_path_$1"
580-if test -n "[$]$1"; then
581- AC_MSG_RESULT([$]$1)
582-else
583- AC_MSG_RESULT(no)
584-fi
585-AC_SUBST($1)dnl
586-])
587-
588-# Check whether LC_MESSAGES is available in <locale.h>.
589-# Ulrich Drepper <drepper@cygnus.com>, 1995.
590-#
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.
595-
596-# serial 1
597-
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)
605- fi
606- fi])
607-
608-# Like AC_CONFIG_HEADER, but automatically create stamp file.
609-
610-AC_DEFUN(AM_CONFIG_HEADER,
611-[AC_PREREQ([2.12])
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>>,
620-<<am_indx=1
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
625- ;;
626- esac
627- am_indx=`expr "<<$>>am_indx" + 1`
628-done<<>>dnl>>)
629-changequote([,]))])
630-
631-#
632-# Check to make sure that the build environment is sane.
633-#
634-
635-AC_DEFUN(AM_SANITY_CHECK,
636-[AC_MSG_CHECKING([whether build environment is sane])
637-# Just in case
638-sleep 1
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
644-# directory).
645-if (
646- set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
647- if test "[$]*" = "X"; then
648- # -L didn't work.
649- set X `ls -t $srcdir/configure conftestfile`
650- fi
651- if test "[$]*" != "X $srcdir/configure conftestfile" \
652- && test "[$]*" != "X conftestfile $srcdir/configure"; then
653-
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])
660- fi
661-
662- test "[$]2" = conftestfile
663- )
664-then
665- # Ok.
666- :
667-else
668- AC_MSG_ERROR([newly created file is older than distributed files!
669-Check your system clock])
670-fi
671-rm -f conftest*
672-AC_MSG_RESULT(yes)])
673-
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
682- $1=$2
683- AC_MSG_RESULT(found)
684-else
685- $1="$3/missing $2"
686- AC_MSG_RESULT(missing)
687-fi
688-AC_SUBST($1)])
689-
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".
693-
694-dnl AM_CYGWIN32()
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)
699-rm -f conftest*])
700-CYGWIN32=
701-test "$am_cv_cygwin32" = yes && CYGWIN32=yes])
702-
703-# Define a conditional.
704-
705-AC_DEFUN(AM_CONDITIONAL,
706-[AC_SUBST($1_TRUE)
707-AC_SUBST($1_FALSE)
708-if $2; then
709- $1_TRUE=
710- $1_FALSE='#'
711-else
712- $1_TRUE='#'
713- $1_FALSE=
714-fi])
715-
This page took 0.16579 seconds and 4 git commands to generate.