VirtualBox

source: kBuild/trunk/src/gmake/configure@ 281

Last change on this file since 281 was 200, checked in by bird, 20 years ago

Renaming some files.

  • Property svn:eol-style set to native
File size: 439.8 KB
Line 
1#! /bin/sh
2# From configure.in Id: configure.in,v 1.125 2004/03/06 08:05:19 psmith Exp .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for GNU make 3.81beta1.
5#
6# Report bugs to <[email protected]>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
25DUALCASE=1; export DUALCASE # for MKS sh
26
27# Support unset when possible.
28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
224 test -d ./-p && rmdir ./-p
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233# Sed expression to map a string onto a valid variable name.
234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
271PACKAGE_NAME='GNU make'
272PACKAGE_TARNAME='make'
273PACKAGE_VERSION='3.81beta1'
274PACKAGE_STRING='GNU make 3.81beta1'
275PACKAGE_BUGREPORT='[email protected]'
276
277ac_unique_file="vpath.c"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB CPP AR PERL build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP U ANSI2KNR MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB ALLOCA LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS REMOTE USE_CUSTOMS_TRUE USE_CUSTOMS_FALSE GLOBINC GLOBLIB USE_LOCAL_GLOB_TRUE USE_LOCAL_GLOB_FALSE MAKE_HOST LTLIBOBJS'
316ac_subst_files='MAINT_MAKEFILE'
317
318# Initialize some variables set by options.
319ac_init_help=
320ac_init_version=false
321# The variables have the same names as the options, with
322# dashes changed to underlines.
323cache_file=/dev/null
324exec_prefix=NONE
325no_create=
326no_recursion=
327prefix=NONE
328program_prefix=NONE
329program_suffix=NONE
330program_transform_name=s,x,x,
331silent=
332site=
333srcdir=
334verbose=
335x_includes=NONE
336x_libraries=NONE
337
338# Installation directory options.
339# These are left unexpanded so users can "make install exec_prefix=/foo"
340# and all the variables that are supposed to be based on exec_prefix
341# by default will actually change.
342# Use braces instead of parens because sh, perl, etc. also accept them.
343bindir='${exec_prefix}/bin'
344sbindir='${exec_prefix}/sbin'
345libexecdir='${exec_prefix}/libexec'
346datadir='${prefix}/share'
347sysconfdir='${prefix}/etc'
348sharedstatedir='${prefix}/com'
349localstatedir='${prefix}/var'
350libdir='${exec_prefix}/lib'
351includedir='${prefix}/include'
352oldincludedir='/usr/include'
353infodir='${prefix}/info'
354mandir='${prefix}/man'
355
356ac_prev=
357for ac_option
358do
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
364 fi
365
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
368 # Accept the important Cygnus configure options, so we can diagnose typos.
369
370 case $ac_option in
371
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 bindir=$ac_optarg ;;
376
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
381
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
388
389 --config-cache | -C)
390 cache_file=config.cache ;;
391
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
396 datadir=$ac_optarg ;;
397
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
406
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 *) ac_optarg=yes ;;
417 esac
418 eval "enable_$ac_feature='$ac_optarg'" ;;
419
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
428
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
432
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
439
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
444
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
451
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
456
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir=$ac_optarg ;;
461
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
468
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
477
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir=$ac_optarg ;;
482
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
486
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
489 no_create=yes ;;
490
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
494
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
503
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix=$ac_optarg ;;
508
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
515
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
522
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
539
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
543
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
548 sbindir=$ac_optarg ;;
549
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
559 sharedstatedir=$ac_optarg ;;
560
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site=$ac_optarg ;;
565
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir=$ac_optarg ;;
570
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
577
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
582
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
585
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
588
589 -with-* | --with-*)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 *) ac_optarg=yes ;;
599 esac
600 eval "with_$ac_package='$ac_optarg'" ;;
601
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
610
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
614
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
621
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
628
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
632 ;;
633
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
643
644 *)
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 ;;
651
652 esac
653done
654
655if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
659fi
660
661# Be sure to have absolute paths.
662for ac_var in exec_prefix prefix
663do
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670done
671
672# Be sure to have absolute paths.
673for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
675do
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
681 esac
682done
683
684# There might be people who depend on the old broken behavior: `$host'
685# used to hold the argument of --host etc.
686# FIXME: To remove some day.
687build=$build_alias
688host=$host_alias
689target=$target_alias
690
691# FIXME: To remove some day.
692if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
699 fi
700fi
701
702ac_tool_prefix=
703test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705test "$silent" = yes && exec 6>/dev/null
706
707
708# Find the source files, if location was not specified.
709if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
727 fi
728else
729 ac_srcdir_defaulted=no
730fi
731if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
735 else
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
738 fi
739fi
740(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744ac_env_build_alias_set=${build_alias+set}
745ac_env_build_alias_value=$build_alias
746ac_cv_env_build_alias_set=${build_alias+set}
747ac_cv_env_build_alias_value=$build_alias
748ac_env_host_alias_set=${host_alias+set}
749ac_env_host_alias_value=$host_alias
750ac_cv_env_host_alias_set=${host_alias+set}
751ac_cv_env_host_alias_value=$host_alias
752ac_env_target_alias_set=${target_alias+set}
753ac_env_target_alias_value=$target_alias
754ac_cv_env_target_alias_set=${target_alias+set}
755ac_cv_env_target_alias_value=$target_alias
756ac_env_CC_set=${CC+set}
757ac_env_CC_value=$CC
758ac_cv_env_CC_set=${CC+set}
759ac_cv_env_CC_value=$CC
760ac_env_CFLAGS_set=${CFLAGS+set}
761ac_env_CFLAGS_value=$CFLAGS
762ac_cv_env_CFLAGS_set=${CFLAGS+set}
763ac_cv_env_CFLAGS_value=$CFLAGS
764ac_env_LDFLAGS_set=${LDFLAGS+set}
765ac_env_LDFLAGS_value=$LDFLAGS
766ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767ac_cv_env_LDFLAGS_value=$LDFLAGS
768ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_env_CPPFLAGS_value=$CPPFLAGS
770ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772ac_env_CPP_set=${CPP+set}
773ac_env_CPP_value=$CPP
774ac_cv_env_CPP_set=${CPP+set}
775ac_cv_env_CPP_value=$CPP
776
777#
778# Report the --help message.
779#
780if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
783 cat <<_ACEOF
784\`configure' configures GNU make 3.81beta1 to adapt to many kinds of systems.
785
786Usage: $0 [OPTION]... [VAR=VALUE]...
787
788To assign environment variables (e.g., CC, CFLAGS...), specify them as
789VAR=VALUE. See below for descriptions of some of the useful variables.
790
791Defaults for the options are specified in brackets.
792
793Configuration:
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803
804_ACEOF
805
806 cat <<_ACEOF
807Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
809 [$ac_default_prefix]
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 [PREFIX]
812
813By default, \`make install' will install all the files in
814\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816for instance \`--prefix=\$HOME'.
817
818For better control, use the options below.
819
820Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
833_ACEOF
834
835 cat <<\_ACEOF
836
837Program names:
838 --program-prefix=PREFIX prepend PREFIX to installed program names
839 --program-suffix=SUFFIX append SUFFIX to installed program names
840 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
841
842System types:
843 --build=BUILD configure for building on BUILD [guessed]
844 --host=HOST cross-compile to build programs to run on HOST [BUILD]
845_ACEOF
846fi
847
848if test -n "$ac_init_help"; then
849 case $ac_init_help in
850 short | recursive ) echo "Configuration of GNU make 3.81beta1:";;
851 esac
852 cat <<\_ACEOF
853
854Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --disable-dependency-tracking speeds up one-time build
858 --enable-dependency-tracking do not reject slow dependency extractors
859 --disable-nls do not use Native Language Support
860 --disable-rpath do not hardcode runtime library paths
861 --disable-largefile omit support for large files
862 --disable-job-server disallow recursive make communication during -jN
863
864Optional Packages:
865 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
866 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
867 --with-gnu-ld assume the C compiler uses GNU ld default=no
868 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
869 --without-libiconv-prefix don't search for libiconv in includedir and libdir
870 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
871 --without-libintl-prefix don't search for libintl in includedir and libdir
872 --with-customs=DIR enable remote jobs via Customs--see README.customs
873 --with-dmalloc use dmalloc, as in
874 http://www.dmalloc.com/dmalloc.tar.gz
875
876Some influential environment variables:
877 CC C compiler command
878 CFLAGS C compiler flags
879 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
880 nonstandard directory <lib dir>
881 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
882 headers in a nonstandard directory <include dir>
883 CPP C preprocessor
884
885Use these variables to override the choices made by `configure' or to help
886it to find libraries and programs with nonstandard names/locations.
887
888Report bugs to <[email protected]>.
889_ACEOF
890fi
891
892if test "$ac_init_help" = "recursive"; then
893 # If there are subdirs, report their specific --help.
894 ac_popdir=`pwd`
895 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
896 test -d $ac_dir || continue
897 ac_builddir=.
898
899if test "$ac_dir" != .; then
900 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
901 # A "../" for each directory in $ac_dir_suffix.
902 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
903else
904 ac_dir_suffix= ac_top_builddir=
905fi
906
907case $srcdir in
908 .) # No --srcdir option. We are building in place.
909 ac_srcdir=.
910 if test -z "$ac_top_builddir"; then
911 ac_top_srcdir=.
912 else
913 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
914 fi ;;
915 [\\/]* | ?:[\\/]* ) # Absolute path.
916 ac_srcdir=$srcdir$ac_dir_suffix;
917 ac_top_srcdir=$srcdir ;;
918 *) # Relative path.
919 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
920 ac_top_srcdir=$ac_top_builddir$srcdir ;;
921esac
922
923# Do not use `cd foo && pwd` to compute absolute paths, because
924# the directories may not exist.
925case `pwd` in
926.) ac_abs_builddir="$ac_dir";;
927*)
928 case "$ac_dir" in
929 .) ac_abs_builddir=`pwd`;;
930 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
931 *) ac_abs_builddir=`pwd`/"$ac_dir";;
932 esac;;
933esac
934case $ac_abs_builddir in
935.) ac_abs_top_builddir=${ac_top_builddir}.;;
936*)
937 case ${ac_top_builddir}. in
938 .) ac_abs_top_builddir=$ac_abs_builddir;;
939 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
940 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
941 esac;;
942esac
943case $ac_abs_builddir in
944.) ac_abs_srcdir=$ac_srcdir;;
945*)
946 case $ac_srcdir in
947 .) ac_abs_srcdir=$ac_abs_builddir;;
948 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
949 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
950 esac;;
951esac
952case $ac_abs_builddir in
953.) ac_abs_top_srcdir=$ac_top_srcdir;;
954*)
955 case $ac_top_srcdir in
956 .) ac_abs_top_srcdir=$ac_abs_builddir;;
957 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
958 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
959 esac;;
960esac
961
962 cd $ac_dir
963 # Check for guested configure; otherwise get Cygnus style configure.
964 if test -f $ac_srcdir/configure.gnu; then
965 echo
966 $SHELL $ac_srcdir/configure.gnu --help=recursive
967 elif test -f $ac_srcdir/configure; then
968 echo
969 $SHELL $ac_srcdir/configure --help=recursive
970 elif test -f $ac_srcdir/configure.ac ||
971 test -f $ac_srcdir/configure.in; then
972 echo
973 $ac_configure --help
974 else
975 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
976 fi
977 cd $ac_popdir
978 done
979fi
980
981test -n "$ac_init_help" && exit 0
982if $ac_init_version; then
983 cat <<\_ACEOF
984GNU make configure 3.81beta1
985generated by GNU Autoconf 2.59
986
987Copyright (C) 2003 Free Software Foundation, Inc.
988This configure script is free software; the Free Software Foundation
989gives unlimited permission to copy, distribute and modify it.
990_ACEOF
991 exit 0
992fi
993exec 5>config.log
994cat >&5 <<_ACEOF
995This file contains any messages produced by compilers while
996running configure, to aid debugging if configure makes a mistake.
997
998It was created by GNU make $as_me 3.81beta1, which was
999generated by GNU Autoconf 2.59. Invocation command line was
1000
1001 $ $0 $@
1002
1003_ACEOF
1004{
1005cat <<_ASUNAME
1006## --------- ##
1007## Platform. ##
1008## --------- ##
1009
1010hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1011uname -m = `(uname -m) 2>/dev/null || echo unknown`
1012uname -r = `(uname -r) 2>/dev/null || echo unknown`
1013uname -s = `(uname -s) 2>/dev/null || echo unknown`
1014uname -v = `(uname -v) 2>/dev/null || echo unknown`
1015
1016/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1017/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1018
1019/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1020/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1021/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1022hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1023/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1024/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1025/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1026
1027_ASUNAME
1028
1029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1030for as_dir in $PATH
1031do
1032 IFS=$as_save_IFS
1033 test -z "$as_dir" && as_dir=.
1034 echo "PATH: $as_dir"
1035done
1036
1037} >&5
1038
1039cat >&5 <<_ACEOF
1040
1041
1042## ----------- ##
1043## Core tests. ##
1044## ----------- ##
1045
1046_ACEOF
1047
1048
1049# Keep a trace of the command line.
1050# Strip out --no-create and --no-recursion so they do not pile up.
1051# Strip out --silent because we don't want to record it for future runs.
1052# Also quote any args containing shell meta-characters.
1053# Make two passes to allow for proper duplicate-argument suppression.
1054ac_configure_args=
1055ac_configure_args0=
1056ac_configure_args1=
1057ac_sep=
1058ac_must_keep_next=false
1059for ac_pass in 1 2
1060do
1061 for ac_arg
1062 do
1063 case $ac_arg in
1064 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066 | -silent | --silent | --silen | --sile | --sil)
1067 continue ;;
1068 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1069 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1070 esac
1071 case $ac_pass in
1072 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1073 2)
1074 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1075 if test $ac_must_keep_next = true; then
1076 ac_must_keep_next=false # Got value, back to normal.
1077 else
1078 case $ac_arg in
1079 *=* | --config-cache | -C | -disable-* | --disable-* \
1080 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1081 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1082 | -with-* | --with-* | -without-* | --without-* | --x)
1083 case "$ac_configure_args0 " in
1084 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1085 esac
1086 ;;
1087 -* ) ac_must_keep_next=true ;;
1088 esac
1089 fi
1090 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1091 # Get rid of the leading space.
1092 ac_sep=" "
1093 ;;
1094 esac
1095 done
1096done
1097$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1098$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1099
1100# When interrupted or exit'd, cleanup temporary files, and complete
1101# config.log. We remove comments because anyway the quotes in there
1102# would cause problems or look ugly.
1103# WARNING: Be sure not to use single quotes in there, as some shells,
1104# such as our DU 5.0 friend, will then `close' the trap.
1105trap 'exit_status=$?
1106 # Save into config.log some information that might help in debugging.
1107 {
1108 echo
1109
1110 cat <<\_ASBOX
1111## ---------------- ##
1112## Cache variables. ##
1113## ---------------- ##
1114_ASBOX
1115 echo
1116 # The following way of writing the cache mishandles newlines in values,
1117{
1118 (set) 2>&1 |
1119 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1120 *ac_space=\ *)
1121 sed -n \
1122 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1124 ;;
1125 *)
1126 sed -n \
1127 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1128 ;;
1129 esac;
1130}
1131 echo
1132
1133 cat <<\_ASBOX
1134## ----------------- ##
1135## Output variables. ##
1136## ----------------- ##
1137_ASBOX
1138 echo
1139 for ac_var in $ac_subst_vars
1140 do
1141 eval ac_val=$`echo $ac_var`
1142 echo "$ac_var='"'"'$ac_val'"'"'"
1143 done | sort
1144 echo
1145
1146 if test -n "$ac_subst_files"; then
1147 cat <<\_ASBOX
1148## ------------- ##
1149## Output files. ##
1150## ------------- ##
1151_ASBOX
1152 echo
1153 for ac_var in $ac_subst_files
1154 do
1155 eval ac_val=$`echo $ac_var`
1156 echo "$ac_var='"'"'$ac_val'"'"'"
1157 done | sort
1158 echo
1159 fi
1160
1161 if test -s confdefs.h; then
1162 cat <<\_ASBOX
1163## ----------- ##
1164## confdefs.h. ##
1165## ----------- ##
1166_ASBOX
1167 echo
1168 sed "/^$/d" confdefs.h | sort
1169 echo
1170 fi
1171 test "$ac_signal" != 0 &&
1172 echo "$as_me: caught signal $ac_signal"
1173 echo "$as_me: exit $exit_status"
1174 } >&5
1175 rm -f core *.core &&
1176 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1177 exit $exit_status
1178 ' 0
1179for ac_signal in 1 2 13 15; do
1180 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1181done
1182ac_signal=0
1183
1184# confdefs.h avoids OS command line length limits that DEFS can exceed.
1185rm -rf conftest* confdefs.h
1186# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1187echo >confdefs.h
1188
1189# Predefined preprocessor variables.
1190
1191cat >>confdefs.h <<_ACEOF
1192#define PACKAGE_NAME "$PACKAGE_NAME"
1193_ACEOF
1194
1195
1196cat >>confdefs.h <<_ACEOF
1197#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1198_ACEOF
1199
1200
1201cat >>confdefs.h <<_ACEOF
1202#define PACKAGE_VERSION "$PACKAGE_VERSION"
1203_ACEOF
1204
1205
1206cat >>confdefs.h <<_ACEOF
1207#define PACKAGE_STRING "$PACKAGE_STRING"
1208_ACEOF
1209
1210
1211cat >>confdefs.h <<_ACEOF
1212#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1213_ACEOF
1214
1215
1216# Let the site file select an alternate cache file if it wants to.
1217# Prefer explicitly selected file to automatically selected ones.
1218if test -z "$CONFIG_SITE"; then
1219 if test "x$prefix" != xNONE; then
1220 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1221 else
1222 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1223 fi
1224fi
1225for ac_site_file in $CONFIG_SITE; do
1226 if test -r "$ac_site_file"; then
1227 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1228echo "$as_me: loading site script $ac_site_file" >&6;}
1229 sed 's/^/| /' "$ac_site_file" >&5
1230 . "$ac_site_file"
1231 fi
1232done
1233
1234if test -r "$cache_file"; then
1235 # Some versions of bash will fail to source /dev/null (special
1236 # files actually), so we avoid doing that.
1237 if test -f "$cache_file"; then
1238 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1239echo "$as_me: loading cache $cache_file" >&6;}
1240 case $cache_file in
1241 [\\/]* | ?:[\\/]* ) . $cache_file;;
1242 *) . ./$cache_file;;
1243 esac
1244 fi
1245else
1246 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1247echo "$as_me: creating cache $cache_file" >&6;}
1248 >$cache_file
1249fi
1250
1251# Check that the precious variables saved in the cache have kept the same
1252# value.
1253ac_cache_corrupted=false
1254for ac_var in `(set) 2>&1 |
1255 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1256 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1257 eval ac_new_set=\$ac_env_${ac_var}_set
1258 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1259 eval ac_new_val="\$ac_env_${ac_var}_value"
1260 case $ac_old_set,$ac_new_set in
1261 set,)
1262 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1263echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1264 ac_cache_corrupted=: ;;
1265 ,set)
1266 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1267echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1268 ac_cache_corrupted=: ;;
1269 ,);;
1270 *)
1271 if test "x$ac_old_val" != "x$ac_new_val"; then
1272 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1273echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1274 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1275echo "$as_me: former value: $ac_old_val" >&2;}
1276 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1277echo "$as_me: current value: $ac_new_val" >&2;}
1278 ac_cache_corrupted=:
1279 fi;;
1280 esac
1281 # Pass precious variables to config.status.
1282 if test "$ac_new_set" = set; then
1283 case $ac_new_val in
1284 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1285 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1286 *) ac_arg=$ac_var=$ac_new_val ;;
1287 esac
1288 case " $ac_configure_args " in
1289 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1290 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1291 esac
1292 fi
1293done
1294if $ac_cache_corrupted; then
1295 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1296echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1297 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1298echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1299 { (exit 1); exit 1; }; }
1300fi
1301
1302ac_ext=c
1303ac_cpp='$CPP $CPPFLAGS'
1304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1306ac_compiler_gnu=$ac_cv_c_compiler_gnu
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338# Autoconf setup
1339ac_aux_dir=
1340for ac_dir in config $srcdir/config; do
1341 if test -f $ac_dir/install-sh; then
1342 ac_aux_dir=$ac_dir
1343 ac_install_sh="$ac_aux_dir/install-sh -c"
1344 break
1345 elif test -f $ac_dir/install.sh; then
1346 ac_aux_dir=$ac_dir
1347 ac_install_sh="$ac_aux_dir/install.sh -c"
1348 break
1349 elif test -f $ac_dir/shtool; then
1350 ac_aux_dir=$ac_dir
1351 ac_install_sh="$ac_aux_dir/shtool install -c"
1352 break
1353 fi
1354done
1355if test -z "$ac_aux_dir"; then
1356 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1357echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1358 { (exit 1); exit 1; }; }
1359fi
1360ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1361ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1362ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1363
1364
1365 ac_config_headers="$ac_config_headers config.h"
1366
1367
1368# Automake setup
1369am__api_version="1.8"
1370# Find a good install program. We prefer a C program (faster),
1371# so one script is as good as another. But avoid the broken or
1372# incompatible versions:
1373# SysV /etc/install, /usr/sbin/install
1374# SunOS /usr/etc/install
1375# IRIX /sbin/install
1376# AIX /bin/install
1377# AmigaOS /C/install, which installs bootblocks on floppy discs
1378# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1379# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1380# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1381# OS/2's system install, which has a completely different semantic
1382# ./install, which can be erroneously created by make from ./install.sh.
1383echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1384echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1385if test -z "$INSTALL"; then
1386if test "${ac_cv_path_install+set}" = set; then
1387 echo $ECHO_N "(cached) $ECHO_C" >&6
1388else
1389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1390for as_dir in $PATH
1391do
1392 IFS=$as_save_IFS
1393 test -z "$as_dir" && as_dir=.
1394 # Account for people who put trailing slashes in PATH elements.
1395case $as_dir/ in
1396 ./ | .// | /cC/* | \
1397 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1398 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1399 /usr/ucb/* ) ;;
1400 *)
1401 # OSF1 and SCO ODT 3.0 have their own names for install.
1402 # Don't use installbsd from OSF since it installs stuff as root
1403 # by default.
1404 for ac_prog in ginstall scoinst install; do
1405 for ac_exec_ext in '' $ac_executable_extensions; do
1406 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1407 if test $ac_prog = install &&
1408 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1409 # AIX install. It has an incompatible calling convention.
1410 :
1411 elif test $ac_prog = install &&
1412 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1413 # program-specific install script used by HP pwplus--don't use.
1414 :
1415 else
1416 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1417 break 3
1418 fi
1419 fi
1420 done
1421 done
1422 ;;
1423esac
1424done
1425
1426
1427fi
1428 if test "${ac_cv_path_install+set}" = set; then
1429 INSTALL=$ac_cv_path_install
1430 else
1431 # As a last resort, use the slow shell script. We don't cache a
1432 # path for INSTALL within a source directory, because that will
1433 # break other packages using the cache if that directory is
1434 # removed, or if the path is relative.
1435 INSTALL=$ac_install_sh
1436 fi
1437fi
1438echo "$as_me:$LINENO: result: $INSTALL" >&5
1439echo "${ECHO_T}$INSTALL" >&6
1440
1441# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1442# It thinks the first close brace ends the variable substitution.
1443test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1444
1445test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1446
1447test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1448
1449echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1450echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1451# Just in case
1452sleep 1
1453echo timestamp > conftest.file
1454# Do `set' in a subshell so we don't clobber the current shell's
1455# arguments. Must try -L first in case configure is actually a
1456# symlink; some systems play weird games with the mod time of symlinks
1457# (eg FreeBSD returns the mod time of the symlink's containing
1458# directory).
1459if (
1460 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1461 if test "$*" = "X"; then
1462 # -L didn't work.
1463 set X `ls -t $srcdir/configure conftest.file`
1464 fi
1465 rm -f conftest.file
1466 if test "$*" != "X $srcdir/configure conftest.file" \
1467 && test "$*" != "X conftest.file $srcdir/configure"; then
1468
1469 # If neither matched, then we have a broken ls. This can happen
1470 # if, for instance, CONFIG_SHELL is bash and it inherits a
1471 # broken ls alias from the environment. This has actually
1472 # happened. Such a system could not be considered "sane".
1473 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1474alias in your environment" >&5
1475echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1476alias in your environment" >&2;}
1477 { (exit 1); exit 1; }; }
1478 fi
1479
1480 test "$2" = conftest.file
1481 )
1482then
1483 # Ok.
1484 :
1485else
1486 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1487Check your system clock" >&5
1488echo "$as_me: error: newly created file is older than distributed files!
1489Check your system clock" >&2;}
1490 { (exit 1); exit 1; }; }
1491fi
1492echo "$as_me:$LINENO: result: yes" >&5
1493echo "${ECHO_T}yes" >&6
1494test "$program_prefix" != NONE &&
1495 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1496# Use a double $ so make ignores it.
1497test "$program_suffix" != NONE &&
1498 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1499# Double any \ or $. echo might interpret backslashes.
1500# By default was `s,x,x', remove it if useless.
1501cat <<\_ACEOF >conftest.sed
1502s/[\\$]/&&/g;s/;s,x,x,$//
1503_ACEOF
1504program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1505rm conftest.sed
1506
1507# expand $ac_aux_dir to an absolute path
1508am_aux_dir=`cd $ac_aux_dir && pwd`
1509
1510test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1511# Use eval to expand $SHELL
1512if eval "$MISSING --run true"; then
1513 am_missing_run="$MISSING --run "
1514else
1515 am_missing_run=
1516 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1517echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1518fi
1519
1520if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1521 # Keeping the `.' argument allows $(mkdir_p) to be used without
1522 # argument. Indeed, we sometimes output rules like
1523 # $(mkdir_p) $(somedir)
1524 # where $(somedir) is conditionally defined.
1525 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1526 # expensive solution, as it forces Make to start a sub-shell.)
1527 mkdir_p='mkdir -p -- .'
1528else
1529 # On NextStep and OpenStep, the `mkdir' command does not
1530 # recognize any option. It will interpret all options as
1531 # directories to create, and then abort because `.' already
1532 # exists.
1533 for d in ./-p ./--version;
1534 do
1535 test -d $d && rmdir $d
1536 done
1537 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1538 if test -f "$ac_aux_dir/mkinstalldirs"; then
1539 mkdir_p='$(mkinstalldirs)'
1540 else
1541 mkdir_p='$(install_sh) -d'
1542 fi
1543fi
1544
1545for ac_prog in gawk mawk nawk awk
1546do
1547 # Extract the first word of "$ac_prog", so it can be a program name with args.
1548set dummy $ac_prog; ac_word=$2
1549echo "$as_me:$LINENO: checking for $ac_word" >&5
1550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1551if test "${ac_cv_prog_AWK+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1553else
1554 if test -n "$AWK"; then
1555 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1556else
1557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1558for as_dir in $PATH
1559do
1560 IFS=$as_save_IFS
1561 test -z "$as_dir" && as_dir=.
1562 for ac_exec_ext in '' $ac_executable_extensions; do
1563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1564 ac_cv_prog_AWK="$ac_prog"
1565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1566 break 2
1567 fi
1568done
1569done
1570
1571fi
1572fi
1573AWK=$ac_cv_prog_AWK
1574if test -n "$AWK"; then
1575 echo "$as_me:$LINENO: result: $AWK" >&5
1576echo "${ECHO_T}$AWK" >&6
1577else
1578 echo "$as_me:$LINENO: result: no" >&5
1579echo "${ECHO_T}no" >&6
1580fi
1581
1582 test -n "$AWK" && break
1583done
1584
1585echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1586echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1587set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1588if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1589 echo $ECHO_N "(cached) $ECHO_C" >&6
1590else
1591 cat >conftest.make <<\_ACEOF
1592all:
1593 @echo 'ac_maketemp="$(MAKE)"'
1594_ACEOF
1595# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1596eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1597if test -n "$ac_maketemp"; then
1598 eval ac_cv_prog_make_${ac_make}_set=yes
1599else
1600 eval ac_cv_prog_make_${ac_make}_set=no
1601fi
1602rm -f conftest.make
1603fi
1604if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1605 echo "$as_me:$LINENO: result: yes" >&5
1606echo "${ECHO_T}yes" >&6
1607 SET_MAKE=
1608else
1609 echo "$as_me:$LINENO: result: no" >&5
1610echo "${ECHO_T}no" >&6
1611 SET_MAKE="MAKE=${MAKE-make}"
1612fi
1613
1614rm -rf .tst 2>/dev/null
1615mkdir .tst 2>/dev/null
1616if test -d .tst; then
1617 am__leading_dot=.
1618else
1619 am__leading_dot=_
1620fi
1621rmdir .tst 2>/dev/null
1622
1623# test to see if srcdir already configured
1624if test "`cd $srcdir && pwd`" != "`pwd`" &&
1625 test -f $srcdir/config.status; then
1626 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1627echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1628 { (exit 1); exit 1; }; }
1629fi
1630
1631# test whether we have cygpath
1632if test -z "$CYGPATH_W"; then
1633 if (cygpath --version) >/dev/null 2>/dev/null; then
1634 CYGPATH_W='cygpath -w'
1635 else
1636 CYGPATH_W=echo
1637 fi
1638fi
1639
1640
1641# Define the identity of the package.
1642 PACKAGE='make'
1643 VERSION='3.81beta1'
1644
1645
1646cat >>confdefs.h <<_ACEOF
1647#define PACKAGE "$PACKAGE"
1648_ACEOF
1649
1650
1651cat >>confdefs.h <<_ACEOF
1652#define VERSION "$VERSION"
1653_ACEOF
1654
1655# Some tools Automake needs.
1656
1657ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1658
1659
1660AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1661
1662
1663AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1664
1665
1666AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1667
1668
1669MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1670
1671
1672AMTAR=${AMTAR-"${am_missing_run}tar"}
1673
1674install_sh=${install_sh-"$am_aux_dir/install-sh"}
1675
1676# Installed binaries are usually stripped using `strip' when the user
1677# run `make install-strip'. However `strip' might not be the right
1678# tool to use in cross-compilation environments, therefore Automake
1679# will honor the `STRIP' environment variable to overrule this program.
1680if test "$cross_compiling" != no; then
1681 if test -n "$ac_tool_prefix"; then
1682 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1683set dummy ${ac_tool_prefix}strip; ac_word=$2
1684echo "$as_me:$LINENO: checking for $ac_word" >&5
1685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1686if test "${ac_cv_prog_STRIP+set}" = set; then
1687 echo $ECHO_N "(cached) $ECHO_C" >&6
1688else
1689 if test -n "$STRIP"; then
1690 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1691else
1692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1693for as_dir in $PATH
1694do
1695 IFS=$as_save_IFS
1696 test -z "$as_dir" && as_dir=.
1697 for ac_exec_ext in '' $ac_executable_extensions; do
1698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1699 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1701 break 2
1702 fi
1703done
1704done
1705
1706fi
1707fi
1708STRIP=$ac_cv_prog_STRIP
1709if test -n "$STRIP"; then
1710 echo "$as_me:$LINENO: result: $STRIP" >&5
1711echo "${ECHO_T}$STRIP" >&6
1712else
1713 echo "$as_me:$LINENO: result: no" >&5
1714echo "${ECHO_T}no" >&6
1715fi
1716
1717fi
1718if test -z "$ac_cv_prog_STRIP"; then
1719 ac_ct_STRIP=$STRIP
1720 # Extract the first word of "strip", so it can be a program name with args.
1721set dummy strip; ac_word=$2
1722echo "$as_me:$LINENO: checking for $ac_word" >&5
1723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1724if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1725 echo $ECHO_N "(cached) $ECHO_C" >&6
1726else
1727 if test -n "$ac_ct_STRIP"; then
1728 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1729else
1730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731for as_dir in $PATH
1732do
1733 IFS=$as_save_IFS
1734 test -z "$as_dir" && as_dir=.
1735 for ac_exec_ext in '' $ac_executable_extensions; do
1736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1737 ac_cv_prog_ac_ct_STRIP="strip"
1738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1739 break 2
1740 fi
1741done
1742done
1743
1744 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1745fi
1746fi
1747ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1748if test -n "$ac_ct_STRIP"; then
1749 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1750echo "${ECHO_T}$ac_ct_STRIP" >&6
1751else
1752 echo "$as_me:$LINENO: result: no" >&5
1753echo "${ECHO_T}no" >&6
1754fi
1755
1756 STRIP=$ac_ct_STRIP
1757else
1758 STRIP="$ac_cv_prog_STRIP"
1759fi
1760
1761fi
1762INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1763
1764# We need awk for the "check" target. The system "awk" is bad on
1765# some platforms.
1766
1767
1768
1769
1770# Checks for programs.
1771ac_ext=c
1772ac_cpp='$CPP $CPPFLAGS'
1773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1775ac_compiler_gnu=$ac_cv_c_compiler_gnu
1776if test -n "$ac_tool_prefix"; then
1777 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1778set dummy ${ac_tool_prefix}gcc; ac_word=$2
1779echo "$as_me:$LINENO: checking for $ac_word" >&5
1780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1781if test "${ac_cv_prog_CC+set}" = set; then
1782 echo $ECHO_N "(cached) $ECHO_C" >&6
1783else
1784 if test -n "$CC"; then
1785 ac_cv_prog_CC="$CC" # Let the user override the test.
1786else
1787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1788for as_dir in $PATH
1789do
1790 IFS=$as_save_IFS
1791 test -z "$as_dir" && as_dir=.
1792 for ac_exec_ext in '' $ac_executable_extensions; do
1793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1794 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1796 break 2
1797 fi
1798done
1799done
1800
1801fi
1802fi
1803CC=$ac_cv_prog_CC
1804if test -n "$CC"; then
1805 echo "$as_me:$LINENO: result: $CC" >&5
1806echo "${ECHO_T}$CC" >&6
1807else
1808 echo "$as_me:$LINENO: result: no" >&5
1809echo "${ECHO_T}no" >&6
1810fi
1811
1812fi
1813if test -z "$ac_cv_prog_CC"; then
1814 ac_ct_CC=$CC
1815 # Extract the first word of "gcc", so it can be a program name with args.
1816set dummy gcc; ac_word=$2
1817echo "$as_me:$LINENO: checking for $ac_word" >&5
1818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1820 echo $ECHO_N "(cached) $ECHO_C" >&6
1821else
1822 if test -n "$ac_ct_CC"; then
1823 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1824else
1825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1826for as_dir in $PATH
1827do
1828 IFS=$as_save_IFS
1829 test -z "$as_dir" && as_dir=.
1830 for ac_exec_ext in '' $ac_executable_extensions; do
1831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1832 ac_cv_prog_ac_ct_CC="gcc"
1833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834 break 2
1835 fi
1836done
1837done
1838
1839fi
1840fi
1841ac_ct_CC=$ac_cv_prog_ac_ct_CC
1842if test -n "$ac_ct_CC"; then
1843 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1844echo "${ECHO_T}$ac_ct_CC" >&6
1845else
1846 echo "$as_me:$LINENO: result: no" >&5
1847echo "${ECHO_T}no" >&6
1848fi
1849
1850 CC=$ac_ct_CC
1851else
1852 CC="$ac_cv_prog_CC"
1853fi
1854
1855if test -z "$CC"; then
1856 if test -n "$ac_tool_prefix"; then
1857 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1858set dummy ${ac_tool_prefix}cc; ac_word=$2
1859echo "$as_me:$LINENO: checking for $ac_word" >&5
1860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1861if test "${ac_cv_prog_CC+set}" = set; then
1862 echo $ECHO_N "(cached) $ECHO_C" >&6
1863else
1864 if test -n "$CC"; then
1865 ac_cv_prog_CC="$CC" # Let the user override the test.
1866else
1867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868for as_dir in $PATH
1869do
1870 IFS=$as_save_IFS
1871 test -z "$as_dir" && as_dir=.
1872 for ac_exec_ext in '' $ac_executable_extensions; do
1873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1874 ac_cv_prog_CC="${ac_tool_prefix}cc"
1875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876 break 2
1877 fi
1878done
1879done
1880
1881fi
1882fi
1883CC=$ac_cv_prog_CC
1884if test -n "$CC"; then
1885 echo "$as_me:$LINENO: result: $CC" >&5
1886echo "${ECHO_T}$CC" >&6
1887else
1888 echo "$as_me:$LINENO: result: no" >&5
1889echo "${ECHO_T}no" >&6
1890fi
1891
1892fi
1893if test -z "$ac_cv_prog_CC"; then
1894 ac_ct_CC=$CC
1895 # Extract the first word of "cc", so it can be a program name with args.
1896set dummy cc; ac_word=$2
1897echo "$as_me:$LINENO: checking for $ac_word" >&5
1898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1901else
1902 if test -n "$ac_ct_CC"; then
1903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1904else
1905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906for as_dir in $PATH
1907do
1908 IFS=$as_save_IFS
1909 test -z "$as_dir" && as_dir=.
1910 for ac_exec_ext in '' $ac_executable_extensions; do
1911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912 ac_cv_prog_ac_ct_CC="cc"
1913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914 break 2
1915 fi
1916done
1917done
1918
1919fi
1920fi
1921ac_ct_CC=$ac_cv_prog_ac_ct_CC
1922if test -n "$ac_ct_CC"; then
1923 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1924echo "${ECHO_T}$ac_ct_CC" >&6
1925else
1926 echo "$as_me:$LINENO: result: no" >&5
1927echo "${ECHO_T}no" >&6
1928fi
1929
1930 CC=$ac_ct_CC
1931else
1932 CC="$ac_cv_prog_CC"
1933fi
1934
1935fi
1936if test -z "$CC"; then
1937 # Extract the first word of "cc", so it can be a program name with args.
1938set dummy cc; ac_word=$2
1939echo "$as_me:$LINENO: checking for $ac_word" >&5
1940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1941if test "${ac_cv_prog_CC+set}" = set; then
1942 echo $ECHO_N "(cached) $ECHO_C" >&6
1943else
1944 if test -n "$CC"; then
1945 ac_cv_prog_CC="$CC" # Let the user override the test.
1946else
1947 ac_prog_rejected=no
1948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1949for as_dir in $PATH
1950do
1951 IFS=$as_save_IFS
1952 test -z "$as_dir" && as_dir=.
1953 for ac_exec_ext in '' $ac_executable_extensions; do
1954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1955 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1956 ac_prog_rejected=yes
1957 continue
1958 fi
1959 ac_cv_prog_CC="cc"
1960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961 break 2
1962 fi
1963done
1964done
1965
1966if test $ac_prog_rejected = yes; then
1967 # We found a bogon in the path, so make sure we never use it.
1968 set dummy $ac_cv_prog_CC
1969 shift
1970 if test $# != 0; then
1971 # We chose a different compiler from the bogus one.
1972 # However, it has the same basename, so the bogon will be chosen
1973 # first if we set CC to just the basename; use the full file name.
1974 shift
1975 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1976 fi
1977fi
1978fi
1979fi
1980CC=$ac_cv_prog_CC
1981if test -n "$CC"; then
1982 echo "$as_me:$LINENO: result: $CC" >&5
1983echo "${ECHO_T}$CC" >&6
1984else
1985 echo "$as_me:$LINENO: result: no" >&5
1986echo "${ECHO_T}no" >&6
1987fi
1988
1989fi
1990if test -z "$CC"; then
1991 if test -n "$ac_tool_prefix"; then
1992 for ac_prog in cl
1993 do
1994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1995set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1996echo "$as_me:$LINENO: checking for $ac_word" >&5
1997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998if test "${ac_cv_prog_CC+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2000else
2001 if test -n "$CC"; then
2002 ac_cv_prog_CC="$CC" # Let the user override the test.
2003else
2004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005for as_dir in $PATH
2006do
2007 IFS=$as_save_IFS
2008 test -z "$as_dir" && as_dir=.
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013 break 2
2014 fi
2015done
2016done
2017
2018fi
2019fi
2020CC=$ac_cv_prog_CC
2021if test -n "$CC"; then
2022 echo "$as_me:$LINENO: result: $CC" >&5
2023echo "${ECHO_T}$CC" >&6
2024else
2025 echo "$as_me:$LINENO: result: no" >&5
2026echo "${ECHO_T}no" >&6
2027fi
2028
2029 test -n "$CC" && break
2030 done
2031fi
2032if test -z "$CC"; then
2033 ac_ct_CC=$CC
2034 for ac_prog in cl
2035do
2036 # Extract the first word of "$ac_prog", so it can be a program name with args.
2037set dummy $ac_prog; ac_word=$2
2038echo "$as_me:$LINENO: checking for $ac_word" >&5
2039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2040if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2042else
2043 if test -n "$ac_ct_CC"; then
2044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2045else
2046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047for as_dir in $PATH
2048do
2049 IFS=$as_save_IFS
2050 test -z "$as_dir" && as_dir=.
2051 for ac_exec_ext in '' $ac_executable_extensions; do
2052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2053 ac_cv_prog_ac_ct_CC="$ac_prog"
2054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055 break 2
2056 fi
2057done
2058done
2059
2060fi
2061fi
2062ac_ct_CC=$ac_cv_prog_ac_ct_CC
2063if test -n "$ac_ct_CC"; then
2064 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2065echo "${ECHO_T}$ac_ct_CC" >&6
2066else
2067 echo "$as_me:$LINENO: result: no" >&5
2068echo "${ECHO_T}no" >&6
2069fi
2070
2071 test -n "$ac_ct_CC" && break
2072done
2073
2074 CC=$ac_ct_CC
2075fi
2076
2077fi
2078
2079
2080test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2081See \`config.log' for more details." >&5
2082echo "$as_me: error: no acceptable C compiler found in \$PATH
2083See \`config.log' for more details." >&2;}
2084 { (exit 1); exit 1; }; }
2085
2086# Provide some information about the compiler.
2087echo "$as_me:$LINENO:" \
2088 "checking for C compiler version" >&5
2089ac_compiler=`set X $ac_compile; echo $2`
2090{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2091 (eval $ac_compiler --version </dev/null >&5) 2>&5
2092 ac_status=$?
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }
2095{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2096 (eval $ac_compiler -v </dev/null >&5) 2>&5
2097 ac_status=$?
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }
2100{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2101 (eval $ac_compiler -V </dev/null >&5) 2>&5
2102 ac_status=$?
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }
2105
2106cat >conftest.$ac_ext <<_ACEOF
2107/* confdefs.h. */
2108_ACEOF
2109cat confdefs.h >>conftest.$ac_ext
2110cat >>conftest.$ac_ext <<_ACEOF
2111/* end confdefs.h. */
2112
2113int
2114main ()
2115{
2116
2117 ;
2118 return 0;
2119}
2120_ACEOF
2121ac_clean_files_save=$ac_clean_files
2122ac_clean_files="$ac_clean_files a.out a.exe b.out"
2123# Try to create an executable without -o first, disregard a.out.
2124# It will help us diagnose broken compilers, and finding out an intuition
2125# of exeext.
2126echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2127echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2128ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2129if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2130 (eval $ac_link_default) 2>&5
2131 ac_status=$?
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }; then
2134 # Find the output, starting from the most likely. This scheme is
2135# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2136# resort.
2137
2138# Be careful to initialize this variable, since it used to be cached.
2139# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2140ac_cv_exeext=
2141# b.out is created by i960 compilers.
2142for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2143do
2144 test -f "$ac_file" || continue
2145 case $ac_file in
2146 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2147 ;;
2148 conftest.$ac_ext )
2149 # This is the source file.
2150 ;;
2151 [ab].out )
2152 # We found the default executable, but exeext='' is most
2153 # certainly right.
2154 break;;
2155 *.* )
2156 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2157 # FIXME: I believe we export ac_cv_exeext for Libtool,
2158 # but it would be cool to find out if it's true. Does anybody
2159 # maintain Libtool? --akim.
2160 export ac_cv_exeext
2161 break;;
2162 * )
2163 break;;
2164 esac
2165done
2166else
2167 echo "$as_me: failed program was:" >&5
2168sed 's/^/| /' conftest.$ac_ext >&5
2169
2170{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2171See \`config.log' for more details." >&5
2172echo "$as_me: error: C compiler cannot create executables
2173See \`config.log' for more details." >&2;}
2174 { (exit 77); exit 77; }; }
2175fi
2176
2177ac_exeext=$ac_cv_exeext
2178echo "$as_me:$LINENO: result: $ac_file" >&5
2179echo "${ECHO_T}$ac_file" >&6
2180
2181# Check the compiler produces executables we can run. If not, either
2182# the compiler is broken, or we cross compile.
2183echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2184echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2185# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2186# If not cross compiling, check that we can run a simple program.
2187if test "$cross_compiling" != yes; then
2188 if { ac_try='./$ac_file'
2189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190 (eval $ac_try) 2>&5
2191 ac_status=$?
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }; }; then
2194 cross_compiling=no
2195 else
2196 if test "$cross_compiling" = maybe; then
2197 cross_compiling=yes
2198 else
2199 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2200If you meant to cross compile, use \`--host'.
2201See \`config.log' for more details." >&5
2202echo "$as_me: error: cannot run C compiled programs.
2203If you meant to cross compile, use \`--host'.
2204See \`config.log' for more details." >&2;}
2205 { (exit 1); exit 1; }; }
2206 fi
2207 fi
2208fi
2209echo "$as_me:$LINENO: result: yes" >&5
2210echo "${ECHO_T}yes" >&6
2211
2212rm -f a.out a.exe conftest$ac_cv_exeext b.out
2213ac_clean_files=$ac_clean_files_save
2214# Check the compiler produces executables we can run. If not, either
2215# the compiler is broken, or we cross compile.
2216echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2217echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2218echo "$as_me:$LINENO: result: $cross_compiling" >&5
2219echo "${ECHO_T}$cross_compiling" >&6
2220
2221echo "$as_me:$LINENO: checking for suffix of executables" >&5
2222echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2224 (eval $ac_link) 2>&5
2225 ac_status=$?
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; then
2228 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2229# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2230# work properly (i.e., refer to `conftest.exe'), while it won't with
2231# `rm'.
2232for ac_file in conftest.exe conftest conftest.*; do
2233 test -f "$ac_file" || continue
2234 case $ac_file in
2235 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2236 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2237 export ac_cv_exeext
2238 break;;
2239 * ) break;;
2240 esac
2241done
2242else
2243 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2244See \`config.log' for more details." >&5
2245echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2246See \`config.log' for more details." >&2;}
2247 { (exit 1); exit 1; }; }
2248fi
2249
2250rm -f conftest$ac_cv_exeext
2251echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2252echo "${ECHO_T}$ac_cv_exeext" >&6
2253
2254rm -f conftest.$ac_ext
2255EXEEXT=$ac_cv_exeext
2256ac_exeext=$EXEEXT
2257echo "$as_me:$LINENO: checking for suffix of object files" >&5
2258echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2259if test "${ac_cv_objext+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
2261else
2262 cat >conftest.$ac_ext <<_ACEOF
2263/* confdefs.h. */
2264_ACEOF
2265cat confdefs.h >>conftest.$ac_ext
2266cat >>conftest.$ac_ext <<_ACEOF
2267/* end confdefs.h. */
2268
2269int
2270main ()
2271{
2272
2273 ;
2274 return 0;
2275}
2276_ACEOF
2277rm -f conftest.o conftest.obj
2278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2279 (eval $ac_compile) 2>&5
2280 ac_status=$?
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; then
2283 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2284 case $ac_file in
2285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2286 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2287 break;;
2288 esac
2289done
2290else
2291 echo "$as_me: failed program was:" >&5
2292sed 's/^/| /' conftest.$ac_ext >&5
2293
2294{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2295See \`config.log' for more details." >&5
2296echo "$as_me: error: cannot compute suffix of object files: cannot compile
2297See \`config.log' for more details." >&2;}
2298 { (exit 1); exit 1; }; }
2299fi
2300
2301rm -f conftest.$ac_cv_objext conftest.$ac_ext
2302fi
2303echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2304echo "${ECHO_T}$ac_cv_objext" >&6
2305OBJEXT=$ac_cv_objext
2306ac_objext=$OBJEXT
2307echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2308echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2309if test "${ac_cv_c_compiler_gnu+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2311else
2312 cat >conftest.$ac_ext <<_ACEOF
2313/* confdefs.h. */
2314_ACEOF
2315cat confdefs.h >>conftest.$ac_ext
2316cat >>conftest.$ac_ext <<_ACEOF
2317/* end confdefs.h. */
2318
2319int
2320main ()
2321{
2322#ifndef __GNUC__
2323 choke me
2324#endif
2325
2326 ;
2327 return 0;
2328}
2329_ACEOF
2330rm -f conftest.$ac_objext
2331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2332 (eval $ac_compile) 2>conftest.er1
2333 ac_status=$?
2334 grep -v '^ *+' conftest.er1 >conftest.err
2335 rm -f conftest.er1
2336 cat conftest.err >&5
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); } &&
2339 { ac_try='test -z "$ac_c_werror_flag"
2340 || test ! -s conftest.err'
2341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342 (eval $ac_try) 2>&5
2343 ac_status=$?
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; } &&
2346 { ac_try='test -s conftest.$ac_objext'
2347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348 (eval $ac_try) 2>&5
2349 ac_status=$?
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }; }; then
2352 ac_compiler_gnu=yes
2353else
2354 echo "$as_me: failed program was:" >&5
2355sed 's/^/| /' conftest.$ac_ext >&5
2356
2357ac_compiler_gnu=no
2358fi
2359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2360ac_cv_c_compiler_gnu=$ac_compiler_gnu
2361
2362fi
2363echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2364echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2365GCC=`test $ac_compiler_gnu = yes && echo yes`
2366ac_test_CFLAGS=${CFLAGS+set}
2367ac_save_CFLAGS=$CFLAGS
2368CFLAGS="-g"
2369echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2370echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2371if test "${ac_cv_prog_cc_g+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2373else
2374 cat >conftest.$ac_ext <<_ACEOF
2375/* confdefs.h. */
2376_ACEOF
2377cat confdefs.h >>conftest.$ac_ext
2378cat >>conftest.$ac_ext <<_ACEOF
2379/* end confdefs.h. */
2380
2381int
2382main ()
2383{
2384
2385 ;
2386 return 0;
2387}
2388_ACEOF
2389rm -f conftest.$ac_objext
2390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391 (eval $ac_compile) 2>conftest.er1
2392 ac_status=$?
2393 grep -v '^ *+' conftest.er1 >conftest.err
2394 rm -f conftest.er1
2395 cat conftest.err >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); } &&
2398 { ac_try='test -z "$ac_c_werror_flag"
2399 || test ! -s conftest.err'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 (eval $ac_try) 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; } &&
2405 { ac_try='test -s conftest.$ac_objext'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 (eval $ac_try) 2>&5
2408 ac_status=$?
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; }; then
2411 ac_cv_prog_cc_g=yes
2412else
2413 echo "$as_me: failed program was:" >&5
2414sed 's/^/| /' conftest.$ac_ext >&5
2415
2416ac_cv_prog_cc_g=no
2417fi
2418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2419fi
2420echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2421echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2422if test "$ac_test_CFLAGS" = set; then
2423 CFLAGS=$ac_save_CFLAGS
2424elif test $ac_cv_prog_cc_g = yes; then
2425 if test "$GCC" = yes; then
2426 CFLAGS="-g -O2"
2427 else
2428 CFLAGS="-g"
2429 fi
2430else
2431 if test "$GCC" = yes; then
2432 CFLAGS="-O2"
2433 else
2434 CFLAGS=
2435 fi
2436fi
2437echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2438echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2439if test "${ac_cv_prog_cc_stdc+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2441else
2442 ac_cv_prog_cc_stdc=no
2443ac_save_CC=$CC
2444cat >conftest.$ac_ext <<_ACEOF
2445/* confdefs.h. */
2446_ACEOF
2447cat confdefs.h >>conftest.$ac_ext
2448cat >>conftest.$ac_ext <<_ACEOF
2449/* end confdefs.h. */
2450#include <stdarg.h>
2451#include <stdio.h>
2452#include <sys/types.h>
2453#include <sys/stat.h>
2454/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2455struct buf { int x; };
2456FILE * (*rcsopen) (struct buf *, struct stat *, int);
2457static char *e (p, i)
2458 char **p;
2459 int i;
2460{
2461 return p[i];
2462}
2463static char *f (char * (*g) (char **, int), char **p, ...)
2464{
2465 char *s;
2466 va_list v;
2467 va_start (v,p);
2468 s = g (p, va_arg (v,int));
2469 va_end (v);
2470 return s;
2471}
2472
2473/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2474 function prototypes and stuff, but not '\xHH' hex character constants.
2475 These don't provoke an error unfortunately, instead are silently treated
2476 as 'x'. The following induces an error, until -std1 is added to get
2477 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2478 array size at least. It's necessary to write '\x00'==0 to get something
2479 that's true only with -std1. */
2480int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2481
2482int test (int i, double x);
2483struct s1 {int (*f) (int a);};
2484struct s2 {int (*f) (double a);};
2485int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2486int argc;
2487char **argv;
2488int
2489main ()
2490{
2491return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2492 ;
2493 return 0;
2494}
2495_ACEOF
2496# Don't try gcc -ansi; that turns off useful extensions and
2497# breaks some systems' header files.
2498# AIX -qlanglvl=ansi
2499# Ultrix and OSF/1 -std1
2500# HP-UX 10.20 and later -Ae
2501# HP-UX older versions -Aa -D_HPUX_SOURCE
2502# SVR4 -Xc -D__EXTENSIONS__
2503for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2504do
2505 CC="$ac_save_CC $ac_arg"
2506 rm -f conftest.$ac_objext
2507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2508 (eval $ac_compile) 2>conftest.er1
2509 ac_status=$?
2510 grep -v '^ *+' conftest.er1 >conftest.err
2511 rm -f conftest.er1
2512 cat conftest.err >&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); } &&
2515 { ac_try='test -z "$ac_c_werror_flag"
2516 || test ! -s conftest.err'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518 (eval $ac_try) 2>&5
2519 ac_status=$?
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; } &&
2522 { ac_try='test -s conftest.$ac_objext'
2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524 (eval $ac_try) 2>&5
2525 ac_status=$?
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; }; then
2528 ac_cv_prog_cc_stdc=$ac_arg
2529break
2530else
2531 echo "$as_me: failed program was:" >&5
2532sed 's/^/| /' conftest.$ac_ext >&5
2533
2534fi
2535rm -f conftest.err conftest.$ac_objext
2536done
2537rm -f conftest.$ac_ext conftest.$ac_objext
2538CC=$ac_save_CC
2539
2540fi
2541
2542case "x$ac_cv_prog_cc_stdc" in
2543 x|xno)
2544 echo "$as_me:$LINENO: result: none needed" >&5
2545echo "${ECHO_T}none needed" >&6 ;;
2546 *)
2547 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2548echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2549 CC="$CC $ac_cv_prog_cc_stdc" ;;
2550esac
2551
2552# Some people use a C++ compiler to compile C. Since we use `exit',
2553# in C++ we need to declare it. In case someone uses the same compiler
2554# for both compiling C and C++ we need to have the C++ compiler decide
2555# the declaration of exit, since it's the most demanding environment.
2556cat >conftest.$ac_ext <<_ACEOF
2557#ifndef __cplusplus
2558 choke me
2559#endif
2560_ACEOF
2561rm -f conftest.$ac_objext
2562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563 (eval $ac_compile) 2>conftest.er1
2564 ac_status=$?
2565 grep -v '^ *+' conftest.er1 >conftest.err
2566 rm -f conftest.er1
2567 cat conftest.err >&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); } &&
2570 { ac_try='test -z "$ac_c_werror_flag"
2571 || test ! -s conftest.err'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 (eval $ac_try) 2>&5
2574 ac_status=$?
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; } &&
2577 { ac_try='test -s conftest.$ac_objext'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579 (eval $ac_try) 2>&5
2580 ac_status=$?
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2583 for ac_declaration in \
2584 '' \
2585 'extern "C" void std::exit (int) throw (); using std::exit;' \
2586 'extern "C" void std::exit (int); using std::exit;' \
2587 'extern "C" void exit (int) throw ();' \
2588 'extern "C" void exit (int);' \
2589 'void exit (int);'
2590do
2591 cat >conftest.$ac_ext <<_ACEOF
2592/* confdefs.h. */
2593_ACEOF
2594cat confdefs.h >>conftest.$ac_ext
2595cat >>conftest.$ac_ext <<_ACEOF
2596/* end confdefs.h. */
2597$ac_declaration
2598#include <stdlib.h>
2599int
2600main ()
2601{
2602exit (42);
2603 ;
2604 return 0;
2605}
2606_ACEOF
2607rm -f conftest.$ac_objext
2608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2609 (eval $ac_compile) 2>conftest.er1
2610 ac_status=$?
2611 grep -v '^ *+' conftest.er1 >conftest.err
2612 rm -f conftest.er1
2613 cat conftest.err >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } &&
2616 { ac_try='test -z "$ac_c_werror_flag"
2617 || test ! -s conftest.err'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 (eval $ac_try) 2>&5
2620 ac_status=$?
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; } &&
2623 { ac_try='test -s conftest.$ac_objext'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 (eval $ac_try) 2>&5
2626 ac_status=$?
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2629 :
2630else
2631 echo "$as_me: failed program was:" >&5
2632sed 's/^/| /' conftest.$ac_ext >&5
2633
2634continue
2635fi
2636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2637 cat >conftest.$ac_ext <<_ACEOF
2638/* confdefs.h. */
2639_ACEOF
2640cat confdefs.h >>conftest.$ac_ext
2641cat >>conftest.$ac_ext <<_ACEOF
2642/* end confdefs.h. */
2643$ac_declaration
2644int
2645main ()
2646{
2647exit (42);
2648 ;
2649 return 0;
2650}
2651_ACEOF
2652rm -f conftest.$ac_objext
2653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2654 (eval $ac_compile) 2>conftest.er1
2655 ac_status=$?
2656 grep -v '^ *+' conftest.er1 >conftest.err
2657 rm -f conftest.er1
2658 cat conftest.err >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); } &&
2661 { ac_try='test -z "$ac_c_werror_flag"
2662 || test ! -s conftest.err'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 (eval $ac_try) 2>&5
2665 ac_status=$?
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; } &&
2668 { ac_try='test -s conftest.$ac_objext'
2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 (eval $ac_try) 2>&5
2671 ac_status=$?
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; }; then
2674 break
2675else
2676 echo "$as_me: failed program was:" >&5
2677sed 's/^/| /' conftest.$ac_ext >&5
2678
2679fi
2680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2681done
2682rm -f conftest*
2683if test -n "$ac_declaration"; then
2684 echo '#ifdef __cplusplus' >>confdefs.h
2685 echo $ac_declaration >>confdefs.h
2686 echo '#endif' >>confdefs.h
2687fi
2688
2689else
2690 echo "$as_me: failed program was:" >&5
2691sed 's/^/| /' conftest.$ac_ext >&5
2692
2693fi
2694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2695ac_ext=c
2696ac_cpp='$CPP $CPPFLAGS'
2697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2699ac_compiler_gnu=$ac_cv_c_compiler_gnu
2700DEPDIR="${am__leading_dot}deps"
2701
2702 ac_config_commands="$ac_config_commands depfiles"
2703
2704
2705am_make=${MAKE-make}
2706cat > confinc << 'END'
2707am__doit:
2708 @echo done
2709.PHONY: am__doit
2710END
2711# If we don't find an include directive, just comment out the code.
2712echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2713echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2714am__include="#"
2715am__quote=
2716_am_result=none
2717# First try GNU make style include.
2718echo "include confinc" > confmf
2719# We grep out `Entering directory' and `Leaving directory'
2720# messages which can occur if `w' ends up in MAKEFLAGS.
2721# In particular we don't look at `^make:' because GNU make might
2722# be invoked under some other name (usually "gmake"), in which
2723# case it prints its new name instead of `make'.
2724if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2725 am__include=include
2726 am__quote=
2727 _am_result=GNU
2728fi
2729# Now try BSD make style include.
2730if test "$am__include" = "#"; then
2731 echo '.include "confinc"' > confmf
2732 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2733 am__include=.include
2734 am__quote="\""
2735 _am_result=BSD
2736 fi
2737fi
2738
2739
2740echo "$as_me:$LINENO: result: $_am_result" >&5
2741echo "${ECHO_T}$_am_result" >&6
2742rm -f confinc confmf
2743
2744# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2745if test "${enable_dependency_tracking+set}" = set; then
2746 enableval="$enable_dependency_tracking"
2747
2748fi;
2749if test "x$enable_dependency_tracking" != xno; then
2750 am_depcomp="$ac_aux_dir/depcomp"
2751 AMDEPBACKSLASH='\'
2752fi
2753
2754
2755if test "x$enable_dependency_tracking" != xno; then
2756 AMDEP_TRUE=
2757 AMDEP_FALSE='#'
2758else
2759 AMDEP_TRUE='#'
2760 AMDEP_FALSE=
2761fi
2762
2763
2764
2765
2766depcc="$CC" am_compiler_list=
2767
2768echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2769echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2770if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2772else
2773 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2774 # We make a subdir and do the tests there. Otherwise we can end up
2775 # making bogus files that we don't know about and never remove. For
2776 # instance it was reported that on HP-UX the gcc test will end up
2777 # making a dummy file named `D' -- because `-MD' means `put the output
2778 # in D'.
2779 mkdir conftest.dir
2780 # Copy depcomp to subdir because otherwise we won't find it if we're
2781 # using a relative directory.
2782 cp "$am_depcomp" conftest.dir
2783 cd conftest.dir
2784 # We will build objects and dependencies in a subdirectory because
2785 # it helps to detect inapplicable dependency modes. For instance
2786 # both Tru64's cc and ICC support -MD to output dependencies as a
2787 # side effect of compilation, but ICC will put the dependencies in
2788 # the current directory while Tru64 will put them in the object
2789 # directory.
2790 mkdir sub
2791
2792 am_cv_CC_dependencies_compiler_type=none
2793 if test "$am_compiler_list" = ""; then
2794 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2795 fi
2796 for depmode in $am_compiler_list; do
2797 # Setup a source with many dependencies, because some compilers
2798 # like to wrap large dependency lists on column 80 (with \), and
2799 # we should not choose a depcomp mode which is confused by this.
2800 #
2801 # We need to recreate these files for each test, as the compiler may
2802 # overwrite some of them when testing with obscure command lines.
2803 # This happens at least with the AIX C compiler.
2804 : > sub/conftest.c
2805 for i in 1 2 3 4 5 6; do
2806 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2807 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2808 # Solaris 8's {/usr,}/bin/sh.
2809 touch sub/conftst$i.h
2810 done
2811 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2812
2813 case $depmode in
2814 nosideeffect)
2815 # after this tag, mechanisms are not by side-effect, so they'll
2816 # only be used when explicitly requested
2817 if test "x$enable_dependency_tracking" = xyes; then
2818 continue
2819 else
2820 break
2821 fi
2822 ;;
2823 none) break ;;
2824 esac
2825 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2826 # mode. It turns out that the SunPro C++ compiler does not properly
2827 # handle `-M -o', and we need to detect this.
2828 if depmode=$depmode \
2829 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2830 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2831 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2832 >/dev/null 2>conftest.err &&
2833 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2834 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2835 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2836 # icc doesn't choke on unknown options, it will just issue warnings
2837 # (even with -Werror). So we grep stderr for any message
2838 # that says an option was ignored.
2839 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2840 am_cv_CC_dependencies_compiler_type=$depmode
2841 break
2842 fi
2843 fi
2844 done
2845
2846 cd ..
2847 rm -rf conftest.dir
2848else
2849 am_cv_CC_dependencies_compiler_type=none
2850fi
2851
2852fi
2853echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2854echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2855CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2856
2857
2858
2859if
2860 test "x$enable_dependency_tracking" != xno \
2861 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2862 am__fastdepCC_TRUE=
2863 am__fastdepCC_FALSE='#'
2864else
2865 am__fastdepCC_TRUE='#'
2866 am__fastdepCC_FALSE=
2867fi
2868
2869
2870# Find a good install program. We prefer a C program (faster),
2871# so one script is as good as another. But avoid the broken or
2872# incompatible versions:
2873# SysV /etc/install, /usr/sbin/install
2874# SunOS /usr/etc/install
2875# IRIX /sbin/install
2876# AIX /bin/install
2877# AmigaOS /C/install, which installs bootblocks on floppy discs
2878# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2879# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2880# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2881# OS/2's system install, which has a completely different semantic
2882# ./install, which can be erroneously created by make from ./install.sh.
2883echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2884echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2885if test -z "$INSTALL"; then
2886if test "${ac_cv_path_install+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2888else
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890for as_dir in $PATH
2891do
2892 IFS=$as_save_IFS
2893 test -z "$as_dir" && as_dir=.
2894 # Account for people who put trailing slashes in PATH elements.
2895case $as_dir/ in
2896 ./ | .// | /cC/* | \
2897 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2898 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2899 /usr/ucb/* ) ;;
2900 *)
2901 # OSF1 and SCO ODT 3.0 have their own names for install.
2902 # Don't use installbsd from OSF since it installs stuff as root
2903 # by default.
2904 for ac_prog in ginstall scoinst install; do
2905 for ac_exec_ext in '' $ac_executable_extensions; do
2906 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2907 if test $ac_prog = install &&
2908 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2909 # AIX install. It has an incompatible calling convention.
2910 :
2911 elif test $ac_prog = install &&
2912 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2913 # program-specific install script used by HP pwplus--don't use.
2914 :
2915 else
2916 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2917 break 3
2918 fi
2919 fi
2920 done
2921 done
2922 ;;
2923esac
2924done
2925
2926
2927fi
2928 if test "${ac_cv_path_install+set}" = set; then
2929 INSTALL=$ac_cv_path_install
2930 else
2931 # As a last resort, use the slow shell script. We don't cache a
2932 # path for INSTALL within a source directory, because that will
2933 # break other packages using the cache if that directory is
2934 # removed, or if the path is relative.
2935 INSTALL=$ac_install_sh
2936 fi
2937fi
2938echo "$as_me:$LINENO: result: $INSTALL" >&5
2939echo "${ECHO_T}$INSTALL" >&6
2940
2941# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2942# It thinks the first close brace ends the variable substitution.
2943test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2944
2945test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2946
2947test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2948
2949if test -n "$ac_tool_prefix"; then
2950 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2951set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2952echo "$as_me:$LINENO: checking for $ac_word" >&5
2953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2954if test "${ac_cv_prog_RANLIB+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
2956else
2957 if test -n "$RANLIB"; then
2958 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2959else
2960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961for as_dir in $PATH
2962do
2963 IFS=$as_save_IFS
2964 test -z "$as_dir" && as_dir=.
2965 for ac_exec_ext in '' $ac_executable_extensions; do
2966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2967 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 break 2
2970 fi
2971done
2972done
2973
2974fi
2975fi
2976RANLIB=$ac_cv_prog_RANLIB
2977if test -n "$RANLIB"; then
2978 echo "$as_me:$LINENO: result: $RANLIB" >&5
2979echo "${ECHO_T}$RANLIB" >&6
2980else
2981 echo "$as_me:$LINENO: result: no" >&5
2982echo "${ECHO_T}no" >&6
2983fi
2984
2985fi
2986if test -z "$ac_cv_prog_RANLIB"; then
2987 ac_ct_RANLIB=$RANLIB
2988 # Extract the first word of "ranlib", so it can be a program name with args.
2989set dummy ranlib; ac_word=$2
2990echo "$as_me:$LINENO: checking for $ac_word" >&5
2991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2992if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2993 echo $ECHO_N "(cached) $ECHO_C" >&6
2994else
2995 if test -n "$ac_ct_RANLIB"; then
2996 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2997else
2998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999for as_dir in $PATH
3000do
3001 IFS=$as_save_IFS
3002 test -z "$as_dir" && as_dir=.
3003 for ac_exec_ext in '' $ac_executable_extensions; do
3004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3005 ac_cv_prog_ac_ct_RANLIB="ranlib"
3006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 break 2
3008 fi
3009done
3010done
3011
3012 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3013fi
3014fi
3015ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3016if test -n "$ac_ct_RANLIB"; then
3017 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3018echo "${ECHO_T}$ac_ct_RANLIB" >&6
3019else
3020 echo "$as_me:$LINENO: result: no" >&5
3021echo "${ECHO_T}no" >&6
3022fi
3023
3024 RANLIB=$ac_ct_RANLIB
3025else
3026 RANLIB="$ac_cv_prog_RANLIB"
3027fi
3028
3029ac_ext=c
3030ac_cpp='$CPP $CPPFLAGS'
3031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3033ac_compiler_gnu=$ac_cv_c_compiler_gnu
3034echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3035echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3036# On Suns, sometimes $CPP names a directory.
3037if test -n "$CPP" && test -d "$CPP"; then
3038 CPP=
3039fi
3040if test -z "$CPP"; then
3041 if test "${ac_cv_prog_CPP+set}" = set; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
3043else
3044 # Double quotes because CPP needs to be expanded
3045 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3046 do
3047 ac_preproc_ok=false
3048for ac_c_preproc_warn_flag in '' yes
3049do
3050 # Use a header file that comes with gcc, so configuring glibc
3051 # with a fresh cross-compiler works.
3052 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3053 # <limits.h> exists even on freestanding compilers.
3054 # On the NeXT, cc -E runs the code through the compiler's parser,
3055 # not just through cpp. "Syntax error" is here to catch this case.
3056 cat >conftest.$ac_ext <<_ACEOF
3057/* confdefs.h. */
3058_ACEOF
3059cat confdefs.h >>conftest.$ac_ext
3060cat >>conftest.$ac_ext <<_ACEOF
3061/* end confdefs.h. */
3062#ifdef __STDC__
3063# include <limits.h>
3064#else
3065# include <assert.h>
3066#endif
3067 Syntax error
3068_ACEOF
3069if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3071 ac_status=$?
3072 grep -v '^ *+' conftest.er1 >conftest.err
3073 rm -f conftest.er1
3074 cat conftest.err >&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); } >/dev/null; then
3077 if test -s conftest.err; then
3078 ac_cpp_err=$ac_c_preproc_warn_flag
3079 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3080 else
3081 ac_cpp_err=
3082 fi
3083else
3084 ac_cpp_err=yes
3085fi
3086if test -z "$ac_cpp_err"; then
3087 :
3088else
3089 echo "$as_me: failed program was:" >&5
3090sed 's/^/| /' conftest.$ac_ext >&5
3091
3092 # Broken: fails on valid input.
3093continue
3094fi
3095rm -f conftest.err conftest.$ac_ext
3096
3097 # OK, works on sane cases. Now check whether non-existent headers
3098 # can be detected and how.
3099 cat >conftest.$ac_ext <<_ACEOF
3100/* confdefs.h. */
3101_ACEOF
3102cat confdefs.h >>conftest.$ac_ext
3103cat >>conftest.$ac_ext <<_ACEOF
3104/* end confdefs.h. */
3105#include <ac_nonexistent.h>
3106_ACEOF
3107if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3109 ac_status=$?
3110 grep -v '^ *+' conftest.er1 >conftest.err
3111 rm -f conftest.er1
3112 cat conftest.err >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); } >/dev/null; then
3115 if test -s conftest.err; then
3116 ac_cpp_err=$ac_c_preproc_warn_flag
3117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3118 else
3119 ac_cpp_err=
3120 fi
3121else
3122 ac_cpp_err=yes
3123fi
3124if test -z "$ac_cpp_err"; then
3125 # Broken: success on invalid input.
3126continue
3127else
3128 echo "$as_me: failed program was:" >&5
3129sed 's/^/| /' conftest.$ac_ext >&5
3130
3131 # Passes both tests.
3132ac_preproc_ok=:
3133break
3134fi
3135rm -f conftest.err conftest.$ac_ext
3136
3137done
3138# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3139rm -f conftest.err conftest.$ac_ext
3140if $ac_preproc_ok; then
3141 break
3142fi
3143
3144 done
3145 ac_cv_prog_CPP=$CPP
3146
3147fi
3148 CPP=$ac_cv_prog_CPP
3149else
3150 ac_cv_prog_CPP=$CPP
3151fi
3152echo "$as_me:$LINENO: result: $CPP" >&5
3153echo "${ECHO_T}$CPP" >&6
3154ac_preproc_ok=false
3155for ac_c_preproc_warn_flag in '' yes
3156do
3157 # Use a header file that comes with gcc, so configuring glibc
3158 # with a fresh cross-compiler works.
3159 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3160 # <limits.h> exists even on freestanding compilers.
3161 # On the NeXT, cc -E runs the code through the compiler's parser,
3162 # not just through cpp. "Syntax error" is here to catch this case.
3163 cat >conftest.$ac_ext <<_ACEOF
3164/* confdefs.h. */
3165_ACEOF
3166cat confdefs.h >>conftest.$ac_ext
3167cat >>conftest.$ac_ext <<_ACEOF
3168/* end confdefs.h. */
3169#ifdef __STDC__
3170# include <limits.h>
3171#else
3172# include <assert.h>
3173#endif
3174 Syntax error
3175_ACEOF
3176if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3177 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3178 ac_status=$?
3179 grep -v '^ *+' conftest.er1 >conftest.err
3180 rm -f conftest.er1
3181 cat conftest.err >&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); } >/dev/null; then
3184 if test -s conftest.err; then
3185 ac_cpp_err=$ac_c_preproc_warn_flag
3186 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3187 else
3188 ac_cpp_err=
3189 fi
3190else
3191 ac_cpp_err=yes
3192fi
3193if test -z "$ac_cpp_err"; then
3194 :
3195else
3196 echo "$as_me: failed program was:" >&5
3197sed 's/^/| /' conftest.$ac_ext >&5
3198
3199 # Broken: fails on valid input.
3200continue
3201fi
3202rm -f conftest.err conftest.$ac_ext
3203
3204 # OK, works on sane cases. Now check whether non-existent headers
3205 # can be detected and how.
3206 cat >conftest.$ac_ext <<_ACEOF
3207/* confdefs.h. */
3208_ACEOF
3209cat confdefs.h >>conftest.$ac_ext
3210cat >>conftest.$ac_ext <<_ACEOF
3211/* end confdefs.h. */
3212#include <ac_nonexistent.h>
3213_ACEOF
3214if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3216 ac_status=$?
3217 grep -v '^ *+' conftest.er1 >conftest.err
3218 rm -f conftest.er1
3219 cat conftest.err >&5
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); } >/dev/null; then
3222 if test -s conftest.err; then
3223 ac_cpp_err=$ac_c_preproc_warn_flag
3224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3225 else
3226 ac_cpp_err=
3227 fi
3228else
3229 ac_cpp_err=yes
3230fi
3231if test -z "$ac_cpp_err"; then
3232 # Broken: success on invalid input.
3233continue
3234else
3235 echo "$as_me: failed program was:" >&5
3236sed 's/^/| /' conftest.$ac_ext >&5
3237
3238 # Passes both tests.
3239ac_preproc_ok=:
3240break
3241fi
3242rm -f conftest.err conftest.$ac_ext
3243
3244done
3245# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3246rm -f conftest.err conftest.$ac_ext
3247if $ac_preproc_ok; then
3248 :
3249else
3250 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3251See \`config.log' for more details." >&5
3252echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3253See \`config.log' for more details." >&2;}
3254 { (exit 1); exit 1; }; }
3255fi
3256
3257ac_ext=c
3258ac_cpp='$CPP $CPPFLAGS'
3259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3261ac_compiler_gnu=$ac_cv_c_compiler_gnu
3262
3263# Extract the first word of "ar", so it can be a program name with args.
3264set dummy ar; ac_word=$2
3265echo "$as_me:$LINENO: checking for $ac_word" >&5
3266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3267if test "${ac_cv_prog_AR+set}" = set; then
3268 echo $ECHO_N "(cached) $ECHO_C" >&6
3269else
3270 if test -n "$AR"; then
3271 ac_cv_prog_AR="$AR" # Let the user override the test.
3272else
3273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274for as_dir in $PATH
3275do
3276 IFS=$as_save_IFS
3277 test -z "$as_dir" && as_dir=.
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3280 ac_cv_prog_AR="ar"
3281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3282 break 2
3283 fi
3284done
3285done
3286
3287 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3288fi
3289fi
3290AR=$ac_cv_prog_AR
3291if test -n "$AR"; then
3292 echo "$as_me:$LINENO: result: $AR" >&5
3293echo "${ECHO_T}$AR" >&6
3294else
3295 echo "$as_me:$LINENO: result: no" >&5
3296echo "${ECHO_T}no" >&6
3297fi
3298
3299# Perl is needed for the test suite (only)
3300# Extract the first word of "perl", so it can be a program name with args.
3301set dummy perl; ac_word=$2
3302echo "$as_me:$LINENO: checking for $ac_word" >&5
3303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3304if test "${ac_cv_prog_PERL+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3306else
3307 if test -n "$PERL"; then
3308 ac_cv_prog_PERL="$PERL" # Let the user override the test.
3309else
3310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311for as_dir in $PATH
3312do
3313 IFS=$as_save_IFS
3314 test -z "$as_dir" && as_dir=.
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317 ac_cv_prog_PERL="perl"
3318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3319 break 2
3320 fi
3321done
3322done
3323
3324 test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="perl"
3325fi
3326fi
3327PERL=$ac_cv_prog_PERL
3328if test -n "$PERL"; then
3329 echo "$as_me:$LINENO: result: $PERL" >&5
3330echo "${ECHO_T}$PERL" >&6
3331else
3332 echo "$as_me:$LINENO: result: no" >&5
3333echo "${ECHO_T}no" >&6
3334fi
3335
3336
3337# Specialized system macros
3338# Make sure we can run config.sub.
3339$ac_config_sub sun4 >/dev/null 2>&1 ||
3340 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3341echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3342 { (exit 1); exit 1; }; }
3343
3344echo "$as_me:$LINENO: checking build system type" >&5
3345echo $ECHO_N "checking build system type... $ECHO_C" >&6
3346if test "${ac_cv_build+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3348else
3349 ac_cv_build_alias=$build_alias
3350test -z "$ac_cv_build_alias" &&
3351 ac_cv_build_alias=`$ac_config_guess`
3352test -z "$ac_cv_build_alias" &&
3353 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3354echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3355 { (exit 1); exit 1; }; }
3356ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3357 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3358echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3359 { (exit 1); exit 1; }; }
3360
3361fi
3362echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3363echo "${ECHO_T}$ac_cv_build" >&6
3364build=$ac_cv_build
3365build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3366build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3367build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3368
3369
3370echo "$as_me:$LINENO: checking host system type" >&5
3371echo $ECHO_N "checking host system type... $ECHO_C" >&6
3372if test "${ac_cv_host+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3374else
3375 ac_cv_host_alias=$host_alias
3376test -z "$ac_cv_host_alias" &&
3377 ac_cv_host_alias=$ac_cv_build_alias
3378ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3379 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3380echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3381 { (exit 1); exit 1; }; }
3382
3383fi
3384echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3385echo "${ECHO_T}$ac_cv_host" >&6
3386host=$ac_cv_host
3387host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3388host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3389host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3390
3391
3392
3393
3394echo "$as_me:$LINENO: checking for egrep" >&5
3395echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3396if test "${ac_cv_prog_egrep+set}" = set; then
3397 echo $ECHO_N "(cached) $ECHO_C" >&6
3398else
3399 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3400 then ac_cv_prog_egrep='grep -E'
3401 else ac_cv_prog_egrep='egrep'
3402 fi
3403fi
3404echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3405echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3406 EGREP=$ac_cv_prog_egrep
3407
3408
3409
3410echo "$as_me:$LINENO: checking for AIX" >&5
3411echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3412cat >conftest.$ac_ext <<_ACEOF
3413/* confdefs.h. */
3414_ACEOF
3415cat confdefs.h >>conftest.$ac_ext
3416cat >>conftest.$ac_ext <<_ACEOF
3417/* end confdefs.h. */
3418#ifdef _AIX
3419 yes
3420#endif
3421
3422_ACEOF
3423if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3424 $EGREP "yes" >/dev/null 2>&1; then
3425 echo "$as_me:$LINENO: result: yes" >&5
3426echo "${ECHO_T}yes" >&6
3427cat >>confdefs.h <<\_ACEOF
3428#define _ALL_SOURCE 1
3429_ACEOF
3430
3431else
3432 echo "$as_me:$LINENO: result: no" >&5
3433echo "${ECHO_T}no" >&6
3434fi
3435rm -f conftest*
3436
3437
3438echo "$as_me:$LINENO: checking for library containing strerror" >&5
3439echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3440if test "${ac_cv_search_strerror+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3442else
3443 ac_func_search_save_LIBS=$LIBS
3444ac_cv_search_strerror=no
3445cat >conftest.$ac_ext <<_ACEOF
3446/* confdefs.h. */
3447_ACEOF
3448cat confdefs.h >>conftest.$ac_ext
3449cat >>conftest.$ac_ext <<_ACEOF
3450/* end confdefs.h. */
3451
3452/* Override any gcc2 internal prototype to avoid an error. */
3453#ifdef __cplusplus
3454extern "C"
3455#endif
3456/* We use char because int might match the return type of a gcc2
3457 builtin and then its argument prototype would still apply. */
3458char strerror ();
3459int
3460main ()
3461{
3462strerror ();
3463 ;
3464 return 0;
3465}
3466_ACEOF
3467rm -f conftest.$ac_objext conftest$ac_exeext
3468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3469 (eval $ac_link) 2>conftest.er1
3470 ac_status=$?
3471 grep -v '^ *+' conftest.er1 >conftest.err
3472 rm -f conftest.er1
3473 cat conftest.err >&5
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); } &&
3476 { ac_try='test -z "$ac_c_werror_flag"
3477 || test ! -s conftest.err'
3478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479 (eval $ac_try) 2>&5
3480 ac_status=$?
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); }; } &&
3483 { ac_try='test -s conftest$ac_exeext'
3484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485 (eval $ac_try) 2>&5
3486 ac_status=$?
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; }; then
3489 ac_cv_search_strerror="none required"
3490else
3491 echo "$as_me: failed program was:" >&5
3492sed 's/^/| /' conftest.$ac_ext >&5
3493
3494fi
3495rm -f conftest.err conftest.$ac_objext \
3496 conftest$ac_exeext conftest.$ac_ext
3497if test "$ac_cv_search_strerror" = no; then
3498 for ac_lib in cposix; do
3499 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3500 cat >conftest.$ac_ext <<_ACEOF
3501/* confdefs.h. */
3502_ACEOF
3503cat confdefs.h >>conftest.$ac_ext
3504cat >>conftest.$ac_ext <<_ACEOF
3505/* end confdefs.h. */
3506
3507/* Override any gcc2 internal prototype to avoid an error. */
3508#ifdef __cplusplus
3509extern "C"
3510#endif
3511/* We use char because int might match the return type of a gcc2
3512 builtin and then its argument prototype would still apply. */
3513char strerror ();
3514int
3515main ()
3516{
3517strerror ();
3518 ;
3519 return 0;
3520}
3521_ACEOF
3522rm -f conftest.$ac_objext conftest$ac_exeext
3523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3524 (eval $ac_link) 2>conftest.er1
3525 ac_status=$?
3526 grep -v '^ *+' conftest.er1 >conftest.err
3527 rm -f conftest.er1
3528 cat conftest.err >&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); } &&
3531 { ac_try='test -z "$ac_c_werror_flag"
3532 || test ! -s conftest.err'
3533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3534 (eval $ac_try) 2>&5
3535 ac_status=$?
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); }; } &&
3538 { ac_try='test -s conftest$ac_exeext'
3539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3540 (eval $ac_try) 2>&5
3541 ac_status=$?
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); }; }; then
3544 ac_cv_search_strerror="-l$ac_lib"
3545break
3546else
3547 echo "$as_me: failed program was:" >&5
3548sed 's/^/| /' conftest.$ac_ext >&5
3549
3550fi
3551rm -f conftest.err conftest.$ac_objext \
3552 conftest$ac_exeext conftest.$ac_ext
3553 done
3554fi
3555LIBS=$ac_func_search_save_LIBS
3556fi
3557echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3558echo "${ECHO_T}$ac_cv_search_strerror" >&6
3559if test "$ac_cv_search_strerror" != no; then
3560 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3561
3562fi
3563
3564echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3565echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3566if test "${ac_cv_header_stdc+set}" = set; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3568else
3569 cat >conftest.$ac_ext <<_ACEOF
3570/* confdefs.h. */
3571_ACEOF
3572cat confdefs.h >>conftest.$ac_ext
3573cat >>conftest.$ac_ext <<_ACEOF
3574/* end confdefs.h. */
3575#include <stdlib.h>
3576#include <stdarg.h>
3577#include <string.h>
3578#include <float.h>
3579
3580int
3581main ()
3582{
3583
3584 ;
3585 return 0;
3586}
3587_ACEOF
3588rm -f conftest.$ac_objext
3589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3590 (eval $ac_compile) 2>conftest.er1
3591 ac_status=$?
3592 grep -v '^ *+' conftest.er1 >conftest.err
3593 rm -f conftest.er1
3594 cat conftest.err >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); } &&
3597 { ac_try='test -z "$ac_c_werror_flag"
3598 || test ! -s conftest.err'
3599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3600 (eval $ac_try) 2>&5
3601 ac_status=$?
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); }; } &&
3604 { ac_try='test -s conftest.$ac_objext'
3605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606 (eval $ac_try) 2>&5
3607 ac_status=$?
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; }; then
3610 ac_cv_header_stdc=yes
3611else
3612 echo "$as_me: failed program was:" >&5
3613sed 's/^/| /' conftest.$ac_ext >&5
3614
3615ac_cv_header_stdc=no
3616fi
3617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3618
3619if test $ac_cv_header_stdc = yes; then
3620 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3621 cat >conftest.$ac_ext <<_ACEOF
3622/* confdefs.h. */
3623_ACEOF
3624cat confdefs.h >>conftest.$ac_ext
3625cat >>conftest.$ac_ext <<_ACEOF
3626/* end confdefs.h. */
3627#include <string.h>
3628
3629_ACEOF
3630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3631 $EGREP "memchr" >/dev/null 2>&1; then
3632 :
3633else
3634 ac_cv_header_stdc=no
3635fi
3636rm -f conftest*
3637
3638fi
3639
3640if test $ac_cv_header_stdc = yes; then
3641 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3642 cat >conftest.$ac_ext <<_ACEOF
3643/* confdefs.h. */
3644_ACEOF
3645cat confdefs.h >>conftest.$ac_ext
3646cat >>conftest.$ac_ext <<_ACEOF
3647/* end confdefs.h. */
3648#include <stdlib.h>
3649
3650_ACEOF
3651if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3652 $EGREP "free" >/dev/null 2>&1; then
3653 :
3654else
3655 ac_cv_header_stdc=no
3656fi
3657rm -f conftest*
3658
3659fi
3660
3661if test $ac_cv_header_stdc = yes; then
3662 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3663 if test "$cross_compiling" = yes; then
3664 :
3665else
3666 cat >conftest.$ac_ext <<_ACEOF
3667/* confdefs.h. */
3668_ACEOF
3669cat confdefs.h >>conftest.$ac_ext
3670cat >>conftest.$ac_ext <<_ACEOF
3671/* end confdefs.h. */
3672#include <ctype.h>
3673#if ((' ' & 0x0FF) == 0x020)
3674# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3675# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3676#else
3677# define ISLOWER(c) \
3678 (('a' <= (c) && (c) <= 'i') \
3679 || ('j' <= (c) && (c) <= 'r') \
3680 || ('s' <= (c) && (c) <= 'z'))
3681# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3682#endif
3683
3684#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3685int
3686main ()
3687{
3688 int i;
3689 for (i = 0; i < 256; i++)
3690 if (XOR (islower (i), ISLOWER (i))
3691 || toupper (i) != TOUPPER (i))
3692 exit(2);
3693 exit (0);
3694}
3695_ACEOF
3696rm -f conftest$ac_exeext
3697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3698 (eval $ac_link) 2>&5
3699 ac_status=$?
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3703 (eval $ac_try) 2>&5
3704 ac_status=$?
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); }; }; then
3707 :
3708else
3709 echo "$as_me: program exited with status $ac_status" >&5
3710echo "$as_me: failed program was:" >&5
3711sed 's/^/| /' conftest.$ac_ext >&5
3712
3713( exit $ac_status )
3714ac_cv_header_stdc=no
3715fi
3716rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3717fi
3718fi
3719fi
3720echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3721echo "${ECHO_T}$ac_cv_header_stdc" >&6
3722if test $ac_cv_header_stdc = yes; then
3723
3724cat >>confdefs.h <<\_ACEOF
3725#define STDC_HEADERS 1
3726_ACEOF
3727
3728fi
3729
3730# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3741 inttypes.h stdint.h unistd.h
3742do
3743as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3744echo "$as_me:$LINENO: checking for $ac_header" >&5
3745echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3746if eval "test \"\${$as_ac_Header+set}\" = set"; then
3747 echo $ECHO_N "(cached) $ECHO_C" >&6
3748else
3749 cat >conftest.$ac_ext <<_ACEOF
3750/* confdefs.h. */
3751_ACEOF
3752cat confdefs.h >>conftest.$ac_ext
3753cat >>conftest.$ac_ext <<_ACEOF
3754/* end confdefs.h. */
3755$ac_includes_default
3756
3757#include <$ac_header>
3758_ACEOF
3759rm -f conftest.$ac_objext
3760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3761 (eval $ac_compile) 2>conftest.er1
3762 ac_status=$?
3763 grep -v '^ *+' conftest.er1 >conftest.err
3764 rm -f conftest.er1
3765 cat conftest.err >&5
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); } &&
3768 { ac_try='test -z "$ac_c_werror_flag"
3769 || test ! -s conftest.err'
3770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771 (eval $ac_try) 2>&5
3772 ac_status=$?
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); }; } &&
3775 { ac_try='test -s conftest.$ac_objext'
3776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3777 (eval $ac_try) 2>&5
3778 ac_status=$?
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); }; }; then
3781 eval "$as_ac_Header=yes"
3782else
3783 echo "$as_me: failed program was:" >&5
3784sed 's/^/| /' conftest.$ac_ext >&5
3785
3786eval "$as_ac_Header=no"
3787fi
3788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3789fi
3790echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3791echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3792if test `eval echo '${'$as_ac_Header'}'` = yes; then
3793 cat >>confdefs.h <<_ACEOF
3794#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3795_ACEOF
3796
3797fi
3798
3799done
3800
3801
3802if test "${ac_cv_header_minix_config_h+set}" = set; then
3803 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3804echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3805if test "${ac_cv_header_minix_config_h+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3807fi
3808echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3809echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3810else
3811 # Is the header compilable?
3812echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3813echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3814cat >conftest.$ac_ext <<_ACEOF
3815/* confdefs.h. */
3816_ACEOF
3817cat confdefs.h >>conftest.$ac_ext
3818cat >>conftest.$ac_ext <<_ACEOF
3819/* end confdefs.h. */
3820$ac_includes_default
3821#include <minix/config.h>
3822_ACEOF
3823rm -f conftest.$ac_objext
3824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3825 (eval $ac_compile) 2>conftest.er1
3826 ac_status=$?
3827 grep -v '^ *+' conftest.er1 >conftest.err
3828 rm -f conftest.er1
3829 cat conftest.err >&5
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); } &&
3832 { ac_try='test -z "$ac_c_werror_flag"
3833 || test ! -s conftest.err'
3834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3835 (eval $ac_try) 2>&5
3836 ac_status=$?
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); }; } &&
3839 { ac_try='test -s conftest.$ac_objext'
3840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841 (eval $ac_try) 2>&5
3842 ac_status=$?
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); }; }; then
3845 ac_header_compiler=yes
3846else
3847 echo "$as_me: failed program was:" >&5
3848sed 's/^/| /' conftest.$ac_ext >&5
3849
3850ac_header_compiler=no
3851fi
3852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3853echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3854echo "${ECHO_T}$ac_header_compiler" >&6
3855
3856# Is the header present?
3857echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3858echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3859cat >conftest.$ac_ext <<_ACEOF
3860/* confdefs.h. */
3861_ACEOF
3862cat confdefs.h >>conftest.$ac_ext
3863cat >>conftest.$ac_ext <<_ACEOF
3864/* end confdefs.h. */
3865#include <minix/config.h>
3866_ACEOF
3867if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3868 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3869 ac_status=$?
3870 grep -v '^ *+' conftest.er1 >conftest.err
3871 rm -f conftest.er1
3872 cat conftest.err >&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); } >/dev/null; then
3875 if test -s conftest.err; then
3876 ac_cpp_err=$ac_c_preproc_warn_flag
3877 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3878 else
3879 ac_cpp_err=
3880 fi
3881else
3882 ac_cpp_err=yes
3883fi
3884if test -z "$ac_cpp_err"; then
3885 ac_header_preproc=yes
3886else
3887 echo "$as_me: failed program was:" >&5
3888sed 's/^/| /' conftest.$ac_ext >&5
3889
3890 ac_header_preproc=no
3891fi
3892rm -f conftest.err conftest.$ac_ext
3893echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3894echo "${ECHO_T}$ac_header_preproc" >&6
3895
3896# So? What about this header?
3897case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3898 yes:no: )
3899 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3900echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3901 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3902echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3903 ac_header_preproc=yes
3904 ;;
3905 no:yes:* )
3906 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3907echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3908 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3909echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3910 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3911echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3912 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3913echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3914 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3915echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3916 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3917echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3918 (
3919 cat <<\_ASBOX
3920## ------------------------------- ##
3921## Report this to [email protected] ##
3922## ------------------------------- ##
3923_ASBOX
3924 ) |
3925 sed "s/^/$as_me: WARNING: /" >&2
3926 ;;
3927esac
3928echo "$as_me:$LINENO: checking for minix/config.h" >&5
3929echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3930if test "${ac_cv_header_minix_config_h+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
3932else
3933 ac_cv_header_minix_config_h=$ac_header_preproc
3934fi
3935echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3936echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3937
3938fi
3939if test $ac_cv_header_minix_config_h = yes; then
3940 MINIX=yes
3941else
3942 MINIX=
3943fi
3944
3945
3946if test "$MINIX" = yes; then
3947
3948cat >>confdefs.h <<\_ACEOF
3949#define _POSIX_SOURCE 1
3950_ACEOF
3951
3952
3953cat >>confdefs.h <<\_ACEOF
3954#define _POSIX_1_SOURCE 2
3955_ACEOF
3956
3957
3958cat >>confdefs.h <<\_ACEOF
3959#define _MINIX 1
3960_ACEOF
3961
3962fi
3963
3964
3965# Needed for ansi2knr
3966echo "$as_me:$LINENO: checking for function prototypes" >&5
3967echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3968if test "$ac_cv_prog_cc_stdc" != no; then
3969 echo "$as_me:$LINENO: result: yes" >&5
3970echo "${ECHO_T}yes" >&6
3971
3972cat >>confdefs.h <<\_ACEOF
3973#define PROTOTYPES 1
3974_ACEOF
3975
3976
3977cat >>confdefs.h <<\_ACEOF
3978#define __PROTOTYPES 1
3979_ACEOF
3980
3981else
3982 echo "$as_me:$LINENO: result: no" >&5
3983echo "${ECHO_T}no" >&6
3984fi
3985
3986
3987if test "$ac_cv_prog_cc_stdc" != no; then
3988 U= ANSI2KNR=
3989else
3990 U=_ ANSI2KNR=./ansi2knr
3991fi
3992# Ensure some checks needed by ansi2knr itself.
3993
3994
3995for ac_header in string.h
3996do
3997as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3998if eval "test \"\${$as_ac_Header+set}\" = set"; then
3999 echo "$as_me:$LINENO: checking for $ac_header" >&5
4000echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4001if eval "test \"\${$as_ac_Header+set}\" = set"; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
4003fi
4004echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4005echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4006else
4007 # Is the header compilable?
4008echo "$as_me:$LINENO: checking $ac_header usability" >&5
4009echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4010cat >conftest.$ac_ext <<_ACEOF
4011/* confdefs.h. */
4012_ACEOF
4013cat confdefs.h >>conftest.$ac_ext
4014cat >>conftest.$ac_ext <<_ACEOF
4015/* end confdefs.h. */
4016$ac_includes_default
4017#include <$ac_header>
4018_ACEOF
4019rm -f conftest.$ac_objext
4020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4021 (eval $ac_compile) 2>conftest.er1
4022 ac_status=$?
4023 grep -v '^ *+' conftest.er1 >conftest.err
4024 rm -f conftest.er1
4025 cat conftest.err >&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); } &&
4028 { ac_try='test -z "$ac_c_werror_flag"
4029 || test ! -s conftest.err'
4030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031 (eval $ac_try) 2>&5
4032 ac_status=$?
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; } &&
4035 { ac_try='test -s conftest.$ac_objext'
4036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037 (eval $ac_try) 2>&5
4038 ac_status=$?
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; }; then
4041 ac_header_compiler=yes
4042else
4043 echo "$as_me: failed program was:" >&5
4044sed 's/^/| /' conftest.$ac_ext >&5
4045
4046ac_header_compiler=no
4047fi
4048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4049echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4050echo "${ECHO_T}$ac_header_compiler" >&6
4051
4052# Is the header present?
4053echo "$as_me:$LINENO: checking $ac_header presence" >&5
4054echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4055cat >conftest.$ac_ext <<_ACEOF
4056/* confdefs.h. */
4057_ACEOF
4058cat confdefs.h >>conftest.$ac_ext
4059cat >>conftest.$ac_ext <<_ACEOF
4060/* end confdefs.h. */
4061#include <$ac_header>
4062_ACEOF
4063if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4065 ac_status=$?
4066 grep -v '^ *+' conftest.er1 >conftest.err
4067 rm -f conftest.er1
4068 cat conftest.err >&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } >/dev/null; then
4071 if test -s conftest.err; then
4072 ac_cpp_err=$ac_c_preproc_warn_flag
4073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4074 else
4075 ac_cpp_err=
4076 fi
4077else
4078 ac_cpp_err=yes
4079fi
4080if test -z "$ac_cpp_err"; then
4081 ac_header_preproc=yes
4082else
4083 echo "$as_me: failed program was:" >&5
4084sed 's/^/| /' conftest.$ac_ext >&5
4085
4086 ac_header_preproc=no
4087fi
4088rm -f conftest.err conftest.$ac_ext
4089echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4090echo "${ECHO_T}$ac_header_preproc" >&6
4091
4092# So? What about this header?
4093case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4094 yes:no: )
4095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4096echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4098echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4099 ac_header_preproc=yes
4100 ;;
4101 no:yes:* )
4102 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4103echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4104 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4105echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4106 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4107echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4108 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4109echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4111echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4112 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4113echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4114 (
4115 cat <<\_ASBOX
4116## ------------------------------- ##
4117## Report this to [email protected] ##
4118## ------------------------------- ##
4119_ASBOX
4120 ) |
4121 sed "s/^/$as_me: WARNING: /" >&2
4122 ;;
4123esac
4124echo "$as_me:$LINENO: checking for $ac_header" >&5
4125echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4126if eval "test \"\${$as_ac_Header+set}\" = set"; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4128else
4129 eval "$as_ac_Header=\$ac_header_preproc"
4130fi
4131echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4132echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4133
4134fi
4135if test `eval echo '${'$as_ac_Header'}'` = yes; then
4136 cat >>confdefs.h <<_ACEOF
4137#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4138_ACEOF
4139
4140fi
4141
4142done
4143
4144
4145
4146# Enable gettext, in "external" mode.
4147
4148
4149
4150 MKINSTALLDIRS=
4151 if test -n "$ac_aux_dir"; then
4152 case "$ac_aux_dir" in
4153 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4154 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4155 esac
4156 fi
4157 if test -z "$MKINSTALLDIRS"; then
4158 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4159 fi
4160
4161
4162
4163 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4164echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4165 # Check whether --enable-nls or --disable-nls was given.
4166if test "${enable_nls+set}" = set; then
4167 enableval="$enable_nls"
4168 USE_NLS=$enableval
4169else
4170 USE_NLS=yes
4171fi;
4172 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4173echo "${ECHO_T}$USE_NLS" >&6
4174
4175
4176
4177
4178
4179
4180# Prepare PATH_SEPARATOR.
4181# The user is always right.
4182if test "${PATH_SEPARATOR+set}" != set; then
4183 echo "#! /bin/sh" >conf$$.sh
4184 echo "exit 0" >>conf$$.sh
4185 chmod +x conf$$.sh
4186 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4187 PATH_SEPARATOR=';'
4188 else
4189 PATH_SEPARATOR=:
4190 fi
4191 rm -f conf$$.sh
4192fi
4193
4194# Find out how to test for executable files. Don't use a zero-byte file,
4195# as systems may use methods other than mode bits to determine executability.
4196cat >conf$$.file <<_ASEOF
4197#! /bin/sh
4198exit 0
4199_ASEOF
4200chmod +x conf$$.file
4201if test -x conf$$.file >/dev/null 2>&1; then
4202 ac_executable_p="test -x"
4203else
4204 ac_executable_p="test -f"
4205fi
4206rm -f conf$$.file
4207
4208# Extract the first word of "msgfmt", so it can be a program name with args.
4209set dummy msgfmt; ac_word=$2
4210echo "$as_me:$LINENO: checking for $ac_word" >&5
4211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4212if test "${ac_cv_path_MSGFMT+set}" = set; then
4213 echo $ECHO_N "(cached) $ECHO_C" >&6
4214else
4215 case "$MSGFMT" in
4216 [\\/]* | ?:[\\/]*)
4217 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4218 ;;
4219 *)
4220 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4221 for ac_dir in $PATH; do
4222 IFS="$ac_save_IFS"
4223 test -z "$ac_dir" && ac_dir=.
4224 for ac_exec_ext in '' $ac_executable_extensions; do
4225 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4226 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4227 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4228 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4229 break 2
4230 fi
4231 fi
4232 done
4233 done
4234 IFS="$ac_save_IFS"
4235 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4236 ;;
4237esac
4238fi
4239MSGFMT="$ac_cv_path_MSGFMT"
4240if test "$MSGFMT" != ":"; then
4241 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4242echo "${ECHO_T}$MSGFMT" >&6
4243else
4244 echo "$as_me:$LINENO: result: no" >&5
4245echo "${ECHO_T}no" >&6
4246fi
4247
4248 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4249set dummy gmsgfmt; ac_word=$2
4250echo "$as_me:$LINENO: checking for $ac_word" >&5
4251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4252if test "${ac_cv_path_GMSGFMT+set}" = set; then
4253 echo $ECHO_N "(cached) $ECHO_C" >&6
4254else
4255 case $GMSGFMT in
4256 [\\/]* | ?:[\\/]*)
4257 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4258 ;;
4259 *)
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261for as_dir in $PATH
4262do
4263 IFS=$as_save_IFS
4264 test -z "$as_dir" && as_dir=.
4265 for ac_exec_ext in '' $ac_executable_extensions; do
4266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4267 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4269 break 2
4270 fi
4271done
4272done
4273
4274 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4275 ;;
4276esac
4277fi
4278GMSGFMT=$ac_cv_path_GMSGFMT
4279
4280if test -n "$GMSGFMT"; then
4281 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4282echo "${ECHO_T}$GMSGFMT" >&6
4283else
4284 echo "$as_me:$LINENO: result: no" >&5
4285echo "${ECHO_T}no" >&6
4286fi
4287
4288
4289
4290# Prepare PATH_SEPARATOR.
4291# The user is always right.
4292if test "${PATH_SEPARATOR+set}" != set; then
4293 echo "#! /bin/sh" >conf$$.sh
4294 echo "exit 0" >>conf$$.sh
4295 chmod +x conf$$.sh
4296 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4297 PATH_SEPARATOR=';'
4298 else
4299 PATH_SEPARATOR=:
4300 fi
4301 rm -f conf$$.sh
4302fi
4303
4304# Find out how to test for executable files. Don't use a zero-byte file,
4305# as systems may use methods other than mode bits to determine executability.
4306cat >conf$$.file <<_ASEOF
4307#! /bin/sh
4308exit 0
4309_ASEOF
4310chmod +x conf$$.file
4311if test -x conf$$.file >/dev/null 2>&1; then
4312 ac_executable_p="test -x"
4313else
4314 ac_executable_p="test -f"
4315fi
4316rm -f conf$$.file
4317
4318# Extract the first word of "xgettext", so it can be a program name with args.
4319set dummy xgettext; ac_word=$2
4320echo "$as_me:$LINENO: checking for $ac_word" >&5
4321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4322if test "${ac_cv_path_XGETTEXT+set}" = set; then
4323 echo $ECHO_N "(cached) $ECHO_C" >&6
4324else
4325 case "$XGETTEXT" in
4326 [\\/]* | ?:[\\/]*)
4327 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4328 ;;
4329 *)
4330 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4331 for ac_dir in $PATH; do
4332 IFS="$ac_save_IFS"
4333 test -z "$ac_dir" && ac_dir=.
4334 for ac_exec_ext in '' $ac_executable_extensions; do
4335 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4336 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4337 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4338 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4339 break 2
4340 fi
4341 fi
4342 done
4343 done
4344 IFS="$ac_save_IFS"
4345 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4346 ;;
4347esac
4348fi
4349XGETTEXT="$ac_cv_path_XGETTEXT"
4350if test "$XGETTEXT" != ":"; then
4351 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4352echo "${ECHO_T}$XGETTEXT" >&6
4353else
4354 echo "$as_me:$LINENO: result: no" >&5
4355echo "${ECHO_T}no" >&6
4356fi
4357
4358 rm -f messages.po
4359
4360
4361# Prepare PATH_SEPARATOR.
4362# The user is always right.
4363if test "${PATH_SEPARATOR+set}" != set; then
4364 echo "#! /bin/sh" >conf$$.sh
4365 echo "exit 0" >>conf$$.sh
4366 chmod +x conf$$.sh
4367 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4368 PATH_SEPARATOR=';'
4369 else
4370 PATH_SEPARATOR=:
4371 fi
4372 rm -f conf$$.sh
4373fi
4374
4375# Find out how to test for executable files. Don't use a zero-byte file,
4376# as systems may use methods other than mode bits to determine executability.
4377cat >conf$$.file <<_ASEOF
4378#! /bin/sh
4379exit 0
4380_ASEOF
4381chmod +x conf$$.file
4382if test -x conf$$.file >/dev/null 2>&1; then
4383 ac_executable_p="test -x"
4384else
4385 ac_executable_p="test -f"
4386fi
4387rm -f conf$$.file
4388
4389# Extract the first word of "msgmerge", so it can be a program name with args.
4390set dummy msgmerge; ac_word=$2
4391echo "$as_me:$LINENO: checking for $ac_word" >&5
4392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4393if test "${ac_cv_path_MSGMERGE+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4395else
4396 case "$MSGMERGE" in
4397 [\\/]* | ?:[\\/]*)
4398 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4399 ;;
4400 *)
4401 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4402 for ac_dir in $PATH; do
4403 IFS="$ac_save_IFS"
4404 test -z "$ac_dir" && ac_dir=.
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4407 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4408 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4409 break 2
4410 fi
4411 fi
4412 done
4413 done
4414 IFS="$ac_save_IFS"
4415 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4416 ;;
4417esac
4418fi
4419MSGMERGE="$ac_cv_path_MSGMERGE"
4420if test "$MSGMERGE" != ":"; then
4421 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4422echo "${ECHO_T}$MSGMERGE" >&6
4423else
4424 echo "$as_me:$LINENO: result: no" >&5
4425echo "${ECHO_T}no" >&6
4426fi
4427
4428
4429 if test "$GMSGFMT" != ":"; then
4430 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4431 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4432 : ;
4433 else
4434 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4435 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4436echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
4437 GMSGFMT=":"
4438 fi
4439 fi
4440
4441 if test "$XGETTEXT" != ":"; then
4442 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4443 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4444 : ;
4445 else
4446 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4447echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
4448 XGETTEXT=":"
4449 fi
4450 rm -f messages.po
4451 fi
4452
4453 ac_config_commands="$ac_config_commands default-1"
4454
4455
4456
4457 if test "X$prefix" = "XNONE"; then
4458 acl_final_prefix="$ac_default_prefix"
4459 else
4460 acl_final_prefix="$prefix"
4461 fi
4462 if test "X$exec_prefix" = "XNONE"; then
4463 acl_final_exec_prefix='${prefix}'
4464 else
4465 acl_final_exec_prefix="$exec_prefix"
4466 fi
4467 acl_save_prefix="$prefix"
4468 prefix="$acl_final_prefix"
4469 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4470 prefix="$acl_save_prefix"
4471
4472
4473# Check whether --with-gnu-ld or --without-gnu-ld was given.
4474if test "${with_gnu_ld+set}" = set; then
4475 withval="$with_gnu_ld"
4476 test "$withval" = no || with_gnu_ld=yes
4477else
4478 with_gnu_ld=no
4479fi;
4480# Prepare PATH_SEPARATOR.
4481# The user is always right.
4482if test "${PATH_SEPARATOR+set}" != set; then
4483 echo "#! /bin/sh" >conf$$.sh
4484 echo "exit 0" >>conf$$.sh
4485 chmod +x conf$$.sh
4486 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4487 PATH_SEPARATOR=';'
4488 else
4489 PATH_SEPARATOR=:
4490 fi
4491 rm -f conf$$.sh
4492fi
4493ac_prog=ld
4494if test "$GCC" = yes; then
4495 # Check if gcc -print-prog-name=ld gives a path.
4496 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4497echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4498 case $host in
4499 *-*-mingw*)
4500 # gcc leaves a trailing carriage return which upsets mingw
4501 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4502 *)
4503 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4504 esac
4505 case $ac_prog in
4506 # Accept absolute paths.
4507 [\\/]* | [A-Za-z]:[\\/]*)
4508 re_direlt='/[^/][^/]*/\.\./'
4509 # Canonicalize the path of ld
4510 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4511 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4512 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4513 done
4514 test -z "$LD" && LD="$ac_prog"
4515 ;;
4516 "")
4517 # If it fails, then pretend we aren't using GCC.
4518 ac_prog=ld
4519 ;;
4520 *)
4521 # If it is relative, then search for the first ld in PATH.
4522 with_gnu_ld=unknown
4523 ;;
4524 esac
4525elif test "$with_gnu_ld" = yes; then
4526 echo "$as_me:$LINENO: checking for GNU ld" >&5
4527echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4528else
4529 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4530echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4531fi
4532if test "${acl_cv_path_LD+set}" = set; then
4533 echo $ECHO_N "(cached) $ECHO_C" >&6
4534else
4535 if test -z "$LD"; then
4536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4537 for ac_dir in $PATH; do
4538 test -z "$ac_dir" && ac_dir=.
4539 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4540 acl_cv_path_LD="$ac_dir/$ac_prog"
4541 # Check to see if the program is GNU ld. I'd rather use --version,
4542 # but apparently some GNU ld's only accept -v.
4543 # Break only if it was the GNU/non-GNU ld that we prefer.
4544 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4545 test "$with_gnu_ld" != no && break
4546 else
4547 test "$with_gnu_ld" != yes && break
4548 fi
4549 fi
4550 done
4551 IFS="$ac_save_ifs"
4552else
4553 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4554fi
4555fi
4556
4557LD="$acl_cv_path_LD"
4558if test -n "$LD"; then
4559 echo "$as_me:$LINENO: result: $LD" >&5
4560echo "${ECHO_T}$LD" >&6
4561else
4562 echo "$as_me:$LINENO: result: no" >&5
4563echo "${ECHO_T}no" >&6
4564fi
4565test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4566echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4567 { (exit 1); exit 1; }; }
4568echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4569echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4570if test "${acl_cv_prog_gnu_ld+set}" = set; then
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
4572else
4573 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4574if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4575 acl_cv_prog_gnu_ld=yes
4576else
4577 acl_cv_prog_gnu_ld=no
4578fi
4579fi
4580echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4581echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
4582with_gnu_ld=$acl_cv_prog_gnu_ld
4583
4584
4585
4586 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
4587echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
4588if test "${acl_cv_rpath+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4590else
4591
4592 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4593 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4594 . ./conftest.sh
4595 rm -f ./conftest.sh
4596 acl_cv_rpath=done
4597
4598fi
4599echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
4600echo "${ECHO_T}$acl_cv_rpath" >&6
4601 wl="$acl_cv_wl"
4602 libext="$acl_cv_libext"
4603 shlibext="$acl_cv_shlibext"
4604 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4605 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4606 hardcode_direct="$acl_cv_hardcode_direct"
4607 hardcode_minus_L="$acl_cv_hardcode_minus_L"
4608 # Check whether --enable-rpath or --disable-rpath was given.
4609if test "${enable_rpath+set}" = set; then
4610 enableval="$enable_rpath"
4611 :
4612else
4613 enable_rpath=yes
4614fi;
4615
4616
4617
4618
4619
4620
4621
4622 use_additional=yes
4623
4624 acl_save_prefix="$prefix"
4625 prefix="$acl_final_prefix"
4626 acl_save_exec_prefix="$exec_prefix"
4627 exec_prefix="$acl_final_exec_prefix"
4628
4629 eval additional_includedir=\"$includedir\"
4630 eval additional_libdir=\"$libdir\"
4631
4632 exec_prefix="$acl_save_exec_prefix"
4633 prefix="$acl_save_prefix"
4634
4635
4636# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
4637if test "${with_libiconv_prefix+set}" = set; then
4638 withval="$with_libiconv_prefix"
4639
4640 if test "X$withval" = "Xno"; then
4641 use_additional=no
4642 else
4643 if test "X$withval" = "X"; then
4644
4645 acl_save_prefix="$prefix"
4646 prefix="$acl_final_prefix"
4647 acl_save_exec_prefix="$exec_prefix"
4648 exec_prefix="$acl_final_exec_prefix"
4649
4650 eval additional_includedir=\"$includedir\"
4651 eval additional_libdir=\"$libdir\"
4652
4653 exec_prefix="$acl_save_exec_prefix"
4654 prefix="$acl_save_prefix"
4655
4656 else
4657 additional_includedir="$withval/include"
4658 additional_libdir="$withval/lib"
4659 fi
4660 fi
4661
4662fi;
4663 LIBICONV=
4664 LTLIBICONV=
4665 INCICONV=
4666 rpathdirs=
4667 ltrpathdirs=
4668 names_already_handled=
4669 names_next_round='iconv '
4670 while test -n "$names_next_round"; do
4671 names_this_round="$names_next_round"
4672 names_next_round=
4673 for name in $names_this_round; do
4674 already_handled=
4675 for n in $names_already_handled; do
4676 if test "$n" = "$name"; then
4677 already_handled=yes
4678 break
4679 fi
4680 done
4681 if test -z "$already_handled"; then
4682 names_already_handled="$names_already_handled $name"
4683 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4684 eval value=\"\$HAVE_LIB$uppername\"
4685 if test -n "$value"; then
4686 if test "$value" = yes; then
4687 eval value=\"\$LIB$uppername\"
4688 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4689 eval value=\"\$LTLIB$uppername\"
4690 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4691 else
4692 :
4693 fi
4694 else
4695 found_dir=
4696 found_la=
4697 found_so=
4698 found_a=
4699 if test $use_additional = yes; then
4700 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4701 found_dir="$additional_libdir"
4702 found_so="$additional_libdir/lib$name.$shlibext"
4703 if test -f "$additional_libdir/lib$name.la"; then
4704 found_la="$additional_libdir/lib$name.la"
4705 fi
4706 else
4707 if test -f "$additional_libdir/lib$name.$libext"; then
4708 found_dir="$additional_libdir"
4709 found_a="$additional_libdir/lib$name.$libext"
4710 if test -f "$additional_libdir/lib$name.la"; then
4711 found_la="$additional_libdir/lib$name.la"
4712 fi
4713 fi
4714 fi
4715 fi
4716 if test "X$found_dir" = "X"; then
4717 for x in $LDFLAGS $LTLIBICONV; do
4718
4719 acl_save_prefix="$prefix"
4720 prefix="$acl_final_prefix"
4721 acl_save_exec_prefix="$exec_prefix"
4722 exec_prefix="$acl_final_exec_prefix"
4723 eval x=\"$x\"
4724 exec_prefix="$acl_save_exec_prefix"
4725 prefix="$acl_save_prefix"
4726
4727 case "$x" in
4728 -L*)
4729 dir=`echo "X$x" | sed -e 's/^X-L//'`
4730 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4731 found_dir="$dir"
4732 found_so="$dir/lib$name.$shlibext"
4733 if test -f "$dir/lib$name.la"; then
4734 found_la="$dir/lib$name.la"
4735 fi
4736 else
4737 if test -f "$dir/lib$name.$libext"; then
4738 found_dir="$dir"
4739 found_a="$dir/lib$name.$libext"
4740 if test -f "$dir/lib$name.la"; then
4741 found_la="$dir/lib$name.la"
4742 fi
4743 fi
4744 fi
4745 ;;
4746 esac
4747 if test "X$found_dir" != "X"; then
4748 break
4749 fi
4750 done
4751 fi
4752 if test "X$found_dir" != "X"; then
4753 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4754 if test "X$found_so" != "X"; then
4755 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4756 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4757 else
4758 haveit=
4759 for x in $ltrpathdirs; do
4760 if test "X$x" = "X$found_dir"; then
4761 haveit=yes
4762 break
4763 fi
4764 done
4765 if test -z "$haveit"; then
4766 ltrpathdirs="$ltrpathdirs $found_dir"
4767 fi
4768 if test "$hardcode_direct" = yes; then
4769 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4770 else
4771 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4772 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4773 haveit=
4774 for x in $rpathdirs; do
4775 if test "X$x" = "X$found_dir"; then
4776 haveit=yes
4777 break
4778 fi
4779 done
4780 if test -z "$haveit"; then
4781 rpathdirs="$rpathdirs $found_dir"
4782 fi
4783 else
4784 haveit=
4785 for x in $LDFLAGS $LIBICONV; do
4786
4787 acl_save_prefix="$prefix"
4788 prefix="$acl_final_prefix"
4789 acl_save_exec_prefix="$exec_prefix"
4790 exec_prefix="$acl_final_exec_prefix"
4791 eval x=\"$x\"
4792 exec_prefix="$acl_save_exec_prefix"
4793 prefix="$acl_save_prefix"
4794
4795 if test "X$x" = "X-L$found_dir"; then
4796 haveit=yes
4797 break
4798 fi
4799 done
4800 if test -z "$haveit"; then
4801 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4802 fi
4803 if test "$hardcode_minus_L" != no; then
4804 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4805 else
4806 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4807 fi
4808 fi
4809 fi
4810 fi
4811 else
4812 if test "X$found_a" != "X"; then
4813 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4814 else
4815 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4816 fi
4817 fi
4818 additional_includedir=
4819 case "$found_dir" in
4820 */lib | */lib/)
4821 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
4822 additional_includedir="$basedir/include"
4823 ;;
4824 esac
4825 if test "X$additional_includedir" != "X"; then
4826 if test "X$additional_includedir" != "X/usr/include"; then
4827 haveit=
4828 if test "X$additional_includedir" = "X/usr/local/include"; then
4829 if test -n "$GCC"; then
4830 case $host_os in
4831 linux*) haveit=yes;;
4832 esac
4833 fi
4834 fi
4835 if test -z "$haveit"; then
4836 for x in $CPPFLAGS $INCICONV; do
4837
4838 acl_save_prefix="$prefix"
4839 prefix="$acl_final_prefix"
4840 acl_save_exec_prefix="$exec_prefix"
4841 exec_prefix="$acl_final_exec_prefix"
4842 eval x=\"$x\"
4843 exec_prefix="$acl_save_exec_prefix"
4844 prefix="$acl_save_prefix"
4845
4846 if test "X$x" = "X-I$additional_includedir"; then
4847 haveit=yes
4848 break
4849 fi
4850 done
4851 if test -z "$haveit"; then
4852 if test -d "$additional_includedir"; then
4853 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4854 fi
4855 fi
4856 fi
4857 fi
4858 fi
4859 if test -n "$found_la"; then
4860 save_libdir="$libdir"
4861 case "$found_la" in
4862 */* | *\\*) . "$found_la" ;;
4863 *) . "./$found_la" ;;
4864 esac
4865 libdir="$save_libdir"
4866 for dep in $dependency_libs; do
4867 case "$dep" in
4868 -L*)
4869 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4870 if test "X$additional_libdir" != "X/usr/lib"; then
4871 haveit=
4872 if test "X$additional_libdir" = "X/usr/local/lib"; then
4873 if test -n "$GCC"; then
4874 case $host_os in
4875 linux*) haveit=yes;;
4876 esac
4877 fi
4878 fi
4879 if test -z "$haveit"; then
4880 haveit=
4881 for x in $LDFLAGS $LIBICONV; do
4882
4883 acl_save_prefix="$prefix"
4884 prefix="$acl_final_prefix"
4885 acl_save_exec_prefix="$exec_prefix"
4886 exec_prefix="$acl_final_exec_prefix"
4887 eval x=\"$x\"
4888 exec_prefix="$acl_save_exec_prefix"
4889 prefix="$acl_save_prefix"
4890
4891 if test "X$x" = "X-L$additional_libdir"; then
4892 haveit=yes
4893 break
4894 fi
4895 done
4896 if test -z "$haveit"; then
4897 if test -d "$additional_libdir"; then
4898 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4899 fi
4900 fi
4901 haveit=
4902 for x in $LDFLAGS $LTLIBICONV; do
4903
4904 acl_save_prefix="$prefix"
4905 prefix="$acl_final_prefix"
4906 acl_save_exec_prefix="$exec_prefix"
4907 exec_prefix="$acl_final_exec_prefix"
4908 eval x=\"$x\"
4909 exec_prefix="$acl_save_exec_prefix"
4910 prefix="$acl_save_prefix"
4911
4912 if test "X$x" = "X-L$additional_libdir"; then
4913 haveit=yes
4914 break
4915 fi
4916 done
4917 if test -z "$haveit"; then
4918 if test -d "$additional_libdir"; then
4919 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4920 fi
4921 fi
4922 fi
4923 fi
4924 ;;
4925 -R*)
4926 dir=`echo "X$dep" | sed -e 's/^X-R//'`
4927 if test "$enable_rpath" != no; then
4928 haveit=
4929 for x in $rpathdirs; do
4930 if test "X$x" = "X$dir"; then
4931 haveit=yes
4932 break
4933 fi
4934 done
4935 if test -z "$haveit"; then
4936 rpathdirs="$rpathdirs $dir"
4937 fi
4938 haveit=
4939 for x in $ltrpathdirs; do
4940 if test "X$x" = "X$dir"; then
4941 haveit=yes
4942 break
4943 fi
4944 done
4945 if test -z "$haveit"; then
4946 ltrpathdirs="$ltrpathdirs $dir"
4947 fi
4948 fi
4949 ;;
4950 -l*)
4951 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4952 ;;
4953 *.la)
4954 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4955 ;;
4956 *)
4957 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
4958 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
4959 ;;
4960 esac
4961 done
4962 fi
4963 else
4964 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4965 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
4966 fi
4967 fi
4968 fi
4969 done
4970 done
4971 if test "X$rpathdirs" != "X"; then
4972 if test -n "$hardcode_libdir_separator"; then
4973 alldirs=
4974 for found_dir in $rpathdirs; do
4975 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4976 done
4977 acl_save_libdir="$libdir"
4978 libdir="$alldirs"
4979 eval flag=\"$hardcode_libdir_flag_spec\"
4980 libdir="$acl_save_libdir"
4981 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4982 else
4983 for found_dir in $rpathdirs; do
4984 acl_save_libdir="$libdir"
4985 libdir="$found_dir"
4986 eval flag=\"$hardcode_libdir_flag_spec\"
4987 libdir="$acl_save_libdir"
4988 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4989 done
4990 fi
4991 fi
4992 if test "X$ltrpathdirs" != "X"; then
4993 for found_dir in $ltrpathdirs; do
4994 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
4995 done
4996 fi
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5016echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5017 # Check whether --enable-nls or --disable-nls was given.
5018if test "${enable_nls+set}" = set; then
5019 enableval="$enable_nls"
5020 USE_NLS=$enableval
5021else
5022 USE_NLS=yes
5023fi;
5024 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5025echo "${ECHO_T}$USE_NLS" >&6
5026
5027
5028
5029
5030 LIBINTL=
5031 LTLIBINTL=
5032 POSUB=
5033
5034 if test "$USE_NLS" = "yes"; then
5035 gt_use_preinstalled_gnugettext=no
5036
5037
5038
5039
5040
5041
5042 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5043echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5044if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5046else
5047 cat >conftest.$ac_ext <<_ACEOF
5048/* confdefs.h. */
5049_ACEOF
5050cat confdefs.h >>conftest.$ac_ext
5051cat >>conftest.$ac_ext <<_ACEOF
5052/* end confdefs.h. */
5053#include <libintl.h>
5054extern int _nl_msg_cat_cntr;
5055extern int *_nl_domain_bindings;
5056int
5057main ()
5058{
5059bindtextdomain ("", "");
5060return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5061 ;
5062 return 0;
5063}
5064_ACEOF
5065rm -f conftest.$ac_objext conftest$ac_exeext
5066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5067 (eval $ac_link) 2>conftest.er1
5068 ac_status=$?
5069 grep -v '^ *+' conftest.er1 >conftest.err
5070 rm -f conftest.er1
5071 cat conftest.err >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } &&
5074 { ac_try='test -z "$ac_c_werror_flag"
5075 || test ! -s conftest.err'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 (eval $ac_try) 2>&5
5078 ac_status=$?
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; } &&
5081 { ac_try='test -s conftest$ac_exeext'
5082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083 (eval $ac_try) 2>&5
5084 ac_status=$?
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); }; }; then
5087 gt_cv_func_gnugettext1_libc=yes
5088else
5089 echo "$as_me: failed program was:" >&5
5090sed 's/^/| /' conftest.$ac_ext >&5
5091
5092gt_cv_func_gnugettext1_libc=no
5093fi
5094rm -f conftest.err conftest.$ac_objext \
5095 conftest$ac_exeext conftest.$ac_ext
5096fi
5097echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
5098echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5099
5100 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5101
5102
5103
5104
5105
5106 am_save_CPPFLAGS="$CPPFLAGS"
5107
5108 for element in $INCICONV; do
5109 haveit=
5110 for x in $CPPFLAGS; do
5111
5112 acl_save_prefix="$prefix"
5113 prefix="$acl_final_prefix"
5114 acl_save_exec_prefix="$exec_prefix"
5115 exec_prefix="$acl_final_exec_prefix"
5116 eval x=\"$x\"
5117 exec_prefix="$acl_save_exec_prefix"
5118 prefix="$acl_save_prefix"
5119
5120 if test "X$x" = "X$element"; then
5121 haveit=yes
5122 break
5123 fi
5124 done
5125 if test -z "$haveit"; then
5126 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5127 fi
5128 done
5129
5130
5131 echo "$as_me:$LINENO: checking for iconv" >&5
5132echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5133if test "${am_cv_func_iconv+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5135else
5136
5137 am_cv_func_iconv="no, consider installing GNU libiconv"
5138 am_cv_lib_iconv=no
5139 cat >conftest.$ac_ext <<_ACEOF
5140/* confdefs.h. */
5141_ACEOF
5142cat confdefs.h >>conftest.$ac_ext
5143cat >>conftest.$ac_ext <<_ACEOF
5144/* end confdefs.h. */
5145#include <stdlib.h>
5146#include <iconv.h>
5147int
5148main ()
5149{
5150iconv_t cd = iconv_open("","");
5151 iconv(cd,NULL,NULL,NULL,NULL);
5152 iconv_close(cd);
5153 ;
5154 return 0;
5155}
5156_ACEOF
5157rm -f conftest.$ac_objext conftest$ac_exeext
5158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5159 (eval $ac_link) 2>conftest.er1
5160 ac_status=$?
5161 grep -v '^ *+' conftest.er1 >conftest.err
5162 rm -f conftest.er1
5163 cat conftest.err >&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); } &&
5166 { ac_try='test -z "$ac_c_werror_flag"
5167 || test ! -s conftest.err'
5168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169 (eval $ac_try) 2>&5
5170 ac_status=$?
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); }; } &&
5173 { ac_try='test -s conftest$ac_exeext'
5174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175 (eval $ac_try) 2>&5
5176 ac_status=$?
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); }; }; then
5179 am_cv_func_iconv=yes
5180else
5181 echo "$as_me: failed program was:" >&5
5182sed 's/^/| /' conftest.$ac_ext >&5
5183
5184fi
5185rm -f conftest.err conftest.$ac_objext \
5186 conftest$ac_exeext conftest.$ac_ext
5187 if test "$am_cv_func_iconv" != yes; then
5188 am_save_LIBS="$LIBS"
5189 LIBS="$LIBS $LIBICONV"
5190 cat >conftest.$ac_ext <<_ACEOF
5191/* confdefs.h. */
5192_ACEOF
5193cat confdefs.h >>conftest.$ac_ext
5194cat >>conftest.$ac_ext <<_ACEOF
5195/* end confdefs.h. */
5196#include <stdlib.h>
5197#include <iconv.h>
5198int
5199main ()
5200{
5201iconv_t cd = iconv_open("","");
5202 iconv(cd,NULL,NULL,NULL,NULL);
5203 iconv_close(cd);
5204 ;
5205 return 0;
5206}
5207_ACEOF
5208rm -f conftest.$ac_objext conftest$ac_exeext
5209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5210 (eval $ac_link) 2>conftest.er1
5211 ac_status=$?
5212 grep -v '^ *+' conftest.er1 >conftest.err
5213 rm -f conftest.er1
5214 cat conftest.err >&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); } &&
5217 { ac_try='test -z "$ac_c_werror_flag"
5218 || test ! -s conftest.err'
5219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5220 (eval $ac_try) 2>&5
5221 ac_status=$?
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); }; } &&
5224 { ac_try='test -s conftest$ac_exeext'
5225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5226 (eval $ac_try) 2>&5
5227 ac_status=$?
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); }; }; then
5230 am_cv_lib_iconv=yes
5231 am_cv_func_iconv=yes
5232else
5233 echo "$as_me: failed program was:" >&5
5234sed 's/^/| /' conftest.$ac_ext >&5
5235
5236fi
5237rm -f conftest.err conftest.$ac_objext \
5238 conftest$ac_exeext conftest.$ac_ext
5239 LIBS="$am_save_LIBS"
5240 fi
5241
5242fi
5243echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
5244echo "${ECHO_T}$am_cv_func_iconv" >&6
5245 if test "$am_cv_func_iconv" = yes; then
5246
5247cat >>confdefs.h <<\_ACEOF
5248#define HAVE_ICONV 1
5249_ACEOF
5250
5251 fi
5252 if test "$am_cv_lib_iconv" = yes; then
5253 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
5254echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
5255 echo "$as_me:$LINENO: result: $LIBICONV" >&5
5256echo "${ECHO_T}$LIBICONV" >&6
5257 else
5258 CPPFLAGS="$am_save_CPPFLAGS"
5259 LIBICONV=
5260 LTLIBICONV=
5261 fi
5262
5263
5264
5265
5266
5267
5268 use_additional=yes
5269
5270 acl_save_prefix="$prefix"
5271 prefix="$acl_final_prefix"
5272 acl_save_exec_prefix="$exec_prefix"
5273 exec_prefix="$acl_final_exec_prefix"
5274
5275 eval additional_includedir=\"$includedir\"
5276 eval additional_libdir=\"$libdir\"
5277
5278 exec_prefix="$acl_save_exec_prefix"
5279 prefix="$acl_save_prefix"
5280
5281
5282# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
5283if test "${with_libintl_prefix+set}" = set; then
5284 withval="$with_libintl_prefix"
5285
5286 if test "X$withval" = "Xno"; then
5287 use_additional=no
5288 else
5289 if test "X$withval" = "X"; then
5290
5291 acl_save_prefix="$prefix"
5292 prefix="$acl_final_prefix"
5293 acl_save_exec_prefix="$exec_prefix"
5294 exec_prefix="$acl_final_exec_prefix"
5295
5296 eval additional_includedir=\"$includedir\"
5297 eval additional_libdir=\"$libdir\"
5298
5299 exec_prefix="$acl_save_exec_prefix"
5300 prefix="$acl_save_prefix"
5301
5302 else
5303 additional_includedir="$withval/include"
5304 additional_libdir="$withval/lib"
5305 fi
5306 fi
5307
5308fi;
5309 LIBINTL=
5310 LTLIBINTL=
5311 INCINTL=
5312 rpathdirs=
5313 ltrpathdirs=
5314 names_already_handled=
5315 names_next_round='intl '
5316 while test -n "$names_next_round"; do
5317 names_this_round="$names_next_round"
5318 names_next_round=
5319 for name in $names_this_round; do
5320 already_handled=
5321 for n in $names_already_handled; do
5322 if test "$n" = "$name"; then
5323 already_handled=yes
5324 break
5325 fi
5326 done
5327 if test -z "$already_handled"; then
5328 names_already_handled="$names_already_handled $name"
5329 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5330 eval value=\"\$HAVE_LIB$uppername\"
5331 if test -n "$value"; then
5332 if test "$value" = yes; then
5333 eval value=\"\$LIB$uppername\"
5334 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5335 eval value=\"\$LTLIB$uppername\"
5336 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5337 else
5338 :
5339 fi
5340 else
5341 found_dir=
5342 found_la=
5343 found_so=
5344 found_a=
5345 if test $use_additional = yes; then
5346 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5347 found_dir="$additional_libdir"
5348 found_so="$additional_libdir/lib$name.$shlibext"
5349 if test -f "$additional_libdir/lib$name.la"; then
5350 found_la="$additional_libdir/lib$name.la"
5351 fi
5352 else
5353 if test -f "$additional_libdir/lib$name.$libext"; then
5354 found_dir="$additional_libdir"
5355 found_a="$additional_libdir/lib$name.$libext"
5356 if test -f "$additional_libdir/lib$name.la"; then
5357 found_la="$additional_libdir/lib$name.la"
5358 fi
5359 fi
5360 fi
5361 fi
5362 if test "X$found_dir" = "X"; then
5363 for x in $LDFLAGS $LTLIBINTL; do
5364
5365 acl_save_prefix="$prefix"
5366 prefix="$acl_final_prefix"
5367 acl_save_exec_prefix="$exec_prefix"
5368 exec_prefix="$acl_final_exec_prefix"
5369 eval x=\"$x\"
5370 exec_prefix="$acl_save_exec_prefix"
5371 prefix="$acl_save_prefix"
5372
5373 case "$x" in
5374 -L*)
5375 dir=`echo "X$x" | sed -e 's/^X-L//'`
5376 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5377 found_dir="$dir"
5378 found_so="$dir/lib$name.$shlibext"
5379 if test -f "$dir/lib$name.la"; then
5380 found_la="$dir/lib$name.la"
5381 fi
5382 else
5383 if test -f "$dir/lib$name.$libext"; then
5384 found_dir="$dir"
5385 found_a="$dir/lib$name.$libext"
5386 if test -f "$dir/lib$name.la"; then
5387 found_la="$dir/lib$name.la"
5388 fi
5389 fi
5390 fi
5391 ;;
5392 esac
5393 if test "X$found_dir" != "X"; then
5394 break
5395 fi
5396 done
5397 fi
5398 if test "X$found_dir" != "X"; then
5399 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5400 if test "X$found_so" != "X"; then
5401 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5402 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5403 else
5404 haveit=
5405 for x in $ltrpathdirs; do
5406 if test "X$x" = "X$found_dir"; then
5407 haveit=yes
5408 break
5409 fi
5410 done
5411 if test -z "$haveit"; then
5412 ltrpathdirs="$ltrpathdirs $found_dir"
5413 fi
5414 if test "$hardcode_direct" = yes; then
5415 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5416 else
5417 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5418 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5419 haveit=
5420 for x in $rpathdirs; do
5421 if test "X$x" = "X$found_dir"; then
5422 haveit=yes
5423 break
5424 fi
5425 done
5426 if test -z "$haveit"; then
5427 rpathdirs="$rpathdirs $found_dir"
5428 fi
5429 else
5430 haveit=
5431 for x in $LDFLAGS $LIBINTL; do
5432
5433 acl_save_prefix="$prefix"
5434 prefix="$acl_final_prefix"
5435 acl_save_exec_prefix="$exec_prefix"
5436 exec_prefix="$acl_final_exec_prefix"
5437 eval x=\"$x\"
5438 exec_prefix="$acl_save_exec_prefix"
5439 prefix="$acl_save_prefix"
5440
5441 if test "X$x" = "X-L$found_dir"; then
5442 haveit=yes
5443 break
5444 fi
5445 done
5446 if test -z "$haveit"; then
5447 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5448 fi
5449 if test "$hardcode_minus_L" != no; then
5450 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5451 else
5452 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5453 fi
5454 fi
5455 fi
5456 fi
5457 else
5458 if test "X$found_a" != "X"; then
5459 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5460 else
5461 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5462 fi
5463 fi
5464 additional_includedir=
5465 case "$found_dir" in
5466 */lib | */lib/)
5467 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5468 additional_includedir="$basedir/include"
5469 ;;
5470 esac
5471 if test "X$additional_includedir" != "X"; then
5472 if test "X$additional_includedir" != "X/usr/include"; then
5473 haveit=
5474 if test "X$additional_includedir" = "X/usr/local/include"; then
5475 if test -n "$GCC"; then
5476 case $host_os in
5477 linux*) haveit=yes;;
5478 esac
5479 fi
5480 fi
5481 if test -z "$haveit"; then
5482 for x in $CPPFLAGS $INCINTL; do
5483
5484 acl_save_prefix="$prefix"
5485 prefix="$acl_final_prefix"
5486 acl_save_exec_prefix="$exec_prefix"
5487 exec_prefix="$acl_final_exec_prefix"
5488 eval x=\"$x\"
5489 exec_prefix="$acl_save_exec_prefix"
5490 prefix="$acl_save_prefix"
5491
5492 if test "X$x" = "X-I$additional_includedir"; then
5493 haveit=yes
5494 break
5495 fi
5496 done
5497 if test -z "$haveit"; then
5498 if test -d "$additional_includedir"; then
5499 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5500 fi
5501 fi
5502 fi
5503 fi
5504 fi
5505 if test -n "$found_la"; then
5506 save_libdir="$libdir"
5507 case "$found_la" in
5508 */* | *\\*) . "$found_la" ;;
5509 *) . "./$found_la" ;;
5510 esac
5511 libdir="$save_libdir"
5512 for dep in $dependency_libs; do
5513 case "$dep" in
5514 -L*)
5515 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5516 if test "X$additional_libdir" != "X/usr/lib"; then
5517 haveit=
5518 if test "X$additional_libdir" = "X/usr/local/lib"; then
5519 if test -n "$GCC"; then
5520 case $host_os in
5521 linux*) haveit=yes;;
5522 esac
5523 fi
5524 fi
5525 if test -z "$haveit"; then
5526 haveit=
5527 for x in $LDFLAGS $LIBINTL; do
5528
5529 acl_save_prefix="$prefix"
5530 prefix="$acl_final_prefix"
5531 acl_save_exec_prefix="$exec_prefix"
5532 exec_prefix="$acl_final_exec_prefix"
5533 eval x=\"$x\"
5534 exec_prefix="$acl_save_exec_prefix"
5535 prefix="$acl_save_prefix"
5536
5537 if test "X$x" = "X-L$additional_libdir"; then
5538 haveit=yes
5539 break
5540 fi
5541 done
5542 if test -z "$haveit"; then
5543 if test -d "$additional_libdir"; then
5544 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5545 fi
5546 fi
5547 haveit=
5548 for x in $LDFLAGS $LTLIBINTL; do
5549
5550 acl_save_prefix="$prefix"
5551 prefix="$acl_final_prefix"
5552 acl_save_exec_prefix="$exec_prefix"
5553 exec_prefix="$acl_final_exec_prefix"
5554 eval x=\"$x\"
5555 exec_prefix="$acl_save_exec_prefix"
5556 prefix="$acl_save_prefix"
5557
5558 if test "X$x" = "X-L$additional_libdir"; then
5559 haveit=yes
5560 break
5561 fi
5562 done
5563 if test -z "$haveit"; then
5564 if test -d "$additional_libdir"; then
5565 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5566 fi
5567 fi
5568 fi
5569 fi
5570 ;;
5571 -R*)
5572 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5573 if test "$enable_rpath" != no; then
5574 haveit=
5575 for x in $rpathdirs; do
5576 if test "X$x" = "X$dir"; then
5577 haveit=yes
5578 break
5579 fi
5580 done
5581 if test -z "$haveit"; then
5582 rpathdirs="$rpathdirs $dir"
5583 fi
5584 haveit=
5585 for x in $ltrpathdirs; do
5586 if test "X$x" = "X$dir"; then
5587 haveit=yes
5588 break
5589 fi
5590 done
5591 if test -z "$haveit"; then
5592 ltrpathdirs="$ltrpathdirs $dir"
5593 fi
5594 fi
5595 ;;
5596 -l*)
5597 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5598 ;;
5599 *.la)
5600 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5601 ;;
5602 *)
5603 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5604 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5605 ;;
5606 esac
5607 done
5608 fi
5609 else
5610 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5611 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5612 fi
5613 fi
5614 fi
5615 done
5616 done
5617 if test "X$rpathdirs" != "X"; then
5618 if test -n "$hardcode_libdir_separator"; then
5619 alldirs=
5620 for found_dir in $rpathdirs; do
5621 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5622 done
5623 acl_save_libdir="$libdir"
5624 libdir="$alldirs"
5625 eval flag=\"$hardcode_libdir_flag_spec\"
5626 libdir="$acl_save_libdir"
5627 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5628 else
5629 for found_dir in $rpathdirs; do
5630 acl_save_libdir="$libdir"
5631 libdir="$found_dir"
5632 eval flag=\"$hardcode_libdir_flag_spec\"
5633 libdir="$acl_save_libdir"
5634 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5635 done
5636 fi
5637 fi
5638 if test "X$ltrpathdirs" != "X"; then
5639 for found_dir in $ltrpathdirs; do
5640 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
5641 done
5642 fi
5643
5644 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
5645echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
5646if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5648else
5649 gt_save_CPPFLAGS="$CPPFLAGS"
5650 CPPFLAGS="$CPPFLAGS $INCINTL"
5651 gt_save_LIBS="$LIBS"
5652 LIBS="$LIBS $LIBINTL"
5653 cat >conftest.$ac_ext <<_ACEOF
5654/* confdefs.h. */
5655_ACEOF
5656cat confdefs.h >>conftest.$ac_ext
5657cat >>conftest.$ac_ext <<_ACEOF
5658/* end confdefs.h. */
5659#include <libintl.h>
5660extern int _nl_msg_cat_cntr;
5661extern
5662#ifdef __cplusplus
5663"C"
5664#endif
5665const char *_nl_expand_alias ();
5666int
5667main ()
5668{
5669bindtextdomain ("", "");
5670return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5671 ;
5672 return 0;
5673}
5674_ACEOF
5675rm -f conftest.$ac_objext conftest$ac_exeext
5676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5677 (eval $ac_link) 2>conftest.er1
5678 ac_status=$?
5679 grep -v '^ *+' conftest.er1 >conftest.err
5680 rm -f conftest.er1
5681 cat conftest.err >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); } &&
5684 { ac_try='test -z "$ac_c_werror_flag"
5685 || test ! -s conftest.err'
5686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687 (eval $ac_try) 2>&5
5688 ac_status=$?
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); }; } &&
5691 { ac_try='test -s conftest$ac_exeext'
5692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693 (eval $ac_try) 2>&5
5694 ac_status=$?
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; }; then
5697 gt_cv_func_gnugettext1_libintl=yes
5698else
5699 echo "$as_me: failed program was:" >&5
5700sed 's/^/| /' conftest.$ac_ext >&5
5701
5702gt_cv_func_gnugettext1_libintl=no
5703fi
5704rm -f conftest.err conftest.$ac_objext \
5705 conftest$ac_exeext conftest.$ac_ext
5706 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
5707 LIBS="$LIBS $LIBICONV"
5708 cat >conftest.$ac_ext <<_ACEOF
5709/* confdefs.h. */
5710_ACEOF
5711cat confdefs.h >>conftest.$ac_ext
5712cat >>conftest.$ac_ext <<_ACEOF
5713/* end confdefs.h. */
5714#include <libintl.h>
5715extern int _nl_msg_cat_cntr;
5716extern
5717#ifdef __cplusplus
5718"C"
5719#endif
5720const char *_nl_expand_alias ();
5721int
5722main ()
5723{
5724bindtextdomain ("", "");
5725return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5726 ;
5727 return 0;
5728}
5729_ACEOF
5730rm -f conftest.$ac_objext conftest$ac_exeext
5731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5732 (eval $ac_link) 2>conftest.er1
5733 ac_status=$?
5734 grep -v '^ *+' conftest.er1 >conftest.err
5735 rm -f conftest.er1
5736 cat conftest.err >&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } &&
5739 { ac_try='test -z "$ac_c_werror_flag"
5740 || test ! -s conftest.err'
5741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742 (eval $ac_try) 2>&5
5743 ac_status=$?
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; } &&
5746 { ac_try='test -s conftest$ac_exeext'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748 (eval $ac_try) 2>&5
5749 ac_status=$?
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; }; then
5752 LIBINTL="$LIBINTL $LIBICONV"
5753 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
5754 gt_cv_func_gnugettext1_libintl=yes
5755
5756else
5757 echo "$as_me: failed program was:" >&5
5758sed 's/^/| /' conftest.$ac_ext >&5
5759
5760fi
5761rm -f conftest.err conftest.$ac_objext \
5762 conftest$ac_exeext conftest.$ac_ext
5763 fi
5764 CPPFLAGS="$gt_save_CPPFLAGS"
5765 LIBS="$gt_save_LIBS"
5766fi
5767echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
5768echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
5769 fi
5770
5771 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
5772 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
5773 && test "$PACKAGE" != gettext-runtime \
5774 && test "$PACKAGE" != gettext-tools; }; then
5775 gt_use_preinstalled_gnugettext=yes
5776 else
5777 LIBINTL=
5778 LTLIBINTL=
5779 INCINTL=
5780 fi
5781
5782
5783
5784 if test "$gt_use_preinstalled_gnugettext" = "yes" \
5785 || test "$nls_cv_use_gnu_gettext" = "yes"; then
5786
5787cat >>confdefs.h <<\_ACEOF
5788#define ENABLE_NLS 1
5789_ACEOF
5790
5791 else
5792 USE_NLS=no
5793 fi
5794 fi
5795
5796 echo "$as_me:$LINENO: checking whether to use NLS" >&5
5797echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
5798 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5799echo "${ECHO_T}$USE_NLS" >&6
5800 if test "$USE_NLS" = "yes"; then
5801 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
5802echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
5803 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5804 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5805 gt_source="external libintl"
5806 else
5807 gt_source="libc"
5808 fi
5809 else
5810 gt_source="included intl directory"
5811 fi
5812 echo "$as_me:$LINENO: result: $gt_source" >&5
5813echo "${ECHO_T}$gt_source" >&6
5814 fi
5815
5816 if test "$USE_NLS" = "yes"; then
5817
5818 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5819 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5820 echo "$as_me:$LINENO: checking how to link with libintl" >&5
5821echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
5822 echo "$as_me:$LINENO: result: $LIBINTL" >&5
5823echo "${ECHO_T}$LIBINTL" >&6
5824
5825 for element in $INCINTL; do
5826 haveit=
5827 for x in $CPPFLAGS; do
5828
5829 acl_save_prefix="$prefix"
5830 prefix="$acl_final_prefix"
5831 acl_save_exec_prefix="$exec_prefix"
5832 exec_prefix="$acl_final_exec_prefix"
5833 eval x=\"$x\"
5834 exec_prefix="$acl_save_exec_prefix"
5835 prefix="$acl_save_prefix"
5836
5837 if test "X$x" = "X$element"; then
5838 haveit=yes
5839 break
5840 fi
5841 done
5842 if test -z "$haveit"; then
5843 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5844 fi
5845 done
5846
5847 fi
5848
5849
5850cat >>confdefs.h <<\_ACEOF
5851#define HAVE_GETTEXT 1
5852_ACEOF
5853
5854
5855cat >>confdefs.h <<\_ACEOF
5856#define HAVE_DCGETTEXT 1
5857_ACEOF
5858
5859 fi
5860
5861 POSUB=po
5862 fi
5863
5864
5865
5866 INTLLIBS="$LIBINTL"
5867
5868
5869
5870
5871
5872
5873
5874# This test must come as early as possible after the compiler configuration
5875# tests, because the choice of the file model can (in principle) affect
5876# whether functions and headers are available, whether they work, etc.
5877# Check whether --enable-largefile or --disable-largefile was given.
5878if test "${enable_largefile+set}" = set; then
5879 enableval="$enable_largefile"
5880
5881fi;
5882if test "$enable_largefile" != no; then
5883
5884 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5885echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
5886if test "${ac_cv_sys_largefile_CC+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5888else
5889 ac_cv_sys_largefile_CC=no
5890 if test "$GCC" != yes; then
5891 ac_save_CC=$CC
5892 while :; do
5893 # IRIX 6.2 and later do not support large files by default,
5894 # so use the C compiler's -n32 option if that helps.
5895 cat >conftest.$ac_ext <<_ACEOF
5896/* confdefs.h. */
5897_ACEOF
5898cat confdefs.h >>conftest.$ac_ext
5899cat >>conftest.$ac_ext <<_ACEOF
5900/* end confdefs.h. */
5901#include <sys/types.h>
5902 /* Check that off_t can represent 2**63 - 1 correctly.
5903 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5904 since some C++ compilers masquerading as C compilers
5905 incorrectly reject 9223372036854775807. */
5906#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5907 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5908 && LARGE_OFF_T % 2147483647 == 1)
5909 ? 1 : -1];
5910int
5911main ()
5912{
5913
5914 ;
5915 return 0;
5916}
5917_ACEOF
5918 rm -f conftest.$ac_objext
5919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5920 (eval $ac_compile) 2>conftest.er1
5921 ac_status=$?
5922 grep -v '^ *+' conftest.er1 >conftest.err
5923 rm -f conftest.er1
5924 cat conftest.err >&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } &&
5927 { ac_try='test -z "$ac_c_werror_flag"
5928 || test ! -s conftest.err'
5929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930 (eval $ac_try) 2>&5
5931 ac_status=$?
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); }; } &&
5934 { ac_try='test -s conftest.$ac_objext'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936 (eval $ac_try) 2>&5
5937 ac_status=$?
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; }; then
5940 break
5941else
5942 echo "$as_me: failed program was:" >&5
5943sed 's/^/| /' conftest.$ac_ext >&5
5944
5945fi
5946rm -f conftest.err conftest.$ac_objext
5947 CC="$CC -n32"
5948 rm -f conftest.$ac_objext
5949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5950 (eval $ac_compile) 2>conftest.er1
5951 ac_status=$?
5952 grep -v '^ *+' conftest.er1 >conftest.err
5953 rm -f conftest.er1
5954 cat conftest.err >&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } &&
5957 { ac_try='test -z "$ac_c_werror_flag"
5958 || test ! -s conftest.err'
5959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960 (eval $ac_try) 2>&5
5961 ac_status=$?
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); }; } &&
5964 { ac_try='test -s conftest.$ac_objext'
5965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966 (eval $ac_try) 2>&5
5967 ac_status=$?
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); }; }; then
5970 ac_cv_sys_largefile_CC=' -n32'; break
5971else
5972 echo "$as_me: failed program was:" >&5
5973sed 's/^/| /' conftest.$ac_ext >&5
5974
5975fi
5976rm -f conftest.err conftest.$ac_objext
5977 break
5978 done
5979 CC=$ac_save_CC
5980 rm -f conftest.$ac_ext
5981 fi
5982fi
5983echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5984echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
5985 if test "$ac_cv_sys_largefile_CC" != no; then
5986 CC=$CC$ac_cv_sys_largefile_CC
5987 fi
5988
5989 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5990echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
5991if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5992 echo $ECHO_N "(cached) $ECHO_C" >&6
5993else
5994 while :; do
5995 ac_cv_sys_file_offset_bits=no
5996 cat >conftest.$ac_ext <<_ACEOF
5997/* confdefs.h. */
5998_ACEOF
5999cat confdefs.h >>conftest.$ac_ext
6000cat >>conftest.$ac_ext <<_ACEOF
6001/* end confdefs.h. */
6002#include <sys/types.h>
6003 /* Check that off_t can represent 2**63 - 1 correctly.
6004 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6005 since some C++ compilers masquerading as C compilers
6006 incorrectly reject 9223372036854775807. */
6007#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6008 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6009 && LARGE_OFF_T % 2147483647 == 1)
6010 ? 1 : -1];
6011int
6012main ()
6013{
6014
6015 ;
6016 return 0;
6017}
6018_ACEOF
6019rm -f conftest.$ac_objext
6020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6021 (eval $ac_compile) 2>conftest.er1
6022 ac_status=$?
6023 grep -v '^ *+' conftest.er1 >conftest.err
6024 rm -f conftest.er1
6025 cat conftest.err >&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); } &&
6028 { ac_try='test -z "$ac_c_werror_flag"
6029 || test ! -s conftest.err'
6030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031 (eval $ac_try) 2>&5
6032 ac_status=$?
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; } &&
6035 { ac_try='test -s conftest.$ac_objext'
6036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6037 (eval $ac_try) 2>&5
6038 ac_status=$?
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); }; }; then
6041 break
6042else
6043 echo "$as_me: failed program was:" >&5
6044sed 's/^/| /' conftest.$ac_ext >&5
6045
6046fi
6047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6048 cat >conftest.$ac_ext <<_ACEOF
6049/* confdefs.h. */
6050_ACEOF
6051cat confdefs.h >>conftest.$ac_ext
6052cat >>conftest.$ac_ext <<_ACEOF
6053/* end confdefs.h. */
6054#define _FILE_OFFSET_BITS 64
6055#include <sys/types.h>
6056 /* Check that off_t can represent 2**63 - 1 correctly.
6057 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6058 since some C++ compilers masquerading as C compilers
6059 incorrectly reject 9223372036854775807. */
6060#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6061 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6062 && LARGE_OFF_T % 2147483647 == 1)
6063 ? 1 : -1];
6064int
6065main ()
6066{
6067
6068 ;
6069 return 0;
6070}
6071_ACEOF
6072rm -f conftest.$ac_objext
6073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6074 (eval $ac_compile) 2>conftest.er1
6075 ac_status=$?
6076 grep -v '^ *+' conftest.er1 >conftest.err
6077 rm -f conftest.er1
6078 cat conftest.err >&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); } &&
6081 { ac_try='test -z "$ac_c_werror_flag"
6082 || test ! -s conftest.err'
6083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084 (eval $ac_try) 2>&5
6085 ac_status=$?
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); }; } &&
6088 { ac_try='test -s conftest.$ac_objext'
6089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090 (eval $ac_try) 2>&5
6091 ac_status=$?
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; }; then
6094 ac_cv_sys_file_offset_bits=64; break
6095else
6096 echo "$as_me: failed program was:" >&5
6097sed 's/^/| /' conftest.$ac_ext >&5
6098
6099fi
6100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6101 break
6102done
6103fi
6104echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6105echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
6106if test "$ac_cv_sys_file_offset_bits" != no; then
6107
6108cat >>confdefs.h <<_ACEOF
6109#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6110_ACEOF
6111
6112fi
6113rm -f conftest*
6114 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6115echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
6116if test "${ac_cv_sys_large_files+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6118else
6119 while :; do
6120 ac_cv_sys_large_files=no
6121 cat >conftest.$ac_ext <<_ACEOF
6122/* confdefs.h. */
6123_ACEOF
6124cat confdefs.h >>conftest.$ac_ext
6125cat >>conftest.$ac_ext <<_ACEOF
6126/* end confdefs.h. */
6127#include <sys/types.h>
6128 /* Check that off_t can represent 2**63 - 1 correctly.
6129 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6130 since some C++ compilers masquerading as C compilers
6131 incorrectly reject 9223372036854775807. */
6132#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6133 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6134 && LARGE_OFF_T % 2147483647 == 1)
6135 ? 1 : -1];
6136int
6137main ()
6138{
6139
6140 ;
6141 return 0;
6142}
6143_ACEOF
6144rm -f conftest.$ac_objext
6145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6146 (eval $ac_compile) 2>conftest.er1
6147 ac_status=$?
6148 grep -v '^ *+' conftest.er1 >conftest.err
6149 rm -f conftest.er1
6150 cat conftest.err >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); } &&
6153 { ac_try='test -z "$ac_c_werror_flag"
6154 || test ! -s conftest.err'
6155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156 (eval $ac_try) 2>&5
6157 ac_status=$?
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; } &&
6160 { ac_try='test -s conftest.$ac_objext'
6161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162 (eval $ac_try) 2>&5
6163 ac_status=$?
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); }; }; then
6166 break
6167else
6168 echo "$as_me: failed program was:" >&5
6169sed 's/^/| /' conftest.$ac_ext >&5
6170
6171fi
6172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6173 cat >conftest.$ac_ext <<_ACEOF
6174/* confdefs.h. */
6175_ACEOF
6176cat confdefs.h >>conftest.$ac_ext
6177cat >>conftest.$ac_ext <<_ACEOF
6178/* end confdefs.h. */
6179#define _LARGE_FILES 1
6180#include <sys/types.h>
6181 /* Check that off_t can represent 2**63 - 1 correctly.
6182 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6183 since some C++ compilers masquerading as C compilers
6184 incorrectly reject 9223372036854775807. */
6185#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6186 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6187 && LARGE_OFF_T % 2147483647 == 1)
6188 ? 1 : -1];
6189int
6190main ()
6191{
6192
6193 ;
6194 return 0;
6195}
6196_ACEOF
6197rm -f conftest.$ac_objext
6198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6199 (eval $ac_compile) 2>conftest.er1
6200 ac_status=$?
6201 grep -v '^ *+' conftest.er1 >conftest.err
6202 rm -f conftest.er1
6203 cat conftest.err >&5
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); } &&
6206 { ac_try='test -z "$ac_c_werror_flag"
6207 || test ! -s conftest.err'
6208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209 (eval $ac_try) 2>&5
6210 ac_status=$?
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); }; } &&
6213 { ac_try='test -s conftest.$ac_objext'
6214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215 (eval $ac_try) 2>&5
6216 ac_status=$?
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); }; }; then
6219 ac_cv_sys_large_files=1; break
6220else
6221 echo "$as_me: failed program was:" >&5
6222sed 's/^/| /' conftest.$ac_ext >&5
6223
6224fi
6225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6226 break
6227done
6228fi
6229echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6230echo "${ECHO_T}$ac_cv_sys_large_files" >&6
6231if test "$ac_cv_sys_large_files" != no; then
6232
6233cat >>confdefs.h <<_ACEOF
6234#define _LARGE_FILES $ac_cv_sys_large_files
6235_ACEOF
6236
6237fi
6238rm -f conftest*
6239fi
6240
6241
6242# Checks for libraries.
6243echo "$as_me:$LINENO: checking for library containing getpwnam" >&5
6244echo $ECHO_N "checking for library containing getpwnam... $ECHO_C" >&6
6245if test "${ac_cv_search_getpwnam+set}" = set; then
6246 echo $ECHO_N "(cached) $ECHO_C" >&6
6247else
6248 ac_func_search_save_LIBS=$LIBS
6249ac_cv_search_getpwnam=no
6250cat >conftest.$ac_ext <<_ACEOF
6251/* confdefs.h. */
6252_ACEOF
6253cat confdefs.h >>conftest.$ac_ext
6254cat >>conftest.$ac_ext <<_ACEOF
6255/* end confdefs.h. */
6256
6257/* Override any gcc2 internal prototype to avoid an error. */
6258#ifdef __cplusplus
6259extern "C"
6260#endif
6261/* We use char because int might match the return type of a gcc2
6262 builtin and then its argument prototype would still apply. */
6263char getpwnam ();
6264int
6265main ()
6266{
6267getpwnam ();
6268 ;
6269 return 0;
6270}
6271_ACEOF
6272rm -f conftest.$ac_objext conftest$ac_exeext
6273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6274 (eval $ac_link) 2>conftest.er1
6275 ac_status=$?
6276 grep -v '^ *+' conftest.er1 >conftest.err
6277 rm -f conftest.er1
6278 cat conftest.err >&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); } &&
6281 { ac_try='test -z "$ac_c_werror_flag"
6282 || test ! -s conftest.err'
6283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284 (eval $ac_try) 2>&5
6285 ac_status=$?
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }; } &&
6288 { ac_try='test -s conftest$ac_exeext'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290 (eval $ac_try) 2>&5
6291 ac_status=$?
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; }; then
6294 ac_cv_search_getpwnam="none required"
6295else
6296 echo "$as_me: failed program was:" >&5
6297sed 's/^/| /' conftest.$ac_ext >&5
6298
6299fi
6300rm -f conftest.err conftest.$ac_objext \
6301 conftest$ac_exeext conftest.$ac_ext
6302if test "$ac_cv_search_getpwnam" = no; then
6303 for ac_lib in sun; do
6304 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6305 cat >conftest.$ac_ext <<_ACEOF
6306/* confdefs.h. */
6307_ACEOF
6308cat confdefs.h >>conftest.$ac_ext
6309cat >>conftest.$ac_ext <<_ACEOF
6310/* end confdefs.h. */
6311
6312/* Override any gcc2 internal prototype to avoid an error. */
6313#ifdef __cplusplus
6314extern "C"
6315#endif
6316/* We use char because int might match the return type of a gcc2
6317 builtin and then its argument prototype would still apply. */
6318char getpwnam ();
6319int
6320main ()
6321{
6322getpwnam ();
6323 ;
6324 return 0;
6325}
6326_ACEOF
6327rm -f conftest.$ac_objext conftest$ac_exeext
6328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6329 (eval $ac_link) 2>conftest.er1
6330 ac_status=$?
6331 grep -v '^ *+' conftest.er1 >conftest.err
6332 rm -f conftest.er1
6333 cat conftest.err >&5
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); } &&
6336 { ac_try='test -z "$ac_c_werror_flag"
6337 || test ! -s conftest.err'
6338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6339 (eval $ac_try) 2>&5
6340 ac_status=$?
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); }; } &&
6343 { ac_try='test -s conftest$ac_exeext'
6344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6345 (eval $ac_try) 2>&5
6346 ac_status=$?
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }; }; then
6349 ac_cv_search_getpwnam="-l$ac_lib"
6350break
6351else
6352 echo "$as_me: failed program was:" >&5
6353sed 's/^/| /' conftest.$ac_ext >&5
6354
6355fi
6356rm -f conftest.err conftest.$ac_objext \
6357 conftest$ac_exeext conftest.$ac_ext
6358 done
6359fi
6360LIBS=$ac_func_search_save_LIBS
6361fi
6362echo "$as_me:$LINENO: result: $ac_cv_search_getpwnam" >&5
6363echo "${ECHO_T}$ac_cv_search_getpwnam" >&6
6364if test "$ac_cv_search_getpwnam" != no; then
6365 test "$ac_cv_search_getpwnam" = "none required" || LIBS="$ac_cv_search_getpwnam $LIBS"
6366
6367fi
6368
6369
6370# Checks for header files.
6371echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6372echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6373if test "${ac_cv_header_stdc+set}" = set; then
6374 echo $ECHO_N "(cached) $ECHO_C" >&6
6375else
6376 cat >conftest.$ac_ext <<_ACEOF
6377/* confdefs.h. */
6378_ACEOF
6379cat confdefs.h >>conftest.$ac_ext
6380cat >>conftest.$ac_ext <<_ACEOF
6381/* end confdefs.h. */
6382#include <stdlib.h>
6383#include <stdarg.h>
6384#include <string.h>
6385#include <float.h>
6386
6387int
6388main ()
6389{
6390
6391 ;
6392 return 0;
6393}
6394_ACEOF
6395rm -f conftest.$ac_objext
6396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6397 (eval $ac_compile) 2>conftest.er1
6398 ac_status=$?
6399 grep -v '^ *+' conftest.er1 >conftest.err
6400 rm -f conftest.er1
6401 cat conftest.err >&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); } &&
6404 { ac_try='test -z "$ac_c_werror_flag"
6405 || test ! -s conftest.err'
6406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407 (eval $ac_try) 2>&5
6408 ac_status=$?
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }; } &&
6411 { ac_try='test -s conftest.$ac_objext'
6412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413 (eval $ac_try) 2>&5
6414 ac_status=$?
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); }; }; then
6417 ac_cv_header_stdc=yes
6418else
6419 echo "$as_me: failed program was:" >&5
6420sed 's/^/| /' conftest.$ac_ext >&5
6421
6422ac_cv_header_stdc=no
6423fi
6424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6425
6426if test $ac_cv_header_stdc = yes; then
6427 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6428 cat >conftest.$ac_ext <<_ACEOF
6429/* confdefs.h. */
6430_ACEOF
6431cat confdefs.h >>conftest.$ac_ext
6432cat >>conftest.$ac_ext <<_ACEOF
6433/* end confdefs.h. */
6434#include <string.h>
6435
6436_ACEOF
6437if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6438 $EGREP "memchr" >/dev/null 2>&1; then
6439 :
6440else
6441 ac_cv_header_stdc=no
6442fi
6443rm -f conftest*
6444
6445fi
6446
6447if test $ac_cv_header_stdc = yes; then
6448 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6449 cat >conftest.$ac_ext <<_ACEOF
6450/* confdefs.h. */
6451_ACEOF
6452cat confdefs.h >>conftest.$ac_ext
6453cat >>conftest.$ac_ext <<_ACEOF
6454/* end confdefs.h. */
6455#include <stdlib.h>
6456
6457_ACEOF
6458if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6459 $EGREP "free" >/dev/null 2>&1; then
6460 :
6461else
6462 ac_cv_header_stdc=no
6463fi
6464rm -f conftest*
6465
6466fi
6467
6468if test $ac_cv_header_stdc = yes; then
6469 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6470 if test "$cross_compiling" = yes; then
6471 :
6472else
6473 cat >conftest.$ac_ext <<_ACEOF
6474/* confdefs.h. */
6475_ACEOF
6476cat confdefs.h >>conftest.$ac_ext
6477cat >>conftest.$ac_ext <<_ACEOF
6478/* end confdefs.h. */
6479#include <ctype.h>
6480#if ((' ' & 0x0FF) == 0x020)
6481# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6482# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6483#else
6484# define ISLOWER(c) \
6485 (('a' <= (c) && (c) <= 'i') \
6486 || ('j' <= (c) && (c) <= 'r') \
6487 || ('s' <= (c) && (c) <= 'z'))
6488# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6489#endif
6490
6491#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6492int
6493main ()
6494{
6495 int i;
6496 for (i = 0; i < 256; i++)
6497 if (XOR (islower (i), ISLOWER (i))
6498 || toupper (i) != TOUPPER (i))
6499 exit(2);
6500 exit (0);
6501}
6502_ACEOF
6503rm -f conftest$ac_exeext
6504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6505 (eval $ac_link) 2>&5
6506 ac_status=$?
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6510 (eval $ac_try) 2>&5
6511 ac_status=$?
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); }; }; then
6514 :
6515else
6516 echo "$as_me: program exited with status $ac_status" >&5
6517echo "$as_me: failed program was:" >&5
6518sed 's/^/| /' conftest.$ac_ext >&5
6519
6520( exit $ac_status )
6521ac_cv_header_stdc=no
6522fi
6523rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6524fi
6525fi
6526fi
6527echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6528echo "${ECHO_T}$ac_cv_header_stdc" >&6
6529if test $ac_cv_header_stdc = yes; then
6530
6531cat >>confdefs.h <<\_ACEOF
6532#define STDC_HEADERS 1
6533_ACEOF
6534
6535fi
6536
6537
6538
6539
6540
6541
6542ac_header_dirent=no
6543for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6544 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6545echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6546echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6547if eval "test \"\${$as_ac_Header+set}\" = set"; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6549else
6550 cat >conftest.$ac_ext <<_ACEOF
6551/* confdefs.h. */
6552_ACEOF
6553cat confdefs.h >>conftest.$ac_ext
6554cat >>conftest.$ac_ext <<_ACEOF
6555/* end confdefs.h. */
6556#include <sys/types.h>
6557#include <$ac_hdr>
6558
6559int
6560main ()
6561{
6562if ((DIR *) 0)
6563return 0;
6564 ;
6565 return 0;
6566}
6567_ACEOF
6568rm -f conftest.$ac_objext
6569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6570 (eval $ac_compile) 2>conftest.er1
6571 ac_status=$?
6572 grep -v '^ *+' conftest.er1 >conftest.err
6573 rm -f conftest.er1
6574 cat conftest.err >&5
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); } &&
6577 { ac_try='test -z "$ac_c_werror_flag"
6578 || test ! -s conftest.err'
6579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6580 (eval $ac_try) 2>&5
6581 ac_status=$?
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); }; } &&
6584 { ac_try='test -s conftest.$ac_objext'
6585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6586 (eval $ac_try) 2>&5
6587 ac_status=$?
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); }; }; then
6590 eval "$as_ac_Header=yes"
6591else
6592 echo "$as_me: failed program was:" >&5
6593sed 's/^/| /' conftest.$ac_ext >&5
6594
6595eval "$as_ac_Header=no"
6596fi
6597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6598fi
6599echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6600echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6601if test `eval echo '${'$as_ac_Header'}'` = yes; then
6602 cat >>confdefs.h <<_ACEOF
6603#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6604_ACEOF
6605
6606ac_header_dirent=$ac_hdr; break
6607fi
6608
6609done
6610# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6611if test $ac_header_dirent = dirent.h; then
6612 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6613echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6614if test "${ac_cv_search_opendir+set}" = set; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
6616else
6617 ac_func_search_save_LIBS=$LIBS
6618ac_cv_search_opendir=no
6619cat >conftest.$ac_ext <<_ACEOF
6620/* confdefs.h. */
6621_ACEOF
6622cat confdefs.h >>conftest.$ac_ext
6623cat >>conftest.$ac_ext <<_ACEOF
6624/* end confdefs.h. */
6625
6626/* Override any gcc2 internal prototype to avoid an error. */
6627#ifdef __cplusplus
6628extern "C"
6629#endif
6630/* We use char because int might match the return type of a gcc2
6631 builtin and then its argument prototype would still apply. */
6632char opendir ();
6633int
6634main ()
6635{
6636opendir ();
6637 ;
6638 return 0;
6639}
6640_ACEOF
6641rm -f conftest.$ac_objext conftest$ac_exeext
6642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6643 (eval $ac_link) 2>conftest.er1
6644 ac_status=$?
6645 grep -v '^ *+' conftest.er1 >conftest.err
6646 rm -f conftest.er1
6647 cat conftest.err >&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); } &&
6650 { ac_try='test -z "$ac_c_werror_flag"
6651 || test ! -s conftest.err'
6652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6653 (eval $ac_try) 2>&5
6654 ac_status=$?
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); }; } &&
6657 { ac_try='test -s conftest$ac_exeext'
6658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6659 (eval $ac_try) 2>&5
6660 ac_status=$?
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); }; }; then
6663 ac_cv_search_opendir="none required"
6664else
6665 echo "$as_me: failed program was:" >&5
6666sed 's/^/| /' conftest.$ac_ext >&5
6667
6668fi
6669rm -f conftest.err conftest.$ac_objext \
6670 conftest$ac_exeext conftest.$ac_ext
6671if test "$ac_cv_search_opendir" = no; then
6672 for ac_lib in dir; do
6673 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6674 cat >conftest.$ac_ext <<_ACEOF
6675/* confdefs.h. */
6676_ACEOF
6677cat confdefs.h >>conftest.$ac_ext
6678cat >>conftest.$ac_ext <<_ACEOF
6679/* end confdefs.h. */
6680
6681/* Override any gcc2 internal prototype to avoid an error. */
6682#ifdef __cplusplus
6683extern "C"
6684#endif
6685/* We use char because int might match the return type of a gcc2
6686 builtin and then its argument prototype would still apply. */
6687char opendir ();
6688int
6689main ()
6690{
6691opendir ();
6692 ;
6693 return 0;
6694}
6695_ACEOF
6696rm -f conftest.$ac_objext conftest$ac_exeext
6697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6698 (eval $ac_link) 2>conftest.er1
6699 ac_status=$?
6700 grep -v '^ *+' conftest.er1 >conftest.err
6701 rm -f conftest.er1
6702 cat conftest.err >&5
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); } &&
6705 { ac_try='test -z "$ac_c_werror_flag"
6706 || test ! -s conftest.err'
6707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6708 (eval $ac_try) 2>&5
6709 ac_status=$?
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); }; } &&
6712 { ac_try='test -s conftest$ac_exeext'
6713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6714 (eval $ac_try) 2>&5
6715 ac_status=$?
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); }; }; then
6718 ac_cv_search_opendir="-l$ac_lib"
6719break
6720else
6721 echo "$as_me: failed program was:" >&5
6722sed 's/^/| /' conftest.$ac_ext >&5
6723
6724fi
6725rm -f conftest.err conftest.$ac_objext \
6726 conftest$ac_exeext conftest.$ac_ext
6727 done
6728fi
6729LIBS=$ac_func_search_save_LIBS
6730fi
6731echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6732echo "${ECHO_T}$ac_cv_search_opendir" >&6
6733if test "$ac_cv_search_opendir" != no; then
6734 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6735
6736fi
6737
6738else
6739 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6740echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6741if test "${ac_cv_search_opendir+set}" = set; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
6743else
6744 ac_func_search_save_LIBS=$LIBS
6745ac_cv_search_opendir=no
6746cat >conftest.$ac_ext <<_ACEOF
6747/* confdefs.h. */
6748_ACEOF
6749cat confdefs.h >>conftest.$ac_ext
6750cat >>conftest.$ac_ext <<_ACEOF
6751/* end confdefs.h. */
6752
6753/* Override any gcc2 internal prototype to avoid an error. */
6754#ifdef __cplusplus
6755extern "C"
6756#endif
6757/* We use char because int might match the return type of a gcc2
6758 builtin and then its argument prototype would still apply. */
6759char opendir ();
6760int
6761main ()
6762{
6763opendir ();
6764 ;
6765 return 0;
6766}
6767_ACEOF
6768rm -f conftest.$ac_objext conftest$ac_exeext
6769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6770 (eval $ac_link) 2>conftest.er1
6771 ac_status=$?
6772 grep -v '^ *+' conftest.er1 >conftest.err
6773 rm -f conftest.er1
6774 cat conftest.err >&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); } &&
6777 { ac_try='test -z "$ac_c_werror_flag"
6778 || test ! -s conftest.err'
6779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6780 (eval $ac_try) 2>&5
6781 ac_status=$?
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); }; } &&
6784 { ac_try='test -s conftest$ac_exeext'
6785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6786 (eval $ac_try) 2>&5
6787 ac_status=$?
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); }; }; then
6790 ac_cv_search_opendir="none required"
6791else
6792 echo "$as_me: failed program was:" >&5
6793sed 's/^/| /' conftest.$ac_ext >&5
6794
6795fi
6796rm -f conftest.err conftest.$ac_objext \
6797 conftest$ac_exeext conftest.$ac_ext
6798if test "$ac_cv_search_opendir" = no; then
6799 for ac_lib in x; do
6800 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6801 cat >conftest.$ac_ext <<_ACEOF
6802/* confdefs.h. */
6803_ACEOF
6804cat confdefs.h >>conftest.$ac_ext
6805cat >>conftest.$ac_ext <<_ACEOF
6806/* end confdefs.h. */
6807
6808/* Override any gcc2 internal prototype to avoid an error. */
6809#ifdef __cplusplus
6810extern "C"
6811#endif
6812/* We use char because int might match the return type of a gcc2
6813 builtin and then its argument prototype would still apply. */
6814char opendir ();
6815int
6816main ()
6817{
6818opendir ();
6819 ;
6820 return 0;
6821}
6822_ACEOF
6823rm -f conftest.$ac_objext conftest$ac_exeext
6824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6825 (eval $ac_link) 2>conftest.er1
6826 ac_status=$?
6827 grep -v '^ *+' conftest.er1 >conftest.err
6828 rm -f conftest.er1
6829 cat conftest.err >&5
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); } &&
6832 { ac_try='test -z "$ac_c_werror_flag"
6833 || test ! -s conftest.err'
6834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6835 (eval $ac_try) 2>&5
6836 ac_status=$?
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); }; } &&
6839 { ac_try='test -s conftest$ac_exeext'
6840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841 (eval $ac_try) 2>&5
6842 ac_status=$?
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); }; }; then
6845 ac_cv_search_opendir="-l$ac_lib"
6846break
6847else
6848 echo "$as_me: failed program was:" >&5
6849sed 's/^/| /' conftest.$ac_ext >&5
6850
6851fi
6852rm -f conftest.err conftest.$ac_objext \
6853 conftest$ac_exeext conftest.$ac_ext
6854 done
6855fi
6856LIBS=$ac_func_search_save_LIBS
6857fi
6858echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6859echo "${ECHO_T}$ac_cv_search_opendir" >&6
6860if test "$ac_cv_search_opendir" != no; then
6861 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6862
6863fi
6864
6865fi
6866
6867echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6868echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6869if test "${ac_cv_header_stat_broken+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6871else
6872 cat >conftest.$ac_ext <<_ACEOF
6873/* confdefs.h. */
6874_ACEOF
6875cat confdefs.h >>conftest.$ac_ext
6876cat >>conftest.$ac_ext <<_ACEOF
6877/* end confdefs.h. */
6878#include <sys/types.h>
6879#include <sys/stat.h>
6880
6881#if defined(S_ISBLK) && defined(S_IFDIR)
6882# if S_ISBLK (S_IFDIR)
6883You lose.
6884# endif
6885#endif
6886
6887#if defined(S_ISBLK) && defined(S_IFCHR)
6888# if S_ISBLK (S_IFCHR)
6889You lose.
6890# endif
6891#endif
6892
6893#if defined(S_ISLNK) && defined(S_IFREG)
6894# if S_ISLNK (S_IFREG)
6895You lose.
6896# endif
6897#endif
6898
6899#if defined(S_ISSOCK) && defined(S_IFREG)
6900# if S_ISSOCK (S_IFREG)
6901You lose.
6902# endif
6903#endif
6904
6905_ACEOF
6906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6907 $EGREP "You lose" >/dev/null 2>&1; then
6908 ac_cv_header_stat_broken=yes
6909else
6910 ac_cv_header_stat_broken=no
6911fi
6912rm -f conftest*
6913
6914fi
6915echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6916echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6917if test $ac_cv_header_stat_broken = yes; then
6918
6919cat >>confdefs.h <<\_ACEOF
6920#define STAT_MACROS_BROKEN 1
6921_ACEOF
6922
6923fi
6924
6925echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6926echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6927if test "${ac_cv_header_time+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6929else
6930 cat >conftest.$ac_ext <<_ACEOF
6931/* confdefs.h. */
6932_ACEOF
6933cat confdefs.h >>conftest.$ac_ext
6934cat >>conftest.$ac_ext <<_ACEOF
6935/* end confdefs.h. */
6936#include <sys/types.h>
6937#include <sys/time.h>
6938#include <time.h>
6939
6940int
6941main ()
6942{
6943if ((struct tm *) 0)
6944return 0;
6945 ;
6946 return 0;
6947}
6948_ACEOF
6949rm -f conftest.$ac_objext
6950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6951 (eval $ac_compile) 2>conftest.er1
6952 ac_status=$?
6953 grep -v '^ *+' conftest.er1 >conftest.err
6954 rm -f conftest.er1
6955 cat conftest.err >&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); } &&
6958 { ac_try='test -z "$ac_c_werror_flag"
6959 || test ! -s conftest.err'
6960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961 (eval $ac_try) 2>&5
6962 ac_status=$?
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); }; } &&
6965 { ac_try='test -s conftest.$ac_objext'
6966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967 (eval $ac_try) 2>&5
6968 ac_status=$?
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); }; }; then
6971 ac_cv_header_time=yes
6972else
6973 echo "$as_me: failed program was:" >&5
6974sed 's/^/| /' conftest.$ac_ext >&5
6975
6976ac_cv_header_time=no
6977fi
6978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6979fi
6980echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6981echo "${ECHO_T}$ac_cv_header_time" >&6
6982if test $ac_cv_header_time = yes; then
6983
6984cat >>confdefs.h <<\_ACEOF
6985#define TIME_WITH_SYS_TIME 1
6986_ACEOF
6987
6988fi
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000for ac_header in stdlib.h locale.h unistd.h limits.h fcntl.h string.h \
7001 memory.h sys/param.h sys/time.h sys/timeb.h
7002do
7003as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7004if eval "test \"\${$as_ac_Header+set}\" = set"; then
7005 echo "$as_me:$LINENO: checking for $ac_header" >&5
7006echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7007if eval "test \"\${$as_ac_Header+set}\" = set"; then
7008 echo $ECHO_N "(cached) $ECHO_C" >&6
7009fi
7010echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7011echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7012else
7013 # Is the header compilable?
7014echo "$as_me:$LINENO: checking $ac_header usability" >&5
7015echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7016cat >conftest.$ac_ext <<_ACEOF
7017/* confdefs.h. */
7018_ACEOF
7019cat confdefs.h >>conftest.$ac_ext
7020cat >>conftest.$ac_ext <<_ACEOF
7021/* end confdefs.h. */
7022$ac_includes_default
7023#include <$ac_header>
7024_ACEOF
7025rm -f conftest.$ac_objext
7026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7027 (eval $ac_compile) 2>conftest.er1
7028 ac_status=$?
7029 grep -v '^ *+' conftest.er1 >conftest.err
7030 rm -f conftest.er1
7031 cat conftest.err >&5
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } &&
7034 { ac_try='test -z "$ac_c_werror_flag"
7035 || test ! -s conftest.err'
7036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7037 (eval $ac_try) 2>&5
7038 ac_status=$?
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); }; } &&
7041 { ac_try='test -s conftest.$ac_objext'
7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043 (eval $ac_try) 2>&5
7044 ac_status=$?
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; }; then
7047 ac_header_compiler=yes
7048else
7049 echo "$as_me: failed program was:" >&5
7050sed 's/^/| /' conftest.$ac_ext >&5
7051
7052ac_header_compiler=no
7053fi
7054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7055echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7056echo "${ECHO_T}$ac_header_compiler" >&6
7057
7058# Is the header present?
7059echo "$as_me:$LINENO: checking $ac_header presence" >&5
7060echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7061cat >conftest.$ac_ext <<_ACEOF
7062/* confdefs.h. */
7063_ACEOF
7064cat confdefs.h >>conftest.$ac_ext
7065cat >>conftest.$ac_ext <<_ACEOF
7066/* end confdefs.h. */
7067#include <$ac_header>
7068_ACEOF
7069if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7071 ac_status=$?
7072 grep -v '^ *+' conftest.er1 >conftest.err
7073 rm -f conftest.er1
7074 cat conftest.err >&5
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); } >/dev/null; then
7077 if test -s conftest.err; then
7078 ac_cpp_err=$ac_c_preproc_warn_flag
7079 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7080 else
7081 ac_cpp_err=
7082 fi
7083else
7084 ac_cpp_err=yes
7085fi
7086if test -z "$ac_cpp_err"; then
7087 ac_header_preproc=yes
7088else
7089 echo "$as_me: failed program was:" >&5
7090sed 's/^/| /' conftest.$ac_ext >&5
7091
7092 ac_header_preproc=no
7093fi
7094rm -f conftest.err conftest.$ac_ext
7095echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7096echo "${ECHO_T}$ac_header_preproc" >&6
7097
7098# So? What about this header?
7099case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7100 yes:no: )
7101 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7102echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7104echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7105 ac_header_preproc=yes
7106 ;;
7107 no:yes:* )
7108 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7109echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7110 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7111echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7112 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7113echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7114 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7115echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7117echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7118 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7119echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7120 (
7121 cat <<\_ASBOX
7122## ------------------------------- ##
7123## Report this to [email protected] ##
7124## ------------------------------- ##
7125_ASBOX
7126 ) |
7127 sed "s/^/$as_me: WARNING: /" >&2
7128 ;;
7129esac
7130echo "$as_me:$LINENO: checking for $ac_header" >&5
7131echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7132if eval "test \"\${$as_ac_Header+set}\" = set"; then
7133 echo $ECHO_N "(cached) $ECHO_C" >&6
7134else
7135 eval "$as_ac_Header=\$ac_header_preproc"
7136fi
7137echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7138echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7139
7140fi
7141if test `eval echo '${'$as_ac_Header'}'` = yes; then
7142 cat >>confdefs.h <<_ACEOF
7143#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7144_ACEOF
7145
7146fi
7147
7148done
7149
7150
7151# Set a flag if we have an ANSI C compiler
7152if test "$ac_cv_prog_cc_stdc" != no; then
7153
7154cat >>confdefs.h <<\_ACEOF
7155#define HAVE_ANSI_COMPILER 1
7156_ACEOF
7157
7158fi
7159
7160
7161# Determine what kind of variadic function calls we support
7162
7163
7164for ac_header in stdarg.h varargs.h
7165do
7166as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7167if eval "test \"\${$as_ac_Header+set}\" = set"; then
7168 echo "$as_me:$LINENO: checking for $ac_header" >&5
7169echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7170if eval "test \"\${$as_ac_Header+set}\" = set"; then
7171 echo $ECHO_N "(cached) $ECHO_C" >&6
7172fi
7173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7174echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7175else
7176 # Is the header compilable?
7177echo "$as_me:$LINENO: checking $ac_header usability" >&5
7178echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7179cat >conftest.$ac_ext <<_ACEOF
7180/* confdefs.h. */
7181_ACEOF
7182cat confdefs.h >>conftest.$ac_ext
7183cat >>conftest.$ac_ext <<_ACEOF
7184/* end confdefs.h. */
7185$ac_includes_default
7186#include <$ac_header>
7187_ACEOF
7188rm -f conftest.$ac_objext
7189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7190 (eval $ac_compile) 2>conftest.er1
7191 ac_status=$?
7192 grep -v '^ *+' conftest.er1 >conftest.err
7193 rm -f conftest.er1
7194 cat conftest.err >&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); } &&
7197 { ac_try='test -z "$ac_c_werror_flag"
7198 || test ! -s conftest.err'
7199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7200 (eval $ac_try) 2>&5
7201 ac_status=$?
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); }; } &&
7204 { ac_try='test -s conftest.$ac_objext'
7205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206 (eval $ac_try) 2>&5
7207 ac_status=$?
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); }; }; then
7210 ac_header_compiler=yes
7211else
7212 echo "$as_me: failed program was:" >&5
7213sed 's/^/| /' conftest.$ac_ext >&5
7214
7215ac_header_compiler=no
7216fi
7217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7218echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7219echo "${ECHO_T}$ac_header_compiler" >&6
7220
7221# Is the header present?
7222echo "$as_me:$LINENO: checking $ac_header presence" >&5
7223echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7224cat >conftest.$ac_ext <<_ACEOF
7225/* confdefs.h. */
7226_ACEOF
7227cat confdefs.h >>conftest.$ac_ext
7228cat >>conftest.$ac_ext <<_ACEOF
7229/* end confdefs.h. */
7230#include <$ac_header>
7231_ACEOF
7232if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7234 ac_status=$?
7235 grep -v '^ *+' conftest.er1 >conftest.err
7236 rm -f conftest.er1
7237 cat conftest.err >&5
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); } >/dev/null; then
7240 if test -s conftest.err; then
7241 ac_cpp_err=$ac_c_preproc_warn_flag
7242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7243 else
7244 ac_cpp_err=
7245 fi
7246else
7247 ac_cpp_err=yes
7248fi
7249if test -z "$ac_cpp_err"; then
7250 ac_header_preproc=yes
7251else
7252 echo "$as_me: failed program was:" >&5
7253sed 's/^/| /' conftest.$ac_ext >&5
7254
7255 ac_header_preproc=no
7256fi
7257rm -f conftest.err conftest.$ac_ext
7258echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7259echo "${ECHO_T}$ac_header_preproc" >&6
7260
7261# So? What about this header?
7262case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7263 yes:no: )
7264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7265echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7267echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7268 ac_header_preproc=yes
7269 ;;
7270 no:yes:* )
7271 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7272echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7273 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7274echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7275 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7276echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7277 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7278echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7280echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7281 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7282echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7283 (
7284 cat <<\_ASBOX
7285## ------------------------------- ##
7286## Report this to [email protected] ##
7287## ------------------------------- ##
7288_ASBOX
7289 ) |
7290 sed "s/^/$as_me: WARNING: /" >&2
7291 ;;
7292esac
7293echo "$as_me:$LINENO: checking for $ac_header" >&5
7294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7295if eval "test \"\${$as_ac_Header+set}\" = set"; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7297else
7298 eval "$as_ac_Header=\$ac_header_preproc"
7299fi
7300echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7301echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7302
7303fi
7304if test `eval echo '${'$as_ac_Header'}'` = yes; then
7305 cat >>confdefs.h <<_ACEOF
7306#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7307_ACEOF
7308 break
7309fi
7310
7311done
7312
7313
7314if test "x$CC" != xcc; then
7315 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
7316echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
7317else
7318 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
7319echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
7320fi
7321set dummy $CC; ac_cc=`echo $2 |
7322 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7323if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7325else
7326 cat >conftest.$ac_ext <<_ACEOF
7327/* confdefs.h. */
7328_ACEOF
7329cat confdefs.h >>conftest.$ac_ext
7330cat >>conftest.$ac_ext <<_ACEOF
7331/* end confdefs.h. */
7332
7333int
7334main ()
7335{
7336
7337 ;
7338 return 0;
7339}
7340_ACEOF
7341# Make sure it works both with $CC and with simple cc.
7342# We do the test twice because some compilers refuse to overwrite an
7343# existing .o file with -o, though they will create one.
7344ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
7345if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346 (eval $ac_try) 2>&5
7347 ac_status=$?
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); } &&
7350 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7351 (eval $ac_try) 2>&5
7352 ac_status=$?
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); };
7355then
7356 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7357 if test "x$CC" != xcc; then
7358 # Test first that cc exists at all.
7359 if { ac_try='cc -c conftest.$ac_ext >&5'
7360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361 (eval $ac_try) 2>&5
7362 ac_status=$?
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }; }; then
7365 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
7366 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7367 (eval $ac_try) 2>&5
7368 ac_status=$?
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); } &&
7371 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7372 (eval $ac_try) 2>&5
7373 ac_status=$?
7374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375 (exit $ac_status); };
7376 then
7377 # cc works too.
7378 :
7379 else
7380 # cc exists but doesn't like -o.
7381 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7382 fi
7383 fi
7384 fi
7385else
7386 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7387fi
7388rm -f conftest*
7389
7390fi
7391if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
7392 echo "$as_me:$LINENO: result: yes" >&5
7393echo "${ECHO_T}yes" >&6
7394else
7395 echo "$as_me:$LINENO: result: no" >&5
7396echo "${ECHO_T}no" >&6
7397
7398cat >>confdefs.h <<\_ACEOF
7399#define NO_MINUS_C_MINUS_O 1
7400_ACEOF
7401
7402fi
7403
7404# FIXME: we rely on the cache variable name because
7405# there is no other way.
7406set dummy $CC
7407ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7408if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
7409 # Losing compiler, so override with the script.
7410 # FIXME: It is wrong to rewrite CC.
7411 # But if we don't then we get into trouble of one sort or another.
7412 # A longer-term fix would be to have automake use am__CC in this case,
7413 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7414 CC="$am_aux_dir/compile $CC"
7415fi
7416
7417echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7418echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7419if test "${ac_cv_c_const+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7421else
7422 cat >conftest.$ac_ext <<_ACEOF
7423/* confdefs.h. */
7424_ACEOF
7425cat confdefs.h >>conftest.$ac_ext
7426cat >>conftest.$ac_ext <<_ACEOF
7427/* end confdefs.h. */
7428
7429int
7430main ()
7431{
7432/* FIXME: Include the comments suggested by Paul. */
7433#ifndef __cplusplus
7434 /* Ultrix mips cc rejects this. */
7435 typedef int charset[2];
7436 const charset x;
7437 /* SunOS 4.1.1 cc rejects this. */
7438 char const *const *ccp;
7439 char **p;
7440 /* NEC SVR4.0.2 mips cc rejects this. */
7441 struct point {int x, y;};
7442 static struct point const zero = {0,0};
7443 /* AIX XL C 1.02.0.0 rejects this.
7444 It does not let you subtract one const X* pointer from another in
7445 an arm of an if-expression whose if-part is not a constant
7446 expression */
7447 const char *g = "string";
7448 ccp = &g + (g ? g-g : 0);
7449 /* HPUX 7.0 cc rejects these. */
7450 ++ccp;
7451 p = (char**) ccp;
7452 ccp = (char const *const *) p;
7453 { /* SCO 3.2v4 cc rejects this. */
7454 char *t;
7455 char const *s = 0 ? (char *) 0 : (char const *) 0;
7456
7457 *t++ = 0;
7458 }
7459 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7460 int x[] = {25, 17};
7461 const int *foo = &x[0];
7462 ++foo;
7463 }
7464 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7465 typedef const int *iptr;
7466 iptr p = 0;
7467 ++p;
7468 }
7469 { /* AIX XL C 1.02.0.0 rejects this saying
7470 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7471 struct s { int j; const int *ap[3]; };
7472 struct s *b; b->j = 5;
7473 }
7474 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7475 const int foo = 10;
7476 }
7477#endif
7478
7479 ;
7480 return 0;
7481}
7482_ACEOF
7483rm -f conftest.$ac_objext
7484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7485 (eval $ac_compile) 2>conftest.er1
7486 ac_status=$?
7487 grep -v '^ *+' conftest.er1 >conftest.err
7488 rm -f conftest.er1
7489 cat conftest.err >&5
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); } &&
7492 { ac_try='test -z "$ac_c_werror_flag"
7493 || test ! -s conftest.err'
7494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7495 (eval $ac_try) 2>&5
7496 ac_status=$?
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); }; } &&
7499 { ac_try='test -s conftest.$ac_objext'
7500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7501 (eval $ac_try) 2>&5
7502 ac_status=$?
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); }; }; then
7505 ac_cv_c_const=yes
7506else
7507 echo "$as_me: failed program was:" >&5
7508sed 's/^/| /' conftest.$ac_ext >&5
7509
7510ac_cv_c_const=no
7511fi
7512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7513fi
7514echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7515echo "${ECHO_T}$ac_cv_c_const" >&6
7516if test $ac_cv_c_const = no; then
7517
7518cat >>confdefs.h <<\_ACEOF
7519#define const
7520_ACEOF
7521
7522fi
7523
7524echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7525echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7526if test "${ac_cv_type_signal+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7528else
7529 cat >conftest.$ac_ext <<_ACEOF
7530/* confdefs.h. */
7531_ACEOF
7532cat confdefs.h >>conftest.$ac_ext
7533cat >>conftest.$ac_ext <<_ACEOF
7534/* end confdefs.h. */
7535#include <sys/types.h>
7536#include <signal.h>
7537#ifdef signal
7538# undef signal
7539#endif
7540#ifdef __cplusplus
7541extern "C" void (*signal (int, void (*)(int)))(int);
7542#else
7543void (*signal ()) ();
7544#endif
7545
7546int
7547main ()
7548{
7549int i;
7550 ;
7551 return 0;
7552}
7553_ACEOF
7554rm -f conftest.$ac_objext
7555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7556 (eval $ac_compile) 2>conftest.er1
7557 ac_status=$?
7558 grep -v '^ *+' conftest.er1 >conftest.err
7559 rm -f conftest.er1
7560 cat conftest.err >&5
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); } &&
7563 { ac_try='test -z "$ac_c_werror_flag"
7564 || test ! -s conftest.err'
7565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7566 (eval $ac_try) 2>&5
7567 ac_status=$?
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); }; } &&
7570 { ac_try='test -s conftest.$ac_objext'
7571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7572 (eval $ac_try) 2>&5
7573 ac_status=$?
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); }; }; then
7576 ac_cv_type_signal=void
7577else
7578 echo "$as_me: failed program was:" >&5
7579sed 's/^/| /' conftest.$ac_ext >&5
7580
7581ac_cv_type_signal=int
7582fi
7583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7584fi
7585echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7586echo "${ECHO_T}$ac_cv_type_signal" >&6
7587
7588cat >>confdefs.h <<_ACEOF
7589#define RETSIGTYPE $ac_cv_type_signal
7590_ACEOF
7591
7592
7593echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7594echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7595if test "${ac_cv_type_uid_t+set}" = set; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
7597else
7598 cat >conftest.$ac_ext <<_ACEOF
7599/* confdefs.h. */
7600_ACEOF
7601cat confdefs.h >>conftest.$ac_ext
7602cat >>conftest.$ac_ext <<_ACEOF
7603/* end confdefs.h. */
7604#include <sys/types.h>
7605
7606_ACEOF
7607if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7608 $EGREP "uid_t" >/dev/null 2>&1; then
7609 ac_cv_type_uid_t=yes
7610else
7611 ac_cv_type_uid_t=no
7612fi
7613rm -f conftest*
7614
7615fi
7616echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7617echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7618if test $ac_cv_type_uid_t = no; then
7619
7620cat >>confdefs.h <<\_ACEOF
7621#define uid_t int
7622_ACEOF
7623
7624
7625cat >>confdefs.h <<\_ACEOF
7626#define gid_t int
7627_ACEOF
7628
7629fi
7630
7631echo "$as_me:$LINENO: checking for pid_t" >&5
7632echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7633if test "${ac_cv_type_pid_t+set}" = set; then
7634 echo $ECHO_N "(cached) $ECHO_C" >&6
7635else
7636 cat >conftest.$ac_ext <<_ACEOF
7637/* confdefs.h. */
7638_ACEOF
7639cat confdefs.h >>conftest.$ac_ext
7640cat >>conftest.$ac_ext <<_ACEOF
7641/* end confdefs.h. */
7642$ac_includes_default
7643int
7644main ()
7645{
7646if ((pid_t *) 0)
7647 return 0;
7648if (sizeof (pid_t))
7649 return 0;
7650 ;
7651 return 0;
7652}
7653_ACEOF
7654rm -f conftest.$ac_objext
7655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7656 (eval $ac_compile) 2>conftest.er1
7657 ac_status=$?
7658 grep -v '^ *+' conftest.er1 >conftest.err
7659 rm -f conftest.er1
7660 cat conftest.err >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } &&
7663 { ac_try='test -z "$ac_c_werror_flag"
7664 || test ! -s conftest.err'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666 (eval $ac_try) 2>&5
7667 ac_status=$?
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; } &&
7670 { ac_try='test -s conftest.$ac_objext'
7671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7672 (eval $ac_try) 2>&5
7673 ac_status=$?
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); }; }; then
7676 ac_cv_type_pid_t=yes
7677else
7678 echo "$as_me: failed program was:" >&5
7679sed 's/^/| /' conftest.$ac_ext >&5
7680
7681ac_cv_type_pid_t=no
7682fi
7683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7684fi
7685echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7686echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7687if test $ac_cv_type_pid_t = yes; then
7688 :
7689else
7690
7691cat >>confdefs.h <<_ACEOF
7692#define pid_t int
7693_ACEOF
7694
7695fi
7696
7697
7698# Find some definition for uintmax_t
7699
7700echo "$as_me:$LINENO: checking for uintmax_t" >&5
7701echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
7702if test "${ac_cv_type_uintmax_t+set}" = set; then
7703 echo $ECHO_N "(cached) $ECHO_C" >&6
7704else
7705 cat >conftest.$ac_ext <<_ACEOF
7706/* confdefs.h. */
7707_ACEOF
7708cat confdefs.h >>conftest.$ac_ext
7709cat >>conftest.$ac_ext <<_ACEOF
7710/* end confdefs.h. */
7711$ac_includes_default
7712int
7713main ()
7714{
7715if ((uintmax_t *) 0)
7716 return 0;
7717if (sizeof (uintmax_t))
7718 return 0;
7719 ;
7720 return 0;
7721}
7722_ACEOF
7723rm -f conftest.$ac_objext
7724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7725 (eval $ac_compile) 2>conftest.er1
7726 ac_status=$?
7727 grep -v '^ *+' conftest.er1 >conftest.err
7728 rm -f conftest.er1
7729 cat conftest.err >&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); } &&
7732 { ac_try='test -z "$ac_c_werror_flag"
7733 || test ! -s conftest.err'
7734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7735 (eval $ac_try) 2>&5
7736 ac_status=$?
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); }; } &&
7739 { ac_try='test -s conftest.$ac_objext'
7740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7741 (eval $ac_try) 2>&5
7742 ac_status=$?
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); }; }; then
7745 ac_cv_type_uintmax_t=yes
7746else
7747 echo "$as_me: failed program was:" >&5
7748sed 's/^/| /' conftest.$ac_ext >&5
7749
7750ac_cv_type_uintmax_t=no
7751fi
7752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7753fi
7754echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
7755echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
7756if test $ac_cv_type_uintmax_t = yes; then
7757 :
7758else
7759
7760 uintmax_t="unsigned long"
7761 echo "$as_me:$LINENO: checking for unsigned long long" >&5
7762echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
7763if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7764 echo $ECHO_N "(cached) $ECHO_C" >&6
7765else
7766 cat >conftest.$ac_ext <<_ACEOF
7767/* confdefs.h. */
7768_ACEOF
7769cat confdefs.h >>conftest.$ac_ext
7770cat >>conftest.$ac_ext <<_ACEOF
7771/* end confdefs.h. */
7772$ac_includes_default
7773int
7774main ()
7775{
7776if ((unsigned long long *) 0)
7777 return 0;
7778if (sizeof (unsigned long long))
7779 return 0;
7780 ;
7781 return 0;
7782}
7783_ACEOF
7784rm -f conftest.$ac_objext
7785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7786 (eval $ac_compile) 2>conftest.er1
7787 ac_status=$?
7788 grep -v '^ *+' conftest.er1 >conftest.err
7789 rm -f conftest.er1
7790 cat conftest.err >&5
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); } &&
7793 { ac_try='test -z "$ac_c_werror_flag"
7794 || test ! -s conftest.err'
7795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7796 (eval $ac_try) 2>&5
7797 ac_status=$?
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); }; } &&
7800 { ac_try='test -s conftest.$ac_objext'
7801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7802 (eval $ac_try) 2>&5
7803 ac_status=$?
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); }; }; then
7806 ac_cv_type_unsigned_long_long=yes
7807else
7808 echo "$as_me: failed program was:" >&5
7809sed 's/^/| /' conftest.$ac_ext >&5
7810
7811ac_cv_type_unsigned_long_long=no
7812fi
7813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7814fi
7815echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7816echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
7817if test $ac_cv_type_unsigned_long_long = yes; then
7818 uintmax_t="unsigned long long"
7819fi
7820
7821
7822cat >>confdefs.h <<_ACEOF
7823#define uintmax_t $uintmax_t
7824_ACEOF
7825
7826fi
7827
7828
7829# Find out whether our struct stat returns nanosecond resolution timestamps.
7830
7831echo "$as_me:$LINENO: checking for nanoseconds field of struct stat.st_mtim" >&5
7832echo $ECHO_N "checking for nanoseconds field of struct stat.st_mtim... $ECHO_C" >&6
7833if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
7835else
7836 ac_save_CPPFLAGS="$CPPFLAGS"
7837 ac_cv_struct_st_mtim_nsec=no
7838 # tv_nsec -- the usual case
7839 # _tv_nsec -- Solaris 2.6, if
7840 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
7841 # && !defined __EXTENSIONS__)
7842 # st__tim.tv_nsec -- UnixWare 2.1.2
7843 for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
7844 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
7845 cat >conftest.$ac_ext <<_ACEOF
7846/* confdefs.h. */
7847_ACEOF
7848cat confdefs.h >>conftest.$ac_ext
7849cat >>conftest.$ac_ext <<_ACEOF
7850/* end confdefs.h. */
7851#include <sys/types.h>
7852#include <sys/stat.h>
7853
7854int
7855main ()
7856{
7857struct stat s; s.st_mtim.ST_MTIM_NSEC;
7858 ;
7859 return 0;
7860}
7861_ACEOF
7862rm -f conftest.$ac_objext
7863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7864 (eval $ac_compile) 2>conftest.er1
7865 ac_status=$?
7866 grep -v '^ *+' conftest.er1 >conftest.err
7867 rm -f conftest.er1
7868 cat conftest.err >&5
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); } &&
7871 { ac_try='test -z "$ac_c_werror_flag"
7872 || test ! -s conftest.err'
7873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7874 (eval $ac_try) 2>&5
7875 ac_status=$?
7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); }; } &&
7878 { ac_try='test -s conftest.$ac_objext'
7879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7880 (eval $ac_try) 2>&5
7881 ac_status=$?
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); }; }; then
7884 ac_cv_struct_st_mtim_nsec=$ac_val; break
7885else
7886 echo "$as_me: failed program was:" >&5
7887sed 's/^/| /' conftest.$ac_ext >&5
7888
7889fi
7890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7891 done
7892 CPPFLAGS="$ac_save_CPPFLAGS"
7893
7894fi
7895echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
7896echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
7897
7898 if test $ac_cv_struct_st_mtim_nsec != no; then
7899
7900cat >>confdefs.h <<_ACEOF
7901#define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
7902_ACEOF
7903
7904 fi
7905
7906
7907echo "$as_me:$LINENO: checking whether to use high resolution file timestamps" >&5
7908echo $ECHO_N "checking whether to use high resolution file timestamps... $ECHO_C" >&6
7909if test "${make_cv_file_timestamp_hi_res+set}" = set; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7911else
7912
7913 make_cv_file_timestamp_hi_res=no
7914 if test "$ac_cv_struct_st_mtim_nsec" != no; then
7915 cat >conftest.$ac_ext <<_ACEOF
7916/* confdefs.h. */
7917_ACEOF
7918cat confdefs.h >>conftest.$ac_ext
7919cat >>conftest.$ac_ext <<_ACEOF
7920/* end confdefs.h. */
7921
7922# if HAVE_INTTYPES_H
7923# include <inttypes.h>
7924# endif
7925int
7926main ()
7927{
7928char a[0x7fffffff < (uintmax_t)-1 >> 30 ? 1 : -1];
7929 ;
7930 return 0;
7931}
7932_ACEOF
7933rm -f conftest.$ac_objext
7934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7935 (eval $ac_compile) 2>conftest.er1
7936 ac_status=$?
7937 grep -v '^ *+' conftest.er1 >conftest.err
7938 rm -f conftest.er1
7939 cat conftest.err >&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); } &&
7942 { ac_try='test -z "$ac_c_werror_flag"
7943 || test ! -s conftest.err'
7944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7945 (eval $ac_try) 2>&5
7946 ac_status=$?
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); }; } &&
7949 { ac_try='test -s conftest.$ac_objext'
7950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951 (eval $ac_try) 2>&5
7952 ac_status=$?
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); }; }; then
7955 make_cv_file_timestamp_hi_res=yes
7956else
7957 echo "$as_me: failed program was:" >&5
7958sed 's/^/| /' conftest.$ac_ext >&5
7959
7960fi
7961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7962 fi
7963fi
7964
7965echo "$as_me:$LINENO: result: $make_cv_file_timestamp_hi_res" >&5
7966echo "${ECHO_T}$make_cv_file_timestamp_hi_res" >&6
7967if test "$make_cv_file_timestamp_hi_res" = yes; then
7968 val=1
7969else
7970 val=0
7971fi
7972
7973cat >>confdefs.h <<_ACEOF
7974#define FILE_TIMESTAMP_HI_RES $val
7975_ACEOF
7976
7977
7978if test "$make_cv_file_timestamp_hi_res" = yes; then
7979 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
7980 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
7981 echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
7982echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
7983if test "${ac_cv_search_clock_gettime+set}" = set; then
7984 echo $ECHO_N "(cached) $ECHO_C" >&6
7985else
7986 ac_func_search_save_LIBS=$LIBS
7987ac_cv_search_clock_gettime=no
7988cat >conftest.$ac_ext <<_ACEOF
7989/* confdefs.h. */
7990_ACEOF
7991cat confdefs.h >>conftest.$ac_ext
7992cat >>conftest.$ac_ext <<_ACEOF
7993/* end confdefs.h. */
7994
7995/* Override any gcc2 internal prototype to avoid an error. */
7996#ifdef __cplusplus
7997extern "C"
7998#endif
7999/* We use char because int might match the return type of a gcc2
8000 builtin and then its argument prototype would still apply. */
8001char clock_gettime ();
8002int
8003main ()
8004{
8005clock_gettime ();
8006 ;
8007 return 0;
8008}
8009_ACEOF
8010rm -f conftest.$ac_objext conftest$ac_exeext
8011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8012 (eval $ac_link) 2>conftest.er1
8013 ac_status=$?
8014 grep -v '^ *+' conftest.er1 >conftest.err
8015 rm -f conftest.er1
8016 cat conftest.err >&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); } &&
8019 { ac_try='test -z "$ac_c_werror_flag"
8020 || test ! -s conftest.err'
8021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8022 (eval $ac_try) 2>&5
8023 ac_status=$?
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; } &&
8026 { ac_try='test -s conftest$ac_exeext'
8027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8028 (eval $ac_try) 2>&5
8029 ac_status=$?
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); }; }; then
8032 ac_cv_search_clock_gettime="none required"
8033else
8034 echo "$as_me: failed program was:" >&5
8035sed 's/^/| /' conftest.$ac_ext >&5
8036
8037fi
8038rm -f conftest.err conftest.$ac_objext \
8039 conftest$ac_exeext conftest.$ac_ext
8040if test "$ac_cv_search_clock_gettime" = no; then
8041 for ac_lib in rt posix4; do
8042 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8043 cat >conftest.$ac_ext <<_ACEOF
8044/* confdefs.h. */
8045_ACEOF
8046cat confdefs.h >>conftest.$ac_ext
8047cat >>conftest.$ac_ext <<_ACEOF
8048/* end confdefs.h. */
8049
8050/* Override any gcc2 internal prototype to avoid an error. */
8051#ifdef __cplusplus
8052extern "C"
8053#endif
8054/* We use char because int might match the return type of a gcc2
8055 builtin and then its argument prototype would still apply. */
8056char clock_gettime ();
8057int
8058main ()
8059{
8060clock_gettime ();
8061 ;
8062 return 0;
8063}
8064_ACEOF
8065rm -f conftest.$ac_objext conftest$ac_exeext
8066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8067 (eval $ac_link) 2>conftest.er1
8068 ac_status=$?
8069 grep -v '^ *+' conftest.er1 >conftest.err
8070 rm -f conftest.er1
8071 cat conftest.err >&5
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); } &&
8074 { ac_try='test -z "$ac_c_werror_flag"
8075 || test ! -s conftest.err'
8076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8077 (eval $ac_try) 2>&5
8078 ac_status=$?
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); }; } &&
8081 { ac_try='test -s conftest$ac_exeext'
8082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8083 (eval $ac_try) 2>&5
8084 ac_status=$?
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); }; }; then
8087 ac_cv_search_clock_gettime="-l$ac_lib"
8088break
8089else
8090 echo "$as_me: failed program was:" >&5
8091sed 's/^/| /' conftest.$ac_ext >&5
8092
8093fi
8094rm -f conftest.err conftest.$ac_objext \
8095 conftest$ac_exeext conftest.$ac_ext
8096 done
8097fi
8098LIBS=$ac_func_search_save_LIBS
8099fi
8100echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
8101echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
8102if test "$ac_cv_search_clock_gettime" != no; then
8103 test "$ac_cv_search_clock_gettime" = "none required" || LIBS="$ac_cv_search_clock_gettime $LIBS"
8104
8105fi
8106
8107 if test "$ac_cv_search_clock_gettime" != no; then
8108
8109cat >>confdefs.h <<\_ACEOF
8110#define HAVE_CLOCK_GETTIME 1
8111_ACEOF
8112
8113 fi
8114fi
8115
8116# Check for DOS-style pathnames.
8117pds_AC_DOS_PATHS
8118
8119# See if we have a standard version of gettimeofday(). Since actual
8120# implementations can differ, just make sure we have the most common
8121# one.
8122echo "$as_me:$LINENO: checking for standard gettimeofday" >&5
8123echo $ECHO_N "checking for standard gettimeofday... $ECHO_C" >&6
8124if test "${ac_cv_func_gettimeofday+set}" = set; then
8125 echo $ECHO_N "(cached) $ECHO_C" >&6
8126else
8127 ac_cv_func_gettimeofday=no
8128 if test "$cross_compiling" = yes; then
8129 ac_cv_func_gettimeofday="no (cross-compiling)"
8130else
8131 cat >conftest.$ac_ext <<_ACEOF
8132/* confdefs.h. */
8133_ACEOF
8134cat confdefs.h >>conftest.$ac_ext
8135cat >>conftest.$ac_ext <<_ACEOF
8136/* end confdefs.h. */
8137#include <sys/time.h>
8138 int main ()
8139 {
8140 struct timeval t; t.tv_sec = -1; t.tv_usec = -1;
8141 exit (gettimeofday (&t, 0) != 0
8142 || t.tv_sec < 0 || t.tv_usec < 0);
8143 }
8144_ACEOF
8145rm -f conftest$ac_exeext
8146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8147 (eval $ac_link) 2>&5
8148 ac_status=$?
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8152 (eval $ac_try) 2>&5
8153 ac_status=$?
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); }; }; then
8156 ac_cv_func_gettimeofday=yes
8157else
8158 echo "$as_me: program exited with status $ac_status" >&5
8159echo "$as_me: failed program was:" >&5
8160sed 's/^/| /' conftest.$ac_ext >&5
8161
8162( exit $ac_status )
8163ac_cv_func_gettimeofday=no
8164fi
8165rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8166fi
8167fi
8168echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
8169echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
8170if test "$ac_cv_func_gettimeofday" = yes; then
8171
8172cat >>confdefs.h <<\_ACEOF
8173#define HAVE_GETTIMEOFDAY 1
8174_ACEOF
8175
8176fi
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200for ac_func in memcpy memmove strchr strdup mkstemp mktemp fdopen \
8201 bsd_signal dup2 getcwd sigsetmask sigaction getgroups \
8202 seteuid setegid setlinebuf setreuid setregid setvbuf pipe \
8203 strerror strsignal
8204do
8205as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8206echo "$as_me:$LINENO: checking for $ac_func" >&5
8207echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8208if eval "test \"\${$as_ac_var+set}\" = set"; then
8209 echo $ECHO_N "(cached) $ECHO_C" >&6
8210else
8211 cat >conftest.$ac_ext <<_ACEOF
8212/* confdefs.h. */
8213_ACEOF
8214cat confdefs.h >>conftest.$ac_ext
8215cat >>conftest.$ac_ext <<_ACEOF
8216/* end confdefs.h. */
8217/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8219#define $ac_func innocuous_$ac_func
8220
8221/* System header to define __stub macros and hopefully few prototypes,
8222 which can conflict with char $ac_func (); below.
8223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8224 <limits.h> exists even on freestanding compilers. */
8225
8226#ifdef __STDC__
8227# include <limits.h>
8228#else
8229# include <assert.h>
8230#endif
8231
8232#undef $ac_func
8233
8234/* Override any gcc2 internal prototype to avoid an error. */
8235#ifdef __cplusplus
8236extern "C"
8237{
8238#endif
8239/* We use char because int might match the return type of a gcc2
8240 builtin and then its argument prototype would still apply. */
8241char $ac_func ();
8242/* The GNU C library defines this for functions which it implements
8243 to always fail with ENOSYS. Some functions are actually named
8244 something starting with __ and the normal name is an alias. */
8245#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8246choke me
8247#else
8248char (*f) () = $ac_func;
8249#endif
8250#ifdef __cplusplus
8251}
8252#endif
8253
8254int
8255main ()
8256{
8257return f != $ac_func;
8258 ;
8259 return 0;
8260}
8261_ACEOF
8262rm -f conftest.$ac_objext conftest$ac_exeext
8263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8264 (eval $ac_link) 2>conftest.er1
8265 ac_status=$?
8266 grep -v '^ *+' conftest.er1 >conftest.err
8267 rm -f conftest.er1
8268 cat conftest.err >&5
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); } &&
8271 { ac_try='test -z "$ac_c_werror_flag"
8272 || test ! -s conftest.err'
8273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8274 (eval $ac_try) 2>&5
8275 ac_status=$?
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); }; } &&
8278 { ac_try='test -s conftest$ac_exeext'
8279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8280 (eval $ac_try) 2>&5
8281 ac_status=$?
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); }; }; then
8284 eval "$as_ac_var=yes"
8285else
8286 echo "$as_me: failed program was:" >&5
8287sed 's/^/| /' conftest.$ac_ext >&5
8288
8289eval "$as_ac_var=no"
8290fi
8291rm -f conftest.err conftest.$ac_objext \
8292 conftest$ac_exeext conftest.$ac_ext
8293fi
8294echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8295echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8296if test `eval echo '${'$as_ac_var'}'` = yes; then
8297 cat >>confdefs.h <<_ACEOF
8298#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8299_ACEOF
8300
8301fi
8302done
8303
8304
8305echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
8306echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
8307if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
8308 echo $ECHO_N "(cached) $ECHO_C" >&6
8309else
8310 ac_cv_func_setvbuf_reversed=no
8311 cat >conftest.$ac_ext <<_ACEOF
8312/* confdefs.h. */
8313_ACEOF
8314cat confdefs.h >>conftest.$ac_ext
8315cat >>conftest.$ac_ext <<_ACEOF
8316/* end confdefs.h. */
8317#include <stdio.h>
8318# if PROTOTYPES
8319 int (setvbuf) (FILE *, int, char *, size_t);
8320# endif
8321int
8322main ()
8323{
8324char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
8325 ;
8326 return 0;
8327}
8328_ACEOF
8329rm -f conftest.$ac_objext conftest$ac_exeext
8330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8331 (eval $ac_link) 2>conftest.er1
8332 ac_status=$?
8333 grep -v '^ *+' conftest.er1 >conftest.err
8334 rm -f conftest.er1
8335 cat conftest.err >&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); } &&
8338 { ac_try='test -z "$ac_c_werror_flag"
8339 || test ! -s conftest.err'
8340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8341 (eval $ac_try) 2>&5
8342 ac_status=$?
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); }; } &&
8345 { ac_try='test -s conftest$ac_exeext'
8346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8347 (eval $ac_try) 2>&5
8348 ac_status=$?
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); }; }; then
8351 cat >conftest.$ac_ext <<_ACEOF
8352/* confdefs.h. */
8353_ACEOF
8354cat confdefs.h >>conftest.$ac_ext
8355cat >>conftest.$ac_ext <<_ACEOF
8356/* end confdefs.h. */
8357#include <stdio.h>
8358# if PROTOTYPES
8359 int (setvbuf) (FILE *, int, char *, size_t);
8360# endif
8361int
8362main ()
8363{
8364char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
8365 ;
8366 return 0;
8367}
8368_ACEOF
8369rm -f conftest.$ac_objext conftest$ac_exeext
8370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8371 (eval $ac_link) 2>conftest.er1
8372 ac_status=$?
8373 grep -v '^ *+' conftest.er1 >conftest.err
8374 rm -f conftest.er1
8375 cat conftest.err >&5
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); } &&
8378 { ac_try='test -z "$ac_c_werror_flag"
8379 || test ! -s conftest.err'
8380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8381 (eval $ac_try) 2>&5
8382 ac_status=$?
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); }; } &&
8385 { ac_try='test -s conftest$ac_exeext'
8386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387 (eval $ac_try) 2>&5
8388 ac_status=$?
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); }; }; then
8391 # It compiles and links either way, so it must not be declared
8392 # with a prototype and most likely this is a K&R C compiler.
8393 # Try running it.
8394 if test "$cross_compiling" = yes; then
8395 : # Assume setvbuf is not reversed when cross-compiling.
8396else
8397 cat >conftest.$ac_ext <<_ACEOF
8398/* confdefs.h. */
8399_ACEOF
8400cat confdefs.h >>conftest.$ac_ext
8401cat >>conftest.$ac_ext <<_ACEOF
8402/* end confdefs.h. */
8403#include <stdio.h>
8404int
8405main ()
8406{
8407/* This call has the arguments reversed.
8408 A reversed system may check and see that the address of buf
8409 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
8410 char buf;
8411 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
8412 exit (1);
8413 putchar ('\r');
8414 exit (0); /* Non-reversed systems SEGV here. */
8415 ;
8416 return 0;
8417}
8418_ACEOF
8419rm -f conftest$ac_exeext
8420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8421 (eval $ac_link) 2>&5
8422 ac_status=$?
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426 (eval $ac_try) 2>&5
8427 ac_status=$?
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; }; then
8430 ac_cv_func_setvbuf_reversed=yes
8431else
8432 echo "$as_me: program exited with status $ac_status" >&5
8433echo "$as_me: failed program was:" >&5
8434sed 's/^/| /' conftest.$ac_ext >&5
8435
8436( exit $ac_status )
8437rm -f core *.core
8438fi
8439rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8440fi
8441 ac_cv_func_setvbuf_reversed=yes
8442else
8443 echo "$as_me: failed program was:" >&5
8444sed 's/^/| /' conftest.$ac_ext >&5
8445
8446fi
8447rm -f conftest.err conftest.$ac_objext \
8448 conftest$ac_exeext conftest.$ac_ext
8449else
8450 echo "$as_me: failed program was:" >&5
8451sed 's/^/| /' conftest.$ac_ext >&5
8452
8453fi
8454rm -f conftest.err conftest.$ac_objext \
8455 conftest$ac_exeext conftest.$ac_ext
8456fi
8457echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
8458echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
8459if test $ac_cv_func_setvbuf_reversed = yes; then
8460
8461cat >>confdefs.h <<\_ACEOF
8462#define SETVBUF_REVERSED 1
8463_ACEOF
8464
8465fi
8466
8467
8468# strcoll() is used by the GNU glob library
8469echo "$as_me:$LINENO: checking for working strcoll" >&5
8470echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
8471if test "${ac_cv_func_strcoll_works+set}" = set; then
8472 echo $ECHO_N "(cached) $ECHO_C" >&6
8473else
8474 if test "$cross_compiling" = yes; then
8475 ac_cv_func_strcoll_works=no
8476else
8477 cat >conftest.$ac_ext <<_ACEOF
8478/* confdefs.h. */
8479_ACEOF
8480cat confdefs.h >>conftest.$ac_ext
8481cat >>conftest.$ac_ext <<_ACEOF
8482/* end confdefs.h. */
8483$ac_includes_default
8484int
8485main ()
8486{
8487exit (strcoll ("abc", "def") >= 0 ||
8488 strcoll ("ABC", "DEF") >= 0 ||
8489 strcoll ("123", "456") >= 0)
8490 ;
8491 return 0;
8492}
8493_ACEOF
8494rm -f conftest$ac_exeext
8495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8496 (eval $ac_link) 2>&5
8497 ac_status=$?
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8501 (eval $ac_try) 2>&5
8502 ac_status=$?
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); }; }; then
8505 ac_cv_func_strcoll_works=yes
8506else
8507 echo "$as_me: program exited with status $ac_status" >&5
8508echo "$as_me: failed program was:" >&5
8509sed 's/^/| /' conftest.$ac_ext >&5
8510
8511( exit $ac_status )
8512ac_cv_func_strcoll_works=no
8513fi
8514rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8515fi
8516fi
8517echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
8518echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
8519if test $ac_cv_func_strcoll_works = yes; then
8520
8521cat >>confdefs.h <<\_ACEOF
8522#define HAVE_STRCOLL 1
8523_ACEOF
8524
8525fi
8526
8527
8528# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8529# for constant arguments. Useless!
8530echo "$as_me:$LINENO: checking for working alloca.h" >&5
8531echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8532if test "${ac_cv_working_alloca_h+set}" = set; then
8533 echo $ECHO_N "(cached) $ECHO_C" >&6
8534else
8535 cat >conftest.$ac_ext <<_ACEOF
8536/* confdefs.h. */
8537_ACEOF
8538cat confdefs.h >>conftest.$ac_ext
8539cat >>conftest.$ac_ext <<_ACEOF
8540/* end confdefs.h. */
8541#include <alloca.h>
8542int
8543main ()
8544{
8545char *p = (char *) alloca (2 * sizeof (int));
8546 ;
8547 return 0;
8548}
8549_ACEOF
8550rm -f conftest.$ac_objext conftest$ac_exeext
8551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8552 (eval $ac_link) 2>conftest.er1
8553 ac_status=$?
8554 grep -v '^ *+' conftest.er1 >conftest.err
8555 rm -f conftest.er1
8556 cat conftest.err >&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); } &&
8559 { ac_try='test -z "$ac_c_werror_flag"
8560 || test ! -s conftest.err'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 (eval $ac_try) 2>&5
8563 ac_status=$?
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; } &&
8566 { ac_try='test -s conftest$ac_exeext'
8567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8568 (eval $ac_try) 2>&5
8569 ac_status=$?
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); }; }; then
8572 ac_cv_working_alloca_h=yes
8573else
8574 echo "$as_me: failed program was:" >&5
8575sed 's/^/| /' conftest.$ac_ext >&5
8576
8577ac_cv_working_alloca_h=no
8578fi
8579rm -f conftest.err conftest.$ac_objext \
8580 conftest$ac_exeext conftest.$ac_ext
8581fi
8582echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8583echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8584if test $ac_cv_working_alloca_h = yes; then
8585
8586cat >>confdefs.h <<\_ACEOF
8587#define HAVE_ALLOCA_H 1
8588_ACEOF
8589
8590fi
8591
8592echo "$as_me:$LINENO: checking for alloca" >&5
8593echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8594if test "${ac_cv_func_alloca_works+set}" = set; then
8595 echo $ECHO_N "(cached) $ECHO_C" >&6
8596else
8597 cat >conftest.$ac_ext <<_ACEOF
8598/* confdefs.h. */
8599_ACEOF
8600cat confdefs.h >>conftest.$ac_ext
8601cat >>conftest.$ac_ext <<_ACEOF
8602/* end confdefs.h. */
8603#ifdef __GNUC__
8604# define alloca __builtin_alloca
8605#else
8606# ifdef _MSC_VER
8607# include <malloc.h>
8608# define alloca _alloca
8609# else
8610# if HAVE_ALLOCA_H
8611# include <alloca.h>
8612# else
8613# ifdef _AIX
8614 #pragma alloca
8615# else
8616# ifndef alloca /* predefined by HP cc +Olibcalls */
8617char *alloca ();
8618# endif
8619# endif
8620# endif
8621# endif
8622#endif
8623
8624int
8625main ()
8626{
8627char *p = (char *) alloca (1);
8628 ;
8629 return 0;
8630}
8631_ACEOF
8632rm -f conftest.$ac_objext conftest$ac_exeext
8633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8634 (eval $ac_link) 2>conftest.er1
8635 ac_status=$?
8636 grep -v '^ *+' conftest.er1 >conftest.err
8637 rm -f conftest.er1
8638 cat conftest.err >&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); } &&
8641 { ac_try='test -z "$ac_c_werror_flag"
8642 || test ! -s conftest.err'
8643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8644 (eval $ac_try) 2>&5
8645 ac_status=$?
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); }; } &&
8648 { ac_try='test -s conftest$ac_exeext'
8649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650 (eval $ac_try) 2>&5
8651 ac_status=$?
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); }; }; then
8654 ac_cv_func_alloca_works=yes
8655else
8656 echo "$as_me: failed program was:" >&5
8657sed 's/^/| /' conftest.$ac_ext >&5
8658
8659ac_cv_func_alloca_works=no
8660fi
8661rm -f conftest.err conftest.$ac_objext \
8662 conftest$ac_exeext conftest.$ac_ext
8663fi
8664echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8665echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8666
8667if test $ac_cv_func_alloca_works = yes; then
8668
8669cat >>confdefs.h <<\_ACEOF
8670#define HAVE_ALLOCA 1
8671_ACEOF
8672
8673else
8674 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8675# that cause trouble. Some versions do not even contain alloca or
8676# contain a buggy version. If you still want to use their alloca,
8677# use ar to extract alloca.o from them instead of compiling alloca.c.
8678
8679ALLOCA=alloca.$ac_objext
8680
8681cat >>confdefs.h <<\_ACEOF
8682#define C_ALLOCA 1
8683_ACEOF
8684
8685
8686echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8687echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8688if test "${ac_cv_os_cray+set}" = set; then
8689 echo $ECHO_N "(cached) $ECHO_C" >&6
8690else
8691 cat >conftest.$ac_ext <<_ACEOF
8692/* confdefs.h. */
8693_ACEOF
8694cat confdefs.h >>conftest.$ac_ext
8695cat >>conftest.$ac_ext <<_ACEOF
8696/* end confdefs.h. */
8697#if defined(CRAY) && ! defined(CRAY2)
8698webecray
8699#else
8700wenotbecray
8701#endif
8702
8703_ACEOF
8704if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8705 $EGREP "webecray" >/dev/null 2>&1; then
8706 ac_cv_os_cray=yes
8707else
8708 ac_cv_os_cray=no
8709fi
8710rm -f conftest*
8711
8712fi
8713echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8714echo "${ECHO_T}$ac_cv_os_cray" >&6
8715if test $ac_cv_os_cray = yes; then
8716 for ac_func in _getb67 GETB67 getb67; do
8717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8718echo "$as_me:$LINENO: checking for $ac_func" >&5
8719echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8720if eval "test \"\${$as_ac_var+set}\" = set"; then
8721 echo $ECHO_N "(cached) $ECHO_C" >&6
8722else
8723 cat >conftest.$ac_ext <<_ACEOF
8724/* confdefs.h. */
8725_ACEOF
8726cat confdefs.h >>conftest.$ac_ext
8727cat >>conftest.$ac_ext <<_ACEOF
8728/* end confdefs.h. */
8729/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8731#define $ac_func innocuous_$ac_func
8732
8733/* System header to define __stub macros and hopefully few prototypes,
8734 which can conflict with char $ac_func (); below.
8735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8736 <limits.h> exists even on freestanding compilers. */
8737
8738#ifdef __STDC__
8739# include <limits.h>
8740#else
8741# include <assert.h>
8742#endif
8743
8744#undef $ac_func
8745
8746/* Override any gcc2 internal prototype to avoid an error. */
8747#ifdef __cplusplus
8748extern "C"
8749{
8750#endif
8751/* We use char because int might match the return type of a gcc2
8752 builtin and then its argument prototype would still apply. */
8753char $ac_func ();
8754/* The GNU C library defines this for functions which it implements
8755 to always fail with ENOSYS. Some functions are actually named
8756 something starting with __ and the normal name is an alias. */
8757#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8758choke me
8759#else
8760char (*f) () = $ac_func;
8761#endif
8762#ifdef __cplusplus
8763}
8764#endif
8765
8766int
8767main ()
8768{
8769return f != $ac_func;
8770 ;
8771 return 0;
8772}
8773_ACEOF
8774rm -f conftest.$ac_objext conftest$ac_exeext
8775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8776 (eval $ac_link) 2>conftest.er1
8777 ac_status=$?
8778 grep -v '^ *+' conftest.er1 >conftest.err
8779 rm -f conftest.er1
8780 cat conftest.err >&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); } &&
8783 { ac_try='test -z "$ac_c_werror_flag"
8784 || test ! -s conftest.err'
8785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8786 (eval $ac_try) 2>&5
8787 ac_status=$?
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); }; } &&
8790 { ac_try='test -s conftest$ac_exeext'
8791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8792 (eval $ac_try) 2>&5
8793 ac_status=$?
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); }; }; then
8796 eval "$as_ac_var=yes"
8797else
8798 echo "$as_me: failed program was:" >&5
8799sed 's/^/| /' conftest.$ac_ext >&5
8800
8801eval "$as_ac_var=no"
8802fi
8803rm -f conftest.err conftest.$ac_objext \
8804 conftest$ac_exeext conftest.$ac_ext
8805fi
8806echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8807echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8808if test `eval echo '${'$as_ac_var'}'` = yes; then
8809
8810cat >>confdefs.h <<_ACEOF
8811#define CRAY_STACKSEG_END $ac_func
8812_ACEOF
8813
8814 break
8815fi
8816
8817 done
8818fi
8819
8820echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8821echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8822if test "${ac_cv_c_stack_direction+set}" = set; then
8823 echo $ECHO_N "(cached) $ECHO_C" >&6
8824else
8825 if test "$cross_compiling" = yes; then
8826 ac_cv_c_stack_direction=0
8827else
8828 cat >conftest.$ac_ext <<_ACEOF
8829/* confdefs.h. */
8830_ACEOF
8831cat confdefs.h >>conftest.$ac_ext
8832cat >>conftest.$ac_ext <<_ACEOF
8833/* end confdefs.h. */
8834int
8835find_stack_direction ()
8836{
8837 static char *addr = 0;
8838 auto char dummy;
8839 if (addr == 0)
8840 {
8841 addr = &dummy;
8842 return find_stack_direction ();
8843 }
8844 else
8845 return (&dummy > addr) ? 1 : -1;
8846}
8847
8848int
8849main ()
8850{
8851 exit (find_stack_direction () < 0);
8852}
8853_ACEOF
8854rm -f conftest$ac_exeext
8855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8856 (eval $ac_link) 2>&5
8857 ac_status=$?
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861 (eval $ac_try) 2>&5
8862 ac_status=$?
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); }; }; then
8865 ac_cv_c_stack_direction=1
8866else
8867 echo "$as_me: program exited with status $ac_status" >&5
8868echo "$as_me: failed program was:" >&5
8869sed 's/^/| /' conftest.$ac_ext >&5
8870
8871( exit $ac_status )
8872ac_cv_c_stack_direction=-1
8873fi
8874rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8875fi
8876fi
8877echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8878echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8879
8880cat >>confdefs.h <<_ACEOF
8881#define STACK_DIRECTION $ac_cv_c_stack_direction
8882_ACEOF
8883
8884
8885fi
8886
8887
8888
8889for ac_header in unistd.h vfork.h
8890do
8891as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8892if eval "test \"\${$as_ac_Header+set}\" = set"; then
8893 echo "$as_me:$LINENO: checking for $ac_header" >&5
8894echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8895if eval "test \"\${$as_ac_Header+set}\" = set"; then
8896 echo $ECHO_N "(cached) $ECHO_C" >&6
8897fi
8898echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8899echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8900else
8901 # Is the header compilable?
8902echo "$as_me:$LINENO: checking $ac_header usability" >&5
8903echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8904cat >conftest.$ac_ext <<_ACEOF
8905/* confdefs.h. */
8906_ACEOF
8907cat confdefs.h >>conftest.$ac_ext
8908cat >>conftest.$ac_ext <<_ACEOF
8909/* end confdefs.h. */
8910$ac_includes_default
8911#include <$ac_header>
8912_ACEOF
8913rm -f conftest.$ac_objext
8914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8915 (eval $ac_compile) 2>conftest.er1
8916 ac_status=$?
8917 grep -v '^ *+' conftest.er1 >conftest.err
8918 rm -f conftest.er1
8919 cat conftest.err >&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); } &&
8922 { ac_try='test -z "$ac_c_werror_flag"
8923 || test ! -s conftest.err'
8924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8925 (eval $ac_try) 2>&5
8926 ac_status=$?
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); }; } &&
8929 { ac_try='test -s conftest.$ac_objext'
8930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8931 (eval $ac_try) 2>&5
8932 ac_status=$?
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); }; }; then
8935 ac_header_compiler=yes
8936else
8937 echo "$as_me: failed program was:" >&5
8938sed 's/^/| /' conftest.$ac_ext >&5
8939
8940ac_header_compiler=no
8941fi
8942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8943echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8944echo "${ECHO_T}$ac_header_compiler" >&6
8945
8946# Is the header present?
8947echo "$as_me:$LINENO: checking $ac_header presence" >&5
8948echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8949cat >conftest.$ac_ext <<_ACEOF
8950/* confdefs.h. */
8951_ACEOF
8952cat confdefs.h >>conftest.$ac_ext
8953cat >>conftest.$ac_ext <<_ACEOF
8954/* end confdefs.h. */
8955#include <$ac_header>
8956_ACEOF
8957if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8959 ac_status=$?
8960 grep -v '^ *+' conftest.er1 >conftest.err
8961 rm -f conftest.er1
8962 cat conftest.err >&5
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); } >/dev/null; then
8965 if test -s conftest.err; then
8966 ac_cpp_err=$ac_c_preproc_warn_flag
8967 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8968 else
8969 ac_cpp_err=
8970 fi
8971else
8972 ac_cpp_err=yes
8973fi
8974if test -z "$ac_cpp_err"; then
8975 ac_header_preproc=yes
8976else
8977 echo "$as_me: failed program was:" >&5
8978sed 's/^/| /' conftest.$ac_ext >&5
8979
8980 ac_header_preproc=no
8981fi
8982rm -f conftest.err conftest.$ac_ext
8983echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8984echo "${ECHO_T}$ac_header_preproc" >&6
8985
8986# So? What about this header?
8987case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8988 yes:no: )
8989 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8990echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8992echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8993 ac_header_preproc=yes
8994 ;;
8995 no:yes:* )
8996 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8997echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8998 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8999echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9000 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9001echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9002 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9003echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9005echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9006 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9007echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9008 (
9009 cat <<\_ASBOX
9010## ------------------------------- ##
9011## Report this to [email protected] ##
9012## ------------------------------- ##
9013_ASBOX
9014 ) |
9015 sed "s/^/$as_me: WARNING: /" >&2
9016 ;;
9017esac
9018echo "$as_me:$LINENO: checking for $ac_header" >&5
9019echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9020if eval "test \"\${$as_ac_Header+set}\" = set"; then
9021 echo $ECHO_N "(cached) $ECHO_C" >&6
9022else
9023 eval "$as_ac_Header=\$ac_header_preproc"
9024fi
9025echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9026echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9027
9028fi
9029if test `eval echo '${'$as_ac_Header'}'` = yes; then
9030 cat >>confdefs.h <<_ACEOF
9031#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9032_ACEOF
9033
9034fi
9035
9036done
9037
9038
9039
9040for ac_func in fork vfork
9041do
9042as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9043echo "$as_me:$LINENO: checking for $ac_func" >&5
9044echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9045if eval "test \"\${$as_ac_var+set}\" = set"; then
9046 echo $ECHO_N "(cached) $ECHO_C" >&6
9047else
9048 cat >conftest.$ac_ext <<_ACEOF
9049/* confdefs.h. */
9050_ACEOF
9051cat confdefs.h >>conftest.$ac_ext
9052cat >>conftest.$ac_ext <<_ACEOF
9053/* end confdefs.h. */
9054/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9056#define $ac_func innocuous_$ac_func
9057
9058/* System header to define __stub macros and hopefully few prototypes,
9059 which can conflict with char $ac_func (); below.
9060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9061 <limits.h> exists even on freestanding compilers. */
9062
9063#ifdef __STDC__
9064# include <limits.h>
9065#else
9066# include <assert.h>
9067#endif
9068
9069#undef $ac_func
9070
9071/* Override any gcc2 internal prototype to avoid an error. */
9072#ifdef __cplusplus
9073extern "C"
9074{
9075#endif
9076/* We use char because int might match the return type of a gcc2
9077 builtin and then its argument prototype would still apply. */
9078char $ac_func ();
9079/* The GNU C library defines this for functions which it implements
9080 to always fail with ENOSYS. Some functions are actually named
9081 something starting with __ and the normal name is an alias. */
9082#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9083choke me
9084#else
9085char (*f) () = $ac_func;
9086#endif
9087#ifdef __cplusplus
9088}
9089#endif
9090
9091int
9092main ()
9093{
9094return f != $ac_func;
9095 ;
9096 return 0;
9097}
9098_ACEOF
9099rm -f conftest.$ac_objext conftest$ac_exeext
9100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9101 (eval $ac_link) 2>conftest.er1
9102 ac_status=$?
9103 grep -v '^ *+' conftest.er1 >conftest.err
9104 rm -f conftest.er1
9105 cat conftest.err >&5
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); } &&
9108 { ac_try='test -z "$ac_c_werror_flag"
9109 || test ! -s conftest.err'
9110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111 (eval $ac_try) 2>&5
9112 ac_status=$?
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); }; } &&
9115 { ac_try='test -s conftest$ac_exeext'
9116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117 (eval $ac_try) 2>&5
9118 ac_status=$?
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); }; }; then
9121 eval "$as_ac_var=yes"
9122else
9123 echo "$as_me: failed program was:" >&5
9124sed 's/^/| /' conftest.$ac_ext >&5
9125
9126eval "$as_ac_var=no"
9127fi
9128rm -f conftest.err conftest.$ac_objext \
9129 conftest$ac_exeext conftest.$ac_ext
9130fi
9131echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9132echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9133if test `eval echo '${'$as_ac_var'}'` = yes; then
9134 cat >>confdefs.h <<_ACEOF
9135#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9136_ACEOF
9137
9138fi
9139done
9140
9141if test "x$ac_cv_func_fork" = xyes; then
9142 echo "$as_me:$LINENO: checking for working fork" >&5
9143echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9144if test "${ac_cv_func_fork_works+set}" = set; then
9145 echo $ECHO_N "(cached) $ECHO_C" >&6
9146else
9147 if test "$cross_compiling" = yes; then
9148 ac_cv_func_fork_works=cross
9149else
9150 cat >conftest.$ac_ext <<_ACEOF
9151/* By Ruediger Kuhlmann. */
9152 #include <sys/types.h>
9153 #if HAVE_UNISTD_H
9154 # include <unistd.h>
9155 #endif
9156 /* Some systems only have a dummy stub for fork() */
9157 int main ()
9158 {
9159 if (fork() < 0)
9160 exit (1);
9161 exit (0);
9162 }
9163_ACEOF
9164rm -f conftest$ac_exeext
9165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9166 (eval $ac_link) 2>&5
9167 ac_status=$?
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9171 (eval $ac_try) 2>&5
9172 ac_status=$?
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); }; }; then
9175 ac_cv_func_fork_works=yes
9176else
9177 echo "$as_me: program exited with status $ac_status" >&5
9178echo "$as_me: failed program was:" >&5
9179sed 's/^/| /' conftest.$ac_ext >&5
9180
9181( exit $ac_status )
9182ac_cv_func_fork_works=no
9183fi
9184rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9185fi
9186fi
9187echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9188echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9189
9190else
9191 ac_cv_func_fork_works=$ac_cv_func_fork
9192fi
9193if test "x$ac_cv_func_fork_works" = xcross; then
9194 case $host in
9195 *-*-amigaos* | *-*-msdosdjgpp*)
9196 # Override, as these systems have only a dummy fork() stub
9197 ac_cv_func_fork_works=no
9198 ;;
9199 *)
9200 ac_cv_func_fork_works=yes
9201 ;;
9202 esac
9203 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9204echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9205fi
9206ac_cv_func_vfork_works=$ac_cv_func_vfork
9207if test "x$ac_cv_func_vfork" = xyes; then
9208 echo "$as_me:$LINENO: checking for working vfork" >&5
9209echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
9210if test "${ac_cv_func_vfork_works+set}" = set; then
9211 echo $ECHO_N "(cached) $ECHO_C" >&6
9212else
9213 if test "$cross_compiling" = yes; then
9214 ac_cv_func_vfork_works=cross
9215else
9216 cat >conftest.$ac_ext <<_ACEOF
9217/* confdefs.h. */
9218_ACEOF
9219cat confdefs.h >>conftest.$ac_ext
9220cat >>conftest.$ac_ext <<_ACEOF
9221/* end confdefs.h. */
9222/* Thanks to Paul Eggert for this test. */
9223#include <stdio.h>
9224#include <stdlib.h>
9225#include <sys/types.h>
9226#include <sys/stat.h>
9227#include <sys/wait.h>
9228#if HAVE_UNISTD_H
9229# include <unistd.h>
9230#endif
9231#if HAVE_VFORK_H
9232# include <vfork.h>
9233#endif
9234/* On some sparc systems, changes by the child to local and incoming
9235 argument registers are propagated back to the parent. The compiler
9236 is told about this with #include <vfork.h>, but some compilers
9237 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9238 static variable whose address is put into a register that is
9239 clobbered by the vfork. */
9240static void
9241#ifdef __cplusplus
9242sparc_address_test (int arg)
9243# else
9244sparc_address_test (arg) int arg;
9245#endif
9246{
9247 static pid_t child;
9248 if (!child) {
9249 child = vfork ();
9250 if (child < 0) {
9251 perror ("vfork");
9252 _exit(2);
9253 }
9254 if (!child) {
9255 arg = getpid();
9256 write(-1, "", 0);
9257 _exit (arg);
9258 }
9259 }
9260}
9261
9262int
9263main ()
9264{
9265 pid_t parent = getpid ();
9266 pid_t child;
9267
9268 sparc_address_test (0);
9269
9270 child = vfork ();
9271
9272 if (child == 0) {
9273 /* Here is another test for sparc vfork register problems. This
9274 test uses lots of local variables, at least as many local
9275 variables as main has allocated so far including compiler
9276 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9277 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9278 reuse the register of parent for one of the local variables,
9279 since it will think that parent can't possibly be used any more
9280 in this routine. Assigning to the local variable will thus
9281 munge parent in the parent process. */
9282 pid_t
9283 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9284 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9285 /* Convince the compiler that p..p7 are live; otherwise, it might
9286 use the same hardware register for all 8 local variables. */
9287 if (p != p1 || p != p2 || p != p3 || p != p4
9288 || p != p5 || p != p6 || p != p7)
9289 _exit(1);
9290
9291 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9292 from child file descriptors. If the child closes a descriptor
9293 before it execs or exits, this munges the parent's descriptor
9294 as well. Test for this by closing stdout in the child. */
9295 _exit(close(fileno(stdout)) != 0);
9296 } else {
9297 int status;
9298 struct stat st;
9299
9300 while (wait(&status) != child)
9301 ;
9302 exit(
9303 /* Was there some problem with vforking? */
9304 child < 0
9305
9306 /* Did the child fail? (This shouldn't happen.) */
9307 || status
9308
9309 /* Did the vfork/compiler bug occur? */
9310 || parent != getpid()
9311
9312 /* Did the file descriptor bug occur? */
9313 || fstat(fileno(stdout), &st) != 0
9314 );
9315 }
9316}
9317_ACEOF
9318rm -f conftest$ac_exeext
9319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9320 (eval $ac_link) 2>&5
9321 ac_status=$?
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9325 (eval $ac_try) 2>&5
9326 ac_status=$?
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); }; }; then
9329 ac_cv_func_vfork_works=yes
9330else
9331 echo "$as_me: program exited with status $ac_status" >&5
9332echo "$as_me: failed program was:" >&5
9333sed 's/^/| /' conftest.$ac_ext >&5
9334
9335( exit $ac_status )
9336ac_cv_func_vfork_works=no
9337fi
9338rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9339fi
9340fi
9341echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9342echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
9343
9344fi;
9345if test "x$ac_cv_func_fork_works" = xcross; then
9346 ac_cv_func_vfork_works=$ac_cv_func_vfork
9347 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9348echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9349fi
9350
9351if test "x$ac_cv_func_vfork_works" = xyes; then
9352
9353cat >>confdefs.h <<\_ACEOF
9354#define HAVE_WORKING_VFORK 1
9355_ACEOF
9356
9357else
9358
9359cat >>confdefs.h <<\_ACEOF
9360#define vfork fork
9361_ACEOF
9362
9363fi
9364if test "x$ac_cv_func_fork_works" = xyes; then
9365
9366cat >>confdefs.h <<\_ACEOF
9367#define HAVE_WORKING_FORK 1
9368_ACEOF
9369
9370fi
9371
9372
9373for ac_func in vprintf
9374do
9375as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9376echo "$as_me:$LINENO: checking for $ac_func" >&5
9377echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9378if eval "test \"\${$as_ac_var+set}\" = set"; then
9379 echo $ECHO_N "(cached) $ECHO_C" >&6
9380else
9381 cat >conftest.$ac_ext <<_ACEOF
9382/* confdefs.h. */
9383_ACEOF
9384cat confdefs.h >>conftest.$ac_ext
9385cat >>conftest.$ac_ext <<_ACEOF
9386/* end confdefs.h. */
9387/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9389#define $ac_func innocuous_$ac_func
9390
9391/* System header to define __stub macros and hopefully few prototypes,
9392 which can conflict with char $ac_func (); below.
9393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9394 <limits.h> exists even on freestanding compilers. */
9395
9396#ifdef __STDC__
9397# include <limits.h>
9398#else
9399# include <assert.h>
9400#endif
9401
9402#undef $ac_func
9403
9404/* Override any gcc2 internal prototype to avoid an error. */
9405#ifdef __cplusplus
9406extern "C"
9407{
9408#endif
9409/* We use char because int might match the return type of a gcc2
9410 builtin and then its argument prototype would still apply. */
9411char $ac_func ();
9412/* The GNU C library defines this for functions which it implements
9413 to always fail with ENOSYS. Some functions are actually named
9414 something starting with __ and the normal name is an alias. */
9415#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9416choke me
9417#else
9418char (*f) () = $ac_func;
9419#endif
9420#ifdef __cplusplus
9421}
9422#endif
9423
9424int
9425main ()
9426{
9427return f != $ac_func;
9428 ;
9429 return 0;
9430}
9431_ACEOF
9432rm -f conftest.$ac_objext conftest$ac_exeext
9433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9434 (eval $ac_link) 2>conftest.er1
9435 ac_status=$?
9436 grep -v '^ *+' conftest.er1 >conftest.err
9437 rm -f conftest.er1
9438 cat conftest.err >&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); } &&
9441 { ac_try='test -z "$ac_c_werror_flag"
9442 || test ! -s conftest.err'
9443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9444 (eval $ac_try) 2>&5
9445 ac_status=$?
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); }; } &&
9448 { ac_try='test -s conftest$ac_exeext'
9449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9450 (eval $ac_try) 2>&5
9451 ac_status=$?
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); }; }; then
9454 eval "$as_ac_var=yes"
9455else
9456 echo "$as_me: failed program was:" >&5
9457sed 's/^/| /' conftest.$ac_ext >&5
9458
9459eval "$as_ac_var=no"
9460fi
9461rm -f conftest.err conftest.$ac_objext \
9462 conftest$ac_exeext conftest.$ac_ext
9463fi
9464echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9465echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9466if test `eval echo '${'$as_ac_var'}'` = yes; then
9467 cat >>confdefs.h <<_ACEOF
9468#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9469_ACEOF
9470
9471echo "$as_me:$LINENO: checking for _doprnt" >&5
9472echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
9473if test "${ac_cv_func__doprnt+set}" = set; then
9474 echo $ECHO_N "(cached) $ECHO_C" >&6
9475else
9476 cat >conftest.$ac_ext <<_ACEOF
9477/* confdefs.h. */
9478_ACEOF
9479cat confdefs.h >>conftest.$ac_ext
9480cat >>conftest.$ac_ext <<_ACEOF
9481/* end confdefs.h. */
9482/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
9483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9484#define _doprnt innocuous__doprnt
9485
9486/* System header to define __stub macros and hopefully few prototypes,
9487 which can conflict with char _doprnt (); below.
9488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9489 <limits.h> exists even on freestanding compilers. */
9490
9491#ifdef __STDC__
9492# include <limits.h>
9493#else
9494# include <assert.h>
9495#endif
9496
9497#undef _doprnt
9498
9499/* Override any gcc2 internal prototype to avoid an error. */
9500#ifdef __cplusplus
9501extern "C"
9502{
9503#endif
9504/* We use char because int might match the return type of a gcc2
9505 builtin and then its argument prototype would still apply. */
9506char _doprnt ();
9507/* The GNU C library defines this for functions which it implements
9508 to always fail with ENOSYS. Some functions are actually named
9509 something starting with __ and the normal name is an alias. */
9510#if defined (__stub__doprnt) || defined (__stub____doprnt)
9511choke me
9512#else
9513char (*f) () = _doprnt;
9514#endif
9515#ifdef __cplusplus
9516}
9517#endif
9518
9519int
9520main ()
9521{
9522return f != _doprnt;
9523 ;
9524 return 0;
9525}
9526_ACEOF
9527rm -f conftest.$ac_objext conftest$ac_exeext
9528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9529 (eval $ac_link) 2>conftest.er1
9530 ac_status=$?
9531 grep -v '^ *+' conftest.er1 >conftest.err
9532 rm -f conftest.er1
9533 cat conftest.err >&5
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); } &&
9536 { ac_try='test -z "$ac_c_werror_flag"
9537 || test ! -s conftest.err'
9538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539 (eval $ac_try) 2>&5
9540 ac_status=$?
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); }; } &&
9543 { ac_try='test -s conftest$ac_exeext'
9544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545 (eval $ac_try) 2>&5
9546 ac_status=$?
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); }; }; then
9549 ac_cv_func__doprnt=yes
9550else
9551 echo "$as_me: failed program was:" >&5
9552sed 's/^/| /' conftest.$ac_ext >&5
9553
9554ac_cv_func__doprnt=no
9555fi
9556rm -f conftest.err conftest.$ac_objext \
9557 conftest$ac_exeext conftest.$ac_ext
9558fi
9559echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9560echo "${ECHO_T}$ac_cv_func__doprnt" >&6
9561if test $ac_cv_func__doprnt = yes; then
9562
9563cat >>confdefs.h <<\_ACEOF
9564#define HAVE_DOPRNT 1
9565_ACEOF
9566
9567fi
9568
9569fi
9570done
9571
9572
9573echo "$as_me:$LINENO: checking whether closedir returns void" >&5
9574echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
9575if test "${ac_cv_func_closedir_void+set}" = set; then
9576 echo $ECHO_N "(cached) $ECHO_C" >&6
9577else
9578 if test "$cross_compiling" = yes; then
9579 ac_cv_func_closedir_void=yes
9580else
9581 cat >conftest.$ac_ext <<_ACEOF
9582/* confdefs.h. */
9583_ACEOF
9584cat confdefs.h >>conftest.$ac_ext
9585cat >>conftest.$ac_ext <<_ACEOF
9586/* end confdefs.h. */
9587$ac_includes_default
9588#include <$ac_header_dirent>
9589#ifndef __cplusplus
9590int closedir ();
9591#endif
9592
9593int
9594main ()
9595{
9596exit (closedir (opendir (".")) != 0);
9597 ;
9598 return 0;
9599}
9600_ACEOF
9601rm -f conftest$ac_exeext
9602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9603 (eval $ac_link) 2>&5
9604 ac_status=$?
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9608 (eval $ac_try) 2>&5
9609 ac_status=$?
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); }; }; then
9612 ac_cv_func_closedir_void=no
9613else
9614 echo "$as_me: program exited with status $ac_status" >&5
9615echo "$as_me: failed program was:" >&5
9616sed 's/^/| /' conftest.$ac_ext >&5
9617
9618( exit $ac_status )
9619ac_cv_func_closedir_void=yes
9620fi
9621rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9622fi
9623fi
9624echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
9625echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
9626if test $ac_cv_func_closedir_void = yes; then
9627
9628cat >>confdefs.h <<\_ACEOF
9629#define CLOSEDIR_VOID 1
9630_ACEOF
9631
9632fi
9633
9634
9635ac_have_func=no # yes means we've found a way to get the load average.
9636
9637# Make sure getloadavg.c is where it belongs, at configure-time.
9638test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
9639 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
9640echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
9641 { (exit 1); exit 1; }; }
9642
9643ac_save_LIBS=$LIBS
9644
9645# Check for getloadavg, but be sure not to touch the cache variable.
9646(echo "$as_me:$LINENO: checking for getloadavg" >&5
9647echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
9648if test "${ac_cv_func_getloadavg+set}" = set; then
9649 echo $ECHO_N "(cached) $ECHO_C" >&6
9650else
9651 cat >conftest.$ac_ext <<_ACEOF
9652/* confdefs.h. */
9653_ACEOF
9654cat confdefs.h >>conftest.$ac_ext
9655cat >>conftest.$ac_ext <<_ACEOF
9656/* end confdefs.h. */
9657/* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
9658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9659#define getloadavg innocuous_getloadavg
9660
9661/* System header to define __stub macros and hopefully few prototypes,
9662 which can conflict with char getloadavg (); below.
9663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9664 <limits.h> exists even on freestanding compilers. */
9665
9666#ifdef __STDC__
9667# include <limits.h>
9668#else
9669# include <assert.h>
9670#endif
9671
9672#undef getloadavg
9673
9674/* Override any gcc2 internal prototype to avoid an error. */
9675#ifdef __cplusplus
9676extern "C"
9677{
9678#endif
9679/* We use char because int might match the return type of a gcc2
9680 builtin and then its argument prototype would still apply. */
9681char getloadavg ();
9682/* The GNU C library defines this for functions which it implements
9683 to always fail with ENOSYS. Some functions are actually named
9684 something starting with __ and the normal name is an alias. */
9685#if defined (__stub_getloadavg) || defined (__stub___getloadavg)
9686choke me
9687#else
9688char (*f) () = getloadavg;
9689#endif
9690#ifdef __cplusplus
9691}
9692#endif
9693
9694int
9695main ()
9696{
9697return f != getloadavg;
9698 ;
9699 return 0;
9700}
9701_ACEOF
9702rm -f conftest.$ac_objext conftest$ac_exeext
9703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9704 (eval $ac_link) 2>conftest.er1
9705 ac_status=$?
9706 grep -v '^ *+' conftest.er1 >conftest.err
9707 rm -f conftest.er1
9708 cat conftest.err >&5
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); } &&
9711 { ac_try='test -z "$ac_c_werror_flag"
9712 || test ! -s conftest.err'
9713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9714 (eval $ac_try) 2>&5
9715 ac_status=$?
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); }; } &&
9718 { ac_try='test -s conftest$ac_exeext'
9719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9720 (eval $ac_try) 2>&5
9721 ac_status=$?
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); }; }; then
9724 ac_cv_func_getloadavg=yes
9725else
9726 echo "$as_me: failed program was:" >&5
9727sed 's/^/| /' conftest.$ac_ext >&5
9728
9729ac_cv_func_getloadavg=no
9730fi
9731rm -f conftest.err conftest.$ac_objext \
9732 conftest$ac_exeext conftest.$ac_ext
9733fi
9734echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
9735echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
9736if test $ac_cv_func_getloadavg = yes; then
9737 exit 0
9738else
9739 exit 1
9740fi
9741) && ac_have_func=yes
9742
9743# On HPUX9, an unprivileged user can get load averages through this function.
9744
9745for ac_func in pstat_getdynamic
9746do
9747as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9748echo "$as_me:$LINENO: checking for $ac_func" >&5
9749echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9750if eval "test \"\${$as_ac_var+set}\" = set"; then
9751 echo $ECHO_N "(cached) $ECHO_C" >&6
9752else
9753 cat >conftest.$ac_ext <<_ACEOF
9754/* confdefs.h. */
9755_ACEOF
9756cat confdefs.h >>conftest.$ac_ext
9757cat >>conftest.$ac_ext <<_ACEOF
9758/* end confdefs.h. */
9759/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9761#define $ac_func innocuous_$ac_func
9762
9763/* System header to define __stub macros and hopefully few prototypes,
9764 which can conflict with char $ac_func (); below.
9765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9766 <limits.h> exists even on freestanding compilers. */
9767
9768#ifdef __STDC__
9769# include <limits.h>
9770#else
9771# include <assert.h>
9772#endif
9773
9774#undef $ac_func
9775
9776/* Override any gcc2 internal prototype to avoid an error. */
9777#ifdef __cplusplus
9778extern "C"
9779{
9780#endif
9781/* We use char because int might match the return type of a gcc2
9782 builtin and then its argument prototype would still apply. */
9783char $ac_func ();
9784/* The GNU C library defines this for functions which it implements
9785 to always fail with ENOSYS. Some functions are actually named
9786 something starting with __ and the normal name is an alias. */
9787#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9788choke me
9789#else
9790char (*f) () = $ac_func;
9791#endif
9792#ifdef __cplusplus
9793}
9794#endif
9795
9796int
9797main ()
9798{
9799return f != $ac_func;
9800 ;
9801 return 0;
9802}
9803_ACEOF
9804rm -f conftest.$ac_objext conftest$ac_exeext
9805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9806 (eval $ac_link) 2>conftest.er1
9807 ac_status=$?
9808 grep -v '^ *+' conftest.er1 >conftest.err
9809 rm -f conftest.er1
9810 cat conftest.err >&5
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); } &&
9813 { ac_try='test -z "$ac_c_werror_flag"
9814 || test ! -s conftest.err'
9815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9816 (eval $ac_try) 2>&5
9817 ac_status=$?
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); }; } &&
9820 { ac_try='test -s conftest$ac_exeext'
9821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822 (eval $ac_try) 2>&5
9823 ac_status=$?
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; }; then
9826 eval "$as_ac_var=yes"
9827else
9828 echo "$as_me: failed program was:" >&5
9829sed 's/^/| /' conftest.$ac_ext >&5
9830
9831eval "$as_ac_var=no"
9832fi
9833rm -f conftest.err conftest.$ac_objext \
9834 conftest$ac_exeext conftest.$ac_ext
9835fi
9836echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9837echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9838if test `eval echo '${'$as_ac_var'}'` = yes; then
9839 cat >>confdefs.h <<_ACEOF
9840#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9841_ACEOF
9842
9843fi
9844done
9845
9846
9847# Solaris has libkstat which does not require root.
9848
9849echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
9850echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
9851if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
9852 echo $ECHO_N "(cached) $ECHO_C" >&6
9853else
9854 ac_check_lib_save_LIBS=$LIBS
9855LIBS="-lkstat $LIBS"
9856cat >conftest.$ac_ext <<_ACEOF
9857/* confdefs.h. */
9858_ACEOF
9859cat confdefs.h >>conftest.$ac_ext
9860cat >>conftest.$ac_ext <<_ACEOF
9861/* end confdefs.h. */
9862
9863/* Override any gcc2 internal prototype to avoid an error. */
9864#ifdef __cplusplus
9865extern "C"
9866#endif
9867/* We use char because int might match the return type of a gcc2
9868 builtin and then its argument prototype would still apply. */
9869char kstat_open ();
9870int
9871main ()
9872{
9873kstat_open ();
9874 ;
9875 return 0;
9876}
9877_ACEOF
9878rm -f conftest.$ac_objext conftest$ac_exeext
9879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9880 (eval $ac_link) 2>conftest.er1
9881 ac_status=$?
9882 grep -v '^ *+' conftest.er1 >conftest.err
9883 rm -f conftest.er1
9884 cat conftest.err >&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); } &&
9887 { ac_try='test -z "$ac_c_werror_flag"
9888 || test ! -s conftest.err'
9889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9890 (eval $ac_try) 2>&5
9891 ac_status=$?
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); }; } &&
9894 { ac_try='test -s conftest$ac_exeext'
9895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9896 (eval $ac_try) 2>&5
9897 ac_status=$?
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); }; }; then
9900 ac_cv_lib_kstat_kstat_open=yes
9901else
9902 echo "$as_me: failed program was:" >&5
9903sed 's/^/| /' conftest.$ac_ext >&5
9904
9905ac_cv_lib_kstat_kstat_open=no
9906fi
9907rm -f conftest.err conftest.$ac_objext \
9908 conftest$ac_exeext conftest.$ac_ext
9909LIBS=$ac_check_lib_save_LIBS
9910fi
9911echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
9912echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
9913if test $ac_cv_lib_kstat_kstat_open = yes; then
9914 cat >>confdefs.h <<_ACEOF
9915#define HAVE_LIBKSTAT 1
9916_ACEOF
9917
9918 LIBS="-lkstat $LIBS"
9919
9920fi
9921
9922test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
9923
9924# Some systems with -lutil have (and need) -lkvm as well, some do not.
9925# On Solaris, -lkvm requires nlist from -lelf, so check that first
9926# to get the right answer into the cache.
9927# For kstat on solaris, we need libelf to force the definition of SVR4 below.
9928if test $ac_have_func = no; then
9929 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
9930echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
9931if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
9932 echo $ECHO_N "(cached) $ECHO_C" >&6
9933else
9934 ac_check_lib_save_LIBS=$LIBS
9935LIBS="-lelf $LIBS"
9936cat >conftest.$ac_ext <<_ACEOF
9937/* confdefs.h. */
9938_ACEOF
9939cat confdefs.h >>conftest.$ac_ext
9940cat >>conftest.$ac_ext <<_ACEOF
9941/* end confdefs.h. */
9942
9943/* Override any gcc2 internal prototype to avoid an error. */
9944#ifdef __cplusplus
9945extern "C"
9946#endif
9947/* We use char because int might match the return type of a gcc2
9948 builtin and then its argument prototype would still apply. */
9949char elf_begin ();
9950int
9951main ()
9952{
9953elf_begin ();
9954 ;
9955 return 0;
9956}
9957_ACEOF
9958rm -f conftest.$ac_objext conftest$ac_exeext
9959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9960 (eval $ac_link) 2>conftest.er1
9961 ac_status=$?
9962 grep -v '^ *+' conftest.er1 >conftest.err
9963 rm -f conftest.er1
9964 cat conftest.err >&5
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); } &&
9967 { ac_try='test -z "$ac_c_werror_flag"
9968 || test ! -s conftest.err'
9969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970 (eval $ac_try) 2>&5
9971 ac_status=$?
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); }; } &&
9974 { ac_try='test -s conftest$ac_exeext'
9975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976 (eval $ac_try) 2>&5
9977 ac_status=$?
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; }; then
9980 ac_cv_lib_elf_elf_begin=yes
9981else
9982 echo "$as_me: failed program was:" >&5
9983sed 's/^/| /' conftest.$ac_ext >&5
9984
9985ac_cv_lib_elf_elf_begin=no
9986fi
9987rm -f conftest.err conftest.$ac_objext \
9988 conftest$ac_exeext conftest.$ac_ext
9989LIBS=$ac_check_lib_save_LIBS
9990fi
9991echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
9992echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
9993if test $ac_cv_lib_elf_elf_begin = yes; then
9994 LIBS="-lelf $LIBS"
9995fi
9996
9997fi
9998if test $ac_have_func = no; then
9999 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
10000echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
10001if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
10002 echo $ECHO_N "(cached) $ECHO_C" >&6
10003else
10004 ac_check_lib_save_LIBS=$LIBS
10005LIBS="-lkvm $LIBS"
10006cat >conftest.$ac_ext <<_ACEOF
10007/* confdefs.h. */
10008_ACEOF
10009cat confdefs.h >>conftest.$ac_ext
10010cat >>conftest.$ac_ext <<_ACEOF
10011/* end confdefs.h. */
10012
10013/* Override any gcc2 internal prototype to avoid an error. */
10014#ifdef __cplusplus
10015extern "C"
10016#endif
10017/* We use char because int might match the return type of a gcc2
10018 builtin and then its argument prototype would still apply. */
10019char kvm_open ();
10020int
10021main ()
10022{
10023kvm_open ();
10024 ;
10025 return 0;
10026}
10027_ACEOF
10028rm -f conftest.$ac_objext conftest$ac_exeext
10029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10030 (eval $ac_link) 2>conftest.er1
10031 ac_status=$?
10032 grep -v '^ *+' conftest.er1 >conftest.err
10033 rm -f conftest.er1
10034 cat conftest.err >&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); } &&
10037 { ac_try='test -z "$ac_c_werror_flag"
10038 || test ! -s conftest.err'
10039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10040 (eval $ac_try) 2>&5
10041 ac_status=$?
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); }; } &&
10044 { ac_try='test -s conftest$ac_exeext'
10045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046 (eval $ac_try) 2>&5
10047 ac_status=$?
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); }; }; then
10050 ac_cv_lib_kvm_kvm_open=yes
10051else
10052 echo "$as_me: failed program was:" >&5
10053sed 's/^/| /' conftest.$ac_ext >&5
10054
10055ac_cv_lib_kvm_kvm_open=no
10056fi
10057rm -f conftest.err conftest.$ac_objext \
10058 conftest$ac_exeext conftest.$ac_ext
10059LIBS=$ac_check_lib_save_LIBS
10060fi
10061echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
10062echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
10063if test $ac_cv_lib_kvm_kvm_open = yes; then
10064 LIBS="-lkvm $LIBS"
10065fi
10066
10067 # Check for the 4.4BSD definition of getloadavg.
10068 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
10069echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
10070if test "${ac_cv_lib_util_getloadavg+set}" = set; then
10071 echo $ECHO_N "(cached) $ECHO_C" >&6
10072else
10073 ac_check_lib_save_LIBS=$LIBS
10074LIBS="-lutil $LIBS"
10075cat >conftest.$ac_ext <<_ACEOF
10076/* confdefs.h. */
10077_ACEOF
10078cat confdefs.h >>conftest.$ac_ext
10079cat >>conftest.$ac_ext <<_ACEOF
10080/* end confdefs.h. */
10081
10082/* Override any gcc2 internal prototype to avoid an error. */
10083#ifdef __cplusplus
10084extern "C"
10085#endif
10086/* We use char because int might match the return type of a gcc2
10087 builtin and then its argument prototype would still apply. */
10088char getloadavg ();
10089int
10090main ()
10091{
10092getloadavg ();
10093 ;
10094 return 0;
10095}
10096_ACEOF
10097rm -f conftest.$ac_objext conftest$ac_exeext
10098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10099 (eval $ac_link) 2>conftest.er1
10100 ac_status=$?
10101 grep -v '^ *+' conftest.er1 >conftest.err
10102 rm -f conftest.er1
10103 cat conftest.err >&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); } &&
10106 { ac_try='test -z "$ac_c_werror_flag"
10107 || test ! -s conftest.err'
10108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109 (eval $ac_try) 2>&5
10110 ac_status=$?
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; } &&
10113 { ac_try='test -s conftest$ac_exeext'
10114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10115 (eval $ac_try) 2>&5
10116 ac_status=$?
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); }; }; then
10119 ac_cv_lib_util_getloadavg=yes
10120else
10121 echo "$as_me: failed program was:" >&5
10122sed 's/^/| /' conftest.$ac_ext >&5
10123
10124ac_cv_lib_util_getloadavg=no
10125fi
10126rm -f conftest.err conftest.$ac_objext \
10127 conftest$ac_exeext conftest.$ac_ext
10128LIBS=$ac_check_lib_save_LIBS
10129fi
10130echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
10131echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
10132if test $ac_cv_lib_util_getloadavg = yes; then
10133 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
10134fi
10135
10136fi
10137
10138if test $ac_have_func = no; then
10139 # There is a commonly available library for RS/6000 AIX.
10140 # Since it is not a standard part of AIX, it might be installed locally.
10141 ac_getloadavg_LIBS=$LIBS
10142 LIBS="-L/usr/local/lib $LIBS"
10143 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
10144echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
10145if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
10146 echo $ECHO_N "(cached) $ECHO_C" >&6
10147else
10148 ac_check_lib_save_LIBS=$LIBS
10149LIBS="-lgetloadavg $LIBS"
10150cat >conftest.$ac_ext <<_ACEOF
10151/* confdefs.h. */
10152_ACEOF
10153cat confdefs.h >>conftest.$ac_ext
10154cat >>conftest.$ac_ext <<_ACEOF
10155/* end confdefs.h. */
10156
10157/* Override any gcc2 internal prototype to avoid an error. */
10158#ifdef __cplusplus
10159extern "C"
10160#endif
10161/* We use char because int might match the return type of a gcc2
10162 builtin and then its argument prototype would still apply. */
10163char getloadavg ();
10164int
10165main ()
10166{
10167getloadavg ();
10168 ;
10169 return 0;
10170}
10171_ACEOF
10172rm -f conftest.$ac_objext conftest$ac_exeext
10173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10174 (eval $ac_link) 2>conftest.er1
10175 ac_status=$?
10176 grep -v '^ *+' conftest.er1 >conftest.err
10177 rm -f conftest.er1
10178 cat conftest.err >&5
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); } &&
10181 { ac_try='test -z "$ac_c_werror_flag"
10182 || test ! -s conftest.err'
10183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10184 (eval $ac_try) 2>&5
10185 ac_status=$?
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); }; } &&
10188 { ac_try='test -s conftest$ac_exeext'
10189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10190 (eval $ac_try) 2>&5
10191 ac_status=$?
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); }; }; then
10194 ac_cv_lib_getloadavg_getloadavg=yes
10195else
10196 echo "$as_me: failed program was:" >&5
10197sed 's/^/| /' conftest.$ac_ext >&5
10198
10199ac_cv_lib_getloadavg_getloadavg=no
10200fi
10201rm -f conftest.err conftest.$ac_objext \
10202 conftest$ac_exeext conftest.$ac_ext
10203LIBS=$ac_check_lib_save_LIBS
10204fi
10205echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
10206echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
10207if test $ac_cv_lib_getloadavg_getloadavg = yes; then
10208 LIBS="-lgetloadavg $LIBS"
10209else
10210 LIBS=$ac_getloadavg_LIBS
10211fi
10212
10213fi
10214
10215# Make sure it is really in the library, if we think we found it,
10216# otherwise set up the replacement function.
10217
10218for ac_func in getloadavg
10219do
10220as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10221echo "$as_me:$LINENO: checking for $ac_func" >&5
10222echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10223if eval "test \"\${$as_ac_var+set}\" = set"; then
10224 echo $ECHO_N "(cached) $ECHO_C" >&6
10225else
10226 cat >conftest.$ac_ext <<_ACEOF
10227/* confdefs.h. */
10228_ACEOF
10229cat confdefs.h >>conftest.$ac_ext
10230cat >>conftest.$ac_ext <<_ACEOF
10231/* end confdefs.h. */
10232/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10234#define $ac_func innocuous_$ac_func
10235
10236/* System header to define __stub macros and hopefully few prototypes,
10237 which can conflict with char $ac_func (); below.
10238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10239 <limits.h> exists even on freestanding compilers. */
10240
10241#ifdef __STDC__
10242# include <limits.h>
10243#else
10244# include <assert.h>
10245#endif
10246
10247#undef $ac_func
10248
10249/* Override any gcc2 internal prototype to avoid an error. */
10250#ifdef __cplusplus
10251extern "C"
10252{
10253#endif
10254/* We use char because int might match the return type of a gcc2
10255 builtin and then its argument prototype would still apply. */
10256char $ac_func ();
10257/* The GNU C library defines this for functions which it implements
10258 to always fail with ENOSYS. Some functions are actually named
10259 something starting with __ and the normal name is an alias. */
10260#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10261choke me
10262#else
10263char (*f) () = $ac_func;
10264#endif
10265#ifdef __cplusplus
10266}
10267#endif
10268
10269int
10270main ()
10271{
10272return f != $ac_func;
10273 ;
10274 return 0;
10275}
10276_ACEOF
10277rm -f conftest.$ac_objext conftest$ac_exeext
10278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10279 (eval $ac_link) 2>conftest.er1
10280 ac_status=$?
10281 grep -v '^ *+' conftest.er1 >conftest.err
10282 rm -f conftest.er1
10283 cat conftest.err >&5
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); } &&
10286 { ac_try='test -z "$ac_c_werror_flag"
10287 || test ! -s conftest.err'
10288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10289 (eval $ac_try) 2>&5
10290 ac_status=$?
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); }; } &&
10293 { ac_try='test -s conftest$ac_exeext'
10294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295 (eval $ac_try) 2>&5
10296 ac_status=$?
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); }; }; then
10299 eval "$as_ac_var=yes"
10300else
10301 echo "$as_me: failed program was:" >&5
10302sed 's/^/| /' conftest.$ac_ext >&5
10303
10304eval "$as_ac_var=no"
10305fi
10306rm -f conftest.err conftest.$ac_objext \
10307 conftest$ac_exeext conftest.$ac_ext
10308fi
10309echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10310echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10311if test `eval echo '${'$as_ac_var'}'` = yes; then
10312 cat >>confdefs.h <<_ACEOF
10313#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10314_ACEOF
10315
10316else
10317 case $LIBOBJS in
10318 "getloadavg.$ac_objext" | \
10319 *" getloadavg.$ac_objext" | \
10320 "getloadavg.$ac_objext "* | \
10321 *" getloadavg.$ac_objext "* ) ;;
10322 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
10323esac
10324
10325
10326cat >>confdefs.h <<\_ACEOF
10327#define C_GETLOADAVG 1
10328_ACEOF
10329
10330# Figure out what our getloadavg.c needs.
10331ac_have_func=no
10332if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
10333 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
10334echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
10335if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
10336 echo $ECHO_N "(cached) $ECHO_C" >&6
10337fi
10338echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
10339echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
10340else
10341 # Is the header compilable?
10342echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
10343echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
10344cat >conftest.$ac_ext <<_ACEOF
10345/* confdefs.h. */
10346_ACEOF
10347cat confdefs.h >>conftest.$ac_ext
10348cat >>conftest.$ac_ext <<_ACEOF
10349/* end confdefs.h. */
10350$ac_includes_default
10351#include <sys/dg_sys_info.h>
10352_ACEOF
10353rm -f conftest.$ac_objext
10354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10355 (eval $ac_compile) 2>conftest.er1
10356 ac_status=$?
10357 grep -v '^ *+' conftest.er1 >conftest.err
10358 rm -f conftest.er1
10359 cat conftest.err >&5
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); } &&
10362 { ac_try='test -z "$ac_c_werror_flag"
10363 || test ! -s conftest.err'
10364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10365 (eval $ac_try) 2>&5
10366 ac_status=$?
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; } &&
10369 { ac_try='test -s conftest.$ac_objext'
10370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10371 (eval $ac_try) 2>&5
10372 ac_status=$?
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); }; }; then
10375 ac_header_compiler=yes
10376else
10377 echo "$as_me: failed program was:" >&5
10378sed 's/^/| /' conftest.$ac_ext >&5
10379
10380ac_header_compiler=no
10381fi
10382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10383echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10384echo "${ECHO_T}$ac_header_compiler" >&6
10385
10386# Is the header present?
10387echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
10388echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
10389cat >conftest.$ac_ext <<_ACEOF
10390/* confdefs.h. */
10391_ACEOF
10392cat confdefs.h >>conftest.$ac_ext
10393cat >>conftest.$ac_ext <<_ACEOF
10394/* end confdefs.h. */
10395#include <sys/dg_sys_info.h>
10396_ACEOF
10397if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10399 ac_status=$?
10400 grep -v '^ *+' conftest.er1 >conftest.err
10401 rm -f conftest.er1
10402 cat conftest.err >&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } >/dev/null; then
10405 if test -s conftest.err; then
10406 ac_cpp_err=$ac_c_preproc_warn_flag
10407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10408 else
10409 ac_cpp_err=
10410 fi
10411else
10412 ac_cpp_err=yes
10413fi
10414if test -z "$ac_cpp_err"; then
10415 ac_header_preproc=yes
10416else
10417 echo "$as_me: failed program was:" >&5
10418sed 's/^/| /' conftest.$ac_ext >&5
10419
10420 ac_header_preproc=no
10421fi
10422rm -f conftest.err conftest.$ac_ext
10423echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10424echo "${ECHO_T}$ac_header_preproc" >&6
10425
10426# So? What about this header?
10427case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10428 yes:no: )
10429 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
10430echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10431 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
10432echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
10433 ac_header_preproc=yes
10434 ;;
10435 no:yes:* )
10436 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
10437echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
10438 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
10439echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
10440 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
10441echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
10442 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
10443echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
10444 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
10445echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
10446 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
10447echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
10448 (
10449 cat <<\_ASBOX
10450## ------------------------------- ##
10451## Report this to [email protected] ##
10452## ------------------------------- ##
10453_ASBOX
10454 ) |
10455 sed "s/^/$as_me: WARNING: /" >&2
10456 ;;
10457esac
10458echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
10459echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
10460if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
10461 echo $ECHO_N "(cached) $ECHO_C" >&6
10462else
10463 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
10464fi
10465echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
10466echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
10467
10468fi
10469if test $ac_cv_header_sys_dg_sys_info_h = yes; then
10470 ac_have_func=yes
10471
10472cat >>confdefs.h <<\_ACEOF
10473#define DGUX 1
10474_ACEOF
10475
10476
10477echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
10478echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
10479if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
10480 echo $ECHO_N "(cached) $ECHO_C" >&6
10481else
10482 ac_check_lib_save_LIBS=$LIBS
10483LIBS="-ldgc $LIBS"
10484cat >conftest.$ac_ext <<_ACEOF
10485/* confdefs.h. */
10486_ACEOF
10487cat confdefs.h >>conftest.$ac_ext
10488cat >>conftest.$ac_ext <<_ACEOF
10489/* end confdefs.h. */
10490
10491/* Override any gcc2 internal prototype to avoid an error. */
10492#ifdef __cplusplus
10493extern "C"
10494#endif
10495/* We use char because int might match the return type of a gcc2
10496 builtin and then its argument prototype would still apply. */
10497char dg_sys_info ();
10498int
10499main ()
10500{
10501dg_sys_info ();
10502 ;
10503 return 0;
10504}
10505_ACEOF
10506rm -f conftest.$ac_objext conftest$ac_exeext
10507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10508 (eval $ac_link) 2>conftest.er1
10509 ac_status=$?
10510 grep -v '^ *+' conftest.er1 >conftest.err
10511 rm -f conftest.er1
10512 cat conftest.err >&5
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); } &&
10515 { ac_try='test -z "$ac_c_werror_flag"
10516 || test ! -s conftest.err'
10517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10518 (eval $ac_try) 2>&5
10519 ac_status=$?
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); }; } &&
10522 { ac_try='test -s conftest$ac_exeext'
10523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10524 (eval $ac_try) 2>&5
10525 ac_status=$?
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); }; }; then
10528 ac_cv_lib_dgc_dg_sys_info=yes
10529else
10530 echo "$as_me: failed program was:" >&5
10531sed 's/^/| /' conftest.$ac_ext >&5
10532
10533ac_cv_lib_dgc_dg_sys_info=no
10534fi
10535rm -f conftest.err conftest.$ac_objext \
10536 conftest$ac_exeext conftest.$ac_ext
10537LIBS=$ac_check_lib_save_LIBS
10538fi
10539echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
10540echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
10541if test $ac_cv_lib_dgc_dg_sys_info = yes; then
10542 cat >>confdefs.h <<_ACEOF
10543#define HAVE_LIBDGC 1
10544_ACEOF
10545
10546 LIBS="-ldgc $LIBS"
10547
10548fi
10549
10550fi
10551
10552
10553
10554if test "${ac_cv_header_locale_h+set}" = set; then
10555 echo "$as_me:$LINENO: checking for locale.h" >&5
10556echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
10557if test "${ac_cv_header_locale_h+set}" = set; then
10558 echo $ECHO_N "(cached) $ECHO_C" >&6
10559fi
10560echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
10561echo "${ECHO_T}$ac_cv_header_locale_h" >&6
10562else
10563 # Is the header compilable?
10564echo "$as_me:$LINENO: checking locale.h usability" >&5
10565echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
10566cat >conftest.$ac_ext <<_ACEOF
10567/* confdefs.h. */
10568_ACEOF
10569cat confdefs.h >>conftest.$ac_ext
10570cat >>conftest.$ac_ext <<_ACEOF
10571/* end confdefs.h. */
10572$ac_includes_default
10573#include <locale.h>
10574_ACEOF
10575rm -f conftest.$ac_objext
10576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10577 (eval $ac_compile) 2>conftest.er1
10578 ac_status=$?
10579 grep -v '^ *+' conftest.er1 >conftest.err
10580 rm -f conftest.er1
10581 cat conftest.err >&5
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); } &&
10584 { ac_try='test -z "$ac_c_werror_flag"
10585 || test ! -s conftest.err'
10586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10587 (eval $ac_try) 2>&5
10588 ac_status=$?
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); }; } &&
10591 { ac_try='test -s conftest.$ac_objext'
10592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10593 (eval $ac_try) 2>&5
10594 ac_status=$?
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); }; }; then
10597 ac_header_compiler=yes
10598else
10599 echo "$as_me: failed program was:" >&5
10600sed 's/^/| /' conftest.$ac_ext >&5
10601
10602ac_header_compiler=no
10603fi
10604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10605echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10606echo "${ECHO_T}$ac_header_compiler" >&6
10607
10608# Is the header present?
10609echo "$as_me:$LINENO: checking locale.h presence" >&5
10610echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
10611cat >conftest.$ac_ext <<_ACEOF
10612/* confdefs.h. */
10613_ACEOF
10614cat confdefs.h >>conftest.$ac_ext
10615cat >>conftest.$ac_ext <<_ACEOF
10616/* end confdefs.h. */
10617#include <locale.h>
10618_ACEOF
10619if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10620 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10621 ac_status=$?
10622 grep -v '^ *+' conftest.er1 >conftest.err
10623 rm -f conftest.er1
10624 cat conftest.err >&5
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); } >/dev/null; then
10627 if test -s conftest.err; then
10628 ac_cpp_err=$ac_c_preproc_warn_flag
10629 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10630 else
10631 ac_cpp_err=
10632 fi
10633else
10634 ac_cpp_err=yes
10635fi
10636if test -z "$ac_cpp_err"; then
10637 ac_header_preproc=yes
10638else
10639 echo "$as_me: failed program was:" >&5
10640sed 's/^/| /' conftest.$ac_ext >&5
10641
10642 ac_header_preproc=no
10643fi
10644rm -f conftest.err conftest.$ac_ext
10645echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10646echo "${ECHO_T}$ac_header_preproc" >&6
10647
10648# So? What about this header?
10649case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10650 yes:no: )
10651 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
10652echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10653 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
10654echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
10655 ac_header_preproc=yes
10656 ;;
10657 no:yes:* )
10658 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
10659echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
10660 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
10661echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
10662 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
10663echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
10664 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
10665echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
10666 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
10667echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
10668 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
10669echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
10670 (
10671 cat <<\_ASBOX
10672## ------------------------------- ##
10673## Report this to [email protected] ##
10674## ------------------------------- ##
10675_ASBOX
10676 ) |
10677 sed "s/^/$as_me: WARNING: /" >&2
10678 ;;
10679esac
10680echo "$as_me:$LINENO: checking for locale.h" >&5
10681echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
10682if test "${ac_cv_header_locale_h+set}" = set; then
10683 echo $ECHO_N "(cached) $ECHO_C" >&6
10684else
10685 ac_cv_header_locale_h=$ac_header_preproc
10686fi
10687echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
10688echo "${ECHO_T}$ac_cv_header_locale_h" >&6
10689
10690fi
10691
10692
10693
10694for ac_func in setlocale
10695do
10696as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10697echo "$as_me:$LINENO: checking for $ac_func" >&5
10698echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10699if eval "test \"\${$as_ac_var+set}\" = set"; then
10700 echo $ECHO_N "(cached) $ECHO_C" >&6
10701else
10702 cat >conftest.$ac_ext <<_ACEOF
10703/* confdefs.h. */
10704_ACEOF
10705cat confdefs.h >>conftest.$ac_ext
10706cat >>conftest.$ac_ext <<_ACEOF
10707/* end confdefs.h. */
10708/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10710#define $ac_func innocuous_$ac_func
10711
10712/* System header to define __stub macros and hopefully few prototypes,
10713 which can conflict with char $ac_func (); below.
10714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10715 <limits.h> exists even on freestanding compilers. */
10716
10717#ifdef __STDC__
10718# include <limits.h>
10719#else
10720# include <assert.h>
10721#endif
10722
10723#undef $ac_func
10724
10725/* Override any gcc2 internal prototype to avoid an error. */
10726#ifdef __cplusplus
10727extern "C"
10728{
10729#endif
10730/* We use char because int might match the return type of a gcc2
10731 builtin and then its argument prototype would still apply. */
10732char $ac_func ();
10733/* The GNU C library defines this for functions which it implements
10734 to always fail with ENOSYS. Some functions are actually named
10735 something starting with __ and the normal name is an alias. */
10736#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10737choke me
10738#else
10739char (*f) () = $ac_func;
10740#endif
10741#ifdef __cplusplus
10742}
10743#endif
10744
10745int
10746main ()
10747{
10748return f != $ac_func;
10749 ;
10750 return 0;
10751}
10752_ACEOF
10753rm -f conftest.$ac_objext conftest$ac_exeext
10754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10755 (eval $ac_link) 2>conftest.er1
10756 ac_status=$?
10757 grep -v '^ *+' conftest.er1 >conftest.err
10758 rm -f conftest.er1
10759 cat conftest.err >&5
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); } &&
10762 { ac_try='test -z "$ac_c_werror_flag"
10763 || test ! -s conftest.err'
10764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10765 (eval $ac_try) 2>&5
10766 ac_status=$?
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); }; } &&
10769 { ac_try='test -s conftest$ac_exeext'
10770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10771 (eval $ac_try) 2>&5
10772 ac_status=$?
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); }; }; then
10775 eval "$as_ac_var=yes"
10776else
10777 echo "$as_me: failed program was:" >&5
10778sed 's/^/| /' conftest.$ac_ext >&5
10779
10780eval "$as_ac_var=no"
10781fi
10782rm -f conftest.err conftest.$ac_objext \
10783 conftest$ac_exeext conftest.$ac_ext
10784fi
10785echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10786echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10787if test `eval echo '${'$as_ac_var'}'` = yes; then
10788 cat >>confdefs.h <<_ACEOF
10789#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10790_ACEOF
10791
10792fi
10793done
10794
10795
10796# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
10797# uses stabs), but it is still SVR4. We cannot check for <elf.h> because
10798# Irix 4.0.5F has the header but not the library.
10799if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
10800 ac_have_func=yes
10801
10802cat >>confdefs.h <<\_ACEOF
10803#define SVR4 1
10804_ACEOF
10805
10806fi
10807
10808if test $ac_have_func = no; then
10809 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
10810 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
10811echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
10812if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
10813 echo $ECHO_N "(cached) $ECHO_C" >&6
10814fi
10815echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
10816echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
10817else
10818 # Is the header compilable?
10819echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
10820echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
10821cat >conftest.$ac_ext <<_ACEOF
10822/* confdefs.h. */
10823_ACEOF
10824cat confdefs.h >>conftest.$ac_ext
10825cat >>conftest.$ac_ext <<_ACEOF
10826/* end confdefs.h. */
10827$ac_includes_default
10828#include <inq_stats/cpustats.h>
10829_ACEOF
10830rm -f conftest.$ac_objext
10831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10832 (eval $ac_compile) 2>conftest.er1
10833 ac_status=$?
10834 grep -v '^ *+' conftest.er1 >conftest.err
10835 rm -f conftest.er1
10836 cat conftest.err >&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); } &&
10839 { ac_try='test -z "$ac_c_werror_flag"
10840 || test ! -s conftest.err'
10841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10842 (eval $ac_try) 2>&5
10843 ac_status=$?
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); }; } &&
10846 { ac_try='test -s conftest.$ac_objext'
10847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10848 (eval $ac_try) 2>&5
10849 ac_status=$?
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); }; }; then
10852 ac_header_compiler=yes
10853else
10854 echo "$as_me: failed program was:" >&5
10855sed 's/^/| /' conftest.$ac_ext >&5
10856
10857ac_header_compiler=no
10858fi
10859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10860echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10861echo "${ECHO_T}$ac_header_compiler" >&6
10862
10863# Is the header present?
10864echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
10865echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
10866cat >conftest.$ac_ext <<_ACEOF
10867/* confdefs.h. */
10868_ACEOF
10869cat confdefs.h >>conftest.$ac_ext
10870cat >>conftest.$ac_ext <<_ACEOF
10871/* end confdefs.h. */
10872#include <inq_stats/cpustats.h>
10873_ACEOF
10874if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10876 ac_status=$?
10877 grep -v '^ *+' conftest.er1 >conftest.err
10878 rm -f conftest.er1
10879 cat conftest.err >&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); } >/dev/null; then
10882 if test -s conftest.err; then
10883 ac_cpp_err=$ac_c_preproc_warn_flag
10884 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10885 else
10886 ac_cpp_err=
10887 fi
10888else
10889 ac_cpp_err=yes
10890fi
10891if test -z "$ac_cpp_err"; then
10892 ac_header_preproc=yes
10893else
10894 echo "$as_me: failed program was:" >&5
10895sed 's/^/| /' conftest.$ac_ext >&5
10896
10897 ac_header_preproc=no
10898fi
10899rm -f conftest.err conftest.$ac_ext
10900echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10901echo "${ECHO_T}$ac_header_preproc" >&6
10902
10903# So? What about this header?
10904case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10905 yes:no: )
10906 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
10907echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10908 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
10909echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
10910 ac_header_preproc=yes
10911 ;;
10912 no:yes:* )
10913 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
10914echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
10915 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
10916echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
10917 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
10918echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
10919 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
10920echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
10921 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
10922echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
10923 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
10924echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
10925 (
10926 cat <<\_ASBOX
10927## ------------------------------- ##
10928## Report this to [email protected] ##
10929## ------------------------------- ##
10930_ASBOX
10931 ) |
10932 sed "s/^/$as_me: WARNING: /" >&2
10933 ;;
10934esac
10935echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
10936echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
10937if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
10938 echo $ECHO_N "(cached) $ECHO_C" >&6
10939else
10940 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
10941fi
10942echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
10943echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
10944
10945fi
10946if test $ac_cv_header_inq_stats_cpustats_h = yes; then
10947 ac_have_func=yes
10948
10949cat >>confdefs.h <<\_ACEOF
10950#define UMAX 1
10951_ACEOF
10952
10953
10954cat >>confdefs.h <<\_ACEOF
10955#define UMAX4_3 1
10956_ACEOF
10957
10958fi
10959
10960
10961fi
10962
10963if test $ac_have_func = no; then
10964 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
10965 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
10966echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
10967if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
10968 echo $ECHO_N "(cached) $ECHO_C" >&6
10969fi
10970echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
10971echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
10972else
10973 # Is the header compilable?
10974echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
10975echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
10976cat >conftest.$ac_ext <<_ACEOF
10977/* confdefs.h. */
10978_ACEOF
10979cat confdefs.h >>conftest.$ac_ext
10980cat >>conftest.$ac_ext <<_ACEOF
10981/* end confdefs.h. */
10982$ac_includes_default
10983#include <sys/cpustats.h>
10984_ACEOF
10985rm -f conftest.$ac_objext
10986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10987 (eval $ac_compile) 2>conftest.er1
10988 ac_status=$?
10989 grep -v '^ *+' conftest.er1 >conftest.err
10990 rm -f conftest.er1
10991 cat conftest.err >&5
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); } &&
10994 { ac_try='test -z "$ac_c_werror_flag"
10995 || test ! -s conftest.err'
10996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10997 (eval $ac_try) 2>&5
10998 ac_status=$?
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); }; } &&
11001 { ac_try='test -s conftest.$ac_objext'
11002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11003 (eval $ac_try) 2>&5
11004 ac_status=$?
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); }; }; then
11007 ac_header_compiler=yes
11008else
11009 echo "$as_me: failed program was:" >&5
11010sed 's/^/| /' conftest.$ac_ext >&5
11011
11012ac_header_compiler=no
11013fi
11014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11015echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11016echo "${ECHO_T}$ac_header_compiler" >&6
11017
11018# Is the header present?
11019echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
11020echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
11021cat >conftest.$ac_ext <<_ACEOF
11022/* confdefs.h. */
11023_ACEOF
11024cat confdefs.h >>conftest.$ac_ext
11025cat >>conftest.$ac_ext <<_ACEOF
11026/* end confdefs.h. */
11027#include <sys/cpustats.h>
11028_ACEOF
11029if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11031 ac_status=$?
11032 grep -v '^ *+' conftest.er1 >conftest.err
11033 rm -f conftest.er1
11034 cat conftest.err >&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } >/dev/null; then
11037 if test -s conftest.err; then
11038 ac_cpp_err=$ac_c_preproc_warn_flag
11039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11040 else
11041 ac_cpp_err=
11042 fi
11043else
11044 ac_cpp_err=yes
11045fi
11046if test -z "$ac_cpp_err"; then
11047 ac_header_preproc=yes
11048else
11049 echo "$as_me: failed program was:" >&5
11050sed 's/^/| /' conftest.$ac_ext >&5
11051
11052 ac_header_preproc=no
11053fi
11054rm -f conftest.err conftest.$ac_ext
11055echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11056echo "${ECHO_T}$ac_header_preproc" >&6
11057
11058# So? What about this header?
11059case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11060 yes:no: )
11061 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
11062echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11063 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
11064echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
11065 ac_header_preproc=yes
11066 ;;
11067 no:yes:* )
11068 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
11069echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
11070 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
11071echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
11072 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
11073echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
11074 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
11075echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
11076 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
11077echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
11078 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
11079echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
11080 (
11081 cat <<\_ASBOX
11082## ------------------------------- ##
11083## Report this to [email protected] ##
11084## ------------------------------- ##
11085_ASBOX
11086 ) |
11087 sed "s/^/$as_me: WARNING: /" >&2
11088 ;;
11089esac
11090echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11091echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
11092if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11093 echo $ECHO_N "(cached) $ECHO_C" >&6
11094else
11095 ac_cv_header_sys_cpustats_h=$ac_header_preproc
11096fi
11097echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
11098echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
11099
11100fi
11101if test $ac_cv_header_sys_cpustats_h = yes; then
11102 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
11103#define UMAX 1
11104_ACEOF
11105
11106fi
11107
11108
11109fi
11110
11111if test $ac_have_func = no; then
11112
11113for ac_header in mach/mach.h
11114do
11115as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11116if eval "test \"\${$as_ac_Header+set}\" = set"; then
11117 echo "$as_me:$LINENO: checking for $ac_header" >&5
11118echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11119if eval "test \"\${$as_ac_Header+set}\" = set"; then
11120 echo $ECHO_N "(cached) $ECHO_C" >&6
11121fi
11122echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11123echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11124else
11125 # Is the header compilable?
11126echo "$as_me:$LINENO: checking $ac_header usability" >&5
11127echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11128cat >conftest.$ac_ext <<_ACEOF
11129/* confdefs.h. */
11130_ACEOF
11131cat confdefs.h >>conftest.$ac_ext
11132cat >>conftest.$ac_ext <<_ACEOF
11133/* end confdefs.h. */
11134$ac_includes_default
11135#include <$ac_header>
11136_ACEOF
11137rm -f conftest.$ac_objext
11138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11139 (eval $ac_compile) 2>conftest.er1
11140 ac_status=$?
11141 grep -v '^ *+' conftest.er1 >conftest.err
11142 rm -f conftest.er1
11143 cat conftest.err >&5
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); } &&
11146 { ac_try='test -z "$ac_c_werror_flag"
11147 || test ! -s conftest.err'
11148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11149 (eval $ac_try) 2>&5
11150 ac_status=$?
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); }; } &&
11153 { ac_try='test -s conftest.$ac_objext'
11154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11155 (eval $ac_try) 2>&5
11156 ac_status=$?
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }; }; then
11159 ac_header_compiler=yes
11160else
11161 echo "$as_me: failed program was:" >&5
11162sed 's/^/| /' conftest.$ac_ext >&5
11163
11164ac_header_compiler=no
11165fi
11166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11167echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11168echo "${ECHO_T}$ac_header_compiler" >&6
11169
11170# Is the header present?
11171echo "$as_me:$LINENO: checking $ac_header presence" >&5
11172echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11173cat >conftest.$ac_ext <<_ACEOF
11174/* confdefs.h. */
11175_ACEOF
11176cat confdefs.h >>conftest.$ac_ext
11177cat >>conftest.$ac_ext <<_ACEOF
11178/* end confdefs.h. */
11179#include <$ac_header>
11180_ACEOF
11181if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11183 ac_status=$?
11184 grep -v '^ *+' conftest.er1 >conftest.err
11185 rm -f conftest.er1
11186 cat conftest.err >&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } >/dev/null; then
11189 if test -s conftest.err; then
11190 ac_cpp_err=$ac_c_preproc_warn_flag
11191 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11192 else
11193 ac_cpp_err=
11194 fi
11195else
11196 ac_cpp_err=yes
11197fi
11198if test -z "$ac_cpp_err"; then
11199 ac_header_preproc=yes
11200else
11201 echo "$as_me: failed program was:" >&5
11202sed 's/^/| /' conftest.$ac_ext >&5
11203
11204 ac_header_preproc=no
11205fi
11206rm -f conftest.err conftest.$ac_ext
11207echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11208echo "${ECHO_T}$ac_header_preproc" >&6
11209
11210# So? What about this header?
11211case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11212 yes:no: )
11213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11214echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11216echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11217 ac_header_preproc=yes
11218 ;;
11219 no:yes:* )
11220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11221echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11223echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11225echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11227echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11229echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11231echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11232 (
11233 cat <<\_ASBOX
11234## ------------------------------- ##
11235## Report this to [email protected] ##
11236## ------------------------------- ##
11237_ASBOX
11238 ) |
11239 sed "s/^/$as_me: WARNING: /" >&2
11240 ;;
11241esac
11242echo "$as_me:$LINENO: checking for $ac_header" >&5
11243echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11244if eval "test \"\${$as_ac_Header+set}\" = set"; then
11245 echo $ECHO_N "(cached) $ECHO_C" >&6
11246else
11247 eval "$as_ac_Header=\$ac_header_preproc"
11248fi
11249echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11250echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11251
11252fi
11253if test `eval echo '${'$as_ac_Header'}'` = yes; then
11254 cat >>confdefs.h <<_ACEOF
11255#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11256_ACEOF
11257
11258fi
11259
11260done
11261
11262fi
11263
11264
11265for ac_header in nlist.h
11266do
11267as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11268if eval "test \"\${$as_ac_Header+set}\" = set"; then
11269 echo "$as_me:$LINENO: checking for $ac_header" >&5
11270echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11271if eval "test \"\${$as_ac_Header+set}\" = set"; then
11272 echo $ECHO_N "(cached) $ECHO_C" >&6
11273fi
11274echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11275echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11276else
11277 # Is the header compilable?
11278echo "$as_me:$LINENO: checking $ac_header usability" >&5
11279echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11280cat >conftest.$ac_ext <<_ACEOF
11281/* confdefs.h. */
11282_ACEOF
11283cat confdefs.h >>conftest.$ac_ext
11284cat >>conftest.$ac_ext <<_ACEOF
11285/* end confdefs.h. */
11286$ac_includes_default
11287#include <$ac_header>
11288_ACEOF
11289rm -f conftest.$ac_objext
11290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11291 (eval $ac_compile) 2>conftest.er1
11292 ac_status=$?
11293 grep -v '^ *+' conftest.er1 >conftest.err
11294 rm -f conftest.er1
11295 cat conftest.err >&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); } &&
11298 { ac_try='test -z "$ac_c_werror_flag"
11299 || test ! -s conftest.err'
11300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11301 (eval $ac_try) 2>&5
11302 ac_status=$?
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); }; } &&
11305 { ac_try='test -s conftest.$ac_objext'
11306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307 (eval $ac_try) 2>&5
11308 ac_status=$?
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }; }; then
11311 ac_header_compiler=yes
11312else
11313 echo "$as_me: failed program was:" >&5
11314sed 's/^/| /' conftest.$ac_ext >&5
11315
11316ac_header_compiler=no
11317fi
11318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11319echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11320echo "${ECHO_T}$ac_header_compiler" >&6
11321
11322# Is the header present?
11323echo "$as_me:$LINENO: checking $ac_header presence" >&5
11324echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11325cat >conftest.$ac_ext <<_ACEOF
11326/* confdefs.h. */
11327_ACEOF
11328cat confdefs.h >>conftest.$ac_ext
11329cat >>conftest.$ac_ext <<_ACEOF
11330/* end confdefs.h. */
11331#include <$ac_header>
11332_ACEOF
11333if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11335 ac_status=$?
11336 grep -v '^ *+' conftest.er1 >conftest.err
11337 rm -f conftest.er1
11338 cat conftest.err >&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } >/dev/null; then
11341 if test -s conftest.err; then
11342 ac_cpp_err=$ac_c_preproc_warn_flag
11343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11344 else
11345 ac_cpp_err=
11346 fi
11347else
11348 ac_cpp_err=yes
11349fi
11350if test -z "$ac_cpp_err"; then
11351 ac_header_preproc=yes
11352else
11353 echo "$as_me: failed program was:" >&5
11354sed 's/^/| /' conftest.$ac_ext >&5
11355
11356 ac_header_preproc=no
11357fi
11358rm -f conftest.err conftest.$ac_ext
11359echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11360echo "${ECHO_T}$ac_header_preproc" >&6
11361
11362# So? What about this header?
11363case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11364 yes:no: )
11365 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11366echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11368echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11369 ac_header_preproc=yes
11370 ;;
11371 no:yes:* )
11372 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11373echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11374 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11375echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11376 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11377echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11378 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11379echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11381echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11382 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11383echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11384 (
11385 cat <<\_ASBOX
11386## ------------------------------- ##
11387## Report this to [email protected] ##
11388## ------------------------------- ##
11389_ASBOX
11390 ) |
11391 sed "s/^/$as_me: WARNING: /" >&2
11392 ;;
11393esac
11394echo "$as_me:$LINENO: checking for $ac_header" >&5
11395echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11396if eval "test \"\${$as_ac_Header+set}\" = set"; then
11397 echo $ECHO_N "(cached) $ECHO_C" >&6
11398else
11399 eval "$as_ac_Header=\$ac_header_preproc"
11400fi
11401echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11402echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11403
11404fi
11405if test `eval echo '${'$as_ac_Header'}'` = yes; then
11406 cat >>confdefs.h <<_ACEOF
11407#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11408_ACEOF
11409 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
11410echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
11411if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
11412 echo $ECHO_N "(cached) $ECHO_C" >&6
11413else
11414 cat >conftest.$ac_ext <<_ACEOF
11415/* confdefs.h. */
11416_ACEOF
11417cat confdefs.h >>conftest.$ac_ext
11418cat >>conftest.$ac_ext <<_ACEOF
11419/* end confdefs.h. */
11420#include <nlist.h>
11421
11422int
11423main ()
11424{
11425static struct nlist ac_aggr;
11426if (ac_aggr.n_un.n_name)
11427return 0;
11428 ;
11429 return 0;
11430}
11431_ACEOF
11432rm -f conftest.$ac_objext
11433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11434 (eval $ac_compile) 2>conftest.er1
11435 ac_status=$?
11436 grep -v '^ *+' conftest.er1 >conftest.err
11437 rm -f conftest.er1
11438 cat conftest.err >&5
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); } &&
11441 { ac_try='test -z "$ac_c_werror_flag"
11442 || test ! -s conftest.err'
11443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11444 (eval $ac_try) 2>&5
11445 ac_status=$?
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); }; } &&
11448 { ac_try='test -s conftest.$ac_objext'
11449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11450 (eval $ac_try) 2>&5
11451 ac_status=$?
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); }; }; then
11454 ac_cv_member_struct_nlist_n_un_n_name=yes
11455else
11456 echo "$as_me: failed program was:" >&5
11457sed 's/^/| /' conftest.$ac_ext >&5
11458
11459cat >conftest.$ac_ext <<_ACEOF
11460/* confdefs.h. */
11461_ACEOF
11462cat confdefs.h >>conftest.$ac_ext
11463cat >>conftest.$ac_ext <<_ACEOF
11464/* end confdefs.h. */
11465#include <nlist.h>
11466
11467int
11468main ()
11469{
11470static struct nlist ac_aggr;
11471if (sizeof ac_aggr.n_un.n_name)
11472return 0;
11473 ;
11474 return 0;
11475}
11476_ACEOF
11477rm -f conftest.$ac_objext
11478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11479 (eval $ac_compile) 2>conftest.er1
11480 ac_status=$?
11481 grep -v '^ *+' conftest.er1 >conftest.err
11482 rm -f conftest.er1
11483 cat conftest.err >&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } &&
11486 { ac_try='test -z "$ac_c_werror_flag"
11487 || test ! -s conftest.err'
11488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11489 (eval $ac_try) 2>&5
11490 ac_status=$?
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); }; } &&
11493 { ac_try='test -s conftest.$ac_objext'
11494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11495 (eval $ac_try) 2>&5
11496 ac_status=$?
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); }; }; then
11499 ac_cv_member_struct_nlist_n_un_n_name=yes
11500else
11501 echo "$as_me: failed program was:" >&5
11502sed 's/^/| /' conftest.$ac_ext >&5
11503
11504ac_cv_member_struct_nlist_n_un_n_name=no
11505fi
11506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11507fi
11508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11509fi
11510echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
11511echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
11512if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
11513
11514cat >>confdefs.h <<_ACEOF
11515#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11516_ACEOF
11517
11518
11519cat >>confdefs.h <<\_ACEOF
11520#define NLIST_NAME_UNION 1
11521_ACEOF
11522
11523fi
11524
11525
11526fi
11527
11528done
11529
11530fi
11531done
11532
11533
11534# Some definitions of getloadavg require that the program be installed setgid.
11535echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
11536echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
11537if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
11538 echo $ECHO_N "(cached) $ECHO_C" >&6
11539else
11540 cat >conftest.$ac_ext <<_ACEOF
11541/* confdefs.h. */
11542_ACEOF
11543cat confdefs.h >>conftest.$ac_ext
11544cat >>conftest.$ac_ext <<_ACEOF
11545/* end confdefs.h. */
11546#include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11547#ifdef LDAV_PRIVILEGED
11548Yowza Am I SETGID yet
11549#endif
11550_ACEOF
11551if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11552 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
11553 ac_cv_func_getloadavg_setgid=yes
11554else
11555 ac_cv_func_getloadavg_setgid=no
11556fi
11557rm -f conftest*
11558
11559fi
11560echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
11561echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
11562if test $ac_cv_func_getloadavg_setgid = yes; then
11563 NEED_SETGID=true
11564
11565cat >>confdefs.h <<\_ACEOF
11566#define GETLOADAVG_PRIVILEGED 1
11567_ACEOF
11568
11569else
11570 NEED_SETGID=false
11571fi
11572
11573if test $ac_cv_func_getloadavg_setgid = yes; then
11574 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
11575echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
11576if test "${ac_cv_group_kmem+set}" = set; then
11577 echo $ECHO_N "(cached) $ECHO_C" >&6
11578else
11579 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
11580 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
11581 # If we got an error (system does not support symlinks), try without -L.
11582 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
11583 ac_cv_group_kmem=`echo $ac_ls_output \
11584 | sed -ne 's/[ ][ ]*/ /g;
11585 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
11586 / /s/.* //;p;'`
11587
11588fi
11589echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
11590echo "${ECHO_T}$ac_cv_group_kmem" >&6
11591 KMEM_GROUP=$ac_cv_group_kmem
11592fi
11593if test "x$ac_save_LIBS" = x; then
11594 GETLOADAVG_LIBS=$LIBS
11595else
11596 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
11597fi
11598LIBS=$ac_save_LIBS
11599
11600
11601
11602# AC_FUNC_GETLOADAVG is documented to set the NLIST_STRUCT value, but it
11603# doesn't. So, we will.
11604
11605if test "$ac_cv_header_nlist_h" = yes; then
11606 cat >conftest.$ac_ext <<_ACEOF
11607/* confdefs.h. */
11608_ACEOF
11609cat confdefs.h >>conftest.$ac_ext
11610cat >>conftest.$ac_ext <<_ACEOF
11611/* end confdefs.h. */
11612#include <nlist.h>
11613int
11614main ()
11615{
11616struct nlist nl;
11617 nl.n_name = "string";
11618 return 0;
11619 ;
11620 return 0;
11621}
11622_ACEOF
11623rm -f conftest.$ac_objext
11624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11625 (eval $ac_compile) 2>conftest.er1
11626 ac_status=$?
11627 grep -v '^ *+' conftest.er1 >conftest.err
11628 rm -f conftest.er1
11629 cat conftest.err >&5
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); } &&
11632 { ac_try='test -z "$ac_c_werror_flag"
11633 || test ! -s conftest.err'
11634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11635 (eval $ac_try) 2>&5
11636 ac_status=$?
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); }; } &&
11639 { ac_try='test -s conftest.$ac_objext'
11640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11641 (eval $ac_try) 2>&5
11642 ac_status=$?
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }; }; then
11645 make_cv_nlist_struct=yes
11646else
11647 echo "$as_me: failed program was:" >&5
11648sed 's/^/| /' conftest.$ac_ext >&5
11649
11650make_cv_nlist_struct=no
11651fi
11652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11653 if test "$make_cv_nlist_struct" = yes; then
11654
11655cat >>confdefs.h <<\_ACEOF
11656#define NLIST_STRUCT 1
11657_ACEOF
11658
11659 fi
11660fi
11661
11662echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
11663echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
11664if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
11665 echo $ECHO_N "(cached) $ECHO_C" >&6
11666else
11667 cat >conftest.$ac_ext <<_ACEOF
11668/* confdefs.h. */
11669_ACEOF
11670cat confdefs.h >>conftest.$ac_ext
11671cat >>conftest.$ac_ext <<_ACEOF
11672/* end confdefs.h. */
11673$ac_includes_default
11674int
11675main ()
11676{
11677#ifndef sys_siglist
11678 char *p = (char *) sys_siglist;
11679#endif
11680
11681 ;
11682 return 0;
11683}
11684_ACEOF
11685rm -f conftest.$ac_objext
11686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11687 (eval $ac_compile) 2>conftest.er1
11688 ac_status=$?
11689 grep -v '^ *+' conftest.er1 >conftest.err
11690 rm -f conftest.er1
11691 cat conftest.err >&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); } &&
11694 { ac_try='test -z "$ac_c_werror_flag"
11695 || test ! -s conftest.err'
11696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697 (eval $ac_try) 2>&5
11698 ac_status=$?
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); }; } &&
11701 { ac_try='test -s conftest.$ac_objext'
11702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11703 (eval $ac_try) 2>&5
11704 ac_status=$?
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); }; }; then
11707 ac_cv_have_decl_sys_siglist=yes
11708else
11709 echo "$as_me: failed program was:" >&5
11710sed 's/^/| /' conftest.$ac_ext >&5
11711
11712ac_cv_have_decl_sys_siglist=no
11713fi
11714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11715fi
11716echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
11717echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
11718if test $ac_cv_have_decl_sys_siglist = yes; then
11719
11720cat >>confdefs.h <<_ACEOF
11721#define HAVE_DECL_SYS_SIGLIST 1
11722_ACEOF
11723
11724
11725else
11726 cat >>confdefs.h <<_ACEOF
11727#define HAVE_DECL_SYS_SIGLIST 0
11728_ACEOF
11729
11730
11731fi
11732
11733
11734
11735
11736# Check out the wait reality.
11737
11738for ac_header in sys/wait.h
11739do
11740as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11741if eval "test \"\${$as_ac_Header+set}\" = set"; then
11742 echo "$as_me:$LINENO: checking for $ac_header" >&5
11743echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11744if eval "test \"\${$as_ac_Header+set}\" = set"; then
11745 echo $ECHO_N "(cached) $ECHO_C" >&6
11746fi
11747echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11748echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11749else
11750 # Is the header compilable?
11751echo "$as_me:$LINENO: checking $ac_header usability" >&5
11752echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11753cat >conftest.$ac_ext <<_ACEOF
11754/* confdefs.h. */
11755_ACEOF
11756cat confdefs.h >>conftest.$ac_ext
11757cat >>conftest.$ac_ext <<_ACEOF
11758/* end confdefs.h. */
11759$ac_includes_default
11760#include <$ac_header>
11761_ACEOF
11762rm -f conftest.$ac_objext
11763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11764 (eval $ac_compile) 2>conftest.er1
11765 ac_status=$?
11766 grep -v '^ *+' conftest.er1 >conftest.err
11767 rm -f conftest.er1
11768 cat conftest.err >&5
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); } &&
11771 { ac_try='test -z "$ac_c_werror_flag"
11772 || test ! -s conftest.err'
11773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774 (eval $ac_try) 2>&5
11775 ac_status=$?
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; } &&
11778 { ac_try='test -s conftest.$ac_objext'
11779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11780 (eval $ac_try) 2>&5
11781 ac_status=$?
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); }; }; then
11784 ac_header_compiler=yes
11785else
11786 echo "$as_me: failed program was:" >&5
11787sed 's/^/| /' conftest.$ac_ext >&5
11788
11789ac_header_compiler=no
11790fi
11791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11792echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11793echo "${ECHO_T}$ac_header_compiler" >&6
11794
11795# Is the header present?
11796echo "$as_me:$LINENO: checking $ac_header presence" >&5
11797echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11798cat >conftest.$ac_ext <<_ACEOF
11799/* confdefs.h. */
11800_ACEOF
11801cat confdefs.h >>conftest.$ac_ext
11802cat >>conftest.$ac_ext <<_ACEOF
11803/* end confdefs.h. */
11804#include <$ac_header>
11805_ACEOF
11806if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11807 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11808 ac_status=$?
11809 grep -v '^ *+' conftest.er1 >conftest.err
11810 rm -f conftest.er1
11811 cat conftest.err >&5
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); } >/dev/null; then
11814 if test -s conftest.err; then
11815 ac_cpp_err=$ac_c_preproc_warn_flag
11816 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11817 else
11818 ac_cpp_err=
11819 fi
11820else
11821 ac_cpp_err=yes
11822fi
11823if test -z "$ac_cpp_err"; then
11824 ac_header_preproc=yes
11825else
11826 echo "$as_me: failed program was:" >&5
11827sed 's/^/| /' conftest.$ac_ext >&5
11828
11829 ac_header_preproc=no
11830fi
11831rm -f conftest.err conftest.$ac_ext
11832echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11833echo "${ECHO_T}$ac_header_preproc" >&6
11834
11835# So? What about this header?
11836case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11837 yes:no: )
11838 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11839echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11841echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11842 ac_header_preproc=yes
11843 ;;
11844 no:yes:* )
11845 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11846echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11847 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11848echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11849 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11850echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11851 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11852echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11854echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11855 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11856echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11857 (
11858 cat <<\_ASBOX
11859## ------------------------------- ##
11860## Report this to [email protected] ##
11861## ------------------------------- ##
11862_ASBOX
11863 ) |
11864 sed "s/^/$as_me: WARNING: /" >&2
11865 ;;
11866esac
11867echo "$as_me:$LINENO: checking for $ac_header" >&5
11868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11869if eval "test \"\${$as_ac_Header+set}\" = set"; then
11870 echo $ECHO_N "(cached) $ECHO_C" >&6
11871else
11872 eval "$as_ac_Header=\$ac_header_preproc"
11873fi
11874echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11875echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11876
11877fi
11878if test `eval echo '${'$as_ac_Header'}'` = yes; then
11879 cat >>confdefs.h <<_ACEOF
11880#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11881_ACEOF
11882
11883fi
11884
11885done
11886
11887
11888
11889for ac_func in waitpid wait3
11890do
11891as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11892echo "$as_me:$LINENO: checking for $ac_func" >&5
11893echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11894if eval "test \"\${$as_ac_var+set}\" = set"; then
11895 echo $ECHO_N "(cached) $ECHO_C" >&6
11896else
11897 cat >conftest.$ac_ext <<_ACEOF
11898/* confdefs.h. */
11899_ACEOF
11900cat confdefs.h >>conftest.$ac_ext
11901cat >>conftest.$ac_ext <<_ACEOF
11902/* end confdefs.h. */
11903/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11905#define $ac_func innocuous_$ac_func
11906
11907/* System header to define __stub macros and hopefully few prototypes,
11908 which can conflict with char $ac_func (); below.
11909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11910 <limits.h> exists even on freestanding compilers. */
11911
11912#ifdef __STDC__
11913# include <limits.h>
11914#else
11915# include <assert.h>
11916#endif
11917
11918#undef $ac_func
11919
11920/* Override any gcc2 internal prototype to avoid an error. */
11921#ifdef __cplusplus
11922extern "C"
11923{
11924#endif
11925/* We use char because int might match the return type of a gcc2
11926 builtin and then its argument prototype would still apply. */
11927char $ac_func ();
11928/* The GNU C library defines this for functions which it implements
11929 to always fail with ENOSYS. Some functions are actually named
11930 something starting with __ and the normal name is an alias. */
11931#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11932choke me
11933#else
11934char (*f) () = $ac_func;
11935#endif
11936#ifdef __cplusplus
11937}
11938#endif
11939
11940int
11941main ()
11942{
11943return f != $ac_func;
11944 ;
11945 return 0;
11946}
11947_ACEOF
11948rm -f conftest.$ac_objext conftest$ac_exeext
11949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11950 (eval $ac_link) 2>conftest.er1
11951 ac_status=$?
11952 grep -v '^ *+' conftest.er1 >conftest.err
11953 rm -f conftest.er1
11954 cat conftest.err >&5
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); } &&
11957 { ac_try='test -z "$ac_c_werror_flag"
11958 || test ! -s conftest.err'
11959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11960 (eval $ac_try) 2>&5
11961 ac_status=$?
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); }; } &&
11964 { ac_try='test -s conftest$ac_exeext'
11965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11966 (eval $ac_try) 2>&5
11967 ac_status=$?
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); }; }; then
11970 eval "$as_ac_var=yes"
11971else
11972 echo "$as_me: failed program was:" >&5
11973sed 's/^/| /' conftest.$ac_ext >&5
11974
11975eval "$as_ac_var=no"
11976fi
11977rm -f conftest.err conftest.$ac_objext \
11978 conftest$ac_exeext conftest.$ac_ext
11979fi
11980echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11981echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11982if test `eval echo '${'$as_ac_var'}'` = yes; then
11983 cat >>confdefs.h <<_ACEOF
11984#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11985_ACEOF
11986
11987fi
11988done
11989
11990echo "$as_me:$LINENO: checking for union wait" >&5
11991echo $ECHO_N "checking for union wait... $ECHO_C" >&6
11992if test "${make_cv_union_wait+set}" = set; then
11993 echo $ECHO_N "(cached) $ECHO_C" >&6
11994else
11995 cat >conftest.$ac_ext <<_ACEOF
11996/* confdefs.h. */
11997_ACEOF
11998cat confdefs.h >>conftest.$ac_ext
11999cat >>conftest.$ac_ext <<_ACEOF
12000/* end confdefs.h. */
12001#include <sys/types.h>
12002#include <sys/wait.h>
12003int
12004main ()
12005{
12006union wait status; int pid; pid = wait (&status);
12007#ifdef WEXITSTATUS
12008/* Some POSIXoid systems have both the new-style macros and the old
12009 union wait type, and they do not work together. If union wait
12010 conflicts with WEXITSTATUS et al, we don't want to use it at all. */
12011 if (WEXITSTATUS (status) != 0) pid = -1;
12012#ifdef WTERMSIG
12013 /* If we have WEXITSTATUS and WTERMSIG, just use them on ints. */
12014 -- blow chunks here --
12015#endif
12016#endif
12017#ifdef HAVE_WAITPID
12018 /* Make sure union wait works with waitpid. */
12019 pid = waitpid (-1, &status, 0);
12020#endif
12021
12022 ;
12023 return 0;
12024}
12025_ACEOF
12026rm -f conftest.$ac_objext conftest$ac_exeext
12027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12028 (eval $ac_link) 2>conftest.er1
12029 ac_status=$?
12030 grep -v '^ *+' conftest.er1 >conftest.err
12031 rm -f conftest.er1
12032 cat conftest.err >&5
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); } &&
12035 { ac_try='test -z "$ac_c_werror_flag"
12036 || test ! -s conftest.err'
12037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038 (eval $ac_try) 2>&5
12039 ac_status=$?
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; } &&
12042 { ac_try='test -s conftest$ac_exeext'
12043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044 (eval $ac_try) 2>&5
12045 ac_status=$?
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; }; then
12048 make_cv_union_wait=yes
12049else
12050 echo "$as_me: failed program was:" >&5
12051sed 's/^/| /' conftest.$ac_ext >&5
12052
12053make_cv_union_wait=no
12054fi
12055rm -f conftest.err conftest.$ac_objext \
12056 conftest$ac_exeext conftest.$ac_ext
12057fi
12058
12059if test "$make_cv_union_wait" = yes; then
12060
12061cat >>confdefs.h <<\_ACEOF
12062#define HAVE_UNION_WAIT 1
12063_ACEOF
12064
12065fi
12066echo "$as_me:$LINENO: result: $make_cv_union_wait" >&5
12067echo "${ECHO_T}$make_cv_union_wait" >&6
12068
12069
12070# If we're building on Windows/DOS/OS/2, add some support for DOS drive specs.
12071if test "$PATH_SEPARATOR" = ';'; then
12072
12073cat >>confdefs.h <<\_ACEOF
12074#define HAVE_DOS_PATHS 1
12075_ACEOF
12076
12077fi
12078
12079
12080# See if the user wants to use pmake's "customs" distributed build capability
12081
12082 REMOTE=stub
12083use_customs=false
12084
12085# Check whether --with-customs or --without-customs was given.
12086if test "${with_customs+set}" = set; then
12087 withval="$with_customs"
12088 case $withval in
12089 n|no) : ;;
12090 *) make_cppflags="$CPPFLAGS"
12091 case $withval in
12092 y|ye|yes) : ;;
12093 *) CPPFLAGS="$CPPFLAGS -I$with_customs/include/customs"
12094 make_ldflags="$LDFLAGS -L$with_customs/lib" ;;
12095 esac
12096
12097cf_test_netlibs=no
12098echo "$as_me:$LINENO: checking for network libraries" >&5
12099echo $ECHO_N "checking for network libraries... $ECHO_C" >&6
12100if test "${cf_cv_netlibs+set}" = set; then
12101 echo $ECHO_N "(cached) $ECHO_C" >&6
12102else
12103
12104echo "$as_me:$LINENO: result: working..." >&5
12105echo "${ECHO_T}working..." >&6
12106cf_cv_netlibs=""
12107cf_test_netlibs=yes
12108
12109for ac_func in gethostname
12110do
12111as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12112echo "$as_me:$LINENO: checking for $ac_func" >&5
12113echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12114if eval "test \"\${$as_ac_var+set}\" = set"; then
12115 echo $ECHO_N "(cached) $ECHO_C" >&6
12116else
12117 cat >conftest.$ac_ext <<_ACEOF
12118/* confdefs.h. */
12119_ACEOF
12120cat confdefs.h >>conftest.$ac_ext
12121cat >>conftest.$ac_ext <<_ACEOF
12122/* end confdefs.h. */
12123/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12125#define $ac_func innocuous_$ac_func
12126
12127/* System header to define __stub macros and hopefully few prototypes,
12128 which can conflict with char $ac_func (); below.
12129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12130 <limits.h> exists even on freestanding compilers. */
12131
12132#ifdef __STDC__
12133# include <limits.h>
12134#else
12135# include <assert.h>
12136#endif
12137
12138#undef $ac_func
12139
12140/* Override any gcc2 internal prototype to avoid an error. */
12141#ifdef __cplusplus
12142extern "C"
12143{
12144#endif
12145/* We use char because int might match the return type of a gcc2
12146 builtin and then its argument prototype would still apply. */
12147char $ac_func ();
12148/* The GNU C library defines this for functions which it implements
12149 to always fail with ENOSYS. Some functions are actually named
12150 something starting with __ and the normal name is an alias. */
12151#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12152choke me
12153#else
12154char (*f) () = $ac_func;
12155#endif
12156#ifdef __cplusplus
12157}
12158#endif
12159
12160int
12161main ()
12162{
12163return f != $ac_func;
12164 ;
12165 return 0;
12166}
12167_ACEOF
12168rm -f conftest.$ac_objext conftest$ac_exeext
12169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12170 (eval $ac_link) 2>conftest.er1
12171 ac_status=$?
12172 grep -v '^ *+' conftest.er1 >conftest.err
12173 rm -f conftest.er1
12174 cat conftest.err >&5
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); } &&
12177 { ac_try='test -z "$ac_c_werror_flag"
12178 || test ! -s conftest.err'
12179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12180 (eval $ac_try) 2>&5
12181 ac_status=$?
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); }; } &&
12184 { ac_try='test -s conftest$ac_exeext'
12185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12186 (eval $ac_try) 2>&5
12187 ac_status=$?
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); }; }; then
12190 eval "$as_ac_var=yes"
12191else
12192 echo "$as_me: failed program was:" >&5
12193sed 's/^/| /' conftest.$ac_ext >&5
12194
12195eval "$as_ac_var=no"
12196fi
12197rm -f conftest.err conftest.$ac_objext \
12198 conftest$ac_exeext conftest.$ac_ext
12199fi
12200echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12201echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12202if test `eval echo '${'$as_ac_var'}'` = yes; then
12203 cat >>confdefs.h <<_ACEOF
12204#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12205_ACEOF
12206
12207else
12208
12209
12210echo "$as_me:$LINENO: checking for gethostname in -lnsl" >&5
12211echo $ECHO_N "checking for gethostname in -lnsl... $ECHO_C" >&6
12212if test "${ac_cv_lib_nsl_gethostname+set}" = set; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12214else
12215 ac_check_lib_save_LIBS=$LIBS
12216LIBS="-lnsl $cf_cv_netlibs $LIBS"
12217cat >conftest.$ac_ext <<_ACEOF
12218/* confdefs.h. */
12219_ACEOF
12220cat confdefs.h >>conftest.$ac_ext
12221cat >>conftest.$ac_ext <<_ACEOF
12222/* end confdefs.h. */
12223
12224/* Override any gcc2 internal prototype to avoid an error. */
12225#ifdef __cplusplus
12226extern "C"
12227#endif
12228/* We use char because int might match the return type of a gcc2
12229 builtin and then its argument prototype would still apply. */
12230char gethostname ();
12231int
12232main ()
12233{
12234gethostname ();
12235 ;
12236 return 0;
12237}
12238_ACEOF
12239rm -f conftest.$ac_objext conftest$ac_exeext
12240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12241 (eval $ac_link) 2>conftest.er1
12242 ac_status=$?
12243 grep -v '^ *+' conftest.er1 >conftest.err
12244 rm -f conftest.er1
12245 cat conftest.err >&5
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); } &&
12248 { ac_try='test -z "$ac_c_werror_flag"
12249 || test ! -s conftest.err'
12250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12251 (eval $ac_try) 2>&5
12252 ac_status=$?
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); }; } &&
12255 { ac_try='test -s conftest$ac_exeext'
12256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12257 (eval $ac_try) 2>&5
12258 ac_status=$?
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); }; }; then
12261 ac_cv_lib_nsl_gethostname=yes
12262else
12263 echo "$as_me: failed program was:" >&5
12264sed 's/^/| /' conftest.$ac_ext >&5
12265
12266ac_cv_lib_nsl_gethostname=no
12267fi
12268rm -f conftest.err conftest.$ac_objext \
12269 conftest$ac_exeext conftest.$ac_ext
12270LIBS=$ac_check_lib_save_LIBS
12271fi
12272echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostname" >&5
12273echo "${ECHO_T}$ac_cv_lib_nsl_gethostname" >&6
12274if test $ac_cv_lib_nsl_gethostname = yes; then
12275
12276
12277cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
12278
12279
12280cat >>confdefs.h <<_ACEOF
12281#define HAVE_$cf_tr_func 1
12282_ACEOF
12283
12284 ac_cv_func_gethostname=yes
12285 cf_cv_netlibs="-lnsl $cf_cv_netlibs"
12286else
12287
12288 ac_cv_func_gethostname=unknown
12289 unset ac_cv_func_gethostname 2>/dev/null
12290
12291
12292echo "$as_me:$LINENO: checking for gethostname in -lsocket" >&5
12293echo $ECHO_N "checking for gethostname in -lsocket... $ECHO_C" >&6
12294if test "${ac_cv_lib_socket_gethostname+set}" = set; then
12295 echo $ECHO_N "(cached) $ECHO_C" >&6
12296else
12297 ac_check_lib_save_LIBS=$LIBS
12298LIBS="-lsocket $cf_cv_netlibs $LIBS"
12299cat >conftest.$ac_ext <<_ACEOF
12300/* confdefs.h. */
12301_ACEOF
12302cat confdefs.h >>conftest.$ac_ext
12303cat >>conftest.$ac_ext <<_ACEOF
12304/* end confdefs.h. */
12305
12306/* Override any gcc2 internal prototype to avoid an error. */
12307#ifdef __cplusplus
12308extern "C"
12309#endif
12310/* We use char because int might match the return type of a gcc2
12311 builtin and then its argument prototype would still apply. */
12312char gethostname ();
12313int
12314main ()
12315{
12316gethostname ();
12317 ;
12318 return 0;
12319}
12320_ACEOF
12321rm -f conftest.$ac_objext conftest$ac_exeext
12322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12323 (eval $ac_link) 2>conftest.er1
12324 ac_status=$?
12325 grep -v '^ *+' conftest.er1 >conftest.err
12326 rm -f conftest.er1
12327 cat conftest.err >&5
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); } &&
12330 { ac_try='test -z "$ac_c_werror_flag"
12331 || test ! -s conftest.err'
12332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12333 (eval $ac_try) 2>&5
12334 ac_status=$?
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }; } &&
12337 { ac_try='test -s conftest$ac_exeext'
12338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12339 (eval $ac_try) 2>&5
12340 ac_status=$?
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); }; }; then
12343 ac_cv_lib_socket_gethostname=yes
12344else
12345 echo "$as_me: failed program was:" >&5
12346sed 's/^/| /' conftest.$ac_ext >&5
12347
12348ac_cv_lib_socket_gethostname=no
12349fi
12350rm -f conftest.err conftest.$ac_objext \
12351 conftest$ac_exeext conftest.$ac_ext
12352LIBS=$ac_check_lib_save_LIBS
12353fi
12354echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostname" >&5
12355echo "${ECHO_T}$ac_cv_lib_socket_gethostname" >&6
12356if test $ac_cv_lib_socket_gethostname = yes; then
12357
12358
12359cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
12360
12361
12362cat >>confdefs.h <<_ACEOF
12363#define HAVE_$cf_tr_func 1
12364_ACEOF
12365
12366 ac_cv_func_gethostname=yes
12367 cf_cv_netlibs="-lsocket $cf_cv_netlibs"
12368else
12369
12370 ac_cv_func_gethostname=unknown
12371 unset ac_cv_func_gethostname 2>/dev/null
12372
12373fi
12374
12375
12376fi
12377
12378
12379fi
12380done
12381
12382#
12383# FIXME: sequent needs this library (i.e., -lsocket -linet -lnsl), but
12384# I don't know the entrypoints - 97/7/22 TD
12385echo "$as_me:$LINENO: checking for main in -linet" >&5
12386echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6
12387if test "${ac_cv_lib_inet_main+set}" = set; then
12388 echo $ECHO_N "(cached) $ECHO_C" >&6
12389else
12390 ac_check_lib_save_LIBS=$LIBS
12391LIBS="-linet $LIBS"
12392cat >conftest.$ac_ext <<_ACEOF
12393/* confdefs.h. */
12394_ACEOF
12395cat confdefs.h >>conftest.$ac_ext
12396cat >>conftest.$ac_ext <<_ACEOF
12397/* end confdefs.h. */
12398
12399
12400int
12401main ()
12402{
12403main ();
12404 ;
12405 return 0;
12406}
12407_ACEOF
12408rm -f conftest.$ac_objext conftest$ac_exeext
12409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12410 (eval $ac_link) 2>conftest.er1
12411 ac_status=$?
12412 grep -v '^ *+' conftest.er1 >conftest.err
12413 rm -f conftest.er1
12414 cat conftest.err >&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } &&
12417 { ac_try='test -z "$ac_c_werror_flag"
12418 || test ! -s conftest.err'
12419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420 (eval $ac_try) 2>&5
12421 ac_status=$?
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; } &&
12424 { ac_try='test -s conftest$ac_exeext'
12425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426 (eval $ac_try) 2>&5
12427 ac_status=$?
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); }; }; then
12430 ac_cv_lib_inet_main=yes
12431else
12432 echo "$as_me: failed program was:" >&5
12433sed 's/^/| /' conftest.$ac_ext >&5
12434
12435ac_cv_lib_inet_main=no
12436fi
12437rm -f conftest.err conftest.$ac_objext \
12438 conftest$ac_exeext conftest.$ac_ext
12439LIBS=$ac_check_lib_save_LIBS
12440fi
12441echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5
12442echo "${ECHO_T}$ac_cv_lib_inet_main" >&6
12443if test $ac_cv_lib_inet_main = yes; then
12444 cf_cv_netlibs="-linet $cf_cv_netlibs"
12445fi
12446
12447#
12448if test "$ac_cv_func_lsocket" != no ; then
12449
12450for ac_func in socket
12451do
12452as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12453echo "$as_me:$LINENO: checking for $ac_func" >&5
12454echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12455if eval "test \"\${$as_ac_var+set}\" = set"; then
12456 echo $ECHO_N "(cached) $ECHO_C" >&6
12457else
12458 cat >conftest.$ac_ext <<_ACEOF
12459/* confdefs.h. */
12460_ACEOF
12461cat confdefs.h >>conftest.$ac_ext
12462cat >>conftest.$ac_ext <<_ACEOF
12463/* end confdefs.h. */
12464/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12466#define $ac_func innocuous_$ac_func
12467
12468/* System header to define __stub macros and hopefully few prototypes,
12469 which can conflict with char $ac_func (); below.
12470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12471 <limits.h> exists even on freestanding compilers. */
12472
12473#ifdef __STDC__
12474# include <limits.h>
12475#else
12476# include <assert.h>
12477#endif
12478
12479#undef $ac_func
12480
12481/* Override any gcc2 internal prototype to avoid an error. */
12482#ifdef __cplusplus
12483extern "C"
12484{
12485#endif
12486/* We use char because int might match the return type of a gcc2
12487 builtin and then its argument prototype would still apply. */
12488char $ac_func ();
12489/* The GNU C library defines this for functions which it implements
12490 to always fail with ENOSYS. Some functions are actually named
12491 something starting with __ and the normal name is an alias. */
12492#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12493choke me
12494#else
12495char (*f) () = $ac_func;
12496#endif
12497#ifdef __cplusplus
12498}
12499#endif
12500
12501int
12502main ()
12503{
12504return f != $ac_func;
12505 ;
12506 return 0;
12507}
12508_ACEOF
12509rm -f conftest.$ac_objext conftest$ac_exeext
12510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12511 (eval $ac_link) 2>conftest.er1
12512 ac_status=$?
12513 grep -v '^ *+' conftest.er1 >conftest.err
12514 rm -f conftest.er1
12515 cat conftest.err >&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); } &&
12518 { ac_try='test -z "$ac_c_werror_flag"
12519 || test ! -s conftest.err'
12520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521 (eval $ac_try) 2>&5
12522 ac_status=$?
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); }; } &&
12525 { ac_try='test -s conftest$ac_exeext'
12526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12527 (eval $ac_try) 2>&5
12528 ac_status=$?
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); }; }; then
12531 eval "$as_ac_var=yes"
12532else
12533 echo "$as_me: failed program was:" >&5
12534sed 's/^/| /' conftest.$ac_ext >&5
12535
12536eval "$as_ac_var=no"
12537fi
12538rm -f conftest.err conftest.$ac_objext \
12539 conftest$ac_exeext conftest.$ac_ext
12540fi
12541echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12542echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12543if test `eval echo '${'$as_ac_var'}'` = yes; then
12544 cat >>confdefs.h <<_ACEOF
12545#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12546_ACEOF
12547
12548else
12549
12550
12551echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
12552echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
12553if test "${ac_cv_lib_socket_socket+set}" = set; then
12554 echo $ECHO_N "(cached) $ECHO_C" >&6
12555else
12556 ac_check_lib_save_LIBS=$LIBS
12557LIBS="-lsocket $cf_cv_netlibs $LIBS"
12558cat >conftest.$ac_ext <<_ACEOF
12559/* confdefs.h. */
12560_ACEOF
12561cat confdefs.h >>conftest.$ac_ext
12562cat >>conftest.$ac_ext <<_ACEOF
12563/* end confdefs.h. */
12564
12565/* Override any gcc2 internal prototype to avoid an error. */
12566#ifdef __cplusplus
12567extern "C"
12568#endif
12569/* We use char because int might match the return type of a gcc2
12570 builtin and then its argument prototype would still apply. */
12571char socket ();
12572int
12573main ()
12574{
12575socket ();
12576 ;
12577 return 0;
12578}
12579_ACEOF
12580rm -f conftest.$ac_objext conftest$ac_exeext
12581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12582 (eval $ac_link) 2>conftest.er1
12583 ac_status=$?
12584 grep -v '^ *+' conftest.er1 >conftest.err
12585 rm -f conftest.er1
12586 cat conftest.err >&5
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); } &&
12589 { ac_try='test -z "$ac_c_werror_flag"
12590 || test ! -s conftest.err'
12591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12592 (eval $ac_try) 2>&5
12593 ac_status=$?
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); }; } &&
12596 { ac_try='test -s conftest$ac_exeext'
12597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12598 (eval $ac_try) 2>&5
12599 ac_status=$?
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); }; }; then
12602 ac_cv_lib_socket_socket=yes
12603else
12604 echo "$as_me: failed program was:" >&5
12605sed 's/^/| /' conftest.$ac_ext >&5
12606
12607ac_cv_lib_socket_socket=no
12608fi
12609rm -f conftest.err conftest.$ac_objext \
12610 conftest$ac_exeext conftest.$ac_ext
12611LIBS=$ac_check_lib_save_LIBS
12612fi
12613echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
12614echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
12615if test $ac_cv_lib_socket_socket = yes; then
12616
12617
12618cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
12619
12620
12621cat >>confdefs.h <<_ACEOF
12622#define HAVE_$cf_tr_func 1
12623_ACEOF
12624
12625 ac_cv_func_socket=yes
12626 cf_cv_netlibs="-lsocket $cf_cv_netlibs"
12627else
12628
12629 ac_cv_func_socket=unknown
12630 unset ac_cv_func_socket 2>/dev/null
12631
12632
12633echo "$as_me:$LINENO: checking for socket in -lbsd" >&5
12634echo $ECHO_N "checking for socket in -lbsd... $ECHO_C" >&6
12635if test "${ac_cv_lib_bsd_socket+set}" = set; then
12636 echo $ECHO_N "(cached) $ECHO_C" >&6
12637else
12638 ac_check_lib_save_LIBS=$LIBS
12639LIBS="-lbsd $cf_cv_netlibs $LIBS"
12640cat >conftest.$ac_ext <<_ACEOF
12641/* confdefs.h. */
12642_ACEOF
12643cat confdefs.h >>conftest.$ac_ext
12644cat >>conftest.$ac_ext <<_ACEOF
12645/* end confdefs.h. */
12646
12647/* Override any gcc2 internal prototype to avoid an error. */
12648#ifdef __cplusplus
12649extern "C"
12650#endif
12651/* We use char because int might match the return type of a gcc2
12652 builtin and then its argument prototype would still apply. */
12653char socket ();
12654int
12655main ()
12656{
12657socket ();
12658 ;
12659 return 0;
12660}
12661_ACEOF
12662rm -f conftest.$ac_objext conftest$ac_exeext
12663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12664 (eval $ac_link) 2>conftest.er1
12665 ac_status=$?
12666 grep -v '^ *+' conftest.er1 >conftest.err
12667 rm -f conftest.er1
12668 cat conftest.err >&5
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); } &&
12671 { ac_try='test -z "$ac_c_werror_flag"
12672 || test ! -s conftest.err'
12673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674 (eval $ac_try) 2>&5
12675 ac_status=$?
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; } &&
12678 { ac_try='test -s conftest$ac_exeext'
12679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12680 (eval $ac_try) 2>&5
12681 ac_status=$?
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); }; }; then
12684 ac_cv_lib_bsd_socket=yes
12685else
12686 echo "$as_me: failed program was:" >&5
12687sed 's/^/| /' conftest.$ac_ext >&5
12688
12689ac_cv_lib_bsd_socket=no
12690fi
12691rm -f conftest.err conftest.$ac_objext \
12692 conftest$ac_exeext conftest.$ac_ext
12693LIBS=$ac_check_lib_save_LIBS
12694fi
12695echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_socket" >&5
12696echo "${ECHO_T}$ac_cv_lib_bsd_socket" >&6
12697if test $ac_cv_lib_bsd_socket = yes; then
12698
12699
12700cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
12701
12702
12703cat >>confdefs.h <<_ACEOF
12704#define HAVE_$cf_tr_func 1
12705_ACEOF
12706
12707 ac_cv_func_socket=yes
12708 cf_cv_netlibs="-lbsd $cf_cv_netlibs"
12709else
12710
12711 ac_cv_func_socket=unknown
12712 unset ac_cv_func_socket 2>/dev/null
12713
12714fi
12715
12716
12717fi
12718
12719
12720fi
12721done
12722
12723fi
12724#
12725
12726for ac_func in gethostbyname
12727do
12728as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12729echo "$as_me:$LINENO: checking for $ac_func" >&5
12730echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12731if eval "test \"\${$as_ac_var+set}\" = set"; then
12732 echo $ECHO_N "(cached) $ECHO_C" >&6
12733else
12734 cat >conftest.$ac_ext <<_ACEOF
12735/* confdefs.h. */
12736_ACEOF
12737cat confdefs.h >>conftest.$ac_ext
12738cat >>conftest.$ac_ext <<_ACEOF
12739/* end confdefs.h. */
12740/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12742#define $ac_func innocuous_$ac_func
12743
12744/* System header to define __stub macros and hopefully few prototypes,
12745 which can conflict with char $ac_func (); below.
12746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12747 <limits.h> exists even on freestanding compilers. */
12748
12749#ifdef __STDC__
12750# include <limits.h>
12751#else
12752# include <assert.h>
12753#endif
12754
12755#undef $ac_func
12756
12757/* Override any gcc2 internal prototype to avoid an error. */
12758#ifdef __cplusplus
12759extern "C"
12760{
12761#endif
12762/* We use char because int might match the return type of a gcc2
12763 builtin and then its argument prototype would still apply. */
12764char $ac_func ();
12765/* The GNU C library defines this for functions which it implements
12766 to always fail with ENOSYS. Some functions are actually named
12767 something starting with __ and the normal name is an alias. */
12768#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12769choke me
12770#else
12771char (*f) () = $ac_func;
12772#endif
12773#ifdef __cplusplus
12774}
12775#endif
12776
12777int
12778main ()
12779{
12780return f != $ac_func;
12781 ;
12782 return 0;
12783}
12784_ACEOF
12785rm -f conftest.$ac_objext conftest$ac_exeext
12786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12787 (eval $ac_link) 2>conftest.er1
12788 ac_status=$?
12789 grep -v '^ *+' conftest.er1 >conftest.err
12790 rm -f conftest.er1
12791 cat conftest.err >&5
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); } &&
12794 { ac_try='test -z "$ac_c_werror_flag"
12795 || test ! -s conftest.err'
12796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797 (eval $ac_try) 2>&5
12798 ac_status=$?
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; } &&
12801 { ac_try='test -s conftest$ac_exeext'
12802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12803 (eval $ac_try) 2>&5
12804 ac_status=$?
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); }; }; then
12807 eval "$as_ac_var=yes"
12808else
12809 echo "$as_me: failed program was:" >&5
12810sed 's/^/| /' conftest.$ac_ext >&5
12811
12812eval "$as_ac_var=no"
12813fi
12814rm -f conftest.err conftest.$ac_objext \
12815 conftest$ac_exeext conftest.$ac_ext
12816fi
12817echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12818echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12819if test `eval echo '${'$as_ac_var'}'` = yes; then
12820 cat >>confdefs.h <<_ACEOF
12821#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12822_ACEOF
12823
12824else
12825
12826
12827echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
12828echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
12829if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
12830 echo $ECHO_N "(cached) $ECHO_C" >&6
12831else
12832 ac_check_lib_save_LIBS=$LIBS
12833LIBS="-lnsl $cf_cv_netlibs $LIBS"
12834cat >conftest.$ac_ext <<_ACEOF
12835/* confdefs.h. */
12836_ACEOF
12837cat confdefs.h >>conftest.$ac_ext
12838cat >>conftest.$ac_ext <<_ACEOF
12839/* end confdefs.h. */
12840
12841/* Override any gcc2 internal prototype to avoid an error. */
12842#ifdef __cplusplus
12843extern "C"
12844#endif
12845/* We use char because int might match the return type of a gcc2
12846 builtin and then its argument prototype would still apply. */
12847char gethostbyname ();
12848int
12849main ()
12850{
12851gethostbyname ();
12852 ;
12853 return 0;
12854}
12855_ACEOF
12856rm -f conftest.$ac_objext conftest$ac_exeext
12857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12858 (eval $ac_link) 2>conftest.er1
12859 ac_status=$?
12860 grep -v '^ *+' conftest.er1 >conftest.err
12861 rm -f conftest.er1
12862 cat conftest.err >&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } &&
12865 { ac_try='test -z "$ac_c_werror_flag"
12866 || test ! -s conftest.err'
12867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12868 (eval $ac_try) 2>&5
12869 ac_status=$?
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); }; } &&
12872 { ac_try='test -s conftest$ac_exeext'
12873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12874 (eval $ac_try) 2>&5
12875 ac_status=$?
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); }; }; then
12878 ac_cv_lib_nsl_gethostbyname=yes
12879else
12880 echo "$as_me: failed program was:" >&5
12881sed 's/^/| /' conftest.$ac_ext >&5
12882
12883ac_cv_lib_nsl_gethostbyname=no
12884fi
12885rm -f conftest.err conftest.$ac_objext \
12886 conftest$ac_exeext conftest.$ac_ext
12887LIBS=$ac_check_lib_save_LIBS
12888fi
12889echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
12890echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
12891if test $ac_cv_lib_nsl_gethostbyname = yes; then
12892
12893
12894cf_tr_func=`echo gethostbyname | tr '[a-z]' '[A-Z]'`
12895
12896
12897cat >>confdefs.h <<_ACEOF
12898#define HAVE_$cf_tr_func 1
12899_ACEOF
12900
12901 ac_cv_func_gethostbyname=yes
12902 cf_cv_netlibs="-lnsl $cf_cv_netlibs"
12903else
12904
12905 ac_cv_func_gethostbyname=unknown
12906 unset ac_cv_func_gethostbyname 2>/dev/null
12907
12908fi
12909
12910
12911fi
12912done
12913
12914#
12915
12916for ac_func in strcasecmp
12917do
12918as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12919echo "$as_me:$LINENO: checking for $ac_func" >&5
12920echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12921if eval "test \"\${$as_ac_var+set}\" = set"; then
12922 echo $ECHO_N "(cached) $ECHO_C" >&6
12923else
12924 cat >conftest.$ac_ext <<_ACEOF
12925/* confdefs.h. */
12926_ACEOF
12927cat confdefs.h >>conftest.$ac_ext
12928cat >>conftest.$ac_ext <<_ACEOF
12929/* end confdefs.h. */
12930/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12932#define $ac_func innocuous_$ac_func
12933
12934/* System header to define __stub macros and hopefully few prototypes,
12935 which can conflict with char $ac_func (); below.
12936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12937 <limits.h> exists even on freestanding compilers. */
12938
12939#ifdef __STDC__
12940# include <limits.h>
12941#else
12942# include <assert.h>
12943#endif
12944
12945#undef $ac_func
12946
12947/* Override any gcc2 internal prototype to avoid an error. */
12948#ifdef __cplusplus
12949extern "C"
12950{
12951#endif
12952/* We use char because int might match the return type of a gcc2
12953 builtin and then its argument prototype would still apply. */
12954char $ac_func ();
12955/* The GNU C library defines this for functions which it implements
12956 to always fail with ENOSYS. Some functions are actually named
12957 something starting with __ and the normal name is an alias. */
12958#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12959choke me
12960#else
12961char (*f) () = $ac_func;
12962#endif
12963#ifdef __cplusplus
12964}
12965#endif
12966
12967int
12968main ()
12969{
12970return f != $ac_func;
12971 ;
12972 return 0;
12973}
12974_ACEOF
12975rm -f conftest.$ac_objext conftest$ac_exeext
12976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12977 (eval $ac_link) 2>conftest.er1
12978 ac_status=$?
12979 grep -v '^ *+' conftest.er1 >conftest.err
12980 rm -f conftest.er1
12981 cat conftest.err >&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); } &&
12984 { ac_try='test -z "$ac_c_werror_flag"
12985 || test ! -s conftest.err'
12986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987 (eval $ac_try) 2>&5
12988 ac_status=$?
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; } &&
12991 { ac_try='test -s conftest$ac_exeext'
12992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12993 (eval $ac_try) 2>&5
12994 ac_status=$?
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); }; }; then
12997 eval "$as_ac_var=yes"
12998else
12999 echo "$as_me: failed program was:" >&5
13000sed 's/^/| /' conftest.$ac_ext >&5
13001
13002eval "$as_ac_var=no"
13003fi
13004rm -f conftest.err conftest.$ac_objext \
13005 conftest$ac_exeext conftest.$ac_ext
13006fi
13007echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13008echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13009if test `eval echo '${'$as_ac_var'}'` = yes; then
13010 cat >>confdefs.h <<_ACEOF
13011#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13012_ACEOF
13013
13014else
13015
13016
13017echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
13018echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6
13019if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13021else
13022 ac_check_lib_save_LIBS=$LIBS
13023LIBS="-lresolv $cf_cv_netlibs $LIBS"
13024cat >conftest.$ac_ext <<_ACEOF
13025/* confdefs.h. */
13026_ACEOF
13027cat confdefs.h >>conftest.$ac_ext
13028cat >>conftest.$ac_ext <<_ACEOF
13029/* end confdefs.h. */
13030
13031/* Override any gcc2 internal prototype to avoid an error. */
13032#ifdef __cplusplus
13033extern "C"
13034#endif
13035/* We use char because int might match the return type of a gcc2
13036 builtin and then its argument prototype would still apply. */
13037char strcasecmp ();
13038int
13039main ()
13040{
13041strcasecmp ();
13042 ;
13043 return 0;
13044}
13045_ACEOF
13046rm -f conftest.$ac_objext conftest$ac_exeext
13047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13048 (eval $ac_link) 2>conftest.er1
13049 ac_status=$?
13050 grep -v '^ *+' conftest.er1 >conftest.err
13051 rm -f conftest.er1
13052 cat conftest.err >&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); } &&
13055 { ac_try='test -z "$ac_c_werror_flag"
13056 || test ! -s conftest.err'
13057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13058 (eval $ac_try) 2>&5
13059 ac_status=$?
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); }; } &&
13062 { ac_try='test -s conftest$ac_exeext'
13063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13064 (eval $ac_try) 2>&5
13065 ac_status=$?
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); }; }; then
13068 ac_cv_lib_resolv_strcasecmp=yes
13069else
13070 echo "$as_me: failed program was:" >&5
13071sed 's/^/| /' conftest.$ac_ext >&5
13072
13073ac_cv_lib_resolv_strcasecmp=no
13074fi
13075rm -f conftest.err conftest.$ac_objext \
13076 conftest$ac_exeext conftest.$ac_ext
13077LIBS=$ac_check_lib_save_LIBS
13078fi
13079echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
13080echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6
13081if test $ac_cv_lib_resolv_strcasecmp = yes; then
13082
13083
13084cf_tr_func=`echo strcasecmp | tr '[a-z]' '[A-Z]'`
13085
13086
13087cat >>confdefs.h <<_ACEOF
13088#define HAVE_$cf_tr_func 1
13089_ACEOF
13090
13091 ac_cv_func_strcasecmp=yes
13092 cf_cv_netlibs="-lresolv $cf_cv_netlibs"
13093else
13094
13095 ac_cv_func_strcasecmp=unknown
13096 unset ac_cv_func_strcasecmp 2>/dev/null
13097
13098fi
13099
13100
13101fi
13102done
13103
13104
13105fi
13106
13107LIBS="$LIBS $cf_cv_netlibs"
13108test $cf_test_netlibs = no && echo "$cf_cv_netlibs" >&6
13109
13110 if test "${ac_cv_header_customs_h+set}" = set; then
13111 echo "$as_me:$LINENO: checking for customs.h" >&5
13112echo $ECHO_N "checking for customs.h... $ECHO_C" >&6
13113if test "${ac_cv_header_customs_h+set}" = set; then
13114 echo $ECHO_N "(cached) $ECHO_C" >&6
13115fi
13116echo "$as_me:$LINENO: result: $ac_cv_header_customs_h" >&5
13117echo "${ECHO_T}$ac_cv_header_customs_h" >&6
13118else
13119 # Is the header compilable?
13120echo "$as_me:$LINENO: checking customs.h usability" >&5
13121echo $ECHO_N "checking customs.h usability... $ECHO_C" >&6
13122cat >conftest.$ac_ext <<_ACEOF
13123/* confdefs.h. */
13124_ACEOF
13125cat confdefs.h >>conftest.$ac_ext
13126cat >>conftest.$ac_ext <<_ACEOF
13127/* end confdefs.h. */
13128$ac_includes_default
13129#include <customs.h>
13130_ACEOF
13131rm -f conftest.$ac_objext
13132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13133 (eval $ac_compile) 2>conftest.er1
13134 ac_status=$?
13135 grep -v '^ *+' conftest.er1 >conftest.err
13136 rm -f conftest.er1
13137 cat conftest.err >&5
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); } &&
13140 { ac_try='test -z "$ac_c_werror_flag"
13141 || test ! -s conftest.err'
13142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13143 (eval $ac_try) 2>&5
13144 ac_status=$?
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; } &&
13147 { ac_try='test -s conftest.$ac_objext'
13148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13149 (eval $ac_try) 2>&5
13150 ac_status=$?
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); }; }; then
13153 ac_header_compiler=yes
13154else
13155 echo "$as_me: failed program was:" >&5
13156sed 's/^/| /' conftest.$ac_ext >&5
13157
13158ac_header_compiler=no
13159fi
13160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13161echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13162echo "${ECHO_T}$ac_header_compiler" >&6
13163
13164# Is the header present?
13165echo "$as_me:$LINENO: checking customs.h presence" >&5
13166echo $ECHO_N "checking customs.h presence... $ECHO_C" >&6
13167cat >conftest.$ac_ext <<_ACEOF
13168/* confdefs.h. */
13169_ACEOF
13170cat confdefs.h >>conftest.$ac_ext
13171cat >>conftest.$ac_ext <<_ACEOF
13172/* end confdefs.h. */
13173#include <customs.h>
13174_ACEOF
13175if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13177 ac_status=$?
13178 grep -v '^ *+' conftest.er1 >conftest.err
13179 rm -f conftest.er1
13180 cat conftest.err >&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); } >/dev/null; then
13183 if test -s conftest.err; then
13184 ac_cpp_err=$ac_c_preproc_warn_flag
13185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13186 else
13187 ac_cpp_err=
13188 fi
13189else
13190 ac_cpp_err=yes
13191fi
13192if test -z "$ac_cpp_err"; then
13193 ac_header_preproc=yes
13194else
13195 echo "$as_me: failed program was:" >&5
13196sed 's/^/| /' conftest.$ac_ext >&5
13197
13198 ac_header_preproc=no
13199fi
13200rm -f conftest.err conftest.$ac_ext
13201echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13202echo "${ECHO_T}$ac_header_preproc" >&6
13203
13204# So? What about this header?
13205case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13206 yes:no: )
13207 { echo "$as_me:$LINENO: WARNING: customs.h: accepted by the compiler, rejected by the preprocessor!" >&5
13208echo "$as_me: WARNING: customs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13209 { echo "$as_me:$LINENO: WARNING: customs.h: proceeding with the compiler's result" >&5
13210echo "$as_me: WARNING: customs.h: proceeding with the compiler's result" >&2;}
13211 ac_header_preproc=yes
13212 ;;
13213 no:yes:* )
13214 { echo "$as_me:$LINENO: WARNING: customs.h: present but cannot be compiled" >&5
13215echo "$as_me: WARNING: customs.h: present but cannot be compiled" >&2;}
13216 { echo "$as_me:$LINENO: WARNING: customs.h: check for missing prerequisite headers?" >&5
13217echo "$as_me: WARNING: customs.h: check for missing prerequisite headers?" >&2;}
13218 { echo "$as_me:$LINENO: WARNING: customs.h: see the Autoconf documentation" >&5
13219echo "$as_me: WARNING: customs.h: see the Autoconf documentation" >&2;}
13220 { echo "$as_me:$LINENO: WARNING: customs.h: section \"Present But Cannot Be Compiled\"" >&5
13221echo "$as_me: WARNING: customs.h: section \"Present But Cannot Be Compiled\"" >&2;}
13222 { echo "$as_me:$LINENO: WARNING: customs.h: proceeding with the preprocessor's result" >&5
13223echo "$as_me: WARNING: customs.h: proceeding with the preprocessor's result" >&2;}
13224 { echo "$as_me:$LINENO: WARNING: customs.h: in the future, the compiler will take precedence" >&5
13225echo "$as_me: WARNING: customs.h: in the future, the compiler will take precedence" >&2;}
13226 (
13227 cat <<\_ASBOX
13228## ------------------------------- ##
13229## Report this to [email protected] ##
13230## ------------------------------- ##
13231_ASBOX
13232 ) |
13233 sed "s/^/$as_me: WARNING: /" >&2
13234 ;;
13235esac
13236echo "$as_me:$LINENO: checking for customs.h" >&5
13237echo $ECHO_N "checking for customs.h... $ECHO_C" >&6
13238if test "${ac_cv_header_customs_h+set}" = set; then
13239 echo $ECHO_N "(cached) $ECHO_C" >&6
13240else
13241 ac_cv_header_customs_h=$ac_header_preproc
13242fi
13243echo "$as_me:$LINENO: result: $ac_cv_header_customs_h" >&5
13244echo "${ECHO_T}$ac_cv_header_customs_h" >&6
13245
13246fi
13247if test $ac_cv_header_customs_h = yes; then
13248 use_customs=true
13249 REMOTE=cstms
13250 LIBS="$LIBS -lcustoms" LDFLAGS="$make_ldflags"
13251else
13252 with_customs=no
13253 CPPFLAGS="$make_cppflags" make_badcust=yes
13254fi
13255
13256
13257 ;;
13258 esac
13259fi;
13260# Tell automake about this, so it can include the right .c files.
13261
13262
13263if test "$use_customs" = true; then
13264 USE_CUSTOMS_TRUE=
13265 USE_CUSTOMS_FALSE='#'
13266else
13267 USE_CUSTOMS_TRUE='#'
13268 USE_CUSTOMS_FALSE=
13269fi
13270
13271
13272# See if we can handle the job server feature, and if the user wants it.
13273
13274# Check whether --enable-job-server or --disable-job-server was given.
13275if test "${enable_job_server+set}" = set; then
13276 enableval="$enable_job_server"
13277 make_cv_job_server="$enableval" user_job_server="$enableval"
13278else
13279 make_cv_job_server="yes"
13280fi;
13281
13282has_wait_nohang=yes
13283case "$ac_cv_func_waitpid/$ac_cv_func_wait3" in
13284 no/no) has_wait_nohang=no ;;
13285esac
13286
13287echo "$as_me:$LINENO: checking for SA_RESTART" >&5
13288echo $ECHO_N "checking for SA_RESTART... $ECHO_C" >&6
13289if test "${make_cv_sa_restart+set}" = set; then
13290 echo $ECHO_N "(cached) $ECHO_C" >&6
13291else
13292
13293 cat >conftest.$ac_ext <<_ACEOF
13294/* confdefs.h. */
13295_ACEOF
13296cat confdefs.h >>conftest.$ac_ext
13297cat >>conftest.$ac_ext <<_ACEOF
13298/* end confdefs.h. */
13299#include <signal.h>
13300int
13301main ()
13302{
13303return SA_RESTART;
13304 ;
13305 return 0;
13306}
13307_ACEOF
13308rm -f conftest.$ac_objext
13309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13310 (eval $ac_compile) 2>conftest.er1
13311 ac_status=$?
13312 grep -v '^ *+' conftest.er1 >conftest.err
13313 rm -f conftest.er1
13314 cat conftest.err >&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); } &&
13317 { ac_try='test -z "$ac_c_werror_flag"
13318 || test ! -s conftest.err'
13319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13320 (eval $ac_try) 2>&5
13321 ac_status=$?
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); }; } &&
13324 { ac_try='test -s conftest.$ac_objext'
13325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13326 (eval $ac_try) 2>&5
13327 ac_status=$?
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); }; }; then
13330 make_cv_sa_restart=yes
13331else
13332 echo "$as_me: failed program was:" >&5
13333sed 's/^/| /' conftest.$ac_ext >&5
13334
13335make_cv_sa_restart=no
13336fi
13337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13338fi
13339echo "$as_me:$LINENO: result: $make_cv_sa_restart" >&5
13340echo "${ECHO_T}$make_cv_sa_restart" >&6
13341
13342# enable make_cv_sa_restart for OS/2
13343case "$host_os" in
13344 os2*) make_cv_sa_restart=yes ;;
13345esac
13346
13347if test "$make_cv_sa_restart" != no; then
13348
13349cat >>confdefs.h <<\_ACEOF
13350#define HAVE_SA_RESTART 1
13351_ACEOF
13352
13353fi
13354
13355case "$ac_cv_func_pipe/$ac_cv_func_sigaction/$make_cv_sa_restart/$has_wait_nohang/$make_cv_job_server" in
13356 yes/yes/yes/yes/yes)
13357
13358cat >>confdefs.h <<\_ACEOF
13359#define MAKE_JOBSERVER 1
13360_ACEOF
13361;;
13362esac
13363
13364# Find the SCCS commands, so we can include them in our default rules.
13365
13366echo "$as_me:$LINENO: checking for location of SCCS get command" >&5
13367echo $ECHO_N "checking for location of SCCS get command... $ECHO_C" >&6
13368if test "${make_cv_path_sccs_get+set}" = set; then
13369 echo $ECHO_N "(cached) $ECHO_C" >&6
13370else
13371
13372if test -f /usr/sccs/get; then
13373 make_cv_path_sccs_get=/usr/sccs/get
13374else
13375 make_cv_path_sccs_get=get
13376fi
13377fi
13378echo "$as_me:$LINENO: result: $make_cv_path_sccs_get" >&5
13379echo "${ECHO_T}$make_cv_path_sccs_get" >&6
13380
13381cat >>confdefs.h <<_ACEOF
13382#define SCCS_GET "$make_cv_path_sccs_get"
13383_ACEOF
13384
13385
13386ac_clean_files="$ac_clean_files s.conftest conftoast" # Remove these later.
13387if ( /usr/sccs/admin -n s.conftest || admin -n s.conftest ) >/dev/null 2>&1 &&
13388 test -f s.conftest; then
13389 # We successfully created an SCCS file.
13390 echo "$as_me:$LINENO: checking if SCCS get command understands -G" >&5
13391echo $ECHO_N "checking if SCCS get command understands -G... $ECHO_C" >&6
13392if test "${make_cv_sys_get_minus_G+set}" = set; then
13393 echo $ECHO_N "(cached) $ECHO_C" >&6
13394else
13395
13396 if $make_cv_path_sccs_get -Gconftoast s.conftest >/dev/null 2>&1 &&
13397 test -f conftoast; then
13398 make_cv_sys_get_minus_G=yes
13399 else
13400 make_cv_sys_get_minus_G=no
13401 fi
13402fi
13403echo "$as_me:$LINENO: result: $make_cv_sys_get_minus_G" >&5
13404echo "${ECHO_T}$make_cv_sys_get_minus_G" >&6
13405 case "$make_cv_sys_get_minus_G" in
13406 yes)
13407cat >>confdefs.h <<\_ACEOF
13408#define SCCS_GET_MINUS_G 1
13409_ACEOF
13410;;
13411 esac
13412fi
13413rm -f s.conftest conftoast
13414
13415# Check the system to see if it provides GNU glob. If not, use our
13416# local version.
13417
13418echo "$as_me:$LINENO: checking if system libc has GNU glob" >&5
13419echo $ECHO_N "checking if system libc has GNU glob... $ECHO_C" >&6
13420if test "${make_cv_sys_gnu_glob+set}" = set; then
13421 echo $ECHO_N "(cached) $ECHO_C" >&6
13422else
13423
13424 cat >conftest.$ac_ext <<_ACEOF
13425/* confdefs.h. */
13426_ACEOF
13427cat confdefs.h >>conftest.$ac_ext
13428cat >>conftest.$ac_ext <<_ACEOF
13429/* end confdefs.h. */
13430
13431#include <features.h>
13432#include <glob.h>
13433#include <fnmatch.h>
13434
13435#define GLOB_INTERFACE_VERSION 1
13436#if !defined _LIBC && defined __GNU_LIBRARY__ && __GNU_LIBRARY__ > 1
13437# include <gnu-versions.h>
13438# if _GNU_GLOB_INTERFACE_VERSION == GLOB_INTERFACE_VERSION
13439 gnu glob
13440# endif
13441#endif
13442
13443_ACEOF
13444if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13445 $EGREP "gnu glob" >/dev/null 2>&1; then
13446 echo "$as_me:$LINENO: result: yes" >&5
13447echo "${ECHO_T}yes" >&6
13448make_cv_sys_gnu_glob=yes
13449else
13450 echo "$as_me:$LINENO: result: no; using local copy" >&5
13451echo "${ECHO_T}no; using local copy" >&6
13452 GLOBINC='-I$(srcdir)/glob'
13453 GLOBLIB=glob/libglob.a
13454make_cv_sys_gnu_glob=no
13455fi
13456rm -f conftest*
13457
13458fi
13459
13460# Tell automake about this, so it can build the right .c files.
13461
13462
13463if test "$make_cv_sys_gnu_glob" = no; then
13464 USE_LOCAL_GLOB_TRUE=
13465 USE_LOCAL_GLOB_FALSE='#'
13466else
13467 USE_LOCAL_GLOB_TRUE='#'
13468 USE_LOCAL_GLOB_FALSE=
13469fi
13470
13471
13472# Let the makefile know what our build host is
13473
13474
13475cat >>confdefs.h <<_ACEOF
13476#define MAKE_HOST "$host"
13477_ACEOF
13478
13479MAKE_HOST="$host"
13480
13481
13482# Include the Maintainer's Makefile section, if it's here.
13483
13484MAINT_MAKEFILE=/dev/null
13485if test -r "$srcdir/maintMakefile"; then
13486 MAINT_MAKEFILE="$srcdir/maintMakefile"
13487fi
13488
13489
13490# Allow building with dmalloc
13491echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
13492echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
13493
13494# Check whether --with-dmalloc or --without-dmalloc was given.
13495if test "${with_dmalloc+set}" = set; then
13496 withval="$with_dmalloc"
13497 if test "$withval" = yes; then
13498 echo "$as_me:$LINENO: result: yes" >&5
13499echo "${ECHO_T}yes" >&6
13500
13501cat >>confdefs.h <<\_ACEOF
13502#define WITH_DMALLOC 1
13503_ACEOF
13504
13505 LIBS="$LIBS -ldmalloc"
13506 LDFLAGS="$LDFLAGS -g"
13507else
13508 echo "$as_me:$LINENO: result: no" >&5
13509echo "${ECHO_T}no" >&6
13510fi
13511else
13512 echo "$as_me:$LINENO: result: no" >&5
13513echo "${ECHO_T}no" >&6
13514fi;
13515
13516
13517# Forcibly disable SET_MAKE. If it's set it breaks things like the test
13518# scripts, etc.
13519SET_MAKE=
13520
13521# Sanity check and inform the user of what we found
13522
13523case "$make_badcust" in
13524 yes) echo
13525 echo "WARNING: --with-customs specified but no customs.h could be found;"
13526 echo " disabling Customs support."
13527 echo ;;
13528esac
13529
13530case "$with_customs" in
13531 ""|n|no|y|ye|yes) ;;
13532 *) if test -f "$with_customs/lib/libcustoms.a"; then
13533 :
13534 else
13535 echo
13536 echo "WARNING: '$with_customs/lib' does not appear to contain the"
13537 echo " Customs library. You must build and install Customs"
13538 echo " before compiling GNU make."
13539 echo
13540 fi ;;
13541esac
13542
13543case "$has_wait_nohang" in
13544 no) echo
13545 echo "WARNING: Your system has neither waitpid() nor wait3()."
13546 echo " Without one of these, signal handling is unreliable."
13547 echo " You should be aware that running GNU make with -j"
13548 echo " could result in erratic behavior."
13549 echo ;;
13550esac
13551
13552case "$make_cv_job_server/$user_job_server" in
13553 no/yes) echo
13554 echo "WARNING: Make job server requires a POSIX-ish system that"
13555 echo " supports the pipe(), sigaction(), and either"
13556 echo " waitpid() or wait3() functions. Your system doesn't"
13557 echo " appear to provide one or more of those."
13558 echo " Disabling job server support."
13559 echo ;;
13560esac
13561
13562
13563# Specify what files are to be created.
13564# We only generate the build.sh if we have a build.sh.in; we won't have
13565# one before we've created a distribution.
13566
13567 ac_config_files="$ac_config_files Makefile glob/Makefile po/Makefile.in config/Makefile doc/Makefile"
13568
13569
13570if test -f $srcdir/build.sh.in; then
13571 ac_config_files="$ac_config_files build.sh"
13572
13573fi
13574
13575
13576# OK, do it!
13577
13578cat >confcache <<\_ACEOF
13579# This file is a shell script that caches the results of configure
13580# tests run on this system so they can be shared between configure
13581# scripts and configure runs, see configure's option --config-cache.
13582# It is not useful on other systems. If it contains results you don't
13583# want to keep, you may remove or edit it.
13584#
13585# config.status only pays attention to the cache file if you give it
13586# the --recheck option to rerun configure.
13587#
13588# `ac_cv_env_foo' variables (set or unset) will be overridden when
13589# loading this file, other *unset* `ac_cv_foo' will be assigned the
13590# following values.
13591
13592_ACEOF
13593
13594# The following way of writing the cache mishandles newlines in values,
13595# but we know of no workaround that is simple, portable, and efficient.
13596# So, don't put newlines in cache variables' values.
13597# Ultrix sh set writes to stderr and can't be redirected directly,
13598# and sets the high bit in the cache file unless we assign to the vars.
13599{
13600 (set) 2>&1 |
13601 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13602 *ac_space=\ *)
13603 # `set' does not quote correctly, so add quotes (double-quote
13604 # substitution turns \\\\ into \\, and sed turns \\ into \).
13605 sed -n \
13606 "s/'/'\\\\''/g;
13607 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13608 ;;
13609 *)
13610 # `set' quotes correctly as required by POSIX, so do not add quotes.
13611 sed -n \
13612 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13613 ;;
13614 esac;
13615} |
13616 sed '
13617 t clear
13618 : clear
13619 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13620 t end
13621 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13622 : end' >>confcache
13623if diff $cache_file confcache >/dev/null 2>&1; then :; else
13624 if test -w $cache_file; then
13625 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13626 cat confcache >$cache_file
13627 else
13628 echo "not updating unwritable cache $cache_file"
13629 fi
13630fi
13631rm -f confcache
13632
13633test "x$prefix" = xNONE && prefix=$ac_default_prefix
13634# Let make expand exec_prefix.
13635test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13636
13637# VPATH may cause trouble with some makes, so we remove $(srcdir),
13638# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13639# trailing colons and then remove the whole line if VPATH becomes empty
13640# (actually we leave an empty line to preserve line numbers).
13641if test "x$srcdir" = x.; then
13642 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13643s/:*\$(srcdir):*/:/;
13644s/:*\${srcdir}:*/:/;
13645s/:*@srcdir@:*/:/;
13646s/^\([^=]*=[ ]*\):*/\1/;
13647s/:*$//;
13648s/^[^=]*=[ ]*$//;
13649}'
13650fi
13651
13652DEFS=-DHAVE_CONFIG_H
13653
13654ac_libobjs=
13655ac_ltlibobjs=
13656for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13657 # 1. Remove the extension, and $U if already installed.
13658 ac_i=`echo "$ac_i" |
13659 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13660 # 2. Add them.
13661 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13662 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13663done
13664LIBOBJS=$ac_libobjs
13665
13666LTLIBOBJS=$ac_ltlibobjs
13667
13668
13669if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13670 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13671Usually this means the macro was only invoked conditionally." >&5
13672echo "$as_me: error: conditional \"AMDEP\" was never defined.
13673Usually this means the macro was only invoked conditionally." >&2;}
13674 { (exit 1); exit 1; }; }
13675fi
13676if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13677 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13678Usually this means the macro was only invoked conditionally." >&5
13679echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13680Usually this means the macro was only invoked conditionally." >&2;}
13681 { (exit 1); exit 1; }; }
13682fi
13683if test -z "${USE_CUSTOMS_TRUE}" && test -z "${USE_CUSTOMS_FALSE}"; then
13684 { { echo "$as_me:$LINENO: error: conditional \"USE_CUSTOMS\" was never defined.
13685Usually this means the macro was only invoked conditionally." >&5
13686echo "$as_me: error: conditional \"USE_CUSTOMS\" was never defined.
13687Usually this means the macro was only invoked conditionally." >&2;}
13688 { (exit 1); exit 1; }; }
13689fi
13690if test -z "${USE_LOCAL_GLOB_TRUE}" && test -z "${USE_LOCAL_GLOB_FALSE}"; then
13691 { { echo "$as_me:$LINENO: error: conditional \"USE_LOCAL_GLOB\" was never defined.
13692Usually this means the macro was only invoked conditionally." >&5
13693echo "$as_me: error: conditional \"USE_LOCAL_GLOB\" was never defined.
13694Usually this means the macro was only invoked conditionally." >&2;}
13695 { (exit 1); exit 1; }; }
13696fi
13697
13698: ${CONFIG_STATUS=./config.status}
13699ac_clean_files_save=$ac_clean_files
13700ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13701{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13702echo "$as_me: creating $CONFIG_STATUS" >&6;}
13703cat >$CONFIG_STATUS <<_ACEOF
13704#! $SHELL
13705# Generated by $as_me.
13706# Run this file to recreate the current configuration.
13707# Compiler output produced by configure, useful for debugging
13708# configure, is in config.log if it exists.
13709
13710debug=false
13711ac_cs_recheck=false
13712ac_cs_silent=false
13713SHELL=\${CONFIG_SHELL-$SHELL}
13714_ACEOF
13715
13716cat >>$CONFIG_STATUS <<\_ACEOF
13717## --------------------- ##
13718## M4sh Initialization. ##
13719## --------------------- ##
13720
13721# Be Bourne compatible
13722if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13723 emulate sh
13724 NULLCMD=:
13725 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13726 # is contrary to our usage. Disable this feature.
13727 alias -g '${1+"$@"}'='"$@"'
13728elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13729 set -o posix
13730fi
13731DUALCASE=1; export DUALCASE # for MKS sh
13732
13733# Support unset when possible.
13734if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13735 as_unset=unset
13736else
13737 as_unset=false
13738fi
13739
13740
13741# Work around bugs in pre-3.0 UWIN ksh.
13742$as_unset ENV MAIL MAILPATH
13743PS1='$ '
13744PS2='> '
13745PS4='+ '
13746
13747# NLS nuisances.
13748for as_var in \
13749 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13750 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13751 LC_TELEPHONE LC_TIME
13752do
13753 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13754 eval $as_var=C; export $as_var
13755 else
13756 $as_unset $as_var
13757 fi
13758done
13759
13760# Required to use basename.
13761if expr a : '\(a\)' >/dev/null 2>&1; then
13762 as_expr=expr
13763else
13764 as_expr=false
13765fi
13766
13767if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13768 as_basename=basename
13769else
13770 as_basename=false
13771fi
13772
13773
13774# Name of the executable.
13775as_me=`$as_basename "$0" ||
13776$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13777 X"$0" : 'X\(//\)$' \| \
13778 X"$0" : 'X\(/\)$' \| \
13779 . : '\(.\)' 2>/dev/null ||
13780echo X/"$0" |
13781 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13782 /^X\/\(\/\/\)$/{ s//\1/; q; }
13783 /^X\/\(\/\).*/{ s//\1/; q; }
13784 s/.*/./; q'`
13785
13786
13787# PATH needs CR, and LINENO needs CR and PATH.
13788# Avoid depending upon Character Ranges.
13789as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13790as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13791as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13792as_cr_digits='0123456789'
13793as_cr_alnum=$as_cr_Letters$as_cr_digits
13794
13795# The user is always right.
13796if test "${PATH_SEPARATOR+set}" != set; then
13797 echo "#! /bin/sh" >conf$$.sh
13798 echo "exit 0" >>conf$$.sh
13799 chmod +x conf$$.sh
13800 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13801 PATH_SEPARATOR=';'
13802 else
13803 PATH_SEPARATOR=:
13804 fi
13805 rm -f conf$$.sh
13806fi
13807
13808
13809 as_lineno_1=$LINENO
13810 as_lineno_2=$LINENO
13811 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13812 test "x$as_lineno_1" != "x$as_lineno_2" &&
13813 test "x$as_lineno_3" = "x$as_lineno_2" || {
13814 # Find who we are. Look in the path if we contain no path at all
13815 # relative or not.
13816 case $0 in
13817 *[\\/]* ) as_myself=$0 ;;
13818 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13819for as_dir in $PATH
13820do
13821 IFS=$as_save_IFS
13822 test -z "$as_dir" && as_dir=.
13823 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13824done
13825
13826 ;;
13827 esac
13828 # We did not find ourselves, most probably we were run as `sh COMMAND'
13829 # in which case we are not to be found in the path.
13830 if test "x$as_myself" = x; then
13831 as_myself=$0
13832 fi
13833 if test ! -f "$as_myself"; then
13834 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13835echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13836 { (exit 1); exit 1; }; }
13837 fi
13838 case $CONFIG_SHELL in
13839 '')
13840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13841for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13842do
13843 IFS=$as_save_IFS
13844 test -z "$as_dir" && as_dir=.
13845 for as_base in sh bash ksh sh5; do
13846 case $as_dir in
13847 /*)
13848 if ("$as_dir/$as_base" -c '
13849 as_lineno_1=$LINENO
13850 as_lineno_2=$LINENO
13851 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13852 test "x$as_lineno_1" != "x$as_lineno_2" &&
13853 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13854 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13855 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13856 CONFIG_SHELL=$as_dir/$as_base
13857 export CONFIG_SHELL
13858 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13859 fi;;
13860 esac
13861 done
13862done
13863;;
13864 esac
13865
13866 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13867 # uniformly replaced by the line number. The first 'sed' inserts a
13868 # line-number line before each line; the second 'sed' does the real
13869 # work. The second script uses 'N' to pair each line-number line
13870 # with the numbered line, and appends trailing '-' during
13871 # substitution so that $LINENO is not a special case at line end.
13872 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13873 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13874 sed '=' <$as_myself |
13875 sed '
13876 N
13877 s,$,-,
13878 : loop
13879 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13880 t loop
13881 s,-$,,
13882 s,^['$as_cr_digits']*\n,,
13883 ' >$as_me.lineno &&
13884 chmod +x $as_me.lineno ||
13885 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13886echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13887 { (exit 1); exit 1; }; }
13888
13889 # Don't try to exec as it changes $[0], causing all sort of problems
13890 # (the dirname of $[0] is not the place where we might find the
13891 # original and so on. Autoconf is especially sensible to this).
13892 . ./$as_me.lineno
13893 # Exit status is that of the last command.
13894 exit
13895}
13896
13897
13898case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13899 *c*,-n*) ECHO_N= ECHO_C='
13900' ECHO_T=' ' ;;
13901 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13902 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13903esac
13904
13905if expr a : '\(a\)' >/dev/null 2>&1; then
13906 as_expr=expr
13907else
13908 as_expr=false
13909fi
13910
13911rm -f conf$$ conf$$.exe conf$$.file
13912echo >conf$$.file
13913if ln -s conf$$.file conf$$ 2>/dev/null; then
13914 # We could just check for DJGPP; but this test a) works b) is more generic
13915 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13916 if test -f conf$$.exe; then
13917 # Don't use ln at all; we don't have any links
13918 as_ln_s='cp -p'
13919 else
13920 as_ln_s='ln -s'
13921 fi
13922elif ln conf$$.file conf$$ 2>/dev/null; then
13923 as_ln_s=ln
13924else
13925 as_ln_s='cp -p'
13926fi
13927rm -f conf$$ conf$$.exe conf$$.file
13928
13929if mkdir -p . 2>/dev/null; then
13930 as_mkdir_p=:
13931else
13932 test -d ./-p && rmdir ./-p
13933 as_mkdir_p=false
13934fi
13935
13936as_executable_p="test -f"
13937
13938# Sed expression to map a string onto a valid CPP name.
13939as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13940
13941# Sed expression to map a string onto a valid variable name.
13942as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13943
13944
13945# IFS
13946# We need space, tab and new line, in precisely that order.
13947as_nl='
13948'
13949IFS=" $as_nl"
13950
13951# CDPATH.
13952$as_unset CDPATH
13953
13954exec 6>&1
13955
13956# Open the log real soon, to keep \$[0] and so on meaningful, and to
13957# report actual input values of CONFIG_FILES etc. instead of their
13958# values after options handling. Logging --version etc. is OK.
13959exec 5>>config.log
13960{
13961 echo
13962 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13963## Running $as_me. ##
13964_ASBOX
13965} >&5
13966cat >&5 <<_CSEOF
13967
13968This file was extended by GNU make $as_me 3.81beta1, which was
13969generated by GNU Autoconf 2.59. Invocation command line was
13970
13971 CONFIG_FILES = $CONFIG_FILES
13972 CONFIG_HEADERS = $CONFIG_HEADERS
13973 CONFIG_LINKS = $CONFIG_LINKS
13974 CONFIG_COMMANDS = $CONFIG_COMMANDS
13975 $ $0 $@
13976
13977_CSEOF
13978echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13979echo >&5
13980_ACEOF
13981
13982# Files that config.status was made for.
13983if test -n "$ac_config_files"; then
13984 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13985fi
13986
13987if test -n "$ac_config_headers"; then
13988 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13989fi
13990
13991if test -n "$ac_config_links"; then
13992 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13993fi
13994
13995if test -n "$ac_config_commands"; then
13996 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13997fi
13998
13999cat >>$CONFIG_STATUS <<\_ACEOF
14000
14001ac_cs_usage="\
14002\`$as_me' instantiates files from templates according to the
14003current configuration.
14004
14005Usage: $0 [OPTIONS] [FILE]...
14006
14007 -h, --help print this help, then exit
14008 -V, --version print version number, then exit
14009 -q, --quiet do not print progress messages
14010 -d, --debug don't remove temporary files
14011 --recheck update $as_me by reconfiguring in the same conditions
14012 --file=FILE[:TEMPLATE]
14013 instantiate the configuration file FILE
14014 --header=FILE[:TEMPLATE]
14015 instantiate the configuration header FILE
14016
14017Configuration files:
14018$config_files
14019
14020Configuration headers:
14021$config_headers
14022
14023Configuration commands:
14024$config_commands
14025
14026Report bugs to <[email protected]>."
14027_ACEOF
14028
14029cat >>$CONFIG_STATUS <<_ACEOF
14030ac_cs_version="\\
14031GNU make config.status 3.81beta1
14032configured by $0, generated by GNU Autoconf 2.59,
14033 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14034
14035Copyright (C) 2003 Free Software Foundation, Inc.
14036This config.status script is free software; the Free Software Foundation
14037gives unlimited permission to copy, distribute and modify it."
14038srcdir=$srcdir
14039INSTALL="$INSTALL"
14040_ACEOF
14041
14042cat >>$CONFIG_STATUS <<\_ACEOF
14043# If no file are specified by the user, then we need to provide default
14044# value. By we need to know if files were specified by the user.
14045ac_need_defaults=:
14046while test $# != 0
14047do
14048 case $1 in
14049 --*=*)
14050 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14051 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14052 ac_shift=:
14053 ;;
14054 -*)
14055 ac_option=$1
14056 ac_optarg=$2
14057 ac_shift=shift
14058 ;;
14059 *) # This is not an option, so the user has probably given explicit
14060 # arguments.
14061 ac_option=$1
14062 ac_need_defaults=false;;
14063 esac
14064
14065 case $ac_option in
14066 # Handling of the options.
14067_ACEOF
14068cat >>$CONFIG_STATUS <<\_ACEOF
14069 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14070 ac_cs_recheck=: ;;
14071 --version | --vers* | -V )
14072 echo "$ac_cs_version"; exit 0 ;;
14073 --he | --h)
14074 # Conflict between --help and --header
14075 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14076Try \`$0 --help' for more information." >&5
14077echo "$as_me: error: ambiguous option: $1
14078Try \`$0 --help' for more information." >&2;}
14079 { (exit 1); exit 1; }; };;
14080 --help | --hel | -h )
14081 echo "$ac_cs_usage"; exit 0 ;;
14082 --debug | --d* | -d )
14083 debug=: ;;
14084 --file | --fil | --fi | --f )
14085 $ac_shift
14086 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14087 ac_need_defaults=false;;
14088 --header | --heade | --head | --hea )
14089 $ac_shift
14090 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14091 ac_need_defaults=false;;
14092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14093 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14094 ac_cs_silent=: ;;
14095
14096 # This is an error.
14097 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14098Try \`$0 --help' for more information." >&5
14099echo "$as_me: error: unrecognized option: $1
14100Try \`$0 --help' for more information." >&2;}
14101 { (exit 1); exit 1; }; } ;;
14102
14103 *) ac_config_targets="$ac_config_targets $1" ;;
14104
14105 esac
14106 shift
14107done
14108
14109ac_configure_extra_args=
14110
14111if $ac_cs_silent; then
14112 exec 6>/dev/null
14113 ac_configure_extra_args="$ac_configure_extra_args --silent"
14114fi
14115
14116_ACEOF
14117cat >>$CONFIG_STATUS <<_ACEOF
14118if \$ac_cs_recheck; then
14119 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14120 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14121fi
14122
14123_ACEOF
14124
14125cat >>$CONFIG_STATUS <<_ACEOF
14126#
14127# INIT-COMMANDS section.
14128#
14129
14130AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14131# Capture the value of obsolete ALL_LINGUAS because we need it to compute
14132 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14133 # from automake.
14134 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14135 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14136 LINGUAS="${LINGUAS-%UNSET%}"
14137
14138
14139_ACEOF
14140
14141
14142
14143cat >>$CONFIG_STATUS <<\_ACEOF
14144for ac_config_target in $ac_config_targets
14145do
14146 case "$ac_config_target" in
14147 # Handling of arguments.
14148 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14149 "glob/Makefile" ) CONFIG_FILES="$CONFIG_FILES glob/Makefile" ;;
14150 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
14151 "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
14152 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14153 "build.sh" ) CONFIG_FILES="$CONFIG_FILES build.sh" ;;
14154 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14155 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14156 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14157 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14158echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14159 { (exit 1); exit 1; }; };;
14160 esac
14161done
14162
14163# If the user did not use the arguments to specify the items to instantiate,
14164# then the envvar interface is used. Set only those that are not.
14165# We use the long form for the default assignment because of an extremely
14166# bizarre bug on SunOS 4.1.3.
14167if $ac_need_defaults; then
14168 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14169 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14170 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14171fi
14172
14173# Have a temporary directory for convenience. Make it in the build tree
14174# simply because there is no reason to put it here, and in addition,
14175# creating and moving files from /tmp can sometimes cause problems.
14176# Create a temporary directory, and hook for its removal unless debugging.
14177$debug ||
14178{
14179 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14180 trap '{ (exit 1); exit 1; }' 1 2 13 15
14181}
14182
14183# Create a (secure) tmp directory for tmp files.
14184
14185{
14186 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14187 test -n "$tmp" && test -d "$tmp"
14188} ||
14189{
14190 tmp=./confstat$$-$RANDOM
14191 (umask 077 && mkdir $tmp)
14192} ||
14193{
14194 echo "$me: cannot create a temporary directory in ." >&2
14195 { (exit 1); exit 1; }
14196}
14197
14198_ACEOF
14199
14200cat >>$CONFIG_STATUS <<_ACEOF
14201
14202#
14203# CONFIG_FILES section.
14204#
14205
14206# No need to generate the scripts if there are no CONFIG_FILES.
14207# This happens for instance when ./config.status config.h
14208if test -n "\$CONFIG_FILES"; then
14209 # Protect against being on the right side of a sed subst in config.status.
14210 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14211 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14212s,@SHELL@,$SHELL,;t t
14213s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14214s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14215s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14216s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14217s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14218s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14219s,@exec_prefix@,$exec_prefix,;t t
14220s,@prefix@,$prefix,;t t
14221s,@program_transform_name@,$program_transform_name,;t t
14222s,@bindir@,$bindir,;t t
14223s,@sbindir@,$sbindir,;t t
14224s,@libexecdir@,$libexecdir,;t t
14225s,@datadir@,$datadir,;t t
14226s,@sysconfdir@,$sysconfdir,;t t
14227s,@sharedstatedir@,$sharedstatedir,;t t
14228s,@localstatedir@,$localstatedir,;t t
14229s,@libdir@,$libdir,;t t
14230s,@includedir@,$includedir,;t t
14231s,@oldincludedir@,$oldincludedir,;t t
14232s,@infodir@,$infodir,;t t
14233s,@mandir@,$mandir,;t t
14234s,@build_alias@,$build_alias,;t t
14235s,@host_alias@,$host_alias,;t t
14236s,@target_alias@,$target_alias,;t t
14237s,@DEFS@,$DEFS,;t t
14238s,@ECHO_C@,$ECHO_C,;t t
14239s,@ECHO_N@,$ECHO_N,;t t
14240s,@ECHO_T@,$ECHO_T,;t t
14241s,@LIBS@,$LIBS,;t t
14242s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14243s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14244s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14245s,@CYGPATH_W@,$CYGPATH_W,;t t
14246s,@PACKAGE@,$PACKAGE,;t t
14247s,@VERSION@,$VERSION,;t t
14248s,@ACLOCAL@,$ACLOCAL,;t t
14249s,@AUTOCONF@,$AUTOCONF,;t t
14250s,@AUTOMAKE@,$AUTOMAKE,;t t
14251s,@AUTOHEADER@,$AUTOHEADER,;t t
14252s,@MAKEINFO@,$MAKEINFO,;t t
14253s,@AMTAR@,$AMTAR,;t t
14254s,@install_sh@,$install_sh,;t t
14255s,@STRIP@,$STRIP,;t t
14256s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14257s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
14258s,@mkdir_p@,$mkdir_p,;t t
14259s,@AWK@,$AWK,;t t
14260s,@SET_MAKE@,$SET_MAKE,;t t
14261s,@am__leading_dot@,$am__leading_dot,;t t
14262s,@CC@,$CC,;t t
14263s,@CFLAGS@,$CFLAGS,;t t
14264s,@LDFLAGS@,$LDFLAGS,;t t
14265s,@CPPFLAGS@,$CPPFLAGS,;t t
14266s,@ac_ct_CC@,$ac_ct_CC,;t t
14267s,@EXEEXT@,$EXEEXT,;t t
14268s,@OBJEXT@,$OBJEXT,;t t
14269s,@DEPDIR@,$DEPDIR,;t t
14270s,@am__include@,$am__include,;t t
14271s,@am__quote@,$am__quote,;t t
14272s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
14273s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
14274s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
14275s,@CCDEPMODE@,$CCDEPMODE,;t t
14276s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
14277s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
14278s,@RANLIB@,$RANLIB,;t t
14279s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14280s,@CPP@,$CPP,;t t
14281s,@AR@,$AR,;t t
14282s,@PERL@,$PERL,;t t
14283s,@build@,$build,;t t
14284s,@build_cpu@,$build_cpu,;t t
14285s,@build_vendor@,$build_vendor,;t t
14286s,@build_os@,$build_os,;t t
14287s,@host@,$host,;t t
14288s,@host_cpu@,$host_cpu,;t t
14289s,@host_vendor@,$host_vendor,;t t
14290s,@host_os@,$host_os,;t t
14291s,@EGREP@,$EGREP,;t t
14292s,@U@,$U,;t t
14293s,@ANSI2KNR@,$ANSI2KNR,;t t
14294s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
14295s,@USE_NLS@,$USE_NLS,;t t
14296s,@MSGFMT@,$MSGFMT,;t t
14297s,@GMSGFMT@,$GMSGFMT,;t t
14298s,@XGETTEXT@,$XGETTEXT,;t t
14299s,@MSGMERGE@,$MSGMERGE,;t t
14300s,@LIBICONV@,$LIBICONV,;t t
14301s,@LTLIBICONV@,$LTLIBICONV,;t t
14302s,@INTLLIBS@,$INTLLIBS,;t t
14303s,@LIBINTL@,$LIBINTL,;t t
14304s,@LTLIBINTL@,$LTLIBINTL,;t t
14305s,@POSUB@,$POSUB,;t t
14306s,@ALLOCA@,$ALLOCA,;t t
14307s,@LIBOBJS@,$LIBOBJS,;t t
14308s,@NEED_SETGID@,$NEED_SETGID,;t t
14309s,@KMEM_GROUP@,$KMEM_GROUP,;t t
14310s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
14311s,@REMOTE@,$REMOTE,;t t
14312s,@USE_CUSTOMS_TRUE@,$USE_CUSTOMS_TRUE,;t t
14313s,@USE_CUSTOMS_FALSE@,$USE_CUSTOMS_FALSE,;t t
14314s,@GLOBINC@,$GLOBINC,;t t
14315s,@GLOBLIB@,$GLOBLIB,;t t
14316s,@USE_LOCAL_GLOB_TRUE@,$USE_LOCAL_GLOB_TRUE,;t t
14317s,@USE_LOCAL_GLOB_FALSE@,$USE_LOCAL_GLOB_FALSE,;t t
14318s,@MAKE_HOST@,$MAKE_HOST,;t t
14319s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14320/@MAINT_MAKEFILE@/r $MAINT_MAKEFILE
14321s,@MAINT_MAKEFILE@,,;t t
14322CEOF
14323
14324_ACEOF
14325
14326 cat >>$CONFIG_STATUS <<\_ACEOF
14327 # Split the substitutions into bite-sized pieces for seds with
14328 # small command number limits, like on Digital OSF/1 and HP-UX.
14329 ac_max_sed_lines=48
14330 ac_sed_frag=1 # Number of current file.
14331 ac_beg=1 # First line for current file.
14332 ac_end=$ac_max_sed_lines # Line after last line for current file.
14333 ac_more_lines=:
14334 ac_sed_cmds=
14335 while $ac_more_lines; do
14336 if test $ac_beg -gt 1; then
14337 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14338 else
14339 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14340 fi
14341 if test ! -s $tmp/subs.frag; then
14342 ac_more_lines=false
14343 else
14344 # The purpose of the label and of the branching condition is to
14345 # speed up the sed processing (if there are no `@' at all, there
14346 # is no need to browse any of the substitutions).
14347 # These are the two extra sed commands mentioned above.
14348 (echo ':t
14349 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14350 if test -z "$ac_sed_cmds"; then
14351 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14352 else
14353 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14354 fi
14355 ac_sed_frag=`expr $ac_sed_frag + 1`
14356 ac_beg=$ac_end
14357 ac_end=`expr $ac_end + $ac_max_sed_lines`
14358 fi
14359 done
14360 if test -z "$ac_sed_cmds"; then
14361 ac_sed_cmds=cat
14362 fi
14363fi # test -n "$CONFIG_FILES"
14364
14365_ACEOF
14366cat >>$CONFIG_STATUS <<\_ACEOF
14367for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14368 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14369 case $ac_file in
14370 - | *:- | *:-:* ) # input from stdin
14371 cat >$tmp/stdin
14372 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14373 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14374 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14375 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14376 * ) ac_file_in=$ac_file.in ;;
14377 esac
14378
14379 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14380 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14381$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14382 X"$ac_file" : 'X\(//\)[^/]' \| \
14383 X"$ac_file" : 'X\(//\)$' \| \
14384 X"$ac_file" : 'X\(/\)' \| \
14385 . : '\(.\)' 2>/dev/null ||
14386echo X"$ac_file" |
14387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14388 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14389 /^X\(\/\/\)$/{ s//\1/; q; }
14390 /^X\(\/\).*/{ s//\1/; q; }
14391 s/.*/./; q'`
14392 { if $as_mkdir_p; then
14393 mkdir -p "$ac_dir"
14394 else
14395 as_dir="$ac_dir"
14396 as_dirs=
14397 while test ! -d "$as_dir"; do
14398 as_dirs="$as_dir $as_dirs"
14399 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14400$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14401 X"$as_dir" : 'X\(//\)[^/]' \| \
14402 X"$as_dir" : 'X\(//\)$' \| \
14403 X"$as_dir" : 'X\(/\)' \| \
14404 . : '\(.\)' 2>/dev/null ||
14405echo X"$as_dir" |
14406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14407 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14408 /^X\(\/\/\)$/{ s//\1/; q; }
14409 /^X\(\/\).*/{ s//\1/; q; }
14410 s/.*/./; q'`
14411 done
14412 test ! -n "$as_dirs" || mkdir $as_dirs
14413 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14414echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14415 { (exit 1); exit 1; }; }; }
14416
14417 ac_builddir=.
14418
14419if test "$ac_dir" != .; then
14420 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14421 # A "../" for each directory in $ac_dir_suffix.
14422 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14423else
14424 ac_dir_suffix= ac_top_builddir=
14425fi
14426
14427case $srcdir in
14428 .) # No --srcdir option. We are building in place.
14429 ac_srcdir=.
14430 if test -z "$ac_top_builddir"; then
14431 ac_top_srcdir=.
14432 else
14433 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14434 fi ;;
14435 [\\/]* | ?:[\\/]* ) # Absolute path.
14436 ac_srcdir=$srcdir$ac_dir_suffix;
14437 ac_top_srcdir=$srcdir ;;
14438 *) # Relative path.
14439 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14440 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14441esac
14442
14443# Do not use `cd foo && pwd` to compute absolute paths, because
14444# the directories may not exist.
14445case `pwd` in
14446.) ac_abs_builddir="$ac_dir";;
14447*)
14448 case "$ac_dir" in
14449 .) ac_abs_builddir=`pwd`;;
14450 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14451 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14452 esac;;
14453esac
14454case $ac_abs_builddir in
14455.) ac_abs_top_builddir=${ac_top_builddir}.;;
14456*)
14457 case ${ac_top_builddir}. in
14458 .) ac_abs_top_builddir=$ac_abs_builddir;;
14459 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14460 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14461 esac;;
14462esac
14463case $ac_abs_builddir in
14464.) ac_abs_srcdir=$ac_srcdir;;
14465*)
14466 case $ac_srcdir in
14467 .) ac_abs_srcdir=$ac_abs_builddir;;
14468 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14469 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14470 esac;;
14471esac
14472case $ac_abs_builddir in
14473.) ac_abs_top_srcdir=$ac_top_srcdir;;
14474*)
14475 case $ac_top_srcdir in
14476 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14477 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14478 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14479 esac;;
14480esac
14481
14482
14483 case $INSTALL in
14484 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14485 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14486 esac
14487
14488 if test x"$ac_file" != x-; then
14489 { echo "$as_me:$LINENO: creating $ac_file" >&5
14490echo "$as_me: creating $ac_file" >&6;}
14491 rm -f "$ac_file"
14492 fi
14493 # Let's still pretend it is `configure' which instantiates (i.e., don't
14494 # use $as_me), people would be surprised to read:
14495 # /* config.h. Generated by config.status. */
14496 if test x"$ac_file" = x-; then
14497 configure_input=
14498 else
14499 configure_input="$ac_file. "
14500 fi
14501 configure_input=$configure_input"Generated from `echo $ac_file_in |
14502 sed 's,.*/,,'` by configure."
14503
14504 # First look for the input files in the build tree, otherwise in the
14505 # src tree.
14506 ac_file_inputs=`IFS=:
14507 for f in $ac_file_in; do
14508 case $f in
14509 -) echo $tmp/stdin ;;
14510 [\\/$]*)
14511 # Absolute (can't be DOS-style, as IFS=:)
14512 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14513echo "$as_me: error: cannot find input file: $f" >&2;}
14514 { (exit 1); exit 1; }; }
14515 echo "$f";;
14516 *) # Relative
14517 if test -f "$f"; then
14518 # Build tree
14519 echo "$f"
14520 elif test -f "$srcdir/$f"; then
14521 # Source tree
14522 echo "$srcdir/$f"
14523 else
14524 # /dev/null tree
14525 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14526echo "$as_me: error: cannot find input file: $f" >&2;}
14527 { (exit 1); exit 1; }; }
14528 fi;;
14529 esac
14530 done` || { (exit 1); exit 1; }
14531_ACEOF
14532cat >>$CONFIG_STATUS <<_ACEOF
14533 sed "$ac_vpsub
14534$extrasub
14535_ACEOF
14536cat >>$CONFIG_STATUS <<\_ACEOF
14537:t
14538/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14539s,@configure_input@,$configure_input,;t t
14540s,@srcdir@,$ac_srcdir,;t t
14541s,@abs_srcdir@,$ac_abs_srcdir,;t t
14542s,@top_srcdir@,$ac_top_srcdir,;t t
14543s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14544s,@builddir@,$ac_builddir,;t t
14545s,@abs_builddir@,$ac_abs_builddir,;t t
14546s,@top_builddir@,$ac_top_builddir,;t t
14547s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14548s,@INSTALL@,$ac_INSTALL,;t t
14549" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14550 rm -f $tmp/stdin
14551 if test x"$ac_file" != x-; then
14552 mv $tmp/out $ac_file
14553 else
14554 cat $tmp/out
14555 rm -f $tmp/out
14556 fi
14557
14558done
14559_ACEOF
14560cat >>$CONFIG_STATUS <<\_ACEOF
14561
14562#
14563# CONFIG_HEADER section.
14564#
14565
14566# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14567# NAME is the cpp macro being defined and VALUE is the value it is being given.
14568#
14569# ac_d sets the value in "#define NAME VALUE" lines.
14570ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14571ac_dB='[ ].*$,\1#\2'
14572ac_dC=' '
14573ac_dD=',;t'
14574# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14575ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14576ac_uB='$,\1#\2define\3'
14577ac_uC=' '
14578ac_uD=',;t'
14579
14580for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14581 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14582 case $ac_file in
14583 - | *:- | *:-:* ) # input from stdin
14584 cat >$tmp/stdin
14585 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14586 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14587 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14588 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14589 * ) ac_file_in=$ac_file.in ;;
14590 esac
14591
14592 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14593echo "$as_me: creating $ac_file" >&6;}
14594
14595 # First look for the input files in the build tree, otherwise in the
14596 # src tree.
14597 ac_file_inputs=`IFS=:
14598 for f in $ac_file_in; do
14599 case $f in
14600 -) echo $tmp/stdin ;;
14601 [\\/$]*)
14602 # Absolute (can't be DOS-style, as IFS=:)
14603 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14604echo "$as_me: error: cannot find input file: $f" >&2;}
14605 { (exit 1); exit 1; }; }
14606 # Do quote $f, to prevent DOS paths from being IFS'd.
14607 echo "$f";;
14608 *) # Relative
14609 if test -f "$f"; then
14610 # Build tree
14611 echo "$f"
14612 elif test -f "$srcdir/$f"; then
14613 # Source tree
14614 echo "$srcdir/$f"
14615 else
14616 # /dev/null tree
14617 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14618echo "$as_me: error: cannot find input file: $f" >&2;}
14619 { (exit 1); exit 1; }; }
14620 fi;;
14621 esac
14622 done` || { (exit 1); exit 1; }
14623 # Remove the trailing spaces.
14624 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14625
14626_ACEOF
14627
14628# Transform confdefs.h into two sed scripts, `conftest.defines' and
14629# `conftest.undefs', that substitutes the proper values into
14630# config.h.in to produce config.h. The first handles `#define'
14631# templates, and the second `#undef' templates.
14632# And first: Protect against being on the right side of a sed subst in
14633# config.status. Protect against being in an unquoted here document
14634# in config.status.
14635rm -f conftest.defines conftest.undefs
14636# Using a here document instead of a string reduces the quoting nightmare.
14637# Putting comments in sed scripts is not portable.
14638#
14639# `end' is used to avoid that the second main sed command (meant for
14640# 0-ary CPP macros) applies to n-ary macro definitions.
14641# See the Autoconf documentation for `clear'.
14642cat >confdef2sed.sed <<\_ACEOF
14643s/[\\&,]/\\&/g
14644s,[\\$`],\\&,g
14645t clear
14646: clear
14647s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14648t end
14649s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14650: end
14651_ACEOF
14652# If some macros were called several times there might be several times
14653# the same #defines, which is useless. Nevertheless, we may not want to
14654# sort them, since we want the *last* AC-DEFINE to be honored.
14655uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14656sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14657rm -f confdef2sed.sed
14658
14659# This sed command replaces #undef with comments. This is necessary, for
14660# example, in the case of _POSIX_SOURCE, which is predefined and required
14661# on some systems where configure will not decide to define it.
14662cat >>conftest.undefs <<\_ACEOF
14663s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14664_ACEOF
14665
14666# Break up conftest.defines because some shells have a limit on the size
14667# of here documents, and old seds have small limits too (100 cmds).
14668echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14669echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14670echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14671echo ' :' >>$CONFIG_STATUS
14672rm -f conftest.tail
14673while grep . conftest.defines >/dev/null
14674do
14675 # Write a limited-size here document to $tmp/defines.sed.
14676 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14677 # Speed up: don't consider the non `#define' lines.
14678 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14679 # Work around the forget-to-reset-the-flag bug.
14680 echo 't clr' >>$CONFIG_STATUS
14681 echo ': clr' >>$CONFIG_STATUS
14682 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14683 echo 'CEOF
14684 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14685 rm -f $tmp/in
14686 mv $tmp/out $tmp/in
14687' >>$CONFIG_STATUS
14688 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14689 rm -f conftest.defines
14690 mv conftest.tail conftest.defines
14691done
14692rm -f conftest.defines
14693echo ' fi # grep' >>$CONFIG_STATUS
14694echo >>$CONFIG_STATUS
14695
14696# Break up conftest.undefs because some shells have a limit on the size
14697# of here documents, and old seds have small limits too (100 cmds).
14698echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14699rm -f conftest.tail
14700while grep . conftest.undefs >/dev/null
14701do
14702 # Write a limited-size here document to $tmp/undefs.sed.
14703 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14704 # Speed up: don't consider the non `#undef'
14705 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14706 # Work around the forget-to-reset-the-flag bug.
14707 echo 't clr' >>$CONFIG_STATUS
14708 echo ': clr' >>$CONFIG_STATUS
14709 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14710 echo 'CEOF
14711 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14712 rm -f $tmp/in
14713 mv $tmp/out $tmp/in
14714' >>$CONFIG_STATUS
14715 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14716 rm -f conftest.undefs
14717 mv conftest.tail conftest.undefs
14718done
14719rm -f conftest.undefs
14720
14721cat >>$CONFIG_STATUS <<\_ACEOF
14722 # Let's still pretend it is `configure' which instantiates (i.e., don't
14723 # use $as_me), people would be surprised to read:
14724 # /* config.h. Generated by config.status. */
14725 if test x"$ac_file" = x-; then
14726 echo "/* Generated by configure. */" >$tmp/config.h
14727 else
14728 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14729 fi
14730 cat $tmp/in >>$tmp/config.h
14731 rm -f $tmp/in
14732 if test x"$ac_file" != x-; then
14733 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14734 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14735echo "$as_me: $ac_file is unchanged" >&6;}
14736 else
14737 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14738$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14739 X"$ac_file" : 'X\(//\)[^/]' \| \
14740 X"$ac_file" : 'X\(//\)$' \| \
14741 X"$ac_file" : 'X\(/\)' \| \
14742 . : '\(.\)' 2>/dev/null ||
14743echo X"$ac_file" |
14744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14745 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14746 /^X\(\/\/\)$/{ s//\1/; q; }
14747 /^X\(\/\).*/{ s//\1/; q; }
14748 s/.*/./; q'`
14749 { if $as_mkdir_p; then
14750 mkdir -p "$ac_dir"
14751 else
14752 as_dir="$ac_dir"
14753 as_dirs=
14754 while test ! -d "$as_dir"; do
14755 as_dirs="$as_dir $as_dirs"
14756 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14757$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14758 X"$as_dir" : 'X\(//\)[^/]' \| \
14759 X"$as_dir" : 'X\(//\)$' \| \
14760 X"$as_dir" : 'X\(/\)' \| \
14761 . : '\(.\)' 2>/dev/null ||
14762echo X"$as_dir" |
14763 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14764 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14765 /^X\(\/\/\)$/{ s//\1/; q; }
14766 /^X\(\/\).*/{ s//\1/; q; }
14767 s/.*/./; q'`
14768 done
14769 test ! -n "$as_dirs" || mkdir $as_dirs
14770 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14771echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14772 { (exit 1); exit 1; }; }; }
14773
14774 rm -f $ac_file
14775 mv $tmp/config.h $ac_file
14776 fi
14777 else
14778 cat $tmp/config.h
14779 rm -f $tmp/config.h
14780 fi
14781# Compute $ac_file's index in $config_headers.
14782_am_stamp_count=1
14783for _am_header in $config_headers :; do
14784 case $_am_header in
14785 $ac_file | $ac_file:* )
14786 break ;;
14787 * )
14788 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14789 esac
14790done
14791echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14792$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14793 X$ac_file : 'X\(//\)[^/]' \| \
14794 X$ac_file : 'X\(//\)$' \| \
14795 X$ac_file : 'X\(/\)' \| \
14796 . : '\(.\)' 2>/dev/null ||
14797echo X$ac_file |
14798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14799 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14800 /^X\(\/\/\)$/{ s//\1/; q; }
14801 /^X\(\/\).*/{ s//\1/; q; }
14802 s/.*/./; q'`/stamp-h$_am_stamp_count
14803done
14804_ACEOF
14805cat >>$CONFIG_STATUS <<\_ACEOF
14806
14807#
14808# CONFIG_COMMANDS section.
14809#
14810for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14811 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14812 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14813 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14814$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14815 X"$ac_dest" : 'X\(//\)[^/]' \| \
14816 X"$ac_dest" : 'X\(//\)$' \| \
14817 X"$ac_dest" : 'X\(/\)' \| \
14818 . : '\(.\)' 2>/dev/null ||
14819echo X"$ac_dest" |
14820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14821 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14822 /^X\(\/\/\)$/{ s//\1/; q; }
14823 /^X\(\/\).*/{ s//\1/; q; }
14824 s/.*/./; q'`
14825 { if $as_mkdir_p; then
14826 mkdir -p "$ac_dir"
14827 else
14828 as_dir="$ac_dir"
14829 as_dirs=
14830 while test ! -d "$as_dir"; do
14831 as_dirs="$as_dir $as_dirs"
14832 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14833$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14834 X"$as_dir" : 'X\(//\)[^/]' \| \
14835 X"$as_dir" : 'X\(//\)$' \| \
14836 X"$as_dir" : 'X\(/\)' \| \
14837 . : '\(.\)' 2>/dev/null ||
14838echo X"$as_dir" |
14839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14840 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14841 /^X\(\/\/\)$/{ s//\1/; q; }
14842 /^X\(\/\).*/{ s//\1/; q; }
14843 s/.*/./; q'`
14844 done
14845 test ! -n "$as_dirs" || mkdir $as_dirs
14846 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14847echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14848 { (exit 1); exit 1; }; }; }
14849
14850 ac_builddir=.
14851
14852if test "$ac_dir" != .; then
14853 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14854 # A "../" for each directory in $ac_dir_suffix.
14855 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14856else
14857 ac_dir_suffix= ac_top_builddir=
14858fi
14859
14860case $srcdir in
14861 .) # No --srcdir option. We are building in place.
14862 ac_srcdir=.
14863 if test -z "$ac_top_builddir"; then
14864 ac_top_srcdir=.
14865 else
14866 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14867 fi ;;
14868 [\\/]* | ?:[\\/]* ) # Absolute path.
14869 ac_srcdir=$srcdir$ac_dir_suffix;
14870 ac_top_srcdir=$srcdir ;;
14871 *) # Relative path.
14872 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14873 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14874esac
14875
14876# Do not use `cd foo && pwd` to compute absolute paths, because
14877# the directories may not exist.
14878case `pwd` in
14879.) ac_abs_builddir="$ac_dir";;
14880*)
14881 case "$ac_dir" in
14882 .) ac_abs_builddir=`pwd`;;
14883 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14884 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14885 esac;;
14886esac
14887case $ac_abs_builddir in
14888.) ac_abs_top_builddir=${ac_top_builddir}.;;
14889*)
14890 case ${ac_top_builddir}. in
14891 .) ac_abs_top_builddir=$ac_abs_builddir;;
14892 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14893 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14894 esac;;
14895esac
14896case $ac_abs_builddir in
14897.) ac_abs_srcdir=$ac_srcdir;;
14898*)
14899 case $ac_srcdir in
14900 .) ac_abs_srcdir=$ac_abs_builddir;;
14901 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14902 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14903 esac;;
14904esac
14905case $ac_abs_builddir in
14906.) ac_abs_top_srcdir=$ac_top_srcdir;;
14907*)
14908 case $ac_top_srcdir in
14909 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14910 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14911 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14912 esac;;
14913esac
14914
14915
14916 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14917echo "$as_me: executing $ac_dest commands" >&6;}
14918 case $ac_dest in
14919 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14920 # Strip MF so we end up with the name of the file.
14921 mf=`echo "$mf" | sed -e 's/:.*$//'`
14922 # Check whether this is an Automake generated Makefile or not.
14923 # We used to match only the files named `Makefile.in', but
14924 # some people rename them; so instead we look at the file content.
14925 # Grep'ing the first line is not enough: some people post-process
14926 # each Makefile.in and add a new line on top of each file to say so.
14927 # So let's grep whole file.
14928 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14929 dirpart=`(dirname "$mf") 2>/dev/null ||
14930$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14931 X"$mf" : 'X\(//\)[^/]' \| \
14932 X"$mf" : 'X\(//\)$' \| \
14933 X"$mf" : 'X\(/\)' \| \
14934 . : '\(.\)' 2>/dev/null ||
14935echo X"$mf" |
14936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14937 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14938 /^X\(\/\/\)$/{ s//\1/; q; }
14939 /^X\(\/\).*/{ s//\1/; q; }
14940 s/.*/./; q'`
14941 else
14942 continue
14943 fi
14944 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
14945 # Extract the definition of DEP_FILES from the Makefile without
14946 # running `make'.
14947 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14948 test -z "$DEPDIR" && continue
14949 # When using ansi2knr, U may be empty or an underscore; expand it
14950 U=`sed -n 's/^U = //p' < "$mf"`
14951 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
14952 # We invoke sed twice because it is the simplest approach to
14953 # changing $(DEPDIR) to its actual value in the expansion.
14954 for file in `sed -n '
14955 /^DEP_FILES = .*\\\\$/ {
14956 s/^DEP_FILES = //
14957 :loop
14958 s/\\\\$//
14959 p
14960 n
14961 /\\\\$/ b loop
14962 p
14963 }
14964 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
14965 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14966 # Make sure the directory exists.
14967 test -f "$dirpart/$file" && continue
14968 fdir=`(dirname "$file") 2>/dev/null ||
14969$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14970 X"$file" : 'X\(//\)[^/]' \| \
14971 X"$file" : 'X\(//\)$' \| \
14972 X"$file" : 'X\(/\)' \| \
14973 . : '\(.\)' 2>/dev/null ||
14974echo X"$file" |
14975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14976 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14977 /^X\(\/\/\)$/{ s//\1/; q; }
14978 /^X\(\/\).*/{ s//\1/; q; }
14979 s/.*/./; q'`
14980 { if $as_mkdir_p; then
14981 mkdir -p $dirpart/$fdir
14982 else
14983 as_dir=$dirpart/$fdir
14984 as_dirs=
14985 while test ! -d "$as_dir"; do
14986 as_dirs="$as_dir $as_dirs"
14987 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14988$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14989 X"$as_dir" : 'X\(//\)[^/]' \| \
14990 X"$as_dir" : 'X\(//\)$' \| \
14991 X"$as_dir" : 'X\(/\)' \| \
14992 . : '\(.\)' 2>/dev/null ||
14993echo X"$as_dir" |
14994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14995 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14996 /^X\(\/\/\)$/{ s//\1/; q; }
14997 /^X\(\/\).*/{ s//\1/; q; }
14998 s/.*/./; q'`
14999 done
15000 test ! -n "$as_dirs" || mkdir $as_dirs
15001 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15002echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15003 { (exit 1); exit 1; }; }; }
15004
15005 # echo "creating $dirpart/$file"
15006 echo '# dummy' > "$dirpart/$file"
15007 done
15008done
15009 ;;
15010 default-1 )
15011 for ac_file in $CONFIG_FILES; do
15012 # Support "outfile[:infile[:infile...]]"
15013 case "$ac_file" in
15014 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15015 esac
15016 # PO directories have a Makefile.in generated from Makefile.in.in.
15017 case "$ac_file" in */Makefile.in)
15018 # Adjust a relative srcdir.
15019 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15020 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15021 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15022 # In autoconf-2.13 it is called $ac_given_srcdir.
15023 # In autoconf-2.50 it is called $srcdir.
15024 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15025 case "$ac_given_srcdir" in
15026 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15027 /*) top_srcdir="$ac_given_srcdir" ;;
15028 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15029 esac
15030 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15031 rm -f "$ac_dir/POTFILES"
15032 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15033 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15034 POMAKEFILEDEPS="POTFILES.in"
15035 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15036 # on $ac_dir but don't depend on user-specified configuration
15037 # parameters.
15038 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15039 # The LINGUAS file contains the set of available languages.
15040 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15041 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15042 fi
15043 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15044 # Hide the ALL_LINGUAS assigment from automake.
15045 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15046 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15047 else
15048 # The set of available languages was given in configure.in.
15049 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15050 fi
15051 case "$ac_given_srcdir" in
15052 .) srcdirpre= ;;
15053 *) srcdirpre='$(srcdir)/' ;;
15054 esac
15055 POFILES=
15056 GMOFILES=
15057 UPDATEPOFILES=
15058 DUMMYPOFILES=
15059 for lang in $ALL_LINGUAS; do
15060 POFILES="$POFILES $srcdirpre$lang.po"
15061 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15062 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15063 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15064 done
15065 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15066 # environment variable.
15067 INST_LINGUAS=
15068 if test -n "$ALL_LINGUAS"; then
15069 for presentlang in $ALL_LINGUAS; do
15070 useit=no
15071 if test "%UNSET%" != "$LINGUAS"; then
15072 desiredlanguages="$LINGUAS"
15073 else
15074 desiredlanguages="$ALL_LINGUAS"
15075 fi
15076 for desiredlang in $desiredlanguages; do
15077 # Use the presentlang catalog if desiredlang is
15078 # a. equal to presentlang, or
15079 # b. a variant of presentlang (because in this case,
15080 # presentlang can be used as a fallback for messages
15081 # which are not translated in the desiredlang catalog).
15082 case "$desiredlang" in
15083 "$presentlang"*) useit=yes;;
15084 esac
15085 done
15086 if test $useit = yes; then
15087 INST_LINGUAS="$INST_LINGUAS $presentlang"
15088 fi
15089 done
15090 fi
15091 CATALOGS=
15092 if test -n "$INST_LINGUAS"; then
15093 for lang in $INST_LINGUAS; do
15094 CATALOGS="$CATALOGS $lang.gmo"
15095 done
15096 fi
15097 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15098 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
15099 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15100 if test -f "$f"; then
15101 case "$f" in
15102 *.orig | *.bak | *~) ;;
15103 *) cat "$f" >> "$ac_dir/Makefile" ;;
15104 esac
15105 fi
15106 done
15107 fi
15108 ;;
15109 esac
15110 done ;;
15111 esac
15112done
15113_ACEOF
15114
15115cat >>$CONFIG_STATUS <<\_ACEOF
15116
15117{ (exit 0); exit 0; }
15118_ACEOF
15119chmod +x $CONFIG_STATUS
15120ac_clean_files=$ac_clean_files_save
15121
15122
15123# configure is writing to config.log, and then calls config.status.
15124# config.status does its own redirection, appending to config.log.
15125# Unfortunately, on DOS this fails, as config.log is still kept open
15126# by configure, so config.status won't be able to write to it; its
15127# output is simply discarded. So we exec the FD to /dev/null,
15128# effectively closing config.log, so it can be properly (re)opened and
15129# appended to by config.status. When coming back to configure, we
15130# need to make the FD available again.
15131if test "$no_create" != yes; then
15132 ac_cs_success=:
15133 ac_config_status_args=
15134 test "$silent" = yes &&
15135 ac_config_status_args="$ac_config_status_args --quiet"
15136 exec 5>/dev/null
15137 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15138 exec 5>>config.log
15139 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15140 # would make configure fail if this is the last instruction.
15141 $ac_cs_success || { (exit 1); exit 1; }
15142fi
15143
15144
15145
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette