"Fossies" - the Fresh Open Source Software Archive

Member "tmux-3.2a/configure" (10 Jun 2021, 251868 Bytes) of package /linux/misc/tmux-3.2a.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

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