source: trunk/configure @ 553

Revision 553, 190.1 KB checked in by eagle, 9 months ago (diff)

typos in man page fixed.

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