blob: 403b3717bb17a16bc092ee94e7a804a1b7230f81 [file] [log] [blame]
Cullen Jennings235513a2005-09-21 22:51:36 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
David McGrewfec49dd2005-09-23 19:34:11 +00003# Generated by GNU Autoconf 2.59.
Cullen Jennings235513a2005-09-21 22:51:36 +00004#
David McGrewfec49dd2005-09-23 19:34:11 +00005# Copyright (C) 2003 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00006# 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
13if 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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
David McGrewfec49dd2005-09-23 19:34:11 +000022DUALCASE=1; export DUALCASE # for MKS sh
Cullen Jennings235513a2005-09-21 22:51:36 +000023
24# Support unset when possible.
David McGrewfec49dd2005-09-23 19:34:11 +000025if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
Cullen Jennings235513a2005-09-21 22:51:36 +000026 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
David McGrewfec49dd2005-09-23 19:34:11 +000044 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
Cullen Jennings235513a2005-09-21 22:51:36 +000045 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo 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.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if 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
97fi
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
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
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
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
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
152done
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
187case `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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
David McGrewfec49dd2005-09-23 19:34:11 +0000221 test -d ./-p && rmdir ./-p
Cullen Jennings235513a2005-09-21 22:51:36 +0000222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
David McGrewfec49dd2005-09-23 19:34:11 +0000228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +0000229
230# Sed expression to map a string onto a valid variable name.
David McGrewfec49dd2005-09-23 19:34:11 +0000231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +0000232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $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.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${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.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="srtp"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
David McGrewb67061f2005-09-28 14:23:06 +0000312ac_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 RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RNG_OBJS CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os EXE GDOI_OBJS LIBOBJS LTLIBOBJS'
Cullen Jennings235513a2005-09-21 22:51:36 +0000313ac_subst_files=''
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_libraries=NONE
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
353ac_prev=
354for ac_option
355do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656fi
657
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
David McGrewfec49dd2005-09-23 19:34:11 +0000671 localstatedir libdir includedir oldincludedir infodir mandir
Cullen Jennings235513a2005-09-21 22:51:36 +0000672do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679done
680
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
David McGrewfec49dd2005-09-23 19:34:11 +0000711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
Cullen Jennings235513a2005-09-21 22:51:36 +0000715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736fi
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
773
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
782
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803 cat <<_ACEOF
804Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
David McGrewfec49dd2005-09-23 19:34:11 +0000806 [$ac_default_prefix]
Cullen Jennings235513a2005-09-21 22:51:36 +0000807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
David McGrewfec49dd2005-09-23 19:34:11 +0000808 [PREFIX]
Cullen Jennings235513a2005-09-21 22:51:36 +0000809
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830_ACEOF
831
832 cat <<\_ACEOF
833
834System types:
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
837_ACEOF
838fi
839
840if test -n "$ac_init_help"; then
841
842 cat <<\_ACEOF
843
844Optional Features:
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
David McGrewb67061f2005-09-28 14:23:06 +0000847 --disable-debug do not compile in dynamic debugging system
848 --enable-generic-aesicm compile in changes for ISMAcryp
849 --enable-syslog use syslog for error reporting
850 --disable-stdout don't use stdout for error reporting
851 --enable-console use /dev/console for error reporting
852 --enable-gdoi enable GDOI key management
Cullen Jennings235513a2005-09-21 22:51:36 +0000853
854Some influential environment variables:
855 CC C compiler command
856 CFLAGS C compiler flags
857 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
858 nonstandard directory <lib dir>
859 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
860 headers in a nonstandard directory <include dir>
861 CPP C preprocessor
862
863Use these variables to override the choices made by `configure' or to help
864it to find libraries and programs with nonstandard names/locations.
865
866_ACEOF
867fi
868
869if test "$ac_init_help" = "recursive"; then
870 # If there are subdirs, report their specific --help.
871 ac_popdir=`pwd`
872 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
873 test -d $ac_dir || continue
874 ac_builddir=.
875
876if test "$ac_dir" != .; then
877 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
878 # A "../" for each directory in $ac_dir_suffix.
879 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
880else
881 ac_dir_suffix= ac_top_builddir=
882fi
883
884case $srcdir in
885 .) # No --srcdir option. We are building in place.
886 ac_srcdir=.
887 if test -z "$ac_top_builddir"; then
888 ac_top_srcdir=.
889 else
890 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
891 fi ;;
892 [\\/]* | ?:[\\/]* ) # Absolute path.
893 ac_srcdir=$srcdir$ac_dir_suffix;
894 ac_top_srcdir=$srcdir ;;
895 *) # Relative path.
896 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
897 ac_top_srcdir=$ac_top_builddir$srcdir ;;
898esac
David McGrewfec49dd2005-09-23 19:34:11 +0000899
900# Do not use `cd foo && pwd` to compute absolute paths, because
901# the directories may not exist.
902case `pwd` in
903.) ac_abs_builddir="$ac_dir";;
904*)
905 case "$ac_dir" in
906 .) ac_abs_builddir=`pwd`;;
907 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
908 *) ac_abs_builddir=`pwd`/"$ac_dir";;
909 esac;;
910esac
911case $ac_abs_builddir in
912.) ac_abs_top_builddir=${ac_top_builddir}.;;
913*)
914 case ${ac_top_builddir}. in
915 .) ac_abs_top_builddir=$ac_abs_builddir;;
916 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
917 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
918 esac;;
919esac
920case $ac_abs_builddir in
921.) ac_abs_srcdir=$ac_srcdir;;
922*)
923 case $ac_srcdir in
924 .) ac_abs_srcdir=$ac_abs_builddir;;
925 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
926 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
927 esac;;
928esac
929case $ac_abs_builddir in
930.) ac_abs_top_srcdir=$ac_top_srcdir;;
931*)
932 case $ac_top_srcdir in
933 .) ac_abs_top_srcdir=$ac_abs_builddir;;
934 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
935 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
936 esac;;
937esac
Cullen Jennings235513a2005-09-21 22:51:36 +0000938
939 cd $ac_dir
940 # Check for guested configure; otherwise get Cygnus style configure.
941 if test -f $ac_srcdir/configure.gnu; then
942 echo
943 $SHELL $ac_srcdir/configure.gnu --help=recursive
944 elif test -f $ac_srcdir/configure; then
945 echo
946 $SHELL $ac_srcdir/configure --help=recursive
947 elif test -f $ac_srcdir/configure.ac ||
David McGrewfec49dd2005-09-23 19:34:11 +0000948 test -f $ac_srcdir/configure.in; then
Cullen Jennings235513a2005-09-21 22:51:36 +0000949 echo
950 $ac_configure --help
951 else
952 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
953 fi
954 cd $ac_popdir
955 done
956fi
957
958test -n "$ac_init_help" && exit 0
959if $ac_init_version; then
960 cat <<\_ACEOF
961
David McGrewfec49dd2005-09-23 19:34:11 +0000962Copyright (C) 2003 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +0000963This configure script is free software; the Free Software Foundation
964gives unlimited permission to copy, distribute and modify it.
965_ACEOF
966 exit 0
967fi
968exec 5>config.log
969cat >&5 <<_ACEOF
970This file contains any messages produced by compilers while
971running configure, to aid debugging if configure makes a mistake.
972
973It was created by $as_me, which was
David McGrewfec49dd2005-09-23 19:34:11 +0000974generated by GNU Autoconf 2.59. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +0000975
976 $ $0 $@
977
978_ACEOF
979{
980cat <<_ASUNAME
981## --------- ##
982## Platform. ##
983## --------- ##
984
985hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
986uname -m = `(uname -m) 2>/dev/null || echo unknown`
987uname -r = `(uname -r) 2>/dev/null || echo unknown`
988uname -s = `(uname -s) 2>/dev/null || echo unknown`
989uname -v = `(uname -v) 2>/dev/null || echo unknown`
990
991/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
992/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
993
994/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
995/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
996/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
997hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
998/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
999/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1000/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1001
1002_ASUNAME
1003
1004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1005for as_dir in $PATH
1006do
1007 IFS=$as_save_IFS
1008 test -z "$as_dir" && as_dir=.
1009 echo "PATH: $as_dir"
1010done
1011
1012} >&5
1013
1014cat >&5 <<_ACEOF
1015
1016
1017## ----------- ##
1018## Core tests. ##
1019## ----------- ##
1020
1021_ACEOF
1022
1023
1024# Keep a trace of the command line.
1025# Strip out --no-create and --no-recursion so they do not pile up.
1026# Strip out --silent because we don't want to record it for future runs.
1027# Also quote any args containing shell meta-characters.
1028# Make two passes to allow for proper duplicate-argument suppression.
1029ac_configure_args=
1030ac_configure_args0=
1031ac_configure_args1=
1032ac_sep=
1033ac_must_keep_next=false
1034for ac_pass in 1 2
1035do
1036 for ac_arg
1037 do
1038 case $ac_arg in
1039 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1041 | -silent | --silent | --silen | --sile | --sil)
1042 continue ;;
1043 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1044 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1045 esac
1046 case $ac_pass in
1047 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1048 2)
1049 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1050 if test $ac_must_keep_next = true; then
David McGrewfec49dd2005-09-23 19:34:11 +00001051 ac_must_keep_next=false # Got value, back to normal.
Cullen Jennings235513a2005-09-21 22:51:36 +00001052 else
David McGrewfec49dd2005-09-23 19:34:11 +00001053 case $ac_arg in
1054 *=* | --config-cache | -C | -disable-* | --disable-* \
1055 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1056 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1057 | -with-* | --with-* | -without-* | --without-* | --x)
1058 case "$ac_configure_args0 " in
1059 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1060 esac
1061 ;;
1062 -* ) ac_must_keep_next=true ;;
1063 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00001064 fi
1065 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1066 # Get rid of the leading space.
1067 ac_sep=" "
1068 ;;
1069 esac
1070 done
1071done
1072$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1073$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1074
1075# When interrupted or exit'd, cleanup temporary files, and complete
1076# config.log. We remove comments because anyway the quotes in there
1077# would cause problems or look ugly.
1078# WARNING: Be sure not to use single quotes in there, as some shells,
1079# such as our DU 5.0 friend, will then `close' the trap.
1080trap 'exit_status=$?
1081 # Save into config.log some information that might help in debugging.
1082 {
1083 echo
1084
1085 cat <<\_ASBOX
1086## ---------------- ##
1087## Cache variables. ##
1088## ---------------- ##
1089_ASBOX
1090 echo
1091 # The following way of writing the cache mishandles newlines in values,
1092{
1093 (set) 2>&1 |
1094 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1095 *ac_space=\ *)
1096 sed -n \
David McGrewfec49dd2005-09-23 19:34:11 +00001097 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1098 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
Cullen Jennings235513a2005-09-21 22:51:36 +00001099 ;;
1100 *)
1101 sed -n \
David McGrewfec49dd2005-09-23 19:34:11 +00001102 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Cullen Jennings235513a2005-09-21 22:51:36 +00001103 ;;
1104 esac;
1105}
1106 echo
1107
1108 cat <<\_ASBOX
1109## ----------------- ##
1110## Output variables. ##
1111## ----------------- ##
1112_ASBOX
1113 echo
1114 for ac_var in $ac_subst_vars
1115 do
1116 eval ac_val=$`echo $ac_var`
1117 echo "$ac_var='"'"'$ac_val'"'"'"
1118 done | sort
1119 echo
1120
1121 if test -n "$ac_subst_files"; then
1122 cat <<\_ASBOX
1123## ------------- ##
1124## Output files. ##
1125## ------------- ##
1126_ASBOX
1127 echo
1128 for ac_var in $ac_subst_files
1129 do
1130 eval ac_val=$`echo $ac_var`
David McGrewfec49dd2005-09-23 19:34:11 +00001131 echo "$ac_var='"'"'$ac_val'"'"'"
Cullen Jennings235513a2005-09-21 22:51:36 +00001132 done | sort
1133 echo
1134 fi
1135
1136 if test -s confdefs.h; then
1137 cat <<\_ASBOX
1138## ----------- ##
1139## confdefs.h. ##
1140## ----------- ##
1141_ASBOX
1142 echo
1143 sed "/^$/d" confdefs.h | sort
1144 echo
1145 fi
1146 test "$ac_signal" != 0 &&
1147 echo "$as_me: caught signal $ac_signal"
1148 echo "$as_me: exit $exit_status"
1149 } >&5
David McGrewfec49dd2005-09-23 19:34:11 +00001150 rm -f core *.core &&
Cullen Jennings235513a2005-09-21 22:51:36 +00001151 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1152 exit $exit_status
1153 ' 0
1154for ac_signal in 1 2 13 15; do
1155 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1156done
1157ac_signal=0
1158
1159# confdefs.h avoids OS command line length limits that DEFS can exceed.
1160rm -rf conftest* confdefs.h
1161# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1162echo >confdefs.h
1163
1164# Predefined preprocessor variables.
1165
1166cat >>confdefs.h <<_ACEOF
1167#define PACKAGE_NAME "$PACKAGE_NAME"
1168_ACEOF
1169
1170
1171cat >>confdefs.h <<_ACEOF
1172#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1173_ACEOF
1174
1175
1176cat >>confdefs.h <<_ACEOF
1177#define PACKAGE_VERSION "$PACKAGE_VERSION"
1178_ACEOF
1179
1180
1181cat >>confdefs.h <<_ACEOF
1182#define PACKAGE_STRING "$PACKAGE_STRING"
1183_ACEOF
1184
1185
1186cat >>confdefs.h <<_ACEOF
1187#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1188_ACEOF
1189
1190
1191# Let the site file select an alternate cache file if it wants to.
1192# Prefer explicitly selected file to automatically selected ones.
1193if test -z "$CONFIG_SITE"; then
1194 if test "x$prefix" != xNONE; then
1195 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1196 else
1197 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1198 fi
1199fi
1200for ac_site_file in $CONFIG_SITE; do
1201 if test -r "$ac_site_file"; then
1202 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1203echo "$as_me: loading site script $ac_site_file" >&6;}
1204 sed 's/^/| /' "$ac_site_file" >&5
1205 . "$ac_site_file"
1206 fi
1207done
1208
1209if test -r "$cache_file"; then
1210 # Some versions of bash will fail to source /dev/null (special
1211 # files actually), so we avoid doing that.
1212 if test -f "$cache_file"; then
1213 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1214echo "$as_me: loading cache $cache_file" >&6;}
1215 case $cache_file in
1216 [\\/]* | ?:[\\/]* ) . $cache_file;;
1217 *) . ./$cache_file;;
1218 esac
1219 fi
1220else
1221 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1222echo "$as_me: creating cache $cache_file" >&6;}
1223 >$cache_file
1224fi
1225
1226# Check that the precious variables saved in the cache have kept the same
1227# value.
1228ac_cache_corrupted=false
1229for ac_var in `(set) 2>&1 |
David McGrewfec49dd2005-09-23 19:34:11 +00001230 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
Cullen Jennings235513a2005-09-21 22:51:36 +00001231 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1232 eval ac_new_set=\$ac_env_${ac_var}_set
1233 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1234 eval ac_new_val="\$ac_env_${ac_var}_value"
1235 case $ac_old_set,$ac_new_set in
1236 set,)
1237 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1238echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1239 ac_cache_corrupted=: ;;
1240 ,set)
1241 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1242echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1243 ac_cache_corrupted=: ;;
1244 ,);;
1245 *)
1246 if test "x$ac_old_val" != "x$ac_new_val"; then
David McGrewfec49dd2005-09-23 19:34:11 +00001247 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00001248echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00001249 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00001250echo "$as_me: former value: $ac_old_val" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00001251 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00001252echo "$as_me: current value: $ac_new_val" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00001253 ac_cache_corrupted=:
Cullen Jennings235513a2005-09-21 22:51:36 +00001254 fi;;
1255 esac
1256 # Pass precious variables to config.status.
1257 if test "$ac_new_set" = set; then
1258 case $ac_new_val in
1259 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1260 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1261 *) ac_arg=$ac_var=$ac_new_val ;;
1262 esac
1263 case " $ac_configure_args " in
1264 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1265 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1266 esac
1267 fi
1268done
1269if $ac_cache_corrupted; then
1270 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1271echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1272 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1273echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1274 { (exit 1); exit 1; }; }
1275fi
1276
1277ac_ext=c
1278ac_cpp='$CPP $CPPFLAGS'
1279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1281ac_compiler_gnu=$ac_cv_c_compiler_gnu
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
David McGrewb67061f2005-09-28 14:23:06 +00001302if test -z "$CFLAGS"; then
1303 CFLAGS="-Wall -O4 -fexpensive-optimizations -funroll-loops"
1304fi
1305
Cullen Jennings235513a2005-09-21 22:51:36 +00001306if test -n "$ac_tool_prefix"; then
1307 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1308set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1309echo "$as_me:$LINENO: checking for $ac_word" >&5
1310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1311if test "${ac_cv_prog_RANLIB+set}" = set; then
1312 echo $ECHO_N "(cached) $ECHO_C" >&6
1313else
1314 if test -n "$RANLIB"; then
1315 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1316else
1317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1318for as_dir in $PATH
1319do
1320 IFS=$as_save_IFS
1321 test -z "$as_dir" && as_dir=.
1322 for ac_exec_ext in '' $ac_executable_extensions; do
1323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1324 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1326 break 2
1327 fi
1328done
1329done
1330
1331fi
1332fi
1333RANLIB=$ac_cv_prog_RANLIB
1334if test -n "$RANLIB"; then
1335 echo "$as_me:$LINENO: result: $RANLIB" >&5
1336echo "${ECHO_T}$RANLIB" >&6
1337else
1338 echo "$as_me:$LINENO: result: no" >&5
1339echo "${ECHO_T}no" >&6
1340fi
1341
1342fi
1343if test -z "$ac_cv_prog_RANLIB"; then
1344 ac_ct_RANLIB=$RANLIB
1345 # Extract the first word of "ranlib", so it can be a program name with args.
1346set dummy ranlib; ac_word=$2
1347echo "$as_me:$LINENO: checking for $ac_word" >&5
1348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1349if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1350 echo $ECHO_N "(cached) $ECHO_C" >&6
1351else
1352 if test -n "$ac_ct_RANLIB"; then
1353 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1354else
1355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1356for as_dir in $PATH
1357do
1358 IFS=$as_save_IFS
1359 test -z "$as_dir" && as_dir=.
1360 for ac_exec_ext in '' $ac_executable_extensions; do
1361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1362 ac_cv_prog_ac_ct_RANLIB="ranlib"
1363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1364 break 2
1365 fi
1366done
1367done
1368
1369 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1370fi
1371fi
1372ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1373if test -n "$ac_ct_RANLIB"; then
1374 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1375echo "${ECHO_T}$ac_ct_RANLIB" >&6
1376else
1377 echo "$as_me:$LINENO: result: no" >&5
1378echo "${ECHO_T}no" >&6
1379fi
1380
1381 RANLIB=$ac_ct_RANLIB
1382else
1383 RANLIB="$ac_cv_prog_RANLIB"
1384fi
1385
1386ac_ext=c
1387ac_cpp='$CPP $CPPFLAGS'
1388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1390ac_compiler_gnu=$ac_cv_c_compiler_gnu
1391if test -n "$ac_tool_prefix"; then
1392 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1393set dummy ${ac_tool_prefix}gcc; ac_word=$2
1394echo "$as_me:$LINENO: checking for $ac_word" >&5
1395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1396if test "${ac_cv_prog_CC+set}" = set; then
1397 echo $ECHO_N "(cached) $ECHO_C" >&6
1398else
1399 if test -n "$CC"; then
1400 ac_cv_prog_CC="$CC" # Let the user override the test.
1401else
1402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1403for as_dir in $PATH
1404do
1405 IFS=$as_save_IFS
1406 test -z "$as_dir" && as_dir=.
1407 for ac_exec_ext in '' $ac_executable_extensions; do
1408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1409 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1411 break 2
1412 fi
1413done
1414done
1415
1416fi
1417fi
1418CC=$ac_cv_prog_CC
1419if test -n "$CC"; then
1420 echo "$as_me:$LINENO: result: $CC" >&5
1421echo "${ECHO_T}$CC" >&6
1422else
1423 echo "$as_me:$LINENO: result: no" >&5
1424echo "${ECHO_T}no" >&6
1425fi
1426
1427fi
1428if test -z "$ac_cv_prog_CC"; then
1429 ac_ct_CC=$CC
1430 # Extract the first word of "gcc", so it can be a program name with args.
1431set dummy gcc; ac_word=$2
1432echo "$as_me:$LINENO: checking for $ac_word" >&5
1433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1434if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1435 echo $ECHO_N "(cached) $ECHO_C" >&6
1436else
1437 if test -n "$ac_ct_CC"; then
1438 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1439else
1440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1441for as_dir in $PATH
1442do
1443 IFS=$as_save_IFS
1444 test -z "$as_dir" && as_dir=.
1445 for ac_exec_ext in '' $ac_executable_extensions; do
1446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1447 ac_cv_prog_ac_ct_CC="gcc"
1448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1449 break 2
1450 fi
1451done
1452done
1453
1454fi
1455fi
1456ac_ct_CC=$ac_cv_prog_ac_ct_CC
1457if test -n "$ac_ct_CC"; then
1458 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1459echo "${ECHO_T}$ac_ct_CC" >&6
1460else
1461 echo "$as_me:$LINENO: result: no" >&5
1462echo "${ECHO_T}no" >&6
1463fi
1464
1465 CC=$ac_ct_CC
1466else
1467 CC="$ac_cv_prog_CC"
1468fi
1469
1470if test -z "$CC"; then
1471 if test -n "$ac_tool_prefix"; then
1472 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1473set dummy ${ac_tool_prefix}cc; ac_word=$2
1474echo "$as_me:$LINENO: checking for $ac_word" >&5
1475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1476if test "${ac_cv_prog_CC+set}" = set; then
1477 echo $ECHO_N "(cached) $ECHO_C" >&6
1478else
1479 if test -n "$CC"; then
1480 ac_cv_prog_CC="$CC" # Let the user override the test.
1481else
1482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483for as_dir in $PATH
1484do
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_CC="${ac_tool_prefix}cc"
1490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1491 break 2
1492 fi
1493done
1494done
1495
1496fi
1497fi
1498CC=$ac_cv_prog_CC
1499if test -n "$CC"; then
1500 echo "$as_me:$LINENO: result: $CC" >&5
1501echo "${ECHO_T}$CC" >&6
1502else
1503 echo "$as_me:$LINENO: result: no" >&5
1504echo "${ECHO_T}no" >&6
1505fi
1506
1507fi
1508if test -z "$ac_cv_prog_CC"; then
1509 ac_ct_CC=$CC
1510 # Extract the first word of "cc", so it can be a program name with args.
1511set dummy cc; ac_word=$2
1512echo "$as_me:$LINENO: checking for $ac_word" >&5
1513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1514if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1515 echo $ECHO_N "(cached) $ECHO_C" >&6
1516else
1517 if test -n "$ac_ct_CC"; then
1518 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1519else
1520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1521for as_dir in $PATH
1522do
1523 IFS=$as_save_IFS
1524 test -z "$as_dir" && as_dir=.
1525 for ac_exec_ext in '' $ac_executable_extensions; do
1526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1527 ac_cv_prog_ac_ct_CC="cc"
1528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1529 break 2
1530 fi
1531done
1532done
1533
1534fi
1535fi
1536ac_ct_CC=$ac_cv_prog_ac_ct_CC
1537if test -n "$ac_ct_CC"; then
1538 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1539echo "${ECHO_T}$ac_ct_CC" >&6
1540else
1541 echo "$as_me:$LINENO: result: no" >&5
1542echo "${ECHO_T}no" >&6
1543fi
1544
1545 CC=$ac_ct_CC
1546else
1547 CC="$ac_cv_prog_CC"
1548fi
1549
1550fi
1551if test -z "$CC"; then
1552 # Extract the first word of "cc", so it can be a program name with args.
1553set dummy cc; ac_word=$2
1554echo "$as_me:$LINENO: checking for $ac_word" >&5
1555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1556if test "${ac_cv_prog_CC+set}" = set; then
1557 echo $ECHO_N "(cached) $ECHO_C" >&6
1558else
1559 if test -n "$CC"; then
1560 ac_cv_prog_CC="$CC" # Let the user override the test.
1561else
1562 ac_prog_rejected=no
1563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564for as_dir in $PATH
1565do
1566 IFS=$as_save_IFS
1567 test -z "$as_dir" && as_dir=.
1568 for ac_exec_ext in '' $ac_executable_extensions; do
1569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1571 ac_prog_rejected=yes
1572 continue
1573 fi
1574 ac_cv_prog_CC="cc"
1575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1576 break 2
1577 fi
1578done
1579done
1580
1581if test $ac_prog_rejected = yes; then
1582 # We found a bogon in the path, so make sure we never use it.
1583 set dummy $ac_cv_prog_CC
1584 shift
1585 if test $# != 0; then
1586 # We chose a different compiler from the bogus one.
1587 # However, it has the same basename, so the bogon will be chosen
1588 # first if we set CC to just the basename; use the full file name.
1589 shift
1590 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1591 fi
1592fi
1593fi
1594fi
1595CC=$ac_cv_prog_CC
1596if test -n "$CC"; then
1597 echo "$as_me:$LINENO: result: $CC" >&5
1598echo "${ECHO_T}$CC" >&6
1599else
1600 echo "$as_me:$LINENO: result: no" >&5
1601echo "${ECHO_T}no" >&6
1602fi
1603
1604fi
1605if test -z "$CC"; then
1606 if test -n "$ac_tool_prefix"; then
1607 for ac_prog in cl
1608 do
1609 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1610set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1611echo "$as_me:$LINENO: checking for $ac_word" >&5
1612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1613if test "${ac_cv_prog_CC+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1615else
1616 if test -n "$CC"; then
1617 ac_cv_prog_CC="$CC" # Let the user override the test.
1618else
1619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620for as_dir in $PATH
1621do
1622 IFS=$as_save_IFS
1623 test -z "$as_dir" && as_dir=.
1624 for ac_exec_ext in '' $ac_executable_extensions; do
1625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1626 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1628 break 2
1629 fi
1630done
1631done
1632
1633fi
1634fi
1635CC=$ac_cv_prog_CC
1636if test -n "$CC"; then
1637 echo "$as_me:$LINENO: result: $CC" >&5
1638echo "${ECHO_T}$CC" >&6
1639else
1640 echo "$as_me:$LINENO: result: no" >&5
1641echo "${ECHO_T}no" >&6
1642fi
1643
1644 test -n "$CC" && break
1645 done
1646fi
1647if test -z "$CC"; then
1648 ac_ct_CC=$CC
1649 for ac_prog in cl
1650do
1651 # Extract the first word of "$ac_prog", so it can be a program name with args.
1652set dummy $ac_prog; ac_word=$2
1653echo "$as_me:$LINENO: checking for $ac_word" >&5
1654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1655if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1656 echo $ECHO_N "(cached) $ECHO_C" >&6
1657else
1658 if test -n "$ac_ct_CC"; then
1659 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1660else
1661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1662for as_dir in $PATH
1663do
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_ac_ct_CC="$ac_prog"
1669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1670 break 2
1671 fi
1672done
1673done
1674
1675fi
1676fi
1677ac_ct_CC=$ac_cv_prog_ac_ct_CC
1678if test -n "$ac_ct_CC"; then
1679 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1680echo "${ECHO_T}$ac_ct_CC" >&6
1681else
1682 echo "$as_me:$LINENO: result: no" >&5
1683echo "${ECHO_T}no" >&6
1684fi
1685
1686 test -n "$ac_ct_CC" && break
1687done
1688
1689 CC=$ac_ct_CC
1690fi
1691
1692fi
1693
1694
1695test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1696See \`config.log' for more details." >&5
1697echo "$as_me: error: no acceptable C compiler found in \$PATH
1698See \`config.log' for more details." >&2;}
1699 { (exit 1); exit 1; }; }
1700
1701# Provide some information about the compiler.
1702echo "$as_me:$LINENO:" \
1703 "checking for C compiler version" >&5
1704ac_compiler=`set X $ac_compile; echo $2`
1705{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1706 (eval $ac_compiler --version </dev/null >&5) 2>&5
1707 ac_status=$?
1708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1709 (exit $ac_status); }
1710{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1711 (eval $ac_compiler -v </dev/null >&5) 2>&5
1712 ac_status=$?
1713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1714 (exit $ac_status); }
1715{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1716 (eval $ac_compiler -V </dev/null >&5) 2>&5
1717 ac_status=$?
1718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1719 (exit $ac_status); }
1720
1721cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00001722/* confdefs.h. */
1723_ACEOF
1724cat confdefs.h >>conftest.$ac_ext
1725cat >>conftest.$ac_ext <<_ACEOF
1726/* end confdefs.h. */
1727
1728int
1729main ()
1730{
1731
1732 ;
1733 return 0;
1734}
1735_ACEOF
1736ac_clean_files_save=$ac_clean_files
1737ac_clean_files="$ac_clean_files a.out a.exe b.out"
1738# Try to create an executable without -o first, disregard a.out.
1739# It will help us diagnose broken compilers, and finding out an intuition
1740# of exeext.
David McGrewfec49dd2005-09-23 19:34:11 +00001741echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1742echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00001743ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1744if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1745 (eval $ac_link_default) 2>&5
1746 ac_status=$?
1747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1748 (exit $ac_status); }; then
1749 # Find the output, starting from the most likely. This scheme is
1750# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1751# resort.
1752
1753# Be careful to initialize this variable, since it used to be cached.
1754# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1755ac_cv_exeext=
1756# b.out is created by i960 compilers.
1757for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1758do
1759 test -f "$ac_file" || continue
1760 case $ac_file in
1761 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
David McGrewfec49dd2005-09-23 19:34:11 +00001762 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001763 conftest.$ac_ext )
David McGrewfec49dd2005-09-23 19:34:11 +00001764 # This is the source file.
1765 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001766 [ab].out )
David McGrewfec49dd2005-09-23 19:34:11 +00001767 # We found the default executable, but exeext='' is most
1768 # certainly right.
1769 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001770 *.* )
David McGrewfec49dd2005-09-23 19:34:11 +00001771 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1772 # FIXME: I believe we export ac_cv_exeext for Libtool,
1773 # but it would be cool to find out if it's true. Does anybody
1774 # maintain Libtool? --akim.
1775 export ac_cv_exeext
1776 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001777 * )
David McGrewfec49dd2005-09-23 19:34:11 +00001778 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001779 esac
1780done
1781else
1782 echo "$as_me: failed program was:" >&5
1783sed 's/^/| /' conftest.$ac_ext >&5
1784
1785{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1786See \`config.log' for more details." >&5
1787echo "$as_me: error: C compiler cannot create executables
1788See \`config.log' for more details." >&2;}
1789 { (exit 77); exit 77; }; }
1790fi
1791
1792ac_exeext=$ac_cv_exeext
1793echo "$as_me:$LINENO: result: $ac_file" >&5
1794echo "${ECHO_T}$ac_file" >&6
1795
1796# Check the compiler produces executables we can run. If not, either
1797# the compiler is broken, or we cross compile.
1798echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1799echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1800# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1801# If not cross compiling, check that we can run a simple program.
1802if test "$cross_compiling" != yes; then
1803 if { ac_try='./$ac_file'
1804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1805 (eval $ac_try) 2>&5
1806 ac_status=$?
1807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1808 (exit $ac_status); }; }; then
1809 cross_compiling=no
1810 else
1811 if test "$cross_compiling" = maybe; then
1812 cross_compiling=yes
1813 else
1814 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1815If you meant to cross compile, use \`--host'.
1816See \`config.log' for more details." >&5
1817echo "$as_me: error: cannot run C compiled programs.
1818If you meant to cross compile, use \`--host'.
1819See \`config.log' for more details." >&2;}
1820 { (exit 1); exit 1; }; }
1821 fi
1822 fi
1823fi
1824echo "$as_me:$LINENO: result: yes" >&5
1825echo "${ECHO_T}yes" >&6
1826
1827rm -f a.out a.exe conftest$ac_cv_exeext b.out
1828ac_clean_files=$ac_clean_files_save
1829# Check the compiler produces executables we can run. If not, either
1830# the compiler is broken, or we cross compile.
1831echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1832echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1833echo "$as_me:$LINENO: result: $cross_compiling" >&5
1834echo "${ECHO_T}$cross_compiling" >&6
1835
1836echo "$as_me:$LINENO: checking for suffix of executables" >&5
1837echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1839 (eval $ac_link) 2>&5
1840 ac_status=$?
1841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1842 (exit $ac_status); }; then
1843 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1844# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1845# work properly (i.e., refer to `conftest.exe'), while it won't with
1846# `rm'.
1847for ac_file in conftest.exe conftest conftest.*; do
1848 test -f "$ac_file" || continue
1849 case $ac_file in
1850 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1851 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
David McGrewfec49dd2005-09-23 19:34:11 +00001852 export ac_cv_exeext
1853 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001854 * ) break;;
1855 esac
1856done
1857else
1858 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1859See \`config.log' for more details." >&5
1860echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1861See \`config.log' for more details." >&2;}
1862 { (exit 1); exit 1; }; }
1863fi
1864
1865rm -f conftest$ac_cv_exeext
1866echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1867echo "${ECHO_T}$ac_cv_exeext" >&6
1868
1869rm -f conftest.$ac_ext
1870EXEEXT=$ac_cv_exeext
1871ac_exeext=$EXEEXT
1872echo "$as_me:$LINENO: checking for suffix of object files" >&5
1873echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1874if test "${ac_cv_objext+set}" = set; then
1875 echo $ECHO_N "(cached) $ECHO_C" >&6
1876else
1877 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00001878/* confdefs.h. */
1879_ACEOF
1880cat confdefs.h >>conftest.$ac_ext
1881cat >>conftest.$ac_ext <<_ACEOF
1882/* end confdefs.h. */
1883
1884int
1885main ()
1886{
1887
1888 ;
1889 return 0;
1890}
1891_ACEOF
1892rm -f conftest.o conftest.obj
1893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1894 (eval $ac_compile) 2>&5
1895 ac_status=$?
1896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1897 (exit $ac_status); }; then
1898 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1899 case $ac_file in
1900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1901 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1902 break;;
1903 esac
1904done
1905else
1906 echo "$as_me: failed program was:" >&5
1907sed 's/^/| /' conftest.$ac_ext >&5
1908
1909{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1910See \`config.log' for more details." >&5
1911echo "$as_me: error: cannot compute suffix of object files: cannot compile
1912See \`config.log' for more details." >&2;}
1913 { (exit 1); exit 1; }; }
1914fi
1915
1916rm -f conftest.$ac_cv_objext conftest.$ac_ext
1917fi
1918echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1919echo "${ECHO_T}$ac_cv_objext" >&6
1920OBJEXT=$ac_cv_objext
1921ac_objext=$OBJEXT
1922echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1923echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1924if test "${ac_cv_c_compiler_gnu+set}" = set; then
1925 echo $ECHO_N "(cached) $ECHO_C" >&6
1926else
1927 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00001928/* confdefs.h. */
1929_ACEOF
1930cat confdefs.h >>conftest.$ac_ext
1931cat >>conftest.$ac_ext <<_ACEOF
1932/* end confdefs.h. */
1933
1934int
1935main ()
1936{
1937#ifndef __GNUC__
1938 choke me
1939#endif
1940
1941 ;
1942 return 0;
1943}
1944_ACEOF
1945rm -f conftest.$ac_objext
1946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00001947 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00001948 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00001949 grep -v '^ *+' conftest.er1 >conftest.err
1950 rm -f conftest.er1
1951 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00001952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1953 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00001954 { ac_try='test -z "$ac_c_werror_flag"
1955 || test ! -s conftest.err'
1956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1957 (eval $ac_try) 2>&5
1958 ac_status=$?
1959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1960 (exit $ac_status); }; } &&
1961 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00001962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1963 (eval $ac_try) 2>&5
1964 ac_status=$?
1965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1966 (exit $ac_status); }; }; then
1967 ac_compiler_gnu=yes
1968else
1969 echo "$as_me: failed program was:" >&5
1970sed 's/^/| /' conftest.$ac_ext >&5
1971
1972ac_compiler_gnu=no
1973fi
David McGrewfec49dd2005-09-23 19:34:11 +00001974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00001975ac_cv_c_compiler_gnu=$ac_compiler_gnu
1976
1977fi
1978echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1979echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1980GCC=`test $ac_compiler_gnu = yes && echo yes`
1981ac_test_CFLAGS=${CFLAGS+set}
1982ac_save_CFLAGS=$CFLAGS
1983CFLAGS="-g"
1984echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1985echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1986if test "${ac_cv_prog_cc_g+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1988else
1989 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00001990/* confdefs.h. */
1991_ACEOF
1992cat confdefs.h >>conftest.$ac_ext
1993cat >>conftest.$ac_ext <<_ACEOF
1994/* end confdefs.h. */
1995
1996int
1997main ()
1998{
1999
2000 ;
2001 return 0;
2002}
2003_ACEOF
2004rm -f conftest.$ac_objext
2005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00002006 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00002007 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00002008 grep -v '^ *+' conftest.er1 >conftest.err
2009 rm -f conftest.er1
2010 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00002013 { ac_try='test -z "$ac_c_werror_flag"
2014 || test ! -s conftest.err'
2015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2016 (eval $ac_try) 2>&5
2017 ac_status=$?
2018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2019 (exit $ac_status); }; } &&
2020 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00002021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2022 (eval $ac_try) 2>&5
2023 ac_status=$?
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); }; }; then
2026 ac_cv_prog_cc_g=yes
2027else
2028 echo "$as_me: failed program was:" >&5
2029sed 's/^/| /' conftest.$ac_ext >&5
2030
2031ac_cv_prog_cc_g=no
2032fi
David McGrewfec49dd2005-09-23 19:34:11 +00002033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002034fi
2035echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2036echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2037if test "$ac_test_CFLAGS" = set; then
2038 CFLAGS=$ac_save_CFLAGS
2039elif test $ac_cv_prog_cc_g = yes; then
2040 if test "$GCC" = yes; then
2041 CFLAGS="-g -O2"
2042 else
2043 CFLAGS="-g"
2044 fi
2045else
2046 if test "$GCC" = yes; then
2047 CFLAGS="-O2"
2048 else
2049 CFLAGS=
2050 fi
2051fi
2052echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2053echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2054if test "${ac_cv_prog_cc_stdc+set}" = set; then
2055 echo $ECHO_N "(cached) $ECHO_C" >&6
2056else
2057 ac_cv_prog_cc_stdc=no
2058ac_save_CC=$CC
2059cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00002060/* confdefs.h. */
2061_ACEOF
2062cat confdefs.h >>conftest.$ac_ext
2063cat >>conftest.$ac_ext <<_ACEOF
2064/* end confdefs.h. */
2065#include <stdarg.h>
2066#include <stdio.h>
2067#include <sys/types.h>
2068#include <sys/stat.h>
2069/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2070struct buf { int x; };
2071FILE * (*rcsopen) (struct buf *, struct stat *, int);
2072static char *e (p, i)
2073 char **p;
2074 int i;
2075{
2076 return p[i];
2077}
2078static char *f (char * (*g) (char **, int), char **p, ...)
2079{
2080 char *s;
2081 va_list v;
2082 va_start (v,p);
2083 s = g (p, va_arg (v,int));
2084 va_end (v);
2085 return s;
2086}
David McGrewfec49dd2005-09-23 19:34:11 +00002087
2088/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2089 function prototypes and stuff, but not '\xHH' hex character constants.
2090 These don't provoke an error unfortunately, instead are silently treated
2091 as 'x'. The following induces an error, until -std1 is added to get
2092 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2093 array size at least. It's necessary to write '\x00'==0 to get something
2094 that's true only with -std1. */
2095int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2096
Cullen Jennings235513a2005-09-21 22:51:36 +00002097int test (int i, double x);
2098struct s1 {int (*f) (int a);};
2099struct s2 {int (*f) (double a);};
2100int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2101int argc;
2102char **argv;
2103int
2104main ()
2105{
2106return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2107 ;
2108 return 0;
2109}
2110_ACEOF
2111# Don't try gcc -ansi; that turns off useful extensions and
2112# breaks some systems' header files.
2113# AIX -qlanglvl=ansi
2114# Ultrix and OSF/1 -std1
2115# HP-UX 10.20 and later -Ae
2116# HP-UX older versions -Aa -D_HPUX_SOURCE
2117# SVR4 -Xc -D__EXTENSIONS__
2118for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2119do
2120 CC="$ac_save_CC $ac_arg"
2121 rm -f conftest.$ac_objext
2122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00002123 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00002124 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00002125 grep -v '^ *+' conftest.er1 >conftest.err
2126 rm -f conftest.er1
2127 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00002130 { ac_try='test -z "$ac_c_werror_flag"
2131 || test ! -s conftest.err'
2132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2133 (eval $ac_try) 2>&5
2134 ac_status=$?
2135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136 (exit $ac_status); }; } &&
2137 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00002138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2139 (eval $ac_try) 2>&5
2140 ac_status=$?
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }; }; then
2143 ac_cv_prog_cc_stdc=$ac_arg
2144break
2145else
2146 echo "$as_me: failed program was:" >&5
2147sed 's/^/| /' conftest.$ac_ext >&5
2148
2149fi
David McGrewfec49dd2005-09-23 19:34:11 +00002150rm -f conftest.err conftest.$ac_objext
Cullen Jennings235513a2005-09-21 22:51:36 +00002151done
2152rm -f conftest.$ac_ext conftest.$ac_objext
2153CC=$ac_save_CC
2154
2155fi
2156
2157case "x$ac_cv_prog_cc_stdc" in
2158 x|xno)
2159 echo "$as_me:$LINENO: result: none needed" >&5
2160echo "${ECHO_T}none needed" >&6 ;;
2161 *)
2162 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2163echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2164 CC="$CC $ac_cv_prog_cc_stdc" ;;
2165esac
2166
2167# Some people use a C++ compiler to compile C. Since we use `exit',
2168# in C++ we need to declare it. In case someone uses the same compiler
2169# for both compiling C and C++ we need to have the C++ compiler decide
2170# the declaration of exit, since it's the most demanding environment.
2171cat >conftest.$ac_ext <<_ACEOF
2172#ifndef __cplusplus
2173 choke me
2174#endif
2175_ACEOF
2176rm -f conftest.$ac_objext
2177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00002178 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00002179 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00002180 grep -v '^ *+' conftest.er1 >conftest.err
2181 rm -f conftest.er1
2182 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00002185 { ac_try='test -z "$ac_c_werror_flag"
2186 || test ! -s conftest.err'
2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 (eval $ac_try) 2>&5
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; } &&
2192 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00002193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2194 (eval $ac_try) 2>&5
2195 ac_status=$?
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }; }; then
2198 for ac_declaration in \
David McGrewfec49dd2005-09-23 19:34:11 +00002199 '' \
Cullen Jennings235513a2005-09-21 22:51:36 +00002200 'extern "C" void std::exit (int) throw (); using std::exit;' \
2201 'extern "C" void std::exit (int); using std::exit;' \
2202 'extern "C" void exit (int) throw ();' \
2203 'extern "C" void exit (int);' \
2204 'void exit (int);'
2205do
2206 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00002207/* confdefs.h. */
2208_ACEOF
2209cat confdefs.h >>conftest.$ac_ext
2210cat >>conftest.$ac_ext <<_ACEOF
2211/* end confdefs.h. */
Cullen Jennings235513a2005-09-21 22:51:36 +00002212$ac_declaration
David McGrewfec49dd2005-09-23 19:34:11 +00002213#include <stdlib.h>
Cullen Jennings235513a2005-09-21 22:51:36 +00002214int
2215main ()
2216{
2217exit (42);
2218 ;
2219 return 0;
2220}
2221_ACEOF
2222rm -f conftest.$ac_objext
2223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00002224 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00002225 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00002226 grep -v '^ *+' conftest.er1 >conftest.err
2227 rm -f conftest.er1
2228 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00002231 { ac_try='test -z "$ac_c_werror_flag"
2232 || test ! -s conftest.err'
2233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234 (eval $ac_try) 2>&5
2235 ac_status=$?
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; } &&
2238 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00002239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240 (eval $ac_try) 2>&5
2241 ac_status=$?
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; }; then
2244 :
2245else
2246 echo "$as_me: failed program was:" >&5
2247sed 's/^/| /' conftest.$ac_ext >&5
2248
2249continue
2250fi
David McGrewfec49dd2005-09-23 19:34:11 +00002251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002252 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00002253/* confdefs.h. */
2254_ACEOF
2255cat confdefs.h >>conftest.$ac_ext
2256cat >>conftest.$ac_ext <<_ACEOF
2257/* end confdefs.h. */
2258$ac_declaration
2259int
2260main ()
2261{
2262exit (42);
2263 ;
2264 return 0;
2265}
2266_ACEOF
2267rm -f conftest.$ac_objext
2268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00002269 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00002270 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00002271 grep -v '^ *+' conftest.er1 >conftest.err
2272 rm -f conftest.er1
2273 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00002276 { ac_try='test -z "$ac_c_werror_flag"
2277 || test ! -s conftest.err'
2278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279 (eval $ac_try) 2>&5
2280 ac_status=$?
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; } &&
2283 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00002284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285 (eval $ac_try) 2>&5
2286 ac_status=$?
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); }; }; then
2289 break
2290else
2291 echo "$as_me: failed program was:" >&5
2292sed 's/^/| /' conftest.$ac_ext >&5
2293
2294fi
David McGrewfec49dd2005-09-23 19:34:11 +00002295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002296done
2297rm -f conftest*
2298if test -n "$ac_declaration"; then
2299 echo '#ifdef __cplusplus' >>confdefs.h
2300 echo $ac_declaration >>confdefs.h
2301 echo '#endif' >>confdefs.h
2302fi
2303
2304else
2305 echo "$as_me: failed program was:" >&5
2306sed 's/^/| /' conftest.$ac_ext >&5
2307
2308fi
David McGrewfec49dd2005-09-23 19:34:11 +00002309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002310ac_ext=c
2311ac_cpp='$CPP $CPPFLAGS'
2312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2314ac_compiler_gnu=$ac_cv_c_compiler_gnu
2315
David McGrewb67061f2005-09-28 14:23:06 +00002316ac_aux_dir=
2317for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2318 if test -f $ac_dir/install-sh; then
2319 ac_aux_dir=$ac_dir
2320 ac_install_sh="$ac_aux_dir/install-sh -c"
2321 break
2322 elif test -f $ac_dir/install.sh; then
2323 ac_aux_dir=$ac_dir
2324 ac_install_sh="$ac_aux_dir/install.sh -c"
2325 break
2326 elif test -f $ac_dir/shtool; then
2327 ac_aux_dir=$ac_dir
2328 ac_install_sh="$ac_aux_dir/shtool install -c"
2329 break
2330 fi
2331done
2332if test -z "$ac_aux_dir"; then
2333 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2334echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2335 { (exit 1); exit 1; }; }
2336fi
2337ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2338ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2339ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
Cullen Jennings235513a2005-09-21 22:51:36 +00002340
David McGrewb67061f2005-09-28 14:23:06 +00002341# Find a good install program. We prefer a C program (faster),
2342# so one script is as good as another. But avoid the broken or
2343# incompatible versions:
2344# SysV /etc/install, /usr/sbin/install
2345# SunOS /usr/etc/install
2346# IRIX /sbin/install
2347# AIX /bin/install
2348# AmigaOS /C/install, which installs bootblocks on floppy discs
2349# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2350# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2351# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2352# OS/2's system install, which has a completely different semantic
2353# ./install, which can be erroneously created by make from ./install.sh.
2354echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2355echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2356if test -z "$INSTALL"; then
2357if test "${ac_cv_path_install+set}" = set; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002358 echo $ECHO_N "(cached) $ECHO_C" >&6
2359else
David McGrewb67061f2005-09-28 14:23:06 +00002360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361for as_dir in $PATH
2362do
2363 IFS=$as_save_IFS
2364 test -z "$as_dir" && as_dir=.
2365 # Account for people who put trailing slashes in PATH elements.
2366case $as_dir/ in
2367 ./ | .// | /cC/* | \
2368 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2369 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2370 /usr/ucb/* ) ;;
2371 *)
2372 # OSF1 and SCO ODT 3.0 have their own names for install.
2373 # Don't use installbsd from OSF since it installs stuff as root
2374 # by default.
2375 for ac_prog in ginstall scoinst install; do
2376 for ac_exec_ext in '' $ac_executable_extensions; do
2377 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2378 if test $ac_prog = install &&
2379 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2380 # AIX install. It has an incompatible calling convention.
2381 :
2382 elif test $ac_prog = install &&
2383 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2384 # program-specific install script used by HP pwplus--don't use.
2385 :
2386 else
2387 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2388 break 3
2389 fi
2390 fi
2391 done
2392 done
2393 ;;
2394esac
2395done
Cullen Jennings235513a2005-09-21 22:51:36 +00002396
Cullen Jennings235513a2005-09-21 22:51:36 +00002397
2398fi
David McGrewb67061f2005-09-28 14:23:06 +00002399 if test "${ac_cv_path_install+set}" = set; then
2400 INSTALL=$ac_cv_path_install
2401 else
2402 # As a last resort, use the slow shell script. We don't cache a
2403 # path for INSTALL within a source directory, because that will
2404 # break other packages using the cache if that directory is
2405 # removed, or if the path is relative.
2406 INSTALL=$ac_install_sh
2407 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002408fi
David McGrewb67061f2005-09-28 14:23:06 +00002409echo "$as_me:$LINENO: result: $INSTALL" >&5
2410echo "${ECHO_T}$INSTALL" >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002411
David McGrewb67061f2005-09-28 14:23:06 +00002412# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2413# It thinks the first close brace ends the variable substitution.
2414test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
Cullen Jennings235513a2005-09-21 22:51:36 +00002415
David McGrewb67061f2005-09-28 14:23:06 +00002416test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2417
2418test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
Cullen Jennings235513a2005-09-21 22:51:36 +00002419
2420
2421
2422echo "$as_me:$LINENO: checking for /dev/urandom" >&5
2423echo $ECHO_N "checking for /dev/urandom... $ECHO_C" >&6
2424if test "${ac_cv_file__dev_urandom+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
2426else
2427 test "$cross_compiling" = yes &&
2428 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2429echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2430 { (exit 1); exit 1; }; }
2431if test -r "/dev/urandom"; then
2432 ac_cv_file__dev_urandom=yes
2433else
2434 ac_cv_file__dev_urandom=no
2435fi
2436fi
2437echo "$as_me:$LINENO: result: $ac_cv_file__dev_urandom" >&5
2438echo "${ECHO_T}$ac_cv_file__dev_urandom" >&6
2439if test $ac_cv_file__dev_urandom = yes; then
David McGrewb67061f2005-09-28 14:23:06 +00002440 DEV_URANDOM=/dev/urandom
Cullen Jennings235513a2005-09-21 22:51:36 +00002441else
David McGrewb67061f2005-09-28 14:23:06 +00002442 echo "$as_me:$LINENO: checking for /dev/random" >&5
2443echo $ECHO_N "checking for /dev/random... $ECHO_C" >&6
2444if test "${ac_cv_file__dev_random+set}" = set; then
2445 echo $ECHO_N "(cached) $ECHO_C" >&6
2446else
2447 test "$cross_compiling" = yes &&
2448 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2449echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2450 { (exit 1); exit 1; }; }
2451if test -r "/dev/random"; then
2452 ac_cv_file__dev_random=yes
2453else
2454 ac_cv_file__dev_random=no
2455fi
2456fi
2457echo "$as_me:$LINENO: result: $ac_cv_file__dev_random" >&5
2458echo "${ECHO_T}$ac_cv_file__dev_random" >&6
2459if test $ac_cv_file__dev_random = yes; then
2460 DEV_URANDOM=/dev/random
Cullen Jennings235513a2005-09-21 22:51:36 +00002461fi
2462
David McGrewb67061f2005-09-28 14:23:06 +00002463fi
2464
2465
2466echo "$as_me:$LINENO: checking which random device to use" >&5
2467echo $ECHO_N "checking which random device to use... $ECHO_C" >&6
2468if test -n "$DEV_URANDOM"; then
2469
2470cat >>confdefs.h <<_ACEOF
2471#define DEV_URANDOM "$DEV_URANDOM"
Cullen Jennings235513a2005-09-21 22:51:36 +00002472_ACEOF
2473
2474 RNG_OBJS=crypto/rng/rand_source.c
Cullen Jennings235513a2005-09-21 22:51:36 +00002475fi
2476
David McGrewb67061f2005-09-28 14:23:06 +00002477echo "$as_me:$LINENO: result: $DEV_URANDOM" >&5
2478echo "${ECHO_T}$DEV_URANDOM" >&6
2479
2480
Cullen Jennings235513a2005-09-21 22:51:36 +00002481
2482ac_ext=c
2483ac_cpp='$CPP $CPPFLAGS'
2484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2486ac_compiler_gnu=$ac_cv_c_compiler_gnu
2487echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2488echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2489# On Suns, sometimes $CPP names a directory.
2490if test -n "$CPP" && test -d "$CPP"; then
2491 CPP=
2492fi
2493if test -z "$CPP"; then
2494 if test "${ac_cv_prog_CPP+set}" = set; then
2495 echo $ECHO_N "(cached) $ECHO_C" >&6
2496else
2497 # Double quotes because CPP needs to be expanded
2498 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2499 do
2500 ac_preproc_ok=false
2501for ac_c_preproc_warn_flag in '' yes
2502do
2503 # Use a header file that comes with gcc, so configuring glibc
2504 # with a fresh cross-compiler works.
2505 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2506 # <limits.h> exists even on freestanding compilers.
2507 # On the NeXT, cc -E runs the code through the compiler's parser,
2508 # not just through cpp. "Syntax error" is here to catch this case.
2509 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00002510/* confdefs.h. */
2511_ACEOF
2512cat confdefs.h >>conftest.$ac_ext
2513cat >>conftest.$ac_ext <<_ACEOF
2514/* end confdefs.h. */
2515#ifdef __STDC__
2516# include <limits.h>
2517#else
2518# include <assert.h>
2519#endif
David McGrewfec49dd2005-09-23 19:34:11 +00002520 Syntax error
Cullen Jennings235513a2005-09-21 22:51:36 +00002521_ACEOF
2522if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2524 ac_status=$?
2525 grep -v '^ *+' conftest.er1 >conftest.err
2526 rm -f conftest.er1
2527 cat conftest.err >&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); } >/dev/null; then
2530 if test -s conftest.err; then
2531 ac_cpp_err=$ac_c_preproc_warn_flag
David McGrewfec49dd2005-09-23 19:34:11 +00002532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Cullen Jennings235513a2005-09-21 22:51:36 +00002533 else
2534 ac_cpp_err=
2535 fi
2536else
2537 ac_cpp_err=yes
2538fi
2539if test -z "$ac_cpp_err"; then
2540 :
2541else
2542 echo "$as_me: failed program was:" >&5
2543sed 's/^/| /' conftest.$ac_ext >&5
2544
2545 # Broken: fails on valid input.
2546continue
2547fi
2548rm -f conftest.err conftest.$ac_ext
2549
2550 # OK, works on sane cases. Now check whether non-existent headers
2551 # can be detected and how.
2552 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00002553/* confdefs.h. */
2554_ACEOF
2555cat confdefs.h >>conftest.$ac_ext
2556cat >>conftest.$ac_ext <<_ACEOF
2557/* end confdefs.h. */
2558#include <ac_nonexistent.h>
2559_ACEOF
2560if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2562 ac_status=$?
2563 grep -v '^ *+' conftest.er1 >conftest.err
2564 rm -f conftest.er1
2565 cat conftest.err >&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); } >/dev/null; then
2568 if test -s conftest.err; then
2569 ac_cpp_err=$ac_c_preproc_warn_flag
David McGrewfec49dd2005-09-23 19:34:11 +00002570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Cullen Jennings235513a2005-09-21 22:51:36 +00002571 else
2572 ac_cpp_err=
2573 fi
2574else
2575 ac_cpp_err=yes
2576fi
2577if test -z "$ac_cpp_err"; then
2578 # Broken: success on invalid input.
2579continue
2580else
2581 echo "$as_me: failed program was:" >&5
2582sed 's/^/| /' conftest.$ac_ext >&5
2583
2584 # Passes both tests.
2585ac_preproc_ok=:
2586break
2587fi
2588rm -f conftest.err conftest.$ac_ext
2589
2590done
2591# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2592rm -f conftest.err conftest.$ac_ext
2593if $ac_preproc_ok; then
2594 break
2595fi
2596
2597 done
2598 ac_cv_prog_CPP=$CPP
2599
2600fi
2601 CPP=$ac_cv_prog_CPP
2602else
2603 ac_cv_prog_CPP=$CPP
2604fi
2605echo "$as_me:$LINENO: result: $CPP" >&5
2606echo "${ECHO_T}$CPP" >&6
2607ac_preproc_ok=false
2608for ac_c_preproc_warn_flag in '' yes
2609do
2610 # Use a header file that comes with gcc, so configuring glibc
2611 # with a fresh cross-compiler works.
2612 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2613 # <limits.h> exists even on freestanding compilers.
2614 # On the NeXT, cc -E runs the code through the compiler's parser,
2615 # not just through cpp. "Syntax error" is here to catch this case.
2616 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00002617/* confdefs.h. */
2618_ACEOF
2619cat confdefs.h >>conftest.$ac_ext
2620cat >>conftest.$ac_ext <<_ACEOF
2621/* end confdefs.h. */
2622#ifdef __STDC__
2623# include <limits.h>
2624#else
2625# include <assert.h>
2626#endif
David McGrewfec49dd2005-09-23 19:34:11 +00002627 Syntax error
Cullen Jennings235513a2005-09-21 22:51:36 +00002628_ACEOF
2629if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2630 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2631 ac_status=$?
2632 grep -v '^ *+' conftest.er1 >conftest.err
2633 rm -f conftest.er1
2634 cat conftest.err >&5
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); } >/dev/null; then
2637 if test -s conftest.err; then
2638 ac_cpp_err=$ac_c_preproc_warn_flag
David McGrewfec49dd2005-09-23 19:34:11 +00002639 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Cullen Jennings235513a2005-09-21 22:51:36 +00002640 else
2641 ac_cpp_err=
2642 fi
2643else
2644 ac_cpp_err=yes
2645fi
2646if test -z "$ac_cpp_err"; then
2647 :
2648else
2649 echo "$as_me: failed program was:" >&5
2650sed 's/^/| /' conftest.$ac_ext >&5
2651
2652 # Broken: fails on valid input.
2653continue
2654fi
2655rm -f conftest.err conftest.$ac_ext
2656
2657 # OK, works on sane cases. Now check whether non-existent headers
2658 # can be detected and how.
2659 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00002660/* confdefs.h. */
2661_ACEOF
2662cat confdefs.h >>conftest.$ac_ext
2663cat >>conftest.$ac_ext <<_ACEOF
2664/* end confdefs.h. */
2665#include <ac_nonexistent.h>
2666_ACEOF
2667if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2669 ac_status=$?
2670 grep -v '^ *+' conftest.er1 >conftest.err
2671 rm -f conftest.er1
2672 cat conftest.err >&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); } >/dev/null; then
2675 if test -s conftest.err; then
2676 ac_cpp_err=$ac_c_preproc_warn_flag
David McGrewfec49dd2005-09-23 19:34:11 +00002677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Cullen Jennings235513a2005-09-21 22:51:36 +00002678 else
2679 ac_cpp_err=
2680 fi
2681else
2682 ac_cpp_err=yes
2683fi
2684if test -z "$ac_cpp_err"; then
2685 # Broken: success on invalid input.
2686continue
2687else
2688 echo "$as_me: failed program was:" >&5
2689sed 's/^/| /' conftest.$ac_ext >&5
2690
2691 # Passes both tests.
2692ac_preproc_ok=:
2693break
2694fi
2695rm -f conftest.err conftest.$ac_ext
2696
2697done
2698# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2699rm -f conftest.err conftest.$ac_ext
2700if $ac_preproc_ok; then
2701 :
2702else
2703 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2704See \`config.log' for more details." >&5
2705echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2706See \`config.log' for more details." >&2;}
2707 { (exit 1); exit 1; }; }
2708fi
2709
2710ac_ext=c
2711ac_cpp='$CPP $CPPFLAGS'
2712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2714ac_compiler_gnu=$ac_cv_c_compiler_gnu
2715
2716
2717echo "$as_me:$LINENO: checking for egrep" >&5
2718echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2719if test "${ac_cv_prog_egrep+set}" = set; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2721else
2722 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2723 then ac_cv_prog_egrep='grep -E'
2724 else ac_cv_prog_egrep='egrep'
2725 fi
2726fi
2727echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2728echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2729 EGREP=$ac_cv_prog_egrep
2730
2731
2732echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2733echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2734if test "${ac_cv_header_stdc+set}" = set; then
2735 echo $ECHO_N "(cached) $ECHO_C" >&6
2736else
2737 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00002738/* confdefs.h. */
2739_ACEOF
2740cat confdefs.h >>conftest.$ac_ext
2741cat >>conftest.$ac_ext <<_ACEOF
2742/* end confdefs.h. */
2743#include <stdlib.h>
2744#include <stdarg.h>
2745#include <string.h>
2746#include <float.h>
2747
2748int
2749main ()
2750{
2751
2752 ;
2753 return 0;
2754}
2755_ACEOF
2756rm -f conftest.$ac_objext
2757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00002758 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00002759 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00002760 grep -v '^ *+' conftest.er1 >conftest.err
2761 rm -f conftest.er1
2762 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00002765 { ac_try='test -z "$ac_c_werror_flag"
2766 || test ! -s conftest.err'
2767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768 (eval $ac_try) 2>&5
2769 ac_status=$?
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; } &&
2772 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00002773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774 (eval $ac_try) 2>&5
2775 ac_status=$?
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; }; then
2778 ac_cv_header_stdc=yes
2779else
2780 echo "$as_me: failed program was:" >&5
2781sed 's/^/| /' conftest.$ac_ext >&5
2782
2783ac_cv_header_stdc=no
2784fi
David McGrewfec49dd2005-09-23 19:34:11 +00002785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002786
2787if test $ac_cv_header_stdc = yes; then
2788 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2789 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00002790/* confdefs.h. */
2791_ACEOF
2792cat confdefs.h >>conftest.$ac_ext
2793cat >>conftest.$ac_ext <<_ACEOF
2794/* end confdefs.h. */
2795#include <string.h>
2796
2797_ACEOF
2798if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2799 $EGREP "memchr" >/dev/null 2>&1; then
2800 :
2801else
2802 ac_cv_header_stdc=no
2803fi
2804rm -f conftest*
2805
2806fi
2807
2808if test $ac_cv_header_stdc = yes; then
2809 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2810 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00002811/* confdefs.h. */
2812_ACEOF
2813cat confdefs.h >>conftest.$ac_ext
2814cat >>conftest.$ac_ext <<_ACEOF
2815/* end confdefs.h. */
2816#include <stdlib.h>
2817
2818_ACEOF
2819if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2820 $EGREP "free" >/dev/null 2>&1; then
2821 :
2822else
2823 ac_cv_header_stdc=no
2824fi
2825rm -f conftest*
2826
2827fi
2828
2829if test $ac_cv_header_stdc = yes; then
2830 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2831 if test "$cross_compiling" = yes; then
2832 :
2833else
2834 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00002835/* confdefs.h. */
2836_ACEOF
2837cat confdefs.h >>conftest.$ac_ext
2838cat >>conftest.$ac_ext <<_ACEOF
2839/* end confdefs.h. */
2840#include <ctype.h>
2841#if ((' ' & 0x0FF) == 0x020)
2842# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2843# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2844#else
2845# define ISLOWER(c) \
David McGrewfec49dd2005-09-23 19:34:11 +00002846 (('a' <= (c) && (c) <= 'i') \
2847 || ('j' <= (c) && (c) <= 'r') \
2848 || ('s' <= (c) && (c) <= 'z'))
Cullen Jennings235513a2005-09-21 22:51:36 +00002849# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2850#endif
2851
2852#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2853int
2854main ()
2855{
2856 int i;
2857 for (i = 0; i < 256; i++)
2858 if (XOR (islower (i), ISLOWER (i))
David McGrewfec49dd2005-09-23 19:34:11 +00002859 || toupper (i) != TOUPPER (i))
Cullen Jennings235513a2005-09-21 22:51:36 +00002860 exit(2);
2861 exit (0);
2862}
2863_ACEOF
2864rm -f conftest$ac_exeext
2865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2866 (eval $ac_link) 2>&5
2867 ac_status=$?
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871 (eval $ac_try) 2>&5
2872 ac_status=$?
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); }; }; then
2875 :
2876else
2877 echo "$as_me: program exited with status $ac_status" >&5
2878echo "$as_me: failed program was:" >&5
2879sed 's/^/| /' conftest.$ac_ext >&5
2880
2881( exit $ac_status )
2882ac_cv_header_stdc=no
2883fi
David McGrewfec49dd2005-09-23 19:34:11 +00002884rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002885fi
2886fi
2887fi
2888echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2889echo "${ECHO_T}$ac_cv_header_stdc" >&6
2890if test $ac_cv_header_stdc = yes; then
2891
2892cat >>confdefs.h <<\_ACEOF
2893#define STDC_HEADERS 1
2894_ACEOF
2895
2896fi
2897
2898# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
David McGrewfec49dd2005-09-23 19:34:11 +00002909 inttypes.h stdint.h unistd.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002910do
2911as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2912echo "$as_me:$LINENO: checking for $ac_header" >&5
2913echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2914if eval "test \"\${$as_ac_Header+set}\" = set"; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
2916else
2917 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00002918/* confdefs.h. */
2919_ACEOF
2920cat confdefs.h >>conftest.$ac_ext
2921cat >>conftest.$ac_ext <<_ACEOF
2922/* end confdefs.h. */
2923$ac_includes_default
2924
2925#include <$ac_header>
2926_ACEOF
2927rm -f conftest.$ac_objext
2928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00002929 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00002930 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00002931 grep -v '^ *+' conftest.er1 >conftest.err
2932 rm -f conftest.er1
2933 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00002936 { ac_try='test -z "$ac_c_werror_flag"
2937 || test ! -s conftest.err'
2938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2939 (eval $ac_try) 2>&5
2940 ac_status=$?
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }; } &&
2943 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00002944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945 (eval $ac_try) 2>&5
2946 ac_status=$?
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; }; then
2949 eval "$as_ac_Header=yes"
2950else
2951 echo "$as_me: failed program was:" >&5
2952sed 's/^/| /' conftest.$ac_ext >&5
2953
2954eval "$as_ac_Header=no"
2955fi
David McGrewfec49dd2005-09-23 19:34:11 +00002956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002957fi
2958echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2959echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2960if test `eval echo '${'$as_ac_Header'}'` = yes; then
2961 cat >>confdefs.h <<_ACEOF
2962#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2963_ACEOF
2964
2965fi
2966
2967done
2968
2969
2970
2971for ac_header in stdlib.h
2972do
2973as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2974if eval "test \"\${$as_ac_Header+set}\" = set"; then
2975 echo "$as_me:$LINENO: checking for $ac_header" >&5
2976echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2977if eval "test \"\${$as_ac_Header+set}\" = set"; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2979fi
2980echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2981echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2982else
2983 # Is the header compilable?
2984echo "$as_me:$LINENO: checking $ac_header usability" >&5
2985echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2986cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00002987/* confdefs.h. */
2988_ACEOF
2989cat confdefs.h >>conftest.$ac_ext
2990cat >>conftest.$ac_ext <<_ACEOF
2991/* end confdefs.h. */
2992$ac_includes_default
2993#include <$ac_header>
2994_ACEOF
2995rm -f conftest.$ac_objext
2996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00002997 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00002998 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00002999 grep -v '^ *+' conftest.er1 >conftest.err
3000 rm -f conftest.er1
3001 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00003002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00003004 { ac_try='test -z "$ac_c_werror_flag"
3005 || test ! -s conftest.err'
3006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007 (eval $ac_try) 2>&5
3008 ac_status=$?
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }; } &&
3011 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00003012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013 (eval $ac_try) 2>&5
3014 ac_status=$?
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }; }; then
3017 ac_header_compiler=yes
3018else
3019 echo "$as_me: failed program was:" >&5
3020sed 's/^/| /' conftest.$ac_ext >&5
3021
3022ac_header_compiler=no
3023fi
David McGrewfec49dd2005-09-23 19:34:11 +00003024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003025echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3026echo "${ECHO_T}$ac_header_compiler" >&6
3027
3028# Is the header present?
3029echo "$as_me:$LINENO: checking $ac_header presence" >&5
3030echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3031cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00003032/* confdefs.h. */
3033_ACEOF
3034cat confdefs.h >>conftest.$ac_ext
3035cat >>conftest.$ac_ext <<_ACEOF
3036/* end confdefs.h. */
3037#include <$ac_header>
3038_ACEOF
3039if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3041 ac_status=$?
3042 grep -v '^ *+' conftest.er1 >conftest.err
3043 rm -f conftest.er1
3044 cat conftest.err >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); } >/dev/null; then
3047 if test -s conftest.err; then
3048 ac_cpp_err=$ac_c_preproc_warn_flag
David McGrewfec49dd2005-09-23 19:34:11 +00003049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Cullen Jennings235513a2005-09-21 22:51:36 +00003050 else
3051 ac_cpp_err=
3052 fi
3053else
3054 ac_cpp_err=yes
3055fi
3056if test -z "$ac_cpp_err"; then
3057 ac_header_preproc=yes
3058else
3059 echo "$as_me: failed program was:" >&5
3060sed 's/^/| /' conftest.$ac_ext >&5
3061
3062 ac_header_preproc=no
3063fi
3064rm -f conftest.err conftest.$ac_ext
3065echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3066echo "${ECHO_T}$ac_header_preproc" >&6
3067
3068# So? What about this header?
David McGrewfec49dd2005-09-23 19:34:11 +00003069case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3070 yes:no: )
Cullen Jennings235513a2005-09-21 22:51:36 +00003071 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3072echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00003073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3074echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3075 ac_header_preproc=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00003076 ;;
David McGrewfec49dd2005-09-23 19:34:11 +00003077 no:yes:* )
Cullen Jennings235513a2005-09-21 22:51:36 +00003078 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3079echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00003080 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3081echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3082 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3083echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3084 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3085echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00003086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3087echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00003088 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3089echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00003090 (
3091 cat <<\_ASBOX
David McGrewfec49dd2005-09-23 19:34:11 +00003092## ------------------------------------------ ##
3093## Report this to the AC_PACKAGE_NAME lists. ##
3094## ------------------------------------------ ##
Cullen Jennings235513a2005-09-21 22:51:36 +00003095_ASBOX
3096 ) |
3097 sed "s/^/$as_me: WARNING: /" >&2
3098 ;;
3099esac
3100echo "$as_me:$LINENO: checking for $ac_header" >&5
3101echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3102if eval "test \"\${$as_ac_Header+set}\" = set"; then
3103 echo $ECHO_N "(cached) $ECHO_C" >&6
3104else
David McGrewfec49dd2005-09-23 19:34:11 +00003105 eval "$as_ac_Header=\$ac_header_preproc"
Cullen Jennings235513a2005-09-21 22:51:36 +00003106fi
3107echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3108echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3109
3110fi
3111if test `eval echo '${'$as_ac_Header'}'` = yes; then
3112 cat >>confdefs.h <<_ACEOF
3113#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3114_ACEOF
3115
3116fi
3117
3118done
3119
3120
3121for ac_header in unistd.h
3122do
3123as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3124if eval "test \"\${$as_ac_Header+set}\" = set"; then
3125 echo "$as_me:$LINENO: checking for $ac_header" >&5
3126echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3127if eval "test \"\${$as_ac_Header+set}\" = set"; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3129fi
3130echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3131echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3132else
3133 # Is the header compilable?
3134echo "$as_me:$LINENO: checking $ac_header usability" >&5
3135echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3136cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00003137/* confdefs.h. */
3138_ACEOF
3139cat confdefs.h >>conftest.$ac_ext
3140cat >>conftest.$ac_ext <<_ACEOF
3141/* end confdefs.h. */
3142$ac_includes_default
3143#include <$ac_header>
3144_ACEOF
3145rm -f conftest.$ac_objext
3146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00003147 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00003148 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00003149 grep -v '^ *+' conftest.er1 >conftest.err
3150 rm -f conftest.er1
3151 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00003152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00003154 { ac_try='test -z "$ac_c_werror_flag"
3155 || test ! -s conftest.err'
3156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157 (eval $ac_try) 2>&5
3158 ac_status=$?
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }; } &&
3161 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00003162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3163 (eval $ac_try) 2>&5
3164 ac_status=$?
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); }; }; then
3167 ac_header_compiler=yes
3168else
3169 echo "$as_me: failed program was:" >&5
3170sed 's/^/| /' conftest.$ac_ext >&5
3171
3172ac_header_compiler=no
3173fi
David McGrewfec49dd2005-09-23 19:34:11 +00003174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003175echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3176echo "${ECHO_T}$ac_header_compiler" >&6
3177
3178# Is the header present?
3179echo "$as_me:$LINENO: checking $ac_header presence" >&5
3180echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3181cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00003182/* confdefs.h. */
3183_ACEOF
3184cat confdefs.h >>conftest.$ac_ext
3185cat >>conftest.$ac_ext <<_ACEOF
3186/* end confdefs.h. */
3187#include <$ac_header>
3188_ACEOF
3189if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3191 ac_status=$?
3192 grep -v '^ *+' conftest.er1 >conftest.err
3193 rm -f conftest.er1
3194 cat conftest.err >&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); } >/dev/null; then
3197 if test -s conftest.err; then
3198 ac_cpp_err=$ac_c_preproc_warn_flag
David McGrewfec49dd2005-09-23 19:34:11 +00003199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Cullen Jennings235513a2005-09-21 22:51:36 +00003200 else
3201 ac_cpp_err=
3202 fi
3203else
3204 ac_cpp_err=yes
3205fi
3206if test -z "$ac_cpp_err"; then
3207 ac_header_preproc=yes
3208else
3209 echo "$as_me: failed program was:" >&5
3210sed 's/^/| /' conftest.$ac_ext >&5
3211
3212 ac_header_preproc=no
3213fi
3214rm -f conftest.err conftest.$ac_ext
3215echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3216echo "${ECHO_T}$ac_header_preproc" >&6
3217
3218# So? What about this header?
David McGrewfec49dd2005-09-23 19:34:11 +00003219case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3220 yes:no: )
Cullen Jennings235513a2005-09-21 22:51:36 +00003221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3222echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00003223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3224echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3225 ac_header_preproc=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00003226 ;;
David McGrewfec49dd2005-09-23 19:34:11 +00003227 no:yes:* )
Cullen Jennings235513a2005-09-21 22:51:36 +00003228 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3229echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00003230 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3231echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3232 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3233echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3234 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3235echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00003236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3237echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00003238 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3239echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00003240 (
3241 cat <<\_ASBOX
David McGrewfec49dd2005-09-23 19:34:11 +00003242## ------------------------------------------ ##
3243## Report this to the AC_PACKAGE_NAME lists. ##
3244## ------------------------------------------ ##
Cullen Jennings235513a2005-09-21 22:51:36 +00003245_ASBOX
3246 ) |
3247 sed "s/^/$as_me: WARNING: /" >&2
3248 ;;
3249esac
3250echo "$as_me:$LINENO: checking for $ac_header" >&5
3251echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3252if eval "test \"\${$as_ac_Header+set}\" = set"; then
3253 echo $ECHO_N "(cached) $ECHO_C" >&6
3254else
David McGrewfec49dd2005-09-23 19:34:11 +00003255 eval "$as_ac_Header=\$ac_header_preproc"
Cullen Jennings235513a2005-09-21 22:51:36 +00003256fi
3257echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3258echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3259
3260fi
3261if test `eval echo '${'$as_ac_Header'}'` = yes; then
3262 cat >>confdefs.h <<_ACEOF
3263#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3264_ACEOF
3265
3266fi
3267
3268done
3269
3270
3271for ac_header in stdint.h
3272do
3273as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3274if eval "test \"\${$as_ac_Header+set}\" = set"; then
3275 echo "$as_me:$LINENO: checking for $ac_header" >&5
3276echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3277if eval "test \"\${$as_ac_Header+set}\" = set"; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3279fi
3280echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3281echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3282else
3283 # Is the header compilable?
3284echo "$as_me:$LINENO: checking $ac_header usability" >&5
3285echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3286cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00003287/* confdefs.h. */
3288_ACEOF
3289cat confdefs.h >>conftest.$ac_ext
3290cat >>conftest.$ac_ext <<_ACEOF
3291/* end confdefs.h. */
3292$ac_includes_default
3293#include <$ac_header>
3294_ACEOF
3295rm -f conftest.$ac_objext
3296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00003297 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00003298 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00003299 grep -v '^ *+' conftest.er1 >conftest.err
3300 rm -f conftest.er1
3301 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00003302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00003304 { ac_try='test -z "$ac_c_werror_flag"
3305 || test ! -s conftest.err'
3306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3307 (eval $ac_try) 2>&5
3308 ac_status=$?
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); }; } &&
3311 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00003312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3313 (eval $ac_try) 2>&5
3314 ac_status=$?
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); }; }; then
3317 ac_header_compiler=yes
3318else
3319 echo "$as_me: failed program was:" >&5
3320sed 's/^/| /' conftest.$ac_ext >&5
3321
3322ac_header_compiler=no
3323fi
David McGrewfec49dd2005-09-23 19:34:11 +00003324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003325echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3326echo "${ECHO_T}$ac_header_compiler" >&6
3327
3328# Is the header present?
3329echo "$as_me:$LINENO: checking $ac_header presence" >&5
3330echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3331cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00003332/* confdefs.h. */
3333_ACEOF
3334cat confdefs.h >>conftest.$ac_ext
3335cat >>conftest.$ac_ext <<_ACEOF
3336/* end confdefs.h. */
3337#include <$ac_header>
3338_ACEOF
3339if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3341 ac_status=$?
3342 grep -v '^ *+' conftest.er1 >conftest.err
3343 rm -f conftest.er1
3344 cat conftest.err >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } >/dev/null; then
3347 if test -s conftest.err; then
3348 ac_cpp_err=$ac_c_preproc_warn_flag
David McGrewfec49dd2005-09-23 19:34:11 +00003349 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Cullen Jennings235513a2005-09-21 22:51:36 +00003350 else
3351 ac_cpp_err=
3352 fi
3353else
3354 ac_cpp_err=yes
3355fi
3356if test -z "$ac_cpp_err"; then
3357 ac_header_preproc=yes
3358else
3359 echo "$as_me: failed program was:" >&5
3360sed 's/^/| /' conftest.$ac_ext >&5
3361
3362 ac_header_preproc=no
3363fi
3364rm -f conftest.err conftest.$ac_ext
3365echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3366echo "${ECHO_T}$ac_header_preproc" >&6
3367
3368# So? What about this header?
David McGrewfec49dd2005-09-23 19:34:11 +00003369case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3370 yes:no: )
Cullen Jennings235513a2005-09-21 22:51:36 +00003371 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3372echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00003373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3374echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3375 ac_header_preproc=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00003376 ;;
David McGrewfec49dd2005-09-23 19:34:11 +00003377 no:yes:* )
Cullen Jennings235513a2005-09-21 22:51:36 +00003378 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3379echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00003380 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3381echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3382 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3383echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3384 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3385echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00003386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3387echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00003388 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3389echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00003390 (
3391 cat <<\_ASBOX
David McGrewfec49dd2005-09-23 19:34:11 +00003392## ------------------------------------------ ##
3393## Report this to the AC_PACKAGE_NAME lists. ##
3394## ------------------------------------------ ##
Cullen Jennings235513a2005-09-21 22:51:36 +00003395_ASBOX
3396 ) |
3397 sed "s/^/$as_me: WARNING: /" >&2
3398 ;;
3399esac
3400echo "$as_me:$LINENO: checking for $ac_header" >&5
3401echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3402if eval "test \"\${$as_ac_Header+set}\" = set"; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3404else
David McGrewfec49dd2005-09-23 19:34:11 +00003405 eval "$as_ac_Header=\$ac_header_preproc"
Cullen Jennings235513a2005-09-21 22:51:36 +00003406fi
3407echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3408echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3409
3410fi
3411if test `eval echo '${'$as_ac_Header'}'` = yes; then
3412 cat >>confdefs.h <<_ACEOF
3413#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3414_ACEOF
3415
3416fi
3417
3418done
3419
3420
3421for ac_header in sys/uio.h
3422do
3423as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3424if eval "test \"\${$as_ac_Header+set}\" = set"; then
3425 echo "$as_me:$LINENO: checking for $ac_header" >&5
3426echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3427if eval "test \"\${$as_ac_Header+set}\" = set"; then
3428 echo $ECHO_N "(cached) $ECHO_C" >&6
3429fi
3430echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3431echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3432else
3433 # Is the header compilable?
3434echo "$as_me:$LINENO: checking $ac_header usability" >&5
3435echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3436cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00003437/* confdefs.h. */
3438_ACEOF
3439cat confdefs.h >>conftest.$ac_ext
3440cat >>conftest.$ac_ext <<_ACEOF
3441/* end confdefs.h. */
3442$ac_includes_default
3443#include <$ac_header>
3444_ACEOF
3445rm -f conftest.$ac_objext
3446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00003447 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00003448 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00003449 grep -v '^ *+' conftest.er1 >conftest.err
3450 rm -f conftest.er1
3451 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00003452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00003454 { ac_try='test -z "$ac_c_werror_flag"
3455 || test ! -s conftest.err'
3456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457 (eval $ac_try) 2>&5
3458 ac_status=$?
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); }; } &&
3461 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00003462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463 (eval $ac_try) 2>&5
3464 ac_status=$?
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); }; }; then
3467 ac_header_compiler=yes
3468else
3469 echo "$as_me: failed program was:" >&5
3470sed 's/^/| /' conftest.$ac_ext >&5
3471
3472ac_header_compiler=no
3473fi
David McGrewfec49dd2005-09-23 19:34:11 +00003474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003475echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3476echo "${ECHO_T}$ac_header_compiler" >&6
3477
3478# Is the header present?
3479echo "$as_me:$LINENO: checking $ac_header presence" >&5
3480echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3481cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00003482/* confdefs.h. */
3483_ACEOF
3484cat confdefs.h >>conftest.$ac_ext
3485cat >>conftest.$ac_ext <<_ACEOF
3486/* end confdefs.h. */
3487#include <$ac_header>
3488_ACEOF
3489if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3491 ac_status=$?
3492 grep -v '^ *+' conftest.er1 >conftest.err
3493 rm -f conftest.er1
3494 cat conftest.err >&5
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); } >/dev/null; then
3497 if test -s conftest.err; then
3498 ac_cpp_err=$ac_c_preproc_warn_flag
David McGrewfec49dd2005-09-23 19:34:11 +00003499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Cullen Jennings235513a2005-09-21 22:51:36 +00003500 else
3501 ac_cpp_err=
3502 fi
3503else
3504 ac_cpp_err=yes
3505fi
3506if test -z "$ac_cpp_err"; then
3507 ac_header_preproc=yes
3508else
3509 echo "$as_me: failed program was:" >&5
3510sed 's/^/| /' conftest.$ac_ext >&5
3511
3512 ac_header_preproc=no
3513fi
3514rm -f conftest.err conftest.$ac_ext
3515echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3516echo "${ECHO_T}$ac_header_preproc" >&6
3517
3518# So? What about this header?
David McGrewfec49dd2005-09-23 19:34:11 +00003519case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3520 yes:no: )
Cullen Jennings235513a2005-09-21 22:51:36 +00003521 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3522echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00003523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3524echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3525 ac_header_preproc=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00003526 ;;
David McGrewfec49dd2005-09-23 19:34:11 +00003527 no:yes:* )
Cullen Jennings235513a2005-09-21 22:51:36 +00003528 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3529echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00003530 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3531echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3532 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3533echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3534 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3535echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00003536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3537echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00003538 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3539echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00003540 (
3541 cat <<\_ASBOX
David McGrewfec49dd2005-09-23 19:34:11 +00003542## ------------------------------------------ ##
3543## Report this to the AC_PACKAGE_NAME lists. ##
3544## ------------------------------------------ ##
Cullen Jennings235513a2005-09-21 22:51:36 +00003545_ASBOX
3546 ) |
3547 sed "s/^/$as_me: WARNING: /" >&2
3548 ;;
3549esac
3550echo "$as_me:$LINENO: checking for $ac_header" >&5
3551echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3552if eval "test \"\${$as_ac_Header+set}\" = set"; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3554else
David McGrewfec49dd2005-09-23 19:34:11 +00003555 eval "$as_ac_Header=\$ac_header_preproc"
Cullen Jennings235513a2005-09-21 22:51:36 +00003556fi
3557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3558echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3559
3560fi
3561if test `eval echo '${'$as_ac_Header'}'` = yes; then
3562 cat >>confdefs.h <<_ACEOF
3563#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3564_ACEOF
3565
3566fi
3567
3568done
3569
3570
David McGrewd1694b52005-09-29 10:59:33 +00003571for ac_header in inttypes.h
3572do
3573as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3574if eval "test \"\${$as_ac_Header+set}\" = set"; then
3575 echo "$as_me:$LINENO: checking for $ac_header" >&5
3576echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3577if eval "test \"\${$as_ac_Header+set}\" = set"; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3579fi
3580echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3581echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3582else
3583 # Is the header compilable?
3584echo "$as_me:$LINENO: checking $ac_header usability" >&5
3585echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3586cat >conftest.$ac_ext <<_ACEOF
3587/* confdefs.h. */
3588_ACEOF
3589cat confdefs.h >>conftest.$ac_ext
3590cat >>conftest.$ac_ext <<_ACEOF
3591/* end confdefs.h. */
3592$ac_includes_default
3593#include <$ac_header>
3594_ACEOF
3595rm -f conftest.$ac_objext
3596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3597 (eval $ac_compile) 2>conftest.er1
3598 ac_status=$?
3599 grep -v '^ *+' conftest.er1 >conftest.err
3600 rm -f conftest.er1
3601 cat conftest.err >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } &&
3604 { ac_try='test -z "$ac_c_werror_flag"
3605 || test ! -s conftest.err'
3606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607 (eval $ac_try) 2>&5
3608 ac_status=$?
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; } &&
3611 { ac_try='test -s conftest.$ac_objext'
3612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613 (eval $ac_try) 2>&5
3614 ac_status=$?
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); }; }; then
3617 ac_header_compiler=yes
3618else
3619 echo "$as_me: failed program was:" >&5
3620sed 's/^/| /' conftest.$ac_ext >&5
3621
3622ac_header_compiler=no
3623fi
3624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3625echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3626echo "${ECHO_T}$ac_header_compiler" >&6
3627
3628# Is the header present?
3629echo "$as_me:$LINENO: checking $ac_header presence" >&5
3630echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3631cat >conftest.$ac_ext <<_ACEOF
3632/* confdefs.h. */
3633_ACEOF
3634cat confdefs.h >>conftest.$ac_ext
3635cat >>conftest.$ac_ext <<_ACEOF
3636/* end confdefs.h. */
3637#include <$ac_header>
3638_ACEOF
3639if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3640 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3641 ac_status=$?
3642 grep -v '^ *+' conftest.er1 >conftest.err
3643 rm -f conftest.er1
3644 cat conftest.err >&5
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); } >/dev/null; then
3647 if test -s conftest.err; then
3648 ac_cpp_err=$ac_c_preproc_warn_flag
3649 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3650 else
3651 ac_cpp_err=
3652 fi
3653else
3654 ac_cpp_err=yes
3655fi
3656if test -z "$ac_cpp_err"; then
3657 ac_header_preproc=yes
3658else
3659 echo "$as_me: failed program was:" >&5
3660sed 's/^/| /' conftest.$ac_ext >&5
3661
3662 ac_header_preproc=no
3663fi
3664rm -f conftest.err conftest.$ac_ext
3665echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3666echo "${ECHO_T}$ac_header_preproc" >&6
3667
3668# So? What about this header?
3669case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3670 yes:no: )
3671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3672echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3674echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3675 ac_header_preproc=yes
3676 ;;
3677 no:yes:* )
3678 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3679echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3680 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3681echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3682 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3683echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3684 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3685echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3687echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3688 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3689echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3690 (
3691 cat <<\_ASBOX
3692## ------------------------------------------ ##
3693## Report this to the AC_PACKAGE_NAME lists. ##
3694## ------------------------------------------ ##
3695_ASBOX
3696 ) |
3697 sed "s/^/$as_me: WARNING: /" >&2
3698 ;;
3699esac
3700echo "$as_me:$LINENO: checking for $ac_header" >&5
3701echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3702if eval "test \"\${$as_ac_Header+set}\" = set"; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3704else
3705 eval "$as_ac_Header=\$ac_header_preproc"
3706fi
3707echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3708echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3709
3710fi
3711if test `eval echo '${'$as_ac_Header'}'` = yes; then
3712 cat >>confdefs.h <<_ACEOF
3713#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3714_ACEOF
3715
3716fi
3717
3718done
3719
3720
Cullen Jennings235513a2005-09-21 22:51:36 +00003721for ac_header in machine/types.h
3722do
3723as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3724if eval "test \"\${$as_ac_Header+set}\" = set"; then
3725 echo "$as_me:$LINENO: checking for $ac_header" >&5
3726echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3727if eval "test \"\${$as_ac_Header+set}\" = set"; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3729fi
3730echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3731echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3732else
3733 # Is the header compilable?
3734echo "$as_me:$LINENO: checking $ac_header usability" >&5
3735echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3736cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00003737/* confdefs.h. */
3738_ACEOF
3739cat confdefs.h >>conftest.$ac_ext
3740cat >>conftest.$ac_ext <<_ACEOF
3741/* end confdefs.h. */
3742$ac_includes_default
3743#include <$ac_header>
3744_ACEOF
3745rm -f conftest.$ac_objext
3746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00003747 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00003748 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00003749 grep -v '^ *+' conftest.er1 >conftest.err
3750 rm -f conftest.er1
3751 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00003752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00003754 { ac_try='test -z "$ac_c_werror_flag"
3755 || test ! -s conftest.err'
3756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3757 (eval $ac_try) 2>&5
3758 ac_status=$?
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); }; } &&
3761 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00003762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763 (eval $ac_try) 2>&5
3764 ac_status=$?
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); }; }; then
3767 ac_header_compiler=yes
3768else
3769 echo "$as_me: failed program was:" >&5
3770sed 's/^/| /' conftest.$ac_ext >&5
3771
3772ac_header_compiler=no
3773fi
David McGrewfec49dd2005-09-23 19:34:11 +00003774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003775echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3776echo "${ECHO_T}$ac_header_compiler" >&6
3777
3778# Is the header present?
3779echo "$as_me:$LINENO: checking $ac_header presence" >&5
3780echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3781cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00003782/* confdefs.h. */
3783_ACEOF
3784cat confdefs.h >>conftest.$ac_ext
3785cat >>conftest.$ac_ext <<_ACEOF
3786/* end confdefs.h. */
3787#include <$ac_header>
3788_ACEOF
3789if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3791 ac_status=$?
3792 grep -v '^ *+' conftest.er1 >conftest.err
3793 rm -f conftest.er1
3794 cat conftest.err >&5
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); } >/dev/null; then
3797 if test -s conftest.err; then
3798 ac_cpp_err=$ac_c_preproc_warn_flag
David McGrewfec49dd2005-09-23 19:34:11 +00003799 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Cullen Jennings235513a2005-09-21 22:51:36 +00003800 else
3801 ac_cpp_err=
3802 fi
3803else
3804 ac_cpp_err=yes
3805fi
3806if test -z "$ac_cpp_err"; then
3807 ac_header_preproc=yes
3808else
3809 echo "$as_me: failed program was:" >&5
3810sed 's/^/| /' conftest.$ac_ext >&5
3811
3812 ac_header_preproc=no
3813fi
3814rm -f conftest.err conftest.$ac_ext
3815echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3816echo "${ECHO_T}$ac_header_preproc" >&6
3817
3818# So? What about this header?
David McGrewfec49dd2005-09-23 19:34:11 +00003819case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3820 yes:no: )
Cullen Jennings235513a2005-09-21 22:51:36 +00003821 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3822echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00003823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3824echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3825 ac_header_preproc=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00003826 ;;
David McGrewfec49dd2005-09-23 19:34:11 +00003827 no:yes:* )
Cullen Jennings235513a2005-09-21 22:51:36 +00003828 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3829echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00003830 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3831echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3832 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3833echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3834 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3835echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00003836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3837echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00003838 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3839echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00003840 (
3841 cat <<\_ASBOX
David McGrewfec49dd2005-09-23 19:34:11 +00003842## ------------------------------------------ ##
3843## Report this to the AC_PACKAGE_NAME lists. ##
3844## ------------------------------------------ ##
Cullen Jennings235513a2005-09-21 22:51:36 +00003845_ASBOX
3846 ) |
3847 sed "s/^/$as_me: WARNING: /" >&2
3848 ;;
3849esac
3850echo "$as_me:$LINENO: checking for $ac_header" >&5
3851echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3852if eval "test \"\${$as_ac_Header+set}\" = set"; then
3853 echo $ECHO_N "(cached) $ECHO_C" >&6
3854else
David McGrewfec49dd2005-09-23 19:34:11 +00003855 eval "$as_ac_Header=\$ac_header_preproc"
Cullen Jennings235513a2005-09-21 22:51:36 +00003856fi
3857echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3858echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3859
3860fi
3861if test `eval echo '${'$as_ac_Header'}'` = yes; then
3862 cat >>confdefs.h <<_ACEOF
3863#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3864_ACEOF
3865
3866fi
3867
3868done
3869
3870
3871for ac_header in sys/int_types.h
3872do
3873as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3874if eval "test \"\${$as_ac_Header+set}\" = set"; then
3875 echo "$as_me:$LINENO: checking for $ac_header" >&5
3876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3877if eval "test \"\${$as_ac_Header+set}\" = set"; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3879fi
3880echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3881echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3882else
3883 # Is the header compilable?
3884echo "$as_me:$LINENO: checking $ac_header usability" >&5
3885echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3886cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00003887/* confdefs.h. */
3888_ACEOF
3889cat confdefs.h >>conftest.$ac_ext
3890cat >>conftest.$ac_ext <<_ACEOF
3891/* end confdefs.h. */
3892$ac_includes_default
3893#include <$ac_header>
3894_ACEOF
3895rm -f conftest.$ac_objext
3896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00003897 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00003898 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00003899 grep -v '^ *+' conftest.er1 >conftest.err
3900 rm -f conftest.er1
3901 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00003902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00003904 { ac_try='test -z "$ac_c_werror_flag"
3905 || test ! -s conftest.err'
3906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3907 (eval $ac_try) 2>&5
3908 ac_status=$?
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); }; } &&
3911 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00003912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3913 (eval $ac_try) 2>&5
3914 ac_status=$?
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); }; }; then
3917 ac_header_compiler=yes
3918else
3919 echo "$as_me: failed program was:" >&5
3920sed 's/^/| /' conftest.$ac_ext >&5
3921
3922ac_header_compiler=no
3923fi
David McGrewfec49dd2005-09-23 19:34:11 +00003924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003925echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3926echo "${ECHO_T}$ac_header_compiler" >&6
3927
3928# Is the header present?
3929echo "$as_me:$LINENO: checking $ac_header presence" >&5
3930echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3931cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00003932/* confdefs.h. */
3933_ACEOF
3934cat confdefs.h >>conftest.$ac_ext
3935cat >>conftest.$ac_ext <<_ACEOF
3936/* end confdefs.h. */
3937#include <$ac_header>
3938_ACEOF
3939if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3941 ac_status=$?
3942 grep -v '^ *+' conftest.er1 >conftest.err
3943 rm -f conftest.er1
3944 cat conftest.err >&5
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); } >/dev/null; then
3947 if test -s conftest.err; then
3948 ac_cpp_err=$ac_c_preproc_warn_flag
David McGrewfec49dd2005-09-23 19:34:11 +00003949 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Cullen Jennings235513a2005-09-21 22:51:36 +00003950 else
3951 ac_cpp_err=
3952 fi
3953else
3954 ac_cpp_err=yes
3955fi
3956if test -z "$ac_cpp_err"; then
3957 ac_header_preproc=yes
3958else
3959 echo "$as_me: failed program was:" >&5
3960sed 's/^/| /' conftest.$ac_ext >&5
3961
3962 ac_header_preproc=no
3963fi
3964rm -f conftest.err conftest.$ac_ext
3965echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3966echo "${ECHO_T}$ac_header_preproc" >&6
3967
3968# So? What about this header?
David McGrewfec49dd2005-09-23 19:34:11 +00003969case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3970 yes:no: )
Cullen Jennings235513a2005-09-21 22:51:36 +00003971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3972echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00003973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3974echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3975 ac_header_preproc=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00003976 ;;
David McGrewfec49dd2005-09-23 19:34:11 +00003977 no:yes:* )
Cullen Jennings235513a2005-09-21 22:51:36 +00003978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3979echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00003980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3981echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3982 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3983echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3984 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3985echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00003986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3987echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00003988 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3989echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00003990 (
3991 cat <<\_ASBOX
David McGrewfec49dd2005-09-23 19:34:11 +00003992## ------------------------------------------ ##
3993## Report this to the AC_PACKAGE_NAME lists. ##
3994## ------------------------------------------ ##
Cullen Jennings235513a2005-09-21 22:51:36 +00003995_ASBOX
3996 ) |
3997 sed "s/^/$as_me: WARNING: /" >&2
3998 ;;
3999esac
4000echo "$as_me:$LINENO: checking for $ac_header" >&5
4001echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4002if eval "test \"\${$as_ac_Header+set}\" = set"; then
4003 echo $ECHO_N "(cached) $ECHO_C" >&6
4004else
David McGrewfec49dd2005-09-23 19:34:11 +00004005 eval "$as_ac_Header=\$ac_header_preproc"
Cullen Jennings235513a2005-09-21 22:51:36 +00004006fi
4007echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4008echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4009
4010fi
4011if test `eval echo '${'$as_ac_Header'}'` = yes; then
4012 cat >>confdefs.h <<_ACEOF
4013#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4014_ACEOF
4015
4016fi
4017
4018done
4019
4020
4021
4022for ac_header in syslog.h
4023do
4024as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4025if eval "test \"\${$as_ac_Header+set}\" = set"; then
4026 echo "$as_me:$LINENO: checking for $ac_header" >&5
4027echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4028if eval "test \"\${$as_ac_Header+set}\" = set"; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4030fi
4031echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4032echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4033else
4034 # Is the header compilable?
4035echo "$as_me:$LINENO: checking $ac_header usability" >&5
4036echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4037cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00004038/* confdefs.h. */
4039_ACEOF
4040cat confdefs.h >>conftest.$ac_ext
4041cat >>conftest.$ac_ext <<_ACEOF
4042/* end confdefs.h. */
4043$ac_includes_default
4044#include <$ac_header>
4045_ACEOF
4046rm -f conftest.$ac_objext
4047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00004048 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00004049 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00004050 grep -v '^ *+' conftest.er1 >conftest.err
4051 rm -f conftest.er1
4052 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00004053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00004055 { ac_try='test -z "$ac_c_werror_flag"
4056 || test ! -s conftest.err'
4057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058 (eval $ac_try) 2>&5
4059 ac_status=$?
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; } &&
4062 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00004063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4064 (eval $ac_try) 2>&5
4065 ac_status=$?
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); }; }; then
4068 ac_header_compiler=yes
4069else
4070 echo "$as_me: failed program was:" >&5
4071sed 's/^/| /' conftest.$ac_ext >&5
4072
4073ac_header_compiler=no
4074fi
David McGrewfec49dd2005-09-23 19:34:11 +00004075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004076echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4077echo "${ECHO_T}$ac_header_compiler" >&6
4078
4079# Is the header present?
4080echo "$as_me:$LINENO: checking $ac_header presence" >&5
4081echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4082cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00004083/* confdefs.h. */
4084_ACEOF
4085cat confdefs.h >>conftest.$ac_ext
4086cat >>conftest.$ac_ext <<_ACEOF
4087/* end confdefs.h. */
4088#include <$ac_header>
4089_ACEOF
4090if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4092 ac_status=$?
4093 grep -v '^ *+' conftest.er1 >conftest.err
4094 rm -f conftest.er1
4095 cat conftest.err >&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); } >/dev/null; then
4098 if test -s conftest.err; then
4099 ac_cpp_err=$ac_c_preproc_warn_flag
David McGrewfec49dd2005-09-23 19:34:11 +00004100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Cullen Jennings235513a2005-09-21 22:51:36 +00004101 else
4102 ac_cpp_err=
4103 fi
4104else
4105 ac_cpp_err=yes
4106fi
4107if test -z "$ac_cpp_err"; then
4108 ac_header_preproc=yes
4109else
4110 echo "$as_me: failed program was:" >&5
4111sed 's/^/| /' conftest.$ac_ext >&5
4112
4113 ac_header_preproc=no
4114fi
4115rm -f conftest.err conftest.$ac_ext
4116echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4117echo "${ECHO_T}$ac_header_preproc" >&6
4118
4119# So? What about this header?
David McGrewfec49dd2005-09-23 19:34:11 +00004120case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4121 yes:no: )
Cullen Jennings235513a2005-09-21 22:51:36 +00004122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4123echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00004124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4125echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4126 ac_header_preproc=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00004127 ;;
David McGrewfec49dd2005-09-23 19:34:11 +00004128 no:yes:* )
Cullen Jennings235513a2005-09-21 22:51:36 +00004129 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4130echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00004131 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4132echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4133 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4134echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4135 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4136echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00004137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4138echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00004139 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4140echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00004141 (
4142 cat <<\_ASBOX
David McGrewfec49dd2005-09-23 19:34:11 +00004143## ------------------------------------------ ##
4144## Report this to the AC_PACKAGE_NAME lists. ##
4145## ------------------------------------------ ##
Cullen Jennings235513a2005-09-21 22:51:36 +00004146_ASBOX
4147 ) |
4148 sed "s/^/$as_me: WARNING: /" >&2
4149 ;;
4150esac
4151echo "$as_me:$LINENO: checking for $ac_header" >&5
4152echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4153if eval "test \"\${$as_ac_Header+set}\" = set"; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4155else
David McGrewfec49dd2005-09-23 19:34:11 +00004156 eval "$as_ac_Header=\$ac_header_preproc"
Cullen Jennings235513a2005-09-21 22:51:36 +00004157fi
4158echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4159echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4160
4161fi
4162if test `eval echo '${'$as_ac_Header'}'` = yes; then
4163 cat >>confdefs.h <<_ACEOF
4164#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4165_ACEOF
4166
4167fi
4168
4169done
4170
4171
David McGrewd1694b52005-09-29 10:59:33 +00004172echo "$as_me:$LINENO: checking for int8_t" >&5
4173echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
4174if test "${ac_cv_type_int8_t+set}" = set; then
Cullen Jennings235513a2005-09-21 22:51:36 +00004175 echo $ECHO_N "(cached) $ECHO_C" >&6
4176else
4177 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00004178/* confdefs.h. */
4179_ACEOF
4180cat confdefs.h >>conftest.$ac_ext
4181cat >>conftest.$ac_ext <<_ACEOF
4182/* end confdefs.h. */
4183$ac_includes_default
4184int
4185main ()
4186{
David McGrewd1694b52005-09-29 10:59:33 +00004187if ((int8_t *) 0)
Cullen Jennings235513a2005-09-21 22:51:36 +00004188 return 0;
David McGrewd1694b52005-09-29 10:59:33 +00004189if (sizeof (int8_t))
Cullen Jennings235513a2005-09-21 22:51:36 +00004190 return 0;
4191 ;
4192 return 0;
4193}
4194_ACEOF
4195rm -f conftest.$ac_objext
4196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00004197 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00004198 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00004199 grep -v '^ *+' conftest.er1 >conftest.err
4200 rm -f conftest.er1
4201 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00004202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00004204 { ac_try='test -z "$ac_c_werror_flag"
4205 || test ! -s conftest.err'
4206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207 (eval $ac_try) 2>&5
4208 ac_status=$?
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }; } &&
4211 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00004212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213 (eval $ac_try) 2>&5
4214 ac_status=$?
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); }; }; then
David McGrewd1694b52005-09-29 10:59:33 +00004217 ac_cv_type_int8_t=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00004218else
4219 echo "$as_me: failed program was:" >&5
4220sed 's/^/| /' conftest.$ac_ext >&5
4221
David McGrewd1694b52005-09-29 10:59:33 +00004222ac_cv_type_int8_t=no
Cullen Jennings235513a2005-09-21 22:51:36 +00004223fi
David McGrewfec49dd2005-09-23 19:34:11 +00004224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004225fi
David McGrewd1694b52005-09-29 10:59:33 +00004226echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
4227echo "${ECHO_T}$ac_cv_type_int8_t" >&6
4228if test $ac_cv_type_int8_t = yes; then
Cullen Jennings235513a2005-09-21 22:51:36 +00004229
David McGrewfec49dd2005-09-23 19:34:11 +00004230cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004231#define HAVE_INT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004232_ACEOF
4233
4234
4235fi
David McGrewd1694b52005-09-29 10:59:33 +00004236echo "$as_me:$LINENO: checking for uint8_t" >&5
4237echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
4238if test "${ac_cv_type_uint8_t+set}" = set; then
David McGrewfec49dd2005-09-23 19:34:11 +00004239 echo $ECHO_N "(cached) $ECHO_C" >&6
4240else
4241 cat >conftest.$ac_ext <<_ACEOF
4242/* confdefs.h. */
4243_ACEOF
4244cat confdefs.h >>conftest.$ac_ext
4245cat >>conftest.$ac_ext <<_ACEOF
4246/* end confdefs.h. */
4247$ac_includes_default
4248int
4249main ()
4250{
David McGrewd1694b52005-09-29 10:59:33 +00004251if ((uint8_t *) 0)
David McGrewfec49dd2005-09-23 19:34:11 +00004252 return 0;
David McGrewd1694b52005-09-29 10:59:33 +00004253if (sizeof (uint8_t))
David McGrewfec49dd2005-09-23 19:34:11 +00004254 return 0;
4255 ;
4256 return 0;
4257}
4258_ACEOF
4259rm -f conftest.$ac_objext
4260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4261 (eval $ac_compile) 2>conftest.er1
4262 ac_status=$?
4263 grep -v '^ *+' conftest.er1 >conftest.err
4264 rm -f conftest.er1
4265 cat conftest.err >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } &&
4268 { ac_try='test -z "$ac_c_werror_flag"
4269 || test ! -s conftest.err'
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271 (eval $ac_try) 2>&5
4272 ac_status=$?
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; } &&
4275 { ac_try='test -s conftest.$ac_objext'
4276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277 (eval $ac_try) 2>&5
4278 ac_status=$?
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; }; then
David McGrewd1694b52005-09-29 10:59:33 +00004281 ac_cv_type_uint8_t=yes
David McGrewfec49dd2005-09-23 19:34:11 +00004282else
4283 echo "$as_me: failed program was:" >&5
4284sed 's/^/| /' conftest.$ac_ext >&5
4285
David McGrewd1694b52005-09-29 10:59:33 +00004286ac_cv_type_uint8_t=no
David McGrewfec49dd2005-09-23 19:34:11 +00004287fi
4288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4289fi
David McGrewd1694b52005-09-29 10:59:33 +00004290echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
4291echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
4292if test $ac_cv_type_uint8_t = yes; then
David McGrewfec49dd2005-09-23 19:34:11 +00004293
4294cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004295#define HAVE_UINT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004296_ACEOF
4297
4298
4299fi
David McGrewd1694b52005-09-29 10:59:33 +00004300echo "$as_me:$LINENO: checking for int16_t" >&5
4301echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
4302if test "${ac_cv_type_int16_t+set}" = set; then
David McGrewfec49dd2005-09-23 19:34:11 +00004303 echo $ECHO_N "(cached) $ECHO_C" >&6
4304else
4305 cat >conftest.$ac_ext <<_ACEOF
4306/* confdefs.h. */
4307_ACEOF
4308cat confdefs.h >>conftest.$ac_ext
4309cat >>conftest.$ac_ext <<_ACEOF
4310/* end confdefs.h. */
4311$ac_includes_default
4312int
4313main ()
4314{
David McGrewd1694b52005-09-29 10:59:33 +00004315if ((int16_t *) 0)
David McGrewfec49dd2005-09-23 19:34:11 +00004316 return 0;
David McGrewd1694b52005-09-29 10:59:33 +00004317if (sizeof (int16_t))
David McGrewfec49dd2005-09-23 19:34:11 +00004318 return 0;
4319 ;
4320 return 0;
4321}
4322_ACEOF
4323rm -f conftest.$ac_objext
4324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4325 (eval $ac_compile) 2>conftest.er1
4326 ac_status=$?
4327 grep -v '^ *+' conftest.er1 >conftest.err
4328 rm -f conftest.er1
4329 cat conftest.err >&5
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); } &&
4332 { ac_try='test -z "$ac_c_werror_flag"
4333 || test ! -s conftest.err'
4334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335 (eval $ac_try) 2>&5
4336 ac_status=$?
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); }; } &&
4339 { ac_try='test -s conftest.$ac_objext'
4340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4341 (eval $ac_try) 2>&5
4342 ac_status=$?
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); }; }; then
David McGrewd1694b52005-09-29 10:59:33 +00004345 ac_cv_type_int16_t=yes
David McGrewfec49dd2005-09-23 19:34:11 +00004346else
4347 echo "$as_me: failed program was:" >&5
4348sed 's/^/| /' conftest.$ac_ext >&5
4349
David McGrewd1694b52005-09-29 10:59:33 +00004350ac_cv_type_int16_t=no
David McGrewfec49dd2005-09-23 19:34:11 +00004351fi
4352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4353fi
David McGrewd1694b52005-09-29 10:59:33 +00004354echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
4355echo "${ECHO_T}$ac_cv_type_int16_t" >&6
4356if test $ac_cv_type_int16_t = yes; then
David McGrewfec49dd2005-09-23 19:34:11 +00004357
4358cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004359#define HAVE_INT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004360_ACEOF
4361
4362
4363fi
David McGrewd1694b52005-09-29 10:59:33 +00004364echo "$as_me:$LINENO: checking for uint16_t" >&5
4365echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
4366if test "${ac_cv_type_uint16_t+set}" = set; then
David McGrewfec49dd2005-09-23 19:34:11 +00004367 echo $ECHO_N "(cached) $ECHO_C" >&6
4368else
4369 cat >conftest.$ac_ext <<_ACEOF
4370/* confdefs.h. */
4371_ACEOF
4372cat confdefs.h >>conftest.$ac_ext
4373cat >>conftest.$ac_ext <<_ACEOF
4374/* end confdefs.h. */
4375$ac_includes_default
4376int
4377main ()
4378{
David McGrewd1694b52005-09-29 10:59:33 +00004379if ((uint16_t *) 0)
David McGrewfec49dd2005-09-23 19:34:11 +00004380 return 0;
David McGrewd1694b52005-09-29 10:59:33 +00004381if (sizeof (uint16_t))
David McGrewfec49dd2005-09-23 19:34:11 +00004382 return 0;
4383 ;
4384 return 0;
4385}
4386_ACEOF
4387rm -f conftest.$ac_objext
4388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4389 (eval $ac_compile) 2>conftest.er1
4390 ac_status=$?
4391 grep -v '^ *+' conftest.er1 >conftest.err
4392 rm -f conftest.er1
4393 cat conftest.err >&5
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); } &&
4396 { ac_try='test -z "$ac_c_werror_flag"
4397 || test ! -s conftest.err'
4398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4399 (eval $ac_try) 2>&5
4400 ac_status=$?
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); }; } &&
4403 { ac_try='test -s conftest.$ac_objext'
4404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4405 (eval $ac_try) 2>&5
4406 ac_status=$?
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); }; }; then
David McGrewd1694b52005-09-29 10:59:33 +00004409 ac_cv_type_uint16_t=yes
David McGrewfec49dd2005-09-23 19:34:11 +00004410else
4411 echo "$as_me: failed program was:" >&5
4412sed 's/^/| /' conftest.$ac_ext >&5
4413
David McGrewd1694b52005-09-29 10:59:33 +00004414ac_cv_type_uint16_t=no
David McGrewfec49dd2005-09-23 19:34:11 +00004415fi
4416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4417fi
David McGrewd1694b52005-09-29 10:59:33 +00004418echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
4419echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
4420if test $ac_cv_type_uint16_t = yes; then
David McGrewfec49dd2005-09-23 19:34:11 +00004421
4422cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004423#define HAVE_UINT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004424_ACEOF
4425
4426
4427fi
David McGrewd1694b52005-09-29 10:59:33 +00004428echo "$as_me:$LINENO: checking for int32_t" >&5
4429echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
4430if test "${ac_cv_type_int32_t+set}" = set; then
David McGrewfec49dd2005-09-23 19:34:11 +00004431 echo $ECHO_N "(cached) $ECHO_C" >&6
4432else
4433 cat >conftest.$ac_ext <<_ACEOF
4434/* confdefs.h. */
4435_ACEOF
4436cat confdefs.h >>conftest.$ac_ext
4437cat >>conftest.$ac_ext <<_ACEOF
4438/* end confdefs.h. */
4439$ac_includes_default
4440int
4441main ()
4442{
David McGrewd1694b52005-09-29 10:59:33 +00004443if ((int32_t *) 0)
David McGrewfec49dd2005-09-23 19:34:11 +00004444 return 0;
David McGrewd1694b52005-09-29 10:59:33 +00004445if (sizeof (int32_t))
David McGrewfec49dd2005-09-23 19:34:11 +00004446 return 0;
4447 ;
4448 return 0;
4449}
4450_ACEOF
4451rm -f conftest.$ac_objext
4452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4453 (eval $ac_compile) 2>conftest.er1
4454 ac_status=$?
4455 grep -v '^ *+' conftest.er1 >conftest.err
4456 rm -f conftest.er1
4457 cat conftest.err >&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); } &&
4460 { ac_try='test -z "$ac_c_werror_flag"
4461 || test ! -s conftest.err'
4462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4463 (eval $ac_try) 2>&5
4464 ac_status=$?
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); }; } &&
4467 { ac_try='test -s conftest.$ac_objext'
4468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469 (eval $ac_try) 2>&5
4470 ac_status=$?
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; }; then
David McGrewd1694b52005-09-29 10:59:33 +00004473 ac_cv_type_int32_t=yes
David McGrewfec49dd2005-09-23 19:34:11 +00004474else
4475 echo "$as_me: failed program was:" >&5
4476sed 's/^/| /' conftest.$ac_ext >&5
4477
David McGrewd1694b52005-09-29 10:59:33 +00004478ac_cv_type_int32_t=no
David McGrewfec49dd2005-09-23 19:34:11 +00004479fi
4480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4481fi
David McGrewd1694b52005-09-29 10:59:33 +00004482echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
4483echo "${ECHO_T}$ac_cv_type_int32_t" >&6
4484if test $ac_cv_type_int32_t = yes; then
David McGrewfec49dd2005-09-23 19:34:11 +00004485
4486cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004487#define HAVE_INT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004488_ACEOF
4489
4490
4491fi
David McGrewd1694b52005-09-29 10:59:33 +00004492echo "$as_me:$LINENO: checking for uint32_t" >&5
4493echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
4494if test "${ac_cv_type_uint32_t+set}" = set; then
David McGrewfec49dd2005-09-23 19:34:11 +00004495 echo $ECHO_N "(cached) $ECHO_C" >&6
4496else
4497 cat >conftest.$ac_ext <<_ACEOF
4498/* confdefs.h. */
4499_ACEOF
4500cat confdefs.h >>conftest.$ac_ext
4501cat >>conftest.$ac_ext <<_ACEOF
4502/* end confdefs.h. */
4503$ac_includes_default
4504int
4505main ()
4506{
David McGrewd1694b52005-09-29 10:59:33 +00004507if ((uint32_t *) 0)
David McGrewfec49dd2005-09-23 19:34:11 +00004508 return 0;
David McGrewd1694b52005-09-29 10:59:33 +00004509if (sizeof (uint32_t))
David McGrewfec49dd2005-09-23 19:34:11 +00004510 return 0;
4511 ;
4512 return 0;
4513}
4514_ACEOF
4515rm -f conftest.$ac_objext
4516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4517 (eval $ac_compile) 2>conftest.er1
4518 ac_status=$?
4519 grep -v '^ *+' conftest.er1 >conftest.err
4520 rm -f conftest.er1
4521 cat conftest.err >&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); } &&
4524 { ac_try='test -z "$ac_c_werror_flag"
4525 || test ! -s conftest.err'
4526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527 (eval $ac_try) 2>&5
4528 ac_status=$?
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; } &&
4531 { ac_try='test -s conftest.$ac_objext'
4532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533 (eval $ac_try) 2>&5
4534 ac_status=$?
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }; }; then
David McGrewd1694b52005-09-29 10:59:33 +00004537 ac_cv_type_uint32_t=yes
David McGrewfec49dd2005-09-23 19:34:11 +00004538else
4539 echo "$as_me: failed program was:" >&5
4540sed 's/^/| /' conftest.$ac_ext >&5
4541
David McGrewd1694b52005-09-29 10:59:33 +00004542ac_cv_type_uint32_t=no
David McGrewfec49dd2005-09-23 19:34:11 +00004543fi
4544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4545fi
David McGrewd1694b52005-09-29 10:59:33 +00004546echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
4547echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
4548if test $ac_cv_type_uint32_t = yes; then
David McGrewfec49dd2005-09-23 19:34:11 +00004549
4550cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004551#define HAVE_UINT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004552_ACEOF
4553
4554
4555fi
David McGrewd1694b52005-09-29 10:59:33 +00004556echo "$as_me:$LINENO: checking for uint64_t" >&5
4557echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4558if test "${ac_cv_type_uint64_t+set}" = set; then
David McGrewfec49dd2005-09-23 19:34:11 +00004559 echo $ECHO_N "(cached) $ECHO_C" >&6
4560else
4561 cat >conftest.$ac_ext <<_ACEOF
4562/* confdefs.h. */
4563_ACEOF
4564cat confdefs.h >>conftest.$ac_ext
4565cat >>conftest.$ac_ext <<_ACEOF
4566/* end confdefs.h. */
4567$ac_includes_default
4568int
4569main ()
4570{
David McGrewd1694b52005-09-29 10:59:33 +00004571if ((uint64_t *) 0)
David McGrewfec49dd2005-09-23 19:34:11 +00004572 return 0;
David McGrewd1694b52005-09-29 10:59:33 +00004573if (sizeof (uint64_t))
David McGrewfec49dd2005-09-23 19:34:11 +00004574 return 0;
4575 ;
4576 return 0;
4577}
4578_ACEOF
4579rm -f conftest.$ac_objext
4580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4581 (eval $ac_compile) 2>conftest.er1
4582 ac_status=$?
4583 grep -v '^ *+' conftest.er1 >conftest.err
4584 rm -f conftest.er1
4585 cat conftest.err >&5
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); } &&
4588 { ac_try='test -z "$ac_c_werror_flag"
4589 || test ! -s conftest.err'
4590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591 (eval $ac_try) 2>&5
4592 ac_status=$?
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); }; } &&
4595 { ac_try='test -s conftest.$ac_objext'
4596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597 (eval $ac_try) 2>&5
4598 ac_status=$?
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); }; }; then
David McGrewd1694b52005-09-29 10:59:33 +00004601 ac_cv_type_uint64_t=yes
David McGrewfec49dd2005-09-23 19:34:11 +00004602else
4603 echo "$as_me: failed program was:" >&5
4604sed 's/^/| /' conftest.$ac_ext >&5
4605
David McGrewd1694b52005-09-29 10:59:33 +00004606ac_cv_type_uint64_t=no
David McGrewfec49dd2005-09-23 19:34:11 +00004607fi
4608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4609fi
David McGrewd1694b52005-09-29 10:59:33 +00004610echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
4611echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
4612if test $ac_cv_type_uint64_t = yes; then
David McGrewfec49dd2005-09-23 19:34:11 +00004613
4614cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004615#define HAVE_UINT64_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004616_ACEOF
4617
4618
4619fi
4620
4621
4622echo "$as_me:$LINENO: checking for unsigned long long" >&5
4623echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
4624if test "${ac_cv_type_unsigned_long_long+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4626else
4627 cat >conftest.$ac_ext <<_ACEOF
4628/* confdefs.h. */
4629_ACEOF
4630cat confdefs.h >>conftest.$ac_ext
4631cat >>conftest.$ac_ext <<_ACEOF
4632/* end confdefs.h. */
4633$ac_includes_default
4634int
4635main ()
4636{
4637if ((unsigned long long *) 0)
4638 return 0;
4639if (sizeof (unsigned long long))
4640 return 0;
4641 ;
4642 return 0;
4643}
4644_ACEOF
4645rm -f conftest.$ac_objext
4646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4647 (eval $ac_compile) 2>conftest.er1
4648 ac_status=$?
4649 grep -v '^ *+' conftest.er1 >conftest.err
4650 rm -f conftest.er1
4651 cat conftest.err >&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); } &&
4654 { ac_try='test -z "$ac_c_werror_flag"
4655 || test ! -s conftest.err'
4656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657 (eval $ac_try) 2>&5
4658 ac_status=$?
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); }; } &&
4661 { ac_try='test -s conftest.$ac_objext'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663 (eval $ac_try) 2>&5
4664 ac_status=$?
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; }; then
4667 ac_cv_type_unsigned_long_long=yes
4668else
4669 echo "$as_me: failed program was:" >&5
4670sed 's/^/| /' conftest.$ac_ext >&5
4671
4672ac_cv_type_unsigned_long_long=no
4673fi
4674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4675fi
4676echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
4677echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
4678if test $ac_cv_type_unsigned_long_long = yes; then
4679 HAVE_U_LONG_LONG=1
4680else
4681 HAVE_U_LONG_LONG=0
4682fi
4683
4684
4685if test $HAVE_U_LONG_LONG = 1; then
4686 cat >>confdefs.h <<\_ACEOF
4687#define HAVE_U_LONG_LONG 1
4688_ACEOF
4689
4690fi
Cullen Jennings235513a2005-09-21 22:51:36 +00004691
4692echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4693echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4694if test "${ac_cv_c_const+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4696else
4697 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00004698/* confdefs.h. */
4699_ACEOF
4700cat confdefs.h >>conftest.$ac_ext
4701cat >>conftest.$ac_ext <<_ACEOF
4702/* end confdefs.h. */
4703
4704int
4705main ()
4706{
4707/* FIXME: Include the comments suggested by Paul. */
4708#ifndef __cplusplus
4709 /* Ultrix mips cc rejects this. */
4710 typedef int charset[2];
4711 const charset x;
4712 /* SunOS 4.1.1 cc rejects this. */
4713 char const *const *ccp;
4714 char **p;
4715 /* NEC SVR4.0.2 mips cc rejects this. */
4716 struct point {int x, y;};
4717 static struct point const zero = {0,0};
4718 /* AIX XL C 1.02.0.0 rejects this.
4719 It does not let you subtract one const X* pointer from another in
4720 an arm of an if-expression whose if-part is not a constant
4721 expression */
4722 const char *g = "string";
4723 ccp = &g + (g ? g-g : 0);
4724 /* HPUX 7.0 cc rejects these. */
4725 ++ccp;
4726 p = (char**) ccp;
4727 ccp = (char const *const *) p;
4728 { /* SCO 3.2v4 cc rejects this. */
4729 char *t;
4730 char const *s = 0 ? (char *) 0 : (char const *) 0;
4731
4732 *t++ = 0;
4733 }
4734 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4735 int x[] = {25, 17};
4736 const int *foo = &x[0];
4737 ++foo;
4738 }
4739 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4740 typedef const int *iptr;
4741 iptr p = 0;
4742 ++p;
4743 }
4744 { /* AIX XL C 1.02.0.0 rejects this saying
4745 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4746 struct s { int j; const int *ap[3]; };
4747 struct s *b; b->j = 5;
4748 }
4749 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4750 const int foo = 10;
4751 }
4752#endif
4753
4754 ;
4755 return 0;
4756}
4757_ACEOF
4758rm -f conftest.$ac_objext
4759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00004760 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00004761 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00004762 grep -v '^ *+' conftest.er1 >conftest.err
4763 rm -f conftest.er1
4764 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00004765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00004767 { ac_try='test -z "$ac_c_werror_flag"
4768 || test ! -s conftest.err'
4769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770 (eval $ac_try) 2>&5
4771 ac_status=$?
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); }; } &&
4774 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00004775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 (eval $ac_try) 2>&5
4777 ac_status=$?
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; }; then
4780 ac_cv_c_const=yes
4781else
4782 echo "$as_me: failed program was:" >&5
4783sed 's/^/| /' conftest.$ac_ext >&5
4784
4785ac_cv_c_const=no
4786fi
David McGrewfec49dd2005-09-23 19:34:11 +00004787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004788fi
4789echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4790echo "${ECHO_T}$ac_cv_c_const" >&6
4791if test $ac_cv_c_const = no; then
4792
4793cat >>confdefs.h <<\_ACEOF
4794#define const
4795_ACEOF
4796
4797fi
4798
4799echo "$as_me:$LINENO: checking for inline" >&5
4800echo $ECHO_N "checking for inline... $ECHO_C" >&6
4801if test "${ac_cv_c_inline+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4803else
4804 ac_cv_c_inline=no
4805for ac_kw in inline __inline__ __inline; do
4806 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00004807/* confdefs.h. */
4808_ACEOF
4809cat confdefs.h >>conftest.$ac_ext
4810cat >>conftest.$ac_ext <<_ACEOF
4811/* end confdefs.h. */
4812#ifndef __cplusplus
4813typedef int foo_t;
4814static $ac_kw foo_t static_foo () {return 0; }
4815$ac_kw foo_t foo () {return 0; }
4816#endif
4817
4818_ACEOF
4819rm -f conftest.$ac_objext
4820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00004821 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00004822 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00004823 grep -v '^ *+' conftest.er1 >conftest.err
4824 rm -f conftest.er1
4825 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00004826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00004828 { ac_try='test -z "$ac_c_werror_flag"
4829 || test ! -s conftest.err'
4830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4831 (eval $ac_try) 2>&5
4832 ac_status=$?
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); }; } &&
4835 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00004836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4837 (eval $ac_try) 2>&5
4838 ac_status=$?
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); }; }; then
4841 ac_cv_c_inline=$ac_kw; break
4842else
4843 echo "$as_me: failed program was:" >&5
4844sed 's/^/| /' conftest.$ac_ext >&5
4845
4846fi
David McGrewfec49dd2005-09-23 19:34:11 +00004847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004848done
4849
4850fi
4851echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4852echo "${ECHO_T}$ac_cv_c_inline" >&6
David McGrewfec49dd2005-09-23 19:34:11 +00004853
4854
Cullen Jennings235513a2005-09-21 22:51:36 +00004855case $ac_cv_c_inline in
4856 inline | yes) ;;
David McGrewfec49dd2005-09-23 19:34:11 +00004857 *)
4858 case $ac_cv_c_inline in
4859 no) ac_val=;;
4860 *) ac_val=$ac_cv_c_inline;;
4861 esac
4862 cat >>confdefs.h <<_ACEOF
4863#ifndef __cplusplus
4864#define inline $ac_val
4865#endif
Cullen Jennings235513a2005-09-21 22:51:36 +00004866_ACEOF
David McGrewfec49dd2005-09-23 19:34:11 +00004867 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00004868esac
4869
4870echo "$as_me:$LINENO: checking for size_t" >&5
4871echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4872if test "${ac_cv_type_size_t+set}" = set; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
4874else
4875 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00004876/* confdefs.h. */
4877_ACEOF
4878cat confdefs.h >>conftest.$ac_ext
4879cat >>conftest.$ac_ext <<_ACEOF
4880/* end confdefs.h. */
4881$ac_includes_default
4882int
4883main ()
4884{
4885if ((size_t *) 0)
4886 return 0;
4887if (sizeof (size_t))
4888 return 0;
4889 ;
4890 return 0;
4891}
4892_ACEOF
4893rm -f conftest.$ac_objext
4894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00004895 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00004896 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00004897 grep -v '^ *+' conftest.er1 >conftest.err
4898 rm -f conftest.er1
4899 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00004900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00004902 { ac_try='test -z "$ac_c_werror_flag"
4903 || test ! -s conftest.err'
4904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4905 (eval $ac_try) 2>&5
4906 ac_status=$?
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); }; } &&
4909 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00004910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4911 (eval $ac_try) 2>&5
4912 ac_status=$?
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); }; }; then
4915 ac_cv_type_size_t=yes
4916else
4917 echo "$as_me: failed program was:" >&5
4918sed 's/^/| /' conftest.$ac_ext >&5
4919
4920ac_cv_type_size_t=no
4921fi
David McGrewfec49dd2005-09-23 19:34:11 +00004922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004923fi
4924echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4925echo "${ECHO_T}$ac_cv_type_size_t" >&6
4926if test $ac_cv_type_size_t = yes; then
4927 :
4928else
4929
4930cat >>confdefs.h <<_ACEOF
4931#define size_t unsigned
4932_ACEOF
4933
4934fi
4935
4936
David McGrewfec49dd2005-09-23 19:34:11 +00004937
Cullen Jennings235513a2005-09-21 22:51:36 +00004938
David McGrewb67061f2005-09-28 14:23:06 +00004939for ac_func in socket inet_aton
Cullen Jennings235513a2005-09-21 22:51:36 +00004940do
4941as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4942echo "$as_me:$LINENO: checking for $ac_func" >&5
4943echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4944if eval "test \"\${$as_ac_var+set}\" = set"; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4946else
4947 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00004948/* confdefs.h. */
4949_ACEOF
4950cat confdefs.h >>conftest.$ac_ext
4951cat >>conftest.$ac_ext <<_ACEOF
4952/* end confdefs.h. */
David McGrewfec49dd2005-09-23 19:34:11 +00004953/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4955#define $ac_func innocuous_$ac_func
4956
Cullen Jennings235513a2005-09-21 22:51:36 +00004957/* System header to define __stub macros and hopefully few prototypes,
4958 which can conflict with char $ac_func (); below.
4959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4960 <limits.h> exists even on freestanding compilers. */
David McGrewfec49dd2005-09-23 19:34:11 +00004961
Cullen Jennings235513a2005-09-21 22:51:36 +00004962#ifdef __STDC__
4963# include <limits.h>
4964#else
4965# include <assert.h>
4966#endif
David McGrewfec49dd2005-09-23 19:34:11 +00004967
4968#undef $ac_func
4969
Cullen Jennings235513a2005-09-21 22:51:36 +00004970/* Override any gcc2 internal prototype to avoid an error. */
4971#ifdef __cplusplus
4972extern "C"
4973{
4974#endif
4975/* We use char because int might match the return type of a gcc2
4976 builtin and then its argument prototype would still apply. */
4977char $ac_func ();
4978/* The GNU C library defines this for functions which it implements
4979 to always fail with ENOSYS. Some functions are actually named
4980 something starting with __ and the normal name is an alias. */
4981#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4982choke me
4983#else
4984char (*f) () = $ac_func;
4985#endif
4986#ifdef __cplusplus
4987}
4988#endif
4989
4990int
4991main ()
4992{
4993return f != $ac_func;
4994 ;
4995 return 0;
4996}
4997_ACEOF
4998rm -f conftest.$ac_objext conftest$ac_exeext
4999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00005000 (eval $ac_link) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00005001 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00005002 grep -v '^ *+' conftest.er1 >conftest.err
5003 rm -f conftest.er1
5004 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00005005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00005007 { ac_try='test -z "$ac_c_werror_flag"
5008 || test ! -s conftest.err'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010 (eval $ac_try) 2>&5
5011 ac_status=$?
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; } &&
5014 { ac_try='test -s conftest$ac_exeext'
Cullen Jennings235513a2005-09-21 22:51:36 +00005015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 (eval $ac_try) 2>&5
5017 ac_status=$?
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; }; then
5020 eval "$as_ac_var=yes"
5021else
5022 echo "$as_me: failed program was:" >&5
5023sed 's/^/| /' conftest.$ac_ext >&5
5024
5025eval "$as_ac_var=no"
5026fi
David McGrewfec49dd2005-09-23 19:34:11 +00005027rm -f conftest.err conftest.$ac_objext \
5028 conftest$ac_exeext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00005029fi
5030echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5031echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5032if test `eval echo '${'$as_ac_var'}'` = yes; then
5033 cat >>confdefs.h <<_ACEOF
5034#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5035_ACEOF
5036
5037fi
5038done
5039
5040
David McGrewb67061f2005-09-28 14:23:06 +00005041
5042echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5043echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
5044if test "${ac_cv_lib_socket_socket+set}" = set; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5046else
5047 ac_check_lib_save_LIBS=$LIBS
5048LIBS="-lsocket $LIBS"
5049cat >conftest.$ac_ext <<_ACEOF
5050/* confdefs.h. */
5051_ACEOF
5052cat confdefs.h >>conftest.$ac_ext
5053cat >>conftest.$ac_ext <<_ACEOF
5054/* end confdefs.h. */
5055
5056/* Override any gcc2 internal prototype to avoid an error. */
5057#ifdef __cplusplus
5058extern "C"
5059#endif
5060/* We use char because int might match the return type of a gcc2
5061 builtin and then its argument prototype would still apply. */
5062char socket ();
5063int
5064main ()
5065{
5066socket ();
5067 ;
5068 return 0;
5069}
5070_ACEOF
5071rm -f conftest.$ac_objext conftest$ac_exeext
5072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5073 (eval $ac_link) 2>conftest.er1
5074 ac_status=$?
5075 grep -v '^ *+' conftest.er1 >conftest.err
5076 rm -f conftest.er1
5077 cat conftest.err >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); } &&
5080 { ac_try='test -z "$ac_c_werror_flag"
5081 || test ! -s conftest.err'
5082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083 (eval $ac_try) 2>&5
5084 ac_status=$?
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); }; } &&
5087 { ac_try='test -s conftest$ac_exeext'
5088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089 (eval $ac_try) 2>&5
5090 ac_status=$?
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); }; }; then
5093 ac_cv_lib_socket_socket=yes
5094else
5095 echo "$as_me: failed program was:" >&5
5096sed 's/^/| /' conftest.$ac_ext >&5
5097
5098ac_cv_lib_socket_socket=no
5099fi
5100rm -f conftest.err conftest.$ac_objext \
5101 conftest$ac_exeext conftest.$ac_ext
5102LIBS=$ac_check_lib_save_LIBS
5103fi
5104echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5105echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
5106if test $ac_cv_lib_socket_socket = yes; then
5107 cat >>confdefs.h <<_ACEOF
5108#define HAVE_LIBSOCKET 1
5109_ACEOF
5110
5111 LIBS="-lsocket $LIBS"
5112
5113fi
5114
5115
Cullen Jennings235513a2005-09-21 22:51:36 +00005116echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5117echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5118if test "${ac_cv_c_bigendian+set}" = set; then
5119 echo $ECHO_N "(cached) $ECHO_C" >&6
5120else
5121 # See if sys/param.h defines the BYTE_ORDER macro.
5122cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005123/* confdefs.h. */
5124_ACEOF
5125cat confdefs.h >>conftest.$ac_ext
5126cat >>conftest.$ac_ext <<_ACEOF
5127/* end confdefs.h. */
5128#include <sys/types.h>
5129#include <sys/param.h>
5130
5131int
5132main ()
5133{
5134#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5135 bogus endian macros
5136#endif
5137
5138 ;
5139 return 0;
5140}
5141_ACEOF
5142rm -f conftest.$ac_objext
5143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00005144 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00005145 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00005146 grep -v '^ *+' conftest.er1 >conftest.err
5147 rm -f conftest.er1
5148 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00005149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00005151 { ac_try='test -z "$ac_c_werror_flag"
5152 || test ! -s conftest.err'
5153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5154 (eval $ac_try) 2>&5
5155 ac_status=$?
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); }; } &&
5158 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00005159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5160 (eval $ac_try) 2>&5
5161 ac_status=$?
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); }; }; then
5164 # It does; now see whether it defined to BIG_ENDIAN or not.
5165cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005166/* confdefs.h. */
5167_ACEOF
5168cat confdefs.h >>conftest.$ac_ext
5169cat >>conftest.$ac_ext <<_ACEOF
5170/* end confdefs.h. */
5171#include <sys/types.h>
5172#include <sys/param.h>
5173
5174int
5175main ()
5176{
5177#if BYTE_ORDER != BIG_ENDIAN
5178 not big endian
5179#endif
5180
5181 ;
5182 return 0;
5183}
5184_ACEOF
5185rm -f conftest.$ac_objext
5186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00005187 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00005188 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00005189 grep -v '^ *+' conftest.er1 >conftest.err
5190 rm -f conftest.er1
5191 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00005192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00005194 { ac_try='test -z "$ac_c_werror_flag"
5195 || test ! -s conftest.err'
5196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197 (eval $ac_try) 2>&5
5198 ac_status=$?
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }; } &&
5201 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00005202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203 (eval $ac_try) 2>&5
5204 ac_status=$?
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); }; }; then
5207 ac_cv_c_bigendian=yes
5208else
5209 echo "$as_me: failed program was:" >&5
5210sed 's/^/| /' conftest.$ac_ext >&5
5211
5212ac_cv_c_bigendian=no
5213fi
David McGrewfec49dd2005-09-23 19:34:11 +00005214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00005215else
5216 echo "$as_me: failed program was:" >&5
5217sed 's/^/| /' conftest.$ac_ext >&5
5218
5219# It does not; compile a test program.
5220if test "$cross_compiling" = yes; then
5221 # try to guess the endianness by grepping values into an object file
5222 ac_cv_c_bigendian=unknown
5223 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005224/* confdefs.h. */
5225_ACEOF
5226cat confdefs.h >>conftest.$ac_ext
5227cat >>conftest.$ac_ext <<_ACEOF
5228/* end confdefs.h. */
5229short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5230short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5231void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5232short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5233short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5234void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5235int
5236main ()
5237{
5238 _ascii (); _ebcdic ();
5239 ;
5240 return 0;
5241}
5242_ACEOF
5243rm -f conftest.$ac_objext
5244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00005245 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00005246 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00005247 grep -v '^ *+' conftest.er1 >conftest.err
5248 rm -f conftest.er1
5249 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00005250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00005252 { ac_try='test -z "$ac_c_werror_flag"
5253 || test ! -s conftest.err'
5254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5255 (eval $ac_try) 2>&5
5256 ac_status=$?
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); }; } &&
5259 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00005260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5261 (eval $ac_try) 2>&5
5262 ac_status=$?
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); }; }; then
5265 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5266 ac_cv_c_bigendian=yes
5267fi
5268if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5269 if test "$ac_cv_c_bigendian" = unknown; then
5270 ac_cv_c_bigendian=no
5271 else
5272 # finding both strings is unlikely to happen, but who knows?
5273 ac_cv_c_bigendian=unknown
5274 fi
5275fi
5276else
5277 echo "$as_me: failed program was:" >&5
5278sed 's/^/| /' conftest.$ac_ext >&5
5279
5280fi
David McGrewfec49dd2005-09-23 19:34:11 +00005281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00005282else
5283 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005284/* confdefs.h. */
5285_ACEOF
5286cat confdefs.h >>conftest.$ac_ext
5287cat >>conftest.$ac_ext <<_ACEOF
5288/* end confdefs.h. */
5289int
5290main ()
5291{
5292 /* Are we little or big endian? From Harbison&Steele. */
5293 union
5294 {
5295 long l;
5296 char c[sizeof (long)];
5297 } u;
5298 u.l = 1;
5299 exit (u.c[sizeof (long) - 1] == 1);
5300}
5301_ACEOF
5302rm -f conftest$ac_exeext
5303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5304 (eval $ac_link) 2>&5
5305 ac_status=$?
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309 (eval $ac_try) 2>&5
5310 ac_status=$?
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; }; then
5313 ac_cv_c_bigendian=no
5314else
5315 echo "$as_me: program exited with status $ac_status" >&5
5316echo "$as_me: failed program was:" >&5
5317sed 's/^/| /' conftest.$ac_ext >&5
5318
5319( exit $ac_status )
5320ac_cv_c_bigendian=yes
5321fi
David McGrewfec49dd2005-09-23 19:34:11 +00005322rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00005323fi
5324fi
David McGrewfec49dd2005-09-23 19:34:11 +00005325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00005326fi
5327echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5328echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5329case $ac_cv_c_bigendian in
5330 yes)
5331
5332cat >>confdefs.h <<\_ACEOF
5333#define WORDS_BIGENDIAN 1
5334_ACEOF
5335 ;;
5336 no)
5337 ;;
5338 *)
5339 { { echo "$as_me:$LINENO: error: unknown endianness
5340presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5341echo "$as_me: error: unknown endianness
5342presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5343 { (exit 1); exit 1; }; } ;;
5344esac
5345
5346
Cullen Jennings235513a2005-09-21 22:51:36 +00005347# Make sure we can run config.sub.
5348$ac_config_sub sun4 >/dev/null 2>&1 ||
5349 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
5350echo "$as_me: error: cannot run $ac_config_sub" >&2;}
5351 { (exit 1); exit 1; }; }
5352
5353echo "$as_me:$LINENO: checking build system type" >&5
5354echo $ECHO_N "checking build system type... $ECHO_C" >&6
5355if test "${ac_cv_build+set}" = set; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5357else
5358 ac_cv_build_alias=$build_alias
5359test -z "$ac_cv_build_alias" &&
5360 ac_cv_build_alias=`$ac_config_guess`
5361test -z "$ac_cv_build_alias" &&
5362 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5363echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5364 { (exit 1); exit 1; }; }
5365ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
5366 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
5367echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
5368 { (exit 1); exit 1; }; }
5369
5370fi
5371echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5372echo "${ECHO_T}$ac_cv_build" >&6
5373build=$ac_cv_build
5374build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5375build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5376build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5377
5378
5379echo "$as_me:$LINENO: checking host system type" >&5
5380echo $ECHO_N "checking host system type... $ECHO_C" >&6
5381if test "${ac_cv_host+set}" = set; then
5382 echo $ECHO_N "(cached) $ECHO_C" >&6
5383else
5384 ac_cv_host_alias=$host_alias
5385test -z "$ac_cv_host_alias" &&
5386 ac_cv_host_alias=$ac_cv_build_alias
5387ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5388 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5389echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5390 { (exit 1); exit 1; }; }
5391
5392fi
5393echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5394echo "${ECHO_T}$ac_cv_host" >&6
5395host=$ac_cv_host
5396host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5397host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5398host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5399
5400
5401
Cullen Jennings235513a2005-09-21 22:51:36 +00005402case $host_cpu in
5403 i*86 )
David McGrewb67061f2005-09-28 14:23:06 +00005404
5405cat >>confdefs.h <<\_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005406#define CPU_CISC 1
5407_ACEOF
David McGrew89fb7ea2005-09-26 19:33:44 +00005408
David McGrewb67061f2005-09-28 14:23:06 +00005409
5410cat >>confdefs.h <<\_ACEOF
David McGrew89fb7ea2005-09-26 19:33:44 +00005411#define HAVE_X86 1
5412_ACEOF
David McGrewb67061f2005-09-28 14:23:06 +00005413;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005414 * )
David McGrewb67061f2005-09-28 14:23:06 +00005415
5416cat >>confdefs.h <<\_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005417#define CPU_RISC 1
5418_ACEOF
5419;;
5420esac
5421
5422
5423case $host_os in
5424 *cygwin* )
David McGrewb67061f2005-09-28 14:23:06 +00005425
5426cat >>confdefs.h <<\_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005427#define HAVE_MS_TYPES 1
5428_ACEOF
5429
5430 EXE=.exe;;
5431 * ) EXE="";;
5432esac
5433
5434 # define executable suffix; this is needed for `make clean'
5435
David McGrewb67061f2005-09-28 14:23:06 +00005436echo "$as_me:$LINENO: checking whether to compile in debugging" >&5
5437echo $ECHO_N "checking whether to compile in debugging... $ECHO_C" >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005438# Check whether --enable-debug or --disable-debug was given.
5439if test "${enable_debug+set}" = set; then
5440 enableval="$enable_debug"
Cullen Jennings235513a2005-09-21 22:51:36 +00005441
David McGrewb67061f2005-09-28 14:23:06 +00005442else
5443 enable_debug=yes
5444fi;
5445if test "$enable_debug" = "yes"; then
5446
5447cat >>confdefs.h <<\_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005448#define ENABLE_DEBUGGING 1
5449_ACEOF
5450
5451fi
David McGrewb67061f2005-09-28 14:23:06 +00005452echo "$as_me:$LINENO: result: $enable_debug" >&5
5453echo "${ECHO_T}$enable_debug" >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005454
David McGrewb67061f2005-09-28 14:23:06 +00005455echo "$as_me:$LINENO: checking whether to use ISMAcryp code" >&5
5456echo $ECHO_N "checking whether to use ISMAcryp code... $ECHO_C" >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005457# Check whether --enable-generic-aesicm or --disable-generic-aesicm was given.
5458if test "${enable_generic_aesicm+set}" = set; then
5459 enableval="$enable_generic_aesicm"
Cullen Jennings235513a2005-09-21 22:51:36 +00005460
David McGrewb67061f2005-09-28 14:23:06 +00005461else
5462 enable_generic_aesicm=no
5463fi;
5464if test "$enable_generic_aesicm" = "yes"; then
5465
5466cat >>confdefs.h <<\_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005467#define GENERIC_AESICM 1
5468_ACEOF
5469
5470fi
David McGrewb67061f2005-09-28 14:23:06 +00005471echo "$as_me:$LINENO: result: $enable_generic_aesicm" >&5
5472echo "${ECHO_T}$enable_generic_aesicm" >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005473
David McGrewb67061f2005-09-28 14:23:06 +00005474echo "$as_me:$LINENO: checking whether to use syslog for error reporting" >&5
5475echo $ECHO_N "checking whether to use syslog for error reporting... $ECHO_C" >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005476# Check whether --enable-syslog or --disable-syslog was given.
5477if test "${enable_syslog+set}" = set; then
5478 enableval="$enable_syslog"
Cullen Jennings235513a2005-09-21 22:51:36 +00005479
David McGrewb67061f2005-09-28 14:23:06 +00005480else
5481 enable_syslog=no
5482fi;
5483if test "$enable_syslog" = "yes"; then
5484
5485cat >>confdefs.h <<\_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005486#define USE_SYSLOG 1
5487_ACEOF
5488
5489fi
David McGrewb67061f2005-09-28 14:23:06 +00005490echo "$as_me:$LINENO: result: $enable_syslog" >&5
5491echo "${ECHO_T}$enable_syslog" >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005492
David McGrewb67061f2005-09-28 14:23:06 +00005493echo "$as_me:$LINENO: checking whether to use stdout for error reporting" >&5
5494echo $ECHO_N "checking whether to use stdout for error reporting... $ECHO_C" >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005495# Check whether --enable-stdout or --disable-stdout was given.
5496if test "${enable_stdout+set}" = set; then
5497 enableval="$enable_stdout"
Cullen Jennings235513a2005-09-21 22:51:36 +00005498
David McGrewb67061f2005-09-28 14:23:06 +00005499else
5500 enable_stdout=yes
5501fi;
5502if test "$enable_stdout" = "yes"; then
5503
5504cat >>confdefs.h <<\_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005505#define ERR_REPORTING_STDOUT 1
5506_ACEOF
5507
5508fi
David McGrewb67061f2005-09-28 14:23:06 +00005509echo "$as_me:$LINENO: result: $enable_stdout" >&5
5510echo "${ECHO_T}$enable_stdout" >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005511
David McGrewb67061f2005-09-28 14:23:06 +00005512echo "$as_me:$LINENO: checking whether to use /dev/console for error reporting" >&5
5513echo $ECHO_N "checking whether to use /dev/console for error reporting... $ECHO_C" >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005514# Check whether --enable-console or --disable-console was given.
5515if test "${enable_console+set}" = set; then
5516 enableval="$enable_console"
Cullen Jennings235513a2005-09-21 22:51:36 +00005517
David McGrewb67061f2005-09-28 14:23:06 +00005518else
5519 enable_console=no
5520fi;
5521if test "$enable_console" = "yes"; then
5522
5523cat >>confdefs.h <<\_ACEOF
5524#define USE_ERR_REPORTING_FILE 1
5525_ACEOF
5526
5527
5528cat >>confdefs.h <<\_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005529#define ERR_REPORTING_FILE "/dev/console"
5530_ACEOF
5531
5532fi
David McGrewb67061f2005-09-28 14:23:06 +00005533echo "$as_me:$LINENO: result: $enable_console" >&5
5534echo "${ECHO_T}$enable_console" >&6
5535
5536echo "$as_me:$LINENO: checking whether to use GDOI key management" >&5
5537echo $ECHO_N "checking whether to use GDOI key management... $ECHO_C" >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005538# Check whether --enable-gdoi or --disable-gdoi was given.
5539if test "${enable_gdoi+set}" = set; then
5540 enableval="$enable_gdoi"
Cullen Jennings235513a2005-09-21 22:51:36 +00005541
David McGrewb67061f2005-09-28 14:23:06 +00005542else
5543 enable_gdoi=no
5544fi;
5545if test "$enable_gdoi" = "yes"; then
5546
5547cat >>confdefs.h <<\_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005548#define SRTP_GDOI 1
5549_ACEOF
5550
5551 GDOI_OBJS=gdoi/srtp+gdoi.o
5552
5553fi
David McGrewb67061f2005-09-28 14:23:06 +00005554echo "$as_me:$LINENO: result: $enable_gdoi" >&5
5555echo "${ECHO_T}$enable_gdoi" >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005556
David McGrewfec49dd2005-09-23 19:34:11 +00005557 ac_config_headers="$ac_config_headers crypto/include/config.h:config_in.h"
Cullen Jennings235513a2005-09-21 22:51:36 +00005558
5559
Marcus Sundbergfffdbfe2005-09-29 13:30:54 +00005560 ac_config_files="$ac_config_files Makefile crypto/Makefile doc/Makefile"
Cullen Jennings235513a2005-09-21 22:51:36 +00005561cat >confcache <<\_ACEOF
5562# This file is a shell script that caches the results of configure
5563# tests run on this system so they can be shared between configure
5564# scripts and configure runs, see configure's option --config-cache.
5565# It is not useful on other systems. If it contains results you don't
5566# want to keep, you may remove or edit it.
5567#
5568# config.status only pays attention to the cache file if you give it
5569# the --recheck option to rerun configure.
5570#
5571# `ac_cv_env_foo' variables (set or unset) will be overridden when
5572# loading this file, other *unset* `ac_cv_foo' will be assigned the
5573# following values.
5574
5575_ACEOF
5576
5577# The following way of writing the cache mishandles newlines in values,
5578# but we know of no workaround that is simple, portable, and efficient.
5579# So, don't put newlines in cache variables' values.
5580# Ultrix sh set writes to stderr and can't be redirected directly,
5581# and sets the high bit in the cache file unless we assign to the vars.
5582{
5583 (set) 2>&1 |
5584 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5585 *ac_space=\ *)
5586 # `set' does not quote correctly, so add quotes (double-quote
5587 # substitution turns \\\\ into \\, and sed turns \\ into \).
5588 sed -n \
David McGrewfec49dd2005-09-23 19:34:11 +00005589 "s/'/'\\\\''/g;
5590 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Cullen Jennings235513a2005-09-21 22:51:36 +00005591 ;;
5592 *)
5593 # `set' quotes correctly as required by POSIX, so do not add quotes.
5594 sed -n \
David McGrewfec49dd2005-09-23 19:34:11 +00005595 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Cullen Jennings235513a2005-09-21 22:51:36 +00005596 ;;
5597 esac;
5598} |
5599 sed '
5600 t clear
5601 : clear
5602 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5603 t end
5604 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5605 : end' >>confcache
5606if diff $cache_file confcache >/dev/null 2>&1; then :; else
5607 if test -w $cache_file; then
5608 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5609 cat confcache >$cache_file
5610 else
5611 echo "not updating unwritable cache $cache_file"
5612 fi
5613fi
5614rm -f confcache
5615
5616test "x$prefix" = xNONE && prefix=$ac_default_prefix
5617# Let make expand exec_prefix.
5618test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5619
5620# VPATH may cause trouble with some makes, so we remove $(srcdir),
5621# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5622# trailing colons and then remove the whole line if VPATH becomes empty
5623# (actually we leave an empty line to preserve line numbers).
5624if test "x$srcdir" = x.; then
David McGrewfec49dd2005-09-23 19:34:11 +00005625 ac_vpsub='/^[ ]*VPATH[ ]*=/{
Cullen Jennings235513a2005-09-21 22:51:36 +00005626s/:*\$(srcdir):*/:/;
5627s/:*\${srcdir}:*/:/;
5628s/:*@srcdir@:*/:/;
David McGrewfec49dd2005-09-23 19:34:11 +00005629s/^\([^=]*=[ ]*\):*/\1/;
Cullen Jennings235513a2005-09-21 22:51:36 +00005630s/:*$//;
David McGrewfec49dd2005-09-23 19:34:11 +00005631s/^[^=]*=[ ]*$//;
Cullen Jennings235513a2005-09-21 22:51:36 +00005632}'
5633fi
5634
5635DEFS=-DHAVE_CONFIG_H
5636
5637ac_libobjs=
5638ac_ltlibobjs=
5639for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5640 # 1. Remove the extension, and $U if already installed.
5641 ac_i=`echo "$ac_i" |
David McGrewfec49dd2005-09-23 19:34:11 +00005642 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
Cullen Jennings235513a2005-09-21 22:51:36 +00005643 # 2. Add them.
5644 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5645 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5646done
5647LIBOBJS=$ac_libobjs
5648
5649LTLIBOBJS=$ac_ltlibobjs
5650
5651
5652
5653: ${CONFIG_STATUS=./config.status}
5654ac_clean_files_save=$ac_clean_files
5655ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5656{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5657echo "$as_me: creating $CONFIG_STATUS" >&6;}
5658cat >$CONFIG_STATUS <<_ACEOF
5659#! $SHELL
5660# Generated by $as_me.
5661# Run this file to recreate the current configuration.
5662# Compiler output produced by configure, useful for debugging
5663# configure, is in config.log if it exists.
5664
5665debug=false
5666ac_cs_recheck=false
5667ac_cs_silent=false
5668SHELL=\${CONFIG_SHELL-$SHELL}
5669_ACEOF
5670
5671cat >>$CONFIG_STATUS <<\_ACEOF
5672## --------------------- ##
5673## M4sh Initialization. ##
5674## --------------------- ##
5675
5676# Be Bourne compatible
5677if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5678 emulate sh
5679 NULLCMD=:
5680 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5681 # is contrary to our usage. Disable this feature.
5682 alias -g '${1+"$@"}'='"$@"'
5683elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5684 set -o posix
5685fi
David McGrewfec49dd2005-09-23 19:34:11 +00005686DUALCASE=1; export DUALCASE # for MKS sh
Cullen Jennings235513a2005-09-21 22:51:36 +00005687
5688# Support unset when possible.
David McGrewfec49dd2005-09-23 19:34:11 +00005689if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
Cullen Jennings235513a2005-09-21 22:51:36 +00005690 as_unset=unset
5691else
5692 as_unset=false
5693fi
5694
5695
5696# Work around bugs in pre-3.0 UWIN ksh.
5697$as_unset ENV MAIL MAILPATH
5698PS1='$ '
5699PS2='> '
5700PS4='+ '
5701
5702# NLS nuisances.
5703for as_var in \
5704 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5705 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5706 LC_TELEPHONE LC_TIME
5707do
David McGrewfec49dd2005-09-23 19:34:11 +00005708 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
Cullen Jennings235513a2005-09-21 22:51:36 +00005709 eval $as_var=C; export $as_var
5710 else
5711 $as_unset $as_var
5712 fi
5713done
5714
5715# Required to use basename.
5716if expr a : '\(a\)' >/dev/null 2>&1; then
5717 as_expr=expr
5718else
5719 as_expr=false
5720fi
5721
5722if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5723 as_basename=basename
5724else
5725 as_basename=false
5726fi
5727
5728
5729# Name of the executable.
5730as_me=`$as_basename "$0" ||
5731$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5732 X"$0" : 'X\(//\)$' \| \
5733 X"$0" : 'X\(/\)$' \| \
5734 . : '\(.\)' 2>/dev/null ||
5735echo X/"$0" |
5736 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5737 /^X\/\(\/\/\)$/{ s//\1/; q; }
5738 /^X\/\(\/\).*/{ s//\1/; q; }
5739 s/.*/./; q'`
5740
5741
5742# PATH needs CR, and LINENO needs CR and PATH.
5743# Avoid depending upon Character Ranges.
5744as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5745as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5746as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5747as_cr_digits='0123456789'
5748as_cr_alnum=$as_cr_Letters$as_cr_digits
5749
5750# The user is always right.
5751if test "${PATH_SEPARATOR+set}" != set; then
5752 echo "#! /bin/sh" >conf$$.sh
5753 echo "exit 0" >>conf$$.sh
5754 chmod +x conf$$.sh
5755 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5756 PATH_SEPARATOR=';'
5757 else
5758 PATH_SEPARATOR=:
5759 fi
5760 rm -f conf$$.sh
5761fi
5762
5763
5764 as_lineno_1=$LINENO
5765 as_lineno_2=$LINENO
5766 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5767 test "x$as_lineno_1" != "x$as_lineno_2" &&
5768 test "x$as_lineno_3" = "x$as_lineno_2" || {
5769 # Find who we are. Look in the path if we contain no path at all
5770 # relative or not.
5771 case $0 in
5772 *[\\/]* ) as_myself=$0 ;;
5773 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774for as_dir in $PATH
5775do
5776 IFS=$as_save_IFS
5777 test -z "$as_dir" && as_dir=.
5778 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5779done
5780
5781 ;;
5782 esac
5783 # We did not find ourselves, most probably we were run as `sh COMMAND'
5784 # in which case we are not to be found in the path.
5785 if test "x$as_myself" = x; then
5786 as_myself=$0
5787 fi
5788 if test ! -f "$as_myself"; then
5789 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5790echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5791 { (exit 1); exit 1; }; }
5792 fi
5793 case $CONFIG_SHELL in
5794 '')
5795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5796for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5797do
5798 IFS=$as_save_IFS
5799 test -z "$as_dir" && as_dir=.
5800 for as_base in sh bash ksh sh5; do
5801 case $as_dir in
5802 /*)
5803 if ("$as_dir/$as_base" -c '
5804 as_lineno_1=$LINENO
5805 as_lineno_2=$LINENO
5806 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5807 test "x$as_lineno_1" != "x$as_lineno_2" &&
5808 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5809 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5810 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5811 CONFIG_SHELL=$as_dir/$as_base
5812 export CONFIG_SHELL
5813 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5814 fi;;
5815 esac
5816 done
5817done
5818;;
5819 esac
5820
5821 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5822 # uniformly replaced by the line number. The first 'sed' inserts a
5823 # line-number line before each line; the second 'sed' does the real
5824 # work. The second script uses 'N' to pair each line-number line
5825 # with the numbered line, and appends trailing '-' during
5826 # substitution so that $LINENO is not a special case at line end.
5827 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5828 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5829 sed '=' <$as_myself |
5830 sed '
5831 N
5832 s,$,-,
5833 : loop
5834 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5835 t loop
5836 s,-$,,
5837 s,^['$as_cr_digits']*\n,,
5838 ' >$as_me.lineno &&
5839 chmod +x $as_me.lineno ||
5840 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5841echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5842 { (exit 1); exit 1; }; }
5843
5844 # Don't try to exec as it changes $[0], causing all sort of problems
5845 # (the dirname of $[0] is not the place where we might find the
5846 # original and so on. Autoconf is especially sensible to this).
5847 . ./$as_me.lineno
5848 # Exit status is that of the last command.
5849 exit
5850}
5851
5852
5853case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5854 *c*,-n*) ECHO_N= ECHO_C='
5855' ECHO_T=' ' ;;
5856 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5857 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5858esac
5859
5860if expr a : '\(a\)' >/dev/null 2>&1; then
5861 as_expr=expr
5862else
5863 as_expr=false
5864fi
5865
5866rm -f conf$$ conf$$.exe conf$$.file
5867echo >conf$$.file
5868if ln -s conf$$.file conf$$ 2>/dev/null; then
5869 # We could just check for DJGPP; but this test a) works b) is more generic
5870 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5871 if test -f conf$$.exe; then
5872 # Don't use ln at all; we don't have any links
5873 as_ln_s='cp -p'
5874 else
5875 as_ln_s='ln -s'
5876 fi
5877elif ln conf$$.file conf$$ 2>/dev/null; then
5878 as_ln_s=ln
5879else
5880 as_ln_s='cp -p'
5881fi
5882rm -f conf$$ conf$$.exe conf$$.file
5883
5884if mkdir -p . 2>/dev/null; then
5885 as_mkdir_p=:
5886else
David McGrewfec49dd2005-09-23 19:34:11 +00005887 test -d ./-p && rmdir ./-p
Cullen Jennings235513a2005-09-21 22:51:36 +00005888 as_mkdir_p=false
5889fi
5890
5891as_executable_p="test -f"
5892
5893# Sed expression to map a string onto a valid CPP name.
David McGrewfec49dd2005-09-23 19:34:11 +00005894as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005895
5896# Sed expression to map a string onto a valid variable name.
David McGrewfec49dd2005-09-23 19:34:11 +00005897as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005898
5899
5900# IFS
5901# We need space, tab and new line, in precisely that order.
5902as_nl='
5903'
5904IFS=" $as_nl"
5905
5906# CDPATH.
5907$as_unset CDPATH
5908
5909exec 6>&1
5910
5911# Open the log real soon, to keep \$[0] and so on meaningful, and to
5912# report actual input values of CONFIG_FILES etc. instead of their
5913# values after options handling. Logging --version etc. is OK.
5914exec 5>>config.log
5915{
5916 echo
5917 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5918## Running $as_me. ##
5919_ASBOX
5920} >&5
5921cat >&5 <<_CSEOF
5922
5923This file was extended by $as_me, which was
David McGrewfec49dd2005-09-23 19:34:11 +00005924generated by GNU Autoconf 2.59. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00005925
5926 CONFIG_FILES = $CONFIG_FILES
5927 CONFIG_HEADERS = $CONFIG_HEADERS
5928 CONFIG_LINKS = $CONFIG_LINKS
5929 CONFIG_COMMANDS = $CONFIG_COMMANDS
5930 $ $0 $@
5931
5932_CSEOF
5933echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5934echo >&5
5935_ACEOF
5936
5937# Files that config.status was made for.
5938if test -n "$ac_config_files"; then
5939 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5940fi
5941
5942if test -n "$ac_config_headers"; then
5943 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5944fi
5945
5946if test -n "$ac_config_links"; then
5947 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5948fi
5949
5950if test -n "$ac_config_commands"; then
5951 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5952fi
5953
5954cat >>$CONFIG_STATUS <<\_ACEOF
5955
5956ac_cs_usage="\
5957\`$as_me' instantiates files from templates according to the
5958current configuration.
5959
5960Usage: $0 [OPTIONS] [FILE]...
5961
5962 -h, --help print this help, then exit
5963 -V, --version print version number, then exit
5964 -q, --quiet do not print progress messages
5965 -d, --debug don't remove temporary files
5966 --recheck update $as_me by reconfiguring in the same conditions
5967 --file=FILE[:TEMPLATE]
David McGrewfec49dd2005-09-23 19:34:11 +00005968 instantiate the configuration file FILE
Cullen Jennings235513a2005-09-21 22:51:36 +00005969 --header=FILE[:TEMPLATE]
David McGrewfec49dd2005-09-23 19:34:11 +00005970 instantiate the configuration header FILE
Cullen Jennings235513a2005-09-21 22:51:36 +00005971
5972Configuration files:
5973$config_files
5974
5975Configuration headers:
5976$config_headers
5977
5978Report bugs to <bug-autoconf@gnu.org>."
5979_ACEOF
5980
5981cat >>$CONFIG_STATUS <<_ACEOF
5982ac_cs_version="\\
5983config.status
David McGrewfec49dd2005-09-23 19:34:11 +00005984configured by $0, generated by GNU Autoconf 2.59,
Cullen Jennings235513a2005-09-21 22:51:36 +00005985 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5986
David McGrewfec49dd2005-09-23 19:34:11 +00005987Copyright (C) 2003 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00005988This config.status script is free software; the Free Software Foundation
5989gives unlimited permission to copy, distribute and modify it."
5990srcdir=$srcdir
David McGrewb67061f2005-09-28 14:23:06 +00005991INSTALL="$INSTALL"
Cullen Jennings235513a2005-09-21 22:51:36 +00005992_ACEOF
5993
5994cat >>$CONFIG_STATUS <<\_ACEOF
5995# If no file are specified by the user, then we need to provide default
5996# value. By we need to know if files were specified by the user.
5997ac_need_defaults=:
5998while test $# != 0
5999do
6000 case $1 in
6001 --*=*)
6002 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6003 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6004 ac_shift=:
6005 ;;
6006 -*)
6007 ac_option=$1
6008 ac_optarg=$2
6009 ac_shift=shift
6010 ;;
6011 *) # This is not an option, so the user has probably given explicit
6012 # arguments.
6013 ac_option=$1
6014 ac_need_defaults=false;;
6015 esac
6016
6017 case $ac_option in
6018 # Handling of the options.
6019_ACEOF
6020cat >>$CONFIG_STATUS <<\_ACEOF
6021 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6022 ac_cs_recheck=: ;;
6023 --version | --vers* | -V )
6024 echo "$ac_cs_version"; exit 0 ;;
6025 --he | --h)
6026 # Conflict between --help and --header
6027 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6028Try \`$0 --help' for more information." >&5
6029echo "$as_me: error: ambiguous option: $1
6030Try \`$0 --help' for more information." >&2;}
6031 { (exit 1); exit 1; }; };;
6032 --help | --hel | -h )
6033 echo "$ac_cs_usage"; exit 0 ;;
6034 --debug | --d* | -d )
6035 debug=: ;;
6036 --file | --fil | --fi | --f )
6037 $ac_shift
6038 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6039 ac_need_defaults=false;;
6040 --header | --heade | --head | --hea )
6041 $ac_shift
6042 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6043 ac_need_defaults=false;;
6044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6045 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6046 ac_cs_silent=: ;;
6047
6048 # This is an error.
6049 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6050Try \`$0 --help' for more information." >&5
6051echo "$as_me: error: unrecognized option: $1
6052Try \`$0 --help' for more information." >&2;}
6053 { (exit 1); exit 1; }; } ;;
6054
6055 *) ac_config_targets="$ac_config_targets $1" ;;
6056
6057 esac
6058 shift
6059done
6060
6061ac_configure_extra_args=
6062
6063if $ac_cs_silent; then
6064 exec 6>/dev/null
6065 ac_configure_extra_args="$ac_configure_extra_args --silent"
6066fi
6067
6068_ACEOF
6069cat >>$CONFIG_STATUS <<_ACEOF
6070if \$ac_cs_recheck; then
6071 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6072 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6073fi
6074
6075_ACEOF
6076
6077
6078
6079
6080
6081cat >>$CONFIG_STATUS <<\_ACEOF
6082for ac_config_target in $ac_config_targets
6083do
6084 case "$ac_config_target" in
6085 # Handling of arguments.
6086 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Marcus Sundbergfffdbfe2005-09-29 13:30:54 +00006087 "crypto/Makefile" ) CONFIG_FILES="$CONFIG_FILES crypto/Makefile" ;;
6088 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
David McGrewfec49dd2005-09-23 19:34:11 +00006089 "crypto/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS crypto/include/config.h:config_in.h" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006090 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6091echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6092 { (exit 1); exit 1; }; };;
6093 esac
6094done
6095
6096# If the user did not use the arguments to specify the items to instantiate,
6097# then the envvar interface is used. Set only those that are not.
6098# We use the long form for the default assignment because of an extremely
6099# bizarre bug on SunOS 4.1.3.
6100if $ac_need_defaults; then
6101 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6102 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6103fi
6104
6105# Have a temporary directory for convenience. Make it in the build tree
6106# simply because there is no reason to put it here, and in addition,
6107# creating and moving files from /tmp can sometimes cause problems.
6108# Create a temporary directory, and hook for its removal unless debugging.
6109$debug ||
6110{
6111 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6112 trap '{ (exit 1); exit 1; }' 1 2 13 15
6113}
6114
6115# Create a (secure) tmp directory for tmp files.
6116
6117{
6118 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6119 test -n "$tmp" && test -d "$tmp"
6120} ||
6121{
6122 tmp=./confstat$$-$RANDOM
6123 (umask 077 && mkdir $tmp)
6124} ||
6125{
6126 echo "$me: cannot create a temporary directory in ." >&2
6127 { (exit 1); exit 1; }
6128}
6129
6130_ACEOF
6131
6132cat >>$CONFIG_STATUS <<_ACEOF
6133
6134#
6135# CONFIG_FILES section.
6136#
6137
6138# No need to generate the scripts if there are no CONFIG_FILES.
6139# This happens for instance when ./config.status config.h
6140if test -n "\$CONFIG_FILES"; then
6141 # Protect against being on the right side of a sed subst in config.status.
6142 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6143 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6144s,@SHELL@,$SHELL,;t t
6145s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6146s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6147s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6148s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6149s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6150s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6151s,@exec_prefix@,$exec_prefix,;t t
6152s,@prefix@,$prefix,;t t
6153s,@program_transform_name@,$program_transform_name,;t t
6154s,@bindir@,$bindir,;t t
6155s,@sbindir@,$sbindir,;t t
6156s,@libexecdir@,$libexecdir,;t t
6157s,@datadir@,$datadir,;t t
6158s,@sysconfdir@,$sysconfdir,;t t
6159s,@sharedstatedir@,$sharedstatedir,;t t
6160s,@localstatedir@,$localstatedir,;t t
6161s,@libdir@,$libdir,;t t
6162s,@includedir@,$includedir,;t t
6163s,@oldincludedir@,$oldincludedir,;t t
6164s,@infodir@,$infodir,;t t
6165s,@mandir@,$mandir,;t t
6166s,@build_alias@,$build_alias,;t t
6167s,@host_alias@,$host_alias,;t t
6168s,@target_alias@,$target_alias,;t t
6169s,@DEFS@,$DEFS,;t t
6170s,@ECHO_C@,$ECHO_C,;t t
6171s,@ECHO_N@,$ECHO_N,;t t
6172s,@ECHO_T@,$ECHO_T,;t t
6173s,@LIBS@,$LIBS,;t t
6174s,@RANLIB@,$RANLIB,;t t
6175s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6176s,@CC@,$CC,;t t
6177s,@CFLAGS@,$CFLAGS,;t t
6178s,@LDFLAGS@,$LDFLAGS,;t t
6179s,@CPPFLAGS@,$CPPFLAGS,;t t
6180s,@ac_ct_CC@,$ac_ct_CC,;t t
6181s,@EXEEXT@,$EXEEXT,;t t
6182s,@OBJEXT@,$OBJEXT,;t t
David McGrewb67061f2005-09-28 14:23:06 +00006183s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6184s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6185s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Cullen Jennings235513a2005-09-21 22:51:36 +00006186s,@RNG_OBJS@,$RNG_OBJS,;t t
6187s,@CPP@,$CPP,;t t
6188s,@EGREP@,$EGREP,;t t
Cullen Jennings235513a2005-09-21 22:51:36 +00006189s,@build@,$build,;t t
6190s,@build_cpu@,$build_cpu,;t t
6191s,@build_vendor@,$build_vendor,;t t
6192s,@build_os@,$build_os,;t t
6193s,@host@,$host,;t t
6194s,@host_cpu@,$host_cpu,;t t
6195s,@host_vendor@,$host_vendor,;t t
6196s,@host_os@,$host_os,;t t
6197s,@EXE@,$EXE,;t t
6198s,@GDOI_OBJS@,$GDOI_OBJS,;t t
David McGrewb67061f2005-09-28 14:23:06 +00006199s,@LIBOBJS@,$LIBOBJS,;t t
Cullen Jennings235513a2005-09-21 22:51:36 +00006200s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6201CEOF
6202
6203_ACEOF
6204
6205 cat >>$CONFIG_STATUS <<\_ACEOF
6206 # Split the substitutions into bite-sized pieces for seds with
6207 # small command number limits, like on Digital OSF/1 and HP-UX.
6208 ac_max_sed_lines=48
6209 ac_sed_frag=1 # Number of current file.
6210 ac_beg=1 # First line for current file.
6211 ac_end=$ac_max_sed_lines # Line after last line for current file.
6212 ac_more_lines=:
6213 ac_sed_cmds=
6214 while $ac_more_lines; do
6215 if test $ac_beg -gt 1; then
6216 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6217 else
6218 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6219 fi
6220 if test ! -s $tmp/subs.frag; then
6221 ac_more_lines=false
6222 else
6223 # The purpose of the label and of the branching condition is to
6224 # speed up the sed processing (if there are no `@' at all, there
6225 # is no need to browse any of the substitutions).
6226 # These are the two extra sed commands mentioned above.
6227 (echo ':t
6228 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6229 if test -z "$ac_sed_cmds"; then
David McGrewfec49dd2005-09-23 19:34:11 +00006230 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
Cullen Jennings235513a2005-09-21 22:51:36 +00006231 else
David McGrewfec49dd2005-09-23 19:34:11 +00006232 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
Cullen Jennings235513a2005-09-21 22:51:36 +00006233 fi
6234 ac_sed_frag=`expr $ac_sed_frag + 1`
6235 ac_beg=$ac_end
6236 ac_end=`expr $ac_end + $ac_max_sed_lines`
6237 fi
6238 done
6239 if test -z "$ac_sed_cmds"; then
6240 ac_sed_cmds=cat
6241 fi
6242fi # test -n "$CONFIG_FILES"
6243
6244_ACEOF
6245cat >>$CONFIG_STATUS <<\_ACEOF
6246for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6247 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6248 case $ac_file in
6249 - | *:- | *:-:* ) # input from stdin
David McGrewfec49dd2005-09-23 19:34:11 +00006250 cat >$tmp/stdin
6251 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6252 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006253 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
David McGrewfec49dd2005-09-23 19:34:11 +00006254 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006255 * ) ac_file_in=$ac_file.in ;;
6256 esac
6257
6258 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6259 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6260$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
David McGrewfec49dd2005-09-23 19:34:11 +00006261 X"$ac_file" : 'X\(//\)[^/]' \| \
6262 X"$ac_file" : 'X\(//\)$' \| \
6263 X"$ac_file" : 'X\(/\)' \| \
6264 . : '\(.\)' 2>/dev/null ||
Cullen Jennings235513a2005-09-21 22:51:36 +00006265echo X"$ac_file" |
6266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6267 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6268 /^X\(\/\/\)$/{ s//\1/; q; }
6269 /^X\(\/\).*/{ s//\1/; q; }
6270 s/.*/./; q'`
6271 { if $as_mkdir_p; then
6272 mkdir -p "$ac_dir"
6273 else
6274 as_dir="$ac_dir"
6275 as_dirs=
6276 while test ! -d "$as_dir"; do
6277 as_dirs="$as_dir $as_dirs"
6278 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6279$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
David McGrewfec49dd2005-09-23 19:34:11 +00006280 X"$as_dir" : 'X\(//\)[^/]' \| \
6281 X"$as_dir" : 'X\(//\)$' \| \
6282 X"$as_dir" : 'X\(/\)' \| \
6283 . : '\(.\)' 2>/dev/null ||
Cullen Jennings235513a2005-09-21 22:51:36 +00006284echo X"$as_dir" |
6285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6286 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6287 /^X\(\/\/\)$/{ s//\1/; q; }
6288 /^X\(\/\).*/{ s//\1/; q; }
6289 s/.*/./; q'`
6290 done
6291 test ! -n "$as_dirs" || mkdir $as_dirs
6292 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6293echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6294 { (exit 1); exit 1; }; }; }
6295
6296 ac_builddir=.
6297
6298if test "$ac_dir" != .; then
6299 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6300 # A "../" for each directory in $ac_dir_suffix.
6301 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6302else
6303 ac_dir_suffix= ac_top_builddir=
6304fi
6305
6306case $srcdir in
6307 .) # No --srcdir option. We are building in place.
6308 ac_srcdir=.
6309 if test -z "$ac_top_builddir"; then
6310 ac_top_srcdir=.
6311 else
6312 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6313 fi ;;
6314 [\\/]* | ?:[\\/]* ) # Absolute path.
6315 ac_srcdir=$srcdir$ac_dir_suffix;
6316 ac_top_srcdir=$srcdir ;;
6317 *) # Relative path.
6318 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6319 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6320esac
David McGrewfec49dd2005-09-23 19:34:11 +00006321
6322# Do not use `cd foo && pwd` to compute absolute paths, because
6323# the directories may not exist.
6324case `pwd` in
6325.) ac_abs_builddir="$ac_dir";;
6326*)
6327 case "$ac_dir" in
6328 .) ac_abs_builddir=`pwd`;;
6329 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6330 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6331 esac;;
6332esac
6333case $ac_abs_builddir in
6334.) ac_abs_top_builddir=${ac_top_builddir}.;;
6335*)
6336 case ${ac_top_builddir}. in
6337 .) ac_abs_top_builddir=$ac_abs_builddir;;
6338 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6339 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6340 esac;;
6341esac
6342case $ac_abs_builddir in
6343.) ac_abs_srcdir=$ac_srcdir;;
6344*)
6345 case $ac_srcdir in
6346 .) ac_abs_srcdir=$ac_abs_builddir;;
6347 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6348 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6349 esac;;
6350esac
6351case $ac_abs_builddir in
6352.) ac_abs_top_srcdir=$ac_top_srcdir;;
6353*)
6354 case $ac_top_srcdir in
6355 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6356 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6357 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6358 esac;;
6359esac
Cullen Jennings235513a2005-09-21 22:51:36 +00006360
6361
David McGrewb67061f2005-09-28 14:23:06 +00006362 case $INSTALL in
6363 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6364 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6365 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00006366
6367 if test x"$ac_file" != x-; then
6368 { echo "$as_me:$LINENO: creating $ac_file" >&5
6369echo "$as_me: creating $ac_file" >&6;}
6370 rm -f "$ac_file"
6371 fi
6372 # Let's still pretend it is `configure' which instantiates (i.e., don't
6373 # use $as_me), people would be surprised to read:
6374 # /* config.h. Generated by config.status. */
6375 if test x"$ac_file" = x-; then
6376 configure_input=
6377 else
6378 configure_input="$ac_file. "
6379 fi
6380 configure_input=$configure_input"Generated from `echo $ac_file_in |
David McGrewfec49dd2005-09-23 19:34:11 +00006381 sed 's,.*/,,'` by configure."
Cullen Jennings235513a2005-09-21 22:51:36 +00006382
6383 # First look for the input files in the build tree, otherwise in the
6384 # src tree.
6385 ac_file_inputs=`IFS=:
6386 for f in $ac_file_in; do
6387 case $f in
6388 -) echo $tmp/stdin ;;
6389 [\\/$]*)
David McGrewfec49dd2005-09-23 19:34:11 +00006390 # Absolute (can't be DOS-style, as IFS=:)
6391 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00006392echo "$as_me: error: cannot find input file: $f" >&2;}
6393 { (exit 1); exit 1; }; }
David McGrewfec49dd2005-09-23 19:34:11 +00006394 echo "$f";;
Cullen Jennings235513a2005-09-21 22:51:36 +00006395 *) # Relative
David McGrewfec49dd2005-09-23 19:34:11 +00006396 if test -f "$f"; then
6397 # Build tree
6398 echo "$f"
6399 elif test -f "$srcdir/$f"; then
6400 # Source tree
6401 echo "$srcdir/$f"
6402 else
6403 # /dev/null tree
6404 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00006405echo "$as_me: error: cannot find input file: $f" >&2;}
6406 { (exit 1); exit 1; }; }
David McGrewfec49dd2005-09-23 19:34:11 +00006407 fi;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006408 esac
6409 done` || { (exit 1); exit 1; }
6410_ACEOF
6411cat >>$CONFIG_STATUS <<_ACEOF
6412 sed "$ac_vpsub
6413$extrasub
6414_ACEOF
6415cat >>$CONFIG_STATUS <<\_ACEOF
6416:t
6417/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6418s,@configure_input@,$configure_input,;t t
6419s,@srcdir@,$ac_srcdir,;t t
6420s,@abs_srcdir@,$ac_abs_srcdir,;t t
6421s,@top_srcdir@,$ac_top_srcdir,;t t
6422s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6423s,@builddir@,$ac_builddir,;t t
6424s,@abs_builddir@,$ac_abs_builddir,;t t
6425s,@top_builddir@,$ac_top_builddir,;t t
6426s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
David McGrewb67061f2005-09-28 14:23:06 +00006427s,@INSTALL@,$ac_INSTALL,;t t
Cullen Jennings235513a2005-09-21 22:51:36 +00006428" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6429 rm -f $tmp/stdin
6430 if test x"$ac_file" != x-; then
6431 mv $tmp/out $ac_file
6432 else
6433 cat $tmp/out
6434 rm -f $tmp/out
6435 fi
6436
6437done
6438_ACEOF
6439cat >>$CONFIG_STATUS <<\_ACEOF
6440
6441#
6442# CONFIG_HEADER section.
6443#
6444
6445# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6446# NAME is the cpp macro being defined and VALUE is the value it is being given.
6447#
6448# ac_d sets the value in "#define NAME VALUE" lines.
David McGrewfec49dd2005-09-23 19:34:11 +00006449ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6450ac_dB='[ ].*$,\1#\2'
Cullen Jennings235513a2005-09-21 22:51:36 +00006451ac_dC=' '
6452ac_dD=',;t'
6453# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
David McGrewfec49dd2005-09-23 19:34:11 +00006454ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
Cullen Jennings235513a2005-09-21 22:51:36 +00006455ac_uB='$,\1#\2define\3'
6456ac_uC=' '
6457ac_uD=',;t'
6458
6459for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6460 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6461 case $ac_file in
6462 - | *:- | *:-:* ) # input from stdin
David McGrewfec49dd2005-09-23 19:34:11 +00006463 cat >$tmp/stdin
6464 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6465 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006466 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
David McGrewfec49dd2005-09-23 19:34:11 +00006467 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006468 * ) ac_file_in=$ac_file.in ;;
6469 esac
6470
6471 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6472echo "$as_me: creating $ac_file" >&6;}
6473
6474 # First look for the input files in the build tree, otherwise in the
6475 # src tree.
6476 ac_file_inputs=`IFS=:
6477 for f in $ac_file_in; do
6478 case $f in
6479 -) echo $tmp/stdin ;;
6480 [\\/$]*)
David McGrewfec49dd2005-09-23 19:34:11 +00006481 # Absolute (can't be DOS-style, as IFS=:)
6482 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00006483echo "$as_me: error: cannot find input file: $f" >&2;}
6484 { (exit 1); exit 1; }; }
David McGrewfec49dd2005-09-23 19:34:11 +00006485 # Do quote $f, to prevent DOS paths from being IFS'd.
6486 echo "$f";;
Cullen Jennings235513a2005-09-21 22:51:36 +00006487 *) # Relative
David McGrewfec49dd2005-09-23 19:34:11 +00006488 if test -f "$f"; then
6489 # Build tree
6490 echo "$f"
6491 elif test -f "$srcdir/$f"; then
6492 # Source tree
6493 echo "$srcdir/$f"
6494 else
6495 # /dev/null tree
6496 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00006497echo "$as_me: error: cannot find input file: $f" >&2;}
6498 { (exit 1); exit 1; }; }
David McGrewfec49dd2005-09-23 19:34:11 +00006499 fi;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006500 esac
6501 done` || { (exit 1); exit 1; }
6502 # Remove the trailing spaces.
David McGrewfec49dd2005-09-23 19:34:11 +00006503 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Cullen Jennings235513a2005-09-21 22:51:36 +00006504
6505_ACEOF
6506
6507# Transform confdefs.h into two sed scripts, `conftest.defines' and
6508# `conftest.undefs', that substitutes the proper values into
6509# config.h.in to produce config.h. The first handles `#define'
6510# templates, and the second `#undef' templates.
6511# And first: Protect against being on the right side of a sed subst in
6512# config.status. Protect against being in an unquoted here document
6513# in config.status.
6514rm -f conftest.defines conftest.undefs
6515# Using a here document instead of a string reduces the quoting nightmare.
6516# Putting comments in sed scripts is not portable.
6517#
6518# `end' is used to avoid that the second main sed command (meant for
6519# 0-ary CPP macros) applies to n-ary macro definitions.
6520# See the Autoconf documentation for `clear'.
6521cat >confdef2sed.sed <<\_ACEOF
6522s/[\\&,]/\\&/g
6523s,[\\$`],\\&,g
6524t clear
6525: clear
David McGrewfec49dd2005-09-23 19:34:11 +00006526s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
Cullen Jennings235513a2005-09-21 22:51:36 +00006527t end
David McGrewfec49dd2005-09-23 19:34:11 +00006528s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
Cullen Jennings235513a2005-09-21 22:51:36 +00006529: end
6530_ACEOF
6531# If some macros were called several times there might be several times
6532# the same #defines, which is useless. Nevertheless, we may not want to
6533# sort them, since we want the *last* AC-DEFINE to be honored.
6534uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6535sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6536rm -f confdef2sed.sed
6537
6538# This sed command replaces #undef with comments. This is necessary, for
6539# example, in the case of _POSIX_SOURCE, which is predefined and required
6540# on some systems where configure will not decide to define it.
6541cat >>conftest.undefs <<\_ACEOF
David McGrewfec49dd2005-09-23 19:34:11 +00006542s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
Cullen Jennings235513a2005-09-21 22:51:36 +00006543_ACEOF
6544
6545# Break up conftest.defines because some shells have a limit on the size
6546# of here documents, and old seds have small limits too (100 cmds).
6547echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
David McGrewfec49dd2005-09-23 19:34:11 +00006548echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
Cullen Jennings235513a2005-09-21 22:51:36 +00006549echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6550echo ' :' >>$CONFIG_STATUS
6551rm -f conftest.tail
6552while grep . conftest.defines >/dev/null
6553do
6554 # Write a limited-size here document to $tmp/defines.sed.
6555 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6556 # Speed up: don't consider the non `#define' lines.
David McGrewfec49dd2005-09-23 19:34:11 +00006557 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
Cullen Jennings235513a2005-09-21 22:51:36 +00006558 # Work around the forget-to-reset-the-flag bug.
6559 echo 't clr' >>$CONFIG_STATUS
6560 echo ': clr' >>$CONFIG_STATUS
6561 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6562 echo 'CEOF
6563 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6564 rm -f $tmp/in
6565 mv $tmp/out $tmp/in
6566' >>$CONFIG_STATUS
6567 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6568 rm -f conftest.defines
6569 mv conftest.tail conftest.defines
6570done
6571rm -f conftest.defines
6572echo ' fi # grep' >>$CONFIG_STATUS
6573echo >>$CONFIG_STATUS
6574
6575# Break up conftest.undefs because some shells have a limit on the size
6576# of here documents, and old seds have small limits too (100 cmds).
6577echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6578rm -f conftest.tail
6579while grep . conftest.undefs >/dev/null
6580do
6581 # Write a limited-size here document to $tmp/undefs.sed.
6582 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6583 # Speed up: don't consider the non `#undef'
David McGrewfec49dd2005-09-23 19:34:11 +00006584 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
Cullen Jennings235513a2005-09-21 22:51:36 +00006585 # Work around the forget-to-reset-the-flag bug.
6586 echo 't clr' >>$CONFIG_STATUS
6587 echo ': clr' >>$CONFIG_STATUS
6588 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6589 echo 'CEOF
6590 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6591 rm -f $tmp/in
6592 mv $tmp/out $tmp/in
6593' >>$CONFIG_STATUS
6594 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6595 rm -f conftest.undefs
6596 mv conftest.tail conftest.undefs
6597done
6598rm -f conftest.undefs
6599
6600cat >>$CONFIG_STATUS <<\_ACEOF
6601 # Let's still pretend it is `configure' which instantiates (i.e., don't
6602 # use $as_me), people would be surprised to read:
6603 # /* config.h. Generated by config.status. */
6604 if test x"$ac_file" = x-; then
6605 echo "/* Generated by configure. */" >$tmp/config.h
6606 else
6607 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6608 fi
6609 cat $tmp/in >>$tmp/config.h
6610 rm -f $tmp/in
6611 if test x"$ac_file" != x-; then
6612 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6613 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6614echo "$as_me: $ac_file is unchanged" >&6;}
6615 else
6616 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6617$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
David McGrewfec49dd2005-09-23 19:34:11 +00006618 X"$ac_file" : 'X\(//\)[^/]' \| \
6619 X"$ac_file" : 'X\(//\)$' \| \
6620 X"$ac_file" : 'X\(/\)' \| \
6621 . : '\(.\)' 2>/dev/null ||
Cullen Jennings235513a2005-09-21 22:51:36 +00006622echo X"$ac_file" |
6623 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6624 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6625 /^X\(\/\/\)$/{ s//\1/; q; }
6626 /^X\(\/\).*/{ s//\1/; q; }
6627 s/.*/./; q'`
6628 { if $as_mkdir_p; then
6629 mkdir -p "$ac_dir"
6630 else
6631 as_dir="$ac_dir"
6632 as_dirs=
6633 while test ! -d "$as_dir"; do
6634 as_dirs="$as_dir $as_dirs"
6635 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6636$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
David McGrewfec49dd2005-09-23 19:34:11 +00006637 X"$as_dir" : 'X\(//\)[^/]' \| \
6638 X"$as_dir" : 'X\(//\)$' \| \
6639 X"$as_dir" : 'X\(/\)' \| \
6640 . : '\(.\)' 2>/dev/null ||
Cullen Jennings235513a2005-09-21 22:51:36 +00006641echo X"$as_dir" |
6642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6643 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6644 /^X\(\/\/\)$/{ s//\1/; q; }
6645 /^X\(\/\).*/{ s//\1/; q; }
6646 s/.*/./; q'`
6647 done
6648 test ! -n "$as_dirs" || mkdir $as_dirs
6649 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6650echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6651 { (exit 1); exit 1; }; }; }
6652
6653 rm -f $ac_file
6654 mv $tmp/config.h $ac_file
6655 fi
6656 else
6657 cat $tmp/config.h
6658 rm -f $tmp/config.h
6659 fi
6660done
6661_ACEOF
6662
6663cat >>$CONFIG_STATUS <<\_ACEOF
6664
6665{ (exit 0); exit 0; }
6666_ACEOF
6667chmod +x $CONFIG_STATUS
6668ac_clean_files=$ac_clean_files_save
6669
6670
6671# configure is writing to config.log, and then calls config.status.
6672# config.status does its own redirection, appending to config.log.
6673# Unfortunately, on DOS this fails, as config.log is still kept open
6674# by configure, so config.status won't be able to write to it; its
6675# output is simply discarded. So we exec the FD to /dev/null,
6676# effectively closing config.log, so it can be properly (re)opened and
6677# appended to by config.status. When coming back to configure, we
6678# need to make the FD available again.
6679if test "$no_create" != yes; then
6680 ac_cs_success=:
6681 ac_config_status_args=
6682 test "$silent" = yes &&
6683 ac_config_status_args="$ac_config_status_args --quiet"
6684 exec 5>/dev/null
6685 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6686 exec 5>>config.log
6687 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6688 # would make configure fail if this is the last instruction.
6689 $ac_cs_success || { (exit 1); exit 1; }
6690fi
6691