1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libnbcompat noversion.
4#
5# Report bugs to <lib-bug-people@NetBSD.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: lib-bug-people@NetBSD.org about your system, including
271$0: any error possibly output before this message. Then
272$0: install a modern shell, or manually run the script
273$0: under such a shell if you do have one."
274  fi
275  exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293  { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302  return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310  set +e
311  as_fn_set_status $1
312  exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321  case $as_dir in #(
322  -*) as_dir=./$as_dir;;
323  esac
324  test -d "$as_dir" || eval $as_mkdir_p || {
325    as_dirs=
326    while :; do
327      case $as_dir in #(
328      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329      *) as_qdir=$as_dir;;
330      esac
331      as_dirs="'$as_qdir' $as_dirs"
332      as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334	 X"$as_dir" : 'X\(//\)[^/]' \| \
335	 X"$as_dir" : 'X\(//\)$' \| \
336	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339	    s//\1/
340	    q
341	  }
342	  /^X\(\/\/\)[^/].*/{
343	    s//\1/
344	    q
345	  }
346	  /^X\(\/\/\)$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\).*/{
351	    s//\1/
352	    q
353	  }
354	  s/.*/./; q'`
355      test -d "$as_dir" && break
356    done
357    test -z "$as_dirs" || eval "mkdir $as_dirs"
358  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368  test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377  eval 'as_fn_append ()
378  {
379    eval $1+=\$2
380  }'
381else
382  as_fn_append ()
383  {
384    eval $1=\$$1\$2
385  }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394  eval 'as_fn_arith ()
395  {
396    as_val=$(( $* ))
397  }'
398else
399  as_fn_arith ()
400  {
401    as_val=`expr "$@" || test $? -eq 1`
402  }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413  as_status=$1; test $as_status -eq 0 && as_status=1
414  if test "$4"; then
415    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417  fi
418  $as_echo "$as_me: error: $2" >&2
419  as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423   test "X`expr 00001 : '.*\(...\)'`" = X001; then
424  as_expr=expr
425else
426  as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430  as_basename=basename
431else
432  as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436  as_dirname=dirname
437else
438  as_dirname=false
439fi
440
441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443	 X"$0" : 'X\(//\)$' \| \
444	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446    sed '/^.*\/\([^/][^/]*\)\/*$/{
447	    s//\1/
448	    q
449	  }
450	  /^X\/\(\/\/\)$/{
451	    s//\1/
452	    q
453	  }
454	  /^X\/\(\/\).*/{
455	    s//\1/
456	    q
457	  }
458	  s/.*/./; q'`
459
460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468  as_lineno_1=$LINENO as_lineno_1a=$LINENO
469  as_lineno_2=$LINENO as_lineno_2a=$LINENO
470  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473  sed -n '
474    p
475    /[$]LINENO/=
476  ' <$as_myself |
477    sed '
478      s/[$]LINENO.*/&-/
479      t lineno
480      b
481      :lineno
482      N
483      :loop
484      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485      t loop
486      s/-\n.*//
487    ' >$as_me.lineno &&
488  chmod +x "$as_me.lineno" ||
489    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492  # already done that, so ensure we don't try to do so again and fall
493  # in an infinite loop.  This has already happened in practice.
494  _as_can_reexec=no; export _as_can_reexec
495  # Don't try to exec as it changes $[0], causing all sort of problems
496  # (the dirname of $[0] is not the place where we might find the
497  # original and so on.  Autoconf is especially sensitive to this).
498  . "./$as_me.lineno"
499  # Exit status is that of the last command.
500  exit
501}
502
503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506  case `echo 'xy\c'` in
507  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
508  xy)  ECHO_C='\c';;
509  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510       ECHO_T='	';;
511  esac;;
512*)
513  ECHO_N='-n';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518  rm -f conf$$.dir/conf$$.file
519else
520  rm -f conf$$.dir
521  mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524  if ln -s conf$$.file conf$$ 2>/dev/null; then
525    as_ln_s='ln -s'
526    # ... but there are two gotchas:
527    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529    # In both cases, we have to default to `cp -pR'.
530    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531      as_ln_s='cp -pR'
532  elif ln conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s=ln
534  else
535    as_ln_s='cp -pR'
536  fi
537else
538  as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544  as_mkdir_p='mkdir -p "$as_dir"'
545else
546  test -d ./-p && rmdir ./-p
547  as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
562
563# Name of the host.
564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='libnbcompat'
582PACKAGE_TARNAME='libnbcompat'
583PACKAGE_VERSION='noversion'
584PACKAGE_STRING='libnbcompat noversion'
585PACKAGE_BUGREPORT='lib-bug-people@NetBSD.org'
586PACKAGE_URL=''
587
588# Factoring default headers for most tests.
589ac_includes_default="\
590#include <stdio.h>
591#ifdef HAVE_SYS_TYPES_H
592# include <sys/types.h>
593#endif
594#ifdef HAVE_SYS_STAT_H
595# include <sys/stat.h>
596#endif
597#ifdef STDC_HEADERS
598# include <stdlib.h>
599# include <stddef.h>
600#else
601# ifdef HAVE_STDLIB_H
602#  include <stdlib.h>
603# endif
604#endif
605#ifdef HAVE_STRING_H
606# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607#  include <memory.h>
608# endif
609# include <string.h>
610#endif
611#ifdef HAVE_STRINGS_H
612# include <strings.h>
613#endif
614#ifdef HAVE_INTTYPES_H
615# include <inttypes.h>
616#endif
617#ifdef HAVE_STDINT_H
618# include <stdint.h>
619#endif
620#ifdef HAVE_UNISTD_H
621# include <unistd.h>
622#endif"
623
624ac_subst_vars='LTLIBOBJS
625LIBOBJS
626CC_WNO_STRINGOP_TRUNCATION
627CC_WNO_STRINGOP_OVERFLOW
628CC_WNO_RETURN_LOCAL_ADDR
629CC_WNO_MAYBE_UNINITIALIZED
630CC_WNO_IMPLICIT_FALLTHROUGH
631CC_WNO_FORMAT_TRUNCATION
632CC_WNO_FORMAT_OVERFLOW
633CC_WNO_ERROR_ADDRESS_OF_PACKED_MEMBER
634CC_WNO_CAST_FUNCTION_TYPE
635CC_WNO_ADDRESS_OF_PACKED_MEMBER
636CC_NO_CPP_PRECOMP
637ALLOCA
638BSHELL
639EGREP
640GREP
641CPP
642OBJEXT
643EXEEXT
644ac_ct_CC
645CPPFLAGS
646LDFLAGS
647CFLAGS
648CC
649target_alias
650host_alias
651build_alias
652LIBS
653ECHO_T
654ECHO_N
655ECHO_C
656DEFS
657mandir
658localedir
659libdir
660psdir
661pdfdir
662dvidir
663htmldir
664infodir
665docdir
666oldincludedir
667includedir
668localstatedir
669sharedstatedir
670sysconfdir
671datadir
672datarootdir
673libexecdir
674sbindir
675bindir
676program_transform_name
677prefix
678exec_prefix
679PACKAGE_URL
680PACKAGE_BUGREPORT
681PACKAGE_STRING
682PACKAGE_VERSION
683PACKAGE_TARNAME
684PACKAGE_NAME
685PATH_SEPARATOR
686SHELL'
687ac_subst_files=''
688ac_user_opts='
689enable_option_checking
690'
691      ac_precious_vars='build_alias
692host_alias
693target_alias
694CC
695CFLAGS
696LDFLAGS
697LIBS
698CPPFLAGS
699CPP'
700
701
702# Initialize some variables set by options.
703ac_init_help=
704ac_init_version=false
705ac_unrecognized_opts=
706ac_unrecognized_sep=
707# The variables have the same names as the options, with
708# dashes changed to underlines.
709cache_file=/dev/null
710exec_prefix=NONE
711no_create=
712no_recursion=
713prefix=NONE
714program_prefix=NONE
715program_suffix=NONE
716program_transform_name=s,x,x,
717silent=
718site=
719srcdir=
720verbose=
721x_includes=NONE
722x_libraries=NONE
723
724# Installation directory options.
725# These are left unexpanded so users can "make install exec_prefix=/foo"
726# and all the variables that are supposed to be based on exec_prefix
727# by default will actually change.
728# Use braces instead of parens because sh, perl, etc. also accept them.
729# (The list follows the same order as the GNU Coding Standards.)
730bindir='${exec_prefix}/bin'
731sbindir='${exec_prefix}/sbin'
732libexecdir='${exec_prefix}/libexec'
733datarootdir='${prefix}/share'
734datadir='${datarootdir}'
735sysconfdir='${prefix}/etc'
736sharedstatedir='${prefix}/com'
737localstatedir='${prefix}/var'
738includedir='${prefix}/include'
739oldincludedir='/usr/include'
740docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
741infodir='${datarootdir}/info'
742htmldir='${docdir}'
743dvidir='${docdir}'
744pdfdir='${docdir}'
745psdir='${docdir}'
746libdir='${exec_prefix}/lib'
747localedir='${datarootdir}/locale'
748mandir='${datarootdir}/man'
749
750ac_prev=
751ac_dashdash=
752for ac_option
753do
754  # If the previous option needs an argument, assign it.
755  if test -n "$ac_prev"; then
756    eval $ac_prev=\$ac_option
757    ac_prev=
758    continue
759  fi
760
761  case $ac_option in
762  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
763  *=)   ac_optarg= ;;
764  *)    ac_optarg=yes ;;
765  esac
766
767  # Accept the important Cygnus configure options, so we can diagnose typos.
768
769  case $ac_dashdash$ac_option in
770  --)
771    ac_dashdash=yes ;;
772
773  -bindir | --bindir | --bindi | --bind | --bin | --bi)
774    ac_prev=bindir ;;
775  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
776    bindir=$ac_optarg ;;
777
778  -build | --build | --buil | --bui | --bu)
779    ac_prev=build_alias ;;
780  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
781    build_alias=$ac_optarg ;;
782
783  -cache-file | --cache-file | --cache-fil | --cache-fi \
784  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
785    ac_prev=cache_file ;;
786  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
787  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
788    cache_file=$ac_optarg ;;
789
790  --config-cache | -C)
791    cache_file=config.cache ;;
792
793  -datadir | --datadir | --datadi | --datad)
794    ac_prev=datadir ;;
795  -datadir=* | --datadir=* | --datadi=* | --datad=*)
796    datadir=$ac_optarg ;;
797
798  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
799  | --dataroo | --dataro | --datar)
800    ac_prev=datarootdir ;;
801  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
802  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
803    datarootdir=$ac_optarg ;;
804
805  -disable-* | --disable-*)
806    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
807    # Reject names that are not valid shell variable names.
808    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
809      as_fn_error $? "invalid feature name: $ac_useropt"
810    ac_useropt_orig=$ac_useropt
811    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
812    case $ac_user_opts in
813      *"
814"enable_$ac_useropt"
815"*) ;;
816      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
817	 ac_unrecognized_sep=', ';;
818    esac
819    eval enable_$ac_useropt=no ;;
820
821  -docdir | --docdir | --docdi | --doc | --do)
822    ac_prev=docdir ;;
823  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
824    docdir=$ac_optarg ;;
825
826  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
827    ac_prev=dvidir ;;
828  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
829    dvidir=$ac_optarg ;;
830
831  -enable-* | --enable-*)
832    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
833    # Reject names that are not valid shell variable names.
834    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
835      as_fn_error $? "invalid feature name: $ac_useropt"
836    ac_useropt_orig=$ac_useropt
837    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
838    case $ac_user_opts in
839      *"
840"enable_$ac_useropt"
841"*) ;;
842      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
843	 ac_unrecognized_sep=', ';;
844    esac
845    eval enable_$ac_useropt=\$ac_optarg ;;
846
847  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
848  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
849  | --exec | --exe | --ex)
850    ac_prev=exec_prefix ;;
851  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
852  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
853  | --exec=* | --exe=* | --ex=*)
854    exec_prefix=$ac_optarg ;;
855
856  -gas | --gas | --ga | --g)
857    # Obsolete; use --with-gas.
858    with_gas=yes ;;
859
860  -help | --help | --hel | --he | -h)
861    ac_init_help=long ;;
862  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
863    ac_init_help=recursive ;;
864  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
865    ac_init_help=short ;;
866
867  -host | --host | --hos | --ho)
868    ac_prev=host_alias ;;
869  -host=* | --host=* | --hos=* | --ho=*)
870    host_alias=$ac_optarg ;;
871
872  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
873    ac_prev=htmldir ;;
874  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
875  | --ht=*)
876    htmldir=$ac_optarg ;;
877
878  -includedir | --includedir | --includedi | --included | --include \
879  | --includ | --inclu | --incl | --inc)
880    ac_prev=includedir ;;
881  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
882  | --includ=* | --inclu=* | --incl=* | --inc=*)
883    includedir=$ac_optarg ;;
884
885  -infodir | --infodir | --infodi | --infod | --info | --inf)
886    ac_prev=infodir ;;
887  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
888    infodir=$ac_optarg ;;
889
890  -libdir | --libdir | --libdi | --libd)
891    ac_prev=libdir ;;
892  -libdir=* | --libdir=* | --libdi=* | --libd=*)
893    libdir=$ac_optarg ;;
894
895  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
896  | --libexe | --libex | --libe)
897    ac_prev=libexecdir ;;
898  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
899  | --libexe=* | --libex=* | --libe=*)
900    libexecdir=$ac_optarg ;;
901
902  -localedir | --localedir | --localedi | --localed | --locale)
903    ac_prev=localedir ;;
904  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
905    localedir=$ac_optarg ;;
906
907  -localstatedir | --localstatedir | --localstatedi | --localstated \
908  | --localstate | --localstat | --localsta | --localst | --locals)
909    ac_prev=localstatedir ;;
910  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
911  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
912    localstatedir=$ac_optarg ;;
913
914  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
915    ac_prev=mandir ;;
916  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
917    mandir=$ac_optarg ;;
918
919  -nfp | --nfp | --nf)
920    # Obsolete; use --without-fp.
921    with_fp=no ;;
922
923  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
924  | --no-cr | --no-c | -n)
925    no_create=yes ;;
926
927  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
928  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
929    no_recursion=yes ;;
930
931  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
932  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
933  | --oldin | --oldi | --old | --ol | --o)
934    ac_prev=oldincludedir ;;
935  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
936  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
937  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
938    oldincludedir=$ac_optarg ;;
939
940  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
941    ac_prev=prefix ;;
942  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
943    prefix=$ac_optarg ;;
944
945  -program-prefix | --program-prefix | --program-prefi | --program-pref \
946  | --program-pre | --program-pr | --program-p)
947    ac_prev=program_prefix ;;
948  -program-prefix=* | --program-prefix=* | --program-prefi=* \
949  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
950    program_prefix=$ac_optarg ;;
951
952  -program-suffix | --program-suffix | --program-suffi | --program-suff \
953  | --program-suf | --program-su | --program-s)
954    ac_prev=program_suffix ;;
955  -program-suffix=* | --program-suffix=* | --program-suffi=* \
956  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
957    program_suffix=$ac_optarg ;;
958
959  -program-transform-name | --program-transform-name \
960  | --program-transform-nam | --program-transform-na \
961  | --program-transform-n | --program-transform- \
962  | --program-transform | --program-transfor \
963  | --program-transfo | --program-transf \
964  | --program-trans | --program-tran \
965  | --progr-tra | --program-tr | --program-t)
966    ac_prev=program_transform_name ;;
967  -program-transform-name=* | --program-transform-name=* \
968  | --program-transform-nam=* | --program-transform-na=* \
969  | --program-transform-n=* | --program-transform-=* \
970  | --program-transform=* | --program-transfor=* \
971  | --program-transfo=* | --program-transf=* \
972  | --program-trans=* | --program-tran=* \
973  | --progr-tra=* | --program-tr=* | --program-t=*)
974    program_transform_name=$ac_optarg ;;
975
976  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
977    ac_prev=pdfdir ;;
978  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
979    pdfdir=$ac_optarg ;;
980
981  -psdir | --psdir | --psdi | --psd | --ps)
982    ac_prev=psdir ;;
983  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
984    psdir=$ac_optarg ;;
985
986  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
987  | -silent | --silent | --silen | --sile | --sil)
988    silent=yes ;;
989
990  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
991    ac_prev=sbindir ;;
992  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
993  | --sbi=* | --sb=*)
994    sbindir=$ac_optarg ;;
995
996  -sharedstatedir | --sharedstatedir | --sharedstatedi \
997  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
998  | --sharedst | --shareds | --shared | --share | --shar \
999  | --sha | --sh)
1000    ac_prev=sharedstatedir ;;
1001  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1002  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1003  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1004  | --sha=* | --sh=*)
1005    sharedstatedir=$ac_optarg ;;
1006
1007  -site | --site | --sit)
1008    ac_prev=site ;;
1009  -site=* | --site=* | --sit=*)
1010    site=$ac_optarg ;;
1011
1012  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1013    ac_prev=srcdir ;;
1014  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1015    srcdir=$ac_optarg ;;
1016
1017  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1018  | --syscon | --sysco | --sysc | --sys | --sy)
1019    ac_prev=sysconfdir ;;
1020  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1021  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1022    sysconfdir=$ac_optarg ;;
1023
1024  -target | --target | --targe | --targ | --tar | --ta | --t)
1025    ac_prev=target_alias ;;
1026  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1027    target_alias=$ac_optarg ;;
1028
1029  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1030    verbose=yes ;;
1031
1032  -version | --version | --versio | --versi | --vers | -V)
1033    ac_init_version=: ;;
1034
1035  -with-* | --with-*)
1036    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1037    # Reject names that are not valid shell variable names.
1038    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1039      as_fn_error $? "invalid package name: $ac_useropt"
1040    ac_useropt_orig=$ac_useropt
1041    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042    case $ac_user_opts in
1043      *"
1044"with_$ac_useropt"
1045"*) ;;
1046      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1047	 ac_unrecognized_sep=', ';;
1048    esac
1049    eval with_$ac_useropt=\$ac_optarg ;;
1050
1051  -without-* | --without-*)
1052    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1053    # Reject names that are not valid shell variable names.
1054    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055      as_fn_error $? "invalid package name: $ac_useropt"
1056    ac_useropt_orig=$ac_useropt
1057    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058    case $ac_user_opts in
1059      *"
1060"with_$ac_useropt"
1061"*) ;;
1062      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1063	 ac_unrecognized_sep=', ';;
1064    esac
1065    eval with_$ac_useropt=no ;;
1066
1067  --x)
1068    # Obsolete; use --with-x.
1069    with_x=yes ;;
1070
1071  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1072  | --x-incl | --x-inc | --x-in | --x-i)
1073    ac_prev=x_includes ;;
1074  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1075  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1076    x_includes=$ac_optarg ;;
1077
1078  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1079  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1080    ac_prev=x_libraries ;;
1081  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1082  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1083    x_libraries=$ac_optarg ;;
1084
1085  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1086Try \`$0 --help' for more information"
1087    ;;
1088
1089  *=*)
1090    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1091    # Reject names that are not valid shell variable names.
1092    case $ac_envvar in #(
1093      '' | [0-9]* | *[!_$as_cr_alnum]* )
1094      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1095    esac
1096    eval $ac_envvar=\$ac_optarg
1097    export $ac_envvar ;;
1098
1099  *)
1100    # FIXME: should be removed in autoconf 3.0.
1101    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1102    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1103      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1104    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1105    ;;
1106
1107  esac
1108done
1109
1110if test -n "$ac_prev"; then
1111  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1112  as_fn_error $? "missing argument to $ac_option"
1113fi
1114
1115if test -n "$ac_unrecognized_opts"; then
1116  case $enable_option_checking in
1117    no) ;;
1118    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1119    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1120  esac
1121fi
1122
1123# Check all directory arguments for consistency.
1124for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1125		datadir sysconfdir sharedstatedir localstatedir includedir \
1126		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1127		libdir localedir mandir
1128do
1129  eval ac_val=\$$ac_var
1130  # Remove trailing slashes.
1131  case $ac_val in
1132    */ )
1133      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1134      eval $ac_var=\$ac_val;;
1135  esac
1136  # Be sure to have absolute directory names.
1137  case $ac_val in
1138    [\\/$]* | ?:[\\/]* )  continue;;
1139    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1140  esac
1141  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1142done
1143
1144# There might be people who depend on the old broken behavior: `$host'
1145# used to hold the argument of --host etc.
1146# FIXME: To remove some day.
1147build=$build_alias
1148host=$host_alias
1149target=$target_alias
1150
1151# FIXME: To remove some day.
1152if test "x$host_alias" != x; then
1153  if test "x$build_alias" = x; then
1154    cross_compiling=maybe
1155  elif test "x$build_alias" != "x$host_alias"; then
1156    cross_compiling=yes
1157  fi
1158fi
1159
1160ac_tool_prefix=
1161test -n "$host_alias" && ac_tool_prefix=$host_alias-
1162
1163test "$silent" = yes && exec 6>/dev/null
1164
1165
1166ac_pwd=`pwd` && test -n "$ac_pwd" &&
1167ac_ls_di=`ls -di .` &&
1168ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1169  as_fn_error $? "working directory cannot be determined"
1170test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1171  as_fn_error $? "pwd does not report name of working directory"
1172
1173
1174# Find the source files, if location was not specified.
1175if test -z "$srcdir"; then
1176  ac_srcdir_defaulted=yes
1177  # Try the directory containing this script, then the parent directory.
1178  ac_confdir=`$as_dirname -- "$as_myself" ||
1179$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1180	 X"$as_myself" : 'X\(//\)[^/]' \| \
1181	 X"$as_myself" : 'X\(//\)$' \| \
1182	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1183$as_echo X"$as_myself" |
1184    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1185	    s//\1/
1186	    q
1187	  }
1188	  /^X\(\/\/\)[^/].*/{
1189	    s//\1/
1190	    q
1191	  }
1192	  /^X\(\/\/\)$/{
1193	    s//\1/
1194	    q
1195	  }
1196	  /^X\(\/\).*/{
1197	    s//\1/
1198	    q
1199	  }
1200	  s/.*/./; q'`
1201  srcdir=$ac_confdir
1202  if test ! -r "$srcdir/$ac_unique_file"; then
1203    srcdir=..
1204  fi
1205else
1206  ac_srcdir_defaulted=no
1207fi
1208if test ! -r "$srcdir/$ac_unique_file"; then
1209  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1210  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1211fi
1212ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1213ac_abs_confdir=`(
1214	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1215	pwd)`
1216# When building in place, set srcdir=.
1217if test "$ac_abs_confdir" = "$ac_pwd"; then
1218  srcdir=.
1219fi
1220# Remove unnecessary trailing slashes from srcdir.
1221# Double slashes in file names in object file debugging info
1222# mess up M-x gdb in Emacs.
1223case $srcdir in
1224*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1225esac
1226for ac_var in $ac_precious_vars; do
1227  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1228  eval ac_env_${ac_var}_value=\$${ac_var}
1229  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1230  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1231done
1232
1233#
1234# Report the --help message.
1235#
1236if test "$ac_init_help" = "long"; then
1237  # Omit some internal or obsolete options to make the list less imposing.
1238  # This message is too long to be a string in the A/UX 3.1 sh.
1239  cat <<_ACEOF
1240\`configure' configures libnbcompat noversion to adapt to many kinds of systems.
1241
1242Usage: $0 [OPTION]... [VAR=VALUE]...
1243
1244To assign environment variables (e.g., CC, CFLAGS...), specify them as
1245VAR=VALUE.  See below for descriptions of some of the useful variables.
1246
1247Defaults for the options are specified in brackets.
1248
1249Configuration:
1250  -h, --help              display this help and exit
1251      --help=short        display options specific to this package
1252      --help=recursive    display the short help of all the included packages
1253  -V, --version           display version information and exit
1254  -q, --quiet, --silent   do not print \`checking ...' messages
1255      --cache-file=FILE   cache test results in FILE [disabled]
1256  -C, --config-cache      alias for \`--cache-file=config.cache'
1257  -n, --no-create         do not create output files
1258      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1259
1260Installation directories:
1261  --prefix=PREFIX         install architecture-independent files in PREFIX
1262                          [$ac_default_prefix]
1263  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1264                          [PREFIX]
1265
1266By default, \`make install' will install all the files in
1267\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1268an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1269for instance \`--prefix=\$HOME'.
1270
1271For better control, use the options below.
1272
1273Fine tuning of the installation directories:
1274  --bindir=DIR            user executables [EPREFIX/bin]
1275  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1276  --libexecdir=DIR        program executables [EPREFIX/libexec]
1277  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1278  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1279  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1280  --libdir=DIR            object code libraries [EPREFIX/lib]
1281  --includedir=DIR        C header files [PREFIX/include]
1282  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1283  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1284  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1285  --infodir=DIR           info documentation [DATAROOTDIR/info]
1286  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1287  --mandir=DIR            man documentation [DATAROOTDIR/man]
1288  --docdir=DIR            documentation root [DATAROOTDIR/doc/libnbcompat]
1289  --htmldir=DIR           html documentation [DOCDIR]
1290  --dvidir=DIR            dvi documentation [DOCDIR]
1291  --pdfdir=DIR            pdf documentation [DOCDIR]
1292  --psdir=DIR             ps documentation [DOCDIR]
1293_ACEOF
1294
1295  cat <<\_ACEOF
1296_ACEOF
1297fi
1298
1299if test -n "$ac_init_help"; then
1300  case $ac_init_help in
1301     short | recursive ) echo "Configuration of libnbcompat noversion:";;
1302   esac
1303  cat <<\_ACEOF
1304
1305Some influential environment variables:
1306  CC          C compiler command
1307  CFLAGS      C compiler flags
1308  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1309              nonstandard directory <lib dir>
1310  LIBS        libraries to pass to the linker, e.g. -l<library>
1311  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1312              you have headers in a nonstandard directory <include dir>
1313  CPP         C preprocessor
1314
1315Use these variables to override the choices made by `configure' or to help
1316it to find libraries and programs with nonstandard names/locations.
1317
1318Report bugs to <lib-bug-people@NetBSD.org>.
1319_ACEOF
1320ac_status=$?
1321fi
1322
1323if test "$ac_init_help" = "recursive"; then
1324  # If there are subdirs, report their specific --help.
1325  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1326    test -d "$ac_dir" ||
1327      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1328      continue
1329    ac_builddir=.
1330
1331case "$ac_dir" in
1332.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1333*)
1334  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1335  # A ".." for each directory in $ac_dir_suffix.
1336  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1337  case $ac_top_builddir_sub in
1338  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1339  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1340  esac ;;
1341esac
1342ac_abs_top_builddir=$ac_pwd
1343ac_abs_builddir=$ac_pwd$ac_dir_suffix
1344# for backward compatibility:
1345ac_top_builddir=$ac_top_build_prefix
1346
1347case $srcdir in
1348  .)  # We are building in place.
1349    ac_srcdir=.
1350    ac_top_srcdir=$ac_top_builddir_sub
1351    ac_abs_top_srcdir=$ac_pwd ;;
1352  [\\/]* | ?:[\\/]* )  # Absolute name.
1353    ac_srcdir=$srcdir$ac_dir_suffix;
1354    ac_top_srcdir=$srcdir
1355    ac_abs_top_srcdir=$srcdir ;;
1356  *) # Relative name.
1357    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1358    ac_top_srcdir=$ac_top_build_prefix$srcdir
1359    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1360esac
1361ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1362
1363    cd "$ac_dir" || { ac_status=$?; continue; }
1364    # Check for guested configure.
1365    if test -f "$ac_srcdir/configure.gnu"; then
1366      echo &&
1367      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1368    elif test -f "$ac_srcdir/configure"; then
1369      echo &&
1370      $SHELL "$ac_srcdir/configure" --help=recursive
1371    else
1372      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1373    fi || ac_status=$?
1374    cd "$ac_pwd" || { ac_status=$?; break; }
1375  done
1376fi
1377
1378test -n "$ac_init_help" && exit $ac_status
1379if $ac_init_version; then
1380  cat <<\_ACEOF
1381libnbcompat configure noversion
1382generated by GNU Autoconf 2.69
1383
1384Copyright (C) 2012 Free Software Foundation, Inc.
1385This configure script is free software; the Free Software Foundation
1386gives unlimited permission to copy, distribute and modify it.
1387_ACEOF
1388  exit
1389fi
1390
1391## ------------------------ ##
1392## Autoconf initialization. ##
1393## ------------------------ ##
1394
1395# ac_fn_c_try_compile LINENO
1396# --------------------------
1397# Try to compile conftest.$ac_ext, and return whether this succeeded.
1398ac_fn_c_try_compile ()
1399{
1400  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1401  rm -f conftest.$ac_objext
1402  if { { ac_try="$ac_compile"
1403case "(($ac_try" in
1404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1405  *) ac_try_echo=$ac_try;;
1406esac
1407eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1408$as_echo "$ac_try_echo"; } >&5
1409  (eval "$ac_compile") 2>conftest.err
1410  ac_status=$?
1411  if test -s conftest.err; then
1412    grep -v '^ *+' conftest.err >conftest.er1
1413    cat conftest.er1 >&5
1414    mv -f conftest.er1 conftest.err
1415  fi
1416  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1417  test $ac_status = 0; } && {
1418	 test -z "$ac_c_werror_flag" ||
1419	 test ! -s conftest.err
1420       } && test -s conftest.$ac_objext; then :
1421  ac_retval=0
1422else
1423  $as_echo "$as_me: failed program was:" >&5
1424sed 's/^/| /' conftest.$ac_ext >&5
1425
1426	ac_retval=1
1427fi
1428  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1429  as_fn_set_status $ac_retval
1430
1431} # ac_fn_c_try_compile
1432
1433# ac_fn_c_try_cpp LINENO
1434# ----------------------
1435# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1436ac_fn_c_try_cpp ()
1437{
1438  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1439  if { { ac_try="$ac_cpp conftest.$ac_ext"
1440case "(($ac_try" in
1441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1442  *) ac_try_echo=$ac_try;;
1443esac
1444eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1445$as_echo "$ac_try_echo"; } >&5
1446  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1447  ac_status=$?
1448  if test -s conftest.err; then
1449    grep -v '^ *+' conftest.err >conftest.er1
1450    cat conftest.er1 >&5
1451    mv -f conftest.er1 conftest.err
1452  fi
1453  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1454  test $ac_status = 0; } > conftest.i && {
1455	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1456	 test ! -s conftest.err
1457       }; then :
1458  ac_retval=0
1459else
1460  $as_echo "$as_me: failed program was:" >&5
1461sed 's/^/| /' conftest.$ac_ext >&5
1462
1463    ac_retval=1
1464fi
1465  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1466  as_fn_set_status $ac_retval
1467
1468} # ac_fn_c_try_cpp
1469
1470# ac_fn_c_try_run LINENO
1471# ----------------------
1472# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1473# that executables *can* be run.
1474ac_fn_c_try_run ()
1475{
1476  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1477  if { { ac_try="$ac_link"
1478case "(($ac_try" in
1479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1480  *) ac_try_echo=$ac_try;;
1481esac
1482eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1483$as_echo "$ac_try_echo"; } >&5
1484  (eval "$ac_link") 2>&5
1485  ac_status=$?
1486  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1487  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1488  { { case "(($ac_try" in
1489  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1490  *) ac_try_echo=$ac_try;;
1491esac
1492eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1493$as_echo "$ac_try_echo"; } >&5
1494  (eval "$ac_try") 2>&5
1495  ac_status=$?
1496  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1497  test $ac_status = 0; }; }; then :
1498  ac_retval=0
1499else
1500  $as_echo "$as_me: program exited with status $ac_status" >&5
1501       $as_echo "$as_me: failed program was:" >&5
1502sed 's/^/| /' conftest.$ac_ext >&5
1503
1504       ac_retval=$ac_status
1505fi
1506  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1507  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1508  as_fn_set_status $ac_retval
1509
1510} # ac_fn_c_try_run
1511
1512# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1513# -------------------------------------------------------
1514# Tests whether HEADER exists and can be compiled using the include files in
1515# INCLUDES, setting the cache variable VAR accordingly.
1516ac_fn_c_check_header_compile ()
1517{
1518  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1519  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1520$as_echo_n "checking for $2... " >&6; }
1521if eval \${$3+:} false; then :
1522  $as_echo_n "(cached) " >&6
1523else
1524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1525/* end confdefs.h.  */
1526$4
1527#include <$2>
1528_ACEOF
1529if ac_fn_c_try_compile "$LINENO"; then :
1530  eval "$3=yes"
1531else
1532  eval "$3=no"
1533fi
1534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1535fi
1536eval ac_res=\$$3
1537	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1538$as_echo "$ac_res" >&6; }
1539  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1540
1541} # ac_fn_c_check_header_compile
1542
1543# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1544# -------------------------------------------------------
1545# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1546# the include files in INCLUDES and setting the cache variable VAR
1547# accordingly.
1548ac_fn_c_check_header_mongrel ()
1549{
1550  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551  if eval \${$3+:} false; then :
1552  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1553$as_echo_n "checking for $2... " >&6; }
1554if eval \${$3+:} false; then :
1555  $as_echo_n "(cached) " >&6
1556fi
1557eval ac_res=\$$3
1558	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1559$as_echo "$ac_res" >&6; }
1560else
1561  # Is the header compilable?
1562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1563$as_echo_n "checking $2 usability... " >&6; }
1564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1565/* end confdefs.h.  */
1566$4
1567#include <$2>
1568_ACEOF
1569if ac_fn_c_try_compile "$LINENO"; then :
1570  ac_header_compiler=yes
1571else
1572  ac_header_compiler=no
1573fi
1574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1576$as_echo "$ac_header_compiler" >&6; }
1577
1578# Is the header present?
1579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1580$as_echo_n "checking $2 presence... " >&6; }
1581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1582/* end confdefs.h.  */
1583#include <$2>
1584_ACEOF
1585if ac_fn_c_try_cpp "$LINENO"; then :
1586  ac_header_preproc=yes
1587else
1588  ac_header_preproc=no
1589fi
1590rm -f conftest.err conftest.i conftest.$ac_ext
1591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1592$as_echo "$ac_header_preproc" >&6; }
1593
1594# So?  What about this header?
1595case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1596  yes:no: )
1597    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1598$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1599    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1600$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1601    ;;
1602  no:yes:* )
1603    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1604$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1605    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1606$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1607    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1608$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1609    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1610$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1611    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1612$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1613( $as_echo "## ---------------------------------------- ##
1614## Report this to lib-bug-people@NetBSD.org ##
1615## ---------------------------------------- ##"
1616     ) | sed "s/^/$as_me: WARNING:     /" >&2
1617    ;;
1618esac
1619  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1620$as_echo_n "checking for $2... " >&6; }
1621if eval \${$3+:} false; then :
1622  $as_echo_n "(cached) " >&6
1623else
1624  eval "$3=\$ac_header_compiler"
1625fi
1626eval ac_res=\$$3
1627	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1628$as_echo "$ac_res" >&6; }
1629fi
1630  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1631
1632} # ac_fn_c_check_header_mongrel
1633
1634# ac_fn_c_try_link LINENO
1635# -----------------------
1636# Try to link conftest.$ac_ext, and return whether this succeeded.
1637ac_fn_c_try_link ()
1638{
1639  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640  rm -f conftest.$ac_objext conftest$ac_exeext
1641  if { { ac_try="$ac_link"
1642case "(($ac_try" in
1643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644  *) ac_try_echo=$ac_try;;
1645esac
1646eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647$as_echo "$ac_try_echo"; } >&5
1648  (eval "$ac_link") 2>conftest.err
1649  ac_status=$?
1650  if test -s conftest.err; then
1651    grep -v '^ *+' conftest.err >conftest.er1
1652    cat conftest.er1 >&5
1653    mv -f conftest.er1 conftest.err
1654  fi
1655  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656  test $ac_status = 0; } && {
1657	 test -z "$ac_c_werror_flag" ||
1658	 test ! -s conftest.err
1659       } && test -s conftest$ac_exeext && {
1660	 test "$cross_compiling" = yes ||
1661	 test -x conftest$ac_exeext
1662       }; then :
1663  ac_retval=0
1664else
1665  $as_echo "$as_me: failed program was:" >&5
1666sed 's/^/| /' conftest.$ac_ext >&5
1667
1668	ac_retval=1
1669fi
1670  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1671  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1672  # interfere with the next link command; also delete a directory that is
1673  # left behind by Apple's compiler.  We do this before executing the actions.
1674  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1675  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676  as_fn_set_status $ac_retval
1677
1678} # ac_fn_c_try_link
1679
1680# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1681# -------------------------------------------
1682# Tests whether TYPE exists after having included INCLUDES, setting cache
1683# variable VAR accordingly.
1684ac_fn_c_check_type ()
1685{
1686  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1688$as_echo_n "checking for $2... " >&6; }
1689if eval \${$3+:} false; then :
1690  $as_echo_n "(cached) " >&6
1691else
1692  eval "$3=no"
1693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1694/* end confdefs.h.  */
1695$4
1696int
1697main ()
1698{
1699if (sizeof ($2))
1700	 return 0;
1701  ;
1702  return 0;
1703}
1704_ACEOF
1705if ac_fn_c_try_compile "$LINENO"; then :
1706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1707/* end confdefs.h.  */
1708$4
1709int
1710main ()
1711{
1712if (sizeof (($2)))
1713	    return 0;
1714  ;
1715  return 0;
1716}
1717_ACEOF
1718if ac_fn_c_try_compile "$LINENO"; then :
1719
1720else
1721  eval "$3=yes"
1722fi
1723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1724fi
1725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1726fi
1727eval ac_res=\$$3
1728	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729$as_echo "$ac_res" >&6; }
1730  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731
1732} # ac_fn_c_check_type
1733
1734# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1735# ----------------------------------------------------
1736# Tries to find if the field MEMBER exists in type AGGR, after including
1737# INCLUDES, setting cache variable VAR accordingly.
1738ac_fn_c_check_member ()
1739{
1740  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1742$as_echo_n "checking for $2.$3... " >&6; }
1743if eval \${$4+:} false; then :
1744  $as_echo_n "(cached) " >&6
1745else
1746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747/* end confdefs.h.  */
1748$5
1749int
1750main ()
1751{
1752static $2 ac_aggr;
1753if (ac_aggr.$3)
1754return 0;
1755  ;
1756  return 0;
1757}
1758_ACEOF
1759if ac_fn_c_try_compile "$LINENO"; then :
1760  eval "$4=yes"
1761else
1762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763/* end confdefs.h.  */
1764$5
1765int
1766main ()
1767{
1768static $2 ac_aggr;
1769if (sizeof ac_aggr.$3)
1770return 0;
1771  ;
1772  return 0;
1773}
1774_ACEOF
1775if ac_fn_c_try_compile "$LINENO"; then :
1776  eval "$4=yes"
1777else
1778  eval "$4=no"
1779fi
1780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1781fi
1782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1783fi
1784eval ac_res=\$$4
1785	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786$as_echo "$ac_res" >&6; }
1787  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788
1789} # ac_fn_c_check_member
1790
1791# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1792# ---------------------------------------------
1793# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1794# accordingly.
1795ac_fn_c_check_decl ()
1796{
1797  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798  as_decl_name=`echo $2|sed 's/ *(.*//'`
1799  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1800  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1801$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1802if eval \${$3+:} false; then :
1803  $as_echo_n "(cached) " >&6
1804else
1805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806/* end confdefs.h.  */
1807$4
1808int
1809main ()
1810{
1811#ifndef $as_decl_name
1812#ifdef __cplusplus
1813  (void) $as_decl_use;
1814#else
1815  (void) $as_decl_name;
1816#endif
1817#endif
1818
1819  ;
1820  return 0;
1821}
1822_ACEOF
1823if ac_fn_c_try_compile "$LINENO"; then :
1824  eval "$3=yes"
1825else
1826  eval "$3=no"
1827fi
1828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829fi
1830eval ac_res=\$$3
1831	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832$as_echo "$ac_res" >&6; }
1833  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834
1835} # ac_fn_c_check_decl
1836
1837# ac_fn_c_check_func LINENO FUNC VAR
1838# ----------------------------------
1839# Tests whether FUNC exists, setting the cache variable VAR accordingly
1840ac_fn_c_check_func ()
1841{
1842  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844$as_echo_n "checking for $2... " >&6; }
1845if eval \${$3+:} false; then :
1846  $as_echo_n "(cached) " >&6
1847else
1848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849/* end confdefs.h.  */
1850/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1851   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1852#define $2 innocuous_$2
1853
1854/* System header to define __stub macros and hopefully few prototypes,
1855    which can conflict with char $2 (); below.
1856    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1857    <limits.h> exists even on freestanding compilers.  */
1858
1859#ifdef __STDC__
1860# include <limits.h>
1861#else
1862# include <assert.h>
1863#endif
1864
1865#undef $2
1866
1867/* Override any GCC internal prototype to avoid an error.
1868   Use char because int might match the return type of a GCC
1869   builtin and then its argument prototype would still apply.  */
1870#ifdef __cplusplus
1871extern "C"
1872#endif
1873char $2 ();
1874/* The GNU C library defines this for functions which it implements
1875    to always fail with ENOSYS.  Some functions are actually named
1876    something starting with __ and the normal name is an alias.  */
1877#if defined __stub_$2 || defined __stub___$2
1878choke me
1879#endif
1880
1881int
1882main ()
1883{
1884return $2 ();
1885  ;
1886  return 0;
1887}
1888_ACEOF
1889if ac_fn_c_try_link "$LINENO"; then :
1890  eval "$3=yes"
1891else
1892  eval "$3=no"
1893fi
1894rm -f core conftest.err conftest.$ac_objext \
1895    conftest$ac_exeext conftest.$ac_ext
1896fi
1897eval ac_res=\$$3
1898	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899$as_echo "$ac_res" >&6; }
1900  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901
1902} # ac_fn_c_check_func
1903cat >config.log <<_ACEOF
1904This file contains any messages produced by compilers while
1905running configure, to aid debugging if configure makes a mistake.
1906
1907It was created by libnbcompat $as_me noversion, which was
1908generated by GNU Autoconf 2.69.  Invocation command line was
1909
1910  $ $0 $@
1911
1912_ACEOF
1913exec 5>>config.log
1914{
1915cat <<_ASUNAME
1916## --------- ##
1917## Platform. ##
1918## --------- ##
1919
1920hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1921uname -m = `(uname -m) 2>/dev/null || echo unknown`
1922uname -r = `(uname -r) 2>/dev/null || echo unknown`
1923uname -s = `(uname -s) 2>/dev/null || echo unknown`
1924uname -v = `(uname -v) 2>/dev/null || echo unknown`
1925
1926/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1927/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1928
1929/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1930/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1931/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1932/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1933/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1934/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1935/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1936
1937_ASUNAME
1938
1939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1940for as_dir in $PATH
1941do
1942  IFS=$as_save_IFS
1943  test -z "$as_dir" && as_dir=.
1944    $as_echo "PATH: $as_dir"
1945  done
1946IFS=$as_save_IFS
1947
1948} >&5
1949
1950cat >&5 <<_ACEOF
1951
1952
1953## ----------- ##
1954## Core tests. ##
1955## ----------- ##
1956
1957_ACEOF
1958
1959
1960# Keep a trace of the command line.
1961# Strip out --no-create and --no-recursion so they do not pile up.
1962# Strip out --silent because we don't want to record it for future runs.
1963# Also quote any args containing shell meta-characters.
1964# Make two passes to allow for proper duplicate-argument suppression.
1965ac_configure_args=
1966ac_configure_args0=
1967ac_configure_args1=
1968ac_must_keep_next=false
1969for ac_pass in 1 2
1970do
1971  for ac_arg
1972  do
1973    case $ac_arg in
1974    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1975    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1976    | -silent | --silent | --silen | --sile | --sil)
1977      continue ;;
1978    *\'*)
1979      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1980    esac
1981    case $ac_pass in
1982    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1983    2)
1984      as_fn_append ac_configure_args1 " '$ac_arg'"
1985      if test $ac_must_keep_next = true; then
1986	ac_must_keep_next=false # Got value, back to normal.
1987      else
1988	case $ac_arg in
1989	  *=* | --config-cache | -C | -disable-* | --disable-* \
1990	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1991	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1992	  | -with-* | --with-* | -without-* | --without-* | --x)
1993	    case "$ac_configure_args0 " in
1994	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1995	    esac
1996	    ;;
1997	  -* ) ac_must_keep_next=true ;;
1998	esac
1999      fi
2000      as_fn_append ac_configure_args " '$ac_arg'"
2001      ;;
2002    esac
2003  done
2004done
2005{ ac_configure_args0=; unset ac_configure_args0;}
2006{ ac_configure_args1=; unset ac_configure_args1;}
2007
2008# When interrupted or exit'd, cleanup temporary files, and complete
2009# config.log.  We remove comments because anyway the quotes in there
2010# would cause problems or look ugly.
2011# WARNING: Use '\'' to represent an apostrophe within the trap.
2012# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2013trap 'exit_status=$?
2014  # Save into config.log some information that might help in debugging.
2015  {
2016    echo
2017
2018    $as_echo "## ---------------- ##
2019## Cache variables. ##
2020## ---------------- ##"
2021    echo
2022    # The following way of writing the cache mishandles newlines in values,
2023(
2024  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2025    eval ac_val=\$$ac_var
2026    case $ac_val in #(
2027    *${as_nl}*)
2028      case $ac_var in #(
2029      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2030$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2031      esac
2032      case $ac_var in #(
2033      _ | IFS | as_nl) ;; #(
2034      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2035      *) { eval $ac_var=; unset $ac_var;} ;;
2036      esac ;;
2037    esac
2038  done
2039  (set) 2>&1 |
2040    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2041    *${as_nl}ac_space=\ *)
2042      sed -n \
2043	"s/'\''/'\''\\\\'\'''\''/g;
2044	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2045      ;; #(
2046    *)
2047      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2048      ;;
2049    esac |
2050    sort
2051)
2052    echo
2053
2054    $as_echo "## ----------------- ##
2055## Output variables. ##
2056## ----------------- ##"
2057    echo
2058    for ac_var in $ac_subst_vars
2059    do
2060      eval ac_val=\$$ac_var
2061      case $ac_val in
2062      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2063      esac
2064      $as_echo "$ac_var='\''$ac_val'\''"
2065    done | sort
2066    echo
2067
2068    if test -n "$ac_subst_files"; then
2069      $as_echo "## ------------------- ##
2070## File substitutions. ##
2071## ------------------- ##"
2072      echo
2073      for ac_var in $ac_subst_files
2074      do
2075	eval ac_val=\$$ac_var
2076	case $ac_val in
2077	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2078	esac
2079	$as_echo "$ac_var='\''$ac_val'\''"
2080      done | sort
2081      echo
2082    fi
2083
2084    if test -s confdefs.h; then
2085      $as_echo "## ----------- ##
2086## confdefs.h. ##
2087## ----------- ##"
2088      echo
2089      cat confdefs.h
2090      echo
2091    fi
2092    test "$ac_signal" != 0 &&
2093      $as_echo "$as_me: caught signal $ac_signal"
2094    $as_echo "$as_me: exit $exit_status"
2095  } >&5
2096  rm -f core *.core core.conftest.* &&
2097    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2098    exit $exit_status
2099' 0
2100for ac_signal in 1 2 13 15; do
2101  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2102done
2103ac_signal=0
2104
2105# confdefs.h avoids OS command line length limits that DEFS can exceed.
2106rm -f -r conftest* confdefs.h
2107
2108$as_echo "/* confdefs.h */" > confdefs.h
2109
2110# Predefined preprocessor variables.
2111
2112cat >>confdefs.h <<_ACEOF
2113#define PACKAGE_NAME "$PACKAGE_NAME"
2114_ACEOF
2115
2116cat >>confdefs.h <<_ACEOF
2117#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2118_ACEOF
2119
2120cat >>confdefs.h <<_ACEOF
2121#define PACKAGE_VERSION "$PACKAGE_VERSION"
2122_ACEOF
2123
2124cat >>confdefs.h <<_ACEOF
2125#define PACKAGE_STRING "$PACKAGE_STRING"
2126_ACEOF
2127
2128cat >>confdefs.h <<_ACEOF
2129#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2130_ACEOF
2131
2132cat >>confdefs.h <<_ACEOF
2133#define PACKAGE_URL "$PACKAGE_URL"
2134_ACEOF
2135
2136
2137# Let the site file select an alternate cache file if it wants to.
2138# Prefer an explicitly selected file to automatically selected ones.
2139ac_site_file1=NONE
2140ac_site_file2=NONE
2141if test -n "$CONFIG_SITE"; then
2142  # We do not want a PATH search for config.site.
2143  case $CONFIG_SITE in #((
2144    -*)  ac_site_file1=./$CONFIG_SITE;;
2145    */*) ac_site_file1=$CONFIG_SITE;;
2146    *)   ac_site_file1=./$CONFIG_SITE;;
2147  esac
2148elif test "x$prefix" != xNONE; then
2149  ac_site_file1=$prefix/share/config.site
2150  ac_site_file2=$prefix/etc/config.site
2151else
2152  ac_site_file1=$ac_default_prefix/share/config.site
2153  ac_site_file2=$ac_default_prefix/etc/config.site
2154fi
2155for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2156do
2157  test "x$ac_site_file" = xNONE && continue
2158  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2159    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2160$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2161    sed 's/^/| /' "$ac_site_file" >&5
2162    . "$ac_site_file" \
2163      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2165as_fn_error $? "failed to load site script $ac_site_file
2166See \`config.log' for more details" "$LINENO" 5; }
2167  fi
2168done
2169
2170if test -r "$cache_file"; then
2171  # Some versions of bash will fail to source /dev/null (special files
2172  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2173  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2174    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2175$as_echo "$as_me: loading cache $cache_file" >&6;}
2176    case $cache_file in
2177      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2178      *)                      . "./$cache_file";;
2179    esac
2180  fi
2181else
2182  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2183$as_echo "$as_me: creating cache $cache_file" >&6;}
2184  >$cache_file
2185fi
2186
2187# Check that the precious variables saved in the cache have kept the same
2188# value.
2189ac_cache_corrupted=false
2190for ac_var in $ac_precious_vars; do
2191  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2192  eval ac_new_set=\$ac_env_${ac_var}_set
2193  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2194  eval ac_new_val=\$ac_env_${ac_var}_value
2195  case $ac_old_set,$ac_new_set in
2196    set,)
2197      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2198$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2199      ac_cache_corrupted=: ;;
2200    ,set)
2201      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2202$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2203      ac_cache_corrupted=: ;;
2204    ,);;
2205    *)
2206      if test "x$ac_old_val" != "x$ac_new_val"; then
2207	# differences in whitespace do not lead to failure.
2208	ac_old_val_w=`echo x $ac_old_val`
2209	ac_new_val_w=`echo x $ac_new_val`
2210	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2211	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2212$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2213	  ac_cache_corrupted=:
2214	else
2215	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2216$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2217	  eval $ac_var=\$ac_old_val
2218	fi
2219	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2220$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2221	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2222$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2223      fi;;
2224  esac
2225  # Pass precious variables to config.status.
2226  if test "$ac_new_set" = set; then
2227    case $ac_new_val in
2228    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2229    *) ac_arg=$ac_var=$ac_new_val ;;
2230    esac
2231    case " $ac_configure_args " in
2232      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2233      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2234    esac
2235  fi
2236done
2237if $ac_cache_corrupted; then
2238  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2239$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2240  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2241$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2242  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2243fi
2244## -------------------- ##
2245## Main body of script. ##
2246## -------------------- ##
2247
2248ac_ext=c
2249ac_cpp='$CPP $CPPFLAGS'
2250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2252ac_compiler_gnu=$ac_cv_c_compiler_gnu
2253
2254
2255ac_config_headers="$ac_config_headers nbtool_config.h"
2256
2257ac_config_files="$ac_config_files defs.mk"
2258
2259
2260
2261
2262
2263
2264# Autoheader header and footer
2265
2266
2267
2268
2269
2270ac_ext=c
2271ac_cpp='$CPP $CPPFLAGS'
2272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2274ac_compiler_gnu=$ac_cv_c_compiler_gnu
2275if test -n "$ac_tool_prefix"; then
2276  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2277set dummy ${ac_tool_prefix}gcc; ac_word=$2
2278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2279$as_echo_n "checking for $ac_word... " >&6; }
2280if ${ac_cv_prog_CC+:} false; then :
2281  $as_echo_n "(cached) " >&6
2282else
2283  if test -n "$CC"; then
2284  ac_cv_prog_CC="$CC" # Let the user override the test.
2285else
2286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287for as_dir in $PATH
2288do
2289  IFS=$as_save_IFS
2290  test -z "$as_dir" && as_dir=.
2291    for ac_exec_ext in '' $ac_executable_extensions; do
2292  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2293    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2294    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2295    break 2
2296  fi
2297done
2298  done
2299IFS=$as_save_IFS
2300
2301fi
2302fi
2303CC=$ac_cv_prog_CC
2304if test -n "$CC"; then
2305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2306$as_echo "$CC" >&6; }
2307else
2308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2309$as_echo "no" >&6; }
2310fi
2311
2312
2313fi
2314if test -z "$ac_cv_prog_CC"; then
2315  ac_ct_CC=$CC
2316  # Extract the first word of "gcc", so it can be a program name with args.
2317set dummy gcc; ac_word=$2
2318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2319$as_echo_n "checking for $ac_word... " >&6; }
2320if ${ac_cv_prog_ac_ct_CC+:} false; then :
2321  $as_echo_n "(cached) " >&6
2322else
2323  if test -n "$ac_ct_CC"; then
2324  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2325else
2326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327for as_dir in $PATH
2328do
2329  IFS=$as_save_IFS
2330  test -z "$as_dir" && as_dir=.
2331    for ac_exec_ext in '' $ac_executable_extensions; do
2332  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2333    ac_cv_prog_ac_ct_CC="gcc"
2334    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2335    break 2
2336  fi
2337done
2338  done
2339IFS=$as_save_IFS
2340
2341fi
2342fi
2343ac_ct_CC=$ac_cv_prog_ac_ct_CC
2344if test -n "$ac_ct_CC"; then
2345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2346$as_echo "$ac_ct_CC" >&6; }
2347else
2348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2349$as_echo "no" >&6; }
2350fi
2351
2352  if test "x$ac_ct_CC" = x; then
2353    CC=""
2354  else
2355    case $cross_compiling:$ac_tool_warned in
2356yes:)
2357{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2358$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2359ac_tool_warned=yes ;;
2360esac
2361    CC=$ac_ct_CC
2362  fi
2363else
2364  CC="$ac_cv_prog_CC"
2365fi
2366
2367if test -z "$CC"; then
2368          if test -n "$ac_tool_prefix"; then
2369    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2370set dummy ${ac_tool_prefix}cc; ac_word=$2
2371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2372$as_echo_n "checking for $ac_word... " >&6; }
2373if ${ac_cv_prog_CC+:} false; then :
2374  $as_echo_n "(cached) " >&6
2375else
2376  if test -n "$CC"; then
2377  ac_cv_prog_CC="$CC" # Let the user override the test.
2378else
2379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380for as_dir in $PATH
2381do
2382  IFS=$as_save_IFS
2383  test -z "$as_dir" && as_dir=.
2384    for ac_exec_ext in '' $ac_executable_extensions; do
2385  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2386    ac_cv_prog_CC="${ac_tool_prefix}cc"
2387    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2388    break 2
2389  fi
2390done
2391  done
2392IFS=$as_save_IFS
2393
2394fi
2395fi
2396CC=$ac_cv_prog_CC
2397if test -n "$CC"; then
2398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2399$as_echo "$CC" >&6; }
2400else
2401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2402$as_echo "no" >&6; }
2403fi
2404
2405
2406  fi
2407fi
2408if test -z "$CC"; then
2409  # Extract the first word of "cc", so it can be a program name with args.
2410set dummy cc; ac_word=$2
2411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2412$as_echo_n "checking for $ac_word... " >&6; }
2413if ${ac_cv_prog_CC+:} false; then :
2414  $as_echo_n "(cached) " >&6
2415else
2416  if test -n "$CC"; then
2417  ac_cv_prog_CC="$CC" # Let the user override the test.
2418else
2419  ac_prog_rejected=no
2420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421for as_dir in $PATH
2422do
2423  IFS=$as_save_IFS
2424  test -z "$as_dir" && as_dir=.
2425    for ac_exec_ext in '' $ac_executable_extensions; do
2426  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2427    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2428       ac_prog_rejected=yes
2429       continue
2430     fi
2431    ac_cv_prog_CC="cc"
2432    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2433    break 2
2434  fi
2435done
2436  done
2437IFS=$as_save_IFS
2438
2439if test $ac_prog_rejected = yes; then
2440  # We found a bogon in the path, so make sure we never use it.
2441  set dummy $ac_cv_prog_CC
2442  shift
2443  if test $# != 0; then
2444    # We chose a different compiler from the bogus one.
2445    # However, it has the same basename, so the bogon will be chosen
2446    # first if we set CC to just the basename; use the full file name.
2447    shift
2448    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2449  fi
2450fi
2451fi
2452fi
2453CC=$ac_cv_prog_CC
2454if test -n "$CC"; then
2455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2456$as_echo "$CC" >&6; }
2457else
2458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2459$as_echo "no" >&6; }
2460fi
2461
2462
2463fi
2464if test -z "$CC"; then
2465  if test -n "$ac_tool_prefix"; then
2466  for ac_prog in cl.exe
2467  do
2468    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2469set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2471$as_echo_n "checking for $ac_word... " >&6; }
2472if ${ac_cv_prog_CC+:} false; then :
2473  $as_echo_n "(cached) " >&6
2474else
2475  if test -n "$CC"; then
2476  ac_cv_prog_CC="$CC" # Let the user override the test.
2477else
2478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479for as_dir in $PATH
2480do
2481  IFS=$as_save_IFS
2482  test -z "$as_dir" && as_dir=.
2483    for ac_exec_ext in '' $ac_executable_extensions; do
2484  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2485    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2486    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2487    break 2
2488  fi
2489done
2490  done
2491IFS=$as_save_IFS
2492
2493fi
2494fi
2495CC=$ac_cv_prog_CC
2496if test -n "$CC"; then
2497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2498$as_echo "$CC" >&6; }
2499else
2500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2501$as_echo "no" >&6; }
2502fi
2503
2504
2505    test -n "$CC" && break
2506  done
2507fi
2508if test -z "$CC"; then
2509  ac_ct_CC=$CC
2510  for ac_prog in cl.exe
2511do
2512  # Extract the first word of "$ac_prog", so it can be a program name with args.
2513set dummy $ac_prog; ac_word=$2
2514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2515$as_echo_n "checking for $ac_word... " >&6; }
2516if ${ac_cv_prog_ac_ct_CC+:} false; then :
2517  $as_echo_n "(cached) " >&6
2518else
2519  if test -n "$ac_ct_CC"; then
2520  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2521else
2522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523for as_dir in $PATH
2524do
2525  IFS=$as_save_IFS
2526  test -z "$as_dir" && as_dir=.
2527    for ac_exec_ext in '' $ac_executable_extensions; do
2528  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2529    ac_cv_prog_ac_ct_CC="$ac_prog"
2530    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2531    break 2
2532  fi
2533done
2534  done
2535IFS=$as_save_IFS
2536
2537fi
2538fi
2539ac_ct_CC=$ac_cv_prog_ac_ct_CC
2540if test -n "$ac_ct_CC"; then
2541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2542$as_echo "$ac_ct_CC" >&6; }
2543else
2544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2545$as_echo "no" >&6; }
2546fi
2547
2548
2549  test -n "$ac_ct_CC" && break
2550done
2551
2552  if test "x$ac_ct_CC" = x; then
2553    CC=""
2554  else
2555    case $cross_compiling:$ac_tool_warned in
2556yes:)
2557{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2558$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2559ac_tool_warned=yes ;;
2560esac
2561    CC=$ac_ct_CC
2562  fi
2563fi
2564
2565fi
2566
2567
2568test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2569$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2570as_fn_error $? "no acceptable C compiler found in \$PATH
2571See \`config.log' for more details" "$LINENO" 5; }
2572
2573# Provide some information about the compiler.
2574$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2575set X $ac_compile
2576ac_compiler=$2
2577for ac_option in --version -v -V -qversion; do
2578  { { ac_try="$ac_compiler $ac_option >&5"
2579case "(($ac_try" in
2580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581  *) ac_try_echo=$ac_try;;
2582esac
2583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2584$as_echo "$ac_try_echo"; } >&5
2585  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2586  ac_status=$?
2587  if test -s conftest.err; then
2588    sed '10a\
2589... rest of stderr output deleted ...
2590         10q' conftest.err >conftest.er1
2591    cat conftest.er1 >&5
2592  fi
2593  rm -f conftest.er1 conftest.err
2594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2595  test $ac_status = 0; }
2596done
2597
2598cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2599/* end confdefs.h.  */
2600
2601int
2602main ()
2603{
2604
2605  ;
2606  return 0;
2607}
2608_ACEOF
2609ac_clean_files_save=$ac_clean_files
2610ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2611# Try to create an executable without -o first, disregard a.out.
2612# It will help us diagnose broken compilers, and finding out an intuition
2613# of exeext.
2614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2615$as_echo_n "checking whether the C compiler works... " >&6; }
2616ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2617
2618# The possible output files:
2619ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2620
2621ac_rmfiles=
2622for ac_file in $ac_files
2623do
2624  case $ac_file in
2625    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2626    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2627  esac
2628done
2629rm -f $ac_rmfiles
2630
2631if { { ac_try="$ac_link_default"
2632case "(($ac_try" in
2633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2634  *) ac_try_echo=$ac_try;;
2635esac
2636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2637$as_echo "$ac_try_echo"; } >&5
2638  (eval "$ac_link_default") 2>&5
2639  ac_status=$?
2640  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2641  test $ac_status = 0; }; then :
2642  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2643# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2644# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2645# so that the user can short-circuit this test for compilers unknown to
2646# Autoconf.
2647for ac_file in $ac_files ''
2648do
2649  test -f "$ac_file" || continue
2650  case $ac_file in
2651    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2652	;;
2653    [ab].out )
2654	# We found the default executable, but exeext='' is most
2655	# certainly right.
2656	break;;
2657    *.* )
2658	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2659	then :; else
2660	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2661	fi
2662	# We set ac_cv_exeext here because the later test for it is not
2663	# safe: cross compilers may not add the suffix if given an `-o'
2664	# argument, so we may need to know it at that point already.
2665	# Even if this section looks crufty: it has the advantage of
2666	# actually working.
2667	break;;
2668    * )
2669	break;;
2670  esac
2671done
2672test "$ac_cv_exeext" = no && ac_cv_exeext=
2673
2674else
2675  ac_file=''
2676fi
2677if test -z "$ac_file"; then :
2678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679$as_echo "no" >&6; }
2680$as_echo "$as_me: failed program was:" >&5
2681sed 's/^/| /' conftest.$ac_ext >&5
2682
2683{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2684$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2685as_fn_error 77 "C compiler cannot create executables
2686See \`config.log' for more details" "$LINENO" 5; }
2687else
2688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2689$as_echo "yes" >&6; }
2690fi
2691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2692$as_echo_n "checking for C compiler default output file name... " >&6; }
2693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2694$as_echo "$ac_file" >&6; }
2695ac_exeext=$ac_cv_exeext
2696
2697rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2698ac_clean_files=$ac_clean_files_save
2699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2700$as_echo_n "checking for suffix of executables... " >&6; }
2701if { { ac_try="$ac_link"
2702case "(($ac_try" in
2703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704  *) ac_try_echo=$ac_try;;
2705esac
2706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2707$as_echo "$ac_try_echo"; } >&5
2708  (eval "$ac_link") 2>&5
2709  ac_status=$?
2710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2711  test $ac_status = 0; }; then :
2712  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2713# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2714# work properly (i.e., refer to `conftest.exe'), while it won't with
2715# `rm'.
2716for ac_file in conftest.exe conftest conftest.*; do
2717  test -f "$ac_file" || continue
2718  case $ac_file in
2719    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2720    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2721	  break;;
2722    * ) break;;
2723  esac
2724done
2725else
2726  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2727$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2728as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2729See \`config.log' for more details" "$LINENO" 5; }
2730fi
2731rm -f conftest conftest$ac_cv_exeext
2732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2733$as_echo "$ac_cv_exeext" >&6; }
2734
2735rm -f conftest.$ac_ext
2736EXEEXT=$ac_cv_exeext
2737ac_exeext=$EXEEXT
2738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2739/* end confdefs.h.  */
2740#include <stdio.h>
2741int
2742main ()
2743{
2744FILE *f = fopen ("conftest.out", "w");
2745 return ferror (f) || fclose (f) != 0;
2746
2747  ;
2748  return 0;
2749}
2750_ACEOF
2751ac_clean_files="$ac_clean_files conftest.out"
2752# Check that the compiler produces executables we can run.  If not, either
2753# the compiler is broken, or we cross compile.
2754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2755$as_echo_n "checking whether we are cross compiling... " >&6; }
2756if test "$cross_compiling" != yes; then
2757  { { ac_try="$ac_link"
2758case "(($ac_try" in
2759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760  *) ac_try_echo=$ac_try;;
2761esac
2762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2763$as_echo "$ac_try_echo"; } >&5
2764  (eval "$ac_link") 2>&5
2765  ac_status=$?
2766  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2767  test $ac_status = 0; }
2768  if { ac_try='./conftest$ac_cv_exeext'
2769  { { case "(($ac_try" in
2770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771  *) ac_try_echo=$ac_try;;
2772esac
2773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2774$as_echo "$ac_try_echo"; } >&5
2775  (eval "$ac_try") 2>&5
2776  ac_status=$?
2777  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2778  test $ac_status = 0; }; }; then
2779    cross_compiling=no
2780  else
2781    if test "$cross_compiling" = maybe; then
2782	cross_compiling=yes
2783    else
2784	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2785$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2786as_fn_error $? "cannot run C compiled programs.
2787If you meant to cross compile, use \`--host'.
2788See \`config.log' for more details" "$LINENO" 5; }
2789    fi
2790  fi
2791fi
2792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2793$as_echo "$cross_compiling" >&6; }
2794
2795rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2796ac_clean_files=$ac_clean_files_save
2797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2798$as_echo_n "checking for suffix of object files... " >&6; }
2799if ${ac_cv_objext+:} false; then :
2800  $as_echo_n "(cached) " >&6
2801else
2802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2803/* end confdefs.h.  */
2804
2805int
2806main ()
2807{
2808
2809  ;
2810  return 0;
2811}
2812_ACEOF
2813rm -f conftest.o conftest.obj
2814if { { ac_try="$ac_compile"
2815case "(($ac_try" in
2816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817  *) ac_try_echo=$ac_try;;
2818esac
2819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2820$as_echo "$ac_try_echo"; } >&5
2821  (eval "$ac_compile") 2>&5
2822  ac_status=$?
2823  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2824  test $ac_status = 0; }; then :
2825  for ac_file in conftest.o conftest.obj conftest.*; do
2826  test -f "$ac_file" || continue;
2827  case $ac_file in
2828    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2829    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2830       break;;
2831  esac
2832done
2833else
2834  $as_echo "$as_me: failed program was:" >&5
2835sed 's/^/| /' conftest.$ac_ext >&5
2836
2837{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2838$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2839as_fn_error $? "cannot compute suffix of object files: cannot compile
2840See \`config.log' for more details" "$LINENO" 5; }
2841fi
2842rm -f conftest.$ac_cv_objext conftest.$ac_ext
2843fi
2844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2845$as_echo "$ac_cv_objext" >&6; }
2846OBJEXT=$ac_cv_objext
2847ac_objext=$OBJEXT
2848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2849$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2850if ${ac_cv_c_compiler_gnu+:} false; then :
2851  $as_echo_n "(cached) " >&6
2852else
2853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2854/* end confdefs.h.  */
2855
2856int
2857main ()
2858{
2859#ifndef __GNUC__
2860       choke me
2861#endif
2862
2863  ;
2864  return 0;
2865}
2866_ACEOF
2867if ac_fn_c_try_compile "$LINENO"; then :
2868  ac_compiler_gnu=yes
2869else
2870  ac_compiler_gnu=no
2871fi
2872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2873ac_cv_c_compiler_gnu=$ac_compiler_gnu
2874
2875fi
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2877$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2878if test $ac_compiler_gnu = yes; then
2879  GCC=yes
2880else
2881  GCC=
2882fi
2883ac_test_CFLAGS=${CFLAGS+set}
2884ac_save_CFLAGS=$CFLAGS
2885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2886$as_echo_n "checking whether $CC accepts -g... " >&6; }
2887if ${ac_cv_prog_cc_g+:} false; then :
2888  $as_echo_n "(cached) " >&6
2889else
2890  ac_save_c_werror_flag=$ac_c_werror_flag
2891   ac_c_werror_flag=yes
2892   ac_cv_prog_cc_g=no
2893   CFLAGS="-g"
2894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2895/* end confdefs.h.  */
2896
2897int
2898main ()
2899{
2900
2901  ;
2902  return 0;
2903}
2904_ACEOF
2905if ac_fn_c_try_compile "$LINENO"; then :
2906  ac_cv_prog_cc_g=yes
2907else
2908  CFLAGS=""
2909      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2910/* end confdefs.h.  */
2911
2912int
2913main ()
2914{
2915
2916  ;
2917  return 0;
2918}
2919_ACEOF
2920if ac_fn_c_try_compile "$LINENO"; then :
2921
2922else
2923  ac_c_werror_flag=$ac_save_c_werror_flag
2924	 CFLAGS="-g"
2925	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2926/* end confdefs.h.  */
2927
2928int
2929main ()
2930{
2931
2932  ;
2933  return 0;
2934}
2935_ACEOF
2936if ac_fn_c_try_compile "$LINENO"; then :
2937  ac_cv_prog_cc_g=yes
2938fi
2939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2940fi
2941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2942fi
2943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2944   ac_c_werror_flag=$ac_save_c_werror_flag
2945fi
2946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2947$as_echo "$ac_cv_prog_cc_g" >&6; }
2948if test "$ac_test_CFLAGS" = set; then
2949  CFLAGS=$ac_save_CFLAGS
2950elif test $ac_cv_prog_cc_g = yes; then
2951  if test "$GCC" = yes; then
2952    CFLAGS="-g -O2"
2953  else
2954    CFLAGS="-g"
2955  fi
2956else
2957  if test "$GCC" = yes; then
2958    CFLAGS="-O2"
2959  else
2960    CFLAGS=
2961  fi
2962fi
2963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2964$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2965if ${ac_cv_prog_cc_c89+:} false; then :
2966  $as_echo_n "(cached) " >&6
2967else
2968  ac_cv_prog_cc_c89=no
2969ac_save_CC=$CC
2970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2971/* end confdefs.h.  */
2972#include <stdarg.h>
2973#include <stdio.h>
2974struct stat;
2975/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2976struct buf { int x; };
2977FILE * (*rcsopen) (struct buf *, struct stat *, int);
2978static char *e (p, i)
2979     char **p;
2980     int i;
2981{
2982  return p[i];
2983}
2984static char *f (char * (*g) (char **, int), char **p, ...)
2985{
2986  char *s;
2987  va_list v;
2988  va_start (v,p);
2989  s = g (p, va_arg (v,int));
2990  va_end (v);
2991  return s;
2992}
2993
2994/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2995   function prototypes and stuff, but not '\xHH' hex character constants.
2996   These don't provoke an error unfortunately, instead are silently treated
2997   as 'x'.  The following induces an error, until -std is added to get
2998   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2999   array size at least.  It's necessary to write '\x00'==0 to get something
3000   that's true only with -std.  */
3001int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3002
3003/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3004   inside strings and character constants.  */
3005#define FOO(x) 'x'
3006int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3007
3008int test (int i, double x);
3009struct s1 {int (*f) (int a);};
3010struct s2 {int (*f) (double a);};
3011int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3012int argc;
3013char **argv;
3014int
3015main ()
3016{
3017return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3018  ;
3019  return 0;
3020}
3021_ACEOF
3022for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3023	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3024do
3025  CC="$ac_save_CC $ac_arg"
3026  if ac_fn_c_try_compile "$LINENO"; then :
3027  ac_cv_prog_cc_c89=$ac_arg
3028fi
3029rm -f core conftest.err conftest.$ac_objext
3030  test "x$ac_cv_prog_cc_c89" != "xno" && break
3031done
3032rm -f conftest.$ac_ext
3033CC=$ac_save_CC
3034
3035fi
3036# AC_CACHE_VAL
3037case "x$ac_cv_prog_cc_c89" in
3038  x)
3039    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3040$as_echo "none needed" >&6; } ;;
3041  xno)
3042    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3043$as_echo "unsupported" >&6; } ;;
3044  *)
3045    CC="$CC $ac_cv_prog_cc_c89"
3046    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3047$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3048esac
3049if test "x$ac_cv_prog_cc_c89" != xno; then :
3050
3051fi
3052
3053ac_ext=c
3054ac_cpp='$CPP $CPPFLAGS'
3055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3057ac_compiler_gnu=$ac_cv_c_compiler_gnu
3058
3059
3060ac_ext=c
3061ac_cpp='$CPP $CPPFLAGS'
3062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3064ac_compiler_gnu=$ac_cv_c_compiler_gnu
3065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3066$as_echo_n "checking how to run the C preprocessor... " >&6; }
3067# On Suns, sometimes $CPP names a directory.
3068if test -n "$CPP" && test -d "$CPP"; then
3069  CPP=
3070fi
3071if test -z "$CPP"; then
3072  if ${ac_cv_prog_CPP+:} false; then :
3073  $as_echo_n "(cached) " >&6
3074else
3075      # Double quotes because CPP needs to be expanded
3076    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3077    do
3078      ac_preproc_ok=false
3079for ac_c_preproc_warn_flag in '' yes
3080do
3081  # Use a header file that comes with gcc, so configuring glibc
3082  # with a fresh cross-compiler works.
3083  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3084  # <limits.h> exists even on freestanding compilers.
3085  # On the NeXT, cc -E runs the code through the compiler's parser,
3086  # not just through cpp. "Syntax error" is here to catch this case.
3087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3088/* end confdefs.h.  */
3089#ifdef __STDC__
3090# include <limits.h>
3091#else
3092# include <assert.h>
3093#endif
3094		     Syntax error
3095_ACEOF
3096if ac_fn_c_try_cpp "$LINENO"; then :
3097
3098else
3099  # Broken: fails on valid input.
3100continue
3101fi
3102rm -f conftest.err conftest.i conftest.$ac_ext
3103
3104  # OK, works on sane cases.  Now check whether nonexistent headers
3105  # can be detected and how.
3106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3107/* end confdefs.h.  */
3108#include <ac_nonexistent.h>
3109_ACEOF
3110if ac_fn_c_try_cpp "$LINENO"; then :
3111  # Broken: success on invalid input.
3112continue
3113else
3114  # Passes both tests.
3115ac_preproc_ok=:
3116break
3117fi
3118rm -f conftest.err conftest.i conftest.$ac_ext
3119
3120done
3121# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3122rm -f conftest.i conftest.err conftest.$ac_ext
3123if $ac_preproc_ok; then :
3124  break
3125fi
3126
3127    done
3128    ac_cv_prog_CPP=$CPP
3129
3130fi
3131  CPP=$ac_cv_prog_CPP
3132else
3133  ac_cv_prog_CPP=$CPP
3134fi
3135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3136$as_echo "$CPP" >&6; }
3137ac_preproc_ok=false
3138for ac_c_preproc_warn_flag in '' yes
3139do
3140  # Use a header file that comes with gcc, so configuring glibc
3141  # with a fresh cross-compiler works.
3142  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3143  # <limits.h> exists even on freestanding compilers.
3144  # On the NeXT, cc -E runs the code through the compiler's parser,
3145  # not just through cpp. "Syntax error" is here to catch this case.
3146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3147/* end confdefs.h.  */
3148#ifdef __STDC__
3149# include <limits.h>
3150#else
3151# include <assert.h>
3152#endif
3153		     Syntax error
3154_ACEOF
3155if ac_fn_c_try_cpp "$LINENO"; then :
3156
3157else
3158  # Broken: fails on valid input.
3159continue
3160fi
3161rm -f conftest.err conftest.i conftest.$ac_ext
3162
3163  # OK, works on sane cases.  Now check whether nonexistent headers
3164  # can be detected and how.
3165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3166/* end confdefs.h.  */
3167#include <ac_nonexistent.h>
3168_ACEOF
3169if ac_fn_c_try_cpp "$LINENO"; then :
3170  # Broken: success on invalid input.
3171continue
3172else
3173  # Passes both tests.
3174ac_preproc_ok=:
3175break
3176fi
3177rm -f conftest.err conftest.i conftest.$ac_ext
3178
3179done
3180# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3181rm -f conftest.i conftest.err conftest.$ac_ext
3182if $ac_preproc_ok; then :
3183
3184else
3185  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3187as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3188See \`config.log' for more details" "$LINENO" 5; }
3189fi
3190
3191ac_ext=c
3192ac_cpp='$CPP $CPPFLAGS'
3193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3195ac_compiler_gnu=$ac_cv_c_compiler_gnu
3196
3197
3198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3199$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3200if ${ac_cv_path_GREP+:} false; then :
3201  $as_echo_n "(cached) " >&6
3202else
3203  if test -z "$GREP"; then
3204  ac_path_GREP_found=false
3205  # Loop through the user's path and test for each of PROGNAME-LIST
3206  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3208do
3209  IFS=$as_save_IFS
3210  test -z "$as_dir" && as_dir=.
3211    for ac_prog in grep ggrep; do
3212    for ac_exec_ext in '' $ac_executable_extensions; do
3213      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3214      as_fn_executable_p "$ac_path_GREP" || continue
3215# Check for GNU ac_path_GREP and select it if it is found.
3216  # Check for GNU $ac_path_GREP
3217case `"$ac_path_GREP" --version 2>&1` in
3218*GNU*)
3219  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3220*)
3221  ac_count=0
3222  $as_echo_n 0123456789 >"conftest.in"
3223  while :
3224  do
3225    cat "conftest.in" "conftest.in" >"conftest.tmp"
3226    mv "conftest.tmp" "conftest.in"
3227    cp "conftest.in" "conftest.nl"
3228    $as_echo 'GREP' >> "conftest.nl"
3229    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3230    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3231    as_fn_arith $ac_count + 1 && ac_count=$as_val
3232    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3233      # Best one so far, save it but keep looking for a better one
3234      ac_cv_path_GREP="$ac_path_GREP"
3235      ac_path_GREP_max=$ac_count
3236    fi
3237    # 10*(2^10) chars as input seems more than enough
3238    test $ac_count -gt 10 && break
3239  done
3240  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3241esac
3242
3243      $ac_path_GREP_found && break 3
3244    done
3245  done
3246  done
3247IFS=$as_save_IFS
3248  if test -z "$ac_cv_path_GREP"; then
3249    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3250  fi
3251else
3252  ac_cv_path_GREP=$GREP
3253fi
3254
3255fi
3256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3257$as_echo "$ac_cv_path_GREP" >&6; }
3258 GREP="$ac_cv_path_GREP"
3259
3260
3261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3262$as_echo_n "checking for egrep... " >&6; }
3263if ${ac_cv_path_EGREP+:} false; then :
3264  $as_echo_n "(cached) " >&6
3265else
3266  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3267   then ac_cv_path_EGREP="$GREP -E"
3268   else
3269     if test -z "$EGREP"; then
3270  ac_path_EGREP_found=false
3271  # Loop through the user's path and test for each of PROGNAME-LIST
3272  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3274do
3275  IFS=$as_save_IFS
3276  test -z "$as_dir" && as_dir=.
3277    for ac_prog in egrep; do
3278    for ac_exec_ext in '' $ac_executable_extensions; do
3279      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3280      as_fn_executable_p "$ac_path_EGREP" || continue
3281# Check for GNU ac_path_EGREP and select it if it is found.
3282  # Check for GNU $ac_path_EGREP
3283case `"$ac_path_EGREP" --version 2>&1` in
3284*GNU*)
3285  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3286*)
3287  ac_count=0
3288  $as_echo_n 0123456789 >"conftest.in"
3289  while :
3290  do
3291    cat "conftest.in" "conftest.in" >"conftest.tmp"
3292    mv "conftest.tmp" "conftest.in"
3293    cp "conftest.in" "conftest.nl"
3294    $as_echo 'EGREP' >> "conftest.nl"
3295    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3296    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3297    as_fn_arith $ac_count + 1 && ac_count=$as_val
3298    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3299      # Best one so far, save it but keep looking for a better one
3300      ac_cv_path_EGREP="$ac_path_EGREP"
3301      ac_path_EGREP_max=$ac_count
3302    fi
3303    # 10*(2^10) chars as input seems more than enough
3304    test $ac_count -gt 10 && break
3305  done
3306  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3307esac
3308
3309      $ac_path_EGREP_found && break 3
3310    done
3311  done
3312  done
3313IFS=$as_save_IFS
3314  if test -z "$ac_cv_path_EGREP"; then
3315    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3316  fi
3317else
3318  ac_cv_path_EGREP=$EGREP
3319fi
3320
3321   fi
3322fi
3323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3324$as_echo "$ac_cv_path_EGREP" >&6; }
3325 EGREP="$ac_cv_path_EGREP"
3326
3327
3328                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NetBSD" >&5
3329$as_echo_n "checking for NetBSD... " >&6; }
3330      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3331/* end confdefs.h.  */
3332#ifdef __NetBSD__
3333	yes
3334	#endif
3335
3336_ACEOF
3337if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3338  $EGREP "yes" >/dev/null 2>&1; then :
3339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3340$as_echo "yes" >&6; }
3341
3342$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3343
3344
3345$as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h
3346
3347
3348$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
3349
3350else
3351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3352$as_echo "no" >&6; }
3353fi
3354rm -f conftest*
3355
3356
3357# Extract the first word of "sh", so it can be a program name with args.
3358set dummy sh; ac_word=$2
3359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360$as_echo_n "checking for $ac_word... " >&6; }
3361if ${ac_cv_path_BSHELL+:} false; then :
3362  $as_echo_n "(cached) " >&6
3363else
3364  case $BSHELL in
3365  [\\/]* | ?:[\\/]*)
3366  ac_cv_path_BSHELL="$BSHELL" # Let the user override the test with a path.
3367  ;;
3368  *)
3369  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370for as_dir in $PATH
3371do
3372  IFS=$as_save_IFS
3373  test -z "$as_dir" && as_dir=.
3374    for ac_exec_ext in '' $ac_executable_extensions; do
3375  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3376    ac_cv_path_BSHELL="$as_dir/$ac_word$ac_exec_ext"
3377    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3378    break 2
3379  fi
3380done
3381  done
3382IFS=$as_save_IFS
3383
3384  ;;
3385esac
3386fi
3387BSHELL=$ac_cv_path_BSHELL
3388if test -n "$BSHELL"; then
3389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BSHELL" >&5
3390$as_echo "$BSHELL" >&6; }
3391else
3392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393$as_echo "no" >&6; }
3394fi
3395
3396
3397if test x"$BSHELL" = x; then
3398	as_fn_error $? "sh must be somewhere on \$PATH" "$LINENO" 5
3399fi
3400
3401cat >>confdefs.h <<_ACEOF
3402#define PATH_BSHELL "$BSHELL"
3403_ACEOF
3404
3405
3406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3407$as_echo_n "checking for ANSI C header files... " >&6; }
3408if ${ac_cv_header_stdc+:} false; then :
3409  $as_echo_n "(cached) " >&6
3410else
3411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412/* end confdefs.h.  */
3413#include <stdlib.h>
3414#include <stdarg.h>
3415#include <string.h>
3416#include <float.h>
3417
3418int
3419main ()
3420{
3421
3422  ;
3423  return 0;
3424}
3425_ACEOF
3426if ac_fn_c_try_compile "$LINENO"; then :
3427  ac_cv_header_stdc=yes
3428else
3429  ac_cv_header_stdc=no
3430fi
3431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3432
3433if test $ac_cv_header_stdc = yes; then
3434  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3436/* end confdefs.h.  */
3437#include <string.h>
3438
3439_ACEOF
3440if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3441  $EGREP "memchr" >/dev/null 2>&1; then :
3442
3443else
3444  ac_cv_header_stdc=no
3445fi
3446rm -f conftest*
3447
3448fi
3449
3450if test $ac_cv_header_stdc = yes; then
3451  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453/* end confdefs.h.  */
3454#include <stdlib.h>
3455
3456_ACEOF
3457if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3458  $EGREP "free" >/dev/null 2>&1; then :
3459
3460else
3461  ac_cv_header_stdc=no
3462fi
3463rm -f conftest*
3464
3465fi
3466
3467if test $ac_cv_header_stdc = yes; then
3468  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3469  if test "$cross_compiling" = yes; then :
3470  :
3471else
3472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473/* end confdefs.h.  */
3474#include <ctype.h>
3475#include <stdlib.h>
3476#if ((' ' & 0x0FF) == 0x020)
3477# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3478# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3479#else
3480# define ISLOWER(c) \
3481		   (('a' <= (c) && (c) <= 'i') \
3482		     || ('j' <= (c) && (c) <= 'r') \
3483		     || ('s' <= (c) && (c) <= 'z'))
3484# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3485#endif
3486
3487#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3488int
3489main ()
3490{
3491  int i;
3492  for (i = 0; i < 256; i++)
3493    if (XOR (islower (i), ISLOWER (i))
3494	|| toupper (i) != TOUPPER (i))
3495      return 2;
3496  return 0;
3497}
3498_ACEOF
3499if ac_fn_c_try_run "$LINENO"; then :
3500
3501else
3502  ac_cv_header_stdc=no
3503fi
3504rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3505  conftest.$ac_objext conftest.beam conftest.$ac_ext
3506fi
3507
3508fi
3509fi
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3511$as_echo "$ac_cv_header_stdc" >&6; }
3512if test $ac_cv_header_stdc = yes; then
3513
3514$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3515
3516fi
3517
3518# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3519for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3520		  inttypes.h stdint.h unistd.h
3521do :
3522  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3523ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3524"
3525if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3526  cat >>confdefs.h <<_ACEOF
3527#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3528_ACEOF
3529
3530fi
3531
3532done
3533
3534
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3536$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3537if ${ac_cv_c_bigendian+:} false; then :
3538  $as_echo_n "(cached) " >&6
3539else
3540  ac_cv_c_bigendian=unknown
3541    # See if we're dealing with a universal compiler.
3542    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543/* end confdefs.h.  */
3544#ifndef __APPLE_CC__
3545	       not a universal capable compiler
3546	     #endif
3547	     typedef int dummy;
3548
3549_ACEOF
3550if ac_fn_c_try_compile "$LINENO"; then :
3551
3552	# Check for potential -arch flags.  It is not universal unless
3553	# there are at least two -arch flags with different values.
3554	ac_arch=
3555	ac_prev=
3556	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3557	 if test -n "$ac_prev"; then
3558	   case $ac_word in
3559	     i?86 | x86_64 | ppc | ppc64)
3560	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3561		 ac_arch=$ac_word
3562	       else
3563		 ac_cv_c_bigendian=universal
3564		 break
3565	       fi
3566	       ;;
3567	   esac
3568	   ac_prev=
3569	 elif test "x$ac_word" = "x-arch"; then
3570	   ac_prev=arch
3571	 fi
3572       done
3573fi
3574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575    if test $ac_cv_c_bigendian = unknown; then
3576      # See if sys/param.h defines the BYTE_ORDER macro.
3577      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578/* end confdefs.h.  */
3579#include <sys/types.h>
3580	     #include <sys/param.h>
3581
3582int
3583main ()
3584{
3585#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3586		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3587		     && LITTLE_ENDIAN)
3588	      bogus endian macros
3589	     #endif
3590
3591  ;
3592  return 0;
3593}
3594_ACEOF
3595if ac_fn_c_try_compile "$LINENO"; then :
3596  # It does; now see whether it defined to BIG_ENDIAN or not.
3597	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598/* end confdefs.h.  */
3599#include <sys/types.h>
3600		#include <sys/param.h>
3601
3602int
3603main ()
3604{
3605#if BYTE_ORDER != BIG_ENDIAN
3606		 not big endian
3607		#endif
3608
3609  ;
3610  return 0;
3611}
3612_ACEOF
3613if ac_fn_c_try_compile "$LINENO"; then :
3614  ac_cv_c_bigendian=yes
3615else
3616  ac_cv_c_bigendian=no
3617fi
3618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3619fi
3620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3621    fi
3622    if test $ac_cv_c_bigendian = unknown; then
3623      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3624      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625/* end confdefs.h.  */
3626#include <limits.h>
3627
3628int
3629main ()
3630{
3631#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3632	      bogus endian macros
3633	     #endif
3634
3635  ;
3636  return 0;
3637}
3638_ACEOF
3639if ac_fn_c_try_compile "$LINENO"; then :
3640  # It does; now see whether it defined to _BIG_ENDIAN or not.
3641	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642/* end confdefs.h.  */
3643#include <limits.h>
3644
3645int
3646main ()
3647{
3648#ifndef _BIG_ENDIAN
3649		 not big endian
3650		#endif
3651
3652  ;
3653  return 0;
3654}
3655_ACEOF
3656if ac_fn_c_try_compile "$LINENO"; then :
3657  ac_cv_c_bigendian=yes
3658else
3659  ac_cv_c_bigendian=no
3660fi
3661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3662fi
3663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3664    fi
3665    if test $ac_cv_c_bigendian = unknown; then
3666      # Compile a test program.
3667      if test "$cross_compiling" = yes; then :
3668  # Try to guess by grepping values from an object file.
3669	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670/* end confdefs.h.  */
3671short int ascii_mm[] =
3672		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3673		short int ascii_ii[] =
3674		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3675		int use_ascii (int i) {
3676		  return ascii_mm[i] + ascii_ii[i];
3677		}
3678		short int ebcdic_ii[] =
3679		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3680		short int ebcdic_mm[] =
3681		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3682		int use_ebcdic (int i) {
3683		  return ebcdic_mm[i] + ebcdic_ii[i];
3684		}
3685		extern int foo;
3686
3687int
3688main ()
3689{
3690return use_ascii (foo) == use_ebcdic (foo);
3691  ;
3692  return 0;
3693}
3694_ACEOF
3695if ac_fn_c_try_compile "$LINENO"; then :
3696  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
3697	      ac_cv_c_bigendian=yes
3698	    fi
3699	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3700	      if test "$ac_cv_c_bigendian" = unknown; then
3701		ac_cv_c_bigendian=no
3702	      else
3703		# finding both strings is unlikely to happen, but who knows?
3704		ac_cv_c_bigendian=unknown
3705	      fi
3706	    fi
3707fi
3708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709else
3710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711/* end confdefs.h.  */
3712$ac_includes_default
3713int
3714main ()
3715{
3716
3717	     /* Are we little or big endian?  From Harbison&Steele.  */
3718	     union
3719	     {
3720	       long int l;
3721	       char c[sizeof (long int)];
3722	     } u;
3723	     u.l = 1;
3724	     return u.c[sizeof (long int) - 1] == 1;
3725
3726  ;
3727  return 0;
3728}
3729_ACEOF
3730if ac_fn_c_try_run "$LINENO"; then :
3731  ac_cv_c_bigendian=no
3732else
3733  ac_cv_c_bigendian=yes
3734fi
3735rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3736  conftest.$ac_objext conftest.beam conftest.$ac_ext
3737fi
3738
3739    fi
3740fi
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
3742$as_echo "$ac_cv_c_bigendian" >&6; }
3743 case $ac_cv_c_bigendian in #(
3744   yes)
3745     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
3746;; #(
3747   no)
3748      ;; #(
3749   universal)
3750
3751$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
3752
3753     ;; #(
3754   *)
3755     as_fn_error $? "unknown endianness
3756 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
3757 esac
3758
3759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3760$as_echo_n "checking for ANSI C header files... " >&6; }
3761if ${ac_cv_header_stdc+:} false; then :
3762  $as_echo_n "(cached) " >&6
3763else
3764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765/* end confdefs.h.  */
3766#include <stdlib.h>
3767#include <stdarg.h>
3768#include <string.h>
3769#include <float.h>
3770
3771int
3772main ()
3773{
3774
3775  ;
3776  return 0;
3777}
3778_ACEOF
3779if ac_fn_c_try_compile "$LINENO"; then :
3780  ac_cv_header_stdc=yes
3781else
3782  ac_cv_header_stdc=no
3783fi
3784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3785
3786if test $ac_cv_header_stdc = yes; then
3787  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789/* end confdefs.h.  */
3790#include <string.h>
3791
3792_ACEOF
3793if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3794  $EGREP "memchr" >/dev/null 2>&1; then :
3795
3796else
3797  ac_cv_header_stdc=no
3798fi
3799rm -f conftest*
3800
3801fi
3802
3803if test $ac_cv_header_stdc = yes; then
3804  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806/* end confdefs.h.  */
3807#include <stdlib.h>
3808
3809_ACEOF
3810if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3811  $EGREP "free" >/dev/null 2>&1; then :
3812
3813else
3814  ac_cv_header_stdc=no
3815fi
3816rm -f conftest*
3817
3818fi
3819
3820if test $ac_cv_header_stdc = yes; then
3821  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3822  if test "$cross_compiling" = yes; then :
3823  :
3824else
3825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826/* end confdefs.h.  */
3827#include <ctype.h>
3828#include <stdlib.h>
3829#if ((' ' & 0x0FF) == 0x020)
3830# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3831# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3832#else
3833# define ISLOWER(c) \
3834		   (('a' <= (c) && (c) <= 'i') \
3835		     || ('j' <= (c) && (c) <= 'r') \
3836		     || ('s' <= (c) && (c) <= 'z'))
3837# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3838#endif
3839
3840#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3841int
3842main ()
3843{
3844  int i;
3845  for (i = 0; i < 256; i++)
3846    if (XOR (islower (i), ISLOWER (i))
3847	|| toupper (i) != TOUPPER (i))
3848      return 2;
3849  return 0;
3850}
3851_ACEOF
3852if ac_fn_c_try_run "$LINENO"; then :
3853
3854else
3855  ac_cv_header_stdc=no
3856fi
3857rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3858  conftest.$ac_objext conftest.beam conftest.$ac_ext
3859fi
3860
3861fi
3862fi
3863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3864$as_echo "$ac_cv_header_stdc" >&6; }
3865if test $ac_cv_header_stdc = yes; then
3866
3867$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3868
3869fi
3870
3871
3872# Confirm existence of zlib.  (This is available as a default install
3873# option on many OS's; this could be added as a reachover build in the
3874# future.)
3875ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
3876if test "x$ac_cv_header_zlib_h" = xyes; then :
3877
3878else
3879  as_fn_error $? "zlib must be installed in a compiler-visible path" "$LINENO" 5
3880fi
3881
3882
3883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzdopen in -lz" >&5
3884$as_echo_n "checking for gzdopen in -lz... " >&6; }
3885if ${ac_cv_lib_z_gzdopen+:} false; then :
3886  $as_echo_n "(cached) " >&6
3887else
3888  ac_check_lib_save_LIBS=$LIBS
3889LIBS="-lz  $LIBS"
3890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891/* end confdefs.h.  */
3892
3893/* Override any GCC internal prototype to avoid an error.
3894   Use char because int might match the return type of a GCC
3895   builtin and then its argument prototype would still apply.  */
3896#ifdef __cplusplus
3897extern "C"
3898#endif
3899char gzdopen ();
3900int
3901main ()
3902{
3903return gzdopen ();
3904  ;
3905  return 0;
3906}
3907_ACEOF
3908if ac_fn_c_try_link "$LINENO"; then :
3909  ac_cv_lib_z_gzdopen=yes
3910else
3911  ac_cv_lib_z_gzdopen=no
3912fi
3913rm -f core conftest.err conftest.$ac_objext \
3914    conftest$ac_exeext conftest.$ac_ext
3915LIBS=$ac_check_lib_save_LIBS
3916fi
3917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzdopen" >&5
3918$as_echo "$ac_cv_lib_z_gzdopen" >&6; }
3919if test "x$ac_cv_lib_z_gzdopen" = xyes; then :
3920  cat >>confdefs.h <<_ACEOF
3921#define HAVE_LIBZ 1
3922_ACEOF
3923
3924  LIBS="-lz $LIBS"
3925
3926else
3927  as_fn_error $? "zlib must be installed in a compiler-visible path" "$LINENO" 5
3928fi
3929
3930
3931# Make sure certain required headers are available.
3932# These are not necessarily required by the code, but they are not
3933# currently conditionalized.
3934for ac_header in sys/ioctl.h sys/mman.h sys/param.h \
3935	sys/socket.h sys/stat.h sys/time.h sys/types.h sys/utsname.h \
3936	sys/wait.h assert.h ctype.h errno.h fcntl.h grp.h limits.h locale.h \
3937	netdb.h pwd.h signal.h stdarg.h stdio.h stdlib.h string.h \
3938	termios.h unistd.h
3939do :
3940  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3941ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3942if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3943  cat >>confdefs.h <<_ACEOF
3944#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3945_ACEOF
3946
3947else
3948  as_fn_error $? "standard system header file not found" "$LINENO" 5
3949fi
3950
3951done
3952
3953
3954# Find headers that may not be available.
3955ac_header_dirent=no
3956for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3957  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
3959$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
3960if eval \${$as_ac_Header+:} false; then :
3961  $as_echo_n "(cached) " >&6
3962else
3963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964/* end confdefs.h.  */
3965#include <sys/types.h>
3966#include <$ac_hdr>
3967
3968int
3969main ()
3970{
3971if ((DIR *) 0)
3972return 0;
3973  ;
3974  return 0;
3975}
3976_ACEOF
3977if ac_fn_c_try_compile "$LINENO"; then :
3978  eval "$as_ac_Header=yes"
3979else
3980  eval "$as_ac_Header=no"
3981fi
3982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3983fi
3984eval ac_res=\$$as_ac_Header
3985	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3986$as_echo "$ac_res" >&6; }
3987if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3988  cat >>confdefs.h <<_ACEOF
3989#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3990_ACEOF
3991
3992ac_header_dirent=$ac_hdr; break
3993fi
3994
3995done
3996# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3997if test $ac_header_dirent = dirent.h; then
3998  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
3999$as_echo_n "checking for library containing opendir... " >&6; }
4000if ${ac_cv_search_opendir+:} false; then :
4001  $as_echo_n "(cached) " >&6
4002else
4003  ac_func_search_save_LIBS=$LIBS
4004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005/* end confdefs.h.  */
4006
4007/* Override any GCC internal prototype to avoid an error.
4008   Use char because int might match the return type of a GCC
4009   builtin and then its argument prototype would still apply.  */
4010#ifdef __cplusplus
4011extern "C"
4012#endif
4013char opendir ();
4014int
4015main ()
4016{
4017return opendir ();
4018  ;
4019  return 0;
4020}
4021_ACEOF
4022for ac_lib in '' dir; do
4023  if test -z "$ac_lib"; then
4024    ac_res="none required"
4025  else
4026    ac_res=-l$ac_lib
4027    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4028  fi
4029  if ac_fn_c_try_link "$LINENO"; then :
4030  ac_cv_search_opendir=$ac_res
4031fi
4032rm -f core conftest.err conftest.$ac_objext \
4033    conftest$ac_exeext
4034  if ${ac_cv_search_opendir+:} false; then :
4035  break
4036fi
4037done
4038if ${ac_cv_search_opendir+:} false; then :
4039
4040else
4041  ac_cv_search_opendir=no
4042fi
4043rm conftest.$ac_ext
4044LIBS=$ac_func_search_save_LIBS
4045fi
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4047$as_echo "$ac_cv_search_opendir" >&6; }
4048ac_res=$ac_cv_search_opendir
4049if test "$ac_res" != no; then :
4050  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4051
4052fi
4053
4054else
4055  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4056$as_echo_n "checking for library containing opendir... " >&6; }
4057if ${ac_cv_search_opendir+:} false; then :
4058  $as_echo_n "(cached) " >&6
4059else
4060  ac_func_search_save_LIBS=$LIBS
4061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062/* end confdefs.h.  */
4063
4064/* Override any GCC internal prototype to avoid an error.
4065   Use char because int might match the return type of a GCC
4066   builtin and then its argument prototype would still apply.  */
4067#ifdef __cplusplus
4068extern "C"
4069#endif
4070char opendir ();
4071int
4072main ()
4073{
4074return opendir ();
4075  ;
4076  return 0;
4077}
4078_ACEOF
4079for ac_lib in '' x; do
4080  if test -z "$ac_lib"; then
4081    ac_res="none required"
4082  else
4083    ac_res=-l$ac_lib
4084    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4085  fi
4086  if ac_fn_c_try_link "$LINENO"; then :
4087  ac_cv_search_opendir=$ac_res
4088fi
4089rm -f core conftest.err conftest.$ac_objext \
4090    conftest$ac_exeext
4091  if ${ac_cv_search_opendir+:} false; then :
4092  break
4093fi
4094done
4095if ${ac_cv_search_opendir+:} false; then :
4096
4097else
4098  ac_cv_search_opendir=no
4099fi
4100rm conftest.$ac_ext
4101LIBS=$ac_func_search_save_LIBS
4102fi
4103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4104$as_echo "$ac_cv_search_opendir" >&6; }
4105ac_res=$ac_cv_search_opendir
4106if test "$ac_res" != no; then :
4107  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4108
4109fi
4110
4111fi
4112
4113for ac_header in sys/mtio.h sys/sysmacros.h sys/syslimits.h stdio_ext.h \
4114	getopt.h features.h malloc.h sys/poll.h pthread.h stddef.h sys/uio.h
4115do :
4116  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4117ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4118if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4119  cat >>confdefs.h <<_ACEOF
4120#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4121_ACEOF
4122
4123fi
4124
4125done
4126
4127for ac_header in sys/bswap.h machine/bswap.h sys/cdefs.h machine/endian.h \
4128	sys/endian.h sys/featuretest.h err.h inttypes.h libgen.h paths.h \
4129	libgen.h stdint.h util.h resolv.h arpa/nameser.h
4130do :
4131  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4132ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4133if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4134  cat >>confdefs.h <<_ACEOF
4135#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4136_ACEOF
4137
4138else
4139  test -f include/$ac_header || touch include/$ac_header
4140fi
4141
4142done
4143
4144for ac_header in rpc/types.h
4145do :
4146  ac_fn_c_check_header_mongrel "$LINENO" "rpc/types.h" "ac_cv_header_rpc_types_h" "$ac_includes_default"
4147if test "x$ac_cv_header_rpc_types_h" = xyes; then :
4148  cat >>confdefs.h <<_ACEOF
4149#define HAVE_RPC_TYPES_H 1
4150_ACEOF
4151
4152else
4153  echo '#include "nbtool_config.h"' >include/$ac_header.new
4154	echo '#include "'$srcdir/../../common/include/$ac_header'"' \
4155		>>include/$ac_header.new
4156	if cmp include/$ac_header.new include/$ac_header >/dev/null 2>&1; then
4157		rm -f include/$ac_header.new
4158	else
4159		mv -f include/$ac_header.new include/$ac_header
4160	fi
4161fi
4162
4163done
4164
4165for ac_header in netconfig.h
4166do :
4167  ac_fn_c_check_header_mongrel "$LINENO" "netconfig.h" "ac_cv_header_netconfig_h" "$ac_includes_default"
4168if test "x$ac_cv_header_netconfig_h" = xyes; then :
4169  cat >>confdefs.h <<_ACEOF
4170#define HAVE_NETCONFIG_H 1
4171_ACEOF
4172
4173else
4174  echo '#include "nbtool_config.h"' >include/$ac_header.new
4175	echo '#include "'$srcdir/../../include/$ac_header'"' \
4176		>>include/$ac_header.new
4177	if cmp include/$ac_header.new include/$ac_header >/dev/null 2>&1; then
4178		rm -f include/$ac_header.new
4179	else
4180		mv -f include/$ac_header.new include/$ac_header
4181	fi
4182fi
4183
4184done
4185
4186
4187# Typedefs.
4188ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4189if test "x$ac_cv_type_size_t" = xyes; then :
4190
4191else
4192
4193cat >>confdefs.h <<_ACEOF
4194#define size_t unsigned int
4195_ACEOF
4196
4197fi
4198
4199ac_fn_c_check_type "$LINENO" "id_t" "ac_cv_type_id_t" "$ac_includes_default"
4200if test "x$ac_cv_type_id_t" = xyes; then :
4201
4202cat >>confdefs.h <<_ACEOF
4203#define HAVE_ID_T 1
4204_ACEOF
4205
4206
4207fi
4208ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
4209if test "x$ac_cv_type_long_long" = xyes; then :
4210
4211cat >>confdefs.h <<_ACEOF
4212#define HAVE_LONG_LONG 1
4213_ACEOF
4214
4215
4216fi
4217ac_fn_c_check_type "$LINENO" "u_long" "ac_cv_type_u_long" "$ac_includes_default"
4218if test "x$ac_cv_type_u_long" = xyes; then :
4219
4220cat >>confdefs.h <<_ACEOF
4221#define HAVE_U_LONG 1
4222_ACEOF
4223
4224
4225fi
4226ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "$ac_includes_default"
4227if test "x$ac_cv_type_u_char" = xyes; then :
4228
4229cat >>confdefs.h <<_ACEOF
4230#define HAVE_U_CHAR 1
4231_ACEOF
4232
4233
4234fi
4235ac_fn_c_check_type "$LINENO" "u_short" "ac_cv_type_u_short" "$ac_includes_default"
4236if test "x$ac_cv_type_u_short" = xyes; then :
4237
4238cat >>confdefs.h <<_ACEOF
4239#define HAVE_U_SHORT 1
4240_ACEOF
4241
4242
4243fi
4244ac_fn_c_check_type "$LINENO" "u_int" "ac_cv_type_u_int" "$ac_includes_default"
4245if test "x$ac_cv_type_u_int" = xyes; then :
4246
4247cat >>confdefs.h <<_ACEOF
4248#define HAVE_U_INT 1
4249_ACEOF
4250
4251
4252fi
4253ac_fn_c_check_type "$LINENO" "u_quad_t" "ac_cv_type_u_quad_t" "$ac_includes_default"
4254if test "x$ac_cv_type_u_quad_t" = xyes; then :
4255
4256cat >>confdefs.h <<_ACEOF
4257#define HAVE_U_QUAD_T 1
4258_ACEOF
4259
4260
4261fi
4262
4263ac_fn_c_check_type "$LINENO" "uchar_t" "ac_cv_type_uchar_t" "$ac_includes_default"
4264if test "x$ac_cv_type_uchar_t" = xyes; then :
4265
4266cat >>confdefs.h <<_ACEOF
4267#define HAVE_UCHAR_T 1
4268_ACEOF
4269
4270
4271fi
4272ac_fn_c_check_type "$LINENO" "ushort_t" "ac_cv_type_ushort_t" "$ac_includes_default"
4273if test "x$ac_cv_type_ushort_t" = xyes; then :
4274
4275cat >>confdefs.h <<_ACEOF
4276#define HAVE_USHORT_T 1
4277_ACEOF
4278
4279
4280fi
4281ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
4282if test "x$ac_cv_type_uint_t" = xyes; then :
4283
4284cat >>confdefs.h <<_ACEOF
4285#define HAVE_UINT_T 1
4286_ACEOF
4287
4288
4289fi
4290ac_fn_c_check_type "$LINENO" "ulong_t" "ac_cv_type_ulong_t" "$ac_includes_default"
4291if test "x$ac_cv_type_ulong_t" = xyes; then :
4292
4293cat >>confdefs.h <<_ACEOF
4294#define HAVE_ULONG_T 1
4295_ACEOF
4296
4297
4298fi
4299
4300ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
4301#ifdef HAVE_RPC_TYPES_H
4302#include <rpc/types.h>
4303#endif
4304#include <sys/socket.h>
4305"
4306if test "x$ac_cv_type_socklen_t" = xyes; then :
4307
4308$as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
4309
4310fi
4311
4312
4313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for enum uio_rw" >&5
4314$as_echo_n "checking for enum uio_rw... " >&6; }
4315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316/* end confdefs.h.  */
4317
4318#include <sys/types.h>
4319#ifdef HAVE_SYS_UIO_H
4320#include <sys/uio.h>
4321#endif
4322int
4323main ()
4324{
4325enum uio_rw rw;
4326  ;
4327  return 0;
4328}
4329_ACEOF
4330if ac_fn_c_try_compile "$LINENO"; then :
4331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4332$as_echo "yes" >&6; }
4333
4334$as_echo "#define HAVE_ENUM_UIO_RW 1" >>confdefs.h
4335
4336else
4337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338$as_echo "no" >&6; }
4339fi
4340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4341
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for enum uio_seg" >&5
4343$as_echo_n "checking for enum uio_seg... " >&6; }
4344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345/* end confdefs.h.  */
4346
4347#include <sys/types.h>
4348#ifdef HAVE_SYS_UIO_H
4349#include <sys/uio.h>
4350#endif
4351int
4352main ()
4353{
4354enum uio_seg seg;
4355  ;
4356  return 0;
4357}
4358_ACEOF
4359if ac_fn_c_try_compile "$LINENO"; then :
4360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4361$as_echo "yes" >&6; }
4362
4363$as_echo "#define HAVE_ENUM_UIO_SEG 1" >>confdefs.h
4364
4365else
4366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4367$as_echo "no" >&6; }
4368fi
4369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4370
4371
4372	ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
4373if test "x$ac_cv_type_uint8_t" = xyes; then :
4374
4375else
4376
4377		ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
4378if test "x$ac_cv_type_u_int8_t" = xyes; then :
4379
4380$as_echo "#define uint8_t u_int8_t" >>confdefs.h
4381
4382else
4383  as_fn_error $? "cannot find a suitable type for uint8_t" "$LINENO" 5
4384fi
4385
4386
4387fi
4388
4389	ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
4390if test "x$ac_cv_type_u_int8_t" = xyes; then :
4391
4392else
4393
4394		ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
4395if test "x$ac_cv_type_uint8_t" = xyes; then :
4396
4397$as_echo "#define u_int8_t uint8_t" >>confdefs.h
4398
4399else
4400  as_fn_error $? "cannot find a suitable type for u_int8_t" "$LINENO" 5
4401fi
4402
4403
4404fi
4405
4406
4407	ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
4408if test "x$ac_cv_type_uint16_t" = xyes; then :
4409
4410else
4411
4412		ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
4413if test "x$ac_cv_type_u_int16_t" = xyes; then :
4414
4415$as_echo "#define uint16_t u_int16_t" >>confdefs.h
4416
4417else
4418  as_fn_error $? "cannot find a suitable type for uint16_t" "$LINENO" 5
4419fi
4420
4421
4422fi
4423
4424	ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
4425if test "x$ac_cv_type_u_int16_t" = xyes; then :
4426
4427else
4428
4429		ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
4430if test "x$ac_cv_type_uint16_t" = xyes; then :
4431
4432$as_echo "#define u_int16_t uint16_t" >>confdefs.h
4433
4434else
4435  as_fn_error $? "cannot find a suitable type for u_int16_t" "$LINENO" 5
4436fi
4437
4438
4439fi
4440
4441
4442	ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
4443if test "x$ac_cv_type_uint32_t" = xyes; then :
4444
4445else
4446
4447		ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
4448if test "x$ac_cv_type_u_int32_t" = xyes; then :
4449
4450$as_echo "#define uint32_t u_int32_t" >>confdefs.h
4451
4452else
4453  as_fn_error $? "cannot find a suitable type for uint32_t" "$LINENO" 5
4454fi
4455
4456
4457fi
4458
4459	ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
4460if test "x$ac_cv_type_u_int32_t" = xyes; then :
4461
4462else
4463
4464		ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
4465if test "x$ac_cv_type_uint32_t" = xyes; then :
4466
4467$as_echo "#define u_int32_t uint32_t" >>confdefs.h
4468
4469else
4470  as_fn_error $? "cannot find a suitable type for u_int32_t" "$LINENO" 5
4471fi
4472
4473
4474fi
4475
4476
4477	ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
4478if test "x$ac_cv_type_uint64_t" = xyes; then :
4479
4480else
4481
4482		ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
4483if test "x$ac_cv_type_u_int64_t" = xyes; then :
4484
4485$as_echo "#define uint64_t u_int64_t" >>confdefs.h
4486
4487else
4488  as_fn_error $? "cannot find a suitable type for uint64_t" "$LINENO" 5
4489fi
4490
4491
4492fi
4493
4494	ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
4495if test "x$ac_cv_type_u_int64_t" = xyes; then :
4496
4497else
4498
4499		ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
4500if test "x$ac_cv_type_uint64_t" = xyes; then :
4501
4502$as_echo "#define u_int64_t uint64_t" >>confdefs.h
4503
4504else
4505  as_fn_error $? "cannot find a suitable type for u_int64_t" "$LINENO" 5
4506fi
4507
4508
4509fi
4510
4511
4512
4513# Struct members.
4514ac_fn_c_check_member "$LINENO" "DIR" "dd_fd" "ac_cv_member_DIR_dd_fd" "#include <sys/types.h>
4515#include <dirent.h>
4516"
4517if test "x$ac_cv_member_DIR_dd_fd" = xyes; then :
4518
4519cat >>confdefs.h <<_ACEOF
4520#define HAVE_DIR_DD_FD 1
4521_ACEOF
4522
4523
4524fi
4525ac_fn_c_check_member "$LINENO" "DIR" "__dd_fd" "ac_cv_member_DIR___dd_fd" "#include <sys/types.h>
4526#include <dirent.h>
4527"
4528if test "x$ac_cv_member_DIR___dd_fd" = xyes; then :
4529
4530cat >>confdefs.h <<_ACEOF
4531#define HAVE_DIR___DD_FD 1
4532_ACEOF
4533
4534
4535fi
4536ac_fn_c_check_member "$LINENO" "struct dirent" "d_namlen" "ac_cv_member_struct_dirent_d_namlen" "#include <sys/types.h>
4537#include <dirent.h>
4538"
4539if test "x$ac_cv_member_struct_dirent_d_namlen" = xyes; then :
4540
4541cat >>confdefs.h <<_ACEOF
4542#define HAVE_STRUCT_DIRENT_D_NAMLEN 1
4543_ACEOF
4544
4545
4546fi
4547
4548ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "#include <sys/stat.h>
4549"
4550if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then :
4551
4552cat >>confdefs.h <<_ACEOF
4553#define HAVE_STRUCT_STAT_ST_FLAGS 1
4554_ACEOF
4555
4556
4557fi
4558ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "#include <sys/stat.h>
4559"
4560if test "x$ac_cv_member_struct_stat_st_gen" = xyes; then :
4561
4562cat >>confdefs.h <<_ACEOF
4563#define HAVE_STRUCT_STAT_ST_GEN 1
4564_ACEOF
4565
4566
4567fi
4568ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "#include <sys/stat.h>
4569"
4570if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
4571
4572cat >>confdefs.h <<_ACEOF
4573#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
4574_ACEOF
4575
4576
4577fi
4578ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/stat.h>
4579"
4580if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes; then :
4581
4582cat >>confdefs.h <<_ACEOF
4583#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
4584_ACEOF
4585
4586
4587fi
4588ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "#include <sys/stat.h>
4589"
4590if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
4591
4592cat >>confdefs.h <<_ACEOF
4593#define HAVE_STRUCT_STAT_ST_ATIM 1
4594_ACEOF
4595
4596
4597fi
4598ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "#include <sys/stat.h>
4599"
4600if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then :
4601
4602cat >>confdefs.h <<_ACEOF
4603#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
4604_ACEOF
4605
4606
4607fi
4608
4609ac_fn_c_check_member "$LINENO" "struct statvfs" "f_iosize" "ac_cv_member_struct_statvfs_f_iosize" "#include <sys/statvfs.h>
4610"
4611if test "x$ac_cv_member_struct_statvfs_f_iosize" = xyes; then :
4612
4613cat >>confdefs.h <<_ACEOF
4614#define HAVE_STRUCT_STATVFS_F_IOSIZE 1
4615_ACEOF
4616
4617
4618fi
4619
4620ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
4621"
4622if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
4623
4624cat >>confdefs.h <<_ACEOF
4625#define HAVE_STRUCT_TM_TM_GMTOFF 1
4626_ACEOF
4627
4628
4629fi
4630
4631
4632# Global variable decls.
4633ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "
4634#include <stdio.h>
4635
4636"
4637if test "x$ac_cv_have_decl_asprintf" = xyes; then :
4638  ac_have_decl=1
4639else
4640  ac_have_decl=0
4641fi
4642
4643cat >>confdefs.h <<_ACEOF
4644#define HAVE_DECL_ASPRINTF $ac_have_decl
4645_ACEOF
4646ac_fn_c_check_decl "$LINENO" "asnprintf" "ac_cv_have_decl_asnprintf" "
4647#include <stdio.h>
4648
4649"
4650if test "x$ac_cv_have_decl_asnprintf" = xyes; then :
4651  ac_have_decl=1
4652else
4653  ac_have_decl=0
4654fi
4655
4656cat >>confdefs.h <<_ACEOF
4657#define HAVE_DECL_ASNPRINTF $ac_have_decl
4658_ACEOF
4659ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "
4660#include <stdio.h>
4661
4662"
4663if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
4664  ac_have_decl=1
4665else
4666  ac_have_decl=0
4667fi
4668
4669cat >>confdefs.h <<_ACEOF
4670#define HAVE_DECL_VASPRINTF $ac_have_decl
4671_ACEOF
4672ac_fn_c_check_decl "$LINENO" "vasnprintf" "ac_cv_have_decl_vasnprintf" "
4673#include <stdio.h>
4674
4675"
4676if test "x$ac_cv_have_decl_vasnprintf" = xyes; then :
4677  ac_have_decl=1
4678else
4679  ac_have_decl=0
4680fi
4681
4682cat >>confdefs.h <<_ACEOF
4683#define HAVE_DECL_VASNPRINTF $ac_have_decl
4684_ACEOF
4685ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
4686#include <stdio.h>
4687
4688"
4689if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
4690  ac_have_decl=1
4691else
4692  ac_have_decl=0
4693fi
4694
4695cat >>confdefs.h <<_ACEOF
4696#define HAVE_DECL_VSNPRINTF $ac_have_decl
4697_ACEOF
4698ac_fn_c_check_decl "$LINENO" "fgetln" "ac_cv_have_decl_fgetln" "
4699#include <stdio.h>
4700
4701"
4702if test "x$ac_cv_have_decl_fgetln" = xyes; then :
4703  ac_have_decl=1
4704else
4705  ac_have_decl=0
4706fi
4707
4708cat >>confdefs.h <<_ACEOF
4709#define HAVE_DECL_FGETLN $ac_have_decl
4710_ACEOF
4711ac_fn_c_check_decl "$LINENO" "fparseln" "ac_cv_have_decl_fparseln" "
4712#include <stdio.h>
4713
4714"
4715if test "x$ac_cv_have_decl_fparseln" = xyes; then :
4716  ac_have_decl=1
4717else
4718  ac_have_decl=0
4719fi
4720
4721cat >>confdefs.h <<_ACEOF
4722#define HAVE_DECL_FPARSELN $ac_have_decl
4723_ACEOF
4724ac_fn_c_check_decl "$LINENO" "fpurge" "ac_cv_have_decl_fpurge" "
4725#include <stdio.h>
4726
4727"
4728if test "x$ac_cv_have_decl_fpurge" = xyes; then :
4729  ac_have_decl=1
4730else
4731  ac_have_decl=0
4732fi
4733
4734cat >>confdefs.h <<_ACEOF
4735#define HAVE_DECL_FPURGE $ac_have_decl
4736_ACEOF
4737ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "
4738#include <stdio.h>
4739
4740"
4741if test "x$ac_cv_have_decl_getdelim" = xyes; then :
4742  ac_have_decl=1
4743else
4744  ac_have_decl=0
4745fi
4746
4747cat >>confdefs.h <<_ACEOF
4748#define HAVE_DECL_GETDELIM $ac_have_decl
4749_ACEOF
4750ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "
4751#include <stdio.h>
4752
4753"
4754if test "x$ac_cv_have_decl_getline" = xyes; then :
4755  ac_have_decl=1
4756else
4757  ac_have_decl=0
4758fi
4759
4760cat >>confdefs.h <<_ACEOF
4761#define HAVE_DECL_GETLINE $ac_have_decl
4762_ACEOF
4763ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "
4764#include <stdio.h>
4765
4766"
4767if test "x$ac_cv_have_decl_snprintf" = xyes; then :
4768  ac_have_decl=1
4769else
4770  ac_have_decl=0
4771fi
4772
4773cat >>confdefs.h <<_ACEOF
4774#define HAVE_DECL_SNPRINTF $ac_have_decl
4775_ACEOF
4776
4777
4778ac_fn_c_check_decl "$LINENO" "atoll" "ac_cv_have_decl_atoll" "
4779#include <stdlib.h>
4780
4781"
4782if test "x$ac_cv_have_decl_atoll" = xyes; then :
4783  ac_have_decl=1
4784else
4785  ac_have_decl=0
4786fi
4787
4788cat >>confdefs.h <<_ACEOF
4789#define HAVE_DECL_ATOLL $ac_have_decl
4790_ACEOF
4791ac_fn_c_check_decl "$LINENO" "heapsort" "ac_cv_have_decl_heapsort" "
4792#include <stdlib.h>
4793
4794"
4795if test "x$ac_cv_have_decl_heapsort" = xyes; then :
4796  ac_have_decl=1
4797else
4798  ac_have_decl=0
4799fi
4800
4801cat >>confdefs.h <<_ACEOF
4802#define HAVE_DECL_HEAPSORT $ac_have_decl
4803_ACEOF
4804ac_fn_c_check_decl "$LINENO" "mkdtemp" "ac_cv_have_decl_mkdtemp" "
4805#include <stdlib.h>
4806
4807"
4808if test "x$ac_cv_have_decl_mkdtemp" = xyes; then :
4809  ac_have_decl=1
4810else
4811  ac_have_decl=0
4812fi
4813
4814cat >>confdefs.h <<_ACEOF
4815#define HAVE_DECL_MKDTEMP $ac_have_decl
4816_ACEOF
4817ac_fn_c_check_decl "$LINENO" "mkstemp" "ac_cv_have_decl_mkstemp" "
4818#include <stdlib.h>
4819
4820"
4821if test "x$ac_cv_have_decl_mkstemp" = xyes; then :
4822  ac_have_decl=1
4823else
4824  ac_have_decl=0
4825fi
4826
4827cat >>confdefs.h <<_ACEOF
4828#define HAVE_DECL_MKSTEMP $ac_have_decl
4829_ACEOF
4830ac_fn_c_check_decl "$LINENO" "reallocarr" "ac_cv_have_decl_reallocarr" "
4831#include <stdlib.h>
4832
4833"
4834if test "x$ac_cv_have_decl_reallocarr" = xyes; then :
4835  ac_have_decl=1
4836else
4837  ac_have_decl=0
4838fi
4839
4840cat >>confdefs.h <<_ACEOF
4841#define HAVE_DECL_REALLOCARR $ac_have_decl
4842_ACEOF
4843ac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "
4844#include <stdlib.h>
4845
4846"
4847if test "x$ac_cv_have_decl_reallocarray" = xyes; then :
4848  ac_have_decl=1
4849else
4850  ac_have_decl=0
4851fi
4852
4853cat >>confdefs.h <<_ACEOF
4854#define HAVE_DECL_REALLOCARRAY $ac_have_decl
4855_ACEOF
4856ac_fn_c_check_decl "$LINENO" "getsubopt" "ac_cv_have_decl_getsubopt" "
4857#include <stdlib.h>
4858
4859"
4860if test "x$ac_cv_have_decl_getsubopt" = xyes; then :
4861  ac_have_decl=1
4862else
4863  ac_have_decl=0
4864fi
4865
4866cat >>confdefs.h <<_ACEOF
4867#define HAVE_DECL_GETSUBOPT $ac_have_decl
4868_ACEOF
4869ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "
4870#include <stdlib.h>
4871
4872"
4873if test "x$ac_cv_have_decl_setenv" = xyes; then :
4874  ac_have_decl=1
4875else
4876  ac_have_decl=0
4877fi
4878
4879cat >>confdefs.h <<_ACEOF
4880#define HAVE_DECL_SETENV $ac_have_decl
4881_ACEOF
4882ac_fn_c_check_decl "$LINENO" "strtoi" "ac_cv_have_decl_strtoi" "
4883#include <stdlib.h>
4884
4885"
4886if test "x$ac_cv_have_decl_strtoi" = xyes; then :
4887  ac_have_decl=1
4888else
4889  ac_have_decl=0
4890fi
4891
4892cat >>confdefs.h <<_ACEOF
4893#define HAVE_DECL_STRTOI $ac_have_decl
4894_ACEOF
4895ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "
4896#include <stdlib.h>
4897
4898"
4899if test "x$ac_cv_have_decl_strtoll" = xyes; then :
4900  ac_have_decl=1
4901else
4902  ac_have_decl=0
4903fi
4904
4905cat >>confdefs.h <<_ACEOF
4906#define HAVE_DECL_STRTOLL $ac_have_decl
4907_ACEOF
4908ac_fn_c_check_decl "$LINENO" "strtou" "ac_cv_have_decl_strtou" "
4909#include <stdlib.h>
4910
4911"
4912if test "x$ac_cv_have_decl_strtou" = xyes; then :
4913  ac_have_decl=1
4914else
4915  ac_have_decl=0
4916fi
4917
4918cat >>confdefs.h <<_ACEOF
4919#define HAVE_DECL_STRTOU $ac_have_decl
4920_ACEOF
4921ac_fn_c_check_decl "$LINENO" "setprogname" "ac_cv_have_decl_setprogname" "
4922#include <stdlib.h>
4923
4924"
4925if test "x$ac_cv_have_decl_setprogname" = xyes; then :
4926  ac_have_decl=1
4927else
4928  ac_have_decl=0
4929fi
4930
4931cat >>confdefs.h <<_ACEOF
4932#define HAVE_DECL_SETPROGNAME $ac_have_decl
4933_ACEOF
4934ac_fn_c_check_decl "$LINENO" "getprogname" "ac_cv_have_decl_getprogname" "
4935#include <stdlib.h>
4936
4937"
4938if test "x$ac_cv_have_decl_getprogname" = xyes; then :
4939  ac_have_decl=1
4940else
4941  ac_have_decl=0
4942fi
4943
4944cat >>confdefs.h <<_ACEOF
4945#define HAVE_DECL_GETPROGNAME $ac_have_decl
4946_ACEOF
4947
4948
4949ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "
4950#include <libgen.h>
4951
4952"
4953if test "x$ac_cv_have_decl_basename" = xyes; then :
4954  ac_have_decl=1
4955else
4956  ac_have_decl=0
4957fi
4958
4959cat >>confdefs.h <<_ACEOF
4960#define HAVE_DECL_BASENAME $ac_have_decl
4961_ACEOF
4962ac_fn_c_check_decl "$LINENO" "dirname" "ac_cv_have_decl_dirname" "
4963#include <libgen.h>
4964
4965"
4966if test "x$ac_cv_have_decl_dirname" = xyes; then :
4967  ac_have_decl=1
4968else
4969  ac_have_decl=0
4970fi
4971
4972cat >>confdefs.h <<_ACEOF
4973#define HAVE_DECL_DIRNAME $ac_have_decl
4974_ACEOF
4975
4976
4977ac_fn_c_check_decl "$LINENO" "raise_default_signal" "ac_cv_have_decl_raise_default_signal" "
4978#include <util.h>
4979
4980"
4981if test "x$ac_cv_have_decl_raise_default_signal" = xyes; then :
4982  ac_have_decl=1
4983else
4984  ac_have_decl=0
4985fi
4986
4987cat >>confdefs.h <<_ACEOF
4988#define HAVE_DECL_RAISE_DEFAULT_SIGNAL $ac_have_decl
4989_ACEOF
4990
4991
4992ac_fn_c_check_decl "$LINENO" "issetugid" "ac_cv_have_decl_issetugid" "
4993#include <unistd.h>
4994
4995"
4996if test "x$ac_cv_have_decl_issetugid" = xyes; then :
4997  ac_have_decl=1
4998else
4999  ac_have_decl=0
5000fi
5001
5002cat >>confdefs.h <<_ACEOF
5003#define HAVE_DECL_ISSETUGID $ac_have_decl
5004_ACEOF
5005ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
5006#include <unistd.h>
5007
5008"
5009if test "x$ac_cv_have_decl_pread" = xyes; then :
5010  ac_have_decl=1
5011else
5012  ac_have_decl=0
5013fi
5014
5015cat >>confdefs.h <<_ACEOF
5016#define HAVE_DECL_PREAD $ac_have_decl
5017_ACEOF
5018ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
5019#include <unistd.h>
5020
5021"
5022if test "x$ac_cv_have_decl_pwrite" = xyes; then :
5023  ac_have_decl=1
5024else
5025  ac_have_decl=0
5026fi
5027
5028cat >>confdefs.h <<_ACEOF
5029#define HAVE_DECL_PWRITE $ac_have_decl
5030_ACEOF
5031
5032
5033ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "
5034#include <unistd.h>
5035#include <string.h>
5036
5037"
5038if test "x$ac_cv_have_decl_strmode" = xyes; then :
5039  ac_have_decl=1
5040else
5041  ac_have_decl=0
5042fi
5043
5044cat >>confdefs.h <<_ACEOF
5045#define HAVE_DECL_STRMODE $ac_have_decl
5046_ACEOF
5047
5048
5049ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "
5050#include <ctype.h>
5051
5052"
5053if test "x$ac_cv_have_decl_isblank" = xyes; then :
5054  ac_have_decl=1
5055else
5056  ac_have_decl=0
5057fi
5058
5059cat >>confdefs.h <<_ACEOF
5060#define HAVE_DECL_ISBLANK $ac_have_decl
5061_ACEOF
5062
5063
5064
5065ac_fn_c_check_decl "$LINENO" "optind" "ac_cv_have_decl_optind" "
5066#include <stdio.h>
5067#include <stdlib.h>
5068#include <unistd.h>
5069#ifdef HAVE_GETOPT_H
5070#include <getopt.h>
5071#endif
5072
5073"
5074if test "x$ac_cv_have_decl_optind" = xyes; then :
5075  ac_have_decl=1
5076else
5077  ac_have_decl=0
5078fi
5079
5080cat >>confdefs.h <<_ACEOF
5081#define HAVE_DECL_OPTIND $ac_have_decl
5082_ACEOF
5083ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "
5084#include <stdio.h>
5085#include <stdlib.h>
5086#include <unistd.h>
5087#ifdef HAVE_GETOPT_H
5088#include <getopt.h>
5089#endif
5090
5091"
5092if test "x$ac_cv_have_decl_optreset" = xyes; then :
5093  ac_have_decl=1
5094else
5095  ac_have_decl=0
5096fi
5097
5098cat >>confdefs.h <<_ACEOF
5099#define HAVE_DECL_OPTRESET $ac_have_decl
5100_ACEOF
5101
5102ac_fn_c_check_decl "$LINENO" "sys_signame" "ac_cv_have_decl_sys_signame" "#include <signal.h>
5103"
5104if test "x$ac_cv_have_decl_sys_signame" = xyes; then :
5105  ac_have_decl=1
5106else
5107  ac_have_decl=0
5108fi
5109
5110cat >>confdefs.h <<_ACEOF
5111#define HAVE_DECL_SYS_SIGNAME $ac_have_decl
5112_ACEOF
5113
5114
5115# Library functions (where a .h check isn't enough).
5116# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5117# for constant arguments.  Useless!
5118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5119$as_echo_n "checking for working alloca.h... " >&6; }
5120if ${ac_cv_working_alloca_h+:} false; then :
5121  $as_echo_n "(cached) " >&6
5122else
5123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5124/* end confdefs.h.  */
5125#include <alloca.h>
5126int
5127main ()
5128{
5129char *p = (char *) alloca (2 * sizeof (int));
5130			  if (p) return 0;
5131  ;
5132  return 0;
5133}
5134_ACEOF
5135if ac_fn_c_try_link "$LINENO"; then :
5136  ac_cv_working_alloca_h=yes
5137else
5138  ac_cv_working_alloca_h=no
5139fi
5140rm -f core conftest.err conftest.$ac_objext \
5141    conftest$ac_exeext conftest.$ac_ext
5142fi
5143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5144$as_echo "$ac_cv_working_alloca_h" >&6; }
5145if test $ac_cv_working_alloca_h = yes; then
5146
5147$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5148
5149fi
5150
5151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5152$as_echo_n "checking for alloca... " >&6; }
5153if ${ac_cv_func_alloca_works+:} false; then :
5154  $as_echo_n "(cached) " >&6
5155else
5156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5157/* end confdefs.h.  */
5158#ifdef __GNUC__
5159# define alloca __builtin_alloca
5160#else
5161# ifdef _MSC_VER
5162#  include <malloc.h>
5163#  define alloca _alloca
5164# elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
5165#   include <stdlib.h>
5166# else
5167#  ifdef HAVE_ALLOCA_H
5168#   include <alloca.h>
5169#  else
5170#   ifdef _AIX
5171 #pragma alloca
5172#   else
5173#    ifndef alloca /* predefined by HP cc +Olibcalls */
5174void *alloca (size_t);
5175#    endif
5176#   endif
5177#  endif
5178# endif
5179#endif
5180
5181int
5182main ()
5183{
5184char *p = (char *) alloca (1);
5185				    if (p) return 0;
5186  ;
5187  return 0;
5188}
5189_ACEOF
5190if ac_fn_c_try_link "$LINENO"; then :
5191  ac_cv_func_alloca_works=yes
5192else
5193  ac_cv_func_alloca_works=no
5194fi
5195rm -f core conftest.err conftest.$ac_objext \
5196    conftest$ac_exeext conftest.$ac_ext
5197fi
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5199$as_echo "$ac_cv_func_alloca_works" >&6; }
5200
5201if test $ac_cv_func_alloca_works = yes; then
5202
5203$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5204
5205else
5206  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5207# that cause trouble.  Some versions do not even contain alloca or
5208# contain a buggy version.  If you still want to use their alloca,
5209# use ar to extract alloca.o from them instead of compiling alloca.c.
5210
5211ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5212
5213$as_echo "#define C_ALLOCA 1" >>confdefs.h
5214
5215
5216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5217$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5218if ${ac_cv_os_cray+:} false; then :
5219  $as_echo_n "(cached) " >&6
5220else
5221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222/* end confdefs.h.  */
5223#if defined CRAY && ! defined CRAY2
5224webecray
5225#else
5226wenotbecray
5227#endif
5228
5229_ACEOF
5230if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5231  $EGREP "webecray" >/dev/null 2>&1; then :
5232  ac_cv_os_cray=yes
5233else
5234  ac_cv_os_cray=no
5235fi
5236rm -f conftest*
5237
5238fi
5239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5240$as_echo "$ac_cv_os_cray" >&6; }
5241if test $ac_cv_os_cray = yes; then
5242  for ac_func in _getb67 GETB67 getb67; do
5243    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5244ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5245if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5246
5247cat >>confdefs.h <<_ACEOF
5248#define CRAY_STACKSEG_END $ac_func
5249_ACEOF
5250
5251    break
5252fi
5253
5254  done
5255fi
5256
5257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5258$as_echo_n "checking stack direction for C alloca... " >&6; }
5259if ${ac_cv_c_stack_direction+:} false; then :
5260  $as_echo_n "(cached) " >&6
5261else
5262  if test "$cross_compiling" = yes; then :
5263  ac_cv_c_stack_direction=0
5264else
5265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5266/* end confdefs.h.  */
5267$ac_includes_default
5268int
5269find_stack_direction (int *addr, int depth)
5270{
5271  int dir, dummy = 0;
5272  if (! addr)
5273    addr = &dummy;
5274  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5275  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5276  return dir + dummy;
5277}
5278
5279int
5280main (int argc, char **argv)
5281{
5282  return find_stack_direction (0, argc + !argv + 20) < 0;
5283}
5284_ACEOF
5285if ac_fn_c_try_run "$LINENO"; then :
5286  ac_cv_c_stack_direction=1
5287else
5288  ac_cv_c_stack_direction=-1
5289fi
5290rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5291  conftest.$ac_objext conftest.beam conftest.$ac_ext
5292fi
5293
5294fi
5295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5296$as_echo "$ac_cv_c_stack_direction" >&6; }
5297cat >>confdefs.h <<_ACEOF
5298#define STACK_DIRECTION $ac_cv_c_stack_direction
5299_ACEOF
5300
5301
5302fi
5303
5304for ac_func in atoll asprintf asnprintf basename devname dirfd dirname \
5305	dispatch_semaphore_create \
5306	dprintf esetfunc fgetln flock fpurge __fpurge futimes getline \
5307	getopt getopt_long group_from_gid gid_from_group \
5308	heapsort isblank issetugid lchflags lchmod lchown lutimes mkstemp \
5309	mkdtemp poll posix_spawn pread putc_unlocked pwcache_userdb pwcache_groupdb \
5310	pwrite raise_default_signal random reallocarr reallocarray setenv \
5311	setgroupent setprogname setpassent \
5312	snprintb_m snprintf strlcat strlcpy strmode \
5313	strcasecmp strncasecmp strndup strnlen strsep strsuftoll strtoi \
5314	strtoll strtou \
5315	user_from_uid uid_from_user vasprintf vasnprintf vsnprintf
5316do :
5317  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5318ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5319if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5320  cat >>confdefs.h <<_ACEOF
5321#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5322_ACEOF
5323
5324fi
5325done
5326
5327
5328ac_fn_c_check_decl "$LINENO" "user_from_uid" "ac_cv_have_decl_user_from_uid" "
5329#include <pwd.h>
5330
5331"
5332if test "x$ac_cv_have_decl_user_from_uid" = xyes; then :
5333  ac_have_decl=1
5334else
5335  ac_have_decl=0
5336fi
5337
5338cat >>confdefs.h <<_ACEOF
5339#define HAVE_DECL_USER_FROM_UID $ac_have_decl
5340_ACEOF
5341ac_fn_c_check_decl "$LINENO" "uid_from_user" "ac_cv_have_decl_uid_from_user" "
5342#include <pwd.h>
5343
5344"
5345if test "x$ac_cv_have_decl_uid_from_user" = xyes; then :
5346  ac_have_decl=1
5347else
5348  ac_have_decl=0
5349fi
5350
5351cat >>confdefs.h <<_ACEOF
5352#define HAVE_DECL_UID_FROM_USER $ac_have_decl
5353_ACEOF
5354ac_fn_c_check_decl "$LINENO" "pwcache_userdb" "ac_cv_have_decl_pwcache_userdb" "
5355#include <pwd.h>
5356
5357"
5358if test "x$ac_cv_have_decl_pwcache_userdb" = xyes; then :
5359  ac_have_decl=1
5360else
5361  ac_have_decl=0
5362fi
5363
5364cat >>confdefs.h <<_ACEOF
5365#define HAVE_DECL_PWCACHE_USERDB $ac_have_decl
5366_ACEOF
5367
5368ac_fn_c_check_decl "$LINENO" "group_from_gid" "ac_cv_have_decl_group_from_gid" "
5369#include <grp.h>
5370
5371"
5372if test "x$ac_cv_have_decl_group_from_gid" = xyes; then :
5373  ac_have_decl=1
5374else
5375  ac_have_decl=0
5376fi
5377
5378cat >>confdefs.h <<_ACEOF
5379#define HAVE_DECL_GROUP_FROM_GID $ac_have_decl
5380_ACEOF
5381ac_fn_c_check_decl "$LINENO" "gid_from_group" "ac_cv_have_decl_gid_from_group" "
5382#include <grp.h>
5383
5384"
5385if test "x$ac_cv_have_decl_gid_from_group" = xyes; then :
5386  ac_have_decl=1
5387else
5388  ac_have_decl=0
5389fi
5390
5391cat >>confdefs.h <<_ACEOF
5392#define HAVE_DECL_GID_FROM_GROUP $ac_have_decl
5393_ACEOF
5394ac_fn_c_check_decl "$LINENO" "pwcache_groupdb" "ac_cv_have_decl_pwcache_groupdb" "
5395#include <grp.h>
5396
5397"
5398if test "x$ac_cv_have_decl_pwcache_groupdb" = xyes; then :
5399  ac_have_decl=1
5400else
5401  ac_have_decl=0
5402fi
5403
5404cat >>confdefs.h <<_ACEOF
5405#define HAVE_DECL_PWCACHE_GROUPDB $ac_have_decl
5406_ACEOF
5407
5408ac_fn_c_check_decl "$LINENO" "strcasecmp" "ac_cv_have_decl_strcasecmp" "
5409#include <string.h>
5410
5411"
5412if test "x$ac_cv_have_decl_strcasecmp" = xyes; then :
5413  ac_have_decl=1
5414else
5415  ac_have_decl=0
5416fi
5417
5418cat >>confdefs.h <<_ACEOF
5419#define HAVE_DECL_STRCASECMP $ac_have_decl
5420_ACEOF
5421ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "
5422#include <string.h>
5423
5424"
5425if test "x$ac_cv_have_decl_strncasecmp" = xyes; then :
5426  ac_have_decl=1
5427else
5428  ac_have_decl=0
5429fi
5430
5431cat >>confdefs.h <<_ACEOF
5432#define HAVE_DECL_STRNCASECMP $ac_have_decl
5433_ACEOF
5434ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
5435#include <string.h>
5436
5437"
5438if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
5439  ac_have_decl=1
5440else
5441  ac_have_decl=0
5442fi
5443
5444cat >>confdefs.h <<_ACEOF
5445#define HAVE_DECL_STRLCPY $ac_have_decl
5446_ACEOF
5447ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "
5448#include <string.h>
5449
5450"
5451if test "x$ac_cv_have_decl_strlcat" = xyes; then :
5452  ac_have_decl=1
5453else
5454  ac_have_decl=0
5455fi
5456
5457cat >>confdefs.h <<_ACEOF
5458#define HAVE_DECL_STRLCAT $ac_have_decl
5459_ACEOF
5460ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "
5461#include <string.h>
5462
5463"
5464if test "x$ac_cv_have_decl_strndup" = xyes; then :
5465  ac_have_decl=1
5466else
5467  ac_have_decl=0
5468fi
5469
5470cat >>confdefs.h <<_ACEOF
5471#define HAVE_DECL_STRNDUP $ac_have_decl
5472_ACEOF
5473ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "
5474#include <string.h>
5475
5476"
5477if test "x$ac_cv_have_decl_strnlen" = xyes; then :
5478  ac_have_decl=1
5479else
5480  ac_have_decl=0
5481fi
5482
5483cat >>confdefs.h <<_ACEOF
5484#define HAVE_DECL_STRNLEN $ac_have_decl
5485_ACEOF
5486ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "
5487#include <string.h>
5488
5489"
5490if test "x$ac_cv_have_decl_strsep" = xyes; then :
5491  ac_have_decl=1
5492else
5493  ac_have_decl=0
5494fi
5495
5496cat >>confdefs.h <<_ACEOF
5497#define HAVE_DECL_STRSEP $ac_have_decl
5498_ACEOF
5499
5500ac_fn_c_check_decl "$LINENO" "strsuftoll" "ac_cv_have_decl_strsuftoll" "#include <stdlib.h>
5501"
5502if test "x$ac_cv_have_decl_strsuftoll" = xyes; then :
5503  ac_have_decl=1
5504else
5505  ac_have_decl=0
5506fi
5507
5508cat >>confdefs.h <<_ACEOF
5509#define HAVE_DECL_STRSUFTOLL $ac_have_decl
5510_ACEOF
5511ac_fn_c_check_decl "$LINENO" "mi_vector_hash" "ac_cv_have_decl_mi_vector_hash" "#include <stdlib.h>
5512"
5513if test "x$ac_cv_have_decl_mi_vector_hash" = xyes; then :
5514  ac_have_decl=1
5515else
5516  ac_have_decl=0
5517fi
5518
5519cat >>confdefs.h <<_ACEOF
5520#define HAVE_DECL_MI_VECTOR_HASH $ac_have_decl
5521_ACEOF
5522
5523ac_fn_c_check_decl "$LINENO" "lchflags" "ac_cv_have_decl_lchflags" "
5524#include <sys/stat.h>
5525#include <unistd.h>
5526
5527"
5528if test "x$ac_cv_have_decl_lchflags" = xyes; then :
5529  ac_have_decl=1
5530else
5531  ac_have_decl=0
5532fi
5533
5534cat >>confdefs.h <<_ACEOF
5535#define HAVE_DECL_LCHFLAGS $ac_have_decl
5536_ACEOF
5537ac_fn_c_check_decl "$LINENO" "lchmod" "ac_cv_have_decl_lchmod" "
5538#include <sys/stat.h>
5539#include <unistd.h>
5540
5541"
5542if test "x$ac_cv_have_decl_lchmod" = xyes; then :
5543  ac_have_decl=1
5544else
5545  ac_have_decl=0
5546fi
5547
5548cat >>confdefs.h <<_ACEOF
5549#define HAVE_DECL_LCHMOD $ac_have_decl
5550_ACEOF
5551ac_fn_c_check_decl "$LINENO" "lchown" "ac_cv_have_decl_lchown" "
5552#include <sys/stat.h>
5553#include <unistd.h>
5554
5555"
5556if test "x$ac_cv_have_decl_lchown" = xyes; then :
5557  ac_have_decl=1
5558else
5559  ac_have_decl=0
5560fi
5561
5562cat >>confdefs.h <<_ACEOF
5563#define HAVE_DECL_LCHOWN $ac_have_decl
5564_ACEOF
5565
5566
5567ac_fn_c_check_decl "$LINENO" "err" "ac_cv_have_decl_err" "
5568#ifdef HAVE_ERR_H
5569#include <err.h>
5570#endif
5571
5572"
5573if test "x$ac_cv_have_decl_err" = xyes; then :
5574  ac_have_decl=1
5575else
5576  ac_have_decl=0
5577fi
5578
5579cat >>confdefs.h <<_ACEOF
5580#define HAVE_DECL_ERR $ac_have_decl
5581_ACEOF
5582ac_fn_c_check_decl "$LINENO" "errc" "ac_cv_have_decl_errc" "
5583#ifdef HAVE_ERR_H
5584#include <err.h>
5585#endif
5586
5587"
5588if test "x$ac_cv_have_decl_errc" = xyes; then :
5589  ac_have_decl=1
5590else
5591  ac_have_decl=0
5592fi
5593
5594cat >>confdefs.h <<_ACEOF
5595#define HAVE_DECL_ERRC $ac_have_decl
5596_ACEOF
5597ac_fn_c_check_decl "$LINENO" "errx" "ac_cv_have_decl_errx" "
5598#ifdef HAVE_ERR_H
5599#include <err.h>
5600#endif
5601
5602"
5603if test "x$ac_cv_have_decl_errx" = xyes; then :
5604  ac_have_decl=1
5605else
5606  ac_have_decl=0
5607fi
5608
5609cat >>confdefs.h <<_ACEOF
5610#define HAVE_DECL_ERRX $ac_have_decl
5611_ACEOF
5612ac_fn_c_check_decl "$LINENO" "verrc" "ac_cv_have_decl_verrc" "
5613#ifdef HAVE_ERR_H
5614#include <err.h>
5615#endif
5616
5617"
5618if test "x$ac_cv_have_decl_verrc" = xyes; then :
5619  ac_have_decl=1
5620else
5621  ac_have_decl=0
5622fi
5623
5624cat >>confdefs.h <<_ACEOF
5625#define HAVE_DECL_VERRC $ac_have_decl
5626_ACEOF
5627ac_fn_c_check_decl "$LINENO" "verrx" "ac_cv_have_decl_verrx" "
5628#ifdef HAVE_ERR_H
5629#include <err.h>
5630#endif
5631
5632"
5633if test "x$ac_cv_have_decl_verrx" = xyes; then :
5634  ac_have_decl=1
5635else
5636  ac_have_decl=0
5637fi
5638
5639cat >>confdefs.h <<_ACEOF
5640#define HAVE_DECL_VERRX $ac_have_decl
5641_ACEOF
5642ac_fn_c_check_decl "$LINENO" "warn" "ac_cv_have_decl_warn" "
5643#ifdef HAVE_ERR_H
5644#include <err.h>
5645#endif
5646
5647"
5648if test "x$ac_cv_have_decl_warn" = xyes; then :
5649  ac_have_decl=1
5650else
5651  ac_have_decl=0
5652fi
5653
5654cat >>confdefs.h <<_ACEOF
5655#define HAVE_DECL_WARN $ac_have_decl
5656_ACEOF
5657ac_fn_c_check_decl "$LINENO" "warnc" "ac_cv_have_decl_warnc" "
5658#ifdef HAVE_ERR_H
5659#include <err.h>
5660#endif
5661
5662"
5663if test "x$ac_cv_have_decl_warnc" = xyes; then :
5664  ac_have_decl=1
5665else
5666  ac_have_decl=0
5667fi
5668
5669cat >>confdefs.h <<_ACEOF
5670#define HAVE_DECL_WARNC $ac_have_decl
5671_ACEOF
5672ac_fn_c_check_decl "$LINENO" "warnx" "ac_cv_have_decl_warnx" "
5673#ifdef HAVE_ERR_H
5674#include <err.h>
5675#endif
5676
5677"
5678if test "x$ac_cv_have_decl_warnx" = xyes; then :
5679  ac_have_decl=1
5680else
5681  ac_have_decl=0
5682fi
5683
5684cat >>confdefs.h <<_ACEOF
5685#define HAVE_DECL_WARNX $ac_have_decl
5686_ACEOF
5687ac_fn_c_check_decl "$LINENO" "vwarnc" "ac_cv_have_decl_vwarnc" "
5688#ifdef HAVE_ERR_H
5689#include <err.h>
5690#endif
5691
5692"
5693if test "x$ac_cv_have_decl_vwarnc" = xyes; then :
5694  ac_have_decl=1
5695else
5696  ac_have_decl=0
5697fi
5698
5699cat >>confdefs.h <<_ACEOF
5700#define HAVE_DECL_VWARNC $ac_have_decl
5701_ACEOF
5702ac_fn_c_check_decl "$LINENO" "vwarnx" "ac_cv_have_decl_vwarnx" "
5703#ifdef HAVE_ERR_H
5704#include <err.h>
5705#endif
5706
5707"
5708if test "x$ac_cv_have_decl_vwarnx" = xyes; then :
5709  ac_have_decl=1
5710else
5711  ac_have_decl=0
5712fi
5713
5714cat >>confdefs.h <<_ACEOF
5715#define HAVE_DECL_VWARNX $ac_have_decl
5716_ACEOF
5717
5718
5719ac_fn_c_check_decl "$LINENO" "htobe16" "ac_cv_have_decl_htobe16" "#include <sys/types.h>
5720"
5721if test "x$ac_cv_have_decl_htobe16" = xyes; then :
5722  ac_have_decl=1
5723else
5724  ac_have_decl=0
5725fi
5726
5727cat >>confdefs.h <<_ACEOF
5728#define HAVE_DECL_HTOBE16 $ac_have_decl
5729_ACEOF
5730ac_fn_c_check_decl "$LINENO" "htobe32" "ac_cv_have_decl_htobe32" "#include <sys/types.h>
5731"
5732if test "x$ac_cv_have_decl_htobe32" = xyes; then :
5733  ac_have_decl=1
5734else
5735  ac_have_decl=0
5736fi
5737
5738cat >>confdefs.h <<_ACEOF
5739#define HAVE_DECL_HTOBE32 $ac_have_decl
5740_ACEOF
5741ac_fn_c_check_decl "$LINENO" "htobe64" "ac_cv_have_decl_htobe64" "#include <sys/types.h>
5742"
5743if test "x$ac_cv_have_decl_htobe64" = xyes; then :
5744  ac_have_decl=1
5745else
5746  ac_have_decl=0
5747fi
5748
5749cat >>confdefs.h <<_ACEOF
5750#define HAVE_DECL_HTOBE64 $ac_have_decl
5751_ACEOF
5752ac_fn_c_check_decl "$LINENO" "htole16" "ac_cv_have_decl_htole16" "#include <sys/types.h>
5753"
5754if test "x$ac_cv_have_decl_htole16" = xyes; then :
5755  ac_have_decl=1
5756else
5757  ac_have_decl=0
5758fi
5759
5760cat >>confdefs.h <<_ACEOF
5761#define HAVE_DECL_HTOLE16 $ac_have_decl
5762_ACEOF
5763ac_fn_c_check_decl "$LINENO" "htole32" "ac_cv_have_decl_htole32" "#include <sys/types.h>
5764"
5765if test "x$ac_cv_have_decl_htole32" = xyes; then :
5766  ac_have_decl=1
5767else
5768  ac_have_decl=0
5769fi
5770
5771cat >>confdefs.h <<_ACEOF
5772#define HAVE_DECL_HTOLE32 $ac_have_decl
5773_ACEOF
5774ac_fn_c_check_decl "$LINENO" "htole64" "ac_cv_have_decl_htole64" "#include <sys/types.h>
5775"
5776if test "x$ac_cv_have_decl_htole64" = xyes; then :
5777  ac_have_decl=1
5778else
5779  ac_have_decl=0
5780fi
5781
5782cat >>confdefs.h <<_ACEOF
5783#define HAVE_DECL_HTOLE64 $ac_have_decl
5784_ACEOF
5785ac_fn_c_check_decl "$LINENO" "be16toh" "ac_cv_have_decl_be16toh" "#include <sys/types.h>
5786"
5787if test "x$ac_cv_have_decl_be16toh" = xyes; then :
5788  ac_have_decl=1
5789else
5790  ac_have_decl=0
5791fi
5792
5793cat >>confdefs.h <<_ACEOF
5794#define HAVE_DECL_BE16TOH $ac_have_decl
5795_ACEOF
5796ac_fn_c_check_decl "$LINENO" "be32toh" "ac_cv_have_decl_be32toh" "#include <sys/types.h>
5797"
5798if test "x$ac_cv_have_decl_be32toh" = xyes; then :
5799  ac_have_decl=1
5800else
5801  ac_have_decl=0
5802fi
5803
5804cat >>confdefs.h <<_ACEOF
5805#define HAVE_DECL_BE32TOH $ac_have_decl
5806_ACEOF
5807ac_fn_c_check_decl "$LINENO" "be64toh" "ac_cv_have_decl_be64toh" "#include <sys/types.h>
5808"
5809if test "x$ac_cv_have_decl_be64toh" = xyes; then :
5810  ac_have_decl=1
5811else
5812  ac_have_decl=0
5813fi
5814
5815cat >>confdefs.h <<_ACEOF
5816#define HAVE_DECL_BE64TOH $ac_have_decl
5817_ACEOF
5818ac_fn_c_check_decl "$LINENO" "le16toh" "ac_cv_have_decl_le16toh" "#include <sys/types.h>
5819"
5820if test "x$ac_cv_have_decl_le16toh" = xyes; then :
5821  ac_have_decl=1
5822else
5823  ac_have_decl=0
5824fi
5825
5826cat >>confdefs.h <<_ACEOF
5827#define HAVE_DECL_LE16TOH $ac_have_decl
5828_ACEOF
5829ac_fn_c_check_decl "$LINENO" "le32toh" "ac_cv_have_decl_le32toh" "#include <sys/types.h>
5830"
5831if test "x$ac_cv_have_decl_le32toh" = xyes; then :
5832  ac_have_decl=1
5833else
5834  ac_have_decl=0
5835fi
5836
5837cat >>confdefs.h <<_ACEOF
5838#define HAVE_DECL_LE32TOH $ac_have_decl
5839_ACEOF
5840ac_fn_c_check_decl "$LINENO" "le64toh" "ac_cv_have_decl_le64toh" "#include <sys/types.h>
5841"
5842if test "x$ac_cv_have_decl_le64toh" = xyes; then :
5843  ac_have_decl=1
5844else
5845  ac_have_decl=0
5846fi
5847
5848cat >>confdefs.h <<_ACEOF
5849#define HAVE_DECL_LE64TOH $ac_have_decl
5850_ACEOF
5851
5852
5853ac_fn_c_check_decl "$LINENO" "bswap16" "ac_cv_have_decl_bswap16" "#include <machine/bswap.h>
5854"
5855if test "x$ac_cv_have_decl_bswap16" = xyes; then :
5856  ac_have_decl=1
5857else
5858  ac_have_decl=0
5859fi
5860
5861cat >>confdefs.h <<_ACEOF
5862#define HAVE_DECL_BSWAP16 $ac_have_decl
5863_ACEOF
5864ac_fn_c_check_decl "$LINENO" "bswap32" "ac_cv_have_decl_bswap32" "#include <machine/bswap.h>
5865"
5866if test "x$ac_cv_have_decl_bswap32" = xyes; then :
5867  ac_have_decl=1
5868else
5869  ac_have_decl=0
5870fi
5871
5872cat >>confdefs.h <<_ACEOF
5873#define HAVE_DECL_BSWAP32 $ac_have_decl
5874_ACEOF
5875ac_fn_c_check_decl "$LINENO" "bswap64" "ac_cv_have_decl_bswap64" "#include <machine/bswap.h>
5876"
5877if test "x$ac_cv_have_decl_bswap64" = xyes; then :
5878  ac_have_decl=1
5879else
5880  ac_have_decl=0
5881fi
5882
5883cat >>confdefs.h <<_ACEOF
5884#define HAVE_DECL_BSWAP64 $ac_have_decl
5885_ACEOF
5886
5887
5888ac_fn_c_check_decl "$LINENO" "be16enc" "ac_cv_have_decl_be16enc" "#include <sys/endian.h>
5889"
5890if test "x$ac_cv_have_decl_be16enc" = xyes; then :
5891  ac_have_decl=1
5892else
5893  ac_have_decl=0
5894fi
5895
5896cat >>confdefs.h <<_ACEOF
5897#define HAVE_DECL_BE16ENC $ac_have_decl
5898_ACEOF
5899ac_fn_c_check_decl "$LINENO" "le16enc" "ac_cv_have_decl_le16enc" "#include <sys/endian.h>
5900"
5901if test "x$ac_cv_have_decl_le16enc" = xyes; then :
5902  ac_have_decl=1
5903else
5904  ac_have_decl=0
5905fi
5906
5907cat >>confdefs.h <<_ACEOF
5908#define HAVE_DECL_LE16ENC $ac_have_decl
5909_ACEOF
5910ac_fn_c_check_decl "$LINENO" "be16dec" "ac_cv_have_decl_be16dec" "#include <sys/endian.h>
5911"
5912if test "x$ac_cv_have_decl_be16dec" = xyes; then :
5913  ac_have_decl=1
5914else
5915  ac_have_decl=0
5916fi
5917
5918cat >>confdefs.h <<_ACEOF
5919#define HAVE_DECL_BE16DEC $ac_have_decl
5920_ACEOF
5921ac_fn_c_check_decl "$LINENO" "le16dec" "ac_cv_have_decl_le16dec" "#include <sys/endian.h>
5922"
5923if test "x$ac_cv_have_decl_le16dec" = xyes; then :
5924  ac_have_decl=1
5925else
5926  ac_have_decl=0
5927fi
5928
5929cat >>confdefs.h <<_ACEOF
5930#define HAVE_DECL_LE16DEC $ac_have_decl
5931_ACEOF
5932ac_fn_c_check_decl "$LINENO" "be32enc" "ac_cv_have_decl_be32enc" "#include <sys/endian.h>
5933"
5934if test "x$ac_cv_have_decl_be32enc" = xyes; then :
5935  ac_have_decl=1
5936else
5937  ac_have_decl=0
5938fi
5939
5940cat >>confdefs.h <<_ACEOF
5941#define HAVE_DECL_BE32ENC $ac_have_decl
5942_ACEOF
5943ac_fn_c_check_decl "$LINENO" "le32enc" "ac_cv_have_decl_le32enc" "#include <sys/endian.h>
5944"
5945if test "x$ac_cv_have_decl_le32enc" = xyes; then :
5946  ac_have_decl=1
5947else
5948  ac_have_decl=0
5949fi
5950
5951cat >>confdefs.h <<_ACEOF
5952#define HAVE_DECL_LE32ENC $ac_have_decl
5953_ACEOF
5954ac_fn_c_check_decl "$LINENO" "be32dec" "ac_cv_have_decl_be32dec" "#include <sys/endian.h>
5955"
5956if test "x$ac_cv_have_decl_be32dec" = xyes; then :
5957  ac_have_decl=1
5958else
5959  ac_have_decl=0
5960fi
5961
5962cat >>confdefs.h <<_ACEOF
5963#define HAVE_DECL_BE32DEC $ac_have_decl
5964_ACEOF
5965ac_fn_c_check_decl "$LINENO" "le32dec" "ac_cv_have_decl_le32dec" "#include <sys/endian.h>
5966"
5967if test "x$ac_cv_have_decl_le32dec" = xyes; then :
5968  ac_have_decl=1
5969else
5970  ac_have_decl=0
5971fi
5972
5973cat >>confdefs.h <<_ACEOF
5974#define HAVE_DECL_LE32DEC $ac_have_decl
5975_ACEOF
5976ac_fn_c_check_decl "$LINENO" "be64enc" "ac_cv_have_decl_be64enc" "#include <sys/endian.h>
5977"
5978if test "x$ac_cv_have_decl_be64enc" = xyes; then :
5979  ac_have_decl=1
5980else
5981  ac_have_decl=0
5982fi
5983
5984cat >>confdefs.h <<_ACEOF
5985#define HAVE_DECL_BE64ENC $ac_have_decl
5986_ACEOF
5987ac_fn_c_check_decl "$LINENO" "le64enc" "ac_cv_have_decl_le64enc" "#include <sys/endian.h>
5988"
5989if test "x$ac_cv_have_decl_le64enc" = xyes; then :
5990  ac_have_decl=1
5991else
5992  ac_have_decl=0
5993fi
5994
5995cat >>confdefs.h <<_ACEOF
5996#define HAVE_DECL_LE64ENC $ac_have_decl
5997_ACEOF
5998ac_fn_c_check_decl "$LINENO" "be64dec" "ac_cv_have_decl_be64dec" "#include <sys/endian.h>
5999"
6000if test "x$ac_cv_have_decl_be64dec" = xyes; then :
6001  ac_have_decl=1
6002else
6003  ac_have_decl=0
6004fi
6005
6006cat >>confdefs.h <<_ACEOF
6007#define HAVE_DECL_BE64DEC $ac_have_decl
6008_ACEOF
6009ac_fn_c_check_decl "$LINENO" "le64dec" "ac_cv_have_decl_le64dec" "#include <sys/endian.h>
6010"
6011if test "x$ac_cv_have_decl_le64dec" = xyes; then :
6012  ac_have_decl=1
6013else
6014  ac_have_decl=0
6015fi
6016
6017cat >>confdefs.h <<_ACEOF
6018#define HAVE_DECL_LE64DEC $ac_have_decl
6019_ACEOF
6020
6021
6022ac_fn_c_check_decl "$LINENO" "fstatvfs" "ac_cv_have_decl_fstatvfs" "#include <sys/statvfs.h>
6023"
6024if test "x$ac_cv_have_decl_fstatvfs" = xyes; then :
6025  ac_have_decl=1
6026else
6027  ac_have_decl=0
6028fi
6029
6030cat >>confdefs.h <<_ACEOF
6031#define HAVE_DECL_FSTATVFS $ac_have_decl
6032_ACEOF
6033
6034
6035ac_fn_c_check_decl "$LINENO" "setgroupent" "ac_cv_have_decl_setgroupent" "
6036#include <sys/types.h>
6037#include <grp.h>
6038#include <pwd.h>
6039
6040"
6041if test "x$ac_cv_have_decl_setgroupent" = xyes; then :
6042  ac_have_decl=1
6043else
6044  ac_have_decl=0
6045fi
6046
6047cat >>confdefs.h <<_ACEOF
6048#define HAVE_DECL_SETGROUPENT $ac_have_decl
6049_ACEOF
6050ac_fn_c_check_decl "$LINENO" "setpassent" "ac_cv_have_decl_setpassent" "
6051#include <sys/types.h>
6052#include <grp.h>
6053#include <pwd.h>
6054
6055"
6056if test "x$ac_cv_have_decl_setpassent" = xyes; then :
6057  ac_have_decl=1
6058else
6059  ac_have_decl=0
6060fi
6061
6062cat >>confdefs.h <<_ACEOF
6063#define HAVE_DECL_SETPASSENT $ac_have_decl
6064_ACEOF
6065
6066
6067# regcomp() and regexec() are also names of functions in the old V8
6068# regexp package.  To avoid them, we need to find out who has regfree().
6069
6070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for regfree in -lregex" >&5
6071$as_echo_n "checking for regfree in -lregex... " >&6; }
6072if ${ac_cv_lib_regex_regfree+:} false; then :
6073  $as_echo_n "(cached) " >&6
6074else
6075  ac_check_lib_save_LIBS=$LIBS
6076LIBS="-lregex  $LIBS"
6077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6078/* end confdefs.h.  */
6079
6080/* Override any GCC internal prototype to avoid an error.
6081   Use char because int might match the return type of a GCC
6082   builtin and then its argument prototype would still apply.  */
6083#ifdef __cplusplus
6084extern "C"
6085#endif
6086char regfree ();
6087int
6088main ()
6089{
6090return regfree ();
6091  ;
6092  return 0;
6093}
6094_ACEOF
6095if ac_fn_c_try_link "$LINENO"; then :
6096  ac_cv_lib_regex_regfree=yes
6097else
6098  ac_cv_lib_regex_regfree=no
6099fi
6100rm -f core conftest.err conftest.$ac_objext \
6101    conftest$ac_exeext conftest.$ac_ext
6102LIBS=$ac_check_lib_save_LIBS
6103fi
6104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regfree" >&5
6105$as_echo "$ac_cv_lib_regex_regfree" >&6; }
6106if test "x$ac_cv_lib_regex_regfree" = xyes; then :
6107  cat >>confdefs.h <<_ACEOF
6108#define HAVE_LIBREGEX 1
6109_ACEOF
6110
6111  LIBS="-lregex $LIBS"
6112
6113fi
6114
6115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regfree" >&5
6116$as_echo_n "checking for library containing regfree... " >&6; }
6117if ${ac_cv_search_regfree+:} false; then :
6118  $as_echo_n "(cached) " >&6
6119else
6120  ac_func_search_save_LIBS=$LIBS
6121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6122/* end confdefs.h.  */
6123
6124/* Override any GCC internal prototype to avoid an error.
6125   Use char because int might match the return type of a GCC
6126   builtin and then its argument prototype would still apply.  */
6127#ifdef __cplusplus
6128extern "C"
6129#endif
6130char regfree ();
6131int
6132main ()
6133{
6134return regfree ();
6135  ;
6136  return 0;
6137}
6138_ACEOF
6139for ac_lib in '' rx posix; do
6140  if test -z "$ac_lib"; then
6141    ac_res="none required"
6142  else
6143    ac_res=-l$ac_lib
6144    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6145  fi
6146  if ac_fn_c_try_link "$LINENO"; then :
6147  ac_cv_search_regfree=$ac_res
6148fi
6149rm -f core conftest.err conftest.$ac_objext \
6150    conftest$ac_exeext
6151  if ${ac_cv_search_regfree+:} false; then :
6152  break
6153fi
6154done
6155if ${ac_cv_search_regfree+:} false; then :
6156
6157else
6158  ac_cv_search_regfree=no
6159fi
6160rm conftest.$ac_ext
6161LIBS=$ac_func_search_save_LIBS
6162fi
6163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regfree" >&5
6164$as_echo "$ac_cv_search_regfree" >&6; }
6165ac_res=$ac_cv_search_regfree
6166if test "$ac_res" != no; then :
6167  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6168
6169fi
6170
6171
6172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
6173$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
6174if ${ac_cv_lib_rt_clock_gettime+:} false; then :
6175  $as_echo_n "(cached) " >&6
6176else
6177  ac_check_lib_save_LIBS=$LIBS
6178LIBS="-lrt  $LIBS"
6179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6180/* end confdefs.h.  */
6181
6182/* Override any GCC internal prototype to avoid an error.
6183   Use char because int might match the return type of a GCC
6184   builtin and then its argument prototype would still apply.  */
6185#ifdef __cplusplus
6186extern "C"
6187#endif
6188char clock_gettime ();
6189int
6190main ()
6191{
6192return clock_gettime ();
6193  ;
6194  return 0;
6195}
6196_ACEOF
6197if ac_fn_c_try_link "$LINENO"; then :
6198  ac_cv_lib_rt_clock_gettime=yes
6199else
6200  ac_cv_lib_rt_clock_gettime=no
6201fi
6202rm -f core conftest.err conftest.$ac_objext \
6203    conftest$ac_exeext conftest.$ac_ext
6204LIBS=$ac_check_lib_save_LIBS
6205fi
6206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
6207$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
6208if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
6209  cat >>confdefs.h <<_ACEOF
6210#define HAVE_LIBRT 1
6211_ACEOF
6212
6213  LIBS="-lrt $LIBS"
6214
6215fi
6216
6217
6218for ac_func in fparseln
6219do :
6220  ac_fn_c_check_func "$LINENO" "fparseln" "ac_cv_func_fparseln"
6221if test "x$ac_cv_func_fparseln" = xyes; then :
6222  cat >>confdefs.h <<_ACEOF
6223#define HAVE_FPARSELN 1
6224_ACEOF
6225
6226    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fparseln seems to work" >&5
6227$as_echo_n "checking if fparseln seems to work... " >&6; }
6228    if test "$cross_compiling" = yes; then :
6229  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking farseln" >&5
6230$as_echo "$as_me: WARNING: cross compiling: not checking farseln" >&2;}
6231
6232else
6233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6234/* end confdefs.h.  */
6235
6236#define _NETBSD_SOURCE
6237#include <stdio.h>
6238#include <stdlib.h>
6239#define CONFTEST	"conftest.fparseln"
6240#define COMMENT		'#'
6241int
6242main(void)
6243{
6244	static const char delim[3] = { '\0', '\0', COMMENT };
6245	FILE *fp;
6246	char *ptr;
6247	fp = fopen(CONFTEST, "w+");
6248	if (fp != NULL) {
6249		unlink(CONFTEST);
6250		ungetc(COMMENT, fp);
6251		ptr = fparseln(fp, NULL, NULL, delim,
6252		    FPARSELN_UNESCALL);
6253		fclose(fp);
6254		if (ptr == NULL)
6255			exit(0);
6256	}
6257	exit(1);
6258}
6259
6260_ACEOF
6261if ac_fn_c_try_run "$LINENO"; then :
6262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6263$as_echo "yes" >&6; }
6264else
6265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6266$as_echo "no" >&6; }
6267
6268$as_echo "#define BROKEN_FPARSELN 1" >>confdefs.h
6269
6270fi
6271rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6272  conftest.$ac_objext conftest.beam conftest.$ac_ext
6273fi
6274
6275
6276fi
6277done
6278
6279
6280
6281nb_cv_check_cc_flags=
6282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5
6283$as_echo_n "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; }
6284if ${ax_cv_check_cflags___Werror_unknown_warning_option+:} false; then :
6285  $as_echo_n "(cached) " >&6
6286else
6287
6288  ax_check_save_flags=$CFLAGS
6289  CFLAGS="$CFLAGS  -Werror=unknown-warning-option"
6290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291/* end confdefs.h.  */
6292
6293int
6294main ()
6295{
6296
6297  ;
6298  return 0;
6299}
6300_ACEOF
6301if ac_fn_c_try_compile "$LINENO"; then :
6302  ax_cv_check_cflags___Werror_unknown_warning_option=yes
6303else
6304  ax_cv_check_cflags___Werror_unknown_warning_option=no
6305fi
6306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6307  CFLAGS=$ax_check_save_flags
6308fi
6309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5
6310$as_echo "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; }
6311if test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes; then :
6312  nb_cv_check_cc_flags=-Werror=unknown-warning-option
6313else
6314  :
6315fi
6316
6317
6318as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$nb_cv_check_cc_flags_-no-cpp-precomp" | $as_tr_sh`
6319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -no-cpp-precomp" >&5
6320$as_echo_n "checking whether C compiler accepts -no-cpp-precomp... " >&6; }
6321if eval \${$as_CACHEVAR+:} false; then :
6322  $as_echo_n "(cached) " >&6
6323else
6324
6325  ax_check_save_flags=$CFLAGS
6326  CFLAGS="$CFLAGS $nb_cv_check_cc_flags -no-cpp-precomp"
6327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328/* end confdefs.h.  */
6329
6330int
6331main ()
6332{
6333
6334  ;
6335  return 0;
6336}
6337_ACEOF
6338if ac_fn_c_try_compile "$LINENO"; then :
6339  eval "$as_CACHEVAR=yes"
6340else
6341  eval "$as_CACHEVAR=no"
6342fi
6343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6344  CFLAGS=$ax_check_save_flags
6345fi
6346eval ac_res=\$$as_CACHEVAR
6347	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6348$as_echo "$ac_res" >&6; }
6349if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6350  CC_NO_CPP_PRECOMP=-no-cpp-precomp
6351else
6352  :
6353fi
6354
6355
6356
6357
6358as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Waddress-of-packed-member" | $as_tr_sh`
6359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Waddress-of-packed-member" >&5
6360$as_echo_n "checking whether C compiler accepts -Waddress-of-packed-member... " >&6; }
6361if eval \${$as_CACHEVAR+:} false; then :
6362  $as_echo_n "(cached) " >&6
6363else
6364
6365  ax_check_save_flags=$CFLAGS
6366  CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Waddress-of-packed-member"
6367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6368/* end confdefs.h.  */
6369
6370int
6371main ()
6372{
6373
6374  ;
6375  return 0;
6376}
6377_ACEOF
6378if ac_fn_c_try_compile "$LINENO"; then :
6379  eval "$as_CACHEVAR=yes"
6380else
6381  eval "$as_CACHEVAR=no"
6382fi
6383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6384  CFLAGS=$ax_check_save_flags
6385fi
6386eval ac_res=\$$as_CACHEVAR
6387	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6388$as_echo "$ac_res" >&6; }
6389if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6390  CC_WNO_ADDRESS_OF_PACKED_MEMBER=-Wno-address-of-packed-member
6391else
6392  :
6393fi
6394
6395
6396
6397as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wcast-function-type" | $as_tr_sh`
6398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wcast-function-type" >&5
6399$as_echo_n "checking whether C compiler accepts -Wcast-function-type... " >&6; }
6400if eval \${$as_CACHEVAR+:} false; then :
6401  $as_echo_n "(cached) " >&6
6402else
6403
6404  ax_check_save_flags=$CFLAGS
6405  CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wcast-function-type"
6406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407/* end confdefs.h.  */
6408
6409int
6410main ()
6411{
6412
6413  ;
6414  return 0;
6415}
6416_ACEOF
6417if ac_fn_c_try_compile "$LINENO"; then :
6418  eval "$as_CACHEVAR=yes"
6419else
6420  eval "$as_CACHEVAR=no"
6421fi
6422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423  CFLAGS=$ax_check_save_flags
6424fi
6425eval ac_res=\$$as_CACHEVAR
6426	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6427$as_echo "$ac_res" >&6; }
6428if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6429  CC_WNO_CAST_FUNCTION_TYPE=-Wno-cast-function-type
6430else
6431  :
6432fi
6433
6434
6435
6436as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Werror=address-of-packed-member" | $as_tr_sh`
6437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=address-of-packed-member" >&5
6438$as_echo_n "checking whether C compiler accepts -Werror=address-of-packed-member... " >&6; }
6439if eval \${$as_CACHEVAR+:} false; then :
6440  $as_echo_n "(cached) " >&6
6441else
6442
6443  ax_check_save_flags=$CFLAGS
6444  CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Werror=address-of-packed-member"
6445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6446/* end confdefs.h.  */
6447
6448int
6449main ()
6450{
6451
6452  ;
6453  return 0;
6454}
6455_ACEOF
6456if ac_fn_c_try_compile "$LINENO"; then :
6457  eval "$as_CACHEVAR=yes"
6458else
6459  eval "$as_CACHEVAR=no"
6460fi
6461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6462  CFLAGS=$ax_check_save_flags
6463fi
6464eval ac_res=\$$as_CACHEVAR
6465	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6466$as_echo "$ac_res" >&6; }
6467if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6468  CC_WNO_ERROR_ADDRESS_OF_PACKED_MEMBER=-Wno-error=address-of-packed-member
6469else
6470  :
6471fi
6472
6473
6474
6475as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wformat-overflow" | $as_tr_sh`
6476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-overflow" >&5
6477$as_echo_n "checking whether C compiler accepts -Wformat-overflow... " >&6; }
6478if eval \${$as_CACHEVAR+:} false; then :
6479  $as_echo_n "(cached) " >&6
6480else
6481
6482  ax_check_save_flags=$CFLAGS
6483  CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wformat-overflow"
6484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6485/* end confdefs.h.  */
6486
6487int
6488main ()
6489{
6490
6491  ;
6492  return 0;
6493}
6494_ACEOF
6495if ac_fn_c_try_compile "$LINENO"; then :
6496  eval "$as_CACHEVAR=yes"
6497else
6498  eval "$as_CACHEVAR=no"
6499fi
6500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6501  CFLAGS=$ax_check_save_flags
6502fi
6503eval ac_res=\$$as_CACHEVAR
6504	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6505$as_echo "$ac_res" >&6; }
6506if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6507  CC_WNO_FORMAT_OVERFLOW=-Wno-format-overflow
6508else
6509  :
6510fi
6511
6512
6513
6514as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wformat-truncation" | $as_tr_sh`
6515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-truncation" >&5
6516$as_echo_n "checking whether C compiler accepts -Wformat-truncation... " >&6; }
6517if eval \${$as_CACHEVAR+:} false; then :
6518  $as_echo_n "(cached) " >&6
6519else
6520
6521  ax_check_save_flags=$CFLAGS
6522  CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wformat-truncation"
6523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6524/* end confdefs.h.  */
6525
6526int
6527main ()
6528{
6529
6530  ;
6531  return 0;
6532}
6533_ACEOF
6534if ac_fn_c_try_compile "$LINENO"; then :
6535  eval "$as_CACHEVAR=yes"
6536else
6537  eval "$as_CACHEVAR=no"
6538fi
6539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6540  CFLAGS=$ax_check_save_flags
6541fi
6542eval ac_res=\$$as_CACHEVAR
6543	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6544$as_echo "$ac_res" >&6; }
6545if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6546  CC_WNO_FORMAT_TRUNCATION=-Wno-format-truncation
6547else
6548  :
6549fi
6550
6551
6552
6553as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wimplicit-fallthrough" | $as_tr_sh`
6554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wimplicit-fallthrough" >&5
6555$as_echo_n "checking whether C compiler accepts -Wimplicit-fallthrough... " >&6; }
6556if eval \${$as_CACHEVAR+:} false; then :
6557  $as_echo_n "(cached) " >&6
6558else
6559
6560  ax_check_save_flags=$CFLAGS
6561  CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wimplicit-fallthrough"
6562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6563/* end confdefs.h.  */
6564
6565int
6566main ()
6567{
6568
6569  ;
6570  return 0;
6571}
6572_ACEOF
6573if ac_fn_c_try_compile "$LINENO"; then :
6574  eval "$as_CACHEVAR=yes"
6575else
6576  eval "$as_CACHEVAR=no"
6577fi
6578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6579  CFLAGS=$ax_check_save_flags
6580fi
6581eval ac_res=\$$as_CACHEVAR
6582	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6583$as_echo "$ac_res" >&6; }
6584if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6585  CC_WNO_IMPLICIT_FALLTHROUGH=-Wno-implicit-fallthrough
6586else
6587  :
6588fi
6589
6590
6591
6592as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wmaybe-uninitialized" | $as_tr_sh`
6593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmaybe-uninitialized" >&5
6594$as_echo_n "checking whether C compiler accepts -Wmaybe-uninitialized... " >&6; }
6595if eval \${$as_CACHEVAR+:} false; then :
6596  $as_echo_n "(cached) " >&6
6597else
6598
6599  ax_check_save_flags=$CFLAGS
6600  CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wmaybe-uninitialized"
6601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6602/* end confdefs.h.  */
6603
6604int
6605main ()
6606{
6607
6608  ;
6609  return 0;
6610}
6611_ACEOF
6612if ac_fn_c_try_compile "$LINENO"; then :
6613  eval "$as_CACHEVAR=yes"
6614else
6615  eval "$as_CACHEVAR=no"
6616fi
6617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6618  CFLAGS=$ax_check_save_flags
6619fi
6620eval ac_res=\$$as_CACHEVAR
6621	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6622$as_echo "$ac_res" >&6; }
6623if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6624  CC_WNO_MAYBE_UNINITIALIZED=-Wno-maybe-uninitialized
6625else
6626  :
6627fi
6628
6629
6630
6631as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wreturn-local-addr" | $as_tr_sh`
6632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wreturn-local-addr" >&5
6633$as_echo_n "checking whether C compiler accepts -Wreturn-local-addr... " >&6; }
6634if eval \${$as_CACHEVAR+:} false; then :
6635  $as_echo_n "(cached) " >&6
6636else
6637
6638  ax_check_save_flags=$CFLAGS
6639  CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wreturn-local-addr"
6640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6641/* end confdefs.h.  */
6642
6643int
6644main ()
6645{
6646
6647  ;
6648  return 0;
6649}
6650_ACEOF
6651if ac_fn_c_try_compile "$LINENO"; then :
6652  eval "$as_CACHEVAR=yes"
6653else
6654  eval "$as_CACHEVAR=no"
6655fi
6656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6657  CFLAGS=$ax_check_save_flags
6658fi
6659eval ac_res=\$$as_CACHEVAR
6660	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6661$as_echo "$ac_res" >&6; }
6662if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6663  CC_WNO_RETURN_LOCAL_ADDR=-Wno-return-local-addr
6664else
6665  :
6666fi
6667
6668
6669
6670as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wstringop-overflow" | $as_tr_sh`
6671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstringop-overflow" >&5
6672$as_echo_n "checking whether C compiler accepts -Wstringop-overflow... " >&6; }
6673if eval \${$as_CACHEVAR+:} false; then :
6674  $as_echo_n "(cached) " >&6
6675else
6676
6677  ax_check_save_flags=$CFLAGS
6678  CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wstringop-overflow"
6679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6680/* end confdefs.h.  */
6681
6682int
6683main ()
6684{
6685
6686  ;
6687  return 0;
6688}
6689_ACEOF
6690if ac_fn_c_try_compile "$LINENO"; then :
6691  eval "$as_CACHEVAR=yes"
6692else
6693  eval "$as_CACHEVAR=no"
6694fi
6695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6696  CFLAGS=$ax_check_save_flags
6697fi
6698eval ac_res=\$$as_CACHEVAR
6699	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6700$as_echo "$ac_res" >&6; }
6701if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6702  CC_WNO_STRINGOP_OVERFLOW=-Wno-stringop-overflow
6703else
6704  :
6705fi
6706
6707
6708
6709as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wstringop-truncation" | $as_tr_sh`
6710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstringop-truncation" >&5
6711$as_echo_n "checking whether C compiler accepts -Wstringop-truncation... " >&6; }
6712if eval \${$as_CACHEVAR+:} false; then :
6713  $as_echo_n "(cached) " >&6
6714else
6715
6716  ax_check_save_flags=$CFLAGS
6717  CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wstringop-truncation"
6718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6719/* end confdefs.h.  */
6720
6721int
6722main ()
6723{
6724
6725  ;
6726  return 0;
6727}
6728_ACEOF
6729if ac_fn_c_try_compile "$LINENO"; then :
6730  eval "$as_CACHEVAR=yes"
6731else
6732  eval "$as_CACHEVAR=no"
6733fi
6734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6735  CFLAGS=$ax_check_save_flags
6736fi
6737eval ac_res=\$$as_CACHEVAR
6738	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6739$as_echo "$ac_res" >&6; }
6740if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6741  CC_WNO_STRINGOP_TRUNCATION=-Wno-stringop-truncation
6742else
6743  :
6744fi
6745
6746
6747
6748
6749cat >confcache <<\_ACEOF
6750# This file is a shell script that caches the results of configure
6751# tests run on this system so they can be shared between configure
6752# scripts and configure runs, see configure's option --config-cache.
6753# It is not useful on other systems.  If it contains results you don't
6754# want to keep, you may remove or edit it.
6755#
6756# config.status only pays attention to the cache file if you give it
6757# the --recheck option to rerun configure.
6758#
6759# `ac_cv_env_foo' variables (set or unset) will be overridden when
6760# loading this file, other *unset* `ac_cv_foo' will be assigned the
6761# following values.
6762
6763_ACEOF
6764
6765# The following way of writing the cache mishandles newlines in values,
6766# but we know of no workaround that is simple, portable, and efficient.
6767# So, we kill variables containing newlines.
6768# Ultrix sh set writes to stderr and can't be redirected directly,
6769# and sets the high bit in the cache file unless we assign to the vars.
6770(
6771  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6772    eval ac_val=\$$ac_var
6773    case $ac_val in #(
6774    *${as_nl}*)
6775      case $ac_var in #(
6776      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6777$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6778      esac
6779      case $ac_var in #(
6780      _ | IFS | as_nl) ;; #(
6781      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6782      *) { eval $ac_var=; unset $ac_var;} ;;
6783      esac ;;
6784    esac
6785  done
6786
6787  (set) 2>&1 |
6788    case $as_nl`(ac_space=' '; set) 2>&1` in #(
6789    *${as_nl}ac_space=\ *)
6790      # `set' does not quote correctly, so add quotes: double-quote
6791      # substitution turns \\\\ into \\, and sed turns \\ into \.
6792      sed -n \
6793	"s/'/'\\\\''/g;
6794	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6795      ;; #(
6796    *)
6797      # `set' quotes correctly as required by POSIX, so do not add quotes.
6798      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6799      ;;
6800    esac |
6801    sort
6802) |
6803  sed '
6804     /^ac_cv_env_/b end
6805     t clear
6806     :clear
6807     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6808     t end
6809     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6810     :end' >>confcache
6811if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6812  if test -w "$cache_file"; then
6813    if test "x$cache_file" != "x/dev/null"; then
6814      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6815$as_echo "$as_me: updating cache $cache_file" >&6;}
6816      if test ! -f "$cache_file" || test -h "$cache_file"; then
6817	cat confcache >"$cache_file"
6818      else
6819        case $cache_file in #(
6820        */* | ?:*)
6821	  mv -f confcache "$cache_file"$$ &&
6822	  mv -f "$cache_file"$$ "$cache_file" ;; #(
6823        *)
6824	  mv -f confcache "$cache_file" ;;
6825	esac
6826      fi
6827    fi
6828  else
6829    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6830$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6831  fi
6832fi
6833rm -f confcache
6834
6835test "x$prefix" = xNONE && prefix=$ac_default_prefix
6836# Let make expand exec_prefix.
6837test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6838
6839DEFS=-DHAVE_CONFIG_H
6840
6841ac_libobjs=
6842ac_ltlibobjs=
6843U=
6844for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6845  # 1. Remove the extension, and $U if already installed.
6846  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6847  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6848  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6849  #    will be set to the directory where LIBOBJS objects are built.
6850  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6851  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6852done
6853LIBOBJS=$ac_libobjs
6854
6855LTLIBOBJS=$ac_ltlibobjs
6856
6857
6858
6859
6860: "${CONFIG_STATUS=./config.status}"
6861ac_write_fail=0
6862ac_clean_files_save=$ac_clean_files
6863ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6864{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6865$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6866as_write_fail=0
6867cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6868#! $SHELL
6869# Generated by $as_me.
6870# Run this file to recreate the current configuration.
6871# Compiler output produced by configure, useful for debugging
6872# configure, is in config.log if it exists.
6873
6874debug=false
6875ac_cs_recheck=false
6876ac_cs_silent=false
6877
6878SHELL=\${CONFIG_SHELL-$SHELL}
6879export SHELL
6880_ASEOF
6881cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6882## -------------------- ##
6883## M4sh Initialization. ##
6884## -------------------- ##
6885
6886# Be more Bourne compatible
6887DUALCASE=1; export DUALCASE # for MKS sh
6888if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6889  emulate sh
6890  NULLCMD=:
6891  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6892  # is contrary to our usage.  Disable this feature.
6893  alias -g '${1+"$@"}'='"$@"'
6894  setopt NO_GLOB_SUBST
6895else
6896  case `(set -o) 2>/dev/null` in #(
6897  *posix*) :
6898    set -o posix ;; #(
6899  *) :
6900     ;;
6901esac
6902fi
6903
6904
6905as_nl='
6906'
6907export as_nl
6908# Printing a long string crashes Solaris 7 /usr/bin/printf.
6909as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6910as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6911as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6912# Prefer a ksh shell builtin over an external printf program on Solaris,
6913# but without wasting forks for bash or zsh.
6914if test -z "$BASH_VERSION$ZSH_VERSION" \
6915    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6916  as_echo='print -r --'
6917  as_echo_n='print -rn --'
6918elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6919  as_echo='printf %s\n'
6920  as_echo_n='printf %s'
6921else
6922  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6923    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6924    as_echo_n='/usr/ucb/echo -n'
6925  else
6926    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6927    as_echo_n_body='eval
6928      arg=$1;
6929      case $arg in #(
6930      *"$as_nl"*)
6931	expr "X$arg" : "X\\(.*\\)$as_nl";
6932	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6933      esac;
6934      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6935    '
6936    export as_echo_n_body
6937    as_echo_n='sh -c $as_echo_n_body as_echo'
6938  fi
6939  export as_echo_body
6940  as_echo='sh -c $as_echo_body as_echo'
6941fi
6942
6943# The user is always right.
6944if test "${PATH_SEPARATOR+set}" != set; then
6945  PATH_SEPARATOR=:
6946  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6947    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6948      PATH_SEPARATOR=';'
6949  }
6950fi
6951
6952
6953# IFS
6954# We need space, tab and new line, in precisely that order.  Quoting is
6955# there to prevent editors from complaining about space-tab.
6956# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6957# splitting by setting IFS to empty value.)
6958IFS=" ""	$as_nl"
6959
6960# Find who we are.  Look in the path if we contain no directory separator.
6961as_myself=
6962case $0 in #((
6963  *[\\/]* ) as_myself=$0 ;;
6964  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965for as_dir in $PATH
6966do
6967  IFS=$as_save_IFS
6968  test -z "$as_dir" && as_dir=.
6969    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6970  done
6971IFS=$as_save_IFS
6972
6973     ;;
6974esac
6975# We did not find ourselves, most probably we were run as `sh COMMAND'
6976# in which case we are not to be found in the path.
6977if test "x$as_myself" = x; then
6978  as_myself=$0
6979fi
6980if test ! -f "$as_myself"; then
6981  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6982  exit 1
6983fi
6984
6985# Unset variables that we do not need and which cause bugs (e.g. in
6986# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
6987# suppresses any "Segmentation fault" message there.  '((' could
6988# trigger a bug in pdksh 5.2.14.
6989for as_var in BASH_ENV ENV MAIL MAILPATH
6990do eval test x\${$as_var+set} = xset \
6991  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6992done
6993PS1='$ '
6994PS2='> '
6995PS4='+ '
6996
6997# NLS nuisances.
6998LC_ALL=C
6999export LC_ALL
7000LANGUAGE=C
7001export LANGUAGE
7002
7003# CDPATH.
7004(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7005
7006
7007# as_fn_error STATUS ERROR [LINENO LOG_FD]
7008# ----------------------------------------
7009# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7010# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7011# script with STATUS, using 1 if that was 0.
7012as_fn_error ()
7013{
7014  as_status=$1; test $as_status -eq 0 && as_status=1
7015  if test "$4"; then
7016    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7017    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7018  fi
7019  $as_echo "$as_me: error: $2" >&2
7020  as_fn_exit $as_status
7021} # as_fn_error
7022
7023
7024# as_fn_set_status STATUS
7025# -----------------------
7026# Set $? to STATUS, without forking.
7027as_fn_set_status ()
7028{
7029  return $1
7030} # as_fn_set_status
7031
7032# as_fn_exit STATUS
7033# -----------------
7034# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7035as_fn_exit ()
7036{
7037  set +e
7038  as_fn_set_status $1
7039  exit $1
7040} # as_fn_exit
7041
7042# as_fn_unset VAR
7043# ---------------
7044# Portably unset VAR.
7045as_fn_unset ()
7046{
7047  { eval $1=; unset $1;}
7048}
7049as_unset=as_fn_unset
7050# as_fn_append VAR VALUE
7051# ----------------------
7052# Append the text in VALUE to the end of the definition contained in VAR. Take
7053# advantage of any shell optimizations that allow amortized linear growth over
7054# repeated appends, instead of the typical quadratic growth present in naive
7055# implementations.
7056if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7057  eval 'as_fn_append ()
7058  {
7059    eval $1+=\$2
7060  }'
7061else
7062  as_fn_append ()
7063  {
7064    eval $1=\$$1\$2
7065  }
7066fi # as_fn_append
7067
7068# as_fn_arith ARG...
7069# ------------------
7070# Perform arithmetic evaluation on the ARGs, and store the result in the
7071# global $as_val. Take advantage of shells that can avoid forks. The arguments
7072# must be portable across $(()) and expr.
7073if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7074  eval 'as_fn_arith ()
7075  {
7076    as_val=$(( $* ))
7077  }'
7078else
7079  as_fn_arith ()
7080  {
7081    as_val=`expr "$@" || test $? -eq 1`
7082  }
7083fi # as_fn_arith
7084
7085
7086if expr a : '\(a\)' >/dev/null 2>&1 &&
7087   test "X`expr 00001 : '.*\(...\)'`" = X001; then
7088  as_expr=expr
7089else
7090  as_expr=false
7091fi
7092
7093if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7094  as_basename=basename
7095else
7096  as_basename=false
7097fi
7098
7099if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7100  as_dirname=dirname
7101else
7102  as_dirname=false
7103fi
7104
7105as_me=`$as_basename -- "$0" ||
7106$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7107	 X"$0" : 'X\(//\)$' \| \
7108	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7109$as_echo X/"$0" |
7110    sed '/^.*\/\([^/][^/]*\)\/*$/{
7111	    s//\1/
7112	    q
7113	  }
7114	  /^X\/\(\/\/\)$/{
7115	    s//\1/
7116	    q
7117	  }
7118	  /^X\/\(\/\).*/{
7119	    s//\1/
7120	    q
7121	  }
7122	  s/.*/./; q'`
7123
7124# Avoid depending upon Character Ranges.
7125as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7126as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7127as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7128as_cr_digits='0123456789'
7129as_cr_alnum=$as_cr_Letters$as_cr_digits
7130
7131ECHO_C= ECHO_N= ECHO_T=
7132case `echo -n x` in #(((((
7133-n*)
7134  case `echo 'xy\c'` in
7135  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
7136  xy)  ECHO_C='\c';;
7137  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
7138       ECHO_T='	';;
7139  esac;;
7140*)
7141  ECHO_N='-n';;
7142esac
7143
7144rm -f conf$$ conf$$.exe conf$$.file
7145if test -d conf$$.dir; then
7146  rm -f conf$$.dir/conf$$.file
7147else
7148  rm -f conf$$.dir
7149  mkdir conf$$.dir 2>/dev/null
7150fi
7151if (echo >conf$$.file) 2>/dev/null; then
7152  if ln -s conf$$.file conf$$ 2>/dev/null; then
7153    as_ln_s='ln -s'
7154    # ... but there are two gotchas:
7155    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7156    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7157    # In both cases, we have to default to `cp -pR'.
7158    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7159      as_ln_s='cp -pR'
7160  elif ln conf$$.file conf$$ 2>/dev/null; then
7161    as_ln_s=ln
7162  else
7163    as_ln_s='cp -pR'
7164  fi
7165else
7166  as_ln_s='cp -pR'
7167fi
7168rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7169rmdir conf$$.dir 2>/dev/null
7170
7171
7172# as_fn_mkdir_p
7173# -------------
7174# Create "$as_dir" as a directory, including parents if necessary.
7175as_fn_mkdir_p ()
7176{
7177
7178  case $as_dir in #(
7179  -*) as_dir=./$as_dir;;
7180  esac
7181  test -d "$as_dir" || eval $as_mkdir_p || {
7182    as_dirs=
7183    while :; do
7184      case $as_dir in #(
7185      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7186      *) as_qdir=$as_dir;;
7187      esac
7188      as_dirs="'$as_qdir' $as_dirs"
7189      as_dir=`$as_dirname -- "$as_dir" ||
7190$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7191	 X"$as_dir" : 'X\(//\)[^/]' \| \
7192	 X"$as_dir" : 'X\(//\)$' \| \
7193	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7194$as_echo X"$as_dir" |
7195    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7196	    s//\1/
7197	    q
7198	  }
7199	  /^X\(\/\/\)[^/].*/{
7200	    s//\1/
7201	    q
7202	  }
7203	  /^X\(\/\/\)$/{
7204	    s//\1/
7205	    q
7206	  }
7207	  /^X\(\/\).*/{
7208	    s//\1/
7209	    q
7210	  }
7211	  s/.*/./; q'`
7212      test -d "$as_dir" && break
7213    done
7214    test -z "$as_dirs" || eval "mkdir $as_dirs"
7215  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7216
7217
7218} # as_fn_mkdir_p
7219if mkdir -p . 2>/dev/null; then
7220  as_mkdir_p='mkdir -p "$as_dir"'
7221else
7222  test -d ./-p && rmdir ./-p
7223  as_mkdir_p=false
7224fi
7225
7226
7227# as_fn_executable_p FILE
7228# -----------------------
7229# Test if FILE is an executable regular file.
7230as_fn_executable_p ()
7231{
7232  test -f "$1" && test -x "$1"
7233} # as_fn_executable_p
7234as_test_x='test -x'
7235as_executable_p=as_fn_executable_p
7236
7237# Sed expression to map a string onto a valid CPP name.
7238as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7239
7240# Sed expression to map a string onto a valid variable name.
7241as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7242
7243
7244exec 6>&1
7245## ----------------------------------- ##
7246## Main body of $CONFIG_STATUS script. ##
7247## ----------------------------------- ##
7248_ASEOF
7249test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7250
7251cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7252# Save the log message, to keep $0 and so on meaningful, and to
7253# report actual input values of CONFIG_FILES etc. instead of their
7254# values after options handling.
7255ac_log="
7256This file was extended by libnbcompat $as_me noversion, which was
7257generated by GNU Autoconf 2.69.  Invocation command line was
7258
7259  CONFIG_FILES    = $CONFIG_FILES
7260  CONFIG_HEADERS  = $CONFIG_HEADERS
7261  CONFIG_LINKS    = $CONFIG_LINKS
7262  CONFIG_COMMANDS = $CONFIG_COMMANDS
7263  $ $0 $@
7264
7265on `(hostname || uname -n) 2>/dev/null | sed 1q`
7266"
7267
7268_ACEOF
7269
7270case $ac_config_files in *"
7271"*) set x $ac_config_files; shift; ac_config_files=$*;;
7272esac
7273
7274case $ac_config_headers in *"
7275"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7276esac
7277
7278
7279cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7280# Files that config.status was made for.
7281config_files="$ac_config_files"
7282config_headers="$ac_config_headers"
7283
7284_ACEOF
7285
7286cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7287ac_cs_usage="\
7288\`$as_me' instantiates files and other configuration actions
7289from templates according to the current configuration.  Unless the files
7290and actions are specified as TAGs, all are instantiated by default.
7291
7292Usage: $0 [OPTION]... [TAG]...
7293
7294  -h, --help       print this help, then exit
7295  -V, --version    print version number and configuration settings, then exit
7296      --config     print configuration, then exit
7297  -q, --quiet, --silent
7298                   do not print progress messages
7299  -d, --debug      don't remove temporary files
7300      --recheck    update $as_me by reconfiguring in the same conditions
7301      --file=FILE[:TEMPLATE]
7302                   instantiate the configuration file FILE
7303      --header=FILE[:TEMPLATE]
7304                   instantiate the configuration header FILE
7305
7306Configuration files:
7307$config_files
7308
7309Configuration headers:
7310$config_headers
7311
7312Report bugs to <lib-bug-people@NetBSD.org>."
7313
7314_ACEOF
7315cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7316ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7317ac_cs_version="\\
7318libnbcompat config.status noversion
7319configured by $0, generated by GNU Autoconf 2.69,
7320  with options \\"\$ac_cs_config\\"
7321
7322Copyright (C) 2012 Free Software Foundation, Inc.
7323This config.status script is free software; the Free Software Foundation
7324gives unlimited permission to copy, distribute and modify it."
7325
7326ac_pwd='$ac_pwd'
7327srcdir='$srcdir'
7328test -n "\$AWK" || AWK=awk
7329_ACEOF
7330
7331cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7332# The default lists apply if the user does not specify any file.
7333ac_need_defaults=:
7334while test $# != 0
7335do
7336  case $1 in
7337  --*=?*)
7338    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7339    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7340    ac_shift=:
7341    ;;
7342  --*=)
7343    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7344    ac_optarg=
7345    ac_shift=:
7346    ;;
7347  *)
7348    ac_option=$1
7349    ac_optarg=$2
7350    ac_shift=shift
7351    ;;
7352  esac
7353
7354  case $ac_option in
7355  # Handling of the options.
7356  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7357    ac_cs_recheck=: ;;
7358  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7359    $as_echo "$ac_cs_version"; exit ;;
7360  --config | --confi | --conf | --con | --co | --c )
7361    $as_echo "$ac_cs_config"; exit ;;
7362  --debug | --debu | --deb | --de | --d | -d )
7363    debug=: ;;
7364  --file | --fil | --fi | --f )
7365    $ac_shift
7366    case $ac_optarg in
7367    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7368    '') as_fn_error $? "missing file argument" ;;
7369    esac
7370    as_fn_append CONFIG_FILES " '$ac_optarg'"
7371    ac_need_defaults=false;;
7372  --header | --heade | --head | --hea )
7373    $ac_shift
7374    case $ac_optarg in
7375    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7376    esac
7377    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7378    ac_need_defaults=false;;
7379  --he | --h)
7380    # Conflict between --help and --header
7381    as_fn_error $? "ambiguous option: \`$1'
7382Try \`$0 --help' for more information.";;
7383  --help | --hel | -h )
7384    $as_echo "$ac_cs_usage"; exit ;;
7385  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7386  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7387    ac_cs_silent=: ;;
7388
7389  # This is an error.
7390  -*) as_fn_error $? "unrecognized option: \`$1'
7391Try \`$0 --help' for more information." ;;
7392
7393  *) as_fn_append ac_config_targets " $1"
7394     ac_need_defaults=false ;;
7395
7396  esac
7397  shift
7398done
7399
7400ac_configure_extra_args=
7401
7402if $ac_cs_silent; then
7403  exec 6>/dev/null
7404  ac_configure_extra_args="$ac_configure_extra_args --silent"
7405fi
7406
7407_ACEOF
7408cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7409if \$ac_cs_recheck; then
7410  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7411  shift
7412  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7413  CONFIG_SHELL='$SHELL'
7414  export CONFIG_SHELL
7415  exec "\$@"
7416fi
7417
7418_ACEOF
7419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7420exec 5>>config.log
7421{
7422  echo
7423  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7424## Running $as_me. ##
7425_ASBOX
7426  $as_echo "$ac_log"
7427} >&5
7428
7429_ACEOF
7430cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7431_ACEOF
7432
7433cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7434
7435# Handling of arguments.
7436for ac_config_target in $ac_config_targets
7437do
7438  case $ac_config_target in
7439    "nbtool_config.h") CONFIG_HEADERS="$CONFIG_HEADERS nbtool_config.h" ;;
7440    "defs.mk") CONFIG_FILES="$CONFIG_FILES defs.mk" ;;
7441
7442  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7443  esac
7444done
7445
7446
7447# If the user did not use the arguments to specify the items to instantiate,
7448# then the envvar interface is used.  Set only those that are not.
7449# We use the long form for the default assignment because of an extremely
7450# bizarre bug on SunOS 4.1.3.
7451if $ac_need_defaults; then
7452  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7453  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7454fi
7455
7456# Have a temporary directory for convenience.  Make it in the build tree
7457# simply because there is no reason against having it here, and in addition,
7458# creating and moving files from /tmp can sometimes cause problems.
7459# Hook for its removal unless debugging.
7460# Note that there is a small window in which the directory will not be cleaned:
7461# after its creation but before its name has been assigned to `$tmp'.
7462$debug ||
7463{
7464  tmp= ac_tmp=
7465  trap 'exit_status=$?
7466  : "${ac_tmp:=$tmp}"
7467  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7468' 0
7469  trap 'as_fn_exit 1' 1 2 13 15
7470}
7471# Create a (secure) tmp directory for tmp files.
7472
7473{
7474  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7475  test -d "$tmp"
7476}  ||
7477{
7478  tmp=./conf$$-$RANDOM
7479  (umask 077 && mkdir "$tmp")
7480} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7481ac_tmp=$tmp
7482
7483# Set up the scripts for CONFIG_FILES section.
7484# No need to generate them if there are no CONFIG_FILES.
7485# This happens for instance with `./config.status config.h'.
7486if test -n "$CONFIG_FILES"; then
7487
7488
7489ac_cr=`echo X | tr X '\015'`
7490# On cygwin, bash can eat \r inside `` if the user requested igncr.
7491# But we know of no other shell where ac_cr would be empty at this
7492# point, so we can use a bashism as a fallback.
7493if test "x$ac_cr" = x; then
7494  eval ac_cr=\$\'\\r\'
7495fi
7496ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7497if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7498  ac_cs_awk_cr='\\r'
7499else
7500  ac_cs_awk_cr=$ac_cr
7501fi
7502
7503echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7504_ACEOF
7505
7506
7507{
7508  echo "cat >conf$$subs.awk <<_ACEOF" &&
7509  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7510  echo "_ACEOF"
7511} >conf$$subs.sh ||
7512  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7513ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7514ac_delim='%!_!# '
7515for ac_last_try in false false false false false :; do
7516  . ./conf$$subs.sh ||
7517    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7518
7519  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7520  if test $ac_delim_n = $ac_delim_num; then
7521    break
7522  elif $ac_last_try; then
7523    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7524  else
7525    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7526  fi
7527done
7528rm -f conf$$subs.sh
7529
7530cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7531cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7532_ACEOF
7533sed -n '
7534h
7535s/^/S["/; s/!.*/"]=/
7536p
7537g
7538s/^[^!]*!//
7539:repl
7540t repl
7541s/'"$ac_delim"'$//
7542t delim
7543:nl
7544h
7545s/\(.\{148\}\)..*/\1/
7546t more1
7547s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7548p
7549n
7550b repl
7551:more1
7552s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7553p
7554g
7555s/.\{148\}//
7556t nl
7557:delim
7558h
7559s/\(.\{148\}\)..*/\1/
7560t more2
7561s/["\\]/\\&/g; s/^/"/; s/$/"/
7562p
7563b
7564:more2
7565s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7566p
7567g
7568s/.\{148\}//
7569t delim
7570' <conf$$subs.awk | sed '
7571/^[^""]/{
7572  N
7573  s/\n//
7574}
7575' >>$CONFIG_STATUS || ac_write_fail=1
7576rm -f conf$$subs.awk
7577cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7578_ACAWK
7579cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7580  for (key in S) S_is_set[key] = 1
7581  FS = ""
7582
7583}
7584{
7585  line = $ 0
7586  nfields = split(line, field, "@")
7587  substed = 0
7588  len = length(field[1])
7589  for (i = 2; i < nfields; i++) {
7590    key = field[i]
7591    keylen = length(key)
7592    if (S_is_set[key]) {
7593      value = S[key]
7594      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7595      len += length(value) + length(field[++i])
7596      substed = 1
7597    } else
7598      len += 1 + keylen
7599  }
7600
7601  print line
7602}
7603
7604_ACAWK
7605_ACEOF
7606cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7607if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7608  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7609else
7610  cat
7611fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7612  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7613_ACEOF
7614
7615# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7616# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7617# trailing colons and then remove the whole line if VPATH becomes empty
7618# (actually we leave an empty line to preserve line numbers).
7619if test "x$srcdir" = x.; then
7620  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
7621h
7622s///
7623s/^/:/
7624s/[	 ]*$/:/
7625s/:\$(srcdir):/:/g
7626s/:\${srcdir}:/:/g
7627s/:@srcdir@:/:/g
7628s/^:*//
7629s/:*$//
7630x
7631s/\(=[	 ]*\).*/\1/
7632G
7633s/\n//
7634s/^[^=]*=[	 ]*$//
7635}'
7636fi
7637
7638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7639fi # test -n "$CONFIG_FILES"
7640
7641# Set up the scripts for CONFIG_HEADERS section.
7642# No need to generate them if there are no CONFIG_HEADERS.
7643# This happens for instance with `./config.status Makefile'.
7644if test -n "$CONFIG_HEADERS"; then
7645cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7646BEGIN {
7647_ACEOF
7648
7649# Transform confdefs.h into an awk script `defines.awk', embedded as
7650# here-document in config.status, that substitutes the proper values into
7651# config.h.in to produce config.h.
7652
7653# Create a delimiter string that does not exist in confdefs.h, to ease
7654# handling of long lines.
7655ac_delim='%!_!# '
7656for ac_last_try in false false :; do
7657  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7658  if test -z "$ac_tt"; then
7659    break
7660  elif $ac_last_try; then
7661    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7662  else
7663    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7664  fi
7665done
7666
7667# For the awk script, D is an array of macro values keyed by name,
7668# likewise P contains macro parameters if any.  Preserve backslash
7669# newline sequences.
7670
7671ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7672sed -n '
7673s/.\{148\}/&'"$ac_delim"'/g
7674t rset
7675:rset
7676s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
7677t def
7678d
7679:def
7680s/\\$//
7681t bsnl
7682s/["\\]/\\&/g
7683s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
7684D["\1"]=" \3"/p
7685s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
7686d
7687:bsnl
7688s/["\\]/\\&/g
7689s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
7690D["\1"]=" \3\\\\\\n"\\/p
7691t cont
7692s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7693t cont
7694d
7695:cont
7696n
7697s/.\{148\}/&'"$ac_delim"'/g
7698t clear
7699:clear
7700s/\\$//
7701t bsnlc
7702s/["\\]/\\&/g; s/^/"/; s/$/"/p
7703d
7704:bsnlc
7705s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7706b cont
7707' <confdefs.h | sed '
7708s/'"$ac_delim"'/"\\\
7709"/g' >>$CONFIG_STATUS || ac_write_fail=1
7710
7711cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7712  for (key in D) D_is_set[key] = 1
7713  FS = ""
7714}
7715/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7716  line = \$ 0
7717  split(line, arg, " ")
7718  if (arg[1] == "#") {
7719    defundef = arg[2]
7720    mac1 = arg[3]
7721  } else {
7722    defundef = substr(arg[1], 2)
7723    mac1 = arg[2]
7724  }
7725  split(mac1, mac2, "(") #)
7726  macro = mac2[1]
7727  prefix = substr(line, 1, index(line, defundef) - 1)
7728  if (D_is_set[macro]) {
7729    # Preserve the white space surrounding the "#".
7730    print prefix "define", macro P[macro] D[macro]
7731    next
7732  } else {
7733    # Replace #undef with comments.  This is necessary, for example,
7734    # in the case of _POSIX_SOURCE, which is predefined and required
7735    # on some systems where configure will not decide to define it.
7736    if (defundef == "undef") {
7737      print "/*", prefix defundef, macro, "*/"
7738      next
7739    }
7740  }
7741}
7742{ print }
7743_ACAWK
7744_ACEOF
7745cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7746  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7747fi # test -n "$CONFIG_HEADERS"
7748
7749
7750eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
7751shift
7752for ac_tag
7753do
7754  case $ac_tag in
7755  :[FHLC]) ac_mode=$ac_tag; continue;;
7756  esac
7757  case $ac_mode$ac_tag in
7758  :[FHL]*:*);;
7759  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7760  :[FH]-) ac_tag=-:-;;
7761  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7762  esac
7763  ac_save_IFS=$IFS
7764  IFS=:
7765  set x $ac_tag
7766  IFS=$ac_save_IFS
7767  shift
7768  ac_file=$1
7769  shift
7770
7771  case $ac_mode in
7772  :L) ac_source=$1;;
7773  :[FH])
7774    ac_file_inputs=
7775    for ac_f
7776    do
7777      case $ac_f in
7778      -) ac_f="$ac_tmp/stdin";;
7779      *) # Look for the file first in the build tree, then in the source tree
7780	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
7781	 # because $ac_f cannot contain `:'.
7782	 test -f "$ac_f" ||
7783	   case $ac_f in
7784	   [\\/$]*) false;;
7785	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7786	   esac ||
7787	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7788      esac
7789      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7790      as_fn_append ac_file_inputs " '$ac_f'"
7791    done
7792
7793    # Let's still pretend it is `configure' which instantiates (i.e., don't
7794    # use $as_me), people would be surprised to read:
7795    #    /* config.h.  Generated by config.status.  */
7796    configure_input='Generated from '`
7797	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7798	`' by configure.'
7799    if test x"$ac_file" != x-; then
7800      configure_input="$ac_file.  $configure_input"
7801      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7802$as_echo "$as_me: creating $ac_file" >&6;}
7803    fi
7804    # Neutralize special characters interpreted by sed in replacement strings.
7805    case $configure_input in #(
7806    *\&* | *\|* | *\\* )
7807       ac_sed_conf_input=`$as_echo "$configure_input" |
7808       sed 's/[\\\\&|]/\\\\&/g'`;; #(
7809    *) ac_sed_conf_input=$configure_input;;
7810    esac
7811
7812    case $ac_tag in
7813    *:-:* | *:-) cat >"$ac_tmp/stdin" \
7814      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7815    esac
7816    ;;
7817  esac
7818
7819  ac_dir=`$as_dirname -- "$ac_file" ||
7820$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7821	 X"$ac_file" : 'X\(//\)[^/]' \| \
7822	 X"$ac_file" : 'X\(//\)$' \| \
7823	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7824$as_echo X"$ac_file" |
7825    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7826	    s//\1/
7827	    q
7828	  }
7829	  /^X\(\/\/\)[^/].*/{
7830	    s//\1/
7831	    q
7832	  }
7833	  /^X\(\/\/\)$/{
7834	    s//\1/
7835	    q
7836	  }
7837	  /^X\(\/\).*/{
7838	    s//\1/
7839	    q
7840	  }
7841	  s/.*/./; q'`
7842  as_dir="$ac_dir"; as_fn_mkdir_p
7843  ac_builddir=.
7844
7845case "$ac_dir" in
7846.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7847*)
7848  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7849  # A ".." for each directory in $ac_dir_suffix.
7850  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7851  case $ac_top_builddir_sub in
7852  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7853  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7854  esac ;;
7855esac
7856ac_abs_top_builddir=$ac_pwd
7857ac_abs_builddir=$ac_pwd$ac_dir_suffix
7858# for backward compatibility:
7859ac_top_builddir=$ac_top_build_prefix
7860
7861case $srcdir in
7862  .)  # We are building in place.
7863    ac_srcdir=.
7864    ac_top_srcdir=$ac_top_builddir_sub
7865    ac_abs_top_srcdir=$ac_pwd ;;
7866  [\\/]* | ?:[\\/]* )  # Absolute name.
7867    ac_srcdir=$srcdir$ac_dir_suffix;
7868    ac_top_srcdir=$srcdir
7869    ac_abs_top_srcdir=$srcdir ;;
7870  *) # Relative name.
7871    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7872    ac_top_srcdir=$ac_top_build_prefix$srcdir
7873    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7874esac
7875ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7876
7877
7878  case $ac_mode in
7879  :F)
7880  #
7881  # CONFIG_FILE
7882  #
7883
7884_ACEOF
7885
7886cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7887# If the template does not know about datarootdir, expand it.
7888# FIXME: This hack should be removed a few years after 2.60.
7889ac_datarootdir_hack=; ac_datarootdir_seen=
7890ac_sed_dataroot='
7891/datarootdir/ {
7892  p
7893  q
7894}
7895/@datadir@/p
7896/@docdir@/p
7897/@infodir@/p
7898/@localedir@/p
7899/@mandir@/p'
7900case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7901*datarootdir*) ac_datarootdir_seen=yes;;
7902*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7903  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7904$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7905_ACEOF
7906cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7907  ac_datarootdir_hack='
7908  s&@datadir@&$datadir&g
7909  s&@docdir@&$docdir&g
7910  s&@infodir@&$infodir&g
7911  s&@localedir@&$localedir&g
7912  s&@mandir@&$mandir&g
7913  s&\\\${datarootdir}&$datarootdir&g' ;;
7914esac
7915_ACEOF
7916
7917# Neutralize VPATH when `$srcdir' = `.'.
7918# Shell code in configure.ac might set extrasub.
7919# FIXME: do we really want to maintain this feature?
7920cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7921ac_sed_extra="$ac_vpsub
7922$extrasub
7923_ACEOF
7924cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7925:t
7926/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7927s|@configure_input@|$ac_sed_conf_input|;t t
7928s&@top_builddir@&$ac_top_builddir_sub&;t t
7929s&@top_build_prefix@&$ac_top_build_prefix&;t t
7930s&@srcdir@&$ac_srcdir&;t t
7931s&@abs_srcdir@&$ac_abs_srcdir&;t t
7932s&@top_srcdir@&$ac_top_srcdir&;t t
7933s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7934s&@builddir@&$ac_builddir&;t t
7935s&@abs_builddir@&$ac_abs_builddir&;t t
7936s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7937$ac_datarootdir_hack
7938"
7939eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7940  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7941
7942test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7943  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7944  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
7945      "$ac_tmp/out"`; test -z "$ac_out"; } &&
7946  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7947which seems to be undefined.  Please make sure it is defined" >&5
7948$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7949which seems to be undefined.  Please make sure it is defined" >&2;}
7950
7951  rm -f "$ac_tmp/stdin"
7952  case $ac_file in
7953  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7954  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7955  esac \
7956  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7957 ;;
7958  :H)
7959  #
7960  # CONFIG_HEADER
7961  #
7962  if test x"$ac_file" != x-; then
7963    {
7964      $as_echo "/* $configure_input  */" \
7965      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7966    } >"$ac_tmp/config.h" \
7967      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7968    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7969      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7970$as_echo "$as_me: $ac_file is unchanged" >&6;}
7971    else
7972      rm -f "$ac_file"
7973      mv "$ac_tmp/config.h" "$ac_file" \
7974	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
7975    fi
7976  else
7977    $as_echo "/* $configure_input  */" \
7978      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7979      || as_fn_error $? "could not create -" "$LINENO" 5
7980  fi
7981 ;;
7982
7983
7984  esac
7985
7986done # for ac_tag
7987
7988
7989as_fn_exit 0
7990_ACEOF
7991ac_clean_files=$ac_clean_files_save
7992
7993test $ac_write_fail = 0 ||
7994  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7995
7996
7997# configure is writing to config.log, and then calls config.status.
7998# config.status does its own redirection, appending to config.log.
7999# Unfortunately, on DOS this fails, as config.log is still kept open
8000# by configure, so config.status won't be able to write to it; its
8001# output is simply discarded.  So we exec the FD to /dev/null,
8002# effectively closing config.log, so it can be properly (re)opened and
8003# appended to by config.status.  When coming back to configure, we
8004# need to make the FD available again.
8005if test "$no_create" != yes; then
8006  ac_cs_success=:
8007  ac_config_status_args=
8008  test "$silent" = yes &&
8009    ac_config_status_args="$ac_config_status_args --quiet"
8010  exec 5>/dev/null
8011  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8012  exec 5>>config.log
8013  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8014  # would make configure fail if this is the last instruction.
8015  $ac_cs_success || as_fn_exit 1
8016fi
8017if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8018  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8019$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8020fi
8021
8022
8023{ $as_echo "$as_me:${as_lineno-$LINENO}: ========= configure results for compat ==========" >&5
8024$as_echo "$as_me: ========= configure results for compat ==========" >&6;}
8025{ $as_echo "$as_me:${as_lineno-$LINENO}: CC                                      $CC" >&5
8026$as_echo "$as_me: CC                                      $CC" >&6;}
8027{ $as_echo "$as_me:${as_lineno-$LINENO}: LIBS                                    $LIBS" >&5
8028$as_echo "$as_me: LIBS                                    $LIBS" >&6;}
8029{ $as_echo "$as_me:${as_lineno-$LINENO}: CC_NO_CPP_PRECOMP                       $CC_NO_CPP_PRECOMP" >&5
8030$as_echo "$as_me: CC_NO_CPP_PRECOMP                       $CC_NO_CPP_PRECOMP" >&6;}
8031{ $as_echo "$as_me:${as_lineno-$LINENO}: CC_WNO_ADDRESS_OF_PACKED_MEMBER         $CC_WNO_ADDRESS_OF_PACKED_MEMBER" >&5
8032$as_echo "$as_me: CC_WNO_ADDRESS_OF_PACKED_MEMBER         $CC_WNO_ADDRESS_OF_PACKED_MEMBER" >&6;}
8033{ $as_echo "$as_me:${as_lineno-$LINENO}: CC_WNO_CAST_FUNCTION_TYPE               $CC_WNO_CAST_FUNCTION_TYPE" >&5
8034$as_echo "$as_me: CC_WNO_CAST_FUNCTION_TYPE               $CC_WNO_CAST_FUNCTION_TYPE" >&6;}
8035{ $as_echo "$as_me:${as_lineno-$LINENO}: CC_WNO_ERROR_ADDRESS_OF_PACKED_MEMBER   $CC_WNO_ERROR_ADDRESS_OF_PACKED_MEMBER" >&5
8036$as_echo "$as_me: CC_WNO_ERROR_ADDRESS_OF_PACKED_MEMBER   $CC_WNO_ERROR_ADDRESS_OF_PACKED_MEMBER" >&6;}
8037{ $as_echo "$as_me:${as_lineno-$LINENO}: CC_WNO_FORMAT_OVERFLOW                  $CC_WNO_FORMAT_OVERFLOW" >&5
8038$as_echo "$as_me: CC_WNO_FORMAT_OVERFLOW                  $CC_WNO_FORMAT_OVERFLOW" >&6;}
8039{ $as_echo "$as_me:${as_lineno-$LINENO}: CC_WNO_FORMAT_TRUNCATION                $CC_WNO_FORMAT_TRUNCATION" >&5
8040$as_echo "$as_me: CC_WNO_FORMAT_TRUNCATION                $CC_WNO_FORMAT_TRUNCATION" >&6;}
8041{ $as_echo "$as_me:${as_lineno-$LINENO}: CC_WNO_IMPLICIT_FALLTHROUGH             $CC_WNO_IMPLICIT_FALLTHROUGH" >&5
8042$as_echo "$as_me: CC_WNO_IMPLICIT_FALLTHROUGH             $CC_WNO_IMPLICIT_FALLTHROUGH" >&6;}
8043{ $as_echo "$as_me:${as_lineno-$LINENO}: CC_WNO_MAYBE_UNINITIALIZED              $CC_WNO_MAYBE_UNINITIALIZED" >&5
8044$as_echo "$as_me: CC_WNO_MAYBE_UNINITIALIZED              $CC_WNO_MAYBE_UNINITIALIZED" >&6;}
8045{ $as_echo "$as_me:${as_lineno-$LINENO}: CC_WNO_RETURN_LOCAL_ADDR                $CC_WNO_RETURN_LOCAL_ADDR" >&5
8046$as_echo "$as_me: CC_WNO_RETURN_LOCAL_ADDR                $CC_WNO_RETURN_LOCAL_ADDR" >&6;}
8047{ $as_echo "$as_me:${as_lineno-$LINENO}: CC_WNO_STRINGOP_OVERFLOW                $CC_WNO_STRINGOP_OVERFLOW" >&5
8048$as_echo "$as_me: CC_WNO_STRINGOP_OVERFLOW                $CC_WNO_STRINGOP_OVERFLOW" >&6;}
8049{ $as_echo "$as_me:${as_lineno-$LINENO}: CC_WNO_STRINGOP_TRUNCATION              $CC_WNO_STRINGOP_TRUNCATION" >&5
8050$as_echo "$as_me: CC_WNO_STRINGOP_TRUNCATION              $CC_WNO_STRINGOP_TRUNCATION" >&6;}
8051
8052{ $as_echo "$as_me:${as_lineno-$LINENO}: ================================================" >&5
8053$as_echo "$as_me: ================================================" >&6;}
8054