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