1@%:@! /bin/sh
2@%:@ Guess values for system-dependent variables and create Makefiles.
3@%:@ Generated by GNU Autoconf 2.63 for ircproxy 1.3.6.
4@%:@
5@%:@ Report bugs to <jonasia_at_closetothewind_dot_net>.
6@%:@
7@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8@%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
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
16DUALCASE=1; export DUALCASE # for MKS sh
17if 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
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85  as_unset=unset
86else
87  as_unset=false
88fi
89
90
91# IFS
92# We need space, tab and new line, in precisely that order.  Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
96IFS=" ""	$as_nl"
97
98# Find who we are.  Look in the path if we contain no directory separator.
99case $0 in
100  *[\\/]* ) as_myself=$0 ;;
101  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104  IFS=$as_save_IFS
105  test -z "$as_dir" && as_dir=.
106  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110     ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115  as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119  { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138   test "X`expr 00001 : '.*\(...\)'`" = X001; then
139  as_expr=expr
140else
141  as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145  as_basename=basename
146else
147  as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154	 X"$0" : 'X\(//\)$' \| \
155	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156$as_echo X/"$0" |
157    sed '/^.*\/\([^/][^/]*\)\/*$/{
158	    s//\1/
159	    q
160	  }
161	  /^X\/\(\/\/\)$/{
162	    s//\1/
163	    q
164	  }
165	  /^X\/\(\/\).*/{
166	    s//\1/
167	    q
168	  }
169	  s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176  if (eval ":") 2>/dev/null; then
177  as_have_required=yes
178else
179  as_have_required=no
180fi
181
182  if test $as_have_required = yes &&	 (eval ":
183(as_func_return () {
184  (exit \$1)
185}
186as_func_success () {
187  as_func_return 0
188}
189as_func_failure () {
190  as_func_return 1
191}
192as_func_ret_success () {
193  return 0
194}
195as_func_ret_failure () {
196  return 1
197}
198
199exitcode=0
200if as_func_success; then
201  :
202else
203  exitcode=1
204  echo as_func_success failed.
205fi
206
207if as_func_failure; then
208  exitcode=1
209  echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213  :
214else
215  exitcode=1
216  echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220  exitcode=1
221  echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225  :
226else
227  exitcode=1
228  echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234  as_lineno_1=\$LINENO
235  as_lineno_2=\$LINENO
236  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239  :
240else
241  as_candidate_shells=
242    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245  IFS=$as_save_IFS
246  test -z "$as_dir" && as_dir=.
247  case $as_dir in
248	 /*)
249	   for as_base in sh bash ksh sh5; do
250	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251	   done;;
252       esac
253done
254IFS=$as_save_IFS
255
256
257      for as_shell in $as_candidate_shells $SHELL; do
258	 # Try only shells that exist, to save several forks.
259	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260		{ ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279  CONFIG_SHELL=$as_shell
280	       as_have_required=yes
281	       if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283  emulate sh
284  NULLCMD=:
285  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286  # is contrary to our usage.  Disable this feature.
287  alias -g '${1+"$@"}'='"$@"'
288  setopt NO_GLOB_SUBST
289else
290  case `(set -o) 2>/dev/null` in
291  *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299  (exit $1)
300}
301as_func_success () {
302  as_func_return 0
303}
304as_func_failure () {
305  as_func_return 1
306}
307as_func_ret_success () {
308  return 0
309}
310as_func_ret_failure () {
311  return 1
312}
313
314exitcode=0
315if as_func_success; then
316  :
317else
318  exitcode=1
319  echo as_func_success failed.
320fi
321
322if as_func_failure; then
323  exitcode=1
324  echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328  :
329else
330  exitcode=1
331  echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335  exitcode=1
336  echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340  :
341else
342  exitcode=1
343  echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
349  as_lineno_1=$LINENO
350  as_lineno_2=$LINENO
351  test "x$as_lineno_1" != "x$as_lineno_2" &&
352  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356  break
357fi
358
359fi
360
361      done
362
363      if test "x$CONFIG_SHELL" != x; then
364  for as_var in BASH_ENV ENV
365	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366	done
367	export CONFIG_SHELL
368	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369fi
370
371
372    if test $as_have_required = no; then
373  echo This script requires a shell more modern than all the
374      echo shells that I found on your system.  Please install a
375      echo modern shell, or manually run the script under such a
376      echo shell if you do have one.
377      { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388  (exit \$1)
389}
390as_func_success () {
391  as_func_return 0
392}
393as_func_failure () {
394  as_func_return 1
395}
396as_func_ret_success () {
397  return 0
398}
399as_func_ret_failure () {
400  return 1
401}
402
403exitcode=0
404if as_func_success; then
405  :
406else
407  exitcode=1
408  echo as_func_success failed.
409fi
410
411if as_func_failure; then
412  exitcode=1
413  echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417  :
418else
419  exitcode=1
420  echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424  exitcode=1
425  echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429  :
430else
431  exitcode=1
432  echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436  echo No shell found that supports shell functions.
437  echo Please tell bug-autoconf@gnu.org about your system,
438  echo including any error possibly output before this message.
439  echo This can help us improve future autoconf versions.
440  echo Configuration will now proceed without shell functions.
441}
442
443
444
445  as_lineno_1=$LINENO
446  as_lineno_2=$LINENO
447  test "x$as_lineno_1" != "x$as_lineno_2" &&
448  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451  # uniformly replaced by the line number.  The first 'sed' inserts a
452  # line-number line after each line using $LINENO; the second 'sed'
453  # does the real work.  The second script uses 'N' to pair each
454  # line-number line with the line containing $LINENO, and appends
455  # trailing '-' during substitution so that $LINENO is not a special
456  # case at line end.
457  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458  # scripts with optimization help from Paolo Bonzini.  Blame Lee
459  # E. McMahon (1931-1989) for sed's syntax.  :-)
460  sed -n '
461    p
462    /[$]LINENO/=
463  ' <$as_myself |
464    sed '
465      s/[$]LINENO.*/&-/
466      t lineno
467      b
468      :lineno
469      N
470      :loop
471      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472      t loop
473      s/-\n.*//
474    ' >$as_me.lineno &&
475  chmod +x "$as_me.lineno" ||
476    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477   { (exit 1); exit 1; }; }
478
479  # Don't try to exec as it changes $[0], causing all sort of problems
480  # (the dirname of $[0] is not the place where we might find the
481  # original and so on.  Autoconf is especially sensitive to this).
482  . "./$as_me.lineno"
483  # Exit status is that of the last command.
484  exit
485}
486
487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489  as_dirname=dirname
490else
491  as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497  case `echo 'x\c'` in
498  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
499  *)   ECHO_C='\c';;
500  esac;;
501*)
502  ECHO_N='-n';;
503esac
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505   test "X`expr 00001 : '.*\(...\)'`" = X001; then
506  as_expr=expr
507else
508  as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513  rm -f conf$$.dir/conf$$.file
514else
515  rm -f conf$$.dir
516  mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519  if ln -s conf$$.file conf$$ 2>/dev/null; then
520    as_ln_s='ln -s'
521    # ... but there are two gotchas:
522    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524    # In both cases, we have to default to `cp -p'.
525    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526      as_ln_s='cp -p'
527  elif ln conf$$.file conf$$ 2>/dev/null; then
528    as_ln_s=ln
529  else
530    as_ln_s='cp -p'
531  fi
532else
533  as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
537
538if mkdir -p . 2>/dev/null; then
539  as_mkdir_p=:
540else
541  test -d ./-p && rmdir ./-p
542  as_mkdir_p=false
543fi
544
545if test -x / >/dev/null 2>&1; then
546  as_test_x='test -x'
547else
548  if ls -dL / >/dev/null 2>&1; then
549    as_ls_L_option=L
550  else
551    as_ls_L_option=
552  fi
553  as_test_x='
554    eval sh -c '\''
555      if test -d "$1"; then
556	test -d "$1/.";
557      else
558	case $1 in
559	-*)set "./$1";;
560	esac;
561	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562	???[sx]*):;;*)false;;esac;fi
563    '\'' sh
564  '
565fi
566as_executable_p=$as_test_x
567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576exec 7<&0 </dev/null 6>&1
577
578# Name of the host.
579# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
580# so uname gets run too.
581ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582
583#
584# Initializations.
585#
586ac_default_prefix=/usr/local
587ac_clean_files=
588ac_config_libobj_dir=.
589LIB@&t@OBJS=
590cross_compiling=no
591subdirs=
592MFLAGS=
593MAKEFLAGS=
594SHELL=${CONFIG_SHELL-/bin/sh}
595
596# Identity of this package.
597PACKAGE_NAME='ircproxy'
598PACKAGE_TARNAME='ircproxy'
599PACKAGE_VERSION='1.3.6'
600PACKAGE_STRING='ircproxy 1.3.6'
601PACKAGE_BUGREPORT='jonasia_at_closetothewind_dot_net'
602
603ac_unique_file="./src/main.c"
604# Factoring default headers for most tests.
605ac_includes_default="\
606#include <stdio.h>
607#ifdef HAVE_SYS_TYPES_H
608# include <sys/types.h>
609#endif
610#ifdef HAVE_SYS_STAT_H
611# include <sys/stat.h>
612#endif
613#ifdef STDC_HEADERS
614# include <stdlib.h>
615# include <stddef.h>
616#else
617# ifdef HAVE_STDLIB_H
618#  include <stdlib.h>
619# endif
620#endif
621#ifdef HAVE_STRING_H
622# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623#  include <memory.h>
624# endif
625# include <string.h>
626#endif
627#ifdef HAVE_STRINGS_H
628# include <strings.h>
629#endif
630#ifdef HAVE_INTTYPES_H
631# include <inttypes.h>
632#endif
633#ifdef HAVE_STDINT_H
634# include <stdint.h>
635#endif
636#ifdef HAVE_UNISTD_H
637# include <unistd.h>
638#endif"
639
640ac_subst_vars='LTLIBOBJS
641LIB@&t@OBJS
642SOURCES
643CPP
644CRONTAB
645PW
646GROUPDEL
647GROUPADD
648USERDEL
649USERADD
650CHGRP
651CHOWN
652CHMOD
653FGREP
654EGREP
655GREP
656NAWK
657GAWK
658AWK
659MAIL
660PS
661ID
662DATE
663WHOAMI
664UNAME
665SED
666CAT
667LN
668MV
669RM
670CP
671RMDIR
672MKDIR
673TOUCH
674FILE
675LS
676ECHO
677SH
678LN_S
679INSTALL_DATA
680INSTALL_SCRIPT
681INSTALL_PROGRAM
682SET_MAKE
683OBJEXT
684EXEEXT
685ac_ct_CC
686CPPFLAGS
687LDFLAGS
688CFLAGS
689CC
690target_alias
691host_alias
692build_alias
693LIBS
694ECHO_T
695ECHO_N
696ECHO_C
697DEFS
698mandir
699localedir
700libdir
701psdir
702pdfdir
703dvidir
704htmldir
705infodir
706docdir
707oldincludedir
708includedir
709localstatedir
710sharedstatedir
711sysconfdir
712datadir
713datarootdir
714libexecdir
715sbindir
716bindir
717program_transform_name
718prefix
719exec_prefix
720PACKAGE_BUGREPORT
721PACKAGE_STRING
722PACKAGE_VERSION
723PACKAGE_TARNAME
724PACKAGE_NAME
725PATH_SEPARATOR
726SHELL'
727ac_subst_files=''
728ac_user_opts='
729enable_option_checking
730enable_assert
731enable_ares
732enable_ipv6
733enable_ssl
734enable_win32
735enable_memdebug
736enable_fddebug
737enable_identd
738enable_debug
739with_openssl
740with_gnutls
741'
742      ac_precious_vars='build_alias
743host_alias
744target_alias
745CC
746CFLAGS
747LDFLAGS
748LIBS
749CPPFLAGS
750CPP'
751
752
753# Initialize some variables set by options.
754ac_init_help=
755ac_init_version=false
756ac_unrecognized_opts=
757ac_unrecognized_sep=
758# The variables have the same names as the options, with
759# dashes changed to underlines.
760cache_file=/dev/null
761exec_prefix=NONE
762no_create=
763no_recursion=
764prefix=NONE
765program_prefix=NONE
766program_suffix=NONE
767program_transform_name=s,x,x,
768silent=
769site=
770srcdir=
771verbose=
772x_includes=NONE
773x_libraries=NONE
774
775# Installation directory options.
776# These are left unexpanded so users can "make install exec_prefix=/foo"
777# and all the variables that are supposed to be based on exec_prefix
778# by default will actually change.
779# Use braces instead of parens because sh, perl, etc. also accept them.
780# (The list follows the same order as the GNU Coding Standards.)
781bindir='${exec_prefix}/bin'
782sbindir='${exec_prefix}/sbin'
783libexecdir='${exec_prefix}/libexec'
784datarootdir='${prefix}/share'
785datadir='${datarootdir}'
786sysconfdir='${prefix}/etc'
787sharedstatedir='${prefix}/com'
788localstatedir='${prefix}/var'
789includedir='${prefix}/include'
790oldincludedir='/usr/include'
791docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
792infodir='${datarootdir}/info'
793htmldir='${docdir}'
794dvidir='${docdir}'
795pdfdir='${docdir}'
796psdir='${docdir}'
797libdir='${exec_prefix}/lib'
798localedir='${datarootdir}/locale'
799mandir='${datarootdir}/man'
800
801ac_prev=
802ac_dashdash=
803for ac_option
804do
805  # If the previous option needs an argument, assign it.
806  if test -n "$ac_prev"; then
807    eval $ac_prev=\$ac_option
808    ac_prev=
809    continue
810  fi
811
812  case $ac_option in
813  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
814  *)	ac_optarg=yes ;;
815  esac
816
817  # Accept the important Cygnus configure options, so we can diagnose typos.
818
819  case $ac_dashdash$ac_option in
820  --)
821    ac_dashdash=yes ;;
822
823  -bindir | --bindir | --bindi | --bind | --bin | --bi)
824    ac_prev=bindir ;;
825  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
826    bindir=$ac_optarg ;;
827
828  -build | --build | --buil | --bui | --bu)
829    ac_prev=build_alias ;;
830  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
831    build_alias=$ac_optarg ;;
832
833  -cache-file | --cache-file | --cache-fil | --cache-fi \
834  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
835    ac_prev=cache_file ;;
836  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
837  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
838    cache_file=$ac_optarg ;;
839
840  --config-cache | -C)
841    cache_file=config.cache ;;
842
843  -datadir | --datadir | --datadi | --datad)
844    ac_prev=datadir ;;
845  -datadir=* | --datadir=* | --datadi=* | --datad=*)
846    datadir=$ac_optarg ;;
847
848  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
849  | --dataroo | --dataro | --datar)
850    ac_prev=datarootdir ;;
851  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
852  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
853    datarootdir=$ac_optarg ;;
854
855  -disable-* | --disable-*)
856    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
857    # Reject names that are not valid shell variable names.
858    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
859      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
860   { (exit 1); exit 1; }; }
861    ac_useropt_orig=$ac_useropt
862    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
863    case $ac_user_opts in
864      *"
865"enable_$ac_useropt"
866"*) ;;
867      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
868	 ac_unrecognized_sep=', ';;
869    esac
870    eval enable_$ac_useropt=no ;;
871
872  -docdir | --docdir | --docdi | --doc | --do)
873    ac_prev=docdir ;;
874  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
875    docdir=$ac_optarg ;;
876
877  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
878    ac_prev=dvidir ;;
879  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
880    dvidir=$ac_optarg ;;
881
882  -enable-* | --enable-*)
883    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
884    # Reject names that are not valid shell variable names.
885    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
886      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
887   { (exit 1); exit 1; }; }
888    ac_useropt_orig=$ac_useropt
889    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890    case $ac_user_opts in
891      *"
892"enable_$ac_useropt"
893"*) ;;
894      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
895	 ac_unrecognized_sep=', ';;
896    esac
897    eval enable_$ac_useropt=\$ac_optarg ;;
898
899  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
900  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
901  | --exec | --exe | --ex)
902    ac_prev=exec_prefix ;;
903  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
904  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
905  | --exec=* | --exe=* | --ex=*)
906    exec_prefix=$ac_optarg ;;
907
908  -gas | --gas | --ga | --g)
909    # Obsolete; use --with-gas.
910    with_gas=yes ;;
911
912  -help | --help | --hel | --he | -h)
913    ac_init_help=long ;;
914  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
915    ac_init_help=recursive ;;
916  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
917    ac_init_help=short ;;
918
919  -host | --host | --hos | --ho)
920    ac_prev=host_alias ;;
921  -host=* | --host=* | --hos=* | --ho=*)
922    host_alias=$ac_optarg ;;
923
924  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
925    ac_prev=htmldir ;;
926  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
927  | --ht=*)
928    htmldir=$ac_optarg ;;
929
930  -includedir | --includedir | --includedi | --included | --include \
931  | --includ | --inclu | --incl | --inc)
932    ac_prev=includedir ;;
933  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
934  | --includ=* | --inclu=* | --incl=* | --inc=*)
935    includedir=$ac_optarg ;;
936
937  -infodir | --infodir | --infodi | --infod | --info | --inf)
938    ac_prev=infodir ;;
939  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
940    infodir=$ac_optarg ;;
941
942  -libdir | --libdir | --libdi | --libd)
943    ac_prev=libdir ;;
944  -libdir=* | --libdir=* | --libdi=* | --libd=*)
945    libdir=$ac_optarg ;;
946
947  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
948  | --libexe | --libex | --libe)
949    ac_prev=libexecdir ;;
950  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
951  | --libexe=* | --libex=* | --libe=*)
952    libexecdir=$ac_optarg ;;
953
954  -localedir | --localedir | --localedi | --localed | --locale)
955    ac_prev=localedir ;;
956  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
957    localedir=$ac_optarg ;;
958
959  -localstatedir | --localstatedir | --localstatedi | --localstated \
960  | --localstate | --localstat | --localsta | --localst | --locals)
961    ac_prev=localstatedir ;;
962  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
963  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
964    localstatedir=$ac_optarg ;;
965
966  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
967    ac_prev=mandir ;;
968  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
969    mandir=$ac_optarg ;;
970
971  -nfp | --nfp | --nf)
972    # Obsolete; use --without-fp.
973    with_fp=no ;;
974
975  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
976  | --no-cr | --no-c | -n)
977    no_create=yes ;;
978
979  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
980  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
981    no_recursion=yes ;;
982
983  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
984  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
985  | --oldin | --oldi | --old | --ol | --o)
986    ac_prev=oldincludedir ;;
987  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
988  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
989  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
990    oldincludedir=$ac_optarg ;;
991
992  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
993    ac_prev=prefix ;;
994  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
995    prefix=$ac_optarg ;;
996
997  -program-prefix | --program-prefix | --program-prefi | --program-pref \
998  | --program-pre | --program-pr | --program-p)
999    ac_prev=program_prefix ;;
1000  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1001  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1002    program_prefix=$ac_optarg ;;
1003
1004  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1005  | --program-suf | --program-su | --program-s)
1006    ac_prev=program_suffix ;;
1007  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1008  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1009    program_suffix=$ac_optarg ;;
1010
1011  -program-transform-name | --program-transform-name \
1012  | --program-transform-nam | --program-transform-na \
1013  | --program-transform-n | --program-transform- \
1014  | --program-transform | --program-transfor \
1015  | --program-transfo | --program-transf \
1016  | --program-trans | --program-tran \
1017  | --progr-tra | --program-tr | --program-t)
1018    ac_prev=program_transform_name ;;
1019  -program-transform-name=* | --program-transform-name=* \
1020  | --program-transform-nam=* | --program-transform-na=* \
1021  | --program-transform-n=* | --program-transform-=* \
1022  | --program-transform=* | --program-transfor=* \
1023  | --program-transfo=* | --program-transf=* \
1024  | --program-trans=* | --program-tran=* \
1025  | --progr-tra=* | --program-tr=* | --program-t=*)
1026    program_transform_name=$ac_optarg ;;
1027
1028  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1029    ac_prev=pdfdir ;;
1030  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1031    pdfdir=$ac_optarg ;;
1032
1033  -psdir | --psdir | --psdi | --psd | --ps)
1034    ac_prev=psdir ;;
1035  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1036    psdir=$ac_optarg ;;
1037
1038  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1039  | -silent | --silent | --silen | --sile | --sil)
1040    silent=yes ;;
1041
1042  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1043    ac_prev=sbindir ;;
1044  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1045  | --sbi=* | --sb=*)
1046    sbindir=$ac_optarg ;;
1047
1048  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1049  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1050  | --sharedst | --shareds | --shared | --share | --shar \
1051  | --sha | --sh)
1052    ac_prev=sharedstatedir ;;
1053  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1054  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1055  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1056  | --sha=* | --sh=*)
1057    sharedstatedir=$ac_optarg ;;
1058
1059  -site | --site | --sit)
1060    ac_prev=site ;;
1061  -site=* | --site=* | --sit=*)
1062    site=$ac_optarg ;;
1063
1064  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1065    ac_prev=srcdir ;;
1066  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1067    srcdir=$ac_optarg ;;
1068
1069  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1070  | --syscon | --sysco | --sysc | --sys | --sy)
1071    ac_prev=sysconfdir ;;
1072  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1073  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1074    sysconfdir=$ac_optarg ;;
1075
1076  -target | --target | --targe | --targ | --tar | --ta | --t)
1077    ac_prev=target_alias ;;
1078  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1079    target_alias=$ac_optarg ;;
1080
1081  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1082    verbose=yes ;;
1083
1084  -version | --version | --versio | --versi | --vers | -V)
1085    ac_init_version=: ;;
1086
1087  -with-* | --with-*)
1088    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1089    # Reject names that are not valid shell variable names.
1090    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1092   { (exit 1); exit 1; }; }
1093    ac_useropt_orig=$ac_useropt
1094    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095    case $ac_user_opts in
1096      *"
1097"with_$ac_useropt"
1098"*) ;;
1099      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1100	 ac_unrecognized_sep=', ';;
1101    esac
1102    eval with_$ac_useropt=\$ac_optarg ;;
1103
1104  -without-* | --without-*)
1105    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1106    # Reject names that are not valid shell variable names.
1107    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1109   { (exit 1); exit 1; }; }
1110    ac_useropt_orig=$ac_useropt
1111    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112    case $ac_user_opts in
1113      *"
1114"with_$ac_useropt"
1115"*) ;;
1116      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1117	 ac_unrecognized_sep=', ';;
1118    esac
1119    eval with_$ac_useropt=no ;;
1120
1121  --x)
1122    # Obsolete; use --with-x.
1123    with_x=yes ;;
1124
1125  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1126  | --x-incl | --x-inc | --x-in | --x-i)
1127    ac_prev=x_includes ;;
1128  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1129  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1130    x_includes=$ac_optarg ;;
1131
1132  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1133  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1134    ac_prev=x_libraries ;;
1135  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1136  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1137    x_libraries=$ac_optarg ;;
1138
1139  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1140Try \`$0 --help' for more information." >&2
1141   { (exit 1); exit 1; }; }
1142    ;;
1143
1144  *=*)
1145    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1146    # Reject names that are not valid shell variable names.
1147    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1148      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1149   { (exit 1); exit 1; }; }
1150    eval $ac_envvar=\$ac_optarg
1151    export $ac_envvar ;;
1152
1153  *)
1154    # FIXME: should be removed in autoconf 3.0.
1155    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1156    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1157      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1158    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1159    ;;
1160
1161  esac
1162done
1163
1164if test -n "$ac_prev"; then
1165  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1166  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1167   { (exit 1); exit 1; }; }
1168fi
1169
1170if test -n "$ac_unrecognized_opts"; then
1171  case $enable_option_checking in
1172    no) ;;
1173    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1174   { (exit 1); exit 1; }; } ;;
1175    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1176  esac
1177fi
1178
1179# Check all directory arguments for consistency.
1180for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1181		datadir sysconfdir sharedstatedir localstatedir includedir \
1182		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1183		libdir localedir mandir
1184do
1185  eval ac_val=\$$ac_var
1186  # Remove trailing slashes.
1187  case $ac_val in
1188    */ )
1189      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1190      eval $ac_var=\$ac_val;;
1191  esac
1192  # Be sure to have absolute directory names.
1193  case $ac_val in
1194    [\\/$]* | ?:[\\/]* )  continue;;
1195    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1196  esac
1197  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1198   { (exit 1); exit 1; }; }
1199done
1200
1201# There might be people who depend on the old broken behavior: `$host'
1202# used to hold the argument of --host etc.
1203# FIXME: To remove some day.
1204build=$build_alias
1205host=$host_alias
1206target=$target_alias
1207
1208# FIXME: To remove some day.
1209if test "x$host_alias" != x; then
1210  if test "x$build_alias" = x; then
1211    cross_compiling=maybe
1212    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1213    If a cross compiler is detected then cross compile mode will be used." >&2
1214  elif test "x$build_alias" != "x$host_alias"; then
1215    cross_compiling=yes
1216  fi
1217fi
1218
1219ac_tool_prefix=
1220test -n "$host_alias" && ac_tool_prefix=$host_alias-
1221
1222test "$silent" = yes && exec 6>/dev/null
1223
1224
1225ac_pwd=`pwd` && test -n "$ac_pwd" &&
1226ac_ls_di=`ls -di .` &&
1227ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1228  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1229   { (exit 1); exit 1; }; }
1230test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1231  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1232   { (exit 1); exit 1; }; }
1233
1234
1235# Find the source files, if location was not specified.
1236if test -z "$srcdir"; then
1237  ac_srcdir_defaulted=yes
1238  # Try the directory containing this script, then the parent directory.
1239  ac_confdir=`$as_dirname -- "$as_myself" ||
1240$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1241	 X"$as_myself" : 'X\(//\)[^/]' \| \
1242	 X"$as_myself" : 'X\(//\)$' \| \
1243	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1244$as_echo X"$as_myself" |
1245    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1246	    s//\1/
1247	    q
1248	  }
1249	  /^X\(\/\/\)[^/].*/{
1250	    s//\1/
1251	    q
1252	  }
1253	  /^X\(\/\/\)$/{
1254	    s//\1/
1255	    q
1256	  }
1257	  /^X\(\/\).*/{
1258	    s//\1/
1259	    q
1260	  }
1261	  s/.*/./; q'`
1262  srcdir=$ac_confdir
1263  if test ! -r "$srcdir/$ac_unique_file"; then
1264    srcdir=..
1265  fi
1266else
1267  ac_srcdir_defaulted=no
1268fi
1269if test ! -r "$srcdir/$ac_unique_file"; then
1270  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1271  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1272   { (exit 1); exit 1; }; }
1273fi
1274ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1275ac_abs_confdir=`(
1276	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1277   { (exit 1); exit 1; }; }
1278	pwd)`
1279# When building in place, set srcdir=.
1280if test "$ac_abs_confdir" = "$ac_pwd"; then
1281  srcdir=.
1282fi
1283# Remove unnecessary trailing slashes from srcdir.
1284# Double slashes in file names in object file debugging info
1285# mess up M-x gdb in Emacs.
1286case $srcdir in
1287*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1288esac
1289for ac_var in $ac_precious_vars; do
1290  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1291  eval ac_env_${ac_var}_value=\$${ac_var}
1292  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1293  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1294done
1295
1296#
1297# Report the --help message.
1298#
1299if test "$ac_init_help" = "long"; then
1300  # Omit some internal or obsolete options to make the list less imposing.
1301  # This message is too long to be a string in the A/UX 3.1 sh.
1302  cat <<_ACEOF
1303\`configure' configures ircproxy 1.3.6 to adapt to many kinds of systems.
1304
1305Usage: $0 [OPTION]... [VAR=VALUE]...
1306
1307To assign environment variables (e.g., CC, CFLAGS...), specify them as
1308VAR=VALUE.  See below for descriptions of some of the useful variables.
1309
1310Defaults for the options are specified in brackets.
1311
1312Configuration:
1313  -h, --help              display this help and exit
1314      --help=short        display options specific to this package
1315      --help=recursive    display the short help of all the included packages
1316  -V, --version           display version information and exit
1317  -q, --quiet, --silent   do not print \`checking...' messages
1318      --cache-file=FILE   cache test results in FILE [disabled]
1319  -C, --config-cache      alias for \`--cache-file=config.cache'
1320  -n, --no-create         do not create output files
1321      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1322
1323Installation directories:
1324  --prefix=PREFIX         install architecture-independent files in PREFIX
1325                          [$ac_default_prefix]
1326  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1327                          [PREFIX]
1328
1329By default, \`make install' will install all the files in
1330\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1331an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1332for instance \`--prefix=\$HOME'.
1333
1334For better control, use the options below.
1335
1336Fine tuning of the installation directories:
1337  --bindir=DIR            user executables [EPREFIX/bin]
1338  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1339  --libexecdir=DIR        program executables [EPREFIX/libexec]
1340  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1341  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1342  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1343  --libdir=DIR            object code libraries [EPREFIX/lib]
1344  --includedir=DIR        C header files [PREFIX/include]
1345  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1346  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1347  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1348  --infodir=DIR           info documentation [DATAROOTDIR/info]
1349  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1350  --mandir=DIR            man documentation [DATAROOTDIR/man]
1351  --docdir=DIR            documentation root @<:@DATAROOTDIR/doc/ircproxy@:>@
1352  --htmldir=DIR           html documentation [DOCDIR]
1353  --dvidir=DIR            dvi documentation [DOCDIR]
1354  --pdfdir=DIR            pdf documentation [DOCDIR]
1355  --psdir=DIR             ps documentation [DOCDIR]
1356_ACEOF
1357
1358  cat <<\_ACEOF
1359_ACEOF
1360fi
1361
1362if test -n "$ac_init_help"; then
1363  case $ac_init_help in
1364     short | recursive ) echo "Configuration of ircproxy 1.3.6:";;
1365   esac
1366  cat <<\_ACEOF
1367
1368Optional Features:
1369  --disable-option-checking  ignore unrecognized --enable/--with options
1370  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1371  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1372  --disable-assert        Disable assertions
1373  --disable-ares          Disable ares, this means trouble!
1374  --disable-ipv6          Disable IPv6 support
1375  --disable-ssl           Disable SSL support
1376  --enable-win32          Enable independent win32 support
1377  --disable-memdebug      Disable memory debugging
1378  --disable-fddebug       Disable file descriptor debugging
1379  --enable-identd         Enable the internal ident daemon
1380  --enable-debug          Enable debugging
1381
1382Optional Packages:
1383  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1384  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1385  --with-openssl          Use openssl
1386  --with-gnutls           Use gnutls
1387
1388Some influential environment variables:
1389  CC          C compiler command
1390  CFLAGS      C compiler flags
1391  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1392              nonstandard directory <lib dir>
1393  LIBS        libraries to pass to the linker, e.g. -l<library>
1394  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1395              you have headers in a nonstandard directory <include dir>
1396  CPP         C preprocessor
1397
1398Use these variables to override the choices made by `configure' or to help
1399it to find libraries and programs with nonstandard names/locations.
1400
1401Report bugs to <jonasia_at_closetothewind_dot_net>.
1402_ACEOF
1403ac_status=$?
1404fi
1405
1406if test "$ac_init_help" = "recursive"; then
1407  # If there are subdirs, report their specific --help.
1408  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1409    test -d "$ac_dir" ||
1410      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1411      continue
1412    ac_builddir=.
1413
1414case "$ac_dir" in
1415.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1416*)
1417  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1418  # A ".." for each directory in $ac_dir_suffix.
1419  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1420  case $ac_top_builddir_sub in
1421  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1422  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1423  esac ;;
1424esac
1425ac_abs_top_builddir=$ac_pwd
1426ac_abs_builddir=$ac_pwd$ac_dir_suffix
1427# for backward compatibility:
1428ac_top_builddir=$ac_top_build_prefix
1429
1430case $srcdir in
1431  .)  # We are building in place.
1432    ac_srcdir=.
1433    ac_top_srcdir=$ac_top_builddir_sub
1434    ac_abs_top_srcdir=$ac_pwd ;;
1435  [\\/]* | ?:[\\/]* )  # Absolute name.
1436    ac_srcdir=$srcdir$ac_dir_suffix;
1437    ac_top_srcdir=$srcdir
1438    ac_abs_top_srcdir=$srcdir ;;
1439  *) # Relative name.
1440    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1441    ac_top_srcdir=$ac_top_build_prefix$srcdir
1442    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1443esac
1444ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1445
1446    cd "$ac_dir" || { ac_status=$?; continue; }
1447    # Check for guested configure.
1448    if test -f "$ac_srcdir/configure.gnu"; then
1449      echo &&
1450      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1451    elif test -f "$ac_srcdir/configure"; then
1452      echo &&
1453      $SHELL "$ac_srcdir/configure" --help=recursive
1454    else
1455      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1456    fi || ac_status=$?
1457    cd "$ac_pwd" || { ac_status=$?; break; }
1458  done
1459fi
1460
1461test -n "$ac_init_help" && exit $ac_status
1462if $ac_init_version; then
1463  cat <<\_ACEOF
1464ircproxy configure 1.3.6
1465generated by GNU Autoconf 2.63
1466
1467Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14682002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1469This configure script is free software; the Free Software Foundation
1470gives unlimited permission to copy, distribute and modify it.
1471_ACEOF
1472  exit
1473fi
1474cat >config.log <<_ACEOF
1475This file contains any messages produced by compilers while
1476running configure, to aid debugging if configure makes a mistake.
1477
1478It was created by ircproxy $as_me 1.3.6, which was
1479generated by GNU Autoconf 2.63.  Invocation command line was
1480
1481  $ $0 $@
1482
1483_ACEOF
1484exec 5>>config.log
1485{
1486cat <<_ASUNAME
1487@%:@@%:@ --------- @%:@@%:@
1488@%:@@%:@ Platform. @%:@@%:@
1489@%:@@%:@ --------- @%:@@%:@
1490
1491hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1492uname -m = `(uname -m) 2>/dev/null || echo unknown`
1493uname -r = `(uname -r) 2>/dev/null || echo unknown`
1494uname -s = `(uname -s) 2>/dev/null || echo unknown`
1495uname -v = `(uname -v) 2>/dev/null || echo unknown`
1496
1497/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1498/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1499
1500/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1501/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1502/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1503/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1504/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1505/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1506/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1507
1508_ASUNAME
1509
1510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1511for as_dir in $PATH
1512do
1513  IFS=$as_save_IFS
1514  test -z "$as_dir" && as_dir=.
1515  $as_echo "PATH: $as_dir"
1516done
1517IFS=$as_save_IFS
1518
1519} >&5
1520
1521cat >&5 <<_ACEOF
1522
1523
1524@%:@@%:@ ----------- @%:@@%:@
1525@%:@@%:@ Core tests. @%:@@%:@
1526@%:@@%:@ ----------- @%:@@%:@
1527
1528_ACEOF
1529
1530
1531# Keep a trace of the command line.
1532# Strip out --no-create and --no-recursion so they do not pile up.
1533# Strip out --silent because we don't want to record it for future runs.
1534# Also quote any args containing shell meta-characters.
1535# Make two passes to allow for proper duplicate-argument suppression.
1536ac_configure_args=
1537ac_configure_args0=
1538ac_configure_args1=
1539ac_must_keep_next=false
1540for ac_pass in 1 2
1541do
1542  for ac_arg
1543  do
1544    case $ac_arg in
1545    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1546    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1547    | -silent | --silent | --silen | --sile | --sil)
1548      continue ;;
1549    *\'*)
1550      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1551    esac
1552    case $ac_pass in
1553    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1554    2)
1555      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1556      if test $ac_must_keep_next = true; then
1557	ac_must_keep_next=false # Got value, back to normal.
1558      else
1559	case $ac_arg in
1560	  *=* | --config-cache | -C | -disable-* | --disable-* \
1561	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1562	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1563	  | -with-* | --with-* | -without-* | --without-* | --x)
1564	    case "$ac_configure_args0 " in
1565	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1566	    esac
1567	    ;;
1568	  -* ) ac_must_keep_next=true ;;
1569	esac
1570      fi
1571      ac_configure_args="$ac_configure_args '$ac_arg'"
1572      ;;
1573    esac
1574  done
1575done
1576$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1577$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1578
1579# When interrupted or exit'd, cleanup temporary files, and complete
1580# config.log.  We remove comments because anyway the quotes in there
1581# would cause problems or look ugly.
1582# WARNING: Use '\'' to represent an apostrophe within the trap.
1583# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1584trap 'exit_status=$?
1585  # Save into config.log some information that might help in debugging.
1586  {
1587    echo
1588
1589    cat <<\_ASBOX
1590@%:@@%:@ ---------------- @%:@@%:@
1591@%:@@%:@ Cache variables. @%:@@%:@
1592@%:@@%:@ ---------------- @%:@@%:@
1593_ASBOX
1594    echo
1595    # The following way of writing the cache mishandles newlines in values,
1596(
1597  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1598    eval ac_val=\$$ac_var
1599    case $ac_val in #(
1600    *${as_nl}*)
1601      case $ac_var in #(
1602      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1603$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1604      esac
1605      case $ac_var in #(
1606      _ | IFS | as_nl) ;; #(
1607      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1608      *) $as_unset $ac_var ;;
1609      esac ;;
1610    esac
1611  done
1612  (set) 2>&1 |
1613    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1614    *${as_nl}ac_space=\ *)
1615      sed -n \
1616	"s/'\''/'\''\\\\'\'''\''/g;
1617	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1618      ;; #(
1619    *)
1620      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1621      ;;
1622    esac |
1623    sort
1624)
1625    echo
1626
1627    cat <<\_ASBOX
1628@%:@@%:@ ----------------- @%:@@%:@
1629@%:@@%:@ Output variables. @%:@@%:@
1630@%:@@%:@ ----------------- @%:@@%:@
1631_ASBOX
1632    echo
1633    for ac_var in $ac_subst_vars
1634    do
1635      eval ac_val=\$$ac_var
1636      case $ac_val in
1637      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1638      esac
1639      $as_echo "$ac_var='\''$ac_val'\''"
1640    done | sort
1641    echo
1642
1643    if test -n "$ac_subst_files"; then
1644      cat <<\_ASBOX
1645@%:@@%:@ ------------------- @%:@@%:@
1646@%:@@%:@ File substitutions. @%:@@%:@
1647@%:@@%:@ ------------------- @%:@@%:@
1648_ASBOX
1649      echo
1650      for ac_var in $ac_subst_files
1651      do
1652	eval ac_val=\$$ac_var
1653	case $ac_val in
1654	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1655	esac
1656	$as_echo "$ac_var='\''$ac_val'\''"
1657      done | sort
1658      echo
1659    fi
1660
1661    if test -s confdefs.h; then
1662      cat <<\_ASBOX
1663@%:@@%:@ ----------- @%:@@%:@
1664@%:@@%:@ confdefs.h. @%:@@%:@
1665@%:@@%:@ ----------- @%:@@%:@
1666_ASBOX
1667      echo
1668      cat confdefs.h
1669      echo
1670    fi
1671    test "$ac_signal" != 0 &&
1672      $as_echo "$as_me: caught signal $ac_signal"
1673    $as_echo "$as_me: exit $exit_status"
1674  } >&5
1675  rm -f core *.core core.conftest.* &&
1676    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1677    exit $exit_status
1678' 0
1679for ac_signal in 1 2 13 15; do
1680  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1681done
1682ac_signal=0
1683
1684# confdefs.h avoids OS command line length limits that DEFS can exceed.
1685rm -f -r conftest* confdefs.h
1686
1687# Predefined preprocessor variables.
1688
1689cat >>confdefs.h <<_ACEOF
1690@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1691_ACEOF
1692
1693
1694cat >>confdefs.h <<_ACEOF
1695@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1696_ACEOF
1697
1698
1699cat >>confdefs.h <<_ACEOF
1700@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1701_ACEOF
1702
1703
1704cat >>confdefs.h <<_ACEOF
1705@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1706_ACEOF
1707
1708
1709cat >>confdefs.h <<_ACEOF
1710@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1711_ACEOF
1712
1713
1714# Let the site file select an alternate cache file if it wants to.
1715# Prefer an explicitly selected file to automatically selected ones.
1716ac_site_file1=NONE
1717ac_site_file2=NONE
1718if test -n "$CONFIG_SITE"; then
1719  ac_site_file1=$CONFIG_SITE
1720elif test "x$prefix" != xNONE; then
1721  ac_site_file1=$prefix/share/config.site
1722  ac_site_file2=$prefix/etc/config.site
1723else
1724  ac_site_file1=$ac_default_prefix/share/config.site
1725  ac_site_file2=$ac_default_prefix/etc/config.site
1726fi
1727for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1728do
1729  test "x$ac_site_file" = xNONE && continue
1730  if test -r "$ac_site_file"; then
1731    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1732$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1733    sed 's/^/| /' "$ac_site_file" >&5
1734    . "$ac_site_file"
1735  fi
1736done
1737
1738if test -r "$cache_file"; then
1739  # Some versions of bash will fail to source /dev/null (special
1740  # files actually), so we avoid doing that.
1741  if test -f "$cache_file"; then
1742    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1743$as_echo "$as_me: loading cache $cache_file" >&6;}
1744    case $cache_file in
1745      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1746      *)                      . "./$cache_file";;
1747    esac
1748  fi
1749else
1750  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1751$as_echo "$as_me: creating cache $cache_file" >&6;}
1752  >$cache_file
1753fi
1754
1755# Check that the precious variables saved in the cache have kept the same
1756# value.
1757ac_cache_corrupted=false
1758for ac_var in $ac_precious_vars; do
1759  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1760  eval ac_new_set=\$ac_env_${ac_var}_set
1761  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1762  eval ac_new_val=\$ac_env_${ac_var}_value
1763  case $ac_old_set,$ac_new_set in
1764    set,)
1765      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1766$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1767      ac_cache_corrupted=: ;;
1768    ,set)
1769      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1770$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1771      ac_cache_corrupted=: ;;
1772    ,);;
1773    *)
1774      if test "x$ac_old_val" != "x$ac_new_val"; then
1775	# differences in whitespace do not lead to failure.
1776	ac_old_val_w=`echo x $ac_old_val`
1777	ac_new_val_w=`echo x $ac_new_val`
1778	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1779	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1780$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1781	  ac_cache_corrupted=:
1782	else
1783	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1784$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1785	  eval $ac_var=\$ac_old_val
1786	fi
1787	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1788$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1789	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1790$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1791      fi;;
1792  esac
1793  # Pass precious variables to config.status.
1794  if test "$ac_new_set" = set; then
1795    case $ac_new_val in
1796    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1797    *) ac_arg=$ac_var=$ac_new_val ;;
1798    esac
1799    case " $ac_configure_args " in
1800      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1801      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1802    esac
1803  fi
1804done
1805if $ac_cache_corrupted; then
1806  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1807$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1808  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1809$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1810  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1811$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1812   { (exit 1); exit 1; }; }
1813fi
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839ac_ext=c
1840ac_cpp='$CPP $CPPFLAGS'
1841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1843ac_compiler_gnu=$ac_cv_c_compiler_gnu
1844
1845
1846
1847echo "*-----------------------------------------------------------------------------"
1848echo "* GNU autoconf script for ircproxy"
1849echo "*-----------------------------------------------------------------------------"
1850
1851
1852ac_aux_dir=
1853for ac_dir in . "$srcdir"/.; do
1854  if test -f "$ac_dir/install-sh"; then
1855    ac_aux_dir=$ac_dir
1856    ac_install_sh="$ac_aux_dir/install-sh -c"
1857    break
1858  elif test -f "$ac_dir/install.sh"; then
1859    ac_aux_dir=$ac_dir
1860    ac_install_sh="$ac_aux_dir/install.sh -c"
1861    break
1862  elif test -f "$ac_dir/shtool"; then
1863    ac_aux_dir=$ac_dir
1864    ac_install_sh="$ac_aux_dir/shtool install -c"
1865    break
1866  fi
1867done
1868if test -z "$ac_aux_dir"; then
1869  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
1870$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
1871   { (exit 1); exit 1; }; }
1872fi
1873
1874# These three variables are undocumented and unsupported,
1875# and are intended to be withdrawn in a future Autoconf release.
1876# They can cause serious problems if a builder's source tree is in a directory
1877# whose full name contains unusual characters.
1878ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1879ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1880ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1881
1882
1883ac_config_headers="$ac_config_headers config.h"
1884
1885
1886@%:@ Check whether --enable-assert was given.
1887if test "${enable_assert+set}" = set; then
1888  enableval=$enable_assert; assert=$enableval
1889else
1890  assert=yes
1891fi
1892
1893if test x$assert = xyes; then
1894
1895cat >>confdefs.h <<\_ACEOF
1896@%:@define USE_ASSERT 1
1897_ACEOF
1898
1899else
1900
1901cat >>confdefs.h <<\_ACEOF
1902@%:@define USE_ASSERT 0
1903_ACEOF
1904
1905fi
1906
1907@%:@ Check whether --enable-ares was given.
1908if test "${enable_ares+set}" = set; then
1909  enableval=$enable_ares; ares_enable=$enableval
1910else
1911  ares_enable=yes
1912fi
1913
1914if test x$ares_enable = xyes; then
1915
1916cat >>confdefs.h <<\_ACEOF
1917@%:@define ARES 1
1918_ACEOF
1919
1920else
1921
1922cat >>confdefs.h <<\_ACEOF
1923@%:@define ARES 0
1924_ACEOF
1925
1926fi
1927
1928@%:@ Check whether --enable-ipv6 was given.
1929if test "${enable_ipv6+set}" = set; then
1930  enableval=$enable_ipv6; ipv6_support=$enableval
1931else
1932  ipv6_support=yes
1933fi
1934
1935if test x$ipv6_support = xyes; then
1936
1937cat >>confdefs.h <<\_ACEOF
1938@%:@define IPV6_SUPPORT 1
1939_ACEOF
1940
1941else
1942
1943cat >>confdefs.h <<\_ACEOF
1944@%:@define IPV6_SUPPORT 0
1945_ACEOF
1946
1947fi
1948
1949@%:@ Check whether --enable-ssl was given.
1950if test "${enable_ssl+set}" = set; then
1951  enableval=$enable_ssl; ssl_support=$enableval
1952else
1953  ssl_support=yes
1954fi
1955
1956if test x$ssl_support = xyes; then
1957
1958cat >>confdefs.h <<\_ACEOF
1959@%:@define SSL_SUPPORT 1
1960_ACEOF
1961
1962else
1963
1964cat >>confdefs.h <<\_ACEOF
1965@%:@define SSL_SUPPORT 0
1966_ACEOF
1967
1968fi
1969
1970@%:@ Check whether --enable-win32 was given.
1971if test "${enable_win32+set}" = set; then
1972  enableval=$enable_win32; win32=$enableval
1973else
1974  win32=no
1975fi
1976
1977if test x$win32 = xyes; then
1978
1979cat >>confdefs.h <<\_ACEOF
1980@%:@define WIN32 1
1981_ACEOF
1982
1983fi
1984
1985@%:@ Check whether --enable-memdebug was given.
1986if test "${enable_memdebug+set}" = set; then
1987  enableval=$enable_memdebug; memdebug=$enableval
1988else
1989  memdebug=yes
1990fi
1991
1992if test x$memdebug = xyes; then
1993
1994cat >>confdefs.h <<\_ACEOF
1995@%:@define MEMDEBUG 1
1996_ACEOF
1997
1998else
1999
2000cat >>confdefs.h <<\_ACEOF
2001@%:@define MEMDEBUG 0
2002_ACEOF
2003
2004fi
2005
2006@%:@ Check whether --enable-fddebug was given.
2007if test "${enable_fddebug+set}" = set; then
2008  enableval=$enable_fddebug; fddebug=$enableval
2009else
2010  fddebug=yes
2011fi
2012
2013if test x$fddebug = xyes; then
2014
2015cat >>confdefs.h <<\_ACEOF
2016@%:@define FDDEBUG 1
2017_ACEOF
2018
2019else
2020
2021cat >>confdefs.h <<\_ACEOF
2022@%:@define FDDEBUG 0
2023_ACEOF
2024
2025fi
2026
2027@%:@ Check whether --enable-identd was given.
2028if test "${enable_identd+set}" = set; then
2029  enableval=$enable_identd; identd=$enableval
2030else
2031  identd=no
2032fi
2033
2034if test x$identd = xyes; then
2035
2036cat >>confdefs.h <<\_ACEOF
2037@%:@define IDENTD 1
2038_ACEOF
2039
2040else
2041
2042cat >>confdefs.h <<\_ACEOF
2043@%:@define IDENTD 0
2044_ACEOF
2045
2046fi
2047
2048@%:@ Check whether --enable-debug was given.
2049if test "${enable_debug+set}" = set; then
2050  enableval=$enable_debug; debug=$enableval
2051else
2052  debug=no
2053fi
2054
2055if test x$debug = xyes; then
2056
2057cat >>confdefs.h <<\_ACEOF
2058@%:@define DEBUG 1
2059_ACEOF
2060
2061else
2062
2063cat >>confdefs.h <<\_ACEOF
2064@%:@define DEBUG 0
2065_ACEOF
2066
2067fi
2068
2069
2070@%:@ Check whether --with-openssl was given.
2071if test "${with_openssl+set}" = set; then
2072  withval=$with_openssl; with_openssl=$withval
2073else
2074  with_openssl=no
2075fi
2076
2077
2078@%:@ Check whether --with-gnutls was given.
2079if test "${with_gnutls+set}" = set; then
2080  withval=$with_gnutls; with_gnutls=$withval
2081else
2082  with_gnutls=no
2083fi
2084
2085
2086if test "x$with_openssl" != "xno" -o "x$with_gnutls" != "xno"; then
2087  ssl_support=yes
2088fi
2089
2090# Checks for programs.
2091
2092ac_ext=c
2093ac_cpp='$CPP $CPPFLAGS'
2094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2096ac_compiler_gnu=$ac_cv_c_compiler_gnu
2097if test -n "$ac_tool_prefix"; then
2098  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2099set dummy ${ac_tool_prefix}gcc; ac_word=$2
2100{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2101$as_echo_n "checking for $ac_word... " >&6; }
2102if test "${ac_cv_prog_CC+set}" = set; then
2103  $as_echo_n "(cached) " >&6
2104else
2105  if test -n "$CC"; then
2106  ac_cv_prog_CC="$CC" # Let the user override the test.
2107else
2108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2109for as_dir in $PATH
2110do
2111  IFS=$as_save_IFS
2112  test -z "$as_dir" && as_dir=.
2113  for ac_exec_ext in '' $ac_executable_extensions; do
2114  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2115    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2116    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2117    break 2
2118  fi
2119done
2120done
2121IFS=$as_save_IFS
2122
2123fi
2124fi
2125CC=$ac_cv_prog_CC
2126if test -n "$CC"; then
2127  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2128$as_echo "$CC" >&6; }
2129else
2130  { $as_echo "$as_me:$LINENO: result: no" >&5
2131$as_echo "no" >&6; }
2132fi
2133
2134
2135fi
2136if test -z "$ac_cv_prog_CC"; then
2137  ac_ct_CC=$CC
2138  # Extract the first word of "gcc", so it can be a program name with args.
2139set dummy gcc; ac_word=$2
2140{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2141$as_echo_n "checking for $ac_word... " >&6; }
2142if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2143  $as_echo_n "(cached) " >&6
2144else
2145  if test -n "$ac_ct_CC"; then
2146  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2147else
2148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149for as_dir in $PATH
2150do
2151  IFS=$as_save_IFS
2152  test -z "$as_dir" && as_dir=.
2153  for ac_exec_ext in '' $ac_executable_extensions; do
2154  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2155    ac_cv_prog_ac_ct_CC="gcc"
2156    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2157    break 2
2158  fi
2159done
2160done
2161IFS=$as_save_IFS
2162
2163fi
2164fi
2165ac_ct_CC=$ac_cv_prog_ac_ct_CC
2166if test -n "$ac_ct_CC"; then
2167  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2168$as_echo "$ac_ct_CC" >&6; }
2169else
2170  { $as_echo "$as_me:$LINENO: result: no" >&5
2171$as_echo "no" >&6; }
2172fi
2173
2174  if test "x$ac_ct_CC" = x; then
2175    CC=""
2176  else
2177    case $cross_compiling:$ac_tool_warned in
2178yes:)
2179{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2180$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2181ac_tool_warned=yes ;;
2182esac
2183    CC=$ac_ct_CC
2184  fi
2185else
2186  CC="$ac_cv_prog_CC"
2187fi
2188
2189if test -z "$CC"; then
2190          if test -n "$ac_tool_prefix"; then
2191    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2192set dummy ${ac_tool_prefix}cc; ac_word=$2
2193{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2194$as_echo_n "checking for $ac_word... " >&6; }
2195if test "${ac_cv_prog_CC+set}" = set; then
2196  $as_echo_n "(cached) " >&6
2197else
2198  if test -n "$CC"; then
2199  ac_cv_prog_CC="$CC" # Let the user override the test.
2200else
2201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2202for as_dir in $PATH
2203do
2204  IFS=$as_save_IFS
2205  test -z "$as_dir" && as_dir=.
2206  for ac_exec_ext in '' $ac_executable_extensions; do
2207  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2208    ac_cv_prog_CC="${ac_tool_prefix}cc"
2209    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2210    break 2
2211  fi
2212done
2213done
2214IFS=$as_save_IFS
2215
2216fi
2217fi
2218CC=$ac_cv_prog_CC
2219if test -n "$CC"; then
2220  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2221$as_echo "$CC" >&6; }
2222else
2223  { $as_echo "$as_me:$LINENO: result: no" >&5
2224$as_echo "no" >&6; }
2225fi
2226
2227
2228  fi
2229fi
2230if test -z "$CC"; then
2231  # Extract the first word of "cc", so it can be a program name with args.
2232set dummy cc; ac_word=$2
2233{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2234$as_echo_n "checking for $ac_word... " >&6; }
2235if test "${ac_cv_prog_CC+set}" = set; then
2236  $as_echo_n "(cached) " >&6
2237else
2238  if test -n "$CC"; then
2239  ac_cv_prog_CC="$CC" # Let the user override the test.
2240else
2241  ac_prog_rejected=no
2242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243for as_dir in $PATH
2244do
2245  IFS=$as_save_IFS
2246  test -z "$as_dir" && as_dir=.
2247  for ac_exec_ext in '' $ac_executable_extensions; do
2248  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2249    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2250       ac_prog_rejected=yes
2251       continue
2252     fi
2253    ac_cv_prog_CC="cc"
2254    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2255    break 2
2256  fi
2257done
2258done
2259IFS=$as_save_IFS
2260
2261if test $ac_prog_rejected = yes; then
2262  # We found a bogon in the path, so make sure we never use it.
2263  set dummy $ac_cv_prog_CC
2264  shift
2265  if test $@%:@ != 0; then
2266    # We chose a different compiler from the bogus one.
2267    # However, it has the same basename, so the bogon will be chosen
2268    # first if we set CC to just the basename; use the full file name.
2269    shift
2270    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2271  fi
2272fi
2273fi
2274fi
2275CC=$ac_cv_prog_CC
2276if test -n "$CC"; then
2277  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2278$as_echo "$CC" >&6; }
2279else
2280  { $as_echo "$as_me:$LINENO: result: no" >&5
2281$as_echo "no" >&6; }
2282fi
2283
2284
2285fi
2286if test -z "$CC"; then
2287  if test -n "$ac_tool_prefix"; then
2288  for ac_prog in cl.exe
2289  do
2290    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2291set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2292{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2293$as_echo_n "checking for $ac_word... " >&6; }
2294if test "${ac_cv_prog_CC+set}" = set; then
2295  $as_echo_n "(cached) " >&6
2296else
2297  if test -n "$CC"; then
2298  ac_cv_prog_CC="$CC" # Let the user override the test.
2299else
2300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301for as_dir in $PATH
2302do
2303  IFS=$as_save_IFS
2304  test -z "$as_dir" && as_dir=.
2305  for ac_exec_ext in '' $ac_executable_extensions; do
2306  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2307    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2308    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309    break 2
2310  fi
2311done
2312done
2313IFS=$as_save_IFS
2314
2315fi
2316fi
2317CC=$ac_cv_prog_CC
2318if test -n "$CC"; then
2319  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2320$as_echo "$CC" >&6; }
2321else
2322  { $as_echo "$as_me:$LINENO: result: no" >&5
2323$as_echo "no" >&6; }
2324fi
2325
2326
2327    test -n "$CC" && break
2328  done
2329fi
2330if test -z "$CC"; then
2331  ac_ct_CC=$CC
2332  for ac_prog in cl.exe
2333do
2334  # Extract the first word of "$ac_prog", so it can be a program name with args.
2335set dummy $ac_prog; ac_word=$2
2336{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2337$as_echo_n "checking for $ac_word... " >&6; }
2338if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2339  $as_echo_n "(cached) " >&6
2340else
2341  if test -n "$ac_ct_CC"; then
2342  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2343else
2344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345for as_dir in $PATH
2346do
2347  IFS=$as_save_IFS
2348  test -z "$as_dir" && as_dir=.
2349  for ac_exec_ext in '' $ac_executable_extensions; do
2350  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2351    ac_cv_prog_ac_ct_CC="$ac_prog"
2352    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2353    break 2
2354  fi
2355done
2356done
2357IFS=$as_save_IFS
2358
2359fi
2360fi
2361ac_ct_CC=$ac_cv_prog_ac_ct_CC
2362if test -n "$ac_ct_CC"; then
2363  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2364$as_echo "$ac_ct_CC" >&6; }
2365else
2366  { $as_echo "$as_me:$LINENO: result: no" >&5
2367$as_echo "no" >&6; }
2368fi
2369
2370
2371  test -n "$ac_ct_CC" && break
2372done
2373
2374  if test "x$ac_ct_CC" = x; then
2375    CC=""
2376  else
2377    case $cross_compiling:$ac_tool_warned in
2378yes:)
2379{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2380$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2381ac_tool_warned=yes ;;
2382esac
2383    CC=$ac_ct_CC
2384  fi
2385fi
2386
2387fi
2388
2389
2390test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2392{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2393See \`config.log' for more details." >&5
2394$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2395See \`config.log' for more details." >&2;}
2396   { (exit 1); exit 1; }; }; }
2397
2398# Provide some information about the compiler.
2399$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2400set X $ac_compile
2401ac_compiler=$2
2402{ (ac_try="$ac_compiler --version >&5"
2403case "(($ac_try" in
2404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2405  *) ac_try_echo=$ac_try;;
2406esac
2407eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2408$as_echo "$ac_try_echo") >&5
2409  (eval "$ac_compiler --version >&5") 2>&5
2410  ac_status=$?
2411  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412  (exit $ac_status); }
2413{ (ac_try="$ac_compiler -v >&5"
2414case "(($ac_try" in
2415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416  *) ac_try_echo=$ac_try;;
2417esac
2418eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2419$as_echo "$ac_try_echo") >&5
2420  (eval "$ac_compiler -v >&5") 2>&5
2421  ac_status=$?
2422  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423  (exit $ac_status); }
2424{ (ac_try="$ac_compiler -V >&5"
2425case "(($ac_try" in
2426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2427  *) ac_try_echo=$ac_try;;
2428esac
2429eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2430$as_echo "$ac_try_echo") >&5
2431  (eval "$ac_compiler -V >&5") 2>&5
2432  ac_status=$?
2433  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434  (exit $ac_status); }
2435
2436cat >conftest.$ac_ext <<_ACEOF
2437/* confdefs.h.  */
2438_ACEOF
2439cat confdefs.h >>conftest.$ac_ext
2440cat >>conftest.$ac_ext <<_ACEOF
2441/* end confdefs.h.  */
2442
2443int
2444main ()
2445{
2446
2447  ;
2448  return 0;
2449}
2450_ACEOF
2451ac_clean_files_save=$ac_clean_files
2452ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2453# Try to create an executable without -o first, disregard a.out.
2454# It will help us diagnose broken compilers, and finding out an intuition
2455# of exeext.
2456{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2457$as_echo_n "checking for C compiler default output file name... " >&6; }
2458ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2459
2460# The possible output files:
2461ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2462
2463ac_rmfiles=
2464for ac_file in $ac_files
2465do
2466  case $ac_file in
2467    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2468    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2469  esac
2470done
2471rm -f $ac_rmfiles
2472
2473if { (ac_try="$ac_link_default"
2474case "(($ac_try" in
2475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2476  *) ac_try_echo=$ac_try;;
2477esac
2478eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2479$as_echo "$ac_try_echo") >&5
2480  (eval "$ac_link_default") 2>&5
2481  ac_status=$?
2482  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483  (exit $ac_status); }; then
2484  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2485# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2486# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2487# so that the user can short-circuit this test for compilers unknown to
2488# Autoconf.
2489for ac_file in $ac_files ''
2490do
2491  test -f "$ac_file" || continue
2492  case $ac_file in
2493    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2494	;;
2495    [ab].out )
2496	# We found the default executable, but exeext='' is most
2497	# certainly right.
2498	break;;
2499    *.* )
2500        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2501	then :; else
2502	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2503	fi
2504	# We set ac_cv_exeext here because the later test for it is not
2505	# safe: cross compilers may not add the suffix if given an `-o'
2506	# argument, so we may need to know it at that point already.
2507	# Even if this section looks crufty: it has the advantage of
2508	# actually working.
2509	break;;
2510    * )
2511	break;;
2512  esac
2513done
2514test "$ac_cv_exeext" = no && ac_cv_exeext=
2515
2516else
2517  ac_file=''
2518fi
2519
2520{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2521$as_echo "$ac_file" >&6; }
2522if test -z "$ac_file"; then
2523  $as_echo "$as_me: failed program was:" >&5
2524sed 's/^/| /' conftest.$ac_ext >&5
2525
2526{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2527$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2528{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2529See \`config.log' for more details." >&5
2530$as_echo "$as_me: error: C compiler cannot create executables
2531See \`config.log' for more details." >&2;}
2532   { (exit 77); exit 77; }; }; }
2533fi
2534
2535ac_exeext=$ac_cv_exeext
2536
2537# Check that the compiler produces executables we can run.  If not, either
2538# the compiler is broken, or we cross compile.
2539{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2540$as_echo_n "checking whether the C compiler works... " >&6; }
2541# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2542# If not cross compiling, check that we can run a simple program.
2543if test "$cross_compiling" != yes; then
2544  if { ac_try='./$ac_file'
2545  { (case "(($ac_try" in
2546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2547  *) ac_try_echo=$ac_try;;
2548esac
2549eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2550$as_echo "$ac_try_echo") >&5
2551  (eval "$ac_try") 2>&5
2552  ac_status=$?
2553  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554  (exit $ac_status); }; }; then
2555    cross_compiling=no
2556  else
2557    if test "$cross_compiling" = maybe; then
2558	cross_compiling=yes
2559    else
2560	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2561$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2562{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2563If you meant to cross compile, use \`--host'.
2564See \`config.log' for more details." >&5
2565$as_echo "$as_me: error: cannot run C compiled programs.
2566If you meant to cross compile, use \`--host'.
2567See \`config.log' for more details." >&2;}
2568   { (exit 1); exit 1; }; }; }
2569    fi
2570  fi
2571fi
2572{ $as_echo "$as_me:$LINENO: result: yes" >&5
2573$as_echo "yes" >&6; }
2574
2575rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2576ac_clean_files=$ac_clean_files_save
2577# Check that the compiler produces executables we can run.  If not, either
2578# the compiler is broken, or we cross compile.
2579{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2580$as_echo_n "checking whether we are cross compiling... " >&6; }
2581{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2582$as_echo "$cross_compiling" >&6; }
2583
2584{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2585$as_echo_n "checking for suffix of executables... " >&6; }
2586if { (ac_try="$ac_link"
2587case "(($ac_try" in
2588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589  *) ac_try_echo=$ac_try;;
2590esac
2591eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2592$as_echo "$ac_try_echo") >&5
2593  (eval "$ac_link") 2>&5
2594  ac_status=$?
2595  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596  (exit $ac_status); }; then
2597  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2598# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2599# work properly (i.e., refer to `conftest.exe'), while it won't with
2600# `rm'.
2601for ac_file in conftest.exe conftest conftest.*; do
2602  test -f "$ac_file" || continue
2603  case $ac_file in
2604    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2605    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2606	  break;;
2607    * ) break;;
2608  esac
2609done
2610else
2611  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2612$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2613{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2614See \`config.log' for more details." >&5
2615$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2616See \`config.log' for more details." >&2;}
2617   { (exit 1); exit 1; }; }; }
2618fi
2619
2620rm -f conftest$ac_cv_exeext
2621{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2622$as_echo "$ac_cv_exeext" >&6; }
2623
2624rm -f conftest.$ac_ext
2625EXEEXT=$ac_cv_exeext
2626ac_exeext=$EXEEXT
2627{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2628$as_echo_n "checking for suffix of object files... " >&6; }
2629if test "${ac_cv_objext+set}" = set; then
2630  $as_echo_n "(cached) " >&6
2631else
2632  cat >conftest.$ac_ext <<_ACEOF
2633/* confdefs.h.  */
2634_ACEOF
2635cat confdefs.h >>conftest.$ac_ext
2636cat >>conftest.$ac_ext <<_ACEOF
2637/* end confdefs.h.  */
2638
2639int
2640main ()
2641{
2642
2643  ;
2644  return 0;
2645}
2646_ACEOF
2647rm -f conftest.o conftest.obj
2648if { (ac_try="$ac_compile"
2649case "(($ac_try" in
2650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2651  *) ac_try_echo=$ac_try;;
2652esac
2653eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2654$as_echo "$ac_try_echo") >&5
2655  (eval "$ac_compile") 2>&5
2656  ac_status=$?
2657  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658  (exit $ac_status); }; then
2659  for ac_file in conftest.o conftest.obj conftest.*; do
2660  test -f "$ac_file" || continue;
2661  case $ac_file in
2662    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2663    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2664       break;;
2665  esac
2666done
2667else
2668  $as_echo "$as_me: failed program was:" >&5
2669sed 's/^/| /' conftest.$ac_ext >&5
2670
2671{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2672$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2673{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2674See \`config.log' for more details." >&5
2675$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2676See \`config.log' for more details." >&2;}
2677   { (exit 1); exit 1; }; }; }
2678fi
2679
2680rm -f conftest.$ac_cv_objext conftest.$ac_ext
2681fi
2682{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2683$as_echo "$ac_cv_objext" >&6; }
2684OBJEXT=$ac_cv_objext
2685ac_objext=$OBJEXT
2686{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2687$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2688if test "${ac_cv_c_compiler_gnu+set}" = set; then
2689  $as_echo_n "(cached) " >&6
2690else
2691  cat >conftest.$ac_ext <<_ACEOF
2692/* confdefs.h.  */
2693_ACEOF
2694cat confdefs.h >>conftest.$ac_ext
2695cat >>conftest.$ac_ext <<_ACEOF
2696/* end confdefs.h.  */
2697
2698int
2699main ()
2700{
2701#ifndef __GNUC__
2702       choke me
2703#endif
2704
2705  ;
2706  return 0;
2707}
2708_ACEOF
2709rm -f conftest.$ac_objext
2710if { (ac_try="$ac_compile"
2711case "(($ac_try" in
2712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713  *) ac_try_echo=$ac_try;;
2714esac
2715eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2716$as_echo "$ac_try_echo") >&5
2717  (eval "$ac_compile") 2>conftest.er1
2718  ac_status=$?
2719  grep -v '^ *+' conftest.er1 >conftest.err
2720  rm -f conftest.er1
2721  cat conftest.err >&5
2722  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723  (exit $ac_status); } && {
2724	 test -z "$ac_c_werror_flag" ||
2725	 test ! -s conftest.err
2726       } && test -s conftest.$ac_objext; then
2727  ac_compiler_gnu=yes
2728else
2729  $as_echo "$as_me: failed program was:" >&5
2730sed 's/^/| /' conftest.$ac_ext >&5
2731
2732	ac_compiler_gnu=no
2733fi
2734
2735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2736ac_cv_c_compiler_gnu=$ac_compiler_gnu
2737
2738fi
2739{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2740$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2741if test $ac_compiler_gnu = yes; then
2742  GCC=yes
2743else
2744  GCC=
2745fi
2746ac_test_CFLAGS=${CFLAGS+set}
2747ac_save_CFLAGS=$CFLAGS
2748{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2749$as_echo_n "checking whether $CC accepts -g... " >&6; }
2750if test "${ac_cv_prog_cc_g+set}" = set; then
2751  $as_echo_n "(cached) " >&6
2752else
2753  ac_save_c_werror_flag=$ac_c_werror_flag
2754   ac_c_werror_flag=yes
2755   ac_cv_prog_cc_g=no
2756   CFLAGS="-g"
2757   cat >conftest.$ac_ext <<_ACEOF
2758/* confdefs.h.  */
2759_ACEOF
2760cat confdefs.h >>conftest.$ac_ext
2761cat >>conftest.$ac_ext <<_ACEOF
2762/* end confdefs.h.  */
2763
2764int
2765main ()
2766{
2767
2768  ;
2769  return 0;
2770}
2771_ACEOF
2772rm -f conftest.$ac_objext
2773if { (ac_try="$ac_compile"
2774case "(($ac_try" in
2775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776  *) ac_try_echo=$ac_try;;
2777esac
2778eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2779$as_echo "$ac_try_echo") >&5
2780  (eval "$ac_compile") 2>conftest.er1
2781  ac_status=$?
2782  grep -v '^ *+' conftest.er1 >conftest.err
2783  rm -f conftest.er1
2784  cat conftest.err >&5
2785  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786  (exit $ac_status); } && {
2787	 test -z "$ac_c_werror_flag" ||
2788	 test ! -s conftest.err
2789       } && test -s conftest.$ac_objext; then
2790  ac_cv_prog_cc_g=yes
2791else
2792  $as_echo "$as_me: failed program was:" >&5
2793sed 's/^/| /' conftest.$ac_ext >&5
2794
2795	CFLAGS=""
2796      cat >conftest.$ac_ext <<_ACEOF
2797/* confdefs.h.  */
2798_ACEOF
2799cat confdefs.h >>conftest.$ac_ext
2800cat >>conftest.$ac_ext <<_ACEOF
2801/* end confdefs.h.  */
2802
2803int
2804main ()
2805{
2806
2807  ;
2808  return 0;
2809}
2810_ACEOF
2811rm -f conftest.$ac_objext
2812if { (ac_try="$ac_compile"
2813case "(($ac_try" in
2814  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815  *) ac_try_echo=$ac_try;;
2816esac
2817eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2818$as_echo "$ac_try_echo") >&5
2819  (eval "$ac_compile") 2>conftest.er1
2820  ac_status=$?
2821  grep -v '^ *+' conftest.er1 >conftest.err
2822  rm -f conftest.er1
2823  cat conftest.err >&5
2824  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825  (exit $ac_status); } && {
2826	 test -z "$ac_c_werror_flag" ||
2827	 test ! -s conftest.err
2828       } && test -s conftest.$ac_objext; then
2829  :
2830else
2831  $as_echo "$as_me: failed program was:" >&5
2832sed 's/^/| /' conftest.$ac_ext >&5
2833
2834	ac_c_werror_flag=$ac_save_c_werror_flag
2835	 CFLAGS="-g"
2836	 cat >conftest.$ac_ext <<_ACEOF
2837/* confdefs.h.  */
2838_ACEOF
2839cat confdefs.h >>conftest.$ac_ext
2840cat >>conftest.$ac_ext <<_ACEOF
2841/* end confdefs.h.  */
2842
2843int
2844main ()
2845{
2846
2847  ;
2848  return 0;
2849}
2850_ACEOF
2851rm -f conftest.$ac_objext
2852if { (ac_try="$ac_compile"
2853case "(($ac_try" in
2854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2855  *) ac_try_echo=$ac_try;;
2856esac
2857eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2858$as_echo "$ac_try_echo") >&5
2859  (eval "$ac_compile") 2>conftest.er1
2860  ac_status=$?
2861  grep -v '^ *+' conftest.er1 >conftest.err
2862  rm -f conftest.er1
2863  cat conftest.err >&5
2864  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865  (exit $ac_status); } && {
2866	 test -z "$ac_c_werror_flag" ||
2867	 test ! -s conftest.err
2868       } && test -s conftest.$ac_objext; then
2869  ac_cv_prog_cc_g=yes
2870else
2871  $as_echo "$as_me: failed program was:" >&5
2872sed 's/^/| /' conftest.$ac_ext >&5
2873
2874
2875fi
2876
2877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2878fi
2879
2880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2881fi
2882
2883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2884   ac_c_werror_flag=$ac_save_c_werror_flag
2885fi
2886{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2887$as_echo "$ac_cv_prog_cc_g" >&6; }
2888if test "$ac_test_CFLAGS" = set; then
2889  CFLAGS=$ac_save_CFLAGS
2890elif test $ac_cv_prog_cc_g = yes; then
2891  if test "$GCC" = yes; then
2892    CFLAGS="-g -O2"
2893  else
2894    CFLAGS="-g"
2895  fi
2896else
2897  if test "$GCC" = yes; then
2898    CFLAGS="-O2"
2899  else
2900    CFLAGS=
2901  fi
2902fi
2903{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2904$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2905if test "${ac_cv_prog_cc_c89+set}" = set; then
2906  $as_echo_n "(cached) " >&6
2907else
2908  ac_cv_prog_cc_c89=no
2909ac_save_CC=$CC
2910cat >conftest.$ac_ext <<_ACEOF
2911/* confdefs.h.  */
2912_ACEOF
2913cat confdefs.h >>conftest.$ac_ext
2914cat >>conftest.$ac_ext <<_ACEOF
2915/* end confdefs.h.  */
2916#include <stdarg.h>
2917#include <stdio.h>
2918#include <sys/types.h>
2919#include <sys/stat.h>
2920/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2921struct buf { int x; };
2922FILE * (*rcsopen) (struct buf *, struct stat *, int);
2923static char *e (p, i)
2924     char **p;
2925     int i;
2926{
2927  return p[i];
2928}
2929static char *f (char * (*g) (char **, int), char **p, ...)
2930{
2931  char *s;
2932  va_list v;
2933  va_start (v,p);
2934  s = g (p, va_arg (v,int));
2935  va_end (v);
2936  return s;
2937}
2938
2939/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2940   function prototypes and stuff, but not '\xHH' hex character constants.
2941   These don't provoke an error unfortunately, instead are silently treated
2942   as 'x'.  The following induces an error, until -std is added to get
2943   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2944   array size at least.  It's necessary to write '\x00'==0 to get something
2945   that's true only with -std.  */
2946int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2947
2948/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2949   inside strings and character constants.  */
2950#define FOO(x) 'x'
2951int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2952
2953int test (int i, double x);
2954struct s1 {int (*f) (int a);};
2955struct s2 {int (*f) (double a);};
2956int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2957int argc;
2958char **argv;
2959int
2960main ()
2961{
2962return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2963  ;
2964  return 0;
2965}
2966_ACEOF
2967for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2968	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2969do
2970  CC="$ac_save_CC $ac_arg"
2971  rm -f conftest.$ac_objext
2972if { (ac_try="$ac_compile"
2973case "(($ac_try" in
2974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975  *) ac_try_echo=$ac_try;;
2976esac
2977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2978$as_echo "$ac_try_echo") >&5
2979  (eval "$ac_compile") 2>conftest.er1
2980  ac_status=$?
2981  grep -v '^ *+' conftest.er1 >conftest.err
2982  rm -f conftest.er1
2983  cat conftest.err >&5
2984  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985  (exit $ac_status); } && {
2986	 test -z "$ac_c_werror_flag" ||
2987	 test ! -s conftest.err
2988       } && test -s conftest.$ac_objext; then
2989  ac_cv_prog_cc_c89=$ac_arg
2990else
2991  $as_echo "$as_me: failed program was:" >&5
2992sed 's/^/| /' conftest.$ac_ext >&5
2993
2994
2995fi
2996
2997rm -f core conftest.err conftest.$ac_objext
2998  test "x$ac_cv_prog_cc_c89" != "xno" && break
2999done
3000rm -f conftest.$ac_ext
3001CC=$ac_save_CC
3002
3003fi
3004# AC_CACHE_VAL
3005case "x$ac_cv_prog_cc_c89" in
3006  x)
3007    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3008$as_echo "none needed" >&6; } ;;
3009  xno)
3010    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3011$as_echo "unsupported" >&6; } ;;
3012  *)
3013    CC="$CC $ac_cv_prog_cc_c89"
3014    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3015$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3016esac
3017
3018
3019ac_ext=c
3020ac_cpp='$CPP $CPPFLAGS'
3021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3023ac_compiler_gnu=$ac_cv_c_compiler_gnu
3024
3025{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3026$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3027set x ${MAKE-make}
3028ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3029if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3030  $as_echo_n "(cached) " >&6
3031else
3032  cat >conftest.make <<\_ACEOF
3033SHELL = /bin/sh
3034all:
3035	@echo '@@@%%%=$(MAKE)=@@@%%%'
3036_ACEOF
3037# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3038case `${MAKE-make} -f conftest.make 2>/dev/null` in
3039  *@@@%%%=?*=@@@%%%*)
3040    eval ac_cv_prog_make_${ac_make}_set=yes;;
3041  *)
3042    eval ac_cv_prog_make_${ac_make}_set=no;;
3043esac
3044rm -f conftest.make
3045fi
3046if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3047  { $as_echo "$as_me:$LINENO: result: yes" >&5
3048$as_echo "yes" >&6; }
3049  SET_MAKE=
3050else
3051  { $as_echo "$as_me:$LINENO: result: no" >&5
3052$as_echo "no" >&6; }
3053  SET_MAKE="MAKE=${MAKE-make}"
3054fi
3055
3056# Find a good install program.  We prefer a C program (faster),
3057# so one script is as good as another.  But avoid the broken or
3058# incompatible versions:
3059# SysV /etc/install, /usr/sbin/install
3060# SunOS /usr/etc/install
3061# IRIX /sbin/install
3062# AIX /bin/install
3063# AmigaOS /C/install, which installs bootblocks on floppy discs
3064# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3065# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3066# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3067# OS/2's system install, which has a completely different semantic
3068# ./install, which can be erroneously created by make from ./install.sh.
3069# Reject install programs that cannot install multiple files.
3070{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3071$as_echo_n "checking for a BSD-compatible install... " >&6; }
3072if test -z "$INSTALL"; then
3073if test "${ac_cv_path_install+set}" = set; then
3074  $as_echo_n "(cached) " >&6
3075else
3076  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077for as_dir in $PATH
3078do
3079  IFS=$as_save_IFS
3080  test -z "$as_dir" && as_dir=.
3081  # Account for people who put trailing slashes in PATH elements.
3082case $as_dir/ in
3083  ./ | .// | /cC/* | \
3084  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3085  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3086  /usr/ucb/* ) ;;
3087  *)
3088    # OSF1 and SCO ODT 3.0 have their own names for install.
3089    # Don't use installbsd from OSF since it installs stuff as root
3090    # by default.
3091    for ac_prog in ginstall scoinst install; do
3092      for ac_exec_ext in '' $ac_executable_extensions; do
3093	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3094	  if test $ac_prog = install &&
3095	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3096	    # AIX install.  It has an incompatible calling convention.
3097	    :
3098	  elif test $ac_prog = install &&
3099	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3100	    # program-specific install script used by HP pwplus--don't use.
3101	    :
3102	  else
3103	    rm -rf conftest.one conftest.two conftest.dir
3104	    echo one > conftest.one
3105	    echo two > conftest.two
3106	    mkdir conftest.dir
3107	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3108	      test -s conftest.one && test -s conftest.two &&
3109	      test -s conftest.dir/conftest.one &&
3110	      test -s conftest.dir/conftest.two
3111	    then
3112	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3113	      break 3
3114	    fi
3115	  fi
3116	fi
3117      done
3118    done
3119    ;;
3120esac
3121
3122done
3123IFS=$as_save_IFS
3124
3125rm -rf conftest.one conftest.two conftest.dir
3126
3127fi
3128  if test "${ac_cv_path_install+set}" = set; then
3129    INSTALL=$ac_cv_path_install
3130  else
3131    # As a last resort, use the slow shell script.  Don't cache a
3132    # value for INSTALL within a source directory, because that will
3133    # break other packages using the cache if that directory is
3134    # removed, or if the value is a relative name.
3135    INSTALL=$ac_install_sh
3136  fi
3137fi
3138{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3139$as_echo "$INSTALL" >&6; }
3140
3141# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3142# It thinks the first close brace ends the variable substitution.
3143test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3144
3145test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3146
3147test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3148
3149{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3150$as_echo_n "checking whether ln -s works... " >&6; }
3151LN_S=$as_ln_s
3152if test "$LN_S" = "ln -s"; then
3153  { $as_echo "$as_me:$LINENO: result: yes" >&5
3154$as_echo "yes" >&6; }
3155else
3156  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3157$as_echo "no, using $LN_S" >&6; }
3158fi
3159
3160
3161# Check for basic commands
3162
3163# Extract the first word of "sh", so it can be a program name with args.
3164set dummy sh; ac_word=$2
3165{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3166$as_echo_n "checking for $ac_word... " >&6; }
3167if test "${ac_cv_path_SH+set}" = set; then
3168  $as_echo_n "(cached) " >&6
3169else
3170  case $SH in
3171  [\\/]* | ?:[\\/]*)
3172  ac_cv_path_SH="$SH" # Let the user override the test with a path.
3173  ;;
3174  *)
3175  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176as_dummy="$PATH:/bin:/sbin:/usr/bin:/usr/sbin"
3177for as_dir in $as_dummy
3178do
3179  IFS=$as_save_IFS
3180  test -z "$as_dir" && as_dir=.
3181  for ac_exec_ext in '' $ac_executable_extensions; do
3182  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3183    ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
3184    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3185    break 2
3186  fi
3187done
3188done
3189IFS=$as_save_IFS
3190
3191  ;;
3192esac
3193fi
3194SH=$ac_cv_path_SH
3195if test -n "$SH"; then
3196  { $as_echo "$as_me:$LINENO: result: $SH" >&5
3197$as_echo "$SH" >&6; }
3198else
3199  { $as_echo "$as_me:$LINENO: result: no" >&5
3200$as_echo "no" >&6; }
3201fi
3202
3203
3204# Extract the first word of "echo", so it can be a program name with args.
3205set dummy echo; ac_word=$2
3206{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3207$as_echo_n "checking for $ac_word... " >&6; }
3208if test "${ac_cv_path_ECHO+set}" = set; then
3209  $as_echo_n "(cached) " >&6
3210else
3211  case $ECHO in
3212  [\\/]* | ?:[\\/]*)
3213  ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3214  ;;
3215  *)
3216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217as_dummy="$PATH:/bin:/sbin:/usr/bin:/usr/sbin"
3218for as_dir in $as_dummy
3219do
3220  IFS=$as_save_IFS
3221  test -z "$as_dir" && as_dir=.
3222  for ac_exec_ext in '' $ac_executable_extensions; do
3223  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3224    ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3225    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3226    break 2
3227  fi
3228done
3229done
3230IFS=$as_save_IFS
3231
3232  ;;
3233esac
3234fi
3235ECHO=$ac_cv_path_ECHO
3236if test -n "$ECHO"; then
3237  { $as_echo "$as_me:$LINENO: result: $ECHO" >&5
3238$as_echo "$ECHO" >&6; }
3239else
3240  { $as_echo "$as_me:$LINENO: result: no" >&5
3241$as_echo "no" >&6; }
3242fi
3243
3244
3245
3246# Extract the first word of "ls", so it can be a program name with args.
3247set dummy ls; ac_word=$2
3248{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3249$as_echo_n "checking for $ac_word... " >&6; }
3250if test "${ac_cv_path_LS+set}" = set; then
3251  $as_echo_n "(cached) " >&6
3252else
3253  case $LS in
3254  [\\/]* | ?:[\\/]*)
3255  ac_cv_path_LS="$LS" # Let the user override the test with a path.
3256  ;;
3257  *)
3258  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3259as_dummy="$PATH:/bin:/sbin:/usr/bin:/usr/sbin"
3260for as_dir in $as_dummy
3261do
3262  IFS=$as_save_IFS
3263  test -z "$as_dir" && as_dir=.
3264  for ac_exec_ext in '' $ac_executable_extensions; do
3265  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3266    ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
3267    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3268    break 2
3269  fi
3270done
3271done
3272IFS=$as_save_IFS
3273
3274  ;;
3275esac
3276fi
3277LS=$ac_cv_path_LS
3278if test -n "$LS"; then
3279  { $as_echo "$as_me:$LINENO: result: $LS" >&5
3280$as_echo "$LS" >&6; }
3281else
3282  { $as_echo "$as_me:$LINENO: result: no" >&5
3283$as_echo "no" >&6; }
3284fi
3285
3286
3287# Extract the first word of "file", so it can be a program name with args.
3288set dummy file; ac_word=$2
3289{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3290$as_echo_n "checking for $ac_word... " >&6; }
3291if test "${ac_cv_path_FILE+set}" = set; then
3292  $as_echo_n "(cached) " >&6
3293else
3294  case $FILE in
3295  [\\/]* | ?:[\\/]*)
3296  ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
3297  ;;
3298  *)
3299  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300as_dummy="$PATH:/bin:/sbin:/usr/bin:/usr/sbin"
3301for as_dir in $as_dummy
3302do
3303  IFS=$as_save_IFS
3304  test -z "$as_dir" && as_dir=.
3305  for ac_exec_ext in '' $ac_executable_extensions; do
3306  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3307    ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
3308    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3309    break 2
3310  fi
3311done
3312done
3313IFS=$as_save_IFS
3314
3315  ;;
3316esac
3317fi
3318FILE=$ac_cv_path_FILE
3319if test -n "$FILE"; then
3320  { $as_echo "$as_me:$LINENO: result: $FILE" >&5
3321$as_echo "$FILE" >&6; }
3322else
3323  { $as_echo "$as_me:$LINENO: result: no" >&5
3324$as_echo "no" >&6; }
3325fi
3326
3327
3328# Extract the first word of "touch", so it can be a program name with args.
3329set dummy touch; ac_word=$2
3330{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3331$as_echo_n "checking for $ac_word... " >&6; }
3332if test "${ac_cv_path_TOUCH+set}" = set; then
3333  $as_echo_n "(cached) " >&6
3334else
3335  case $TOUCH in
3336  [\\/]* | ?:[\\/]*)
3337  ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
3338  ;;
3339  *)
3340  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341as_dummy="$PATH:/bin:/sbin:/usr/bin:/usr/sbin"
3342for as_dir in $as_dummy
3343do
3344  IFS=$as_save_IFS
3345  test -z "$as_dir" && as_dir=.
3346  for ac_exec_ext in '' $ac_executable_extensions; do
3347  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3348    ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
3349    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3350    break 2
3351  fi
3352done
3353done
3354IFS=$as_save_IFS
3355
3356  ;;
3357esac
3358fi
3359TOUCH=$ac_cv_path_TOUCH
3360if test -n "$TOUCH"; then
3361  { $as_echo "$as_me:$LINENO: result: $TOUCH" >&5
3362$as_echo "$TOUCH" >&6; }
3363else
3364  { $as_echo "$as_me:$LINENO: result: no" >&5
3365$as_echo "no" >&6; }
3366fi
3367
3368
3369# Extract the first word of "mkdir", so it can be a program name with args.
3370set dummy mkdir; ac_word=$2
3371{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3372$as_echo_n "checking for $ac_word... " >&6; }
3373if test "${ac_cv_path_MKDIR+set}" = set; then
3374  $as_echo_n "(cached) " >&6
3375else
3376  case $MKDIR in
3377  [\\/]* | ?:[\\/]*)
3378  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
3379  ;;
3380  *)
3381  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382as_dummy="$PATH:/bin:/sbin:/usr/bin:/usr/sbin"
3383for as_dir in $as_dummy
3384do
3385  IFS=$as_save_IFS
3386  test -z "$as_dir" && as_dir=.
3387  for ac_exec_ext in '' $ac_executable_extensions; do
3388  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3389    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
3390    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3391    break 2
3392  fi
3393done
3394done
3395IFS=$as_save_IFS
3396
3397  ;;
3398esac
3399fi
3400MKDIR=$ac_cv_path_MKDIR
3401if test -n "$MKDIR"; then
3402  { $as_echo "$as_me:$LINENO: result: $MKDIR" >&5
3403$as_echo "$MKDIR" >&6; }
3404else
3405  { $as_echo "$as_me:$LINENO: result: no" >&5
3406$as_echo "no" >&6; }
3407fi
3408
3409
3410# Extract the first word of "rmdir", so it can be a program name with args.
3411set dummy rmdir; ac_word=$2
3412{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3413$as_echo_n "checking for $ac_word... " >&6; }
3414if test "${ac_cv_path_RMDIR+set}" = set; then
3415  $as_echo_n "(cached) " >&6
3416else
3417  case $RMDIR in
3418  [\\/]* | ?:[\\/]*)
3419  ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
3420  ;;
3421  *)
3422  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423as_dummy="$PATH:/bin:/sbin:/usr/bin:/usr/sbin"
3424for as_dir in $as_dummy
3425do
3426  IFS=$as_save_IFS
3427  test -z "$as_dir" && as_dir=.
3428  for ac_exec_ext in '' $ac_executable_extensions; do
3429  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3430    ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
3431    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3432    break 2
3433  fi
3434done
3435done
3436IFS=$as_save_IFS
3437
3438  ;;
3439esac
3440fi
3441RMDIR=$ac_cv_path_RMDIR
3442if test -n "$RMDIR"; then
3443  { $as_echo "$as_me:$LINENO: result: $RMDIR" >&5
3444$as_echo "$RMDIR" >&6; }
3445else
3446  { $as_echo "$as_me:$LINENO: result: no" >&5
3447$as_echo "no" >&6; }
3448fi
3449
3450
3451# Extract the first word of "cp", so it can be a program name with args.
3452set dummy cp; ac_word=$2
3453{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3454$as_echo_n "checking for $ac_word... " >&6; }
3455if test "${ac_cv_path_CP+set}" = set; then
3456  $as_echo_n "(cached) " >&6
3457else
3458  case $CP in
3459  [\\/]* | ?:[\\/]*)
3460  ac_cv_path_CP="$CP" # Let the user override the test with a path.
3461  ;;
3462  *)
3463  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464as_dummy="$PATH:/bin:/sbin:/usr/bin:/usr/sbin"
3465for as_dir in $as_dummy
3466do
3467  IFS=$as_save_IFS
3468  test -z "$as_dir" && as_dir=.
3469  for ac_exec_ext in '' $ac_executable_extensions; do
3470  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3471    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3472    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3473    break 2
3474  fi
3475done
3476done
3477IFS=$as_save_IFS
3478
3479  ;;
3480esac
3481fi
3482CP=$ac_cv_path_CP
3483if test -n "$CP"; then
3484  { $as_echo "$as_me:$LINENO: result: $CP" >&5
3485$as_echo "$CP" >&6; }
3486else
3487  { $as_echo "$as_me:$LINENO: result: no" >&5
3488$as_echo "no" >&6; }
3489fi
3490
3491
3492# Extract the first word of "rm", so it can be a program name with args.
3493set dummy rm; ac_word=$2
3494{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3495$as_echo_n "checking for $ac_word... " >&6; }
3496if test "${ac_cv_path_RM+set}" = set; then
3497  $as_echo_n "(cached) " >&6
3498else
3499  case $RM in
3500  [\\/]* | ?:[\\/]*)
3501  ac_cv_path_RM="$RM" # Let the user override the test with a path.
3502  ;;
3503  *)
3504  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505as_dummy="$PATH:/bin:/sbin:/usr/bin:/usr/sbin"
3506for as_dir in $as_dummy
3507do
3508  IFS=$as_save_IFS
3509  test -z "$as_dir" && as_dir=.
3510  for ac_exec_ext in '' $ac_executable_extensions; do
3511  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3512    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3513    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3514    break 2
3515  fi
3516done
3517done
3518IFS=$as_save_IFS
3519
3520  ;;
3521esac
3522fi
3523RM=$ac_cv_path_RM
3524if test -n "$RM"; then
3525  { $as_echo "$as_me:$LINENO: result: $RM" >&5
3526$as_echo "$RM" >&6; }
3527else
3528  { $as_echo "$as_me:$LINENO: result: no" >&5
3529$as_echo "no" >&6; }
3530fi
3531
3532
3533# Extract the first word of "mv", so it can be a program name with args.
3534set dummy mv; ac_word=$2
3535{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3536$as_echo_n "checking for $ac_word... " >&6; }
3537if test "${ac_cv_path_MV+set}" = set; then
3538  $as_echo_n "(cached) " >&6
3539else
3540  case $MV in
3541  [\\/]* | ?:[\\/]*)
3542  ac_cv_path_MV="$MV" # Let the user override the test with a path.
3543  ;;
3544  *)
3545  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546as_dummy="$PATH:/bin:/sbin:/usr/bin:/usr/sbin"
3547for as_dir in $as_dummy
3548do
3549  IFS=$as_save_IFS
3550  test -z "$as_dir" && as_dir=.
3551  for ac_exec_ext in '' $ac_executable_extensions; do
3552  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3553    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3554    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3555    break 2
3556  fi
3557done
3558done
3559IFS=$as_save_IFS
3560
3561  ;;
3562esac
3563fi
3564MV=$ac_cv_path_MV
3565if test -n "$MV"; then
3566  { $as_echo "$as_me:$LINENO: result: $MV" >&5
3567$as_echo "$MV" >&6; }
3568else
3569  { $as_echo "$as_me:$LINENO: result: no" >&5
3570$as_echo "no" >&6; }
3571fi
3572
3573
3574# Extract the first word of "ln", so it can be a program name with args.
3575set dummy ln; ac_word=$2
3576{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3577$as_echo_n "checking for $ac_word... " >&6; }
3578if test "${ac_cv_path_LN+set}" = set; then
3579  $as_echo_n "(cached) " >&6
3580else
3581  case $LN in
3582  [\\/]* | ?:[\\/]*)
3583  ac_cv_path_LN="$LN" # Let the user override the test with a path.
3584  ;;
3585  *)
3586  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587as_dummy="$PATH:/bin:/sbin:/usr/bin:/usr/sbin"
3588for as_dir in $as_dummy
3589do
3590  IFS=$as_save_IFS
3591  test -z "$as_dir" && as_dir=.
3592  for ac_exec_ext in '' $ac_executable_extensions; do
3593  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3594    ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
3595    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3596    break 2
3597  fi
3598done
3599done
3600IFS=$as_save_IFS
3601
3602  ;;
3603esac
3604fi
3605LN=$ac_cv_path_LN
3606if test -n "$LN"; then
3607  { $as_echo "$as_me:$LINENO: result: $LN" >&5
3608$as_echo "$LN" >&6; }
3609else
3610  { $as_echo "$as_me:$LINENO: result: no" >&5
3611$as_echo "no" >&6; }
3612fi
3613
3614
3615# Extract the first word of "cat", so it can be a program name with args.
3616set dummy cat; ac_word=$2
3617{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3618$as_echo_n "checking for $ac_word... " >&6; }
3619if test "${ac_cv_path_CAT+set}" = set; then
3620  $as_echo_n "(cached) " >&6
3621else
3622  case $CAT in
3623  [\\/]* | ?:[\\/]*)
3624  ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
3625  ;;
3626  *)
3627  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628as_dummy="$PATH:/bin:/sbin:/usr/bin:/usr/sbin"
3629for as_dir in $as_dummy
3630do
3631  IFS=$as_save_IFS
3632  test -z "$as_dir" && as_dir=.
3633  for ac_exec_ext in '' $ac_executable_extensions; do
3634  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3635    ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
3636    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3637    break 2
3638  fi
3639done
3640done
3641IFS=$as_save_IFS
3642
3643  ;;
3644esac
3645fi
3646CAT=$ac_cv_path_CAT
3647if test -n "$CAT"; then
3648  { $as_echo "$as_me:$LINENO: result: $CAT" >&5
3649$as_echo "$CAT" >&6; }
3650else
3651  { $as_echo "$as_me:$LINENO: result: no" >&5
3652$as_echo "no" >&6; }
3653fi
3654
3655
3656# Extract the first word of "sed", so it can be a program name with args.
3657set dummy sed; ac_word=$2
3658{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3659$as_echo_n "checking for $ac_word... " >&6; }
3660if test "${ac_cv_path_SED+set}" = set; then
3661  $as_echo_n "(cached) " >&6
3662else
3663  case $SED in
3664  [\\/]* | ?:[\\/]*)
3665  ac_cv_path_SED="$SED" # Let the user override the test with a path.
3666  ;;
3667  *)
3668  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669as_dummy="/usr/xpg4/bin:$PATH:/bin:/sbin:/usr/bin:/usr/sbin"
3670for as_dir in $as_dummy
3671do
3672  IFS=$as_save_IFS
3673  test -z "$as_dir" && as_dir=.
3674  for ac_exec_ext in '' $ac_executable_extensions; do
3675  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3676    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3677    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3678    break 2
3679  fi
3680done
3681done
3682IFS=$as_save_IFS
3683
3684  ;;
3685esac
3686fi
3687SED=$ac_cv_path_SED
3688if test -n "$SED"; then
3689  { $as_echo "$as_me:$LINENO: result: $SED" >&5
3690$as_echo "$SED" >&6; }
3691else
3692  { $as_echo "$as_me:$LINENO: result: no" >&5
3693$as_echo "no" >&6; }
3694fi
3695
3696
3697
3698# Extract the first word of "uname", so it can be a program name with args.
3699set dummy uname; ac_word=$2
3700{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3701$as_echo_n "checking for $ac_word... " >&6; }
3702if test "${ac_cv_path_UNAME+set}" = set; then
3703  $as_echo_n "(cached) " >&6
3704else
3705  case $UNAME in
3706  [\\/]* | ?:[\\/]*)
3707  ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
3708  ;;
3709  *)
3710  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711as_dummy="$PATH:/bin:/sbin:/usr/bin:/usr/sbin"
3712for as_dir in $as_dummy
3713do
3714  IFS=$as_save_IFS
3715  test -z "$as_dir" && as_dir=.
3716  for ac_exec_ext in '' $ac_executable_extensions; do
3717  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3718    ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
3719    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3720    break 2
3721  fi
3722done
3723done
3724IFS=$as_save_IFS
3725
3726  ;;
3727esac
3728fi
3729UNAME=$ac_cv_path_UNAME
3730if test -n "$UNAME"; then
3731  { $as_echo "$as_me:$LINENO: result: $UNAME" >&5
3732$as_echo "$UNAME" >&6; }
3733else
3734  { $as_echo "$as_me:$LINENO: result: no" >&5
3735$as_echo "no" >&6; }
3736fi
3737
3738
3739# Extract the first word of "whoami", so it can be a program name with args.
3740set dummy whoami; ac_word=$2
3741{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3742$as_echo_n "checking for $ac_word... " >&6; }
3743if test "${ac_cv_path_WHOAMI+set}" = set; then
3744  $as_echo_n "(cached) " >&6
3745else
3746  case $WHOAMI in
3747  [\\/]* | ?:[\\/]*)
3748  ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a path.
3749  ;;
3750  *)
3751  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752as_dummy="$PATH:/bin:/sbin:/usr/bin:/usr/sbin"
3753for as_dir in $as_dummy
3754do
3755  IFS=$as_save_IFS
3756  test -z "$as_dir" && as_dir=.
3757  for ac_exec_ext in '' $ac_executable_extensions; do
3758  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3759    ac_cv_path_WHOAMI="$as_dir/$ac_word$ac_exec_ext"
3760    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3761    break 2
3762  fi
3763done
3764done
3765IFS=$as_save_IFS
3766
3767  ;;
3768esac
3769fi
3770WHOAMI=$ac_cv_path_WHOAMI
3771if test -n "$WHOAMI"; then
3772  { $as_echo "$as_me:$LINENO: result: $WHOAMI" >&5
3773$as_echo "$WHOAMI" >&6; }
3774else
3775  { $as_echo "$as_me:$LINENO: result: no" >&5
3776$as_echo "no" >&6; }
3777fi
3778
3779
3780# Extract the first word of "date", so it can be a program name with args.
3781set dummy date; ac_word=$2
3782{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3783$as_echo_n "checking for $ac_word... " >&6; }
3784if test "${ac_cv_path_DATE+set}" = set; then
3785  $as_echo_n "(cached) " >&6
3786else
3787  case $DATE in
3788  [\\/]* | ?:[\\/]*)
3789  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
3790  ;;
3791  *)
3792  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793as_dummy="$PATH:/bin:/sbin:/usr/bin:/usr/sbin"
3794for as_dir in $as_dummy
3795do
3796  IFS=$as_save_IFS
3797  test -z "$as_dir" && as_dir=.
3798  for ac_exec_ext in '' $ac_executable_extensions; do
3799  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3800    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
3801    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3802    break 2
3803  fi
3804done
3805done
3806IFS=$as_save_IFS
3807
3808  ;;
3809esac
3810fi
3811DATE=$ac_cv_path_DATE
3812if test -n "$DATE"; then
3813  { $as_echo "$as_me:$LINENO: result: $DATE" >&5
3814$as_echo "$DATE" >&6; }
3815else
3816  { $as_echo "$as_me:$LINENO: result: no" >&5
3817$as_echo "no" >&6; }
3818fi
3819
3820
3821# Extract the first word of "id", so it can be a program name with args.
3822set dummy id; ac_word=$2
3823{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3824$as_echo_n "checking for $ac_word... " >&6; }
3825if test "${ac_cv_path_ID+set}" = set; then
3826  $as_echo_n "(cached) " >&6
3827else
3828  case $ID in
3829  [\\/]* | ?:[\\/]*)
3830  ac_cv_path_ID="$ID" # Let the user override the test with a path.
3831  ;;
3832  *)
3833  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834as_dummy="/usr/xpg4/bin:$PATH:/bin:/sbin:/usr/bin:/usr/sbin"
3835for as_dir in $as_dummy
3836do
3837  IFS=$as_save_IFS
3838  test -z "$as_dir" && as_dir=.
3839  for ac_exec_ext in '' $ac_executable_extensions; do
3840  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3841    ac_cv_path_ID="$as_dir/$ac_word$ac_exec_ext"
3842    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3843    break 2
3844  fi
3845done
3846done
3847IFS=$as_save_IFS
3848
3849  ;;
3850esac
3851fi
3852ID=$ac_cv_path_ID
3853if test -n "$ID"; then
3854  { $as_echo "$as_me:$LINENO: result: $ID" >&5
3855$as_echo "$ID" >&6; }
3856else
3857  { $as_echo "$as_me:$LINENO: result: no" >&5
3858$as_echo "no" >&6; }
3859fi
3860
3861
3862# Extract the first word of "ps", so it can be a program name with args.
3863set dummy ps; ac_word=$2
3864{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3865$as_echo_n "checking for $ac_word... " >&6; }
3866if test "${ac_cv_path_PS+set}" = set; then
3867  $as_echo_n "(cached) " >&6
3868else
3869  case $PS in
3870  [\\/]* | ?:[\\/]*)
3871  ac_cv_path_PS="$PS" # Let the user override the test with a path.
3872  ;;
3873  *)
3874  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875as_dummy="$PATH:/bin:/sbin:/usr/bin:/usr/sbin"
3876for as_dir in $as_dummy
3877do
3878  IFS=$as_save_IFS
3879  test -z "$as_dir" && as_dir=.
3880  for ac_exec_ext in '' $ac_executable_extensions; do
3881  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3882    ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
3883    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3884    break 2
3885  fi
3886done
3887done
3888IFS=$as_save_IFS
3889
3890  ;;
3891esac
3892fi
3893PS=$ac_cv_path_PS
3894if test -n "$PS"; then
3895  { $as_echo "$as_me:$LINENO: result: $PS" >&5
3896$as_echo "$PS" >&6; }
3897else
3898  { $as_echo "$as_me:$LINENO: result: no" >&5
3899$as_echo "no" >&6; }
3900fi
3901
3902
3903# Extract the first word of "mail", so it can be a program name with args.
3904set dummy mail; ac_word=$2
3905{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3906$as_echo_n "checking for $ac_word... " >&6; }
3907if test "${ac_cv_path_MAIL+set}" = set; then
3908  $as_echo_n "(cached) " >&6
3909else
3910  case $MAIL in
3911  [\\/]* | ?:[\\/]*)
3912  ac_cv_path_MAIL="$MAIL" # Let the user override the test with a path.
3913  ;;
3914  *)
3915  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916as_dummy="$PATH:/bin:/sbin:/usr/bin:/usr/sbin"
3917for as_dir in $as_dummy
3918do
3919  IFS=$as_save_IFS
3920  test -z "$as_dir" && as_dir=.
3921  for ac_exec_ext in '' $ac_executable_extensions; do
3922  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3923    ac_cv_path_MAIL="$as_dir/$ac_word$ac_exec_ext"
3924    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3925    break 2
3926  fi
3927done
3928done
3929IFS=$as_save_IFS
3930
3931  ;;
3932esac
3933fi
3934MAIL=$ac_cv_path_MAIL
3935if test -n "$MAIL"; then
3936  { $as_echo "$as_me:$LINENO: result: $MAIL" >&5
3937$as_echo "$MAIL" >&6; }
3938else
3939  { $as_echo "$as_me:$LINENO: result: no" >&5
3940$as_echo "no" >&6; }
3941fi
3942
3943
3944
3945# Check for awk
3946#AC_PROG_AWK
3947# Extract the first word of "awk", so it can be a program name with args.
3948set dummy awk; ac_word=$2
3949{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3950$as_echo_n "checking for $ac_word... " >&6; }
3951if test "${ac_cv_path_AWK+set}" = set; then
3952  $as_echo_n "(cached) " >&6
3953else
3954  case $AWK in
3955  [\\/]* | ?:[\\/]*)
3956  ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3957  ;;
3958  *)
3959  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960as_dummy="$PATH:/bin:/sbin:/usr/bin:/usr/sbin"
3961for as_dir in $as_dummy
3962do
3963  IFS=$as_save_IFS
3964  test -z "$as_dir" && as_dir=.
3965  for ac_exec_ext in '' $ac_executable_extensions; do
3966  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3967    ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3968    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3969    break 2
3970  fi
3971done
3972done
3973IFS=$as_save_IFS
3974
3975  ;;
3976esac
3977fi
3978AWK=$ac_cv_path_AWK
3979if test -n "$AWK"; then
3980  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3981$as_echo "$AWK" >&6; }
3982else
3983  { $as_echo "$as_me:$LINENO: result: no" >&5
3984$as_echo "no" >&6; }
3985fi
3986
3987
3988# Extract the first word of "gawk", so it can be a program name with args.
3989set dummy gawk; ac_word=$2
3990{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3991$as_echo_n "checking for $ac_word... " >&6; }
3992if test "${ac_cv_path_GAWK+set}" = set; then
3993  $as_echo_n "(cached) " >&6
3994else
3995  case $GAWK in
3996  [\\/]* | ?:[\\/]*)
3997  ac_cv_path_GAWK="$GAWK" # Let the user override the test with a path.
3998  ;;
3999  *)
4000  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001as_dummy="$PATH:/bin:/sbin:/usr/bin:/usr/sbin"
4002for as_dir in $as_dummy
4003do
4004  IFS=$as_save_IFS
4005  test -z "$as_dir" && as_dir=.
4006  for ac_exec_ext in '' $ac_executable_extensions; do
4007  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4008    ac_cv_path_GAWK="$as_dir/$ac_word$ac_exec_ext"
4009    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4010    break 2
4011  fi
4012done
4013done
4014IFS=$as_save_IFS
4015
4016  ;;
4017esac
4018fi
4019GAWK=$ac_cv_path_GAWK
4020if test -n "$GAWK"; then
4021  { $as_echo "$as_me:$LINENO: result: $GAWK" >&5
4022$as_echo "$GAWK" >&6; }
4023else
4024  { $as_echo "$as_me:$LINENO: result: no" >&5
4025$as_echo "no" >&6; }
4026fi
4027
4028
4029# Extract the first word of "nawk", so it can be a program name with args.
4030set dummy nawk; ac_word=$2
4031{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4032$as_echo_n "checking for $ac_word... " >&6; }
4033if test "${ac_cv_path_NAWK+set}" = set; then
4034  $as_echo_n "(cached) " >&6
4035else
4036  case $NAWK in
4037  [\\/]* | ?:[\\/]*)
4038  ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
4039  ;;
4040  *)
4041  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042as_dummy="$PATH:/bin:/sbin:/usr/bin:/usr/sbin"
4043for as_dir in $as_dummy
4044do
4045  IFS=$as_save_IFS
4046  test -z "$as_dir" && as_dir=.
4047  for ac_exec_ext in '' $ac_executable_extensions; do
4048  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4049    ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
4050    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4051    break 2
4052  fi
4053done
4054done
4055IFS=$as_save_IFS
4056
4057  ;;
4058esac
4059fi
4060NAWK=$ac_cv_path_NAWK
4061if test -n "$NAWK"; then
4062  { $as_echo "$as_me:$LINENO: result: $NAWK" >&5
4063$as_echo "$NAWK" >&6; }
4064else
4065  { $as_echo "$as_me:$LINENO: result: no" >&5
4066$as_echo "no" >&6; }
4067fi
4068
4069
4070
4071# Check for grep
4072# Extract the first word of "grep", so it can be a program name with args.
4073set dummy grep; ac_word=$2
4074{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4075$as_echo_n "checking for $ac_word... " >&6; }
4076if test "${ac_cv_path_GREP+set}" = set; then
4077  $as_echo_n "(cached) " >&6
4078else
4079  case $GREP in
4080  [\\/]* | ?:[\\/]*)
4081  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4082  ;;
4083  *)
4084  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085as_dummy="/usr/xpg4/bin:$PATH:/bin:/sbin:/usr/bin:/usr/sbin"
4086for as_dir in $as_dummy
4087do
4088  IFS=$as_save_IFS
4089  test -z "$as_dir" && as_dir=.
4090  for ac_exec_ext in '' $ac_executable_extensions; do
4091  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4092    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4093    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4094    break 2
4095  fi
4096done
4097done
4098IFS=$as_save_IFS
4099
4100  ;;
4101esac
4102fi
4103GREP=$ac_cv_path_GREP
4104if test -n "$GREP"; then
4105  { $as_echo "$as_me:$LINENO: result: $GREP" >&5
4106$as_echo "$GREP" >&6; }
4107else
4108  { $as_echo "$as_me:$LINENO: result: no" >&5
4109$as_echo "no" >&6; }
4110fi
4111
4112
4113{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4114$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4115if test "${ac_cv_path_GREP+set}" = set; then
4116  $as_echo_n "(cached) " >&6
4117else
4118  if test -z "$GREP"; then
4119  ac_path_GREP_found=false
4120  # Loop through the user's path and test for each of PROGNAME-LIST
4121  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4123do
4124  IFS=$as_save_IFS
4125  test -z "$as_dir" && as_dir=.
4126  for ac_prog in grep ggrep; do
4127    for ac_exec_ext in '' $ac_executable_extensions; do
4128      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4129      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4130# Check for GNU ac_path_GREP and select it if it is found.
4131  # Check for GNU $ac_path_GREP
4132case `"$ac_path_GREP" --version 2>&1` in
4133*GNU*)
4134  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4135*)
4136  ac_count=0
4137  $as_echo_n 0123456789 >"conftest.in"
4138  while :
4139  do
4140    cat "conftest.in" "conftest.in" >"conftest.tmp"
4141    mv "conftest.tmp" "conftest.in"
4142    cp "conftest.in" "conftest.nl"
4143    $as_echo 'GREP' >> "conftest.nl"
4144    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4145    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4146    ac_count=`expr $ac_count + 1`
4147    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4148      # Best one so far, save it but keep looking for a better one
4149      ac_cv_path_GREP="$ac_path_GREP"
4150      ac_path_GREP_max=$ac_count
4151    fi
4152    # 10*(2^10) chars as input seems more than enough
4153    test $ac_count -gt 10 && break
4154  done
4155  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4156esac
4157
4158      $ac_path_GREP_found && break 3
4159    done
4160  done
4161done
4162IFS=$as_save_IFS
4163  if test -z "$ac_cv_path_GREP"; then
4164    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4165$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4166   { (exit 1); exit 1; }; }
4167  fi
4168else
4169  ac_cv_path_GREP=$GREP
4170fi
4171
4172fi
4173{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4174$as_echo "$ac_cv_path_GREP" >&6; }
4175 GREP="$ac_cv_path_GREP"
4176
4177
4178{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4179$as_echo_n "checking for egrep... " >&6; }
4180if test "${ac_cv_path_EGREP+set}" = set; then
4181  $as_echo_n "(cached) " >&6
4182else
4183  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4184   then ac_cv_path_EGREP="$GREP -E"
4185   else
4186     if test -z "$EGREP"; then
4187  ac_path_EGREP_found=false
4188  # Loop through the user's path and test for each of PROGNAME-LIST
4189  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4191do
4192  IFS=$as_save_IFS
4193  test -z "$as_dir" && as_dir=.
4194  for ac_prog in egrep; do
4195    for ac_exec_ext in '' $ac_executable_extensions; do
4196      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4197      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4198# Check for GNU ac_path_EGREP and select it if it is found.
4199  # Check for GNU $ac_path_EGREP
4200case `"$ac_path_EGREP" --version 2>&1` in
4201*GNU*)
4202  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4203*)
4204  ac_count=0
4205  $as_echo_n 0123456789 >"conftest.in"
4206  while :
4207  do
4208    cat "conftest.in" "conftest.in" >"conftest.tmp"
4209    mv "conftest.tmp" "conftest.in"
4210    cp "conftest.in" "conftest.nl"
4211    $as_echo 'EGREP' >> "conftest.nl"
4212    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4213    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4214    ac_count=`expr $ac_count + 1`
4215    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4216      # Best one so far, save it but keep looking for a better one
4217      ac_cv_path_EGREP="$ac_path_EGREP"
4218      ac_path_EGREP_max=$ac_count
4219    fi
4220    # 10*(2^10) chars as input seems more than enough
4221    test $ac_count -gt 10 && break
4222  done
4223  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4224esac
4225
4226      $ac_path_EGREP_found && break 3
4227    done
4228  done
4229done
4230IFS=$as_save_IFS
4231  if test -z "$ac_cv_path_EGREP"; then
4232    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4233$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4234   { (exit 1); exit 1; }; }
4235  fi
4236else
4237  ac_cv_path_EGREP=$EGREP
4238fi
4239
4240   fi
4241fi
4242{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4243$as_echo "$ac_cv_path_EGREP" >&6; }
4244 EGREP="$ac_cv_path_EGREP"
4245
4246
4247{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4248$as_echo_n "checking for fgrep... " >&6; }
4249if test "${ac_cv_path_FGREP+set}" = set; then
4250  $as_echo_n "(cached) " >&6
4251else
4252  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4253   then ac_cv_path_FGREP="$GREP -F"
4254   else
4255     if test -z "$FGREP"; then
4256  ac_path_FGREP_found=false
4257  # Loop through the user's path and test for each of PROGNAME-LIST
4258  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4260do
4261  IFS=$as_save_IFS
4262  test -z "$as_dir" && as_dir=.
4263  for ac_prog in fgrep; do
4264    for ac_exec_ext in '' $ac_executable_extensions; do
4265      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4266      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4267# Check for GNU ac_path_FGREP and select it if it is found.
4268  # Check for GNU $ac_path_FGREP
4269case `"$ac_path_FGREP" --version 2>&1` in
4270*GNU*)
4271  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4272*)
4273  ac_count=0
4274  $as_echo_n 0123456789 >"conftest.in"
4275  while :
4276  do
4277    cat "conftest.in" "conftest.in" >"conftest.tmp"
4278    mv "conftest.tmp" "conftest.in"
4279    cp "conftest.in" "conftest.nl"
4280    $as_echo 'FGREP' >> "conftest.nl"
4281    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4282    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4283    ac_count=`expr $ac_count + 1`
4284    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4285      # Best one so far, save it but keep looking for a better one
4286      ac_cv_path_FGREP="$ac_path_FGREP"
4287      ac_path_FGREP_max=$ac_count
4288    fi
4289    # 10*(2^10) chars as input seems more than enough
4290    test $ac_count -gt 10 && break
4291  done
4292  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4293esac
4294
4295      $ac_path_FGREP_found && break 3
4296    done
4297  done
4298done
4299IFS=$as_save_IFS
4300  if test -z "$ac_cv_path_FGREP"; then
4301    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4302$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4303   { (exit 1); exit 1; }; }
4304  fi
4305else
4306  ac_cv_path_FGREP=$FGREP
4307fi
4308
4309   fi
4310fi
4311{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4312$as_echo "$ac_cv_path_FGREP" >&6; }
4313 FGREP="$ac_cv_path_FGREP"
4314
4315
4316
4317# Check for advanced commands
4318# Extract the first word of "chmod", so it can be a program name with args.
4319set dummy chmod; ac_word=$2
4320{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4321$as_echo_n "checking for $ac_word... " >&6; }
4322if test "${ac_cv_path_CHMOD+set}" = set; then
4323  $as_echo_n "(cached) " >&6
4324else
4325  case $CHMOD in
4326  [\\/]* | ?:[\\/]*)
4327  ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4328  ;;
4329  *)
4330  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331as_dummy="$PATH:/bin:/sbin:/usr/bin:/usr/sbin"
4332for as_dir in $as_dummy
4333do
4334  IFS=$as_save_IFS
4335  test -z "$as_dir" && as_dir=.
4336  for ac_exec_ext in '' $ac_executable_extensions; do
4337  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4338    ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4339    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4340    break 2
4341  fi
4342done
4343done
4344IFS=$as_save_IFS
4345
4346  ;;
4347esac
4348fi
4349CHMOD=$ac_cv_path_CHMOD
4350if test -n "$CHMOD"; then
4351  { $as_echo "$as_me:$LINENO: result: $CHMOD" >&5
4352$as_echo "$CHMOD" >&6; }
4353else
4354  { $as_echo "$as_me:$LINENO: result: no" >&5
4355$as_echo "no" >&6; }
4356fi
4357
4358
4359# Extract the first word of "chown", so it can be a program name with args.
4360set dummy chown; ac_word=$2
4361{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4362$as_echo_n "checking for $ac_word... " >&6; }
4363if test "${ac_cv_path_CHOWN+set}" = set; then
4364  $as_echo_n "(cached) " >&6
4365else
4366  case $CHOWN in
4367  [\\/]* | ?:[\\/]*)
4368  ac_cv_path_CHOWN="$CHOWN" # Let the user override the test with a path.
4369  ;;
4370  *)
4371  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372as_dummy="$PATH:/bin:/sbin:/usr/bin:/usr/sbin"
4373for as_dir in $as_dummy
4374do
4375  IFS=$as_save_IFS
4376  test -z "$as_dir" && as_dir=.
4377  for ac_exec_ext in '' $ac_executable_extensions; do
4378  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4379    ac_cv_path_CHOWN="$as_dir/$ac_word$ac_exec_ext"
4380    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4381    break 2
4382  fi
4383done
4384done
4385IFS=$as_save_IFS
4386
4387  ;;
4388esac
4389fi
4390CHOWN=$ac_cv_path_CHOWN
4391if test -n "$CHOWN"; then
4392  { $as_echo "$as_me:$LINENO: result: $CHOWN" >&5
4393$as_echo "$CHOWN" >&6; }
4394else
4395  { $as_echo "$as_me:$LINENO: result: no" >&5
4396$as_echo "no" >&6; }
4397fi
4398
4399
4400# Extract the first word of "chgrp", so it can be a program name with args.
4401set dummy chgrp; ac_word=$2
4402{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4403$as_echo_n "checking for $ac_word... " >&6; }
4404if test "${ac_cv_path_CHGRP+set}" = set; then
4405  $as_echo_n "(cached) " >&6
4406else
4407  case $CHGRP in
4408  [\\/]* | ?:[\\/]*)
4409  ac_cv_path_CHGRP="$CHGRP" # Let the user override the test with a path.
4410  ;;
4411  *)
4412  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413as_dummy="$PATH:/bin:/sbin:/usr/bin:/usr/sbin"
4414for as_dir in $as_dummy
4415do
4416  IFS=$as_save_IFS
4417  test -z "$as_dir" && as_dir=.
4418  for ac_exec_ext in '' $ac_executable_extensions; do
4419  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4420    ac_cv_path_CHGRP="$as_dir/$ac_word$ac_exec_ext"
4421    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4422    break 2
4423  fi
4424done
4425done
4426IFS=$as_save_IFS
4427
4428  ;;
4429esac
4430fi
4431CHGRP=$ac_cv_path_CHGRP
4432if test -n "$CHGRP"; then
4433  { $as_echo "$as_me:$LINENO: result: $CHGRP" >&5
4434$as_echo "$CHGRP" >&6; }
4435else
4436  { $as_echo "$as_me:$LINENO: result: no" >&5
4437$as_echo "no" >&6; }
4438fi
4439
4440
4441# Extract the first word of "useradd", so it can be a program name with args.
4442set dummy useradd; ac_word=$2
4443{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4444$as_echo_n "checking for $ac_word... " >&6; }
4445if test "${ac_cv_path_USERADD+set}" = set; then
4446  $as_echo_n "(cached) " >&6
4447else
4448  case $USERADD in
4449  [\\/]* | ?:[\\/]*)
4450  ac_cv_path_USERADD="$USERADD" # Let the user override the test with a path.
4451  ;;
4452  *)
4453  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454as_dummy="$PATH:/bin:/sbin:/usr/bin:/usr/sbin"
4455for as_dir in $as_dummy
4456do
4457  IFS=$as_save_IFS
4458  test -z "$as_dir" && as_dir=.
4459  for ac_exec_ext in '' $ac_executable_extensions; do
4460  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4461    ac_cv_path_USERADD="$as_dir/$ac_word$ac_exec_ext"
4462    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4463    break 2
4464  fi
4465done
4466done
4467IFS=$as_save_IFS
4468
4469  ;;
4470esac
4471fi
4472USERADD=$ac_cv_path_USERADD
4473if test -n "$USERADD"; then
4474  { $as_echo "$as_me:$LINENO: result: $USERADD" >&5
4475$as_echo "$USERADD" >&6; }
4476else
4477  { $as_echo "$as_me:$LINENO: result: no" >&5
4478$as_echo "no" >&6; }
4479fi
4480
4481
4482# Extract the first word of "userdel", so it can be a program name with args.
4483set dummy userdel; ac_word=$2
4484{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4485$as_echo_n "checking for $ac_word... " >&6; }
4486if test "${ac_cv_path_USERDEL+set}" = set; then
4487  $as_echo_n "(cached) " >&6
4488else
4489  case $USERDEL in
4490  [\\/]* | ?:[\\/]*)
4491  ac_cv_path_USERDEL="$USERDEL" # Let the user override the test with a path.
4492  ;;
4493  *)
4494  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495as_dummy="$PATH:/bin:/sbin:/usr/bin:/usr/sbin"
4496for as_dir in $as_dummy
4497do
4498  IFS=$as_save_IFS
4499  test -z "$as_dir" && as_dir=.
4500  for ac_exec_ext in '' $ac_executable_extensions; do
4501  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4502    ac_cv_path_USERDEL="$as_dir/$ac_word$ac_exec_ext"
4503    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4504    break 2
4505  fi
4506done
4507done
4508IFS=$as_save_IFS
4509
4510  ;;
4511esac
4512fi
4513USERDEL=$ac_cv_path_USERDEL
4514if test -n "$USERDEL"; then
4515  { $as_echo "$as_me:$LINENO: result: $USERDEL" >&5
4516$as_echo "$USERDEL" >&6; }
4517else
4518  { $as_echo "$as_me:$LINENO: result: no" >&5
4519$as_echo "no" >&6; }
4520fi
4521
4522
4523# Extract the first word of "groupadd", so it can be a program name with args.
4524set dummy groupadd; ac_word=$2
4525{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4526$as_echo_n "checking for $ac_word... " >&6; }
4527if test "${ac_cv_path_GROUPADD+set}" = set; then
4528  $as_echo_n "(cached) " >&6
4529else
4530  case $GROUPADD in
4531  [\\/]* | ?:[\\/]*)
4532  ac_cv_path_GROUPADD="$GROUPADD" # Let the user override the test with a path.
4533  ;;
4534  *)
4535  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536as_dummy="$PATH:/bin:/sbin:/usr/bin:/usr/sbin"
4537for as_dir in $as_dummy
4538do
4539  IFS=$as_save_IFS
4540  test -z "$as_dir" && as_dir=.
4541  for ac_exec_ext in '' $ac_executable_extensions; do
4542  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4543    ac_cv_path_GROUPADD="$as_dir/$ac_word$ac_exec_ext"
4544    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4545    break 2
4546  fi
4547done
4548done
4549IFS=$as_save_IFS
4550
4551  ;;
4552esac
4553fi
4554GROUPADD=$ac_cv_path_GROUPADD
4555if test -n "$GROUPADD"; then
4556  { $as_echo "$as_me:$LINENO: result: $GROUPADD" >&5
4557$as_echo "$GROUPADD" >&6; }
4558else
4559  { $as_echo "$as_me:$LINENO: result: no" >&5
4560$as_echo "no" >&6; }
4561fi
4562
4563
4564# Extract the first word of "groupdel", so it can be a program name with args.
4565set dummy groupdel; ac_word=$2
4566{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4567$as_echo_n "checking for $ac_word... " >&6; }
4568if test "${ac_cv_path_GROUPDEL+set}" = set; then
4569  $as_echo_n "(cached) " >&6
4570else
4571  case $GROUPDEL in
4572  [\\/]* | ?:[\\/]*)
4573  ac_cv_path_GROUPDEL="$GROUPDEL" # Let the user override the test with a path.
4574  ;;
4575  *)
4576  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577as_dummy="$PATH:/bin:/sbin:/usr/bin:/usr/sbin"
4578for as_dir in $as_dummy
4579do
4580  IFS=$as_save_IFS
4581  test -z "$as_dir" && as_dir=.
4582  for ac_exec_ext in '' $ac_executable_extensions; do
4583  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4584    ac_cv_path_GROUPDEL="$as_dir/$ac_word$ac_exec_ext"
4585    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4586    break 2
4587  fi
4588done
4589done
4590IFS=$as_save_IFS
4591
4592  ;;
4593esac
4594fi
4595GROUPDEL=$ac_cv_path_GROUPDEL
4596if test -n "$GROUPDEL"; then
4597  { $as_echo "$as_me:$LINENO: result: $GROUPDEL" >&5
4598$as_echo "$GROUPDEL" >&6; }
4599else
4600  { $as_echo "$as_me:$LINENO: result: no" >&5
4601$as_echo "no" >&6; }
4602fi
4603
4604
4605# Extract the first word of "pw", so it can be a program name with args.
4606set dummy pw; ac_word=$2
4607{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4608$as_echo_n "checking for $ac_word... " >&6; }
4609if test "${ac_cv_path_PW+set}" = set; then
4610  $as_echo_n "(cached) " >&6
4611else
4612  case $PW in
4613  [\\/]* | ?:[\\/]*)
4614  ac_cv_path_PW="$PW" # Let the user override the test with a path.
4615  ;;
4616  *)
4617  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618as_dummy="$PATH:/bin:/sbin:/usr/bin:/usr/sbin"
4619for as_dir in $as_dummy
4620do
4621  IFS=$as_save_IFS
4622  test -z "$as_dir" && as_dir=.
4623  for ac_exec_ext in '' $ac_executable_extensions; do
4624  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4625    ac_cv_path_PW="$as_dir/$ac_word$ac_exec_ext"
4626    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4627    break 2
4628  fi
4629done
4630done
4631IFS=$as_save_IFS
4632
4633  ;;
4634esac
4635fi
4636PW=$ac_cv_path_PW
4637if test -n "$PW"; then
4638  { $as_echo "$as_me:$LINENO: result: $PW" >&5
4639$as_echo "$PW" >&6; }
4640else
4641  { $as_echo "$as_me:$LINENO: result: no" >&5
4642$as_echo "no" >&6; }
4643fi
4644
4645
4646# Extract the first word of "crontab", so it can be a program name with args.
4647set dummy crontab; ac_word=$2
4648{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4649$as_echo_n "checking for $ac_word... " >&6; }
4650if test "${ac_cv_path_CRONTAB+set}" = set; then
4651  $as_echo_n "(cached) " >&6
4652else
4653  case $CRONTAB in
4654  [\\/]* | ?:[\\/]*)
4655  ac_cv_path_CRONTAB="$CRONTAB" # Let the user override the test with a path.
4656  ;;
4657  *)
4658  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659as_dummy="$PATH:/bin:/sbin:/usr/bin:/usr/sbin"
4660for as_dir in $as_dummy
4661do
4662  IFS=$as_save_IFS
4663  test -z "$as_dir" && as_dir=.
4664  for ac_exec_ext in '' $ac_executable_extensions; do
4665  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4666    ac_cv_path_CRONTAB="$as_dir/$ac_word$ac_exec_ext"
4667    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4668    break 2
4669  fi
4670done
4671done
4672IFS=$as_save_IFS
4673
4674  ;;
4675esac
4676fi
4677CRONTAB=$ac_cv_path_CRONTAB
4678if test -n "$CRONTAB"; then
4679  { $as_echo "$as_me:$LINENO: result: $CRONTAB" >&5
4680$as_echo "$CRONTAB" >&6; }
4681else
4682  { $as_echo "$as_me:$LINENO: result: no" >&5
4683$as_echo "no" >&6; }
4684fi
4685
4686
4687
4688
4689# Set CFLAGS, LDFLAGS, LIBS etc
4690
4691if test "$CFLAGS" = "" ; then
4692  CFLAGS="-O2 -g -Wall"
4693fi
4694echo "$CFLAGS" | $GREP -q '\-Wall'
4695if test $? -ne 0 ; then
4696  CFLAGS="$CFLAGS -Wall"
4697fi
4698#CFLAGS=`echo "$CFLAGS" | sed -e 's/-O2/-O3/'`
4699
4700echo "$CFLAGS" | $GREP -q '\-I \/usr\/local\/include'
4701if test $? -ne 0 ; then
4702  CFLAGS="$CFLAGS -I /usr/local/include"
4703fi
4704
4705echo "$CFLAGS" | $GREP -q '\-I \~\/include'
4706if test $? -ne 0 ; then
4707  CFLAGS="$CFLAGS -I ~/include"
4708fi
4709
4710echo "$LDFLAGS" | $GREP -q '\-L \/usr\/local\/lib'
4711if test $? -ne 0 ; then
4712  LDFLAGS="$LDFLAGS -L /usr/local/lib"
4713fi
4714
4715echo "$LDFLAGS" | $GREP -q '\-L ~\/lib'
4716if test $? -ne 0 ; then
4717  LDFLAGS="$LDFLAGS -L ~/lib"
4718fi
4719
4720if test "$LIBS" != "" ; then
4721  LIBS=`echo "$LIBS" | sed -e 's/^ *//' -e 's/ *$//'`
4722  LIBS=`echo "$LIBS" | sed -e 's/[:space:]\{2,\}/ /g'`
4723fi
4724
4725#echo "CFLAGS: $CFLAGS - LIBS: $LIBS - LDFLAGS: $LDFLAGS"
4726
4727# Checks for libraries.
4728
4729
4730{ $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
4731$as_echo_n "checking for library containing crypt... " >&6; }
4732if test "${ac_cv_search_crypt+set}" = set; then
4733  $as_echo_n "(cached) " >&6
4734else
4735  ac_func_search_save_LIBS=$LIBS
4736cat >conftest.$ac_ext <<_ACEOF
4737/* confdefs.h.  */
4738_ACEOF
4739cat confdefs.h >>conftest.$ac_ext
4740cat >>conftest.$ac_ext <<_ACEOF
4741/* end confdefs.h.  */
4742
4743/* Override any GCC internal prototype to avoid an error.
4744   Use char because int might match the return type of a GCC
4745   builtin and then its argument prototype would still apply.  */
4746#ifdef __cplusplus
4747extern "C"
4748#endif
4749char crypt ();
4750int
4751main ()
4752{
4753return crypt ();
4754  ;
4755  return 0;
4756}
4757_ACEOF
4758for ac_lib in '' c descrypt crypt; do
4759  if test -z "$ac_lib"; then
4760    ac_res="none required"
4761  else
4762    ac_res=-l$ac_lib
4763    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4764  fi
4765  rm -f conftest.$ac_objext conftest$ac_exeext
4766if { (ac_try="$ac_link"
4767case "(($ac_try" in
4768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4769  *) ac_try_echo=$ac_try;;
4770esac
4771eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4772$as_echo "$ac_try_echo") >&5
4773  (eval "$ac_link") 2>conftest.er1
4774  ac_status=$?
4775  grep -v '^ *+' conftest.er1 >conftest.err
4776  rm -f conftest.er1
4777  cat conftest.err >&5
4778  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779  (exit $ac_status); } && {
4780	 test -z "$ac_c_werror_flag" ||
4781	 test ! -s conftest.err
4782       } && test -s conftest$ac_exeext && {
4783	 test "$cross_compiling" = yes ||
4784	 $as_test_x conftest$ac_exeext
4785       }; then
4786  ac_cv_search_crypt=$ac_res
4787else
4788  $as_echo "$as_me: failed program was:" >&5
4789sed 's/^/| /' conftest.$ac_ext >&5
4790
4791
4792fi
4793
4794rm -rf conftest.dSYM
4795rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4796      conftest$ac_exeext
4797  if test "${ac_cv_search_crypt+set}" = set; then
4798  break
4799fi
4800done
4801if test "${ac_cv_search_crypt+set}" = set; then
4802  :
4803else
4804  ac_cv_search_crypt=no
4805fi
4806rm conftest.$ac_ext
4807LIBS=$ac_func_search_save_LIBS
4808fi
4809{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
4810$as_echo "$ac_cv_search_crypt" >&6; }
4811ac_res=$ac_cv_search_crypt
4812if test "$ac_res" != no; then
4813  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4814
4815fi
4816
4817{ $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
4818$as_echo_n "checking for library containing socket... " >&6; }
4819if test "${ac_cv_search_socket+set}" = set; then
4820  $as_echo_n "(cached) " >&6
4821else
4822  ac_func_search_save_LIBS=$LIBS
4823cat >conftest.$ac_ext <<_ACEOF
4824/* confdefs.h.  */
4825_ACEOF
4826cat confdefs.h >>conftest.$ac_ext
4827cat >>conftest.$ac_ext <<_ACEOF
4828/* end confdefs.h.  */
4829
4830/* Override any GCC internal prototype to avoid an error.
4831   Use char because int might match the return type of a GCC
4832   builtin and then its argument prototype would still apply.  */
4833#ifdef __cplusplus
4834extern "C"
4835#endif
4836char socket ();
4837int
4838main ()
4839{
4840return socket ();
4841  ;
4842  return 0;
4843}
4844_ACEOF
4845for ac_lib in '' c socket; do
4846  if test -z "$ac_lib"; then
4847    ac_res="none required"
4848  else
4849    ac_res=-l$ac_lib
4850    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4851  fi
4852  rm -f conftest.$ac_objext conftest$ac_exeext
4853if { (ac_try="$ac_link"
4854case "(($ac_try" in
4855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4856  *) ac_try_echo=$ac_try;;
4857esac
4858eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4859$as_echo "$ac_try_echo") >&5
4860  (eval "$ac_link") 2>conftest.er1
4861  ac_status=$?
4862  grep -v '^ *+' conftest.er1 >conftest.err
4863  rm -f conftest.er1
4864  cat conftest.err >&5
4865  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866  (exit $ac_status); } && {
4867	 test -z "$ac_c_werror_flag" ||
4868	 test ! -s conftest.err
4869       } && test -s conftest$ac_exeext && {
4870	 test "$cross_compiling" = yes ||
4871	 $as_test_x conftest$ac_exeext
4872       }; then
4873  ac_cv_search_socket=$ac_res
4874else
4875  $as_echo "$as_me: failed program was:" >&5
4876sed 's/^/| /' conftest.$ac_ext >&5
4877
4878
4879fi
4880
4881rm -rf conftest.dSYM
4882rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4883      conftest$ac_exeext
4884  if test "${ac_cv_search_socket+set}" = set; then
4885  break
4886fi
4887done
4888if test "${ac_cv_search_socket+set}" = set; then
4889  :
4890else
4891  ac_cv_search_socket=no
4892fi
4893rm conftest.$ac_ext
4894LIBS=$ac_func_search_save_LIBS
4895fi
4896{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
4897$as_echo "$ac_cv_search_socket" >&6; }
4898ac_res=$ac_cv_search_socket
4899if test "$ac_res" != no; then
4900  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4901
4902fi
4903
4904{ $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
4905$as_echo_n "checking for library containing gethostbyname... " >&6; }
4906if test "${ac_cv_search_gethostbyname+set}" = set; then
4907  $as_echo_n "(cached) " >&6
4908else
4909  ac_func_search_save_LIBS=$LIBS
4910cat >conftest.$ac_ext <<_ACEOF
4911/* confdefs.h.  */
4912_ACEOF
4913cat confdefs.h >>conftest.$ac_ext
4914cat >>conftest.$ac_ext <<_ACEOF
4915/* end confdefs.h.  */
4916
4917/* Override any GCC internal prototype to avoid an error.
4918   Use char because int might match the return type of a GCC
4919   builtin and then its argument prototype would still apply.  */
4920#ifdef __cplusplus
4921extern "C"
4922#endif
4923char gethostbyname ();
4924int
4925main ()
4926{
4927return gethostbyname ();
4928  ;
4929  return 0;
4930}
4931_ACEOF
4932for ac_lib in '' c nsl; do
4933  if test -z "$ac_lib"; then
4934    ac_res="none required"
4935  else
4936    ac_res=-l$ac_lib
4937    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4938  fi
4939  rm -f conftest.$ac_objext conftest$ac_exeext
4940if { (ac_try="$ac_link"
4941case "(($ac_try" in
4942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4943  *) ac_try_echo=$ac_try;;
4944esac
4945eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4946$as_echo "$ac_try_echo") >&5
4947  (eval "$ac_link") 2>conftest.er1
4948  ac_status=$?
4949  grep -v '^ *+' conftest.er1 >conftest.err
4950  rm -f conftest.er1
4951  cat conftest.err >&5
4952  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953  (exit $ac_status); } && {
4954	 test -z "$ac_c_werror_flag" ||
4955	 test ! -s conftest.err
4956       } && test -s conftest$ac_exeext && {
4957	 test "$cross_compiling" = yes ||
4958	 $as_test_x conftest$ac_exeext
4959       }; then
4960  ac_cv_search_gethostbyname=$ac_res
4961else
4962  $as_echo "$as_me: failed program was:" >&5
4963sed 's/^/| /' conftest.$ac_ext >&5
4964
4965
4966fi
4967
4968rm -rf conftest.dSYM
4969rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4970      conftest$ac_exeext
4971  if test "${ac_cv_search_gethostbyname+set}" = set; then
4972  break
4973fi
4974done
4975if test "${ac_cv_search_gethostbyname+set}" = set; then
4976  :
4977else
4978  ac_cv_search_gethostbyname=no
4979fi
4980rm conftest.$ac_ext
4981LIBS=$ac_func_search_save_LIBS
4982fi
4983{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
4984$as_echo "$ac_cv_search_gethostbyname" >&6; }
4985ac_res=$ac_cv_search_gethostbyname
4986if test "$ac_res" != no; then
4987  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4988
4989fi
4990
4991{ $as_echo "$as_me:$LINENO: checking for library containing gethostbyname2" >&5
4992$as_echo_n "checking for library containing gethostbyname2... " >&6; }
4993if test "${ac_cv_search_gethostbyname2+set}" = set; then
4994  $as_echo_n "(cached) " >&6
4995else
4996  ac_func_search_save_LIBS=$LIBS
4997cat >conftest.$ac_ext <<_ACEOF
4998/* confdefs.h.  */
4999_ACEOF
5000cat confdefs.h >>conftest.$ac_ext
5001cat >>conftest.$ac_ext <<_ACEOF
5002/* end confdefs.h.  */
5003
5004/* Override any GCC internal prototype to avoid an error.
5005   Use char because int might match the return type of a GCC
5006   builtin and then its argument prototype would still apply.  */
5007#ifdef __cplusplus
5008extern "C"
5009#endif
5010char gethostbyname2 ();
5011int
5012main ()
5013{
5014return gethostbyname2 ();
5015  ;
5016  return 0;
5017}
5018_ACEOF
5019for ac_lib in '' c nsl; do
5020  if test -z "$ac_lib"; then
5021    ac_res="none required"
5022  else
5023    ac_res=-l$ac_lib
5024    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5025  fi
5026  rm -f conftest.$ac_objext conftest$ac_exeext
5027if { (ac_try="$ac_link"
5028case "(($ac_try" in
5029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5030  *) ac_try_echo=$ac_try;;
5031esac
5032eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5033$as_echo "$ac_try_echo") >&5
5034  (eval "$ac_link") 2>conftest.er1
5035  ac_status=$?
5036  grep -v '^ *+' conftest.er1 >conftest.err
5037  rm -f conftest.er1
5038  cat conftest.err >&5
5039  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040  (exit $ac_status); } && {
5041	 test -z "$ac_c_werror_flag" ||
5042	 test ! -s conftest.err
5043       } && test -s conftest$ac_exeext && {
5044	 test "$cross_compiling" = yes ||
5045	 $as_test_x conftest$ac_exeext
5046       }; then
5047  ac_cv_search_gethostbyname2=$ac_res
5048else
5049  $as_echo "$as_me: failed program was:" >&5
5050sed 's/^/| /' conftest.$ac_ext >&5
5051
5052
5053fi
5054
5055rm -rf conftest.dSYM
5056rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5057      conftest$ac_exeext
5058  if test "${ac_cv_search_gethostbyname2+set}" = set; then
5059  break
5060fi
5061done
5062if test "${ac_cv_search_gethostbyname2+set}" = set; then
5063  :
5064else
5065  ac_cv_search_gethostbyname2=no
5066fi
5067rm conftest.$ac_ext
5068LIBS=$ac_func_search_save_LIBS
5069fi
5070{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname2" >&5
5071$as_echo "$ac_cv_search_gethostbyname2" >&6; }
5072ac_res=$ac_cv_search_gethostbyname2
5073if test "$ac_res" != no; then
5074  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5075
5076fi
5077
5078{ $as_echo "$as_me:$LINENO: checking for library containing seteuid" >&5
5079$as_echo_n "checking for library containing seteuid... " >&6; }
5080if test "${ac_cv_search_seteuid+set}" = set; then
5081  $as_echo_n "(cached) " >&6
5082else
5083  ac_func_search_save_LIBS=$LIBS
5084cat >conftest.$ac_ext <<_ACEOF
5085/* confdefs.h.  */
5086_ACEOF
5087cat confdefs.h >>conftest.$ac_ext
5088cat >>conftest.$ac_ext <<_ACEOF
5089/* end confdefs.h.  */
5090
5091/* Override any GCC internal prototype to avoid an error.
5092   Use char because int might match the return type of a GCC
5093   builtin and then its argument prototype would still apply.  */
5094#ifdef __cplusplus
5095extern "C"
5096#endif
5097char seteuid ();
5098int
5099main ()
5100{
5101return seteuid ();
5102  ;
5103  return 0;
5104}
5105_ACEOF
5106for ac_lib in '' c nsl; do
5107  if test -z "$ac_lib"; then
5108    ac_res="none required"
5109  else
5110    ac_res=-l$ac_lib
5111    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5112  fi
5113  rm -f conftest.$ac_objext conftest$ac_exeext
5114if { (ac_try="$ac_link"
5115case "(($ac_try" in
5116  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5117  *) ac_try_echo=$ac_try;;
5118esac
5119eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5120$as_echo "$ac_try_echo") >&5
5121  (eval "$ac_link") 2>conftest.er1
5122  ac_status=$?
5123  grep -v '^ *+' conftest.er1 >conftest.err
5124  rm -f conftest.er1
5125  cat conftest.err >&5
5126  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127  (exit $ac_status); } && {
5128	 test -z "$ac_c_werror_flag" ||
5129	 test ! -s conftest.err
5130       } && test -s conftest$ac_exeext && {
5131	 test "$cross_compiling" = yes ||
5132	 $as_test_x conftest$ac_exeext
5133       }; then
5134  ac_cv_search_seteuid=$ac_res
5135else
5136  $as_echo "$as_me: failed program was:" >&5
5137sed 's/^/| /' conftest.$ac_ext >&5
5138
5139
5140fi
5141
5142rm -rf conftest.dSYM
5143rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5144      conftest$ac_exeext
5145  if test "${ac_cv_search_seteuid+set}" = set; then
5146  break
5147fi
5148done
5149if test "${ac_cv_search_seteuid+set}" = set; then
5150  :
5151else
5152  ac_cv_search_seteuid=no
5153fi
5154rm conftest.$ac_ext
5155LIBS=$ac_func_search_save_LIBS
5156fi
5157{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_seteuid" >&5
5158$as_echo "$ac_cv_search_seteuid" >&6; }
5159ac_res=$ac_cv_search_seteuid
5160if test "$ac_res" != no; then
5161  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5162
5163fi
5164
5165{ $as_echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
5166$as_echo_n "checking for library containing clock_gettime... " >&6; }
5167if test "${ac_cv_search_clock_gettime+set}" = set; then
5168  $as_echo_n "(cached) " >&6
5169else
5170  ac_func_search_save_LIBS=$LIBS
5171cat >conftest.$ac_ext <<_ACEOF
5172/* confdefs.h.  */
5173_ACEOF
5174cat confdefs.h >>conftest.$ac_ext
5175cat >>conftest.$ac_ext <<_ACEOF
5176/* end confdefs.h.  */
5177
5178/* Override any GCC internal prototype to avoid an error.
5179   Use char because int might match the return type of a GCC
5180   builtin and then its argument prototype would still apply.  */
5181#ifdef __cplusplus
5182extern "C"
5183#endif
5184char clock_gettime ();
5185int
5186main ()
5187{
5188return clock_gettime ();
5189  ;
5190  return 0;
5191}
5192_ACEOF
5193for ac_lib in '' c rt posix4; do
5194  if test -z "$ac_lib"; then
5195    ac_res="none required"
5196  else
5197    ac_res=-l$ac_lib
5198    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5199  fi
5200  rm -f conftest.$ac_objext conftest$ac_exeext
5201if { (ac_try="$ac_link"
5202case "(($ac_try" in
5203  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5204  *) ac_try_echo=$ac_try;;
5205esac
5206eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5207$as_echo "$ac_try_echo") >&5
5208  (eval "$ac_link") 2>conftest.er1
5209  ac_status=$?
5210  grep -v '^ *+' conftest.er1 >conftest.err
5211  rm -f conftest.er1
5212  cat conftest.err >&5
5213  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214  (exit $ac_status); } && {
5215	 test -z "$ac_c_werror_flag" ||
5216	 test ! -s conftest.err
5217       } && test -s conftest$ac_exeext && {
5218	 test "$cross_compiling" = yes ||
5219	 $as_test_x conftest$ac_exeext
5220       }; then
5221  ac_cv_search_clock_gettime=$ac_res
5222else
5223  $as_echo "$as_me: failed program was:" >&5
5224sed 's/^/| /' conftest.$ac_ext >&5
5225
5226
5227fi
5228
5229rm -rf conftest.dSYM
5230rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5231      conftest$ac_exeext
5232  if test "${ac_cv_search_clock_gettime+set}" = set; then
5233  break
5234fi
5235done
5236if test "${ac_cv_search_clock_gettime+set}" = set; then
5237  :
5238else
5239  ac_cv_search_clock_gettime=no
5240fi
5241rm conftest.$ac_ext
5242LIBS=$ac_func_search_save_LIBS
5243fi
5244{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
5245$as_echo "$ac_cv_search_clock_gettime" >&6; }
5246ac_res=$ac_cv_search_clock_gettime
5247if test "$ac_res" != no; then
5248  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5249
5250fi
5251
5252
5253
5254
5255# Ares
5256
5257if test "x$ares_enable" = "xyes" ; then
5258  { $as_echo "$as_me:$LINENO: checking for library containing ares_init" >&5
5259$as_echo_n "checking for library containing ares_init... " >&6; }
5260if test "${ac_cv_search_ares_init+set}" = set; then
5261  $as_echo_n "(cached) " >&6
5262else
5263  ac_func_search_save_LIBS=$LIBS
5264cat >conftest.$ac_ext <<_ACEOF
5265/* confdefs.h.  */
5266_ACEOF
5267cat confdefs.h >>conftest.$ac_ext
5268cat >>conftest.$ac_ext <<_ACEOF
5269/* end confdefs.h.  */
5270
5271/* Override any GCC internal prototype to avoid an error.
5272   Use char because int might match the return type of a GCC
5273   builtin and then its argument prototype would still apply.  */
5274#ifdef __cplusplus
5275extern "C"
5276#endif
5277char ares_init ();
5278int
5279main ()
5280{
5281return ares_init ();
5282  ;
5283  return 0;
5284}
5285_ACEOF
5286for ac_lib in '' cares ares nlares; do
5287  if test -z "$ac_lib"; then
5288    ac_res="none required"
5289  else
5290    ac_res=-l$ac_lib
5291    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5292  fi
5293  rm -f conftest.$ac_objext conftest$ac_exeext
5294if { (ac_try="$ac_link"
5295case "(($ac_try" in
5296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5297  *) ac_try_echo=$ac_try;;
5298esac
5299eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5300$as_echo "$ac_try_echo") >&5
5301  (eval "$ac_link") 2>conftest.er1
5302  ac_status=$?
5303  grep -v '^ *+' conftest.er1 >conftest.err
5304  rm -f conftest.er1
5305  cat conftest.err >&5
5306  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307  (exit $ac_status); } && {
5308	 test -z "$ac_c_werror_flag" ||
5309	 test ! -s conftest.err
5310       } && test -s conftest$ac_exeext && {
5311	 test "$cross_compiling" = yes ||
5312	 $as_test_x conftest$ac_exeext
5313       }; then
5314  ac_cv_search_ares_init=$ac_res
5315else
5316  $as_echo "$as_me: failed program was:" >&5
5317sed 's/^/| /' conftest.$ac_ext >&5
5318
5319
5320fi
5321
5322rm -rf conftest.dSYM
5323rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5324      conftest$ac_exeext
5325  if test "${ac_cv_search_ares_init+set}" = set; then
5326  break
5327fi
5328done
5329if test "${ac_cv_search_ares_init+set}" = set; then
5330  :
5331else
5332  ac_cv_search_ares_init=no
5333fi
5334rm conftest.$ac_ext
5335LIBS=$ac_func_search_save_LIBS
5336fi
5337{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_ares_init" >&5
5338$as_echo "$ac_cv_search_ares_init" >&6; }
5339ac_res=$ac_cv_search_ares_init
5340if test "$ac_res" != no; then
5341  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5342  have_ares=yes
5343else
5344  have_ares=no
5345fi
5346
5347  if test "x$have_ares" = "xno" ; then
5348    echo "A ares compatible library is required. You should install either ares or c-ares."
5349    echo "c-ares is preferred, it can be found on http://daniel.haxx.se/projects/c-ares/"
5350    echo "If you know what the consequences are but still dont want ares you can"
5351    echo "disable ares with --disable-ares"
5352    exit 1
5353  fi
5354fi
5355
5356# SSL support
5357
5358if test "x$ssl_support" = "xyes" ; then
5359
5360  if test "x$with_gnutls" = "xno" -a "x$with_openssl" = "xno" ; then
5361    { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
5362$as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
5363if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
5364  $as_echo_n "(cached) " >&6
5365else
5366  ac_check_lib_save_LIBS=$LIBS
5367LIBS="-lssl  $LIBS"
5368cat >conftest.$ac_ext <<_ACEOF
5369/* confdefs.h.  */
5370_ACEOF
5371cat confdefs.h >>conftest.$ac_ext
5372cat >>conftest.$ac_ext <<_ACEOF
5373/* end confdefs.h.  */
5374
5375/* Override any GCC internal prototype to avoid an error.
5376   Use char because int might match the return type of a GCC
5377   builtin and then its argument prototype would still apply.  */
5378#ifdef __cplusplus
5379extern "C"
5380#endif
5381char SSL_library_init ();
5382int
5383main ()
5384{
5385return SSL_library_init ();
5386  ;
5387  return 0;
5388}
5389_ACEOF
5390rm -f conftest.$ac_objext conftest$ac_exeext
5391if { (ac_try="$ac_link"
5392case "(($ac_try" in
5393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5394  *) ac_try_echo=$ac_try;;
5395esac
5396eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5397$as_echo "$ac_try_echo") >&5
5398  (eval "$ac_link") 2>conftest.er1
5399  ac_status=$?
5400  grep -v '^ *+' conftest.er1 >conftest.err
5401  rm -f conftest.er1
5402  cat conftest.err >&5
5403  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404  (exit $ac_status); } && {
5405	 test -z "$ac_c_werror_flag" ||
5406	 test ! -s conftest.err
5407       } && test -s conftest$ac_exeext && {
5408	 test "$cross_compiling" = yes ||
5409	 $as_test_x conftest$ac_exeext
5410       }; then
5411  ac_cv_lib_ssl_SSL_library_init=yes
5412else
5413  $as_echo "$as_me: failed program was:" >&5
5414sed 's/^/| /' conftest.$ac_ext >&5
5415
5416	ac_cv_lib_ssl_SSL_library_init=no
5417fi
5418
5419rm -rf conftest.dSYM
5420rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5421      conftest$ac_exeext conftest.$ac_ext
5422LIBS=$ac_check_lib_save_LIBS
5423fi
5424{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
5425$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
5426if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
5427  with_openssl=yes
5428else
5429  with_openssl=no
5430fi
5431
5432    { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lgnutls-openssl" >&5
5433$as_echo_n "checking for SSL_library_init in -lgnutls-openssl... " >&6; }
5434if test "${ac_cv_lib_gnutls_openssl_SSL_library_init+set}" = set; then
5435  $as_echo_n "(cached) " >&6
5436else
5437  ac_check_lib_save_LIBS=$LIBS
5438LIBS="-lgnutls-openssl  $LIBS"
5439cat >conftest.$ac_ext <<_ACEOF
5440/* confdefs.h.  */
5441_ACEOF
5442cat confdefs.h >>conftest.$ac_ext
5443cat >>conftest.$ac_ext <<_ACEOF
5444/* end confdefs.h.  */
5445
5446/* Override any GCC internal prototype to avoid an error.
5447   Use char because int might match the return type of a GCC
5448   builtin and then its argument prototype would still apply.  */
5449#ifdef __cplusplus
5450extern "C"
5451#endif
5452char SSL_library_init ();
5453int
5454main ()
5455{
5456return SSL_library_init ();
5457  ;
5458  return 0;
5459}
5460_ACEOF
5461rm -f conftest.$ac_objext conftest$ac_exeext
5462if { (ac_try="$ac_link"
5463case "(($ac_try" in
5464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5465  *) ac_try_echo=$ac_try;;
5466esac
5467eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5468$as_echo "$ac_try_echo") >&5
5469  (eval "$ac_link") 2>conftest.er1
5470  ac_status=$?
5471  grep -v '^ *+' conftest.er1 >conftest.err
5472  rm -f conftest.er1
5473  cat conftest.err >&5
5474  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475  (exit $ac_status); } && {
5476	 test -z "$ac_c_werror_flag" ||
5477	 test ! -s conftest.err
5478       } && test -s conftest$ac_exeext && {
5479	 test "$cross_compiling" = yes ||
5480	 $as_test_x conftest$ac_exeext
5481       }; then
5482  ac_cv_lib_gnutls_openssl_SSL_library_init=yes
5483else
5484  $as_echo "$as_me: failed program was:" >&5
5485sed 's/^/| /' conftest.$ac_ext >&5
5486
5487	ac_cv_lib_gnutls_openssl_SSL_library_init=no
5488fi
5489
5490rm -rf conftest.dSYM
5491rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5492      conftest$ac_exeext conftest.$ac_ext
5493LIBS=$ac_check_lib_save_LIBS
5494fi
5495{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_openssl_SSL_library_init" >&5
5496$as_echo "$ac_cv_lib_gnutls_openssl_SSL_library_init" >&6; }
5497if test "x$ac_cv_lib_gnutls_openssl_SSL_library_init" = x""yes; then
5498  with_gnutls=yes
5499else
5500  with_gnutls=no
5501fi
5502
5503  fi
5504
5505  if test "x$with_openssl" != "xno" ; then
5506    { $as_echo "$as_me:$LINENO: checking for library containing SSL_library_init" >&5
5507$as_echo_n "checking for library containing SSL_library_init... " >&6; }
5508if test "${ac_cv_search_SSL_library_init+set}" = set; then
5509  $as_echo_n "(cached) " >&6
5510else
5511  ac_func_search_save_LIBS=$LIBS
5512cat >conftest.$ac_ext <<_ACEOF
5513/* confdefs.h.  */
5514_ACEOF
5515cat confdefs.h >>conftest.$ac_ext
5516cat >>conftest.$ac_ext <<_ACEOF
5517/* end confdefs.h.  */
5518
5519/* Override any GCC internal prototype to avoid an error.
5520   Use char because int might match the return type of a GCC
5521   builtin and then its argument prototype would still apply.  */
5522#ifdef __cplusplus
5523extern "C"
5524#endif
5525char SSL_library_init ();
5526int
5527main ()
5528{
5529return SSL_library_init ();
5530  ;
5531  return 0;
5532}
5533_ACEOF
5534for ac_lib in '' ssl; do
5535  if test -z "$ac_lib"; then
5536    ac_res="none required"
5537  else
5538    ac_res=-l$ac_lib
5539    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5540  fi
5541  rm -f conftest.$ac_objext conftest$ac_exeext
5542if { (ac_try="$ac_link"
5543case "(($ac_try" in
5544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545  *) ac_try_echo=$ac_try;;
5546esac
5547eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5548$as_echo "$ac_try_echo") >&5
5549  (eval "$ac_link") 2>conftest.er1
5550  ac_status=$?
5551  grep -v '^ *+' conftest.er1 >conftest.err
5552  rm -f conftest.er1
5553  cat conftest.err >&5
5554  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555  (exit $ac_status); } && {
5556	 test -z "$ac_c_werror_flag" ||
5557	 test ! -s conftest.err
5558       } && test -s conftest$ac_exeext && {
5559	 test "$cross_compiling" = yes ||
5560	 $as_test_x conftest$ac_exeext
5561       }; then
5562  ac_cv_search_SSL_library_init=$ac_res
5563else
5564  $as_echo "$as_me: failed program was:" >&5
5565sed 's/^/| /' conftest.$ac_ext >&5
5566
5567
5568fi
5569
5570rm -rf conftest.dSYM
5571rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5572      conftest$ac_exeext
5573  if test "${ac_cv_search_SSL_library_init+set}" = set; then
5574  break
5575fi
5576done
5577if test "${ac_cv_search_SSL_library_init+set}" = set; then
5578  :
5579else
5580  ac_cv_search_SSL_library_init=no
5581fi
5582rm conftest.$ac_ext
5583LIBS=$ac_func_search_save_LIBS
5584fi
5585{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_SSL_library_init" >&5
5586$as_echo "$ac_cv_search_SSL_library_init" >&6; }
5587ac_res=$ac_cv_search_SSL_library_init
5588if test "$ac_res" != no; then
5589  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5590  have_openssl=yes
5591else
5592  have_openssl=no
5593fi
5594
5595    if test "x$have_openssl" = "xyes" ; then
5596
5597cat >>confdefs.h <<\_ACEOF
5598@%:@define HAVE_OPENSSL /**/
5599_ACEOF
5600
5601      have_ssl=yes
5602    else
5603      echo "openssl library not found. Install openssl or use --with-gnutls"
5604      exit 1
5605    fi
5606  else
5607    { $as_echo "$as_me:$LINENO: checking for library containing SSL_library_init" >&5
5608$as_echo_n "checking for library containing SSL_library_init... " >&6; }
5609if test "${ac_cv_search_SSL_library_init+set}" = set; then
5610  $as_echo_n "(cached) " >&6
5611else
5612  ac_func_search_save_LIBS=$LIBS
5613cat >conftest.$ac_ext <<_ACEOF
5614/* confdefs.h.  */
5615_ACEOF
5616cat confdefs.h >>conftest.$ac_ext
5617cat >>conftest.$ac_ext <<_ACEOF
5618/* end confdefs.h.  */
5619
5620/* Override any GCC internal prototype to avoid an error.
5621   Use char because int might match the return type of a GCC
5622   builtin and then its argument prototype would still apply.  */
5623#ifdef __cplusplus
5624extern "C"
5625#endif
5626char SSL_library_init ();
5627int
5628main ()
5629{
5630return SSL_library_init ();
5631  ;
5632  return 0;
5633}
5634_ACEOF
5635for ac_lib in '' gnutls-openssl; do
5636  if test -z "$ac_lib"; then
5637    ac_res="none required"
5638  else
5639    ac_res=-l$ac_lib
5640    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5641  fi
5642  rm -f conftest.$ac_objext conftest$ac_exeext
5643if { (ac_try="$ac_link"
5644case "(($ac_try" in
5645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5646  *) ac_try_echo=$ac_try;;
5647esac
5648eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5649$as_echo "$ac_try_echo") >&5
5650  (eval "$ac_link") 2>conftest.er1
5651  ac_status=$?
5652  grep -v '^ *+' conftest.er1 >conftest.err
5653  rm -f conftest.er1
5654  cat conftest.err >&5
5655  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656  (exit $ac_status); } && {
5657	 test -z "$ac_c_werror_flag" ||
5658	 test ! -s conftest.err
5659       } && test -s conftest$ac_exeext && {
5660	 test "$cross_compiling" = yes ||
5661	 $as_test_x conftest$ac_exeext
5662       }; then
5663  ac_cv_search_SSL_library_init=$ac_res
5664else
5665  $as_echo "$as_me: failed program was:" >&5
5666sed 's/^/| /' conftest.$ac_ext >&5
5667
5668
5669fi
5670
5671rm -rf conftest.dSYM
5672rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5673      conftest$ac_exeext
5674  if test "${ac_cv_search_SSL_library_init+set}" = set; then
5675  break
5676fi
5677done
5678if test "${ac_cv_search_SSL_library_init+set}" = set; then
5679  :
5680else
5681  ac_cv_search_SSL_library_init=no
5682fi
5683rm conftest.$ac_ext
5684LIBS=$ac_func_search_save_LIBS
5685fi
5686{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_SSL_library_init" >&5
5687$as_echo "$ac_cv_search_SSL_library_init" >&6; }
5688ac_res=$ac_cv_search_SSL_library_init
5689if test "$ac_res" != no; then
5690  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5691  have_gnutls=yes
5692else
5693  have_gnutls=no
5694fi
5695
5696    if test "x$have_gnutls" = "xyes" ; then
5697
5698cat >>confdefs.h <<\_ACEOF
5699@%:@define HAVE_GNUTLS /**/
5700_ACEOF
5701
5702      have_ssl=yes
5703    else
5704      echo "gnutls library not found. Install gnutls or use --with-openssl"
5705      exit 1
5706    fi
5707  fi
5708
5709  if test "x$have_ssl" = "xno" ; then
5710    echo "SSL library not found! Install gnutls or openssl and run configure again!"
5711    echo "If you really want to use ircproxy without SSL support"
5712    echo "run configure --disable-ssl"
5713    exit 1
5714  fi
5715else
5716  { $as_echo "$as_me:$LINENO: result: WARNING! SSL support is disabled." >&5
5717$as_echo "WARNING! SSL support is disabled." >&6; }
5718fi
5719
5720# Memdebug
5721
5722if test "x$memdebug" = "xyes" ; then
5723  { $as_echo "$as_me:$LINENO: checking for library containing memalloc" >&5
5724$as_echo_n "checking for library containing memalloc... " >&6; }
5725if test "${ac_cv_search_memalloc+set}" = set; then
5726  $as_echo_n "(cached) " >&6
5727else
5728  ac_func_search_save_LIBS=$LIBS
5729cat >conftest.$ac_ext <<_ACEOF
5730/* confdefs.h.  */
5731_ACEOF
5732cat confdefs.h >>conftest.$ac_ext
5733cat >>conftest.$ac_ext <<_ACEOF
5734/* end confdefs.h.  */
5735
5736/* Override any GCC internal prototype to avoid an error.
5737   Use char because int might match the return type of a GCC
5738   builtin and then its argument prototype would still apply.  */
5739#ifdef __cplusplus
5740extern "C"
5741#endif
5742char memalloc ();
5743int
5744main ()
5745{
5746return memalloc ();
5747  ;
5748  return 0;
5749}
5750_ACEOF
5751for ac_lib in '' memcalls; do
5752  if test -z "$ac_lib"; then
5753    ac_res="none required"
5754  else
5755    ac_res=-l$ac_lib
5756    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5757  fi
5758  rm -f conftest.$ac_objext conftest$ac_exeext
5759if { (ac_try="$ac_link"
5760case "(($ac_try" in
5761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5762  *) ac_try_echo=$ac_try;;
5763esac
5764eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5765$as_echo "$ac_try_echo") >&5
5766  (eval "$ac_link") 2>conftest.er1
5767  ac_status=$?
5768  grep -v '^ *+' conftest.er1 >conftest.err
5769  rm -f conftest.er1
5770  cat conftest.err >&5
5771  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772  (exit $ac_status); } && {
5773	 test -z "$ac_c_werror_flag" ||
5774	 test ! -s conftest.err
5775       } && test -s conftest$ac_exeext && {
5776	 test "$cross_compiling" = yes ||
5777	 $as_test_x conftest$ac_exeext
5778       }; then
5779  ac_cv_search_memalloc=$ac_res
5780else
5781  $as_echo "$as_me: failed program was:" >&5
5782sed 's/^/| /' conftest.$ac_ext >&5
5783
5784
5785fi
5786
5787rm -rf conftest.dSYM
5788rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5789      conftest$ac_exeext
5790  if test "${ac_cv_search_memalloc+set}" = set; then
5791  break
5792fi
5793done
5794if test "${ac_cv_search_memalloc+set}" = set; then
5795  :
5796else
5797  ac_cv_search_memalloc=no
5798fi
5799rm conftest.$ac_ext
5800LIBS=$ac_func_search_save_LIBS
5801fi
5802{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_memalloc" >&5
5803$as_echo "$ac_cv_search_memalloc" >&6; }
5804ac_res=$ac_cv_search_memalloc
5805if test "$ac_res" != no; then
5806  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5807  have_memcalls=yes
5808else
5809  have_memcalls=no
5810fi
5811
5812  #if test "x$have_memcalls" = "xno" ; then
5813  #  echo "memcalls library not found! Install memcalls and run configure again!"
5814  #  echo "If you really want to use ircproxy without memory debugging"
5815  #  echo "run configure without --enable-memdebug"
5816  #  exit 1
5817  #fi
5818fi
5819
5820# FDdebug
5821
5822if test "x$fddebug" = "xyes" ; then
5823  { $as_echo "$as_me:$LINENO: checking for library containing fdcalls_open" >&5
5824$as_echo_n "checking for library containing fdcalls_open... " >&6; }
5825if test "${ac_cv_search_fdcalls_open+set}" = set; then
5826  $as_echo_n "(cached) " >&6
5827else
5828  ac_func_search_save_LIBS=$LIBS
5829cat >conftest.$ac_ext <<_ACEOF
5830/* confdefs.h.  */
5831_ACEOF
5832cat confdefs.h >>conftest.$ac_ext
5833cat >>conftest.$ac_ext <<_ACEOF
5834/* end confdefs.h.  */
5835
5836/* Override any GCC internal prototype to avoid an error.
5837   Use char because int might match the return type of a GCC
5838   builtin and then its argument prototype would still apply.  */
5839#ifdef __cplusplus
5840extern "C"
5841#endif
5842char fdcalls_open ();
5843int
5844main ()
5845{
5846return fdcalls_open ();
5847  ;
5848  return 0;
5849}
5850_ACEOF
5851for ac_lib in '' fdcalls; do
5852  if test -z "$ac_lib"; then
5853    ac_res="none required"
5854  else
5855    ac_res=-l$ac_lib
5856    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5857  fi
5858  rm -f conftest.$ac_objext conftest$ac_exeext
5859if { (ac_try="$ac_link"
5860case "(($ac_try" in
5861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862  *) ac_try_echo=$ac_try;;
5863esac
5864eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5865$as_echo "$ac_try_echo") >&5
5866  (eval "$ac_link") 2>conftest.er1
5867  ac_status=$?
5868  grep -v '^ *+' conftest.er1 >conftest.err
5869  rm -f conftest.er1
5870  cat conftest.err >&5
5871  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872  (exit $ac_status); } && {
5873	 test -z "$ac_c_werror_flag" ||
5874	 test ! -s conftest.err
5875       } && test -s conftest$ac_exeext && {
5876	 test "$cross_compiling" = yes ||
5877	 $as_test_x conftest$ac_exeext
5878       }; then
5879  ac_cv_search_fdcalls_open=$ac_res
5880else
5881  $as_echo "$as_me: failed program was:" >&5
5882sed 's/^/| /' conftest.$ac_ext >&5
5883
5884
5885fi
5886
5887rm -rf conftest.dSYM
5888rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5889      conftest$ac_exeext
5890  if test "${ac_cv_search_fdcalls_open+set}" = set; then
5891  break
5892fi
5893done
5894if test "${ac_cv_search_fdcalls_open+set}" = set; then
5895  :
5896else
5897  ac_cv_search_fdcalls_open=no
5898fi
5899rm conftest.$ac_ext
5900LIBS=$ac_func_search_save_LIBS
5901fi
5902{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdcalls_open" >&5
5903$as_echo "$ac_cv_search_fdcalls_open" >&6; }
5904ac_res=$ac_cv_search_fdcalls_open
5905if test "$ac_res" != no; then
5906  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5907  have_fdcalls=yes
5908else
5909  have_fdcalls=no
5910fi
5911
5912  #if test "x$have_fdcalls" = "xno" ; then
5913  #  echo "fdcalls library not found! Install fdcalls and run configure again!"
5914  #  echo "If you really want to use ircproxy without file descriptor debugging"
5915  #  echo "run configure without --enable-fddebug"
5916  #  exit 1
5917  #fi
5918fi
5919
5920# Checks for header files.
5921
5922ac_ext=c
5923ac_cpp='$CPP $CPPFLAGS'
5924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5926ac_compiler_gnu=$ac_cv_c_compiler_gnu
5927{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5928$as_echo_n "checking how to run the C preprocessor... " >&6; }
5929# On Suns, sometimes $CPP names a directory.
5930if test -n "$CPP" && test -d "$CPP"; then
5931  CPP=
5932fi
5933if test -z "$CPP"; then
5934  if test "${ac_cv_prog_CPP+set}" = set; then
5935  $as_echo_n "(cached) " >&6
5936else
5937      # Double quotes because CPP needs to be expanded
5938    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5939    do
5940      ac_preproc_ok=false
5941for ac_c_preproc_warn_flag in '' yes
5942do
5943  # Use a header file that comes with gcc, so configuring glibc
5944  # with a fresh cross-compiler works.
5945  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5946  # <limits.h> exists even on freestanding compilers.
5947  # On the NeXT, cc -E runs the code through the compiler's parser,
5948  # not just through cpp. "Syntax error" is here to catch this case.
5949  cat >conftest.$ac_ext <<_ACEOF
5950/* confdefs.h.  */
5951_ACEOF
5952cat confdefs.h >>conftest.$ac_ext
5953cat >>conftest.$ac_ext <<_ACEOF
5954/* end confdefs.h.  */
5955@%:@ifdef __STDC__
5956@%:@ include <limits.h>
5957@%:@else
5958@%:@ include <assert.h>
5959@%:@endif
5960		     Syntax error
5961_ACEOF
5962if { (ac_try="$ac_cpp conftest.$ac_ext"
5963case "(($ac_try" in
5964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965  *) ac_try_echo=$ac_try;;
5966esac
5967eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5968$as_echo "$ac_try_echo") >&5
5969  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5970  ac_status=$?
5971  grep -v '^ *+' conftest.er1 >conftest.err
5972  rm -f conftest.er1
5973  cat conftest.err >&5
5974  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975  (exit $ac_status); } >/dev/null && {
5976	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5977	 test ! -s conftest.err
5978       }; then
5979  :
5980else
5981  $as_echo "$as_me: failed program was:" >&5
5982sed 's/^/| /' conftest.$ac_ext >&5
5983
5984  # Broken: fails on valid input.
5985continue
5986fi
5987
5988rm -f conftest.err conftest.$ac_ext
5989
5990  # OK, works on sane cases.  Now check whether nonexistent headers
5991  # can be detected and how.
5992  cat >conftest.$ac_ext <<_ACEOF
5993/* confdefs.h.  */
5994_ACEOF
5995cat confdefs.h >>conftest.$ac_ext
5996cat >>conftest.$ac_ext <<_ACEOF
5997/* end confdefs.h.  */
5998@%:@include <ac_nonexistent.h>
5999_ACEOF
6000if { (ac_try="$ac_cpp conftest.$ac_ext"
6001case "(($ac_try" in
6002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003  *) ac_try_echo=$ac_try;;
6004esac
6005eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6006$as_echo "$ac_try_echo") >&5
6007  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6008  ac_status=$?
6009  grep -v '^ *+' conftest.er1 >conftest.err
6010  rm -f conftest.er1
6011  cat conftest.err >&5
6012  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013  (exit $ac_status); } >/dev/null && {
6014	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6015	 test ! -s conftest.err
6016       }; then
6017  # Broken: success on invalid input.
6018continue
6019else
6020  $as_echo "$as_me: failed program was:" >&5
6021sed 's/^/| /' conftest.$ac_ext >&5
6022
6023  # Passes both tests.
6024ac_preproc_ok=:
6025break
6026fi
6027
6028rm -f conftest.err conftest.$ac_ext
6029
6030done
6031# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6032rm -f conftest.err conftest.$ac_ext
6033if $ac_preproc_ok; then
6034  break
6035fi
6036
6037    done
6038    ac_cv_prog_CPP=$CPP
6039
6040fi
6041  CPP=$ac_cv_prog_CPP
6042else
6043  ac_cv_prog_CPP=$CPP
6044fi
6045{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6046$as_echo "$CPP" >&6; }
6047ac_preproc_ok=false
6048for ac_c_preproc_warn_flag in '' yes
6049do
6050  # Use a header file that comes with gcc, so configuring glibc
6051  # with a fresh cross-compiler works.
6052  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6053  # <limits.h> exists even on freestanding compilers.
6054  # On the NeXT, cc -E runs the code through the compiler's parser,
6055  # not just through cpp. "Syntax error" is here to catch this case.
6056  cat >conftest.$ac_ext <<_ACEOF
6057/* confdefs.h.  */
6058_ACEOF
6059cat confdefs.h >>conftest.$ac_ext
6060cat >>conftest.$ac_ext <<_ACEOF
6061/* end confdefs.h.  */
6062@%:@ifdef __STDC__
6063@%:@ include <limits.h>
6064@%:@else
6065@%:@ include <assert.h>
6066@%:@endif
6067		     Syntax error
6068_ACEOF
6069if { (ac_try="$ac_cpp conftest.$ac_ext"
6070case "(($ac_try" in
6071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6072  *) ac_try_echo=$ac_try;;
6073esac
6074eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6075$as_echo "$ac_try_echo") >&5
6076  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6077  ac_status=$?
6078  grep -v '^ *+' conftest.er1 >conftest.err
6079  rm -f conftest.er1
6080  cat conftest.err >&5
6081  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082  (exit $ac_status); } >/dev/null && {
6083	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6084	 test ! -s conftest.err
6085       }; then
6086  :
6087else
6088  $as_echo "$as_me: failed program was:" >&5
6089sed 's/^/| /' conftest.$ac_ext >&5
6090
6091  # Broken: fails on valid input.
6092continue
6093fi
6094
6095rm -f conftest.err conftest.$ac_ext
6096
6097  # OK, works on sane cases.  Now check whether nonexistent headers
6098  # can be detected and how.
6099  cat >conftest.$ac_ext <<_ACEOF
6100/* confdefs.h.  */
6101_ACEOF
6102cat confdefs.h >>conftest.$ac_ext
6103cat >>conftest.$ac_ext <<_ACEOF
6104/* end confdefs.h.  */
6105@%:@include <ac_nonexistent.h>
6106_ACEOF
6107if { (ac_try="$ac_cpp conftest.$ac_ext"
6108case "(($ac_try" in
6109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6110  *) ac_try_echo=$ac_try;;
6111esac
6112eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6113$as_echo "$ac_try_echo") >&5
6114  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6115  ac_status=$?
6116  grep -v '^ *+' conftest.er1 >conftest.err
6117  rm -f conftest.er1
6118  cat conftest.err >&5
6119  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120  (exit $ac_status); } >/dev/null && {
6121	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6122	 test ! -s conftest.err
6123       }; then
6124  # Broken: success on invalid input.
6125continue
6126else
6127  $as_echo "$as_me: failed program was:" >&5
6128sed 's/^/| /' conftest.$ac_ext >&5
6129
6130  # Passes both tests.
6131ac_preproc_ok=:
6132break
6133fi
6134
6135rm -f conftest.err conftest.$ac_ext
6136
6137done
6138# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6139rm -f conftest.err conftest.$ac_ext
6140if $ac_preproc_ok; then
6141  :
6142else
6143  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6144$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6145{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6146See \`config.log' for more details." >&5
6147$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6148See \`config.log' for more details." >&2;}
6149   { (exit 1); exit 1; }; }; }
6150fi
6151
6152ac_ext=c
6153ac_cpp='$CPP $CPPFLAGS'
6154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6156ac_compiler_gnu=$ac_cv_c_compiler_gnu
6157
6158
6159{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6160$as_echo_n "checking for ANSI C header files... " >&6; }
6161if test "${ac_cv_header_stdc+set}" = set; then
6162  $as_echo_n "(cached) " >&6
6163else
6164  cat >conftest.$ac_ext <<_ACEOF
6165/* confdefs.h.  */
6166_ACEOF
6167cat confdefs.h >>conftest.$ac_ext
6168cat >>conftest.$ac_ext <<_ACEOF
6169/* end confdefs.h.  */
6170#include <stdlib.h>
6171#include <stdarg.h>
6172#include <string.h>
6173#include <float.h>
6174
6175int
6176main ()
6177{
6178
6179  ;
6180  return 0;
6181}
6182_ACEOF
6183rm -f conftest.$ac_objext
6184if { (ac_try="$ac_compile"
6185case "(($ac_try" in
6186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6187  *) ac_try_echo=$ac_try;;
6188esac
6189eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6190$as_echo "$ac_try_echo") >&5
6191  (eval "$ac_compile") 2>conftest.er1
6192  ac_status=$?
6193  grep -v '^ *+' conftest.er1 >conftest.err
6194  rm -f conftest.er1
6195  cat conftest.err >&5
6196  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197  (exit $ac_status); } && {
6198	 test -z "$ac_c_werror_flag" ||
6199	 test ! -s conftest.err
6200       } && test -s conftest.$ac_objext; then
6201  ac_cv_header_stdc=yes
6202else
6203  $as_echo "$as_me: failed program was:" >&5
6204sed 's/^/| /' conftest.$ac_ext >&5
6205
6206	ac_cv_header_stdc=no
6207fi
6208
6209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6210
6211if test $ac_cv_header_stdc = yes; then
6212  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6213  cat >conftest.$ac_ext <<_ACEOF
6214/* confdefs.h.  */
6215_ACEOF
6216cat confdefs.h >>conftest.$ac_ext
6217cat >>conftest.$ac_ext <<_ACEOF
6218/* end confdefs.h.  */
6219#include <string.h>
6220
6221_ACEOF
6222if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6223  $EGREP "memchr" >/dev/null 2>&1; then
6224  :
6225else
6226  ac_cv_header_stdc=no
6227fi
6228rm -f conftest*
6229
6230fi
6231
6232if test $ac_cv_header_stdc = yes; then
6233  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6234  cat >conftest.$ac_ext <<_ACEOF
6235/* confdefs.h.  */
6236_ACEOF
6237cat confdefs.h >>conftest.$ac_ext
6238cat >>conftest.$ac_ext <<_ACEOF
6239/* end confdefs.h.  */
6240#include <stdlib.h>
6241
6242_ACEOF
6243if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6244  $EGREP "free" >/dev/null 2>&1; then
6245  :
6246else
6247  ac_cv_header_stdc=no
6248fi
6249rm -f conftest*
6250
6251fi
6252
6253if test $ac_cv_header_stdc = yes; then
6254  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6255  if test "$cross_compiling" = yes; then
6256  :
6257else
6258  cat >conftest.$ac_ext <<_ACEOF
6259/* confdefs.h.  */
6260_ACEOF
6261cat confdefs.h >>conftest.$ac_ext
6262cat >>conftest.$ac_ext <<_ACEOF
6263/* end confdefs.h.  */
6264#include <ctype.h>
6265#include <stdlib.h>
6266#if ((' ' & 0x0FF) == 0x020)
6267# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6268# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6269#else
6270# define ISLOWER(c) \
6271		   (('a' <= (c) && (c) <= 'i') \
6272		     || ('j' <= (c) && (c) <= 'r') \
6273		     || ('s' <= (c) && (c) <= 'z'))
6274# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6275#endif
6276
6277#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6278int
6279main ()
6280{
6281  int i;
6282  for (i = 0; i < 256; i++)
6283    if (XOR (islower (i), ISLOWER (i))
6284	|| toupper (i) != TOUPPER (i))
6285      return 2;
6286  return 0;
6287}
6288_ACEOF
6289rm -f conftest$ac_exeext
6290if { (ac_try="$ac_link"
6291case "(($ac_try" in
6292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6293  *) ac_try_echo=$ac_try;;
6294esac
6295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6296$as_echo "$ac_try_echo") >&5
6297  (eval "$ac_link") 2>&5
6298  ac_status=$?
6299  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6301  { (case "(($ac_try" in
6302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6303  *) ac_try_echo=$ac_try;;
6304esac
6305eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6306$as_echo "$ac_try_echo") >&5
6307  (eval "$ac_try") 2>&5
6308  ac_status=$?
6309  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310  (exit $ac_status); }; }; then
6311  :
6312else
6313  $as_echo "$as_me: program exited with status $ac_status" >&5
6314$as_echo "$as_me: failed program was:" >&5
6315sed 's/^/| /' conftest.$ac_ext >&5
6316
6317( exit $ac_status )
6318ac_cv_header_stdc=no
6319fi
6320rm -rf conftest.dSYM
6321rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6322fi
6323
6324
6325fi
6326fi
6327{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6328$as_echo "$ac_cv_header_stdc" >&6; }
6329if test $ac_cv_header_stdc = yes; then
6330
6331cat >>confdefs.h <<\_ACEOF
6332@%:@define STDC_HEADERS 1
6333_ACEOF
6334
6335fi
6336
6337# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6348		  inttypes.h stdint.h unistd.h
6349do
6350as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6351{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6352$as_echo_n "checking for $ac_header... " >&6; }
6353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6354  $as_echo_n "(cached) " >&6
6355else
6356  cat >conftest.$ac_ext <<_ACEOF
6357/* confdefs.h.  */
6358_ACEOF
6359cat confdefs.h >>conftest.$ac_ext
6360cat >>conftest.$ac_ext <<_ACEOF
6361/* end confdefs.h.  */
6362$ac_includes_default
6363
6364@%:@include <$ac_header>
6365_ACEOF
6366rm -f conftest.$ac_objext
6367if { (ac_try="$ac_compile"
6368case "(($ac_try" in
6369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6370  *) ac_try_echo=$ac_try;;
6371esac
6372eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6373$as_echo "$ac_try_echo") >&5
6374  (eval "$ac_compile") 2>conftest.er1
6375  ac_status=$?
6376  grep -v '^ *+' conftest.er1 >conftest.err
6377  rm -f conftest.er1
6378  cat conftest.err >&5
6379  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380  (exit $ac_status); } && {
6381	 test -z "$ac_c_werror_flag" ||
6382	 test ! -s conftest.err
6383       } && test -s conftest.$ac_objext; then
6384  eval "$as_ac_Header=yes"
6385else
6386  $as_echo "$as_me: failed program was:" >&5
6387sed 's/^/| /' conftest.$ac_ext >&5
6388
6389	eval "$as_ac_Header=no"
6390fi
6391
6392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6393fi
6394ac_res=`eval 'as_val=${'$as_ac_Header'}
6395		 $as_echo "$as_val"'`
6396	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6397$as_echo "$ac_res" >&6; }
6398as_val=`eval 'as_val=${'$as_ac_Header'}
6399		 $as_echo "$as_val"'`
6400   if test "x$as_val" = x""yes; then
6401  cat >>confdefs.h <<_ACEOF
6402@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6403_ACEOF
6404
6405fi
6406
6407done
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440for ac_header in  \
6441		sys/types.h \
6442		sys/param.h \
6443		limits.h \
6444		stdarg.h \
6445		errno.h \
6446		ctype.h \
6447		netinet/in.h \
6448		stdio.h \
6449		stdlib.h \
6450		sys/time.h \
6451		sys/stat.h \
6452		sys/uio.h \
6453		fcntl.h \
6454                sys/ioctl.h \
6455                sys/filio.h \
6456		unistd.h \
6457		string.h \
6458		signal.h \
6459		arpa/inet.h \
6460		sys/socket.h \
6461		netdb.h \
6462		arpa/nameser.h \
6463		assert.h \
6464		crypt.h \
6465                sys/sysctl.h \
6466		pwd.h \
6467		shadow.h \
6468		userpw.h \
6469		hpsecurity.h \
6470		prot.h \
6471
6472do
6473as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6474if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6475  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6476$as_echo_n "checking for $ac_header... " >&6; }
6477if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6478  $as_echo_n "(cached) " >&6
6479fi
6480ac_res=`eval 'as_val=${'$as_ac_Header'}
6481		 $as_echo "$as_val"'`
6482	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6483$as_echo "$ac_res" >&6; }
6484else
6485  # Is the header compilable?
6486{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6487$as_echo_n "checking $ac_header usability... " >&6; }
6488cat >conftest.$ac_ext <<_ACEOF
6489/* confdefs.h.  */
6490_ACEOF
6491cat confdefs.h >>conftest.$ac_ext
6492cat >>conftest.$ac_ext <<_ACEOF
6493/* end confdefs.h.  */
6494$ac_includes_default
6495@%:@include <$ac_header>
6496_ACEOF
6497rm -f conftest.$ac_objext
6498if { (ac_try="$ac_compile"
6499case "(($ac_try" in
6500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6501  *) ac_try_echo=$ac_try;;
6502esac
6503eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6504$as_echo "$ac_try_echo") >&5
6505  (eval "$ac_compile") 2>conftest.er1
6506  ac_status=$?
6507  grep -v '^ *+' conftest.er1 >conftest.err
6508  rm -f conftest.er1
6509  cat conftest.err >&5
6510  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511  (exit $ac_status); } && {
6512	 test -z "$ac_c_werror_flag" ||
6513	 test ! -s conftest.err
6514       } && test -s conftest.$ac_objext; then
6515  ac_header_compiler=yes
6516else
6517  $as_echo "$as_me: failed program was:" >&5
6518sed 's/^/| /' conftest.$ac_ext >&5
6519
6520	ac_header_compiler=no
6521fi
6522
6523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6524{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6525$as_echo "$ac_header_compiler" >&6; }
6526
6527# Is the header present?
6528{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6529$as_echo_n "checking $ac_header presence... " >&6; }
6530cat >conftest.$ac_ext <<_ACEOF
6531/* confdefs.h.  */
6532_ACEOF
6533cat confdefs.h >>conftest.$ac_ext
6534cat >>conftest.$ac_ext <<_ACEOF
6535/* end confdefs.h.  */
6536@%:@include <$ac_header>
6537_ACEOF
6538if { (ac_try="$ac_cpp conftest.$ac_ext"
6539case "(($ac_try" in
6540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6541  *) ac_try_echo=$ac_try;;
6542esac
6543eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6544$as_echo "$ac_try_echo") >&5
6545  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6546  ac_status=$?
6547  grep -v '^ *+' conftest.er1 >conftest.err
6548  rm -f conftest.er1
6549  cat conftest.err >&5
6550  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551  (exit $ac_status); } >/dev/null && {
6552	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6553	 test ! -s conftest.err
6554       }; then
6555  ac_header_preproc=yes
6556else
6557  $as_echo "$as_me: failed program was:" >&5
6558sed 's/^/| /' conftest.$ac_ext >&5
6559
6560  ac_header_preproc=no
6561fi
6562
6563rm -f conftest.err conftest.$ac_ext
6564{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6565$as_echo "$ac_header_preproc" >&6; }
6566
6567# So?  What about this header?
6568case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6569  yes:no: )
6570    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6571$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6572    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6573$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6574    ac_header_preproc=yes
6575    ;;
6576  no:yes:* )
6577    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6578$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6579    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6580$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6581    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6582$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6583    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6584$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6585    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6586$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6587    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6588$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6589    ( cat <<\_ASBOX
6590@%:@@%:@ ------------------------------------------------ @%:@@%:@
6591@%:@@%:@ Report this to jonasia_at_closetothewind_dot_net @%:@@%:@
6592@%:@@%:@ ------------------------------------------------ @%:@@%:@
6593_ASBOX
6594     ) | sed "s/^/$as_me: WARNING:     /" >&2
6595    ;;
6596esac
6597{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6598$as_echo_n "checking for $ac_header... " >&6; }
6599if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6600  $as_echo_n "(cached) " >&6
6601else
6602  eval "$as_ac_Header=\$ac_header_preproc"
6603fi
6604ac_res=`eval 'as_val=${'$as_ac_Header'}
6605		 $as_echo "$as_val"'`
6606	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6607$as_echo "$ac_res" >&6; }
6608
6609fi
6610as_val=`eval 'as_val=${'$as_ac_Header'}
6611		 $as_echo "$as_val"'`
6612   if test "x$as_val" = x""yes; then
6613  cat >>confdefs.h <<_ACEOF
6614@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6615_ACEOF
6616
6617fi
6618
6619done
6620
6621
6622{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6623$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6624if test "${ac_cv_header_time+set}" = set; then
6625  $as_echo_n "(cached) " >&6
6626else
6627  cat >conftest.$ac_ext <<_ACEOF
6628/* confdefs.h.  */
6629_ACEOF
6630cat confdefs.h >>conftest.$ac_ext
6631cat >>conftest.$ac_ext <<_ACEOF
6632/* end confdefs.h.  */
6633#include <sys/types.h>
6634#include <sys/time.h>
6635#include <time.h>
6636
6637int
6638main ()
6639{
6640if ((struct tm *) 0)
6641return 0;
6642  ;
6643  return 0;
6644}
6645_ACEOF
6646rm -f conftest.$ac_objext
6647if { (ac_try="$ac_compile"
6648case "(($ac_try" in
6649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6650  *) ac_try_echo=$ac_try;;
6651esac
6652eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6653$as_echo "$ac_try_echo") >&5
6654  (eval "$ac_compile") 2>conftest.er1
6655  ac_status=$?
6656  grep -v '^ *+' conftest.er1 >conftest.err
6657  rm -f conftest.er1
6658  cat conftest.err >&5
6659  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660  (exit $ac_status); } && {
6661	 test -z "$ac_c_werror_flag" ||
6662	 test ! -s conftest.err
6663       } && test -s conftest.$ac_objext; then
6664  ac_cv_header_time=yes
6665else
6666  $as_echo "$as_me: failed program was:" >&5
6667sed 's/^/| /' conftest.$ac_ext >&5
6668
6669	ac_cv_header_time=no
6670fi
6671
6672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6673fi
6674{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6675$as_echo "$ac_cv_header_time" >&6; }
6676if test $ac_cv_header_time = yes; then
6677
6678cat >>confdefs.h <<\_ACEOF
6679@%:@define TIME_WITH_SYS_TIME 1
6680_ACEOF
6681
6682fi
6683
6684
6685if test "x$ares_enable" = "xyes" ; then
6686
6687
6688for ac_header in ares.h ares_version.h
6689do
6690as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6691if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6692  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6693$as_echo_n "checking for $ac_header... " >&6; }
6694if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6695  $as_echo_n "(cached) " >&6
6696fi
6697ac_res=`eval 'as_val=${'$as_ac_Header'}
6698		 $as_echo "$as_val"'`
6699	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6700$as_echo "$ac_res" >&6; }
6701else
6702  # Is the header compilable?
6703{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6704$as_echo_n "checking $ac_header usability... " >&6; }
6705cat >conftest.$ac_ext <<_ACEOF
6706/* confdefs.h.  */
6707_ACEOF
6708cat confdefs.h >>conftest.$ac_ext
6709cat >>conftest.$ac_ext <<_ACEOF
6710/* end confdefs.h.  */
6711$ac_includes_default
6712@%:@include <$ac_header>
6713_ACEOF
6714rm -f conftest.$ac_objext
6715if { (ac_try="$ac_compile"
6716case "(($ac_try" in
6717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6718  *) ac_try_echo=$ac_try;;
6719esac
6720eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6721$as_echo "$ac_try_echo") >&5
6722  (eval "$ac_compile") 2>conftest.er1
6723  ac_status=$?
6724  grep -v '^ *+' conftest.er1 >conftest.err
6725  rm -f conftest.er1
6726  cat conftest.err >&5
6727  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728  (exit $ac_status); } && {
6729	 test -z "$ac_c_werror_flag" ||
6730	 test ! -s conftest.err
6731       } && test -s conftest.$ac_objext; then
6732  ac_header_compiler=yes
6733else
6734  $as_echo "$as_me: failed program was:" >&5
6735sed 's/^/| /' conftest.$ac_ext >&5
6736
6737	ac_header_compiler=no
6738fi
6739
6740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6741{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6742$as_echo "$ac_header_compiler" >&6; }
6743
6744# Is the header present?
6745{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6746$as_echo_n "checking $ac_header presence... " >&6; }
6747cat >conftest.$ac_ext <<_ACEOF
6748/* confdefs.h.  */
6749_ACEOF
6750cat confdefs.h >>conftest.$ac_ext
6751cat >>conftest.$ac_ext <<_ACEOF
6752/* end confdefs.h.  */
6753@%:@include <$ac_header>
6754_ACEOF
6755if { (ac_try="$ac_cpp conftest.$ac_ext"
6756case "(($ac_try" in
6757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6758  *) ac_try_echo=$ac_try;;
6759esac
6760eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6761$as_echo "$ac_try_echo") >&5
6762  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6763  ac_status=$?
6764  grep -v '^ *+' conftest.er1 >conftest.err
6765  rm -f conftest.er1
6766  cat conftest.err >&5
6767  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768  (exit $ac_status); } >/dev/null && {
6769	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6770	 test ! -s conftest.err
6771       }; then
6772  ac_header_preproc=yes
6773else
6774  $as_echo "$as_me: failed program was:" >&5
6775sed 's/^/| /' conftest.$ac_ext >&5
6776
6777  ac_header_preproc=no
6778fi
6779
6780rm -f conftest.err conftest.$ac_ext
6781{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6782$as_echo "$ac_header_preproc" >&6; }
6783
6784# So?  What about this header?
6785case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6786  yes:no: )
6787    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6788$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6789    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6790$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6791    ac_header_preproc=yes
6792    ;;
6793  no:yes:* )
6794    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6795$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6796    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6797$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6798    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6799$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6800    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6801$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6802    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6803$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6804    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6805$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6806    ( cat <<\_ASBOX
6807@%:@@%:@ ------------------------------------------------ @%:@@%:@
6808@%:@@%:@ Report this to jonasia_at_closetothewind_dot_net @%:@@%:@
6809@%:@@%:@ ------------------------------------------------ @%:@@%:@
6810_ASBOX
6811     ) | sed "s/^/$as_me: WARNING:     /" >&2
6812    ;;
6813esac
6814{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6815$as_echo_n "checking for $ac_header... " >&6; }
6816if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6817  $as_echo_n "(cached) " >&6
6818else
6819  eval "$as_ac_Header=\$ac_header_preproc"
6820fi
6821ac_res=`eval 'as_val=${'$as_ac_Header'}
6822		 $as_echo "$as_val"'`
6823	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6824$as_echo "$ac_res" >&6; }
6825
6826fi
6827as_val=`eval 'as_val=${'$as_ac_Header'}
6828		 $as_echo "$as_val"'`
6829   if test "x$as_val" = x""yes; then
6830  cat >>confdefs.h <<_ACEOF
6831@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6832_ACEOF
6833
6834fi
6835
6836done
6837
6838fi
6839
6840if test "x$have_openssl" = "xyes" ; then
6841
6842
6843
6844for ac_header in openssl/x509.h openssl/ssl.h openssl/err.h
6845do
6846as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6847if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6848  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6849$as_echo_n "checking for $ac_header... " >&6; }
6850if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6851  $as_echo_n "(cached) " >&6
6852fi
6853ac_res=`eval 'as_val=${'$as_ac_Header'}
6854		 $as_echo "$as_val"'`
6855	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6856$as_echo "$ac_res" >&6; }
6857else
6858  # Is the header compilable?
6859{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6860$as_echo_n "checking $ac_header usability... " >&6; }
6861cat >conftest.$ac_ext <<_ACEOF
6862/* confdefs.h.  */
6863_ACEOF
6864cat confdefs.h >>conftest.$ac_ext
6865cat >>conftest.$ac_ext <<_ACEOF
6866/* end confdefs.h.  */
6867$ac_includes_default
6868@%:@include <$ac_header>
6869_ACEOF
6870rm -f conftest.$ac_objext
6871if { (ac_try="$ac_compile"
6872case "(($ac_try" in
6873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6874  *) ac_try_echo=$ac_try;;
6875esac
6876eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6877$as_echo "$ac_try_echo") >&5
6878  (eval "$ac_compile") 2>conftest.er1
6879  ac_status=$?
6880  grep -v '^ *+' conftest.er1 >conftest.err
6881  rm -f conftest.er1
6882  cat conftest.err >&5
6883  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884  (exit $ac_status); } && {
6885	 test -z "$ac_c_werror_flag" ||
6886	 test ! -s conftest.err
6887       } && test -s conftest.$ac_objext; then
6888  ac_header_compiler=yes
6889else
6890  $as_echo "$as_me: failed program was:" >&5
6891sed 's/^/| /' conftest.$ac_ext >&5
6892
6893	ac_header_compiler=no
6894fi
6895
6896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6897{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6898$as_echo "$ac_header_compiler" >&6; }
6899
6900# Is the header present?
6901{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6902$as_echo_n "checking $ac_header presence... " >&6; }
6903cat >conftest.$ac_ext <<_ACEOF
6904/* confdefs.h.  */
6905_ACEOF
6906cat confdefs.h >>conftest.$ac_ext
6907cat >>conftest.$ac_ext <<_ACEOF
6908/* end confdefs.h.  */
6909@%:@include <$ac_header>
6910_ACEOF
6911if { (ac_try="$ac_cpp conftest.$ac_ext"
6912case "(($ac_try" in
6913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6914  *) ac_try_echo=$ac_try;;
6915esac
6916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6917$as_echo "$ac_try_echo") >&5
6918  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6919  ac_status=$?
6920  grep -v '^ *+' conftest.er1 >conftest.err
6921  rm -f conftest.er1
6922  cat conftest.err >&5
6923  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924  (exit $ac_status); } >/dev/null && {
6925	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6926	 test ! -s conftest.err
6927       }; then
6928  ac_header_preproc=yes
6929else
6930  $as_echo "$as_me: failed program was:" >&5
6931sed 's/^/| /' conftest.$ac_ext >&5
6932
6933  ac_header_preproc=no
6934fi
6935
6936rm -f conftest.err conftest.$ac_ext
6937{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6938$as_echo "$ac_header_preproc" >&6; }
6939
6940# So?  What about this header?
6941case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6942  yes:no: )
6943    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6944$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6945    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6946$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6947    ac_header_preproc=yes
6948    ;;
6949  no:yes:* )
6950    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6951$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6952    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6953$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6954    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6955$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6956    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6957$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6958    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6959$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6960    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6961$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6962    ( cat <<\_ASBOX
6963@%:@@%:@ ------------------------------------------------ @%:@@%:@
6964@%:@@%:@ Report this to jonasia_at_closetothewind_dot_net @%:@@%:@
6965@%:@@%:@ ------------------------------------------------ @%:@@%:@
6966_ASBOX
6967     ) | sed "s/^/$as_me: WARNING:     /" >&2
6968    ;;
6969esac
6970{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6971$as_echo_n "checking for $ac_header... " >&6; }
6972if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6973  $as_echo_n "(cached) " >&6
6974else
6975  eval "$as_ac_Header=\$ac_header_preproc"
6976fi
6977ac_res=`eval 'as_val=${'$as_ac_Header'}
6978		 $as_echo "$as_val"'`
6979	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6980$as_echo "$ac_res" >&6; }
6981
6982fi
6983as_val=`eval 'as_val=${'$as_ac_Header'}
6984		 $as_echo "$as_val"'`
6985   if test "x$as_val" = x""yes; then
6986  cat >>confdefs.h <<_ACEOF
6987@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6988_ACEOF
6989
6990fi
6991
6992done
6993
6994fi
6995if test "x$have_gnutls" = "xyes" ; then
6996
6997for ac_header in gnutls/openssl.h
6998do
6999as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7000if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7001  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7002$as_echo_n "checking for $ac_header... " >&6; }
7003if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7004  $as_echo_n "(cached) " >&6
7005fi
7006ac_res=`eval 'as_val=${'$as_ac_Header'}
7007		 $as_echo "$as_val"'`
7008	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7009$as_echo "$ac_res" >&6; }
7010else
7011  # Is the header compilable?
7012{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7013$as_echo_n "checking $ac_header usability... " >&6; }
7014cat >conftest.$ac_ext <<_ACEOF
7015/* confdefs.h.  */
7016_ACEOF
7017cat confdefs.h >>conftest.$ac_ext
7018cat >>conftest.$ac_ext <<_ACEOF
7019/* end confdefs.h.  */
7020$ac_includes_default
7021@%:@include <$ac_header>
7022_ACEOF
7023rm -f conftest.$ac_objext
7024if { (ac_try="$ac_compile"
7025case "(($ac_try" in
7026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7027  *) ac_try_echo=$ac_try;;
7028esac
7029eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7030$as_echo "$ac_try_echo") >&5
7031  (eval "$ac_compile") 2>conftest.er1
7032  ac_status=$?
7033  grep -v '^ *+' conftest.er1 >conftest.err
7034  rm -f conftest.er1
7035  cat conftest.err >&5
7036  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037  (exit $ac_status); } && {
7038	 test -z "$ac_c_werror_flag" ||
7039	 test ! -s conftest.err
7040       } && test -s conftest.$ac_objext; then
7041  ac_header_compiler=yes
7042else
7043  $as_echo "$as_me: failed program was:" >&5
7044sed 's/^/| /' conftest.$ac_ext >&5
7045
7046	ac_header_compiler=no
7047fi
7048
7049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7050{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7051$as_echo "$ac_header_compiler" >&6; }
7052
7053# Is the header present?
7054{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7055$as_echo_n "checking $ac_header presence... " >&6; }
7056cat >conftest.$ac_ext <<_ACEOF
7057/* confdefs.h.  */
7058_ACEOF
7059cat confdefs.h >>conftest.$ac_ext
7060cat >>conftest.$ac_ext <<_ACEOF
7061/* end confdefs.h.  */
7062@%:@include <$ac_header>
7063_ACEOF
7064if { (ac_try="$ac_cpp conftest.$ac_ext"
7065case "(($ac_try" in
7066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7067  *) ac_try_echo=$ac_try;;
7068esac
7069eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7070$as_echo "$ac_try_echo") >&5
7071  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7072  ac_status=$?
7073  grep -v '^ *+' conftest.er1 >conftest.err
7074  rm -f conftest.er1
7075  cat conftest.err >&5
7076  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077  (exit $ac_status); } >/dev/null && {
7078	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7079	 test ! -s conftest.err
7080       }; then
7081  ac_header_preproc=yes
7082else
7083  $as_echo "$as_me: failed program was:" >&5
7084sed 's/^/| /' conftest.$ac_ext >&5
7085
7086  ac_header_preproc=no
7087fi
7088
7089rm -f conftest.err conftest.$ac_ext
7090{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7091$as_echo "$ac_header_preproc" >&6; }
7092
7093# So?  What about this header?
7094case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7095  yes:no: )
7096    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7097$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7098    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7099$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7100    ac_header_preproc=yes
7101    ;;
7102  no:yes:* )
7103    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7104$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7105    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7106$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7107    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7108$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7109    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7110$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7111    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7112$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7113    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7114$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7115    ( cat <<\_ASBOX
7116@%:@@%:@ ------------------------------------------------ @%:@@%:@
7117@%:@@%:@ Report this to jonasia_at_closetothewind_dot_net @%:@@%:@
7118@%:@@%:@ ------------------------------------------------ @%:@@%:@
7119_ASBOX
7120     ) | sed "s/^/$as_me: WARNING:     /" >&2
7121    ;;
7122esac
7123{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7124$as_echo_n "checking for $ac_header... " >&6; }
7125if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7126  $as_echo_n "(cached) " >&6
7127else
7128  eval "$as_ac_Header=\$ac_header_preproc"
7129fi
7130ac_res=`eval 'as_val=${'$as_ac_Header'}
7131		 $as_echo "$as_val"'`
7132	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7133$as_echo "$ac_res" >&6; }
7134
7135fi
7136as_val=`eval 'as_val=${'$as_ac_Header'}
7137		 $as_echo "$as_val"'`
7138   if test "x$as_val" = x""yes; then
7139  cat >>confdefs.h <<_ACEOF
7140@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7141_ACEOF
7142
7143fi
7144
7145done
7146
7147fi
7148
7149if test "x$memdebug" = "xyes" ; then
7150
7151for ac_header in memcalls.h
7152do
7153as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7154if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7155  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7156$as_echo_n "checking for $ac_header... " >&6; }
7157if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7158  $as_echo_n "(cached) " >&6
7159fi
7160ac_res=`eval 'as_val=${'$as_ac_Header'}
7161		 $as_echo "$as_val"'`
7162	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7163$as_echo "$ac_res" >&6; }
7164else
7165  # Is the header compilable?
7166{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7167$as_echo_n "checking $ac_header usability... " >&6; }
7168cat >conftest.$ac_ext <<_ACEOF
7169/* confdefs.h.  */
7170_ACEOF
7171cat confdefs.h >>conftest.$ac_ext
7172cat >>conftest.$ac_ext <<_ACEOF
7173/* end confdefs.h.  */
7174$ac_includes_default
7175@%:@include <$ac_header>
7176_ACEOF
7177rm -f conftest.$ac_objext
7178if { (ac_try="$ac_compile"
7179case "(($ac_try" in
7180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7181  *) ac_try_echo=$ac_try;;
7182esac
7183eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7184$as_echo "$ac_try_echo") >&5
7185  (eval "$ac_compile") 2>conftest.er1
7186  ac_status=$?
7187  grep -v '^ *+' conftest.er1 >conftest.err
7188  rm -f conftest.er1
7189  cat conftest.err >&5
7190  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191  (exit $ac_status); } && {
7192	 test -z "$ac_c_werror_flag" ||
7193	 test ! -s conftest.err
7194       } && test -s conftest.$ac_objext; then
7195  ac_header_compiler=yes
7196else
7197  $as_echo "$as_me: failed program was:" >&5
7198sed 's/^/| /' conftest.$ac_ext >&5
7199
7200	ac_header_compiler=no
7201fi
7202
7203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7204{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7205$as_echo "$ac_header_compiler" >&6; }
7206
7207# Is the header present?
7208{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7209$as_echo_n "checking $ac_header presence... " >&6; }
7210cat >conftest.$ac_ext <<_ACEOF
7211/* confdefs.h.  */
7212_ACEOF
7213cat confdefs.h >>conftest.$ac_ext
7214cat >>conftest.$ac_ext <<_ACEOF
7215/* end confdefs.h.  */
7216@%:@include <$ac_header>
7217_ACEOF
7218if { (ac_try="$ac_cpp conftest.$ac_ext"
7219case "(($ac_try" in
7220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7221  *) ac_try_echo=$ac_try;;
7222esac
7223eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7224$as_echo "$ac_try_echo") >&5
7225  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7226  ac_status=$?
7227  grep -v '^ *+' conftest.er1 >conftest.err
7228  rm -f conftest.er1
7229  cat conftest.err >&5
7230  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231  (exit $ac_status); } >/dev/null && {
7232	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7233	 test ! -s conftest.err
7234       }; then
7235  ac_header_preproc=yes
7236else
7237  $as_echo "$as_me: failed program was:" >&5
7238sed 's/^/| /' conftest.$ac_ext >&5
7239
7240  ac_header_preproc=no
7241fi
7242
7243rm -f conftest.err conftest.$ac_ext
7244{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7245$as_echo "$ac_header_preproc" >&6; }
7246
7247# So?  What about this header?
7248case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7249  yes:no: )
7250    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7251$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7252    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7253$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7254    ac_header_preproc=yes
7255    ;;
7256  no:yes:* )
7257    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7258$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7259    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7260$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7261    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7262$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7263    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7264$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7265    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7266$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7267    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7268$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7269    ( cat <<\_ASBOX
7270@%:@@%:@ ------------------------------------------------ @%:@@%:@
7271@%:@@%:@ Report this to jonasia_at_closetothewind_dot_net @%:@@%:@
7272@%:@@%:@ ------------------------------------------------ @%:@@%:@
7273_ASBOX
7274     ) | sed "s/^/$as_me: WARNING:     /" >&2
7275    ;;
7276esac
7277{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7278$as_echo_n "checking for $ac_header... " >&6; }
7279if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7280  $as_echo_n "(cached) " >&6
7281else
7282  eval "$as_ac_Header=\$ac_header_preproc"
7283fi
7284ac_res=`eval 'as_val=${'$as_ac_Header'}
7285		 $as_echo "$as_val"'`
7286	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7287$as_echo "$ac_res" >&6; }
7288
7289fi
7290as_val=`eval 'as_val=${'$as_ac_Header'}
7291		 $as_echo "$as_val"'`
7292   if test "x$as_val" = x""yes; then
7293  cat >>confdefs.h <<_ACEOF
7294@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7295_ACEOF
7296
7297fi
7298
7299done
7300
7301fi
7302
7303if test "x$fddebug" = "xyes" ; then
7304
7305for ac_header in fddebug.h
7306do
7307as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7308if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7309  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7310$as_echo_n "checking for $ac_header... " >&6; }
7311if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7312  $as_echo_n "(cached) " >&6
7313fi
7314ac_res=`eval 'as_val=${'$as_ac_Header'}
7315		 $as_echo "$as_val"'`
7316	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7317$as_echo "$ac_res" >&6; }
7318else
7319  # Is the header compilable?
7320{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7321$as_echo_n "checking $ac_header usability... " >&6; }
7322cat >conftest.$ac_ext <<_ACEOF
7323/* confdefs.h.  */
7324_ACEOF
7325cat confdefs.h >>conftest.$ac_ext
7326cat >>conftest.$ac_ext <<_ACEOF
7327/* end confdefs.h.  */
7328$ac_includes_default
7329@%:@include <$ac_header>
7330_ACEOF
7331rm -f conftest.$ac_objext
7332if { (ac_try="$ac_compile"
7333case "(($ac_try" in
7334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7335  *) ac_try_echo=$ac_try;;
7336esac
7337eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7338$as_echo "$ac_try_echo") >&5
7339  (eval "$ac_compile") 2>conftest.er1
7340  ac_status=$?
7341  grep -v '^ *+' conftest.er1 >conftest.err
7342  rm -f conftest.er1
7343  cat conftest.err >&5
7344  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345  (exit $ac_status); } && {
7346	 test -z "$ac_c_werror_flag" ||
7347	 test ! -s conftest.err
7348       } && test -s conftest.$ac_objext; then
7349  ac_header_compiler=yes
7350else
7351  $as_echo "$as_me: failed program was:" >&5
7352sed 's/^/| /' conftest.$ac_ext >&5
7353
7354	ac_header_compiler=no
7355fi
7356
7357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7358{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7359$as_echo "$ac_header_compiler" >&6; }
7360
7361# Is the header present?
7362{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7363$as_echo_n "checking $ac_header presence... " >&6; }
7364cat >conftest.$ac_ext <<_ACEOF
7365/* confdefs.h.  */
7366_ACEOF
7367cat confdefs.h >>conftest.$ac_ext
7368cat >>conftest.$ac_ext <<_ACEOF
7369/* end confdefs.h.  */
7370@%:@include <$ac_header>
7371_ACEOF
7372if { (ac_try="$ac_cpp conftest.$ac_ext"
7373case "(($ac_try" in
7374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7375  *) ac_try_echo=$ac_try;;
7376esac
7377eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7378$as_echo "$ac_try_echo") >&5
7379  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7380  ac_status=$?
7381  grep -v '^ *+' conftest.er1 >conftest.err
7382  rm -f conftest.er1
7383  cat conftest.err >&5
7384  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385  (exit $ac_status); } >/dev/null && {
7386	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7387	 test ! -s conftest.err
7388       }; then
7389  ac_header_preproc=yes
7390else
7391  $as_echo "$as_me: failed program was:" >&5
7392sed 's/^/| /' conftest.$ac_ext >&5
7393
7394  ac_header_preproc=no
7395fi
7396
7397rm -f conftest.err conftest.$ac_ext
7398{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7399$as_echo "$ac_header_preproc" >&6; }
7400
7401# So?  What about this header?
7402case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7403  yes:no: )
7404    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7405$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7406    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7407$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7408    ac_header_preproc=yes
7409    ;;
7410  no:yes:* )
7411    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7412$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7413    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7414$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7415    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7416$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7417    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7418$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7419    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7420$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7421    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7422$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7423    ( cat <<\_ASBOX
7424@%:@@%:@ ------------------------------------------------ @%:@@%:@
7425@%:@@%:@ Report this to jonasia_at_closetothewind_dot_net @%:@@%:@
7426@%:@@%:@ ------------------------------------------------ @%:@@%:@
7427_ASBOX
7428     ) | sed "s/^/$as_me: WARNING:     /" >&2
7429    ;;
7430esac
7431{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7432$as_echo_n "checking for $ac_header... " >&6; }
7433if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7434  $as_echo_n "(cached) " >&6
7435else
7436  eval "$as_ac_Header=\$ac_header_preproc"
7437fi
7438ac_res=`eval 'as_val=${'$as_ac_Header'}
7439		 $as_echo "$as_val"'`
7440	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7441$as_echo "$ac_res" >&6; }
7442
7443fi
7444as_val=`eval 'as_val=${'$as_ac_Header'}
7445		 $as_echo "$as_val"'`
7446   if test "x$as_val" = x""yes; then
7447  cat >>confdefs.h <<_ACEOF
7448@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7449_ACEOF
7450
7451fi
7452
7453done
7454
7455fi
7456
7457# Checks for types.
7458
7459{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7460$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7461if test "${ac_cv_c_const+set}" = set; then
7462  $as_echo_n "(cached) " >&6
7463else
7464  cat >conftest.$ac_ext <<_ACEOF
7465/* confdefs.h.  */
7466_ACEOF
7467cat confdefs.h >>conftest.$ac_ext
7468cat >>conftest.$ac_ext <<_ACEOF
7469/* end confdefs.h.  */
7470
7471int
7472main ()
7473{
7474/* FIXME: Include the comments suggested by Paul. */
7475#ifndef __cplusplus
7476  /* Ultrix mips cc rejects this.  */
7477  typedef int charset[2];
7478  const charset cs;
7479  /* SunOS 4.1.1 cc rejects this.  */
7480  char const *const *pcpcc;
7481  char **ppc;
7482  /* NEC SVR4.0.2 mips cc rejects this.  */
7483  struct point {int x, y;};
7484  static struct point const zero = {0,0};
7485  /* AIX XL C 1.02.0.0 rejects this.
7486     It does not let you subtract one const X* pointer from another in
7487     an arm of an if-expression whose if-part is not a constant
7488     expression */
7489  const char *g = "string";
7490  pcpcc = &g + (g ? g-g : 0);
7491  /* HPUX 7.0 cc rejects these. */
7492  ++pcpcc;
7493  ppc = (char**) pcpcc;
7494  pcpcc = (char const *const *) ppc;
7495  { /* SCO 3.2v4 cc rejects this.  */
7496    char *t;
7497    char const *s = 0 ? (char *) 0 : (char const *) 0;
7498
7499    *t++ = 0;
7500    if (s) return 0;
7501  }
7502  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7503    int x[] = {25, 17};
7504    const int *foo = &x[0];
7505    ++foo;
7506  }
7507  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7508    typedef const int *iptr;
7509    iptr p = 0;
7510    ++p;
7511  }
7512  { /* AIX XL C 1.02.0.0 rejects this saying
7513       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7514    struct s { int j; const int *ap[3]; };
7515    struct s *b; b->j = 5;
7516  }
7517  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7518    const int foo = 10;
7519    if (!foo) return 0;
7520  }
7521  return !cs[0] && !zero.x;
7522#endif
7523
7524  ;
7525  return 0;
7526}
7527_ACEOF
7528rm -f conftest.$ac_objext
7529if { (ac_try="$ac_compile"
7530case "(($ac_try" in
7531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7532  *) ac_try_echo=$ac_try;;
7533esac
7534eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7535$as_echo "$ac_try_echo") >&5
7536  (eval "$ac_compile") 2>conftest.er1
7537  ac_status=$?
7538  grep -v '^ *+' conftest.er1 >conftest.err
7539  rm -f conftest.er1
7540  cat conftest.err >&5
7541  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542  (exit $ac_status); } && {
7543	 test -z "$ac_c_werror_flag" ||
7544	 test ! -s conftest.err
7545       } && test -s conftest.$ac_objext; then
7546  ac_cv_c_const=yes
7547else
7548  $as_echo "$as_me: failed program was:" >&5
7549sed 's/^/| /' conftest.$ac_ext >&5
7550
7551	ac_cv_c_const=no
7552fi
7553
7554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7555fi
7556{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7557$as_echo "$ac_cv_c_const" >&6; }
7558if test $ac_cv_c_const = no; then
7559
7560cat >>confdefs.h <<\_ACEOF
7561@%:@define const /**/
7562_ACEOF
7563
7564fi
7565
7566
7567{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
7568$as_echo_n "checking for size_t... " >&6; }
7569if test "${ac_cv_type_size_t+set}" = set; then
7570  $as_echo_n "(cached) " >&6
7571else
7572  ac_cv_type_size_t=no
7573cat >conftest.$ac_ext <<_ACEOF
7574/* confdefs.h.  */
7575_ACEOF
7576cat confdefs.h >>conftest.$ac_ext
7577cat >>conftest.$ac_ext <<_ACEOF
7578/* end confdefs.h.  */
7579$ac_includes_default
7580
7581int
7582main ()
7583{
7584if (sizeof (size_t))
7585       return 0;
7586  ;
7587  return 0;
7588}
7589_ACEOF
7590rm -f conftest.$ac_objext
7591if { (ac_try="$ac_compile"
7592case "(($ac_try" in
7593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7594  *) ac_try_echo=$ac_try;;
7595esac
7596eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7597$as_echo "$ac_try_echo") >&5
7598  (eval "$ac_compile") 2>conftest.er1
7599  ac_status=$?
7600  grep -v '^ *+' conftest.er1 >conftest.err
7601  rm -f conftest.er1
7602  cat conftest.err >&5
7603  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604  (exit $ac_status); } && {
7605	 test -z "$ac_c_werror_flag" ||
7606	 test ! -s conftest.err
7607       } && test -s conftest.$ac_objext; then
7608  cat >conftest.$ac_ext <<_ACEOF
7609/* confdefs.h.  */
7610_ACEOF
7611cat confdefs.h >>conftest.$ac_ext
7612cat >>conftest.$ac_ext <<_ACEOF
7613/* end confdefs.h.  */
7614$ac_includes_default
7615
7616int
7617main ()
7618{
7619if (sizeof ((size_t)))
7620	  return 0;
7621  ;
7622  return 0;
7623}
7624_ACEOF
7625rm -f conftest.$ac_objext
7626if { (ac_try="$ac_compile"
7627case "(($ac_try" in
7628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7629  *) ac_try_echo=$ac_try;;
7630esac
7631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7632$as_echo "$ac_try_echo") >&5
7633  (eval "$ac_compile") 2>conftest.er1
7634  ac_status=$?
7635  grep -v '^ *+' conftest.er1 >conftest.err
7636  rm -f conftest.er1
7637  cat conftest.err >&5
7638  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639  (exit $ac_status); } && {
7640	 test -z "$ac_c_werror_flag" ||
7641	 test ! -s conftest.err
7642       } && test -s conftest.$ac_objext; then
7643  :
7644else
7645  $as_echo "$as_me: failed program was:" >&5
7646sed 's/^/| /' conftest.$ac_ext >&5
7647
7648	ac_cv_type_size_t=yes
7649fi
7650
7651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7652else
7653  $as_echo "$as_me: failed program was:" >&5
7654sed 's/^/| /' conftest.$ac_ext >&5
7655
7656
7657fi
7658
7659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7660fi
7661{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7662$as_echo "$ac_cv_type_size_t" >&6; }
7663if test "x$ac_cv_type_size_t" = x""yes; then
7664
7665cat >>confdefs.h <<_ACEOF
7666@%:@define HAVE_SIZE_T 1
7667_ACEOF
7668
7669
7670fi
7671
7672{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
7673$as_echo_n "checking for pid_t... " >&6; }
7674if test "${ac_cv_type_pid_t+set}" = set; then
7675  $as_echo_n "(cached) " >&6
7676else
7677  ac_cv_type_pid_t=no
7678cat >conftest.$ac_ext <<_ACEOF
7679/* confdefs.h.  */
7680_ACEOF
7681cat confdefs.h >>conftest.$ac_ext
7682cat >>conftest.$ac_ext <<_ACEOF
7683/* end confdefs.h.  */
7684$ac_includes_default
7685
7686int
7687main ()
7688{
7689if (sizeof (pid_t))
7690       return 0;
7691  ;
7692  return 0;
7693}
7694_ACEOF
7695rm -f conftest.$ac_objext
7696if { (ac_try="$ac_compile"
7697case "(($ac_try" in
7698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7699  *) ac_try_echo=$ac_try;;
7700esac
7701eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7702$as_echo "$ac_try_echo") >&5
7703  (eval "$ac_compile") 2>conftest.er1
7704  ac_status=$?
7705  grep -v '^ *+' conftest.er1 >conftest.err
7706  rm -f conftest.er1
7707  cat conftest.err >&5
7708  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709  (exit $ac_status); } && {
7710	 test -z "$ac_c_werror_flag" ||
7711	 test ! -s conftest.err
7712       } && test -s conftest.$ac_objext; then
7713  cat >conftest.$ac_ext <<_ACEOF
7714/* confdefs.h.  */
7715_ACEOF
7716cat confdefs.h >>conftest.$ac_ext
7717cat >>conftest.$ac_ext <<_ACEOF
7718/* end confdefs.h.  */
7719$ac_includes_default
7720
7721int
7722main ()
7723{
7724if (sizeof ((pid_t)))
7725	  return 0;
7726  ;
7727  return 0;
7728}
7729_ACEOF
7730rm -f conftest.$ac_objext
7731if { (ac_try="$ac_compile"
7732case "(($ac_try" in
7733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7734  *) ac_try_echo=$ac_try;;
7735esac
7736eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7737$as_echo "$ac_try_echo") >&5
7738  (eval "$ac_compile") 2>conftest.er1
7739  ac_status=$?
7740  grep -v '^ *+' conftest.er1 >conftest.err
7741  rm -f conftest.er1
7742  cat conftest.err >&5
7743  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744  (exit $ac_status); } && {
7745	 test -z "$ac_c_werror_flag" ||
7746	 test ! -s conftest.err
7747       } && test -s conftest.$ac_objext; then
7748  :
7749else
7750  $as_echo "$as_me: failed program was:" >&5
7751sed 's/^/| /' conftest.$ac_ext >&5
7752
7753	ac_cv_type_pid_t=yes
7754fi
7755
7756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7757else
7758  $as_echo "$as_me: failed program was:" >&5
7759sed 's/^/| /' conftest.$ac_ext >&5
7760
7761
7762fi
7763
7764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7765fi
7766{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7767$as_echo "$ac_cv_type_pid_t" >&6; }
7768if test "x$ac_cv_type_pid_t" = x""yes; then
7769
7770cat >>confdefs.h <<_ACEOF
7771@%:@define HAVE_PID_T 1
7772_ACEOF
7773
7774
7775fi
7776
7777{ $as_echo "$as_me:$LINENO: checking for uid_t" >&5
7778$as_echo_n "checking for uid_t... " >&6; }
7779if test "${ac_cv_type_uid_t+set}" = set; then
7780  $as_echo_n "(cached) " >&6
7781else
7782  ac_cv_type_uid_t=no
7783cat >conftest.$ac_ext <<_ACEOF
7784/* confdefs.h.  */
7785_ACEOF
7786cat confdefs.h >>conftest.$ac_ext
7787cat >>conftest.$ac_ext <<_ACEOF
7788/* end confdefs.h.  */
7789$ac_includes_default
7790
7791int
7792main ()
7793{
7794if (sizeof (uid_t))
7795       return 0;
7796  ;
7797  return 0;
7798}
7799_ACEOF
7800rm -f conftest.$ac_objext
7801if { (ac_try="$ac_compile"
7802case "(($ac_try" in
7803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7804  *) ac_try_echo=$ac_try;;
7805esac
7806eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7807$as_echo "$ac_try_echo") >&5
7808  (eval "$ac_compile") 2>conftest.er1
7809  ac_status=$?
7810  grep -v '^ *+' conftest.er1 >conftest.err
7811  rm -f conftest.er1
7812  cat conftest.err >&5
7813  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814  (exit $ac_status); } && {
7815	 test -z "$ac_c_werror_flag" ||
7816	 test ! -s conftest.err
7817       } && test -s conftest.$ac_objext; then
7818  cat >conftest.$ac_ext <<_ACEOF
7819/* confdefs.h.  */
7820_ACEOF
7821cat confdefs.h >>conftest.$ac_ext
7822cat >>conftest.$ac_ext <<_ACEOF
7823/* end confdefs.h.  */
7824$ac_includes_default
7825
7826int
7827main ()
7828{
7829if (sizeof ((uid_t)))
7830	  return 0;
7831  ;
7832  return 0;
7833}
7834_ACEOF
7835rm -f conftest.$ac_objext
7836if { (ac_try="$ac_compile"
7837case "(($ac_try" in
7838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7839  *) ac_try_echo=$ac_try;;
7840esac
7841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7842$as_echo "$ac_try_echo") >&5
7843  (eval "$ac_compile") 2>conftest.er1
7844  ac_status=$?
7845  grep -v '^ *+' conftest.er1 >conftest.err
7846  rm -f conftest.er1
7847  cat conftest.err >&5
7848  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849  (exit $ac_status); } && {
7850	 test -z "$ac_c_werror_flag" ||
7851	 test ! -s conftest.err
7852       } && test -s conftest.$ac_objext; then
7853  :
7854else
7855  $as_echo "$as_me: failed program was:" >&5
7856sed 's/^/| /' conftest.$ac_ext >&5
7857
7858	ac_cv_type_uid_t=yes
7859fi
7860
7861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7862else
7863  $as_echo "$as_me: failed program was:" >&5
7864sed 's/^/| /' conftest.$ac_ext >&5
7865
7866
7867fi
7868
7869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7870fi
7871{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7872$as_echo "$ac_cv_type_uid_t" >&6; }
7873if test "x$ac_cv_type_uid_t" = x""yes; then
7874
7875cat >>confdefs.h <<_ACEOF
7876@%:@define HAVE_UID_T 1
7877_ACEOF
7878
7879
7880fi
7881
7882{ $as_echo "$as_me:$LINENO: checking for gid_t" >&5
7883$as_echo_n "checking for gid_t... " >&6; }
7884if test "${ac_cv_type_gid_t+set}" = set; then
7885  $as_echo_n "(cached) " >&6
7886else
7887  ac_cv_type_gid_t=no
7888cat >conftest.$ac_ext <<_ACEOF
7889/* confdefs.h.  */
7890_ACEOF
7891cat confdefs.h >>conftest.$ac_ext
7892cat >>conftest.$ac_ext <<_ACEOF
7893/* end confdefs.h.  */
7894$ac_includes_default
7895
7896int
7897main ()
7898{
7899if (sizeof (gid_t))
7900       return 0;
7901  ;
7902  return 0;
7903}
7904_ACEOF
7905rm -f conftest.$ac_objext
7906if { (ac_try="$ac_compile"
7907case "(($ac_try" in
7908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7909  *) ac_try_echo=$ac_try;;
7910esac
7911eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7912$as_echo "$ac_try_echo") >&5
7913  (eval "$ac_compile") 2>conftest.er1
7914  ac_status=$?
7915  grep -v '^ *+' conftest.er1 >conftest.err
7916  rm -f conftest.er1
7917  cat conftest.err >&5
7918  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919  (exit $ac_status); } && {
7920	 test -z "$ac_c_werror_flag" ||
7921	 test ! -s conftest.err
7922       } && test -s conftest.$ac_objext; then
7923  cat >conftest.$ac_ext <<_ACEOF
7924/* confdefs.h.  */
7925_ACEOF
7926cat confdefs.h >>conftest.$ac_ext
7927cat >>conftest.$ac_ext <<_ACEOF
7928/* end confdefs.h.  */
7929$ac_includes_default
7930
7931int
7932main ()
7933{
7934if (sizeof ((gid_t)))
7935	  return 0;
7936  ;
7937  return 0;
7938}
7939_ACEOF
7940rm -f conftest.$ac_objext
7941if { (ac_try="$ac_compile"
7942case "(($ac_try" in
7943  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7944  *) ac_try_echo=$ac_try;;
7945esac
7946eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7947$as_echo "$ac_try_echo") >&5
7948  (eval "$ac_compile") 2>conftest.er1
7949  ac_status=$?
7950  grep -v '^ *+' conftest.er1 >conftest.err
7951  rm -f conftest.er1
7952  cat conftest.err >&5
7953  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954  (exit $ac_status); } && {
7955	 test -z "$ac_c_werror_flag" ||
7956	 test ! -s conftest.err
7957       } && test -s conftest.$ac_objext; then
7958  :
7959else
7960  $as_echo "$as_me: failed program was:" >&5
7961sed 's/^/| /' conftest.$ac_ext >&5
7962
7963	ac_cv_type_gid_t=yes
7964fi
7965
7966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7967else
7968  $as_echo "$as_me: failed program was:" >&5
7969sed 's/^/| /' conftest.$ac_ext >&5
7970
7971
7972fi
7973
7974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7975fi
7976{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_gid_t" >&5
7977$as_echo "$ac_cv_type_gid_t" >&6; }
7978if test "x$ac_cv_type_gid_t" = x""yes; then
7979
7980cat >>confdefs.h <<_ACEOF
7981@%:@define HAVE_GID_T 1
7982_ACEOF
7983
7984
7985fi
7986
7987{ $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
7988$as_echo_n "checking for socklen_t... " >&6; }
7989if test "${ac_cv_type_socklen_t+set}" = set; then
7990  $as_echo_n "(cached) " >&6
7991else
7992  ac_cv_type_socklen_t=no
7993cat >conftest.$ac_ext <<_ACEOF
7994/* confdefs.h.  */
7995_ACEOF
7996cat confdefs.h >>conftest.$ac_ext
7997cat >>conftest.$ac_ext <<_ACEOF
7998/* end confdefs.h.  */
7999$ac_includes_default
8000   #if HAVE_SYS_SOCKET_H
8001     #include <sys/socket.h>
8002   #endif
8003
8004
8005int
8006main ()
8007{
8008if (sizeof (socklen_t))
8009       return 0;
8010  ;
8011  return 0;
8012}
8013_ACEOF
8014rm -f conftest.$ac_objext
8015if { (ac_try="$ac_compile"
8016case "(($ac_try" in
8017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8018  *) ac_try_echo=$ac_try;;
8019esac
8020eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8021$as_echo "$ac_try_echo") >&5
8022  (eval "$ac_compile") 2>conftest.er1
8023  ac_status=$?
8024  grep -v '^ *+' conftest.er1 >conftest.err
8025  rm -f conftest.er1
8026  cat conftest.err >&5
8027  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028  (exit $ac_status); } && {
8029	 test -z "$ac_c_werror_flag" ||
8030	 test ! -s conftest.err
8031       } && test -s conftest.$ac_objext; then
8032  cat >conftest.$ac_ext <<_ACEOF
8033/* confdefs.h.  */
8034_ACEOF
8035cat confdefs.h >>conftest.$ac_ext
8036cat >>conftest.$ac_ext <<_ACEOF
8037/* end confdefs.h.  */
8038$ac_includes_default
8039   #if HAVE_SYS_SOCKET_H
8040     #include <sys/socket.h>
8041   #endif
8042
8043
8044int
8045main ()
8046{
8047if (sizeof ((socklen_t)))
8048	  return 0;
8049  ;
8050  return 0;
8051}
8052_ACEOF
8053rm -f conftest.$ac_objext
8054if { (ac_try="$ac_compile"
8055case "(($ac_try" in
8056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8057  *) ac_try_echo=$ac_try;;
8058esac
8059eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8060$as_echo "$ac_try_echo") >&5
8061  (eval "$ac_compile") 2>conftest.er1
8062  ac_status=$?
8063  grep -v '^ *+' conftest.er1 >conftest.err
8064  rm -f conftest.er1
8065  cat conftest.err >&5
8066  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067  (exit $ac_status); } && {
8068	 test -z "$ac_c_werror_flag" ||
8069	 test ! -s conftest.err
8070       } && test -s conftest.$ac_objext; then
8071  :
8072else
8073  $as_echo "$as_me: failed program was:" >&5
8074sed 's/^/| /' conftest.$ac_ext >&5
8075
8076	ac_cv_type_socklen_t=yes
8077fi
8078
8079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8080else
8081  $as_echo "$as_me: failed program was:" >&5
8082sed 's/^/| /' conftest.$ac_ext >&5
8083
8084
8085fi
8086
8087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8088fi
8089{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
8090$as_echo "$ac_cv_type_socklen_t" >&6; }
8091if test "x$ac_cv_type_socklen_t" = x""yes; then
8092
8093cat >>confdefs.h <<_ACEOF
8094@%:@define HAVE_SOCKLEN_T 1
8095_ACEOF
8096
8097
8098fi
8099
8100
8101# Checks for structures.
8102
8103{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8104$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8105if test "${ac_cv_struct_tm+set}" = set; then
8106  $as_echo_n "(cached) " >&6
8107else
8108  cat >conftest.$ac_ext <<_ACEOF
8109/* confdefs.h.  */
8110_ACEOF
8111cat confdefs.h >>conftest.$ac_ext
8112cat >>conftest.$ac_ext <<_ACEOF
8113/* end confdefs.h.  */
8114#include <sys/types.h>
8115#include <time.h>
8116
8117int
8118main ()
8119{
8120struct tm tm;
8121				     int *p = &tm.tm_sec;
8122				     return !p;
8123  ;
8124  return 0;
8125}
8126_ACEOF
8127rm -f conftest.$ac_objext
8128if { (ac_try="$ac_compile"
8129case "(($ac_try" in
8130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131  *) ac_try_echo=$ac_try;;
8132esac
8133eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8134$as_echo "$ac_try_echo") >&5
8135  (eval "$ac_compile") 2>conftest.er1
8136  ac_status=$?
8137  grep -v '^ *+' conftest.er1 >conftest.err
8138  rm -f conftest.er1
8139  cat conftest.err >&5
8140  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141  (exit $ac_status); } && {
8142	 test -z "$ac_c_werror_flag" ||
8143	 test ! -s conftest.err
8144       } && test -s conftest.$ac_objext; then
8145  ac_cv_struct_tm=time.h
8146else
8147  $as_echo "$as_me: failed program was:" >&5
8148sed 's/^/| /' conftest.$ac_ext >&5
8149
8150	ac_cv_struct_tm=sys/time.h
8151fi
8152
8153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8154fi
8155{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8156$as_echo "$ac_cv_struct_tm" >&6; }
8157if test $ac_cv_struct_tm = sys/time.h; then
8158
8159cat >>confdefs.h <<\_ACEOF
8160@%:@define TM_IN_SYS_TIME 1
8161_ACEOF
8162
8163fi
8164
8165
8166
8167# Checks for library functions.
8168#AC_FUNC_MALLOC
8169{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8170$as_echo_n "checking return type of signal handlers... " >&6; }
8171if test "${ac_cv_type_signal+set}" = set; then
8172  $as_echo_n "(cached) " >&6
8173else
8174  cat >conftest.$ac_ext <<_ACEOF
8175/* confdefs.h.  */
8176_ACEOF
8177cat confdefs.h >>conftest.$ac_ext
8178cat >>conftest.$ac_ext <<_ACEOF
8179/* end confdefs.h.  */
8180#include <sys/types.h>
8181#include <signal.h>
8182
8183int
8184main ()
8185{
8186return *(signal (0, 0)) (0) == 1;
8187  ;
8188  return 0;
8189}
8190_ACEOF
8191rm -f conftest.$ac_objext
8192if { (ac_try="$ac_compile"
8193case "(($ac_try" in
8194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8195  *) ac_try_echo=$ac_try;;
8196esac
8197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8198$as_echo "$ac_try_echo") >&5
8199  (eval "$ac_compile") 2>conftest.er1
8200  ac_status=$?
8201  grep -v '^ *+' conftest.er1 >conftest.err
8202  rm -f conftest.er1
8203  cat conftest.err >&5
8204  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205  (exit $ac_status); } && {
8206	 test -z "$ac_c_werror_flag" ||
8207	 test ! -s conftest.err
8208       } && test -s conftest.$ac_objext; then
8209  ac_cv_type_signal=int
8210else
8211  $as_echo "$as_me: failed program was:" >&5
8212sed 's/^/| /' conftest.$ac_ext >&5
8213
8214	ac_cv_type_signal=void
8215fi
8216
8217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8218fi
8219{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8220$as_echo "$ac_cv_type_signal" >&6; }
8221
8222cat >>confdefs.h <<_ACEOF
8223@%:@define RETSIGTYPE $ac_cv_type_signal
8224_ACEOF
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249for ac_func in  \
8250		\
8251		snprintf\
8252		vsnprintf \
8253		seteuid \
8254		setegid \
8255		strsignal \
8256		crypt \
8257		getpwnam \
8258		getspnam \
8259		getuserpw \
8260		getspwnam \
8261		inet_aton \
8262		inet_ntoa \
8263		inet_pton \
8264		inet_ntop \
8265		ares_cancel \
8266		ares_cancelquery \
8267		ares_version \
8268		ares_init_options \
8269		SSL_CTX_check_private_key \
8270		SSL_set_accept_state \
8271		ERR_clear_error \
8272		SSL_set_mode \
8273
8274do
8275as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8276{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8277$as_echo_n "checking for $ac_func... " >&6; }
8278if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8279  $as_echo_n "(cached) " >&6
8280else
8281  cat >conftest.$ac_ext <<_ACEOF
8282/* confdefs.h.  */
8283_ACEOF
8284cat confdefs.h >>conftest.$ac_ext
8285cat >>conftest.$ac_ext <<_ACEOF
8286/* end confdefs.h.  */
8287/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8288   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8289#define $ac_func innocuous_$ac_func
8290
8291/* System header to define __stub macros and hopefully few prototypes,
8292    which can conflict with char $ac_func (); below.
8293    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8294    <limits.h> exists even on freestanding compilers.  */
8295
8296#ifdef __STDC__
8297# include <limits.h>
8298#else
8299# include <assert.h>
8300#endif
8301
8302#undef $ac_func
8303
8304/* Override any GCC internal prototype to avoid an error.
8305   Use char because int might match the return type of a GCC
8306   builtin and then its argument prototype would still apply.  */
8307#ifdef __cplusplus
8308extern "C"
8309#endif
8310char $ac_func ();
8311/* The GNU C library defines this for functions which it implements
8312    to always fail with ENOSYS.  Some functions are actually named
8313    something starting with __ and the normal name is an alias.  */
8314#if defined __stub_$ac_func || defined __stub___$ac_func
8315choke me
8316#endif
8317
8318int
8319main ()
8320{
8321return $ac_func ();
8322  ;
8323  return 0;
8324}
8325_ACEOF
8326rm -f conftest.$ac_objext conftest$ac_exeext
8327if { (ac_try="$ac_link"
8328case "(($ac_try" in
8329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8330  *) ac_try_echo=$ac_try;;
8331esac
8332eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8333$as_echo "$ac_try_echo") >&5
8334  (eval "$ac_link") 2>conftest.er1
8335  ac_status=$?
8336  grep -v '^ *+' conftest.er1 >conftest.err
8337  rm -f conftest.er1
8338  cat conftest.err >&5
8339  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340  (exit $ac_status); } && {
8341	 test -z "$ac_c_werror_flag" ||
8342	 test ! -s conftest.err
8343       } && test -s conftest$ac_exeext && {
8344	 test "$cross_compiling" = yes ||
8345	 $as_test_x conftest$ac_exeext
8346       }; then
8347  eval "$as_ac_var=yes"
8348else
8349  $as_echo "$as_me: failed program was:" >&5
8350sed 's/^/| /' conftest.$ac_ext >&5
8351
8352	eval "$as_ac_var=no"
8353fi
8354
8355rm -rf conftest.dSYM
8356rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8357      conftest$ac_exeext conftest.$ac_ext
8358fi
8359ac_res=`eval 'as_val=${'$as_ac_var'}
8360		 $as_echo "$as_val"'`
8361	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8362$as_echo "$ac_res" >&6; }
8363as_val=`eval 'as_val=${'$as_ac_var'}
8364		 $as_echo "$as_val"'`
8365   if test "x$as_val" = x""yes; then
8366  cat >>confdefs.h <<_ACEOF
8367@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8368_ACEOF
8369
8370fi
8371done
8372
8373
8374
8375# Check for declaration.
8376
8377{ $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
8378$as_echo_n "checking whether snprintf is declared... " >&6; }
8379if test "${ac_cv_have_decl_snprintf+set}" = set; then
8380  $as_echo_n "(cached) " >&6
8381else
8382  cat >conftest.$ac_ext <<_ACEOF
8383/* confdefs.h.  */
8384_ACEOF
8385cat confdefs.h >>conftest.$ac_ext
8386cat >>conftest.$ac_ext <<_ACEOF
8387/* end confdefs.h.  */
8388$ac_includes_default
8389int
8390main ()
8391{
8392#ifndef snprintf
8393  (void) snprintf;
8394#endif
8395
8396  ;
8397  return 0;
8398}
8399_ACEOF
8400rm -f conftest.$ac_objext
8401if { (ac_try="$ac_compile"
8402case "(($ac_try" in
8403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404  *) ac_try_echo=$ac_try;;
8405esac
8406eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8407$as_echo "$ac_try_echo") >&5
8408  (eval "$ac_compile") 2>conftest.er1
8409  ac_status=$?
8410  grep -v '^ *+' conftest.er1 >conftest.err
8411  rm -f conftest.er1
8412  cat conftest.err >&5
8413  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414  (exit $ac_status); } && {
8415	 test -z "$ac_c_werror_flag" ||
8416	 test ! -s conftest.err
8417       } && test -s conftest.$ac_objext; then
8418  ac_cv_have_decl_snprintf=yes
8419else
8420  $as_echo "$as_me: failed program was:" >&5
8421sed 's/^/| /' conftest.$ac_ext >&5
8422
8423	ac_cv_have_decl_snprintf=no
8424fi
8425
8426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8427fi
8428{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
8429$as_echo "$ac_cv_have_decl_snprintf" >&6; }
8430if test "x$ac_cv_have_decl_snprintf" = x""yes; then
8431
8432cat >>confdefs.h <<_ACEOF
8433@%:@define HAVE_DECL_SNPRINTF 1
8434_ACEOF
8435
8436
8437else
8438  cat >>confdefs.h <<_ACEOF
8439@%:@define HAVE_DECL_SNPRINTF 0
8440_ACEOF
8441
8442
8443fi
8444
8445
8446{ $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
8447$as_echo_n "checking whether vsnprintf is declared... " >&6; }
8448if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
8449  $as_echo_n "(cached) " >&6
8450else
8451  cat >conftest.$ac_ext <<_ACEOF
8452/* confdefs.h.  */
8453_ACEOF
8454cat confdefs.h >>conftest.$ac_ext
8455cat >>conftest.$ac_ext <<_ACEOF
8456/* end confdefs.h.  */
8457$ac_includes_default
8458int
8459main ()
8460{
8461#ifndef vsnprintf
8462  (void) vsnprintf;
8463#endif
8464
8465  ;
8466  return 0;
8467}
8468_ACEOF
8469rm -f conftest.$ac_objext
8470if { (ac_try="$ac_compile"
8471case "(($ac_try" in
8472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473  *) ac_try_echo=$ac_try;;
8474esac
8475eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8476$as_echo "$ac_try_echo") >&5
8477  (eval "$ac_compile") 2>conftest.er1
8478  ac_status=$?
8479  grep -v '^ *+' conftest.er1 >conftest.err
8480  rm -f conftest.er1
8481  cat conftest.err >&5
8482  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483  (exit $ac_status); } && {
8484	 test -z "$ac_c_werror_flag" ||
8485	 test ! -s conftest.err
8486       } && test -s conftest.$ac_objext; then
8487  ac_cv_have_decl_vsnprintf=yes
8488else
8489  $as_echo "$as_me: failed program was:" >&5
8490sed 's/^/| /' conftest.$ac_ext >&5
8491
8492	ac_cv_have_decl_vsnprintf=no
8493fi
8494
8495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8496fi
8497{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
8498$as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
8499if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
8500
8501cat >>confdefs.h <<_ACEOF
8502@%:@define HAVE_DECL_VSNPRINTF 1
8503_ACEOF
8504
8505
8506else
8507  cat >>confdefs.h <<_ACEOF
8508@%:@define HAVE_DECL_VSNPRINTF 0
8509_ACEOF
8510
8511
8512fi
8513
8514
8515{ $as_echo "$as_me:$LINENO: checking whether crypt is declared" >&5
8516$as_echo_n "checking whether crypt is declared... " >&6; }
8517if test "${ac_cv_have_decl_crypt+set}" = set; then
8518  $as_echo_n "(cached) " >&6
8519else
8520  cat >conftest.$ac_ext <<_ACEOF
8521/* confdefs.h.  */
8522_ACEOF
8523cat confdefs.h >>conftest.$ac_ext
8524cat >>conftest.$ac_ext <<_ACEOF
8525/* end confdefs.h.  */
8526$ac_includes_default
8527   #if HAVE_CRYPT_H
8528     #include <crypt.h>
8529   #endif
8530
8531
8532int
8533main ()
8534{
8535#ifndef crypt
8536  (void) crypt;
8537#endif
8538
8539  ;
8540  return 0;
8541}
8542_ACEOF
8543rm -f conftest.$ac_objext
8544if { (ac_try="$ac_compile"
8545case "(($ac_try" in
8546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8547  *) ac_try_echo=$ac_try;;
8548esac
8549eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8550$as_echo "$ac_try_echo") >&5
8551  (eval "$ac_compile") 2>conftest.er1
8552  ac_status=$?
8553  grep -v '^ *+' conftest.er1 >conftest.err
8554  rm -f conftest.er1
8555  cat conftest.err >&5
8556  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557  (exit $ac_status); } && {
8558	 test -z "$ac_c_werror_flag" ||
8559	 test ! -s conftest.err
8560       } && test -s conftest.$ac_objext; then
8561  ac_cv_have_decl_crypt=yes
8562else
8563  $as_echo "$as_me: failed program was:" >&5
8564sed 's/^/| /' conftest.$ac_ext >&5
8565
8566	ac_cv_have_decl_crypt=no
8567fi
8568
8569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8570fi
8571{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_crypt" >&5
8572$as_echo "$ac_cv_have_decl_crypt" >&6; }
8573if test "x$ac_cv_have_decl_crypt" = x""yes; then
8574
8575cat >>confdefs.h <<_ACEOF
8576@%:@define HAVE_DECL_CRYPT 1
8577_ACEOF
8578
8579
8580else
8581  cat >>confdefs.h <<_ACEOF
8582@%:@define HAVE_DECL_CRYPT 0
8583_ACEOF
8584
8585
8586fi
8587
8588
8589{ $as_echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
8590$as_echo_n "checking whether strsignal is declared... " >&6; }
8591if test "${ac_cv_have_decl_strsignal+set}" = set; then
8592  $as_echo_n "(cached) " >&6
8593else
8594  cat >conftest.$ac_ext <<_ACEOF
8595/* confdefs.h.  */
8596_ACEOF
8597cat confdefs.h >>conftest.$ac_ext
8598cat >>conftest.$ac_ext <<_ACEOF
8599/* end confdefs.h.  */
8600$ac_includes_default
8601int
8602main ()
8603{
8604#ifndef strsignal
8605  (void) strsignal;
8606#endif
8607
8608  ;
8609  return 0;
8610}
8611_ACEOF
8612rm -f conftest.$ac_objext
8613if { (ac_try="$ac_compile"
8614case "(($ac_try" in
8615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8616  *) ac_try_echo=$ac_try;;
8617esac
8618eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8619$as_echo "$ac_try_echo") >&5
8620  (eval "$ac_compile") 2>conftest.er1
8621  ac_status=$?
8622  grep -v '^ *+' conftest.er1 >conftest.err
8623  rm -f conftest.er1
8624  cat conftest.err >&5
8625  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626  (exit $ac_status); } && {
8627	 test -z "$ac_c_werror_flag" ||
8628	 test ! -s conftest.err
8629       } && test -s conftest.$ac_objext; then
8630  ac_cv_have_decl_strsignal=yes
8631else
8632  $as_echo "$as_me: failed program was:" >&5
8633sed 's/^/| /' conftest.$ac_ext >&5
8634
8635	ac_cv_have_decl_strsignal=no
8636fi
8637
8638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8639fi
8640{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
8641$as_echo "$ac_cv_have_decl_strsignal" >&6; }
8642if test "x$ac_cv_have_decl_strsignal" = x""yes; then
8643
8644cat >>confdefs.h <<_ACEOF
8645@%:@define HAVE_DECL_STRSIGNAL 1
8646_ACEOF
8647
8648
8649else
8650  cat >>confdefs.h <<_ACEOF
8651@%:@define HAVE_DECL_STRSIGNAL 0
8652_ACEOF
8653
8654
8655fi
8656
8657
8658
8659SOURCES_MAIN="main.c syscalls.c strcalls.c irccalls.c nlstrsignal.c nlcrypt.c matchpass.c"
8660SOURCES_CONF="conf.c access_conf.c listen_conf.c user_conf.c conn_conf.c autoop_conf.c"
8661SOURCES_LISTEN="listen.c listen_io.c"
8662SOURCES_CLIENT="client.c client_connection.c client_io.c client_auth.c client_handle.c client_notice.c client_parser.c"
8663SOURCES_CONN="conn.c conn_io.c conn_connection.c conn_sendq.c conn_parser.c conn_ignore.c conn_log.c"
8664SOURCES_CHAN="chan.c chan_user.c chan_mode.c"
8665
8666if test "x$memdebug" = "xyes" ; then
8667  if test "x$have_memcalls" = "xyes" ; then
8668    SOURCES_MAIN="${SOURCES_MAIN} memlist.c memleaks.c"
8669  else
8670    SOURCES_MAIN="${SOURCES_MAIN} memcalls.c memlist.c memleaks.c"
8671  fi
8672fi
8673
8674if test "x$fddebug" = "xyes" ; then
8675  if test "x$have_fdcalls" = "xno" ; then
8676    SOURCES_MAIN="${SOURCES_MAIN} fdcalls.c"
8677  fi
8678fi
8679
8680if test "x$ssl_support" = "xyes" ; then
8681  SOURCES_MAIN="${SOURCES_MAIN} ssl.c"
8682  SOURCES_CLIENT="${SOURCES_CLIENT} client_io_ssl.c"
8683  SOURCES_CONN="${SOURCES_CONN} conn_io_ssl.c"
8684fi
8685
8686if test "x$identd" = "xyes" ; then
8687  SOURCES_CONF="${SOURCES_CONF} ident_conf.c"
8688fi
8689
8690SOURCES="${SOURCES_MAIN} ${SOURCES_CONF} ${SOURCES_LISTEN} ${SOURCES_CLIENT} ${SOURCES_CONN} ${SOURCES_CHAN}"
8691
8692if test "x$identd" = "xyes" ; then
8693  SOURCES="${SOURCES} ident_listen.c ident_conn.c"
8694fi
8695
8696SOURCES=$SOURCES
8697
8698
8699uname=`uname`
8700{ $as_echo "$as_me:$LINENO: checking for OS type" >&5
8701$as_echo_n "checking for OS type... " >&6; }
8702case "$uname" in
8703  *BSD)
8704    { $as_echo "$as_me:$LINENO: result: $uname found. Using BSD routines." >&5
8705$as_echo "$uname found. Using BSD routines." >&6; }
8706
8707cat >>confdefs.h <<\_ACEOF
8708@%:@define OS_BSD 1
8709_ACEOF
8710
8711  ;;
8712  Linux)
8713    { $as_echo "$as_me:$LINENO: result: $uname found. Using Linux routines." >&5
8714$as_echo "$uname found. Using Linux routines." >&6; }
8715
8716cat >>confdefs.h <<\_ACEOF
8717@%:@define OS_LINUX 1
8718_ACEOF
8719
8720  ;;
8721  Solaris)
8722    { $as_echo "$as_me:$LINENO: result: $uname found. Using Solaris routines." >&5
8723$as_echo "$uname found. Using Solaris routines." >&6; }
8724
8725cat >>confdefs.h <<\_ACEOF
8726@%:@define OS_SOLARIS 1
8727_ACEOF
8728
8729  ;;
8730  SunOS)
8731    { $as_echo "$as_me:$LINENO: result: $uname found. Using Solaris routines." >&5
8732$as_echo "$uname found. Using Solaris routines." >&6; }
8733
8734cat >>confdefs.h <<\_ACEOF
8735@%:@define OS_SOLARIS 1
8736_ACEOF
8737
8738  ;;
8739  AIX)
8740    { $as_echo "$as_me:$LINENO: result: $uname found. Using AIX routines." >&5
8741$as_echo "$uname found. Using AIX routines." >&6; }
8742
8743cat >>confdefs.h <<\_ACEOF
8744@%:@define OS_AIX 1
8745_ACEOF
8746
8747  ;;
8748  HP-UX)
8749    { $as_echo "$as_me:$LINENO: result: $uname found. Using HP-UX routines." >&5
8750$as_echo "$uname found. Using HP-UX routines." >&6; }
8751
8752cat >>confdefs.h <<\_ACEOF
8753@%:@define OS_HPUNIX 1
8754_ACEOF
8755
8756  ;;
8757  OSF1)
8758    { $as_echo "$as_me:$LINENO: result: $uname found. Using OSF1 routines." >&5
8759$as_echo "$uname found. Using OSF1 routines." >&6; }
8760
8761cat >>confdefs.h <<\_ACEOF
8762@%:@define OS_OSF1 1
8763_ACEOF
8764
8765  ;;
8766  *)
8767    { $as_echo "$as_me:$LINENO: result: $uname found. Using Generic routines." >&5
8768$as_echo "$uname found. Using Generic routines." >&6; }
8769
8770cat >>confdefs.h <<\_ACEOF
8771@%:@define OS_GENERIC 1
8772_ACEOF
8773
8774  ;;
8775esac
8776
8777cat >confcache <<\_ACEOF
8778# This file is a shell script that caches the results of configure
8779# tests run on this system so they can be shared between configure
8780# scripts and configure runs, see configure's option --config-cache.
8781# It is not useful on other systems.  If it contains results you don't
8782# want to keep, you may remove or edit it.
8783#
8784# config.status only pays attention to the cache file if you give it
8785# the --recheck option to rerun configure.
8786#
8787# `ac_cv_env_foo' variables (set or unset) will be overridden when
8788# loading this file, other *unset* `ac_cv_foo' will be assigned the
8789# following values.
8790
8791_ACEOF
8792
8793# The following way of writing the cache mishandles newlines in values,
8794# but we know of no workaround that is simple, portable, and efficient.
8795# So, we kill variables containing newlines.
8796# Ultrix sh set writes to stderr and can't be redirected directly,
8797# and sets the high bit in the cache file unless we assign to the vars.
8798(
8799  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8800    eval ac_val=\$$ac_var
8801    case $ac_val in #(
8802    *${as_nl}*)
8803      case $ac_var in #(
8804      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
8805$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8806      esac
8807      case $ac_var in #(
8808      _ | IFS | as_nl) ;; #(
8809      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8810      *) $as_unset $ac_var ;;
8811      esac ;;
8812    esac
8813  done
8814
8815  (set) 2>&1 |
8816    case $as_nl`(ac_space=' '; set) 2>&1` in #(
8817    *${as_nl}ac_space=\ *)
8818      # `set' does not quote correctly, so add quotes (double-quote
8819      # substitution turns \\\\ into \\, and sed turns \\ into \).
8820      sed -n \
8821	"s/'/'\\\\''/g;
8822	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8823      ;; #(
8824    *)
8825      # `set' quotes correctly as required by POSIX, so do not add quotes.
8826      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8827      ;;
8828    esac |
8829    sort
8830) |
8831  sed '
8832     /^ac_cv_env_/b end
8833     t clear
8834     :clear
8835     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8836     t end
8837     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8838     :end' >>confcache
8839if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8840  if test -w "$cache_file"; then
8841    test "x$cache_file" != "x/dev/null" &&
8842      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
8843$as_echo "$as_me: updating cache $cache_file" >&6;}
8844    cat confcache >$cache_file
8845  else
8846    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8847$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8848  fi
8849fi
8850rm -f confcache
8851
8852test "x$prefix" = xNONE && prefix=$ac_default_prefix
8853# Let make expand exec_prefix.
8854test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8855
8856DEFS=-DHAVE_CONFIG_H
8857
8858ac_libobjs=
8859ac_ltlibobjs=
8860for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
8861  # 1. Remove the extension, and $U if already installed.
8862  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8863  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8864  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
8865  #    will be set to the directory where LIBOBJS objects are built.
8866  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8867  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8868done
8869LIB@&t@OBJS=$ac_libobjs
8870
8871LTLIBOBJS=$ac_ltlibobjs
8872
8873
8874
8875: ${CONFIG_STATUS=./config.status}
8876ac_write_fail=0
8877ac_clean_files_save=$ac_clean_files
8878ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8879{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8880$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8881cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8882#! $SHELL
8883# Generated by $as_me.
8884# Run this file to recreate the current configuration.
8885# Compiler output produced by configure, useful for debugging
8886# configure, is in config.log if it exists.
8887
8888debug=false
8889ac_cs_recheck=false
8890ac_cs_silent=false
8891SHELL=\${CONFIG_SHELL-$SHELL}
8892_ACEOF
8893
8894cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8895## --------------------- ##
8896## M4sh Initialization.  ##
8897## --------------------- ##
8898
8899# Be more Bourne compatible
8900DUALCASE=1; export DUALCASE # for MKS sh
8901if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8902  emulate sh
8903  NULLCMD=:
8904  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8905  # is contrary to our usage.  Disable this feature.
8906  alias -g '${1+"$@"}'='"$@"'
8907  setopt NO_GLOB_SUBST
8908else
8909  case `(set -o) 2>/dev/null` in
8910  *posix*) set -o posix ;;
8911esac
8912
8913fi
8914
8915
8916
8917
8918# PATH needs CR
8919# Avoid depending upon Character Ranges.
8920as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8921as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8922as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8923as_cr_digits='0123456789'
8924as_cr_alnum=$as_cr_Letters$as_cr_digits
8925
8926as_nl='
8927'
8928export as_nl
8929# Printing a long string crashes Solaris 7 /usr/bin/printf.
8930as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8931as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8932as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8933if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8934  as_echo='printf %s\n'
8935  as_echo_n='printf %s'
8936else
8937  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8938    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8939    as_echo_n='/usr/ucb/echo -n'
8940  else
8941    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8942    as_echo_n_body='eval
8943      arg=$1;
8944      case $arg in
8945      *"$as_nl"*)
8946	expr "X$arg" : "X\\(.*\\)$as_nl";
8947	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8948      esac;
8949      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8950    '
8951    export as_echo_n_body
8952    as_echo_n='sh -c $as_echo_n_body as_echo'
8953  fi
8954  export as_echo_body
8955  as_echo='sh -c $as_echo_body as_echo'
8956fi
8957
8958# The user is always right.
8959if test "${PATH_SEPARATOR+set}" != set; then
8960  PATH_SEPARATOR=:
8961  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8962    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8963      PATH_SEPARATOR=';'
8964  }
8965fi
8966
8967# Support unset when possible.
8968if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8969  as_unset=unset
8970else
8971  as_unset=false
8972fi
8973
8974
8975# IFS
8976# We need space, tab and new line, in precisely that order.  Quoting is
8977# there to prevent editors from complaining about space-tab.
8978# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8979# splitting by setting IFS to empty value.)
8980IFS=" ""	$as_nl"
8981
8982# Find who we are.  Look in the path if we contain no directory separator.
8983case $0 in
8984  *[\\/]* ) as_myself=$0 ;;
8985  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8986for as_dir in $PATH
8987do
8988  IFS=$as_save_IFS
8989  test -z "$as_dir" && as_dir=.
8990  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8991done
8992IFS=$as_save_IFS
8993
8994     ;;
8995esac
8996# We did not find ourselves, most probably we were run as `sh COMMAND'
8997# in which case we are not to be found in the path.
8998if test "x$as_myself" = x; then
8999  as_myself=$0
9000fi
9001if test ! -f "$as_myself"; then
9002  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9003  { (exit 1); exit 1; }
9004fi
9005
9006# Work around bugs in pre-3.0 UWIN ksh.
9007for as_var in ENV MAIL MAILPATH
9008do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9009done
9010PS1='$ '
9011PS2='> '
9012PS4='+ '
9013
9014# NLS nuisances.
9015LC_ALL=C
9016export LC_ALL
9017LANGUAGE=C
9018export LANGUAGE
9019
9020# Required to use basename.
9021if expr a : '\(a\)' >/dev/null 2>&1 &&
9022   test "X`expr 00001 : '.*\(...\)'`" = X001; then
9023  as_expr=expr
9024else
9025  as_expr=false
9026fi
9027
9028if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9029  as_basename=basename
9030else
9031  as_basename=false
9032fi
9033
9034
9035# Name of the executable.
9036as_me=`$as_basename -- "$0" ||
9037$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9038	 X"$0" : 'X\(//\)$' \| \
9039	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9040$as_echo X/"$0" |
9041    sed '/^.*\/\([^/][^/]*\)\/*$/{
9042	    s//\1/
9043	    q
9044	  }
9045	  /^X\/\(\/\/\)$/{
9046	    s//\1/
9047	    q
9048	  }
9049	  /^X\/\(\/\).*/{
9050	    s//\1/
9051	    q
9052	  }
9053	  s/.*/./; q'`
9054
9055# CDPATH.
9056$as_unset CDPATH
9057
9058
9059
9060  as_lineno_1=$LINENO
9061  as_lineno_2=$LINENO
9062  test "x$as_lineno_1" != "x$as_lineno_2" &&
9063  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9064
9065  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9066  # uniformly replaced by the line number.  The first 'sed' inserts a
9067  # line-number line after each line using $LINENO; the second 'sed'
9068  # does the real work.  The second script uses 'N' to pair each
9069  # line-number line with the line containing $LINENO, and appends
9070  # trailing '-' during substitution so that $LINENO is not a special
9071  # case at line end.
9072  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9073  # scripts with optimization help from Paolo Bonzini.  Blame Lee
9074  # E. McMahon (1931-1989) for sed's syntax.  :-)
9075  sed -n '
9076    p
9077    /[$]LINENO/=
9078  ' <$as_myself |
9079    sed '
9080      s/[$]LINENO.*/&-/
9081      t lineno
9082      b
9083      :lineno
9084      N
9085      :loop
9086      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9087      t loop
9088      s/-\n.*//
9089    ' >$as_me.lineno &&
9090  chmod +x "$as_me.lineno" ||
9091    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9092   { (exit 1); exit 1; }; }
9093
9094  # Don't try to exec as it changes $[0], causing all sort of problems
9095  # (the dirname of $[0] is not the place where we might find the
9096  # original and so on.  Autoconf is especially sensitive to this).
9097  . "./$as_me.lineno"
9098  # Exit status is that of the last command.
9099  exit
9100}
9101
9102
9103if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9104  as_dirname=dirname
9105else
9106  as_dirname=false
9107fi
9108
9109ECHO_C= ECHO_N= ECHO_T=
9110case `echo -n x` in
9111-n*)
9112  case `echo 'x\c'` in
9113  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
9114  *)   ECHO_C='\c';;
9115  esac;;
9116*)
9117  ECHO_N='-n';;
9118esac
9119if expr a : '\(a\)' >/dev/null 2>&1 &&
9120   test "X`expr 00001 : '.*\(...\)'`" = X001; then
9121  as_expr=expr
9122else
9123  as_expr=false
9124fi
9125
9126rm -f conf$$ conf$$.exe conf$$.file
9127if test -d conf$$.dir; then
9128  rm -f conf$$.dir/conf$$.file
9129else
9130  rm -f conf$$.dir
9131  mkdir conf$$.dir 2>/dev/null
9132fi
9133if (echo >conf$$.file) 2>/dev/null; then
9134  if ln -s conf$$.file conf$$ 2>/dev/null; then
9135    as_ln_s='ln -s'
9136    # ... but there are two gotchas:
9137    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9138    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9139    # In both cases, we have to default to `cp -p'.
9140    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9141      as_ln_s='cp -p'
9142  elif ln conf$$.file conf$$ 2>/dev/null; then
9143    as_ln_s=ln
9144  else
9145    as_ln_s='cp -p'
9146  fi
9147else
9148  as_ln_s='cp -p'
9149fi
9150rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9151rmdir conf$$.dir 2>/dev/null
9152
9153if mkdir -p . 2>/dev/null; then
9154  as_mkdir_p=:
9155else
9156  test -d ./-p && rmdir ./-p
9157  as_mkdir_p=false
9158fi
9159
9160if test -x / >/dev/null 2>&1; then
9161  as_test_x='test -x'
9162else
9163  if ls -dL / >/dev/null 2>&1; then
9164    as_ls_L_option=L
9165  else
9166    as_ls_L_option=
9167  fi
9168  as_test_x='
9169    eval sh -c '\''
9170      if test -d "$1"; then
9171	test -d "$1/.";
9172      else
9173	case $1 in
9174	-*)set "./$1";;
9175	esac;
9176	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
9177	???[sx]*):;;*)false;;esac;fi
9178    '\'' sh
9179  '
9180fi
9181as_executable_p=$as_test_x
9182
9183# Sed expression to map a string onto a valid CPP name.
9184as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9185
9186# Sed expression to map a string onto a valid variable name.
9187as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9188
9189
9190exec 6>&1
9191
9192# Save the log message, to keep $[0] and so on meaningful, and to
9193# report actual input values of CONFIG_FILES etc. instead of their
9194# values after options handling.
9195ac_log="
9196This file was extended by ircproxy $as_me 1.3.6, which was
9197generated by GNU Autoconf 2.63.  Invocation command line was
9198
9199  CONFIG_FILES    = $CONFIG_FILES
9200  CONFIG_HEADERS  = $CONFIG_HEADERS
9201  CONFIG_LINKS    = $CONFIG_LINKS
9202  CONFIG_COMMANDS = $CONFIG_COMMANDS
9203  $ $0 $@
9204
9205on `(hostname || uname -n) 2>/dev/null | sed 1q`
9206"
9207
9208_ACEOF
9209
9210
9211case $ac_config_headers in *"
9212"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9213esac
9214
9215
9216cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9217# Files that config.status was made for.
9218config_headers="$ac_config_headers"
9219
9220_ACEOF
9221
9222cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9223ac_cs_usage="\
9224\`$as_me' instantiates files from templates according to the
9225current configuration.
9226
9227Usage: $0 [OPTION]... [FILE]...
9228
9229  -h, --help       print this help, then exit
9230  -V, --version    print version number and configuration settings, then exit
9231  -q, --quiet, --silent
9232                   do not print progress messages
9233  -d, --debug      don't remove temporary files
9234      --recheck    update $as_me by reconfiguring in the same conditions
9235      --header=FILE[:TEMPLATE]
9236                   instantiate the configuration header FILE
9237
9238Configuration headers:
9239$config_headers
9240
9241Report bugs to <bug-autoconf@gnu.org>."
9242
9243_ACEOF
9244cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9245ac_cs_version="\\
9246ircproxy config.status 1.3.6
9247configured by $0, generated by GNU Autoconf 2.63,
9248  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9249
9250Copyright (C) 2008 Free Software Foundation, Inc.
9251This config.status script is free software; the Free Software Foundation
9252gives unlimited permission to copy, distribute and modify it."
9253
9254ac_pwd='$ac_pwd'
9255srcdir='$srcdir'
9256INSTALL='$INSTALL'
9257test -n "\$AWK" || AWK=awk
9258_ACEOF
9259
9260cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9261# The default lists apply if the user does not specify any file.
9262ac_need_defaults=:
9263while test $# != 0
9264do
9265  case $1 in
9266  --*=*)
9267    ac_option=`expr "X$1" : 'X\([^=]*\)='`
9268    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9269    ac_shift=:
9270    ;;
9271  *)
9272    ac_option=$1
9273    ac_optarg=$2
9274    ac_shift=shift
9275    ;;
9276  esac
9277
9278  case $ac_option in
9279  # Handling of the options.
9280  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9281    ac_cs_recheck=: ;;
9282  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9283    $as_echo "$ac_cs_version"; exit ;;
9284  --debug | --debu | --deb | --de | --d | -d )
9285    debug=: ;;
9286  --header | --heade | --head | --hea )
9287    $ac_shift
9288    case $ac_optarg in
9289    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9290    esac
9291    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
9292    ac_need_defaults=false;;
9293  --he | --h)
9294    # Conflict between --help and --header
9295    { $as_echo "$as_me: error: ambiguous option: $1
9296Try \`$0 --help' for more information." >&2
9297   { (exit 1); exit 1; }; };;
9298  --help | --hel | -h )
9299    $as_echo "$ac_cs_usage"; exit ;;
9300  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9301  | -silent | --silent | --silen | --sile | --sil | --si | --s)
9302    ac_cs_silent=: ;;
9303
9304  # This is an error.
9305  -*) { $as_echo "$as_me: error: unrecognized option: $1
9306Try \`$0 --help' for more information." >&2
9307   { (exit 1); exit 1; }; } ;;
9308
9309  *) ac_config_targets="$ac_config_targets $1"
9310     ac_need_defaults=false ;;
9311
9312  esac
9313  shift
9314done
9315
9316ac_configure_extra_args=
9317
9318if $ac_cs_silent; then
9319  exec 6>/dev/null
9320  ac_configure_extra_args="$ac_configure_extra_args --silent"
9321fi
9322
9323_ACEOF
9324cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9325if \$ac_cs_recheck; then
9326  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9327  shift
9328  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9329  CONFIG_SHELL='$SHELL'
9330  export CONFIG_SHELL
9331  exec "\$@"
9332fi
9333
9334_ACEOF
9335cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9336exec 5>>config.log
9337{
9338  echo
9339  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
9340@%:@@%:@ Running $as_me. @%:@@%:@
9341_ASBOX
9342  $as_echo "$ac_log"
9343} >&5
9344
9345_ACEOF
9346cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9347_ACEOF
9348
9349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9350
9351# Handling of arguments.
9352for ac_config_target in $ac_config_targets
9353do
9354  case $ac_config_target in
9355    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9356
9357  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9358$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9359   { (exit 1); exit 1; }; };;
9360  esac
9361done
9362
9363
9364# If the user did not use the arguments to specify the items to instantiate,
9365# then the envvar interface is used.  Set only those that are not.
9366# We use the long form for the default assignment because of an extremely
9367# bizarre bug on SunOS 4.1.3.
9368if $ac_need_defaults; then
9369  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9370fi
9371
9372# Have a temporary directory for convenience.  Make it in the build tree
9373# simply because there is no reason against having it here, and in addition,
9374# creating and moving files from /tmp can sometimes cause problems.
9375# Hook for its removal unless debugging.
9376# Note that there is a small window in which the directory will not be cleaned:
9377# after its creation but before its name has been assigned to `$tmp'.
9378$debug ||
9379{
9380  tmp=
9381  trap 'exit_status=$?
9382  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9383' 0
9384  trap '{ (exit 1); exit 1; }' 1 2 13 15
9385}
9386# Create a (secure) tmp directory for tmp files.
9387
9388{
9389  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9390  test -n "$tmp" && test -d "$tmp"
9391}  ||
9392{
9393  tmp=./conf$$-$RANDOM
9394  (umask 077 && mkdir "$tmp")
9395} ||
9396{
9397   $as_echo "$as_me: cannot create a temporary directory in ." >&2
9398   { (exit 1); exit 1; }
9399}
9400
9401# Set up the scripts for CONFIG_HEADERS section.
9402# No need to generate them if there are no CONFIG_HEADERS.
9403# This happens for instance with `./config.status Makefile'.
9404if test -n "$CONFIG_HEADERS"; then
9405cat >"$tmp/defines.awk" <<\_ACAWK ||
9406BEGIN {
9407_ACEOF
9408
9409# Transform confdefs.h into an awk script `defines.awk', embedded as
9410# here-document in config.status, that substitutes the proper values into
9411# config.h.in to produce config.h.
9412
9413# Create a delimiter string that does not exist in confdefs.h, to ease
9414# handling of long lines.
9415ac_delim='%!_!# '
9416for ac_last_try in false false :; do
9417  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
9418  if test -z "$ac_t"; then
9419    break
9420  elif $ac_last_try; then
9421    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
9422$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
9423   { (exit 1); exit 1; }; }
9424  else
9425    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9426  fi
9427done
9428
9429# For the awk script, D is an array of macro values keyed by name,
9430# likewise P contains macro parameters if any.  Preserve backslash
9431# newline sequences.
9432
9433ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9434sed -n '
9435s/.\{148\}/&'"$ac_delim"'/g
9436t rset
9437:rset
9438s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
9439t def
9440d
9441:def
9442s/\\$//
9443t bsnl
9444s/["\\]/\\&/g
9445s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
9446D["\1"]=" \3"/p
9447s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
9448d
9449:bsnl
9450s/["\\]/\\&/g
9451s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
9452D["\1"]=" \3\\\\\\n"\\/p
9453t cont
9454s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9455t cont
9456d
9457:cont
9458n
9459s/.\{148\}/&'"$ac_delim"'/g
9460t clear
9461:clear
9462s/\\$//
9463t bsnlc
9464s/["\\]/\\&/g; s/^/"/; s/$/"/p
9465d
9466:bsnlc
9467s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9468b cont
9469' <confdefs.h | sed '
9470s/'"$ac_delim"'/"\\\
9471"/g' >>$CONFIG_STATUS || ac_write_fail=1
9472
9473cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9474  for (key in D) D_is_set[key] = 1
9475  FS = ""
9476}
9477/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9478  line = \$ 0
9479  split(line, arg, " ")
9480  if (arg[1] == "#") {
9481    defundef = arg[2]
9482    mac1 = arg[3]
9483  } else {
9484    defundef = substr(arg[1], 2)
9485    mac1 = arg[2]
9486  }
9487  split(mac1, mac2, "(") #)
9488  macro = mac2[1]
9489  prefix = substr(line, 1, index(line, defundef) - 1)
9490  if (D_is_set[macro]) {
9491    # Preserve the white space surrounding the "#".
9492    print prefix "define", macro P[macro] D[macro]
9493    next
9494  } else {
9495    # Replace #undef with comments.  This is necessary, for example,
9496    # in the case of _POSIX_SOURCE, which is predefined and required
9497    # on some systems where configure will not decide to define it.
9498    if (defundef == "undef") {
9499      print "/*", prefix defundef, macro, "*/"
9500      next
9501    }
9502  }
9503}
9504{ print }
9505_ACAWK
9506_ACEOF
9507cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9508  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
9509$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
9510   { (exit 1); exit 1; }; }
9511fi # test -n "$CONFIG_HEADERS"
9512
9513
9514eval set X "    :H $CONFIG_HEADERS    "
9515shift
9516for ac_tag
9517do
9518  case $ac_tag in
9519  :[FHLC]) ac_mode=$ac_tag; continue;;
9520  esac
9521  case $ac_mode$ac_tag in
9522  :[FHL]*:*);;
9523  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
9524$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
9525   { (exit 1); exit 1; }; };;
9526  :[FH]-) ac_tag=-:-;;
9527  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9528  esac
9529  ac_save_IFS=$IFS
9530  IFS=:
9531  set x $ac_tag
9532  IFS=$ac_save_IFS
9533  shift
9534  ac_file=$1
9535  shift
9536
9537  case $ac_mode in
9538  :L) ac_source=$1;;
9539  :[FH])
9540    ac_file_inputs=
9541    for ac_f
9542    do
9543      case $ac_f in
9544      -) ac_f="$tmp/stdin";;
9545      *) # Look for the file first in the build tree, then in the source tree
9546	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
9547	 # because $ac_f cannot contain `:'.
9548	 test -f "$ac_f" ||
9549	   case $ac_f in
9550	   [\\/$]*) false;;
9551	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9552	   esac ||
9553	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9554$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9555   { (exit 1); exit 1; }; };;
9556      esac
9557      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9558      ac_file_inputs="$ac_file_inputs '$ac_f'"
9559    done
9560
9561    # Let's still pretend it is `configure' which instantiates (i.e., don't
9562    # use $as_me), people would be surprised to read:
9563    #    /* config.h.  Generated by config.status.  */
9564    configure_input='Generated from '`
9565	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9566	`' by configure.'
9567    if test x"$ac_file" != x-; then
9568      configure_input="$ac_file.  $configure_input"
9569      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
9570$as_echo "$as_me: creating $ac_file" >&6;}
9571    fi
9572    # Neutralize special characters interpreted by sed in replacement strings.
9573    case $configure_input in #(
9574    *\&* | *\|* | *\\* )
9575       ac_sed_conf_input=`$as_echo "$configure_input" |
9576       sed 's/[\\\\&|]/\\\\&/g'`;; #(
9577    *) ac_sed_conf_input=$configure_input;;
9578    esac
9579
9580    case $ac_tag in
9581    *:-:* | *:-) cat >"$tmp/stdin" \
9582      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9583$as_echo "$as_me: error: could not create $ac_file" >&2;}
9584   { (exit 1); exit 1; }; } ;;
9585    esac
9586    ;;
9587  esac
9588
9589  ac_dir=`$as_dirname -- "$ac_file" ||
9590$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9591	 X"$ac_file" : 'X\(//\)[^/]' \| \
9592	 X"$ac_file" : 'X\(//\)$' \| \
9593	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9594$as_echo X"$ac_file" |
9595    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9596	    s//\1/
9597	    q
9598	  }
9599	  /^X\(\/\/\)[^/].*/{
9600	    s//\1/
9601	    q
9602	  }
9603	  /^X\(\/\/\)$/{
9604	    s//\1/
9605	    q
9606	  }
9607	  /^X\(\/\).*/{
9608	    s//\1/
9609	    q
9610	  }
9611	  s/.*/./; q'`
9612  { as_dir="$ac_dir"
9613  case $as_dir in #(
9614  -*) as_dir=./$as_dir;;
9615  esac
9616  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9617    as_dirs=
9618    while :; do
9619      case $as_dir in #(
9620      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9621      *) as_qdir=$as_dir;;
9622      esac
9623      as_dirs="'$as_qdir' $as_dirs"
9624      as_dir=`$as_dirname -- "$as_dir" ||
9625$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9626	 X"$as_dir" : 'X\(//\)[^/]' \| \
9627	 X"$as_dir" : 'X\(//\)$' \| \
9628	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9629$as_echo X"$as_dir" |
9630    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9631	    s//\1/
9632	    q
9633	  }
9634	  /^X\(\/\/\)[^/].*/{
9635	    s//\1/
9636	    q
9637	  }
9638	  /^X\(\/\/\)$/{
9639	    s//\1/
9640	    q
9641	  }
9642	  /^X\(\/\).*/{
9643	    s//\1/
9644	    q
9645	  }
9646	  s/.*/./; q'`
9647      test -d "$as_dir" && break
9648    done
9649    test -z "$as_dirs" || eval "mkdir $as_dirs"
9650  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9651$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
9652   { (exit 1); exit 1; }; }; }
9653  ac_builddir=.
9654
9655case "$ac_dir" in
9656.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9657*)
9658  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9659  # A ".." for each directory in $ac_dir_suffix.
9660  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9661  case $ac_top_builddir_sub in
9662  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9663  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9664  esac ;;
9665esac
9666ac_abs_top_builddir=$ac_pwd
9667ac_abs_builddir=$ac_pwd$ac_dir_suffix
9668# for backward compatibility:
9669ac_top_builddir=$ac_top_build_prefix
9670
9671case $srcdir in
9672  .)  # We are building in place.
9673    ac_srcdir=.
9674    ac_top_srcdir=$ac_top_builddir_sub
9675    ac_abs_top_srcdir=$ac_pwd ;;
9676  [\\/]* | ?:[\\/]* )  # Absolute name.
9677    ac_srcdir=$srcdir$ac_dir_suffix;
9678    ac_top_srcdir=$srcdir
9679    ac_abs_top_srcdir=$srcdir ;;
9680  *) # Relative name.
9681    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9682    ac_top_srcdir=$ac_top_build_prefix$srcdir
9683    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9684esac
9685ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9686
9687
9688  case $ac_mode in
9689
9690  :H)
9691  #
9692  # CONFIG_HEADER
9693  #
9694  if test x"$ac_file" != x-; then
9695    {
9696      $as_echo "/* $configure_input  */" \
9697      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9698    } >"$tmp/config.h" \
9699      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9700$as_echo "$as_me: error: could not create $ac_file" >&2;}
9701   { (exit 1); exit 1; }; }
9702    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9703      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9704$as_echo "$as_me: $ac_file is unchanged" >&6;}
9705    else
9706      rm -f "$ac_file"
9707      mv "$tmp/config.h" "$ac_file" \
9708	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9709$as_echo "$as_me: error: could not create $ac_file" >&2;}
9710   { (exit 1); exit 1; }; }
9711    fi
9712  else
9713    $as_echo "/* $configure_input  */" \
9714      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9715      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
9716$as_echo "$as_me: error: could not create -" >&2;}
9717   { (exit 1); exit 1; }; }
9718  fi
9719 ;;
9720
9721
9722  esac
9723
9724done # for ac_tag
9725
9726
9727{ (exit 0); exit 0; }
9728_ACEOF
9729chmod +x $CONFIG_STATUS
9730ac_clean_files=$ac_clean_files_save
9731
9732test $ac_write_fail = 0 ||
9733  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
9734$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
9735   { (exit 1); exit 1; }; }
9736
9737
9738# configure is writing to config.log, and then calls config.status.
9739# config.status does its own redirection, appending to config.log.
9740# Unfortunately, on DOS this fails, as config.log is still kept open
9741# by configure, so config.status won't be able to write to it; its
9742# output is simply discarded.  So we exec the FD to /dev/null,
9743# effectively closing config.log, so it can be properly (re)opened and
9744# appended to by config.status.  When coming back to configure, we
9745# need to make the FD available again.
9746if test "$no_create" != yes; then
9747  ac_cs_success=:
9748  ac_config_status_args=
9749  test "$silent" = yes &&
9750    ac_config_status_args="$ac_config_status_args --quiet"
9751  exec 5>/dev/null
9752  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9753  exec 5>>config.log
9754  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9755  # would make configure fail if this is the last instruction.
9756  $ac_cs_success || { (exit 1); exit 1; }
9757fi
9758if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9759  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9760$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9761fi
9762
9763
9764{ $as_echo "$as_me:$LINENO: checking for working POSIX non-blocking" >&5
9765$as_echo_n "checking for working POSIX non-blocking... " >&6; }
9766if test "$cross_compiling" = yes; then
9767  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9768$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9769{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9770See \`config.log' for more details." >&5
9771$as_echo "$as_me: error: cannot run test program while cross compiling
9772See \`config.log' for more details." >&2;}
9773   { (exit 1); exit 1; }; }; }
9774else
9775  cat >conftest.$ac_ext <<_ACEOF
9776/* confdefs.h.  */
9777_ACEOF
9778cat confdefs.h >>conftest.$ac_ext
9779cat >>conftest.$ac_ext <<_ACEOF
9780/* end confdefs.h.  */
9781
9782
9783  #include "config.h"
9784
9785  #include <sys/types.h>
9786  #include <stdio.h>
9787  #include <stdlib.h>
9788  #include <sys/socket.h>
9789  #include <fcntl.h>
9790  #include <sys/file.h>
9791  #include <unistd.h>
9792  #include <signal.h>
9793
9794#if OS_BSD || OS_LINUX
9795  #define recvfrom_addrlen_type socklen_t
9796#elif OS_SOLARIS
9797  #define recvfrom_addrlen_type socklen_t
9798#elif OS_AIX
9799  #define recvfrom_addrlen_type int
9800#elif OS_HPUNIX
9801  #define recvfrom_addrlen_type int
9802#elif OS_OSF1
9803  #define recvfrom_addrlen_type int
9804#else
9805  #define recvfrom_addrlen_type socklen_t
9806#endif
9807
9808  #define ERROR -1
9809  #define RECVBUFFERLEN 1024
9810
9811  void alarm_handler(int Signal);
9812  void alarm_handler(int Signal) {
9813    perror("blocking!");
9814    exit(1);
9815  }
9816
9817  int main(int argc, char **argv);
9818  int main(int argc, char **argv) {
9819
9820    signed long int Result = 0;
9821    signed long int FD = 0;
9822    unsigned long int Flags = 0;
9823    char RecvBuffer[RECVBUFFERLEN+1] = "";
9824    struct sockaddr SockAddr;
9825    recvfrom_addrlen_type SockAddrLen = sizeof(SockAddr);
9826
9827    Result = socket(AF_INET, SOCK_DGRAM, 0);
9828    if (Result <= ERROR) {
9829      perror("socket()");
9830      exit(1);
9831    }
9832    FD = Result;
9833    Result = fcntl(FD, F_GETFL);
9834    if (Result <= ERROR) {
9835      perror("fcntl() F_GETFL");
9836      close(FD);
9837      exit(1);
9838    }
9839    Flags = Result;
9840    #ifdef O_NONBLOCK
9841      Flags |= O_NONBLOCK;
9842    #else
9843      perror("O_NONBLOCK not defined");
9844      close(FD);
9845      exit(1);
9846    #endif
9847    Result = fcntl(FD, F_SETFL, Flags);
9848    if (Result <= ERROR) {
9849      perror("fcntl() F_SETFL");
9850      close(FD);
9851      exit(1);
9852    }
9853    signal(SIGALRM, alarm_handler);
9854    alarm(2);
9855    recvfrom(FD, &RecvBuffer, RECVBUFFERLEN, 0, &SockAddr, &SockAddrLen);
9856    alarm(0);
9857    printf("yes\n");
9858    close(FD);
9859    exit(0);
9860  }
9861
9862_ACEOF
9863rm -f conftest$ac_exeext
9864if { (ac_try="$ac_link"
9865case "(($ac_try" in
9866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867  *) ac_try_echo=$ac_try;;
9868esac
9869eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9870$as_echo "$ac_try_echo") >&5
9871  (eval "$ac_link") 2>&5
9872  ac_status=$?
9873  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9875  { (case "(($ac_try" in
9876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9877  *) ac_try_echo=$ac_try;;
9878esac
9879eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9880$as_echo "$ac_try_echo") >&5
9881  (eval "$ac_try") 2>&5
9882  ac_status=$?
9883  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884  (exit $ac_status); }; }; then
9885
9886cat >>confdefs.h <<\_ACEOF
9887@%:@define NBLOCK_POSIX /**/
9888_ACEOF
9889
9890else
9891  $as_echo "$as_me: program exited with status $ac_status" >&5
9892$as_echo "$as_me: failed program was:" >&5
9893sed 's/^/| /' conftest.$ac_ext >&5
9894
9895( exit $ac_status )
9896{ $as_echo "$as_me:$LINENO: result: cant compile" >&5
9897$as_echo "cant compile" >&6; }
9898fi
9899rm -rf conftest.dSYM
9900rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9901fi
9902
9903
9904
9905
9906{ $as_echo "$as_me:$LINENO: checking for working BSD non-blocking" >&5
9907$as_echo_n "checking for working BSD non-blocking... " >&6; }
9908if test "$cross_compiling" = yes; then
9909  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9910$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9911{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9912See \`config.log' for more details." >&5
9913$as_echo "$as_me: error: cannot run test program while cross compiling
9914See \`config.log' for more details." >&2;}
9915   { (exit 1); exit 1; }; }; }
9916else
9917  cat >conftest.$ac_ext <<_ACEOF
9918/* confdefs.h.  */
9919_ACEOF
9920cat confdefs.h >>conftest.$ac_ext
9921cat >>conftest.$ac_ext <<_ACEOF
9922/* end confdefs.h.  */
9923
9924
9925  #include "config.h"
9926
9927  #include <sys/types.h>
9928  #include <stdio.h>
9929  #include <stdlib.h>
9930  #include <sys/socket.h>
9931  #include <fcntl.h>
9932  #include <sys/file.h>
9933  #include <unistd.h>
9934  #include <signal.h>
9935
9936#if OS_BSD || OS_LINUX
9937  #define recvfrom_addrlen_type socklen_t
9938#elif OS_SOLARIS
9939  #define recvfrom_addrlen_type socklen_t
9940#elif OS_AIX
9941  #define recvfrom_addrlen_type int
9942#elif OS_HPUNIX
9943  #define recvfrom_addrlen_type int
9944#elif OS_OSF1
9945  #define recvfrom_addrlen_type int
9946#else
9947  #define recvfrom_addrlen_type socklen_t
9948#endif
9949
9950  #define ERROR -1
9951  #define RECVBUFFERLEN 1024
9952
9953  void alarm_handler(int Signal);
9954  void alarm_handler(int Signal) {
9955    perror("blocking!");
9956    exit(1);
9957  }
9958
9959  int main(int argc, char **argv);
9960  int main(int argc, char **argv) {
9961
9962    signed long int Result = 0;
9963    signed long int FD = 0;
9964    unsigned long int Flags = 0;
9965    char RecvBuffer[RECVBUFFERLEN+1] = "";
9966    struct sockaddr SockAddr;
9967    recvfrom_addrlen_type SockAddrLen = sizeof(SockAddr);
9968
9969    Result = socket(AF_INET, SOCK_DGRAM, 0);
9970    if (Result <= ERROR) {
9971      perror("socket()");
9972      exit(1);
9973    }
9974    FD = Result;
9975    Result = fcntl(FD, F_GETFL);
9976    if (Result <= ERROR) {
9977      perror("fcntl() F_GETFL");
9978      close(FD);
9979      exit(1);
9980    }
9981    Flags = Result;
9982    #ifdef O_NDELAY
9983      Flags |= O_NDELAY;
9984    #else
9985      perror("O_NDELAY not defined");
9986      close(FD);
9987      exit(1);
9988    #endif
9989    Result = fcntl(FD, F_SETFL, Flags);
9990    if (Result <= ERROR) {
9991      perror("fcntl() F_SETFL");
9992      close(FD);
9993      exit(1);
9994    }
9995    signal(SIGALRM, alarm_handler);
9996    alarm(2);
9997    recvfrom(FD, &RecvBuffer, RECVBUFFERLEN, 0, &SockAddr, &SockAddrLen);
9998    alarm(0);
9999    printf("yes\n");
10000    close(FD);
10001    exit(0);
10002  }
10003
10004_ACEOF
10005rm -f conftest$ac_exeext
10006if { (ac_try="$ac_link"
10007case "(($ac_try" in
10008  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10009  *) ac_try_echo=$ac_try;;
10010esac
10011eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10012$as_echo "$ac_try_echo") >&5
10013  (eval "$ac_link") 2>&5
10014  ac_status=$?
10015  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10017  { (case "(($ac_try" in
10018  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10019  *) ac_try_echo=$ac_try;;
10020esac
10021eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10022$as_echo "$ac_try_echo") >&5
10023  (eval "$ac_try") 2>&5
10024  ac_status=$?
10025  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026  (exit $ac_status); }; }; then
10027
10028cat >>confdefs.h <<\_ACEOF
10029@%:@define NBLOCK_BSD /**/
10030_ACEOF
10031
10032else
10033  $as_echo "$as_me: program exited with status $ac_status" >&5
10034$as_echo "$as_me: failed program was:" >&5
10035sed 's/^/| /' conftest.$ac_ext >&5
10036
10037( exit $ac_status )
10038{ $as_echo "$as_me:$LINENO: result: cant compile" >&5
10039$as_echo "cant compile" >&6; }
10040fi
10041rm -rf conftest.dSYM
10042rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10043fi
10044
10045
10046
10047
10048{ $as_echo "$as_me:$LINENO: checking for working SysV non-blocking" >&5
10049$as_echo_n "checking for working SysV non-blocking... " >&6; }
10050if test "$cross_compiling" = yes; then
10051  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10052$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10053{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10054See \`config.log' for more details." >&5
10055$as_echo "$as_me: error: cannot run test program while cross compiling
10056See \`config.log' for more details." >&2;}
10057   { (exit 1); exit 1; }; }; }
10058else
10059  cat >conftest.$ac_ext <<_ACEOF
10060/* confdefs.h.  */
10061_ACEOF
10062cat confdefs.h >>conftest.$ac_ext
10063cat >>conftest.$ac_ext <<_ACEOF
10064/* end confdefs.h.  */
10065
10066
10067  #include "config.h"
10068
10069  #include <sys/types.h>
10070  #include <stdio.h>
10071  #include <stdlib.h>
10072  #include <sys/socket.h>
10073  #include <sys/ioctl.h>
10074  #if HAVE_SYS_FILIO_H
10075    #include <sys/filio.h>
10076  #endif
10077  #include <sys/file.h>
10078  #include <fcntl.h>
10079  #include <unistd.h>
10080  #include <signal.h>
10081
10082#if OS_BSD || OS_LINUX
10083  #define recvfrom_addrlen_type socklen_t
10084#elif OS_SOLARIS
10085  #define recvfrom_addrlen_type socklen_t
10086#elif OS_AIX
10087  #define recvfrom_addrlen_type int
10088#elif OS_HPUNIX
10089  #define recvfrom_addrlen_type int
10090#elif OS_OSF1
10091  #define recvfrom_addrlen_type int
10092#else
10093  #define recvfrom_addrlen_type socklen_t
10094#endif
10095
10096  #define ERROR -1
10097  #define RECVBUFFERLEN 1024
10098
10099  void alarm_handler(int Signal);
10100  void alarm_handler(int Signal) {
10101    perror("blocking!");
10102    exit(1);
10103  }
10104
10105  int main(int argc, char **argv);
10106  int main(int argc, char **argv) {
10107
10108    signed long int Result = 0;
10109    signed long int FD = 0;
10110    unsigned long int True = 1;
10111    char RecvBuffer[RECVBUFFERLEN+1] = "";
10112    struct sockaddr SockAddr;
10113    recvfrom_addrlen_type SockAddrLen = sizeof(SockAddr);
10114
10115    Result = socket(AF_INET, SOCK_DGRAM, 0);
10116    if (Result <= ERROR) {
10117      perror("socket()");
10118      exit(1);
10119    }
10120    FD = Result;
10121    Result = ioctl(FD, FIONBIO, &True);
10122    if (Result <= ERROR) {
10123      perror("ioctl()");
10124      close(FD);
10125      exit(1);
10126    }
10127    signal(SIGALRM, alarm_handler);
10128    alarm(2);
10129    recvfrom(FD, &RecvBuffer, RECVBUFFERLEN, 0, &SockAddr, &SockAddrLen);
10130    alarm(0);
10131    printf("yes\n");
10132    close(FD);
10133    exit(0);
10134  }
10135
10136_ACEOF
10137rm -f conftest$ac_exeext
10138if { (ac_try="$ac_link"
10139case "(($ac_try" in
10140  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141  *) ac_try_echo=$ac_try;;
10142esac
10143eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10144$as_echo "$ac_try_echo") >&5
10145  (eval "$ac_link") 2>&5
10146  ac_status=$?
10147  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10149  { (case "(($ac_try" in
10150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10151  *) ac_try_echo=$ac_try;;
10152esac
10153eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10154$as_echo "$ac_try_echo") >&5
10155  (eval "$ac_try") 2>&5
10156  ac_status=$?
10157  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158  (exit $ac_status); }; }; then
10159
10160cat >>confdefs.h <<\_ACEOF
10161@%:@define NBLOCK_SYSV /**/
10162_ACEOF
10163
10164else
10165  $as_echo "$as_me: program exited with status $ac_status" >&5
10166$as_echo "$as_me: failed program was:" >&5
10167sed 's/^/| /' conftest.$ac_ext >&5
10168
10169( exit $ac_status )
10170{ $as_echo "$as_me:$LINENO: result: cant compile" >&5
10171$as_echo "cant compile" >&6; }
10172fi
10173rm -rf conftest.dSYM
10174rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10175fi
10176
10177
10178
10179
10180
10181ac_config_files="$ac_config_files Makefile src/Makefile"
10182
10183
10184ac_config_commands="$ac_config_commands default"
10185
10186cat >confcache <<\_ACEOF
10187# This file is a shell script that caches the results of configure
10188# tests run on this system so they can be shared between configure
10189# scripts and configure runs, see configure's option --config-cache.
10190# It is not useful on other systems.  If it contains results you don't
10191# want to keep, you may remove or edit it.
10192#
10193# config.status only pays attention to the cache file if you give it
10194# the --recheck option to rerun configure.
10195#
10196# `ac_cv_env_foo' variables (set or unset) will be overridden when
10197# loading this file, other *unset* `ac_cv_foo' will be assigned the
10198# following values.
10199
10200_ACEOF
10201
10202# The following way of writing the cache mishandles newlines in values,
10203# but we know of no workaround that is simple, portable, and efficient.
10204# So, we kill variables containing newlines.
10205# Ultrix sh set writes to stderr and can't be redirected directly,
10206# and sets the high bit in the cache file unless we assign to the vars.
10207(
10208  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10209    eval ac_val=\$$ac_var
10210    case $ac_val in #(
10211    *${as_nl}*)
10212      case $ac_var in #(
10213      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
10214$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10215      esac
10216      case $ac_var in #(
10217      _ | IFS | as_nl) ;; #(
10218      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10219      *) $as_unset $ac_var ;;
10220      esac ;;
10221    esac
10222  done
10223
10224  (set) 2>&1 |
10225    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10226    *${as_nl}ac_space=\ *)
10227      # `set' does not quote correctly, so add quotes (double-quote
10228      # substitution turns \\\\ into \\, and sed turns \\ into \).
10229      sed -n \
10230	"s/'/'\\\\''/g;
10231	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10232      ;; #(
10233    *)
10234      # `set' quotes correctly as required by POSIX, so do not add quotes.
10235      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10236      ;;
10237    esac |
10238    sort
10239) |
10240  sed '
10241     /^ac_cv_env_/b end
10242     t clear
10243     :clear
10244     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10245     t end
10246     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10247     :end' >>confcache
10248if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10249  if test -w "$cache_file"; then
10250    test "x$cache_file" != "x/dev/null" &&
10251      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
10252$as_echo "$as_me: updating cache $cache_file" >&6;}
10253    cat confcache >$cache_file
10254  else
10255    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10256$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10257  fi
10258fi
10259rm -f confcache
10260
10261test "x$prefix" = xNONE && prefix=$ac_default_prefix
10262# Let make expand exec_prefix.
10263test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10264
10265DEFS=-DHAVE_CONFIG_H
10266
10267ac_libobjs=
10268ac_ltlibobjs=
10269for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
10270  # 1. Remove the extension, and $U if already installed.
10271  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10272  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10273  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10274  #    will be set to the directory where LIBOBJS objects are built.
10275  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10276  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10277done
10278LIB@&t@OBJS=$ac_libobjs
10279
10280LTLIBOBJS=$ac_ltlibobjs
10281
10282
10283
10284: ${CONFIG_STATUS=./config.status}
10285ac_write_fail=0
10286ac_clean_files_save=$ac_clean_files
10287ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10288{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10289$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10290cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10291#! $SHELL
10292# Generated by $as_me.
10293# Run this file to recreate the current configuration.
10294# Compiler output produced by configure, useful for debugging
10295# configure, is in config.log if it exists.
10296
10297debug=false
10298ac_cs_recheck=false
10299ac_cs_silent=false
10300SHELL=\${CONFIG_SHELL-$SHELL}
10301_ACEOF
10302
10303cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10304## --------------------- ##
10305## M4sh Initialization.  ##
10306## --------------------- ##
10307
10308# Be more Bourne compatible
10309DUALCASE=1; export DUALCASE # for MKS sh
10310if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10311  emulate sh
10312  NULLCMD=:
10313  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10314  # is contrary to our usage.  Disable this feature.
10315  alias -g '${1+"$@"}'='"$@"'
10316  setopt NO_GLOB_SUBST
10317else
10318  case `(set -o) 2>/dev/null` in
10319  *posix*) set -o posix ;;
10320esac
10321
10322fi
10323
10324
10325
10326
10327# PATH needs CR
10328# Avoid depending upon Character Ranges.
10329as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10330as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10331as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10332as_cr_digits='0123456789'
10333as_cr_alnum=$as_cr_Letters$as_cr_digits
10334
10335as_nl='
10336'
10337export as_nl
10338# Printing a long string crashes Solaris 7 /usr/bin/printf.
10339as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10340as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10341as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10342if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10343  as_echo='printf %s\n'
10344  as_echo_n='printf %s'
10345else
10346  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10347    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10348    as_echo_n='/usr/ucb/echo -n'
10349  else
10350    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10351    as_echo_n_body='eval
10352      arg=$1;
10353      case $arg in
10354      *"$as_nl"*)
10355	expr "X$arg" : "X\\(.*\\)$as_nl";
10356	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10357      esac;
10358      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10359    '
10360    export as_echo_n_body
10361    as_echo_n='sh -c $as_echo_n_body as_echo'
10362  fi
10363  export as_echo_body
10364  as_echo='sh -c $as_echo_body as_echo'
10365fi
10366
10367# The user is always right.
10368if test "${PATH_SEPARATOR+set}" != set; then
10369  PATH_SEPARATOR=:
10370  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10371    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10372      PATH_SEPARATOR=';'
10373  }
10374fi
10375
10376# Support unset when possible.
10377if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10378  as_unset=unset
10379else
10380  as_unset=false
10381fi
10382
10383
10384# IFS
10385# We need space, tab and new line, in precisely that order.  Quoting is
10386# there to prevent editors from complaining about space-tab.
10387# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10388# splitting by setting IFS to empty value.)
10389IFS=" ""	$as_nl"
10390
10391# Find who we are.  Look in the path if we contain no directory separator.
10392case $0 in
10393  *[\\/]* ) as_myself=$0 ;;
10394  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10395for as_dir in $PATH
10396do
10397  IFS=$as_save_IFS
10398  test -z "$as_dir" && as_dir=.
10399  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10400done
10401IFS=$as_save_IFS
10402
10403     ;;
10404esac
10405# We did not find ourselves, most probably we were run as `sh COMMAND'
10406# in which case we are not to be found in the path.
10407if test "x$as_myself" = x; then
10408  as_myself=$0
10409fi
10410if test ! -f "$as_myself"; then
10411  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10412  { (exit 1); exit 1; }
10413fi
10414
10415# Work around bugs in pre-3.0 UWIN ksh.
10416for as_var in ENV MAIL MAILPATH
10417do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10418done
10419PS1='$ '
10420PS2='> '
10421PS4='+ '
10422
10423# NLS nuisances.
10424LC_ALL=C
10425export LC_ALL
10426LANGUAGE=C
10427export LANGUAGE
10428
10429# Required to use basename.
10430if expr a : '\(a\)' >/dev/null 2>&1 &&
10431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10432  as_expr=expr
10433else
10434  as_expr=false
10435fi
10436
10437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10438  as_basename=basename
10439else
10440  as_basename=false
10441fi
10442
10443
10444# Name of the executable.
10445as_me=`$as_basename -- "$0" ||
10446$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10447	 X"$0" : 'X\(//\)$' \| \
10448	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10449$as_echo X/"$0" |
10450    sed '/^.*\/\([^/][^/]*\)\/*$/{
10451	    s//\1/
10452	    q
10453	  }
10454	  /^X\/\(\/\/\)$/{
10455	    s//\1/
10456	    q
10457	  }
10458	  /^X\/\(\/\).*/{
10459	    s//\1/
10460	    q
10461	  }
10462	  s/.*/./; q'`
10463
10464# CDPATH.
10465$as_unset CDPATH
10466
10467
10468
10469  as_lineno_1=$LINENO
10470  as_lineno_2=$LINENO
10471  test "x$as_lineno_1" != "x$as_lineno_2" &&
10472  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10473
10474  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10475  # uniformly replaced by the line number.  The first 'sed' inserts a
10476  # line-number line after each line using $LINENO; the second 'sed'
10477  # does the real work.  The second script uses 'N' to pair each
10478  # line-number line with the line containing $LINENO, and appends
10479  # trailing '-' during substitution so that $LINENO is not a special
10480  # case at line end.
10481  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10482  # scripts with optimization help from Paolo Bonzini.  Blame Lee
10483  # E. McMahon (1931-1989) for sed's syntax.  :-)
10484  sed -n '
10485    p
10486    /[$]LINENO/=
10487  ' <$as_myself |
10488    sed '
10489      s/[$]LINENO.*/&-/
10490      t lineno
10491      b
10492      :lineno
10493      N
10494      :loop
10495      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10496      t loop
10497      s/-\n.*//
10498    ' >$as_me.lineno &&
10499  chmod +x "$as_me.lineno" ||
10500    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10501   { (exit 1); exit 1; }; }
10502
10503  # Don't try to exec as it changes $[0], causing all sort of problems
10504  # (the dirname of $[0] is not the place where we might find the
10505  # original and so on.  Autoconf is especially sensitive to this).
10506  . "./$as_me.lineno"
10507  # Exit status is that of the last command.
10508  exit
10509}
10510
10511
10512if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10513  as_dirname=dirname
10514else
10515  as_dirname=false
10516fi
10517
10518ECHO_C= ECHO_N= ECHO_T=
10519case `echo -n x` in
10520-n*)
10521  case `echo 'x\c'` in
10522  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
10523  *)   ECHO_C='\c';;
10524  esac;;
10525*)
10526  ECHO_N='-n';;
10527esac
10528if expr a : '\(a\)' >/dev/null 2>&1 &&
10529   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10530  as_expr=expr
10531else
10532  as_expr=false
10533fi
10534
10535rm -f conf$$ conf$$.exe conf$$.file
10536if test -d conf$$.dir; then
10537  rm -f conf$$.dir/conf$$.file
10538else
10539  rm -f conf$$.dir
10540  mkdir conf$$.dir 2>/dev/null
10541fi
10542if (echo >conf$$.file) 2>/dev/null; then
10543  if ln -s conf$$.file conf$$ 2>/dev/null; then
10544    as_ln_s='ln -s'
10545    # ... but there are two gotchas:
10546    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10547    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10548    # In both cases, we have to default to `cp -p'.
10549    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10550      as_ln_s='cp -p'
10551  elif ln conf$$.file conf$$ 2>/dev/null; then
10552    as_ln_s=ln
10553  else
10554    as_ln_s='cp -p'
10555  fi
10556else
10557  as_ln_s='cp -p'
10558fi
10559rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10560rmdir conf$$.dir 2>/dev/null
10561
10562if mkdir -p . 2>/dev/null; then
10563  as_mkdir_p=:
10564else
10565  test -d ./-p && rmdir ./-p
10566  as_mkdir_p=false
10567fi
10568
10569if test -x / >/dev/null 2>&1; then
10570  as_test_x='test -x'
10571else
10572  if ls -dL / >/dev/null 2>&1; then
10573    as_ls_L_option=L
10574  else
10575    as_ls_L_option=
10576  fi
10577  as_test_x='
10578    eval sh -c '\''
10579      if test -d "$1"; then
10580	test -d "$1/.";
10581      else
10582	case $1 in
10583	-*)set "./$1";;
10584	esac;
10585	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10586	???[sx]*):;;*)false;;esac;fi
10587    '\'' sh
10588  '
10589fi
10590as_executable_p=$as_test_x
10591
10592# Sed expression to map a string onto a valid CPP name.
10593as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10594
10595# Sed expression to map a string onto a valid variable name.
10596as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10597
10598
10599exec 6>&1
10600
10601# Save the log message, to keep $[0] and so on meaningful, and to
10602# report actual input values of CONFIG_FILES etc. instead of their
10603# values after options handling.
10604ac_log="
10605This file was extended by ircproxy $as_me 1.3.6, which was
10606generated by GNU Autoconf 2.63.  Invocation command line was
10607
10608  CONFIG_FILES    = $CONFIG_FILES
10609  CONFIG_HEADERS  = $CONFIG_HEADERS
10610  CONFIG_LINKS    = $CONFIG_LINKS
10611  CONFIG_COMMANDS = $CONFIG_COMMANDS
10612  $ $0 $@
10613
10614on `(hostname || uname -n) 2>/dev/null | sed 1q`
10615"
10616
10617_ACEOF
10618
10619case $ac_config_files in *"
10620"*) set x $ac_config_files; shift; ac_config_files=$*;;
10621esac
10622
10623case $ac_config_headers in *"
10624"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10625esac
10626
10627
10628cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10629# Files that config.status was made for.
10630config_files="$ac_config_files"
10631config_headers="$ac_config_headers"
10632config_commands="$ac_config_commands"
10633
10634_ACEOF
10635
10636cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10637ac_cs_usage="\
10638\`$as_me' instantiates files from templates according to the
10639current configuration.
10640
10641Usage: $0 [OPTION]... [FILE]...
10642
10643  -h, --help       print this help, then exit
10644  -V, --version    print version number and configuration settings, then exit
10645  -q, --quiet, --silent
10646                   do not print progress messages
10647  -d, --debug      don't remove temporary files
10648      --recheck    update $as_me by reconfiguring in the same conditions
10649      --file=FILE[:TEMPLATE]
10650                   instantiate the configuration file FILE
10651      --header=FILE[:TEMPLATE]
10652                   instantiate the configuration header FILE
10653
10654Configuration files:
10655$config_files
10656
10657Configuration headers:
10658$config_headers
10659
10660Configuration commands:
10661$config_commands
10662
10663Report bugs to <bug-autoconf@gnu.org>."
10664
10665_ACEOF
10666cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10667ac_cs_version="\\
10668ircproxy config.status 1.3.6
10669configured by $0, generated by GNU Autoconf 2.63,
10670  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10671
10672Copyright (C) 2008 Free Software Foundation, Inc.
10673This config.status script is free software; the Free Software Foundation
10674gives unlimited permission to copy, distribute and modify it."
10675
10676ac_pwd='$ac_pwd'
10677srcdir='$srcdir'
10678INSTALL='$INSTALL'
10679test -n "\$AWK" || AWK=awk
10680_ACEOF
10681
10682cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10683# The default lists apply if the user does not specify any file.
10684ac_need_defaults=:
10685while test $# != 0
10686do
10687  case $1 in
10688  --*=*)
10689    ac_option=`expr "X$1" : 'X\([^=]*\)='`
10690    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10691    ac_shift=:
10692    ;;
10693  *)
10694    ac_option=$1
10695    ac_optarg=$2
10696    ac_shift=shift
10697    ;;
10698  esac
10699
10700  case $ac_option in
10701  # Handling of the options.
10702  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10703    ac_cs_recheck=: ;;
10704  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10705    $as_echo "$ac_cs_version"; exit ;;
10706  --debug | --debu | --deb | --de | --d | -d )
10707    debug=: ;;
10708  --file | --fil | --fi | --f )
10709    $ac_shift
10710    case $ac_optarg in
10711    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10712    esac
10713    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
10714    ac_need_defaults=false;;
10715  --header | --heade | --head | --hea )
10716    $ac_shift
10717    case $ac_optarg in
10718    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10719    esac
10720    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
10721    ac_need_defaults=false;;
10722  --he | --h)
10723    # Conflict between --help and --header
10724    { $as_echo "$as_me: error: ambiguous option: $1
10725Try \`$0 --help' for more information." >&2
10726   { (exit 1); exit 1; }; };;
10727  --help | --hel | -h )
10728    $as_echo "$ac_cs_usage"; exit ;;
10729  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10730  | -silent | --silent | --silen | --sile | --sil | --si | --s)
10731    ac_cs_silent=: ;;
10732
10733  # This is an error.
10734  -*) { $as_echo "$as_me: error: unrecognized option: $1
10735Try \`$0 --help' for more information." >&2
10736   { (exit 1); exit 1; }; } ;;
10737
10738  *) ac_config_targets="$ac_config_targets $1"
10739     ac_need_defaults=false ;;
10740
10741  esac
10742  shift
10743done
10744
10745ac_configure_extra_args=
10746
10747if $ac_cs_silent; then
10748  exec 6>/dev/null
10749  ac_configure_extra_args="$ac_configure_extra_args --silent"
10750fi
10751
10752_ACEOF
10753cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10754if \$ac_cs_recheck; then
10755  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10756  shift
10757  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10758  CONFIG_SHELL='$SHELL'
10759  export CONFIG_SHELL
10760  exec "\$@"
10761fi
10762
10763_ACEOF
10764cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10765exec 5>>config.log
10766{
10767  echo
10768  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
10769@%:@@%:@ Running $as_me. @%:@@%:@
10770_ASBOX
10771  $as_echo "$ac_log"
10772} >&5
10773
10774_ACEOF
10775cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10776_ACEOF
10777
10778cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10779
10780# Handling of arguments.
10781for ac_config_target in $ac_config_targets
10782do
10783  case $ac_config_target in
10784    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10785    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10786    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10787    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
10788
10789  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10790$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10791   { (exit 1); exit 1; }; };;
10792  esac
10793done
10794
10795
10796# If the user did not use the arguments to specify the items to instantiate,
10797# then the envvar interface is used.  Set only those that are not.
10798# We use the long form for the default assignment because of an extremely
10799# bizarre bug on SunOS 4.1.3.
10800if $ac_need_defaults; then
10801  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10802  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10803  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10804fi
10805
10806# Have a temporary directory for convenience.  Make it in the build tree
10807# simply because there is no reason against having it here, and in addition,
10808# creating and moving files from /tmp can sometimes cause problems.
10809# Hook for its removal unless debugging.
10810# Note that there is a small window in which the directory will not be cleaned:
10811# after its creation but before its name has been assigned to `$tmp'.
10812$debug ||
10813{
10814  tmp=
10815  trap 'exit_status=$?
10816  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10817' 0
10818  trap '{ (exit 1); exit 1; }' 1 2 13 15
10819}
10820# Create a (secure) tmp directory for tmp files.
10821
10822{
10823  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10824  test -n "$tmp" && test -d "$tmp"
10825}  ||
10826{
10827  tmp=./conf$$-$RANDOM
10828  (umask 077 && mkdir "$tmp")
10829} ||
10830{
10831   $as_echo "$as_me: cannot create a temporary directory in ." >&2
10832   { (exit 1); exit 1; }
10833}
10834
10835# Set up the scripts for CONFIG_FILES section.
10836# No need to generate them if there are no CONFIG_FILES.
10837# This happens for instance with `./config.status config.h'.
10838if test -n "$CONFIG_FILES"; then
10839
10840
10841ac_cr='
10842'
10843ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10844if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10845  ac_cs_awk_cr='\\r'
10846else
10847  ac_cs_awk_cr=$ac_cr
10848fi
10849
10850echo 'BEGIN {' >"$tmp/subs1.awk" &&
10851_ACEOF
10852
10853
10854{
10855  echo "cat >conf$$subs.awk <<_ACEOF" &&
10856  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10857  echo "_ACEOF"
10858} >conf$$subs.sh ||
10859  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10860$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10861   { (exit 1); exit 1; }; }
10862ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10863ac_delim='%!_!# '
10864for ac_last_try in false false false false false :; do
10865  . ./conf$$subs.sh ||
10866    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10867$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10868   { (exit 1); exit 1; }; }
10869
10870  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10871  if test $ac_delim_n = $ac_delim_num; then
10872    break
10873  elif $ac_last_try; then
10874    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10875$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10876   { (exit 1); exit 1; }; }
10877  else
10878    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10879  fi
10880done
10881rm -f conf$$subs.sh
10882
10883cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10884cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10885_ACEOF
10886sed -n '
10887h
10888s/^/S["/; s/!.*/"]=/
10889p
10890g
10891s/^[^!]*!//
10892:repl
10893t repl
10894s/'"$ac_delim"'$//
10895t delim
10896:nl
10897h
10898s/\(.\{148\}\).*/\1/
10899t more1
10900s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10901p
10902n
10903b repl
10904:more1
10905s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10906p
10907g
10908s/.\{148\}//
10909t nl
10910:delim
10911h
10912s/\(.\{148\}\).*/\1/
10913t more2
10914s/["\\]/\\&/g; s/^/"/; s/$/"/
10915p
10916b
10917:more2
10918s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10919p
10920g
10921s/.\{148\}//
10922t delim
10923' <conf$$subs.awk | sed '
10924/^[^""]/{
10925  N
10926  s/\n//
10927}
10928' >>$CONFIG_STATUS || ac_write_fail=1
10929rm -f conf$$subs.awk
10930cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10931_ACAWK
10932cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10933  for (key in S) S_is_set[key] = 1
10934  FS = ""
10935
10936}
10937{
10938  line = $ 0
10939  nfields = split(line, field, "@")
10940  substed = 0
10941  len = length(field[1])
10942  for (i = 2; i < nfields; i++) {
10943    key = field[i]
10944    keylen = length(key)
10945    if (S_is_set[key]) {
10946      value = S[key]
10947      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10948      len += length(value) + length(field[++i])
10949      substed = 1
10950    } else
10951      len += 1 + keylen
10952  }
10953
10954  print line
10955}
10956
10957_ACAWK
10958_ACEOF
10959cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10960if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10961  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10962else
10963  cat
10964fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10965  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
10966$as_echo "$as_me: error: could not setup config files machinery" >&2;}
10967   { (exit 1); exit 1; }; }
10968_ACEOF
10969
10970# VPATH may cause trouble with some makes, so we remove $(srcdir),
10971# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10972# trailing colons and then remove the whole line if VPATH becomes empty
10973# (actually we leave an empty line to preserve line numbers).
10974if test "x$srcdir" = x.; then
10975  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
10976s/:*\$(srcdir):*/:/
10977s/:*\${srcdir}:*/:/
10978s/:*@srcdir@:*/:/
10979s/^\([^=]*=[	 ]*\):*/\1/
10980s/:*$//
10981s/^[^=]*=[	 ]*$//
10982}'
10983fi
10984
10985cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10986fi # test -n "$CONFIG_FILES"
10987
10988# Set up the scripts for CONFIG_HEADERS section.
10989# No need to generate them if there are no CONFIG_HEADERS.
10990# This happens for instance with `./config.status Makefile'.
10991if test -n "$CONFIG_HEADERS"; then
10992cat >"$tmp/defines.awk" <<\_ACAWK ||
10993BEGIN {
10994_ACEOF
10995
10996# Transform confdefs.h into an awk script `defines.awk', embedded as
10997# here-document in config.status, that substitutes the proper values into
10998# config.h.in to produce config.h.
10999
11000# Create a delimiter string that does not exist in confdefs.h, to ease
11001# handling of long lines.
11002ac_delim='%!_!# '
11003for ac_last_try in false false :; do
11004  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11005  if test -z "$ac_t"; then
11006    break
11007  elif $ac_last_try; then
11008    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
11009$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
11010   { (exit 1); exit 1; }; }
11011  else
11012    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11013  fi
11014done
11015
11016# For the awk script, D is an array of macro values keyed by name,
11017# likewise P contains macro parameters if any.  Preserve backslash
11018# newline sequences.
11019
11020ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11021sed -n '
11022s/.\{148\}/&'"$ac_delim"'/g
11023t rset
11024:rset
11025s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11026t def
11027d
11028:def
11029s/\\$//
11030t bsnl
11031s/["\\]/\\&/g
11032s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11033D["\1"]=" \3"/p
11034s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11035d
11036:bsnl
11037s/["\\]/\\&/g
11038s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11039D["\1"]=" \3\\\\\\n"\\/p
11040t cont
11041s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11042t cont
11043d
11044:cont
11045n
11046s/.\{148\}/&'"$ac_delim"'/g
11047t clear
11048:clear
11049s/\\$//
11050t bsnlc
11051s/["\\]/\\&/g; s/^/"/; s/$/"/p
11052d
11053:bsnlc
11054s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11055b cont
11056' <confdefs.h | sed '
11057s/'"$ac_delim"'/"\\\
11058"/g' >>$CONFIG_STATUS || ac_write_fail=1
11059
11060cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11061  for (key in D) D_is_set[key] = 1
11062  FS = ""
11063}
11064/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11065  line = \$ 0
11066  split(line, arg, " ")
11067  if (arg[1] == "#") {
11068    defundef = arg[2]
11069    mac1 = arg[3]
11070  } else {
11071    defundef = substr(arg[1], 2)
11072    mac1 = arg[2]
11073  }
11074  split(mac1, mac2, "(") #)
11075  macro = mac2[1]
11076  prefix = substr(line, 1, index(line, defundef) - 1)
11077  if (D_is_set[macro]) {
11078    # Preserve the white space surrounding the "#".
11079    print prefix "define", macro P[macro] D[macro]
11080    next
11081  } else {
11082    # Replace #undef with comments.  This is necessary, for example,
11083    # in the case of _POSIX_SOURCE, which is predefined and required
11084    # on some systems where configure will not decide to define it.
11085    if (defundef == "undef") {
11086      print "/*", prefix defundef, macro, "*/"
11087      next
11088    }
11089  }
11090}
11091{ print }
11092_ACAWK
11093_ACEOF
11094cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11095  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
11096$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
11097   { (exit 1); exit 1; }; }
11098fi # test -n "$CONFIG_HEADERS"
11099
11100
11101eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11102shift
11103for ac_tag
11104do
11105  case $ac_tag in
11106  :[FHLC]) ac_mode=$ac_tag; continue;;
11107  esac
11108  case $ac_mode$ac_tag in
11109  :[FHL]*:*);;
11110  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
11111$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
11112   { (exit 1); exit 1; }; };;
11113  :[FH]-) ac_tag=-:-;;
11114  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11115  esac
11116  ac_save_IFS=$IFS
11117  IFS=:
11118  set x $ac_tag
11119  IFS=$ac_save_IFS
11120  shift
11121  ac_file=$1
11122  shift
11123
11124  case $ac_mode in
11125  :L) ac_source=$1;;
11126  :[FH])
11127    ac_file_inputs=
11128    for ac_f
11129    do
11130      case $ac_f in
11131      -) ac_f="$tmp/stdin";;
11132      *) # Look for the file first in the build tree, then in the source tree
11133	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11134	 # because $ac_f cannot contain `:'.
11135	 test -f "$ac_f" ||
11136	   case $ac_f in
11137	   [\\/$]*) false;;
11138	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11139	   esac ||
11140	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11141$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11142   { (exit 1); exit 1; }; };;
11143      esac
11144      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11145      ac_file_inputs="$ac_file_inputs '$ac_f'"
11146    done
11147
11148    # Let's still pretend it is `configure' which instantiates (i.e., don't
11149    # use $as_me), people would be surprised to read:
11150    #    /* config.h.  Generated by config.status.  */
11151    configure_input='Generated from '`
11152	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11153	`' by configure.'
11154    if test x"$ac_file" != x-; then
11155      configure_input="$ac_file.  $configure_input"
11156      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
11157$as_echo "$as_me: creating $ac_file" >&6;}
11158    fi
11159    # Neutralize special characters interpreted by sed in replacement strings.
11160    case $configure_input in #(
11161    *\&* | *\|* | *\\* )
11162       ac_sed_conf_input=`$as_echo "$configure_input" |
11163       sed 's/[\\\\&|]/\\\\&/g'`;; #(
11164    *) ac_sed_conf_input=$configure_input;;
11165    esac
11166
11167    case $ac_tag in
11168    *:-:* | *:-) cat >"$tmp/stdin" \
11169      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11170$as_echo "$as_me: error: could not create $ac_file" >&2;}
11171   { (exit 1); exit 1; }; } ;;
11172    esac
11173    ;;
11174  esac
11175
11176  ac_dir=`$as_dirname -- "$ac_file" ||
11177$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11178	 X"$ac_file" : 'X\(//\)[^/]' \| \
11179	 X"$ac_file" : 'X\(//\)$' \| \
11180	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11181$as_echo X"$ac_file" |
11182    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11183	    s//\1/
11184	    q
11185	  }
11186	  /^X\(\/\/\)[^/].*/{
11187	    s//\1/
11188	    q
11189	  }
11190	  /^X\(\/\/\)$/{
11191	    s//\1/
11192	    q
11193	  }
11194	  /^X\(\/\).*/{
11195	    s//\1/
11196	    q
11197	  }
11198	  s/.*/./; q'`
11199  { as_dir="$ac_dir"
11200  case $as_dir in #(
11201  -*) as_dir=./$as_dir;;
11202  esac
11203  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11204    as_dirs=
11205    while :; do
11206      case $as_dir in #(
11207      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11208      *) as_qdir=$as_dir;;
11209      esac
11210      as_dirs="'$as_qdir' $as_dirs"
11211      as_dir=`$as_dirname -- "$as_dir" ||
11212$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11213	 X"$as_dir" : 'X\(//\)[^/]' \| \
11214	 X"$as_dir" : 'X\(//\)$' \| \
11215	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11216$as_echo X"$as_dir" |
11217    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11218	    s//\1/
11219	    q
11220	  }
11221	  /^X\(\/\/\)[^/].*/{
11222	    s//\1/
11223	    q
11224	  }
11225	  /^X\(\/\/\)$/{
11226	    s//\1/
11227	    q
11228	  }
11229	  /^X\(\/\).*/{
11230	    s//\1/
11231	    q
11232	  }
11233	  s/.*/./; q'`
11234      test -d "$as_dir" && break
11235    done
11236    test -z "$as_dirs" || eval "mkdir $as_dirs"
11237  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11238$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11239   { (exit 1); exit 1; }; }; }
11240  ac_builddir=.
11241
11242case "$ac_dir" in
11243.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11244*)
11245  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11246  # A ".." for each directory in $ac_dir_suffix.
11247  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11248  case $ac_top_builddir_sub in
11249  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11250  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11251  esac ;;
11252esac
11253ac_abs_top_builddir=$ac_pwd
11254ac_abs_builddir=$ac_pwd$ac_dir_suffix
11255# for backward compatibility:
11256ac_top_builddir=$ac_top_build_prefix
11257
11258case $srcdir in
11259  .)  # We are building in place.
11260    ac_srcdir=.
11261    ac_top_srcdir=$ac_top_builddir_sub
11262    ac_abs_top_srcdir=$ac_pwd ;;
11263  [\\/]* | ?:[\\/]* )  # Absolute name.
11264    ac_srcdir=$srcdir$ac_dir_suffix;
11265    ac_top_srcdir=$srcdir
11266    ac_abs_top_srcdir=$srcdir ;;
11267  *) # Relative name.
11268    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11269    ac_top_srcdir=$ac_top_build_prefix$srcdir
11270    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11271esac
11272ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11273
11274
11275  case $ac_mode in
11276  :F)
11277  #
11278  # CONFIG_FILE
11279  #
11280
11281  case $INSTALL in
11282  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11283  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11284  esac
11285_ACEOF
11286
11287cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11288# If the template does not know about datarootdir, expand it.
11289# FIXME: This hack should be removed a few years after 2.60.
11290ac_datarootdir_hack=; ac_datarootdir_seen=
11291
11292ac_sed_dataroot='
11293/datarootdir/ {
11294  p
11295  q
11296}
11297/@datadir@/p
11298/@docdir@/p
11299/@infodir@/p
11300/@localedir@/p
11301/@mandir@/p
11302'
11303case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11304*datarootdir*) ac_datarootdir_seen=yes;;
11305*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11306  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11307$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11308_ACEOF
11309cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11310  ac_datarootdir_hack='
11311  s&@datadir@&$datadir&g
11312  s&@docdir@&$docdir&g
11313  s&@infodir@&$infodir&g
11314  s&@localedir@&$localedir&g
11315  s&@mandir@&$mandir&g
11316    s&\\\${datarootdir}&$datarootdir&g' ;;
11317esac
11318_ACEOF
11319
11320# Neutralize VPATH when `$srcdir' = `.'.
11321# Shell code in configure.ac might set extrasub.
11322# FIXME: do we really want to maintain this feature?
11323cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11324ac_sed_extra="$ac_vpsub
11325$extrasub
11326_ACEOF
11327cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11328:t
11329/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11330s|@configure_input@|$ac_sed_conf_input|;t t
11331s&@top_builddir@&$ac_top_builddir_sub&;t t
11332s&@top_build_prefix@&$ac_top_build_prefix&;t t
11333s&@srcdir@&$ac_srcdir&;t t
11334s&@abs_srcdir@&$ac_abs_srcdir&;t t
11335s&@top_srcdir@&$ac_top_srcdir&;t t
11336s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11337s&@builddir@&$ac_builddir&;t t
11338s&@abs_builddir@&$ac_abs_builddir&;t t
11339s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11340s&@INSTALL@&$ac_INSTALL&;t t
11341$ac_datarootdir_hack
11342"
11343eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11344  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11345$as_echo "$as_me: error: could not create $ac_file" >&2;}
11346   { (exit 1); exit 1; }; }
11347
11348test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11349  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11350  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11351  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11352which seems to be undefined.  Please make sure it is defined." >&5
11353$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11354which seems to be undefined.  Please make sure it is defined." >&2;}
11355
11356  rm -f "$tmp/stdin"
11357  case $ac_file in
11358  -) cat "$tmp/out" && rm -f "$tmp/out";;
11359  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11360  esac \
11361  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11362$as_echo "$as_me: error: could not create $ac_file" >&2;}
11363   { (exit 1); exit 1; }; }
11364 ;;
11365  :H)
11366  #
11367  # CONFIG_HEADER
11368  #
11369  if test x"$ac_file" != x-; then
11370    {
11371      $as_echo "/* $configure_input  */" \
11372      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11373    } >"$tmp/config.h" \
11374      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11375$as_echo "$as_me: error: could not create $ac_file" >&2;}
11376   { (exit 1); exit 1; }; }
11377    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11378      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11379$as_echo "$as_me: $ac_file is unchanged" >&6;}
11380    else
11381      rm -f "$ac_file"
11382      mv "$tmp/config.h" "$ac_file" \
11383	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11384$as_echo "$as_me: error: could not create $ac_file" >&2;}
11385   { (exit 1); exit 1; }; }
11386    fi
11387  else
11388    $as_echo "/* $configure_input  */" \
11389      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11390      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
11391$as_echo "$as_me: error: could not create -" >&2;}
11392   { (exit 1); exit 1; }; }
11393  fi
11394 ;;
11395
11396  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
11397$as_echo "$as_me: executing $ac_file commands" >&6;}
11398 ;;
11399  esac
11400
11401
11402  case $ac_file$ac_mode in
11403    "Makefile":F) \
11404		echo timestamp > stamp-h; \
11405		 ;;
11406    "src/Makefile":F) \
11407		echo timestamp > stamp-h; \
11408		 ;;
11409    "default":C) echo timestamp > stamp-h; ;;
11410
11411  esac
11412done # for ac_tag
11413
11414
11415{ (exit 0); exit 0; }
11416_ACEOF
11417chmod +x $CONFIG_STATUS
11418ac_clean_files=$ac_clean_files_save
11419
11420test $ac_write_fail = 0 ||
11421  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
11422$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
11423   { (exit 1); exit 1; }; }
11424
11425
11426# configure is writing to config.log, and then calls config.status.
11427# config.status does its own redirection, appending to config.log.
11428# Unfortunately, on DOS this fails, as config.log is still kept open
11429# by configure, so config.status won't be able to write to it; its
11430# output is simply discarded.  So we exec the FD to /dev/null,
11431# effectively closing config.log, so it can be properly (re)opened and
11432# appended to by config.status.  When coming back to configure, we
11433# need to make the FD available again.
11434if test "$no_create" != yes; then
11435  ac_cs_success=:
11436  ac_config_status_args=
11437  test "$silent" = yes &&
11438    ac_config_status_args="$ac_config_status_args --quiet"
11439  exec 5>/dev/null
11440  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11441  exec 5>>config.log
11442  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11443  # would make configure fail if this is the last instruction.
11444  $ac_cs_success || { (exit 1); exit 1; }
11445fi
11446if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11447  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11448$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11449fi
11450
11451
11452
11453echo "*-----------------------------------------------------------------------------"
11454echo "*"
11455echo "* The GNU autoconf script for ircproxy was successful!"
11456echo "* This means ircproxy is likely to compile on this system."
11457echo "* The installation prefix is: '$prefix'."
11458echo "* If this is not where you want to install ircproxy,"
11459echo "* you must specify another with './configure --prefix=/path/to/install'."
11460echo "* for example you can set the prefix to /usr, '/usr/local' or '$HOME'."
11461if test "x${ares_enable}" = "xno" ; then
11462  echo "*"
11463  echo "* *** WARNING - ARES IS DISABLED! ***"
11464  echo "*"
11465  echo "* Running ircproxy without ares means blocking for each DNS lookup."
11466  echo "* It may cause ircproxy to not respond or getting disconnected for"
11467  echo "* ping timeouts."
11468fi
11469if test "x${ssl_support}" = "xno" ; then
11470  echo "*"
11471  echo "* *** WARNING - SSL SUPPORT IS DISABLED! ***"
11472  echo "*"
11473  echo "* Running ircproxy without SSL means no encryption of network traffic."
11474  echo "* Passwords are sent in plain text over the internet."
11475  echo "* This means hackers can easily optain your password using a network sniffer."
11476fi
11477echo "*"
11478echo "* ircproxy is free, however donations are welcome and will help support"
11479echo "* new versions."
11480echo "* If you like ircproxy you can donate through PayPal to"
11481echo "* jonasia_at_closetothewind_dot_net."
11482echo "*"
11483echo "*-----------------------------------------------------------------------------"
11484
11485