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 nfs4-acl-tools 0.3.3.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 as_nop=:
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20 then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else $as_nop
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143 then :
144 emulate sh
145 NULLCMD=:
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 setopt NO_GLOB_SUBST
150 else \$as_nop
151 case \`(set -o) 2>/dev/null\` in #(
152 *posix*) :
153 set -o posix ;; #(
154 *) :
155 ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else \$as_nop
174 exitcode=1; echo positional parameters were not saved.
175 fi
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
179 test -x / || exit 1"
180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
184 test \$(( 1 + 1 )) = 2 || exit 1"
185 if (eval "$as_required") 2>/dev/null
186 then :
187 as_have_required=yes
188 else $as_nop
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
192 then :
193
194 else $as_nop
195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 as_found=false
197 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
198 do
199 IFS=$as_save_IFS
200 case $as_dir in #(((
201 '') as_dir=./ ;;
202 */) ;;
203 *) as_dir=$as_dir/ ;;
204 esac
205 as_found=:
206 case $as_dir in #(
207 /*)
208 for as_base in sh bash ksh sh5; do
209 # Try only shells that exist, to save several forks.
210 as_shell=$as_dir$as_base
211 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
212 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
213 then :
214 CONFIG_SHELL=$as_shell as_have_required=yes
215 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
216 then :
217 break 2
218 fi
219 fi
220 done;;
221 esac
222 as_found=false
223 done
224 IFS=$as_save_IFS
225 if $as_found
226 then :
227
228 else $as_nop
229 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
230 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
231 then :
232 CONFIG_SHELL=$SHELL as_have_required=yes
233 fi
234 fi
235
236
237 if test "x$CONFIG_SHELL" != x
238 then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno
261 then :
262 printf "%s\n" "$0: This script requires a shell more modern than all"
263 printf "%s\n" "$0: the shells that I found on your system."
264 if test ${ZSH_VERSION+y} ; then
265 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
267 else
268 printf "%s\n" "$0: Please tell [email protected] about your system,
269 $0: including any error possibly output before this
270 $0: message. Then install a modern shell, or manually run
271 $0: the script under such a shell if you do have one."
272 fi
273 exit 1
274 fi
275 fi
276 fi
277 SHELL=${CONFIG_SHELL-/bin/sh}
278 export SHELL
279 # Unset more variables known to interfere with behavior of common tools.
280 CLICOLOR_FORCE= GREP_OPTIONS=
281 unset CLICOLOR_FORCE GREP_OPTIONS
282
283 ## --------------------- ##
284 ## M4sh Shell Functions. ##
285 ## --------------------- ##
286 # as_fn_unset VAR
287 # ---------------
288 # Portably unset VAR.
289 as_fn_unset ()
290 {
291 { eval $1=; unset $1;}
292 }
293 as_unset=as_fn_unset
294
295
296 # as_fn_set_status STATUS
297 # -----------------------
298 # Set $? to STATUS, without forking.
299 as_fn_set_status ()
300 {
301 return $1
302 } # as_fn_set_status
303
304 # as_fn_exit STATUS
305 # -----------------
306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307 as_fn_exit ()
308 {
309 set +e
310 as_fn_set_status $1
311 exit $1
312 } # as_fn_exit
313 # as_fn_nop
314 # ---------
315 # Do nothing but, unlike ":", preserve the value of $?.
316 as_fn_nop ()
317 {
318 return $?
319 }
320 as_nop=as_fn_nop
321
322 # as_fn_mkdir_p
323 # -------------
324 # Create "$as_dir" as a directory, including parents if necessary.
325 as_fn_mkdir_p ()
326 {
327
328 case $as_dir in #(
329 -*) as_dir=./$as_dir;;
330 esac
331 test -d "$as_dir" || eval $as_mkdir_p || {
332 as_dirs=
333 while :; do
334 case $as_dir in #(
335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 *) as_qdir=$as_dir;;
337 esac
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 printf "%s\n" X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)[^/].*/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\).*/{
358 s//\1/
359 q
360 }
361 s/.*/./; q'`
362 test -d "$as_dir" && break
363 done
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368 } # as_fn_mkdir_p
369
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
374 {
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
382 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384 then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else $as_nop
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
402 then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else $as_nop
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414 # as_fn_nop
415 # ---------
416 # Do nothing but, unlike ":", preserve the value of $?.
417 as_fn_nop ()
418 {
419 return $?
420 }
421 as_nop=as_fn_nop
422
423 # as_fn_error STATUS ERROR [LINENO LOG_FD]
424 # ----------------------------------------
425 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
426 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
427 # script with STATUS, using 1 if that was 0.
428 as_fn_error ()
429 {
430 as_status=$1; test $as_status -eq 0 && as_status=1
431 if test "$4"; then
432 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
434 fi
435 printf "%s\n" "$as_me: error: $2" >&2
436 as_fn_exit $as_status
437 } # as_fn_error
438
439 if expr a : '\(a\)' >/dev/null 2>&1 &&
440 test "X`expr 00001 : '.*\(...\)'`" = X001; then
441 as_expr=expr
442 else
443 as_expr=false
444 fi
445
446 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
447 as_basename=basename
448 else
449 as_basename=false
450 fi
451
452 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
453 as_dirname=dirname
454 else
455 as_dirname=false
456 fi
457
458 as_me=`$as_basename -- "$0" ||
459 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
460 X"$0" : 'X\(//\)$' \| \
461 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
462 printf "%s\n" X/"$0" |
463 sed '/^.*\/\([^/][^/]*\)\/*$/{
464 s//\1/
465 q
466 }
467 /^X\/\(\/\/\)$/{
468 s//\1/
469 q
470 }
471 /^X\/\(\/\).*/{
472 s//\1/
473 q
474 }
475 s/.*/./; q'`
476
477 # Avoid depending upon Character Ranges.
478 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
479 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
480 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
481 as_cr_digits='0123456789'
482 as_cr_alnum=$as_cr_Letters$as_cr_digits
483
484
485 as_lineno_1=$LINENO as_lineno_1a=$LINENO
486 as_lineno_2=$LINENO as_lineno_2a=$LINENO
487 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
488 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
489 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
490 sed -n '
491 p
492 /[$]LINENO/=
493 ' <$as_myself |
494 sed '
495 s/[$]LINENO.*/&-/
496 t lineno
497 b
498 :lineno
499 N
500 :loop
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502 t loop
503 s/-\n.*//
504 ' >$as_me.lineno &&
505 chmod +x "$as_me.lineno" ||
506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
507
508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509 # already done that, so ensure we don't try to do so again and fall
510 # in an infinite loop. This has already happened in practice.
511 _as_can_reexec=no; export _as_can_reexec
512 # Don't try to exec as it changes $[0], causing all sort of problems
513 # (the dirname of $[0] is not the place where we might find the
514 # original and so on. Autoconf is especially sensitive to this).
515 . "./$as_me.lineno"
516 # Exit status is that of the last command.
517 exit
518 }
519
520
521 # Determine whether it's possible to make 'echo' print without a newline.
522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523 # for compatibility with existing Makefiles.
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in #(((((
526 -n*)
527 case `echo 'xy\c'` in
528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
529 xy) ECHO_C='\c';;
530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
531 ECHO_T=' ';;
532 esac;;
533 *)
534 ECHO_N='-n';;
535 esac
536
537 # For backward compatibility with old third-party macros, we provide
538 # the shell variables $as_echo and $as_echo_n. New code should use
539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540 as_echo='printf %s\n'
541 as_echo_n='printf %s'
542
543
544 rm -f conf$$ conf$$.exe conf$$.file
545 if test -d conf$$.dir; then
546 rm -f conf$$.dir/conf$$.file
547 else
548 rm -f conf$$.dir
549 mkdir conf$$.dir 2>/dev/null
550 fi
551 if (echo >conf$$.file) 2>/dev/null; then
552 if ln -s conf$$.file conf$$ 2>/dev/null; then
553 as_ln_s='ln -s'
554 # ... but there are two gotchas:
555 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
556 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
557 # In both cases, we have to default to `cp -pR'.
558 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
559 as_ln_s='cp -pR'
560 elif ln conf$$.file conf$$ 2>/dev/null; then
561 as_ln_s=ln
562 else
563 as_ln_s='cp -pR'
564 fi
565 else
566 as_ln_s='cp -pR'
567 fi
568 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
569 rmdir conf$$.dir 2>/dev/null
570
571 if mkdir -p . 2>/dev/null; then
572 as_mkdir_p='mkdir -p "$as_dir"'
573 else
574 test -d ./-p && rmdir ./-p
575 as_mkdir_p=false
576 fi
577
578 as_test_x='test -x'
579 as_executable_p=as_fn_executable_p
580
581 # Sed expression to map a string onto a valid CPP name.
582 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
583
584 # Sed expression to map a string onto a valid variable name.
585 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
586
587
588 test -n "$DJDIR" || exec 7<&0 </dev/null
589 exec 6>&1
590
591 # Name of the host.
592 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
593 # so uname gets run too.
594 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
595
596 #
597 # Initializations.
598 #
599 ac_default_prefix=/usr/local
600 ac_clean_files=
601 ac_config_libobj_dir=.
602 LIBOBJS=
603 cross_compiling=no
604 subdirs=
605 MFLAGS=
606 MAKEFLAGS=
607
608 # Identity of this package.
609 PACKAGE_NAME='nfs4-acl-tools'
610 PACKAGE_TARNAME='nfs4-acl-tools'
611 PACKAGE_VERSION='0.3.3'
612 PACKAGE_STRING='nfs4-acl-tools 0.3.3'
613 PACKAGE_BUGREPORT=''
614 PACKAGE_URL=''
615
616 ac_default_prefix=/usr/local
617 # Factoring default headers for most tests.
618 ac_includes_default="\
619 #include <stddef.h>
620 #ifdef HAVE_STDIO_H
621 # include <stdio.h>
622 #endif
623 #ifdef HAVE_STDLIB_H
624 # include <stdlib.h>
625 #endif
626 #ifdef HAVE_STRING_H
627 # include <string.h>
628 #endif
629 #ifdef HAVE_INTTYPES_H
630 # include <inttypes.h>
631 #endif
632 #ifdef HAVE_STDINT_H
633 # include <stdint.h>
634 #endif
635 #ifdef HAVE_STRINGS_H
636 # include <strings.h>
637 #endif
638 #ifdef HAVE_SYS_TYPES_H
639 # include <sys/types.h>
640 #endif
641 #ifdef HAVE_SYS_STAT_H
642 # include <sys/stat.h>
643 #endif
644 #ifdef HAVE_UNISTD_H
645 # include <unistd.h>
646 #endif"
647
648 ac_header_c_list=
649 ac_subst_vars='LTLIBOBJS
650 have_zipped_manpages
651 libattr
652 LN_S
653 sort
654 SORT
655 echo
656 ECHO
657 sed
658 SED
659 awk
660 AWK
661 makedepend
662 MAKEDEPEND
663 zip
664 ZIP
665 tar
666 TAR
667 libtool
668 LIBTOOL
669 make
670 MAKE
671 cc
672 pkg_platform
673 pkg_distribution
674 pkg_group
675 pkg_user
676 malloc_lib
677 opt_build
678 debug_build
679 pkg_release
680 pkg_version
681 pkg_name
682 LIBOBJS
683 host_os
684 host_vendor
685 host_cpu
686 host
687 build_os
688 build_vendor
689 build_cpu
690 build
691 EGREP
692 GREP
693 CPP
694 OBJEXT
695 EXEEXT
696 ac_ct_CC
697 CPPFLAGS
698 LDFLAGS
699 CFLAGS
700 CC
701 INSTALL_DATA
702 INSTALL_SCRIPT
703 INSTALL_PROGRAM
704 enable_shared
705 target_alias
706 host_alias
707 build_alias
708 LIBS
709 ECHO_T
710 ECHO_N
711 ECHO_C
712 DEFS
713 mandir
714 localedir
715 libdir
716 psdir
717 pdfdir
718 dvidir
719 htmldir
720 infodir
721 docdir
722 oldincludedir
723 includedir
724 runstatedir
725 localstatedir
726 sharedstatedir
727 sysconfdir
728 datadir
729 datarootdir
730 libexecdir
731 sbindir
732 bindir
733 program_transform_name
734 prefix
735 exec_prefix
736 PACKAGE_URL
737 PACKAGE_BUGREPORT
738 PACKAGE_STRING
739 PACKAGE_VERSION
740 PACKAGE_TARNAME
741 PACKAGE_NAME
742 PATH_SEPARATOR
743 SHELL'
744 ac_subst_files=''
745 ac_user_opts='
746 enable_option_checking
747 enable_shared
748 '
749 ac_precious_vars='build_alias
750 host_alias
751 target_alias
752 CC
753 CFLAGS
754 LDFLAGS
755 LIBS
756 CPPFLAGS
757 CPP'
758
759
760 # Initialize some variables set by options.
761 ac_init_help=
762 ac_init_version=false
763 ac_unrecognized_opts=
764 ac_unrecognized_sep=
765 # The variables have the same names as the options, with
766 # dashes changed to underlines.
767 cache_file=/dev/null
768 exec_prefix=NONE
769 no_create=
770 no_recursion=
771 prefix=NONE
772 program_prefix=NONE
773 program_suffix=NONE
774 program_transform_name=s,x,x,
775 silent=
776 site=
777 srcdir=
778 verbose=
779 x_includes=NONE
780 x_libraries=NONE
781
782 # Installation directory options.
783 # These are left unexpanded so users can "make install exec_prefix=/foo"
784 # and all the variables that are supposed to be based on exec_prefix
785 # by default will actually change.
786 # Use braces instead of parens because sh, perl, etc. also accept them.
787 # (The list follows the same order as the GNU Coding Standards.)
788 bindir='${exec_prefix}/bin'
789 sbindir='${exec_prefix}/sbin'
790 libexecdir='${exec_prefix}/libexec'
791 datarootdir='${prefix}/share'
792 datadir='${datarootdir}'
793 sysconfdir='${prefix}/etc'
794 sharedstatedir='${prefix}/com'
795 localstatedir='${prefix}/var'
796 runstatedir='${localstatedir}/run'
797 includedir='${prefix}/include'
798 oldincludedir='/usr/include'
799 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
800 infodir='${datarootdir}/info'
801 htmldir='${docdir}'
802 dvidir='${docdir}'
803 pdfdir='${docdir}'
804 psdir='${docdir}'
805 libdir='${exec_prefix}/lib'
806 localedir='${datarootdir}/locale'
807 mandir='${datarootdir}/man'
808
809 ac_prev=
810 ac_dashdash=
811 for ac_option
812 do
813 # If the previous option needs an argument, assign it.
814 if test -n "$ac_prev"; then
815 eval $ac_prev=\$ac_option
816 ac_prev=
817 continue
818 fi
819
820 case $ac_option in
821 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
822 *=) ac_optarg= ;;
823 *) ac_optarg=yes ;;
824 esac
825
826 case $ac_dashdash$ac_option in
827 --)
828 ac_dashdash=yes ;;
829
830 -bindir | --bindir | --bindi | --bind | --bin | --bi)
831 ac_prev=bindir ;;
832 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
833 bindir=$ac_optarg ;;
834
835 -build | --build | --buil | --bui | --bu)
836 ac_prev=build_alias ;;
837 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
838 build_alias=$ac_optarg ;;
839
840 -cache-file | --cache-file | --cache-fil | --cache-fi \
841 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
842 ac_prev=cache_file ;;
843 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
844 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
845 cache_file=$ac_optarg ;;
846
847 --config-cache | -C)
848 cache_file=config.cache ;;
849
850 -datadir | --datadir | --datadi | --datad)
851 ac_prev=datadir ;;
852 -datadir=* | --datadir=* | --datadi=* | --datad=*)
853 datadir=$ac_optarg ;;
854
855 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
856 | --dataroo | --dataro | --datar)
857 ac_prev=datarootdir ;;
858 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
859 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
860 datarootdir=$ac_optarg ;;
861
862 -disable-* | --disable-*)
863 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
864 # Reject names that are not valid shell variable names.
865 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
866 as_fn_error $? "invalid feature name: \`$ac_useropt'"
867 ac_useropt_orig=$ac_useropt
868 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
869 case $ac_user_opts in
870 *"
871 "enable_$ac_useropt"
872 "*) ;;
873 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
874 ac_unrecognized_sep=', ';;
875 esac
876 eval enable_$ac_useropt=no ;;
877
878 -docdir | --docdir | --docdi | --doc | --do)
879 ac_prev=docdir ;;
880 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
881 docdir=$ac_optarg ;;
882
883 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
884 ac_prev=dvidir ;;
885 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
886 dvidir=$ac_optarg ;;
887
888 -enable-* | --enable-*)
889 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892 as_fn_error $? "invalid feature name: \`$ac_useropt'"
893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
896 *"
897 "enable_$ac_useropt"
898 "*) ;;
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
901 esac
902 eval enable_$ac_useropt=\$ac_optarg ;;
903
904 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
905 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
906 | --exec | --exe | --ex)
907 ac_prev=exec_prefix ;;
908 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
909 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
910 | --exec=* | --exe=* | --ex=*)
911 exec_prefix=$ac_optarg ;;
912
913 -gas | --gas | --ga | --g)
914 # Obsolete; use --with-gas.
915 with_gas=yes ;;
916
917 -help | --help | --hel | --he | -h)
918 ac_init_help=long ;;
919 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
920 ac_init_help=recursive ;;
921 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
922 ac_init_help=short ;;
923
924 -host | --host | --hos | --ho)
925 ac_prev=host_alias ;;
926 -host=* | --host=* | --hos=* | --ho=*)
927 host_alias=$ac_optarg ;;
928
929 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
930 ac_prev=htmldir ;;
931 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
932 | --ht=*)
933 htmldir=$ac_optarg ;;
934
935 -includedir | --includedir | --includedi | --included | --include \
936 | --includ | --inclu | --incl | --inc)
937 ac_prev=includedir ;;
938 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
939 | --includ=* | --inclu=* | --incl=* | --inc=*)
940 includedir=$ac_optarg ;;
941
942 -infodir | --infodir | --infodi | --infod | --info | --inf)
943 ac_prev=infodir ;;
944 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
945 infodir=$ac_optarg ;;
946
947 -libdir | --libdir | --libdi | --libd)
948 ac_prev=libdir ;;
949 -libdir=* | --libdir=* | --libdi=* | --libd=*)
950 libdir=$ac_optarg ;;
951
952 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
953 | --libexe | --libex | --libe)
954 ac_prev=libexecdir ;;
955 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
956 | --libexe=* | --libex=* | --libe=*)
957 libexecdir=$ac_optarg ;;
958
959 -localedir | --localedir | --localedi | --localed | --locale)
960 ac_prev=localedir ;;
961 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
962 localedir=$ac_optarg ;;
963
964 -localstatedir | --localstatedir | --localstatedi | --localstated \
965 | --localstate | --localstat | --localsta | --localst | --locals)
966 ac_prev=localstatedir ;;
967 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
968 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
969 localstatedir=$ac_optarg ;;
970
971 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
972 ac_prev=mandir ;;
973 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
974 mandir=$ac_optarg ;;
975
976 -nfp | --nfp | --nf)
977 # Obsolete; use --without-fp.
978 with_fp=no ;;
979
980 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
981 | --no-cr | --no-c | -n)
982 no_create=yes ;;
983
984 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
985 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
986 no_recursion=yes ;;
987
988 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
989 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
990 | --oldin | --oldi | --old | --ol | --o)
991 ac_prev=oldincludedir ;;
992 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
993 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
994 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
995 oldincludedir=$ac_optarg ;;
996
997 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
998 ac_prev=prefix ;;
999 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1000 prefix=$ac_optarg ;;
1001
1002 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1003 | --program-pre | --program-pr | --program-p)
1004 ac_prev=program_prefix ;;
1005 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1006 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1007 program_prefix=$ac_optarg ;;
1008
1009 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1010 | --program-suf | --program-su | --program-s)
1011 ac_prev=program_suffix ;;
1012 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1013 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1014 program_suffix=$ac_optarg ;;
1015
1016 -program-transform-name | --program-transform-name \
1017 | --program-transform-nam | --program-transform-na \
1018 | --program-transform-n | --program-transform- \
1019 | --program-transform | --program-transfor \
1020 | --program-transfo | --program-transf \
1021 | --program-trans | --program-tran \
1022 | --progr-tra | --program-tr | --program-t)
1023 ac_prev=program_transform_name ;;
1024 -program-transform-name=* | --program-transform-name=* \
1025 | --program-transform-nam=* | --program-transform-na=* \
1026 | --program-transform-n=* | --program-transform-=* \
1027 | --program-transform=* | --program-transfor=* \
1028 | --program-transfo=* | --program-transf=* \
1029 | --program-trans=* | --program-tran=* \
1030 | --progr-tra=* | --program-tr=* | --program-t=*)
1031 program_transform_name=$ac_optarg ;;
1032
1033 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1034 ac_prev=pdfdir ;;
1035 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1036 pdfdir=$ac_optarg ;;
1037
1038 -psdir | --psdir | --psdi | --psd | --ps)
1039 ac_prev=psdir ;;
1040 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1041 psdir=$ac_optarg ;;
1042
1043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1044 | -silent | --silent | --silen | --sile | --sil)
1045 silent=yes ;;
1046
1047 -runstatedir | --runstatedir | --runstatedi | --runstated \
1048 | --runstate | --runstat | --runsta | --runst | --runs \
1049 | --run | --ru | --r)
1050 ac_prev=runstatedir ;;
1051 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1052 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1053 | --run=* | --ru=* | --r=*)
1054 runstatedir=$ac_optarg ;;
1055
1056 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1057 ac_prev=sbindir ;;
1058 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1059 | --sbi=* | --sb=*)
1060 sbindir=$ac_optarg ;;
1061
1062 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1063 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1064 | --sharedst | --shareds | --shared | --share | --shar \
1065 | --sha | --sh)
1066 ac_prev=sharedstatedir ;;
1067 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1068 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1069 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1070 | --sha=* | --sh=*)
1071 sharedstatedir=$ac_optarg ;;
1072
1073 -site | --site | --sit)
1074 ac_prev=site ;;
1075 -site=* | --site=* | --sit=*)
1076 site=$ac_optarg ;;
1077
1078 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1079 ac_prev=srcdir ;;
1080 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1081 srcdir=$ac_optarg ;;
1082
1083 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1084 | --syscon | --sysco | --sysc | --sys | --sy)
1085 ac_prev=sysconfdir ;;
1086 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1087 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1088 sysconfdir=$ac_optarg ;;
1089
1090 -target | --target | --targe | --targ | --tar | --ta | --t)
1091 ac_prev=target_alias ;;
1092 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1093 target_alias=$ac_optarg ;;
1094
1095 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1096 verbose=yes ;;
1097
1098 -version | --version | --versio | --versi | --vers | -V)
1099 ac_init_version=: ;;
1100
1101 -with-* | --with-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 as_fn_error $? "invalid package name: \`$ac_useropt'"
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1109 *"
1110 "with_$ac_useropt"
1111 "*) ;;
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1114 esac
1115 eval with_$ac_useropt=\$ac_optarg ;;
1116
1117 -without-* | --without-*)
1118 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 as_fn_error $? "invalid package name: \`$ac_useropt'"
1122 ac_useropt_orig=$ac_useropt
1123 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1125 *"
1126 "with_$ac_useropt"
1127 "*) ;;
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1129 ac_unrecognized_sep=', ';;
1130 esac
1131 eval with_$ac_useropt=no ;;
1132
1133 --x)
1134 # Obsolete; use --with-x.
1135 with_x=yes ;;
1136
1137 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1138 | --x-incl | --x-inc | --x-in | --x-i)
1139 ac_prev=x_includes ;;
1140 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1141 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1142 x_includes=$ac_optarg ;;
1143
1144 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1145 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1146 ac_prev=x_libraries ;;
1147 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1148 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1149 x_libraries=$ac_optarg ;;
1150
1151 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1152 Try \`$0 --help' for more information"
1153 ;;
1154
1155 *=*)
1156 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1157 # Reject names that are not valid shell variable names.
1158 case $ac_envvar in #(
1159 '' | [0-9]* | *[!_$as_cr_alnum]* )
1160 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1161 esac
1162 eval $ac_envvar=\$ac_optarg
1163 export $ac_envvar ;;
1164
1165 *)
1166 # FIXME: should be removed in autoconf 3.0.
1167 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1168 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1169 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1170 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1171 ;;
1172
1173 esac
1174 done
1175
1176 if test -n "$ac_prev"; then
1177 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1178 as_fn_error $? "missing argument to $ac_option"
1179 fi
1180
1181 if test -n "$ac_unrecognized_opts"; then
1182 case $enable_option_checking in
1183 no) ;;
1184 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1185 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1186 esac
1187 fi
1188
1189 # Check all directory arguments for consistency.
1190 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1191 datadir sysconfdir sharedstatedir localstatedir includedir \
1192 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1193 libdir localedir mandir runstatedir
1194 do
1195 eval ac_val=\$$ac_var
1196 # Remove trailing slashes.
1197 case $ac_val in
1198 */ )
1199 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1200 eval $ac_var=\$ac_val;;
1201 esac
1202 # Be sure to have absolute directory names.
1203 case $ac_val in
1204 [\\/$]* | ?:[\\/]* ) continue;;
1205 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1206 esac
1207 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1208 done
1209
1210 # There might be people who depend on the old broken behavior: `$host'
1211 # used to hold the argument of --host etc.
1212 # FIXME: To remove some day.
1213 build=$build_alias
1214 host=$host_alias
1215 target=$target_alias
1216
1217 # FIXME: To remove some day.
1218 if test "x$host_alias" != x; then
1219 if test "x$build_alias" = x; then
1220 cross_compiling=maybe
1221 elif test "x$build_alias" != "x$host_alias"; then
1222 cross_compiling=yes
1223 fi
1224 fi
1225
1226 ac_tool_prefix=
1227 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1228
1229 test "$silent" = yes && exec 6>/dev/null
1230
1231
1232 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1233 ac_ls_di=`ls -di .` &&
1234 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1235 as_fn_error $? "working directory cannot be determined"
1236 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1237 as_fn_error $? "pwd does not report name of working directory"
1238
1239
1240 # Find the source files, if location was not specified.
1241 if test -z "$srcdir"; then
1242 ac_srcdir_defaulted=yes
1243 # Try the directory containing this script, then the parent directory.
1244 ac_confdir=`$as_dirname -- "$as_myself" ||
1245 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1246 X"$as_myself" : 'X\(//\)[^/]' \| \
1247 X"$as_myself" : 'X\(//\)$' \| \
1248 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1249 printf "%s\n" X"$as_myself" |
1250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1251 s//\1/
1252 q
1253 }
1254 /^X\(\/\/\)[^/].*/{
1255 s//\1/
1256 q
1257 }
1258 /^X\(\/\/\)$/{
1259 s//\1/
1260 q
1261 }
1262 /^X\(\/\).*/{
1263 s//\1/
1264 q
1265 }
1266 s/.*/./; q'`
1267 srcdir=$ac_confdir
1268 if test ! -r "$srcdir/$ac_unique_file"; then
1269 srcdir=..
1270 fi
1271 else
1272 ac_srcdir_defaulted=no
1273 fi
1274 if test ! -r "$srcdir/$ac_unique_file"; then
1275 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1276 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1277 fi
1278 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1279 ac_abs_confdir=`(
1280 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1281 pwd)`
1282 # When building in place, set srcdir=.
1283 if test "$ac_abs_confdir" = "$ac_pwd"; then
1284 srcdir=.
1285 fi
1286 # Remove unnecessary trailing slashes from srcdir.
1287 # Double slashes in file names in object file debugging info
1288 # mess up M-x gdb in Emacs.
1289 case $srcdir in
1290 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1291 esac
1292 for ac_var in $ac_precious_vars; do
1293 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_env_${ac_var}_value=\$${ac_var}
1295 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1296 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1297 done
1298
1299 #
1300 # Report the --help message.
1301 #
1302 if test "$ac_init_help" = "long"; then
1303 # Omit some internal or obsolete options to make the list less imposing.
1304 # This message is too long to be a string in the A/UX 3.1 sh.
1305 cat <<_ACEOF
1306 \`configure' configures nfs4-acl-tools 0.3.3 to adapt to many kinds of systems.
1307
1308 Usage: $0 [OPTION]... [VAR=VALUE]...
1309
1310 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1311 VAR=VALUE. See below for descriptions of some of the useful variables.
1312
1313 Defaults for the options are specified in brackets.
1314
1315 Configuration:
1316 -h, --help display this help and exit
1317 --help=short display options specific to this package
1318 --help=recursive display the short help of all the included packages
1319 -V, --version display version information and exit
1320 -q, --quiet, --silent do not print \`checking ...' messages
1321 --cache-file=FILE cache test results in FILE [disabled]
1322 -C, --config-cache alias for \`--cache-file=config.cache'
1323 -n, --no-create do not create output files
1324 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1325
1326 Installation directories:
1327 --prefix=PREFIX install architecture-independent files in PREFIX
1328 [$ac_default_prefix]
1329 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1330 [PREFIX]
1331
1332 By default, \`make install' will install all the files in
1333 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1334 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1335 for instance \`--prefix=\$HOME'.
1336
1337 For better control, use the options below.
1338
1339 Fine tuning of the installation directories:
1340 --bindir=DIR user executables [EPREFIX/bin]
1341 --sbindir=DIR system admin executables [EPREFIX/sbin]
1342 --libexecdir=DIR program executables [EPREFIX/libexec]
1343 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1344 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1345 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1346 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1347 --libdir=DIR object code libraries [EPREFIX/lib]
1348 --includedir=DIR C header files [PREFIX/include]
1349 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1350 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1351 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1352 --infodir=DIR info documentation [DATAROOTDIR/info]
1353 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1354 --mandir=DIR man documentation [DATAROOTDIR/man]
1355 --docdir=DIR documentation root [DATAROOTDIR/doc/nfs4-acl-tools]
1356 --htmldir=DIR html documentation [DOCDIR]
1357 --dvidir=DIR dvi documentation [DOCDIR]
1358 --pdfdir=DIR pdf documentation [DOCDIR]
1359 --psdir=DIR ps documentation [DOCDIR]
1360 _ACEOF
1361
1362 cat <<\_ACEOF
1363
1364 System types:
1365 --build=BUILD configure for building on BUILD [guessed]
1366 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1367 _ACEOF
1368 fi
1369
1370 if test -n "$ac_init_help"; then
1371 case $ac_init_help in
1372 short | recursive ) echo "Configuration of nfs4-acl-tools 0.3.3:";;
1373 esac
1374 cat <<\_ACEOF
1375
1376 Optional Features:
1377 --disable-option-checking ignore unrecognized --enable/--with options
1378 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1379 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1380 --enable-shared=yes/no Enable use of shared libraries default=no
1381
1382 Some influential environment variables:
1383 CC C compiler command
1384 CFLAGS C compiler flags
1385 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1386 nonstandard directory <lib dir>
1387 LIBS libraries to pass to the linker, e.g. -l<library>
1388 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1389 you have headers in a nonstandard directory <include dir>
1390 CPP C preprocessor
1391
1392 Use these variables to override the choices made by `configure' or to help
1393 it to find libraries and programs with nonstandard names/locations.
1394
1395 Report bugs to the package provider.
1396 _ACEOF
1397 ac_status=$?
1398 fi
1399
1400 if test "$ac_init_help" = "recursive"; then
1401 # If there are subdirs, report their specific --help.
1402 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1403 test -d "$ac_dir" ||
1404 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1405 continue
1406 ac_builddir=.
1407
1408 case "$ac_dir" in
1409 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1410 *)
1411 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1412 # A ".." for each directory in $ac_dir_suffix.
1413 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1414 case $ac_top_builddir_sub in
1415 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1416 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1417 esac ;;
1418 esac
1419 ac_abs_top_builddir=$ac_pwd
1420 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1421 # for backward compatibility:
1422 ac_top_builddir=$ac_top_build_prefix
1423
1424 case $srcdir in
1425 .) # We are building in place.
1426 ac_srcdir=.
1427 ac_top_srcdir=$ac_top_builddir_sub
1428 ac_abs_top_srcdir=$ac_pwd ;;
1429 [\\/]* | ?:[\\/]* ) # Absolute name.
1430 ac_srcdir=$srcdir$ac_dir_suffix;
1431 ac_top_srcdir=$srcdir
1432 ac_abs_top_srcdir=$srcdir ;;
1433 *) # Relative name.
1434 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1435 ac_top_srcdir=$ac_top_build_prefix$srcdir
1436 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1437 esac
1438 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1439
1440 cd "$ac_dir" || { ac_status=$?; continue; }
1441 # Check for configure.gnu first; this name is used for a wrapper for
1442 # Metaconfig's "Configure" on case-insensitive file systems.
1443 if test -f "$ac_srcdir/configure.gnu"; then
1444 echo &&
1445 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1446 elif test -f "$ac_srcdir/configure"; then
1447 echo &&
1448 $SHELL "$ac_srcdir/configure" --help=recursive
1449 else
1450 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1451 fi || ac_status=$?
1452 cd "$ac_pwd" || { ac_status=$?; break; }
1453 done
1454 fi
1455
1456 test -n "$ac_init_help" && exit $ac_status
1457 if $ac_init_version; then
1458 cat <<\_ACEOF
1459 nfs4-acl-tools configure 0.3.3
1460 generated by GNU Autoconf 2.71
1461
1462 Copyright (C) 2021 Free Software Foundation, Inc.
1463 This configure script is free software; the Free Software Foundation
1464 gives unlimited permission to copy, distribute and modify it.
1465 _ACEOF
1466 exit
1467 fi
1468
1469 ## ------------------------ ##
1470 ## Autoconf initialization. ##
1471 ## ------------------------ ##
1472
1473 # ac_fn_c_try_compile LINENO
1474 # --------------------------
1475 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1476 ac_fn_c_try_compile ()
1477 {
1478 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1479 rm -f conftest.$ac_objext conftest.beam
1480 if { { ac_try="$ac_compile"
1481 case "(($ac_try" in
1482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1483 *) ac_try_echo=$ac_try;;
1484 esac
1485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1486 printf "%s\n" "$ac_try_echo"; } >&5
1487 (eval "$ac_compile") 2>conftest.err
1488 ac_status=$?
1489 if test -s conftest.err; then
1490 grep -v '^ *+' conftest.err >conftest.er1
1491 cat conftest.er1 >&5
1492 mv -f conftest.er1 conftest.err
1493 fi
1494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1495 test $ac_status = 0; } && {
1496 test -z "$ac_c_werror_flag" ||
1497 test ! -s conftest.err
1498 } && test -s conftest.$ac_objext
1499 then :
1500 ac_retval=0
1501 else $as_nop
1502 printf "%s\n" "$as_me: failed program was:" >&5
1503 sed 's/^/| /' conftest.$ac_ext >&5
1504
1505 ac_retval=1
1506 fi
1507 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1508 as_fn_set_status $ac_retval
1509
1510 } # ac_fn_c_try_compile
1511
1512 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1513 # -------------------------------------------------------
1514 # Tests whether HEADER exists and can be compiled using the include files in
1515 # INCLUDES, setting the cache variable VAR accordingly.
1516 ac_fn_c_check_header_compile ()
1517 {
1518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1520 printf %s "checking for $2... " >&6; }
1521 if eval test \${$3+y}
1522 then :
1523 printf %s "(cached) " >&6
1524 else $as_nop
1525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1526 /* end confdefs.h. */
1527 $4
1528 #include <$2>
1529 _ACEOF
1530 if ac_fn_c_try_compile "$LINENO"
1531 then :
1532 eval "$3=yes"
1533 else $as_nop
1534 eval "$3=no"
1535 fi
1536 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1537 fi
1538 eval ac_res=\$$3
1539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1540 printf "%s\n" "$ac_res" >&6; }
1541 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1542
1543 } # ac_fn_c_check_header_compile
1544
1545 # ac_fn_c_try_cpp LINENO
1546 # ----------------------
1547 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1548 ac_fn_c_try_cpp ()
1549 {
1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551 if { { ac_try="$ac_cpp conftest.$ac_ext"
1552 case "(($ac_try" in
1553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554 *) ac_try_echo=$ac_try;;
1555 esac
1556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557 printf "%s\n" "$ac_try_echo"; } >&5
1558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1559 ac_status=$?
1560 if test -s conftest.err; then
1561 grep -v '^ *+' conftest.err >conftest.er1
1562 cat conftest.er1 >&5
1563 mv -f conftest.er1 conftest.err
1564 fi
1565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566 test $ac_status = 0; } > conftest.i && {
1567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1568 test ! -s conftest.err
1569 }
1570 then :
1571 ac_retval=0
1572 else $as_nop
1573 printf "%s\n" "$as_me: failed program was:" >&5
1574 sed 's/^/| /' conftest.$ac_ext >&5
1575
1576 ac_retval=1
1577 fi
1578 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1579 as_fn_set_status $ac_retval
1580
1581 } # ac_fn_c_try_cpp
1582
1583 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1584 # -------------------------------------------
1585 # Tests whether TYPE exists after having included INCLUDES, setting cache
1586 # variable VAR accordingly.
1587 ac_fn_c_check_type ()
1588 {
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1591 printf %s "checking for $2... " >&6; }
1592 if eval test \${$3+y}
1593 then :
1594 printf %s "(cached) " >&6
1595 else $as_nop
1596 eval "$3=no"
1597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1598 /* end confdefs.h. */
1599 $4
1600 int
1601 main (void)
1602 {
1603 if (sizeof ($2))
1604 return 0;
1605 ;
1606 return 0;
1607 }
1608 _ACEOF
1609 if ac_fn_c_try_compile "$LINENO"
1610 then :
1611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1612 /* end confdefs.h. */
1613 $4
1614 int
1615 main (void)
1616 {
1617 if (sizeof (($2)))
1618 return 0;
1619 ;
1620 return 0;
1621 }
1622 _ACEOF
1623 if ac_fn_c_try_compile "$LINENO"
1624 then :
1625
1626 else $as_nop
1627 eval "$3=yes"
1628 fi
1629 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1630 fi
1631 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1632 fi
1633 eval ac_res=\$$3
1634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1635 printf "%s\n" "$ac_res" >&6; }
1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637
1638 } # ac_fn_c_check_type
1639
1640 # ac_fn_c_try_run LINENO
1641 # ----------------------
1642 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1643 # executables *can* be run.
1644 ac_fn_c_try_run ()
1645 {
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 if { { ac_try="$ac_link"
1648 case "(($ac_try" in
1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650 *) ac_try_echo=$ac_try;;
1651 esac
1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653 printf "%s\n" "$ac_try_echo"; } >&5
1654 (eval "$ac_link") 2>&5
1655 ac_status=$?
1656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1658 { { case "(($ac_try" in
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1661 esac
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 printf "%s\n" "$ac_try_echo"; } >&5
1664 (eval "$ac_try") 2>&5
1665 ac_status=$?
1666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; }; }
1668 then :
1669 ac_retval=0
1670 else $as_nop
1671 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1672 printf "%s\n" "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.$ac_ext >&5
1674
1675 ac_retval=$ac_status
1676 fi
1677 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679 as_fn_set_status $ac_retval
1680
1681 } # ac_fn_c_try_run
1682
1683 # ac_fn_c_try_link LINENO
1684 # -----------------------
1685 # Try to link conftest.$ac_ext, and return whether this succeeded.
1686 ac_fn_c_try_link ()
1687 {
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1690 if { { ac_try="$ac_link"
1691 case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 printf "%s\n" "$ac_try_echo"; } >&5
1697 (eval "$ac_link") 2>conftest.err
1698 ac_status=$?
1699 if test -s conftest.err; then
1700 grep -v '^ *+' conftest.err >conftest.er1
1701 cat conftest.er1 >&5
1702 mv -f conftest.er1 conftest.err
1703 fi
1704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } && {
1706 test -z "$ac_c_werror_flag" ||
1707 test ! -s conftest.err
1708 } && test -s conftest$ac_exeext && {
1709 test "$cross_compiling" = yes ||
1710 test -x conftest$ac_exeext
1711 }
1712 then :
1713 ac_retval=0
1714 else $as_nop
1715 printf "%s\n" "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1717
1718 ac_retval=1
1719 fi
1720 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1721 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1722 # interfere with the next link command; also delete a directory that is
1723 # left behind by Apple's compiler. We do this before executing the actions.
1724 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726 as_fn_set_status $ac_retval
1727
1728 } # ac_fn_c_try_link
1729
1730 # ac_fn_c_check_func LINENO FUNC VAR
1731 # ----------------------------------
1732 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1733 ac_fn_c_check_func ()
1734 {
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737 printf %s "checking for $2... " >&6; }
1738 if eval test \${$3+y}
1739 then :
1740 printf %s "(cached) " >&6
1741 else $as_nop
1742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743 /* end confdefs.h. */
1744 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1746 #define $2 innocuous_$2
1747
1748 /* System header to define __stub macros and hopefully few prototypes,
1749 which can conflict with char $2 (); below. */
1750
1751 #include <limits.h>
1752 #undef $2
1753
1754 /* Override any GCC internal prototype to avoid an error.
1755 Use char because int might match the return type of a GCC
1756 builtin and then its argument prototype would still apply. */
1757 #ifdef __cplusplus
1758 extern "C"
1759 #endif
1760 char $2 ();
1761 /* The GNU C library defines this for functions which it implements
1762 to always fail with ENOSYS. Some functions are actually named
1763 something starting with __ and the normal name is an alias. */
1764 #if defined __stub_$2 || defined __stub___$2
1765 choke me
1766 #endif
1767
1768 int
1769 main (void)
1770 {
1771 return $2 ();
1772 ;
1773 return 0;
1774 }
1775 _ACEOF
1776 if ac_fn_c_try_link "$LINENO"
1777 then :
1778 eval "$3=yes"
1779 else $as_nop
1780 eval "$3=no"
1781 fi
1782 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1783 conftest$ac_exeext conftest.$ac_ext
1784 fi
1785 eval ac_res=\$$3
1786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 printf "%s\n" "$ac_res" >&6; }
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789
1790 } # ac_fn_c_check_func
1791 ac_configure_args_raw=
1792 for ac_arg
1793 do
1794 case $ac_arg in
1795 *\'*)
1796 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1797 esac
1798 as_fn_append ac_configure_args_raw " '$ac_arg'"
1799 done
1800
1801 case $ac_configure_args_raw in
1802 *$as_nl*)
1803 ac_safe_unquote= ;;
1804 *)
1805 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1806 ac_unsafe_a="$ac_unsafe_z#~"
1807 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1808 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1809 esac
1810
1811 cat >config.log <<_ACEOF
1812 This file contains any messages produced by compilers while
1813 running configure, to aid debugging if configure makes a mistake.
1814
1815 It was created by nfs4-acl-tools $as_me 0.3.3, which was
1816 generated by GNU Autoconf 2.71. Invocation command line was
1817
1818 $ $0$ac_configure_args_raw
1819
1820 _ACEOF
1821 exec 5>>config.log
1822 {
1823 cat <<_ASUNAME
1824 ## --------- ##
1825 ## Platform. ##
1826 ## --------- ##
1827
1828 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1829 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1830 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1831 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1832 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1833
1834 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1835 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1836
1837 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1838 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1839 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1840 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1841 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1842 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1843 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1844
1845 _ASUNAME
1846
1847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1848 for as_dir in $PATH
1849 do
1850 IFS=$as_save_IFS
1851 case $as_dir in #(((
1852 '') as_dir=./ ;;
1853 */) ;;
1854 *) as_dir=$as_dir/ ;;
1855 esac
1856 printf "%s\n" "PATH: $as_dir"
1857 done
1858 IFS=$as_save_IFS
1859
1860 } >&5
1861
1862 cat >&5 <<_ACEOF
1863
1864
1865 ## ----------- ##
1866 ## Core tests. ##
1867 ## ----------- ##
1868
1869 _ACEOF
1870
1871
1872 # Keep a trace of the command line.
1873 # Strip out --no-create and --no-recursion so they do not pile up.
1874 # Strip out --silent because we don't want to record it for future runs.
1875 # Also quote any args containing shell meta-characters.
1876 # Make two passes to allow for proper duplicate-argument suppression.
1877 ac_configure_args=
1878 ac_configure_args0=
1879 ac_configure_args1=
1880 ac_must_keep_next=false
1881 for ac_pass in 1 2
1882 do
1883 for ac_arg
1884 do
1885 case $ac_arg in
1886 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1887 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1888 | -silent | --silent | --silen | --sile | --sil)
1889 continue ;;
1890 *\'*)
1891 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1892 esac
1893 case $ac_pass in
1894 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1895 2)
1896 as_fn_append ac_configure_args1 " '$ac_arg'"
1897 if test $ac_must_keep_next = true; then
1898 ac_must_keep_next=false # Got value, back to normal.
1899 else
1900 case $ac_arg in
1901 *=* | --config-cache | -C | -disable-* | --disable-* \
1902 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1903 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1904 | -with-* | --with-* | -without-* | --without-* | --x)
1905 case "$ac_configure_args0 " in
1906 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1907 esac
1908 ;;
1909 -* ) ac_must_keep_next=true ;;
1910 esac
1911 fi
1912 as_fn_append ac_configure_args " '$ac_arg'"
1913 ;;
1914 esac
1915 done
1916 done
1917 { ac_configure_args0=; unset ac_configure_args0;}
1918 { ac_configure_args1=; unset ac_configure_args1;}
1919
1920 # When interrupted or exit'd, cleanup temporary files, and complete
1921 # config.log. We remove comments because anyway the quotes in there
1922 # would cause problems or look ugly.
1923 # WARNING: Use '\'' to represent an apostrophe within the trap.
1924 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1925 trap 'exit_status=$?
1926 # Sanitize IFS.
1927 IFS=" "" $as_nl"
1928 # Save into config.log some information that might help in debugging.
1929 {
1930 echo
1931
1932 printf "%s\n" "## ---------------- ##
1933 ## Cache variables. ##
1934 ## ---------------- ##"
1935 echo
1936 # The following way of writing the cache mishandles newlines in values,
1937 (
1938 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1939 eval ac_val=\$$ac_var
1940 case $ac_val in #(
1941 *${as_nl}*)
1942 case $ac_var in #(
1943 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1944 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1945 esac
1946 case $ac_var in #(
1947 _ | IFS | as_nl) ;; #(
1948 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1949 *) { eval $ac_var=; unset $ac_var;} ;;
1950 esac ;;
1951 esac
1952 done
1953 (set) 2>&1 |
1954 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1955 *${as_nl}ac_space=\ *)
1956 sed -n \
1957 "s/'\''/'\''\\\\'\'''\''/g;
1958 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1959 ;; #(
1960 *)
1961 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1962 ;;
1963 esac |
1964 sort
1965 )
1966 echo
1967
1968 printf "%s\n" "## ----------------- ##
1969 ## Output variables. ##
1970 ## ----------------- ##"
1971 echo
1972 for ac_var in $ac_subst_vars
1973 do
1974 eval ac_val=\$$ac_var
1975 case $ac_val in
1976 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1977 esac
1978 printf "%s\n" "$ac_var='\''$ac_val'\''"
1979 done | sort
1980 echo
1981
1982 if test -n "$ac_subst_files"; then
1983 printf "%s\n" "## ------------------- ##
1984 ## File substitutions. ##
1985 ## ------------------- ##"
1986 echo
1987 for ac_var in $ac_subst_files
1988 do
1989 eval ac_val=\$$ac_var
1990 case $ac_val in
1991 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1992 esac
1993 printf "%s\n" "$ac_var='\''$ac_val'\''"
1994 done | sort
1995 echo
1996 fi
1997
1998 if test -s confdefs.h; then
1999 printf "%s\n" "## ----------- ##
2000 ## confdefs.h. ##
2001 ## ----------- ##"
2002 echo
2003 cat confdefs.h
2004 echo
2005 fi
2006 test "$ac_signal" != 0 &&
2007 printf "%s\n" "$as_me: caught signal $ac_signal"
2008 printf "%s\n" "$as_me: exit $exit_status"
2009 } >&5
2010 rm -f core *.core core.conftest.* &&
2011 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2012 exit $exit_status
2013 ' 0
2014 for ac_signal in 1 2 13 15; do
2015 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2016 done
2017 ac_signal=0
2018
2019 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2020 rm -f -r conftest* confdefs.h
2021
2022 printf "%s\n" "/* confdefs.h */" > confdefs.h
2023
2024 # Predefined preprocessor variables.
2025
2026 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2027
2028 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2029
2030 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2031
2032 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2033
2034 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2035
2036 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2037
2038
2039 # Let the site file select an alternate cache file if it wants to.
2040 # Prefer an explicitly selected file to automatically selected ones.
2041 if test -n "$CONFIG_SITE"; then
2042 ac_site_files="$CONFIG_SITE"
2043 elif test "x$prefix" != xNONE; then
2044 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2045 else
2046 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2047 fi
2048
2049 for ac_site_file in $ac_site_files
2050 do
2051 case $ac_site_file in #(
2052 */*) :
2053 ;; #(
2054 *) :
2055 ac_site_file=./$ac_site_file ;;
2056 esac
2057 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2059 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2060 sed 's/^/| /' "$ac_site_file" >&5
2061 . "$ac_site_file" \
2062 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2063 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2064 as_fn_error $? "failed to load site script $ac_site_file
2065 See \`config.log' for more details" "$LINENO" 5; }
2066 fi
2067 done
2068
2069 if test -r "$cache_file"; then
2070 # Some versions of bash will fail to source /dev/null (special files
2071 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2072 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2074 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2075 case $cache_file in
2076 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2077 *) . "./$cache_file";;
2078 esac
2079 fi
2080 else
2081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2082 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2083 >$cache_file
2084 fi
2085
2086 # Test code for whether the C compiler supports C89 (global declarations)
2087 ac_c_conftest_c89_globals='
2088 /* Does the compiler advertise C89 conformance?
2089 Do not test the value of __STDC__, because some compilers set it to 0
2090 while being otherwise adequately conformant. */
2091 #if !defined __STDC__
2092 # error "Compiler does not advertise C89 conformance"
2093 #endif
2094
2095 #include <stddef.h>
2096 #include <stdarg.h>
2097 struct stat;
2098 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2099 struct buf { int x; };
2100 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2101 static char *e (p, i)
2102 char **p;
2103 int i;
2104 {
2105 return p[i];
2106 }
2107 static char *f (char * (*g) (char **, int), char **p, ...)
2108 {
2109 char *s;
2110 va_list v;
2111 va_start (v,p);
2112 s = g (p, va_arg (v,int));
2113 va_end (v);
2114 return s;
2115 }
2116
2117 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2118 function prototypes and stuff, but not \xHH hex character constants.
2119 These do not provoke an error unfortunately, instead are silently treated
2120 as an "x". The following induces an error, until -std is added to get
2121 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2122 array size at least. It is necessary to write \x00 == 0 to get something
2123 that is true only with -std. */
2124 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2125
2126 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2127 inside strings and character constants. */
2128 #define FOO(x) '\''x'\''
2129 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2130
2131 int test (int i, double x);
2132 struct s1 {int (*f) (int a);};
2133 struct s2 {int (*f) (double a);};
2134 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2135 int, int);'
2136
2137 # Test code for whether the C compiler supports C89 (body of main).
2138 ac_c_conftest_c89_main='
2139 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2140 '
2141
2142 # Test code for whether the C compiler supports C99 (global declarations)
2143 ac_c_conftest_c99_globals='
2144 // Does the compiler advertise C99 conformance?
2145 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2146 # error "Compiler does not advertise C99 conformance"
2147 #endif
2148
2149 #include <stdbool.h>
2150 extern int puts (const char *);
2151 extern int printf (const char *, ...);
2152 extern int dprintf (int, const char *, ...);
2153 extern void *malloc (size_t);
2154
2155 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2156 // dprintf is used instead of fprintf to avoid needing to declare
2157 // FILE and stderr.
2158 #define debug(...) dprintf (2, __VA_ARGS__)
2159 #define showlist(...) puts (#__VA_ARGS__)
2160 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2161 static void
2162 test_varargs_macros (void)
2163 {
2164 int x = 1234;
2165 int y = 5678;
2166 debug ("Flag");
2167 debug ("X = %d\n", x);
2168 showlist (The first, second, and third items.);
2169 report (x>y, "x is %d but y is %d", x, y);
2170 }
2171
2172 // Check long long types.
2173 #define BIG64 18446744073709551615ull
2174 #define BIG32 4294967295ul
2175 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2176 #if !BIG_OK
2177 #error "your preprocessor is broken"
2178 #endif
2179 #if BIG_OK
2180 #else
2181 #error "your preprocessor is broken"
2182 #endif
2183 static long long int bignum = -9223372036854775807LL;
2184 static unsigned long long int ubignum = BIG64;
2185
2186 struct incomplete_array
2187 {
2188 int datasize;
2189 double data[];
2190 };
2191
2192 struct named_init {
2193 int number;
2194 const wchar_t *name;
2195 double average;
2196 };
2197
2198 typedef const char *ccp;
2199
2200 static inline int
2201 test_restrict (ccp restrict text)
2202 {
2203 // See if C++-style comments work.
2204 // Iterate through items via the restricted pointer.
2205 // Also check for declarations in for loops.
2206 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2207 continue;
2208 return 0;
2209 }
2210
2211 // Check varargs and va_copy.
2212 static bool
2213 test_varargs (const char *format, ...)
2214 {
2215 va_list args;
2216 va_start (args, format);
2217 va_list args_copy;
2218 va_copy (args_copy, args);
2219
2220 const char *str = "";
2221 int number = 0;
2222 float fnumber = 0;
2223
2224 while (*format)
2225 {
2226 switch (*format++)
2227 {
2228 case '\''s'\'': // string
2229 str = va_arg (args_copy, const char *);
2230 break;
2231 case '\''d'\'': // int
2232 number = va_arg (args_copy, int);
2233 break;
2234 case '\''f'\'': // float
2235 fnumber = va_arg (args_copy, double);
2236 break;
2237 default:
2238 break;
2239 }
2240 }
2241 va_end (args_copy);
2242 va_end (args);
2243
2244 return *str && number && fnumber;
2245 }
2246 '
2247
2248 # Test code for whether the C compiler supports C99 (body of main).
2249 ac_c_conftest_c99_main='
2250 // Check bool.
2251 _Bool success = false;
2252 success |= (argc != 0);
2253
2254 // Check restrict.
2255 if (test_restrict ("String literal") == 0)
2256 success = true;
2257 char *restrict newvar = "Another string";
2258
2259 // Check varargs.
2260 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2261 test_varargs_macros ();
2262
2263 // Check flexible array members.
2264 struct incomplete_array *ia =
2265 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2266 ia->datasize = 10;
2267 for (int i = 0; i < ia->datasize; ++i)
2268 ia->data[i] = i * 1.234;
2269
2270 // Check named initializers.
2271 struct named_init ni = {
2272 .number = 34,
2273 .name = L"Test wide string",
2274 .average = 543.34343,
2275 };
2276
2277 ni.number = 58;
2278
2279 int dynamic_array[ni.number];
2280 dynamic_array[0] = argv[0][0];
2281 dynamic_array[ni.number - 1] = 543;
2282
2283 // work around unused variable warnings
2284 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2285 || dynamic_array[ni.number - 1] != 543);
2286 '
2287
2288 # Test code for whether the C compiler supports C11 (global declarations)
2289 ac_c_conftest_c11_globals='
2290 // Does the compiler advertise C11 conformance?
2291 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2292 # error "Compiler does not advertise C11 conformance"
2293 #endif
2294
2295 // Check _Alignas.
2296 char _Alignas (double) aligned_as_double;
2297 char _Alignas (0) no_special_alignment;
2298 extern char aligned_as_int;
2299 char _Alignas (0) _Alignas (int) aligned_as_int;
2300
2301 // Check _Alignof.
2302 enum
2303 {
2304 int_alignment = _Alignof (int),
2305 int_array_alignment = _Alignof (int[100]),
2306 char_alignment = _Alignof (char)
2307 };
2308 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2309
2310 // Check _Noreturn.
2311 int _Noreturn does_not_return (void) { for (;;) continue; }
2312
2313 // Check _Static_assert.
2314 struct test_static_assert
2315 {
2316 int x;
2317 _Static_assert (sizeof (int) <= sizeof (long int),
2318 "_Static_assert does not work in struct");
2319 long int y;
2320 };
2321
2322 // Check UTF-8 literals.
2323 #define u8 syntax error!
2324 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2325
2326 // Check duplicate typedefs.
2327 typedef long *long_ptr;
2328 typedef long int *long_ptr;
2329 typedef long_ptr long_ptr;
2330
2331 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2332 struct anonymous
2333 {
2334 union {
2335 struct { int i; int j; };
2336 struct { int k; long int l; } w;
2337 };
2338 int m;
2339 } v1;
2340 '
2341
2342 # Test code for whether the C compiler supports C11 (body of main).
2343 ac_c_conftest_c11_main='
2344 _Static_assert ((offsetof (struct anonymous, i)
2345 == offsetof (struct anonymous, w.k)),
2346 "Anonymous union alignment botch");
2347 v1.i = 2;
2348 v1.w.k = 5;
2349 ok |= v1.i != 5;
2350 '
2351
2352 # Test code for whether the C compiler supports C11 (complete).
2353 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2354 ${ac_c_conftest_c99_globals}
2355 ${ac_c_conftest_c11_globals}
2356
2357 int
2358 main (int argc, char **argv)
2359 {
2360 int ok = 0;
2361 ${ac_c_conftest_c89_main}
2362 ${ac_c_conftest_c99_main}
2363 ${ac_c_conftest_c11_main}
2364 return ok;
2365 }
2366 "
2367
2368 # Test code for whether the C compiler supports C99 (complete).
2369 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2370 ${ac_c_conftest_c99_globals}
2371
2372 int
2373 main (int argc, char **argv)
2374 {
2375 int ok = 0;
2376 ${ac_c_conftest_c89_main}
2377 ${ac_c_conftest_c99_main}
2378 return ok;
2379 }
2380 "
2381
2382 # Test code for whether the C compiler supports C89 (complete).
2383 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2384
2385 int
2386 main (int argc, char **argv)
2387 {
2388 int ok = 0;
2389 ${ac_c_conftest_c89_main}
2390 return ok;
2391 }
2392 "
2393
2394 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2395 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2396 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2397 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2398 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2399 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2400 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2401 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2402 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2403
2404 # Auxiliary files required by this configure script.
2405 ac_aux_files="config.guess config.sub install-sh"
2406
2407 # Locations in which to look for auxiliary files.
2408 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2409
2410 # Search for a directory containing all of the required auxiliary files,
2411 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2412 # If we don't find one directory that contains all the files we need,
2413 # we report the set of missing files from the *first* directory in
2414 # $ac_aux_dir_candidates and give up.
2415 ac_missing_aux_files=""
2416 ac_first_candidate=:
2417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419 as_found=false
2420 for as_dir in $ac_aux_dir_candidates
2421 do
2422 IFS=$as_save_IFS
2423 case $as_dir in #(((
2424 '') as_dir=./ ;;
2425 */) ;;
2426 *) as_dir=$as_dir/ ;;
2427 esac
2428 as_found=:
2429
2430 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2431 ac_aux_dir_found=yes
2432 ac_install_sh=
2433 for ac_aux in $ac_aux_files
2434 do
2435 # As a special case, if "install-sh" is required, that requirement
2436 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2437 # and $ac_install_sh is set appropriately for whichever one is found.
2438 if test x"$ac_aux" = x"install-sh"
2439 then
2440 if test -f "${as_dir}install-sh"; then
2441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2442 ac_install_sh="${as_dir}install-sh -c"
2443 elif test -f "${as_dir}install.sh"; then
2444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2445 ac_install_sh="${as_dir}install.sh -c"
2446 elif test -f "${as_dir}shtool"; then
2447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2448 ac_install_sh="${as_dir}shtool install -c"
2449 else
2450 ac_aux_dir_found=no
2451 if $ac_first_candidate; then
2452 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2453 else
2454 break
2455 fi
2456 fi
2457 else
2458 if test -f "${as_dir}${ac_aux}"; then
2459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2460 else
2461 ac_aux_dir_found=no
2462 if $ac_first_candidate; then
2463 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2464 else
2465 break
2466 fi
2467 fi
2468 fi
2469 done
2470 if test "$ac_aux_dir_found" = yes; then
2471 ac_aux_dir="$as_dir"
2472 break
2473 fi
2474 ac_first_candidate=false
2475
2476 as_found=false
2477 done
2478 IFS=$as_save_IFS
2479 if $as_found
2480 then :
2481
2482 else $as_nop
2483 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2484 fi
2485
2486
2487 # These three variables are undocumented and unsupported,
2488 # and are intended to be withdrawn in a future Autoconf release.
2489 # They can cause serious problems if a builder's source tree is in a directory
2490 # whose full name contains unusual characters.
2491 if test -f "${ac_aux_dir}config.guess"; then
2492 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2493 fi
2494 if test -f "${ac_aux_dir}config.sub"; then
2495 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2496 fi
2497 if test -f "$ac_aux_dir/configure"; then
2498 ac_configure="$SHELL ${ac_aux_dir}configure"
2499 fi
2500
2501 # Check that the precious variables saved in the cache have kept the same
2502 # value.
2503 ac_cache_corrupted=false
2504 for ac_var in $ac_precious_vars; do
2505 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2506 eval ac_new_set=\$ac_env_${ac_var}_set
2507 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2508 eval ac_new_val=\$ac_env_${ac_var}_value
2509 case $ac_old_set,$ac_new_set in
2510 set,)
2511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2512 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2513 ac_cache_corrupted=: ;;
2514 ,set)
2515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2516 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2517 ac_cache_corrupted=: ;;
2518 ,);;
2519 *)
2520 if test "x$ac_old_val" != "x$ac_new_val"; then
2521 # differences in whitespace do not lead to failure.
2522 ac_old_val_w=`echo x $ac_old_val`
2523 ac_new_val_w=`echo x $ac_new_val`
2524 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2526 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2527 ac_cache_corrupted=:
2528 else
2529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2530 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2531 eval $ac_var=\$ac_old_val
2532 fi
2533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2534 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2536 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2537 fi;;
2538 esac
2539 # Pass precious variables to config.status.
2540 if test "$ac_new_set" = set; then
2541 case $ac_new_val in
2542 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2543 *) ac_arg=$ac_var=$ac_new_val ;;
2544 esac
2545 case " $ac_configure_args " in
2546 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2547 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2548 esac
2549 fi
2550 done
2551 if $ac_cache_corrupted; then
2552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2553 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2555 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2556 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2557 and start over" "$LINENO" 5
2558 fi
2559 ## -------------------- ##
2560 ## Main body of script. ##
2561 ## -------------------- ##
2562
2563 ac_ext=c
2564 ac_cpp='$CPP $CPPFLAGS'
2565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2568
2569
2570 ac_config_headers="$ac_config_headers include/config.h"
2571
2572
2573
2574
2575
2576 # Check whether --enable-shared was given.
2577 if test ${enable_shared+y}
2578 then :
2579 enableval=$enable_shared;
2580 else $as_nop
2581 enable_shared=no
2582 fi
2583
2584
2585
2586
2587
2588 # Find a good install program. We prefer a C program (faster),
2589 # so one script is as good as another. But avoid the broken or
2590 # incompatible versions:
2591 # SysV /etc/install, /usr/sbin/install
2592 # SunOS /usr/etc/install
2593 # IRIX /sbin/install
2594 # AIX /bin/install
2595 # AmigaOS /C/install, which installs bootblocks on floppy discs
2596 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2597 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2598 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2599 # OS/2's system install, which has a completely different semantic
2600 # ./install, which can be erroneously created by make from ./install.sh.
2601 # Reject install programs that cannot install multiple files.
2602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2603 printf %s "checking for a BSD-compatible install... " >&6; }
2604 if test -z "$INSTALL"; then
2605 if test ${ac_cv_path_install+y}
2606 then :
2607 printf %s "(cached) " >&6
2608 else $as_nop
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 for as_dir in $PATH
2611 do
2612 IFS=$as_save_IFS
2613 case $as_dir in #(((
2614 '') as_dir=./ ;;
2615 */) ;;
2616 *) as_dir=$as_dir/ ;;
2617 esac
2618 # Account for fact that we put trailing slashes in our PATH walk.
2619 case $as_dir in #((
2620 ./ | /[cC]/* | \
2621 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2622 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2623 /usr/ucb/* ) ;;
2624 *)
2625 # OSF1 and SCO ODT 3.0 have their own names for install.
2626 # Don't use installbsd from OSF since it installs stuff as root
2627 # by default.
2628 for ac_prog in ginstall scoinst install; do
2629 for ac_exec_ext in '' $ac_executable_extensions; do
2630 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2631 if test $ac_prog = install &&
2632 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2633 # AIX install. It has an incompatible calling convention.
2634 :
2635 elif test $ac_prog = install &&
2636 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2637 # program-specific install script used by HP pwplus--don't use.
2638 :
2639 else
2640 rm -rf conftest.one conftest.two conftest.dir
2641 echo one > conftest.one
2642 echo two > conftest.two
2643 mkdir conftest.dir
2644 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2645 test -s conftest.one && test -s conftest.two &&
2646 test -s conftest.dir/conftest.one &&
2647 test -s conftest.dir/conftest.two
2648 then
2649 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2650 break 3
2651 fi
2652 fi
2653 fi
2654 done
2655 done
2656 ;;
2657 esac
2658
2659 done
2660 IFS=$as_save_IFS
2661
2662 rm -rf conftest.one conftest.two conftest.dir
2663
2664 fi
2665 if test ${ac_cv_path_install+y}; then
2666 INSTALL=$ac_cv_path_install
2667 else
2668 # As a last resort, use the slow shell script. Don't cache a
2669 # value for INSTALL within a source directory, because that will
2670 # break other packages using the cache if that directory is
2671 # removed, or if the value is a relative name.
2672 INSTALL=$ac_install_sh
2673 fi
2674 fi
2675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2676 printf "%s\n" "$INSTALL" >&6; }
2677
2678 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2679 # It thinks the first close brace ends the variable substitution.
2680 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2681
2682 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2683
2684 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695 ac_ext=c
2696 ac_cpp='$CPP $CPPFLAGS'
2697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2700 if test -n "$ac_tool_prefix"; then
2701 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2702 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2704 printf %s "checking for $ac_word... " >&6; }
2705 if test ${ac_cv_prog_CC+y}
2706 then :
2707 printf %s "(cached) " >&6
2708 else $as_nop
2709 if test -n "$CC"; then
2710 ac_cv_prog_CC="$CC" # Let the user override the test.
2711 else
2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713 for as_dir in $PATH
2714 do
2715 IFS=$as_save_IFS
2716 case $as_dir in #(((
2717 '') as_dir=./ ;;
2718 */) ;;
2719 *) as_dir=$as_dir/ ;;
2720 esac
2721 for ac_exec_ext in '' $ac_executable_extensions; do
2722 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2723 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2725 break 2
2726 fi
2727 done
2728 done
2729 IFS=$as_save_IFS
2730
2731 fi
2732 fi
2733 CC=$ac_cv_prog_CC
2734 if test -n "$CC"; then
2735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2736 printf "%s\n" "$CC" >&6; }
2737 else
2738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2739 printf "%s\n" "no" >&6; }
2740 fi
2741
2742
2743 fi
2744 if test -z "$ac_cv_prog_CC"; then
2745 ac_ct_CC=$CC
2746 # Extract the first word of "gcc", so it can be a program name with args.
2747 set dummy gcc; ac_word=$2
2748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2749 printf %s "checking for $ac_word... " >&6; }
2750 if test ${ac_cv_prog_ac_ct_CC+y}
2751 then :
2752 printf %s "(cached) " >&6
2753 else $as_nop
2754 if test -n "$ac_ct_CC"; then
2755 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2756 else
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 for as_dir in $PATH
2759 do
2760 IFS=$as_save_IFS
2761 case $as_dir in #(((
2762 '') as_dir=./ ;;
2763 */) ;;
2764 *) as_dir=$as_dir/ ;;
2765 esac
2766 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2768 ac_cv_prog_ac_ct_CC="gcc"
2769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2770 break 2
2771 fi
2772 done
2773 done
2774 IFS=$as_save_IFS
2775
2776 fi
2777 fi
2778 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2779 if test -n "$ac_ct_CC"; then
2780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2781 printf "%s\n" "$ac_ct_CC" >&6; }
2782 else
2783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784 printf "%s\n" "no" >&6; }
2785 fi
2786
2787 if test "x$ac_ct_CC" = x; then
2788 CC=""
2789 else
2790 case $cross_compiling:$ac_tool_warned in
2791 yes:)
2792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2793 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2794 ac_tool_warned=yes ;;
2795 esac
2796 CC=$ac_ct_CC
2797 fi
2798 else
2799 CC="$ac_cv_prog_CC"
2800 fi
2801
2802 if test -z "$CC"; then
2803 if test -n "$ac_tool_prefix"; then
2804 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2805 set dummy ${ac_tool_prefix}cc; ac_word=$2
2806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807 printf %s "checking for $ac_word... " >&6; }
2808 if test ${ac_cv_prog_CC+y}
2809 then :
2810 printf %s "(cached) " >&6
2811 else $as_nop
2812 if test -n "$CC"; then
2813 ac_cv_prog_CC="$CC" # Let the user override the test.
2814 else
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816 for as_dir in $PATH
2817 do
2818 IFS=$as_save_IFS
2819 case $as_dir in #(((
2820 '') as_dir=./ ;;
2821 */) ;;
2822 *) as_dir=$as_dir/ ;;
2823 esac
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2826 ac_cv_prog_CC="${ac_tool_prefix}cc"
2827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2828 break 2
2829 fi
2830 done
2831 done
2832 IFS=$as_save_IFS
2833
2834 fi
2835 fi
2836 CC=$ac_cv_prog_CC
2837 if test -n "$CC"; then
2838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2839 printf "%s\n" "$CC" >&6; }
2840 else
2841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842 printf "%s\n" "no" >&6; }
2843 fi
2844
2845
2846 fi
2847 fi
2848 if test -z "$CC"; then
2849 # Extract the first word of "cc", so it can be a program name with args.
2850 set dummy cc; ac_word=$2
2851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852 printf %s "checking for $ac_word... " >&6; }
2853 if test ${ac_cv_prog_CC+y}
2854 then :
2855 printf %s "(cached) " >&6
2856 else $as_nop
2857 if test -n "$CC"; then
2858 ac_cv_prog_CC="$CC" # Let the user override the test.
2859 else
2860 ac_prog_rejected=no
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 for as_dir in $PATH
2863 do
2864 IFS=$as_save_IFS
2865 case $as_dir in #(((
2866 '') as_dir=./ ;;
2867 */) ;;
2868 *) as_dir=$as_dir/ ;;
2869 esac
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2872 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2873 ac_prog_rejected=yes
2874 continue
2875 fi
2876 ac_cv_prog_CC="cc"
2877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2878 break 2
2879 fi
2880 done
2881 done
2882 IFS=$as_save_IFS
2883
2884 if test $ac_prog_rejected = yes; then
2885 # We found a bogon in the path, so make sure we never use it.
2886 set dummy $ac_cv_prog_CC
2887 shift
2888 if test $# != 0; then
2889 # We chose a different compiler from the bogus one.
2890 # However, it has the same basename, so the bogon will be chosen
2891 # first if we set CC to just the basename; use the full file name.
2892 shift
2893 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2894 fi
2895 fi
2896 fi
2897 fi
2898 CC=$ac_cv_prog_CC
2899 if test -n "$CC"; then
2900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2901 printf "%s\n" "$CC" >&6; }
2902 else
2903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904 printf "%s\n" "no" >&6; }
2905 fi
2906
2907
2908 fi
2909 if test -z "$CC"; then
2910 if test -n "$ac_tool_prefix"; then
2911 for ac_prog in cl.exe
2912 do
2913 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2914 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2916 printf %s "checking for $ac_word... " >&6; }
2917 if test ${ac_cv_prog_CC+y}
2918 then :
2919 printf %s "(cached) " >&6
2920 else $as_nop
2921 if test -n "$CC"; then
2922 ac_cv_prog_CC="$CC" # Let the user override the test.
2923 else
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 for as_dir in $PATH
2926 do
2927 IFS=$as_save_IFS
2928 case $as_dir in #(((
2929 '') as_dir=./ ;;
2930 */) ;;
2931 *) as_dir=$as_dir/ ;;
2932 esac
2933 for ac_exec_ext in '' $ac_executable_extensions; do
2934 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2935 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2937 break 2
2938 fi
2939 done
2940 done
2941 IFS=$as_save_IFS
2942
2943 fi
2944 fi
2945 CC=$ac_cv_prog_CC
2946 if test -n "$CC"; then
2947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2948 printf "%s\n" "$CC" >&6; }
2949 else
2950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951 printf "%s\n" "no" >&6; }
2952 fi
2953
2954
2955 test -n "$CC" && break
2956 done
2957 fi
2958 if test -z "$CC"; then
2959 ac_ct_CC=$CC
2960 for ac_prog in cl.exe
2961 do
2962 # Extract the first word of "$ac_prog", so it can be a program name with args.
2963 set dummy $ac_prog; ac_word=$2
2964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 printf %s "checking for $ac_word... " >&6; }
2966 if test ${ac_cv_prog_ac_ct_CC+y}
2967 then :
2968 printf %s "(cached) " >&6
2969 else $as_nop
2970 if test -n "$ac_ct_CC"; then
2971 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2972 else
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 for as_dir in $PATH
2975 do
2976 IFS=$as_save_IFS
2977 case $as_dir in #(((
2978 '') as_dir=./ ;;
2979 */) ;;
2980 *) as_dir=$as_dir/ ;;
2981 esac
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2984 ac_cv_prog_ac_ct_CC="$ac_prog"
2985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2986 break 2
2987 fi
2988 done
2989 done
2990 IFS=$as_save_IFS
2991
2992 fi
2993 fi
2994 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2995 if test -n "$ac_ct_CC"; then
2996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2997 printf "%s\n" "$ac_ct_CC" >&6; }
2998 else
2999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 printf "%s\n" "no" >&6; }
3001 fi
3002
3003
3004 test -n "$ac_ct_CC" && break
3005 done
3006
3007 if test "x$ac_ct_CC" = x; then
3008 CC=""
3009 else
3010 case $cross_compiling:$ac_tool_warned in
3011 yes:)
3012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3013 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3014 ac_tool_warned=yes ;;
3015 esac
3016 CC=$ac_ct_CC
3017 fi
3018 fi
3019
3020 fi
3021 if test -z "$CC"; then
3022 if test -n "$ac_tool_prefix"; then
3023 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3024 set dummy ${ac_tool_prefix}clang; ac_word=$2
3025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026 printf %s "checking for $ac_word... " >&6; }
3027 if test ${ac_cv_prog_CC+y}
3028 then :
3029 printf %s "(cached) " >&6
3030 else $as_nop
3031 if test -n "$CC"; then
3032 ac_cv_prog_CC="$CC" # Let the user override the test.
3033 else
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 for as_dir in $PATH
3036 do
3037 IFS=$as_save_IFS
3038 case $as_dir in #(((
3039 '') as_dir=./ ;;
3040 */) ;;
3041 *) as_dir=$as_dir/ ;;
3042 esac
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3045 ac_cv_prog_CC="${ac_tool_prefix}clang"
3046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3047 break 2
3048 fi
3049 done
3050 done
3051 IFS=$as_save_IFS
3052
3053 fi
3054 fi
3055 CC=$ac_cv_prog_CC
3056 if test -n "$CC"; then
3057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3058 printf "%s\n" "$CC" >&6; }
3059 else
3060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061 printf "%s\n" "no" >&6; }
3062 fi
3063
3064
3065 fi
3066 if test -z "$ac_cv_prog_CC"; then
3067 ac_ct_CC=$CC
3068 # Extract the first word of "clang", so it can be a program name with args.
3069 set dummy clang; ac_word=$2
3070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3071 printf %s "checking for $ac_word... " >&6; }
3072 if test ${ac_cv_prog_ac_ct_CC+y}
3073 then :
3074 printf %s "(cached) " >&6
3075 else $as_nop
3076 if test -n "$ac_ct_CC"; then
3077 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3078 else
3079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 for as_dir in $PATH
3081 do
3082 IFS=$as_save_IFS
3083 case $as_dir in #(((
3084 '') as_dir=./ ;;
3085 */) ;;
3086 *) as_dir=$as_dir/ ;;
3087 esac
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3090 ac_cv_prog_ac_ct_CC="clang"
3091 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3092 break 2
3093 fi
3094 done
3095 done
3096 IFS=$as_save_IFS
3097
3098 fi
3099 fi
3100 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3101 if test -n "$ac_ct_CC"; then
3102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3103 printf "%s\n" "$ac_ct_CC" >&6; }
3104 else
3105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106 printf "%s\n" "no" >&6; }
3107 fi
3108
3109 if test "x$ac_ct_CC" = x; then
3110 CC=""
3111 else
3112 case $cross_compiling:$ac_tool_warned in
3113 yes:)
3114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3115 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3116 ac_tool_warned=yes ;;
3117 esac
3118 CC=$ac_ct_CC
3119 fi
3120 else
3121 CC="$ac_cv_prog_CC"
3122 fi
3123
3124 fi
3125
3126
3127 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3128 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3129 as_fn_error $? "no acceptable C compiler found in \$PATH
3130 See \`config.log' for more details" "$LINENO" 5; }
3131
3132 # Provide some information about the compiler.
3133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3134 set X $ac_compile
3135 ac_compiler=$2
3136 for ac_option in --version -v -V -qversion -version; do
3137 { { ac_try="$ac_compiler $ac_option >&5"
3138 case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141 esac
3142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3143 printf "%s\n" "$ac_try_echo"; } >&5
3144 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3145 ac_status=$?
3146 if test -s conftest.err; then
3147 sed '10a\
3148 ... rest of stderr output deleted ...
3149 10q' conftest.err >conftest.er1
3150 cat conftest.er1 >&5
3151 fi
3152 rm -f conftest.er1 conftest.err
3153 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3154 test $ac_status = 0; }
3155 done
3156
3157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3158 /* end confdefs.h. */
3159
3160 int
3161 main (void)
3162 {
3163
3164 ;
3165 return 0;
3166 }
3167 _ACEOF
3168 ac_clean_files_save=$ac_clean_files
3169 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3170 # Try to create an executable without -o first, disregard a.out.
3171 # It will help us diagnose broken compilers, and finding out an intuition
3172 # of exeext.
3173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3174 printf %s "checking whether the C compiler works... " >&6; }
3175 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3176
3177 # The possible output files:
3178 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3179
3180 ac_rmfiles=
3181 for ac_file in $ac_files
3182 do
3183 case $ac_file in
3184 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3185 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3186 esac
3187 done
3188 rm -f $ac_rmfiles
3189
3190 if { { ac_try="$ac_link_default"
3191 case "(($ac_try" in
3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193 *) ac_try_echo=$ac_try;;
3194 esac
3195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3196 printf "%s\n" "$ac_try_echo"; } >&5
3197 (eval "$ac_link_default") 2>&5
3198 ac_status=$?
3199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3200 test $ac_status = 0; }
3201 then :
3202 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3203 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3204 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3205 # so that the user can short-circuit this test for compilers unknown to
3206 # Autoconf.
3207 for ac_file in $ac_files ''
3208 do
3209 test -f "$ac_file" || continue
3210 case $ac_file in
3211 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3212 ;;
3213 [ab].out )
3214 # We found the default executable, but exeext='' is most
3215 # certainly right.
3216 break;;
3217 *.* )
3218 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3219 then :; else
3220 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3221 fi
3222 # We set ac_cv_exeext here because the later test for it is not
3223 # safe: cross compilers may not add the suffix if given an `-o'
3224 # argument, so we may need to know it at that point already.
3225 # Even if this section looks crufty: it has the advantage of
3226 # actually working.
3227 break;;
3228 * )
3229 break;;
3230 esac
3231 done
3232 test "$ac_cv_exeext" = no && ac_cv_exeext=
3233
3234 else $as_nop
3235 ac_file=''
3236 fi
3237 if test -z "$ac_file"
3238 then :
3239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 printf "%s\n" "no" >&6; }
3241 printf "%s\n" "$as_me: failed program was:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3243
3244 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3245 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3246 as_fn_error 77 "C compiler cannot create executables
3247 See \`config.log' for more details" "$LINENO" 5; }
3248 else $as_nop
3249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3250 printf "%s\n" "yes" >&6; }
3251 fi
3252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3253 printf %s "checking for C compiler default output file name... " >&6; }
3254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3255 printf "%s\n" "$ac_file" >&6; }
3256 ac_exeext=$ac_cv_exeext
3257
3258 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3259 ac_clean_files=$ac_clean_files_save
3260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3261 printf %s "checking for suffix of executables... " >&6; }
3262 if { { ac_try="$ac_link"
3263 case "(($ac_try" in
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3266 esac
3267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3268 printf "%s\n" "$ac_try_echo"; } >&5
3269 (eval "$ac_link") 2>&5
3270 ac_status=$?
3271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3272 test $ac_status = 0; }
3273 then :
3274 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3275 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3276 # work properly (i.e., refer to `conftest.exe'), while it won't with
3277 # `rm'.
3278 for ac_file in conftest.exe conftest conftest.*; do
3279 test -f "$ac_file" || continue
3280 case $ac_file in
3281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3282 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3283 break;;
3284 * ) break;;
3285 esac
3286 done
3287 else $as_nop
3288 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3289 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3290 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3291 See \`config.log' for more details" "$LINENO" 5; }
3292 fi
3293 rm -f conftest conftest$ac_cv_exeext
3294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3295 printf "%s\n" "$ac_cv_exeext" >&6; }
3296
3297 rm -f conftest.$ac_ext
3298 EXEEXT=$ac_cv_exeext
3299 ac_exeext=$EXEEXT
3300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301 /* end confdefs.h. */
3302 #include <stdio.h>
3303 int
3304 main (void)
3305 {
3306 FILE *f = fopen ("conftest.out", "w");
3307 return ferror (f) || fclose (f) != 0;
3308
3309 ;
3310 return 0;
3311 }
3312 _ACEOF
3313 ac_clean_files="$ac_clean_files conftest.out"
3314 # Check that the compiler produces executables we can run. If not, either
3315 # the compiler is broken, or we cross compile.
3316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3317 printf %s "checking whether we are cross compiling... " >&6; }
3318 if test "$cross_compiling" != yes; then
3319 { { ac_try="$ac_link"
3320 case "(($ac_try" in
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3323 esac
3324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3325 printf "%s\n" "$ac_try_echo"; } >&5
3326 (eval "$ac_link") 2>&5
3327 ac_status=$?
3328 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3329 test $ac_status = 0; }
3330 if { ac_try='./conftest$ac_cv_exeext'
3331 { { case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3334 esac
3335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3336 printf "%s\n" "$ac_try_echo"; } >&5
3337 (eval "$ac_try") 2>&5
3338 ac_status=$?
3339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3340 test $ac_status = 0; }; }; then
3341 cross_compiling=no
3342 else
3343 if test "$cross_compiling" = maybe; then
3344 cross_compiling=yes
3345 else
3346 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3347 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3348 as_fn_error 77 "cannot run C compiled programs.
3349 If you meant to cross compile, use \`--host'.
3350 See \`config.log' for more details" "$LINENO" 5; }
3351 fi
3352 fi
3353 fi
3354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3355 printf "%s\n" "$cross_compiling" >&6; }
3356
3357 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3358 ac_clean_files=$ac_clean_files_save
3359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3360 printf %s "checking for suffix of object files... " >&6; }
3361 if test ${ac_cv_objext+y}
3362 then :
3363 printf %s "(cached) " >&6
3364 else $as_nop
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3367
3368 int
3369 main (void)
3370 {
3371
3372 ;
3373 return 0;
3374 }
3375 _ACEOF
3376 rm -f conftest.o conftest.obj
3377 if { { ac_try="$ac_compile"
3378 case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3381 esac
3382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3383 printf "%s\n" "$ac_try_echo"; } >&5
3384 (eval "$ac_compile") 2>&5
3385 ac_status=$?
3386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3387 test $ac_status = 0; }
3388 then :
3389 for ac_file in conftest.o conftest.obj conftest.*; do
3390 test -f "$ac_file" || continue;
3391 case $ac_file in
3392 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3393 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3394 break;;
3395 esac
3396 done
3397 else $as_nop
3398 printf "%s\n" "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3400
3401 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3402 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3403 as_fn_error $? "cannot compute suffix of object files: cannot compile
3404 See \`config.log' for more details" "$LINENO" 5; }
3405 fi
3406 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3407 fi
3408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3409 printf "%s\n" "$ac_cv_objext" >&6; }
3410 OBJEXT=$ac_cv_objext
3411 ac_objext=$OBJEXT
3412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3413 printf %s "checking whether the compiler supports GNU C... " >&6; }
3414 if test ${ac_cv_c_compiler_gnu+y}
3415 then :
3416 printf %s "(cached) " >&6
3417 else $as_nop
3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h. */
3420
3421 int
3422 main (void)
3423 {
3424 #ifndef __GNUC__
3425 choke me
3426 #endif
3427
3428 ;
3429 return 0;
3430 }
3431 _ACEOF
3432 if ac_fn_c_try_compile "$LINENO"
3433 then :
3434 ac_compiler_gnu=yes
3435 else $as_nop
3436 ac_compiler_gnu=no
3437 fi
3438 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3439 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3440
3441 fi
3442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3443 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3445
3446 if test $ac_compiler_gnu = yes; then
3447 GCC=yes
3448 else
3449 GCC=
3450 fi
3451 ac_test_CFLAGS=${CFLAGS+y}
3452 ac_save_CFLAGS=$CFLAGS
3453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3454 printf %s "checking whether $CC accepts -g... " >&6; }
3455 if test ${ac_cv_prog_cc_g+y}
3456 then :
3457 printf %s "(cached) " >&6
3458 else $as_nop
3459 ac_save_c_werror_flag=$ac_c_werror_flag
3460 ac_c_werror_flag=yes
3461 ac_cv_prog_cc_g=no
3462 CFLAGS="-g"
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3465
3466 int
3467 main (void)
3468 {
3469
3470 ;
3471 return 0;
3472 }
3473 _ACEOF
3474 if ac_fn_c_try_compile "$LINENO"
3475 then :
3476 ac_cv_prog_cc_g=yes
3477 else $as_nop
3478 CFLAGS=""
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h. */
3481
3482 int
3483 main (void)
3484 {
3485
3486 ;
3487 return 0;
3488 }
3489 _ACEOF
3490 if ac_fn_c_try_compile "$LINENO"
3491 then :
3492
3493 else $as_nop
3494 ac_c_werror_flag=$ac_save_c_werror_flag
3495 CFLAGS="-g"
3496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3497 /* end confdefs.h. */
3498
3499 int
3500 main (void)
3501 {
3502
3503 ;
3504 return 0;
3505 }
3506 _ACEOF
3507 if ac_fn_c_try_compile "$LINENO"
3508 then :
3509 ac_cv_prog_cc_g=yes
3510 fi
3511 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3512 fi
3513 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3514 fi
3515 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3516 ac_c_werror_flag=$ac_save_c_werror_flag
3517 fi
3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3519 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3520 if test $ac_test_CFLAGS; then
3521 CFLAGS=$ac_save_CFLAGS
3522 elif test $ac_cv_prog_cc_g = yes; then
3523 if test "$GCC" = yes; then
3524 CFLAGS="-g -O2"
3525 else
3526 CFLAGS="-g"
3527 fi
3528 else
3529 if test "$GCC" = yes; then
3530 CFLAGS="-O2"
3531 else
3532 CFLAGS=
3533 fi
3534 fi
3535 ac_prog_cc_stdc=no
3536 if test x$ac_prog_cc_stdc = xno
3537 then :
3538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3539 printf %s "checking for $CC option to enable C11 features... " >&6; }
3540 if test ${ac_cv_prog_cc_c11+y}
3541 then :
3542 printf %s "(cached) " >&6
3543 else $as_nop
3544 ac_cv_prog_cc_c11=no
3545 ac_save_CC=$CC
3546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547 /* end confdefs.h. */
3548 $ac_c_conftest_c11_program
3549 _ACEOF
3550 for ac_arg in '' -std=gnu11
3551 do
3552 CC="$ac_save_CC $ac_arg"
3553 if ac_fn_c_try_compile "$LINENO"
3554 then :
3555 ac_cv_prog_cc_c11=$ac_arg
3556 fi
3557 rm -f core conftest.err conftest.$ac_objext conftest.beam
3558 test "x$ac_cv_prog_cc_c11" != "xno" && break
3559 done
3560 rm -f conftest.$ac_ext
3561 CC=$ac_save_CC
3562 fi
3563
3564 if test "x$ac_cv_prog_cc_c11" = xno
3565 then :
3566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3567 printf "%s\n" "unsupported" >&6; }
3568 else $as_nop
3569 if test "x$ac_cv_prog_cc_c11" = x
3570 then :
3571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3572 printf "%s\n" "none needed" >&6; }
3573 else $as_nop
3574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3575 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3576 CC="$CC $ac_cv_prog_cc_c11"
3577 fi
3578 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3579 ac_prog_cc_stdc=c11
3580 fi
3581 fi
3582 if test x$ac_prog_cc_stdc = xno
3583 then :
3584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3585 printf %s "checking for $CC option to enable C99 features... " >&6; }
3586 if test ${ac_cv_prog_cc_c99+y}
3587 then :
3588 printf %s "(cached) " >&6
3589 else $as_nop
3590 ac_cv_prog_cc_c99=no
3591 ac_save_CC=$CC
3592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593 /* end confdefs.h. */
3594 $ac_c_conftest_c99_program
3595 _ACEOF
3596 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3597 do
3598 CC="$ac_save_CC $ac_arg"
3599 if ac_fn_c_try_compile "$LINENO"
3600 then :
3601 ac_cv_prog_cc_c99=$ac_arg
3602 fi
3603 rm -f core conftest.err conftest.$ac_objext conftest.beam
3604 test "x$ac_cv_prog_cc_c99" != "xno" && break
3605 done
3606 rm -f conftest.$ac_ext
3607 CC=$ac_save_CC
3608 fi
3609
3610 if test "x$ac_cv_prog_cc_c99" = xno
3611 then :
3612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3613 printf "%s\n" "unsupported" >&6; }
3614 else $as_nop
3615 if test "x$ac_cv_prog_cc_c99" = x
3616 then :
3617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3618 printf "%s\n" "none needed" >&6; }
3619 else $as_nop
3620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3621 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3622 CC="$CC $ac_cv_prog_cc_c99"
3623 fi
3624 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3625 ac_prog_cc_stdc=c99
3626 fi
3627 fi
3628 if test x$ac_prog_cc_stdc = xno
3629 then :
3630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3631 printf %s "checking for $CC option to enable C89 features... " >&6; }
3632 if test ${ac_cv_prog_cc_c89+y}
3633 then :
3634 printf %s "(cached) " >&6
3635 else $as_nop
3636 ac_cv_prog_cc_c89=no
3637 ac_save_CC=$CC
3638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639 /* end confdefs.h. */
3640 $ac_c_conftest_c89_program
3641 _ACEOF
3642 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3643 do
3644 CC="$ac_save_CC $ac_arg"
3645 if ac_fn_c_try_compile "$LINENO"
3646 then :
3647 ac_cv_prog_cc_c89=$ac_arg
3648 fi
3649 rm -f core conftest.err conftest.$ac_objext conftest.beam
3650 test "x$ac_cv_prog_cc_c89" != "xno" && break
3651 done
3652 rm -f conftest.$ac_ext
3653 CC=$ac_save_CC
3654 fi
3655
3656 if test "x$ac_cv_prog_cc_c89" = xno
3657 then :
3658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3659 printf "%s\n" "unsupported" >&6; }
3660 else $as_nop
3661 if test "x$ac_cv_prog_cc_c89" = x
3662 then :
3663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3664 printf "%s\n" "none needed" >&6; }
3665 else $as_nop
3666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3667 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3668 CC="$CC $ac_cv_prog_cc_c89"
3669 fi
3670 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3671 ac_prog_cc_stdc=c89
3672 fi
3673 fi
3674
3675 ac_ext=c
3676 ac_cpp='$CPP $CPPFLAGS'
3677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3680
3681
3682
3683 ac_header= ac_cache=
3684 for ac_item in $ac_header_c_list
3685 do
3686 if test $ac_cache; then
3687 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3688 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3689 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3690 fi
3691 ac_header= ac_cache=
3692 elif test $ac_header; then
3693 ac_cache=$ac_item
3694 else
3695 ac_header=$ac_item
3696 fi
3697 done
3698
3699
3700
3701
3702
3703
3704
3705
3706 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3707 then :
3708
3709 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3710
3711 fi
3712 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
3713 if test "x$ac_cv_header_netinet_in_h" = xyes
3714 then :
3715 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
3716
3717 fi
3718 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
3719 if test "x$ac_cv_header_stdlib_h" = xyes
3720 then :
3721 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
3722
3723 fi
3724 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
3725 if test "x$ac_cv_header_string_h" = xyes
3726 then :
3727 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
3728
3729 fi
3730 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
3731 if test "x$ac_cv_header_unistd_h" = xyes
3732 then :
3733 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
3734
3735 fi
3736
3737 ac_fn_c_check_header_compile "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
3738 if test "x$ac_cv_header_attr_xattr_h" = xyes
3739 then :
3740 printf "%s\n" "#define HAVE_ATTR_XATTR_H 1" >>confdefs.h
3741
3742 fi
3743 ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
3744 if test "x$ac_cv_header_sys_xattr_h" = xyes
3745 then :
3746 printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
3747
3748 fi
3749
3750
3751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
3752 printf %s "checking for an ANSI C-conforming const... " >&6; }
3753 if test ${ac_cv_c_const+y}
3754 then :
3755 printf %s "(cached) " >&6
3756 else $as_nop
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3759
3760 int
3761 main (void)
3762 {
3763
3764 #ifndef __cplusplus
3765 /* Ultrix mips cc rejects this sort of thing. */
3766 typedef int charset[2];
3767 const charset cs = { 0, 0 };
3768 /* SunOS 4.1.1 cc rejects this. */
3769 char const *const *pcpcc;
3770 char **ppc;
3771 /* NEC SVR4.0.2 mips cc rejects this. */
3772 struct point {int x, y;};
3773 static struct point const zero = {0,0};
3774 /* IBM XL C 1.02.0.0 rejects this.
3775 It does not let you subtract one const X* pointer from another in
3776 an arm of an if-expression whose if-part is not a constant
3777 expression */
3778 const char *g = "string";
3779 pcpcc = &g + (g ? g-g : 0);
3780 /* HPUX 7.0 cc rejects these. */
3781 ++pcpcc;
3782 ppc = (char**) pcpcc;
3783 pcpcc = (char const *const *) ppc;
3784 { /* SCO 3.2v4 cc rejects this sort of thing. */
3785 char tx;
3786 char *t = &tx;
3787 char const *s = 0 ? (char *) 0 : (char const *) 0;
3788
3789 *t++ = 0;
3790 if (s) return 0;
3791 }
3792 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3793 int x[] = {25, 17};
3794 const int *foo = &x[0];
3795 ++foo;
3796 }
3797 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3798 typedef const int *iptr;
3799 iptr p = 0;
3800 ++p;
3801 }
3802 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
3803 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3804 struct s { int j; const int *ap[3]; } bx;
3805 struct s *b = &bx; b->j = 5;
3806 }
3807 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3808 const int foo = 10;
3809 if (!foo) return 0;
3810 }
3811 return !cs[0] && !zero.x;
3812 #endif
3813
3814 ;
3815 return 0;
3816 }
3817 _ACEOF
3818 if ac_fn_c_try_compile "$LINENO"
3819 then :
3820 ac_cv_c_const=yes
3821 else $as_nop
3822 ac_cv_c_const=no
3823 fi
3824 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3825 fi
3826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
3827 printf "%s\n" "$ac_cv_c_const" >&6; }
3828 if test $ac_cv_c_const = no; then
3829
3830 printf "%s\n" "#define const /**/" >>confdefs.h
3831
3832 fi
3833
3834 ac_ext=c
3835 ac_cpp='$CPP $CPPFLAGS'
3836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3840 printf %s "checking how to run the C preprocessor... " >&6; }
3841 # On Suns, sometimes $CPP names a directory.
3842 if test -n "$CPP" && test -d "$CPP"; then
3843 CPP=
3844 fi
3845 if test -z "$CPP"; then
3846 if test ${ac_cv_prog_CPP+y}
3847 then :
3848 printf %s "(cached) " >&6
3849 else $as_nop
3850 # Double quotes because $CC needs to be expanded
3851 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
3852 do
3853 ac_preproc_ok=false
3854 for ac_c_preproc_warn_flag in '' yes
3855 do
3856 # Use a header file that comes with gcc, so configuring glibc
3857 # with a fresh cross-compiler works.
3858 # On the NeXT, cc -E runs the code through the compiler's parser,
3859 # not just through cpp. "Syntax error" is here to catch this case.
3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h. */
3862 #include <limits.h>
3863 Syntax error
3864 _ACEOF
3865 if ac_fn_c_try_cpp "$LINENO"
3866 then :
3867
3868 else $as_nop
3869 # Broken: fails on valid input.
3870 continue
3871 fi
3872 rm -f conftest.err conftest.i conftest.$ac_ext
3873
3874 # OK, works on sane cases. Now check whether nonexistent headers
3875 # can be detected and how.
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3878 #include <ac_nonexistent.h>
3879 _ACEOF
3880 if ac_fn_c_try_cpp "$LINENO"
3881 then :
3882 # Broken: success on invalid input.
3883 continue
3884 else $as_nop
3885 # Passes both tests.
3886 ac_preproc_ok=:
3887 break
3888 fi
3889 rm -f conftest.err conftest.i conftest.$ac_ext
3890
3891 done
3892 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3893 rm -f conftest.i conftest.err conftest.$ac_ext
3894 if $ac_preproc_ok
3895 then :
3896 break
3897 fi
3898
3899 done
3900 ac_cv_prog_CPP=$CPP
3901
3902 fi
3903 CPP=$ac_cv_prog_CPP
3904 else
3905 ac_cv_prog_CPP=$CPP
3906 fi
3907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3908 printf "%s\n" "$CPP" >&6; }
3909 ac_preproc_ok=false
3910 for ac_c_preproc_warn_flag in '' yes
3911 do
3912 # Use a header file that comes with gcc, so configuring glibc
3913 # with a fresh cross-compiler works.
3914 # On the NeXT, cc -E runs the code through the compiler's parser,
3915 # not just through cpp. "Syntax error" is here to catch this case.
3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917 /* end confdefs.h. */
3918 #include <limits.h>
3919 Syntax error
3920 _ACEOF
3921 if ac_fn_c_try_cpp "$LINENO"
3922 then :
3923
3924 else $as_nop
3925 # Broken: fails on valid input.
3926 continue
3927 fi
3928 rm -f conftest.err conftest.i conftest.$ac_ext
3929
3930 # OK, works on sane cases. Now check whether nonexistent headers
3931 # can be detected and how.
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h. */
3934 #include <ac_nonexistent.h>
3935 _ACEOF
3936 if ac_fn_c_try_cpp "$LINENO"
3937 then :
3938 # Broken: success on invalid input.
3939 continue
3940 else $as_nop
3941 # Passes both tests.
3942 ac_preproc_ok=:
3943 break
3944 fi
3945 rm -f conftest.err conftest.i conftest.$ac_ext
3946
3947 done
3948 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3949 rm -f conftest.i conftest.err conftest.$ac_ext
3950 if $ac_preproc_ok
3951 then :
3952
3953 else $as_nop
3954 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3955 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3956 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3957 See \`config.log' for more details" "$LINENO" 5; }
3958 fi
3959
3960 ac_ext=c
3961 ac_cpp='$CPP $CPPFLAGS'
3962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3965
3966
3967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3968 printf %s "checking for grep that handles long lines and -e... " >&6; }
3969 if test ${ac_cv_path_GREP+y}
3970 then :
3971 printf %s "(cached) " >&6
3972 else $as_nop
3973 if test -z "$GREP"; then
3974 ac_path_GREP_found=false
3975 # Loop through the user's path and test for each of PROGNAME-LIST
3976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3978 do
3979 IFS=$as_save_IFS
3980 case $as_dir in #(((
3981 '') as_dir=./ ;;
3982 */) ;;
3983 *) as_dir=$as_dir/ ;;
3984 esac
3985 for ac_prog in grep ggrep
3986 do
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
3989 as_fn_executable_p "$ac_path_GREP" || continue
3990 # Check for GNU ac_path_GREP and select it if it is found.
3991 # Check for GNU $ac_path_GREP
3992 case `"$ac_path_GREP" --version 2>&1` in
3993 *GNU*)
3994 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3995 *)
3996 ac_count=0
3997 printf %s 0123456789 >"conftest.in"
3998 while :
3999 do
4000 cat "conftest.in" "conftest.in" >"conftest.tmp"
4001 mv "conftest.tmp" "conftest.in"
4002 cp "conftest.in" "conftest.nl"
4003 printf "%s\n" 'GREP' >> "conftest.nl"
4004 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4005 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4006 as_fn_arith $ac_count + 1 && ac_count=$as_val
4007 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4008 # Best one so far, save it but keep looking for a better one
4009 ac_cv_path_GREP="$ac_path_GREP"
4010 ac_path_GREP_max=$ac_count
4011 fi
4012 # 10*(2^10) chars as input seems more than enough
4013 test $ac_count -gt 10 && break
4014 done
4015 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4016 esac
4017
4018 $ac_path_GREP_found && break 3
4019 done
4020 done
4021 done
4022 IFS=$as_save_IFS
4023 if test -z "$ac_cv_path_GREP"; then
4024 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4025 fi
4026 else
4027 ac_cv_path_GREP=$GREP
4028 fi
4029
4030 fi
4031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4032 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4033 GREP="$ac_cv_path_GREP"
4034
4035
4036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4037 printf %s "checking for egrep... " >&6; }
4038 if test ${ac_cv_path_EGREP+y}
4039 then :
4040 printf %s "(cached) " >&6
4041 else $as_nop
4042 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4043 then ac_cv_path_EGREP="$GREP -E"
4044 else
4045 if test -z "$EGREP"; then
4046 ac_path_EGREP_found=false
4047 # Loop through the user's path and test for each of PROGNAME-LIST
4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4050 do
4051 IFS=$as_save_IFS
4052 case $as_dir in #(((
4053 '') as_dir=./ ;;
4054 */) ;;
4055 *) as_dir=$as_dir/ ;;
4056 esac
4057 for ac_prog in egrep
4058 do
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4061 as_fn_executable_p "$ac_path_EGREP" || continue
4062 # Check for GNU ac_path_EGREP and select it if it is found.
4063 # Check for GNU $ac_path_EGREP
4064 case `"$ac_path_EGREP" --version 2>&1` in
4065 *GNU*)
4066 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4067 *)
4068 ac_count=0
4069 printf %s 0123456789 >"conftest.in"
4070 while :
4071 do
4072 cat "conftest.in" "conftest.in" >"conftest.tmp"
4073 mv "conftest.tmp" "conftest.in"
4074 cp "conftest.in" "conftest.nl"
4075 printf "%s\n" 'EGREP' >> "conftest.nl"
4076 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4077 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4078 as_fn_arith $ac_count + 1 && ac_count=$as_val
4079 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4080 # Best one so far, save it but keep looking for a better one
4081 ac_cv_path_EGREP="$ac_path_EGREP"
4082 ac_path_EGREP_max=$ac_count
4083 fi
4084 # 10*(2^10) chars as input seems more than enough
4085 test $ac_count -gt 10 && break
4086 done
4087 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4088 esac
4089
4090 $ac_path_EGREP_found && break 3
4091 done
4092 done
4093 done
4094 IFS=$as_save_IFS
4095 if test -z "$ac_cv_path_EGREP"; then
4096 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4097 fi
4098 else
4099 ac_cv_path_EGREP=$EGREP
4100 fi
4101
4102 fi
4103 fi
4104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4105 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4106 EGREP="$ac_cv_path_EGREP"
4107
4108
4109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
4110 printf %s "checking for uid_t in sys/types.h... " >&6; }
4111 if test ${ac_cv_type_uid_t+y}
4112 then :
4113 printf %s "(cached) " >&6
4114 else $as_nop
4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116 /* end confdefs.h. */
4117 #include <sys/types.h>
4118
4119 _ACEOF
4120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4121 $EGREP "uid_t" >/dev/null 2>&1
4122 then :
4123 ac_cv_type_uid_t=yes
4124 else $as_nop
4125 ac_cv_type_uid_t=no
4126 fi
4127 rm -rf conftest*
4128
4129 fi
4130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
4131 printf "%s\n" "$ac_cv_type_uid_t" >&6; }
4132 if test $ac_cv_type_uid_t = no; then
4133
4134 printf "%s\n" "#define uid_t int" >>confdefs.h
4135
4136
4137 printf "%s\n" "#define gid_t int" >>confdefs.h
4138
4139 fi
4140
4141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4142 printf %s "checking for inline... " >&6; }
4143 if test ${ac_cv_c_inline+y}
4144 then :
4145 printf %s "(cached) " >&6
4146 else $as_nop
4147 ac_cv_c_inline=no
4148 for ac_kw in inline __inline__ __inline; do
4149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150 /* end confdefs.h. */
4151 #ifndef __cplusplus
4152 typedef int foo_t;
4153 static $ac_kw foo_t static_foo (void) {return 0; }
4154 $ac_kw foo_t foo (void) {return 0; }
4155 #endif
4156
4157 _ACEOF
4158 if ac_fn_c_try_compile "$LINENO"
4159 then :
4160 ac_cv_c_inline=$ac_kw
4161 fi
4162 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4163 test "$ac_cv_c_inline" != no && break
4164 done
4165
4166 fi
4167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4168 printf "%s\n" "$ac_cv_c_inline" >&6; }
4169
4170 case $ac_cv_c_inline in
4171 inline | yes) ;;
4172 *)
4173 case $ac_cv_c_inline in
4174 no) ac_val=;;
4175 *) ac_val=$ac_cv_c_inline;;
4176 esac
4177 cat >>confdefs.h <<_ACEOF
4178 #ifndef __cplusplus
4179 #define inline $ac_val
4180 #endif
4181 _ACEOF
4182 ;;
4183 esac
4184
4185 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
4186 if test "x$ac_cv_type_mode_t" = xyes
4187 then :
4188
4189 else $as_nop
4190
4191 printf "%s\n" "#define mode_t int" >>confdefs.h
4192
4193 fi
4194
4195 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4196 if test "x$ac_cv_type_size_t" = xyes
4197 then :
4198
4199 else $as_nop
4200
4201 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
4202
4203 fi
4204
4205
4206
4207
4208 # Make sure we can run config.sub.
4209 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4210 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4211
4212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4213 printf %s "checking build system type... " >&6; }
4214 if test ${ac_cv_build+y}
4215 then :
4216 printf %s "(cached) " >&6
4217 else $as_nop
4218 ac_build_alias=$build_alias
4219 test "x$ac_build_alias" = x &&
4220 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4221 test "x$ac_build_alias" = x &&
4222 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4223 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4224 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4225
4226 fi
4227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4228 printf "%s\n" "$ac_cv_build" >&6; }
4229 case $ac_cv_build in
4230 *-*-*) ;;
4231 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4232 esac
4233 build=$ac_cv_build
4234 ac_save_IFS=$IFS; IFS='-'
4235 set x $ac_cv_build
4236 shift
4237 build_cpu=$1
4238 build_vendor=$2
4239 shift; shift
4240 # Remember, the first character of IFS is used to create $*,
4241 # except with old shells:
4242 build_os=$*
4243 IFS=$ac_save_IFS
4244 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4245
4246
4247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4248 printf %s "checking host system type... " >&6; }
4249 if test ${ac_cv_host+y}
4250 then :
4251 printf %s "(cached) " >&6
4252 else $as_nop
4253 if test "x$host_alias" = x; then
4254 ac_cv_host=$ac_cv_build
4255 else
4256 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4257 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4258 fi
4259
4260 fi
4261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4262 printf "%s\n" "$ac_cv_host" >&6; }
4263 case $ac_cv_host in
4264 *-*-*) ;;
4265 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4266 esac
4267 host=$ac_cv_host
4268 ac_save_IFS=$IFS; IFS='-'
4269 set x $ac_cv_host
4270 shift
4271 host_cpu=$1
4272 host_vendor=$2
4273 shift; shift
4274 # Remember, the first character of IFS is used to create $*,
4275 # except with old shells:
4276 host_os=$*
4277 IFS=$ac_save_IFS
4278 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4279
4280
4281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
4282 printf %s "checking for GNU libc compatible malloc... " >&6; }
4283 if test ${ac_cv_func_malloc_0_nonnull+y}
4284 then :
4285 printf %s "(cached) " >&6
4286 else $as_nop
4287 if test "$cross_compiling" = yes
4288 then :
4289 case "$host_os" in # ((
4290 # Guess yes on platforms where we know the result.
4291 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
4292 | hpux* | solaris* | cygwin* | mingw* | msys* )
4293 ac_cv_func_malloc_0_nonnull=yes ;;
4294 # If we don't know, assume the worst.
4295 *) ac_cv_func_malloc_0_nonnull=no ;;
4296 esac
4297 else $as_nop
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4300 #include <stdlib.h>
4301
4302 int
4303 main (void)
4304 {
4305 void *p = malloc (0);
4306 int result = !p;
4307 free (p);
4308 return result;
4309 ;
4310 return 0;
4311 }
4312 _ACEOF
4313 if ac_fn_c_try_run "$LINENO"
4314 then :
4315 ac_cv_func_malloc_0_nonnull=yes
4316 else $as_nop
4317 ac_cv_func_malloc_0_nonnull=no
4318 fi
4319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4320 conftest.$ac_objext conftest.beam conftest.$ac_ext
4321 fi
4322
4323 fi
4324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
4325 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
4326 if test $ac_cv_func_malloc_0_nonnull = yes
4327 then :
4328
4329 printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
4330
4331 else $as_nop
4332 printf "%s\n" "#define HAVE_MALLOC 0" >>confdefs.h
4333
4334 case " $LIBOBJS " in
4335 *" malloc.$ac_objext "* ) ;;
4336 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
4337 ;;
4338 esac
4339
4340
4341 printf "%s\n" "#define malloc rpl_malloc" >>confdefs.h
4342
4343 fi
4344
4345
4346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
4347 printf %s "checking whether lstat correctly handles trailing slash... " >&6; }
4348 if test ${ac_cv_func_lstat_dereferences_slashed_symlink+y}
4349 then :
4350 printf %s "(cached) " >&6
4351 else $as_nop
4352 rm -f conftest.sym conftest.file
4353 echo >conftest.file
4354 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
4355 if test "$cross_compiling" = yes
4356 then :
4357 case "$host_os" in # ((
4358 # Guess yes on glibc systems.
4359 *-gnu*) ac_cv_func_lstat_dereferences_slashed_symlink=yes ;;
4360 # If we don't know, assume the worst.
4361 *) ac_cv_func_lstat_dereferences_slashed_symlink=no ;;
4362 esac
4363 else $as_nop
4364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h. */
4366 $ac_includes_default
4367 int
4368 main (void)
4369 {
4370 struct stat sbuf;
4371 /* Linux will dereference the symlink and fail, as required by POSIX.
4372 That is better in the sense that it means we will not
4373 have to compile and use the lstat wrapper. */
4374 return lstat ("conftest.sym/", &sbuf) == 0;
4375 ;
4376 return 0;
4377 }
4378 _ACEOF
4379 if ac_fn_c_try_run "$LINENO"
4380 then :
4381 ac_cv_func_lstat_dereferences_slashed_symlink=yes
4382 else $as_nop
4383 ac_cv_func_lstat_dereferences_slashed_symlink=no
4384 fi
4385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4386 conftest.$ac_objext conftest.beam conftest.$ac_ext
4387 fi
4388
4389 else
4390 # If the `ln -s' command failed, then we probably don't even
4391 # have an lstat function.
4392 ac_cv_func_lstat_dereferences_slashed_symlink=no
4393 fi
4394 rm -f conftest.sym conftest.file
4395
4396 fi
4397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
4398 printf "%s\n" "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
4399
4400 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
4401
4402 printf "%s\n" "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h
4403
4404
4405 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
4406 case " $LIBOBJS " in
4407 *" lstat.$ac_objext "* ) ;;
4408 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
4409 ;;
4410 esac
4411
4412 fi
4413
4414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
4415 printf %s "checking whether stat accepts an empty string... " >&6; }
4416 if test ${ac_cv_func_stat_empty_string_bug+y}
4417 then :
4418 printf %s "(cached) " >&6
4419 else $as_nop
4420 if test "$cross_compiling" = yes
4421 then :
4422 ac_cv_func_stat_empty_string_bug=yes
4423 else $as_nop
4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h. */
4426 $ac_includes_default
4427 int
4428 main (void)
4429 {
4430 struct stat sbuf;
4431 return stat ("", &sbuf) == 0;
4432 ;
4433 return 0;
4434 }
4435 _ACEOF
4436 if ac_fn_c_try_run "$LINENO"
4437 then :
4438 ac_cv_func_stat_empty_string_bug=no
4439 else $as_nop
4440 ac_cv_func_stat_empty_string_bug=yes
4441 fi
4442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4443 conftest.$ac_objext conftest.beam conftest.$ac_ext
4444 fi
4445
4446 fi
4447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
4448 printf "%s\n" "$ac_cv_func_stat_empty_string_bug" >&6; }
4449 if test $ac_cv_func_stat_empty_string_bug = yes; then
4450 case " $LIBOBJS " in
4451 *" stat.$ac_objext "* ) ;;
4452 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
4453 ;;
4454 esac
4455
4456
4457 printf "%s\n" "#define HAVE_STAT_EMPTY_STRING_BUG 1" >>confdefs.h
4458
4459 fi
4460
4461 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
4462 if test "x$ac_cv_func_memset" = xyes
4463 then :
4464 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
4465
4466 fi
4467 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
4468 if test "x$ac_cv_func_strchr" = xyes
4469 then :
4470 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
4471
4472 fi
4473
4474
4475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getxattr in -lattr" >&5
4476 printf %s "checking for getxattr in -lattr... " >&6; }
4477 if test ${ac_cv_lib_attr_getxattr+y}
4478 then :
4479 printf %s "(cached) " >&6
4480 else $as_nop
4481 ac_check_lib_save_LIBS=$LIBS
4482 LIBS="-lattr $LIBS"
4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h. */
4485
4486 /* Override any GCC internal prototype to avoid an error.
4487 Use char because int might match the return type of a GCC
4488 builtin and then its argument prototype would still apply. */
4489 char getxattr ();
4490 int
4491 main (void)
4492 {
4493 return getxattr ();
4494 ;
4495 return 0;
4496 }
4497 _ACEOF
4498 if ac_fn_c_try_link "$LINENO"
4499 then :
4500 ac_cv_lib_attr_getxattr=yes
4501 else $as_nop
4502 ac_cv_lib_attr_getxattr=no
4503 fi
4504 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4505 conftest$ac_exeext conftest.$ac_ext
4506 LIBS=$ac_check_lib_save_LIBS
4507 fi
4508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_getxattr" >&5
4509 printf "%s\n" "$ac_cv_lib_attr_getxattr" >&6; }
4510 if test "x$ac_cv_lib_attr_getxattr" = xyes
4511 then :
4512 printf "%s\n" "#define HAVE_LIBATTR 1" >>confdefs.h
4513
4514 LIBS="-lattr $LIBS"
4515
4516 fi
4517
4518
4519 pkg_name="nfs4acl"
4520
4521
4522 . ./VERSION
4523 pkg_version=${PKG_MAJOR}.${PKG_MINOR}.${PKG_REVISION}
4524
4525 pkg_release=$PKG_BUILD
4526 test -z "$BUILD_VERSION" || pkg_release="$BUILD_VERSION"
4527
4528
4529 DEBUG=${DEBUG:-'-DDEBUG'} debug_build="$DEBUG"
4530
4531
4532 OPTIMIZER=${OPTIMIZER:-'-g'} opt_build="$OPTIMIZER"
4533
4534
4535 MALLOCLIB=${MALLOCLIB:-''} malloc_lib="$MALLOCLIB"
4536
4537
4538 PKG_USER=${INSTALL_USER:-'root'}
4539 pkg_user="$PKG_USER"
4540
4541
4542 PKG_GROUP=${INSTALL_GROUP:-'root'}
4543 pkg_group="$PKG_GROUP"
4544
4545
4546 pkg_distribution=`uname -s`
4547 test -z "$DISTRIBUTION" || pkg_distribution="$DISTRIBUTION"
4548
4549
4550 pkg_platform=`uname -s | tr 'A-Z' 'a-z' | sed -e 's/irix64/irix/'`
4551 test -z "$PLATFORM" || pkg_platform="$PLATFORM"
4552
4553
4554 ac_ext=c
4555 ac_cpp='$CPP $CPPFLAGS'
4556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4559 if test -n "$ac_tool_prefix"; then
4560 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4561 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4563 printf %s "checking for $ac_word... " >&6; }
4564 if test ${ac_cv_prog_CC+y}
4565 then :
4566 printf %s "(cached) " >&6
4567 else $as_nop
4568 if test -n "$CC"; then
4569 ac_cv_prog_CC="$CC" # Let the user override the test.
4570 else
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 for as_dir in $PATH
4573 do
4574 IFS=$as_save_IFS
4575 case $as_dir in #(((
4576 '') as_dir=./ ;;
4577 */) ;;
4578 *) as_dir=$as_dir/ ;;
4579 esac
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4582 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4584 break 2
4585 fi
4586 done
4587 done
4588 IFS=$as_save_IFS
4589
4590 fi
4591 fi
4592 CC=$ac_cv_prog_CC
4593 if test -n "$CC"; then
4594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4595 printf "%s\n" "$CC" >&6; }
4596 else
4597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4598 printf "%s\n" "no" >&6; }
4599 fi
4600
4601
4602 fi
4603 if test -z "$ac_cv_prog_CC"; then
4604 ac_ct_CC=$CC
4605 # Extract the first word of "gcc", so it can be a program name with args.
4606 set dummy gcc; ac_word=$2
4607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4608 printf %s "checking for $ac_word... " >&6; }
4609 if test ${ac_cv_prog_ac_ct_CC+y}
4610 then :
4611 printf %s "(cached) " >&6
4612 else $as_nop
4613 if test -n "$ac_ct_CC"; then
4614 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4615 else
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 for as_dir in $PATH
4618 do
4619 IFS=$as_save_IFS
4620 case $as_dir in #(((
4621 '') as_dir=./ ;;
4622 */) ;;
4623 *) as_dir=$as_dir/ ;;
4624 esac
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4627 ac_cv_prog_ac_ct_CC="gcc"
4628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4629 break 2
4630 fi
4631 done
4632 done
4633 IFS=$as_save_IFS
4634
4635 fi
4636 fi
4637 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4638 if test -n "$ac_ct_CC"; then
4639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4640 printf "%s\n" "$ac_ct_CC" >&6; }
4641 else
4642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4643 printf "%s\n" "no" >&6; }
4644 fi
4645
4646 if test "x$ac_ct_CC" = x; then
4647 CC=""
4648 else
4649 case $cross_compiling:$ac_tool_warned in
4650 yes:)
4651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4652 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4653 ac_tool_warned=yes ;;
4654 esac
4655 CC=$ac_ct_CC
4656 fi
4657 else
4658 CC="$ac_cv_prog_CC"
4659 fi
4660
4661 if test -z "$CC"; then
4662 if test -n "$ac_tool_prefix"; then
4663 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4664 set dummy ${ac_tool_prefix}cc; ac_word=$2
4665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4666 printf %s "checking for $ac_word... " >&6; }
4667 if test ${ac_cv_prog_CC+y}
4668 then :
4669 printf %s "(cached) " >&6
4670 else $as_nop
4671 if test -n "$CC"; then
4672 ac_cv_prog_CC="$CC" # Let the user override the test.
4673 else
4674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 for as_dir in $PATH
4676 do
4677 IFS=$as_save_IFS
4678 case $as_dir in #(((
4679 '') as_dir=./ ;;
4680 */) ;;
4681 *) as_dir=$as_dir/ ;;
4682 esac
4683 for ac_exec_ext in '' $ac_executable_extensions; do
4684 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4685 ac_cv_prog_CC="${ac_tool_prefix}cc"
4686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4687 break 2
4688 fi
4689 done
4690 done
4691 IFS=$as_save_IFS
4692
4693 fi
4694 fi
4695 CC=$ac_cv_prog_CC
4696 if test -n "$CC"; then
4697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4698 printf "%s\n" "$CC" >&6; }
4699 else
4700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4701 printf "%s\n" "no" >&6; }
4702 fi
4703
4704
4705 fi
4706 fi
4707 if test -z "$CC"; then
4708 # Extract the first word of "cc", so it can be a program name with args.
4709 set dummy cc; ac_word=$2
4710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4711 printf %s "checking for $ac_word... " >&6; }
4712 if test ${ac_cv_prog_CC+y}
4713 then :
4714 printf %s "(cached) " >&6
4715 else $as_nop
4716 if test -n "$CC"; then
4717 ac_cv_prog_CC="$CC" # Let the user override the test.
4718 else
4719 ac_prog_rejected=no
4720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721 for as_dir in $PATH
4722 do
4723 IFS=$as_save_IFS
4724 case $as_dir in #(((
4725 '') as_dir=./ ;;
4726 */) ;;
4727 *) as_dir=$as_dir/ ;;
4728 esac
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4731 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4732 ac_prog_rejected=yes
4733 continue
4734 fi
4735 ac_cv_prog_CC="cc"
4736 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4737 break 2
4738 fi
4739 done
4740 done
4741 IFS=$as_save_IFS
4742
4743 if test $ac_prog_rejected = yes; then
4744 # We found a bogon in the path, so make sure we never use it.
4745 set dummy $ac_cv_prog_CC
4746 shift
4747 if test $# != 0; then
4748 # We chose a different compiler from the bogus one.
4749 # However, it has the same basename, so the bogon will be chosen
4750 # first if we set CC to just the basename; use the full file name.
4751 shift
4752 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4753 fi
4754 fi
4755 fi
4756 fi
4757 CC=$ac_cv_prog_CC
4758 if test -n "$CC"; then
4759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4760 printf "%s\n" "$CC" >&6; }
4761 else
4762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4763 printf "%s\n" "no" >&6; }
4764 fi
4765
4766
4767 fi
4768 if test -z "$CC"; then
4769 if test -n "$ac_tool_prefix"; then
4770 for ac_prog in cl.exe
4771 do
4772 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4773 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4775 printf %s "checking for $ac_word... " >&6; }
4776 if test ${ac_cv_prog_CC+y}
4777 then :
4778 printf %s "(cached) " >&6
4779 else $as_nop
4780 if test -n "$CC"; then
4781 ac_cv_prog_CC="$CC" # Let the user override the test.
4782 else
4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 for as_dir in $PATH
4785 do
4786 IFS=$as_save_IFS
4787 case $as_dir in #(((
4788 '') as_dir=./ ;;
4789 */) ;;
4790 *) as_dir=$as_dir/ ;;
4791 esac
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4794 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4796 break 2
4797 fi
4798 done
4799 done
4800 IFS=$as_save_IFS
4801
4802 fi
4803 fi
4804 CC=$ac_cv_prog_CC
4805 if test -n "$CC"; then
4806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4807 printf "%s\n" "$CC" >&6; }
4808 else
4809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810 printf "%s\n" "no" >&6; }
4811 fi
4812
4813
4814 test -n "$CC" && break
4815 done
4816 fi
4817 if test -z "$CC"; then
4818 ac_ct_CC=$CC
4819 for ac_prog in cl.exe
4820 do
4821 # Extract the first word of "$ac_prog", so it can be a program name with args.
4822 set dummy $ac_prog; ac_word=$2
4823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4824 printf %s "checking for $ac_word... " >&6; }
4825 if test ${ac_cv_prog_ac_ct_CC+y}
4826 then :
4827 printf %s "(cached) " >&6
4828 else $as_nop
4829 if test -n "$ac_ct_CC"; then
4830 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4831 else
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 for as_dir in $PATH
4834 do
4835 IFS=$as_save_IFS
4836 case $as_dir in #(((
4837 '') as_dir=./ ;;
4838 */) ;;
4839 *) as_dir=$as_dir/ ;;
4840 esac
4841 for ac_exec_ext in '' $ac_executable_extensions; do
4842 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4843 ac_cv_prog_ac_ct_CC="$ac_prog"
4844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4845 break 2
4846 fi
4847 done
4848 done
4849 IFS=$as_save_IFS
4850
4851 fi
4852 fi
4853 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4854 if test -n "$ac_ct_CC"; then
4855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4856 printf "%s\n" "$ac_ct_CC" >&6; }
4857 else
4858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 printf "%s\n" "no" >&6; }
4860 fi
4861
4862
4863 test -n "$ac_ct_CC" && break
4864 done
4865
4866 if test "x$ac_ct_CC" = x; then
4867 CC=""
4868 else
4869 case $cross_compiling:$ac_tool_warned in
4870 yes:)
4871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4872 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4873 ac_tool_warned=yes ;;
4874 esac
4875 CC=$ac_ct_CC
4876 fi
4877 fi
4878
4879 fi
4880 if test -z "$CC"; then
4881 if test -n "$ac_tool_prefix"; then
4882 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4883 set dummy ${ac_tool_prefix}clang; ac_word=$2
4884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4885 printf %s "checking for $ac_word... " >&6; }
4886 if test ${ac_cv_prog_CC+y}
4887 then :
4888 printf %s "(cached) " >&6
4889 else $as_nop
4890 if test -n "$CC"; then
4891 ac_cv_prog_CC="$CC" # Let the user override the test.
4892 else
4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894 for as_dir in $PATH
4895 do
4896 IFS=$as_save_IFS
4897 case $as_dir in #(((
4898 '') as_dir=./ ;;
4899 */) ;;
4900 *) as_dir=$as_dir/ ;;
4901 esac
4902 for ac_exec_ext in '' $ac_executable_extensions; do
4903 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4904 ac_cv_prog_CC="${ac_tool_prefix}clang"
4905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4906 break 2
4907 fi
4908 done
4909 done
4910 IFS=$as_save_IFS
4911
4912 fi
4913 fi
4914 CC=$ac_cv_prog_CC
4915 if test -n "$CC"; then
4916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4917 printf "%s\n" "$CC" >&6; }
4918 else
4919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4920 printf "%s\n" "no" >&6; }
4921 fi
4922
4923
4924 fi
4925 if test -z "$ac_cv_prog_CC"; then
4926 ac_ct_CC=$CC
4927 # Extract the first word of "clang", so it can be a program name with args.
4928 set dummy clang; ac_word=$2
4929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4930 printf %s "checking for $ac_word... " >&6; }
4931 if test ${ac_cv_prog_ac_ct_CC+y}
4932 then :
4933 printf %s "(cached) " >&6
4934 else $as_nop
4935 if test -n "$ac_ct_CC"; then
4936 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4937 else
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 for as_dir in $PATH
4940 do
4941 IFS=$as_save_IFS
4942 case $as_dir in #(((
4943 '') as_dir=./ ;;
4944 */) ;;
4945 *) as_dir=$as_dir/ ;;
4946 esac
4947 for ac_exec_ext in '' $ac_executable_extensions; do
4948 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4949 ac_cv_prog_ac_ct_CC="clang"
4950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4951 break 2
4952 fi
4953 done
4954 done
4955 IFS=$as_save_IFS
4956
4957 fi
4958 fi
4959 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4960 if test -n "$ac_ct_CC"; then
4961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4962 printf "%s\n" "$ac_ct_CC" >&6; }
4963 else
4964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965 printf "%s\n" "no" >&6; }
4966 fi
4967
4968 if test "x$ac_ct_CC" = x; then
4969 CC=""
4970 else
4971 case $cross_compiling:$ac_tool_warned in
4972 yes:)
4973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4974 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4975 ac_tool_warned=yes ;;
4976 esac
4977 CC=$ac_ct_CC
4978 fi
4979 else
4980 CC="$ac_cv_prog_CC"
4981 fi
4982
4983 fi
4984
4985
4986 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4987 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4988 as_fn_error $? "no acceptable C compiler found in \$PATH
4989 See \`config.log' for more details" "$LINENO" 5; }
4990
4991 # Provide some information about the compiler.
4992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4993 set X $ac_compile
4994 ac_compiler=$2
4995 for ac_option in --version -v -V -qversion -version; do
4996 { { ac_try="$ac_compiler $ac_option >&5"
4997 case "(($ac_try" in
4998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4999 *) ac_try_echo=$ac_try;;
5000 esac
5001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5002 printf "%s\n" "$ac_try_echo"; } >&5
5003 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5004 ac_status=$?
5005 if test -s conftest.err; then
5006 sed '10a\
5007 ... rest of stderr output deleted ...
5008 10q' conftest.err >conftest.er1
5009 cat conftest.er1 >&5
5010 fi
5011 rm -f conftest.er1 conftest.err
5012 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5013 test $ac_status = 0; }
5014 done
5015
5016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5017 printf %s "checking whether the compiler supports GNU C... " >&6; }
5018 if test ${ac_cv_c_compiler_gnu+y}
5019 then :
5020 printf %s "(cached) " >&6
5021 else $as_nop
5022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5023 /* end confdefs.h. */
5024
5025 int
5026 main (void)
5027 {
5028 #ifndef __GNUC__
5029 choke me
5030 #endif
5031
5032 ;
5033 return 0;
5034 }
5035 _ACEOF
5036 if ac_fn_c_try_compile "$LINENO"
5037 then :
5038 ac_compiler_gnu=yes
5039 else $as_nop
5040 ac_compiler_gnu=no
5041 fi
5042 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5043 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5044
5045 fi
5046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5047 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5049
5050 if test $ac_compiler_gnu = yes; then
5051 GCC=yes
5052 else
5053 GCC=
5054 fi
5055 ac_test_CFLAGS=${CFLAGS+y}
5056 ac_save_CFLAGS=$CFLAGS
5057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5058 printf %s "checking whether $CC accepts -g... " >&6; }
5059 if test ${ac_cv_prog_cc_g+y}
5060 then :
5061 printf %s "(cached) " >&6
5062 else $as_nop
5063 ac_save_c_werror_flag=$ac_c_werror_flag
5064 ac_c_werror_flag=yes
5065 ac_cv_prog_cc_g=no
5066 CFLAGS="-g"
5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h. */
5069
5070 int
5071 main (void)
5072 {
5073
5074 ;
5075 return 0;
5076 }
5077 _ACEOF
5078 if ac_fn_c_try_compile "$LINENO"
5079 then :
5080 ac_cv_prog_cc_g=yes
5081 else $as_nop
5082 CFLAGS=""
5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h. */
5085
5086 int
5087 main (void)
5088 {
5089
5090 ;
5091 return 0;
5092 }
5093 _ACEOF
5094 if ac_fn_c_try_compile "$LINENO"
5095 then :
5096
5097 else $as_nop
5098 ac_c_werror_flag=$ac_save_c_werror_flag
5099 CFLAGS="-g"
5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h. */
5102
5103 int
5104 main (void)
5105 {
5106
5107 ;
5108 return 0;
5109 }
5110 _ACEOF
5111 if ac_fn_c_try_compile "$LINENO"
5112 then :
5113 ac_cv_prog_cc_g=yes
5114 fi
5115 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5116 fi
5117 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5118 fi
5119 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5120 ac_c_werror_flag=$ac_save_c_werror_flag
5121 fi
5122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5123 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5124 if test $ac_test_CFLAGS; then
5125 CFLAGS=$ac_save_CFLAGS
5126 elif test $ac_cv_prog_cc_g = yes; then
5127 if test "$GCC" = yes; then
5128 CFLAGS="-g -O2"
5129 else
5130 CFLAGS="-g"
5131 fi
5132 else
5133 if test "$GCC" = yes; then
5134 CFLAGS="-O2"
5135 else
5136 CFLAGS=
5137 fi
5138 fi
5139 ac_prog_cc_stdc=no
5140 if test x$ac_prog_cc_stdc = xno
5141 then :
5142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5143 printf %s "checking for $CC option to enable C11 features... " >&6; }
5144 if test ${ac_cv_prog_cc_c11+y}
5145 then :
5146 printf %s "(cached) " >&6
5147 else $as_nop
5148 ac_cv_prog_cc_c11=no
5149 ac_save_CC=$CC
5150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5151 /* end confdefs.h. */
5152 $ac_c_conftest_c11_program
5153 _ACEOF
5154 for ac_arg in '' -std=gnu11
5155 do
5156 CC="$ac_save_CC $ac_arg"
5157 if ac_fn_c_try_compile "$LINENO"
5158 then :
5159 ac_cv_prog_cc_c11=$ac_arg
5160 fi
5161 rm -f core conftest.err conftest.$ac_objext conftest.beam
5162 test "x$ac_cv_prog_cc_c11" != "xno" && break
5163 done
5164 rm -f conftest.$ac_ext
5165 CC=$ac_save_CC
5166 fi
5167
5168 if test "x$ac_cv_prog_cc_c11" = xno
5169 then :
5170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5171 printf "%s\n" "unsupported" >&6; }
5172 else $as_nop
5173 if test "x$ac_cv_prog_cc_c11" = x
5174 then :
5175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5176 printf "%s\n" "none needed" >&6; }
5177 else $as_nop
5178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5179 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5180 CC="$CC $ac_cv_prog_cc_c11"
5181 fi
5182 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5183 ac_prog_cc_stdc=c11
5184 fi
5185 fi
5186 if test x$ac_prog_cc_stdc = xno
5187 then :
5188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5189 printf %s "checking for $CC option to enable C99 features... " >&6; }
5190 if test ${ac_cv_prog_cc_c99+y}
5191 then :
5192 printf %s "(cached) " >&6
5193 else $as_nop
5194 ac_cv_prog_cc_c99=no
5195 ac_save_CC=$CC
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5198 $ac_c_conftest_c99_program
5199 _ACEOF
5200 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5201 do
5202 CC="$ac_save_CC $ac_arg"
5203 if ac_fn_c_try_compile "$LINENO"
5204 then :
5205 ac_cv_prog_cc_c99=$ac_arg
5206 fi
5207 rm -f core conftest.err conftest.$ac_objext conftest.beam
5208 test "x$ac_cv_prog_cc_c99" != "xno" && break
5209 done
5210 rm -f conftest.$ac_ext
5211 CC=$ac_save_CC
5212 fi
5213
5214 if test "x$ac_cv_prog_cc_c99" = xno
5215 then :
5216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5217 printf "%s\n" "unsupported" >&6; }
5218 else $as_nop
5219 if test "x$ac_cv_prog_cc_c99" = x
5220 then :
5221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5222 printf "%s\n" "none needed" >&6; }
5223 else $as_nop
5224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5225 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5226 CC="$CC $ac_cv_prog_cc_c99"
5227 fi
5228 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5229 ac_prog_cc_stdc=c99
5230 fi
5231 fi
5232 if test x$ac_prog_cc_stdc = xno
5233 then :
5234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5235 printf %s "checking for $CC option to enable C89 features... " >&6; }
5236 if test ${ac_cv_prog_cc_c89+y}
5237 then :
5238 printf %s "(cached) " >&6
5239 else $as_nop
5240 ac_cv_prog_cc_c89=no
5241 ac_save_CC=$CC
5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h. */
5244 $ac_c_conftest_c89_program
5245 _ACEOF
5246 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5247 do
5248 CC="$ac_save_CC $ac_arg"
5249 if ac_fn_c_try_compile "$LINENO"
5250 then :
5251 ac_cv_prog_cc_c89=$ac_arg
5252 fi
5253 rm -f core conftest.err conftest.$ac_objext conftest.beam
5254 test "x$ac_cv_prog_cc_c89" != "xno" && break
5255 done
5256 rm -f conftest.$ac_ext
5257 CC=$ac_save_CC
5258 fi
5259
5260 if test "x$ac_cv_prog_cc_c89" = xno
5261 then :
5262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5263 printf "%s\n" "unsupported" >&6; }
5264 else $as_nop
5265 if test "x$ac_cv_prog_cc_c89" = x
5266 then :
5267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5268 printf "%s\n" "none needed" >&6; }
5269 else $as_nop
5270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5271 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5272 CC="$CC $ac_cv_prog_cc_c89"
5273 fi
5274 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5275 ac_prog_cc_stdc=c89
5276 fi
5277 fi
5278
5279 ac_ext=c
5280 ac_cpp='$CPP $CPPFLAGS'
5281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5284
5285 cc="$CC"
5286
5287 if test -z ""$cc""; then
5288 echo
5289 echo FATAL ERROR: cc does not seem to be installed.
5290 echo nfs4acl cannot be built without a working C compiler installation.
5291 exit 1
5292 fi
5293
5294
5295 if test -z "$MAKE"; then
5296 # Extract the first word of "gmake", so it can be a program name with args.
5297 set dummy gmake; ac_word=$2
5298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5299 printf %s "checking for $ac_word... " >&6; }
5300 if test ${ac_cv_path_MAKE+y}
5301 then :
5302 printf %s "(cached) " >&6
5303 else $as_nop
5304 case $MAKE in
5305 [\\/]* | ?:[\\/]*)
5306 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
5307 ;;
5308 *)
5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 as_dummy="/usr/bin:/usr/freeware/bin"
5311 for as_dir in $as_dummy
5312 do
5313 IFS=$as_save_IFS
5314 case $as_dir in #(((
5315 '') as_dir=./ ;;
5316 */) ;;
5317 *) as_dir=$as_dir/ ;;
5318 esac
5319 for ac_exec_ext in '' $ac_executable_extensions; do
5320 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5321 ac_cv_path_MAKE="$as_dir$ac_word$ac_exec_ext"
5322 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5323 break 2
5324 fi
5325 done
5326 done
5327 IFS=$as_save_IFS
5328
5329 ;;
5330 esac
5331 fi
5332 MAKE=$ac_cv_path_MAKE
5333 if test -n "$MAKE"; then
5334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5335 printf "%s\n" "$MAKE" >&6; }
5336 else
5337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 printf "%s\n" "no" >&6; }
5339 fi
5340
5341
5342 fi
5343 if test -z "$MAKE"; then
5344 # Extract the first word of "make", so it can be a program name with args.
5345 set dummy make; ac_word=$2
5346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5347 printf %s "checking for $ac_word... " >&6; }
5348 if test ${ac_cv_path_MAKE+y}
5349 then :
5350 printf %s "(cached) " >&6
5351 else $as_nop
5352 case $MAKE in
5353 [\\/]* | ?:[\\/]*)
5354 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
5355 ;;
5356 *)
5357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358 for as_dir in /usr/bin
5359 do
5360 IFS=$as_save_IFS
5361 case $as_dir in #(((
5362 '') as_dir=./ ;;
5363 */) ;;
5364 *) as_dir=$as_dir/ ;;
5365 esac
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5368 ac_cv_path_MAKE="$as_dir$ac_word$ac_exec_ext"
5369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5370 break 2
5371 fi
5372 done
5373 done
5374 IFS=$as_save_IFS
5375
5376 ;;
5377 esac
5378 fi
5379 MAKE=$ac_cv_path_MAKE
5380 if test -n "$MAKE"; then
5381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5382 printf "%s\n" "$MAKE" >&6; }
5383 else
5384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5385 printf "%s\n" "no" >&6; }
5386 fi
5387
5388
5389 fi
5390 make=$MAKE
5391
5392 if test -z ""$make""; then
5393 echo
5394 echo FATAL ERROR: make does not seem to be installed.
5395 echo nfs4acl cannot be built without a working GNU make installation.
5396 exit 1
5397 fi
5398
5399
5400 if test -z "$LIBTOOL"; then
5401 # Extract the first word of "glibtool", so it can be a program name with args.
5402 set dummy glibtool; ac_word=$2
5403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5404 printf %s "checking for $ac_word... " >&6; }
5405 if test ${ac_cv_path_LIBTOOL+y}
5406 then :
5407 printf %s "(cached) " >&6
5408 else $as_nop
5409 case $LIBTOOL in
5410 [\\/]* | ?:[\\/]*)
5411 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
5412 ;;
5413 *)
5414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415 for as_dir in /usr/bin
5416 do
5417 IFS=$as_save_IFS
5418 case $as_dir in #(((
5419 '') as_dir=./ ;;
5420 */) ;;
5421 *) as_dir=$as_dir/ ;;
5422 esac
5423 for ac_exec_ext in '' $ac_executable_extensions; do
5424 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5425 ac_cv_path_LIBTOOL="$as_dir$ac_word$ac_exec_ext"
5426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5427 break 2
5428 fi
5429 done
5430 done
5431 IFS=$as_save_IFS
5432
5433 ;;
5434 esac
5435 fi
5436 LIBTOOL=$ac_cv_path_LIBTOOL
5437 if test -n "$LIBTOOL"; then
5438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBTOOL" >&5
5439 printf "%s\n" "$LIBTOOL" >&6; }
5440 else
5441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442 printf "%s\n" "no" >&6; }
5443 fi
5444
5445
5446 fi
5447 if test -z "$LIBTOOL"; then
5448 # Extract the first word of "libtool", so it can be a program name with args.
5449 set dummy libtool; ac_word=$2
5450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5451 printf %s "checking for $ac_word... " >&6; }
5452 if test ${ac_cv_path_LIBTOOL+y}
5453 then :
5454 printf %s "(cached) " >&6
5455 else $as_nop
5456 case $LIBTOOL in
5457 [\\/]* | ?:[\\/]*)
5458 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
5459 ;;
5460 *)
5461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462 as_dummy="/usr/bin:/usr/local/bin:/usr/freeware/bin"
5463 for as_dir in $as_dummy
5464 do
5465 IFS=$as_save_IFS
5466 case $as_dir in #(((
5467 '') as_dir=./ ;;
5468 */) ;;
5469 *) as_dir=$as_dir/ ;;
5470 esac
5471 for ac_exec_ext in '' $ac_executable_extensions; do
5472 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5473 ac_cv_path_LIBTOOL="$as_dir$ac_word$ac_exec_ext"
5474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5475 break 2
5476 fi
5477 done
5478 done
5479 IFS=$as_save_IFS
5480
5481 ;;
5482 esac
5483 fi
5484 LIBTOOL=$ac_cv_path_LIBTOOL
5485 if test -n "$LIBTOOL"; then
5486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBTOOL" >&5
5487 printf "%s\n" "$LIBTOOL" >&6; }
5488 else
5489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5490 printf "%s\n" "no" >&6; }
5491 fi
5492
5493
5494 fi
5495 libtool=$LIBTOOL
5496
5497 if test -z ""$libtool""; then
5498 echo
5499 echo FATAL ERROR: libtool does not seem to be installed.
5500 echo nfs4acl cannot be built without a working GNU libtool installation.
5501 exit 1
5502 fi
5503
5504
5505 if test -z "$TAR"; then
5506 # Extract the first word of "tar", so it can be a program name with args.
5507 set dummy tar; ac_word=$2
5508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5509 printf %s "checking for $ac_word... " >&6; }
5510 if test ${ac_cv_path_TAR+y}
5511 then :
5512 printf %s "(cached) " >&6
5513 else $as_nop
5514 case $TAR in
5515 [\\/]* | ?:[\\/]*)
5516 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5517 ;;
5518 *)
5519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520 as_dummy="/usr/freeware/bin:/bin:/usr/local/bin:/usr/bin"
5521 for as_dir in $as_dummy
5522 do
5523 IFS=$as_save_IFS
5524 case $as_dir in #(((
5525 '') as_dir=./ ;;
5526 */) ;;
5527 *) as_dir=$as_dir/ ;;
5528 esac
5529 for ac_exec_ext in '' $ac_executable_extensions; do
5530 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5531 ac_cv_path_TAR="$as_dir$ac_word$ac_exec_ext"
5532 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5533 break 2
5534 fi
5535 done
5536 done
5537 IFS=$as_save_IFS
5538
5539 ;;
5540 esac
5541 fi
5542 TAR=$ac_cv_path_TAR
5543 if test -n "$TAR"; then
5544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
5545 printf "%s\n" "$TAR" >&6; }
5546 else
5547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548 printf "%s\n" "no" >&6; }
5549 fi
5550
5551
5552 fi
5553 tar=$TAR
5554
5555 if test -z "$ZIP"; then
5556 # Extract the first word of "gzip", so it can be a program name with args.
5557 set dummy gzip; ac_word=$2
5558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5559 printf %s "checking for $ac_word... " >&6; }
5560 if test ${ac_cv_path_ZIP+y}
5561 then :
5562 printf %s "(cached) " >&6
5563 else $as_nop
5564 case $ZIP in
5565 [\\/]* | ?:[\\/]*)
5566 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5567 ;;
5568 *)
5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 as_dummy="/bin:/usr/local/bin:/usr/freeware/bin"
5571 for as_dir in $as_dummy
5572 do
5573 IFS=$as_save_IFS
5574 case $as_dir in #(((
5575 '') as_dir=./ ;;
5576 */) ;;
5577 *) as_dir=$as_dir/ ;;
5578 esac
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5581 ac_cv_path_ZIP="$as_dir$ac_word$ac_exec_ext"
5582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5583 break 2
5584 fi
5585 done
5586 done
5587 IFS=$as_save_IFS
5588
5589 ;;
5590 esac
5591 fi
5592 ZIP=$ac_cv_path_ZIP
5593 if test -n "$ZIP"; then
5594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
5595 printf "%s\n" "$ZIP" >&6; }
5596 else
5597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5598 printf "%s\n" "no" >&6; }
5599 fi
5600
5601
5602 fi
5603
5604 zip=$ZIP
5605
5606
5607 if test -z "$MAKEDEPEND"; then
5608 # Extract the first word of "makedepend", so it can be a program name with args.
5609 set dummy makedepend; ac_word=$2
5610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5611 printf %s "checking for $ac_word... " >&6; }
5612 if test ${ac_cv_path_MAKEDEPEND+y}
5613 then :
5614 printf %s "(cached) " >&6
5615 else $as_nop
5616 case $MAKEDEPEND in
5617 [\\/]* | ?:[\\/]*)
5618 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
5619 ;;
5620 *)
5621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622 for as_dir in $PATH
5623 do
5624 IFS=$as_save_IFS
5625 case $as_dir in #(((
5626 '') as_dir=./ ;;
5627 */) ;;
5628 *) as_dir=$as_dir/ ;;
5629 esac
5630 for ac_exec_ext in '' $ac_executable_extensions; do
5631 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5632 ac_cv_path_MAKEDEPEND="$as_dir$ac_word$ac_exec_ext"
5633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5634 break 2
5635 fi
5636 done
5637 done
5638 IFS=$as_save_IFS
5639
5640 test -z "$ac_cv_path_MAKEDEPEND" && ac_cv_path_MAKEDEPEND="/bin/true"
5641 ;;
5642 esac
5643 fi
5644 MAKEDEPEND=$ac_cv_path_MAKEDEPEND
5645 if test -n "$MAKEDEPEND"; then
5646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
5647 printf "%s\n" "$MAKEDEPEND" >&6; }
5648 else
5649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650 printf "%s\n" "no" >&6; }
5651 fi
5652
5653
5654 fi
5655 makedepend=$MAKEDEPEND
5656
5657
5658 if test -z "$AWK"; then
5659 # Extract the first word of "awk", so it can be a program name with args.
5660 set dummy awk; ac_word=$2
5661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5662 printf %s "checking for $ac_word... " >&6; }
5663 if test ${ac_cv_path_AWK+y}
5664 then :
5665 printf %s "(cached) " >&6
5666 else $as_nop
5667 case $AWK in
5668 [\\/]* | ?:[\\/]*)
5669 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5670 ;;
5671 *)
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 as_dummy="/bin:/usr/bin"
5674 for as_dir in $as_dummy
5675 do
5676 IFS=$as_save_IFS
5677 case $as_dir in #(((
5678 '') as_dir=./ ;;
5679 */) ;;
5680 *) as_dir=$as_dir/ ;;
5681 esac
5682 for ac_exec_ext in '' $ac_executable_extensions; do
5683 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5684 ac_cv_path_AWK="$as_dir$ac_word$ac_exec_ext"
5685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5686 break 2
5687 fi
5688 done
5689 done
5690 IFS=$as_save_IFS
5691
5692 ;;
5693 esac
5694 fi
5695 AWK=$ac_cv_path_AWK
5696 if test -n "$AWK"; then
5697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5698 printf "%s\n" "$AWK" >&6; }
5699 else
5700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5701 printf "%s\n" "no" >&6; }
5702 fi
5703
5704
5705 fi
5706 awk=$AWK
5707
5708
5709 if test -z "$SED"; then
5710 # Extract the first word of "sed", so it can be a program name with args.
5711 set dummy sed; ac_word=$2
5712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5713 printf %s "checking for $ac_word... " >&6; }
5714 if test ${ac_cv_path_SED+y}
5715 then :
5716 printf %s "(cached) " >&6
5717 else $as_nop
5718 case $SED in
5719 [\\/]* | ?:[\\/]*)
5720 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5721 ;;
5722 *)
5723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724 as_dummy="/bin:/usr/bin"
5725 for as_dir in $as_dummy
5726 do
5727 IFS=$as_save_IFS
5728 case $as_dir in #(((
5729 '') as_dir=./ ;;
5730 */) ;;
5731 *) as_dir=$as_dir/ ;;
5732 esac
5733 for ac_exec_ext in '' $ac_executable_extensions; do
5734 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5735 ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
5736 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5737 break 2
5738 fi
5739 done
5740 done
5741 IFS=$as_save_IFS
5742
5743 ;;
5744 esac
5745 fi
5746 SED=$ac_cv_path_SED
5747 if test -n "$SED"; then
5748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5749 printf "%s\n" "$SED" >&6; }
5750 else
5751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752 printf "%s\n" "no" >&6; }
5753 fi
5754
5755
5756 fi
5757 sed=$SED
5758
5759
5760 if test -z "$ECHO"; then
5761 # Extract the first word of "echo", so it can be a program name with args.
5762 set dummy echo; ac_word=$2
5763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5764 printf %s "checking for $ac_word... " >&6; }
5765 if test ${ac_cv_path_ECHO+y}
5766 then :
5767 printf %s "(cached) " >&6
5768 else $as_nop
5769 case $ECHO in
5770 [\\/]* | ?:[\\/]*)
5771 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5772 ;;
5773 *)
5774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 as_dummy="/bin:/usr/bin"
5776 for as_dir in $as_dummy
5777 do
5778 IFS=$as_save_IFS
5779 case $as_dir in #(((
5780 '') as_dir=./ ;;
5781 */) ;;
5782 *) as_dir=$as_dir/ ;;
5783 esac
5784 for ac_exec_ext in '' $ac_executable_extensions; do
5785 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5786 ac_cv_path_ECHO="$as_dir$ac_word$ac_exec_ext"
5787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5788 break 2
5789 fi
5790 done
5791 done
5792 IFS=$as_save_IFS
5793
5794 ;;
5795 esac
5796 fi
5797 ECHO=$ac_cv_path_ECHO
5798 if test -n "$ECHO"; then
5799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5800 printf "%s\n" "$ECHO" >&6; }
5801 else
5802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5803 printf "%s\n" "no" >&6; }
5804 fi
5805
5806
5807 fi
5808 echo=$ECHO
5809
5810
5811 if test -z "$SORT"; then
5812 # Extract the first word of "sort", so it can be a program name with args.
5813 set dummy sort; ac_word=$2
5814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5815 printf %s "checking for $ac_word... " >&6; }
5816 if test ${ac_cv_path_SORT+y}
5817 then :
5818 printf %s "(cached) " >&6
5819 else $as_nop
5820 case $SORT in
5821 [\\/]* | ?:[\\/]*)
5822 ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
5823 ;;
5824 *)
5825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826 as_dummy="/bin:/usr/bin"
5827 for as_dir in $as_dummy
5828 do
5829 IFS=$as_save_IFS
5830 case $as_dir in #(((
5831 '') as_dir=./ ;;
5832 */) ;;
5833 *) as_dir=$as_dir/ ;;
5834 esac
5835 for ac_exec_ext in '' $ac_executable_extensions; do
5836 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5837 ac_cv_path_SORT="$as_dir$ac_word$ac_exec_ext"
5838 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5839 break 2
5840 fi
5841 done
5842 done
5843 IFS=$as_save_IFS
5844
5845 ;;
5846 esac
5847 fi
5848 SORT=$ac_cv_path_SORT
5849 if test -n "$SORT"; then
5850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5851 printf "%s\n" "$SORT" >&6; }
5852 else
5853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5854 printf "%s\n" "no" >&6; }
5855 fi
5856
5857
5858 fi
5859 sort=$SORT
5860
5861
5862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5863 printf %s "checking whether ln -s works... " >&6; }
5864 LN_S=$as_ln_s
5865 if test "$LN_S" = "ln -s"; then
5866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5867 printf "%s\n" "yes" >&6; }
5868 else
5869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5870 printf "%s\n" "no, using $LN_S" >&6; }
5871 fi
5872
5873
5874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getxattr in -lattr" >&5
5875 printf %s "checking for getxattr in -lattr... " >&6; }
5876 if test ${ac_cv_lib_attr_getxattr+y}
5877 then :
5878 printf %s "(cached) " >&6
5879 else $as_nop
5880 ac_check_lib_save_LIBS=$LIBS
5881 LIBS="-lattr $LIBS"
5882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883 /* end confdefs.h. */
5884
5885 /* Override any GCC internal prototype to avoid an error.
5886 Use char because int might match the return type of a GCC
5887 builtin and then its argument prototype would still apply. */
5888 char getxattr ();
5889 int
5890 main (void)
5891 {
5892 return getxattr ();
5893 ;
5894 return 0;
5895 }
5896 _ACEOF
5897 if ac_fn_c_try_link "$LINENO"
5898 then :
5899 ac_cv_lib_attr_getxattr=yes
5900 else $as_nop
5901 ac_cv_lib_attr_getxattr=no
5902 fi
5903 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5904 conftest$ac_exeext conftest.$ac_ext
5905 LIBS=$ac_check_lib_save_LIBS
5906 fi
5907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_getxattr" >&5
5908 printf "%s\n" "$ac_cv_lib_attr_getxattr" >&6; }
5909 if test "x$ac_cv_lib_attr_getxattr" = xyes
5910 then :
5911 printf "%s\n" "#define HAVE_LIBATTR 1" >>confdefs.h
5912
5913 LIBS="-lattr $LIBS"
5914
5915 else $as_nop
5916
5917 echo
5918 echo 'FATAL ERROR: could not find a valid Extended Attributes library.'
5919 echo 'Install the extended attributes (attr) development package.'
5920 echo 'Alternatively, run "make install-lib" from the attr source.'
5921 exit 1
5922
5923 fi
5924
5925 libattr="-lattr"
5926 test -f `pwd`/../attr/libattr/libattr.la && \
5927 libattr="`pwd`/../attr/libattr/libattr.la"
5928 test -f /usr/lib/libattr.la && libattr="/usr/lib/libattr.la"
5929
5930
5931 have_zipped_manpages=false
5932 for d in ${prefix}/share/man ${prefix}/man ; do
5933 if test -f $d/man1/man.1.gz
5934 then
5935 have_zipped_manpages=true
5936 break
5937 fi
5938 done
5939
5940
5941
5942 ac_config_files="$ac_config_files include/builddefs"
5943
5944 cat >confcache <<\_ACEOF
5945 # This file is a shell script that caches the results of configure
5946 # tests run on this system so they can be shared between configure
5947 # scripts and configure runs, see configure's option --config-cache.
5948 # It is not useful on other systems. If it contains results you don't
5949 # want to keep, you may remove or edit it.
5950 #
5951 # config.status only pays attention to the cache file if you give it
5952 # the --recheck option to rerun configure.
5953 #
5954 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5955 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5956 # following values.
5957
5958 _ACEOF
5959
5960 # The following way of writing the cache mishandles newlines in values,
5961 # but we know of no workaround that is simple, portable, and efficient.
5962 # So, we kill variables containing newlines.
5963 # Ultrix sh set writes to stderr and can't be redirected directly,
5964 # and sets the high bit in the cache file unless we assign to the vars.
5965 (
5966 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5967 eval ac_val=\$$ac_var
5968 case $ac_val in #(
5969 *${as_nl}*)
5970 case $ac_var in #(
5971 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5972 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5973 esac
5974 case $ac_var in #(
5975 _ | IFS | as_nl) ;; #(
5976 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5977 *) { eval $ac_var=; unset $ac_var;} ;;
5978 esac ;;
5979 esac
5980 done
5981
5982 (set) 2>&1 |
5983 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5984 *${as_nl}ac_space=\ *)
5985 # `set' does not quote correctly, so add quotes: double-quote
5986 # substitution turns \\\\ into \\, and sed turns \\ into \.
5987 sed -n \
5988 "s/'/'\\\\''/g;
5989 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5990 ;; #(
5991 *)
5992 # `set' quotes correctly as required by POSIX, so do not add quotes.
5993 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5994 ;;
5995 esac |
5996 sort
5997 ) |
5998 sed '
5999 /^ac_cv_env_/b end
6000 t clear
6001 :clear
6002 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
6003 t end
6004 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6005 :end' >>confcache
6006 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6007 if test -w "$cache_file"; then
6008 if test "x$cache_file" != "x/dev/null"; then
6009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6010 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
6011 if test ! -f "$cache_file" || test -h "$cache_file"; then
6012 cat confcache >"$cache_file"
6013 else
6014 case $cache_file in #(
6015 */* | ?:*)
6016 mv -f confcache "$cache_file"$$ &&
6017 mv -f "$cache_file"$$ "$cache_file" ;; #(
6018 *)
6019 mv -f confcache "$cache_file" ;;
6020 esac
6021 fi
6022 fi
6023 else
6024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6025 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
6026 fi
6027 fi
6028 rm -f confcache
6029
6030 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6031 # Let make expand exec_prefix.
6032 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6033
6034 DEFS=-DHAVE_CONFIG_H
6035
6036 ac_libobjs=
6037 ac_ltlibobjs=
6038 U=
6039 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6040 # 1. Remove the extension, and $U if already installed.
6041 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6042 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
6043 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6044 # will be set to the directory where LIBOBJS objects are built.
6045 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6046 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6047 done
6048 LIBOBJS=$ac_libobjs
6049
6050 LTLIBOBJS=$ac_ltlibobjs
6051
6052
6053
6054 : "${CONFIG_STATUS=./config.status}"
6055 ac_write_fail=0
6056 ac_clean_files_save=$ac_clean_files
6057 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6059 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
6060 as_write_fail=0
6061 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6062 #! $SHELL
6063 # Generated by $as_me.
6064 # Run this file to recreate the current configuration.
6065 # Compiler output produced by configure, useful for debugging
6066 # configure, is in config.log if it exists.
6067
6068 debug=false
6069 ac_cs_recheck=false
6070 ac_cs_silent=false
6071
6072 SHELL=\${CONFIG_SHELL-$SHELL}
6073 export SHELL
6074 _ASEOF
6075 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6076 ## -------------------- ##
6077 ## M4sh Initialization. ##
6078 ## -------------------- ##
6079
6080 # Be more Bourne compatible
6081 DUALCASE=1; export DUALCASE # for MKS sh
6082 as_nop=:
6083 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
6084 then :
6085 emulate sh
6086 NULLCMD=:
6087 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6088 # is contrary to our usage. Disable this feature.
6089 alias -g '${1+"$@"}'='"$@"'
6090 setopt NO_GLOB_SUBST
6091 else $as_nop
6092 case `(set -o) 2>/dev/null` in #(
6093 *posix*) :
6094 set -o posix ;; #(
6095 *) :
6096 ;;
6097 esac
6098 fi
6099
6100
6101
6102 # Reset variables that may have inherited troublesome values from
6103 # the environment.
6104
6105 # IFS needs to be set, to space, tab, and newline, in precisely that order.
6106 # (If _AS_PATH_WALK were called with IFS unset, it would have the
6107 # side effect of setting IFS to empty, thus disabling word splitting.)
6108 # Quoting is to prevent editors from complaining about space-tab.
6109 as_nl='
6110 '
6111 export as_nl
6112 IFS=" "" $as_nl"
6113
6114 PS1='$ '
6115 PS2='> '
6116 PS4='+ '
6117
6118 # Ensure predictable behavior from utilities with locale-dependent output.
6119 LC_ALL=C
6120 export LC_ALL
6121 LANGUAGE=C
6122 export LANGUAGE
6123
6124 # We cannot yet rely on "unset" to work, but we need these variables
6125 # to be unset--not just set to an empty or harmless value--now, to
6126 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
6127 # also avoids known problems related to "unset" and subshell syntax
6128 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
6129 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
6130 do eval test \${$as_var+y} \
6131 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6132 done
6133
6134 # Ensure that fds 0, 1, and 2 are open.
6135 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
6136 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
6137 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
6138
6139 # The user is always right.
6140 if ${PATH_SEPARATOR+false} :; then
6141 PATH_SEPARATOR=:
6142 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6143 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6144 PATH_SEPARATOR=';'
6145 }
6146 fi
6147
6148
6149 # Find who we are. Look in the path if we contain no directory separator.
6150 as_myself=
6151 case $0 in #((
6152 *[\\/]* ) as_myself=$0 ;;
6153 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154 for as_dir in $PATH
6155 do
6156 IFS=$as_save_IFS
6157 case $as_dir in #(((
6158 '') as_dir=./ ;;
6159 */) ;;
6160 *) as_dir=$as_dir/ ;;
6161 esac
6162 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
6163 done
6164 IFS=$as_save_IFS
6165
6166 ;;
6167 esac
6168 # We did not find ourselves, most probably we were run as `sh COMMAND'
6169 # in which case we are not to be found in the path.
6170 if test "x$as_myself" = x; then
6171 as_myself=$0
6172 fi
6173 if test ! -f "$as_myself"; then
6174 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6175 exit 1
6176 fi
6177
6178
6179
6180 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6181 # ----------------------------------------
6182 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6183 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6184 # script with STATUS, using 1 if that was 0.
6185 as_fn_error ()
6186 {
6187 as_status=$1; test $as_status -eq 0 && as_status=1
6188 if test "$4"; then
6189 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6190 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6191 fi
6192 printf "%s\n" "$as_me: error: $2" >&2
6193 as_fn_exit $as_status
6194 } # as_fn_error
6195
6196
6197
6198 # as_fn_set_status STATUS
6199 # -----------------------
6200 # Set $? to STATUS, without forking.
6201 as_fn_set_status ()
6202 {
6203 return $1
6204 } # as_fn_set_status
6205
6206 # as_fn_exit STATUS
6207 # -----------------
6208 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6209 as_fn_exit ()
6210 {
6211 set +e
6212 as_fn_set_status $1
6213 exit $1
6214 } # as_fn_exit
6215
6216 # as_fn_unset VAR
6217 # ---------------
6218 # Portably unset VAR.
6219 as_fn_unset ()
6220 {
6221 { eval $1=; unset $1;}
6222 }
6223 as_unset=as_fn_unset
6224
6225 # as_fn_append VAR VALUE
6226 # ----------------------
6227 # Append the text in VALUE to the end of the definition contained in VAR. Take
6228 # advantage of any shell optimizations that allow amortized linear growth over
6229 # repeated appends, instead of the typical quadratic growth present in naive
6230 # implementations.
6231 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
6232 then :
6233 eval 'as_fn_append ()
6234 {
6235 eval $1+=\$2
6236 }'
6237 else $as_nop
6238 as_fn_append ()
6239 {
6240 eval $1=\$$1\$2
6241 }
6242 fi # as_fn_append
6243
6244 # as_fn_arith ARG...
6245 # ------------------
6246 # Perform arithmetic evaluation on the ARGs, and store the result in the
6247 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6248 # must be portable across $(()) and expr.
6249 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
6250 then :
6251 eval 'as_fn_arith ()
6252 {
6253 as_val=$(( $* ))
6254 }'
6255 else $as_nop
6256 as_fn_arith ()
6257 {
6258 as_val=`expr "$@" || test $? -eq 1`
6259 }
6260 fi # as_fn_arith
6261
6262
6263 if expr a : '\(a\)' >/dev/null 2>&1 &&
6264 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6265 as_expr=expr
6266 else
6267 as_expr=false
6268 fi
6269
6270 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6271 as_basename=basename
6272 else
6273 as_basename=false
6274 fi
6275
6276 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6277 as_dirname=dirname
6278 else
6279 as_dirname=false
6280 fi
6281
6282 as_me=`$as_basename -- "$0" ||
6283 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6284 X"$0" : 'X\(//\)$' \| \
6285 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6286 printf "%s\n" X/"$0" |
6287 sed '/^.*\/\([^/][^/]*\)\/*$/{
6288 s//\1/
6289 q
6290 }
6291 /^X\/\(\/\/\)$/{
6292 s//\1/
6293 q
6294 }
6295 /^X\/\(\/\).*/{
6296 s//\1/
6297 q
6298 }
6299 s/.*/./; q'`
6300
6301 # Avoid depending upon Character Ranges.
6302 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6303 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6304 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6305 as_cr_digits='0123456789'
6306 as_cr_alnum=$as_cr_Letters$as_cr_digits
6307
6308
6309 # Determine whether it's possible to make 'echo' print without a newline.
6310 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
6311 # for compatibility with existing Makefiles.
6312 ECHO_C= ECHO_N= ECHO_T=
6313 case `echo -n x` in #(((((
6314 -n*)
6315 case `echo 'xy\c'` in
6316 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6317 xy) ECHO_C='\c';;
6318 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6319 ECHO_T=' ';;
6320 esac;;
6321 *)
6322 ECHO_N='-n';;
6323 esac
6324
6325 # For backward compatibility with old third-party macros, we provide
6326 # the shell variables $as_echo and $as_echo_n. New code should use
6327 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
6328 as_echo='printf %s\n'
6329 as_echo_n='printf %s'
6330
6331 rm -f conf$$ conf$$.exe conf$$.file
6332 if test -d conf$$.dir; then
6333 rm -f conf$$.dir/conf$$.file
6334 else
6335 rm -f conf$$.dir
6336 mkdir conf$$.dir 2>/dev/null
6337 fi
6338 if (echo >conf$$.file) 2>/dev/null; then
6339 if ln -s conf$$.file conf$$ 2>/dev/null; then
6340 as_ln_s='ln -s'
6341 # ... but there are two gotchas:
6342 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6343 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6344 # In both cases, we have to default to `cp -pR'.
6345 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6346 as_ln_s='cp -pR'
6347 elif ln conf$$.file conf$$ 2>/dev/null; then
6348 as_ln_s=ln
6349 else
6350 as_ln_s='cp -pR'
6351 fi
6352 else
6353 as_ln_s='cp -pR'
6354 fi
6355 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6356 rmdir conf$$.dir 2>/dev/null
6357
6358
6359 # as_fn_mkdir_p
6360 # -------------
6361 # Create "$as_dir" as a directory, including parents if necessary.
6362 as_fn_mkdir_p ()
6363 {
6364
6365 case $as_dir in #(
6366 -*) as_dir=./$as_dir;;
6367 esac
6368 test -d "$as_dir" || eval $as_mkdir_p || {
6369 as_dirs=
6370 while :; do
6371 case $as_dir in #(
6372 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6373 *) as_qdir=$as_dir;;
6374 esac
6375 as_dirs="'$as_qdir' $as_dirs"
6376 as_dir=`$as_dirname -- "$as_dir" ||
6377 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6378 X"$as_dir" : 'X\(//\)[^/]' \| \
6379 X"$as_dir" : 'X\(//\)$' \| \
6380 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6381 printf "%s\n" X"$as_dir" |
6382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6383 s//\1/
6384 q
6385 }
6386 /^X\(\/\/\)[^/].*/{
6387 s//\1/
6388 q
6389 }
6390 /^X\(\/\/\)$/{
6391 s//\1/
6392 q
6393 }
6394 /^X\(\/\).*/{
6395 s//\1/
6396 q
6397 }
6398 s/.*/./; q'`
6399 test -d "$as_dir" && break
6400 done
6401 test -z "$as_dirs" || eval "mkdir $as_dirs"
6402 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6403
6404
6405 } # as_fn_mkdir_p
6406 if mkdir -p . 2>/dev/null; then
6407 as_mkdir_p='mkdir -p "$as_dir"'
6408 else
6409 test -d ./-p && rmdir ./-p
6410 as_mkdir_p=false
6411 fi
6412
6413
6414 # as_fn_executable_p FILE
6415 # -----------------------
6416 # Test if FILE is an executable regular file.
6417 as_fn_executable_p ()
6418 {
6419 test -f "$1" && test -x "$1"
6420 } # as_fn_executable_p
6421 as_test_x='test -x'
6422 as_executable_p=as_fn_executable_p
6423
6424 # Sed expression to map a string onto a valid CPP name.
6425 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6426
6427 # Sed expression to map a string onto a valid variable name.
6428 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6429
6430
6431 exec 6>&1
6432 ## ----------------------------------- ##
6433 ## Main body of $CONFIG_STATUS script. ##
6434 ## ----------------------------------- ##
6435 _ASEOF
6436 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6437
6438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6439 # Save the log message, to keep $0 and so on meaningful, and to
6440 # report actual input values of CONFIG_FILES etc. instead of their
6441 # values after options handling.
6442 ac_log="
6443 This file was extended by nfs4-acl-tools $as_me 0.3.3, which was
6444 generated by GNU Autoconf 2.71. Invocation command line was
6445
6446 CONFIG_FILES = $CONFIG_FILES
6447 CONFIG_HEADERS = $CONFIG_HEADERS
6448 CONFIG_LINKS = $CONFIG_LINKS
6449 CONFIG_COMMANDS = $CONFIG_COMMANDS
6450 $ $0 $@
6451
6452 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6453 "
6454
6455 _ACEOF
6456
6457 case $ac_config_files in *"
6458 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6459 esac
6460
6461 case $ac_config_headers in *"
6462 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6463 esac
6464
6465
6466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6467 # Files that config.status was made for.
6468 config_files="$ac_config_files"
6469 config_headers="$ac_config_headers"
6470
6471 _ACEOF
6472
6473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6474 ac_cs_usage="\
6475 \`$as_me' instantiates files and other configuration actions
6476 from templates according to the current configuration. Unless the files
6477 and actions are specified as TAGs, all are instantiated by default.
6478
6479 Usage: $0 [OPTION]... [TAG]...
6480
6481 -h, --help print this help, then exit
6482 -V, --version print version number and configuration settings, then exit
6483 --config print configuration, then exit
6484 -q, --quiet, --silent
6485 do not print progress messages
6486 -d, --debug don't remove temporary files
6487 --recheck update $as_me by reconfiguring in the same conditions
6488 --file=FILE[:TEMPLATE]
6489 instantiate the configuration file FILE
6490 --header=FILE[:TEMPLATE]
6491 instantiate the configuration header FILE
6492
6493 Configuration files:
6494 $config_files
6495
6496 Configuration headers:
6497 $config_headers
6498
6499 Report bugs to the package provider."
6500
6501 _ACEOF
6502 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
6503 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
6504 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6505 ac_cs_config='$ac_cs_config_escaped'
6506 ac_cs_version="\\
6507 nfs4-acl-tools config.status 0.3.3
6508 configured by $0, generated by GNU Autoconf 2.71,
6509 with options \\"\$ac_cs_config\\"
6510
6511 Copyright (C) 2021 Free Software Foundation, Inc.
6512 This config.status script is free software; the Free Software Foundation
6513 gives unlimited permission to copy, distribute and modify it."
6514
6515 ac_pwd='$ac_pwd'
6516 srcdir='$srcdir'
6517 INSTALL='$INSTALL'
6518 test -n "\$AWK" || AWK=awk
6519 _ACEOF
6520
6521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6522 # The default lists apply if the user does not specify any file.
6523 ac_need_defaults=:
6524 while test $# != 0
6525 do
6526 case $1 in
6527 --*=?*)
6528 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6529 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6530 ac_shift=:
6531 ;;
6532 --*=)
6533 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6534 ac_optarg=
6535 ac_shift=:
6536 ;;
6537 *)
6538 ac_option=$1
6539 ac_optarg=$2
6540 ac_shift=shift
6541 ;;
6542 esac
6543
6544 case $ac_option in
6545 # Handling of the options.
6546 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6547 ac_cs_recheck=: ;;
6548 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6549 printf "%s\n" "$ac_cs_version"; exit ;;
6550 --config | --confi | --conf | --con | --co | --c )
6551 printf "%s\n" "$ac_cs_config"; exit ;;
6552 --debug | --debu | --deb | --de | --d | -d )
6553 debug=: ;;
6554 --file | --fil | --fi | --f )
6555 $ac_shift
6556 case $ac_optarg in
6557 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6558 '') as_fn_error $? "missing file argument" ;;
6559 esac
6560 as_fn_append CONFIG_FILES " '$ac_optarg'"
6561 ac_need_defaults=false;;
6562 --header | --heade | --head | --hea )
6563 $ac_shift
6564 case $ac_optarg in
6565 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6566 esac
6567 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6568 ac_need_defaults=false;;
6569 --he | --h)
6570 # Conflict between --help and --header
6571 as_fn_error $? "ambiguous option: \`$1'
6572 Try \`$0 --help' for more information.";;
6573 --help | --hel | -h )
6574 printf "%s\n" "$ac_cs_usage"; exit ;;
6575 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6576 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6577 ac_cs_silent=: ;;
6578
6579 # This is an error.
6580 -*) as_fn_error $? "unrecognized option: \`$1'
6581 Try \`$0 --help' for more information." ;;
6582
6583 *) as_fn_append ac_config_targets " $1"
6584 ac_need_defaults=false ;;
6585
6586 esac
6587 shift
6588 done
6589
6590 ac_configure_extra_args=
6591
6592 if $ac_cs_silent; then
6593 exec 6>/dev/null
6594 ac_configure_extra_args="$ac_configure_extra_args --silent"
6595 fi
6596
6597 _ACEOF
6598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6599 if \$ac_cs_recheck; then
6600 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6601 shift
6602 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
6603 CONFIG_SHELL='$SHELL'
6604 export CONFIG_SHELL
6605 exec "\$@"
6606 fi
6607
6608 _ACEOF
6609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6610 exec 5>>config.log
6611 {
6612 echo
6613 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6614 ## Running $as_me. ##
6615 _ASBOX
6616 printf "%s\n" "$ac_log"
6617 } >&5
6618
6619 _ACEOF
6620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6621 _ACEOF
6622
6623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6624
6625 # Handling of arguments.
6626 for ac_config_target in $ac_config_targets
6627 do
6628 case $ac_config_target in
6629 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
6630 "include/builddefs") CONFIG_FILES="$CONFIG_FILES include/builddefs" ;;
6631
6632 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6633 esac
6634 done
6635
6636
6637 # If the user did not use the arguments to specify the items to instantiate,
6638 # then the envvar interface is used. Set only those that are not.
6639 # We use the long form for the default assignment because of an extremely
6640 # bizarre bug on SunOS 4.1.3.
6641 if $ac_need_defaults; then
6642 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
6643 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
6644 fi
6645
6646 # Have a temporary directory for convenience. Make it in the build tree
6647 # simply because there is no reason against having it here, and in addition,
6648 # creating and moving files from /tmp can sometimes cause problems.
6649 # Hook for its removal unless debugging.
6650 # Note that there is a small window in which the directory will not be cleaned:
6651 # after its creation but before its name has been assigned to `$tmp'.
6652 $debug ||
6653 {
6654 tmp= ac_tmp=
6655 trap 'exit_status=$?
6656 : "${ac_tmp:=$tmp}"
6657 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6658 ' 0
6659 trap 'as_fn_exit 1' 1 2 13 15
6660 }
6661 # Create a (secure) tmp directory for tmp files.
6662
6663 {
6664 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6665 test -d "$tmp"
6666 } ||
6667 {
6668 tmp=./conf$$-$RANDOM
6669 (umask 077 && mkdir "$tmp")
6670 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6671 ac_tmp=$tmp
6672
6673 # Set up the scripts for CONFIG_FILES section.
6674 # No need to generate them if there are no CONFIG_FILES.
6675 # This happens for instance with `./config.status config.h'.
6676 if test -n "$CONFIG_FILES"; then
6677
6678
6679 ac_cr=`echo X | tr X '\015'`
6680 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6681 # But we know of no other shell where ac_cr would be empty at this
6682 # point, so we can use a bashism as a fallback.
6683 if test "x$ac_cr" = x; then
6684 eval ac_cr=\$\'\\r\'
6685 fi
6686 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6687 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6688 ac_cs_awk_cr='\\r'
6689 else
6690 ac_cs_awk_cr=$ac_cr
6691 fi
6692
6693 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6694 _ACEOF
6695
6696
6697 {
6698 echo "cat >conf$$subs.awk <<_ACEOF" &&
6699 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6700 echo "_ACEOF"
6701 } >conf$$subs.sh ||
6702 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6703 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6704 ac_delim='%!_!# '
6705 for ac_last_try in false false false false false :; do
6706 . ./conf$$subs.sh ||
6707 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6708
6709 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6710 if test $ac_delim_n = $ac_delim_num; then
6711 break
6712 elif $ac_last_try; then
6713 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6714 else
6715 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6716 fi
6717 done
6718 rm -f conf$$subs.sh
6719
6720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6721 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6722 _ACEOF
6723 sed -n '
6724 h
6725 s/^/S["/; s/!.*/"]=/
6726 p
6727 g
6728 s/^[^!]*!//
6729 :repl
6730 t repl
6731 s/'"$ac_delim"'$//
6732 t delim
6733 :nl
6734 h
6735 s/\(.\{148\}\)..*/\1/
6736 t more1
6737 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6738 p
6739 n
6740 b repl
6741 :more1
6742 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6743 p
6744 g
6745 s/.\{148\}//
6746 t nl
6747 :delim
6748 h
6749 s/\(.\{148\}\)..*/\1/
6750 t more2
6751 s/["\\]/\\&/g; s/^/"/; s/$/"/
6752 p
6753 b
6754 :more2
6755 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6756 p
6757 g
6758 s/.\{148\}//
6759 t delim
6760 ' <conf$$subs.awk | sed '
6761 /^[^""]/{
6762 N
6763 s/\n//
6764 }
6765 ' >>$CONFIG_STATUS || ac_write_fail=1
6766 rm -f conf$$subs.awk
6767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6768 _ACAWK
6769 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6770 for (key in S) S_is_set[key] = 1
6771 FS = ""
6772
6773 }
6774 {
6775 line = $ 0
6776 nfields = split(line, field, "@")
6777 substed = 0
6778 len = length(field[1])
6779 for (i = 2; i < nfields; i++) {
6780 key = field[i]
6781 keylen = length(key)
6782 if (S_is_set[key]) {
6783 value = S[key]
6784 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6785 len += length(value) + length(field[++i])
6786 substed = 1
6787 } else
6788 len += 1 + keylen
6789 }
6790
6791 print line
6792 }
6793
6794 _ACAWK
6795 _ACEOF
6796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6797 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6798 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6799 else
6800 cat
6801 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6802 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6803 _ACEOF
6804
6805 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6806 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6807 # trailing colons and then remove the whole line if VPATH becomes empty
6808 # (actually we leave an empty line to preserve line numbers).
6809 if test "x$srcdir" = x.; then
6810 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6811 h
6812 s///
6813 s/^/:/
6814 s/[ ]*$/:/
6815 s/:\$(srcdir):/:/g
6816 s/:\${srcdir}:/:/g
6817 s/:@srcdir@:/:/g
6818 s/^:*//
6819 s/:*$//
6820 x
6821 s/\(=[ ]*\).*/\1/
6822 G
6823 s/\n//
6824 s/^[^=]*=[ ]*$//
6825 }'
6826 fi
6827
6828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6829 fi # test -n "$CONFIG_FILES"
6830
6831 # Set up the scripts for CONFIG_HEADERS section.
6832 # No need to generate them if there are no CONFIG_HEADERS.
6833 # This happens for instance with `./config.status Makefile'.
6834 if test -n "$CONFIG_HEADERS"; then
6835 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6836 BEGIN {
6837 _ACEOF
6838
6839 # Transform confdefs.h into an awk script `defines.awk', embedded as
6840 # here-document in config.status, that substitutes the proper values into
6841 # config.h.in to produce config.h.
6842
6843 # Create a delimiter string that does not exist in confdefs.h, to ease
6844 # handling of long lines.
6845 ac_delim='%!_!# '
6846 for ac_last_try in false false :; do
6847 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6848 if test -z "$ac_tt"; then
6849 break
6850 elif $ac_last_try; then
6851 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6852 else
6853 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6854 fi
6855 done
6856
6857 # For the awk script, D is an array of macro values keyed by name,
6858 # likewise P contains macro parameters if any. Preserve backslash
6859 # newline sequences.
6860
6861 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6862 sed -n '
6863 s/.\{148\}/&'"$ac_delim"'/g
6864 t rset
6865 :rset
6866 s/^[ ]*#[ ]*define[ ][ ]*/ /
6867 t def
6868 d
6869 :def
6870 s/\\$//
6871 t bsnl
6872 s/["\\]/\\&/g
6873 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6874 D["\1"]=" \3"/p
6875 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6876 d
6877 :bsnl
6878 s/["\\]/\\&/g
6879 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6880 D["\1"]=" \3\\\\\\n"\\/p
6881 t cont
6882 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6883 t cont
6884 d
6885 :cont
6886 n
6887 s/.\{148\}/&'"$ac_delim"'/g
6888 t clear
6889 :clear
6890 s/\\$//
6891 t bsnlc
6892 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6893 d
6894 :bsnlc
6895 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6896 b cont
6897 ' <confdefs.h | sed '
6898 s/'"$ac_delim"'/"\\\
6899 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6900
6901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6902 for (key in D) D_is_set[key] = 1
6903 FS = ""
6904 }
6905 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6906 line = \$ 0
6907 split(line, arg, " ")
6908 if (arg[1] == "#") {
6909 defundef = arg[2]
6910 mac1 = arg[3]
6911 } else {
6912 defundef = substr(arg[1], 2)
6913 mac1 = arg[2]
6914 }
6915 split(mac1, mac2, "(") #)
6916 macro = mac2[1]
6917 prefix = substr(line, 1, index(line, defundef) - 1)
6918 if (D_is_set[macro]) {
6919 # Preserve the white space surrounding the "#".
6920 print prefix "define", macro P[macro] D[macro]
6921 next
6922 } else {
6923 # Replace #undef with comments. This is necessary, for example,
6924 # in the case of _POSIX_SOURCE, which is predefined and required
6925 # on some systems where configure will not decide to define it.
6926 if (defundef == "undef") {
6927 print "/*", prefix defundef, macro, "*/"
6928 next
6929 }
6930 }
6931 }
6932 { print }
6933 _ACAWK
6934 _ACEOF
6935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6936 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6937 fi # test -n "$CONFIG_HEADERS"
6938
6939
6940 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6941 shift
6942 for ac_tag
6943 do
6944 case $ac_tag in
6945 :[FHLC]) ac_mode=$ac_tag; continue;;
6946 esac
6947 case $ac_mode$ac_tag in
6948 :[FHL]*:*);;
6949 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6950 :[FH]-) ac_tag=-:-;;
6951 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6952 esac
6953 ac_save_IFS=$IFS
6954 IFS=:
6955 set x $ac_tag
6956 IFS=$ac_save_IFS
6957 shift
6958 ac_file=$1
6959 shift
6960
6961 case $ac_mode in
6962 :L) ac_source=$1;;
6963 :[FH])
6964 ac_file_inputs=
6965 for ac_f
6966 do
6967 case $ac_f in
6968 -) ac_f="$ac_tmp/stdin";;
6969 *) # Look for the file first in the build tree, then in the source tree
6970 # (if the path is not absolute). The absolute path cannot be DOS-style,
6971 # because $ac_f cannot contain `:'.
6972 test -f "$ac_f" ||
6973 case $ac_f in
6974 [\\/$]*) false;;
6975 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6976 esac ||
6977 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6978 esac
6979 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6980 as_fn_append ac_file_inputs " '$ac_f'"
6981 done
6982
6983 # Let's still pretend it is `configure' which instantiates (i.e., don't
6984 # use $as_me), people would be surprised to read:
6985 # /* config.h. Generated by config.status. */
6986 configure_input='Generated from '`
6987 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6988 `' by configure.'
6989 if test x"$ac_file" != x-; then
6990 configure_input="$ac_file. $configure_input"
6991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6992 printf "%s\n" "$as_me: creating $ac_file" >&6;}
6993 fi
6994 # Neutralize special characters interpreted by sed in replacement strings.
6995 case $configure_input in #(
6996 *\&* | *\|* | *\\* )
6997 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
6998 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6999 *) ac_sed_conf_input=$configure_input;;
7000 esac
7001
7002 case $ac_tag in
7003 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7004 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7005 esac
7006 ;;
7007 esac
7008
7009 ac_dir=`$as_dirname -- "$ac_file" ||
7010 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7011 X"$ac_file" : 'X\(//\)[^/]' \| \
7012 X"$ac_file" : 'X\(//\)$' \| \
7013 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7014 printf "%s\n" X"$ac_file" |
7015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7016 s//\1/
7017 q
7018 }
7019 /^X\(\/\/\)[^/].*/{
7020 s//\1/
7021 q
7022 }
7023 /^X\(\/\/\)$/{
7024 s//\1/
7025 q
7026 }
7027 /^X\(\/\).*/{
7028 s//\1/
7029 q
7030 }
7031 s/.*/./; q'`
7032 as_dir="$ac_dir"; as_fn_mkdir_p
7033 ac_builddir=.
7034
7035 case "$ac_dir" in
7036 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7037 *)
7038 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
7039 # A ".." for each directory in $ac_dir_suffix.
7040 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7041 case $ac_top_builddir_sub in
7042 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7043 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7044 esac ;;
7045 esac
7046 ac_abs_top_builddir=$ac_pwd
7047 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7048 # for backward compatibility:
7049 ac_top_builddir=$ac_top_build_prefix
7050
7051 case $srcdir in
7052 .) # We are building in place.
7053 ac_srcdir=.
7054 ac_top_srcdir=$ac_top_builddir_sub
7055 ac_abs_top_srcdir=$ac_pwd ;;
7056 [\\/]* | ?:[\\/]* ) # Absolute name.
7057 ac_srcdir=$srcdir$ac_dir_suffix;
7058 ac_top_srcdir=$srcdir
7059 ac_abs_top_srcdir=$srcdir ;;
7060 *) # Relative name.
7061 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7062 ac_top_srcdir=$ac_top_build_prefix$srcdir
7063 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7064 esac
7065 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7066
7067
7068 case $ac_mode in
7069 :F)
7070 #
7071 # CONFIG_FILE
7072 #
7073
7074 case $INSTALL in
7075 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7076 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7077 esac
7078 _ACEOF
7079
7080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7081 # If the template does not know about datarootdir, expand it.
7082 # FIXME: This hack should be removed a few years after 2.60.
7083 ac_datarootdir_hack=; ac_datarootdir_seen=
7084 ac_sed_dataroot='
7085 /datarootdir/ {
7086 p
7087 q
7088 }
7089 /@datadir@/p
7090 /@docdir@/p
7091 /@infodir@/p
7092 /@localedir@/p
7093 /@mandir@/p'
7094 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7095 *datarootdir*) ac_datarootdir_seen=yes;;
7096 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7098 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7099 _ACEOF
7100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7101 ac_datarootdir_hack='
7102 s&@datadir@&$datadir&g
7103 s&@docdir@&$docdir&g
7104 s&@infodir@&$infodir&g
7105 s&@localedir@&$localedir&g
7106 s&@mandir@&$mandir&g
7107 s&\\\${datarootdir}&$datarootdir&g' ;;
7108 esac
7109 _ACEOF
7110
7111 # Neutralize VPATH when `$srcdir' = `.'.
7112 # Shell code in configure.ac might set extrasub.
7113 # FIXME: do we really want to maintain this feature?
7114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7115 ac_sed_extra="$ac_vpsub
7116 $extrasub
7117 _ACEOF
7118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7119 :t
7120 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7121 s|@configure_input@|$ac_sed_conf_input|;t t
7122 s&@top_builddir@&$ac_top_builddir_sub&;t t
7123 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7124 s&@srcdir@&$ac_srcdir&;t t
7125 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7126 s&@top_srcdir@&$ac_top_srcdir&;t t
7127 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7128 s&@builddir@&$ac_builddir&;t t
7129 s&@abs_builddir@&$ac_abs_builddir&;t t
7130 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7131 s&@INSTALL@&$ac_INSTALL&;t t
7132 $ac_datarootdir_hack
7133 "
7134 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7135 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7136
7137 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7138 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7139 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7140 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7142 which seems to be undefined. Please make sure it is defined" >&5
7143 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7144 which seems to be undefined. Please make sure it is defined" >&2;}
7145
7146 rm -f "$ac_tmp/stdin"
7147 case $ac_file in
7148 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7149 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7150 esac \
7151 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7152 ;;
7153 :H)
7154 #
7155 # CONFIG_HEADER
7156 #
7157 if test x"$ac_file" != x-; then
7158 {
7159 printf "%s\n" "/* $configure_input */" >&1 \
7160 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7161 } >"$ac_tmp/config.h" \
7162 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7163 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7165 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
7166 else
7167 rm -f "$ac_file"
7168 mv "$ac_tmp/config.h" "$ac_file" \
7169 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7170 fi
7171 else
7172 printf "%s\n" "/* $configure_input */" >&1 \
7173 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7174 || as_fn_error $? "could not create -" "$LINENO" 5
7175 fi
7176 ;;
7177
7178
7179 esac
7180
7181 done # for ac_tag
7182
7183
7184 as_fn_exit 0
7185 _ACEOF
7186 ac_clean_files=$ac_clean_files_save
7187
7188 test $ac_write_fail = 0 ||
7189 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7190
7191
7192 # configure is writing to config.log, and then calls config.status.
7193 # config.status does its own redirection, appending to config.log.
7194 # Unfortunately, on DOS this fails, as config.log is still kept open
7195 # by configure, so config.status won't be able to write to it; its
7196 # output is simply discarded. So we exec the FD to /dev/null,
7197 # effectively closing config.log, so it can be properly (re)opened and
7198 # appended to by config.status. When coming back to configure, we
7199 # need to make the FD available again.
7200 if test "$no_create" != yes; then
7201 ac_cs_success=:
7202 ac_config_status_args=
7203 test "$silent" = yes &&
7204 ac_config_status_args="$ac_config_status_args --quiet"
7205 exec 5>/dev/null
7206 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7207 exec 5>>config.log
7208 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7209 # would make configure fail if this is the last instruction.
7210 $ac_cs_success || as_fn_exit 1
7211 fi
7212 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7214 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7215 fi
7216
7217