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