]> jfr.im git - irc/DALnet/libd.git/blame - configure
Integrate SSL into system initialiation and code example.
[irc/DALnet/libd.git] / configure
CommitLineData
bf042c35 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463}
464
465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479*)
480 ECHO_N='-n';;
481esac
482
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496fi
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508else
509 as_ln_s='cp -p'
510fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
513
514if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519fi
520
521if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541fi
542as_executable_p=$as_test_x
543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552exec 7<&0 </dev/null 6>&1
553
554# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559#
560# Initializations.
561#
562ac_default_prefix=/usr/local
563ac_clean_files=
564ac_config_libobj_dir=.
565LIBOBJS=
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571
572# Identity of this package.
573PACKAGE_NAME=
574PACKAGE_TARNAME=
575PACKAGE_VERSION=
576PACKAGE_STRING=
577PACKAGE_BUGREPORT=
578
579# Factoring default headers for most tests.
580ac_includes_default="\
581#include <stdio.h>
582#ifdef HAVE_SYS_TYPES_H
583# include <sys/types.h>
584#endif
585#ifdef HAVE_SYS_STAT_H
586# include <sys/stat.h>
587#endif
588#ifdef STDC_HEADERS
589# include <stdlib.h>
590# include <stddef.h>
591#else
592# ifdef HAVE_STDLIB_H
593# include <stdlib.h>
594# endif
595#endif
596#ifdef HAVE_STRING_H
597# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598# include <memory.h>
599# endif
600# include <string.h>
601#endif
602#ifdef HAVE_STRINGS_H
603# include <strings.h>
604#endif
605#ifdef HAVE_INTTYPES_H
606# include <inttypes.h>
607#endif
608#ifdef HAVE_STDINT_H
609# include <stdint.h>
610#endif
611#ifdef HAVE_UNISTD_H
612# include <unistd.h>
613#endif"
614
615ac_subst_vars='SHELL
616PATH_SEPARATOR
617PACKAGE_NAME
618PACKAGE_TARNAME
619PACKAGE_VERSION
620PACKAGE_STRING
621PACKAGE_BUGREPORT
622exec_prefix
623prefix
624program_transform_name
625bindir
626sbindir
627libexecdir
628datarootdir
629datadir
630sysconfdir
631sharedstatedir
632localstatedir
633includedir
634oldincludedir
635docdir
636infodir
637htmldir
638dvidir
639pdfdir
640psdir
641libdir
642localedir
643mandir
644DEFS
645ECHO_C
646ECHO_N
647ECHO_T
648LIBS
649build_alias
650host_alias
651target_alias
652CC
653CFLAGS
654LDFLAGS
655CPPFLAGS
656ac_ct_CC
657EXEEXT
658OBJEXT
659build
660build_cpu
661build_vendor
662build_os
663host
664host_cpu
665host_vendor
666host_os
11b73fef 667PRTDIAG
bf042c35 668target
669target_cpu
670target_vendor
671target_os
bf042c35 672SET_MAKE
673RM
674CP
675MV
676SED
677INSTALL_PROGRAM
678INSTALL_SCRIPT
679INSTALL_DATA
680CPP
681GREP
682EGREP
683LIBOBJS
bf042c35 684SSL_INCLUDES
685SSL_LIBS
686SENGINE
687INSTALL_DIR
688LTLIBOBJS'
689ac_subst_files=''
690 ac_precious_vars='build_alias
691host_alias
692target_alias
693CC
694CFLAGS
695LDFLAGS
696LIBS
697CPPFLAGS
698CPP'
699
700
701# Initialize some variables set by options.
702ac_init_help=
703ac_init_version=false
704# The variables have the same names as the options, with
705# dashes changed to underlines.
706cache_file=/dev/null
707exec_prefix=NONE
708no_create=
709no_recursion=
710prefix=NONE
711program_prefix=NONE
712program_suffix=NONE
713program_transform_name=s,x,x,
714silent=
715site=
716srcdir=
717verbose=
718x_includes=NONE
719x_libraries=NONE
720
721# Installation directory options.
722# These are left unexpanded so users can "make install exec_prefix=/foo"
723# and all the variables that are supposed to be based on exec_prefix
724# by default will actually change.
725# Use braces instead of parens because sh, perl, etc. also accept them.
726# (The list follows the same order as the GNU Coding Standards.)
727bindir='${exec_prefix}/bin'
728sbindir='${exec_prefix}/sbin'
729libexecdir='${exec_prefix}/libexec'
730datarootdir='${prefix}/share'
731datadir='${datarootdir}'
732sysconfdir='${prefix}/etc'
733sharedstatedir='${prefix}/com'
734localstatedir='${prefix}/var'
735includedir='${prefix}/include'
736oldincludedir='/usr/include'
737docdir='${datarootdir}/doc/${PACKAGE}'
738infodir='${datarootdir}/info'
739htmldir='${docdir}'
740dvidir='${docdir}'
741pdfdir='${docdir}'
742psdir='${docdir}'
743libdir='${exec_prefix}/lib'
744localedir='${datarootdir}/locale'
745mandir='${datarootdir}/man'
746
747ac_prev=
748ac_dashdash=
749for ac_option
750do
751 # If the previous option needs an argument, assign it.
752 if test -n "$ac_prev"; then
753 eval $ac_prev=\$ac_option
754 ac_prev=
755 continue
756 fi
757
758 case $ac_option in
759 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
760 *) ac_optarg=yes ;;
761 esac
762
763 # Accept the important Cygnus configure options, so we can diagnose typos.
764
765 case $ac_dashdash$ac_option in
766 --)
767 ac_dashdash=yes ;;
768
769 -bindir | --bindir | --bindi | --bind | --bin | --bi)
770 ac_prev=bindir ;;
771 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
772 bindir=$ac_optarg ;;
773
774 -build | --build | --buil | --bui | --bu)
775 ac_prev=build_alias ;;
776 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
777 build_alias=$ac_optarg ;;
778
779 -cache-file | --cache-file | --cache-fil | --cache-fi \
780 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
781 ac_prev=cache_file ;;
782 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
783 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
784 cache_file=$ac_optarg ;;
785
786 --config-cache | -C)
787 cache_file=config.cache ;;
788
789 -datadir | --datadir | --datadi | --datad)
790 ac_prev=datadir ;;
791 -datadir=* | --datadir=* | --datadi=* | --datad=*)
792 datadir=$ac_optarg ;;
793
794 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
795 | --dataroo | --dataro | --datar)
796 ac_prev=datarootdir ;;
797 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
798 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
799 datarootdir=$ac_optarg ;;
800
801 -disable-* | --disable-*)
802 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
803 # Reject names that are not valid shell variable names.
804 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
805 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
806 { (exit 1); exit 1; }; }
807 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
808 eval enable_$ac_feature=no ;;
809
810 -docdir | --docdir | --docdi | --doc | --do)
811 ac_prev=docdir ;;
812 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
813 docdir=$ac_optarg ;;
814
815 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
816 ac_prev=dvidir ;;
817 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
818 dvidir=$ac_optarg ;;
819
820 -enable-* | --enable-*)
821 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
822 # Reject names that are not valid shell variable names.
823 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
824 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
825 { (exit 1); exit 1; }; }
826 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
827 eval enable_$ac_feature=\$ac_optarg ;;
828
829 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
830 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
831 | --exec | --exe | --ex)
832 ac_prev=exec_prefix ;;
833 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
834 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
835 | --exec=* | --exe=* | --ex=*)
836 exec_prefix=$ac_optarg ;;
837
838 -gas | --gas | --ga | --g)
839 # Obsolete; use --with-gas.
840 with_gas=yes ;;
841
842 -help | --help | --hel | --he | -h)
843 ac_init_help=long ;;
844 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
845 ac_init_help=recursive ;;
846 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
847 ac_init_help=short ;;
848
849 -host | --host | --hos | --ho)
850 ac_prev=host_alias ;;
851 -host=* | --host=* | --hos=* | --ho=*)
852 host_alias=$ac_optarg ;;
853
854 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
855 ac_prev=htmldir ;;
856 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
857 | --ht=*)
858 htmldir=$ac_optarg ;;
859
860 -includedir | --includedir | --includedi | --included | --include \
861 | --includ | --inclu | --incl | --inc)
862 ac_prev=includedir ;;
863 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
864 | --includ=* | --inclu=* | --incl=* | --inc=*)
865 includedir=$ac_optarg ;;
866
867 -infodir | --infodir | --infodi | --infod | --info | --inf)
868 ac_prev=infodir ;;
869 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
870 infodir=$ac_optarg ;;
871
872 -libdir | --libdir | --libdi | --libd)
873 ac_prev=libdir ;;
874 -libdir=* | --libdir=* | --libdi=* | --libd=*)
875 libdir=$ac_optarg ;;
876
877 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
878 | --libexe | --libex | --libe)
879 ac_prev=libexecdir ;;
880 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
881 | --libexe=* | --libex=* | --libe=*)
882 libexecdir=$ac_optarg ;;
883
884 -localedir | --localedir | --localedi | --localed | --locale)
885 ac_prev=localedir ;;
886 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
887 localedir=$ac_optarg ;;
888
889 -localstatedir | --localstatedir | --localstatedi | --localstated \
890 | --localstate | --localstat | --localsta | --localst | --locals)
891 ac_prev=localstatedir ;;
892 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
893 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
894 localstatedir=$ac_optarg ;;
895
896 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
897 ac_prev=mandir ;;
898 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
899 mandir=$ac_optarg ;;
900
901 -nfp | --nfp | --nf)
902 # Obsolete; use --without-fp.
903 with_fp=no ;;
904
905 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
906 | --no-cr | --no-c | -n)
907 no_create=yes ;;
908
909 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
910 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
911 no_recursion=yes ;;
912
913 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
914 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
915 | --oldin | --oldi | --old | --ol | --o)
916 ac_prev=oldincludedir ;;
917 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
918 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
919 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
920 oldincludedir=$ac_optarg ;;
921
922 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
923 ac_prev=prefix ;;
924 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
925 prefix=$ac_optarg ;;
926
927 -program-prefix | --program-prefix | --program-prefi | --program-pref \
928 | --program-pre | --program-pr | --program-p)
929 ac_prev=program_prefix ;;
930 -program-prefix=* | --program-prefix=* | --program-prefi=* \
931 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
932 program_prefix=$ac_optarg ;;
933
934 -program-suffix | --program-suffix | --program-suffi | --program-suff \
935 | --program-suf | --program-su | --program-s)
936 ac_prev=program_suffix ;;
937 -program-suffix=* | --program-suffix=* | --program-suffi=* \
938 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
939 program_suffix=$ac_optarg ;;
940
941 -program-transform-name | --program-transform-name \
942 | --program-transform-nam | --program-transform-na \
943 | --program-transform-n | --program-transform- \
944 | --program-transform | --program-transfor \
945 | --program-transfo | --program-transf \
946 | --program-trans | --program-tran \
947 | --progr-tra | --program-tr | --program-t)
948 ac_prev=program_transform_name ;;
949 -program-transform-name=* | --program-transform-name=* \
950 | --program-transform-nam=* | --program-transform-na=* \
951 | --program-transform-n=* | --program-transform-=* \
952 | --program-transform=* | --program-transfor=* \
953 | --program-transfo=* | --program-transf=* \
954 | --program-trans=* | --program-tran=* \
955 | --progr-tra=* | --program-tr=* | --program-t=*)
956 program_transform_name=$ac_optarg ;;
957
958 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
959 ac_prev=pdfdir ;;
960 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
961 pdfdir=$ac_optarg ;;
962
963 -psdir | --psdir | --psdi | --psd | --ps)
964 ac_prev=psdir ;;
965 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
966 psdir=$ac_optarg ;;
967
968 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
969 | -silent | --silent | --silen | --sile | --sil)
970 silent=yes ;;
971
972 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
973 ac_prev=sbindir ;;
974 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
975 | --sbi=* | --sb=*)
976 sbindir=$ac_optarg ;;
977
978 -sharedstatedir | --sharedstatedir | --sharedstatedi \
979 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
980 | --sharedst | --shareds | --shared | --share | --shar \
981 | --sha | --sh)
982 ac_prev=sharedstatedir ;;
983 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
984 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
985 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
986 | --sha=* | --sh=*)
987 sharedstatedir=$ac_optarg ;;
988
989 -site | --site | --sit)
990 ac_prev=site ;;
991 -site=* | --site=* | --sit=*)
992 site=$ac_optarg ;;
993
994 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
995 ac_prev=srcdir ;;
996 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
997 srcdir=$ac_optarg ;;
998
999 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1000 | --syscon | --sysco | --sysc | --sys | --sy)
1001 ac_prev=sysconfdir ;;
1002 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1003 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1004 sysconfdir=$ac_optarg ;;
1005
1006 -target | --target | --targe | --targ | --tar | --ta | --t)
1007 ac_prev=target_alias ;;
1008 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1009 target_alias=$ac_optarg ;;
1010
1011 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1012 verbose=yes ;;
1013
1014 -version | --version | --versio | --versi | --vers | -V)
1015 ac_init_version=: ;;
1016
1017 -with-* | --with-*)
1018 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1021 { echo "$as_me: error: invalid package name: $ac_package" >&2
1022 { (exit 1); exit 1; }; }
1023 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1024 eval with_$ac_package=\$ac_optarg ;;
1025
1026 -without-* | --without-*)
1027 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1030 { echo "$as_me: error: invalid package name: $ac_package" >&2
1031 { (exit 1); exit 1; }; }
1032 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1033 eval with_$ac_package=no ;;
1034
1035 --x)
1036 # Obsolete; use --with-x.
1037 with_x=yes ;;
1038
1039 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1040 | --x-incl | --x-inc | --x-in | --x-i)
1041 ac_prev=x_includes ;;
1042 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1043 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1044 x_includes=$ac_optarg ;;
1045
1046 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1047 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1048 ac_prev=x_libraries ;;
1049 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1050 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1051 x_libraries=$ac_optarg ;;
1052
1053 -*) { echo "$as_me: error: unrecognized option: $ac_option
1054Try \`$0 --help' for more information." >&2
1055 { (exit 1); exit 1; }; }
1056 ;;
1057
1058 *=*)
1059 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1062 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1063 { (exit 1); exit 1; }; }
1064 eval $ac_envvar=\$ac_optarg
1065 export $ac_envvar ;;
1066
1067 *)
1068 # FIXME: should be removed in autoconf 3.0.
1069 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1070 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1071 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1072 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1073 ;;
1074
1075 esac
1076done
1077
1078if test -n "$ac_prev"; then
1079 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1080 { echo "$as_me: error: missing argument to $ac_option" >&2
1081 { (exit 1); exit 1; }; }
1082fi
1083
1084# Be sure to have absolute directory names.
1085for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1086 datadir sysconfdir sharedstatedir localstatedir includedir \
1087 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1088 libdir localedir mandir
1089do
1090 eval ac_val=\$$ac_var
1091 case $ac_val in
1092 [\\/$]* | ?:[\\/]* ) continue;;
1093 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1094 esac
1095 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1096 { (exit 1); exit 1; }; }
1097done
1098
1099# There might be people who depend on the old broken behavior: `$host'
1100# used to hold the argument of --host etc.
1101# FIXME: To remove some day.
1102build=$build_alias
1103host=$host_alias
1104target=$target_alias
1105
1106# FIXME: To remove some day.
1107if test "x$host_alias" != x; then
1108 if test "x$build_alias" = x; then
1109 cross_compiling=maybe
1110 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1111 If a cross compiler is detected then cross compile mode will be used." >&2
1112 elif test "x$build_alias" != "x$host_alias"; then
1113 cross_compiling=yes
1114 fi
1115fi
1116
1117ac_tool_prefix=
1118test -n "$host_alias" && ac_tool_prefix=$host_alias-
1119
1120test "$silent" = yes && exec 6>/dev/null
1121
1122
1123ac_pwd=`pwd` && test -n "$ac_pwd" &&
1124ac_ls_di=`ls -di .` &&
1125ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1126 { echo "$as_me: error: Working directory cannot be determined" >&2
1127 { (exit 1); exit 1; }; }
1128test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1129 { echo "$as_me: error: pwd does not report name of working directory" >&2
1130 { (exit 1); exit 1; }; }
1131
1132
1133# Find the source files, if location was not specified.
1134if test -z "$srcdir"; then
1135 ac_srcdir_defaulted=yes
1136 # Try the directory containing this script, then the parent directory.
1137 ac_confdir=`$as_dirname -- "$0" ||
1138$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1139 X"$0" : 'X\(//\)[^/]' \| \
1140 X"$0" : 'X\(//\)$' \| \
1141 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1142echo X"$0" |
1143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1144 s//\1/
1145 q
1146 }
1147 /^X\(\/\/\)[^/].*/{
1148 s//\1/
1149 q
1150 }
1151 /^X\(\/\/\)$/{
1152 s//\1/
1153 q
1154 }
1155 /^X\(\/\).*/{
1156 s//\1/
1157 q
1158 }
1159 s/.*/./; q'`
1160 srcdir=$ac_confdir
1161 if test ! -r "$srcdir/$ac_unique_file"; then
1162 srcdir=..
1163 fi
1164else
1165 ac_srcdir_defaulted=no
1166fi
1167if test ! -r "$srcdir/$ac_unique_file"; then
1168 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1169 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1170 { (exit 1); exit 1; }; }
1171fi
1172ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1173ac_abs_confdir=`(
1174 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1175 { (exit 1); exit 1; }; }
1176 pwd)`
1177# When building in place, set srcdir=.
1178if test "$ac_abs_confdir" = "$ac_pwd"; then
1179 srcdir=.
1180fi
1181# Remove unnecessary trailing slashes from srcdir.
1182# Double slashes in file names in object file debugging info
1183# mess up M-x gdb in Emacs.
1184case $srcdir in
1185*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1186esac
1187for ac_var in $ac_precious_vars; do
1188 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1189 eval ac_env_${ac_var}_value=\$${ac_var}
1190 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1191 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1192done
1193
1194#
1195# Report the --help message.
1196#
1197if test "$ac_init_help" = "long"; then
1198 # Omit some internal or obsolete options to make the list less imposing.
1199 # This message is too long to be a string in the A/UX 3.1 sh.
1200 cat <<_ACEOF
1201\`configure' configures this package to adapt to many kinds of systems.
1202
1203Usage: $0 [OPTION]... [VAR=VALUE]...
1204
1205To assign environment variables (e.g., CC, CFLAGS...), specify them as
1206VAR=VALUE. See below for descriptions of some of the useful variables.
1207
1208Defaults for the options are specified in brackets.
1209
1210Configuration:
1211 -h, --help display this help and exit
1212 --help=short display options specific to this package
1213 --help=recursive display the short help of all the included packages
1214 -V, --version display version information and exit
1215 -q, --quiet, --silent do not print \`checking...' messages
1216 --cache-file=FILE cache test results in FILE [disabled]
1217 -C, --config-cache alias for \`--cache-file=config.cache'
1218 -n, --no-create do not create output files
1219 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1220
1221Installation directories:
1222 --prefix=PREFIX install architecture-independent files in PREFIX
1223 [$ac_default_prefix]
1224 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1225 [PREFIX]
1226
1227By default, \`make install' will install all the files in
1228\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1229an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1230for instance \`--prefix=\$HOME'.
1231
1232For better control, use the options below.
1233
1234Fine tuning of the installation directories:
1235 --bindir=DIR user executables [EPREFIX/bin]
1236 --sbindir=DIR system admin executables [EPREFIX/sbin]
1237 --libexecdir=DIR program executables [EPREFIX/libexec]
1238 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1239 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1240 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1241 --libdir=DIR object code libraries [EPREFIX/lib]
1242 --includedir=DIR C header files [PREFIX/include]
1243 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1244 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1245 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1246 --infodir=DIR info documentation [DATAROOTDIR/info]
1247 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1248 --mandir=DIR man documentation [DATAROOTDIR/man]
1249 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1250 --htmldir=DIR html documentation [DOCDIR]
1251 --dvidir=DIR dvi documentation [DOCDIR]
1252 --pdfdir=DIR pdf documentation [DOCDIR]
1253 --psdir=DIR ps documentation [DOCDIR]
1254_ACEOF
1255
1256 cat <<\_ACEOF
1257
1258System types:
1259 --build=BUILD configure for building on BUILD [guessed]
1260 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1261 --target=TARGET configure for building compilers for TARGET [HOST]
1262_ACEOF
1263fi
1264
1265if test -n "$ac_init_help"; then
1266
1267 cat <<\_ACEOF
1268
1269Optional Features:
1270 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1271 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1272 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1273 --disable-openssl Disable OpenSSL support.
1274 --enable-portable-binary
1275 disable compiler optimizations that would produce
1276 unportable binaries
1277
1278Optional Packages:
1279 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1280 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1281 --with-socketengine=TYPE Set the socketengine type. Choices are:
1282 kqueue epoll devpoll poll select
1283 --with-maxconnections=NUMBER Set the maximum number of sockets.
1284 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1285 instead of guessing
1286
1287Some influential environment variables:
1288 CC C compiler command
1289 CFLAGS C compiler flags
1290 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1291 nonstandard directory <lib dir>
1292 LIBS libraries to pass to the linker, e.g. -l<library>
1293 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1294 you have headers in a nonstandard directory <include dir>
1295 CPP C preprocessor
1296
1297Use these variables to override the choices made by `configure' or to help
1298it to find libraries and programs with nonstandard names/locations.
1299
1300_ACEOF
1301ac_status=$?
1302fi
1303
1304if test "$ac_init_help" = "recursive"; then
1305 # If there are subdirs, report their specific --help.
1306 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1307 test -d "$ac_dir" || continue
1308 ac_builddir=.
1309
1310case "$ac_dir" in
1311.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1312*)
1313 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1314 # A ".." for each directory in $ac_dir_suffix.
1315 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1316 case $ac_top_builddir_sub in
1317 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1318 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1319 esac ;;
1320esac
1321ac_abs_top_builddir=$ac_pwd
1322ac_abs_builddir=$ac_pwd$ac_dir_suffix
1323# for backward compatibility:
1324ac_top_builddir=$ac_top_build_prefix
1325
1326case $srcdir in
1327 .) # We are building in place.
1328 ac_srcdir=.
1329 ac_top_srcdir=$ac_top_builddir_sub
1330 ac_abs_top_srcdir=$ac_pwd ;;
1331 [\\/]* | ?:[\\/]* ) # Absolute name.
1332 ac_srcdir=$srcdir$ac_dir_suffix;
1333 ac_top_srcdir=$srcdir
1334 ac_abs_top_srcdir=$srcdir ;;
1335 *) # Relative name.
1336 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1337 ac_top_srcdir=$ac_top_build_prefix$srcdir
1338 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1339esac
1340ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1341
1342 cd "$ac_dir" || { ac_status=$?; continue; }
1343 # Check for guested configure.
1344 if test -f "$ac_srcdir/configure.gnu"; then
1345 echo &&
1346 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1347 elif test -f "$ac_srcdir/configure"; then
1348 echo &&
1349 $SHELL "$ac_srcdir/configure" --help=recursive
1350 else
1351 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1352 fi || ac_status=$?
1353 cd "$ac_pwd" || { ac_status=$?; break; }
1354 done
1355fi
1356
1357test -n "$ac_init_help" && exit $ac_status
1358if $ac_init_version; then
1359 cat <<\_ACEOF
1360configure
1361generated by GNU Autoconf 2.61
1362
1363Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
13642002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1365This configure script is free software; the Free Software Foundation
1366gives unlimited permission to copy, distribute and modify it.
1367_ACEOF
1368 exit
1369fi
1370cat >config.log <<_ACEOF
1371This file contains any messages produced by compilers while
1372running configure, to aid debugging if configure makes a mistake.
1373
1374It was created by $as_me, which was
1375generated by GNU Autoconf 2.61. Invocation command line was
1376
1377 $ $0 $@
1378
1379_ACEOF
1380exec 5>>config.log
1381{
1382cat <<_ASUNAME
1383## --------- ##
1384## Platform. ##
1385## --------- ##
1386
1387hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1388uname -m = `(uname -m) 2>/dev/null || echo unknown`
1389uname -r = `(uname -r) 2>/dev/null || echo unknown`
1390uname -s = `(uname -s) 2>/dev/null || echo unknown`
1391uname -v = `(uname -v) 2>/dev/null || echo unknown`
1392
1393/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1394/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1395
1396/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1397/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1398/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1399/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1400/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1401/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1402/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1403
1404_ASUNAME
1405
1406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1407for as_dir in $PATH
1408do
1409 IFS=$as_save_IFS
1410 test -z "$as_dir" && as_dir=.
1411 echo "PATH: $as_dir"
1412done
1413IFS=$as_save_IFS
1414
1415} >&5
1416
1417cat >&5 <<_ACEOF
1418
1419
1420## ----------- ##
1421## Core tests. ##
1422## ----------- ##
1423
1424_ACEOF
1425
1426
1427# Keep a trace of the command line.
1428# Strip out --no-create and --no-recursion so they do not pile up.
1429# Strip out --silent because we don't want to record it for future runs.
1430# Also quote any args containing shell meta-characters.
1431# Make two passes to allow for proper duplicate-argument suppression.
1432ac_configure_args=
1433ac_configure_args0=
1434ac_configure_args1=
1435ac_must_keep_next=false
1436for ac_pass in 1 2
1437do
1438 for ac_arg
1439 do
1440 case $ac_arg in
1441 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1442 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1443 | -silent | --silent | --silen | --sile | --sil)
1444 continue ;;
1445 *\'*)
1446 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1447 esac
1448 case $ac_pass in
1449 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1450 2)
1451 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1452 if test $ac_must_keep_next = true; then
1453 ac_must_keep_next=false # Got value, back to normal.
1454 else
1455 case $ac_arg in
1456 *=* | --config-cache | -C | -disable-* | --disable-* \
1457 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1458 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1459 | -with-* | --with-* | -without-* | --without-* | --x)
1460 case "$ac_configure_args0 " in
1461 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1462 esac
1463 ;;
1464 -* ) ac_must_keep_next=true ;;
1465 esac
1466 fi
1467 ac_configure_args="$ac_configure_args '$ac_arg'"
1468 ;;
1469 esac
1470 done
1471done
1472$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1473$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1474
1475# When interrupted or exit'd, cleanup temporary files, and complete
1476# config.log. We remove comments because anyway the quotes in there
1477# would cause problems or look ugly.
1478# WARNING: Use '\'' to represent an apostrophe within the trap.
1479# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1480trap 'exit_status=$?
1481 # Save into config.log some information that might help in debugging.
1482 {
1483 echo
1484
1485 cat <<\_ASBOX
1486## ---------------- ##
1487## Cache variables. ##
1488## ---------------- ##
1489_ASBOX
1490 echo
1491 # The following way of writing the cache mishandles newlines in values,
1492(
1493 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1494 eval ac_val=\$$ac_var
1495 case $ac_val in #(
1496 *${as_nl}*)
1497 case $ac_var in #(
1498 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1499echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1500 esac
1501 case $ac_var in #(
1502 _ | IFS | as_nl) ;; #(
1503 *) $as_unset $ac_var ;;
1504 esac ;;
1505 esac
1506 done
1507 (set) 2>&1 |
1508 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1509 *${as_nl}ac_space=\ *)
1510 sed -n \
1511 "s/'\''/'\''\\\\'\'''\''/g;
1512 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1513 ;; #(
1514 *)
1515 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1516 ;;
1517 esac |
1518 sort
1519)
1520 echo
1521
1522 cat <<\_ASBOX
1523## ----------------- ##
1524## Output variables. ##
1525## ----------------- ##
1526_ASBOX
1527 echo
1528 for ac_var in $ac_subst_vars
1529 do
1530 eval ac_val=\$$ac_var
1531 case $ac_val in
1532 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1533 esac
1534 echo "$ac_var='\''$ac_val'\''"
1535 done | sort
1536 echo
1537
1538 if test -n "$ac_subst_files"; then
1539 cat <<\_ASBOX
1540## ------------------- ##
1541## File substitutions. ##
1542## ------------------- ##
1543_ASBOX
1544 echo
1545 for ac_var in $ac_subst_files
1546 do
1547 eval ac_val=\$$ac_var
1548 case $ac_val in
1549 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1550 esac
1551 echo "$ac_var='\''$ac_val'\''"
1552 done | sort
1553 echo
1554 fi
1555
1556 if test -s confdefs.h; then
1557 cat <<\_ASBOX
1558## ----------- ##
1559## confdefs.h. ##
1560## ----------- ##
1561_ASBOX
1562 echo
1563 cat confdefs.h
1564 echo
1565 fi
1566 test "$ac_signal" != 0 &&
1567 echo "$as_me: caught signal $ac_signal"
1568 echo "$as_me: exit $exit_status"
1569 } >&5
1570 rm -f core *.core core.conftest.* &&
1571 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1572 exit $exit_status
1573' 0
1574for ac_signal in 1 2 13 15; do
1575 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1576done
1577ac_signal=0
1578
1579# confdefs.h avoids OS command line length limits that DEFS can exceed.
1580rm -f -r conftest* confdefs.h
1581
1582# Predefined preprocessor variables.
1583
1584cat >>confdefs.h <<_ACEOF
1585#define PACKAGE_NAME "$PACKAGE_NAME"
1586_ACEOF
1587
1588
1589cat >>confdefs.h <<_ACEOF
1590#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1591_ACEOF
1592
1593
1594cat >>confdefs.h <<_ACEOF
1595#define PACKAGE_VERSION "$PACKAGE_VERSION"
1596_ACEOF
1597
1598
1599cat >>confdefs.h <<_ACEOF
1600#define PACKAGE_STRING "$PACKAGE_STRING"
1601_ACEOF
1602
1603
1604cat >>confdefs.h <<_ACEOF
1605#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1606_ACEOF
1607
1608
1609# Let the site file select an alternate cache file if it wants to.
1610# Prefer explicitly selected file to automatically selected ones.
1611if test -n "$CONFIG_SITE"; then
1612 set x "$CONFIG_SITE"
1613elif test "x$prefix" != xNONE; then
1614 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1615else
1616 set x "$ac_default_prefix/share/config.site" \
1617 "$ac_default_prefix/etc/config.site"
1618fi
1619shift
1620for ac_site_file
1621do
1622 if test -r "$ac_site_file"; then
1623 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1624echo "$as_me: loading site script $ac_site_file" >&6;}
1625 sed 's/^/| /' "$ac_site_file" >&5
1626 . "$ac_site_file"
1627 fi
1628done
1629
1630if test -r "$cache_file"; then
1631 # Some versions of bash will fail to source /dev/null (special
1632 # files actually), so we avoid doing that.
1633 if test -f "$cache_file"; then
1634 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1635echo "$as_me: loading cache $cache_file" >&6;}
1636 case $cache_file in
1637 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1638 *) . "./$cache_file";;
1639 esac
1640 fi
1641else
1642 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1643echo "$as_me: creating cache $cache_file" >&6;}
1644 >$cache_file
1645fi
1646
1647# Check that the precious variables saved in the cache have kept the same
1648# value.
1649ac_cache_corrupted=false
1650for ac_var in $ac_precious_vars; do
1651 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1652 eval ac_new_set=\$ac_env_${ac_var}_set
1653 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1654 eval ac_new_val=\$ac_env_${ac_var}_value
1655 case $ac_old_set,$ac_new_set in
1656 set,)
1657 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1658echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1659 ac_cache_corrupted=: ;;
1660 ,set)
1661 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1662echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1663 ac_cache_corrupted=: ;;
1664 ,);;
1665 *)
1666 if test "x$ac_old_val" != "x$ac_new_val"; then
1667 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1668echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1669 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1670echo "$as_me: former value: $ac_old_val" >&2;}
1671 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1672echo "$as_me: current value: $ac_new_val" >&2;}
1673 ac_cache_corrupted=:
1674 fi;;
1675 esac
1676 # Pass precious variables to config.status.
1677 if test "$ac_new_set" = set; then
1678 case $ac_new_val in
1679 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1680 *) ac_arg=$ac_var=$ac_new_val ;;
1681 esac
1682 case " $ac_configure_args " in
1683 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1684 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1685 esac
1686 fi
1687done
1688if $ac_cache_corrupted; then
1689 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1690echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1691 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1692echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1693 { (exit 1); exit 1; }; }
1694fi
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712ac_ext=c
1713ac_cpp='$CPP $CPPFLAGS'
1714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1716ac_compiler_gnu=$ac_cv_c_compiler_gnu
1717
1718
1719
1720ac_config_headers="$ac_config_headers include/setup.h"
1721
1722
1723cat >>confdefs.h <<\_ACEOF
1724#define PACKAGE_NAME "libd"
1725_ACEOF
1726
1727cat >>confdefs.h <<\_ACEOF
1728#define PACKAGE_BUGREPORT "coders@dal.net"
1729_ACEOF
1730
1731cat >>confdefs.h <<\_ACEOF
1732#define PACKAGE_STRING "Daemon library"
1733_ACEOF
1734
1735cat >>confdefs.h <<\_ACEOF
1736#define PACKAGE_VERSION "0.1"
1737_ACEOF
1738
1739
1740# autoheader templates
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
c1e4317a 1756
1757
bf042c35 1758# Check whether --enable-openssl was given.
1759if test "${enable_openssl+set}" = set; then
1760 enableval=$enable_openssl; cf_enable_openssl=$enableval
1761else
1762 cf_enable_openssl="auto"
1763fi
1764
1765
1766
1767# Check whether --with-socketengine was given.
1768if test "${with_socketengine+set}" = set; then
1769 withval=$with_socketengine; check_sengine=$withval
1770else
1771 check_sengine="yes"
1772fi
1773
1774
c1e4317a 1775
bf042c35 1776# Check whether --with-maxconnections was given.
1777if test "${with_maxconnections+set}" = set; then
1778 withval=$with_maxconnections; check_maxconnections=$withval
1779else
1780 check_maxconnections="auto"
1781fi
1782
1783
11b73fef 1784DEBUG=yes
1785
bf042c35 1786
1787# ===========================================================================
1788# http://www.nongnu.org/autoconf-archive/ax_gcc_x86_cpuid.html
1789# ===========================================================================
1790#
1791# SYNOPSIS
1792#
1793# AX_GCC_X86_CPUID(OP)
1794#
1795# DESCRIPTION
1796#
1797# On Pentium and later x86 processors, with gcc or a compiler that has a
1798# compatible syntax for inline assembly instructions, run a small program
1799# that executes the cpuid instruction with input OP. This can be used to
1800# detect the CPU type.
1801#
1802# On output, the values of the eax, ebx, ecx, and edx registers are stored
1803# as hexadecimal strings as "eax:ebx:ecx:edx" in the cache variable
1804# ax_cv_gcc_x86_cpuid_OP.
1805#
1806# If the cpuid instruction fails (because you are running a
1807# cross-compiler, or because you are not using gcc, or because you are on
1808# a processor that doesn't have this instruction), ax_cv_gcc_x86_cpuid_OP
1809# is set to the string "unknown".
1810#
1811# This macro mainly exists to be used in AX_GCC_ARCHFLAG.
1812#
1813# LICENSE
1814#
1815# Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
1816# Copyright (c) 2008 Matteo Frigo
1817#
1818# This program is free software: you can redistribute it and/or modify it
1819# under the terms of the GNU General Public License as published by the
1820# Free Software Foundation, either version 3 of the License, or (at your
1821# option) any later version.
1822#
1823# This program is distributed in the hope that it will be useful, but
1824# WITHOUT ANY WARRANTY; without even the implied warranty of
1825# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
1826# Public License for more details.
1827#
1828# You should have received a copy of the GNU General Public License along
1829# with this program. If not, see <http://www.gnu.org/licenses/>.
1830#
1831# As a special exception, the respective Autoconf Macro's copyright owner
1832# gives unlimited permission to copy, distribute and modify the configure
1833# scripts that are the output of Autoconf when processing the Macro. You
1834# need not follow the terms of the GNU General Public License when using
1835# or distributing such scripts, even though portions of the text of the
1836# Macro appear in them. The GNU General Public License (GPL) does govern
1837# all other use of the material that constitutes the Autoconf Macro.
1838#
1839# This special exception to the GPL applies to versions of the Autoconf
1840# Macro released by the Autoconf Archive. When you make and distribute a
1841# modified version of the Autoconf Macro, you may extend this special
1842# exception to the GPL to apply to your modified version as well.
1843
1844
1845
1846# ===========================================================================
1847# http://www.nongnu.org/autoconf-archive/ax_gcc_archflag.html
1848# ===========================================================================
1849#
1850# SYNOPSIS
1851#
1852# AX_GCC_ARCHFLAG([PORTABLE?], [ACTION-SUCCESS], [ACTION-FAILURE])
1853#
1854# DESCRIPTION
1855#
1856# This macro tries to guess the "native" arch corresponding to the target
1857# architecture for use with gcc's -march=arch or -mtune=arch flags. If
1858# found, the cache variable $ax_cv_gcc_archflag is set to this flag and
1859# ACTION-SUCCESS is executed; otherwise $ax_cv_gcc_archflag is is set to
1860# "unknown" and ACTION-FAILURE is executed. The default ACTION-SUCCESS is
1861# to add $ax_cv_gcc_archflag to the end of $CFLAGS.
1862#
1863# PORTABLE? should be either [yes] (default) or [no]. In the former case,
1864# the flag is set to -mtune (or equivalent) so that the architecture is
1865# only used for tuning, but the instruction set used is still portable. In
1866# the latter case, the flag is set to -march (or equivalent) so that
1867# architecture-specific instructions are enabled.
1868#
1869# The user can specify --with-gcc-arch=<arch> in order to override the
1870# macro's choice of architecture, or --without-gcc-arch to disable this.
1871#
1872# When cross-compiling, or if $CC is not gcc, then ACTION-FAILURE is
1873# called unless the user specified --with-gcc-arch manually.
1874#
1875# Requires macros: AX_CHECK_COMPILER_FLAGS, AX_GCC_X86_CPUID
1876#
1877# (The main emphasis here is on recent CPUs, on the principle that doing
1878# high-performance computing on old hardware is uncommon.)
1879#
1880# LICENSE
1881#
1882# Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
1883# Copyright (c) 2008 Matteo Frigo
1884#
1885# This program is free software: you can redistribute it and/or modify it
1886# under the terms of the GNU General Public License as published by the
1887# Free Software Foundation, either version 3 of the License, or (at your
1888# option) any later version.
1889#
1890# This program is distributed in the hope that it will be useful, but
1891# WITHOUT ANY WARRANTY; without even the implied warranty of
1892# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
1893# Public License for more details.
1894#
1895# You should have received a copy of the GNU General Public License along
1896# with this program. If not, see <http://www.gnu.org/licenses/>.
1897#
1898# As a special exception, the respective Autoconf Macro's copyright owner
1899# gives unlimited permission to copy, distribute and modify the configure
1900# scripts that are the output of Autoconf when processing the Macro. You
1901# need not follow the terms of the GNU General Public License when using
1902# or distributing such scripts, even though portions of the text of the
1903# Macro appear in them. The GNU General Public License (GPL) does govern
1904# all other use of the material that constitutes the Autoconf Macro.
1905#
1906# This special exception to the GPL applies to versions of the Autoconf
1907# Macro released by the Autoconf Archive. When you make and distribute a
1908# modified version of the Autoconf Macro, you may extend this special
1909# exception to the GPL to apply to your modified version as well.
1910
1911
1912
1913# ===========================================================================
1914# http://www.nongnu.org/autoconf-archive/ax_compiler_vendor.html
1915# ===========================================================================
1916#
1917# SYNOPSIS
1918#
1919# AX_COMPILER_VENDOR
1920#
1921# DESCRIPTION
1922#
1923# Determine the vendor of the C/C++ compiler, e.g., gnu, intel, ibm, sun,
1924# hp, borland, comeau, dec, cray, kai, lcc, metrowerks, sgi, microsoft,
1925# watcom, etc. The vendor is returned in the cache variable
1926# $ax_cv_c_compiler_vendor for C and $ax_cv_cxx_compiler_vendor for C++.
1927#
1928# LICENSE
1929#
1930# Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
1931# Copyright (c) 2008 Matteo Frigo
1932#
1933# This program is free software: you can redistribute it and/or modify it
1934# under the terms of the GNU General Public License as published by the
1935# Free Software Foundation, either version 3 of the License, or (at your
1936# option) any later version.
1937#
1938# This program is distributed in the hope that it will be useful, but
1939# WITHOUT ANY WARRANTY; without even the implied warranty of
1940# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
1941# Public License for more details.
1942#
1943# You should have received a copy of the GNU General Public License along
1944# with this program. If not, see <http://www.gnu.org/licenses/>.
1945#
1946# As a special exception, the respective Autoconf Macro's copyright owner
1947# gives unlimited permission to copy, distribute and modify the configure
1948# scripts that are the output of Autoconf when processing the Macro. You
1949# need not follow the terms of the GNU General Public License when using
1950# or distributing such scripts, even though portions of the text of the
1951# Macro appear in them. The GNU General Public License (GPL) does govern
1952# all other use of the material that constitutes the Autoconf Macro.
1953#
1954# This special exception to the GPL applies to versions of the Autoconf
1955# Macro released by the Autoconf Archive. When you make and distribute a
1956# modified version of the Autoconf Macro, you may extend this special
1957# exception to the GPL to apply to your modified version as well.
1958
1959
1960
1961# ===========================================================================
1962# http://www.nongnu.org/autoconf-archive/ax_check_compiler_flags.html
1963# ===========================================================================
1964#
1965# SYNOPSIS
1966#
1967# AX_CHECK_COMPILER_FLAGS(FLAGS, [ACTION-SUCCESS], [ACTION-FAILURE])
1968#
1969# DESCRIPTION
1970#
1971# Check whether the given compiler FLAGS work with the current language's
1972# compiler, or whether they give an error. (Warnings, however, are
1973# ignored.)
1974#
1975# ACTION-SUCCESS/ACTION-FAILURE are shell commands to execute on
1976# success/failure.
1977#
1978# LICENSE
1979#
1980# Copyright (c) 2009 Steven G. Johnson <stevenj@alum.mit.edu>
1981# Copyright (c) 2009 Matteo Frigo
1982#
1983# This program is free software: you can redistribute it and/or modify it
1984# under the terms of the GNU General Public License as published by the
1985# Free Software Foundation, either version 3 of the License, or (at your
1986# option) any later version.
1987#
1988# This program is distributed in the hope that it will be useful, but
1989# WITHOUT ANY WARRANTY; without even the implied warranty of
1990# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
1991# Public License for more details.
1992#
1993# You should have received a copy of the GNU General Public License along
1994# with this program. If not, see <http://www.gnu.org/licenses/>.
1995#
1996# As a special exception, the respective Autoconf Macro's copyright owner
1997# gives unlimited permission to copy, distribute and modify the configure
1998# scripts that are the output of Autoconf when processing the Macro. You
1999# need not follow the terms of the GNU General Public License when using
2000# or distributing such scripts, even though portions of the text of the
2001# Macro appear in them. The GNU General Public License (GPL) does govern
2002# all other use of the material that constitutes the Autoconf Macro.
2003#
2004# This special exception to the GPL applies to versions of the Autoconf
2005# Macro released by the Autoconf Archive. When you make and distribute a
2006# modified version of the Autoconf Macro, you may extend this special
2007# exception to the GPL to apply to your modified version as well.
2008
2009
2010# ===========================================================================
2011# http://www.nongnu.org/autoconf-archive/ax_cflags_warn_all_ansi.html
2012# ===========================================================================
2013#
2014# SYNOPSIS
2015#
2016# AX_CFLAGS_WARN_ALL_ANSI [(shellvar [,default, [A/NA]])]
2017#
2018# DESCRIPTION
2019#
2020# Try to find a compiler option that enables most reasonable warnings.
2021# This macro is directly derived from VL_PROG_CC_WARNINGS which is split
2022# up into two AX_CFLAGS_WARN_ALL and AX_CFLAGS_WARN_ALL_ANSI
2023#
2024# For the GNU CC compiler it will be -Wall (and -ansi -pedantic) The
2025# result is added to the shellvar being CFLAGS by default.
2026#
2027# Currently this macro knows about GCC, Solaris C compiler, Digital Unix C
2028# compiler, C for AIX Compiler, HP-UX C compiler, IRIX C compiler, NEC
2029# SX-5 (Super-UX 10) C compiler, and Cray J90 (Unicos 10.0.0.8) C
2030# compiler.
2031#
2032# - $1 shell-variable-to-add-to : CFLAGS
2033# - $2 add-value-if-not-found : nothing
2034# - $3 action-if-found : add value to shellvariable
2035# - $4 action-if-not-found : nothing
2036#
2037# LICENSE
2038#
2039# Copyright (c) 2008 Guido U. Draheim <guidod@gmx.de>
2040#
2041# This program is free software; you can redistribute it and/or modify it
2042# under the terms of the GNU General Public License as published by the
2043# Free Software Foundation; either version 2 of the License, or (at your
2044# option) any later version.
2045#
2046# This program is distributed in the hope that it will be useful, but
2047# WITHOUT ANY WARRANTY; without even the implied warranty of
2048# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
2049# Public License for more details.
2050#
2051# You should have received a copy of the GNU General Public License along
2052# with this program. If not, see <http://www.gnu.org/licenses/>.
2053#
2054# As a special exception, the respective Autoconf Macro's copyright owner
2055# gives unlimited permission to copy, distribute and modify the configure
2056# scripts that are the output of Autoconf when processing the Macro. You
2057# need not follow the terms of the GNU General Public License when using
2058# or distributing such scripts, even though portions of the text of the
2059# Macro appear in them. The GNU General Public License (GPL) does govern
2060# all other use of the material that constitutes the Autoconf Macro.
2061#
2062# This special exception to the GPL applies to versions of the Autoconf
2063# Macro released by the Autoconf Archive. When you make and distribute a
2064# modified version of the Autoconf Macro, you may extend this special
2065# exception to the GPL to apply to your modified version as well.
2066
2067
2068
2069
2070
2071
2072# ===========================================================================
2073# http://www.nongnu.org/autoconf-archive/ax_cflags_strict_prototypes.html
2074# ===========================================================================
2075#
2076# SYNOPSIS
2077#
2078# AX_CFLAGS_STRICT_PROTOTYPES [(shellvar [,default, [A/NA]]
2079#
2080# DESCRIPTION
2081#
2082# Try to find a compiler option that requires strict prototypes.
2083#
2084# The sanity check is done by looking at sys/signal.h which has a set of
2085# macro-definitions SIG_DFL and SIG_IGN that are cast to the local
2086# signal-handler type. If that signal-handler type is not fully qualified
2087# then the system headers are not seen as strictly prototype clean.
2088#
2089# For the GNU CC compiler it will be -fstrict-prototypes
2090# -Wstrict-prototypes The result is added to the shellvar being CFLAGS by
2091# default.
2092#
2093# DEFAULTS:
2094#
2095# - $1 shell-variable-to-add-to : CFLAGS
2096# - $2 add-value-if-not-found : nothing
2097# - $3 action-if-found : add value to shellvariable
2098# - $4 action-if-not-found : nothing
2099#
2100# LICENSE
2101#
2102# Copyright (c) 2008 Guido U. Draheim <guidod@gmx.de>
2103#
2104# This program is free software; you can redistribute it and/or modify it
2105# under the terms of the GNU General Public License as published by the
2106# Free Software Foundation; either version 2 of the License, or (at your
2107# option) any later version.
2108#
2109# This program is distributed in the hope that it will be useful, but
2110# WITHOUT ANY WARRANTY; without even the implied warranty of
2111# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
2112# Public License for more details.
2113#
2114# You should have received a copy of the GNU General Public License along
2115# with this program. If not, see <http://www.gnu.org/licenses/>.
2116#
2117# As a special exception, the respective Autoconf Macro's copyright owner
2118# gives unlimited permission to copy, distribute and modify the configure
2119# scripts that are the output of Autoconf when processing the Macro. You
2120# need not follow the terms of the GNU General Public License when using
2121# or distributing such scripts, even though portions of the text of the
2122# Macro appear in them. The GNU General Public License (GPL) does govern
2123# all other use of the material that constitutes the Autoconf Macro.
2124#
2125# This special exception to the GPL applies to versions of the Autoconf
2126# Macro released by the Autoconf Archive. When you make and distribute a
2127# modified version of the Autoconf Macro, you may extend this special
2128# exception to the GPL to apply to your modified version as well.
2129
2130
2131
2132
2133
2134
2135# ===========================================================================
2136# http://www.nongnu.org/autoconf-archive/ax_cc_maxopt.html
2137# ===========================================================================
2138#
2139# SYNOPSIS
2140#
2141# AX_CC_MAXOPT
2142#
2143# DESCRIPTION
2144#
2145# Try to turn on "good" C optimization flags for various compilers and
2146# architectures, for some definition of "good". (In our case, good for
2147# FFTW and hopefully for other scientific codes. Modify as needed.)
2148#
2149# The user can override the flags by setting the CFLAGS environment
2150# variable. The user can also specify --enable-portable-binary in order to
2151# disable any optimization flags that might result in a binary that only
2152# runs on the host architecture.
2153#
2154# Note also that the flags assume that ANSI C aliasing rules are followed
2155# by the code (e.g. for gcc's -fstrict-aliasing), and that floating-point
2156# computations can be re-ordered as needed.
2157#
2158# Requires macros: AX_CHECK_COMPILER_FLAGS, AX_COMPILER_VENDOR,
2159# AX_GCC_ARCHFLAG, AX_GCC_X86_CPUID.
2160#
2161# LICENSE
2162#
2163# Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
2164# Copyright (c) 2008 Matteo Frigo
2165#
2166# This program is free software: you can redistribute it and/or modify it
2167# under the terms of the GNU General Public License as published by the
2168# Free Software Foundation, either version 3 of the License, or (at your
2169# option) any later version.
2170#
2171# This program is distributed in the hope that it will be useful, but
2172# WITHOUT ANY WARRANTY; without even the implied warranty of
2173# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
2174# Public License for more details.
2175#
2176# You should have received a copy of the GNU General Public License along
2177# with this program. If not, see <http://www.gnu.org/licenses/>.
2178#
2179# As a special exception, the respective Autoconf Macro's copyright owner
2180# gives unlimited permission to copy, distribute and modify the configure
2181# scripts that are the output of Autoconf when processing the Macro. You
2182# need not follow the terms of the GNU General Public License when using
2183# or distributing such scripts, even though portions of the text of the
2184# Macro appear in them. The GNU General Public License (GPL) does govern
2185# all other use of the material that constitutes the Autoconf Macro.
2186#
2187# This special exception to the GPL applies to versions of the Autoconf
2188# Macro released by the Autoconf Archive. When you make and distribute a
2189# modified version of the Autoconf Macro, you may extend this special
2190# exception to the GPL to apply to your modified version as well.
2191
2192
2193
2194
2195
bf042c35 2196ac_ext=c
2197ac_cpp='$CPP $CPPFLAGS'
2198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2200ac_compiler_gnu=$ac_cv_c_compiler_gnu
2201if test -n "$ac_tool_prefix"; then
2202 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2203set dummy ${ac_tool_prefix}gcc; ac_word=$2
2204{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2206if test "${ac_cv_prog_CC+set}" = set; then
2207 echo $ECHO_N "(cached) $ECHO_C" >&6
2208else
2209 if test -n "$CC"; then
2210 ac_cv_prog_CC="$CC" # Let the user override the test.
2211else
2212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213for as_dir in $PATH
2214do
2215 IFS=$as_save_IFS
2216 test -z "$as_dir" && as_dir=.
2217 for ac_exec_ext in '' $ac_executable_extensions; do
2218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2219 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2221 break 2
2222 fi
2223done
2224done
2225IFS=$as_save_IFS
2226
2227fi
2228fi
2229CC=$ac_cv_prog_CC
2230if test -n "$CC"; then
2231 { echo "$as_me:$LINENO: result: $CC" >&5
2232echo "${ECHO_T}$CC" >&6; }
2233else
2234 { echo "$as_me:$LINENO: result: no" >&5
2235echo "${ECHO_T}no" >&6; }
2236fi
2237
2238
2239fi
2240if test -z "$ac_cv_prog_CC"; then
2241 ac_ct_CC=$CC
2242 # Extract the first word of "gcc", so it can be a program name with args.
2243set dummy gcc; ac_word=$2
2244{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2246if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2247 echo $ECHO_N "(cached) $ECHO_C" >&6
2248else
2249 if test -n "$ac_ct_CC"; then
2250 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2251else
2252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2253for as_dir in $PATH
2254do
2255 IFS=$as_save_IFS
2256 test -z "$as_dir" && as_dir=.
2257 for ac_exec_ext in '' $ac_executable_extensions; do
2258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2259 ac_cv_prog_ac_ct_CC="gcc"
2260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2261 break 2
2262 fi
2263done
2264done
2265IFS=$as_save_IFS
2266
2267fi
2268fi
2269ac_ct_CC=$ac_cv_prog_ac_ct_CC
2270if test -n "$ac_ct_CC"; then
2271 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2272echo "${ECHO_T}$ac_ct_CC" >&6; }
2273else
2274 { echo "$as_me:$LINENO: result: no" >&5
2275echo "${ECHO_T}no" >&6; }
2276fi
2277
2278 if test "x$ac_ct_CC" = x; then
2279 CC=""
2280 else
2281 case $cross_compiling:$ac_tool_warned in
2282yes:)
2283{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2284whose name does not start with the host triplet. If you think this
2285configuration is useful to you, please write to autoconf@gnu.org." >&5
2286echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2287whose name does not start with the host triplet. If you think this
2288configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2289ac_tool_warned=yes ;;
2290esac
2291 CC=$ac_ct_CC
2292 fi
2293else
2294 CC="$ac_cv_prog_CC"
2295fi
2296
2297if test -z "$CC"; then
2298 if test -n "$ac_tool_prefix"; then
2299 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2300set dummy ${ac_tool_prefix}cc; ac_word=$2
2301{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2303if test "${ac_cv_prog_CC+set}" = set; then
2304 echo $ECHO_N "(cached) $ECHO_C" >&6
2305else
2306 if test -n "$CC"; then
2307 ac_cv_prog_CC="$CC" # Let the user override the test.
2308else
2309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310for as_dir in $PATH
2311do
2312 IFS=$as_save_IFS
2313 test -z "$as_dir" && as_dir=.
2314 for ac_exec_ext in '' $ac_executable_extensions; do
2315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2316 ac_cv_prog_CC="${ac_tool_prefix}cc"
2317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2318 break 2
2319 fi
2320done
2321done
2322IFS=$as_save_IFS
2323
2324fi
2325fi
2326CC=$ac_cv_prog_CC
2327if test -n "$CC"; then
2328 { echo "$as_me:$LINENO: result: $CC" >&5
2329echo "${ECHO_T}$CC" >&6; }
2330else
2331 { echo "$as_me:$LINENO: result: no" >&5
2332echo "${ECHO_T}no" >&6; }
2333fi
2334
2335
2336 fi
2337fi
2338if test -z "$CC"; then
2339 # Extract the first word of "cc", so it can be a program name with args.
2340set dummy cc; ac_word=$2
2341{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2343if test "${ac_cv_prog_CC+set}" = set; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
2345else
2346 if test -n "$CC"; then
2347 ac_cv_prog_CC="$CC" # Let the user override the test.
2348else
2349 ac_prog_rejected=no
2350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351for as_dir in $PATH
2352do
2353 IFS=$as_save_IFS
2354 test -z "$as_dir" && as_dir=.
2355 for ac_exec_ext in '' $ac_executable_extensions; do
2356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2357 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2358 ac_prog_rejected=yes
2359 continue
2360 fi
2361 ac_cv_prog_CC="cc"
2362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363 break 2
2364 fi
2365done
2366done
2367IFS=$as_save_IFS
2368
2369if test $ac_prog_rejected = yes; then
2370 # We found a bogon in the path, so make sure we never use it.
2371 set dummy $ac_cv_prog_CC
2372 shift
2373 if test $# != 0; then
2374 # We chose a different compiler from the bogus one.
2375 # However, it has the same basename, so the bogon will be chosen
2376 # first if we set CC to just the basename; use the full file name.
2377 shift
2378 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2379 fi
2380fi
2381fi
2382fi
2383CC=$ac_cv_prog_CC
2384if test -n "$CC"; then
2385 { echo "$as_me:$LINENO: result: $CC" >&5
2386echo "${ECHO_T}$CC" >&6; }
2387else
2388 { echo "$as_me:$LINENO: result: no" >&5
2389echo "${ECHO_T}no" >&6; }
2390fi
2391
2392
2393fi
2394if test -z "$CC"; then
2395 if test -n "$ac_tool_prefix"; then
2396 for ac_prog in cl.exe
2397 do
2398 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2399set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2400{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2402if test "${ac_cv_prog_CC+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
2404else
2405 if test -n "$CC"; then
2406 ac_cv_prog_CC="$CC" # Let the user override the test.
2407else
2408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409for as_dir in $PATH
2410do
2411 IFS=$as_save_IFS
2412 test -z "$as_dir" && as_dir=.
2413 for ac_exec_ext in '' $ac_executable_extensions; do
2414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2415 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2417 break 2
2418 fi
2419done
2420done
2421IFS=$as_save_IFS
2422
2423fi
2424fi
2425CC=$ac_cv_prog_CC
2426if test -n "$CC"; then
2427 { echo "$as_me:$LINENO: result: $CC" >&5
2428echo "${ECHO_T}$CC" >&6; }
2429else
2430 { echo "$as_me:$LINENO: result: no" >&5
2431echo "${ECHO_T}no" >&6; }
2432fi
2433
2434
2435 test -n "$CC" && break
2436 done
2437fi
2438if test -z "$CC"; then
2439 ac_ct_CC=$CC
2440 for ac_prog in cl.exe
2441do
2442 # Extract the first word of "$ac_prog", so it can be a program name with args.
2443set dummy $ac_prog; ac_word=$2
2444{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2446if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2448else
2449 if test -n "$ac_ct_CC"; then
2450 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2451else
2452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453for as_dir in $PATH
2454do
2455 IFS=$as_save_IFS
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2459 ac_cv_prog_ac_ct_CC="$ac_prog"
2460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2461 break 2
2462 fi
2463done
2464done
2465IFS=$as_save_IFS
2466
2467fi
2468fi
2469ac_ct_CC=$ac_cv_prog_ac_ct_CC
2470if test -n "$ac_ct_CC"; then
2471 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2472echo "${ECHO_T}$ac_ct_CC" >&6; }
2473else
2474 { echo "$as_me:$LINENO: result: no" >&5
2475echo "${ECHO_T}no" >&6; }
2476fi
2477
2478
2479 test -n "$ac_ct_CC" && break
2480done
2481
2482 if test "x$ac_ct_CC" = x; then
2483 CC=""
2484 else
2485 case $cross_compiling:$ac_tool_warned in
2486yes:)
2487{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2488whose name does not start with the host triplet. If you think this
2489configuration is useful to you, please write to autoconf@gnu.org." >&5
2490echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2491whose name does not start with the host triplet. If you think this
2492configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2493ac_tool_warned=yes ;;
2494esac
2495 CC=$ac_ct_CC
2496 fi
2497fi
2498
2499fi
2500
2501
2502test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2503See \`config.log' for more details." >&5
2504echo "$as_me: error: no acceptable C compiler found in \$PATH
2505See \`config.log' for more details." >&2;}
2506 { (exit 1); exit 1; }; }
2507
2508# Provide some information about the compiler.
2509echo "$as_me:$LINENO: checking for C compiler version" >&5
2510ac_compiler=`set X $ac_compile; echo $2`
2511{ (ac_try="$ac_compiler --version >&5"
2512case "(($ac_try" in
2513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514 *) ac_try_echo=$ac_try;;
2515esac
2516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2517 (eval "$ac_compiler --version >&5") 2>&5
2518 ac_status=$?
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }
2521{ (ac_try="$ac_compiler -v >&5"
2522case "(($ac_try" in
2523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524 *) ac_try_echo=$ac_try;;
2525esac
2526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2527 (eval "$ac_compiler -v >&5") 2>&5
2528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }
2531{ (ac_try="$ac_compiler -V >&5"
2532case "(($ac_try" in
2533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2534 *) ac_try_echo=$ac_try;;
2535esac
2536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2537 (eval "$ac_compiler -V >&5") 2>&5
2538 ac_status=$?
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }
2541
2542cat >conftest.$ac_ext <<_ACEOF
2543/* confdefs.h. */
2544_ACEOF
2545cat confdefs.h >>conftest.$ac_ext
2546cat >>conftest.$ac_ext <<_ACEOF
2547/* end confdefs.h. */
2548
2549int
2550main ()
2551{
2552
2553 ;
2554 return 0;
2555}
2556_ACEOF
2557ac_clean_files_save=$ac_clean_files
2558ac_clean_files="$ac_clean_files a.out a.exe b.out"
2559# Try to create an executable without -o first, disregard a.out.
2560# It will help us diagnose broken compilers, and finding out an intuition
2561# of exeext.
2562{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2563echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2564ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2565#
2566# List of possible output files, starting from the most likely.
2567# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2568# only as a last resort. b.out is created by i960 compilers.
2569ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2570#
2571# The IRIX 6 linker writes into existing files which may not be
2572# executable, retaining their permissions. Remove them first so a
2573# subsequent execution test works.
2574ac_rmfiles=
2575for ac_file in $ac_files
2576do
2577 case $ac_file in
2578 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2579 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2580 esac
2581done
2582rm -f $ac_rmfiles
2583
2584if { (ac_try="$ac_link_default"
2585case "(($ac_try" in
2586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587 *) ac_try_echo=$ac_try;;
2588esac
2589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2590 (eval "$ac_link_default") 2>&5
2591 ac_status=$?
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; then
2594 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2595# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2596# in a Makefile. We should not override ac_cv_exeext if it was cached,
2597# so that the user can short-circuit this test for compilers unknown to
2598# Autoconf.
2599for ac_file in $ac_files ''
2600do
2601 test -f "$ac_file" || continue
2602 case $ac_file in
2603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2604 ;;
2605 [ab].out )
2606 # We found the default executable, but exeext='' is most
2607 # certainly right.
2608 break;;
2609 *.* )
2610 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2611 then :; else
2612 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2613 fi
2614 # We set ac_cv_exeext here because the later test for it is not
2615 # safe: cross compilers may not add the suffix if given an `-o'
2616 # argument, so we may need to know it at that point already.
2617 # Even if this section looks crufty: it has the advantage of
2618 # actually working.
2619 break;;
2620 * )
2621 break;;
2622 esac
2623done
2624test "$ac_cv_exeext" = no && ac_cv_exeext=
2625
2626else
2627 ac_file=''
2628fi
2629
2630{ echo "$as_me:$LINENO: result: $ac_file" >&5
2631echo "${ECHO_T}$ac_file" >&6; }
2632if test -z "$ac_file"; then
2633 echo "$as_me: failed program was:" >&5
2634sed 's/^/| /' conftest.$ac_ext >&5
2635
2636{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2637See \`config.log' for more details." >&5
2638echo "$as_me: error: C compiler cannot create executables
2639See \`config.log' for more details." >&2;}
2640 { (exit 77); exit 77; }; }
2641fi
2642
2643ac_exeext=$ac_cv_exeext
2644
2645# Check that the compiler produces executables we can run. If not, either
2646# the compiler is broken, or we cross compile.
2647{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2648echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2649# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2650# If not cross compiling, check that we can run a simple program.
2651if test "$cross_compiling" != yes; then
2652 if { ac_try='./$ac_file'
2653 { (case "(($ac_try" in
2654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2655 *) ac_try_echo=$ac_try;;
2656esac
2657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2658 (eval "$ac_try") 2>&5
2659 ac_status=$?
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; }; then
2662 cross_compiling=no
2663 else
2664 if test "$cross_compiling" = maybe; then
2665 cross_compiling=yes
2666 else
2667 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2668If you meant to cross compile, use \`--host'.
2669See \`config.log' for more details." >&5
2670echo "$as_me: error: cannot run C compiled programs.
2671If you meant to cross compile, use \`--host'.
2672See \`config.log' for more details." >&2;}
2673 { (exit 1); exit 1; }; }
2674 fi
2675 fi
2676fi
2677{ echo "$as_me:$LINENO: result: yes" >&5
2678echo "${ECHO_T}yes" >&6; }
2679
2680rm -f a.out a.exe conftest$ac_cv_exeext b.out
2681ac_clean_files=$ac_clean_files_save
2682# Check that the compiler produces executables we can run. If not, either
2683# the compiler is broken, or we cross compile.
2684{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2685echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2686{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2687echo "${ECHO_T}$cross_compiling" >&6; }
2688
2689{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2690echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2691if { (ac_try="$ac_link"
2692case "(($ac_try" in
2693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694 *) ac_try_echo=$ac_try;;
2695esac
2696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2697 (eval "$ac_link") 2>&5
2698 ac_status=$?
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }; then
2701 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2702# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2703# work properly (i.e., refer to `conftest.exe'), while it won't with
2704# `rm'.
2705for ac_file in conftest.exe conftest conftest.*; do
2706 test -f "$ac_file" || continue
2707 case $ac_file in
2708 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2709 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2710 break;;
2711 * ) break;;
2712 esac
2713done
2714else
2715 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2716See \`config.log' for more details." >&5
2717echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2718See \`config.log' for more details." >&2;}
2719 { (exit 1); exit 1; }; }
2720fi
2721
2722rm -f conftest$ac_cv_exeext
2723{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2724echo "${ECHO_T}$ac_cv_exeext" >&6; }
2725
2726rm -f conftest.$ac_ext
2727EXEEXT=$ac_cv_exeext
2728ac_exeext=$EXEEXT
2729{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2730echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2731if test "${ac_cv_objext+set}" = set; then
2732 echo $ECHO_N "(cached) $ECHO_C" >&6
2733else
2734 cat >conftest.$ac_ext <<_ACEOF
2735/* confdefs.h. */
2736_ACEOF
2737cat confdefs.h >>conftest.$ac_ext
2738cat >>conftest.$ac_ext <<_ACEOF
2739/* end confdefs.h. */
2740
2741int
2742main ()
2743{
2744
2745 ;
2746 return 0;
2747}
2748_ACEOF
2749rm -f conftest.o conftest.obj
2750if { (ac_try="$ac_compile"
2751case "(($ac_try" in
2752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753 *) ac_try_echo=$ac_try;;
2754esac
2755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2756 (eval "$ac_compile") 2>&5
2757 ac_status=$?
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; then
2760 for ac_file in conftest.o conftest.obj conftest.*; do
2761 test -f "$ac_file" || continue;
2762 case $ac_file in
2763 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2764 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2765 break;;
2766 esac
2767done
2768else
2769 echo "$as_me: failed program was:" >&5
2770sed 's/^/| /' conftest.$ac_ext >&5
2771
2772{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2773See \`config.log' for more details." >&5
2774echo "$as_me: error: cannot compute suffix of object files: cannot compile
2775See \`config.log' for more details." >&2;}
2776 { (exit 1); exit 1; }; }
2777fi
2778
2779rm -f conftest.$ac_cv_objext conftest.$ac_ext
2780fi
2781{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2782echo "${ECHO_T}$ac_cv_objext" >&6; }
2783OBJEXT=$ac_cv_objext
2784ac_objext=$OBJEXT
2785{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2786echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2787if test "${ac_cv_c_compiler_gnu+set}" = set; then
2788 echo $ECHO_N "(cached) $ECHO_C" >&6
2789else
2790 cat >conftest.$ac_ext <<_ACEOF
2791/* confdefs.h. */
2792_ACEOF
2793cat confdefs.h >>conftest.$ac_ext
2794cat >>conftest.$ac_ext <<_ACEOF
2795/* end confdefs.h. */
2796
2797int
2798main ()
2799{
2800#ifndef __GNUC__
2801 choke me
2802#endif
2803
2804 ;
2805 return 0;
2806}
2807_ACEOF
2808rm -f conftest.$ac_objext
2809if { (ac_try="$ac_compile"
2810case "(($ac_try" in
2811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812 *) ac_try_echo=$ac_try;;
2813esac
2814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2815 (eval "$ac_compile") 2>conftest.er1
2816 ac_status=$?
2817 grep -v '^ *+' conftest.er1 >conftest.err
2818 rm -f conftest.er1
2819 cat conftest.err >&5
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); } && {
2822 test -z "$ac_c_werror_flag" ||
2823 test ! -s conftest.err
2824 } && test -s conftest.$ac_objext; then
2825 ac_compiler_gnu=yes
2826else
2827 echo "$as_me: failed program was:" >&5
2828sed 's/^/| /' conftest.$ac_ext >&5
2829
2830 ac_compiler_gnu=no
2831fi
2832
2833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2834ac_cv_c_compiler_gnu=$ac_compiler_gnu
2835
2836fi
2837{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2838echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2839GCC=`test $ac_compiler_gnu = yes && echo yes`
2840ac_test_CFLAGS=${CFLAGS+set}
2841ac_save_CFLAGS=$CFLAGS
2842{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2843echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2844if test "${ac_cv_prog_cc_g+set}" = set; then
2845 echo $ECHO_N "(cached) $ECHO_C" >&6
2846else
2847 ac_save_c_werror_flag=$ac_c_werror_flag
2848 ac_c_werror_flag=yes
2849 ac_cv_prog_cc_g=no
2850 CFLAGS="-g"
2851 cat >conftest.$ac_ext <<_ACEOF
2852/* confdefs.h. */
2853_ACEOF
2854cat confdefs.h >>conftest.$ac_ext
2855cat >>conftest.$ac_ext <<_ACEOF
2856/* end confdefs.h. */
2857
2858int
2859main ()
2860{
2861
2862 ;
2863 return 0;
2864}
2865_ACEOF
2866rm -f conftest.$ac_objext
2867if { (ac_try="$ac_compile"
2868case "(($ac_try" in
2869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2870 *) ac_try_echo=$ac_try;;
2871esac
2872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2873 (eval "$ac_compile") 2>conftest.er1
2874 ac_status=$?
2875 grep -v '^ *+' conftest.er1 >conftest.err
2876 rm -f conftest.er1
2877 cat conftest.err >&5
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); } && {
2880 test -z "$ac_c_werror_flag" ||
2881 test ! -s conftest.err
2882 } && test -s conftest.$ac_objext; then
2883 ac_cv_prog_cc_g=yes
2884else
2885 echo "$as_me: failed program was:" >&5
2886sed 's/^/| /' conftest.$ac_ext >&5
2887
2888 CFLAGS=""
2889 cat >conftest.$ac_ext <<_ACEOF
2890/* confdefs.h. */
2891_ACEOF
2892cat confdefs.h >>conftest.$ac_ext
2893cat >>conftest.$ac_ext <<_ACEOF
2894/* end confdefs.h. */
2895
2896int
2897main ()
2898{
2899
2900 ;
2901 return 0;
2902}
2903_ACEOF
2904rm -f conftest.$ac_objext
2905if { (ac_try="$ac_compile"
2906case "(($ac_try" in
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2909esac
2910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911 (eval "$ac_compile") 2>conftest.er1
2912 ac_status=$?
2913 grep -v '^ *+' conftest.er1 >conftest.err
2914 rm -f conftest.er1
2915 cat conftest.err >&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); } && {
2918 test -z "$ac_c_werror_flag" ||
2919 test ! -s conftest.err
2920 } && test -s conftest.$ac_objext; then
2921 :
2922else
2923 echo "$as_me: failed program was:" >&5
2924sed 's/^/| /' conftest.$ac_ext >&5
2925
2926 ac_c_werror_flag=$ac_save_c_werror_flag
2927 CFLAGS="-g"
2928 cat >conftest.$ac_ext <<_ACEOF
2929/* confdefs.h. */
2930_ACEOF
2931cat confdefs.h >>conftest.$ac_ext
2932cat >>conftest.$ac_ext <<_ACEOF
2933/* end confdefs.h. */
2934
2935int
2936main ()
2937{
2938
2939 ;
2940 return 0;
2941}
2942_ACEOF
2943rm -f conftest.$ac_objext
2944if { (ac_try="$ac_compile"
2945case "(($ac_try" in
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2948esac
2949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950 (eval "$ac_compile") 2>conftest.er1
2951 ac_status=$?
2952 grep -v '^ *+' conftest.er1 >conftest.err
2953 rm -f conftest.er1
2954 cat conftest.err >&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); } && {
2957 test -z "$ac_c_werror_flag" ||
2958 test ! -s conftest.err
2959 } && test -s conftest.$ac_objext; then
2960 ac_cv_prog_cc_g=yes
2961else
2962 echo "$as_me: failed program was:" >&5
2963sed 's/^/| /' conftest.$ac_ext >&5
2964
2965
2966fi
2967
2968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2969fi
2970
2971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2972fi
2973
2974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2975 ac_c_werror_flag=$ac_save_c_werror_flag
2976fi
2977{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2978echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2979if test "$ac_test_CFLAGS" = set; then
2980 CFLAGS=$ac_save_CFLAGS
2981elif test $ac_cv_prog_cc_g = yes; then
2982 if test "$GCC" = yes; then
2983 CFLAGS="-g -O2"
2984 else
2985 CFLAGS="-g"
2986 fi
2987else
2988 if test "$GCC" = yes; then
2989 CFLAGS="-O2"
2990 else
2991 CFLAGS=
2992 fi
2993fi
2994{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2995echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2996if test "${ac_cv_prog_cc_c89+set}" = set; then
2997 echo $ECHO_N "(cached) $ECHO_C" >&6
2998else
2999 ac_cv_prog_cc_c89=no
3000ac_save_CC=$CC
3001cat >conftest.$ac_ext <<_ACEOF
3002/* confdefs.h. */
3003_ACEOF
3004cat confdefs.h >>conftest.$ac_ext
3005cat >>conftest.$ac_ext <<_ACEOF
3006/* end confdefs.h. */
3007#include <stdarg.h>
3008#include <stdio.h>
3009#include <sys/types.h>
3010#include <sys/stat.h>
3011/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3012struct buf { int x; };
3013FILE * (*rcsopen) (struct buf *, struct stat *, int);
3014static char *e (p, i)
3015 char **p;
3016 int i;
3017{
3018 return p[i];
3019}
3020static char *f (char * (*g) (char **, int), char **p, ...)
3021{
3022 char *s;
3023 va_list v;
3024 va_start (v,p);
3025 s = g (p, va_arg (v,int));
3026 va_end (v);
3027 return s;
3028}
3029
3030/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3031 function prototypes and stuff, but not '\xHH' hex character constants.
3032 These don't provoke an error unfortunately, instead are silently treated
3033 as 'x'. The following induces an error, until -std is added to get
3034 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3035 array size at least. It's necessary to write '\x00'==0 to get something
3036 that's true only with -std. */
3037int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3038
3039/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3040 inside strings and character constants. */
3041#define FOO(x) 'x'
3042int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3043
3044int test (int i, double x);
3045struct s1 {int (*f) (int a);};
3046struct s2 {int (*f) (double a);};
3047int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3048int argc;
3049char **argv;
3050int
3051main ()
3052{
3053return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3054 ;
3055 return 0;
3056}
3057_ACEOF
3058for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3059 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3060do
3061 CC="$ac_save_CC $ac_arg"
3062 rm -f conftest.$ac_objext
3063if { (ac_try="$ac_compile"
3064case "(($ac_try" in
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3067esac
3068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3069 (eval "$ac_compile") 2>conftest.er1
3070 ac_status=$?
3071 grep -v '^ *+' conftest.er1 >conftest.err
3072 rm -f conftest.er1
3073 cat conftest.err >&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } && {
3076 test -z "$ac_c_werror_flag" ||
3077 test ! -s conftest.err
3078 } && test -s conftest.$ac_objext; then
3079 ac_cv_prog_cc_c89=$ac_arg
3080else
3081 echo "$as_me: failed program was:" >&5
3082sed 's/^/| /' conftest.$ac_ext >&5
3083
3084
3085fi
3086
3087rm -f core conftest.err conftest.$ac_objext
3088 test "x$ac_cv_prog_cc_c89" != "xno" && break
3089done
3090rm -f conftest.$ac_ext
3091CC=$ac_save_CC
3092
3093fi
3094# AC_CACHE_VAL
3095case "x$ac_cv_prog_cc_c89" in
3096 x)
3097 { echo "$as_me:$LINENO: result: none needed" >&5
3098echo "${ECHO_T}none needed" >&6; } ;;
3099 xno)
3100 { echo "$as_me:$LINENO: result: unsupported" >&5
3101echo "${ECHO_T}unsupported" >&6; } ;;
3102 *)
3103 CC="$CC $ac_cv_prog_cc_c89"
3104 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3105echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3106esac
3107
3108
3109ac_ext=c
3110ac_cpp='$CPP $CPPFLAGS'
3111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3113ac_compiler_gnu=$ac_cv_c_compiler_gnu
3114
3115 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3116echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
3117if test "${ac_cv_prog_cc_c99+set}" = set; then
3118 echo $ECHO_N "(cached) $ECHO_C" >&6
3119else
3120 ac_cv_prog_cc_c99=no
3121ac_save_CC=$CC
3122cat >conftest.$ac_ext <<_ACEOF
3123/* confdefs.h. */
3124_ACEOF
3125cat confdefs.h >>conftest.$ac_ext
3126cat >>conftest.$ac_ext <<_ACEOF
3127/* end confdefs.h. */
3128#include <stdarg.h>
3129#include <stdbool.h>
3130#include <stdlib.h>
3131#include <wchar.h>
3132#include <stdio.h>
3133
3134// Check varargs macros. These examples are taken from C99 6.10.3.5.
3135#define debug(...) fprintf (stderr, __VA_ARGS__)
3136#define showlist(...) puts (#__VA_ARGS__)
3137#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3138static void
3139test_varargs_macros (void)
3140{
3141 int x = 1234;
3142 int y = 5678;
3143 debug ("Flag");
3144 debug ("X = %d\n", x);
3145 showlist (The first, second, and third items.);
3146 report (x>y, "x is %d but y is %d", x, y);
3147}
3148
3149// Check long long types.
3150#define BIG64 18446744073709551615ull
3151#define BIG32 4294967295ul
3152#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3153#if !BIG_OK
3154 your preprocessor is broken;
3155#endif
3156#if BIG_OK
3157#else
3158 your preprocessor is broken;
3159#endif
3160static long long int bignum = -9223372036854775807LL;
3161static unsigned long long int ubignum = BIG64;
3162
3163struct incomplete_array
3164{
3165 int datasize;
3166 double data[];
3167};
3168
3169struct named_init {
3170 int number;
3171 const wchar_t *name;
3172 double average;
3173};
3174
3175typedef const char *ccp;
3176
3177static inline int
3178test_restrict (ccp restrict text)
3179{
3180 // See if C++-style comments work.
3181 // Iterate through items via the restricted pointer.
3182 // Also check for declarations in for loops.
3183 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3184 continue;
3185 return 0;
3186}
3187
3188// Check varargs and va_copy.
3189static void
3190test_varargs (const char *format, ...)
3191{
3192 va_list args;
3193 va_start (args, format);
3194 va_list args_copy;
3195 va_copy (args_copy, args);
3196
3197 const char *str;
3198 int number;
3199 float fnumber;
3200
3201 while (*format)
3202 {
3203 switch (*format++)
3204 {
3205 case 's': // string
3206 str = va_arg (args_copy, const char *);
3207 break;
3208 case 'd': // int
3209 number = va_arg (args_copy, int);
3210 break;
3211 case 'f': // float
3212 fnumber = va_arg (args_copy, double);
3213 break;
3214 default:
3215 break;
3216 }
3217 }
3218 va_end (args_copy);
3219 va_end (args);
3220}
3221
3222int
3223main ()
3224{
3225
3226 // Check bool.
3227 _Bool success = false;
3228
3229 // Check restrict.
3230 if (test_restrict ("String literal") == 0)
3231 success = true;
3232 char *restrict newvar = "Another string";
3233
3234 // Check varargs.
3235 test_varargs ("s, d' f .", "string", 65, 34.234);
3236 test_varargs_macros ();
3237
3238 // Check flexible array members.
3239 struct incomplete_array *ia =
3240 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3241 ia->datasize = 10;
3242 for (int i = 0; i < ia->datasize; ++i)
3243 ia->data[i] = i * 1.234;
3244
3245 // Check named initializers.
3246 struct named_init ni = {
3247 .number = 34,
3248 .name = L"Test wide string",
3249 .average = 543.34343,
3250 };
3251
3252 ni.number = 58;
3253
3254 int dynamic_array[ni.number];
3255 dynamic_array[ni.number - 1] = 543;
3256
3257 // work around unused variable warnings
3258 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3259 || dynamic_array[ni.number - 1] != 543);
3260
3261 ;
3262 return 0;
3263}
3264_ACEOF
3265for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3266do
3267 CC="$ac_save_CC $ac_arg"
3268 rm -f conftest.$ac_objext
3269if { (ac_try="$ac_compile"
3270case "(($ac_try" in
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3273esac
3274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275 (eval "$ac_compile") 2>conftest.er1
3276 ac_status=$?
3277 grep -v '^ *+' conftest.er1 >conftest.err
3278 rm -f conftest.er1
3279 cat conftest.err >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } && {
3282 test -z "$ac_c_werror_flag" ||
3283 test ! -s conftest.err
3284 } && test -s conftest.$ac_objext; then
3285 ac_cv_prog_cc_c99=$ac_arg
3286else
3287 echo "$as_me: failed program was:" >&5
3288sed 's/^/| /' conftest.$ac_ext >&5
3289
3290
3291fi
3292
3293rm -f core conftest.err conftest.$ac_objext
3294 test "x$ac_cv_prog_cc_c99" != "xno" && break
3295done
3296rm -f conftest.$ac_ext
3297CC=$ac_save_CC
3298
3299fi
3300# AC_CACHE_VAL
3301case "x$ac_cv_prog_cc_c99" in
3302 x)
3303 { echo "$as_me:$LINENO: result: none needed" >&5
3304echo "${ECHO_T}none needed" >&6; } ;;
3305 xno)
3306 { echo "$as_me:$LINENO: result: unsupported" >&5
3307echo "${ECHO_T}unsupported" >&6; } ;;
3308 *)
3309 CC="$CC $ac_cv_prog_cc_c99"
3310 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3311echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3312esac
3313
3314
3315
11b73fef 3316
3317
3318{ echo "$as_me:$LINENO: checking for C compiler vendor" >&5
3319echo $ECHO_N "checking for C compiler vendor... $ECHO_C" >&6; }
3320if test "${ax_cv_c_compiler_vendor+set}" = set; then
3321 echo $ECHO_N "(cached) $ECHO_C" >&6
3322else
3323 ax_cv_c_compiler_vendor=unknown
3324 # note: don't check for gcc first since some other compilers define __GNUC__
3325 for ventest in intel:__ICC,__ECC,__INTEL_COMPILER ibm:__xlc__,__xlC__,__IBMC__,__IBMCPP__ pathscale:__PATHCC__,__PATHSCALE__ gnu:__GNUC__ sun:__SUNPRO_C,__SUNPRO_CC hp:__HP_cc,__HP_aCC dec:__DECC,__DECCXX,__DECC_VER,__DECCXX_VER borland:__BORLANDC__,__TURBOC__ comeau:__COMO__ cray:_CRAYC kai:__KCC lcc:__LCC__ metrowerks:__MWERKS__ sgi:__sgi,sgi microsoft:_MSC_VER watcom:__WATCOMC__ portland:__PGI; do
3326 vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")"
3327 cat >conftest.$ac_ext <<_ACEOF
3328/* confdefs.h. */
3329_ACEOF
3330cat confdefs.h >>conftest.$ac_ext
3331cat >>conftest.$ac_ext <<_ACEOF
3332/* end confdefs.h. */
3333
3334int
3335main ()
3336{
3337
3338#if !($vencpp)
3339 thisisanerror;
3340#endif
3341
3342 ;
3343 return 0;
3344}
3345_ACEOF
3346rm -f conftest.$ac_objext
3347if { (ac_try="$ac_compile"
3348case "(($ac_try" in
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3351esac
3352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353 (eval "$ac_compile") 2>conftest.er1
3354 ac_status=$?
3355 grep -v '^ *+' conftest.er1 >conftest.err
3356 rm -f conftest.er1
3357 cat conftest.err >&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); } && {
3360 test -z "$ac_c_werror_flag" ||
3361 test ! -s conftest.err
3362 } && test -s conftest.$ac_objext; then
3363 ax_cv_c_compiler_vendor=`echo $ventest | cut -d: -f1`; break
3364else
3365 echo "$as_me: failed program was:" >&5
3366sed 's/^/| /' conftest.$ac_ext >&5
3367
3368
3369fi
3370
3371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3372 done
3373
3374fi
3375{ echo "$as_me:$LINENO: result: $ax_cv_c_compiler_vendor" >&5
3376echo "${ECHO_T}$ax_cv_c_compiler_vendor" >&6; }
3377
bf042c35 3378ac_aux_dir=
3379for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3380 if test -f "$ac_dir/install-sh"; then
3381 ac_aux_dir=$ac_dir
3382 ac_install_sh="$ac_aux_dir/install-sh -c"
3383 break
3384 elif test -f "$ac_dir/install.sh"; then
3385 ac_aux_dir=$ac_dir
3386 ac_install_sh="$ac_aux_dir/install.sh -c"
3387 break
3388 elif test -f "$ac_dir/shtool"; then
3389 ac_aux_dir=$ac_dir
3390 ac_install_sh="$ac_aux_dir/shtool install -c"
3391 break
3392 fi
3393done
3394if test -z "$ac_aux_dir"; then
3395 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3396echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3397 { (exit 1); exit 1; }; }
3398fi
3399
3400# These three variables are undocumented and unsupported,
3401# and are intended to be withdrawn in a future Autoconf release.
3402# They can cause serious problems if a builder's source tree is in a directory
3403# whose full name contains unusual characters.
3404ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3405ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3406ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3407
3408
3409# Make sure we can run config.sub.
3410$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3411 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3412echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3413 { (exit 1); exit 1; }; }
3414
3415{ echo "$as_me:$LINENO: checking build system type" >&5
3416echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3417if test "${ac_cv_build+set}" = set; then
3418 echo $ECHO_N "(cached) $ECHO_C" >&6
3419else
3420 ac_build_alias=$build_alias
3421test "x$ac_build_alias" = x &&
3422 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3423test "x$ac_build_alias" = x &&
3424 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3425echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3426 { (exit 1); exit 1; }; }
3427ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3428 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3429echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3430 { (exit 1); exit 1; }; }
3431
3432fi
3433{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3434echo "${ECHO_T}$ac_cv_build" >&6; }
3435case $ac_cv_build in
3436*-*-*) ;;
3437*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3438echo "$as_me: error: invalid value of canonical build" >&2;}
3439 { (exit 1); exit 1; }; };;
3440esac
3441build=$ac_cv_build
3442ac_save_IFS=$IFS; IFS='-'
3443set x $ac_cv_build
3444shift
3445build_cpu=$1
3446build_vendor=$2
3447shift; shift
3448# Remember, the first character of IFS is used to create $*,
3449# except with old shells:
3450build_os=$*
3451IFS=$ac_save_IFS
3452case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3453
3454
3455{ echo "$as_me:$LINENO: checking host system type" >&5
3456echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3457if test "${ac_cv_host+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3459else
3460 if test "x$host_alias" = x; then
3461 ac_cv_host=$ac_cv_build
3462else
3463 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3464 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3465echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3466 { (exit 1); exit 1; }; }
3467fi
3468
3469fi
3470{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3471echo "${ECHO_T}$ac_cv_host" >&6; }
3472case $ac_cv_host in
3473*-*-*) ;;
3474*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3475echo "$as_me: error: invalid value of canonical host" >&2;}
3476 { (exit 1); exit 1; }; };;
3477esac
3478host=$ac_cv_host
3479ac_save_IFS=$IFS; IFS='-'
3480set x $ac_cv_host
3481shift
3482host_cpu=$1
3483host_vendor=$2
3484shift; shift
3485# Remember, the first character of IFS is used to create $*,
3486# except with old shells:
3487host_os=$*
3488IFS=$ac_save_IFS
3489case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3490
3491
bf042c35 3492
3493
3494
3495
3496
3497# Check whether --enable-portable-binary was given.
3498if test "${enable_portable_binary+set}" = set; then
3499 enableval=$enable_portable_binary; acx_maxopt_portable=$withval
3500else
3501 acx_maxopt_portable=no
3502fi
3503
3504
3505# Try to determine "good" native compiler flags if none specified via CFLAGS
3506if test "$ac_test_CFLAGS" != "set"; then
3507 CFLAGS=""
3508 case $ax_cv_c_compiler_vendor in
3509 dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
3510 if test "x$acx_maxopt_portable" = xno; then
3511 CFLAGS="$CFLAGS -arch host"
3512 fi;;
3513
3514 sun) CFLAGS="-native -fast -xO5 -dalign"
3515 if test "x$acx_maxopt_portable" = xyes; then
3516 CFLAGS="$CFLAGS -xarch=generic"
3517 fi;;
3518
3519 hp) CFLAGS="+Oall +Optrs_ansi +DSnative"
3520 if test "x$acx_maxopt_portable" = xyes; then
3521 CFLAGS="$CFLAGS +DAportable"
3522 fi;;
3523
3524 ibm) if test "x$acx_maxopt_portable" = xno; then
3525 xlc_opt="-qarch=auto -qtune=auto"
3526 else
3527 xlc_opt="-qtune=auto"
3528 fi
3529 { echo "$as_me:$LINENO: checking whether C compiler accepts $xlc_opt" >&5
3530echo $ECHO_N "checking whether C compiler accepts $xlc_opt... $ECHO_C" >&6; }
3531ax_save_FLAGS=$CFLAGS
3532 CFLAGS="$xlc_opt"
3533 cat >conftest.$ac_ext <<_ACEOF
3534/* confdefs.h. */
3535_ACEOF
3536cat confdefs.h >>conftest.$ac_ext
3537cat >>conftest.$ac_ext <<_ACEOF
3538/* end confdefs.h. */
3539
3540int
3541main ()
3542{
3543
3544 ;
3545 return 0;
3546}
3547_ACEOF
3548rm -f conftest.$ac_objext
3549if { (ac_try="$ac_compile"
3550case "(($ac_try" in
3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552 *) ac_try_echo=$ac_try;;
3553esac
3554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3555 (eval "$ac_compile") 2>conftest.er1
3556 ac_status=$?
3557 grep -v '^ *+' conftest.er1 >conftest.err
3558 rm -f conftest.er1
3559 cat conftest.err >&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); } && {
3562 test -z "$ac_c_werror_flag" ||
3563 test ! -s conftest.err
3564 } && test -s conftest.$ac_objext; then
3565 eval `echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`=yes
3566else
3567 echo "$as_me: failed program was:" >&5
3568sed 's/^/| /' conftest.$ac_ext >&5
3569
3570 eval `echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`=no
3571fi
3572
3573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574 CFLAGS=$ax_save_FLAGS
3575eval ax_check_compiler_flags=$`echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`
3576{ echo "$as_me:$LINENO: result: $ax_check_compiler_flags" >&5
3577echo "${ECHO_T}$ax_check_compiler_flags" >&6; }
3578if test "x$ax_check_compiler_flags" = xyes; then
3579 CFLAGS="-O3 -qansialias -w $xlc_opt"
3580else
3581 CFLAGS="-O3 -qansialias -w"
3582 echo "******************************************************"
3583 echo "* You seem to have the IBM C compiler. It is *"
3584 echo "* recommended for best performance that you use: *"
3585 echo "* *"
3586 echo "* CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
3587 echo "* ^^^ ^^^ *"
3588 echo "* where xxx is pwr2, pwr3, 604, or whatever kind of *"
3589 echo "* CPU you have. (Set the CFLAGS environment var. *"
3590 echo "* and re-run configure.) For more info, man cc. *"
3591 echo "******************************************************"
3592fi
3593
3594 ;;
3595
3596 intel) CFLAGS="-O3 -ansi_alias"
3597 if test "x$acx_maxopt_portable" = xno; then
3598 icc_archflag=unknown
3599 icc_flags=""
3600 case $host_cpu in
3601 i686*|x86_64*)
3602 # icc accepts gcc assembly syntax, so these should work:
3603
3604ac_ext=c
3605ac_cpp='$CPP $CPPFLAGS'
3606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3608ac_compiler_gnu=$ac_cv_c_compiler_gnu
3609
3610{ echo "$as_me:$LINENO: checking for x86 cpuid 0 output" >&5
3611echo $ECHO_N "checking for x86 cpuid 0 output... $ECHO_C" >&6; }
3612if test "${ax_cv_gcc_x86_cpuid_0+set}" = set; then
3613 echo $ECHO_N "(cached) $ECHO_C" >&6
3614else
3615 if test "$cross_compiling" = yes; then
3616 ax_cv_gcc_x86_cpuid_0=unknown
3617else
3618 cat >conftest.$ac_ext <<_ACEOF
3619/* confdefs.h. */
3620_ACEOF
3621cat confdefs.h >>conftest.$ac_ext
3622cat >>conftest.$ac_ext <<_ACEOF
3623/* end confdefs.h. */
3624#include <stdio.h>
3625int
3626main ()
3627{
3628
3629 int op = 0, eax, ebx, ecx, edx;
3630 FILE *f;
3631 __asm__("cpuid"
3632 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
3633 : "a" (op));
3634 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
3635 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
3636 fclose(f);
3637 return 0;
3638
3639 ;
3640 return 0;
3641}
3642_ACEOF
3643rm -f conftest$ac_exeext
3644if { (ac_try="$ac_link"
3645case "(($ac_try" in
3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647 *) ac_try_echo=$ac_try;;
3648esac
3649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3650 (eval "$ac_link") 2>&5
3651 ac_status=$?
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3654 { (case "(($ac_try" in
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3657esac
3658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3659 (eval "$ac_try") 2>&5
3660 ac_status=$?
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }; }; then
3663 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
3664else
3665 echo "$as_me: program exited with status $ac_status" >&5
3666echo "$as_me: failed program was:" >&5
3667sed 's/^/| /' conftest.$ac_ext >&5
3668
3669( exit $ac_status )
3670ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
3671fi
3672rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3673fi
3674
3675
3676fi
3677{ echo "$as_me:$LINENO: result: $ax_cv_gcc_x86_cpuid_0" >&5
3678echo "${ECHO_T}$ax_cv_gcc_x86_cpuid_0" >&6; }
3679ac_ext=c
3680ac_cpp='$CPP $CPPFLAGS'
3681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3683ac_compiler_gnu=$ac_cv_c_compiler_gnu
3684
3685
3686
3687ac_ext=c
3688ac_cpp='$CPP $CPPFLAGS'
3689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691ac_compiler_gnu=$ac_cv_c_compiler_gnu
3692
3693{ echo "$as_me:$LINENO: checking for x86 cpuid 1 output" >&5
3694echo $ECHO_N "checking for x86 cpuid 1 output... $ECHO_C" >&6; }
3695if test "${ax_cv_gcc_x86_cpuid_1+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3697else
3698 if test "$cross_compiling" = yes; then
3699 ax_cv_gcc_x86_cpuid_1=unknown
3700else
3701 cat >conftest.$ac_ext <<_ACEOF
3702/* confdefs.h. */
3703_ACEOF
3704cat confdefs.h >>conftest.$ac_ext
3705cat >>conftest.$ac_ext <<_ACEOF
3706/* end confdefs.h. */
3707#include <stdio.h>
3708int
3709main ()
3710{
3711
3712 int op = 1, eax, ebx, ecx, edx;
3713 FILE *f;
3714 __asm__("cpuid"
3715 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
3716 : "a" (op));
3717 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
3718 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
3719 fclose(f);
3720 return 0;
3721
3722 ;
3723 return 0;
3724}
3725_ACEOF
3726rm -f conftest$ac_exeext
3727if { (ac_try="$ac_link"
3728case "(($ac_try" in
3729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3730 *) ac_try_echo=$ac_try;;
3731esac
3732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3733 (eval "$ac_link") 2>&5
3734 ac_status=$?
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3737 { (case "(($ac_try" in
3738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3739 *) ac_try_echo=$ac_try;;
3740esac
3741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3742 (eval "$ac_try") 2>&5
3743 ac_status=$?
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); }; }; then
3746 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
3747else
3748 echo "$as_me: program exited with status $ac_status" >&5
3749echo "$as_me: failed program was:" >&5
3750sed 's/^/| /' conftest.$ac_ext >&5
3751
3752( exit $ac_status )
3753ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
3754fi
3755rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3756fi
3757
3758
3759fi
3760{ echo "$as_me:$LINENO: result: $ax_cv_gcc_x86_cpuid_1" >&5
3761echo "${ECHO_T}$ax_cv_gcc_x86_cpuid_1" >&6; }
3762ac_ext=c
3763ac_cpp='$CPP $CPPFLAGS'
3764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3766ac_compiler_gnu=$ac_cv_c_compiler_gnu
3767
3768
3769 case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG
3770 *:756e6547:*:*) # Intel
3771 case $ax_cv_gcc_x86_cpuid_1 in
3772 *6a?:*[234]:*:*|*6[789b]?:*:*:*) icc_flags="-xK";;
3773 *f3[347]:*:*:*|*f41347:*:*:*) icc_flags="-xP -xN -xW -xK";;
3774 *f??:*:*:*) icc_flags="-xN -xW -xK";;
3775 esac ;;
3776 esac ;;
3777 esac
3778 if test "x$icc_flags" != x; then
3779 for flag in $icc_flags; do
3780 { echo "$as_me:$LINENO: checking whether C compiler accepts $flag" >&5
3781echo $ECHO_N "checking whether C compiler accepts $flag... $ECHO_C" >&6; }
3782ax_save_FLAGS=$CFLAGS
3783 CFLAGS="$flag"
3784 cat >conftest.$ac_ext <<_ACEOF
3785/* confdefs.h. */
3786_ACEOF
3787cat confdefs.h >>conftest.$ac_ext
3788cat >>conftest.$ac_ext <<_ACEOF
3789/* end confdefs.h. */
3790
3791int
3792main ()
3793{
3794
3795 ;
3796 return 0;
3797}
3798_ACEOF
3799rm -f conftest.$ac_objext
3800if { (ac_try="$ac_compile"
3801case "(($ac_try" in
3802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803 *) ac_try_echo=$ac_try;;
3804esac
3805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3806 (eval "$ac_compile") 2>conftest.er1
3807 ac_status=$?
3808 grep -v '^ *+' conftest.er1 >conftest.err
3809 rm -f conftest.er1
3810 cat conftest.err >&5
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); } && {
3813 test -z "$ac_c_werror_flag" ||
3814 test ! -s conftest.err
3815 } && test -s conftest.$ac_objext; then
3816 eval `echo "ax_cv_c_flags_$flag" | $as_tr_sh`=yes
3817else
3818 echo "$as_me: failed program was:" >&5
3819sed 's/^/| /' conftest.$ac_ext >&5
3820
3821 eval `echo "ax_cv_c_flags_$flag" | $as_tr_sh`=no
3822fi
3823
3824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3825 CFLAGS=$ax_save_FLAGS
3826eval ax_check_compiler_flags=$`echo "ax_cv_c_flags_$flag" | $as_tr_sh`
3827{ echo "$as_me:$LINENO: result: $ax_check_compiler_flags" >&5
3828echo "${ECHO_T}$ax_check_compiler_flags" >&6; }
3829if test "x$ax_check_compiler_flags" = xyes; then
3830 icc_archflag=$flag; break
3831else
3832 :
3833fi
3834
3835 done
3836 fi
3837 { echo "$as_me:$LINENO: checking for icc architecture flag" >&5
3838echo $ECHO_N "checking for icc architecture flag... $ECHO_C" >&6; }
3839 { echo "$as_me:$LINENO: result: $icc_archflag" >&5
3840echo "${ECHO_T}$icc_archflag" >&6; }
3841 if test "x$icc_archflag" != xunknown; then
3842 CFLAGS="$CFLAGS $icc_archflag"
3843 fi
3844 fi
3845 ;;
3846
3847 gnu)
3848 # adding an exception for debugging turned on...
11b73fef 3849 if test "x$DEBUG" = xyes; then
bf042c35 3850 CFLAGS="-g -O0"
11b73fef 3851 else
bf042c35 3852 CFLAGS="-g -O3 -fomit-frame-pointer"
3853 fi
3854
3855 # -malign-double for x86 systems
3856 { echo "$as_me:$LINENO: checking whether C compiler accepts -malign-double" >&5
3857echo $ECHO_N "checking whether C compiler accepts -malign-double... $ECHO_C" >&6; }
3858if test "${ax_cv_c_flags__malign_double+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
3860else
3861
3862 ax_save_FLAGS=$CFLAGS
3863 CFLAGS="-malign-double"
3864 cat >conftest.$ac_ext <<_ACEOF
3865/* confdefs.h. */
3866_ACEOF
3867cat confdefs.h >>conftest.$ac_ext
3868cat >>conftest.$ac_ext <<_ACEOF
3869/* end confdefs.h. */
3870
3871int
3872main ()
3873{
3874
3875 ;
3876 return 0;
3877}
3878_ACEOF
3879rm -f conftest.$ac_objext
3880if { (ac_try="$ac_compile"
3881case "(($ac_try" in
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3884esac
3885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3886 (eval "$ac_compile") 2>conftest.er1
3887 ac_status=$?
3888 grep -v '^ *+' conftest.er1 >conftest.err
3889 rm -f conftest.er1
3890 cat conftest.err >&5
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); } && {
3893 test -z "$ac_c_werror_flag" ||
3894 test ! -s conftest.err
3895 } && test -s conftest.$ac_objext; then
3896 ax_cv_c_flags__malign_double=yes
3897else
3898 echo "$as_me: failed program was:" >&5
3899sed 's/^/| /' conftest.$ac_ext >&5
3900
3901 ax_cv_c_flags__malign_double=no
3902fi
3903
3904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3905 CFLAGS=$ax_save_FLAGS
3906fi
3907
3908eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double
3909{ echo "$as_me:$LINENO: result: $ax_check_compiler_flags" >&5
3910echo "${ECHO_T}$ax_check_compiler_flags" >&6; }
3911if test "x$ax_check_compiler_flags" = xyes; then
3912 CFLAGS="$CFLAGS -malign-double"
3913else
3914 :
3915fi
3916
3917
3918 # -fstrict-aliasing for gcc-2.95+
3919 { echo "$as_me:$LINENO: checking whether C compiler accepts -fstrict-aliasing" >&5
3920echo $ECHO_N "checking whether C compiler accepts -fstrict-aliasing... $ECHO_C" >&6; }
3921if test "${ax_cv_c_flags__fstrict_aliasing+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3923else
3924
3925 ax_save_FLAGS=$CFLAGS
3926 CFLAGS="-fstrict-aliasing"
3927 cat >conftest.$ac_ext <<_ACEOF
3928/* confdefs.h. */
3929_ACEOF
3930cat confdefs.h >>conftest.$ac_ext
3931cat >>conftest.$ac_ext <<_ACEOF
3932/* end confdefs.h. */
3933
3934int
3935main ()
3936{
3937
3938 ;
3939 return 0;
3940}
3941_ACEOF
3942rm -f conftest.$ac_objext
3943if { (ac_try="$ac_compile"
3944case "(($ac_try" in
3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946 *) ac_try_echo=$ac_try;;
3947esac
3948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3949 (eval "$ac_compile") 2>conftest.er1
3950 ac_status=$?
3951 grep -v '^ *+' conftest.er1 >conftest.err
3952 rm -f conftest.er1
3953 cat conftest.err >&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); } && {
3956 test -z "$ac_c_werror_flag" ||
3957 test ! -s conftest.err
3958 } && test -s conftest.$ac_objext; then
3959 ax_cv_c_flags__fstrict_aliasing=yes
3960else
3961 echo "$as_me: failed program was:" >&5
3962sed 's/^/| /' conftest.$ac_ext >&5
3963
3964 ax_cv_c_flags__fstrict_aliasing=no
3965fi
3966
3967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3968 CFLAGS=$ax_save_FLAGS
3969fi
3970
3971eval ax_check_compiler_flags=$ax_cv_c_flags__fstrict_aliasing
3972{ echo "$as_me:$LINENO: result: $ax_check_compiler_flags" >&5
3973echo "${ECHO_T}$ax_check_compiler_flags" >&6; }
3974if test "x$ax_check_compiler_flags" = xyes; then
3975 CFLAGS="$CFLAGS -fstrict-aliasing"
3976else
3977 :
3978fi
3979
3980
3981 # note that we enable "unsafe" fp optimization with other compilers, too
3982 { echo "$as_me:$LINENO: checking whether C compiler accepts -ffast-math" >&5
3983echo $ECHO_N "checking whether C compiler accepts -ffast-math... $ECHO_C" >&6; }
3984if test "${ax_cv_c_flags__ffast_math+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3986else
3987
3988 ax_save_FLAGS=$CFLAGS
3989 CFLAGS="-ffast-math"
3990 cat >conftest.$ac_ext <<_ACEOF
3991/* confdefs.h. */
3992_ACEOF
3993cat confdefs.h >>conftest.$ac_ext
3994cat >>conftest.$ac_ext <<_ACEOF
3995/* end confdefs.h. */
3996
3997int
3998main ()
3999{
4000
4001 ;
4002 return 0;
4003}
4004_ACEOF
4005rm -f conftest.$ac_objext
4006if { (ac_try="$ac_compile"
4007case "(($ac_try" in
4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4010esac
4011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4012 (eval "$ac_compile") 2>conftest.er1
4013 ac_status=$?
4014 grep -v '^ *+' conftest.er1 >conftest.err
4015 rm -f conftest.er1
4016 cat conftest.err >&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); } && {
4019 test -z "$ac_c_werror_flag" ||
4020 test ! -s conftest.err
4021 } && test -s conftest.$ac_objext; then
4022 ax_cv_c_flags__ffast_math=yes
4023else
4024 echo "$as_me: failed program was:" >&5
4025sed 's/^/| /' conftest.$ac_ext >&5
4026
4027 ax_cv_c_flags__ffast_math=no
4028fi
4029
4030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4031 CFLAGS=$ax_save_FLAGS
4032fi
4033
4034eval ax_check_compiler_flags=$ax_cv_c_flags__ffast_math
4035{ echo "$as_me:$LINENO: result: $ax_check_compiler_flags" >&5
4036echo "${ECHO_T}$ax_check_compiler_flags" >&6; }
4037if test "x$ax_check_compiler_flags" = xyes; then
4038 CFLAGS="$CFLAGS -ffast-math"
4039else
4040 :
4041fi
4042
4043
4044
4045
4046
4047
4048# Check whether --with-gcc-arch was given.
4049if test "${with_gcc_arch+set}" = set; then
4050 withval=$with_gcc_arch; ax_gcc_arch=$withval
4051else
4052 ax_gcc_arch=yes
4053fi
4054
4055
4056{ echo "$as_me:$LINENO: checking for gcc architecture flag" >&5
4057echo $ECHO_N "checking for gcc architecture flag... $ECHO_C" >&6; }
4058{ echo "$as_me:$LINENO: result: " >&5
4059echo "${ECHO_T}" >&6; }
4060if test "${ax_cv_gcc_archflag+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4062else
4063
4064ax_cv_gcc_archflag="unknown"
4065
4066if test "$GCC" = yes; then
4067
4068if test "x$ax_gcc_arch" = xyes; then
4069ax_gcc_arch=""
4070if test "$cross_compiling" = no; then
4071case $host_cpu in
4072 i[3456]86*|x86_64*) # use cpuid codes, in part from x86info-1.7 by D. Jones
4073
4074ac_ext=c
4075ac_cpp='$CPP $CPPFLAGS'
4076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4078ac_compiler_gnu=$ac_cv_c_compiler_gnu
4079
4080{ echo "$as_me:$LINENO: checking for x86 cpuid 0 output" >&5
4081echo $ECHO_N "checking for x86 cpuid 0 output... $ECHO_C" >&6; }
4082if test "${ax_cv_gcc_x86_cpuid_0+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4084else
4085 if test "$cross_compiling" = yes; then
4086 ax_cv_gcc_x86_cpuid_0=unknown
4087else
4088 cat >conftest.$ac_ext <<_ACEOF
4089/* confdefs.h. */
4090_ACEOF
4091cat confdefs.h >>conftest.$ac_ext
4092cat >>conftest.$ac_ext <<_ACEOF
4093/* end confdefs.h. */
4094#include <stdio.h>
4095int
4096main ()
4097{
4098
4099 int op = 0, eax, ebx, ecx, edx;
4100 FILE *f;
4101 __asm__("cpuid"
4102 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
4103 : "a" (op));
4104 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
4105 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
4106 fclose(f);
4107 return 0;
4108
4109 ;
4110 return 0;
4111}
4112_ACEOF
4113rm -f conftest$ac_exeext
4114if { (ac_try="$ac_link"
4115case "(($ac_try" in
4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117 *) ac_try_echo=$ac_try;;
4118esac
4119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4120 (eval "$ac_link") 2>&5
4121 ac_status=$?
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4124 { (case "(($ac_try" in
4125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126 *) ac_try_echo=$ac_try;;
4127esac
4128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4129 (eval "$ac_try") 2>&5
4130 ac_status=$?
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); }; }; then
4133 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
4134else
4135 echo "$as_me: program exited with status $ac_status" >&5
4136echo "$as_me: failed program was:" >&5
4137sed 's/^/| /' conftest.$ac_ext >&5
4138
4139( exit $ac_status )
4140ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
4141fi
4142rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4143fi
4144
4145
4146fi
4147{ echo "$as_me:$LINENO: result: $ax_cv_gcc_x86_cpuid_0" >&5
4148echo "${ECHO_T}$ax_cv_gcc_x86_cpuid_0" >&6; }
4149ac_ext=c
4150ac_cpp='$CPP $CPPFLAGS'
4151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4153ac_compiler_gnu=$ac_cv_c_compiler_gnu
4154
4155
4156
4157ac_ext=c
4158ac_cpp='$CPP $CPPFLAGS'
4159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4161ac_compiler_gnu=$ac_cv_c_compiler_gnu
4162
4163{ echo "$as_me:$LINENO: checking for x86 cpuid 1 output" >&5
4164echo $ECHO_N "checking for x86 cpuid 1 output... $ECHO_C" >&6; }
4165if test "${ax_cv_gcc_x86_cpuid_1+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4167else
4168 if test "$cross_compiling" = yes; then
4169 ax_cv_gcc_x86_cpuid_1=unknown
4170else
4171 cat >conftest.$ac_ext <<_ACEOF
4172/* confdefs.h. */
4173_ACEOF
4174cat confdefs.h >>conftest.$ac_ext
4175cat >>conftest.$ac_ext <<_ACEOF
4176/* end confdefs.h. */
4177#include <stdio.h>
4178int
4179main ()
4180{
4181
4182 int op = 1, eax, ebx, ecx, edx;
4183 FILE *f;
4184 __asm__("cpuid"
4185 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
4186 : "a" (op));
4187 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
4188 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
4189 fclose(f);
4190 return 0;
4191
4192 ;
4193 return 0;
4194}
4195_ACEOF
4196rm -f conftest$ac_exeext
4197if { (ac_try="$ac_link"
4198case "(($ac_try" in
4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200 *) ac_try_echo=$ac_try;;
4201esac
4202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4203 (eval "$ac_link") 2>&5
4204 ac_status=$?
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4207 { (case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4210esac
4211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4212 (eval "$ac_try") 2>&5
4213 ac_status=$?
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }; }; then
4216 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
4217else
4218 echo "$as_me: program exited with status $ac_status" >&5
4219echo "$as_me: failed program was:" >&5
4220sed 's/^/| /' conftest.$ac_ext >&5
4221
4222( exit $ac_status )
4223ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
4224fi
4225rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4226fi
4227
4228
4229fi
4230{ echo "$as_me:$LINENO: result: $ax_cv_gcc_x86_cpuid_1" >&5
4231echo "${ECHO_T}$ax_cv_gcc_x86_cpuid_1" >&6; }
4232ac_ext=c
4233ac_cpp='$CPP $CPPFLAGS'
4234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236ac_compiler_gnu=$ac_cv_c_compiler_gnu
4237
4238
4239 case $ax_cv_gcc_x86_cpuid_0 in
4240 *:756e6547:*:*) # Intel
4241 case $ax_cv_gcc_x86_cpuid_1 in
4242 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
4243 *5??:*:*:*) ax_gcc_arch=pentium ;;
4244 *6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
4245 *6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
4246 *6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
4247 *6[9d]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
4248 *6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
4249 *6??:*:*:*) ax_gcc_arch=pentiumpro ;;
4250 *f3[347]:*:*:*|*f41347:*:*:*)
4251 case $host_cpu in
4252 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
4253 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
4254 esac ;;
4255 *f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
4256 esac ;;
4257 *:68747541:*:*) # AMD
4258 case $ax_cv_gcc_x86_cpuid_1 in
4259 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
4260 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
4261 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
4262 *60?:*:*:*) ax_gcc_arch=k7 ;;
4263 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
4264 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
4265 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
4266 *6[68a]?:*:*:*)
4267
4268ac_ext=c
4269ac_cpp='$CPP $CPPFLAGS'
4270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4272ac_compiler_gnu=$ac_cv_c_compiler_gnu
4273
4274{ echo "$as_me:$LINENO: checking for x86 cpuid 0x80000006 output" >&5
4275echo $ECHO_N "checking for x86 cpuid 0x80000006 output... $ECHO_C" >&6; }
4276if test "${ax_cv_gcc_x86_cpuid_0x80000006+set}" = set; then
4277 echo $ECHO_N "(cached) $ECHO_C" >&6
4278else
4279 if test "$cross_compiling" = yes; then
4280 ax_cv_gcc_x86_cpuid_0x80000006=unknown
4281else
4282 cat >conftest.$ac_ext <<_ACEOF
4283/* confdefs.h. */
4284_ACEOF
4285cat confdefs.h >>conftest.$ac_ext
4286cat >>conftest.$ac_ext <<_ACEOF
4287/* end confdefs.h. */
4288#include <stdio.h>
4289int
4290main ()
4291{
4292
4293 int op = 0x80000006, eax, ebx, ecx, edx;
4294 FILE *f;
4295 __asm__("cpuid"
4296 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
4297 : "a" (op));
4298 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
4299 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
4300 fclose(f);
4301 return 0;
4302
4303 ;
4304 return 0;
4305}
4306_ACEOF
4307rm -f conftest$ac_exeext
4308if { (ac_try="$ac_link"
4309case "(($ac_try" in
4310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311 *) ac_try_echo=$ac_try;;
4312esac
4313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4314 (eval "$ac_link") 2>&5
4315 ac_status=$?
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4318 { (case "(($ac_try" in
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4321esac
4322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323 (eval "$ac_try") 2>&5
4324 ac_status=$?
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); }; }; then
4327 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
4328else
4329 echo "$as_me: program exited with status $ac_status" >&5
4330echo "$as_me: failed program was:" >&5
4331sed 's/^/| /' conftest.$ac_ext >&5
4332
4333( exit $ac_status )
4334ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
4335fi
4336rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4337fi
4338
4339
4340fi
4341{ echo "$as_me:$LINENO: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
4342echo "${ECHO_T}$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
4343ac_ext=c
4344ac_cpp='$CPP $CPPFLAGS'
4345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4347ac_compiler_gnu=$ac_cv_c_compiler_gnu
4348
4349 # L2 cache size
4350 case $ax_cv_gcc_x86_cpuid_0x80000006 in
4351 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
4352 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
4353 *) ax_gcc_arch="athlon-4 athlon k7" ;;
4354 esac ;;
4355 *f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
4356 *f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
4357 *f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
4358 *f??:*:*:*) ax_gcc_arch="k8" ;;
4359 esac ;;
4360 *:746e6543:*:*) # IDT
4361 case $ax_cv_gcc_x86_cpuid_1 in
4362 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
4363 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
4364 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
4365 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
4366 esac ;;
4367 esac
4368 if test x"$ax_gcc_arch" = x; then # fallback
4369 case $host_cpu in
4370 i586*) ax_gcc_arch=pentium ;;
4371 i686*) ax_gcc_arch=pentiumpro ;;
4372 esac
4373 fi
4374 ;;
4375
4376 sparc*)
4377 # Extract the first word of "prtdiag", so it can be a program name with args.
4378set dummy prtdiag; ac_word=$2
4379{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4381if test "${ac_cv_path_PRTDIAG+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4383else
4384 case $PRTDIAG in
4385 [\\/]* | ?:[\\/]*)
4386 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
4387 ;;
4388 *)
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
4391for as_dir in $as_dummy
4392do
4393 IFS=$as_save_IFS
4394 test -z "$as_dir" && as_dir=.
4395 for ac_exec_ext in '' $ac_executable_extensions; do
4396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4397 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
4398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4399 break 2
4400 fi
4401done
4402done
4403IFS=$as_save_IFS
4404
4405 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
4406 ;;
4407esac
4408fi
4409PRTDIAG=$ac_cv_path_PRTDIAG
4410if test -n "$PRTDIAG"; then
4411 { echo "$as_me:$LINENO: result: $PRTDIAG" >&5
4412echo "${ECHO_T}$PRTDIAG" >&6; }
4413else
4414 { echo "$as_me:$LINENO: result: no" >&5
4415echo "${ECHO_T}no" >&6; }
4416fi
4417
4418
4419 cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null`
4420 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
4421 case $cputype in
4422 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
4423 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
4424 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
4425 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
4426 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
4427 *cypress*) ax_gcc_arch=cypress ;;
4428 esac ;;
4429
4430 alphaev5) ax_gcc_arch=ev5 ;;
4431 alphaev56) ax_gcc_arch=ev56 ;;
4432 alphapca56) ax_gcc_arch="pca56 ev56" ;;
4433 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
4434 alphaev6) ax_gcc_arch=ev6 ;;
4435 alphaev67) ax_gcc_arch=ev67 ;;
4436 alphaev68) ax_gcc_arch="ev68 ev67" ;;
4437 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
4438 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
4439 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
4440
4441 powerpc*)
4442 cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | sed 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null`
4443 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
4444 case $cputype in
4445 *750*) ax_gcc_arch="750 G3" ;;
4446 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
4447 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
4448 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
4449 *970*) ax_gcc_arch="970 G5 power4";;
4450 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
4451 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
4452 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
4453 *) ax_gcc_arch=$cputype ;;
4454 esac
4455 ax_gcc_arch="$ax_gcc_arch powerpc"
4456 ;;
4457esac
4458fi # not cross-compiling
4459fi # guess arch
4460
4461if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
4462for arch in $ax_gcc_arch; do
4463 if test "x$acx_maxopt_portable" = xyes; then # if we require portable code
4464 flags="-mtune=$arch"
4465 # -mcpu=$arch and m$arch generate nonportable code on every arch except
4466 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
4467 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
4468 else
4469 flags="-march=$arch -mcpu=$arch -m$arch"
4470 fi
4471 for flag in $flags; do
4472 { echo "$as_me:$LINENO: checking whether C compiler accepts $flag" >&5
4473echo $ECHO_N "checking whether C compiler accepts $flag... $ECHO_C" >&6; }
4474ax_save_FLAGS=$CFLAGS
4475 CFLAGS="$flag"
4476 cat >conftest.$ac_ext <<_ACEOF
4477/* confdefs.h. */
4478_ACEOF
4479cat confdefs.h >>conftest.$ac_ext
4480cat >>conftest.$ac_ext <<_ACEOF
4481/* end confdefs.h. */
4482
4483int
4484main ()
4485{
4486
4487 ;
4488 return 0;
4489}
4490_ACEOF
4491rm -f conftest.$ac_objext
4492if { (ac_try="$ac_compile"
4493case "(($ac_try" in
4494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495 *) ac_try_echo=$ac_try;;
4496esac
4497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4498 (eval "$ac_compile") 2>conftest.er1
4499 ac_status=$?
4500 grep -v '^ *+' conftest.er1 >conftest.err
4501 rm -f conftest.er1
4502 cat conftest.err >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } && {
4505 test -z "$ac_c_werror_flag" ||
4506 test ! -s conftest.err
4507 } && test -s conftest.$ac_objext; then
4508 eval `echo "ax_cv_c_flags_$flag" | $as_tr_sh`=yes
4509else
4510 echo "$as_me: failed program was:" >&5
4511sed 's/^/| /' conftest.$ac_ext >&5
4512
4513 eval `echo "ax_cv_c_flags_$flag" | $as_tr_sh`=no
4514fi
4515
4516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4517 CFLAGS=$ax_save_FLAGS
4518eval ax_check_compiler_flags=$`echo "ax_cv_c_flags_$flag" | $as_tr_sh`
4519{ echo "$as_me:$LINENO: result: $ax_check_compiler_flags" >&5
4520echo "${ECHO_T}$ax_check_compiler_flags" >&6; }
4521if test "x$ax_check_compiler_flags" = xyes; then
4522 ax_cv_gcc_archflag=$flag; break
4523else
4524 :
4525fi
4526
4527 done
4528 test "x$ax_cv_gcc_archflag" = xunknown || break
4529done
4530fi
4531
4532fi # $GCC=yes
4533
4534fi
4535
4536{ echo "$as_me:$LINENO: checking for gcc architecture flag" >&5
4537echo $ECHO_N "checking for gcc architecture flag... $ECHO_C" >&6; }
4538{ echo "$as_me:$LINENO: result: $ax_cv_gcc_archflag" >&5
4539echo "${ECHO_T}$ax_cv_gcc_archflag" >&6; }
4540if test "x$ax_cv_gcc_archflag" = xunknown; then
4541 :
4542else
4543 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
4544fi
4545
4546 ;;
4547 esac
4548
4549 if test -z "$CFLAGS"; then
4550 echo ""
4551 echo "********************************************************"
4552 echo "* WARNING: Don't know the best CFLAGS for this system *"
4553 echo "* Use ./configure CFLAGS=... to specify your own flags *"
4554 echo "* (otherwise, a default of CFLAGS=-O3 will be used) *"
4555 echo "********************************************************"
4556 echo ""
4557 CFLAGS="-O3"
4558 fi
4559
4560 { echo "$as_me:$LINENO: checking whether C compiler accepts $CFLAGS" >&5
4561echo $ECHO_N "checking whether C compiler accepts $CFLAGS... $ECHO_C" >&6; }
4562ax_save_FLAGS=$CFLAGS
4563 CFLAGS="$CFLAGS"
4564 cat >conftest.$ac_ext <<_ACEOF
4565/* confdefs.h. */
4566_ACEOF
4567cat confdefs.h >>conftest.$ac_ext
4568cat >>conftest.$ac_ext <<_ACEOF
4569/* end confdefs.h. */
4570
4571int
4572main ()
4573{
4574
4575 ;
4576 return 0;
4577}
4578_ACEOF
4579rm -f conftest.$ac_objext
4580if { (ac_try="$ac_compile"
4581case "(($ac_try" in
4582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583 *) ac_try_echo=$ac_try;;
4584esac
4585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4586 (eval "$ac_compile") 2>conftest.er1
4587 ac_status=$?
4588 grep -v '^ *+' conftest.er1 >conftest.err
4589 rm -f conftest.er1
4590 cat conftest.err >&5
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); } && {
4593 test -z "$ac_c_werror_flag" ||
4594 test ! -s conftest.err
4595 } && test -s conftest.$ac_objext; then
4596 eval `echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`=yes
4597else
4598 echo "$as_me: failed program was:" >&5
4599sed 's/^/| /' conftest.$ac_ext >&5
4600
4601 eval `echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`=no
4602fi
4603
4604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4605 CFLAGS=$ax_save_FLAGS
4606eval ax_check_compiler_flags=$`echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`
4607{ echo "$as_me:$LINENO: result: $ax_check_compiler_flags" >&5
4608echo "${ECHO_T}$ax_check_compiler_flags" >&6; }
4609if test "x$ax_check_compiler_flags" = xyes; then
4610 :
4611else
4612
4613 echo ""
4614 echo "********************************************************"
4615 echo "* WARNING: The guessed CFLAGS don't seem to work with *"
4616 echo "* your compiler. *"
4617 echo "* Use ./configure CFLAGS=... to specify your own flags *"
4618 echo "********************************************************"
4619 echo ""
4620 CFLAGS=""
4621
4622fi
4623
4624
4625fi
4626
11b73fef 4627{ echo "$as_me:$LINENO: checking CFLAGS for strict prototypes" >&5
4628echo $ECHO_N "checking CFLAGS for strict prototypes... $ECHO_C" >&6; }
4629if test "${ac_cv_cflags_strict_prototypes+set}" = set; then
bf042c35 4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4631else
11b73fef 4632 ac_cv_cflags_strict_prototypes="no, unknown"
bf042c35 4633
4634 ac_ext=c
4635ac_cpp='$CPP $CPPFLAGS'
4636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4638ac_compiler_gnu=$ac_cv_c_compiler_gnu
4639
4640 ac_save_CFLAGS="$CFLAGS"
11b73fef 4641for ac_arg in "-pedantic % -fstrict-prototypes -Wstrict-prototypes" "-pedantic % -Wstrict-prototypes" "-pedantic % -Wmissing-prototypes" "-pedantic % -Werror-implicit-function-declaration" "-pedantic % -Wimplicit-function-declaration" #
bf042c35 4642do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
4643 cat >conftest.$ac_ext <<_ACEOF
4644/* confdefs.h. */
4645_ACEOF
4646cat confdefs.h >>conftest.$ac_ext
4647cat >>conftest.$ac_ext <<_ACEOF
4648/* end confdefs.h. */
4649
4650int
4651main ()
4652{
4653return 0;
4654 ;
4655 return 0;
4656}
4657_ACEOF
4658rm -f conftest.$ac_objext
4659if { (ac_try="$ac_compile"
4660case "(($ac_try" in
4661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4662 *) ac_try_echo=$ac_try;;
4663esac
4664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4665 (eval "$ac_compile") 2>conftest.er1
4666 ac_status=$?
4667 grep -v '^ *+' conftest.er1 >conftest.err
4668 rm -f conftest.er1
4669 cat conftest.err >&5
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); } && {
4672 test -z "$ac_c_werror_flag" ||
4673 test ! -s conftest.err
4674 } && test -s conftest.$ac_objext; then
11b73fef 4675 ac_cv_cflags_strict_prototypes=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
bf042c35 4676else
4677 echo "$as_me: failed program was:" >&5
4678sed 's/^/| /' conftest.$ac_ext >&5
4679
4680
4681fi
4682
4683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4684done
11b73fef 4685case ".$ac_cv_cflags_strict_prototypes" in
4686 .|.no|.no,*) ;;
4687 *) # sanity check with signal() from sys/signal.h
4688 cp config.log config.tmp
4689 cat >conftest.$ac_ext <<_ACEOF
4690/* confdefs.h. */
4691_ACEOF
4692cat confdefs.h >>conftest.$ac_ext
4693cat >>conftest.$ac_ext <<_ACEOF
4694/* end confdefs.h. */
4695#include <signal.h>
4696int
4697main ()
4698{
4699
4700 if (signal (SIGINT, SIG_IGN) == SIG_DFL) return 1;
4701 if (signal (SIGINT, SIG_IGN) != SIG_DFL) return 2;
4702 ;
4703 return 0;
4704}
4705_ACEOF
4706rm -f conftest.$ac_objext
4707if { (ac_try="$ac_compile"
4708case "(($ac_try" in
4709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710 *) ac_try_echo=$ac_try;;
4711esac
4712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4713 (eval "$ac_compile") 2>conftest.er1
4714 ac_status=$?
4715 grep -v '^ *+' conftest.er1 >conftest.err
4716 rm -f conftest.er1
4717 cat conftest.err >&5
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); } && {
4720 test -z "$ac_c_werror_flag" ||
4721 test ! -s conftest.err
4722 } && test -s conftest.$ac_objext; then
4723 if test `diff config.log config.tmp | grep -i warning | wc -l` != 0
4724then if test `diff config.log config.tmp | grep -i warning | wc -l` != 1
4725then ac_cv_cflags_strict_prototypes="no, suppressed, signal.h," ; fi ; fi
4726else
4727 echo "$as_me: failed program was:" >&5
4728sed 's/^/| /' conftest.$ac_ext >&5
4729
4730 ac_cv_cflags_strict_prototypes="no, suppressed, signal.h"
4731fi
4732
4733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734 rm config.tmp
4735 ;;
4736esac
bf042c35 4737 CFLAGS="$ac_save_CFLAGS"
4738 ac_ext=c
4739ac_cpp='$CPP $CPPFLAGS'
4740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4742ac_compiler_gnu=$ac_cv_c_compiler_gnu
4743
4744
4745fi
11b73fef 4746{ echo "$as_me:$LINENO: result: $ac_cv_cflags_strict_prototypes" >&5
4747echo "${ECHO_T}$ac_cv_cflags_strict_prototypes" >&6; }
4748case ".$ac_cv_cflags_strict_prototypes" in
bf042c35 4749 .ok|.ok,*) ;;
4750 .|.no|.no,*)
4751 ;;
4752 *)
11b73fef 4753 if echo " $CFLAGS " | grep " $ac_cv_cflags_strict_prototypes " 2>&1 >/dev/null
4754 then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_strict_prototypes") >&5
4755 (: CFLAGS does contain $ac_cv_cflags_strict_prototypes) 2>&5
bf042c35 4756 ac_status=$?
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }
11b73fef 4759 else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_strict_prototypes\"") >&5
4760 (: CFLAGS="$CFLAGS $ac_cv_cflags_strict_prototypes") 2>&5
bf042c35 4761 ac_status=$?
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); }
11b73fef 4764 CFLAGS="$CFLAGS $ac_cv_cflags_strict_prototypes"
bf042c35 4765 fi
4766 ;;
4767esac
4768
11b73fef 4769{ echo "$as_me:$LINENO: checking target system type" >&5
4770echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
4771if test "${ac_cv_target+set}" = set; then
bf042c35 4772 echo $ECHO_N "(cached) $ECHO_C" >&6
4773else
11b73fef 4774 if test "x$target_alias" = x; then
4775 ac_cv_target=$ac_cv_host
4776else
4777 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4778 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4779echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4780 { (exit 1); exit 1; }; }
4781fi
4782
4783fi
4784{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4785echo "${ECHO_T}$ac_cv_target" >&6; }
4786case $ac_cv_target in
4787*-*-*) ;;
4788*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4789echo "$as_me: error: invalid value of canonical target" >&2;}
4790 { (exit 1); exit 1; }; };;
4791esac
4792target=$ac_cv_target
4793ac_save_IFS=$IFS; IFS='-'
4794set x $ac_cv_target
4795shift
4796target_cpu=$1
4797target_vendor=$2
4798shift; shift
4799# Remember, the first character of IFS is used to create $*,
4800# except with old shells:
4801target_os=$*
4802IFS=$ac_save_IFS
4803case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4804
4805
4806# The aliases save the names the user supplied, while $host etc.
4807# will get canonicalized.
4808test -n "$target_alias" &&
4809 test "$program_prefix$program_suffix$program_transform_name" = \
4810 NONENONEs,x,x, &&
4811 program_prefix=${target_alias}-
4812{ echo "$as_me:$LINENO: checking CFLAGS for maximum ansi warnings" >&5
4813echo $ECHO_N "checking CFLAGS for maximum ansi warnings... $ECHO_C" >&6; }
4814if test "${ac_cv_cflags_warn_all_ansi+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4816else
4817 ac_cv_cflags_warn_all_ansi="no, unknown"
bf042c35 4818
4819 ac_ext=c
4820ac_cpp='$CPP $CPPFLAGS'
4821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4823ac_compiler_gnu=$ac_cv_c_compiler_gnu
4824
4825 ac_save_CFLAGS="$CFLAGS"
11b73fef 4826# IRIX C compiler:
4827# -use_readonly_const is the default for IRIX C,
4828# puts them into .rodata, but they are copied later.
4829# need to be "-G0 -rdatashared" for strictmode but
4830# I am not sure what effect that has really. - guidod
c1e4317a 4831for ac_arg in "-pedantic % -Wall -pedantic" "-xstrconst % -v -Xc" "-std1 % -verbose -w0 -warnprotos -std1" " % -qlanglvl=ansi -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" " % -ansiE -fullwarn" "+ESlit % +w1 -Aa" "-Xc % -pvctl,fullmsg -Xc" "-h conform % -h msglevel 2 -h conform" #
bf042c35 4832do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
4833 cat >conftest.$ac_ext <<_ACEOF
4834/* confdefs.h. */
4835_ACEOF
4836cat confdefs.h >>conftest.$ac_ext
4837cat >>conftest.$ac_ext <<_ACEOF
4838/* end confdefs.h. */
4839
4840int
4841main ()
4842{
4843return 0;
4844 ;
4845 return 0;
4846}
4847_ACEOF
4848rm -f conftest.$ac_objext
4849if { (ac_try="$ac_compile"
4850case "(($ac_try" in
4851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4852 *) ac_try_echo=$ac_try;;
4853esac
4854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4855 (eval "$ac_compile") 2>conftest.er1
4856 ac_status=$?
4857 grep -v '^ *+' conftest.er1 >conftest.err
4858 rm -f conftest.er1
4859 cat conftest.err >&5
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); } && {
4862 test -z "$ac_c_werror_flag" ||
4863 test ! -s conftest.err
4864 } && test -s conftest.$ac_objext; then
11b73fef 4865 ac_cv_cflags_warn_all_ansi=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
bf042c35 4866else
4867 echo "$as_me: failed program was:" >&5
4868sed 's/^/| /' conftest.$ac_ext >&5
4869
4870
4871fi
4872
4873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4874done
bf042c35 4875 CFLAGS="$ac_save_CFLAGS"
4876 ac_ext=c
4877ac_cpp='$CPP $CPPFLAGS'
4878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4880ac_compiler_gnu=$ac_cv_c_compiler_gnu
4881
4882
4883fi
11b73fef 4884{ echo "$as_me:$LINENO: result: $ac_cv_cflags_warn_all_ansi" >&5
4885echo "${ECHO_T}$ac_cv_cflags_warn_all_ansi" >&6; }
4886case ".$ac_cv_cflags_warn_all_ansi" in
bf042c35 4887 .ok|.ok,*) ;;
4888 .|.no|.no,*)
4889 ;;
4890 *)
11b73fef 4891 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all_ansi " 2>&1 >/dev/null
4892 then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_warn_all_ansi") >&5
4893 (: CFLAGS does contain $ac_cv_cflags_warn_all_ansi) 2>&5
bf042c35 4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }
11b73fef 4897 else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all_ansi\"") >&5
4898 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all_ansi") 2>&5
bf042c35 4899 ac_status=$?
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); }
11b73fef 4902 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all_ansi"
bf042c35 4903 fi
4904 ;;
4905esac
4906
4907{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
4908echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4909if test "${ac_cv_search_strerror+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4911else
4912 ac_func_search_save_LIBS=$LIBS
4913cat >conftest.$ac_ext <<_ACEOF
4914/* confdefs.h. */
4915_ACEOF
4916cat confdefs.h >>conftest.$ac_ext
4917cat >>conftest.$ac_ext <<_ACEOF
4918/* end confdefs.h. */
4919
4920/* Override any GCC internal prototype to avoid an error.
4921 Use char because int might match the return type of a GCC
4922 builtin and then its argument prototype would still apply. */
4923#ifdef __cplusplus
4924extern "C"
4925#endif
4926char strerror ();
4927int
4928main ()
4929{
4930return strerror ();
4931 ;
4932 return 0;
4933}
4934_ACEOF
4935for ac_lib in '' cposix; do
4936 if test -z "$ac_lib"; then
4937 ac_res="none required"
4938 else
4939 ac_res=-l$ac_lib
4940 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4941 fi
4942 rm -f conftest.$ac_objext conftest$ac_exeext
4943if { (ac_try="$ac_link"
4944case "(($ac_try" in
4945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4946 *) ac_try_echo=$ac_try;;
4947esac
4948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4949 (eval "$ac_link") 2>conftest.er1
4950 ac_status=$?
4951 grep -v '^ *+' conftest.er1 >conftest.err
4952 rm -f conftest.er1
4953 cat conftest.err >&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); } && {
4956 test -z "$ac_c_werror_flag" ||
4957 test ! -s conftest.err
4958 } && test -s conftest$ac_exeext &&
4959 $as_test_x conftest$ac_exeext; then
4960 ac_cv_search_strerror=$ac_res
4961else
4962 echo "$as_me: failed program was:" >&5
4963sed 's/^/| /' conftest.$ac_ext >&5
4964
4965
4966fi
4967
4968rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4969 conftest$ac_exeext
4970 if test "${ac_cv_search_strerror+set}" = set; then
4971 break
4972fi
4973done
4974if test "${ac_cv_search_strerror+set}" = set; then
4975 :
4976else
4977 ac_cv_search_strerror=no
4978fi
4979rm conftest.$ac_ext
4980LIBS=$ac_func_search_save_LIBS
4981fi
4982{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4983echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4984ac_res=$ac_cv_search_strerror
4985if test "$ac_res" != no; then
4986 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4987
4988fi
4989
4990{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4991echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4992set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4993if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4994 echo $ECHO_N "(cached) $ECHO_C" >&6
4995else
4996 cat >conftest.make <<\_ACEOF
4997SHELL = /bin/sh
4998all:
4999 @echo '@@@%%%=$(MAKE)=@@@%%%'
5000_ACEOF
5001# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5002case `${MAKE-make} -f conftest.make 2>/dev/null` in
5003 *@@@%%%=?*=@@@%%%*)
5004 eval ac_cv_prog_make_${ac_make}_set=yes;;
5005 *)
5006 eval ac_cv_prog_make_${ac_make}_set=no;;
5007esac
5008rm -f conftest.make
5009fi
5010if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5011 { echo "$as_me:$LINENO: result: yes" >&5
5012echo "${ECHO_T}yes" >&6; }
5013 SET_MAKE=
5014else
5015 { echo "$as_me:$LINENO: result: no" >&5
5016echo "${ECHO_T}no" >&6; }
5017 SET_MAKE="MAKE=${MAKE-make}"
5018fi
5019
5020# Extract the first word of "rm", so it can be a program name with args.
5021set dummy rm; ac_word=$2
5022{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5024if test "${ac_cv_path_RM+set}" = set; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5026else
5027 case $RM in
5028 [\\/]* | ?:[\\/]*)
5029 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5030 ;;
5031 *)
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033for as_dir in $PATH
5034do
5035 IFS=$as_save_IFS
5036 test -z "$as_dir" && as_dir=.
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5039 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5041 break 2
5042 fi
5043done
5044done
5045IFS=$as_save_IFS
5046
5047 ;;
5048esac
5049fi
5050RM=$ac_cv_path_RM
5051if test -n "$RM"; then
5052 { echo "$as_me:$LINENO: result: $RM" >&5
5053echo "${ECHO_T}$RM" >&6; }
5054else
5055 { echo "$as_me:$LINENO: result: no" >&5
5056echo "${ECHO_T}no" >&6; }
5057fi
5058
5059
5060# Extract the first word of "cp", so it can be a program name with args.
5061set dummy cp; ac_word=$2
5062{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5064if test "${ac_cv_path_CP+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5066else
5067 case $CP in
5068 [\\/]* | ?:[\\/]*)
5069 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5070 ;;
5071 *)
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073for as_dir in $PATH
5074do
5075 IFS=$as_save_IFS
5076 test -z "$as_dir" && as_dir=.
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5079 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5081 break 2
5082 fi
5083done
5084done
5085IFS=$as_save_IFS
5086
5087 ;;
5088esac
5089fi
5090CP=$ac_cv_path_CP
5091if test -n "$CP"; then
5092 { echo "$as_me:$LINENO: result: $CP" >&5
5093echo "${ECHO_T}$CP" >&6; }
5094else
5095 { echo "$as_me:$LINENO: result: no" >&5
5096echo "${ECHO_T}no" >&6; }
5097fi
5098
5099
5100# Extract the first word of "mv", so it can be a program name with args.
5101set dummy mv; ac_word=$2
5102{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5104if test "${ac_cv_path_MV+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5106else
5107 case $MV in
5108 [\\/]* | ?:[\\/]*)
5109 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5110 ;;
5111 *)
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113for as_dir in $PATH
5114do
5115 IFS=$as_save_IFS
5116 test -z "$as_dir" && as_dir=.
5117 for ac_exec_ext in '' $ac_executable_extensions; do
5118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5119 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5121 break 2
5122 fi
5123done
5124done
5125IFS=$as_save_IFS
5126
5127 ;;
5128esac
5129fi
5130MV=$ac_cv_path_MV
5131if test -n "$MV"; then
5132 { echo "$as_me:$LINENO: result: $MV" >&5
5133echo "${ECHO_T}$MV" >&6; }
5134else
5135 { echo "$as_me:$LINENO: result: no" >&5
5136echo "${ECHO_T}no" >&6; }
5137fi
5138
5139
5140# Extract the first word of "sed", so it can be a program name with args.
5141set dummy sed; ac_word=$2
5142{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5144if test "${ac_cv_path_SED+set}" = set; then
5145 echo $ECHO_N "(cached) $ECHO_C" >&6
5146else
5147 case $SED in
5148 [\\/]* | ?:[\\/]*)
5149 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5150 ;;
5151 *)
5152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153for as_dir in $PATH
5154do
5155 IFS=$as_save_IFS
5156 test -z "$as_dir" && as_dir=.
5157 for ac_exec_ext in '' $ac_executable_extensions; do
5158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5159 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 break 2
5162 fi
5163done
5164done
5165IFS=$as_save_IFS
5166
5167 ;;
5168esac
5169fi
5170SED=$ac_cv_path_SED
5171if test -n "$SED"; then
5172 { echo "$as_me:$LINENO: result: $SED" >&5
5173echo "${ECHO_T}$SED" >&6; }
5174else
5175 { echo "$as_me:$LINENO: result: no" >&5
5176echo "${ECHO_T}no" >&6; }
5177fi
5178
5179
5180# Find a good install program. We prefer a C program (faster),
5181# so one script is as good as another. But avoid the broken or
5182# incompatible versions:
5183# SysV /etc/install, /usr/sbin/install
5184# SunOS /usr/etc/install
5185# IRIX /sbin/install
5186# AIX /bin/install
5187# AmigaOS /C/install, which installs bootblocks on floppy discs
5188# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5189# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5190# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5191# OS/2's system install, which has a completely different semantic
5192# ./install, which can be erroneously created by make from ./install.sh.
5193{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5194echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5195if test -z "$INSTALL"; then
5196if test "${ac_cv_path_install+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5198else
5199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200for as_dir in $PATH
5201do
5202 IFS=$as_save_IFS
5203 test -z "$as_dir" && as_dir=.
5204 # Account for people who put trailing slashes in PATH elements.
5205case $as_dir/ in
5206 ./ | .// | /cC/* | \
5207 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5208 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5209 /usr/ucb/* ) ;;
5210 *)
5211 # OSF1 and SCO ODT 3.0 have their own names for install.
5212 # Don't use installbsd from OSF since it installs stuff as root
5213 # by default.
5214 for ac_prog in ginstall scoinst install; do
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5217 if test $ac_prog = install &&
5218 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5219 # AIX install. It has an incompatible calling convention.
5220 :
5221 elif test $ac_prog = install &&
5222 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5223 # program-specific install script used by HP pwplus--don't use.
5224 :
5225 else
5226 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5227 break 3
5228 fi
5229 fi
5230 done
5231 done
5232 ;;
5233esac
5234done
5235IFS=$as_save_IFS
5236
5237
5238fi
5239 if test "${ac_cv_path_install+set}" = set; then
5240 INSTALL=$ac_cv_path_install
5241 else
5242 # As a last resort, use the slow shell script. Don't cache a
5243 # value for INSTALL within a source directory, because that will
5244 # break other packages using the cache if that directory is
5245 # removed, or if the value is a relative name.
5246 INSTALL=$ac_install_sh
5247 fi
5248fi
5249{ echo "$as_me:$LINENO: result: $INSTALL" >&5
5250echo "${ECHO_T}$INSTALL" >&6; }
5251
5252# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5253# It thinks the first close brace ends the variable substitution.
5254test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5255
5256test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5257
5258test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5259
5260
5261{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5262echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
5263if test "${ac_cv_lib_socket_socket+set}" = set; then
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
5265else
5266 ac_check_lib_save_LIBS=$LIBS
5267LIBS="-lsocket $LIBS"
5268cat >conftest.$ac_ext <<_ACEOF
5269/* confdefs.h. */
5270_ACEOF
5271cat confdefs.h >>conftest.$ac_ext
5272cat >>conftest.$ac_ext <<_ACEOF
5273/* end confdefs.h. */
5274
5275/* Override any GCC internal prototype to avoid an error.
5276 Use char because int might match the return type of a GCC
5277 builtin and then its argument prototype would still apply. */
5278#ifdef __cplusplus
5279extern "C"
5280#endif
5281char socket ();
5282int
5283main ()
5284{
5285return socket ();
5286 ;
5287 return 0;
5288}
5289_ACEOF
5290rm -f conftest.$ac_objext conftest$ac_exeext
5291if { (ac_try="$ac_link"
5292case "(($ac_try" in
5293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5294 *) ac_try_echo=$ac_try;;
5295esac
5296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5297 (eval "$ac_link") 2>conftest.er1
5298 ac_status=$?
5299 grep -v '^ *+' conftest.er1 >conftest.err
5300 rm -f conftest.er1
5301 cat conftest.err >&5
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); } && {
5304 test -z "$ac_c_werror_flag" ||
5305 test ! -s conftest.err
5306 } && test -s conftest$ac_exeext &&
5307 $as_test_x conftest$ac_exeext; then
5308 ac_cv_lib_socket_socket=yes
5309else
5310 echo "$as_me: failed program was:" >&5
5311sed 's/^/| /' conftest.$ac_ext >&5
5312
5313 ac_cv_lib_socket_socket=no
5314fi
5315
5316rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5317 conftest$ac_exeext conftest.$ac_ext
5318LIBS=$ac_check_lib_save_LIBS
5319fi
5320{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5321echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
5322if test $ac_cv_lib_socket_socket = yes; then
5323 zlib
5324fi
5325
5326{ echo "$as_me:$LINENO: checking for crypt" >&5
5327echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
5328if test "${ac_cv_func_crypt+set}" = set; then
5329 echo $ECHO_N "(cached) $ECHO_C" >&6
5330else
5331 cat >conftest.$ac_ext <<_ACEOF
5332/* confdefs.h. */
5333_ACEOF
5334cat confdefs.h >>conftest.$ac_ext
5335cat >>conftest.$ac_ext <<_ACEOF
5336/* end confdefs.h. */
5337/* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
5338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5339#define crypt innocuous_crypt
5340
5341/* System header to define __stub macros and hopefully few prototypes,
5342 which can conflict with char crypt (); below.
5343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5344 <limits.h> exists even on freestanding compilers. */
5345
5346#ifdef __STDC__
5347# include <limits.h>
5348#else
5349# include <assert.h>
5350#endif
5351
5352#undef crypt
5353
5354/* Override any GCC internal prototype to avoid an error.
5355 Use char because int might match the return type of a GCC
5356 builtin and then its argument prototype would still apply. */
5357#ifdef __cplusplus
5358extern "C"
5359#endif
5360char crypt ();
5361/* The GNU C library defines this for functions which it implements
5362 to always fail with ENOSYS. Some functions are actually named
5363 something starting with __ and the normal name is an alias. */
5364#if defined __stub_crypt || defined __stub___crypt
5365choke me
5366#endif
5367
5368int
5369main ()
5370{
5371return crypt ();
5372 ;
5373 return 0;
5374}
5375_ACEOF
5376rm -f conftest.$ac_objext conftest$ac_exeext
5377if { (ac_try="$ac_link"
5378case "(($ac_try" in
5379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5380 *) ac_try_echo=$ac_try;;
5381esac
5382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5383 (eval "$ac_link") 2>conftest.er1
5384 ac_status=$?
5385 grep -v '^ *+' conftest.er1 >conftest.err
5386 rm -f conftest.er1
5387 cat conftest.err >&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); } && {
5390 test -z "$ac_c_werror_flag" ||
5391 test ! -s conftest.err
5392 } && test -s conftest$ac_exeext &&
5393 $as_test_x conftest$ac_exeext; then
5394 ac_cv_func_crypt=yes
5395else
5396 echo "$as_me: failed program was:" >&5
5397sed 's/^/| /' conftest.$ac_ext >&5
5398
5399 ac_cv_func_crypt=no
5400fi
5401
5402rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5403 conftest$ac_exeext conftest.$ac_ext
5404fi
5405{ echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
5406echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
5407if test $ac_cv_func_crypt = yes; then
5408 :
5409else
5410
5411{ echo "$as_me:$LINENO: checking for crypt in -ldescrypt" >&5
5412echo $ECHO_N "checking for crypt in -ldescrypt... $ECHO_C" >&6; }
5413if test "${ac_cv_lib_descrypt_crypt+set}" = set; then
5414 echo $ECHO_N "(cached) $ECHO_C" >&6
5415else
5416 ac_check_lib_save_LIBS=$LIBS
5417LIBS="-ldescrypt $LIBS"
5418cat >conftest.$ac_ext <<_ACEOF
5419/* confdefs.h. */
5420_ACEOF
5421cat confdefs.h >>conftest.$ac_ext
5422cat >>conftest.$ac_ext <<_ACEOF
5423/* end confdefs.h. */
5424
5425/* Override any GCC internal prototype to avoid an error.
5426 Use char because int might match the return type of a GCC
5427 builtin and then its argument prototype would still apply. */
5428#ifdef __cplusplus
5429extern "C"
5430#endif
5431char crypt ();
5432int
5433main ()
5434{
5435return crypt ();
5436 ;
5437 return 0;
5438}
5439_ACEOF
5440rm -f conftest.$ac_objext conftest$ac_exeext
5441if { (ac_try="$ac_link"
5442case "(($ac_try" in
5443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5444 *) ac_try_echo=$ac_try;;
5445esac
5446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5447 (eval "$ac_link") 2>conftest.er1
5448 ac_status=$?
5449 grep -v '^ *+' conftest.er1 >conftest.err
5450 rm -f conftest.er1
5451 cat conftest.err >&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); } && {
5454 test -z "$ac_c_werror_flag" ||
5455 test ! -s conftest.err
5456 } && test -s conftest$ac_exeext &&
5457 $as_test_x conftest$ac_exeext; then
5458 ac_cv_lib_descrypt_crypt=yes
5459else
5460 echo "$as_me: failed program was:" >&5
5461sed 's/^/| /' conftest.$ac_ext >&5
5462
5463 ac_cv_lib_descrypt_crypt=no
5464fi
5465
5466rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5467 conftest$ac_exeext conftest.$ac_ext
5468LIBS=$ac_check_lib_save_LIBS
5469fi
5470{ echo "$as_me:$LINENO: result: $ac_cv_lib_descrypt_crypt" >&5
5471echo "${ECHO_T}$ac_cv_lib_descrypt_crypt" >&6; }
5472if test $ac_cv_lib_descrypt_crypt = yes; then
5473 cat >>confdefs.h <<_ACEOF
5474#define HAVE_LIBDESCRYPT 1
5475_ACEOF
5476
5477 LIBS="-ldescrypt $LIBS"
5478
5479else
5480
5481{ echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
5482echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
5483if test "${ac_cv_lib_crypt_crypt+set}" = set; then
5484 echo $ECHO_N "(cached) $ECHO_C" >&6
5485else
5486 ac_check_lib_save_LIBS=$LIBS
5487LIBS="-lcrypt $LIBS"
5488cat >conftest.$ac_ext <<_ACEOF
5489/* confdefs.h. */
5490_ACEOF
5491cat confdefs.h >>conftest.$ac_ext
5492cat >>conftest.$ac_ext <<_ACEOF
5493/* end confdefs.h. */
5494
5495/* Override any GCC internal prototype to avoid an error.
5496 Use char because int might match the return type of a GCC
5497 builtin and then its argument prototype would still apply. */
5498#ifdef __cplusplus
5499extern "C"
5500#endif
5501char crypt ();
5502int
5503main ()
5504{
5505return crypt ();
5506 ;
5507 return 0;
5508}
5509_ACEOF
5510rm -f conftest.$ac_objext conftest$ac_exeext
5511if { (ac_try="$ac_link"
5512case "(($ac_try" in
5513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514 *) ac_try_echo=$ac_try;;
5515esac
5516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517 (eval "$ac_link") 2>conftest.er1
5518 ac_status=$?
5519 grep -v '^ *+' conftest.er1 >conftest.err
5520 rm -f conftest.er1
5521 cat conftest.err >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } && {
5524 test -z "$ac_c_werror_flag" ||
5525 test ! -s conftest.err
5526 } && test -s conftest$ac_exeext &&
5527 $as_test_x conftest$ac_exeext; then
5528 ac_cv_lib_crypt_crypt=yes
5529else
5530 echo "$as_me: failed program was:" >&5
5531sed 's/^/| /' conftest.$ac_ext >&5
5532
5533 ac_cv_lib_crypt_crypt=no
5534fi
5535
5536rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5537 conftest$ac_exeext conftest.$ac_ext
5538LIBS=$ac_check_lib_save_LIBS
5539fi
5540{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
5541echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
5542if test $ac_cv_lib_crypt_crypt = yes; then
5543 cat >>confdefs.h <<_ACEOF
5544#define HAVE_LIBCRYPT 1
5545_ACEOF
5546
5547 LIBS="-lcrypt $LIBS"
5548
5549fi
5550
5551fi
5552
5553fi
5554
5555
5556ac_ext=c
5557ac_cpp='$CPP $CPPFLAGS'
5558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5560ac_compiler_gnu=$ac_cv_c_compiler_gnu
5561{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5562echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5563# On Suns, sometimes $CPP names a directory.
5564if test -n "$CPP" && test -d "$CPP"; then
5565 CPP=
5566fi
5567if test -z "$CPP"; then
5568 if test "${ac_cv_prog_CPP+set}" = set; then
5569 echo $ECHO_N "(cached) $ECHO_C" >&6
5570else
5571 # Double quotes because CPP needs to be expanded
5572 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5573 do
5574 ac_preproc_ok=false
5575for ac_c_preproc_warn_flag in '' yes
5576do
5577 # Use a header file that comes with gcc, so configuring glibc
5578 # with a fresh cross-compiler works.
5579 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5580 # <limits.h> exists even on freestanding compilers.
5581 # On the NeXT, cc -E runs the code through the compiler's parser,
5582 # not just through cpp. "Syntax error" is here to catch this case.
5583 cat >conftest.$ac_ext <<_ACEOF
5584/* confdefs.h. */
5585_ACEOF
5586cat confdefs.h >>conftest.$ac_ext
5587cat >>conftest.$ac_ext <<_ACEOF
5588/* end confdefs.h. */
5589#ifdef __STDC__
5590# include <limits.h>
5591#else
5592# include <assert.h>
5593#endif
5594 Syntax error
5595_ACEOF
5596if { (ac_try="$ac_cpp conftest.$ac_ext"
5597case "(($ac_try" in
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5600esac
5601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5603 ac_status=$?
5604 grep -v '^ *+' conftest.er1 >conftest.err
5605 rm -f conftest.er1
5606 cat conftest.err >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } >/dev/null && {
5609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5610 test ! -s conftest.err
5611 }; then
5612 :
5613else
5614 echo "$as_me: failed program was:" >&5
5615sed 's/^/| /' conftest.$ac_ext >&5
5616
5617 # Broken: fails on valid input.
5618continue
5619fi
5620
5621rm -f conftest.err conftest.$ac_ext
5622
5623 # OK, works on sane cases. Now check whether nonexistent headers
5624 # can be detected and how.
5625 cat >conftest.$ac_ext <<_ACEOF
5626/* confdefs.h. */
5627_ACEOF
5628cat confdefs.h >>conftest.$ac_ext
5629cat >>conftest.$ac_ext <<_ACEOF
5630/* end confdefs.h. */
5631#include <ac_nonexistent.h>
5632_ACEOF
5633if { (ac_try="$ac_cpp conftest.$ac_ext"
5634case "(($ac_try" in
5635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5636 *) ac_try_echo=$ac_try;;
5637esac
5638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5640 ac_status=$?
5641 grep -v '^ *+' conftest.er1 >conftest.err
5642 rm -f conftest.er1
5643 cat conftest.err >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); } >/dev/null && {
5646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5647 test ! -s conftest.err
5648 }; then
5649 # Broken: success on invalid input.
5650continue
5651else
5652 echo "$as_me: failed program was:" >&5
5653sed 's/^/| /' conftest.$ac_ext >&5
5654
5655 # Passes both tests.
5656ac_preproc_ok=:
5657break
5658fi
5659
5660rm -f conftest.err conftest.$ac_ext
5661
5662done
5663# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5664rm -f conftest.err conftest.$ac_ext
5665if $ac_preproc_ok; then
5666 break
5667fi
5668
5669 done
5670 ac_cv_prog_CPP=$CPP
5671
5672fi
5673 CPP=$ac_cv_prog_CPP
5674else
5675 ac_cv_prog_CPP=$CPP
5676fi
5677{ echo "$as_me:$LINENO: result: $CPP" >&5
5678echo "${ECHO_T}$CPP" >&6; }
5679ac_preproc_ok=false
5680for ac_c_preproc_warn_flag in '' yes
5681do
5682 # Use a header file that comes with gcc, so configuring glibc
5683 # with a fresh cross-compiler works.
5684 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5685 # <limits.h> exists even on freestanding compilers.
5686 # On the NeXT, cc -E runs the code through the compiler's parser,
5687 # not just through cpp. "Syntax error" is here to catch this case.
5688 cat >conftest.$ac_ext <<_ACEOF
5689/* confdefs.h. */
5690_ACEOF
5691cat confdefs.h >>conftest.$ac_ext
5692cat >>conftest.$ac_ext <<_ACEOF
5693/* end confdefs.h. */
5694#ifdef __STDC__
5695# include <limits.h>
5696#else
5697# include <assert.h>
5698#endif
5699 Syntax error
5700_ACEOF
5701if { (ac_try="$ac_cpp conftest.$ac_ext"
5702case "(($ac_try" in
5703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5704 *) ac_try_echo=$ac_try;;
5705esac
5706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5708 ac_status=$?
5709 grep -v '^ *+' conftest.er1 >conftest.err
5710 rm -f conftest.er1
5711 cat conftest.err >&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); } >/dev/null && {
5714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5715 test ! -s conftest.err
5716 }; then
5717 :
5718else
5719 echo "$as_me: failed program was:" >&5
5720sed 's/^/| /' conftest.$ac_ext >&5
5721
5722 # Broken: fails on valid input.
5723continue
5724fi
5725
5726rm -f conftest.err conftest.$ac_ext
5727
5728 # OK, works on sane cases. Now check whether nonexistent headers
5729 # can be detected and how.
5730 cat >conftest.$ac_ext <<_ACEOF
5731/* confdefs.h. */
5732_ACEOF
5733cat confdefs.h >>conftest.$ac_ext
5734cat >>conftest.$ac_ext <<_ACEOF
5735/* end confdefs.h. */
5736#include <ac_nonexistent.h>
5737_ACEOF
5738if { (ac_try="$ac_cpp conftest.$ac_ext"
5739case "(($ac_try" in
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5742esac
5743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5745 ac_status=$?
5746 grep -v '^ *+' conftest.er1 >conftest.err
5747 rm -f conftest.er1
5748 cat conftest.err >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); } >/dev/null && {
5751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5752 test ! -s conftest.err
5753 }; then
5754 # Broken: success on invalid input.
5755continue
5756else
5757 echo "$as_me: failed program was:" >&5
5758sed 's/^/| /' conftest.$ac_ext >&5
5759
5760 # Passes both tests.
5761ac_preproc_ok=:
5762break
5763fi
5764
5765rm -f conftest.err conftest.$ac_ext
5766
5767done
5768# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5769rm -f conftest.err conftest.$ac_ext
5770if $ac_preproc_ok; then
5771 :
5772else
5773 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5774See \`config.log' for more details." >&5
5775echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5776See \`config.log' for more details." >&2;}
5777 { (exit 1); exit 1; }; }
5778fi
5779
5780ac_ext=c
5781ac_cpp='$CPP $CPPFLAGS'
5782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5784ac_compiler_gnu=$ac_cv_c_compiler_gnu
5785
5786
5787{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5788echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5789if test "${ac_cv_path_GREP+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5791else
5792 # Extract the first word of "grep ggrep" to use in msg output
5793if test -z "$GREP"; then
5794set dummy grep ggrep; ac_prog_name=$2
5795if test "${ac_cv_path_GREP+set}" = set; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
5797else
5798 ac_path_GREP_found=false
5799# Loop through the user's path and test for each of PROGNAME-LIST
5800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5802do
5803 IFS=$as_save_IFS
5804 test -z "$as_dir" && as_dir=.
5805 for ac_prog in grep ggrep; do
5806 for ac_exec_ext in '' $ac_executable_extensions; do
5807 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5808 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5809 # Check for GNU ac_path_GREP and select it if it is found.
5810 # Check for GNU $ac_path_GREP
5811case `"$ac_path_GREP" --version 2>&1` in
5812*GNU*)
5813 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5814*)
5815 ac_count=0
5816 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5817 while :
5818 do
5819 cat "conftest.in" "conftest.in" >"conftest.tmp"
5820 mv "conftest.tmp" "conftest.in"
5821 cp "conftest.in" "conftest.nl"
5822 echo 'GREP' >> "conftest.nl"
5823 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5824 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5825 ac_count=`expr $ac_count + 1`
5826 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5827 # Best one so far, save it but keep looking for a better one
5828 ac_cv_path_GREP="$ac_path_GREP"
5829 ac_path_GREP_max=$ac_count
5830 fi
5831 # 10*(2^10) chars as input seems more than enough
5832 test $ac_count -gt 10 && break
5833 done
5834 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5835esac
5836
5837
5838 $ac_path_GREP_found && break 3
5839 done
5840done
5841
5842done
5843IFS=$as_save_IFS
5844
5845
5846fi
5847
5848GREP="$ac_cv_path_GREP"
5849if test -z "$GREP"; then
5850 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5851echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5852 { (exit 1); exit 1; }; }
5853fi
5854
5855else
5856 ac_cv_path_GREP=$GREP
5857fi
5858
5859
5860fi
5861{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5862echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5863 GREP="$ac_cv_path_GREP"
5864
5865
5866{ echo "$as_me:$LINENO: checking for egrep" >&5
5867echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5868if test "${ac_cv_path_EGREP+set}" = set; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
5870else
5871 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5872 then ac_cv_path_EGREP="$GREP -E"
5873 else
5874 # Extract the first word of "egrep" to use in msg output
5875if test -z "$EGREP"; then
5876set dummy egrep; ac_prog_name=$2
5877if test "${ac_cv_path_EGREP+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5879else
5880 ac_path_EGREP_found=false
5881# Loop through the user's path and test for each of PROGNAME-LIST
5882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5884do
5885 IFS=$as_save_IFS
5886 test -z "$as_dir" && as_dir=.
5887 for ac_prog in egrep; do
5888 for ac_exec_ext in '' $ac_executable_extensions; do
5889 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5890 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5891 # Check for GNU ac_path_EGREP and select it if it is found.
5892 # Check for GNU $ac_path_EGREP
5893case `"$ac_path_EGREP" --version 2>&1` in
5894*GNU*)
5895 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5896*)
5897 ac_count=0
5898 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5899 while :
5900 do
5901 cat "conftest.in" "conftest.in" >"conftest.tmp"
5902 mv "conftest.tmp" "conftest.in"
5903 cp "conftest.in" "conftest.nl"
5904 echo 'EGREP' >> "conftest.nl"
5905 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5906 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5907 ac_count=`expr $ac_count + 1`
5908 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5909 # Best one so far, save it but keep looking for a better one
5910 ac_cv_path_EGREP="$ac_path_EGREP"
5911 ac_path_EGREP_max=$ac_count
5912 fi
5913 # 10*(2^10) chars as input seems more than enough
5914 test $ac_count -gt 10 && break
5915 done
5916 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5917esac
5918
5919
5920 $ac_path_EGREP_found && break 3
5921 done
5922done
5923
5924done
5925IFS=$as_save_IFS
5926
5927
5928fi
5929
5930EGREP="$ac_cv_path_EGREP"
5931if test -z "$EGREP"; then
5932 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5933echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5934 { (exit 1); exit 1; }; }
5935fi
5936
5937else
5938 ac_cv_path_EGREP=$EGREP
5939fi
5940
5941
5942 fi
5943fi
5944{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5945echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5946 EGREP="$ac_cv_path_EGREP"
5947
5948
5949{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5950echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5951if test "${ac_cv_header_stdc+set}" = set; then
5952 echo $ECHO_N "(cached) $ECHO_C" >&6
5953else
5954 cat >conftest.$ac_ext <<_ACEOF
5955/* confdefs.h. */
5956_ACEOF
5957cat confdefs.h >>conftest.$ac_ext
5958cat >>conftest.$ac_ext <<_ACEOF
5959/* end confdefs.h. */
5960#include <stdlib.h>
5961#include <stdarg.h>
5962#include <string.h>
5963#include <float.h>
5964
5965int
5966main ()
5967{
5968
5969 ;
5970 return 0;
5971}
5972_ACEOF
5973rm -f conftest.$ac_objext
5974if { (ac_try="$ac_compile"
5975case "(($ac_try" in
5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977 *) ac_try_echo=$ac_try;;
5978esac
5979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980 (eval "$ac_compile") 2>conftest.er1
5981 ac_status=$?
5982 grep -v '^ *+' conftest.er1 >conftest.err
5983 rm -f conftest.er1
5984 cat conftest.err >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } && {
5987 test -z "$ac_c_werror_flag" ||
5988 test ! -s conftest.err
5989 } && test -s conftest.$ac_objext; then
5990 ac_cv_header_stdc=yes
5991else
5992 echo "$as_me: failed program was:" >&5
5993sed 's/^/| /' conftest.$ac_ext >&5
5994
5995 ac_cv_header_stdc=no
5996fi
5997
5998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5999
6000if test $ac_cv_header_stdc = yes; then
6001 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6002 cat >conftest.$ac_ext <<_ACEOF
6003/* confdefs.h. */
6004_ACEOF
6005cat confdefs.h >>conftest.$ac_ext
6006cat >>conftest.$ac_ext <<_ACEOF
6007/* end confdefs.h. */
6008#include <string.h>
6009
6010_ACEOF
6011if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6012 $EGREP "memchr" >/dev/null 2>&1; then
6013 :
6014else
6015 ac_cv_header_stdc=no
6016fi
6017rm -f conftest*
6018
6019fi
6020
6021if test $ac_cv_header_stdc = yes; then
6022 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6023 cat >conftest.$ac_ext <<_ACEOF
6024/* confdefs.h. */
6025_ACEOF
6026cat confdefs.h >>conftest.$ac_ext
6027cat >>conftest.$ac_ext <<_ACEOF
6028/* end confdefs.h. */
6029#include <stdlib.h>
6030
6031_ACEOF
6032if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6033 $EGREP "free" >/dev/null 2>&1; then
6034 :
6035else
6036 ac_cv_header_stdc=no
6037fi
6038rm -f conftest*
6039
6040fi
6041
6042if test $ac_cv_header_stdc = yes; then
6043 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6044 if test "$cross_compiling" = yes; then
6045 :
6046else
6047 cat >conftest.$ac_ext <<_ACEOF
6048/* confdefs.h. */
6049_ACEOF
6050cat confdefs.h >>conftest.$ac_ext
6051cat >>conftest.$ac_ext <<_ACEOF
6052/* end confdefs.h. */
6053#include <ctype.h>
6054#include <stdlib.h>
6055#if ((' ' & 0x0FF) == 0x020)
6056# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6057# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6058#else
6059# define ISLOWER(c) \
6060 (('a' <= (c) && (c) <= 'i') \
6061 || ('j' <= (c) && (c) <= 'r') \
6062 || ('s' <= (c) && (c) <= 'z'))
6063# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6064#endif
6065
6066#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6067int
6068main ()
6069{
6070 int i;
6071 for (i = 0; i < 256; i++)
6072 if (XOR (islower (i), ISLOWER (i))
6073 || toupper (i) != TOUPPER (i))
6074 return 2;
6075 return 0;
6076}
6077_ACEOF
6078rm -f conftest$ac_exeext
6079if { (ac_try="$ac_link"
6080case "(($ac_try" in
6081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6082 *) ac_try_echo=$ac_try;;
6083esac
6084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6085 (eval "$ac_link") 2>&5
6086 ac_status=$?
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6089 { (case "(($ac_try" in
6090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6091 *) ac_try_echo=$ac_try;;
6092esac
6093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6094 (eval "$ac_try") 2>&5
6095 ac_status=$?
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; }; then
6098 :
6099else
6100 echo "$as_me: program exited with status $ac_status" >&5
6101echo "$as_me: failed program was:" >&5
6102sed 's/^/| /' conftest.$ac_ext >&5
6103
6104( exit $ac_status )
6105ac_cv_header_stdc=no
6106fi
6107rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6108fi
6109
6110
6111fi
6112fi
6113{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6114echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6115if test $ac_cv_header_stdc = yes; then
6116
6117cat >>confdefs.h <<\_ACEOF
6118#define STDC_HEADERS 1
6119_ACEOF
6120
6121fi
6122
6123# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6134 inttypes.h stdint.h unistd.h
6135do
6136as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6137{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6138echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6139if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6141else
6142 cat >conftest.$ac_ext <<_ACEOF
6143/* confdefs.h. */
6144_ACEOF
6145cat confdefs.h >>conftest.$ac_ext
6146cat >>conftest.$ac_ext <<_ACEOF
6147/* end confdefs.h. */
6148$ac_includes_default
6149
6150#include <$ac_header>
6151_ACEOF
6152rm -f conftest.$ac_objext
6153if { (ac_try="$ac_compile"
6154case "(($ac_try" in
6155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156 *) ac_try_echo=$ac_try;;
6157esac
6158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6159 (eval "$ac_compile") 2>conftest.er1
6160 ac_status=$?
6161 grep -v '^ *+' conftest.er1 >conftest.err
6162 rm -f conftest.er1
6163 cat conftest.err >&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } && {
6166 test -z "$ac_c_werror_flag" ||
6167 test ! -s conftest.err
6168 } && test -s conftest.$ac_objext; then
6169 eval "$as_ac_Header=yes"
6170else
6171 echo "$as_me: failed program was:" >&5
6172sed 's/^/| /' conftest.$ac_ext >&5
6173
6174 eval "$as_ac_Header=no"
6175fi
6176
6177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6178fi
6179ac_res=`eval echo '${'$as_ac_Header'}'`
6180 { echo "$as_me:$LINENO: result: $ac_res" >&5
6181echo "${ECHO_T}$ac_res" >&6; }
6182if test `eval echo '${'$as_ac_Header'}'` = yes; then
6183 cat >>confdefs.h <<_ACEOF
6184#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6185_ACEOF
6186
6187fi
6188
6189done
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199for ac_header in fcntl.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h
6200do
6201as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6202if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6203 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6204echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6205if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6207fi
6208ac_res=`eval echo '${'$as_ac_Header'}'`
6209 { echo "$as_me:$LINENO: result: $ac_res" >&5
6210echo "${ECHO_T}$ac_res" >&6; }
6211else
6212 # Is the header compilable?
6213{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6214echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6215cat >conftest.$ac_ext <<_ACEOF
6216/* confdefs.h. */
6217_ACEOF
6218cat confdefs.h >>conftest.$ac_ext
6219cat >>conftest.$ac_ext <<_ACEOF
6220/* end confdefs.h. */
6221$ac_includes_default
6222#include <$ac_header>
6223_ACEOF
6224rm -f conftest.$ac_objext
6225if { (ac_try="$ac_compile"
6226case "(($ac_try" in
6227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6228 *) ac_try_echo=$ac_try;;
6229esac
6230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6231 (eval "$ac_compile") 2>conftest.er1
6232 ac_status=$?
6233 grep -v '^ *+' conftest.er1 >conftest.err
6234 rm -f conftest.er1
6235 cat conftest.err >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } && {
6238 test -z "$ac_c_werror_flag" ||
6239 test ! -s conftest.err
6240 } && test -s conftest.$ac_objext; then
6241 ac_header_compiler=yes
6242else
6243 echo "$as_me: failed program was:" >&5
6244sed 's/^/| /' conftest.$ac_ext >&5
6245
6246 ac_header_compiler=no
6247fi
6248
6249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6250{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6251echo "${ECHO_T}$ac_header_compiler" >&6; }
6252
6253# Is the header present?
6254{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6255echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6256cat >conftest.$ac_ext <<_ACEOF
6257/* confdefs.h. */
6258_ACEOF
6259cat confdefs.h >>conftest.$ac_ext
6260cat >>conftest.$ac_ext <<_ACEOF
6261/* end confdefs.h. */
6262#include <$ac_header>
6263_ACEOF
6264if { (ac_try="$ac_cpp conftest.$ac_ext"
6265case "(($ac_try" in
6266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6267 *) ac_try_echo=$ac_try;;
6268esac
6269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6271 ac_status=$?
6272 grep -v '^ *+' conftest.er1 >conftest.err
6273 rm -f conftest.er1
6274 cat conftest.err >&5
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); } >/dev/null && {
6277 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6278 test ! -s conftest.err
6279 }; then
6280 ac_header_preproc=yes
6281else
6282 echo "$as_me: failed program was:" >&5
6283sed 's/^/| /' conftest.$ac_ext >&5
6284
6285 ac_header_preproc=no
6286fi
6287
6288rm -f conftest.err conftest.$ac_ext
6289{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6290echo "${ECHO_T}$ac_header_preproc" >&6; }
6291
6292# So? What about this header?
6293case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6294 yes:no: )
6295 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6296echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6298echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6299 ac_header_preproc=yes
6300 ;;
6301 no:yes:* )
6302 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6303echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6304 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6305echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6306 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6307echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6308 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6309echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6311echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6312 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6313echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6314
6315 ;;
6316esac
6317{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6319if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6320 echo $ECHO_N "(cached) $ECHO_C" >&6
6321else
6322 eval "$as_ac_Header=\$ac_header_preproc"
6323fi
6324ac_res=`eval echo '${'$as_ac_Header'}'`
6325 { echo "$as_me:$LINENO: result: $ac_res" >&5
6326echo "${ECHO_T}$ac_res" >&6; }
6327
6328fi
6329if test `eval echo '${'$as_ac_Header'}'` = yes; then
6330 cat >>confdefs.h <<_ACEOF
6331#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6332_ACEOF
6333
6334fi
6335
6336done
6337
6338{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6339echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
6340if test "${ac_cv_c_const+set}" = set; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
6342else
6343 cat >conftest.$ac_ext <<_ACEOF
6344/* confdefs.h. */
6345_ACEOF
6346cat confdefs.h >>conftest.$ac_ext
6347cat >>conftest.$ac_ext <<_ACEOF
6348/* end confdefs.h. */
6349
6350int
6351main ()
6352{
6353/* FIXME: Include the comments suggested by Paul. */
6354#ifndef __cplusplus
6355 /* Ultrix mips cc rejects this. */
6356 typedef int charset[2];
6357 const charset cs;
6358 /* SunOS 4.1.1 cc rejects this. */
6359 char const *const *pcpcc;
6360 char **ppc;
6361 /* NEC SVR4.0.2 mips cc rejects this. */
6362 struct point {int x, y;};
6363 static struct point const zero = {0,0};
6364 /* AIX XL C 1.02.0.0 rejects this.
6365 It does not let you subtract one const X* pointer from another in
6366 an arm of an if-expression whose if-part is not a constant
6367 expression */
6368 const char *g = "string";
6369 pcpcc = &g + (g ? g-g : 0);
6370 /* HPUX 7.0 cc rejects these. */
6371 ++pcpcc;
6372 ppc = (char**) pcpcc;
6373 pcpcc = (char const *const *) ppc;
6374 { /* SCO 3.2v4 cc rejects this. */
6375 char *t;
6376 char const *s = 0 ? (char *) 0 : (char const *) 0;
6377
6378 *t++ = 0;
6379 if (s) return 0;
6380 }
6381 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6382 int x[] = {25, 17};
6383 const int *foo = &x[0];
6384 ++foo;
6385 }
6386 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6387 typedef const int *iptr;
6388 iptr p = 0;
6389 ++p;
6390 }
6391 { /* AIX XL C 1.02.0.0 rejects this saying
6392 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6393 struct s { int j; const int *ap[3]; };
6394 struct s *b; b->j = 5;
6395 }
6396 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6397 const int foo = 10;
6398 if (!foo) return 0;
6399 }
6400 return !cs[0] && !zero.x;
6401#endif
6402
6403 ;
6404 return 0;
6405}
6406_ACEOF
6407rm -f conftest.$ac_objext
6408if { (ac_try="$ac_compile"
6409case "(($ac_try" in
6410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6411 *) ac_try_echo=$ac_try;;
6412esac
6413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6414 (eval "$ac_compile") 2>conftest.er1
6415 ac_status=$?
6416 grep -v '^ *+' conftest.er1 >conftest.err
6417 rm -f conftest.er1
6418 cat conftest.err >&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); } && {
6421 test -z "$ac_c_werror_flag" ||
6422 test ! -s conftest.err
6423 } && test -s conftest.$ac_objext; then
6424 ac_cv_c_const=yes
6425else
6426 echo "$as_me: failed program was:" >&5
6427sed 's/^/| /' conftest.$ac_ext >&5
6428
6429 ac_cv_c_const=no
6430fi
6431
6432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6433fi
6434{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6435echo "${ECHO_T}$ac_cv_c_const" >&6; }
6436if test $ac_cv_c_const = no; then
6437
6438cat >>confdefs.h <<\_ACEOF
6439#define const
6440_ACEOF
6441
6442fi
6443
6444{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6445echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6446if test "${ac_cv_header_time+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6448else
6449 cat >conftest.$ac_ext <<_ACEOF
6450/* confdefs.h. */
6451_ACEOF
6452cat confdefs.h >>conftest.$ac_ext
6453cat >>conftest.$ac_ext <<_ACEOF
6454/* end confdefs.h. */
6455#include <sys/types.h>
6456#include <sys/time.h>
6457#include <time.h>
6458
6459int
6460main ()
6461{
6462if ((struct tm *) 0)
6463return 0;
6464 ;
6465 return 0;
6466}
6467_ACEOF
6468rm -f conftest.$ac_objext
6469if { (ac_try="$ac_compile"
6470case "(($ac_try" in
6471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6472 *) ac_try_echo=$ac_try;;
6473esac
6474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6475 (eval "$ac_compile") 2>conftest.er1
6476 ac_status=$?
6477 grep -v '^ *+' conftest.er1 >conftest.err
6478 rm -f conftest.er1
6479 cat conftest.err >&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); } && {
6482 test -z "$ac_c_werror_flag" ||
6483 test ! -s conftest.err
6484 } && test -s conftest.$ac_objext; then
6485 ac_cv_header_time=yes
6486else
6487 echo "$as_me: failed program was:" >&5
6488sed 's/^/| /' conftest.$ac_ext >&5
6489
6490 ac_cv_header_time=no
6491fi
6492
6493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6494fi
6495{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6496echo "${ECHO_T}$ac_cv_header_time" >&6; }
6497if test $ac_cv_header_time = yes; then
6498
6499cat >>confdefs.h <<\_ACEOF
6500#define TIME_WITH_SYS_TIME 1
6501_ACEOF
6502
6503fi
6504
6505{ echo "$as_me:$LINENO: checking for error_at_line" >&5
6506echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
6507if test "${ac_cv_lib_error_at_line+set}" = set; then
6508 echo $ECHO_N "(cached) $ECHO_C" >&6
6509else
6510 cat >conftest.$ac_ext <<_ACEOF
6511/* confdefs.h. */
6512_ACEOF
6513cat confdefs.h >>conftest.$ac_ext
6514cat >>conftest.$ac_ext <<_ACEOF
6515/* end confdefs.h. */
6516#include <error.h>
6517int
6518main ()
6519{
6520error_at_line (0, 0, "", 0, "an error occurred");
6521 ;
6522 return 0;
6523}
6524_ACEOF
6525rm -f conftest.$ac_objext conftest$ac_exeext
6526if { (ac_try="$ac_link"
6527case "(($ac_try" in
6528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6529 *) ac_try_echo=$ac_try;;
6530esac
6531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6532 (eval "$ac_link") 2>conftest.er1
6533 ac_status=$?
6534 grep -v '^ *+' conftest.er1 >conftest.err
6535 rm -f conftest.er1
6536 cat conftest.err >&5
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); } && {
6539 test -z "$ac_c_werror_flag" ||
6540 test ! -s conftest.err
6541 } && test -s conftest$ac_exeext &&
6542 $as_test_x conftest$ac_exeext; then
6543 ac_cv_lib_error_at_line=yes
6544else
6545 echo "$as_me: failed program was:" >&5
6546sed 's/^/| /' conftest.$ac_ext >&5
6547
6548 ac_cv_lib_error_at_line=no
6549fi
6550
6551rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6552 conftest$ac_exeext conftest.$ac_ext
6553fi
6554{ echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
6555echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
6556if test $ac_cv_lib_error_at_line = no; then
6557 case " $LIBOBJS " in
6558 *" error.$ac_objext "* ) ;;
6559 *) LIBOBJS="$LIBOBJS error.$ac_objext"
6560 ;;
6561esac
6562
6563fi
6564
6565if test $ac_cv_c_compiler_gnu = yes; then
6566 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
6567echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
6568if test "${ac_cv_prog_gcc_traditional+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6570else
6571 ac_pattern="Autoconf.*'x'"
6572 cat >conftest.$ac_ext <<_ACEOF
6573/* confdefs.h. */
6574_ACEOF
6575cat confdefs.h >>conftest.$ac_ext
6576cat >>conftest.$ac_ext <<_ACEOF
6577/* end confdefs.h. */
6578#include <sgtty.h>
6579Autoconf TIOCGETP
6580_ACEOF
6581if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6582 $EGREP "$ac_pattern" >/dev/null 2>&1; then
6583 ac_cv_prog_gcc_traditional=yes
6584else
6585 ac_cv_prog_gcc_traditional=no
6586fi
6587rm -f conftest*
6588
6589
6590 if test $ac_cv_prog_gcc_traditional = no; then
6591 cat >conftest.$ac_ext <<_ACEOF
6592/* confdefs.h. */
6593_ACEOF
6594cat confdefs.h >>conftest.$ac_ext
6595cat >>conftest.$ac_ext <<_ACEOF
6596/* end confdefs.h. */
6597#include <termio.h>
6598Autoconf TCGETA
6599_ACEOF
6600if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6601 $EGREP "$ac_pattern" >/dev/null 2>&1; then
6602 ac_cv_prog_gcc_traditional=yes
6603fi
6604rm -f conftest*
6605
6606 fi
6607fi
6608{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
6609echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
6610 if test $ac_cv_prog_gcc_traditional = yes; then
6611 CC="$CC -traditional"
6612 fi
6613fi
6614
6615
6616for ac_header in stdlib.h
6617do
6618as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6619if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6621echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6622if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6623 echo $ECHO_N "(cached) $ECHO_C" >&6
6624fi
6625ac_res=`eval echo '${'$as_ac_Header'}'`
6626 { echo "$as_me:$LINENO: result: $ac_res" >&5
6627echo "${ECHO_T}$ac_res" >&6; }
6628else
6629 # Is the header compilable?
6630{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6631echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6632cat >conftest.$ac_ext <<_ACEOF
6633/* confdefs.h. */
6634_ACEOF
6635cat confdefs.h >>conftest.$ac_ext
6636cat >>conftest.$ac_ext <<_ACEOF
6637/* end confdefs.h. */
6638$ac_includes_default
6639#include <$ac_header>
6640_ACEOF
6641rm -f conftest.$ac_objext
6642if { (ac_try="$ac_compile"
6643case "(($ac_try" in
6644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6645 *) ac_try_echo=$ac_try;;
6646esac
6647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6648 (eval "$ac_compile") 2>conftest.er1
6649 ac_status=$?
6650 grep -v '^ *+' conftest.er1 >conftest.err
6651 rm -f conftest.er1
6652 cat conftest.err >&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); } && {
6655 test -z "$ac_c_werror_flag" ||
6656 test ! -s conftest.err
6657 } && test -s conftest.$ac_objext; then
6658 ac_header_compiler=yes
6659else
6660 echo "$as_me: failed program was:" >&5
6661sed 's/^/| /' conftest.$ac_ext >&5
6662
6663 ac_header_compiler=no
6664fi
6665
6666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6667{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6668echo "${ECHO_T}$ac_header_compiler" >&6; }
6669
6670# Is the header present?
6671{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6672echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6673cat >conftest.$ac_ext <<_ACEOF
6674/* confdefs.h. */
6675_ACEOF
6676cat confdefs.h >>conftest.$ac_ext
6677cat >>conftest.$ac_ext <<_ACEOF
6678/* end confdefs.h. */
6679#include <$ac_header>
6680_ACEOF
6681if { (ac_try="$ac_cpp conftest.$ac_ext"
6682case "(($ac_try" in
6683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6684 *) ac_try_echo=$ac_try;;
6685esac
6686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6688 ac_status=$?
6689 grep -v '^ *+' conftest.er1 >conftest.err
6690 rm -f conftest.er1
6691 cat conftest.err >&5
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); } >/dev/null && {
6694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6695 test ! -s conftest.err
6696 }; then
6697 ac_header_preproc=yes
6698else
6699 echo "$as_me: failed program was:" >&5
6700sed 's/^/| /' conftest.$ac_ext >&5
6701
6702 ac_header_preproc=no
6703fi
6704
6705rm -f conftest.err conftest.$ac_ext
6706{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6707echo "${ECHO_T}$ac_header_preproc" >&6; }
6708
6709# So? What about this header?
6710case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6711 yes:no: )
6712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6713echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6715echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6716 ac_header_preproc=yes
6717 ;;
6718 no:yes:* )
6719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6720echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6722echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6723 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6724echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6725 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6726echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6728echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6729 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6730echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6731
6732 ;;
6733esac
6734{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6736if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6738else
6739 eval "$as_ac_Header=\$ac_header_preproc"
6740fi
6741ac_res=`eval echo '${'$as_ac_Header'}'`
6742 { echo "$as_me:$LINENO: result: $ac_res" >&5
6743echo "${ECHO_T}$ac_res" >&6; }
6744
6745fi
6746if test `eval echo '${'$as_ac_Header'}'` = yes; then
6747 cat >>confdefs.h <<_ACEOF
6748#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6749_ACEOF
6750
6751fi
6752
6753done
6754
6755{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
6756echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
6757if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
6758 echo $ECHO_N "(cached) $ECHO_C" >&6
6759else
6760 if test "$cross_compiling" = yes; then
6761 ac_cv_func_malloc_0_nonnull=no
6762else
6763 cat >conftest.$ac_ext <<_ACEOF
6764/* confdefs.h. */
6765_ACEOF
6766cat confdefs.h >>conftest.$ac_ext
6767cat >>conftest.$ac_ext <<_ACEOF
6768/* end confdefs.h. */
6769#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6770# include <stdlib.h>
6771#else
6772char *malloc ();
6773#endif
6774
6775int
6776main ()
6777{
6778return ! malloc (0);
6779 ;
6780 return 0;
6781}
6782_ACEOF
6783rm -f conftest$ac_exeext
6784if { (ac_try="$ac_link"
6785case "(($ac_try" in
6786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6787 *) ac_try_echo=$ac_try;;
6788esac
6789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6790 (eval "$ac_link") 2>&5
6791 ac_status=$?
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6794 { (case "(($ac_try" in
6795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6796 *) ac_try_echo=$ac_try;;
6797esac
6798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6799 (eval "$ac_try") 2>&5
6800 ac_status=$?
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); }; }; then
6803 ac_cv_func_malloc_0_nonnull=yes
6804else
6805 echo "$as_me: program exited with status $ac_status" >&5
6806echo "$as_me: failed program was:" >&5
6807sed 's/^/| /' conftest.$ac_ext >&5
6808
6809( exit $ac_status )
6810ac_cv_func_malloc_0_nonnull=no
6811fi
6812rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6813fi
6814
6815
6816fi
6817{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
6818echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
6819if test $ac_cv_func_malloc_0_nonnull = yes; then
6820
6821cat >>confdefs.h <<\_ACEOF
6822#define HAVE_MALLOC 1
6823_ACEOF
6824
6825else
6826 cat >>confdefs.h <<\_ACEOF
6827#define HAVE_MALLOC 0
6828_ACEOF
6829
6830 case " $LIBOBJS " in
6831 *" malloc.$ac_objext "* ) ;;
6832 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6833 ;;
6834esac
6835
6836
6837cat >>confdefs.h <<\_ACEOF
6838#define malloc rpl_malloc
6839_ACEOF
6840
6841fi
6842
6843
6844
6845
6846
6847for ac_header in sys/select.h sys/socket.h
6848do
6849as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6850if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6851 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6852echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6853if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
6855fi
6856ac_res=`eval echo '${'$as_ac_Header'}'`
6857 { echo "$as_me:$LINENO: result: $ac_res" >&5
6858echo "${ECHO_T}$ac_res" >&6; }
6859else
6860 # Is the header compilable?
6861{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6862echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6863cat >conftest.$ac_ext <<_ACEOF
6864/* confdefs.h. */
6865_ACEOF
6866cat confdefs.h >>conftest.$ac_ext
6867cat >>conftest.$ac_ext <<_ACEOF
6868/* end confdefs.h. */
6869$ac_includes_default
6870#include <$ac_header>
6871_ACEOF
6872rm -f conftest.$ac_objext
6873if { (ac_try="$ac_compile"
6874case "(($ac_try" in
6875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6876 *) ac_try_echo=$ac_try;;
6877esac
6878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6879 (eval "$ac_compile") 2>conftest.er1
6880 ac_status=$?
6881 grep -v '^ *+' conftest.er1 >conftest.err
6882 rm -f conftest.er1
6883 cat conftest.err >&5
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); } && {
6886 test -z "$ac_c_werror_flag" ||
6887 test ! -s conftest.err
6888 } && test -s conftest.$ac_objext; then
6889 ac_header_compiler=yes
6890else
6891 echo "$as_me: failed program was:" >&5
6892sed 's/^/| /' conftest.$ac_ext >&5
6893
6894 ac_header_compiler=no
6895fi
6896
6897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6898{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6899echo "${ECHO_T}$ac_header_compiler" >&6; }
6900
6901# Is the header present?
6902{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6903echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6904cat >conftest.$ac_ext <<_ACEOF
6905/* confdefs.h. */
6906_ACEOF
6907cat confdefs.h >>conftest.$ac_ext
6908cat >>conftest.$ac_ext <<_ACEOF
6909/* end confdefs.h. */
6910#include <$ac_header>
6911_ACEOF
6912if { (ac_try="$ac_cpp conftest.$ac_ext"
6913case "(($ac_try" in
6914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6915 *) ac_try_echo=$ac_try;;
6916esac
6917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6919 ac_status=$?
6920 grep -v '^ *+' conftest.er1 >conftest.err
6921 rm -f conftest.er1
6922 cat conftest.err >&5
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); } >/dev/null && {
6925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6926 test ! -s conftest.err
6927 }; then
6928 ac_header_preproc=yes
6929else
6930 echo "$as_me: failed program was:" >&5
6931sed 's/^/| /' conftest.$ac_ext >&5
6932
6933 ac_header_preproc=no
6934fi
6935
6936rm -f conftest.err conftest.$ac_ext
6937{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6938echo "${ECHO_T}$ac_header_preproc" >&6; }
6939
6940# So? What about this header?
6941case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6942 yes:no: )
6943 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6944echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6946echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6947 ac_header_preproc=yes
6948 ;;
6949 no:yes:* )
6950 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6951echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6952 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6953echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6954 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6955echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6956 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6957echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6959echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6960 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6961echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6962
6963 ;;
6964esac
6965{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6967if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6968 echo $ECHO_N "(cached) $ECHO_C" >&6
6969else
6970 eval "$as_ac_Header=\$ac_header_preproc"
6971fi
6972ac_res=`eval echo '${'$as_ac_Header'}'`
6973 { echo "$as_me:$LINENO: result: $ac_res" >&5
6974echo "${ECHO_T}$ac_res" >&6; }
6975
6976fi
6977if test `eval echo '${'$as_ac_Header'}'` = yes; then
6978 cat >>confdefs.h <<_ACEOF
6979#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6980_ACEOF
6981
6982fi
6983
6984done
6985
6986{ echo "$as_me:$LINENO: checking types of arguments for select" >&5
6987echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
6988if test "${ac_cv_func_select_args+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6990else
6991 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
6992 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
6993 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
6994 cat >conftest.$ac_ext <<_ACEOF
6995/* confdefs.h. */
6996_ACEOF
6997cat confdefs.h >>conftest.$ac_ext
6998cat >>conftest.$ac_ext <<_ACEOF
6999/* end confdefs.h. */
7000$ac_includes_default
7001#ifdef HAVE_SYS_SELECT_H
7002# include <sys/select.h>
7003#endif
7004#ifdef HAVE_SYS_SOCKET_H
7005# include <sys/socket.h>
7006#endif
7007
7008int
7009main ()
7010{
7011extern int select ($ac_arg1,
7012 $ac_arg234, $ac_arg234, $ac_arg234,
7013 $ac_arg5);
7014 ;
7015 return 0;
7016}
7017_ACEOF
7018rm -f conftest.$ac_objext
7019if { (ac_try="$ac_compile"
7020case "(($ac_try" in
7021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7022 *) ac_try_echo=$ac_try;;
7023esac
7024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7025 (eval "$ac_compile") 2>conftest.er1
7026 ac_status=$?
7027 grep -v '^ *+' conftest.er1 >conftest.err
7028 rm -f conftest.er1
7029 cat conftest.err >&5
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); } && {
7032 test -z "$ac_c_werror_flag" ||
7033 test ! -s conftest.err
7034 } && test -s conftest.$ac_objext; then
7035 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
7036else
7037 echo "$as_me: failed program was:" >&5
7038sed 's/^/| /' conftest.$ac_ext >&5
7039
7040
7041fi
7042
7043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7044 done
7045 done
7046done
7047# Provide a safe default value.
7048: ${ac_cv_func_select_args='int,int *,struct timeval *'}
7049
7050fi
7051{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
7052echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
7053ac_save_IFS=$IFS; IFS=','
7054set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
7055IFS=$ac_save_IFS
7056shift
7057
7058cat >>confdefs.h <<_ACEOF
7059#define SELECT_TYPE_ARG1 $1
7060_ACEOF
7061
7062
7063cat >>confdefs.h <<_ACEOF
7064#define SELECT_TYPE_ARG234 ($2)
7065_ACEOF
7066
7067
7068cat >>confdefs.h <<_ACEOF
7069#define SELECT_TYPE_ARG5 ($3)
7070_ACEOF
7071
7072rm -f conftest*
7073
7074
7075
7076
7077for ac_func in memset socket strerror
7078do
7079as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7080{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7081echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7082if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7084else
7085 cat >conftest.$ac_ext <<_ACEOF
7086/* confdefs.h. */
7087_ACEOF
7088cat confdefs.h >>conftest.$ac_ext
7089cat >>conftest.$ac_ext <<_ACEOF
7090/* end confdefs.h. */
7091/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7093#define $ac_func innocuous_$ac_func
7094
7095/* System header to define __stub macros and hopefully few prototypes,
7096 which can conflict with char $ac_func (); below.
7097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7098 <limits.h> exists even on freestanding compilers. */
7099
7100#ifdef __STDC__
7101# include <limits.h>
7102#else
7103# include <assert.h>
7104#endif
7105
7106#undef $ac_func
7107
7108/* Override any GCC internal prototype to avoid an error.
7109 Use char because int might match the return type of a GCC
7110 builtin and then its argument prototype would still apply. */
7111#ifdef __cplusplus
7112extern "C"
7113#endif
7114char $ac_func ();
7115/* The GNU C library defines this for functions which it implements
7116 to always fail with ENOSYS. Some functions are actually named
7117 something starting with __ and the normal name is an alias. */
7118#if defined __stub_$ac_func || defined __stub___$ac_func
7119choke me
7120#endif
7121
7122int
7123main ()
7124{
7125return $ac_func ();
7126 ;
7127 return 0;
7128}
7129_ACEOF
7130rm -f conftest.$ac_objext conftest$ac_exeext
7131if { (ac_try="$ac_link"
7132case "(($ac_try" in
7133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7134 *) ac_try_echo=$ac_try;;
7135esac
7136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7137 (eval "$ac_link") 2>conftest.er1
7138 ac_status=$?
7139 grep -v '^ *+' conftest.er1 >conftest.err
7140 rm -f conftest.er1
7141 cat conftest.err >&5
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); } && {
7144 test -z "$ac_c_werror_flag" ||
7145 test ! -s conftest.err
7146 } && test -s conftest$ac_exeext &&
7147 $as_test_x conftest$ac_exeext; then
7148 eval "$as_ac_var=yes"
7149else
7150 echo "$as_me: failed program was:" >&5
7151sed 's/^/| /' conftest.$ac_ext >&5
7152
7153 eval "$as_ac_var=no"
7154fi
7155
7156rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7157 conftest$ac_exeext conftest.$ac_ext
7158fi
7159ac_res=`eval echo '${'$as_ac_var'}'`
7160 { echo "$as_me:$LINENO: result: $ac_res" >&5
7161echo "${ECHO_T}$ac_res" >&6; }
7162if test `eval echo '${'$as_ac_var'}'` = yes; then
7163 cat >>confdefs.h <<_ACEOF
7164#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7165_ACEOF
7166
7167fi
7168done
7169
7170if test $ac_cv_c_compiler_gnu = yes; then
7171 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
7172echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
7173if test "${ac_cv_prog_gcc_traditional+set}" = set; then
7174 echo $ECHO_N "(cached) $ECHO_C" >&6
7175else
7176 ac_pattern="Autoconf.*'x'"
7177 cat >conftest.$ac_ext <<_ACEOF
7178/* confdefs.h. */
7179_ACEOF
7180cat confdefs.h >>conftest.$ac_ext
7181cat >>conftest.$ac_ext <<_ACEOF
7182/* end confdefs.h. */
7183#include <sgtty.h>
7184Autoconf TIOCGETP
7185_ACEOF
7186if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7187 $EGREP "$ac_pattern" >/dev/null 2>&1; then
7188 ac_cv_prog_gcc_traditional=yes
7189else
7190 ac_cv_prog_gcc_traditional=no
7191fi
7192rm -f conftest*
7193
7194
7195 if test $ac_cv_prog_gcc_traditional = no; then
7196 cat >conftest.$ac_ext <<_ACEOF
7197/* confdefs.h. */
7198_ACEOF
7199cat confdefs.h >>conftest.$ac_ext
7200cat >>conftest.$ac_ext <<_ACEOF
7201/* end confdefs.h. */
7202#include <termio.h>
7203Autoconf TCGETA
7204_ACEOF
7205if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7206 $EGREP "$ac_pattern" >/dev/null 2>&1; then
7207 ac_cv_prog_gcc_traditional=yes
7208fi
7209rm -f conftest*
7210
7211 fi
7212fi
7213{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
7214echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
7215 if test $ac_cv_prog_gcc_traditional = yes; then
7216 CC="$CC -traditional"
7217 fi
7218fi
7219
7220
7221
7222case "$target" in
7223 *-solaris2*)
7224 solaris2="yes"
7225 cat >>confdefs.h <<_ACEOF
7226#define WRITEV_IOV 16
7227_ACEOF
7228
7229 ;;
7230 *-freebsd*)
7231 freebsd="yes"
7232 cat >>confdefs.h <<_ACEOF
7233#define WRITEV_IOV 32
7234_ACEOF
7235
7236 ;;
7237 *-netbsd*)
7238 cat >>confdefs.h <<_ACEOF
7239#define WRITEV_IOV 32
7240_ACEOF
7241
7242 ;;
7243 *-openbsd*)
7244 cat >>confdefs.h <<_ACEOF
7245#define WRITEV_IOV 32
7246_ACEOF
7247
7248 ;;
7249 *-linux*)
7250 linux="yes"
7251 cat >>confdefs.h <<_ACEOF
7252#define WRITEV_IOV 32
7253_ACEOF
7254
7255 ;;
7256 *-darwin*)
7257 cat >>confdefs.h <<_ACEOF
7258#define WRITEV_IOV 32
7259_ACEOF
7260
7261 ;;
7262esac
7263
7264
7265{ echo "$as_me:$LINENO: checking for sys_errlist declaration" >&5
7266echo $ECHO_N "checking for sys_errlist declaration... $ECHO_C" >&6; }
7267if test "$cross_compiling" = yes; then
7268 { echo "$as_me:$LINENO: result: cross compiling" >&5
7269echo "${ECHO_T}cross compiling" >&6; }
7270else
7271 cat >conftest.$ac_ext <<_ACEOF
7272/* confdefs.h. */
7273_ACEOF
7274cat confdefs.h >>conftest.$ac_ext
7275cat >>conftest.$ac_ext <<_ACEOF
7276/* end confdefs.h. */
7277
7278#include <sys/types.h>
7279#include <stdio.h>
7280#include <errno.h>
7281main()
7282{
7283 char *s = sys_errlist[0];
7284 exit(0);
7285}
7286
7287_ACEOF
7288rm -f conftest$ac_exeext
7289if { (ac_try="$ac_link"
7290case "(($ac_try" in
7291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7292 *) ac_try_echo=$ac_try;;
7293esac
7294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7295 (eval "$ac_link") 2>&5
7296 ac_status=$?
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7299 { (case "(($ac_try" in
7300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7301 *) ac_try_echo=$ac_try;;
7302esac
7303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7304 (eval "$ac_try") 2>&5
7305 ac_status=$?
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); }; }; then
7308 { echo "$as_me:$LINENO: result: yes" >&5
7309echo "${ECHO_T}yes" >&6; }
7310 cat >>confdefs.h <<\_ACEOF
7311#define SYS_ERRLIST_DECLARED 1
7312_ACEOF
7313
7314else
7315 echo "$as_me: program exited with status $ac_status" >&5
7316echo "$as_me: failed program was:" >&5
7317sed 's/^/| /' conftest.$ac_ext >&5
7318
7319( exit $ac_status )
7320{ echo "$as_me:$LINENO: result: no" >&5
7321echo "${ECHO_T}no" >&6; }
7322fi
7323rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7324fi
7325
7326
7327
7328
7329save_LIBS="$LIBS"
7330
7331{ echo "$as_me:$LINENO: checking for OpenSSL" >&5
7332echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
7333
7334if test "X$cf_enable_openssl" != "Xno" ; then
7335 cf_openssl_basedir=""
7336 if test "X$cf_enable_openssl" != "Xauto" &&
7337 test "X$cf_enable_openssl" != "Xyes"; then
7338 cf_openssl_basedir="${cf_enable_openssl}"
7339 else
7340 for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
7341 /opt /opt/openssl /usr/local/openssl ; do
7342 if test -f "${dirs}/include/openssl/opensslv.h" ; then
7343 cf_openssl_basedir="${dirs}"
7344 break
7345 fi
7346 done
7347 unset dirs
7348 fi
7349 if test "X$cf_openssl_basedir" != "X" ; then
7350 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
7351 SSL_INCLUDES="-I${cf_openssl_basedir}/include"
7352 SSL_LIBS="-L${cf_openssl_basedir}/lib"
7353 else
7354 cf_openssl_basedir=""
7355 fi
7356 else
7357 if test -f "/usr/include/openssl/opensslv.h" ; then
7358 cf_openssl_basedir="/usr"
7359 fi
7360 fi
7361 if test "X$cf_openssl_basedir" != "X" ; then
c1e4317a 7362 LIBS="$save_LIBS $SSL_LIBS -lssl"
bf042c35 7363 { echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5
7364echo "${ECHO_T}$cf_openssl_basedir" >&6; }
7365 cf_enable_openssl="yes"
7366 encryption="enabled"
7367 cat >>confdefs.h <<\_ACEOF
c1e4317a 7368#define USE_SSL 1
bf042c35 7369_ACEOF
7370
bf042c35 7371 else
7372 { echo "$as_me:$LINENO: result: not found. Please check your path." >&5
7373echo "${ECHO_T}not found. Please check your path." >&6; }
7374 cf_enable_openssl="no"
7375 encryption="disabled"
7376 fi
7377 unset cf_openssl_basedir
7378else
7379 encryption="disabled"
7380 { echo "$as_me:$LINENO: result: disabled" >&5
7381echo "${ECHO_T}disabled" >&6; }
7382fi
7383
7384unset save_LIBS
7385
7386
7387
7388if test "$check_sengine" = "yes"; then
7389 engine="select"
7390 if test "$freebsd" = "yes"; then
7391 { echo "$as_me:$LINENO: checking for kevent" >&5
7392echo $ECHO_N "checking for kevent... $ECHO_C" >&6; }
7393if test "${ac_cv_func_kevent+set}" = set; then
7394 echo $ECHO_N "(cached) $ECHO_C" >&6
7395else
7396 cat >conftest.$ac_ext <<_ACEOF
7397/* confdefs.h. */
7398_ACEOF
7399cat confdefs.h >>conftest.$ac_ext
7400cat >>conftest.$ac_ext <<_ACEOF
7401/* end confdefs.h. */
7402/* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
7403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7404#define kevent innocuous_kevent
7405
7406/* System header to define __stub macros and hopefully few prototypes,
7407 which can conflict with char kevent (); below.
7408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7409 <limits.h> exists even on freestanding compilers. */
7410
7411#ifdef __STDC__
7412# include <limits.h>
7413#else
7414# include <assert.h>
7415#endif
7416
7417#undef kevent
7418
7419/* Override any GCC internal prototype to avoid an error.
7420 Use char because int might match the return type of a GCC
7421 builtin and then its argument prototype would still apply. */
7422#ifdef __cplusplus
7423extern "C"
7424#endif
7425char kevent ();
7426/* The GNU C library defines this for functions which it implements
7427 to always fail with ENOSYS. Some functions are actually named
7428 something starting with __ and the normal name is an alias. */
7429#if defined __stub_kevent || defined __stub___kevent
7430choke me
7431#endif
7432
7433int
7434main ()
7435{
7436return kevent ();
7437 ;
7438 return 0;
7439}
7440_ACEOF
7441rm -f conftest.$ac_objext conftest$ac_exeext
7442if { (ac_try="$ac_link"
7443case "(($ac_try" in
7444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7445 *) ac_try_echo=$ac_try;;
7446esac
7447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7448 (eval "$ac_link") 2>conftest.er1
7449 ac_status=$?
7450 grep -v '^ *+' conftest.er1 >conftest.err
7451 rm -f conftest.er1
7452 cat conftest.err >&5
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); } && {
7455 test -z "$ac_c_werror_flag" ||
7456 test ! -s conftest.err
7457 } && test -s conftest$ac_exeext &&
7458 $as_test_x conftest$ac_exeext; then
7459 ac_cv_func_kevent=yes
7460else
7461 echo "$as_me: failed program was:" >&5
7462sed 's/^/| /' conftest.$ac_ext >&5
7463
7464 ac_cv_func_kevent=no
7465fi
7466
7467rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7468 conftest$ac_exeext conftest.$ac_ext
7469fi
7470{ echo "$as_me:$LINENO: result: $ac_cv_func_kevent" >&5
7471echo "${ECHO_T}$ac_cv_func_kevent" >&6; }
7472if test $ac_cv_func_kevent = yes; then
7473 engine="kqueue"
7474fi
7475
7476 elif test "$solaris2" = "yes"; then
7477 engine="poll"
7478 if test "${ac_cv_header_sys_devpoll_h+set}" = set; then
7479 { echo "$as_me:$LINENO: checking for sys/devpoll.h" >&5
7480echo $ECHO_N "checking for sys/devpoll.h... $ECHO_C" >&6; }
7481if test "${ac_cv_header_sys_devpoll_h+set}" = set; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7483fi
7484{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_devpoll_h" >&5
7485echo "${ECHO_T}$ac_cv_header_sys_devpoll_h" >&6; }
7486else
7487 # Is the header compilable?
7488{ echo "$as_me:$LINENO: checking sys/devpoll.h usability" >&5
7489echo $ECHO_N "checking sys/devpoll.h usability... $ECHO_C" >&6; }
7490cat >conftest.$ac_ext <<_ACEOF
7491/* confdefs.h. */
7492_ACEOF
7493cat confdefs.h >>conftest.$ac_ext
7494cat >>conftest.$ac_ext <<_ACEOF
7495/* end confdefs.h. */
7496$ac_includes_default
7497#include <sys/devpoll.h>
7498_ACEOF
7499rm -f conftest.$ac_objext
7500if { (ac_try="$ac_compile"
7501case "(($ac_try" in
7502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7503 *) ac_try_echo=$ac_try;;
7504esac
7505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7506 (eval "$ac_compile") 2>conftest.er1
7507 ac_status=$?
7508 grep -v '^ *+' conftest.er1 >conftest.err
7509 rm -f conftest.er1
7510 cat conftest.err >&5
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); } && {
7513 test -z "$ac_c_werror_flag" ||
7514 test ! -s conftest.err
7515 } && test -s conftest.$ac_objext; then
7516 ac_header_compiler=yes
7517else
7518 echo "$as_me: failed program was:" >&5
7519sed 's/^/| /' conftest.$ac_ext >&5
7520
7521 ac_header_compiler=no
7522fi
7523
7524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7525{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7526echo "${ECHO_T}$ac_header_compiler" >&6; }
7527
7528# Is the header present?
7529{ echo "$as_me:$LINENO: checking sys/devpoll.h presence" >&5
7530echo $ECHO_N "checking sys/devpoll.h presence... $ECHO_C" >&6; }
7531cat >conftest.$ac_ext <<_ACEOF
7532/* confdefs.h. */
7533_ACEOF
7534cat confdefs.h >>conftest.$ac_ext
7535cat >>conftest.$ac_ext <<_ACEOF
7536/* end confdefs.h. */
7537#include <sys/devpoll.h>
7538_ACEOF
7539if { (ac_try="$ac_cpp conftest.$ac_ext"
7540case "(($ac_try" in
7541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7542 *) ac_try_echo=$ac_try;;
7543esac
7544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7546 ac_status=$?
7547 grep -v '^ *+' conftest.er1 >conftest.err
7548 rm -f conftest.er1
7549 cat conftest.err >&5
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); } >/dev/null && {
7552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7553 test ! -s conftest.err
7554 }; then
7555 ac_header_preproc=yes
7556else
7557 echo "$as_me: failed program was:" >&5
7558sed 's/^/| /' conftest.$ac_ext >&5
7559
7560 ac_header_preproc=no
7561fi
7562
7563rm -f conftest.err conftest.$ac_ext
7564{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7565echo "${ECHO_T}$ac_header_preproc" >&6; }
7566
7567# So? What about this header?
7568case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7569 yes:no: )
7570 { echo "$as_me:$LINENO: WARNING: sys/devpoll.h: accepted by the compiler, rejected by the preprocessor!" >&5
7571echo "$as_me: WARNING: sys/devpoll.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7572 { echo "$as_me:$LINENO: WARNING: sys/devpoll.h: proceeding with the compiler's result" >&5
7573echo "$as_me: WARNING: sys/devpoll.h: proceeding with the compiler's result" >&2;}
7574 ac_header_preproc=yes
7575 ;;
7576 no:yes:* )
7577 { echo "$as_me:$LINENO: WARNING: sys/devpoll.h: present but cannot be compiled" >&5
7578echo "$as_me: WARNING: sys/devpoll.h: present but cannot be compiled" >&2;}
7579 { echo "$as_me:$LINENO: WARNING: sys/devpoll.h: check for missing prerequisite headers?" >&5
7580echo "$as_me: WARNING: sys/devpoll.h: check for missing prerequisite headers?" >&2;}
7581 { echo "$as_me:$LINENO: WARNING: sys/devpoll.h: see the Autoconf documentation" >&5
7582echo "$as_me: WARNING: sys/devpoll.h: see the Autoconf documentation" >&2;}
7583 { echo "$as_me:$LINENO: WARNING: sys/devpoll.h: section \"Present But Cannot Be Compiled\"" >&5
7584echo "$as_me: WARNING: sys/devpoll.h: section \"Present But Cannot Be Compiled\"" >&2;}
7585 { echo "$as_me:$LINENO: WARNING: sys/devpoll.h: proceeding with the preprocessor's result" >&5
7586echo "$as_me: WARNING: sys/devpoll.h: proceeding with the preprocessor's result" >&2;}
7587 { echo "$as_me:$LINENO: WARNING: sys/devpoll.h: in the future, the compiler will take precedence" >&5
7588echo "$as_me: WARNING: sys/devpoll.h: in the future, the compiler will take precedence" >&2;}
7589
7590 ;;
7591esac
7592{ echo "$as_me:$LINENO: checking for sys/devpoll.h" >&5
7593echo $ECHO_N "checking for sys/devpoll.h... $ECHO_C" >&6; }
7594if test "${ac_cv_header_sys_devpoll_h+set}" = set; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
7596else
7597 ac_cv_header_sys_devpoll_h=$ac_header_preproc
7598fi
7599{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_devpoll_h" >&5
7600echo "${ECHO_T}$ac_cv_header_sys_devpoll_h" >&6; }
7601
7602fi
7603if test $ac_cv_header_sys_devpoll_h = yes; then
7604 engine="devpoll"
7605fi
7606
7607
7608 elif test "$linux" = "yes"; then
7609 { echo "$as_me:$LINENO: checking for poll" >&5
7610echo $ECHO_N "checking for poll... $ECHO_C" >&6; }
7611if test "${ac_cv_func_poll+set}" = set; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
7613else
7614 cat >conftest.$ac_ext <<_ACEOF
7615/* confdefs.h. */
7616_ACEOF
7617cat confdefs.h >>conftest.$ac_ext
7618cat >>conftest.$ac_ext <<_ACEOF
7619/* end confdefs.h. */
7620/* Define poll to an innocuous variant, in case <limits.h> declares poll.
7621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7622#define poll innocuous_poll
7623
7624/* System header to define __stub macros and hopefully few prototypes,
7625 which can conflict with char poll (); below.
7626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7627 <limits.h> exists even on freestanding compilers. */
7628
7629#ifdef __STDC__
7630# include <limits.h>
7631#else
7632# include <assert.h>
7633#endif
7634
7635#undef poll
7636
7637/* Override any GCC internal prototype to avoid an error.
7638 Use char because int might match the return type of a GCC
7639 builtin and then its argument prototype would still apply. */
7640#ifdef __cplusplus
7641extern "C"
7642#endif
7643char poll ();
7644/* The GNU C library defines this for functions which it implements
7645 to always fail with ENOSYS. Some functions are actually named
7646 something starting with __ and the normal name is an alias. */
7647#if defined __stub_poll || defined __stub___poll
7648choke me
7649#endif
7650
7651int
7652main ()
7653{
7654return poll ();
7655 ;
7656 return 0;
7657}
7658_ACEOF
7659rm -f conftest.$ac_objext conftest$ac_exeext
7660if { (ac_try="$ac_link"
7661case "(($ac_try" in
7662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7663 *) ac_try_echo=$ac_try;;
7664esac
7665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7666 (eval "$ac_link") 2>conftest.er1
7667 ac_status=$?
7668 grep -v '^ *+' conftest.er1 >conftest.err
7669 rm -f conftest.er1
7670 cat conftest.err >&5
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); } && {
7673 test -z "$ac_c_werror_flag" ||
7674 test ! -s conftest.err
7675 } && test -s conftest$ac_exeext &&
7676 $as_test_x conftest$ac_exeext; then
7677 ac_cv_func_poll=yes
7678else
7679 echo "$as_me: failed program was:" >&5
7680sed 's/^/| /' conftest.$ac_ext >&5
7681
7682 ac_cv_func_poll=no
7683fi
7684
7685rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7686 conftest$ac_exeext conftest.$ac_ext
7687fi
7688{ echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5
7689echo "${ECHO_T}$ac_cv_func_poll" >&6; }
7690if test $ac_cv_func_poll = yes; then
7691 engine="poll"
7692fi
7693
7694 if test "${ac_cv_header_sys_epoll_h+set}" = set; then
7695 { echo "$as_me:$LINENO: checking for sys/epoll.h" >&5
7696echo $ECHO_N "checking for sys/epoll.h... $ECHO_C" >&6; }
7697if test "${ac_cv_header_sys_epoll_h+set}" = set; then
7698 echo $ECHO_N "(cached) $ECHO_C" >&6
7699fi
7700{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_epoll_h" >&5
7701echo "${ECHO_T}$ac_cv_header_sys_epoll_h" >&6; }
7702else
7703 # Is the header compilable?
7704{ echo "$as_me:$LINENO: checking sys/epoll.h usability" >&5
7705echo $ECHO_N "checking sys/epoll.h usability... $ECHO_C" >&6; }
7706cat >conftest.$ac_ext <<_ACEOF
7707/* confdefs.h. */
7708_ACEOF
7709cat confdefs.h >>conftest.$ac_ext
7710cat >>conftest.$ac_ext <<_ACEOF
7711/* end confdefs.h. */
7712$ac_includes_default
7713#include <sys/epoll.h>
7714_ACEOF
7715rm -f conftest.$ac_objext
7716if { (ac_try="$ac_compile"
7717case "(($ac_try" in
7718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7719 *) ac_try_echo=$ac_try;;
7720esac
7721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7722 (eval "$ac_compile") 2>conftest.er1
7723 ac_status=$?
7724 grep -v '^ *+' conftest.er1 >conftest.err
7725 rm -f conftest.er1
7726 cat conftest.err >&5
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); } && {
7729 test -z "$ac_c_werror_flag" ||
7730 test ! -s conftest.err
7731 } && test -s conftest.$ac_objext; then
7732 ac_header_compiler=yes
7733else
7734 echo "$as_me: failed program was:" >&5
7735sed 's/^/| /' conftest.$ac_ext >&5
7736
7737 ac_header_compiler=no
7738fi
7739
7740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7741{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7742echo "${ECHO_T}$ac_header_compiler" >&6; }
7743
7744# Is the header present?
7745{ echo "$as_me:$LINENO: checking sys/epoll.h presence" >&5
7746echo $ECHO_N "checking sys/epoll.h presence... $ECHO_C" >&6; }
7747cat >conftest.$ac_ext <<_ACEOF
7748/* confdefs.h. */
7749_ACEOF
7750cat confdefs.h >>conftest.$ac_ext
7751cat >>conftest.$ac_ext <<_ACEOF
7752/* end confdefs.h. */
7753#include <sys/epoll.h>
7754_ACEOF
7755if { (ac_try="$ac_cpp conftest.$ac_ext"
7756case "(($ac_try" in
7757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7758 *) ac_try_echo=$ac_try;;
7759esac
7760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7762 ac_status=$?
7763 grep -v '^ *+' conftest.er1 >conftest.err
7764 rm -f conftest.er1
7765 cat conftest.err >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } >/dev/null && {
7768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7769 test ! -s conftest.err
7770 }; then
7771 ac_header_preproc=yes
7772else
7773 echo "$as_me: failed program was:" >&5
7774sed 's/^/| /' conftest.$ac_ext >&5
7775
7776 ac_header_preproc=no
7777fi
7778
7779rm -f conftest.err conftest.$ac_ext
7780{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7781echo "${ECHO_T}$ac_header_preproc" >&6; }
7782
7783# So? What about this header?
7784case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7785 yes:no: )
7786 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: accepted by the compiler, rejected by the preprocessor!" >&5
7787echo "$as_me: WARNING: sys/epoll.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7788 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: proceeding with the compiler's result" >&5
7789echo "$as_me: WARNING: sys/epoll.h: proceeding with the compiler's result" >&2;}
7790 ac_header_preproc=yes
7791 ;;
7792 no:yes:* )
7793 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: present but cannot be compiled" >&5
7794echo "$as_me: WARNING: sys/epoll.h: present but cannot be compiled" >&2;}
7795 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: check for missing prerequisite headers?" >&5
7796echo "$as_me: WARNING: sys/epoll.h: check for missing prerequisite headers?" >&2;}
7797 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: see the Autoconf documentation" >&5
7798echo "$as_me: WARNING: sys/epoll.h: see the Autoconf documentation" >&2;}
7799 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: section \"Present But Cannot Be Compiled\"" >&5
7800echo "$as_me: WARNING: sys/epoll.h: section \"Present But Cannot Be Compiled\"" >&2;}
7801 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: proceeding with the preprocessor's result" >&5
7802echo "$as_me: WARNING: sys/epoll.h: proceeding with the preprocessor's result" >&2;}
7803 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: in the future, the compiler will take precedence" >&5
7804echo "$as_me: WARNING: sys/epoll.h: in the future, the compiler will take precedence" >&2;}
7805
7806 ;;
7807esac
7808{ echo "$as_me:$LINENO: checking for sys/epoll.h" >&5
7809echo $ECHO_N "checking for sys/epoll.h... $ECHO_C" >&6; }
7810if test "${ac_cv_header_sys_epoll_h+set}" = set; then
7811 echo $ECHO_N "(cached) $ECHO_C" >&6
7812else
7813 ac_cv_header_sys_epoll_h=$ac_header_preproc
7814fi
7815{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_epoll_h" >&5
7816echo "${ECHO_T}$ac_cv_header_sys_epoll_h" >&6; }
7817
7818fi
7819if test $ac_cv_header_sys_epoll_h = yes; then
7820 HAVE_EPOLL_H=yes
7821else
7822 HAVE_EPOLL_H=no
7823fi
7824
7825
7826 { echo "$as_me:$LINENO: checking for epoll_create in -lepoll" >&5
7827echo $ECHO_N "checking for epoll_create in -lepoll... $ECHO_C" >&6; }
7828if test "${ac_cv_lib_epoll_epoll_create+set}" = set; then
7829 echo $ECHO_N "(cached) $ECHO_C" >&6
7830else
7831 ac_check_lib_save_LIBS=$LIBS
7832LIBS="-lepoll $LIBS"
7833cat >conftest.$ac_ext <<_ACEOF
7834/* confdefs.h. */
7835_ACEOF
7836cat confdefs.h >>conftest.$ac_ext
7837cat >>conftest.$ac_ext <<_ACEOF
7838/* end confdefs.h. */
7839
7840/* Override any GCC internal prototype to avoid an error.
7841 Use char because int might match the return type of a GCC
7842 builtin and then its argument prototype would still apply. */
7843#ifdef __cplusplus
7844extern "C"
7845#endif
7846char epoll_create ();
7847int
7848main ()
7849{
7850return epoll_create ();
7851 ;
7852 return 0;
7853}
7854_ACEOF
7855rm -f conftest.$ac_objext conftest$ac_exeext
7856if { (ac_try="$ac_link"
7857case "(($ac_try" in
7858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7859 *) ac_try_echo=$ac_try;;
7860esac
7861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7862 (eval "$ac_link") 2>conftest.er1
7863 ac_status=$?
7864 grep -v '^ *+' conftest.er1 >conftest.err
7865 rm -f conftest.er1
7866 cat conftest.err >&5
7867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 (exit $ac_status); } && {
7869 test -z "$ac_c_werror_flag" ||
7870 test ! -s conftest.err
7871 } && test -s conftest$ac_exeext &&
7872 $as_test_x conftest$ac_exeext; then
7873 ac_cv_lib_epoll_epoll_create=yes
7874else
7875 echo "$as_me: failed program was:" >&5
7876sed 's/^/| /' conftest.$ac_ext >&5
7877
7878 ac_cv_lib_epoll_epoll_create=no
7879fi
7880
7881rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7882 conftest$ac_exeext conftest.$ac_ext
7883LIBS=$ac_check_lib_save_LIBS
7884fi
7885{ echo "$as_me:$LINENO: result: $ac_cv_lib_epoll_epoll_create" >&5
7886echo "${ECHO_T}$ac_cv_lib_epoll_epoll_create" >&6; }
7887if test $ac_cv_lib_epoll_epoll_create = yes; then
7888 LIBS="$LIBS -lepoll"; have_epoll_lib="yes"; engine="epoll"
7889else
7890 have_epoll_lib="no"
7891fi
7892
7893 if test "$HAVE_EPOLL_H $have_epoll_lib" = "yes no"; then
7894 { echo "$as_me:$LINENO: checking for epoll_create without -lepoll" >&5
7895echo $ECHO_N "checking for epoll_create without -lepoll... $ECHO_C" >&6; }
7896 if test "$cross_compiling" = yes; then
7897 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7898See \`config.log' for more details." >&5
7899echo "$as_me: error: cannot run test program while cross compiling
7900See \`config.log' for more details." >&2;}
7901 { (exit 1); exit 1; }; }
7902else
7903 cat >conftest.$ac_ext <<_ACEOF
7904/* confdefs.h. */
7905_ACEOF
7906cat confdefs.h >>conftest.$ac_ext
7907cat >>conftest.$ac_ext <<_ACEOF
7908/* end confdefs.h. */
7909
7910 #include <stdint.h>
7911 #include <sys/epoll.h>
7912 #include <errno.h>
7913
7914 #include <asm/unistd.h>
7915
7916 int main(int argc, char **argv) { return epoll_create(5) < 1; }
7917
7918_ACEOF
7919rm -f conftest$ac_exeext
7920if { (ac_try="$ac_link"
7921case "(($ac_try" in
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7924esac
7925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7926 (eval "$ac_link") 2>&5
7927 ac_status=$?
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7930 { (case "(($ac_try" in
7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932 *) ac_try_echo=$ac_try;;
7933esac
7934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7935 (eval "$ac_try") 2>&5
7936 ac_status=$?
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); }; }; then
7939 have_epoll_lib="yes"
7940else
7941 echo "$as_me: program exited with status $ac_status" >&5
7942echo "$as_me: failed program was:" >&5
7943sed 's/^/| /' conftest.$ac_ext >&5
7944
7945( exit $ac_status )
7946have_epoll_lib="no"
7947fi
7948rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7949fi
7950
7951
7952 { echo "$as_me:$LINENO: result: $have_epoll_lib" >&5
7953echo "${ECHO_T}$have_epoll_lib" >&6; }
7954 fi
7955 if test "$HAVE_EPOLL_H $have_epoll_lib" = "yes yes"; then
7956 engine="epoll";
7957 fi
7958 else
7959 { echo "$as_me:$LINENO: checking for poll" >&5
7960echo $ECHO_N "checking for poll... $ECHO_C" >&6; }
7961if test "${ac_cv_func_poll+set}" = set; then
7962 echo $ECHO_N "(cached) $ECHO_C" >&6
7963else
7964 cat >conftest.$ac_ext <<_ACEOF
7965/* confdefs.h. */
7966_ACEOF
7967cat confdefs.h >>conftest.$ac_ext
7968cat >>conftest.$ac_ext <<_ACEOF
7969/* end confdefs.h. */
7970/* Define poll to an innocuous variant, in case <limits.h> declares poll.
7971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7972#define poll innocuous_poll
7973
7974/* System header to define __stub macros and hopefully few prototypes,
7975 which can conflict with char poll (); below.
7976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7977 <limits.h> exists even on freestanding compilers. */
7978
7979#ifdef __STDC__
7980# include <limits.h>
7981#else
7982# include <assert.h>
7983#endif
7984
7985#undef poll
7986
7987/* Override any GCC internal prototype to avoid an error.
7988 Use char because int might match the return type of a GCC
7989 builtin and then its argument prototype would still apply. */
7990#ifdef __cplusplus
7991extern "C"
7992#endif
7993char poll ();
7994/* The GNU C library defines this for functions which it implements
7995 to always fail with ENOSYS. Some functions are actually named
7996 something starting with __ and the normal name is an alias. */
7997#if defined __stub_poll || defined __stub___poll
7998choke me
7999#endif
8000
8001int
8002main ()
8003{
8004return poll ();
8005 ;
8006 return 0;
8007}
8008_ACEOF
8009rm -f conftest.$ac_objext conftest$ac_exeext
8010if { (ac_try="$ac_link"
8011case "(($ac_try" in
8012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8013 *) ac_try_echo=$ac_try;;
8014esac
8015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8016 (eval "$ac_link") 2>conftest.er1
8017 ac_status=$?
8018 grep -v '^ *+' conftest.er1 >conftest.err
8019 rm -f conftest.er1
8020 cat conftest.err >&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); } && {
8023 test -z "$ac_c_werror_flag" ||
8024 test ! -s conftest.err
8025 } && test -s conftest$ac_exeext &&
8026 $as_test_x conftest$ac_exeext; then
8027 ac_cv_func_poll=yes
8028else
8029 echo "$as_me: failed program was:" >&5
8030sed 's/^/| /' conftest.$ac_ext >&5
8031
8032 ac_cv_func_poll=no
8033fi
8034
8035rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8036 conftest$ac_exeext conftest.$ac_ext
8037fi
8038{ echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5
8039echo "${ECHO_T}$ac_cv_func_poll" >&6; }
8040if test $ac_cv_func_poll = yes; then
8041 engine="poll"
8042fi
8043
8044 fi
8045elif test "$check_sengine" = "kqueue"; then
8046 { echo "$as_me:$LINENO: checking for kevent" >&5
8047echo $ECHO_N "checking for kevent... $ECHO_C" >&6; }
8048if test "${ac_cv_func_kevent+set}" = set; then
8049 echo $ECHO_N "(cached) $ECHO_C" >&6
8050else
8051 cat >conftest.$ac_ext <<_ACEOF
8052/* confdefs.h. */
8053_ACEOF
8054cat confdefs.h >>conftest.$ac_ext
8055cat >>conftest.$ac_ext <<_ACEOF
8056/* end confdefs.h. */
8057/* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
8058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8059#define kevent innocuous_kevent
8060
8061/* System header to define __stub macros and hopefully few prototypes,
8062 which can conflict with char kevent (); below.
8063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8064 <limits.h> exists even on freestanding compilers. */
8065
8066#ifdef __STDC__
8067# include <limits.h>
8068#else
8069# include <assert.h>
8070#endif
8071
8072#undef kevent
8073
8074/* Override any GCC internal prototype to avoid an error.
8075 Use char because int might match the return type of a GCC
8076 builtin and then its argument prototype would still apply. */
8077#ifdef __cplusplus
8078extern "C"
8079#endif
8080char kevent ();
8081/* The GNU C library defines this for functions which it implements
8082 to always fail with ENOSYS. Some functions are actually named
8083 something starting with __ and the normal name is an alias. */
8084#if defined __stub_kevent || defined __stub___kevent
8085choke me
8086#endif
8087
8088int
8089main ()
8090{
8091return kevent ();
8092 ;
8093 return 0;
8094}
8095_ACEOF
8096rm -f conftest.$ac_objext conftest$ac_exeext
8097if { (ac_try="$ac_link"
8098case "(($ac_try" in
8099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8100 *) ac_try_echo=$ac_try;;
8101esac
8102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8103 (eval "$ac_link") 2>conftest.er1
8104 ac_status=$?
8105 grep -v '^ *+' conftest.er1 >conftest.err
8106 rm -f conftest.er1
8107 cat conftest.err >&5
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); } && {
8110 test -z "$ac_c_werror_flag" ||
8111 test ! -s conftest.err
8112 } && test -s conftest$ac_exeext &&
8113 $as_test_x conftest$ac_exeext; then
8114 ac_cv_func_kevent=yes
8115else
8116 echo "$as_me: failed program was:" >&5
8117sed 's/^/| /' conftest.$ac_ext >&5
8118
8119 ac_cv_func_kevent=no
8120fi
8121
8122rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8123 conftest$ac_exeext conftest.$ac_ext
8124fi
8125{ echo "$as_me:$LINENO: result: $ac_cv_func_kevent" >&5
8126echo "${ECHO_T}$ac_cv_func_kevent" >&6; }
8127if test $ac_cv_func_kevent = yes; then
8128 engine="kqueue"
8129fi
8130
8131 if test "X$engine" = "X"; then
8132 { echo "$as_me:$LINENO: " >&5
8133echo "$as_me: " >&6;}
8134 { echo "$as_me:$LINENO: kqueue not supported on this platform!" >&5
8135echo "$as_me: kqueue not supported on this platform!" >&6;}
8136 { { echo "$as_me:$LINENO: error: " >&5
8137echo "$as_me: error: " >&2;}
8138 { (exit 1); exit 1; }; }
8139 fi
8140 { echo "$as_me:$LINENO: setting socketengine type to kqueue" >&5
8141echo "$as_me: setting socketengine type to kqueue" >&6;}
8142elif test "$check_sengine" = "poll"; then
8143 { echo "$as_me:$LINENO: checking for poll" >&5
8144echo $ECHO_N "checking for poll... $ECHO_C" >&6; }
8145if test "${ac_cv_func_poll+set}" = set; then
8146 echo $ECHO_N "(cached) $ECHO_C" >&6
8147else
8148 cat >conftest.$ac_ext <<_ACEOF
8149/* confdefs.h. */
8150_ACEOF
8151cat confdefs.h >>conftest.$ac_ext
8152cat >>conftest.$ac_ext <<_ACEOF
8153/* end confdefs.h. */
8154/* Define poll to an innocuous variant, in case <limits.h> declares poll.
8155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8156#define poll innocuous_poll
8157
8158/* System header to define __stub macros and hopefully few prototypes,
8159 which can conflict with char poll (); below.
8160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8161 <limits.h> exists even on freestanding compilers. */
8162
8163#ifdef __STDC__
8164# include <limits.h>
8165#else
8166# include <assert.h>
8167#endif
8168
8169#undef poll
8170
8171/* Override any GCC internal prototype to avoid an error.
8172 Use char because int might match the return type of a GCC
8173 builtin and then its argument prototype would still apply. */
8174#ifdef __cplusplus
8175extern "C"
8176#endif
8177char poll ();
8178/* The GNU C library defines this for functions which it implements
8179 to always fail with ENOSYS. Some functions are actually named
8180 something starting with __ and the normal name is an alias. */
8181#if defined __stub_poll || defined __stub___poll
8182choke me
8183#endif
8184
8185int
8186main ()
8187{
8188return poll ();
8189 ;
8190 return 0;
8191}
8192_ACEOF
8193rm -f conftest.$ac_objext conftest$ac_exeext
8194if { (ac_try="$ac_link"
8195case "(($ac_try" in
8196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8197 *) ac_try_echo=$ac_try;;
8198esac
8199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8200 (eval "$ac_link") 2>conftest.er1
8201 ac_status=$?
8202 grep -v '^ *+' conftest.er1 >conftest.err
8203 rm -f conftest.er1
8204 cat conftest.err >&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } && {
8207 test -z "$ac_c_werror_flag" ||
8208 test ! -s conftest.err
8209 } && test -s conftest$ac_exeext &&
8210 $as_test_x conftest$ac_exeext; then
8211 ac_cv_func_poll=yes
8212else
8213 echo "$as_me: failed program was:" >&5
8214sed 's/^/| /' conftest.$ac_ext >&5
8215
8216 ac_cv_func_poll=no
8217fi
8218
8219rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8220 conftest$ac_exeext conftest.$ac_ext
8221fi
8222{ echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5
8223echo "${ECHO_T}$ac_cv_func_poll" >&6; }
8224if test $ac_cv_func_poll = yes; then
8225 engine="poll"
8226fi
8227
8228 if test "X$engine" = "X"; then
8229 { echo "$as_me:$LINENO: " >&5
8230echo "$as_me: " >&6;}
8231 { echo "$as_me:$LINENO: poll not supported on this platform!" >&5
8232echo "$as_me: poll not supported on this platform!" >&6;}
8233 { { echo "$as_me:$LINENO: error: " >&5
8234echo "$as_me: error: " >&2;}
8235 { (exit 1); exit 1; }; }
8236 fi
8237 { echo "$as_me:$LINENO: setting socketengine type to poll" >&5
8238echo "$as_me: setting socketengine type to poll" >&6;}
8239elif test "$check_sengine" = "devpoll"; then
8240 if test "${ac_cv_header_sys_devpoll_h+set}" = set; then
8241 { echo "$as_me:$LINENO: checking for sys/devpoll.h" >&5
8242echo $ECHO_N "checking for sys/devpoll.h... $ECHO_C" >&6; }
8243if test "${ac_cv_header_sys_devpoll_h+set}" = set; then
8244 echo $ECHO_N "(cached) $ECHO_C" >&6
8245fi
8246{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_devpoll_h" >&5
8247echo "${ECHO_T}$ac_cv_header_sys_devpoll_h" >&6; }
8248else
8249 # Is the header compilable?
8250{ echo "$as_me:$LINENO: checking sys/devpoll.h usability" >&5
8251echo $ECHO_N "checking sys/devpoll.h usability... $ECHO_C" >&6; }
8252cat >conftest.$ac_ext <<_ACEOF
8253/* confdefs.h. */
8254_ACEOF
8255cat confdefs.h >>conftest.$ac_ext
8256cat >>conftest.$ac_ext <<_ACEOF
8257/* end confdefs.h. */
8258$ac_includes_default
8259#include <sys/devpoll.h>
8260_ACEOF
8261rm -f conftest.$ac_objext
8262if { (ac_try="$ac_compile"
8263case "(($ac_try" in
8264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265 *) ac_try_echo=$ac_try;;
8266esac
8267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8268 (eval "$ac_compile") 2>conftest.er1
8269 ac_status=$?
8270 grep -v '^ *+' conftest.er1 >conftest.err
8271 rm -f conftest.er1
8272 cat conftest.err >&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } && {
8275 test -z "$ac_c_werror_flag" ||
8276 test ! -s conftest.err
8277 } && test -s conftest.$ac_objext; then
8278 ac_header_compiler=yes
8279else
8280 echo "$as_me: failed program was:" >&5
8281sed 's/^/| /' conftest.$ac_ext >&5
8282
8283 ac_header_compiler=no
8284fi
8285
8286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8287{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8288echo "${ECHO_T}$ac_header_compiler" >&6; }
8289
8290# Is the header present?
8291{ echo "$as_me:$LINENO: checking sys/devpoll.h presence" >&5
8292echo $ECHO_N "checking sys/devpoll.h presence... $ECHO_C" >&6; }
8293cat >conftest.$ac_ext <<_ACEOF
8294/* confdefs.h. */
8295_ACEOF
8296cat confdefs.h >>conftest.$ac_ext
8297cat >>conftest.$ac_ext <<_ACEOF
8298/* end confdefs.h. */
8299#include <sys/devpoll.h>
8300_ACEOF
8301if { (ac_try="$ac_cpp conftest.$ac_ext"
8302case "(($ac_try" in
8303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304 *) ac_try_echo=$ac_try;;
8305esac
8306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8308 ac_status=$?
8309 grep -v '^ *+' conftest.er1 >conftest.err
8310 rm -f conftest.er1
8311 cat conftest.err >&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); } >/dev/null && {
8314 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8315 test ! -s conftest.err
8316 }; then
8317 ac_header_preproc=yes
8318else
8319 echo "$as_me: failed program was:" >&5
8320sed 's/^/| /' conftest.$ac_ext >&5
8321
8322 ac_header_preproc=no
8323fi
8324
8325rm -f conftest.err conftest.$ac_ext
8326{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8327echo "${ECHO_T}$ac_header_preproc" >&6; }
8328
8329# So? What about this header?
8330case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8331 yes:no: )
8332 { echo "$as_me:$LINENO: WARNING: sys/devpoll.h: accepted by the compiler, rejected by the preprocessor!" >&5
8333echo "$as_me: WARNING: sys/devpoll.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8334 { echo "$as_me:$LINENO: WARNING: sys/devpoll.h: proceeding with the compiler's result" >&5
8335echo "$as_me: WARNING: sys/devpoll.h: proceeding with the compiler's result" >&2;}
8336 ac_header_preproc=yes
8337 ;;
8338 no:yes:* )
8339 { echo "$as_me:$LINENO: WARNING: sys/devpoll.h: present but cannot be compiled" >&5
8340echo "$as_me: WARNING: sys/devpoll.h: present but cannot be compiled" >&2;}
8341 { echo "$as_me:$LINENO: WARNING: sys/devpoll.h: check for missing prerequisite headers?" >&5
8342echo "$as_me: WARNING: sys/devpoll.h: check for missing prerequisite headers?" >&2;}
8343 { echo "$as_me:$LINENO: WARNING: sys/devpoll.h: see the Autoconf documentation" >&5
8344echo "$as_me: WARNING: sys/devpoll.h: see the Autoconf documentation" >&2;}
8345 { echo "$as_me:$LINENO: WARNING: sys/devpoll.h: section \"Present But Cannot Be Compiled\"" >&5
8346echo "$as_me: WARNING: sys/devpoll.h: section \"Present But Cannot Be Compiled\"" >&2;}
8347 { echo "$as_me:$LINENO: WARNING: sys/devpoll.h: proceeding with the preprocessor's result" >&5
8348echo "$as_me: WARNING: sys/devpoll.h: proceeding with the preprocessor's result" >&2;}
8349 { echo "$as_me:$LINENO: WARNING: sys/devpoll.h: in the future, the compiler will take precedence" >&5
8350echo "$as_me: WARNING: sys/devpoll.h: in the future, the compiler will take precedence" >&2;}
8351
8352 ;;
8353esac
8354{ echo "$as_me:$LINENO: checking for sys/devpoll.h" >&5
8355echo $ECHO_N "checking for sys/devpoll.h... $ECHO_C" >&6; }
8356if test "${ac_cv_header_sys_devpoll_h+set}" = set; then
8357 echo $ECHO_N "(cached) $ECHO_C" >&6
8358else
8359 ac_cv_header_sys_devpoll_h=$ac_header_preproc
8360fi
8361{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_devpoll_h" >&5
8362echo "${ECHO_T}$ac_cv_header_sys_devpoll_h" >&6; }
8363
8364fi
8365if test $ac_cv_header_sys_devpoll_h = yes; then
8366 engine="devpoll"
8367fi
8368
8369
8370 if test "X$engine" = "X"; then
8371 { echo "$as_me:$LINENO: " >&5
8372echo "$as_me: " >&6;}
8373 { echo "$as_me:$LINENO: /dev/poll not supported on this system" >&5
8374echo "$as_me: /dev/poll not supported on this system" >&6;}
8375 { { echo "$as_me:$LINENO: error: " >&5
8376echo "$as_me: error: " >&2;}
8377 { (exit 1); exit 1; }; }
8378 fi
8379 { echo "$as_me:$LINENO: setting socketengine to devpoll" >&5
8380echo "$as_me: setting socketengine to devpoll" >&6;}
8381elif test "$check_sengine" = "epoll"; then
8382 if test "${ac_cv_header_sys_epoll_h+set}" = set; then
8383 { echo "$as_me:$LINENO: checking for sys/epoll.h" >&5
8384echo $ECHO_N "checking for sys/epoll.h... $ECHO_C" >&6; }
8385if test "${ac_cv_header_sys_epoll_h+set}" = set; then
8386 echo $ECHO_N "(cached) $ECHO_C" >&6
8387fi
8388{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_epoll_h" >&5
8389echo "${ECHO_T}$ac_cv_header_sys_epoll_h" >&6; }
8390else
8391 # Is the header compilable?
8392{ echo "$as_me:$LINENO: checking sys/epoll.h usability" >&5
8393echo $ECHO_N "checking sys/epoll.h usability... $ECHO_C" >&6; }
8394cat >conftest.$ac_ext <<_ACEOF
8395/* confdefs.h. */
8396_ACEOF
8397cat confdefs.h >>conftest.$ac_ext
8398cat >>conftest.$ac_ext <<_ACEOF
8399/* end confdefs.h. */
8400$ac_includes_default
8401#include <sys/epoll.h>
8402_ACEOF
8403rm -f conftest.$ac_objext
8404if { (ac_try="$ac_compile"
8405case "(($ac_try" in
8406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407 *) ac_try_echo=$ac_try;;
8408esac
8409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8410 (eval "$ac_compile") 2>conftest.er1
8411 ac_status=$?
8412 grep -v '^ *+' conftest.er1 >conftest.err
8413 rm -f conftest.er1
8414 cat conftest.err >&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); } && {
8417 test -z "$ac_c_werror_flag" ||
8418 test ! -s conftest.err
8419 } && test -s conftest.$ac_objext; then
8420 ac_header_compiler=yes
8421else
8422 echo "$as_me: failed program was:" >&5
8423sed 's/^/| /' conftest.$ac_ext >&5
8424
8425 ac_header_compiler=no
8426fi
8427
8428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8429{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8430echo "${ECHO_T}$ac_header_compiler" >&6; }
8431
8432# Is the header present?
8433{ echo "$as_me:$LINENO: checking sys/epoll.h presence" >&5
8434echo $ECHO_N "checking sys/epoll.h presence... $ECHO_C" >&6; }
8435cat >conftest.$ac_ext <<_ACEOF
8436/* confdefs.h. */
8437_ACEOF
8438cat confdefs.h >>conftest.$ac_ext
8439cat >>conftest.$ac_ext <<_ACEOF
8440/* end confdefs.h. */
8441#include <sys/epoll.h>
8442_ACEOF
8443if { (ac_try="$ac_cpp conftest.$ac_ext"
8444case "(($ac_try" in
8445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8446 *) ac_try_echo=$ac_try;;
8447esac
8448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8450 ac_status=$?
8451 grep -v '^ *+' conftest.er1 >conftest.err
8452 rm -f conftest.er1
8453 cat conftest.err >&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); } >/dev/null && {
8456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8457 test ! -s conftest.err
8458 }; then
8459 ac_header_preproc=yes
8460else
8461 echo "$as_me: failed program was:" >&5
8462sed 's/^/| /' conftest.$ac_ext >&5
8463
8464 ac_header_preproc=no
8465fi
8466
8467rm -f conftest.err conftest.$ac_ext
8468{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8469echo "${ECHO_T}$ac_header_preproc" >&6; }
8470
8471# So? What about this header?
8472case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8473 yes:no: )
8474 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: accepted by the compiler, rejected by the preprocessor!" >&5
8475echo "$as_me: WARNING: sys/epoll.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8476 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: proceeding with the compiler's result" >&5
8477echo "$as_me: WARNING: sys/epoll.h: proceeding with the compiler's result" >&2;}
8478 ac_header_preproc=yes
8479 ;;
8480 no:yes:* )
8481 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: present but cannot be compiled" >&5
8482echo "$as_me: WARNING: sys/epoll.h: present but cannot be compiled" >&2;}
8483 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: check for missing prerequisite headers?" >&5
8484echo "$as_me: WARNING: sys/epoll.h: check for missing prerequisite headers?" >&2;}
8485 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: see the Autoconf documentation" >&5
8486echo "$as_me: WARNING: sys/epoll.h: see the Autoconf documentation" >&2;}
8487 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: section \"Present But Cannot Be Compiled\"" >&5
8488echo "$as_me: WARNING: sys/epoll.h: section \"Present But Cannot Be Compiled\"" >&2;}
8489 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: proceeding with the preprocessor's result" >&5
8490echo "$as_me: WARNING: sys/epoll.h: proceeding with the preprocessor's result" >&2;}
8491 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: in the future, the compiler will take precedence" >&5
8492echo "$as_me: WARNING: sys/epoll.h: in the future, the compiler will take precedence" >&2;}
8493
8494 ;;
8495esac
8496{ echo "$as_me:$LINENO: checking for sys/epoll.h" >&5
8497echo $ECHO_N "checking for sys/epoll.h... $ECHO_C" >&6; }
8498if test "${ac_cv_header_sys_epoll_h+set}" = set; then
8499 echo $ECHO_N "(cached) $ECHO_C" >&6
8500else
8501 ac_cv_header_sys_epoll_h=$ac_header_preproc
8502fi
8503{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_epoll_h" >&5
8504echo "${ECHO_T}$ac_cv_header_sys_epoll_h" >&6; }
8505
8506fi
8507if test $ac_cv_header_sys_epoll_h = yes; then
8508 HAVE_EPOLL_H=yes
8509else
8510 HAVE_EPOLL_H=no
8511fi
8512
8513
8514 { echo "$as_me:$LINENO: checking for epoll_create in -lepoll" >&5
8515echo $ECHO_N "checking for epoll_create in -lepoll... $ECHO_C" >&6; }
8516if test "${ac_cv_lib_epoll_epoll_create+set}" = set; then
8517 echo $ECHO_N "(cached) $ECHO_C" >&6
8518else
8519 ac_check_lib_save_LIBS=$LIBS
8520LIBS="-lepoll $LIBS"
8521cat >conftest.$ac_ext <<_ACEOF
8522/* confdefs.h. */
8523_ACEOF
8524cat confdefs.h >>conftest.$ac_ext
8525cat >>conftest.$ac_ext <<_ACEOF
8526/* end confdefs.h. */
8527
8528/* Override any GCC internal prototype to avoid an error.
8529 Use char because int might match the return type of a GCC
8530 builtin and then its argument prototype would still apply. */
8531#ifdef __cplusplus
8532extern "C"
8533#endif
8534char epoll_create ();
8535int
8536main ()
8537{
8538return epoll_create ();
8539 ;
8540 return 0;
8541}
8542_ACEOF
8543rm -f conftest.$ac_objext conftest$ac_exeext
8544if { (ac_try="$ac_link"
8545case "(($ac_try" in
8546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8547 *) ac_try_echo=$ac_try;;
8548esac
8549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8550 (eval "$ac_link") 2>conftest.er1
8551 ac_status=$?
8552 grep -v '^ *+' conftest.er1 >conftest.err
8553 rm -f conftest.er1
8554 cat conftest.err >&5
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); } && {
8557 test -z "$ac_c_werror_flag" ||
8558 test ! -s conftest.err
8559 } && test -s conftest$ac_exeext &&
8560 $as_test_x conftest$ac_exeext; then
8561 ac_cv_lib_epoll_epoll_create=yes
8562else
8563 echo "$as_me: failed program was:" >&5
8564sed 's/^/| /' conftest.$ac_ext >&5
8565
8566 ac_cv_lib_epoll_epoll_create=no
8567fi
8568
8569rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8570 conftest$ac_exeext conftest.$ac_ext
8571LIBS=$ac_check_lib_save_LIBS
8572fi
8573{ echo "$as_me:$LINENO: result: $ac_cv_lib_epoll_epoll_create" >&5
8574echo "${ECHO_T}$ac_cv_lib_epoll_epoll_create" >&6; }
8575if test $ac_cv_lib_epoll_epoll_create = yes; then
8576 LIBS="$LIBS -lepoll"; have_epoll_lib="yes"; engine="epoll"
8577else
8578 have_epoll_lib="no"
8579fi
8580
8581 if test "$HAVE_EPOLL_H $have_epoll_lib" = "yes no"; then
8582 { echo "$as_me:$LINENO: checking for epoll_create without -lepoll" >&5
8583echo $ECHO_N "checking for epoll_create without -lepoll... $ECHO_C" >&6; }
8584 if test "$cross_compiling" = yes; then
8585 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8586See \`config.log' for more details." >&5
8587echo "$as_me: error: cannot run test program while cross compiling
8588See \`config.log' for more details." >&2;}
8589 { (exit 1); exit 1; }; }
8590else
8591 cat >conftest.$ac_ext <<_ACEOF
8592/* confdefs.h. */
8593_ACEOF
8594cat confdefs.h >>conftest.$ac_ext
8595cat >>conftest.$ac_ext <<_ACEOF
8596/* end confdefs.h. */
8597
8598 #include <stdint.h>
8599 #include <sys/epoll.h>
8600 #include <errno.h>
8601
8602 #include <asm/unistd.h>
8603
8604 int main(int argc, char **argv) { return epoll_create(5) < 1; }
8605
8606_ACEOF
8607rm -f conftest$ac_exeext
8608if { (ac_try="$ac_link"
8609case "(($ac_try" in
8610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8611 *) ac_try_echo=$ac_try;;
8612esac
8613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8614 (eval "$ac_link") 2>&5
8615 ac_status=$?
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8618 { (case "(($ac_try" in
8619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620 *) ac_try_echo=$ac_try;;
8621esac
8622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8623 (eval "$ac_try") 2>&5
8624 ac_status=$?
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; }; then
8627 have_epoll_lib="yes"
8628else
8629 echo "$as_me: program exited with status $ac_status" >&5
8630echo "$as_me: failed program was:" >&5
8631sed 's/^/| /' conftest.$ac_ext >&5
8632
8633( exit $ac_status )
8634have_epoll_lib="no"
8635fi
8636rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8637fi
8638
8639
8640 { echo "$as_me:$LINENO: result: $have_epoll_lib" >&5
8641echo "${ECHO_T}$have_epoll_lib" >&6; }
8642 fi
8643 if test "$HAVE_EPOLL_H $have_epoll_lib" != "yes yes"; then
8644 { echo "$as_me:$LINENO: " >&5
8645echo "$as_me: " >&6;}
8646 { { echo "$as_me:$LINENO: error: epoll is not supported on this machine" >&5
8647echo "$as_me: error: epoll is not supported on this machine" >&2;}
8648 { (exit 1); exit 1; }; }
8649 { { echo "$as_me:$LINENO: error: " >&5
8650echo "$as_me: error: " >&2;}
8651 { (exit 1); exit 1; }; }
8652 fi
8653 { echo "$as_me:$LINENO: setting socketengine type to epoll" >&5
8654echo "$as_me: setting socketengine type to epoll" >&6;}
8655 engine="epoll";
8656elif test "$check_sengine" = "select"; then
8657 { echo "$as_me:$LINENO: setting socketengine type to select.. for some stupid reason" >&5
8658echo "$as_me: setting socketengine type to select.. for some stupid reason" >&6;}
8659 engine="select"
8660else
8661 { echo "$as_me:$LINENO: " >&5
8662echo "$as_me: " >&6;}
8663 { echo "$as_me:$LINENO: socket engine type incorrect!" >&5
8664echo "$as_me: socket engine type incorrect!" >&6;}
8665 { { echo "$as_me:$LINENO: error: " >&5
8666echo "$as_me: error: " >&2;}
8667 { (exit 1); exit 1; }; }
8668fi
8669
8670SENGINE="socketengine_$engine.c"
8671
8672if test $engine = "select"; then
8673 { echo "$as_me:$LINENO: checking to see if FD_SETSIZE is broken" >&5
8674echo $ECHO_N "checking to see if FD_SETSIZE is broken... $ECHO_C" >&6; }
8675 if test "$cross_compiling" = yes; then
8676 { echo "$as_me:$LINENO: result: can't tell" >&5
8677echo "${ECHO_T}can't tell" >&6; }
8678else
8679 cat >conftest.$ac_ext <<_ACEOF
8680/* confdefs.h. */
8681_ACEOF
8682cat confdefs.h >>conftest.$ac_ext
8683cat >>conftest.$ac_ext <<_ACEOF
8684/* end confdefs.h. */
8685
8686 #define FD_SETSIZE 666
8687 #include <sys/types.h>
8688 #include <sys/time.h>
8689
8690 int main()
8691 {
8692 if(FD_SETSIZE != 666)
8693 exit(1);
8694 exit(0);
8695 }
8696
8697_ACEOF
8698rm -f conftest$ac_exeext
8699if { (ac_try="$ac_link"
8700case "(($ac_try" in
8701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8702 *) ac_try_echo=$ac_try;;
8703esac
8704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8705 (eval "$ac_link") 2>&5
8706 ac_status=$?
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8709 { (case "(($ac_try" in
8710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8711 *) ac_try_echo=$ac_try;;
8712esac
8713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8714 (eval "$ac_try") 2>&5
8715 ac_status=$?
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); }; }; then
8718 { echo "$as_me:$LINENO: result: no" >&5
8719echo "${ECHO_T}no" >&6; }
8720else
8721 echo "$as_me: program exited with status $ac_status" >&5
8722echo "$as_me: failed program was:" >&5
8723sed 's/^/| /' conftest.$ac_ext >&5
8724
8725( exit $ac_status )
8726
8727 { echo "$as_me:$LINENO: result: YES" >&5
8728echo "${ECHO_T}YES" >&6; }
8729 { echo "$as_me:$LINENO: WARNING: FD_SETSIZE is hard set by your operating system" >&5
8730echo "$as_me: WARNING: FD_SETSIZE is hard set by your operating system" >&2;}
8731 { echo "$as_me:$LINENO: WARNING: MAXCONNECTIONS must be no higher than the hardwired FD_SETSIZE" >&5
8732echo "$as_me: WARNING: MAXCONNECTIONS must be no higher than the hardwired FD_SETSIZE" >&2;}
8733 cat >>confdefs.h <<\_ACEOF
8734#define BROKEN_FD_SETSIZE 1
8735_ACEOF
8736
8737 broken_fd_setsize="yes"
8738
8739fi
8740rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8741fi
8742
8743
8744fi
8745
bf042c35 8746if test "$check_maxconnections" = "auto"; then
8747
8748 { echo "$as_me:$LINENO: checking Maximum file descriptors" >&5
8749echo $ECHO_N "checking Maximum file descriptors... $ECHO_C" >&6; };
8750 if test "${maxconnections+set}" = set; then
8751 echo $ECHO_N "(cached) $ECHO_C" >&6
8752else
8753
8754
8755cat >conftest.$ac_ext <<_ACEOF
8756/* confdefs.h. */
8757_ACEOF
8758cat confdefs.h >>conftest.$ac_ext
8759cat >>conftest.$ac_ext <<_ACEOF
8760/* end confdefs.h. */
8761
8762 #include <sys/types.h>
8763 #include <sys/time.h>
8764 #include <sys/resource.h>
8765 #include <stdio.h>
8766 #ifdef RLIMIT_FDMAX
8767 #define RLIMIT_FD_MAX RLIMIT_FDMAX
8768 #else
8769 #ifdef RLIMIT_NOFILE
8770 #define RLIMIT_FD_MAX RLIMIT_NOFILE
8771 #else
8772 #ifdef RLIMIT_OPEN_MAX
8773 #define RLIMIT_FD_MAX RLIMIT_OPEN_MAX
8774 #else
8775 #undef RLIMIT_FD_MAX
8776 #endif
8777 #endif
8778 #endif
8779
8780
8781 int main()
8782 {
8783 #ifndef BROKEN_FD_SETSIZE
8784
8785 #ifdef RLIMIT_FD_MAX
8786 struct rlimit limit;
8787
8788 if(!getrlimit(RLIMIT_FD_MAX, &limit))
8789 {
8790 if(limit.rlim_max > 32768)
8791 printf("32768");
8792 else
8793 printf("%ld", (long) limit.rlim_max);
8794 }
8795 else
8796 #endif
8797 printf("256");
8798
8799 #else
8800 printf("%d", FD_SETSIZE);
8801 #endif
8802 return 0;
8803 }
8804
8805
8806_ACEOF
8807
8808 $CC -o conftest conftest.c >/dev/null 2>&1
8809 maxconnections=`./conftest`
8810 { echo "$as_me:$LINENO: result: $maxconnections" >&5
8811echo "${ECHO_T}$maxconnections" >&6; }
8812 $RM -f conftest conftest.c
8813
8814fi
8815
8816 cat >>confdefs.h <<_ACEOF
8817#define MAXCONNECTIONS ${maxconnections}
8818_ACEOF
8819
8820
8821else
8822 maxconnections=$check_maxconnections
8823 cat >>confdefs.h <<_ACEOF
8824#define MAXCONNECTIONS ${maxconnections}
8825_ACEOF
8826
8827fi
8828
8829# zlib test
8830# ripped from http://autoconf-archive.cryp.to/check_zlib.html
8831#
8832ZLIB_HOME=/usr/local
8833if test ! -f "${ZLIB_HOME}/include/zlib.h"
8834then
8835 ZLIB_HOME=/usr
8836fi
8837if test -n "${ZLIB_HOME}"
8838then
8839 ZLIB_OLD_LDFLAGS=$LDFLAGS
8840 ZLIB_OLD_CPPFLAGS=$LDFLAGS
8841 LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
8842 CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
8843
8844 ac_ext=c
8845ac_cpp='$CPP $CPPFLAGS'
8846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8848ac_compiler_gnu=$ac_cv_c_compiler_gnu
8849
8850 { echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
8851echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6; }
8852if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
8853 echo $ECHO_N "(cached) $ECHO_C" >&6
8854else
8855 ac_check_lib_save_LIBS=$LIBS
8856LIBS="-lz $LIBS"
8857cat >conftest.$ac_ext <<_ACEOF
8858/* confdefs.h. */
8859_ACEOF
8860cat confdefs.h >>conftest.$ac_ext
8861cat >>conftest.$ac_ext <<_ACEOF
8862/* end confdefs.h. */
8863
8864/* Override any GCC internal prototype to avoid an error.
8865 Use char because int might match the return type of a GCC
8866 builtin and then its argument prototype would still apply. */
8867#ifdef __cplusplus
8868extern "C"
8869#endif
8870char inflateEnd ();
8871int
8872main ()
8873{
8874return inflateEnd ();
8875 ;
8876 return 0;
8877}
8878_ACEOF
8879rm -f conftest.$ac_objext conftest$ac_exeext
8880if { (ac_try="$ac_link"
8881case "(($ac_try" in
8882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8883 *) ac_try_echo=$ac_try;;
8884esac
8885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8886 (eval "$ac_link") 2>conftest.er1
8887 ac_status=$?
8888 grep -v '^ *+' conftest.er1 >conftest.err
8889 rm -f conftest.er1
8890 cat conftest.err >&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); } && {
8893 test -z "$ac_c_werror_flag" ||
8894 test ! -s conftest.err
8895 } && test -s conftest$ac_exeext &&
8896 $as_test_x conftest$ac_exeext; then
8897 ac_cv_lib_z_inflateEnd=yes
8898else
8899 echo "$as_me: failed program was:" >&5
8900sed 's/^/| /' conftest.$ac_ext >&5
8901
8902 ac_cv_lib_z_inflateEnd=no
8903fi
8904
8905rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8906 conftest$ac_exeext conftest.$ac_ext
8907LIBS=$ac_check_lib_save_LIBS
8908fi
8909{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
8910echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6; }
8911if test $ac_cv_lib_z_inflateEnd = yes; then
8912 zlib_cv_libz=yes
8913else
8914 zlib_cv_libz=no
8915fi
8916
8917 if test "${ac_cv_header_zlib_h+set}" = set; then
8918 { echo "$as_me:$LINENO: checking for zlib.h" >&5
8919echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
8920if test "${ac_cv_header_zlib_h+set}" = set; then
8921 echo $ECHO_N "(cached) $ECHO_C" >&6
8922fi
8923{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8924echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
8925else
8926 # Is the header compilable?
8927{ echo "$as_me:$LINENO: checking zlib.h usability" >&5
8928echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
8929cat >conftest.$ac_ext <<_ACEOF
8930/* confdefs.h. */
8931_ACEOF
8932cat confdefs.h >>conftest.$ac_ext
8933cat >>conftest.$ac_ext <<_ACEOF
8934/* end confdefs.h. */
8935$ac_includes_default
8936#include <zlib.h>
8937_ACEOF
8938rm -f conftest.$ac_objext
8939if { (ac_try="$ac_compile"
8940case "(($ac_try" in
8941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8942 *) ac_try_echo=$ac_try;;
8943esac
8944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8945 (eval "$ac_compile") 2>conftest.er1
8946 ac_status=$?
8947 grep -v '^ *+' conftest.er1 >conftest.err
8948 rm -f conftest.er1
8949 cat conftest.err >&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); } && {
8952 test -z "$ac_c_werror_flag" ||
8953 test ! -s conftest.err
8954 } && test -s conftest.$ac_objext; then
8955 ac_header_compiler=yes
8956else
8957 echo "$as_me: failed program was:" >&5
8958sed 's/^/| /' conftest.$ac_ext >&5
8959
8960 ac_header_compiler=no
8961fi
8962
8963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8964{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8965echo "${ECHO_T}$ac_header_compiler" >&6; }
8966
8967# Is the header present?
8968{ echo "$as_me:$LINENO: checking zlib.h presence" >&5
8969echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
8970cat >conftest.$ac_ext <<_ACEOF
8971/* confdefs.h. */
8972_ACEOF
8973cat confdefs.h >>conftest.$ac_ext
8974cat >>conftest.$ac_ext <<_ACEOF
8975/* end confdefs.h. */
8976#include <zlib.h>
8977_ACEOF
8978if { (ac_try="$ac_cpp conftest.$ac_ext"
8979case "(($ac_try" in
8980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8981 *) ac_try_echo=$ac_try;;
8982esac
8983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8985 ac_status=$?
8986 grep -v '^ *+' conftest.er1 >conftest.err
8987 rm -f conftest.er1
8988 cat conftest.err >&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); } >/dev/null && {
8991 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8992 test ! -s conftest.err
8993 }; then
8994 ac_header_preproc=yes
8995else
8996 echo "$as_me: failed program was:" >&5
8997sed 's/^/| /' conftest.$ac_ext >&5
8998
8999 ac_header_preproc=no
9000fi
9001
9002rm -f conftest.err conftest.$ac_ext
9003{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9004echo "${ECHO_T}$ac_header_preproc" >&6; }
9005
9006# So? What about this header?
9007case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9008 yes:no: )
9009 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9010echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9011 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
9012echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
9013 ac_header_preproc=yes
9014 ;;
9015 no:yes:* )
9016 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
9017echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
9018 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
9019echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
9020 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
9021echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
9022 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
9023echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
9024 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
9025echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
9026 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
9027echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
9028
9029 ;;
9030esac
9031{ echo "$as_me:$LINENO: checking for zlib.h" >&5
9032echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
9033if test "${ac_cv_header_zlib_h+set}" = set; then
9034 echo $ECHO_N "(cached) $ECHO_C" >&6
9035else
9036 ac_cv_header_zlib_h=$ac_header_preproc
9037fi
9038{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9039echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
9040
9041fi
9042if test $ac_cv_header_zlib_h = yes; then
9043 zlib_cv_zlib_h=yes
9044else
9045 zlib_cv_zlib_h=no
9046fi
9047
9048
9049 ac_ext=c
9050ac_cpp='$CPP $CPPFLAGS'
9051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9053ac_compiler_gnu=$ac_cv_c_compiler_gnu
9054
9055 if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes"
9056 then
9057 #
9058 # If both library and header were found, use them
9059 #
9060
9061{ echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
9062echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6; }
9063if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
9064 echo $ECHO_N "(cached) $ECHO_C" >&6
9065else
9066 ac_check_lib_save_LIBS=$LIBS
9067LIBS="-lz $LIBS"
9068cat >conftest.$ac_ext <<_ACEOF
9069/* confdefs.h. */
9070_ACEOF
9071cat confdefs.h >>conftest.$ac_ext
9072cat >>conftest.$ac_ext <<_ACEOF
9073/* end confdefs.h. */
9074
9075/* Override any GCC internal prototype to avoid an error.
9076 Use char because int might match the return type of a GCC
9077 builtin and then its argument prototype would still apply. */
9078#ifdef __cplusplus
9079extern "C"
9080#endif
9081char inflateEnd ();
9082int
9083main ()
9084{
9085return inflateEnd ();
9086 ;
9087 return 0;
9088}
9089_ACEOF
9090rm -f conftest.$ac_objext conftest$ac_exeext
9091if { (ac_try="$ac_link"
9092case "(($ac_try" in
9093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9094 *) ac_try_echo=$ac_try;;
9095esac
9096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9097 (eval "$ac_link") 2>conftest.er1
9098 ac_status=$?
9099 grep -v '^ *+' conftest.er1 >conftest.err
9100 rm -f conftest.er1
9101 cat conftest.err >&5
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); } && {
9104 test -z "$ac_c_werror_flag" ||
9105 test ! -s conftest.err
9106 } && test -s conftest$ac_exeext &&
9107 $as_test_x conftest$ac_exeext; then
9108 ac_cv_lib_z_inflateEnd=yes
9109else
9110 echo "$as_me: failed program was:" >&5
9111sed 's/^/| /' conftest.$ac_ext >&5
9112
9113 ac_cv_lib_z_inflateEnd=no
9114fi
9115
9116rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9117 conftest$ac_exeext conftest.$ac_ext
9118LIBS=$ac_check_lib_save_LIBS
9119fi
9120{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
9121echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6; }
9122if test $ac_cv_lib_z_inflateEnd = yes; then
9123 cat >>confdefs.h <<_ACEOF
9124#define HAVE_LIBZ 1
9125_ACEOF
9126
9127 LIBS="-lz $LIBS"
9128
9129fi
9130
9131 { echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5
9132echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6; }
9133 { echo "$as_me:$LINENO: result: ok" >&5
9134echo "${ECHO_T}ok" >&6; }
9135 else
9136 #
9137 # If either header or library was not found, revert and bomb
9138 #
9139 { echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5
9140echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6; }
9141 LDFLAGS="$ZLIB_OLD_LDFLAGS"
9142 CPPFLAGS="$ZLIB_OLD_CPPFLAGS"
9143 { echo "$as_me:$LINENO: result: failed" >&5
9144echo "${ECHO_T}failed" >&6; }
9145 { { echo "$as_me:$LINENO: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&5
9146echo "$as_me: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&2;}
9147 { (exit 1); exit 1; }; }
9148 fi
9149fi
9150
9151if test "$engine" = "select" && test "$broken_fd_setsize" != "yes"; then
fd028c16 9152 CFLAGS="$CFLAGS -DUSE_SELECT -DFD_SETSIZE=$maxconnections"
9153elif test "$engine" = "select"; then
9154 CFLAGS="$CFLAGS -DUSE_SELECT"
9155elif test "$engine" = "poll"; then
9156 CFLAGS="$CFLAGS -DUSE_POLL"
9157elif test "$engine" = "epoll"; then
9158 CFLAGS="$CFLAGS -DUSE_EPOLL"
9159elif test "$engine" = "kqueue"; then
9160 CFLAGS="$CFLAGS -DUSE_KQUEUE"
9161elif test "$engine" = "devpoll"; then
9162 CFLAGS="$CFLAGS -DUSE_DEVPOLL"
bf042c35 9163fi
9164
9165INSTALL_DIR="${prefix}"
9166
9167
9168
9169
9170
9171
9172
9173ac_config_files="$ac_config_files src/Makefile"
9174
9175cat >confcache <<\_ACEOF
9176# This file is a shell script that caches the results of configure
9177# tests run on this system so they can be shared between configure
9178# scripts and configure runs, see configure's option --config-cache.
9179# It is not useful on other systems. If it contains results you don't
9180# want to keep, you may remove or edit it.
9181#
9182# config.status only pays attention to the cache file if you give it
9183# the --recheck option to rerun configure.
9184#
9185# `ac_cv_env_foo' variables (set or unset) will be overridden when
9186# loading this file, other *unset* `ac_cv_foo' will be assigned the
9187# following values.
9188
9189_ACEOF
9190
9191# The following way of writing the cache mishandles newlines in values,
9192# but we know of no workaround that is simple, portable, and efficient.
9193# So, we kill variables containing newlines.
9194# Ultrix sh set writes to stderr and can't be redirected directly,
9195# and sets the high bit in the cache file unless we assign to the vars.
9196(
9197 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9198 eval ac_val=\$$ac_var
9199 case $ac_val in #(
9200 *${as_nl}*)
9201 case $ac_var in #(
9202 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
9203echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
9204 esac
9205 case $ac_var in #(
9206 _ | IFS | as_nl) ;; #(
9207 *) $as_unset $ac_var ;;
9208 esac ;;
9209 esac
9210 done
9211
9212 (set) 2>&1 |
9213 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9214 *${as_nl}ac_space=\ *)
9215 # `set' does not quote correctly, so add quotes (double-quote
9216 # substitution turns \\\\ into \\, and sed turns \\ into \).
9217 sed -n \
9218 "s/'/'\\\\''/g;
9219 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9220 ;; #(
9221 *)
9222 # `set' quotes correctly as required by POSIX, so do not add quotes.
9223 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9224 ;;
9225 esac |
9226 sort
9227) |
9228 sed '
9229 /^ac_cv_env_/b end
9230 t clear
9231 :clear
9232 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9233 t end
9234 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9235 :end' >>confcache
9236if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9237 if test -w "$cache_file"; then
9238 test "x$cache_file" != "x/dev/null" &&
9239 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
9240echo "$as_me: updating cache $cache_file" >&6;}
9241 cat confcache >$cache_file
9242 else
9243 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9244echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9245 fi
9246fi
9247rm -f confcache
9248
9249test "x$prefix" = xNONE && prefix=$ac_default_prefix
9250# Let make expand exec_prefix.
9251test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9252
9253DEFS=-DHAVE_CONFIG_H
9254
9255ac_libobjs=
9256ac_ltlibobjs=
9257for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9258 # 1. Remove the extension, and $U if already installed.
9259 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9260 ac_i=`echo "$ac_i" | sed "$ac_script"`
9261 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9262 # will be set to the directory where LIBOBJS objects are built.
9263 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9264 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
9265done
9266LIBOBJS=$ac_libobjs
9267
9268LTLIBOBJS=$ac_ltlibobjs
9269
9270
9271
9272: ${CONFIG_STATUS=./config.status}
9273ac_clean_files_save=$ac_clean_files
9274ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9275{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9276echo "$as_me: creating $CONFIG_STATUS" >&6;}
9277cat >$CONFIG_STATUS <<_ACEOF
9278#! $SHELL
9279# Generated by $as_me.
9280# Run this file to recreate the current configuration.
9281# Compiler output produced by configure, useful for debugging
9282# configure, is in config.log if it exists.
9283
9284debug=false
9285ac_cs_recheck=false
9286ac_cs_silent=false
9287SHELL=\${CONFIG_SHELL-$SHELL}
9288_ACEOF
9289
9290cat >>$CONFIG_STATUS <<\_ACEOF
9291## --------------------- ##
9292## M4sh Initialization. ##
9293## --------------------- ##
9294
9295# Be more Bourne compatible
9296DUALCASE=1; export DUALCASE # for MKS sh
9297if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9298 emulate sh
9299 NULLCMD=:
9300 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9301 # is contrary to our usage. Disable this feature.
9302 alias -g '${1+"$@"}'='"$@"'
9303 setopt NO_GLOB_SUBST
9304else
9305 case `(set -o) 2>/dev/null` in
9306 *posix*) set -o posix ;;
9307esac
9308
9309fi
9310
9311
9312
9313
9314# PATH needs CR
9315# Avoid depending upon Character Ranges.
9316as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9317as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9318as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9319as_cr_digits='0123456789'
9320as_cr_alnum=$as_cr_Letters$as_cr_digits
9321
9322# The user is always right.
9323if test "${PATH_SEPARATOR+set}" != set; then
9324 echo "#! /bin/sh" >conf$$.sh
9325 echo "exit 0" >>conf$$.sh
9326 chmod +x conf$$.sh
9327 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9328 PATH_SEPARATOR=';'
9329 else
9330 PATH_SEPARATOR=:
9331 fi
9332 rm -f conf$$.sh
9333fi
9334
9335# Support unset when possible.
9336if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9337 as_unset=unset
9338else
9339 as_unset=false
9340fi
9341
9342
9343# IFS
9344# We need space, tab and new line, in precisely that order. Quoting is
9345# there to prevent editors from complaining about space-tab.
9346# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9347# splitting by setting IFS to empty value.)
9348as_nl='
9349'
9350IFS=" "" $as_nl"
9351
9352# Find who we are. Look in the path if we contain no directory separator.
9353case $0 in
9354 *[\\/]* ) as_myself=$0 ;;
9355 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9356for as_dir in $PATH
9357do
9358 IFS=$as_save_IFS
9359 test -z "$as_dir" && as_dir=.
9360 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9361done
9362IFS=$as_save_IFS
9363
9364 ;;
9365esac
9366# We did not find ourselves, most probably we were run as `sh COMMAND'
9367# in which case we are not to be found in the path.
9368if test "x$as_myself" = x; then
9369 as_myself=$0
9370fi
9371if test ! -f "$as_myself"; then
9372 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9373 { (exit 1); exit 1; }
9374fi
9375
9376# Work around bugs in pre-3.0 UWIN ksh.
9377for as_var in ENV MAIL MAILPATH
9378do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9379done
9380PS1='$ '
9381PS2='> '
9382PS4='+ '
9383
9384# NLS nuisances.
9385for as_var in \
9386 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9387 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9388 LC_TELEPHONE LC_TIME
9389do
9390 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9391 eval $as_var=C; export $as_var
9392 else
9393 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9394 fi
9395done
9396
9397# Required to use basename.
9398if expr a : '\(a\)' >/dev/null 2>&1 &&
9399 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9400 as_expr=expr
9401else
9402 as_expr=false
9403fi
9404
9405if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9406 as_basename=basename
9407else
9408 as_basename=false
9409fi
9410
9411
9412# Name of the executable.
9413as_me=`$as_basename -- "$0" ||
9414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9415 X"$0" : 'X\(//\)$' \| \
9416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9417echo X/"$0" |
9418 sed '/^.*\/\([^/][^/]*\)\/*$/{
9419 s//\1/
9420 q
9421 }
9422 /^X\/\(\/\/\)$/{
9423 s//\1/
9424 q
9425 }
9426 /^X\/\(\/\).*/{
9427 s//\1/
9428 q
9429 }
9430 s/.*/./; q'`
9431
9432# CDPATH.
9433$as_unset CDPATH
9434
9435
9436
9437 as_lineno_1=$LINENO
9438 as_lineno_2=$LINENO
9439 test "x$as_lineno_1" != "x$as_lineno_2" &&
9440 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9441
9442 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9443 # uniformly replaced by the line number. The first 'sed' inserts a
9444 # line-number line after each line using $LINENO; the second 'sed'
9445 # does the real work. The second script uses 'N' to pair each
9446 # line-number line with the line containing $LINENO, and appends
9447 # trailing '-' during substitution so that $LINENO is not a special
9448 # case at line end.
9449 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9450 # scripts with optimization help from Paolo Bonzini. Blame Lee
9451 # E. McMahon (1931-1989) for sed's syntax. :-)
9452 sed -n '
9453 p
9454 /[$]LINENO/=
9455 ' <$as_myself |
9456 sed '
9457 s/[$]LINENO.*/&-/
9458 t lineno
9459 b
9460 :lineno
9461 N
9462 :loop
9463 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9464 t loop
9465 s/-\n.*//
9466 ' >$as_me.lineno &&
9467 chmod +x "$as_me.lineno" ||
9468 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9469 { (exit 1); exit 1; }; }
9470
9471 # Don't try to exec as it changes $[0], causing all sort of problems
9472 # (the dirname of $[0] is not the place where we might find the
9473 # original and so on. Autoconf is especially sensitive to this).
9474 . "./$as_me.lineno"
9475 # Exit status is that of the last command.
9476 exit
9477}
9478
9479
9480if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9481 as_dirname=dirname
9482else
9483 as_dirname=false
9484fi
9485
9486ECHO_C= ECHO_N= ECHO_T=
9487case `echo -n x` in
9488-n*)
9489 case `echo 'x\c'` in
9490 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9491 *) ECHO_C='\c';;
9492 esac;;
9493*)
9494 ECHO_N='-n';;
9495esac
9496
9497if expr a : '\(a\)' >/dev/null 2>&1 &&
9498 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9499 as_expr=expr
9500else
9501 as_expr=false
9502fi
9503
9504rm -f conf$$ conf$$.exe conf$$.file
9505if test -d conf$$.dir; then
9506 rm -f conf$$.dir/conf$$.file
9507else
9508 rm -f conf$$.dir
9509 mkdir conf$$.dir
9510fi
9511echo >conf$$.file
9512if ln -s conf$$.file conf$$ 2>/dev/null; then
9513 as_ln_s='ln -s'
9514 # ... but there are two gotchas:
9515 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9516 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9517 # In both cases, we have to default to `cp -p'.
9518 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9519 as_ln_s='cp -p'
9520elif ln conf$$.file conf$$ 2>/dev/null; then
9521 as_ln_s=ln
9522else
9523 as_ln_s='cp -p'
9524fi
9525rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9526rmdir conf$$.dir 2>/dev/null
9527
9528if mkdir -p . 2>/dev/null; then
9529 as_mkdir_p=:
9530else
9531 test -d ./-p && rmdir ./-p
9532 as_mkdir_p=false
9533fi
9534
9535if test -x / >/dev/null 2>&1; then
9536 as_test_x='test -x'
9537else
9538 if ls -dL / >/dev/null 2>&1; then
9539 as_ls_L_option=L
9540 else
9541 as_ls_L_option=
9542 fi
9543 as_test_x='
9544 eval sh -c '\''
9545 if test -d "$1"; then
9546 test -d "$1/.";
9547 else
9548 case $1 in
9549 -*)set "./$1";;
9550 esac;
9551 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
9552 ???[sx]*):;;*)false;;esac;fi
9553 '\'' sh
9554 '
9555fi
9556as_executable_p=$as_test_x
9557
9558# Sed expression to map a string onto a valid CPP name.
9559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9560
9561# Sed expression to map a string onto a valid variable name.
9562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9563
9564
9565exec 6>&1
9566
9567# Save the log message, to keep $[0] and so on meaningful, and to
9568# report actual input values of CONFIG_FILES etc. instead of their
9569# values after options handling.
9570ac_log="
9571This file was extended by $as_me, which was
9572generated by GNU Autoconf 2.61. Invocation command line was
9573
9574 CONFIG_FILES = $CONFIG_FILES
9575 CONFIG_HEADERS = $CONFIG_HEADERS
9576 CONFIG_LINKS = $CONFIG_LINKS
9577 CONFIG_COMMANDS = $CONFIG_COMMANDS
9578 $ $0 $@
9579
9580on `(hostname || uname -n) 2>/dev/null | sed 1q`
9581"
9582
9583_ACEOF
9584
9585cat >>$CONFIG_STATUS <<_ACEOF
9586# Files that config.status was made for.
9587config_files="$ac_config_files"
9588config_headers="$ac_config_headers"
9589
9590_ACEOF
9591
9592cat >>$CONFIG_STATUS <<\_ACEOF
9593ac_cs_usage="\
9594\`$as_me' instantiates files from templates according to the
9595current configuration.
9596
9597Usage: $0 [OPTIONS] [FILE]...
9598
9599 -h, --help print this help, then exit
9600 -V, --version print version number and configuration settings, then exit
9601 -q, --quiet do not print progress messages
9602 -d, --debug don't remove temporary files
9603 --recheck update $as_me by reconfiguring in the same conditions
9604 --file=FILE[:TEMPLATE]
9605 instantiate the configuration file FILE
9606 --header=FILE[:TEMPLATE]
9607 instantiate the configuration header FILE
9608
9609Configuration files:
9610$config_files
9611
9612Configuration headers:
9613$config_headers
9614
9615Report bugs to <bug-autoconf@gnu.org>."
9616
9617_ACEOF
9618cat >>$CONFIG_STATUS <<_ACEOF
9619ac_cs_version="\\
9620config.status
9621configured by $0, generated by GNU Autoconf 2.61,
9622 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9623
9624Copyright (C) 2006 Free Software Foundation, Inc.
9625This config.status script is free software; the Free Software Foundation
9626gives unlimited permission to copy, distribute and modify it."
9627
9628ac_pwd='$ac_pwd'
9629srcdir='$srcdir'
9630INSTALL='$INSTALL'
9631_ACEOF
9632
9633cat >>$CONFIG_STATUS <<\_ACEOF
9634# If no file are specified by the user, then we need to provide default
9635# value. By we need to know if files were specified by the user.
9636ac_need_defaults=:
9637while test $# != 0
9638do
9639 case $1 in
9640 --*=*)
9641 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9642 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9643 ac_shift=:
9644 ;;
9645 *)
9646 ac_option=$1
9647 ac_optarg=$2
9648 ac_shift=shift
9649 ;;
9650 esac
9651
9652 case $ac_option in
9653 # Handling of the options.
9654 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9655 ac_cs_recheck=: ;;
9656 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9657 echo "$ac_cs_version"; exit ;;
9658 --debug | --debu | --deb | --de | --d | -d )
9659 debug=: ;;
9660 --file | --fil | --fi | --f )
9661 $ac_shift
9662 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9663 ac_need_defaults=false;;
9664 --header | --heade | --head | --hea )
9665 $ac_shift
9666 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9667 ac_need_defaults=false;;
9668 --he | --h)
9669 # Conflict between --help and --header
9670 { echo "$as_me: error: ambiguous option: $1
9671Try \`$0 --help' for more information." >&2
9672 { (exit 1); exit 1; }; };;
9673 --help | --hel | -h )
9674 echo "$ac_cs_usage"; exit ;;
9675 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9676 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9677 ac_cs_silent=: ;;
9678
9679 # This is an error.
9680 -*) { echo "$as_me: error: unrecognized option: $1
9681Try \`$0 --help' for more information." >&2
9682 { (exit 1); exit 1; }; } ;;
9683
9684 *) ac_config_targets="$ac_config_targets $1"
9685 ac_need_defaults=false ;;
9686
9687 esac
9688 shift
9689done
9690
9691ac_configure_extra_args=
9692
9693if $ac_cs_silent; then
9694 exec 6>/dev/null
9695 ac_configure_extra_args="$ac_configure_extra_args --silent"
9696fi
9697
9698_ACEOF
9699cat >>$CONFIG_STATUS <<_ACEOF
9700if \$ac_cs_recheck; then
9701 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9702 CONFIG_SHELL=$SHELL
9703 export CONFIG_SHELL
9704 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9705fi
9706
9707_ACEOF
9708cat >>$CONFIG_STATUS <<\_ACEOF
9709exec 5>>config.log
9710{
9711 echo
9712 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9713## Running $as_me. ##
9714_ASBOX
9715 echo "$ac_log"
9716} >&5
9717
9718_ACEOF
9719cat >>$CONFIG_STATUS <<_ACEOF
9720_ACEOF
9721
9722cat >>$CONFIG_STATUS <<\_ACEOF
9723
9724# Handling of arguments.
9725for ac_config_target in $ac_config_targets
9726do
9727 case $ac_config_target in
9728 "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;;
9729 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9730
9731 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9732echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9733 { (exit 1); exit 1; }; };;
9734 esac
9735done
9736
9737
9738# If the user did not use the arguments to specify the items to instantiate,
9739# then the envvar interface is used. Set only those that are not.
9740# We use the long form for the default assignment because of an extremely
9741# bizarre bug on SunOS 4.1.3.
9742if $ac_need_defaults; then
9743 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9744 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9745fi
9746
9747# Have a temporary directory for convenience. Make it in the build tree
9748# simply because there is no reason against having it here, and in addition,
9749# creating and moving files from /tmp can sometimes cause problems.
9750# Hook for its removal unless debugging.
9751# Note that there is a small window in which the directory will not be cleaned:
9752# after its creation but before its name has been assigned to `$tmp'.
9753$debug ||
9754{
9755 tmp=
9756 trap 'exit_status=$?
9757 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9758' 0
9759 trap '{ (exit 1); exit 1; }' 1 2 13 15
9760}
9761# Create a (secure) tmp directory for tmp files.
9762
9763{
9764 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9765 test -n "$tmp" && test -d "$tmp"
9766} ||
9767{
9768 tmp=./conf$$-$RANDOM
9769 (umask 077 && mkdir "$tmp")
9770} ||
9771{
9772 echo "$me: cannot create a temporary directory in ." >&2
9773 { (exit 1); exit 1; }
9774}
9775
9776#
9777# Set up the sed scripts for CONFIG_FILES section.
9778#
9779
9780# No need to generate the scripts if there are no CONFIG_FILES.
9781# This happens for instance when ./config.status config.h
9782if test -n "$CONFIG_FILES"; then
9783
9784_ACEOF
9785
9786
9787
9788ac_delim='%!_!# '
9789for ac_last_try in false false false false false :; do
9790 cat >conf$$subs.sed <<_ACEOF
9791SHELL!$SHELL$ac_delim
9792PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
9793PACKAGE_NAME!$PACKAGE_NAME$ac_delim
9794PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
9795PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
9796PACKAGE_STRING!$PACKAGE_STRING$ac_delim
9797PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
9798exec_prefix!$exec_prefix$ac_delim
9799prefix!$prefix$ac_delim
9800program_transform_name!$program_transform_name$ac_delim
9801bindir!$bindir$ac_delim
9802sbindir!$sbindir$ac_delim
9803libexecdir!$libexecdir$ac_delim
9804datarootdir!$datarootdir$ac_delim
9805datadir!$datadir$ac_delim
9806sysconfdir!$sysconfdir$ac_delim
9807sharedstatedir!$sharedstatedir$ac_delim
9808localstatedir!$localstatedir$ac_delim
9809includedir!$includedir$ac_delim
9810oldincludedir!$oldincludedir$ac_delim
9811docdir!$docdir$ac_delim
9812infodir!$infodir$ac_delim
9813htmldir!$htmldir$ac_delim
9814dvidir!$dvidir$ac_delim
9815pdfdir!$pdfdir$ac_delim
9816psdir!$psdir$ac_delim
9817libdir!$libdir$ac_delim
9818localedir!$localedir$ac_delim
9819mandir!$mandir$ac_delim
9820DEFS!$DEFS$ac_delim
9821ECHO_C!$ECHO_C$ac_delim
9822ECHO_N!$ECHO_N$ac_delim
9823ECHO_T!$ECHO_T$ac_delim
9824LIBS!$LIBS$ac_delim
9825build_alias!$build_alias$ac_delim
9826host_alias!$host_alias$ac_delim
9827target_alias!$target_alias$ac_delim
9828CC!$CC$ac_delim
9829CFLAGS!$CFLAGS$ac_delim
9830LDFLAGS!$LDFLAGS$ac_delim
9831CPPFLAGS!$CPPFLAGS$ac_delim
9832ac_ct_CC!$ac_ct_CC$ac_delim
9833EXEEXT!$EXEEXT$ac_delim
9834OBJEXT!$OBJEXT$ac_delim
9835build!$build$ac_delim
9836build_cpu!$build_cpu$ac_delim
9837build_vendor!$build_vendor$ac_delim
9838build_os!$build_os$ac_delim
9839host!$host$ac_delim
9840host_cpu!$host_cpu$ac_delim
9841host_vendor!$host_vendor$ac_delim
9842host_os!$host_os$ac_delim
11b73fef 9843PRTDIAG!$PRTDIAG$ac_delim
bf042c35 9844target!$target$ac_delim
9845target_cpu!$target_cpu$ac_delim
9846target_vendor!$target_vendor$ac_delim
9847target_os!$target_os$ac_delim
bf042c35 9848SET_MAKE!$SET_MAKE$ac_delim
9849RM!$RM$ac_delim
9850CP!$CP$ac_delim
9851MV!$MV$ac_delim
9852SED!$SED$ac_delim
9853INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
9854INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
9855INSTALL_DATA!$INSTALL_DATA$ac_delim
9856CPP!$CPP$ac_delim
9857GREP!$GREP$ac_delim
9858EGREP!$EGREP$ac_delim
9859LIBOBJS!$LIBOBJS$ac_delim
bf042c35 9860SSL_INCLUDES!$SSL_INCLUDES$ac_delim
9861SSL_LIBS!$SSL_LIBS$ac_delim
9862SENGINE!$SENGINE$ac_delim
9863INSTALL_DIR!$INSTALL_DIR$ac_delim
9864LTLIBOBJS!$LTLIBOBJS$ac_delim
9865_ACEOF
9866
c1e4317a 9867 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 74; then
bf042c35 9868 break
9869 elif $ac_last_try; then
9870 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9871echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9872 { (exit 1); exit 1; }; }
9873 else
9874 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9875 fi
9876done
9877
9878ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9879if test -n "$ac_eof"; then
9880 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9881 ac_eof=`expr $ac_eof + 1`
9882fi
9883
9884cat >>$CONFIG_STATUS <<_ACEOF
9885cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
9886/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
9887_ACEOF
9888sed '
9889s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9890s/^/s,@/; s/!/@,|#_!!_#|/
9891:n
9892t n
9893s/'"$ac_delim"'$/,g/; t
9894s/$/\\/; p
9895N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9896' >>$CONFIG_STATUS <conf$$subs.sed
9897rm -f conf$$subs.sed
9898cat >>$CONFIG_STATUS <<_ACEOF
9899:end
9900s/|#_!!_#|//g
9901CEOF$ac_eof
9902_ACEOF
9903
9904
9905# VPATH may cause trouble with some makes, so we remove $(srcdir),
9906# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9907# trailing colons and then remove the whole line if VPATH becomes empty
9908# (actually we leave an empty line to preserve line numbers).
9909if test "x$srcdir" = x.; then
9910 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9911s/:*\$(srcdir):*/:/
9912s/:*\${srcdir}:*/:/
9913s/:*@srcdir@:*/:/
9914s/^\([^=]*=[ ]*\):*/\1/
9915s/:*$//
9916s/^[^=]*=[ ]*$//
9917}'
9918fi
9919
9920cat >>$CONFIG_STATUS <<\_ACEOF
9921fi # test -n "$CONFIG_FILES"
9922
9923
9924for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
9925do
9926 case $ac_tag in
9927 :[FHLC]) ac_mode=$ac_tag; continue;;
9928 esac
9929 case $ac_mode$ac_tag in
9930 :[FHL]*:*);;
9931 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
9932echo "$as_me: error: Invalid tag $ac_tag." >&2;}
9933 { (exit 1); exit 1; }; };;
9934 :[FH]-) ac_tag=-:-;;
9935 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9936 esac
9937 ac_save_IFS=$IFS
9938 IFS=:
9939 set x $ac_tag
9940 IFS=$ac_save_IFS
9941 shift
9942 ac_file=$1
9943 shift
9944
9945 case $ac_mode in
9946 :L) ac_source=$1;;
9947 :[FH])
9948 ac_file_inputs=
9949 for ac_f
9950 do
9951 case $ac_f in
9952 -) ac_f="$tmp/stdin";;
9953 *) # Look for the file first in the build tree, then in the source tree
9954 # (if the path is not absolute). The absolute path cannot be DOS-style,
9955 # because $ac_f cannot contain `:'.
9956 test -f "$ac_f" ||
9957 case $ac_f in
9958 [\\/$]*) false;;
9959 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9960 esac ||
9961 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9962echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9963 { (exit 1); exit 1; }; };;
9964 esac
9965 ac_file_inputs="$ac_file_inputs $ac_f"
9966 done
9967
9968 # Let's still pretend it is `configure' which instantiates (i.e., don't
9969 # use $as_me), people would be surprised to read:
9970 # /* config.h. Generated by config.status. */
9971 configure_input="Generated from "`IFS=:
9972 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
9973 if test x"$ac_file" != x-; then
9974 configure_input="$ac_file. $configure_input"
9975 { echo "$as_me:$LINENO: creating $ac_file" >&5
9976echo "$as_me: creating $ac_file" >&6;}
9977 fi
9978
9979 case $ac_tag in
9980 *:-:* | *:-) cat >"$tmp/stdin";;
9981 esac
9982 ;;
9983 esac
9984
9985 ac_dir=`$as_dirname -- "$ac_file" ||
9986$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9987 X"$ac_file" : 'X\(//\)[^/]' \| \
9988 X"$ac_file" : 'X\(//\)$' \| \
9989 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9990echo X"$ac_file" |
9991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9992 s//\1/
9993 q
9994 }
9995 /^X\(\/\/\)[^/].*/{
9996 s//\1/
9997 q
9998 }
9999 /^X\(\/\/\)$/{
10000 s//\1/
10001 q
10002 }
10003 /^X\(\/\).*/{
10004 s//\1/
10005 q
10006 }
10007 s/.*/./; q'`
10008 { as_dir="$ac_dir"
10009 case $as_dir in #(
10010 -*) as_dir=./$as_dir;;
10011 esac
10012 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10013 as_dirs=
10014 while :; do
10015 case $as_dir in #(
10016 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10017 *) as_qdir=$as_dir;;
10018 esac
10019 as_dirs="'$as_qdir' $as_dirs"
10020 as_dir=`$as_dirname -- "$as_dir" ||
10021$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10022 X"$as_dir" : 'X\(//\)[^/]' \| \
10023 X"$as_dir" : 'X\(//\)$' \| \
10024 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10025echo X"$as_dir" |
10026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10027 s//\1/
10028 q
10029 }
10030 /^X\(\/\/\)[^/].*/{
10031 s//\1/
10032 q
10033 }
10034 /^X\(\/\/\)$/{
10035 s//\1/
10036 q
10037 }
10038 /^X\(\/\).*/{
10039 s//\1/
10040 q
10041 }
10042 s/.*/./; q'`
10043 test -d "$as_dir" && break
10044 done
10045 test -z "$as_dirs" || eval "mkdir $as_dirs"
10046 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10047echo "$as_me: error: cannot create directory $as_dir" >&2;}
10048 { (exit 1); exit 1; }; }; }
10049 ac_builddir=.
10050
10051case "$ac_dir" in
10052.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10053*)
10054 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10055 # A ".." for each directory in $ac_dir_suffix.
10056 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
10057 case $ac_top_builddir_sub in
10058 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10059 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10060 esac ;;
10061esac
10062ac_abs_top_builddir=$ac_pwd
10063ac_abs_builddir=$ac_pwd$ac_dir_suffix
10064# for backward compatibility:
10065ac_top_builddir=$ac_top_build_prefix
10066
10067case $srcdir in
10068 .) # We are building in place.
10069 ac_srcdir=.
10070 ac_top_srcdir=$ac_top_builddir_sub
10071 ac_abs_top_srcdir=$ac_pwd ;;
10072 [\\/]* | ?:[\\/]* ) # Absolute name.
10073 ac_srcdir=$srcdir$ac_dir_suffix;
10074 ac_top_srcdir=$srcdir
10075 ac_abs_top_srcdir=$srcdir ;;
10076 *) # Relative name.
10077 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10078 ac_top_srcdir=$ac_top_build_prefix$srcdir
10079 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10080esac
10081ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10082
10083
10084 case $ac_mode in
10085 :F)
10086 #
10087 # CONFIG_FILE
10088 #
10089
10090 case $INSTALL in
10091 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10092 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10093 esac
10094_ACEOF
10095
10096cat >>$CONFIG_STATUS <<\_ACEOF
10097# If the template does not know about datarootdir, expand it.
10098# FIXME: This hack should be removed a few years after 2.60.
10099ac_datarootdir_hack=; ac_datarootdir_seen=
10100
10101case `sed -n '/datarootdir/ {
10102 p
10103 q
10104}
10105/@datadir@/p
10106/@docdir@/p
10107/@infodir@/p
10108/@localedir@/p
10109/@mandir@/p
10110' $ac_file_inputs` in
10111*datarootdir*) ac_datarootdir_seen=yes;;
10112*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10113 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10114echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10115_ACEOF
10116cat >>$CONFIG_STATUS <<_ACEOF
10117 ac_datarootdir_hack='
10118 s&@datadir@&$datadir&g
10119 s&@docdir@&$docdir&g
10120 s&@infodir@&$infodir&g
10121 s&@localedir@&$localedir&g
10122 s&@mandir@&$mandir&g
10123 s&\\\${datarootdir}&$datarootdir&g' ;;
10124esac
10125_ACEOF
10126
10127# Neutralize VPATH when `$srcdir' = `.'.
10128# Shell code in configure.ac might set extrasub.
10129# FIXME: do we really want to maintain this feature?
10130cat >>$CONFIG_STATUS <<_ACEOF
10131 sed "$ac_vpsub
10132$extrasub
10133_ACEOF
10134cat >>$CONFIG_STATUS <<\_ACEOF
10135:t
10136/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10137s&@configure_input@&$configure_input&;t t
10138s&@top_builddir@&$ac_top_builddir_sub&;t t
10139s&@srcdir@&$ac_srcdir&;t t
10140s&@abs_srcdir@&$ac_abs_srcdir&;t t
10141s&@top_srcdir@&$ac_top_srcdir&;t t
10142s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10143s&@builddir@&$ac_builddir&;t t
10144s&@abs_builddir@&$ac_abs_builddir&;t t
10145s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10146s&@INSTALL@&$ac_INSTALL&;t t
10147$ac_datarootdir_hack
10148" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
10149
10150test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10151 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10152 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10153 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10154which seems to be undefined. Please make sure it is defined." >&5
10155echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10156which seems to be undefined. Please make sure it is defined." >&2;}
10157
10158 rm -f "$tmp/stdin"
10159 case $ac_file in
10160 -) cat "$tmp/out"; rm -f "$tmp/out";;
10161 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
10162 esac
10163 ;;
10164 :H)
10165 #
10166 # CONFIG_HEADER
10167 #
10168_ACEOF
10169
10170# Transform confdefs.h into a sed script `conftest.defines', that
10171# substitutes the proper values into config.h.in to produce config.h.
10172rm -f conftest.defines conftest.tail
10173# First, append a space to every undef/define line, to ease matching.
10174echo 's/$/ /' >conftest.defines
10175# Then, protect against being on the right side of a sed subst, or in
10176# an unquoted here document, in config.status. If some macros were
10177# called several times there might be several #defines for the same
10178# symbol, which is useless. But do not sort them, since the last
10179# AC_DEFINE must be honored.
10180ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10181# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
10182# NAME is the cpp macro being defined, VALUE is the value it is being given.
10183# PARAMS is the parameter list in the macro definition--in most cases, it's
10184# just an empty string.
10185ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
10186ac_dB='\\)[ (].*,\\1define\\2'
10187ac_dC=' '
10188ac_dD=' ,'
10189
10190uniq confdefs.h |
10191 sed -n '
10192 t rset
10193 :rset
10194 s/^[ ]*#[ ]*define[ ][ ]*//
10195 t ok
10196 d
10197 :ok
10198 s/[\\&,]/\\&/g
10199 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
10200 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
10201 ' >>conftest.defines
10202
10203# Remove the space that was appended to ease matching.
10204# Then replace #undef with comments. This is necessary, for
10205# example, in the case of _POSIX_SOURCE, which is predefined and required
10206# on some systems where configure will not decide to define it.
10207# (The regexp can be short, since the line contains either #define or #undef.)
10208echo 's/ $//
10209s,^[ #]*u.*,/* & */,' >>conftest.defines
10210
10211# Break up conftest.defines:
10212ac_max_sed_lines=50
10213
10214# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
10215# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
10216# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
10217# et cetera.
10218ac_in='$ac_file_inputs'
10219ac_out='"$tmp/out1"'
10220ac_nxt='"$tmp/out2"'
10221
10222while :
10223do
10224 # Write a here document:
10225 cat >>$CONFIG_STATUS <<_ACEOF
10226 # First, check the format of the line:
10227 cat >"\$tmp/defines.sed" <<\\CEOF
10228/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
10229/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
10230b
10231:def
10232_ACEOF
10233 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
10234 echo 'CEOF
10235 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
10236 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
10237 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
10238 grep . conftest.tail >/dev/null || break
10239 rm -f conftest.defines
10240 mv conftest.tail conftest.defines
10241done
10242rm -f conftest.defines conftest.tail
10243
10244echo "ac_result=$ac_in" >>$CONFIG_STATUS
10245cat >>$CONFIG_STATUS <<\_ACEOF
10246 if test x"$ac_file" != x-; then
10247 echo "/* $configure_input */" >"$tmp/config.h"
10248 cat "$ac_result" >>"$tmp/config.h"
10249 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
10250 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10251echo "$as_me: $ac_file is unchanged" >&6;}
10252 else
10253 rm -f $ac_file
10254 mv "$tmp/config.h" $ac_file
10255 fi
10256 else
10257 echo "/* $configure_input */"
10258 cat "$ac_result"
10259 fi
10260 rm -f "$tmp/out12"
10261 ;;
10262
10263
10264 esac
10265
10266done # for ac_tag
10267
10268
10269{ (exit 0); exit 0; }
10270_ACEOF
10271chmod +x $CONFIG_STATUS
10272ac_clean_files=$ac_clean_files_save
10273
10274
10275# configure is writing to config.log, and then calls config.status.
10276# config.status does its own redirection, appending to config.log.
10277# Unfortunately, on DOS this fails, as config.log is still kept open
10278# by configure, so config.status won't be able to write to it; its
10279# output is simply discarded. So we exec the FD to /dev/null,
10280# effectively closing config.log, so it can be properly (re)opened and
10281# appended to by config.status. When coming back to configure, we
10282# need to make the FD available again.
10283if test "$no_create" != yes; then
10284 ac_cs_success=:
10285 ac_config_status_args=
10286 test "$silent" = yes &&
10287 ac_config_status_args="$ac_config_status_args --quiet"
10288 exec 5>/dev/null
10289 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10290 exec 5>>config.log
10291 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10292 # would make configure fail if this is the last instruction.
10293 $ac_cs_success || { (exit 1); exit 1; }
10294fi
10295
10296
10297echo ""
10298echo " *********** libd configuration **********"
10299echo " System Build Type: $target"
10300echo " Socket Engine Type: $engine"
10301echo " Encryption: $encryption"
10302echo " Maximum Connections: $maxconnections"
10303echo " Install Directory: $prefix"
10304echo " CFLAGS: $CFLAGS"
10305echo " CPPFLAGS: $CPPFLAGS"
10306echo " LDFLAGS: $LDFLAGS"
10307echo ""