source: branches/garlicat/configure @ 553

Revision 531, 170.7 KB checked in by eagle, 2 years ago (diff)

configure script updated

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