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