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