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