1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for Haskell network package 2.8.0.1.
4#
5# Report bugs to <libraries@haskell.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (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
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: libraries@haskell.org about your system, including any
271$0: error possibly output before this message. Then install
272$0: a modern shell, or manually run the script under such a
273$0: shell if you do have one."
274  fi
275  exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293  { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302  return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310  set +e
311  as_fn_set_status $1
312  exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321  case $as_dir in #(
322  -*) as_dir=./$as_dir;;
323  esac
324  test -d "$as_dir" || eval $as_mkdir_p || {
325    as_dirs=
326    while :; do
327      case $as_dir in #(
328      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329      *) as_qdir=$as_dir;;
330      esac
331      as_dirs="'$as_qdir' $as_dirs"
332      as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334	 X"$as_dir" : 'X\(//\)[^/]' \| \
335	 X"$as_dir" : 'X\(//\)$' \| \
336	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339	    s//\1/
340	    q
341	  }
342	  /^X\(\/\/\)[^/].*/{
343	    s//\1/
344	    q
345	  }
346	  /^X\(\/\/\)$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\).*/{
351	    s//\1/
352	    q
353	  }
354	  s/.*/./; q'`
355      test -d "$as_dir" && break
356    done
357    test -z "$as_dirs" || eval "mkdir $as_dirs"
358  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368  test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377  eval 'as_fn_append ()
378  {
379    eval $1+=\$2
380  }'
381else
382  as_fn_append ()
383  {
384    eval $1=\$$1\$2
385  }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394  eval 'as_fn_arith ()
395  {
396    as_val=$(( $* ))
397  }'
398else
399  as_fn_arith ()
400  {
401    as_val=`expr "$@" || test $? -eq 1`
402  }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413  as_status=$1; test $as_status -eq 0 && as_status=1
414  if test "$4"; then
415    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417  fi
418  $as_echo "$as_me: error: $2" >&2
419  as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423   test "X`expr 00001 : '.*\(...\)'`" = X001; then
424  as_expr=expr
425else
426  as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430  as_basename=basename
431else
432  as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436  as_dirname=dirname
437else
438  as_dirname=false
439fi
440
441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443	 X"$0" : 'X\(//\)$' \| \
444	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446    sed '/^.*\/\([^/][^/]*\)\/*$/{
447	    s//\1/
448	    q
449	  }
450	  /^X\/\(\/\/\)$/{
451	    s//\1/
452	    q
453	  }
454	  /^X\/\(\/\).*/{
455	    s//\1/
456	    q
457	  }
458	  s/.*/./; q'`
459
460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468  as_lineno_1=$LINENO as_lineno_1a=$LINENO
469  as_lineno_2=$LINENO as_lineno_2a=$LINENO
470  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473  sed -n '
474    p
475    /[$]LINENO/=
476  ' <$as_myself |
477    sed '
478      s/[$]LINENO.*/&-/
479      t lineno
480      b
481      :lineno
482      N
483      :loop
484      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485      t loop
486      s/-\n.*//
487    ' >$as_me.lineno &&
488  chmod +x "$as_me.lineno" ||
489    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492  # already done that, so ensure we don't try to do so again and fall
493  # in an infinite loop.  This has already happened in practice.
494  _as_can_reexec=no; export _as_can_reexec
495  # Don't try to exec as it changes $[0], causing all sort of problems
496  # (the dirname of $[0] is not the place where we might find the
497  # original and so on.  Autoconf is especially sensitive to this).
498  . "./$as_me.lineno"
499  # Exit status is that of the last command.
500  exit
501}
502
503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506  case `echo 'xy\c'` in
507  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
508  xy)  ECHO_C='\c';;
509  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510       ECHO_T='	';;
511  esac;;
512*)
513  ECHO_N='-n';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518  rm -f conf$$.dir/conf$$.file
519else
520  rm -f conf$$.dir
521  mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524  if ln -s conf$$.file conf$$ 2>/dev/null; then
525    as_ln_s='ln -s'
526    # ... but there are two gotchas:
527    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529    # In both cases, we have to default to `cp -pR'.
530    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531      as_ln_s='cp -pR'
532  elif ln conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s=ln
534  else
535    as_ln_s='cp -pR'
536  fi
537else
538  as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544  as_mkdir_p='mkdir -p "$as_dir"'
545else
546  test -d ./-p && rmdir ./-p
547  as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
562
563# Name of the host.
564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='Haskell network package'
582PACKAGE_TARNAME='network'
583PACKAGE_VERSION='2.8.0.1'
584PACKAGE_STRING='Haskell network package 2.8.0.1'
585PACKAGE_BUGREPORT='libraries@haskell.org'
586PACKAGE_URL=''
587
588ac_unique_file="include/HsNet.h"
589# Factoring default headers for most tests.
590ac_includes_default="\
591#include <stdio.h>
592#ifdef HAVE_SYS_TYPES_H
593# include <sys/types.h>
594#endif
595#ifdef HAVE_SYS_STAT_H
596# include <sys/stat.h>
597#endif
598#ifdef STDC_HEADERS
599# include <stdlib.h>
600# include <stddef.h>
601#else
602# ifdef HAVE_STDLIB_H
603#  include <stdlib.h>
604# endif
605#endif
606#ifdef HAVE_STRING_H
607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608#  include <memory.h>
609# endif
610# include <string.h>
611#endif
612#ifdef HAVE_STRINGS_H
613# include <strings.h>
614#endif
615#ifdef HAVE_INTTYPES_H
616# include <inttypes.h>
617#endif
618#ifdef HAVE_STDINT_H
619# include <stdint.h>
620#endif
621#ifdef HAVE_UNISTD_H
622# include <unistd.h>
623#endif"
624
625ac_subst_vars='LTLIBOBJS
626LIBOBJS
627EXTRA_SRCS
628EXTRA_LIBS
629EXTRA_CPPFLAGS
630EGREP
631GREP
632CPP
633OBJEXT
634EXEEXT
635ac_ct_CC
636CPPFLAGS
637LDFLAGS
638CFLAGS
639CC
640host_os
641host_vendor
642host_cpu
643host
644build_os
645build_vendor
646build_cpu
647build
648target_alias
649host_alias
650build_alias
651LIBS
652ECHO_T
653ECHO_N
654ECHO_C
655DEFS
656mandir
657localedir
658libdir
659psdir
660pdfdir
661dvidir
662htmldir
663infodir
664docdir
665oldincludedir
666includedir
667runstatedir
668localstatedir
669sharedstatedir
670sysconfdir
671datadir
672datarootdir
673libexecdir
674sbindir
675bindir
676program_transform_name
677prefix
678exec_prefix
679PACKAGE_URL
680PACKAGE_BUGREPORT
681PACKAGE_STRING
682PACKAGE_VERSION
683PACKAGE_TARNAME
684PACKAGE_NAME
685PATH_SEPARATOR
686SHELL'
687ac_subst_files=''
688ac_user_opts='
689enable_option_checking
690with_cc
691'
692      ac_precious_vars='build_alias
693host_alias
694target_alias
695CC
696CFLAGS
697LDFLAGS
698LIBS
699CPPFLAGS
700CPP'
701
702
703# Initialize some variables set by options.
704ac_init_help=
705ac_init_version=false
706ac_unrecognized_opts=
707ac_unrecognized_sep=
708# The variables have the same names as the options, with
709# dashes changed to underlines.
710cache_file=/dev/null
711exec_prefix=NONE
712no_create=
713no_recursion=
714prefix=NONE
715program_prefix=NONE
716program_suffix=NONE
717program_transform_name=s,x,x,
718silent=
719site=
720srcdir=
721verbose=
722x_includes=NONE
723x_libraries=NONE
724
725# Installation directory options.
726# These are left unexpanded so users can "make install exec_prefix=/foo"
727# and all the variables that are supposed to be based on exec_prefix
728# by default will actually change.
729# Use braces instead of parens because sh, perl, etc. also accept them.
730# (The list follows the same order as the GNU Coding Standards.)
731bindir='${exec_prefix}/bin'
732sbindir='${exec_prefix}/sbin'
733libexecdir='${exec_prefix}/libexec'
734datarootdir='${prefix}/share'
735datadir='${datarootdir}'
736sysconfdir='${prefix}/etc'
737sharedstatedir='${prefix}/com'
738localstatedir='${prefix}/var'
739runstatedir='${localstatedir}/run'
740includedir='${prefix}/include'
741oldincludedir='/usr/include'
742docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
743infodir='${datarootdir}/info'
744htmldir='${docdir}'
745dvidir='${docdir}'
746pdfdir='${docdir}'
747psdir='${docdir}'
748libdir='${exec_prefix}/lib'
749localedir='${datarootdir}/locale'
750mandir='${datarootdir}/man'
751
752ac_prev=
753ac_dashdash=
754for ac_option
755do
756  # If the previous option needs an argument, assign it.
757  if test -n "$ac_prev"; then
758    eval $ac_prev=\$ac_option
759    ac_prev=
760    continue
761  fi
762
763  case $ac_option in
764  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
765  *=)   ac_optarg= ;;
766  *)    ac_optarg=yes ;;
767  esac
768
769  # Accept the important Cygnus configure options, so we can diagnose typos.
770
771  case $ac_dashdash$ac_option in
772  --)
773    ac_dashdash=yes ;;
774
775  -bindir | --bindir | --bindi | --bind | --bin | --bi)
776    ac_prev=bindir ;;
777  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
778    bindir=$ac_optarg ;;
779
780  -build | --build | --buil | --bui | --bu)
781    ac_prev=build_alias ;;
782  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
783    build_alias=$ac_optarg ;;
784
785  -cache-file | --cache-file | --cache-fil | --cache-fi \
786  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
787    ac_prev=cache_file ;;
788  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
789  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
790    cache_file=$ac_optarg ;;
791
792  --config-cache | -C)
793    cache_file=config.cache ;;
794
795  -datadir | --datadir | --datadi | --datad)
796    ac_prev=datadir ;;
797  -datadir=* | --datadir=* | --datadi=* | --datad=*)
798    datadir=$ac_optarg ;;
799
800  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
801  | --dataroo | --dataro | --datar)
802    ac_prev=datarootdir ;;
803  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
804  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
805    datarootdir=$ac_optarg ;;
806
807  -disable-* | --disable-*)
808    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
809    # Reject names that are not valid shell variable names.
810    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
811      as_fn_error $? "invalid feature name: $ac_useropt"
812    ac_useropt_orig=$ac_useropt
813    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
814    case $ac_user_opts in
815      *"
816"enable_$ac_useropt"
817"*) ;;
818      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
819	 ac_unrecognized_sep=', ';;
820    esac
821    eval enable_$ac_useropt=no ;;
822
823  -docdir | --docdir | --docdi | --doc | --do)
824    ac_prev=docdir ;;
825  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
826    docdir=$ac_optarg ;;
827
828  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
829    ac_prev=dvidir ;;
830  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
831    dvidir=$ac_optarg ;;
832
833  -enable-* | --enable-*)
834    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
835    # Reject names that are not valid shell variable names.
836    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
837      as_fn_error $? "invalid feature name: $ac_useropt"
838    ac_useropt_orig=$ac_useropt
839    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
840    case $ac_user_opts in
841      *"
842"enable_$ac_useropt"
843"*) ;;
844      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
845	 ac_unrecognized_sep=', ';;
846    esac
847    eval enable_$ac_useropt=\$ac_optarg ;;
848
849  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
850  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
851  | --exec | --exe | --ex)
852    ac_prev=exec_prefix ;;
853  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
854  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
855  | --exec=* | --exe=* | --ex=*)
856    exec_prefix=$ac_optarg ;;
857
858  -gas | --gas | --ga | --g)
859    # Obsolete; use --with-gas.
860    with_gas=yes ;;
861
862  -help | --help | --hel | --he | -h)
863    ac_init_help=long ;;
864  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
865    ac_init_help=recursive ;;
866  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
867    ac_init_help=short ;;
868
869  -host | --host | --hos | --ho)
870    ac_prev=host_alias ;;
871  -host=* | --host=* | --hos=* | --ho=*)
872    host_alias=$ac_optarg ;;
873
874  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
875    ac_prev=htmldir ;;
876  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
877  | --ht=*)
878    htmldir=$ac_optarg ;;
879
880  -includedir | --includedir | --includedi | --included | --include \
881  | --includ | --inclu | --incl | --inc)
882    ac_prev=includedir ;;
883  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
884  | --includ=* | --inclu=* | --incl=* | --inc=*)
885    includedir=$ac_optarg ;;
886
887  -infodir | --infodir | --infodi | --infod | --info | --inf)
888    ac_prev=infodir ;;
889  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
890    infodir=$ac_optarg ;;
891
892  -libdir | --libdir | --libdi | --libd)
893    ac_prev=libdir ;;
894  -libdir=* | --libdir=* | --libdi=* | --libd=*)
895    libdir=$ac_optarg ;;
896
897  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
898  | --libexe | --libex | --libe)
899    ac_prev=libexecdir ;;
900  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
901  | --libexe=* | --libex=* | --libe=*)
902    libexecdir=$ac_optarg ;;
903
904  -localedir | --localedir | --localedi | --localed | --locale)
905    ac_prev=localedir ;;
906  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
907    localedir=$ac_optarg ;;
908
909  -localstatedir | --localstatedir | --localstatedi | --localstated \
910  | --localstate | --localstat | --localsta | --localst | --locals)
911    ac_prev=localstatedir ;;
912  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
913  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
914    localstatedir=$ac_optarg ;;
915
916  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
917    ac_prev=mandir ;;
918  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
919    mandir=$ac_optarg ;;
920
921  -nfp | --nfp | --nf)
922    # Obsolete; use --without-fp.
923    with_fp=no ;;
924
925  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
926  | --no-cr | --no-c | -n)
927    no_create=yes ;;
928
929  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
930  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
931    no_recursion=yes ;;
932
933  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
934  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
935  | --oldin | --oldi | --old | --ol | --o)
936    ac_prev=oldincludedir ;;
937  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
938  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
939  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
940    oldincludedir=$ac_optarg ;;
941
942  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
943    ac_prev=prefix ;;
944  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
945    prefix=$ac_optarg ;;
946
947  -program-prefix | --program-prefix | --program-prefi | --program-pref \
948  | --program-pre | --program-pr | --program-p)
949    ac_prev=program_prefix ;;
950  -program-prefix=* | --program-prefix=* | --program-prefi=* \
951  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
952    program_prefix=$ac_optarg ;;
953
954  -program-suffix | --program-suffix | --program-suffi | --program-suff \
955  | --program-suf | --program-su | --program-s)
956    ac_prev=program_suffix ;;
957  -program-suffix=* | --program-suffix=* | --program-suffi=* \
958  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
959    program_suffix=$ac_optarg ;;
960
961  -program-transform-name | --program-transform-name \
962  | --program-transform-nam | --program-transform-na \
963  | --program-transform-n | --program-transform- \
964  | --program-transform | --program-transfor \
965  | --program-transfo | --program-transf \
966  | --program-trans | --program-tran \
967  | --progr-tra | --program-tr | --program-t)
968    ac_prev=program_transform_name ;;
969  -program-transform-name=* | --program-transform-name=* \
970  | --program-transform-nam=* | --program-transform-na=* \
971  | --program-transform-n=* | --program-transform-=* \
972  | --program-transform=* | --program-transfor=* \
973  | --program-transfo=* | --program-transf=* \
974  | --program-trans=* | --program-tran=* \
975  | --progr-tra=* | --program-tr=* | --program-t=*)
976    program_transform_name=$ac_optarg ;;
977
978  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
979    ac_prev=pdfdir ;;
980  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
981    pdfdir=$ac_optarg ;;
982
983  -psdir | --psdir | --psdi | --psd | --ps)
984    ac_prev=psdir ;;
985  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
986    psdir=$ac_optarg ;;
987
988  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
989  | -silent | --silent | --silen | --sile | --sil)
990    silent=yes ;;
991
992  -runstatedir | --runstatedir | --runstatedi | --runstated \
993  | --runstate | --runstat | --runsta | --runst | --runs \
994  | --run | --ru | --r)
995    ac_prev=runstatedir ;;
996  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
997  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
998  | --run=* | --ru=* | --r=*)
999    runstatedir=$ac_optarg ;;
1000
1001  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1002    ac_prev=sbindir ;;
1003  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1004  | --sbi=* | --sb=*)
1005    sbindir=$ac_optarg ;;
1006
1007  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1008  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1009  | --sharedst | --shareds | --shared | --share | --shar \
1010  | --sha | --sh)
1011    ac_prev=sharedstatedir ;;
1012  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1013  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1014  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1015  | --sha=* | --sh=*)
1016    sharedstatedir=$ac_optarg ;;
1017
1018  -site | --site | --sit)
1019    ac_prev=site ;;
1020  -site=* | --site=* | --sit=*)
1021    site=$ac_optarg ;;
1022
1023  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1024    ac_prev=srcdir ;;
1025  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1026    srcdir=$ac_optarg ;;
1027
1028  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1029  | --syscon | --sysco | --sysc | --sys | --sy)
1030    ac_prev=sysconfdir ;;
1031  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1032  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1033    sysconfdir=$ac_optarg ;;
1034
1035  -target | --target | --targe | --targ | --tar | --ta | --t)
1036    ac_prev=target_alias ;;
1037  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1038    target_alias=$ac_optarg ;;
1039
1040  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1041    verbose=yes ;;
1042
1043  -version | --version | --versio | --versi | --vers | -V)
1044    ac_init_version=: ;;
1045
1046  -with-* | --with-*)
1047    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1048    # Reject names that are not valid shell variable names.
1049    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1050      as_fn_error $? "invalid package name: $ac_useropt"
1051    ac_useropt_orig=$ac_useropt
1052    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053    case $ac_user_opts in
1054      *"
1055"with_$ac_useropt"
1056"*) ;;
1057      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1058	 ac_unrecognized_sep=', ';;
1059    esac
1060    eval with_$ac_useropt=\$ac_optarg ;;
1061
1062  -without-* | --without-*)
1063    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1064    # Reject names that are not valid shell variable names.
1065    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066      as_fn_error $? "invalid package name: $ac_useropt"
1067    ac_useropt_orig=$ac_useropt
1068    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069    case $ac_user_opts in
1070      *"
1071"with_$ac_useropt"
1072"*) ;;
1073      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1074	 ac_unrecognized_sep=', ';;
1075    esac
1076    eval with_$ac_useropt=no ;;
1077
1078  --x)
1079    # Obsolete; use --with-x.
1080    with_x=yes ;;
1081
1082  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1083  | --x-incl | --x-inc | --x-in | --x-i)
1084    ac_prev=x_includes ;;
1085  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1086  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1087    x_includes=$ac_optarg ;;
1088
1089  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1090  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1091    ac_prev=x_libraries ;;
1092  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1093  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1094    x_libraries=$ac_optarg ;;
1095
1096  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1097Try \`$0 --help' for more information"
1098    ;;
1099
1100  *=*)
1101    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1102    # Reject names that are not valid shell variable names.
1103    case $ac_envvar in #(
1104      '' | [0-9]* | *[!_$as_cr_alnum]* )
1105      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1106    esac
1107    eval $ac_envvar=\$ac_optarg
1108    export $ac_envvar ;;
1109
1110  *)
1111    # FIXME: should be removed in autoconf 3.0.
1112    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1113    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1114      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1115    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1116    ;;
1117
1118  esac
1119done
1120
1121if test -n "$ac_prev"; then
1122  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1123  as_fn_error $? "missing argument to $ac_option"
1124fi
1125
1126if test -n "$ac_unrecognized_opts"; then
1127  case $enable_option_checking in
1128    no) ;;
1129    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1130    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1131  esac
1132fi
1133
1134# Check all directory arguments for consistency.
1135for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136		datadir sysconfdir sharedstatedir localstatedir includedir \
1137		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138		libdir localedir mandir runstatedir
1139do
1140  eval ac_val=\$$ac_var
1141  # Remove trailing slashes.
1142  case $ac_val in
1143    */ )
1144      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1145      eval $ac_var=\$ac_val;;
1146  esac
1147  # Be sure to have absolute directory names.
1148  case $ac_val in
1149    [\\/$]* | ?:[\\/]* )  continue;;
1150    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1151  esac
1152  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1153done
1154
1155# There might be people who depend on the old broken behavior: `$host'
1156# used to hold the argument of --host etc.
1157# FIXME: To remove some day.
1158build=$build_alias
1159host=$host_alias
1160target=$target_alias
1161
1162# FIXME: To remove some day.
1163if test "x$host_alias" != x; then
1164  if test "x$build_alias" = x; then
1165    cross_compiling=maybe
1166  elif test "x$build_alias" != "x$host_alias"; then
1167    cross_compiling=yes
1168  fi
1169fi
1170
1171ac_tool_prefix=
1172test -n "$host_alias" && ac_tool_prefix=$host_alias-
1173
1174test "$silent" = yes && exec 6>/dev/null
1175
1176
1177ac_pwd=`pwd` && test -n "$ac_pwd" &&
1178ac_ls_di=`ls -di .` &&
1179ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1180  as_fn_error $? "working directory cannot be determined"
1181test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1182  as_fn_error $? "pwd does not report name of working directory"
1183
1184
1185# Find the source files, if location was not specified.
1186if test -z "$srcdir"; then
1187  ac_srcdir_defaulted=yes
1188  # Try the directory containing this script, then the parent directory.
1189  ac_confdir=`$as_dirname -- "$as_myself" ||
1190$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1191	 X"$as_myself" : 'X\(//\)[^/]' \| \
1192	 X"$as_myself" : 'X\(//\)$' \| \
1193	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1194$as_echo X"$as_myself" |
1195    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1196	    s//\1/
1197	    q
1198	  }
1199	  /^X\(\/\/\)[^/].*/{
1200	    s//\1/
1201	    q
1202	  }
1203	  /^X\(\/\/\)$/{
1204	    s//\1/
1205	    q
1206	  }
1207	  /^X\(\/\).*/{
1208	    s//\1/
1209	    q
1210	  }
1211	  s/.*/./; q'`
1212  srcdir=$ac_confdir
1213  if test ! -r "$srcdir/$ac_unique_file"; then
1214    srcdir=..
1215  fi
1216else
1217  ac_srcdir_defaulted=no
1218fi
1219if test ! -r "$srcdir/$ac_unique_file"; then
1220  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1221  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1222fi
1223ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1224ac_abs_confdir=`(
1225	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1226	pwd)`
1227# When building in place, set srcdir=.
1228if test "$ac_abs_confdir" = "$ac_pwd"; then
1229  srcdir=.
1230fi
1231# Remove unnecessary trailing slashes from srcdir.
1232# Double slashes in file names in object file debugging info
1233# mess up M-x gdb in Emacs.
1234case $srcdir in
1235*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1236esac
1237for ac_var in $ac_precious_vars; do
1238  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1239  eval ac_env_${ac_var}_value=\$${ac_var}
1240  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1241  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1242done
1243
1244#
1245# Report the --help message.
1246#
1247if test "$ac_init_help" = "long"; then
1248  # Omit some internal or obsolete options to make the list less imposing.
1249  # This message is too long to be a string in the A/UX 3.1 sh.
1250  cat <<_ACEOF
1251\`configure' configures Haskell network package 2.8.0.1 to adapt to many kinds of systems.
1252
1253Usage: $0 [OPTION]... [VAR=VALUE]...
1254
1255To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256VAR=VALUE.  See below for descriptions of some of the useful variables.
1257
1258Defaults for the options are specified in brackets.
1259
1260Configuration:
1261  -h, --help              display this help and exit
1262      --help=short        display options specific to this package
1263      --help=recursive    display the short help of all the included packages
1264  -V, --version           display version information and exit
1265  -q, --quiet, --silent   do not print \`checking ...' messages
1266      --cache-file=FILE   cache test results in FILE [disabled]
1267  -C, --config-cache      alias for \`--cache-file=config.cache'
1268  -n, --no-create         do not create output files
1269      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1270
1271Installation directories:
1272  --prefix=PREFIX         install architecture-independent files in PREFIX
1273                          [$ac_default_prefix]
1274  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1275                          [PREFIX]
1276
1277By default, \`make install' will install all the files in
1278\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1279an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280for instance \`--prefix=\$HOME'.
1281
1282For better control, use the options below.
1283
1284Fine tuning of the installation directories:
1285  --bindir=DIR            user executables [EPREFIX/bin]
1286  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1287  --libexecdir=DIR        program executables [EPREFIX/libexec]
1288  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1289  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1290  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1291  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1292  --libdir=DIR            object code libraries [EPREFIX/lib]
1293  --includedir=DIR        C header files [PREFIX/include]
1294  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1295  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1296  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1297  --infodir=DIR           info documentation [DATAROOTDIR/info]
1298  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1299  --mandir=DIR            man documentation [DATAROOTDIR/man]
1300  --docdir=DIR            documentation root [DATAROOTDIR/doc/network]
1301  --htmldir=DIR           html documentation [DOCDIR]
1302  --dvidir=DIR            dvi documentation [DOCDIR]
1303  --pdfdir=DIR            pdf documentation [DOCDIR]
1304  --psdir=DIR             ps documentation [DOCDIR]
1305_ACEOF
1306
1307  cat <<\_ACEOF
1308
1309System types:
1310  --build=BUILD     configure for building on BUILD [guessed]
1311  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1312_ACEOF
1313fi
1314
1315if test -n "$ac_init_help"; then
1316  case $ac_init_help in
1317     short | recursive ) echo "Configuration of Haskell network package 2.8.0.1:";;
1318   esac
1319  cat <<\_ACEOF
1320
1321Optional Packages:
1322  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1323  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1324C compiler
1325
1326Some influential environment variables:
1327  CC          C compiler command
1328  CFLAGS      C compiler flags
1329  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1330              nonstandard directory <lib dir>
1331  LIBS        libraries to pass to the linker, e.g. -l<library>
1332  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1333              you have headers in a nonstandard directory <include dir>
1334  CPP         C preprocessor
1335
1336Use these variables to override the choices made by `configure' or to help
1337it to find libraries and programs with nonstandard names/locations.
1338
1339Report bugs to <libraries@haskell.org>.
1340_ACEOF
1341ac_status=$?
1342fi
1343
1344if test "$ac_init_help" = "recursive"; then
1345  # If there are subdirs, report their specific --help.
1346  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1347    test -d "$ac_dir" ||
1348      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1349      continue
1350    ac_builddir=.
1351
1352case "$ac_dir" in
1353.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1354*)
1355  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1356  # A ".." for each directory in $ac_dir_suffix.
1357  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1358  case $ac_top_builddir_sub in
1359  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1360  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1361  esac ;;
1362esac
1363ac_abs_top_builddir=$ac_pwd
1364ac_abs_builddir=$ac_pwd$ac_dir_suffix
1365# for backward compatibility:
1366ac_top_builddir=$ac_top_build_prefix
1367
1368case $srcdir in
1369  .)  # We are building in place.
1370    ac_srcdir=.
1371    ac_top_srcdir=$ac_top_builddir_sub
1372    ac_abs_top_srcdir=$ac_pwd ;;
1373  [\\/]* | ?:[\\/]* )  # Absolute name.
1374    ac_srcdir=$srcdir$ac_dir_suffix;
1375    ac_top_srcdir=$srcdir
1376    ac_abs_top_srcdir=$srcdir ;;
1377  *) # Relative name.
1378    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1379    ac_top_srcdir=$ac_top_build_prefix$srcdir
1380    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1381esac
1382ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1383
1384    cd "$ac_dir" || { ac_status=$?; continue; }
1385    # Check for guested configure.
1386    if test -f "$ac_srcdir/configure.gnu"; then
1387      echo &&
1388      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1389    elif test -f "$ac_srcdir/configure"; then
1390      echo &&
1391      $SHELL "$ac_srcdir/configure" --help=recursive
1392    else
1393      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1394    fi || ac_status=$?
1395    cd "$ac_pwd" || { ac_status=$?; break; }
1396  done
1397fi
1398
1399test -n "$ac_init_help" && exit $ac_status
1400if $ac_init_version; then
1401  cat <<\_ACEOF
1402Haskell network package configure 2.8.0.1
1403generated by GNU Autoconf 2.69
1404
1405Copyright (C) 2012 Free Software Foundation, Inc.
1406This configure script is free software; the Free Software Foundation
1407gives unlimited permission to copy, distribute and modify it.
1408_ACEOF
1409  exit
1410fi
1411
1412## ------------------------ ##
1413## Autoconf initialization. ##
1414## ------------------------ ##
1415
1416# ac_fn_c_try_compile LINENO
1417# --------------------------
1418# Try to compile conftest.$ac_ext, and return whether this succeeded.
1419ac_fn_c_try_compile ()
1420{
1421  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1422  rm -f conftest.$ac_objext
1423  if { { ac_try="$ac_compile"
1424case "(($ac_try" in
1425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1426  *) ac_try_echo=$ac_try;;
1427esac
1428eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1429$as_echo "$ac_try_echo"; } >&5
1430  (eval "$ac_compile") 2>conftest.err
1431  ac_status=$?
1432  if test -s conftest.err; then
1433    grep -v '^ *+' conftest.err >conftest.er1
1434    cat conftest.er1 >&5
1435    mv -f conftest.er1 conftest.err
1436  fi
1437  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1438  test $ac_status = 0; } && {
1439	 test -z "$ac_c_werror_flag" ||
1440	 test ! -s conftest.err
1441       } && test -s conftest.$ac_objext; then :
1442  ac_retval=0
1443else
1444  $as_echo "$as_me: failed program was:" >&5
1445sed 's/^/| /' conftest.$ac_ext >&5
1446
1447	ac_retval=1
1448fi
1449  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1450  as_fn_set_status $ac_retval
1451
1452} # ac_fn_c_try_compile
1453
1454# ac_fn_c_try_cpp LINENO
1455# ----------------------
1456# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1457ac_fn_c_try_cpp ()
1458{
1459  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1460  if { { ac_try="$ac_cpp conftest.$ac_ext"
1461case "(($ac_try" in
1462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1463  *) ac_try_echo=$ac_try;;
1464esac
1465eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1466$as_echo "$ac_try_echo"; } >&5
1467  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1468  ac_status=$?
1469  if test -s conftest.err; then
1470    grep -v '^ *+' conftest.err >conftest.er1
1471    cat conftest.er1 >&5
1472    mv -f conftest.er1 conftest.err
1473  fi
1474  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1475  test $ac_status = 0; } > conftest.i && {
1476	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1477	 test ! -s conftest.err
1478       }; then :
1479  ac_retval=0
1480else
1481  $as_echo "$as_me: failed program was:" >&5
1482sed 's/^/| /' conftest.$ac_ext >&5
1483
1484    ac_retval=1
1485fi
1486  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1487  as_fn_set_status $ac_retval
1488
1489} # ac_fn_c_try_cpp
1490
1491# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1492# -------------------------------------------------------
1493# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1494# the include files in INCLUDES and setting the cache variable VAR
1495# accordingly.
1496ac_fn_c_check_header_mongrel ()
1497{
1498  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1499  if eval \${$3+:} false; then :
1500  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1501$as_echo_n "checking for $2... " >&6; }
1502if eval \${$3+:} false; then :
1503  $as_echo_n "(cached) " >&6
1504fi
1505eval ac_res=\$$3
1506	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1507$as_echo "$ac_res" >&6; }
1508else
1509  # Is the header compilable?
1510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1511$as_echo_n "checking $2 usability... " >&6; }
1512cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1513/* end confdefs.h.  */
1514$4
1515#include <$2>
1516_ACEOF
1517if ac_fn_c_try_compile "$LINENO"; then :
1518  ac_header_compiler=yes
1519else
1520  ac_header_compiler=no
1521fi
1522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1524$as_echo "$ac_header_compiler" >&6; }
1525
1526# Is the header present?
1527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1528$as_echo_n "checking $2 presence... " >&6; }
1529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1530/* end confdefs.h.  */
1531#include <$2>
1532_ACEOF
1533if ac_fn_c_try_cpp "$LINENO"; then :
1534  ac_header_preproc=yes
1535else
1536  ac_header_preproc=no
1537fi
1538rm -f conftest.err conftest.i conftest.$ac_ext
1539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1540$as_echo "$ac_header_preproc" >&6; }
1541
1542# So?  What about this header?
1543case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1544  yes:no: )
1545    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1546$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1547    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1548$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1549    ;;
1550  no:yes:* )
1551    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1552$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1553    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1554$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1555    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1556$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1557    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1558$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1559    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1560$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1561( $as_echo "## ------------------------------------ ##
1562## Report this to libraries@haskell.org ##
1563## ------------------------------------ ##"
1564     ) | sed "s/^/$as_me: WARNING:     /" >&2
1565    ;;
1566esac
1567  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1568$as_echo_n "checking for $2... " >&6; }
1569if eval \${$3+:} false; then :
1570  $as_echo_n "(cached) " >&6
1571else
1572  eval "$3=\$ac_header_compiler"
1573fi
1574eval ac_res=\$$3
1575	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1576$as_echo "$ac_res" >&6; }
1577fi
1578  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1579
1580} # ac_fn_c_check_header_mongrel
1581
1582# ac_fn_c_try_run LINENO
1583# ----------------------
1584# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1585# that executables *can* be run.
1586ac_fn_c_try_run ()
1587{
1588  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589  if { { ac_try="$ac_link"
1590case "(($ac_try" in
1591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592  *) ac_try_echo=$ac_try;;
1593esac
1594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595$as_echo "$ac_try_echo"; } >&5
1596  (eval "$ac_link") 2>&5
1597  ac_status=$?
1598  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1600  { { case "(($ac_try" in
1601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602  *) ac_try_echo=$ac_try;;
1603esac
1604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605$as_echo "$ac_try_echo"; } >&5
1606  (eval "$ac_try") 2>&5
1607  ac_status=$?
1608  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609  test $ac_status = 0; }; }; then :
1610  ac_retval=0
1611else
1612  $as_echo "$as_me: program exited with status $ac_status" >&5
1613       $as_echo "$as_me: failed program was:" >&5
1614sed 's/^/| /' conftest.$ac_ext >&5
1615
1616       ac_retval=$ac_status
1617fi
1618  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1619  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620  as_fn_set_status $ac_retval
1621
1622} # ac_fn_c_try_run
1623
1624# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1625# -------------------------------------------------------
1626# Tests whether HEADER exists and can be compiled using the include files in
1627# INCLUDES, setting the cache variable VAR accordingly.
1628ac_fn_c_check_header_compile ()
1629{
1630  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1632$as_echo_n "checking for $2... " >&6; }
1633if eval \${$3+:} false; then :
1634  $as_echo_n "(cached) " >&6
1635else
1636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1637/* end confdefs.h.  */
1638$4
1639#include <$2>
1640_ACEOF
1641if ac_fn_c_try_compile "$LINENO"; then :
1642  eval "$3=yes"
1643else
1644  eval "$3=no"
1645fi
1646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1647fi
1648eval ac_res=\$$3
1649	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1650$as_echo "$ac_res" >&6; }
1651  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652
1653} # ac_fn_c_check_header_compile
1654
1655# ac_fn_c_try_link LINENO
1656# -----------------------
1657# Try to link conftest.$ac_ext, and return whether this succeeded.
1658ac_fn_c_try_link ()
1659{
1660  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661  rm -f conftest.$ac_objext conftest$ac_exeext
1662  if { { ac_try="$ac_link"
1663case "(($ac_try" in
1664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665  *) ac_try_echo=$ac_try;;
1666esac
1667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668$as_echo "$ac_try_echo"; } >&5
1669  (eval "$ac_link") 2>conftest.err
1670  ac_status=$?
1671  if test -s conftest.err; then
1672    grep -v '^ *+' conftest.err >conftest.er1
1673    cat conftest.er1 >&5
1674    mv -f conftest.er1 conftest.err
1675  fi
1676  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677  test $ac_status = 0; } && {
1678	 test -z "$ac_c_werror_flag" ||
1679	 test ! -s conftest.err
1680       } && test -s conftest$ac_exeext && {
1681	 test "$cross_compiling" = yes ||
1682	 test -x conftest$ac_exeext
1683       }; then :
1684  ac_retval=0
1685else
1686  $as_echo "$as_me: failed program was:" >&5
1687sed 's/^/| /' conftest.$ac_ext >&5
1688
1689	ac_retval=1
1690fi
1691  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1692  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1693  # interfere with the next link command; also delete a directory that is
1694  # left behind by Apple's compiler.  We do this before executing the actions.
1695  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1696  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697  as_fn_set_status $ac_retval
1698
1699} # ac_fn_c_try_link
1700
1701# ac_fn_c_check_func LINENO FUNC VAR
1702# ----------------------------------
1703# Tests whether FUNC exists, setting the cache variable VAR accordingly
1704ac_fn_c_check_func ()
1705{
1706  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1708$as_echo_n "checking for $2... " >&6; }
1709if eval \${$3+:} false; then :
1710  $as_echo_n "(cached) " >&6
1711else
1712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713/* end confdefs.h.  */
1714/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1715   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1716#define $2 innocuous_$2
1717
1718/* System header to define __stub macros and hopefully few prototypes,
1719    which can conflict with char $2 (); below.
1720    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1721    <limits.h> exists even on freestanding compilers.  */
1722
1723#ifdef __STDC__
1724# include <limits.h>
1725#else
1726# include <assert.h>
1727#endif
1728
1729#undef $2
1730
1731/* Override any GCC internal prototype to avoid an error.
1732   Use char because int might match the return type of a GCC
1733   builtin and then its argument prototype would still apply.  */
1734#ifdef __cplusplus
1735extern "C"
1736#endif
1737char $2 ();
1738/* The GNU C library defines this for functions which it implements
1739    to always fail with ENOSYS.  Some functions are actually named
1740    something starting with __ and the normal name is an alias.  */
1741#if defined __stub_$2 || defined __stub___$2
1742choke me
1743#endif
1744
1745int
1746main ()
1747{
1748return $2 ();
1749  ;
1750  return 0;
1751}
1752_ACEOF
1753if ac_fn_c_try_link "$LINENO"; then :
1754  eval "$3=yes"
1755else
1756  eval "$3=no"
1757fi
1758rm -f core conftest.err conftest.$ac_objext \
1759    conftest$ac_exeext conftest.$ac_ext
1760fi
1761eval ac_res=\$$3
1762	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763$as_echo "$ac_res" >&6; }
1764  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765
1766} # ac_fn_c_check_func
1767
1768# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1769# ----------------------------------------------------
1770# Tries to find if the field MEMBER exists in type AGGR, after including
1771# INCLUDES, setting cache variable VAR accordingly.
1772ac_fn_c_check_member ()
1773{
1774  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1776$as_echo_n "checking for $2.$3... " >&6; }
1777if eval \${$4+:} false; then :
1778  $as_echo_n "(cached) " >&6
1779else
1780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781/* end confdefs.h.  */
1782$5
1783int
1784main ()
1785{
1786static $2 ac_aggr;
1787if (ac_aggr.$3)
1788return 0;
1789  ;
1790  return 0;
1791}
1792_ACEOF
1793if ac_fn_c_try_compile "$LINENO"; then :
1794  eval "$4=yes"
1795else
1796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797/* end confdefs.h.  */
1798$5
1799int
1800main ()
1801{
1802static $2 ac_aggr;
1803if (sizeof ac_aggr.$3)
1804return 0;
1805  ;
1806  return 0;
1807}
1808_ACEOF
1809if ac_fn_c_try_compile "$LINENO"; then :
1810  eval "$4=yes"
1811else
1812  eval "$4=no"
1813fi
1814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1815fi
1816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817fi
1818eval ac_res=\$$4
1819	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820$as_echo "$ac_res" >&6; }
1821  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822
1823} # ac_fn_c_check_member
1824
1825# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1826# ---------------------------------------------
1827# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1828# accordingly.
1829ac_fn_c_check_decl ()
1830{
1831  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832  as_decl_name=`echo $2|sed 's/ *(.*//'`
1833  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1834  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1835$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1836if eval \${$3+:} false; then :
1837  $as_echo_n "(cached) " >&6
1838else
1839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840/* end confdefs.h.  */
1841$4
1842int
1843main ()
1844{
1845#ifndef $as_decl_name
1846#ifdef __cplusplus
1847  (void) $as_decl_use;
1848#else
1849  (void) $as_decl_name;
1850#endif
1851#endif
1852
1853  ;
1854  return 0;
1855}
1856_ACEOF
1857if ac_fn_c_try_compile "$LINENO"; then :
1858  eval "$3=yes"
1859else
1860  eval "$3=no"
1861fi
1862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1863fi
1864eval ac_res=\$$3
1865	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866$as_echo "$ac_res" >&6; }
1867  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868
1869} # ac_fn_c_check_decl
1870cat >config.log <<_ACEOF
1871This file contains any messages produced by compilers while
1872running configure, to aid debugging if configure makes a mistake.
1873
1874It was created by Haskell network package $as_me 2.8.0.1, which was
1875generated by GNU Autoconf 2.69.  Invocation command line was
1876
1877  $ $0 $@
1878
1879_ACEOF
1880exec 5>>config.log
1881{
1882cat <<_ASUNAME
1883## --------- ##
1884## Platform. ##
1885## --------- ##
1886
1887hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1888uname -m = `(uname -m) 2>/dev/null || echo unknown`
1889uname -r = `(uname -r) 2>/dev/null || echo unknown`
1890uname -s = `(uname -s) 2>/dev/null || echo unknown`
1891uname -v = `(uname -v) 2>/dev/null || echo unknown`
1892
1893/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1894/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1895
1896/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1897/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1898/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1899/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1900/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1901/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1902/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1903
1904_ASUNAME
1905
1906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1907for as_dir in $PATH
1908do
1909  IFS=$as_save_IFS
1910  test -z "$as_dir" && as_dir=.
1911    $as_echo "PATH: $as_dir"
1912  done
1913IFS=$as_save_IFS
1914
1915} >&5
1916
1917cat >&5 <<_ACEOF
1918
1919
1920## ----------- ##
1921## Core tests. ##
1922## ----------- ##
1923
1924_ACEOF
1925
1926
1927# Keep a trace of the command line.
1928# Strip out --no-create and --no-recursion so they do not pile up.
1929# Strip out --silent because we don't want to record it for future runs.
1930# Also quote any args containing shell meta-characters.
1931# Make two passes to allow for proper duplicate-argument suppression.
1932ac_configure_args=
1933ac_configure_args0=
1934ac_configure_args1=
1935ac_must_keep_next=false
1936for ac_pass in 1 2
1937do
1938  for ac_arg
1939  do
1940    case $ac_arg in
1941    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1942    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1943    | -silent | --silent | --silen | --sile | --sil)
1944      continue ;;
1945    *\'*)
1946      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1947    esac
1948    case $ac_pass in
1949    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1950    2)
1951      as_fn_append ac_configure_args1 " '$ac_arg'"
1952      if test $ac_must_keep_next = true; then
1953	ac_must_keep_next=false # Got value, back to normal.
1954      else
1955	case $ac_arg in
1956	  *=* | --config-cache | -C | -disable-* | --disable-* \
1957	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1958	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1959	  | -with-* | --with-* | -without-* | --without-* | --x)
1960	    case "$ac_configure_args0 " in
1961	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1962	    esac
1963	    ;;
1964	  -* ) ac_must_keep_next=true ;;
1965	esac
1966      fi
1967      as_fn_append ac_configure_args " '$ac_arg'"
1968      ;;
1969    esac
1970  done
1971done
1972{ ac_configure_args0=; unset ac_configure_args0;}
1973{ ac_configure_args1=; unset ac_configure_args1;}
1974
1975# When interrupted or exit'd, cleanup temporary files, and complete
1976# config.log.  We remove comments because anyway the quotes in there
1977# would cause problems or look ugly.
1978# WARNING: Use '\'' to represent an apostrophe within the trap.
1979# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1980trap 'exit_status=$?
1981  # Save into config.log some information that might help in debugging.
1982  {
1983    echo
1984
1985    $as_echo "## ---------------- ##
1986## Cache variables. ##
1987## ---------------- ##"
1988    echo
1989    # The following way of writing the cache mishandles newlines in values,
1990(
1991  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1992    eval ac_val=\$$ac_var
1993    case $ac_val in #(
1994    *${as_nl}*)
1995      case $ac_var in #(
1996      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1997$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1998      esac
1999      case $ac_var in #(
2000      _ | IFS | as_nl) ;; #(
2001      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2002      *) { eval $ac_var=; unset $ac_var;} ;;
2003      esac ;;
2004    esac
2005  done
2006  (set) 2>&1 |
2007    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2008    *${as_nl}ac_space=\ *)
2009      sed -n \
2010	"s/'\''/'\''\\\\'\'''\''/g;
2011	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2012      ;; #(
2013    *)
2014      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2015      ;;
2016    esac |
2017    sort
2018)
2019    echo
2020
2021    $as_echo "## ----------------- ##
2022## Output variables. ##
2023## ----------------- ##"
2024    echo
2025    for ac_var in $ac_subst_vars
2026    do
2027      eval ac_val=\$$ac_var
2028      case $ac_val in
2029      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2030      esac
2031      $as_echo "$ac_var='\''$ac_val'\''"
2032    done | sort
2033    echo
2034
2035    if test -n "$ac_subst_files"; then
2036      $as_echo "## ------------------- ##
2037## File substitutions. ##
2038## ------------------- ##"
2039      echo
2040      for ac_var in $ac_subst_files
2041      do
2042	eval ac_val=\$$ac_var
2043	case $ac_val in
2044	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2045	esac
2046	$as_echo "$ac_var='\''$ac_val'\''"
2047      done | sort
2048      echo
2049    fi
2050
2051    if test -s confdefs.h; then
2052      $as_echo "## ----------- ##
2053## confdefs.h. ##
2054## ----------- ##"
2055      echo
2056      cat confdefs.h
2057      echo
2058    fi
2059    test "$ac_signal" != 0 &&
2060      $as_echo "$as_me: caught signal $ac_signal"
2061    $as_echo "$as_me: exit $exit_status"
2062  } >&5
2063  rm -f core *.core core.conftest.* &&
2064    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2065    exit $exit_status
2066' 0
2067for ac_signal in 1 2 13 15; do
2068  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2069done
2070ac_signal=0
2071
2072# confdefs.h avoids OS command line length limits that DEFS can exceed.
2073rm -f -r conftest* confdefs.h
2074
2075$as_echo "/* confdefs.h */" > confdefs.h
2076
2077# Predefined preprocessor variables.
2078
2079cat >>confdefs.h <<_ACEOF
2080#define PACKAGE_NAME "$PACKAGE_NAME"
2081_ACEOF
2082
2083cat >>confdefs.h <<_ACEOF
2084#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2085_ACEOF
2086
2087cat >>confdefs.h <<_ACEOF
2088#define PACKAGE_VERSION "$PACKAGE_VERSION"
2089_ACEOF
2090
2091cat >>confdefs.h <<_ACEOF
2092#define PACKAGE_STRING "$PACKAGE_STRING"
2093_ACEOF
2094
2095cat >>confdefs.h <<_ACEOF
2096#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2097_ACEOF
2098
2099cat >>confdefs.h <<_ACEOF
2100#define PACKAGE_URL "$PACKAGE_URL"
2101_ACEOF
2102
2103
2104# Let the site file select an alternate cache file if it wants to.
2105# Prefer an explicitly selected file to automatically selected ones.
2106ac_site_file1=NONE
2107ac_site_file2=NONE
2108if test -n "$CONFIG_SITE"; then
2109  # We do not want a PATH search for config.site.
2110  case $CONFIG_SITE in #((
2111    -*)  ac_site_file1=./$CONFIG_SITE;;
2112    */*) ac_site_file1=$CONFIG_SITE;;
2113    *)   ac_site_file1=./$CONFIG_SITE;;
2114  esac
2115elif test "x$prefix" != xNONE; then
2116  ac_site_file1=$prefix/share/config.site
2117  ac_site_file2=$prefix/etc/config.site
2118else
2119  ac_site_file1=$ac_default_prefix/share/config.site
2120  ac_site_file2=$ac_default_prefix/etc/config.site
2121fi
2122for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2123do
2124  test "x$ac_site_file" = xNONE && continue
2125  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2126    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2127$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2128    sed 's/^/| /' "$ac_site_file" >&5
2129    . "$ac_site_file" \
2130      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2131$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2132as_fn_error $? "failed to load site script $ac_site_file
2133See \`config.log' for more details" "$LINENO" 5; }
2134  fi
2135done
2136
2137if test -r "$cache_file"; then
2138  # Some versions of bash will fail to source /dev/null (special files
2139  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2140  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2141    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2142$as_echo "$as_me: loading cache $cache_file" >&6;}
2143    case $cache_file in
2144      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2145      *)                      . "./$cache_file";;
2146    esac
2147  fi
2148else
2149  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2150$as_echo "$as_me: creating cache $cache_file" >&6;}
2151  >$cache_file
2152fi
2153
2154# Check that the precious variables saved in the cache have kept the same
2155# value.
2156ac_cache_corrupted=false
2157for ac_var in $ac_precious_vars; do
2158  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2159  eval ac_new_set=\$ac_env_${ac_var}_set
2160  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2161  eval ac_new_val=\$ac_env_${ac_var}_value
2162  case $ac_old_set,$ac_new_set in
2163    set,)
2164      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2165$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2166      ac_cache_corrupted=: ;;
2167    ,set)
2168      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2169$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2170      ac_cache_corrupted=: ;;
2171    ,);;
2172    *)
2173      if test "x$ac_old_val" != "x$ac_new_val"; then
2174	# differences in whitespace do not lead to failure.
2175	ac_old_val_w=`echo x $ac_old_val`
2176	ac_new_val_w=`echo x $ac_new_val`
2177	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2178	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2179$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2180	  ac_cache_corrupted=:
2181	else
2182	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2183$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2184	  eval $ac_var=\$ac_old_val
2185	fi
2186	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2187$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2188	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2189$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2190      fi;;
2191  esac
2192  # Pass precious variables to config.status.
2193  if test "$ac_new_set" = set; then
2194    case $ac_new_val in
2195    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2196    *) ac_arg=$ac_var=$ac_new_val ;;
2197    esac
2198    case " $ac_configure_args " in
2199      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2200      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2201    esac
2202  fi
2203done
2204if $ac_cache_corrupted; then
2205  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2207  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2208$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2209  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2210fi
2211## -------------------- ##
2212## Main body of script. ##
2213## -------------------- ##
2214
2215ac_ext=c
2216ac_cpp='$CPP $CPPFLAGS'
2217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2219ac_compiler_gnu=$ac_cv_c_compiler_gnu
2220
2221
2222
2223ac_includes_default="$ac_includes_default
2224#ifdef HAVE_SYS_SOCKET_H
2225# include <sys/socket.h>
2226#endif
2227#ifdef HAVE_NETINET_IN_H
2228# include <netinet/in.h>
2229#endif
2230#ifdef HAVE_NETDB_H
2231# include <netdb.h>
2232#endif
2233#ifdef HAVE_WINSOCK2_H
2234# include <winsock2.h>
2235#endif
2236#ifdef HAVE_WS2TCPIP_H
2237# include <ws2tcpip.h>
2238// fix for MingW not defining IPV6_V6ONLY
2239# define IPV6_V6ONLY 27
2240#endif"
2241
2242# Safety check: Ensure that we are in the correct source directory.
2243
2244
2245ac_config_headers="$ac_config_headers include/HsNetworkConfig.h"
2246
2247
2248ac_aux_dir=
2249for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2250  if test -f "$ac_dir/install-sh"; then
2251    ac_aux_dir=$ac_dir
2252    ac_install_sh="$ac_aux_dir/install-sh -c"
2253    break
2254  elif test -f "$ac_dir/install.sh"; then
2255    ac_aux_dir=$ac_dir
2256    ac_install_sh="$ac_aux_dir/install.sh -c"
2257    break
2258  elif test -f "$ac_dir/shtool"; then
2259    ac_aux_dir=$ac_dir
2260    ac_install_sh="$ac_aux_dir/shtool install -c"
2261    break
2262  fi
2263done
2264if test -z "$ac_aux_dir"; then
2265  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2266fi
2267
2268# These three variables are undocumented and unsupported,
2269# and are intended to be withdrawn in a future Autoconf release.
2270# They can cause serious problems if a builder's source tree is in a directory
2271# whose full name contains unusual characters.
2272ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2273ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2274ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2275
2276
2277# Make sure we can run config.sub.
2278$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2279  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2280
2281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2282$as_echo_n "checking build system type... " >&6; }
2283if ${ac_cv_build+:} false; then :
2284  $as_echo_n "(cached) " >&6
2285else
2286  ac_build_alias=$build_alias
2287test "x$ac_build_alias" = x &&
2288  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2289test "x$ac_build_alias" = x &&
2290  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2291ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2292  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2293
2294fi
2295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2296$as_echo "$ac_cv_build" >&6; }
2297case $ac_cv_build in
2298*-*-*) ;;
2299*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2300esac
2301build=$ac_cv_build
2302ac_save_IFS=$IFS; IFS='-'
2303set x $ac_cv_build
2304shift
2305build_cpu=$1
2306build_vendor=$2
2307shift; shift
2308# Remember, the first character of IFS is used to create $*,
2309# except with old shells:
2310build_os=$*
2311IFS=$ac_save_IFS
2312case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2313
2314
2315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2316$as_echo_n "checking host system type... " >&6; }
2317if ${ac_cv_host+:} false; then :
2318  $as_echo_n "(cached) " >&6
2319else
2320  if test "x$host_alias" = x; then
2321  ac_cv_host=$ac_cv_build
2322else
2323  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2324    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2325fi
2326
2327fi
2328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2329$as_echo "$ac_cv_host" >&6; }
2330case $ac_cv_host in
2331*-*-*) ;;
2332*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2333esac
2334host=$ac_cv_host
2335ac_save_IFS=$IFS; IFS='-'
2336set x $ac_cv_host
2337shift
2338host_cpu=$1
2339host_vendor=$2
2340shift; shift
2341# Remember, the first character of IFS is used to create $*,
2342# except with old shells:
2343host_os=$*
2344IFS=$ac_save_IFS
2345case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2346
2347
2348
2349
2350# Check whether --with-cc was given.
2351if test "${with_cc+set}" = set; then :
2352  withval=$with_cc; CC=$withval
2353fi
2354
2355ac_ext=c
2356ac_cpp='$CPP $CPPFLAGS'
2357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2359ac_compiler_gnu=$ac_cv_c_compiler_gnu
2360if test -n "$ac_tool_prefix"; then
2361  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2362set dummy ${ac_tool_prefix}gcc; ac_word=$2
2363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2364$as_echo_n "checking for $ac_word... " >&6; }
2365if ${ac_cv_prog_CC+:} false; then :
2366  $as_echo_n "(cached) " >&6
2367else
2368  if test -n "$CC"; then
2369  ac_cv_prog_CC="$CC" # Let the user override the test.
2370else
2371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372for as_dir in $PATH
2373do
2374  IFS=$as_save_IFS
2375  test -z "$as_dir" && as_dir=.
2376    for ac_exec_ext in '' $ac_executable_extensions; do
2377  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2378    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2379    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2380    break 2
2381  fi
2382done
2383  done
2384IFS=$as_save_IFS
2385
2386fi
2387fi
2388CC=$ac_cv_prog_CC
2389if test -n "$CC"; then
2390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2391$as_echo "$CC" >&6; }
2392else
2393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2394$as_echo "no" >&6; }
2395fi
2396
2397
2398fi
2399if test -z "$ac_cv_prog_CC"; then
2400  ac_ct_CC=$CC
2401  # Extract the first word of "gcc", so it can be a program name with args.
2402set dummy gcc; ac_word=$2
2403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2404$as_echo_n "checking for $ac_word... " >&6; }
2405if ${ac_cv_prog_ac_ct_CC+:} false; then :
2406  $as_echo_n "(cached) " >&6
2407else
2408  if test -n "$ac_ct_CC"; then
2409  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2410else
2411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412for as_dir in $PATH
2413do
2414  IFS=$as_save_IFS
2415  test -z "$as_dir" && as_dir=.
2416    for ac_exec_ext in '' $ac_executable_extensions; do
2417  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2418    ac_cv_prog_ac_ct_CC="gcc"
2419    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2420    break 2
2421  fi
2422done
2423  done
2424IFS=$as_save_IFS
2425
2426fi
2427fi
2428ac_ct_CC=$ac_cv_prog_ac_ct_CC
2429if test -n "$ac_ct_CC"; then
2430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2431$as_echo "$ac_ct_CC" >&6; }
2432else
2433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2434$as_echo "no" >&6; }
2435fi
2436
2437  if test "x$ac_ct_CC" = x; then
2438    CC=""
2439  else
2440    case $cross_compiling:$ac_tool_warned in
2441yes:)
2442{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2443$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2444ac_tool_warned=yes ;;
2445esac
2446    CC=$ac_ct_CC
2447  fi
2448else
2449  CC="$ac_cv_prog_CC"
2450fi
2451
2452if test -z "$CC"; then
2453          if test -n "$ac_tool_prefix"; then
2454    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2455set dummy ${ac_tool_prefix}cc; ac_word=$2
2456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2457$as_echo_n "checking for $ac_word... " >&6; }
2458if ${ac_cv_prog_CC+:} false; then :
2459  $as_echo_n "(cached) " >&6
2460else
2461  if test -n "$CC"; then
2462  ac_cv_prog_CC="$CC" # Let the user override the test.
2463else
2464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465for as_dir in $PATH
2466do
2467  IFS=$as_save_IFS
2468  test -z "$as_dir" && as_dir=.
2469    for ac_exec_ext in '' $ac_executable_extensions; do
2470  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2471    ac_cv_prog_CC="${ac_tool_prefix}cc"
2472    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2473    break 2
2474  fi
2475done
2476  done
2477IFS=$as_save_IFS
2478
2479fi
2480fi
2481CC=$ac_cv_prog_CC
2482if test -n "$CC"; then
2483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2484$as_echo "$CC" >&6; }
2485else
2486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2487$as_echo "no" >&6; }
2488fi
2489
2490
2491  fi
2492fi
2493if test -z "$CC"; then
2494  # Extract the first word of "cc", so it can be a program name with args.
2495set dummy cc; ac_word=$2
2496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2497$as_echo_n "checking for $ac_word... " >&6; }
2498if ${ac_cv_prog_CC+:} false; then :
2499  $as_echo_n "(cached) " >&6
2500else
2501  if test -n "$CC"; then
2502  ac_cv_prog_CC="$CC" # Let the user override the test.
2503else
2504  ac_prog_rejected=no
2505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506for as_dir in $PATH
2507do
2508  IFS=$as_save_IFS
2509  test -z "$as_dir" && as_dir=.
2510    for ac_exec_ext in '' $ac_executable_extensions; do
2511  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2512    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2513       ac_prog_rejected=yes
2514       continue
2515     fi
2516    ac_cv_prog_CC="cc"
2517    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2518    break 2
2519  fi
2520done
2521  done
2522IFS=$as_save_IFS
2523
2524if test $ac_prog_rejected = yes; then
2525  # We found a bogon in the path, so make sure we never use it.
2526  set dummy $ac_cv_prog_CC
2527  shift
2528  if test $# != 0; then
2529    # We chose a different compiler from the bogus one.
2530    # However, it has the same basename, so the bogon will be chosen
2531    # first if we set CC to just the basename; use the full file name.
2532    shift
2533    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2534  fi
2535fi
2536fi
2537fi
2538CC=$ac_cv_prog_CC
2539if test -n "$CC"; then
2540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2541$as_echo "$CC" >&6; }
2542else
2543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2544$as_echo "no" >&6; }
2545fi
2546
2547
2548fi
2549if test -z "$CC"; then
2550  if test -n "$ac_tool_prefix"; then
2551  for ac_prog in cl.exe
2552  do
2553    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2554set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2556$as_echo_n "checking for $ac_word... " >&6; }
2557if ${ac_cv_prog_CC+:} false; then :
2558  $as_echo_n "(cached) " >&6
2559else
2560  if test -n "$CC"; then
2561  ac_cv_prog_CC="$CC" # Let the user override the test.
2562else
2563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564for as_dir in $PATH
2565do
2566  IFS=$as_save_IFS
2567  test -z "$as_dir" && as_dir=.
2568    for ac_exec_ext in '' $ac_executable_extensions; do
2569  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2570    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2571    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2572    break 2
2573  fi
2574done
2575  done
2576IFS=$as_save_IFS
2577
2578fi
2579fi
2580CC=$ac_cv_prog_CC
2581if test -n "$CC"; then
2582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2583$as_echo "$CC" >&6; }
2584else
2585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2586$as_echo "no" >&6; }
2587fi
2588
2589
2590    test -n "$CC" && break
2591  done
2592fi
2593if test -z "$CC"; then
2594  ac_ct_CC=$CC
2595  for ac_prog in cl.exe
2596do
2597  # Extract the first word of "$ac_prog", so it can be a program name with args.
2598set dummy $ac_prog; ac_word=$2
2599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2600$as_echo_n "checking for $ac_word... " >&6; }
2601if ${ac_cv_prog_ac_ct_CC+:} false; then :
2602  $as_echo_n "(cached) " >&6
2603else
2604  if test -n "$ac_ct_CC"; then
2605  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2606else
2607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608for as_dir in $PATH
2609do
2610  IFS=$as_save_IFS
2611  test -z "$as_dir" && as_dir=.
2612    for ac_exec_ext in '' $ac_executable_extensions; do
2613  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2614    ac_cv_prog_ac_ct_CC="$ac_prog"
2615    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2616    break 2
2617  fi
2618done
2619  done
2620IFS=$as_save_IFS
2621
2622fi
2623fi
2624ac_ct_CC=$ac_cv_prog_ac_ct_CC
2625if test -n "$ac_ct_CC"; then
2626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2627$as_echo "$ac_ct_CC" >&6; }
2628else
2629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2630$as_echo "no" >&6; }
2631fi
2632
2633
2634  test -n "$ac_ct_CC" && break
2635done
2636
2637  if test "x$ac_ct_CC" = x; then
2638    CC=""
2639  else
2640    case $cross_compiling:$ac_tool_warned in
2641yes:)
2642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2644ac_tool_warned=yes ;;
2645esac
2646    CC=$ac_ct_CC
2647  fi
2648fi
2649
2650fi
2651
2652
2653test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2654$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2655as_fn_error $? "no acceptable C compiler found in \$PATH
2656See \`config.log' for more details" "$LINENO" 5; }
2657
2658# Provide some information about the compiler.
2659$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2660set X $ac_compile
2661ac_compiler=$2
2662for ac_option in --version -v -V -qversion; do
2663  { { ac_try="$ac_compiler $ac_option >&5"
2664case "(($ac_try" in
2665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2666  *) ac_try_echo=$ac_try;;
2667esac
2668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2669$as_echo "$ac_try_echo"; } >&5
2670  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2671  ac_status=$?
2672  if test -s conftest.err; then
2673    sed '10a\
2674... rest of stderr output deleted ...
2675         10q' conftest.err >conftest.er1
2676    cat conftest.er1 >&5
2677  fi
2678  rm -f conftest.er1 conftest.err
2679  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2680  test $ac_status = 0; }
2681done
2682
2683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2684/* end confdefs.h.  */
2685
2686int
2687main ()
2688{
2689
2690  ;
2691  return 0;
2692}
2693_ACEOF
2694ac_clean_files_save=$ac_clean_files
2695ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2696# Try to create an executable without -o first, disregard a.out.
2697# It will help us diagnose broken compilers, and finding out an intuition
2698# of exeext.
2699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2700$as_echo_n "checking whether the C compiler works... " >&6; }
2701ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2702
2703# The possible output files:
2704ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2705
2706ac_rmfiles=
2707for ac_file in $ac_files
2708do
2709  case $ac_file in
2710    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2711    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2712  esac
2713done
2714rm -f $ac_rmfiles
2715
2716if { { ac_try="$ac_link_default"
2717case "(($ac_try" in
2718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719  *) ac_try_echo=$ac_try;;
2720esac
2721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2722$as_echo "$ac_try_echo"; } >&5
2723  (eval "$ac_link_default") 2>&5
2724  ac_status=$?
2725  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2726  test $ac_status = 0; }; then :
2727  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2728# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2729# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2730# so that the user can short-circuit this test for compilers unknown to
2731# Autoconf.
2732for ac_file in $ac_files ''
2733do
2734  test -f "$ac_file" || continue
2735  case $ac_file in
2736    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2737	;;
2738    [ab].out )
2739	# We found the default executable, but exeext='' is most
2740	# certainly right.
2741	break;;
2742    *.* )
2743	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2744	then :; else
2745	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2746	fi
2747	# We set ac_cv_exeext here because the later test for it is not
2748	# safe: cross compilers may not add the suffix if given an `-o'
2749	# argument, so we may need to know it at that point already.
2750	# Even if this section looks crufty: it has the advantage of
2751	# actually working.
2752	break;;
2753    * )
2754	break;;
2755  esac
2756done
2757test "$ac_cv_exeext" = no && ac_cv_exeext=
2758
2759else
2760  ac_file=''
2761fi
2762if test -z "$ac_file"; then :
2763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764$as_echo "no" >&6; }
2765$as_echo "$as_me: failed program was:" >&5
2766sed 's/^/| /' conftest.$ac_ext >&5
2767
2768{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2769$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2770as_fn_error 77 "C compiler cannot create executables
2771See \`config.log' for more details" "$LINENO" 5; }
2772else
2773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2774$as_echo "yes" >&6; }
2775fi
2776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2777$as_echo_n "checking for C compiler default output file name... " >&6; }
2778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2779$as_echo "$ac_file" >&6; }
2780ac_exeext=$ac_cv_exeext
2781
2782rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2783ac_clean_files=$ac_clean_files_save
2784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2785$as_echo_n "checking for suffix of executables... " >&6; }
2786if { { ac_try="$ac_link"
2787case "(($ac_try" in
2788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789  *) ac_try_echo=$ac_try;;
2790esac
2791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2792$as_echo "$ac_try_echo"; } >&5
2793  (eval "$ac_link") 2>&5
2794  ac_status=$?
2795  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2796  test $ac_status = 0; }; then :
2797  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2798# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2799# work properly (i.e., refer to `conftest.exe'), while it won't with
2800# `rm'.
2801for ac_file in conftest.exe conftest conftest.*; do
2802  test -f "$ac_file" || continue
2803  case $ac_file in
2804    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2805    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2806	  break;;
2807    * ) break;;
2808  esac
2809done
2810else
2811  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2812$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2813as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2814See \`config.log' for more details" "$LINENO" 5; }
2815fi
2816rm -f conftest conftest$ac_cv_exeext
2817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2818$as_echo "$ac_cv_exeext" >&6; }
2819
2820rm -f conftest.$ac_ext
2821EXEEXT=$ac_cv_exeext
2822ac_exeext=$EXEEXT
2823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2824/* end confdefs.h.  */
2825#include <stdio.h>
2826int
2827main ()
2828{
2829FILE *f = fopen ("conftest.out", "w");
2830 return ferror (f) || fclose (f) != 0;
2831
2832  ;
2833  return 0;
2834}
2835_ACEOF
2836ac_clean_files="$ac_clean_files conftest.out"
2837# Check that the compiler produces executables we can run.  If not, either
2838# the compiler is broken, or we cross compile.
2839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2840$as_echo_n "checking whether we are cross compiling... " >&6; }
2841if test "$cross_compiling" != yes; then
2842  { { ac_try="$ac_link"
2843case "(($ac_try" in
2844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2845  *) ac_try_echo=$ac_try;;
2846esac
2847eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2848$as_echo "$ac_try_echo"; } >&5
2849  (eval "$ac_link") 2>&5
2850  ac_status=$?
2851  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2852  test $ac_status = 0; }
2853  if { ac_try='./conftest$ac_cv_exeext'
2854  { { case "(($ac_try" in
2855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2856  *) ac_try_echo=$ac_try;;
2857esac
2858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2859$as_echo "$ac_try_echo"; } >&5
2860  (eval "$ac_try") 2>&5
2861  ac_status=$?
2862  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2863  test $ac_status = 0; }; }; then
2864    cross_compiling=no
2865  else
2866    if test "$cross_compiling" = maybe; then
2867	cross_compiling=yes
2868    else
2869	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2870$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2871as_fn_error $? "cannot run C compiled programs.
2872If you meant to cross compile, use \`--host'.
2873See \`config.log' for more details" "$LINENO" 5; }
2874    fi
2875  fi
2876fi
2877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2878$as_echo "$cross_compiling" >&6; }
2879
2880rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2881ac_clean_files=$ac_clean_files_save
2882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2883$as_echo_n "checking for suffix of object files... " >&6; }
2884if ${ac_cv_objext+:} false; then :
2885  $as_echo_n "(cached) " >&6
2886else
2887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2888/* end confdefs.h.  */
2889
2890int
2891main ()
2892{
2893
2894  ;
2895  return 0;
2896}
2897_ACEOF
2898rm -f conftest.o conftest.obj
2899if { { ac_try="$ac_compile"
2900case "(($ac_try" in
2901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902  *) ac_try_echo=$ac_try;;
2903esac
2904eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2905$as_echo "$ac_try_echo"; } >&5
2906  (eval "$ac_compile") 2>&5
2907  ac_status=$?
2908  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2909  test $ac_status = 0; }; then :
2910  for ac_file in conftest.o conftest.obj conftest.*; do
2911  test -f "$ac_file" || continue;
2912  case $ac_file in
2913    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2914    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2915       break;;
2916  esac
2917done
2918else
2919  $as_echo "$as_me: failed program was:" >&5
2920sed 's/^/| /' conftest.$ac_ext >&5
2921
2922{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2923$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2924as_fn_error $? "cannot compute suffix of object files: cannot compile
2925See \`config.log' for more details" "$LINENO" 5; }
2926fi
2927rm -f conftest.$ac_cv_objext conftest.$ac_ext
2928fi
2929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2930$as_echo "$ac_cv_objext" >&6; }
2931OBJEXT=$ac_cv_objext
2932ac_objext=$OBJEXT
2933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2934$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2935if ${ac_cv_c_compiler_gnu+:} false; then :
2936  $as_echo_n "(cached) " >&6
2937else
2938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2939/* end confdefs.h.  */
2940
2941int
2942main ()
2943{
2944#ifndef __GNUC__
2945       choke me
2946#endif
2947
2948  ;
2949  return 0;
2950}
2951_ACEOF
2952if ac_fn_c_try_compile "$LINENO"; then :
2953  ac_compiler_gnu=yes
2954else
2955  ac_compiler_gnu=no
2956fi
2957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2958ac_cv_c_compiler_gnu=$ac_compiler_gnu
2959
2960fi
2961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2962$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2963if test $ac_compiler_gnu = yes; then
2964  GCC=yes
2965else
2966  GCC=
2967fi
2968ac_test_CFLAGS=${CFLAGS+set}
2969ac_save_CFLAGS=$CFLAGS
2970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2971$as_echo_n "checking whether $CC accepts -g... " >&6; }
2972if ${ac_cv_prog_cc_g+:} false; then :
2973  $as_echo_n "(cached) " >&6
2974else
2975  ac_save_c_werror_flag=$ac_c_werror_flag
2976   ac_c_werror_flag=yes
2977   ac_cv_prog_cc_g=no
2978   CFLAGS="-g"
2979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2980/* end confdefs.h.  */
2981
2982int
2983main ()
2984{
2985
2986  ;
2987  return 0;
2988}
2989_ACEOF
2990if ac_fn_c_try_compile "$LINENO"; then :
2991  ac_cv_prog_cc_g=yes
2992else
2993  CFLAGS=""
2994      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2995/* end confdefs.h.  */
2996
2997int
2998main ()
2999{
3000
3001  ;
3002  return 0;
3003}
3004_ACEOF
3005if ac_fn_c_try_compile "$LINENO"; then :
3006
3007else
3008  ac_c_werror_flag=$ac_save_c_werror_flag
3009	 CFLAGS="-g"
3010	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3011/* end confdefs.h.  */
3012
3013int
3014main ()
3015{
3016
3017  ;
3018  return 0;
3019}
3020_ACEOF
3021if ac_fn_c_try_compile "$LINENO"; then :
3022  ac_cv_prog_cc_g=yes
3023fi
3024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3025fi
3026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3027fi
3028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3029   ac_c_werror_flag=$ac_save_c_werror_flag
3030fi
3031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3032$as_echo "$ac_cv_prog_cc_g" >&6; }
3033if test "$ac_test_CFLAGS" = set; then
3034  CFLAGS=$ac_save_CFLAGS
3035elif test $ac_cv_prog_cc_g = yes; then
3036  if test "$GCC" = yes; then
3037    CFLAGS="-g -O2"
3038  else
3039    CFLAGS="-g"
3040  fi
3041else
3042  if test "$GCC" = yes; then
3043    CFLAGS="-O2"
3044  else
3045    CFLAGS=
3046  fi
3047fi
3048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3049$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3050if ${ac_cv_prog_cc_c89+:} false; then :
3051  $as_echo_n "(cached) " >&6
3052else
3053  ac_cv_prog_cc_c89=no
3054ac_save_CC=$CC
3055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3056/* end confdefs.h.  */
3057#include <stdarg.h>
3058#include <stdio.h>
3059struct stat;
3060/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3061struct buf { int x; };
3062FILE * (*rcsopen) (struct buf *, struct stat *, int);
3063static char *e (p, i)
3064     char **p;
3065     int i;
3066{
3067  return p[i];
3068}
3069static char *f (char * (*g) (char **, int), char **p, ...)
3070{
3071  char *s;
3072  va_list v;
3073  va_start (v,p);
3074  s = g (p, va_arg (v,int));
3075  va_end (v);
3076  return s;
3077}
3078
3079/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3080   function prototypes and stuff, but not '\xHH' hex character constants.
3081   These don't provoke an error unfortunately, instead are silently treated
3082   as 'x'.  The following induces an error, until -std is added to get
3083   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3084   array size at least.  It's necessary to write '\x00'==0 to get something
3085   that's true only with -std.  */
3086int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3087
3088/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3089   inside strings and character constants.  */
3090#define FOO(x) 'x'
3091int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3092
3093int test (int i, double x);
3094struct s1 {int (*f) (int a);};
3095struct s2 {int (*f) (double a);};
3096int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3097int argc;
3098char **argv;
3099int
3100main ()
3101{
3102return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3103  ;
3104  return 0;
3105}
3106_ACEOF
3107for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3108	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3109do
3110  CC="$ac_save_CC $ac_arg"
3111  if ac_fn_c_try_compile "$LINENO"; then :
3112  ac_cv_prog_cc_c89=$ac_arg
3113fi
3114rm -f core conftest.err conftest.$ac_objext
3115  test "x$ac_cv_prog_cc_c89" != "xno" && break
3116done
3117rm -f conftest.$ac_ext
3118CC=$ac_save_CC
3119
3120fi
3121# AC_CACHE_VAL
3122case "x$ac_cv_prog_cc_c89" in
3123  x)
3124    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3125$as_echo "none needed" >&6; } ;;
3126  xno)
3127    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3128$as_echo "unsupported" >&6; } ;;
3129  *)
3130    CC="$CC $ac_cv_prog_cc_c89"
3131    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3132$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3133esac
3134if test "x$ac_cv_prog_cc_c89" != xno; then :
3135
3136fi
3137
3138ac_ext=c
3139ac_cpp='$CPP $CPPFLAGS'
3140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3142ac_compiler_gnu=$ac_cv_c_compiler_gnu
3143
3144
3145
3146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
3147$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
3148if ${ac_cv_c_const+:} false; then :
3149  $as_echo_n "(cached) " >&6
3150else
3151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3152/* end confdefs.h.  */
3153
3154int
3155main ()
3156{
3157
3158#ifndef __cplusplus
3159  /* Ultrix mips cc rejects this sort of thing.  */
3160  typedef int charset[2];
3161  const charset cs = { 0, 0 };
3162  /* SunOS 4.1.1 cc rejects this.  */
3163  char const *const *pcpcc;
3164  char **ppc;
3165  /* NEC SVR4.0.2 mips cc rejects this.  */
3166  struct point {int x, y;};
3167  static struct point const zero = {0,0};
3168  /* AIX XL C 1.02.0.0 rejects this.
3169     It does not let you subtract one const X* pointer from another in
3170     an arm of an if-expression whose if-part is not a constant
3171     expression */
3172  const char *g = "string";
3173  pcpcc = &g + (g ? g-g : 0);
3174  /* HPUX 7.0 cc rejects these. */
3175  ++pcpcc;
3176  ppc = (char**) pcpcc;
3177  pcpcc = (char const *const *) ppc;
3178  { /* SCO 3.2v4 cc rejects this sort of thing.  */
3179    char tx;
3180    char *t = &tx;
3181    char const *s = 0 ? (char *) 0 : (char const *) 0;
3182
3183    *t++ = 0;
3184    if (s) return 0;
3185  }
3186  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3187    int x[] = {25, 17};
3188    const int *foo = &x[0];
3189    ++foo;
3190  }
3191  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3192    typedef const int *iptr;
3193    iptr p = 0;
3194    ++p;
3195  }
3196  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
3197       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3198    struct s { int j; const int *ap[3]; } bx;
3199    struct s *b = &bx; b->j = 5;
3200  }
3201  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3202    const int foo = 10;
3203    if (!foo) return 0;
3204  }
3205  return !cs[0] && !zero.x;
3206#endif
3207
3208  ;
3209  return 0;
3210}
3211_ACEOF
3212if ac_fn_c_try_compile "$LINENO"; then :
3213  ac_cv_c_const=yes
3214else
3215  ac_cv_c_const=no
3216fi
3217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3218fi
3219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
3220$as_echo "$ac_cv_c_const" >&6; }
3221if test $ac_cv_c_const = no; then
3222
3223$as_echo "#define const /**/" >>confdefs.h
3224
3225fi
3226
3227
3228ac_ext=c
3229ac_cpp='$CPP $CPPFLAGS'
3230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3232ac_compiler_gnu=$ac_cv_c_compiler_gnu
3233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3234$as_echo_n "checking how to run the C preprocessor... " >&6; }
3235# On Suns, sometimes $CPP names a directory.
3236if test -n "$CPP" && test -d "$CPP"; then
3237  CPP=
3238fi
3239if test -z "$CPP"; then
3240  if ${ac_cv_prog_CPP+:} false; then :
3241  $as_echo_n "(cached) " >&6
3242else
3243      # Double quotes because CPP needs to be expanded
3244    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3245    do
3246      ac_preproc_ok=false
3247for ac_c_preproc_warn_flag in '' yes
3248do
3249  # Use a header file that comes with gcc, so configuring glibc
3250  # with a fresh cross-compiler works.
3251  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3252  # <limits.h> exists even on freestanding compilers.
3253  # On the NeXT, cc -E runs the code through the compiler's parser,
3254  # not just through cpp. "Syntax error" is here to catch this case.
3255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3256/* end confdefs.h.  */
3257#ifdef __STDC__
3258# include <limits.h>
3259#else
3260# include <assert.h>
3261#endif
3262		     Syntax error
3263_ACEOF
3264if ac_fn_c_try_cpp "$LINENO"; then :
3265
3266else
3267  # Broken: fails on valid input.
3268continue
3269fi
3270rm -f conftest.err conftest.i conftest.$ac_ext
3271
3272  # OK, works on sane cases.  Now check whether nonexistent headers
3273  # can be detected and how.
3274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3275/* end confdefs.h.  */
3276#include <ac_nonexistent.h>
3277_ACEOF
3278if ac_fn_c_try_cpp "$LINENO"; then :
3279  # Broken: success on invalid input.
3280continue
3281else
3282  # Passes both tests.
3283ac_preproc_ok=:
3284break
3285fi
3286rm -f conftest.err conftest.i conftest.$ac_ext
3287
3288done
3289# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3290rm -f conftest.i conftest.err conftest.$ac_ext
3291if $ac_preproc_ok; then :
3292  break
3293fi
3294
3295    done
3296    ac_cv_prog_CPP=$CPP
3297
3298fi
3299  CPP=$ac_cv_prog_CPP
3300else
3301  ac_cv_prog_CPP=$CPP
3302fi
3303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3304$as_echo "$CPP" >&6; }
3305ac_preproc_ok=false
3306for ac_c_preproc_warn_flag in '' yes
3307do
3308  # Use a header file that comes with gcc, so configuring glibc
3309  # with a fresh cross-compiler works.
3310  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3311  # <limits.h> exists even on freestanding compilers.
3312  # On the NeXT, cc -E runs the code through the compiler's parser,
3313  # not just through cpp. "Syntax error" is here to catch this case.
3314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315/* end confdefs.h.  */
3316#ifdef __STDC__
3317# include <limits.h>
3318#else
3319# include <assert.h>
3320#endif
3321		     Syntax error
3322_ACEOF
3323if ac_fn_c_try_cpp "$LINENO"; then :
3324
3325else
3326  # Broken: fails on valid input.
3327continue
3328fi
3329rm -f conftest.err conftest.i conftest.$ac_ext
3330
3331  # OK, works on sane cases.  Now check whether nonexistent headers
3332  # can be detected and how.
3333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3334/* end confdefs.h.  */
3335#include <ac_nonexistent.h>
3336_ACEOF
3337if ac_fn_c_try_cpp "$LINENO"; then :
3338  # Broken: success on invalid input.
3339continue
3340else
3341  # Passes both tests.
3342ac_preproc_ok=:
3343break
3344fi
3345rm -f conftest.err conftest.i conftest.$ac_ext
3346
3347done
3348# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3349rm -f conftest.i conftest.err conftest.$ac_ext
3350if $ac_preproc_ok; then :
3351
3352else
3353  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3354$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3356See \`config.log' for more details" "$LINENO" 5; }
3357fi
3358
3359ac_ext=c
3360ac_cpp='$CPP $CPPFLAGS'
3361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3363ac_compiler_gnu=$ac_cv_c_compiler_gnu
3364
3365
3366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3367$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3368if ${ac_cv_path_GREP+:} false; then :
3369  $as_echo_n "(cached) " >&6
3370else
3371  if test -z "$GREP"; then
3372  ac_path_GREP_found=false
3373  # Loop through the user's path and test for each of PROGNAME-LIST
3374  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3376do
3377  IFS=$as_save_IFS
3378  test -z "$as_dir" && as_dir=.
3379    for ac_prog in grep ggrep; do
3380    for ac_exec_ext in '' $ac_executable_extensions; do
3381      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3382      as_fn_executable_p "$ac_path_GREP" || continue
3383# Check for GNU ac_path_GREP and select it if it is found.
3384  # Check for GNU $ac_path_GREP
3385case `"$ac_path_GREP" --version 2>&1` in
3386*GNU*)
3387  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3388*)
3389  ac_count=0
3390  $as_echo_n 0123456789 >"conftest.in"
3391  while :
3392  do
3393    cat "conftest.in" "conftest.in" >"conftest.tmp"
3394    mv "conftest.tmp" "conftest.in"
3395    cp "conftest.in" "conftest.nl"
3396    $as_echo 'GREP' >> "conftest.nl"
3397    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3398    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3399    as_fn_arith $ac_count + 1 && ac_count=$as_val
3400    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3401      # Best one so far, save it but keep looking for a better one
3402      ac_cv_path_GREP="$ac_path_GREP"
3403      ac_path_GREP_max=$ac_count
3404    fi
3405    # 10*(2^10) chars as input seems more than enough
3406    test $ac_count -gt 10 && break
3407  done
3408  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3409esac
3410
3411      $ac_path_GREP_found && break 3
3412    done
3413  done
3414  done
3415IFS=$as_save_IFS
3416  if test -z "$ac_cv_path_GREP"; then
3417    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3418  fi
3419else
3420  ac_cv_path_GREP=$GREP
3421fi
3422
3423fi
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3425$as_echo "$ac_cv_path_GREP" >&6; }
3426 GREP="$ac_cv_path_GREP"
3427
3428
3429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3430$as_echo_n "checking for egrep... " >&6; }
3431if ${ac_cv_path_EGREP+:} false; then :
3432  $as_echo_n "(cached) " >&6
3433else
3434  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3435   then ac_cv_path_EGREP="$GREP -E"
3436   else
3437     if test -z "$EGREP"; then
3438  ac_path_EGREP_found=false
3439  # Loop through the user's path and test for each of PROGNAME-LIST
3440  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3442do
3443  IFS=$as_save_IFS
3444  test -z "$as_dir" && as_dir=.
3445    for ac_prog in egrep; do
3446    for ac_exec_ext in '' $ac_executable_extensions; do
3447      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3448      as_fn_executable_p "$ac_path_EGREP" || continue
3449# Check for GNU ac_path_EGREP and select it if it is found.
3450  # Check for GNU $ac_path_EGREP
3451case `"$ac_path_EGREP" --version 2>&1` in
3452*GNU*)
3453  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3454*)
3455  ac_count=0
3456  $as_echo_n 0123456789 >"conftest.in"
3457  while :
3458  do
3459    cat "conftest.in" "conftest.in" >"conftest.tmp"
3460    mv "conftest.tmp" "conftest.in"
3461    cp "conftest.in" "conftest.nl"
3462    $as_echo 'EGREP' >> "conftest.nl"
3463    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3464    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3465    as_fn_arith $ac_count + 1 && ac_count=$as_val
3466    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3467      # Best one so far, save it but keep looking for a better one
3468      ac_cv_path_EGREP="$ac_path_EGREP"
3469      ac_path_EGREP_max=$ac_count
3470    fi
3471    # 10*(2^10) chars as input seems more than enough
3472    test $ac_count -gt 10 && break
3473  done
3474  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3475esac
3476
3477      $ac_path_EGREP_found && break 3
3478    done
3479  done
3480  done
3481IFS=$as_save_IFS
3482  if test -z "$ac_cv_path_EGREP"; then
3483    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3484  fi
3485else
3486  ac_cv_path_EGREP=$EGREP
3487fi
3488
3489   fi
3490fi
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3492$as_echo "$ac_cv_path_EGREP" >&6; }
3493 EGREP="$ac_cv_path_EGREP"
3494
3495
3496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3497$as_echo_n "checking for ANSI C header files... " >&6; }
3498if ${ac_cv_header_stdc+:} false; then :
3499  $as_echo_n "(cached) " >&6
3500else
3501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502/* end confdefs.h.  */
3503#include <stdlib.h>
3504#include <stdarg.h>
3505#include <string.h>
3506#include <float.h>
3507
3508int
3509main ()
3510{
3511
3512  ;
3513  return 0;
3514}
3515_ACEOF
3516if ac_fn_c_try_compile "$LINENO"; then :
3517  ac_cv_header_stdc=yes
3518else
3519  ac_cv_header_stdc=no
3520fi
3521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3522
3523if test $ac_cv_header_stdc = yes; then
3524  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3526/* end confdefs.h.  */
3527#include <string.h>
3528
3529_ACEOF
3530if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3531  $EGREP "memchr" >/dev/null 2>&1; then :
3532
3533else
3534  ac_cv_header_stdc=no
3535fi
3536rm -f conftest*
3537
3538fi
3539
3540if test $ac_cv_header_stdc = yes; then
3541  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543/* end confdefs.h.  */
3544#include <stdlib.h>
3545
3546_ACEOF
3547if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3548  $EGREP "free" >/dev/null 2>&1; then :
3549
3550else
3551  ac_cv_header_stdc=no
3552fi
3553rm -f conftest*
3554
3555fi
3556
3557if test $ac_cv_header_stdc = yes; then
3558  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3559  if test "$cross_compiling" = yes; then :
3560  :
3561else
3562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563/* end confdefs.h.  */
3564#include <ctype.h>
3565#include <stdlib.h>
3566#if ((' ' & 0x0FF) == 0x020)
3567# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3568# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3569#else
3570# define ISLOWER(c) \
3571		   (('a' <= (c) && (c) <= 'i') \
3572		     || ('j' <= (c) && (c) <= 'r') \
3573		     || ('s' <= (c) && (c) <= 'z'))
3574# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3575#endif
3576
3577#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3578int
3579main ()
3580{
3581  int i;
3582  for (i = 0; i < 256; i++)
3583    if (XOR (islower (i), ISLOWER (i))
3584	|| toupper (i) != TOUPPER (i))
3585      return 2;
3586  return 0;
3587}
3588_ACEOF
3589if ac_fn_c_try_run "$LINENO"; then :
3590
3591else
3592  ac_cv_header_stdc=no
3593fi
3594rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3595  conftest.$ac_objext conftest.beam conftest.$ac_ext
3596fi
3597
3598fi
3599fi
3600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3601$as_echo "$ac_cv_header_stdc" >&6; }
3602if test $ac_cv_header_stdc = yes; then
3603
3604$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3605
3606fi
3607
3608# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3609for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3610		  inttypes.h stdint.h unistd.h
3611do :
3612  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3613ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3614"
3615if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3616  cat >>confdefs.h <<_ACEOF
3617#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3618_ACEOF
3619
3620fi
3621
3622done
3623
3624
3625for ac_header in fcntl.h limits.h stdlib.h sys/types.h unistd.h winsock2.h ws2tcpip.h
3626do :
3627  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3628ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3629if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3630  cat >>confdefs.h <<_ACEOF
3631#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3632_ACEOF
3633
3634fi
3635
3636done
3637
3638for ac_header in arpa/inet.h netdb.h netinet/in.h netinet/tcp.h sys/socket.h sys/uio.h sys/un.h linux/can.h linux/tcp.h
3639do :
3640  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3641ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3642if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3643  cat >>confdefs.h <<_ACEOF
3644#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3645_ACEOF
3646
3647fi
3648
3649done
3650
3651for ac_header in net/if.h
3652do :
3653  ac_fn_c_check_header_mongrel "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default"
3654if test "x$ac_cv_header_net_if_h" = xyes; then :
3655  cat >>confdefs.h <<_ACEOF
3656#define HAVE_NET_IF_H 1
3657_ACEOF
3658
3659fi
3660
3661done
3662
3663
3664for ac_func in readlink symlink if_nametoindex
3665do :
3666  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3667ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
3668if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
3669  cat >>confdefs.h <<_ACEOF
3670#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3671_ACEOF
3672
3673fi
3674done
3675
3676
3677ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "#if HAVE_SYS_TYPES_H
3678# include <sys/types.h>
3679#endif
3680#if HAVE_SYS_SOCKET_H
3681# include <sys/socket.h>
3682#endif
3683#if HAVE_SYS_UIO_H
3684# include <sys/uio.h>
3685#endif
3686"
3687if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
3688
3689cat >>confdefs.h <<_ACEOF
3690#define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
3691_ACEOF
3692
3693
3694fi
3695ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#if HAVE_SYS_TYPES_H
3696# include <sys/types.h>
3697#endif
3698#if HAVE_SYS_SOCKET_H
3699# include <sys/socket.h>
3700#endif
3701#if HAVE_SYS_UIO_H
3702# include <sys/uio.h>
3703#endif
3704"
3705if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
3706
3707cat >>confdefs.h <<_ACEOF
3708#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
3709_ACEOF
3710
3711
3712fi
3713
3714
3715ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#if HAVE_SYS_TYPES_H
3716# include <sys/types.h>
3717#endif
3718#if HAVE_SYS_SOCKET_H
3719# include <sys/socket.h>
3720#endif
3721"
3722if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
3723
3724cat >>confdefs.h <<_ACEOF
3725#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
3726_ACEOF
3727
3728
3729fi
3730
3731
3732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t in netinet/in.h" >&5
3733$as_echo_n "checking for in_addr_t in netinet/in.h... " >&6; }
3734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735/* end confdefs.h.  */
3736#include <netinet/in.h>
3737
3738_ACEOF
3739if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3740  $EGREP "in_addr_t" >/dev/null 2>&1; then :
3741
3742$as_echo "#define HAVE_IN_ADDR_T 1" >>confdefs.h
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3744$as_echo "yes" >&6; }
3745else
3746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3747$as_echo "no" >&6; }
3748fi
3749rm -f conftest*
3750
3751
3752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_PEERCRED and struct ucred in sys/socket.h" >&5
3753$as_echo_n "checking for SO_PEERCRED and struct ucred in sys/socket.h... " >&6; }
3754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755/* end confdefs.h.  */
3756#include <sys/types.h>
3757#include <sys/socket.h>
3758#ifndef SO_PEERCRED
3759# error no SO_PEERCRED
3760#endif
3761struct ucred u;
3762int
3763main ()
3764{
3765
3766  ;
3767  return 0;
3768}
3769_ACEOF
3770if ac_fn_c_try_compile "$LINENO"; then :
3771  ac_cv_ucred=yes
3772else
3773  ac_cv_ucred=no
3774fi
3775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3776if test "x$ac_cv_ucred" = xno; then
3777    old_CFLAGS="$CFLAGS"
3778    CFLAGS="-D_GNU_SOURCE $CFLAGS"
3779    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780/* end confdefs.h.  */
3781#include <sys/types.h>
3782#include <sys/socket.h>
3783#ifndef SO_PEERCRED
3784# error no SO_PEERCRED
3785#endif
3786struct ucred u;
3787int
3788main ()
3789{
3790
3791  ;
3792  return 0;
3793}
3794_ACEOF
3795if ac_fn_c_try_compile "$LINENO"; then :
3796  ac_cv_ucred=yes
3797else
3798  ac_cv_ucred=no
3799fi
3800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3801    if test "x$ac_cv_ucred" = xyes; then
3802        EXTRA_CPPFLAGS=-D_GNU_SOURCE
3803    fi
3804else
3805    old_CFLAGS="$CFLAGS"
3806fi
3807if test "x$ac_cv_ucred" = xno; then
3808    CFLAGS="$old_CFLAGS"
3809    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3810$as_echo "no" >&6; }
3811else
3812
3813$as_echo "#define HAVE_STRUCT_UCRED 1" >>confdefs.h
3814
3815    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3816$as_echo "yes" >&6; }
3817fi
3818
3819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpeereid in unistd.h" >&5
3820$as_echo_n "checking for getpeereid in unistd.h... " >&6; }
3821ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid"
3822if test "x$ac_cv_func_getpeereid" = xyes; then :
3823
3824$as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
3825
3826fi
3827
3828
3829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _head_libws2_32_a in -lws2_32" >&5
3830$as_echo_n "checking for _head_libws2_32_a in -lws2_32... " >&6; }
3831if ${ac_cv_lib_ws2_32__head_libws2_32_a+:} false; then :
3832  $as_echo_n "(cached) " >&6
3833else
3834  ac_check_lib_save_LIBS=$LIBS
3835LIBS="-lws2_32  $LIBS"
3836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837/* end confdefs.h.  */
3838
3839/* Override any GCC internal prototype to avoid an error.
3840   Use char because int might match the return type of a GCC
3841   builtin and then its argument prototype would still apply.  */
3842#ifdef __cplusplus
3843extern "C"
3844#endif
3845char _head_libws2_32_a ();
3846int
3847main ()
3848{
3849return _head_libws2_32_a ();
3850  ;
3851  return 0;
3852}
3853_ACEOF
3854if ac_fn_c_try_link "$LINENO"; then :
3855  ac_cv_lib_ws2_32__head_libws2_32_a=yes
3856else
3857  ac_cv_lib_ws2_32__head_libws2_32_a=no
3858fi
3859rm -f core conftest.err conftest.$ac_objext \
3860    conftest$ac_exeext conftest.$ac_ext
3861LIBS=$ac_check_lib_save_LIBS
3862fi
3863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32__head_libws2_32_a" >&5
3864$as_echo "$ac_cv_lib_ws2_32__head_libws2_32_a" >&6; }
3865if test "x$ac_cv_lib_ws2_32__head_libws2_32_a" = xyes; then :
3866  cat >>confdefs.h <<_ACEOF
3867#define HAVE_LIBWS2_32 1
3868_ACEOF
3869
3870  LIBS="-lws2_32 $LIBS"
3871
3872fi
3873
3874
3875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
3876$as_echo_n "checking for getaddrinfo... " >&6; }
3877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878/* end confdefs.h.  */
3879$ac_includes_default
3880int testme(){ getaddrinfo; }
3881int
3882main ()
3883{
3884
3885  ;
3886  return 0;
3887}
3888_ACEOF
3889if ac_fn_c_try_compile "$LINENO"; then :
3890
3891$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
3892 ac_have_getaddrinfo=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3893$as_echo "yes" >&6; }
3894else
3895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3896$as_echo "no" >&6; }
3897fi
3898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3899
3900if test "x$ac_have_getaddrinfo" = x; then
3901  old_CFLAGS="$CFLAGS"
3902  if test "z$ac_cv_lib_ws2_32__head_libws2_32_a" = zyes; then
3903    CFLAGS="-DWINVER=0x0501 $CFLAGS"
3904    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo if WINVER is 0x0501" >&5
3905$as_echo_n "checking for getaddrinfo if WINVER is 0x0501... " >&6; }
3906    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3907/* end confdefs.h.  */
3908$ac_includes_default
3909    int testme(){ getaddrinfo; }
3910int
3911main ()
3912{
3913
3914  ;
3915  return 0;
3916}
3917_ACEOF
3918if ac_fn_c_try_compile "$LINENO"; then :
3919
3920$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
3921
3922$as_echo "#define NEED_WINVER_XP 1" >>confdefs.h
3923 EXTRA_CPPFLAGS="-DWINVER=0x0501 $EXTRA_CPPFLAGS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3924$as_echo "yes" >&6; }
3925else
3926  CFLAGS="$old_CFLAGS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3927$as_echo "no" >&6; }
3928fi
3929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930  fi
3931fi
3932
3933for ac_func in gai_strerror
3934do :
3935  ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
3936if test "x$ac_cv_func_gai_strerror" = xyes; then :
3937  cat >>confdefs.h <<_ACEOF
3938#define HAVE_GAI_STRERROR 1
3939_ACEOF
3940
3941fi
3942done
3943
3944
3945ac_fn_c_check_decl "$LINENO" "AI_ADDRCONFIG" "ac_cv_have_decl_AI_ADDRCONFIG" "$ac_includes_default"
3946if test "x$ac_cv_have_decl_AI_ADDRCONFIG" = xyes; then :
3947  ac_have_decl=1
3948else
3949  ac_have_decl=0
3950fi
3951
3952cat >>confdefs.h <<_ACEOF
3953#define HAVE_DECL_AI_ADDRCONFIG $ac_have_decl
3954_ACEOF
3955ac_fn_c_check_decl "$LINENO" "AI_ALL" "ac_cv_have_decl_AI_ALL" "$ac_includes_default"
3956if test "x$ac_cv_have_decl_AI_ALL" = xyes; then :
3957  ac_have_decl=1
3958else
3959  ac_have_decl=0
3960fi
3961
3962cat >>confdefs.h <<_ACEOF
3963#define HAVE_DECL_AI_ALL $ac_have_decl
3964_ACEOF
3965ac_fn_c_check_decl "$LINENO" "AI_NUMERICSERV" "ac_cv_have_decl_AI_NUMERICSERV" "$ac_includes_default"
3966if test "x$ac_cv_have_decl_AI_NUMERICSERV" = xyes; then :
3967  ac_have_decl=1
3968else
3969  ac_have_decl=0
3970fi
3971
3972cat >>confdefs.h <<_ACEOF
3973#define HAVE_DECL_AI_NUMERICSERV $ac_have_decl
3974_ACEOF
3975ac_fn_c_check_decl "$LINENO" "AI_V4MAPPED" "ac_cv_have_decl_AI_V4MAPPED" "$ac_includes_default"
3976if test "x$ac_cv_have_decl_AI_V4MAPPED" = xyes; then :
3977  ac_have_decl=1
3978else
3979  ac_have_decl=0
3980fi
3981
3982cat >>confdefs.h <<_ACEOF
3983#define HAVE_DECL_AI_V4MAPPED $ac_have_decl
3984_ACEOF
3985
3986
3987ac_fn_c_check_decl "$LINENO" "IPV6_V6ONLY" "ac_cv_have_decl_IPV6_V6ONLY" "$ac_includes_default"
3988if test "x$ac_cv_have_decl_IPV6_V6ONLY" = xyes; then :
3989  ac_have_decl=1
3990else
3991  ac_have_decl=0
3992fi
3993
3994cat >>confdefs.h <<_ACEOF
3995#define HAVE_DECL_IPV6_V6ONLY $ac_have_decl
3996_ACEOF
3997
3998
3999ac_fn_c_check_decl "$LINENO" "IPPROTO_IP" "ac_cv_have_decl_IPPROTO_IP" "$ac_includes_default"
4000if test "x$ac_cv_have_decl_IPPROTO_IP" = xyes; then :
4001  ac_have_decl=1
4002else
4003  ac_have_decl=0
4004fi
4005
4006cat >>confdefs.h <<_ACEOF
4007#define HAVE_DECL_IPPROTO_IP $ac_have_decl
4008_ACEOF
4009ac_fn_c_check_decl "$LINENO" "IPPROTO_TCP" "ac_cv_have_decl_IPPROTO_TCP" "$ac_includes_default"
4010if test "x$ac_cv_have_decl_IPPROTO_TCP" = xyes; then :
4011  ac_have_decl=1
4012else
4013  ac_have_decl=0
4014fi
4015
4016cat >>confdefs.h <<_ACEOF
4017#define HAVE_DECL_IPPROTO_TCP $ac_have_decl
4018_ACEOF
4019ac_fn_c_check_decl "$LINENO" "IPPROTO_IPV6" "ac_cv_have_decl_IPPROTO_IPV6" "$ac_includes_default"
4020if test "x$ac_cv_have_decl_IPPROTO_IPV6" = xyes; then :
4021  ac_have_decl=1
4022else
4023  ac_have_decl=0
4024fi
4025
4026cat >>confdefs.h <<_ACEOF
4027#define HAVE_DECL_IPPROTO_IPV6 $ac_have_decl
4028_ACEOF
4029
4030
4031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in sys/sendfile.h" >&5
4032$as_echo_n "checking for sendfile in sys/sendfile.h... " >&6; }
4033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034/* end confdefs.h.  */
4035#include <sys/sendfile.h>
4036
4037_ACEOF
4038if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4039  $EGREP "sendfile" >/dev/null 2>&1; then :
4040
4041$as_echo "#define HAVE_LINUX_SENDFILE 1" >>confdefs.h
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4043$as_echo "yes" >&6; }
4044else
4045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4046$as_echo "no" >&6; }
4047fi
4048rm -f conftest*
4049
4050
4051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in sys/socket.h" >&5
4052$as_echo_n "checking for sendfile in sys/socket.h... " >&6; }
4053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054/* end confdefs.h.  */
4055#include <sys/socket.h>
4056
4057_ACEOF
4058if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4059  $EGREP "sendfile" >/dev/null 2>&1; then :
4060
4061$as_echo "#define HAVE_BSD_SENDFILE 1" >>confdefs.h
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4063$as_echo "yes" >&6; }
4064else
4065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4066$as_echo "no" >&6; }
4067fi
4068rm -f conftest*
4069
4070
4071for ac_func in gethostent
4072do :
4073  ac_fn_c_check_func "$LINENO" "gethostent" "ac_cv_func_gethostent"
4074if test "x$ac_cv_func_gethostent" = xyes; then :
4075  cat >>confdefs.h <<_ACEOF
4076#define HAVE_GETHOSTENT 1
4077_ACEOF
4078
4079fi
4080done
4081
4082
4083for ac_func in accept4
4084do :
4085  ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4"
4086if test "x$ac_cv_func_accept4" = xyes; then :
4087  cat >>confdefs.h <<_ACEOF
4088#define HAVE_ACCEPT4 1
4089_ACEOF
4090
4091fi
4092done
4093
4094
4095case "$host" in
4096*-mingw* | *-msys*)
4097	EXTRA_SRCS="cbits/initWinSock.c, cbits/winSockErr.c, cbits/asyncAccept.c"
4098	EXTRA_LIBS=ws2_32
4099	;;
4100*-solaris2*)
4101	EXTRA_SRCS="cbits/ancilData.c"
4102	EXTRA_LIBS="nsl, socket"
4103	;;
4104*)
4105	EXTRA_SRCS="cbits/ancilData.c"
4106	EXTRA_LIBS=
4107	;;
4108esac
4109
4110
4111
4112
4113ac_config_files="$ac_config_files network.buildinfo"
4114
4115
4116cat >confcache <<\_ACEOF
4117# This file is a shell script that caches the results of configure
4118# tests run on this system so they can be shared between configure
4119# scripts and configure runs, see configure's option --config-cache.
4120# It is not useful on other systems.  If it contains results you don't
4121# want to keep, you may remove or edit it.
4122#
4123# config.status only pays attention to the cache file if you give it
4124# the --recheck option to rerun configure.
4125#
4126# `ac_cv_env_foo' variables (set or unset) will be overridden when
4127# loading this file, other *unset* `ac_cv_foo' will be assigned the
4128# following values.
4129
4130_ACEOF
4131
4132# The following way of writing the cache mishandles newlines in values,
4133# but we know of no workaround that is simple, portable, and efficient.
4134# So, we kill variables containing newlines.
4135# Ultrix sh set writes to stderr and can't be redirected directly,
4136# and sets the high bit in the cache file unless we assign to the vars.
4137(
4138  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4139    eval ac_val=\$$ac_var
4140    case $ac_val in #(
4141    *${as_nl}*)
4142      case $ac_var in #(
4143      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4144$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4145      esac
4146      case $ac_var in #(
4147      _ | IFS | as_nl) ;; #(
4148      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4149      *) { eval $ac_var=; unset $ac_var;} ;;
4150      esac ;;
4151    esac
4152  done
4153
4154  (set) 2>&1 |
4155    case $as_nl`(ac_space=' '; set) 2>&1` in #(
4156    *${as_nl}ac_space=\ *)
4157      # `set' does not quote correctly, so add quotes: double-quote
4158      # substitution turns \\\\ into \\, and sed turns \\ into \.
4159      sed -n \
4160	"s/'/'\\\\''/g;
4161	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4162      ;; #(
4163    *)
4164      # `set' quotes correctly as required by POSIX, so do not add quotes.
4165      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4166      ;;
4167    esac |
4168    sort
4169) |
4170  sed '
4171     /^ac_cv_env_/b end
4172     t clear
4173     :clear
4174     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4175     t end
4176     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4177     :end' >>confcache
4178if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4179  if test -w "$cache_file"; then
4180    if test "x$cache_file" != "x/dev/null"; then
4181      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4182$as_echo "$as_me: updating cache $cache_file" >&6;}
4183      if test ! -f "$cache_file" || test -h "$cache_file"; then
4184	cat confcache >"$cache_file"
4185      else
4186        case $cache_file in #(
4187        */* | ?:*)
4188	  mv -f confcache "$cache_file"$$ &&
4189	  mv -f "$cache_file"$$ "$cache_file" ;; #(
4190        *)
4191	  mv -f confcache "$cache_file" ;;
4192	esac
4193      fi
4194    fi
4195  else
4196    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4197$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4198  fi
4199fi
4200rm -f confcache
4201
4202test "x$prefix" = xNONE && prefix=$ac_default_prefix
4203# Let make expand exec_prefix.
4204test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4205
4206DEFS=-DHAVE_CONFIG_H
4207
4208ac_libobjs=
4209ac_ltlibobjs=
4210U=
4211for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4212  # 1. Remove the extension, and $U if already installed.
4213  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4214  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4215  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
4216  #    will be set to the directory where LIBOBJS objects are built.
4217  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4218  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4219done
4220LIBOBJS=$ac_libobjs
4221
4222LTLIBOBJS=$ac_ltlibobjs
4223
4224
4225
4226: "${CONFIG_STATUS=./config.status}"
4227ac_write_fail=0
4228ac_clean_files_save=$ac_clean_files
4229ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4230{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4231$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4232as_write_fail=0
4233cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4234#! $SHELL
4235# Generated by $as_me.
4236# Run this file to recreate the current configuration.
4237# Compiler output produced by configure, useful for debugging
4238# configure, is in config.log if it exists.
4239
4240debug=false
4241ac_cs_recheck=false
4242ac_cs_silent=false
4243
4244SHELL=\${CONFIG_SHELL-$SHELL}
4245export SHELL
4246_ASEOF
4247cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4248## -------------------- ##
4249## M4sh Initialization. ##
4250## -------------------- ##
4251
4252# Be more Bourne compatible
4253DUALCASE=1; export DUALCASE # for MKS sh
4254if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4255  emulate sh
4256  NULLCMD=:
4257  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4258  # is contrary to our usage.  Disable this feature.
4259  alias -g '${1+"$@"}'='"$@"'
4260  setopt NO_GLOB_SUBST
4261else
4262  case `(set -o) 2>/dev/null` in #(
4263  *posix*) :
4264    set -o posix ;; #(
4265  *) :
4266     ;;
4267esac
4268fi
4269
4270
4271as_nl='
4272'
4273export as_nl
4274# Printing a long string crashes Solaris 7 /usr/bin/printf.
4275as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4276as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4277as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4278# Prefer a ksh shell builtin over an external printf program on Solaris,
4279# but without wasting forks for bash or zsh.
4280if test -z "$BASH_VERSION$ZSH_VERSION" \
4281    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4282  as_echo='print -r --'
4283  as_echo_n='print -rn --'
4284elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4285  as_echo='printf %s\n'
4286  as_echo_n='printf %s'
4287else
4288  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4289    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4290    as_echo_n='/usr/ucb/echo -n'
4291  else
4292    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4293    as_echo_n_body='eval
4294      arg=$1;
4295      case $arg in #(
4296      *"$as_nl"*)
4297	expr "X$arg" : "X\\(.*\\)$as_nl";
4298	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4299      esac;
4300      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4301    '
4302    export as_echo_n_body
4303    as_echo_n='sh -c $as_echo_n_body as_echo'
4304  fi
4305  export as_echo_body
4306  as_echo='sh -c $as_echo_body as_echo'
4307fi
4308
4309# The user is always right.
4310if test "${PATH_SEPARATOR+set}" != set; then
4311  PATH_SEPARATOR=:
4312  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4313    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4314      PATH_SEPARATOR=';'
4315  }
4316fi
4317
4318
4319# IFS
4320# We need space, tab and new line, in precisely that order.  Quoting is
4321# there to prevent editors from complaining about space-tab.
4322# (If _AS_PATH_WALK were called with IFS unset, it would disable word
4323# splitting by setting IFS to empty value.)
4324IFS=" ""	$as_nl"
4325
4326# Find who we are.  Look in the path if we contain no directory separator.
4327as_myself=
4328case $0 in #((
4329  *[\\/]* ) as_myself=$0 ;;
4330  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331for as_dir in $PATH
4332do
4333  IFS=$as_save_IFS
4334  test -z "$as_dir" && as_dir=.
4335    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4336  done
4337IFS=$as_save_IFS
4338
4339     ;;
4340esac
4341# We did not find ourselves, most probably we were run as `sh COMMAND'
4342# in which case we are not to be found in the path.
4343if test "x$as_myself" = x; then
4344  as_myself=$0
4345fi
4346if test ! -f "$as_myself"; then
4347  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4348  exit 1
4349fi
4350
4351# Unset variables that we do not need and which cause bugs (e.g. in
4352# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
4353# suppresses any "Segmentation fault" message there.  '((' could
4354# trigger a bug in pdksh 5.2.14.
4355for as_var in BASH_ENV ENV MAIL MAILPATH
4356do eval test x\${$as_var+set} = xset \
4357  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4358done
4359PS1='$ '
4360PS2='> '
4361PS4='+ '
4362
4363# NLS nuisances.
4364LC_ALL=C
4365export LC_ALL
4366LANGUAGE=C
4367export LANGUAGE
4368
4369# CDPATH.
4370(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4371
4372
4373# as_fn_error STATUS ERROR [LINENO LOG_FD]
4374# ----------------------------------------
4375# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4376# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4377# script with STATUS, using 1 if that was 0.
4378as_fn_error ()
4379{
4380  as_status=$1; test $as_status -eq 0 && as_status=1
4381  if test "$4"; then
4382    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4383    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4384  fi
4385  $as_echo "$as_me: error: $2" >&2
4386  as_fn_exit $as_status
4387} # as_fn_error
4388
4389
4390# as_fn_set_status STATUS
4391# -----------------------
4392# Set $? to STATUS, without forking.
4393as_fn_set_status ()
4394{
4395  return $1
4396} # as_fn_set_status
4397
4398# as_fn_exit STATUS
4399# -----------------
4400# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4401as_fn_exit ()
4402{
4403  set +e
4404  as_fn_set_status $1
4405  exit $1
4406} # as_fn_exit
4407
4408# as_fn_unset VAR
4409# ---------------
4410# Portably unset VAR.
4411as_fn_unset ()
4412{
4413  { eval $1=; unset $1;}
4414}
4415as_unset=as_fn_unset
4416# as_fn_append VAR VALUE
4417# ----------------------
4418# Append the text in VALUE to the end of the definition contained in VAR. Take
4419# advantage of any shell optimizations that allow amortized linear growth over
4420# repeated appends, instead of the typical quadratic growth present in naive
4421# implementations.
4422if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4423  eval 'as_fn_append ()
4424  {
4425    eval $1+=\$2
4426  }'
4427else
4428  as_fn_append ()
4429  {
4430    eval $1=\$$1\$2
4431  }
4432fi # as_fn_append
4433
4434# as_fn_arith ARG...
4435# ------------------
4436# Perform arithmetic evaluation on the ARGs, and store the result in the
4437# global $as_val. Take advantage of shells that can avoid forks. The arguments
4438# must be portable across $(()) and expr.
4439if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4440  eval 'as_fn_arith ()
4441  {
4442    as_val=$(( $* ))
4443  }'
4444else
4445  as_fn_arith ()
4446  {
4447    as_val=`expr "$@" || test $? -eq 1`
4448  }
4449fi # as_fn_arith
4450
4451
4452if expr a : '\(a\)' >/dev/null 2>&1 &&
4453   test "X`expr 00001 : '.*\(...\)'`" = X001; then
4454  as_expr=expr
4455else
4456  as_expr=false
4457fi
4458
4459if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4460  as_basename=basename
4461else
4462  as_basename=false
4463fi
4464
4465if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4466  as_dirname=dirname
4467else
4468  as_dirname=false
4469fi
4470
4471as_me=`$as_basename -- "$0" ||
4472$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4473	 X"$0" : 'X\(//\)$' \| \
4474	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4475$as_echo X/"$0" |
4476    sed '/^.*\/\([^/][^/]*\)\/*$/{
4477	    s//\1/
4478	    q
4479	  }
4480	  /^X\/\(\/\/\)$/{
4481	    s//\1/
4482	    q
4483	  }
4484	  /^X\/\(\/\).*/{
4485	    s//\1/
4486	    q
4487	  }
4488	  s/.*/./; q'`
4489
4490# Avoid depending upon Character Ranges.
4491as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4492as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4493as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4494as_cr_digits='0123456789'
4495as_cr_alnum=$as_cr_Letters$as_cr_digits
4496
4497ECHO_C= ECHO_N= ECHO_T=
4498case `echo -n x` in #(((((
4499-n*)
4500  case `echo 'xy\c'` in
4501  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
4502  xy)  ECHO_C='\c';;
4503  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
4504       ECHO_T='	';;
4505  esac;;
4506*)
4507  ECHO_N='-n';;
4508esac
4509
4510rm -f conf$$ conf$$.exe conf$$.file
4511if test -d conf$$.dir; then
4512  rm -f conf$$.dir/conf$$.file
4513else
4514  rm -f conf$$.dir
4515  mkdir conf$$.dir 2>/dev/null
4516fi
4517if (echo >conf$$.file) 2>/dev/null; then
4518  if ln -s conf$$.file conf$$ 2>/dev/null; then
4519    as_ln_s='ln -s'
4520    # ... but there are two gotchas:
4521    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4522    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4523    # In both cases, we have to default to `cp -pR'.
4524    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4525      as_ln_s='cp -pR'
4526  elif ln conf$$.file conf$$ 2>/dev/null; then
4527    as_ln_s=ln
4528  else
4529    as_ln_s='cp -pR'
4530  fi
4531else
4532  as_ln_s='cp -pR'
4533fi
4534rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4535rmdir conf$$.dir 2>/dev/null
4536
4537
4538# as_fn_mkdir_p
4539# -------------
4540# Create "$as_dir" as a directory, including parents if necessary.
4541as_fn_mkdir_p ()
4542{
4543
4544  case $as_dir in #(
4545  -*) as_dir=./$as_dir;;
4546  esac
4547  test -d "$as_dir" || eval $as_mkdir_p || {
4548    as_dirs=
4549    while :; do
4550      case $as_dir in #(
4551      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4552      *) as_qdir=$as_dir;;
4553      esac
4554      as_dirs="'$as_qdir' $as_dirs"
4555      as_dir=`$as_dirname -- "$as_dir" ||
4556$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4557	 X"$as_dir" : 'X\(//\)[^/]' \| \
4558	 X"$as_dir" : 'X\(//\)$' \| \
4559	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4560$as_echo X"$as_dir" |
4561    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4562	    s//\1/
4563	    q
4564	  }
4565	  /^X\(\/\/\)[^/].*/{
4566	    s//\1/
4567	    q
4568	  }
4569	  /^X\(\/\/\)$/{
4570	    s//\1/
4571	    q
4572	  }
4573	  /^X\(\/\).*/{
4574	    s//\1/
4575	    q
4576	  }
4577	  s/.*/./; q'`
4578      test -d "$as_dir" && break
4579    done
4580    test -z "$as_dirs" || eval "mkdir $as_dirs"
4581  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4582
4583
4584} # as_fn_mkdir_p
4585if mkdir -p . 2>/dev/null; then
4586  as_mkdir_p='mkdir -p "$as_dir"'
4587else
4588  test -d ./-p && rmdir ./-p
4589  as_mkdir_p=false
4590fi
4591
4592
4593# as_fn_executable_p FILE
4594# -----------------------
4595# Test if FILE is an executable regular file.
4596as_fn_executable_p ()
4597{
4598  test -f "$1" && test -x "$1"
4599} # as_fn_executable_p
4600as_test_x='test -x'
4601as_executable_p=as_fn_executable_p
4602
4603# Sed expression to map a string onto a valid CPP name.
4604as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4605
4606# Sed expression to map a string onto a valid variable name.
4607as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4608
4609
4610exec 6>&1
4611## ----------------------------------- ##
4612## Main body of $CONFIG_STATUS script. ##
4613## ----------------------------------- ##
4614_ASEOF
4615test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4616
4617cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4618# Save the log message, to keep $0 and so on meaningful, and to
4619# report actual input values of CONFIG_FILES etc. instead of their
4620# values after options handling.
4621ac_log="
4622This file was extended by Haskell network package $as_me 2.8.0.1, which was
4623generated by GNU Autoconf 2.69.  Invocation command line was
4624
4625  CONFIG_FILES    = $CONFIG_FILES
4626  CONFIG_HEADERS  = $CONFIG_HEADERS
4627  CONFIG_LINKS    = $CONFIG_LINKS
4628  CONFIG_COMMANDS = $CONFIG_COMMANDS
4629  $ $0 $@
4630
4631on `(hostname || uname -n) 2>/dev/null | sed 1q`
4632"
4633
4634_ACEOF
4635
4636case $ac_config_files in *"
4637"*) set x $ac_config_files; shift; ac_config_files=$*;;
4638esac
4639
4640case $ac_config_headers in *"
4641"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4642esac
4643
4644
4645cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4646# Files that config.status was made for.
4647config_files="$ac_config_files"
4648config_headers="$ac_config_headers"
4649
4650_ACEOF
4651
4652cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4653ac_cs_usage="\
4654\`$as_me' instantiates files and other configuration actions
4655from templates according to the current configuration.  Unless the files
4656and actions are specified as TAGs, all are instantiated by default.
4657
4658Usage: $0 [OPTION]... [TAG]...
4659
4660  -h, --help       print this help, then exit
4661  -V, --version    print version number and configuration settings, then exit
4662      --config     print configuration, then exit
4663  -q, --quiet, --silent
4664                   do not print progress messages
4665  -d, --debug      don't remove temporary files
4666      --recheck    update $as_me by reconfiguring in the same conditions
4667      --file=FILE[:TEMPLATE]
4668                   instantiate the configuration file FILE
4669      --header=FILE[:TEMPLATE]
4670                   instantiate the configuration header FILE
4671
4672Configuration files:
4673$config_files
4674
4675Configuration headers:
4676$config_headers
4677
4678Report bugs to <libraries@haskell.org>."
4679
4680_ACEOF
4681cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4682ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4683ac_cs_version="\\
4684Haskell network package config.status 2.8.0.1
4685configured by $0, generated by GNU Autoconf 2.69,
4686  with options \\"\$ac_cs_config\\"
4687
4688Copyright (C) 2012 Free Software Foundation, Inc.
4689This config.status script is free software; the Free Software Foundation
4690gives unlimited permission to copy, distribute and modify it."
4691
4692ac_pwd='$ac_pwd'
4693srcdir='$srcdir'
4694test -n "\$AWK" || AWK=awk
4695_ACEOF
4696
4697cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4698# The default lists apply if the user does not specify any file.
4699ac_need_defaults=:
4700while test $# != 0
4701do
4702  case $1 in
4703  --*=?*)
4704    ac_option=`expr "X$1" : 'X\([^=]*\)='`
4705    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4706    ac_shift=:
4707    ;;
4708  --*=)
4709    ac_option=`expr "X$1" : 'X\([^=]*\)='`
4710    ac_optarg=
4711    ac_shift=:
4712    ;;
4713  *)
4714    ac_option=$1
4715    ac_optarg=$2
4716    ac_shift=shift
4717    ;;
4718  esac
4719
4720  case $ac_option in
4721  # Handling of the options.
4722  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4723    ac_cs_recheck=: ;;
4724  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4725    $as_echo "$ac_cs_version"; exit ;;
4726  --config | --confi | --conf | --con | --co | --c )
4727    $as_echo "$ac_cs_config"; exit ;;
4728  --debug | --debu | --deb | --de | --d | -d )
4729    debug=: ;;
4730  --file | --fil | --fi | --f )
4731    $ac_shift
4732    case $ac_optarg in
4733    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4734    '') as_fn_error $? "missing file argument" ;;
4735    esac
4736    as_fn_append CONFIG_FILES " '$ac_optarg'"
4737    ac_need_defaults=false;;
4738  --header | --heade | --head | --hea )
4739    $ac_shift
4740    case $ac_optarg in
4741    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4742    esac
4743    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4744    ac_need_defaults=false;;
4745  --he | --h)
4746    # Conflict between --help and --header
4747    as_fn_error $? "ambiguous option: \`$1'
4748Try \`$0 --help' for more information.";;
4749  --help | --hel | -h )
4750    $as_echo "$ac_cs_usage"; exit ;;
4751  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4752  | -silent | --silent | --silen | --sile | --sil | --si | --s)
4753    ac_cs_silent=: ;;
4754
4755  # This is an error.
4756  -*) as_fn_error $? "unrecognized option: \`$1'
4757Try \`$0 --help' for more information." ;;
4758
4759  *) as_fn_append ac_config_targets " $1"
4760     ac_need_defaults=false ;;
4761
4762  esac
4763  shift
4764done
4765
4766ac_configure_extra_args=
4767
4768if $ac_cs_silent; then
4769  exec 6>/dev/null
4770  ac_configure_extra_args="$ac_configure_extra_args --silent"
4771fi
4772
4773_ACEOF
4774cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4775if \$ac_cs_recheck; then
4776  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4777  shift
4778  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4779  CONFIG_SHELL='$SHELL'
4780  export CONFIG_SHELL
4781  exec "\$@"
4782fi
4783
4784_ACEOF
4785cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4786exec 5>>config.log
4787{
4788  echo
4789  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4790## Running $as_me. ##
4791_ASBOX
4792  $as_echo "$ac_log"
4793} >&5
4794
4795_ACEOF
4796cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4797_ACEOF
4798
4799cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4800
4801# Handling of arguments.
4802for ac_config_target in $ac_config_targets
4803do
4804  case $ac_config_target in
4805    "include/HsNetworkConfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/HsNetworkConfig.h" ;;
4806    "network.buildinfo") CONFIG_FILES="$CONFIG_FILES network.buildinfo" ;;
4807
4808  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4809  esac
4810done
4811
4812
4813# If the user did not use the arguments to specify the items to instantiate,
4814# then the envvar interface is used.  Set only those that are not.
4815# We use the long form for the default assignment because of an extremely
4816# bizarre bug on SunOS 4.1.3.
4817if $ac_need_defaults; then
4818  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4819  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4820fi
4821
4822# Have a temporary directory for convenience.  Make it in the build tree
4823# simply because there is no reason against having it here, and in addition,
4824# creating and moving files from /tmp can sometimes cause problems.
4825# Hook for its removal unless debugging.
4826# Note that there is a small window in which the directory will not be cleaned:
4827# after its creation but before its name has been assigned to `$tmp'.
4828$debug ||
4829{
4830  tmp= ac_tmp=
4831  trap 'exit_status=$?
4832  : "${ac_tmp:=$tmp}"
4833  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4834' 0
4835  trap 'as_fn_exit 1' 1 2 13 15
4836}
4837# Create a (secure) tmp directory for tmp files.
4838
4839{
4840  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4841  test -d "$tmp"
4842}  ||
4843{
4844  tmp=./conf$$-$RANDOM
4845  (umask 077 && mkdir "$tmp")
4846} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4847ac_tmp=$tmp
4848
4849# Set up the scripts for CONFIG_FILES section.
4850# No need to generate them if there are no CONFIG_FILES.
4851# This happens for instance with `./config.status config.h'.
4852if test -n "$CONFIG_FILES"; then
4853
4854
4855ac_cr=`echo X | tr X '\015'`
4856# On cygwin, bash can eat \r inside `` if the user requested igncr.
4857# But we know of no other shell where ac_cr would be empty at this
4858# point, so we can use a bashism as a fallback.
4859if test "x$ac_cr" = x; then
4860  eval ac_cr=\$\'\\r\'
4861fi
4862ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4863if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4864  ac_cs_awk_cr='\\r'
4865else
4866  ac_cs_awk_cr=$ac_cr
4867fi
4868
4869echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4870_ACEOF
4871
4872
4873{
4874  echo "cat >conf$$subs.awk <<_ACEOF" &&
4875  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4876  echo "_ACEOF"
4877} >conf$$subs.sh ||
4878  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4879ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4880ac_delim='%!_!# '
4881for ac_last_try in false false false false false :; do
4882  . ./conf$$subs.sh ||
4883    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4884
4885  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4886  if test $ac_delim_n = $ac_delim_num; then
4887    break
4888  elif $ac_last_try; then
4889    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4890  else
4891    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4892  fi
4893done
4894rm -f conf$$subs.sh
4895
4896cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4897cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4898_ACEOF
4899sed -n '
4900h
4901s/^/S["/; s/!.*/"]=/
4902p
4903g
4904s/^[^!]*!//
4905:repl
4906t repl
4907s/'"$ac_delim"'$//
4908t delim
4909:nl
4910h
4911s/\(.\{148\}\)..*/\1/
4912t more1
4913s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4914p
4915n
4916b repl
4917:more1
4918s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4919p
4920g
4921s/.\{148\}//
4922t nl
4923:delim
4924h
4925s/\(.\{148\}\)..*/\1/
4926t more2
4927s/["\\]/\\&/g; s/^/"/; s/$/"/
4928p
4929b
4930:more2
4931s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4932p
4933g
4934s/.\{148\}//
4935t delim
4936' <conf$$subs.awk | sed '
4937/^[^""]/{
4938  N
4939  s/\n//
4940}
4941' >>$CONFIG_STATUS || ac_write_fail=1
4942rm -f conf$$subs.awk
4943cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4944_ACAWK
4945cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4946  for (key in S) S_is_set[key] = 1
4947  FS = ""
4948
4949}
4950{
4951  line = $ 0
4952  nfields = split(line, field, "@")
4953  substed = 0
4954  len = length(field[1])
4955  for (i = 2; i < nfields; i++) {
4956    key = field[i]
4957    keylen = length(key)
4958    if (S_is_set[key]) {
4959      value = S[key]
4960      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4961      len += length(value) + length(field[++i])
4962      substed = 1
4963    } else
4964      len += 1 + keylen
4965  }
4966
4967  print line
4968}
4969
4970_ACAWK
4971_ACEOF
4972cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4973if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4974  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4975else
4976  cat
4977fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4978  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4979_ACEOF
4980
4981# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4982# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4983# trailing colons and then remove the whole line if VPATH becomes empty
4984# (actually we leave an empty line to preserve line numbers).
4985if test "x$srcdir" = x.; then
4986  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
4987h
4988s///
4989s/^/:/
4990s/[	 ]*$/:/
4991s/:\$(srcdir):/:/g
4992s/:\${srcdir}:/:/g
4993s/:@srcdir@:/:/g
4994s/^:*//
4995s/:*$//
4996x
4997s/\(=[	 ]*\).*/\1/
4998G
4999s/\n//
5000s/^[^=]*=[	 ]*$//
5001}'
5002fi
5003
5004cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5005fi # test -n "$CONFIG_FILES"
5006
5007# Set up the scripts for CONFIG_HEADERS section.
5008# No need to generate them if there are no CONFIG_HEADERS.
5009# This happens for instance with `./config.status Makefile'.
5010if test -n "$CONFIG_HEADERS"; then
5011cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5012BEGIN {
5013_ACEOF
5014
5015# Transform confdefs.h into an awk script `defines.awk', embedded as
5016# here-document in config.status, that substitutes the proper values into
5017# config.h.in to produce config.h.
5018
5019# Create a delimiter string that does not exist in confdefs.h, to ease
5020# handling of long lines.
5021ac_delim='%!_!# '
5022for ac_last_try in false false :; do
5023  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5024  if test -z "$ac_tt"; then
5025    break
5026  elif $ac_last_try; then
5027    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5028  else
5029    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5030  fi
5031done
5032
5033# For the awk script, D is an array of macro values keyed by name,
5034# likewise P contains macro parameters if any.  Preserve backslash
5035# newline sequences.
5036
5037ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5038sed -n '
5039s/.\{148\}/&'"$ac_delim"'/g
5040t rset
5041:rset
5042s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
5043t def
5044d
5045:def
5046s/\\$//
5047t bsnl
5048s/["\\]/\\&/g
5049s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
5050D["\1"]=" \3"/p
5051s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
5052d
5053:bsnl
5054s/["\\]/\\&/g
5055s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
5056D["\1"]=" \3\\\\\\n"\\/p
5057t cont
5058s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5059t cont
5060d
5061:cont
5062n
5063s/.\{148\}/&'"$ac_delim"'/g
5064t clear
5065:clear
5066s/\\$//
5067t bsnlc
5068s/["\\]/\\&/g; s/^/"/; s/$/"/p
5069d
5070:bsnlc
5071s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5072b cont
5073' <confdefs.h | sed '
5074s/'"$ac_delim"'/"\\\
5075"/g' >>$CONFIG_STATUS || ac_write_fail=1
5076
5077cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5078  for (key in D) D_is_set[key] = 1
5079  FS = ""
5080}
5081/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5082  line = \$ 0
5083  split(line, arg, " ")
5084  if (arg[1] == "#") {
5085    defundef = arg[2]
5086    mac1 = arg[3]
5087  } else {
5088    defundef = substr(arg[1], 2)
5089    mac1 = arg[2]
5090  }
5091  split(mac1, mac2, "(") #)
5092  macro = mac2[1]
5093  prefix = substr(line, 1, index(line, defundef) - 1)
5094  if (D_is_set[macro]) {
5095    # Preserve the white space surrounding the "#".
5096    print prefix "define", macro P[macro] D[macro]
5097    next
5098  } else {
5099    # Replace #undef with comments.  This is necessary, for example,
5100    # in the case of _POSIX_SOURCE, which is predefined and required
5101    # on some systems where configure will not decide to define it.
5102    if (defundef == "undef") {
5103      print "/*", prefix defundef, macro, "*/"
5104      next
5105    }
5106  }
5107}
5108{ print }
5109_ACAWK
5110_ACEOF
5111cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5112  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5113fi # test -n "$CONFIG_HEADERS"
5114
5115
5116eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
5117shift
5118for ac_tag
5119do
5120  case $ac_tag in
5121  :[FHLC]) ac_mode=$ac_tag; continue;;
5122  esac
5123  case $ac_mode$ac_tag in
5124  :[FHL]*:*);;
5125  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5126  :[FH]-) ac_tag=-:-;;
5127  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5128  esac
5129  ac_save_IFS=$IFS
5130  IFS=:
5131  set x $ac_tag
5132  IFS=$ac_save_IFS
5133  shift
5134  ac_file=$1
5135  shift
5136
5137  case $ac_mode in
5138  :L) ac_source=$1;;
5139  :[FH])
5140    ac_file_inputs=
5141    for ac_f
5142    do
5143      case $ac_f in
5144      -) ac_f="$ac_tmp/stdin";;
5145      *) # Look for the file first in the build tree, then in the source tree
5146	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
5147	 # because $ac_f cannot contain `:'.
5148	 test -f "$ac_f" ||
5149	   case $ac_f in
5150	   [\\/$]*) false;;
5151	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5152	   esac ||
5153	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5154      esac
5155      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5156      as_fn_append ac_file_inputs " '$ac_f'"
5157    done
5158
5159    # Let's still pretend it is `configure' which instantiates (i.e., don't
5160    # use $as_me), people would be surprised to read:
5161    #    /* config.h.  Generated by config.status.  */
5162    configure_input='Generated from '`
5163	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5164	`' by configure.'
5165    if test x"$ac_file" != x-; then
5166      configure_input="$ac_file.  $configure_input"
5167      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5168$as_echo "$as_me: creating $ac_file" >&6;}
5169    fi
5170    # Neutralize special characters interpreted by sed in replacement strings.
5171    case $configure_input in #(
5172    *\&* | *\|* | *\\* )
5173       ac_sed_conf_input=`$as_echo "$configure_input" |
5174       sed 's/[\\\\&|]/\\\\&/g'`;; #(
5175    *) ac_sed_conf_input=$configure_input;;
5176    esac
5177
5178    case $ac_tag in
5179    *:-:* | *:-) cat >"$ac_tmp/stdin" \
5180      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5181    esac
5182    ;;
5183  esac
5184
5185  ac_dir=`$as_dirname -- "$ac_file" ||
5186$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5187	 X"$ac_file" : 'X\(//\)[^/]' \| \
5188	 X"$ac_file" : 'X\(//\)$' \| \
5189	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5190$as_echo X"$ac_file" |
5191    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5192	    s//\1/
5193	    q
5194	  }
5195	  /^X\(\/\/\)[^/].*/{
5196	    s//\1/
5197	    q
5198	  }
5199	  /^X\(\/\/\)$/{
5200	    s//\1/
5201	    q
5202	  }
5203	  /^X\(\/\).*/{
5204	    s//\1/
5205	    q
5206	  }
5207	  s/.*/./; q'`
5208  as_dir="$ac_dir"; as_fn_mkdir_p
5209  ac_builddir=.
5210
5211case "$ac_dir" in
5212.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5213*)
5214  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5215  # A ".." for each directory in $ac_dir_suffix.
5216  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5217  case $ac_top_builddir_sub in
5218  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5219  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5220  esac ;;
5221esac
5222ac_abs_top_builddir=$ac_pwd
5223ac_abs_builddir=$ac_pwd$ac_dir_suffix
5224# for backward compatibility:
5225ac_top_builddir=$ac_top_build_prefix
5226
5227case $srcdir in
5228  .)  # We are building in place.
5229    ac_srcdir=.
5230    ac_top_srcdir=$ac_top_builddir_sub
5231    ac_abs_top_srcdir=$ac_pwd ;;
5232  [\\/]* | ?:[\\/]* )  # Absolute name.
5233    ac_srcdir=$srcdir$ac_dir_suffix;
5234    ac_top_srcdir=$srcdir
5235    ac_abs_top_srcdir=$srcdir ;;
5236  *) # Relative name.
5237    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5238    ac_top_srcdir=$ac_top_build_prefix$srcdir
5239    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5240esac
5241ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5242
5243
5244  case $ac_mode in
5245  :F)
5246  #
5247  # CONFIG_FILE
5248  #
5249
5250_ACEOF
5251
5252cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5253# If the template does not know about datarootdir, expand it.
5254# FIXME: This hack should be removed a few years after 2.60.
5255ac_datarootdir_hack=; ac_datarootdir_seen=
5256ac_sed_dataroot='
5257/datarootdir/ {
5258  p
5259  q
5260}
5261/@datadir@/p
5262/@docdir@/p
5263/@infodir@/p
5264/@localedir@/p
5265/@mandir@/p'
5266case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5267*datarootdir*) ac_datarootdir_seen=yes;;
5268*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5269  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5270$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5271_ACEOF
5272cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5273  ac_datarootdir_hack='
5274  s&@datadir@&$datadir&g
5275  s&@docdir@&$docdir&g
5276  s&@infodir@&$infodir&g
5277  s&@localedir@&$localedir&g
5278  s&@mandir@&$mandir&g
5279  s&\\\${datarootdir}&$datarootdir&g' ;;
5280esac
5281_ACEOF
5282
5283# Neutralize VPATH when `$srcdir' = `.'.
5284# Shell code in configure.ac might set extrasub.
5285# FIXME: do we really want to maintain this feature?
5286cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5287ac_sed_extra="$ac_vpsub
5288$extrasub
5289_ACEOF
5290cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5291:t
5292/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5293s|@configure_input@|$ac_sed_conf_input|;t t
5294s&@top_builddir@&$ac_top_builddir_sub&;t t
5295s&@top_build_prefix@&$ac_top_build_prefix&;t t
5296s&@srcdir@&$ac_srcdir&;t t
5297s&@abs_srcdir@&$ac_abs_srcdir&;t t
5298s&@top_srcdir@&$ac_top_srcdir&;t t
5299s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5300s&@builddir@&$ac_builddir&;t t
5301s&@abs_builddir@&$ac_abs_builddir&;t t
5302s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5303$ac_datarootdir_hack
5304"
5305eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5306  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5307
5308test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5309  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5310  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
5311      "$ac_tmp/out"`; test -z "$ac_out"; } &&
5312  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5313which seems to be undefined.  Please make sure it is defined" >&5
5314$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5315which seems to be undefined.  Please make sure it is defined" >&2;}
5316
5317  rm -f "$ac_tmp/stdin"
5318  case $ac_file in
5319  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5320  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5321  esac \
5322  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5323 ;;
5324  :H)
5325  #
5326  # CONFIG_HEADER
5327  #
5328  if test x"$ac_file" != x-; then
5329    {
5330      $as_echo "/* $configure_input  */" \
5331      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5332    } >"$ac_tmp/config.h" \
5333      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5334    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5335      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5336$as_echo "$as_me: $ac_file is unchanged" >&6;}
5337    else
5338      rm -f "$ac_file"
5339      mv "$ac_tmp/config.h" "$ac_file" \
5340	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
5341    fi
5342  else
5343    $as_echo "/* $configure_input  */" \
5344      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5345      || as_fn_error $? "could not create -" "$LINENO" 5
5346  fi
5347 ;;
5348
5349
5350  esac
5351
5352done # for ac_tag
5353
5354
5355as_fn_exit 0
5356_ACEOF
5357ac_clean_files=$ac_clean_files_save
5358
5359test $ac_write_fail = 0 ||
5360  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5361
5362
5363# configure is writing to config.log, and then calls config.status.
5364# config.status does its own redirection, appending to config.log.
5365# Unfortunately, on DOS this fails, as config.log is still kept open
5366# by configure, so config.status won't be able to write to it; its
5367# output is simply discarded.  So we exec the FD to /dev/null,
5368# effectively closing config.log, so it can be properly (re)opened and
5369# appended to by config.status.  When coming back to configure, we
5370# need to make the FD available again.
5371if test "$no_create" != yes; then
5372  ac_cs_success=:
5373  ac_config_status_args=
5374  test "$silent" = yes &&
5375    ac_config_status_args="$ac_config_status_args --quiet"
5376  exec 5>/dev/null
5377  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5378  exec 5>>config.log
5379  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5380  # would make configure fail if this is the last instruction.
5381  $ac_cs_success || as_fn_exit 1
5382fi
5383if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5384  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5385$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5386fi
5387
5388