Debian Codegraph @

configure

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