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