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