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