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