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