Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for autossh 1.4.
5 #
6 # Report bugs to <Carson Harding <[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
16 if 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+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24 fi
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29 as_unset=unset
30 else
31 as_unset=false
32 fi
33
34
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
40
41 # NLS nuisances.
42 for 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
46 do
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
52 done
53
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57 else
58 as_expr=false
59 fi
60
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63 else
64 as_basename=false
65 fi
66
67
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74 echo 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.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89 # The user is always right.
90 if 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
100 fi
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
113 for as_dir in $PATH
114 do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
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
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
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
155 done
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
190 case `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= ;;
195 esac
196
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199 else
200 as_expr=false
201 fi
202
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if 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
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216 else
217 as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220
221 if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223 else
224 test -d ./-p && rmdir ./-p
225 as_mkdir_p=false
226 fi
227
228 as_executable_p="test -f"
229
230 # Sed expression to map a string onto a valid CPP name.
231 as_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.
234 as_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.
239 as_nl='
240 '
241 IFS=" $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.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252 exec 6>&1
253
254 #
255 # Initializations.
256 #
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
259 cross_compiling=no
260 subdirs=
261 MFLAGS=
262 MAKEFLAGS=
263 SHELL=${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.
271 PACKAGE_NAME='autossh'
272 PACKAGE_TARNAME='autossh'
273 PACKAGE_VERSION='1.4'
274 PACKAGE_STRING='autossh 1.4'
275 PACKAGE_BUGREPORT='Carson Harding <[email protected]>'
276
277 ac_unique_file="daemon.h"
278 # Factoring default headers for most tests.
279 ac_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
315 ac_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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ssh path_ssh CPP EGREP LIBOBJS LTLIBOBJS'
316 ac_subst_files=''
317
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_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.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
355
356 ac_prev=
357 for ac_option
358 do
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
630 Try \`$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
653 done
654
655 if 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; }; }
659 fi
660
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
663 do
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
670 done
671
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
675 do
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
682 done
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.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
690
691 # FIXME: To remove some day.
692 if 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
700 fi
701
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705 test "$silent" = yes && exec 6>/dev/null
706
707
708 # Find the source files, if location was not specified.
709 if 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 ||
718 echo 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
728 else
729 ac_srcdir_defaulted=no
730 fi
731 if 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
739 fi
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; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
757 ac_env_CC_value=$CC
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CPP_set=${CPP+set}
773 ac_env_CPP_value=$CPP
774 ac_cv_env_CPP_set=${CPP+set}
775 ac_cv_env_CPP_value=$CPP
776
777 #
778 # Report the --help message.
779 #
780 if 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 autossh 1.4 to adapt to many kinds of systems.
785
786 Usage: $0 [OPTION]... [VAR=VALUE]...
787
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
790
791 Defaults for the options are specified in brackets.
792
793 Configuration:
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
807 Installation 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
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
817
818 For better control, use the options below.
819
820 Fine 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 _ACEOF
837 fi
838
839 if test -n "$ac_init_help"; then
840 case $ac_init_help in
841 short | recursive ) echo "Configuration of autossh 1.4:";;
842 esac
843 cat <<\_ACEOF
844
845 Optional Packages:
846 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
847 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
848 --with-ssh=ARG specify path to ssh executable
849
850
851 Some influential environment variables:
852 CC C compiler command
853 CFLAGS C compiler flags
854 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
855 nonstandard directory <lib dir>
856 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
857 headers in a nonstandard directory <include dir>
858 CPP C preprocessor
859
860 Use these variables to override the choices made by `configure' or to help
861 it to find libraries and programs with nonstandard names/locations.
862
863 Report bugs to <Carson Harding <[email protected]>>.
864 _ACEOF
865 fi
866
867 if test "$ac_init_help" = "recursive"; then
868 # If there are subdirs, report their specific --help.
869 ac_popdir=`pwd`
870 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
871 test -d $ac_dir || continue
872 ac_builddir=.
873
874 if test "$ac_dir" != .; then
875 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
876 # A "../" for each directory in $ac_dir_suffix.
877 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
878 else
879 ac_dir_suffix= ac_top_builddir=
880 fi
881
882 case $srcdir in
883 .) # No --srcdir option. We are building in place.
884 ac_srcdir=.
885 if test -z "$ac_top_builddir"; then
886 ac_top_srcdir=.
887 else
888 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
889 fi ;;
890 [\\/]* | ?:[\\/]* ) # Absolute path.
891 ac_srcdir=$srcdir$ac_dir_suffix;
892 ac_top_srcdir=$srcdir ;;
893 *) # Relative path.
894 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
895 ac_top_srcdir=$ac_top_builddir$srcdir ;;
896 esac
897
898 # Do not use `cd foo && pwd` to compute absolute paths, because
899 # the directories may not exist.
900 case `pwd` in
901 .) ac_abs_builddir="$ac_dir";;
902 *)
903 case "$ac_dir" in
904 .) ac_abs_builddir=`pwd`;;
905 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
906 *) ac_abs_builddir=`pwd`/"$ac_dir";;
907 esac;;
908 esac
909 case $ac_abs_builddir in
910 .) ac_abs_top_builddir=${ac_top_builddir}.;;
911 *)
912 case ${ac_top_builddir}. in
913 .) ac_abs_top_builddir=$ac_abs_builddir;;
914 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
915 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
916 esac;;
917 esac
918 case $ac_abs_builddir in
919 .) ac_abs_srcdir=$ac_srcdir;;
920 *)
921 case $ac_srcdir in
922 .) ac_abs_srcdir=$ac_abs_builddir;;
923 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
924 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
925 esac;;
926 esac
927 case $ac_abs_builddir in
928 .) ac_abs_top_srcdir=$ac_top_srcdir;;
929 *)
930 case $ac_top_srcdir in
931 .) ac_abs_top_srcdir=$ac_abs_builddir;;
932 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
933 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
934 esac;;
935 esac
936
937 cd $ac_dir
938 # Check for guested configure; otherwise get Cygnus style configure.
939 if test -f $ac_srcdir/configure.gnu; then
940 echo
941 $SHELL $ac_srcdir/configure.gnu --help=recursive
942 elif test -f $ac_srcdir/configure; then
943 echo
944 $SHELL $ac_srcdir/configure --help=recursive
945 elif test -f $ac_srcdir/configure.ac ||
946 test -f $ac_srcdir/configure.in; then
947 echo
948 $ac_configure --help
949 else
950 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
951 fi
952 cd $ac_popdir
953 done
954 fi
955
956 test -n "$ac_init_help" && exit 0
957 if $ac_init_version; then
958 cat <<\_ACEOF
959 autossh configure 1.4
960 generated by GNU Autoconf 2.59
961
962 Copyright (C) 2003 Free Software Foundation, Inc.
963 This configure script is free software; the Free Software Foundation
964 gives unlimited permission to copy, distribute and modify it.
965 _ACEOF
966 exit 0
967 fi
968 exec 5>config.log
969 cat >&5 <<_ACEOF
970 This file contains any messages produced by compilers while
971 running configure, to aid debugging if configure makes a mistake.
972
973 It was created by autossh $as_me 1.4, which was
974 generated by GNU Autoconf 2.59. Invocation command line was
975
976 $ $0 $@
977
978 _ACEOF
979 {
980 cat <<_ASUNAME
981 ## --------- ##
982 ## Platform. ##
983 ## --------- ##
984
985 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
986 uname -m = `(uname -m) 2>/dev/null || echo unknown`
987 uname -r = `(uname -r) 2>/dev/null || echo unknown`
988 uname -s = `(uname -s) 2>/dev/null || echo unknown`
989 uname -v = `(uname -v) 2>/dev/null || echo unknown`
990
991 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
992 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
993
994 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
995 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
996 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
997 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
998 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
999 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1000 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1001
1002 _ASUNAME
1003
1004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1005 for as_dir in $PATH
1006 do
1007 IFS=$as_save_IFS
1008 test -z "$as_dir" && as_dir=.
1009 echo "PATH: $as_dir"
1010 done
1011
1012 } >&5
1013
1014 cat >&5 <<_ACEOF
1015
1016
1017 ## ----------- ##
1018 ## Core tests. ##
1019 ## ----------- ##
1020
1021 _ACEOF
1022
1023
1024 # Keep a trace of the command line.
1025 # Strip out --no-create and --no-recursion so they do not pile up.
1026 # Strip out --silent because we don't want to record it for future runs.
1027 # Also quote any args containing shell meta-characters.
1028 # Make two passes to allow for proper duplicate-argument suppression.
1029 ac_configure_args=
1030 ac_configure_args0=
1031 ac_configure_args1=
1032 ac_sep=
1033 ac_must_keep_next=false
1034 for ac_pass in 1 2
1035 do
1036 for ac_arg
1037 do
1038 case $ac_arg in
1039 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1041 | -silent | --silent | --silen | --sile | --sil)
1042 continue ;;
1043 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1044 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1045 esac
1046 case $ac_pass in
1047 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1048 2)
1049 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1050 if test $ac_must_keep_next = true; then
1051 ac_must_keep_next=false # Got value, back to normal.
1052 else
1053 case $ac_arg in
1054 *=* | --config-cache | -C | -disable-* | --disable-* \
1055 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1056 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1057 | -with-* | --with-* | -without-* | --without-* | --x)
1058 case "$ac_configure_args0 " in
1059 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1060 esac
1061 ;;
1062 -* ) ac_must_keep_next=true ;;
1063 esac
1064 fi
1065 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1066 # Get rid of the leading space.
1067 ac_sep=" "
1068 ;;
1069 esac
1070 done
1071 done
1072 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1073 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1074
1075 # When interrupted or exit'd, cleanup temporary files, and complete
1076 # config.log. We remove comments because anyway the quotes in there
1077 # would cause problems or look ugly.
1078 # WARNING: Be sure not to use single quotes in there, as some shells,
1079 # such as our DU 5.0 friend, will then `close' the trap.
1080 trap 'exit_status=$?
1081 # Save into config.log some information that might help in debugging.
1082 {
1083 echo
1084
1085 cat <<\_ASBOX
1086 ## ---------------- ##
1087 ## Cache variables. ##
1088 ## ---------------- ##
1089 _ASBOX
1090 echo
1091 # The following way of writing the cache mishandles newlines in values,
1092 {
1093 (set) 2>&1 |
1094 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1095 *ac_space=\ *)
1096 sed -n \
1097 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1098 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1099 ;;
1100 *)
1101 sed -n \
1102 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1103 ;;
1104 esac;
1105 }
1106 echo
1107
1108 cat <<\_ASBOX
1109 ## ----------------- ##
1110 ## Output variables. ##
1111 ## ----------------- ##
1112 _ASBOX
1113 echo
1114 for ac_var in $ac_subst_vars
1115 do
1116 eval ac_val=$`echo $ac_var`
1117 echo "$ac_var='"'"'$ac_val'"'"'"
1118 done | sort
1119 echo
1120
1121 if test -n "$ac_subst_files"; then
1122 cat <<\_ASBOX
1123 ## ------------- ##
1124 ## Output files. ##
1125 ## ------------- ##
1126 _ASBOX
1127 echo
1128 for ac_var in $ac_subst_files
1129 do
1130 eval ac_val=$`echo $ac_var`
1131 echo "$ac_var='"'"'$ac_val'"'"'"
1132 done | sort
1133 echo
1134 fi
1135
1136 if test -s confdefs.h; then
1137 cat <<\_ASBOX
1138 ## ----------- ##
1139 ## confdefs.h. ##
1140 ## ----------- ##
1141 _ASBOX
1142 echo
1143 sed "/^$/d" confdefs.h | sort
1144 echo
1145 fi
1146 test "$ac_signal" != 0 &&
1147 echo "$as_me: caught signal $ac_signal"
1148 echo "$as_me: exit $exit_status"
1149 } >&5
1150 rm -f core *.core &&
1151 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1152 exit $exit_status
1153 ' 0
1154 for ac_signal in 1 2 13 15; do
1155 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1156 done
1157 ac_signal=0
1158
1159 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1160 rm -rf conftest* confdefs.h
1161 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1162 echo >confdefs.h
1163
1164 # Predefined preprocessor variables.
1165
1166 cat >>confdefs.h <<_ACEOF
1167 #define PACKAGE_NAME "$PACKAGE_NAME"
1168 _ACEOF
1169
1170
1171 cat >>confdefs.h <<_ACEOF
1172 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1173 _ACEOF
1174
1175
1176 cat >>confdefs.h <<_ACEOF
1177 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1178 _ACEOF
1179
1180
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_STRING "$PACKAGE_STRING"
1183 _ACEOF
1184
1185
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1188 _ACEOF
1189
1190
1191 # Let the site file select an alternate cache file if it wants to.
1192 # Prefer explicitly selected file to automatically selected ones.
1193 if test -z "$CONFIG_SITE"; then
1194 if test "x$prefix" != xNONE; then
1195 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1196 else
1197 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1198 fi
1199 fi
1200 for ac_site_file in $CONFIG_SITE; do
1201 if test -r "$ac_site_file"; then
1202 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1203 echo "$as_me: loading site script $ac_site_file" >&6;}
1204 sed 's/^/| /' "$ac_site_file" >&5
1205 . "$ac_site_file"
1206 fi
1207 done
1208
1209 if test -r "$cache_file"; then
1210 # Some versions of bash will fail to source /dev/null (special
1211 # files actually), so we avoid doing that.
1212 if test -f "$cache_file"; then
1213 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1214 echo "$as_me: loading cache $cache_file" >&6;}
1215 case $cache_file in
1216 [\\/]* | ?:[\\/]* ) . $cache_file;;
1217 *) . ./$cache_file;;
1218 esac
1219 fi
1220 else
1221 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1222 echo "$as_me: creating cache $cache_file" >&6;}
1223 >$cache_file
1224 fi
1225
1226 # Check that the precious variables saved in the cache have kept the same
1227 # value.
1228 ac_cache_corrupted=false
1229 for ac_var in `(set) 2>&1 |
1230 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1231 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1232 eval ac_new_set=\$ac_env_${ac_var}_set
1233 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1234 eval ac_new_val="\$ac_env_${ac_var}_value"
1235 case $ac_old_set,$ac_new_set in
1236 set,)
1237 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1238 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1239 ac_cache_corrupted=: ;;
1240 ,set)
1241 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1242 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1243 ac_cache_corrupted=: ;;
1244 ,);;
1245 *)
1246 if test "x$ac_old_val" != "x$ac_new_val"; then
1247 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1248 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1249 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1250 echo "$as_me: former value: $ac_old_val" >&2;}
1251 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1252 echo "$as_me: current value: $ac_new_val" >&2;}
1253 ac_cache_corrupted=:
1254 fi;;
1255 esac
1256 # Pass precious variables to config.status.
1257 if test "$ac_new_set" = set; then
1258 case $ac_new_val in
1259 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1260 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1261 *) ac_arg=$ac_var=$ac_new_val ;;
1262 esac
1263 case " $ac_configure_args " in
1264 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1265 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1266 esac
1267 fi
1268 done
1269 if $ac_cache_corrupted; then
1270 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1271 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1272 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1273 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1274 { (exit 1); exit 1; }; }
1275 fi
1276
1277 ac_ext=c
1278 ac_cpp='$CPP $CPPFLAGS'
1279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311 ac_config_headers="$ac_config_headers config.h"
1312
1313 ac_config_files="$ac_config_files Makefile"
1314
1315
1316 # Checks for programs.
1317 ac_ext=c
1318 ac_cpp='$CPP $CPPFLAGS'
1319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1322 if test -n "$ac_tool_prefix"; then
1323 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1324 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1325 echo "$as_me:$LINENO: checking for $ac_word" >&5
1326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1327 if test "${ac_cv_prog_CC+set}" = set; then
1328 echo $ECHO_N "(cached) $ECHO_C" >&6
1329 else
1330 if test -n "$CC"; then
1331 ac_cv_prog_CC="$CC" # Let the user override the test.
1332 else
1333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1334 for as_dir in $PATH
1335 do
1336 IFS=$as_save_IFS
1337 test -z "$as_dir" && as_dir=.
1338 for ac_exec_ext in '' $ac_executable_extensions; do
1339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1340 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1342 break 2
1343 fi
1344 done
1345 done
1346
1347 fi
1348 fi
1349 CC=$ac_cv_prog_CC
1350 if test -n "$CC"; then
1351 echo "$as_me:$LINENO: result: $CC" >&5
1352 echo "${ECHO_T}$CC" >&6
1353 else
1354 echo "$as_me:$LINENO: result: no" >&5
1355 echo "${ECHO_T}no" >&6
1356 fi
1357
1358 fi
1359 if test -z "$ac_cv_prog_CC"; then
1360 ac_ct_CC=$CC
1361 # Extract the first word of "gcc", so it can be a program name with args.
1362 set dummy gcc; ac_word=$2
1363 echo "$as_me:$LINENO: checking for $ac_word" >&5
1364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1365 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1366 echo $ECHO_N "(cached) $ECHO_C" >&6
1367 else
1368 if test -n "$ac_ct_CC"; then
1369 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1370 else
1371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1372 for as_dir in $PATH
1373 do
1374 IFS=$as_save_IFS
1375 test -z "$as_dir" && as_dir=.
1376 for ac_exec_ext in '' $ac_executable_extensions; do
1377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1378 ac_cv_prog_ac_ct_CC="gcc"
1379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1380 break 2
1381 fi
1382 done
1383 done
1384
1385 fi
1386 fi
1387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1388 if test -n "$ac_ct_CC"; then
1389 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1390 echo "${ECHO_T}$ac_ct_CC" >&6
1391 else
1392 echo "$as_me:$LINENO: result: no" >&5
1393 echo "${ECHO_T}no" >&6
1394 fi
1395
1396 CC=$ac_ct_CC
1397 else
1398 CC="$ac_cv_prog_CC"
1399 fi
1400
1401 if test -z "$CC"; then
1402 if test -n "$ac_tool_prefix"; then
1403 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1404 set dummy ${ac_tool_prefix}cc; ac_word=$2
1405 echo "$as_me:$LINENO: checking for $ac_word" >&5
1406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1407 if test "${ac_cv_prog_CC+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1409 else
1410 if test -n "$CC"; then
1411 ac_cv_prog_CC="$CC" # Let the user override the test.
1412 else
1413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1414 for as_dir in $PATH
1415 do
1416 IFS=$as_save_IFS
1417 test -z "$as_dir" && as_dir=.
1418 for ac_exec_ext in '' $ac_executable_extensions; do
1419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1420 ac_cv_prog_CC="${ac_tool_prefix}cc"
1421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1422 break 2
1423 fi
1424 done
1425 done
1426
1427 fi
1428 fi
1429 CC=$ac_cv_prog_CC
1430 if test -n "$CC"; then
1431 echo "$as_me:$LINENO: result: $CC" >&5
1432 echo "${ECHO_T}$CC" >&6
1433 else
1434 echo "$as_me:$LINENO: result: no" >&5
1435 echo "${ECHO_T}no" >&6
1436 fi
1437
1438 fi
1439 if test -z "$ac_cv_prog_CC"; then
1440 ac_ct_CC=$CC
1441 # Extract the first word of "cc", so it can be a program name with args.
1442 set dummy cc; ac_word=$2
1443 echo "$as_me:$LINENO: checking for $ac_word" >&5
1444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1445 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1446 echo $ECHO_N "(cached) $ECHO_C" >&6
1447 else
1448 if test -n "$ac_ct_CC"; then
1449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1450 else
1451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1452 for as_dir in $PATH
1453 do
1454 IFS=$as_save_IFS
1455 test -z "$as_dir" && as_dir=.
1456 for ac_exec_ext in '' $ac_executable_extensions; do
1457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1458 ac_cv_prog_ac_ct_CC="cc"
1459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1460 break 2
1461 fi
1462 done
1463 done
1464
1465 fi
1466 fi
1467 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1468 if test -n "$ac_ct_CC"; then
1469 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1470 echo "${ECHO_T}$ac_ct_CC" >&6
1471 else
1472 echo "$as_me:$LINENO: result: no" >&5
1473 echo "${ECHO_T}no" >&6
1474 fi
1475
1476 CC=$ac_ct_CC
1477 else
1478 CC="$ac_cv_prog_CC"
1479 fi
1480
1481 fi
1482 if test -z "$CC"; then
1483 # Extract the first word of "cc", so it can be a program name with args.
1484 set dummy cc; ac_word=$2
1485 echo "$as_me:$LINENO: checking for $ac_word" >&5
1486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1487 if test "${ac_cv_prog_CC+set}" = set; then
1488 echo $ECHO_N "(cached) $ECHO_C" >&6
1489 else
1490 if test -n "$CC"; then
1491 ac_cv_prog_CC="$CC" # Let the user override the test.
1492 else
1493 ac_prog_rejected=no
1494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1495 for as_dir in $PATH
1496 do
1497 IFS=$as_save_IFS
1498 test -z "$as_dir" && as_dir=.
1499 for ac_exec_ext in '' $ac_executable_extensions; do
1500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1501 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1502 ac_prog_rejected=yes
1503 continue
1504 fi
1505 ac_cv_prog_CC="cc"
1506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1507 break 2
1508 fi
1509 done
1510 done
1511
1512 if test $ac_prog_rejected = yes; then
1513 # We found a bogon in the path, so make sure we never use it.
1514 set dummy $ac_cv_prog_CC
1515 shift
1516 if test $# != 0; then
1517 # We chose a different compiler from the bogus one.
1518 # However, it has the same basename, so the bogon will be chosen
1519 # first if we set CC to just the basename; use the full file name.
1520 shift
1521 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1522 fi
1523 fi
1524 fi
1525 fi
1526 CC=$ac_cv_prog_CC
1527 if test -n "$CC"; then
1528 echo "$as_me:$LINENO: result: $CC" >&5
1529 echo "${ECHO_T}$CC" >&6
1530 else
1531 echo "$as_me:$LINENO: result: no" >&5
1532 echo "${ECHO_T}no" >&6
1533 fi
1534
1535 fi
1536 if test -z "$CC"; then
1537 if test -n "$ac_tool_prefix"; then
1538 for ac_prog in cl
1539 do
1540 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1541 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1542 echo "$as_me:$LINENO: checking for $ac_word" >&5
1543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1544 if test "${ac_cv_prog_CC+set}" = set; then
1545 echo $ECHO_N "(cached) $ECHO_C" >&6
1546 else
1547 if test -n "$CC"; then
1548 ac_cv_prog_CC="$CC" # Let the user override the test.
1549 else
1550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1551 for as_dir in $PATH
1552 do
1553 IFS=$as_save_IFS
1554 test -z "$as_dir" && as_dir=.
1555 for ac_exec_ext in '' $ac_executable_extensions; do
1556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1557 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1559 break 2
1560 fi
1561 done
1562 done
1563
1564 fi
1565 fi
1566 CC=$ac_cv_prog_CC
1567 if test -n "$CC"; then
1568 echo "$as_me:$LINENO: result: $CC" >&5
1569 echo "${ECHO_T}$CC" >&6
1570 else
1571 echo "$as_me:$LINENO: result: no" >&5
1572 echo "${ECHO_T}no" >&6
1573 fi
1574
1575 test -n "$CC" && break
1576 done
1577 fi
1578 if test -z "$CC"; then
1579 ac_ct_CC=$CC
1580 for ac_prog in cl
1581 do
1582 # Extract the first word of "$ac_prog", so it can be a program name with args.
1583 set dummy $ac_prog; ac_word=$2
1584 echo "$as_me:$LINENO: checking for $ac_word" >&5
1585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1586 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1588 else
1589 if test -n "$ac_ct_CC"; then
1590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1591 else
1592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593 for as_dir in $PATH
1594 do
1595 IFS=$as_save_IFS
1596 test -z "$as_dir" && as_dir=.
1597 for ac_exec_ext in '' $ac_executable_extensions; do
1598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1599 ac_cv_prog_ac_ct_CC="$ac_prog"
1600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1601 break 2
1602 fi
1603 done
1604 done
1605
1606 fi
1607 fi
1608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1609 if test -n "$ac_ct_CC"; then
1610 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1611 echo "${ECHO_T}$ac_ct_CC" >&6
1612 else
1613 echo "$as_me:$LINENO: result: no" >&5
1614 echo "${ECHO_T}no" >&6
1615 fi
1616
1617 test -n "$ac_ct_CC" && break
1618 done
1619
1620 CC=$ac_ct_CC
1621 fi
1622
1623 fi
1624
1625
1626 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1627 See \`config.log' for more details." >&5
1628 echo "$as_me: error: no acceptable C compiler found in \$PATH
1629 See \`config.log' for more details." >&2;}
1630 { (exit 1); exit 1; }; }
1631
1632 # Provide some information about the compiler.
1633 echo "$as_me:$LINENO:" \
1634 "checking for C compiler version" >&5
1635 ac_compiler=`set X $ac_compile; echo $2`
1636 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1637 (eval $ac_compiler --version </dev/null >&5) 2>&5
1638 ac_status=$?
1639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1640 (exit $ac_status); }
1641 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1642 (eval $ac_compiler -v </dev/null >&5) 2>&5
1643 ac_status=$?
1644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1645 (exit $ac_status); }
1646 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1647 (eval $ac_compiler -V </dev/null >&5) 2>&5
1648 ac_status=$?
1649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1650 (exit $ac_status); }
1651
1652 cat >conftest.$ac_ext <<_ACEOF
1653 /* confdefs.h. */
1654 _ACEOF
1655 cat confdefs.h >>conftest.$ac_ext
1656 cat >>conftest.$ac_ext <<_ACEOF
1657 /* end confdefs.h. */
1658
1659 int
1660 main ()
1661 {
1662
1663 ;
1664 return 0;
1665 }
1666 _ACEOF
1667 ac_clean_files_save=$ac_clean_files
1668 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1669 # Try to create an executable without -o first, disregard a.out.
1670 # It will help us diagnose broken compilers, and finding out an intuition
1671 # of exeext.
1672 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1673 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1674 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1675 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1676 (eval $ac_link_default) 2>&5
1677 ac_status=$?
1678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1679 (exit $ac_status); }; then
1680 # Find the output, starting from the most likely. This scheme is
1681 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1682 # resort.
1683
1684 # Be careful to initialize this variable, since it used to be cached.
1685 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1686 ac_cv_exeext=
1687 # b.out is created by i960 compilers.
1688 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1689 do
1690 test -f "$ac_file" || continue
1691 case $ac_file in
1692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1693 ;;
1694 conftest.$ac_ext )
1695 # This is the source file.
1696 ;;
1697 [ab].out )
1698 # We found the default executable, but exeext='' is most
1699 # certainly right.
1700 break;;
1701 *.* )
1702 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1703 # FIXME: I believe we export ac_cv_exeext for Libtool,
1704 # but it would be cool to find out if it's true. Does anybody
1705 # maintain Libtool? --akim.
1706 export ac_cv_exeext
1707 break;;
1708 * )
1709 break;;
1710 esac
1711 done
1712 else
1713 echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1715
1716 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1717 See \`config.log' for more details." >&5
1718 echo "$as_me: error: C compiler cannot create executables
1719 See \`config.log' for more details." >&2;}
1720 { (exit 77); exit 77; }; }
1721 fi
1722
1723 ac_exeext=$ac_cv_exeext
1724 echo "$as_me:$LINENO: result: $ac_file" >&5
1725 echo "${ECHO_T}$ac_file" >&6
1726
1727 # Check the compiler produces executables we can run. If not, either
1728 # the compiler is broken, or we cross compile.
1729 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1730 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1731 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1732 # If not cross compiling, check that we can run a simple program.
1733 if test "$cross_compiling" != yes; then
1734 if { ac_try='./$ac_file'
1735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1736 (eval $ac_try) 2>&5
1737 ac_status=$?
1738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1739 (exit $ac_status); }; }; then
1740 cross_compiling=no
1741 else
1742 if test "$cross_compiling" = maybe; then
1743 cross_compiling=yes
1744 else
1745 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1746 If you meant to cross compile, use \`--host'.
1747 See \`config.log' for more details." >&5
1748 echo "$as_me: error: cannot run C compiled programs.
1749 If you meant to cross compile, use \`--host'.
1750 See \`config.log' for more details." >&2;}
1751 { (exit 1); exit 1; }; }
1752 fi
1753 fi
1754 fi
1755 echo "$as_me:$LINENO: result: yes" >&5
1756 echo "${ECHO_T}yes" >&6
1757
1758 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1759 ac_clean_files=$ac_clean_files_save
1760 # Check the compiler produces executables we can run. If not, either
1761 # the compiler is broken, or we cross compile.
1762 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1763 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1764 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1765 echo "${ECHO_T}$cross_compiling" >&6
1766
1767 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1768 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1770 (eval $ac_link) 2>&5
1771 ac_status=$?
1772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1773 (exit $ac_status); }; then
1774 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1775 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1776 # work properly (i.e., refer to `conftest.exe'), while it won't with
1777 # `rm'.
1778 for ac_file in conftest.exe conftest conftest.*; do
1779 test -f "$ac_file" || continue
1780 case $ac_file in
1781 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1782 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1783 export ac_cv_exeext
1784 break;;
1785 * ) break;;
1786 esac
1787 done
1788 else
1789 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1790 See \`config.log' for more details." >&5
1791 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1792 See \`config.log' for more details." >&2;}
1793 { (exit 1); exit 1; }; }
1794 fi
1795
1796 rm -f conftest$ac_cv_exeext
1797 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1798 echo "${ECHO_T}$ac_cv_exeext" >&6
1799
1800 rm -f conftest.$ac_ext
1801 EXEEXT=$ac_cv_exeext
1802 ac_exeext=$EXEEXT
1803 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1804 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1805 if test "${ac_cv_objext+set}" = set; then
1806 echo $ECHO_N "(cached) $ECHO_C" >&6
1807 else
1808 cat >conftest.$ac_ext <<_ACEOF
1809 /* confdefs.h. */
1810 _ACEOF
1811 cat confdefs.h >>conftest.$ac_ext
1812 cat >>conftest.$ac_ext <<_ACEOF
1813 /* end confdefs.h. */
1814
1815 int
1816 main ()
1817 {
1818
1819 ;
1820 return 0;
1821 }
1822 _ACEOF
1823 rm -f conftest.o conftest.obj
1824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1825 (eval $ac_compile) 2>&5
1826 ac_status=$?
1827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1828 (exit $ac_status); }; then
1829 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1830 case $ac_file in
1831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1832 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1833 break;;
1834 esac
1835 done
1836 else
1837 echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.$ac_ext >&5
1839
1840 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1841 See \`config.log' for more details." >&5
1842 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1843 See \`config.log' for more details." >&2;}
1844 { (exit 1); exit 1; }; }
1845 fi
1846
1847 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1848 fi
1849 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1850 echo "${ECHO_T}$ac_cv_objext" >&6
1851 OBJEXT=$ac_cv_objext
1852 ac_objext=$OBJEXT
1853 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1854 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1855 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1856 echo $ECHO_N "(cached) $ECHO_C" >&6
1857 else
1858 cat >conftest.$ac_ext <<_ACEOF
1859 /* confdefs.h. */
1860 _ACEOF
1861 cat confdefs.h >>conftest.$ac_ext
1862 cat >>conftest.$ac_ext <<_ACEOF
1863 /* end confdefs.h. */
1864
1865 int
1866 main ()
1867 {
1868 #ifndef __GNUC__
1869 choke me
1870 #endif
1871
1872 ;
1873 return 0;
1874 }
1875 _ACEOF
1876 rm -f conftest.$ac_objext
1877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1878 (eval $ac_compile) 2>conftest.er1
1879 ac_status=$?
1880 grep -v '^ *+' conftest.er1 >conftest.err
1881 rm -f conftest.er1
1882 cat conftest.err >&5
1883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1884 (exit $ac_status); } &&
1885 { ac_try='test -z "$ac_c_werror_flag"
1886 || test ! -s conftest.err'
1887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1888 (eval $ac_try) 2>&5
1889 ac_status=$?
1890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891 (exit $ac_status); }; } &&
1892 { ac_try='test -s conftest.$ac_objext'
1893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1894 (eval $ac_try) 2>&5
1895 ac_status=$?
1896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1897 (exit $ac_status); }; }; then
1898 ac_compiler_gnu=yes
1899 else
1900 echo "$as_me: failed program was:" >&5
1901 sed 's/^/| /' conftest.$ac_ext >&5
1902
1903 ac_compiler_gnu=no
1904 fi
1905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1906 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1907
1908 fi
1909 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1910 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1911 GCC=`test $ac_compiler_gnu = yes && echo yes`
1912 ac_test_CFLAGS=${CFLAGS+set}
1913 ac_save_CFLAGS=$CFLAGS
1914 CFLAGS="-g"
1915 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1916 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1917 if test "${ac_cv_prog_cc_g+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1919 else
1920 cat >conftest.$ac_ext <<_ACEOF
1921 /* confdefs.h. */
1922 _ACEOF
1923 cat confdefs.h >>conftest.$ac_ext
1924 cat >>conftest.$ac_ext <<_ACEOF
1925 /* end confdefs.h. */
1926
1927 int
1928 main ()
1929 {
1930
1931 ;
1932 return 0;
1933 }
1934 _ACEOF
1935 rm -f conftest.$ac_objext
1936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1937 (eval $ac_compile) 2>conftest.er1
1938 ac_status=$?
1939 grep -v '^ *+' conftest.er1 >conftest.err
1940 rm -f conftest.er1
1941 cat conftest.err >&5
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); } &&
1944 { ac_try='test -z "$ac_c_werror_flag"
1945 || test ! -s conftest.err'
1946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1947 (eval $ac_try) 2>&5
1948 ac_status=$?
1949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950 (exit $ac_status); }; } &&
1951 { ac_try='test -s conftest.$ac_objext'
1952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1953 (eval $ac_try) 2>&5
1954 ac_status=$?
1955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956 (exit $ac_status); }; }; then
1957 ac_cv_prog_cc_g=yes
1958 else
1959 echo "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.$ac_ext >&5
1961
1962 ac_cv_prog_cc_g=no
1963 fi
1964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1965 fi
1966 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1967 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1968 if test "$ac_test_CFLAGS" = set; then
1969 CFLAGS=$ac_save_CFLAGS
1970 elif test $ac_cv_prog_cc_g = yes; then
1971 if test "$GCC" = yes; then
1972 CFLAGS="-g -O2"
1973 else
1974 CFLAGS="-g"
1975 fi
1976 else
1977 if test "$GCC" = yes; then
1978 CFLAGS="-O2"
1979 else
1980 CFLAGS=
1981 fi
1982 fi
1983 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1984 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1985 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1987 else
1988 ac_cv_prog_cc_stdc=no
1989 ac_save_CC=$CC
1990 cat >conftest.$ac_ext <<_ACEOF
1991 /* confdefs.h. */
1992 _ACEOF
1993 cat confdefs.h >>conftest.$ac_ext
1994 cat >>conftest.$ac_ext <<_ACEOF
1995 /* end confdefs.h. */
1996 #include <stdarg.h>
1997 #include <stdio.h>
1998 #include <sys/types.h>
1999 #include <sys/stat.h>
2000 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2001 struct buf { int x; };
2002 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2003 static char *e (p, i)
2004 char **p;
2005 int i;
2006 {
2007 return p[i];
2008 }
2009 static char *f (char * (*g) (char **, int), char **p, ...)
2010 {
2011 char *s;
2012 va_list v;
2013 va_start (v,p);
2014 s = g (p, va_arg (v,int));
2015 va_end (v);
2016 return s;
2017 }
2018
2019 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2020 function prototypes and stuff, but not '\xHH' hex character constants.
2021 These don't provoke an error unfortunately, instead are silently treated
2022 as 'x'. The following induces an error, until -std1 is added to get
2023 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2024 array size at least. It's necessary to write '\x00'==0 to get something
2025 that's true only with -std1. */
2026 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2027
2028 int test (int i, double x);
2029 struct s1 {int (*f) (int a);};
2030 struct s2 {int (*f) (double a);};
2031 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2032 int argc;
2033 char **argv;
2034 int
2035 main ()
2036 {
2037 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2038 ;
2039 return 0;
2040 }
2041 _ACEOF
2042 # Don't try gcc -ansi; that turns off useful extensions and
2043 # breaks some systems' header files.
2044 # AIX -qlanglvl=ansi
2045 # Ultrix and OSF/1 -std1
2046 # HP-UX 10.20 and later -Ae
2047 # HP-UX older versions -Aa -D_HPUX_SOURCE
2048 # SVR4 -Xc -D__EXTENSIONS__
2049 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2050 do
2051 CC="$ac_save_CC $ac_arg"
2052 rm -f conftest.$ac_objext
2053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2054 (eval $ac_compile) 2>conftest.er1
2055 ac_status=$?
2056 grep -v '^ *+' conftest.er1 >conftest.err
2057 rm -f conftest.er1
2058 cat conftest.err >&5
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); } &&
2061 { ac_try='test -z "$ac_c_werror_flag"
2062 || test ! -s conftest.err'
2063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2064 (eval $ac_try) 2>&5
2065 ac_status=$?
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); }; } &&
2068 { ac_try='test -s conftest.$ac_objext'
2069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2070 (eval $ac_try) 2>&5
2071 ac_status=$?
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); }; }; then
2074 ac_cv_prog_cc_stdc=$ac_arg
2075 break
2076 else
2077 echo "$as_me: failed program was:" >&5
2078 sed 's/^/| /' conftest.$ac_ext >&5
2079
2080 fi
2081 rm -f conftest.err conftest.$ac_objext
2082 done
2083 rm -f conftest.$ac_ext conftest.$ac_objext
2084 CC=$ac_save_CC
2085
2086 fi
2087
2088 case "x$ac_cv_prog_cc_stdc" in
2089 x|xno)
2090 echo "$as_me:$LINENO: result: none needed" >&5
2091 echo "${ECHO_T}none needed" >&6 ;;
2092 *)
2093 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2094 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2095 CC="$CC $ac_cv_prog_cc_stdc" ;;
2096 esac
2097
2098 # Some people use a C++ compiler to compile C. Since we use `exit',
2099 # in C++ we need to declare it. In case someone uses the same compiler
2100 # for both compiling C and C++ we need to have the C++ compiler decide
2101 # the declaration of exit, since it's the most demanding environment.
2102 cat >conftest.$ac_ext <<_ACEOF
2103 #ifndef __cplusplus
2104 choke me
2105 #endif
2106 _ACEOF
2107 rm -f conftest.$ac_objext
2108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2109 (eval $ac_compile) 2>conftest.er1
2110 ac_status=$?
2111 grep -v '^ *+' conftest.er1 >conftest.err
2112 rm -f conftest.er1
2113 cat conftest.err >&5
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); } &&
2116 { ac_try='test -z "$ac_c_werror_flag"
2117 || test ! -s conftest.err'
2118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2119 (eval $ac_try) 2>&5
2120 ac_status=$?
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }; } &&
2123 { ac_try='test -s conftest.$ac_objext'
2124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2125 (eval $ac_try) 2>&5
2126 ac_status=$?
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }; }; then
2129 for ac_declaration in \
2130 '' \
2131 'extern "C" void std::exit (int) throw (); using std::exit;' \
2132 'extern "C" void std::exit (int); using std::exit;' \
2133 'extern "C" void exit (int) throw ();' \
2134 'extern "C" void exit (int);' \
2135 'void exit (int);'
2136 do
2137 cat >conftest.$ac_ext <<_ACEOF
2138 /* confdefs.h. */
2139 _ACEOF
2140 cat confdefs.h >>conftest.$ac_ext
2141 cat >>conftest.$ac_ext <<_ACEOF
2142 /* end confdefs.h. */
2143 $ac_declaration
2144 #include <stdlib.h>
2145 int
2146 main ()
2147 {
2148 exit (42);
2149 ;
2150 return 0;
2151 }
2152 _ACEOF
2153 rm -f conftest.$ac_objext
2154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2155 (eval $ac_compile) 2>conftest.er1
2156 ac_status=$?
2157 grep -v '^ *+' conftest.er1 >conftest.err
2158 rm -f conftest.er1
2159 cat conftest.err >&5
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); } &&
2162 { ac_try='test -z "$ac_c_werror_flag"
2163 || test ! -s conftest.err'
2164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2165 (eval $ac_try) 2>&5
2166 ac_status=$?
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); }; } &&
2169 { ac_try='test -s conftest.$ac_objext'
2170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171 (eval $ac_try) 2>&5
2172 ac_status=$?
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; }; then
2175 :
2176 else
2177 echo "$as_me: failed program was:" >&5
2178 sed 's/^/| /' conftest.$ac_ext >&5
2179
2180 continue
2181 fi
2182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2183 cat >conftest.$ac_ext <<_ACEOF
2184 /* confdefs.h. */
2185 _ACEOF
2186 cat confdefs.h >>conftest.$ac_ext
2187 cat >>conftest.$ac_ext <<_ACEOF
2188 /* end confdefs.h. */
2189 $ac_declaration
2190 int
2191 main ()
2192 {
2193 exit (42);
2194 ;
2195 return 0;
2196 }
2197 _ACEOF
2198 rm -f conftest.$ac_objext
2199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200 (eval $ac_compile) 2>conftest.er1
2201 ac_status=$?
2202 grep -v '^ *+' conftest.er1 >conftest.err
2203 rm -f conftest.er1
2204 cat conftest.err >&5
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); } &&
2207 { ac_try='test -z "$ac_c_werror_flag"
2208 || test ! -s conftest.err'
2209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210 (eval $ac_try) 2>&5
2211 ac_status=$?
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }; } &&
2214 { ac_try='test -s conftest.$ac_objext'
2215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216 (eval $ac_try) 2>&5
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; }; then
2220 break
2221 else
2222 echo "$as_me: failed program was:" >&5
2223 sed 's/^/| /' conftest.$ac_ext >&5
2224
2225 fi
2226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2227 done
2228 rm -f conftest*
2229 if test -n "$ac_declaration"; then
2230 echo '#ifdef __cplusplus' >>confdefs.h
2231 echo $ac_declaration >>confdefs.h
2232 echo '#endif' >>confdefs.h
2233 fi
2234
2235 else
2236 echo "$as_me: failed program was:" >&5
2237 sed 's/^/| /' conftest.$ac_ext >&5
2238
2239 fi
2240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2241 ac_ext=c
2242 ac_cpp='$CPP $CPPFLAGS'
2243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2246
2247 # Add -Wall for gcc
2248 if test "$ac_compiler_gnu" = "yes"; then
2249 CFLAGS="$CFLAGS -Wall"
2250 fi
2251
2252
2253 # Check whether --with-ssh or --without-ssh was given.
2254 if test "${with_ssh+set}" = set; then
2255 withval="$with_ssh"
2256
2257 fi;
2258 if test -z "$ac_cv_path_ssh"; then
2259 # Extract the first word of "ssh", so it can be a program name with args.
2260 set dummy ssh; ac_word=$2
2261 echo "$as_me:$LINENO: checking for $ac_word" >&5
2262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2263 if test "${ac_cv_path_ssh+set}" = set; then
2264 echo $ECHO_N "(cached) $ECHO_C" >&6
2265 else
2266 case $ssh in
2267 [\\/]* | ?:[\\/]*)
2268 ac_cv_path_ssh="$ssh" # Let the user override the test with a path.
2269 ;;
2270 *)
2271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272 for as_dir in $PATH
2273 do
2274 IFS=$as_save_IFS
2275 test -z "$as_dir" && as_dir=.
2276 for ac_exec_ext in '' $ac_executable_extensions; do
2277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2278 ac_cv_path_ssh="$as_dir/$ac_word$ac_exec_ext"
2279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2280 break 2
2281 fi
2282 done
2283 done
2284
2285 ;;
2286 esac
2287 fi
2288 ssh=$ac_cv_path_ssh
2289
2290 if test -n "$ssh"; then
2291 echo "$as_me:$LINENO: result: $ssh" >&5
2292 echo "${ECHO_T}$ssh" >&6
2293 else
2294 echo "$as_me:$LINENO: result: no" >&5
2295 echo "${ECHO_T}no" >&6
2296 fi
2297
2298 fi
2299 if test -n "$ac_cv_path_ssh"; then
2300
2301 cat >>confdefs.h <<_ACEOF
2302 #define PATH_SSH "$ac_cv_path_ssh"
2303 _ACEOF
2304
2305 else
2306 { { echo "$as_me:$LINENO: error: ssh program not found! Modify PATH, or use --with-ssh." >&5
2307 echo "$as_me: error: ssh program not found! Modify PATH, or use --with-ssh." >&2;}
2308 { (exit 1); exit 1; }; }
2309 fi
2310 path_ssh="$ac_cv_path_ssh"
2311
2312
2313 # Checks for libraries.
2314
2315 # Checks for header files.
2316
2317 ac_ext=c
2318 ac_cpp='$CPP $CPPFLAGS'
2319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2322 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2323 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2324 # On Suns, sometimes $CPP names a directory.
2325 if test -n "$CPP" && test -d "$CPP"; then
2326 CPP=
2327 fi
2328 if test -z "$CPP"; then
2329 if test "${ac_cv_prog_CPP+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2331 else
2332 # Double quotes because CPP needs to be expanded
2333 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2334 do
2335 ac_preproc_ok=false
2336 for ac_c_preproc_warn_flag in '' yes
2337 do
2338 # Use a header file that comes with gcc, so configuring glibc
2339 # with a fresh cross-compiler works.
2340 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2341 # <limits.h> exists even on freestanding compilers.
2342 # On the NeXT, cc -E runs the code through the compiler's parser,
2343 # not just through cpp. "Syntax error" is here to catch this case.
2344 cat >conftest.$ac_ext <<_ACEOF
2345 /* confdefs.h. */
2346 _ACEOF
2347 cat confdefs.h >>conftest.$ac_ext
2348 cat >>conftest.$ac_ext <<_ACEOF
2349 /* end confdefs.h. */
2350 #ifdef __STDC__
2351 # include <limits.h>
2352 #else
2353 # include <assert.h>
2354 #endif
2355 Syntax error
2356 _ACEOF
2357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2359 ac_status=$?
2360 grep -v '^ *+' conftest.er1 >conftest.err
2361 rm -f conftest.er1
2362 cat conftest.err >&5
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); } >/dev/null; then
2365 if test -s conftest.err; then
2366 ac_cpp_err=$ac_c_preproc_warn_flag
2367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2368 else
2369 ac_cpp_err=
2370 fi
2371 else
2372 ac_cpp_err=yes
2373 fi
2374 if test -z "$ac_cpp_err"; then
2375 :
2376 else
2377 echo "$as_me: failed program was:" >&5
2378 sed 's/^/| /' conftest.$ac_ext >&5
2379
2380 # Broken: fails on valid input.
2381 continue
2382 fi
2383 rm -f conftest.err conftest.$ac_ext
2384
2385 # OK, works on sane cases. Now check whether non-existent headers
2386 # can be detected and how.
2387 cat >conftest.$ac_ext <<_ACEOF
2388 /* confdefs.h. */
2389 _ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h. */
2393 #include <ac_nonexistent.h>
2394 _ACEOF
2395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2396 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2397 ac_status=$?
2398 grep -v '^ *+' conftest.er1 >conftest.err
2399 rm -f conftest.er1
2400 cat conftest.err >&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); } >/dev/null; then
2403 if test -s conftest.err; then
2404 ac_cpp_err=$ac_c_preproc_warn_flag
2405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2406 else
2407 ac_cpp_err=
2408 fi
2409 else
2410 ac_cpp_err=yes
2411 fi
2412 if test -z "$ac_cpp_err"; then
2413 # Broken: success on invalid input.
2414 continue
2415 else
2416 echo "$as_me: failed program was:" >&5
2417 sed 's/^/| /' conftest.$ac_ext >&5
2418
2419 # Passes both tests.
2420 ac_preproc_ok=:
2421 break
2422 fi
2423 rm -f conftest.err conftest.$ac_ext
2424
2425 done
2426 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2427 rm -f conftest.err conftest.$ac_ext
2428 if $ac_preproc_ok; then
2429 break
2430 fi
2431
2432 done
2433 ac_cv_prog_CPP=$CPP
2434
2435 fi
2436 CPP=$ac_cv_prog_CPP
2437 else
2438 ac_cv_prog_CPP=$CPP
2439 fi
2440 echo "$as_me:$LINENO: result: $CPP" >&5
2441 echo "${ECHO_T}$CPP" >&6
2442 ac_preproc_ok=false
2443 for ac_c_preproc_warn_flag in '' yes
2444 do
2445 # Use a header file that comes with gcc, so configuring glibc
2446 # with a fresh cross-compiler works.
2447 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2448 # <limits.h> exists even on freestanding compilers.
2449 # On the NeXT, cc -E runs the code through the compiler's parser,
2450 # not just through cpp. "Syntax error" is here to catch this case.
2451 cat >conftest.$ac_ext <<_ACEOF
2452 /* confdefs.h. */
2453 _ACEOF
2454 cat confdefs.h >>conftest.$ac_ext
2455 cat >>conftest.$ac_ext <<_ACEOF
2456 /* end confdefs.h. */
2457 #ifdef __STDC__
2458 # include <limits.h>
2459 #else
2460 # include <assert.h>
2461 #endif
2462 Syntax error
2463 _ACEOF
2464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2466 ac_status=$?
2467 grep -v '^ *+' conftest.er1 >conftest.err
2468 rm -f conftest.er1
2469 cat conftest.err >&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); } >/dev/null; then
2472 if test -s conftest.err; then
2473 ac_cpp_err=$ac_c_preproc_warn_flag
2474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2475 else
2476 ac_cpp_err=
2477 fi
2478 else
2479 ac_cpp_err=yes
2480 fi
2481 if test -z "$ac_cpp_err"; then
2482 :
2483 else
2484 echo "$as_me: failed program was:" >&5
2485 sed 's/^/| /' conftest.$ac_ext >&5
2486
2487 # Broken: fails on valid input.
2488 continue
2489 fi
2490 rm -f conftest.err conftest.$ac_ext
2491
2492 # OK, works on sane cases. Now check whether non-existent headers
2493 # can be detected and how.
2494 cat >conftest.$ac_ext <<_ACEOF
2495 /* confdefs.h. */
2496 _ACEOF
2497 cat confdefs.h >>conftest.$ac_ext
2498 cat >>conftest.$ac_ext <<_ACEOF
2499 /* end confdefs.h. */
2500 #include <ac_nonexistent.h>
2501 _ACEOF
2502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2504 ac_status=$?
2505 grep -v '^ *+' conftest.er1 >conftest.err
2506 rm -f conftest.er1
2507 cat conftest.err >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); } >/dev/null; then
2510 if test -s conftest.err; then
2511 ac_cpp_err=$ac_c_preproc_warn_flag
2512 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2513 else
2514 ac_cpp_err=
2515 fi
2516 else
2517 ac_cpp_err=yes
2518 fi
2519 if test -z "$ac_cpp_err"; then
2520 # Broken: success on invalid input.
2521 continue
2522 else
2523 echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2525
2526 # Passes both tests.
2527 ac_preproc_ok=:
2528 break
2529 fi
2530 rm -f conftest.err conftest.$ac_ext
2531
2532 done
2533 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2534 rm -f conftest.err conftest.$ac_ext
2535 if $ac_preproc_ok; then
2536 :
2537 else
2538 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2539 See \`config.log' for more details." >&5
2540 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2541 See \`config.log' for more details." >&2;}
2542 { (exit 1); exit 1; }; }
2543 fi
2544
2545 ac_ext=c
2546 ac_cpp='$CPP $CPPFLAGS'
2547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2550
2551
2552 echo "$as_me:$LINENO: checking for egrep" >&5
2553 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2554 if test "${ac_cv_prog_egrep+set}" = set; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
2556 else
2557 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2558 then ac_cv_prog_egrep='grep -E'
2559 else ac_cv_prog_egrep='egrep'
2560 fi
2561 fi
2562 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2563 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2564 EGREP=$ac_cv_prog_egrep
2565
2566
2567 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2568 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2569 if test "${ac_cv_header_stdc+set}" = set; then
2570 echo $ECHO_N "(cached) $ECHO_C" >&6
2571 else
2572 cat >conftest.$ac_ext <<_ACEOF
2573 /* confdefs.h. */
2574 _ACEOF
2575 cat confdefs.h >>conftest.$ac_ext
2576 cat >>conftest.$ac_ext <<_ACEOF
2577 /* end confdefs.h. */
2578 #include <stdlib.h>
2579 #include <stdarg.h>
2580 #include <string.h>
2581 #include <float.h>
2582
2583 int
2584 main ()
2585 {
2586
2587 ;
2588 return 0;
2589 }
2590 _ACEOF
2591 rm -f conftest.$ac_objext
2592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2593 (eval $ac_compile) 2>conftest.er1
2594 ac_status=$?
2595 grep -v '^ *+' conftest.er1 >conftest.err
2596 rm -f conftest.er1
2597 cat conftest.err >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); } &&
2600 { ac_try='test -z "$ac_c_werror_flag"
2601 || test ! -s conftest.err'
2602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603 (eval $ac_try) 2>&5
2604 ac_status=$?
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }; } &&
2607 { ac_try='test -s conftest.$ac_objext'
2608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 (eval $ac_try) 2>&5
2610 ac_status=$?
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; }; then
2613 ac_cv_header_stdc=yes
2614 else
2615 echo "$as_me: failed program was:" >&5
2616 sed 's/^/| /' conftest.$ac_ext >&5
2617
2618 ac_cv_header_stdc=no
2619 fi
2620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2621
2622 if test $ac_cv_header_stdc = yes; then
2623 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2624 cat >conftest.$ac_ext <<_ACEOF
2625 /* confdefs.h. */
2626 _ACEOF
2627 cat confdefs.h >>conftest.$ac_ext
2628 cat >>conftest.$ac_ext <<_ACEOF
2629 /* end confdefs.h. */
2630 #include <string.h>
2631
2632 _ACEOF
2633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2634 $EGREP "memchr" >/dev/null 2>&1; then
2635 :
2636 else
2637 ac_cv_header_stdc=no
2638 fi
2639 rm -f conftest*
2640
2641 fi
2642
2643 if test $ac_cv_header_stdc = yes; then
2644 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2645 cat >conftest.$ac_ext <<_ACEOF
2646 /* confdefs.h. */
2647 _ACEOF
2648 cat confdefs.h >>conftest.$ac_ext
2649 cat >>conftest.$ac_ext <<_ACEOF
2650 /* end confdefs.h. */
2651 #include <stdlib.h>
2652
2653 _ACEOF
2654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2655 $EGREP "free" >/dev/null 2>&1; then
2656 :
2657 else
2658 ac_cv_header_stdc=no
2659 fi
2660 rm -f conftest*
2661
2662 fi
2663
2664 if test $ac_cv_header_stdc = yes; then
2665 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2666 if test "$cross_compiling" = yes; then
2667 :
2668 else
2669 cat >conftest.$ac_ext <<_ACEOF
2670 /* confdefs.h. */
2671 _ACEOF
2672 cat confdefs.h >>conftest.$ac_ext
2673 cat >>conftest.$ac_ext <<_ACEOF
2674 /* end confdefs.h. */
2675 #include <ctype.h>
2676 #if ((' ' & 0x0FF) == 0x020)
2677 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2678 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2679 #else
2680 # define ISLOWER(c) \
2681 (('a' <= (c) && (c) <= 'i') \
2682 || ('j' <= (c) && (c) <= 'r') \
2683 || ('s' <= (c) && (c) <= 'z'))
2684 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2685 #endif
2686
2687 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2688 int
2689 main ()
2690 {
2691 int i;
2692 for (i = 0; i < 256; i++)
2693 if (XOR (islower (i), ISLOWER (i))
2694 || toupper (i) != TOUPPER (i))
2695 exit(2);
2696 exit (0);
2697 }
2698 _ACEOF
2699 rm -f conftest$ac_exeext
2700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2701 (eval $ac_link) 2>&5
2702 ac_status=$?
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706 (eval $ac_try) 2>&5
2707 ac_status=$?
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }; }; then
2710 :
2711 else
2712 echo "$as_me: program exited with status $ac_status" >&5
2713 echo "$as_me: failed program was:" >&5
2714 sed 's/^/| /' conftest.$ac_ext >&5
2715
2716 ( exit $ac_status )
2717 ac_cv_header_stdc=no
2718 fi
2719 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2720 fi
2721 fi
2722 fi
2723 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2724 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2725 if test $ac_cv_header_stdc = yes; then
2726
2727 cat >>confdefs.h <<\_ACEOF
2728 #define STDC_HEADERS 1
2729 _ACEOF
2730
2731 fi
2732
2733 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
2734 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
2735 if test "${ac_cv_header_sys_wait_h+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
2737 else
2738 cat >conftest.$ac_ext <<_ACEOF
2739 /* confdefs.h. */
2740 _ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h. */
2744 #include <sys/types.h>
2745 #include <sys/wait.h>
2746 #ifndef WEXITSTATUS
2747 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2748 #endif
2749 #ifndef WIFEXITED
2750 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2751 #endif
2752
2753 int
2754 main ()
2755 {
2756 int s;
2757 wait (&s);
2758 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2759 ;
2760 return 0;
2761 }
2762 _ACEOF
2763 rm -f conftest.$ac_objext
2764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765 (eval $ac_compile) 2>conftest.er1
2766 ac_status=$?
2767 grep -v '^ *+' conftest.er1 >conftest.err
2768 rm -f conftest.er1
2769 cat conftest.err >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } &&
2772 { ac_try='test -z "$ac_c_werror_flag"
2773 || test ! -s conftest.err'
2774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775 (eval $ac_try) 2>&5
2776 ac_status=$?
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; } &&
2779 { ac_try='test -s conftest.$ac_objext'
2780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781 (eval $ac_try) 2>&5
2782 ac_status=$?
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; }; then
2785 ac_cv_header_sys_wait_h=yes
2786 else
2787 echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2789
2790 ac_cv_header_sys_wait_h=no
2791 fi
2792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2793 fi
2794 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
2795 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
2796 if test $ac_cv_header_sys_wait_h = yes; then
2797
2798 cat >>confdefs.h <<\_ACEOF
2799 #define HAVE_SYS_WAIT_H 1
2800 _ACEOF
2801
2802 fi
2803
2804 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2815 inttypes.h stdint.h unistd.h
2816 do
2817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2818 echo "$as_me:$LINENO: checking for $ac_header" >&5
2819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2821 echo $ECHO_N "(cached) $ECHO_C" >&6
2822 else
2823 cat >conftest.$ac_ext <<_ACEOF
2824 /* confdefs.h. */
2825 _ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h. */
2829 $ac_includes_default
2830
2831 #include <$ac_header>
2832 _ACEOF
2833 rm -f conftest.$ac_objext
2834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2835 (eval $ac_compile) 2>conftest.er1
2836 ac_status=$?
2837 grep -v '^ *+' conftest.er1 >conftest.err
2838 rm -f conftest.er1
2839 cat conftest.err >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); } &&
2842 { ac_try='test -z "$ac_c_werror_flag"
2843 || test ! -s conftest.err'
2844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 (eval $ac_try) 2>&5
2846 ac_status=$?
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; } &&
2849 { ac_try='test -s conftest.$ac_objext'
2850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851 (eval $ac_try) 2>&5
2852 ac_status=$?
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; }; then
2855 eval "$as_ac_Header=yes"
2856 else
2857 echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2859
2860 eval "$as_ac_Header=no"
2861 fi
2862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2863 fi
2864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2867 cat >>confdefs.h <<_ACEOF
2868 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2869 _ACEOF
2870
2871 fi
2872
2873 done
2874
2875
2876
2877
2878
2879
2880 for ac_header in arpa/inet.h fcntl.h limits.h netdb.h
2881 do
2882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2884 echo "$as_me:$LINENO: checking for $ac_header" >&5
2885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2888 fi
2889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2891 else
2892 # Is the header compilable?
2893 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2894 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2895 cat >conftest.$ac_ext <<_ACEOF
2896 /* confdefs.h. */
2897 _ACEOF
2898 cat confdefs.h >>conftest.$ac_ext
2899 cat >>conftest.$ac_ext <<_ACEOF
2900 /* end confdefs.h. */
2901 $ac_includes_default
2902 #include <$ac_header>
2903 _ACEOF
2904 rm -f conftest.$ac_objext
2905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2906 (eval $ac_compile) 2>conftest.er1
2907 ac_status=$?
2908 grep -v '^ *+' conftest.er1 >conftest.err
2909 rm -f conftest.er1
2910 cat conftest.err >&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); } &&
2913 { ac_try='test -z "$ac_c_werror_flag"
2914 || test ! -s conftest.err'
2915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916 (eval $ac_try) 2>&5
2917 ac_status=$?
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }; } &&
2920 { ac_try='test -s conftest.$ac_objext'
2921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2922 (eval $ac_try) 2>&5
2923 ac_status=$?
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }; }; then
2926 ac_header_compiler=yes
2927 else
2928 echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.$ac_ext >&5
2930
2931 ac_header_compiler=no
2932 fi
2933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2934 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2935 echo "${ECHO_T}$ac_header_compiler" >&6
2936
2937 # Is the header present?
2938 echo "$as_me:$LINENO: checking $ac_header presence" >&5
2939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2940 cat >conftest.$ac_ext <<_ACEOF
2941 /* confdefs.h. */
2942 _ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h. */
2946 #include <$ac_header>
2947 _ACEOF
2948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2950 ac_status=$?
2951 grep -v '^ *+' conftest.er1 >conftest.err
2952 rm -f conftest.er1
2953 cat conftest.err >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); } >/dev/null; then
2956 if test -s conftest.err; then
2957 ac_cpp_err=$ac_c_preproc_warn_flag
2958 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2959 else
2960 ac_cpp_err=
2961 fi
2962 else
2963 ac_cpp_err=yes
2964 fi
2965 if test -z "$ac_cpp_err"; then
2966 ac_header_preproc=yes
2967 else
2968 echo "$as_me: failed program was:" >&5
2969 sed 's/^/| /' conftest.$ac_ext >&5
2970
2971 ac_header_preproc=no
2972 fi
2973 rm -f conftest.err conftest.$ac_ext
2974 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2975 echo "${ECHO_T}$ac_header_preproc" >&6
2976
2977 # So? What about this header?
2978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2979 yes:no: )
2980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2981 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2983 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2984 ac_header_preproc=yes
2985 ;;
2986 no:yes:* )
2987 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2988 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2989 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2990 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2991 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2992 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2993 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2994 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2997 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2998 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2999 (
3000 cat <<\_ASBOX
3001 ## ----------------------------------------------- ##
3002 ## Report this to Carson Harding <[email protected]> ##
3003 ## ----------------------------------------------- ##
3004 _ASBOX
3005 ) |
3006 sed "s/^/$as_me: WARNING: /" >&2
3007 ;;
3008 esac
3009 echo "$as_me:$LINENO: checking for $ac_header" >&5
3010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3012 echo $ECHO_N "(cached) $ECHO_C" >&6
3013 else
3014 eval "$as_ac_Header=\$ac_header_preproc"
3015 fi
3016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3018
3019 fi
3020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3021 cat >>confdefs.h <<_ACEOF
3022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3023 _ACEOF
3024
3025 fi
3026
3027 done
3028
3029
3030
3031
3032
3033
3034 for ac_header in netinet/in.h paths.h stdlib.h string.h sys/socket.h
3035 do
3036 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3038 echo "$as_me:$LINENO: checking for $ac_header" >&5
3039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3041 echo $ECHO_N "(cached) $ECHO_C" >&6
3042 fi
3043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3044 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3045 else
3046 # Is the header compilable?
3047 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3049 cat >conftest.$ac_ext <<_ACEOF
3050 /* confdefs.h. */
3051 _ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3055 $ac_includes_default
3056 #include <$ac_header>
3057 _ACEOF
3058 rm -f conftest.$ac_objext
3059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3060 (eval $ac_compile) 2>conftest.er1
3061 ac_status=$?
3062 grep -v '^ *+' conftest.er1 >conftest.err
3063 rm -f conftest.er1
3064 cat conftest.err >&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); } &&
3067 { ac_try='test -z "$ac_c_werror_flag"
3068 || test ! -s conftest.err'
3069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3070 (eval $ac_try) 2>&5
3071 ac_status=$?
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); }; } &&
3074 { ac_try='test -s conftest.$ac_objext'
3075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3076 (eval $ac_try) 2>&5
3077 ac_status=$?
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; }; then
3080 ac_header_compiler=yes
3081 else
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3084
3085 ac_header_compiler=no
3086 fi
3087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3088 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3089 echo "${ECHO_T}$ac_header_compiler" >&6
3090
3091 # Is the header present?
3092 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3093 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3094 cat >conftest.$ac_ext <<_ACEOF
3095 /* confdefs.h. */
3096 _ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h. */
3100 #include <$ac_header>
3101 _ACEOF
3102 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3103 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3104 ac_status=$?
3105 grep -v '^ *+' conftest.er1 >conftest.err
3106 rm -f conftest.er1
3107 cat conftest.err >&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); } >/dev/null; then
3110 if test -s conftest.err; then
3111 ac_cpp_err=$ac_c_preproc_warn_flag
3112 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3113 else
3114 ac_cpp_err=
3115 fi
3116 else
3117 ac_cpp_err=yes
3118 fi
3119 if test -z "$ac_cpp_err"; then
3120 ac_header_preproc=yes
3121 else
3122 echo "$as_me: failed program was:" >&5
3123 sed 's/^/| /' conftest.$ac_ext >&5
3124
3125 ac_header_preproc=no
3126 fi
3127 rm -f conftest.err conftest.$ac_ext
3128 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3129 echo "${ECHO_T}$ac_header_preproc" >&6
3130
3131 # So? What about this header?
3132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3133 yes:no: )
3134 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3137 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3138 ac_header_preproc=yes
3139 ;;
3140 no:yes:* )
3141 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3142 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3143 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3144 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3145 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3146 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3147 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3148 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3151 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3152 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3153 (
3154 cat <<\_ASBOX
3155 ## ----------------------------------------------- ##
3156 ## Report this to Carson Harding <[email protected]> ##
3157 ## ----------------------------------------------- ##
3158 _ASBOX
3159 ) |
3160 sed "s/^/$as_me: WARNING: /" >&2
3161 ;;
3162 esac
3163 echo "$as_me:$LINENO: checking for $ac_header" >&5
3164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3167 else
3168 eval "$as_ac_Header=\$ac_header_preproc"
3169 fi
3170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3172
3173 fi
3174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3175 cat >>confdefs.h <<_ACEOF
3176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3177 _ACEOF
3178
3179 fi
3180
3181 done
3182
3183
3184
3185
3186 for ac_header in sys/time.h syslog.h unistd.h
3187 do
3188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3190 echo "$as_me:$LINENO: checking for $ac_header" >&5
3191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 fi
3195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3197 else
3198 # Is the header compilable?
3199 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3200 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3201 cat >conftest.$ac_ext <<_ACEOF
3202 /* confdefs.h. */
3203 _ACEOF
3204 cat confdefs.h >>conftest.$ac_ext
3205 cat >>conftest.$ac_ext <<_ACEOF
3206 /* end confdefs.h. */
3207 $ac_includes_default
3208 #include <$ac_header>
3209 _ACEOF
3210 rm -f conftest.$ac_objext
3211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3212 (eval $ac_compile) 2>conftest.er1
3213 ac_status=$?
3214 grep -v '^ *+' conftest.er1 >conftest.err
3215 rm -f conftest.er1
3216 cat conftest.err >&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); } &&
3219 { ac_try='test -z "$ac_c_werror_flag"
3220 || test ! -s conftest.err'
3221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3222 (eval $ac_try) 2>&5
3223 ac_status=$?
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); }; } &&
3226 { ac_try='test -s conftest.$ac_objext'
3227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3228 (eval $ac_try) 2>&5
3229 ac_status=$?
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); }; }; then
3232 ac_header_compiler=yes
3233 else
3234 echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3236
3237 ac_header_compiler=no
3238 fi
3239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3240 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3241 echo "${ECHO_T}$ac_header_compiler" >&6
3242
3243 # Is the header present?
3244 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3246 cat >conftest.$ac_ext <<_ACEOF
3247 /* confdefs.h. */
3248 _ACEOF
3249 cat confdefs.h >>conftest.$ac_ext
3250 cat >>conftest.$ac_ext <<_ACEOF
3251 /* end confdefs.h. */
3252 #include <$ac_header>
3253 _ACEOF
3254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3256 ac_status=$?
3257 grep -v '^ *+' conftest.er1 >conftest.err
3258 rm -f conftest.er1
3259 cat conftest.err >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } >/dev/null; then
3262 if test -s conftest.err; then
3263 ac_cpp_err=$ac_c_preproc_warn_flag
3264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3265 else
3266 ac_cpp_err=
3267 fi
3268 else
3269 ac_cpp_err=yes
3270 fi
3271 if test -z "$ac_cpp_err"; then
3272 ac_header_preproc=yes
3273 else
3274 echo "$as_me: failed program was:" >&5
3275 sed 's/^/| /' conftest.$ac_ext >&5
3276
3277 ac_header_preproc=no
3278 fi
3279 rm -f conftest.err conftest.$ac_ext
3280 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3281 echo "${ECHO_T}$ac_header_preproc" >&6
3282
3283 # So? What about this header?
3284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3285 yes:no: )
3286 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3287 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3289 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3290 ac_header_preproc=yes
3291 ;;
3292 no:yes:* )
3293 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3295 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3296 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3297 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3298 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3299 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3300 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3303 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3304 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3305 (
3306 cat <<\_ASBOX
3307 ## ----------------------------------------------- ##
3308 ## Report this to Carson Harding <[email protected]> ##
3309 ## ----------------------------------------------- ##
3310 _ASBOX
3311 ) |
3312 sed "s/^/$as_me: WARNING: /" >&2
3313 ;;
3314 esac
3315 echo "$as_me:$LINENO: checking for $ac_header" >&5
3316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 else
3320 eval "$as_ac_Header=\$ac_header_preproc"
3321 fi
3322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3324
3325 fi
3326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3327 cat >>confdefs.h <<_ACEOF
3328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3329 _ACEOF
3330
3331 fi
3332
3333 done
3334
3335
3336
3337 # Checks for typedefs, structures, and compiler characteristics.
3338 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3339 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3340 if test "${ac_cv_c_const+set}" = set; then
3341 echo $ECHO_N "(cached) $ECHO_C" >&6
3342 else
3343 cat >conftest.$ac_ext <<_ACEOF
3344 /* confdefs.h. */
3345 _ACEOF
3346 cat confdefs.h >>conftest.$ac_ext
3347 cat >>conftest.$ac_ext <<_ACEOF
3348 /* end confdefs.h. */
3349
3350 int
3351 main ()
3352 {
3353 /* FIXME: Include the comments suggested by Paul. */
3354 #ifndef __cplusplus
3355 /* Ultrix mips cc rejects this. */
3356 typedef int charset[2];
3357 const charset x;
3358 /* SunOS 4.1.1 cc rejects this. */
3359 char const *const *ccp;
3360 char **p;
3361 /* NEC SVR4.0.2 mips cc rejects this. */
3362 struct point {int x, y;};
3363 static struct point const zero = {0,0};
3364 /* AIX XL C 1.02.0.0 rejects this.
3365 It does not let you subtract one const X* pointer from another in
3366 an arm of an if-expression whose if-part is not a constant
3367 expression */
3368 const char *g = "string";
3369 ccp = &g + (g ? g-g : 0);
3370 /* HPUX 7.0 cc rejects these. */
3371 ++ccp;
3372 p = (char**) ccp;
3373 ccp = (char const *const *) p;
3374 { /* SCO 3.2v4 cc rejects this. */
3375 char *t;
3376 char const *s = 0 ? (char *) 0 : (char const *) 0;
3377
3378 *t++ = 0;
3379 }
3380 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3381 int x[] = {25, 17};
3382 const int *foo = &x[0];
3383 ++foo;
3384 }
3385 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3386 typedef const int *iptr;
3387 iptr p = 0;
3388 ++p;
3389 }
3390 { /* AIX XL C 1.02.0.0 rejects this saying
3391 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3392 struct s { int j; const int *ap[3]; };
3393 struct s *b; b->j = 5;
3394 }
3395 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3396 const int foo = 10;
3397 }
3398 #endif
3399
3400 ;
3401 return 0;
3402 }
3403 _ACEOF
3404 rm -f conftest.$ac_objext
3405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3406 (eval $ac_compile) 2>conftest.er1
3407 ac_status=$?
3408 grep -v '^ *+' conftest.er1 >conftest.err
3409 rm -f conftest.er1
3410 cat conftest.err >&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); } &&
3413 { ac_try='test -z "$ac_c_werror_flag"
3414 || test ! -s conftest.err'
3415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3416 (eval $ac_try) 2>&5
3417 ac_status=$?
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); }; } &&
3420 { ac_try='test -s conftest.$ac_objext'
3421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3422 (eval $ac_try) 2>&5
3423 ac_status=$?
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); }; }; then
3426 ac_cv_c_const=yes
3427 else
3428 echo "$as_me: failed program was:" >&5
3429 sed 's/^/| /' conftest.$ac_ext >&5
3430
3431 ac_cv_c_const=no
3432 fi
3433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3434 fi
3435 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3436 echo "${ECHO_T}$ac_cv_c_const" >&6
3437 if test $ac_cv_c_const = no; then
3438
3439 cat >>confdefs.h <<\_ACEOF
3440 #define const
3441 _ACEOF
3442
3443 fi
3444
3445 echo "$as_me:$LINENO: checking for inline" >&5
3446 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3447 if test "${ac_cv_c_inline+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3449 else
3450 ac_cv_c_inline=no
3451 for ac_kw in inline __inline__ __inline; do
3452 cat >conftest.$ac_ext <<_ACEOF
3453 /* confdefs.h. */
3454 _ACEOF
3455 cat confdefs.h >>conftest.$ac_ext
3456 cat >>conftest.$ac_ext <<_ACEOF
3457 /* end confdefs.h. */
3458 #ifndef __cplusplus
3459 typedef int foo_t;
3460 static $ac_kw foo_t static_foo () {return 0; }
3461 $ac_kw foo_t foo () {return 0; }
3462 #endif
3463
3464 _ACEOF
3465 rm -f conftest.$ac_objext
3466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3467 (eval $ac_compile) 2>conftest.er1
3468 ac_status=$?
3469 grep -v '^ *+' conftest.er1 >conftest.err
3470 rm -f conftest.er1
3471 cat conftest.err >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); } &&
3474 { ac_try='test -z "$ac_c_werror_flag"
3475 || test ! -s conftest.err'
3476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3477 (eval $ac_try) 2>&5
3478 ac_status=$?
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }; } &&
3481 { ac_try='test -s conftest.$ac_objext'
3482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3483 (eval $ac_try) 2>&5
3484 ac_status=$?
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); }; }; then
3487 ac_cv_c_inline=$ac_kw; break
3488 else
3489 echo "$as_me: failed program was:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3491
3492 fi
3493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3494 done
3495
3496 fi
3497 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3498 echo "${ECHO_T}$ac_cv_c_inline" >&6
3499
3500
3501 case $ac_cv_c_inline in
3502 inline | yes) ;;
3503 *)
3504 case $ac_cv_c_inline in
3505 no) ac_val=;;
3506 *) ac_val=$ac_cv_c_inline;;
3507 esac
3508 cat >>confdefs.h <<_ACEOF
3509 #ifndef __cplusplus
3510 #define inline $ac_val
3511 #endif
3512 _ACEOF
3513 ;;
3514 esac
3515
3516 echo "$as_me:$LINENO: checking for size_t" >&5
3517 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3518 if test "${ac_cv_type_size_t+set}" = set; then
3519 echo $ECHO_N "(cached) $ECHO_C" >&6
3520 else
3521 cat >conftest.$ac_ext <<_ACEOF
3522 /* confdefs.h. */
3523 _ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h. */
3527 $ac_includes_default
3528 int
3529 main ()
3530 {
3531 if ((size_t *) 0)
3532 return 0;
3533 if (sizeof (size_t))
3534 return 0;
3535 ;
3536 return 0;
3537 }
3538 _ACEOF
3539 rm -f conftest.$ac_objext
3540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3541 (eval $ac_compile) 2>conftest.er1
3542 ac_status=$?
3543 grep -v '^ *+' conftest.er1 >conftest.err
3544 rm -f conftest.er1
3545 cat conftest.err >&5
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); } &&
3548 { ac_try='test -z "$ac_c_werror_flag"
3549 || test ! -s conftest.err'
3550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551 (eval $ac_try) 2>&5
3552 ac_status=$?
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; } &&
3555 { ac_try='test -s conftest.$ac_objext'
3556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3557 (eval $ac_try) 2>&5
3558 ac_status=$?
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); }; }; then
3561 ac_cv_type_size_t=yes
3562 else
3563 echo "$as_me: failed program was:" >&5
3564 sed 's/^/| /' conftest.$ac_ext >&5
3565
3566 ac_cv_type_size_t=no
3567 fi
3568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3569 fi
3570 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3571 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3572 if test $ac_cv_type_size_t = yes; then
3573 :
3574 else
3575
3576 cat >>confdefs.h <<_ACEOF
3577 #define size_t unsigned
3578 _ACEOF
3579
3580 fi
3581
3582 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3583 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3584 if test "${ac_cv_header_time+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3586 else
3587 cat >conftest.$ac_ext <<_ACEOF
3588 /* confdefs.h. */
3589 _ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h. */
3593 #include <sys/types.h>
3594 #include <sys/time.h>
3595 #include <time.h>
3596
3597 int
3598 main ()
3599 {
3600 if ((struct tm *) 0)
3601 return 0;
3602 ;
3603 return 0;
3604 }
3605 _ACEOF
3606 rm -f conftest.$ac_objext
3607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3608 (eval $ac_compile) 2>conftest.er1
3609 ac_status=$?
3610 grep -v '^ *+' conftest.er1 >conftest.err
3611 rm -f conftest.er1
3612 cat conftest.err >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); } &&
3615 { ac_try='test -z "$ac_c_werror_flag"
3616 || test ! -s conftest.err'
3617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3618 (eval $ac_try) 2>&5
3619 ac_status=$?
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); }; } &&
3622 { ac_try='test -s conftest.$ac_objext'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624 (eval $ac_try) 2>&5
3625 ac_status=$?
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; }; then
3628 ac_cv_header_time=yes
3629 else
3630 echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3632
3633 ac_cv_header_time=no
3634 fi
3635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3636 fi
3637 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3638 echo "${ECHO_T}$ac_cv_header_time" >&6
3639 if test $ac_cv_header_time = yes; then
3640
3641 cat >>confdefs.h <<\_ACEOF
3642 #define TIME_WITH_SYS_TIME 1
3643 _ACEOF
3644
3645 fi
3646
3647 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
3648 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
3649 if test "${ac_cv_struct_tm+set}" = set; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
3651 else
3652 cat >conftest.$ac_ext <<_ACEOF
3653 /* confdefs.h. */
3654 _ACEOF
3655 cat confdefs.h >>conftest.$ac_ext
3656 cat >>conftest.$ac_ext <<_ACEOF
3657 /* end confdefs.h. */
3658 #include <sys/types.h>
3659 #include <time.h>
3660
3661 int
3662 main ()
3663 {
3664 struct tm *tp; tp->tm_sec;
3665 ;
3666 return 0;
3667 }
3668 _ACEOF
3669 rm -f conftest.$ac_objext
3670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3671 (eval $ac_compile) 2>conftest.er1
3672 ac_status=$?
3673 grep -v '^ *+' conftest.er1 >conftest.err
3674 rm -f conftest.er1
3675 cat conftest.err >&5
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); } &&
3678 { ac_try='test -z "$ac_c_werror_flag"
3679 || test ! -s conftest.err'
3680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681 (eval $ac_try) 2>&5
3682 ac_status=$?
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; } &&
3685 { ac_try='test -s conftest.$ac_objext'
3686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687 (eval $ac_try) 2>&5
3688 ac_status=$?
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); }; }; then
3691 ac_cv_struct_tm=time.h
3692 else
3693 echo "$as_me: failed program was:" >&5
3694 sed 's/^/| /' conftest.$ac_ext >&5
3695
3696 ac_cv_struct_tm=sys/time.h
3697 fi
3698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3699 fi
3700 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
3701 echo "${ECHO_T}$ac_cv_struct_tm" >&6
3702 if test $ac_cv_struct_tm = sys/time.h; then
3703
3704 cat >>confdefs.h <<\_ACEOF
3705 #define TM_IN_SYS_TIME 1
3706 _ACEOF
3707
3708 fi
3709
3710 echo "$as_me:$LINENO: checking for working volatile" >&5
3711 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
3712 if test "${ac_cv_c_volatile+set}" = set; then
3713 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 else
3715 cat >conftest.$ac_ext <<_ACEOF
3716 /* confdefs.h. */
3717 _ACEOF
3718 cat confdefs.h >>conftest.$ac_ext
3719 cat >>conftest.$ac_ext <<_ACEOF
3720 /* end confdefs.h. */
3721
3722 int
3723 main ()
3724 {
3725
3726 volatile int x;
3727 int * volatile y;
3728 ;
3729 return 0;
3730 }
3731 _ACEOF
3732 rm -f conftest.$ac_objext
3733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3734 (eval $ac_compile) 2>conftest.er1
3735 ac_status=$?
3736 grep -v '^ *+' conftest.er1 >conftest.err
3737 rm -f conftest.er1
3738 cat conftest.err >&5
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); } &&
3741 { ac_try='test -z "$ac_c_werror_flag"
3742 || test ! -s conftest.err'
3743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3744 (eval $ac_try) 2>&5
3745 ac_status=$?
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); }; } &&
3748 { ac_try='test -s conftest.$ac_objext'
3749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3750 (eval $ac_try) 2>&5
3751 ac_status=$?
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); }; }; then
3754 ac_cv_c_volatile=yes
3755 else
3756 echo "$as_me: failed program was:" >&5
3757 sed 's/^/| /' conftest.$ac_ext >&5
3758
3759 ac_cv_c_volatile=no
3760 fi
3761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3762 fi
3763 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
3764 echo "${ECHO_T}$ac_cv_c_volatile" >&6
3765 if test $ac_cv_c_volatile = no; then
3766
3767 cat >>confdefs.h <<\_ACEOF
3768 #define volatile
3769 _ACEOF
3770
3771 fi
3772
3773 echo "$as_me:$LINENO: checking for socklen_t" >&5
3774 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
3775 if test "${ac_cv_type_socklen_t+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3777 else
3778 cat >conftest.$ac_ext <<_ACEOF
3779 /* confdefs.h. */
3780 _ACEOF
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h. */
3784
3785 #ifdef HAVE_SYS_TYPES_H
3786 # include <sys/types.h>
3787 #endif
3788 #ifdef HAVE_SYS_SOCKET_H
3789 # include <sys/socket.h>
3790 #endif
3791 #ifdef HAVE_ARPA_INET_H
3792 # include <arpa/inet.h>
3793 #endif
3794
3795
3796
3797 int
3798 main ()
3799 {
3800 if ((socklen_t *) 0)
3801 return 0;
3802 if (sizeof (socklen_t))
3803 return 0;
3804 ;
3805 return 0;
3806 }
3807 _ACEOF
3808 rm -f conftest.$ac_objext
3809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3810 (eval $ac_compile) 2>conftest.er1
3811 ac_status=$?
3812 grep -v '^ *+' conftest.er1 >conftest.err
3813 rm -f conftest.er1
3814 cat conftest.err >&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); } &&
3817 { ac_try='test -z "$ac_c_werror_flag"
3818 || test ! -s conftest.err'
3819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820 (eval $ac_try) 2>&5
3821 ac_status=$?
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); }; } &&
3824 { ac_try='test -s conftest.$ac_objext'
3825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3826 (eval $ac_try) 2>&5
3827 ac_status=$?
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); }; }; then
3830 ac_cv_type_socklen_t=yes
3831 else
3832 echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3834
3835 ac_cv_type_socklen_t=no
3836 fi
3837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3838 fi
3839 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
3840 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
3841 if test $ac_cv_type_socklen_t = yes; then
3842
3843 cat >>confdefs.h <<\_ACEOF
3844 #define HAVE_SOCKLEN_T 1
3845 _ACEOF
3846
3847 fi
3848
3849 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
3850 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
3851 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3853 else
3854 cat >conftest.$ac_ext <<_ACEOF
3855 /* confdefs.h. */
3856 _ACEOF
3857 cat confdefs.h >>conftest.$ac_ext
3858 cat >>conftest.$ac_ext <<_ACEOF
3859 /* end confdefs.h. */
3860
3861 #ifdef HAVE_NETDB_H
3862 # include <netdb.h>
3863 #endif
3864
3865
3866
3867 int
3868 main ()
3869 {
3870 if ((struct addrinfo *) 0)
3871 return 0;
3872 if (sizeof (struct addrinfo))
3873 return 0;
3874 ;
3875 return 0;
3876 }
3877 _ACEOF
3878 rm -f conftest.$ac_objext
3879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3880 (eval $ac_compile) 2>conftest.er1
3881 ac_status=$?
3882 grep -v '^ *+' conftest.er1 >conftest.err
3883 rm -f conftest.er1
3884 cat conftest.err >&5
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); } &&
3887 { ac_try='test -z "$ac_c_werror_flag"
3888 || test ! -s conftest.err'
3889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3890 (eval $ac_try) 2>&5
3891 ac_status=$?
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); }; } &&
3894 { ac_try='test -s conftest.$ac_objext'
3895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3896 (eval $ac_try) 2>&5
3897 ac_status=$?
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }; }; then
3900 ac_cv_type_struct_addrinfo=yes
3901 else
3902 echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3904
3905 ac_cv_type_struct_addrinfo=no
3906 fi
3907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3908 fi
3909 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
3910 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
3911 if test $ac_cv_type_struct_addrinfo = yes; then
3912
3913 cat >>confdefs.h <<\_ACEOF
3914 #define HAVE_ADDRINFO 1
3915 _ACEOF
3916
3917 fi
3918
3919 echo "$as_me:$LINENO: checking for u_int16_t" >&5
3920 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
3921 if test "${ac_cv_type_u_int16_t+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 else
3924 cat >conftest.$ac_ext <<_ACEOF
3925 /* confdefs.h. */
3926 _ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h. */
3930
3931 #ifdef HAVE_SYS_TYPES_H
3932 # include <sys/types.h>
3933 #endif
3934
3935
3936
3937 int
3938 main ()
3939 {
3940 if ((u_int16_t *) 0)
3941 return 0;
3942 if (sizeof (u_int16_t))
3943 return 0;
3944 ;
3945 return 0;
3946 }
3947 _ACEOF
3948 rm -f conftest.$ac_objext
3949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3950 (eval $ac_compile) 2>conftest.er1
3951 ac_status=$?
3952 grep -v '^ *+' conftest.er1 >conftest.err
3953 rm -f conftest.er1
3954 cat conftest.err >&5
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); } &&
3957 { ac_try='test -z "$ac_c_werror_flag"
3958 || test ! -s conftest.err'
3959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3960 (eval $ac_try) 2>&5
3961 ac_status=$?
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); }; } &&
3964 { ac_try='test -s conftest.$ac_objext'
3965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3966 (eval $ac_try) 2>&5
3967 ac_status=$?
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); }; }; then
3970 ac_cv_type_u_int16_t=yes
3971 else
3972 echo "$as_me: failed program was:" >&5
3973 sed 's/^/| /' conftest.$ac_ext >&5
3974
3975 ac_cv_type_u_int16_t=no
3976 fi
3977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3978 fi
3979 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
3980 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
3981 if test $ac_cv_type_u_int16_t = yes; then
3982
3983 cat >>confdefs.h <<\_ACEOF
3984 #define HAVE_U_INT16_T 1
3985 _ACEOF
3986
3987 fi
3988
3989 echo "$as_me:$LINENO: checking for uint16_t" >&5
3990 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
3991 if test "${ac_cv_type_uint16_t+set}" = set; then
3992 echo $ECHO_N "(cached) $ECHO_C" >&6
3993 else
3994 cat >conftest.$ac_ext <<_ACEOF
3995 /* confdefs.h. */
3996 _ACEOF
3997 cat confdefs.h >>conftest.$ac_ext
3998 cat >>conftest.$ac_ext <<_ACEOF
3999 /* end confdefs.h. */
4000
4001 #ifdef HAVE_SYS_TYPES_H
4002 # include <sys/types.h>
4003 #endif
4004
4005
4006
4007 int
4008 main ()
4009 {
4010 if ((uint16_t *) 0)
4011 return 0;
4012 if (sizeof (uint16_t))
4013 return 0;
4014 ;
4015 return 0;
4016 }
4017 _ACEOF
4018 rm -f conftest.$ac_objext
4019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4020 (eval $ac_compile) 2>conftest.er1
4021 ac_status=$?
4022 grep -v '^ *+' conftest.er1 >conftest.err
4023 rm -f conftest.er1
4024 cat conftest.err >&5
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); } &&
4027 { ac_try='test -z "$ac_c_werror_flag"
4028 || test ! -s conftest.err'
4029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030 (eval $ac_try) 2>&5
4031 ac_status=$?
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); }; } &&
4034 { ac_try='test -s conftest.$ac_objext'
4035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4036 (eval $ac_try) 2>&5
4037 ac_status=$?
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); }; }; then
4040 ac_cv_type_uint16_t=yes
4041 else
4042 echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.$ac_ext >&5
4044
4045 ac_cv_type_uint16_t=no
4046 fi
4047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4048 fi
4049 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
4050 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
4051 if test $ac_cv_type_uint16_t = yes; then
4052
4053 cat >>confdefs.h <<\_ACEOF
4054 #define HAVE_UINT16_T 1
4055 _ACEOF
4056
4057 fi
4058
4059 echo "$as_me:$LINENO: checking whether LOG_PERROR is declared" >&5
4060 echo $ECHO_N "checking whether LOG_PERROR is declared... $ECHO_C" >&6
4061 if test "${ac_cv_have_decl_LOG_PERROR+set}" = set; then
4062 echo $ECHO_N "(cached) $ECHO_C" >&6
4063 else
4064 cat >conftest.$ac_ext <<_ACEOF
4065 /* confdefs.h. */
4066 _ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h. */
4070
4071 #ifdef HAVE_SYSLOG_H
4072 # include <syslog.h>
4073 #endif
4074
4075
4076
4077 int
4078 main ()
4079 {
4080 #ifndef LOG_PERROR
4081 char *p = (char *) LOG_PERROR;
4082 #endif
4083
4084 ;
4085 return 0;
4086 }
4087 _ACEOF
4088 rm -f conftest.$ac_objext
4089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4090 (eval $ac_compile) 2>conftest.er1
4091 ac_status=$?
4092 grep -v '^ *+' conftest.er1 >conftest.err
4093 rm -f conftest.er1
4094 cat conftest.err >&5
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); } &&
4097 { ac_try='test -z "$ac_c_werror_flag"
4098 || test ! -s conftest.err'
4099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4100 (eval $ac_try) 2>&5
4101 ac_status=$?
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); }; } &&
4104 { ac_try='test -s conftest.$ac_objext'
4105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4106 (eval $ac_try) 2>&5
4107 ac_status=$?
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); }; }; then
4110 ac_cv_have_decl_LOG_PERROR=yes
4111 else
4112 echo "$as_me: failed program was:" >&5
4113 sed 's/^/| /' conftest.$ac_ext >&5
4114
4115 ac_cv_have_decl_LOG_PERROR=no
4116 fi
4117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4118 fi
4119 echo "$as_me:$LINENO: result: $ac_cv_have_decl_LOG_PERROR" >&5
4120 echo "${ECHO_T}$ac_cv_have_decl_LOG_PERROR" >&6
4121 if test $ac_cv_have_decl_LOG_PERROR = yes; then
4122
4123 cat >>confdefs.h <<\_ACEOF
4124 #define HAVE_LOG_PERROR 1
4125 _ACEOF
4126
4127 fi
4128
4129
4130
4131 # Checks for library functions.
4132 echo "$as_me:$LINENO: checking for pid_t" >&5
4133 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4134 if test "${ac_cv_type_pid_t+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 else
4137 cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h. */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4143 $ac_includes_default
4144 int
4145 main ()
4146 {
4147 if ((pid_t *) 0)
4148 return 0;
4149 if (sizeof (pid_t))
4150 return 0;
4151 ;
4152 return 0;
4153 }
4154 _ACEOF
4155 rm -f conftest.$ac_objext
4156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4157 (eval $ac_compile) 2>conftest.er1
4158 ac_status=$?
4159 grep -v '^ *+' conftest.er1 >conftest.err
4160 rm -f conftest.er1
4161 cat conftest.err >&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); } &&
4164 { ac_try='test -z "$ac_c_werror_flag"
4165 || test ! -s conftest.err'
4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167 (eval $ac_try) 2>&5
4168 ac_status=$?
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; } &&
4171 { ac_try='test -s conftest.$ac_objext'
4172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4173 (eval $ac_try) 2>&5
4174 ac_status=$?
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); }; }; then
4177 ac_cv_type_pid_t=yes
4178 else
4179 echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4181
4182 ac_cv_type_pid_t=no
4183 fi
4184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4185 fi
4186 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4187 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4188 if test $ac_cv_type_pid_t = yes; then
4189 :
4190 else
4191
4192 cat >>confdefs.h <<_ACEOF
4193 #define pid_t int
4194 _ACEOF
4195
4196 fi
4197
4198
4199
4200 for ac_header in unistd.h vfork.h
4201 do
4202 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4204 echo "$as_me:$LINENO: checking for $ac_header" >&5
4205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4208 fi
4209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4211 else
4212 # Is the header compilable?
4213 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4214 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4215 cat >conftest.$ac_ext <<_ACEOF
4216 /* confdefs.h. */
4217 _ACEOF
4218 cat confdefs.h >>conftest.$ac_ext
4219 cat >>conftest.$ac_ext <<_ACEOF
4220 /* end confdefs.h. */
4221 $ac_includes_default
4222 #include <$ac_header>
4223 _ACEOF
4224 rm -f conftest.$ac_objext
4225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4226 (eval $ac_compile) 2>conftest.er1
4227 ac_status=$?
4228 grep -v '^ *+' conftest.er1 >conftest.err
4229 rm -f conftest.er1
4230 cat conftest.err >&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); } &&
4233 { ac_try='test -z "$ac_c_werror_flag"
4234 || test ! -s conftest.err'
4235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236 (eval $ac_try) 2>&5
4237 ac_status=$?
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; } &&
4240 { ac_try='test -s conftest.$ac_objext'
4241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242 (eval $ac_try) 2>&5
4243 ac_status=$?
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }; }; then
4246 ac_header_compiler=yes
4247 else
4248 echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4250
4251 ac_header_compiler=no
4252 fi
4253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4254 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4255 echo "${ECHO_T}$ac_header_compiler" >&6
4256
4257 # Is the header present?
4258 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4259 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4260 cat >conftest.$ac_ext <<_ACEOF
4261 /* confdefs.h. */
4262 _ACEOF
4263 cat confdefs.h >>conftest.$ac_ext
4264 cat >>conftest.$ac_ext <<_ACEOF
4265 /* end confdefs.h. */
4266 #include <$ac_header>
4267 _ACEOF
4268 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4270 ac_status=$?
4271 grep -v '^ *+' conftest.er1 >conftest.err
4272 rm -f conftest.er1
4273 cat conftest.err >&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } >/dev/null; then
4276 if test -s conftest.err; then
4277 ac_cpp_err=$ac_c_preproc_warn_flag
4278 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4279 else
4280 ac_cpp_err=
4281 fi
4282 else
4283 ac_cpp_err=yes
4284 fi
4285 if test -z "$ac_cpp_err"; then
4286 ac_header_preproc=yes
4287 else
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4290
4291 ac_header_preproc=no
4292 fi
4293 rm -f conftest.err conftest.$ac_ext
4294 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4295 echo "${ECHO_T}$ac_header_preproc" >&6
4296
4297 # So? What about this header?
4298 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4299 yes:no: )
4300 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4301 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4303 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4304 ac_header_preproc=yes
4305 ;;
4306 no:yes:* )
4307 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4308 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4309 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4310 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4311 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4312 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4313 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4314 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4315 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4316 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4317 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4318 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4319 (
4320 cat <<\_ASBOX
4321 ## ----------------------------------------------- ##
4322 ## Report this to Carson Harding <[email protected]> ##
4323 ## ----------------------------------------------- ##
4324 _ASBOX
4325 ) |
4326 sed "s/^/$as_me: WARNING: /" >&2
4327 ;;
4328 esac
4329 echo "$as_me:$LINENO: checking for $ac_header" >&5
4330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4333 else
4334 eval "$as_ac_Header=\$ac_header_preproc"
4335 fi
4336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4337 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4338
4339 fi
4340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4341 cat >>confdefs.h <<_ACEOF
4342 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4343 _ACEOF
4344
4345 fi
4346
4347 done
4348
4349
4350
4351 for ac_func in fork vfork
4352 do
4353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4354 echo "$as_me:$LINENO: checking for $ac_func" >&5
4355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4356 if eval "test \"\${$as_ac_var+set}\" = set"; then
4357 echo $ECHO_N "(cached) $ECHO_C" >&6
4358 else
4359 cat >conftest.$ac_ext <<_ACEOF
4360 /* confdefs.h. */
4361 _ACEOF
4362 cat confdefs.h >>conftest.$ac_ext
4363 cat >>conftest.$ac_ext <<_ACEOF
4364 /* end confdefs.h. */
4365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4367 #define $ac_func innocuous_$ac_func
4368
4369 /* System header to define __stub macros and hopefully few prototypes,
4370 which can conflict with char $ac_func (); below.
4371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4372 <limits.h> exists even on freestanding compilers. */
4373
4374 #ifdef __STDC__
4375 # include <limits.h>
4376 #else
4377 # include <assert.h>
4378 #endif
4379
4380 #undef $ac_func
4381
4382 /* Override any gcc2 internal prototype to avoid an error. */
4383 #ifdef __cplusplus
4384 extern "C"
4385 {
4386 #endif
4387 /* We use char because int might match the return type of a gcc2
4388 builtin and then its argument prototype would still apply. */
4389 char $ac_func ();
4390 /* The GNU C library defines this for functions which it implements
4391 to always fail with ENOSYS. Some functions are actually named
4392 something starting with __ and the normal name is an alias. */
4393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4394 choke me
4395 #else
4396 char (*f) () = $ac_func;
4397 #endif
4398 #ifdef __cplusplus
4399 }
4400 #endif
4401
4402 int
4403 main ()
4404 {
4405 return f != $ac_func;
4406 ;
4407 return 0;
4408 }
4409 _ACEOF
4410 rm -f conftest.$ac_objext conftest$ac_exeext
4411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4412 (eval $ac_link) 2>conftest.er1
4413 ac_status=$?
4414 grep -v '^ *+' conftest.er1 >conftest.err
4415 rm -f conftest.er1
4416 cat conftest.err >&5
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); } &&
4419 { ac_try='test -z "$ac_c_werror_flag"
4420 || test ! -s conftest.err'
4421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4422 (eval $ac_try) 2>&5
4423 ac_status=$?
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); }; } &&
4426 { ac_try='test -s conftest$ac_exeext'
4427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4428 (eval $ac_try) 2>&5
4429 ac_status=$?
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); }; }; then
4432 eval "$as_ac_var=yes"
4433 else
4434 echo "$as_me: failed program was:" >&5
4435 sed 's/^/| /' conftest.$ac_ext >&5
4436
4437 eval "$as_ac_var=no"
4438 fi
4439 rm -f conftest.err conftest.$ac_objext \
4440 conftest$ac_exeext conftest.$ac_ext
4441 fi
4442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4443 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4444 if test `eval echo '${'$as_ac_var'}'` = yes; then
4445 cat >>confdefs.h <<_ACEOF
4446 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4447 _ACEOF
4448
4449 fi
4450 done
4451
4452 if test "x$ac_cv_func_fork" = xyes; then
4453 echo "$as_me:$LINENO: checking for working fork" >&5
4454 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
4455 if test "${ac_cv_func_fork_works+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 else
4458 if test "$cross_compiling" = yes; then
4459 ac_cv_func_fork_works=cross
4460 else
4461 cat >conftest.$ac_ext <<_ACEOF
4462 /* By Ruediger Kuhlmann. */
4463 #include <sys/types.h>
4464 #if HAVE_UNISTD_H
4465 # include <unistd.h>
4466 #endif
4467 /* Some systems only have a dummy stub for fork() */
4468 int main ()
4469 {
4470 if (fork() < 0)
4471 exit (1);
4472 exit (0);
4473 }
4474 _ACEOF
4475 rm -f conftest$ac_exeext
4476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4477 (eval $ac_link) 2>&5
4478 ac_status=$?
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482 (eval $ac_try) 2>&5
4483 ac_status=$?
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); }; }; then
4486 ac_cv_func_fork_works=yes
4487 else
4488 echo "$as_me: program exited with status $ac_status" >&5
4489 echo "$as_me: failed program was:" >&5
4490 sed 's/^/| /' conftest.$ac_ext >&5
4491
4492 ( exit $ac_status )
4493 ac_cv_func_fork_works=no
4494 fi
4495 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4496 fi
4497 fi
4498 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
4499 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
4500
4501 else
4502 ac_cv_func_fork_works=$ac_cv_func_fork
4503 fi
4504 if test "x$ac_cv_func_fork_works" = xcross; then
4505 case $host in
4506 *-*-amigaos* | *-*-msdosdjgpp*)
4507 # Override, as these systems have only a dummy fork() stub
4508 ac_cv_func_fork_works=no
4509 ;;
4510 *)
4511 ac_cv_func_fork_works=yes
4512 ;;
4513 esac
4514 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
4515 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
4516 fi
4517 ac_cv_func_vfork_works=$ac_cv_func_vfork
4518 if test "x$ac_cv_func_vfork" = xyes; then
4519 echo "$as_me:$LINENO: checking for working vfork" >&5
4520 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
4521 if test "${ac_cv_func_vfork_works+set}" = set; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4523 else
4524 if test "$cross_compiling" = yes; then
4525 ac_cv_func_vfork_works=cross
4526 else
4527 cat >conftest.$ac_ext <<_ACEOF
4528 /* confdefs.h. */
4529 _ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h. */
4533 /* Thanks to Paul Eggert for this test. */
4534 #include <stdio.h>
4535 #include <stdlib.h>
4536 #include <sys/types.h>
4537 #include <sys/stat.h>
4538 #include <sys/wait.h>
4539 #if HAVE_UNISTD_H
4540 # include <unistd.h>
4541 #endif
4542 #if HAVE_VFORK_H
4543 # include <vfork.h>
4544 #endif
4545 /* On some sparc systems, changes by the child to local and incoming
4546 argument registers are propagated back to the parent. The compiler
4547 is told about this with #include <vfork.h>, but some compilers
4548 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
4549 static variable whose address is put into a register that is
4550 clobbered by the vfork. */
4551 static void
4552 #ifdef __cplusplus
4553 sparc_address_test (int arg)
4554 # else
4555 sparc_address_test (arg) int arg;
4556 #endif
4557 {
4558 static pid_t child;
4559 if (!child) {
4560 child = vfork ();
4561 if (child < 0) {
4562 perror ("vfork");
4563 _exit(2);
4564 }
4565 if (!child) {
4566 arg = getpid();
4567 write(-1, "", 0);
4568 _exit (arg);
4569 }
4570 }
4571 }
4572
4573 int
4574 main ()
4575 {
4576 pid_t parent = getpid ();
4577 pid_t child;
4578
4579 sparc_address_test (0);
4580
4581 child = vfork ();
4582
4583 if (child == 0) {
4584 /* Here is another test for sparc vfork register problems. This
4585 test uses lots of local variables, at least as many local
4586 variables as main has allocated so far including compiler
4587 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
4588 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
4589 reuse the register of parent for one of the local variables,
4590 since it will think that parent can't possibly be used any more
4591 in this routine. Assigning to the local variable will thus
4592 munge parent in the parent process. */
4593 pid_t
4594 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
4595 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
4596 /* Convince the compiler that p..p7 are live; otherwise, it might
4597 use the same hardware register for all 8 local variables. */
4598 if (p != p1 || p != p2 || p != p3 || p != p4
4599 || p != p5 || p != p6 || p != p7)
4600 _exit(1);
4601
4602 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
4603 from child file descriptors. If the child closes a descriptor
4604 before it execs or exits, this munges the parent's descriptor
4605 as well. Test for this by closing stdout in the child. */
4606 _exit(close(fileno(stdout)) != 0);
4607 } else {
4608 int status;
4609 struct stat st;
4610
4611 while (wait(&status) != child)
4612 ;
4613 exit(
4614 /* Was there some problem with vforking? */
4615 child < 0
4616
4617 /* Did the child fail? (This shouldn't happen.) */
4618 || status
4619
4620 /* Did the vfork/compiler bug occur? */
4621 || parent != getpid()
4622
4623 /* Did the file descriptor bug occur? */
4624 || fstat(fileno(stdout), &st) != 0
4625 );
4626 }
4627 }
4628 _ACEOF
4629 rm -f conftest$ac_exeext
4630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4631 (eval $ac_link) 2>&5
4632 ac_status=$?
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636 (eval $ac_try) 2>&5
4637 ac_status=$?
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); }; }; then
4640 ac_cv_func_vfork_works=yes
4641 else
4642 echo "$as_me: program exited with status $ac_status" >&5
4643 echo "$as_me: failed program was:" >&5
4644 sed 's/^/| /' conftest.$ac_ext >&5
4645
4646 ( exit $ac_status )
4647 ac_cv_func_vfork_works=no
4648 fi
4649 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4650 fi
4651 fi
4652 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
4653 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
4654
4655 fi;
4656 if test "x$ac_cv_func_fork_works" = xcross; then
4657 ac_cv_func_vfork_works=$ac_cv_func_vfork
4658 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
4659 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
4660 fi
4661
4662 if test "x$ac_cv_func_vfork_works" = xyes; then
4663
4664 cat >>confdefs.h <<\_ACEOF
4665 #define HAVE_WORKING_VFORK 1
4666 _ACEOF
4667
4668 else
4669
4670 cat >>confdefs.h <<\_ACEOF
4671 #define vfork fork
4672 _ACEOF
4673
4674 fi
4675 if test "x$ac_cv_func_fork_works" = xyes; then
4676
4677 cat >>confdefs.h <<\_ACEOF
4678 #define HAVE_WORKING_FORK 1
4679 _ACEOF
4680
4681 fi
4682
4683
4684 for ac_header in stdlib.h
4685 do
4686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4688 echo "$as_me:$LINENO: checking for $ac_header" >&5
4689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4691 echo $ECHO_N "(cached) $ECHO_C" >&6
4692 fi
4693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4695 else
4696 # Is the header compilable?
4697 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4699 cat >conftest.$ac_ext <<_ACEOF
4700 /* confdefs.h. */
4701 _ACEOF
4702 cat confdefs.h >>conftest.$ac_ext
4703 cat >>conftest.$ac_ext <<_ACEOF
4704 /* end confdefs.h. */
4705 $ac_includes_default
4706 #include <$ac_header>
4707 _ACEOF
4708 rm -f conftest.$ac_objext
4709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4710 (eval $ac_compile) 2>conftest.er1
4711 ac_status=$?
4712 grep -v '^ *+' conftest.er1 >conftest.err
4713 rm -f conftest.er1
4714 cat conftest.err >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); } &&
4717 { ac_try='test -z "$ac_c_werror_flag"
4718 || test ! -s conftest.err'
4719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720 (eval $ac_try) 2>&5
4721 ac_status=$?
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); }; } &&
4724 { ac_try='test -s conftest.$ac_objext'
4725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726 (eval $ac_try) 2>&5
4727 ac_status=$?
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); }; }; then
4730 ac_header_compiler=yes
4731 else
4732 echo "$as_me: failed program was:" >&5
4733 sed 's/^/| /' conftest.$ac_ext >&5
4734
4735 ac_header_compiler=no
4736 fi
4737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4738 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4739 echo "${ECHO_T}$ac_header_compiler" >&6
4740
4741 # Is the header present?
4742 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4744 cat >conftest.$ac_ext <<_ACEOF
4745 /* confdefs.h. */
4746 _ACEOF
4747 cat confdefs.h >>conftest.$ac_ext
4748 cat >>conftest.$ac_ext <<_ACEOF
4749 /* end confdefs.h. */
4750 #include <$ac_header>
4751 _ACEOF
4752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4754 ac_status=$?
4755 grep -v '^ *+' conftest.er1 >conftest.err
4756 rm -f conftest.er1
4757 cat conftest.err >&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } >/dev/null; then
4760 if test -s conftest.err; then
4761 ac_cpp_err=$ac_c_preproc_warn_flag
4762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4763 else
4764 ac_cpp_err=
4765 fi
4766 else
4767 ac_cpp_err=yes
4768 fi
4769 if test -z "$ac_cpp_err"; then
4770 ac_header_preproc=yes
4771 else
4772 echo "$as_me: failed program was:" >&5
4773 sed 's/^/| /' conftest.$ac_ext >&5
4774
4775 ac_header_preproc=no
4776 fi
4777 rm -f conftest.err conftest.$ac_ext
4778 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4779 echo "${ECHO_T}$ac_header_preproc" >&6
4780
4781 # So? What about this header?
4782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4783 yes:no: )
4784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4788 ac_header_preproc=yes
4789 ;;
4790 no:yes:* )
4791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4798 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4803 (
4804 cat <<\_ASBOX
4805 ## ----------------------------------------------- ##
4806 ## Report this to Carson Harding <[email protected]> ##
4807 ## ----------------------------------------------- ##
4808 _ASBOX
4809 ) |
4810 sed "s/^/$as_me: WARNING: /" >&2
4811 ;;
4812 esac
4813 echo "$as_me:$LINENO: checking for $ac_header" >&5
4814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
4817 else
4818 eval "$as_ac_Header=\$ac_header_preproc"
4819 fi
4820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4822
4823 fi
4824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4825 cat >>confdefs.h <<_ACEOF
4826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4827 _ACEOF
4828
4829 fi
4830
4831 done
4832
4833 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
4834 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
4835 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
4836 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 else
4838 if test "$cross_compiling" = yes; then
4839 ac_cv_func_malloc_0_nonnull=no
4840 else
4841 cat >conftest.$ac_ext <<_ACEOF
4842 /* confdefs.h. */
4843 _ACEOF
4844 cat confdefs.h >>conftest.$ac_ext
4845 cat >>conftest.$ac_ext <<_ACEOF
4846 /* end confdefs.h. */
4847 #if STDC_HEADERS || HAVE_STDLIB_H
4848 # include <stdlib.h>
4849 #else
4850 char *malloc ();
4851 #endif
4852
4853 int
4854 main ()
4855 {
4856 exit (malloc (0) ? 0 : 1);
4857 ;
4858 return 0;
4859 }
4860 _ACEOF
4861 rm -f conftest$ac_exeext
4862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4863 (eval $ac_link) 2>&5
4864 ac_status=$?
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868 (eval $ac_try) 2>&5
4869 ac_status=$?
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; }; then
4872 ac_cv_func_malloc_0_nonnull=yes
4873 else
4874 echo "$as_me: program exited with status $ac_status" >&5
4875 echo "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.$ac_ext >&5
4877
4878 ( exit $ac_status )
4879 ac_cv_func_malloc_0_nonnull=no
4880 fi
4881 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4882 fi
4883 fi
4884 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
4885 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
4886 if test $ac_cv_func_malloc_0_nonnull = yes; then
4887
4888 cat >>confdefs.h <<\_ACEOF
4889 #define HAVE_MALLOC 1
4890 _ACEOF
4891
4892 else
4893 cat >>confdefs.h <<\_ACEOF
4894 #define HAVE_MALLOC 0
4895 _ACEOF
4896
4897 case $LIBOBJS in
4898 "malloc.$ac_objext" | \
4899 *" malloc.$ac_objext" | \
4900 "malloc.$ac_objext "* | \
4901 *" malloc.$ac_objext "* ) ;;
4902 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
4903 esac
4904
4905
4906 cat >>confdefs.h <<\_ACEOF
4907 #define malloc rpl_malloc
4908 _ACEOF
4909
4910 fi
4911
4912
4913
4914
4915 for ac_header in stdlib.h
4916 do
4917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4919 echo "$as_me:$LINENO: checking for $ac_header" >&5
4920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4923 fi
4924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4925 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4926 else
4927 # Is the header compilable?
4928 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4929 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4930 cat >conftest.$ac_ext <<_ACEOF
4931 /* confdefs.h. */
4932 _ACEOF
4933 cat confdefs.h >>conftest.$ac_ext
4934 cat >>conftest.$ac_ext <<_ACEOF
4935 /* end confdefs.h. */
4936 $ac_includes_default
4937 #include <$ac_header>
4938 _ACEOF
4939 rm -f conftest.$ac_objext
4940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4941 (eval $ac_compile) 2>conftest.er1
4942 ac_status=$?
4943 grep -v '^ *+' conftest.er1 >conftest.err
4944 rm -f conftest.er1
4945 cat conftest.err >&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } &&
4948 { ac_try='test -z "$ac_c_werror_flag"
4949 || test ! -s conftest.err'
4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951 (eval $ac_try) 2>&5
4952 ac_status=$?
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; } &&
4955 { ac_try='test -s conftest.$ac_objext'
4956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957 (eval $ac_try) 2>&5
4958 ac_status=$?
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }; }; then
4961 ac_header_compiler=yes
4962 else
4963 echo "$as_me: failed program was:" >&5
4964 sed 's/^/| /' conftest.$ac_ext >&5
4965
4966 ac_header_compiler=no
4967 fi
4968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4969 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4970 echo "${ECHO_T}$ac_header_compiler" >&6
4971
4972 # Is the header present?
4973 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4974 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4975 cat >conftest.$ac_ext <<_ACEOF
4976 /* confdefs.h. */
4977 _ACEOF
4978 cat confdefs.h >>conftest.$ac_ext
4979 cat >>conftest.$ac_ext <<_ACEOF
4980 /* end confdefs.h. */
4981 #include <$ac_header>
4982 _ACEOF
4983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4985 ac_status=$?
4986 grep -v '^ *+' conftest.er1 >conftest.err
4987 rm -f conftest.er1
4988 cat conftest.err >&5
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); } >/dev/null; then
4991 if test -s conftest.err; then
4992 ac_cpp_err=$ac_c_preproc_warn_flag
4993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4994 else
4995 ac_cpp_err=
4996 fi
4997 else
4998 ac_cpp_err=yes
4999 fi
5000 if test -z "$ac_cpp_err"; then
5001 ac_header_preproc=yes
5002 else
5003 echo "$as_me: failed program was:" >&5
5004 sed 's/^/| /' conftest.$ac_ext >&5
5005
5006 ac_header_preproc=no
5007 fi
5008 rm -f conftest.err conftest.$ac_ext
5009 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5010 echo "${ECHO_T}$ac_header_preproc" >&6
5011
5012 # So? What about this header?
5013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5014 yes:no: )
5015 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5016 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5018 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5019 ac_header_preproc=yes
5020 ;;
5021 no:yes:* )
5022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5025 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5026 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5027 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5028 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5029 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5032 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5033 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5034 (
5035 cat <<\_ASBOX
5036 ## ----------------------------------------------- ##
5037 ## Report this to Carson Harding <[email protected]> ##
5038 ## ----------------------------------------------- ##
5039 _ASBOX
5040 ) |
5041 sed "s/^/$as_me: WARNING: /" >&2
5042 ;;
5043 esac
5044 echo "$as_me:$LINENO: checking for $ac_header" >&5
5045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5047 echo $ECHO_N "(cached) $ECHO_C" >&6
5048 else
5049 eval "$as_ac_Header=\$ac_header_preproc"
5050 fi
5051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5053
5054 fi
5055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5056 cat >>confdefs.h <<_ACEOF
5057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5058 _ACEOF
5059
5060 fi
5061
5062 done
5063
5064 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
5065 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
5066 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5068 else
5069 if test "$cross_compiling" = yes; then
5070 ac_cv_func_realloc_0_nonnull=no
5071 else
5072 cat >conftest.$ac_ext <<_ACEOF
5073 /* confdefs.h. */
5074 _ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h. */
5078 #if STDC_HEADERS || HAVE_STDLIB_H
5079 # include <stdlib.h>
5080 #else
5081 char *realloc ();
5082 #endif
5083
5084 int
5085 main ()
5086 {
5087 exit (realloc (0, 0) ? 0 : 1);
5088 ;
5089 return 0;
5090 }
5091 _ACEOF
5092 rm -f conftest$ac_exeext
5093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5094 (eval $ac_link) 2>&5
5095 ac_status=$?
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5099 (eval $ac_try) 2>&5
5100 ac_status=$?
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); }; }; then
5103 ac_cv_func_realloc_0_nonnull=yes
5104 else
5105 echo "$as_me: program exited with status $ac_status" >&5
5106 echo "$as_me: failed program was:" >&5
5107 sed 's/^/| /' conftest.$ac_ext >&5
5108
5109 ( exit $ac_status )
5110 ac_cv_func_realloc_0_nonnull=no
5111 fi
5112 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5113 fi
5114 fi
5115 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
5116 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
5117 if test $ac_cv_func_realloc_0_nonnull = yes; then
5118
5119 cat >>confdefs.h <<\_ACEOF
5120 #define HAVE_REALLOC 1
5121 _ACEOF
5122
5123 else
5124 cat >>confdefs.h <<\_ACEOF
5125 #define HAVE_REALLOC 0
5126 _ACEOF
5127
5128 case $LIBOBJS in
5129 "realloc.$ac_objext" | \
5130 *" realloc.$ac_objext" | \
5131 "realloc.$ac_objext "* | \
5132 *" realloc.$ac_objext "* ) ;;
5133 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
5134 esac
5135
5136
5137 cat >>confdefs.h <<\_ACEOF
5138 #define realloc rpl_realloc
5139 _ACEOF
5140
5141 fi
5142
5143
5144
5145
5146
5147 for ac_header in sys/select.h sys/socket.h
5148 do
5149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5151 echo "$as_me:$LINENO: checking for $ac_header" >&5
5152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 fi
5156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5157 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5158 else
5159 # Is the header compilable?
5160 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5162 cat >conftest.$ac_ext <<_ACEOF
5163 /* confdefs.h. */
5164 _ACEOF
5165 cat confdefs.h >>conftest.$ac_ext
5166 cat >>conftest.$ac_ext <<_ACEOF
5167 /* end confdefs.h. */
5168 $ac_includes_default
5169 #include <$ac_header>
5170 _ACEOF
5171 rm -f conftest.$ac_objext
5172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5173 (eval $ac_compile) 2>conftest.er1
5174 ac_status=$?
5175 grep -v '^ *+' conftest.er1 >conftest.err
5176 rm -f conftest.er1
5177 cat conftest.err >&5
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); } &&
5180 { ac_try='test -z "$ac_c_werror_flag"
5181 || test ! -s conftest.err'
5182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5183 (eval $ac_try) 2>&5
5184 ac_status=$?
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); }; } &&
5187 { ac_try='test -s conftest.$ac_objext'
5188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5189 (eval $ac_try) 2>&5
5190 ac_status=$?
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); }; }; then
5193 ac_header_compiler=yes
5194 else
5195 echo "$as_me: failed program was:" >&5
5196 sed 's/^/| /' conftest.$ac_ext >&5
5197
5198 ac_header_compiler=no
5199 fi
5200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5201 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5202 echo "${ECHO_T}$ac_header_compiler" >&6
5203
5204 # Is the header present?
5205 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5206 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5207 cat >conftest.$ac_ext <<_ACEOF
5208 /* confdefs.h. */
5209 _ACEOF
5210 cat confdefs.h >>conftest.$ac_ext
5211 cat >>conftest.$ac_ext <<_ACEOF
5212 /* end confdefs.h. */
5213 #include <$ac_header>
5214 _ACEOF
5215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5217 ac_status=$?
5218 grep -v '^ *+' conftest.er1 >conftest.err
5219 rm -f conftest.er1
5220 cat conftest.err >&5
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); } >/dev/null; then
5223 if test -s conftest.err; then
5224 ac_cpp_err=$ac_c_preproc_warn_flag
5225 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5226 else
5227 ac_cpp_err=
5228 fi
5229 else
5230 ac_cpp_err=yes
5231 fi
5232 if test -z "$ac_cpp_err"; then
5233 ac_header_preproc=yes
5234 else
5235 echo "$as_me: failed program was:" >&5
5236 sed 's/^/| /' conftest.$ac_ext >&5
5237
5238 ac_header_preproc=no
5239 fi
5240 rm -f conftest.err conftest.$ac_ext
5241 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5242 echo "${ECHO_T}$ac_header_preproc" >&6
5243
5244 # So? What about this header?
5245 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5246 yes:no: )
5247 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5248 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5250 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5251 ac_header_preproc=yes
5252 ;;
5253 no:yes:* )
5254 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5255 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5256 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5257 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5258 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5259 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5260 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5261 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5263 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5264 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5265 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5266 (
5267 cat <<\_ASBOX
5268 ## ----------------------------------------------- ##
5269 ## Report this to Carson Harding <[email protected]> ##
5270 ## ----------------------------------------------- ##
5271 _ASBOX
5272 ) |
5273 sed "s/^/$as_me: WARNING: /" >&2
5274 ;;
5275 esac
5276 echo "$as_me:$LINENO: checking for $ac_header" >&5
5277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 else
5281 eval "$as_ac_Header=\$ac_header_preproc"
5282 fi
5283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5284 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5285
5286 fi
5287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5288 cat >>confdefs.h <<_ACEOF
5289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5290 _ACEOF
5291
5292 fi
5293
5294 done
5295
5296 echo "$as_me:$LINENO: checking types of arguments for select" >&5
5297 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
5298 if test "${ac_cv_func_select_args+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5300 else
5301 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
5302 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5303 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
5304 cat >conftest.$ac_ext <<_ACEOF
5305 /* confdefs.h. */
5306 _ACEOF
5307 cat confdefs.h >>conftest.$ac_ext
5308 cat >>conftest.$ac_ext <<_ACEOF
5309 /* end confdefs.h. */
5310 $ac_includes_default
5311 #if HAVE_SYS_SELECT_H
5312 # include <sys/select.h>
5313 #endif
5314 #if HAVE_SYS_SOCKET_H
5315 # include <sys/socket.h>
5316 #endif
5317
5318 int
5319 main ()
5320 {
5321 extern int select ($ac_arg1,
5322 $ac_arg234, $ac_arg234, $ac_arg234,
5323 $ac_arg5);
5324 ;
5325 return 0;
5326 }
5327 _ACEOF
5328 rm -f conftest.$ac_objext
5329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5330 (eval $ac_compile) 2>conftest.er1
5331 ac_status=$?
5332 grep -v '^ *+' conftest.er1 >conftest.err
5333 rm -f conftest.er1
5334 cat conftest.err >&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } &&
5337 { ac_try='test -z "$ac_c_werror_flag"
5338 || test ! -s conftest.err'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340 (eval $ac_try) 2>&5
5341 ac_status=$?
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; } &&
5344 { ac_try='test -s conftest.$ac_objext'
5345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346 (eval $ac_try) 2>&5
5347 ac_status=$?
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); }; }; then
5350 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
5351 else
5352 echo "$as_me: failed program was:" >&5
5353 sed 's/^/| /' conftest.$ac_ext >&5
5354
5355 fi
5356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5357 done
5358 done
5359 done
5360 # Provide a safe default value.
5361 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
5362
5363 fi
5364 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
5365 echo "${ECHO_T}$ac_cv_func_select_args" >&6
5366 ac_save_IFS=$IFS; IFS=','
5367 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
5368 IFS=$ac_save_IFS
5369 shift
5370
5371 cat >>confdefs.h <<_ACEOF
5372 #define SELECT_TYPE_ARG1 $1
5373 _ACEOF
5374
5375
5376 cat >>confdefs.h <<_ACEOF
5377 #define SELECT_TYPE_ARG234 ($2)
5378 _ACEOF
5379
5380
5381 cat >>confdefs.h <<_ACEOF
5382 #define SELECT_TYPE_ARG5 ($3)
5383 _ACEOF
5384
5385 rm -f conftest*
5386
5387
5388 for ac_func in strftime
5389 do
5390 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5391 echo "$as_me:$LINENO: checking for $ac_func" >&5
5392 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5393 if eval "test \"\${$as_ac_var+set}\" = set"; then
5394 echo $ECHO_N "(cached) $ECHO_C" >&6
5395 else
5396 cat >conftest.$ac_ext <<_ACEOF
5397 /* confdefs.h. */
5398 _ACEOF
5399 cat confdefs.h >>conftest.$ac_ext
5400 cat >>conftest.$ac_ext <<_ACEOF
5401 /* end confdefs.h. */
5402 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5404 #define $ac_func innocuous_$ac_func
5405
5406 /* System header to define __stub macros and hopefully few prototypes,
5407 which can conflict with char $ac_func (); below.
5408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5409 <limits.h> exists even on freestanding compilers. */
5410
5411 #ifdef __STDC__
5412 # include <limits.h>
5413 #else
5414 # include <assert.h>
5415 #endif
5416
5417 #undef $ac_func
5418
5419 /* Override any gcc2 internal prototype to avoid an error. */
5420 #ifdef __cplusplus
5421 extern "C"
5422 {
5423 #endif
5424 /* We use char because int might match the return type of a gcc2
5425 builtin and then its argument prototype would still apply. */
5426 char $ac_func ();
5427 /* The GNU C library defines this for functions which it implements
5428 to always fail with ENOSYS. Some functions are actually named
5429 something starting with __ and the normal name is an alias. */
5430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5431 choke me
5432 #else
5433 char (*f) () = $ac_func;
5434 #endif
5435 #ifdef __cplusplus
5436 }
5437 #endif
5438
5439 int
5440 main ()
5441 {
5442 return f != $ac_func;
5443 ;
5444 return 0;
5445 }
5446 _ACEOF
5447 rm -f conftest.$ac_objext conftest$ac_exeext
5448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5449 (eval $ac_link) 2>conftest.er1
5450 ac_status=$?
5451 grep -v '^ *+' conftest.er1 >conftest.err
5452 rm -f conftest.er1
5453 cat conftest.err >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); } &&
5456 { ac_try='test -z "$ac_c_werror_flag"
5457 || test ! -s conftest.err'
5458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5459 (eval $ac_try) 2>&5
5460 ac_status=$?
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); }; } &&
5463 { ac_try='test -s conftest$ac_exeext'
5464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5465 (eval $ac_try) 2>&5
5466 ac_status=$?
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); }; }; then
5469 eval "$as_ac_var=yes"
5470 else
5471 echo "$as_me: failed program was:" >&5
5472 sed 's/^/| /' conftest.$ac_ext >&5
5473
5474 eval "$as_ac_var=no"
5475 fi
5476 rm -f conftest.err conftest.$ac_objext \
5477 conftest$ac_exeext conftest.$ac_ext
5478 fi
5479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5480 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5481 if test `eval echo '${'$as_ac_var'}'` = yes; then
5482 cat >>confdefs.h <<_ACEOF
5483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5484 _ACEOF
5485
5486 else
5487 # strftime is in -lintl on SCO UNIX.
5488 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
5489 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
5490 if test "${ac_cv_lib_intl_strftime+set}" = set; then
5491 echo $ECHO_N "(cached) $ECHO_C" >&6
5492 else
5493 ac_check_lib_save_LIBS=$LIBS
5494 LIBS="-lintl $LIBS"
5495 cat >conftest.$ac_ext <<_ACEOF
5496 /* confdefs.h. */
5497 _ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h. */
5501
5502 /* Override any gcc2 internal prototype to avoid an error. */
5503 #ifdef __cplusplus
5504 extern "C"
5505 #endif
5506 /* We use char because int might match the return type of a gcc2
5507 builtin and then its argument prototype would still apply. */
5508 char strftime ();
5509 int
5510 main ()
5511 {
5512 strftime ();
5513 ;
5514 return 0;
5515 }
5516 _ACEOF
5517 rm -f conftest.$ac_objext conftest$ac_exeext
5518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5519 (eval $ac_link) 2>conftest.er1
5520 ac_status=$?
5521 grep -v '^ *+' conftest.er1 >conftest.err
5522 rm -f conftest.er1
5523 cat conftest.err >&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); } &&
5526 { ac_try='test -z "$ac_c_werror_flag"
5527 || test ! -s conftest.err'
5528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529 (eval $ac_try) 2>&5
5530 ac_status=$?
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); }; } &&
5533 { ac_try='test -s conftest$ac_exeext'
5534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5535 (eval $ac_try) 2>&5
5536 ac_status=$?
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); }; }; then
5539 ac_cv_lib_intl_strftime=yes
5540 else
5541 echo "$as_me: failed program was:" >&5
5542 sed 's/^/| /' conftest.$ac_ext >&5
5543
5544 ac_cv_lib_intl_strftime=no
5545 fi
5546 rm -f conftest.err conftest.$ac_objext \
5547 conftest$ac_exeext conftest.$ac_ext
5548 LIBS=$ac_check_lib_save_LIBS
5549 fi
5550 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
5551 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
5552 if test $ac_cv_lib_intl_strftime = yes; then
5553 cat >>confdefs.h <<\_ACEOF
5554 #define HAVE_STRFTIME 1
5555 _ACEOF
5556
5557 LIBS="-lintl $LIBS"
5558 fi
5559
5560 fi
5561 done
5562
5563
5564 for ac_func in vprintf
5565 do
5566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5567 echo "$as_me:$LINENO: checking for $ac_func" >&5
5568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5569 if eval "test \"\${$as_ac_var+set}\" = set"; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
5571 else
5572 cat >conftest.$ac_ext <<_ACEOF
5573 /* confdefs.h. */
5574 _ACEOF
5575 cat confdefs.h >>conftest.$ac_ext
5576 cat >>conftest.$ac_ext <<_ACEOF
5577 /* end confdefs.h. */
5578 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5580 #define $ac_func innocuous_$ac_func
5581
5582 /* System header to define __stub macros and hopefully few prototypes,
5583 which can conflict with char $ac_func (); below.
5584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5585 <limits.h> exists even on freestanding compilers. */
5586
5587 #ifdef __STDC__
5588 # include <limits.h>
5589 #else
5590 # include <assert.h>
5591 #endif
5592
5593 #undef $ac_func
5594
5595 /* Override any gcc2 internal prototype to avoid an error. */
5596 #ifdef __cplusplus
5597 extern "C"
5598 {
5599 #endif
5600 /* We use char because int might match the return type of a gcc2
5601 builtin and then its argument prototype would still apply. */
5602 char $ac_func ();
5603 /* The GNU C library defines this for functions which it implements
5604 to always fail with ENOSYS. Some functions are actually named
5605 something starting with __ and the normal name is an alias. */
5606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5607 choke me
5608 #else
5609 char (*f) () = $ac_func;
5610 #endif
5611 #ifdef __cplusplus
5612 }
5613 #endif
5614
5615 int
5616 main ()
5617 {
5618 return f != $ac_func;
5619 ;
5620 return 0;
5621 }
5622 _ACEOF
5623 rm -f conftest.$ac_objext conftest$ac_exeext
5624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5625 (eval $ac_link) 2>conftest.er1
5626 ac_status=$?
5627 grep -v '^ *+' conftest.er1 >conftest.err
5628 rm -f conftest.er1
5629 cat conftest.err >&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } &&
5632 { ac_try='test -z "$ac_c_werror_flag"
5633 || test ! -s conftest.err'
5634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5635 (eval $ac_try) 2>&5
5636 ac_status=$?
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); }; } &&
5639 { ac_try='test -s conftest$ac_exeext'
5640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5641 (eval $ac_try) 2>&5
5642 ac_status=$?
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); }; }; then
5645 eval "$as_ac_var=yes"
5646 else
5647 echo "$as_me: failed program was:" >&5
5648 sed 's/^/| /' conftest.$ac_ext >&5
5649
5650 eval "$as_ac_var=no"
5651 fi
5652 rm -f conftest.err conftest.$ac_objext \
5653 conftest$ac_exeext conftest.$ac_ext
5654 fi
5655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5656 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5657 if test `eval echo '${'$as_ac_var'}'` = yes; then
5658 cat >>confdefs.h <<_ACEOF
5659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5660 _ACEOF
5661
5662 echo "$as_me:$LINENO: checking for _doprnt" >&5
5663 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
5664 if test "${ac_cv_func__doprnt+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5666 else
5667 cat >conftest.$ac_ext <<_ACEOF
5668 /* confdefs.h. */
5669 _ACEOF
5670 cat confdefs.h >>conftest.$ac_ext
5671 cat >>conftest.$ac_ext <<_ACEOF
5672 /* end confdefs.h. */
5673 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
5674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5675 #define _doprnt innocuous__doprnt
5676
5677 /* System header to define __stub macros and hopefully few prototypes,
5678 which can conflict with char _doprnt (); below.
5679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5680 <limits.h> exists even on freestanding compilers. */
5681
5682 #ifdef __STDC__
5683 # include <limits.h>
5684 #else
5685 # include <assert.h>
5686 #endif
5687
5688 #undef _doprnt
5689
5690 /* Override any gcc2 internal prototype to avoid an error. */
5691 #ifdef __cplusplus
5692 extern "C"
5693 {
5694 #endif
5695 /* We use char because int might match the return type of a gcc2
5696 builtin and then its argument prototype would still apply. */
5697 char _doprnt ();
5698 /* The GNU C library defines this for functions which it implements
5699 to always fail with ENOSYS. Some functions are actually named
5700 something starting with __ and the normal name is an alias. */
5701 #if defined (__stub__doprnt) || defined (__stub____doprnt)
5702 choke me
5703 #else
5704 char (*f) () = _doprnt;
5705 #endif
5706 #ifdef __cplusplus
5707 }
5708 #endif
5709
5710 int
5711 main ()
5712 {
5713 return f != _doprnt;
5714 ;
5715 return 0;
5716 }
5717 _ACEOF
5718 rm -f conftest.$ac_objext conftest$ac_exeext
5719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5720 (eval $ac_link) 2>conftest.er1
5721 ac_status=$?
5722 grep -v '^ *+' conftest.er1 >conftest.err
5723 rm -f conftest.er1
5724 cat conftest.err >&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); } &&
5727 { ac_try='test -z "$ac_c_werror_flag"
5728 || test ! -s conftest.err'
5729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730 (eval $ac_try) 2>&5
5731 ac_status=$?
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; } &&
5734 { ac_try='test -s conftest$ac_exeext'
5735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5736 (eval $ac_try) 2>&5
5737 ac_status=$?
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); }; }; then
5740 ac_cv_func__doprnt=yes
5741 else
5742 echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.$ac_ext >&5
5744
5745 ac_cv_func__doprnt=no
5746 fi
5747 rm -f conftest.err conftest.$ac_objext \
5748 conftest$ac_exeext conftest.$ac_ext
5749 fi
5750 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
5751 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
5752 if test $ac_cv_func__doprnt = yes; then
5753
5754 cat >>confdefs.h <<\_ACEOF
5755 #define HAVE_DOPRNT 1
5756 _ACEOF
5757
5758 fi
5759
5760 fi
5761 done
5762
5763
5764
5765
5766
5767
5768
5769
5770 for ac_func in alarm daemon dup2 gethostbyname gettimeofday memmove
5771 do
5772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5773 echo "$as_me:$LINENO: checking for $ac_func" >&5
5774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5775 if eval "test \"\${$as_ac_var+set}\" = set"; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5777 else
5778 cat >conftest.$ac_ext <<_ACEOF
5779 /* confdefs.h. */
5780 _ACEOF
5781 cat confdefs.h >>conftest.$ac_ext
5782 cat >>conftest.$ac_ext <<_ACEOF
5783 /* end confdefs.h. */
5784 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5786 #define $ac_func innocuous_$ac_func
5787
5788 /* System header to define __stub macros and hopefully few prototypes,
5789 which can conflict with char $ac_func (); below.
5790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5791 <limits.h> exists even on freestanding compilers. */
5792
5793 #ifdef __STDC__
5794 # include <limits.h>
5795 #else
5796 # include <assert.h>
5797 #endif
5798
5799 #undef $ac_func
5800
5801 /* Override any gcc2 internal prototype to avoid an error. */
5802 #ifdef __cplusplus
5803 extern "C"
5804 {
5805 #endif
5806 /* We use char because int might match the return type of a gcc2
5807 builtin and then its argument prototype would still apply. */
5808 char $ac_func ();
5809 /* The GNU C library defines this for functions which it implements
5810 to always fail with ENOSYS. Some functions are actually named
5811 something starting with __ and the normal name is an alias. */
5812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5813 choke me
5814 #else
5815 char (*f) () = $ac_func;
5816 #endif
5817 #ifdef __cplusplus
5818 }
5819 #endif
5820
5821 int
5822 main ()
5823 {
5824 return f != $ac_func;
5825 ;
5826 return 0;
5827 }
5828 _ACEOF
5829 rm -f conftest.$ac_objext conftest$ac_exeext
5830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5831 (eval $ac_link) 2>conftest.er1
5832 ac_status=$?
5833 grep -v '^ *+' conftest.er1 >conftest.err
5834 rm -f conftest.er1
5835 cat conftest.err >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); } &&
5838 { ac_try='test -z "$ac_c_werror_flag"
5839 || test ! -s conftest.err'
5840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841 (eval $ac_try) 2>&5
5842 ac_status=$?
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); }; } &&
5845 { ac_try='test -s conftest$ac_exeext'
5846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847 (eval $ac_try) 2>&5
5848 ac_status=$?
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }; }; then
5851 eval "$as_ac_var=yes"
5852 else
5853 echo "$as_me: failed program was:" >&5
5854 sed 's/^/| /' conftest.$ac_ext >&5
5855
5856 eval "$as_ac_var=no"
5857 fi
5858 rm -f conftest.err conftest.$ac_objext \
5859 conftest$ac_exeext conftest.$ac_ext
5860 fi
5861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5862 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5863 if test `eval echo '${'$as_ac_var'}'` = yes; then
5864 cat >>confdefs.h <<_ACEOF
5865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5866 _ACEOF
5867
5868 fi
5869 done
5870
5871
5872
5873
5874
5875
5876
5877
5878 for ac_func in memset poll select setproctitle socket strchr strerror
5879 do
5880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5881 echo "$as_me:$LINENO: checking for $ac_func" >&5
5882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5883 if eval "test \"\${$as_ac_var+set}\" = set"; then
5884 echo $ECHO_N "(cached) $ECHO_C" >&6
5885 else
5886 cat >conftest.$ac_ext <<_ACEOF
5887 /* confdefs.h. */
5888 _ACEOF
5889 cat confdefs.h >>conftest.$ac_ext
5890 cat >>conftest.$ac_ext <<_ACEOF
5891 /* end confdefs.h. */
5892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5894 #define $ac_func innocuous_$ac_func
5895
5896 /* System header to define __stub macros and hopefully few prototypes,
5897 which can conflict with char $ac_func (); below.
5898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5899 <limits.h> exists even on freestanding compilers. */
5900
5901 #ifdef __STDC__
5902 # include <limits.h>
5903 #else
5904 # include <assert.h>
5905 #endif
5906
5907 #undef $ac_func
5908
5909 /* Override any gcc2 internal prototype to avoid an error. */
5910 #ifdef __cplusplus
5911 extern "C"
5912 {
5913 #endif
5914 /* We use char because int might match the return type of a gcc2
5915 builtin and then its argument prototype would still apply. */
5916 char $ac_func ();
5917 /* The GNU C library defines this for functions which it implements
5918 to always fail with ENOSYS. Some functions are actually named
5919 something starting with __ and the normal name is an alias. */
5920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5921 choke me
5922 #else
5923 char (*f) () = $ac_func;
5924 #endif
5925 #ifdef __cplusplus
5926 }
5927 #endif
5928
5929 int
5930 main ()
5931 {
5932 return f != $ac_func;
5933 ;
5934 return 0;
5935 }
5936 _ACEOF
5937 rm -f conftest.$ac_objext conftest$ac_exeext
5938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5939 (eval $ac_link) 2>conftest.er1
5940 ac_status=$?
5941 grep -v '^ *+' conftest.er1 >conftest.err
5942 rm -f conftest.er1
5943 cat conftest.err >&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); } &&
5946 { ac_try='test -z "$ac_c_werror_flag"
5947 || test ! -s conftest.err'
5948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949 (eval $ac_try) 2>&5
5950 ac_status=$?
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; } &&
5953 { ac_try='test -s conftest$ac_exeext'
5954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5955 (eval $ac_try) 2>&5
5956 ac_status=$?
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); }; }; then
5959 eval "$as_ac_var=yes"
5960 else
5961 echo "$as_me: failed program was:" >&5
5962 sed 's/^/| /' conftest.$ac_ext >&5
5963
5964 eval "$as_ac_var=no"
5965 fi
5966 rm -f conftest.err conftest.$ac_objext \
5967 conftest$ac_exeext conftest.$ac_ext
5968 fi
5969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5970 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5971 if test `eval echo '${'$as_ac_var'}'` = yes; then
5972 cat >>confdefs.h <<_ACEOF
5973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5974 _ACEOF
5975
5976 fi
5977 done
5978
5979
5980
5981
5982
5983 for ac_func in strncasecmp strtoul uname vsyslog
5984 do
5985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5986 echo "$as_me:$LINENO: checking for $ac_func" >&5
5987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5988 if eval "test \"\${$as_ac_var+set}\" = set"; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 else
5991 cat >conftest.$ac_ext <<_ACEOF
5992 /* confdefs.h. */
5993 _ACEOF
5994 cat confdefs.h >>conftest.$ac_ext
5995 cat >>conftest.$ac_ext <<_ACEOF
5996 /* end confdefs.h. */
5997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5999 #define $ac_func innocuous_$ac_func
6000
6001 /* System header to define __stub macros and hopefully few prototypes,
6002 which can conflict with char $ac_func (); below.
6003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6004 <limits.h> exists even on freestanding compilers. */
6005
6006 #ifdef __STDC__
6007 # include <limits.h>
6008 #else
6009 # include <assert.h>
6010 #endif
6011
6012 #undef $ac_func
6013
6014 /* Override any gcc2 internal prototype to avoid an error. */
6015 #ifdef __cplusplus
6016 extern "C"
6017 {
6018 #endif
6019 /* We use char because int might match the return type of a gcc2
6020 builtin and then its argument prototype would still apply. */
6021 char $ac_func ();
6022 /* The GNU C library defines this for functions which it implements
6023 to always fail with ENOSYS. Some functions are actually named
6024 something starting with __ and the normal name is an alias. */
6025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6026 choke me
6027 #else
6028 char (*f) () = $ac_func;
6029 #endif
6030 #ifdef __cplusplus
6031 }
6032 #endif
6033
6034 int
6035 main ()
6036 {
6037 return f != $ac_func;
6038 ;
6039 return 0;
6040 }
6041 _ACEOF
6042 rm -f conftest.$ac_objext conftest$ac_exeext
6043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6044 (eval $ac_link) 2>conftest.er1
6045 ac_status=$?
6046 grep -v '^ *+' conftest.er1 >conftest.err
6047 rm -f conftest.er1
6048 cat conftest.err >&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); } &&
6051 { ac_try='test -z "$ac_c_werror_flag"
6052 || test ! -s conftest.err'
6053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6054 (eval $ac_try) 2>&5
6055 ac_status=$?
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); }; } &&
6058 { ac_try='test -s conftest$ac_exeext'
6059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6060 (eval $ac_try) 2>&5
6061 ac_status=$?
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); }; }; then
6064 eval "$as_ac_var=yes"
6065 else
6066 echo "$as_me: failed program was:" >&5
6067 sed 's/^/| /' conftest.$ac_ext >&5
6068
6069 eval "$as_ac_var=no"
6070 fi
6071 rm -f conftest.err conftest.$ac_objext \
6072 conftest$ac_exeext conftest.$ac_ext
6073 fi
6074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6075 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6076 if test `eval echo '${'$as_ac_var'}'` = yes; then
6077 cat >>confdefs.h <<_ACEOF
6078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6079 _ACEOF
6080
6081 fi
6082 done
6083
6084
6085
6086 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6087 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6088 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
6090 else
6091 ac_check_lib_save_LIBS=$LIBS
6092 LIBS="-lnsl $LIBS"
6093 cat >conftest.$ac_ext <<_ACEOF
6094 /* confdefs.h. */
6095 _ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h. */
6099
6100 /* Override any gcc2 internal prototype to avoid an error. */
6101 #ifdef __cplusplus
6102 extern "C"
6103 #endif
6104 /* We use char because int might match the return type of a gcc2
6105 builtin and then its argument prototype would still apply. */
6106 char gethostbyname ();
6107 int
6108 main ()
6109 {
6110 gethostbyname ();
6111 ;
6112 return 0;
6113 }
6114 _ACEOF
6115 rm -f conftest.$ac_objext conftest$ac_exeext
6116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6117 (eval $ac_link) 2>conftest.er1
6118 ac_status=$?
6119 grep -v '^ *+' conftest.er1 >conftest.err
6120 rm -f conftest.er1
6121 cat conftest.err >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } &&
6124 { ac_try='test -z "$ac_c_werror_flag"
6125 || test ! -s conftest.err'
6126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127 (eval $ac_try) 2>&5
6128 ac_status=$?
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); }; } &&
6131 { ac_try='test -s conftest$ac_exeext'
6132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133 (eval $ac_try) 2>&5
6134 ac_status=$?
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); }; }; then
6137 ac_cv_lib_nsl_gethostbyname=yes
6138 else
6139 echo "$as_me: failed program was:" >&5
6140 sed 's/^/| /' conftest.$ac_ext >&5
6141
6142 ac_cv_lib_nsl_gethostbyname=no
6143 fi
6144 rm -f conftest.err conftest.$ac_objext \
6145 conftest$ac_exeext conftest.$ac_ext
6146 LIBS=$ac_check_lib_save_LIBS
6147 fi
6148 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6149 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6150 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6151 cat >>confdefs.h <<_ACEOF
6152 #define HAVE_LIBNSL 1
6153 _ACEOF
6154
6155 LIBS="-lnsl $LIBS"
6156
6157 fi
6158
6159
6160 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6161 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6162 if test "${ac_cv_lib_socket_connect+set}" = set; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6164 else
6165 ac_check_lib_save_LIBS=$LIBS
6166 LIBS="-lsocket $LIBS"
6167 cat >conftest.$ac_ext <<_ACEOF
6168 /* confdefs.h. */
6169 _ACEOF
6170 cat confdefs.h >>conftest.$ac_ext
6171 cat >>conftest.$ac_ext <<_ACEOF
6172 /* end confdefs.h. */
6173
6174 /* Override any gcc2 internal prototype to avoid an error. */
6175 #ifdef __cplusplus
6176 extern "C"
6177 #endif
6178 /* We use char because int might match the return type of a gcc2
6179 builtin and then its argument prototype would still apply. */
6180 char connect ();
6181 int
6182 main ()
6183 {
6184 connect ();
6185 ;
6186 return 0;
6187 }
6188 _ACEOF
6189 rm -f conftest.$ac_objext conftest$ac_exeext
6190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6191 (eval $ac_link) 2>conftest.er1
6192 ac_status=$?
6193 grep -v '^ *+' conftest.er1 >conftest.err
6194 rm -f conftest.er1
6195 cat conftest.err >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); } &&
6198 { ac_try='test -z "$ac_c_werror_flag"
6199 || test ! -s conftest.err'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201 (eval $ac_try) 2>&5
6202 ac_status=$?
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; } &&
6205 { ac_try='test -s conftest$ac_exeext'
6206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207 (eval $ac_try) 2>&5
6208 ac_status=$?
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; }; then
6211 ac_cv_lib_socket_connect=yes
6212 else
6213 echo "$as_me: failed program was:" >&5
6214 sed 's/^/| /' conftest.$ac_ext >&5
6215
6216 ac_cv_lib_socket_connect=no
6217 fi
6218 rm -f conftest.err conftest.$ac_objext \
6219 conftest$ac_exeext conftest.$ac_ext
6220 LIBS=$ac_check_lib_save_LIBS
6221 fi
6222 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6223 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6224 if test $ac_cv_lib_socket_connect = yes; then
6225 cat >>confdefs.h <<_ACEOF
6226 #define HAVE_LIBSOCKET 1
6227 _ACEOF
6228
6229 LIBS="-lsocket $LIBS"
6230
6231 fi
6232
6233
6234 # Other checks
6235 echo "$as_me:$LINENO: checking whether __progname is declared" >&5
6236 echo $ECHO_N "checking whether __progname is declared... $ECHO_C" >&6
6237 if test "${ac_cv_have_decl___progname+set}" = set; then
6238 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 else
6240 cat >conftest.$ac_ext <<_ACEOF
6241 /* confdefs.h. */
6242 _ACEOF
6243 cat confdefs.h >>conftest.$ac_ext
6244 cat >>conftest.$ac_ext <<_ACEOF
6245 /* end confdefs.h. */
6246 $ac_includes_default
6247 int
6248 main ()
6249 {
6250 #ifndef __progname
6251 char *p = (char *) __progname;
6252 #endif
6253
6254 ;
6255 return 0;
6256 }
6257 _ACEOF
6258 rm -f conftest.$ac_objext
6259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6260 (eval $ac_compile) 2>conftest.er1
6261 ac_status=$?
6262 grep -v '^ *+' conftest.er1 >conftest.err
6263 rm -f conftest.er1
6264 cat conftest.err >&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); } &&
6267 { ac_try='test -z "$ac_c_werror_flag"
6268 || test ! -s conftest.err'
6269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6270 (eval $ac_try) 2>&5
6271 ac_status=$?
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; } &&
6274 { ac_try='test -s conftest.$ac_objext'
6275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276 (eval $ac_try) 2>&5
6277 ac_status=$?
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); }; }; then
6280 ac_cv_have_decl___progname=yes
6281 else
6282 echo "$as_me: failed program was:" >&5
6283 sed 's/^/| /' conftest.$ac_ext >&5
6284
6285 ac_cv_have_decl___progname=no
6286 fi
6287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6288 fi
6289 echo "$as_me:$LINENO: result: $ac_cv_have_decl___progname" >&5
6290 echo "${ECHO_T}$ac_cv_have_decl___progname" >&6
6291 if test $ac_cv_have_decl___progname = yes; then
6292
6293 cat >>confdefs.h <<\_ACEOF
6294 #define HAVE___PROGNAME 1
6295 _ACEOF
6296
6297 fi
6298
6299
6300 cat >confcache <<\_ACEOF
6301 # This file is a shell script that caches the results of configure
6302 # tests run on this system so they can be shared between configure
6303 # scripts and configure runs, see configure's option --config-cache.
6304 # It is not useful on other systems. If it contains results you don't
6305 # want to keep, you may remove or edit it.
6306 #
6307 # config.status only pays attention to the cache file if you give it
6308 # the --recheck option to rerun configure.
6309 #
6310 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6311 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6312 # following values.
6313
6314 _ACEOF
6315
6316 # The following way of writing the cache mishandles newlines in values,
6317 # but we know of no workaround that is simple, portable, and efficient.
6318 # So, don't put newlines in cache variables' values.
6319 # Ultrix sh set writes to stderr and can't be redirected directly,
6320 # and sets the high bit in the cache file unless we assign to the vars.
6321 {
6322 (set) 2>&1 |
6323 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6324 *ac_space=\ *)
6325 # `set' does not quote correctly, so add quotes (double-quote
6326 # substitution turns \\\\ into \\, and sed turns \\ into \).
6327 sed -n \
6328 "s/'/'\\\\''/g;
6329 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6330 ;;
6331 *)
6332 # `set' quotes correctly as required by POSIX, so do not add quotes.
6333 sed -n \
6334 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6335 ;;
6336 esac;
6337 } |
6338 sed '
6339 t clear
6340 : clear
6341 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6342 t end
6343 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6344 : end' >>confcache
6345 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6346 if test -w $cache_file; then
6347 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6348 cat confcache >$cache_file
6349 else
6350 echo "not updating unwritable cache $cache_file"
6351 fi
6352 fi
6353 rm -f confcache
6354
6355 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6356 # Let make expand exec_prefix.
6357 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6358
6359 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6360 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6361 # trailing colons and then remove the whole line if VPATH becomes empty
6362 # (actually we leave an empty line to preserve line numbers).
6363 if test "x$srcdir" = x.; then
6364 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6365 s/:*\$(srcdir):*/:/;
6366 s/:*\${srcdir}:*/:/;
6367 s/:*@srcdir@:*/:/;
6368 s/^\([^=]*=[ ]*\):*/\1/;
6369 s/:*$//;
6370 s/^[^=]*=[ ]*$//;
6371 }'
6372 fi
6373
6374 DEFS=-DHAVE_CONFIG_H
6375
6376 ac_libobjs=
6377 ac_ltlibobjs=
6378 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6379 # 1. Remove the extension, and $U if already installed.
6380 ac_i=`echo "$ac_i" |
6381 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6382 # 2. Add them.
6383 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6384 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6385 done
6386 LIBOBJS=$ac_libobjs
6387
6388 LTLIBOBJS=$ac_ltlibobjs
6389
6390
6391
6392 : ${CONFIG_STATUS=./config.status}
6393 ac_clean_files_save=$ac_clean_files
6394 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6395 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6396 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6397 cat >$CONFIG_STATUS <<_ACEOF
6398 #! $SHELL
6399 # Generated by $as_me.
6400 # Run this file to recreate the current configuration.
6401 # Compiler output produced by configure, useful for debugging
6402 # configure, is in config.log if it exists.
6403
6404 debug=false
6405 ac_cs_recheck=false
6406 ac_cs_silent=false
6407 SHELL=\${CONFIG_SHELL-$SHELL}
6408 _ACEOF
6409
6410 cat >>$CONFIG_STATUS <<\_ACEOF
6411 ## --------------------- ##
6412 ## M4sh Initialization. ##
6413 ## --------------------- ##
6414
6415 # Be Bourne compatible
6416 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6417 emulate sh
6418 NULLCMD=:
6419 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6420 # is contrary to our usage. Disable this feature.
6421 alias -g '${1+"$@"}'='"$@"'
6422 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6423 set -o posix
6424 fi
6425 DUALCASE=1; export DUALCASE # for MKS sh
6426
6427 # Support unset when possible.
6428 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6429 as_unset=unset
6430 else
6431 as_unset=false
6432 fi
6433
6434
6435 # Work around bugs in pre-3.0 UWIN ksh.
6436 $as_unset ENV MAIL MAILPATH
6437 PS1='$ '
6438 PS2='> '
6439 PS4='+ '
6440
6441 # NLS nuisances.
6442 for as_var in \
6443 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6444 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6445 LC_TELEPHONE LC_TIME
6446 do
6447 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6448 eval $as_var=C; export $as_var
6449 else
6450 $as_unset $as_var
6451 fi
6452 done
6453
6454 # Required to use basename.
6455 if expr a : '\(a\)' >/dev/null 2>&1; then
6456 as_expr=expr
6457 else
6458 as_expr=false
6459 fi
6460
6461 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6462 as_basename=basename
6463 else
6464 as_basename=false
6465 fi
6466
6467
6468 # Name of the executable.
6469 as_me=`$as_basename "$0" ||
6470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6471 X"$0" : 'X\(//\)$' \| \
6472 X"$0" : 'X\(/\)$' \| \
6473 . : '\(.\)' 2>/dev/null ||
6474 echo X/"$0" |
6475 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6476 /^X\/\(\/\/\)$/{ s//\1/; q; }
6477 /^X\/\(\/\).*/{ s//\1/; q; }
6478 s/.*/./; q'`
6479
6480
6481 # PATH needs CR, and LINENO needs CR and PATH.
6482 # Avoid depending upon Character Ranges.
6483 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6484 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6485 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6486 as_cr_digits='0123456789'
6487 as_cr_alnum=$as_cr_Letters$as_cr_digits
6488
6489 # The user is always right.
6490 if test "${PATH_SEPARATOR+set}" != set; then
6491 echo "#! /bin/sh" >conf$$.sh
6492 echo "exit 0" >>conf$$.sh
6493 chmod +x conf$$.sh
6494 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6495 PATH_SEPARATOR=';'
6496 else
6497 PATH_SEPARATOR=:
6498 fi
6499 rm -f conf$$.sh
6500 fi
6501
6502
6503 as_lineno_1=$LINENO
6504 as_lineno_2=$LINENO
6505 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6506 test "x$as_lineno_1" != "x$as_lineno_2" &&
6507 test "x$as_lineno_3" = "x$as_lineno_2" || {
6508 # Find who we are. Look in the path if we contain no path at all
6509 # relative or not.
6510 case $0 in
6511 *[\\/]* ) as_myself=$0 ;;
6512 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 for as_dir in $PATH
6514 do
6515 IFS=$as_save_IFS
6516 test -z "$as_dir" && as_dir=.
6517 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6518 done
6519
6520 ;;
6521 esac
6522 # We did not find ourselves, most probably we were run as `sh COMMAND'
6523 # in which case we are not to be found in the path.
6524 if test "x$as_myself" = x; then
6525 as_myself=$0
6526 fi
6527 if test ! -f "$as_myself"; then
6528 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6529 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6530 { (exit 1); exit 1; }; }
6531 fi
6532 case $CONFIG_SHELL in
6533 '')
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6536 do
6537 IFS=$as_save_IFS
6538 test -z "$as_dir" && as_dir=.
6539 for as_base in sh bash ksh sh5; do
6540 case $as_dir in
6541 /*)
6542 if ("$as_dir/$as_base" -c '
6543 as_lineno_1=$LINENO
6544 as_lineno_2=$LINENO
6545 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6546 test "x$as_lineno_1" != "x$as_lineno_2" &&
6547 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6548 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6549 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6550 CONFIG_SHELL=$as_dir/$as_base
6551 export CONFIG_SHELL
6552 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6553 fi;;
6554 esac
6555 done
6556 done
6557 ;;
6558 esac
6559
6560 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6561 # uniformly replaced by the line number. The first 'sed' inserts a
6562 # line-number line before each line; the second 'sed' does the real
6563 # work. The second script uses 'N' to pair each line-number line
6564 # with the numbered line, and appends trailing '-' during
6565 # substitution so that $LINENO is not a special case at line end.
6566 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6567 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6568 sed '=' <$as_myself |
6569 sed '
6570 N
6571 s,$,-,
6572 : loop
6573 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6574 t loop
6575 s,-$,,
6576 s,^['$as_cr_digits']*\n,,
6577 ' >$as_me.lineno &&
6578 chmod +x $as_me.lineno ||
6579 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6580 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6581 { (exit 1); exit 1; }; }
6582
6583 # Don't try to exec as it changes $[0], causing all sort of problems
6584 # (the dirname of $[0] is not the place where we might find the
6585 # original and so on. Autoconf is especially sensible to this).
6586 . ./$as_me.lineno
6587 # Exit status is that of the last command.
6588 exit
6589 }
6590
6591
6592 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6593 *c*,-n*) ECHO_N= ECHO_C='
6594 ' ECHO_T=' ' ;;
6595 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6596 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6597 esac
6598
6599 if expr a : '\(a\)' >/dev/null 2>&1; then
6600 as_expr=expr
6601 else
6602 as_expr=false
6603 fi
6604
6605 rm -f conf$$ conf$$.exe conf$$.file
6606 echo >conf$$.file
6607 if ln -s conf$$.file conf$$ 2>/dev/null; then
6608 # We could just check for DJGPP; but this test a) works b) is more generic
6609 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6610 if test -f conf$$.exe; then
6611 # Don't use ln at all; we don't have any links
6612 as_ln_s='cp -p'
6613 else
6614 as_ln_s='ln -s'
6615 fi
6616 elif ln conf$$.file conf$$ 2>/dev/null; then
6617 as_ln_s=ln
6618 else
6619 as_ln_s='cp -p'
6620 fi
6621 rm -f conf$$ conf$$.exe conf$$.file
6622
6623 if mkdir -p . 2>/dev/null; then
6624 as_mkdir_p=:
6625 else
6626 test -d ./-p && rmdir ./-p
6627 as_mkdir_p=false
6628 fi
6629
6630 as_executable_p="test -f"
6631
6632 # Sed expression to map a string onto a valid CPP name.
6633 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6634
6635 # Sed expression to map a string onto a valid variable name.
6636 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6637
6638
6639 # IFS
6640 # We need space, tab and new line, in precisely that order.
6641 as_nl='
6642 '
6643 IFS=" $as_nl"
6644
6645 # CDPATH.
6646 $as_unset CDPATH
6647
6648 exec 6>&1
6649
6650 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6651 # report actual input values of CONFIG_FILES etc. instead of their
6652 # values after options handling. Logging --version etc. is OK.
6653 exec 5>>config.log
6654 {
6655 echo
6656 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6657 ## Running $as_me. ##
6658 _ASBOX
6659 } >&5
6660 cat >&5 <<_CSEOF
6661
6662 This file was extended by autossh $as_me 1.4, which was
6663 generated by GNU Autoconf 2.59. Invocation command line was
6664
6665 CONFIG_FILES = $CONFIG_FILES
6666 CONFIG_HEADERS = $CONFIG_HEADERS
6667 CONFIG_LINKS = $CONFIG_LINKS
6668 CONFIG_COMMANDS = $CONFIG_COMMANDS
6669 $ $0 $@
6670
6671 _CSEOF
6672 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6673 echo >&5
6674 _ACEOF
6675
6676 # Files that config.status was made for.
6677 if test -n "$ac_config_files"; then
6678 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6679 fi
6680
6681 if test -n "$ac_config_headers"; then
6682 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6683 fi
6684
6685 if test -n "$ac_config_links"; then
6686 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6687 fi
6688
6689 if test -n "$ac_config_commands"; then
6690 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6691 fi
6692
6693 cat >>$CONFIG_STATUS <<\_ACEOF
6694
6695 ac_cs_usage="\
6696 \`$as_me' instantiates files from templates according to the
6697 current configuration.
6698
6699 Usage: $0 [OPTIONS] [FILE]...
6700
6701 -h, --help print this help, then exit
6702 -V, --version print version number, then exit
6703 -q, --quiet do not print progress messages
6704 -d, --debug don't remove temporary files
6705 --recheck update $as_me by reconfiguring in the same conditions
6706 --file=FILE[:TEMPLATE]
6707 instantiate the configuration file FILE
6708 --header=FILE[:TEMPLATE]
6709 instantiate the configuration header FILE
6710
6711 Configuration files:
6712 $config_files
6713
6714 Configuration headers:
6715 $config_headers
6716
6717 Report bugs to <[email protected]>."
6718 _ACEOF
6719
6720 cat >>$CONFIG_STATUS <<_ACEOF
6721 ac_cs_version="\\
6722 autossh config.status 1.4
6723 configured by $0, generated by GNU Autoconf 2.59,
6724 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6725
6726 Copyright (C) 2003 Free Software Foundation, Inc.
6727 This config.status script is free software; the Free Software Foundation
6728 gives unlimited permission to copy, distribute and modify it."
6729 srcdir=$srcdir
6730 _ACEOF
6731
6732 cat >>$CONFIG_STATUS <<\_ACEOF
6733 # If no file are specified by the user, then we need to provide default
6734 # value. By we need to know if files were specified by the user.
6735 ac_need_defaults=:
6736 while test $# != 0
6737 do
6738 case $1 in
6739 --*=*)
6740 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6741 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6742 ac_shift=:
6743 ;;
6744 -*)
6745 ac_option=$1
6746 ac_optarg=$2
6747 ac_shift=shift
6748 ;;
6749 *) # This is not an option, so the user has probably given explicit
6750 # arguments.
6751 ac_option=$1
6752 ac_need_defaults=false;;
6753 esac
6754
6755 case $ac_option in
6756 # Handling of the options.
6757 _ACEOF
6758 cat >>$CONFIG_STATUS <<\_ACEOF
6759 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6760 ac_cs_recheck=: ;;
6761 --version | --vers* | -V )
6762 echo "$ac_cs_version"; exit 0 ;;
6763 --he | --h)
6764 # Conflict between --help and --header
6765 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6766 Try \`$0 --help' for more information." >&5
6767 echo "$as_me: error: ambiguous option: $1
6768 Try \`$0 --help' for more information." >&2;}
6769 { (exit 1); exit 1; }; };;
6770 --help | --hel | -h )
6771 echo "$ac_cs_usage"; exit 0 ;;
6772 --debug | --d* | -d )
6773 debug=: ;;
6774 --file | --fil | --fi | --f )
6775 $ac_shift
6776 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6777 ac_need_defaults=false;;
6778 --header | --heade | --head | --hea )
6779 $ac_shift
6780 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6781 ac_need_defaults=false;;
6782 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6783 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6784 ac_cs_silent=: ;;
6785
6786 # This is an error.
6787 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6788 Try \`$0 --help' for more information." >&5
6789 echo "$as_me: error: unrecognized option: $1
6790 Try \`$0 --help' for more information." >&2;}
6791 { (exit 1); exit 1; }; } ;;
6792
6793 *) ac_config_targets="$ac_config_targets $1" ;;
6794
6795 esac
6796 shift
6797 done
6798
6799 ac_configure_extra_args=
6800
6801 if $ac_cs_silent; then
6802 exec 6>/dev/null
6803 ac_configure_extra_args="$ac_configure_extra_args --silent"
6804 fi
6805
6806 _ACEOF
6807 cat >>$CONFIG_STATUS <<_ACEOF
6808 if \$ac_cs_recheck; then
6809 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6810 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6811 fi
6812
6813 _ACEOF
6814
6815
6816
6817
6818
6819 cat >>$CONFIG_STATUS <<\_ACEOF
6820 for ac_config_target in $ac_config_targets
6821 do
6822 case "$ac_config_target" in
6823 # Handling of arguments.
6824 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6825 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6826 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6827 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6828 { (exit 1); exit 1; }; };;
6829 esac
6830 done
6831
6832 # If the user did not use the arguments to specify the items to instantiate,
6833 # then the envvar interface is used. Set only those that are not.
6834 # We use the long form for the default assignment because of an extremely
6835 # bizarre bug on SunOS 4.1.3.
6836 if $ac_need_defaults; then
6837 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6838 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6839 fi
6840
6841 # Have a temporary directory for convenience. Make it in the build tree
6842 # simply because there is no reason to put it here, and in addition,
6843 # creating and moving files from /tmp can sometimes cause problems.
6844 # Create a temporary directory, and hook for its removal unless debugging.
6845 $debug ||
6846 {
6847 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6848 trap '{ (exit 1); exit 1; }' 1 2 13 15
6849 }
6850
6851 # Create a (secure) tmp directory for tmp files.
6852
6853 {
6854 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6855 test -n "$tmp" && test -d "$tmp"
6856 } ||
6857 {
6858 tmp=./confstat$$-$RANDOM
6859 (umask 077 && mkdir $tmp)
6860 } ||
6861 {
6862 echo "$me: cannot create a temporary directory in ." >&2
6863 { (exit 1); exit 1; }
6864 }
6865
6866 _ACEOF
6867
6868 cat >>$CONFIG_STATUS <<_ACEOF
6869
6870 #
6871 # CONFIG_FILES section.
6872 #
6873
6874 # No need to generate the scripts if there are no CONFIG_FILES.
6875 # This happens for instance when ./config.status config.h
6876 if test -n "\$CONFIG_FILES"; then
6877 # Protect against being on the right side of a sed subst in config.status.
6878 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6879 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6880 s,@SHELL@,$SHELL,;t t
6881 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6882 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6883 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6884 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6885 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6886 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6887 s,@exec_prefix@,$exec_prefix,;t t
6888 s,@prefix@,$prefix,;t t
6889 s,@program_transform_name@,$program_transform_name,;t t
6890 s,@bindir@,$bindir,;t t
6891 s,@sbindir@,$sbindir,;t t
6892 s,@libexecdir@,$libexecdir,;t t
6893 s,@datadir@,$datadir,;t t
6894 s,@sysconfdir@,$sysconfdir,;t t
6895 s,@sharedstatedir@,$sharedstatedir,;t t
6896 s,@localstatedir@,$localstatedir,;t t
6897 s,@libdir@,$libdir,;t t
6898 s,@includedir@,$includedir,;t t
6899 s,@oldincludedir@,$oldincludedir,;t t
6900 s,@infodir@,$infodir,;t t
6901 s,@mandir@,$mandir,;t t
6902 s,@build_alias@,$build_alias,;t t
6903 s,@host_alias@,$host_alias,;t t
6904 s,@target_alias@,$target_alias,;t t
6905 s,@DEFS@,$DEFS,;t t
6906 s,@ECHO_C@,$ECHO_C,;t t
6907 s,@ECHO_N@,$ECHO_N,;t t
6908 s,@ECHO_T@,$ECHO_T,;t t
6909 s,@LIBS@,$LIBS,;t t
6910 s,@CC@,$CC,;t t
6911 s,@CFLAGS@,$CFLAGS,;t t
6912 s,@LDFLAGS@,$LDFLAGS,;t t
6913 s,@CPPFLAGS@,$CPPFLAGS,;t t
6914 s,@ac_ct_CC@,$ac_ct_CC,;t t
6915 s,@EXEEXT@,$EXEEXT,;t t
6916 s,@OBJEXT@,$OBJEXT,;t t
6917 s,@ssh@,$ssh,;t t
6918 s,@path_ssh@,$path_ssh,;t t
6919 s,@CPP@,$CPP,;t t
6920 s,@EGREP@,$EGREP,;t t
6921 s,@LIBOBJS@,$LIBOBJS,;t t
6922 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6923 CEOF
6924
6925 _ACEOF
6926
6927 cat >>$CONFIG_STATUS <<\_ACEOF
6928 # Split the substitutions into bite-sized pieces for seds with
6929 # small command number limits, like on Digital OSF/1 and HP-UX.
6930 ac_max_sed_lines=48
6931 ac_sed_frag=1 # Number of current file.
6932 ac_beg=1 # First line for current file.
6933 ac_end=$ac_max_sed_lines # Line after last line for current file.
6934 ac_more_lines=:
6935 ac_sed_cmds=
6936 while $ac_more_lines; do
6937 if test $ac_beg -gt 1; then
6938 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6939 else
6940 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6941 fi
6942 if test ! -s $tmp/subs.frag; then
6943 ac_more_lines=false
6944 else
6945 # The purpose of the label and of the branching condition is to
6946 # speed up the sed processing (if there are no `@' at all, there
6947 # is no need to browse any of the substitutions).
6948 # These are the two extra sed commands mentioned above.
6949 (echo ':t
6950 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6951 if test -z "$ac_sed_cmds"; then
6952 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6953 else
6954 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6955 fi
6956 ac_sed_frag=`expr $ac_sed_frag + 1`
6957 ac_beg=$ac_end
6958 ac_end=`expr $ac_end + $ac_max_sed_lines`
6959 fi
6960 done
6961 if test -z "$ac_sed_cmds"; then
6962 ac_sed_cmds=cat
6963 fi
6964 fi # test -n "$CONFIG_FILES"
6965
6966 _ACEOF
6967 cat >>$CONFIG_STATUS <<\_ACEOF
6968 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6969 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6970 case $ac_file in
6971 - | *:- | *:-:* ) # input from stdin
6972 cat >$tmp/stdin
6973 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6974 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6975 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6976 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6977 * ) ac_file_in=$ac_file.in ;;
6978 esac
6979
6980 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6981 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6982 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6983 X"$ac_file" : 'X\(//\)[^/]' \| \
6984 X"$ac_file" : 'X\(//\)$' \| \
6985 X"$ac_file" : 'X\(/\)' \| \
6986 . : '\(.\)' 2>/dev/null ||
6987 echo X"$ac_file" |
6988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6989 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6990 /^X\(\/\/\)$/{ s//\1/; q; }
6991 /^X\(\/\).*/{ s//\1/; q; }
6992 s/.*/./; q'`
6993 { if $as_mkdir_p; then
6994 mkdir -p "$ac_dir"
6995 else
6996 as_dir="$ac_dir"
6997 as_dirs=
6998 while test ! -d "$as_dir"; do
6999 as_dirs="$as_dir $as_dirs"
7000 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7001 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7002 X"$as_dir" : 'X\(//\)[^/]' \| \
7003 X"$as_dir" : 'X\(//\)$' \| \
7004 X"$as_dir" : 'X\(/\)' \| \
7005 . : '\(.\)' 2>/dev/null ||
7006 echo X"$as_dir" |
7007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7008 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7009 /^X\(\/\/\)$/{ s//\1/; q; }
7010 /^X\(\/\).*/{ s//\1/; q; }
7011 s/.*/./; q'`
7012 done
7013 test ! -n "$as_dirs" || mkdir $as_dirs
7014 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7015 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7016 { (exit 1); exit 1; }; }; }
7017
7018 ac_builddir=.
7019
7020 if test "$ac_dir" != .; then
7021 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7022 # A "../" for each directory in $ac_dir_suffix.
7023 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7024 else
7025 ac_dir_suffix= ac_top_builddir=
7026 fi
7027
7028 case $srcdir in
7029 .) # No --srcdir option. We are building in place.
7030 ac_srcdir=.
7031 if test -z "$ac_top_builddir"; then
7032 ac_top_srcdir=.
7033 else
7034 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7035 fi ;;
7036 [\\/]* | ?:[\\/]* ) # Absolute path.
7037 ac_srcdir=$srcdir$ac_dir_suffix;
7038 ac_top_srcdir=$srcdir ;;
7039 *) # Relative path.
7040 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7041 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7042 esac
7043
7044 # Do not use `cd foo && pwd` to compute absolute paths, because
7045 # the directories may not exist.
7046 case `pwd` in
7047 .) ac_abs_builddir="$ac_dir";;
7048 *)
7049 case "$ac_dir" in
7050 .) ac_abs_builddir=`pwd`;;
7051 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7052 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7053 esac;;
7054 esac
7055 case $ac_abs_builddir in
7056 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7057 *)
7058 case ${ac_top_builddir}. in
7059 .) ac_abs_top_builddir=$ac_abs_builddir;;
7060 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7061 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7062 esac;;
7063 esac
7064 case $ac_abs_builddir in
7065 .) ac_abs_srcdir=$ac_srcdir;;
7066 *)
7067 case $ac_srcdir in
7068 .) ac_abs_srcdir=$ac_abs_builddir;;
7069 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7070 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7071 esac;;
7072 esac
7073 case $ac_abs_builddir in
7074 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7075 *)
7076 case $ac_top_srcdir in
7077 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7078 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7079 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7080 esac;;
7081 esac
7082
7083
7084
7085 if test x"$ac_file" != x-; then
7086 { echo "$as_me:$LINENO: creating $ac_file" >&5
7087 echo "$as_me: creating $ac_file" >&6;}
7088 rm -f "$ac_file"
7089 fi
7090 # Let's still pretend it is `configure' which instantiates (i.e., don't
7091 # use $as_me), people would be surprised to read:
7092 # /* config.h. Generated by config.status. */
7093 if test x"$ac_file" = x-; then
7094 configure_input=
7095 else
7096 configure_input="$ac_file. "
7097 fi
7098 configure_input=$configure_input"Generated from `echo $ac_file_in |
7099 sed 's,.*/,,'` by configure."
7100
7101 # First look for the input files in the build tree, otherwise in the
7102 # src tree.
7103 ac_file_inputs=`IFS=:
7104 for f in $ac_file_in; do
7105 case $f in
7106 -) echo $tmp/stdin ;;
7107 [\\/$]*)
7108 # Absolute (can't be DOS-style, as IFS=:)
7109 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7110 echo "$as_me: error: cannot find input file: $f" >&2;}
7111 { (exit 1); exit 1; }; }
7112 echo "$f";;
7113 *) # Relative
7114 if test -f "$f"; then
7115 # Build tree
7116 echo "$f"
7117 elif test -f "$srcdir/$f"; then
7118 # Source tree
7119 echo "$srcdir/$f"
7120 else
7121 # /dev/null tree
7122 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7123 echo "$as_me: error: cannot find input file: $f" >&2;}
7124 { (exit 1); exit 1; }; }
7125 fi;;
7126 esac
7127 done` || { (exit 1); exit 1; }
7128 _ACEOF
7129 cat >>$CONFIG_STATUS <<_ACEOF
7130 sed "$ac_vpsub
7131 $extrasub
7132 _ACEOF
7133 cat >>$CONFIG_STATUS <<\_ACEOF
7134 :t
7135 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7136 s,@configure_input@,$configure_input,;t t
7137 s,@srcdir@,$ac_srcdir,;t t
7138 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7139 s,@top_srcdir@,$ac_top_srcdir,;t t
7140 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7141 s,@builddir@,$ac_builddir,;t t
7142 s,@abs_builddir@,$ac_abs_builddir,;t t
7143 s,@top_builddir@,$ac_top_builddir,;t t
7144 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7145 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7146 rm -f $tmp/stdin
7147 if test x"$ac_file" != x-; then
7148 mv $tmp/out $ac_file
7149 else
7150 cat $tmp/out
7151 rm -f $tmp/out
7152 fi
7153
7154 done
7155 _ACEOF
7156 cat >>$CONFIG_STATUS <<\_ACEOF
7157
7158 #
7159 # CONFIG_HEADER section.
7160 #
7161
7162 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7163 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7164 #
7165 # ac_d sets the value in "#define NAME VALUE" lines.
7166 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7167 ac_dB='[ ].*$,\1#\2'
7168 ac_dC=' '
7169 ac_dD=',;t'
7170 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7171 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7172 ac_uB='$,\1#\2define\3'
7173 ac_uC=' '
7174 ac_uD=',;t'
7175
7176 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7177 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7178 case $ac_file in
7179 - | *:- | *:-:* ) # input from stdin
7180 cat >$tmp/stdin
7181 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7182 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7183 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7184 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7185 * ) ac_file_in=$ac_file.in ;;
7186 esac
7187
7188 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7189 echo "$as_me: creating $ac_file" >&6;}
7190
7191 # First look for the input files in the build tree, otherwise in the
7192 # src tree.
7193 ac_file_inputs=`IFS=:
7194 for f in $ac_file_in; do
7195 case $f in
7196 -) echo $tmp/stdin ;;
7197 [\\/$]*)
7198 # Absolute (can't be DOS-style, as IFS=:)
7199 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7200 echo "$as_me: error: cannot find input file: $f" >&2;}
7201 { (exit 1); exit 1; }; }
7202 # Do quote $f, to prevent DOS paths from being IFS'd.
7203 echo "$f";;
7204 *) # Relative
7205 if test -f "$f"; then
7206 # Build tree
7207 echo "$f"
7208 elif test -f "$srcdir/$f"; then
7209 # Source tree
7210 echo "$srcdir/$f"
7211 else
7212 # /dev/null tree
7213 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7214 echo "$as_me: error: cannot find input file: $f" >&2;}
7215 { (exit 1); exit 1; }; }
7216 fi;;
7217 esac
7218 done` || { (exit 1); exit 1; }
7219 # Remove the trailing spaces.
7220 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7221
7222 _ACEOF
7223
7224 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7225 # `conftest.undefs', that substitutes the proper values into
7226 # config.h.in to produce config.h. The first handles `#define'
7227 # templates, and the second `#undef' templates.
7228 # And first: Protect against being on the right side of a sed subst in
7229 # config.status. Protect against being in an unquoted here document
7230 # in config.status.
7231 rm -f conftest.defines conftest.undefs
7232 # Using a here document instead of a string reduces the quoting nightmare.
7233 # Putting comments in sed scripts is not portable.
7234 #
7235 # `end' is used to avoid that the second main sed command (meant for
7236 # 0-ary CPP macros) applies to n-ary macro definitions.
7237 # See the Autoconf documentation for `clear'.
7238 cat >confdef2sed.sed <<\_ACEOF
7239 s/[\\&,]/\\&/g
7240 s,[\\$`],\\&,g
7241 t clear
7242 : clear
7243 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7244 t end
7245 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7246 : end
7247 _ACEOF
7248 # If some macros were called several times there might be several times
7249 # the same #defines, which is useless. Nevertheless, we may not want to
7250 # sort them, since we want the *last* AC-DEFINE to be honored.
7251 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7252 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7253 rm -f confdef2sed.sed
7254
7255 # This sed command replaces #undef with comments. This is necessary, for
7256 # example, in the case of _POSIX_SOURCE, which is predefined and required
7257 # on some systems where configure will not decide to define it.
7258 cat >>conftest.undefs <<\_ACEOF
7259 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7260 _ACEOF
7261
7262 # Break up conftest.defines because some shells have a limit on the size
7263 # of here documents, and old seds have small limits too (100 cmds).
7264 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7265 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7266 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7267 echo ' :' >>$CONFIG_STATUS
7268 rm -f conftest.tail
7269 while grep . conftest.defines >/dev/null
7270 do
7271 # Write a limited-size here document to $tmp/defines.sed.
7272 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7273 # Speed up: don't consider the non `#define' lines.
7274 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7275 # Work around the forget-to-reset-the-flag bug.
7276 echo 't clr' >>$CONFIG_STATUS
7277 echo ': clr' >>$CONFIG_STATUS
7278 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7279 echo 'CEOF
7280 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7281 rm -f $tmp/in
7282 mv $tmp/out $tmp/in
7283 ' >>$CONFIG_STATUS
7284 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7285 rm -f conftest.defines
7286 mv conftest.tail conftest.defines
7287 done
7288 rm -f conftest.defines
7289 echo ' fi # grep' >>$CONFIG_STATUS
7290 echo >>$CONFIG_STATUS
7291
7292 # Break up conftest.undefs because some shells have a limit on the size
7293 # of here documents, and old seds have small limits too (100 cmds).
7294 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7295 rm -f conftest.tail
7296 while grep . conftest.undefs >/dev/null
7297 do
7298 # Write a limited-size here document to $tmp/undefs.sed.
7299 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7300 # Speed up: don't consider the non `#undef'
7301 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7302 # Work around the forget-to-reset-the-flag bug.
7303 echo 't clr' >>$CONFIG_STATUS
7304 echo ': clr' >>$CONFIG_STATUS
7305 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7306 echo 'CEOF
7307 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7308 rm -f $tmp/in
7309 mv $tmp/out $tmp/in
7310 ' >>$CONFIG_STATUS
7311 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7312 rm -f conftest.undefs
7313 mv conftest.tail conftest.undefs
7314 done
7315 rm -f conftest.undefs
7316
7317 cat >>$CONFIG_STATUS <<\_ACEOF
7318 # Let's still pretend it is `configure' which instantiates (i.e., don't
7319 # use $as_me), people would be surprised to read:
7320 # /* config.h. Generated by config.status. */
7321 if test x"$ac_file" = x-; then
7322 echo "/* Generated by configure. */" >$tmp/config.h
7323 else
7324 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7325 fi
7326 cat $tmp/in >>$tmp/config.h
7327 rm -f $tmp/in
7328 if test x"$ac_file" != x-; then
7329 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7330 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7331 echo "$as_me: $ac_file is unchanged" >&6;}
7332 else
7333 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7334 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7335 X"$ac_file" : 'X\(//\)[^/]' \| \
7336 X"$ac_file" : 'X\(//\)$' \| \
7337 X"$ac_file" : 'X\(/\)' \| \
7338 . : '\(.\)' 2>/dev/null ||
7339 echo X"$ac_file" |
7340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7341 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7342 /^X\(\/\/\)$/{ s//\1/; q; }
7343 /^X\(\/\).*/{ s//\1/; q; }
7344 s/.*/./; q'`
7345 { if $as_mkdir_p; then
7346 mkdir -p "$ac_dir"
7347 else
7348 as_dir="$ac_dir"
7349 as_dirs=
7350 while test ! -d "$as_dir"; do
7351 as_dirs="$as_dir $as_dirs"
7352 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7353 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7354 X"$as_dir" : 'X\(//\)[^/]' \| \
7355 X"$as_dir" : 'X\(//\)$' \| \
7356 X"$as_dir" : 'X\(/\)' \| \
7357 . : '\(.\)' 2>/dev/null ||
7358 echo X"$as_dir" |
7359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7360 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7361 /^X\(\/\/\)$/{ s//\1/; q; }
7362 /^X\(\/\).*/{ s//\1/; q; }
7363 s/.*/./; q'`
7364 done
7365 test ! -n "$as_dirs" || mkdir $as_dirs
7366 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7367 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7368 { (exit 1); exit 1; }; }; }
7369
7370 rm -f $ac_file
7371 mv $tmp/config.h $ac_file
7372 fi
7373 else
7374 cat $tmp/config.h
7375 rm -f $tmp/config.h
7376 fi
7377 done
7378 _ACEOF
7379
7380 cat >>$CONFIG_STATUS <<\_ACEOF
7381
7382 { (exit 0); exit 0; }
7383 _ACEOF
7384 chmod +x $CONFIG_STATUS
7385 ac_clean_files=$ac_clean_files_save
7386
7387
7388 # configure is writing to config.log, and then calls config.status.
7389 # config.status does its own redirection, appending to config.log.
7390 # Unfortunately, on DOS this fails, as config.log is still kept open
7391 # by configure, so config.status won't be able to write to it; its
7392 # output is simply discarded. So we exec the FD to /dev/null,
7393 # effectively closing config.log, so it can be properly (re)opened and
7394 # appended to by config.status. When coming back to configure, we
7395 # need to make the FD available again.
7396 if test "$no_create" != yes; then
7397 ac_cs_success=:
7398 ac_config_status_args=
7399 test "$silent" = yes &&
7400 ac_config_status_args="$ac_config_status_args --quiet"
7401 exec 5>/dev/null
7402 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7403 exec 5>>config.log
7404 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7405 # would make configure fail if this is the last instruction.
7406 $ac_cs_success || { (exit 1); exit 1; }
7407 fi
7408