Home | History | Annotate | Line # | Download | only in dist
configure revision 1.1.1.2
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.69 for tmux 2.6.
      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 (at] 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='2.6'
    581 PACKAGE_STRING='tmux 2.6'
    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_HPUX_FALSE
    631 IS_HPUX_TRUE
    632 IS_SUNOS_FALSE
    633 IS_SUNOS_TRUE
    634 IS_OPENBSD_FALSE
    635 IS_OPENBSD_TRUE
    636 IS_NETBSD_FALSE
    637 IS_NETBSD_TRUE
    638 IS_FREEBSD_FALSE
    639 IS_FREEBSD_TRUE
    640 IS_LINUX_FALSE
    641 IS_LINUX_TRUE
    642 IS_DRAGONFLY_FALSE
    643 IS_DRAGONFLY_TRUE
    644 IS_DARWIN_FALSE
    645 IS_DARWIN_TRUE
    646 IS_AIX_FALSE
    647 IS_AIX_TRUE
    648 PLATFORM
    649 MANFORMAT
    650 NEED_FORKPTY_FALSE
    651 NEED_FORKPTY_TRUE
    652 XOPEN_DEFINES
    653 HAVE_UTF8PROC_FALSE
    654 HAVE_UTF8PROC_TRUE
    655 LIBNCURSES_LIBS
    656 LIBNCURSES_CFLAGS
    657 LIBTINFO_LIBS
    658 LIBTINFO_CFLAGS
    659 LIBEVENT_LIBS
    660 LIBEVENT_CFLAGS
    661 LIBOBJS
    662 IS_SUNCC_FALSE
    663 IS_SUNCC_TRUE
    664 IS_GCC_FALSE
    665 IS_GCC_TRUE
    666 IS_DEBUG_FALSE
    667 IS_DEBUG_TRUE
    668 PKG_CONFIG_LIBDIR
    669 PKG_CONFIG_PATH
    670 PKG_CONFIG
    671 EGREP
    672 GREP
    673 CPP
    674 am__fastdepCC_FALSE
    675 am__fastdepCC_TRUE
    676 CCDEPMODE
    677 am__nodep
    678 AMDEPBACKSLASH
    679 AMDEP_FALSE
    680 AMDEP_TRUE
    681 am__quote
    682 am__include
    683 DEPDIR
    684 OBJEXT
    685 EXEEXT
    686 ac_ct_CC
    687 CPPFLAGS
    688 LDFLAGS
    689 CFLAGS
    690 CC
    691 host_os
    692 host_vendor
    693 host_cpu
    694 host
    695 build_os
    696 build_vendor
    697 build_cpu
    698 build
    699 AM_BACKSLASH
    700 AM_DEFAULT_VERBOSITY
    701 AM_DEFAULT_V
    702 AM_V
    703 am__untar
    704 am__tar
    705 AMTAR
    706 am__leading_dot
    707 SET_MAKE
    708 AWK
    709 mkdir_p
    710 MKDIR_P
    711 INSTALL_STRIP_PROGRAM
    712 STRIP
    713 install_sh
    714 MAKEINFO
    715 AUTOHEADER
    716 AUTOMAKE
    717 AUTOCONF
    718 ACLOCAL
    719 VERSION
    720 PACKAGE
    721 CYGPATH_W
    722 am__isrc
    723 INSTALL_DATA
    724 INSTALL_SCRIPT
    725 INSTALL_PROGRAM
    726 target_alias
    727 host_alias
    728 build_alias
    729 LIBS
    730 ECHO_T
    731 ECHO_N
    732 ECHO_C
    733 DEFS
    734 mandir
    735 localedir
    736 libdir
    737 psdir
    738 pdfdir
    739 dvidir
    740 htmldir
    741 infodir
    742 docdir
    743 oldincludedir
    744 includedir
    745 runstatedir
    746 localstatedir
    747 sharedstatedir
    748 sysconfdir
    749 datadir
    750 datarootdir
    751 libexecdir
    752 sbindir
    753 bindir
    754 program_transform_name
    755 prefix
    756 exec_prefix
    757 PACKAGE_URL
    758 PACKAGE_BUGREPORT
    759 PACKAGE_STRING
    760 PACKAGE_VERSION
    761 PACKAGE_TARNAME
    762 PACKAGE_NAME
    763 PATH_SEPARATOR
    764 SHELL'
    765 ac_subst_files=''
    766 ac_user_opts='
    767 enable_option_checking
    768 enable_silent_rules
    769 enable_dependency_tracking
    770 enable_debug
    771 enable_static
    772 enable_utempter
    773 enable_utf8proc
    774 '
    775       ac_precious_vars='build_alias
    776 host_alias
    777 target_alias
    778 CC
    779 CFLAGS
    780 LDFLAGS
    781 LIBS
    782 CPPFLAGS
    783 CPP
    784 PKG_CONFIG
    785 PKG_CONFIG_PATH
    786 PKG_CONFIG_LIBDIR
    787 LIBEVENT_CFLAGS
    788 LIBEVENT_LIBS
    789 LIBTINFO_CFLAGS
    790 LIBTINFO_LIBS
    791 LIBNCURSES_CFLAGS
    792 LIBNCURSES_LIBS'
    793 
    794 
    795 # Initialize some variables set by options.
    796 ac_init_help=
    797 ac_init_version=false
    798 ac_unrecognized_opts=
    799 ac_unrecognized_sep=
    800 # The variables have the same names as the options, with
    801 # dashes changed to underlines.
    802 cache_file=/dev/null
    803 exec_prefix=NONE
    804 no_create=
    805 no_recursion=
    806 prefix=NONE
    807 program_prefix=NONE
    808 program_suffix=NONE
    809 program_transform_name=s,x,x,
    810 silent=
    811 site=
    812 srcdir=
    813 verbose=
    814 x_includes=NONE
    815 x_libraries=NONE
    816 
    817 # Installation directory options.
    818 # These are left unexpanded so users can "make install exec_prefix=/foo"
    819 # and all the variables that are supposed to be based on exec_prefix
    820 # by default will actually change.
    821 # Use braces instead of parens because sh, perl, etc. also accept them.
    822 # (The list follows the same order as the GNU Coding Standards.)
    823 bindir='${exec_prefix}/bin'
    824 sbindir='${exec_prefix}/sbin'
    825 libexecdir='${exec_prefix}/libexec'
    826 datarootdir='${prefix}/share'
    827 datadir='${datarootdir}'
    828 sysconfdir='${prefix}/etc'
    829 sharedstatedir='${prefix}/com'
    830 localstatedir='${prefix}/var'
    831 runstatedir='${localstatedir}/run'
    832 includedir='${prefix}/include'
    833 oldincludedir='/usr/include'
    834 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    835 infodir='${datarootdir}/info'
    836 htmldir='${docdir}'
    837 dvidir='${docdir}'
    838 pdfdir='${docdir}'
    839 psdir='${docdir}'
    840 libdir='${exec_prefix}/lib'
    841 localedir='${datarootdir}/locale'
    842 mandir='${datarootdir}/man'
    843 
    844 ac_prev=
    845 ac_dashdash=
    846 for ac_option
    847 do
    848   # If the previous option needs an argument, assign it.
    849   if test -n "$ac_prev"; then
    850     eval $ac_prev=\$ac_option
    851     ac_prev=
    852     continue
    853   fi
    854 
    855   case $ac_option in
    856   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    857   *=)   ac_optarg= ;;
    858   *)    ac_optarg=yes ;;
    859   esac
    860 
    861   # Accept the important Cygnus configure options, so we can diagnose typos.
    862 
    863   case $ac_dashdash$ac_option in
    864   --)
    865     ac_dashdash=yes ;;
    866 
    867   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    868     ac_prev=bindir ;;
    869   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    870     bindir=$ac_optarg ;;
    871 
    872   -build | --build | --buil | --bui | --bu)
    873     ac_prev=build_alias ;;
    874   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    875     build_alias=$ac_optarg ;;
    876 
    877   -cache-file | --cache-file | --cache-fil | --cache-fi \
    878   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    879     ac_prev=cache_file ;;
    880   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    881   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    882     cache_file=$ac_optarg ;;
    883 
    884   --config-cache | -C)
    885     cache_file=config.cache ;;
    886 
    887   -datadir | --datadir | --datadi | --datad)
    888     ac_prev=datadir ;;
    889   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    890     datadir=$ac_optarg ;;
    891 
    892   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    893   | --dataroo | --dataro | --datar)
    894     ac_prev=datarootdir ;;
    895   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    896   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    897     datarootdir=$ac_optarg ;;
    898 
    899   -disable-* | --disable-*)
    900     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    901     # Reject names that are not valid shell variable names.
    902     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    903       as_fn_error $? "invalid feature name: $ac_useropt"
    904     ac_useropt_orig=$ac_useropt
    905     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    906     case $ac_user_opts in
    907       *"
    908 "enable_$ac_useropt"
    909 "*) ;;
    910       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
    911 	 ac_unrecognized_sep=', ';;
    912     esac
    913     eval enable_$ac_useropt=no ;;
    914 
    915   -docdir | --docdir | --docdi | --doc | --do)
    916     ac_prev=docdir ;;
    917   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    918     docdir=$ac_optarg ;;
    919 
    920   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    921     ac_prev=dvidir ;;
    922   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    923     dvidir=$ac_optarg ;;
    924 
    925   -enable-* | --enable-*)
    926     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    927     # Reject names that are not valid shell variable names.
    928     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    929       as_fn_error $? "invalid feature name: $ac_useropt"
    930     ac_useropt_orig=$ac_useropt
    931     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    932     case $ac_user_opts in
    933       *"
    934 "enable_$ac_useropt"
    935 "*) ;;
    936       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
    937 	 ac_unrecognized_sep=', ';;
    938     esac
    939     eval enable_$ac_useropt=\$ac_optarg ;;
    940 
    941   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    942   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    943   | --exec | --exe | --ex)
    944     ac_prev=exec_prefix ;;
    945   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    946   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    947   | --exec=* | --exe=* | --ex=*)
    948     exec_prefix=$ac_optarg ;;
    949 
    950   -gas | --gas | --ga | --g)
    951     # Obsolete; use --with-gas.
    952     with_gas=yes ;;
    953 
    954   -help | --help | --hel | --he | -h)
    955     ac_init_help=long ;;
    956   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    957     ac_init_help=recursive ;;
    958   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    959     ac_init_help=short ;;
    960 
    961   -host | --host | --hos | --ho)
    962     ac_prev=host_alias ;;
    963   -host=* | --host=* | --hos=* | --ho=*)
    964     host_alias=$ac_optarg ;;
    965 
    966   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    967     ac_prev=htmldir ;;
    968   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
    969   | --ht=*)
    970     htmldir=$ac_optarg ;;
    971 
    972   -includedir | --includedir | --includedi | --included | --include \
    973   | --includ | --inclu | --incl | --inc)
    974     ac_prev=includedir ;;
    975   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    976   | --includ=* | --inclu=* | --incl=* | --inc=*)
    977     includedir=$ac_optarg ;;
    978 
    979   -infodir | --infodir | --infodi | --infod | --info | --inf)
    980     ac_prev=infodir ;;
    981   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    982     infodir=$ac_optarg ;;
    983 
    984   -libdir | --libdir | --libdi | --libd)
    985     ac_prev=libdir ;;
    986   -libdir=* | --libdir=* | --libdi=* | --libd=*)
    987     libdir=$ac_optarg ;;
    988 
    989   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
    990   | --libexe | --libex | --libe)
    991     ac_prev=libexecdir ;;
    992   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    993   | --libexe=* | --libex=* | --libe=*)
    994     libexecdir=$ac_optarg ;;
    995 
    996   -localedir | --localedir | --localedi | --localed | --locale)
    997     ac_prev=localedir ;;
    998   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
    999     localedir=$ac_optarg ;;
   1000 
   1001   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1002   | --localstate | --localstat | --localsta | --localst | --locals)
   1003     ac_prev=localstatedir ;;
   1004   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1005   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1006     localstatedir=$ac_optarg ;;
   1007 
   1008   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1009     ac_prev=mandir ;;
   1010   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1011     mandir=$ac_optarg ;;
   1012 
   1013   -nfp | --nfp | --nf)
   1014     # Obsolete; use --without-fp.
   1015     with_fp=no ;;
   1016 
   1017   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1018   | --no-cr | --no-c | -n)
   1019     no_create=yes ;;
   1020 
   1021   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1022   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1023     no_recursion=yes ;;
   1024 
   1025   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1026   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1027   | --oldin | --oldi | --old | --ol | --o)
   1028     ac_prev=oldincludedir ;;
   1029   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1030   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1031   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1032     oldincludedir=$ac_optarg ;;
   1033 
   1034   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1035     ac_prev=prefix ;;
   1036   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1037     prefix=$ac_optarg ;;
   1038 
   1039   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1040   | --program-pre | --program-pr | --program-p)
   1041     ac_prev=program_prefix ;;
   1042   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1043   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1044     program_prefix=$ac_optarg ;;
   1045 
   1046   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1047   | --program-suf | --program-su | --program-s)
   1048     ac_prev=program_suffix ;;
   1049   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1050   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1051     program_suffix=$ac_optarg ;;
   1052 
   1053   -program-transform-name | --program-transform-name \
   1054   | --program-transform-nam | --program-transform-na \
   1055   | --program-transform-n | --program-transform- \
   1056   | --program-transform | --program-transfor \
   1057   | --program-transfo | --program-transf \
   1058   | --program-trans | --program-tran \
   1059   | --progr-tra | --program-tr | --program-t)
   1060     ac_prev=program_transform_name ;;
   1061   -program-transform-name=* | --program-transform-name=* \
   1062   | --program-transform-nam=* | --program-transform-na=* \
   1063   | --program-transform-n=* | --program-transform-=* \
   1064   | --program-transform=* | --program-transfor=* \
   1065   | --program-transfo=* | --program-transf=* \
   1066   | --program-trans=* | --program-tran=* \
   1067   | --progr-tra=* | --program-tr=* | --program-t=*)
   1068     program_transform_name=$ac_optarg ;;
   1069 
   1070   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1071     ac_prev=pdfdir ;;
   1072   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1073     pdfdir=$ac_optarg ;;
   1074 
   1075   -psdir | --psdir | --psdi | --psd | --ps)
   1076     ac_prev=psdir ;;
   1077   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1078     psdir=$ac_optarg ;;
   1079 
   1080   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1081   | -silent | --silent | --silen | --sile | --sil)
   1082     silent=yes ;;
   1083 
   1084   -runstatedir | --runstatedir | --runstatedi | --runstated \
   1085   | --runstate | --runstat | --runsta | --runst | --runs \
   1086   | --run | --ru | --r)
   1087     ac_prev=runstatedir ;;
   1088   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
   1089   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
   1090   | --run=* | --ru=* | --r=*)
   1091     runstatedir=$ac_optarg ;;
   1092 
   1093   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1094     ac_prev=sbindir ;;
   1095   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1096   | --sbi=* | --sb=*)
   1097     sbindir=$ac_optarg ;;
   1098 
   1099   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1100   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1101   | --sharedst | --shareds | --shared | --share | --shar \
   1102   | --sha | --sh)
   1103     ac_prev=sharedstatedir ;;
   1104   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1105   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1106   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1107   | --sha=* | --sh=*)
   1108     sharedstatedir=$ac_optarg ;;
   1109 
   1110   -site | --site | --sit)
   1111     ac_prev=site ;;
   1112   -site=* | --site=* | --sit=*)
   1113     site=$ac_optarg ;;
   1114 
   1115   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1116     ac_prev=srcdir ;;
   1117   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1118     srcdir=$ac_optarg ;;
   1119 
   1120   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1121   | --syscon | --sysco | --sysc | --sys | --sy)
   1122     ac_prev=sysconfdir ;;
   1123   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1124   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1125     sysconfdir=$ac_optarg ;;
   1126 
   1127   -target | --target | --targe | --targ | --tar | --ta | --t)
   1128     ac_prev=target_alias ;;
   1129   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1130     target_alias=$ac_optarg ;;
   1131 
   1132   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1133     verbose=yes ;;
   1134 
   1135   -version | --version | --versio | --versi | --vers | -V)
   1136     ac_init_version=: ;;
   1137 
   1138   -with-* | --with-*)
   1139     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1140     # Reject names that are not valid shell variable names.
   1141     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1142       as_fn_error $? "invalid package name: $ac_useropt"
   1143     ac_useropt_orig=$ac_useropt
   1144     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1145     case $ac_user_opts in
   1146       *"
   1147 "with_$ac_useropt"
   1148 "*) ;;
   1149       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1150 	 ac_unrecognized_sep=', ';;
   1151     esac
   1152     eval with_$ac_useropt=\$ac_optarg ;;
   1153 
   1154   -without-* | --without-*)
   1155     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1156     # Reject names that are not valid shell variable names.
   1157     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1158       as_fn_error $? "invalid package name: $ac_useropt"
   1159     ac_useropt_orig=$ac_useropt
   1160     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1161     case $ac_user_opts in
   1162       *"
   1163 "with_$ac_useropt"
   1164 "*) ;;
   1165       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1166 	 ac_unrecognized_sep=', ';;
   1167     esac
   1168     eval with_$ac_useropt=no ;;
   1169 
   1170   --x)
   1171     # Obsolete; use --with-x.
   1172     with_x=yes ;;
   1173 
   1174   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1175   | --x-incl | --x-inc | --x-in | --x-i)
   1176     ac_prev=x_includes ;;
   1177   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1178   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1179     x_includes=$ac_optarg ;;
   1180 
   1181   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1182   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1183     ac_prev=x_libraries ;;
   1184   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1185   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1186     x_libraries=$ac_optarg ;;
   1187 
   1188   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1189 Try \`$0 --help' for more information"
   1190     ;;
   1191 
   1192   *=*)
   1193     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1194     # Reject names that are not valid shell variable names.
   1195     case $ac_envvar in #(
   1196       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1197       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1198     esac
   1199     eval $ac_envvar=\$ac_optarg
   1200     export $ac_envvar ;;
   1201 
   1202   *)
   1203     # FIXME: should be removed in autoconf 3.0.
   1204     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1205     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1206       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1207     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1208     ;;
   1209 
   1210   esac
   1211 done
   1212 
   1213 if test -n "$ac_prev"; then
   1214   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1215   as_fn_error $? "missing argument to $ac_option"
   1216 fi
   1217 
   1218 if test -n "$ac_unrecognized_opts"; then
   1219   case $enable_option_checking in
   1220     no) ;;
   1221     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1222     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1223   esac
   1224 fi
   1225 
   1226 # Check all directory arguments for consistency.
   1227 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1228 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1229 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1230 		libdir localedir mandir runstatedir
   1231 do
   1232   eval ac_val=\$$ac_var
   1233   # Remove trailing slashes.
   1234   case $ac_val in
   1235     */ )
   1236       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1237       eval $ac_var=\$ac_val;;
   1238   esac
   1239   # Be sure to have absolute directory names.
   1240   case $ac_val in
   1241     [\\/$]* | ?:[\\/]* )  continue;;
   1242     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1243   esac
   1244   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1245 done
   1246 
   1247 # There might be people who depend on the old broken behavior: `$host'
   1248 # used to hold the argument of --host etc.
   1249 # FIXME: To remove some day.
   1250 build=$build_alias
   1251 host=$host_alias
   1252 target=$target_alias
   1253 
   1254 # FIXME: To remove some day.
   1255 if test "x$host_alias" != x; then
   1256   if test "x$build_alias" = x; then
   1257     cross_compiling=maybe
   1258   elif test "x$build_alias" != "x$host_alias"; then
   1259     cross_compiling=yes
   1260   fi
   1261 fi
   1262 
   1263 ac_tool_prefix=
   1264 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1265 
   1266 test "$silent" = yes && exec 6>/dev/null
   1267 
   1268 
   1269 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1270 ac_ls_di=`ls -di .` &&
   1271 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1272   as_fn_error $? "working directory cannot be determined"
   1273 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1274   as_fn_error $? "pwd does not report name of working directory"
   1275 
   1276 
   1277 # Find the source files, if location was not specified.
   1278 if test -z "$srcdir"; then
   1279   ac_srcdir_defaulted=yes
   1280   # Try the directory containing this script, then the parent directory.
   1281   ac_confdir=`$as_dirname -- "$as_myself" ||
   1282 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1283 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1284 	 X"$as_myself" : 'X\(//\)$' \| \
   1285 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1286 $as_echo X"$as_myself" |
   1287     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1288 	    s//\1/
   1289 	    q
   1290 	  }
   1291 	  /^X\(\/\/\)[^/].*/{
   1292 	    s//\1/
   1293 	    q
   1294 	  }
   1295 	  /^X\(\/\/\)$/{
   1296 	    s//\1/
   1297 	    q
   1298 	  }
   1299 	  /^X\(\/\).*/{
   1300 	    s//\1/
   1301 	    q
   1302 	  }
   1303 	  s/.*/./; q'`
   1304   srcdir=$ac_confdir
   1305   if test ! -r "$srcdir/$ac_unique_file"; then
   1306     srcdir=..
   1307   fi
   1308 else
   1309   ac_srcdir_defaulted=no
   1310 fi
   1311 if test ! -r "$srcdir/$ac_unique_file"; then
   1312   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1313   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1314 fi
   1315 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1316 ac_abs_confdir=`(
   1317 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1318 	pwd)`
   1319 # When building in place, set srcdir=.
   1320 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1321   srcdir=.
   1322 fi
   1323 # Remove unnecessary trailing slashes from srcdir.
   1324 # Double slashes in file names in object file debugging info
   1325 # mess up M-x gdb in Emacs.
   1326 case $srcdir in
   1327 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1328 esac
   1329 for ac_var in $ac_precious_vars; do
   1330   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1331   eval ac_env_${ac_var}_value=\$${ac_var}
   1332   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1333   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1334 done
   1335 
   1336 #
   1337 # Report the --help message.
   1338 #
   1339 if test "$ac_init_help" = "long"; then
   1340   # Omit some internal or obsolete options to make the list less imposing.
   1341   # This message is too long to be a string in the A/UX 3.1 sh.
   1342   cat <<_ACEOF
   1343 \`configure' configures tmux 2.6 to adapt to many kinds of systems.
   1344 
   1345 Usage: $0 [OPTION]... [VAR=VALUE]...
   1346 
   1347 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1348 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1349 
   1350 Defaults for the options are specified in brackets.
   1351 
   1352 Configuration:
   1353   -h, --help              display this help and exit
   1354       --help=short        display options specific to this package
   1355       --help=recursive    display the short help of all the included packages
   1356   -V, --version           display version information and exit
   1357   -q, --quiet, --silent   do not print \`checking ...' messages
   1358       --cache-file=FILE   cache test results in FILE [disabled]
   1359   -C, --config-cache      alias for \`--cache-file=config.cache'
   1360   -n, --no-create         do not create output files
   1361       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1362 
   1363 Installation directories:
   1364   --prefix=PREFIX         install architecture-independent files in PREFIX
   1365                           [$ac_default_prefix]
   1366   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1367                           [PREFIX]
   1368 
   1369 By default, \`make install' will install all the files in
   1370 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1371 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1372 for instance \`--prefix=\$HOME'.
   1373 
   1374 For better control, use the options below.
   1375 
   1376 Fine tuning of the installation directories:
   1377   --bindir=DIR            user executables [EPREFIX/bin]
   1378   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1379   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1380   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1381   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1382   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1383   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
   1384   --libdir=DIR            object code libraries [EPREFIX/lib]
   1385   --includedir=DIR        C header files [PREFIX/include]
   1386   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1387   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1388   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1389   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1390   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1391   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1392   --docdir=DIR            documentation root [DATAROOTDIR/doc/tmux]
   1393   --htmldir=DIR           html documentation [DOCDIR]
   1394   --dvidir=DIR            dvi documentation [DOCDIR]
   1395   --pdfdir=DIR            pdf documentation [DOCDIR]
   1396   --psdir=DIR             ps documentation [DOCDIR]
   1397 _ACEOF
   1398 
   1399   cat <<\_ACEOF
   1400 
   1401 Program names:
   1402   --program-prefix=PREFIX            prepend PREFIX to installed program names
   1403   --program-suffix=SUFFIX            append SUFFIX to installed program names
   1404   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
   1405 
   1406 System types:
   1407   --build=BUILD     configure for building on BUILD [guessed]
   1408   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1409 _ACEOF
   1410 fi
   1411 
   1412 if test -n "$ac_init_help"; then
   1413   case $ac_init_help in
   1414      short | recursive ) echo "Configuration of tmux 2.6:";;
   1415    esac
   1416   cat <<\_ACEOF
   1417 
   1418 Optional Features:
   1419   --disable-option-checking  ignore unrecognized --enable/--with options
   1420   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1421   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1422   --enable-silent-rules   less verbose build output (undo: "make V=1")
   1423   --disable-silent-rules  verbose build output (undo: "make V=0")
   1424   --enable-dependency-tracking
   1425                           do not reject slow dependency extractors
   1426   --disable-dependency-tracking
   1427                           speeds up one-time build
   1428   --enable-debug          enable debug build flags
   1429   --enable-static         create a static build
   1430 
   1431   --enable-utempter       use utempter if it is installed
   1432 
   1433   --enable-utf8proc       use utf8proc if it is installed
   1434 
   1435 
   1436 Some influential environment variables:
   1437   CC          C compiler command
   1438   CFLAGS      C compiler flags
   1439   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1440               nonstandard directory <lib dir>
   1441   LIBS        libraries to pass to the linker, e.g. -l<library>
   1442   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1443               you have headers in a nonstandard directory <include dir>
   1444   CPP         C preprocessor
   1445   PKG_CONFIG  path to pkg-config utility
   1446   PKG_CONFIG_PATH
   1447               directories to add to pkg-config's search path
   1448   PKG_CONFIG_LIBDIR
   1449               path overriding pkg-config's built-in search path
   1450   LIBEVENT_CFLAGS
   1451               C compiler flags for LIBEVENT, overriding pkg-config
   1452   LIBEVENT_LIBS
   1453               linker flags for LIBEVENT, overriding pkg-config
   1454   LIBTINFO_CFLAGS
   1455               C compiler flags for LIBTINFO, overriding pkg-config
   1456   LIBTINFO_LIBS
   1457               linker flags for LIBTINFO, overriding pkg-config
   1458   LIBNCURSES_CFLAGS
   1459               C compiler flags for LIBNCURSES, overriding pkg-config
   1460   LIBNCURSES_LIBS
   1461               linker flags for LIBNCURSES, overriding pkg-config
   1462 
   1463 Use these variables to override the choices made by `configure' or to help
   1464 it to find libraries and programs with nonstandard names/locations.
   1465 
   1466 Report bugs to the package provider.
   1467 _ACEOF
   1468 ac_status=$?
   1469 fi
   1470 
   1471 if test "$ac_init_help" = "recursive"; then
   1472   # If there are subdirs, report their specific --help.
   1473   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1474     test -d "$ac_dir" ||
   1475       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1476       continue
   1477     ac_builddir=.
   1478 
   1479 case "$ac_dir" in
   1480 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1481 *)
   1482   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1483   # A ".." for each directory in $ac_dir_suffix.
   1484   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1485   case $ac_top_builddir_sub in
   1486   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1487   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1488   esac ;;
   1489 esac
   1490 ac_abs_top_builddir=$ac_pwd
   1491 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1492 # for backward compatibility:
   1493 ac_top_builddir=$ac_top_build_prefix
   1494 
   1495 case $srcdir in
   1496   .)  # We are building in place.
   1497     ac_srcdir=.
   1498     ac_top_srcdir=$ac_top_builddir_sub
   1499     ac_abs_top_srcdir=$ac_pwd ;;
   1500   [\\/]* | ?:[\\/]* )  # Absolute name.
   1501     ac_srcdir=$srcdir$ac_dir_suffix;
   1502     ac_top_srcdir=$srcdir
   1503     ac_abs_top_srcdir=$srcdir ;;
   1504   *) # Relative name.
   1505     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1506     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1507     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1508 esac
   1509 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1510 
   1511     cd "$ac_dir" || { ac_status=$?; continue; }
   1512     # Check for guested configure.
   1513     if test -f "$ac_srcdir/configure.gnu"; then
   1514       echo &&
   1515       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1516     elif test -f "$ac_srcdir/configure"; then
   1517       echo &&
   1518       $SHELL "$ac_srcdir/configure" --help=recursive
   1519     else
   1520       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1521     fi || ac_status=$?
   1522     cd "$ac_pwd" || { ac_status=$?; break; }
   1523   done
   1524 fi
   1525 
   1526 test -n "$ac_init_help" && exit $ac_status
   1527 if $ac_init_version; then
   1528   cat <<\_ACEOF
   1529 tmux configure 2.6
   1530 generated by GNU Autoconf 2.69
   1531 
   1532 Copyright (C) 2012 Free Software Foundation, Inc.
   1533 This configure script is free software; the Free Software Foundation
   1534 gives unlimited permission to copy, distribute and modify it.
   1535 _ACEOF
   1536   exit
   1537 fi
   1538 
   1539 ## ------------------------ ##
   1540 ## Autoconf initialization. ##
   1541 ## ------------------------ ##
   1542 
   1543 # ac_fn_c_try_compile LINENO
   1544 # --------------------------
   1545 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1546 ac_fn_c_try_compile ()
   1547 {
   1548   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1549   rm -f conftest.$ac_objext
   1550   if { { ac_try="$ac_compile"
   1551 case "(($ac_try" in
   1552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1553   *) ac_try_echo=$ac_try;;
   1554 esac
   1555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1556 $as_echo "$ac_try_echo"; } >&5
   1557   (eval "$ac_compile") 2>conftest.err
   1558   ac_status=$?
   1559   if test -s conftest.err; then
   1560     grep -v '^ *+' conftest.err >conftest.er1
   1561     cat conftest.er1 >&5
   1562     mv -f conftest.er1 conftest.err
   1563   fi
   1564   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1565   test $ac_status = 0; } && {
   1566 	 test -z "$ac_c_werror_flag" ||
   1567 	 test ! -s conftest.err
   1568        } && test -s conftest.$ac_objext; then :
   1569   ac_retval=0
   1570 else
   1571   $as_echo "$as_me: failed program was:" >&5
   1572 sed 's/^/| /' conftest.$ac_ext >&5
   1573 
   1574 	ac_retval=1
   1575 fi
   1576   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1577   as_fn_set_status $ac_retval
   1578 
   1579 } # ac_fn_c_try_compile
   1580 
   1581 # ac_fn_c_try_cpp LINENO
   1582 # ----------------------
   1583 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1584 ac_fn_c_try_cpp ()
   1585 {
   1586   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1587   if { { ac_try="$ac_cpp conftest.$ac_ext"
   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_cpp conftest.$ac_ext") 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; } > conftest.i && {
   1603 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1604 	 test ! -s conftest.err
   1605        }; 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_cpp
   1617 
   1618 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
   1619 # -------------------------------------------------------
   1620 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
   1621 # the include files in INCLUDES and setting the cache variable VAR
   1622 # accordingly.
   1623 ac_fn_c_check_header_mongrel ()
   1624 {
   1625   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1626   if eval \${$3+:} false; then :
   1627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1628 $as_echo_n "checking for $2... " >&6; }
   1629 if eval \${$3+:} false; then :
   1630   $as_echo_n "(cached) " >&6
   1631 fi
   1632 eval ac_res=\$$3
   1633 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1634 $as_echo "$ac_res" >&6; }
   1635 else
   1636   # Is the header compilable?
   1637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
   1638 $as_echo_n "checking $2 usability... " >&6; }
   1639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1640 /* end confdefs.h.  */
   1641 $4
   1642 #include <$2>
   1643 _ACEOF
   1644 if ac_fn_c_try_compile "$LINENO"; then :
   1645   ac_header_compiler=yes
   1646 else
   1647   ac_header_compiler=no
   1648 fi
   1649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
   1651 $as_echo "$ac_header_compiler" >&6; }
   1652 
   1653 # Is the header present?
   1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
   1655 $as_echo_n "checking $2 presence... " >&6; }
   1656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1657 /* end confdefs.h.  */
   1658 #include <$2>
   1659 _ACEOF
   1660 if ac_fn_c_try_cpp "$LINENO"; then :
   1661   ac_header_preproc=yes
   1662 else
   1663   ac_header_preproc=no
   1664 fi
   1665 rm -f conftest.err conftest.i conftest.$ac_ext
   1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
   1667 $as_echo "$ac_header_preproc" >&6; }
   1668 
   1669 # So?  What about this header?
   1670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
   1671   yes:no: )
   1672     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
   1673 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
   1674     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1675 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1676     ;;
   1677   no:yes:* )
   1678     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
   1679 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
   1680     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
   1681 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
   1682     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
   1683 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
   1684     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
   1685 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
   1686     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1687 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1688     ;;
   1689 esac
   1690   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1691 $as_echo_n "checking for $2... " >&6; }
   1692 if eval \${$3+:} false; then :
   1693   $as_echo_n "(cached) " >&6
   1694 else
   1695   eval "$3=\$ac_header_compiler"
   1696 fi
   1697 eval ac_res=\$$3
   1698 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1699 $as_echo "$ac_res" >&6; }
   1700 fi
   1701   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1702 
   1703 } # ac_fn_c_check_header_mongrel
   1704 
   1705 # ac_fn_c_try_run LINENO
   1706 # ----------------------
   1707 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   1708 # that executables *can* be run.
   1709 ac_fn_c_try_run ()
   1710 {
   1711   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1712   if { { ac_try="$ac_link"
   1713 case "(($ac_try" in
   1714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1715   *) ac_try_echo=$ac_try;;
   1716 esac
   1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1718 $as_echo "$ac_try_echo"; } >&5
   1719   (eval "$ac_link") 2>&5
   1720   ac_status=$?
   1721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1722   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   1723   { { case "(($ac_try" in
   1724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1725   *) ac_try_echo=$ac_try;;
   1726 esac
   1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1728 $as_echo "$ac_try_echo"; } >&5
   1729   (eval "$ac_try") 2>&5
   1730   ac_status=$?
   1731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1732   test $ac_status = 0; }; }; then :
   1733   ac_retval=0
   1734 else
   1735   $as_echo "$as_me: program exited with status $ac_status" >&5
   1736        $as_echo "$as_me: failed program was:" >&5
   1737 sed 's/^/| /' conftest.$ac_ext >&5
   1738 
   1739        ac_retval=$ac_status
   1740 fi
   1741   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1742   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1743   as_fn_set_status $ac_retval
   1744 
   1745 } # ac_fn_c_try_run
   1746 
   1747 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   1748 # -------------------------------------------------------
   1749 # Tests whether HEADER exists and can be compiled using the include files in
   1750 # INCLUDES, setting the cache variable VAR accordingly.
   1751 ac_fn_c_check_header_compile ()
   1752 {
   1753   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1754   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1755 $as_echo_n "checking for $2... " >&6; }
   1756 if eval \${$3+:} false; then :
   1757   $as_echo_n "(cached) " >&6
   1758 else
   1759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1760 /* end confdefs.h.  */
   1761 $4
   1762 #include <$2>
   1763 _ACEOF
   1764 if ac_fn_c_try_compile "$LINENO"; then :
   1765   eval "$3=yes"
   1766 else
   1767   eval "$3=no"
   1768 fi
   1769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1770 fi
   1771 eval ac_res=\$$3
   1772 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1773 $as_echo "$ac_res" >&6; }
   1774   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1775 
   1776 } # ac_fn_c_check_header_compile
   1777 
   1778 # ac_fn_c_try_link LINENO
   1779 # -----------------------
   1780 # Try to link conftest.$ac_ext, and return whether this succeeded.
   1781 ac_fn_c_try_link ()
   1782 {
   1783   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1784   rm -f conftest.$ac_objext conftest$ac_exeext
   1785   if { { ac_try="$ac_link"
   1786 case "(($ac_try" in
   1787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1788   *) ac_try_echo=$ac_try;;
   1789 esac
   1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1791 $as_echo "$ac_try_echo"; } >&5
   1792   (eval "$ac_link") 2>conftest.err
   1793   ac_status=$?
   1794   if test -s conftest.err; then
   1795     grep -v '^ *+' conftest.err >conftest.er1
   1796     cat conftest.er1 >&5
   1797     mv -f conftest.er1 conftest.err
   1798   fi
   1799   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1800   test $ac_status = 0; } && {
   1801 	 test -z "$ac_c_werror_flag" ||
   1802 	 test ! -s conftest.err
   1803        } && test -s conftest$ac_exeext && {
   1804 	 test "$cross_compiling" = yes ||
   1805 	 test -x conftest$ac_exeext
   1806        }; then :
   1807   ac_retval=0
   1808 else
   1809   $as_echo "$as_me: failed program was:" >&5
   1810 sed 's/^/| /' conftest.$ac_ext >&5
   1811 
   1812 	ac_retval=1
   1813 fi
   1814   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   1815   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   1816   # interfere with the next link command; also delete a directory that is
   1817   # left behind by Apple's compiler.  We do this before executing the actions.
   1818   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1819   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1820   as_fn_set_status $ac_retval
   1821 
   1822 } # ac_fn_c_try_link
   1823 
   1824 # ac_fn_c_check_func LINENO FUNC VAR
   1825 # ----------------------------------
   1826 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   1827 ac_fn_c_check_func ()
   1828 {
   1829   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1831 $as_echo_n "checking for $2... " >&6; }
   1832 if eval \${$3+:} false; then :
   1833   $as_echo_n "(cached) " >&6
   1834 else
   1835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1836 /* end confdefs.h.  */
   1837 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   1838    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   1839 #define $2 innocuous_$2
   1840 
   1841 /* System header to define __stub macros and hopefully few prototypes,
   1842     which can conflict with char $2 (); below.
   1843     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   1844     <limits.h> exists even on freestanding compilers.  */
   1845 
   1846 #ifdef __STDC__
   1847 # include <limits.h>
   1848 #else
   1849 # include <assert.h>
   1850 #endif
   1851 
   1852 #undef $2
   1853 
   1854 /* Override any GCC internal prototype to avoid an error.
   1855    Use char because int might match the return type of a GCC
   1856    builtin and then its argument prototype would still apply.  */
   1857 #ifdef __cplusplus
   1858 extern "C"
   1859 #endif
   1860 char $2 ();
   1861 /* The GNU C library defines this for functions which it implements
   1862     to always fail with ENOSYS.  Some functions are actually named
   1863     something starting with __ and the normal name is an alias.  */
   1864 #if defined __stub_$2 || defined __stub___$2
   1865 choke me
   1866 #endif
   1867 
   1868 int
   1869 main ()
   1870 {
   1871 return $2 ();
   1872   ;
   1873   return 0;
   1874 }
   1875 _ACEOF
   1876 if ac_fn_c_try_link "$LINENO"; then :
   1877   eval "$3=yes"
   1878 else
   1879   eval "$3=no"
   1880 fi
   1881 rm -f core conftest.err conftest.$ac_objext \
   1882     conftest$ac_exeext conftest.$ac_ext
   1883 fi
   1884 eval ac_res=\$$3
   1885 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1886 $as_echo "$ac_res" >&6; }
   1887   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1888 
   1889 } # ac_fn_c_check_func
   1890 
   1891 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
   1892 # ---------------------------------------------
   1893 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
   1894 # accordingly.
   1895 ac_fn_c_check_decl ()
   1896 {
   1897   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1898   as_decl_name=`echo $2|sed 's/ *(.*//'`
   1899   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
   1900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
   1901 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
   1902 if eval \${$3+:} false; then :
   1903   $as_echo_n "(cached) " >&6
   1904 else
   1905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1906 /* end confdefs.h.  */
   1907 $4
   1908 int
   1909 main ()
   1910 {
   1911 #ifndef $as_decl_name
   1912 #ifdef __cplusplus
   1913   (void) $as_decl_use;
   1914 #else
   1915   (void) $as_decl_name;
   1916 #endif
   1917 #endif
   1918 
   1919   ;
   1920   return 0;
   1921 }
   1922 _ACEOF
   1923 if ac_fn_c_try_compile "$LINENO"; then :
   1924   eval "$3=yes"
   1925 else
   1926   eval "$3=no"
   1927 fi
   1928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1929 fi
   1930 eval ac_res=\$$3
   1931 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1932 $as_echo "$ac_res" >&6; }
   1933   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1934 
   1935 } # ac_fn_c_check_decl
   1936 cat >config.log <<_ACEOF
   1937 This file contains any messages produced by compilers while
   1938 running configure, to aid debugging if configure makes a mistake.
   1939 
   1940 It was created by tmux $as_me 2.6, which was
   1941 generated by GNU Autoconf 2.69.  Invocation command line was
   1942 
   1943   $ $0 $@
   1944 
   1945 _ACEOF
   1946 exec 5>>config.log
   1947 {
   1948 cat <<_ASUNAME
   1949 ## --------- ##
   1950 ## Platform. ##
   1951 ## --------- ##
   1952 
   1953 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   1954 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   1955 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   1956 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   1957 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   1958 
   1959 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   1960 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   1961 
   1962 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   1963 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   1964 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   1965 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   1966 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   1967 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   1968 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   1969 
   1970 _ASUNAME
   1971 
   1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1973 for as_dir in $PATH
   1974 do
   1975   IFS=$as_save_IFS
   1976   test -z "$as_dir" && as_dir=.
   1977     $as_echo "PATH: $as_dir"
   1978   done
   1979 IFS=$as_save_IFS
   1980 
   1981 } >&5
   1982 
   1983 cat >&5 <<_ACEOF
   1984 
   1985 
   1986 ## ----------- ##
   1987 ## Core tests. ##
   1988 ## ----------- ##
   1989 
   1990 _ACEOF
   1991 
   1992 
   1993 # Keep a trace of the command line.
   1994 # Strip out --no-create and --no-recursion so they do not pile up.
   1995 # Strip out --silent because we don't want to record it for future runs.
   1996 # Also quote any args containing shell meta-characters.
   1997 # Make two passes to allow for proper duplicate-argument suppression.
   1998 ac_configure_args=
   1999 ac_configure_args0=
   2000 ac_configure_args1=
   2001 ac_must_keep_next=false
   2002 for ac_pass in 1 2
   2003 do
   2004   for ac_arg
   2005   do
   2006     case $ac_arg in
   2007     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2008     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2009     | -silent | --silent | --silen | --sile | --sil)
   2010       continue ;;
   2011     *\'*)
   2012       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2013     esac
   2014     case $ac_pass in
   2015     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2016     2)
   2017       as_fn_append ac_configure_args1 " '$ac_arg'"
   2018       if test $ac_must_keep_next = true; then
   2019 	ac_must_keep_next=false # Got value, back to normal.
   2020       else
   2021 	case $ac_arg in
   2022 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2023 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2024 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2025 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2026 	    case "$ac_configure_args0 " in
   2027 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2028 	    esac
   2029 	    ;;
   2030 	  -* ) ac_must_keep_next=true ;;
   2031 	esac
   2032       fi
   2033       as_fn_append ac_configure_args " '$ac_arg'"
   2034       ;;
   2035     esac
   2036   done
   2037 done
   2038 { ac_configure_args0=; unset ac_configure_args0;}
   2039 { ac_configure_args1=; unset ac_configure_args1;}
   2040 
   2041 # When interrupted or exit'd, cleanup temporary files, and complete
   2042 # config.log.  We remove comments because anyway the quotes in there
   2043 # would cause problems or look ugly.
   2044 # WARNING: Use '\'' to represent an apostrophe within the trap.
   2045 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2046 trap 'exit_status=$?
   2047   # Save into config.log some information that might help in debugging.
   2048   {
   2049     echo
   2050 
   2051     $as_echo "## ---------------- ##
   2052 ## Cache variables. ##
   2053 ## ---------------- ##"
   2054     echo
   2055     # The following way of writing the cache mishandles newlines in values,
   2056 (
   2057   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2058     eval ac_val=\$$ac_var
   2059     case $ac_val in #(
   2060     *${as_nl}*)
   2061       case $ac_var in #(
   2062       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2063 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2064       esac
   2065       case $ac_var in #(
   2066       _ | IFS | as_nl) ;; #(
   2067       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2068       *) { eval $ac_var=; unset $ac_var;} ;;
   2069       esac ;;
   2070     esac
   2071   done
   2072   (set) 2>&1 |
   2073     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2074     *${as_nl}ac_space=\ *)
   2075       sed -n \
   2076 	"s/'\''/'\''\\\\'\'''\''/g;
   2077 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2078       ;; #(
   2079     *)
   2080       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2081       ;;
   2082     esac |
   2083     sort
   2084 )
   2085     echo
   2086 
   2087     $as_echo "## ----------------- ##
   2088 ## Output variables. ##
   2089 ## ----------------- ##"
   2090     echo
   2091     for ac_var in $ac_subst_vars
   2092     do
   2093       eval ac_val=\$$ac_var
   2094       case $ac_val in
   2095       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2096       esac
   2097       $as_echo "$ac_var='\''$ac_val'\''"
   2098     done | sort
   2099     echo
   2100 
   2101     if test -n "$ac_subst_files"; then
   2102       $as_echo "## ------------------- ##
   2103 ## File substitutions. ##
   2104 ## ------------------- ##"
   2105       echo
   2106       for ac_var in $ac_subst_files
   2107       do
   2108 	eval ac_val=\$$ac_var
   2109 	case $ac_val in
   2110 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2111 	esac
   2112 	$as_echo "$ac_var='\''$ac_val'\''"
   2113       done | sort
   2114       echo
   2115     fi
   2116 
   2117     if test -s confdefs.h; then
   2118       $as_echo "## ----------- ##
   2119 ## confdefs.h. ##
   2120 ## ----------- ##"
   2121       echo
   2122       cat confdefs.h
   2123       echo
   2124     fi
   2125     test "$ac_signal" != 0 &&
   2126       $as_echo "$as_me: caught signal $ac_signal"
   2127     $as_echo "$as_me: exit $exit_status"
   2128   } >&5
   2129   rm -f core *.core core.conftest.* &&
   2130     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2131     exit $exit_status
   2132 ' 0
   2133 for ac_signal in 1 2 13 15; do
   2134   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2135 done
   2136 ac_signal=0
   2137 
   2138 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2139 rm -f -r conftest* confdefs.h
   2140 
   2141 $as_echo "/* confdefs.h */" > confdefs.h
   2142 
   2143 # Predefined preprocessor variables.
   2144 
   2145 cat >>confdefs.h <<_ACEOF
   2146 #define PACKAGE_NAME "$PACKAGE_NAME"
   2147 _ACEOF
   2148 
   2149 cat >>confdefs.h <<_ACEOF
   2150 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   2151 _ACEOF
   2152 
   2153 cat >>confdefs.h <<_ACEOF
   2154 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   2155 _ACEOF
   2156 
   2157 cat >>confdefs.h <<_ACEOF
   2158 #define PACKAGE_STRING "$PACKAGE_STRING"
   2159 _ACEOF
   2160 
   2161 cat >>confdefs.h <<_ACEOF
   2162 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   2163 _ACEOF
   2164 
   2165 cat >>confdefs.h <<_ACEOF
   2166 #define PACKAGE_URL "$PACKAGE_URL"
   2167 _ACEOF
   2168 
   2169 
   2170 # Let the site file select an alternate cache file if it wants to.
   2171 # Prefer an explicitly selected file to automatically selected ones.
   2172 ac_site_file1=NONE
   2173 ac_site_file2=NONE
   2174 if test -n "$CONFIG_SITE"; then
   2175   # We do not want a PATH search for config.site.
   2176   case $CONFIG_SITE in #((
   2177     -*)  ac_site_file1=./$CONFIG_SITE;;
   2178     */*) ac_site_file1=$CONFIG_SITE;;
   2179     *)   ac_site_file1=./$CONFIG_SITE;;
   2180   esac
   2181 elif test "x$prefix" != xNONE; then
   2182   ac_site_file1=$prefix/share/config.site
   2183   ac_site_file2=$prefix/etc/config.site
   2184 else
   2185   ac_site_file1=$ac_default_prefix/share/config.site
   2186   ac_site_file2=$ac_default_prefix/etc/config.site
   2187 fi
   2188 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   2189 do
   2190   test "x$ac_site_file" = xNONE && continue
   2191   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
   2192     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2193 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   2194     sed 's/^/| /' "$ac_site_file" >&5
   2195     . "$ac_site_file" \
   2196       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2198 as_fn_error $? "failed to load site script $ac_site_file
   2199 See \`config.log' for more details" "$LINENO" 5; }
   2200   fi
   2201 done
   2202 
   2203 if test -r "$cache_file"; then
   2204   # Some versions of bash will fail to source /dev/null (special files
   2205   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2206   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2207     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2208 $as_echo "$as_me: loading cache $cache_file" >&6;}
   2209     case $cache_file in
   2210       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2211       *)                      . "./$cache_file";;
   2212     esac
   2213   fi
   2214 else
   2215   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2216 $as_echo "$as_me: creating cache $cache_file" >&6;}
   2217   >$cache_file
   2218 fi
   2219 
   2220 # Check that the precious variables saved in the cache have kept the same
   2221 # value.
   2222 ac_cache_corrupted=false
   2223 for ac_var in $ac_precious_vars; do
   2224   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2225   eval ac_new_set=\$ac_env_${ac_var}_set
   2226   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2227   eval ac_new_val=\$ac_env_${ac_var}_value
   2228   case $ac_old_set,$ac_new_set in
   2229     set,)
   2230       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2231 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2232       ac_cache_corrupted=: ;;
   2233     ,set)
   2234       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2235 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2236       ac_cache_corrupted=: ;;
   2237     ,);;
   2238     *)
   2239       if test "x$ac_old_val" != "x$ac_new_val"; then
   2240 	# differences in whitespace do not lead to failure.
   2241 	ac_old_val_w=`echo x $ac_old_val`
   2242 	ac_new_val_w=`echo x $ac_new_val`
   2243 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2244 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2245 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2246 	  ac_cache_corrupted=:
   2247 	else
   2248 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2249 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2250 	  eval $ac_var=\$ac_old_val
   2251 	fi
   2252 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2253 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2254 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2255 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   2256       fi;;
   2257   esac
   2258   # Pass precious variables to config.status.
   2259   if test "$ac_new_set" = set; then
   2260     case $ac_new_val in
   2261     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2262     *) ac_arg=$ac_var=$ac_new_val ;;
   2263     esac
   2264     case " $ac_configure_args " in
   2265       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2266       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2267     esac
   2268   fi
   2269 done
   2270 if $ac_cache_corrupted; then
   2271   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2273   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2274 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2275   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   2276 fi
   2277 ## -------------------- ##
   2278 ## Main body of script. ##
   2279 ## -------------------- ##
   2280 
   2281 ac_ext=c
   2282 ac_cpp='$CPP $CPPFLAGS'
   2283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2286 
   2287 
   2288 
   2289 
   2290 ac_aux_dir=
   2291 for ac_dir in etc "$srcdir"/etc; do
   2292   if test -f "$ac_dir/install-sh"; then
   2293     ac_aux_dir=$ac_dir
   2294     ac_install_sh="$ac_aux_dir/install-sh -c"
   2295     break
   2296   elif test -f "$ac_dir/install.sh"; then
   2297     ac_aux_dir=$ac_dir
   2298     ac_install_sh="$ac_aux_dir/install.sh -c"
   2299     break
   2300   elif test -f "$ac_dir/shtool"; then
   2301     ac_aux_dir=$ac_dir
   2302     ac_install_sh="$ac_aux_dir/shtool install -c"
   2303     break
   2304   fi
   2305 done
   2306 if test -z "$ac_aux_dir"; then
   2307   as_fn_error $? "cannot find install-sh, install.sh, or shtool in etc \"$srcdir\"/etc" "$LINENO" 5
   2308 fi
   2309 
   2310 # These three variables are undocumented and unsupported,
   2311 # and are intended to be withdrawn in a future Autoconf release.
   2312 # They can cause serious problems if a builder's source tree is in a directory
   2313 # whose full name contains unusual characters.
   2314 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   2315 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   2316 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   2317 
   2318 
   2319 
   2320 am__api_version='1.15'
   2321 
   2322 # Find a good install program.  We prefer a C program (faster),
   2323 # so one script is as good as another.  But avoid the broken or
   2324 # incompatible versions:
   2325 # SysV /etc/install, /usr/sbin/install
   2326 # SunOS /usr/etc/install
   2327 # IRIX /sbin/install
   2328 # AIX /bin/install
   2329 # AmigaOS /C/install, which installs bootblocks on floppy discs
   2330 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   2331 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   2332 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   2333 # OS/2's system install, which has a completely different semantic
   2334 # ./install, which can be erroneously created by make from ./install.sh.
   2335 # Reject install programs that cannot install multiple files.
   2336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   2337 $as_echo_n "checking for a BSD-compatible install... " >&6; }
   2338 if test -z "$INSTALL"; then
   2339 if ${ac_cv_path_install+:} false; then :
   2340   $as_echo_n "(cached) " >&6
   2341 else
   2342   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2343 for as_dir in $PATH
   2344 do
   2345   IFS=$as_save_IFS
   2346   test -z "$as_dir" && as_dir=.
   2347     # Account for people who put trailing slashes in PATH elements.
   2348 case $as_dir/ in #((
   2349   ./ | .// | /[cC]/* | \
   2350   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   2351   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   2352   /usr/ucb/* ) ;;
   2353   *)
   2354     # OSF1 and SCO ODT 3.0 have their own names for install.
   2355     # Don't use installbsd from OSF since it installs stuff as root
   2356     # by default.
   2357     for ac_prog in ginstall scoinst install; do
   2358       for ac_exec_ext in '' $ac_executable_extensions; do
   2359 	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
   2360 	  if test $ac_prog = install &&
   2361 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   2362 	    # AIX install.  It has an incompatible calling convention.
   2363 	    :
   2364 	  elif test $ac_prog = install &&
   2365 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   2366 	    # program-specific install script used by HP pwplus--don't use.
   2367 	    :
   2368 	  else
   2369 	    rm -rf conftest.one conftest.two conftest.dir
   2370 	    echo one > conftest.one
   2371 	    echo two > conftest.two
   2372 	    mkdir conftest.dir
   2373 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
   2374 	      test -s conftest.one && test -s conftest.two &&
   2375 	      test -s conftest.dir/conftest.one &&
   2376 	      test -s conftest.dir/conftest.two
   2377 	    then
   2378 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   2379 	      break 3
   2380 	    fi
   2381 	  fi
   2382 	fi
   2383       done
   2384     done
   2385     ;;
   2386 esac
   2387 
   2388   done
   2389 IFS=$as_save_IFS
   2390 
   2391 rm -rf conftest.one conftest.two conftest.dir
   2392 
   2393 fi
   2394   if test "${ac_cv_path_install+set}" = set; then
   2395     INSTALL=$ac_cv_path_install
   2396   else
   2397     # As a last resort, use the slow shell script.  Don't cache a
   2398     # value for INSTALL within a source directory, because that will
   2399     # break other packages using the cache if that directory is
   2400     # removed, or if the value is a relative name.
   2401     INSTALL=$ac_install_sh
   2402   fi
   2403 fi
   2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   2405 $as_echo "$INSTALL" >&6; }
   2406 
   2407 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   2408 # It thinks the first close brace ends the variable substitution.
   2409 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   2410 
   2411 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   2412 
   2413 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   2414 
   2415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
   2416 $as_echo_n "checking whether build environment is sane... " >&6; }
   2417 # Reject unsafe characters in $srcdir or the absolute working directory
   2418 # name.  Accept space and tab only in the latter.
   2419 am_lf='
   2420 '
   2421 case `pwd` in
   2422   *[\\\"\#\$\&\'\`$am_lf]*)
   2423     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
   2424 esac
   2425 case $srcdir in
   2426   *[\\\"\#\$\&\'\`$am_lf\ \	]*)
   2427     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
   2428 esac
   2429 
   2430 # Do 'set' in a subshell so we don't clobber the current shell's
   2431 # arguments.  Must try -L first in case configure is actually a
   2432 # symlink; some systems play weird games with the mod time of symlinks
   2433 # (eg FreeBSD returns the mod time of the symlink's containing
   2434 # directory).
   2435 if (
   2436    am_has_slept=no
   2437    for am_try in 1 2; do
   2438      echo "timestamp, slept: $am_has_slept" > conftest.file
   2439      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
   2440      if test "$*" = "X"; then
   2441 	# -L didn't work.
   2442 	set X `ls -t "$srcdir/configure" conftest.file`
   2443      fi
   2444      if test "$*" != "X $srcdir/configure conftest.file" \
   2445 	&& test "$*" != "X conftest.file $srcdir/configure"; then
   2446 
   2447 	# If neither matched, then we have a broken ls.  This can happen
   2448 	# if, for instance, CONFIG_SHELL is bash and it inherits a
   2449 	# broken ls alias from the environment.  This has actually
   2450 	# happened.  Such a system could not be considered "sane".
   2451 	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
   2452   alias in your environment" "$LINENO" 5
   2453      fi
   2454      if test "$2" = conftest.file || test $am_try -eq 2; then
   2455        break
   2456      fi
   2457      # Just in case.
   2458      sleep 1
   2459      am_has_slept=yes
   2460    done
   2461    test "$2" = conftest.file
   2462    )
   2463 then
   2464    # Ok.
   2465    :
   2466 else
   2467    as_fn_error $? "newly created file is older than distributed files!
   2468 Check your system clock" "$LINENO" 5
   2469 fi
   2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   2471 $as_echo "yes" >&6; }
   2472 # If we didn't sleep, we still need to ensure time stamps of config.status and
   2473 # generated files are strictly newer.
   2474 am_sleep_pid=
   2475 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
   2476   ( sleep 1 ) &
   2477   am_sleep_pid=$!
   2478 fi
   2479 
   2480 rm -f conftest.file
   2481 
   2482 test "$program_prefix" != NONE &&
   2483   program_transform_name="s&^&$program_prefix&;$program_transform_name"
   2484 # Use a double $ so make ignores it.
   2485 test "$program_suffix" != NONE &&
   2486   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
   2487 # Double any \ or $.
   2488 # By default was `s,x,x', remove it if useless.
   2489 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
   2490 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
   2491 
   2492 # Expand $ac_aux_dir to an absolute path.
   2493 am_aux_dir=`cd "$ac_aux_dir" && pwd`
   2494 
   2495 if test x"${MISSING+set}" != xset; then
   2496   case $am_aux_dir in
   2497   *\ * | *\	*)
   2498     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
   2499   *)
   2500     MISSING="\${SHELL} $am_aux_dir/missing" ;;
   2501   esac
   2502 fi
   2503 # Use eval to expand $SHELL
   2504 if eval "$MISSING --is-lightweight"; then
   2505   am_missing_run="$MISSING "
   2506 else
   2507   am_missing_run=
   2508   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
   2509 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
   2510 fi
   2511 
   2512 if test x"${install_sh+set}" != xset; then
   2513   case $am_aux_dir in
   2514   *\ * | *\	*)
   2515     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
   2516   *)
   2517     install_sh="\${SHELL} $am_aux_dir/install-sh"
   2518   esac
   2519 fi
   2520 
   2521 # Installed binaries are usually stripped using 'strip' when the user
   2522 # run "make install-strip".  However 'strip' might not be the right
   2523 # tool to use in cross-compilation environments, therefore Automake
   2524 # will honor the 'STRIP' environment variable to overrule this program.
   2525 if test "$cross_compiling" != no; then
   2526   if test -n "$ac_tool_prefix"; then
   2527   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   2528 set dummy ${ac_tool_prefix}strip; ac_word=$2
   2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2530 $as_echo_n "checking for $ac_word... " >&6; }
   2531 if ${ac_cv_prog_STRIP+:} false; then :
   2532   $as_echo_n "(cached) " >&6
   2533 else
   2534   if test -n "$STRIP"; then
   2535   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   2536 else
   2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2538 for as_dir in $PATH
   2539 do
   2540   IFS=$as_save_IFS
   2541   test -z "$as_dir" && as_dir=.
   2542     for ac_exec_ext in '' $ac_executable_extensions; do
   2543   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2544     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   2545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2546     break 2
   2547   fi
   2548 done
   2549   done
   2550 IFS=$as_save_IFS
   2551 
   2552 fi
   2553 fi
   2554 STRIP=$ac_cv_prog_STRIP
   2555 if test -n "$STRIP"; then
   2556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   2557 $as_echo "$STRIP" >&6; }
   2558 else
   2559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2560 $as_echo "no" >&6; }
   2561 fi
   2562 
   2563 
   2564 fi
   2565 if test -z "$ac_cv_prog_STRIP"; then
   2566   ac_ct_STRIP=$STRIP
   2567   # Extract the first word of "strip", so it can be a program name with args.
   2568 set dummy strip; ac_word=$2
   2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2570 $as_echo_n "checking for $ac_word... " >&6; }
   2571 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
   2572   $as_echo_n "(cached) " >&6
   2573 else
   2574   if test -n "$ac_ct_STRIP"; then
   2575   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   2576 else
   2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2578 for as_dir in $PATH
   2579 do
   2580   IFS=$as_save_IFS
   2581   test -z "$as_dir" && as_dir=.
   2582     for ac_exec_ext in '' $ac_executable_extensions; do
   2583   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2584     ac_cv_prog_ac_ct_STRIP="strip"
   2585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2586     break 2
   2587   fi
   2588 done
   2589   done
   2590 IFS=$as_save_IFS
   2591 
   2592 fi
   2593 fi
   2594 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   2595 if test -n "$ac_ct_STRIP"; then
   2596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   2597 $as_echo "$ac_ct_STRIP" >&6; }
   2598 else
   2599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2600 $as_echo "no" >&6; }
   2601 fi
   2602 
   2603   if test "x$ac_ct_STRIP" = x; then
   2604     STRIP=":"
   2605   else
   2606     case $cross_compiling:$ac_tool_warned in
   2607 yes:)
   2608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2610 ac_tool_warned=yes ;;
   2611 esac
   2612     STRIP=$ac_ct_STRIP
   2613   fi
   2614 else
   2615   STRIP="$ac_cv_prog_STRIP"
   2616 fi
   2617 
   2618 fi
   2619 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
   2620 
   2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
   2622 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
   2623 if test -z "$MKDIR_P"; then
   2624   if ${ac_cv_path_mkdir+:} false; then :
   2625   $as_echo_n "(cached) " >&6
   2626 else
   2627   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2628 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
   2629 do
   2630   IFS=$as_save_IFS
   2631   test -z "$as_dir" && as_dir=.
   2632     for ac_prog in mkdir gmkdir; do
   2633 	 for ac_exec_ext in '' $ac_executable_extensions; do
   2634 	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
   2635 	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
   2636 	     'mkdir (GNU coreutils) '* | \
   2637 	     'mkdir (coreutils) '* | \
   2638 	     'mkdir (fileutils) '4.1*)
   2639 	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
   2640 	       break 3;;
   2641 	   esac
   2642 	 done
   2643        done
   2644   done
   2645 IFS=$as_save_IFS
   2646 
   2647 fi
   2648 
   2649   test -d ./--version && rmdir ./--version
   2650   if test "${ac_cv_path_mkdir+set}" = set; then
   2651     MKDIR_P="$ac_cv_path_mkdir -p"
   2652   else
   2653     # As a last resort, use the slow shell script.  Don't cache a
   2654     # value for MKDIR_P within a source directory, because that will
   2655     # break other packages using the cache if that directory is
   2656     # removed, or if the value is a relative name.
   2657     MKDIR_P="$ac_install_sh -d"
   2658   fi
   2659 fi
   2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
   2661 $as_echo "$MKDIR_P" >&6; }
   2662 
   2663 for ac_prog in gawk mawk nawk awk
   2664 do
   2665   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2666 set dummy $ac_prog; ac_word=$2
   2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2668 $as_echo_n "checking for $ac_word... " >&6; }
   2669 if ${ac_cv_prog_AWK+:} false; then :
   2670   $as_echo_n "(cached) " >&6
   2671 else
   2672   if test -n "$AWK"; then
   2673   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   2674 else
   2675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2676 for as_dir in $PATH
   2677 do
   2678   IFS=$as_save_IFS
   2679   test -z "$as_dir" && as_dir=.
   2680     for ac_exec_ext in '' $ac_executable_extensions; do
   2681   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2682     ac_cv_prog_AWK="$ac_prog"
   2683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2684     break 2
   2685   fi
   2686 done
   2687   done
   2688 IFS=$as_save_IFS
   2689 
   2690 fi
   2691 fi
   2692 AWK=$ac_cv_prog_AWK
   2693 if test -n "$AWK"; then
   2694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   2695 $as_echo "$AWK" >&6; }
   2696 else
   2697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2698 $as_echo "no" >&6; }
   2699 fi
   2700 
   2701 
   2702   test -n "$AWK" && break
   2703 done
   2704 
   2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
   2706 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
   2707 set x ${MAKE-make}
   2708 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
   2709 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
   2710   $as_echo_n "(cached) " >&6
   2711 else
   2712   cat >conftest.make <<\_ACEOF
   2713 SHELL = /bin/sh
   2714 all:
   2715 	@echo '@@@%%%=$(MAKE)=@@@%%%'
   2716 _ACEOF
   2717 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
   2718 case `${MAKE-make} -f conftest.make 2>/dev/null` in
   2719   *@@@%%%=?*=@@@%%%*)
   2720     eval ac_cv_prog_make_${ac_make}_set=yes;;
   2721   *)
   2722     eval ac_cv_prog_make_${ac_make}_set=no;;
   2723 esac
   2724 rm -f conftest.make
   2725 fi
   2726 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
   2727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   2728 $as_echo "yes" >&6; }
   2729   SET_MAKE=
   2730 else
   2731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2732 $as_echo "no" >&6; }
   2733   SET_MAKE="MAKE=${MAKE-make}"
   2734 fi
   2735 
   2736 rm -rf .tst 2>/dev/null
   2737 mkdir .tst 2>/dev/null
   2738 if test -d .tst; then
   2739   am__leading_dot=.
   2740 else
   2741   am__leading_dot=_
   2742 fi
   2743 rmdir .tst 2>/dev/null
   2744 
   2745 # Check whether --enable-silent-rules was given.
   2746 if test "${enable_silent_rules+set}" = set; then :
   2747   enableval=$enable_silent_rules;
   2748 fi
   2749 
   2750 case $enable_silent_rules in # (((
   2751   yes) AM_DEFAULT_VERBOSITY=0;;
   2752    no) AM_DEFAULT_VERBOSITY=1;;
   2753     *) AM_DEFAULT_VERBOSITY=1;;
   2754 esac
   2755 am_make=${MAKE-make}
   2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
   2757 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
   2758 if ${am_cv_make_support_nested_variables+:} false; then :
   2759   $as_echo_n "(cached) " >&6
   2760 else
   2761   if $as_echo 'TRUE=$(BAR$(V))
   2762 BAR0=false
   2763 BAR1=true
   2764 V=1
   2765 am__doit:
   2766 	@$(TRUE)
   2767 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
   2768   am_cv_make_support_nested_variables=yes
   2769 else
   2770   am_cv_make_support_nested_variables=no
   2771 fi
   2772 fi
   2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
   2774 $as_echo "$am_cv_make_support_nested_variables" >&6; }
   2775 if test $am_cv_make_support_nested_variables = yes; then
   2776     AM_V='$(V)'
   2777   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
   2778 else
   2779   AM_V=$AM_DEFAULT_VERBOSITY
   2780   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
   2781 fi
   2782 AM_BACKSLASH='\'
   2783 
   2784 if test "`cd $srcdir && pwd`" != "`pwd`"; then
   2785   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
   2786   # is not polluted with repeated "-I."
   2787   am__isrc=' -I$(srcdir)'
   2788   # test to see if srcdir already configured
   2789   if test -f $srcdir/config.status; then
   2790     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
   2791   fi
   2792 fi
   2793 
   2794 # test whether we have cygpath
   2795 if test -z "$CYGPATH_W"; then
   2796   if (cygpath --version) >/dev/null 2>/dev/null; then
   2797     CYGPATH_W='cygpath -w'
   2798   else
   2799     CYGPATH_W=echo
   2800   fi
   2801 fi
   2802 
   2803 
   2804 # Define the identity of the package.
   2805  PACKAGE='tmux'
   2806  VERSION='2.6'
   2807 
   2808 
   2809 cat >>confdefs.h <<_ACEOF
   2810 #define PACKAGE "$PACKAGE"
   2811 _ACEOF
   2812 
   2813 
   2814 cat >>confdefs.h <<_ACEOF
   2815 #define VERSION "$VERSION"
   2816 _ACEOF
   2817 
   2818 # Some tools Automake needs.
   2819 
   2820 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
   2821 
   2822 
   2823 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
   2824 
   2825 
   2826 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
   2827 
   2828 
   2829 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
   2830 
   2831 
   2832 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
   2833 
   2834 # For better backward compatibility.  To be removed once Automake 1.9.x
   2835 # dies out for good.  For more background, see:
   2836 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
   2837 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
   2838 mkdir_p='$(MKDIR_P)'
   2839 
   2840 # We need awk for the "check" target (and possibly the TAP driver).  The
   2841 # system "awk" is bad on some platforms.
   2842 # Always define AMTAR for backward compatibility.  Yes, it's still used
   2843 # in the wild :-(  We should find a proper way to deprecate it ...
   2844 AMTAR='$${TAR-tar}'
   2845 
   2846 
   2847 # We'll loop over all known methods to create a tar archive until one works.
   2848 _am_tools='gnutar  pax cpio none'
   2849 
   2850 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
   2851 
   2852 
   2853 
   2854 
   2855 
   2856 
   2857 # POSIX will say in a future version that running "rm -f" with no argument
   2858 # is OK; and we want to be able to make that assumption in our Makefile
   2859 # recipes.  So use an aggressive probe to check that the usage we want is
   2860 # actually supported "in the wild" to an acceptable degree.
   2861 # See automake bug#10828.
   2862 # To make any issue more visible, cause the running configure to be aborted
   2863 # by default if the 'rm' program in use doesn't match our expectations; the
   2864 # user can still override this though.
   2865 if rm -f && rm -fr && rm -rf; then : OK; else
   2866   cat >&2 <<'END'
   2867 Oops!
   2868 
   2869 Your 'rm' program seems unable to run without file operands specified
   2870 on the command line, even when the '-f' option is present.  This is contrary
   2871 to the behaviour of most rm programs out there, and not conforming with
   2872 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
   2873 
   2874 Please tell bug-automake@gnu.org about your system, including the value
   2875 of your $PATH and any error possibly output before this message.  This
   2876 can help us improve future automake versions.
   2877 
   2878 END
   2879   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
   2880     echo 'Configuration will proceed anyway, since you have set the' >&2
   2881     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
   2882     echo >&2
   2883   else
   2884     cat >&2 <<'END'
   2885 Aborting the configuration process, to ensure you take notice of the issue.
   2886 
   2887 You can download and install GNU coreutils to get an 'rm' implementation
   2888 that behaves properly: <http://www.gnu.org/software/coreutils/>.
   2889 
   2890 If you want to complete the configuration process using your problematic
   2891 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
   2892 to "yes", and re-run configure.
   2893 
   2894 END
   2895     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
   2896   fi
   2897 fi
   2898 
   2899 
   2900 # Make sure we can run config.sub.
   2901 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   2902   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   2903 
   2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   2905 $as_echo_n "checking build system type... " >&6; }
   2906 if ${ac_cv_build+:} false; then :
   2907   $as_echo_n "(cached) " >&6
   2908 else
   2909   ac_build_alias=$build_alias
   2910 test "x$ac_build_alias" = x &&
   2911   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   2912 test "x$ac_build_alias" = x &&
   2913   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   2914 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   2915   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   2916 
   2917 fi
   2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   2919 $as_echo "$ac_cv_build" >&6; }
   2920 case $ac_cv_build in
   2921 *-*-*) ;;
   2922 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   2923 esac
   2924 build=$ac_cv_build
   2925 ac_save_IFS=$IFS; IFS='-'
   2926 set x $ac_cv_build
   2927 shift
   2928 build_cpu=$1
   2929 build_vendor=$2
   2930 shift; shift
   2931 # Remember, the first character of IFS is used to create $*,
   2932 # except with old shells:
   2933 build_os=$*
   2934 IFS=$ac_save_IFS
   2935 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   2936 
   2937 
   2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   2939 $as_echo_n "checking host system type... " >&6; }
   2940 if ${ac_cv_host+:} false; then :
   2941   $as_echo_n "(cached) " >&6
   2942 else
   2943   if test "x$host_alias" = x; then
   2944   ac_cv_host=$ac_cv_build
   2945 else
   2946   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   2947     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   2948 fi
   2949 
   2950 fi
   2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   2952 $as_echo "$ac_cv_host" >&6; }
   2953 case $ac_cv_host in
   2954 *-*-*) ;;
   2955 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   2956 esac
   2957 host=$ac_cv_host
   2958 ac_save_IFS=$IFS; IFS='-'
   2959 set x $ac_cv_host
   2960 shift
   2961 host_cpu=$1
   2962 host_vendor=$2
   2963 shift; shift
   2964 # Remember, the first character of IFS is used to create $*,
   2965 # except with old shells:
   2966 host_os=$*
   2967 IFS=$ac_save_IFS
   2968 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   2969 
   2970 
   2971 
   2972 # When CFLAGS isn't set at this stage and gcc is detected by the macro below,
   2973 # autoconf will automatically use CFLAGS="-O2 -g". Prevent that by using an
   2974 # empty default.
   2975 : ${CFLAGS=""}
   2976 
   2977 # Save user CPPFLAGS, CFLAGS and LDFLAGS. We need to change them because
   2978 # AC_CHECK_HEADER doesn't give us any other way to update the include
   2979 # paths. But for Makefile.am we want to use AM_CPPFLAGS and friends.
   2980 SAVED_CFLAGS="$CFLAGS"
   2981 SAVED_CPPFLAGS="$CPPFLAGS"
   2982 SAVED_LDFLAGS="$LDFLAGS"
   2983 
   2984 # Set up the compiler in two different ways and say yes we may want to install.
   2985 ac_ext=c
   2986 ac_cpp='$CPP $CPPFLAGS'
   2987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2990 if test -n "$ac_tool_prefix"; then
   2991   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   2992 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2994 $as_echo_n "checking for $ac_word... " >&6; }
   2995 if ${ac_cv_prog_CC+:} false; then :
   2996   $as_echo_n "(cached) " >&6
   2997 else
   2998   if test -n "$CC"; then
   2999   ac_cv_prog_CC="$CC" # Let the user override the test.
   3000 else
   3001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3002 for as_dir in $PATH
   3003 do
   3004   IFS=$as_save_IFS
   3005   test -z "$as_dir" && as_dir=.
   3006     for ac_exec_ext in '' $ac_executable_extensions; do
   3007   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3008     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   3009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3010     break 2
   3011   fi
   3012 done
   3013   done
   3014 IFS=$as_save_IFS
   3015 
   3016 fi
   3017 fi
   3018 CC=$ac_cv_prog_CC
   3019 if test -n "$CC"; then
   3020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3021 $as_echo "$CC" >&6; }
   3022 else
   3023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3024 $as_echo "no" >&6; }
   3025 fi
   3026 
   3027 
   3028 fi
   3029 if test -z "$ac_cv_prog_CC"; then
   3030   ac_ct_CC=$CC
   3031   # Extract the first word of "gcc", so it can be a program name with args.
   3032 set dummy gcc; ac_word=$2
   3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3034 $as_echo_n "checking for $ac_word... " >&6; }
   3035 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   3036   $as_echo_n "(cached) " >&6
   3037 else
   3038   if test -n "$ac_ct_CC"; then
   3039   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3040 else
   3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3042 for as_dir in $PATH
   3043 do
   3044   IFS=$as_save_IFS
   3045   test -z "$as_dir" && as_dir=.
   3046     for ac_exec_ext in '' $ac_executable_extensions; do
   3047   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3048     ac_cv_prog_ac_ct_CC="gcc"
   3049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3050     break 2
   3051   fi
   3052 done
   3053   done
   3054 IFS=$as_save_IFS
   3055 
   3056 fi
   3057 fi
   3058 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3059 if test -n "$ac_ct_CC"; then
   3060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3061 $as_echo "$ac_ct_CC" >&6; }
   3062 else
   3063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3064 $as_echo "no" >&6; }
   3065 fi
   3066 
   3067   if test "x$ac_ct_CC" = x; then
   3068     CC=""
   3069   else
   3070     case $cross_compiling:$ac_tool_warned in
   3071 yes:)
   3072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3074 ac_tool_warned=yes ;;
   3075 esac
   3076     CC=$ac_ct_CC
   3077   fi
   3078 else
   3079   CC="$ac_cv_prog_CC"
   3080 fi
   3081 
   3082 if test -z "$CC"; then
   3083           if test -n "$ac_tool_prefix"; then
   3084     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   3085 set dummy ${ac_tool_prefix}cc; ac_word=$2
   3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3087 $as_echo_n "checking for $ac_word... " >&6; }
   3088 if ${ac_cv_prog_CC+:} false; then :
   3089   $as_echo_n "(cached) " >&6
   3090 else
   3091   if test -n "$CC"; then
   3092   ac_cv_prog_CC="$CC" # Let the user override the test.
   3093 else
   3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3095 for as_dir in $PATH
   3096 do
   3097   IFS=$as_save_IFS
   3098   test -z "$as_dir" && as_dir=.
   3099     for ac_exec_ext in '' $ac_executable_extensions; do
   3100   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3101     ac_cv_prog_CC="${ac_tool_prefix}cc"
   3102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3103     break 2
   3104   fi
   3105 done
   3106   done
   3107 IFS=$as_save_IFS
   3108 
   3109 fi
   3110 fi
   3111 CC=$ac_cv_prog_CC
   3112 if test -n "$CC"; then
   3113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3114 $as_echo "$CC" >&6; }
   3115 else
   3116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3117 $as_echo "no" >&6; }
   3118 fi
   3119 
   3120 
   3121   fi
   3122 fi
   3123 if test -z "$CC"; then
   3124   # Extract the first word of "cc", so it can be a program name with args.
   3125 set dummy cc; ac_word=$2
   3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3127 $as_echo_n "checking for $ac_word... " >&6; }
   3128 if ${ac_cv_prog_CC+:} false; then :
   3129   $as_echo_n "(cached) " >&6
   3130 else
   3131   if test -n "$CC"; then
   3132   ac_cv_prog_CC="$CC" # Let the user override the test.
   3133 else
   3134   ac_prog_rejected=no
   3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3136 for as_dir in $PATH
   3137 do
   3138   IFS=$as_save_IFS
   3139   test -z "$as_dir" && as_dir=.
   3140     for ac_exec_ext in '' $ac_executable_extensions; do
   3141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3142     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   3143        ac_prog_rejected=yes
   3144        continue
   3145      fi
   3146     ac_cv_prog_CC="cc"
   3147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3148     break 2
   3149   fi
   3150 done
   3151   done
   3152 IFS=$as_save_IFS
   3153 
   3154 if test $ac_prog_rejected = yes; then
   3155   # We found a bogon in the path, so make sure we never use it.
   3156   set dummy $ac_cv_prog_CC
   3157   shift
   3158   if test $# != 0; then
   3159     # We chose a different compiler from the bogus one.
   3160     # However, it has the same basename, so the bogon will be chosen
   3161     # first if we set CC to just the basename; use the full file name.
   3162     shift
   3163     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   3164   fi
   3165 fi
   3166 fi
   3167 fi
   3168 CC=$ac_cv_prog_CC
   3169 if test -n "$CC"; then
   3170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3171 $as_echo "$CC" >&6; }
   3172 else
   3173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3174 $as_echo "no" >&6; }
   3175 fi
   3176 
   3177 
   3178 fi
   3179 if test -z "$CC"; then
   3180   if test -n "$ac_tool_prefix"; then
   3181   for ac_prog in cl.exe
   3182   do
   3183     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   3184 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3186 $as_echo_n "checking for $ac_word... " >&6; }
   3187 if ${ac_cv_prog_CC+:} false; then :
   3188   $as_echo_n "(cached) " >&6
   3189 else
   3190   if test -n "$CC"; then
   3191   ac_cv_prog_CC="$CC" # Let the user override the test.
   3192 else
   3193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3194 for as_dir in $PATH
   3195 do
   3196   IFS=$as_save_IFS
   3197   test -z "$as_dir" && as_dir=.
   3198     for ac_exec_ext in '' $ac_executable_extensions; do
   3199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3200     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   3201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3202     break 2
   3203   fi
   3204 done
   3205   done
   3206 IFS=$as_save_IFS
   3207 
   3208 fi
   3209 fi
   3210 CC=$ac_cv_prog_CC
   3211 if test -n "$CC"; then
   3212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3213 $as_echo "$CC" >&6; }
   3214 else
   3215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3216 $as_echo "no" >&6; }
   3217 fi
   3218 
   3219 
   3220     test -n "$CC" && break
   3221   done
   3222 fi
   3223 if test -z "$CC"; then
   3224   ac_ct_CC=$CC
   3225   for ac_prog in cl.exe
   3226 do
   3227   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3228 set dummy $ac_prog; ac_word=$2
   3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3230 $as_echo_n "checking for $ac_word... " >&6; }
   3231 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   3232   $as_echo_n "(cached) " >&6
   3233 else
   3234   if test -n "$ac_ct_CC"; then
   3235   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3236 else
   3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3238 for as_dir in $PATH
   3239 do
   3240   IFS=$as_save_IFS
   3241   test -z "$as_dir" && as_dir=.
   3242     for ac_exec_ext in '' $ac_executable_extensions; do
   3243   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3244     ac_cv_prog_ac_ct_CC="$ac_prog"
   3245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3246     break 2
   3247   fi
   3248 done
   3249   done
   3250 IFS=$as_save_IFS
   3251 
   3252 fi
   3253 fi
   3254 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3255 if test -n "$ac_ct_CC"; then
   3256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3257 $as_echo "$ac_ct_CC" >&6; }
   3258 else
   3259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3260 $as_echo "no" >&6; }
   3261 fi
   3262 
   3263 
   3264   test -n "$ac_ct_CC" && break
   3265 done
   3266 
   3267   if test "x$ac_ct_CC" = x; then
   3268     CC=""
   3269   else
   3270     case $cross_compiling:$ac_tool_warned in
   3271 yes:)
   3272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3274 ac_tool_warned=yes ;;
   3275 esac
   3276     CC=$ac_ct_CC
   3277   fi
   3278 fi
   3279 
   3280 fi
   3281 
   3282 
   3283 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3285 as_fn_error $? "no acceptable C compiler found in \$PATH
   3286 See \`config.log' for more details" "$LINENO" 5; }
   3287 
   3288 # Provide some information about the compiler.
   3289 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   3290 set X $ac_compile
   3291 ac_compiler=$2
   3292 for ac_option in --version -v -V -qversion; do
   3293   { { ac_try="$ac_compiler $ac_option >&5"
   3294 case "(($ac_try" in
   3295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3296   *) ac_try_echo=$ac_try;;
   3297 esac
   3298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3299 $as_echo "$ac_try_echo"; } >&5
   3300   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3301   ac_status=$?
   3302   if test -s conftest.err; then
   3303     sed '10a\
   3304 ... rest of stderr output deleted ...
   3305          10q' conftest.err >conftest.er1
   3306     cat conftest.er1 >&5
   3307   fi
   3308   rm -f conftest.er1 conftest.err
   3309   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3310   test $ac_status = 0; }
   3311 done
   3312 
   3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3314 /* end confdefs.h.  */
   3315 
   3316 int
   3317 main ()
   3318 {
   3319 
   3320   ;
   3321   return 0;
   3322 }
   3323 _ACEOF
   3324 ac_clean_files_save=$ac_clean_files
   3325 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   3326 # Try to create an executable without -o first, disregard a.out.
   3327 # It will help us diagnose broken compilers, and finding out an intuition
   3328 # of exeext.
   3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   3330 $as_echo_n "checking whether the C compiler works... " >&6; }
   3331 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3332 
   3333 # The possible output files:
   3334 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3335 
   3336 ac_rmfiles=
   3337 for ac_file in $ac_files
   3338 do
   3339   case $ac_file in
   3340     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3341     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3342   esac
   3343 done
   3344 rm -f $ac_rmfiles
   3345 
   3346 if { { ac_try="$ac_link_default"
   3347 case "(($ac_try" in
   3348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3349   *) ac_try_echo=$ac_try;;
   3350 esac
   3351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3352 $as_echo "$ac_try_echo"; } >&5
   3353   (eval "$ac_link_default") 2>&5
   3354   ac_status=$?
   3355   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3356   test $ac_status = 0; }; then :
   3357   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3358 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3359 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3360 # so that the user can short-circuit this test for compilers unknown to
   3361 # Autoconf.
   3362 for ac_file in $ac_files ''
   3363 do
   3364   test -f "$ac_file" || continue
   3365   case $ac_file in
   3366     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3367 	;;
   3368     [ab].out )
   3369 	# We found the default executable, but exeext='' is most
   3370 	# certainly right.
   3371 	break;;
   3372     *.* )
   3373 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   3374 	then :; else
   3375 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3376 	fi
   3377 	# We set ac_cv_exeext here because the later test for it is not
   3378 	# safe: cross compilers may not add the suffix if given an `-o'
   3379 	# argument, so we may need to know it at that point already.
   3380 	# Even if this section looks crufty: it has the advantage of
   3381 	# actually working.
   3382 	break;;
   3383     * )
   3384 	break;;
   3385   esac
   3386 done
   3387 test "$ac_cv_exeext" = no && ac_cv_exeext=
   3388 
   3389 else
   3390   ac_file=''
   3391 fi
   3392 if test -z "$ac_file"; then :
   3393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3394 $as_echo "no" >&6; }
   3395 $as_echo "$as_me: failed program was:" >&5
   3396 sed 's/^/| /' conftest.$ac_ext >&5
   3397 
   3398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3400 as_fn_error 77 "C compiler cannot create executables
   3401 See \`config.log' for more details" "$LINENO" 5; }
   3402 else
   3403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3404 $as_echo "yes" >&6; }
   3405 fi
   3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3407 $as_echo_n "checking for C compiler default output file name... " >&6; }
   3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3409 $as_echo "$ac_file" >&6; }
   3410 ac_exeext=$ac_cv_exeext
   3411 
   3412 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   3413 ac_clean_files=$ac_clean_files_save
   3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3415 $as_echo_n "checking for suffix of executables... " >&6; }
   3416 if { { ac_try="$ac_link"
   3417 case "(($ac_try" in
   3418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3419   *) ac_try_echo=$ac_try;;
   3420 esac
   3421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3422 $as_echo "$ac_try_echo"; } >&5
   3423   (eval "$ac_link") 2>&5
   3424   ac_status=$?
   3425   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3426   test $ac_status = 0; }; then :
   3427   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   3428 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   3429 # work properly (i.e., refer to `conftest.exe'), while it won't with
   3430 # `rm'.
   3431 for ac_file in conftest.exe conftest conftest.*; do
   3432   test -f "$ac_file" || continue
   3433   case $ac_file in
   3434     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3435     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3436 	  break;;
   3437     * ) break;;
   3438   esac
   3439 done
   3440 else
   3441   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3443 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   3444 See \`config.log' for more details" "$LINENO" 5; }
   3445 fi
   3446 rm -f conftest conftest$ac_cv_exeext
   3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   3448 $as_echo "$ac_cv_exeext" >&6; }
   3449 
   3450 rm -f conftest.$ac_ext
   3451 EXEEXT=$ac_cv_exeext
   3452 ac_exeext=$EXEEXT
   3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3454 /* end confdefs.h.  */
   3455 #include <stdio.h>
   3456 int
   3457 main ()
   3458 {
   3459 FILE *f = fopen ("conftest.out", "w");
   3460  return ferror (f) || fclose (f) != 0;
   3461 
   3462   ;
   3463   return 0;
   3464 }
   3465 _ACEOF
   3466 ac_clean_files="$ac_clean_files conftest.out"
   3467 # Check that the compiler produces executables we can run.  If not, either
   3468 # the compiler is broken, or we cross compile.
   3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   3470 $as_echo_n "checking whether we are cross compiling... " >&6; }
   3471 if test "$cross_compiling" != yes; then
   3472   { { 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; }
   3483   if { ac_try='./conftest$ac_cv_exeext'
   3484   { { case "(($ac_try" in
   3485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3486   *) ac_try_echo=$ac_try;;
   3487 esac
   3488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3489 $as_echo "$ac_try_echo"; } >&5
   3490   (eval "$ac_try") 2>&5
   3491   ac_status=$?
   3492   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3493   test $ac_status = 0; }; }; then
   3494     cross_compiling=no
   3495   else
   3496     if test "$cross_compiling" = maybe; then
   3497 	cross_compiling=yes
   3498     else
   3499 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3501 as_fn_error $? "cannot run C compiled programs.
   3502 If you meant to cross compile, use \`--host'.
   3503 See \`config.log' for more details" "$LINENO" 5; }
   3504     fi
   3505   fi
   3506 fi
   3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3508 $as_echo "$cross_compiling" >&6; }
   3509 
   3510 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   3511 ac_clean_files=$ac_clean_files_save
   3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   3513 $as_echo_n "checking for suffix of object files... " >&6; }
   3514 if ${ac_cv_objext+:} false; then :
   3515   $as_echo_n "(cached) " >&6
   3516 else
   3517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3518 /* end confdefs.h.  */
   3519 
   3520 int
   3521 main ()
   3522 {
   3523 
   3524   ;
   3525   return 0;
   3526 }
   3527 _ACEOF
   3528 rm -f conftest.o conftest.obj
   3529 if { { ac_try="$ac_compile"
   3530 case "(($ac_try" in
   3531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3532   *) ac_try_echo=$ac_try;;
   3533 esac
   3534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3535 $as_echo "$ac_try_echo"; } >&5
   3536   (eval "$ac_compile") 2>&5
   3537   ac_status=$?
   3538   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3539   test $ac_status = 0; }; then :
   3540   for ac_file in conftest.o conftest.obj conftest.*; do
   3541   test -f "$ac_file" || continue;
   3542   case $ac_file in
   3543     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   3544     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   3545        break;;
   3546   esac
   3547 done
   3548 else
   3549   $as_echo "$as_me: failed program was:" >&5
   3550 sed 's/^/| /' conftest.$ac_ext >&5
   3551 
   3552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3554 as_fn_error $? "cannot compute suffix of object files: cannot compile
   3555 See \`config.log' for more details" "$LINENO" 5; }
   3556 fi
   3557 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   3558 fi
   3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   3560 $as_echo "$ac_cv_objext" >&6; }
   3561 OBJEXT=$ac_cv_objext
   3562 ac_objext=$OBJEXT
   3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   3564 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   3565 if ${ac_cv_c_compiler_gnu+:} false; then :
   3566   $as_echo_n "(cached) " >&6
   3567 else
   3568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3569 /* end confdefs.h.  */
   3570 
   3571 int
   3572 main ()
   3573 {
   3574 #ifndef __GNUC__
   3575        choke me
   3576 #endif
   3577 
   3578   ;
   3579   return 0;
   3580 }
   3581 _ACEOF
   3582 if ac_fn_c_try_compile "$LINENO"; then :
   3583   ac_compiler_gnu=yes
   3584 else
   3585   ac_compiler_gnu=no
   3586 fi
   3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3588 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3589 
   3590 fi
   3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   3592 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   3593 if test $ac_compiler_gnu = yes; then
   3594   GCC=yes
   3595 else
   3596   GCC=
   3597 fi
   3598 ac_test_CFLAGS=${CFLAGS+set}
   3599 ac_save_CFLAGS=$CFLAGS
   3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   3601 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   3602 if ${ac_cv_prog_cc_g+:} false; then :
   3603   $as_echo_n "(cached) " >&6
   3604 else
   3605   ac_save_c_werror_flag=$ac_c_werror_flag
   3606    ac_c_werror_flag=yes
   3607    ac_cv_prog_cc_g=no
   3608    CFLAGS="-g"
   3609    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3610 /* end confdefs.h.  */
   3611 
   3612 int
   3613 main ()
   3614 {
   3615 
   3616   ;
   3617   return 0;
   3618 }
   3619 _ACEOF
   3620 if ac_fn_c_try_compile "$LINENO"; then :
   3621   ac_cv_prog_cc_g=yes
   3622 else
   3623   CFLAGS=""
   3624       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3625 /* end confdefs.h.  */
   3626 
   3627 int
   3628 main ()
   3629 {
   3630 
   3631   ;
   3632   return 0;
   3633 }
   3634 _ACEOF
   3635 if ac_fn_c_try_compile "$LINENO"; then :
   3636 
   3637 else
   3638   ac_c_werror_flag=$ac_save_c_werror_flag
   3639 	 CFLAGS="-g"
   3640 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3641 /* end confdefs.h.  */
   3642 
   3643 int
   3644 main ()
   3645 {
   3646 
   3647   ;
   3648   return 0;
   3649 }
   3650 _ACEOF
   3651 if ac_fn_c_try_compile "$LINENO"; then :
   3652   ac_cv_prog_cc_g=yes
   3653 fi
   3654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3655 fi
   3656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3657 fi
   3658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3659    ac_c_werror_flag=$ac_save_c_werror_flag
   3660 fi
   3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   3662 $as_echo "$ac_cv_prog_cc_g" >&6; }
   3663 if test "$ac_test_CFLAGS" = set; then
   3664   CFLAGS=$ac_save_CFLAGS
   3665 elif test $ac_cv_prog_cc_g = yes; then
   3666   if test "$GCC" = yes; then
   3667     CFLAGS="-g -O2"
   3668   else
   3669     CFLAGS="-g"
   3670   fi
   3671 else
   3672   if test "$GCC" = yes; then
   3673     CFLAGS="-O2"
   3674   else
   3675     CFLAGS=
   3676   fi
   3677 fi
   3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   3679 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   3680 if ${ac_cv_prog_cc_c89+:} false; then :
   3681   $as_echo_n "(cached) " >&6
   3682 else
   3683   ac_cv_prog_cc_c89=no
   3684 ac_save_CC=$CC
   3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3686 /* end confdefs.h.  */
   3687 #include <stdarg.h>
   3688 #include <stdio.h>
   3689 struct stat;
   3690 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   3691 struct buf { int x; };
   3692 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   3693 static char *e (p, i)
   3694      char **p;
   3695      int i;
   3696 {
   3697   return p[i];
   3698 }
   3699 static char *f (char * (*g) (char **, int), char **p, ...)
   3700 {
   3701   char *s;
   3702   va_list v;
   3703   va_start (v,p);
   3704   s = g (p, va_arg (v,int));
   3705   va_end (v);
   3706   return s;
   3707 }
   3708 
   3709 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   3710    function prototypes and stuff, but not '\xHH' hex character constants.
   3711    These don't provoke an error unfortunately, instead are silently treated
   3712    as 'x'.  The following induces an error, until -std is added to get
   3713    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   3714    array size at least.  It's necessary to write '\x00'==0 to get something
   3715    that's true only with -std.  */
   3716 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   3717 
   3718 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   3719    inside strings and character constants.  */
   3720 #define FOO(x) 'x'
   3721 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   3722 
   3723 int test (int i, double x);
   3724 struct s1 {int (*f) (int a);};
   3725 struct s2 {int (*f) (double a);};
   3726 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   3727 int argc;
   3728 char **argv;
   3729 int
   3730 main ()
   3731 {
   3732 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   3733   ;
   3734   return 0;
   3735 }
   3736 _ACEOF
   3737 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   3738 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   3739 do
   3740   CC="$ac_save_CC $ac_arg"
   3741   if ac_fn_c_try_compile "$LINENO"; then :
   3742   ac_cv_prog_cc_c89=$ac_arg
   3743 fi
   3744 rm -f core conftest.err conftest.$ac_objext
   3745   test "x$ac_cv_prog_cc_c89" != "xno" && break
   3746 done
   3747 rm -f conftest.$ac_ext
   3748 CC=$ac_save_CC
   3749 
   3750 fi
   3751 # AC_CACHE_VAL
   3752 case "x$ac_cv_prog_cc_c89" in
   3753   x)
   3754     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3755 $as_echo "none needed" >&6; } ;;
   3756   xno)
   3757     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3758 $as_echo "unsupported" >&6; } ;;
   3759   *)
   3760     CC="$CC $ac_cv_prog_cc_c89"
   3761     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   3762 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   3763 esac
   3764 if test "x$ac_cv_prog_cc_c89" != xno; then :
   3765 
   3766 fi
   3767 
   3768 ac_ext=c
   3769 ac_cpp='$CPP $CPPFLAGS'
   3770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3773 
   3774 ac_ext=c
   3775 ac_cpp='$CPP $CPPFLAGS'
   3776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
   3780 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
   3781 if ${am_cv_prog_cc_c_o+:} false; then :
   3782   $as_echo_n "(cached) " >&6
   3783 else
   3784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3785 /* end confdefs.h.  */
   3786 
   3787 int
   3788 main ()
   3789 {
   3790 
   3791   ;
   3792   return 0;
   3793 }
   3794 _ACEOF
   3795   # Make sure it works both with $CC and with simple cc.
   3796   # Following AC_PROG_CC_C_O, we do the test twice because some
   3797   # compilers refuse to overwrite an existing .o file with -o,
   3798   # though they will create one.
   3799   am_cv_prog_cc_c_o=yes
   3800   for am_i in 1 2; do
   3801     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
   3802    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
   3803    ac_status=$?
   3804    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3805    (exit $ac_status); } \
   3806          && test -f conftest2.$ac_objext; then
   3807       : OK
   3808     else
   3809       am_cv_prog_cc_c_o=no
   3810       break
   3811     fi
   3812   done
   3813   rm -f core conftest*
   3814   unset am_i
   3815 fi
   3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
   3817 $as_echo "$am_cv_prog_cc_c_o" >&6; }
   3818 if test "$am_cv_prog_cc_c_o" != yes; then
   3819    # Losing compiler, so override with the script.
   3820    # FIXME: It is wrong to rewrite CC.
   3821    # But if we don't then we get into trouble of one sort or another.
   3822    # A longer-term fix would be to have automake use am__CC in this case,
   3823    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   3824    CC="$am_aux_dir/compile $CC"
   3825 fi
   3826 ac_ext=c
   3827 ac_cpp='$CPP $CPPFLAGS'
   3828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3831 
   3832 DEPDIR="${am__leading_dot}deps"
   3833 
   3834 ac_config_commands="$ac_config_commands depfiles"
   3835 
   3836 
   3837 am_make=${MAKE-make}
   3838 cat > confinc << 'END'
   3839 am__doit:
   3840 	@echo this is the am__doit target
   3841 .PHONY: am__doit
   3842 END
   3843 # If we don't find an include directive, just comment out the code.
   3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
   3845 $as_echo_n "checking for style of include used by $am_make... " >&6; }
   3846 am__include="#"
   3847 am__quote=
   3848 _am_result=none
   3849 # First try GNU make style include.
   3850 echo "include confinc" > confmf
   3851 # Ignore all kinds of additional output from 'make'.
   3852 case `$am_make -s -f confmf 2> /dev/null` in #(
   3853 *the\ am__doit\ target*)
   3854   am__include=include
   3855   am__quote=
   3856   _am_result=GNU
   3857   ;;
   3858 esac
   3859 # Now try BSD make style include.
   3860 if test "$am__include" = "#"; then
   3861    echo '.include "confinc"' > confmf
   3862    case `$am_make -s -f confmf 2> /dev/null` in #(
   3863    *the\ am__doit\ target*)
   3864      am__include=.include
   3865      am__quote="\""
   3866      _am_result=BSD
   3867      ;;
   3868    esac
   3869 fi
   3870 
   3871 
   3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
   3873 $as_echo "$_am_result" >&6; }
   3874 rm -f confinc confmf
   3875 
   3876 # Check whether --enable-dependency-tracking was given.
   3877 if test "${enable_dependency_tracking+set}" = set; then :
   3878   enableval=$enable_dependency_tracking;
   3879 fi
   3880 
   3881 if test "x$enable_dependency_tracking" != xno; then
   3882   am_depcomp="$ac_aux_dir/depcomp"
   3883   AMDEPBACKSLASH='\'
   3884   am__nodep='_no'
   3885 fi
   3886  if test "x$enable_dependency_tracking" != xno; then
   3887   AMDEP_TRUE=
   3888   AMDEP_FALSE='#'
   3889 else
   3890   AMDEP_TRUE='#'
   3891   AMDEP_FALSE=
   3892 fi
   3893 
   3894 
   3895 
   3896 depcc="$CC"   am_compiler_list=
   3897 
   3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
   3899 $as_echo_n "checking dependency style of $depcc... " >&6; }
   3900 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
   3901   $as_echo_n "(cached) " >&6
   3902 else
   3903   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
   3904   # We make a subdir and do the tests there.  Otherwise we can end up
   3905   # making bogus files that we don't know about and never remove.  For
   3906   # instance it was reported that on HP-UX the gcc test will end up
   3907   # making a dummy file named 'D' -- because '-MD' means "put the output
   3908   # in D".
   3909   rm -rf conftest.dir
   3910   mkdir conftest.dir
   3911   # Copy depcomp to subdir because otherwise we won't find it if we're
   3912   # using a relative directory.
   3913   cp "$am_depcomp" conftest.dir
   3914   cd conftest.dir
   3915   # We will build objects and dependencies in a subdirectory because
   3916   # it helps to detect inapplicable dependency modes.  For instance
   3917   # both Tru64's cc and ICC support -MD to output dependencies as a
   3918   # side effect of compilation, but ICC will put the dependencies in
   3919   # the current directory while Tru64 will put them in the object
   3920   # directory.
   3921   mkdir sub
   3922 
   3923   am_cv_CC_dependencies_compiler_type=none
   3924   if test "$am_compiler_list" = ""; then
   3925      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
   3926   fi
   3927   am__universal=false
   3928   case " $depcc " in #(
   3929      *\ -arch\ *\ -arch\ *) am__universal=true ;;
   3930      esac
   3931 
   3932   for depmode in $am_compiler_list; do
   3933     # Setup a source with many dependencies, because some compilers
   3934     # like to wrap large dependency lists on column 80 (with \), and
   3935     # we should not choose a depcomp mode which is confused by this.
   3936     #
   3937     # We need to recreate these files for each test, as the compiler may
   3938     # overwrite some of them when testing with obscure command lines.
   3939     # This happens at least with the AIX C compiler.
   3940     : > sub/conftest.c
   3941     for i in 1 2 3 4 5 6; do
   3942       echo '#include "conftst'$i'.h"' >> sub/conftest.c
   3943       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
   3944       # Solaris 10 /bin/sh.
   3945       echo '/* dummy */' > sub/conftst$i.h
   3946     done
   3947     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
   3948 
   3949     # We check with '-c' and '-o' for the sake of the "dashmstdout"
   3950     # mode.  It turns out that the SunPro C++ compiler does not properly
   3951     # handle '-M -o', and we need to detect this.  Also, some Intel
   3952     # versions had trouble with output in subdirs.
   3953     am__obj=sub/conftest.${OBJEXT-o}
   3954     am__minus_obj="-o $am__obj"
   3955     case $depmode in
   3956     gcc)
   3957       # This depmode causes a compiler race in universal mode.
   3958       test "$am__universal" = false || continue
   3959       ;;
   3960     nosideeffect)
   3961       # After this tag, mechanisms are not by side-effect, so they'll
   3962       # only be used when explicitly requested.
   3963       if test "x$enable_dependency_tracking" = xyes; then
   3964 	continue
   3965       else
   3966 	break
   3967       fi
   3968       ;;
   3969     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
   3970       # This compiler won't grok '-c -o', but also, the minuso test has
   3971       # not run yet.  These depmodes are late enough in the game, and
   3972       # so weak that their functioning should not be impacted.
   3973       am__obj=conftest.${OBJEXT-o}
   3974       am__minus_obj=
   3975       ;;
   3976     none) break ;;
   3977     esac
   3978     if depmode=$depmode \
   3979        source=sub/conftest.c object=$am__obj \
   3980        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
   3981        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
   3982          >/dev/null 2>conftest.err &&
   3983        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
   3984        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
   3985        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
   3986        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
   3987       # icc doesn't choke on unknown options, it will just issue warnings
   3988       # or remarks (even with -Werror).  So we grep stderr for any message
   3989       # that says an option was ignored or not supported.
   3990       # When given -MP, icc 7.0 and 7.1 complain thusly:
   3991       #   icc: Command line warning: ignoring option '-M'; no argument required
   3992       # The diagnosis changed in icc 8.0:
   3993       #   icc: Command line remark: option '-MP' not supported
   3994       if (grep 'ignoring option' conftest.err ||
   3995           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
   3996         am_cv_CC_dependencies_compiler_type=$depmode
   3997         break
   3998       fi
   3999     fi
   4000   done
   4001 
   4002   cd ..
   4003   rm -rf conftest.dir
   4004 else
   4005   am_cv_CC_dependencies_compiler_type=none
   4006 fi
   4007 
   4008 fi
   4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
   4010 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
   4011 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
   4012 
   4013  if
   4014   test "x$enable_dependency_tracking" != xno \
   4015   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
   4016   am__fastdepCC_TRUE=
   4017   am__fastdepCC_FALSE='#'
   4018 else
   4019   am__fastdepCC_TRUE='#'
   4020   am__fastdepCC_FALSE=
   4021 fi
   4022 
   4023 
   4024 
   4025    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
   4026 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
   4027 if ${ac_cv_prog_cc_c99+:} false; then :
   4028   $as_echo_n "(cached) " >&6
   4029 else
   4030   ac_cv_prog_cc_c99=no
   4031 ac_save_CC=$CC
   4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4033 /* end confdefs.h.  */
   4034 #include <stdarg.h>
   4035 #include <stdbool.h>
   4036 #include <stdlib.h>
   4037 #include <wchar.h>
   4038 #include <stdio.h>
   4039 
   4040 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
   4041 #define debug(...) fprintf (stderr, __VA_ARGS__)
   4042 #define showlist(...) puts (#__VA_ARGS__)
   4043 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
   4044 static void
   4045 test_varargs_macros (void)
   4046 {
   4047   int x = 1234;
   4048   int y = 5678;
   4049   debug ("Flag");
   4050   debug ("X = %d\n", x);
   4051   showlist (The first, second, and third items.);
   4052   report (x>y, "x is %d but y is %d", x, y);
   4053 }
   4054 
   4055 // Check long long types.
   4056 #define BIG64 18446744073709551615ull
   4057 #define BIG32 4294967295ul
   4058 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
   4059 #if !BIG_OK
   4060   your preprocessor is broken;
   4061 #endif
   4062 #if BIG_OK
   4063 #else
   4064   your preprocessor is broken;
   4065 #endif
   4066 static long long int bignum = -9223372036854775807LL;
   4067 static unsigned long long int ubignum = BIG64;
   4068 
   4069 struct incomplete_array
   4070 {
   4071   int datasize;
   4072   double data[];
   4073 };
   4074 
   4075 struct named_init {
   4076   int number;
   4077   const wchar_t *name;
   4078   double average;
   4079 };
   4080 
   4081 typedef const char *ccp;
   4082 
   4083 static inline int
   4084 test_restrict (ccp restrict text)
   4085 {
   4086   // See if C++-style comments work.
   4087   // Iterate through items via the restricted pointer.
   4088   // Also check for declarations in for loops.
   4089   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
   4090     continue;
   4091   return 0;
   4092 }
   4093 
   4094 // Check varargs and va_copy.
   4095 static void
   4096 test_varargs (const char *format, ...)
   4097 {
   4098   va_list args;
   4099   va_start (args, format);
   4100   va_list args_copy;
   4101   va_copy (args_copy, args);
   4102 
   4103   const char *str;
   4104   int number;
   4105   float fnumber;
   4106 
   4107   while (*format)
   4108     {
   4109       switch (*format++)
   4110 	{
   4111 	case 's': // string
   4112 	  str = va_arg (args_copy, const char *);
   4113 	  break;
   4114 	case 'd': // int
   4115 	  number = va_arg (args_copy, int);
   4116 	  break;
   4117 	case 'f': // float
   4118 	  fnumber = va_arg (args_copy, double);
   4119 	  break;
   4120 	default:
   4121 	  break;
   4122 	}
   4123     }
   4124   va_end (args_copy);
   4125   va_end (args);
   4126 }
   4127 
   4128 int
   4129 main ()
   4130 {
   4131 
   4132   // Check bool.
   4133   _Bool success = false;
   4134 
   4135   // Check restrict.
   4136   if (test_restrict ("String literal") == 0)
   4137     success = true;
   4138   char *restrict newvar = "Another string";
   4139 
   4140   // Check varargs.
   4141   test_varargs ("s, d' f .", "string", 65, 34.234);
   4142   test_varargs_macros ();
   4143 
   4144   // Check flexible array members.
   4145   struct incomplete_array *ia =
   4146     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
   4147   ia->datasize = 10;
   4148   for (int i = 0; i < ia->datasize; ++i)
   4149     ia->data[i] = i * 1.234;
   4150 
   4151   // Check named initializers.
   4152   struct named_init ni = {
   4153     .number = 34,
   4154     .name = L"Test wide string",
   4155     .average = 543.34343,
   4156   };
   4157 
   4158   ni.number = 58;
   4159 
   4160   int dynamic_array[ni.number];
   4161   dynamic_array[ni.number - 1] = 543;
   4162 
   4163   // work around unused variable warnings
   4164   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
   4165 	  || dynamic_array[ni.number - 1] != 543);
   4166 
   4167   ;
   4168   return 0;
   4169 }
   4170 _ACEOF
   4171 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
   4172 do
   4173   CC="$ac_save_CC $ac_arg"
   4174   if ac_fn_c_try_compile "$LINENO"; then :
   4175   ac_cv_prog_cc_c99=$ac_arg
   4176 fi
   4177 rm -f core conftest.err conftest.$ac_objext
   4178   test "x$ac_cv_prog_cc_c99" != "xno" && break
   4179 done
   4180 rm -f conftest.$ac_ext
   4181 CC=$ac_save_CC
   4182 
   4183 fi
   4184 # AC_CACHE_VAL
   4185 case "x$ac_cv_prog_cc_c99" in
   4186   x)
   4187     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   4188 $as_echo "none needed" >&6; } ;;
   4189   xno)
   4190     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   4191 $as_echo "unsupported" >&6; } ;;
   4192   *)
   4193     CC="$CC $ac_cv_prog_cc_c99"
   4194     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
   4195 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
   4196 esac
   4197 if test "x$ac_cv_prog_cc_c99" != xno; then :
   4198 
   4199 fi
   4200 
   4201 
   4202 ac_ext=c
   4203 ac_cpp='$CPP $CPPFLAGS'
   4204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   4208 $as_echo_n "checking how to run the C preprocessor... " >&6; }
   4209 # On Suns, sometimes $CPP names a directory.
   4210 if test -n "$CPP" && test -d "$CPP"; then
   4211   CPP=
   4212 fi
   4213 if test -z "$CPP"; then
   4214   if ${ac_cv_prog_CPP+:} false; then :
   4215   $as_echo_n "(cached) " >&6
   4216 else
   4217       # Double quotes because CPP needs to be expanded
   4218     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   4219     do
   4220       ac_preproc_ok=false
   4221 for ac_c_preproc_warn_flag in '' yes
   4222 do
   4223   # Use a header file that comes with gcc, so configuring glibc
   4224   # with a fresh cross-compiler works.
   4225   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4226   # <limits.h> exists even on freestanding compilers.
   4227   # On the NeXT, cc -E runs the code through the compiler's parser,
   4228   # not just through cpp. "Syntax error" is here to catch this case.
   4229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4230 /* end confdefs.h.  */
   4231 #ifdef __STDC__
   4232 # include <limits.h>
   4233 #else
   4234 # include <assert.h>
   4235 #endif
   4236 		     Syntax error
   4237 _ACEOF
   4238 if ac_fn_c_try_cpp "$LINENO"; then :
   4239 
   4240 else
   4241   # Broken: fails on valid input.
   4242 continue
   4243 fi
   4244 rm -f conftest.err conftest.i conftest.$ac_ext
   4245 
   4246   # OK, works on sane cases.  Now check whether nonexistent headers
   4247   # can be detected and how.
   4248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4249 /* end confdefs.h.  */
   4250 #include <ac_nonexistent.h>
   4251 _ACEOF
   4252 if ac_fn_c_try_cpp "$LINENO"; then :
   4253   # Broken: success on invalid input.
   4254 continue
   4255 else
   4256   # Passes both tests.
   4257 ac_preproc_ok=:
   4258 break
   4259 fi
   4260 rm -f conftest.err conftest.i conftest.$ac_ext
   4261 
   4262 done
   4263 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   4264 rm -f conftest.i conftest.err conftest.$ac_ext
   4265 if $ac_preproc_ok; then :
   4266   break
   4267 fi
   4268 
   4269     done
   4270     ac_cv_prog_CPP=$CPP
   4271 
   4272 fi
   4273   CPP=$ac_cv_prog_CPP
   4274 else
   4275   ac_cv_prog_CPP=$CPP
   4276 fi
   4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   4278 $as_echo "$CPP" >&6; }
   4279 ac_preproc_ok=false
   4280 for ac_c_preproc_warn_flag in '' yes
   4281 do
   4282   # Use a header file that comes with gcc, so configuring glibc
   4283   # with a fresh cross-compiler works.
   4284   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4285   # <limits.h> exists even on freestanding compilers.
   4286   # On the NeXT, cc -E runs the code through the compiler's parser,
   4287   # not just through cpp. "Syntax error" is here to catch this case.
   4288   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4289 /* end confdefs.h.  */
   4290 #ifdef __STDC__
   4291 # include <limits.h>
   4292 #else
   4293 # include <assert.h>
   4294 #endif
   4295 		     Syntax error
   4296 _ACEOF
   4297 if ac_fn_c_try_cpp "$LINENO"; then :
   4298 
   4299 else
   4300   # Broken: fails on valid input.
   4301 continue
   4302 fi
   4303 rm -f conftest.err conftest.i conftest.$ac_ext
   4304 
   4305   # OK, works on sane cases.  Now check whether nonexistent headers
   4306   # can be detected and how.
   4307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4308 /* end confdefs.h.  */
   4309 #include <ac_nonexistent.h>
   4310 _ACEOF
   4311 if ac_fn_c_try_cpp "$LINENO"; then :
   4312   # Broken: success on invalid input.
   4313 continue
   4314 else
   4315   # Passes both tests.
   4316 ac_preproc_ok=:
   4317 break
   4318 fi
   4319 rm -f conftest.err conftest.i conftest.$ac_ext
   4320 
   4321 done
   4322 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   4323 rm -f conftest.i conftest.err conftest.$ac_ext
   4324 if $ac_preproc_ok; then :
   4325 
   4326 else
   4327   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4329 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   4330 See \`config.log' for more details" "$LINENO" 5; }
   4331 fi
   4332 
   4333 ac_ext=c
   4334 ac_cpp='$CPP $CPPFLAGS'
   4335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4338 
   4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   4340 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   4341 if ${ac_cv_path_GREP+:} false; then :
   4342   $as_echo_n "(cached) " >&6
   4343 else
   4344   if test -z "$GREP"; then
   4345   ac_path_GREP_found=false
   4346   # Loop through the user's path and test for each of PROGNAME-LIST
   4347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4348 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4349 do
   4350   IFS=$as_save_IFS
   4351   test -z "$as_dir" && as_dir=.
   4352     for ac_prog in grep ggrep; do
   4353     for ac_exec_ext in '' $ac_executable_extensions; do
   4354       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   4355       as_fn_executable_p "$ac_path_GREP" || continue
   4356 # Check for GNU ac_path_GREP and select it if it is found.
   4357   # Check for GNU $ac_path_GREP
   4358 case `"$ac_path_GREP" --version 2>&1` in
   4359 *GNU*)
   4360   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   4361 *)
   4362   ac_count=0
   4363   $as_echo_n 0123456789 >"conftest.in"
   4364   while :
   4365   do
   4366     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4367     mv "conftest.tmp" "conftest.in"
   4368     cp "conftest.in" "conftest.nl"
   4369     $as_echo 'GREP' >> "conftest.nl"
   4370     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4371     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4372     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4373     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   4374       # Best one so far, save it but keep looking for a better one
   4375       ac_cv_path_GREP="$ac_path_GREP"
   4376       ac_path_GREP_max=$ac_count
   4377     fi
   4378     # 10*(2^10) chars as input seems more than enough
   4379     test $ac_count -gt 10 && break
   4380   done
   4381   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4382 esac
   4383 
   4384       $ac_path_GREP_found && break 3
   4385     done
   4386   done
   4387   done
   4388 IFS=$as_save_IFS
   4389   if test -z "$ac_cv_path_GREP"; then
   4390     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4391   fi
   4392 else
   4393   ac_cv_path_GREP=$GREP
   4394 fi
   4395 
   4396 fi
   4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   4398 $as_echo "$ac_cv_path_GREP" >&6; }
   4399  GREP="$ac_cv_path_GREP"
   4400 
   4401 
   4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   4403 $as_echo_n "checking for egrep... " >&6; }
   4404 if ${ac_cv_path_EGREP+:} false; then :
   4405   $as_echo_n "(cached) " >&6
   4406 else
   4407   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   4408    then ac_cv_path_EGREP="$GREP -E"
   4409    else
   4410      if test -z "$EGREP"; then
   4411   ac_path_EGREP_found=false
   4412   # Loop through the user's path and test for each of PROGNAME-LIST
   4413   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4414 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4415 do
   4416   IFS=$as_save_IFS
   4417   test -z "$as_dir" && as_dir=.
   4418     for ac_prog in egrep; do
   4419     for ac_exec_ext in '' $ac_executable_extensions; do
   4420       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   4421       as_fn_executable_p "$ac_path_EGREP" || continue
   4422 # Check for GNU ac_path_EGREP and select it if it is found.
   4423   # Check for GNU $ac_path_EGREP
   4424 case `"$ac_path_EGREP" --version 2>&1` in
   4425 *GNU*)
   4426   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   4427 *)
   4428   ac_count=0
   4429   $as_echo_n 0123456789 >"conftest.in"
   4430   while :
   4431   do
   4432     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4433     mv "conftest.tmp" "conftest.in"
   4434     cp "conftest.in" "conftest.nl"
   4435     $as_echo 'EGREP' >> "conftest.nl"
   4436     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4437     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4438     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4439     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   4440       # Best one so far, save it but keep looking for a better one
   4441       ac_cv_path_EGREP="$ac_path_EGREP"
   4442       ac_path_EGREP_max=$ac_count
   4443     fi
   4444     # 10*(2^10) chars as input seems more than enough
   4445     test $ac_count -gt 10 && break
   4446   done
   4447   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4448 esac
   4449 
   4450       $ac_path_EGREP_found && break 3
   4451     done
   4452   done
   4453   done
   4454 IFS=$as_save_IFS
   4455   if test -z "$ac_cv_path_EGREP"; then
   4456     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4457   fi
   4458 else
   4459   ac_cv_path_EGREP=$EGREP
   4460 fi
   4461 
   4462    fi
   4463 fi
   4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   4465 $as_echo "$ac_cv_path_EGREP" >&6; }
   4466  EGREP="$ac_cv_path_EGREP"
   4467 
   4468 
   4469 
   4470 
   4471 
   4472 
   4473 
   4474 
   4475 
   4476 
   4477 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
   4478 	if test -n "$ac_tool_prefix"; then
   4479   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
   4480 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
   4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4482 $as_echo_n "checking for $ac_word... " >&6; }
   4483 if ${ac_cv_path_PKG_CONFIG+:} false; then :
   4484   $as_echo_n "(cached) " >&6
   4485 else
   4486   case $PKG_CONFIG in
   4487   [\\/]* | ?:[\\/]*)
   4488   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
   4489   ;;
   4490   *)
   4491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4492 for as_dir in $PATH
   4493 do
   4494   IFS=$as_save_IFS
   4495   test -z "$as_dir" && as_dir=.
   4496     for ac_exec_ext in '' $ac_executable_extensions; do
   4497   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4498     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   4499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4500     break 2
   4501   fi
   4502 done
   4503   done
   4504 IFS=$as_save_IFS
   4505 
   4506   ;;
   4507 esac
   4508 fi
   4509 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
   4510 if test -n "$PKG_CONFIG"; then
   4511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
   4512 $as_echo "$PKG_CONFIG" >&6; }
   4513 else
   4514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4515 $as_echo "no" >&6; }
   4516 fi
   4517 
   4518 
   4519 fi
   4520 if test -z "$ac_cv_path_PKG_CONFIG"; then
   4521   ac_pt_PKG_CONFIG=$PKG_CONFIG
   4522   # Extract the first word of "pkg-config", so it can be a program name with args.
   4523 set dummy pkg-config; ac_word=$2
   4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4525 $as_echo_n "checking for $ac_word... " >&6; }
   4526 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
   4527   $as_echo_n "(cached) " >&6
   4528 else
   4529   case $ac_pt_PKG_CONFIG in
   4530   [\\/]* | ?:[\\/]*)
   4531   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
   4532   ;;
   4533   *)
   4534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4535 for as_dir in $PATH
   4536 do
   4537   IFS=$as_save_IFS
   4538   test -z "$as_dir" && as_dir=.
   4539     for ac_exec_ext in '' $ac_executable_extensions; do
   4540   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4541     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   4542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4543     break 2
   4544   fi
   4545 done
   4546   done
   4547 IFS=$as_save_IFS
   4548 
   4549   ;;
   4550 esac
   4551 fi
   4552 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
   4553 if test -n "$ac_pt_PKG_CONFIG"; then
   4554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
   4555 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
   4556 else
   4557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4558 $as_echo "no" >&6; }
   4559 fi
   4560 
   4561   if test "x$ac_pt_PKG_CONFIG" = x; then
   4562     PKG_CONFIG=""
   4563   else
   4564     case $cross_compiling:$ac_tool_warned in
   4565 yes:)
   4566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4568 ac_tool_warned=yes ;;
   4569 esac
   4570     PKG_CONFIG=$ac_pt_PKG_CONFIG
   4571   fi
   4572 else
   4573   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
   4574 fi
   4575 
   4576 fi
   4577 if test -n "$PKG_CONFIG"; then
   4578 	_pkg_min_version=0.9.0
   4579 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
   4580 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
   4581 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
   4582 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4583 $as_echo "yes" >&6; }
   4584 	else
   4585 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4586 $as_echo "no" >&6; }
   4587 		PKG_CONFIG=""
   4588 	fi
   4589 fi
   4590 
   4591 
   4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   4593 $as_echo_n "checking for ANSI C header files... " >&6; }
   4594 if ${ac_cv_header_stdc+:} false; then :
   4595   $as_echo_n "(cached) " >&6
   4596 else
   4597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4598 /* end confdefs.h.  */
   4599 #include <stdlib.h>
   4600 #include <stdarg.h>
   4601 #include <string.h>
   4602 #include <float.h>
   4603 
   4604 int
   4605 main ()
   4606 {
   4607 
   4608   ;
   4609   return 0;
   4610 }
   4611 _ACEOF
   4612 if ac_fn_c_try_compile "$LINENO"; then :
   4613   ac_cv_header_stdc=yes
   4614 else
   4615   ac_cv_header_stdc=no
   4616 fi
   4617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4618 
   4619 if test $ac_cv_header_stdc = yes; then
   4620   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   4621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4622 /* end confdefs.h.  */
   4623 #include <string.h>
   4624 
   4625 _ACEOF
   4626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4627   $EGREP "memchr" >/dev/null 2>&1; then :
   4628 
   4629 else
   4630   ac_cv_header_stdc=no
   4631 fi
   4632 rm -f conftest*
   4633 
   4634 fi
   4635 
   4636 if test $ac_cv_header_stdc = yes; then
   4637   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   4638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4639 /* end confdefs.h.  */
   4640 #include <stdlib.h>
   4641 
   4642 _ACEOF
   4643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4644   $EGREP "free" >/dev/null 2>&1; then :
   4645 
   4646 else
   4647   ac_cv_header_stdc=no
   4648 fi
   4649 rm -f conftest*
   4650 
   4651 fi
   4652 
   4653 if test $ac_cv_header_stdc = yes; then
   4654   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   4655   if test "$cross_compiling" = yes; then :
   4656   :
   4657 else
   4658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4659 /* end confdefs.h.  */
   4660 #include <ctype.h>
   4661 #include <stdlib.h>
   4662 #if ((' ' & 0x0FF) == 0x020)
   4663 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   4664 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   4665 #else
   4666 # define ISLOWER(c) \
   4667 		   (('a' <= (c) && (c) <= 'i') \
   4668 		     || ('j' <= (c) && (c) <= 'r') \
   4669 		     || ('s' <= (c) && (c) <= 'z'))
   4670 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   4671 #endif
   4672 
   4673 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   4674 int
   4675 main ()
   4676 {
   4677   int i;
   4678   for (i = 0; i < 256; i++)
   4679     if (XOR (islower (i), ISLOWER (i))
   4680 	|| toupper (i) != TOUPPER (i))
   4681       return 2;
   4682   return 0;
   4683 }
   4684 _ACEOF
   4685 if ac_fn_c_try_run "$LINENO"; then :
   4686 
   4687 else
   4688   ac_cv_header_stdc=no
   4689 fi
   4690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   4691   conftest.$ac_objext conftest.beam conftest.$ac_ext
   4692 fi
   4693 
   4694 fi
   4695 fi
   4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   4697 $as_echo "$ac_cv_header_stdc" >&6; }
   4698 if test $ac_cv_header_stdc = yes; then
   4699 
   4700 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   4701 
   4702 fi
   4703 
   4704 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   4705 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   4706 		  inttypes.h stdint.h unistd.h
   4707 do :
   4708   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4709 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   4710 "
   4711 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   4712   cat >>confdefs.h <<_ACEOF
   4713 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4714 _ACEOF
   4715 
   4716 fi
   4717 
   4718 done
   4719 
   4720 
   4721 
   4722   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
   4723 if test "x$ac_cv_header_minix_config_h" = xyes; then :
   4724   MINIX=yes
   4725 else
   4726   MINIX=
   4727 fi
   4728 
   4729 
   4730   if test "$MINIX" = yes; then
   4731 
   4732 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
   4733 
   4734 
   4735 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
   4736 
   4737 
   4738 $as_echo "#define _MINIX 1" >>confdefs.h
   4739 
   4740   fi
   4741 
   4742 
   4743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
   4744 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
   4745 if ${ac_cv_safe_to_define___extensions__+:} false; then :
   4746   $as_echo_n "(cached) " >&6
   4747 else
   4748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4749 /* end confdefs.h.  */
   4750 
   4751 #         define __EXTENSIONS__ 1
   4752           $ac_includes_default
   4753 int
   4754 main ()
   4755 {
   4756 
   4757   ;
   4758   return 0;
   4759 }
   4760 _ACEOF
   4761 if ac_fn_c_try_compile "$LINENO"; then :
   4762   ac_cv_safe_to_define___extensions__=yes
   4763 else
   4764   ac_cv_safe_to_define___extensions__=no
   4765 fi
   4766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4767 fi
   4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
   4769 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
   4770   test $ac_cv_safe_to_define___extensions__ = yes &&
   4771     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
   4772 
   4773   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
   4774 
   4775   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
   4776 
   4777   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
   4778 
   4779   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
   4780 
   4781 
   4782 
   4783 # Default tmux.conf goes in /etc not ${prefix}/etc.
   4784 test "$sysconfdir" = '${prefix}/etc' && sysconfdir=/etc
   4785 
   4786 # Is this --enable-debug?
   4787 test "x$VERSION" = xmaster && enable_debug=yes
   4788 # Check whether --enable-debug was given.
   4789 if test "${enable_debug+set}" = set; then :
   4790   enableval=$enable_debug;
   4791 fi
   4792 
   4793  if test "x$enable_debug" = xyes; then
   4794   IS_DEBUG_TRUE=
   4795   IS_DEBUG_FALSE='#'
   4796 else
   4797   IS_DEBUG_TRUE='#'
   4798   IS_DEBUG_FALSE=
   4799 fi
   4800 
   4801 
   4802 # Is this a static build?
   4803 # Check whether --enable-static was given.
   4804 if test "${enable_static+set}" = set; then :
   4805   enableval=$enable_static;
   4806 fi
   4807 
   4808 if test "x$enable_static" = xyes; then
   4809 	test "x$PKG_CONFIG" != x && PKG_CONFIG="$PKG_CONFIG --static"
   4810 	AM_LDFLAGS="-static $AM_LDFLAGS"
   4811 	LDFLAGS="$AM_LDFLAGS $SAVED_LDFLAGS"
   4812 fi
   4813 
   4814 # Is this gcc?
   4815  if test "x$GCC" = xyes; then
   4816   IS_GCC_TRUE=
   4817   IS_GCC_FALSE='#'
   4818 else
   4819   IS_GCC_TRUE='#'
   4820   IS_GCC_FALSE=
   4821 fi
   4822 
   4823 
   4824 # Is this Sun CC?
   4825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4826 /* end confdefs.h.  */
   4827 
   4828 		#ifdef __SUNPRO_C
   4829 		yes
   4830 		#endif
   4831 
   4832 _ACEOF
   4833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4834   $EGREP "yes" >/dev/null 2>&1; then :
   4835   found_suncc=yes
   4836 else
   4837   found_suncc=no
   4838 
   4839 fi
   4840 rm -f conftest*
   4841 
   4842  if test "x$found_suncc" = xyes; then
   4843   IS_SUNCC_TRUE=
   4844   IS_SUNCC_FALSE='#'
   4845 else
   4846   IS_SUNCC_TRUE='#'
   4847   IS_SUNCC_FALSE=
   4848 fi
   4849 
   4850 
   4851 # Check for various headers. Alternatives included from compat.h.
   4852 for ac_header in  \
   4853 	bitstring.h \
   4854 	dirent.h \
   4855 	fcntl.h \
   4856 	inttypes.h \
   4857 	libutil.h \
   4858 	ndir.h \
   4859 	paths.h \
   4860 	pty.h \
   4861 	stdint.h \
   4862 	sys/dir.h \
   4863 	sys/ndir.h \
   4864 	sys/tree.h \
   4865 	util.h \
   4866 
   4867 do :
   4868   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4869 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   4870 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   4871   cat >>confdefs.h <<_ACEOF
   4872 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4873 _ACEOF
   4874 
   4875 fi
   4876 
   4877 done
   4878 
   4879 
   4880 # Look for library needed for flock.
   4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing flock" >&5
   4882 $as_echo_n "checking for library containing flock... " >&6; }
   4883 if ${ac_cv_search_flock+:} false; then :
   4884   $as_echo_n "(cached) " >&6
   4885 else
   4886   ac_func_search_save_LIBS=$LIBS
   4887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4888 /* end confdefs.h.  */
   4889 
   4890 /* Override any GCC internal prototype to avoid an error.
   4891    Use char because int might match the return type of a GCC
   4892    builtin and then its argument prototype would still apply.  */
   4893 #ifdef __cplusplus
   4894 extern "C"
   4895 #endif
   4896 char flock ();
   4897 int
   4898 main ()
   4899 {
   4900 return flock ();
   4901   ;
   4902   return 0;
   4903 }
   4904 _ACEOF
   4905 for ac_lib in '' bsd; do
   4906   if test -z "$ac_lib"; then
   4907     ac_res="none required"
   4908   else
   4909     ac_res=-l$ac_lib
   4910     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   4911   fi
   4912   if ac_fn_c_try_link "$LINENO"; then :
   4913   ac_cv_search_flock=$ac_res
   4914 fi
   4915 rm -f core conftest.err conftest.$ac_objext \
   4916     conftest$ac_exeext
   4917   if ${ac_cv_search_flock+:} false; then :
   4918   break
   4919 fi
   4920 done
   4921 if ${ac_cv_search_flock+:} false; then :
   4922 
   4923 else
   4924   ac_cv_search_flock=no
   4925 fi
   4926 rm conftest.$ac_ext
   4927 LIBS=$ac_func_search_save_LIBS
   4928 fi
   4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_flock" >&5
   4930 $as_echo "$ac_cv_search_flock" >&6; }
   4931 ac_res=$ac_cv_search_flock
   4932 if test "$ac_res" != no; then :
   4933   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   4934 
   4935 fi
   4936 
   4937 
   4938 # Check for functions that are replaced or omitted.
   4939 for ac_func in  \
   4940 	dirfd \
   4941 	flock \
   4942 	prctl \
   4943 	sysconf \
   4944 
   4945 do :
   4946   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   4947 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   4948 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   4949   cat >>confdefs.h <<_ACEOF
   4950 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   4951 _ACEOF
   4952 
   4953 fi
   4954 done
   4955 
   4956 
   4957 # Check for functions with a compatibility implementation.
   4958 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
   4959 if test "x$ac_cv_func_asprintf" = xyes; then :
   4960   $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
   4961 
   4962 else
   4963   case " $LIBOBJS " in
   4964   *" asprintf.$ac_objext "* ) ;;
   4965   *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
   4966  ;;
   4967 esac
   4968 
   4969 fi
   4970 
   4971 ac_fn_c_check_func "$LINENO" "cfmakeraw" "ac_cv_func_cfmakeraw"
   4972 if test "x$ac_cv_func_cfmakeraw" = xyes; then :
   4973   $as_echo "#define HAVE_CFMAKERAW 1" >>confdefs.h
   4974 
   4975 else
   4976   case " $LIBOBJS " in
   4977   *" cfmakeraw.$ac_objext "* ) ;;
   4978   *) LIBOBJS="$LIBOBJS cfmakeraw.$ac_objext"
   4979  ;;
   4980 esac
   4981 
   4982 fi
   4983 
   4984 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
   4985 if test "x$ac_cv_func_closefrom" = xyes; then :
   4986   $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
   4987 
   4988 else
   4989   case " $LIBOBJS " in
   4990   *" closefrom.$ac_objext "* ) ;;
   4991   *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
   4992  ;;
   4993 esac
   4994 
   4995 fi
   4996 
   4997 ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
   4998 if test "x$ac_cv_func_explicit_bzero" = xyes; then :
   4999   $as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
   5000 
   5001 else
   5002   case " $LIBOBJS " in
   5003   *" explicit_bzero.$ac_objext "* ) ;;
   5004   *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
   5005  ;;
   5006 esac
   5007 
   5008 fi
   5009 
   5010 ac_fn_c_check_func "$LINENO" "fgetln" "ac_cv_func_fgetln"
   5011 if test "x$ac_cv_func_fgetln" = xyes; then :
   5012   $as_echo "#define HAVE_FGETLN 1" >>confdefs.h
   5013 
   5014 else
   5015   case " $LIBOBJS " in
   5016   *" fgetln.$ac_objext "* ) ;;
   5017   *) LIBOBJS="$LIBOBJS fgetln.$ac_objext"
   5018  ;;
   5019 esac
   5020 
   5021 fi
   5022 
   5023 ac_fn_c_check_func "$LINENO" "freezero" "ac_cv_func_freezero"
   5024 if test "x$ac_cv_func_freezero" = xyes; then :
   5025   $as_echo "#define HAVE_FREEZERO 1" >>confdefs.h
   5026 
   5027 else
   5028   case " $LIBOBJS " in
   5029   *" freezero.$ac_objext "* ) ;;
   5030   *) LIBOBJS="$LIBOBJS freezero.$ac_objext"
   5031  ;;
   5032 esac
   5033 
   5034 fi
   5035 
   5036 ac_fn_c_check_func "$LINENO" "getdtablecount" "ac_cv_func_getdtablecount"
   5037 if test "x$ac_cv_func_getdtablecount" = xyes; then :
   5038   $as_echo "#define HAVE_GETDTABLECOUNT 1" >>confdefs.h
   5039 
   5040 else
   5041   case " $LIBOBJS " in
   5042   *" getdtablecount.$ac_objext "* ) ;;
   5043   *) LIBOBJS="$LIBOBJS getdtablecount.$ac_objext"
   5044  ;;
   5045 esac
   5046 
   5047 fi
   5048 
   5049 ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
   5050 if test "x$ac_cv_func_getprogname" = xyes; then :
   5051   $as_echo "#define HAVE_GETPROGNAME 1" >>confdefs.h
   5052 
   5053 else
   5054   case " $LIBOBJS " in
   5055   *" getprogname.$ac_objext "* ) ;;
   5056   *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
   5057  ;;
   5058 esac
   5059 
   5060 fi
   5061 
   5062 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
   5063 if test "x$ac_cv_func_memmem" = xyes; then :
   5064   $as_echo "#define HAVE_MEMMEM 1" >>confdefs.h
   5065 
   5066 else
   5067   case " $LIBOBJS " in
   5068   *" memmem.$ac_objext "* ) ;;
   5069   *) LIBOBJS="$LIBOBJS memmem.$ac_objext"
   5070  ;;
   5071 esac
   5072 
   5073 fi
   5074 
   5075 ac_fn_c_check_func "$LINENO" "recallocarray" "ac_cv_func_recallocarray"
   5076 if test "x$ac_cv_func_recallocarray" = xyes; then :
   5077   $as_echo "#define HAVE_RECALLOCARRAY 1" >>confdefs.h
   5078 
   5079 else
   5080   case " $LIBOBJS " in
   5081   *" recallocarray.$ac_objext "* ) ;;
   5082   *) LIBOBJS="$LIBOBJS recallocarray.$ac_objext"
   5083  ;;
   5084 esac
   5085 
   5086 fi
   5087 
   5088 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
   5089 if test "x$ac_cv_func_reallocarray" = xyes; then :
   5090   $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
   5091 
   5092 else
   5093   case " $LIBOBJS " in
   5094   *" reallocarray.$ac_objext "* ) ;;
   5095   *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
   5096  ;;
   5097 esac
   5098 
   5099 fi
   5100 
   5101 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
   5102 if test "x$ac_cv_func_setenv" = xyes; then :
   5103   $as_echo "#define HAVE_SETENV 1" >>confdefs.h
   5104 
   5105 else
   5106   case " $LIBOBJS " in
   5107   *" setenv.$ac_objext "* ) ;;
   5108   *) LIBOBJS="$LIBOBJS setenv.$ac_objext"
   5109  ;;
   5110 esac
   5111 
   5112 fi
   5113 
   5114 ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle"
   5115 if test "x$ac_cv_func_setproctitle" = xyes; then :
   5116   $as_echo "#define HAVE_SETPROCTITLE 1" >>confdefs.h
   5117 
   5118 else
   5119   case " $LIBOBJS " in
   5120   *" setproctitle.$ac_objext "* ) ;;
   5121   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
   5122  ;;
   5123 esac
   5124 
   5125 fi
   5126 
   5127 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
   5128 if test "x$ac_cv_func_strcasestr" = xyes; then :
   5129   $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
   5130 
   5131 else
   5132   case " $LIBOBJS " in
   5133   *" strcasestr.$ac_objext "* ) ;;
   5134   *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
   5135  ;;
   5136 esac
   5137 
   5138 fi
   5139 
   5140 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
   5141 if test "x$ac_cv_func_strlcat" = xyes; then :
   5142   $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
   5143 
   5144 else
   5145   case " $LIBOBJS " in
   5146   *" strlcat.$ac_objext "* ) ;;
   5147   *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
   5148  ;;
   5149 esac
   5150 
   5151 fi
   5152 
   5153 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
   5154 if test "x$ac_cv_func_strlcpy" = xyes; then :
   5155   $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
   5156 
   5157 else
   5158   case " $LIBOBJS " in
   5159   *" strlcpy.$ac_objext "* ) ;;
   5160   *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
   5161  ;;
   5162 esac
   5163 
   5164 fi
   5165 
   5166 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
   5167 if test "x$ac_cv_func_strndup" = xyes; then :
   5168   $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
   5169 
   5170 else
   5171   case " $LIBOBJS " in
   5172   *" strndup.$ac_objext "* ) ;;
   5173   *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
   5174  ;;
   5175 esac
   5176 
   5177 fi
   5178 
   5179 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
   5180 if test "x$ac_cv_func_strsep" = xyes; then :
   5181   $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
   5182 
   5183 else
   5184   case " $LIBOBJS " in
   5185   *" strsep.$ac_objext "* ) ;;
   5186   *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
   5187  ;;
   5188 esac
   5189 
   5190 fi
   5191 
   5192 ac_fn_c_check_func "$LINENO" "strtonum" "ac_cv_func_strtonum"
   5193 if test "x$ac_cv_func_strtonum" = xyes; then :
   5194   $as_echo "#define HAVE_STRTONUM 1" >>confdefs.h
   5195 
   5196 else
   5197   case " $LIBOBJS " in
   5198   *" strtonum.$ac_objext "* ) ;;
   5199   *) LIBOBJS="$LIBOBJS strtonum.$ac_objext"
   5200  ;;
   5201 esac
   5202 
   5203 fi
   5204 
   5205 
   5206  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
   5207 $as_echo_n "checking for working strnlen... " >&6; }
   5208 if ${ac_cv_func_strnlen_working+:} false; then :
   5209   $as_echo_n "(cached) " >&6
   5210 else
   5211   if test "$cross_compiling" = yes; then :
   5212   # Guess no on AIX systems, yes otherwise.
   5213 		case "$host_os" in
   5214 		  aix*) ac_cv_func_strnlen_working=no;;
   5215 		  *)    ac_cv_func_strnlen_working=yes;;
   5216 		esac
   5217 else
   5218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5219 /* end confdefs.h.  */
   5220 $ac_includes_default
   5221 int
   5222 main ()
   5223 {
   5224 
   5225 #define S "foobar"
   5226 #define S_LEN (sizeof S - 1)
   5227 
   5228   /* At least one implementation is buggy: that of AIX 4.3 would
   5229      give strnlen (S, 1) == 3.  */
   5230 
   5231   int i;
   5232   for (i = 0; i < S_LEN + 1; ++i)
   5233     {
   5234       int expected = i <= S_LEN ? i : S_LEN;
   5235       if (strnlen (S, i) != expected)
   5236 	return 1;
   5237     }
   5238   return 0;
   5239 
   5240   ;
   5241   return 0;
   5242 }
   5243 _ACEOF
   5244 if ac_fn_c_try_run "$LINENO"; then :
   5245   ac_cv_func_strnlen_working=yes
   5246 else
   5247   ac_cv_func_strnlen_working=no
   5248 fi
   5249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   5250   conftest.$ac_objext conftest.beam conftest.$ac_ext
   5251 fi
   5252 
   5253 fi
   5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
   5255 $as_echo "$ac_cv_func_strnlen_working" >&6; }
   5256 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
   5257   *" strnlen.$ac_objext "* ) ;;
   5258   *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
   5259  ;;
   5260 esac
   5261 
   5262 
   5263 
   5264 # Look for clock_gettime. Must come before event_init.
   5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
   5266 $as_echo_n "checking for library containing clock_gettime... " >&6; }
   5267 if ${ac_cv_search_clock_gettime+:} false; then :
   5268   $as_echo_n "(cached) " >&6
   5269 else
   5270   ac_func_search_save_LIBS=$LIBS
   5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5272 /* end confdefs.h.  */
   5273 
   5274 /* Override any GCC internal prototype to avoid an error.
   5275    Use char because int might match the return type of a GCC
   5276    builtin and then its argument prototype would still apply.  */
   5277 #ifdef __cplusplus
   5278 extern "C"
   5279 #endif
   5280 char clock_gettime ();
   5281 int
   5282 main ()
   5283 {
   5284 return clock_gettime ();
   5285   ;
   5286   return 0;
   5287 }
   5288 _ACEOF
   5289 for ac_lib in '' rt; do
   5290   if test -z "$ac_lib"; then
   5291     ac_res="none required"
   5292   else
   5293     ac_res=-l$ac_lib
   5294     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   5295   fi
   5296   if ac_fn_c_try_link "$LINENO"; then :
   5297   ac_cv_search_clock_gettime=$ac_res
   5298 fi
   5299 rm -f core conftest.err conftest.$ac_objext \
   5300     conftest$ac_exeext
   5301   if ${ac_cv_search_clock_gettime+:} false; then :
   5302   break
   5303 fi
   5304 done
   5305 if ${ac_cv_search_clock_gettime+:} false; then :
   5306 
   5307 else
   5308   ac_cv_search_clock_gettime=no
   5309 fi
   5310 rm conftest.$ac_ext
   5311 LIBS=$ac_func_search_save_LIBS
   5312 fi
   5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
   5314 $as_echo "$ac_cv_search_clock_gettime" >&6; }
   5315 ac_res=$ac_cv_search_clock_gettime
   5316 if test "$ac_res" != no; then :
   5317   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   5318 
   5319 fi
   5320 
   5321 
   5322 # Look for libevent.
   5323 
   5324 pkg_failed=no
   5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEVENT" >&5
   5326 $as_echo_n "checking for LIBEVENT... " >&6; }
   5327 
   5328 if test -n "$LIBEVENT_CFLAGS"; then
   5329     pkg_cv_LIBEVENT_CFLAGS="$LIBEVENT_CFLAGS"
   5330  elif test -n "$PKG_CONFIG"; then
   5331     if test -n "$PKG_CONFIG" && \
   5332     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libevent\""; } >&5
   5333   ($PKG_CONFIG --exists --print-errors "libevent") 2>&5
   5334   ac_status=$?
   5335   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5336   test $ac_status = 0; }; then
   5337   pkg_cv_LIBEVENT_CFLAGS=`$PKG_CONFIG --cflags "libevent" 2>/dev/null`
   5338 		      test "x$?" != "x0" && pkg_failed=yes
   5339 else
   5340   pkg_failed=yes
   5341 fi
   5342  else
   5343     pkg_failed=untried
   5344 fi
   5345 if test -n "$LIBEVENT_LIBS"; then
   5346     pkg_cv_LIBEVENT_LIBS="$LIBEVENT_LIBS"
   5347  elif test -n "$PKG_CONFIG"; then
   5348     if test -n "$PKG_CONFIG" && \
   5349     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libevent\""; } >&5
   5350   ($PKG_CONFIG --exists --print-errors "libevent") 2>&5
   5351   ac_status=$?
   5352   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5353   test $ac_status = 0; }; then
   5354   pkg_cv_LIBEVENT_LIBS=`$PKG_CONFIG --libs "libevent" 2>/dev/null`
   5355 		      test "x$?" != "x0" && pkg_failed=yes
   5356 else
   5357   pkg_failed=yes
   5358 fi
   5359  else
   5360     pkg_failed=untried
   5361 fi
   5362 
   5363 
   5364 
   5365 if test $pkg_failed = yes; then
   5366    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5367 $as_echo "no" >&6; }
   5368 
   5369 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   5370         _pkg_short_errors_supported=yes
   5371 else
   5372         _pkg_short_errors_supported=no
   5373 fi
   5374         if test $_pkg_short_errors_supported = yes; then
   5375 	        LIBEVENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libevent" 2>&1`
   5376         else
   5377 	        LIBEVENT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libevent" 2>&1`
   5378         fi
   5379 	# Put the nasty error message in config.log where it belongs
   5380 	echo "$LIBEVENT_PKG_ERRORS" >&5
   5381 
   5382 
   5383 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_init" >&5
   5384 $as_echo_n "checking for library containing event_init... " >&6; }
   5385 if ${ac_cv_search_event_init+:} false; then :
   5386   $as_echo_n "(cached) " >&6
   5387 else
   5388   ac_func_search_save_LIBS=$LIBS
   5389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5390 /* end confdefs.h.  */
   5391 
   5392 /* Override any GCC internal prototype to avoid an error.
   5393    Use char because int might match the return type of a GCC
   5394    builtin and then its argument prototype would still apply.  */
   5395 #ifdef __cplusplus
   5396 extern "C"
   5397 #endif
   5398 char event_init ();
   5399 int
   5400 main ()
   5401 {
   5402 return event_init ();
   5403   ;
   5404   return 0;
   5405 }
   5406 _ACEOF
   5407 for ac_lib in '' event event-1.4 event2; do
   5408   if test -z "$ac_lib"; then
   5409     ac_res="none required"
   5410   else
   5411     ac_res=-l$ac_lib
   5412     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   5413   fi
   5414   if ac_fn_c_try_link "$LINENO"; then :
   5415   ac_cv_search_event_init=$ac_res
   5416 fi
   5417 rm -f core conftest.err conftest.$ac_objext \
   5418     conftest$ac_exeext
   5419   if ${ac_cv_search_event_init+:} false; then :
   5420   break
   5421 fi
   5422 done
   5423 if ${ac_cv_search_event_init+:} false; then :
   5424 
   5425 else
   5426   ac_cv_search_event_init=no
   5427 fi
   5428 rm conftest.$ac_ext
   5429 LIBS=$ac_func_search_save_LIBS
   5430 fi
   5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_init" >&5
   5432 $as_echo "$ac_cv_search_event_init" >&6; }
   5433 ac_res=$ac_cv_search_event_init
   5434 if test "$ac_res" != no; then :
   5435   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   5436   found_libevent=yes
   5437 else
   5438   found_libevent=no
   5439 
   5440 fi
   5441 
   5442 
   5443 
   5444 elif test $pkg_failed = untried; then
   5445      	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5446 $as_echo "no" >&6; }
   5447 
   5448 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_init" >&5
   5449 $as_echo_n "checking for library containing event_init... " >&6; }
   5450 if ${ac_cv_search_event_init+:} false; then :
   5451   $as_echo_n "(cached) " >&6
   5452 else
   5453   ac_func_search_save_LIBS=$LIBS
   5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5455 /* end confdefs.h.  */
   5456 
   5457 /* Override any GCC internal prototype to avoid an error.
   5458    Use char because int might match the return type of a GCC
   5459    builtin and then its argument prototype would still apply.  */
   5460 #ifdef __cplusplus
   5461 extern "C"
   5462 #endif
   5463 char event_init ();
   5464 int
   5465 main ()
   5466 {
   5467 return event_init ();
   5468   ;
   5469   return 0;
   5470 }
   5471 _ACEOF
   5472 for ac_lib in '' event event-1.4 event2; do
   5473   if test -z "$ac_lib"; then
   5474     ac_res="none required"
   5475   else
   5476     ac_res=-l$ac_lib
   5477     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   5478   fi
   5479   if ac_fn_c_try_link "$LINENO"; then :
   5480   ac_cv_search_event_init=$ac_res
   5481 fi
   5482 rm -f core conftest.err conftest.$ac_objext \
   5483     conftest$ac_exeext
   5484   if ${ac_cv_search_event_init+:} false; then :
   5485   break
   5486 fi
   5487 done
   5488 if ${ac_cv_search_event_init+:} false; then :
   5489 
   5490 else
   5491   ac_cv_search_event_init=no
   5492 fi
   5493 rm conftest.$ac_ext
   5494 LIBS=$ac_func_search_save_LIBS
   5495 fi
   5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_init" >&5
   5497 $as_echo "$ac_cv_search_event_init" >&6; }
   5498 ac_res=$ac_cv_search_event_init
   5499 if test "$ac_res" != no; then :
   5500   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   5501   found_libevent=yes
   5502 else
   5503   found_libevent=no
   5504 
   5505 fi
   5506 
   5507 
   5508 
   5509 else
   5510 	LIBEVENT_CFLAGS=$pkg_cv_LIBEVENT_CFLAGS
   5511 	LIBEVENT_LIBS=$pkg_cv_LIBEVENT_LIBS
   5512         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5513 $as_echo "yes" >&6; }
   5514 
   5515 		AM_CFLAGS="$LIBEVENT_CFLAGS $AM_CFLAGS"
   5516 		CFLAGS="$AM_CFLAGS $SAVED_CFLAGS"
   5517 		LIBS="$LIBEVENT_LIBS $LIBS"
   5518 		found_libevent=yes
   5519 
   5520 fi
   5521 ac_fn_c_check_header_mongrel "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default"
   5522 if test "x$ac_cv_header_event_h" = xyes; then :
   5523 
   5524 else
   5525   found_libevent=no
   5526 
   5527 fi
   5528 
   5529 
   5530 if test "x$found_libevent" = xno; then
   5531 	as_fn_error $? "\"libevent not found\"" "$LINENO" 5
   5532 fi
   5533 
   5534 # Look for ncurses.
   5535 
   5536 pkg_failed=no
   5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBTINFO" >&5
   5538 $as_echo_n "checking for LIBTINFO... " >&6; }
   5539 
   5540 if test -n "$LIBTINFO_CFLAGS"; then
   5541     pkg_cv_LIBTINFO_CFLAGS="$LIBTINFO_CFLAGS"
   5542  elif test -n "$PKG_CONFIG"; then
   5543     if test -n "$PKG_CONFIG" && \
   5544     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tinfo\""; } >&5
   5545   ($PKG_CONFIG --exists --print-errors "tinfo") 2>&5
   5546   ac_status=$?
   5547   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5548   test $ac_status = 0; }; then
   5549   pkg_cv_LIBTINFO_CFLAGS=`$PKG_CONFIG --cflags "tinfo" 2>/dev/null`
   5550 		      test "x$?" != "x0" && pkg_failed=yes
   5551 else
   5552   pkg_failed=yes
   5553 fi
   5554  else
   5555     pkg_failed=untried
   5556 fi
   5557 if test -n "$LIBTINFO_LIBS"; then
   5558     pkg_cv_LIBTINFO_LIBS="$LIBTINFO_LIBS"
   5559  elif test -n "$PKG_CONFIG"; then
   5560     if test -n "$PKG_CONFIG" && \
   5561     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tinfo\""; } >&5
   5562   ($PKG_CONFIG --exists --print-errors "tinfo") 2>&5
   5563   ac_status=$?
   5564   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5565   test $ac_status = 0; }; then
   5566   pkg_cv_LIBTINFO_LIBS=`$PKG_CONFIG --libs "tinfo" 2>/dev/null`
   5567 		      test "x$?" != "x0" && pkg_failed=yes
   5568 else
   5569   pkg_failed=yes
   5570 fi
   5571  else
   5572     pkg_failed=untried
   5573 fi
   5574 
   5575 
   5576 
   5577 if test $pkg_failed = yes; then
   5578    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5579 $as_echo "no" >&6; }
   5580 
   5581 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   5582         _pkg_short_errors_supported=yes
   5583 else
   5584         _pkg_short_errors_supported=no
   5585 fi
   5586         if test $_pkg_short_errors_supported = yes; then
   5587 	        LIBTINFO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "tinfo" 2>&1`
   5588         else
   5589 	        LIBTINFO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "tinfo" 2>&1`
   5590         fi
   5591 	# Put the nasty error message in config.log where it belongs
   5592 	echo "$LIBTINFO_PKG_ERRORS" >&5
   5593 
   5594 	found_ncurses=no
   5595 
   5596 elif test $pkg_failed = untried; then
   5597      	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5598 $as_echo "no" >&6; }
   5599 	found_ncurses=no
   5600 
   5601 else
   5602 	LIBTINFO_CFLAGS=$pkg_cv_LIBTINFO_CFLAGS
   5603 	LIBTINFO_LIBS=$pkg_cv_LIBTINFO_LIBS
   5604         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5605 $as_echo "yes" >&6; }
   5606 	found_ncurses=yes
   5607 fi
   5608 if test "x$found_ncurses" = xno; then
   5609 
   5610 pkg_failed=no
   5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNCURSES" >&5
   5612 $as_echo_n "checking for LIBNCURSES... " >&6; }
   5613 
   5614 if test -n "$LIBNCURSES_CFLAGS"; then
   5615     pkg_cv_LIBNCURSES_CFLAGS="$LIBNCURSES_CFLAGS"
   5616  elif test -n "$PKG_CONFIG"; then
   5617     if test -n "$PKG_CONFIG" && \
   5618     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
   5619   ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
   5620   ac_status=$?
   5621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5622   test $ac_status = 0; }; then
   5623   pkg_cv_LIBNCURSES_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
   5624 		      test "x$?" != "x0" && pkg_failed=yes
   5625 else
   5626   pkg_failed=yes
   5627 fi
   5628  else
   5629     pkg_failed=untried
   5630 fi
   5631 if test -n "$LIBNCURSES_LIBS"; then
   5632     pkg_cv_LIBNCURSES_LIBS="$LIBNCURSES_LIBS"
   5633  elif test -n "$PKG_CONFIG"; then
   5634     if test -n "$PKG_CONFIG" && \
   5635     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
   5636   ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
   5637   ac_status=$?
   5638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5639   test $ac_status = 0; }; then
   5640   pkg_cv_LIBNCURSES_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
   5641 		      test "x$?" != "x0" && pkg_failed=yes
   5642 else
   5643   pkg_failed=yes
   5644 fi
   5645  else
   5646     pkg_failed=untried
   5647 fi
   5648 
   5649 
   5650 
   5651 if test $pkg_failed = yes; then
   5652    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5653 $as_echo "no" >&6; }
   5654 
   5655 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   5656         _pkg_short_errors_supported=yes
   5657 else
   5658         _pkg_short_errors_supported=no
   5659 fi
   5660         if test $_pkg_short_errors_supported = yes; then
   5661 	        LIBNCURSES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
   5662         else
   5663 	        LIBNCURSES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
   5664         fi
   5665 	# Put the nasty error message in config.log where it belongs
   5666 	echo "$LIBNCURSES_PKG_ERRORS" >&5
   5667 
   5668 	found_ncurses=no
   5669 
   5670 elif test $pkg_failed = untried; then
   5671      	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5672 $as_echo "no" >&6; }
   5673 	found_ncurses=no
   5674 
   5675 else
   5676 	LIBNCURSES_CFLAGS=$pkg_cv_LIBNCURSES_CFLAGS
   5677 	LIBNCURSES_LIBS=$pkg_cv_LIBNCURSES_LIBS
   5678         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5679 $as_echo "yes" >&6; }
   5680 	found_ncurses=yes
   5681 fi
   5682 fi
   5683 if test "x$found_ncurses" = xno; then
   5684 
   5685 pkg_failed=no
   5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNCURSES" >&5
   5687 $as_echo_n "checking for LIBNCURSES... " >&6; }
   5688 
   5689 if test -n "$LIBNCURSES_CFLAGS"; then
   5690     pkg_cv_LIBNCURSES_CFLAGS="$LIBNCURSES_CFLAGS"
   5691  elif test -n "$PKG_CONFIG"; then
   5692     if test -n "$PKG_CONFIG" && \
   5693     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
   5694   ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
   5695   ac_status=$?
   5696   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5697   test $ac_status = 0; }; then
   5698   pkg_cv_LIBNCURSES_CFLAGS=`$PKG_CONFIG --cflags "ncursesw" 2>/dev/null`
   5699 		      test "x$?" != "x0" && pkg_failed=yes
   5700 else
   5701   pkg_failed=yes
   5702 fi
   5703  else
   5704     pkg_failed=untried
   5705 fi
   5706 if test -n "$LIBNCURSES_LIBS"; then
   5707     pkg_cv_LIBNCURSES_LIBS="$LIBNCURSES_LIBS"
   5708  elif test -n "$PKG_CONFIG"; then
   5709     if test -n "$PKG_CONFIG" && \
   5710     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
   5711   ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
   5712   ac_status=$?
   5713   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5714   test $ac_status = 0; }; then
   5715   pkg_cv_LIBNCURSES_LIBS=`$PKG_CONFIG --libs "ncursesw" 2>/dev/null`
   5716 		      test "x$?" != "x0" && pkg_failed=yes
   5717 else
   5718   pkg_failed=yes
   5719 fi
   5720  else
   5721     pkg_failed=untried
   5722 fi
   5723 
   5724 
   5725 
   5726 if test $pkg_failed = yes; then
   5727    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5728 $as_echo "no" >&6; }
   5729 
   5730 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   5731         _pkg_short_errors_supported=yes
   5732 else
   5733         _pkg_short_errors_supported=no
   5734 fi
   5735         if test $_pkg_short_errors_supported = yes; then
   5736 	        LIBNCURSES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncursesw" 2>&1`
   5737         else
   5738 	        LIBNCURSES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncursesw" 2>&1`
   5739         fi
   5740 	# Put the nasty error message in config.log where it belongs
   5741 	echo "$LIBNCURSES_PKG_ERRORS" >&5
   5742 
   5743 	found_ncurses=no
   5744 
   5745 elif test $pkg_failed = untried; then
   5746      	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5747 $as_echo "no" >&6; }
   5748 	found_ncurses=no
   5749 
   5750 else
   5751 	LIBNCURSES_CFLAGS=$pkg_cv_LIBNCURSES_CFLAGS
   5752 	LIBNCURSES_LIBS=$pkg_cv_LIBNCURSES_LIBS
   5753         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5754 $as_echo "yes" >&6; }
   5755 	found_ncurses=yes
   5756 fi
   5757 fi
   5758 if test "x$found_ncurses" = xyes; then
   5759 	AM_CFLAGS="$LIBNCURSES_CFLAGS $LIBTINFO_CFLAGS $AM_CFLAGS"
   5760 	CFLAGS="$LIBNCURSES_CFLAGS $LIBTINFO_CFLAGS $CFLAGS"
   5761 	LIBS="$LIBNCURSES_LIBS $LIBTINFO_LIBS $LIBS"
   5762 else
   5763 	# pkg-config didn't work, try ncurses.
   5764 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -ltinfo" >&5
   5765 $as_echo_n "checking for setupterm in -ltinfo... " >&6; }
   5766 if ${ac_cv_lib_tinfo_setupterm+:} false; then :
   5767   $as_echo_n "(cached) " >&6
   5768 else
   5769   ac_check_lib_save_LIBS=$LIBS
   5770 LIBS="-ltinfo  $LIBS"
   5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5772 /* end confdefs.h.  */
   5773 
   5774 /* Override any GCC internal prototype to avoid an error.
   5775    Use char because int might match the return type of a GCC
   5776    builtin and then its argument prototype would still apply.  */
   5777 #ifdef __cplusplus
   5778 extern "C"
   5779 #endif
   5780 char setupterm ();
   5781 int
   5782 main ()
   5783 {
   5784 return setupterm ();
   5785   ;
   5786   return 0;
   5787 }
   5788 _ACEOF
   5789 if ac_fn_c_try_link "$LINENO"; then :
   5790   ac_cv_lib_tinfo_setupterm=yes
   5791 else
   5792   ac_cv_lib_tinfo_setupterm=no
   5793 fi
   5794 rm -f core conftest.err conftest.$ac_objext \
   5795     conftest$ac_exeext conftest.$ac_ext
   5796 LIBS=$ac_check_lib_save_LIBS
   5797 fi
   5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_setupterm" >&5
   5799 $as_echo "$ac_cv_lib_tinfo_setupterm" >&6; }
   5800 if test "x$ac_cv_lib_tinfo_setupterm" = xyes; then :
   5801   found_ncurses=yes
   5802 else
   5803   found_ncurses=no
   5804 
   5805 fi
   5806 
   5807 	if test "x$found_ncurses" = xno; then
   5808 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lncurses" >&5
   5809 $as_echo_n "checking for setupterm in -lncurses... " >&6; }
   5810 if ${ac_cv_lib_ncurses_setupterm+:} false; then :
   5811   $as_echo_n "(cached) " >&6
   5812 else
   5813   ac_check_lib_save_LIBS=$LIBS
   5814 LIBS="-lncurses  $LIBS"
   5815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5816 /* end confdefs.h.  */
   5817 
   5818 /* Override any GCC internal prototype to avoid an error.
   5819    Use char because int might match the return type of a GCC
   5820    builtin and then its argument prototype would still apply.  */
   5821 #ifdef __cplusplus
   5822 extern "C"
   5823 #endif
   5824 char setupterm ();
   5825 int
   5826 main ()
   5827 {
   5828 return setupterm ();
   5829   ;
   5830   return 0;
   5831 }
   5832 _ACEOF
   5833 if ac_fn_c_try_link "$LINENO"; then :
   5834   ac_cv_lib_ncurses_setupterm=yes
   5835 else
   5836   ac_cv_lib_ncurses_setupterm=no
   5837 fi
   5838 rm -f core conftest.err conftest.$ac_objext \
   5839     conftest$ac_exeext conftest.$ac_ext
   5840 LIBS=$ac_check_lib_save_LIBS
   5841 fi
   5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_setupterm" >&5
   5843 $as_echo "$ac_cv_lib_ncurses_setupterm" >&6; }
   5844 if test "x$ac_cv_lib_ncurses_setupterm" = xyes; then :
   5845   found_ncurses=yes
   5846 else
   5847   found_ncurses=no
   5848 
   5849 fi
   5850 
   5851 	fi
   5852 	if test "x$found_ncurses" = xyes; then
   5853 		ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
   5854 if test "x$ac_cv_header_ncurses_h" = xyes; then :
   5855   LIBS="$LIBS -lncurses"
   5856 else
   5857   found_ncurses=no
   5858 fi
   5859 
   5860 
   5861 	fi
   5862 fi
   5863 if test "x$found_ncurses" = xyes; then
   5864 	$as_echo "#define HAVE_NCURSES_H 1" >>confdefs.h
   5865 
   5866 else
   5867 	# No ncurses, try curses.
   5868 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lcurses" >&5
   5869 $as_echo_n "checking for setupterm in -lcurses... " >&6; }
   5870 if ${ac_cv_lib_curses_setupterm+:} false; then :
   5871   $as_echo_n "(cached) " >&6
   5872 else
   5873   ac_check_lib_save_LIBS=$LIBS
   5874 LIBS="-lcurses  $LIBS"
   5875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5876 /* end confdefs.h.  */
   5877 
   5878 /* Override any GCC internal prototype to avoid an error.
   5879    Use char because int might match the return type of a GCC
   5880    builtin and then its argument prototype would still apply.  */
   5881 #ifdef __cplusplus
   5882 extern "C"
   5883 #endif
   5884 char setupterm ();
   5885 int
   5886 main ()
   5887 {
   5888 return setupterm ();
   5889   ;
   5890   return 0;
   5891 }
   5892 _ACEOF
   5893 if ac_fn_c_try_link "$LINENO"; then :
   5894   ac_cv_lib_curses_setupterm=yes
   5895 else
   5896   ac_cv_lib_curses_setupterm=no
   5897 fi
   5898 rm -f core conftest.err conftest.$ac_objext \
   5899     conftest$ac_exeext conftest.$ac_ext
   5900 LIBS=$ac_check_lib_save_LIBS
   5901 fi
   5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_setupterm" >&5
   5903 $as_echo "$ac_cv_lib_curses_setupterm" >&6; }
   5904 if test "x$ac_cv_lib_curses_setupterm" = xyes; then :
   5905   found_curses=yes
   5906 else
   5907   found_curses=no
   5908 
   5909 fi
   5910 
   5911 	ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
   5912 if test "x$ac_cv_header_curses_h" = xyes; then :
   5913 
   5914 else
   5915   found_curses=no
   5916 fi
   5917 
   5918 
   5919 	if test "x$found_curses" = xyes; then
   5920 		LIBS="$LIBS -lcurses"
   5921 		$as_echo "#define HAVE_CURSES_H 1" >>confdefs.h
   5922 
   5923 	else
   5924 		as_fn_error $? "\"curses not found\"" "$LINENO" 5
   5925 	fi
   5926 fi
   5927 
   5928 # Look for utempter.
   5929 # Check whether --enable-utempter was given.
   5930 if test "${enable_utempter+set}" = set; then :
   5931   enableval=$enable_utempter;
   5932 fi
   5933 
   5934 if test "x$enable_utempter" = xyes; then
   5935 	ac_fn_c_check_header_mongrel "$LINENO" "utempter.h" "ac_cv_header_utempter_h" "$ac_includes_default"
   5936 if test "x$ac_cv_header_utempter_h" = xyes; then :
   5937   enable_utempter=yes
   5938 else
   5939   enable_utempter=no
   5940 fi
   5941 
   5942 
   5943 	if test "x$enable_utempter" = xyes; then
   5944 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing utempter_add_record" >&5
   5945 $as_echo_n "checking for library containing utempter_add_record... " >&6; }
   5946 if ${ac_cv_search_utempter_add_record+:} false; then :
   5947   $as_echo_n "(cached) " >&6
   5948 else
   5949   ac_func_search_save_LIBS=$LIBS
   5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5951 /* end confdefs.h.  */
   5952 
   5953 /* Override any GCC internal prototype to avoid an error.
   5954    Use char because int might match the return type of a GCC
   5955    builtin and then its argument prototype would still apply.  */
   5956 #ifdef __cplusplus
   5957 extern "C"
   5958 #endif
   5959 char utempter_add_record ();
   5960 int
   5961 main ()
   5962 {
   5963 return utempter_add_record ();
   5964   ;
   5965   return 0;
   5966 }
   5967 _ACEOF
   5968 for ac_lib in '' utempter; do
   5969   if test -z "$ac_lib"; then
   5970     ac_res="none required"
   5971   else
   5972     ac_res=-l$ac_lib
   5973     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   5974   fi
   5975   if ac_fn_c_try_link "$LINENO"; then :
   5976   ac_cv_search_utempter_add_record=$ac_res
   5977 fi
   5978 rm -f core conftest.err conftest.$ac_objext \
   5979     conftest$ac_exeext
   5980   if ${ac_cv_search_utempter_add_record+:} false; then :
   5981   break
   5982 fi
   5983 done
   5984 if ${ac_cv_search_utempter_add_record+:} false; then :
   5985 
   5986 else
   5987   ac_cv_search_utempter_add_record=no
   5988 fi
   5989 rm conftest.$ac_ext
   5990 LIBS=$ac_func_search_save_LIBS
   5991 fi
   5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_utempter_add_record" >&5
   5993 $as_echo "$ac_cv_search_utempter_add_record" >&6; }
   5994 ac_res=$ac_cv_search_utempter_add_record
   5995 if test "$ac_res" != no; then :
   5996   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   5997   enable_utempter=yes
   5998 else
   5999   enable_utempter=no
   6000 
   6001 fi
   6002 
   6003 	fi
   6004 	if test "x$enable_utempter" = xyes; then
   6005 		$as_echo "#define HAVE_UTEMPTER 1" >>confdefs.h
   6006 
   6007 	else
   6008 		as_fn_error $? "\"utempter not found\"" "$LINENO" 5
   6009 	fi
   6010 fi
   6011 
   6012 # Look for utf8proc.
   6013 # Check whether --enable-utf8proc was given.
   6014 if test "${enable_utf8proc+set}" = set; then :
   6015   enableval=$enable_utf8proc;
   6016 fi
   6017 
   6018 if test "x$enable_utf8proc" = xyes; then
   6019 	ac_fn_c_check_header_mongrel "$LINENO" "utf8proc.h" "ac_cv_header_utf8proc_h" "$ac_includes_default"
   6020 if test "x$ac_cv_header_utf8proc_h" = xyes; then :
   6021   enable_utf8proc=yes
   6022 else
   6023   enable_utf8proc=no
   6024 fi
   6025 
   6026 
   6027 	if test "x$enable_utf8proc" = xyes; then
   6028 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing utf8proc_charwidth" >&5
   6029 $as_echo_n "checking for library containing utf8proc_charwidth... " >&6; }
   6030 if ${ac_cv_search_utf8proc_charwidth+:} false; then :
   6031   $as_echo_n "(cached) " >&6
   6032 else
   6033   ac_func_search_save_LIBS=$LIBS
   6034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6035 /* end confdefs.h.  */
   6036 
   6037 /* Override any GCC internal prototype to avoid an error.
   6038    Use char because int might match the return type of a GCC
   6039    builtin and then its argument prototype would still apply.  */
   6040 #ifdef __cplusplus
   6041 extern "C"
   6042 #endif
   6043 char utf8proc_charwidth ();
   6044 int
   6045 main ()
   6046 {
   6047 return utf8proc_charwidth ();
   6048   ;
   6049   return 0;
   6050 }
   6051 _ACEOF
   6052 for ac_lib in '' utf8proc; do
   6053   if test -z "$ac_lib"; then
   6054     ac_res="none required"
   6055   else
   6056     ac_res=-l$ac_lib
   6057     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   6058   fi
   6059   if ac_fn_c_try_link "$LINENO"; then :
   6060   ac_cv_search_utf8proc_charwidth=$ac_res
   6061 fi
   6062 rm -f core conftest.err conftest.$ac_objext \
   6063     conftest$ac_exeext
   6064   if ${ac_cv_search_utf8proc_charwidth+:} false; then :
   6065   break
   6066 fi
   6067 done
   6068 if ${ac_cv_search_utf8proc_charwidth+:} false; then :
   6069 
   6070 else
   6071   ac_cv_search_utf8proc_charwidth=no
   6072 fi
   6073 rm conftest.$ac_ext
   6074 LIBS=$ac_func_search_save_LIBS
   6075 fi
   6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_utf8proc_charwidth" >&5
   6077 $as_echo "$ac_cv_search_utf8proc_charwidth" >&6; }
   6078 ac_res=$ac_cv_search_utf8proc_charwidth
   6079 if test "$ac_res" != no; then :
   6080   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   6081   enable_utf8proc=yes
   6082 else
   6083   enable_utf8proc=no
   6084 
   6085 fi
   6086 
   6087 	fi
   6088 	if test "x$enable_utf8proc" = xyes; then
   6089 		$as_echo "#define HAVE_UTF8PROC 1" >>confdefs.h
   6090 
   6091 	else
   6092 		as_fn_error $? "\"utf8proc not found\"" "$LINENO" 5
   6093 	fi
   6094 fi
   6095  if test "x$enable_utf8proc" = xyes; then
   6096   HAVE_UTF8PROC_TRUE=
   6097   HAVE_UTF8PROC_FALSE='#'
   6098 else
   6099   HAVE_UTF8PROC_TRUE='#'
   6100   HAVE_UTF8PROC_FALSE=
   6101 fi
   6102 
   6103 
   6104 # Check for b64_ntop. If we have b64_ntop, we assume b64_pton as well.
   6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for b64_ntop" >&5
   6106 $as_echo_n "checking for b64_ntop... " >&6; }
   6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6108 /* end confdefs.h.  */
   6109 
   6110 		#include <sys/types.h>
   6111 		#include <netinet/in.h>
   6112 		#include <resolv.h>
   6113 
   6114 int
   6115 main ()
   6116 {
   6117 b64_ntop(NULL, 0, NULL, 0);
   6118   ;
   6119   return 0;
   6120 }
   6121 _ACEOF
   6122 if ac_fn_c_try_link "$LINENO"; then :
   6123   found_b64_ntop=yes
   6124 else
   6125   found_b64_ntop=no
   6126 
   6127 fi
   6128 rm -f core conftest.err conftest.$ac_objext \
   6129     conftest$ac_exeext conftest.$ac_ext
   6130 if test "x$found_b64_ntop" = xno; then
   6131 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6132 $as_echo "no" >&6; }
   6133 
   6134 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for b64_ntop with -lresolv" >&5
   6135 $as_echo_n "checking for b64_ntop with -lresolv... " >&6; }
   6136 	LIBS="$LIBS -lresolv"
   6137 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6138 /* end confdefs.h.  */
   6139 
   6140 			#include <sys/types.h>
   6141 			#include <netinet/in.h>
   6142 			#include <resolv.h>
   6143 
   6144 int
   6145 main ()
   6146 {
   6147 b64_ntop(NULL, 0, NULL, 0);
   6148   ;
   6149   return 0;
   6150 }
   6151 _ACEOF
   6152 if ac_fn_c_try_link "$LINENO"; then :
   6153   found_b64_ntop=yes
   6154 else
   6155   found_b64_ntop=no
   6156 
   6157 fi
   6158 rm -f core conftest.err conftest.$ac_objext \
   6159     conftest$ac_exeext conftest.$ac_ext
   6160 	if test "x$found_b64_ntop" = xno; then
   6161 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6162 $as_echo "no" >&6; }
   6163 	fi
   6164 fi
   6165 if test "x$found_b64_ntop" = xyes; then
   6166 	$as_echo "#define HAVE_B64_NTOP 1" >>confdefs.h
   6167 
   6168 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6169 $as_echo "yes" >&6; }
   6170 else
   6171 	case " $LIBOBJS " in
   6172   *" base64.$ac_objext "* ) ;;
   6173   *) LIBOBJS="$LIBOBJS base64.$ac_objext"
   6174  ;;
   6175 esac
   6176 
   6177 fi
   6178 
   6179 # Look for networking libraries.
   6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
   6181 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
   6182 if ${ac_cv_search_inet_ntoa+:} false; then :
   6183   $as_echo_n "(cached) " >&6
   6184 else
   6185   ac_func_search_save_LIBS=$LIBS
   6186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6187 /* end confdefs.h.  */
   6188 
   6189 /* Override any GCC internal prototype to avoid an error.
   6190    Use char because int might match the return type of a GCC
   6191    builtin and then its argument prototype would still apply.  */
   6192 #ifdef __cplusplus
   6193 extern "C"
   6194 #endif
   6195 char inet_ntoa ();
   6196 int
   6197 main ()
   6198 {
   6199 return inet_ntoa ();
   6200   ;
   6201   return 0;
   6202 }
   6203 _ACEOF
   6204 for ac_lib in '' nsl; do
   6205   if test -z "$ac_lib"; then
   6206     ac_res="none required"
   6207   else
   6208     ac_res=-l$ac_lib
   6209     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   6210   fi
   6211   if ac_fn_c_try_link "$LINENO"; then :
   6212   ac_cv_search_inet_ntoa=$ac_res
   6213 fi
   6214 rm -f core conftest.err conftest.$ac_objext \
   6215     conftest$ac_exeext
   6216   if ${ac_cv_search_inet_ntoa+:} false; then :
   6217   break
   6218 fi
   6219 done
   6220 if ${ac_cv_search_inet_ntoa+:} false; then :
   6221 
   6222 else
   6223   ac_cv_search_inet_ntoa=no
   6224 fi
   6225 rm conftest.$ac_ext
   6226 LIBS=$ac_func_search_save_LIBS
   6227 fi
   6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
   6229 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
   6230 ac_res=$ac_cv_search_inet_ntoa
   6231 if test "$ac_res" != no; then :
   6232   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   6233 
   6234 fi
   6235 
   6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
   6237 $as_echo_n "checking for library containing socket... " >&6; }
   6238 if ${ac_cv_search_socket+:} false; then :
   6239   $as_echo_n "(cached) " >&6
   6240 else
   6241   ac_func_search_save_LIBS=$LIBS
   6242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6243 /* end confdefs.h.  */
   6244 
   6245 /* Override any GCC internal prototype to avoid an error.
   6246    Use char because int might match the return type of a GCC
   6247    builtin and then its argument prototype would still apply.  */
   6248 #ifdef __cplusplus
   6249 extern "C"
   6250 #endif
   6251 char socket ();
   6252 int
   6253 main ()
   6254 {
   6255 return socket ();
   6256   ;
   6257   return 0;
   6258 }
   6259 _ACEOF
   6260 for ac_lib in '' socket; do
   6261   if test -z "$ac_lib"; then
   6262     ac_res="none required"
   6263   else
   6264     ac_res=-l$ac_lib
   6265     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   6266   fi
   6267   if ac_fn_c_try_link "$LINENO"; then :
   6268   ac_cv_search_socket=$ac_res
   6269 fi
   6270 rm -f core conftest.err conftest.$ac_objext \
   6271     conftest$ac_exeext
   6272   if ${ac_cv_search_socket+:} false; then :
   6273   break
   6274 fi
   6275 done
   6276 if ${ac_cv_search_socket+:} false; then :
   6277 
   6278 else
   6279   ac_cv_search_socket=no
   6280 fi
   6281 rm conftest.$ac_ext
   6282 LIBS=$ac_func_search_save_LIBS
   6283 fi
   6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
   6285 $as_echo "$ac_cv_search_socket" >&6; }
   6286 ac_res=$ac_cv_search_socket
   6287 if test "$ac_res" != no; then :
   6288   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   6289 
   6290 fi
   6291 
   6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
   6293 $as_echo_n "checking for socket in -lxnet... " >&6; }
   6294 if ${ac_cv_lib_xnet_socket+:} false; then :
   6295   $as_echo_n "(cached) " >&6
   6296 else
   6297   ac_check_lib_save_LIBS=$LIBS
   6298 LIBS="-lxnet  $LIBS"
   6299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6300 /* end confdefs.h.  */
   6301 
   6302 /* Override any GCC internal prototype to avoid an error.
   6303    Use char because int might match the return type of a GCC
   6304    builtin and then its argument prototype would still apply.  */
   6305 #ifdef __cplusplus
   6306 extern "C"
   6307 #endif
   6308 char socket ();
   6309 int
   6310 main ()
   6311 {
   6312 return socket ();
   6313   ;
   6314   return 0;
   6315 }
   6316 _ACEOF
   6317 if ac_fn_c_try_link "$LINENO"; then :
   6318   ac_cv_lib_xnet_socket=yes
   6319 else
   6320   ac_cv_lib_xnet_socket=no
   6321 fi
   6322 rm -f core conftest.err conftest.$ac_objext \
   6323     conftest$ac_exeext conftest.$ac_ext
   6324 LIBS=$ac_check_lib_save_LIBS
   6325 fi
   6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
   6327 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
   6328 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
   6329   cat >>confdefs.h <<_ACEOF
   6330 #define HAVE_LIBXNET 1
   6331 _ACEOF
   6332 
   6333   LIBS="-lxnet $LIBS"
   6334 
   6335 fi
   6336 
   6337 
   6338 # Check for CMSG_DATA. Some platforms require _XOPEN_SOURCE_EXTENDED (for
   6339 # example see xopen_networking(7) on HP-UX).
   6340 XOPEN_DEFINES=
   6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMSG_DATA" >&5
   6342 $as_echo_n "checking for CMSG_DATA... " >&6; }
   6343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6344 /* end confdefs.h.  */
   6345 
   6346 		#include <sys/socket.h>
   6347 		#ifdef CMSG_DATA
   6348 		yes
   6349 		#endif
   6350 
   6351 _ACEOF
   6352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6353   $EGREP "yes" >/dev/null 2>&1; then :
   6354   found_cmsg_data=yes
   6355 else
   6356   found_cmsg_data=no
   6357 
   6358 fi
   6359 rm -f conftest*
   6360 
   6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_cmsg_data" >&5
   6362 $as_echo "$found_cmsg_data" >&6; }
   6363 if test "x$found_cmsg_data" = xno; then
   6364 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if CMSG_DATA needs _XOPEN_SOURCE_EXTENDED" >&5
   6365 $as_echo_n "checking if CMSG_DATA needs _XOPEN_SOURCE_EXTENDED... " >&6; }
   6366 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6367 /* end confdefs.h.  */
   6368 
   6369 			#define _XOPEN_SOURCE 1
   6370 			#define _XOPEN_SOURCE_EXTENDED 1
   6371 			#include <sys/socket.h>
   6372 			#ifdef CMSG_DATA
   6373 			yes
   6374 			#endif
   6375 
   6376 _ACEOF
   6377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6378   $EGREP "yes" >/dev/null 2>&1; then :
   6379   found_cmsg_data=yes
   6380 else
   6381   found_cmsg_data=no
   6382 
   6383 fi
   6384 rm -f conftest*
   6385 
   6386 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_cmsg_data" >&5
   6387 $as_echo "$found_cmsg_data" >&6; }
   6388 	if test "x$found_cmsg_data" = xyes; then
   6389 		XOPEN_DEFINES="-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED"
   6390 	else
   6391 		as_fn_error $? "\"CMSG_DATA not found\"" "$LINENO" 5
   6392 	fi
   6393 fi
   6394 
   6395 
   6396 # Look for err and friends in err.h.
   6397 ac_fn_c_check_func "$LINENO" "err" "ac_cv_func_err"
   6398 if test "x$ac_cv_func_err" = xyes; then :
   6399   found_err_h=yes
   6400 else
   6401   found_err_h=no
   6402 fi
   6403 
   6404 ac_fn_c_check_func "$LINENO" "errx" "ac_cv_func_errx"
   6405 if test "x$ac_cv_func_errx" = xyes; then :
   6406 
   6407 else
   6408   found_err_h=no
   6409 fi
   6410 
   6411 ac_fn_c_check_func "$LINENO" "warn" "ac_cv_func_warn"
   6412 if test "x$ac_cv_func_warn" = xyes; then :
   6413 
   6414 else
   6415   found_err_h=no
   6416 fi
   6417 
   6418 ac_fn_c_check_func "$LINENO" "warnx" "ac_cv_func_warnx"
   6419 if test "x$ac_cv_func_warnx" = xyes; then :
   6420 
   6421 else
   6422   found_err_h=no
   6423 fi
   6424 
   6425 if test "x$found_err_h" = xyes; then
   6426 	ac_fn_c_check_header_mongrel "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
   6427 if test "x$ac_cv_header_err_h" = xyes; then :
   6428 
   6429 else
   6430   found_err_h=no
   6431 fi
   6432 
   6433 
   6434 else
   6435 	case " $LIBOBJS " in
   6436   *" err.$ac_objext "* ) ;;
   6437   *) LIBOBJS="$LIBOBJS err.$ac_objext"
   6438  ;;
   6439 esac
   6440 
   6441 fi
   6442 
   6443 # Look for imsg_init in libutil.
   6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing imsg_init" >&5
   6445 $as_echo_n "checking for library containing imsg_init... " >&6; }
   6446 if ${ac_cv_search_imsg_init+:} false; then :
   6447   $as_echo_n "(cached) " >&6
   6448 else
   6449   ac_func_search_save_LIBS=$LIBS
   6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6451 /* end confdefs.h.  */
   6452 
   6453 /* Override any GCC internal prototype to avoid an error.
   6454    Use char because int might match the return type of a GCC
   6455    builtin and then its argument prototype would still apply.  */
   6456 #ifdef __cplusplus
   6457 extern "C"
   6458 #endif
   6459 char imsg_init ();
   6460 int
   6461 main ()
   6462 {
   6463 return imsg_init ();
   6464   ;
   6465   return 0;
   6466 }
   6467 _ACEOF
   6468 for ac_lib in '' util; do
   6469   if test -z "$ac_lib"; then
   6470     ac_res="none required"
   6471   else
   6472     ac_res=-l$ac_lib
   6473     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   6474   fi
   6475   if ac_fn_c_try_link "$LINENO"; then :
   6476   ac_cv_search_imsg_init=$ac_res
   6477 fi
   6478 rm -f core conftest.err conftest.$ac_objext \
   6479     conftest$ac_exeext
   6480   if ${ac_cv_search_imsg_init+:} false; then :
   6481   break
   6482 fi
   6483 done
   6484 if ${ac_cv_search_imsg_init+:} false; then :
   6485 
   6486 else
   6487   ac_cv_search_imsg_init=no
   6488 fi
   6489 rm conftest.$ac_ext
   6490 LIBS=$ac_func_search_save_LIBS
   6491 fi
   6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_imsg_init" >&5
   6493 $as_echo "$ac_cv_search_imsg_init" >&6; }
   6494 ac_res=$ac_cv_search_imsg_init
   6495 if test "$ac_res" != no; then :
   6496   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   6497   found_imsg_init=yes
   6498 else
   6499   found_imsg_init=no
   6500 fi
   6501 
   6502 if test "x$found_imsg_init" = xyes; then
   6503 	$as_echo "#define HAVE_IMSG 1" >>confdefs.h
   6504 
   6505 else
   6506 	case " $LIBOBJS " in
   6507   *" imsg.$ac_objext "* ) ;;
   6508   *) LIBOBJS="$LIBOBJS imsg.$ac_objext"
   6509  ;;
   6510 esac
   6511 
   6512 	case " $LIBOBJS " in
   6513   *" imsg-buffer.$ac_objext "* ) ;;
   6514   *) LIBOBJS="$LIBOBJS imsg-buffer.$ac_objext"
   6515  ;;
   6516 esac
   6517 
   6518 fi
   6519 
   6520 # Look for daemon, compat/daemon.c used if missing. Solaris 10 has it in
   6521 # libresolv, but no declaration anywhere, so check for declaration as well as
   6522 # function.
   6523 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
   6524 if test "x$ac_cv_func_daemon" = xyes; then :
   6525   found_daemon=yes
   6526 else
   6527   found_daemon=no
   6528 fi
   6529 
   6530 ac_fn_c_check_decl "$LINENO" "daemon" "ac_cv_have_decl_daemon" "
   6531 		#include <stdlib.h>
   6532 		#include <unistd.h>
   6533 
   6534 
   6535 "
   6536 if test "x$ac_cv_have_decl_daemon" = xyes; then :
   6537 
   6538 else
   6539   found_daemon=no
   6540 fi
   6541 
   6542 if test "x$found_daemon" = xyes; then
   6543 	$as_echo "#define HAVE_DAEMON 1" >>confdefs.h
   6544 
   6545 else
   6546 	case " $LIBOBJS " in
   6547   *" daemon.$ac_objext "* ) ;;
   6548   *) LIBOBJS="$LIBOBJS daemon.$ac_objext"
   6549  ;;
   6550 esac
   6551 
   6552 fi
   6553 
   6554 # Look for stravis, compat/{vis,unvis}.c used if missing.
   6555 ac_fn_c_check_func "$LINENO" "stravis" "ac_cv_func_stravis"
   6556 if test "x$ac_cv_func_stravis" = xyes; then :
   6557   found_stravis=yes
   6558 else
   6559   found_stravis=no
   6560 fi
   6561 
   6562 if test "x$found_stravis" = xyes; then
   6563 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnvis is broken" >&5
   6564 $as_echo_n "checking if strnvis is broken... " >&6; }
   6565 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6566 /* end confdefs.h.  */
   6567 #include <vis.h>
   6568 
   6569 _ACEOF
   6570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6571   $EGREP "strnvis\(char \*, const char \*, size_t, int\)" >/dev/null 2>&1; then :
   6572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6573 $as_echo "no" >&6; }
   6574 else
   6575   found_stravis=no
   6576 fi
   6577 rm -f conftest*
   6578 
   6579 	if test "x$found_stravis" = xno; then
   6580 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6581 $as_echo "yes" >&6; }
   6582 	fi
   6583 fi
   6584 if test "x$found_stravis" = xyes; then
   6585 	ac_fn_c_check_decl "$LINENO" "VIS_DQ" "ac_cv_have_decl_VIS_DQ" "
   6586 			#include <stdlib.h>
   6587 			#include <vis.h>
   6588 
   6589 
   6590 "
   6591 if test "x$ac_cv_have_decl_VIS_DQ" = xyes; then :
   6592 
   6593 else
   6594   found_stravis=no
   6595 fi
   6596 
   6597 fi
   6598 if test "x$found_stravis" = xyes; then
   6599 	$as_echo "#define HAVE_VIS 1" >>confdefs.h
   6600 
   6601 else
   6602 	case " $LIBOBJS " in
   6603   *" vis.$ac_objext "* ) ;;
   6604   *) LIBOBJS="$LIBOBJS vis.$ac_objext"
   6605  ;;
   6606 esac
   6607 
   6608 	case " $LIBOBJS " in
   6609   *" unvis.$ac_objext "* ) ;;
   6610   *) LIBOBJS="$LIBOBJS unvis.$ac_objext"
   6611  ;;
   6612 esac
   6613 
   6614 fi
   6615 
   6616 # Look for getopt. glibc's getopt does not enforce argument order and the ways
   6617 # of making it do so are stupid, so just use our own instead.
   6618 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
   6619 if test "x$ac_cv_func_getopt" = xyes; then :
   6620   found_getopt=yes
   6621 else
   6622   found_getopt=no
   6623 fi
   6624 
   6625 if test "x$found_getopt" != xno; then
   6626 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getopt is suitable" >&5
   6627 $as_echo_n "checking if getopt is suitable... " >&6; }
   6628 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6629 /* end confdefs.h.  */
   6630 
   6631 			#include <features.h>
   6632 			#ifdef __GLIBC__
   6633 			yes
   6634 			#endif
   6635 
   6636 _ACEOF
   6637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6638   $EGREP "yes" >/dev/null 2>&1; then :
   6639 
   6640 			found_getopt=no
   6641 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6642 $as_echo "no" >&6; }
   6643 
   6644 else
   6645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6646 $as_echo "yes" >&6; }
   6647 fi
   6648 rm -f conftest*
   6649 
   6650 fi
   6651 if test "x$found_getopt" != xno; then
   6652 	ac_fn_c_check_decl "$LINENO" "optarg" "ac_cv_have_decl_optarg" "
   6653 			#include <unistd.h>
   6654 
   6655 "
   6656 if test "x$ac_cv_have_decl_optarg" = xyes; then :
   6657   ac_have_decl=1
   6658 else
   6659   ac_have_decl=0
   6660 fi
   6661 
   6662 cat >>confdefs.h <<_ACEOF
   6663 #define HAVE_DECL_OPTARG $ac_have_decl
   6664 _ACEOF
   6665 if test $ac_have_decl = 1; then :
   6666 
   6667 else
   6668   found_getopt=no
   6669 fi
   6670 ac_fn_c_check_decl "$LINENO" "optind" "ac_cv_have_decl_optind" "
   6671 			#include <unistd.h>
   6672 
   6673 "
   6674 if test "x$ac_cv_have_decl_optind" = xyes; then :
   6675   ac_have_decl=1
   6676 else
   6677   ac_have_decl=0
   6678 fi
   6679 
   6680 cat >>confdefs.h <<_ACEOF
   6681 #define HAVE_DECL_OPTIND $ac_have_decl
   6682 _ACEOF
   6683 if test $ac_have_decl = 1; then :
   6684 
   6685 else
   6686   found_getopt=no
   6687 fi
   6688 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "
   6689 			#include <unistd.h>
   6690 
   6691 "
   6692 if test "x$ac_cv_have_decl_optreset" = xyes; then :
   6693   ac_have_decl=1
   6694 else
   6695   ac_have_decl=0
   6696 fi
   6697 
   6698 cat >>confdefs.h <<_ACEOF
   6699 #define HAVE_DECL_OPTRESET $ac_have_decl
   6700 _ACEOF
   6701 if test $ac_have_decl = 1; then :
   6702 
   6703 else
   6704   found_getopt=no
   6705 fi
   6706 
   6707 fi
   6708 if test "x$found_getopt" != xno; then
   6709 	$as_echo "#define HAVE_GETOPT 1" >>confdefs.h
   6710 
   6711 else
   6712 	case " $LIBOBJS " in
   6713   *" getopt.$ac_objext "* ) ;;
   6714   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
   6715  ;;
   6716 esac
   6717 
   6718 fi
   6719 
   6720 # Look for fparseln in libutil.
   6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fparseln" >&5
   6722 $as_echo_n "checking for library containing fparseln... " >&6; }
   6723 if ${ac_cv_search_fparseln+:} false; then :
   6724   $as_echo_n "(cached) " >&6
   6725 else
   6726   ac_func_search_save_LIBS=$LIBS
   6727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6728 /* end confdefs.h.  */
   6729 
   6730 /* Override any GCC internal prototype to avoid an error.
   6731    Use char because int might match the return type of a GCC
   6732    builtin and then its argument prototype would still apply.  */
   6733 #ifdef __cplusplus
   6734 extern "C"
   6735 #endif
   6736 char fparseln ();
   6737 int
   6738 main ()
   6739 {
   6740 return fparseln ();
   6741   ;
   6742   return 0;
   6743 }
   6744 _ACEOF
   6745 for ac_lib in '' util; do
   6746   if test -z "$ac_lib"; then
   6747     ac_res="none required"
   6748   else
   6749     ac_res=-l$ac_lib
   6750     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   6751   fi
   6752   if ac_fn_c_try_link "$LINENO"; then :
   6753   ac_cv_search_fparseln=$ac_res
   6754 fi
   6755 rm -f core conftest.err conftest.$ac_objext \
   6756     conftest$ac_exeext
   6757   if ${ac_cv_search_fparseln+:} false; then :
   6758   break
   6759 fi
   6760 done
   6761 if ${ac_cv_search_fparseln+:} false; then :
   6762 
   6763 else
   6764   ac_cv_search_fparseln=no
   6765 fi
   6766 rm conftest.$ac_ext
   6767 LIBS=$ac_func_search_save_LIBS
   6768 fi
   6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fparseln" >&5
   6770 $as_echo "$ac_cv_search_fparseln" >&6; }
   6771 ac_res=$ac_cv_search_fparseln
   6772 if test "$ac_res" != no; then :
   6773   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   6774   found_fparseln=yes
   6775 else
   6776   found_fparseln=no
   6777 fi
   6778 
   6779 if test "x$found_fparseln" = xyes; then
   6780 	$as_echo "#define HAVE_FPARSELN 1" >>confdefs.h
   6781 
   6782 else
   6783 	case " $LIBOBJS " in
   6784   *" fparseln.$ac_objext "* ) ;;
   6785   *) LIBOBJS="$LIBOBJS fparseln.$ac_objext"
   6786  ;;
   6787 esac
   6788 
   6789 fi
   6790 
   6791 # Look for fdforkpty and forkpty in libutil.
   6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdforkpty" >&5
   6793 $as_echo_n "checking for library containing fdforkpty... " >&6; }
   6794 if ${ac_cv_search_fdforkpty+:} false; then :
   6795   $as_echo_n "(cached) " >&6
   6796 else
   6797   ac_func_search_save_LIBS=$LIBS
   6798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6799 /* end confdefs.h.  */
   6800 
   6801 /* Override any GCC internal prototype to avoid an error.
   6802    Use char because int might match the return type of a GCC
   6803    builtin and then its argument prototype would still apply.  */
   6804 #ifdef __cplusplus
   6805 extern "C"
   6806 #endif
   6807 char fdforkpty ();
   6808 int
   6809 main ()
   6810 {
   6811 return fdforkpty ();
   6812   ;
   6813   return 0;
   6814 }
   6815 _ACEOF
   6816 for ac_lib in '' util; do
   6817   if test -z "$ac_lib"; then
   6818     ac_res="none required"
   6819   else
   6820     ac_res=-l$ac_lib
   6821     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   6822   fi
   6823   if ac_fn_c_try_link "$LINENO"; then :
   6824   ac_cv_search_fdforkpty=$ac_res
   6825 fi
   6826 rm -f core conftest.err conftest.$ac_objext \
   6827     conftest$ac_exeext
   6828   if ${ac_cv_search_fdforkpty+:} false; then :
   6829   break
   6830 fi
   6831 done
   6832 if ${ac_cv_search_fdforkpty+:} false; then :
   6833 
   6834 else
   6835   ac_cv_search_fdforkpty=no
   6836 fi
   6837 rm conftest.$ac_ext
   6838 LIBS=$ac_func_search_save_LIBS
   6839 fi
   6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdforkpty" >&5
   6841 $as_echo "$ac_cv_search_fdforkpty" >&6; }
   6842 ac_res=$ac_cv_search_fdforkpty
   6843 if test "$ac_res" != no; then :
   6844   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   6845   found_fdforkpty=yes
   6846 else
   6847   found_fdforkpty=no
   6848 fi
   6849 
   6850 if test "x$found_fdforkpty" = xyes; then
   6851 	$as_echo "#define HAVE_FDFORKPTY 1" >>confdefs.h
   6852 
   6853 else
   6854 	case " $LIBOBJS " in
   6855   *" fdforkpty.$ac_objext "* ) ;;
   6856   *) LIBOBJS="$LIBOBJS fdforkpty.$ac_objext"
   6857  ;;
   6858 esac
   6859 
   6860 fi
   6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing forkpty" >&5
   6862 $as_echo_n "checking for library containing forkpty... " >&6; }
   6863 if ${ac_cv_search_forkpty+:} false; then :
   6864   $as_echo_n "(cached) " >&6
   6865 else
   6866   ac_func_search_save_LIBS=$LIBS
   6867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6868 /* end confdefs.h.  */
   6869 
   6870 /* Override any GCC internal prototype to avoid an error.
   6871    Use char because int might match the return type of a GCC
   6872    builtin and then its argument prototype would still apply.  */
   6873 #ifdef __cplusplus
   6874 extern "C"
   6875 #endif
   6876 char forkpty ();
   6877 int
   6878 main ()
   6879 {
   6880 return forkpty ();
   6881   ;
   6882   return 0;
   6883 }
   6884 _ACEOF
   6885 for ac_lib in '' util; do
   6886   if test -z "$ac_lib"; then
   6887     ac_res="none required"
   6888   else
   6889     ac_res=-l$ac_lib
   6890     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   6891   fi
   6892   if ac_fn_c_try_link "$LINENO"; then :
   6893   ac_cv_search_forkpty=$ac_res
   6894 fi
   6895 rm -f core conftest.err conftest.$ac_objext \
   6896     conftest$ac_exeext
   6897   if ${ac_cv_search_forkpty+:} false; then :
   6898   break
   6899 fi
   6900 done
   6901 if ${ac_cv_search_forkpty+:} false; then :
   6902 
   6903 else
   6904   ac_cv_search_forkpty=no
   6905 fi
   6906 rm conftest.$ac_ext
   6907 LIBS=$ac_func_search_save_LIBS
   6908 fi
   6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_forkpty" >&5
   6910 $as_echo "$ac_cv_search_forkpty" >&6; }
   6911 ac_res=$ac_cv_search_forkpty
   6912 if test "$ac_res" != no; then :
   6913   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   6914   found_forkpty=yes
   6915 else
   6916   found_forkpty=no
   6917 fi
   6918 
   6919 if test "x$found_forkpty" = xyes; then
   6920 	$as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
   6921 
   6922 fi
   6923  if test "x$found_forkpty" = xno; then
   6924   NEED_FORKPTY_TRUE=
   6925   NEED_FORKPTY_FALSE='#'
   6926 else
   6927   NEED_FORKPTY_TRUE='#'
   6928   NEED_FORKPTY_FALSE=
   6929 fi
   6930 
   6931 
   6932 # Look for a suitable queue.h.
   6933 ac_fn_c_check_decl "$LINENO" "TAILQ_CONCAT" "ac_cv_have_decl_TAILQ_CONCAT" "#include <sys/queue.h>
   6934 
   6935 "
   6936 if test "x$ac_cv_have_decl_TAILQ_CONCAT" = xyes; then :
   6937   found_queue_h=yes
   6938 else
   6939   found_queue_h=no
   6940 fi
   6941 
   6942 ac_fn_c_check_decl "$LINENO" "TAILQ_PREV" "ac_cv_have_decl_TAILQ_PREV" "#include <sys/queue.h>
   6943 
   6944 "
   6945 if test "x$ac_cv_have_decl_TAILQ_PREV" = xyes; then :
   6946   found_queue_h=yes
   6947 else
   6948   found_queue_h=no
   6949 fi
   6950 
   6951 ac_fn_c_check_decl "$LINENO" "TAILQ_REPLACE" "ac_cv_have_decl_TAILQ_REPLACE" "#include <sys/queue.h>
   6952 
   6953 "
   6954 if test "x$ac_cv_have_decl_TAILQ_REPLACE" = xyes; then :
   6955 
   6956 else
   6957   found_queue_h=no
   6958 fi
   6959 
   6960 if test "x$found_queue_h" = xyes; then
   6961 	$as_echo "#define HAVE_QUEUE_H 1" >>confdefs.h
   6962 
   6963 fi
   6964 
   6965 # Look for __progname.
   6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5
   6967 $as_echo_n "checking for __progname... " >&6; }
   6968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6969 /* end confdefs.h.  */
   6970 
   6971 		#include <stdio.h>
   6972 		#include <stdlib.h>
   6973 		extern char *__progname;
   6974 		int main(void) {
   6975 			const char *cp = __progname;
   6976 			printf("%s\n", cp);
   6977 			exit(0);
   6978 		}
   6979 
   6980 _ACEOF
   6981 if ac_fn_c_try_link "$LINENO"; then :
   6982   $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
   6983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6984 $as_echo "yes" >&6; }
   6985 else
   6986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6987 $as_echo "no" >&6; }
   6988 
   6989 fi
   6990 rm -f core conftest.err conftest.$ac_objext \
   6991     conftest$ac_exeext conftest.$ac_ext
   6992 
   6993 # Look for program_invocation_short_name.
   6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for program_invocation_short_name" >&5
   6995 $as_echo_n "checking for program_invocation_short_name... " >&6; }
   6996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6997 /* end confdefs.h.  */
   6998 
   6999 		#include <errno.h>
   7000 		#include <stdio.h>
   7001 		#include <stdlib.h>
   7002 		int main(void) {
   7003 			const char *cp = program_invocation_short_name;
   7004 			printf("%s\n", cp);
   7005 			exit(0);
   7006 		}
   7007 
   7008 _ACEOF
   7009 if ac_fn_c_try_link "$LINENO"; then :
   7010   $as_echo "#define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
   7011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7012 $as_echo "yes" >&6; }
   7013 else
   7014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7015 $as_echo "no" >&6; }
   7016 
   7017 fi
   7018 rm -f core conftest.err conftest.$ac_objext \
   7019     conftest$ac_exeext conftest.$ac_ext
   7020 
   7021 # Look for prctl(PR_SET_NAME).
   7022 ac_fn_c_check_decl "$LINENO" "PR_SET_NAME" "ac_cv_have_decl_PR_SET_NAME" "#include <sys/prctl.h>
   7023 
   7024 "
   7025 if test "x$ac_cv_have_decl_PR_SET_NAME" = xyes; then :
   7026   $as_echo "#define HAVE_PR_SET_NAME 1" >>confdefs.h
   7027 
   7028 fi
   7029 
   7030 
   7031 # Look for fcntl(F_CLOSEM).
   7032 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
   7033 
   7034 "
   7035 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
   7036   $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
   7037 
   7038 fi
   7039 
   7040 
   7041 # Look for /proc/$$.
   7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/\$\$" >&5
   7043 $as_echo_n "checking for /proc/\$\$... " >&6; }
   7044 if test -d /proc/$$; then
   7045 	$as_echo "#define HAVE_PROC_PID 1" >>confdefs.h
   7046 
   7047 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7048 $as_echo "yes" >&6; }
   7049 else
   7050 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7051 $as_echo "no" >&6; }
   7052 fi
   7053 
   7054 # Man page defaults to mdoc.
   7055 MANFORMAT=mdoc
   7056 
   7057 
   7058 # Figure out the platform.
   7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking platform" >&5
   7060 $as_echo_n "checking platform... " >&6; }
   7061 case "$host_os" in
   7062 	*aix*)
   7063 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: aix" >&5
   7064 $as_echo "aix" >&6; }
   7065 		PLATFORM=aix
   7066 		;;
   7067 	*darwin*)
   7068 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: darwin" >&5
   7069 $as_echo "darwin" >&6; }
   7070 		PLATFORM=darwin
   7071 		#
   7072 		# OS X CMSG_FIRSTHDR is broken, so redefine it with a working
   7073 		# one. daemon works but has some stupid side effects, so use
   7074 		# our internal version which has a workaround.
   7075 		#
   7076 		$as_echo "#define BROKEN_CMSG_FIRSTHDR 1" >>confdefs.h
   7077 
   7078 		case " $LIBOBJS " in
   7079   *" daemon.$ac_objext "* ) ;;
   7080   *) LIBOBJS="$LIBOBJS daemon.$ac_objext"
   7081  ;;
   7082 esac
   7083 
   7084 		case " $LIBOBJS " in
   7085   *" daemon-darwin.$ac_objext "* ) ;;
   7086   *) LIBOBJS="$LIBOBJS daemon-darwin.$ac_objext"
   7087  ;;
   7088 esac
   7089 
   7090 		;;
   7091 	*dragonfly*)
   7092 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: dragonfly" >&5
   7093 $as_echo "dragonfly" >&6; }
   7094 		PLATFORM=dragonfly
   7095 		;;
   7096 	*linux*)
   7097 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: linux" >&5
   7098 $as_echo "linux" >&6; }
   7099 		PLATFORM=linux
   7100 		;;
   7101 	*freebsd*)
   7102 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: freebsd" >&5
   7103 $as_echo "freebsd" >&6; }
   7104 		PLATFORM=freebsd
   7105 		;;
   7106 	*netbsd*)
   7107 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: netbsd" >&5
   7108 $as_echo "netbsd" >&6; }
   7109 		PLATFORM=netbsd
   7110 		;;
   7111 	*openbsd*)
   7112 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: openbsd" >&5
   7113 $as_echo "openbsd" >&6; }
   7114 		PLATFORM=openbsd
   7115 		;;
   7116 	*sunos*)
   7117 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: sunos" >&5
   7118 $as_echo "sunos" >&6; }
   7119 		PLATFORM=sunos
   7120 		;;
   7121 	*solaris*)
   7122 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: sunos" >&5
   7123 $as_echo "sunos" >&6; }
   7124 		PLATFORM=sunos
   7125 		MANFORMAT=man
   7126 		;;
   7127 	*hpux*)
   7128 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: hpux" >&5
   7129 $as_echo "hpux" >&6; }
   7130 		PLATFORM=hpux
   7131 		;;
   7132 	*cygwin*)
   7133 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cygwin" >&5
   7134 $as_echo "cygwin" >&6; }
   7135 		PLATFORM=cygwin
   7136 		;;
   7137 	*)
   7138 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
   7139 $as_echo "unknown" >&6; }
   7140 		PLATFORM=unknown
   7141 		;;
   7142 esac
   7143 
   7144  if test "x$PLATFORM" = xaix; then
   7145   IS_AIX_TRUE=
   7146   IS_AIX_FALSE='#'
   7147 else
   7148   IS_AIX_TRUE='#'
   7149   IS_AIX_FALSE=
   7150 fi
   7151 
   7152  if test "x$PLATFORM" = xdarwin; then
   7153   IS_DARWIN_TRUE=
   7154   IS_DARWIN_FALSE='#'
   7155 else
   7156   IS_DARWIN_TRUE='#'
   7157   IS_DARWIN_FALSE=
   7158 fi
   7159 
   7160  if test "x$PLATFORM" = xdragonfly; then
   7161   IS_DRAGONFLY_TRUE=
   7162   IS_DRAGONFLY_FALSE='#'
   7163 else
   7164   IS_DRAGONFLY_TRUE='#'
   7165   IS_DRAGONFLY_FALSE=
   7166 fi
   7167 
   7168  if test "x$PLATFORM" = xlinux; then
   7169   IS_LINUX_TRUE=
   7170   IS_LINUX_FALSE='#'
   7171 else
   7172   IS_LINUX_TRUE='#'
   7173   IS_LINUX_FALSE=
   7174 fi
   7175 
   7176  if test "x$PLATFORM" = xfreebsd; then
   7177   IS_FREEBSD_TRUE=
   7178   IS_FREEBSD_FALSE='#'
   7179 else
   7180   IS_FREEBSD_TRUE='#'
   7181   IS_FREEBSD_FALSE=
   7182 fi
   7183 
   7184  if test "x$PLATFORM" = xnetbsd; then
   7185   IS_NETBSD_TRUE=
   7186   IS_NETBSD_FALSE='#'
   7187 else
   7188   IS_NETBSD_TRUE='#'
   7189   IS_NETBSD_FALSE=
   7190 fi
   7191 
   7192  if test "x$PLATFORM" = xopenbsd; then
   7193   IS_OPENBSD_TRUE=
   7194   IS_OPENBSD_FALSE='#'
   7195 else
   7196   IS_OPENBSD_TRUE='#'
   7197   IS_OPENBSD_FALSE=
   7198 fi
   7199 
   7200  if test "x$PLATFORM" = xsunos; then
   7201   IS_SUNOS_TRUE=
   7202   IS_SUNOS_FALSE='#'
   7203 else
   7204   IS_SUNOS_TRUE='#'
   7205   IS_SUNOS_FALSE=
   7206 fi
   7207 
   7208  if test "x$PLATFORM" = xhpux; then
   7209   IS_HPUX_TRUE=
   7210   IS_HPUX_FALSE='#'
   7211 else
   7212   IS_HPUX_TRUE='#'
   7213   IS_HPUX_FALSE=
   7214 fi
   7215 
   7216  if test "x$PLATFORM" = xunknown; then
   7217   IS_UNKNOWN_TRUE=
   7218   IS_UNKNOWN_FALSE='#'
   7219 else
   7220   IS_UNKNOWN_TRUE='#'
   7221   IS_UNKNOWN_FALSE=
   7222 fi
   7223 
   7224 
   7225 # Save our CFLAGS/CPPFLAGS/LDFLAGS for the Makefile and restore the old user
   7226 # variables.
   7227 
   7228 CPPFLAGS="$SAVED_CPPFLAGS"
   7229 
   7230 CFLAGS="$SAVED_CFLAGS"
   7231 
   7232 LDFLAGS="$SAVED_LDFLAGS"
   7233 
   7234 # autoconf should create a Makefile.
   7235 ac_config_files="$ac_config_files Makefile"
   7236 
   7237 cat >confcache <<\_ACEOF
   7238 # This file is a shell script that caches the results of configure
   7239 # tests run on this system so they can be shared between configure
   7240 # scripts and configure runs, see configure's option --config-cache.
   7241 # It is not useful on other systems.  If it contains results you don't
   7242 # want to keep, you may remove or edit it.
   7243 #
   7244 # config.status only pays attention to the cache file if you give it
   7245 # the --recheck option to rerun configure.
   7246 #
   7247 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   7248 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   7249 # following values.
   7250 
   7251 _ACEOF
   7252 
   7253 # The following way of writing the cache mishandles newlines in values,
   7254 # but we know of no workaround that is simple, portable, and efficient.
   7255 # So, we kill variables containing newlines.
   7256 # Ultrix sh set writes to stderr and can't be redirected directly,
   7257 # and sets the high bit in the cache file unless we assign to the vars.
   7258 (
   7259   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   7260     eval ac_val=\$$ac_var
   7261     case $ac_val in #(
   7262     *${as_nl}*)
   7263       case $ac_var in #(
   7264       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   7265 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   7266       esac
   7267       case $ac_var in #(
   7268       _ | IFS | as_nl) ;; #(
   7269       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   7270       *) { eval $ac_var=; unset $ac_var;} ;;
   7271       esac ;;
   7272     esac
   7273   done
   7274 
   7275   (set) 2>&1 |
   7276     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   7277     *${as_nl}ac_space=\ *)
   7278       # `set' does not quote correctly, so add quotes: double-quote
   7279       # substitution turns \\\\ into \\, and sed turns \\ into \.
   7280       sed -n \
   7281 	"s/'/'\\\\''/g;
   7282 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   7283       ;; #(
   7284     *)
   7285       # `set' quotes correctly as required by POSIX, so do not add quotes.
   7286       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   7287       ;;
   7288     esac |
   7289     sort
   7290 ) |
   7291   sed '
   7292      /^ac_cv_env_/b end
   7293      t clear
   7294      :clear
   7295      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   7296      t end
   7297      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   7298      :end' >>confcache
   7299 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   7300   if test -w "$cache_file"; then
   7301     if test "x$cache_file" != "x/dev/null"; then
   7302       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   7303 $as_echo "$as_me: updating cache $cache_file" >&6;}
   7304       if test ! -f "$cache_file" || test -h "$cache_file"; then
   7305 	cat confcache >"$cache_file"
   7306       else
   7307         case $cache_file in #(
   7308         */* | ?:*)
   7309 	  mv -f confcache "$cache_file"$$ &&
   7310 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   7311         *)
   7312 	  mv -f confcache "$cache_file" ;;
   7313 	esac
   7314       fi
   7315     fi
   7316   else
   7317     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   7318 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   7319   fi
   7320 fi
   7321 rm -f confcache
   7322 
   7323 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   7324 # Let make expand exec_prefix.
   7325 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   7326 
   7327 # Transform confdefs.h into DEFS.
   7328 # Protect against shell expansion while executing Makefile rules.
   7329 # Protect against Makefile macro expansion.
   7330 #
   7331 # If the first sed substitution is executed (which looks for macros that
   7332 # take arguments), then branch to the quote section.  Otherwise,
   7333 # look for a macro that doesn't take arguments.
   7334 ac_script='
   7335 :mline
   7336 /\\$/{
   7337  N
   7338  s,\\\n,,
   7339  b mline
   7340 }
   7341 t clear
   7342 :clear
   7343 s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
   7344 t quote
   7345 s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
   7346 t quote
   7347 b any
   7348 :quote
   7349 s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
   7350 s/\[/\\&/g
   7351 s/\]/\\&/g
   7352 s/\$/$$/g
   7353 H
   7354 :any
   7355 ${
   7356 	g
   7357 	s/^\n//
   7358 	s/\n/ /g
   7359 	p
   7360 }
   7361 '
   7362 DEFS=`sed -n "$ac_script" confdefs.h`
   7363 
   7364 
   7365 ac_libobjs=
   7366 ac_ltlibobjs=
   7367 U=
   7368 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   7369   # 1. Remove the extension, and $U if already installed.
   7370   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   7371   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   7372   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   7373   #    will be set to the directory where LIBOBJS objects are built.
   7374   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   7375   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   7376 done
   7377 LIBOBJS=$ac_libobjs
   7378 
   7379 LTLIBOBJS=$ac_ltlibobjs
   7380 
   7381 
   7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
   7383 $as_echo_n "checking that generated files are newer than configure... " >&6; }
   7384    if test -n "$am_sleep_pid"; then
   7385      # Hide warnings about reused PIDs.
   7386      wait $am_sleep_pid 2>/dev/null
   7387    fi
   7388    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
   7389 $as_echo "done" >&6; }
   7390  if test -n "$EXEEXT"; then
   7391   am__EXEEXT_TRUE=
   7392   am__EXEEXT_FALSE='#'
   7393 else
   7394   am__EXEEXT_TRUE='#'
   7395   am__EXEEXT_FALSE=
   7396 fi
   7397 
   7398 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
   7399   as_fn_error $? "conditional \"AMDEP\" was never defined.
   7400 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   7401 fi
   7402 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
   7403   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
   7404 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   7405 fi
   7406 if test -z "${IS_DEBUG_TRUE}" && test -z "${IS_DEBUG_FALSE}"; then
   7407   as_fn_error $? "conditional \"IS_DEBUG\" was never defined.
   7408 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   7409 fi
   7410 if test -z "${IS_GCC_TRUE}" && test -z "${IS_GCC_FALSE}"; then
   7411   as_fn_error $? "conditional \"IS_GCC\" was never defined.
   7412 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   7413 fi
   7414 if test -z "${IS_SUNCC_TRUE}" && test -z "${IS_SUNCC_FALSE}"; then
   7415   as_fn_error $? "conditional \"IS_SUNCC\" was never defined.
   7416 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   7417 fi
   7418 if test -z "${HAVE_UTF8PROC_TRUE}" && test -z "${HAVE_UTF8PROC_FALSE}"; then
   7419   as_fn_error $? "conditional \"HAVE_UTF8PROC\" was never defined.
   7420 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   7421 fi
   7422 if test -z "${NEED_FORKPTY_TRUE}" && test -z "${NEED_FORKPTY_FALSE}"; then
   7423   as_fn_error $? "conditional \"NEED_FORKPTY\" was never defined.
   7424 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   7425 fi
   7426 if test -z "${IS_AIX_TRUE}" && test -z "${IS_AIX_FALSE}"; then
   7427   as_fn_error $? "conditional \"IS_AIX\" was never defined.
   7428 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   7429 fi
   7430 if test -z "${IS_DARWIN_TRUE}" && test -z "${IS_DARWIN_FALSE}"; then
   7431   as_fn_error $? "conditional \"IS_DARWIN\" was never defined.
   7432 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   7433 fi
   7434 if test -z "${IS_DRAGONFLY_TRUE}" && test -z "${IS_DRAGONFLY_FALSE}"; then
   7435   as_fn_error $? "conditional \"IS_DRAGONFLY\" was never defined.
   7436 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   7437 fi
   7438 if test -z "${IS_LINUX_TRUE}" && test -z "${IS_LINUX_FALSE}"; then
   7439   as_fn_error $? "conditional \"IS_LINUX\" was never defined.
   7440 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   7441 fi
   7442 if test -z "${IS_FREEBSD_TRUE}" && test -z "${IS_FREEBSD_FALSE}"; then
   7443   as_fn_error $? "conditional \"IS_FREEBSD\" was never defined.
   7444 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   7445 fi
   7446 if test -z "${IS_NETBSD_TRUE}" && test -z "${IS_NETBSD_FALSE}"; then
   7447   as_fn_error $? "conditional \"IS_NETBSD\" was never defined.
   7448 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   7449 fi
   7450 if test -z "${IS_OPENBSD_TRUE}" && test -z "${IS_OPENBSD_FALSE}"; then
   7451   as_fn_error $? "conditional \"IS_OPENBSD\" was never defined.
   7452 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   7453 fi
   7454 if test -z "${IS_SUNOS_TRUE}" && test -z "${IS_SUNOS_FALSE}"; then
   7455   as_fn_error $? "conditional \"IS_SUNOS\" was never defined.
   7456 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   7457 fi
   7458 if test -z "${IS_HPUX_TRUE}" && test -z "${IS_HPUX_FALSE}"; then
   7459   as_fn_error $? "conditional \"IS_HPUX\" was never defined.
   7460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   7461 fi
   7462 if test -z "${IS_UNKNOWN_TRUE}" && test -z "${IS_UNKNOWN_FALSE}"; then
   7463   as_fn_error $? "conditional \"IS_UNKNOWN\" was never defined.
   7464 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   7465 fi
   7466 
   7467 : "${CONFIG_STATUS=./config.status}"
   7468 ac_write_fail=0
   7469 ac_clean_files_save=$ac_clean_files
   7470 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   7471 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   7472 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   7473 as_write_fail=0
   7474 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   7475 #! $SHELL
   7476 # Generated by $as_me.
   7477 # Run this file to recreate the current configuration.
   7478 # Compiler output produced by configure, useful for debugging
   7479 # configure, is in config.log if it exists.
   7480 
   7481 debug=false
   7482 ac_cs_recheck=false
   7483 ac_cs_silent=false
   7484 
   7485 SHELL=\${CONFIG_SHELL-$SHELL}
   7486 export SHELL
   7487 _ASEOF
   7488 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   7489 ## -------------------- ##
   7490 ## M4sh Initialization. ##
   7491 ## -------------------- ##
   7492 
   7493 # Be more Bourne compatible
   7494 DUALCASE=1; export DUALCASE # for MKS sh
   7495 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   7496   emulate sh
   7497   NULLCMD=:
   7498   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   7499   # is contrary to our usage.  Disable this feature.
   7500   alias -g '${1+"$@"}'='"$@"'
   7501   setopt NO_GLOB_SUBST
   7502 else
   7503   case `(set -o) 2>/dev/null` in #(
   7504   *posix*) :
   7505     set -o posix ;; #(
   7506   *) :
   7507      ;;
   7508 esac
   7509 fi
   7510 
   7511 
   7512 as_nl='
   7513 '
   7514 export as_nl
   7515 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   7516 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   7517 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   7518 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   7519 # Prefer a ksh shell builtin over an external printf program on Solaris,
   7520 # but without wasting forks for bash or zsh.
   7521 if test -z "$BASH_VERSION$ZSH_VERSION" \
   7522     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   7523   as_echo='print -r --'
   7524   as_echo_n='print -rn --'
   7525 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   7526   as_echo='printf %s\n'
   7527   as_echo_n='printf %s'
   7528 else
   7529   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   7530     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   7531     as_echo_n='/usr/ucb/echo -n'
   7532   else
   7533     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   7534     as_echo_n_body='eval
   7535       arg=$1;
   7536       case $arg in #(
   7537       *"$as_nl"*)
   7538 	expr "X$arg" : "X\\(.*\\)$as_nl";
   7539 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   7540       esac;
   7541       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   7542     '
   7543     export as_echo_n_body
   7544     as_echo_n='sh -c $as_echo_n_body as_echo'
   7545   fi
   7546   export as_echo_body
   7547   as_echo='sh -c $as_echo_body as_echo'
   7548 fi
   7549 
   7550 # The user is always right.
   7551 if test "${PATH_SEPARATOR+set}" != set; then
   7552   PATH_SEPARATOR=:
   7553   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   7554     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   7555       PATH_SEPARATOR=';'
   7556   }
   7557 fi
   7558 
   7559 
   7560 # IFS
   7561 # We need space, tab and new line, in precisely that order.  Quoting is
   7562 # there to prevent editors from complaining about space-tab.
   7563 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   7564 # splitting by setting IFS to empty value.)
   7565 IFS=" ""	$as_nl"
   7566 
   7567 # Find who we are.  Look in the path if we contain no directory separator.
   7568 as_myself=
   7569 case $0 in #((
   7570   *[\\/]* ) as_myself=$0 ;;
   7571   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7572 for as_dir in $PATH
   7573 do
   7574   IFS=$as_save_IFS
   7575   test -z "$as_dir" && as_dir=.
   7576     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   7577   done
   7578 IFS=$as_save_IFS
   7579 
   7580      ;;
   7581 esac
   7582 # We did not find ourselves, most probably we were run as `sh COMMAND'
   7583 # in which case we are not to be found in the path.
   7584 if test "x$as_myself" = x; then
   7585   as_myself=$0
   7586 fi
   7587 if test ! -f "$as_myself"; then
   7588   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   7589   exit 1
   7590 fi
   7591 
   7592 # Unset variables that we do not need and which cause bugs (e.g. in
   7593 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   7594 # suppresses any "Segmentation fault" message there.  '((' could
   7595 # trigger a bug in pdksh 5.2.14.
   7596 for as_var in BASH_ENV ENV MAIL MAILPATH
   7597 do eval test x\${$as_var+set} = xset \
   7598   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   7599 done
   7600 PS1='$ '
   7601 PS2='> '
   7602 PS4='+ '
   7603 
   7604 # NLS nuisances.
   7605 LC_ALL=C
   7606 export LC_ALL
   7607 LANGUAGE=C
   7608 export LANGUAGE
   7609 
   7610 # CDPATH.
   7611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   7612 
   7613 
   7614 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   7615 # ----------------------------------------
   7616 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   7617 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   7618 # script with STATUS, using 1 if that was 0.
   7619 as_fn_error ()
   7620 {
   7621   as_status=$1; test $as_status -eq 0 && as_status=1
   7622   if test "$4"; then
   7623     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   7624     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   7625   fi
   7626   $as_echo "$as_me: error: $2" >&2
   7627   as_fn_exit $as_status
   7628 } # as_fn_error
   7629 
   7630 
   7631 # as_fn_set_status STATUS
   7632 # -----------------------
   7633 # Set $? to STATUS, without forking.
   7634 as_fn_set_status ()
   7635 {
   7636   return $1
   7637 } # as_fn_set_status
   7638 
   7639 # as_fn_exit STATUS
   7640 # -----------------
   7641 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   7642 as_fn_exit ()
   7643 {
   7644   set +e
   7645   as_fn_set_status $1
   7646   exit $1
   7647 } # as_fn_exit
   7648 
   7649 # as_fn_unset VAR
   7650 # ---------------
   7651 # Portably unset VAR.
   7652 as_fn_unset ()
   7653 {
   7654   { eval $1=; unset $1;}
   7655 }
   7656 as_unset=as_fn_unset
   7657 # as_fn_append VAR VALUE
   7658 # ----------------------
   7659 # Append the text in VALUE to the end of the definition contained in VAR. Take
   7660 # advantage of any shell optimizations that allow amortized linear growth over
   7661 # repeated appends, instead of the typical quadratic growth present in naive
   7662 # implementations.
   7663 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   7664   eval 'as_fn_append ()
   7665   {
   7666     eval $1+=\$2
   7667   }'
   7668 else
   7669   as_fn_append ()
   7670   {
   7671     eval $1=\$$1\$2
   7672   }
   7673 fi # as_fn_append
   7674 
   7675 # as_fn_arith ARG...
   7676 # ------------------
   7677 # Perform arithmetic evaluation on the ARGs, and store the result in the
   7678 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   7679 # must be portable across $(()) and expr.
   7680 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   7681   eval 'as_fn_arith ()
   7682   {
   7683     as_val=$(( $* ))
   7684   }'
   7685 else
   7686   as_fn_arith ()
   7687   {
   7688     as_val=`expr "$@" || test $? -eq 1`
   7689   }
   7690 fi # as_fn_arith
   7691 
   7692 
   7693 if expr a : '\(a\)' >/dev/null 2>&1 &&
   7694    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   7695   as_expr=expr
   7696 else
   7697   as_expr=false
   7698 fi
   7699 
   7700 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   7701   as_basename=basename
   7702 else
   7703   as_basename=false
   7704 fi
   7705 
   7706 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   7707   as_dirname=dirname
   7708 else
   7709   as_dirname=false
   7710 fi
   7711 
   7712 as_me=`$as_basename -- "$0" ||
   7713 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   7714 	 X"$0" : 'X\(//\)$' \| \
   7715 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   7716 $as_echo X/"$0" |
   7717     sed '/^.*\/\([^/][^/]*\)\/*$/{
   7718 	    s//\1/
   7719 	    q
   7720 	  }
   7721 	  /^X\/\(\/\/\)$/{
   7722 	    s//\1/
   7723 	    q
   7724 	  }
   7725 	  /^X\/\(\/\).*/{
   7726 	    s//\1/
   7727 	    q
   7728 	  }
   7729 	  s/.*/./; q'`
   7730 
   7731 # Avoid depending upon Character Ranges.
   7732 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   7733 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   7734 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   7735 as_cr_digits='0123456789'
   7736 as_cr_alnum=$as_cr_Letters$as_cr_digits
   7737 
   7738 ECHO_C= ECHO_N= ECHO_T=
   7739 case `echo -n x` in #(((((
   7740 -n*)
   7741   case `echo 'xy\c'` in
   7742   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   7743   xy)  ECHO_C='\c';;
   7744   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   7745        ECHO_T='	';;
   7746   esac;;
   7747 *)
   7748   ECHO_N='-n';;
   7749 esac
   7750 
   7751 rm -f conf$$ conf$$.exe conf$$.file
   7752 if test -d conf$$.dir; then
   7753   rm -f conf$$.dir/conf$$.file
   7754 else
   7755   rm -f conf$$.dir
   7756   mkdir conf$$.dir 2>/dev/null
   7757 fi
   7758 if (echo >conf$$.file) 2>/dev/null; then
   7759   if ln -s conf$$.file conf$$ 2>/dev/null; then
   7760     as_ln_s='ln -s'
   7761     # ... but there are two gotchas:
   7762     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   7763     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   7764     # In both cases, we have to default to `cp -pR'.
   7765     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   7766       as_ln_s='cp -pR'
   7767   elif ln conf$$.file conf$$ 2>/dev/null; then
   7768     as_ln_s=ln
   7769   else
   7770     as_ln_s='cp -pR'
   7771   fi
   7772 else
   7773   as_ln_s='cp -pR'
   7774 fi
   7775 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   7776 rmdir conf$$.dir 2>/dev/null
   7777 
   7778 
   7779 # as_fn_mkdir_p
   7780 # -------------
   7781 # Create "$as_dir" as a directory, including parents if necessary.
   7782 as_fn_mkdir_p ()
   7783 {
   7784 
   7785   case $as_dir in #(
   7786   -*) as_dir=./$as_dir;;
   7787   esac
   7788   test -d "$as_dir" || eval $as_mkdir_p || {
   7789     as_dirs=
   7790     while :; do
   7791       case $as_dir in #(
   7792       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   7793       *) as_qdir=$as_dir;;
   7794       esac
   7795       as_dirs="'$as_qdir' $as_dirs"
   7796       as_dir=`$as_dirname -- "$as_dir" ||
   7797 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   7798 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   7799 	 X"$as_dir" : 'X\(//\)$' \| \
   7800 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   7801 $as_echo X"$as_dir" |
   7802     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   7803 	    s//\1/
   7804 	    q
   7805 	  }
   7806 	  /^X\(\/\/\)[^/].*/{
   7807 	    s//\1/
   7808 	    q
   7809 	  }
   7810 	  /^X\(\/\/\)$/{
   7811 	    s//\1/
   7812 	    q
   7813 	  }
   7814 	  /^X\(\/\).*/{
   7815 	    s//\1/
   7816 	    q
   7817 	  }
   7818 	  s/.*/./; q'`
   7819       test -d "$as_dir" && break
   7820     done
   7821     test -z "$as_dirs" || eval "mkdir $as_dirs"
   7822   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   7823 
   7824 
   7825 } # as_fn_mkdir_p
   7826 if mkdir -p . 2>/dev/null; then
   7827   as_mkdir_p='mkdir -p "$as_dir"'
   7828 else
   7829   test -d ./-p && rmdir ./-p
   7830   as_mkdir_p=false
   7831 fi
   7832 
   7833 
   7834 # as_fn_executable_p FILE
   7835 # -----------------------
   7836 # Test if FILE is an executable regular file.
   7837 as_fn_executable_p ()
   7838 {
   7839   test -f "$1" && test -x "$1"
   7840 } # as_fn_executable_p
   7841 as_test_x='test -x'
   7842 as_executable_p=as_fn_executable_p
   7843 
   7844 # Sed expression to map a string onto a valid CPP name.
   7845 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   7846 
   7847 # Sed expression to map a string onto a valid variable name.
   7848 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   7849 
   7850 
   7851 exec 6>&1
   7852 ## ----------------------------------- ##
   7853 ## Main body of $CONFIG_STATUS script. ##
   7854 ## ----------------------------------- ##
   7855 _ASEOF
   7856 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   7857 
   7858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   7859 # Save the log message, to keep $0 and so on meaningful, and to
   7860 # report actual input values of CONFIG_FILES etc. instead of their
   7861 # values after options handling.
   7862 ac_log="
   7863 This file was extended by tmux $as_me 2.6, which was
   7864 generated by GNU Autoconf 2.69.  Invocation command line was
   7865 
   7866   CONFIG_FILES    = $CONFIG_FILES
   7867   CONFIG_HEADERS  = $CONFIG_HEADERS
   7868   CONFIG_LINKS    = $CONFIG_LINKS
   7869   CONFIG_COMMANDS = $CONFIG_COMMANDS
   7870   $ $0 $@
   7871 
   7872 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   7873 "
   7874 
   7875 _ACEOF
   7876 
   7877 case $ac_config_files in *"
   7878 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   7879 esac
   7880 
   7881 
   7882 
   7883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   7884 # Files that config.status was made for.
   7885 config_files="$ac_config_files"
   7886 config_commands="$ac_config_commands"
   7887 
   7888 _ACEOF
   7889 
   7890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   7891 ac_cs_usage="\
   7892 \`$as_me' instantiates files and other configuration actions
   7893 from templates according to the current configuration.  Unless the files
   7894 and actions are specified as TAGs, all are instantiated by default.
   7895 
   7896 Usage: $0 [OPTION]... [TAG]...
   7897 
   7898   -h, --help       print this help, then exit
   7899   -V, --version    print version number and configuration settings, then exit
   7900       --config     print configuration, then exit
   7901   -q, --quiet, --silent
   7902                    do not print progress messages
   7903   -d, --debug      don't remove temporary files
   7904       --recheck    update $as_me by reconfiguring in the same conditions
   7905       --file=FILE[:TEMPLATE]
   7906                    instantiate the configuration file FILE
   7907 
   7908 Configuration files:
   7909 $config_files
   7910 
   7911 Configuration commands:
   7912 $config_commands
   7913 
   7914 Report bugs to the package provider."
   7915 
   7916 _ACEOF
   7917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   7918 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
   7919 ac_cs_version="\\
   7920 tmux config.status 2.6
   7921 configured by $0, generated by GNU Autoconf 2.69,
   7922   with options \\"\$ac_cs_config\\"
   7923 
   7924 Copyright (C) 2012 Free Software Foundation, Inc.
   7925 This config.status script is free software; the Free Software Foundation
   7926 gives unlimited permission to copy, distribute and modify it."
   7927 
   7928 ac_pwd='$ac_pwd'
   7929 srcdir='$srcdir'
   7930 INSTALL='$INSTALL'
   7931 MKDIR_P='$MKDIR_P'
   7932 AWK='$AWK'
   7933 test -n "\$AWK" || AWK=awk
   7934 _ACEOF
   7935 
   7936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   7937 # The default lists apply if the user does not specify any file.
   7938 ac_need_defaults=:
   7939 while test $# != 0
   7940 do
   7941   case $1 in
   7942   --*=?*)
   7943     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   7944     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   7945     ac_shift=:
   7946     ;;
   7947   --*=)
   7948     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   7949     ac_optarg=
   7950     ac_shift=:
   7951     ;;
   7952   *)
   7953     ac_option=$1
   7954     ac_optarg=$2
   7955     ac_shift=shift
   7956     ;;
   7957   esac
   7958 
   7959   case $ac_option in
   7960   # Handling of the options.
   7961   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   7962     ac_cs_recheck=: ;;
   7963   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   7964     $as_echo "$ac_cs_version"; exit ;;
   7965   --config | --confi | --conf | --con | --co | --c )
   7966     $as_echo "$ac_cs_config"; exit ;;
   7967   --debug | --debu | --deb | --de | --d | -d )
   7968     debug=: ;;
   7969   --file | --fil | --fi | --f )
   7970     $ac_shift
   7971     case $ac_optarg in
   7972     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   7973     '') as_fn_error $? "missing file argument" ;;
   7974     esac
   7975     as_fn_append CONFIG_FILES " '$ac_optarg'"
   7976     ac_need_defaults=false;;
   7977   --he | --h |  --help | --hel | -h )
   7978     $as_echo "$ac_cs_usage"; exit ;;
   7979   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   7980   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   7981     ac_cs_silent=: ;;
   7982 
   7983   # This is an error.
   7984   -*) as_fn_error $? "unrecognized option: \`$1'
   7985 Try \`$0 --help' for more information." ;;
   7986 
   7987   *) as_fn_append ac_config_targets " $1"
   7988      ac_need_defaults=false ;;
   7989 
   7990   esac
   7991   shift
   7992 done
   7993 
   7994 ac_configure_extra_args=
   7995 
   7996 if $ac_cs_silent; then
   7997   exec 6>/dev/null
   7998   ac_configure_extra_args="$ac_configure_extra_args --silent"
   7999 fi
   8000 
   8001 _ACEOF
   8002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   8003 if \$ac_cs_recheck; then
   8004   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   8005   shift
   8006   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   8007   CONFIG_SHELL='$SHELL'
   8008   export CONFIG_SHELL
   8009   exec "\$@"
   8010 fi
   8011 
   8012 _ACEOF
   8013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8014 exec 5>>config.log
   8015 {
   8016   echo
   8017   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   8018 ## Running $as_me. ##
   8019 _ASBOX
   8020   $as_echo "$ac_log"
   8021 } >&5
   8022 
   8023 _ACEOF
   8024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   8025 #
   8026 # INIT-COMMANDS
   8027 #
   8028 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
   8029 
   8030 _ACEOF
   8031 
   8032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8033 
   8034 # Handling of arguments.
   8035 for ac_config_target in $ac_config_targets
   8036 do
   8037   case $ac_config_target in
   8038     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
   8039     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   8040 
   8041   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   8042   esac
   8043 done
   8044 
   8045 
   8046 # If the user did not use the arguments to specify the items to instantiate,
   8047 # then the envvar interface is used.  Set only those that are not.
   8048 # We use the long form for the default assignment because of an extremely
   8049 # bizarre bug on SunOS 4.1.3.
   8050 if $ac_need_defaults; then
   8051   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   8052   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   8053 fi
   8054 
   8055 # Have a temporary directory for convenience.  Make it in the build tree
   8056 # simply because there is no reason against having it here, and in addition,
   8057 # creating and moving files from /tmp can sometimes cause problems.
   8058 # Hook for its removal unless debugging.
   8059 # Note that there is a small window in which the directory will not be cleaned:
   8060 # after its creation but before its name has been assigned to `$tmp'.
   8061 $debug ||
   8062 {
   8063   tmp= ac_tmp=
   8064   trap 'exit_status=$?
   8065   : "${ac_tmp:=$tmp}"
   8066   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   8067 ' 0
   8068   trap 'as_fn_exit 1' 1 2 13 15
   8069 }
   8070 # Create a (secure) tmp directory for tmp files.
   8071 
   8072 {
   8073   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   8074   test -d "$tmp"
   8075 }  ||
   8076 {
   8077   tmp=./conf$$-$RANDOM
   8078   (umask 077 && mkdir "$tmp")
   8079 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   8080 ac_tmp=$tmp
   8081 
   8082 # Set up the scripts for CONFIG_FILES section.
   8083 # No need to generate them if there are no CONFIG_FILES.
   8084 # This happens for instance with `./config.status config.h'.
   8085 if test -n "$CONFIG_FILES"; then
   8086 
   8087 
   8088 ac_cr=`echo X | tr X '\015'`
   8089 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   8090 # But we know of no other shell where ac_cr would be empty at this
   8091 # point, so we can use a bashism as a fallback.
   8092 if test "x$ac_cr" = x; then
   8093   eval ac_cr=\$\'\\r\'
   8094 fi
   8095 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   8096 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   8097   ac_cs_awk_cr='\\r'
   8098 else
   8099   ac_cs_awk_cr=$ac_cr
   8100 fi
   8101 
   8102 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   8103 _ACEOF
   8104 
   8105 
   8106 {
   8107   echo "cat >conf$$subs.awk <<_ACEOF" &&
   8108   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   8109   echo "_ACEOF"
   8110 } >conf$$subs.sh ||
   8111   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   8112 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   8113 ac_delim='%!_!# '
   8114 for ac_last_try in false false false false false :; do
   8115   . ./conf$$subs.sh ||
   8116     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   8117 
   8118   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   8119   if test $ac_delim_n = $ac_delim_num; then
   8120     break
   8121   elif $ac_last_try; then
   8122     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   8123   else
   8124     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   8125   fi
   8126 done
   8127 rm -f conf$$subs.sh
   8128 
   8129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   8130 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   8131 _ACEOF
   8132 sed -n '
   8133 h
   8134 s/^/S["/; s/!.*/"]=/
   8135 p
   8136 g
   8137 s/^[^!]*!//
   8138 :repl
   8139 t repl
   8140 s/'"$ac_delim"'$//
   8141 t delim
   8142 :nl
   8143 h
   8144 s/\(.\{148\}\)..*/\1/
   8145 t more1
   8146 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   8147 p
   8148 n
   8149 b repl
   8150 :more1
   8151 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   8152 p
   8153 g
   8154 s/.\{148\}//
   8155 t nl
   8156 :delim
   8157 h
   8158 s/\(.\{148\}\)..*/\1/
   8159 t more2
   8160 s/["\\]/\\&/g; s/^/"/; s/$/"/
   8161 p
   8162 b
   8163 :more2
   8164 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   8165 p
   8166 g
   8167 s/.\{148\}//
   8168 t delim
   8169 ' <conf$$subs.awk | sed '
   8170 /^[^""]/{
   8171   N
   8172   s/\n//
   8173 }
   8174 ' >>$CONFIG_STATUS || ac_write_fail=1
   8175 rm -f conf$$subs.awk
   8176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   8177 _ACAWK
   8178 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   8179   for (key in S) S_is_set[key] = 1
   8180   FS = ""
   8181 
   8182 }
   8183 {
   8184   line = $ 0
   8185   nfields = split(line, field, "@")
   8186   substed = 0
   8187   len = length(field[1])
   8188   for (i = 2; i < nfields; i++) {
   8189     key = field[i]
   8190     keylen = length(key)
   8191     if (S_is_set[key]) {
   8192       value = S[key]
   8193       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   8194       len += length(value) + length(field[++i])
   8195       substed = 1
   8196     } else
   8197       len += 1 + keylen
   8198   }
   8199 
   8200   print line
   8201 }
   8202 
   8203 _ACAWK
   8204 _ACEOF
   8205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8206 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   8207   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   8208 else
   8209   cat
   8210 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   8211   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   8212 _ACEOF
   8213 
   8214 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   8215 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   8216 # trailing colons and then remove the whole line if VPATH becomes empty
   8217 # (actually we leave an empty line to preserve line numbers).
   8218 if test "x$srcdir" = x.; then
   8219   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   8220 h
   8221 s///
   8222 s/^/:/
   8223 s/[	 ]*$/:/
   8224 s/:\$(srcdir):/:/g
   8225 s/:\${srcdir}:/:/g
   8226 s/:@srcdir@:/:/g
   8227 s/^:*//
   8228 s/:*$//
   8229 x
   8230 s/\(=[	 ]*\).*/\1/
   8231 G
   8232 s/\n//
   8233 s/^[^=]*=[	 ]*$//
   8234 }'
   8235 fi
   8236 
   8237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8238 fi # test -n "$CONFIG_FILES"
   8239 
   8240 
   8241 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
   8242 shift
   8243 for ac_tag
   8244 do
   8245   case $ac_tag in
   8246   :[FHLC]) ac_mode=$ac_tag; continue;;
   8247   esac
   8248   case $ac_mode$ac_tag in
   8249   :[FHL]*:*);;
   8250   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   8251   :[FH]-) ac_tag=-:-;;
   8252   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   8253   esac
   8254   ac_save_IFS=$IFS
   8255   IFS=:
   8256   set x $ac_tag
   8257   IFS=$ac_save_IFS
   8258   shift
   8259   ac_file=$1
   8260   shift
   8261 
   8262   case $ac_mode in
   8263   :L) ac_source=$1;;
   8264   :[FH])
   8265     ac_file_inputs=
   8266     for ac_f
   8267     do
   8268       case $ac_f in
   8269       -) ac_f="$ac_tmp/stdin";;
   8270       *) # Look for the file first in the build tree, then in the source tree
   8271 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   8272 	 # because $ac_f cannot contain `:'.
   8273 	 test -f "$ac_f" ||
   8274 	   case $ac_f in
   8275 	   [\\/$]*) false;;
   8276 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   8277 	   esac ||
   8278 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   8279       esac
   8280       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   8281       as_fn_append ac_file_inputs " '$ac_f'"
   8282     done
   8283 
   8284     # Let's still pretend it is `configure' which instantiates (i.e., don't
   8285     # use $as_me), people would be surprised to read:
   8286     #    /* config.h.  Generated by config.status.  */
   8287     configure_input='Generated from '`
   8288 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   8289 	`' by configure.'
   8290     if test x"$ac_file" != x-; then
   8291       configure_input="$ac_file.  $configure_input"
   8292       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   8293 $as_echo "$as_me: creating $ac_file" >&6;}
   8294     fi
   8295     # Neutralize special characters interpreted by sed in replacement strings.
   8296     case $configure_input in #(
   8297     *\&* | *\|* | *\\* )
   8298        ac_sed_conf_input=`$as_echo "$configure_input" |
   8299        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   8300     *) ac_sed_conf_input=$configure_input;;
   8301     esac
   8302 
   8303     case $ac_tag in
   8304     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   8305       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   8306     esac
   8307     ;;
   8308   esac
   8309 
   8310   ac_dir=`$as_dirname -- "$ac_file" ||
   8311 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   8312 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   8313 	 X"$ac_file" : 'X\(//\)$' \| \
   8314 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   8315 $as_echo X"$ac_file" |
   8316     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   8317 	    s//\1/
   8318 	    q
   8319 	  }
   8320 	  /^X\(\/\/\)[^/].*/{
   8321 	    s//\1/
   8322 	    q
   8323 	  }
   8324 	  /^X\(\/\/\)$/{
   8325 	    s//\1/
   8326 	    q
   8327 	  }
   8328 	  /^X\(\/\).*/{
   8329 	    s//\1/
   8330 	    q
   8331 	  }
   8332 	  s/.*/./; q'`
   8333   as_dir="$ac_dir"; as_fn_mkdir_p
   8334   ac_builddir=.
   8335 
   8336 case "$ac_dir" in
   8337 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   8338 *)
   8339   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   8340   # A ".." for each directory in $ac_dir_suffix.
   8341   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   8342   case $ac_top_builddir_sub in
   8343   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   8344   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   8345   esac ;;
   8346 esac
   8347 ac_abs_top_builddir=$ac_pwd
   8348 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   8349 # for backward compatibility:
   8350 ac_top_builddir=$ac_top_build_prefix
   8351 
   8352 case $srcdir in
   8353   .)  # We are building in place.
   8354     ac_srcdir=.
   8355     ac_top_srcdir=$ac_top_builddir_sub
   8356     ac_abs_top_srcdir=$ac_pwd ;;
   8357   [\\/]* | ?:[\\/]* )  # Absolute name.
   8358     ac_srcdir=$srcdir$ac_dir_suffix;
   8359     ac_top_srcdir=$srcdir
   8360     ac_abs_top_srcdir=$srcdir ;;
   8361   *) # Relative name.
   8362     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   8363     ac_top_srcdir=$ac_top_build_prefix$srcdir
   8364     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   8365 esac
   8366 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   8367 
   8368 
   8369   case $ac_mode in
   8370   :F)
   8371   #
   8372   # CONFIG_FILE
   8373   #
   8374 
   8375   case $INSTALL in
   8376   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   8377   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   8378   esac
   8379   ac_MKDIR_P=$MKDIR_P
   8380   case $MKDIR_P in
   8381   [\\/$]* | ?:[\\/]* ) ;;
   8382   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
   8383   esac
   8384 _ACEOF
   8385 
   8386 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8387 # If the template does not know about datarootdir, expand it.
   8388 # FIXME: This hack should be removed a few years after 2.60.
   8389 ac_datarootdir_hack=; ac_datarootdir_seen=
   8390 ac_sed_dataroot='
   8391 /datarootdir/ {
   8392   p
   8393   q
   8394 }
   8395 /@datadir@/p
   8396 /@docdir@/p
   8397 /@infodir@/p
   8398 /@localedir@/p
   8399 /@mandir@/p'
   8400 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   8401 *datarootdir*) ac_datarootdir_seen=yes;;
   8402 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   8403   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   8404 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   8405 _ACEOF
   8406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   8407   ac_datarootdir_hack='
   8408   s&@datadir@&$datadir&g
   8409   s&@docdir@&$docdir&g
   8410   s&@infodir@&$infodir&g
   8411   s&@localedir@&$localedir&g
   8412   s&@mandir@&$mandir&g
   8413   s&\\\${datarootdir}&$datarootdir&g' ;;
   8414 esac
   8415 _ACEOF
   8416 
   8417 # Neutralize VPATH when `$srcdir' = `.'.
   8418 # Shell code in configure.ac might set extrasub.
   8419 # FIXME: do we really want to maintain this feature?
   8420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   8421 ac_sed_extra="$ac_vpsub
   8422 $extrasub
   8423 _ACEOF
   8424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8425 :t
   8426 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   8427 s|@configure_input@|$ac_sed_conf_input|;t t
   8428 s&@top_builddir@&$ac_top_builddir_sub&;t t
   8429 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   8430 s&@srcdir@&$ac_srcdir&;t t
   8431 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   8432 s&@top_srcdir@&$ac_top_srcdir&;t t
   8433 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   8434 s&@builddir@&$ac_builddir&;t t
   8435 s&@abs_builddir@&$ac_abs_builddir&;t t
   8436 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   8437 s&@INSTALL@&$ac_INSTALL&;t t
   8438 s&@MKDIR_P@&$ac_MKDIR_P&;t t
   8439 $ac_datarootdir_hack
   8440 "
   8441 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
   8442   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   8443 
   8444 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   8445   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   8446   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   8447       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   8448   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   8449 which seems to be undefined.  Please make sure it is defined" >&5
   8450 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   8451 which seems to be undefined.  Please make sure it is defined" >&2;}
   8452 
   8453   rm -f "$ac_tmp/stdin"
   8454   case $ac_file in
   8455   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   8456   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   8457   esac \
   8458   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   8459  ;;
   8460 
   8461 
   8462   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   8463 $as_echo "$as_me: executing $ac_file commands" >&6;}
   8464  ;;
   8465   esac
   8466 
   8467 
   8468   case $ac_file$ac_mode in
   8469     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
   8470   # Older Autoconf quotes --file arguments for eval, but not when files
   8471   # are listed without --file.  Let's play safe and only enable the eval
   8472   # if we detect the quoting.
   8473   case $CONFIG_FILES in
   8474   *\'*) eval set x "$CONFIG_FILES" ;;
   8475   *)   set x $CONFIG_FILES ;;
   8476   esac
   8477   shift
   8478   for mf
   8479   do
   8480     # Strip MF so we end up with the name of the file.
   8481     mf=`echo "$mf" | sed -e 's/:.*$//'`
   8482     # Check whether this is an Automake generated Makefile or not.
   8483     # We used to match only the files named 'Makefile.in', but
   8484     # some people rename them; so instead we look at the file content.
   8485     # Grep'ing the first line is not enough: some people post-process
   8486     # each Makefile.in and add a new line on top of each file to say so.
   8487     # Grep'ing the whole file is not good either: AIX grep has a line
   8488     # limit of 2048, but all sed's we know have understand at least 4000.
   8489     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
   8490       dirpart=`$as_dirname -- "$mf" ||
   8491 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   8492 	 X"$mf" : 'X\(//\)[^/]' \| \
   8493 	 X"$mf" : 'X\(//\)$' \| \
   8494 	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
   8495 $as_echo X"$mf" |
   8496     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   8497 	    s//\1/
   8498 	    q
   8499 	  }
   8500 	  /^X\(\/\/\)[^/].*/{
   8501 	    s//\1/
   8502 	    q
   8503 	  }
   8504 	  /^X\(\/\/\)$/{
   8505 	    s//\1/
   8506 	    q
   8507 	  }
   8508 	  /^X\(\/\).*/{
   8509 	    s//\1/
   8510 	    q
   8511 	  }
   8512 	  s/.*/./; q'`
   8513     else
   8514       continue
   8515     fi
   8516     # Extract the definition of DEPDIR, am__include, and am__quote
   8517     # from the Makefile without running 'make'.
   8518     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
   8519     test -z "$DEPDIR" && continue
   8520     am__include=`sed -n 's/^am__include = //p' < "$mf"`
   8521     test -z "$am__include" && continue
   8522     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
   8523     # Find all dependency output files, they are included files with
   8524     # $(DEPDIR) in their names.  We invoke sed twice because it is the
   8525     # simplest approach to changing $(DEPDIR) to its actual value in the
   8526     # expansion.
   8527     for file in `sed -n "
   8528       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
   8529 	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
   8530       # Make sure the directory exists.
   8531       test -f "$dirpart/$file" && continue
   8532       fdir=`$as_dirname -- "$file" ||
   8533 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   8534 	 X"$file" : 'X\(//\)[^/]' \| \
   8535 	 X"$file" : 'X\(//\)$' \| \
   8536 	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
   8537 $as_echo X"$file" |
   8538     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   8539 	    s//\1/
   8540 	    q
   8541 	  }
   8542 	  /^X\(\/\/\)[^/].*/{
   8543 	    s//\1/
   8544 	    q
   8545 	  }
   8546 	  /^X\(\/\/\)$/{
   8547 	    s//\1/
   8548 	    q
   8549 	  }
   8550 	  /^X\(\/\).*/{
   8551 	    s//\1/
   8552 	    q
   8553 	  }
   8554 	  s/.*/./; q'`
   8555       as_dir=$dirpart/$fdir; as_fn_mkdir_p
   8556       # echo "creating $dirpart/$file"
   8557       echo '# dummy' > "$dirpart/$file"
   8558     done
   8559   done
   8560 }
   8561  ;;
   8562 
   8563   esac
   8564 done # for ac_tag
   8565 
   8566 
   8567 as_fn_exit 0
   8568 _ACEOF
   8569 ac_clean_files=$ac_clean_files_save
   8570 
   8571 test $ac_write_fail = 0 ||
   8572   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   8573 
   8574 
   8575 # configure is writing to config.log, and then calls config.status.
   8576 # config.status does its own redirection, appending to config.log.
   8577 # Unfortunately, on DOS this fails, as config.log is still kept open
   8578 # by configure, so config.status won't be able to write to it; its
   8579 # output is simply discarded.  So we exec the FD to /dev/null,
   8580 # effectively closing config.log, so it can be properly (re)opened and
   8581 # appended to by config.status.  When coming back to configure, we
   8582 # need to make the FD available again.
   8583 if test "$no_create" != yes; then
   8584   ac_cs_success=:
   8585   ac_config_status_args=
   8586   test "$silent" = yes &&
   8587     ac_config_status_args="$ac_config_status_args --quiet"
   8588   exec 5>/dev/null
   8589   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   8590   exec 5>>config.log
   8591   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   8592   # would make configure fail if this is the last instruction.
   8593   $ac_cs_success || as_fn_exit 1
   8594 fi
   8595 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   8596   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   8597 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   8598 fi
   8599 
   8600