blob: 8840a2880c44d1d8d3b0965d3a4c3361d3368f1a [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
3571for ac_header in machine/types.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
Cullen Jennings235513a2005-09-21 22:51:36 +00003587/* 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
David McGrewfec49dd2005-09-23 19:34:11 +00003597 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00003598 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00003599 grep -v '^ *+' conftest.er1 >conftest.err
3600 rm -f conftest.er1
3601 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00003602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00003604 { 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'
Cullen Jennings235513a2005-09-21 22:51:36 +00003612 { (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
David McGrewfec49dd2005-09-23 19:34:11 +00003624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003625echo "$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
Cullen Jennings235513a2005-09-21 22:51:36 +00003632/* 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
David McGrewfec49dd2005-09-23 19:34:11 +00003649 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Cullen Jennings235513a2005-09-21 22:51:36 +00003650 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?
David McGrewfec49dd2005-09-23 19:34:11 +00003669case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3670 yes:no: )
Cullen Jennings235513a2005-09-21 22:51:36 +00003671 { 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;}
David McGrewfec49dd2005-09-23 19:34:11 +00003673 { 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
Cullen Jennings235513a2005-09-21 22:51:36 +00003676 ;;
David McGrewfec49dd2005-09-23 19:34:11 +00003677 no:yes:* )
Cullen Jennings235513a2005-09-21 22:51:36 +00003678 { 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;}
David McGrewfec49dd2005-09-23 19:34:11 +00003680 { 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;}
Cullen Jennings235513a2005-09-21 22:51:36 +00003686 { 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;}
David McGrewfec49dd2005-09-23 19:34:11 +00003688 { 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;}
Cullen Jennings235513a2005-09-21 22:51:36 +00003690 (
3691 cat <<\_ASBOX
David McGrewfec49dd2005-09-23 19:34:11 +00003692## ------------------------------------------ ##
3693## Report this to the AC_PACKAGE_NAME lists. ##
3694## ------------------------------------------ ##
Cullen Jennings235513a2005-09-21 22:51:36 +00003695_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
David McGrewfec49dd2005-09-23 19:34:11 +00003705 eval "$as_ac_Header=\$ac_header_preproc"
Cullen Jennings235513a2005-09-21 22:51:36 +00003706fi
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
3721for ac_header in sys/int_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
3871
3872for ac_header in syslog.h
3873do
3874as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3875if eval "test \"\${$as_ac_Header+set}\" = set"; then
3876 echo "$as_me:$LINENO: checking for $ac_header" >&5
3877echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3878if eval "test \"\${$as_ac_Header+set}\" = set"; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3880fi
3881echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3882echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3883else
3884 # Is the header compilable?
3885echo "$as_me:$LINENO: checking $ac_header usability" >&5
3886echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3887cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00003888/* confdefs.h. */
3889_ACEOF
3890cat confdefs.h >>conftest.$ac_ext
3891cat >>conftest.$ac_ext <<_ACEOF
3892/* end confdefs.h. */
3893$ac_includes_default
3894#include <$ac_header>
3895_ACEOF
3896rm -f conftest.$ac_objext
3897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00003898 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00003899 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00003900 grep -v '^ *+' conftest.er1 >conftest.err
3901 rm -f conftest.er1
3902 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00003903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00003905 { ac_try='test -z "$ac_c_werror_flag"
3906 || test ! -s conftest.err'
3907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3908 (eval $ac_try) 2>&5
3909 ac_status=$?
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); }; } &&
3912 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00003913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914 (eval $ac_try) 2>&5
3915 ac_status=$?
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); }; }; then
3918 ac_header_compiler=yes
3919else
3920 echo "$as_me: failed program was:" >&5
3921sed 's/^/| /' conftest.$ac_ext >&5
3922
3923ac_header_compiler=no
3924fi
David McGrewfec49dd2005-09-23 19:34:11 +00003925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003926echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3927echo "${ECHO_T}$ac_header_compiler" >&6
3928
3929# Is the header present?
3930echo "$as_me:$LINENO: checking $ac_header presence" >&5
3931echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3932cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00003933/* confdefs.h. */
3934_ACEOF
3935cat confdefs.h >>conftest.$ac_ext
3936cat >>conftest.$ac_ext <<_ACEOF
3937/* end confdefs.h. */
3938#include <$ac_header>
3939_ACEOF
3940if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3942 ac_status=$?
3943 grep -v '^ *+' conftest.er1 >conftest.err
3944 rm -f conftest.er1
3945 cat conftest.err >&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); } >/dev/null; then
3948 if test -s conftest.err; then
3949 ac_cpp_err=$ac_c_preproc_warn_flag
David McGrewfec49dd2005-09-23 19:34:11 +00003950 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Cullen Jennings235513a2005-09-21 22:51:36 +00003951 else
3952 ac_cpp_err=
3953 fi
3954else
3955 ac_cpp_err=yes
3956fi
3957if test -z "$ac_cpp_err"; then
3958 ac_header_preproc=yes
3959else
3960 echo "$as_me: failed program was:" >&5
3961sed 's/^/| /' conftest.$ac_ext >&5
3962
3963 ac_header_preproc=no
3964fi
3965rm -f conftest.err conftest.$ac_ext
3966echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3967echo "${ECHO_T}$ac_header_preproc" >&6
3968
3969# So? What about this header?
David McGrewfec49dd2005-09-23 19:34:11 +00003970case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3971 yes:no: )
Cullen Jennings235513a2005-09-21 22:51:36 +00003972 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3973echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00003974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3975echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3976 ac_header_preproc=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00003977 ;;
David McGrewfec49dd2005-09-23 19:34:11 +00003978 no:yes:* )
Cullen Jennings235513a2005-09-21 22:51:36 +00003979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3980echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00003981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3982echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3983 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3984echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3985 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3986echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00003987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3988echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00003989 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3990echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00003991 (
3992 cat <<\_ASBOX
David McGrewfec49dd2005-09-23 19:34:11 +00003993## ------------------------------------------ ##
3994## Report this to the AC_PACKAGE_NAME lists. ##
3995## ------------------------------------------ ##
Cullen Jennings235513a2005-09-21 22:51:36 +00003996_ASBOX
3997 ) |
3998 sed "s/^/$as_me: WARNING: /" >&2
3999 ;;
4000esac
4001echo "$as_me:$LINENO: checking for $ac_header" >&5
4002echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4003if eval "test \"\${$as_ac_Header+set}\" = set"; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4005else
David McGrewfec49dd2005-09-23 19:34:11 +00004006 eval "$as_ac_Header=\$ac_header_preproc"
Cullen Jennings235513a2005-09-21 22:51:36 +00004007fi
4008echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4009echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4010
4011fi
4012if test `eval echo '${'$as_ac_Header'}'` = yes; then
4013 cat >>confdefs.h <<_ACEOF
4014#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4015_ACEOF
4016
4017fi
4018
4019done
4020
4021
David McGrewfec49dd2005-09-23 19:34:11 +00004022echo "$as_me:$LINENO: checking for int8" >&5
4023echo $ECHO_N "checking for int8... $ECHO_C" >&6
4024if test "${ac_cv_type_int8+set}" = set; then
Cullen Jennings235513a2005-09-21 22:51:36 +00004025 echo $ECHO_N "(cached) $ECHO_C" >&6
4026else
4027 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00004028/* confdefs.h. */
4029_ACEOF
4030cat confdefs.h >>conftest.$ac_ext
4031cat >>conftest.$ac_ext <<_ACEOF
4032/* end confdefs.h. */
4033$ac_includes_default
4034int
4035main ()
4036{
David McGrewfec49dd2005-09-23 19:34:11 +00004037if ((int8 *) 0)
Cullen Jennings235513a2005-09-21 22:51:36 +00004038 return 0;
David McGrewfec49dd2005-09-23 19:34:11 +00004039if (sizeof (int8))
Cullen Jennings235513a2005-09-21 22:51:36 +00004040 return 0;
4041 ;
4042 return 0;
4043}
4044_ACEOF
4045rm -f conftest.$ac_objext
4046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00004047 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00004048 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00004049 grep -v '^ *+' conftest.er1 >conftest.err
4050 rm -f conftest.er1
4051 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00004052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00004054 { ac_try='test -z "$ac_c_werror_flag"
4055 || test ! -s conftest.err'
4056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057 (eval $ac_try) 2>&5
4058 ac_status=$?
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); }; } &&
4061 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00004062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4063 (eval $ac_try) 2>&5
4064 ac_status=$?
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); }; }; then
David McGrewfec49dd2005-09-23 19:34:11 +00004067 ac_cv_type_int8=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00004068else
4069 echo "$as_me: failed program was:" >&5
4070sed 's/^/| /' conftest.$ac_ext >&5
4071
David McGrewfec49dd2005-09-23 19:34:11 +00004072ac_cv_type_int8=no
Cullen Jennings235513a2005-09-21 22:51:36 +00004073fi
David McGrewfec49dd2005-09-23 19:34:11 +00004074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004075fi
David McGrewfec49dd2005-09-23 19:34:11 +00004076echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
4077echo "${ECHO_T}$ac_cv_type_int8" >&6
4078if test $ac_cv_type_int8 = yes; then
Cullen Jennings235513a2005-09-21 22:51:36 +00004079
David McGrewfec49dd2005-09-23 19:34:11 +00004080cat >>confdefs.h <<_ACEOF
4081#define HAVE_INT8 1
4082_ACEOF
4083
4084
4085fi
4086echo "$as_me:$LINENO: checking for uint8" >&5
4087echo $ECHO_N "checking for uint8... $ECHO_C" >&6
4088if test "${ac_cv_type_uint8+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4090else
4091 cat >conftest.$ac_ext <<_ACEOF
4092/* confdefs.h. */
4093_ACEOF
4094cat confdefs.h >>conftest.$ac_ext
4095cat >>conftest.$ac_ext <<_ACEOF
4096/* end confdefs.h. */
4097$ac_includes_default
4098int
4099main ()
4100{
4101if ((uint8 *) 0)
4102 return 0;
4103if (sizeof (uint8))
4104 return 0;
4105 ;
4106 return 0;
4107}
4108_ACEOF
4109rm -f conftest.$ac_objext
4110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4111 (eval $ac_compile) 2>conftest.er1
4112 ac_status=$?
4113 grep -v '^ *+' conftest.er1 >conftest.err
4114 rm -f conftest.er1
4115 cat conftest.err >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } &&
4118 { ac_try='test -z "$ac_c_werror_flag"
4119 || test ! -s conftest.err'
4120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121 (eval $ac_try) 2>&5
4122 ac_status=$?
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); }; } &&
4125 { ac_try='test -s conftest.$ac_objext'
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127 (eval $ac_try) 2>&5
4128 ac_status=$?
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; }; then
4131 ac_cv_type_uint8=yes
4132else
4133 echo "$as_me: failed program was:" >&5
4134sed 's/^/| /' conftest.$ac_ext >&5
4135
4136ac_cv_type_uint8=no
4137fi
4138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4139fi
4140echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
4141echo "${ECHO_T}$ac_cv_type_uint8" >&6
4142if test $ac_cv_type_uint8 = yes; then
4143
4144cat >>confdefs.h <<_ACEOF
4145#define HAVE_UINT8 1
4146_ACEOF
4147
4148
4149fi
4150echo "$as_me:$LINENO: checking for int16" >&5
4151echo $ECHO_N "checking for int16... $ECHO_C" >&6
4152if test "${ac_cv_type_int16+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4154else
4155 cat >conftest.$ac_ext <<_ACEOF
4156/* confdefs.h. */
4157_ACEOF
4158cat confdefs.h >>conftest.$ac_ext
4159cat >>conftest.$ac_ext <<_ACEOF
4160/* end confdefs.h. */
4161$ac_includes_default
4162int
4163main ()
4164{
4165if ((int16 *) 0)
4166 return 0;
4167if (sizeof (int16))
4168 return 0;
4169 ;
4170 return 0;
4171}
4172_ACEOF
4173rm -f conftest.$ac_objext
4174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4175 (eval $ac_compile) 2>conftest.er1
4176 ac_status=$?
4177 grep -v '^ *+' conftest.er1 >conftest.err
4178 rm -f conftest.er1
4179 cat conftest.err >&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); } &&
4182 { ac_try='test -z "$ac_c_werror_flag"
4183 || test ! -s conftest.err'
4184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185 (eval $ac_try) 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; } &&
4189 { ac_try='test -s conftest.$ac_objext'
4190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4191 (eval $ac_try) 2>&5
4192 ac_status=$?
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; }; then
4195 ac_cv_type_int16=yes
4196else
4197 echo "$as_me: failed program was:" >&5
4198sed 's/^/| /' conftest.$ac_ext >&5
4199
4200ac_cv_type_int16=no
4201fi
4202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4203fi
4204echo "$as_me:$LINENO: result: $ac_cv_type_int16" >&5
4205echo "${ECHO_T}$ac_cv_type_int16" >&6
4206if test $ac_cv_type_int16 = yes; then
4207
4208cat >>confdefs.h <<_ACEOF
4209#define HAVE_INT16 1
4210_ACEOF
4211
4212
4213fi
4214echo "$as_me:$LINENO: checking for uint16" >&5
4215echo $ECHO_N "checking for uint16... $ECHO_C" >&6
4216if test "${ac_cv_type_uint16+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4218else
4219 cat >conftest.$ac_ext <<_ACEOF
4220/* confdefs.h. */
4221_ACEOF
4222cat confdefs.h >>conftest.$ac_ext
4223cat >>conftest.$ac_ext <<_ACEOF
4224/* end confdefs.h. */
4225$ac_includes_default
4226int
4227main ()
4228{
4229if ((uint16 *) 0)
4230 return 0;
4231if (sizeof (uint16))
4232 return 0;
4233 ;
4234 return 0;
4235}
4236_ACEOF
4237rm -f conftest.$ac_objext
4238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4239 (eval $ac_compile) 2>conftest.er1
4240 ac_status=$?
4241 grep -v '^ *+' conftest.er1 >conftest.err
4242 rm -f conftest.er1
4243 cat conftest.err >&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); } &&
4246 { ac_try='test -z "$ac_c_werror_flag"
4247 || test ! -s conftest.err'
4248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4249 (eval $ac_try) 2>&5
4250 ac_status=$?
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); }; } &&
4253 { ac_try='test -s conftest.$ac_objext'
4254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4255 (eval $ac_try) 2>&5
4256 ac_status=$?
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }; }; then
4259 ac_cv_type_uint16=yes
4260else
4261 echo "$as_me: failed program was:" >&5
4262sed 's/^/| /' conftest.$ac_ext >&5
4263
4264ac_cv_type_uint16=no
4265fi
4266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4267fi
4268echo "$as_me:$LINENO: result: $ac_cv_type_uint16" >&5
4269echo "${ECHO_T}$ac_cv_type_uint16" >&6
4270if test $ac_cv_type_uint16 = yes; then
4271
4272cat >>confdefs.h <<_ACEOF
4273#define HAVE_UINT16 1
4274_ACEOF
4275
4276
4277fi
4278echo "$as_me:$LINENO: checking for int32" >&5
4279echo $ECHO_N "checking for int32... $ECHO_C" >&6
4280if test "${ac_cv_type_int32+set}" = set; then
4281 echo $ECHO_N "(cached) $ECHO_C" >&6
4282else
4283 cat >conftest.$ac_ext <<_ACEOF
4284/* confdefs.h. */
4285_ACEOF
4286cat confdefs.h >>conftest.$ac_ext
4287cat >>conftest.$ac_ext <<_ACEOF
4288/* end confdefs.h. */
4289$ac_includes_default
4290int
4291main ()
4292{
4293if ((int32 *) 0)
4294 return 0;
4295if (sizeof (int32))
4296 return 0;
4297 ;
4298 return 0;
4299}
4300_ACEOF
4301rm -f conftest.$ac_objext
4302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4303 (eval $ac_compile) 2>conftest.er1
4304 ac_status=$?
4305 grep -v '^ *+' conftest.er1 >conftest.err
4306 rm -f conftest.er1
4307 cat conftest.err >&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); } &&
4310 { ac_try='test -z "$ac_c_werror_flag"
4311 || test ! -s conftest.err'
4312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4313 (eval $ac_try) 2>&5
4314 ac_status=$?
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; } &&
4317 { ac_try='test -s conftest.$ac_objext'
4318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4319 (eval $ac_try) 2>&5
4320 ac_status=$?
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); }; }; then
4323 ac_cv_type_int32=yes
4324else
4325 echo "$as_me: failed program was:" >&5
4326sed 's/^/| /' conftest.$ac_ext >&5
4327
4328ac_cv_type_int32=no
4329fi
4330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4331fi
4332echo "$as_me:$LINENO: result: $ac_cv_type_int32" >&5
4333echo "${ECHO_T}$ac_cv_type_int32" >&6
4334if test $ac_cv_type_int32 = yes; then
4335
4336cat >>confdefs.h <<_ACEOF
4337#define HAVE_INT32 1
4338_ACEOF
4339
4340
4341fi
4342echo "$as_me:$LINENO: checking for uint32" >&5
4343echo $ECHO_N "checking for uint32... $ECHO_C" >&6
4344if test "${ac_cv_type_uint32+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4346else
4347 cat >conftest.$ac_ext <<_ACEOF
4348/* confdefs.h. */
4349_ACEOF
4350cat confdefs.h >>conftest.$ac_ext
4351cat >>conftest.$ac_ext <<_ACEOF
4352/* end confdefs.h. */
4353$ac_includes_default
4354int
4355main ()
4356{
4357if ((uint32 *) 0)
4358 return 0;
4359if (sizeof (uint32))
4360 return 0;
4361 ;
4362 return 0;
4363}
4364_ACEOF
4365rm -f conftest.$ac_objext
4366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4367 (eval $ac_compile) 2>conftest.er1
4368 ac_status=$?
4369 grep -v '^ *+' conftest.er1 >conftest.err
4370 rm -f conftest.er1
4371 cat conftest.err >&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } &&
4374 { ac_try='test -z "$ac_c_werror_flag"
4375 || test ! -s conftest.err'
4376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4377 (eval $ac_try) 2>&5
4378 ac_status=$?
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }; } &&
4381 { ac_try='test -s conftest.$ac_objext'
4382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4383 (eval $ac_try) 2>&5
4384 ac_status=$?
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; }; then
4387 ac_cv_type_uint32=yes
4388else
4389 echo "$as_me: failed program was:" >&5
4390sed 's/^/| /' conftest.$ac_ext >&5
4391
4392ac_cv_type_uint32=no
4393fi
4394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4395fi
4396echo "$as_me:$LINENO: result: $ac_cv_type_uint32" >&5
4397echo "${ECHO_T}$ac_cv_type_uint32" >&6
4398if test $ac_cv_type_uint32 = yes; then
4399
4400cat >>confdefs.h <<_ACEOF
4401#define HAVE_UINT32 1
4402_ACEOF
4403
4404
4405fi
4406echo "$as_me:$LINENO: checking for unit64" >&5
4407echo $ECHO_N "checking for unit64... $ECHO_C" >&6
4408if test "${ac_cv_type_unit64+set}" = set; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
4410else
4411 cat >conftest.$ac_ext <<_ACEOF
4412/* confdefs.h. */
4413_ACEOF
4414cat confdefs.h >>conftest.$ac_ext
4415cat >>conftest.$ac_ext <<_ACEOF
4416/* end confdefs.h. */
4417$ac_includes_default
4418int
4419main ()
4420{
4421if ((unit64 *) 0)
4422 return 0;
4423if (sizeof (unit64))
4424 return 0;
4425 ;
4426 return 0;
4427}
4428_ACEOF
4429rm -f conftest.$ac_objext
4430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4431 (eval $ac_compile) 2>conftest.er1
4432 ac_status=$?
4433 grep -v '^ *+' conftest.er1 >conftest.err
4434 rm -f conftest.er1
4435 cat conftest.err >&5
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); } &&
4438 { ac_try='test -z "$ac_c_werror_flag"
4439 || test ! -s conftest.err'
4440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4441 (eval $ac_try) 2>&5
4442 ac_status=$?
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); }; } &&
4445 { ac_try='test -s conftest.$ac_objext'
4446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4447 (eval $ac_try) 2>&5
4448 ac_status=$?
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); }; }; then
4451 ac_cv_type_unit64=yes
4452else
4453 echo "$as_me: failed program was:" >&5
4454sed 's/^/| /' conftest.$ac_ext >&5
4455
4456ac_cv_type_unit64=no
4457fi
4458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4459fi
4460echo "$as_me:$LINENO: result: $ac_cv_type_unit64" >&5
4461echo "${ECHO_T}$ac_cv_type_unit64" >&6
4462if test $ac_cv_type_unit64 = yes; then
4463
4464cat >>confdefs.h <<_ACEOF
4465#define HAVE_UNIT64 1
4466_ACEOF
4467
4468
4469fi
4470
4471
4472echo "$as_me:$LINENO: checking for unsigned long long" >&5
4473echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
4474if test "${ac_cv_type_unsigned_long_long+set}" = set; then
4475 echo $ECHO_N "(cached) $ECHO_C" >&6
4476else
4477 cat >conftest.$ac_ext <<_ACEOF
4478/* confdefs.h. */
4479_ACEOF
4480cat confdefs.h >>conftest.$ac_ext
4481cat >>conftest.$ac_ext <<_ACEOF
4482/* end confdefs.h. */
4483$ac_includes_default
4484int
4485main ()
4486{
4487if ((unsigned long long *) 0)
4488 return 0;
4489if (sizeof (unsigned long long))
4490 return 0;
4491 ;
4492 return 0;
4493}
4494_ACEOF
4495rm -f conftest.$ac_objext
4496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4497 (eval $ac_compile) 2>conftest.er1
4498 ac_status=$?
4499 grep -v '^ *+' conftest.er1 >conftest.err
4500 rm -f conftest.er1
4501 cat conftest.err >&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); } &&
4504 { ac_try='test -z "$ac_c_werror_flag"
4505 || test ! -s conftest.err'
4506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507 (eval $ac_try) 2>&5
4508 ac_status=$?
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; } &&
4511 { ac_try='test -s conftest.$ac_objext'
4512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513 (eval $ac_try) 2>&5
4514 ac_status=$?
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); }; }; then
4517 ac_cv_type_unsigned_long_long=yes
4518else
4519 echo "$as_me: failed program was:" >&5
4520sed 's/^/| /' conftest.$ac_ext >&5
4521
4522ac_cv_type_unsigned_long_long=no
4523fi
4524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4525fi
4526echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
4527echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
4528if test $ac_cv_type_unsigned_long_long = yes; then
4529 HAVE_U_LONG_LONG=1
4530else
4531 HAVE_U_LONG_LONG=0
4532fi
4533
4534
4535if test $HAVE_U_LONG_LONG = 1; then
4536 cat >>confdefs.h <<\_ACEOF
4537#define HAVE_U_LONG_LONG 1
4538_ACEOF
4539
4540fi
Cullen Jennings235513a2005-09-21 22:51:36 +00004541
4542echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4543echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4544if test "${ac_cv_c_const+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4546else
4547 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00004548/* confdefs.h. */
4549_ACEOF
4550cat confdefs.h >>conftest.$ac_ext
4551cat >>conftest.$ac_ext <<_ACEOF
4552/* end confdefs.h. */
4553
4554int
4555main ()
4556{
4557/* FIXME: Include the comments suggested by Paul. */
4558#ifndef __cplusplus
4559 /* Ultrix mips cc rejects this. */
4560 typedef int charset[2];
4561 const charset x;
4562 /* SunOS 4.1.1 cc rejects this. */
4563 char const *const *ccp;
4564 char **p;
4565 /* NEC SVR4.0.2 mips cc rejects this. */
4566 struct point {int x, y;};
4567 static struct point const zero = {0,0};
4568 /* AIX XL C 1.02.0.0 rejects this.
4569 It does not let you subtract one const X* pointer from another in
4570 an arm of an if-expression whose if-part is not a constant
4571 expression */
4572 const char *g = "string";
4573 ccp = &g + (g ? g-g : 0);
4574 /* HPUX 7.0 cc rejects these. */
4575 ++ccp;
4576 p = (char**) ccp;
4577 ccp = (char const *const *) p;
4578 { /* SCO 3.2v4 cc rejects this. */
4579 char *t;
4580 char const *s = 0 ? (char *) 0 : (char const *) 0;
4581
4582 *t++ = 0;
4583 }
4584 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4585 int x[] = {25, 17};
4586 const int *foo = &x[0];
4587 ++foo;
4588 }
4589 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4590 typedef const int *iptr;
4591 iptr p = 0;
4592 ++p;
4593 }
4594 { /* AIX XL C 1.02.0.0 rejects this saying
4595 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4596 struct s { int j; const int *ap[3]; };
4597 struct s *b; b->j = 5;
4598 }
4599 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4600 const int foo = 10;
4601 }
4602#endif
4603
4604 ;
4605 return 0;
4606}
4607_ACEOF
4608rm -f conftest.$ac_objext
4609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00004610 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00004611 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00004612 grep -v '^ *+' conftest.er1 >conftest.err
4613 rm -f conftest.er1
4614 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00004615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00004617 { ac_try='test -z "$ac_c_werror_flag"
4618 || test ! -s conftest.err'
4619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620 (eval $ac_try) 2>&5
4621 ac_status=$?
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; } &&
4624 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00004625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4626 (eval $ac_try) 2>&5
4627 ac_status=$?
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); }; }; then
4630 ac_cv_c_const=yes
4631else
4632 echo "$as_me: failed program was:" >&5
4633sed 's/^/| /' conftest.$ac_ext >&5
4634
4635ac_cv_c_const=no
4636fi
David McGrewfec49dd2005-09-23 19:34:11 +00004637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004638fi
4639echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4640echo "${ECHO_T}$ac_cv_c_const" >&6
4641if test $ac_cv_c_const = no; then
4642
4643cat >>confdefs.h <<\_ACEOF
4644#define const
4645_ACEOF
4646
4647fi
4648
4649echo "$as_me:$LINENO: checking for inline" >&5
4650echo $ECHO_N "checking for inline... $ECHO_C" >&6
4651if test "${ac_cv_c_inline+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4653else
4654 ac_cv_c_inline=no
4655for ac_kw in inline __inline__ __inline; do
4656 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00004657/* confdefs.h. */
4658_ACEOF
4659cat confdefs.h >>conftest.$ac_ext
4660cat >>conftest.$ac_ext <<_ACEOF
4661/* end confdefs.h. */
4662#ifndef __cplusplus
4663typedef int foo_t;
4664static $ac_kw foo_t static_foo () {return 0; }
4665$ac_kw foo_t foo () {return 0; }
4666#endif
4667
4668_ACEOF
4669rm -f conftest.$ac_objext
4670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00004671 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00004672 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00004673 grep -v '^ *+' conftest.er1 >conftest.err
4674 rm -f conftest.er1
4675 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00004676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00004678 { ac_try='test -z "$ac_c_werror_flag"
4679 || test ! -s conftest.err'
4680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681 (eval $ac_try) 2>&5
4682 ac_status=$?
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); }; } &&
4685 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00004686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687 (eval $ac_try) 2>&5
4688 ac_status=$?
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; }; then
4691 ac_cv_c_inline=$ac_kw; break
4692else
4693 echo "$as_me: failed program was:" >&5
4694sed 's/^/| /' conftest.$ac_ext >&5
4695
4696fi
David McGrewfec49dd2005-09-23 19:34:11 +00004697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004698done
4699
4700fi
4701echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4702echo "${ECHO_T}$ac_cv_c_inline" >&6
David McGrewfec49dd2005-09-23 19:34:11 +00004703
4704
Cullen Jennings235513a2005-09-21 22:51:36 +00004705case $ac_cv_c_inline in
4706 inline | yes) ;;
David McGrewfec49dd2005-09-23 19:34:11 +00004707 *)
4708 case $ac_cv_c_inline in
4709 no) ac_val=;;
4710 *) ac_val=$ac_cv_c_inline;;
4711 esac
4712 cat >>confdefs.h <<_ACEOF
4713#ifndef __cplusplus
4714#define inline $ac_val
4715#endif
Cullen Jennings235513a2005-09-21 22:51:36 +00004716_ACEOF
David McGrewfec49dd2005-09-23 19:34:11 +00004717 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00004718esac
4719
4720echo "$as_me:$LINENO: checking for size_t" >&5
4721echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4722if test "${ac_cv_type_size_t+set}" = set; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4724else
4725 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00004726/* confdefs.h. */
4727_ACEOF
4728cat confdefs.h >>conftest.$ac_ext
4729cat >>conftest.$ac_ext <<_ACEOF
4730/* end confdefs.h. */
4731$ac_includes_default
4732int
4733main ()
4734{
4735if ((size_t *) 0)
4736 return 0;
4737if (sizeof (size_t))
4738 return 0;
4739 ;
4740 return 0;
4741}
4742_ACEOF
4743rm -f conftest.$ac_objext
4744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00004745 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00004746 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00004747 grep -v '^ *+' conftest.er1 >conftest.err
4748 rm -f conftest.er1
4749 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00004750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00004752 { ac_try='test -z "$ac_c_werror_flag"
4753 || test ! -s conftest.err'
4754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755 (eval $ac_try) 2>&5
4756 ac_status=$?
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; } &&
4759 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00004760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4761 (eval $ac_try) 2>&5
4762 ac_status=$?
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); }; }; then
4765 ac_cv_type_size_t=yes
4766else
4767 echo "$as_me: failed program was:" >&5
4768sed 's/^/| /' conftest.$ac_ext >&5
4769
4770ac_cv_type_size_t=no
4771fi
David McGrewfec49dd2005-09-23 19:34:11 +00004772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004773fi
4774echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4775echo "${ECHO_T}$ac_cv_type_size_t" >&6
4776if test $ac_cv_type_size_t = yes; then
4777 :
4778else
4779
4780cat >>confdefs.h <<_ACEOF
4781#define size_t unsigned
4782_ACEOF
4783
4784fi
4785
4786
David McGrewfec49dd2005-09-23 19:34:11 +00004787
Cullen Jennings235513a2005-09-21 22:51:36 +00004788
David McGrewb67061f2005-09-28 14:23:06 +00004789for ac_func in socket inet_aton
Cullen Jennings235513a2005-09-21 22:51:36 +00004790do
4791as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4792echo "$as_me:$LINENO: checking for $ac_func" >&5
4793echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4794if eval "test \"\${$as_ac_var+set}\" = set"; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4796else
4797 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00004798/* confdefs.h. */
4799_ACEOF
4800cat confdefs.h >>conftest.$ac_ext
4801cat >>conftest.$ac_ext <<_ACEOF
4802/* end confdefs.h. */
David McGrewfec49dd2005-09-23 19:34:11 +00004803/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4805#define $ac_func innocuous_$ac_func
4806
Cullen Jennings235513a2005-09-21 22:51:36 +00004807/* System header to define __stub macros and hopefully few prototypes,
4808 which can conflict with char $ac_func (); below.
4809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4810 <limits.h> exists even on freestanding compilers. */
David McGrewfec49dd2005-09-23 19:34:11 +00004811
Cullen Jennings235513a2005-09-21 22:51:36 +00004812#ifdef __STDC__
4813# include <limits.h>
4814#else
4815# include <assert.h>
4816#endif
David McGrewfec49dd2005-09-23 19:34:11 +00004817
4818#undef $ac_func
4819
Cullen Jennings235513a2005-09-21 22:51:36 +00004820/* Override any gcc2 internal prototype to avoid an error. */
4821#ifdef __cplusplus
4822extern "C"
4823{
4824#endif
4825/* We use char because int might match the return type of a gcc2
4826 builtin and then its argument prototype would still apply. */
4827char $ac_func ();
4828/* The GNU C library defines this for functions which it implements
4829 to always fail with ENOSYS. Some functions are actually named
4830 something starting with __ and the normal name is an alias. */
4831#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4832choke me
4833#else
4834char (*f) () = $ac_func;
4835#endif
4836#ifdef __cplusplus
4837}
4838#endif
4839
4840int
4841main ()
4842{
4843return f != $ac_func;
4844 ;
4845 return 0;
4846}
4847_ACEOF
4848rm -f conftest.$ac_objext conftest$ac_exeext
4849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00004850 (eval $ac_link) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00004851 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00004852 grep -v '^ *+' conftest.er1 >conftest.err
4853 rm -f conftest.er1
4854 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00004855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00004857 { ac_try='test -z "$ac_c_werror_flag"
4858 || test ! -s conftest.err'
4859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4860 (eval $ac_try) 2>&5
4861 ac_status=$?
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); }; } &&
4864 { ac_try='test -s conftest$ac_exeext'
Cullen Jennings235513a2005-09-21 22:51:36 +00004865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866 (eval $ac_try) 2>&5
4867 ac_status=$?
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); }; }; then
4870 eval "$as_ac_var=yes"
4871else
4872 echo "$as_me: failed program was:" >&5
4873sed 's/^/| /' conftest.$ac_ext >&5
4874
4875eval "$as_ac_var=no"
4876fi
David McGrewfec49dd2005-09-23 19:34:11 +00004877rm -f conftest.err conftest.$ac_objext \
4878 conftest$ac_exeext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004879fi
4880echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4881echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4882if test `eval echo '${'$as_ac_var'}'` = yes; then
4883 cat >>confdefs.h <<_ACEOF
4884#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4885_ACEOF
4886
4887fi
4888done
4889
4890
David McGrewb67061f2005-09-28 14:23:06 +00004891
4892echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4893echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4894if test "${ac_cv_lib_socket_socket+set}" = set; then
4895 echo $ECHO_N "(cached) $ECHO_C" >&6
4896else
4897 ac_check_lib_save_LIBS=$LIBS
4898LIBS="-lsocket $LIBS"
4899cat >conftest.$ac_ext <<_ACEOF
4900/* confdefs.h. */
4901_ACEOF
4902cat confdefs.h >>conftest.$ac_ext
4903cat >>conftest.$ac_ext <<_ACEOF
4904/* end confdefs.h. */
4905
4906/* Override any gcc2 internal prototype to avoid an error. */
4907#ifdef __cplusplus
4908extern "C"
4909#endif
4910/* We use char because int might match the return type of a gcc2
4911 builtin and then its argument prototype would still apply. */
4912char socket ();
4913int
4914main ()
4915{
4916socket ();
4917 ;
4918 return 0;
4919}
4920_ACEOF
4921rm -f conftest.$ac_objext conftest$ac_exeext
4922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4923 (eval $ac_link) 2>conftest.er1
4924 ac_status=$?
4925 grep -v '^ *+' conftest.er1 >conftest.err
4926 rm -f conftest.er1
4927 cat conftest.err >&5
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } &&
4930 { ac_try='test -z "$ac_c_werror_flag"
4931 || test ! -s conftest.err'
4932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4933 (eval $ac_try) 2>&5
4934 ac_status=$?
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; } &&
4937 { ac_try='test -s conftest$ac_exeext'
4938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4939 (eval $ac_try) 2>&5
4940 ac_status=$?
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); }; }; then
4943 ac_cv_lib_socket_socket=yes
4944else
4945 echo "$as_me: failed program was:" >&5
4946sed 's/^/| /' conftest.$ac_ext >&5
4947
4948ac_cv_lib_socket_socket=no
4949fi
4950rm -f conftest.err conftest.$ac_objext \
4951 conftest$ac_exeext conftest.$ac_ext
4952LIBS=$ac_check_lib_save_LIBS
4953fi
4954echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4955echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4956if test $ac_cv_lib_socket_socket = yes; then
4957 cat >>confdefs.h <<_ACEOF
4958#define HAVE_LIBSOCKET 1
4959_ACEOF
4960
4961 LIBS="-lsocket $LIBS"
4962
4963fi
4964
4965
Cullen Jennings235513a2005-09-21 22:51:36 +00004966echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4967echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4968if test "${ac_cv_c_bigendian+set}" = set; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4970else
4971 # See if sys/param.h defines the BYTE_ORDER macro.
4972cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00004973/* confdefs.h. */
4974_ACEOF
4975cat confdefs.h >>conftest.$ac_ext
4976cat >>conftest.$ac_ext <<_ACEOF
4977/* end confdefs.h. */
4978#include <sys/types.h>
4979#include <sys/param.h>
4980
4981int
4982main ()
4983{
4984#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4985 bogus endian macros
4986#endif
4987
4988 ;
4989 return 0;
4990}
4991_ACEOF
4992rm -f conftest.$ac_objext
4993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00004994 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00004995 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00004996 grep -v '^ *+' conftest.er1 >conftest.err
4997 rm -f conftest.er1
4998 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00004999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00005001 { ac_try='test -z "$ac_c_werror_flag"
5002 || test ! -s conftest.err'
5003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5004 (eval $ac_try) 2>&5
5005 ac_status=$?
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); }; } &&
5008 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00005009 { (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); }; }; then
5014 # It does; now see whether it defined to BIG_ENDIAN or not.
5015cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005016/* confdefs.h. */
5017_ACEOF
5018cat confdefs.h >>conftest.$ac_ext
5019cat >>conftest.$ac_ext <<_ACEOF
5020/* end confdefs.h. */
5021#include <sys/types.h>
5022#include <sys/param.h>
5023
5024int
5025main ()
5026{
5027#if BYTE_ORDER != BIG_ENDIAN
5028 not big endian
5029#endif
5030
5031 ;
5032 return 0;
5033}
5034_ACEOF
5035rm -f conftest.$ac_objext
5036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00005037 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00005038 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00005039 grep -v '^ *+' conftest.er1 >conftest.err
5040 rm -f conftest.er1
5041 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00005042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00005044 { ac_try='test -z "$ac_c_werror_flag"
5045 || test ! -s conftest.err'
5046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5047 (eval $ac_try) 2>&5
5048 ac_status=$?
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); }; } &&
5051 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00005052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5053 (eval $ac_try) 2>&5
5054 ac_status=$?
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); }; }; then
5057 ac_cv_c_bigendian=yes
5058else
5059 echo "$as_me: failed program was:" >&5
5060sed 's/^/| /' conftest.$ac_ext >&5
5061
5062ac_cv_c_bigendian=no
5063fi
David McGrewfec49dd2005-09-23 19:34:11 +00005064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00005065else
5066 echo "$as_me: failed program was:" >&5
5067sed 's/^/| /' conftest.$ac_ext >&5
5068
5069# It does not; compile a test program.
5070if test "$cross_compiling" = yes; then
5071 # try to guess the endianness by grepping values into an object file
5072 ac_cv_c_bigendian=unknown
5073 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005074/* confdefs.h. */
5075_ACEOF
5076cat confdefs.h >>conftest.$ac_ext
5077cat >>conftest.$ac_ext <<_ACEOF
5078/* end confdefs.h. */
5079short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5080short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5081void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5082short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5083short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5084void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5085int
5086main ()
5087{
5088 _ascii (); _ebcdic ();
5089 ;
5090 return 0;
5091}
5092_ACEOF
5093rm -f conftest.$ac_objext
5094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00005095 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00005096 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00005097 grep -v '^ *+' conftest.er1 >conftest.err
5098 rm -f conftest.er1
5099 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00005100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00005102 { ac_try='test -z "$ac_c_werror_flag"
5103 || test ! -s conftest.err'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105 (eval $ac_try) 2>&5
5106 ac_status=$?
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; } &&
5109 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00005110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111 (eval $ac_try) 2>&5
5112 ac_status=$?
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }; }; then
5115 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5116 ac_cv_c_bigendian=yes
5117fi
5118if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5119 if test "$ac_cv_c_bigendian" = unknown; then
5120 ac_cv_c_bigendian=no
5121 else
5122 # finding both strings is unlikely to happen, but who knows?
5123 ac_cv_c_bigendian=unknown
5124 fi
5125fi
5126else
5127 echo "$as_me: failed program was:" >&5
5128sed 's/^/| /' conftest.$ac_ext >&5
5129
5130fi
David McGrewfec49dd2005-09-23 19:34:11 +00005131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00005132else
5133 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005134/* confdefs.h. */
5135_ACEOF
5136cat confdefs.h >>conftest.$ac_ext
5137cat >>conftest.$ac_ext <<_ACEOF
5138/* end confdefs.h. */
5139int
5140main ()
5141{
5142 /* Are we little or big endian? From Harbison&Steele. */
5143 union
5144 {
5145 long l;
5146 char c[sizeof (long)];
5147 } u;
5148 u.l = 1;
5149 exit (u.c[sizeof (long) - 1] == 1);
5150}
5151_ACEOF
5152rm -f conftest$ac_exeext
5153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5154 (eval $ac_link) 2>&5
5155 ac_status=$?
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159 (eval $ac_try) 2>&5
5160 ac_status=$?
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); }; }; then
5163 ac_cv_c_bigendian=no
5164else
5165 echo "$as_me: program exited with status $ac_status" >&5
5166echo "$as_me: failed program was:" >&5
5167sed 's/^/| /' conftest.$ac_ext >&5
5168
5169( exit $ac_status )
5170ac_cv_c_bigendian=yes
5171fi
David McGrewfec49dd2005-09-23 19:34:11 +00005172rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00005173fi
5174fi
David McGrewfec49dd2005-09-23 19:34:11 +00005175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00005176fi
5177echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5178echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5179case $ac_cv_c_bigendian in
5180 yes)
5181
5182cat >>confdefs.h <<\_ACEOF
5183#define WORDS_BIGENDIAN 1
5184_ACEOF
5185 ;;
5186 no)
5187 ;;
5188 *)
5189 { { echo "$as_me:$LINENO: error: unknown endianness
5190presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5191echo "$as_me: error: unknown endianness
5192presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5193 { (exit 1); exit 1; }; } ;;
5194esac
5195
5196
Cullen Jennings235513a2005-09-21 22:51:36 +00005197# Make sure we can run config.sub.
5198$ac_config_sub sun4 >/dev/null 2>&1 ||
5199 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
5200echo "$as_me: error: cannot run $ac_config_sub" >&2;}
5201 { (exit 1); exit 1; }; }
5202
5203echo "$as_me:$LINENO: checking build system type" >&5
5204echo $ECHO_N "checking build system type... $ECHO_C" >&6
5205if test "${ac_cv_build+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5207else
5208 ac_cv_build_alias=$build_alias
5209test -z "$ac_cv_build_alias" &&
5210 ac_cv_build_alias=`$ac_config_guess`
5211test -z "$ac_cv_build_alias" &&
5212 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5213echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5214 { (exit 1); exit 1; }; }
5215ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
5216 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
5217echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
5218 { (exit 1); exit 1; }; }
5219
5220fi
5221echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5222echo "${ECHO_T}$ac_cv_build" >&6
5223build=$ac_cv_build
5224build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5225build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5226build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5227
5228
5229echo "$as_me:$LINENO: checking host system type" >&5
5230echo $ECHO_N "checking host system type... $ECHO_C" >&6
5231if test "${ac_cv_host+set}" = set; then
5232 echo $ECHO_N "(cached) $ECHO_C" >&6
5233else
5234 ac_cv_host_alias=$host_alias
5235test -z "$ac_cv_host_alias" &&
5236 ac_cv_host_alias=$ac_cv_build_alias
5237ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5238 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5239echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5240 { (exit 1); exit 1; }; }
5241
5242fi
5243echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5244echo "${ECHO_T}$ac_cv_host" >&6
5245host=$ac_cv_host
5246host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5247host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5248host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5249
5250
5251
Cullen Jennings235513a2005-09-21 22:51:36 +00005252case $host_cpu in
5253 i*86 )
David McGrewb67061f2005-09-28 14:23:06 +00005254
5255cat >>confdefs.h <<\_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005256#define CPU_CISC 1
5257_ACEOF
David McGrew89fb7ea2005-09-26 19:33:44 +00005258
David McGrewb67061f2005-09-28 14:23:06 +00005259
5260cat >>confdefs.h <<\_ACEOF
David McGrew89fb7ea2005-09-26 19:33:44 +00005261#define HAVE_X86 1
5262_ACEOF
David McGrewb67061f2005-09-28 14:23:06 +00005263;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005264 * )
David McGrewb67061f2005-09-28 14:23:06 +00005265
5266cat >>confdefs.h <<\_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005267#define CPU_RISC 1
5268_ACEOF
5269;;
5270esac
5271
5272
5273case $host_os in
5274 *cygwin* )
David McGrewb67061f2005-09-28 14:23:06 +00005275
5276cat >>confdefs.h <<\_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005277#define HAVE_MS_TYPES 1
5278_ACEOF
5279
5280 EXE=.exe;;
5281 * ) EXE="";;
5282esac
5283
5284 # define executable suffix; this is needed for `make clean'
5285
David McGrewb67061f2005-09-28 14:23:06 +00005286echo "$as_me:$LINENO: checking whether to compile in debugging" >&5
5287echo $ECHO_N "checking whether to compile in debugging... $ECHO_C" >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005288# Check whether --enable-debug or --disable-debug was given.
5289if test "${enable_debug+set}" = set; then
5290 enableval="$enable_debug"
Cullen Jennings235513a2005-09-21 22:51:36 +00005291
David McGrewb67061f2005-09-28 14:23:06 +00005292else
5293 enable_debug=yes
5294fi;
5295if test "$enable_debug" = "yes"; then
5296
5297cat >>confdefs.h <<\_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005298#define ENABLE_DEBUGGING 1
5299_ACEOF
5300
5301fi
David McGrewb67061f2005-09-28 14:23:06 +00005302echo "$as_me:$LINENO: result: $enable_debug" >&5
5303echo "${ECHO_T}$enable_debug" >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005304
David McGrewb67061f2005-09-28 14:23:06 +00005305echo "$as_me:$LINENO: checking whether to use ISMAcryp code" >&5
5306echo $ECHO_N "checking whether to use ISMAcryp code... $ECHO_C" >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005307# Check whether --enable-generic-aesicm or --disable-generic-aesicm was given.
5308if test "${enable_generic_aesicm+set}" = set; then
5309 enableval="$enable_generic_aesicm"
Cullen Jennings235513a2005-09-21 22:51:36 +00005310
David McGrewb67061f2005-09-28 14:23:06 +00005311else
5312 enable_generic_aesicm=no
5313fi;
5314if test "$enable_generic_aesicm" = "yes"; then
5315
5316cat >>confdefs.h <<\_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005317#define GENERIC_AESICM 1
5318_ACEOF
5319
5320fi
David McGrewb67061f2005-09-28 14:23:06 +00005321echo "$as_me:$LINENO: result: $enable_generic_aesicm" >&5
5322echo "${ECHO_T}$enable_generic_aesicm" >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005323
David McGrewb67061f2005-09-28 14:23:06 +00005324echo "$as_me:$LINENO: checking whether to use syslog for error reporting" >&5
5325echo $ECHO_N "checking whether to use syslog for error reporting... $ECHO_C" >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005326# Check whether --enable-syslog or --disable-syslog was given.
5327if test "${enable_syslog+set}" = set; then
5328 enableval="$enable_syslog"
Cullen Jennings235513a2005-09-21 22:51:36 +00005329
David McGrewb67061f2005-09-28 14:23:06 +00005330else
5331 enable_syslog=no
5332fi;
5333if test "$enable_syslog" = "yes"; then
5334
5335cat >>confdefs.h <<\_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005336#define USE_SYSLOG 1
5337_ACEOF
5338
5339fi
David McGrewb67061f2005-09-28 14:23:06 +00005340echo "$as_me:$LINENO: result: $enable_syslog" >&5
5341echo "${ECHO_T}$enable_syslog" >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005342
David McGrewb67061f2005-09-28 14:23:06 +00005343echo "$as_me:$LINENO: checking whether to use stdout for error reporting" >&5
5344echo $ECHO_N "checking whether to use stdout for error reporting... $ECHO_C" >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005345# Check whether --enable-stdout or --disable-stdout was given.
5346if test "${enable_stdout+set}" = set; then
5347 enableval="$enable_stdout"
Cullen Jennings235513a2005-09-21 22:51:36 +00005348
David McGrewb67061f2005-09-28 14:23:06 +00005349else
5350 enable_stdout=yes
5351fi;
5352if test "$enable_stdout" = "yes"; then
5353
5354cat >>confdefs.h <<\_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005355#define ERR_REPORTING_STDOUT 1
5356_ACEOF
5357
5358fi
David McGrewb67061f2005-09-28 14:23:06 +00005359echo "$as_me:$LINENO: result: $enable_stdout" >&5
5360echo "${ECHO_T}$enable_stdout" >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005361
David McGrewb67061f2005-09-28 14:23:06 +00005362echo "$as_me:$LINENO: checking whether to use /dev/console for error reporting" >&5
5363echo $ECHO_N "checking whether to use /dev/console for error reporting... $ECHO_C" >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005364# Check whether --enable-console or --disable-console was given.
5365if test "${enable_console+set}" = set; then
5366 enableval="$enable_console"
Cullen Jennings235513a2005-09-21 22:51:36 +00005367
David McGrewb67061f2005-09-28 14:23:06 +00005368else
5369 enable_console=no
5370fi;
5371if test "$enable_console" = "yes"; then
5372
5373cat >>confdefs.h <<\_ACEOF
5374#define USE_ERR_REPORTING_FILE 1
5375_ACEOF
5376
5377
5378cat >>confdefs.h <<\_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005379#define ERR_REPORTING_FILE "/dev/console"
5380_ACEOF
5381
5382fi
David McGrewb67061f2005-09-28 14:23:06 +00005383echo "$as_me:$LINENO: result: $enable_console" >&5
5384echo "${ECHO_T}$enable_console" >&6
5385
5386echo "$as_me:$LINENO: checking whether to use GDOI key management" >&5
5387echo $ECHO_N "checking whether to use GDOI key management... $ECHO_C" >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005388# Check whether --enable-gdoi or --disable-gdoi was given.
5389if test "${enable_gdoi+set}" = set; then
5390 enableval="$enable_gdoi"
Cullen Jennings235513a2005-09-21 22:51:36 +00005391
David McGrewb67061f2005-09-28 14:23:06 +00005392else
5393 enable_gdoi=no
5394fi;
5395if test "$enable_gdoi" = "yes"; then
5396
5397cat >>confdefs.h <<\_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005398#define SRTP_GDOI 1
5399_ACEOF
5400
5401 GDOI_OBJS=gdoi/srtp+gdoi.o
5402
5403fi
David McGrewb67061f2005-09-28 14:23:06 +00005404echo "$as_me:$LINENO: result: $enable_gdoi" >&5
5405echo "${ECHO_T}$enable_gdoi" >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005406
David McGrewfec49dd2005-09-23 19:34:11 +00005407 ac_config_headers="$ac_config_headers crypto/include/config.h:config_in.h"
Cullen Jennings235513a2005-09-21 22:51:36 +00005408
5409
5410 ac_config_files="$ac_config_files Makefile"
5411cat >confcache <<\_ACEOF
5412# This file is a shell script that caches the results of configure
5413# tests run on this system so they can be shared between configure
5414# scripts and configure runs, see configure's option --config-cache.
5415# It is not useful on other systems. If it contains results you don't
5416# want to keep, you may remove or edit it.
5417#
5418# config.status only pays attention to the cache file if you give it
5419# the --recheck option to rerun configure.
5420#
5421# `ac_cv_env_foo' variables (set or unset) will be overridden when
5422# loading this file, other *unset* `ac_cv_foo' will be assigned the
5423# following values.
5424
5425_ACEOF
5426
5427# The following way of writing the cache mishandles newlines in values,
5428# but we know of no workaround that is simple, portable, and efficient.
5429# So, don't put newlines in cache variables' values.
5430# Ultrix sh set writes to stderr and can't be redirected directly,
5431# and sets the high bit in the cache file unless we assign to the vars.
5432{
5433 (set) 2>&1 |
5434 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5435 *ac_space=\ *)
5436 # `set' does not quote correctly, so add quotes (double-quote
5437 # substitution turns \\\\ into \\, and sed turns \\ into \).
5438 sed -n \
David McGrewfec49dd2005-09-23 19:34:11 +00005439 "s/'/'\\\\''/g;
5440 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Cullen Jennings235513a2005-09-21 22:51:36 +00005441 ;;
5442 *)
5443 # `set' quotes correctly as required by POSIX, so do not add quotes.
5444 sed -n \
David McGrewfec49dd2005-09-23 19:34:11 +00005445 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Cullen Jennings235513a2005-09-21 22:51:36 +00005446 ;;
5447 esac;
5448} |
5449 sed '
5450 t clear
5451 : clear
5452 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5453 t end
5454 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5455 : end' >>confcache
5456if diff $cache_file confcache >/dev/null 2>&1; then :; else
5457 if test -w $cache_file; then
5458 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5459 cat confcache >$cache_file
5460 else
5461 echo "not updating unwritable cache $cache_file"
5462 fi
5463fi
5464rm -f confcache
5465
5466test "x$prefix" = xNONE && prefix=$ac_default_prefix
5467# Let make expand exec_prefix.
5468test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5469
5470# VPATH may cause trouble with some makes, so we remove $(srcdir),
5471# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5472# trailing colons and then remove the whole line if VPATH becomes empty
5473# (actually we leave an empty line to preserve line numbers).
5474if test "x$srcdir" = x.; then
David McGrewfec49dd2005-09-23 19:34:11 +00005475 ac_vpsub='/^[ ]*VPATH[ ]*=/{
Cullen Jennings235513a2005-09-21 22:51:36 +00005476s/:*\$(srcdir):*/:/;
5477s/:*\${srcdir}:*/:/;
5478s/:*@srcdir@:*/:/;
David McGrewfec49dd2005-09-23 19:34:11 +00005479s/^\([^=]*=[ ]*\):*/\1/;
Cullen Jennings235513a2005-09-21 22:51:36 +00005480s/:*$//;
David McGrewfec49dd2005-09-23 19:34:11 +00005481s/^[^=]*=[ ]*$//;
Cullen Jennings235513a2005-09-21 22:51:36 +00005482}'
5483fi
5484
5485DEFS=-DHAVE_CONFIG_H
5486
5487ac_libobjs=
5488ac_ltlibobjs=
5489for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5490 # 1. Remove the extension, and $U if already installed.
5491 ac_i=`echo "$ac_i" |
David McGrewfec49dd2005-09-23 19:34:11 +00005492 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
Cullen Jennings235513a2005-09-21 22:51:36 +00005493 # 2. Add them.
5494 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5495 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5496done
5497LIBOBJS=$ac_libobjs
5498
5499LTLIBOBJS=$ac_ltlibobjs
5500
5501
5502
5503: ${CONFIG_STATUS=./config.status}
5504ac_clean_files_save=$ac_clean_files
5505ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5506{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5507echo "$as_me: creating $CONFIG_STATUS" >&6;}
5508cat >$CONFIG_STATUS <<_ACEOF
5509#! $SHELL
5510# Generated by $as_me.
5511# Run this file to recreate the current configuration.
5512# Compiler output produced by configure, useful for debugging
5513# configure, is in config.log if it exists.
5514
5515debug=false
5516ac_cs_recheck=false
5517ac_cs_silent=false
5518SHELL=\${CONFIG_SHELL-$SHELL}
5519_ACEOF
5520
5521cat >>$CONFIG_STATUS <<\_ACEOF
5522## --------------------- ##
5523## M4sh Initialization. ##
5524## --------------------- ##
5525
5526# Be Bourne compatible
5527if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5528 emulate sh
5529 NULLCMD=:
5530 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5531 # is contrary to our usage. Disable this feature.
5532 alias -g '${1+"$@"}'='"$@"'
5533elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5534 set -o posix
5535fi
David McGrewfec49dd2005-09-23 19:34:11 +00005536DUALCASE=1; export DUALCASE # for MKS sh
Cullen Jennings235513a2005-09-21 22:51:36 +00005537
5538# Support unset when possible.
David McGrewfec49dd2005-09-23 19:34:11 +00005539if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
Cullen Jennings235513a2005-09-21 22:51:36 +00005540 as_unset=unset
5541else
5542 as_unset=false
5543fi
5544
5545
5546# Work around bugs in pre-3.0 UWIN ksh.
5547$as_unset ENV MAIL MAILPATH
5548PS1='$ '
5549PS2='> '
5550PS4='+ '
5551
5552# NLS nuisances.
5553for as_var in \
5554 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5555 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5556 LC_TELEPHONE LC_TIME
5557do
David McGrewfec49dd2005-09-23 19:34:11 +00005558 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
Cullen Jennings235513a2005-09-21 22:51:36 +00005559 eval $as_var=C; export $as_var
5560 else
5561 $as_unset $as_var
5562 fi
5563done
5564
5565# Required to use basename.
5566if expr a : '\(a\)' >/dev/null 2>&1; then
5567 as_expr=expr
5568else
5569 as_expr=false
5570fi
5571
5572if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5573 as_basename=basename
5574else
5575 as_basename=false
5576fi
5577
5578
5579# Name of the executable.
5580as_me=`$as_basename "$0" ||
5581$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5582 X"$0" : 'X\(//\)$' \| \
5583 X"$0" : 'X\(/\)$' \| \
5584 . : '\(.\)' 2>/dev/null ||
5585echo X/"$0" |
5586 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5587 /^X\/\(\/\/\)$/{ s//\1/; q; }
5588 /^X\/\(\/\).*/{ s//\1/; q; }
5589 s/.*/./; q'`
5590
5591
5592# PATH needs CR, and LINENO needs CR and PATH.
5593# Avoid depending upon Character Ranges.
5594as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5595as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5596as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5597as_cr_digits='0123456789'
5598as_cr_alnum=$as_cr_Letters$as_cr_digits
5599
5600# The user is always right.
5601if test "${PATH_SEPARATOR+set}" != set; then
5602 echo "#! /bin/sh" >conf$$.sh
5603 echo "exit 0" >>conf$$.sh
5604 chmod +x conf$$.sh
5605 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5606 PATH_SEPARATOR=';'
5607 else
5608 PATH_SEPARATOR=:
5609 fi
5610 rm -f conf$$.sh
5611fi
5612
5613
5614 as_lineno_1=$LINENO
5615 as_lineno_2=$LINENO
5616 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5617 test "x$as_lineno_1" != "x$as_lineno_2" &&
5618 test "x$as_lineno_3" = "x$as_lineno_2" || {
5619 # Find who we are. Look in the path if we contain no path at all
5620 # relative or not.
5621 case $0 in
5622 *[\\/]* ) as_myself=$0 ;;
5623 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624for as_dir in $PATH
5625do
5626 IFS=$as_save_IFS
5627 test -z "$as_dir" && as_dir=.
5628 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5629done
5630
5631 ;;
5632 esac
5633 # We did not find ourselves, most probably we were run as `sh COMMAND'
5634 # in which case we are not to be found in the path.
5635 if test "x$as_myself" = x; then
5636 as_myself=$0
5637 fi
5638 if test ! -f "$as_myself"; then
5639 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5640echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5641 { (exit 1); exit 1; }; }
5642 fi
5643 case $CONFIG_SHELL in
5644 '')
5645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5647do
5648 IFS=$as_save_IFS
5649 test -z "$as_dir" && as_dir=.
5650 for as_base in sh bash ksh sh5; do
5651 case $as_dir in
5652 /*)
5653 if ("$as_dir/$as_base" -c '
5654 as_lineno_1=$LINENO
5655 as_lineno_2=$LINENO
5656 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5657 test "x$as_lineno_1" != "x$as_lineno_2" &&
5658 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5659 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5660 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5661 CONFIG_SHELL=$as_dir/$as_base
5662 export CONFIG_SHELL
5663 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5664 fi;;
5665 esac
5666 done
5667done
5668;;
5669 esac
5670
5671 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5672 # uniformly replaced by the line number. The first 'sed' inserts a
5673 # line-number line before each line; the second 'sed' does the real
5674 # work. The second script uses 'N' to pair each line-number line
5675 # with the numbered line, and appends trailing '-' during
5676 # substitution so that $LINENO is not a special case at line end.
5677 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5678 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5679 sed '=' <$as_myself |
5680 sed '
5681 N
5682 s,$,-,
5683 : loop
5684 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5685 t loop
5686 s,-$,,
5687 s,^['$as_cr_digits']*\n,,
5688 ' >$as_me.lineno &&
5689 chmod +x $as_me.lineno ||
5690 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5691echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5692 { (exit 1); exit 1; }; }
5693
5694 # Don't try to exec as it changes $[0], causing all sort of problems
5695 # (the dirname of $[0] is not the place where we might find the
5696 # original and so on. Autoconf is especially sensible to this).
5697 . ./$as_me.lineno
5698 # Exit status is that of the last command.
5699 exit
5700}
5701
5702
5703case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5704 *c*,-n*) ECHO_N= ECHO_C='
5705' ECHO_T=' ' ;;
5706 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5707 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5708esac
5709
5710if expr a : '\(a\)' >/dev/null 2>&1; then
5711 as_expr=expr
5712else
5713 as_expr=false
5714fi
5715
5716rm -f conf$$ conf$$.exe conf$$.file
5717echo >conf$$.file
5718if ln -s conf$$.file conf$$ 2>/dev/null; then
5719 # We could just check for DJGPP; but this test a) works b) is more generic
5720 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5721 if test -f conf$$.exe; then
5722 # Don't use ln at all; we don't have any links
5723 as_ln_s='cp -p'
5724 else
5725 as_ln_s='ln -s'
5726 fi
5727elif ln conf$$.file conf$$ 2>/dev/null; then
5728 as_ln_s=ln
5729else
5730 as_ln_s='cp -p'
5731fi
5732rm -f conf$$ conf$$.exe conf$$.file
5733
5734if mkdir -p . 2>/dev/null; then
5735 as_mkdir_p=:
5736else
David McGrewfec49dd2005-09-23 19:34:11 +00005737 test -d ./-p && rmdir ./-p
Cullen Jennings235513a2005-09-21 22:51:36 +00005738 as_mkdir_p=false
5739fi
5740
5741as_executable_p="test -f"
5742
5743# Sed expression to map a string onto a valid CPP name.
David McGrewfec49dd2005-09-23 19:34:11 +00005744as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005745
5746# Sed expression to map a string onto a valid variable name.
David McGrewfec49dd2005-09-23 19:34:11 +00005747as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005748
5749
5750# IFS
5751# We need space, tab and new line, in precisely that order.
5752as_nl='
5753'
5754IFS=" $as_nl"
5755
5756# CDPATH.
5757$as_unset CDPATH
5758
5759exec 6>&1
5760
5761# Open the log real soon, to keep \$[0] and so on meaningful, and to
5762# report actual input values of CONFIG_FILES etc. instead of their
5763# values after options handling. Logging --version etc. is OK.
5764exec 5>>config.log
5765{
5766 echo
5767 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5768## Running $as_me. ##
5769_ASBOX
5770} >&5
5771cat >&5 <<_CSEOF
5772
5773This file was extended by $as_me, which was
David McGrewfec49dd2005-09-23 19:34:11 +00005774generated by GNU Autoconf 2.59. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00005775
5776 CONFIG_FILES = $CONFIG_FILES
5777 CONFIG_HEADERS = $CONFIG_HEADERS
5778 CONFIG_LINKS = $CONFIG_LINKS
5779 CONFIG_COMMANDS = $CONFIG_COMMANDS
5780 $ $0 $@
5781
5782_CSEOF
5783echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5784echo >&5
5785_ACEOF
5786
5787# Files that config.status was made for.
5788if test -n "$ac_config_files"; then
5789 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5790fi
5791
5792if test -n "$ac_config_headers"; then
5793 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5794fi
5795
5796if test -n "$ac_config_links"; then
5797 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5798fi
5799
5800if test -n "$ac_config_commands"; then
5801 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5802fi
5803
5804cat >>$CONFIG_STATUS <<\_ACEOF
5805
5806ac_cs_usage="\
5807\`$as_me' instantiates files from templates according to the
5808current configuration.
5809
5810Usage: $0 [OPTIONS] [FILE]...
5811
5812 -h, --help print this help, then exit
5813 -V, --version print version number, then exit
5814 -q, --quiet do not print progress messages
5815 -d, --debug don't remove temporary files
5816 --recheck update $as_me by reconfiguring in the same conditions
5817 --file=FILE[:TEMPLATE]
David McGrewfec49dd2005-09-23 19:34:11 +00005818 instantiate the configuration file FILE
Cullen Jennings235513a2005-09-21 22:51:36 +00005819 --header=FILE[:TEMPLATE]
David McGrewfec49dd2005-09-23 19:34:11 +00005820 instantiate the configuration header FILE
Cullen Jennings235513a2005-09-21 22:51:36 +00005821
5822Configuration files:
5823$config_files
5824
5825Configuration headers:
5826$config_headers
5827
5828Report bugs to <bug-autoconf@gnu.org>."
5829_ACEOF
5830
5831cat >>$CONFIG_STATUS <<_ACEOF
5832ac_cs_version="\\
5833config.status
David McGrewfec49dd2005-09-23 19:34:11 +00005834configured by $0, generated by GNU Autoconf 2.59,
Cullen Jennings235513a2005-09-21 22:51:36 +00005835 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5836
David McGrewfec49dd2005-09-23 19:34:11 +00005837Copyright (C) 2003 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00005838This config.status script is free software; the Free Software Foundation
5839gives unlimited permission to copy, distribute and modify it."
5840srcdir=$srcdir
David McGrewb67061f2005-09-28 14:23:06 +00005841INSTALL="$INSTALL"
Cullen Jennings235513a2005-09-21 22:51:36 +00005842_ACEOF
5843
5844cat >>$CONFIG_STATUS <<\_ACEOF
5845# If no file are specified by the user, then we need to provide default
5846# value. By we need to know if files were specified by the user.
5847ac_need_defaults=:
5848while test $# != 0
5849do
5850 case $1 in
5851 --*=*)
5852 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5853 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5854 ac_shift=:
5855 ;;
5856 -*)
5857 ac_option=$1
5858 ac_optarg=$2
5859 ac_shift=shift
5860 ;;
5861 *) # This is not an option, so the user has probably given explicit
5862 # arguments.
5863 ac_option=$1
5864 ac_need_defaults=false;;
5865 esac
5866
5867 case $ac_option in
5868 # Handling of the options.
5869_ACEOF
5870cat >>$CONFIG_STATUS <<\_ACEOF
5871 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5872 ac_cs_recheck=: ;;
5873 --version | --vers* | -V )
5874 echo "$ac_cs_version"; exit 0 ;;
5875 --he | --h)
5876 # Conflict between --help and --header
5877 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5878Try \`$0 --help' for more information." >&5
5879echo "$as_me: error: ambiguous option: $1
5880Try \`$0 --help' for more information." >&2;}
5881 { (exit 1); exit 1; }; };;
5882 --help | --hel | -h )
5883 echo "$ac_cs_usage"; exit 0 ;;
5884 --debug | --d* | -d )
5885 debug=: ;;
5886 --file | --fil | --fi | --f )
5887 $ac_shift
5888 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5889 ac_need_defaults=false;;
5890 --header | --heade | --head | --hea )
5891 $ac_shift
5892 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5893 ac_need_defaults=false;;
5894 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5895 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5896 ac_cs_silent=: ;;
5897
5898 # This is an error.
5899 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5900Try \`$0 --help' for more information." >&5
5901echo "$as_me: error: unrecognized option: $1
5902Try \`$0 --help' for more information." >&2;}
5903 { (exit 1); exit 1; }; } ;;
5904
5905 *) ac_config_targets="$ac_config_targets $1" ;;
5906
5907 esac
5908 shift
5909done
5910
5911ac_configure_extra_args=
5912
5913if $ac_cs_silent; then
5914 exec 6>/dev/null
5915 ac_configure_extra_args="$ac_configure_extra_args --silent"
5916fi
5917
5918_ACEOF
5919cat >>$CONFIG_STATUS <<_ACEOF
5920if \$ac_cs_recheck; then
5921 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5922 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5923fi
5924
5925_ACEOF
5926
5927
5928
5929
5930
5931cat >>$CONFIG_STATUS <<\_ACEOF
5932for ac_config_target in $ac_config_targets
5933do
5934 case "$ac_config_target" in
5935 # Handling of arguments.
5936 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
David McGrewfec49dd2005-09-23 19:34:11 +00005937 "crypto/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS crypto/include/config.h:config_in.h" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005938 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5939echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5940 { (exit 1); exit 1; }; };;
5941 esac
5942done
5943
5944# If the user did not use the arguments to specify the items to instantiate,
5945# then the envvar interface is used. Set only those that are not.
5946# We use the long form for the default assignment because of an extremely
5947# bizarre bug on SunOS 4.1.3.
5948if $ac_need_defaults; then
5949 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5950 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5951fi
5952
5953# Have a temporary directory for convenience. Make it in the build tree
5954# simply because there is no reason to put it here, and in addition,
5955# creating and moving files from /tmp can sometimes cause problems.
5956# Create a temporary directory, and hook for its removal unless debugging.
5957$debug ||
5958{
5959 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5960 trap '{ (exit 1); exit 1; }' 1 2 13 15
5961}
5962
5963# Create a (secure) tmp directory for tmp files.
5964
5965{
5966 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5967 test -n "$tmp" && test -d "$tmp"
5968} ||
5969{
5970 tmp=./confstat$$-$RANDOM
5971 (umask 077 && mkdir $tmp)
5972} ||
5973{
5974 echo "$me: cannot create a temporary directory in ." >&2
5975 { (exit 1); exit 1; }
5976}
5977
5978_ACEOF
5979
5980cat >>$CONFIG_STATUS <<_ACEOF
5981
5982#
5983# CONFIG_FILES section.
5984#
5985
5986# No need to generate the scripts if there are no CONFIG_FILES.
5987# This happens for instance when ./config.status config.h
5988if test -n "\$CONFIG_FILES"; then
5989 # Protect against being on the right side of a sed subst in config.status.
5990 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5991 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5992s,@SHELL@,$SHELL,;t t
5993s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5994s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5995s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5996s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5997s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5998s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5999s,@exec_prefix@,$exec_prefix,;t t
6000s,@prefix@,$prefix,;t t
6001s,@program_transform_name@,$program_transform_name,;t t
6002s,@bindir@,$bindir,;t t
6003s,@sbindir@,$sbindir,;t t
6004s,@libexecdir@,$libexecdir,;t t
6005s,@datadir@,$datadir,;t t
6006s,@sysconfdir@,$sysconfdir,;t t
6007s,@sharedstatedir@,$sharedstatedir,;t t
6008s,@localstatedir@,$localstatedir,;t t
6009s,@libdir@,$libdir,;t t
6010s,@includedir@,$includedir,;t t
6011s,@oldincludedir@,$oldincludedir,;t t
6012s,@infodir@,$infodir,;t t
6013s,@mandir@,$mandir,;t t
6014s,@build_alias@,$build_alias,;t t
6015s,@host_alias@,$host_alias,;t t
6016s,@target_alias@,$target_alias,;t t
6017s,@DEFS@,$DEFS,;t t
6018s,@ECHO_C@,$ECHO_C,;t t
6019s,@ECHO_N@,$ECHO_N,;t t
6020s,@ECHO_T@,$ECHO_T,;t t
6021s,@LIBS@,$LIBS,;t t
6022s,@RANLIB@,$RANLIB,;t t
6023s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6024s,@CC@,$CC,;t t
6025s,@CFLAGS@,$CFLAGS,;t t
6026s,@LDFLAGS@,$LDFLAGS,;t t
6027s,@CPPFLAGS@,$CPPFLAGS,;t t
6028s,@ac_ct_CC@,$ac_ct_CC,;t t
6029s,@EXEEXT@,$EXEEXT,;t t
6030s,@OBJEXT@,$OBJEXT,;t t
David McGrewb67061f2005-09-28 14:23:06 +00006031s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6032s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6033s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Cullen Jennings235513a2005-09-21 22:51:36 +00006034s,@RNG_OBJS@,$RNG_OBJS,;t t
6035s,@CPP@,$CPP,;t t
6036s,@EGREP@,$EGREP,;t t
Cullen Jennings235513a2005-09-21 22:51:36 +00006037s,@build@,$build,;t t
6038s,@build_cpu@,$build_cpu,;t t
6039s,@build_vendor@,$build_vendor,;t t
6040s,@build_os@,$build_os,;t t
6041s,@host@,$host,;t t
6042s,@host_cpu@,$host_cpu,;t t
6043s,@host_vendor@,$host_vendor,;t t
6044s,@host_os@,$host_os,;t t
6045s,@EXE@,$EXE,;t t
6046s,@GDOI_OBJS@,$GDOI_OBJS,;t t
David McGrewb67061f2005-09-28 14:23:06 +00006047s,@LIBOBJS@,$LIBOBJS,;t t
Cullen Jennings235513a2005-09-21 22:51:36 +00006048s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6049CEOF
6050
6051_ACEOF
6052
6053 cat >>$CONFIG_STATUS <<\_ACEOF
6054 # Split the substitutions into bite-sized pieces for seds with
6055 # small command number limits, like on Digital OSF/1 and HP-UX.
6056 ac_max_sed_lines=48
6057 ac_sed_frag=1 # Number of current file.
6058 ac_beg=1 # First line for current file.
6059 ac_end=$ac_max_sed_lines # Line after last line for current file.
6060 ac_more_lines=:
6061 ac_sed_cmds=
6062 while $ac_more_lines; do
6063 if test $ac_beg -gt 1; then
6064 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6065 else
6066 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6067 fi
6068 if test ! -s $tmp/subs.frag; then
6069 ac_more_lines=false
6070 else
6071 # The purpose of the label and of the branching condition is to
6072 # speed up the sed processing (if there are no `@' at all, there
6073 # is no need to browse any of the substitutions).
6074 # These are the two extra sed commands mentioned above.
6075 (echo ':t
6076 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6077 if test -z "$ac_sed_cmds"; then
David McGrewfec49dd2005-09-23 19:34:11 +00006078 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
Cullen Jennings235513a2005-09-21 22:51:36 +00006079 else
David McGrewfec49dd2005-09-23 19:34:11 +00006080 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
Cullen Jennings235513a2005-09-21 22:51:36 +00006081 fi
6082 ac_sed_frag=`expr $ac_sed_frag + 1`
6083 ac_beg=$ac_end
6084 ac_end=`expr $ac_end + $ac_max_sed_lines`
6085 fi
6086 done
6087 if test -z "$ac_sed_cmds"; then
6088 ac_sed_cmds=cat
6089 fi
6090fi # test -n "$CONFIG_FILES"
6091
6092_ACEOF
6093cat >>$CONFIG_STATUS <<\_ACEOF
6094for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6095 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6096 case $ac_file in
6097 - | *:- | *:-:* ) # input from stdin
David McGrewfec49dd2005-09-23 19:34:11 +00006098 cat >$tmp/stdin
6099 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6100 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006101 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
David McGrewfec49dd2005-09-23 19:34:11 +00006102 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006103 * ) ac_file_in=$ac_file.in ;;
6104 esac
6105
6106 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6107 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6108$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
David McGrewfec49dd2005-09-23 19:34:11 +00006109 X"$ac_file" : 'X\(//\)[^/]' \| \
6110 X"$ac_file" : 'X\(//\)$' \| \
6111 X"$ac_file" : 'X\(/\)' \| \
6112 . : '\(.\)' 2>/dev/null ||
Cullen Jennings235513a2005-09-21 22:51:36 +00006113echo X"$ac_file" |
6114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6115 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6116 /^X\(\/\/\)$/{ s//\1/; q; }
6117 /^X\(\/\).*/{ s//\1/; q; }
6118 s/.*/./; q'`
6119 { if $as_mkdir_p; then
6120 mkdir -p "$ac_dir"
6121 else
6122 as_dir="$ac_dir"
6123 as_dirs=
6124 while test ! -d "$as_dir"; do
6125 as_dirs="$as_dir $as_dirs"
6126 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6127$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
David McGrewfec49dd2005-09-23 19:34:11 +00006128 X"$as_dir" : 'X\(//\)[^/]' \| \
6129 X"$as_dir" : 'X\(//\)$' \| \
6130 X"$as_dir" : 'X\(/\)' \| \
6131 . : '\(.\)' 2>/dev/null ||
Cullen Jennings235513a2005-09-21 22:51:36 +00006132echo X"$as_dir" |
6133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6134 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6135 /^X\(\/\/\)$/{ s//\1/; q; }
6136 /^X\(\/\).*/{ s//\1/; q; }
6137 s/.*/./; q'`
6138 done
6139 test ! -n "$as_dirs" || mkdir $as_dirs
6140 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6141echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6142 { (exit 1); exit 1; }; }; }
6143
6144 ac_builddir=.
6145
6146if test "$ac_dir" != .; then
6147 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6148 # A "../" for each directory in $ac_dir_suffix.
6149 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6150else
6151 ac_dir_suffix= ac_top_builddir=
6152fi
6153
6154case $srcdir in
6155 .) # No --srcdir option. We are building in place.
6156 ac_srcdir=.
6157 if test -z "$ac_top_builddir"; then
6158 ac_top_srcdir=.
6159 else
6160 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6161 fi ;;
6162 [\\/]* | ?:[\\/]* ) # Absolute path.
6163 ac_srcdir=$srcdir$ac_dir_suffix;
6164 ac_top_srcdir=$srcdir ;;
6165 *) # Relative path.
6166 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6167 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6168esac
David McGrewfec49dd2005-09-23 19:34:11 +00006169
6170# Do not use `cd foo && pwd` to compute absolute paths, because
6171# the directories may not exist.
6172case `pwd` in
6173.) ac_abs_builddir="$ac_dir";;
6174*)
6175 case "$ac_dir" in
6176 .) ac_abs_builddir=`pwd`;;
6177 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6178 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6179 esac;;
6180esac
6181case $ac_abs_builddir in
6182.) ac_abs_top_builddir=${ac_top_builddir}.;;
6183*)
6184 case ${ac_top_builddir}. in
6185 .) ac_abs_top_builddir=$ac_abs_builddir;;
6186 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6187 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6188 esac;;
6189esac
6190case $ac_abs_builddir in
6191.) ac_abs_srcdir=$ac_srcdir;;
6192*)
6193 case $ac_srcdir in
6194 .) ac_abs_srcdir=$ac_abs_builddir;;
6195 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6196 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6197 esac;;
6198esac
6199case $ac_abs_builddir in
6200.) ac_abs_top_srcdir=$ac_top_srcdir;;
6201*)
6202 case $ac_top_srcdir in
6203 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6204 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6205 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6206 esac;;
6207esac
Cullen Jennings235513a2005-09-21 22:51:36 +00006208
6209
David McGrewb67061f2005-09-28 14:23:06 +00006210 case $INSTALL in
6211 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6212 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6213 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00006214
6215 if test x"$ac_file" != x-; then
6216 { echo "$as_me:$LINENO: creating $ac_file" >&5
6217echo "$as_me: creating $ac_file" >&6;}
6218 rm -f "$ac_file"
6219 fi
6220 # Let's still pretend it is `configure' which instantiates (i.e., don't
6221 # use $as_me), people would be surprised to read:
6222 # /* config.h. Generated by config.status. */
6223 if test x"$ac_file" = x-; then
6224 configure_input=
6225 else
6226 configure_input="$ac_file. "
6227 fi
6228 configure_input=$configure_input"Generated from `echo $ac_file_in |
David McGrewfec49dd2005-09-23 19:34:11 +00006229 sed 's,.*/,,'` by configure."
Cullen Jennings235513a2005-09-21 22:51:36 +00006230
6231 # First look for the input files in the build tree, otherwise in the
6232 # src tree.
6233 ac_file_inputs=`IFS=:
6234 for f in $ac_file_in; do
6235 case $f in
6236 -) echo $tmp/stdin ;;
6237 [\\/$]*)
David McGrewfec49dd2005-09-23 19:34:11 +00006238 # Absolute (can't be DOS-style, as IFS=:)
6239 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00006240echo "$as_me: error: cannot find input file: $f" >&2;}
6241 { (exit 1); exit 1; }; }
David McGrewfec49dd2005-09-23 19:34:11 +00006242 echo "$f";;
Cullen Jennings235513a2005-09-21 22:51:36 +00006243 *) # Relative
David McGrewfec49dd2005-09-23 19:34:11 +00006244 if test -f "$f"; then
6245 # Build tree
6246 echo "$f"
6247 elif test -f "$srcdir/$f"; then
6248 # Source tree
6249 echo "$srcdir/$f"
6250 else
6251 # /dev/null tree
6252 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00006253echo "$as_me: error: cannot find input file: $f" >&2;}
6254 { (exit 1); exit 1; }; }
David McGrewfec49dd2005-09-23 19:34:11 +00006255 fi;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006256 esac
6257 done` || { (exit 1); exit 1; }
6258_ACEOF
6259cat >>$CONFIG_STATUS <<_ACEOF
6260 sed "$ac_vpsub
6261$extrasub
6262_ACEOF
6263cat >>$CONFIG_STATUS <<\_ACEOF
6264:t
6265/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6266s,@configure_input@,$configure_input,;t t
6267s,@srcdir@,$ac_srcdir,;t t
6268s,@abs_srcdir@,$ac_abs_srcdir,;t t
6269s,@top_srcdir@,$ac_top_srcdir,;t t
6270s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6271s,@builddir@,$ac_builddir,;t t
6272s,@abs_builddir@,$ac_abs_builddir,;t t
6273s,@top_builddir@,$ac_top_builddir,;t t
6274s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
David McGrewb67061f2005-09-28 14:23:06 +00006275s,@INSTALL@,$ac_INSTALL,;t t
Cullen Jennings235513a2005-09-21 22:51:36 +00006276" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6277 rm -f $tmp/stdin
6278 if test x"$ac_file" != x-; then
6279 mv $tmp/out $ac_file
6280 else
6281 cat $tmp/out
6282 rm -f $tmp/out
6283 fi
6284
6285done
6286_ACEOF
6287cat >>$CONFIG_STATUS <<\_ACEOF
6288
6289#
6290# CONFIG_HEADER section.
6291#
6292
6293# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6294# NAME is the cpp macro being defined and VALUE is the value it is being given.
6295#
6296# ac_d sets the value in "#define NAME VALUE" lines.
David McGrewfec49dd2005-09-23 19:34:11 +00006297ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6298ac_dB='[ ].*$,\1#\2'
Cullen Jennings235513a2005-09-21 22:51:36 +00006299ac_dC=' '
6300ac_dD=',;t'
6301# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
David McGrewfec49dd2005-09-23 19:34:11 +00006302ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
Cullen Jennings235513a2005-09-21 22:51:36 +00006303ac_uB='$,\1#\2define\3'
6304ac_uC=' '
6305ac_uD=',;t'
6306
6307for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6308 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6309 case $ac_file in
6310 - | *:- | *:-:* ) # input from stdin
David McGrewfec49dd2005-09-23 19:34:11 +00006311 cat >$tmp/stdin
6312 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6313 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006314 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
David McGrewfec49dd2005-09-23 19:34:11 +00006315 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006316 * ) ac_file_in=$ac_file.in ;;
6317 esac
6318
6319 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6320echo "$as_me: creating $ac_file" >&6;}
6321
6322 # First look for the input files in the build tree, otherwise in the
6323 # src tree.
6324 ac_file_inputs=`IFS=:
6325 for f in $ac_file_in; do
6326 case $f in
6327 -) echo $tmp/stdin ;;
6328 [\\/$]*)
David McGrewfec49dd2005-09-23 19:34:11 +00006329 # Absolute (can't be DOS-style, as IFS=:)
6330 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00006331echo "$as_me: error: cannot find input file: $f" >&2;}
6332 { (exit 1); exit 1; }; }
David McGrewfec49dd2005-09-23 19:34:11 +00006333 # Do quote $f, to prevent DOS paths from being IFS'd.
6334 echo "$f";;
Cullen Jennings235513a2005-09-21 22:51:36 +00006335 *) # Relative
David McGrewfec49dd2005-09-23 19:34:11 +00006336 if test -f "$f"; then
6337 # Build tree
6338 echo "$f"
6339 elif test -f "$srcdir/$f"; then
6340 # Source tree
6341 echo "$srcdir/$f"
6342 else
6343 # /dev/null tree
6344 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00006345echo "$as_me: error: cannot find input file: $f" >&2;}
6346 { (exit 1); exit 1; }; }
David McGrewfec49dd2005-09-23 19:34:11 +00006347 fi;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006348 esac
6349 done` || { (exit 1); exit 1; }
6350 # Remove the trailing spaces.
David McGrewfec49dd2005-09-23 19:34:11 +00006351 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Cullen Jennings235513a2005-09-21 22:51:36 +00006352
6353_ACEOF
6354
6355# Transform confdefs.h into two sed scripts, `conftest.defines' and
6356# `conftest.undefs', that substitutes the proper values into
6357# config.h.in to produce config.h. The first handles `#define'
6358# templates, and the second `#undef' templates.
6359# And first: Protect against being on the right side of a sed subst in
6360# config.status. Protect against being in an unquoted here document
6361# in config.status.
6362rm -f conftest.defines conftest.undefs
6363# Using a here document instead of a string reduces the quoting nightmare.
6364# Putting comments in sed scripts is not portable.
6365#
6366# `end' is used to avoid that the second main sed command (meant for
6367# 0-ary CPP macros) applies to n-ary macro definitions.
6368# See the Autoconf documentation for `clear'.
6369cat >confdef2sed.sed <<\_ACEOF
6370s/[\\&,]/\\&/g
6371s,[\\$`],\\&,g
6372t clear
6373: clear
David McGrewfec49dd2005-09-23 19:34:11 +00006374s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
Cullen Jennings235513a2005-09-21 22:51:36 +00006375t end
David McGrewfec49dd2005-09-23 19:34:11 +00006376s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
Cullen Jennings235513a2005-09-21 22:51:36 +00006377: end
6378_ACEOF
6379# If some macros were called several times there might be several times
6380# the same #defines, which is useless. Nevertheless, we may not want to
6381# sort them, since we want the *last* AC-DEFINE to be honored.
6382uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6383sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6384rm -f confdef2sed.sed
6385
6386# This sed command replaces #undef with comments. This is necessary, for
6387# example, in the case of _POSIX_SOURCE, which is predefined and required
6388# on some systems where configure will not decide to define it.
6389cat >>conftest.undefs <<\_ACEOF
David McGrewfec49dd2005-09-23 19:34:11 +00006390s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
Cullen Jennings235513a2005-09-21 22:51:36 +00006391_ACEOF
6392
6393# Break up conftest.defines because some shells have a limit on the size
6394# of here documents, and old seds have small limits too (100 cmds).
6395echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
David McGrewfec49dd2005-09-23 19:34:11 +00006396echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
Cullen Jennings235513a2005-09-21 22:51:36 +00006397echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6398echo ' :' >>$CONFIG_STATUS
6399rm -f conftest.tail
6400while grep . conftest.defines >/dev/null
6401do
6402 # Write a limited-size here document to $tmp/defines.sed.
6403 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6404 # Speed up: don't consider the non `#define' lines.
David McGrewfec49dd2005-09-23 19:34:11 +00006405 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
Cullen Jennings235513a2005-09-21 22:51:36 +00006406 # Work around the forget-to-reset-the-flag bug.
6407 echo 't clr' >>$CONFIG_STATUS
6408 echo ': clr' >>$CONFIG_STATUS
6409 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6410 echo 'CEOF
6411 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6412 rm -f $tmp/in
6413 mv $tmp/out $tmp/in
6414' >>$CONFIG_STATUS
6415 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6416 rm -f conftest.defines
6417 mv conftest.tail conftest.defines
6418done
6419rm -f conftest.defines
6420echo ' fi # grep' >>$CONFIG_STATUS
6421echo >>$CONFIG_STATUS
6422
6423# Break up conftest.undefs because some shells have a limit on the size
6424# of here documents, and old seds have small limits too (100 cmds).
6425echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6426rm -f conftest.tail
6427while grep . conftest.undefs >/dev/null
6428do
6429 # Write a limited-size here document to $tmp/undefs.sed.
6430 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6431 # Speed up: don't consider the non `#undef'
David McGrewfec49dd2005-09-23 19:34:11 +00006432 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
Cullen Jennings235513a2005-09-21 22:51:36 +00006433 # Work around the forget-to-reset-the-flag bug.
6434 echo 't clr' >>$CONFIG_STATUS
6435 echo ': clr' >>$CONFIG_STATUS
6436 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6437 echo 'CEOF
6438 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6439 rm -f $tmp/in
6440 mv $tmp/out $tmp/in
6441' >>$CONFIG_STATUS
6442 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6443 rm -f conftest.undefs
6444 mv conftest.tail conftest.undefs
6445done
6446rm -f conftest.undefs
6447
6448cat >>$CONFIG_STATUS <<\_ACEOF
6449 # Let's still pretend it is `configure' which instantiates (i.e., don't
6450 # use $as_me), people would be surprised to read:
6451 # /* config.h. Generated by config.status. */
6452 if test x"$ac_file" = x-; then
6453 echo "/* Generated by configure. */" >$tmp/config.h
6454 else
6455 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6456 fi
6457 cat $tmp/in >>$tmp/config.h
6458 rm -f $tmp/in
6459 if test x"$ac_file" != x-; then
6460 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6461 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6462echo "$as_me: $ac_file is unchanged" >&6;}
6463 else
6464 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6465$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
David McGrewfec49dd2005-09-23 19:34:11 +00006466 X"$ac_file" : 'X\(//\)[^/]' \| \
6467 X"$ac_file" : 'X\(//\)$' \| \
6468 X"$ac_file" : 'X\(/\)' \| \
6469 . : '\(.\)' 2>/dev/null ||
Cullen Jennings235513a2005-09-21 22:51:36 +00006470echo X"$ac_file" |
6471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6472 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6473 /^X\(\/\/\)$/{ s//\1/; q; }
6474 /^X\(\/\).*/{ s//\1/; q; }
6475 s/.*/./; q'`
6476 { if $as_mkdir_p; then
6477 mkdir -p "$ac_dir"
6478 else
6479 as_dir="$ac_dir"
6480 as_dirs=
6481 while test ! -d "$as_dir"; do
6482 as_dirs="$as_dir $as_dirs"
6483 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6484$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
David McGrewfec49dd2005-09-23 19:34:11 +00006485 X"$as_dir" : 'X\(//\)[^/]' \| \
6486 X"$as_dir" : 'X\(//\)$' \| \
6487 X"$as_dir" : 'X\(/\)' \| \
6488 . : '\(.\)' 2>/dev/null ||
Cullen Jennings235513a2005-09-21 22:51:36 +00006489echo X"$as_dir" |
6490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6491 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6492 /^X\(\/\/\)$/{ s//\1/; q; }
6493 /^X\(\/\).*/{ s//\1/; q; }
6494 s/.*/./; q'`
6495 done
6496 test ! -n "$as_dirs" || mkdir $as_dirs
6497 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6498echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6499 { (exit 1); exit 1; }; }; }
6500
6501 rm -f $ac_file
6502 mv $tmp/config.h $ac_file
6503 fi
6504 else
6505 cat $tmp/config.h
6506 rm -f $tmp/config.h
6507 fi
6508done
6509_ACEOF
6510
6511cat >>$CONFIG_STATUS <<\_ACEOF
6512
6513{ (exit 0); exit 0; }
6514_ACEOF
6515chmod +x $CONFIG_STATUS
6516ac_clean_files=$ac_clean_files_save
6517
6518
6519# configure is writing to config.log, and then calls config.status.
6520# config.status does its own redirection, appending to config.log.
6521# Unfortunately, on DOS this fails, as config.log is still kept open
6522# by configure, so config.status won't be able to write to it; its
6523# output is simply discarded. So we exec the FD to /dev/null,
6524# effectively closing config.log, so it can be properly (re)opened and
6525# appended to by config.status. When coming back to configure, we
6526# need to make the FD available again.
6527if test "$no_create" != yes; then
6528 ac_cs_success=:
6529 ac_config_status_args=
6530 test "$silent" = yes &&
6531 ac_config_status_args="$ac_config_status_args --quiet"
6532 exec 5>/dev/null
6533 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6534 exec 5>>config.log
6535 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6536 # would make configure fail if this is the last instruction.
6537 $ac_cs_success || { (exit 1); exit 1; }
6538fi
6539
6540
6541