]> jfr.im git - irc/quakenet/snircd.git/blob - configure
revert last commit so we can try again :)
[irc/quakenet/snircd.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="ircd/ircd.c"
275 ac_default_prefix=$HOME
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP AWK SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S RMPROG SHPROG LEX LEXLIB LEX_OUTPUT_ROOT YACC ENGINE_C INSTALL_RULE SYMLINK IRCDMODE IRCDOWN IRCDGRP DPATH LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
368 case $ac_option in
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
374
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
379
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
395
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
404
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
437
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
442
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
506
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
513
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
520
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
568
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
586
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
599
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
619
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
626
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
630 ;;
631
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
641
642 *)
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 ;;
649
650 esac
651 done
652
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
673 do
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
697 fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726 else
727 ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
736 fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
832
833 cat <<\_ACEOF
834
835 System types:
836 --build=BUILD configure for building on BUILD [guessed]
837 --host=HOST cross-compile to build programs to run on HOST [BUILD]
838 _ACEOF
839 fi
840
841 if test -n "$ac_init_help"; then
842
843 cat <<\_ACEOF
844
845 Optional Features:
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848 --enable-poll Force poll to be used regardless of whether or not
849 it is a system call
850 --enable-debug Turn on debugging mode
851 --disable-asserts Disable assertion checking
852 --enable-profile Enable profiling support (add -pg to CFLAGS and LDFLAGS)
853 --enable-pedantic Enable pedantic warnings (add -pedantic to CFLAGS)
854 --enable-warnings Enable warnings (add -Wall to CFLAGS)
855 --disable-inlines Disable inlining for a few critical functions
856 --disable-devpoll Disable the /dev/poll-based engine
857 --disable-kqueue Disable the kqueue-based engine
858 --disable-epoll Disable the epoll-based engine
859
860 Optional Packages:
861 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
862 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
863 --with-leak-detect Turn on the leak detector(requires patched boehm)
864 --without-ipv6 disable IPv6 support (default is autodetect)
865 --with-symlink=name Name to give the symlink; if name is "no," no
866 symlink will be created.
867 --with-mode=mode Permissions (in octal) to give the binary
868 --with-owner=owner Specify owner of the installed binary
869 --with-group=group Specify group owner of the installed binary
870 --with-domain=domain Domain name to use in local statistics gathering
871 --with-chroot=dir Specify that the server will be operated under
872 a different root directory given by dir. See
873 doc/readme.chroot for more information.
874 --with-dpath=dir Directory for all server data files
875 --with-cpath=file Set server configuration file
876 --with-lpath=file Set the debugging log file
877 --with-maxcon=maxcon Maximum number of connections server will accept
878
879 Some influential environment variables:
880 CC C compiler command
881 CFLAGS C compiler flags
882 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
883 nonstandard directory <lib dir>
884 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
885 headers in a nonstandard directory <include dir>
886 CPP C preprocessor
887
888 Use these variables to override the choices made by `configure' or to help
889 it to find libraries and programs with nonstandard names/locations.
890
891 _ACEOF
892 fi
893
894 if test "$ac_init_help" = "recursive"; then
895 # If there are subdirs, report their specific --help.
896 ac_popdir=`pwd`
897 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
898 test -d $ac_dir || continue
899 ac_builddir=.
900
901 if test "$ac_dir" != .; then
902 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
903 # A "../" for each directory in $ac_dir_suffix.
904 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
905 else
906 ac_dir_suffix= ac_top_builddir=
907 fi
908
909 case $srcdir in
910 .) # No --srcdir option. We are building in place.
911 ac_srcdir=.
912 if test -z "$ac_top_builddir"; then
913 ac_top_srcdir=.
914 else
915 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
916 fi ;;
917 [\\/]* | ?:[\\/]* ) # Absolute path.
918 ac_srcdir=$srcdir$ac_dir_suffix;
919 ac_top_srcdir=$srcdir ;;
920 *) # Relative path.
921 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922 ac_top_srcdir=$ac_top_builddir$srcdir ;;
923 esac
924
925 # Do not use `cd foo && pwd` to compute absolute paths, because
926 # the directories may not exist.
927 case `pwd` in
928 .) ac_abs_builddir="$ac_dir";;
929 *)
930 case "$ac_dir" in
931 .) ac_abs_builddir=`pwd`;;
932 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
933 *) ac_abs_builddir=`pwd`/"$ac_dir";;
934 esac;;
935 esac
936 case $ac_abs_builddir in
937 .) ac_abs_top_builddir=${ac_top_builddir}.;;
938 *)
939 case ${ac_top_builddir}. in
940 .) ac_abs_top_builddir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
942 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
943 esac;;
944 esac
945 case $ac_abs_builddir in
946 .) ac_abs_srcdir=$ac_srcdir;;
947 *)
948 case $ac_srcdir in
949 .) ac_abs_srcdir=$ac_abs_builddir;;
950 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
951 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
952 esac;;
953 esac
954 case $ac_abs_builddir in
955 .) ac_abs_top_srcdir=$ac_top_srcdir;;
956 *)
957 case $ac_top_srcdir in
958 .) ac_abs_top_srcdir=$ac_abs_builddir;;
959 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
960 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
961 esac;;
962 esac
963
964 cd $ac_dir
965 # Check for guested configure; otherwise get Cygnus style configure.
966 if test -f $ac_srcdir/configure.gnu; then
967 echo
968 $SHELL $ac_srcdir/configure.gnu --help=recursive
969 elif test -f $ac_srcdir/configure; then
970 echo
971 $SHELL $ac_srcdir/configure --help=recursive
972 elif test -f $ac_srcdir/configure.ac ||
973 test -f $ac_srcdir/configure.in; then
974 echo
975 $ac_configure --help
976 else
977 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
978 fi
979 cd "$ac_popdir"
980 done
981 fi
982
983 test -n "$ac_init_help" && exit 0
984 if $ac_init_version; then
985 cat <<\_ACEOF
986
987 Copyright (C) 2003 Free Software Foundation, Inc.
988 This configure script is free software; the Free Software Foundation
989 gives unlimited permission to copy, distribute and modify it.
990 _ACEOF
991 exit 0
992 fi
993 exec 5>config.log
994 cat >&5 <<_ACEOF
995 This file contains any messages produced by compilers while
996 running configure, to aid debugging if configure makes a mistake.
997
998 It was created by $as_me, which was
999 generated by GNU Autoconf 2.59. Invocation command line was
1000
1001 $ $0 $@
1002
1003 _ACEOF
1004 {
1005 cat <<_ASUNAME
1006 ## --------- ##
1007 ## Platform. ##
1008 ## --------- ##
1009
1010 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1011 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1012 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1013 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1014 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1015
1016 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1017 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1018
1019 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1020 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1021 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1022 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1023 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1024 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1025 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1026
1027 _ASUNAME
1028
1029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1030 for as_dir in $PATH
1031 do
1032 IFS=$as_save_IFS
1033 test -z "$as_dir" && as_dir=.
1034 echo "PATH: $as_dir"
1035 done
1036
1037 } >&5
1038
1039 cat >&5 <<_ACEOF
1040
1041
1042 ## ----------- ##
1043 ## Core tests. ##
1044 ## ----------- ##
1045
1046 _ACEOF
1047
1048
1049 # Keep a trace of the command line.
1050 # Strip out --no-create and --no-recursion so they do not pile up.
1051 # Strip out --silent because we don't want to record it for future runs.
1052 # Also quote any args containing shell meta-characters.
1053 # Make two passes to allow for proper duplicate-argument suppression.
1054 ac_configure_args=
1055 ac_configure_args0=
1056 ac_configure_args1=
1057 ac_sep=
1058 ac_must_keep_next=false
1059 for ac_pass in 1 2
1060 do
1061 for ac_arg
1062 do
1063 case $ac_arg in
1064 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066 | -silent | --silent | --silen | --sile | --sil)
1067 continue ;;
1068 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1069 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1070 esac
1071 case $ac_pass in
1072 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1073 2)
1074 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1075 if test $ac_must_keep_next = true; then
1076 ac_must_keep_next=false # Got value, back to normal.
1077 else
1078 case $ac_arg in
1079 *=* | --config-cache | -C | -disable-* | --disable-* \
1080 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1081 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1082 | -with-* | --with-* | -without-* | --without-* | --x)
1083 case "$ac_configure_args0 " in
1084 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1085 esac
1086 ;;
1087 -* ) ac_must_keep_next=true ;;
1088 esac
1089 fi
1090 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1091 # Get rid of the leading space.
1092 ac_sep=" "
1093 ;;
1094 esac
1095 done
1096 done
1097 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1098 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1099
1100 # When interrupted or exit'd, cleanup temporary files, and complete
1101 # config.log. We remove comments because anyway the quotes in there
1102 # would cause problems or look ugly.
1103 # WARNING: Be sure not to use single quotes in there, as some shells,
1104 # such as our DU 5.0 friend, will then `close' the trap.
1105 trap 'exit_status=$?
1106 # Save into config.log some information that might help in debugging.
1107 {
1108 echo
1109
1110 cat <<\_ASBOX
1111 ## ---------------- ##
1112 ## Cache variables. ##
1113 ## ---------------- ##
1114 _ASBOX
1115 echo
1116 # The following way of writing the cache mishandles newlines in values,
1117 {
1118 (set) 2>&1 |
1119 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1120 *ac_space=\ *)
1121 sed -n \
1122 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1124 ;;
1125 *)
1126 sed -n \
1127 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1128 ;;
1129 esac;
1130 }
1131 echo
1132
1133 cat <<\_ASBOX
1134 ## ----------------- ##
1135 ## Output variables. ##
1136 ## ----------------- ##
1137 _ASBOX
1138 echo
1139 for ac_var in $ac_subst_vars
1140 do
1141 eval ac_val=$`echo $ac_var`
1142 echo "$ac_var='"'"'$ac_val'"'"'"
1143 done | sort
1144 echo
1145
1146 if test -n "$ac_subst_files"; then
1147 cat <<\_ASBOX
1148 ## ------------- ##
1149 ## Output files. ##
1150 ## ------------- ##
1151 _ASBOX
1152 echo
1153 for ac_var in $ac_subst_files
1154 do
1155 eval ac_val=$`echo $ac_var`
1156 echo "$ac_var='"'"'$ac_val'"'"'"
1157 done | sort
1158 echo
1159 fi
1160
1161 if test -s confdefs.h; then
1162 cat <<\_ASBOX
1163 ## ----------- ##
1164 ## confdefs.h. ##
1165 ## ----------- ##
1166 _ASBOX
1167 echo
1168 sed "/^$/d" confdefs.h | sort
1169 echo
1170 fi
1171 test "$ac_signal" != 0 &&
1172 echo "$as_me: caught signal $ac_signal"
1173 echo "$as_me: exit $exit_status"
1174 } >&5
1175 rm -f core *.core &&
1176 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1177 exit $exit_status
1178 ' 0
1179 for ac_signal in 1 2 13 15; do
1180 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1181 done
1182 ac_signal=0
1183
1184 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1185 rm -rf conftest* confdefs.h
1186 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1187 echo >confdefs.h
1188
1189 # Predefined preprocessor variables.
1190
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_NAME "$PACKAGE_NAME"
1193 _ACEOF
1194
1195
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1198 _ACEOF
1199
1200
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1203 _ACEOF
1204
1205
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_STRING "$PACKAGE_STRING"
1208 _ACEOF
1209
1210
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1213 _ACEOF
1214
1215
1216 # Let the site file select an alternate cache file if it wants to.
1217 # Prefer explicitly selected file to automatically selected ones.
1218 if test -z "$CONFIG_SITE"; then
1219 if test "x$prefix" != xNONE; then
1220 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1221 else
1222 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1223 fi
1224 fi
1225 for ac_site_file in $CONFIG_SITE; do
1226 if test -r "$ac_site_file"; then
1227 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1228 echo "$as_me: loading site script $ac_site_file" >&6;}
1229 sed 's/^/| /' "$ac_site_file" >&5
1230 . "$ac_site_file"
1231 fi
1232 done
1233
1234 if test -r "$cache_file"; then
1235 # Some versions of bash will fail to source /dev/null (special
1236 # files actually), so we avoid doing that.
1237 if test -f "$cache_file"; then
1238 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1239 echo "$as_me: loading cache $cache_file" >&6;}
1240 case $cache_file in
1241 [\\/]* | ?:[\\/]* ) . $cache_file;;
1242 *) . ./$cache_file;;
1243 esac
1244 fi
1245 else
1246 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1247 echo "$as_me: creating cache $cache_file" >&6;}
1248 >$cache_file
1249 fi
1250
1251 # Check that the precious variables saved in the cache have kept the same
1252 # value.
1253 ac_cache_corrupted=false
1254 for ac_var in `(set) 2>&1 |
1255 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1256 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1257 eval ac_new_set=\$ac_env_${ac_var}_set
1258 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1259 eval ac_new_val="\$ac_env_${ac_var}_value"
1260 case $ac_old_set,$ac_new_set in
1261 set,)
1262 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1263 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1264 ac_cache_corrupted=: ;;
1265 ,set)
1266 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1267 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1268 ac_cache_corrupted=: ;;
1269 ,);;
1270 *)
1271 if test "x$ac_old_val" != "x$ac_new_val"; then
1272 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1273 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1274 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1275 echo "$as_me: former value: $ac_old_val" >&2;}
1276 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1277 echo "$as_me: current value: $ac_new_val" >&2;}
1278 ac_cache_corrupted=:
1279 fi;;
1280 esac
1281 # Pass precious variables to config.status.
1282 if test "$ac_new_set" = set; then
1283 case $ac_new_val in
1284 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1285 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1286 *) ac_arg=$ac_var=$ac_new_val ;;
1287 esac
1288 case " $ac_configure_args " in
1289 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1290 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1291 esac
1292 fi
1293 done
1294 if $ac_cache_corrupted; then
1295 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1296 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1297 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1298 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1299 { (exit 1); exit 1; }; }
1300 fi
1301
1302 ac_ext=c
1303 ac_cpp='$CPP $CPPFLAGS'
1304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328 echo "$as_me:$LINENO: checking for installation prefix" >&5
1329 echo $ECHO_N "checking for installation prefix... $ECHO_C" >&6
1330 if test "${unet_cv_prefix+set}" = set; then
1331 echo $ECHO_N "(cached) $ECHO_C" >&6
1332 else
1333 unet_cv_prefix=$HOME
1334 fi
1335
1336 if test x"$prefix" != xNONE; then
1337 unet_cv_prefix=$prefix
1338 fi
1339 echo "$as_me:$LINENO: result: $unet_cv_prefix" >&5
1340 echo "${ECHO_T}$unet_cv_prefix" >&6
1341 ac_default_prefix=$unet_cv_prefix
1342
1343 ac_config_headers="$ac_config_headers config.h"
1344
1345
1346
1347
1348 ac_aux_dir=
1349 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1350 if test -f $ac_dir/install-sh; then
1351 ac_aux_dir=$ac_dir
1352 ac_install_sh="$ac_aux_dir/install-sh -c"
1353 break
1354 elif test -f $ac_dir/install.sh; then
1355 ac_aux_dir=$ac_dir
1356 ac_install_sh="$ac_aux_dir/install.sh -c"
1357 break
1358 elif test -f $ac_dir/shtool; then
1359 ac_aux_dir=$ac_dir
1360 ac_install_sh="$ac_aux_dir/shtool install -c"
1361 break
1362 fi
1363 done
1364 if test -z "$ac_aux_dir"; then
1365 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1366 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1367 { (exit 1); exit 1; }; }
1368 fi
1369 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1370 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1371 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1372
1373 # Make sure we can run config.sub.
1374 $ac_config_sub sun4 >/dev/null 2>&1 ||
1375 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1376 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1377 { (exit 1); exit 1; }; }
1378
1379 echo "$as_me:$LINENO: checking build system type" >&5
1380 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1381 if test "${ac_cv_build+set}" = set; then
1382 echo $ECHO_N "(cached) $ECHO_C" >&6
1383 else
1384 ac_cv_build_alias=$build_alias
1385 test -z "$ac_cv_build_alias" &&
1386 ac_cv_build_alias=`$ac_config_guess`
1387 test -z "$ac_cv_build_alias" &&
1388 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1389 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1390 { (exit 1); exit 1; }; }
1391 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1392 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1393 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1394 { (exit 1); exit 1; }; }
1395
1396 fi
1397 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1398 echo "${ECHO_T}$ac_cv_build" >&6
1399 build=$ac_cv_build
1400 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1401 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1402 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1403
1404
1405 echo "$as_me:$LINENO: checking host system type" >&5
1406 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1407 if test "${ac_cv_host+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1409 else
1410 ac_cv_host_alias=$host_alias
1411 test -z "$ac_cv_host_alias" &&
1412 ac_cv_host_alias=$ac_cv_build_alias
1413 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1414 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1415 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1416 { (exit 1); exit 1; }; }
1417
1418 fi
1419 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1420 echo "${ECHO_T}$ac_cv_host" >&6
1421 host=$ac_cv_host
1422 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1423 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1424 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1425
1426
1427
1428 ac_ext=c
1429 ac_cpp='$CPP $CPPFLAGS'
1430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1433 if test -n "$ac_tool_prefix"; then
1434 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1435 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1436 echo "$as_me:$LINENO: checking for $ac_word" >&5
1437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1438 if test "${ac_cv_prog_CC+set}" = set; then
1439 echo $ECHO_N "(cached) $ECHO_C" >&6
1440 else
1441 if test -n "$CC"; then
1442 ac_cv_prog_CC="$CC" # Let the user override the test.
1443 else
1444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1445 for as_dir in $PATH
1446 do
1447 IFS=$as_save_IFS
1448 test -z "$as_dir" && as_dir=.
1449 for ac_exec_ext in '' $ac_executable_extensions; do
1450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1451 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1453 break 2
1454 fi
1455 done
1456 done
1457
1458 fi
1459 fi
1460 CC=$ac_cv_prog_CC
1461 if test -n "$CC"; then
1462 echo "$as_me:$LINENO: result: $CC" >&5
1463 echo "${ECHO_T}$CC" >&6
1464 else
1465 echo "$as_me:$LINENO: result: no" >&5
1466 echo "${ECHO_T}no" >&6
1467 fi
1468
1469 fi
1470 if test -z "$ac_cv_prog_CC"; then
1471 ac_ct_CC=$CC
1472 # Extract the first word of "gcc", so it can be a program name with args.
1473 set dummy gcc; ac_word=$2
1474 echo "$as_me:$LINENO: checking for $ac_word" >&5
1475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1476 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1477 echo $ECHO_N "(cached) $ECHO_C" >&6
1478 else
1479 if test -n "$ac_ct_CC"; then
1480 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1481 else
1482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483 for as_dir in $PATH
1484 do
1485 IFS=$as_save_IFS
1486 test -z "$as_dir" && as_dir=.
1487 for ac_exec_ext in '' $ac_executable_extensions; do
1488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1489 ac_cv_prog_ac_ct_CC="gcc"
1490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1491 break 2
1492 fi
1493 done
1494 done
1495
1496 fi
1497 fi
1498 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1499 if test -n "$ac_ct_CC"; then
1500 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1501 echo "${ECHO_T}$ac_ct_CC" >&6
1502 else
1503 echo "$as_me:$LINENO: result: no" >&5
1504 echo "${ECHO_T}no" >&6
1505 fi
1506
1507 CC=$ac_ct_CC
1508 else
1509 CC="$ac_cv_prog_CC"
1510 fi
1511
1512 if test -z "$CC"; then
1513 if test -n "$ac_tool_prefix"; then
1514 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1515 set dummy ${ac_tool_prefix}cc; ac_word=$2
1516 echo "$as_me:$LINENO: checking for $ac_word" >&5
1517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1518 if test "${ac_cv_prog_CC+set}" = set; then
1519 echo $ECHO_N "(cached) $ECHO_C" >&6
1520 else
1521 if test -n "$CC"; then
1522 ac_cv_prog_CC="$CC" # Let the user override the test.
1523 else
1524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1525 for as_dir in $PATH
1526 do
1527 IFS=$as_save_IFS
1528 test -z "$as_dir" && as_dir=.
1529 for ac_exec_ext in '' $ac_executable_extensions; do
1530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1531 ac_cv_prog_CC="${ac_tool_prefix}cc"
1532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1533 break 2
1534 fi
1535 done
1536 done
1537
1538 fi
1539 fi
1540 CC=$ac_cv_prog_CC
1541 if test -n "$CC"; then
1542 echo "$as_me:$LINENO: result: $CC" >&5
1543 echo "${ECHO_T}$CC" >&6
1544 else
1545 echo "$as_me:$LINENO: result: no" >&5
1546 echo "${ECHO_T}no" >&6
1547 fi
1548
1549 fi
1550 if test -z "$ac_cv_prog_CC"; then
1551 ac_ct_CC=$CC
1552 # Extract the first word of "cc", so it can be a program name with args.
1553 set dummy cc; ac_word=$2
1554 echo "$as_me:$LINENO: checking for $ac_word" >&5
1555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1556 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1557 echo $ECHO_N "(cached) $ECHO_C" >&6
1558 else
1559 if test -n "$ac_ct_CC"; then
1560 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1561 else
1562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1563 for as_dir in $PATH
1564 do
1565 IFS=$as_save_IFS
1566 test -z "$as_dir" && as_dir=.
1567 for ac_exec_ext in '' $ac_executable_extensions; do
1568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1569 ac_cv_prog_ac_ct_CC="cc"
1570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1571 break 2
1572 fi
1573 done
1574 done
1575
1576 fi
1577 fi
1578 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1579 if test -n "$ac_ct_CC"; then
1580 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1581 echo "${ECHO_T}$ac_ct_CC" >&6
1582 else
1583 echo "$as_me:$LINENO: result: no" >&5
1584 echo "${ECHO_T}no" >&6
1585 fi
1586
1587 CC=$ac_ct_CC
1588 else
1589 CC="$ac_cv_prog_CC"
1590 fi
1591
1592 fi
1593 if test -z "$CC"; then
1594 # Extract the first word of "cc", so it can be a program name with args.
1595 set dummy cc; ac_word=$2
1596 echo "$as_me:$LINENO: checking for $ac_word" >&5
1597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1598 if test "${ac_cv_prog_CC+set}" = set; then
1599 echo $ECHO_N "(cached) $ECHO_C" >&6
1600 else
1601 if test -n "$CC"; then
1602 ac_cv_prog_CC="$CC" # Let the user override the test.
1603 else
1604 ac_prog_rejected=no
1605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606 for as_dir in $PATH
1607 do
1608 IFS=$as_save_IFS
1609 test -z "$as_dir" && as_dir=.
1610 for ac_exec_ext in '' $ac_executable_extensions; do
1611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1612 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1613 ac_prog_rejected=yes
1614 continue
1615 fi
1616 ac_cv_prog_CC="cc"
1617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618 break 2
1619 fi
1620 done
1621 done
1622
1623 if test $ac_prog_rejected = yes; then
1624 # We found a bogon in the path, so make sure we never use it.
1625 set dummy $ac_cv_prog_CC
1626 shift
1627 if test $# != 0; then
1628 # We chose a different compiler from the bogus one.
1629 # However, it has the same basename, so the bogon will be chosen
1630 # first if we set CC to just the basename; use the full file name.
1631 shift
1632 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1633 fi
1634 fi
1635 fi
1636 fi
1637 CC=$ac_cv_prog_CC
1638 if test -n "$CC"; then
1639 echo "$as_me:$LINENO: result: $CC" >&5
1640 echo "${ECHO_T}$CC" >&6
1641 else
1642 echo "$as_me:$LINENO: result: no" >&5
1643 echo "${ECHO_T}no" >&6
1644 fi
1645
1646 fi
1647 if test -z "$CC"; then
1648 if test -n "$ac_tool_prefix"; then
1649 for ac_prog in cl
1650 do
1651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1653 echo "$as_me:$LINENO: checking for $ac_word" >&5
1654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1655 if test "${ac_cv_prog_CC+set}" = set; then
1656 echo $ECHO_N "(cached) $ECHO_C" >&6
1657 else
1658 if test -n "$CC"; then
1659 ac_cv_prog_CC="$CC" # Let the user override the test.
1660 else
1661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1662 for as_dir in $PATH
1663 do
1664 IFS=$as_save_IFS
1665 test -z "$as_dir" && as_dir=.
1666 for ac_exec_ext in '' $ac_executable_extensions; do
1667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1668 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1670 break 2
1671 fi
1672 done
1673 done
1674
1675 fi
1676 fi
1677 CC=$ac_cv_prog_CC
1678 if test -n "$CC"; then
1679 echo "$as_me:$LINENO: result: $CC" >&5
1680 echo "${ECHO_T}$CC" >&6
1681 else
1682 echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1684 fi
1685
1686 test -n "$CC" && break
1687 done
1688 fi
1689 if test -z "$CC"; then
1690 ac_ct_CC=$CC
1691 for ac_prog in cl
1692 do
1693 # Extract the first word of "$ac_prog", so it can be a program name with args.
1694 set dummy $ac_prog; ac_word=$2
1695 echo "$as_me:$LINENO: checking for $ac_word" >&5
1696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1697 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1698 echo $ECHO_N "(cached) $ECHO_C" >&6
1699 else
1700 if test -n "$ac_ct_CC"; then
1701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1702 else
1703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704 for as_dir in $PATH
1705 do
1706 IFS=$as_save_IFS
1707 test -z "$as_dir" && as_dir=.
1708 for ac_exec_ext in '' $ac_executable_extensions; do
1709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1710 ac_cv_prog_ac_ct_CC="$ac_prog"
1711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1712 break 2
1713 fi
1714 done
1715 done
1716
1717 fi
1718 fi
1719 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1720 if test -n "$ac_ct_CC"; then
1721 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1722 echo "${ECHO_T}$ac_ct_CC" >&6
1723 else
1724 echo "$as_me:$LINENO: result: no" >&5
1725 echo "${ECHO_T}no" >&6
1726 fi
1727
1728 test -n "$ac_ct_CC" && break
1729 done
1730
1731 CC=$ac_ct_CC
1732 fi
1733
1734 fi
1735
1736
1737 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1738 See \`config.log' for more details." >&5
1739 echo "$as_me: error: no acceptable C compiler found in \$PATH
1740 See \`config.log' for more details." >&2;}
1741 { (exit 1); exit 1; }; }
1742
1743 # Provide some information about the compiler.
1744 echo "$as_me:$LINENO:" \
1745 "checking for C compiler version" >&5
1746 ac_compiler=`set X $ac_compile; echo $2`
1747 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1748 (eval $ac_compiler --version </dev/null >&5) 2>&5
1749 ac_status=$?
1750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1751 (exit $ac_status); }
1752 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1753 (eval $ac_compiler -v </dev/null >&5) 2>&5
1754 ac_status=$?
1755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1756 (exit $ac_status); }
1757 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1758 (eval $ac_compiler -V </dev/null >&5) 2>&5
1759 ac_status=$?
1760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761 (exit $ac_status); }
1762
1763 cat >conftest.$ac_ext <<_ACEOF
1764 /* confdefs.h. */
1765 _ACEOF
1766 cat confdefs.h >>conftest.$ac_ext
1767 cat >>conftest.$ac_ext <<_ACEOF
1768 /* end confdefs.h. */
1769
1770 int
1771 main ()
1772 {
1773
1774 ;
1775 return 0;
1776 }
1777 _ACEOF
1778 ac_clean_files_save=$ac_clean_files
1779 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1780 # Try to create an executable without -o first, disregard a.out.
1781 # It will help us diagnose broken compilers, and finding out an intuition
1782 # of exeext.
1783 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1784 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1785 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1786 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1787 (eval $ac_link_default) 2>&5
1788 ac_status=$?
1789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790 (exit $ac_status); }; then
1791 # Find the output, starting from the most likely. This scheme is
1792 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1793 # resort.
1794
1795 # Be careful to initialize this variable, since it used to be cached.
1796 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1797 ac_cv_exeext=
1798 # b.out is created by i960 compilers.
1799 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1800 do
1801 test -f "$ac_file" || continue
1802 case $ac_file in
1803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1804 ;;
1805 conftest.$ac_ext )
1806 # This is the source file.
1807 ;;
1808 [ab].out )
1809 # We found the default executable, but exeext='' is most
1810 # certainly right.
1811 break;;
1812 *.* )
1813 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1814 # FIXME: I believe we export ac_cv_exeext for Libtool,
1815 # but it would be cool to find out if it's true. Does anybody
1816 # maintain Libtool? --akim.
1817 export ac_cv_exeext
1818 break;;
1819 * )
1820 break;;
1821 esac
1822 done
1823 else
1824 echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1826
1827 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1828 See \`config.log' for more details." >&5
1829 echo "$as_me: error: C compiler cannot create executables
1830 See \`config.log' for more details." >&2;}
1831 { (exit 77); exit 77; }; }
1832 fi
1833
1834 ac_exeext=$ac_cv_exeext
1835 echo "$as_me:$LINENO: result: $ac_file" >&5
1836 echo "${ECHO_T}$ac_file" >&6
1837
1838 # Check the compiler produces executables we can run. If not, either
1839 # the compiler is broken, or we cross compile.
1840 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1841 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1842 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1843 # If not cross compiling, check that we can run a simple program.
1844 if test "$cross_compiling" != yes; then
1845 if { ac_try='./$ac_file'
1846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1847 (eval $ac_try) 2>&5
1848 ac_status=$?
1849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1850 (exit $ac_status); }; }; then
1851 cross_compiling=no
1852 else
1853 if test "$cross_compiling" = maybe; then
1854 cross_compiling=yes
1855 else
1856 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1857 If you meant to cross compile, use \`--host'.
1858 See \`config.log' for more details." >&5
1859 echo "$as_me: error: cannot run C compiled programs.
1860 If you meant to cross compile, use \`--host'.
1861 See \`config.log' for more details." >&2;}
1862 { (exit 1); exit 1; }; }
1863 fi
1864 fi
1865 fi
1866 echo "$as_me:$LINENO: result: yes" >&5
1867 echo "${ECHO_T}yes" >&6
1868
1869 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1870 ac_clean_files=$ac_clean_files_save
1871 # Check the compiler produces executables we can run. If not, either
1872 # the compiler is broken, or we cross compile.
1873 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1874 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1875 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1876 echo "${ECHO_T}$cross_compiling" >&6
1877
1878 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1879 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1881 (eval $ac_link) 2>&5
1882 ac_status=$?
1883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1884 (exit $ac_status); }; then
1885 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1886 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1887 # work properly (i.e., refer to `conftest.exe'), while it won't with
1888 # `rm'.
1889 for ac_file in conftest.exe conftest conftest.*; do
1890 test -f "$ac_file" || continue
1891 case $ac_file in
1892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1893 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1894 export ac_cv_exeext
1895 break;;
1896 * ) break;;
1897 esac
1898 done
1899 else
1900 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1901 See \`config.log' for more details." >&5
1902 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1903 See \`config.log' for more details." >&2;}
1904 { (exit 1); exit 1; }; }
1905 fi
1906
1907 rm -f conftest$ac_cv_exeext
1908 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1909 echo "${ECHO_T}$ac_cv_exeext" >&6
1910
1911 rm -f conftest.$ac_ext
1912 EXEEXT=$ac_cv_exeext
1913 ac_exeext=$EXEEXT
1914 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1915 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1916 if test "${ac_cv_objext+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" >&6
1918 else
1919 cat >conftest.$ac_ext <<_ACEOF
1920 /* confdefs.h. */
1921 _ACEOF
1922 cat confdefs.h >>conftest.$ac_ext
1923 cat >>conftest.$ac_ext <<_ACEOF
1924 /* end confdefs.h. */
1925
1926 int
1927 main ()
1928 {
1929
1930 ;
1931 return 0;
1932 }
1933 _ACEOF
1934 rm -f conftest.o conftest.obj
1935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1936 (eval $ac_compile) 2>&5
1937 ac_status=$?
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); }; then
1940 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1941 case $ac_file in
1942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1943 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1944 break;;
1945 esac
1946 done
1947 else
1948 echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1950
1951 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1952 See \`config.log' for more details." >&5
1953 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1954 See \`config.log' for more details." >&2;}
1955 { (exit 1); exit 1; }; }
1956 fi
1957
1958 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1959 fi
1960 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1961 echo "${ECHO_T}$ac_cv_objext" >&6
1962 OBJEXT=$ac_cv_objext
1963 ac_objext=$OBJEXT
1964 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1965 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1966 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1968 else
1969 cat >conftest.$ac_ext <<_ACEOF
1970 /* confdefs.h. */
1971 _ACEOF
1972 cat confdefs.h >>conftest.$ac_ext
1973 cat >>conftest.$ac_ext <<_ACEOF
1974 /* end confdefs.h. */
1975
1976 int
1977 main ()
1978 {
1979 #ifndef __GNUC__
1980 choke me
1981 #endif
1982
1983 ;
1984 return 0;
1985 }
1986 _ACEOF
1987 rm -f conftest.$ac_objext
1988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1989 (eval $ac_compile) 2>conftest.er1
1990 ac_status=$?
1991 grep -v '^ *+' conftest.er1 >conftest.err
1992 rm -f conftest.er1
1993 cat conftest.err >&5
1994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995 (exit $ac_status); } &&
1996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1998 (eval $ac_try) 2>&5
1999 ac_status=$?
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); }; } &&
2002 { ac_try='test -s conftest.$ac_objext'
2003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2004 (eval $ac_try) 2>&5
2005 ac_status=$?
2006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007 (exit $ac_status); }; }; then
2008 ac_compiler_gnu=yes
2009 else
2010 echo "$as_me: failed program was:" >&5
2011 sed 's/^/| /' conftest.$ac_ext >&5
2012
2013 ac_compiler_gnu=no
2014 fi
2015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2016 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2017
2018 fi
2019 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2020 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2021 GCC=`test $ac_compiler_gnu = yes && echo yes`
2022 ac_test_CFLAGS=${CFLAGS+set}
2023 ac_save_CFLAGS=$CFLAGS
2024 CFLAGS="-g"
2025 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2026 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2027 if test "${ac_cv_prog_cc_g+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2029 else
2030 cat >conftest.$ac_ext <<_ACEOF
2031 /* confdefs.h. */
2032 _ACEOF
2033 cat confdefs.h >>conftest.$ac_ext
2034 cat >>conftest.$ac_ext <<_ACEOF
2035 /* end confdefs.h. */
2036
2037 int
2038 main ()
2039 {
2040
2041 ;
2042 return 0;
2043 }
2044 _ACEOF
2045 rm -f conftest.$ac_objext
2046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2047 (eval $ac_compile) 2>conftest.er1
2048 ac_status=$?
2049 grep -v '^ *+' conftest.er1 >conftest.err
2050 rm -f conftest.er1
2051 cat conftest.err >&5
2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053 (exit $ac_status); } &&
2054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2056 (eval $ac_try) 2>&5
2057 ac_status=$?
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); }; } &&
2060 { ac_try='test -s conftest.$ac_objext'
2061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062 (eval $ac_try) 2>&5
2063 ac_status=$?
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }; }; then
2066 ac_cv_prog_cc_g=yes
2067 else
2068 echo "$as_me: failed program was:" >&5
2069 sed 's/^/| /' conftest.$ac_ext >&5
2070
2071 ac_cv_prog_cc_g=no
2072 fi
2073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2074 fi
2075 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2076 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2077 if test "$ac_test_CFLAGS" = set; then
2078 CFLAGS=$ac_save_CFLAGS
2079 elif test $ac_cv_prog_cc_g = yes; then
2080 if test "$GCC" = yes; then
2081 CFLAGS="-g -O2"
2082 else
2083 CFLAGS="-g"
2084 fi
2085 else
2086 if test "$GCC" = yes; then
2087 CFLAGS="-O2"
2088 else
2089 CFLAGS=
2090 fi
2091 fi
2092 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2093 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2094 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2095 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 else
2097 ac_cv_prog_cc_stdc=no
2098 ac_save_CC=$CC
2099 cat >conftest.$ac_ext <<_ACEOF
2100 /* confdefs.h. */
2101 _ACEOF
2102 cat confdefs.h >>conftest.$ac_ext
2103 cat >>conftest.$ac_ext <<_ACEOF
2104 /* end confdefs.h. */
2105 #include <stdarg.h>
2106 #include <stdio.h>
2107 #include <sys/types.h>
2108 #include <sys/stat.h>
2109 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2110 struct buf { int x; };
2111 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2112 static char *e (p, i)
2113 char **p;
2114 int i;
2115 {
2116 return p[i];
2117 }
2118 static char *f (char * (*g) (char **, int), char **p, ...)
2119 {
2120 char *s;
2121 va_list v;
2122 va_start (v,p);
2123 s = g (p, va_arg (v,int));
2124 va_end (v);
2125 return s;
2126 }
2127
2128 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2129 function prototypes and stuff, but not '\xHH' hex character constants.
2130 These don't provoke an error unfortunately, instead are silently treated
2131 as 'x'. The following induces an error, until -std1 is added to get
2132 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2133 array size at least. It's necessary to write '\x00'==0 to get something
2134 that's true only with -std1. */
2135 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2136
2137 int test (int i, double x);
2138 struct s1 {int (*f) (int a);};
2139 struct s2 {int (*f) (double a);};
2140 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2141 int argc;
2142 char **argv;
2143 int
2144 main ()
2145 {
2146 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2147 ;
2148 return 0;
2149 }
2150 _ACEOF
2151 # Don't try gcc -ansi; that turns off useful extensions and
2152 # breaks some systems' header files.
2153 # AIX -qlanglvl=ansi
2154 # Ultrix and OSF/1 -std1
2155 # HP-UX 10.20 and later -Ae
2156 # HP-UX older versions -Aa -D_HPUX_SOURCE
2157 # SVR4 -Xc -D__EXTENSIONS__
2158 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2159 do
2160 CC="$ac_save_CC $ac_arg"
2161 rm -f conftest.$ac_objext
2162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2163 (eval $ac_compile) 2>conftest.er1
2164 ac_status=$?
2165 grep -v '^ *+' conftest.er1 >conftest.err
2166 rm -f conftest.er1
2167 cat conftest.err >&5
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); } &&
2170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172 (eval $ac_try) 2>&5
2173 ac_status=$?
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; } &&
2176 { ac_try='test -s conftest.$ac_objext'
2177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178 (eval $ac_try) 2>&5
2179 ac_status=$?
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; }; then
2182 ac_cv_prog_cc_stdc=$ac_arg
2183 break
2184 else
2185 echo "$as_me: failed program was:" >&5
2186 sed 's/^/| /' conftest.$ac_ext >&5
2187
2188 fi
2189 rm -f conftest.err conftest.$ac_objext
2190 done
2191 rm -f conftest.$ac_ext conftest.$ac_objext
2192 CC=$ac_save_CC
2193
2194 fi
2195
2196 case "x$ac_cv_prog_cc_stdc" in
2197 x|xno)
2198 echo "$as_me:$LINENO: result: none needed" >&5
2199 echo "${ECHO_T}none needed" >&6 ;;
2200 *)
2201 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2202 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2203 CC="$CC $ac_cv_prog_cc_stdc" ;;
2204 esac
2205
2206 # Some people use a C++ compiler to compile C. Since we use `exit',
2207 # in C++ we need to declare it. In case someone uses the same compiler
2208 # for both compiling C and C++ we need to have the C++ compiler decide
2209 # the declaration of exit, since it's the most demanding environment.
2210 cat >conftest.$ac_ext <<_ACEOF
2211 #ifndef __cplusplus
2212 choke me
2213 #endif
2214 _ACEOF
2215 rm -f conftest.$ac_objext
2216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2217 (eval $ac_compile) 2>conftest.er1
2218 ac_status=$?
2219 grep -v '^ *+' conftest.er1 >conftest.err
2220 rm -f conftest.er1
2221 cat conftest.err >&5
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); } &&
2224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226 (eval $ac_try) 2>&5
2227 ac_status=$?
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; } &&
2230 { ac_try='test -s conftest.$ac_objext'
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 (eval $ac_try) 2>&5
2233 ac_status=$?
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; }; then
2236 for ac_declaration in \
2237 '' \
2238 'extern "C" void std::exit (int) throw (); using std::exit;' \
2239 'extern "C" void std::exit (int); using std::exit;' \
2240 'extern "C" void exit (int) throw ();' \
2241 'extern "C" void exit (int);' \
2242 'void exit (int);'
2243 do
2244 cat >conftest.$ac_ext <<_ACEOF
2245 /* confdefs.h. */
2246 _ACEOF
2247 cat confdefs.h >>conftest.$ac_ext
2248 cat >>conftest.$ac_ext <<_ACEOF
2249 /* end confdefs.h. */
2250 $ac_declaration
2251 #include <stdlib.h>
2252 int
2253 main ()
2254 {
2255 exit (42);
2256 ;
2257 return 0;
2258 }
2259 _ACEOF
2260 rm -f conftest.$ac_objext
2261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2262 (eval $ac_compile) 2>conftest.er1
2263 ac_status=$?
2264 grep -v '^ *+' conftest.er1 >conftest.err
2265 rm -f conftest.er1
2266 cat conftest.err >&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); } &&
2269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271 (eval $ac_try) 2>&5
2272 ac_status=$?
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; } &&
2275 { ac_try='test -s conftest.$ac_objext'
2276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277 (eval $ac_try) 2>&5
2278 ac_status=$?
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; }; then
2281 :
2282 else
2283 echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2285
2286 continue
2287 fi
2288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2289 cat >conftest.$ac_ext <<_ACEOF
2290 /* confdefs.h. */
2291 _ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h. */
2295 $ac_declaration
2296 int
2297 main ()
2298 {
2299 exit (42);
2300 ;
2301 return 0;
2302 }
2303 _ACEOF
2304 rm -f conftest.$ac_objext
2305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2306 (eval $ac_compile) 2>conftest.er1
2307 ac_status=$?
2308 grep -v '^ *+' conftest.er1 >conftest.err
2309 rm -f conftest.er1
2310 cat conftest.err >&5
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); } &&
2313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315 (eval $ac_try) 2>&5
2316 ac_status=$?
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }; } &&
2319 { ac_try='test -s conftest.$ac_objext'
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 (eval $ac_try) 2>&5
2322 ac_status=$?
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; }; then
2325 break
2326 else
2327 echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2329
2330 fi
2331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2332 done
2333 rm -f conftest*
2334 if test -n "$ac_declaration"; then
2335 echo '#ifdef __cplusplus' >>confdefs.h
2336 echo $ac_declaration >>confdefs.h
2337 echo '#endif' >>confdefs.h
2338 fi
2339
2340 else
2341 echo "$as_me: failed program was:" >&5
2342 sed 's/^/| /' conftest.$ac_ext >&5
2343
2344 fi
2345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2346 ac_ext=c
2347 ac_cpp='$CPP $CPPFLAGS'
2348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2351
2352
2353 ac_ext=c
2354 ac_cpp='$CPP $CPPFLAGS'
2355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2358 if test -n "$ac_tool_prefix"; then
2359 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2360 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2361 echo "$as_me:$LINENO: checking for $ac_word" >&5
2362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2363 if test "${ac_cv_prog_CC+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 else
2366 if test -n "$CC"; then
2367 ac_cv_prog_CC="$CC" # Let the user override the test.
2368 else
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 for as_dir in $PATH
2371 do
2372 IFS=$as_save_IFS
2373 test -z "$as_dir" && as_dir=.
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2376 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2378 break 2
2379 fi
2380 done
2381 done
2382
2383 fi
2384 fi
2385 CC=$ac_cv_prog_CC
2386 if test -n "$CC"; then
2387 echo "$as_me:$LINENO: result: $CC" >&5
2388 echo "${ECHO_T}$CC" >&6
2389 else
2390 echo "$as_me:$LINENO: result: no" >&5
2391 echo "${ECHO_T}no" >&6
2392 fi
2393
2394 fi
2395 if test -z "$ac_cv_prog_CC"; then
2396 ac_ct_CC=$CC
2397 # Extract the first word of "gcc", so it can be a program name with args.
2398 set dummy gcc; ac_word=$2
2399 echo "$as_me:$LINENO: checking for $ac_word" >&5
2400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2401 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2402 echo $ECHO_N "(cached) $ECHO_C" >&6
2403 else
2404 if test -n "$ac_ct_CC"; then
2405 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2406 else
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408 for as_dir in $PATH
2409 do
2410 IFS=$as_save_IFS
2411 test -z "$as_dir" && as_dir=.
2412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2414 ac_cv_prog_ac_ct_CC="gcc"
2415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2416 break 2
2417 fi
2418 done
2419 done
2420
2421 fi
2422 fi
2423 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2424 if test -n "$ac_ct_CC"; then
2425 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2426 echo "${ECHO_T}$ac_ct_CC" >&6
2427 else
2428 echo "$as_me:$LINENO: result: no" >&5
2429 echo "${ECHO_T}no" >&6
2430 fi
2431
2432 CC=$ac_ct_CC
2433 else
2434 CC="$ac_cv_prog_CC"
2435 fi
2436
2437 if test -z "$CC"; then
2438 if test -n "$ac_tool_prefix"; then
2439 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2440 set dummy ${ac_tool_prefix}cc; ac_word=$2
2441 echo "$as_me:$LINENO: checking for $ac_word" >&5
2442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2443 if test "${ac_cv_prog_CC+set}" = set; then
2444 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 else
2446 if test -n "$CC"; then
2447 ac_cv_prog_CC="$CC" # Let the user override the test.
2448 else
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 for as_dir in $PATH
2451 do
2452 IFS=$as_save_IFS
2453 test -z "$as_dir" && as_dir=.
2454 for ac_exec_ext in '' $ac_executable_extensions; do
2455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2456 ac_cv_prog_CC="${ac_tool_prefix}cc"
2457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2458 break 2
2459 fi
2460 done
2461 done
2462
2463 fi
2464 fi
2465 CC=$ac_cv_prog_CC
2466 if test -n "$CC"; then
2467 echo "$as_me:$LINENO: result: $CC" >&5
2468 echo "${ECHO_T}$CC" >&6
2469 else
2470 echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6
2472 fi
2473
2474 fi
2475 if test -z "$ac_cv_prog_CC"; then
2476 ac_ct_CC=$CC
2477 # Extract the first word of "cc", so it can be a program name with args.
2478 set dummy cc; ac_word=$2
2479 echo "$as_me:$LINENO: checking for $ac_word" >&5
2480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2481 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2482 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 else
2484 if test -n "$ac_ct_CC"; then
2485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2486 else
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 for as_dir in $PATH
2489 do
2490 IFS=$as_save_IFS
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2494 ac_cv_prog_ac_ct_CC="cc"
2495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2496 break 2
2497 fi
2498 done
2499 done
2500
2501 fi
2502 fi
2503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2504 if test -n "$ac_ct_CC"; then
2505 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2506 echo "${ECHO_T}$ac_ct_CC" >&6
2507 else
2508 echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6
2510 fi
2511
2512 CC=$ac_ct_CC
2513 else
2514 CC="$ac_cv_prog_CC"
2515 fi
2516
2517 fi
2518 if test -z "$CC"; then
2519 # Extract the first word of "cc", so it can be a program name with args.
2520 set dummy cc; ac_word=$2
2521 echo "$as_me:$LINENO: checking for $ac_word" >&5
2522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2523 if test "${ac_cv_prog_CC+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2525 else
2526 if test -n "$CC"; then
2527 ac_cv_prog_CC="$CC" # Let the user override the test.
2528 else
2529 ac_prog_rejected=no
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2532 do
2533 IFS=$as_save_IFS
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2537 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2538 ac_prog_rejected=yes
2539 continue
2540 fi
2541 ac_cv_prog_CC="cc"
2542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2543 break 2
2544 fi
2545 done
2546 done
2547
2548 if test $ac_prog_rejected = yes; then
2549 # We found a bogon in the path, so make sure we never use it.
2550 set dummy $ac_cv_prog_CC
2551 shift
2552 if test $# != 0; then
2553 # We chose a different compiler from the bogus one.
2554 # However, it has the same basename, so the bogon will be chosen
2555 # first if we set CC to just the basename; use the full file name.
2556 shift
2557 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2558 fi
2559 fi
2560 fi
2561 fi
2562 CC=$ac_cv_prog_CC
2563 if test -n "$CC"; then
2564 echo "$as_me:$LINENO: result: $CC" >&5
2565 echo "${ECHO_T}$CC" >&6
2566 else
2567 echo "$as_me:$LINENO: result: no" >&5
2568 echo "${ECHO_T}no" >&6
2569 fi
2570
2571 fi
2572 if test -z "$CC"; then
2573 if test -n "$ac_tool_prefix"; then
2574 for ac_prog in cl
2575 do
2576 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2577 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2578 echo "$as_me:$LINENO: checking for $ac_word" >&5
2579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2580 if test "${ac_cv_prog_CC+set}" = set; then
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2582 else
2583 if test -n "$CC"; then
2584 ac_cv_prog_CC="$CC" # Let the user override the test.
2585 else
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 for as_dir in $PATH
2588 do
2589 IFS=$as_save_IFS
2590 test -z "$as_dir" && as_dir=.
2591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2593 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2595 break 2
2596 fi
2597 done
2598 done
2599
2600 fi
2601 fi
2602 CC=$ac_cv_prog_CC
2603 if test -n "$CC"; then
2604 echo "$as_me:$LINENO: result: $CC" >&5
2605 echo "${ECHO_T}$CC" >&6
2606 else
2607 echo "$as_me:$LINENO: result: no" >&5
2608 echo "${ECHO_T}no" >&6
2609 fi
2610
2611 test -n "$CC" && break
2612 done
2613 fi
2614 if test -z "$CC"; then
2615 ac_ct_CC=$CC
2616 for ac_prog in cl
2617 do
2618 # Extract the first word of "$ac_prog", so it can be a program name with args.
2619 set dummy $ac_prog; ac_word=$2
2620 echo "$as_me:$LINENO: checking for $ac_word" >&5
2621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2622 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2624 else
2625 if test -n "$ac_ct_CC"; then
2626 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2627 else
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 for as_dir in $PATH
2630 do
2631 IFS=$as_save_IFS
2632 test -z "$as_dir" && as_dir=.
2633 for ac_exec_ext in '' $ac_executable_extensions; do
2634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2635 ac_cv_prog_ac_ct_CC="$ac_prog"
2636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2637 break 2
2638 fi
2639 done
2640 done
2641
2642 fi
2643 fi
2644 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2645 if test -n "$ac_ct_CC"; then
2646 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2647 echo "${ECHO_T}$ac_ct_CC" >&6
2648 else
2649 echo "$as_me:$LINENO: result: no" >&5
2650 echo "${ECHO_T}no" >&6
2651 fi
2652
2653 test -n "$ac_ct_CC" && break
2654 done
2655
2656 CC=$ac_ct_CC
2657 fi
2658
2659 fi
2660
2661
2662 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2663 See \`config.log' for more details." >&5
2664 echo "$as_me: error: no acceptable C compiler found in \$PATH
2665 See \`config.log' for more details." >&2;}
2666 { (exit 1); exit 1; }; }
2667
2668 # Provide some information about the compiler.
2669 echo "$as_me:$LINENO:" \
2670 "checking for C compiler version" >&5
2671 ac_compiler=`set X $ac_compile; echo $2`
2672 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2673 (eval $ac_compiler --version </dev/null >&5) 2>&5
2674 ac_status=$?
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }
2677 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2678 (eval $ac_compiler -v </dev/null >&5) 2>&5
2679 ac_status=$?
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }
2682 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2683 (eval $ac_compiler -V </dev/null >&5) 2>&5
2684 ac_status=$?
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }
2687
2688 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2689 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2690 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2691 echo $ECHO_N "(cached) $ECHO_C" >&6
2692 else
2693 cat >conftest.$ac_ext <<_ACEOF
2694 /* confdefs.h. */
2695 _ACEOF
2696 cat confdefs.h >>conftest.$ac_ext
2697 cat >>conftest.$ac_ext <<_ACEOF
2698 /* end confdefs.h. */
2699
2700 int
2701 main ()
2702 {
2703 #ifndef __GNUC__
2704 choke me
2705 #endif
2706
2707 ;
2708 return 0;
2709 }
2710 _ACEOF
2711 rm -f conftest.$ac_objext
2712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2713 (eval $ac_compile) 2>conftest.er1
2714 ac_status=$?
2715 grep -v '^ *+' conftest.er1 >conftest.err
2716 rm -f conftest.er1
2717 cat conftest.err >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); } &&
2720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722 (eval $ac_try) 2>&5
2723 ac_status=$?
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }; } &&
2726 { ac_try='test -s conftest.$ac_objext'
2727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728 (eval $ac_try) 2>&5
2729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; }; then
2732 ac_compiler_gnu=yes
2733 else
2734 echo "$as_me: failed program was:" >&5
2735 sed 's/^/| /' conftest.$ac_ext >&5
2736
2737 ac_compiler_gnu=no
2738 fi
2739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2740 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2741
2742 fi
2743 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2744 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2745 GCC=`test $ac_compiler_gnu = yes && echo yes`
2746 ac_test_CFLAGS=${CFLAGS+set}
2747 ac_save_CFLAGS=$CFLAGS
2748 CFLAGS="-g"
2749 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2750 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2751 if test "${ac_cv_prog_cc_g+set}" = set; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2753 else
2754 cat >conftest.$ac_ext <<_ACEOF
2755 /* confdefs.h. */
2756 _ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h. */
2760
2761 int
2762 main ()
2763 {
2764
2765 ;
2766 return 0;
2767 }
2768 _ACEOF
2769 rm -f conftest.$ac_objext
2770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2771 (eval $ac_compile) 2>conftest.er1
2772 ac_status=$?
2773 grep -v '^ *+' conftest.er1 >conftest.err
2774 rm -f conftest.er1
2775 cat conftest.err >&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); } &&
2778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 (eval $ac_try) 2>&5
2781 ac_status=$?
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; } &&
2784 { ac_try='test -s conftest.$ac_objext'
2785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 (eval $ac_try) 2>&5
2787 ac_status=$?
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; }; then
2790 ac_cv_prog_cc_g=yes
2791 else
2792 echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2794
2795 ac_cv_prog_cc_g=no
2796 fi
2797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2798 fi
2799 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2800 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2801 if test "$ac_test_CFLAGS" = set; then
2802 CFLAGS=$ac_save_CFLAGS
2803 elif test $ac_cv_prog_cc_g = yes; then
2804 if test "$GCC" = yes; then
2805 CFLAGS="-g -O2"
2806 else
2807 CFLAGS="-g"
2808 fi
2809 else
2810 if test "$GCC" = yes; then
2811 CFLAGS="-O2"
2812 else
2813 CFLAGS=
2814 fi
2815 fi
2816 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2817 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2818 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2819 echo $ECHO_N "(cached) $ECHO_C" >&6
2820 else
2821 ac_cv_prog_cc_stdc=no
2822 ac_save_CC=$CC
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 #include <stdarg.h>
2830 #include <stdio.h>
2831 #include <sys/types.h>
2832 #include <sys/stat.h>
2833 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2834 struct buf { int x; };
2835 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2836 static char *e (p, i)
2837 char **p;
2838 int i;
2839 {
2840 return p[i];
2841 }
2842 static char *f (char * (*g) (char **, int), char **p, ...)
2843 {
2844 char *s;
2845 va_list v;
2846 va_start (v,p);
2847 s = g (p, va_arg (v,int));
2848 va_end (v);
2849 return s;
2850 }
2851
2852 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2853 function prototypes and stuff, but not '\xHH' hex character constants.
2854 These don't provoke an error unfortunately, instead are silently treated
2855 as 'x'. The following induces an error, until -std1 is added to get
2856 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2857 array size at least. It's necessary to write '\x00'==0 to get something
2858 that's true only with -std1. */
2859 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2860
2861 int test (int i, double x);
2862 struct s1 {int (*f) (int a);};
2863 struct s2 {int (*f) (double a);};
2864 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2865 int argc;
2866 char **argv;
2867 int
2868 main ()
2869 {
2870 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2871 ;
2872 return 0;
2873 }
2874 _ACEOF
2875 # Don't try gcc -ansi; that turns off useful extensions and
2876 # breaks some systems' header files.
2877 # AIX -qlanglvl=ansi
2878 # Ultrix and OSF/1 -std1
2879 # HP-UX 10.20 and later -Ae
2880 # HP-UX older versions -Aa -D_HPUX_SOURCE
2881 # SVR4 -Xc -D__EXTENSIONS__
2882 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2883 do
2884 CC="$ac_save_CC $ac_arg"
2885 rm -f conftest.$ac_objext
2886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2887 (eval $ac_compile) 2>conftest.er1
2888 ac_status=$?
2889 grep -v '^ *+' conftest.er1 >conftest.err
2890 rm -f conftest.er1
2891 cat conftest.err >&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); } &&
2894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896 (eval $ac_try) 2>&5
2897 ac_status=$?
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; } &&
2900 { ac_try='test -s conftest.$ac_objext'
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902 (eval $ac_try) 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; }; then
2906 ac_cv_prog_cc_stdc=$ac_arg
2907 break
2908 else
2909 echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2911
2912 fi
2913 rm -f conftest.err conftest.$ac_objext
2914 done
2915 rm -f conftest.$ac_ext conftest.$ac_objext
2916 CC=$ac_save_CC
2917
2918 fi
2919
2920 case "x$ac_cv_prog_cc_stdc" in
2921 x|xno)
2922 echo "$as_me:$LINENO: result: none needed" >&5
2923 echo "${ECHO_T}none needed" >&6 ;;
2924 *)
2925 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2926 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2927 CC="$CC $ac_cv_prog_cc_stdc" ;;
2928 esac
2929
2930 # Some people use a C++ compiler to compile C. Since we use `exit',
2931 # in C++ we need to declare it. In case someone uses the same compiler
2932 # for both compiling C and C++ we need to have the C++ compiler decide
2933 # the declaration of exit, since it's the most demanding environment.
2934 cat >conftest.$ac_ext <<_ACEOF
2935 #ifndef __cplusplus
2936 choke me
2937 #endif
2938 _ACEOF
2939 rm -f conftest.$ac_objext
2940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2941 (eval $ac_compile) 2>conftest.er1
2942 ac_status=$?
2943 grep -v '^ *+' conftest.er1 >conftest.err
2944 rm -f conftest.er1
2945 cat conftest.err >&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); } &&
2948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2950 (eval $ac_try) 2>&5
2951 ac_status=$?
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; } &&
2954 { ac_try='test -s conftest.$ac_objext'
2955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2956 (eval $ac_try) 2>&5
2957 ac_status=$?
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }; }; then
2960 for ac_declaration in \
2961 '' \
2962 'extern "C" void std::exit (int) throw (); using std::exit;' \
2963 'extern "C" void std::exit (int); using std::exit;' \
2964 'extern "C" void exit (int) throw ();' \
2965 'extern "C" void exit (int);' \
2966 'void exit (int);'
2967 do
2968 cat >conftest.$ac_ext <<_ACEOF
2969 /* confdefs.h. */
2970 _ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h. */
2974 $ac_declaration
2975 #include <stdlib.h>
2976 int
2977 main ()
2978 {
2979 exit (42);
2980 ;
2981 return 0;
2982 }
2983 _ACEOF
2984 rm -f conftest.$ac_objext
2985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2986 (eval $ac_compile) 2>conftest.er1
2987 ac_status=$?
2988 grep -v '^ *+' conftest.er1 >conftest.err
2989 rm -f conftest.er1
2990 cat conftest.err >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); } &&
2993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995 (eval $ac_try) 2>&5
2996 ac_status=$?
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }; } &&
2999 { ac_try='test -s conftest.$ac_objext'
3000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3001 (eval $ac_try) 2>&5
3002 ac_status=$?
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }; }; then
3005 :
3006 else
3007 echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3009
3010 continue
3011 fi
3012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3013 cat >conftest.$ac_ext <<_ACEOF
3014 /* confdefs.h. */
3015 _ACEOF
3016 cat confdefs.h >>conftest.$ac_ext
3017 cat >>conftest.$ac_ext <<_ACEOF
3018 /* end confdefs.h. */
3019 $ac_declaration
3020 int
3021 main ()
3022 {
3023 exit (42);
3024 ;
3025 return 0;
3026 }
3027 _ACEOF
3028 rm -f conftest.$ac_objext
3029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3030 (eval $ac_compile) 2>conftest.er1
3031 ac_status=$?
3032 grep -v '^ *+' conftest.er1 >conftest.err
3033 rm -f conftest.er1
3034 cat conftest.err >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } &&
3037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039 (eval $ac_try) 2>&5
3040 ac_status=$?
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }; } &&
3043 { ac_try='test -s conftest.$ac_objext'
3044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3045 (eval $ac_try) 2>&5
3046 ac_status=$?
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; }; then
3049 break
3050 else
3051 echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3053
3054 fi
3055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3056 done
3057 rm -f conftest*
3058 if test -n "$ac_declaration"; then
3059 echo '#ifdef __cplusplus' >>confdefs.h
3060 echo $ac_declaration >>confdefs.h
3061 echo '#endif' >>confdefs.h
3062 fi
3063
3064 else
3065 echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3067
3068 fi
3069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3070 ac_ext=c
3071 ac_cpp='$CPP $CPPFLAGS'
3072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3075
3076
3077 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
3078
3079
3080
3081
3082 echo "$as_me:$LINENO: checking for library containing crypt" >&5
3083 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
3084 if test "${ac_cv_search_crypt+set}" = set; then
3085 echo $ECHO_N "(cached) $ECHO_C" >&6
3086 else
3087 ac_func_search_save_LIBS=$LIBS
3088 ac_cv_search_crypt=no
3089 cat >conftest.$ac_ext <<_ACEOF
3090 /* confdefs.h. */
3091 _ACEOF
3092 cat confdefs.h >>conftest.$ac_ext
3093 cat >>conftest.$ac_ext <<_ACEOF
3094 /* end confdefs.h. */
3095
3096 /* Override any gcc2 internal prototype to avoid an error. */
3097 #ifdef __cplusplus
3098 extern "C"
3099 #endif
3100 /* We use char because int might match the return type of a gcc2
3101 builtin and then its argument prototype would still apply. */
3102 char crypt ();
3103 int
3104 main ()
3105 {
3106 crypt ();
3107 ;
3108 return 0;
3109 }
3110 _ACEOF
3111 rm -f conftest.$ac_objext conftest$ac_exeext
3112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3113 (eval $ac_link) 2>conftest.er1
3114 ac_status=$?
3115 grep -v '^ *+' conftest.er1 >conftest.err
3116 rm -f conftest.er1
3117 cat conftest.err >&5
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); } &&
3120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3122 (eval $ac_try) 2>&5
3123 ac_status=$?
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); }; } &&
3126 { ac_try='test -s conftest$ac_exeext'
3127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3128 (eval $ac_try) 2>&5
3129 ac_status=$?
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; }; then
3132 ac_cv_search_crypt="none required"
3133 else
3134 echo "$as_me: failed program was:" >&5
3135 sed 's/^/| /' conftest.$ac_ext >&5
3136
3137 fi
3138 rm -f conftest.err conftest.$ac_objext \
3139 conftest$ac_exeext conftest.$ac_ext
3140 if test "$ac_cv_search_crypt" = no; then
3141 for ac_lib in descrypt crypt; do
3142 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3143 cat >conftest.$ac_ext <<_ACEOF
3144 /* confdefs.h. */
3145 _ACEOF
3146 cat confdefs.h >>conftest.$ac_ext
3147 cat >>conftest.$ac_ext <<_ACEOF
3148 /* end confdefs.h. */
3149
3150 /* Override any gcc2 internal prototype to avoid an error. */
3151 #ifdef __cplusplus
3152 extern "C"
3153 #endif
3154 /* We use char because int might match the return type of a gcc2
3155 builtin and then its argument prototype would still apply. */
3156 char crypt ();
3157 int
3158 main ()
3159 {
3160 crypt ();
3161 ;
3162 return 0;
3163 }
3164 _ACEOF
3165 rm -f conftest.$ac_objext conftest$ac_exeext
3166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3167 (eval $ac_link) 2>conftest.er1
3168 ac_status=$?
3169 grep -v '^ *+' conftest.er1 >conftest.err
3170 rm -f conftest.er1
3171 cat conftest.err >&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); } &&
3174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176 (eval $ac_try) 2>&5
3177 ac_status=$?
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; } &&
3180 { ac_try='test -s conftest$ac_exeext'
3181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3182 (eval $ac_try) 2>&5
3183 ac_status=$?
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }; }; then
3186 ac_cv_search_crypt="-l$ac_lib"
3187 break
3188 else
3189 echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.$ac_ext >&5
3191
3192 fi
3193 rm -f conftest.err conftest.$ac_objext \
3194 conftest$ac_exeext conftest.$ac_ext
3195 done
3196 fi
3197 LIBS=$ac_func_search_save_LIBS
3198 fi
3199 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
3200 echo "${ECHO_T}$ac_cv_search_crypt" >&6
3201 if test "$ac_cv_search_crypt" != no; then
3202 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
3203
3204 else
3205 { { echo "$as_me:$LINENO: error: Unable to find library containing crypt()" >&5
3206 echo "$as_me: error: Unable to find library containing crypt()" >&2;}
3207 { (exit 1); exit 1; }; }
3208 fi
3209
3210
3211
3212 # Most operating systems have gethostbyname() in the default searched
3213 # libraries (i.e. libc):
3214 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3215 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3216 if test "${ac_cv_func_gethostbyname+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3218 else
3219 cat >conftest.$ac_ext <<_ACEOF
3220 /* confdefs.h. */
3221 _ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h. */
3225 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3227 #define gethostbyname innocuous_gethostbyname
3228
3229 /* System header to define __stub macros and hopefully few prototypes,
3230 which can conflict with char gethostbyname (); below.
3231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3232 <limits.h> exists even on freestanding compilers. */
3233
3234 #ifdef __STDC__
3235 # include <limits.h>
3236 #else
3237 # include <assert.h>
3238 #endif
3239
3240 #undef gethostbyname
3241
3242 /* Override any gcc2 internal prototype to avoid an error. */
3243 #ifdef __cplusplus
3244 extern "C"
3245 {
3246 #endif
3247 /* We use char because int might match the return type of a gcc2
3248 builtin and then its argument prototype would still apply. */
3249 char gethostbyname ();
3250 /* The GNU C library defines this for functions which it implements
3251 to always fail with ENOSYS. Some functions are actually named
3252 something starting with __ and the normal name is an alias. */
3253 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3254 choke me
3255 #else
3256 char (*f) () = gethostbyname;
3257 #endif
3258 #ifdef __cplusplus
3259 }
3260 #endif
3261
3262 int
3263 main ()
3264 {
3265 return f != gethostbyname;
3266 ;
3267 return 0;
3268 }
3269 _ACEOF
3270 rm -f conftest.$ac_objext conftest$ac_exeext
3271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3272 (eval $ac_link) 2>conftest.er1
3273 ac_status=$?
3274 grep -v '^ *+' conftest.er1 >conftest.err
3275 rm -f conftest.er1
3276 cat conftest.err >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); } &&
3279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3281 (eval $ac_try) 2>&5
3282 ac_status=$?
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); }; } &&
3285 { ac_try='test -s conftest$ac_exeext'
3286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3287 (eval $ac_try) 2>&5
3288 ac_status=$?
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); }; }; then
3291 ac_cv_func_gethostbyname=yes
3292 else
3293 echo "$as_me: failed program was:" >&5
3294 sed 's/^/| /' conftest.$ac_ext >&5
3295
3296 ac_cv_func_gethostbyname=no
3297 fi
3298 rm -f conftest.err conftest.$ac_objext \
3299 conftest$ac_exeext conftest.$ac_ext
3300 fi
3301 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3302 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3303 if test $ac_cv_func_gethostbyname = yes; then
3304 :
3305 else
3306 # Some OSes (eg. Solaris) place it in libnsl:
3307
3308 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3309 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3310 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 else
3313 ac_check_lib_save_LIBS=$LIBS
3314 LIBS="-lnsl $LIBS"
3315 cat >conftest.$ac_ext <<_ACEOF
3316 /* confdefs.h. */
3317 _ACEOF
3318 cat confdefs.h >>conftest.$ac_ext
3319 cat >>conftest.$ac_ext <<_ACEOF
3320 /* end confdefs.h. */
3321
3322 /* Override any gcc2 internal prototype to avoid an error. */
3323 #ifdef __cplusplus
3324 extern "C"
3325 #endif
3326 /* We use char because int might match the return type of a gcc2
3327 builtin and then its argument prototype would still apply. */
3328 char gethostbyname ();
3329 int
3330 main ()
3331 {
3332 gethostbyname ();
3333 ;
3334 return 0;
3335 }
3336 _ACEOF
3337 rm -f conftest.$ac_objext conftest$ac_exeext
3338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3339 (eval $ac_link) 2>conftest.er1
3340 ac_status=$?
3341 grep -v '^ *+' conftest.er1 >conftest.err
3342 rm -f conftest.er1
3343 cat conftest.err >&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } &&
3346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348 (eval $ac_try) 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; } &&
3352 { ac_try='test -s conftest$ac_exeext'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354 (eval $ac_try) 2>&5
3355 ac_status=$?
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; }; then
3358 ac_cv_lib_nsl_gethostbyname=yes
3359 else
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3362
3363 ac_cv_lib_nsl_gethostbyname=no
3364 fi
3365 rm -f conftest.err conftest.$ac_objext \
3366 conftest$ac_exeext conftest.$ac_ext
3367 LIBS=$ac_check_lib_save_LIBS
3368 fi
3369 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3370 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3371 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3372 cat >>confdefs.h <<_ACEOF
3373 #define HAVE_LIBNSL 1
3374 _ACEOF
3375
3376 LIBS="-lnsl $LIBS"
3377
3378 else
3379 # Some strange OSes (SINIX) have it in libsocket:
3380
3381 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3382 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
3383 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3384 echo $ECHO_N "(cached) $ECHO_C" >&6
3385 else
3386 ac_check_lib_save_LIBS=$LIBS
3387 LIBS="-lsocket $LIBS"
3388 cat >conftest.$ac_ext <<_ACEOF
3389 /* confdefs.h. */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3394
3395 /* Override any gcc2 internal prototype to avoid an error. */
3396 #ifdef __cplusplus
3397 extern "C"
3398 #endif
3399 /* We use char because int might match the return type of a gcc2
3400 builtin and then its argument prototype would still apply. */
3401 char gethostbyname ();
3402 int
3403 main ()
3404 {
3405 gethostbyname ();
3406 ;
3407 return 0;
3408 }
3409 _ACEOF
3410 rm -f conftest.$ac_objext conftest$ac_exeext
3411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3412 (eval $ac_link) 2>conftest.er1
3413 ac_status=$?
3414 grep -v '^ *+' conftest.er1 >conftest.err
3415 rm -f conftest.er1
3416 cat conftest.err >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } &&
3419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421 (eval $ac_try) 2>&5
3422 ac_status=$?
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; } &&
3425 { ac_try='test -s conftest$ac_exeext'
3426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427 (eval $ac_try) 2>&5
3428 ac_status=$?
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); }; }; then
3431 ac_cv_lib_socket_gethostbyname=yes
3432 else
3433 echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3435
3436 ac_cv_lib_socket_gethostbyname=no
3437 fi
3438 rm -f conftest.err conftest.$ac_objext \
3439 conftest$ac_exeext conftest.$ac_ext
3440 LIBS=$ac_check_lib_save_LIBS
3441 fi
3442 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3443 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
3444 if test $ac_cv_lib_socket_gethostbyname = yes; then
3445 cat >>confdefs.h <<_ACEOF
3446 #define HAVE_LIBSOCKET 1
3447 _ACEOF
3448
3449 LIBS="-lsocket $LIBS"
3450
3451 else
3452 # Unfortunately libsocket sometimes depends on libnsl.
3453 # AC_CHECK_LIB's API is essentially broken so the following
3454 # ugliness is necessary:
3455 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3456 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
3457 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3459 else
3460 ac_check_lib_save_LIBS=$LIBS
3461 LIBS="-lsocket -lnsl $LIBS"
3462 cat >conftest.$ac_ext <<_ACEOF
3463 /* confdefs.h. */
3464 _ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h. */
3468
3469 /* Override any gcc2 internal prototype to avoid an error. */
3470 #ifdef __cplusplus
3471 extern "C"
3472 #endif
3473 /* We use char because int might match the return type of a gcc2
3474 builtin and then its argument prototype would still apply. */
3475 char gethostbyname ();
3476 int
3477 main ()
3478 {
3479 gethostbyname ();
3480 ;
3481 return 0;
3482 }
3483 _ACEOF
3484 rm -f conftest.$ac_objext conftest$ac_exeext
3485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3486 (eval $ac_link) 2>conftest.er1
3487 ac_status=$?
3488 grep -v '^ *+' conftest.er1 >conftest.err
3489 rm -f conftest.er1
3490 cat conftest.err >&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); } &&
3493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495 (eval $ac_try) 2>&5
3496 ac_status=$?
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); }; } &&
3499 { ac_try='test -s conftest$ac_exeext'
3500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3501 (eval $ac_try) 2>&5
3502 ac_status=$?
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }; }; then
3505 ac_cv_lib_socket_gethostbyname=yes
3506 else
3507 echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3509
3510 ac_cv_lib_socket_gethostbyname=no
3511 fi
3512 rm -f conftest.err conftest.$ac_objext \
3513 conftest$ac_exeext conftest.$ac_ext
3514 LIBS=$ac_check_lib_save_LIBS
3515 fi
3516 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3517 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
3518 if test $ac_cv_lib_socket_gethostbyname = yes; then
3519 LIBS="-lsocket -lnsl $LIBS"
3520 else
3521
3522 echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
3523 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
3524 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3526 else
3527 ac_check_lib_save_LIBS=$LIBS
3528 LIBS="-lresolv $LIBS"
3529 cat >conftest.$ac_ext <<_ACEOF
3530 /* confdefs.h. */
3531 _ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h. */
3535
3536 /* Override any gcc2 internal prototype to avoid an error. */
3537 #ifdef __cplusplus
3538 extern "C"
3539 #endif
3540 /* We use char because int might match the return type of a gcc2
3541 builtin and then its argument prototype would still apply. */
3542 char gethostbyname ();
3543 int
3544 main ()
3545 {
3546 gethostbyname ();
3547 ;
3548 return 0;
3549 }
3550 _ACEOF
3551 rm -f conftest.$ac_objext conftest$ac_exeext
3552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3553 (eval $ac_link) 2>conftest.er1
3554 ac_status=$?
3555 grep -v '^ *+' conftest.er1 >conftest.err
3556 rm -f conftest.er1
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } &&
3560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3562 (eval $ac_try) 2>&5
3563 ac_status=$?
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; } &&
3566 { ac_try='test -s conftest$ac_exeext'
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568 (eval $ac_try) 2>&5
3569 ac_status=$?
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; }; then
3572 ac_cv_lib_resolv_gethostbyname=yes
3573 else
3574 echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3576
3577 ac_cv_lib_resolv_gethostbyname=no
3578 fi
3579 rm -f conftest.err conftest.$ac_objext \
3580 conftest$ac_exeext conftest.$ac_ext
3581 LIBS=$ac_check_lib_save_LIBS
3582 fi
3583 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
3584 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
3585 if test $ac_cv_lib_resolv_gethostbyname = yes; then
3586 cat >>confdefs.h <<_ACEOF
3587 #define HAVE_LIBRESOLV 1
3588 _ACEOF
3589
3590 LIBS="-lresolv $LIBS"
3591
3592 fi
3593
3594 fi
3595
3596
3597 fi
3598
3599
3600 fi
3601
3602
3603 fi
3604
3605 echo "$as_me:$LINENO: checking for socket" >&5
3606 echo $ECHO_N "checking for socket... $ECHO_C" >&6
3607 if test "${ac_cv_func_socket+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 else
3610 cat >conftest.$ac_ext <<_ACEOF
3611 /* confdefs.h. */
3612 _ACEOF
3613 cat confdefs.h >>conftest.$ac_ext
3614 cat >>conftest.$ac_ext <<_ACEOF
3615 /* end confdefs.h. */
3616 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3618 #define socket innocuous_socket
3619
3620 /* System header to define __stub macros and hopefully few prototypes,
3621 which can conflict with char socket (); below.
3622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3623 <limits.h> exists even on freestanding compilers. */
3624
3625 #ifdef __STDC__
3626 # include <limits.h>
3627 #else
3628 # include <assert.h>
3629 #endif
3630
3631 #undef socket
3632
3633 /* Override any gcc2 internal prototype to avoid an error. */
3634 #ifdef __cplusplus
3635 extern "C"
3636 {
3637 #endif
3638 /* We use char because int might match the return type of a gcc2
3639 builtin and then its argument prototype would still apply. */
3640 char socket ();
3641 /* The GNU C library defines this for functions which it implements
3642 to always fail with ENOSYS. Some functions are actually named
3643 something starting with __ and the normal name is an alias. */
3644 #if defined (__stub_socket) || defined (__stub___socket)
3645 choke me
3646 #else
3647 char (*f) () = socket;
3648 #endif
3649 #ifdef __cplusplus
3650 }
3651 #endif
3652
3653 int
3654 main ()
3655 {
3656 return f != socket;
3657 ;
3658 return 0;
3659 }
3660 _ACEOF
3661 rm -f conftest.$ac_objext conftest$ac_exeext
3662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3663 (eval $ac_link) 2>conftest.er1
3664 ac_status=$?
3665 grep -v '^ *+' conftest.er1 >conftest.err
3666 rm -f conftest.er1
3667 cat conftest.err >&5
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); } &&
3670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672 (eval $ac_try) 2>&5
3673 ac_status=$?
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; } &&
3676 { ac_try='test -s conftest$ac_exeext'
3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678 (eval $ac_try) 2>&5
3679 ac_status=$?
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; }; then
3682 ac_cv_func_socket=yes
3683 else
3684 echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3686
3687 ac_cv_func_socket=no
3688 fi
3689 rm -f conftest.err conftest.$ac_objext \
3690 conftest$ac_exeext conftest.$ac_ext
3691 fi
3692 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3693 echo "${ECHO_T}$ac_cv_func_socket" >&6
3694 if test $ac_cv_func_socket = yes; then
3695 :
3696 else
3697
3698 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3699 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3700 if test "${ac_cv_lib_socket_socket+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3702 else
3703 ac_check_lib_save_LIBS=$LIBS
3704 LIBS="-lsocket $LIBS"
3705 cat >conftest.$ac_ext <<_ACEOF
3706 /* confdefs.h. */
3707 _ACEOF
3708 cat confdefs.h >>conftest.$ac_ext
3709 cat >>conftest.$ac_ext <<_ACEOF
3710 /* end confdefs.h. */
3711
3712 /* Override any gcc2 internal prototype to avoid an error. */
3713 #ifdef __cplusplus
3714 extern "C"
3715 #endif
3716 /* We use char because int might match the return type of a gcc2
3717 builtin and then its argument prototype would still apply. */
3718 char socket ();
3719 int
3720 main ()
3721 {
3722 socket ();
3723 ;
3724 return 0;
3725 }
3726 _ACEOF
3727 rm -f conftest.$ac_objext conftest$ac_exeext
3728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3729 (eval $ac_link) 2>conftest.er1
3730 ac_status=$?
3731 grep -v '^ *+' conftest.er1 >conftest.err
3732 rm -f conftest.er1
3733 cat conftest.err >&5
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); } &&
3736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738 (eval $ac_try) 2>&5
3739 ac_status=$?
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; } &&
3742 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
3748 ac_cv_lib_socket_socket=yes
3749 else
3750 echo "$as_me: failed program was:" >&5
3751 sed 's/^/| /' conftest.$ac_ext >&5
3752
3753 ac_cv_lib_socket_socket=no
3754 fi
3755 rm -f conftest.err conftest.$ac_objext \
3756 conftest$ac_exeext conftest.$ac_ext
3757 LIBS=$ac_check_lib_save_LIBS
3758 fi
3759 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3760 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3761 if test $ac_cv_lib_socket_socket = yes; then
3762 cat >>confdefs.h <<_ACEOF
3763 #define HAVE_LIBSOCKET 1
3764 _ACEOF
3765
3766 LIBS="-lsocket $LIBS"
3767
3768 else
3769 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3770 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3771 if test "${ac_cv_lib_socket_socket+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 else
3774 ac_check_lib_save_LIBS=$LIBS
3775 LIBS="-lsocket -lnsl $LIBS"
3776 cat >conftest.$ac_ext <<_ACEOF
3777 /* confdefs.h. */
3778 _ACEOF
3779 cat confdefs.h >>conftest.$ac_ext
3780 cat >>conftest.$ac_ext <<_ACEOF
3781 /* end confdefs.h. */
3782
3783 /* Override any gcc2 internal prototype to avoid an error. */
3784 #ifdef __cplusplus
3785 extern "C"
3786 #endif
3787 /* We use char because int might match the return type of a gcc2
3788 builtin and then its argument prototype would still apply. */
3789 char socket ();
3790 int
3791 main ()
3792 {
3793 socket ();
3794 ;
3795 return 0;
3796 }
3797 _ACEOF
3798 rm -f conftest.$ac_objext conftest$ac_exeext
3799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3800 (eval $ac_link) 2>conftest.er1
3801 ac_status=$?
3802 grep -v '^ *+' conftest.er1 >conftest.err
3803 rm -f conftest.er1
3804 cat conftest.err >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); } &&
3807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3809 (eval $ac_try) 2>&5
3810 ac_status=$?
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); }; } &&
3813 { ac_try='test -s conftest$ac_exeext'
3814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3815 (eval $ac_try) 2>&5
3816 ac_status=$?
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); }; }; then
3819 ac_cv_lib_socket_socket=yes
3820 else
3821 echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3823
3824 ac_cv_lib_socket_socket=no
3825 fi
3826 rm -f conftest.err conftest.$ac_objext \
3827 conftest$ac_exeext conftest.$ac_ext
3828 LIBS=$ac_check_lib_save_LIBS
3829 fi
3830 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3831 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3832 if test $ac_cv_lib_socket_socket = yes; then
3833 LIBS="-lsocket -lnsl $LIBS"
3834 fi
3835
3836 fi
3837
3838 fi
3839
3840
3841
3842 ac_ext=c
3843 ac_cpp='$CPP $CPPFLAGS'
3844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3847 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3848 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3849 # On Suns, sometimes $CPP names a directory.
3850 if test -n "$CPP" && test -d "$CPP"; then
3851 CPP=
3852 fi
3853 if test -z "$CPP"; then
3854 if test "${ac_cv_prog_CPP+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 else
3857 # Double quotes because CPP needs to be expanded
3858 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3859 do
3860 ac_preproc_ok=false
3861 for ac_c_preproc_warn_flag in '' yes
3862 do
3863 # Use a header file that comes with gcc, so configuring glibc
3864 # with a fresh cross-compiler works.
3865 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3866 # <limits.h> exists even on freestanding compilers.
3867 # On the NeXT, cc -E runs the code through the compiler's parser,
3868 # not just through cpp. "Syntax error" is here to catch this case.
3869 cat >conftest.$ac_ext <<_ACEOF
3870 /* confdefs.h. */
3871 _ACEOF
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h. */
3875 #ifdef __STDC__
3876 # include <limits.h>
3877 #else
3878 # include <assert.h>
3879 #endif
3880 Syntax error
3881 _ACEOF
3882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3884 ac_status=$?
3885 grep -v '^ *+' conftest.er1 >conftest.err
3886 rm -f conftest.er1
3887 cat conftest.err >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); } >/dev/null; then
3890 if test -s conftest.err; then
3891 ac_cpp_err=$ac_c_preproc_warn_flag
3892 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3893 else
3894 ac_cpp_err=
3895 fi
3896 else
3897 ac_cpp_err=yes
3898 fi
3899 if test -z "$ac_cpp_err"; then
3900 :
3901 else
3902 echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3904
3905 # Broken: fails on valid input.
3906 continue
3907 fi
3908 rm -f conftest.err conftest.$ac_ext
3909
3910 # OK, works on sane cases. Now check whether non-existent headers
3911 # can be detected and how.
3912 cat >conftest.$ac_ext <<_ACEOF
3913 /* confdefs.h. */
3914 _ACEOF
3915 cat confdefs.h >>conftest.$ac_ext
3916 cat >>conftest.$ac_ext <<_ACEOF
3917 /* end confdefs.h. */
3918 #include <ac_nonexistent.h>
3919 _ACEOF
3920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3922 ac_status=$?
3923 grep -v '^ *+' conftest.er1 >conftest.err
3924 rm -f conftest.er1
3925 cat conftest.err >&5
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); } >/dev/null; then
3928 if test -s conftest.err; then
3929 ac_cpp_err=$ac_c_preproc_warn_flag
3930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3931 else
3932 ac_cpp_err=
3933 fi
3934 else
3935 ac_cpp_err=yes
3936 fi
3937 if test -z "$ac_cpp_err"; then
3938 # Broken: success on invalid input.
3939 continue
3940 else
3941 echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3943
3944 # Passes both tests.
3945 ac_preproc_ok=:
3946 break
3947 fi
3948 rm -f conftest.err conftest.$ac_ext
3949
3950 done
3951 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3952 rm -f conftest.err conftest.$ac_ext
3953 if $ac_preproc_ok; then
3954 break
3955 fi
3956
3957 done
3958 ac_cv_prog_CPP=$CPP
3959
3960 fi
3961 CPP=$ac_cv_prog_CPP
3962 else
3963 ac_cv_prog_CPP=$CPP
3964 fi
3965 echo "$as_me:$LINENO: result: $CPP" >&5
3966 echo "${ECHO_T}$CPP" >&6
3967 ac_preproc_ok=false
3968 for ac_c_preproc_warn_flag in '' yes
3969 do
3970 # Use a header file that comes with gcc, so configuring glibc
3971 # with a fresh cross-compiler works.
3972 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3973 # <limits.h> exists even on freestanding compilers.
3974 # On the NeXT, cc -E runs the code through the compiler's parser,
3975 # not just through cpp. "Syntax error" is here to catch this case.
3976 cat >conftest.$ac_ext <<_ACEOF
3977 /* confdefs.h. */
3978 _ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h. */
3982 #ifdef __STDC__
3983 # include <limits.h>
3984 #else
3985 # include <assert.h>
3986 #endif
3987 Syntax error
3988 _ACEOF
3989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3991 ac_status=$?
3992 grep -v '^ *+' conftest.er1 >conftest.err
3993 rm -f conftest.er1
3994 cat conftest.err >&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); } >/dev/null; then
3997 if test -s conftest.err; then
3998 ac_cpp_err=$ac_c_preproc_warn_flag
3999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4000 else
4001 ac_cpp_err=
4002 fi
4003 else
4004 ac_cpp_err=yes
4005 fi
4006 if test -z "$ac_cpp_err"; then
4007 :
4008 else
4009 echo "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.$ac_ext >&5
4011
4012 # Broken: fails on valid input.
4013 continue
4014 fi
4015 rm -f conftest.err conftest.$ac_ext
4016
4017 # OK, works on sane cases. Now check whether non-existent headers
4018 # can be detected and how.
4019 cat >conftest.$ac_ext <<_ACEOF
4020 /* confdefs.h. */
4021 _ACEOF
4022 cat confdefs.h >>conftest.$ac_ext
4023 cat >>conftest.$ac_ext <<_ACEOF
4024 /* end confdefs.h. */
4025 #include <ac_nonexistent.h>
4026 _ACEOF
4027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4029 ac_status=$?
4030 grep -v '^ *+' conftest.er1 >conftest.err
4031 rm -f conftest.er1
4032 cat conftest.err >&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } >/dev/null; then
4035 if test -s conftest.err; then
4036 ac_cpp_err=$ac_c_preproc_warn_flag
4037 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4038 else
4039 ac_cpp_err=
4040 fi
4041 else
4042 ac_cpp_err=yes
4043 fi
4044 if test -z "$ac_cpp_err"; then
4045 # Broken: success on invalid input.
4046 continue
4047 else
4048 echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.$ac_ext >&5
4050
4051 # Passes both tests.
4052 ac_preproc_ok=:
4053 break
4054 fi
4055 rm -f conftest.err conftest.$ac_ext
4056
4057 done
4058 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4059 rm -f conftest.err conftest.$ac_ext
4060 if $ac_preproc_ok; then
4061 :
4062 else
4063 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4064 See \`config.log' for more details." >&5
4065 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4066 See \`config.log' for more details." >&2;}
4067 { (exit 1); exit 1; }; }
4068 fi
4069
4070 ac_ext=c
4071 ac_cpp='$CPP $CPPFLAGS'
4072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4075
4076
4077 echo "$as_me:$LINENO: checking for egrep" >&5
4078 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4079 if test "${ac_cv_prog_egrep+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4081 else
4082 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4083 then ac_cv_prog_egrep='grep -E'
4084 else ac_cv_prog_egrep='egrep'
4085 fi
4086 fi
4087 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4088 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4089 EGREP=$ac_cv_prog_egrep
4090
4091
4092 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4093 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4094 if test "${ac_cv_header_stdc+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4096 else
4097 cat >conftest.$ac_ext <<_ACEOF
4098 /* confdefs.h. */
4099 _ACEOF
4100 cat confdefs.h >>conftest.$ac_ext
4101 cat >>conftest.$ac_ext <<_ACEOF
4102 /* end confdefs.h. */
4103 #include <stdlib.h>
4104 #include <stdarg.h>
4105 #include <string.h>
4106 #include <float.h>
4107
4108 int
4109 main ()
4110 {
4111
4112 ;
4113 return 0;
4114 }
4115 _ACEOF
4116 rm -f conftest.$ac_objext
4117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4118 (eval $ac_compile) 2>conftest.er1
4119 ac_status=$?
4120 grep -v '^ *+' conftest.er1 >conftest.err
4121 rm -f conftest.er1
4122 cat conftest.err >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } &&
4125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127 (eval $ac_try) 2>&5
4128 ac_status=$?
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; } &&
4131 { ac_try='test -s conftest.$ac_objext'
4132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4133 (eval $ac_try) 2>&5
4134 ac_status=$?
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); }; }; then
4137 ac_cv_header_stdc=yes
4138 else
4139 echo "$as_me: failed program was:" >&5
4140 sed 's/^/| /' conftest.$ac_ext >&5
4141
4142 ac_cv_header_stdc=no
4143 fi
4144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4145
4146 if test $ac_cv_header_stdc = yes; then
4147 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4148 cat >conftest.$ac_ext <<_ACEOF
4149 /* confdefs.h. */
4150 _ACEOF
4151 cat confdefs.h >>conftest.$ac_ext
4152 cat >>conftest.$ac_ext <<_ACEOF
4153 /* end confdefs.h. */
4154 #include <string.h>
4155
4156 _ACEOF
4157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4158 $EGREP "memchr" >/dev/null 2>&1; then
4159 :
4160 else
4161 ac_cv_header_stdc=no
4162 fi
4163 rm -f conftest*
4164
4165 fi
4166
4167 if test $ac_cv_header_stdc = yes; then
4168 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4169 cat >conftest.$ac_ext <<_ACEOF
4170 /* confdefs.h. */
4171 _ACEOF
4172 cat confdefs.h >>conftest.$ac_ext
4173 cat >>conftest.$ac_ext <<_ACEOF
4174 /* end confdefs.h. */
4175 #include <stdlib.h>
4176
4177 _ACEOF
4178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4179 $EGREP "free" >/dev/null 2>&1; then
4180 :
4181 else
4182 ac_cv_header_stdc=no
4183 fi
4184 rm -f conftest*
4185
4186 fi
4187
4188 if test $ac_cv_header_stdc = yes; then
4189 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4190 if test "$cross_compiling" = yes; then
4191 :
4192 else
4193 cat >conftest.$ac_ext <<_ACEOF
4194 /* confdefs.h. */
4195 _ACEOF
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h. */
4199 #include <ctype.h>
4200 #if ((' ' & 0x0FF) == 0x020)
4201 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4202 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4203 #else
4204 # define ISLOWER(c) \
4205 (('a' <= (c) && (c) <= 'i') \
4206 || ('j' <= (c) && (c) <= 'r') \
4207 || ('s' <= (c) && (c) <= 'z'))
4208 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4209 #endif
4210
4211 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4212 int
4213 main ()
4214 {
4215 int i;
4216 for (i = 0; i < 256; i++)
4217 if (XOR (islower (i), ISLOWER (i))
4218 || toupper (i) != TOUPPER (i))
4219 exit(2);
4220 exit (0);
4221 }
4222 _ACEOF
4223 rm -f conftest$ac_exeext
4224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4225 (eval $ac_link) 2>&5
4226 ac_status=$?
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230 (eval $ac_try) 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; }; then
4234 :
4235 else
4236 echo "$as_me: program exited with status $ac_status" >&5
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4239
4240 ( exit $ac_status )
4241 ac_cv_header_stdc=no
4242 fi
4243 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4244 fi
4245 fi
4246 fi
4247 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4248 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4249 if test $ac_cv_header_stdc = yes; then
4250
4251 cat >>confdefs.h <<\_ACEOF
4252 #define STDC_HEADERS 1
4253 _ACEOF
4254
4255 fi
4256
4257 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4268 inttypes.h stdint.h unistd.h
4269 do
4270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4271 echo "$as_me:$LINENO: checking for $ac_header" >&5
4272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4275 else
4276 cat >conftest.$ac_ext <<_ACEOF
4277 /* confdefs.h. */
4278 _ACEOF
4279 cat confdefs.h >>conftest.$ac_ext
4280 cat >>conftest.$ac_ext <<_ACEOF
4281 /* end confdefs.h. */
4282 $ac_includes_default
4283
4284 #include <$ac_header>
4285 _ACEOF
4286 rm -f conftest.$ac_objext
4287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4288 (eval $ac_compile) 2>conftest.er1
4289 ac_status=$?
4290 grep -v '^ *+' conftest.er1 >conftest.err
4291 rm -f conftest.er1
4292 cat conftest.err >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); } &&
4295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4297 (eval $ac_try) 2>&5
4298 ac_status=$?
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; } &&
4301 { ac_try='test -s conftest.$ac_objext'
4302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303 (eval $ac_try) 2>&5
4304 ac_status=$?
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }; }; then
4307 eval "$as_ac_Header=yes"
4308 else
4309 echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.$ac_ext >&5
4311
4312 eval "$as_ac_Header=no"
4313 fi
4314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4315 fi
4316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4319 cat >>confdefs.h <<_ACEOF
4320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4321 _ACEOF
4322
4323 fi
4324
4325 done
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338 for ac_header in crypt.h poll.h inttypes.h stdint.h sys/devpoll.h sys/epoll.h sys/event.h sys/param.h sys/resource.h sys/socket.h
4339 do
4340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4342 echo "$as_me:$LINENO: checking for $ac_header" >&5
4343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4346 fi
4347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4349 else
4350 # Is the header compilable?
4351 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4353 cat >conftest.$ac_ext <<_ACEOF
4354 /* confdefs.h. */
4355 _ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h. */
4359 $ac_includes_default
4360 #include <$ac_header>
4361 _ACEOF
4362 rm -f conftest.$ac_objext
4363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4364 (eval $ac_compile) 2>conftest.er1
4365 ac_status=$?
4366 grep -v '^ *+' conftest.er1 >conftest.err
4367 rm -f conftest.er1
4368 cat conftest.err >&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); } &&
4371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4373 (eval $ac_try) 2>&5
4374 ac_status=$?
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); }; } &&
4377 { ac_try='test -s conftest.$ac_objext'
4378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4379 (eval $ac_try) 2>&5
4380 ac_status=$?
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; }; then
4383 ac_header_compiler=yes
4384 else
4385 echo "$as_me: failed program was:" >&5
4386 sed 's/^/| /' conftest.$ac_ext >&5
4387
4388 ac_header_compiler=no
4389 fi
4390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4391 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4392 echo "${ECHO_T}$ac_header_compiler" >&6
4393
4394 # Is the header present?
4395 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4397 cat >conftest.$ac_ext <<_ACEOF
4398 /* confdefs.h. */
4399 _ACEOF
4400 cat confdefs.h >>conftest.$ac_ext
4401 cat >>conftest.$ac_ext <<_ACEOF
4402 /* end confdefs.h. */
4403 #include <$ac_header>
4404 _ACEOF
4405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4407 ac_status=$?
4408 grep -v '^ *+' conftest.er1 >conftest.err
4409 rm -f conftest.er1
4410 cat conftest.err >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); } >/dev/null; then
4413 if test -s conftest.err; then
4414 ac_cpp_err=$ac_c_preproc_warn_flag
4415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4416 else
4417 ac_cpp_err=
4418 fi
4419 else
4420 ac_cpp_err=yes
4421 fi
4422 if test -z "$ac_cpp_err"; then
4423 ac_header_preproc=yes
4424 else
4425 echo "$as_me: failed program was:" >&5
4426 sed 's/^/| /' conftest.$ac_ext >&5
4427
4428 ac_header_preproc=no
4429 fi
4430 rm -f conftest.err conftest.$ac_ext
4431 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4432 echo "${ECHO_T}$ac_header_preproc" >&6
4433
4434 # So? What about this header?
4435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4436 yes:no: )
4437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4441 ac_header_preproc=yes
4442 ;;
4443 no:yes:* )
4444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4447 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4448 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4450 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4451 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4454 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4456 (
4457 cat <<\_ASBOX
4458 ## ------------------------------------------ ##
4459 ## Report this to the AC_PACKAGE_NAME lists. ##
4460 ## ------------------------------------------ ##
4461 _ASBOX
4462 ) |
4463 sed "s/^/$as_me: WARNING: /" >&2
4464 ;;
4465 esac
4466 echo "$as_me:$LINENO: checking for $ac_header" >&5
4467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4469 echo $ECHO_N "(cached) $ECHO_C" >&6
4470 else
4471 eval "$as_ac_Header=\$ac_header_preproc"
4472 fi
4473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4475
4476 fi
4477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4478 cat >>confdefs.h <<_ACEOF
4479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4480 _ACEOF
4481
4482 fi
4483
4484 done
4485
4486
4487 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4488 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4489 if test "${ac_cv_c_bigendian+set}" = set; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4491 else
4492 # See if sys/param.h defines the BYTE_ORDER macro.
4493 cat >conftest.$ac_ext <<_ACEOF
4494 /* confdefs.h. */
4495 _ACEOF
4496 cat confdefs.h >>conftest.$ac_ext
4497 cat >>conftest.$ac_ext <<_ACEOF
4498 /* end confdefs.h. */
4499 #include <sys/types.h>
4500 #include <sys/param.h>
4501
4502 int
4503 main ()
4504 {
4505 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4506 bogus endian macros
4507 #endif
4508
4509 ;
4510 return 0;
4511 }
4512 _ACEOF
4513 rm -f conftest.$ac_objext
4514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4515 (eval $ac_compile) 2>conftest.er1
4516 ac_status=$?
4517 grep -v '^ *+' conftest.er1 >conftest.err
4518 rm -f conftest.er1
4519 cat conftest.err >&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); } &&
4522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524 (eval $ac_try) 2>&5
4525 ac_status=$?
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; } &&
4528 { ac_try='test -s conftest.$ac_objext'
4529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4530 (eval $ac_try) 2>&5
4531 ac_status=$?
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; }; then
4534 # It does; now see whether it defined to BIG_ENDIAN or not.
4535 cat >conftest.$ac_ext <<_ACEOF
4536 /* confdefs.h. */
4537 _ACEOF
4538 cat confdefs.h >>conftest.$ac_ext
4539 cat >>conftest.$ac_ext <<_ACEOF
4540 /* end confdefs.h. */
4541 #include <sys/types.h>
4542 #include <sys/param.h>
4543
4544 int
4545 main ()
4546 {
4547 #if BYTE_ORDER != BIG_ENDIAN
4548 not big endian
4549 #endif
4550
4551 ;
4552 return 0;
4553 }
4554 _ACEOF
4555 rm -f conftest.$ac_objext
4556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4557 (eval $ac_compile) 2>conftest.er1
4558 ac_status=$?
4559 grep -v '^ *+' conftest.er1 >conftest.err
4560 rm -f conftest.er1
4561 cat conftest.err >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } &&
4564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566 (eval $ac_try) 2>&5
4567 ac_status=$?
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; } &&
4570 { ac_try='test -s conftest.$ac_objext'
4571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4572 (eval $ac_try) 2>&5
4573 ac_status=$?
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; }; then
4576 ac_cv_c_bigendian=yes
4577 else
4578 echo "$as_me: failed program was:" >&5
4579 sed 's/^/| /' conftest.$ac_ext >&5
4580
4581 ac_cv_c_bigendian=no
4582 fi
4583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4584 else
4585 echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4587
4588 # It does not; compile a test program.
4589 if test "$cross_compiling" = yes; then
4590 # try to guess the endianness by grepping values into an object file
4591 ac_cv_c_bigendian=unknown
4592 cat >conftest.$ac_ext <<_ACEOF
4593 /* confdefs.h. */
4594 _ACEOF
4595 cat confdefs.h >>conftest.$ac_ext
4596 cat >>conftest.$ac_ext <<_ACEOF
4597 /* end confdefs.h. */
4598 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4599 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4600 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4601 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4602 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4603 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4604 int
4605 main ()
4606 {
4607 _ascii (); _ebcdic ();
4608 ;
4609 return 0;
4610 }
4611 _ACEOF
4612 rm -f conftest.$ac_objext
4613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4614 (eval $ac_compile) 2>conftest.er1
4615 ac_status=$?
4616 grep -v '^ *+' conftest.er1 >conftest.err
4617 rm -f conftest.er1
4618 cat conftest.err >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); } &&
4621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623 (eval $ac_try) 2>&5
4624 ac_status=$?
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }; } &&
4627 { ac_try='test -s conftest.$ac_objext'
4628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629 (eval $ac_try) 2>&5
4630 ac_status=$?
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }; }; then
4633 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4634 ac_cv_c_bigendian=yes
4635 fi
4636 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4637 if test "$ac_cv_c_bigendian" = unknown; then
4638 ac_cv_c_bigendian=no
4639 else
4640 # finding both strings is unlikely to happen, but who knows?
4641 ac_cv_c_bigendian=unknown
4642 fi
4643 fi
4644 else
4645 echo "$as_me: failed program was:" >&5
4646 sed 's/^/| /' conftest.$ac_ext >&5
4647
4648 fi
4649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4650 else
4651 cat >conftest.$ac_ext <<_ACEOF
4652 /* confdefs.h. */
4653 _ACEOF
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h. */
4657 int
4658 main ()
4659 {
4660 /* Are we little or big endian? From Harbison&Steele. */
4661 union
4662 {
4663 long l;
4664 char c[sizeof (long)];
4665 } u;
4666 u.l = 1;
4667 exit (u.c[sizeof (long) - 1] == 1);
4668 }
4669 _ACEOF
4670 rm -f conftest$ac_exeext
4671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4672 (eval $ac_link) 2>&5
4673 ac_status=$?
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677 (eval $ac_try) 2>&5
4678 ac_status=$?
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; }; then
4681 ac_cv_c_bigendian=no
4682 else
4683 echo "$as_me: program exited with status $ac_status" >&5
4684 echo "$as_me: failed program was:" >&5
4685 sed 's/^/| /' conftest.$ac_ext >&5
4686
4687 ( exit $ac_status )
4688 ac_cv_c_bigendian=yes
4689 fi
4690 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4691 fi
4692 fi
4693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4694 fi
4695 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4696 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4697 case $ac_cv_c_bigendian in
4698 yes)
4699
4700 cat >>confdefs.h <<\_ACEOF
4701 #define WORDS_BIGENDIAN 1
4702 _ACEOF
4703 ;;
4704 no)
4705 ;;
4706 *)
4707 { { echo "$as_me:$LINENO: error: unknown endianness
4708 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4709 echo "$as_me: error: unknown endianness
4710 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4711 { (exit 1); exit 1; }; } ;;
4712 esac
4713
4714 echo "$as_me:$LINENO: checking for size_t" >&5
4715 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4716 if test "${ac_cv_type_size_t+set}" = set; then
4717 echo $ECHO_N "(cached) $ECHO_C" >&6
4718 else
4719 cat >conftest.$ac_ext <<_ACEOF
4720 /* confdefs.h. */
4721 _ACEOF
4722 cat confdefs.h >>conftest.$ac_ext
4723 cat >>conftest.$ac_ext <<_ACEOF
4724 /* end confdefs.h. */
4725 $ac_includes_default
4726 int
4727 main ()
4728 {
4729 if ((size_t *) 0)
4730 return 0;
4731 if (sizeof (size_t))
4732 return 0;
4733 ;
4734 return 0;
4735 }
4736 _ACEOF
4737 rm -f conftest.$ac_objext
4738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4739 (eval $ac_compile) 2>conftest.er1
4740 ac_status=$?
4741 grep -v '^ *+' conftest.er1 >conftest.err
4742 rm -f conftest.er1
4743 cat conftest.err >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); } &&
4746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4748 (eval $ac_try) 2>&5
4749 ac_status=$?
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }; } &&
4752 { ac_try='test -s conftest.$ac_objext'
4753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4754 (eval $ac_try) 2>&5
4755 ac_status=$?
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); }; }; then
4758 ac_cv_type_size_t=yes
4759 else
4760 echo "$as_me: failed program was:" >&5
4761 sed 's/^/| /' conftest.$ac_ext >&5
4762
4763 ac_cv_type_size_t=no
4764 fi
4765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4766 fi
4767 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4768 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4769 if test $ac_cv_type_size_t = yes; then
4770 :
4771 else
4772
4773 cat >>confdefs.h <<_ACEOF
4774 #define size_t unsigned
4775 _ACEOF
4776
4777 fi
4778
4779 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4780 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4781 if test "${ac_cv_header_time+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4783 else
4784 cat >conftest.$ac_ext <<_ACEOF
4785 /* confdefs.h. */
4786 _ACEOF
4787 cat confdefs.h >>conftest.$ac_ext
4788 cat >>conftest.$ac_ext <<_ACEOF
4789 /* end confdefs.h. */
4790 #include <sys/types.h>
4791 #include <sys/time.h>
4792 #include <time.h>
4793
4794 int
4795 main ()
4796 {
4797 if ((struct tm *) 0)
4798 return 0;
4799 ;
4800 return 0;
4801 }
4802 _ACEOF
4803 rm -f conftest.$ac_objext
4804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4805 (eval $ac_compile) 2>conftest.er1
4806 ac_status=$?
4807 grep -v '^ *+' conftest.er1 >conftest.err
4808 rm -f conftest.er1
4809 cat conftest.err >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); } &&
4812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814 (eval $ac_try) 2>&5
4815 ac_status=$?
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; } &&
4818 { ac_try='test -s conftest.$ac_objext'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820 (eval $ac_try) 2>&5
4821 ac_status=$?
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; }; then
4824 ac_cv_header_time=yes
4825 else
4826 echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.$ac_ext >&5
4828
4829 ac_cv_header_time=no
4830 fi
4831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4832 fi
4833 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4834 echo "${ECHO_T}$ac_cv_header_time" >&6
4835 if test $ac_cv_header_time = yes; then
4836
4837 cat >>confdefs.h <<\_ACEOF
4838 #define TIME_WITH_SYS_TIME 1
4839 _ACEOF
4840
4841 fi
4842
4843 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4844 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4845 if test "${ac_cv_struct_tm+set}" = set; then
4846 echo $ECHO_N "(cached) $ECHO_C" >&6
4847 else
4848 cat >conftest.$ac_ext <<_ACEOF
4849 /* confdefs.h. */
4850 _ACEOF
4851 cat confdefs.h >>conftest.$ac_ext
4852 cat >>conftest.$ac_ext <<_ACEOF
4853 /* end confdefs.h. */
4854 #include <sys/types.h>
4855 #include <time.h>
4856
4857 int
4858 main ()
4859 {
4860 struct tm *tp; tp->tm_sec;
4861 ;
4862 return 0;
4863 }
4864 _ACEOF
4865 rm -f conftest.$ac_objext
4866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4867 (eval $ac_compile) 2>conftest.er1
4868 ac_status=$?
4869 grep -v '^ *+' conftest.er1 >conftest.err
4870 rm -f conftest.er1
4871 cat conftest.err >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } &&
4874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876 (eval $ac_try) 2>&5
4877 ac_status=$?
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; } &&
4880 { ac_try='test -s conftest.$ac_objext'
4881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882 (eval $ac_try) 2>&5
4883 ac_status=$?
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; }; then
4886 ac_cv_struct_tm=time.h
4887 else
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4890
4891 ac_cv_struct_tm=sys/time.h
4892 fi
4893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4894 fi
4895 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4896 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4897 if test $ac_cv_struct_tm = sys/time.h; then
4898
4899 cat >>confdefs.h <<\_ACEOF
4900 #define TM_IN_SYS_TIME 1
4901 _ACEOF
4902
4903 fi
4904
4905 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4906 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4907 if test "${ac_cv_type_uid_t+set}" = set; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 else
4910 cat >conftest.$ac_ext <<_ACEOF
4911 /* confdefs.h. */
4912 _ACEOF
4913 cat confdefs.h >>conftest.$ac_ext
4914 cat >>conftest.$ac_ext <<_ACEOF
4915 /* end confdefs.h. */
4916 #include <sys/types.h>
4917
4918 _ACEOF
4919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4920 $EGREP "uid_t" >/dev/null 2>&1; then
4921 ac_cv_type_uid_t=yes
4922 else
4923 ac_cv_type_uid_t=no
4924 fi
4925 rm -f conftest*
4926
4927 fi
4928 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4929 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4930 if test $ac_cv_type_uid_t = no; then
4931
4932 cat >>confdefs.h <<\_ACEOF
4933 #define uid_t int
4934 _ACEOF
4935
4936
4937 cat >>confdefs.h <<\_ACEOF
4938 #define gid_t int
4939 _ACEOF
4940
4941 fi
4942
4943 echo "$as_me:$LINENO: checking for short" >&5
4944 echo $ECHO_N "checking for short... $ECHO_C" >&6
4945 if test "${ac_cv_type_short+set}" = set; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4947 else
4948 cat >conftest.$ac_ext <<_ACEOF
4949 /* confdefs.h. */
4950 _ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h. */
4954 $ac_includes_default
4955 int
4956 main ()
4957 {
4958 if ((short *) 0)
4959 return 0;
4960 if (sizeof (short))
4961 return 0;
4962 ;
4963 return 0;
4964 }
4965 _ACEOF
4966 rm -f conftest.$ac_objext
4967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4968 (eval $ac_compile) 2>conftest.er1
4969 ac_status=$?
4970 grep -v '^ *+' conftest.er1 >conftest.err
4971 rm -f conftest.er1
4972 cat conftest.err >&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); } &&
4975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4977 (eval $ac_try) 2>&5
4978 ac_status=$?
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); }; } &&
4981 { ac_try='test -s conftest.$ac_objext'
4982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4983 (eval $ac_try) 2>&5
4984 ac_status=$?
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); }; }; then
4987 ac_cv_type_short=yes
4988 else
4989 echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4991
4992 ac_cv_type_short=no
4993 fi
4994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4995 fi
4996 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4997 echo "${ECHO_T}$ac_cv_type_short" >&6
4998
4999 echo "$as_me:$LINENO: checking size of short" >&5
5000 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5001 if test "${ac_cv_sizeof_short+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 else
5004 if test "$ac_cv_type_short" = yes; then
5005 # The cast to unsigned long works around a bug in the HP C Compiler
5006 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5007 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5008 # This bug is HP SR number 8606223364.
5009 if test "$cross_compiling" = yes; then
5010 # Depending upon the size, compute the lo and hi bounds.
5011 cat >conftest.$ac_ext <<_ACEOF
5012 /* confdefs.h. */
5013 _ACEOF
5014 cat confdefs.h >>conftest.$ac_ext
5015 cat >>conftest.$ac_ext <<_ACEOF
5016 /* end confdefs.h. */
5017 $ac_includes_default
5018 int
5019 main ()
5020 {
5021 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5022 test_array [0] = 0
5023
5024 ;
5025 return 0;
5026 }
5027 _ACEOF
5028 rm -f conftest.$ac_objext
5029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5030 (eval $ac_compile) 2>conftest.er1
5031 ac_status=$?
5032 grep -v '^ *+' conftest.er1 >conftest.err
5033 rm -f conftest.er1
5034 cat conftest.err >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } &&
5037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 (eval $ac_try) 2>&5
5040 ac_status=$?
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; } &&
5043 { ac_try='test -s conftest.$ac_objext'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045 (eval $ac_try) 2>&5
5046 ac_status=$?
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5049 ac_lo=0 ac_mid=0
5050 while :; do
5051 cat >conftest.$ac_ext <<_ACEOF
5052 /* confdefs.h. */
5053 _ACEOF
5054 cat confdefs.h >>conftest.$ac_ext
5055 cat >>conftest.$ac_ext <<_ACEOF
5056 /* end confdefs.h. */
5057 $ac_includes_default
5058 int
5059 main ()
5060 {
5061 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5062 test_array [0] = 0
5063
5064 ;
5065 return 0;
5066 }
5067 _ACEOF
5068 rm -f conftest.$ac_objext
5069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5070 (eval $ac_compile) 2>conftest.er1
5071 ac_status=$?
5072 grep -v '^ *+' conftest.er1 >conftest.err
5073 rm -f conftest.er1
5074 cat conftest.err >&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); } &&
5077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079 (eval $ac_try) 2>&5
5080 ac_status=$?
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); }; } &&
5083 { ac_try='test -s conftest.$ac_objext'
5084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085 (eval $ac_try) 2>&5
5086 ac_status=$?
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); }; }; then
5089 ac_hi=$ac_mid; break
5090 else
5091 echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.$ac_ext >&5
5093
5094 ac_lo=`expr $ac_mid + 1`
5095 if test $ac_lo -le $ac_mid; then
5096 ac_lo= ac_hi=
5097 break
5098 fi
5099 ac_mid=`expr 2 '*' $ac_mid + 1`
5100 fi
5101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5102 done
5103 else
5104 echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5106
5107 cat >conftest.$ac_ext <<_ACEOF
5108 /* confdefs.h. */
5109 _ACEOF
5110 cat confdefs.h >>conftest.$ac_ext
5111 cat >>conftest.$ac_ext <<_ACEOF
5112 /* end confdefs.h. */
5113 $ac_includes_default
5114 int
5115 main ()
5116 {
5117 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5118 test_array [0] = 0
5119
5120 ;
5121 return 0;
5122 }
5123 _ACEOF
5124 rm -f conftest.$ac_objext
5125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5126 (eval $ac_compile) 2>conftest.er1
5127 ac_status=$?
5128 grep -v '^ *+' conftest.er1 >conftest.err
5129 rm -f conftest.er1
5130 cat conftest.err >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } &&
5133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135 (eval $ac_try) 2>&5
5136 ac_status=$?
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); }; } &&
5139 { ac_try='test -s conftest.$ac_objext'
5140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141 (eval $ac_try) 2>&5
5142 ac_status=$?
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); }; }; then
5145 ac_hi=-1 ac_mid=-1
5146 while :; do
5147 cat >conftest.$ac_ext <<_ACEOF
5148 /* confdefs.h. */
5149 _ACEOF
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h. */
5153 $ac_includes_default
5154 int
5155 main ()
5156 {
5157 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5158 test_array [0] = 0
5159
5160 ;
5161 return 0;
5162 }
5163 _ACEOF
5164 rm -f conftest.$ac_objext
5165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5166 (eval $ac_compile) 2>conftest.er1
5167 ac_status=$?
5168 grep -v '^ *+' conftest.er1 >conftest.err
5169 rm -f conftest.er1
5170 cat conftest.err >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); } &&
5173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175 (eval $ac_try) 2>&5
5176 ac_status=$?
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); }; } &&
5179 { ac_try='test -s conftest.$ac_objext'
5180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5181 (eval $ac_try) 2>&5
5182 ac_status=$?
5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); }; }; then
5185 ac_lo=$ac_mid; break
5186 else
5187 echo "$as_me: failed program was:" >&5
5188 sed 's/^/| /' conftest.$ac_ext >&5
5189
5190 ac_hi=`expr '(' $ac_mid ')' - 1`
5191 if test $ac_mid -le $ac_hi; then
5192 ac_lo= ac_hi=
5193 break
5194 fi
5195 ac_mid=`expr 2 '*' $ac_mid`
5196 fi
5197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5198 done
5199 else
5200 echo "$as_me: failed program was:" >&5
5201 sed 's/^/| /' conftest.$ac_ext >&5
5202
5203 ac_lo= ac_hi=
5204 fi
5205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5206 fi
5207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5208 # Binary search between lo and hi bounds.
5209 while test "x$ac_lo" != "x$ac_hi"; do
5210 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5211 cat >conftest.$ac_ext <<_ACEOF
5212 /* confdefs.h. */
5213 _ACEOF
5214 cat confdefs.h >>conftest.$ac_ext
5215 cat >>conftest.$ac_ext <<_ACEOF
5216 /* end confdefs.h. */
5217 $ac_includes_default
5218 int
5219 main ()
5220 {
5221 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5222 test_array [0] = 0
5223
5224 ;
5225 return 0;
5226 }
5227 _ACEOF
5228 rm -f conftest.$ac_objext
5229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5230 (eval $ac_compile) 2>conftest.er1
5231 ac_status=$?
5232 grep -v '^ *+' conftest.er1 >conftest.err
5233 rm -f conftest.er1
5234 cat conftest.err >&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } &&
5237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5239 (eval $ac_try) 2>&5
5240 ac_status=$?
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); }; } &&
5243 { ac_try='test -s conftest.$ac_objext'
5244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5245 (eval $ac_try) 2>&5
5246 ac_status=$?
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }; }; then
5249 ac_hi=$ac_mid
5250 else
5251 echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.$ac_ext >&5
5253
5254 ac_lo=`expr '(' $ac_mid ')' + 1`
5255 fi
5256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5257 done
5258 case $ac_lo in
5259 ?*) ac_cv_sizeof_short=$ac_lo;;
5260 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5261 See \`config.log' for more details." >&5
5262 echo "$as_me: error: cannot compute sizeof (short), 77
5263 See \`config.log' for more details." >&2;}
5264 { (exit 1); exit 1; }; } ;;
5265 esac
5266 else
5267 if test "$cross_compiling" = yes; then
5268 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5269 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5270 { (exit 1); exit 1; }; }
5271 else
5272 cat >conftest.$ac_ext <<_ACEOF
5273 /* confdefs.h. */
5274 _ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h. */
5278 $ac_includes_default
5279 long longval () { return (long) (sizeof (short)); }
5280 unsigned long ulongval () { return (long) (sizeof (short)); }
5281 #include <stdio.h>
5282 #include <stdlib.h>
5283 int
5284 main ()
5285 {
5286
5287 FILE *f = fopen ("conftest.val", "w");
5288 if (! f)
5289 exit (1);
5290 if (((long) (sizeof (short))) < 0)
5291 {
5292 long i = longval ();
5293 if (i != ((long) (sizeof (short))))
5294 exit (1);
5295 fprintf (f, "%ld\n", i);
5296 }
5297 else
5298 {
5299 unsigned long i = ulongval ();
5300 if (i != ((long) (sizeof (short))))
5301 exit (1);
5302 fprintf (f, "%lu\n", i);
5303 }
5304 exit (ferror (f) || fclose (f) != 0);
5305
5306 ;
5307 return 0;
5308 }
5309 _ACEOF
5310 rm -f conftest$ac_exeext
5311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5312 (eval $ac_link) 2>&5
5313 ac_status=$?
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317 (eval $ac_try) 2>&5
5318 ac_status=$?
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; }; then
5321 ac_cv_sizeof_short=`cat conftest.val`
5322 else
5323 echo "$as_me: program exited with status $ac_status" >&5
5324 echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5326
5327 ( exit $ac_status )
5328 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5329 See \`config.log' for more details." >&5
5330 echo "$as_me: error: cannot compute sizeof (short), 77
5331 See \`config.log' for more details." >&2;}
5332 { (exit 1); exit 1; }; }
5333 fi
5334 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5335 fi
5336 fi
5337 rm -f conftest.val
5338 else
5339 ac_cv_sizeof_short=0
5340 fi
5341 fi
5342 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5343 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5344 cat >>confdefs.h <<_ACEOF
5345 #define SIZEOF_SHORT $ac_cv_sizeof_short
5346 _ACEOF
5347
5348
5349 echo "$as_me:$LINENO: checking for int" >&5
5350 echo $ECHO_N "checking for int... $ECHO_C" >&6
5351 if test "${ac_cv_type_int+set}" = set; then
5352 echo $ECHO_N "(cached) $ECHO_C" >&6
5353 else
5354 cat >conftest.$ac_ext <<_ACEOF
5355 /* confdefs.h. */
5356 _ACEOF
5357 cat confdefs.h >>conftest.$ac_ext
5358 cat >>conftest.$ac_ext <<_ACEOF
5359 /* end confdefs.h. */
5360 $ac_includes_default
5361 int
5362 main ()
5363 {
5364 if ((int *) 0)
5365 return 0;
5366 if (sizeof (int))
5367 return 0;
5368 ;
5369 return 0;
5370 }
5371 _ACEOF
5372 rm -f conftest.$ac_objext
5373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5374 (eval $ac_compile) 2>conftest.er1
5375 ac_status=$?
5376 grep -v '^ *+' conftest.er1 >conftest.err
5377 rm -f conftest.er1
5378 cat conftest.err >&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); } &&
5381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383 (eval $ac_try) 2>&5
5384 ac_status=$?
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }; } &&
5387 { ac_try='test -s conftest.$ac_objext'
5388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389 (eval $ac_try) 2>&5
5390 ac_status=$?
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }; }; then
5393 ac_cv_type_int=yes
5394 else
5395 echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.$ac_ext >&5
5397
5398 ac_cv_type_int=no
5399 fi
5400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5401 fi
5402 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5403 echo "${ECHO_T}$ac_cv_type_int" >&6
5404
5405 echo "$as_me:$LINENO: checking size of int" >&5
5406 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5407 if test "${ac_cv_sizeof_int+set}" = set; then
5408 echo $ECHO_N "(cached) $ECHO_C" >&6
5409 else
5410 if test "$ac_cv_type_int" = yes; then
5411 # The cast to unsigned long works around a bug in the HP C Compiler
5412 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5413 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5414 # This bug is HP SR number 8606223364.
5415 if test "$cross_compiling" = yes; then
5416 # Depending upon the size, compute the lo and hi bounds.
5417 cat >conftest.$ac_ext <<_ACEOF
5418 /* confdefs.h. */
5419 _ACEOF
5420 cat confdefs.h >>conftest.$ac_ext
5421 cat >>conftest.$ac_ext <<_ACEOF
5422 /* end confdefs.h. */
5423 $ac_includes_default
5424 int
5425 main ()
5426 {
5427 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5428 test_array [0] = 0
5429
5430 ;
5431 return 0;
5432 }
5433 _ACEOF
5434 rm -f conftest.$ac_objext
5435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5436 (eval $ac_compile) 2>conftest.er1
5437 ac_status=$?
5438 grep -v '^ *+' conftest.er1 >conftest.err
5439 rm -f conftest.er1
5440 cat conftest.err >&5
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); } &&
5443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5445 (eval $ac_try) 2>&5
5446 ac_status=$?
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); }; } &&
5449 { ac_try='test -s conftest.$ac_objext'
5450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451 (eval $ac_try) 2>&5
5452 ac_status=$?
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); }; }; then
5455 ac_lo=0 ac_mid=0
5456 while :; do
5457 cat >conftest.$ac_ext <<_ACEOF
5458 /* confdefs.h. */
5459 _ACEOF
5460 cat confdefs.h >>conftest.$ac_ext
5461 cat >>conftest.$ac_ext <<_ACEOF
5462 /* end confdefs.h. */
5463 $ac_includes_default
5464 int
5465 main ()
5466 {
5467 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5468 test_array [0] = 0
5469
5470 ;
5471 return 0;
5472 }
5473 _ACEOF
5474 rm -f conftest.$ac_objext
5475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5476 (eval $ac_compile) 2>conftest.er1
5477 ac_status=$?
5478 grep -v '^ *+' conftest.er1 >conftest.err
5479 rm -f conftest.er1
5480 cat conftest.err >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } &&
5483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5485 (eval $ac_try) 2>&5
5486 ac_status=$?
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); }; } &&
5489 { ac_try='test -s conftest.$ac_objext'
5490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491 (eval $ac_try) 2>&5
5492 ac_status=$?
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); }; }; then
5495 ac_hi=$ac_mid; break
5496 else
5497 echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5499
5500 ac_lo=`expr $ac_mid + 1`
5501 if test $ac_lo -le $ac_mid; then
5502 ac_lo= ac_hi=
5503 break
5504 fi
5505 ac_mid=`expr 2 '*' $ac_mid + 1`
5506 fi
5507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5508 done
5509 else
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5512
5513 cat >conftest.$ac_ext <<_ACEOF
5514 /* confdefs.h. */
5515 _ACEOF
5516 cat confdefs.h >>conftest.$ac_ext
5517 cat >>conftest.$ac_ext <<_ACEOF
5518 /* end confdefs.h. */
5519 $ac_includes_default
5520 int
5521 main ()
5522 {
5523 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5524 test_array [0] = 0
5525
5526 ;
5527 return 0;
5528 }
5529 _ACEOF
5530 rm -f conftest.$ac_objext
5531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5532 (eval $ac_compile) 2>conftest.er1
5533 ac_status=$?
5534 grep -v '^ *+' conftest.er1 >conftest.err
5535 rm -f conftest.er1
5536 cat conftest.err >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } &&
5539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541 (eval $ac_try) 2>&5
5542 ac_status=$?
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); }; } &&
5545 { ac_try='test -s conftest.$ac_objext'
5546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547 (eval $ac_try) 2>&5
5548 ac_status=$?
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); }; }; then
5551 ac_hi=-1 ac_mid=-1
5552 while :; do
5553 cat >conftest.$ac_ext <<_ACEOF
5554 /* confdefs.h. */
5555 _ACEOF
5556 cat confdefs.h >>conftest.$ac_ext
5557 cat >>conftest.$ac_ext <<_ACEOF
5558 /* end confdefs.h. */
5559 $ac_includes_default
5560 int
5561 main ()
5562 {
5563 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5564 test_array [0] = 0
5565
5566 ;
5567 return 0;
5568 }
5569 _ACEOF
5570 rm -f conftest.$ac_objext
5571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5572 (eval $ac_compile) 2>conftest.er1
5573 ac_status=$?
5574 grep -v '^ *+' conftest.er1 >conftest.err
5575 rm -f conftest.er1
5576 cat conftest.err >&5
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); } &&
5579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5581 (eval $ac_try) 2>&5
5582 ac_status=$?
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); }; } &&
5585 { ac_try='test -s conftest.$ac_objext'
5586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5587 (eval $ac_try) 2>&5
5588 ac_status=$?
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); }; }; then
5591 ac_lo=$ac_mid; break
5592 else
5593 echo "$as_me: failed program was:" >&5
5594 sed 's/^/| /' conftest.$ac_ext >&5
5595
5596 ac_hi=`expr '(' $ac_mid ')' - 1`
5597 if test $ac_mid -le $ac_hi; then
5598 ac_lo= ac_hi=
5599 break
5600 fi
5601 ac_mid=`expr 2 '*' $ac_mid`
5602 fi
5603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5604 done
5605 else
5606 echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.$ac_ext >&5
5608
5609 ac_lo= ac_hi=
5610 fi
5611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5612 fi
5613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5614 # Binary search between lo and hi bounds.
5615 while test "x$ac_lo" != "x$ac_hi"; do
5616 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5617 cat >conftest.$ac_ext <<_ACEOF
5618 /* confdefs.h. */
5619 _ACEOF
5620 cat confdefs.h >>conftest.$ac_ext
5621 cat >>conftest.$ac_ext <<_ACEOF
5622 /* end confdefs.h. */
5623 $ac_includes_default
5624 int
5625 main ()
5626 {
5627 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5628 test_array [0] = 0
5629
5630 ;
5631 return 0;
5632 }
5633 _ACEOF
5634 rm -f conftest.$ac_objext
5635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5636 (eval $ac_compile) 2>conftest.er1
5637 ac_status=$?
5638 grep -v '^ *+' conftest.er1 >conftest.err
5639 rm -f conftest.er1
5640 cat conftest.err >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } &&
5643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645 (eval $ac_try) 2>&5
5646 ac_status=$?
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); }; } &&
5649 { ac_try='test -s conftest.$ac_objext'
5650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651 (eval $ac_try) 2>&5
5652 ac_status=$?
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }; }; then
5655 ac_hi=$ac_mid
5656 else
5657 echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.$ac_ext >&5
5659
5660 ac_lo=`expr '(' $ac_mid ')' + 1`
5661 fi
5662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5663 done
5664 case $ac_lo in
5665 ?*) ac_cv_sizeof_int=$ac_lo;;
5666 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5667 See \`config.log' for more details." >&5
5668 echo "$as_me: error: cannot compute sizeof (int), 77
5669 See \`config.log' for more details." >&2;}
5670 { (exit 1); exit 1; }; } ;;
5671 esac
5672 else
5673 if test "$cross_compiling" = yes; then
5674 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5675 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5676 { (exit 1); exit 1; }; }
5677 else
5678 cat >conftest.$ac_ext <<_ACEOF
5679 /* confdefs.h. */
5680 _ACEOF
5681 cat confdefs.h >>conftest.$ac_ext
5682 cat >>conftest.$ac_ext <<_ACEOF
5683 /* end confdefs.h. */
5684 $ac_includes_default
5685 long longval () { return (long) (sizeof (int)); }
5686 unsigned long ulongval () { return (long) (sizeof (int)); }
5687 #include <stdio.h>
5688 #include <stdlib.h>
5689 int
5690 main ()
5691 {
5692
5693 FILE *f = fopen ("conftest.val", "w");
5694 if (! f)
5695 exit (1);
5696 if (((long) (sizeof (int))) < 0)
5697 {
5698 long i = longval ();
5699 if (i != ((long) (sizeof (int))))
5700 exit (1);
5701 fprintf (f, "%ld\n", i);
5702 }
5703 else
5704 {
5705 unsigned long i = ulongval ();
5706 if (i != ((long) (sizeof (int))))
5707 exit (1);
5708 fprintf (f, "%lu\n", i);
5709 }
5710 exit (ferror (f) || fclose (f) != 0);
5711
5712 ;
5713 return 0;
5714 }
5715 _ACEOF
5716 rm -f conftest$ac_exeext
5717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5718 (eval $ac_link) 2>&5
5719 ac_status=$?
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723 (eval $ac_try) 2>&5
5724 ac_status=$?
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; }; then
5727 ac_cv_sizeof_int=`cat conftest.val`
5728 else
5729 echo "$as_me: program exited with status $ac_status" >&5
5730 echo "$as_me: failed program was:" >&5
5731 sed 's/^/| /' conftest.$ac_ext >&5
5732
5733 ( exit $ac_status )
5734 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5735 See \`config.log' for more details." >&5
5736 echo "$as_me: error: cannot compute sizeof (int), 77
5737 See \`config.log' for more details." >&2;}
5738 { (exit 1); exit 1; }; }
5739 fi
5740 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5741 fi
5742 fi
5743 rm -f conftest.val
5744 else
5745 ac_cv_sizeof_int=0
5746 fi
5747 fi
5748 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5749 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5750 cat >>confdefs.h <<_ACEOF
5751 #define SIZEOF_INT $ac_cv_sizeof_int
5752 _ACEOF
5753
5754
5755 echo "$as_me:$LINENO: checking for long" >&5
5756 echo $ECHO_N "checking for long... $ECHO_C" >&6
5757 if test "${ac_cv_type_long+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5759 else
5760 cat >conftest.$ac_ext <<_ACEOF
5761 /* confdefs.h. */
5762 _ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5766 $ac_includes_default
5767 int
5768 main ()
5769 {
5770 if ((long *) 0)
5771 return 0;
5772 if (sizeof (long))
5773 return 0;
5774 ;
5775 return 0;
5776 }
5777 _ACEOF
5778 rm -f conftest.$ac_objext
5779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5780 (eval $ac_compile) 2>conftest.er1
5781 ac_status=$?
5782 grep -v '^ *+' conftest.er1 >conftest.err
5783 rm -f conftest.er1
5784 cat conftest.err >&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); } &&
5787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 (eval $ac_try) 2>&5
5790 ac_status=$?
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; } &&
5793 { ac_try='test -s conftest.$ac_objext'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795 (eval $ac_try) 2>&5
5796 ac_status=$?
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; }; then
5799 ac_cv_type_long=yes
5800 else
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5803
5804 ac_cv_type_long=no
5805 fi
5806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5807 fi
5808 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5809 echo "${ECHO_T}$ac_cv_type_long" >&6
5810
5811 echo "$as_me:$LINENO: checking size of long" >&5
5812 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5813 if test "${ac_cv_sizeof_long+set}" = set; then
5814 echo $ECHO_N "(cached) $ECHO_C" >&6
5815 else
5816 if test "$ac_cv_type_long" = yes; then
5817 # The cast to unsigned long works around a bug in the HP C Compiler
5818 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5819 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5820 # This bug is HP SR number 8606223364.
5821 if test "$cross_compiling" = yes; then
5822 # Depending upon the size, compute the lo and hi bounds.
5823 cat >conftest.$ac_ext <<_ACEOF
5824 /* confdefs.h. */
5825 _ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5829 $ac_includes_default
5830 int
5831 main ()
5832 {
5833 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5834 test_array [0] = 0
5835
5836 ;
5837 return 0;
5838 }
5839 _ACEOF
5840 rm -f conftest.$ac_objext
5841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5842 (eval $ac_compile) 2>conftest.er1
5843 ac_status=$?
5844 grep -v '^ *+' conftest.er1 >conftest.err
5845 rm -f conftest.er1
5846 cat conftest.err >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); } &&
5849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5851 (eval $ac_try) 2>&5
5852 ac_status=$?
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); }; } &&
5855 { ac_try='test -s conftest.$ac_objext'
5856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5857 (eval $ac_try) 2>&5
5858 ac_status=$?
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); }; }; then
5861 ac_lo=0 ac_mid=0
5862 while :; do
5863 cat >conftest.$ac_ext <<_ACEOF
5864 /* confdefs.h. */
5865 _ACEOF
5866 cat confdefs.h >>conftest.$ac_ext
5867 cat >>conftest.$ac_ext <<_ACEOF
5868 /* end confdefs.h. */
5869 $ac_includes_default
5870 int
5871 main ()
5872 {
5873 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5874 test_array [0] = 0
5875
5876 ;
5877 return 0;
5878 }
5879 _ACEOF
5880 rm -f conftest.$ac_objext
5881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5882 (eval $ac_compile) 2>conftest.er1
5883 ac_status=$?
5884 grep -v '^ *+' conftest.er1 >conftest.err
5885 rm -f conftest.er1
5886 cat conftest.err >&5
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); } &&
5889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5891 (eval $ac_try) 2>&5
5892 ac_status=$?
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; } &&
5895 { ac_try='test -s conftest.$ac_objext'
5896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5897 (eval $ac_try) 2>&5
5898 ac_status=$?
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); }; }; then
5901 ac_hi=$ac_mid; break
5902 else
5903 echo "$as_me: failed program was:" >&5
5904 sed 's/^/| /' conftest.$ac_ext >&5
5905
5906 ac_lo=`expr $ac_mid + 1`
5907 if test $ac_lo -le $ac_mid; then
5908 ac_lo= ac_hi=
5909 break
5910 fi
5911 ac_mid=`expr 2 '*' $ac_mid + 1`
5912 fi
5913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5914 done
5915 else
5916 echo "$as_me: failed program was:" >&5
5917 sed 's/^/| /' conftest.$ac_ext >&5
5918
5919 cat >conftest.$ac_ext <<_ACEOF
5920 /* confdefs.h. */
5921 _ACEOF
5922 cat confdefs.h >>conftest.$ac_ext
5923 cat >>conftest.$ac_ext <<_ACEOF
5924 /* end confdefs.h. */
5925 $ac_includes_default
5926 int
5927 main ()
5928 {
5929 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5930 test_array [0] = 0
5931
5932 ;
5933 return 0;
5934 }
5935 _ACEOF
5936 rm -f conftest.$ac_objext
5937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5938 (eval $ac_compile) 2>conftest.er1
5939 ac_status=$?
5940 grep -v '^ *+' conftest.er1 >conftest.err
5941 rm -f conftest.er1
5942 cat conftest.err >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); } &&
5945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 (eval $ac_try) 2>&5
5948 ac_status=$?
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; } &&
5951 { ac_try='test -s conftest.$ac_objext'
5952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5953 (eval $ac_try) 2>&5
5954 ac_status=$?
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); }; }; then
5957 ac_hi=-1 ac_mid=-1
5958 while :; do
5959 cat >conftest.$ac_ext <<_ACEOF
5960 /* confdefs.h. */
5961 _ACEOF
5962 cat confdefs.h >>conftest.$ac_ext
5963 cat >>conftest.$ac_ext <<_ACEOF
5964 /* end confdefs.h. */
5965 $ac_includes_default
5966 int
5967 main ()
5968 {
5969 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5970 test_array [0] = 0
5971
5972 ;
5973 return 0;
5974 }
5975 _ACEOF
5976 rm -f conftest.$ac_objext
5977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5978 (eval $ac_compile) 2>conftest.er1
5979 ac_status=$?
5980 grep -v '^ *+' conftest.er1 >conftest.err
5981 rm -f conftest.er1
5982 cat conftest.err >&5
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); } &&
5985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5987 (eval $ac_try) 2>&5
5988 ac_status=$?
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); }; } &&
5991 { ac_try='test -s conftest.$ac_objext'
5992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5993 (eval $ac_try) 2>&5
5994 ac_status=$?
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); }; }; then
5997 ac_lo=$ac_mid; break
5998 else
5999 echo "$as_me: failed program was:" >&5
6000 sed 's/^/| /' conftest.$ac_ext >&5
6001
6002 ac_hi=`expr '(' $ac_mid ')' - 1`
6003 if test $ac_mid -le $ac_hi; then
6004 ac_lo= ac_hi=
6005 break
6006 fi
6007 ac_mid=`expr 2 '*' $ac_mid`
6008 fi
6009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6010 done
6011 else
6012 echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.$ac_ext >&5
6014
6015 ac_lo= ac_hi=
6016 fi
6017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6018 fi
6019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6020 # Binary search between lo and hi bounds.
6021 while test "x$ac_lo" != "x$ac_hi"; do
6022 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6023 cat >conftest.$ac_ext <<_ACEOF
6024 /* confdefs.h. */
6025 _ACEOF
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>conftest.$ac_ext <<_ACEOF
6028 /* end confdefs.h. */
6029 $ac_includes_default
6030 int
6031 main ()
6032 {
6033 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6034 test_array [0] = 0
6035
6036 ;
6037 return 0;
6038 }
6039 _ACEOF
6040 rm -f conftest.$ac_objext
6041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6042 (eval $ac_compile) 2>conftest.er1
6043 ac_status=$?
6044 grep -v '^ *+' conftest.er1 >conftest.err
6045 rm -f conftest.er1
6046 cat conftest.err >&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); } &&
6049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6051 (eval $ac_try) 2>&5
6052 ac_status=$?
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); }; } &&
6055 { ac_try='test -s conftest.$ac_objext'
6056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6057 (eval $ac_try) 2>&5
6058 ac_status=$?
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); }; }; then
6061 ac_hi=$ac_mid
6062 else
6063 echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6065
6066 ac_lo=`expr '(' $ac_mid ')' + 1`
6067 fi
6068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6069 done
6070 case $ac_lo in
6071 ?*) ac_cv_sizeof_long=$ac_lo;;
6072 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6073 See \`config.log' for more details." >&5
6074 echo "$as_me: error: cannot compute sizeof (long), 77
6075 See \`config.log' for more details." >&2;}
6076 { (exit 1); exit 1; }; } ;;
6077 esac
6078 else
6079 if test "$cross_compiling" = yes; then
6080 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6081 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6082 { (exit 1); exit 1; }; }
6083 else
6084 cat >conftest.$ac_ext <<_ACEOF
6085 /* confdefs.h. */
6086 _ACEOF
6087 cat confdefs.h >>conftest.$ac_ext
6088 cat >>conftest.$ac_ext <<_ACEOF
6089 /* end confdefs.h. */
6090 $ac_includes_default
6091 long longval () { return (long) (sizeof (long)); }
6092 unsigned long ulongval () { return (long) (sizeof (long)); }
6093 #include <stdio.h>
6094 #include <stdlib.h>
6095 int
6096 main ()
6097 {
6098
6099 FILE *f = fopen ("conftest.val", "w");
6100 if (! f)
6101 exit (1);
6102 if (((long) (sizeof (long))) < 0)
6103 {
6104 long i = longval ();
6105 if (i != ((long) (sizeof (long))))
6106 exit (1);
6107 fprintf (f, "%ld\n", i);
6108 }
6109 else
6110 {
6111 unsigned long i = ulongval ();
6112 if (i != ((long) (sizeof (long))))
6113 exit (1);
6114 fprintf (f, "%lu\n", i);
6115 }
6116 exit (ferror (f) || fclose (f) != 0);
6117
6118 ;
6119 return 0;
6120 }
6121 _ACEOF
6122 rm -f conftest$ac_exeext
6123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6124 (eval $ac_link) 2>&5
6125 ac_status=$?
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129 (eval $ac_try) 2>&5
6130 ac_status=$?
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; }; then
6133 ac_cv_sizeof_long=`cat conftest.val`
6134 else
6135 echo "$as_me: program exited with status $ac_status" >&5
6136 echo "$as_me: failed program was:" >&5
6137 sed 's/^/| /' conftest.$ac_ext >&5
6138
6139 ( exit $ac_status )
6140 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6141 See \`config.log' for more details." >&5
6142 echo "$as_me: error: cannot compute sizeof (long), 77
6143 See \`config.log' for more details." >&2;}
6144 { (exit 1); exit 1; }; }
6145 fi
6146 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6147 fi
6148 fi
6149 rm -f conftest.val
6150 else
6151 ac_cv_sizeof_long=0
6152 fi
6153 fi
6154 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6155 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6156 cat >>confdefs.h <<_ACEOF
6157 #define SIZEOF_LONG $ac_cv_sizeof_long
6158 _ACEOF
6159
6160
6161 echo "$as_me:$LINENO: checking for void *" >&5
6162 echo $ECHO_N "checking for void *... $ECHO_C" >&6
6163 if test "${ac_cv_type_void_p+set}" = set; then
6164 echo $ECHO_N "(cached) $ECHO_C" >&6
6165 else
6166 cat >conftest.$ac_ext <<_ACEOF
6167 /* confdefs.h. */
6168 _ACEOF
6169 cat confdefs.h >>conftest.$ac_ext
6170 cat >>conftest.$ac_ext <<_ACEOF
6171 /* end confdefs.h. */
6172 $ac_includes_default
6173 int
6174 main ()
6175 {
6176 if ((void * *) 0)
6177 return 0;
6178 if (sizeof (void *))
6179 return 0;
6180 ;
6181 return 0;
6182 }
6183 _ACEOF
6184 rm -f conftest.$ac_objext
6185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6186 (eval $ac_compile) 2>conftest.er1
6187 ac_status=$?
6188 grep -v '^ *+' conftest.er1 >conftest.err
6189 rm -f conftest.er1
6190 cat conftest.err >&5
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); } &&
6193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195 (eval $ac_try) 2>&5
6196 ac_status=$?
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; } &&
6199 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6205 ac_cv_type_void_p=yes
6206 else
6207 echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6209
6210 ac_cv_type_void_p=no
6211 fi
6212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6213 fi
6214 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
6215 echo "${ECHO_T}$ac_cv_type_void_p" >&6
6216
6217 echo "$as_me:$LINENO: checking size of void *" >&5
6218 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
6219 if test "${ac_cv_sizeof_void_p+set}" = set; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6221 else
6222 if test "$ac_cv_type_void_p" = yes; then
6223 # The cast to unsigned long works around a bug in the HP C Compiler
6224 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6225 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6226 # This bug is HP SR number 8606223364.
6227 if test "$cross_compiling" = yes; then
6228 # Depending upon the size, compute the lo and hi bounds.
6229 cat >conftest.$ac_ext <<_ACEOF
6230 /* confdefs.h. */
6231 _ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6235 $ac_includes_default
6236 int
6237 main ()
6238 {
6239 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
6240 test_array [0] = 0
6241
6242 ;
6243 return 0;
6244 }
6245 _ACEOF
6246 rm -f conftest.$ac_objext
6247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6248 (eval $ac_compile) 2>conftest.er1
6249 ac_status=$?
6250 grep -v '^ *+' conftest.er1 >conftest.err
6251 rm -f conftest.er1
6252 cat conftest.err >&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); } &&
6255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6257 (eval $ac_try) 2>&5
6258 ac_status=$?
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); }; } &&
6261 { ac_try='test -s conftest.$ac_objext'
6262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263 (eval $ac_try) 2>&5
6264 ac_status=$?
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }; }; then
6267 ac_lo=0 ac_mid=0
6268 while :; do
6269 cat >conftest.$ac_ext <<_ACEOF
6270 /* confdefs.h. */
6271 _ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h. */
6275 $ac_includes_default
6276 int
6277 main ()
6278 {
6279 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6280 test_array [0] = 0
6281
6282 ;
6283 return 0;
6284 }
6285 _ACEOF
6286 rm -f conftest.$ac_objext
6287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6288 (eval $ac_compile) 2>conftest.er1
6289 ac_status=$?
6290 grep -v '^ *+' conftest.er1 >conftest.err
6291 rm -f conftest.er1
6292 cat conftest.err >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); } &&
6295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297 (eval $ac_try) 2>&5
6298 ac_status=$?
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; } &&
6301 { ac_try='test -s conftest.$ac_objext'
6302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6303 (eval $ac_try) 2>&5
6304 ac_status=$?
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; }; then
6307 ac_hi=$ac_mid; break
6308 else
6309 echo "$as_me: failed program was:" >&5
6310 sed 's/^/| /' conftest.$ac_ext >&5
6311
6312 ac_lo=`expr $ac_mid + 1`
6313 if test $ac_lo -le $ac_mid; then
6314 ac_lo= ac_hi=
6315 break
6316 fi
6317 ac_mid=`expr 2 '*' $ac_mid + 1`
6318 fi
6319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6320 done
6321 else
6322 echo "$as_me: failed program was:" >&5
6323 sed 's/^/| /' conftest.$ac_ext >&5
6324
6325 cat >conftest.$ac_ext <<_ACEOF
6326 /* confdefs.h. */
6327 _ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h. */
6331 $ac_includes_default
6332 int
6333 main ()
6334 {
6335 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
6336 test_array [0] = 0
6337
6338 ;
6339 return 0;
6340 }
6341 _ACEOF
6342 rm -f conftest.$ac_objext
6343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6344 (eval $ac_compile) 2>conftest.er1
6345 ac_status=$?
6346 grep -v '^ *+' conftest.er1 >conftest.err
6347 rm -f conftest.er1
6348 cat conftest.err >&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); } &&
6351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353 (eval $ac_try) 2>&5
6354 ac_status=$?
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); }; } &&
6357 { ac_try='test -s conftest.$ac_objext'
6358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359 (eval $ac_try) 2>&5
6360 ac_status=$?
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }; }; then
6363 ac_hi=-1 ac_mid=-1
6364 while :; do
6365 cat >conftest.$ac_ext <<_ACEOF
6366 /* confdefs.h. */
6367 _ACEOF
6368 cat confdefs.h >>conftest.$ac_ext
6369 cat >>conftest.$ac_ext <<_ACEOF
6370 /* end confdefs.h. */
6371 $ac_includes_default
6372 int
6373 main ()
6374 {
6375 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
6376 test_array [0] = 0
6377
6378 ;
6379 return 0;
6380 }
6381 _ACEOF
6382 rm -f conftest.$ac_objext
6383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6384 (eval $ac_compile) 2>conftest.er1
6385 ac_status=$?
6386 grep -v '^ *+' conftest.er1 >conftest.err
6387 rm -f conftest.er1
6388 cat conftest.err >&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } &&
6391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6393 (eval $ac_try) 2>&5
6394 ac_status=$?
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); }; } &&
6397 { ac_try='test -s conftest.$ac_objext'
6398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6399 (eval $ac_try) 2>&5
6400 ac_status=$?
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; }; then
6403 ac_lo=$ac_mid; break
6404 else
6405 echo "$as_me: failed program was:" >&5
6406 sed 's/^/| /' conftest.$ac_ext >&5
6407
6408 ac_hi=`expr '(' $ac_mid ')' - 1`
6409 if test $ac_mid -le $ac_hi; then
6410 ac_lo= ac_hi=
6411 break
6412 fi
6413 ac_mid=`expr 2 '*' $ac_mid`
6414 fi
6415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6416 done
6417 else
6418 echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.$ac_ext >&5
6420
6421 ac_lo= ac_hi=
6422 fi
6423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6424 fi
6425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6426 # Binary search between lo and hi bounds.
6427 while test "x$ac_lo" != "x$ac_hi"; do
6428 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6429 cat >conftest.$ac_ext <<_ACEOF
6430 /* confdefs.h. */
6431 _ACEOF
6432 cat confdefs.h >>conftest.$ac_ext
6433 cat >>conftest.$ac_ext <<_ACEOF
6434 /* end confdefs.h. */
6435 $ac_includes_default
6436 int
6437 main ()
6438 {
6439 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6440 test_array [0] = 0
6441
6442 ;
6443 return 0;
6444 }
6445 _ACEOF
6446 rm -f conftest.$ac_objext
6447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6448 (eval $ac_compile) 2>conftest.er1
6449 ac_status=$?
6450 grep -v '^ *+' conftest.er1 >conftest.err
6451 rm -f conftest.er1
6452 cat conftest.err >&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); } &&
6455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457 (eval $ac_try) 2>&5
6458 ac_status=$?
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); }; } &&
6461 { ac_try='test -s conftest.$ac_objext'
6462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6463 (eval $ac_try) 2>&5
6464 ac_status=$?
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); }; }; then
6467 ac_hi=$ac_mid
6468 else
6469 echo "$as_me: failed program was:" >&5
6470 sed 's/^/| /' conftest.$ac_ext >&5
6471
6472 ac_lo=`expr '(' $ac_mid ')' + 1`
6473 fi
6474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6475 done
6476 case $ac_lo in
6477 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6478 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6479 See \`config.log' for more details." >&5
6480 echo "$as_me: error: cannot compute sizeof (void *), 77
6481 See \`config.log' for more details." >&2;}
6482 { (exit 1); exit 1; }; } ;;
6483 esac
6484 else
6485 if test "$cross_compiling" = yes; then
6486 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6487 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6488 { (exit 1); exit 1; }; }
6489 else
6490 cat >conftest.$ac_ext <<_ACEOF
6491 /* confdefs.h. */
6492 _ACEOF
6493 cat confdefs.h >>conftest.$ac_ext
6494 cat >>conftest.$ac_ext <<_ACEOF
6495 /* end confdefs.h. */
6496 $ac_includes_default
6497 long longval () { return (long) (sizeof (void *)); }
6498 unsigned long ulongval () { return (long) (sizeof (void *)); }
6499 #include <stdio.h>
6500 #include <stdlib.h>
6501 int
6502 main ()
6503 {
6504
6505 FILE *f = fopen ("conftest.val", "w");
6506 if (! f)
6507 exit (1);
6508 if (((long) (sizeof (void *))) < 0)
6509 {
6510 long i = longval ();
6511 if (i != ((long) (sizeof (void *))))
6512 exit (1);
6513 fprintf (f, "%ld\n", i);
6514 }
6515 else
6516 {
6517 unsigned long i = ulongval ();
6518 if (i != ((long) (sizeof (void *))))
6519 exit (1);
6520 fprintf (f, "%lu\n", i);
6521 }
6522 exit (ferror (f) || fclose (f) != 0);
6523
6524 ;
6525 return 0;
6526 }
6527 _ACEOF
6528 rm -f conftest$ac_exeext
6529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6530 (eval $ac_link) 2>&5
6531 ac_status=$?
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6535 (eval $ac_try) 2>&5
6536 ac_status=$?
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); }; }; then
6539 ac_cv_sizeof_void_p=`cat conftest.val`
6540 else
6541 echo "$as_me: program exited with status $ac_status" >&5
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6544
6545 ( exit $ac_status )
6546 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6547 See \`config.log' for more details." >&5
6548 echo "$as_me: error: cannot compute sizeof (void *), 77
6549 See \`config.log' for more details." >&2;}
6550 { (exit 1); exit 1; }; }
6551 fi
6552 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6553 fi
6554 fi
6555 rm -f conftest.val
6556 else
6557 ac_cv_sizeof_void_p=0
6558 fi
6559 fi
6560 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6561 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
6562 cat >>confdefs.h <<_ACEOF
6563 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6564 _ACEOF
6565
6566
6567 echo "$as_me:$LINENO: checking for int64_t" >&5
6568 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
6569 if test "${ac_cv_type_int64_t+set}" = set; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6571 else
6572 cat >conftest.$ac_ext <<_ACEOF
6573 /* confdefs.h. */
6574 _ACEOF
6575 cat confdefs.h >>conftest.$ac_ext
6576 cat >>conftest.$ac_ext <<_ACEOF
6577 /* end confdefs.h. */
6578 $ac_includes_default
6579 int
6580 main ()
6581 {
6582 if ((int64_t *) 0)
6583 return 0;
6584 if (sizeof (int64_t))
6585 return 0;
6586 ;
6587 return 0;
6588 }
6589 _ACEOF
6590 rm -f conftest.$ac_objext
6591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6592 (eval $ac_compile) 2>conftest.er1
6593 ac_status=$?
6594 grep -v '^ *+' conftest.er1 >conftest.err
6595 rm -f conftest.er1
6596 cat conftest.err >&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } &&
6599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6601 (eval $ac_try) 2>&5
6602 ac_status=$?
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); }; } &&
6605 { ac_try='test -s conftest.$ac_objext'
6606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 (eval $ac_try) 2>&5
6608 ac_status=$?
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); }; }; then
6611 ac_cv_type_int64_t=yes
6612 else
6613 echo "$as_me: failed program was:" >&5
6614 sed 's/^/| /' conftest.$ac_ext >&5
6615
6616 ac_cv_type_int64_t=no
6617 fi
6618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6619 fi
6620 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
6621 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
6622
6623 echo "$as_me:$LINENO: checking size of int64_t" >&5
6624 echo $ECHO_N "checking size of int64_t... $ECHO_C" >&6
6625 if test "${ac_cv_sizeof_int64_t+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6627 else
6628 if test "$ac_cv_type_int64_t" = yes; then
6629 # The cast to unsigned long works around a bug in the HP C Compiler
6630 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6631 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6632 # This bug is HP SR number 8606223364.
6633 if test "$cross_compiling" = yes; then
6634 # Depending upon the size, compute the lo and hi bounds.
6635 cat >conftest.$ac_ext <<_ACEOF
6636 /* confdefs.h. */
6637 _ACEOF
6638 cat confdefs.h >>conftest.$ac_ext
6639 cat >>conftest.$ac_ext <<_ACEOF
6640 /* end confdefs.h. */
6641 $ac_includes_default
6642 int
6643 main ()
6644 {
6645 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= 0)];
6646 test_array [0] = 0
6647
6648 ;
6649 return 0;
6650 }
6651 _ACEOF
6652 rm -f conftest.$ac_objext
6653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6654 (eval $ac_compile) 2>conftest.er1
6655 ac_status=$?
6656 grep -v '^ *+' conftest.er1 >conftest.err
6657 rm -f conftest.er1
6658 cat conftest.err >&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); } &&
6661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6663 (eval $ac_try) 2>&5
6664 ac_status=$?
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; } &&
6667 { ac_try='test -s conftest.$ac_objext'
6668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6669 (eval $ac_try) 2>&5
6670 ac_status=$?
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); }; }; then
6673 ac_lo=0 ac_mid=0
6674 while :; do
6675 cat >conftest.$ac_ext <<_ACEOF
6676 /* confdefs.h. */
6677 _ACEOF
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h. */
6681 $ac_includes_default
6682 int
6683 main ()
6684 {
6685 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
6686 test_array [0] = 0
6687
6688 ;
6689 return 0;
6690 }
6691 _ACEOF
6692 rm -f conftest.$ac_objext
6693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6694 (eval $ac_compile) 2>conftest.er1
6695 ac_status=$?
6696 grep -v '^ *+' conftest.er1 >conftest.err
6697 rm -f conftest.er1
6698 cat conftest.err >&5
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); } &&
6701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703 (eval $ac_try) 2>&5
6704 ac_status=$?
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; } &&
6707 { ac_try='test -s conftest.$ac_objext'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709 (eval $ac_try) 2>&5
6710 ac_status=$?
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6713 ac_hi=$ac_mid; break
6714 else
6715 echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.$ac_ext >&5
6717
6718 ac_lo=`expr $ac_mid + 1`
6719 if test $ac_lo -le $ac_mid; then
6720 ac_lo= ac_hi=
6721 break
6722 fi
6723 ac_mid=`expr 2 '*' $ac_mid + 1`
6724 fi
6725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726 done
6727 else
6728 echo "$as_me: failed program was:" >&5
6729 sed 's/^/| /' conftest.$ac_ext >&5
6730
6731 cat >conftest.$ac_ext <<_ACEOF
6732 /* confdefs.h. */
6733 _ACEOF
6734 cat confdefs.h >>conftest.$ac_ext
6735 cat >>conftest.$ac_ext <<_ACEOF
6736 /* end confdefs.h. */
6737 $ac_includes_default
6738 int
6739 main ()
6740 {
6741 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) < 0)];
6742 test_array [0] = 0
6743
6744 ;
6745 return 0;
6746 }
6747 _ACEOF
6748 rm -f conftest.$ac_objext
6749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6750 (eval $ac_compile) 2>conftest.er1
6751 ac_status=$?
6752 grep -v '^ *+' conftest.er1 >conftest.err
6753 rm -f conftest.er1
6754 cat conftest.err >&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); } &&
6757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759 (eval $ac_try) 2>&5
6760 ac_status=$?
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); }; } &&
6763 { ac_try='test -s conftest.$ac_objext'
6764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765 (eval $ac_try) 2>&5
6766 ac_status=$?
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; }; then
6769 ac_hi=-1 ac_mid=-1
6770 while :; do
6771 cat >conftest.$ac_ext <<_ACEOF
6772 /* confdefs.h. */
6773 _ACEOF
6774 cat confdefs.h >>conftest.$ac_ext
6775 cat >>conftest.$ac_ext <<_ACEOF
6776 /* end confdefs.h. */
6777 $ac_includes_default
6778 int
6779 main ()
6780 {
6781 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= $ac_mid)];
6782 test_array [0] = 0
6783
6784 ;
6785 return 0;
6786 }
6787 _ACEOF
6788 rm -f conftest.$ac_objext
6789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6790 (eval $ac_compile) 2>conftest.er1
6791 ac_status=$?
6792 grep -v '^ *+' conftest.er1 >conftest.err
6793 rm -f conftest.er1
6794 cat conftest.err >&5
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); } &&
6797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6799 (eval $ac_try) 2>&5
6800 ac_status=$?
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); }; } &&
6803 { ac_try='test -s conftest.$ac_objext'
6804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6805 (eval $ac_try) 2>&5
6806 ac_status=$?
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); }; }; then
6809 ac_lo=$ac_mid; break
6810 else
6811 echo "$as_me: failed program was:" >&5
6812 sed 's/^/| /' conftest.$ac_ext >&5
6813
6814 ac_hi=`expr '(' $ac_mid ')' - 1`
6815 if test $ac_mid -le $ac_hi; then
6816 ac_lo= ac_hi=
6817 break
6818 fi
6819 ac_mid=`expr 2 '*' $ac_mid`
6820 fi
6821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6822 done
6823 else
6824 echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.$ac_ext >&5
6826
6827 ac_lo= ac_hi=
6828 fi
6829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6830 fi
6831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6832 # Binary search between lo and hi bounds.
6833 while test "x$ac_lo" != "x$ac_hi"; do
6834 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6835 cat >conftest.$ac_ext <<_ACEOF
6836 /* confdefs.h. */
6837 _ACEOF
6838 cat confdefs.h >>conftest.$ac_ext
6839 cat >>conftest.$ac_ext <<_ACEOF
6840 /* end confdefs.h. */
6841 $ac_includes_default
6842 int
6843 main ()
6844 {
6845 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
6846 test_array [0] = 0
6847
6848 ;
6849 return 0;
6850 }
6851 _ACEOF
6852 rm -f conftest.$ac_objext
6853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6854 (eval $ac_compile) 2>conftest.er1
6855 ac_status=$?
6856 grep -v '^ *+' conftest.er1 >conftest.err
6857 rm -f conftest.er1
6858 cat conftest.err >&5
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); } &&
6861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6863 (eval $ac_try) 2>&5
6864 ac_status=$?
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); }; } &&
6867 { ac_try='test -s conftest.$ac_objext'
6868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6869 (eval $ac_try) 2>&5
6870 ac_status=$?
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); }; }; then
6873 ac_hi=$ac_mid
6874 else
6875 echo "$as_me: failed program was:" >&5
6876 sed 's/^/| /' conftest.$ac_ext >&5
6877
6878 ac_lo=`expr '(' $ac_mid ')' + 1`
6879 fi
6880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6881 done
6882 case $ac_lo in
6883 ?*) ac_cv_sizeof_int64_t=$ac_lo;;
6884 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
6885 See \`config.log' for more details." >&5
6886 echo "$as_me: error: cannot compute sizeof (int64_t), 77
6887 See \`config.log' for more details." >&2;}
6888 { (exit 1); exit 1; }; } ;;
6889 esac
6890 else
6891 if test "$cross_compiling" = yes; then
6892 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6893 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6894 { (exit 1); exit 1; }; }
6895 else
6896 cat >conftest.$ac_ext <<_ACEOF
6897 /* confdefs.h. */
6898 _ACEOF
6899 cat confdefs.h >>conftest.$ac_ext
6900 cat >>conftest.$ac_ext <<_ACEOF
6901 /* end confdefs.h. */
6902 $ac_includes_default
6903 long longval () { return (long) (sizeof (int64_t)); }
6904 unsigned long ulongval () { return (long) (sizeof (int64_t)); }
6905 #include <stdio.h>
6906 #include <stdlib.h>
6907 int
6908 main ()
6909 {
6910
6911 FILE *f = fopen ("conftest.val", "w");
6912 if (! f)
6913 exit (1);
6914 if (((long) (sizeof (int64_t))) < 0)
6915 {
6916 long i = longval ();
6917 if (i != ((long) (sizeof (int64_t))))
6918 exit (1);
6919 fprintf (f, "%ld\n", i);
6920 }
6921 else
6922 {
6923 unsigned long i = ulongval ();
6924 if (i != ((long) (sizeof (int64_t))))
6925 exit (1);
6926 fprintf (f, "%lu\n", i);
6927 }
6928 exit (ferror (f) || fclose (f) != 0);
6929
6930 ;
6931 return 0;
6932 }
6933 _ACEOF
6934 rm -f conftest$ac_exeext
6935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6936 (eval $ac_link) 2>&5
6937 ac_status=$?
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6941 (eval $ac_try) 2>&5
6942 ac_status=$?
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); }; }; then
6945 ac_cv_sizeof_int64_t=`cat conftest.val`
6946 else
6947 echo "$as_me: program exited with status $ac_status" >&5
6948 echo "$as_me: failed program was:" >&5
6949 sed 's/^/| /' conftest.$ac_ext >&5
6950
6951 ( exit $ac_status )
6952 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
6953 See \`config.log' for more details." >&5
6954 echo "$as_me: error: cannot compute sizeof (int64_t), 77
6955 See \`config.log' for more details." >&2;}
6956 { (exit 1); exit 1; }; }
6957 fi
6958 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6959 fi
6960 fi
6961 rm -f conftest.val
6962 else
6963 ac_cv_sizeof_int64_t=0
6964 fi
6965 fi
6966 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int64_t" >&5
6967 echo "${ECHO_T}$ac_cv_sizeof_int64_t" >&6
6968 cat >>confdefs.h <<_ACEOF
6969 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
6970 _ACEOF
6971
6972
6973 echo "$as_me:$LINENO: checking for long long" >&5
6974 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6975 if test "${ac_cv_type_long_long+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6977 else
6978 cat >conftest.$ac_ext <<_ACEOF
6979 /* confdefs.h. */
6980 _ACEOF
6981 cat confdefs.h >>conftest.$ac_ext
6982 cat >>conftest.$ac_ext <<_ACEOF
6983 /* end confdefs.h. */
6984 $ac_includes_default
6985 int
6986 main ()
6987 {
6988 if ((long long *) 0)
6989 return 0;
6990 if (sizeof (long long))
6991 return 0;
6992 ;
6993 return 0;
6994 }
6995 _ACEOF
6996 rm -f conftest.$ac_objext
6997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6998 (eval $ac_compile) 2>conftest.er1
6999 ac_status=$?
7000 grep -v '^ *+' conftest.er1 >conftest.err
7001 rm -f conftest.er1
7002 cat conftest.err >&5
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); } &&
7005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7007 (eval $ac_try) 2>&5
7008 ac_status=$?
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); }; } &&
7011 { ac_try='test -s conftest.$ac_objext'
7012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013 (eval $ac_try) 2>&5
7014 ac_status=$?
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); }; }; then
7017 ac_cv_type_long_long=yes
7018 else
7019 echo "$as_me: failed program was:" >&5
7020 sed 's/^/| /' conftest.$ac_ext >&5
7021
7022 ac_cv_type_long_long=no
7023 fi
7024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7025 fi
7026 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7027 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7028
7029 echo "$as_me:$LINENO: checking size of long long" >&5
7030 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
7031 if test "${ac_cv_sizeof_long_long+set}" = set; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
7033 else
7034 if test "$ac_cv_type_long_long" = yes; then
7035 # The cast to unsigned long works around a bug in the HP C Compiler
7036 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7037 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7038 # This bug is HP SR number 8606223364.
7039 if test "$cross_compiling" = yes; then
7040 # Depending upon the size, compute the lo and hi bounds.
7041 cat >conftest.$ac_ext <<_ACEOF
7042 /* confdefs.h. */
7043 _ACEOF
7044 cat confdefs.h >>conftest.$ac_ext
7045 cat >>conftest.$ac_ext <<_ACEOF
7046 /* end confdefs.h. */
7047 $ac_includes_default
7048 int
7049 main ()
7050 {
7051 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
7052 test_array [0] = 0
7053
7054 ;
7055 return 0;
7056 }
7057 _ACEOF
7058 rm -f conftest.$ac_objext
7059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7060 (eval $ac_compile) 2>conftest.er1
7061 ac_status=$?
7062 grep -v '^ *+' conftest.er1 >conftest.err
7063 rm -f conftest.er1
7064 cat conftest.err >&5
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); } &&
7067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069 (eval $ac_try) 2>&5
7070 ac_status=$?
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); }; } &&
7073 { ac_try='test -s conftest.$ac_objext'
7074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075 (eval $ac_try) 2>&5
7076 ac_status=$?
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); }; }; then
7079 ac_lo=0 ac_mid=0
7080 while :; do
7081 cat >conftest.$ac_ext <<_ACEOF
7082 /* confdefs.h. */
7083 _ACEOF
7084 cat confdefs.h >>conftest.$ac_ext
7085 cat >>conftest.$ac_ext <<_ACEOF
7086 /* end confdefs.h. */
7087 $ac_includes_default
7088 int
7089 main ()
7090 {
7091 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
7092 test_array [0] = 0
7093
7094 ;
7095 return 0;
7096 }
7097 _ACEOF
7098 rm -f conftest.$ac_objext
7099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7100 (eval $ac_compile) 2>conftest.er1
7101 ac_status=$?
7102 grep -v '^ *+' conftest.er1 >conftest.err
7103 rm -f conftest.er1
7104 cat conftest.err >&5
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); } &&
7107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7109 (eval $ac_try) 2>&5
7110 ac_status=$?
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); }; } &&
7113 { ac_try='test -s conftest.$ac_objext'
7114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7115 (eval $ac_try) 2>&5
7116 ac_status=$?
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); }; }; then
7119 ac_hi=$ac_mid; break
7120 else
7121 echo "$as_me: failed program was:" >&5
7122 sed 's/^/| /' conftest.$ac_ext >&5
7123
7124 ac_lo=`expr $ac_mid + 1`
7125 if test $ac_lo -le $ac_mid; then
7126 ac_lo= ac_hi=
7127 break
7128 fi
7129 ac_mid=`expr 2 '*' $ac_mid + 1`
7130 fi
7131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7132 done
7133 else
7134 echo "$as_me: failed program was:" >&5
7135 sed 's/^/| /' conftest.$ac_ext >&5
7136
7137 cat >conftest.$ac_ext <<_ACEOF
7138 /* confdefs.h. */
7139 _ACEOF
7140 cat confdefs.h >>conftest.$ac_ext
7141 cat >>conftest.$ac_ext <<_ACEOF
7142 /* end confdefs.h. */
7143 $ac_includes_default
7144 int
7145 main ()
7146 {
7147 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
7148 test_array [0] = 0
7149
7150 ;
7151 return 0;
7152 }
7153 _ACEOF
7154 rm -f conftest.$ac_objext
7155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7156 (eval $ac_compile) 2>conftest.er1
7157 ac_status=$?
7158 grep -v '^ *+' conftest.er1 >conftest.err
7159 rm -f conftest.er1
7160 cat conftest.err >&5
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); } &&
7163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7165 (eval $ac_try) 2>&5
7166 ac_status=$?
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); }; } &&
7169 { ac_try='test -s conftest.$ac_objext'
7170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7171 (eval $ac_try) 2>&5
7172 ac_status=$?
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); }; }; then
7175 ac_hi=-1 ac_mid=-1
7176 while :; do
7177 cat >conftest.$ac_ext <<_ACEOF
7178 /* confdefs.h. */
7179 _ACEOF
7180 cat confdefs.h >>conftest.$ac_ext
7181 cat >>conftest.$ac_ext <<_ACEOF
7182 /* end confdefs.h. */
7183 $ac_includes_default
7184 int
7185 main ()
7186 {
7187 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
7188 test_array [0] = 0
7189
7190 ;
7191 return 0;
7192 }
7193 _ACEOF
7194 rm -f conftest.$ac_objext
7195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7196 (eval $ac_compile) 2>conftest.er1
7197 ac_status=$?
7198 grep -v '^ *+' conftest.er1 >conftest.err
7199 rm -f conftest.er1
7200 cat conftest.err >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } &&
7203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205 (eval $ac_try) 2>&5
7206 ac_status=$?
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); }; } &&
7209 { ac_try='test -s conftest.$ac_objext'
7210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7211 (eval $ac_try) 2>&5
7212 ac_status=$?
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); }; }; then
7215 ac_lo=$ac_mid; break
7216 else
7217 echo "$as_me: failed program was:" >&5
7218 sed 's/^/| /' conftest.$ac_ext >&5
7219
7220 ac_hi=`expr '(' $ac_mid ')' - 1`
7221 if test $ac_mid -le $ac_hi; then
7222 ac_lo= ac_hi=
7223 break
7224 fi
7225 ac_mid=`expr 2 '*' $ac_mid`
7226 fi
7227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7228 done
7229 else
7230 echo "$as_me: failed program was:" >&5
7231 sed 's/^/| /' conftest.$ac_ext >&5
7232
7233 ac_lo= ac_hi=
7234 fi
7235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7236 fi
7237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7238 # Binary search between lo and hi bounds.
7239 while test "x$ac_lo" != "x$ac_hi"; do
7240 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7241 cat >conftest.$ac_ext <<_ACEOF
7242 /* confdefs.h. */
7243 _ACEOF
7244 cat confdefs.h >>conftest.$ac_ext
7245 cat >>conftest.$ac_ext <<_ACEOF
7246 /* end confdefs.h. */
7247 $ac_includes_default
7248 int
7249 main ()
7250 {
7251 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
7252 test_array [0] = 0
7253
7254 ;
7255 return 0;
7256 }
7257 _ACEOF
7258 rm -f conftest.$ac_objext
7259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7260 (eval $ac_compile) 2>conftest.er1
7261 ac_status=$?
7262 grep -v '^ *+' conftest.er1 >conftest.err
7263 rm -f conftest.er1
7264 cat conftest.err >&5
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); } &&
7267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7269 (eval $ac_try) 2>&5
7270 ac_status=$?
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); }; } &&
7273 { ac_try='test -s conftest.$ac_objext'
7274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275 (eval $ac_try) 2>&5
7276 ac_status=$?
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); }; }; then
7279 ac_hi=$ac_mid
7280 else
7281 echo "$as_me: failed program was:" >&5
7282 sed 's/^/| /' conftest.$ac_ext >&5
7283
7284 ac_lo=`expr '(' $ac_mid ')' + 1`
7285 fi
7286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7287 done
7288 case $ac_lo in
7289 ?*) ac_cv_sizeof_long_long=$ac_lo;;
7290 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
7291 See \`config.log' for more details." >&5
7292 echo "$as_me: error: cannot compute sizeof (long long), 77
7293 See \`config.log' for more details." >&2;}
7294 { (exit 1); exit 1; }; } ;;
7295 esac
7296 else
7297 if test "$cross_compiling" = yes; then
7298 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7299 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7300 { (exit 1); exit 1; }; }
7301 else
7302 cat >conftest.$ac_ext <<_ACEOF
7303 /* confdefs.h. */
7304 _ACEOF
7305 cat confdefs.h >>conftest.$ac_ext
7306 cat >>conftest.$ac_ext <<_ACEOF
7307 /* end confdefs.h. */
7308 $ac_includes_default
7309 long longval () { return (long) (sizeof (long long)); }
7310 unsigned long ulongval () { return (long) (sizeof (long long)); }
7311 #include <stdio.h>
7312 #include <stdlib.h>
7313 int
7314 main ()
7315 {
7316
7317 FILE *f = fopen ("conftest.val", "w");
7318 if (! f)
7319 exit (1);
7320 if (((long) (sizeof (long long))) < 0)
7321 {
7322 long i = longval ();
7323 if (i != ((long) (sizeof (long long))))
7324 exit (1);
7325 fprintf (f, "%ld\n", i);
7326 }
7327 else
7328 {
7329 unsigned long i = ulongval ();
7330 if (i != ((long) (sizeof (long long))))
7331 exit (1);
7332 fprintf (f, "%lu\n", i);
7333 }
7334 exit (ferror (f) || fclose (f) != 0);
7335
7336 ;
7337 return 0;
7338 }
7339 _ACEOF
7340 rm -f conftest$ac_exeext
7341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7342 (eval $ac_link) 2>&5
7343 ac_status=$?
7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7347 (eval $ac_try) 2>&5
7348 ac_status=$?
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); }; }; then
7351 ac_cv_sizeof_long_long=`cat conftest.val`
7352 else
7353 echo "$as_me: program exited with status $ac_status" >&5
7354 echo "$as_me: failed program was:" >&5
7355 sed 's/^/| /' conftest.$ac_ext >&5
7356
7357 ( exit $ac_status )
7358 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
7359 See \`config.log' for more details." >&5
7360 echo "$as_me: error: cannot compute sizeof (long long), 77
7361 See \`config.log' for more details." >&2;}
7362 { (exit 1); exit 1; }; }
7363 fi
7364 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7365 fi
7366 fi
7367 rm -f conftest.val
7368 else
7369 ac_cv_sizeof_long_long=0
7370 fi
7371 fi
7372 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7373 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
7374 cat >>confdefs.h <<_ACEOF
7375 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7376 _ACEOF
7377
7378
7379 if test "$ac_cv_sizeof_int" = 2 ; then
7380 echo "$as_me:$LINENO: checking for int16_t" >&5
7381 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
7382 if test "${ac_cv_type_int16_t+set}" = set; then
7383 echo $ECHO_N "(cached) $ECHO_C" >&6
7384 else
7385 cat >conftest.$ac_ext <<_ACEOF
7386 /* confdefs.h. */
7387 _ACEOF
7388 cat confdefs.h >>conftest.$ac_ext
7389 cat >>conftest.$ac_ext <<_ACEOF
7390 /* end confdefs.h. */
7391 $ac_includes_default
7392 int
7393 main ()
7394 {
7395 if ((int16_t *) 0)
7396 return 0;
7397 if (sizeof (int16_t))
7398 return 0;
7399 ;
7400 return 0;
7401 }
7402 _ACEOF
7403 rm -f conftest.$ac_objext
7404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7405 (eval $ac_compile) 2>conftest.er1
7406 ac_status=$?
7407 grep -v '^ *+' conftest.er1 >conftest.err
7408 rm -f conftest.er1
7409 cat conftest.err >&5
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); } &&
7412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7414 (eval $ac_try) 2>&5
7415 ac_status=$?
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); }; } &&
7418 { ac_try='test -s conftest.$ac_objext'
7419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7420 (eval $ac_try) 2>&5
7421 ac_status=$?
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); }; }; then
7424 ac_cv_type_int16_t=yes
7425 else
7426 echo "$as_me: failed program was:" >&5
7427 sed 's/^/| /' conftest.$ac_ext >&5
7428
7429 ac_cv_type_int16_t=no
7430 fi
7431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7432 fi
7433 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
7434 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
7435 if test $ac_cv_type_int16_t = yes; then
7436 :
7437 else
7438
7439 cat >>confdefs.h <<_ACEOF
7440 #define int16_t int
7441 _ACEOF
7442
7443 fi
7444
7445 echo "$as_me:$LINENO: checking for uint16_t" >&5
7446 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
7447 if test "${ac_cv_type_uint16_t+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7449 else
7450 cat >conftest.$ac_ext <<_ACEOF
7451 /* confdefs.h. */
7452 _ACEOF
7453 cat confdefs.h >>conftest.$ac_ext
7454 cat >>conftest.$ac_ext <<_ACEOF
7455 /* end confdefs.h. */
7456 $ac_includes_default
7457 int
7458 main ()
7459 {
7460 if ((uint16_t *) 0)
7461 return 0;
7462 if (sizeof (uint16_t))
7463 return 0;
7464 ;
7465 return 0;
7466 }
7467 _ACEOF
7468 rm -f conftest.$ac_objext
7469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7470 (eval $ac_compile) 2>conftest.er1
7471 ac_status=$?
7472 grep -v '^ *+' conftest.er1 >conftest.err
7473 rm -f conftest.er1
7474 cat conftest.err >&5
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); } &&
7477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7479 (eval $ac_try) 2>&5
7480 ac_status=$?
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); }; } &&
7483 { ac_try='test -s conftest.$ac_objext'
7484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7485 (eval $ac_try) 2>&5
7486 ac_status=$?
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); }; }; then
7489 ac_cv_type_uint16_t=yes
7490 else
7491 echo "$as_me: failed program was:" >&5
7492 sed 's/^/| /' conftest.$ac_ext >&5
7493
7494 ac_cv_type_uint16_t=no
7495 fi
7496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7497 fi
7498 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
7499 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
7500 if test $ac_cv_type_uint16_t = yes; then
7501 :
7502 else
7503
7504 cat >>confdefs.h <<_ACEOF
7505 #define uint16_t unsigned int
7506 _ACEOF
7507
7508 fi
7509
7510 elif test "$ac_cv_sizeof_short" = 2 ; then
7511 echo "$as_me:$LINENO: checking for int16_t" >&5
7512 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
7513 if test "${ac_cv_type_int16_t+set}" = set; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7515 else
7516 cat >conftest.$ac_ext <<_ACEOF
7517 /* confdefs.h. */
7518 _ACEOF
7519 cat confdefs.h >>conftest.$ac_ext
7520 cat >>conftest.$ac_ext <<_ACEOF
7521 /* end confdefs.h. */
7522 $ac_includes_default
7523 int
7524 main ()
7525 {
7526 if ((int16_t *) 0)
7527 return 0;
7528 if (sizeof (int16_t))
7529 return 0;
7530 ;
7531 return 0;
7532 }
7533 _ACEOF
7534 rm -f conftest.$ac_objext
7535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7536 (eval $ac_compile) 2>conftest.er1
7537 ac_status=$?
7538 grep -v '^ *+' conftest.er1 >conftest.err
7539 rm -f conftest.er1
7540 cat conftest.err >&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); } &&
7543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7545 (eval $ac_try) 2>&5
7546 ac_status=$?
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); }; } &&
7549 { ac_try='test -s conftest.$ac_objext'
7550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7551 (eval $ac_try) 2>&5
7552 ac_status=$?
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); }; }; then
7555 ac_cv_type_int16_t=yes
7556 else
7557 echo "$as_me: failed program was:" >&5
7558 sed 's/^/| /' conftest.$ac_ext >&5
7559
7560 ac_cv_type_int16_t=no
7561 fi
7562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7563 fi
7564 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
7565 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
7566 if test $ac_cv_type_int16_t = yes; then
7567 :
7568 else
7569
7570 cat >>confdefs.h <<_ACEOF
7571 #define int16_t short
7572 _ACEOF
7573
7574 fi
7575
7576 echo "$as_me:$LINENO: checking for uint16_t" >&5
7577 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
7578 if test "${ac_cv_type_uint16_t+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7580 else
7581 cat >conftest.$ac_ext <<_ACEOF
7582 /* confdefs.h. */
7583 _ACEOF
7584 cat confdefs.h >>conftest.$ac_ext
7585 cat >>conftest.$ac_ext <<_ACEOF
7586 /* end confdefs.h. */
7587 $ac_includes_default
7588 int
7589 main ()
7590 {
7591 if ((uint16_t *) 0)
7592 return 0;
7593 if (sizeof (uint16_t))
7594 return 0;
7595 ;
7596 return 0;
7597 }
7598 _ACEOF
7599 rm -f conftest.$ac_objext
7600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7601 (eval $ac_compile) 2>conftest.er1
7602 ac_status=$?
7603 grep -v '^ *+' conftest.er1 >conftest.err
7604 rm -f conftest.er1
7605 cat conftest.err >&5
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); } &&
7608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7610 (eval $ac_try) 2>&5
7611 ac_status=$?
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); }; } &&
7614 { ac_try='test -s conftest.$ac_objext'
7615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7616 (eval $ac_try) 2>&5
7617 ac_status=$?
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); }; }; then
7620 ac_cv_type_uint16_t=yes
7621 else
7622 echo "$as_me: failed program was:" >&5
7623 sed 's/^/| /' conftest.$ac_ext >&5
7624
7625 ac_cv_type_uint16_t=no
7626 fi
7627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7628 fi
7629 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
7630 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
7631 if test $ac_cv_type_uint16_t = yes; then
7632 :
7633 else
7634
7635 cat >>confdefs.h <<_ACEOF
7636 #define uint16_t unsigned short
7637 _ACEOF
7638
7639 fi
7640
7641 else
7642 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 16 bits" >&5
7643 echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;}
7644 { (exit 1); exit 1; }; }
7645 fi
7646 if test "$ac_cv_sizeof_int" = 4 ; then
7647 echo "$as_me:$LINENO: checking for int32_t" >&5
7648 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7649 if test "${ac_cv_type_int32_t+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 else
7652 cat >conftest.$ac_ext <<_ACEOF
7653 /* confdefs.h. */
7654 _ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h. */
7658 $ac_includes_default
7659 int
7660 main ()
7661 {
7662 if ((int32_t *) 0)
7663 return 0;
7664 if (sizeof (int32_t))
7665 return 0;
7666 ;
7667 return 0;
7668 }
7669 _ACEOF
7670 rm -f conftest.$ac_objext
7671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7672 (eval $ac_compile) 2>conftest.er1
7673 ac_status=$?
7674 grep -v '^ *+' conftest.er1 >conftest.err
7675 rm -f conftest.er1
7676 cat conftest.err >&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); } &&
7679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7681 (eval $ac_try) 2>&5
7682 ac_status=$?
7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); }; } &&
7685 { ac_try='test -s conftest.$ac_objext'
7686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7687 (eval $ac_try) 2>&5
7688 ac_status=$?
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); }; }; then
7691 ac_cv_type_int32_t=yes
7692 else
7693 echo "$as_me: failed program was:" >&5
7694 sed 's/^/| /' conftest.$ac_ext >&5
7695
7696 ac_cv_type_int32_t=no
7697 fi
7698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7699 fi
7700 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7701 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7702 if test $ac_cv_type_int32_t = yes; then
7703 :
7704 else
7705
7706 cat >>confdefs.h <<_ACEOF
7707 #define int32_t int
7708 _ACEOF
7709
7710 fi
7711
7712 echo "$as_me:$LINENO: checking for uint32_t" >&5
7713 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7714 if test "${ac_cv_type_uint32_t+set}" = set; then
7715 echo $ECHO_N "(cached) $ECHO_C" >&6
7716 else
7717 cat >conftest.$ac_ext <<_ACEOF
7718 /* confdefs.h. */
7719 _ACEOF
7720 cat confdefs.h >>conftest.$ac_ext
7721 cat >>conftest.$ac_ext <<_ACEOF
7722 /* end confdefs.h. */
7723 $ac_includes_default
7724 int
7725 main ()
7726 {
7727 if ((uint32_t *) 0)
7728 return 0;
7729 if (sizeof (uint32_t))
7730 return 0;
7731 ;
7732 return 0;
7733 }
7734 _ACEOF
7735 rm -f conftest.$ac_objext
7736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7737 (eval $ac_compile) 2>conftest.er1
7738 ac_status=$?
7739 grep -v '^ *+' conftest.er1 >conftest.err
7740 rm -f conftest.er1
7741 cat conftest.err >&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } &&
7744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7746 (eval $ac_try) 2>&5
7747 ac_status=$?
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); }; } &&
7750 { ac_try='test -s conftest.$ac_objext'
7751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7752 (eval $ac_try) 2>&5
7753 ac_status=$?
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; }; then
7756 ac_cv_type_uint32_t=yes
7757 else
7758 echo "$as_me: failed program was:" >&5
7759 sed 's/^/| /' conftest.$ac_ext >&5
7760
7761 ac_cv_type_uint32_t=no
7762 fi
7763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7764 fi
7765 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7766 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
7767 if test $ac_cv_type_uint32_t = yes; then
7768 :
7769 else
7770
7771 cat >>confdefs.h <<_ACEOF
7772 #define uint32_t unsigned int
7773 _ACEOF
7774
7775 fi
7776
7777 elif test "$ac_cv_sizeof_short" = 4 ; then
7778 echo "$as_me:$LINENO: checking for int32_t" >&5
7779 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7780 if test "${ac_cv_type_int32_t+set}" = set; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
7782 else
7783 cat >conftest.$ac_ext <<_ACEOF
7784 /* confdefs.h. */
7785 _ACEOF
7786 cat confdefs.h >>conftest.$ac_ext
7787 cat >>conftest.$ac_ext <<_ACEOF
7788 /* end confdefs.h. */
7789 $ac_includes_default
7790 int
7791 main ()
7792 {
7793 if ((int32_t *) 0)
7794 return 0;
7795 if (sizeof (int32_t))
7796 return 0;
7797 ;
7798 return 0;
7799 }
7800 _ACEOF
7801 rm -f conftest.$ac_objext
7802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7803 (eval $ac_compile) 2>conftest.er1
7804 ac_status=$?
7805 grep -v '^ *+' conftest.er1 >conftest.err
7806 rm -f conftest.er1
7807 cat conftest.err >&5
7808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809 (exit $ac_status); } &&
7810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7812 (eval $ac_try) 2>&5
7813 ac_status=$?
7814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815 (exit $ac_status); }; } &&
7816 { ac_try='test -s conftest.$ac_objext'
7817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7818 (eval $ac_try) 2>&5
7819 ac_status=$?
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); }; }; then
7822 ac_cv_type_int32_t=yes
7823 else
7824 echo "$as_me: failed program was:" >&5
7825 sed 's/^/| /' conftest.$ac_ext >&5
7826
7827 ac_cv_type_int32_t=no
7828 fi
7829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7830 fi
7831 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7832 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7833 if test $ac_cv_type_int32_t = yes; then
7834 :
7835 else
7836
7837 cat >>confdefs.h <<_ACEOF
7838 #define int32_t short
7839 _ACEOF
7840
7841 fi
7842
7843 echo "$as_me:$LINENO: checking for uint32_t" >&5
7844 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7845 if test "${ac_cv_type_uint32_t+set}" = set; then
7846 echo $ECHO_N "(cached) $ECHO_C" >&6
7847 else
7848 cat >conftest.$ac_ext <<_ACEOF
7849 /* confdefs.h. */
7850 _ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h. */
7854 $ac_includes_default
7855 int
7856 main ()
7857 {
7858 if ((uint32_t *) 0)
7859 return 0;
7860 if (sizeof (uint32_t))
7861 return 0;
7862 ;
7863 return 0;
7864 }
7865 _ACEOF
7866 rm -f conftest.$ac_objext
7867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7868 (eval $ac_compile) 2>conftest.er1
7869 ac_status=$?
7870 grep -v '^ *+' conftest.er1 >conftest.err
7871 rm -f conftest.er1
7872 cat conftest.err >&5
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); } &&
7875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7877 (eval $ac_try) 2>&5
7878 ac_status=$?
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); }; } &&
7881 { ac_try='test -s conftest.$ac_objext'
7882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7883 (eval $ac_try) 2>&5
7884 ac_status=$?
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; }; then
7887 ac_cv_type_uint32_t=yes
7888 else
7889 echo "$as_me: failed program was:" >&5
7890 sed 's/^/| /' conftest.$ac_ext >&5
7891
7892 ac_cv_type_uint32_t=no
7893 fi
7894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7895 fi
7896 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7897 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
7898 if test $ac_cv_type_uint32_t = yes; then
7899 :
7900 else
7901
7902 cat >>confdefs.h <<_ACEOF
7903 #define uint32_t unsigned short
7904 _ACEOF
7905
7906 fi
7907
7908 elif test "$ac_cv_sizeof_long" = 4 ; then
7909 echo "$as_me:$LINENO: checking for int32_t" >&5
7910 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7911 if test "${ac_cv_type_int32_t+set}" = set; then
7912 echo $ECHO_N "(cached) $ECHO_C" >&6
7913 else
7914 cat >conftest.$ac_ext <<_ACEOF
7915 /* confdefs.h. */
7916 _ACEOF
7917 cat confdefs.h >>conftest.$ac_ext
7918 cat >>conftest.$ac_ext <<_ACEOF
7919 /* end confdefs.h. */
7920 $ac_includes_default
7921 int
7922 main ()
7923 {
7924 if ((int32_t *) 0)
7925 return 0;
7926 if (sizeof (int32_t))
7927 return 0;
7928 ;
7929 return 0;
7930 }
7931 _ACEOF
7932 rm -f conftest.$ac_objext
7933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7934 (eval $ac_compile) 2>conftest.er1
7935 ac_status=$?
7936 grep -v '^ *+' conftest.er1 >conftest.err
7937 rm -f conftest.er1
7938 cat conftest.err >&5
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); } &&
7941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7943 (eval $ac_try) 2>&5
7944 ac_status=$?
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); }; } &&
7947 { ac_try='test -s conftest.$ac_objext'
7948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949 (eval $ac_try) 2>&5
7950 ac_status=$?
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); }; }; then
7953 ac_cv_type_int32_t=yes
7954 else
7955 echo "$as_me: failed program was:" >&5
7956 sed 's/^/| /' conftest.$ac_ext >&5
7957
7958 ac_cv_type_int32_t=no
7959 fi
7960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7961 fi
7962 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7963 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7964 if test $ac_cv_type_int32_t = yes; then
7965 :
7966 else
7967
7968 cat >>confdefs.h <<_ACEOF
7969 #define int32_t long
7970 _ACEOF
7971
7972 fi
7973
7974 echo "$as_me:$LINENO: checking for uint32_t" >&5
7975 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7976 if test "${ac_cv_type_uint32_t+set}" = set; then
7977 echo $ECHO_N "(cached) $ECHO_C" >&6
7978 else
7979 cat >conftest.$ac_ext <<_ACEOF
7980 /* confdefs.h. */
7981 _ACEOF
7982 cat confdefs.h >>conftest.$ac_ext
7983 cat >>conftest.$ac_ext <<_ACEOF
7984 /* end confdefs.h. */
7985 $ac_includes_default
7986 int
7987 main ()
7988 {
7989 if ((uint32_t *) 0)
7990 return 0;
7991 if (sizeof (uint32_t))
7992 return 0;
7993 ;
7994 return 0;
7995 }
7996 _ACEOF
7997 rm -f conftest.$ac_objext
7998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7999 (eval $ac_compile) 2>conftest.er1
8000 ac_status=$?
8001 grep -v '^ *+' conftest.er1 >conftest.err
8002 rm -f conftest.er1
8003 cat conftest.err >&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); } &&
8006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8008 (eval $ac_try) 2>&5
8009 ac_status=$?
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); }; } &&
8012 { ac_try='test -s conftest.$ac_objext'
8013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8014 (eval $ac_try) 2>&5
8015 ac_status=$?
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); }; }; then
8018 ac_cv_type_uint32_t=yes
8019 else
8020 echo "$as_me: failed program was:" >&5
8021 sed 's/^/| /' conftest.$ac_ext >&5
8022
8023 ac_cv_type_uint32_t=no
8024 fi
8025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8026 fi
8027 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8028 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
8029 if test $ac_cv_type_uint32_t = yes; then
8030 :
8031 else
8032
8033 cat >>confdefs.h <<_ACEOF
8034 #define uint32_t unsigned long
8035 _ACEOF
8036
8037 fi
8038
8039 else
8040 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 32 bits" >&5
8041 echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;}
8042 { (exit 1); exit 1; }; }
8043 fi
8044 if test "$ac_cv_sizeof_int64_t" = 8 ; then
8045 echo "$as_me:$LINENO: checking for int64_t" >&5
8046 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
8047 if test "${ac_cv_type_int64_t+set}" = set; then
8048 echo $ECHO_N "(cached) $ECHO_C" >&6
8049 else
8050 cat >conftest.$ac_ext <<_ACEOF
8051 /* confdefs.h. */
8052 _ACEOF
8053 cat confdefs.h >>conftest.$ac_ext
8054 cat >>conftest.$ac_ext <<_ACEOF
8055 /* end confdefs.h. */
8056 $ac_includes_default
8057 int
8058 main ()
8059 {
8060 if ((int64_t *) 0)
8061 return 0;
8062 if (sizeof (int64_t))
8063 return 0;
8064 ;
8065 return 0;
8066 }
8067 _ACEOF
8068 rm -f conftest.$ac_objext
8069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8070 (eval $ac_compile) 2>conftest.er1
8071 ac_status=$?
8072 grep -v '^ *+' conftest.er1 >conftest.err
8073 rm -f conftest.er1
8074 cat conftest.err >&5
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } &&
8077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8079 (eval $ac_try) 2>&5
8080 ac_status=$?
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); }; } &&
8083 { ac_try='test -s conftest.$ac_objext'
8084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8085 (eval $ac_try) 2>&5
8086 ac_status=$?
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); }; }; then
8089 ac_cv_type_int64_t=yes
8090 else
8091 echo "$as_me: failed program was:" >&5
8092 sed 's/^/| /' conftest.$ac_ext >&5
8093
8094 ac_cv_type_int64_t=no
8095 fi
8096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8097 fi
8098 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
8099 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
8100
8101 echo "$as_me:$LINENO: checking for uint64_t" >&5
8102 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
8103 if test "${ac_cv_type_uint64_t+set}" = set; then
8104 echo $ECHO_N "(cached) $ECHO_C" >&6
8105 else
8106 cat >conftest.$ac_ext <<_ACEOF
8107 /* confdefs.h. */
8108 _ACEOF
8109 cat confdefs.h >>conftest.$ac_ext
8110 cat >>conftest.$ac_ext <<_ACEOF
8111 /* end confdefs.h. */
8112 $ac_includes_default
8113 int
8114 main ()
8115 {
8116 if ((uint64_t *) 0)
8117 return 0;
8118 if (sizeof (uint64_t))
8119 return 0;
8120 ;
8121 return 0;
8122 }
8123 _ACEOF
8124 rm -f conftest.$ac_objext
8125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8126 (eval $ac_compile) 2>conftest.er1
8127 ac_status=$?
8128 grep -v '^ *+' conftest.er1 >conftest.err
8129 rm -f conftest.er1
8130 cat conftest.err >&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); } &&
8133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8135 (eval $ac_try) 2>&5
8136 ac_status=$?
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; } &&
8139 { ac_try='test -s conftest.$ac_objext'
8140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8141 (eval $ac_try) 2>&5
8142 ac_status=$?
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); }; }; then
8145 ac_cv_type_uint64_t=yes
8146 else
8147 echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.$ac_ext >&5
8149
8150 ac_cv_type_uint64_t=no
8151 fi
8152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8153 fi
8154 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
8155 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
8156
8157 elif test "$ac_cv_sizeof_long_long" = 8 ; then
8158 echo "$as_me:$LINENO: checking for int64_t" >&5
8159 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
8160 if test "${ac_cv_type_int64_t+set}" = set; then
8161 echo $ECHO_N "(cached) $ECHO_C" >&6
8162 else
8163 cat >conftest.$ac_ext <<_ACEOF
8164 /* confdefs.h. */
8165 _ACEOF
8166 cat confdefs.h >>conftest.$ac_ext
8167 cat >>conftest.$ac_ext <<_ACEOF
8168 /* end confdefs.h. */
8169 $ac_includes_default
8170 int
8171 main ()
8172 {
8173 if ((int64_t *) 0)
8174 return 0;
8175 if (sizeof (int64_t))
8176 return 0;
8177 ;
8178 return 0;
8179 }
8180 _ACEOF
8181 rm -f conftest.$ac_objext
8182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8183 (eval $ac_compile) 2>conftest.er1
8184 ac_status=$?
8185 grep -v '^ *+' conftest.er1 >conftest.err
8186 rm -f conftest.er1
8187 cat conftest.err >&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } &&
8190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8192 (eval $ac_try) 2>&5
8193 ac_status=$?
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); }; } &&
8196 { ac_try='test -s conftest.$ac_objext'
8197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8198 (eval $ac_try) 2>&5
8199 ac_status=$?
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); }; }; then
8202 ac_cv_type_int64_t=yes
8203 else
8204 echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8206
8207 ac_cv_type_int64_t=no
8208 fi
8209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8210 fi
8211 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
8212 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
8213 if test $ac_cv_type_int64_t = yes; then
8214 :
8215 else
8216
8217 cat >>confdefs.h <<_ACEOF
8218 #define int64_t long long
8219 _ACEOF
8220
8221 fi
8222
8223 echo "$as_me:$LINENO: checking for uint64_t" >&5
8224 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
8225 if test "${ac_cv_type_uint64_t+set}" = set; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8227 else
8228 cat >conftest.$ac_ext <<_ACEOF
8229 /* confdefs.h. */
8230 _ACEOF
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h. */
8234 $ac_includes_default
8235 int
8236 main ()
8237 {
8238 if ((uint64_t *) 0)
8239 return 0;
8240 if (sizeof (uint64_t))
8241 return 0;
8242 ;
8243 return 0;
8244 }
8245 _ACEOF
8246 rm -f conftest.$ac_objext
8247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8248 (eval $ac_compile) 2>conftest.er1
8249 ac_status=$?
8250 grep -v '^ *+' conftest.er1 >conftest.err
8251 rm -f conftest.er1
8252 cat conftest.err >&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); } &&
8255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8257 (eval $ac_try) 2>&5
8258 ac_status=$?
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); }; } &&
8261 { ac_try='test -s conftest.$ac_objext'
8262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8263 (eval $ac_try) 2>&5
8264 ac_status=$?
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); }; }; then
8267 ac_cv_type_uint64_t=yes
8268 else
8269 echo "$as_me: failed program was:" >&5
8270 sed 's/^/| /' conftest.$ac_ext >&5
8271
8272 ac_cv_type_uint64_t=no
8273 fi
8274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8275 fi
8276 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
8277 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
8278 if test $ac_cv_type_uint64_t = yes; then
8279 :
8280 else
8281
8282 cat >>confdefs.h <<_ACEOF
8283 #define uint64_t unsigned long long
8284 _ACEOF
8285
8286 fi
8287
8288 else
8289 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 64 bits" >&5
8290 echo "$as_me: error: Cannot find a type with size of 64 bits" >&2;}
8291 { (exit 1); exit 1; }; }
8292 fi
8293 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
8294 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
8295 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
8297 else
8298 cat >conftest.$ac_ext <<_ACEOF
8299 /* confdefs.h. */
8300 _ACEOF
8301 cat confdefs.h >>conftest.$ac_ext
8302 cat >>conftest.$ac_ext <<_ACEOF
8303 /* end confdefs.h. */
8304 #include <sys/types.h>
8305 #include <netinet/in.h>
8306
8307 int
8308 main ()
8309 {
8310 if ((struct sockaddr_in6 *) 0)
8311 return 0;
8312 if (sizeof (struct sockaddr_in6))
8313 return 0;
8314 ;
8315 return 0;
8316 }
8317 _ACEOF
8318 rm -f conftest.$ac_objext
8319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8320 (eval $ac_compile) 2>conftest.er1
8321 ac_status=$?
8322 grep -v '^ *+' conftest.er1 >conftest.err
8323 rm -f conftest.er1
8324 cat conftest.err >&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); } &&
8327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329 (eval $ac_try) 2>&5
8330 ac_status=$?
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; } &&
8333 { ac_try='test -s conftest.$ac_objext'
8334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8335 (eval $ac_try) 2>&5
8336 ac_status=$?
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); }; }; then
8339 ac_cv_type_struct_sockaddr_in6=yes
8340 else
8341 echo "$as_me: failed program was:" >&5
8342 sed 's/^/| /' conftest.$ac_ext >&5
8343
8344 ac_cv_type_struct_sockaddr_in6=no
8345 fi
8346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8347 fi
8348 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
8349 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
8350 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
8351 unet_have_sockaddr_in6="yes"
8352 else
8353 unet_have_sockaddr_in6="no"
8354 fi
8355
8356
8357 echo "$as_me:$LINENO: checking for socklen_t" >&5
8358 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
8359 if test "${ac_cv_type_socklen_t+set}" = set; then
8360 echo $ECHO_N "(cached) $ECHO_C" >&6
8361 else
8362 cat >conftest.$ac_ext <<_ACEOF
8363 /* confdefs.h. */
8364 _ACEOF
8365 cat confdefs.h >>conftest.$ac_ext
8366 cat >>conftest.$ac_ext <<_ACEOF
8367 /* end confdefs.h. */
8368 #include <sys/types.h>
8369 #include<sys/socket.h>
8370
8371 int
8372 main ()
8373 {
8374 if ((socklen_t *) 0)
8375 return 0;
8376 if (sizeof (socklen_t))
8377 return 0;
8378 ;
8379 return 0;
8380 }
8381 _ACEOF
8382 rm -f conftest.$ac_objext
8383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8384 (eval $ac_compile) 2>conftest.er1
8385 ac_status=$?
8386 grep -v '^ *+' conftest.er1 >conftest.err
8387 rm -f conftest.er1
8388 cat conftest.err >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } &&
8391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393 (eval $ac_try) 2>&5
8394 ac_status=$?
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; } &&
8397 { ac_try='test -s conftest.$ac_objext'
8398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8399 (eval $ac_try) 2>&5
8400 ac_status=$?
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); }; }; then
8403 ac_cv_type_socklen_t=yes
8404 else
8405 echo "$as_me: failed program was:" >&5
8406 sed 's/^/| /' conftest.$ac_ext >&5
8407
8408 ac_cv_type_socklen_t=no
8409 fi
8410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8411 fi
8412 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
8413 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
8414 if test $ac_cv_type_socklen_t = yes; then
8415 :
8416 else
8417
8418 echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
8419 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
8420 if test "${curl_cv_socklen_t_equiv+set}" = set; then
8421 echo $ECHO_N "(cached) $ECHO_C" >&6
8422 else
8423
8424 curl_cv_socklen_t_equiv=
8425 for arg2 in "struct sockaddr" void ; do
8426 for t in int size_t unsigned long "unsigned long" ; do
8427 cat >conftest.$ac_ext <<_ACEOF
8428 /* confdefs.h. */
8429 _ACEOF
8430 cat confdefs.h >>conftest.$ac_ext
8431 cat >>conftest.$ac_ext <<_ACEOF
8432 /* end confdefs.h. */
8433 #include <sys/types.h>
8434 #include <sys/socket.h>
8435 int getpeername (int $arg2 *, $t *);
8436 int
8437 main ()
8438 {
8439 $t len;
8440 getpeername(0, 0, &len);
8441 ;
8442 return 0;
8443 }
8444 _ACEOF
8445 rm -f conftest.$ac_objext
8446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8447 (eval $ac_compile) 2>conftest.er1
8448 ac_status=$?
8449 grep -v '^ *+' conftest.er1 >conftest.err
8450 rm -f conftest.er1
8451 cat conftest.err >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); } &&
8454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8456 (eval $ac_try) 2>&5
8457 ac_status=$?
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); }; } &&
8460 { ac_try='test -s conftest.$ac_objext'
8461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8462 (eval $ac_try) 2>&5
8463 ac_status=$?
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }; }; then
8466 curl_cv_socklen_t_equiv="$t"
8467 break
8468 else
8469 echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8471
8472 fi
8473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8474 done
8475 done
8476
8477 fi
8478
8479 echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
8480 echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6
8481
8482 cat >>confdefs.h <<_ACEOF
8483 #define socklen_t $curl_cv_socklen_t_equiv
8484 _ACEOF
8485
8486 fi
8487
8488
8489
8490
8491
8492
8493 for ac_func in kqueue setrlimit getrusage times
8494 do
8495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8496 echo "$as_me:$LINENO: checking for $ac_func" >&5
8497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8498 if eval "test \"\${$as_ac_var+set}\" = set"; then
8499 echo $ECHO_N "(cached) $ECHO_C" >&6
8500 else
8501 cat >conftest.$ac_ext <<_ACEOF
8502 /* confdefs.h. */
8503 _ACEOF
8504 cat confdefs.h >>conftest.$ac_ext
8505 cat >>conftest.$ac_ext <<_ACEOF
8506 /* end confdefs.h. */
8507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8509 #define $ac_func innocuous_$ac_func
8510
8511 /* System header to define __stub macros and hopefully few prototypes,
8512 which can conflict with char $ac_func (); below.
8513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8514 <limits.h> exists even on freestanding compilers. */
8515
8516 #ifdef __STDC__
8517 # include <limits.h>
8518 #else
8519 # include <assert.h>
8520 #endif
8521
8522 #undef $ac_func
8523
8524 /* Override any gcc2 internal prototype to avoid an error. */
8525 #ifdef __cplusplus
8526 extern "C"
8527 {
8528 #endif
8529 /* We use char because int might match the return type of a gcc2
8530 builtin and then its argument prototype would still apply. */
8531 char $ac_func ();
8532 /* The GNU C library defines this for functions which it implements
8533 to always fail with ENOSYS. Some functions are actually named
8534 something starting with __ and the normal name is an alias. */
8535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8536 choke me
8537 #else
8538 char (*f) () = $ac_func;
8539 #endif
8540 #ifdef __cplusplus
8541 }
8542 #endif
8543
8544 int
8545 main ()
8546 {
8547 return f != $ac_func;
8548 ;
8549 return 0;
8550 }
8551 _ACEOF
8552 rm -f conftest.$ac_objext conftest$ac_exeext
8553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8554 (eval $ac_link) 2>conftest.er1
8555 ac_status=$?
8556 grep -v '^ *+' conftest.er1 >conftest.err
8557 rm -f conftest.er1
8558 cat conftest.err >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); } &&
8561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563 (eval $ac_try) 2>&5
8564 ac_status=$?
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; } &&
8567 { ac_try='test -s conftest$ac_exeext'
8568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8569 (eval $ac_try) 2>&5
8570 ac_status=$?
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); }; }; then
8573 eval "$as_ac_var=yes"
8574 else
8575 echo "$as_me: failed program was:" >&5
8576 sed 's/^/| /' conftest.$ac_ext >&5
8577
8578 eval "$as_ac_var=no"
8579 fi
8580 rm -f conftest.err conftest.$ac_objext \
8581 conftest$ac_exeext conftest.$ac_ext
8582 fi
8583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8584 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8585 if test `eval echo '${'$as_ac_var'}'` = yes; then
8586 cat >>confdefs.h <<_ACEOF
8587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8588 _ACEOF
8589
8590 fi
8591 done
8592
8593
8594 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8595 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8596 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8597 echo $ECHO_N "(cached) $ECHO_C" >&6
8598 else
8599 cat >conftest.$ac_ext <<_ACEOF
8600 /* confdefs.h. */
8601 _ACEOF
8602 cat confdefs.h >>conftest.$ac_ext
8603 cat >>conftest.$ac_ext <<_ACEOF
8604 /* end confdefs.h. */
8605 #include <sys/types.h>
8606 #include <sys/wait.h>
8607 #ifndef WEXITSTATUS
8608 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8609 #endif
8610 #ifndef WIFEXITED
8611 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8612 #endif
8613
8614 int
8615 main ()
8616 {
8617 int s;
8618 wait (&s);
8619 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8620 ;
8621 return 0;
8622 }
8623 _ACEOF
8624 rm -f conftest.$ac_objext
8625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8626 (eval $ac_compile) 2>conftest.er1
8627 ac_status=$?
8628 grep -v '^ *+' conftest.er1 >conftest.err
8629 rm -f conftest.er1
8630 cat conftest.err >&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); } &&
8633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8635 (eval $ac_try) 2>&5
8636 ac_status=$?
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); }; } &&
8639 { ac_try='test -s conftest.$ac_objext'
8640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8641 (eval $ac_try) 2>&5
8642 ac_status=$?
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); }; }; then
8645 ac_cv_header_sys_wait_h=yes
8646 else
8647 echo "$as_me: failed program was:" >&5
8648 sed 's/^/| /' conftest.$ac_ext >&5
8649
8650 ac_cv_header_sys_wait_h=no
8651 fi
8652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8653 fi
8654 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8655 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8656 if test $ac_cv_header_sys_wait_h = yes; then
8657
8658 cat >>confdefs.h <<\_ACEOF
8659 #define HAVE_SYS_WAIT_H 1
8660 _ACEOF
8661
8662 fi
8663
8664
8665 for ac_header in unistd.h
8666 do
8667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8669 echo "$as_me:$LINENO: checking for $ac_header" >&5
8670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8672 echo $ECHO_N "(cached) $ECHO_C" >&6
8673 fi
8674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8675 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8676 else
8677 # Is the header compilable?
8678 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8680 cat >conftest.$ac_ext <<_ACEOF
8681 /* confdefs.h. */
8682 _ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h. */
8686 $ac_includes_default
8687 #include <$ac_header>
8688 _ACEOF
8689 rm -f conftest.$ac_objext
8690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8691 (eval $ac_compile) 2>conftest.er1
8692 ac_status=$?
8693 grep -v '^ *+' conftest.er1 >conftest.err
8694 rm -f conftest.er1
8695 cat conftest.err >&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); } &&
8698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700 (eval $ac_try) 2>&5
8701 ac_status=$?
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); }; } &&
8704 { ac_try='test -s conftest.$ac_objext'
8705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8706 (eval $ac_try) 2>&5
8707 ac_status=$?
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); }; }; then
8710 ac_header_compiler=yes
8711 else
8712 echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8714
8715 ac_header_compiler=no
8716 fi
8717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8718 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8719 echo "${ECHO_T}$ac_header_compiler" >&6
8720
8721 # Is the header present?
8722 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8723 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8724 cat >conftest.$ac_ext <<_ACEOF
8725 /* confdefs.h. */
8726 _ACEOF
8727 cat confdefs.h >>conftest.$ac_ext
8728 cat >>conftest.$ac_ext <<_ACEOF
8729 /* end confdefs.h. */
8730 #include <$ac_header>
8731 _ACEOF
8732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8734 ac_status=$?
8735 grep -v '^ *+' conftest.er1 >conftest.err
8736 rm -f conftest.er1
8737 cat conftest.err >&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); } >/dev/null; then
8740 if test -s conftest.err; then
8741 ac_cpp_err=$ac_c_preproc_warn_flag
8742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8743 else
8744 ac_cpp_err=
8745 fi
8746 else
8747 ac_cpp_err=yes
8748 fi
8749 if test -z "$ac_cpp_err"; then
8750 ac_header_preproc=yes
8751 else
8752 echo "$as_me: failed program was:" >&5
8753 sed 's/^/| /' conftest.$ac_ext >&5
8754
8755 ac_header_preproc=no
8756 fi
8757 rm -f conftest.err conftest.$ac_ext
8758 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8759 echo "${ECHO_T}$ac_header_preproc" >&6
8760
8761 # So? What about this header?
8762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8763 yes:no: )
8764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8768 ac_header_preproc=yes
8769 ;;
8770 no:yes:* )
8771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8774 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8778 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8783 (
8784 cat <<\_ASBOX
8785 ## ------------------------------------------ ##
8786 ## Report this to the AC_PACKAGE_NAME lists. ##
8787 ## ------------------------------------------ ##
8788 _ASBOX
8789 ) |
8790 sed "s/^/$as_me: WARNING: /" >&2
8791 ;;
8792 esac
8793 echo "$as_me:$LINENO: checking for $ac_header" >&5
8794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8797 else
8798 eval "$as_ac_Header=\$ac_header_preproc"
8799 fi
8800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8802
8803 fi
8804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8805 cat >>confdefs.h <<_ACEOF
8806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8807 _ACEOF
8808
8809 fi
8810
8811 done
8812
8813 echo "$as_me:$LINENO: checking for restartable system calls" >&5
8814 echo $ECHO_N "checking for restartable system calls... $ECHO_C" >&6
8815 if test "${ac_cv_sys_restartable_syscalls+set}" = set; then
8816 echo $ECHO_N "(cached) $ECHO_C" >&6
8817 else
8818 if test "$cross_compiling" = yes; then
8819 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8820 See \`config.log' for more details." >&5
8821 echo "$as_me: error: cannot run test program while cross compiling
8822 See \`config.log' for more details." >&2;}
8823 { (exit 1); exit 1; }; }
8824 else
8825 cat >conftest.$ac_ext <<_ACEOF
8826 /* confdefs.h. */
8827 _ACEOF
8828 cat confdefs.h >>conftest.$ac_ext
8829 cat >>conftest.$ac_ext <<_ACEOF
8830 /* end confdefs.h. */
8831 /* Exit 0 (true) if wait returns something other than -1,
8832 i.e. the pid of the child, which means that wait was restarted
8833 after getting the signal. */
8834
8835 #include <sys/types.h>
8836 #include <signal.h>
8837 #if HAVE_UNISTD_H
8838 # include <unistd.h>
8839 #endif
8840 #if HAVE_SYS_WAIT_H
8841 # include <sys/wait.h>
8842 #endif
8843
8844 /* Some platforms explicitly require an extern "C" signal handler
8845 when using C++. */
8846 #ifdef __cplusplus
8847 extern "C" void ucatch (int dummy) { }
8848 #else
8849 void ucatch (dummy) int dummy; { }
8850 #endif
8851
8852 int
8853 main ()
8854 {
8855 int i = fork (), status;
8856
8857 if (i == 0)
8858 {
8859 sleep (3);
8860 kill (getppid (), SIGINT);
8861 sleep (3);
8862 exit (0);
8863 }
8864
8865 signal (SIGINT, ucatch);
8866
8867 status = wait (&i);
8868 if (status == -1)
8869 wait (&i);
8870
8871 exit (status == -1);
8872 }
8873 _ACEOF
8874 rm -f conftest$ac_exeext
8875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8876 (eval $ac_link) 2>&5
8877 ac_status=$?
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8881 (eval $ac_try) 2>&5
8882 ac_status=$?
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); }; }; then
8885 ac_cv_sys_restartable_syscalls=yes
8886 else
8887 echo "$as_me: program exited with status $ac_status" >&5
8888 echo "$as_me: failed program was:" >&5
8889 sed 's/^/| /' conftest.$ac_ext >&5
8890
8891 ( exit $ac_status )
8892 ac_cv_sys_restartable_syscalls=no
8893 fi
8894 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8895 fi
8896 fi
8897 echo "$as_me:$LINENO: result: $ac_cv_sys_restartable_syscalls" >&5
8898 echo "${ECHO_T}$ac_cv_sys_restartable_syscalls" >&6
8899 if test $ac_cv_sys_restartable_syscalls = yes; then
8900
8901 cat >>confdefs.h <<\_ACEOF
8902 #define HAVE_RESTARTABLE_SYSCALLS 1
8903 _ACEOF
8904
8905 fi
8906
8907
8908 echo "$as_me:$LINENO: checking for donuts" >&5
8909 echo $ECHO_N "checking for donuts... $ECHO_C" >&6
8910 echo "$as_me:$LINENO: result: yes" >&5
8911 echo "${ECHO_T}yes" >&6
8912
8913 for ac_prog in gawk mawk nawk awk
8914 do
8915 # Extract the first word of "$ac_prog", so it can be a program name with args.
8916 set dummy $ac_prog; ac_word=$2
8917 echo "$as_me:$LINENO: checking for $ac_word" >&5
8918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8919 if test "${ac_cv_prog_AWK+set}" = set; then
8920 echo $ECHO_N "(cached) $ECHO_C" >&6
8921 else
8922 if test -n "$AWK"; then
8923 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8924 else
8925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8926 for as_dir in $PATH
8927 do
8928 IFS=$as_save_IFS
8929 test -z "$as_dir" && as_dir=.
8930 for ac_exec_ext in '' $ac_executable_extensions; do
8931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8932 ac_cv_prog_AWK="$ac_prog"
8933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8934 break 2
8935 fi
8936 done
8937 done
8938
8939 fi
8940 fi
8941 AWK=$ac_cv_prog_AWK
8942 if test -n "$AWK"; then
8943 echo "$as_me:$LINENO: result: $AWK" >&5
8944 echo "${ECHO_T}$AWK" >&6
8945 else
8946 echo "$as_me:$LINENO: result: no" >&5
8947 echo "${ECHO_T}no" >&6
8948 fi
8949
8950 test -n "$AWK" && break
8951 done
8952
8953 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8954 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8955 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8956 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8957 echo $ECHO_N "(cached) $ECHO_C" >&6
8958 else
8959 cat >conftest.make <<\_ACEOF
8960 all:
8961 @echo 'ac_maketemp="$(MAKE)"'
8962 _ACEOF
8963 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8964 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8965 if test -n "$ac_maketemp"; then
8966 eval ac_cv_prog_make_${ac_make}_set=yes
8967 else
8968 eval ac_cv_prog_make_${ac_make}_set=no
8969 fi
8970 rm -f conftest.make
8971 fi
8972 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8973 echo "$as_me:$LINENO: result: yes" >&5
8974 echo "${ECHO_T}yes" >&6
8975 SET_MAKE=
8976 else
8977 echo "$as_me:$LINENO: result: no" >&5
8978 echo "${ECHO_T}no" >&6
8979 SET_MAKE="MAKE=${MAKE-make}"
8980 fi
8981
8982 # Find a good install program. We prefer a C program (faster),
8983 # so one script is as good as another. But avoid the broken or
8984 # incompatible versions:
8985 # SysV /etc/install, /usr/sbin/install
8986 # SunOS /usr/etc/install
8987 # IRIX /sbin/install
8988 # AIX /bin/install
8989 # AmigaOS /C/install, which installs bootblocks on floppy discs
8990 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8991 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8992 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8993 # OS/2's system install, which has a completely different semantic
8994 # ./install, which can be erroneously created by make from ./install.sh.
8995 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8996 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8997 if test -z "$INSTALL"; then
8998 if test "${ac_cv_path_install+set}" = set; then
8999 echo $ECHO_N "(cached) $ECHO_C" >&6
9000 else
9001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9002 for as_dir in $PATH
9003 do
9004 IFS=$as_save_IFS
9005 test -z "$as_dir" && as_dir=.
9006 # Account for people who put trailing slashes in PATH elements.
9007 case $as_dir/ in
9008 ./ | .// | /cC/* | \
9009 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9010 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
9011 /usr/ucb/* ) ;;
9012 *)
9013 # OSF1 and SCO ODT 3.0 have their own names for install.
9014 # Don't use installbsd from OSF since it installs stuff as root
9015 # by default.
9016 for ac_prog in ginstall scoinst install; do
9017 for ac_exec_ext in '' $ac_executable_extensions; do
9018 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9019 if test $ac_prog = install &&
9020 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9021 # AIX install. It has an incompatible calling convention.
9022 :
9023 elif test $ac_prog = install &&
9024 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9025 # program-specific install script used by HP pwplus--don't use.
9026 :
9027 else
9028 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9029 break 3
9030 fi
9031 fi
9032 done
9033 done
9034 ;;
9035 esac
9036 done
9037
9038
9039 fi
9040 if test "${ac_cv_path_install+set}" = set; then
9041 INSTALL=$ac_cv_path_install
9042 else
9043 # As a last resort, use the slow shell script. We don't cache a
9044 # path for INSTALL within a source directory, because that will
9045 # break other packages using the cache if that directory is
9046 # removed, or if the path is relative.
9047 INSTALL=$ac_install_sh
9048 fi
9049 fi
9050 echo "$as_me:$LINENO: result: $INSTALL" >&5
9051 echo "${ECHO_T}$INSTALL" >&6
9052
9053 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9054 # It thinks the first close brace ends the variable substitution.
9055 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9056
9057 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9058
9059 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9060
9061 echo "$as_me:$LINENO: checking whether ln -s works" >&5
9062 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
9063 LN_S=$as_ln_s
9064 if test "$LN_S" = "ln -s"; then
9065 echo "$as_me:$LINENO: result: yes" >&5
9066 echo "${ECHO_T}yes" >&6
9067 else
9068 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
9069 echo "${ECHO_T}no, using $LN_S" >&6
9070 fi
9071
9072 for ac_prog in rm
9073 do
9074 # Extract the first word of "$ac_prog", so it can be a program name with args.
9075 set dummy $ac_prog; ac_word=$2
9076 echo "$as_me:$LINENO: checking for $ac_word" >&5
9077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9078 if test "${ac_cv_path_RMPROG+set}" = set; then
9079 echo $ECHO_N "(cached) $ECHO_C" >&6
9080 else
9081 case $RMPROG in
9082 [\\/]* | ?:[\\/]*)
9083 ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
9084 ;;
9085 *)
9086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9087 for as_dir in $PATH
9088 do
9089 IFS=$as_save_IFS
9090 test -z "$as_dir" && as_dir=.
9091 for ac_exec_ext in '' $ac_executable_extensions; do
9092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9093 ac_cv_path_RMPROG="$as_dir/$ac_word$ac_exec_ext"
9094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9095 break 2
9096 fi
9097 done
9098 done
9099
9100 ;;
9101 esac
9102 fi
9103 RMPROG=$ac_cv_path_RMPROG
9104
9105 if test -n "$RMPROG"; then
9106 echo "$as_me:$LINENO: result: $RMPROG" >&5
9107 echo "${ECHO_T}$RMPROG" >&6
9108 else
9109 echo "$as_me:$LINENO: result: no" >&5
9110 echo "${ECHO_T}no" >&6
9111 fi
9112
9113 test -n "$RMPROG" && break
9114 done
9115 test -n "$RMPROG" || RMPROG="/bin/rm"
9116
9117 for ac_prog in sh
9118 do
9119 # Extract the first word of "$ac_prog", so it can be a program name with args.
9120 set dummy $ac_prog; ac_word=$2
9121 echo "$as_me:$LINENO: checking for $ac_word" >&5
9122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9123 if test "${ac_cv_path_SHPROG+set}" = set; then
9124 echo $ECHO_N "(cached) $ECHO_C" >&6
9125 else
9126 case $SHPROG in
9127 [\\/]* | ?:[\\/]*)
9128 ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
9129 ;;
9130 *)
9131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9132 for as_dir in $PATH
9133 do
9134 IFS=$as_save_IFS
9135 test -z "$as_dir" && as_dir=.
9136 for ac_exec_ext in '' $ac_executable_extensions; do
9137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9138 ac_cv_path_SHPROG="$as_dir/$ac_word$ac_exec_ext"
9139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9140 break 2
9141 fi
9142 done
9143 done
9144
9145 ;;
9146 esac
9147 fi
9148 SHPROG=$ac_cv_path_SHPROG
9149
9150 if test -n "$SHPROG"; then
9151 echo "$as_me:$LINENO: result: $SHPROG" >&5
9152 echo "${ECHO_T}$SHPROG" >&6
9153 else
9154 echo "$as_me:$LINENO: result: no" >&5
9155 echo "${ECHO_T}no" >&6
9156 fi
9157
9158 test -n "$SHPROG" && break
9159 done
9160 test -n "$SHPROG" || SHPROG="/bin/sh"
9161
9162
9163 for ac_prog in flex lex
9164 do
9165 # Extract the first word of "$ac_prog", so it can be a program name with args.
9166 set dummy $ac_prog; ac_word=$2
9167 echo "$as_me:$LINENO: checking for $ac_word" >&5
9168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9169 if test "${ac_cv_prog_LEX+set}" = set; then
9170 echo $ECHO_N "(cached) $ECHO_C" >&6
9171 else
9172 if test -n "$LEX"; then
9173 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9174 else
9175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9176 for as_dir in $PATH
9177 do
9178 IFS=$as_save_IFS
9179 test -z "$as_dir" && as_dir=.
9180 for ac_exec_ext in '' $ac_executable_extensions; do
9181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9182 ac_cv_prog_LEX="$ac_prog"
9183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9184 break 2
9185 fi
9186 done
9187 done
9188
9189 fi
9190 fi
9191 LEX=$ac_cv_prog_LEX
9192 if test -n "$LEX"; then
9193 echo "$as_me:$LINENO: result: $LEX" >&5
9194 echo "${ECHO_T}$LEX" >&6
9195 else
9196 echo "$as_me:$LINENO: result: no" >&5
9197 echo "${ECHO_T}no" >&6
9198 fi
9199
9200 test -n "$LEX" && break
9201 done
9202 test -n "$LEX" || LEX=":"
9203
9204 if test -z "$LEXLIB"
9205 then
9206 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
9207 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
9208 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
9209 echo $ECHO_N "(cached) $ECHO_C" >&6
9210 else
9211 ac_check_lib_save_LIBS=$LIBS
9212 LIBS="-lfl $LIBS"
9213 cat >conftest.$ac_ext <<_ACEOF
9214 /* confdefs.h. */
9215 _ACEOF
9216 cat confdefs.h >>conftest.$ac_ext
9217 cat >>conftest.$ac_ext <<_ACEOF
9218 /* end confdefs.h. */
9219
9220 /* Override any gcc2 internal prototype to avoid an error. */
9221 #ifdef __cplusplus
9222 extern "C"
9223 #endif
9224 /* We use char because int might match the return type of a gcc2
9225 builtin and then its argument prototype would still apply. */
9226 char yywrap ();
9227 int
9228 main ()
9229 {
9230 yywrap ();
9231 ;
9232 return 0;
9233 }
9234 _ACEOF
9235 rm -f conftest.$ac_objext conftest$ac_exeext
9236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9237 (eval $ac_link) 2>conftest.er1
9238 ac_status=$?
9239 grep -v '^ *+' conftest.er1 >conftest.err
9240 rm -f conftest.er1
9241 cat conftest.err >&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); } &&
9244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246 (eval $ac_try) 2>&5
9247 ac_status=$?
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; } &&
9250 { ac_try='test -s conftest$ac_exeext'
9251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252 (eval $ac_try) 2>&5
9253 ac_status=$?
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); }; }; then
9256 ac_cv_lib_fl_yywrap=yes
9257 else
9258 echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.$ac_ext >&5
9260
9261 ac_cv_lib_fl_yywrap=no
9262 fi
9263 rm -f conftest.err conftest.$ac_objext \
9264 conftest$ac_exeext conftest.$ac_ext
9265 LIBS=$ac_check_lib_save_LIBS
9266 fi
9267 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
9268 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
9269 if test $ac_cv_lib_fl_yywrap = yes; then
9270 LEXLIB="-lfl"
9271 else
9272 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
9273 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
9274 if test "${ac_cv_lib_l_yywrap+set}" = set; then
9275 echo $ECHO_N "(cached) $ECHO_C" >&6
9276 else
9277 ac_check_lib_save_LIBS=$LIBS
9278 LIBS="-ll $LIBS"
9279 cat >conftest.$ac_ext <<_ACEOF
9280 /* confdefs.h. */
9281 _ACEOF
9282 cat confdefs.h >>conftest.$ac_ext
9283 cat >>conftest.$ac_ext <<_ACEOF
9284 /* end confdefs.h. */
9285
9286 /* Override any gcc2 internal prototype to avoid an error. */
9287 #ifdef __cplusplus
9288 extern "C"
9289 #endif
9290 /* We use char because int might match the return type of a gcc2
9291 builtin and then its argument prototype would still apply. */
9292 char yywrap ();
9293 int
9294 main ()
9295 {
9296 yywrap ();
9297 ;
9298 return 0;
9299 }
9300 _ACEOF
9301 rm -f conftest.$ac_objext conftest$ac_exeext
9302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9303 (eval $ac_link) 2>conftest.er1
9304 ac_status=$?
9305 grep -v '^ *+' conftest.er1 >conftest.err
9306 rm -f conftest.er1
9307 cat conftest.err >&5
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); } &&
9310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9312 (eval $ac_try) 2>&5
9313 ac_status=$?
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); }; } &&
9316 { ac_try='test -s conftest$ac_exeext'
9317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9318 (eval $ac_try) 2>&5
9319 ac_status=$?
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); }; }; then
9322 ac_cv_lib_l_yywrap=yes
9323 else
9324 echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.$ac_ext >&5
9326
9327 ac_cv_lib_l_yywrap=no
9328 fi
9329 rm -f conftest.err conftest.$ac_objext \
9330 conftest$ac_exeext conftest.$ac_ext
9331 LIBS=$ac_check_lib_save_LIBS
9332 fi
9333 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
9334 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
9335 if test $ac_cv_lib_l_yywrap = yes; then
9336 LEXLIB="-ll"
9337 fi
9338
9339 fi
9340
9341 fi
9342
9343 if test "x$LEX" != "x:"; then
9344 echo "$as_me:$LINENO: checking lex output file root" >&5
9345 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
9346 if test "${ac_cv_prog_lex_root+set}" = set; then
9347 echo $ECHO_N "(cached) $ECHO_C" >&6
9348 else
9349 # The minimal lex program is just a single line: %%. But some broken lexes
9350 # (Solaris, I think it was) want two %% lines, so accommodate them.
9351 cat >conftest.l <<_ACEOF
9352 %%
9353 %%
9354 _ACEOF
9355 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
9356 (eval $LEX conftest.l) 2>&5
9357 ac_status=$?
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); }
9360 if test -f lex.yy.c; then
9361 ac_cv_prog_lex_root=lex.yy
9362 elif test -f lexyy.c; then
9363 ac_cv_prog_lex_root=lexyy
9364 else
9365 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
9366 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
9367 { (exit 1); exit 1; }; }
9368 fi
9369 fi
9370 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
9371 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
9372 rm -f conftest.l
9373 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
9374
9375 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
9376 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
9377 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
9378 echo $ECHO_N "(cached) $ECHO_C" >&6
9379 else
9380 # POSIX says lex can declare yytext either as a pointer or an array; the
9381 # default is implementation-dependent. Figure out which it is, since
9382 # not all implementations provide the %pointer and %array declarations.
9383 ac_cv_prog_lex_yytext_pointer=no
9384 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
9385 ac_save_LIBS=$LIBS
9386 LIBS="$LIBS $LEXLIB"
9387 cat >conftest.$ac_ext <<_ACEOF
9388 `cat $LEX_OUTPUT_ROOT.c`
9389 _ACEOF
9390 rm -f conftest.$ac_objext conftest$ac_exeext
9391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9392 (eval $ac_link) 2>conftest.er1
9393 ac_status=$?
9394 grep -v '^ *+' conftest.er1 >conftest.err
9395 rm -f conftest.er1
9396 cat conftest.err >&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); } &&
9399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401 (eval $ac_try) 2>&5
9402 ac_status=$?
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; } &&
9405 { ac_try='test -s conftest$ac_exeext'
9406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9407 (eval $ac_try) 2>&5
9408 ac_status=$?
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); }; }; then
9411 ac_cv_prog_lex_yytext_pointer=yes
9412 else
9413 echo "$as_me: failed program was:" >&5
9414 sed 's/^/| /' conftest.$ac_ext >&5
9415
9416 fi
9417 rm -f conftest.err conftest.$ac_objext \
9418 conftest$ac_exeext conftest.$ac_ext
9419 LIBS=$ac_save_LIBS
9420 rm -f "${LEX_OUTPUT_ROOT}.c"
9421
9422 fi
9423 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
9424 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
9425 if test $ac_cv_prog_lex_yytext_pointer = yes; then
9426
9427 cat >>confdefs.h <<\_ACEOF
9428 #define YYTEXT_POINTER 1
9429 _ACEOF
9430
9431 fi
9432
9433 fi
9434 if test "$LEX" = ":" ; then
9435 { { echo "$as_me:$LINENO: error: Cannot find flex." >&5
9436 echo "$as_me: error: Cannot find flex." >&2;}
9437 { (exit 1); exit 1; }; }
9438 elif echo "" | $LEX -V -v --version > /dev/null 2>&1 ; then
9439 :
9440 else
9441 { { echo "$as_me:$LINENO: error: Cannot use $LEX as flex." >&5
9442 echo "$as_me: error: Cannot use $LEX as flex." >&2;}
9443 { (exit 1); exit 1; }; }
9444 fi
9445
9446 if test -z "$LEXLIB" ; then
9447 { { echo "$as_me:$LINENO: error: Cannot find a library with yywrap() in, but flex was found.
9448 It's possible the compiler you're using ($CC) is incompatible with the
9449 installed library.
9450 See \`config.log' for more details." >&5
9451 echo "$as_me: error: Cannot find a library with yywrap() in, but flex was found.
9452 It's possible the compiler you're using ($CC) is incompatible with the
9453 installed library.
9454 See \`config.log' for more details." >&2;}
9455 { (exit 1); exit 1; }; }
9456 fi
9457
9458 LIBS="$LEXLIB $LIBS"
9459
9460 for ac_prog in 'bison -y' byacc
9461 do
9462 # Extract the first word of "$ac_prog", so it can be a program name with args.
9463 set dummy $ac_prog; ac_word=$2
9464 echo "$as_me:$LINENO: checking for $ac_word" >&5
9465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9466 if test "${ac_cv_prog_YACC+set}" = set; then
9467 echo $ECHO_N "(cached) $ECHO_C" >&6
9468 else
9469 if test -n "$YACC"; then
9470 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9471 else
9472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9473 for as_dir in $PATH
9474 do
9475 IFS=$as_save_IFS
9476 test -z "$as_dir" && as_dir=.
9477 for ac_exec_ext in '' $ac_executable_extensions; do
9478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9479 ac_cv_prog_YACC="$ac_prog"
9480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9481 break 2
9482 fi
9483 done
9484 done
9485
9486 fi
9487 fi
9488 YACC=$ac_cv_prog_YACC
9489 if test -n "$YACC"; then
9490 echo "$as_me:$LINENO: result: $YACC" >&5
9491 echo "${ECHO_T}$YACC" >&6
9492 else
9493 echo "$as_me:$LINENO: result: no" >&5
9494 echo "${ECHO_T}no" >&6
9495 fi
9496
9497 test -n "$YACC" && break
9498 done
9499 test -n "$YACC" || YACC="yacc"
9500
9501 if test "$YACC" = ":" ; then
9502 { { echo "$as_me:$LINENO: error: Cannot find yacc." >&5
9503 echo "$as_me: error: Cannot find yacc." >&2;}
9504 { (exit 1); exit 1; }; }
9505 elif echo "" | $YACC -V -v --version > /dev/null 2>&1 ; then
9506 :
9507 else
9508 { echo "$as_me:$LINENO: WARNING: $YACC may not work as yacc." >&5
9509 echo "$as_me: WARNING: $YACC may not work as yacc." >&2;}
9510 fi
9511
9512 echo "$as_me:$LINENO: checking for posix non-blocking" >&5
9513 echo $ECHO_N "checking for posix non-blocking... $ECHO_C" >&6
9514 if test "${unet_cv_sys_nonblocking_posix+set}" = set; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9516 else
9517 if test "$cross_compiling" = yes; then
9518 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9519 See \`config.log' for more details." >&5
9520 echo "$as_me: error: cannot run test program while cross compiling
9521 See \`config.log' for more details." >&2;}
9522 { (exit 1); exit 1; }; }
9523 else
9524 cat >conftest.$ac_ext <<_ACEOF
9525 /* confdefs.h. */
9526 _ACEOF
9527 cat confdefs.h >>conftest.$ac_ext
9528 cat >>conftest.$ac_ext <<_ACEOF
9529 /* end confdefs.h. */
9530 #include <sys/types.h>
9531 #include <sys/socket.h>
9532 #include <fcntl.h>
9533 #include <sys/ioctl.h>
9534 #include <sys/file.h>
9535 #include <signal.h>
9536 $ac_cv_type_signal alarmed() { exit(1); }
9537 int main(void)
9538 {
9539 char b[12];
9540 struct sockaddr x;
9541 size_t l = sizeof(x);
9542 int f = socket(AF_INET, SOCK_DGRAM, 0);
9543 if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
9544 {
9545 signal(SIGALRM, alarmed);
9546 alarm(2);
9547 recvfrom(f, b, 12, 0, &x, &l);
9548 alarm(0);
9549 exit(0);
9550 }
9551 exit(1);
9552 }
9553 _ACEOF
9554 rm -f conftest$ac_exeext
9555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9556 (eval $ac_link) 2>&5
9557 ac_status=$?
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9561 (eval $ac_try) 2>&5
9562 ac_status=$?
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); }; }; then
9565 unet_cv_sys_nonblocking_posix=yes
9566 else
9567 echo "$as_me: program exited with status $ac_status" >&5
9568 echo "$as_me: failed program was:" >&5
9569 sed 's/^/| /' conftest.$ac_ext >&5
9570
9571 ( exit $ac_status )
9572 unet_cv_sys_nonblocking_posix=no
9573 fi
9574 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9575 fi
9576 fi
9577 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_posix" >&5
9578 echo "${ECHO_T}$unet_cv_sys_nonblocking_posix" >&6
9579 if test $unet_cv_sys_nonblocking_posix = yes; then
9580
9581 cat >>confdefs.h <<\_ACEOF
9582 #define NBLOCK_POSIX
9583 _ACEOF
9584
9585 else
9586 echo "$as_me:$LINENO: checking for bsd non-blocking" >&5
9587 echo $ECHO_N "checking for bsd non-blocking... $ECHO_C" >&6
9588 if test "${unet_cv_sys_nonblocking_bsd+set}" = set; then
9589 echo $ECHO_N "(cached) $ECHO_C" >&6
9590 else
9591 if test "$cross_compiling" = yes; then
9592 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9593 See \`config.log' for more details." >&5
9594 echo "$as_me: error: cannot run test program while cross compiling
9595 See \`config.log' for more details." >&2;}
9596 { (exit 1); exit 1; }; }
9597 else
9598 cat >conftest.$ac_ext <<_ACEOF
9599 /* confdefs.h. */
9600 _ACEOF
9601 cat confdefs.h >>conftest.$ac_ext
9602 cat >>conftest.$ac_ext <<_ACEOF
9603 /* end confdefs.h. */
9604 #include <sys/types.h>
9605 #include <sys/socket.h>
9606 #include <fcntl.h>
9607 #include <sys/ioctl.h>
9608 #include <sys/file.h>
9609 #include <signal.h>
9610 $ac_cv_type_signal alarmed() { exit(1); }
9611 int main(void)
9612 {
9613 char b[12];
9614 struct sockaddr x;
9615 size_t l = sizeof(x);
9616 int f = socket(AF_INET, SOCK_DGRAM, 0);
9617 if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
9618 {
9619 signal(SIGALRM, alarmed);
9620 alarm(2);
9621 recvfrom(f, b, 12, 0, &x, &l);
9622 alarm(0);
9623 exit(0);
9624 }
9625 exit(1);
9626 }
9627 _ACEOF
9628 rm -f conftest$ac_exeext
9629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9630 (eval $ac_link) 2>&5
9631 ac_status=$?
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9635 (eval $ac_try) 2>&5
9636 ac_status=$?
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); }; }; then
9639 unet_cv_sys_nonblocking_bsd=yes
9640 else
9641 echo "$as_me: program exited with status $ac_status" >&5
9642 echo "$as_me: failed program was:" >&5
9643 sed 's/^/| /' conftest.$ac_ext >&5
9644
9645 ( exit $ac_status )
9646 unet_cv_sys_nonblocking_bsd=no
9647 fi
9648 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9649 fi
9650 fi
9651 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_bsd" >&5
9652 echo "${ECHO_T}$unet_cv_sys_nonblocking_bsd" >&6
9653 if test $unet_cv_sys_nonblocking_bsd = yes; then
9654
9655 cat >>confdefs.h <<\_ACEOF
9656 #define NBLOCK_BSD
9657 _ACEOF
9658
9659 else
9660
9661 cat >>confdefs.h <<\_ACEOF
9662 #define NBLOCK_SYSV
9663 _ACEOF
9664
9665 fi
9666 fi
9667 echo "$as_me:$LINENO: checking for posix signals" >&5
9668 echo $ECHO_N "checking for posix signals... $ECHO_C" >&6
9669 if test "${unet_cv_sys_signal_posix+set}" = set; then
9670 echo $ECHO_N "(cached) $ECHO_C" >&6
9671 else
9672 cat >conftest.$ac_ext <<_ACEOF
9673 /* confdefs.h. */
9674 _ACEOF
9675 cat confdefs.h >>conftest.$ac_ext
9676 cat >>conftest.$ac_ext <<_ACEOF
9677 /* end confdefs.h. */
9678 #include <signal.h>
9679 int
9680 main ()
9681 {
9682 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
9683 ;
9684 return 0;
9685 }
9686 _ACEOF
9687 rm -f conftest.$ac_objext
9688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9689 (eval $ac_compile) 2>conftest.er1
9690 ac_status=$?
9691 grep -v '^ *+' conftest.er1 >conftest.err
9692 rm -f conftest.er1
9693 cat conftest.err >&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); } &&
9696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9698 (eval $ac_try) 2>&5
9699 ac_status=$?
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); }; } &&
9702 { ac_try='test -s conftest.$ac_objext'
9703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704 (eval $ac_try) 2>&5
9705 ac_status=$?
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); }; }; then
9708 unet_cv_sys_signal_posix=yes
9709 else
9710 echo "$as_me: failed program was:" >&5
9711 sed 's/^/| /' conftest.$ac_ext >&5
9712
9713 unet_cv_sys_signal_posix=no
9714 fi
9715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9716 fi
9717 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_posix" >&5
9718 echo "${ECHO_T}$unet_cv_sys_signal_posix" >&6
9719 if test $unet_cv_sys_signal_posix = yes; then
9720
9721 cat >>confdefs.h <<\_ACEOF
9722 #define POSIX_SIGNALS
9723 _ACEOF
9724
9725 else
9726 echo "$as_me:$LINENO: checking for bsd reliable signals" >&5
9727 echo $ECHO_N "checking for bsd reliable signals... $ECHO_C" >&6
9728 if test "${unet_cv_sys_signal_bsd+set}" = set; then
9729 echo $ECHO_N "(cached) $ECHO_C" >&6
9730 else
9731 if test "$cross_compiling" = yes; then
9732 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9733 See \`config.log' for more details." >&5
9734 echo "$as_me: error: cannot run test program while cross compiling
9735 See \`config.log' for more details." >&2;}
9736 { (exit 1); exit 1; }; }
9737 else
9738 cat >conftest.$ac_ext <<_ACEOF
9739 /* confdefs.h. */
9740 _ACEOF
9741 cat confdefs.h >>conftest.$ac_ext
9742 cat >>conftest.$ac_ext <<_ACEOF
9743 /* end confdefs.h. */
9744 #include <signal.h>
9745 int calls = 0;
9746 $ac_cv_type_signal handler()
9747 {
9748 if (calls) return;
9749 calls++;
9750 kill(getpid(), SIGTERM);
9751 sleep(1);
9752 }
9753 int main(void)
9754 {
9755 signal(SIGTERM, handler);
9756 kill(getpid(), SIGTERM);
9757 exit (0);
9758 }
9759 _ACEOF
9760 rm -f conftest$ac_exeext
9761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9762 (eval $ac_link) 2>&5
9763 ac_status=$?
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9767 (eval $ac_try) 2>&5
9768 ac_status=$?
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); }; }; then
9771 unet_cv_sys_signal_bsd=yes
9772 else
9773 echo "$as_me: program exited with status $ac_status" >&5
9774 echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9776
9777 ( exit $ac_status )
9778 unet_cv_sys_signal_bsd=no
9779 fi
9780 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9781 fi
9782 fi
9783 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_bsd" >&5
9784 echo "${ECHO_T}$unet_cv_sys_signal_bsd" >&6
9785 if test $unet_cv_sys_signal_bsd = yes; then
9786
9787 cat >>confdefs.h <<\_ACEOF
9788 #define BSD_RELIABLE_SIGNALS
9789 _ACEOF
9790
9791 else
9792
9793 cat >>confdefs.h <<\_ACEOF
9794 #define SYSV_UNRELIABLE_SIGNALS
9795 _ACEOF
9796
9797 fi
9798 fi
9799
9800 echo "$as_me:$LINENO: checking for OS-dependent information" >&5
9801 echo $ECHO_N "checking for OS-dependent information... $ECHO_C" >&6
9802 case "$host" in
9803 *-linux*)
9804 echo "$as_me:$LINENO: result: Linux ($host) found." >&5
9805 echo "${ECHO_T}Linux ($host) found." >&6
9806 unet_poll_syscall=yes
9807 ;;
9808
9809 *-solaris*)
9810 echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
9811 echo "${ECHO_T}Solaris ($host) found." >&6
9812 if test x"$ac_cv_header_poll_h" = xyes; then
9813 unet_poll_syscall=yes
9814 else
9815 unet_poll_syscall=no
9816 fi
9817 ;;
9818
9819 *-sunos*)
9820 echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
9821 echo "${ECHO_T}Solaris ($host) found." >&6
9822 unet_poll_syscall=no
9823 ;;
9824
9825 *-openbsd*)
9826 echo "$as_me:$LINENO: result: OpenBSD ($host) found." >&5
9827 echo "${ECHO_T}OpenBSD ($host) found." >&6
9828 if test x"$ac_cv_header_poll_h" = xyes; then
9829 unet_poll_syscall=yes
9830 else
9831 unet_poll_syscall=no
9832 fi
9833 ;;
9834
9835 *-*bsd*)
9836 echo "$as_me:$LINENO: result: Generic BSD ($host) found." >&5
9837 echo "${ECHO_T}Generic BSD ($host) found." >&6
9838 if test x"$ac_cv_header_poll_h" = xyes; then
9839 unet_poll_syscall=yes
9840 else
9841 unet_poll_syscall=no
9842 fi
9843 ;;
9844
9845 *-darwin*)
9846 echo "$as_me:$LINENO: result: Darwin (Mac OS X) ($host) found." >&5
9847 echo "${ECHO_T}Darwin (Mac OS X) ($host) found." >&6
9848 unet_poll_syscall=no
9849 ;;
9850
9851 *)
9852 echo "$as_me:$LINENO: result: Unknown system type $host found." >&5
9853 echo "${ECHO_T}Unknown system type $host found." >&6
9854 { echo "$as_me:$LINENO: WARNING: Unknown OS type; using generic routines." >&5
9855 echo "$as_me: WARNING: Unknown OS type; using generic routines." >&2;}
9856 unet_poll_syscall=no
9857 ;;
9858 esac
9859
9860 echo "$as_me:$LINENO: checking whether to enable use of poll()" >&5
9861 echo $ECHO_N "checking whether to enable use of poll()... $ECHO_C" >&6
9862 # Check whether --enable-poll or --disable-poll was given.
9863 if test "${enable_poll+set}" = set; then
9864 enableval="$enable_poll"
9865 unet_cv_enable_poll=$enable_poll
9866 else
9867 if test "${unet_cv_enable_poll+set}" = set; then
9868 echo $ECHO_N "(cached) $ECHO_C" >&6
9869 else
9870 unet_cv_enable_poll=$unet_poll_syscall
9871 fi
9872
9873 fi;
9874
9875 # Force poll to be disabled if there is no poll.h
9876 if test x"$ac_cv_header_poll_h" != xyes; then
9877 unet_cv_enable_poll=no
9878 fi
9879
9880 echo "$as_me:$LINENO: result: $unet_cv_enable_poll" >&5
9881 echo "${ECHO_T}$unet_cv_enable_poll" >&6
9882
9883 if test x"$unet_cv_enable_poll" = xyes; then
9884
9885 cat >>confdefs.h <<\_ACEOF
9886 #define USE_POLL 1
9887 _ACEOF
9888
9889 ENGINE_C=engine_poll.c
9890 else
9891 ENGINE_C=engine_select.c
9892 fi
9893
9894
9895 echo "$as_me:$LINENO: checking whether to enable debug mode" >&5
9896 echo $ECHO_N "checking whether to enable debug mode... $ECHO_C" >&6
9897 # Check whether --enable-debug or --disable-debug was given.
9898 if test "${enable_debug+set}" = set; then
9899 enableval="$enable_debug"
9900 unet_cv_enable_debug=$enable_debug
9901 else
9902 if test "${unet_cv_enable_debug+set}" = set; then
9903 echo $ECHO_N "(cached) $ECHO_C" >&6
9904 else
9905 unet_cv_enable_debug=no
9906 fi
9907
9908 fi;
9909 echo "$as_me:$LINENO: result: $unet_cv_enable_debug" >&5
9910 echo "${ECHO_T}$unet_cv_enable_debug" >&6
9911
9912 if test x"$unet_cv_enable_debug" = xyes; then
9913
9914 cat >>confdefs.h <<\_ACEOF
9915 #define DEBUGMODE 1
9916 _ACEOF
9917
9918 fi
9919
9920 echo "$as_me:$LINENO: checking whether to enable leak detection" >&5
9921 echo $ECHO_N "checking whether to enable leak detection... $ECHO_C" >&6
9922
9923 # Check whether --with-leak-detect or --without-leak-detect was given.
9924 if test "${with_leak_detect+set}" = set; then
9925 withval="$with_leak_detect"
9926 unet_cv_with_leak_detect=$with_leak_detect
9927 else
9928 if test "${unet_cv_with_leak_detect+set}" = set; then
9929 echo $ECHO_N "(cached) $ECHO_C" >&6
9930 else
9931 unet_cv_with_leak_detect=no
9932 fi
9933
9934 fi;
9935 echo "$as_me:$LINENO: result: $unet_cv_enable_leak_detect" >&5
9936 echo "${ECHO_T}$unet_cv_enable_leak_detect" >&6
9937
9938 if test x"$unet_cv_with_leak_detect" != xno; then
9939 LIBS="-lgc $LIBS"
9940 CFLAGS="-DMDEBUG $CFLAGS"
9941 if test x"$unet_cv_with_leak_detect" != xyes; then
9942 LIBS="-L$unet_cv_with_leak_detect $LIBS"
9943 fi
9944 fi
9945
9946
9947 # Check whether --with-ipv6 or --without-ipv6 was given.
9948 if test "${with_ipv6+set}" = set; then
9949 withval="$with_ipv6"
9950 ac_cv_use_ipv6=$withval
9951 else
9952 ac_cv_use_ipv6=$unet_have_sockaddr_in6
9953 fi;
9954 echo "$as_me:$LINENO: checking whether to use IPv6" >&5
9955 echo $ECHO_N "checking whether to use IPv6... $ECHO_C" >&6
9956 if test "${ac_cv_use_ipv6+set}" = set; then
9957 echo $ECHO_N "(cached) $ECHO_C" >&6
9958 else
9959 ac_cv_use_ipv6=no
9960 fi
9961 echo "$as_me:$LINENO: result: $ac_cv_use_ipv6" >&5
9962 echo "${ECHO_T}$ac_cv_use_ipv6" >&6
9963 if test x"$ac_cv_use_ipv6" != "xno" ; then
9964
9965 cat >>confdefs.h <<\_ACEOF
9966 #define IPV6 1
9967 _ACEOF
9968
9969 fi
9970
9971 echo "$as_me:$LINENO: checking whether to enable asserts" >&5
9972 echo $ECHO_N "checking whether to enable asserts... $ECHO_C" >&6
9973 # Check whether --enable-asserts or --disable-asserts was given.
9974 if test "${enable_asserts+set}" = set; then
9975 enableval="$enable_asserts"
9976 unet_cv_enable_asserts=$enable_asserts
9977 else
9978 if test "${unet_cv_enable_asserts+set}" = set; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
9980 else
9981 unet_cv_enable_asserts=yes
9982 fi
9983
9984 fi;
9985 echo "$as_me:$LINENO: result: $unet_cv_enable_asserts" >&5
9986 echo "${ECHO_T}$unet_cv_enable_asserts" >&6
9987
9988 if test x"$unet_cv_enable_asserts" = xno; then
9989
9990 cat >>confdefs.h <<\_ACEOF
9991 #define NDEBUG 1
9992 _ACEOF
9993
9994 fi
9995
9996 echo "$as_me:$LINENO: checking whether to enable profiling support (gprof)" >&5
9997 echo $ECHO_N "checking whether to enable profiling support (gprof)... $ECHO_C" >&6
9998 # Check whether --enable-profile or --disable-profile was given.
9999 if test "${enable_profile+set}" = set; then
10000 enableval="$enable_profile"
10001 unet_cv_enable_profile=$enable_profile
10002 else
10003 if test "${unet_cv_enable_profile+set}" = set; then
10004 echo $ECHO_N "(cached) $ECHO_C" >&6
10005 else
10006 unet_cv_enable_profile=no
10007 fi
10008
10009 fi;
10010 echo "$as_me:$LINENO: result: $unet_cv_enable_profile" >&5
10011 echo "${ECHO_T}$unet_cv_enable_profile" >&6
10012
10013 if test x"$unet_cv_enable_profile" = xyes; then
10014 CFLAGS="-pg $CFLAGS"
10015 LDFLAGS="-pg $LDFLAGS"
10016 fi
10017
10018 echo "$as_me:$LINENO: checking whether to enable pedantic compiler warnings" >&5
10019 echo $ECHO_N "checking whether to enable pedantic compiler warnings... $ECHO_C" >&6
10020 # Check whether --enable-pedantic or --disable-pedantic was given.
10021 if test "${enable_pedantic+set}" = set; then
10022 enableval="$enable_pedantic"
10023 unet_cv_enable_pedantic=$enable_pedantic
10024 else
10025 if test "${unet_cv_enable_pedantic+set}" = set; then
10026 echo $ECHO_N "(cached) $ECHO_C" >&6
10027 else
10028 unet_cv_enable_pedantic=no
10029 fi
10030
10031 fi;
10032 echo "$as_me:$LINENO: result: $unet_cv_enable_pedantic" >&5
10033 echo "${ECHO_T}$unet_cv_enable_pedantic" >&6
10034
10035 if test x"$unet_cv_enable_pedantic" = xyes; then
10036 CFLAGS="-pedantic $CFLAGS"
10037 fi
10038
10039 echo "$as_me:$LINENO: checking whether to enable compiler warnings" >&5
10040 echo $ECHO_N "checking whether to enable compiler warnings... $ECHO_C" >&6
10041 # Check whether --enable-warnings or --disable-warnings was given.
10042 if test "${enable_warnings+set}" = set; then
10043 enableval="$enable_warnings"
10044 unet_cv_enable_warnings=$enable_warnings
10045 else
10046 if test "${unet_cv_enable_warnings+set}" = set; then
10047 echo $ECHO_N "(cached) $ECHO_C" >&6
10048 else
10049 unet_cv_enable_warnings=no
10050 fi
10051
10052 fi;
10053 echo "$as_me:$LINENO: result: $unet_cv_enable_warnings" >&5
10054 echo "${ECHO_T}$unet_cv_enable_warnings" >&6
10055
10056 if test x"$unet_cv_enable_warnings" = xyes; then
10057 CFLAGS="-Wall $CFLAGS"
10058 fi
10059
10060 echo "$as_me:$LINENO: checking whether to enable inlining for a few critical functions" >&5
10061 echo $ECHO_N "checking whether to enable inlining for a few critical functions... $ECHO_C" >&6
10062 # Check whether --enable-inlines or --disable-inlines was given.
10063 if test "${enable_inlines+set}" = set; then
10064 enableval="$enable_inlines"
10065 unet_cv_enable_inlines=$enable_inlines
10066 else
10067 if test "${unet_cv_enable_inlines+set}" = set; then
10068 echo $ECHO_N "(cached) $ECHO_C" >&6
10069 else
10070 unet_cv_enable_inlines=yes
10071 fi
10072
10073 fi;
10074 echo "$as_me:$LINENO: result: $unet_cv_enable_inlines" >&5
10075 echo "${ECHO_T}$unet_cv_enable_inlines" >&6
10076
10077 if test x"$unet_cv_enable_inlines" = xyes; then
10078
10079 cat >>confdefs.h <<\_ACEOF
10080 #define FORCEINLINE 1
10081 _ACEOF
10082
10083 fi
10084
10085 echo "$as_me:$LINENO: checking whether to enable the /dev/poll event engine" >&5
10086 echo $ECHO_N "checking whether to enable the /dev/poll event engine... $ECHO_C" >&6
10087 # Check whether --enable-devpoll or --disable-devpoll was given.
10088 if test "${enable_devpoll+set}" = set; then
10089 enableval="$enable_devpoll"
10090 unet_cv_enable_devpoll=$enable_devpoll
10091 else
10092 if test "${unet_cv_enable_devpoll+set}" = set; then
10093 echo $ECHO_N "(cached) $ECHO_C" >&6
10094 else
10095 unet_cv_enable_devpoll=yes
10096 fi
10097
10098 fi;
10099
10100 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
10101 unet_cv_enable_devpoll=no
10102 fi
10103
10104 echo "$as_me:$LINENO: result: $unet_cv_enable_devpoll" >&5
10105 echo "${ECHO_T}$unet_cv_enable_devpoll" >&6
10106
10107 if test x"$unet_cv_enable_devpoll" != xno; then
10108
10109 cat >>confdefs.h <<\_ACEOF
10110 #define USE_DEVPOLL 1
10111 _ACEOF
10112
10113 ENGINE_C="engine_devpoll.c $ENGINE_C"
10114 fi
10115
10116 echo "$as_me:$LINENO: checking whether to enable the kqueue event engine" >&5
10117 echo $ECHO_N "checking whether to enable the kqueue event engine... $ECHO_C" >&6
10118 # Check whether --enable-kqueue or --disable-kqueue was given.
10119 if test "${enable_kqueue+set}" = set; then
10120 enableval="$enable_kqueue"
10121 unet_cv_enable_kqueue=$enable_kqueue
10122 else
10123 if test "${unet_cv_enable_kqueue+set}" = set; then
10124 echo $ECHO_N "(cached) $ECHO_C" >&6
10125 else
10126 unet_cv_enable_kqueue=yes
10127 fi
10128
10129 fi;
10130
10131 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
10132 unet_cv_enable_kqueue=no
10133 fi
10134
10135 echo "$as_me:$LINENO: result: $unet_cv_enable_kqueue" >&5
10136 echo "${ECHO_T}$unet_cv_enable_kqueue" >&6
10137
10138 if test x"$unet_cv_enable_kqueue" != xno; then
10139
10140 cat >>confdefs.h <<\_ACEOF
10141 #define USE_KQUEUE 1
10142 _ACEOF
10143
10144 ENGINE_C="engine_kqueue.c $ENGINE_C"
10145 fi
10146
10147 echo "$as_me:$LINENO: checking whether to enable the epoll event engine" >&5
10148 echo $ECHO_N "checking whether to enable the epoll event engine... $ECHO_C" >&6
10149 # Check whether --enable-epoll or --disable-epoll was given.
10150 if test "${enable_epoll+set}" = set; then
10151 enableval="$enable_epoll"
10152 unet_cv_enable_epoll=$enable_epoll
10153 else
10154 if test "${unet_cv_enable_epoll+set}" = set; then
10155 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 else
10157 unet_cv_enable_epoll=yes
10158 fi
10159
10160 fi;
10161
10162 if test x"$ac_cv_header_sys_epoll_h" = xno -o x"$ac_cv_func_epoll" = xno; then
10163 unet_cv_enable_epoll=no
10164 fi
10165
10166 echo "$as_me:$LINENO: result: $unet_cv_enable_epoll" >&5
10167 echo "${ECHO_T}$unet_cv_enable_epoll" >&6
10168
10169 if test x"$unet_cv_enable_epoll" != xno; then
10170 echo "$as_me:$LINENO: checking whether epoll functions are properly defined" >&5
10171 echo $ECHO_N "checking whether epoll functions are properly defined... $ECHO_C" >&6
10172 cat >conftest.$ac_ext <<_ACEOF
10173 /* confdefs.h. */
10174 _ACEOF
10175 cat confdefs.h >>conftest.$ac_ext
10176 cat >>conftest.$ac_ext <<_ACEOF
10177 /* end confdefs.h. */
10178 #include <sys/epoll.h>
10179 int
10180 main ()
10181 {
10182 epoll_create(10);
10183 ;
10184 return 0;
10185 }
10186 _ACEOF
10187 rm -f conftest.$ac_objext conftest$ac_exeext
10188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10189 (eval $ac_link) 2>conftest.er1
10190 ac_status=$?
10191 grep -v '^ *+' conftest.er1 >conftest.err
10192 rm -f conftest.er1
10193 cat conftest.err >&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); } &&
10196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198 (eval $ac_try) 2>&5
10199 ac_status=$?
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); }; } &&
10202 { ac_try='test -s conftest$ac_exeext'
10203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204 (eval $ac_try) 2>&5
10205 ac_status=$?
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; }; then
10208 echo "$as_me:$LINENO: result: yes" >&5
10209 echo "${ECHO_T}yes" >&6
10210 else
10211 echo "$as_me: failed program was:" >&5
10212 sed 's/^/| /' conftest.$ac_ext >&5
10213
10214 echo "$as_me:$LINENO: result: no" >&5
10215 echo "${ECHO_T}no" >&6
10216
10217 cat >>confdefs.h <<\_ACEOF
10218 #define EPOLL_NEED_BODY 1
10219 _ACEOF
10220
10221 fi
10222 rm -f conftest.err conftest.$ac_objext \
10223 conftest$ac_exeext conftest.$ac_ext
10224
10225 cat >>confdefs.h <<\_ACEOF
10226 #define USE_EPOLL 1
10227 _ACEOF
10228
10229 ENGINE_C="engine_epoll.c $ENGINE_C"
10230 fi
10231
10232 echo "$as_me:$LINENO: checking for va_copy" >&5
10233 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10234 if test "${unet_cv_c_va_copy+set}" = set; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10236 else
10237 cat >conftest.$ac_ext <<_ACEOF
10238 /* confdefs.h. */
10239 _ACEOF
10240 cat confdefs.h >>conftest.$ac_ext
10241 cat >>conftest.$ac_ext <<_ACEOF
10242 /* end confdefs.h. */
10243 #include <stdarg.h>
10244 int
10245 main ()
10246 {
10247 va_list ap1, ap2; va_copy(ap1, ap2);
10248 ;
10249 return 0;
10250 }
10251 _ACEOF
10252 rm -f conftest.$ac_objext conftest$ac_exeext
10253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10254 (eval $ac_link) 2>conftest.er1
10255 ac_status=$?
10256 grep -v '^ *+' conftest.er1 >conftest.err
10257 rm -f conftest.er1
10258 cat conftest.err >&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); } &&
10261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10263 (eval $ac_try) 2>&5
10264 ac_status=$?
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; } &&
10267 { ac_try='test -s conftest$ac_exeext'
10268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269 (eval $ac_try) 2>&5
10270 ac_status=$?
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); }; }; then
10273 unet_cv_c_va_copy="yes"
10274 else
10275 echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10277
10278 unet_cv_c_va_copy="no"
10279
10280 fi
10281 rm -f conftest.err conftest.$ac_objext \
10282 conftest$ac_exeext conftest.$ac_ext
10283 fi
10284 echo "$as_me:$LINENO: result: $unet_cv_c_va_copy" >&5
10285 echo "${ECHO_T}$unet_cv_c_va_copy" >&6
10286 if test "$unet_cv_c_va_copy" = "yes" ; then
10287
10288 cat >>confdefs.h <<\_ACEOF
10289 #define HAVE_VA_COPY 1
10290 _ACEOF
10291
10292 fi
10293
10294 echo "$as_me:$LINENO: checking for __va_copy" >&5
10295 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10296 if test "${unet_cv_c___va_copy+set}" = set; then
10297 echo $ECHO_N "(cached) $ECHO_C" >&6
10298 else
10299 cat >conftest.$ac_ext <<_ACEOF
10300 /* confdefs.h. */
10301 _ACEOF
10302 cat confdefs.h >>conftest.$ac_ext
10303 cat >>conftest.$ac_ext <<_ACEOF
10304 /* end confdefs.h. */
10305 #include <stdarg.h>
10306 int
10307 main ()
10308 {
10309 va_list ap1, ap2; __va_copy(ap1, ap2);
10310 ;
10311 return 0;
10312 }
10313 _ACEOF
10314 rm -f conftest.$ac_objext conftest$ac_exeext
10315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10316 (eval $ac_link) 2>conftest.er1
10317 ac_status=$?
10318 grep -v '^ *+' conftest.er1 >conftest.err
10319 rm -f conftest.er1
10320 cat conftest.err >&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); } &&
10323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325 (eval $ac_try) 2>&5
10326 ac_status=$?
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; } &&
10329 { ac_try='test -s conftest$ac_exeext'
10330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10331 (eval $ac_try) 2>&5
10332 ac_status=$?
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); }; }; then
10335 unet_cv_c___va_copy="yes"
10336 else
10337 echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10339
10340 unet_cv_c___va_copy="no"
10341
10342 fi
10343 rm -f conftest.err conftest.$ac_objext \
10344 conftest$ac_exeext conftest.$ac_ext
10345 fi
10346 echo "$as_me:$LINENO: result: $unet_cv_c___va_copy" >&5
10347 echo "${ECHO_T}$unet_cv_c___va_copy" >&6
10348 if test "$unet_cv_c___va_copy" = "yes" ; then
10349
10350 cat >>confdefs.h <<\_ACEOF
10351 #define HAVE___VA_COPY 1
10352 _ACEOF
10353
10354 fi
10355
10356 echo "$as_me:$LINENO: checking what name to give the symlink" >&5
10357 echo $ECHO_N "checking what name to give the symlink... $ECHO_C" >&6
10358
10359 # Check whether --with-symlink or --without-symlink was given.
10360 if test "${with_symlink+set}" = set; then
10361 withval="$with_symlink"
10362 unet_cv_with_symlink=$with_symlink
10363 else
10364 if test "${unet_cv_with_symlink+set}" = set; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 else
10367 unet_cv_with_symlink="ircd"
10368 fi
10369
10370 fi;
10371
10372 if test x"$unet_cv_with_symlink" = xyes; then
10373 unet_cv_with_symlink="ircd"
10374 fi
10375
10376 echo "$as_me:$LINENO: result: $unet_cv_with_symlink" >&5
10377 echo "${ECHO_T}$unet_cv_with_symlink" >&6
10378
10379 if test x"$unet_cv_with_symlink" = xno; then
10380 INSTALL_RULE=install-no-symlink
10381 SYMLINK=
10382 else
10383 INSTALL_RULE=install-with-symlink
10384 SYMLINK=$unet_cv_with_symlink
10385 fi
10386
10387
10388
10389 echo "$as_me:$LINENO: checking what permissions to set on the installed binary" >&5
10390 echo $ECHO_N "checking what permissions to set on the installed binary... $ECHO_C" >&6
10391
10392 # Check whether --with-mode or --without-mode was given.
10393 if test "${with_mode+set}" = set; then
10394 withval="$with_mode"
10395 unet_cv_with_mode=$with_mode
10396 else
10397 if test "${unet_cv_with_mode+set}" = set; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
10399 else
10400 unet_cv_with_mode=711
10401 fi
10402
10403 fi;
10404
10405 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
10406 unet_cv_with_mode=711
10407 fi
10408
10409 echo "$as_me:$LINENO: result: $unet_cv_with_mode" >&5
10410 echo "${ECHO_T}$unet_cv_with_mode" >&6
10411
10412 IRCDMODE=$unet_cv_with_mode
10413
10414
10415 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
10416 echo "$as_me:$LINENO: checking which user should own the installed binary" >&5
10417 echo $ECHO_N "checking which user should own the installed binary... $ECHO_C" >&6
10418
10419 # Check whether --with-owner or --without-owner was given.
10420 if test "${with_owner+set}" = set; then
10421 withval="$with_owner"
10422 unet_cv_with_owner=$with_owner
10423 else
10424 if test "${unet_cv_with_owner+set}" = set; then
10425 echo $ECHO_N "(cached) $ECHO_C" >&6
10426 else
10427 unet_cv_with_owner=$unet_uid
10428 fi
10429
10430 fi;
10431
10432 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
10433 unet_cv_with_owner=$unet_uid
10434 fi
10435
10436 echo "$as_me:$LINENO: result: $unet_cv_with_owner" >&5
10437 echo "${ECHO_T}$unet_cv_with_owner" >&6
10438
10439 IRCDOWN=$unet_cv_with_owner
10440
10441
10442 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
10443 echo "$as_me:$LINENO: checking which group should own the installed binary" >&5
10444 echo $ECHO_N "checking which group should own the installed binary... $ECHO_C" >&6
10445
10446 # Check whether --with-group or --without-group was given.
10447 if test "${with_group+set}" = set; then
10448 withval="$with_group"
10449 unet_cv_with_group=$with_group
10450 else
10451 if test "${unet_cv_with_group+set}" = set; then
10452 echo $ECHO_N "(cached) $ECHO_C" >&6
10453 else
10454 unet_cv_with_group=$unet_gid
10455 fi
10456
10457 fi;
10458
10459 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
10460 unet_cv_with_group=$unet_gid
10461 fi
10462
10463 echo "$as_me:$LINENO: result: $unet_cv_with_group" >&5
10464 echo "${ECHO_T}$unet_cv_with_group" >&6
10465
10466 IRCDGRP=$unet_cv_with_group
10467
10468
10469 unet_domain=
10470 if test -f /etc/resolv.conf; then
10471 unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
10472 if test x"$unet_domain" = x; then
10473 unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
10474 fi
10475 fi
10476 echo "$as_me:$LINENO: checking for site domain name" >&5
10477 echo $ECHO_N "checking for site domain name... $ECHO_C" >&6
10478
10479 # Check whether --with-domain or --without-domain was given.
10480 if test "${with_domain+set}" = set; then
10481 withval="$with_domain"
10482 unet_cv_with_domain=$with_domain
10483 else
10484 if test "${unet_cv_with_domain+set}" = set; then
10485 echo $ECHO_N "(cached) $ECHO_C" >&6
10486 else
10487 unet_cv_with_domain=$unet_domain
10488 fi
10489
10490 fi;
10491
10492 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
10493 unet_cv_with_domain=$unet_domain
10494 fi
10495 if test x"$unet_cv_with_domain" = xno; then
10496 { { echo "$as_me:$LINENO: error: Unable to determine server DNS domain; use --with-domain to set it" >&5
10497 echo "$as_me: error: Unable to determine server DNS domain; use --with-domain to set it" >&2;}
10498 { (exit 1); exit 1; }; }
10499 fi
10500
10501 echo "$as_me:$LINENO: result: $unet_cv_with_domain" >&5
10502 echo "${ECHO_T}$unet_cv_with_domain" >&6
10503
10504
10505 cat >>confdefs.h <<_ACEOF
10506 #define DOMAINNAME "*$unet_cv_with_domain"
10507 _ACEOF
10508
10509
10510 echo "$as_me:$LINENO: checking if chroot operation is desired" >&5
10511 echo $ECHO_N "checking if chroot operation is desired... $ECHO_C" >&6
10512
10513 # Check whether --with-chroot or --without-chroot was given.
10514 if test "${with_chroot+set}" = set; then
10515 withval="$with_chroot"
10516 unet_cv_with_chroot=$with_chroot
10517 else
10518 if test "${unet_cv_with_chroot+set}" = set; then
10519 echo $ECHO_N "(cached) $ECHO_C" >&6
10520 else
10521 unet_cv_with_chroot=no
10522 fi
10523
10524 fi;
10525
10526 if test x"$unet_cv_with_chroot" = xyes; then
10527 { { echo "$as_me:$LINENO: error: --with-chroot given with no directory. See doc/readme.chroot." >&5
10528 echo "$as_me: error: --with-chroot given with no directory. See doc/readme.chroot." >&2;}
10529 { (exit 1); exit 1; }; }
10530 fi
10531
10532 # Ensure there are no trailing /'s to mess us up
10533 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
10534
10535 echo "$as_me:$LINENO: result: $unet_cv_with_chroot" >&5
10536 echo "${ECHO_T}$unet_cv_with_chroot" >&6
10537
10538 # Deal with the annoying value "NONE" here
10539 unet_save_prefix=$prefix
10540 if test x"$prefix" = xNONE; then
10541 prefix=$ac_default_prefix
10542 else
10543 prefix=$prefix
10544 fi
10545
10546 unet_save_exec_prefix=$exec_prefix
10547 if test x"$exec_prefix" = xNONE; then
10548 exec_prefix=$prefix
10549 else
10550 exec_prefix=$exec_prefix
10551 fi
10552
10553 # Obtain the actual interesting directories
10554 unet_bindir=`eval echo "$bindir"`
10555 unet_libdir=`eval echo "$libdir"`
10556
10557 # Restore the original settings of $prefix and $exec_prefix
10558 prefix=$unet_save_prefix
10559 exec_prefix=$unet_save_exec_prefix
10560
10561 echo "$as_me:$LINENO: checking where the binary will be for /restart" >&5
10562 echo $ECHO_N "checking where the binary will be for /restart... $ECHO_C" >&6
10563 if test x"$unet_cv_with_symlink" = xno; then
10564 unet_spath="$unet_bindir/ircd"
10565 else
10566 unet_spath="$unet_bindir/$unet_cv_with_symlink"
10567 fi
10568 echo "$as_me:$LINENO: result: $unet_spath" >&5
10569 echo "${ECHO_T}$unet_spath" >&6
10570
10571 if test x"$unet_cv_with_chroot" != xno; then
10572 if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10573 unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
10574 else
10575 { echo "$as_me:$LINENO: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&5
10576 echo "$as_me: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&2;}
10577 fi
10578 fi
10579
10580
10581 cat >>confdefs.h <<_ACEOF
10582 #define SPATH "$unet_spath"
10583 _ACEOF
10584
10585
10586 echo "$as_me:$LINENO: checking what the data directory should be" >&5
10587 echo $ECHO_N "checking what the data directory should be... $ECHO_C" >&6
10588
10589 # Check whether --with-dpath or --without-dpath was given.
10590 if test "${with_dpath+set}" = set; then
10591 withval="$with_dpath"
10592 unet_cv_with_dpath=$with_dpath
10593 else
10594 if test "${unet_cv_with_dpath+set}" = set; then
10595 echo $ECHO_N "(cached) $ECHO_C" >&6
10596 else
10597 unet_cv_with_dpath=$unet_libdir
10598 fi
10599
10600 fi;
10601
10602 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
10603 unet_cv_with_dpath=$unet_libdir
10604 fi
10605
10606 # Ensure there are no trailing /'s to mess us up
10607 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
10608
10609 echo "$as_me:$LINENO: result: $unet_cv_with_dpath" >&5
10610 echo "${ECHO_T}$unet_cv_with_dpath" >&6
10611
10612 if test x"$unet_cv_with_chroot" != xno; then
10613 if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10614 unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
10615 else
10616 { { echo "$as_me:$LINENO: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&5
10617 echo "$as_me: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&2;}
10618 { (exit 1); exit 1; }; }
10619 fi
10620 else
10621 unet_dpath=$unet_cv_with_dpath
10622 fi
10623
10624
10625 cat >>confdefs.h <<_ACEOF
10626 #define DPATH "$unet_dpath"
10627 _ACEOF
10628
10629
10630 DPATH=$unet_cv_with_dpath
10631
10632
10633 echo "$as_me:$LINENO: checking where the default configuration file resides" >&5
10634 echo $ECHO_N "checking where the default configuration file resides... $ECHO_C" >&6
10635
10636 # Check whether --with-cpath or --without-cpath was given.
10637 if test "${with_cpath+set}" = set; then
10638 withval="$with_cpath"
10639 unet_cv_with_cpath=$with_cpath
10640 else
10641 if test "${unet_cv_with_cpath+set}" = set; then
10642 echo $ECHO_N "(cached) $ECHO_C" >&6
10643 else
10644 unet_cv_with_cpath="ircd.conf"
10645 fi
10646
10647 fi;
10648
10649 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
10650 unet_cv_with_cpath="ircd.conf"
10651 fi
10652
10653 echo "$as_me:$LINENO: result: $unet_cv_with_cpath" >&5
10654 echo "${ECHO_T}$unet_cv_with_cpath" >&6
10655
10656 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
10657 # Absolute path; check against chroot stuff
10658 if test x"$unet_cv_with_chroot" != xno; then
10659 if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10660 unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
10661 else
10662 { { echo "$as_me:$LINENO: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&5
10663 echo "$as_me: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&2;}
10664 { (exit 1); exit 1; }; }
10665 fi
10666 else
10667 unet_cpath=$unet_cv_with_cpath
10668 fi
10669 else
10670 unet_cpath=$unet_cv_with_cpath
10671 fi
10672
10673
10674 cat >>confdefs.h <<_ACEOF
10675 #define CPATH "$unet_cpath"
10676 _ACEOF
10677
10678
10679 echo "$as_me:$LINENO: checking where to put the debugging log if debugging enabled" >&5
10680 echo $ECHO_N "checking where to put the debugging log if debugging enabled... $ECHO_C" >&6
10681
10682 # Check whether --with-lpath or --without-lpath was given.
10683 if test "${with_lpath+set}" = set; then
10684 withval="$with_lpath"
10685 unet_cv_with_lpath=$with_lpath
10686 else
10687 if test "${unet_cv_with_lpath+set}" = set; then
10688 echo $ECHO_N "(cached) $ECHO_C" >&6
10689 else
10690 unet_cv_with_lpath="ircd.log"
10691 fi
10692
10693 fi;
10694
10695 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
10696 unet_cv_with_lpath="ircd.log"
10697 fi
10698
10699 echo "$as_me:$LINENO: result: $unet_cv_with_lpath" >&5
10700 echo "${ECHO_T}$unet_cv_with_lpath" >&6
10701
10702 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
10703 # Absolute path; check against chroot stuff
10704 if test x"$unet_cv_with_chroot" != xno; then
10705 if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10706 unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
10707 else
10708 { echo "$as_me:$LINENO: WARNING: Log file $unet_cv_with_lpath not relative to root directory $unet_cv_with_chroot; using default ircd.log instead" >&5
10709 echo "$as_me: WARNING: Log file $unet_cv_with_lpath not relative to root directory $unet_cv_with_chroot; using default ircd.log instead" >&2;}
10710 unet_cv_with_lpath="ircd.log"
10711 unet_lpath="ircd.log"
10712 fi
10713 else
10714 unet_lpath=$unet_cv_with_lpath
10715 fi
10716 else
10717 unet_lpath=$unet_cv_with_lpath
10718 fi
10719
10720
10721 cat >>confdefs.h <<_ACEOF
10722 #define LPATH "$unet_lpath"
10723 _ACEOF
10724
10725
10726 unet_maxcon=`ulimit -Hn`
10727 if test x"$unet_maxcon" = xunlimited; then
10728 unet_maxcon=`ulimit -Sn`
10729 fi
10730 unet_maxcon=`expr $unet_maxcon - 4`
10731 echo "$as_me:$LINENO: checking max connections" >&5
10732 echo $ECHO_N "checking max connections... $ECHO_C" >&6
10733
10734 # Check whether --with-maxcon or --without-maxcon was given.
10735 if test "${with_maxcon+set}" = set; then
10736 withval="$with_maxcon"
10737 unet_cv_with_maxcon=$with_maxcon
10738 else
10739 if test "${unet_cv_with_maxcon+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10741 else
10742 unet_cv_with_maxcon=$unet_maxcon
10743 fi
10744
10745 fi;
10746
10747 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
10748 unet_cv_with_maxcon=$unet_maxcon
10749 fi
10750
10751 echo "$as_me:$LINENO: result: $unet_cv_with_maxcon" >&5
10752 echo "${ECHO_T}$unet_cv_with_maxcon" >&6
10753
10754
10755 cat >>confdefs.h <<_ACEOF
10756 #define MAXCONNECTIONS $unet_cv_with_maxcon
10757 _ACEOF
10758
10759
10760 ac_config_files="$ac_config_files Makefile ircd/Makefile ircd/test/Makefile doc/Makefile"
10761 ac_config_commands="$ac_config_commands default"
10762 cat >confcache <<\_ACEOF
10763 # This file is a shell script that caches the results of configure
10764 # tests run on this system so they can be shared between configure
10765 # scripts and configure runs, see configure's option --config-cache.
10766 # It is not useful on other systems. If it contains results you don't
10767 # want to keep, you may remove or edit it.
10768 #
10769 # config.status only pays attention to the cache file if you give it
10770 # the --recheck option to rerun configure.
10771 #
10772 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10773 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10774 # following values.
10775
10776 _ACEOF
10777
10778 # The following way of writing the cache mishandles newlines in values,
10779 # but we know of no workaround that is simple, portable, and efficient.
10780 # So, don't put newlines in cache variables' values.
10781 # Ultrix sh set writes to stderr and can't be redirected directly,
10782 # and sets the high bit in the cache file unless we assign to the vars.
10783 {
10784 (set) 2>&1 |
10785 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10786 *ac_space=\ *)
10787 # `set' does not quote correctly, so add quotes (double-quote
10788 # substitution turns \\\\ into \\, and sed turns \\ into \).
10789 sed -n \
10790 "s/'/'\\\\''/g;
10791 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10792 ;;
10793 *)
10794 # `set' quotes correctly as required by POSIX, so do not add quotes.
10795 sed -n \
10796 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10797 ;;
10798 esac;
10799 } |
10800 sed '
10801 t clear
10802 : clear
10803 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10804 t end
10805 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10806 : end' >>confcache
10807 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10808 if test -w $cache_file; then
10809 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10810 cat confcache >$cache_file
10811 else
10812 echo "not updating unwritable cache $cache_file"
10813 fi
10814 fi
10815 rm -f confcache
10816
10817 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10818 # Let make expand exec_prefix.
10819 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10820
10821 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10822 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10823 # trailing colons and then remove the whole line if VPATH becomes empty
10824 # (actually we leave an empty line to preserve line numbers).
10825 if test "x$srcdir" = x.; then
10826 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10827 s/:*\$(srcdir):*/:/;
10828 s/:*\${srcdir}:*/:/;
10829 s/:*@srcdir@:*/:/;
10830 s/^\([^=]*=[ ]*\):*/\1/;
10831 s/:*$//;
10832 s/^[^=]*=[ ]*$//;
10833 }'
10834 fi
10835
10836 DEFS=-DHAVE_CONFIG_H
10837
10838 ac_libobjs=
10839 ac_ltlibobjs=
10840 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10841 # 1. Remove the extension, and $U if already installed.
10842 ac_i=`echo "$ac_i" |
10843 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10844 # 2. Add them.
10845 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10846 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10847 done
10848 LIBOBJS=$ac_libobjs
10849
10850 LTLIBOBJS=$ac_ltlibobjs
10851
10852
10853
10854 : ${CONFIG_STATUS=./config.status}
10855 ac_clean_files_save=$ac_clean_files
10856 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10857 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10858 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10859 cat >$CONFIG_STATUS <<_ACEOF
10860 #! $SHELL
10861 # Generated by $as_me.
10862 # Run this file to recreate the current configuration.
10863 # Compiler output produced by configure, useful for debugging
10864 # configure, is in config.log if it exists.
10865
10866 debug=false
10867 ac_cs_recheck=false
10868 ac_cs_silent=false
10869 SHELL=\${CONFIG_SHELL-$SHELL}
10870 _ACEOF
10871
10872 cat >>$CONFIG_STATUS <<\_ACEOF
10873 ## --------------------- ##
10874 ## M4sh Initialization. ##
10875 ## --------------------- ##
10876
10877 # Be Bourne compatible
10878 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10879 emulate sh
10880 NULLCMD=:
10881 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10882 # is contrary to our usage. Disable this feature.
10883 alias -g '${1+"$@"}'='"$@"'
10884 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10885 set -o posix
10886 fi
10887 DUALCASE=1; export DUALCASE # for MKS sh
10888
10889 # Support unset when possible.
10890 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10891 as_unset=unset
10892 else
10893 as_unset=false
10894 fi
10895
10896
10897 # Work around bugs in pre-3.0 UWIN ksh.
10898 $as_unset ENV MAIL MAILPATH
10899 PS1='$ '
10900 PS2='> '
10901 PS4='+ '
10902
10903 # NLS nuisances.
10904 for as_var in \
10905 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10906 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10907 LC_TELEPHONE LC_TIME
10908 do
10909 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10910 eval $as_var=C; export $as_var
10911 else
10912 $as_unset $as_var
10913 fi
10914 done
10915
10916 # Required to use basename.
10917 if expr a : '\(a\)' >/dev/null 2>&1; then
10918 as_expr=expr
10919 else
10920 as_expr=false
10921 fi
10922
10923 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10924 as_basename=basename
10925 else
10926 as_basename=false
10927 fi
10928
10929
10930 # Name of the executable.
10931 as_me=`$as_basename "$0" ||
10932 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10933 X"$0" : 'X\(//\)$' \| \
10934 X"$0" : 'X\(/\)$' \| \
10935 . : '\(.\)' 2>/dev/null ||
10936 echo X/"$0" |
10937 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10938 /^X\/\(\/\/\)$/{ s//\1/; q; }
10939 /^X\/\(\/\).*/{ s//\1/; q; }
10940 s/.*/./; q'`
10941
10942
10943 # PATH needs CR, and LINENO needs CR and PATH.
10944 # Avoid depending upon Character Ranges.
10945 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10946 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10947 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10948 as_cr_digits='0123456789'
10949 as_cr_alnum=$as_cr_Letters$as_cr_digits
10950
10951 # The user is always right.
10952 if test "${PATH_SEPARATOR+set}" != set; then
10953 echo "#! /bin/sh" >conf$$.sh
10954 echo "exit 0" >>conf$$.sh
10955 chmod +x conf$$.sh
10956 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10957 PATH_SEPARATOR=';'
10958 else
10959 PATH_SEPARATOR=:
10960 fi
10961 rm -f conf$$.sh
10962 fi
10963
10964
10965 as_lineno_1=$LINENO
10966 as_lineno_2=$LINENO
10967 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10968 test "x$as_lineno_1" != "x$as_lineno_2" &&
10969 test "x$as_lineno_3" = "x$as_lineno_2" || {
10970 # Find who we are. Look in the path if we contain no path at all
10971 # relative or not.
10972 case $0 in
10973 *[\\/]* ) as_myself=$0 ;;
10974 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10975 for as_dir in $PATH
10976 do
10977 IFS=$as_save_IFS
10978 test -z "$as_dir" && as_dir=.
10979 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10980 done
10981
10982 ;;
10983 esac
10984 # We did not find ourselves, most probably we were run as `sh COMMAND'
10985 # in which case we are not to be found in the path.
10986 if test "x$as_myself" = x; then
10987 as_myself=$0
10988 fi
10989 if test ! -f "$as_myself"; then
10990 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10991 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10992 { (exit 1); exit 1; }; }
10993 fi
10994 case $CONFIG_SHELL in
10995 '')
10996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10997 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10998 do
10999 IFS=$as_save_IFS
11000 test -z "$as_dir" && as_dir=.
11001 for as_base in sh bash ksh sh5; do
11002 case $as_dir in
11003 /*)
11004 if ("$as_dir/$as_base" -c '
11005 as_lineno_1=$LINENO
11006 as_lineno_2=$LINENO
11007 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11008 test "x$as_lineno_1" != "x$as_lineno_2" &&
11009 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11010 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11011 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11012 CONFIG_SHELL=$as_dir/$as_base
11013 export CONFIG_SHELL
11014 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11015 fi;;
11016 esac
11017 done
11018 done
11019 ;;
11020 esac
11021
11022 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11023 # uniformly replaced by the line number. The first 'sed' inserts a
11024 # line-number line before each line; the second 'sed' does the real
11025 # work. The second script uses 'N' to pair each line-number line
11026 # with the numbered line, and appends trailing '-' during
11027 # substitution so that $LINENO is not a special case at line end.
11028 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11029 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11030 sed '=' <$as_myself |
11031 sed '
11032 N
11033 s,$,-,
11034 : loop
11035 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11036 t loop
11037 s,-$,,
11038 s,^['$as_cr_digits']*\n,,
11039 ' >$as_me.lineno &&
11040 chmod +x $as_me.lineno ||
11041 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11042 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11043 { (exit 1); exit 1; }; }
11044
11045 # Don't try to exec as it changes $[0], causing all sort of problems
11046 # (the dirname of $[0] is not the place where we might find the
11047 # original and so on. Autoconf is especially sensible to this).
11048 . ./$as_me.lineno
11049 # Exit status is that of the last command.
11050 exit
11051 }
11052
11053
11054 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11055 *c*,-n*) ECHO_N= ECHO_C='
11056 ' ECHO_T=' ' ;;
11057 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11058 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11059 esac
11060
11061 if expr a : '\(a\)' >/dev/null 2>&1; then
11062 as_expr=expr
11063 else
11064 as_expr=false
11065 fi
11066
11067 rm -f conf$$ conf$$.exe conf$$.file
11068 echo >conf$$.file
11069 if ln -s conf$$.file conf$$ 2>/dev/null; then
11070 # We could just check for DJGPP; but this test a) works b) is more generic
11071 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11072 if test -f conf$$.exe; then
11073 # Don't use ln at all; we don't have any links
11074 as_ln_s='cp -p'
11075 else
11076 as_ln_s='ln -s'
11077 fi
11078 elif ln conf$$.file conf$$ 2>/dev/null; then
11079 as_ln_s=ln
11080 else
11081 as_ln_s='cp -p'
11082 fi
11083 rm -f conf$$ conf$$.exe conf$$.file
11084
11085 if mkdir -p . 2>/dev/null; then
11086 as_mkdir_p=:
11087 else
11088 test -d ./-p && rmdir ./-p
11089 as_mkdir_p=false
11090 fi
11091
11092 as_executable_p="test -f"
11093
11094 # Sed expression to map a string onto a valid CPP name.
11095 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11096
11097 # Sed expression to map a string onto a valid variable name.
11098 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11099
11100
11101 # IFS
11102 # We need space, tab and new line, in precisely that order.
11103 as_nl='
11104 '
11105 IFS=" $as_nl"
11106
11107 # CDPATH.
11108 $as_unset CDPATH
11109
11110 exec 6>&1
11111
11112 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11113 # report actual input values of CONFIG_FILES etc. instead of their
11114 # values after options handling. Logging --version etc. is OK.
11115 exec 5>>config.log
11116 {
11117 echo
11118 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11119 ## Running $as_me. ##
11120 _ASBOX
11121 } >&5
11122 cat >&5 <<_CSEOF
11123
11124 This file was extended by $as_me, which was
11125 generated by GNU Autoconf 2.59. Invocation command line was
11126
11127 CONFIG_FILES = $CONFIG_FILES
11128 CONFIG_HEADERS = $CONFIG_HEADERS
11129 CONFIG_LINKS = $CONFIG_LINKS
11130 CONFIG_COMMANDS = $CONFIG_COMMANDS
11131 $ $0 $@
11132
11133 _CSEOF
11134 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11135 echo >&5
11136 _ACEOF
11137
11138 # Files that config.status was made for.
11139 if test -n "$ac_config_files"; then
11140 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11141 fi
11142
11143 if test -n "$ac_config_headers"; then
11144 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11145 fi
11146
11147 if test -n "$ac_config_links"; then
11148 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11149 fi
11150
11151 if test -n "$ac_config_commands"; then
11152 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11153 fi
11154
11155 cat >>$CONFIG_STATUS <<\_ACEOF
11156
11157 ac_cs_usage="\
11158 \`$as_me' instantiates files from templates according to the
11159 current configuration.
11160
11161 Usage: $0 [OPTIONS] [FILE]...
11162
11163 -h, --help print this help, then exit
11164 -V, --version print version number, then exit
11165 -q, --quiet do not print progress messages
11166 -d, --debug don't remove temporary files
11167 --recheck update $as_me by reconfiguring in the same conditions
11168 --file=FILE[:TEMPLATE]
11169 instantiate the configuration file FILE
11170 --header=FILE[:TEMPLATE]
11171 instantiate the configuration header FILE
11172
11173 Configuration files:
11174 $config_files
11175
11176 Configuration headers:
11177 $config_headers
11178
11179 Configuration commands:
11180 $config_commands
11181
11182 Report bugs to <bug-autoconf@gnu.org>."
11183 _ACEOF
11184
11185 cat >>$CONFIG_STATUS <<_ACEOF
11186 ac_cs_version="\\
11187 config.status
11188 configured by $0, generated by GNU Autoconf 2.59,
11189 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11190
11191 Copyright (C) 2003 Free Software Foundation, Inc.
11192 This config.status script is free software; the Free Software Foundation
11193 gives unlimited permission to copy, distribute and modify it."
11194 srcdir=$srcdir
11195 INSTALL="$INSTALL"
11196 _ACEOF
11197
11198 cat >>$CONFIG_STATUS <<\_ACEOF
11199 # If no file are specified by the user, then we need to provide default
11200 # value. By we need to know if files were specified by the user.
11201 ac_need_defaults=:
11202 while test $# != 0
11203 do
11204 case $1 in
11205 --*=*)
11206 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11207 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11208 ac_shift=:
11209 ;;
11210 -*)
11211 ac_option=$1
11212 ac_optarg=$2
11213 ac_shift=shift
11214 ;;
11215 *) # This is not an option, so the user has probably given explicit
11216 # arguments.
11217 ac_option=$1
11218 ac_need_defaults=false;;
11219 esac
11220
11221 case $ac_option in
11222 # Handling of the options.
11223 _ACEOF
11224 cat >>$CONFIG_STATUS <<\_ACEOF
11225 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11226 ac_cs_recheck=: ;;
11227 --version | --vers* | -V )
11228 echo "$ac_cs_version"; exit 0 ;;
11229 --he | --h)
11230 # Conflict between --help and --header
11231 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11232 Try \`$0 --help' for more information." >&5
11233 echo "$as_me: error: ambiguous option: $1
11234 Try \`$0 --help' for more information." >&2;}
11235 { (exit 1); exit 1; }; };;
11236 --help | --hel | -h )
11237 echo "$ac_cs_usage"; exit 0 ;;
11238 --debug | --d* | -d )
11239 debug=: ;;
11240 --file | --fil | --fi | --f )
11241 $ac_shift
11242 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11243 ac_need_defaults=false;;
11244 --header | --heade | --head | --hea )
11245 $ac_shift
11246 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11247 ac_need_defaults=false;;
11248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11249 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11250 ac_cs_silent=: ;;
11251
11252 # This is an error.
11253 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11254 Try \`$0 --help' for more information." >&5
11255 echo "$as_me: error: unrecognized option: $1
11256 Try \`$0 --help' for more information." >&2;}
11257 { (exit 1); exit 1; }; } ;;
11258
11259 *) ac_config_targets="$ac_config_targets $1" ;;
11260
11261 esac
11262 shift
11263 done
11264
11265 ac_configure_extra_args=
11266
11267 if $ac_cs_silent; then
11268 exec 6>/dev/null
11269 ac_configure_extra_args="$ac_configure_extra_args --silent"
11270 fi
11271
11272 _ACEOF
11273 cat >>$CONFIG_STATUS <<_ACEOF
11274 if \$ac_cs_recheck; then
11275 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11276 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11277 fi
11278
11279 _ACEOF
11280
11281
11282
11283
11284
11285 cat >>$CONFIG_STATUS <<\_ACEOF
11286 for ac_config_target in $ac_config_targets
11287 do
11288 case "$ac_config_target" in
11289 # Handling of arguments.
11290 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11291 "ircd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
11292 "ircd/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/test/Makefile" ;;
11293 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11294 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11295 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11296 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11297 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11298 { (exit 1); exit 1; }; };;
11299 esac
11300 done
11301
11302 # If the user did not use the arguments to specify the items to instantiate,
11303 # then the envvar interface is used. Set only those that are not.
11304 # We use the long form for the default assignment because of an extremely
11305 # bizarre bug on SunOS 4.1.3.
11306 if $ac_need_defaults; then
11307 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11308 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11309 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11310 fi
11311
11312 # Have a temporary directory for convenience. Make it in the build tree
11313 # simply because there is no reason to put it here, and in addition,
11314 # creating and moving files from /tmp can sometimes cause problems.
11315 # Create a temporary directory, and hook for its removal unless debugging.
11316 $debug ||
11317 {
11318 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11319 trap '{ (exit 1); exit 1; }' 1 2 13 15
11320 }
11321
11322 # Create a (secure) tmp directory for tmp files.
11323
11324 {
11325 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11326 test -n "$tmp" && test -d "$tmp"
11327 } ||
11328 {
11329 tmp=./confstat$$-$RANDOM
11330 (umask 077 && mkdir $tmp)
11331 } ||
11332 {
11333 echo "$me: cannot create a temporary directory in ." >&2
11334 { (exit 1); exit 1; }
11335 }
11336
11337 _ACEOF
11338
11339 cat >>$CONFIG_STATUS <<_ACEOF
11340
11341 #
11342 # CONFIG_FILES section.
11343 #
11344
11345 # No need to generate the scripts if there are no CONFIG_FILES.
11346 # This happens for instance when ./config.status config.h
11347 if test -n "\$CONFIG_FILES"; then
11348 # Protect against being on the right side of a sed subst in config.status.
11349 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11350 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11351 s,@SHELL@,$SHELL,;t t
11352 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11353 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11354 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11355 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11356 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11357 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11358 s,@exec_prefix@,$exec_prefix,;t t
11359 s,@prefix@,$prefix,;t t
11360 s,@program_transform_name@,$program_transform_name,;t t
11361 s,@bindir@,$bindir,;t t
11362 s,@sbindir@,$sbindir,;t t
11363 s,@libexecdir@,$libexecdir,;t t
11364 s,@datadir@,$datadir,;t t
11365 s,@sysconfdir@,$sysconfdir,;t t
11366 s,@sharedstatedir@,$sharedstatedir,;t t
11367 s,@localstatedir@,$localstatedir,;t t
11368 s,@libdir@,$libdir,;t t
11369 s,@includedir@,$includedir,;t t
11370 s,@oldincludedir@,$oldincludedir,;t t
11371 s,@infodir@,$infodir,;t t
11372 s,@mandir@,$mandir,;t t
11373 s,@build_alias@,$build_alias,;t t
11374 s,@host_alias@,$host_alias,;t t
11375 s,@target_alias@,$target_alias,;t t
11376 s,@DEFS@,$DEFS,;t t
11377 s,@ECHO_C@,$ECHO_C,;t t
11378 s,@ECHO_N@,$ECHO_N,;t t
11379 s,@ECHO_T@,$ECHO_T,;t t
11380 s,@LIBS@,$LIBS,;t t
11381 s,@build@,$build,;t t
11382 s,@build_cpu@,$build_cpu,;t t
11383 s,@build_vendor@,$build_vendor,;t t
11384 s,@build_os@,$build_os,;t t
11385 s,@host@,$host,;t t
11386 s,@host_cpu@,$host_cpu,;t t
11387 s,@host_vendor@,$host_vendor,;t t
11388 s,@host_os@,$host_os,;t t
11389 s,@CC@,$CC,;t t
11390 s,@CFLAGS@,$CFLAGS,;t t
11391 s,@LDFLAGS@,$LDFLAGS,;t t
11392 s,@CPPFLAGS@,$CPPFLAGS,;t t
11393 s,@ac_ct_CC@,$ac_ct_CC,;t t
11394 s,@EXEEXT@,$EXEEXT,;t t
11395 s,@OBJEXT@,$OBJEXT,;t t
11396 s,@CPP@,$CPP,;t t
11397 s,@EGREP@,$EGREP,;t t
11398 s,@AWK@,$AWK,;t t
11399 s,@SET_MAKE@,$SET_MAKE,;t t
11400 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11401 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11402 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11403 s,@LN_S@,$LN_S,;t t
11404 s,@RMPROG@,$RMPROG,;t t
11405 s,@SHPROG@,$SHPROG,;t t
11406 s,@LEX@,$LEX,;t t
11407 s,@LEXLIB@,$LEXLIB,;t t
11408 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
11409 s,@YACC@,$YACC,;t t
11410 s,@ENGINE_C@,$ENGINE_C,;t t
11411 s,@INSTALL_RULE@,$INSTALL_RULE,;t t
11412 s,@SYMLINK@,$SYMLINK,;t t
11413 s,@IRCDMODE@,$IRCDMODE,;t t
11414 s,@IRCDOWN@,$IRCDOWN,;t t
11415 s,@IRCDGRP@,$IRCDGRP,;t t
11416 s,@DPATH@,$DPATH,;t t
11417 s,@LIBOBJS@,$LIBOBJS,;t t
11418 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11419 CEOF
11420
11421 _ACEOF
11422
11423 cat >>$CONFIG_STATUS <<\_ACEOF
11424 # Split the substitutions into bite-sized pieces for seds with
11425 # small command number limits, like on Digital OSF/1 and HP-UX.
11426 ac_max_sed_lines=48
11427 ac_sed_frag=1 # Number of current file.
11428 ac_beg=1 # First line for current file.
11429 ac_end=$ac_max_sed_lines # Line after last line for current file.
11430 ac_more_lines=:
11431 ac_sed_cmds=
11432 while $ac_more_lines; do
11433 if test $ac_beg -gt 1; then
11434 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11435 else
11436 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11437 fi
11438 if test ! -s $tmp/subs.frag; then
11439 ac_more_lines=false
11440 else
11441 # The purpose of the label and of the branching condition is to
11442 # speed up the sed processing (if there are no `@' at all, there
11443 # is no need to browse any of the substitutions).
11444 # These are the two extra sed commands mentioned above.
11445 (echo ':t
11446 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11447 if test -z "$ac_sed_cmds"; then
11448 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11449 else
11450 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11451 fi
11452 ac_sed_frag=`expr $ac_sed_frag + 1`
11453 ac_beg=$ac_end
11454 ac_end=`expr $ac_end + $ac_max_sed_lines`
11455 fi
11456 done
11457 if test -z "$ac_sed_cmds"; then
11458 ac_sed_cmds=cat
11459 fi
11460 fi # test -n "$CONFIG_FILES"
11461
11462 _ACEOF
11463 cat >>$CONFIG_STATUS <<\_ACEOF
11464 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11465 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11466 case $ac_file in
11467 - | *:- | *:-:* ) # input from stdin
11468 cat >$tmp/stdin
11469 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11470 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11471 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11472 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11473 * ) ac_file_in=$ac_file.in ;;
11474 esac
11475
11476 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11477 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11478 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11479 X"$ac_file" : 'X\(//\)[^/]' \| \
11480 X"$ac_file" : 'X\(//\)$' \| \
11481 X"$ac_file" : 'X\(/\)' \| \
11482 . : '\(.\)' 2>/dev/null ||
11483 echo X"$ac_file" |
11484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11485 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11486 /^X\(\/\/\)$/{ s//\1/; q; }
11487 /^X\(\/\).*/{ s//\1/; q; }
11488 s/.*/./; q'`
11489 { if $as_mkdir_p; then
11490 mkdir -p "$ac_dir"
11491 else
11492 as_dir="$ac_dir"
11493 as_dirs=
11494 while test ! -d "$as_dir"; do
11495 as_dirs="$as_dir $as_dirs"
11496 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11497 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11498 X"$as_dir" : 'X\(//\)[^/]' \| \
11499 X"$as_dir" : 'X\(//\)$' \| \
11500 X"$as_dir" : 'X\(/\)' \| \
11501 . : '\(.\)' 2>/dev/null ||
11502 echo X"$as_dir" |
11503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11504 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11505 /^X\(\/\/\)$/{ s//\1/; q; }
11506 /^X\(\/\).*/{ s//\1/; q; }
11507 s/.*/./; q'`
11508 done
11509 test ! -n "$as_dirs" || mkdir $as_dirs
11510 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11511 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11512 { (exit 1); exit 1; }; }; }
11513
11514 ac_builddir=.
11515
11516 if test "$ac_dir" != .; then
11517 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11518 # A "../" for each directory in $ac_dir_suffix.
11519 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11520 else
11521 ac_dir_suffix= ac_top_builddir=
11522 fi
11523
11524 case $srcdir in
11525 .) # No --srcdir option. We are building in place.
11526 ac_srcdir=.
11527 if test -z "$ac_top_builddir"; then
11528 ac_top_srcdir=.
11529 else
11530 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11531 fi ;;
11532 [\\/]* | ?:[\\/]* ) # Absolute path.
11533 ac_srcdir=$srcdir$ac_dir_suffix;
11534 ac_top_srcdir=$srcdir ;;
11535 *) # Relative path.
11536 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11537 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11538 esac
11539
11540 # Do not use `cd foo && pwd` to compute absolute paths, because
11541 # the directories may not exist.
11542 case `pwd` in
11543 .) ac_abs_builddir="$ac_dir";;
11544 *)
11545 case "$ac_dir" in
11546 .) ac_abs_builddir=`pwd`;;
11547 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11548 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11549 esac;;
11550 esac
11551 case $ac_abs_builddir in
11552 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11553 *)
11554 case ${ac_top_builddir}. in
11555 .) ac_abs_top_builddir=$ac_abs_builddir;;
11556 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11557 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11558 esac;;
11559 esac
11560 case $ac_abs_builddir in
11561 .) ac_abs_srcdir=$ac_srcdir;;
11562 *)
11563 case $ac_srcdir in
11564 .) ac_abs_srcdir=$ac_abs_builddir;;
11565 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11566 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11567 esac;;
11568 esac
11569 case $ac_abs_builddir in
11570 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11571 *)
11572 case $ac_top_srcdir in
11573 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11574 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11575 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11576 esac;;
11577 esac
11578
11579
11580 case $INSTALL in
11581 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11582 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11583 esac
11584
11585 # Let's still pretend it is `configure' which instantiates (i.e., don't
11586 # use $as_me), people would be surprised to read:
11587 # /* config.h. Generated by config.status. */
11588 if test x"$ac_file" = x-; then
11589 configure_input=
11590 else
11591 configure_input="$ac_file. "
11592 fi
11593 configure_input=$configure_input"Generated from `echo $ac_file_in |
11594 sed 's,.*/,,'` by configure."
11595
11596 # First look for the input files in the build tree, otherwise in the
11597 # src tree.
11598 ac_file_inputs=`IFS=:
11599 for f in $ac_file_in; do
11600 case $f in
11601 -) echo $tmp/stdin ;;
11602 [\\/$]*)
11603 # Absolute (can't be DOS-style, as IFS=:)
11604 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11605 echo "$as_me: error: cannot find input file: $f" >&2;}
11606 { (exit 1); exit 1; }; }
11607 echo "$f";;
11608 *) # Relative
11609 if test -f "$f"; then
11610 # Build tree
11611 echo "$f"
11612 elif test -f "$srcdir/$f"; then
11613 # Source tree
11614 echo "$srcdir/$f"
11615 else
11616 # /dev/null tree
11617 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11618 echo "$as_me: error: cannot find input file: $f" >&2;}
11619 { (exit 1); exit 1; }; }
11620 fi;;
11621 esac
11622 done` || { (exit 1); exit 1; }
11623
11624 if test x"$ac_file" != x-; then
11625 { echo "$as_me:$LINENO: creating $ac_file" >&5
11626 echo "$as_me: creating $ac_file" >&6;}
11627 rm -f "$ac_file"
11628 fi
11629 _ACEOF
11630 cat >>$CONFIG_STATUS <<_ACEOF
11631 sed "$ac_vpsub
11632 $extrasub
11633 _ACEOF
11634 cat >>$CONFIG_STATUS <<\_ACEOF
11635 :t
11636 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11637 s,@configure_input@,$configure_input,;t t
11638 s,@srcdir@,$ac_srcdir,;t t
11639 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11640 s,@top_srcdir@,$ac_top_srcdir,;t t
11641 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11642 s,@builddir@,$ac_builddir,;t t
11643 s,@abs_builddir@,$ac_abs_builddir,;t t
11644 s,@top_builddir@,$ac_top_builddir,;t t
11645 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11646 s,@INSTALL@,$ac_INSTALL,;t t
11647 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11648 rm -f $tmp/stdin
11649 if test x"$ac_file" != x-; then
11650 mv $tmp/out $ac_file
11651 else
11652 cat $tmp/out
11653 rm -f $tmp/out
11654 fi
11655
11656 done
11657 _ACEOF
11658 cat >>$CONFIG_STATUS <<\_ACEOF
11659
11660 #
11661 # CONFIG_HEADER section.
11662 #
11663
11664 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11665 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11666 #
11667 # ac_d sets the value in "#define NAME VALUE" lines.
11668 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11669 ac_dB='[ ].*$,\1#\2'
11670 ac_dC=' '
11671 ac_dD=',;t'
11672 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11673 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11674 ac_uB='$,\1#\2define\3'
11675 ac_uC=' '
11676 ac_uD=',;t'
11677
11678 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11679 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11680 case $ac_file in
11681 - | *:- | *:-:* ) # input from stdin
11682 cat >$tmp/stdin
11683 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11684 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11685 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11686 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11687 * ) ac_file_in=$ac_file.in ;;
11688 esac
11689
11690 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11691 echo "$as_me: creating $ac_file" >&6;}
11692
11693 # First look for the input files in the build tree, otherwise in the
11694 # src tree.
11695 ac_file_inputs=`IFS=:
11696 for f in $ac_file_in; do
11697 case $f in
11698 -) echo $tmp/stdin ;;
11699 [\\/$]*)
11700 # Absolute (can't be DOS-style, as IFS=:)
11701 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11702 echo "$as_me: error: cannot find input file: $f" >&2;}
11703 { (exit 1); exit 1; }; }
11704 # Do quote $f, to prevent DOS paths from being IFS'd.
11705 echo "$f";;
11706 *) # Relative
11707 if test -f "$f"; then
11708 # Build tree
11709 echo "$f"
11710 elif test -f "$srcdir/$f"; then
11711 # Source tree
11712 echo "$srcdir/$f"
11713 else
11714 # /dev/null tree
11715 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11716 echo "$as_me: error: cannot find input file: $f" >&2;}
11717 { (exit 1); exit 1; }; }
11718 fi;;
11719 esac
11720 done` || { (exit 1); exit 1; }
11721 # Remove the trailing spaces.
11722 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11723
11724 _ACEOF
11725
11726 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11727 # `conftest.undefs', that substitutes the proper values into
11728 # config.h.in to produce config.h. The first handles `#define'
11729 # templates, and the second `#undef' templates.
11730 # And first: Protect against being on the right side of a sed subst in
11731 # config.status. Protect against being in an unquoted here document
11732 # in config.status.
11733 rm -f conftest.defines conftest.undefs
11734 # Using a here document instead of a string reduces the quoting nightmare.
11735 # Putting comments in sed scripts is not portable.
11736 #
11737 # `end' is used to avoid that the second main sed command (meant for
11738 # 0-ary CPP macros) applies to n-ary macro definitions.
11739 # See the Autoconf documentation for `clear'.
11740 cat >confdef2sed.sed <<\_ACEOF
11741 s/[\\&,]/\\&/g
11742 s,[\\$`],\\&,g
11743 t clear
11744 : clear
11745 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11746 t end
11747 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11748 : end
11749 _ACEOF
11750 # If some macros were called several times there might be several times
11751 # the same #defines, which is useless. Nevertheless, we may not want to
11752 # sort them, since we want the *last* AC-DEFINE to be honored.
11753 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11754 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11755 rm -f confdef2sed.sed
11756
11757 # This sed command replaces #undef with comments. This is necessary, for
11758 # example, in the case of _POSIX_SOURCE, which is predefined and required
11759 # on some systems where configure will not decide to define it.
11760 cat >>conftest.undefs <<\_ACEOF
11761 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11762 _ACEOF
11763
11764 # Break up conftest.defines because some shells have a limit on the size
11765 # of here documents, and old seds have small limits too (100 cmds).
11766 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11767 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11768 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11769 echo ' :' >>$CONFIG_STATUS
11770 rm -f conftest.tail
11771 while grep . conftest.defines >/dev/null
11772 do
11773 # Write a limited-size here document to $tmp/defines.sed.
11774 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11775 # Speed up: don't consider the non `#define' lines.
11776 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11777 # Work around the forget-to-reset-the-flag bug.
11778 echo 't clr' >>$CONFIG_STATUS
11779 echo ': clr' >>$CONFIG_STATUS
11780 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11781 echo 'CEOF
11782 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11783 rm -f $tmp/in
11784 mv $tmp/out $tmp/in
11785 ' >>$CONFIG_STATUS
11786 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11787 rm -f conftest.defines
11788 mv conftest.tail conftest.defines
11789 done
11790 rm -f conftest.defines
11791 echo ' fi # grep' >>$CONFIG_STATUS
11792 echo >>$CONFIG_STATUS
11793
11794 # Break up conftest.undefs because some shells have a limit on the size
11795 # of here documents, and old seds have small limits too (100 cmds).
11796 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11797 rm -f conftest.tail
11798 while grep . conftest.undefs >/dev/null
11799 do
11800 # Write a limited-size here document to $tmp/undefs.sed.
11801 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11802 # Speed up: don't consider the non `#undef'
11803 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11804 # Work around the forget-to-reset-the-flag bug.
11805 echo 't clr' >>$CONFIG_STATUS
11806 echo ': clr' >>$CONFIG_STATUS
11807 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11808 echo 'CEOF
11809 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11810 rm -f $tmp/in
11811 mv $tmp/out $tmp/in
11812 ' >>$CONFIG_STATUS
11813 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11814 rm -f conftest.undefs
11815 mv conftest.tail conftest.undefs
11816 done
11817 rm -f conftest.undefs
11818
11819 cat >>$CONFIG_STATUS <<\_ACEOF
11820 # Let's still pretend it is `configure' which instantiates (i.e., don't
11821 # use $as_me), people would be surprised to read:
11822 # /* config.h. Generated by config.status. */
11823 if test x"$ac_file" = x-; then
11824 echo "/* Generated by configure. */" >$tmp/config.h
11825 else
11826 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11827 fi
11828 cat $tmp/in >>$tmp/config.h
11829 rm -f $tmp/in
11830 if test x"$ac_file" != x-; then
11831 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11832 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11833 echo "$as_me: $ac_file is unchanged" >&6;}
11834 else
11835 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11836 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11837 X"$ac_file" : 'X\(//\)[^/]' \| \
11838 X"$ac_file" : 'X\(//\)$' \| \
11839 X"$ac_file" : 'X\(/\)' \| \
11840 . : '\(.\)' 2>/dev/null ||
11841 echo X"$ac_file" |
11842 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11843 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11844 /^X\(\/\/\)$/{ s//\1/; q; }
11845 /^X\(\/\).*/{ s//\1/; q; }
11846 s/.*/./; q'`
11847 { if $as_mkdir_p; then
11848 mkdir -p "$ac_dir"
11849 else
11850 as_dir="$ac_dir"
11851 as_dirs=
11852 while test ! -d "$as_dir"; do
11853 as_dirs="$as_dir $as_dirs"
11854 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11855 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11856 X"$as_dir" : 'X\(//\)[^/]' \| \
11857 X"$as_dir" : 'X\(//\)$' \| \
11858 X"$as_dir" : 'X\(/\)' \| \
11859 . : '\(.\)' 2>/dev/null ||
11860 echo X"$as_dir" |
11861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11862 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11863 /^X\(\/\/\)$/{ s//\1/; q; }
11864 /^X\(\/\).*/{ s//\1/; q; }
11865 s/.*/./; q'`
11866 done
11867 test ! -n "$as_dirs" || mkdir $as_dirs
11868 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11869 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11870 { (exit 1); exit 1; }; }; }
11871
11872 rm -f $ac_file
11873 mv $tmp/config.h $ac_file
11874 fi
11875 else
11876 cat $tmp/config.h
11877 rm -f $tmp/config.h
11878 fi
11879 done
11880 _ACEOF
11881 cat >>$CONFIG_STATUS <<\_ACEOF
11882
11883 #
11884 # CONFIG_COMMANDS section.
11885 #
11886 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11887 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11888 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11889 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11890 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11891 X"$ac_dest" : 'X\(//\)[^/]' \| \
11892 X"$ac_dest" : 'X\(//\)$' \| \
11893 X"$ac_dest" : 'X\(/\)' \| \
11894 . : '\(.\)' 2>/dev/null ||
11895 echo X"$ac_dest" |
11896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11897 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11898 /^X\(\/\/\)$/{ s//\1/; q; }
11899 /^X\(\/\).*/{ s//\1/; q; }
11900 s/.*/./; q'`
11901 { if $as_mkdir_p; then
11902 mkdir -p "$ac_dir"
11903 else
11904 as_dir="$ac_dir"
11905 as_dirs=
11906 while test ! -d "$as_dir"; do
11907 as_dirs="$as_dir $as_dirs"
11908 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11909 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11910 X"$as_dir" : 'X\(//\)[^/]' \| \
11911 X"$as_dir" : 'X\(//\)$' \| \
11912 X"$as_dir" : 'X\(/\)' \| \
11913 . : '\(.\)' 2>/dev/null ||
11914 echo X"$as_dir" |
11915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11916 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11917 /^X\(\/\/\)$/{ s//\1/; q; }
11918 /^X\(\/\).*/{ s//\1/; q; }
11919 s/.*/./; q'`
11920 done
11921 test ! -n "$as_dirs" || mkdir $as_dirs
11922 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11923 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11924 { (exit 1); exit 1; }; }; }
11925
11926 ac_builddir=.
11927
11928 if test "$ac_dir" != .; then
11929 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11930 # A "../" for each directory in $ac_dir_suffix.
11931 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11932 else
11933 ac_dir_suffix= ac_top_builddir=
11934 fi
11935
11936 case $srcdir in
11937 .) # No --srcdir option. We are building in place.
11938 ac_srcdir=.
11939 if test -z "$ac_top_builddir"; then
11940 ac_top_srcdir=.
11941 else
11942 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11943 fi ;;
11944 [\\/]* | ?:[\\/]* ) # Absolute path.
11945 ac_srcdir=$srcdir$ac_dir_suffix;
11946 ac_top_srcdir=$srcdir ;;
11947 *) # Relative path.
11948 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11949 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11950 esac
11951
11952 # Do not use `cd foo && pwd` to compute absolute paths, because
11953 # the directories may not exist.
11954 case `pwd` in
11955 .) ac_abs_builddir="$ac_dir";;
11956 *)
11957 case "$ac_dir" in
11958 .) ac_abs_builddir=`pwd`;;
11959 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11960 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11961 esac;;
11962 esac
11963 case $ac_abs_builddir in
11964 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11965 *)
11966 case ${ac_top_builddir}. in
11967 .) ac_abs_top_builddir=$ac_abs_builddir;;
11968 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11969 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11970 esac;;
11971 esac
11972 case $ac_abs_builddir in
11973 .) ac_abs_srcdir=$ac_srcdir;;
11974 *)
11975 case $ac_srcdir in
11976 .) ac_abs_srcdir=$ac_abs_builddir;;
11977 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11978 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11979 esac;;
11980 esac
11981 case $ac_abs_builddir in
11982 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11983 *)
11984 case $ac_top_srcdir in
11985 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11986 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11987 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11988 esac;;
11989 esac
11990
11991
11992 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11993 echo "$as_me: executing $ac_dest commands" >&6;}
11994 case $ac_dest in
11995 default ) echo timestamp > stamp-h ;;
11996 esac
11997 done
11998 _ACEOF
11999
12000 cat >>$CONFIG_STATUS <<\_ACEOF
12001
12002 { (exit 0); exit 0; }
12003 _ACEOF
12004 chmod +x $CONFIG_STATUS
12005 ac_clean_files=$ac_clean_files_save
12006
12007
12008 # configure is writing to config.log, and then calls config.status.
12009 # config.status does its own redirection, appending to config.log.
12010 # Unfortunately, on DOS this fails, as config.log is still kept open
12011 # by configure, so config.status won't be able to write to it; its
12012 # output is simply discarded. So we exec the FD to /dev/null,
12013 # effectively closing config.log, so it can be properly (re)opened and
12014 # appended to by config.status. When coming back to configure, we
12015 # need to make the FD available again.
12016 if test "$no_create" != yes; then
12017 ac_cs_success=:
12018 ac_config_status_args=
12019 test "$silent" = yes &&
12020 ac_config_status_args="$ac_config_status_args --quiet"
12021 exec 5>/dev/null
12022 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12023 exec 5>>config.log
12024 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12025 # would make configure fail if this is the last instruction.
12026 $ac_cs_success || { (exit 1); exit 1; }
12027 fi
12028
12029
12030 ac_config_commands="$ac_config_commands default-1"
12031