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