Correctly skip non-servers when evaluating C-rules.
[ircu2.10.12-pk.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173   if (eval "$as_required") 2>/dev/null; then :
174   as_have_required=yes
175 else
176   as_have_required=no
177 fi
178   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185   IFS=$as_save_IFS
186   test -z "$as_dir" && as_dir=.
187   as_found=:
188   case $as_dir in #(
189          /*)
190            for as_base in sh bash ksh sh5; do
191              # Try only shells that exist, to save several forks.
192              as_shell=$as_dir/$as_base
193              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195   CONFIG_SHELL=$as_shell as_have_required=yes
196                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   break 2
198 fi
199 fi
200            done;;
201        esac
202   as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206   CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211       if test "x$CONFIG_SHELL" != x; then :
212   # We cannot yet assume a decent shell, so we have to provide a
213         # neutralization value for shells without unset; and this also
214         # works around shells that cannot unset nonexistent variables.
215         BASH_ENV=/dev/null
216         ENV=/dev/null
217         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218         export CONFIG_SHELL
219         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222     if test x$as_have_required = xno; then :
223   $as_echo "$0: This script requires a shell more modern than all"
224   $as_echo "$0: the shells that I found on your system."
225   if test x${ZSH_VERSION+set} = xset ; then
226     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228   else
229     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233   fi
234   exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252   { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261   return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269   set +e
270   as_fn_set_status $1
271   exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280   case $as_dir in #(
281   -*) as_dir=./$as_dir;;
282   esac
283   test -d "$as_dir" || eval $as_mkdir_p || {
284     as_dirs=
285     while :; do
286       case $as_dir in #(
287       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288       *) as_qdir=$as_dir;;
289       esac
290       as_dirs="'$as_qdir' $as_dirs"
291       as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293          X"$as_dir" : 'X\(//\)[^/]' \| \
294          X"$as_dir" : 'X\(//\)$' \| \
295          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298             s//\1/
299             q
300           }
301           /^X\(\/\/\)[^/].*/{
302             s//\1/
303             q
304           }
305           /^X\(\/\/\)$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\).*/{
310             s//\1/
311             q
312           }
313           s/.*/./; q'`
314       test -d "$as_dir" && break
315     done
316     test -z "$as_dirs" || eval "mkdir $as_dirs"
317   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328   eval 'as_fn_append ()
329   {
330     eval $1+=\$2
331   }'
332 else
333   as_fn_append ()
334   {
335     eval $1=\$$1\$2
336   }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345   eval 'as_fn_arith ()
346   {
347     as_val=$(( $* ))
348   }'
349 else
350   as_fn_arith ()
351   {
352     as_val=`expr "$@" || test $? -eq 1`
353   }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364   as_status=$?; test $as_status -eq 0 && as_status=1
365   if test "$3"; then
366     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368   fi
369   $as_echo "$as_me: error: $1" >&2
370   as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374    test "X`expr 00001 : '.*\(...\)'`" = X001; then
375   as_expr=expr
376 else
377   as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381   as_basename=basename
382 else
383   as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387   as_dirname=dirname
388 else
389   as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394          X"$0" : 'X\(//\)$' \| \
395          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397     sed '/^.*\/\([^/][^/]*\)\/*$/{
398             s//\1/
399             q
400           }
401           /^X\/\(\/\/\)$/{
402             s//\1/
403             q
404           }
405           /^X\/\(\/\).*/{
406             s//\1/
407             q
408           }
409           s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419   as_lineno_1=$LINENO as_lineno_1a=$LINENO
420   as_lineno_2=$LINENO as_lineno_2a=$LINENO
421   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424   sed -n '
425     p
426     /[$]LINENO/=
427   ' <$as_myself |
428     sed '
429       s/[$]LINENO.*/&-/
430       t lineno
431       b
432       :lineno
433       N
434       :loop
435       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436       t loop
437       s/-\n.*//
438     ' >$as_me.lineno &&
439   chmod +x "$as_me.lineno" ||
440     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442   # Don't try to exec as it changes $[0], causing all sort of problems
443   # (the dirname of $[0] is not the place where we might find the
444   # original and so on.  Autoconf is especially sensitive to this).
445   . "./$as_me.lineno"
446   # Exit status is that of the last command.
447   exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453   case `echo 'xy\c'` in
454   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
455   xy)  ECHO_C='\c';;
456   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457        ECHO_T=' ';;
458   esac;;
459 *)
460   ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465   rm -f conf$$.dir/conf$$.file
466 else
467   rm -f conf$$.dir
468   mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471   if ln -s conf$$.file conf$$ 2>/dev/null; then
472     as_ln_s='ln -s'
473     # ... but there are two gotchas:
474     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476     # In both cases, we have to default to `cp -p'.
477     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478       as_ln_s='cp -p'
479   elif ln conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s=ln
481   else
482     as_ln_s='cp -p'
483   fi
484 else
485   as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491   as_mkdir_p='mkdir -p "$as_dir"'
492 else
493   test -d ./-p && rmdir ./-p
494   as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498   as_test_x='test -x'
499 else
500   if ls -dL / >/dev/null 2>&1; then
501     as_ls_L_option=L
502   else
503     as_ls_L_option=
504   fi
505   as_test_x='
506     eval sh -c '\''
507       if test -d "$1"; then
508         test -d "$1/.";
509       else
510         case $1 in #(
511         -*)set "./$1";;
512         esac;
513         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514         ???[sx]*):;;*)false;;esac;fi
515     '\'' sh
516   '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="ircd/ircd.c"
555 ac_default_prefix=$HOME
556 # Factoring default headers for most tests.
557 ac_includes_default="\
558 #include <stdio.h>
559 #ifdef HAVE_SYS_TYPES_H
560 # include <sys/types.h>
561 #endif
562 #ifdef HAVE_SYS_STAT_H
563 # include <sys/stat.h>
564 #endif
565 #ifdef STDC_HEADERS
566 # include <stdlib.h>
567 # include <stddef.h>
568 #else
569 # ifdef HAVE_STDLIB_H
570 #  include <stdlib.h>
571 # endif
572 #endif
573 #ifdef HAVE_STRING_H
574 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
575 #  include <memory.h>
576 # endif
577 # include <string.h>
578 #endif
579 #ifdef HAVE_STRINGS_H
580 # include <strings.h>
581 #endif
582 #ifdef HAVE_INTTYPES_H
583 # include <inttypes.h>
584 #endif
585 #ifdef HAVE_STDINT_H
586 # include <stdint.h>
587 #endif
588 #ifdef HAVE_UNISTD_H
589 # include <unistd.h>
590 #endif"
591
592 ac_subst_vars='LTLIBOBJS
593 LIBOBJS
594 DPATH
595 IRCDGRP
596 IRCDOWN
597 IRCDMODE
598 SYMLINK
599 INSTALL_RULE
600 ENGINE_C
601 YFLAGS
602 YACC
603 LEXLIB
604 LEX_OUTPUT_ROOT
605 LEX
606 SHPROG
607 RMPROG
608 LN_S
609 INSTALL_DATA
610 INSTALL_SCRIPT
611 INSTALL_PROGRAM
612 SET_MAKE
613 AWK
614 EGREP
615 GREP
616 CPP
617 OBJEXT
618 EXEEXT
619 ac_ct_CC
620 CPPFLAGS
621 LDFLAGS
622 CFLAGS
623 CC
624 host_os
625 host_vendor
626 host_cpu
627 host
628 build_os
629 build_vendor
630 build_cpu
631 build
632 target_alias
633 host_alias
634 build_alias
635 LIBS
636 ECHO_T
637 ECHO_N
638 ECHO_C
639 DEFS
640 mandir
641 localedir
642 libdir
643 psdir
644 pdfdir
645 dvidir
646 htmldir
647 infodir
648 docdir
649 oldincludedir
650 includedir
651 localstatedir
652 sharedstatedir
653 sysconfdir
654 datadir
655 datarootdir
656 libexecdir
657 sbindir
658 bindir
659 program_transform_name
660 prefix
661 exec_prefix
662 PACKAGE_URL
663 PACKAGE_BUGREPORT
664 PACKAGE_STRING
665 PACKAGE_VERSION
666 PACKAGE_TARNAME
667 PACKAGE_NAME
668 PATH_SEPARATOR
669 SHELL'
670 ac_subst_files=''
671 ac_user_opts='
672 enable_option_checking
673 enable_poll
674 enable_debug
675 with_leak_detect
676 with_ipv6
677 enable_asserts
678 enable_profile
679 enable_pedantic
680 enable_warnings
681 enable_inlines
682 enable_devpoll
683 enable_kqueue
684 enable_epoll
685 with_symlink
686 with_mode
687 with_owner
688 with_group
689 with_domain
690 with_chroot
691 with_dpath
692 with_cpath
693 with_lpath
694 with_maxcon
695 '
696       ac_precious_vars='build_alias
697 host_alias
698 target_alias
699 CC
700 CFLAGS
701 LDFLAGS
702 LIBS
703 CPPFLAGS
704 CPP
705 YACC
706 YFLAGS'
707
708
709 # Initialize some variables set by options.
710 ac_init_help=
711 ac_init_version=false
712 ac_unrecognized_opts=
713 ac_unrecognized_sep=
714 # The variables have the same names as the options, with
715 # dashes changed to underlines.
716 cache_file=/dev/null
717 exec_prefix=NONE
718 no_create=
719 no_recursion=
720 prefix=NONE
721 program_prefix=NONE
722 program_suffix=NONE
723 program_transform_name=s,x,x,
724 silent=
725 site=
726 srcdir=
727 verbose=
728 x_includes=NONE
729 x_libraries=NONE
730
731 # Installation directory options.
732 # These are left unexpanded so users can "make install exec_prefix=/foo"
733 # and all the variables that are supposed to be based on exec_prefix
734 # by default will actually change.
735 # Use braces instead of parens because sh, perl, etc. also accept them.
736 # (The list follows the same order as the GNU Coding Standards.)
737 bindir='${exec_prefix}/bin'
738 sbindir='${exec_prefix}/sbin'
739 libexecdir='${exec_prefix}/libexec'
740 datarootdir='${prefix}/share'
741 datadir='${datarootdir}'
742 sysconfdir='${prefix}/etc'
743 sharedstatedir='${prefix}/com'
744 localstatedir='${prefix}/var'
745 includedir='${prefix}/include'
746 oldincludedir='/usr/include'
747 docdir='${datarootdir}/doc/${PACKAGE}'
748 infodir='${datarootdir}/info'
749 htmldir='${docdir}'
750 dvidir='${docdir}'
751 pdfdir='${docdir}'
752 psdir='${docdir}'
753 libdir='${exec_prefix}/lib'
754 localedir='${datarootdir}/locale'
755 mandir='${datarootdir}/man'
756
757 ac_prev=
758 ac_dashdash=
759 for ac_option
760 do
761   # If the previous option needs an argument, assign it.
762   if test -n "$ac_prev"; then
763     eval $ac_prev=\$ac_option
764     ac_prev=
765     continue
766   fi
767
768   case $ac_option in
769   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
770   *)    ac_optarg=yes ;;
771   esac
772
773   # Accept the important Cygnus configure options, so we can diagnose typos.
774
775   case $ac_dashdash$ac_option in
776   --)
777     ac_dashdash=yes ;;
778
779   -bindir | --bindir | --bindi | --bind | --bin | --bi)
780     ac_prev=bindir ;;
781   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
782     bindir=$ac_optarg ;;
783
784   -build | --build | --buil | --bui | --bu)
785     ac_prev=build_alias ;;
786   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
787     build_alias=$ac_optarg ;;
788
789   -cache-file | --cache-file | --cache-fil | --cache-fi \
790   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
791     ac_prev=cache_file ;;
792   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
793   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
794     cache_file=$ac_optarg ;;
795
796   --config-cache | -C)
797     cache_file=config.cache ;;
798
799   -datadir | --datadir | --datadi | --datad)
800     ac_prev=datadir ;;
801   -datadir=* | --datadir=* | --datadi=* | --datad=*)
802     datadir=$ac_optarg ;;
803
804   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
805   | --dataroo | --dataro | --datar)
806     ac_prev=datarootdir ;;
807   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
808   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
809     datarootdir=$ac_optarg ;;
810
811   -disable-* | --disable-*)
812     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
813     # Reject names that are not valid shell variable names.
814     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
815       as_fn_error "invalid feature name: $ac_useropt"
816     ac_useropt_orig=$ac_useropt
817     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
818     case $ac_user_opts in
819       *"
820 "enable_$ac_useropt"
821 "*) ;;
822       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
823          ac_unrecognized_sep=', ';;
824     esac
825     eval enable_$ac_useropt=no ;;
826
827   -docdir | --docdir | --docdi | --doc | --do)
828     ac_prev=docdir ;;
829   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
830     docdir=$ac_optarg ;;
831
832   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
833     ac_prev=dvidir ;;
834   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
835     dvidir=$ac_optarg ;;
836
837   -enable-* | --enable-*)
838     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
839     # Reject names that are not valid shell variable names.
840     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
841       as_fn_error "invalid feature name: $ac_useropt"
842     ac_useropt_orig=$ac_useropt
843     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
844     case $ac_user_opts in
845       *"
846 "enable_$ac_useropt"
847 "*) ;;
848       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
849          ac_unrecognized_sep=', ';;
850     esac
851     eval enable_$ac_useropt=\$ac_optarg ;;
852
853   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
854   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
855   | --exec | --exe | --ex)
856     ac_prev=exec_prefix ;;
857   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
858   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
859   | --exec=* | --exe=* | --ex=*)
860     exec_prefix=$ac_optarg ;;
861
862   -gas | --gas | --ga | --g)
863     # Obsolete; use --with-gas.
864     with_gas=yes ;;
865
866   -help | --help | --hel | --he | -h)
867     ac_init_help=long ;;
868   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
869     ac_init_help=recursive ;;
870   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
871     ac_init_help=short ;;
872
873   -host | --host | --hos | --ho)
874     ac_prev=host_alias ;;
875   -host=* | --host=* | --hos=* | --ho=*)
876     host_alias=$ac_optarg ;;
877
878   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
879     ac_prev=htmldir ;;
880   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
881   | --ht=*)
882     htmldir=$ac_optarg ;;
883
884   -includedir | --includedir | --includedi | --included | --include \
885   | --includ | --inclu | --incl | --inc)
886     ac_prev=includedir ;;
887   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
888   | --includ=* | --inclu=* | --incl=* | --inc=*)
889     includedir=$ac_optarg ;;
890
891   -infodir | --infodir | --infodi | --infod | --info | --inf)
892     ac_prev=infodir ;;
893   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
894     infodir=$ac_optarg ;;
895
896   -libdir | --libdir | --libdi | --libd)
897     ac_prev=libdir ;;
898   -libdir=* | --libdir=* | --libdi=* | --libd=*)
899     libdir=$ac_optarg ;;
900
901   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
902   | --libexe | --libex | --libe)
903     ac_prev=libexecdir ;;
904   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
905   | --libexe=* | --libex=* | --libe=*)
906     libexecdir=$ac_optarg ;;
907
908   -localedir | --localedir | --localedi | --localed | --locale)
909     ac_prev=localedir ;;
910   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
911     localedir=$ac_optarg ;;
912
913   -localstatedir | --localstatedir | --localstatedi | --localstated \
914   | --localstate | --localstat | --localsta | --localst | --locals)
915     ac_prev=localstatedir ;;
916   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
917   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
918     localstatedir=$ac_optarg ;;
919
920   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
921     ac_prev=mandir ;;
922   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
923     mandir=$ac_optarg ;;
924
925   -nfp | --nfp | --nf)
926     # Obsolete; use --without-fp.
927     with_fp=no ;;
928
929   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
930   | --no-cr | --no-c | -n)
931     no_create=yes ;;
932
933   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
934   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
935     no_recursion=yes ;;
936
937   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
938   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
939   | --oldin | --oldi | --old | --ol | --o)
940     ac_prev=oldincludedir ;;
941   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
942   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
943   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
944     oldincludedir=$ac_optarg ;;
945
946   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
947     ac_prev=prefix ;;
948   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
949     prefix=$ac_optarg ;;
950
951   -program-prefix | --program-prefix | --program-prefi | --program-pref \
952   | --program-pre | --program-pr | --program-p)
953     ac_prev=program_prefix ;;
954   -program-prefix=* | --program-prefix=* | --program-prefi=* \
955   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
956     program_prefix=$ac_optarg ;;
957
958   -program-suffix | --program-suffix | --program-suffi | --program-suff \
959   | --program-suf | --program-su | --program-s)
960     ac_prev=program_suffix ;;
961   -program-suffix=* | --program-suffix=* | --program-suffi=* \
962   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
963     program_suffix=$ac_optarg ;;
964
965   -program-transform-name | --program-transform-name \
966   | --program-transform-nam | --program-transform-na \
967   | --program-transform-n | --program-transform- \
968   | --program-transform | --program-transfor \
969   | --program-transfo | --program-transf \
970   | --program-trans | --program-tran \
971   | --progr-tra | --program-tr | --program-t)
972     ac_prev=program_transform_name ;;
973   -program-transform-name=* | --program-transform-name=* \
974   | --program-transform-nam=* | --program-transform-na=* \
975   | --program-transform-n=* | --program-transform-=* \
976   | --program-transform=* | --program-transfor=* \
977   | --program-transfo=* | --program-transf=* \
978   | --program-trans=* | --program-tran=* \
979   | --progr-tra=* | --program-tr=* | --program-t=*)
980     program_transform_name=$ac_optarg ;;
981
982   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
983     ac_prev=pdfdir ;;
984   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
985     pdfdir=$ac_optarg ;;
986
987   -psdir | --psdir | --psdi | --psd | --ps)
988     ac_prev=psdir ;;
989   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
990     psdir=$ac_optarg ;;
991
992   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
993   | -silent | --silent | --silen | --sile | --sil)
994     silent=yes ;;
995
996   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
997     ac_prev=sbindir ;;
998   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
999   | --sbi=* | --sb=*)
1000     sbindir=$ac_optarg ;;
1001
1002   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1003   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1004   | --sharedst | --shareds | --shared | --share | --shar \
1005   | --sha | --sh)
1006     ac_prev=sharedstatedir ;;
1007   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1008   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1009   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1010   | --sha=* | --sh=*)
1011     sharedstatedir=$ac_optarg ;;
1012
1013   -site | --site | --sit)
1014     ac_prev=site ;;
1015   -site=* | --site=* | --sit=*)
1016     site=$ac_optarg ;;
1017
1018   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1019     ac_prev=srcdir ;;
1020   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1021     srcdir=$ac_optarg ;;
1022
1023   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1024   | --syscon | --sysco | --sysc | --sys | --sy)
1025     ac_prev=sysconfdir ;;
1026   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1027   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1028     sysconfdir=$ac_optarg ;;
1029
1030   -target | --target | --targe | --targ | --tar | --ta | --t)
1031     ac_prev=target_alias ;;
1032   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1033     target_alias=$ac_optarg ;;
1034
1035   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1036     verbose=yes ;;
1037
1038   -version | --version | --versio | --versi | --vers | -V)
1039     ac_init_version=: ;;
1040
1041   -with-* | --with-*)
1042     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1043     # Reject names that are not valid shell variable names.
1044     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1045       as_fn_error "invalid package name: $ac_useropt"
1046     ac_useropt_orig=$ac_useropt
1047     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048     case $ac_user_opts in
1049       *"
1050 "with_$ac_useropt"
1051 "*) ;;
1052       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1053          ac_unrecognized_sep=', ';;
1054     esac
1055     eval with_$ac_useropt=\$ac_optarg ;;
1056
1057   -without-* | --without-*)
1058     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1059     # Reject names that are not valid shell variable names.
1060     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1061       as_fn_error "invalid package name: $ac_useropt"
1062     ac_useropt_orig=$ac_useropt
1063     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1064     case $ac_user_opts in
1065       *"
1066 "with_$ac_useropt"
1067 "*) ;;
1068       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1069          ac_unrecognized_sep=', ';;
1070     esac
1071     eval with_$ac_useropt=no ;;
1072
1073   --x)
1074     # Obsolete; use --with-x.
1075     with_x=yes ;;
1076
1077   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1078   | --x-incl | --x-inc | --x-in | --x-i)
1079     ac_prev=x_includes ;;
1080   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1081   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1082     x_includes=$ac_optarg ;;
1083
1084   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1085   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1086     ac_prev=x_libraries ;;
1087   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1088   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1089     x_libraries=$ac_optarg ;;
1090
1091   -*) as_fn_error "unrecognized option: \`$ac_option'
1092 Try \`$0 --help' for more information."
1093     ;;
1094
1095   *=*)
1096     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1097     # Reject names that are not valid shell variable names.
1098     case $ac_envvar in #(
1099       '' | [0-9]* | *[!_$as_cr_alnum]* )
1100       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1101     esac
1102     eval $ac_envvar=\$ac_optarg
1103     export $ac_envvar ;;
1104
1105   *)
1106     # FIXME: should be removed in autoconf 3.0.
1107     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1108     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1109       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1110     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1111     ;;
1112
1113   esac
1114 done
1115
1116 if test -n "$ac_prev"; then
1117   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1118   as_fn_error "missing argument to $ac_option"
1119 fi
1120
1121 if test -n "$ac_unrecognized_opts"; then
1122   case $enable_option_checking in
1123     no) ;;
1124     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1125     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1126   esac
1127 fi
1128
1129 # Check all directory arguments for consistency.
1130 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1131                 datadir sysconfdir sharedstatedir localstatedir includedir \
1132                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1133                 libdir localedir mandir
1134 do
1135   eval ac_val=\$$ac_var
1136   # Remove trailing slashes.
1137   case $ac_val in
1138     */ )
1139       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1140       eval $ac_var=\$ac_val;;
1141   esac
1142   # Be sure to have absolute directory names.
1143   case $ac_val in
1144     [\\/$]* | ?:[\\/]* )  continue;;
1145     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1146   esac
1147   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1148 done
1149
1150 # There might be people who depend on the old broken behavior: `$host'
1151 # used to hold the argument of --host etc.
1152 # FIXME: To remove some day.
1153 build=$build_alias
1154 host=$host_alias
1155 target=$target_alias
1156
1157 # FIXME: To remove some day.
1158 if test "x$host_alias" != x; then
1159   if test "x$build_alias" = x; then
1160     cross_compiling=maybe
1161     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1162     If a cross compiler is detected then cross compile mode will be used." >&2
1163   elif test "x$build_alias" != "x$host_alias"; then
1164     cross_compiling=yes
1165   fi
1166 fi
1167
1168 ac_tool_prefix=
1169 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1170
1171 test "$silent" = yes && exec 6>/dev/null
1172
1173
1174 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1175 ac_ls_di=`ls -di .` &&
1176 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1177   as_fn_error "working directory cannot be determined"
1178 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179   as_fn_error "pwd does not report name of working directory"
1180
1181
1182 # Find the source files, if location was not specified.
1183 if test -z "$srcdir"; then
1184   ac_srcdir_defaulted=yes
1185   # Try the directory containing this script, then the parent directory.
1186   ac_confdir=`$as_dirname -- "$as_myself" ||
1187 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1188          X"$as_myself" : 'X\(//\)[^/]' \| \
1189          X"$as_myself" : 'X\(//\)$' \| \
1190          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1191 $as_echo X"$as_myself" |
1192     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1193             s//\1/
1194             q
1195           }
1196           /^X\(\/\/\)[^/].*/{
1197             s//\1/
1198             q
1199           }
1200           /^X\(\/\/\)$/{
1201             s//\1/
1202             q
1203           }
1204           /^X\(\/\).*/{
1205             s//\1/
1206             q
1207           }
1208           s/.*/./; q'`
1209   srcdir=$ac_confdir
1210   if test ! -r "$srcdir/$ac_unique_file"; then
1211     srcdir=..
1212   fi
1213 else
1214   ac_srcdir_defaulted=no
1215 fi
1216 if test ! -r "$srcdir/$ac_unique_file"; then
1217   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1218   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1219 fi
1220 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1221 ac_abs_confdir=`(
1222         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1223         pwd)`
1224 # When building in place, set srcdir=.
1225 if test "$ac_abs_confdir" = "$ac_pwd"; then
1226   srcdir=.
1227 fi
1228 # Remove unnecessary trailing slashes from srcdir.
1229 # Double slashes in file names in object file debugging info
1230 # mess up M-x gdb in Emacs.
1231 case $srcdir in
1232 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1233 esac
1234 for ac_var in $ac_precious_vars; do
1235   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1236   eval ac_env_${ac_var}_value=\$${ac_var}
1237   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1238   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1239 done
1240
1241 #
1242 # Report the --help message.
1243 #
1244 if test "$ac_init_help" = "long"; then
1245   # Omit some internal or obsolete options to make the list less imposing.
1246   # This message is too long to be a string in the A/UX 3.1 sh.
1247   cat <<_ACEOF
1248 \`configure' configures this package to adapt to many kinds of systems.
1249
1250 Usage: $0 [OPTION]... [VAR=VALUE]...
1251
1252 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1253 VAR=VALUE.  See below for descriptions of some of the useful variables.
1254
1255 Defaults for the options are specified in brackets.
1256
1257 Configuration:
1258   -h, --help              display this help and exit
1259       --help=short        display options specific to this package
1260       --help=recursive    display the short help of all the included packages
1261   -V, --version           display version information and exit
1262   -q, --quiet, --silent   do not print \`checking...' messages
1263       --cache-file=FILE   cache test results in FILE [disabled]
1264   -C, --config-cache      alias for \`--cache-file=config.cache'
1265   -n, --no-create         do not create output files
1266       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1267
1268 Installation directories:
1269   --prefix=PREFIX         install architecture-independent files in PREFIX
1270                           [$ac_default_prefix]
1271   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1272                           [PREFIX]
1273
1274 By default, \`make install' will install all the files in
1275 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1276 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1277 for instance \`--prefix=\$HOME'.
1278
1279 For better control, use the options below.
1280
1281 Fine tuning of the installation directories:
1282   --bindir=DIR            user executables [EPREFIX/bin]
1283   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1284   --libexecdir=DIR        program executables [EPREFIX/libexec]
1285   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1286   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1287   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1288   --libdir=DIR            object code libraries [EPREFIX/lib]
1289   --includedir=DIR        C header files [PREFIX/include]
1290   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1291   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1292   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1293   --infodir=DIR           info documentation [DATAROOTDIR/info]
1294   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1295   --mandir=DIR            man documentation [DATAROOTDIR/man]
1296   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1297   --htmldir=DIR           html documentation [DOCDIR]
1298   --dvidir=DIR            dvi documentation [DOCDIR]
1299   --pdfdir=DIR            pdf documentation [DOCDIR]
1300   --psdir=DIR             ps documentation [DOCDIR]
1301 _ACEOF
1302
1303   cat <<\_ACEOF
1304
1305 System types:
1306   --build=BUILD     configure for building on BUILD [guessed]
1307   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1308 _ACEOF
1309 fi
1310
1311 if test -n "$ac_init_help"; then
1312
1313   cat <<\_ACEOF
1314
1315 Optional Features:
1316   --disable-option-checking  ignore unrecognized --enable/--with options
1317   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1318   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1319   --enable-poll           Force poll to be used regardless of whether or not
1320                           it is a system call
1321   --enable-debug          Turn on debugging mode
1322   --disable-asserts       Disable assertion checking
1323   --enable-profile        Enable profiling support (add -pg to CFLAGS and LDFLAGS)
1324   --enable-pedantic       Enable pedantic warnings (add -pedantic to CFLAGS)
1325   --enable-warnings       Enable warnings (add -Wall to CFLAGS)
1326   --disable-inlines       Disable inlining for a few critical functions
1327   --disable-devpoll       Disable the /dev/poll-based engine
1328   --disable-kqueue        Disable the kqueue-based engine
1329   --disable-epoll         Disable the epoll-based engine
1330
1331 Optional Packages:
1332   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1333   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1334   --with-leak-detect          Turn on the leak detector(requires patched boehm)
1335   --without-ipv6          disable IPv6 support (default is autodetect)
1336   --with-symlink=name     Name to give the symlink; if name is "no," no
1337                           symlink will be created.
1338   --with-mode=mode        Permissions (in octal) to give the binary
1339   --with-owner=owner      Specify owner of the installed binary
1340   --with-group=group      Specify group owner of the installed binary
1341   --with-domain=domain    Domain name to use in local statistics gathering
1342   --with-chroot=dir       Specify that the server will be operated under
1343                           a different root directory given by dir.  See
1344                           doc/readme.chroot for more information.
1345   --with-dpath=dir        Directory for all server data files
1346   --with-cpath=file       Set server configuration file
1347   --with-lpath=file       Set the debugging log file
1348   --with-maxcon=maxcon    Maximum number of connections server will accept
1349
1350 Some influential environment variables:
1351   CC          C compiler command
1352   CFLAGS      C compiler flags
1353   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1354               nonstandard directory <lib dir>
1355   LIBS        libraries to pass to the linker, e.g. -l<library>
1356   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1357               you have headers in a nonstandard directory <include dir>
1358   CPP         C preprocessor
1359   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1360               the first program found out of: `bison -y', `byacc', `yacc'.
1361   YFLAGS      The list of arguments that will be passed by default to $YACC.
1362               This script will default YFLAGS to the empty string to avoid a
1363               default value of `-d' given by some make applications.
1364
1365 Use these variables to override the choices made by `configure' or to help
1366 it to find libraries and programs with nonstandard names/locations.
1367
1368 Report bugs to the package provider.
1369 _ACEOF
1370 ac_status=$?
1371 fi
1372
1373 if test "$ac_init_help" = "recursive"; then
1374   # If there are subdirs, report their specific --help.
1375   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1376     test -d "$ac_dir" ||
1377       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1378       continue
1379     ac_builddir=.
1380
1381 case "$ac_dir" in
1382 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383 *)
1384   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1385   # A ".." for each directory in $ac_dir_suffix.
1386   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1387   case $ac_top_builddir_sub in
1388   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1389   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1390   esac ;;
1391 esac
1392 ac_abs_top_builddir=$ac_pwd
1393 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1394 # for backward compatibility:
1395 ac_top_builddir=$ac_top_build_prefix
1396
1397 case $srcdir in
1398   .)  # We are building in place.
1399     ac_srcdir=.
1400     ac_top_srcdir=$ac_top_builddir_sub
1401     ac_abs_top_srcdir=$ac_pwd ;;
1402   [\\/]* | ?:[\\/]* )  # Absolute name.
1403     ac_srcdir=$srcdir$ac_dir_suffix;
1404     ac_top_srcdir=$srcdir
1405     ac_abs_top_srcdir=$srcdir ;;
1406   *) # Relative name.
1407     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1408     ac_top_srcdir=$ac_top_build_prefix$srcdir
1409     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1410 esac
1411 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1412
1413     cd "$ac_dir" || { ac_status=$?; continue; }
1414     # Check for guested configure.
1415     if test -f "$ac_srcdir/configure.gnu"; then
1416       echo &&
1417       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1418     elif test -f "$ac_srcdir/configure"; then
1419       echo &&
1420       $SHELL "$ac_srcdir/configure" --help=recursive
1421     else
1422       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1423     fi || ac_status=$?
1424     cd "$ac_pwd" || { ac_status=$?; break; }
1425   done
1426 fi
1427
1428 test -n "$ac_init_help" && exit $ac_status
1429 if $ac_init_version; then
1430   cat <<\_ACEOF
1431 configure
1432 generated by GNU Autoconf 2.64
1433
1434 Copyright (C) 2009 Free Software Foundation, Inc.
1435 This configure script is free software; the Free Software Foundation
1436 gives unlimited permission to copy, distribute and modify it.
1437 _ACEOF
1438   exit
1439 fi
1440
1441 ## ------------------------ ##
1442 ## Autoconf initialization. ##
1443 ## ------------------------ ##
1444
1445 # ac_fn_c_try_compile LINENO
1446 # --------------------------
1447 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1448 ac_fn_c_try_compile ()
1449 {
1450   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1451   rm -f conftest.$ac_objext
1452   if { { ac_try="$ac_compile"
1453 case "(($ac_try" in
1454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1455   *) ac_try_echo=$ac_try;;
1456 esac
1457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1458 $as_echo "$ac_try_echo"; } >&5
1459   (eval "$ac_compile") 2>conftest.err
1460   ac_status=$?
1461   if test -s conftest.err; then
1462     grep -v '^ *+' conftest.err >conftest.er1
1463     cat conftest.er1 >&5
1464     mv -f conftest.er1 conftest.err
1465   fi
1466   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1467   test $ac_status = 0; } && {
1468          test -z "$ac_c_werror_flag" ||
1469          test ! -s conftest.err
1470        } && test -s conftest.$ac_objext; then :
1471   ac_retval=0
1472 else
1473   $as_echo "$as_me: failed program was:" >&5
1474 sed 's/^/| /' conftest.$ac_ext >&5
1475
1476         ac_retval=1
1477 fi
1478   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1479   return $ac_retval
1480
1481 } # ac_fn_c_try_compile
1482
1483 # ac_fn_c_try_link LINENO
1484 # -----------------------
1485 # Try to link conftest.$ac_ext, and return whether this succeeded.
1486 ac_fn_c_try_link ()
1487 {
1488   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1489   rm -f conftest.$ac_objext conftest$ac_exeext
1490   if { { ac_try="$ac_link"
1491 case "(($ac_try" in
1492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1493   *) ac_try_echo=$ac_try;;
1494 esac
1495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1496 $as_echo "$ac_try_echo"; } >&5
1497   (eval "$ac_link") 2>conftest.err
1498   ac_status=$?
1499   if test -s conftest.err; then
1500     grep -v '^ *+' conftest.err >conftest.er1
1501     cat conftest.er1 >&5
1502     mv -f conftest.er1 conftest.err
1503   fi
1504   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1505   test $ac_status = 0; } && {
1506          test -z "$ac_c_werror_flag" ||
1507          test ! -s conftest.err
1508        } && test -s conftest$ac_exeext && {
1509          test "$cross_compiling" = yes ||
1510          $as_test_x conftest$ac_exeext
1511        }; then :
1512   ac_retval=0
1513 else
1514   $as_echo "$as_me: failed program was:" >&5
1515 sed 's/^/| /' conftest.$ac_ext >&5
1516
1517         ac_retval=1
1518 fi
1519   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1520   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1521   # interfere with the next link command; also delete a directory that is
1522   # left behind by Apple's compiler.  We do this before executing the actions.
1523   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1524   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1525   return $ac_retval
1526
1527 } # ac_fn_c_try_link
1528
1529 # ac_fn_c_check_func LINENO FUNC VAR
1530 # ----------------------------------
1531 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1532 ac_fn_c_check_func ()
1533 {
1534   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1536 $as_echo_n "checking for $2... " >&6; }
1537 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1538   $as_echo_n "(cached) " >&6
1539 else
1540   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1541 /* end confdefs.h.  */
1542 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1543    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1544 #define $2 innocuous_$2
1545
1546 /* System header to define __stub macros and hopefully few prototypes,
1547     which can conflict with char $2 (); below.
1548     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1549     <limits.h> exists even on freestanding compilers.  */
1550
1551 #ifdef __STDC__
1552 # include <limits.h>
1553 #else
1554 # include <assert.h>
1555 #endif
1556
1557 #undef $2
1558
1559 /* Override any GCC internal prototype to avoid an error.
1560    Use char because int might match the return type of a GCC
1561    builtin and then its argument prototype would still apply.  */
1562 #ifdef __cplusplus
1563 extern "C"
1564 #endif
1565 char $2 ();
1566 /* The GNU C library defines this for functions which it implements
1567     to always fail with ENOSYS.  Some functions are actually named
1568     something starting with __ and the normal name is an alias.  */
1569 #if defined __stub_$2 || defined __stub___$2
1570 choke me
1571 #endif
1572
1573 int
1574 main ()
1575 {
1576 return $2 ();
1577   ;
1578   return 0;
1579 }
1580 _ACEOF
1581 if ac_fn_c_try_link "$LINENO"; then :
1582   eval "$3=yes"
1583 else
1584   eval "$3=no"
1585 fi
1586 rm -f core conftest.err conftest.$ac_objext \
1587     conftest$ac_exeext conftest.$ac_ext
1588 fi
1589 eval ac_res=\$$3
1590                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1591 $as_echo "$ac_res" >&6; }
1592   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1593
1594 } # ac_fn_c_check_func
1595
1596 # ac_fn_c_try_cpp LINENO
1597 # ----------------------
1598 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1599 ac_fn_c_try_cpp ()
1600 {
1601   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602   if { { ac_try="$ac_cpp conftest.$ac_ext"
1603 case "(($ac_try" in
1604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605   *) ac_try_echo=$ac_try;;
1606 esac
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1610   ac_status=$?
1611   if test -s conftest.err; then
1612     grep -v '^ *+' conftest.err >conftest.er1
1613     cat conftest.er1 >&5
1614     mv -f conftest.er1 conftest.err
1615   fi
1616   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617   test $ac_status = 0; } >/dev/null && {
1618          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1619          test ! -s conftest.err
1620        }; then :
1621   ac_retval=0
1622 else
1623   $as_echo "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1625
1626     ac_retval=1
1627 fi
1628   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1629   return $ac_retval
1630
1631 } # ac_fn_c_try_cpp
1632
1633 # ac_fn_c_try_run LINENO
1634 # ----------------------
1635 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1636 # that executables *can* be run.
1637 ac_fn_c_try_run ()
1638 {
1639   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640   if { { ac_try="$ac_link"
1641 case "(($ac_try" in
1642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643   *) ac_try_echo=$ac_try;;
1644 esac
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 $as_echo "$ac_try_echo"; } >&5
1647   (eval "$ac_link") 2>&5
1648   ac_status=$?
1649   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1651   { { case "(($ac_try" in
1652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653   *) ac_try_echo=$ac_try;;
1654 esac
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 $as_echo "$ac_try_echo"; } >&5
1657   (eval "$ac_try") 2>&5
1658   ac_status=$?
1659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660   test $ac_status = 0; }; }; then :
1661   ac_retval=0
1662 else
1663   $as_echo "$as_me: program exited with status $ac_status" >&5
1664        $as_echo "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1666
1667        ac_retval=$ac_status
1668 fi
1669   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1670   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1671   return $ac_retval
1672
1673 } # ac_fn_c_try_run
1674
1675 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1676 # -------------------------------------------------------
1677 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1678 # the include files in INCLUDES and setting the cache variable VAR
1679 # accordingly.
1680 ac_fn_c_check_header_mongrel ()
1681 {
1682   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1684   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1685 $as_echo_n "checking for $2... " >&6; }
1686 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1687   $as_echo_n "(cached) " >&6
1688 fi
1689 eval ac_res=\$$3
1690                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1691 $as_echo "$ac_res" >&6; }
1692 else
1693   # Is the header compilable?
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1695 $as_echo_n "checking $2 usability... " >&6; }
1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697 /* end confdefs.h.  */
1698 $4
1699 #include <$2>
1700 _ACEOF
1701 if ac_fn_c_try_compile "$LINENO"; then :
1702   ac_header_compiler=yes
1703 else
1704   ac_header_compiler=no
1705 fi
1706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1708 $as_echo "$ac_header_compiler" >&6; }
1709
1710 # Is the header present?
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1712 $as_echo_n "checking $2 presence... " >&6; }
1713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714 /* end confdefs.h.  */
1715 #include <$2>
1716 _ACEOF
1717 if ac_fn_c_try_cpp "$LINENO"; then :
1718   ac_header_preproc=yes
1719 else
1720   ac_header_preproc=no
1721 fi
1722 rm -f conftest.err conftest.$ac_ext
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1724 $as_echo "$ac_header_preproc" >&6; }
1725
1726 # So?  What about this header?
1727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1728   yes:no: )
1729     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1730 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1731     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1732 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1733     ;;
1734   no:yes:* )
1735     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1736 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1737     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1738 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1739     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1740 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1741     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1742 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1743     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1744 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1745     ;;
1746 esac
1747   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748 $as_echo_n "checking for $2... " >&6; }
1749 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1750   $as_echo_n "(cached) " >&6
1751 else
1752   eval "$3=\$ac_header_compiler"
1753 fi
1754 eval ac_res=\$$3
1755                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756 $as_echo "$ac_res" >&6; }
1757 fi
1758   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1759
1760 } # ac_fn_c_check_header_mongrel
1761
1762 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1763 # -------------------------------------------------------
1764 # Tests whether HEADER exists and can be compiled using the include files in
1765 # INCLUDES, setting the cache variable VAR accordingly.
1766 ac_fn_c_check_header_compile ()
1767 {
1768   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1772   $as_echo_n "(cached) " >&6
1773 else
1774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h.  */
1776 $4
1777 #include <$2>
1778 _ACEOF
1779 if ac_fn_c_try_compile "$LINENO"; then :
1780   eval "$3=yes"
1781 else
1782   eval "$3=no"
1783 fi
1784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1785 fi
1786 eval ac_res=\$$3
1787                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788 $as_echo "$ac_res" >&6; }
1789   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1790
1791 } # ac_fn_c_check_header_compile
1792
1793 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1794 # -------------------------------------------
1795 # Tests whether TYPE exists after having included INCLUDES, setting cache
1796 # variable VAR accordingly.
1797 ac_fn_c_check_type ()
1798 {
1799   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801 $as_echo_n "checking for $2... " >&6; }
1802 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1803   $as_echo_n "(cached) " >&6
1804 else
1805   eval "$3=no"
1806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h.  */
1808 $4
1809 int
1810 main ()
1811 {
1812 if (sizeof ($2))
1813          return 0;
1814   ;
1815   return 0;
1816 }
1817 _ACEOF
1818 if ac_fn_c_try_compile "$LINENO"; then :
1819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h.  */
1821 $4
1822 int
1823 main ()
1824 {
1825 if (sizeof (($2)))
1826             return 0;
1827   ;
1828   return 0;
1829 }
1830 _ACEOF
1831 if ac_fn_c_try_compile "$LINENO"; then :
1832
1833 else
1834   eval "$3=yes"
1835 fi
1836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1837 fi
1838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1839 fi
1840 eval ac_res=\$$3
1841                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842 $as_echo "$ac_res" >&6; }
1843   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1844
1845 } # ac_fn_c_check_type
1846
1847 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1848 # --------------------------------------------
1849 # Tries to find the compile-time value of EXPR in a program that includes
1850 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1851 # computed
1852 ac_fn_c_compute_int ()
1853 {
1854   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855   if test "$cross_compiling" = yes; then
1856     # Depending upon the size, compute the lo and hi bounds.
1857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1858 /* end confdefs.h.  */
1859 $4
1860 int
1861 main ()
1862 {
1863 static int test_array [1 - 2 * !(($2) >= 0)];
1864 test_array [0] = 0
1865
1866   ;
1867   return 0;
1868 }
1869 _ACEOF
1870 if ac_fn_c_try_compile "$LINENO"; then :
1871   ac_lo=0 ac_mid=0
1872   while :; do
1873     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h.  */
1875 $4
1876 int
1877 main ()
1878 {
1879 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1880 test_array [0] = 0
1881
1882   ;
1883   return 0;
1884 }
1885 _ACEOF
1886 if ac_fn_c_try_compile "$LINENO"; then :
1887   ac_hi=$ac_mid; break
1888 else
1889   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1890                         if test $ac_lo -le $ac_mid; then
1891                           ac_lo= ac_hi=
1892                           break
1893                         fi
1894                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1895 fi
1896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1897   done
1898 else
1899   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900 /* end confdefs.h.  */
1901 $4
1902 int
1903 main ()
1904 {
1905 static int test_array [1 - 2 * !(($2) < 0)];
1906 test_array [0] = 0
1907
1908   ;
1909   return 0;
1910 }
1911 _ACEOF
1912 if ac_fn_c_try_compile "$LINENO"; then :
1913   ac_hi=-1 ac_mid=-1
1914   while :; do
1915     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h.  */
1917 $4
1918 int
1919 main ()
1920 {
1921 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1922 test_array [0] = 0
1923
1924   ;
1925   return 0;
1926 }
1927 _ACEOF
1928 if ac_fn_c_try_compile "$LINENO"; then :
1929   ac_lo=$ac_mid; break
1930 else
1931   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1932                         if test $ac_mid -le $ac_hi; then
1933                           ac_lo= ac_hi=
1934                           break
1935                         fi
1936                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1937 fi
1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939   done
1940 else
1941   ac_lo= ac_hi=
1942 fi
1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944 fi
1945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946 # Binary search between lo and hi bounds.
1947 while test "x$ac_lo" != "x$ac_hi"; do
1948   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h.  */
1951 $4
1952 int
1953 main ()
1954 {
1955 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1956 test_array [0] = 0
1957
1958   ;
1959   return 0;
1960 }
1961 _ACEOF
1962 if ac_fn_c_try_compile "$LINENO"; then :
1963   ac_hi=$ac_mid
1964 else
1965   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1966 fi
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 done
1969 case $ac_lo in #((
1970 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1971 '') ac_retval=1 ;;
1972 esac
1973   else
1974     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h.  */
1976 $4
1977 static long int longval () { return $2; }
1978 static unsigned long int ulongval () { return $2; }
1979 #include <stdio.h>
1980 #include <stdlib.h>
1981 int
1982 main ()
1983 {
1984
1985   FILE *f = fopen ("conftest.val", "w");
1986   if (! f)
1987     return 1;
1988   if (($2) < 0)
1989     {
1990       long int i = longval ();
1991       if (i != ($2))
1992         return 1;
1993       fprintf (f, "%ld", i);
1994     }
1995   else
1996     {
1997       unsigned long int i = ulongval ();
1998       if (i != ($2))
1999         return 1;
2000       fprintf (f, "%lu", i);
2001     }
2002   /* Do not output a trailing newline, as this causes \r\n confusion
2003      on some platforms.  */
2004   return ferror (f) || fclose (f) != 0;
2005
2006   ;
2007   return 0;
2008 }
2009 _ACEOF
2010 if ac_fn_c_try_run "$LINENO"; then :
2011   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2012 else
2013   ac_retval=1
2014 fi
2015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2016   conftest.$ac_objext conftest.beam conftest.$ac_ext
2017 rm -f conftest.val
2018
2019   fi
2020   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2021   return $ac_retval
2022
2023 } # ac_fn_c_compute_int
2024 cat >config.log <<_ACEOF
2025 This file contains any messages produced by compilers while
2026 running configure, to aid debugging if configure makes a mistake.
2027
2028 It was created by $as_me, which was
2029 generated by GNU Autoconf 2.64.  Invocation command line was
2030
2031   $ $0 $@
2032
2033 _ACEOF
2034 exec 5>>config.log
2035 {
2036 cat <<_ASUNAME
2037 ## --------- ##
2038 ## Platform. ##
2039 ## --------- ##
2040
2041 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2042 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2043 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2044 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2045 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2046
2047 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2048 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2049
2050 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2051 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2052 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2053 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2054 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2055 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2056 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2057
2058 _ASUNAME
2059
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061 for as_dir in $PATH
2062 do
2063   IFS=$as_save_IFS
2064   test -z "$as_dir" && as_dir=.
2065     $as_echo "PATH: $as_dir"
2066   done
2067 IFS=$as_save_IFS
2068
2069 } >&5
2070
2071 cat >&5 <<_ACEOF
2072
2073
2074 ## ----------- ##
2075 ## Core tests. ##
2076 ## ----------- ##
2077
2078 _ACEOF
2079
2080
2081 # Keep a trace of the command line.
2082 # Strip out --no-create and --no-recursion so they do not pile up.
2083 # Strip out --silent because we don't want to record it for future runs.
2084 # Also quote any args containing shell meta-characters.
2085 # Make two passes to allow for proper duplicate-argument suppression.
2086 ac_configure_args=
2087 ac_configure_args0=
2088 ac_configure_args1=
2089 ac_must_keep_next=false
2090 for ac_pass in 1 2
2091 do
2092   for ac_arg
2093   do
2094     case $ac_arg in
2095     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2096     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2097     | -silent | --silent | --silen | --sile | --sil)
2098       continue ;;
2099     *\'*)
2100       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2101     esac
2102     case $ac_pass in
2103     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2104     2)
2105       as_fn_append ac_configure_args1 " '$ac_arg'"
2106       if test $ac_must_keep_next = true; then
2107         ac_must_keep_next=false # Got value, back to normal.
2108       else
2109         case $ac_arg in
2110           *=* | --config-cache | -C | -disable-* | --disable-* \
2111           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2112           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2113           | -with-* | --with-* | -without-* | --without-* | --x)
2114             case "$ac_configure_args0 " in
2115               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2116             esac
2117             ;;
2118           -* ) ac_must_keep_next=true ;;
2119         esac
2120       fi
2121       as_fn_append ac_configure_args " '$ac_arg'"
2122       ;;
2123     esac
2124   done
2125 done
2126 { ac_configure_args0=; unset ac_configure_args0;}
2127 { ac_configure_args1=; unset ac_configure_args1;}
2128
2129 # When interrupted or exit'd, cleanup temporary files, and complete
2130 # config.log.  We remove comments because anyway the quotes in there
2131 # would cause problems or look ugly.
2132 # WARNING: Use '\'' to represent an apostrophe within the trap.
2133 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2134 trap 'exit_status=$?
2135   # Save into config.log some information that might help in debugging.
2136   {
2137     echo
2138
2139     cat <<\_ASBOX
2140 ## ---------------- ##
2141 ## Cache variables. ##
2142 ## ---------------- ##
2143 _ASBOX
2144     echo
2145     # The following way of writing the cache mishandles newlines in values,
2146 (
2147   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2148     eval ac_val=\$$ac_var
2149     case $ac_val in #(
2150     *${as_nl}*)
2151       case $ac_var in #(
2152       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2153 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2154       esac
2155       case $ac_var in #(
2156       _ | IFS | as_nl) ;; #(
2157       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2158       *) { eval $ac_var=; unset $ac_var;} ;;
2159       esac ;;
2160     esac
2161   done
2162   (set) 2>&1 |
2163     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2164     *${as_nl}ac_space=\ *)
2165       sed -n \
2166         "s/'\''/'\''\\\\'\'''\''/g;
2167           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2168       ;; #(
2169     *)
2170       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2171       ;;
2172     esac |
2173     sort
2174 )
2175     echo
2176
2177     cat <<\_ASBOX
2178 ## ----------------- ##
2179 ## Output variables. ##
2180 ## ----------------- ##
2181 _ASBOX
2182     echo
2183     for ac_var in $ac_subst_vars
2184     do
2185       eval ac_val=\$$ac_var
2186       case $ac_val in
2187       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2188       esac
2189       $as_echo "$ac_var='\''$ac_val'\''"
2190     done | sort
2191     echo
2192
2193     if test -n "$ac_subst_files"; then
2194       cat <<\_ASBOX
2195 ## ------------------- ##
2196 ## File substitutions. ##
2197 ## ------------------- ##
2198 _ASBOX
2199       echo
2200       for ac_var in $ac_subst_files
2201       do
2202         eval ac_val=\$$ac_var
2203         case $ac_val in
2204         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2205         esac
2206         $as_echo "$ac_var='\''$ac_val'\''"
2207       done | sort
2208       echo
2209     fi
2210
2211     if test -s confdefs.h; then
2212       cat <<\_ASBOX
2213 ## ----------- ##
2214 ## confdefs.h. ##
2215 ## ----------- ##
2216 _ASBOX
2217       echo
2218       cat confdefs.h
2219       echo
2220     fi
2221     test "$ac_signal" != 0 &&
2222       $as_echo "$as_me: caught signal $ac_signal"
2223     $as_echo "$as_me: exit $exit_status"
2224   } >&5
2225   rm -f core *.core core.conftest.* &&
2226     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2227     exit $exit_status
2228 ' 0
2229 for ac_signal in 1 2 13 15; do
2230   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2231 done
2232 ac_signal=0
2233
2234 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2235 rm -f -r conftest* confdefs.h
2236
2237 $as_echo "/* confdefs.h */" > confdefs.h
2238
2239 # Predefined preprocessor variables.
2240
2241 cat >>confdefs.h <<_ACEOF
2242 #define PACKAGE_NAME "$PACKAGE_NAME"
2243 _ACEOF
2244
2245 cat >>confdefs.h <<_ACEOF
2246 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2247 _ACEOF
2248
2249 cat >>confdefs.h <<_ACEOF
2250 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2251 _ACEOF
2252
2253 cat >>confdefs.h <<_ACEOF
2254 #define PACKAGE_STRING "$PACKAGE_STRING"
2255 _ACEOF
2256
2257 cat >>confdefs.h <<_ACEOF
2258 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2259 _ACEOF
2260
2261 cat >>confdefs.h <<_ACEOF
2262 #define PACKAGE_URL "$PACKAGE_URL"
2263 _ACEOF
2264
2265
2266 # Let the site file select an alternate cache file if it wants to.
2267 # Prefer an explicitly selected file to automatically selected ones.
2268 ac_site_file1=NONE
2269 ac_site_file2=NONE
2270 if test -n "$CONFIG_SITE"; then
2271   ac_site_file1=$CONFIG_SITE
2272 elif test "x$prefix" != xNONE; then
2273   ac_site_file1=$prefix/share/config.site
2274   ac_site_file2=$prefix/etc/config.site
2275 else
2276   ac_site_file1=$ac_default_prefix/share/config.site
2277   ac_site_file2=$ac_default_prefix/etc/config.site
2278 fi
2279 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2280 do
2281   test "x$ac_site_file" = xNONE && continue
2282   if test -r "$ac_site_file"; then
2283     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2284 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2285     sed 's/^/| /' "$ac_site_file" >&5
2286     . "$ac_site_file"
2287   fi
2288 done
2289
2290 if test -r "$cache_file"; then
2291   # Some versions of bash will fail to source /dev/null (special
2292   # files actually), so we avoid doing that.
2293   if test -f "$cache_file"; then
2294     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2295 $as_echo "$as_me: loading cache $cache_file" >&6;}
2296     case $cache_file in
2297       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2298       *)                      . "./$cache_file";;
2299     esac
2300   fi
2301 else
2302   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2303 $as_echo "$as_me: creating cache $cache_file" >&6;}
2304   >$cache_file
2305 fi
2306
2307 # Check that the precious variables saved in the cache have kept the same
2308 # value.
2309 ac_cache_corrupted=false
2310 for ac_var in $ac_precious_vars; do
2311   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2312   eval ac_new_set=\$ac_env_${ac_var}_set
2313   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2314   eval ac_new_val=\$ac_env_${ac_var}_value
2315   case $ac_old_set,$ac_new_set in
2316     set,)
2317       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2318 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2319       ac_cache_corrupted=: ;;
2320     ,set)
2321       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2322 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2323       ac_cache_corrupted=: ;;
2324     ,);;
2325     *)
2326       if test "x$ac_old_val" != "x$ac_new_val"; then
2327         # differences in whitespace do not lead to failure.
2328         ac_old_val_w=`echo x $ac_old_val`
2329         ac_new_val_w=`echo x $ac_new_val`
2330         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2331           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2332 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2333           ac_cache_corrupted=:
2334         else
2335           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2336 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2337           eval $ac_var=\$ac_old_val
2338         fi
2339         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2340 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2341         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2342 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2343       fi;;
2344   esac
2345   # Pass precious variables to config.status.
2346   if test "$ac_new_set" = set; then
2347     case $ac_new_val in
2348     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2349     *) ac_arg=$ac_var=$ac_new_val ;;
2350     esac
2351     case " $ac_configure_args " in
2352       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2353       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2354     esac
2355   fi
2356 done
2357 if $ac_cache_corrupted; then
2358   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2360   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2361 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2362   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2363 fi
2364 ## -------------------- ##
2365 ## Main body of script. ##
2366 ## -------------------- ##
2367
2368 ac_ext=c
2369 ac_cpp='$CPP $CPPFLAGS'
2370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2373
2374
2375
2376
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installation prefix" >&5
2378 $as_echo_n "checking for installation prefix... " >&6; }
2379 if test "${unet_cv_prefix+set}" = set; then :
2380   $as_echo_n "(cached) " >&6
2381 else
2382   unet_cv_prefix=$HOME
2383 fi
2384
2385 if test x"$prefix" != xNONE; then
2386     unet_cv_prefix=$prefix
2387 fi
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_prefix" >&5
2389 $as_echo "$unet_cv_prefix" >&6; }
2390 ac_default_prefix=$unet_cv_prefix
2391
2392 ac_config_headers="$ac_config_headers config.h"
2393
2394
2395
2396
2397 ac_aux_dir=
2398 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2399   for ac_t in install-sh install.sh shtool; do
2400     if test -f "$ac_dir/$ac_t"; then
2401       ac_aux_dir=$ac_dir
2402       ac_install_sh="$ac_aux_dir/$ac_t -c"
2403       break 2
2404     fi
2405   done
2406 done
2407 if test -z "$ac_aux_dir"; then
2408   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2409 fi
2410
2411 # These three variables are undocumented and unsupported,
2412 # and are intended to be withdrawn in a future Autoconf release.
2413 # They can cause serious problems if a builder's source tree is in a directory
2414 # whose full name contains unusual characters.
2415 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2416 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2417 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2418
2419
2420 # Make sure we can run config.sub.
2421 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2422   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2423
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2425 $as_echo_n "checking build system type... " >&6; }
2426 if test "${ac_cv_build+set}" = set; then :
2427   $as_echo_n "(cached) " >&6
2428 else
2429   ac_build_alias=$build_alias
2430 test "x$ac_build_alias" = x &&
2431   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2432 test "x$ac_build_alias" = x &&
2433   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2434 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2435   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2436
2437 fi
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2439 $as_echo "$ac_cv_build" >&6; }
2440 case $ac_cv_build in
2441 *-*-*) ;;
2442 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2443 esac
2444 build=$ac_cv_build
2445 ac_save_IFS=$IFS; IFS='-'
2446 set x $ac_cv_build
2447 shift
2448 build_cpu=$1
2449 build_vendor=$2
2450 shift; shift
2451 # Remember, the first character of IFS is used to create $*,
2452 # except with old shells:
2453 build_os=$*
2454 IFS=$ac_save_IFS
2455 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2456
2457
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2459 $as_echo_n "checking host system type... " >&6; }
2460 if test "${ac_cv_host+set}" = set; then :
2461   $as_echo_n "(cached) " >&6
2462 else
2463   if test "x$host_alias" = x; then
2464   ac_cv_host=$ac_cv_build
2465 else
2466   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2467     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2468 fi
2469
2470 fi
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2472 $as_echo "$ac_cv_host" >&6; }
2473 case $ac_cv_host in
2474 *-*-*) ;;
2475 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2476 esac
2477 host=$ac_cv_host
2478 ac_save_IFS=$IFS; IFS='-'
2479 set x $ac_cv_host
2480 shift
2481 host_cpu=$1
2482 host_vendor=$2
2483 shift; shift
2484 # Remember, the first character of IFS is used to create $*,
2485 # except with old shells:
2486 host_os=$*
2487 IFS=$ac_save_IFS
2488 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2489
2490
2491
2492 ac_ext=c
2493 ac_cpp='$CPP $CPPFLAGS'
2494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2497 if test -n "$ac_tool_prefix"; then
2498   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2499 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2501 $as_echo_n "checking for $ac_word... " >&6; }
2502 if test "${ac_cv_prog_CC+set}" = set; then :
2503   $as_echo_n "(cached) " >&6
2504 else
2505   if test -n "$CC"; then
2506   ac_cv_prog_CC="$CC" # Let the user override the test.
2507 else
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 for as_dir in $PATH
2510 do
2511   IFS=$as_save_IFS
2512   test -z "$as_dir" && as_dir=.
2513     for ac_exec_ext in '' $ac_executable_extensions; do
2514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2515     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2517     break 2
2518   fi
2519 done
2520   done
2521 IFS=$as_save_IFS
2522
2523 fi
2524 fi
2525 CC=$ac_cv_prog_CC
2526 if test -n "$CC"; then
2527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2528 $as_echo "$CC" >&6; }
2529 else
2530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2531 $as_echo "no" >&6; }
2532 fi
2533
2534
2535 fi
2536 if test -z "$ac_cv_prog_CC"; then
2537   ac_ct_CC=$CC
2538   # Extract the first word of "gcc", so it can be a program name with args.
2539 set dummy gcc; ac_word=$2
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2541 $as_echo_n "checking for $ac_word... " >&6; }
2542 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2543   $as_echo_n "(cached) " >&6
2544 else
2545   if test -n "$ac_ct_CC"; then
2546   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2547 else
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 for as_dir in $PATH
2550 do
2551   IFS=$as_save_IFS
2552   test -z "$as_dir" && as_dir=.
2553     for ac_exec_ext in '' $ac_executable_extensions; do
2554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2555     ac_cv_prog_ac_ct_CC="gcc"
2556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2557     break 2
2558   fi
2559 done
2560   done
2561 IFS=$as_save_IFS
2562
2563 fi
2564 fi
2565 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2566 if test -n "$ac_ct_CC"; then
2567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2568 $as_echo "$ac_ct_CC" >&6; }
2569 else
2570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2571 $as_echo "no" >&6; }
2572 fi
2573
2574   if test "x$ac_ct_CC" = x; then
2575     CC=""
2576   else
2577     case $cross_compiling:$ac_tool_warned in
2578 yes:)
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2581 ac_tool_warned=yes ;;
2582 esac
2583     CC=$ac_ct_CC
2584   fi
2585 else
2586   CC="$ac_cv_prog_CC"
2587 fi
2588
2589 if test -z "$CC"; then
2590           if test -n "$ac_tool_prefix"; then
2591     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2592 set dummy ${ac_tool_prefix}cc; ac_word=$2
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2594 $as_echo_n "checking for $ac_word... " >&6; }
2595 if test "${ac_cv_prog_CC+set}" = set; then :
2596   $as_echo_n "(cached) " >&6
2597 else
2598   if test -n "$CC"; then
2599   ac_cv_prog_CC="$CC" # Let the user override the test.
2600 else
2601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602 for as_dir in $PATH
2603 do
2604   IFS=$as_save_IFS
2605   test -z "$as_dir" && as_dir=.
2606     for ac_exec_ext in '' $ac_executable_extensions; do
2607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2608     ac_cv_prog_CC="${ac_tool_prefix}cc"
2609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2610     break 2
2611   fi
2612 done
2613   done
2614 IFS=$as_save_IFS
2615
2616 fi
2617 fi
2618 CC=$ac_cv_prog_CC
2619 if test -n "$CC"; then
2620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2621 $as_echo "$CC" >&6; }
2622 else
2623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2624 $as_echo "no" >&6; }
2625 fi
2626
2627
2628   fi
2629 fi
2630 if test -z "$CC"; then
2631   # Extract the first word of "cc", so it can be a program name with args.
2632 set dummy cc; ac_word=$2
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2634 $as_echo_n "checking for $ac_word... " >&6; }
2635 if test "${ac_cv_prog_CC+set}" = set; then :
2636   $as_echo_n "(cached) " >&6
2637 else
2638   if test -n "$CC"; then
2639   ac_cv_prog_CC="$CC" # Let the user override the test.
2640 else
2641   ac_prog_rejected=no
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH
2644 do
2645   IFS=$as_save_IFS
2646   test -z "$as_dir" && as_dir=.
2647     for ac_exec_ext in '' $ac_executable_extensions; do
2648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2649     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2650        ac_prog_rejected=yes
2651        continue
2652      fi
2653     ac_cv_prog_CC="cc"
2654     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2655     break 2
2656   fi
2657 done
2658   done
2659 IFS=$as_save_IFS
2660
2661 if test $ac_prog_rejected = yes; then
2662   # We found a bogon in the path, so make sure we never use it.
2663   set dummy $ac_cv_prog_CC
2664   shift
2665   if test $# != 0; then
2666     # We chose a different compiler from the bogus one.
2667     # However, it has the same basename, so the bogon will be chosen
2668     # first if we set CC to just the basename; use the full file name.
2669     shift
2670     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2671   fi
2672 fi
2673 fi
2674 fi
2675 CC=$ac_cv_prog_CC
2676 if test -n "$CC"; then
2677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2678 $as_echo "$CC" >&6; }
2679 else
2680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2681 $as_echo "no" >&6; }
2682 fi
2683
2684
2685 fi
2686 if test -z "$CC"; then
2687   if test -n "$ac_tool_prefix"; then
2688   for ac_prog in cl.exe
2689   do
2690     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2693 $as_echo_n "checking for $ac_word... " >&6; }
2694 if test "${ac_cv_prog_CC+set}" = set; then :
2695   $as_echo_n "(cached) " >&6
2696 else
2697   if test -n "$CC"; then
2698   ac_cv_prog_CC="$CC" # Let the user override the test.
2699 else
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 for as_dir in $PATH
2702 do
2703   IFS=$as_save_IFS
2704   test -z "$as_dir" && as_dir=.
2705     for ac_exec_ext in '' $ac_executable_extensions; do
2706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2707     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2709     break 2
2710   fi
2711 done
2712   done
2713 IFS=$as_save_IFS
2714
2715 fi
2716 fi
2717 CC=$ac_cv_prog_CC
2718 if test -n "$CC"; then
2719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2720 $as_echo "$CC" >&6; }
2721 else
2722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2723 $as_echo "no" >&6; }
2724 fi
2725
2726
2727     test -n "$CC" && break
2728   done
2729 fi
2730 if test -z "$CC"; then
2731   ac_ct_CC=$CC
2732   for ac_prog in cl.exe
2733 do
2734   # Extract the first word of "$ac_prog", so it can be a program name with args.
2735 set dummy $ac_prog; ac_word=$2
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2737 $as_echo_n "checking for $ac_word... " >&6; }
2738 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2739   $as_echo_n "(cached) " >&6
2740 else
2741   if test -n "$ac_ct_CC"; then
2742   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2743 else
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 for as_dir in $PATH
2746 do
2747   IFS=$as_save_IFS
2748   test -z "$as_dir" && as_dir=.
2749     for ac_exec_ext in '' $ac_executable_extensions; do
2750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2751     ac_cv_prog_ac_ct_CC="$ac_prog"
2752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2753     break 2
2754   fi
2755 done
2756   done
2757 IFS=$as_save_IFS
2758
2759 fi
2760 fi
2761 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2762 if test -n "$ac_ct_CC"; then
2763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2764 $as_echo "$ac_ct_CC" >&6; }
2765 else
2766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767 $as_echo "no" >&6; }
2768 fi
2769
2770
2771   test -n "$ac_ct_CC" && break
2772 done
2773
2774   if test "x$ac_ct_CC" = x; then
2775     CC=""
2776   else
2777     case $cross_compiling:$ac_tool_warned in
2778 yes:)
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2781 ac_tool_warned=yes ;;
2782 esac
2783     CC=$ac_ct_CC
2784   fi
2785 fi
2786
2787 fi
2788
2789
2790 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2792 as_fn_error "no acceptable C compiler found in \$PATH
2793 See \`config.log' for more details." "$LINENO" 5; }
2794
2795 # Provide some information about the compiler.
2796 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2797 set X $ac_compile
2798 ac_compiler=$2
2799 for ac_option in --version -v -V -qversion; do
2800   { { ac_try="$ac_compiler $ac_option >&5"
2801 case "(($ac_try" in
2802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2803   *) ac_try_echo=$ac_try;;
2804 esac
2805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2806 $as_echo "$ac_try_echo"; } >&5
2807   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2808   ac_status=$?
2809   if test -s conftest.err; then
2810     sed '10a\
2811 ... rest of stderr output deleted ...
2812          10q' conftest.err >conftest.er1
2813     cat conftest.er1 >&5
2814     rm -f conftest.er1 conftest.err
2815   fi
2816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2817   test $ac_status = 0; }
2818 done
2819
2820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2821 /* end confdefs.h.  */
2822 #include <stdio.h>
2823 int
2824 main ()
2825 {
2826 FILE *f = fopen ("conftest.out", "w");
2827  return ferror (f) || fclose (f) != 0;
2828
2829   ;
2830   return 0;
2831 }
2832 _ACEOF
2833 ac_clean_files_save=$ac_clean_files
2834 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2835 # Try to create an executable without -o first, disregard a.out.
2836 # It will help us diagnose broken compilers, and finding out an intuition
2837 # of exeext.
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2839 $as_echo_n "checking for C compiler default output file name... " >&6; }
2840 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2841
2842 # The possible output files:
2843 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2844
2845 ac_rmfiles=
2846 for ac_file in $ac_files
2847 do
2848   case $ac_file in
2849     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2850     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2851   esac
2852 done
2853 rm -f $ac_rmfiles
2854
2855 if { { ac_try="$ac_link_default"
2856 case "(($ac_try" in
2857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858   *) ac_try_echo=$ac_try;;
2859 esac
2860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2861 $as_echo "$ac_try_echo"; } >&5
2862   (eval "$ac_link_default") 2>&5
2863   ac_status=$?
2864   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2865   test $ac_status = 0; }; then :
2866   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2867 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2868 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2869 # so that the user can short-circuit this test for compilers unknown to
2870 # Autoconf.
2871 for ac_file in $ac_files ''
2872 do
2873   test -f "$ac_file" || continue
2874   case $ac_file in
2875     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2876         ;;
2877     [ab].out )
2878         # We found the default executable, but exeext='' is most
2879         # certainly right.
2880         break;;
2881     *.* )
2882         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2883         then :; else
2884            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2885         fi
2886         # We set ac_cv_exeext here because the later test for it is not
2887         # safe: cross compilers may not add the suffix if given an `-o'
2888         # argument, so we may need to know it at that point already.
2889         # Even if this section looks crufty: it has the advantage of
2890         # actually working.
2891         break;;
2892     * )
2893         break;;
2894   esac
2895 done
2896 test "$ac_cv_exeext" = no && ac_cv_exeext=
2897
2898 else
2899   ac_file=''
2900 fi
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2902 $as_echo "$ac_file" >&6; }
2903 if test -z "$ac_file"; then :
2904   $as_echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.$ac_ext >&5
2906
2907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2909 { as_fn_set_status 77
2910 as_fn_error "C compiler cannot create executables
2911 See \`config.log' for more details." "$LINENO" 5; }; }
2912 fi
2913 ac_exeext=$ac_cv_exeext
2914
2915 # Check that the compiler produces executables we can run.  If not, either
2916 # the compiler is broken, or we cross compile.
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2918 $as_echo_n "checking whether the C compiler works... " >&6; }
2919 # If not cross compiling, check that we can run a simple program.
2920 if test "$cross_compiling" != yes; then
2921   if { ac_try='./$ac_file'
2922   { { case "(($ac_try" in
2923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924   *) ac_try_echo=$ac_try;;
2925 esac
2926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2927 $as_echo "$ac_try_echo"; } >&5
2928   (eval "$ac_try") 2>&5
2929   ac_status=$?
2930   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2931   test $ac_status = 0; }; }; then
2932     cross_compiling=no
2933   else
2934     if test "$cross_compiling" = maybe; then
2935         cross_compiling=yes
2936     else
2937         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2939 as_fn_error "cannot run C compiled programs.
2940 If you meant to cross compile, use \`--host'.
2941 See \`config.log' for more details." "$LINENO" 5; }
2942     fi
2943   fi
2944 fi
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2946 $as_echo "yes" >&6; }
2947
2948 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2949 ac_clean_files=$ac_clean_files_save
2950 # Check that the compiler produces executables we can run.  If not, either
2951 # the compiler is broken, or we cross compile.
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2953 $as_echo_n "checking whether we are cross compiling... " >&6; }
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2955 $as_echo "$cross_compiling" >&6; }
2956
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2958 $as_echo_n "checking for suffix of executables... " >&6; }
2959 if { { ac_try="$ac_link"
2960 case "(($ac_try" in
2961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962   *) ac_try_echo=$ac_try;;
2963 esac
2964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2965 $as_echo "$ac_try_echo"; } >&5
2966   (eval "$ac_link") 2>&5
2967   ac_status=$?
2968   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2969   test $ac_status = 0; }; then :
2970   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2971 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2972 # work properly (i.e., refer to `conftest.exe'), while it won't with
2973 # `rm'.
2974 for ac_file in conftest.exe conftest conftest.*; do
2975   test -f "$ac_file" || continue
2976   case $ac_file in
2977     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2978     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2979           break;;
2980     * ) break;;
2981   esac
2982 done
2983 else
2984   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2986 as_fn_error "cannot compute suffix of executables: cannot compile and link
2987 See \`config.log' for more details." "$LINENO" 5; }
2988 fi
2989 rm -f conftest$ac_cv_exeext
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2991 $as_echo "$ac_cv_exeext" >&6; }
2992
2993 rm -f conftest.$ac_ext
2994 EXEEXT=$ac_cv_exeext
2995 ac_exeext=$EXEEXT
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2997 $as_echo_n "checking for suffix of object files... " >&6; }
2998 if test "${ac_cv_objext+set}" = set; then :
2999   $as_echo_n "(cached) " >&6
3000 else
3001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3002 /* end confdefs.h.  */
3003
3004 int
3005 main ()
3006 {
3007
3008   ;
3009   return 0;
3010 }
3011 _ACEOF
3012 rm -f conftest.o conftest.obj
3013 if { { ac_try="$ac_compile"
3014 case "(($ac_try" in
3015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016   *) ac_try_echo=$ac_try;;
3017 esac
3018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3019 $as_echo "$ac_try_echo"; } >&5
3020   (eval "$ac_compile") 2>&5
3021   ac_status=$?
3022   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3023   test $ac_status = 0; }; then :
3024   for ac_file in conftest.o conftest.obj conftest.*; do
3025   test -f "$ac_file" || continue;
3026   case $ac_file in
3027     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3028     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3029        break;;
3030   esac
3031 done
3032 else
3033   $as_echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.$ac_ext >&5
3035
3036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3038 as_fn_error "cannot compute suffix of object files: cannot compile
3039 See \`config.log' for more details." "$LINENO" 5; }
3040 fi
3041 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3042 fi
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3044 $as_echo "$ac_cv_objext" >&6; }
3045 OBJEXT=$ac_cv_objext
3046 ac_objext=$OBJEXT
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3048 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3049 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3050   $as_echo_n "(cached) " >&6
3051 else
3052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3053 /* end confdefs.h.  */
3054
3055 int
3056 main ()
3057 {
3058 #ifndef __GNUC__
3059        choke me
3060 #endif
3061
3062   ;
3063   return 0;
3064 }
3065 _ACEOF
3066 if ac_fn_c_try_compile "$LINENO"; then :
3067   ac_compiler_gnu=yes
3068 else
3069   ac_compiler_gnu=no
3070 fi
3071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3072 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3073
3074 fi
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3076 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3077 if test $ac_compiler_gnu = yes; then
3078   GCC=yes
3079 else
3080   GCC=
3081 fi
3082 ac_test_CFLAGS=${CFLAGS+set}
3083 ac_save_CFLAGS=$CFLAGS
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3085 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3086 if test "${ac_cv_prog_cc_g+set}" = set; then :
3087   $as_echo_n "(cached) " >&6
3088 else
3089   ac_save_c_werror_flag=$ac_c_werror_flag
3090    ac_c_werror_flag=yes
3091    ac_cv_prog_cc_g=no
3092    CFLAGS="-g"
3093    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3094 /* end confdefs.h.  */
3095
3096 int
3097 main ()
3098 {
3099
3100   ;
3101   return 0;
3102 }
3103 _ACEOF
3104 if ac_fn_c_try_compile "$LINENO"; then :
3105   ac_cv_prog_cc_g=yes
3106 else
3107   CFLAGS=""
3108       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3109 /* end confdefs.h.  */
3110
3111 int
3112 main ()
3113 {
3114
3115   ;
3116   return 0;
3117 }
3118 _ACEOF
3119 if ac_fn_c_try_compile "$LINENO"; then :
3120
3121 else
3122   ac_c_werror_flag=$ac_save_c_werror_flag
3123          CFLAGS="-g"
3124          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3125 /* end confdefs.h.  */
3126
3127 int
3128 main ()
3129 {
3130
3131   ;
3132   return 0;
3133 }
3134 _ACEOF
3135 if ac_fn_c_try_compile "$LINENO"; then :
3136   ac_cv_prog_cc_g=yes
3137 fi
3138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3139 fi
3140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3141 fi
3142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3143    ac_c_werror_flag=$ac_save_c_werror_flag
3144 fi
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3146 $as_echo "$ac_cv_prog_cc_g" >&6; }
3147 if test "$ac_test_CFLAGS" = set; then
3148   CFLAGS=$ac_save_CFLAGS
3149 elif test $ac_cv_prog_cc_g = yes; then
3150   if test "$GCC" = yes; then
3151     CFLAGS="-g -O2"
3152   else
3153     CFLAGS="-g"
3154   fi
3155 else
3156   if test "$GCC" = yes; then
3157     CFLAGS="-O2"
3158   else
3159     CFLAGS=
3160   fi
3161 fi
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3163 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3164 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3165   $as_echo_n "(cached) " >&6
3166 else
3167   ac_cv_prog_cc_c89=no
3168 ac_save_CC=$CC
3169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3170 /* end confdefs.h.  */
3171 #include <stdarg.h>
3172 #include <stdio.h>
3173 #include <sys/types.h>
3174 #include <sys/stat.h>
3175 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3176 struct buf { int x; };
3177 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3178 static char *e (p, i)
3179      char **p;
3180      int i;
3181 {
3182   return p[i];
3183 }
3184 static char *f (char * (*g) (char **, int), char **p, ...)
3185 {
3186   char *s;
3187   va_list v;
3188   va_start (v,p);
3189   s = g (p, va_arg (v,int));
3190   va_end (v);
3191   return s;
3192 }
3193
3194 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3195    function prototypes and stuff, but not '\xHH' hex character constants.
3196    These don't provoke an error unfortunately, instead are silently treated
3197    as 'x'.  The following induces an error, until -std is added to get
3198    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3199    array size at least.  It's necessary to write '\x00'==0 to get something
3200    that's true only with -std.  */
3201 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3202
3203 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3204    inside strings and character constants.  */
3205 #define FOO(x) 'x'
3206 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3207
3208 int test (int i, double x);
3209 struct s1 {int (*f) (int a);};
3210 struct s2 {int (*f) (double a);};
3211 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3212 int argc;
3213 char **argv;
3214 int
3215 main ()
3216 {
3217 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3218   ;
3219   return 0;
3220 }
3221 _ACEOF
3222 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3223         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3224 do
3225   CC="$ac_save_CC $ac_arg"
3226   if ac_fn_c_try_compile "$LINENO"; then :
3227   ac_cv_prog_cc_c89=$ac_arg
3228 fi
3229 rm -f core conftest.err conftest.$ac_objext
3230   test "x$ac_cv_prog_cc_c89" != "xno" && break
3231 done
3232 rm -f conftest.$ac_ext
3233 CC=$ac_save_CC
3234
3235 fi
3236 # AC_CACHE_VAL
3237 case "x$ac_cv_prog_cc_c89" in
3238   x)
3239     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3240 $as_echo "none needed" >&6; } ;;
3241   xno)
3242     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3243 $as_echo "unsupported" >&6; } ;;
3244   *)
3245     CC="$CC $ac_cv_prog_cc_c89"
3246     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3247 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3248 esac
3249 if test "x$ac_cv_prog_cc_c89" != xno; then :
3250
3251 fi
3252
3253 ac_ext=c
3254 ac_cpp='$CPP $CPPFLAGS'
3255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3258
3259
3260 ac_ext=c
3261 ac_cpp='$CPP $CPPFLAGS'
3262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3265 if test -n "$ac_tool_prefix"; then
3266   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3267 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269 $as_echo_n "checking for $ac_word... " >&6; }
3270 if test "${ac_cv_prog_CC+set}" = set; then :
3271   $as_echo_n "(cached) " >&6
3272 else
3273   if test -n "$CC"; then
3274   ac_cv_prog_CC="$CC" # Let the user override the test.
3275 else
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 for as_dir in $PATH
3278 do
3279   IFS=$as_save_IFS
3280   test -z "$as_dir" && as_dir=.
3281     for ac_exec_ext in '' $ac_executable_extensions; do
3282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3283     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3285     break 2
3286   fi
3287 done
3288   done
3289 IFS=$as_save_IFS
3290
3291 fi
3292 fi
3293 CC=$ac_cv_prog_CC
3294 if test -n "$CC"; then
3295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3296 $as_echo "$CC" >&6; }
3297 else
3298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3300 fi
3301
3302
3303 fi
3304 if test -z "$ac_cv_prog_CC"; then
3305   ac_ct_CC=$CC
3306   # Extract the first word of "gcc", so it can be a program name with args.
3307 set dummy gcc; ac_word=$2
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3309 $as_echo_n "checking for $ac_word... " >&6; }
3310 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3311   $as_echo_n "(cached) " >&6
3312 else
3313   if test -n "$ac_ct_CC"; then
3314   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3315 else
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 for as_dir in $PATH
3318 do
3319   IFS=$as_save_IFS
3320   test -z "$as_dir" && as_dir=.
3321     for ac_exec_ext in '' $ac_executable_extensions; do
3322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3323     ac_cv_prog_ac_ct_CC="gcc"
3324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3325     break 2
3326   fi
3327 done
3328   done
3329 IFS=$as_save_IFS
3330
3331 fi
3332 fi
3333 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3334 if test -n "$ac_ct_CC"; then
3335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3336 $as_echo "$ac_ct_CC" >&6; }
3337 else
3338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3340 fi
3341
3342   if test "x$ac_ct_CC" = x; then
3343     CC=""
3344   else
3345     case $cross_compiling:$ac_tool_warned in
3346 yes:)
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3349 ac_tool_warned=yes ;;
3350 esac
3351     CC=$ac_ct_CC
3352   fi
3353 else
3354   CC="$ac_cv_prog_CC"
3355 fi
3356
3357 if test -z "$CC"; then
3358           if test -n "$ac_tool_prefix"; then
3359     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3360 set dummy ${ac_tool_prefix}cc; ac_word=$2
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362 $as_echo_n "checking for $ac_word... " >&6; }
3363 if test "${ac_cv_prog_CC+set}" = set; then :
3364   $as_echo_n "(cached) " >&6
3365 else
3366   if test -n "$CC"; then
3367   ac_cv_prog_CC="$CC" # Let the user override the test.
3368 else
3369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370 for as_dir in $PATH
3371 do
3372   IFS=$as_save_IFS
3373   test -z "$as_dir" && as_dir=.
3374     for ac_exec_ext in '' $ac_executable_extensions; do
3375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3376     ac_cv_prog_CC="${ac_tool_prefix}cc"
3377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3378     break 2
3379   fi
3380 done
3381   done
3382 IFS=$as_save_IFS
3383
3384 fi
3385 fi
3386 CC=$ac_cv_prog_CC
3387 if test -n "$CC"; then
3388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3389 $as_echo "$CC" >&6; }
3390 else
3391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3392 $as_echo "no" >&6; }
3393 fi
3394
3395
3396   fi
3397 fi
3398 if test -z "$CC"; then
3399   # Extract the first word of "cc", so it can be a program name with args.
3400 set dummy cc; ac_word=$2
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3402 $as_echo_n "checking for $ac_word... " >&6; }
3403 if test "${ac_cv_prog_CC+set}" = set; then :
3404   $as_echo_n "(cached) " >&6
3405 else
3406   if test -n "$CC"; then
3407   ac_cv_prog_CC="$CC" # Let the user override the test.
3408 else
3409   ac_prog_rejected=no
3410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411 for as_dir in $PATH
3412 do
3413   IFS=$as_save_IFS
3414   test -z "$as_dir" && as_dir=.
3415     for ac_exec_ext in '' $ac_executable_extensions; do
3416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3417     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3418        ac_prog_rejected=yes
3419        continue
3420      fi
3421     ac_cv_prog_CC="cc"
3422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3423     break 2
3424   fi
3425 done
3426   done
3427 IFS=$as_save_IFS
3428
3429 if test $ac_prog_rejected = yes; then
3430   # We found a bogon in the path, so make sure we never use it.
3431   set dummy $ac_cv_prog_CC
3432   shift
3433   if test $# != 0; then
3434     # We chose a different compiler from the bogus one.
3435     # However, it has the same basename, so the bogon will be chosen
3436     # first if we set CC to just the basename; use the full file name.
3437     shift
3438     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3439   fi
3440 fi
3441 fi
3442 fi
3443 CC=$ac_cv_prog_CC
3444 if test -n "$CC"; then
3445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3446 $as_echo "$CC" >&6; }
3447 else
3448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449 $as_echo "no" >&6; }
3450 fi
3451
3452
3453 fi
3454 if test -z "$CC"; then
3455   if test -n "$ac_tool_prefix"; then
3456   for ac_prog in cl.exe
3457   do
3458     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3459 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3461 $as_echo_n "checking for $ac_word... " >&6; }
3462 if test "${ac_cv_prog_CC+set}" = set; then :
3463   $as_echo_n "(cached) " >&6
3464 else
3465   if test -n "$CC"; then
3466   ac_cv_prog_CC="$CC" # Let the user override the test.
3467 else
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 for as_dir in $PATH
3470 do
3471   IFS=$as_save_IFS
3472   test -z "$as_dir" && as_dir=.
3473     for ac_exec_ext in '' $ac_executable_extensions; do
3474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3475     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3477     break 2
3478   fi
3479 done
3480   done
3481 IFS=$as_save_IFS
3482
3483 fi
3484 fi
3485 CC=$ac_cv_prog_CC
3486 if test -n "$CC"; then
3487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3488 $as_echo "$CC" >&6; }
3489 else
3490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491 $as_echo "no" >&6; }
3492 fi
3493
3494
3495     test -n "$CC" && break
3496   done
3497 fi
3498 if test -z "$CC"; then
3499   ac_ct_CC=$CC
3500   for ac_prog in cl.exe
3501 do
3502   # Extract the first word of "$ac_prog", so it can be a program name with args.
3503 set dummy $ac_prog; ac_word=$2
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3505 $as_echo_n "checking for $ac_word... " >&6; }
3506 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3507   $as_echo_n "(cached) " >&6
3508 else
3509   if test -n "$ac_ct_CC"; then
3510   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3511 else
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513 for as_dir in $PATH
3514 do
3515   IFS=$as_save_IFS
3516   test -z "$as_dir" && as_dir=.
3517     for ac_exec_ext in '' $ac_executable_extensions; do
3518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3519     ac_cv_prog_ac_ct_CC="$ac_prog"
3520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3521     break 2
3522   fi
3523 done
3524   done
3525 IFS=$as_save_IFS
3526
3527 fi
3528 fi
3529 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3530 if test -n "$ac_ct_CC"; then
3531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3532 $as_echo "$ac_ct_CC" >&6; }
3533 else
3534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535 $as_echo "no" >&6; }
3536 fi
3537
3538
3539   test -n "$ac_ct_CC" && break
3540 done
3541
3542   if test "x$ac_ct_CC" = x; then
3543     CC=""
3544   else
3545     case $cross_compiling:$ac_tool_warned in
3546 yes:)
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3549 ac_tool_warned=yes ;;
3550 esac
3551     CC=$ac_ct_CC
3552   fi
3553 fi
3554
3555 fi
3556
3557
3558 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3560 as_fn_error "no acceptable C compiler found in \$PATH
3561 See \`config.log' for more details." "$LINENO" 5; }
3562
3563 # Provide some information about the compiler.
3564 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3565 set X $ac_compile
3566 ac_compiler=$2
3567 for ac_option in --version -v -V -qversion; do
3568   { { ac_try="$ac_compiler $ac_option >&5"
3569 case "(($ac_try" in
3570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571   *) ac_try_echo=$ac_try;;
3572 esac
3573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3574 $as_echo "$ac_try_echo"; } >&5
3575   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3576   ac_status=$?
3577   if test -s conftest.err; then
3578     sed '10a\
3579 ... rest of stderr output deleted ...
3580          10q' conftest.err >conftest.er1
3581     cat conftest.er1 >&5
3582     rm -f conftest.er1 conftest.err
3583   fi
3584   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3585   test $ac_status = 0; }
3586 done
3587
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3589 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3590 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3591   $as_echo_n "(cached) " >&6
3592 else
3593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h.  */
3595
3596 int
3597 main ()
3598 {
3599 #ifndef __GNUC__
3600        choke me
3601 #endif
3602
3603   ;
3604   return 0;
3605 }
3606 _ACEOF
3607 if ac_fn_c_try_compile "$LINENO"; then :
3608   ac_compiler_gnu=yes
3609 else
3610   ac_compiler_gnu=no
3611 fi
3612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3613 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3614
3615 fi
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3617 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3618 if test $ac_compiler_gnu = yes; then
3619   GCC=yes
3620 else
3621   GCC=
3622 fi
3623 ac_test_CFLAGS=${CFLAGS+set}
3624 ac_save_CFLAGS=$CFLAGS
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3626 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3627 if test "${ac_cv_prog_cc_g+set}" = set; then :
3628   $as_echo_n "(cached) " >&6
3629 else
3630   ac_save_c_werror_flag=$ac_c_werror_flag
3631    ac_c_werror_flag=yes
3632    ac_cv_prog_cc_g=no
3633    CFLAGS="-g"
3634    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635 /* end confdefs.h.  */
3636
3637 int
3638 main ()
3639 {
3640
3641   ;
3642   return 0;
3643 }
3644 _ACEOF
3645 if ac_fn_c_try_compile "$LINENO"; then :
3646   ac_cv_prog_cc_g=yes
3647 else
3648   CFLAGS=""
3649       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h.  */
3651
3652 int
3653 main ()
3654 {
3655
3656   ;
3657   return 0;
3658 }
3659 _ACEOF
3660 if ac_fn_c_try_compile "$LINENO"; then :
3661
3662 else
3663   ac_c_werror_flag=$ac_save_c_werror_flag
3664          CFLAGS="-g"
3665          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h.  */
3667
3668 int
3669 main ()
3670 {
3671
3672   ;
3673   return 0;
3674 }
3675 _ACEOF
3676 if ac_fn_c_try_compile "$LINENO"; then :
3677   ac_cv_prog_cc_g=yes
3678 fi
3679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3680 fi
3681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3682 fi
3683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3684    ac_c_werror_flag=$ac_save_c_werror_flag
3685 fi
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3687 $as_echo "$ac_cv_prog_cc_g" >&6; }
3688 if test "$ac_test_CFLAGS" = set; then
3689   CFLAGS=$ac_save_CFLAGS
3690 elif test $ac_cv_prog_cc_g = yes; then
3691   if test "$GCC" = yes; then
3692     CFLAGS="-g -O2"
3693   else
3694     CFLAGS="-g"
3695   fi
3696 else
3697   if test "$GCC" = yes; then
3698     CFLAGS="-O2"
3699   else
3700     CFLAGS=
3701   fi
3702 fi
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3704 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3705 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3706   $as_echo_n "(cached) " >&6
3707 else
3708   ac_cv_prog_cc_c89=no
3709 ac_save_CC=$CC
3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h.  */
3712 #include <stdarg.h>
3713 #include <stdio.h>
3714 #include <sys/types.h>
3715 #include <sys/stat.h>
3716 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3717 struct buf { int x; };
3718 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3719 static char *e (p, i)
3720      char **p;
3721      int i;
3722 {
3723   return p[i];
3724 }
3725 static char *f (char * (*g) (char **, int), char **p, ...)
3726 {
3727   char *s;
3728   va_list v;
3729   va_start (v,p);
3730   s = g (p, va_arg (v,int));
3731   va_end (v);
3732   return s;
3733 }
3734
3735 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3736    function prototypes and stuff, but not '\xHH' hex character constants.
3737    These don't provoke an error unfortunately, instead are silently treated
3738    as 'x'.  The following induces an error, until -std is added to get
3739    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3740    array size at least.  It's necessary to write '\x00'==0 to get something
3741    that's true only with -std.  */
3742 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3743
3744 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3745    inside strings and character constants.  */
3746 #define FOO(x) 'x'
3747 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3748
3749 int test (int i, double x);
3750 struct s1 {int (*f) (int a);};
3751 struct s2 {int (*f) (double a);};
3752 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3753 int argc;
3754 char **argv;
3755 int
3756 main ()
3757 {
3758 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3759   ;
3760   return 0;
3761 }
3762 _ACEOF
3763 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3764         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3765 do
3766   CC="$ac_save_CC $ac_arg"
3767   if ac_fn_c_try_compile "$LINENO"; then :
3768   ac_cv_prog_cc_c89=$ac_arg
3769 fi
3770 rm -f core conftest.err conftest.$ac_objext
3771   test "x$ac_cv_prog_cc_c89" != "xno" && break
3772 done
3773 rm -f conftest.$ac_ext
3774 CC=$ac_save_CC
3775
3776 fi
3777 # AC_CACHE_VAL
3778 case "x$ac_cv_prog_cc_c89" in
3779   x)
3780     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3781 $as_echo "none needed" >&6; } ;;
3782   xno)
3783     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3784 $as_echo "unsupported" >&6; } ;;
3785   *)
3786     CC="$CC $ac_cv_prog_cc_c89"
3787     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3788 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3789 esac
3790 if test "x$ac_cv_prog_cc_c89" != xno; then :
3791
3792 fi
3793
3794 ac_ext=c
3795 ac_cpp='$CPP $CPPFLAGS'
3796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3799
3800
3801 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
3802
3803
3804
3805
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
3807 $as_echo_n "checking for library containing crypt... " >&6; }
3808 if test "${ac_cv_search_crypt+set}" = set; then :
3809   $as_echo_n "(cached) " >&6
3810 else
3811   ac_func_search_save_LIBS=$LIBS
3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h.  */
3814
3815 /* Override any GCC internal prototype to avoid an error.
3816    Use char because int might match the return type of a GCC
3817    builtin and then its argument prototype would still apply.  */
3818 #ifdef __cplusplus
3819 extern "C"
3820 #endif
3821 char crypt ();
3822 int
3823 main ()
3824 {
3825 return crypt ();
3826   ;
3827   return 0;
3828 }
3829 _ACEOF
3830 for ac_lib in '' descrypt crypt; do
3831   if test -z "$ac_lib"; then
3832     ac_res="none required"
3833   else
3834     ac_res=-l$ac_lib
3835     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3836   fi
3837   if ac_fn_c_try_link "$LINENO"; then :
3838   ac_cv_search_crypt=$ac_res
3839 fi
3840 rm -f core conftest.err conftest.$ac_objext \
3841     conftest$ac_exeext
3842   if test "${ac_cv_search_crypt+set}" = set; then :
3843   break
3844 fi
3845 done
3846 if test "${ac_cv_search_crypt+set}" = set; then :
3847
3848 else
3849   ac_cv_search_crypt=no
3850 fi
3851 rm conftest.$ac_ext
3852 LIBS=$ac_func_search_save_LIBS
3853 fi
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
3855 $as_echo "$ac_cv_search_crypt" >&6; }
3856 ac_res=$ac_cv_search_crypt
3857 if test "$ac_res" != no; then :
3858   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3859
3860 else
3861   as_fn_error "Unable to find library containing crypt()" "$LINENO" 5
3862 fi
3863
3864
3865
3866    # Most operating systems have gethostbyname() in the default searched
3867    # libraries (i.e. libc):
3868    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
3869 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
3870
3871 else
3872   # Some OSes (eg. Solaris) place it in libnsl:
3873      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
3874 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
3875 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
3876   $as_echo_n "(cached) " >&6
3877 else
3878   ac_check_lib_save_LIBS=$LIBS
3879 LIBS="-lnsl  $LIBS"
3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h.  */
3882
3883 /* Override any GCC internal prototype to avoid an error.
3884    Use char because int might match the return type of a GCC
3885    builtin and then its argument prototype would still apply.  */
3886 #ifdef __cplusplus
3887 extern "C"
3888 #endif
3889 char gethostbyname ();
3890 int
3891 main ()
3892 {
3893 return gethostbyname ();
3894   ;
3895   return 0;
3896 }
3897 _ACEOF
3898 if ac_fn_c_try_link "$LINENO"; then :
3899   ac_cv_lib_nsl_gethostbyname=yes
3900 else
3901   ac_cv_lib_nsl_gethostbyname=no
3902 fi
3903 rm -f core conftest.err conftest.$ac_objext \
3904     conftest$ac_exeext conftest.$ac_ext
3905 LIBS=$ac_check_lib_save_LIBS
3906 fi
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
3908 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
3909 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
3910   cat >>confdefs.h <<_ACEOF
3911 #define HAVE_LIBNSL 1
3912 _ACEOF
3913
3914   LIBS="-lnsl $LIBS"
3915
3916 else
3917   # Some strange OSes (SINIX) have it in libsocket:
3918        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
3919 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
3920 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then :
3921   $as_echo_n "(cached) " >&6
3922 else
3923   ac_check_lib_save_LIBS=$LIBS
3924 LIBS="-lsocket  $LIBS"
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h.  */
3927
3928 /* Override any GCC internal prototype to avoid an error.
3929    Use char because int might match the return type of a GCC
3930    builtin and then its argument prototype would still apply.  */
3931 #ifdef __cplusplus
3932 extern "C"
3933 #endif
3934 char gethostbyname ();
3935 int
3936 main ()
3937 {
3938 return gethostbyname ();
3939   ;
3940   return 0;
3941 }
3942 _ACEOF
3943 if ac_fn_c_try_link "$LINENO"; then :
3944   ac_cv_lib_socket_gethostbyname=yes
3945 else
3946   ac_cv_lib_socket_gethostbyname=no
3947 fi
3948 rm -f core conftest.err conftest.$ac_objext \
3949     conftest$ac_exeext conftest.$ac_ext
3950 LIBS=$ac_check_lib_save_LIBS
3951 fi
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
3953 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
3954 if test "x$ac_cv_lib_socket_gethostbyname" = x""yes; then :
3955   cat >>confdefs.h <<_ACEOF
3956 #define HAVE_LIBSOCKET 1
3957 _ACEOF
3958
3959   LIBS="-lsocket $LIBS"
3960
3961 else
3962   # Unfortunately libsocket sometimes depends on libnsl.
3963           # AC_CHECK_LIB's API is essentially broken so the following
3964           # ugliness is necessary:
3965           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
3966 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
3967 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then :
3968   $as_echo_n "(cached) " >&6
3969 else
3970   ac_check_lib_save_LIBS=$LIBS
3971 LIBS="-lsocket -lnsl $LIBS"
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h.  */
3974
3975 /* Override any GCC internal prototype to avoid an error.
3976    Use char because int might match the return type of a GCC
3977    builtin and then its argument prototype would still apply.  */
3978 #ifdef __cplusplus
3979 extern "C"
3980 #endif
3981 char gethostbyname ();
3982 int
3983 main ()
3984 {
3985 return gethostbyname ();
3986   ;
3987   return 0;
3988 }
3989 _ACEOF
3990 if ac_fn_c_try_link "$LINENO"; then :
3991   ac_cv_lib_socket_gethostbyname=yes
3992 else
3993   ac_cv_lib_socket_gethostbyname=no
3994 fi
3995 rm -f core conftest.err conftest.$ac_objext \
3996     conftest$ac_exeext conftest.$ac_ext
3997 LIBS=$ac_check_lib_save_LIBS
3998 fi
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
4000 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
4001 if test "x$ac_cv_lib_socket_gethostbyname" = x""yes; then :
4002   LIBS="-lsocket -lnsl $LIBS"
4003 else
4004   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lresolv" >&5
4005 $as_echo_n "checking for gethostbyname in -lresolv... " >&6; }
4006 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then :
4007   $as_echo_n "(cached) " >&6
4008 else
4009   ac_check_lib_save_LIBS=$LIBS
4010 LIBS="-lresolv  $LIBS"
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h.  */
4013
4014 /* Override any GCC internal prototype to avoid an error.
4015    Use char because int might match the return type of a GCC
4016    builtin and then its argument prototype would still apply.  */
4017 #ifdef __cplusplus
4018 extern "C"
4019 #endif
4020 char gethostbyname ();
4021 int
4022 main ()
4023 {
4024 return gethostbyname ();
4025   ;
4026   return 0;
4027 }
4028 _ACEOF
4029 if ac_fn_c_try_link "$LINENO"; then :
4030   ac_cv_lib_resolv_gethostbyname=yes
4031 else
4032   ac_cv_lib_resolv_gethostbyname=no
4033 fi
4034 rm -f core conftest.err conftest.$ac_objext \
4035     conftest$ac_exeext conftest.$ac_ext
4036 LIBS=$ac_check_lib_save_LIBS
4037 fi
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname" >&5
4039 $as_echo "$ac_cv_lib_resolv_gethostbyname" >&6; }
4040 if test "x$ac_cv_lib_resolv_gethostbyname" = x""yes; then :
4041   cat >>confdefs.h <<_ACEOF
4042 #define HAVE_LIBRESOLV 1
4043 _ACEOF
4044
4045   LIBS="-lresolv $LIBS"
4046
4047 fi
4048
4049 fi
4050
4051
4052 fi
4053
4054
4055 fi
4056
4057
4058 fi
4059
4060   ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
4061 if test "x$ac_cv_func_socket" = x""yes; then :
4062
4063 else
4064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
4065 $as_echo_n "checking for socket in -lsocket... " >&6; }
4066 if test "${ac_cv_lib_socket_socket+set}" = set; then :
4067   $as_echo_n "(cached) " >&6
4068 else
4069   ac_check_lib_save_LIBS=$LIBS
4070 LIBS="-lsocket  $LIBS"
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h.  */
4073
4074 /* Override any GCC internal prototype to avoid an error.
4075    Use char because int might match the return type of a GCC
4076    builtin and then its argument prototype would still apply.  */
4077 #ifdef __cplusplus
4078 extern "C"
4079 #endif
4080 char socket ();
4081 int
4082 main ()
4083 {
4084 return socket ();
4085   ;
4086   return 0;
4087 }
4088 _ACEOF
4089 if ac_fn_c_try_link "$LINENO"; then :
4090   ac_cv_lib_socket_socket=yes
4091 else
4092   ac_cv_lib_socket_socket=no
4093 fi
4094 rm -f core conftest.err conftest.$ac_objext \
4095     conftest$ac_exeext conftest.$ac_ext
4096 LIBS=$ac_check_lib_save_LIBS
4097 fi
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
4099 $as_echo "$ac_cv_lib_socket_socket" >&6; }
4100 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
4101   cat >>confdefs.h <<_ACEOF
4102 #define HAVE_LIBSOCKET 1
4103 _ACEOF
4104
4105   LIBS="-lsocket $LIBS"
4106
4107 else
4108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
4109 $as_echo_n "checking for socket in -lsocket... " >&6; }
4110 if test "${ac_cv_lib_socket_socket+set}" = set; then :
4111   $as_echo_n "(cached) " >&6
4112 else
4113   ac_check_lib_save_LIBS=$LIBS
4114 LIBS="-lsocket -lnsl $LIBS"
4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116 /* end confdefs.h.  */
4117
4118 /* Override any GCC internal prototype to avoid an error.
4119    Use char because int might match the return type of a GCC
4120    builtin and then its argument prototype would still apply.  */
4121 #ifdef __cplusplus
4122 extern "C"
4123 #endif
4124 char socket ();
4125 int
4126 main ()
4127 {
4128 return socket ();
4129   ;
4130   return 0;
4131 }
4132 _ACEOF
4133 if ac_fn_c_try_link "$LINENO"; then :
4134   ac_cv_lib_socket_socket=yes
4135 else
4136   ac_cv_lib_socket_socket=no
4137 fi
4138 rm -f core conftest.err conftest.$ac_objext \
4139     conftest$ac_exeext conftest.$ac_ext
4140 LIBS=$ac_check_lib_save_LIBS
4141 fi
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
4143 $as_echo "$ac_cv_lib_socket_socket" >&6; }
4144 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
4145   LIBS="-lsocket -lnsl $LIBS"
4146 fi
4147
4148 fi
4149
4150 fi
4151
4152
4153
4154 ac_ext=c
4155 ac_cpp='$CPP $CPPFLAGS'
4156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4160 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4161 # On Suns, sometimes $CPP names a directory.
4162 if test -n "$CPP" && test -d "$CPP"; then
4163   CPP=
4164 fi
4165 if test -z "$CPP"; then
4166   if test "${ac_cv_prog_CPP+set}" = set; then :
4167   $as_echo_n "(cached) " >&6
4168 else
4169       # Double quotes because CPP needs to be expanded
4170     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4171     do
4172       ac_preproc_ok=false
4173 for ac_c_preproc_warn_flag in '' yes
4174 do
4175   # Use a header file that comes with gcc, so configuring glibc
4176   # with a fresh cross-compiler works.
4177   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4178   # <limits.h> exists even on freestanding compilers.
4179   # On the NeXT, cc -E runs the code through the compiler's parser,
4180   # not just through cpp. "Syntax error" is here to catch this case.
4181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h.  */
4183 #ifdef __STDC__
4184 # include <limits.h>
4185 #else
4186 # include <assert.h>
4187 #endif
4188                      Syntax error
4189 _ACEOF
4190 if ac_fn_c_try_cpp "$LINENO"; then :
4191
4192 else
4193   # Broken: fails on valid input.
4194 continue
4195 fi
4196 rm -f conftest.err conftest.$ac_ext
4197
4198   # OK, works on sane cases.  Now check whether nonexistent headers
4199   # can be detected and how.
4200   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h.  */
4202 #include <ac_nonexistent.h>
4203 _ACEOF
4204 if ac_fn_c_try_cpp "$LINENO"; then :
4205   # Broken: success on invalid input.
4206 continue
4207 else
4208   # Passes both tests.
4209 ac_preproc_ok=:
4210 break
4211 fi
4212 rm -f conftest.err conftest.$ac_ext
4213
4214 done
4215 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4216 rm -f conftest.err conftest.$ac_ext
4217 if $ac_preproc_ok; then :
4218   break
4219 fi
4220
4221     done
4222     ac_cv_prog_CPP=$CPP
4223
4224 fi
4225   CPP=$ac_cv_prog_CPP
4226 else
4227   ac_cv_prog_CPP=$CPP
4228 fi
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4230 $as_echo "$CPP" >&6; }
4231 ac_preproc_ok=false
4232 for ac_c_preproc_warn_flag in '' yes
4233 do
4234   # Use a header file that comes with gcc, so configuring glibc
4235   # with a fresh cross-compiler works.
4236   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4237   # <limits.h> exists even on freestanding compilers.
4238   # On the NeXT, cc -E runs the code through the compiler's parser,
4239   # not just through cpp. "Syntax error" is here to catch this case.
4240   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h.  */
4242 #ifdef __STDC__
4243 # include <limits.h>
4244 #else
4245 # include <assert.h>
4246 #endif
4247                      Syntax error
4248 _ACEOF
4249 if ac_fn_c_try_cpp "$LINENO"; then :
4250
4251 else
4252   # Broken: fails on valid input.
4253 continue
4254 fi
4255 rm -f conftest.err conftest.$ac_ext
4256
4257   # OK, works on sane cases.  Now check whether nonexistent headers
4258   # can be detected and how.
4259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h.  */
4261 #include <ac_nonexistent.h>
4262 _ACEOF
4263 if ac_fn_c_try_cpp "$LINENO"; then :
4264   # Broken: success on invalid input.
4265 continue
4266 else
4267   # Passes both tests.
4268 ac_preproc_ok=:
4269 break
4270 fi
4271 rm -f conftest.err conftest.$ac_ext
4272
4273 done
4274 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4275 rm -f conftest.err conftest.$ac_ext
4276 if $ac_preproc_ok; then :
4277
4278 else
4279   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4281 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4282 See \`config.log' for more details." "$LINENO" 5; }
4283 fi
4284
4285 ac_ext=c
4286 ac_cpp='$CPP $CPPFLAGS'
4287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4290
4291
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4293 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4294 if test "${ac_cv_path_GREP+set}" = set; then :
4295   $as_echo_n "(cached) " >&6
4296 else
4297   if test -z "$GREP"; then
4298   ac_path_GREP_found=false
4299   # Loop through the user's path and test for each of PROGNAME-LIST
4300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4302 do
4303   IFS=$as_save_IFS
4304   test -z "$as_dir" && as_dir=.
4305     for ac_prog in grep ggrep; do
4306     for ac_exec_ext in '' $ac_executable_extensions; do
4307       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4308       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4309 # Check for GNU ac_path_GREP and select it if it is found.
4310   # Check for GNU $ac_path_GREP
4311 case `"$ac_path_GREP" --version 2>&1` in
4312 *GNU*)
4313   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4314 *)
4315   ac_count=0
4316   $as_echo_n 0123456789 >"conftest.in"
4317   while :
4318   do
4319     cat "conftest.in" "conftest.in" >"conftest.tmp"
4320     mv "conftest.tmp" "conftest.in"
4321     cp "conftest.in" "conftest.nl"
4322     $as_echo 'GREP' >> "conftest.nl"
4323     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4324     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4325     as_fn_arith $ac_count + 1 && ac_count=$as_val
4326     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4327       # Best one so far, save it but keep looking for a better one
4328       ac_cv_path_GREP="$ac_path_GREP"
4329       ac_path_GREP_max=$ac_count
4330     fi
4331     # 10*(2^10) chars as input seems more than enough
4332     test $ac_count -gt 10 && break
4333   done
4334   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4335 esac
4336
4337       $ac_path_GREP_found && break 3
4338     done
4339   done
4340   done
4341 IFS=$as_save_IFS
4342   if test -z "$ac_cv_path_GREP"; then
4343     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4344   fi
4345 else
4346   ac_cv_path_GREP=$GREP
4347 fi
4348
4349 fi
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4351 $as_echo "$ac_cv_path_GREP" >&6; }
4352  GREP="$ac_cv_path_GREP"
4353
4354
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4356 $as_echo_n "checking for egrep... " >&6; }
4357 if test "${ac_cv_path_EGREP+set}" = set; then :
4358   $as_echo_n "(cached) " >&6
4359 else
4360   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4361    then ac_cv_path_EGREP="$GREP -E"
4362    else
4363      if test -z "$EGREP"; then
4364   ac_path_EGREP_found=false
4365   # Loop through the user's path and test for each of PROGNAME-LIST
4366   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4368 do
4369   IFS=$as_save_IFS
4370   test -z "$as_dir" && as_dir=.
4371     for ac_prog in egrep; do
4372     for ac_exec_ext in '' $ac_executable_extensions; do
4373       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4374       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4375 # Check for GNU ac_path_EGREP and select it if it is found.
4376   # Check for GNU $ac_path_EGREP
4377 case `"$ac_path_EGREP" --version 2>&1` in
4378 *GNU*)
4379   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4380 *)
4381   ac_count=0
4382   $as_echo_n 0123456789 >"conftest.in"
4383   while :
4384   do
4385     cat "conftest.in" "conftest.in" >"conftest.tmp"
4386     mv "conftest.tmp" "conftest.in"
4387     cp "conftest.in" "conftest.nl"
4388     $as_echo 'EGREP' >> "conftest.nl"
4389     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4390     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4391     as_fn_arith $ac_count + 1 && ac_count=$as_val
4392     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4393       # Best one so far, save it but keep looking for a better one
4394       ac_cv_path_EGREP="$ac_path_EGREP"
4395       ac_path_EGREP_max=$ac_count
4396     fi
4397     # 10*(2^10) chars as input seems more than enough
4398     test $ac_count -gt 10 && break
4399   done
4400   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4401 esac
4402
4403       $ac_path_EGREP_found && break 3
4404     done
4405   done
4406   done
4407 IFS=$as_save_IFS
4408   if test -z "$ac_cv_path_EGREP"; then
4409     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4410   fi
4411 else
4412   ac_cv_path_EGREP=$EGREP
4413 fi
4414
4415    fi
4416 fi
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4418 $as_echo "$ac_cv_path_EGREP" >&6; }
4419  EGREP="$ac_cv_path_EGREP"
4420
4421
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4423 $as_echo_n "checking for ANSI C header files... " >&6; }
4424 if test "${ac_cv_header_stdc+set}" = set; then :
4425   $as_echo_n "(cached) " >&6
4426 else
4427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h.  */
4429 #include <stdlib.h>
4430 #include <stdarg.h>
4431 #include <string.h>
4432 #include <float.h>
4433
4434 int
4435 main ()
4436 {
4437
4438   ;
4439   return 0;
4440 }
4441 _ACEOF
4442 if ac_fn_c_try_compile "$LINENO"; then :
4443   ac_cv_header_stdc=yes
4444 else
4445   ac_cv_header_stdc=no
4446 fi
4447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4448
4449 if test $ac_cv_header_stdc = yes; then
4450   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h.  */
4453 #include <string.h>
4454
4455 _ACEOF
4456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4457   $EGREP "memchr" >/dev/null 2>&1; then :
4458
4459 else
4460   ac_cv_header_stdc=no
4461 fi
4462 rm -f conftest*
4463
4464 fi
4465
4466 if test $ac_cv_header_stdc = yes; then
4467   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h.  */
4470 #include <stdlib.h>
4471
4472 _ACEOF
4473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4474   $EGREP "free" >/dev/null 2>&1; then :
4475
4476 else
4477   ac_cv_header_stdc=no
4478 fi
4479 rm -f conftest*
4480
4481 fi
4482
4483 if test $ac_cv_header_stdc = yes; then
4484   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4485   if test "$cross_compiling" = yes; then :
4486   :
4487 else
4488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h.  */
4490 #include <ctype.h>
4491 #include <stdlib.h>
4492 #if ((' ' & 0x0FF) == 0x020)
4493 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4494 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4495 #else
4496 # define ISLOWER(c) \
4497                    (('a' <= (c) && (c) <= 'i') \
4498                      || ('j' <= (c) && (c) <= 'r') \
4499                      || ('s' <= (c) && (c) <= 'z'))
4500 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4501 #endif
4502
4503 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4504 int
4505 main ()
4506 {
4507   int i;
4508   for (i = 0; i < 256; i++)
4509     if (XOR (islower (i), ISLOWER (i))
4510         || toupper (i) != TOUPPER (i))
4511       return 2;
4512   return 0;
4513 }
4514 _ACEOF
4515 if ac_fn_c_try_run "$LINENO"; then :
4516
4517 else
4518   ac_cv_header_stdc=no
4519 fi
4520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4521   conftest.$ac_objext conftest.beam conftest.$ac_ext
4522 fi
4523
4524 fi
4525 fi
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4527 $as_echo "$ac_cv_header_stdc" >&6; }
4528 if test $ac_cv_header_stdc = yes; then
4529
4530 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4531
4532 fi
4533
4534 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4535 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4536                   inttypes.h stdint.h unistd.h
4537 do :
4538   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4539 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4540 "
4541 eval as_val=\$$as_ac_Header
4542    if test "x$as_val" = x""yes; then :
4543   cat >>confdefs.h <<_ACEOF
4544 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4545 _ACEOF
4546
4547 fi
4548
4549 done
4550
4551
4552 for ac_header in crypt.h poll.h inttypes.h stdint.h sys/devpoll.h sys/epoll.h sys/event.h sys/param.h sys/resource.h sys/socket.h
4553 do :
4554   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4555 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4556 eval as_val=\$$as_ac_Header
4557    if test "x$as_val" = x""yes; then :
4558   cat >>confdefs.h <<_ACEOF
4559 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4560 _ACEOF
4561
4562 fi
4563
4564 done
4565
4566
4567  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4568 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4569 if test "${ac_cv_c_bigendian+set}" = set; then :
4570   $as_echo_n "(cached) " >&6
4571 else
4572   ac_cv_c_bigendian=unknown
4573     # See if we're dealing with a universal compiler.
4574     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h.  */
4576 #ifndef __APPLE_CC__
4577                not a universal capable compiler
4578              #endif
4579              typedef int dummy;
4580
4581 _ACEOF
4582 if ac_fn_c_try_compile "$LINENO"; then :
4583
4584         # Check for potential -arch flags.  It is not universal unless
4585         # there are at least two -arch flags with different values.
4586         ac_arch=
4587         ac_prev=
4588         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4589          if test -n "$ac_prev"; then
4590            case $ac_word in
4591              i?86 | x86_64 | ppc | ppc64)
4592                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4593                  ac_arch=$ac_word
4594                else
4595                  ac_cv_c_bigendian=universal
4596                  break
4597                fi
4598                ;;
4599            esac
4600            ac_prev=
4601          elif test "x$ac_word" = "x-arch"; then
4602            ac_prev=arch
4603          fi
4604        done
4605 fi
4606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4607     if test $ac_cv_c_bigendian = unknown; then
4608       # See if sys/param.h defines the BYTE_ORDER macro.
4609       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610 /* end confdefs.h.  */
4611 #include <sys/types.h>
4612              #include <sys/param.h>
4613
4614 int
4615 main ()
4616 {
4617 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4618                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4619                      && LITTLE_ENDIAN)
4620               bogus endian macros
4621              #endif
4622
4623   ;
4624   return 0;
4625 }
4626 _ACEOF
4627 if ac_fn_c_try_compile "$LINENO"; then :
4628   # It does; now see whether it defined to BIG_ENDIAN or not.
4629          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h.  */
4631 #include <sys/types.h>
4632                 #include <sys/param.h>
4633
4634 int
4635 main ()
4636 {
4637 #if BYTE_ORDER != BIG_ENDIAN
4638                  not big endian
4639                 #endif
4640
4641   ;
4642   return 0;
4643 }
4644 _ACEOF
4645 if ac_fn_c_try_compile "$LINENO"; then :
4646   ac_cv_c_bigendian=yes
4647 else
4648   ac_cv_c_bigendian=no
4649 fi
4650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4651 fi
4652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4653     fi
4654     if test $ac_cv_c_bigendian = unknown; then
4655       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4656       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h.  */
4658 #include <limits.h>
4659
4660 int
4661 main ()
4662 {
4663 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4664               bogus endian macros
4665              #endif
4666
4667   ;
4668   return 0;
4669 }
4670 _ACEOF
4671 if ac_fn_c_try_compile "$LINENO"; then :
4672   # It does; now see whether it defined to _BIG_ENDIAN or not.
4673          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h.  */
4675 #include <limits.h>
4676
4677 int
4678 main ()
4679 {
4680 #ifndef _BIG_ENDIAN
4681                  not big endian
4682                 #endif
4683
4684   ;
4685   return 0;
4686 }
4687 _ACEOF
4688 if ac_fn_c_try_compile "$LINENO"; then :
4689   ac_cv_c_bigendian=yes
4690 else
4691   ac_cv_c_bigendian=no
4692 fi
4693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4694 fi
4695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4696     fi
4697     if test $ac_cv_c_bigendian = unknown; then
4698       # Compile a test program.
4699       if test "$cross_compiling" = yes; then :
4700   # Try to guess by grepping values from an object file.
4701          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4702 /* end confdefs.h.  */
4703 short int ascii_mm[] =
4704                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4705                 short int ascii_ii[] =
4706                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4707                 int use_ascii (int i) {
4708                   return ascii_mm[i] + ascii_ii[i];
4709                 }
4710                 short int ebcdic_ii[] =
4711                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4712                 short int ebcdic_mm[] =
4713                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4714                 int use_ebcdic (int i) {
4715                   return ebcdic_mm[i] + ebcdic_ii[i];
4716                 }
4717                 extern int foo;
4718
4719 int
4720 main ()
4721 {
4722 return use_ascii (foo) == use_ebcdic (foo);
4723   ;
4724   return 0;
4725 }
4726 _ACEOF
4727 if ac_fn_c_try_compile "$LINENO"; then :
4728   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4729               ac_cv_c_bigendian=yes
4730             fi
4731             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4732               if test "$ac_cv_c_bigendian" = unknown; then
4733                 ac_cv_c_bigendian=no
4734               else
4735                 # finding both strings is unlikely to happen, but who knows?
4736                 ac_cv_c_bigendian=unknown
4737               fi
4738             fi
4739 fi
4740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4741 else
4742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h.  */
4744 $ac_includes_default
4745 int
4746 main ()
4747 {
4748
4749              /* Are we little or big endian?  From Harbison&Steele.  */
4750              union
4751              {
4752                long int l;
4753                char c[sizeof (long int)];
4754              } u;
4755              u.l = 1;
4756              return u.c[sizeof (long int) - 1] == 1;
4757
4758   ;
4759   return 0;
4760 }
4761 _ACEOF
4762 if ac_fn_c_try_run "$LINENO"; then :
4763   ac_cv_c_bigendian=no
4764 else
4765   ac_cv_c_bigendian=yes
4766 fi
4767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4768   conftest.$ac_objext conftest.beam conftest.$ac_ext
4769 fi
4770
4771     fi
4772 fi
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4774 $as_echo "$ac_cv_c_bigendian" >&6; }
4775  case $ac_cv_c_bigendian in #(
4776    yes)
4777      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4778 ;; #(
4779    no)
4780       ;; #(
4781    universal)
4782
4783 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4784
4785      ;; #(
4786    *)
4787      as_fn_error "unknown endianness
4788  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4789  esac
4790
4791 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4792 if test "x$ac_cv_type_size_t" = x""yes; then :
4793
4794 else
4795
4796 cat >>confdefs.h <<_ACEOF
4797 #define size_t unsigned int
4798 _ACEOF
4799
4800 fi
4801
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4803 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4804 if test "${ac_cv_header_time+set}" = set; then :
4805   $as_echo_n "(cached) " >&6
4806 else
4807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808 /* end confdefs.h.  */
4809 #include <sys/types.h>
4810 #include <sys/time.h>
4811 #include <time.h>
4812
4813 int
4814 main ()
4815 {
4816 if ((struct tm *) 0)
4817 return 0;
4818   ;
4819   return 0;
4820 }
4821 _ACEOF
4822 if ac_fn_c_try_compile "$LINENO"; then :
4823   ac_cv_header_time=yes
4824 else
4825   ac_cv_header_time=no
4826 fi
4827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4828 fi
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4830 $as_echo "$ac_cv_header_time" >&6; }
4831 if test $ac_cv_header_time = yes; then
4832
4833 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4834
4835 fi
4836
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
4838 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
4839 if test "${ac_cv_struct_tm+set}" = set; then :
4840   $as_echo_n "(cached) " >&6
4841 else
4842   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843 /* end confdefs.h.  */
4844 #include <sys/types.h>
4845 #include <time.h>
4846
4847 int
4848 main ()
4849 {
4850 struct tm tm;
4851                                      int *p = &tm.tm_sec;
4852                                      return !p;
4853   ;
4854   return 0;
4855 }
4856 _ACEOF
4857 if ac_fn_c_try_compile "$LINENO"; then :
4858   ac_cv_struct_tm=time.h
4859 else
4860   ac_cv_struct_tm=sys/time.h
4861 fi
4862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4863 fi
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
4865 $as_echo "$ac_cv_struct_tm" >&6; }
4866 if test $ac_cv_struct_tm = sys/time.h; then
4867
4868 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
4869
4870 fi
4871
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
4873 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
4874 if test "${ac_cv_type_uid_t+set}" = set; then :
4875   $as_echo_n "(cached) " >&6
4876 else
4877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4878 /* end confdefs.h.  */
4879 #include <sys/types.h>
4880
4881 _ACEOF
4882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4883   $EGREP "uid_t" >/dev/null 2>&1; then :
4884   ac_cv_type_uid_t=yes
4885 else
4886   ac_cv_type_uid_t=no
4887 fi
4888 rm -f conftest*
4889
4890 fi
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
4892 $as_echo "$ac_cv_type_uid_t" >&6; }
4893 if test $ac_cv_type_uid_t = no; then
4894
4895 $as_echo "#define uid_t int" >>confdefs.h
4896
4897
4898 $as_echo "#define gid_t int" >>confdefs.h
4899
4900 fi
4901
4902 # The cast to long int works around a bug in the HP C Compiler
4903 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4904 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4905 # This bug is HP SR number 8606223364.
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
4907 $as_echo_n "checking size of short... " >&6; }
4908 if test "${ac_cv_sizeof_short+set}" = set; then :
4909   $as_echo_n "(cached) " >&6
4910 else
4911   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
4912
4913 else
4914   if test "$ac_cv_type_short" = yes; then
4915      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4917 { as_fn_set_status 77
4918 as_fn_error "cannot compute sizeof (short)
4919 See \`config.log' for more details." "$LINENO" 5; }; }
4920    else
4921      ac_cv_sizeof_short=0
4922    fi
4923 fi
4924
4925 fi
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
4927 $as_echo "$ac_cv_sizeof_short" >&6; }
4928
4929
4930
4931 cat >>confdefs.h <<_ACEOF
4932 #define SIZEOF_SHORT $ac_cv_sizeof_short
4933 _ACEOF
4934
4935
4936 # The cast to long int works around a bug in the HP C Compiler
4937 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4938 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4939 # This bug is HP SR number 8606223364.
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
4941 $as_echo_n "checking size of int... " >&6; }
4942 if test "${ac_cv_sizeof_int+set}" = set; then :
4943   $as_echo_n "(cached) " >&6
4944 else
4945   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
4946
4947 else
4948   if test "$ac_cv_type_int" = yes; then
4949      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4951 { as_fn_set_status 77
4952 as_fn_error "cannot compute sizeof (int)
4953 See \`config.log' for more details." "$LINENO" 5; }; }
4954    else
4955      ac_cv_sizeof_int=0
4956    fi
4957 fi
4958
4959 fi
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
4961 $as_echo "$ac_cv_sizeof_int" >&6; }
4962
4963
4964
4965 cat >>confdefs.h <<_ACEOF
4966 #define SIZEOF_INT $ac_cv_sizeof_int
4967 _ACEOF
4968
4969
4970 # The cast to long int works around a bug in the HP C Compiler
4971 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4972 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4973 # This bug is HP SR number 8606223364.
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
4975 $as_echo_n "checking size of long... " >&6; }
4976 if test "${ac_cv_sizeof_long+set}" = set; then :
4977   $as_echo_n "(cached) " >&6
4978 else
4979   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
4980
4981 else
4982   if test "$ac_cv_type_long" = yes; then
4983      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4985 { as_fn_set_status 77
4986 as_fn_error "cannot compute sizeof (long)
4987 See \`config.log' for more details." "$LINENO" 5; }; }
4988    else
4989      ac_cv_sizeof_long=0
4990    fi
4991 fi
4992
4993 fi
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
4995 $as_echo "$ac_cv_sizeof_long" >&6; }
4996
4997
4998
4999 cat >>confdefs.h <<_ACEOF
5000 #define SIZEOF_LONG $ac_cv_sizeof_long
5001 _ACEOF
5002
5003
5004 # The cast to long int works around a bug in the HP C Compiler
5005 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5006 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5007 # This bug is HP SR number 8606223364.
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5009 $as_echo_n "checking size of void *... " >&6; }
5010 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5011   $as_echo_n "(cached) " >&6
5012 else
5013   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5014
5015 else
5016   if test "$ac_cv_type_void_p" = yes; then
5017      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5019 { as_fn_set_status 77
5020 as_fn_error "cannot compute sizeof (void *)
5021 See \`config.log' for more details." "$LINENO" 5; }; }
5022    else
5023      ac_cv_sizeof_void_p=0
5024    fi
5025 fi
5026
5027 fi
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5029 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5030
5031
5032
5033 cat >>confdefs.h <<_ACEOF
5034 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5035 _ACEOF
5036
5037
5038 # The cast to long int works around a bug in the HP C Compiler
5039 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5040 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5041 # This bug is HP SR number 8606223364.
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
5043 $as_echo_n "checking size of int64_t... " >&6; }
5044 if test "${ac_cv_sizeof_int64_t+set}" = set; then :
5045   $as_echo_n "(cached) " >&6
5046 else
5047   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t"        "$ac_includes_default"; then :
5048
5049 else
5050   if test "$ac_cv_type_int64_t" = yes; then
5051      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5053 { as_fn_set_status 77
5054 as_fn_error "cannot compute sizeof (int64_t)
5055 See \`config.log' for more details." "$LINENO" 5; }; }
5056    else
5057      ac_cv_sizeof_int64_t=0
5058    fi
5059 fi
5060
5061 fi
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
5063 $as_echo "$ac_cv_sizeof_int64_t" >&6; }
5064
5065
5066
5067 cat >>confdefs.h <<_ACEOF
5068 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
5069 _ACEOF
5070
5071
5072 # The cast to long int works around a bug in the HP C Compiler
5073 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5074 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5075 # This bug is HP SR number 8606223364.
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5077 $as_echo_n "checking size of long long... " >&6; }
5078 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5079   $as_echo_n "(cached) " >&6
5080 else
5081   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
5082
5083 else
5084   if test "$ac_cv_type_long_long" = yes; then
5085      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5087 { as_fn_set_status 77
5088 as_fn_error "cannot compute sizeof (long long)
5089 See \`config.log' for more details." "$LINENO" 5; }; }
5090    else
5091      ac_cv_sizeof_long_long=0
5092    fi
5093 fi
5094
5095 fi
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5097 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5098
5099
5100
5101 cat >>confdefs.h <<_ACEOF
5102 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5103 _ACEOF
5104
5105
5106 if test "$ac_cv_sizeof_int" = 2 ; then
5107   ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
5108 if test "x$ac_cv_type_int16_t" = x""yes; then :
5109
5110 else
5111
5112 cat >>confdefs.h <<_ACEOF
5113 #define int16_t int
5114 _ACEOF
5115
5116 fi
5117
5118   ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
5119 if test "x$ac_cv_type_uint16_t" = x""yes; then :
5120
5121 else
5122
5123 cat >>confdefs.h <<_ACEOF
5124 #define uint16_t unsigned int
5125 _ACEOF
5126
5127 fi
5128
5129 elif test "$ac_cv_sizeof_short" = 2 ; then
5130   ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
5131 if test "x$ac_cv_type_int16_t" = x""yes; then :
5132
5133 else
5134
5135 cat >>confdefs.h <<_ACEOF
5136 #define int16_t short
5137 _ACEOF
5138
5139 fi
5140
5141   ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
5142 if test "x$ac_cv_type_uint16_t" = x""yes; then :
5143
5144 else
5145
5146 cat >>confdefs.h <<_ACEOF
5147 #define uint16_t unsigned short
5148 _ACEOF
5149
5150 fi
5151
5152 else
5153   as_fn_error "Cannot find a type with size of 16 bits" "$LINENO" 5
5154 fi
5155 if test "$ac_cv_sizeof_int" = 4 ; then
5156   ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
5157 if test "x$ac_cv_type_int32_t" = x""yes; then :
5158
5159 else
5160
5161 cat >>confdefs.h <<_ACEOF
5162 #define int32_t int
5163 _ACEOF
5164
5165 fi
5166
5167   ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
5168 if test "x$ac_cv_type_uint32_t" = x""yes; then :
5169
5170 else
5171
5172 cat >>confdefs.h <<_ACEOF
5173 #define uint32_t unsigned int
5174 _ACEOF
5175
5176 fi
5177
5178 elif test "$ac_cv_sizeof_short" = 4 ; then
5179   ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
5180 if test "x$ac_cv_type_int32_t" = x""yes; then :
5181
5182 else
5183
5184 cat >>confdefs.h <<_ACEOF
5185 #define int32_t short
5186 _ACEOF
5187
5188 fi
5189
5190   ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
5191 if test "x$ac_cv_type_uint32_t" = x""yes; then :
5192
5193 else
5194
5195 cat >>confdefs.h <<_ACEOF
5196 #define uint32_t unsigned short
5197 _ACEOF
5198
5199 fi
5200
5201 elif test "$ac_cv_sizeof_long" = 4 ; then
5202   ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
5203 if test "x$ac_cv_type_int32_t" = x""yes; then :
5204
5205 else
5206
5207 cat >>confdefs.h <<_ACEOF
5208 #define int32_t long
5209 _ACEOF
5210
5211 fi
5212
5213   ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
5214 if test "x$ac_cv_type_uint32_t" = x""yes; then :
5215
5216 else
5217
5218 cat >>confdefs.h <<_ACEOF
5219 #define uint32_t unsigned long
5220 _ACEOF
5221
5222 fi
5223
5224 else
5225   as_fn_error "Cannot find a type with size of 32 bits" "$LINENO" 5
5226 fi
5227 if test "$ac_cv_sizeof_int64_t" = 8 ; then
5228   ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
5229 if test "x$ac_cv_type_int64_t" = x""yes; then :
5230
5231 fi
5232
5233   ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
5234 if test "x$ac_cv_type_uint64_t" = x""yes; then :
5235
5236 fi
5237
5238 elif test "$ac_cv_sizeof_long_long" = 8 ; then
5239   ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
5240 if test "x$ac_cv_type_int64_t" = x""yes; then :
5241
5242 else
5243
5244 cat >>confdefs.h <<_ACEOF
5245 #define int64_t long long
5246 _ACEOF
5247
5248 fi
5249
5250   ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
5251 if test "x$ac_cv_type_uint64_t" = x""yes; then :
5252
5253 else
5254
5255 cat >>confdefs.h <<_ACEOF
5256 #define uint64_t unsigned long long
5257 _ACEOF
5258
5259 fi
5260
5261 else
5262   as_fn_error "Cannot find a type with size of 64 bits" "$LINENO" 5
5263 fi
5264 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <sys/types.h>
5265 #include <netinet/in.h>
5266 "
5267 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then :
5268   unet_have_sockaddr_in6="yes"
5269 else
5270   unet_have_sockaddr_in6="no"
5271 fi
5272
5273
5274 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
5275 #include<sys/socket.h>
5276 "
5277 if test "x$ac_cv_type_socklen_t" = x""yes; then :
5278
5279 else
5280
5281   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
5282 $as_echo_n "checking for socklen_t equivalent... " >&6; }
5283   if test "${curl_cv_socklen_t_equiv+set}" = set; then :
5284   $as_echo_n "(cached) " >&6
5285 else
5286
5287     curl_cv_socklen_t_equiv=
5288     for arg2 in "struct sockaddr" void ; do
5289       for t in int size_t unsigned long "unsigned long" ; do
5290         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h.  */
5292 #include <sys/types.h>
5293 #include <sys/socket.h>
5294 int getpeername (int $arg2 *, $t *);
5295 int
5296 main ()
5297 {
5298 $t len;
5299   getpeername(0, 0, &len);
5300   ;
5301   return 0;
5302 }
5303 _ACEOF
5304 if ac_fn_c_try_compile "$LINENO"; then :
5305   curl_cv_socklen_t_equiv="$t"
5306   break
5307 fi
5308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5309       done
5310     done
5311
5312 fi
5313
5314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
5315 $as_echo "$curl_cv_socklen_t_equiv" >&6; }
5316
5317 cat >>confdefs.h <<_ACEOF
5318 #define socklen_t $curl_cv_socklen_t_equiv
5319 _ACEOF
5320
5321 fi
5322
5323
5324 for ac_func in kqueue setrlimit getrusage times
5325 do :
5326   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5327 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5328 eval as_val=\$$as_ac_var
5329    if test "x$as_val" = x""yes; then :
5330   cat >>confdefs.h <<_ACEOF
5331 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5332 _ACEOF
5333
5334 fi
5335 done
5336
5337
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
5339 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5340 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
5341   $as_echo_n "(cached) " >&6
5342 else
5343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h.  */
5345 #include <sys/types.h>
5346 #include <sys/wait.h>
5347 #ifndef WEXITSTATUS
5348 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5349 #endif
5350 #ifndef WIFEXITED
5351 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5352 #endif
5353
5354 int
5355 main ()
5356 {
5357   int s;
5358   wait (&s);
5359   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5360   ;
5361   return 0;
5362 }
5363 _ACEOF
5364 if ac_fn_c_try_compile "$LINENO"; then :
5365   ac_cv_header_sys_wait_h=yes
5366 else
5367   ac_cv_header_sys_wait_h=no
5368 fi
5369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5370 fi
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
5372 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
5373 if test $ac_cv_header_sys_wait_h = yes; then
5374
5375 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
5376
5377 fi
5378
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for restartable system calls" >&5
5380 $as_echo_n "checking for restartable system calls... " >&6; }
5381 if test "${ac_cv_sys_restartable_syscalls+set}" = set; then :
5382   $as_echo_n "(cached) " >&6
5383 else
5384   if test "$cross_compiling" = yes; then :
5385   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5387 as_fn_error "cannot run test program while cross compiling
5388 See \`config.log' for more details." "$LINENO" 5; }
5389 else
5390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h.  */
5392 /* Exit 0 (true) if wait returns something other than -1,
5393    i.e. the pid of the child, which means that wait was restarted
5394    after getting the signal.  */
5395
5396 $ac_includes_default
5397 #include <signal.h>
5398 #ifdef HAVE_SYS_WAIT_H
5399 # include <sys/wait.h>
5400 #endif
5401
5402 /* Some platforms explicitly require an extern "C" signal handler
5403    when using C++. */
5404 #ifdef __cplusplus
5405 extern "C" void ucatch (int dummy) { }
5406 #else
5407 void ucatch (dummy) int dummy; { }
5408 #endif
5409
5410 int
5411 main ()
5412 {
5413   int i = fork (), status;
5414
5415   if (i == 0)
5416     {
5417       sleep (3);
5418       kill (getppid (), SIGINT);
5419       sleep (3);
5420       return 0;
5421     }
5422
5423   signal (SIGINT, ucatch);
5424
5425   status = wait (&i);
5426   if (status == -1)
5427     wait (&i);
5428
5429   return status == -1;
5430 }
5431 _ACEOF
5432 if ac_fn_c_try_run "$LINENO"; then :
5433   ac_cv_sys_restartable_syscalls=yes
5434 else
5435   ac_cv_sys_restartable_syscalls=no
5436 fi
5437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5438   conftest.$ac_objext conftest.beam conftest.$ac_ext
5439 fi
5440
5441 fi
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_restartable_syscalls" >&5
5443 $as_echo "$ac_cv_sys_restartable_syscalls" >&6; }
5444 if test $ac_cv_sys_restartable_syscalls = yes; then
5445
5446 $as_echo "#define HAVE_RESTARTABLE_SYSCALLS 1" >>confdefs.h
5447
5448 fi
5449
5450
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for donuts" >&5
5452 $as_echo_n "checking for donuts... " >&6; }
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5454 $as_echo "yes" >&6; }
5455
5456 for ac_prog in gawk mawk nawk awk
5457 do
5458   # Extract the first word of "$ac_prog", so it can be a program name with args.
5459 set dummy $ac_prog; ac_word=$2
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5461 $as_echo_n "checking for $ac_word... " >&6; }
5462 if test "${ac_cv_prog_AWK+set}" = set; then :
5463   $as_echo_n "(cached) " >&6
5464 else
5465   if test -n "$AWK"; then
5466   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5467 else
5468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5469 for as_dir in $PATH
5470 do
5471   IFS=$as_save_IFS
5472   test -z "$as_dir" && as_dir=.
5473     for ac_exec_ext in '' $ac_executable_extensions; do
5474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5475     ac_cv_prog_AWK="$ac_prog"
5476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5477     break 2
5478   fi
5479 done
5480   done
5481 IFS=$as_save_IFS
5482
5483 fi
5484 fi
5485 AWK=$ac_cv_prog_AWK
5486 if test -n "$AWK"; then
5487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5488 $as_echo "$AWK" >&6; }
5489 else
5490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5491 $as_echo "no" >&6; }
5492 fi
5493
5494
5495   test -n "$AWK" && break
5496 done
5497
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5499 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5500 set x ${MAKE-make}
5501 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5502 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5503   $as_echo_n "(cached) " >&6
5504 else
5505   cat >conftest.make <<\_ACEOF
5506 SHELL = /bin/sh
5507 all:
5508         @echo '@@@%%%=$(MAKE)=@@@%%%'
5509 _ACEOF
5510 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5511 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5512   *@@@%%%=?*=@@@%%%*)
5513     eval ac_cv_prog_make_${ac_make}_set=yes;;
5514   *)
5515     eval ac_cv_prog_make_${ac_make}_set=no;;
5516 esac
5517 rm -f conftest.make
5518 fi
5519 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5521 $as_echo "yes" >&6; }
5522   SET_MAKE=
5523 else
5524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525 $as_echo "no" >&6; }
5526   SET_MAKE="MAKE=${MAKE-make}"
5527 fi
5528
5529 # Find a good install program.  We prefer a C program (faster),
5530 # so one script is as good as another.  But avoid the broken or
5531 # incompatible versions:
5532 # SysV /etc/install, /usr/sbin/install
5533 # SunOS /usr/etc/install
5534 # IRIX /sbin/install
5535 # AIX /bin/install
5536 # AmigaOS /C/install, which installs bootblocks on floppy discs
5537 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5538 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5539 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5540 # OS/2's system install, which has a completely different semantic
5541 # ./install, which can be erroneously created by make from ./install.sh.
5542 # Reject install programs that cannot install multiple files.
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5544 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5545 if test -z "$INSTALL"; then
5546 if test "${ac_cv_path_install+set}" = set; then :
5547   $as_echo_n "(cached) " >&6
5548 else
5549   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in $PATH
5551 do
5552   IFS=$as_save_IFS
5553   test -z "$as_dir" && as_dir=.
5554     # Account for people who put trailing slashes in PATH elements.
5555 case $as_dir/ in #((
5556   ./ | .// | /[cC]/* | \
5557   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5558   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5559   /usr/ucb/* ) ;;
5560   *)
5561     # OSF1 and SCO ODT 3.0 have their own names for install.
5562     # Don't use installbsd from OSF since it installs stuff as root
5563     # by default.
5564     for ac_prog in ginstall scoinst install; do
5565       for ac_exec_ext in '' $ac_executable_extensions; do
5566         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5567           if test $ac_prog = install &&
5568             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5569             # AIX install.  It has an incompatible calling convention.
5570             :
5571           elif test $ac_prog = install &&
5572             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5573             # program-specific install script used by HP pwplus--don't use.
5574             :
5575           else
5576             rm -rf conftest.one conftest.two conftest.dir
5577             echo one > conftest.one
5578             echo two > conftest.two
5579             mkdir conftest.dir
5580             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5581               test -s conftest.one && test -s conftest.two &&
5582               test -s conftest.dir/conftest.one &&
5583               test -s conftest.dir/conftest.two
5584             then
5585               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5586               break 3
5587             fi
5588           fi
5589         fi
5590       done
5591     done
5592     ;;
5593 esac
5594
5595   done
5596 IFS=$as_save_IFS
5597
5598 rm -rf conftest.one conftest.two conftest.dir
5599
5600 fi
5601   if test "${ac_cv_path_install+set}" = set; then
5602     INSTALL=$ac_cv_path_install
5603   else
5604     # As a last resort, use the slow shell script.  Don't cache a
5605     # value for INSTALL within a source directory, because that will
5606     # break other packages using the cache if that directory is
5607     # removed, or if the value is a relative name.
5608     INSTALL=$ac_install_sh
5609   fi
5610 fi
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5612 $as_echo "$INSTALL" >&6; }
5613
5614 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5615 # It thinks the first close brace ends the variable substitution.
5616 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5617
5618 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5619
5620 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5621
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5623 $as_echo_n "checking whether ln -s works... " >&6; }
5624 LN_S=$as_ln_s
5625 if test "$LN_S" = "ln -s"; then
5626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5627 $as_echo "yes" >&6; }
5628 else
5629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5630 $as_echo "no, using $LN_S" >&6; }
5631 fi
5632
5633 for ac_prog in rm
5634 do
5635   # Extract the first word of "$ac_prog", so it can be a program name with args.
5636 set dummy $ac_prog; ac_word=$2
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5638 $as_echo_n "checking for $ac_word... " >&6; }
5639 if test "${ac_cv_path_RMPROG+set}" = set; then :
5640   $as_echo_n "(cached) " >&6
5641 else
5642   case $RMPROG in
5643   [\\/]* | ?:[\\/]*)
5644   ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
5645   ;;
5646   *)
5647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648 for as_dir in $PATH
5649 do
5650   IFS=$as_save_IFS
5651   test -z "$as_dir" && as_dir=.
5652     for ac_exec_ext in '' $ac_executable_extensions; do
5653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5654     ac_cv_path_RMPROG="$as_dir/$ac_word$ac_exec_ext"
5655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5656     break 2
5657   fi
5658 done
5659   done
5660 IFS=$as_save_IFS
5661
5662   ;;
5663 esac
5664 fi
5665 RMPROG=$ac_cv_path_RMPROG
5666 if test -n "$RMPROG"; then
5667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMPROG" >&5
5668 $as_echo "$RMPROG" >&6; }
5669 else
5670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671 $as_echo "no" >&6; }
5672 fi
5673
5674
5675   test -n "$RMPROG" && break
5676 done
5677 test -n "$RMPROG" || RMPROG="/bin/rm"
5678
5679 for ac_prog in sh
5680 do
5681   # Extract the first word of "$ac_prog", so it can be a program name with args.
5682 set dummy $ac_prog; ac_word=$2
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684 $as_echo_n "checking for $ac_word... " >&6; }
5685 if test "${ac_cv_path_SHPROG+set}" = set; then :
5686   $as_echo_n "(cached) " >&6
5687 else
5688   case $SHPROG in
5689   [\\/]* | ?:[\\/]*)
5690   ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
5691   ;;
5692   *)
5693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694 for as_dir in $PATH
5695 do
5696   IFS=$as_save_IFS
5697   test -z "$as_dir" && as_dir=.
5698     for ac_exec_ext in '' $ac_executable_extensions; do
5699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5700     ac_cv_path_SHPROG="$as_dir/$ac_word$ac_exec_ext"
5701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5702     break 2
5703   fi
5704 done
5705   done
5706 IFS=$as_save_IFS
5707
5708   ;;
5709 esac
5710 fi
5711 SHPROG=$ac_cv_path_SHPROG
5712 if test -n "$SHPROG"; then
5713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHPROG" >&5
5714 $as_echo "$SHPROG" >&6; }
5715 else
5716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717 $as_echo "no" >&6; }
5718 fi
5719
5720
5721   test -n "$SHPROG" && break
5722 done
5723 test -n "$SHPROG" || SHPROG="/bin/sh"
5724
5725
5726 for ac_prog in flex lex
5727 do
5728   # Extract the first word of "$ac_prog", so it can be a program name with args.
5729 set dummy $ac_prog; ac_word=$2
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5731 $as_echo_n "checking for $ac_word... " >&6; }
5732 if test "${ac_cv_prog_LEX+set}" = set; then :
5733   $as_echo_n "(cached) " >&6
5734 else
5735   if test -n "$LEX"; then
5736   ac_cv_prog_LEX="$LEX" # Let the user override the test.
5737 else
5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 for as_dir in $PATH
5740 do
5741   IFS=$as_save_IFS
5742   test -z "$as_dir" && as_dir=.
5743     for ac_exec_ext in '' $ac_executable_extensions; do
5744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5745     ac_cv_prog_LEX="$ac_prog"
5746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5747     break 2
5748   fi
5749 done
5750   done
5751 IFS=$as_save_IFS
5752
5753 fi
5754 fi
5755 LEX=$ac_cv_prog_LEX
5756 if test -n "$LEX"; then
5757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5758 $as_echo "$LEX" >&6; }
5759 else
5760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761 $as_echo "no" >&6; }
5762 fi
5763
5764
5765   test -n "$LEX" && break
5766 done
5767 test -n "$LEX" || LEX=":"
5768
5769 if test "x$LEX" != "x:"; then
5770   cat >conftest.l <<_ACEOF
5771 %%
5772 a { ECHO; }
5773 b { REJECT; }
5774 c { yymore (); }
5775 d { yyless (1); }
5776 e { yyless (input () != 0); }
5777 f { unput (yytext[0]); }
5778 . { BEGIN INITIAL; }
5779 %%
5780 #ifdef YYTEXT_POINTER
5781 extern char *yytext;
5782 #endif
5783 int
5784 main (void)
5785 {
5786   return ! yylex () + ! yywrap ();
5787 }
5788 _ACEOF
5789 { { ac_try="$LEX conftest.l"
5790 case "(($ac_try" in
5791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792   *) ac_try_echo=$ac_try;;
5793 esac
5794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5795 $as_echo "$ac_try_echo"; } >&5
5796   (eval "$LEX conftest.l") 2>&5
5797   ac_status=$?
5798   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5799   test $ac_status = 0; }
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5801 $as_echo_n "checking lex output file root... " >&6; }
5802 if test "${ac_cv_prog_lex_root+set}" = set; then :
5803   $as_echo_n "(cached) " >&6
5804 else
5805
5806 if test -f lex.yy.c; then
5807   ac_cv_prog_lex_root=lex.yy
5808 elif test -f lexyy.c; then
5809   ac_cv_prog_lex_root=lexyy
5810 else
5811   as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
5812 fi
5813 fi
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5815 $as_echo "$ac_cv_prog_lex_root" >&6; }
5816 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5817
5818 if test -z "${LEXLIB+set}"; then
5819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5820 $as_echo_n "checking lex library... " >&6; }
5821 if test "${ac_cv_lib_lex+set}" = set; then :
5822   $as_echo_n "(cached) " >&6
5823 else
5824
5825     ac_save_LIBS=$LIBS
5826     ac_cv_lib_lex='none needed'
5827     for ac_lib in '' -lfl -ll; do
5828       LIBS="$ac_lib $ac_save_LIBS"
5829       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5830 /* end confdefs.h.  */
5831 `cat $LEX_OUTPUT_ROOT.c`
5832 _ACEOF
5833 if ac_fn_c_try_link "$LINENO"; then :
5834   ac_cv_lib_lex=$ac_lib
5835 fi
5836 rm -f core conftest.err conftest.$ac_objext \
5837     conftest$ac_exeext conftest.$ac_ext
5838       test "$ac_cv_lib_lex" != 'none needed' && break
5839     done
5840     LIBS=$ac_save_LIBS
5841
5842 fi
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5844 $as_echo "$ac_cv_lib_lex" >&6; }
5845   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5846 fi
5847
5848
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5850 $as_echo_n "checking whether yytext is a pointer... " >&6; }
5851 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
5852   $as_echo_n "(cached) " >&6
5853 else
5854   # POSIX says lex can declare yytext either as a pointer or an array; the
5855 # default is implementation-dependent.  Figure out which it is, since
5856 # not all implementations provide the %pointer and %array declarations.
5857 ac_cv_prog_lex_yytext_pointer=no
5858 ac_save_LIBS=$LIBS
5859 LIBS="$LEXLIB $ac_save_LIBS"
5860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5861 /* end confdefs.h.  */
5862 #define YYTEXT_POINTER 1
5863 `cat $LEX_OUTPUT_ROOT.c`
5864 _ACEOF
5865 if ac_fn_c_try_link "$LINENO"; then :
5866   ac_cv_prog_lex_yytext_pointer=yes
5867 fi
5868 rm -f core conftest.err conftest.$ac_objext \
5869     conftest$ac_exeext conftest.$ac_ext
5870 LIBS=$ac_save_LIBS
5871
5872 fi
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5874 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5875 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5876
5877 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5878
5879 fi
5880 rm -f conftest.l $LEX_OUTPUT_ROOT.c
5881
5882 fi
5883 if test "$LEX" = ":" ; then
5884   as_fn_error "Cannot find flex." "$LINENO" 5
5885 elif echo "" | $LEX -V -v --version > /dev/null 2>&1 ; then
5886   :
5887 else
5888   as_fn_error "Cannot use $LEX as flex." "$LINENO" 5
5889 fi
5890
5891 for ac_prog in 'bison -y' byacc
5892 do
5893   # Extract the first word of "$ac_prog", so it can be a program name with args.
5894 set dummy $ac_prog; ac_word=$2
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5896 $as_echo_n "checking for $ac_word... " >&6; }
5897 if test "${ac_cv_prog_YACC+set}" = set; then :
5898   $as_echo_n "(cached) " >&6
5899 else
5900   if test -n "$YACC"; then
5901   ac_cv_prog_YACC="$YACC" # Let the user override the test.
5902 else
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 for as_dir in $PATH
5905 do
5906   IFS=$as_save_IFS
5907   test -z "$as_dir" && as_dir=.
5908     for ac_exec_ext in '' $ac_executable_extensions; do
5909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5910     ac_cv_prog_YACC="$ac_prog"
5911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5912     break 2
5913   fi
5914 done
5915   done
5916 IFS=$as_save_IFS
5917
5918 fi
5919 fi
5920 YACC=$ac_cv_prog_YACC
5921 if test -n "$YACC"; then
5922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5923 $as_echo "$YACC" >&6; }
5924 else
5925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5926 $as_echo "no" >&6; }
5927 fi
5928
5929
5930   test -n "$YACC" && break
5931 done
5932 test -n "$YACC" || YACC="yacc"
5933
5934 if test "$YACC" = ":" ; then
5935   as_fn_error "Cannot find yacc." "$LINENO" 5
5936 elif echo "" | $YACC -V -v --version > /dev/null 2>&1 ; then
5937   :
5938 else
5939   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $YACC may not work as yacc." >&5
5940 $as_echo "$as_me: WARNING: $YACC may not work as yacc." >&2;}
5941 fi
5942
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix non-blocking" >&5
5944 $as_echo_n "checking for posix non-blocking... " >&6; }
5945 if test "${unet_cv_sys_nonblocking_posix+set}" = set; then :
5946   $as_echo_n "(cached) " >&6
5947 else
5948   if test "$cross_compiling" = yes; then :
5949   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5951 as_fn_error "cannot run test program while cross compiling
5952 See \`config.log' for more details." "$LINENO" 5; }
5953 else
5954   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955 /* end confdefs.h.  */
5956 #include <sys/types.h>
5957 #include <sys/socket.h>
5958 #include <fcntl.h>
5959 #include <sys/ioctl.h>
5960 #include <sys/file.h>
5961 #include <signal.h>
5962 $ac_cv_type_signal alarmed() { exit(1); }
5963 int main(void)
5964 {
5965   char b[12];
5966   struct sockaddr x;
5967   size_t l = sizeof(x);
5968   int f = socket(AF_INET, SOCK_DGRAM, 0);
5969   if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
5970   {
5971     signal(SIGALRM, alarmed);
5972     alarm(2);
5973     recvfrom(f, b, 12, 0, &x, &l);
5974     alarm(0);
5975     exit(0);
5976   }
5977   exit(1);
5978 }
5979 _ACEOF
5980 if ac_fn_c_try_run "$LINENO"; then :
5981   unet_cv_sys_nonblocking_posix=yes
5982 else
5983   unet_cv_sys_nonblocking_posix=no
5984 fi
5985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5986   conftest.$ac_objext conftest.beam conftest.$ac_ext
5987 fi
5988
5989 fi
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_sys_nonblocking_posix" >&5
5991 $as_echo "$unet_cv_sys_nonblocking_posix" >&6; }
5992 if test $unet_cv_sys_nonblocking_posix = yes; then
5993
5994 $as_echo "#define NBLOCK_POSIX /**/" >>confdefs.h
5995
5996 else
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bsd non-blocking" >&5
5998 $as_echo_n "checking for bsd non-blocking... " >&6; }
5999 if test "${unet_cv_sys_nonblocking_bsd+set}" = set; then :
6000   $as_echo_n "(cached) " >&6
6001 else
6002   if test "$cross_compiling" = yes; then :
6003   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6005 as_fn_error "cannot run test program while cross compiling
6006 See \`config.log' for more details." "$LINENO" 5; }
6007 else
6008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009 /* end confdefs.h.  */
6010 #include <sys/types.h>
6011 #include <sys/socket.h>
6012 #include <fcntl.h>
6013 #include <sys/ioctl.h>
6014 #include <sys/file.h>
6015 #include <signal.h>
6016 $ac_cv_type_signal alarmed() { exit(1); }
6017 int main(void)
6018 {
6019   char b[12];
6020   struct sockaddr x;
6021   size_t l = sizeof(x);
6022   int f = socket(AF_INET, SOCK_DGRAM, 0);
6023   if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
6024   {
6025     signal(SIGALRM, alarmed);
6026     alarm(2);
6027     recvfrom(f, b, 12, 0, &x, &l);
6028     alarm(0);
6029     exit(0);
6030   }
6031   exit(1);
6032 }
6033 _ACEOF
6034 if ac_fn_c_try_run "$LINENO"; then :
6035   unet_cv_sys_nonblocking_bsd=yes
6036 else
6037   unet_cv_sys_nonblocking_bsd=no
6038 fi
6039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6040   conftest.$ac_objext conftest.beam conftest.$ac_ext
6041 fi
6042
6043 fi
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_sys_nonblocking_bsd" >&5
6045 $as_echo "$unet_cv_sys_nonblocking_bsd" >&6; }
6046 if test $unet_cv_sys_nonblocking_bsd = yes; then
6047
6048 $as_echo "#define NBLOCK_BSD /**/" >>confdefs.h
6049
6050 else
6051
6052 $as_echo "#define NBLOCK_SYSV /**/" >>confdefs.h
6053
6054 fi
6055 fi
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix signals" >&5
6057 $as_echo_n "checking for posix signals... " >&6; }
6058 if test "${unet_cv_sys_signal_posix+set}" = set; then :
6059   $as_echo_n "(cached) " >&6
6060 else
6061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6062 /* end confdefs.h.  */
6063 #include <signal.h>
6064 int
6065 main ()
6066 {
6067 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
6068   ;
6069   return 0;
6070 }
6071 _ACEOF
6072 if ac_fn_c_try_compile "$LINENO"; then :
6073   unet_cv_sys_signal_posix=yes
6074 else
6075   unet_cv_sys_signal_posix=no
6076 fi
6077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6078 fi
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_sys_signal_posix" >&5
6080 $as_echo "$unet_cv_sys_signal_posix" >&6; }
6081 if test $unet_cv_sys_signal_posix = yes; then
6082
6083 $as_echo "#define POSIX_SIGNALS /**/" >>confdefs.h
6084
6085 else
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bsd reliable signals" >&5
6087 $as_echo_n "checking for bsd reliable signals... " >&6; }
6088 if test "${unet_cv_sys_signal_bsd+set}" = set; then :
6089   $as_echo_n "(cached) " >&6
6090 else
6091   if test "$cross_compiling" = yes; then :
6092   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6094 as_fn_error "cannot run test program while cross compiling
6095 See \`config.log' for more details." "$LINENO" 5; }
6096 else
6097   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6098 /* end confdefs.h.  */
6099 #include <signal.h>
6100 int calls = 0;
6101 $ac_cv_type_signal handler()
6102 {
6103   if (calls) return;
6104   calls++;
6105   kill(getpid(), SIGTERM);
6106   sleep(1);
6107 }
6108 int main(void)
6109 {
6110   signal(SIGTERM, handler);
6111   kill(getpid(), SIGTERM);
6112   exit (0);
6113 }
6114 _ACEOF
6115 if ac_fn_c_try_run "$LINENO"; then :
6116   unet_cv_sys_signal_bsd=yes
6117 else
6118   unet_cv_sys_signal_bsd=no
6119 fi
6120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6121   conftest.$ac_objext conftest.beam conftest.$ac_ext
6122 fi
6123
6124 fi
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_sys_signal_bsd" >&5
6126 $as_echo "$unet_cv_sys_signal_bsd" >&6; }
6127 if test $unet_cv_sys_signal_bsd = yes; then
6128
6129 $as_echo "#define BSD_RELIABLE_SIGNALS /**/" >>confdefs.h
6130
6131 else
6132
6133 $as_echo "#define SYSV_UNRELIABLE_SIGNALS /**/" >>confdefs.h
6134
6135 fi
6136 fi
6137
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OS-dependent information" >&5
6139 $as_echo_n "checking for OS-dependent information... " >&6; }
6140 case "$host" in
6141     *-linux*)
6142         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux ($host) found." >&5
6143 $as_echo "Linux ($host) found." >&6; }
6144         unet_poll_syscall=yes
6145         ;;
6146
6147     *-solaris*)
6148         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris ($host) found." >&5
6149 $as_echo "Solaris ($host) found." >&6; }
6150         if test x"$ac_cv_header_poll_h" = xyes; then
6151             unet_poll_syscall=yes
6152         else
6153             unet_poll_syscall=no
6154         fi
6155
6156 $as_echo "#define IRCU_SOLARIS 1" >>confdefs.h
6157
6158         ;;
6159
6160     *-sunos*)
6161         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris ($host) found." >&5
6162 $as_echo "Solaris ($host) found." >&6; }
6163         unet_poll_syscall=no
6164         ;;
6165
6166     *-openbsd*)
6167         { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenBSD ($host) found." >&5
6168 $as_echo "OpenBSD ($host) found." >&6; }
6169         if test x"$ac_cv_header_poll_h" = xyes; then
6170             unet_poll_syscall=yes
6171         else
6172             unet_poll_syscall=no
6173         fi
6174         ;;
6175
6176     *-*bsd*)
6177         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generic BSD ($host) found." >&5
6178 $as_echo "Generic BSD ($host) found." >&6; }
6179         if test x"$ac_cv_header_poll_h" = xyes; then
6180             unet_poll_syscall=yes
6181         else
6182             unet_poll_syscall=no
6183         fi
6184         ;;
6185
6186     *-darwin*)
6187         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin (Mac OS X) ($host) found." >&5
6188 $as_echo "Darwin (Mac OS X) ($host) found." >&6; }
6189         unet_poll_syscall=no
6190         ;;
6191
6192     *)
6193         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unknown system type $host found." >&5
6194 $as_echo "Unknown system type $host found." >&6; }
6195         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown OS type; using generic routines." >&5
6196 $as_echo "$as_me: WARNING: Unknown OS type; using generic routines." >&2;}
6197         unet_poll_syscall=no
6198         ;;
6199 esac
6200
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable use of poll()" >&5
6202 $as_echo_n "checking whether to enable use of poll()... " >&6; }
6203 # Check whether --enable-poll was given.
6204 if test "${enable_poll+set}" = set; then :
6205   enableval=$enable_poll; unet_cv_enable_poll=$enable_poll
6206 else
6207   if test "${unet_cv_enable_poll+set}" = set; then :
6208   $as_echo_n "(cached) " >&6
6209 else
6210   unet_cv_enable_poll=$unet_poll_syscall
6211 fi
6212
6213 fi
6214
6215
6216 # Force poll to be disabled if there is no poll.h
6217 if test x"$ac_cv_header_poll_h" != xyes; then
6218     unet_cv_enable_poll=no
6219 fi
6220
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_enable_poll" >&5
6222 $as_echo "$unet_cv_enable_poll" >&6; }
6223
6224 if test x"$unet_cv_enable_poll" = xyes; then
6225
6226 $as_echo "#define USE_POLL 1" >>confdefs.h
6227
6228     ENGINE_C=engine_poll.c
6229 else
6230     ENGINE_C=engine_select.c
6231 fi
6232
6233
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug mode" >&5
6235 $as_echo_n "checking whether to enable debug mode... " >&6; }
6236 # Check whether --enable-debug was given.
6237 if test "${enable_debug+set}" = set; then :
6238   enableval=$enable_debug; unet_cv_enable_debug=$enable_debug
6239 else
6240   if test "${unet_cv_enable_debug+set}" = set; then :
6241   $as_echo_n "(cached) " >&6
6242 else
6243   unet_cv_enable_debug=no
6244 fi
6245
6246 fi
6247
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_enable_debug" >&5
6249 $as_echo "$unet_cv_enable_debug" >&6; }
6250
6251 if test x"$unet_cv_enable_debug" = xyes; then
6252
6253 $as_echo "#define DEBUGMODE 1" >>confdefs.h
6254
6255 fi
6256
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable leak detection" >&5
6258 $as_echo_n "checking whether to enable leak detection... " >&6; }
6259
6260 # Check whether --with-leak-detect was given.
6261 if test "${with_leak_detect+set}" = set; then :
6262   withval=$with_leak_detect; unet_cv_with_leak_detect=$with_leak_detect
6263 else
6264   if test "${unet_cv_with_leak_detect+set}" = set; then :
6265   $as_echo_n "(cached) " >&6
6266 else
6267   unet_cv_with_leak_detect=no
6268 fi
6269
6270 fi
6271
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_enable_leak_detect" >&5
6273 $as_echo "$unet_cv_enable_leak_detect" >&6; }
6274
6275 if test x"$unet_cv_with_leak_detect" != xno; then
6276     LIBS="-lgc $LIBS"
6277     CFLAGS="-DMDEBUG $CFLAGS"
6278     if test x"$unet_cv_with_leak_detect" != xyes; then
6279        LIBS="-L$unet_cv_with_leak_detect $LIBS"
6280     fi
6281 fi
6282
6283
6284 # Check whether --with-ipv6 was given.
6285 if test "${with_ipv6+set}" = set; then :
6286   withval=$with_ipv6; ac_cv_use_ipv6=$withval
6287 else
6288   ac_cv_use_ipv6=$unet_have_sockaddr_in6
6289 fi
6290
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use IPv6" >&5
6292 $as_echo_n "checking whether to use IPv6... " >&6; }
6293 if test "${ac_cv_use_ipv6+set}" = set; then :
6294   $as_echo_n "(cached) " >&6
6295 else
6296   ac_cv_use_ipv6=no
6297 fi
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_use_ipv6" >&5
6299 $as_echo "$ac_cv_use_ipv6" >&6; }
6300 if test x"$ac_cv_use_ipv6" != "xno" ; then
6301
6302 $as_echo "#define IPV6 1" >>confdefs.h
6303
6304 fi
6305
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable asserts" >&5
6307 $as_echo_n "checking whether to enable asserts... " >&6; }
6308 # Check whether --enable-asserts was given.
6309 if test "${enable_asserts+set}" = set; then :
6310   enableval=$enable_asserts; unet_cv_enable_asserts=$enable_asserts
6311 else
6312   if test "${unet_cv_enable_asserts+set}" = set; then :
6313   $as_echo_n "(cached) " >&6
6314 else
6315   unet_cv_enable_asserts=yes
6316 fi
6317
6318 fi
6319
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_enable_asserts" >&5
6321 $as_echo "$unet_cv_enable_asserts" >&6; }
6322
6323 if test x"$unet_cv_enable_asserts" = xno; then
6324
6325 $as_echo "#define NDEBUG 1" >>confdefs.h
6326
6327 fi
6328
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable profiling support (gprof)" >&5
6330 $as_echo_n "checking whether to enable profiling support (gprof)... " >&6; }
6331 # Check whether --enable-profile was given.
6332 if test "${enable_profile+set}" = set; then :
6333   enableval=$enable_profile; unet_cv_enable_profile=$enable_profile
6334 else
6335   if test "${unet_cv_enable_profile+set}" = set; then :
6336   $as_echo_n "(cached) " >&6
6337 else
6338   unet_cv_enable_profile=no
6339 fi
6340
6341 fi
6342
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_enable_profile" >&5
6344 $as_echo "$unet_cv_enable_profile" >&6; }
6345
6346 if test x"$unet_cv_enable_profile" = xyes; then
6347     CFLAGS="-pg $CFLAGS"
6348     LDFLAGS="-pg $LDFLAGS"
6349 fi
6350
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable pedantic compiler warnings" >&5
6352 $as_echo_n "checking whether to enable pedantic compiler warnings... " >&6; }
6353 # Check whether --enable-pedantic was given.
6354 if test "${enable_pedantic+set}" = set; then :
6355   enableval=$enable_pedantic; unet_cv_enable_pedantic=$enable_pedantic
6356 else
6357   if test "${unet_cv_enable_pedantic+set}" = set; then :
6358   $as_echo_n "(cached) " >&6
6359 else
6360   unet_cv_enable_pedantic=no
6361 fi
6362
6363 fi
6364
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_enable_pedantic" >&5
6366 $as_echo "$unet_cv_enable_pedantic" >&6; }
6367
6368 if test x"$unet_cv_enable_pedantic" = xyes; then
6369     CFLAGS="-pedantic $CFLAGS"
6370 fi
6371
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings" >&5
6373 $as_echo_n "checking whether to enable compiler warnings... " >&6; }
6374 # Check whether --enable-warnings was given.
6375 if test "${enable_warnings+set}" = set; then :
6376   enableval=$enable_warnings; unet_cv_enable_warnings=$enable_warnings
6377 else
6378   if test "${unet_cv_enable_warnings+set}" = set; then :
6379   $as_echo_n "(cached) " >&6
6380 else
6381   unet_cv_enable_warnings=no
6382 fi
6383
6384 fi
6385
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_enable_warnings" >&5
6387 $as_echo "$unet_cv_enable_warnings" >&6; }
6388
6389 if test x"$unet_cv_enable_warnings" = xyes; then
6390     CFLAGS="-Wall $CFLAGS"
6391 fi
6392
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable inlining for a few critical functions" >&5
6394 $as_echo_n "checking whether to enable inlining for a few critical functions... " >&6; }
6395 # Check whether --enable-inlines was given.
6396 if test "${enable_inlines+set}" = set; then :
6397   enableval=$enable_inlines; unet_cv_enable_inlines=$enable_inlines
6398 else
6399   if test "${unet_cv_enable_inlines+set}" = set; then :
6400   $as_echo_n "(cached) " >&6
6401 else
6402   unet_cv_enable_inlines=yes
6403 fi
6404
6405 fi
6406
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_enable_inlines" >&5
6408 $as_echo "$unet_cv_enable_inlines" >&6; }
6409
6410 if test x"$unet_cv_enable_inlines" = xyes; then
6411
6412 $as_echo "#define FORCEINLINE 1" >>confdefs.h
6413
6414 fi
6415
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the /dev/poll event engine" >&5
6417 $as_echo_n "checking whether to enable the /dev/poll event engine... " >&6; }
6418 # Check whether --enable-devpoll was given.
6419 if test "${enable_devpoll+set}" = set; then :
6420   enableval=$enable_devpoll; unet_cv_enable_devpoll=$enable_devpoll
6421 else
6422   if test "${unet_cv_enable_devpoll+set}" = set; then :
6423   $as_echo_n "(cached) " >&6
6424 else
6425   unet_cv_enable_devpoll=yes
6426 fi
6427
6428 fi
6429
6430
6431 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
6432     unet_cv_enable_devpoll=no
6433 fi
6434
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_enable_devpoll" >&5
6436 $as_echo "$unet_cv_enable_devpoll" >&6; }
6437
6438 if test x"$unet_cv_enable_devpoll" != xno; then
6439
6440 $as_echo "#define USE_DEVPOLL 1" >>confdefs.h
6441
6442     ENGINE_C="engine_devpoll.c $ENGINE_C"
6443 fi
6444
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the kqueue event engine" >&5
6446 $as_echo_n "checking whether to enable the kqueue event engine... " >&6; }
6447 # Check whether --enable-kqueue was given.
6448 if test "${enable_kqueue+set}" = set; then :
6449   enableval=$enable_kqueue; unet_cv_enable_kqueue=$enable_kqueue
6450 else
6451   if test "${unet_cv_enable_kqueue+set}" = set; then :
6452   $as_echo_n "(cached) " >&6
6453 else
6454   unet_cv_enable_kqueue=yes
6455 fi
6456
6457 fi
6458
6459
6460 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
6461     unet_cv_enable_kqueue=no
6462 fi
6463
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_enable_kqueue" >&5
6465 $as_echo "$unet_cv_enable_kqueue" >&6; }
6466
6467 if test x"$unet_cv_enable_kqueue" != xno; then
6468
6469 $as_echo "#define USE_KQUEUE 1" >>confdefs.h
6470
6471     ENGINE_C="engine_kqueue.c $ENGINE_C"
6472 fi
6473
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the epoll event engine" >&5
6475 $as_echo_n "checking whether to enable the epoll event engine... " >&6; }
6476 # Check whether --enable-epoll was given.
6477 if test "${enable_epoll+set}" = set; then :
6478   enableval=$enable_epoll; unet_cv_enable_epoll=$enable_epoll
6479 else
6480   if test "${unet_cv_enable_epoll+set}" = set; then :
6481   $as_echo_n "(cached) " >&6
6482 else
6483   unet_cv_enable_epoll=yes
6484 fi
6485
6486 fi
6487
6488
6489 if test x"$ac_cv_header_sys_epoll_h" = xno -o x"$ac_cv_func_epoll" = xno; then
6490     unet_cv_enable_epoll=no
6491 fi
6492
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_enable_epoll" >&5
6494 $as_echo "$unet_cv_enable_epoll" >&6; }
6495
6496 if test x"$unet_cv_enable_epoll" != xno; then
6497     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether epoll functions are properly defined" >&5
6498 $as_echo_n "checking whether epoll functions are properly defined... " >&6; }
6499     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6500 /* end confdefs.h.  */
6501 #include <sys/epoll.h>
6502 int
6503 main ()
6504 {
6505 epoll_create(10);
6506   ;
6507   return 0;
6508 }
6509 _ACEOF
6510 if ac_fn_c_try_link "$LINENO"; then :
6511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6512 $as_echo "yes" >&6; }
6513 else
6514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515 $as_echo "no" >&6; }
6516
6517 $as_echo "#define EPOLL_NEED_BODY 1" >>confdefs.h
6518
6519 fi
6520 rm -f core conftest.err conftest.$ac_objext \
6521     conftest$ac_exeext conftest.$ac_ext
6522
6523 $as_echo "#define USE_EPOLL 1" >>confdefs.h
6524
6525     ENGINE_C="engine_epoll.c $ENGINE_C"
6526 fi
6527
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
6529 $as_echo_n "checking for va_copy... " >&6; }
6530 if test "${unet_cv_c_va_copy+set}" = set; then :
6531   $as_echo_n "(cached) " >&6
6532 else
6533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534 /* end confdefs.h.  */
6535 #include <stdarg.h>
6536 int
6537 main ()
6538 {
6539 va_list ap1, ap2; va_copy(ap1, ap2);
6540   ;
6541   return 0;
6542 }
6543 _ACEOF
6544 if ac_fn_c_try_link "$LINENO"; then :
6545   unet_cv_c_va_copy="yes"
6546 else
6547   unet_cv_c_va_copy="no"
6548
6549 fi
6550 rm -f core conftest.err conftest.$ac_objext \
6551     conftest$ac_exeext conftest.$ac_ext
6552 fi
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_c_va_copy" >&5
6554 $as_echo "$unet_cv_c_va_copy" >&6; }
6555 if test "$unet_cv_c_va_copy" = "yes" ; then
6556
6557 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
6558
6559 fi
6560
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5
6562 $as_echo_n "checking for __va_copy... " >&6; }
6563 if test "${unet_cv_c___va_copy+set}" = set; then :
6564   $as_echo_n "(cached) " >&6
6565 else
6566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h.  */
6568 #include <stdarg.h>
6569 int
6570 main ()
6571 {
6572 va_list ap1, ap2; __va_copy(ap1, ap2);
6573   ;
6574   return 0;
6575 }
6576 _ACEOF
6577 if ac_fn_c_try_link "$LINENO"; then :
6578   unet_cv_c___va_copy="yes"
6579 else
6580   unet_cv_c___va_copy="no"
6581
6582 fi
6583 rm -f core conftest.err conftest.$ac_objext \
6584     conftest$ac_exeext conftest.$ac_ext
6585 fi
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_c___va_copy" >&5
6587 $as_echo "$unet_cv_c___va_copy" >&6; }
6588 if test "$unet_cv_c___va_copy" = "yes" ; then
6589
6590 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
6591
6592 fi
6593
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what name to give the symlink" >&5
6595 $as_echo_n "checking what name to give the symlink... " >&6; }
6596
6597 # Check whether --with-symlink was given.
6598 if test "${with_symlink+set}" = set; then :
6599   withval=$with_symlink; unet_cv_with_symlink=$with_symlink
6600 else
6601   if test "${unet_cv_with_symlink+set}" = set; then :
6602   $as_echo_n "(cached) " >&6
6603 else
6604   unet_cv_with_symlink="ircd"
6605 fi
6606
6607 fi
6608
6609
6610 if test x"$unet_cv_with_symlink" = xyes; then
6611     unet_cv_with_symlink="ircd"
6612 fi
6613
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_with_symlink" >&5
6615 $as_echo "$unet_cv_with_symlink" >&6; }
6616
6617 if test x"$unet_cv_with_symlink" = xno; then
6618     INSTALL_RULE=install-no-symlink
6619     SYMLINK=
6620 else
6621     INSTALL_RULE=install-with-symlink
6622     SYMLINK=$unet_cv_with_symlink
6623 fi
6624
6625
6626
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what permissions to set on the installed binary" >&5
6628 $as_echo_n "checking what permissions to set on the installed binary... " >&6; }
6629
6630 # Check whether --with-mode was given.
6631 if test "${with_mode+set}" = set; then :
6632   withval=$with_mode; unet_cv_with_mode=$with_mode
6633 else
6634   if test "${unet_cv_with_mode+set}" = set; then :
6635   $as_echo_n "(cached) " >&6
6636 else
6637   unet_cv_with_mode=711
6638 fi
6639
6640 fi
6641
6642
6643 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
6644     unet_cv_with_mode=711
6645 fi
6646
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_with_mode" >&5
6648 $as_echo "$unet_cv_with_mode" >&6; }
6649
6650 IRCDMODE=$unet_cv_with_mode
6651
6652
6653 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which user should own the installed binary" >&5
6655 $as_echo_n "checking which user should own the installed binary... " >&6; }
6656
6657 # Check whether --with-owner was given.
6658 if test "${with_owner+set}" = set; then :
6659   withval=$with_owner; unet_cv_with_owner=$with_owner
6660 else
6661   if test "${unet_cv_with_owner+set}" = set; then :
6662   $as_echo_n "(cached) " >&6
6663 else
6664   unet_cv_with_owner=$unet_uid
6665 fi
6666
6667 fi
6668
6669
6670 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
6671     unet_cv_with_owner=$unet_uid
6672 fi
6673
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_with_owner" >&5
6675 $as_echo "$unet_cv_with_owner" >&6; }
6676
6677 IRCDOWN=$unet_cv_with_owner
6678
6679
6680 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which group should own the installed binary" >&5
6682 $as_echo_n "checking which group should own the installed binary... " >&6; }
6683
6684 # Check whether --with-group was given.
6685 if test "${with_group+set}" = set; then :
6686   withval=$with_group; unet_cv_with_group=$with_group
6687 else
6688   if test "${unet_cv_with_group+set}" = set; then :
6689   $as_echo_n "(cached) " >&6
6690 else
6691   unet_cv_with_group=$unet_gid
6692 fi
6693
6694 fi
6695
6696
6697 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
6698     unet_cv_with_group=$unet_gid
6699 fi
6700
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_with_group" >&5
6702 $as_echo "$unet_cv_with_group" >&6; }
6703
6704 IRCDGRP=$unet_cv_with_group
6705
6706
6707 unet_domain=
6708 if test -f /etc/resolv.conf; then
6709     unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
6710     if test x"$unet_domain" = x; then
6711         unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
6712     fi
6713 fi
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for site domain name" >&5
6715 $as_echo_n "checking for site domain name... " >&6; }
6716
6717 # Check whether --with-domain was given.
6718 if test "${with_domain+set}" = set; then :
6719   withval=$with_domain; unet_cv_with_domain=$with_domain
6720 else
6721   if test "${unet_cv_with_domain+set}" = set; then :
6722   $as_echo_n "(cached) " >&6
6723 else
6724   unet_cv_with_domain=$unet_domain
6725 fi
6726
6727 fi
6728
6729
6730 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
6731     unet_cv_with_domain=$unet_domain
6732 fi
6733 if test x"$unet_cv_with_domain" = xno; then
6734     as_fn_error "Unable to determine server DNS domain; use --with-domain to set it" "$LINENO" 5
6735 fi
6736
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_with_domain" >&5
6738 $as_echo "$unet_cv_with_domain" >&6; }
6739
6740
6741 cat >>confdefs.h <<_ACEOF
6742 #define DOMAINNAME "*$unet_cv_with_domain"
6743 _ACEOF
6744
6745
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if chroot operation is desired" >&5
6747 $as_echo_n "checking if chroot operation is desired... " >&6; }
6748
6749 # Check whether --with-chroot was given.
6750 if test "${with_chroot+set}" = set; then :
6751   withval=$with_chroot; unet_cv_with_chroot=$with_chroot
6752 else
6753   if test "${unet_cv_with_chroot+set}" = set; then :
6754   $as_echo_n "(cached) " >&6
6755 else
6756   unet_cv_with_chroot=no
6757 fi
6758
6759 fi
6760
6761
6762 if test x"$unet_cv_with_chroot" = xyes; then
6763     as_fn_error "--with-chroot given with no directory.  See doc/readme.chroot." "$LINENO" 5
6764 fi
6765
6766 # Ensure there are no trailing /'s to mess us up
6767 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
6768
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_with_chroot" >&5
6770 $as_echo "$unet_cv_with_chroot" >&6; }
6771
6772 # Deal with the annoying value "NONE" here
6773 unet_save_prefix=$prefix
6774 if test x"$prefix" = xNONE; then
6775     prefix=$ac_default_prefix
6776 else
6777     prefix=$prefix
6778 fi
6779
6780 unet_save_exec_prefix=$exec_prefix
6781 if test x"$exec_prefix" = xNONE; then
6782     exec_prefix=$prefix
6783 else
6784     exec_prefix=$exec_prefix
6785 fi
6786
6787 # Obtain the actual interesting directories
6788 unet_bindir=`eval echo "$bindir"`
6789 unet_libdir=`eval echo "$libdir"`
6790
6791 # Restore the original settings of $prefix and $exec_prefix
6792 prefix=$unet_save_prefix
6793 exec_prefix=$unet_save_exec_prefix
6794
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the binary will be for /restart" >&5
6796 $as_echo_n "checking where the binary will be for /restart... " >&6; }
6797 if test x"$unet_cv_with_symlink" = xno; then
6798     unet_spath="$unet_bindir/ircd"
6799 else
6800     unet_spath="$unet_bindir/$unet_cv_with_symlink"
6801 fi
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_spath" >&5
6803 $as_echo "$unet_spath" >&6; }
6804
6805 if test x"$unet_cv_with_chroot" != xno; then
6806     if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
6807         unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
6808     else
6809         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&5
6810 $as_echo "$as_me: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&2;}
6811     fi
6812 fi
6813
6814
6815 cat >>confdefs.h <<_ACEOF
6816 #define SPATH "$unet_spath"
6817 _ACEOF
6818
6819
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what the data directory should be" >&5
6821 $as_echo_n "checking what the data directory should be... " >&6; }
6822
6823 # Check whether --with-dpath was given.
6824 if test "${with_dpath+set}" = set; then :
6825   withval=$with_dpath; unet_cv_with_dpath=$with_dpath
6826 else
6827   if test "${unet_cv_with_dpath+set}" = set; then :
6828   $as_echo_n "(cached) " >&6
6829 else
6830   unet_cv_with_dpath=$unet_libdir
6831 fi
6832
6833 fi
6834
6835
6836 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
6837     unet_cv_with_dpath=$unet_libdir
6838 fi
6839
6840 # Ensure there are no trailing /'s to mess us up
6841 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
6842
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_with_dpath" >&5
6844 $as_echo "$unet_cv_with_dpath" >&6; }
6845
6846 if test x"$unet_cv_with_chroot" != xno; then
6847     if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
6848         unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
6849     else
6850         as_fn_error "Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" "$LINENO" 5
6851     fi
6852 else
6853     unet_dpath=$unet_cv_with_dpath
6854 fi
6855
6856
6857 cat >>confdefs.h <<_ACEOF
6858 #define DPATH "$unet_dpath"
6859 _ACEOF
6860
6861
6862 DPATH=$unet_cv_with_dpath
6863
6864
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the default configuration file resides" >&5
6866 $as_echo_n "checking where the default configuration file resides... " >&6; }
6867
6868 # Check whether --with-cpath was given.
6869 if test "${with_cpath+set}" = set; then :
6870   withval=$with_cpath; unet_cv_with_cpath=$with_cpath
6871 else
6872   if test "${unet_cv_with_cpath+set}" = set; then :
6873   $as_echo_n "(cached) " >&6
6874 else
6875   unet_cv_with_cpath="ircd.conf"
6876 fi
6877
6878 fi
6879
6880
6881 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
6882     unet_cv_with_cpath="ircd.conf"
6883 fi
6884
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_with_cpath" >&5
6886 $as_echo "$unet_cv_with_cpath" >&6; }
6887
6888 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
6889     # Absolute path; check against chroot stuff
6890     if test x"$unet_cv_with_chroot" != xno; then
6891         if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
6892             unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
6893         else
6894             as_fn_error "Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" "$LINENO" 5
6895         fi
6896     else
6897         unet_cpath=$unet_cv_with_cpath
6898     fi
6899 else
6900     unet_cpath=$unet_cv_with_cpath
6901 fi
6902
6903
6904 cat >>confdefs.h <<_ACEOF
6905 #define CPATH "$unet_cpath"
6906 _ACEOF
6907
6908
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to put the debugging log if debugging enabled" >&5
6910 $as_echo_n "checking where to put the debugging log if debugging enabled... " >&6; }
6911
6912 # Check whether --with-lpath was given.
6913 if test "${with_lpath+set}" = set; then :
6914   withval=$with_lpath; unet_cv_with_lpath=$with_lpath
6915 else
6916   if test "${unet_cv_with_lpath+set}" = set; then :
6917   $as_echo_n "(cached) " >&6
6918 else
6919   unet_cv_with_lpath="ircd.log"
6920 fi
6921
6922 fi
6923
6924
6925 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
6926     unet_cv_with_lpath="ircd.log"
6927 fi
6928
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_with_lpath" >&5
6930 $as_echo "$unet_cv_with_lpath" >&6; }
6931
6932 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
6933     # Absolute path; check against chroot stuff
6934     if test x"$unet_cv_with_chroot" != xno; then
6935         if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
6936             unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
6937         else
6938             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Log file $unet_cv_with_lpath not relative to root directory $unet_cv_with_chroot; using default ircd.log instead" >&5
6939 $as_echo "$as_me: WARNING: Log file $unet_cv_with_lpath not relative to root directory $unet_cv_with_chroot; using default ircd.log instead" >&2;}
6940             unet_cv_with_lpath="ircd.log"
6941             unet_lpath="ircd.log"
6942         fi
6943     else
6944         unet_lpath=$unet_cv_with_lpath
6945     fi
6946 else
6947     unet_lpath=$unet_cv_with_lpath
6948 fi
6949
6950
6951 cat >>confdefs.h <<_ACEOF
6952 #define LPATH "$unet_lpath"
6953 _ACEOF
6954
6955
6956 unet_maxcon=`ulimit -Hn`
6957 if test x"$unet_maxcon" = xunlimited; then
6958     unet_maxcon=`ulimit -Sn`
6959 fi
6960 unet_maxcon=`expr $unet_maxcon - 4`
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking max connections" >&5
6962 $as_echo_n "checking max connections... " >&6; }
6963
6964 # Check whether --with-maxcon was given.
6965 if test "${with_maxcon+set}" = set; then :
6966   withval=$with_maxcon; unet_cv_with_maxcon=$with_maxcon
6967 else
6968   if test "${unet_cv_with_maxcon+set}" = set; then :
6969   $as_echo_n "(cached) " >&6
6970 else
6971   unet_cv_with_maxcon=$unet_maxcon
6972 fi
6973
6974 fi
6975
6976
6977 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
6978     if test "$unet_maxcon" -lt 32; then
6979       as_fn_error "Maximum connections (number of open files minus 4) must be at least 32." "$LINENO" 5
6980     fi
6981     unet_cv_with_maxcon=$unet_maxcon
6982 elif test "$unet_cv_with_maxcon" -lt 32; then
6983     as_fn_error "Maximum connections (--with-maxcon) must be at least 32." "$LINENO" 5
6984 fi
6985
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_with_maxcon" >&5
6987 $as_echo "$unet_cv_with_maxcon" >&6; }
6988
6989
6990 cat >>confdefs.h <<_ACEOF
6991 #define MAXCONNECTIONS $unet_cv_with_maxcon
6992 _ACEOF
6993
6994
6995 ac_config_files="$ac_config_files Makefile ircd/Makefile ircd/test/Makefile"
6996
6997 ac_config_commands="$ac_config_commands default"
6998
6999 cat >confcache <<\_ACEOF
7000 # This file is a shell script that caches the results of configure
7001 # tests run on this system so they can be shared between configure
7002 # scripts and configure runs, see configure's option --config-cache.
7003 # It is not useful on other systems.  If it contains results you don't
7004 # want to keep, you may remove or edit it.
7005 #
7006 # config.status only pays attention to the cache file if you give it
7007 # the --recheck option to rerun configure.
7008 #
7009 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7010 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7011 # following values.
7012
7013 _ACEOF
7014
7015 # The following way of writing the cache mishandles newlines in values,
7016 # but we know of no workaround that is simple, portable, and efficient.
7017 # So, we kill variables containing newlines.
7018 # Ultrix sh set writes to stderr and can't be redirected directly,
7019 # and sets the high bit in the cache file unless we assign to the vars.
7020 (
7021   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7022     eval ac_val=\$$ac_var
7023     case $ac_val in #(
7024     *${as_nl}*)
7025       case $ac_var in #(
7026       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7027 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7028       esac
7029       case $ac_var in #(
7030       _ | IFS | as_nl) ;; #(
7031       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7032       *) { eval $ac_var=; unset $ac_var;} ;;
7033       esac ;;
7034     esac
7035   done
7036
7037   (set) 2>&1 |
7038     case $as_nl`(ac_space=' '; set) 2>&1` in #(
7039     *${as_nl}ac_space=\ *)
7040       # `set' does not quote correctly, so add quotes: double-quote
7041       # substitution turns \\\\ into \\, and sed turns \\ into \.
7042       sed -n \
7043         "s/'/'\\\\''/g;
7044           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7045       ;; #(
7046     *)
7047       # `set' quotes correctly as required by POSIX, so do not add quotes.
7048       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7049       ;;
7050     esac |
7051     sort
7052 ) |
7053   sed '
7054      /^ac_cv_env_/b end
7055      t clear
7056      :clear
7057      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7058      t end
7059      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7060      :end' >>confcache
7061 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7062   if test -w "$cache_file"; then
7063     test "x$cache_file" != "x/dev/null" &&
7064       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7065 $as_echo "$as_me: updating cache $cache_file" >&6;}
7066     cat confcache >$cache_file
7067   else
7068     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7069 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7070   fi
7071 fi
7072 rm -f confcache
7073
7074 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7075 # Let make expand exec_prefix.
7076 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7077
7078 DEFS=-DHAVE_CONFIG_H
7079
7080 ac_libobjs=
7081 ac_ltlibobjs=
7082 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7083   # 1. Remove the extension, and $U if already installed.
7084   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7085   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7086   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
7087   #    will be set to the directory where LIBOBJS objects are built.
7088   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7089   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7090 done
7091 LIBOBJS=$ac_libobjs
7092
7093 LTLIBOBJS=$ac_ltlibobjs
7094
7095
7096
7097
7098 : ${CONFIG_STATUS=./config.status}
7099 ac_write_fail=0
7100 ac_clean_files_save=$ac_clean_files
7101 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7103 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7104 as_write_fail=0
7105 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7106 #! $SHELL
7107 # Generated by $as_me.
7108 # Run this file to recreate the current configuration.
7109 # Compiler output produced by configure, useful for debugging
7110 # configure, is in config.log if it exists.
7111
7112 debug=false
7113 ac_cs_recheck=false
7114 ac_cs_silent=false
7115
7116 SHELL=\${CONFIG_SHELL-$SHELL}
7117 export SHELL
7118 _ASEOF
7119 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7120 ## -------------------- ##
7121 ## M4sh Initialization. ##
7122 ## -------------------- ##
7123
7124 # Be more Bourne compatible
7125 DUALCASE=1; export DUALCASE # for MKS sh
7126 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7127   emulate sh
7128   NULLCMD=:
7129   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7130   # is contrary to our usage.  Disable this feature.
7131   alias -g '${1+"$@"}'='"$@"'
7132   setopt NO_GLOB_SUBST
7133 else
7134   case `(set -o) 2>/dev/null` in #(
7135   *posix*) :
7136     set -o posix ;; #(
7137   *) :
7138      ;;
7139 esac
7140 fi
7141
7142
7143 as_nl='
7144 '
7145 export as_nl
7146 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7147 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7148 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7149 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7150 # Prefer a ksh shell builtin over an external printf program on Solaris,
7151 # but without wasting forks for bash or zsh.
7152 if test -z "$BASH_VERSION$ZSH_VERSION" \
7153     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7154   as_echo='print -r --'
7155   as_echo_n='print -rn --'
7156 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7157   as_echo='printf %s\n'
7158   as_echo_n='printf %s'
7159 else
7160   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7161     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7162     as_echo_n='/usr/ucb/echo -n'
7163   else
7164     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7165     as_echo_n_body='eval
7166       arg=$1;
7167       case $arg in #(
7168       *"$as_nl"*)
7169         expr "X$arg" : "X\\(.*\\)$as_nl";
7170         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7171       esac;
7172       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7173     '
7174     export as_echo_n_body
7175     as_echo_n='sh -c $as_echo_n_body as_echo'
7176   fi
7177   export as_echo_body
7178   as_echo='sh -c $as_echo_body as_echo'
7179 fi
7180
7181 # The user is always right.
7182 if test "${PATH_SEPARATOR+set}" != set; then
7183   PATH_SEPARATOR=:
7184   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7185     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7186       PATH_SEPARATOR=';'
7187   }
7188 fi
7189
7190
7191 # IFS
7192 # We need space, tab and new line, in precisely that order.  Quoting is
7193 # there to prevent editors from complaining about space-tab.
7194 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7195 # splitting by setting IFS to empty value.)
7196 IFS=" ""        $as_nl"
7197
7198 # Find who we are.  Look in the path if we contain no directory separator.
7199 case $0 in #((
7200   *[\\/]* ) as_myself=$0 ;;
7201   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 for as_dir in $PATH
7203 do
7204   IFS=$as_save_IFS
7205   test -z "$as_dir" && as_dir=.
7206     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7207   done
7208 IFS=$as_save_IFS
7209
7210      ;;
7211 esac
7212 # We did not find ourselves, most probably we were run as `sh COMMAND'
7213 # in which case we are not to be found in the path.
7214 if test "x$as_myself" = x; then
7215   as_myself=$0
7216 fi
7217 if test ! -f "$as_myself"; then
7218   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7219   exit 1
7220 fi
7221
7222 # Unset variables that we do not need and which cause bugs (e.g. in
7223 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
7224 # suppresses any "Segmentation fault" message there.  '((' could
7225 # trigger a bug in pdksh 5.2.14.
7226 for as_var in BASH_ENV ENV MAIL MAILPATH
7227 do eval test x\${$as_var+set} = xset \
7228   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7229 done
7230 PS1='$ '
7231 PS2='> '
7232 PS4='+ '
7233
7234 # NLS nuisances.
7235 LC_ALL=C
7236 export LC_ALL
7237 LANGUAGE=C
7238 export LANGUAGE
7239
7240 # CDPATH.
7241 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7242
7243
7244 # as_fn_error ERROR [LINENO LOG_FD]
7245 # ---------------------------------
7246 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7247 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7248 # script with status $?, using 1 if that was 0.
7249 as_fn_error ()
7250 {
7251   as_status=$?; test $as_status -eq 0 && as_status=1
7252   if test "$3"; then
7253     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7254     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7255   fi
7256   $as_echo "$as_me: error: $1" >&2
7257   as_fn_exit $as_status
7258 } # as_fn_error
7259
7260
7261 # as_fn_set_status STATUS
7262 # -----------------------
7263 # Set $? to STATUS, without forking.
7264 as_fn_set_status ()
7265 {
7266   return $1
7267 } # as_fn_set_status
7268
7269 # as_fn_exit STATUS
7270 # -----------------
7271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7272 as_fn_exit ()
7273 {
7274   set +e
7275   as_fn_set_status $1
7276   exit $1
7277 } # as_fn_exit
7278
7279 # as_fn_unset VAR
7280 # ---------------
7281 # Portably unset VAR.
7282 as_fn_unset ()
7283 {
7284   { eval $1=; unset $1;}
7285 }
7286 as_unset=as_fn_unset
7287 # as_fn_append VAR VALUE
7288 # ----------------------
7289 # Append the text in VALUE to the end of the definition contained in VAR. Take
7290 # advantage of any shell optimizations that allow amortized linear growth over
7291 # repeated appends, instead of the typical quadratic growth present in naive
7292 # implementations.
7293 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7294   eval 'as_fn_append ()
7295   {
7296     eval $1+=\$2
7297   }'
7298 else
7299   as_fn_append ()
7300   {
7301     eval $1=\$$1\$2
7302   }
7303 fi # as_fn_append
7304
7305 # as_fn_arith ARG...
7306 # ------------------
7307 # Perform arithmetic evaluation on the ARGs, and store the result in the
7308 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7309 # must be portable across $(()) and expr.
7310 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7311   eval 'as_fn_arith ()
7312   {
7313     as_val=$(( $* ))
7314   }'
7315 else
7316   as_fn_arith ()
7317   {
7318     as_val=`expr "$@" || test $? -eq 1`
7319   }
7320 fi # as_fn_arith
7321
7322
7323 if expr a : '\(a\)' >/dev/null 2>&1 &&
7324    test "X`expr 00001 : '.*\(...\)'`" = X001; then
7325   as_expr=expr
7326 else
7327   as_expr=false
7328 fi
7329
7330 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7331   as_basename=basename
7332 else
7333   as_basename=false
7334 fi
7335
7336 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7337   as_dirname=dirname
7338 else
7339   as_dirname=false
7340 fi
7341
7342 as_me=`$as_basename -- "$0" ||
7343 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7344          X"$0" : 'X\(//\)$' \| \
7345          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7346 $as_echo X/"$0" |
7347     sed '/^.*\/\([^/][^/]*\)\/*$/{
7348             s//\1/
7349             q
7350           }
7351           /^X\/\(\/\/\)$/{
7352             s//\1/
7353             q
7354           }
7355           /^X\/\(\/\).*/{
7356             s//\1/
7357             q
7358           }
7359           s/.*/./; q'`
7360
7361 # Avoid depending upon Character Ranges.
7362 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7363 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7364 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7365 as_cr_digits='0123456789'
7366 as_cr_alnum=$as_cr_Letters$as_cr_digits
7367
7368 ECHO_C= ECHO_N= ECHO_T=
7369 case `echo -n x` in #(((((
7370 -n*)
7371   case `echo 'xy\c'` in
7372   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
7373   xy)  ECHO_C='\c';;
7374   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
7375        ECHO_T=' ';;
7376   esac;;
7377 *)
7378   ECHO_N='-n';;
7379 esac
7380
7381 rm -f conf$$ conf$$.exe conf$$.file
7382 if test -d conf$$.dir; then
7383   rm -f conf$$.dir/conf$$.file
7384 else
7385   rm -f conf$$.dir
7386   mkdir conf$$.dir 2>/dev/null
7387 fi
7388 if (echo >conf$$.file) 2>/dev/null; then
7389   if ln -s conf$$.file conf$$ 2>/dev/null; then
7390     as_ln_s='ln -s'
7391     # ... but there are two gotchas:
7392     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7393     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7394     # In both cases, we have to default to `cp -p'.
7395     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7396       as_ln_s='cp -p'
7397   elif ln conf$$.file conf$$ 2>/dev/null; then
7398     as_ln_s=ln
7399   else
7400     as_ln_s='cp -p'
7401   fi
7402 else
7403   as_ln_s='cp -p'
7404 fi
7405 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7406 rmdir conf$$.dir 2>/dev/null
7407
7408
7409 # as_fn_mkdir_p
7410 # -------------
7411 # Create "$as_dir" as a directory, including parents if necessary.
7412 as_fn_mkdir_p ()
7413 {
7414
7415   case $as_dir in #(
7416   -*) as_dir=./$as_dir;;
7417   esac
7418   test -d "$as_dir" || eval $as_mkdir_p || {
7419     as_dirs=
7420     while :; do
7421       case $as_dir in #(
7422       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7423       *) as_qdir=$as_dir;;
7424       esac
7425       as_dirs="'$as_qdir' $as_dirs"
7426       as_dir=`$as_dirname -- "$as_dir" ||
7427 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7428          X"$as_dir" : 'X\(//\)[^/]' \| \
7429          X"$as_dir" : 'X\(//\)$' \| \
7430          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7431 $as_echo X"$as_dir" |
7432     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7433             s//\1/
7434             q
7435           }
7436           /^X\(\/\/\)[^/].*/{
7437             s//\1/
7438             q
7439           }
7440           /^X\(\/\/\)$/{
7441             s//\1/
7442             q
7443           }
7444           /^X\(\/\).*/{
7445             s//\1/
7446             q
7447           }
7448           s/.*/./; q'`
7449       test -d "$as_dir" && break
7450     done
7451     test -z "$as_dirs" || eval "mkdir $as_dirs"
7452   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7453
7454
7455 } # as_fn_mkdir_p
7456 if mkdir -p . 2>/dev/null; then
7457   as_mkdir_p='mkdir -p "$as_dir"'
7458 else
7459   test -d ./-p && rmdir ./-p
7460   as_mkdir_p=false
7461 fi
7462
7463 if test -x / >/dev/null 2>&1; then
7464   as_test_x='test -x'
7465 else
7466   if ls -dL / >/dev/null 2>&1; then
7467     as_ls_L_option=L
7468   else
7469     as_ls_L_option=
7470   fi
7471   as_test_x='
7472     eval sh -c '\''
7473       if test -d "$1"; then
7474         test -d "$1/.";
7475       else
7476         case $1 in #(
7477         -*)set "./$1";;
7478         esac;
7479         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7480         ???[sx]*):;;*)false;;esac;fi
7481     '\'' sh
7482   '
7483 fi
7484 as_executable_p=$as_test_x
7485
7486 # Sed expression to map a string onto a valid CPP name.
7487 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7488
7489 # Sed expression to map a string onto a valid variable name.
7490 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7491
7492
7493 exec 6>&1
7494 ## ----------------------------------- ##
7495 ## Main body of $CONFIG_STATUS script. ##
7496 ## ----------------------------------- ##
7497 _ASEOF
7498 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7499
7500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7501 # Save the log message, to keep $0 and so on meaningful, and to
7502 # report actual input values of CONFIG_FILES etc. instead of their
7503 # values after options handling.
7504 ac_log="
7505 This file was extended by $as_me, which was
7506 generated by GNU Autoconf 2.64.  Invocation command line was
7507
7508   CONFIG_FILES    = $CONFIG_FILES
7509   CONFIG_HEADERS  = $CONFIG_HEADERS
7510   CONFIG_LINKS    = $CONFIG_LINKS
7511   CONFIG_COMMANDS = $CONFIG_COMMANDS
7512   $ $0 $@
7513
7514 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7515 "
7516
7517 _ACEOF
7518
7519 case $ac_config_files in *"
7520 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7521 esac
7522
7523 case $ac_config_headers in *"
7524 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7525 esac
7526
7527
7528 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7529 # Files that config.status was made for.
7530 config_files="$ac_config_files"
7531 config_headers="$ac_config_headers"
7532 config_commands="$ac_config_commands"
7533
7534 _ACEOF
7535
7536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7537 ac_cs_usage="\
7538 \`$as_me' instantiates files and other configuration actions
7539 from templates according to the current configuration.  Unless the files
7540 and actions are specified as TAGs, all are instantiated by default.
7541
7542 Usage: $0 [OPTION]... [TAG]...
7543
7544   -h, --help       print this help, then exit
7545   -V, --version    print version number and configuration settings, then exit
7546   -q, --quiet, --silent
7547                    do not print progress messages
7548   -d, --debug      don't remove temporary files
7549       --recheck    update $as_me by reconfiguring in the same conditions
7550       --file=FILE[:TEMPLATE]
7551                    instantiate the configuration file FILE
7552       --header=FILE[:TEMPLATE]
7553                    instantiate the configuration header FILE
7554
7555 Configuration files:
7556 $config_files
7557
7558 Configuration headers:
7559 $config_headers
7560
7561 Configuration commands:
7562 $config_commands
7563
7564 Report bugs to the package provider."
7565
7566 _ACEOF
7567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7568 ac_cs_version="\\
7569 config.status
7570 configured by $0, generated by GNU Autoconf 2.64,
7571   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7572
7573 Copyright (C) 2009 Free Software Foundation, Inc.
7574 This config.status script is free software; the Free Software Foundation
7575 gives unlimited permission to copy, distribute and modify it."
7576
7577 ac_pwd='$ac_pwd'
7578 srcdir='$srcdir'
7579 INSTALL='$INSTALL'
7580 AWK='$AWK'
7581 test -n "\$AWK" || AWK=awk
7582 _ACEOF
7583
7584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7585 # The default lists apply if the user does not specify any file.
7586 ac_need_defaults=:
7587 while test $# != 0
7588 do
7589   case $1 in
7590   --*=*)
7591     ac_option=`expr "X$1" : 'X\([^=]*\)='`
7592     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7593     ac_shift=:
7594     ;;
7595   *)
7596     ac_option=$1
7597     ac_optarg=$2
7598     ac_shift=shift
7599     ;;
7600   esac
7601
7602   case $ac_option in
7603   # Handling of the options.
7604   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7605     ac_cs_recheck=: ;;
7606   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7607     $as_echo "$ac_cs_version"; exit ;;
7608   --debug | --debu | --deb | --de | --d | -d )
7609     debug=: ;;
7610   --file | --fil | --fi | --f )
7611     $ac_shift
7612     case $ac_optarg in
7613     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7614     esac
7615     as_fn_append CONFIG_FILES " '$ac_optarg'"
7616     ac_need_defaults=false;;
7617   --header | --heade | --head | --hea )
7618     $ac_shift
7619     case $ac_optarg in
7620     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7621     esac
7622     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7623     ac_need_defaults=false;;
7624   --he | --h)
7625     # Conflict between --help and --header
7626     as_fn_error "ambiguous option: \`$1'
7627 Try \`$0 --help' for more information.";;
7628   --help | --hel | -h )
7629     $as_echo "$ac_cs_usage"; exit ;;
7630   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7631   | -silent | --silent | --silen | --sile | --sil | --si | --s)
7632     ac_cs_silent=: ;;
7633
7634   # This is an error.
7635   -*) as_fn_error "unrecognized option: \`$1'
7636 Try \`$0 --help' for more information." ;;
7637
7638   *) as_fn_append ac_config_targets " $1"
7639      ac_need_defaults=false ;;
7640
7641   esac
7642   shift
7643 done
7644
7645 ac_configure_extra_args=
7646
7647 if $ac_cs_silent; then
7648   exec 6>/dev/null
7649   ac_configure_extra_args="$ac_configure_extra_args --silent"
7650 fi
7651
7652 _ACEOF
7653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7654 if \$ac_cs_recheck; then
7655   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7656   shift
7657   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7658   CONFIG_SHELL='$SHELL'
7659   export CONFIG_SHELL
7660   exec "\$@"
7661 fi
7662
7663 _ACEOF
7664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7665 exec 5>>config.log
7666 {
7667   echo
7668   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7669 ## Running $as_me. ##
7670 _ASBOX
7671   $as_echo "$ac_log"
7672 } >&5
7673
7674 _ACEOF
7675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7676 _ACEOF
7677
7678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7679
7680 # Handling of arguments.
7681 for ac_config_target in $ac_config_targets
7682 do
7683   case $ac_config_target in
7684     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7685     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7686     "ircd/Makefile") CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
7687     "ircd/test/Makefile") CONFIG_FILES="$CONFIG_FILES ircd/test/Makefile" ;;
7688     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7689
7690   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7691   esac
7692 done
7693
7694
7695 # If the user did not use the arguments to specify the items to instantiate,
7696 # then the envvar interface is used.  Set only those that are not.
7697 # We use the long form for the default assignment because of an extremely
7698 # bizarre bug on SunOS 4.1.3.
7699 if $ac_need_defaults; then
7700   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7701   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7702   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7703 fi
7704
7705 # Have a temporary directory for convenience.  Make it in the build tree
7706 # simply because there is no reason against having it here, and in addition,
7707 # creating and moving files from /tmp can sometimes cause problems.
7708 # Hook for its removal unless debugging.
7709 # Note that there is a small window in which the directory will not be cleaned:
7710 # after its creation but before its name has been assigned to `$tmp'.
7711 $debug ||
7712 {
7713   tmp=
7714   trap 'exit_status=$?
7715   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7716 ' 0
7717   trap 'as_fn_exit 1' 1 2 13 15
7718 }
7719 # Create a (secure) tmp directory for tmp files.
7720
7721 {
7722   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7723   test -n "$tmp" && test -d "$tmp"
7724 }  ||
7725 {
7726   tmp=./conf$$-$RANDOM
7727   (umask 077 && mkdir "$tmp")
7728 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
7729
7730 # Set up the scripts for CONFIG_FILES section.
7731 # No need to generate them if there are no CONFIG_FILES.
7732 # This happens for instance with `./config.status config.h'.
7733 if test -n "$CONFIG_FILES"; then
7734
7735
7736 ac_cr=`echo X | tr X '\015'`
7737 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7738 # But we know of no other shell where ac_cr would be empty at this
7739 # point, so we can use a bashism as a fallback.
7740 if test "x$ac_cr" = x; then
7741   eval ac_cr=\$\'\\r\'
7742 fi
7743 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7744 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7745   ac_cs_awk_cr='\r'
7746 else
7747   ac_cs_awk_cr=$ac_cr
7748 fi
7749
7750 echo 'BEGIN {' >"$tmp/subs1.awk" &&
7751 _ACEOF
7752
7753
7754 {
7755   echo "cat >conf$$subs.awk <<_ACEOF" &&
7756   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7757   echo "_ACEOF"
7758 } >conf$$subs.sh ||
7759   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7760 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7761 ac_delim='%!_!# '
7762 for ac_last_try in false false false false false :; do
7763   . ./conf$$subs.sh ||
7764     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7765
7766   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7767   if test $ac_delim_n = $ac_delim_num; then
7768     break
7769   elif $ac_last_try; then
7770     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7771   else
7772     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7773   fi
7774 done
7775 rm -f conf$$subs.sh
7776
7777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7778 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7779 _ACEOF
7780 sed -n '
7781 h
7782 s/^/S["/; s/!.*/"]=/
7783 p
7784 g
7785 s/^[^!]*!//
7786 :repl
7787 t repl
7788 s/'"$ac_delim"'$//
7789 t delim
7790 :nl
7791 h
7792 s/\(.\{148\}\).*/\1/
7793 t more1
7794 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7795 p
7796 n
7797 b repl
7798 :more1
7799 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7800 p
7801 g
7802 s/.\{148\}//
7803 t nl
7804 :delim
7805 h
7806 s/\(.\{148\}\).*/\1/
7807 t more2
7808 s/["\\]/\\&/g; s/^/"/; s/$/"/
7809 p
7810 b
7811 :more2
7812 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7813 p
7814 g
7815 s/.\{148\}//
7816 t delim
7817 ' <conf$$subs.awk | sed '
7818 /^[^""]/{
7819   N
7820   s/\n//
7821 }
7822 ' >>$CONFIG_STATUS || ac_write_fail=1
7823 rm -f conf$$subs.awk
7824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7825 _ACAWK
7826 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7827   for (key in S) S_is_set[key] = 1
7828   FS = "\a"
7829
7830 }
7831 {
7832   line = $ 0
7833   nfields = split(line, field, "@")
7834   substed = 0
7835   len = length(field[1])
7836   for (i = 2; i < nfields; i++) {
7837     key = field[i]
7838     keylen = length(key)
7839     if (S_is_set[key]) {
7840       value = S[key]
7841       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7842       len += length(value) + length(field[++i])
7843       substed = 1
7844     } else
7845       len += 1 + keylen
7846   }
7847
7848   print line
7849 }
7850
7851 _ACAWK
7852 _ACEOF
7853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7854 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7855   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7856 else
7857   cat
7858 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7859   || as_fn_error "could not setup config files machinery" "$LINENO" 5
7860 _ACEOF
7861
7862 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7863 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7864 # trailing colons and then remove the whole line if VPATH becomes empty
7865 # (actually we leave an empty line to preserve line numbers).
7866 if test "x$srcdir" = x.; then
7867   ac_vpsub='/^[  ]*VPATH[        ]*=/{
7868 s/:*\$(srcdir):*/:/
7869 s/:*\${srcdir}:*/:/
7870 s/:*@srcdir@:*/:/
7871 s/^\([^=]*=[     ]*\):*/\1/
7872 s/:*$//
7873 s/^[^=]*=[       ]*$//
7874 }'
7875 fi
7876
7877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7878 fi # test -n "$CONFIG_FILES"
7879
7880 # Set up the scripts for CONFIG_HEADERS section.
7881 # No need to generate them if there are no CONFIG_HEADERS.
7882 # This happens for instance with `./config.status Makefile'.
7883 if test -n "$CONFIG_HEADERS"; then
7884 cat >"$tmp/defines.awk" <<\_ACAWK ||
7885 BEGIN {
7886 _ACEOF
7887
7888 # Transform confdefs.h into an awk script `defines.awk', embedded as
7889 # here-document in config.status, that substitutes the proper values into
7890 # config.h.in to produce config.h.
7891
7892 # Create a delimiter string that does not exist in confdefs.h, to ease
7893 # handling of long lines.
7894 ac_delim='%!_!# '
7895 for ac_last_try in false false :; do
7896   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7897   if test -z "$ac_t"; then
7898     break
7899   elif $ac_last_try; then
7900     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
7901   else
7902     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7903   fi
7904 done
7905
7906 # For the awk script, D is an array of macro values keyed by name,
7907 # likewise P contains macro parameters if any.  Preserve backslash
7908 # newline sequences.
7909
7910 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7911 sed -n '
7912 s/.\{148\}/&'"$ac_delim"'/g
7913 t rset
7914 :rset
7915 s/^[     ]*#[    ]*define[       ][      ]*/ /
7916 t def
7917 d
7918 :def
7919 s/\\$//
7920 t bsnl
7921 s/["\\]/\\&/g
7922 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
7923 D["\1"]=" \3"/p
7924 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
7925 d
7926 :bsnl
7927 s/["\\]/\\&/g
7928 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
7929 D["\1"]=" \3\\\\\\n"\\/p
7930 t cont
7931 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7932 t cont
7933 d
7934 :cont
7935 n
7936 s/.\{148\}/&'"$ac_delim"'/g
7937 t clear
7938 :clear
7939 s/\\$//
7940 t bsnlc
7941 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7942 d
7943 :bsnlc
7944 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7945 b cont
7946 ' <confdefs.h | sed '
7947 s/'"$ac_delim"'/"\\\
7948 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7949
7950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7951   for (key in D) D_is_set[key] = 1
7952   FS = "\a"
7953 }
7954 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7955   line = \$ 0
7956   split(line, arg, " ")
7957   if (arg[1] == "#") {
7958     defundef = arg[2]
7959     mac1 = arg[3]
7960   } else {
7961     defundef = substr(arg[1], 2)
7962     mac1 = arg[2]
7963   }
7964   split(mac1, mac2, "(") #)
7965   macro = mac2[1]
7966   prefix = substr(line, 1, index(line, defundef) - 1)
7967   if (D_is_set[macro]) {
7968     # Preserve the white space surrounding the "#".
7969     print prefix "define", macro P[macro] D[macro]
7970     next
7971   } else {
7972     # Replace #undef with comments.  This is necessary, for example,
7973     # in the case of _POSIX_SOURCE, which is predefined and required
7974     # on some systems where configure will not decide to define it.
7975     if (defundef == "undef") {
7976       print "/*", prefix defundef, macro, "*/"
7977       next
7978     }
7979   }
7980 }
7981 { print }
7982 _ACAWK
7983 _ACEOF
7984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7985   as_fn_error "could not setup config headers machinery" "$LINENO" 5
7986 fi # test -n "$CONFIG_HEADERS"
7987
7988
7989 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
7990 shift
7991 for ac_tag
7992 do
7993   case $ac_tag in
7994   :[FHLC]) ac_mode=$ac_tag; continue;;
7995   esac
7996   case $ac_mode$ac_tag in
7997   :[FHL]*:*);;
7998   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
7999   :[FH]-) ac_tag=-:-;;
8000   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8001   esac
8002   ac_save_IFS=$IFS
8003   IFS=:
8004   set x $ac_tag
8005   IFS=$ac_save_IFS
8006   shift
8007   ac_file=$1
8008   shift
8009
8010   case $ac_mode in
8011   :L) ac_source=$1;;
8012   :[FH])
8013     ac_file_inputs=
8014     for ac_f
8015     do
8016       case $ac_f in
8017       -) ac_f="$tmp/stdin";;
8018       *) # Look for the file first in the build tree, then in the source tree
8019          # (if the path is not absolute).  The absolute path cannot be DOS-style,
8020          # because $ac_f cannot contain `:'.
8021          test -f "$ac_f" ||
8022            case $ac_f in
8023            [\\/$]*) false;;
8024            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8025            esac ||
8026            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8027       esac
8028       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8029       as_fn_append ac_file_inputs " '$ac_f'"
8030     done
8031
8032     # Let's still pretend it is `configure' which instantiates (i.e., don't
8033     # use $as_me), people would be surprised to read:
8034     #    /* config.h.  Generated by config.status.  */
8035     configure_input='Generated from '`
8036           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8037         `' by configure.'
8038     if test x"$ac_file" != x-; then
8039       configure_input="$ac_file.  $configure_input"
8040       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8041 $as_echo "$as_me: creating $ac_file" >&6;}
8042     fi
8043     # Neutralize special characters interpreted by sed in replacement strings.
8044     case $configure_input in #(
8045     *\&* | *\|* | *\\* )
8046        ac_sed_conf_input=`$as_echo "$configure_input" |
8047        sed 's/[\\\\&|]/\\\\&/g'`;; #(
8048     *) ac_sed_conf_input=$configure_input;;
8049     esac
8050
8051     case $ac_tag in
8052     *:-:* | *:-) cat >"$tmp/stdin" \
8053       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8054     esac
8055     ;;
8056   esac
8057
8058   ac_dir=`$as_dirname -- "$ac_file" ||
8059 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8060          X"$ac_file" : 'X\(//\)[^/]' \| \
8061          X"$ac_file" : 'X\(//\)$' \| \
8062          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8063 $as_echo X"$ac_file" |
8064     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8065             s//\1/
8066             q
8067           }
8068           /^X\(\/\/\)[^/].*/{
8069             s//\1/
8070             q
8071           }
8072           /^X\(\/\/\)$/{
8073             s//\1/
8074             q
8075           }
8076           /^X\(\/\).*/{
8077             s//\1/
8078             q
8079           }
8080           s/.*/./; q'`
8081   as_dir="$ac_dir"; as_fn_mkdir_p
8082   ac_builddir=.
8083
8084 case "$ac_dir" in
8085 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8086 *)
8087   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8088   # A ".." for each directory in $ac_dir_suffix.
8089   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8090   case $ac_top_builddir_sub in
8091   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8092   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8093   esac ;;
8094 esac
8095 ac_abs_top_builddir=$ac_pwd
8096 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8097 # for backward compatibility:
8098 ac_top_builddir=$ac_top_build_prefix
8099
8100 case $srcdir in
8101   .)  # We are building in place.
8102     ac_srcdir=.
8103     ac_top_srcdir=$ac_top_builddir_sub
8104     ac_abs_top_srcdir=$ac_pwd ;;
8105   [\\/]* | ?:[\\/]* )  # Absolute name.
8106     ac_srcdir=$srcdir$ac_dir_suffix;
8107     ac_top_srcdir=$srcdir
8108     ac_abs_top_srcdir=$srcdir ;;
8109   *) # Relative name.
8110     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8111     ac_top_srcdir=$ac_top_build_prefix$srcdir
8112     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8113 esac
8114 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8115
8116
8117   case $ac_mode in
8118   :F)
8119   #
8120   # CONFIG_FILE
8121   #
8122
8123   case $INSTALL in
8124   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8125   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8126   esac
8127 _ACEOF
8128
8129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8130 # If the template does not know about datarootdir, expand it.
8131 # FIXME: This hack should be removed a few years after 2.60.
8132 ac_datarootdir_hack=; ac_datarootdir_seen=
8133 ac_sed_dataroot='
8134 /datarootdir/ {
8135   p
8136   q
8137 }
8138 /@datadir@/p
8139 /@docdir@/p
8140 /@infodir@/p
8141 /@localedir@/p
8142 /@mandir@/p'
8143 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8144 *datarootdir*) ac_datarootdir_seen=yes;;
8145 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8146   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8147 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8148 _ACEOF
8149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8150   ac_datarootdir_hack='
8151   s&@datadir@&$datadir&g
8152   s&@docdir@&$docdir&g
8153   s&@infodir@&$infodir&g
8154   s&@localedir@&$localedir&g
8155   s&@mandir@&$mandir&g
8156   s&\\\${datarootdir}&$datarootdir&g' ;;
8157 esac
8158 _ACEOF
8159
8160 # Neutralize VPATH when `$srcdir' = `.'.
8161 # Shell code in configure.ac might set extrasub.
8162 # FIXME: do we really want to maintain this feature?
8163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8164 ac_sed_extra="$ac_vpsub
8165 $extrasub
8166 _ACEOF
8167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8168 :t
8169 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8170 s|@configure_input@|$ac_sed_conf_input|;t t
8171 s&@top_builddir@&$ac_top_builddir_sub&;t t
8172 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8173 s&@srcdir@&$ac_srcdir&;t t
8174 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8175 s&@top_srcdir@&$ac_top_srcdir&;t t
8176 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8177 s&@builddir@&$ac_builddir&;t t
8178 s&@abs_builddir@&$ac_abs_builddir&;t t
8179 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8180 s&@INSTALL@&$ac_INSTALL&;t t
8181 $ac_datarootdir_hack
8182 "
8183 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8184   || as_fn_error "could not create $ac_file" "$LINENO" 5
8185
8186 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8187   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8188   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8189   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8190 which seems to be undefined.  Please make sure it is defined." >&5
8191 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8192 which seems to be undefined.  Please make sure it is defined." >&2;}
8193
8194   rm -f "$tmp/stdin"
8195   case $ac_file in
8196   -) cat "$tmp/out" && rm -f "$tmp/out";;
8197   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8198   esac \
8199   || as_fn_error "could not create $ac_file" "$LINENO" 5
8200  ;;
8201   :H)
8202   #
8203   # CONFIG_HEADER
8204   #
8205   if test x"$ac_file" != x-; then
8206     {
8207       $as_echo "/* $configure_input  */" \
8208       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8209     } >"$tmp/config.h" \
8210       || as_fn_error "could not create $ac_file" "$LINENO" 5
8211     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8212       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8213 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8214     else
8215       rm -f "$ac_file"
8216       mv "$tmp/config.h" "$ac_file" \
8217         || as_fn_error "could not create $ac_file" "$LINENO" 5
8218     fi
8219   else
8220     $as_echo "/* $configure_input  */" \
8221       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8222       || as_fn_error "could not create -" "$LINENO" 5
8223   fi
8224  ;;
8225
8226   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8227 $as_echo "$as_me: executing $ac_file commands" >&6;}
8228  ;;
8229   esac
8230
8231
8232   case $ac_file$ac_mode in
8233     "default":C) echo timestamp > stamp-h ;;
8234
8235   esac
8236 done # for ac_tag
8237
8238
8239 as_fn_exit 0
8240 _ACEOF
8241 ac_clean_files=$ac_clean_files_save
8242
8243 test $ac_write_fail = 0 ||
8244   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8245
8246
8247 # configure is writing to config.log, and then calls config.status.
8248 # config.status does its own redirection, appending to config.log.
8249 # Unfortunately, on DOS this fails, as config.log is still kept open
8250 # by configure, so config.status won't be able to write to it; its
8251 # output is simply discarded.  So we exec the FD to /dev/null,
8252 # effectively closing config.log, so it can be properly (re)opened and
8253 # appended to by config.status.  When coming back to configure, we
8254 # need to make the FD available again.
8255 if test "$no_create" != yes; then
8256   ac_cs_success=:
8257   ac_config_status_args=
8258   test "$silent" = yes &&
8259     ac_config_status_args="$ac_config_status_args --quiet"
8260   exec 5>/dev/null
8261   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8262   exec 5>>config.log
8263   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8264   # would make configure fail if this is the last instruction.
8265   $ac_cs_success || as_fn_exit $?
8266 fi
8267 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8268   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8269 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8270 fi
8271
8272
8273 ac_config_commands="$ac_config_commands default-1"
8274