Update release notes, etc., for the 1.47.2 release
[e2fsprogs.git] / configure
blobf9a7aa4e2e864cae9d871cc9911777a6b299e0a3
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71.
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7 # Inc.
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 ## -------------------- ##
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 *) :
33 esac
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
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='
47 export as_nl
48 IFS=" "" $as_nl"
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
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
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
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=';'
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
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
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
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
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
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 *) :
156 esac
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; }
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 :
173 else \$as_nop
174 exitcode=1; echo positional parameters were not saved.
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
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
192 then :
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
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 #(
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
220 done;;
221 esac
222 as_found=false
223 done
224 IFS=$as_save_IFS
225 if $as_found
226 then :
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
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
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 bug-autoconf@gnu.org 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."
273 exit 1
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
283 ## --------------------- ##
284 ## M4sh Shell Functions. ##
285 ## --------------------- ##
286 # as_fn_unset VAR
287 # ---------------
288 # Portably unset VAR.
289 as_fn_unset ()
291 { eval $1=; unset $1;}
293 as_unset=as_fn_unset
296 # as_fn_set_status STATUS
297 # -----------------------
298 # Set $? to STATUS, without forking.
299 as_fn_set_status ()
301 return $1
302 } # as_fn_set_status
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 ()
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 ()
318 return $?
320 as_nop=as_fn_nop
322 # as_fn_mkdir_p
323 # -------------
324 # Create "$as_dir" as a directory, including parents if necessary.
325 as_fn_mkdir_p ()
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/
349 /^X\(\/\/\)[^/].*/{
350 s//\1/
353 /^X\(\/\/\)$/{
354 s//\1/
357 /^X\(\/\).*/{
358 s//\1/
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"
368 } # as_fn_mkdir_p
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
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 ()
387 eval $1+=\$2
389 else $as_nop
390 as_fn_append ()
392 eval $1=\$$1\$2
394 fi # as_fn_append
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 ()
405 as_val=$(( $* ))
407 else $as_nop
408 as_fn_arith ()
410 as_val=`expr "$@" || test $? -eq 1`
412 fi # as_fn_arith
414 # as_fn_nop
415 # ---------
416 # Do nothing but, unlike ":", preserve the value of $?.
417 as_fn_nop ()
419 return $?
421 as_nop=as_fn_nop
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 ()
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
435 printf "%s\n" "$as_me: error: $2" >&2
436 as_fn_exit $as_status
437 } # as_fn_error
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
446 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
447 as_basename=basename
448 else
449 as_basename=false
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
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/
467 /^X\/\(\/\/\)$/{
468 s//\1/
471 /^X\/\(\/\).*/{
472 s//\1/
475 s/.*/./; q'`
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
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 '
492 /[$]LINENO/=
493 ' <$as_myself |
494 sed '
495 s/[$]LINENO.*/&-/
496 t lineno
498 :lineno
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; }
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
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;;
534 ECHO_N='-n';;
535 esac
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'
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
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'
565 else
566 as_ln_s='cp -pR'
568 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
569 rmdir conf$$.dir 2>/dev/null
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
578 as_test_x='test -x'
579 as_executable_p=as_fn_executable_p
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'"
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'"
588 test -n "$DJDIR" || exec 7<&0 </dev/null
589 exec 6>&1
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`
597 # Initializations.
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=
608 # Identity of this package.
609 PACKAGE_NAME=''
610 PACKAGE_TARNAME=''
611 PACKAGE_VERSION=''
612 PACKAGE_STRING=''
613 PACKAGE_BUGREPORT=''
614 PACKAGE_URL=''
616 ac_unique_file="version.h"
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"
648 ac_header_c_list=
649 gt_needs=
650 ac_func_c_list=
651 ac_subst_vars='LTLIBOBJS
652 LIBOBJS
653 OS_IO_FILE
654 systemd_system_unit_dir
655 have_systemd
656 systemd_LIBS
657 systemd_CFLAGS
658 crond_dir
659 have_crond
660 pkg_udev_rules_dir
661 have_udev
662 udev_LIBS
663 udev_CFLAGS
664 LDFLAGS_SHLIB
665 CFLAGS_STLIB
666 CFLAGS_SHLIB
667 BUILD_LDFLAGS
668 BUILD_CFLAGS
669 INCLUDES
670 DO_TEST_SUITE
671 LDFLAGS_STATIC
672 root_sysconfdir
673 root_libdir
674 root_sbindir
675 root_bindir
676 root_prefix
677 E2SCRUB_CMT
678 UNIX_CMT
679 CYGWIN_CMT
680 LINUX_CMT
681 FUZZING_CMT
682 fuzzer_ldflags
683 fuzzer_cflags
684 have_fuzzer
685 ac_ct_CXX
686 CXXFLAGS
688 threadsan_ldflags
689 threadsan_cflags
690 have_threadsan
691 addrsan_ldflags
692 addrsan_cflags
693 have_addrsan
694 ubsan_ldflags
695 ubsan_cflags
696 have_ubsan
697 lto_ldflags
698 lto_cflags
699 have_lto
700 gcc_ranlib
701 gcc_ar
702 UNI_DIFF_OPTS
703 SEM_INIT_LIB
704 FUSE_CMT
705 FUSE_LIB
706 fuse3_LIBS
707 fuse3_CFLAGS
708 CLOCK_GETTIME_LIB
709 ARCHIVE_LIB
710 MAGIC_LIB
711 SOCKET_LIB
712 SIZEOF_TIME_T
713 SIZEOF_OFF_T
714 SIZEOF_LONG_LONG
715 SIZEOF_LONG
716 SIZEOF_INT
717 SIZEOF_SHORT
719 BUILD_CC
720 MAKEINFO
721 STRIP
722 RANLIB
724 LDCONFIG
725 PERL
727 CHMOD
731 LN_S
732 mkdir_p
734 ifNotGNUmake
735 ifGNUmake
736 BINARY_TYPE
737 POSUB
738 LTLIBINTL
739 LIBINTL
740 INTLLIBS
741 LTLIBICONV
742 LIBICONV
743 INTL_MACOSX_LIBS
744 XGETTEXT_EXTRA_OPTIONS
745 MSGMERGE_FOR_MSGFMT_OPTION
746 MSGMERGE
747 XGETTEXT_015
748 XGETTEXT
749 GMSGFMT_015
750 GMSGFMT
751 MSGFMT
752 GETTEXT_MACRO_VERSION
753 USE_NLS
754 MKDIR_P
755 INSTALL_DATA
756 INSTALL_SCRIPT
757 INSTALL_PROGRAM
758 SET_MAKE
759 VERSION
760 PACKAGE
761 GETTEXT_PACKAGE
762 TDB_MAN_COMMENT
763 TDB_CMT
764 UUIDD_CMT
765 PTHREAD_CFLAGS
766 PTHREAD_LIBS
767 PTHREAD_CXX
768 PTHREAD_CC
769 ax_pthread_config
770 EGREP
771 GREP
773 E2INITRD_MAN
774 E2INITRD_PROG
775 FSCK_MAN
776 FSCK_PROG
777 DEFRAG_CMT
778 RESIZER_CMT
779 IMAGER_CMT
780 DEBUGFS_CMT
781 SUBSET_CMT
782 ALL_CMT
783 BLKID_CMT
784 DEPPROFILED_LIBBLKID
785 PROFILED_LIBBLKID
786 DEPSTATIC_LIBBLKID
787 STATIC_LIBBLKID
788 DEPLIBBLKID
789 LIBBLKID
790 UUID_CMT
791 DEPPROFILED_LIBUUID
792 PROFILED_LIBUUID
793 DEPSTATIC_LIBUUID
794 STATIC_LIBUUID
795 DEPLIBUUID
796 LIBUUID
797 PKG_CONFIG_LIBDIR
798 PKG_CONFIG_PATH
799 PKG_CONFIG
800 DEV_FEATURES_CMT
801 TEST_IO_CMT
802 PRIVATE_LIBS_CMT
803 LDFLAG_DYNAMIC
804 PROFILED_LIB_EXT
805 STATIC_LIB_EXT
806 LIB_EXT
807 PROFILE_CMT
808 BSDLIB_CMT
809 ELF_CMT
813 LINK_BUILD_FLAGS
814 SYMLINK_RELATIVE
815 LINK_INSTALL_FLAGS
816 MAINTAINER_CMT
818 RDYNAMIC
819 DLOPEN_LIB
820 host_os
821 host_vendor
822 host_cpu
823 host
824 build_os
825 build_vendor
826 build_cpu
827 build
828 E2FSPROGS_DATE
829 E2FSPROGS_PKGVER
830 E2FSPROGS_PKGREL
831 E2FSPROGS_VERSION
832 E2FSPROGS_DAY
833 E2FSPROGS_MONTH
834 E2FSPROGS_YEAR
835 OBJEXT
836 EXEEXT
837 ac_ct_CC
838 CPPFLAGS
839 LDFLAGS
840 CFLAGS
842 target_alias
843 host_alias
844 build_alias
845 LIBS
846 ECHO_T
847 ECHO_N
848 ECHO_C
849 DEFS
850 mandir
851 localedir
852 libdir
853 psdir
854 pdfdir
855 dvidir
856 htmldir
857 infodir
858 docdir
859 oldincludedir
860 includedir
861 runstatedir
862 localstatedir
863 sharedstatedir
864 sysconfdir
865 datadir
866 datarootdir
867 libexecdir
868 sbindir
869 bindir
870 program_transform_name
871 prefix
872 exec_prefix
873 PACKAGE_URL
874 PACKAGE_BUGREPORT
875 PACKAGE_STRING
876 PACKAGE_VERSION
877 PACKAGE_TARNAME
878 PACKAGE_NAME
879 PATH_SEPARATOR
880 SHELL'
881 ac_subst_files='MCONFIG
882 MAKEFILE_ELF
883 MAKEFILE_BSDLIB
884 MAKEFILE_PROFILE
885 MAKEFILE_LIBRARY
886 ASM_TYPES_HEADER
887 PUBLIC_CONFIG_HEADER'
888 ac_user_opts='
889 enable_option_checking
890 with_diet_libc
891 with_cc
892 with_ccopts
893 with_ldopts
894 with_root_prefix
895 enable_maintainer_mode
896 enable_symlink_install
897 enable_relative_symlinks
898 enable_symlink_relative_symlinks
899 enable_symlink_build
900 enable_verbose_makecmds
901 enable_elf_shlibs
902 enable_bsd_shlibs
903 enable_profile
904 enable_gcov
905 enable_hardening
906 enable_jbd_debug
907 enable_blkid_debug
908 enable_testio_debug
909 enable_developer_features
910 enable_libuuid
911 enable_libblkid
912 enable_subset
913 enable_backtrace
914 enable_debugfs
915 enable_imager
916 enable_resizer
917 enable_defrag
918 enable_fsck
919 enable_e2initrd_helper
920 enable_tls
921 with_pthread
922 enable_uuidd
923 enable_mmp
924 enable_tdb
925 enable_bmap_stats
926 enable_bmap_stats_ops
927 enable_nls
928 with_gnu_ld
929 enable_rpath
930 with_libiconv_prefix
931 with_libintl_prefix
932 enable_largefile
933 with_libarchive
934 enable_fuse2fs
935 enable_lto
936 enable_ubsan
937 enable_addrsan
938 enable_threadsan
939 enable_fuzzing
940 with_multiarch
941 with_udev_rules_dir
942 with_crond_dir
943 with_systemd_unit_dir
945 ac_precious_vars='build_alias
946 host_alias
947 target_alias
949 CFLAGS
950 LDFLAGS
951 LIBS
952 CPPFLAGS
954 PKG_CONFIG
955 PKG_CONFIG_PATH
956 PKG_CONFIG_LIBDIR
957 fuse3_CFLAGS
958 fuse3_LIBS
960 CXXFLAGS
962 udev_CFLAGS
963 udev_LIBS
964 systemd_CFLAGS
965 systemd_LIBS'
968 # Initialize some variables set by options.
969 ac_init_help=
970 ac_init_version=false
971 ac_unrecognized_opts=
972 ac_unrecognized_sep=
973 # The variables have the same names as the options, with
974 # dashes changed to underlines.
975 cache_file=/dev/null
976 exec_prefix=NONE
977 no_create=
978 no_recursion=
979 prefix=NONE
980 program_prefix=NONE
981 program_suffix=NONE
982 program_transform_name=s,x,x,
983 silent=
984 site=
985 srcdir=
986 verbose=
987 x_includes=NONE
988 x_libraries=NONE
990 # Installation directory options.
991 # These are left unexpanded so users can "make install exec_prefix=/foo"
992 # and all the variables that are supposed to be based on exec_prefix
993 # by default will actually change.
994 # Use braces instead of parens because sh, perl, etc. also accept them.
995 # (The list follows the same order as the GNU Coding Standards.)
996 bindir='${exec_prefix}/bin'
997 sbindir='${exec_prefix}/sbin'
998 libexecdir='${exec_prefix}/libexec'
999 datarootdir='${prefix}/share'
1000 datadir='${datarootdir}'
1001 sysconfdir='${prefix}/etc'
1002 sharedstatedir='${prefix}/com'
1003 localstatedir='${prefix}/var'
1004 runstatedir='${localstatedir}/run'
1005 includedir='${prefix}/include'
1006 oldincludedir='/usr/include'
1007 docdir='${datarootdir}/doc/${PACKAGE}'
1008 infodir='${datarootdir}/info'
1009 htmldir='${docdir}'
1010 dvidir='${docdir}'
1011 pdfdir='${docdir}'
1012 psdir='${docdir}'
1013 libdir='${exec_prefix}/lib'
1014 localedir='${datarootdir}/locale'
1015 mandir='${datarootdir}/man'
1017 ac_prev=
1018 ac_dashdash=
1019 for ac_option
1021 # If the previous option needs an argument, assign it.
1022 if test -n "$ac_prev"; then
1023 eval $ac_prev=\$ac_option
1024 ac_prev=
1025 continue
1028 case $ac_option in
1029 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1030 *=) ac_optarg= ;;
1031 *) ac_optarg=yes ;;
1032 esac
1034 case $ac_dashdash$ac_option in
1036 ac_dashdash=yes ;;
1038 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1039 ac_prev=bindir ;;
1040 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1041 bindir=$ac_optarg ;;
1043 -build | --build | --buil | --bui | --bu)
1044 ac_prev=build_alias ;;
1045 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1046 build_alias=$ac_optarg ;;
1048 -cache-file | --cache-file | --cache-fil | --cache-fi \
1049 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1050 ac_prev=cache_file ;;
1051 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1052 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1053 cache_file=$ac_optarg ;;
1055 --config-cache | -C)
1056 cache_file=config.cache ;;
1058 -datadir | --datadir | --datadi | --datad)
1059 ac_prev=datadir ;;
1060 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1061 datadir=$ac_optarg ;;
1063 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1064 | --dataroo | --dataro | --datar)
1065 ac_prev=datarootdir ;;
1066 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1067 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1068 datarootdir=$ac_optarg ;;
1070 -disable-* | --disable-*)
1071 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1075 ac_useropt_orig=$ac_useropt
1076 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1079 "enable_$ac_useropt"
1080 "*) ;;
1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1082 ac_unrecognized_sep=', ';;
1083 esac
1084 eval enable_$ac_useropt=no ;;
1086 -docdir | --docdir | --docdi | --doc | --do)
1087 ac_prev=docdir ;;
1088 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1089 docdir=$ac_optarg ;;
1091 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1092 ac_prev=dvidir ;;
1093 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1094 dvidir=$ac_optarg ;;
1096 -enable-* | --enable-*)
1097 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1101 ac_useropt_orig=$ac_useropt
1102 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1103 case $ac_user_opts in
1105 "enable_$ac_useropt"
1106 "*) ;;
1107 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1108 ac_unrecognized_sep=', ';;
1109 esac
1110 eval enable_$ac_useropt=\$ac_optarg ;;
1112 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1113 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1114 | --exec | --exe | --ex)
1115 ac_prev=exec_prefix ;;
1116 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1117 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1118 | --exec=* | --exe=* | --ex=*)
1119 exec_prefix=$ac_optarg ;;
1121 -gas | --gas | --ga | --g)
1122 # Obsolete; use --with-gas.
1123 with_gas=yes ;;
1125 -help | --help | --hel | --he | -h)
1126 ac_init_help=long ;;
1127 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1128 ac_init_help=recursive ;;
1129 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1130 ac_init_help=short ;;
1132 -host | --host | --hos | --ho)
1133 ac_prev=host_alias ;;
1134 -host=* | --host=* | --hos=* | --ho=*)
1135 host_alias=$ac_optarg ;;
1137 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1138 ac_prev=htmldir ;;
1139 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1140 | --ht=*)
1141 htmldir=$ac_optarg ;;
1143 -includedir | --includedir | --includedi | --included | --include \
1144 | --includ | --inclu | --incl | --inc)
1145 ac_prev=includedir ;;
1146 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1147 | --includ=* | --inclu=* | --incl=* | --inc=*)
1148 includedir=$ac_optarg ;;
1150 -infodir | --infodir | --infodi | --infod | --info | --inf)
1151 ac_prev=infodir ;;
1152 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1153 infodir=$ac_optarg ;;
1155 -libdir | --libdir | --libdi | --libd)
1156 ac_prev=libdir ;;
1157 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1158 libdir=$ac_optarg ;;
1160 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1161 | --libexe | --libex | --libe)
1162 ac_prev=libexecdir ;;
1163 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1164 | --libexe=* | --libex=* | --libe=*)
1165 libexecdir=$ac_optarg ;;
1167 -localedir | --localedir | --localedi | --localed | --locale)
1168 ac_prev=localedir ;;
1169 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1170 localedir=$ac_optarg ;;
1172 -localstatedir | --localstatedir | --localstatedi | --localstated \
1173 | --localstate | --localstat | --localsta | --localst | --locals)
1174 ac_prev=localstatedir ;;
1175 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1176 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1177 localstatedir=$ac_optarg ;;
1179 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1180 ac_prev=mandir ;;
1181 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1182 mandir=$ac_optarg ;;
1184 -nfp | --nfp | --nf)
1185 # Obsolete; use --without-fp.
1186 with_fp=no ;;
1188 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1189 | --no-cr | --no-c | -n)
1190 no_create=yes ;;
1192 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1193 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1194 no_recursion=yes ;;
1196 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1197 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1198 | --oldin | --oldi | --old | --ol | --o)
1199 ac_prev=oldincludedir ;;
1200 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1201 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1202 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1203 oldincludedir=$ac_optarg ;;
1205 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1206 ac_prev=prefix ;;
1207 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1208 prefix=$ac_optarg ;;
1210 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1211 | --program-pre | --program-pr | --program-p)
1212 ac_prev=program_prefix ;;
1213 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1214 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1215 program_prefix=$ac_optarg ;;
1217 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1218 | --program-suf | --program-su | --program-s)
1219 ac_prev=program_suffix ;;
1220 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1221 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1222 program_suffix=$ac_optarg ;;
1224 -program-transform-name | --program-transform-name \
1225 | --program-transform-nam | --program-transform-na \
1226 | --program-transform-n | --program-transform- \
1227 | --program-transform | --program-transfor \
1228 | --program-transfo | --program-transf \
1229 | --program-trans | --program-tran \
1230 | --progr-tra | --program-tr | --program-t)
1231 ac_prev=program_transform_name ;;
1232 -program-transform-name=* | --program-transform-name=* \
1233 | --program-transform-nam=* | --program-transform-na=* \
1234 | --program-transform-n=* | --program-transform-=* \
1235 | --program-transform=* | --program-transfor=* \
1236 | --program-transfo=* | --program-transf=* \
1237 | --program-trans=* | --program-tran=* \
1238 | --progr-tra=* | --program-tr=* | --program-t=*)
1239 program_transform_name=$ac_optarg ;;
1241 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1242 ac_prev=pdfdir ;;
1243 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1244 pdfdir=$ac_optarg ;;
1246 -psdir | --psdir | --psdi | --psd | --ps)
1247 ac_prev=psdir ;;
1248 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1249 psdir=$ac_optarg ;;
1251 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1252 | -silent | --silent | --silen | --sile | --sil)
1253 silent=yes ;;
1255 -runstatedir | --runstatedir | --runstatedi | --runstated \
1256 | --runstate | --runstat | --runsta | --runst | --runs \
1257 | --run | --ru | --r)
1258 ac_prev=runstatedir ;;
1259 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1260 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1261 | --run=* | --ru=* | --r=*)
1262 runstatedir=$ac_optarg ;;
1264 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1265 ac_prev=sbindir ;;
1266 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1267 | --sbi=* | --sb=*)
1268 sbindir=$ac_optarg ;;
1270 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1271 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1272 | --sharedst | --shareds | --shared | --share | --shar \
1273 | --sha | --sh)
1274 ac_prev=sharedstatedir ;;
1275 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1276 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1277 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1278 | --sha=* | --sh=*)
1279 sharedstatedir=$ac_optarg ;;
1281 -site | --site | --sit)
1282 ac_prev=site ;;
1283 -site=* | --site=* | --sit=*)
1284 site=$ac_optarg ;;
1286 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1287 ac_prev=srcdir ;;
1288 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1289 srcdir=$ac_optarg ;;
1291 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1292 | --syscon | --sysco | --sysc | --sys | --sy)
1293 ac_prev=sysconfdir ;;
1294 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1295 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1296 sysconfdir=$ac_optarg ;;
1298 -target | --target | --targe | --targ | --tar | --ta | --t)
1299 ac_prev=target_alias ;;
1300 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1301 target_alias=$ac_optarg ;;
1303 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1304 verbose=yes ;;
1306 -version | --version | --versio | --versi | --vers | -V)
1307 ac_init_version=: ;;
1309 -with-* | --with-*)
1310 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1311 # Reject names that are not valid shell variable names.
1312 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1313 as_fn_error $? "invalid package name: \`$ac_useropt'"
1314 ac_useropt_orig=$ac_useropt
1315 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1316 case $ac_user_opts in
1318 "with_$ac_useropt"
1319 "*) ;;
1320 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1321 ac_unrecognized_sep=', ';;
1322 esac
1323 eval with_$ac_useropt=\$ac_optarg ;;
1325 -without-* | --without-*)
1326 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1327 # Reject names that are not valid shell variable names.
1328 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1329 as_fn_error $? "invalid package name: \`$ac_useropt'"
1330 ac_useropt_orig=$ac_useropt
1331 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1332 case $ac_user_opts in
1334 "with_$ac_useropt"
1335 "*) ;;
1336 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1337 ac_unrecognized_sep=', ';;
1338 esac
1339 eval with_$ac_useropt=no ;;
1341 --x)
1342 # Obsolete; use --with-x.
1343 with_x=yes ;;
1345 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1346 | --x-incl | --x-inc | --x-in | --x-i)
1347 ac_prev=x_includes ;;
1348 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1349 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1350 x_includes=$ac_optarg ;;
1352 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1353 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1354 ac_prev=x_libraries ;;
1355 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1356 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1357 x_libraries=$ac_optarg ;;
1359 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1360 Try \`$0 --help' for more information"
1363 *=*)
1364 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1365 # Reject names that are not valid shell variable names.
1366 case $ac_envvar in #(
1367 '' | [0-9]* | *[!_$as_cr_alnum]* )
1368 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1369 esac
1370 eval $ac_envvar=\$ac_optarg
1371 export $ac_envvar ;;
1374 # FIXME: should be removed in autoconf 3.0.
1375 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1376 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1377 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1378 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1381 esac
1382 done
1384 if test -n "$ac_prev"; then
1385 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1386 as_fn_error $? "missing argument to $ac_option"
1389 if test -n "$ac_unrecognized_opts"; then
1390 case $enable_option_checking in
1391 no) ;;
1392 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1393 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1394 esac
1397 # Check all directory arguments for consistency.
1398 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1399 datadir sysconfdir sharedstatedir localstatedir includedir \
1400 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1401 libdir localedir mandir runstatedir
1403 eval ac_val=\$$ac_var
1404 # Remove trailing slashes.
1405 case $ac_val in
1406 */ )
1407 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1408 eval $ac_var=\$ac_val;;
1409 esac
1410 # Be sure to have absolute directory names.
1411 case $ac_val in
1412 [\\/$]* | ?:[\\/]* ) continue;;
1413 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1414 esac
1415 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1416 done
1418 # There might be people who depend on the old broken behavior: `$host'
1419 # used to hold the argument of --host etc.
1420 # FIXME: To remove some day.
1421 build=$build_alias
1422 host=$host_alias
1423 target=$target_alias
1425 # FIXME: To remove some day.
1426 if test "x$host_alias" != x; then
1427 if test "x$build_alias" = x; then
1428 cross_compiling=maybe
1429 elif test "x$build_alias" != "x$host_alias"; then
1430 cross_compiling=yes
1434 ac_tool_prefix=
1435 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1437 test "$silent" = yes && exec 6>/dev/null
1440 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1441 ac_ls_di=`ls -di .` &&
1442 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1443 as_fn_error $? "working directory cannot be determined"
1444 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1445 as_fn_error $? "pwd does not report name of working directory"
1448 # Find the source files, if location was not specified.
1449 if test -z "$srcdir"; then
1450 ac_srcdir_defaulted=yes
1451 # Try the directory containing this script, then the parent directory.
1452 ac_confdir=`$as_dirname -- "$as_myself" ||
1453 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1454 X"$as_myself" : 'X\(//\)[^/]' \| \
1455 X"$as_myself" : 'X\(//\)$' \| \
1456 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1457 printf "%s\n" X"$as_myself" |
1458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1459 s//\1/
1462 /^X\(\/\/\)[^/].*/{
1463 s//\1/
1466 /^X\(\/\/\)$/{
1467 s//\1/
1470 /^X\(\/\).*/{
1471 s//\1/
1474 s/.*/./; q'`
1475 srcdir=$ac_confdir
1476 if test ! -r "$srcdir/$ac_unique_file"; then
1477 srcdir=..
1479 else
1480 ac_srcdir_defaulted=no
1482 if test ! -r "$srcdir/$ac_unique_file"; then
1483 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1484 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1486 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1487 ac_abs_confdir=`(
1488 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1489 pwd)`
1490 # When building in place, set srcdir=.
1491 if test "$ac_abs_confdir" = "$ac_pwd"; then
1492 srcdir=.
1494 # Remove unnecessary trailing slashes from srcdir.
1495 # Double slashes in file names in object file debugging info
1496 # mess up M-x gdb in Emacs.
1497 case $srcdir in
1498 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1499 esac
1500 for ac_var in $ac_precious_vars; do
1501 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1502 eval ac_env_${ac_var}_value=\$${ac_var}
1503 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1504 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1505 done
1508 # Report the --help message.
1510 if test "$ac_init_help" = "long"; then
1511 # Omit some internal or obsolete options to make the list less imposing.
1512 # This message is too long to be a string in the A/UX 3.1 sh.
1513 cat <<_ACEOF
1514 \`configure' configures this package to adapt to many kinds of systems.
1516 Usage: $0 [OPTION]... [VAR=VALUE]...
1518 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1519 VAR=VALUE. See below for descriptions of some of the useful variables.
1521 Defaults for the options are specified in brackets.
1523 Configuration:
1524 -h, --help display this help and exit
1525 --help=short display options specific to this package
1526 --help=recursive display the short help of all the included packages
1527 -V, --version display version information and exit
1528 -q, --quiet, --silent do not print \`checking ...' messages
1529 --cache-file=FILE cache test results in FILE [disabled]
1530 -C, --config-cache alias for \`--cache-file=config.cache'
1531 -n, --no-create do not create output files
1532 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1534 Installation directories:
1535 --prefix=PREFIX install architecture-independent files in PREFIX
1536 [$ac_default_prefix]
1537 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1538 [PREFIX]
1540 By default, \`make install' will install all the files in
1541 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1542 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1543 for instance \`--prefix=\$HOME'.
1545 For better control, use the options below.
1547 Fine tuning of the installation directories:
1548 --bindir=DIR user executables [EPREFIX/bin]
1549 --sbindir=DIR system admin executables [EPREFIX/sbin]
1550 --libexecdir=DIR program executables [EPREFIX/libexec]
1551 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1552 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1553 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1554 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1555 --libdir=DIR object code libraries [EPREFIX/lib]
1556 --includedir=DIR C header files [PREFIX/include]
1557 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1558 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1559 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1560 --infodir=DIR info documentation [DATAROOTDIR/info]
1561 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1562 --mandir=DIR man documentation [DATAROOTDIR/man]
1563 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1564 --htmldir=DIR html documentation [DOCDIR]
1565 --dvidir=DIR dvi documentation [DOCDIR]
1566 --pdfdir=DIR pdf documentation [DOCDIR]
1567 --psdir=DIR ps documentation [DOCDIR]
1568 _ACEOF
1570 cat <<\_ACEOF
1572 System types:
1573 --build=BUILD configure for building on BUILD [guessed]
1574 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1575 _ACEOF
1578 if test -n "$ac_init_help"; then
1580 cat <<\_ACEOF
1582 Optional Features:
1583 --disable-option-checking ignore unrecognized --enable/--with options
1584 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1585 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1586 --enable-maintainer-mode
1587 enable makefile rules useful for maintainers
1588 --enable-symlink-install
1589 use symlinks when installing instead of hard links
1590 --enable-relative-symlinks
1591 use relative symlinks when installing
1593 --enable-symlink-build use symlinks while building instead of hard links
1594 --enable-verbose-makecmds
1595 enable verbose make command output
1596 --enable-elf-shlibs select ELF shared libraries
1597 --enable-bsd-shlibs select BSD shared libraries
1598 --enable-profile build profiling libraries
1599 --enable-gcov build for coverage testing using gcov
1600 --enable-hardening build with hardening flags such as fortify
1601 --enable-jbd-debug enable journal debugging
1602 --enable-blkid-debug enable blkid debugging
1603 --disable-testio-debug disable the use of the test I/O manager for
1604 debugging
1605 --enable-developer-features
1606 enable features for use by ext4 developers
1607 --enable-libuuid build and use private uuid library
1608 --enable-libblkid build and use private blkid library
1609 --enable-subset enable subset-only build
1610 --disable-backtrace disable use backtrace
1611 --disable-debugfs disable support of debugfs program
1612 --disable-imager disable support of e2image program
1613 --disable-resizer disable support of e2resize program
1614 --disable-defrag disable support of e4defrag program
1615 --enable-fsck build fsck wrapper program
1616 --enable-e2initrd-helper
1617 build e2initrd-helper program
1618 --disable-tls disable use of thread local support
1619 --disable-uuidd disable building the uuid daemon
1620 --disable-mmp disable support mmp, Multi Mount Protection
1621 --disable-tdb disable tdb support
1622 --disable-bmap-stats disable collection of bitmap stats
1623 --enable-bmap-stats-ops enable collection of additional bitmap stats
1624 --disable-nls do not use Native Language Support
1625 --disable-rpath do not hardcode runtime library paths
1626 --disable-largefile omit support for large files
1627 --disable-fuse2fs do not build fuse2fs
1628 --enable-lto enable link time optimization
1629 --enable-ubsan enable undefined behavior sanitizer
1630 --enable-addrsan enable address sanitizer
1631 --enable-threadsan enable thread sanitizer
1632 --enable-fuzzing enable fuzzing sanitizer
1634 Optional Packages:
1635 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1636 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1637 --with-diet-libc use diet libc
1638 --with-cc no longer supported, use CC= instead
1639 --with-ccopts no longer supported, use CFLAGS= instead
1640 --with-ldopts no longer supported, use LDFLAGS= instead
1641 --with-root-prefix=PREFIX
1642 override prefix variable for files to be placed in
1643 the root
1644 --without-pthread disable use of pthread support
1645 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1646 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1647 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1648 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1649 --without-libintl-prefix don't search for libintl in includedir and libdir
1650 --without-libarchive disable use of libarchive
1651 --with-multiarch=ARCH specify the multiarch triplet
1652 --with-udev-rules-dir[=DIR]
1653 Install udev rules into DIR.
1654 --with-crond-dir[=DIR] Install system crontabs into DIR.
1655 --with-systemd-unit-dir[=DIR]
1656 Install systemd system units into DIR.
1658 Some influential environment variables:
1659 CC C compiler command
1660 CFLAGS C compiler flags
1661 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1662 nonstandard directory <lib dir>
1663 LIBS libraries to pass to the linker, e.g. -l<library>
1664 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1665 you have headers in a nonstandard directory <include dir>
1666 CPP C preprocessor
1667 PKG_CONFIG path to pkg-config utility
1668 PKG_CONFIG_PATH
1669 directories to add to pkg-config's search path
1670 PKG_CONFIG_LIBDIR
1671 path overriding pkg-config's built-in search path
1672 CXX C++ compiler command
1673 CXXFLAGS C++ compiler flags
1674 udev_CFLAGS C compiler flags for udev, overriding pkg-config
1675 udev_LIBS linker flags for udev, overriding pkg-config
1676 systemd_CFLAGS
1677 C compiler flags for systemd, overriding pkg-config
1678 systemd_LIBS
1679 linker flags for systemd, overriding pkg-config
1681 Use these variables to override the choices made by `configure' or to help
1682 it to find libraries and programs with nonstandard names/locations.
1684 Report bugs to the package provider.
1685 _ACEOF
1686 ac_status=$?
1689 if test "$ac_init_help" = "recursive"; then
1690 # If there are subdirs, report their specific --help.
1691 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1692 test -d "$ac_dir" ||
1693 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1694 continue
1695 ac_builddir=.
1697 case "$ac_dir" in
1698 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1700 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1701 # A ".." for each directory in $ac_dir_suffix.
1702 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1703 case $ac_top_builddir_sub in
1704 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1705 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1706 esac ;;
1707 esac
1708 ac_abs_top_builddir=$ac_pwd
1709 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1710 # for backward compatibility:
1711 ac_top_builddir=$ac_top_build_prefix
1713 case $srcdir in
1714 .) # We are building in place.
1715 ac_srcdir=.
1716 ac_top_srcdir=$ac_top_builddir_sub
1717 ac_abs_top_srcdir=$ac_pwd ;;
1718 [\\/]* | ?:[\\/]* ) # Absolute name.
1719 ac_srcdir=$srcdir$ac_dir_suffix;
1720 ac_top_srcdir=$srcdir
1721 ac_abs_top_srcdir=$srcdir ;;
1722 *) # Relative name.
1723 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1724 ac_top_srcdir=$ac_top_build_prefix$srcdir
1725 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1726 esac
1727 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1729 cd "$ac_dir" || { ac_status=$?; continue; }
1730 # Check for configure.gnu first; this name is used for a wrapper for
1731 # Metaconfig's "Configure" on case-insensitive file systems.
1732 if test -f "$ac_srcdir/configure.gnu"; then
1733 echo &&
1734 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1735 elif test -f "$ac_srcdir/configure"; then
1736 echo &&
1737 $SHELL "$ac_srcdir/configure" --help=recursive
1738 else
1739 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1740 fi || ac_status=$?
1741 cd "$ac_pwd" || { ac_status=$?; break; }
1742 done
1745 test -n "$ac_init_help" && exit $ac_status
1746 if $ac_init_version; then
1747 cat <<\_ACEOF
1748 configure
1749 generated by GNU Autoconf 2.71
1751 Copyright (C) 2021 Free Software Foundation, Inc.
1752 This configure script is free software; the Free Software Foundation
1753 gives unlimited permission to copy, distribute and modify it.
1754 _ACEOF
1755 exit
1758 ## ------------------------ ##
1759 ## Autoconf initialization. ##
1760 ## ------------------------ ##
1762 # ac_fn_c_try_compile LINENO
1763 # --------------------------
1764 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1765 ac_fn_c_try_compile ()
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 rm -f conftest.$ac_objext conftest.beam
1769 if { { ac_try="$ac_compile"
1770 case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 printf "%s\n" "$ac_try_echo"; } >&5
1776 (eval "$ac_compile") 2>conftest.err
1777 ac_status=$?
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && {
1785 test -z "$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 } && test -s conftest.$ac_objext
1788 then :
1789 ac_retval=0
1790 else $as_nop
1791 printf "%s\n" "$as_me: failed program was:" >&5
1792 sed 's/^/| /' conftest.$ac_ext >&5
1794 ac_retval=1
1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797 as_fn_set_status $ac_retval
1799 } # ac_fn_c_try_compile
1801 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1802 # -------------------------------------------------------
1803 # Tests whether HEADER exists and can be compiled using the include files in
1804 # INCLUDES, setting the cache variable VAR accordingly.
1805 ac_fn_c_check_header_compile ()
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809 printf %s "checking for $2... " >&6; }
1810 if eval test \${$3+y}
1811 then :
1812 printf %s "(cached) " >&6
1813 else $as_nop
1814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815 /* end confdefs.h. */
1817 #include <$2>
1818 _ACEOF
1819 if ac_fn_c_try_compile "$LINENO"
1820 then :
1821 eval "$3=yes"
1822 else $as_nop
1823 eval "$3=no"
1825 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1827 eval ac_res=\$$3
1828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829 printf "%s\n" "$ac_res" >&6; }
1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 } # ac_fn_c_check_header_compile
1834 # ac_fn_c_try_link LINENO
1835 # -----------------------
1836 # Try to link conftest.$ac_ext, and return whether this succeeded.
1837 ac_fn_c_try_link ()
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1841 if { { ac_try="$ac_link"
1842 case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845 esac
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 printf "%s\n" "$ac_try_echo"; } >&5
1848 (eval "$ac_link") 2>conftest.err
1849 ac_status=$?
1850 if test -s conftest.err; then
1851 grep -v '^ *+' conftest.err >conftest.er1
1852 cat conftest.er1 >&5
1853 mv -f conftest.er1 conftest.err
1855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && {
1857 test -z "$ac_c_werror_flag" ||
1858 test ! -s conftest.err
1859 } && test -s conftest$ac_exeext && {
1860 test "$cross_compiling" = yes ||
1861 test -x conftest$ac_exeext
1863 then :
1864 ac_retval=0
1865 else $as_nop
1866 printf "%s\n" "$as_me: failed program was:" >&5
1867 sed 's/^/| /' conftest.$ac_ext >&5
1869 ac_retval=1
1871 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1872 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1873 # interfere with the next link command; also delete a directory that is
1874 # left behind by Apple's compiler. We do this before executing the actions.
1875 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877 as_fn_set_status $ac_retval
1879 } # ac_fn_c_try_link
1881 # ac_fn_c_try_cpp LINENO
1882 # ----------------------
1883 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1884 ac_fn_c_try_cpp ()
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 if { { ac_try="$ac_cpp conftest.$ac_ext"
1888 case "(($ac_try" in
1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890 *) ac_try_echo=$ac_try;;
1891 esac
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 printf "%s\n" "$ac_try_echo"; } >&5
1894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1895 ac_status=$?
1896 if test -s conftest.err; then
1897 grep -v '^ *+' conftest.err >conftest.er1
1898 cat conftest.er1 >&5
1899 mv -f conftest.er1 conftest.err
1901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; } > conftest.i && {
1903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1904 test ! -s conftest.err
1906 then :
1907 ac_retval=0
1908 else $as_nop
1909 printf "%s\n" "$as_me: failed program was:" >&5
1910 sed 's/^/| /' conftest.$ac_ext >&5
1912 ac_retval=1
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 as_fn_set_status $ac_retval
1917 } # ac_fn_c_try_cpp
1919 # ac_fn_c_try_run LINENO
1920 # ----------------------
1921 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1922 # executables *can* be run.
1923 ac_fn_c_try_run ()
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 if { { ac_try="$ac_link"
1927 case "(($ac_try" in
1928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1929 *) ac_try_echo=$ac_try;;
1930 esac
1931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1932 printf "%s\n" "$ac_try_echo"; } >&5
1933 (eval "$ac_link") 2>&5
1934 ac_status=$?
1935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1936 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1937 { { case "(($ac_try" in
1938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939 *) ac_try_echo=$ac_try;;
1940 esac
1941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942 printf "%s\n" "$ac_try_echo"; } >&5
1943 (eval "$ac_try") 2>&5
1944 ac_status=$?
1945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1946 test $ac_status = 0; }; }
1947 then :
1948 ac_retval=0
1949 else $as_nop
1950 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1951 printf "%s\n" "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1954 ac_retval=$ac_status
1956 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1957 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958 as_fn_set_status $ac_retval
1960 } # ac_fn_c_try_run
1962 # ac_fn_c_check_func LINENO FUNC VAR
1963 # ----------------------------------
1964 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1965 ac_fn_c_check_func ()
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969 printf %s "checking for $2... " >&6; }
1970 if eval test \${$3+y}
1971 then :
1972 printf %s "(cached) " >&6
1973 else $as_nop
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1976 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1978 #define $2 innocuous_$2
1980 /* System header to define __stub macros and hopefully few prototypes,
1981 which can conflict with char $2 (); below. */
1983 #include <limits.h>
1984 #undef $2
1986 /* Override any GCC internal prototype to avoid an error.
1987 Use char because int might match the return type of a GCC
1988 builtin and then its argument prototype would still apply. */
1989 #ifdef __cplusplus
1990 extern "C"
1991 #endif
1992 char $2 ();
1993 /* The GNU C library defines this for functions which it implements
1994 to always fail with ENOSYS. Some functions are actually named
1995 something starting with __ and the normal name is an alias. */
1996 #if defined __stub_$2 || defined __stub___$2
1997 choke me
1998 #endif
2001 main (void)
2003 return $2 ();
2005 return 0;
2007 _ACEOF
2008 if ac_fn_c_try_link "$LINENO"
2009 then :
2010 eval "$3=yes"
2011 else $as_nop
2012 eval "$3=no"
2014 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2015 conftest$ac_exeext conftest.$ac_ext
2017 eval ac_res=\$$3
2018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2019 printf "%s\n" "$ac_res" >&6; }
2020 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022 } # ac_fn_c_check_func
2024 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2025 # ----------------------------------------------------
2026 # Tries to find if the field MEMBER exists in type AGGR, after including
2027 # INCLUDES, setting cache variable VAR accordingly.
2028 ac_fn_c_check_member ()
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2032 printf %s "checking for $2.$3... " >&6; }
2033 if eval test \${$4+y}
2034 then :
2035 printf %s "(cached) " >&6
2036 else $as_nop
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2041 main (void)
2043 static $2 ac_aggr;
2044 if (ac_aggr.$3)
2045 return 0;
2047 return 0;
2049 _ACEOF
2050 if ac_fn_c_try_compile "$LINENO"
2051 then :
2052 eval "$4=yes"
2053 else $as_nop
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h. */
2058 main (void)
2060 static $2 ac_aggr;
2061 if (sizeof ac_aggr.$3)
2062 return 0;
2064 return 0;
2066 _ACEOF
2067 if ac_fn_c_try_compile "$LINENO"
2068 then :
2069 eval "$4=yes"
2070 else $as_nop
2071 eval "$4=no"
2073 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2075 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2077 eval ac_res=\$$4
2078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079 printf "%s\n" "$ac_res" >&6; }
2080 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2082 } # ac_fn_c_check_member
2084 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2085 # -------------------------------------------
2086 # Tests whether TYPE exists after having included INCLUDES, setting cache
2087 # variable VAR accordingly.
2088 ac_fn_c_check_type ()
2090 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2092 printf %s "checking for $2... " >&6; }
2093 if eval test \${$3+y}
2094 then :
2095 printf %s "(cached) " >&6
2096 else $as_nop
2097 eval "$3=no"
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2102 main (void)
2104 if (sizeof ($2))
2105 return 0;
2107 return 0;
2109 _ACEOF
2110 if ac_fn_c_try_compile "$LINENO"
2111 then :
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2116 main (void)
2118 if (sizeof (($2)))
2119 return 0;
2121 return 0;
2123 _ACEOF
2124 if ac_fn_c_try_compile "$LINENO"
2125 then :
2127 else $as_nop
2128 eval "$3=yes"
2130 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2132 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2134 eval ac_res=\$$3
2135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2136 printf "%s\n" "$ac_res" >&6; }
2137 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2139 } # ac_fn_c_check_type
2141 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2142 # ------------------------------------------------------------------
2143 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2144 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2145 ac_fn_check_decl ()
2147 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148 as_decl_name=`echo $2|sed 's/ *(.*//'`
2149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2150 printf %s "checking whether $as_decl_name is declared... " >&6; }
2151 if eval test \${$3+y}
2152 then :
2153 printf %s "(cached) " >&6
2154 else $as_nop
2155 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2156 eval ac_save_FLAGS=\$$6
2157 as_fn_append $6 " $5"
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2162 main (void)
2164 #ifndef $as_decl_name
2165 #ifdef __cplusplus
2166 (void) $as_decl_use;
2167 #else
2168 (void) $as_decl_name;
2169 #endif
2170 #endif
2173 return 0;
2175 _ACEOF
2176 if ac_fn_c_try_compile "$LINENO"
2177 then :
2178 eval "$3=yes"
2179 else $as_nop
2180 eval "$3=no"
2182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2183 eval $6=\$ac_save_FLAGS
2186 eval ac_res=\$$3
2187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188 printf "%s\n" "$ac_res" >&6; }
2189 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191 } # ac_fn_check_decl
2193 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2194 # --------------------------------------------
2195 # Tries to find the compile-time value of EXPR in a program that includes
2196 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2197 # computed
2198 ac_fn_c_compute_int ()
2200 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2201 if test "$cross_compiling" = yes; then
2202 # Depending upon the size, compute the lo and hi bounds.
2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204 /* end confdefs.h. */
2207 main (void)
2209 static int test_array [1 - 2 * !(($2) >= 0)];
2210 test_array [0] = 0;
2211 return test_array [0];
2214 return 0;
2216 _ACEOF
2217 if ac_fn_c_try_compile "$LINENO"
2218 then :
2219 ac_lo=0 ac_mid=0
2220 while :; do
2221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h. */
2225 main (void)
2227 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2228 test_array [0] = 0;
2229 return test_array [0];
2232 return 0;
2234 _ACEOF
2235 if ac_fn_c_try_compile "$LINENO"
2236 then :
2237 ac_hi=$ac_mid; break
2238 else $as_nop
2239 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2240 if test $ac_lo -le $ac_mid; then
2241 ac_lo= ac_hi=
2242 break
2244 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2246 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2247 done
2248 else $as_nop
2249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250 /* end confdefs.h. */
2253 main (void)
2255 static int test_array [1 - 2 * !(($2) < 0)];
2256 test_array [0] = 0;
2257 return test_array [0];
2260 return 0;
2262 _ACEOF
2263 if ac_fn_c_try_compile "$LINENO"
2264 then :
2265 ac_hi=-1 ac_mid=-1
2266 while :; do
2267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268 /* end confdefs.h. */
2271 main (void)
2273 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2274 test_array [0] = 0;
2275 return test_array [0];
2278 return 0;
2280 _ACEOF
2281 if ac_fn_c_try_compile "$LINENO"
2282 then :
2283 ac_lo=$ac_mid; break
2284 else $as_nop
2285 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2286 if test $ac_mid -le $ac_hi; then
2287 ac_lo= ac_hi=
2288 break
2290 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2292 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2293 done
2294 else $as_nop
2295 ac_lo= ac_hi=
2297 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2299 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2300 # Binary search between lo and hi bounds.
2301 while test "x$ac_lo" != "x$ac_hi"; do
2302 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h. */
2307 main (void)
2309 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2310 test_array [0] = 0;
2311 return test_array [0];
2314 return 0;
2316 _ACEOF
2317 if ac_fn_c_try_compile "$LINENO"
2318 then :
2319 ac_hi=$ac_mid
2320 else $as_nop
2321 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2323 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2324 done
2325 case $ac_lo in #((
2326 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2327 '') ac_retval=1 ;;
2328 esac
2329 else
2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h. */
2333 static long int longval (void) { return $2; }
2334 static unsigned long int ulongval (void) { return $2; }
2335 #include <stdio.h>
2336 #include <stdlib.h>
2338 main (void)
2341 FILE *f = fopen ("conftest.val", "w");
2342 if (! f)
2343 return 1;
2344 if (($2) < 0)
2346 long int i = longval ();
2347 if (i != ($2))
2348 return 1;
2349 fprintf (f, "%ld", i);
2351 else
2353 unsigned long int i = ulongval ();
2354 if (i != ($2))
2355 return 1;
2356 fprintf (f, "%lu", i);
2358 /* Do not output a trailing newline, as this causes \r\n confusion
2359 on some platforms. */
2360 return ferror (f) || fclose (f) != 0;
2363 return 0;
2365 _ACEOF
2366 if ac_fn_c_try_run "$LINENO"
2367 then :
2368 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2369 else $as_nop
2370 ac_retval=1
2372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2373 conftest.$ac_objext conftest.beam conftest.$ac_ext
2374 rm -f conftest.val
2377 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2378 as_fn_set_status $ac_retval
2380 } # ac_fn_c_compute_int
2382 # ac_fn_cxx_try_compile LINENO
2383 # ----------------------------
2384 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2385 ac_fn_cxx_try_compile ()
2387 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2388 rm -f conftest.$ac_objext conftest.beam
2389 if { { ac_try="$ac_compile"
2390 case "(($ac_try" in
2391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2392 *) ac_try_echo=$ac_try;;
2393 esac
2394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2395 printf "%s\n" "$ac_try_echo"; } >&5
2396 (eval "$ac_compile") 2>conftest.err
2397 ac_status=$?
2398 if test -s conftest.err; then
2399 grep -v '^ *+' conftest.err >conftest.er1
2400 cat conftest.er1 >&5
2401 mv -f conftest.er1 conftest.err
2403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2404 test $ac_status = 0; } && {
2405 test -z "$ac_cxx_werror_flag" ||
2406 test ! -s conftest.err
2407 } && test -s conftest.$ac_objext
2408 then :
2409 ac_retval=0
2410 else $as_nop
2411 printf "%s\n" "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2414 ac_retval=1
2416 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2417 as_fn_set_status $ac_retval
2419 } # ac_fn_cxx_try_compile
2420 ac_configure_args_raw=
2421 for ac_arg
2423 case $ac_arg in
2424 *\'*)
2425 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2426 esac
2427 as_fn_append ac_configure_args_raw " '$ac_arg'"
2428 done
2430 case $ac_configure_args_raw in
2431 *$as_nl*)
2432 ac_safe_unquote= ;;
2434 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2435 ac_unsafe_a="$ac_unsafe_z#~"
2436 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2437 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2438 esac
2440 cat >config.log <<_ACEOF
2441 This file contains any messages produced by compilers while
2442 running configure, to aid debugging if configure makes a mistake.
2444 It was created by $as_me, which was
2445 generated by GNU Autoconf 2.71. Invocation command line was
2447 $ $0$ac_configure_args_raw
2449 _ACEOF
2450 exec 5>>config.log
2452 cat <<_ASUNAME
2453 ## --------- ##
2454 ## Platform. ##
2455 ## --------- ##
2457 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2458 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2459 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2460 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2461 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2463 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2464 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2466 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2467 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2468 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2469 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2470 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2471 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2472 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2474 _ASUNAME
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 for as_dir in $PATH
2479 IFS=$as_save_IFS
2480 case $as_dir in #(((
2481 '') as_dir=./ ;;
2482 */) ;;
2483 *) as_dir=$as_dir/ ;;
2484 esac
2485 printf "%s\n" "PATH: $as_dir"
2486 done
2487 IFS=$as_save_IFS
2489 } >&5
2491 cat >&5 <<_ACEOF
2494 ## ----------- ##
2495 ## Core tests. ##
2496 ## ----------- ##
2498 _ACEOF
2501 # Keep a trace of the command line.
2502 # Strip out --no-create and --no-recursion so they do not pile up.
2503 # Strip out --silent because we don't want to record it for future runs.
2504 # Also quote any args containing shell meta-characters.
2505 # Make two passes to allow for proper duplicate-argument suppression.
2506 ac_configure_args=
2507 ac_configure_args0=
2508 ac_configure_args1=
2509 ac_must_keep_next=false
2510 for ac_pass in 1 2
2512 for ac_arg
2514 case $ac_arg in
2515 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2516 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2517 | -silent | --silent | --silen | --sile | --sil)
2518 continue ;;
2519 *\'*)
2520 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2521 esac
2522 case $ac_pass in
2523 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2525 as_fn_append ac_configure_args1 " '$ac_arg'"
2526 if test $ac_must_keep_next = true; then
2527 ac_must_keep_next=false # Got value, back to normal.
2528 else
2529 case $ac_arg in
2530 *=* | --config-cache | -C | -disable-* | --disable-* \
2531 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2532 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2533 | -with-* | --with-* | -without-* | --without-* | --x)
2534 case "$ac_configure_args0 " in
2535 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2536 esac
2538 -* ) ac_must_keep_next=true ;;
2539 esac
2541 as_fn_append ac_configure_args " '$ac_arg'"
2543 esac
2544 done
2545 done
2546 { ac_configure_args0=; unset ac_configure_args0;}
2547 { ac_configure_args1=; unset ac_configure_args1;}
2549 # When interrupted or exit'd, cleanup temporary files, and complete
2550 # config.log. We remove comments because anyway the quotes in there
2551 # would cause problems or look ugly.
2552 # WARNING: Use '\'' to represent an apostrophe within the trap.
2553 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2554 trap 'exit_status=$?
2555 # Sanitize IFS.
2556 IFS=" "" $as_nl"
2557 # Save into config.log some information that might help in debugging.
2559 echo
2561 printf "%s\n" "## ---------------- ##
2562 ## Cache variables. ##
2563 ## ---------------- ##"
2564 echo
2565 # The following way of writing the cache mishandles newlines in values,
2567 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2568 eval ac_val=\$$ac_var
2569 case $ac_val in #(
2570 *${as_nl}*)
2571 case $ac_var in #(
2572 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2573 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2574 esac
2575 case $ac_var in #(
2576 _ | IFS | as_nl) ;; #(
2577 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2578 *) { eval $ac_var=; unset $ac_var;} ;;
2579 esac ;;
2580 esac
2581 done
2582 (set) 2>&1 |
2583 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2584 *${as_nl}ac_space=\ *)
2585 sed -n \
2586 "s/'\''/'\''\\\\'\'''\''/g;
2587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2588 ;; #(
2590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2592 esac |
2593 sort
2595 echo
2597 printf "%s\n" "## ----------------- ##
2598 ## Output variables. ##
2599 ## ----------------- ##"
2600 echo
2601 for ac_var in $ac_subst_vars
2603 eval ac_val=\$$ac_var
2604 case $ac_val in
2605 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2606 esac
2607 printf "%s\n" "$ac_var='\''$ac_val'\''"
2608 done | sort
2609 echo
2611 if test -n "$ac_subst_files"; then
2612 printf "%s\n" "## ------------------- ##
2613 ## File substitutions. ##
2614 ## ------------------- ##"
2615 echo
2616 for ac_var in $ac_subst_files
2618 eval ac_val=\$$ac_var
2619 case $ac_val in
2620 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2621 esac
2622 printf "%s\n" "$ac_var='\''$ac_val'\''"
2623 done | sort
2624 echo
2627 if test -s confdefs.h; then
2628 printf "%s\n" "## ----------- ##
2629 ## confdefs.h. ##
2630 ## ----------- ##"
2631 echo
2632 cat confdefs.h
2633 echo
2635 test "$ac_signal" != 0 &&
2636 printf "%s\n" "$as_me: caught signal $ac_signal"
2637 printf "%s\n" "$as_me: exit $exit_status"
2638 } >&5
2639 rm -f core *.core core.conftest.* &&
2640 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2641 exit $exit_status
2643 for ac_signal in 1 2 13 15; do
2644 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2645 done
2646 ac_signal=0
2648 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2649 rm -f -r conftest* confdefs.h
2651 printf "%s\n" "/* confdefs.h */" > confdefs.h
2653 # Predefined preprocessor variables.
2655 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2657 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2659 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2661 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2663 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2665 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2668 # Let the site file select an alternate cache file if it wants to.
2669 # Prefer an explicitly selected file to automatically selected ones.
2670 if test -n "$CONFIG_SITE"; then
2671 ac_site_files="$CONFIG_SITE"
2672 elif test "x$prefix" != xNONE; then
2673 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2674 else
2675 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2678 for ac_site_file in $ac_site_files
2680 case $ac_site_file in #(
2681 */*) :
2682 ;; #(
2683 *) :
2684 ac_site_file=./$ac_site_file ;;
2685 esac
2686 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2688 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2689 sed 's/^/| /' "$ac_site_file" >&5
2690 . "$ac_site_file" \
2691 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2692 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2693 as_fn_error $? "failed to load site script $ac_site_file
2694 See \`config.log' for more details" "$LINENO" 5; }
2696 done
2698 if test -r "$cache_file"; then
2699 # Some versions of bash will fail to source /dev/null (special files
2700 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2701 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2703 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2704 case $cache_file in
2705 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2706 *) . "./$cache_file";;
2707 esac
2709 else
2710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2711 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2712 >$cache_file
2715 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2716 # Test code for whether the C compiler supports C89 (global declarations)
2717 ac_c_conftest_c89_globals='
2718 /* Does the compiler advertise C89 conformance?
2719 Do not test the value of __STDC__, because some compilers set it to 0
2720 while being otherwise adequately conformant. */
2721 #if !defined __STDC__
2722 # error "Compiler does not advertise C89 conformance"
2723 #endif
2725 #include <stddef.h>
2726 #include <stdarg.h>
2727 struct stat;
2728 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2729 struct buf { int x; };
2730 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2731 static char *e (p, i)
2732 char **p;
2733 int i;
2735 return p[i];
2737 static char *f (char * (*g) (char **, int), char **p, ...)
2739 char *s;
2740 va_list v;
2741 va_start (v,p);
2742 s = g (p, va_arg (v,int));
2743 va_end (v);
2744 return s;
2747 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2748 function prototypes and stuff, but not \xHH hex character constants.
2749 These do not provoke an error unfortunately, instead are silently treated
2750 as an "x". The following induces an error, until -std is added to get
2751 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2752 array size at least. It is necessary to write \x00 == 0 to get something
2753 that is true only with -std. */
2754 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2756 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2757 inside strings and character constants. */
2758 #define FOO(x) '\''x'\''
2759 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2761 int test (int i, double x);
2762 struct s1 {int (*f) (int a);};
2763 struct s2 {int (*f) (double a);};
2764 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2765 int, int);'
2767 # Test code for whether the C compiler supports C89 (body of main).
2768 ac_c_conftest_c89_main='
2769 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2772 # Test code for whether the C compiler supports C99 (global declarations)
2773 ac_c_conftest_c99_globals='
2774 // Does the compiler advertise C99 conformance?
2775 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2776 # error "Compiler does not advertise C99 conformance"
2777 #endif
2779 #include <stdbool.h>
2780 extern int puts (const char *);
2781 extern int printf (const char *, ...);
2782 extern int dprintf (int, const char *, ...);
2783 extern void *malloc (size_t);
2785 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2786 // dprintf is used instead of fprintf to avoid needing to declare
2787 // FILE and stderr.
2788 #define debug(...) dprintf (2, __VA_ARGS__)
2789 #define showlist(...) puts (#__VA_ARGS__)
2790 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2791 static void
2792 test_varargs_macros (void)
2794 int x = 1234;
2795 int y = 5678;
2796 debug ("Flag");
2797 debug ("X = %d\n", x);
2798 showlist (The first, second, and third items.);
2799 report (x>y, "x is %d but y is %d", x, y);
2802 // Check long long types.
2803 #define BIG64 18446744073709551615ull
2804 #define BIG32 4294967295ul
2805 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2806 #if !BIG_OK
2807 #error "your preprocessor is broken"
2808 #endif
2809 #if BIG_OK
2810 #else
2811 #error "your preprocessor is broken"
2812 #endif
2813 static long long int bignum = -9223372036854775807LL;
2814 static unsigned long long int ubignum = BIG64;
2816 struct incomplete_array
2818 int datasize;
2819 double data[];
2822 struct named_init {
2823 int number;
2824 const wchar_t *name;
2825 double average;
2828 typedef const char *ccp;
2830 static inline int
2831 test_restrict (ccp restrict text)
2833 // See if C++-style comments work.
2834 // Iterate through items via the restricted pointer.
2835 // Also check for declarations in for loops.
2836 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2837 continue;
2838 return 0;
2841 // Check varargs and va_copy.
2842 static bool
2843 test_varargs (const char *format, ...)
2845 va_list args;
2846 va_start (args, format);
2847 va_list args_copy;
2848 va_copy (args_copy, args);
2850 const char *str = "";
2851 int number = 0;
2852 float fnumber = 0;
2854 while (*format)
2856 switch (*format++)
2858 case '\''s'\'': // string
2859 str = va_arg (args_copy, const char *);
2860 break;
2861 case '\''d'\'': // int
2862 number = va_arg (args_copy, int);
2863 break;
2864 case '\''f'\'': // float
2865 fnumber = va_arg (args_copy, double);
2866 break;
2867 default:
2868 break;
2871 va_end (args_copy);
2872 va_end (args);
2874 return *str && number && fnumber;
2878 # Test code for whether the C compiler supports C99 (body of main).
2879 ac_c_conftest_c99_main='
2880 // Check bool.
2881 _Bool success = false;
2882 success |= (argc != 0);
2884 // Check restrict.
2885 if (test_restrict ("String literal") == 0)
2886 success = true;
2887 char *restrict newvar = "Another string";
2889 // Check varargs.
2890 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2891 test_varargs_macros ();
2893 // Check flexible array members.
2894 struct incomplete_array *ia =
2895 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2896 ia->datasize = 10;
2897 for (int i = 0; i < ia->datasize; ++i)
2898 ia->data[i] = i * 1.234;
2900 // Check named initializers.
2901 struct named_init ni = {
2902 .number = 34,
2903 .name = L"Test wide string",
2904 .average = 543.34343,
2907 ni.number = 58;
2909 int dynamic_array[ni.number];
2910 dynamic_array[0] = argv[0][0];
2911 dynamic_array[ni.number - 1] = 543;
2913 // work around unused variable warnings
2914 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2915 || dynamic_array[ni.number - 1] != 543);
2918 # Test code for whether the C compiler supports C11 (global declarations)
2919 ac_c_conftest_c11_globals='
2920 // Does the compiler advertise C11 conformance?
2921 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2922 # error "Compiler does not advertise C11 conformance"
2923 #endif
2925 // Check _Alignas.
2926 char _Alignas (double) aligned_as_double;
2927 char _Alignas (0) no_special_alignment;
2928 extern char aligned_as_int;
2929 char _Alignas (0) _Alignas (int) aligned_as_int;
2931 // Check _Alignof.
2932 enum
2934 int_alignment = _Alignof (int),
2935 int_array_alignment = _Alignof (int[100]),
2936 char_alignment = _Alignof (char)
2938 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2940 // Check _Noreturn.
2941 int _Noreturn does_not_return (void) { for (;;) continue; }
2943 // Check _Static_assert.
2944 struct test_static_assert
2946 int x;
2947 _Static_assert (sizeof (int) <= sizeof (long int),
2948 "_Static_assert does not work in struct");
2949 long int y;
2952 // Check UTF-8 literals.
2953 #define u8 syntax error!
2954 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2956 // Check duplicate typedefs.
2957 typedef long *long_ptr;
2958 typedef long int *long_ptr;
2959 typedef long_ptr long_ptr;
2961 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2962 struct anonymous
2964 union {
2965 struct { int i; int j; };
2966 struct { int k; long int l; } w;
2968 int m;
2969 } v1;
2972 # Test code for whether the C compiler supports C11 (body of main).
2973 ac_c_conftest_c11_main='
2974 _Static_assert ((offsetof (struct anonymous, i)
2975 == offsetof (struct anonymous, w.k)),
2976 "Anonymous union alignment botch");
2977 v1.i = 2;
2978 v1.w.k = 5;
2979 ok |= v1.i != 5;
2982 # Test code for whether the C compiler supports C11 (complete).
2983 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2984 ${ac_c_conftest_c99_globals}
2985 ${ac_c_conftest_c11_globals}
2988 main (int argc, char **argv)
2990 int ok = 0;
2991 ${ac_c_conftest_c89_main}
2992 ${ac_c_conftest_c99_main}
2993 ${ac_c_conftest_c11_main}
2994 return ok;
2998 # Test code for whether the C compiler supports C99 (complete).
2999 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3000 ${ac_c_conftest_c99_globals}
3003 main (int argc, char **argv)
3005 int ok = 0;
3006 ${ac_c_conftest_c89_main}
3007 ${ac_c_conftest_c99_main}
3008 return ok;
3012 # Test code for whether the C compiler supports C89 (complete).
3013 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3016 main (int argc, char **argv)
3018 int ok = 0;
3019 ${ac_c_conftest_c89_main}
3020 return ok;
3024 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3025 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3026 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3027 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3028 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3029 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3030 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3031 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3032 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3033 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3034 gt_needs="$gt_needs "
3035 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
3036 # Test code for whether the C++ compiler supports C++98 (global declarations)
3037 ac_cxx_conftest_cxx98_globals='
3038 // Does the compiler advertise C++98 conformance?
3039 #if !defined __cplusplus || __cplusplus < 199711L
3040 # error "Compiler does not advertise C++98 conformance"
3041 #endif
3043 // These inclusions are to reject old compilers that
3044 // lack the unsuffixed header files.
3045 #include <cstdlib>
3046 #include <exception>
3048 // <cassert> and <cstring> are *not* freestanding headers in C++98.
3049 extern void assert (int);
3050 namespace std {
3051 extern int strcmp (const char *, const char *);
3054 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
3055 using std::exception;
3056 using std::strcmp;
3058 namespace {
3060 void test_exception_syntax()
3062 try {
3063 throw "test";
3064 } catch (const char *s) {
3065 // Extra parentheses suppress a warning when building autoconf itself,
3066 // due to lint rules shared with more typical C programs.
3067 assert (!(strcmp) (s, "test"));
3071 template <typename T> struct test_template
3073 T const val;
3074 explicit test_template(T t) : val(t) {}
3075 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3078 } // anonymous namespace
3081 # Test code for whether the C++ compiler supports C++98 (body of main)
3082 ac_cxx_conftest_cxx98_main='
3083 assert (argc);
3084 assert (! argv[0]);
3086 test_exception_syntax ();
3087 test_template<double> tt (2.0);
3088 assert (tt.add (4) == 6.0);
3089 assert (true && !false);
3093 # Test code for whether the C++ compiler supports C++11 (global declarations)
3094 ac_cxx_conftest_cxx11_globals='
3095 // Does the compiler advertise C++ 2011 conformance?
3096 #if !defined __cplusplus || __cplusplus < 201103L
3097 # error "Compiler does not advertise C++11 conformance"
3098 #endif
3100 namespace cxx11test
3102 constexpr int get_val() { return 20; }
3104 struct testinit
3106 int i;
3107 double d;
3110 class delegate
3112 public:
3113 delegate(int n) : n(n) {}
3114 delegate(): delegate(2354) {}
3116 virtual int getval() { return this->n; };
3117 protected:
3118 int n;
3121 class overridden : public delegate
3123 public:
3124 overridden(int n): delegate(n) {}
3125 virtual int getval() override final { return this->n * 2; }
3128 class nocopy
3130 public:
3131 nocopy(int i): i(i) {}
3132 nocopy() = default;
3133 nocopy(const nocopy&) = delete;
3134 nocopy & operator=(const nocopy&) = delete;
3135 private:
3136 int i;
3139 // for testing lambda expressions
3140 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3142 return f(v);
3145 // for testing variadic templates and trailing return types
3146 template <typename V> auto sum(V first) -> V
3148 return first;
3150 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3152 return first + sum(rest...);
3157 # Test code for whether the C++ compiler supports C++11 (body of main)
3158 ac_cxx_conftest_cxx11_main='
3160 // Test auto and decltype
3161 auto a1 = 6538;
3162 auto a2 = 48573953.4;
3163 auto a3 = "String literal";
3165 int total = 0;
3166 for (auto i = a3; *i; ++i) { total += *i; }
3168 decltype(a2) a4 = 34895.034;
3171 // Test constexpr
3172 short sa[cxx11test::get_val()] = { 0 };
3175 // Test initializer lists
3176 cxx11test::testinit il = { 4323, 435234.23544 };
3179 // Test range-based for
3180 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3181 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3182 for (auto &x : array) { x += 23; }
3185 // Test lambda expressions
3186 using cxx11test::eval;
3187 assert (eval ([](int x) { return x*2; }, 21) == 42);
3188 double d = 2.0;
3189 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3190 assert (d == 5.0);
3191 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3192 assert (d == 5.0);
3195 // Test use of variadic templates
3196 using cxx11test::sum;
3197 auto a = sum(1);
3198 auto b = sum(1, 2);
3199 auto c = sum(1.0, 2.0, 3.0);
3202 // Test constructor delegation
3203 cxx11test::delegate d1;
3204 cxx11test::delegate d2();
3205 cxx11test::delegate d3(45);
3208 // Test override and final
3209 cxx11test::overridden o1(55464);
3212 // Test nullptr
3213 char *c = nullptr;
3216 // Test template brackets
3217 test_template<::test_template<int>> v(test_template<int>(12));
3220 // Unicode literals
3221 char const *utf8 = u8"UTF-8 string \u2500";
3222 char16_t const *utf16 = u"UTF-8 string \u2500";
3223 char32_t const *utf32 = U"UTF-32 string \u2500";
3227 # Test code for whether the C compiler supports C++11 (complete).
3228 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3229 ${ac_cxx_conftest_cxx11_globals}
3232 main (int argc, char **argv)
3234 int ok = 0;
3235 ${ac_cxx_conftest_cxx98_main}
3236 ${ac_cxx_conftest_cxx11_main}
3237 return ok;
3241 # Test code for whether the C compiler supports C++98 (complete).
3242 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3244 main (int argc, char **argv)
3246 int ok = 0;
3247 ${ac_cxx_conftest_cxx98_main}
3248 return ok;
3253 # Auxiliary files required by this configure script.
3254 ac_aux_files="config.rpath install-sh config.guess config.sub"
3256 # Locations in which to look for auxiliary files.
3257 ac_aux_dir_candidates="${srcdir}/config"
3259 # Search for a directory containing all of the required auxiliary files,
3260 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3261 # If we don't find one directory that contains all the files we need,
3262 # we report the set of missing files from the *first* directory in
3263 # $ac_aux_dir_candidates and give up.
3264 ac_missing_aux_files=""
3265 ac_first_candidate=:
3266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 as_found=false
3269 for as_dir in $ac_aux_dir_candidates
3271 IFS=$as_save_IFS
3272 case $as_dir in #(((
3273 '') as_dir=./ ;;
3274 */) ;;
3275 *) as_dir=$as_dir/ ;;
3276 esac
3277 as_found=:
3279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3280 ac_aux_dir_found=yes
3281 ac_install_sh=
3282 for ac_aux in $ac_aux_files
3284 # As a special case, if "install-sh" is required, that requirement
3285 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3286 # and $ac_install_sh is set appropriately for whichever one is found.
3287 if test x"$ac_aux" = x"install-sh"
3288 then
3289 if test -f "${as_dir}install-sh"; then
3290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3291 ac_install_sh="${as_dir}install-sh -c"
3292 elif test -f "${as_dir}install.sh"; then
3293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3294 ac_install_sh="${as_dir}install.sh -c"
3295 elif test -f "${as_dir}shtool"; then
3296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3297 ac_install_sh="${as_dir}shtool install -c"
3298 else
3299 ac_aux_dir_found=no
3300 if $ac_first_candidate; then
3301 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3302 else
3303 break
3306 else
3307 if test -f "${as_dir}${ac_aux}"; then
3308 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3309 else
3310 ac_aux_dir_found=no
3311 if $ac_first_candidate; then
3312 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3313 else
3314 break
3318 done
3319 if test "$ac_aux_dir_found" = yes; then
3320 ac_aux_dir="$as_dir"
3321 break
3323 ac_first_candidate=false
3325 as_found=false
3326 done
3327 IFS=$as_save_IFS
3328 if $as_found
3329 then :
3331 else $as_nop
3332 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3336 # These three variables are undocumented and unsupported,
3337 # and are intended to be withdrawn in a future Autoconf release.
3338 # They can cause serious problems if a builder's source tree is in a directory
3339 # whose full name contains unusual characters.
3340 if test -f "${ac_aux_dir}config.guess"; then
3341 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3343 if test -f "${ac_aux_dir}config.sub"; then
3344 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3346 if test -f "$ac_aux_dir/configure"; then
3347 ac_configure="$SHELL ${ac_aux_dir}configure"
3350 # Check that the precious variables saved in the cache have kept the same
3351 # value.
3352 ac_cache_corrupted=false
3353 for ac_var in $ac_precious_vars; do
3354 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3355 eval ac_new_set=\$ac_env_${ac_var}_set
3356 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3357 eval ac_new_val=\$ac_env_${ac_var}_value
3358 case $ac_old_set,$ac_new_set in
3359 set,)
3360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3361 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3362 ac_cache_corrupted=: ;;
3363 ,set)
3364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3365 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3366 ac_cache_corrupted=: ;;
3367 ,);;
3369 if test "x$ac_old_val" != "x$ac_new_val"; then
3370 # differences in whitespace do not lead to failure.
3371 ac_old_val_w=`echo x $ac_old_val`
3372 ac_new_val_w=`echo x $ac_new_val`
3373 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3375 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3376 ac_cache_corrupted=:
3377 else
3378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3379 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3380 eval $ac_var=\$ac_old_val
3382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3383 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3385 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3386 fi;;
3387 esac
3388 # Pass precious variables to config.status.
3389 if test "$ac_new_set" = set; then
3390 case $ac_new_val in
3391 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3392 *) ac_arg=$ac_var=$ac_new_val ;;
3393 esac
3394 case " $ac_configure_args " in
3395 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3396 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3397 esac
3399 done
3400 if $ac_cache_corrupted; then
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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3404 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3405 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3406 and start over" "$LINENO" 5
3408 ## -------------------- ##
3409 ## Main body of script. ##
3410 ## -------------------- ##
3412 ac_ext=c
3413 ac_cpp='$CPP $CPPFLAGS'
3414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3422 ac_config_headers="$ac_config_headers lib/config.h"
3434 ac_ext=c
3435 ac_cpp='$CPP $CPPFLAGS'
3436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3439 if test -n "$ac_tool_prefix"; then
3440 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3441 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3443 printf %s "checking for $ac_word... " >&6; }
3444 if test ${ac_cv_prog_CC+y}
3445 then :
3446 printf %s "(cached) " >&6
3447 else $as_nop
3448 if test -n "$CC"; then
3449 ac_cv_prog_CC="$CC" # Let the user override the test.
3450 else
3451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452 for as_dir in $PATH
3454 IFS=$as_save_IFS
3455 case $as_dir in #(((
3456 '') as_dir=./ ;;
3457 */) ;;
3458 *) as_dir=$as_dir/ ;;
3459 esac
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3462 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3464 break 2
3466 done
3467 done
3468 IFS=$as_save_IFS
3472 CC=$ac_cv_prog_CC
3473 if test -n "$CC"; then
3474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3475 printf "%s\n" "$CC" >&6; }
3476 else
3477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3478 printf "%s\n" "no" >&6; }
3483 if test -z "$ac_cv_prog_CC"; then
3484 ac_ct_CC=$CC
3485 # Extract the first word of "gcc", so it can be a program name with args.
3486 set dummy gcc; ac_word=$2
3487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3488 printf %s "checking for $ac_word... " >&6; }
3489 if test ${ac_cv_prog_ac_ct_CC+y}
3490 then :
3491 printf %s "(cached) " >&6
3492 else $as_nop
3493 if test -n "$ac_ct_CC"; then
3494 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3495 else
3496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497 for as_dir in $PATH
3499 IFS=$as_save_IFS
3500 case $as_dir in #(((
3501 '') as_dir=./ ;;
3502 */) ;;
3503 *) as_dir=$as_dir/ ;;
3504 esac
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3507 ac_cv_prog_ac_ct_CC="gcc"
3508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3509 break 2
3511 done
3512 done
3513 IFS=$as_save_IFS
3517 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3518 if test -n "$ac_ct_CC"; then
3519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3520 printf "%s\n" "$ac_ct_CC" >&6; }
3521 else
3522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3523 printf "%s\n" "no" >&6; }
3526 if test "x$ac_ct_CC" = x; then
3527 CC=""
3528 else
3529 case $cross_compiling:$ac_tool_warned in
3530 yes:)
3531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3532 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3533 ac_tool_warned=yes ;;
3534 esac
3535 CC=$ac_ct_CC
3537 else
3538 CC="$ac_cv_prog_CC"
3541 if test -z "$CC"; then
3542 if test -n "$ac_tool_prefix"; then
3543 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3544 set dummy ${ac_tool_prefix}cc; ac_word=$2
3545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3546 printf %s "checking for $ac_word... " >&6; }
3547 if test ${ac_cv_prog_CC+y}
3548 then :
3549 printf %s "(cached) " >&6
3550 else $as_nop
3551 if test -n "$CC"; then
3552 ac_cv_prog_CC="$CC" # Let the user override the test.
3553 else
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 for as_dir in $PATH
3557 IFS=$as_save_IFS
3558 case $as_dir in #(((
3559 '') as_dir=./ ;;
3560 */) ;;
3561 *) as_dir=$as_dir/ ;;
3562 esac
3563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3565 ac_cv_prog_CC="${ac_tool_prefix}cc"
3566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3567 break 2
3569 done
3570 done
3571 IFS=$as_save_IFS
3575 CC=$ac_cv_prog_CC
3576 if test -n "$CC"; then
3577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3578 printf "%s\n" "$CC" >&6; }
3579 else
3580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581 printf "%s\n" "no" >&6; }
3587 if test -z "$CC"; then
3588 # Extract the first word of "cc", so it can be a program name with args.
3589 set dummy cc; ac_word=$2
3590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 printf %s "checking for $ac_word... " >&6; }
3592 if test ${ac_cv_prog_CC+y}
3593 then :
3594 printf %s "(cached) " >&6
3595 else $as_nop
3596 if test -n "$CC"; then
3597 ac_cv_prog_CC="$CC" # Let the user override the test.
3598 else
3599 ac_prog_rejected=no
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 for as_dir in $PATH
3603 IFS=$as_save_IFS
3604 case $as_dir in #(((
3605 '') as_dir=./ ;;
3606 */) ;;
3607 *) as_dir=$as_dir/ ;;
3608 esac
3609 for ac_exec_ext in '' $ac_executable_extensions; do
3610 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3611 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3612 ac_prog_rejected=yes
3613 continue
3615 ac_cv_prog_CC="cc"
3616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3617 break 2
3619 done
3620 done
3621 IFS=$as_save_IFS
3623 if test $ac_prog_rejected = yes; then
3624 # We found a bogon in the path, so make sure we never use it.
3625 set dummy $ac_cv_prog_CC
3626 shift
3627 if test $# != 0; then
3628 # We chose a different compiler from the bogus one.
3629 # However, it has the same basename, so the bogon will be chosen
3630 # first if we set CC to just the basename; use the full file name.
3631 shift
3632 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3637 CC=$ac_cv_prog_CC
3638 if test -n "$CC"; then
3639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3640 printf "%s\n" "$CC" >&6; }
3641 else
3642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3643 printf "%s\n" "no" >&6; }
3648 if test -z "$CC"; then
3649 if test -n "$ac_tool_prefix"; then
3650 for ac_prog in cl.exe
3652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3655 printf %s "checking for $ac_word... " >&6; }
3656 if test ${ac_cv_prog_CC+y}
3657 then :
3658 printf %s "(cached) " >&6
3659 else $as_nop
3660 if test -n "$CC"; then
3661 ac_cv_prog_CC="$CC" # Let the user override the test.
3662 else
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 for as_dir in $PATH
3666 IFS=$as_save_IFS
3667 case $as_dir in #(((
3668 '') as_dir=./ ;;
3669 */) ;;
3670 *) as_dir=$as_dir/ ;;
3671 esac
3672 for ac_exec_ext in '' $ac_executable_extensions; do
3673 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3674 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3676 break 2
3678 done
3679 done
3680 IFS=$as_save_IFS
3684 CC=$ac_cv_prog_CC
3685 if test -n "$CC"; then
3686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3687 printf "%s\n" "$CC" >&6; }
3688 else
3689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690 printf "%s\n" "no" >&6; }
3694 test -n "$CC" && break
3695 done
3697 if test -z "$CC"; then
3698 ac_ct_CC=$CC
3699 for ac_prog in cl.exe
3701 # Extract the first word of "$ac_prog", so it can be a program name with args.
3702 set dummy $ac_prog; ac_word=$2
3703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3704 printf %s "checking for $ac_word... " >&6; }
3705 if test ${ac_cv_prog_ac_ct_CC+y}
3706 then :
3707 printf %s "(cached) " >&6
3708 else $as_nop
3709 if test -n "$ac_ct_CC"; then
3710 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3711 else
3712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3713 for as_dir in $PATH
3715 IFS=$as_save_IFS
3716 case $as_dir in #(((
3717 '') as_dir=./ ;;
3718 */) ;;
3719 *) as_dir=$as_dir/ ;;
3720 esac
3721 for ac_exec_ext in '' $ac_executable_extensions; do
3722 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3723 ac_cv_prog_ac_ct_CC="$ac_prog"
3724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3725 break 2
3727 done
3728 done
3729 IFS=$as_save_IFS
3733 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3734 if test -n "$ac_ct_CC"; then
3735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3736 printf "%s\n" "$ac_ct_CC" >&6; }
3737 else
3738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739 printf "%s\n" "no" >&6; }
3743 test -n "$ac_ct_CC" && break
3744 done
3746 if test "x$ac_ct_CC" = x; then
3747 CC=""
3748 else
3749 case $cross_compiling:$ac_tool_warned in
3750 yes:)
3751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3752 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3753 ac_tool_warned=yes ;;
3754 esac
3755 CC=$ac_ct_CC
3760 if test -z "$CC"; then
3761 if test -n "$ac_tool_prefix"; then
3762 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3763 set dummy ${ac_tool_prefix}clang; ac_word=$2
3764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3765 printf %s "checking for $ac_word... " >&6; }
3766 if test ${ac_cv_prog_CC+y}
3767 then :
3768 printf %s "(cached) " >&6
3769 else $as_nop
3770 if test -n "$CC"; then
3771 ac_cv_prog_CC="$CC" # Let the user override the test.
3772 else
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 for as_dir in $PATH
3776 IFS=$as_save_IFS
3777 case $as_dir in #(((
3778 '') as_dir=./ ;;
3779 */) ;;
3780 *) as_dir=$as_dir/ ;;
3781 esac
3782 for ac_exec_ext in '' $ac_executable_extensions; do
3783 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3784 ac_cv_prog_CC="${ac_tool_prefix}clang"
3785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3786 break 2
3788 done
3789 done
3790 IFS=$as_save_IFS
3794 CC=$ac_cv_prog_CC
3795 if test -n "$CC"; then
3796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3797 printf "%s\n" "$CC" >&6; }
3798 else
3799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3800 printf "%s\n" "no" >&6; }
3805 if test -z "$ac_cv_prog_CC"; then
3806 ac_ct_CC=$CC
3807 # Extract the first word of "clang", so it can be a program name with args.
3808 set dummy clang; ac_word=$2
3809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3810 printf %s "checking for $ac_word... " >&6; }
3811 if test ${ac_cv_prog_ac_ct_CC+y}
3812 then :
3813 printf %s "(cached) " >&6
3814 else $as_nop
3815 if test -n "$ac_ct_CC"; then
3816 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3817 else
3818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819 for as_dir in $PATH
3821 IFS=$as_save_IFS
3822 case $as_dir in #(((
3823 '') as_dir=./ ;;
3824 */) ;;
3825 *) as_dir=$as_dir/ ;;
3826 esac
3827 for ac_exec_ext in '' $ac_executable_extensions; do
3828 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3829 ac_cv_prog_ac_ct_CC="clang"
3830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3831 break 2
3833 done
3834 done
3835 IFS=$as_save_IFS
3839 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3840 if test -n "$ac_ct_CC"; then
3841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3842 printf "%s\n" "$ac_ct_CC" >&6; }
3843 else
3844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845 printf "%s\n" "no" >&6; }
3848 if test "x$ac_ct_CC" = x; then
3849 CC=""
3850 else
3851 case $cross_compiling:$ac_tool_warned in
3852 yes:)
3853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3854 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3855 ac_tool_warned=yes ;;
3856 esac
3857 CC=$ac_ct_CC
3859 else
3860 CC="$ac_cv_prog_CC"
3866 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3867 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3868 as_fn_error $? "no acceptable C compiler found in \$PATH
3869 See \`config.log' for more details" "$LINENO" 5; }
3871 # Provide some information about the compiler.
3872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3873 set X $ac_compile
3874 ac_compiler=$2
3875 for ac_option in --version -v -V -qversion -version; do
3876 { { ac_try="$ac_compiler $ac_option >&5"
3877 case "(($ac_try" in
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3880 esac
3881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3882 printf "%s\n" "$ac_try_echo"; } >&5
3883 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3884 ac_status=$?
3885 if test -s conftest.err; then
3886 sed '10a\
3887 ... rest of stderr output deleted ...
3888 10q' conftest.err >conftest.er1
3889 cat conftest.er1 >&5
3891 rm -f conftest.er1 conftest.err
3892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3893 test $ac_status = 0; }
3894 done
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h. */
3900 main (void)
3904 return 0;
3906 _ACEOF
3907 ac_clean_files_save=$ac_clean_files
3908 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3909 # Try to create an executable without -o first, disregard a.out.
3910 # It will help us diagnose broken compilers, and finding out an intuition
3911 # of exeext.
3912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3913 printf %s "checking whether the C compiler works... " >&6; }
3914 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3916 # The possible output files:
3917 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3919 ac_rmfiles=
3920 for ac_file in $ac_files
3922 case $ac_file in
3923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3924 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3925 esac
3926 done
3927 rm -f $ac_rmfiles
3929 if { { ac_try="$ac_link_default"
3930 case "(($ac_try" in
3931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932 *) ac_try_echo=$ac_try;;
3933 esac
3934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3935 printf "%s\n" "$ac_try_echo"; } >&5
3936 (eval "$ac_link_default") 2>&5
3937 ac_status=$?
3938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3939 test $ac_status = 0; }
3940 then :
3941 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3942 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3943 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3944 # so that the user can short-circuit this test for compilers unknown to
3945 # Autoconf.
3946 for ac_file in $ac_files ''
3948 test -f "$ac_file" || continue
3949 case $ac_file in
3950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3952 [ab].out )
3953 # We found the default executable, but exeext='' is most
3954 # certainly right.
3955 break;;
3956 *.* )
3957 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3958 then :; else
3959 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3961 # We set ac_cv_exeext here because the later test for it is not
3962 # safe: cross compilers may not add the suffix if given an `-o'
3963 # argument, so we may need to know it at that point already.
3964 # Even if this section looks crufty: it has the advantage of
3965 # actually working.
3966 break;;
3968 break;;
3969 esac
3970 done
3971 test "$ac_cv_exeext" = no && ac_cv_exeext=
3973 else $as_nop
3974 ac_file=''
3976 if test -z "$ac_file"
3977 then :
3978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 printf "%s\n" "no" >&6; }
3980 printf "%s\n" "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3983 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3984 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3985 as_fn_error 77 "C compiler cannot create executables
3986 See \`config.log' for more details" "$LINENO" 5; }
3987 else $as_nop
3988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3989 printf "%s\n" "yes" >&6; }
3991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3992 printf %s "checking for C compiler default output file name... " >&6; }
3993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3994 printf "%s\n" "$ac_file" >&6; }
3995 ac_exeext=$ac_cv_exeext
3997 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3998 ac_clean_files=$ac_clean_files_save
3999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4000 printf %s "checking for suffix of executables... " >&6; }
4001 if { { ac_try="$ac_link"
4002 case "(($ac_try" in
4003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004 *) ac_try_echo=$ac_try;;
4005 esac
4006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4007 printf "%s\n" "$ac_try_echo"; } >&5
4008 (eval "$ac_link") 2>&5
4009 ac_status=$?
4010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4011 test $ac_status = 0; }
4012 then :
4013 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4014 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4015 # work properly (i.e., refer to `conftest.exe'), while it won't with
4016 # `rm'.
4017 for ac_file in conftest.exe conftest conftest.*; do
4018 test -f "$ac_file" || continue
4019 case $ac_file in
4020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4021 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4022 break;;
4023 * ) break;;
4024 esac
4025 done
4026 else $as_nop
4027 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4028 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4029 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4030 See \`config.log' for more details" "$LINENO" 5; }
4032 rm -f conftest conftest$ac_cv_exeext
4033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4034 printf "%s\n" "$ac_cv_exeext" >&6; }
4036 rm -f conftest.$ac_ext
4037 EXEEXT=$ac_cv_exeext
4038 ac_exeext=$EXEEXT
4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h. */
4041 #include <stdio.h>
4043 main (void)
4045 FILE *f = fopen ("conftest.out", "w");
4046 return ferror (f) || fclose (f) != 0;
4049 return 0;
4051 _ACEOF
4052 ac_clean_files="$ac_clean_files conftest.out"
4053 # Check that the compiler produces executables we can run. If not, either
4054 # the compiler is broken, or we cross compile.
4055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4056 printf %s "checking whether we are cross compiling... " >&6; }
4057 if test "$cross_compiling" != yes; then
4058 { { ac_try="$ac_link"
4059 case "(($ac_try" in
4060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061 *) ac_try_echo=$ac_try;;
4062 esac
4063 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4064 printf "%s\n" "$ac_try_echo"; } >&5
4065 (eval "$ac_link") 2>&5
4066 ac_status=$?
4067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4068 test $ac_status = 0; }
4069 if { ac_try='./conftest$ac_cv_exeext'
4070 { { case "(($ac_try" in
4071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072 *) ac_try_echo=$ac_try;;
4073 esac
4074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4075 printf "%s\n" "$ac_try_echo"; } >&5
4076 (eval "$ac_try") 2>&5
4077 ac_status=$?
4078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4079 test $ac_status = 0; }; }; then
4080 cross_compiling=no
4081 else
4082 if test "$cross_compiling" = maybe; then
4083 cross_compiling=yes
4084 else
4085 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4086 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4087 as_fn_error 77 "cannot run C compiled programs.
4088 If you meant to cross compile, use \`--host'.
4089 See \`config.log' for more details" "$LINENO" 5; }
4093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4094 printf "%s\n" "$cross_compiling" >&6; }
4096 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4097 ac_clean_files=$ac_clean_files_save
4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4099 printf %s "checking for suffix of object files... " >&6; }
4100 if test ${ac_cv_objext+y}
4101 then :
4102 printf %s "(cached) " >&6
4103 else $as_nop
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4108 main (void)
4112 return 0;
4114 _ACEOF
4115 rm -f conftest.o conftest.obj
4116 if { { ac_try="$ac_compile"
4117 case "(($ac_try" in
4118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119 *) ac_try_echo=$ac_try;;
4120 esac
4121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4122 printf "%s\n" "$ac_try_echo"; } >&5
4123 (eval "$ac_compile") 2>&5
4124 ac_status=$?
4125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4126 test $ac_status = 0; }
4127 then :
4128 for ac_file in conftest.o conftest.obj conftest.*; do
4129 test -f "$ac_file" || continue;
4130 case $ac_file in
4131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4132 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4133 break;;
4134 esac
4135 done
4136 else $as_nop
4137 printf "%s\n" "$as_me: failed program was:" >&5
4138 sed 's/^/| /' conftest.$ac_ext >&5
4140 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4141 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4142 as_fn_error $? "cannot compute suffix of object files: cannot compile
4143 See \`config.log' for more details" "$LINENO" 5; }
4145 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4148 printf "%s\n" "$ac_cv_objext" >&6; }
4149 OBJEXT=$ac_cv_objext
4150 ac_objext=$OBJEXT
4151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4152 printf %s "checking whether the compiler supports GNU C... " >&6; }
4153 if test ${ac_cv_c_compiler_gnu+y}
4154 then :
4155 printf %s "(cached) " >&6
4156 else $as_nop
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4161 main (void)
4163 #ifndef __GNUC__
4164 choke me
4165 #endif
4168 return 0;
4170 _ACEOF
4171 if ac_fn_c_try_compile "$LINENO"
4172 then :
4173 ac_compiler_gnu=yes
4174 else $as_nop
4175 ac_compiler_gnu=no
4177 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4178 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4182 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4185 if test $ac_compiler_gnu = yes; then
4186 GCC=yes
4187 else
4188 GCC=
4190 ac_test_CFLAGS=${CFLAGS+y}
4191 ac_save_CFLAGS=$CFLAGS
4192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4193 printf %s "checking whether $CC accepts -g... " >&6; }
4194 if test ${ac_cv_prog_cc_g+y}
4195 then :
4196 printf %s "(cached) " >&6
4197 else $as_nop
4198 ac_save_c_werror_flag=$ac_c_werror_flag
4199 ac_c_werror_flag=yes
4200 ac_cv_prog_cc_g=no
4201 CFLAGS="-g"
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4206 main (void)
4210 return 0;
4212 _ACEOF
4213 if ac_fn_c_try_compile "$LINENO"
4214 then :
4215 ac_cv_prog_cc_g=yes
4216 else $as_nop
4217 CFLAGS=""
4218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219 /* end confdefs.h. */
4222 main (void)
4226 return 0;
4228 _ACEOF
4229 if ac_fn_c_try_compile "$LINENO"
4230 then :
4232 else $as_nop
4233 ac_c_werror_flag=$ac_save_c_werror_flag
4234 CFLAGS="-g"
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h. */
4239 main (void)
4243 return 0;
4245 _ACEOF
4246 if ac_fn_c_try_compile "$LINENO"
4247 then :
4248 ac_cv_prog_cc_g=yes
4250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4252 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4254 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4255 ac_c_werror_flag=$ac_save_c_werror_flag
4257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4258 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4259 if test $ac_test_CFLAGS; then
4260 CFLAGS=$ac_save_CFLAGS
4261 elif test $ac_cv_prog_cc_g = yes; then
4262 if test "$GCC" = yes; then
4263 CFLAGS="-g -O2"
4264 else
4265 CFLAGS="-g"
4267 else
4268 if test "$GCC" = yes; then
4269 CFLAGS="-O2"
4270 else
4271 CFLAGS=
4274 ac_prog_cc_stdc=no
4275 if test x$ac_prog_cc_stdc = xno
4276 then :
4277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4278 printf %s "checking for $CC option to enable C11 features... " >&6; }
4279 if test ${ac_cv_prog_cc_c11+y}
4280 then :
4281 printf %s "(cached) " >&6
4282 else $as_nop
4283 ac_cv_prog_cc_c11=no
4284 ac_save_CC=$CC
4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h. */
4287 $ac_c_conftest_c11_program
4288 _ACEOF
4289 for ac_arg in '' -std=gnu11
4291 CC="$ac_save_CC $ac_arg"
4292 if ac_fn_c_try_compile "$LINENO"
4293 then :
4294 ac_cv_prog_cc_c11=$ac_arg
4296 rm -f core conftest.err conftest.$ac_objext conftest.beam
4297 test "x$ac_cv_prog_cc_c11" != "xno" && break
4298 done
4299 rm -f conftest.$ac_ext
4300 CC=$ac_save_CC
4303 if test "x$ac_cv_prog_cc_c11" = xno
4304 then :
4305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4306 printf "%s\n" "unsupported" >&6; }
4307 else $as_nop
4308 if test "x$ac_cv_prog_cc_c11" = x
4309 then :
4310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4311 printf "%s\n" "none needed" >&6; }
4312 else $as_nop
4313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4314 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4315 CC="$CC $ac_cv_prog_cc_c11"
4317 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4318 ac_prog_cc_stdc=c11
4321 if test x$ac_prog_cc_stdc = xno
4322 then :
4323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4324 printf %s "checking for $CC option to enable C99 features... " >&6; }
4325 if test ${ac_cv_prog_cc_c99+y}
4326 then :
4327 printf %s "(cached) " >&6
4328 else $as_nop
4329 ac_cv_prog_cc_c99=no
4330 ac_save_CC=$CC
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h. */
4333 $ac_c_conftest_c99_program
4334 _ACEOF
4335 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4337 CC="$ac_save_CC $ac_arg"
4338 if ac_fn_c_try_compile "$LINENO"
4339 then :
4340 ac_cv_prog_cc_c99=$ac_arg
4342 rm -f core conftest.err conftest.$ac_objext conftest.beam
4343 test "x$ac_cv_prog_cc_c99" != "xno" && break
4344 done
4345 rm -f conftest.$ac_ext
4346 CC=$ac_save_CC
4349 if test "x$ac_cv_prog_cc_c99" = xno
4350 then :
4351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4352 printf "%s\n" "unsupported" >&6; }
4353 else $as_nop
4354 if test "x$ac_cv_prog_cc_c99" = x
4355 then :
4356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4357 printf "%s\n" "none needed" >&6; }
4358 else $as_nop
4359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4360 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4361 CC="$CC $ac_cv_prog_cc_c99"
4363 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4364 ac_prog_cc_stdc=c99
4367 if test x$ac_prog_cc_stdc = xno
4368 then :
4369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4370 printf %s "checking for $CC option to enable C89 features... " >&6; }
4371 if test ${ac_cv_prog_cc_c89+y}
4372 then :
4373 printf %s "(cached) " >&6
4374 else $as_nop
4375 ac_cv_prog_cc_c89=no
4376 ac_save_CC=$CC
4377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4378 /* end confdefs.h. */
4379 $ac_c_conftest_c89_program
4380 _ACEOF
4381 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4383 CC="$ac_save_CC $ac_arg"
4384 if ac_fn_c_try_compile "$LINENO"
4385 then :
4386 ac_cv_prog_cc_c89=$ac_arg
4388 rm -f core conftest.err conftest.$ac_objext conftest.beam
4389 test "x$ac_cv_prog_cc_c89" != "xno" && break
4390 done
4391 rm -f conftest.$ac_ext
4392 CC=$ac_save_CC
4395 if test "x$ac_cv_prog_cc_c89" = xno
4396 then :
4397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4398 printf "%s\n" "unsupported" >&6; }
4399 else $as_nop
4400 if test "x$ac_cv_prog_cc_c89" = x
4401 then :
4402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4403 printf "%s\n" "none needed" >&6; }
4404 else $as_nop
4405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4406 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4407 CC="$CC $ac_cv_prog_cc_c89"
4409 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4410 ac_prog_cc_stdc=c89
4414 ac_ext=c
4415 ac_cpp='$CPP $CPPFLAGS'
4416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4421 ac_header= ac_cache=
4422 for ac_item in $ac_header_c_list
4424 if test $ac_cache; then
4425 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4426 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4427 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4429 ac_header= ac_cache=
4430 elif test $ac_header; then
4431 ac_cache=$ac_item
4432 else
4433 ac_header=$ac_item
4435 done
4444 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4445 then :
4447 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4457 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4458 if test ${ac_cv_safe_to_define___extensions__+y}
4459 then :
4460 printf %s "(cached) " >&6
4461 else $as_nop
4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h. */
4465 # define __EXTENSIONS__ 1
4466 $ac_includes_default
4468 main (void)
4472 return 0;
4474 _ACEOF
4475 if ac_fn_c_try_compile "$LINENO"
4476 then :
4477 ac_cv_safe_to_define___extensions__=yes
4478 else $as_nop
4479 ac_cv_safe_to_define___extensions__=no
4481 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4484 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4487 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4488 if test ${ac_cv_should_define__xopen_source+y}
4489 then :
4490 printf %s "(cached) " >&6
4491 else $as_nop
4492 ac_cv_should_define__xopen_source=no
4493 if test $ac_cv_header_wchar_h = yes
4494 then :
4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4498 #include <wchar.h>
4499 mbstate_t x;
4501 main (void)
4505 return 0;
4507 _ACEOF
4508 if ac_fn_c_try_compile "$LINENO"
4509 then :
4511 else $as_nop
4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h. */
4515 #define _XOPEN_SOURCE 500
4516 #include <wchar.h>
4517 mbstate_t x;
4519 main (void)
4523 return 0;
4525 _ACEOF
4526 if ac_fn_c_try_compile "$LINENO"
4527 then :
4528 ac_cv_should_define__xopen_source=yes
4530 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4532 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4536 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4538 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4540 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4542 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4544 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4546 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4548 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4550 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4552 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4554 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4556 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4558 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4560 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4562 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4564 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4566 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4568 if test $ac_cv_header_minix_config_h = yes
4569 then :
4570 MINIX=yes
4571 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4573 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4575 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4577 else $as_nop
4578 MINIX=
4580 if test $ac_cv_safe_to_define___extensions__ = yes
4581 then :
4582 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4585 if test $ac_cv_should_define__xopen_source = yes
4586 then :
4587 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4591 MCONFIG=./MCONFIG
4593 BINARY_TYPE=bin
4594 E2FSPROGS_VERSION=`awk -F\" '/E2FSPROGS_VERS/ { print $2 }' ${srcdir}/version.h`
4595 E2FSPROGS_DATE=`awk -F\" '/E2FSPROGS_DATE/ { print $2 }' ${srcdir}/version.h`
4596 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{ printf "%02d", $1 }')
4597 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
4598 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
4600 if expr $YEAR ">" 1900 > /dev/null ; then
4601 E2FSPROGS_YEAR=$YEAR
4602 elif expr $YEAR ">" 90 >/dev/null ; then
4603 E2FSPROGS_YEAR=19$YEAR
4604 else
4605 E2FSPROGS_YEAR=20$YEAR
4608 case $MONTH in
4609 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
4610 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
4611 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
4612 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
4613 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
4614 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
4615 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
4616 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
4617 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
4618 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
4619 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
4620 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
4621 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
4622 printf "%s\n" "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
4623 esac
4625 base_ver=`echo $E2FSPROGS_VERSION | sed -e 's/pre-//' -e 's/-.*//'`
4626 base_rel=`echo $E2FSPROGS_VERSION | awk -F- '{ print $2 }'`
4628 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
4630 case $E2FSPROGS_VERSION in
4631 *-WIP|pre-*)
4632 E2FSPROGS_PKGVER="$base_ver"
4633 E2FSPROGS_PKGREL="WIP.$date_spec"
4636 E2FSPROGS_PKGVER="$base_ver"
4637 E2FSPROGS_PKGREL="$base_rel"
4639 esac
4641 unset DATE MONTH YEAR base_ver pre_vers date_spec
4642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
4643 printf "%s\n" "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
4644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Package version ${E2FSPROGS_PKGVER} release ${E2FSPROGS_PKGREL}" >&5
4645 printf "%s\n" "Package version ${E2FSPROGS_PKGVER} release ${E2FSPROGS_PKGREL}" >&6; }
4646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
4647 printf "%s\n" "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
4655 WITH_DIET_LIBC=
4657 # Check whether --with-diet-libc was given.
4658 if test ${with_diet_libc+y}
4659 then :
4660 withval=$with_diet_libc; CC="diet cc -nostdinc"
4661 WITH_DIET_LIBC=yes
4662 if test -z "$LIBS"
4663 then
4664 LIBS="-lcompat"
4665 else
4666 LIBS="$LIBS -lcompat"
4668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
4669 printf "%s\n" "CC=$CC" >&6; }
4674 # Make sure we can run config.sub.
4675 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4676 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4679 printf %s "checking build system type... " >&6; }
4680 if test ${ac_cv_build+y}
4681 then :
4682 printf %s "(cached) " >&6
4683 else $as_nop
4684 ac_build_alias=$build_alias
4685 test "x$ac_build_alias" = x &&
4686 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4687 test "x$ac_build_alias" = x &&
4688 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4689 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4690 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4694 printf "%s\n" "$ac_cv_build" >&6; }
4695 case $ac_cv_build in
4696 *-*-*) ;;
4697 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4698 esac
4699 build=$ac_cv_build
4700 ac_save_IFS=$IFS; IFS='-'
4701 set x $ac_cv_build
4702 shift
4703 build_cpu=$1
4704 build_vendor=$2
4705 shift; shift
4706 # Remember, the first character of IFS is used to create $*,
4707 # except with old shells:
4708 build_os=$*
4709 IFS=$ac_save_IFS
4710 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4714 printf %s "checking host system type... " >&6; }
4715 if test ${ac_cv_host+y}
4716 then :
4717 printf %s "(cached) " >&6
4718 else $as_nop
4719 if test "x$host_alias" = x; then
4720 ac_cv_host=$ac_cv_build
4721 else
4722 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4723 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4728 printf "%s\n" "$ac_cv_host" >&6; }
4729 case $ac_cv_host in
4730 *-*-*) ;;
4731 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4732 esac
4733 host=$ac_cv_host
4734 ac_save_IFS=$IFS; IFS='-'
4735 set x $ac_cv_host
4736 shift
4737 host_cpu=$1
4738 host_vendor=$2
4739 shift; shift
4740 # Remember, the first character of IFS is used to create $*,
4741 # except with old shells:
4742 host_os=$*
4743 IFS=$ac_save_IFS
4744 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4747 DLOPEN_LIB=''
4748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4749 printf %s "checking for dlopen in -ldl... " >&6; }
4750 if test ${ac_cv_lib_dl_dlopen+y}
4751 then :
4752 printf %s "(cached) " >&6
4753 else $as_nop
4754 ac_check_lib_save_LIBS=$LIBS
4755 LIBS="-ldl $LIBS"
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h. */
4759 /* Override any GCC internal prototype to avoid an error.
4760 Use char because int might match the return type of a GCC
4761 builtin and then its argument prototype would still apply. */
4762 char dlopen ();
4764 main (void)
4766 return dlopen ();
4768 return 0;
4770 _ACEOF
4771 if ac_fn_c_try_link "$LINENO"
4772 then :
4773 ac_cv_lib_dl_dlopen=yes
4774 else $as_nop
4775 ac_cv_lib_dl_dlopen=no
4777 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4778 conftest$ac_exeext conftest.$ac_ext
4779 LIBS=$ac_check_lib_save_LIBS
4781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4782 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
4783 if test "x$ac_cv_lib_dl_dlopen" = xyes
4784 then :
4785 DLOPEN_LIB=-ldl
4790 # Check whether --with-cc was given.
4791 if test ${with_cc+y}
4792 then :
4793 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
4797 # Check whether --with-ccopts was given.
4798 if test ${with_ccopts+y}
4799 then :
4800 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
4804 # Check whether --with-ldopts was given.
4805 if test ${with_ldopts+y}
4806 then :
4807 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
4810 ac_ext=c
4811 ac_cpp='$CPP $CPPFLAGS'
4812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4815 if test -n "$ac_tool_prefix"; then
4816 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4817 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4819 printf %s "checking for $ac_word... " >&6; }
4820 if test ${ac_cv_prog_CC+y}
4821 then :
4822 printf %s "(cached) " >&6
4823 else $as_nop
4824 if test -n "$CC"; then
4825 ac_cv_prog_CC="$CC" # Let the user override the test.
4826 else
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 for as_dir in $PATH
4830 IFS=$as_save_IFS
4831 case $as_dir in #(((
4832 '') as_dir=./ ;;
4833 */) ;;
4834 *) as_dir=$as_dir/ ;;
4835 esac
4836 for ac_exec_ext in '' $ac_executable_extensions; do
4837 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4838 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4840 break 2
4842 done
4843 done
4844 IFS=$as_save_IFS
4848 CC=$ac_cv_prog_CC
4849 if test -n "$CC"; then
4850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4851 printf "%s\n" "$CC" >&6; }
4852 else
4853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854 printf "%s\n" "no" >&6; }
4859 if test -z "$ac_cv_prog_CC"; then
4860 ac_ct_CC=$CC
4861 # Extract the first word of "gcc", so it can be a program name with args.
4862 set dummy gcc; ac_word=$2
4863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4864 printf %s "checking for $ac_word... " >&6; }
4865 if test ${ac_cv_prog_ac_ct_CC+y}
4866 then :
4867 printf %s "(cached) " >&6
4868 else $as_nop
4869 if test -n "$ac_ct_CC"; then
4870 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4871 else
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH
4875 IFS=$as_save_IFS
4876 case $as_dir in #(((
4877 '') as_dir=./ ;;
4878 */) ;;
4879 *) as_dir=$as_dir/ ;;
4880 esac
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4883 ac_cv_prog_ac_ct_CC="gcc"
4884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4885 break 2
4887 done
4888 done
4889 IFS=$as_save_IFS
4893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4894 if test -n "$ac_ct_CC"; then
4895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4896 printf "%s\n" "$ac_ct_CC" >&6; }
4897 else
4898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899 printf "%s\n" "no" >&6; }
4902 if test "x$ac_ct_CC" = x; then
4903 CC=""
4904 else
4905 case $cross_compiling:$ac_tool_warned in
4906 yes:)
4907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4908 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4909 ac_tool_warned=yes ;;
4910 esac
4911 CC=$ac_ct_CC
4913 else
4914 CC="$ac_cv_prog_CC"
4917 if test -z "$CC"; then
4918 if test -n "$ac_tool_prefix"; then
4919 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4920 set dummy ${ac_tool_prefix}cc; ac_word=$2
4921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922 printf %s "checking for $ac_word... " >&6; }
4923 if test ${ac_cv_prog_CC+y}
4924 then :
4925 printf %s "(cached) " >&6
4926 else $as_nop
4927 if test -n "$CC"; then
4928 ac_cv_prog_CC="$CC" # Let the user override the test.
4929 else
4930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931 for as_dir in $PATH
4933 IFS=$as_save_IFS
4934 case $as_dir in #(((
4935 '') as_dir=./ ;;
4936 */) ;;
4937 *) as_dir=$as_dir/ ;;
4938 esac
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4941 ac_cv_prog_CC="${ac_tool_prefix}cc"
4942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4943 break 2
4945 done
4946 done
4947 IFS=$as_save_IFS
4951 CC=$ac_cv_prog_CC
4952 if test -n "$CC"; then
4953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4954 printf "%s\n" "$CC" >&6; }
4955 else
4956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957 printf "%s\n" "no" >&6; }
4963 if test -z "$CC"; then
4964 # Extract the first word of "cc", so it can be a program name with args.
4965 set dummy cc; ac_word=$2
4966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4967 printf %s "checking for $ac_word... " >&6; }
4968 if test ${ac_cv_prog_CC+y}
4969 then :
4970 printf %s "(cached) " >&6
4971 else $as_nop
4972 if test -n "$CC"; then
4973 ac_cv_prog_CC="$CC" # Let the user override the test.
4974 else
4975 ac_prog_rejected=no
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH
4979 IFS=$as_save_IFS
4980 case $as_dir in #(((
4981 '') as_dir=./ ;;
4982 */) ;;
4983 *) as_dir=$as_dir/ ;;
4984 esac
4985 for ac_exec_ext in '' $ac_executable_extensions; do
4986 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4987 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4988 ac_prog_rejected=yes
4989 continue
4991 ac_cv_prog_CC="cc"
4992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4993 break 2
4995 done
4996 done
4997 IFS=$as_save_IFS
4999 if test $ac_prog_rejected = yes; then
5000 # We found a bogon in the path, so make sure we never use it.
5001 set dummy $ac_cv_prog_CC
5002 shift
5003 if test $# != 0; then
5004 # We chose a different compiler from the bogus one.
5005 # However, it has the same basename, so the bogon will be chosen
5006 # first if we set CC to just the basename; use the full file name.
5007 shift
5008 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5013 CC=$ac_cv_prog_CC
5014 if test -n "$CC"; then
5015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5016 printf "%s\n" "$CC" >&6; }
5017 else
5018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5019 printf "%s\n" "no" >&6; }
5024 if test -z "$CC"; then
5025 if test -n "$ac_tool_prefix"; then
5026 for ac_prog in cl.exe
5028 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5029 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5031 printf %s "checking for $ac_word... " >&6; }
5032 if test ${ac_cv_prog_CC+y}
5033 then :
5034 printf %s "(cached) " >&6
5035 else $as_nop
5036 if test -n "$CC"; then
5037 ac_cv_prog_CC="$CC" # Let the user override the test.
5038 else
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH
5042 IFS=$as_save_IFS
5043 case $as_dir in #(((
5044 '') as_dir=./ ;;
5045 */) ;;
5046 *) as_dir=$as_dir/ ;;
5047 esac
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5050 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5052 break 2
5054 done
5055 done
5056 IFS=$as_save_IFS
5060 CC=$ac_cv_prog_CC
5061 if test -n "$CC"; then
5062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5063 printf "%s\n" "$CC" >&6; }
5064 else
5065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066 printf "%s\n" "no" >&6; }
5070 test -n "$CC" && break
5071 done
5073 if test -z "$CC"; then
5074 ac_ct_CC=$CC
5075 for ac_prog in cl.exe
5077 # Extract the first word of "$ac_prog", so it can be a program name with args.
5078 set dummy $ac_prog; ac_word=$2
5079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5080 printf %s "checking for $ac_word... " >&6; }
5081 if test ${ac_cv_prog_ac_ct_CC+y}
5082 then :
5083 printf %s "(cached) " >&6
5084 else $as_nop
5085 if test -n "$ac_ct_CC"; then
5086 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5087 else
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH
5091 IFS=$as_save_IFS
5092 case $as_dir in #(((
5093 '') as_dir=./ ;;
5094 */) ;;
5095 *) as_dir=$as_dir/ ;;
5096 esac
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5099 ac_cv_prog_ac_ct_CC="$ac_prog"
5100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5101 break 2
5103 done
5104 done
5105 IFS=$as_save_IFS
5109 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5110 if test -n "$ac_ct_CC"; then
5111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5112 printf "%s\n" "$ac_ct_CC" >&6; }
5113 else
5114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5115 printf "%s\n" "no" >&6; }
5119 test -n "$ac_ct_CC" && break
5120 done
5122 if test "x$ac_ct_CC" = x; then
5123 CC=""
5124 else
5125 case $cross_compiling:$ac_tool_warned in
5126 yes:)
5127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5128 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5129 ac_tool_warned=yes ;;
5130 esac
5131 CC=$ac_ct_CC
5136 if test -z "$CC"; then
5137 if test -n "$ac_tool_prefix"; then
5138 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5139 set dummy ${ac_tool_prefix}clang; ac_word=$2
5140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141 printf %s "checking for $ac_word... " >&6; }
5142 if test ${ac_cv_prog_CC+y}
5143 then :
5144 printf %s "(cached) " >&6
5145 else $as_nop
5146 if test -n "$CC"; then
5147 ac_cv_prog_CC="$CC" # Let the user override the test.
5148 else
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 for as_dir in $PATH
5152 IFS=$as_save_IFS
5153 case $as_dir in #(((
5154 '') as_dir=./ ;;
5155 */) ;;
5156 *) as_dir=$as_dir/ ;;
5157 esac
5158 for ac_exec_ext in '' $ac_executable_extensions; do
5159 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5160 ac_cv_prog_CC="${ac_tool_prefix}clang"
5161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5162 break 2
5164 done
5165 done
5166 IFS=$as_save_IFS
5170 CC=$ac_cv_prog_CC
5171 if test -n "$CC"; then
5172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5173 printf "%s\n" "$CC" >&6; }
5174 else
5175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176 printf "%s\n" "no" >&6; }
5181 if test -z "$ac_cv_prog_CC"; then
5182 ac_ct_CC=$CC
5183 # Extract the first word of "clang", so it can be a program name with args.
5184 set dummy clang; ac_word=$2
5185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5186 printf %s "checking for $ac_word... " >&6; }
5187 if test ${ac_cv_prog_ac_ct_CC+y}
5188 then :
5189 printf %s "(cached) " >&6
5190 else $as_nop
5191 if test -n "$ac_ct_CC"; then
5192 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5193 else
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH
5197 IFS=$as_save_IFS
5198 case $as_dir in #(((
5199 '') as_dir=./ ;;
5200 */) ;;
5201 *) as_dir=$as_dir/ ;;
5202 esac
5203 for ac_exec_ext in '' $ac_executable_extensions; do
5204 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5205 ac_cv_prog_ac_ct_CC="clang"
5206 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5207 break 2
5209 done
5210 done
5211 IFS=$as_save_IFS
5215 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5216 if test -n "$ac_ct_CC"; then
5217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5218 printf "%s\n" "$ac_ct_CC" >&6; }
5219 else
5220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221 printf "%s\n" "no" >&6; }
5224 if test "x$ac_ct_CC" = x; then
5225 CC=""
5226 else
5227 case $cross_compiling:$ac_tool_warned in
5228 yes:)
5229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5230 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5231 ac_tool_warned=yes ;;
5232 esac
5233 CC=$ac_ct_CC
5235 else
5236 CC="$ac_cv_prog_CC"
5242 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5243 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5244 as_fn_error $? "no acceptable C compiler found in \$PATH
5245 See \`config.log' for more details" "$LINENO" 5; }
5247 # Provide some information about the compiler.
5248 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5249 set X $ac_compile
5250 ac_compiler=$2
5251 for ac_option in --version -v -V -qversion -version; do
5252 { { ac_try="$ac_compiler $ac_option >&5"
5253 case "(($ac_try" in
5254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255 *) ac_try_echo=$ac_try;;
5256 esac
5257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5258 printf "%s\n" "$ac_try_echo"; } >&5
5259 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5260 ac_status=$?
5261 if test -s conftest.err; then
5262 sed '10a\
5263 ... rest of stderr output deleted ...
5264 10q' conftest.err >conftest.er1
5265 cat conftest.er1 >&5
5267 rm -f conftest.er1 conftest.err
5268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5269 test $ac_status = 0; }
5270 done
5272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5273 printf %s "checking whether the compiler supports GNU C... " >&6; }
5274 if test ${ac_cv_c_compiler_gnu+y}
5275 then :
5276 printf %s "(cached) " >&6
5277 else $as_nop
5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279 /* end confdefs.h. */
5282 main (void)
5284 #ifndef __GNUC__
5285 choke me
5286 #endif
5289 return 0;
5291 _ACEOF
5292 if ac_fn_c_try_compile "$LINENO"
5293 then :
5294 ac_compiler_gnu=yes
5295 else $as_nop
5296 ac_compiler_gnu=no
5298 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5299 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5303 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5306 if test $ac_compiler_gnu = yes; then
5307 GCC=yes
5308 else
5309 GCC=
5311 ac_test_CFLAGS=${CFLAGS+y}
5312 ac_save_CFLAGS=$CFLAGS
5313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5314 printf %s "checking whether $CC accepts -g... " >&6; }
5315 if test ${ac_cv_prog_cc_g+y}
5316 then :
5317 printf %s "(cached) " >&6
5318 else $as_nop
5319 ac_save_c_werror_flag=$ac_c_werror_flag
5320 ac_c_werror_flag=yes
5321 ac_cv_prog_cc_g=no
5322 CFLAGS="-g"
5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h. */
5327 main (void)
5331 return 0;
5333 _ACEOF
5334 if ac_fn_c_try_compile "$LINENO"
5335 then :
5336 ac_cv_prog_cc_g=yes
5337 else $as_nop
5338 CFLAGS=""
5339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340 /* end confdefs.h. */
5343 main (void)
5347 return 0;
5349 _ACEOF
5350 if ac_fn_c_try_compile "$LINENO"
5351 then :
5353 else $as_nop
5354 ac_c_werror_flag=$ac_save_c_werror_flag
5355 CFLAGS="-g"
5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357 /* end confdefs.h. */
5360 main (void)
5364 return 0;
5366 _ACEOF
5367 if ac_fn_c_try_compile "$LINENO"
5368 then :
5369 ac_cv_prog_cc_g=yes
5371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5373 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5375 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5376 ac_c_werror_flag=$ac_save_c_werror_flag
5378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5379 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5380 if test $ac_test_CFLAGS; then
5381 CFLAGS=$ac_save_CFLAGS
5382 elif test $ac_cv_prog_cc_g = yes; then
5383 if test "$GCC" = yes; then
5384 CFLAGS="-g -O2"
5385 else
5386 CFLAGS="-g"
5388 else
5389 if test "$GCC" = yes; then
5390 CFLAGS="-O2"
5391 else
5392 CFLAGS=
5395 ac_prog_cc_stdc=no
5396 if test x$ac_prog_cc_stdc = xno
5397 then :
5398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5399 printf %s "checking for $CC option to enable C11 features... " >&6; }
5400 if test ${ac_cv_prog_cc_c11+y}
5401 then :
5402 printf %s "(cached) " >&6
5403 else $as_nop
5404 ac_cv_prog_cc_c11=no
5405 ac_save_CC=$CC
5406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h. */
5408 $ac_c_conftest_c11_program
5409 _ACEOF
5410 for ac_arg in '' -std=gnu11
5412 CC="$ac_save_CC $ac_arg"
5413 if ac_fn_c_try_compile "$LINENO"
5414 then :
5415 ac_cv_prog_cc_c11=$ac_arg
5417 rm -f core conftest.err conftest.$ac_objext conftest.beam
5418 test "x$ac_cv_prog_cc_c11" != "xno" && break
5419 done
5420 rm -f conftest.$ac_ext
5421 CC=$ac_save_CC
5424 if test "x$ac_cv_prog_cc_c11" = xno
5425 then :
5426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5427 printf "%s\n" "unsupported" >&6; }
5428 else $as_nop
5429 if test "x$ac_cv_prog_cc_c11" = x
5430 then :
5431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5432 printf "%s\n" "none needed" >&6; }
5433 else $as_nop
5434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5435 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5436 CC="$CC $ac_cv_prog_cc_c11"
5438 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5439 ac_prog_cc_stdc=c11
5442 if test x$ac_prog_cc_stdc = xno
5443 then :
5444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5445 printf %s "checking for $CC option to enable C99 features... " >&6; }
5446 if test ${ac_cv_prog_cc_c99+y}
5447 then :
5448 printf %s "(cached) " >&6
5449 else $as_nop
5450 ac_cv_prog_cc_c99=no
5451 ac_save_CC=$CC
5452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453 /* end confdefs.h. */
5454 $ac_c_conftest_c99_program
5455 _ACEOF
5456 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5458 CC="$ac_save_CC $ac_arg"
5459 if ac_fn_c_try_compile "$LINENO"
5460 then :
5461 ac_cv_prog_cc_c99=$ac_arg
5463 rm -f core conftest.err conftest.$ac_objext conftest.beam
5464 test "x$ac_cv_prog_cc_c99" != "xno" && break
5465 done
5466 rm -f conftest.$ac_ext
5467 CC=$ac_save_CC
5470 if test "x$ac_cv_prog_cc_c99" = xno
5471 then :
5472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5473 printf "%s\n" "unsupported" >&6; }
5474 else $as_nop
5475 if test "x$ac_cv_prog_cc_c99" = x
5476 then :
5477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5478 printf "%s\n" "none needed" >&6; }
5479 else $as_nop
5480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5481 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5482 CC="$CC $ac_cv_prog_cc_c99"
5484 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5485 ac_prog_cc_stdc=c99
5488 if test x$ac_prog_cc_stdc = xno
5489 then :
5490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5491 printf %s "checking for $CC option to enable C89 features... " >&6; }
5492 if test ${ac_cv_prog_cc_c89+y}
5493 then :
5494 printf %s "(cached) " >&6
5495 else $as_nop
5496 ac_cv_prog_cc_c89=no
5497 ac_save_CC=$CC
5498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499 /* end confdefs.h. */
5500 $ac_c_conftest_c89_program
5501 _ACEOF
5502 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5504 CC="$ac_save_CC $ac_arg"
5505 if ac_fn_c_try_compile "$LINENO"
5506 then :
5507 ac_cv_prog_cc_c89=$ac_arg
5509 rm -f core conftest.err conftest.$ac_objext conftest.beam
5510 test "x$ac_cv_prog_cc_c89" != "xno" && break
5511 done
5512 rm -f conftest.$ac_ext
5513 CC=$ac_save_CC
5516 if test "x$ac_cv_prog_cc_c89" = xno
5517 then :
5518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5519 printf "%s\n" "unsupported" >&6; }
5520 else $as_nop
5521 if test "x$ac_cv_prog_cc_c89" = x
5522 then :
5523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5524 printf "%s\n" "none needed" >&6; }
5525 else $as_nop
5526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5527 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5528 CC="$CC $ac_cv_prog_cc_c89"
5530 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5531 ac_prog_cc_stdc=c89
5535 ac_ext=c
5536 ac_cpp='$CPP $CPPFLAGS'
5537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5541 if test "$GCC" = yes; then
5542 RDYNAMIC="-rdynamic"
5545 ac_ext=c
5546 ac_cpp='$CPP $CPPFLAGS'
5547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5551 printf %s "checking how to run the C preprocessor... " >&6; }
5552 # On Suns, sometimes $CPP names a directory.
5553 if test -n "$CPP" && test -d "$CPP"; then
5554 CPP=
5556 if test -z "$CPP"; then
5557 if test ${ac_cv_prog_CPP+y}
5558 then :
5559 printf %s "(cached) " >&6
5560 else $as_nop
5561 # Double quotes because $CC needs to be expanded
5562 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5564 ac_preproc_ok=false
5565 for ac_c_preproc_warn_flag in '' yes
5567 # Use a header file that comes with gcc, so configuring glibc
5568 # with a fresh cross-compiler works.
5569 # On the NeXT, cc -E runs the code through the compiler's parser,
5570 # not just through cpp. "Syntax error" is here to catch this case.
5571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5572 /* end confdefs.h. */
5573 #include <limits.h>
5574 Syntax error
5575 _ACEOF
5576 if ac_fn_c_try_cpp "$LINENO"
5577 then :
5579 else $as_nop
5580 # Broken: fails on valid input.
5581 continue
5583 rm -f conftest.err conftest.i conftest.$ac_ext
5585 # OK, works on sane cases. Now check whether nonexistent headers
5586 # can be detected and how.
5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h. */
5589 #include <ac_nonexistent.h>
5590 _ACEOF
5591 if ac_fn_c_try_cpp "$LINENO"
5592 then :
5593 # Broken: success on invalid input.
5594 continue
5595 else $as_nop
5596 # Passes both tests.
5597 ac_preproc_ok=:
5598 break
5600 rm -f conftest.err conftest.i conftest.$ac_ext
5602 done
5603 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5604 rm -f conftest.i conftest.err conftest.$ac_ext
5605 if $ac_preproc_ok
5606 then :
5607 break
5610 done
5611 ac_cv_prog_CPP=$CPP
5614 CPP=$ac_cv_prog_CPP
5615 else
5616 ac_cv_prog_CPP=$CPP
5618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5619 printf "%s\n" "$CPP" >&6; }
5620 ac_preproc_ok=false
5621 for ac_c_preproc_warn_flag in '' yes
5623 # Use a header file that comes with gcc, so configuring glibc
5624 # with a fresh cross-compiler works.
5625 # On the NeXT, cc -E runs the code through the compiler's parser,
5626 # not just through cpp. "Syntax error" is here to catch this case.
5627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5629 #include <limits.h>
5630 Syntax error
5631 _ACEOF
5632 if ac_fn_c_try_cpp "$LINENO"
5633 then :
5635 else $as_nop
5636 # Broken: fails on valid input.
5637 continue
5639 rm -f conftest.err conftest.i conftest.$ac_ext
5641 # OK, works on sane cases. Now check whether nonexistent headers
5642 # can be detected and how.
5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644 /* end confdefs.h. */
5645 #include <ac_nonexistent.h>
5646 _ACEOF
5647 if ac_fn_c_try_cpp "$LINENO"
5648 then :
5649 # Broken: success on invalid input.
5650 continue
5651 else $as_nop
5652 # Passes both tests.
5653 ac_preproc_ok=:
5654 break
5656 rm -f conftest.err conftest.i conftest.$ac_ext
5658 done
5659 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5660 rm -f conftest.i conftest.err conftest.$ac_ext
5661 if $ac_preproc_ok
5662 then :
5664 else $as_nop
5665 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5666 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5667 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5668 See \`config.log' for more details" "$LINENO" 5; }
5671 ac_ext=c
5672 ac_cpp='$CPP $CPPFLAGS'
5673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
5678 printf %s "checking for additional special compiler flags... " >&6; }
5679 if test "$GCC" = yes
5680 then
5681 case "$host_cpu" in
5682 alpha) addcflags="-mieee" ;;
5683 esac
5685 if test "x$addcflags" != x
5686 then
5687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
5688 printf "%s\n" "$addcflags" >&6; }
5689 CFLAGS="$addcflags $CFLAGS"
5690 else
5691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
5692 printf "%s\n" "(none)" >&6; }
5694 LIB_EXT=.a
5695 STATIC_LIB_EXT=.a
5696 PROFILED_LIB_EXT=.a
5698 # Check whether --with-root-prefix was given.
5699 if test ${with_root_prefix+y}
5700 then :
5701 withval=$with_root_prefix; root_prefix=$withval
5702 else $as_nop
5703 root_prefix=NONE
5705 # Check whether --enable-maintainer-mode was given.
5706 if test ${enable_maintainer_mode+y}
5707 then :
5708 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
5709 then
5710 MAINTAINER_CMT=#
5711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
5712 printf "%s\n" "Disabling maintainer mode" >&6; }
5713 else
5714 MAINTAINER_CMT=
5715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
5716 printf "%s\n" "Enabling maintainer mode" >&6; }
5719 else $as_nop
5720 MAINTAINER_CMT=#
5721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
5722 printf "%s\n" "Disabling maintainer mode by default" >&6; }
5727 # Check whether --enable-symlink-install was given.
5728 if test ${enable_symlink_install+y}
5729 then :
5730 enableval=$enable_symlink_install; if test "$enableval" = "no"
5731 then
5732 LINK_INSTALL_FLAGS=-f
5733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
5734 printf "%s\n" "Disabling symlinks for install" >&6; }
5735 else
5736 LINK_INSTALL_FLAGS=-sf
5737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
5738 printf "%s\n" "Enabling symlinks for install" >&6; }
5741 else $as_nop
5742 LINK_INSTALL_FLAGS=-f
5743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
5744 printf "%s\n" "Disabling symlinks for install by default" >&6; }
5749 relative_symlink_defined=
5750 # Check whether --enable-relative-symlinks was given.
5751 if test ${enable_relative_symlinks+y}
5752 then :
5753 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
5754 then
5755 SYMLINK_RELATIVE=
5756 relative_symlink_defined=yes
5757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
5758 printf "%s\n" "Disabling relative symlinks for install" >&6; }
5759 else
5760 SYMLINK_RELATIVE=--relative
5761 relative_symlink_defined=yes
5762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
5763 printf "%s\n" "Enabling relative symlinks for install" >&6; }
5767 # Check whether --enable-symlink-relative-symlinks was given.
5768 if test ${enable_symlink_relative_symlinks+y}
5769 then :
5770 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
5771 then
5772 SYMLINK_RELATIVE=yes
5773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
5774 printf "%s\n" "Disabling relative symlinks for install" >&6; }
5775 else
5776 SYMLINK_RELATIVE=--relative
5777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
5778 printf "%s\n" "Enabling relative symlinks for install" >&6; }
5781 else $as_nop
5782 if test -z "$relative_symlink_defined"
5783 then
5784 SYMLINK_RELATIVE=
5785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
5786 printf "%s\n" "Disabling relative symlinks for install by default" >&6; }
5792 # Check whether --enable-symlink-build was given.
5793 if test ${enable_symlink_build+y}
5794 then :
5795 enableval=$enable_symlink_build; if test "$enableval" = "no"
5796 then
5797 LINK_BUILD_FLAGS=
5798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
5799 printf "%s\n" "Disabling symlinks for build" >&6; }
5800 else
5801 LINK_BUILD_FLAGS=-s
5802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
5803 printf "%s\n" "Enabling symlinks for build" >&6; }
5806 else $as_nop
5807 LINK_BUILD_FLAGS=
5808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
5809 printf "%s\n" "Disabling symlinks for build by default" >&6; }
5814 # Check whether --enable-verbose-makecmds was given.
5815 if test ${enable_verbose_makecmds+y}
5816 then :
5817 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
5818 then
5819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
5820 printf "%s\n" "Disabling verbose make commands" >&6; }
5821 E=@echo
5822 ES=echo
5824 else
5825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
5826 printf "%s\n" "Enabling verbose make commands" >&6; }
5827 E=@\\#
5828 ES=\\#
5832 else $as_nop
5833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
5834 printf "%s\n" "Disabling verbose make commands" >&6; }
5835 E=@echo
5836 ES=echo
5844 E2_PKG_CONFIG_STATIC=--static
5845 LDFLAG_DYNAMIC=
5846 PRIVATE_LIBS_CMT=
5847 # Check whether --enable-elf-shlibs was given.
5848 if test ${enable_elf_shlibs+y}
5849 then :
5850 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
5851 then
5852 ELF_CMT=#
5853 MAKEFILE_ELF=/dev/null
5854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
5855 printf "%s\n" "Disabling ELF shared libraries" >&6; }
5856 else
5857 E2_PKG_CONFIG_STATIC=
5858 ELF_CMT=
5859 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
5860 case "$host_os" in
5861 solaris2.*)
5862 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
5864 esac
5865 BINARY_TYPE=elfbin
5866 LIB_EXT=.so
5867 PRIVATE_LIBS_CMT=#
5868 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
5869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
5870 printf "%s\n" "Enabling ELF shared libraries" >&6; }
5873 else $as_nop
5874 MAKEFILE_ELF=/dev/null
5875 ELF_CMT=#
5876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
5877 printf "%s\n" "Disabling ELF shared libraries by default" >&6; }
5883 # Check whether --enable-bsd-shlibs was given.
5884 if test ${enable_bsd_shlibs+y}
5885 then :
5886 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
5887 then
5888 BSDLIB_CMT=#
5889 MAKEFILE_BSDLIB=/dev/null
5890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
5891 printf "%s\n" "Disabling BSD shared libraries" >&6; }
5892 else
5893 E2_PKG_CONFIG_STATIC=
5894 BSDLIB_CMT=
5895 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
5896 LIB_EXT=.so
5897 case "$host_os" in
5898 darwin*)
5899 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5900 LIB_EXT=.dylib
5902 esac
5903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5904 printf "%s\n" "Enabling BSD shared libraries" >&6; }
5907 else $as_nop
5908 MAKEFILE_BSDLIB=/dev/null
5909 BSDLIB_CMT=#
5910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5911 printf "%s\n" "Disabling BSD shared libraries by default" >&6; }
5917 # Check whether --enable-profile was given.
5918 if test ${enable_profile+y}
5919 then :
5920 enableval=$enable_profile; if test "$enableval" = "no"
5921 then
5922 PROFILE_CMT=#
5923 MAKEFILE_PROFILE=/dev/null
5924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5925 printf "%s\n" "Disabling profiling libraries" >&6; }
5926 else
5927 PROFILE_CMT=
5928 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5929 PROFILED_LIB_EXT=_p.a
5930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5931 printf "%s\n" "Building profiling libraries" >&6; }
5934 else $as_nop
5935 PROFILE_CMT=#
5936 MAKEFILE_PROFILE=/dev/null
5937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5938 printf "%s\n" "Disabling profiling libraries by default" >&6; }
5944 # Check whether --enable-gcov was given.
5945 if test ${enable_gcov+y}
5946 then :
5947 enableval=$enable_gcov; if test "$enableval" = "yes"
5948 then
5949 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5950 LDFLAGS="-fprofile-arcs -ftest-coverage"
5951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5952 printf "%s\n" "Enabling gcov support" >&6; }
5957 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5958 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5959 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5960 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5961 # Check whether --enable-hardening was given.
5962 if test ${enable_hardening+y}
5963 then :
5964 enableval=$enable_hardening; if test "$enableval" = "yes"
5965 then
5966 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=3 -fstack-protector-strong"
5967 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5968 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5969 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5970 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5971 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5972 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5973 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5975 printf "%s\n" "Enabling hardening support" >&6; }
5985 # Check whether --enable-jbd-debug was given.
5986 if test ${enable_jbd_debug+y}
5987 then :
5988 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5989 then
5990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5991 printf "%s\n" "Disabling journal debugging" >&6; }
5992 else
5994 printf "%s\n" "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5997 printf "%s\n" "Enabling journal debugging" >&6; }
6000 else $as_nop
6001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
6002 printf "%s\n" "Disabling journal debugging by default" >&6; }
6006 # Check whether --enable-blkid-debug was given.
6007 if test ${enable_blkid_debug+y}
6008 then :
6009 enableval=$enable_blkid_debug; if test "$enableval" = "no"
6010 then
6011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
6012 printf "%s\n" "Disabling blkid debugging" >&6; }
6013 else
6015 printf "%s\n" "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
6017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
6018 printf "%s\n" "Enabling blkid debugging" >&6; }
6021 else $as_nop
6022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
6023 printf "%s\n" "Disabling blkid debugging by default" >&6; }
6027 # Check whether --enable-testio-debug was given.
6028 if test ${enable_testio_debug+y}
6029 then :
6030 enableval=$enable_testio_debug;
6031 if test "$enableval" = "no"
6032 then
6033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
6034 printf "%s\n" "Disabling testio debugging" >&6; }
6035 TEST_IO_CMT="#"
6036 else
6037 TEST_IO_CMT=
6038 printf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
6040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
6041 printf "%s\n" "Enabling testio debugging" >&6; }
6044 else $as_nop
6045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
6046 printf "%s\n" "Enabling testio debugging by default" >&6; }
6047 printf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
6049 TEST_IO_CMT=
6054 # Check whether --enable-developer-features was given.
6055 if test ${enable_developer_features+y}
6056 then :
6057 enableval=$enable_developer_features;
6058 if test "$enableval" = "yes"
6059 then
6060 DEV_FEATURES_CMT=
6061 printf "%s\n" "#define CONFIG_DEVELOPER_FEATURES 1" >>confdefs.h
6063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ext4 developer features" >&5
6064 printf "%s\n" "Enabling ext4 developer features" >&6; }
6065 else
6066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features" >&5
6067 printf "%s\n" "Disabling ext4 developer features" >&6; }
6068 DEV_FEATURES_CMT="#"
6071 else $as_nop
6072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features by default" >&5
6073 printf "%s\n" "Disabling ext4 developer features by default" >&6; }
6074 DEV_FEATURES_CMT=
6086 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6087 if test -n "$ac_tool_prefix"; then
6088 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6089 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6091 printf %s "checking for $ac_word... " >&6; }
6092 if test ${ac_cv_path_PKG_CONFIG+y}
6093 then :
6094 printf %s "(cached) " >&6
6095 else $as_nop
6096 case $PKG_CONFIG in
6097 [\\/]* | ?:[\\/]*)
6098 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 for as_dir in $PATH
6104 IFS=$as_save_IFS
6105 case $as_dir in #(((
6106 '') as_dir=./ ;;
6107 */) ;;
6108 *) as_dir=$as_dir/ ;;
6109 esac
6110 for ac_exec_ext in '' $ac_executable_extensions; do
6111 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6112 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6114 break 2
6116 done
6117 done
6118 IFS=$as_save_IFS
6121 esac
6123 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6124 if test -n "$PKG_CONFIG"; then
6125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6126 printf "%s\n" "$PKG_CONFIG" >&6; }
6127 else
6128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6129 printf "%s\n" "no" >&6; }
6134 if test -z "$ac_cv_path_PKG_CONFIG"; then
6135 ac_pt_PKG_CONFIG=$PKG_CONFIG
6136 # Extract the first word of "pkg-config", so it can be a program name with args.
6137 set dummy pkg-config; ac_word=$2
6138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6139 printf %s "checking for $ac_word... " >&6; }
6140 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6141 then :
6142 printf %s "(cached) " >&6
6143 else $as_nop
6144 case $ac_pt_PKG_CONFIG in
6145 [\\/]* | ?:[\\/]*)
6146 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 for as_dir in $PATH
6152 IFS=$as_save_IFS
6153 case $as_dir in #(((
6154 '') as_dir=./ ;;
6155 */) ;;
6156 *) as_dir=$as_dir/ ;;
6157 esac
6158 for ac_exec_ext in '' $ac_executable_extensions; do
6159 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6160 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6162 break 2
6164 done
6165 done
6166 IFS=$as_save_IFS
6169 esac
6171 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6172 if test -n "$ac_pt_PKG_CONFIG"; then
6173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6174 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6175 else
6176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6177 printf "%s\n" "no" >&6; }
6180 if test "x$ac_pt_PKG_CONFIG" = x; then
6181 PKG_CONFIG=""
6182 else
6183 case $cross_compiling:$ac_tool_warned in
6184 yes:)
6185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6186 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6187 ac_tool_warned=yes ;;
6188 esac
6189 PKG_CONFIG=$ac_pt_PKG_CONFIG
6191 else
6192 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6196 if test -n "$PKG_CONFIG"; then
6197 _pkg_min_version=0.9.0
6198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6199 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6200 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6202 printf "%s\n" "yes" >&6; }
6203 else
6204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6205 printf "%s\n" "no" >&6; }
6206 PKG_CONFIG=""
6209 LIBUUID=
6210 DEPLIBUUID=
6211 STATIC_LIBUUID=
6212 DEPSTATIC_LIBUUID=
6213 PROFILED_LIBUUID=
6214 DEPPROFILED_LIBUUID=
6215 UUID_CMT=
6216 # Check whether --enable-libuuid was given.
6217 if test ${enable_libuuid+y}
6218 then :
6219 enableval=$enable_libuuid; if test "$enableval" = "no"
6220 then
6221 if test -z "$PKG_CONFIG"; then
6222 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
6225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
6226 printf %s "checking for uuid_generate in -luuid... " >&6; }
6227 if test ${ac_cv_lib_uuid_uuid_generate+y}
6228 then :
6229 printf %s "(cached) " >&6
6230 else $as_nop
6231 ac_check_lib_save_LIBS=$LIBS
6232 LIBS="-luuid $LIBS"
6233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6234 /* end confdefs.h. */
6236 /* Override any GCC internal prototype to avoid an error.
6237 Use char because int might match the return type of a GCC
6238 builtin and then its argument prototype would still apply. */
6239 char uuid_generate ();
6241 main (void)
6243 return uuid_generate ();
6245 return 0;
6247 _ACEOF
6248 if ac_fn_c_try_link "$LINENO"
6249 then :
6250 ac_cv_lib_uuid_uuid_generate=yes
6251 else $as_nop
6252 ac_cv_lib_uuid_uuid_generate=no
6254 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6255 conftest$ac_exeext conftest.$ac_ext
6256 LIBS=$ac_check_lib_save_LIBS
6258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
6259 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
6260 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
6261 then :
6262 LIBUUID=`$PKG_CONFIG --libs uuid`;
6263 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
6264 else $as_nop
6265 as_fn_error $? "external uuid library not found" "$LINENO" 5
6268 PROFILED_LIBUUID=$LIBUUID
6269 UUID_CMT=#
6270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
6271 printf "%s\n" "Disabling private uuid library" >&6; }
6272 else
6273 LIBUUID='$(LIB)/libuuid'$LIB_EXT
6274 DEPLIBUUID=$LIBUUID
6275 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
6276 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
6277 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
6278 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
6279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
6280 printf "%s\n" "Enabling private uuid library" >&6; }
6283 else $as_nop
6284 if test -n "$PKG_CONFIG"; then
6285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
6286 printf %s "checking for uuid_generate in -luuid... " >&6; }
6287 if test ${ac_cv_lib_uuid_uuid_generate+y}
6288 then :
6289 printf %s "(cached) " >&6
6290 else $as_nop
6291 ac_check_lib_save_LIBS=$LIBS
6292 LIBS="-luuid $LIBS"
6293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6294 /* end confdefs.h. */
6296 /* Override any GCC internal prototype to avoid an error.
6297 Use char because int might match the return type of a GCC
6298 builtin and then its argument prototype would still apply. */
6299 char uuid_generate ();
6301 main (void)
6303 return uuid_generate ();
6305 return 0;
6307 _ACEOF
6308 if ac_fn_c_try_link "$LINENO"
6309 then :
6310 ac_cv_lib_uuid_uuid_generate=yes
6311 else $as_nop
6312 ac_cv_lib_uuid_uuid_generate=no
6314 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6315 conftest$ac_exeext conftest.$ac_ext
6316 LIBS=$ac_check_lib_save_LIBS
6318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
6319 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
6320 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
6321 then :
6322 LIBUUID=`$PKG_CONFIG --libs uuid`;
6323 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
6327 if test -n "$LIBUUID"; then
6328 PROFILED_LIBUUID=$LIBUUID
6329 UUID_CMT=#
6330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
6331 printf "%s\n" "Using system uuid by default" >&6; }
6332 else
6333 LIBUUID='$(LIB)/libuuid'$LIB_EXT
6334 DEPLIBUUID=$LIBUUID
6335 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
6336 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
6337 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
6338 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
6339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
6340 printf "%s\n" "Enabling private uuid library by default" >&6; }
6359 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6360 if test -n "$ac_tool_prefix"; then
6361 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6362 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6364 printf %s "checking for $ac_word... " >&6; }
6365 if test ${ac_cv_path_PKG_CONFIG+y}
6366 then :
6367 printf %s "(cached) " >&6
6368 else $as_nop
6369 case $PKG_CONFIG in
6370 [\\/]* | ?:[\\/]*)
6371 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 for as_dir in $PATH
6377 IFS=$as_save_IFS
6378 case $as_dir in #(((
6379 '') as_dir=./ ;;
6380 */) ;;
6381 *) as_dir=$as_dir/ ;;
6382 esac
6383 for ac_exec_ext in '' $ac_executable_extensions; do
6384 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6385 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6387 break 2
6389 done
6390 done
6391 IFS=$as_save_IFS
6394 esac
6396 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6397 if test -n "$PKG_CONFIG"; then
6398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6399 printf "%s\n" "$PKG_CONFIG" >&6; }
6400 else
6401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6402 printf "%s\n" "no" >&6; }
6407 if test -z "$ac_cv_path_PKG_CONFIG"; then
6408 ac_pt_PKG_CONFIG=$PKG_CONFIG
6409 # Extract the first word of "pkg-config", so it can be a program name with args.
6410 set dummy pkg-config; ac_word=$2
6411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6412 printf %s "checking for $ac_word... " >&6; }
6413 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6414 then :
6415 printf %s "(cached) " >&6
6416 else $as_nop
6417 case $ac_pt_PKG_CONFIG in
6418 [\\/]* | ?:[\\/]*)
6419 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423 for as_dir in $PATH
6425 IFS=$as_save_IFS
6426 case $as_dir in #(((
6427 '') as_dir=./ ;;
6428 */) ;;
6429 *) as_dir=$as_dir/ ;;
6430 esac
6431 for ac_exec_ext in '' $ac_executable_extensions; do
6432 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6433 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6435 break 2
6437 done
6438 done
6439 IFS=$as_save_IFS
6442 esac
6444 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6445 if test -n "$ac_pt_PKG_CONFIG"; then
6446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6447 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6448 else
6449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6450 printf "%s\n" "no" >&6; }
6453 if test "x$ac_pt_PKG_CONFIG" = x; then
6454 PKG_CONFIG=""
6455 else
6456 case $cross_compiling:$ac_tool_warned in
6457 yes:)
6458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6459 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6460 ac_tool_warned=yes ;;
6461 esac
6462 PKG_CONFIG=$ac_pt_PKG_CONFIG
6464 else
6465 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6469 if test -n "$PKG_CONFIG"; then
6470 _pkg_min_version=0.9.0
6471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6472 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6473 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6475 printf "%s\n" "yes" >&6; }
6476 else
6477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6478 printf "%s\n" "no" >&6; }
6479 PKG_CONFIG=""
6482 LIBBLKID=
6483 DEPLIBBLKID=
6484 STATIC_LIBBLKID=
6485 DEPSTATIC_LIBBLKID=
6486 PROFILED_LIBBLKID=
6487 DEPPROFILED_LIBBLKID=
6488 BLKID_CMT=
6490 # Check whether --enable-libblkid was given.
6491 if test ${enable_libblkid+y}
6492 then :
6493 enableval=$enable_libblkid; if test "$enableval" = "no"
6494 then
6495 if test -z "$PKG_CONFIG"; then
6496 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
6499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
6500 printf %s "checking for blkid_get_cache in -lblkid... " >&6; }
6501 if test ${ac_cv_lib_blkid_blkid_get_cache+y}
6502 then :
6503 printf %s "(cached) " >&6
6504 else $as_nop
6505 ac_check_lib_save_LIBS=$LIBS
6506 LIBS="-lblkid -luuid $LIBS"
6507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508 /* end confdefs.h. */
6510 /* Override any GCC internal prototype to avoid an error.
6511 Use char because int might match the return type of a GCC
6512 builtin and then its argument prototype would still apply. */
6513 char blkid_get_cache ();
6515 main (void)
6517 return blkid_get_cache ();
6519 return 0;
6521 _ACEOF
6522 if ac_fn_c_try_link "$LINENO"
6523 then :
6524 ac_cv_lib_blkid_blkid_get_cache=yes
6525 else $as_nop
6526 ac_cv_lib_blkid_blkid_get_cache=no
6528 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6529 conftest$ac_exeext conftest.$ac_ext
6530 LIBS=$ac_check_lib_save_LIBS
6532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
6533 printf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
6534 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
6535 then :
6536 LIBBLKID=`$PKG_CONFIG --libs blkid`;
6537 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
6538 else $as_nop
6539 as_fn_error $? "external blkid library not found" "$LINENO" 5
6542 BLKID_CMT=#
6543 PROFILED_LIBBLKID=$LIBBLKID
6544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
6545 printf "%s\n" "Disabling private blkid library" >&6; }
6546 else
6547 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
6548 DEPLIBBLKID=$LIBBLKID
6549 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
6550 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
6551 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
6552 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
6553 printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
6555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
6556 printf "%s\n" "Enabling private blkid library" >&6; }
6559 else $as_nop
6560 if test -n "$PKG_CONFIG"; then
6561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
6562 printf %s "checking for blkid_get_cache in -lblkid... " >&6; }
6563 if test ${ac_cv_lib_blkid_blkid_get_cache+y}
6564 then :
6565 printf %s "(cached) " >&6
6566 else $as_nop
6567 ac_check_lib_save_LIBS=$LIBS
6568 LIBS="-lblkid $LIBS"
6569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6570 /* end confdefs.h. */
6572 /* Override any GCC internal prototype to avoid an error.
6573 Use char because int might match the return type of a GCC
6574 builtin and then its argument prototype would still apply. */
6575 char blkid_get_cache ();
6577 main (void)
6579 return blkid_get_cache ();
6581 return 0;
6583 _ACEOF
6584 if ac_fn_c_try_link "$LINENO"
6585 then :
6586 ac_cv_lib_blkid_blkid_get_cache=yes
6587 else $as_nop
6588 ac_cv_lib_blkid_blkid_get_cache=no
6590 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6591 conftest$ac_exeext conftest.$ac_ext
6592 LIBS=$ac_check_lib_save_LIBS
6594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
6595 printf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
6596 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
6597 then :
6598 LIBBLKID=`$PKG_CONFIG --libs blkid`;
6599 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
6603 if test -n "$LIBBLKID"; then
6604 BLKID_CMT=#
6605 PROFILED_LIBBLKID=$LIBBLKID
6606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
6607 printf "%s\n" "Using system blkid library by default" >&6; }
6608 else
6609 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
6610 DEPLIBBLKID=$LIBBLKID
6611 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
6612 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
6613 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
6614 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
6615 printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
6617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
6618 printf "%s\n" "Enabling private blkid library by default" >&6; }
6630 ALL_CMT=
6631 SUBSET_CMT=
6632 # Check whether --enable-subset was given.
6633 if test ${enable_subset+y}
6634 then :
6635 enableval=$enable_subset; if test "$enableval" = "no"
6636 then
6637 SUBSET_CMT=#
6638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5
6639 printf "%s\n" "Disabling subset-only build" >&6; }
6640 else
6641 ALL_CMT=#
6642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5
6643 printf "%s\n" "Enabling subset-only-build" >&6; }
6651 # Check whether --enable-backtrace was given.
6652 if test ${enable_backtrace+y}
6653 then :
6654 enableval=$enable_backtrace; if test "$enableval" = "no"
6655 then
6656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
6657 printf "%s\n" "Disabling use of backtrace" >&6; }
6658 printf "%s\n" "#define DISABLE_BACKTRACE 1" >>confdefs.h
6660 else
6661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
6662 printf "%s\n" "Enabling use of backtrace" >&6; }
6665 else $as_nop
6666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
6667 printf "%s\n" "Enabling use of backtrace by default" >&6; }
6671 # Check whether --enable-debugfs was given.
6672 if test ${enable_debugfs+y}
6673 then :
6674 enableval=$enable_debugfs; if test "$enableval" = "no"
6675 then
6676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
6677 printf "%s\n" "Disabling debugfs support" >&6; }
6678 DEBUGFS_CMT="#"
6679 else
6680 DEBUGFS_CMT=
6681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
6682 printf "%s\n" "Enabling debugfs support" >&6; }
6685 else $as_nop
6686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
6687 printf "%s\n" "Enabling debugfs support by default" >&6; }
6688 DEBUGFS_CMT=
6693 # Check whether --enable-imager was given.
6694 if test ${enable_imager+y}
6695 then :
6696 enableval=$enable_imager; if test "$enableval" = "no"
6697 then
6698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
6699 printf "%s\n" "Disabling e2image support" >&6; }
6700 IMAGER_CMT="#"
6701 else
6702 IMAGER_CMT=
6703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
6704 printf "%s\n" "Enabling e2image support" >&6; }
6707 else $as_nop
6708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
6709 printf "%s\n" "Enabling e2image support by default" >&6; }
6710 IMAGER_CMT=
6715 # Check whether --enable-resizer was given.
6716 if test ${enable_resizer+y}
6717 then :
6718 enableval=$enable_resizer; if test "$enableval" = "no"
6719 then
6720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
6721 printf "%s\n" "Disabling e2resize support" >&6; }
6722 RESIZER_CMT="#"
6723 else
6724 RESIZER_CMT=
6725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
6726 printf "%s\n" "Enabling e2resize support" >&6; }
6729 else $as_nop
6730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
6731 printf "%s\n" "Enabling e2resize support by default" >&6; }
6732 RESIZER_CMT=
6737 # Check whether --enable-defrag was given.
6738 if test ${enable_defrag+y}
6739 then :
6740 enableval=$enable_defrag; if test "$enableval" = "no"
6741 then
6742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
6743 printf "%s\n" "Disabling e4defrag support" >&6; }
6744 DEFRAG_CMT="#"
6745 else
6746 DEFRAG_CMT=
6747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
6748 printf "%s\n" "Enabling e4defrag support" >&6; }
6751 else $as_nop
6752 if test -z "$WITH_DIET_LIBC"
6753 then
6754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
6755 printf "%s\n" "Enabling e4defrag support by default" >&6; }
6756 DEFRAG_CMT=
6757 else
6758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
6759 printf "%s\n" "Disabling e4defrag support by default" >&6; }
6760 DEFRAG_CMT="#"
6766 # Check whether --enable-fsck was given.
6767 if test ${enable_fsck+y}
6768 then :
6769 enableval=$enable_fsck; if test "$enableval" = "no"
6770 then
6771 FSCK_PROG='' FSCK_MAN=''
6772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
6773 printf "%s\n" "Not building fsck wrapper" >&6; }
6774 else
6775 FSCK_PROG=fsck FSCK_MAN=fsck.8
6776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
6777 printf "%s\n" "Building fsck wrapper" >&6; }
6780 else $as_nop
6781 case "$host_os" in
6782 gnu*)
6783 FSCK_PROG='' FSCK_MAN=''
6784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
6785 printf "%s\n" "Not building fsck wrapper by default" >&6; }
6788 FSCK_PROG=fsck FSCK_MAN=fsck.8
6789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
6790 printf "%s\n" "Building fsck wrapper by default" >&6; }
6791 esac
6797 # Check whether --enable-e2initrd-helper was given.
6798 if test ${enable_e2initrd_helper+y}
6799 then :
6800 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
6801 then
6802 E2INITRD_PROG='' E2INITRD_MAN=''
6803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
6804 printf "%s\n" "Not building e2initrd helper" >&6; }
6805 else
6806 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
6807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
6808 printf "%s\n" "Building e2initrd helper" >&6; }
6811 else $as_nop
6812 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
6813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
6814 printf "%s\n" "Building e2initrd helper by default" >&6; }
6820 # Check whether --enable-tls was given.
6821 if test ${enable_tls+y}
6822 then :
6823 enableval=$enable_tls; if test "$enableval" = "no"
6824 then
6825 try_tls=""
6826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
6827 printf "%s\n" "Disabling thread local support" >&6; }
6828 else
6829 try_tls="yes"
6830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
6831 printf "%s\n" "Enabling thread local support" >&6; }
6834 else $as_nop
6835 if test -n "$WITH_DIET_LIBC"
6836 then
6837 try_tls=""
6838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
6839 printf "%s\n" "Diet libc does not support thread local support" >&6; }
6840 else
6841 try_tls="yes"
6842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
6843 printf "%s\n" "Try using thread local support by default" >&6; }
6848 if test "$try_tls" = "yes"
6849 then
6851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
6852 printf %s "checking for thread local storage (TLS) class... " >&6; }
6853 if test ${ac_cv_tls+y}
6854 then :
6855 printf %s "(cached) " >&6
6856 else $as_nop
6858 ax_tls_keywords="__thread __declspec(thread) none"
6859 for ax_tls_keyword in $ax_tls_keywords; do
6860 case $ax_tls_keyword in
6861 none) ac_cv_tls=none ; break ;;
6863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864 /* end confdefs.h. */
6865 #include <stdlib.h>
6866 static void
6867 foo(void) {
6868 static $ax_tls_keyword int bar;
6869 exit(1);
6872 main (void)
6876 return 0;
6878 _ACEOF
6879 if ac_fn_c_try_compile "$LINENO"
6880 then :
6881 ac_cv_tls=$ax_tls_keyword ; break
6882 else $as_nop
6883 ac_cv_tls=none
6886 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6887 esac
6888 done
6893 if test "$ac_cv_tls" != "none"; then
6895 printf "%s\n" "#define TLS $ac_cv_tls" >>confdefs.h
6898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
6899 printf "%s\n" "$ac_cv_tls" >&6; }
6903 # Check whether --with-pthread was given.
6904 if test ${with_pthread+y}
6905 then :
6906 withval=$with_pthread; if test "$withval" = "no"
6907 then
6908 try_pthread=""
6909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling pthread support" >&5
6910 printf "%s\n" "Disabling pthread support" >&6; }
6911 else
6912 try_pthread="yes"
6913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Testing for pthread support" >&5
6914 printf "%s\n" "Testing for pthread support" >&6; }
6917 else $as_nop
6918 try_pthread="yes"
6919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try testing for pthread support by default" >&5
6920 printf "%s\n" "Try testing for pthread support by default" >&6; }
6924 if test "$try_pthread" = "yes"
6925 then
6926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6927 printf %s "checking for a sed that does not truncate output... " >&6; }
6928 if test ${ac_cv_path_SED+y}
6929 then :
6930 printf %s "(cached) " >&6
6931 else $as_nop
6932 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6933 for ac_i in 1 2 3 4 5 6 7; do
6934 ac_script="$ac_script$as_nl$ac_script"
6935 done
6936 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6937 { ac_script=; unset ac_script;}
6938 if test -z "$SED"; then
6939 ac_path_SED_found=false
6940 # Loop through the user's path and test for each of PROGNAME-LIST
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 for as_dir in $PATH
6944 IFS=$as_save_IFS
6945 case $as_dir in #(((
6946 '') as_dir=./ ;;
6947 */) ;;
6948 *) as_dir=$as_dir/ ;;
6949 esac
6950 for ac_prog in sed gsed
6952 for ac_exec_ext in '' $ac_executable_extensions; do
6953 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6954 as_fn_executable_p "$ac_path_SED" || continue
6955 # Check for GNU ac_path_SED and select it if it is found.
6956 # Check for GNU $ac_path_SED
6957 case `"$ac_path_SED" --version 2>&1` in
6958 *GNU*)
6959 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6961 ac_count=0
6962 printf %s 0123456789 >"conftest.in"
6963 while :
6965 cat "conftest.in" "conftest.in" >"conftest.tmp"
6966 mv "conftest.tmp" "conftest.in"
6967 cp "conftest.in" "conftest.nl"
6968 printf "%s\n" '' >> "conftest.nl"
6969 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6971 as_fn_arith $ac_count + 1 && ac_count=$as_val
6972 if test $ac_count -gt ${ac_path_SED_max-0}; then
6973 # Best one so far, save it but keep looking for a better one
6974 ac_cv_path_SED="$ac_path_SED"
6975 ac_path_SED_max=$ac_count
6977 # 10*(2^10) chars as input seems more than enough
6978 test $ac_count -gt 10 && break
6979 done
6980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6981 esac
6983 $ac_path_SED_found && break 3
6984 done
6985 done
6986 done
6987 IFS=$as_save_IFS
6988 if test -z "$ac_cv_path_SED"; then
6989 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6991 else
6992 ac_cv_path_SED=$SED
6996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6997 printf "%s\n" "$ac_cv_path_SED" >&6; }
6998 SED="$ac_cv_path_SED"
6999 rm -f conftest.sed
7002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7003 printf %s "checking for grep that handles long lines and -e... " >&6; }
7004 if test ${ac_cv_path_GREP+y}
7005 then :
7006 printf %s "(cached) " >&6
7007 else $as_nop
7008 if test -z "$GREP"; then
7009 ac_path_GREP_found=false
7010 # Loop through the user's path and test for each of PROGNAME-LIST
7011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7014 IFS=$as_save_IFS
7015 case $as_dir in #(((
7016 '') as_dir=./ ;;
7017 */) ;;
7018 *) as_dir=$as_dir/ ;;
7019 esac
7020 for ac_prog in grep ggrep
7022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7024 as_fn_executable_p "$ac_path_GREP" || continue
7025 # Check for GNU ac_path_GREP and select it if it is found.
7026 # Check for GNU $ac_path_GREP
7027 case `"$ac_path_GREP" --version 2>&1` in
7028 *GNU*)
7029 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7031 ac_count=0
7032 printf %s 0123456789 >"conftest.in"
7033 while :
7035 cat "conftest.in" "conftest.in" >"conftest.tmp"
7036 mv "conftest.tmp" "conftest.in"
7037 cp "conftest.in" "conftest.nl"
7038 printf "%s\n" 'GREP' >> "conftest.nl"
7039 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7040 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7041 as_fn_arith $ac_count + 1 && ac_count=$as_val
7042 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7043 # Best one so far, save it but keep looking for a better one
7044 ac_cv_path_GREP="$ac_path_GREP"
7045 ac_path_GREP_max=$ac_count
7047 # 10*(2^10) chars as input seems more than enough
7048 test $ac_count -gt 10 && break
7049 done
7050 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7051 esac
7053 $ac_path_GREP_found && break 3
7054 done
7055 done
7056 done
7057 IFS=$as_save_IFS
7058 if test -z "$ac_cv_path_GREP"; then
7059 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7061 else
7062 ac_cv_path_GREP=$GREP
7066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7067 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7068 GREP="$ac_cv_path_GREP"
7071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7072 printf %s "checking for egrep... " >&6; }
7073 if test ${ac_cv_path_EGREP+y}
7074 then :
7075 printf %s "(cached) " >&6
7076 else $as_nop
7077 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7078 then ac_cv_path_EGREP="$GREP -E"
7079 else
7080 if test -z "$EGREP"; then
7081 ac_path_EGREP_found=false
7082 # Loop through the user's path and test for each of PROGNAME-LIST
7083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7086 IFS=$as_save_IFS
7087 case $as_dir in #(((
7088 '') as_dir=./ ;;
7089 */) ;;
7090 *) as_dir=$as_dir/ ;;
7091 esac
7092 for ac_prog in egrep
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7096 as_fn_executable_p "$ac_path_EGREP" || continue
7097 # Check for GNU ac_path_EGREP and select it if it is found.
7098 # Check for GNU $ac_path_EGREP
7099 case `"$ac_path_EGREP" --version 2>&1` in
7100 *GNU*)
7101 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7103 ac_count=0
7104 printf %s 0123456789 >"conftest.in"
7105 while :
7107 cat "conftest.in" "conftest.in" >"conftest.tmp"
7108 mv "conftest.tmp" "conftest.in"
7109 cp "conftest.in" "conftest.nl"
7110 printf "%s\n" 'EGREP' >> "conftest.nl"
7111 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7112 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7113 as_fn_arith $ac_count + 1 && ac_count=$as_val
7114 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7115 # Best one so far, save it but keep looking for a better one
7116 ac_cv_path_EGREP="$ac_path_EGREP"
7117 ac_path_EGREP_max=$ac_count
7119 # 10*(2^10) chars as input seems more than enough
7120 test $ac_count -gt 10 && break
7121 done
7122 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7123 esac
7125 $ac_path_EGREP_found && break 3
7126 done
7127 done
7128 done
7129 IFS=$as_save_IFS
7130 if test -z "$ac_cv_path_EGREP"; then
7131 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7133 else
7134 ac_cv_path_EGREP=$EGREP
7139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7140 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7141 EGREP="$ac_cv_path_EGREP"
7148 ac_ext=c
7149 ac_cpp='$CPP $CPPFLAGS'
7150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7154 ax_pthread_ok=no
7156 # We used to check for pthread.h first, but this fails if pthread.h
7157 # requires special compiler flags (e.g. on Tru64 or Sequent).
7158 # It gets checked for in the link test anyway.
7160 # First of all, check if the user has set any of the PTHREAD_LIBS,
7161 # etcetera environment variables, and if threads linking works using
7162 # them:
7163 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
7164 ax_pthread_save_CC="$CC"
7165 ax_pthread_save_CFLAGS="$CFLAGS"
7166 ax_pthread_save_LIBS="$LIBS"
7167 if test "x$PTHREAD_CC" != "x"
7168 then :
7169 CC="$PTHREAD_CC"
7171 if test "x$PTHREAD_CXX" != "x"
7172 then :
7173 CXX="$PTHREAD_CXX"
7175 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7176 LIBS="$PTHREAD_LIBS $LIBS"
7177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
7178 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h. */
7182 /* Override any GCC internal prototype to avoid an error.
7183 Use char because int might match the return type of a GCC
7184 builtin and then its argument prototype would still apply. */
7185 char pthread_join ();
7187 main (void)
7189 return pthread_join ();
7191 return 0;
7193 _ACEOF
7194 if ac_fn_c_try_link "$LINENO"
7195 then :
7196 ax_pthread_ok=yes
7198 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7199 conftest$ac_exeext conftest.$ac_ext
7200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7201 printf "%s\n" "$ax_pthread_ok" >&6; }
7202 if test "x$ax_pthread_ok" = "xno"; then
7203 PTHREAD_LIBS=""
7204 PTHREAD_CFLAGS=""
7206 CC="$ax_pthread_save_CC"
7207 CFLAGS="$ax_pthread_save_CFLAGS"
7208 LIBS="$ax_pthread_save_LIBS"
7211 # We must check for the threads library under a number of different
7212 # names; the ordering is very important because some systems
7213 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7214 # libraries is broken (non-POSIX).
7216 # Create a list of thread flags to try. Items with a "," contain both
7217 # C compiler flags (before ",") and linker flags (after ","). Other items
7218 # starting with a "-" are C compiler flags, and remaining items are
7219 # library names, except for "none" which indicates that we try without
7220 # any flags at all, and "pthread-config" which is a program returning
7221 # the flags for the Pth emulation library.
7223 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7225 # The ordering *is* (sometimes) important. Some notes on the
7226 # individual items follow:
7228 # pthreads: AIX (must check this before -lpthread)
7229 # none: in case threads are in libc; should be tried before -Kthread and
7230 # other compiler flags to prevent continual compiler warnings
7231 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7232 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
7233 # (Note: HP C rejects this with "bad form for `-t' option")
7234 # -pthreads: Solaris/gcc (Note: HP C also rejects)
7235 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7236 # doesn't hurt to check since this sometimes defines pthreads and
7237 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
7238 # is present but should not be used directly; and before -mthreads,
7239 # because the compiler interprets this as "-mt" + "-hreads")
7240 # -mthreads: Mingw32/gcc, Lynx/gcc
7241 # pthread: Linux, etcetera
7242 # --thread-safe: KAI C++
7243 # pthread-config: use pthread-config program (for GNU Pth library)
7245 case $host_os in
7247 freebsd*)
7249 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7250 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7252 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
7255 hpux*)
7257 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
7258 # multi-threading and also sets -lpthread."
7260 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
7263 openedition*)
7265 # IBM z/OS requires a feature-test macro to be defined in order to
7266 # enable POSIX threads at all, so give the user a hint if this is
7267 # not set. (We don't define these ourselves, as they can affect
7268 # other portions of the system API in unpredictable ways.)
7270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271 /* end confdefs.h. */
7273 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
7274 AX_PTHREAD_ZOS_MISSING
7275 # endif
7277 _ACEOF
7278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7279 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
7280 then :
7281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
7282 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
7284 rm -rf conftest*
7288 solaris*)
7290 # On Solaris (at least, for some versions), libc contains stubbed
7291 # (non-functional) versions of the pthreads routines, so link-based
7292 # tests will erroneously succeed. (N.B.: The stubs are missing
7293 # pthread_cleanup_push, or rather a function called by this macro,
7294 # so we could check for that, but who knows whether they'll stub
7295 # that too in a future libc.) So we'll check first for the
7296 # standard Solaris way of linking pthreads (-mt -lpthread).
7298 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
7300 esac
7302 # Are we compiling with Clang?
7304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
7305 printf %s "checking whether $CC is Clang... " >&6; }
7306 if test ${ax_cv_PTHREAD_CLANG+y}
7307 then :
7308 printf %s "(cached) " >&6
7309 else $as_nop
7310 ax_cv_PTHREAD_CLANG=no
7311 # Note that Autoconf sets GCC=yes for Clang as well as GCC
7312 if test "x$GCC" = "xyes"; then
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7315 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
7316 # if defined(__clang__) && defined(__llvm__)
7317 AX_PTHREAD_CC_IS_CLANG
7318 # endif
7320 _ACEOF
7321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7322 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
7323 then :
7324 ax_cv_PTHREAD_CLANG=yes
7326 rm -rf conftest*
7331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
7332 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
7333 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
7336 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
7338 # Note that for GCC and Clang -pthread generally implies -lpthread,
7339 # except when -nostdlib is passed.
7340 # This is problematic using libtool to build C++ shared libraries with pthread:
7341 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
7342 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
7343 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
7344 # To solve this, first try -pthread together with -lpthread for GCC
7346 if test "x$GCC" = "xyes"
7347 then :
7348 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
7351 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
7353 if test "x$ax_pthread_clang" = "xyes"
7354 then :
7355 ax_pthread_flags="-pthread,-lpthread -pthread"
7359 # The presence of a feature test macro requesting re-entrant function
7360 # definitions is, on some systems, a strong hint that pthreads support is
7361 # correctly enabled
7363 case $host_os in
7364 darwin* | hpux* | linux* | osf* | solaris*)
7365 ax_pthread_check_macro="_REENTRANT"
7368 aix*)
7369 ax_pthread_check_macro="_THREAD_SAFE"
7373 ax_pthread_check_macro="--"
7375 esac
7376 if test "x$ax_pthread_check_macro" = "x--"
7377 then :
7378 ax_pthread_check_cond=0
7379 else $as_nop
7380 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
7384 if test "x$ax_pthread_ok" = "xno"; then
7385 for ax_pthread_try_flag in $ax_pthread_flags; do
7387 case $ax_pthread_try_flag in
7388 none)
7389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
7390 printf %s "checking whether pthreads work without any flags... " >&6; }
7393 *,*)
7394 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
7395 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
7396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
7397 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
7401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
7402 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
7403 PTHREAD_CFLAGS="$ax_pthread_try_flag"
7406 pthread-config)
7407 # Extract the first word of "pthread-config", so it can be a program name with args.
7408 set dummy pthread-config; ac_word=$2
7409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7410 printf %s "checking for $ac_word... " >&6; }
7411 if test ${ac_cv_prog_ax_pthread_config+y}
7412 then :
7413 printf %s "(cached) " >&6
7414 else $as_nop
7415 if test -n "$ax_pthread_config"; then
7416 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
7417 else
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419 for as_dir in $PATH
7421 IFS=$as_save_IFS
7422 case $as_dir in #(((
7423 '') as_dir=./ ;;
7424 */) ;;
7425 *) as_dir=$as_dir/ ;;
7426 esac
7427 for ac_exec_ext in '' $ac_executable_extensions; do
7428 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7429 ac_cv_prog_ax_pthread_config="yes"
7430 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7431 break 2
7433 done
7434 done
7435 IFS=$as_save_IFS
7437 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
7440 ax_pthread_config=$ac_cv_prog_ax_pthread_config
7441 if test -n "$ax_pthread_config"; then
7442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
7443 printf "%s\n" "$ax_pthread_config" >&6; }
7444 else
7445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446 printf "%s\n" "no" >&6; }
7450 if test "x$ax_pthread_config" = "xno"
7451 then :
7452 continue
7454 PTHREAD_CFLAGS="`pthread-config --cflags`"
7455 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
7460 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
7461 PTHREAD_LIBS="-l$ax_pthread_try_flag"
7463 esac
7465 ax_pthread_save_CFLAGS="$CFLAGS"
7466 ax_pthread_save_LIBS="$LIBS"
7467 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7468 LIBS="$PTHREAD_LIBS $LIBS"
7470 # Check for various functions. We must include pthread.h,
7471 # since some functions may be macros. (On the Sequent, we
7472 # need a special flag -Kthread to make this header compile.)
7473 # We check for pthread_join because it is in -lpthread on IRIX
7474 # while pthread_create is in libc. We check for pthread_attr_init
7475 # due to DEC craziness with -lpthreads. We check for
7476 # pthread_cleanup_push because it is one of the few pthread
7477 # functions on Solaris that doesn't have a non-functional libc stub.
7478 # We try pthread_create on general principles.
7480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481 /* end confdefs.h. */
7482 #include <pthread.h>
7483 # if $ax_pthread_check_cond
7484 # error "$ax_pthread_check_macro must be defined"
7485 # endif
7486 static void *some_global = NULL;
7487 static void routine(void *a)
7489 /* To avoid any unused-parameter or
7490 unused-but-set-parameter warning. */
7491 some_global = a;
7493 static void *start_routine(void *a) { return a; }
7495 main (void)
7497 pthread_t th; pthread_attr_t attr;
7498 pthread_create(&th, 0, start_routine, 0);
7499 pthread_join(th, 0);
7500 pthread_attr_init(&attr);
7501 pthread_cleanup_push(routine, 0);
7502 pthread_cleanup_pop(0) /* ; */
7504 return 0;
7506 _ACEOF
7507 if ac_fn_c_try_link "$LINENO"
7508 then :
7509 ax_pthread_ok=yes
7511 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7512 conftest$ac_exeext conftest.$ac_ext
7514 CFLAGS="$ax_pthread_save_CFLAGS"
7515 LIBS="$ax_pthread_save_LIBS"
7517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7518 printf "%s\n" "$ax_pthread_ok" >&6; }
7519 if test "x$ax_pthread_ok" = "xyes"
7520 then :
7521 break
7524 PTHREAD_LIBS=""
7525 PTHREAD_CFLAGS=""
7526 done
7530 # Clang needs special handling, because older versions handle the -pthread
7531 # option in a rather... idiosyncratic way
7533 if test "x$ax_pthread_clang" = "xyes"; then
7535 # Clang takes -pthread; it has never supported any other flag
7537 # (Note 1: This will need to be revisited if a system that Clang
7538 # supports has POSIX threads in a separate library. This tends not
7539 # to be the way of modern systems, but it's conceivable.)
7541 # (Note 2: On some systems, notably Darwin, -pthread is not needed
7542 # to get POSIX threads support; the API is always present and
7543 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
7544 # -pthread does define _REENTRANT, and while the Darwin headers
7545 # ignore this macro, third-party headers might not.)
7547 # However, older versions of Clang make a point of warning the user
7548 # that, in an invocation where only linking and no compilation is
7549 # taking place, the -pthread option has no effect ("argument unused
7550 # during compilation"). They expect -pthread to be passed in only
7551 # when source code is being compiled.
7553 # Problem is, this is at odds with the way Automake and most other
7554 # C build frameworks function, which is that the same flags used in
7555 # compilation (CFLAGS) are also used in linking. Many systems
7556 # supported by AX_PTHREAD require exactly this for POSIX threads
7557 # support, and in fact it is often not straightforward to specify a
7558 # flag that is used only in the compilation phase and not in
7559 # linking. Such a scenario is extremely rare in practice.
7561 # Even though use of the -pthread flag in linking would only print
7562 # a warning, this can be a nuisance for well-run software projects
7563 # that build with -Werror. So if the active version of Clang has
7564 # this misfeature, we search for an option to squash it.
7566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
7567 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
7568 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
7569 then :
7570 printf %s "(cached) " >&6
7571 else $as_nop
7572 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
7573 # Create an alternate version of $ac_link that compiles and
7574 # links in two steps (.c -> .o, .o -> exe) instead of one
7575 # (.c -> exe), because the warning occurs only in the second
7576 # step
7577 ax_pthread_save_ac_link="$ac_link"
7578 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
7579 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
7580 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
7581 ax_pthread_save_CFLAGS="$CFLAGS"
7582 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
7583 if test "x$ax_pthread_try" = "xunknown"
7584 then :
7585 break
7587 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
7588 ac_link="$ax_pthread_save_ac_link"
7589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590 /* end confdefs.h. */
7591 int main(void){return 0;}
7592 _ACEOF
7593 if ac_fn_c_try_link "$LINENO"
7594 then :
7595 ac_link="$ax_pthread_2step_ac_link"
7596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7597 /* end confdefs.h. */
7598 int main(void){return 0;}
7599 _ACEOF
7600 if ac_fn_c_try_link "$LINENO"
7601 then :
7602 break
7604 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7605 conftest$ac_exeext conftest.$ac_ext
7608 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7609 conftest$ac_exeext conftest.$ac_ext
7610 done
7611 ac_link="$ax_pthread_save_ac_link"
7612 CFLAGS="$ax_pthread_save_CFLAGS"
7613 if test "x$ax_pthread_try" = "x"
7614 then :
7615 ax_pthread_try=no
7617 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
7620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
7621 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
7623 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
7624 no | unknown) ;;
7625 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
7626 esac
7628 fi # $ax_pthread_clang = yes
7632 # Various other checks:
7633 if test "x$ax_pthread_ok" = "xyes"; then
7634 ax_pthread_save_CFLAGS="$CFLAGS"
7635 ax_pthread_save_LIBS="$LIBS"
7636 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7637 LIBS="$PTHREAD_LIBS $LIBS"
7639 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
7641 printf %s "checking for joinable pthread attribute... " >&6; }
7642 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
7643 then :
7644 printf %s "(cached) " >&6
7645 else $as_nop
7646 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
7647 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7649 /* end confdefs.h. */
7650 #include <pthread.h>
7652 main (void)
7654 int attr = $ax_pthread_attr; return attr /* ; */
7656 return 0;
7658 _ACEOF
7659 if ac_fn_c_try_link "$LINENO"
7660 then :
7661 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
7663 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7664 conftest$ac_exeext conftest.$ac_ext
7665 done
7668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
7669 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
7670 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
7671 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
7672 test "x$ax_pthread_joinable_attr_defined" != "xyes"
7673 then :
7675 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
7677 ax_pthread_joinable_attr_defined=yes
7681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
7682 printf %s "checking whether more special flags are required for pthreads... " >&6; }
7683 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
7684 then :
7685 printf %s "(cached) " >&6
7686 else $as_nop
7687 ax_cv_PTHREAD_SPECIAL_FLAGS=no
7688 case $host_os in
7689 solaris*)
7690 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
7692 esac
7695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
7696 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
7697 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
7698 test "x$ax_pthread_special_flags_added" != "xyes"
7699 then :
7700 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
7701 ax_pthread_special_flags_added=yes
7704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
7705 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
7706 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
7707 then :
7708 printf %s "(cached) " >&6
7709 else $as_nop
7710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7711 /* end confdefs.h. */
7712 #include <pthread.h>
7714 main (void)
7716 int i = PTHREAD_PRIO_INHERIT;
7717 return i;
7719 return 0;
7721 _ACEOF
7722 if ac_fn_c_try_link "$LINENO"
7723 then :
7724 ax_cv_PTHREAD_PRIO_INHERIT=yes
7725 else $as_nop
7726 ax_cv_PTHREAD_PRIO_INHERIT=no
7728 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7729 conftest$ac_exeext conftest.$ac_ext
7732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
7733 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
7734 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
7735 test "x$ax_pthread_prio_inherit_defined" != "xyes"
7736 then :
7738 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
7740 ax_pthread_prio_inherit_defined=yes
7744 CFLAGS="$ax_pthread_save_CFLAGS"
7745 LIBS="$ax_pthread_save_LIBS"
7747 # More AIX lossage: compile with *_r variant
7748 if test "x$GCC" != "xyes"; then
7749 case $host_os in
7750 aix*)
7751 case "x/$CC" in #(
7752 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
7753 #handle absolute path differently from PATH based program lookup
7754 case "x$CC" in #(
7755 x/*) :
7757 if as_fn_executable_p ${CC}_r
7758 then :
7759 PTHREAD_CC="${CC}_r"
7761 if test "x${CXX}" != "x"
7762 then :
7763 if as_fn_executable_p ${CXX}_r
7764 then :
7765 PTHREAD_CXX="${CXX}_r"
7768 ;; #(
7769 *) :
7771 for ac_prog in ${CC}_r
7773 # Extract the first word of "$ac_prog", so it can be a program name with args.
7774 set dummy $ac_prog; ac_word=$2
7775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7776 printf %s "checking for $ac_word... " >&6; }
7777 if test ${ac_cv_prog_PTHREAD_CC+y}
7778 then :
7779 printf %s "(cached) " >&6
7780 else $as_nop
7781 if test -n "$PTHREAD_CC"; then
7782 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7783 else
7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785 for as_dir in $PATH
7787 IFS=$as_save_IFS
7788 case $as_dir in #(((
7789 '') as_dir=./ ;;
7790 */) ;;
7791 *) as_dir=$as_dir/ ;;
7792 esac
7793 for ac_exec_ext in '' $ac_executable_extensions; do
7794 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7795 ac_cv_prog_PTHREAD_CC="$ac_prog"
7796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7797 break 2
7799 done
7800 done
7801 IFS=$as_save_IFS
7805 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7806 if test -n "$PTHREAD_CC"; then
7807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
7808 printf "%s\n" "$PTHREAD_CC" >&6; }
7809 else
7810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811 printf "%s\n" "no" >&6; }
7815 test -n "$PTHREAD_CC" && break
7816 done
7817 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7819 if test "x${CXX}" != "x"
7820 then :
7821 for ac_prog in ${CXX}_r
7823 # Extract the first word of "$ac_prog", so it can be a program name with args.
7824 set dummy $ac_prog; ac_word=$2
7825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7826 printf %s "checking for $ac_word... " >&6; }
7827 if test ${ac_cv_prog_PTHREAD_CXX+y}
7828 then :
7829 printf %s "(cached) " >&6
7830 else $as_nop
7831 if test -n "$PTHREAD_CXX"; then
7832 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
7833 else
7834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835 for as_dir in $PATH
7837 IFS=$as_save_IFS
7838 case $as_dir in #(((
7839 '') as_dir=./ ;;
7840 */) ;;
7841 *) as_dir=$as_dir/ ;;
7842 esac
7843 for ac_exec_ext in '' $ac_executable_extensions; do
7844 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7845 ac_cv_prog_PTHREAD_CXX="$ac_prog"
7846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7847 break 2
7849 done
7850 done
7851 IFS=$as_save_IFS
7855 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
7856 if test -n "$PTHREAD_CXX"; then
7857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
7858 printf "%s\n" "$PTHREAD_CXX" >&6; }
7859 else
7860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7861 printf "%s\n" "no" >&6; }
7865 test -n "$PTHREAD_CXX" && break
7866 done
7867 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7872 esac
7873 ;; #(
7874 *) :
7876 esac
7878 esac
7882 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7883 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7890 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7891 if test "x$ax_pthread_ok" = "xyes"; then
7893 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
7896 else
7897 ax_pthread_ok=no
7900 ac_ext=c
7901 ac_cpp='$CPP $CPPFLAGS'
7902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7907 else
7908 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7912 # Check whether --enable-uuidd was given.
7913 if test ${enable_uuidd+y}
7914 then :
7915 enableval=$enable_uuidd; if test "$enableval" = "no"
7916 then
7917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
7918 printf "%s\n" "Not building uuidd" >&6; }
7919 UUIDD_CMT="#"
7920 else
7921 printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h
7923 UUIDD_CMT=""
7924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
7925 printf "%s\n" "Building uuidd" >&6; }
7928 else $as_nop
7929 printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h
7931 if test -z "$UUID_CMT"
7932 then
7933 UUIDD_CMT=""
7934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
7935 printf "%s\n" "Building uuidd by default" >&6; }
7936 else
7937 UUIDD_CMT="#"
7938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
7939 printf "%s\n" "Disabling uuidd by default" >&6; }
7946 # Check whether --enable-mmp was given.
7947 if test ${enable_mmp+y}
7948 then :
7949 enableval=$enable_mmp; if test "$enableval" = "no"
7950 then
7951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
7952 printf "%s\n" "Disabling mmp support" >&6; }
7953 else
7954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
7955 printf "%s\n" "Enabling mmp support" >&6; }
7956 printf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h
7960 else $as_nop
7961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
7962 printf "%s\n" "Enabling mmp support by default" >&6; }
7963 printf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h
7969 # Check whether --enable-tdb was given.
7970 if test ${enable_tdb+y}
7971 then :
7972 enableval=$enable_tdb;
7973 if test "$enableval" = "no"
7974 then
7975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
7976 printf "%s\n" "Disabling tdb support" >&6; }
7977 CONFIG_TDB=0
7978 else
7979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
7980 printf "%s\n" "Enabling tdb support" >&6; }
7981 CONFIG_TDB=1
7985 else $as_nop
7987 case "$host_os" in
7988 mingw*)
7989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support by default" >&5
7990 printf "%s\n" "Disabling tdb support by default" >&6; }
7991 CONFIG_TDB=0
7994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support by default" >&5
7995 printf "%s\n" "Enabling tdb support by default" >&6; }
7996 CONFIG_TDB=1
7998 esac
8003 if test "$CONFIG_TDB" = "1"
8004 then
8005 printf "%s\n" "#define CONFIG_TDB 1" >>confdefs.h
8007 TDB_CMT=""
8008 TDB_MAN_COMMENT=""
8009 else
8010 TDB_CMT="#"
8011 TDB_MAN_COMMENT='.\"'
8016 # Check whether --enable-bmap-stats was given.
8017 if test ${enable_bmap_stats+y}
8018 then :
8019 enableval=$enable_bmap_stats; if test "$enableval" = "no"
8020 then
8021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
8022 printf "%s\n" "Disabling bitmap statistics support" >&6; }
8023 else
8024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
8025 printf "%s\n" "Enabling bitmap statistics support" >&6; }
8026 printf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h
8030 else $as_nop
8031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
8032 printf "%s\n" "Enabling bitmap statistics support by default" >&6; }
8033 printf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h
8039 # Check whether --enable-bmap-stats-ops was given.
8040 if test ${enable_bmap_stats_ops+y}
8041 then :
8042 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
8043 then
8044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
8045 printf "%s\n" "Disabling additional bitmap statistics" >&6; }
8046 else
8047 if test "x${enable_bmap_stats}" = "xno"
8048 then :
8049 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8050 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8051 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
8052 See \`config.log' for more details" "$LINENO" 5; }
8055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
8056 printf "%s\n" "Enabling additional bitmap statistics" >&6; }
8057 printf "%s\n" "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
8061 else $as_nop
8062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
8063 printf "%s\n" "Disabling additional bitmap statistics by default" >&6; }
8067 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
8069 GETTEXT_PACKAGE=e2fsprogs
8070 PACKAGE=e2fsprogs
8071 VERSION="$E2FSPROGS_VERSION"
8072 VERSION=0.14.1
8074 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
8077 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
8083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8084 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8085 set x ${MAKE-make}
8086 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8087 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
8088 then :
8089 printf %s "(cached) " >&6
8090 else $as_nop
8091 cat >conftest.make <<\_ACEOF
8092 SHELL = /bin/sh
8093 all:
8094 @echo '@@@%%%=$(MAKE)=@@@%%%'
8095 _ACEOF
8096 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8097 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8098 *@@@%%%=?*=@@@%%%*)
8099 eval ac_cv_prog_make_${ac_make}_set=yes;;
8101 eval ac_cv_prog_make_${ac_make}_set=no;;
8102 esac
8103 rm -f conftest.make
8105 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8107 printf "%s\n" "yes" >&6; }
8108 SET_MAKE=
8109 else
8110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8111 printf "%s\n" "no" >&6; }
8112 SET_MAKE="MAKE=${MAKE-make}"
8116 # Find a good install program. We prefer a C program (faster),
8117 # so one script is as good as another. But avoid the broken or
8118 # incompatible versions:
8119 # SysV /etc/install, /usr/sbin/install
8120 # SunOS /usr/etc/install
8121 # IRIX /sbin/install
8122 # AIX /bin/install
8123 # AmigaOS /C/install, which installs bootblocks on floppy discs
8124 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8125 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8126 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8127 # OS/2's system install, which has a completely different semantic
8128 # ./install, which can be erroneously created by make from ./install.sh.
8129 # Reject install programs that cannot install multiple files.
8130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8131 printf %s "checking for a BSD-compatible install... " >&6; }
8132 if test -z "$INSTALL"; then
8133 if test ${ac_cv_path_install+y}
8134 then :
8135 printf %s "(cached) " >&6
8136 else $as_nop
8137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138 for as_dir in $PATH
8140 IFS=$as_save_IFS
8141 case $as_dir in #(((
8142 '') as_dir=./ ;;
8143 */) ;;
8144 *) as_dir=$as_dir/ ;;
8145 esac
8146 # Account for fact that we put trailing slashes in our PATH walk.
8147 case $as_dir in #((
8148 ./ | /[cC]/* | \
8149 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8150 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8151 /usr/ucb/* ) ;;
8153 # OSF1 and SCO ODT 3.0 have their own names for install.
8154 # Don't use installbsd from OSF since it installs stuff as root
8155 # by default.
8156 for ac_prog in ginstall scoinst install; do
8157 for ac_exec_ext in '' $ac_executable_extensions; do
8158 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
8159 if test $ac_prog = install &&
8160 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8161 # AIX install. It has an incompatible calling convention.
8163 elif test $ac_prog = install &&
8164 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8165 # program-specific install script used by HP pwplus--don't use.
8167 else
8168 rm -rf conftest.one conftest.two conftest.dir
8169 echo one > conftest.one
8170 echo two > conftest.two
8171 mkdir conftest.dir
8172 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
8173 test -s conftest.one && test -s conftest.two &&
8174 test -s conftest.dir/conftest.one &&
8175 test -s conftest.dir/conftest.two
8176 then
8177 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
8178 break 3
8182 done
8183 done
8185 esac
8187 done
8188 IFS=$as_save_IFS
8190 rm -rf conftest.one conftest.two conftest.dir
8193 if test ${ac_cv_path_install+y}; then
8194 INSTALL=$ac_cv_path_install
8195 else
8196 # As a last resort, use the slow shell script. Don't cache a
8197 # value for INSTALL within a source directory, because that will
8198 # break other packages using the cache if that directory is
8199 # removed, or if the value is a relative name.
8200 INSTALL=$ac_install_sh
8203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8204 printf "%s\n" "$INSTALL" >&6; }
8206 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8207 # It thinks the first close brace ends the variable substitution.
8208 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8210 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8212 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
8216 printf %s "checking for a race-free mkdir -p... " >&6; }
8217 if test -z "$MKDIR_P"; then
8218 if test ${ac_cv_path_mkdir+y}
8219 then :
8220 printf %s "(cached) " >&6
8221 else $as_nop
8222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8223 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
8225 IFS=$as_save_IFS
8226 case $as_dir in #(((
8227 '') as_dir=./ ;;
8228 */) ;;
8229 *) as_dir=$as_dir/ ;;
8230 esac
8231 for ac_prog in mkdir gmkdir; do
8232 for ac_exec_ext in '' $ac_executable_extensions; do
8233 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
8234 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
8235 'mkdir ('*'coreutils) '* | \
8236 'BusyBox '* | \
8237 'mkdir (fileutils) '4.1*)
8238 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
8239 break 3;;
8240 esac
8241 done
8242 done
8243 done
8244 IFS=$as_save_IFS
8248 test -d ./--version && rmdir ./--version
8249 if test ${ac_cv_path_mkdir+y}; then
8250 MKDIR_P="$ac_cv_path_mkdir -p"
8251 else
8252 # As a last resort, use the slow shell script. Don't cache a
8253 # value for MKDIR_P within a source directory, because that will
8254 # break other packages using the cache if that directory is
8255 # removed, or if the value is a relative name.
8256 MKDIR_P="$ac_install_sh -d"
8259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8260 printf "%s\n" "$MKDIR_P" >&6; }
8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8264 printf %s "checking whether NLS is requested... " >&6; }
8265 # Check whether --enable-nls was given.
8266 if test ${enable_nls+y}
8267 then :
8268 enableval=$enable_nls; USE_NLS=$enableval
8269 else $as_nop
8270 USE_NLS=yes
8273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8274 printf "%s\n" "$USE_NLS" >&6; }
8279 GETTEXT_MACRO_VERSION=0.20
8284 # Prepare PATH_SEPARATOR.
8285 # The user is always right.
8286 if test "${PATH_SEPARATOR+set}" != set; then
8287 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8288 # contains only /bin. Note that ksh looks also at the FPATH variable,
8289 # so we have to set that as well for the test.
8290 PATH_SEPARATOR=:
8291 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8292 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8293 || PATH_SEPARATOR=';'
8297 # Find out how to test for executable files. Don't use a zero-byte file,
8298 # as systems may use methods other than mode bits to determine executability.
8299 cat >conf$$.file <<_ASEOF
8300 #! /bin/sh
8301 exit 0
8302 _ASEOF
8303 chmod +x conf$$.file
8304 if test -x conf$$.file >/dev/null 2>&1; then
8305 ac_executable_p="test -x"
8306 else
8307 ac_executable_p="test -f"
8309 rm -f conf$$.file
8311 # Extract the first word of "msgfmt", so it can be a program name with args.
8312 set dummy msgfmt; ac_word=$2
8313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8314 printf %s "checking for $ac_word... " >&6; }
8315 if test ${ac_cv_path_MSGFMT+y}
8316 then :
8317 printf %s "(cached) " >&6
8318 else $as_nop
8319 case "$MSGFMT" in
8320 [\\/]* | ?:[\\/]*)
8321 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8324 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8325 for ac_dir in $PATH; do
8326 IFS="$ac_save_IFS"
8327 test -z "$ac_dir" && ac_dir=.
8328 for ac_exec_ext in '' $ac_executable_extensions; do
8329 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8330 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8331 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
8332 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8333 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
8334 break 2
8337 done
8338 done
8339 IFS="$ac_save_IFS"
8340 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8342 esac
8344 MSGFMT="$ac_cv_path_MSGFMT"
8345 if test "$MSGFMT" != ":"; then
8346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8347 printf "%s\n" "$MSGFMT" >&6; }
8348 else
8349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8350 printf "%s\n" "no" >&6; }
8353 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8354 set dummy gmsgfmt; ac_word=$2
8355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8356 printf %s "checking for $ac_word... " >&6; }
8357 if test ${ac_cv_path_GMSGFMT+y}
8358 then :
8359 printf %s "(cached) " >&6
8360 else $as_nop
8361 case $GMSGFMT in
8362 [\\/]* | ?:[\\/]*)
8363 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367 for as_dir in $PATH
8369 IFS=$as_save_IFS
8370 case $as_dir in #(((
8371 '') as_dir=./ ;;
8372 */) ;;
8373 *) as_dir=$as_dir/ ;;
8374 esac
8375 for ac_exec_ext in '' $ac_executable_extensions; do
8376 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8377 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
8378 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8379 break 2
8381 done
8382 done
8383 IFS=$as_save_IFS
8385 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8387 esac
8389 GMSGFMT=$ac_cv_path_GMSGFMT
8390 if test -n "$GMSGFMT"; then
8391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8392 printf "%s\n" "$GMSGFMT" >&6; }
8393 else
8394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395 printf "%s\n" "no" >&6; }
8400 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8401 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
8402 *) GMSGFMT_015=$GMSGFMT ;;
8403 esac
8407 # Prepare PATH_SEPARATOR.
8408 # The user is always right.
8409 if test "${PATH_SEPARATOR+set}" != set; then
8410 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8411 # contains only /bin. Note that ksh looks also at the FPATH variable,
8412 # so we have to set that as well for the test.
8413 PATH_SEPARATOR=:
8414 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8415 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8416 || PATH_SEPARATOR=';'
8420 # Find out how to test for executable files. Don't use a zero-byte file,
8421 # as systems may use methods other than mode bits to determine executability.
8422 cat >conf$$.file <<_ASEOF
8423 #! /bin/sh
8424 exit 0
8425 _ASEOF
8426 chmod +x conf$$.file
8427 if test -x conf$$.file >/dev/null 2>&1; then
8428 ac_executable_p="test -x"
8429 else
8430 ac_executable_p="test -f"
8432 rm -f conf$$.file
8434 # Extract the first word of "xgettext", so it can be a program name with args.
8435 set dummy xgettext; ac_word=$2
8436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8437 printf %s "checking for $ac_word... " >&6; }
8438 if test ${ac_cv_path_XGETTEXT+y}
8439 then :
8440 printf %s "(cached) " >&6
8441 else $as_nop
8442 case "$XGETTEXT" in
8443 [\\/]* | ?:[\\/]*)
8444 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8447 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8448 for ac_dir in $PATH; do
8449 IFS="$ac_save_IFS"
8450 test -z "$ac_dir" && ac_dir=.
8451 for ac_exec_ext in '' $ac_executable_extensions; do
8452 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8453 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8454 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
8455 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8456 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
8457 break 2
8460 done
8461 done
8462 IFS="$ac_save_IFS"
8463 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8465 esac
8467 XGETTEXT="$ac_cv_path_XGETTEXT"
8468 if test "$XGETTEXT" != ":"; then
8469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
8470 printf "%s\n" "$XGETTEXT" >&6; }
8471 else
8472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8473 printf "%s\n" "no" >&6; }
8476 rm -f messages.po
8478 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8479 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
8480 *) XGETTEXT_015=$XGETTEXT ;;
8481 esac
8485 # Prepare PATH_SEPARATOR.
8486 # The user is always right.
8487 if test "${PATH_SEPARATOR+set}" != set; then
8488 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8489 # contains only /bin. Note that ksh looks also at the FPATH variable,
8490 # so we have to set that as well for the test.
8491 PATH_SEPARATOR=:
8492 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8493 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8494 || PATH_SEPARATOR=';'
8498 # Find out how to test for executable files. Don't use a zero-byte file,
8499 # as systems may use methods other than mode bits to determine executability.
8500 cat >conf$$.file <<_ASEOF
8501 #! /bin/sh
8502 exit 0
8503 _ASEOF
8504 chmod +x conf$$.file
8505 if test -x conf$$.file >/dev/null 2>&1; then
8506 ac_executable_p="test -x"
8507 else
8508 ac_executable_p="test -f"
8510 rm -f conf$$.file
8512 # Extract the first word of "msgmerge", so it can be a program name with args.
8513 set dummy msgmerge; ac_word=$2
8514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8515 printf %s "checking for $ac_word... " >&6; }
8516 if test ${ac_cv_path_MSGMERGE+y}
8517 then :
8518 printf %s "(cached) " >&6
8519 else $as_nop
8520 case "$MSGMERGE" in
8521 [\\/]* | ?:[\\/]*)
8522 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
8525 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8526 for ac_dir in $PATH; do
8527 IFS="$ac_save_IFS"
8528 test -z "$ac_dir" && ac_dir=.
8529 for ac_exec_ext in '' $ac_executable_extensions; do
8530 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8531 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8532 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
8533 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
8534 break 2
8537 done
8538 done
8539 IFS="$ac_save_IFS"
8540 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
8542 esac
8544 MSGMERGE="$ac_cv_path_MSGMERGE"
8545 if test "$MSGMERGE" != ":"; then
8546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
8547 printf "%s\n" "$MSGMERGE" >&6; }
8548 else
8549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8550 printf "%s\n" "no" >&6; }
8554 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
8555 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
8556 else
8557 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
8558 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
8559 else
8560 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
8565 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
8568 ac_config_commands="$ac_config_commands po-directories"
8572 if test "X$prefix" = "XNONE"; then
8573 acl_final_prefix="$ac_default_prefix"
8574 else
8575 acl_final_prefix="$prefix"
8577 if test "X$exec_prefix" = "XNONE"; then
8578 acl_final_exec_prefix='${prefix}'
8579 else
8580 acl_final_exec_prefix="$exec_prefix"
8582 acl_save_prefix="$prefix"
8583 prefix="$acl_final_prefix"
8584 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8585 prefix="$acl_save_prefix"
8589 # Check whether --with-gnu-ld was given.
8590 if test ${with_gnu_ld+y}
8591 then :
8592 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8593 else $as_nop
8594 with_gnu_ld=no
8597 # Prepare PATH_SEPARATOR.
8598 # The user is always right.
8599 if test "${PATH_SEPARATOR+set}" != set; then
8600 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8601 # contains only /bin. Note that ksh looks also at the FPATH variable,
8602 # so we have to set that as well for the test.
8603 PATH_SEPARATOR=:
8604 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8605 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8606 || PATH_SEPARATOR=';'
8610 if test -n "$LD"; then
8611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
8612 printf %s "checking for ld... " >&6; }
8613 elif test "$GCC" = yes; then
8614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8615 printf %s "checking for ld used by $CC... " >&6; }
8616 elif test "$with_gnu_ld" = yes; then
8617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8618 printf %s "checking for GNU ld... " >&6; }
8619 else
8620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8621 printf %s "checking for non-GNU ld... " >&6; }
8623 if test -n "$LD"; then
8624 # Let the user override the test with a path.
8626 else
8627 if test ${acl_cv_path_LD+y}
8628 then :
8629 printf %s "(cached) " >&6
8630 else $as_nop
8632 acl_cv_path_LD= # Final result of this test
8633 ac_prog=ld # Program to search in $PATH
8634 if test "$GCC" = yes; then
8635 # Check if gcc -print-prog-name=ld gives a path.
8636 case $host in
8637 *-*-mingw*)
8638 # gcc leaves a trailing carriage return which upsets mingw
8639 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8641 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
8642 esac
8643 case $acl_output in
8644 # Accept absolute paths.
8645 [\\/]* | ?:[\\/]*)
8646 re_direlt='/[^/][^/]*/\.\./'
8647 # Canonicalize the pathname of ld
8648 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
8649 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
8650 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
8651 done
8652 # Got the pathname. No search in PATH is needed.
8653 acl_cv_path_LD="$acl_output"
8654 ac_prog=
8657 # If it fails, then pretend we aren't using GCC.
8660 # If it is relative, then search for the first ld in PATH.
8661 with_gnu_ld=unknown
8663 esac
8665 if test -n "$ac_prog"; then
8666 # Search for $ac_prog in $PATH.
8667 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8668 for ac_dir in $PATH; do
8669 IFS="$acl_save_ifs"
8670 test -z "$ac_dir" && ac_dir=.
8671 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8672 acl_cv_path_LD="$ac_dir/$ac_prog"
8673 # Check to see if the program is GNU ld. I'd rather use --version,
8674 # but apparently some variants of GNU ld only accept -v.
8675 # Break only if it was the GNU/non-GNU ld that we prefer.
8676 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
8677 *GNU* | *'with BFD'*)
8678 test "$with_gnu_ld" != no && break
8681 test "$with_gnu_ld" != yes && break
8683 esac
8685 done
8686 IFS="$acl_save_ifs"
8688 case $host in
8689 *-*-aix*)
8690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8691 /* end confdefs.h. */
8692 #if defined __powerpc64__ || defined _ARCH_PPC64
8693 int ok;
8694 #else
8695 error fail
8696 #endif
8698 _ACEOF
8699 if ac_fn_c_try_compile "$LINENO"
8700 then :
8701 # The compiler produces 64-bit code. Add option '-b64' so that the
8702 # linker groks 64-bit object files.
8703 case "$acl_cv_path_LD " in
8704 *" -b64 "*) ;;
8705 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
8706 esac
8709 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8711 sparc64-*-netbsd*)
8712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8713 /* end confdefs.h. */
8714 #if defined __sparcv9 || defined __arch64__
8715 int ok;
8716 #else
8717 error fail
8718 #endif
8720 _ACEOF
8721 if ac_fn_c_try_compile "$LINENO"
8722 then :
8724 else $as_nop
8725 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
8726 # so that the linker groks 32-bit object files.
8727 case "$acl_cv_path_LD " in
8728 *" -m elf32_sparc "*) ;;
8729 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
8730 esac
8733 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8735 esac
8739 LD="$acl_cv_path_LD"
8741 if test -n "$LD"; then
8742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8743 printf "%s\n" "$LD" >&6; }
8744 else
8745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8746 printf "%s\n" "no" >&6; }
8747 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8750 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8751 if test ${acl_cv_prog_gnu_ld+y}
8752 then :
8753 printf %s "(cached) " >&6
8754 else $as_nop
8755 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8756 case `$LD -v 2>&1 </dev/null` in
8757 *GNU* | *'with BFD'*)
8758 acl_cv_prog_gnu_ld=yes
8761 acl_cv_prog_gnu_ld=no
8763 esac
8765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8766 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
8767 with_gnu_ld=$acl_cv_prog_gnu_ld
8774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8775 printf %s "checking for shared library run path origin... " >&6; }
8776 if test ${acl_cv_rpath+y}
8777 then :
8778 printf %s "(cached) " >&6
8779 else $as_nop
8781 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8782 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8783 . ./conftest.sh
8784 rm -f ./conftest.sh
8785 acl_cv_rpath=done
8788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8789 printf "%s\n" "$acl_cv_rpath" >&6; }
8790 wl="$acl_cv_wl"
8791 acl_libext="$acl_cv_libext"
8792 acl_shlibext="$acl_cv_shlibext"
8793 acl_libname_spec="$acl_cv_libname_spec"
8794 acl_library_names_spec="$acl_cv_library_names_spec"
8795 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8796 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8797 acl_hardcode_direct="$acl_cv_hardcode_direct"
8798 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
8799 # Check whether --enable-rpath was given.
8800 if test ${enable_rpath+y}
8801 then :
8802 enableval=$enable_rpath; :
8803 else $as_nop
8804 enable_rpath=yes
8810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
8811 printf %s "checking 32-bit host C ABI... " >&6; }
8812 if test ${gl_cv_host_cpu_c_abi_32bit+y}
8813 then :
8814 printf %s "(cached) " >&6
8815 else $as_nop
8816 if test -n "$gl_cv_host_cpu_c_abi"; then
8817 case "$gl_cv_host_cpu_c_abi" in
8818 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
8819 gl_cv_host_cpu_c_abi_32bit=yes ;;
8820 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
8821 gl_cv_host_cpu_c_abi_32bit=no ;;
8823 gl_cv_host_cpu_c_abi_32bit=unknown ;;
8824 esac
8825 else
8826 case "$host_cpu" in
8828 # CPUs that only support a 32-bit ABI.
8829 arc \
8830 | bfin \
8831 | cris* \
8832 | csky \
8833 | epiphany \
8834 | ft32 \
8835 | h8300 \
8836 | m68k \
8837 | microblaze | microblazeel \
8838 | nds32 | nds32le | nds32be \
8839 | nios2 | nios2eb | nios2el \
8840 | or1k* \
8841 | or32 \
8842 | sh | sh1234 | sh1234elb \
8843 | tic6x \
8844 | xtensa* )
8845 gl_cv_host_cpu_c_abi_32bit=yes
8848 # CPUs that only support a 64-bit ABI.
8849 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
8850 | mmix )
8851 gl_cv_host_cpu_c_abi_32bit=no
8854 i[34567]86 )
8855 gl_cv_host_cpu_c_abi_32bit=yes
8858 x86_64 )
8859 # On x86_64 systems, the C compiler may be generating code in one of
8860 # these ABIs:
8861 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
8862 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
8863 # with native Windows (mingw, MSVC).
8864 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
8865 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
8866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h. */
8868 #if (defined __x86_64__ || defined __amd64__ \
8869 || defined _M_X64 || defined _M_AMD64) \
8870 && !(defined __ILP32__ || defined _ILP32)
8871 int ok;
8872 #else
8873 error fail
8874 #endif
8876 _ACEOF
8877 if ac_fn_c_try_compile "$LINENO"
8878 then :
8879 gl_cv_host_cpu_c_abi_32bit=no
8880 else $as_nop
8881 gl_cv_host_cpu_c_abi_32bit=yes
8883 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8886 arm* | aarch64 )
8887 # Assume arm with EABI.
8888 # On arm64 systems, the C compiler may be generating code in one of
8889 # these ABIs:
8890 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
8891 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
8892 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
8893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8894 /* end confdefs.h. */
8895 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
8896 int ok;
8897 #else
8898 error fail
8899 #endif
8901 _ACEOF
8902 if ac_fn_c_try_compile "$LINENO"
8903 then :
8904 gl_cv_host_cpu_c_abi_32bit=no
8905 else $as_nop
8906 gl_cv_host_cpu_c_abi_32bit=yes
8908 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8911 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
8912 # On hppa, the C compiler may be generating 32-bit code or 64-bit
8913 # code. In the latter case, it defines _LP64 and __LP64__.
8914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8915 /* end confdefs.h. */
8916 #ifdef __LP64__
8917 int ok;
8918 #else
8919 error fail
8920 #endif
8922 _ACEOF
8923 if ac_fn_c_try_compile "$LINENO"
8924 then :
8925 gl_cv_host_cpu_c_abi_32bit=no
8926 else $as_nop
8927 gl_cv_host_cpu_c_abi_32bit=yes
8929 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8932 ia64* )
8933 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
8934 # 32-bit code. In the latter case, it defines _ILP32.
8935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8936 /* end confdefs.h. */
8937 #ifdef _ILP32
8938 int ok;
8939 #else
8940 error fail
8941 #endif
8943 _ACEOF
8944 if ac_fn_c_try_compile "$LINENO"
8945 then :
8946 gl_cv_host_cpu_c_abi_32bit=yes
8947 else $as_nop
8948 gl_cv_host_cpu_c_abi_32bit=no
8950 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8953 mips* )
8954 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
8955 # at 32.
8956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8957 /* end confdefs.h. */
8958 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
8959 int ok;
8960 #else
8961 error fail
8962 #endif
8964 _ACEOF
8965 if ac_fn_c_try_compile "$LINENO"
8966 then :
8967 gl_cv_host_cpu_c_abi_32bit=no
8968 else $as_nop
8969 gl_cv_host_cpu_c_abi_32bit=yes
8971 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8974 powerpc* )
8975 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
8976 # No need to distinguish them here; the caller may distinguish
8977 # them based on the OS.
8978 # On powerpc64 systems, the C compiler may still be generating
8979 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
8980 # be generating 64-bit code.
8981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8982 /* end confdefs.h. */
8983 #if defined __powerpc64__ || defined _ARCH_PPC64
8984 int ok;
8985 #else
8986 error fail
8987 #endif
8989 _ACEOF
8990 if ac_fn_c_try_compile "$LINENO"
8991 then :
8992 gl_cv_host_cpu_c_abi_32bit=no
8993 else $as_nop
8994 gl_cv_host_cpu_c_abi_32bit=yes
8996 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8999 rs6000 )
9000 gl_cv_host_cpu_c_abi_32bit=yes
9003 riscv32 | riscv64 )
9004 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
9005 # Size of 'long' and 'void *':
9006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9007 /* end confdefs.h. */
9008 #if defined __LP64__
9009 int ok;
9010 #else
9011 error fail
9012 #endif
9014 _ACEOF
9015 if ac_fn_c_try_compile "$LINENO"
9016 then :
9017 gl_cv_host_cpu_c_abi_32bit=no
9018 else $as_nop
9019 gl_cv_host_cpu_c_abi_32bit=yes
9021 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9024 s390* )
9025 # On s390x, the C compiler may be generating 64-bit (= s390x) code
9026 # or 31-bit (= s390) code.
9027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9028 /* end confdefs.h. */
9029 #if defined __LP64__ || defined __s390x__
9030 int ok;
9031 #else
9032 error fail
9033 #endif
9035 _ACEOF
9036 if ac_fn_c_try_compile "$LINENO"
9037 then :
9038 gl_cv_host_cpu_c_abi_32bit=no
9039 else $as_nop
9040 gl_cv_host_cpu_c_abi_32bit=yes
9042 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9045 sparc | sparc64 )
9046 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
9047 # C compiler still generates 32-bit code.
9048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9049 /* end confdefs.h. */
9050 #if defined __sparcv9 || defined __arch64__
9051 int ok;
9052 #else
9053 error fail
9054 #endif
9056 _ACEOF
9057 if ac_fn_c_try_compile "$LINENO"
9058 then :
9059 gl_cv_host_cpu_c_abi_32bit=no
9060 else $as_nop
9061 gl_cv_host_cpu_c_abi_32bit=yes
9063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9067 gl_cv_host_cpu_c_abi_32bit=unknown
9069 esac
9073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
9074 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
9076 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
9082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
9083 printf %s "checking for ELF binary format... " >&6; }
9084 if test ${gl_cv_elf+y}
9085 then :
9086 printf %s "(cached) " >&6
9087 else $as_nop
9088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9089 /* end confdefs.h. */
9090 #ifdef __ELF__
9091 Extensible Linking Format
9092 #endif
9094 _ACEOF
9095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9096 $EGREP "Extensible Linking Format" >/dev/null 2>&1
9097 then :
9098 gl_cv_elf=yes
9099 else $as_nop
9100 gl_cv_elf=no
9102 rm -rf conftest*
9106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
9107 printf "%s\n" "$gl_cv_elf" >&6; }
9108 if test $gl_cv_elf; then
9109 # Extract the ELF class of a file (5th byte) in decimal.
9110 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
9111 if od -A x < /dev/null >/dev/null 2>/dev/null; then
9112 # Use POSIX od.
9113 func_elfclass ()
9115 od -A n -t d1 -j 4 -N 1
9117 else
9118 # Use BSD hexdump.
9119 func_elfclass ()
9121 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
9122 echo
9125 case $HOST_CPU_C_ABI_32BIT in
9126 yes)
9127 # 32-bit ABI.
9128 acl_is_expected_elfclass ()
9130 test "`func_elfclass | sed -e 's/[ ]//g'`" = 1
9134 # 64-bit ABI.
9135 acl_is_expected_elfclass ()
9137 test "`func_elfclass | sed -e 's/[ ]//g'`" = 2
9141 # Unknown.
9142 acl_is_expected_elfclass ()
9147 esac
9148 else
9149 acl_is_expected_elfclass ()
9155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
9156 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
9157 if test ${acl_cv_libdirstems+y}
9158 then :
9159 printf %s "(cached) " >&6
9160 else $as_nop
9161 acl_libdirstem=lib
9162 acl_libdirstem2=
9163 acl_libdirstem3=
9164 case "$host_os" in
9165 solaris*)
9166 if test $HOST_CPU_C_ABI_32BIT = no; then
9167 acl_libdirstem2=lib/64
9168 case "$host_cpu" in
9169 sparc*) acl_libdirstem3=lib/sparcv9 ;;
9170 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
9171 esac
9175 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
9176 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
9177 if test $HOST_CPU_C_ABI_32BIT != no; then
9178 # 32-bit or unknown ABI.
9179 if test -d /usr/lib32; then
9180 acl_libdirstem2=lib32
9183 if test $HOST_CPU_C_ABI_32BIT != yes; then
9184 # 64-bit or unknown ABI.
9185 if test -d /usr/lib64; then
9186 acl_libdirstem3=lib64
9189 if test -n "$searchpath"; then
9190 acl_save_IFS="${IFS= }"; IFS=":"
9191 for searchdir in $searchpath; do
9192 if test -d "$searchdir"; then
9193 case "$searchdir" in
9194 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
9195 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
9196 */../ | */.. )
9197 # Better ignore directories of this form. They are misleading.
9199 *) searchdir=`cd "$searchdir" && pwd`
9200 case "$searchdir" in
9201 */lib32 ) acl_libdirstem2=lib32 ;;
9202 */lib64 ) acl_libdirstem3=lib64 ;;
9203 esac ;;
9204 esac
9206 done
9207 IFS="$acl_save_IFS"
9208 if test $HOST_CPU_C_ABI_32BIT = yes; then
9209 # 32-bit ABI.
9210 acl_libdirstem3=
9212 if test $HOST_CPU_C_ABI_32BIT = no; then
9213 # 64-bit ABI.
9214 acl_libdirstem2=
9218 esac
9219 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
9220 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
9221 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
9224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
9225 printf "%s\n" "$acl_cv_libdirstems" >&6; }
9226 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
9227 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
9228 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
9240 use_additional=yes
9242 acl_save_prefix="$prefix"
9243 prefix="$acl_final_prefix"
9244 acl_save_exec_prefix="$exec_prefix"
9245 exec_prefix="$acl_final_exec_prefix"
9247 eval additional_includedir=\"$includedir\"
9248 eval additional_libdir=\"$libdir\"
9249 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9250 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
9252 exec_prefix="$acl_save_exec_prefix"
9253 prefix="$acl_save_prefix"
9256 # Check whether --with-libiconv-prefix was given.
9257 if test ${with_libiconv_prefix+y}
9258 then :
9259 withval=$with_libiconv_prefix;
9260 if test "X$withval" = "Xno"; then
9261 use_additional=no
9262 else
9263 if test "X$withval" = "X"; then
9265 acl_save_prefix="$prefix"
9266 prefix="$acl_final_prefix"
9267 acl_save_exec_prefix="$exec_prefix"
9268 exec_prefix="$acl_final_exec_prefix"
9270 eval additional_includedir=\"$includedir\"
9271 eval additional_libdir=\"$libdir\"
9272 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9273 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
9275 exec_prefix="$acl_save_exec_prefix"
9276 prefix="$acl_save_prefix"
9278 else
9279 additional_includedir="$withval/include"
9280 additional_libdir="$withval/$acl_libdirstem"
9281 additional_libdir2="$withval/$acl_libdirstem2"
9282 additional_libdir3="$withval/$acl_libdirstem3"
9288 if test "X$additional_libdir2" = "X$additional_libdir"; then
9289 additional_libdir2=
9291 if test "X$additional_libdir3" = "X$additional_libdir"; then
9292 additional_libdir3=
9294 LIBICONV=
9295 LTLIBICONV=
9296 INCICONV=
9297 LIBICONV_PREFIX=
9298 HAVE_LIBICONV=
9299 rpathdirs=
9300 ltrpathdirs=
9301 names_already_handled=
9302 names_next_round='iconv '
9303 while test -n "$names_next_round"; do
9304 names_this_round="$names_next_round"
9305 names_next_round=
9306 for name in $names_this_round; do
9307 already_handled=
9308 for n in $names_already_handled; do
9309 if test "$n" = "$name"; then
9310 already_handled=yes
9311 break
9313 done
9314 if test -z "$already_handled"; then
9315 names_already_handled="$names_already_handled $name"
9316 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
9317 eval value=\"\$HAVE_LIB$uppername\"
9318 if test -n "$value"; then
9319 if test "$value" = yes; then
9320 eval value=\"\$LIB$uppername\"
9321 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9322 eval value=\"\$LTLIB$uppername\"
9323 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9324 else
9327 else
9328 found_dir=
9329 found_la=
9330 found_so=
9331 found_a=
9332 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
9333 if test -n "$acl_shlibext"; then
9334 shrext=".$acl_shlibext" # typically: shrext=.so
9335 else
9336 shrext=
9338 if test $use_additional = yes; then
9339 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
9340 if test "X$found_dir" = "X"; then
9341 eval dir=\$$additional_libdir_variable
9342 if test -n "$dir"; then
9343 if test -n "$acl_shlibext"; then
9344 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9345 found_dir="$dir"
9346 found_so="$dir/$libname$shrext"
9347 else
9348 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9349 ver=`(cd "$dir" && \
9350 for f in "$libname$shrext".*; do echo "$f"; done \
9351 | sed -e "s,^$libname$shrext\\\\.,," \
9352 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9353 | sed 1q ) 2>/dev/null`
9354 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9355 found_dir="$dir"
9356 found_so="$dir/$libname$shrext.$ver"
9358 else
9359 eval library_names=\"$acl_library_names_spec\"
9360 for f in $library_names; do
9361 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9362 found_dir="$dir"
9363 found_so="$dir/$f"
9364 break
9366 done
9370 if test "X$found_dir" = "X"; then
9371 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9372 found_dir="$dir"
9373 found_a="$dir/$libname.$acl_libext"
9376 if test "X$found_dir" != "X"; then
9377 if test -f "$dir/$libname.la"; then
9378 found_la="$dir/$libname.la"
9383 done
9385 if test "X$found_dir" = "X"; then
9386 for x in $LDFLAGS $LTLIBICONV; do
9388 acl_save_prefix="$prefix"
9389 prefix="$acl_final_prefix"
9390 acl_save_exec_prefix="$exec_prefix"
9391 exec_prefix="$acl_final_exec_prefix"
9392 eval x=\"$x\"
9393 exec_prefix="$acl_save_exec_prefix"
9394 prefix="$acl_save_prefix"
9396 case "$x" in
9397 -L*)
9398 dir=`echo "X$x" | sed -e 's/^X-L//'`
9399 if test -n "$acl_shlibext"; then
9400 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9401 found_dir="$dir"
9402 found_so="$dir/$libname$shrext"
9403 else
9404 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9405 ver=`(cd "$dir" && \
9406 for f in "$libname$shrext".*; do echo "$f"; done \
9407 | sed -e "s,^$libname$shrext\\\\.,," \
9408 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9409 | sed 1q ) 2>/dev/null`
9410 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9411 found_dir="$dir"
9412 found_so="$dir/$libname$shrext.$ver"
9414 else
9415 eval library_names=\"$acl_library_names_spec\"
9416 for f in $library_names; do
9417 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9418 found_dir="$dir"
9419 found_so="$dir/$f"
9420 break
9422 done
9426 if test "X$found_dir" = "X"; then
9427 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9428 found_dir="$dir"
9429 found_a="$dir/$libname.$acl_libext"
9432 if test "X$found_dir" != "X"; then
9433 if test -f "$dir/$libname.la"; then
9434 found_la="$dir/$libname.la"
9438 esac
9439 if test "X$found_dir" != "X"; then
9440 break
9442 done
9444 if test "X$found_dir" != "X"; then
9445 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9446 if test "X$found_so" != "X"; then
9447 if test "$enable_rpath" = no \
9448 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9449 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
9450 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
9451 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9452 else
9453 haveit=
9454 for x in $ltrpathdirs; do
9455 if test "X$x" = "X$found_dir"; then
9456 haveit=yes
9457 break
9459 done
9460 if test -z "$haveit"; then
9461 ltrpathdirs="$ltrpathdirs $found_dir"
9463 if test "$acl_hardcode_direct" = yes; then
9464 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9465 else
9466 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9467 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9468 haveit=
9469 for x in $rpathdirs; do
9470 if test "X$x" = "X$found_dir"; then
9471 haveit=yes
9472 break
9474 done
9475 if test -z "$haveit"; then
9476 rpathdirs="$rpathdirs $found_dir"
9478 else
9479 haveit=
9480 for x in $LDFLAGS $LIBICONV; do
9482 acl_save_prefix="$prefix"
9483 prefix="$acl_final_prefix"
9484 acl_save_exec_prefix="$exec_prefix"
9485 exec_prefix="$acl_final_exec_prefix"
9486 eval x=\"$x\"
9487 exec_prefix="$acl_save_exec_prefix"
9488 prefix="$acl_save_prefix"
9490 if test "X$x" = "X-L$found_dir"; then
9491 haveit=yes
9492 break
9494 done
9495 if test -z "$haveit"; then
9496 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9498 if test "$acl_hardcode_minus_L" != no; then
9499 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9500 else
9501 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9506 else
9507 if test "X$found_a" != "X"; then
9508 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9509 else
9510 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9513 additional_includedir=
9514 case "$found_dir" in
9515 */$acl_libdirstem | */$acl_libdirstem/)
9516 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9517 if test "$name" = 'iconv'; then
9518 LIBICONV_PREFIX="$basedir"
9520 additional_includedir="$basedir/include"
9522 */$acl_libdirstem2 | */$acl_libdirstem2/)
9523 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9524 if test "$name" = 'iconv'; then
9525 LIBICONV_PREFIX="$basedir"
9527 additional_includedir="$basedir/include"
9529 */$acl_libdirstem3 | */$acl_libdirstem3/)
9530 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
9531 if test "$name" = 'iconv'; then
9532 LIBICONV_PREFIX="$basedir"
9534 additional_includedir="$basedir/include"
9536 esac
9537 if test "X$additional_includedir" != "X"; then
9538 if test "X$additional_includedir" != "X/usr/include"; then
9539 haveit=
9540 if test "X$additional_includedir" = "X/usr/local/include"; then
9541 if test -n "$GCC"; then
9542 case $host_os in
9543 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9544 esac
9547 if test -z "$haveit"; then
9548 for x in $CPPFLAGS $INCICONV; do
9550 acl_save_prefix="$prefix"
9551 prefix="$acl_final_prefix"
9552 acl_save_exec_prefix="$exec_prefix"
9553 exec_prefix="$acl_final_exec_prefix"
9554 eval x=\"$x\"
9555 exec_prefix="$acl_save_exec_prefix"
9556 prefix="$acl_save_prefix"
9558 if test "X$x" = "X-I$additional_includedir"; then
9559 haveit=yes
9560 break
9562 done
9563 if test -z "$haveit"; then
9564 if test -d "$additional_includedir"; then
9565 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9571 if test -n "$found_la"; then
9572 save_libdir="$libdir"
9573 case "$found_la" in
9574 */* | *\\*) . "$found_la" ;;
9575 *) . "./$found_la" ;;
9576 esac
9577 libdir="$save_libdir"
9578 for dep in $dependency_libs; do
9579 case "$dep" in
9580 -L*)
9581 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9582 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
9583 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
9584 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
9585 haveit=
9586 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
9587 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
9588 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
9589 if test -n "$GCC"; then
9590 case $host_os in
9591 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9592 esac
9595 if test -z "$haveit"; then
9596 haveit=
9597 for x in $LDFLAGS $LIBICONV; do
9599 acl_save_prefix="$prefix"
9600 prefix="$acl_final_prefix"
9601 acl_save_exec_prefix="$exec_prefix"
9602 exec_prefix="$acl_final_exec_prefix"
9603 eval x=\"$x\"
9604 exec_prefix="$acl_save_exec_prefix"
9605 prefix="$acl_save_prefix"
9607 if test "X$x" = "X-L$dependency_libdir"; then
9608 haveit=yes
9609 break
9611 done
9612 if test -z "$haveit"; then
9613 if test -d "$dependency_libdir"; then
9614 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
9617 haveit=
9618 for x in $LDFLAGS $LTLIBICONV; do
9620 acl_save_prefix="$prefix"
9621 prefix="$acl_final_prefix"
9622 acl_save_exec_prefix="$exec_prefix"
9623 exec_prefix="$acl_final_exec_prefix"
9624 eval x=\"$x\"
9625 exec_prefix="$acl_save_exec_prefix"
9626 prefix="$acl_save_prefix"
9628 if test "X$x" = "X-L$dependency_libdir"; then
9629 haveit=yes
9630 break
9632 done
9633 if test -z "$haveit"; then
9634 if test -d "$dependency_libdir"; then
9635 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
9641 -R*)
9642 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9643 if test "$enable_rpath" != no; then
9644 haveit=
9645 for x in $rpathdirs; do
9646 if test "X$x" = "X$dir"; then
9647 haveit=yes
9648 break
9650 done
9651 if test -z "$haveit"; then
9652 rpathdirs="$rpathdirs $dir"
9654 haveit=
9655 for x in $ltrpathdirs; do
9656 if test "X$x" = "X$dir"; then
9657 haveit=yes
9658 break
9660 done
9661 if test -z "$haveit"; then
9662 ltrpathdirs="$ltrpathdirs $dir"
9666 -l*)
9667 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9669 *.la)
9670 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9673 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9674 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9676 esac
9677 done
9679 else
9680 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9681 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9685 done
9686 done
9687 if test "X$rpathdirs" != "X"; then
9688 if test -n "$acl_hardcode_libdir_separator"; then
9689 alldirs=
9690 for found_dir in $rpathdirs; do
9691 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9692 done
9693 acl_save_libdir="$libdir"
9694 libdir="$alldirs"
9695 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9696 libdir="$acl_save_libdir"
9697 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9698 else
9699 for found_dir in $rpathdirs; do
9700 acl_save_libdir="$libdir"
9701 libdir="$found_dir"
9702 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9703 libdir="$acl_save_libdir"
9704 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9705 done
9708 if test "X$ltrpathdirs" != "X"; then
9709 for found_dir in $ltrpathdirs; do
9710 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9711 done
9742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
9743 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
9744 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
9745 then :
9746 printf %s "(cached) " >&6
9747 else $as_nop
9748 gt_save_LIBS="$LIBS"
9749 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9751 /* end confdefs.h. */
9752 #include <CoreFoundation/CFPreferences.h>
9754 main (void)
9756 CFPreferencesCopyAppValue(NULL, NULL)
9758 return 0;
9760 _ACEOF
9761 if ac_fn_c_try_link "$LINENO"
9762 then :
9763 gt_cv_func_CFPreferencesCopyAppValue=yes
9764 else $as_nop
9765 gt_cv_func_CFPreferencesCopyAppValue=no
9767 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9768 conftest$ac_exeext conftest.$ac_ext
9769 LIBS="$gt_save_LIBS"
9771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
9772 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
9773 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
9775 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
9778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
9779 printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
9780 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
9781 then :
9782 printf %s "(cached) " >&6
9783 else $as_nop
9784 gt_save_LIBS="$LIBS"
9785 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9787 /* end confdefs.h. */
9788 #include <CoreFoundation/CFLocale.h>
9790 main (void)
9792 CFLocaleCopyPreferredLanguages();
9794 return 0;
9796 _ACEOF
9797 if ac_fn_c_try_link "$LINENO"
9798 then :
9799 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
9800 else $as_nop
9801 gt_cv_func_CFLocaleCopyPreferredLanguages=no
9803 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9804 conftest$ac_exeext conftest.$ac_ext
9805 LIBS="$gt_save_LIBS"
9807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
9808 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
9809 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
9811 printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
9814 INTL_MACOSX_LIBS=
9815 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
9816 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
9817 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
9825 LIBINTL=
9826 LTLIBINTL=
9827 POSUB=
9829 case " $gt_needs " in
9830 *" need-formatstring-macros "*) gt_api_version=3 ;;
9831 *" need-ngettext "*) gt_api_version=2 ;;
9832 *) gt_api_version=1 ;;
9833 esac
9834 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
9835 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
9837 if test "$USE_NLS" = "yes"; then
9838 gt_use_preinstalled_gnugettext=no
9841 if test $gt_api_version -ge 3; then
9842 gt_revision_test_code='
9843 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9844 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
9845 #endif
9846 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
9848 else
9849 gt_revision_test_code=
9851 if test $gt_api_version -ge 2; then
9852 gt_expression_test_code=' + * ngettext ("", "", 0)'
9853 else
9854 gt_expression_test_code=
9857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
9858 printf %s "checking for GNU gettext in libc... " >&6; }
9859 if eval test \${$gt_func_gnugettext_libc+y}
9860 then :
9861 printf %s "(cached) " >&6
9862 else $as_nop
9863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9864 /* end confdefs.h. */
9866 #include <libintl.h>
9867 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9868 extern int _nl_msg_cat_cntr;
9869 extern int *_nl_domain_bindings;
9870 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
9871 #else
9872 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9873 #endif
9874 $gt_revision_test_code
9877 main (void)
9880 bindtextdomain ("", "");
9881 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
9884 return 0;
9886 _ACEOF
9887 if ac_fn_c_try_link "$LINENO"
9888 then :
9889 eval "$gt_func_gnugettext_libc=yes"
9890 else $as_nop
9891 eval "$gt_func_gnugettext_libc=no"
9893 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9894 conftest$ac_exeext conftest.$ac_ext
9896 eval ac_res=\$$gt_func_gnugettext_libc
9897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9898 printf "%s\n" "$ac_res" >&6; }
9900 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
9906 am_save_CPPFLAGS="$CPPFLAGS"
9908 for element in $INCICONV; do
9909 haveit=
9910 for x in $CPPFLAGS; do
9912 acl_save_prefix="$prefix"
9913 prefix="$acl_final_prefix"
9914 acl_save_exec_prefix="$exec_prefix"
9915 exec_prefix="$acl_final_exec_prefix"
9916 eval x=\"$x\"
9917 exec_prefix="$acl_save_exec_prefix"
9918 prefix="$acl_save_prefix"
9920 if test "X$x" = "X$element"; then
9921 haveit=yes
9922 break
9924 done
9925 if test -z "$haveit"; then
9926 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9928 done
9931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9932 printf %s "checking for iconv... " >&6; }
9933 if test ${am_cv_func_iconv+y}
9934 then :
9935 printf %s "(cached) " >&6
9936 else $as_nop
9938 am_cv_func_iconv="no, consider installing GNU libiconv"
9939 am_cv_lib_iconv=no
9940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941 /* end confdefs.h. */
9943 #include <stdlib.h>
9944 #include <iconv.h>
9947 main (void)
9949 iconv_t cd = iconv_open("","");
9950 iconv(cd,NULL,NULL,NULL,NULL);
9951 iconv_close(cd);
9953 return 0;
9955 _ACEOF
9956 if ac_fn_c_try_link "$LINENO"
9957 then :
9958 am_cv_func_iconv=yes
9960 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9961 conftest$ac_exeext conftest.$ac_ext
9962 if test "$am_cv_func_iconv" != yes; then
9963 am_save_LIBS="$LIBS"
9964 LIBS="$LIBS $LIBICONV"
9965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9966 /* end confdefs.h. */
9968 #include <stdlib.h>
9969 #include <iconv.h>
9972 main (void)
9974 iconv_t cd = iconv_open("","");
9975 iconv(cd,NULL,NULL,NULL,NULL);
9976 iconv_close(cd);
9978 return 0;
9980 _ACEOF
9981 if ac_fn_c_try_link "$LINENO"
9982 then :
9983 am_cv_lib_iconv=yes
9984 am_cv_func_iconv=yes
9986 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9987 conftest$ac_exeext conftest.$ac_ext
9988 LIBS="$am_save_LIBS"
9992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9993 printf "%s\n" "$am_cv_func_iconv" >&6; }
9994 if test "$am_cv_func_iconv" = yes; then
9995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9996 printf %s "checking for working iconv... " >&6; }
9997 if test ${am_cv_func_iconv_works+y}
9998 then :
9999 printf %s "(cached) " >&6
10000 else $as_nop
10002 am_save_LIBS="$LIBS"
10003 if test $am_cv_lib_iconv = yes; then
10004 LIBS="$LIBS $LIBICONV"
10006 am_cv_func_iconv_works=no
10007 for ac_iconv_const in '' 'const'; do
10008 if test "$cross_compiling" = yes
10009 then :
10010 case "$host_os" in
10011 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
10012 *) am_cv_func_iconv_works="guessing yes" ;;
10013 esac
10014 else $as_nop
10015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10016 /* end confdefs.h. */
10018 #include <iconv.h>
10019 #include <string.h>
10021 #ifndef ICONV_CONST
10022 # define ICONV_CONST $ac_iconv_const
10023 #endif
10026 main (void)
10028 int result = 0;
10029 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
10030 returns. */
10032 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
10033 if (cd_utf8_to_88591 != (iconv_t)(-1))
10035 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
10036 char buf[10];
10037 ICONV_CONST char *inptr = input;
10038 size_t inbytesleft = strlen (input);
10039 char *outptr = buf;
10040 size_t outbytesleft = sizeof (buf);
10041 size_t res = iconv (cd_utf8_to_88591,
10042 &inptr, &inbytesleft,
10043 &outptr, &outbytesleft);
10044 if (res == 0)
10045 result |= 1;
10046 iconv_close (cd_utf8_to_88591);
10049 /* Test against Solaris 10 bug: Failures are not distinguishable from
10050 successful returns. */
10052 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
10053 if (cd_ascii_to_88591 != (iconv_t)(-1))
10055 static ICONV_CONST char input[] = "\263";
10056 char buf[10];
10057 ICONV_CONST char *inptr = input;
10058 size_t inbytesleft = strlen (input);
10059 char *outptr = buf;
10060 size_t outbytesleft = sizeof (buf);
10061 size_t res = iconv (cd_ascii_to_88591,
10062 &inptr, &inbytesleft,
10063 &outptr, &outbytesleft);
10064 if (res == 0)
10065 result |= 2;
10066 iconv_close (cd_ascii_to_88591);
10069 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
10071 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
10072 if (cd_88591_to_utf8 != (iconv_t)(-1))
10074 static ICONV_CONST char input[] = "\304";
10075 static char buf[2] = { (char)0xDE, (char)0xAD };
10076 ICONV_CONST char *inptr = input;
10077 size_t inbytesleft = 1;
10078 char *outptr = buf;
10079 size_t outbytesleft = 1;
10080 size_t res = iconv (cd_88591_to_utf8,
10081 &inptr, &inbytesleft,
10082 &outptr, &outbytesleft);
10083 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
10084 result |= 4;
10085 iconv_close (cd_88591_to_utf8);
10088 #if 0 /* This bug could be worked around by the caller. */
10089 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
10091 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
10092 if (cd_88591_to_utf8 != (iconv_t)(-1))
10094 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
10095 char buf[50];
10096 ICONV_CONST char *inptr = input;
10097 size_t inbytesleft = strlen (input);
10098 char *outptr = buf;
10099 size_t outbytesleft = sizeof (buf);
10100 size_t res = iconv (cd_88591_to_utf8,
10101 &inptr, &inbytesleft,
10102 &outptr, &outbytesleft);
10103 if ((int)res > 0)
10104 result |= 8;
10105 iconv_close (cd_88591_to_utf8);
10108 #endif
10109 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
10110 provided. */
10112 /* Try standardized names. */
10113 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
10114 /* Try IRIX, OSF/1 names. */
10115 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
10116 /* Try AIX names. */
10117 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
10118 /* Try HP-UX names. */
10119 iconv_t cd4 = iconv_open ("utf8", "eucJP");
10120 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
10121 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
10122 result |= 16;
10123 if (cd1 != (iconv_t)(-1))
10124 iconv_close (cd1);
10125 if (cd2 != (iconv_t)(-1))
10126 iconv_close (cd2);
10127 if (cd3 != (iconv_t)(-1))
10128 iconv_close (cd3);
10129 if (cd4 != (iconv_t)(-1))
10130 iconv_close (cd4);
10132 return result;
10135 return 0;
10137 _ACEOF
10138 if ac_fn_c_try_run "$LINENO"
10139 then :
10140 am_cv_func_iconv_works=yes
10142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10143 conftest.$ac_objext conftest.beam conftest.$ac_ext
10146 test "$am_cv_func_iconv_works" = no || break
10147 done
10148 LIBS="$am_save_LIBS"
10151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
10152 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
10153 case "$am_cv_func_iconv_works" in
10154 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
10155 *) am_func_iconv=yes ;;
10156 esac
10157 else
10158 am_func_iconv=no am_cv_lib_iconv=no
10160 if test "$am_func_iconv" = yes; then
10162 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
10165 if test "$am_cv_lib_iconv" = yes; then
10166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10167 printf %s "checking how to link with libiconv... " >&6; }
10168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10169 printf "%s\n" "$LIBICONV" >&6; }
10170 else
10171 CPPFLAGS="$am_save_CPPFLAGS"
10172 LIBICONV=
10173 LTLIBICONV=
10185 use_additional=yes
10187 acl_save_prefix="$prefix"
10188 prefix="$acl_final_prefix"
10189 acl_save_exec_prefix="$exec_prefix"
10190 exec_prefix="$acl_final_exec_prefix"
10192 eval additional_includedir=\"$includedir\"
10193 eval additional_libdir=\"$libdir\"
10194 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
10195 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
10197 exec_prefix="$acl_save_exec_prefix"
10198 prefix="$acl_save_prefix"
10201 # Check whether --with-libintl-prefix was given.
10202 if test ${with_libintl_prefix+y}
10203 then :
10204 withval=$with_libintl_prefix;
10205 if test "X$withval" = "Xno"; then
10206 use_additional=no
10207 else
10208 if test "X$withval" = "X"; then
10210 acl_save_prefix="$prefix"
10211 prefix="$acl_final_prefix"
10212 acl_save_exec_prefix="$exec_prefix"
10213 exec_prefix="$acl_final_exec_prefix"
10215 eval additional_includedir=\"$includedir\"
10216 eval additional_libdir=\"$libdir\"
10217 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
10218 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
10220 exec_prefix="$acl_save_exec_prefix"
10221 prefix="$acl_save_prefix"
10223 else
10224 additional_includedir="$withval/include"
10225 additional_libdir="$withval/$acl_libdirstem"
10226 additional_libdir2="$withval/$acl_libdirstem2"
10227 additional_libdir3="$withval/$acl_libdirstem3"
10233 if test "X$additional_libdir2" = "X$additional_libdir"; then
10234 additional_libdir2=
10236 if test "X$additional_libdir3" = "X$additional_libdir"; then
10237 additional_libdir3=
10239 LIBINTL=
10240 LTLIBINTL=
10241 INCINTL=
10242 LIBINTL_PREFIX=
10243 HAVE_LIBINTL=
10244 rpathdirs=
10245 ltrpathdirs=
10246 names_already_handled=
10247 names_next_round='intl '
10248 while test -n "$names_next_round"; do
10249 names_this_round="$names_next_round"
10250 names_next_round=
10251 for name in $names_this_round; do
10252 already_handled=
10253 for n in $names_already_handled; do
10254 if test "$n" = "$name"; then
10255 already_handled=yes
10256 break
10258 done
10259 if test -z "$already_handled"; then
10260 names_already_handled="$names_already_handled $name"
10261 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10262 eval value=\"\$HAVE_LIB$uppername\"
10263 if test -n "$value"; then
10264 if test "$value" = yes; then
10265 eval value=\"\$LIB$uppername\"
10266 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10267 eval value=\"\$LTLIB$uppername\"
10268 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10269 else
10272 else
10273 found_dir=
10274 found_la=
10275 found_so=
10276 found_a=
10277 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10278 if test -n "$acl_shlibext"; then
10279 shrext=".$acl_shlibext" # typically: shrext=.so
10280 else
10281 shrext=
10283 if test $use_additional = yes; then
10284 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
10285 if test "X$found_dir" = "X"; then
10286 eval dir=\$$additional_libdir_variable
10287 if test -n "$dir"; then
10288 if test -n "$acl_shlibext"; then
10289 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
10290 found_dir="$dir"
10291 found_so="$dir/$libname$shrext"
10292 else
10293 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10294 ver=`(cd "$dir" && \
10295 for f in "$libname$shrext".*; do echo "$f"; done \
10296 | sed -e "s,^$libname$shrext\\\\.,," \
10297 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10298 | sed 1q ) 2>/dev/null`
10299 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
10300 found_dir="$dir"
10301 found_so="$dir/$libname$shrext.$ver"
10303 else
10304 eval library_names=\"$acl_library_names_spec\"
10305 for f in $library_names; do
10306 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
10307 found_dir="$dir"
10308 found_so="$dir/$f"
10309 break
10311 done
10315 if test "X$found_dir" = "X"; then
10316 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
10317 found_dir="$dir"
10318 found_a="$dir/$libname.$acl_libext"
10321 if test "X$found_dir" != "X"; then
10322 if test -f "$dir/$libname.la"; then
10323 found_la="$dir/$libname.la"
10328 done
10330 if test "X$found_dir" = "X"; then
10331 for x in $LDFLAGS $LTLIBINTL; do
10333 acl_save_prefix="$prefix"
10334 prefix="$acl_final_prefix"
10335 acl_save_exec_prefix="$exec_prefix"
10336 exec_prefix="$acl_final_exec_prefix"
10337 eval x=\"$x\"
10338 exec_prefix="$acl_save_exec_prefix"
10339 prefix="$acl_save_prefix"
10341 case "$x" in
10342 -L*)
10343 dir=`echo "X$x" | sed -e 's/^X-L//'`
10344 if test -n "$acl_shlibext"; then
10345 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
10346 found_dir="$dir"
10347 found_so="$dir/$libname$shrext"
10348 else
10349 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10350 ver=`(cd "$dir" && \
10351 for f in "$libname$shrext".*; do echo "$f"; done \
10352 | sed -e "s,^$libname$shrext\\\\.,," \
10353 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10354 | sed 1q ) 2>/dev/null`
10355 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
10356 found_dir="$dir"
10357 found_so="$dir/$libname$shrext.$ver"
10359 else
10360 eval library_names=\"$acl_library_names_spec\"
10361 for f in $library_names; do
10362 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
10363 found_dir="$dir"
10364 found_so="$dir/$f"
10365 break
10367 done
10371 if test "X$found_dir" = "X"; then
10372 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
10373 found_dir="$dir"
10374 found_a="$dir/$libname.$acl_libext"
10377 if test "X$found_dir" != "X"; then
10378 if test -f "$dir/$libname.la"; then
10379 found_la="$dir/$libname.la"
10383 esac
10384 if test "X$found_dir" != "X"; then
10385 break
10387 done
10389 if test "X$found_dir" != "X"; then
10390 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10391 if test "X$found_so" != "X"; then
10392 if test "$enable_rpath" = no \
10393 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10394 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
10395 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
10396 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10397 else
10398 haveit=
10399 for x in $ltrpathdirs; do
10400 if test "X$x" = "X$found_dir"; then
10401 haveit=yes
10402 break
10404 done
10405 if test -z "$haveit"; then
10406 ltrpathdirs="$ltrpathdirs $found_dir"
10408 if test "$acl_hardcode_direct" = yes; then
10409 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10410 else
10411 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10412 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10413 haveit=
10414 for x in $rpathdirs; do
10415 if test "X$x" = "X$found_dir"; then
10416 haveit=yes
10417 break
10419 done
10420 if test -z "$haveit"; then
10421 rpathdirs="$rpathdirs $found_dir"
10423 else
10424 haveit=
10425 for x in $LDFLAGS $LIBINTL; do
10427 acl_save_prefix="$prefix"
10428 prefix="$acl_final_prefix"
10429 acl_save_exec_prefix="$exec_prefix"
10430 exec_prefix="$acl_final_exec_prefix"
10431 eval x=\"$x\"
10432 exec_prefix="$acl_save_exec_prefix"
10433 prefix="$acl_save_prefix"
10435 if test "X$x" = "X-L$found_dir"; then
10436 haveit=yes
10437 break
10439 done
10440 if test -z "$haveit"; then
10441 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10443 if test "$acl_hardcode_minus_L" != no; then
10444 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10445 else
10446 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10451 else
10452 if test "X$found_a" != "X"; then
10453 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10454 else
10455 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10458 additional_includedir=
10459 case "$found_dir" in
10460 */$acl_libdirstem | */$acl_libdirstem/)
10461 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10462 if test "$name" = 'intl'; then
10463 LIBINTL_PREFIX="$basedir"
10465 additional_includedir="$basedir/include"
10467 */$acl_libdirstem2 | */$acl_libdirstem2/)
10468 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
10469 if test "$name" = 'intl'; then
10470 LIBINTL_PREFIX="$basedir"
10472 additional_includedir="$basedir/include"
10474 */$acl_libdirstem3 | */$acl_libdirstem3/)
10475 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
10476 if test "$name" = 'intl'; then
10477 LIBINTL_PREFIX="$basedir"
10479 additional_includedir="$basedir/include"
10481 esac
10482 if test "X$additional_includedir" != "X"; then
10483 if test "X$additional_includedir" != "X/usr/include"; then
10484 haveit=
10485 if test "X$additional_includedir" = "X/usr/local/include"; then
10486 if test -n "$GCC"; then
10487 case $host_os in
10488 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10489 esac
10492 if test -z "$haveit"; then
10493 for x in $CPPFLAGS $INCINTL; do
10495 acl_save_prefix="$prefix"
10496 prefix="$acl_final_prefix"
10497 acl_save_exec_prefix="$exec_prefix"
10498 exec_prefix="$acl_final_exec_prefix"
10499 eval x=\"$x\"
10500 exec_prefix="$acl_save_exec_prefix"
10501 prefix="$acl_save_prefix"
10503 if test "X$x" = "X-I$additional_includedir"; then
10504 haveit=yes
10505 break
10507 done
10508 if test -z "$haveit"; then
10509 if test -d "$additional_includedir"; then
10510 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10516 if test -n "$found_la"; then
10517 save_libdir="$libdir"
10518 case "$found_la" in
10519 */* | *\\*) . "$found_la" ;;
10520 *) . "./$found_la" ;;
10521 esac
10522 libdir="$save_libdir"
10523 for dep in $dependency_libs; do
10524 case "$dep" in
10525 -L*)
10526 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10527 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
10528 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
10529 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
10530 haveit=
10531 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
10532 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
10533 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
10534 if test -n "$GCC"; then
10535 case $host_os in
10536 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10537 esac
10540 if test -z "$haveit"; then
10541 haveit=
10542 for x in $LDFLAGS $LIBINTL; do
10544 acl_save_prefix="$prefix"
10545 prefix="$acl_final_prefix"
10546 acl_save_exec_prefix="$exec_prefix"
10547 exec_prefix="$acl_final_exec_prefix"
10548 eval x=\"$x\"
10549 exec_prefix="$acl_save_exec_prefix"
10550 prefix="$acl_save_prefix"
10552 if test "X$x" = "X-L$dependency_libdir"; then
10553 haveit=yes
10554 break
10556 done
10557 if test -z "$haveit"; then
10558 if test -d "$dependency_libdir"; then
10559 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
10562 haveit=
10563 for x in $LDFLAGS $LTLIBINTL; do
10565 acl_save_prefix="$prefix"
10566 prefix="$acl_final_prefix"
10567 acl_save_exec_prefix="$exec_prefix"
10568 exec_prefix="$acl_final_exec_prefix"
10569 eval x=\"$x\"
10570 exec_prefix="$acl_save_exec_prefix"
10571 prefix="$acl_save_prefix"
10573 if test "X$x" = "X-L$dependency_libdir"; then
10574 haveit=yes
10575 break
10577 done
10578 if test -z "$haveit"; then
10579 if test -d "$dependency_libdir"; then
10580 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
10586 -R*)
10587 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10588 if test "$enable_rpath" != no; then
10589 haveit=
10590 for x in $rpathdirs; do
10591 if test "X$x" = "X$dir"; then
10592 haveit=yes
10593 break
10595 done
10596 if test -z "$haveit"; then
10597 rpathdirs="$rpathdirs $dir"
10599 haveit=
10600 for x in $ltrpathdirs; do
10601 if test "X$x" = "X$dir"; then
10602 haveit=yes
10603 break
10605 done
10606 if test -z "$haveit"; then
10607 ltrpathdirs="$ltrpathdirs $dir"
10611 -l*)
10612 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10614 *.la)
10615 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10618 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10619 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10621 esac
10622 done
10624 else
10625 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10626 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10630 done
10631 done
10632 if test "X$rpathdirs" != "X"; then
10633 if test -n "$acl_hardcode_libdir_separator"; then
10634 alldirs=
10635 for found_dir in $rpathdirs; do
10636 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10637 done
10638 acl_save_libdir="$libdir"
10639 libdir="$alldirs"
10640 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10641 libdir="$acl_save_libdir"
10642 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10643 else
10644 for found_dir in $rpathdirs; do
10645 acl_save_libdir="$libdir"
10646 libdir="$found_dir"
10647 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10648 libdir="$acl_save_libdir"
10649 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10650 done
10653 if test "X$ltrpathdirs" != "X"; then
10654 for found_dir in $ltrpathdirs; do
10655 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10656 done
10663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
10664 printf %s "checking for GNU gettext in libintl... " >&6; }
10665 if eval test \${$gt_func_gnugettext_libintl+y}
10666 then :
10667 printf %s "(cached) " >&6
10668 else $as_nop
10669 gt_save_CPPFLAGS="$CPPFLAGS"
10670 CPPFLAGS="$CPPFLAGS $INCINTL"
10671 gt_save_LIBS="$LIBS"
10672 LIBS="$LIBS $LIBINTL"
10673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10674 /* end confdefs.h. */
10676 #include <libintl.h>
10677 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10678 extern int _nl_msg_cat_cntr;
10679 extern
10680 #ifdef __cplusplus
10682 #endif
10683 const char *_nl_expand_alias (const char *);
10684 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10685 #else
10686 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10687 #endif
10688 $gt_revision_test_code
10691 main (void)
10694 bindtextdomain ("", "");
10695 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
10698 return 0;
10700 _ACEOF
10701 if ac_fn_c_try_link "$LINENO"
10702 then :
10703 eval "$gt_func_gnugettext_libintl=yes"
10704 else $as_nop
10705 eval "$gt_func_gnugettext_libintl=no"
10707 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10708 conftest$ac_exeext conftest.$ac_ext
10709 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
10710 LIBS="$LIBS $LIBICONV"
10711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712 /* end confdefs.h. */
10714 #include <libintl.h>
10715 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10716 extern int _nl_msg_cat_cntr;
10717 extern
10718 #ifdef __cplusplus
10720 #endif
10721 const char *_nl_expand_alias (const char *);
10722 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10723 #else
10724 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10725 #endif
10726 $gt_revision_test_code
10729 main (void)
10732 bindtextdomain ("", "");
10733 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
10736 return 0;
10738 _ACEOF
10739 if ac_fn_c_try_link "$LINENO"
10740 then :
10741 LIBINTL="$LIBINTL $LIBICONV"
10742 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10743 eval "$gt_func_gnugettext_libintl=yes"
10746 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10747 conftest$ac_exeext conftest.$ac_ext
10749 CPPFLAGS="$gt_save_CPPFLAGS"
10750 LIBS="$gt_save_LIBS"
10752 eval ac_res=\$$gt_func_gnugettext_libintl
10753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10754 printf "%s\n" "$ac_res" >&6; }
10757 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
10758 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
10759 && test "$PACKAGE" != gettext-runtime \
10760 && test "$PACKAGE" != gettext-tools; }; then
10761 gt_use_preinstalled_gnugettext=yes
10762 else
10763 LIBINTL=
10764 LTLIBINTL=
10765 INCINTL=
10770 if test -n "$INTL_MACOSX_LIBS"; then
10771 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10772 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10773 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
10774 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
10778 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10779 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10781 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
10783 else
10784 USE_NLS=no
10788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
10789 printf %s "checking whether to use NLS... " >&6; }
10790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
10791 printf "%s\n" "$USE_NLS" >&6; }
10792 if test "$USE_NLS" = "yes"; then
10793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
10794 printf %s "checking where the gettext function comes from... " >&6; }
10795 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10796 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10797 gt_source="external libintl"
10798 else
10799 gt_source="libc"
10801 else
10802 gt_source="included intl directory"
10804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
10805 printf "%s\n" "$gt_source" >&6; }
10808 if test "$USE_NLS" = "yes"; then
10810 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10811 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
10813 printf %s "checking how to link with libintl... " >&6; }
10814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
10815 printf "%s\n" "$LIBINTL" >&6; }
10817 for element in $INCINTL; do
10818 haveit=
10819 for x in $CPPFLAGS; do
10821 acl_save_prefix="$prefix"
10822 prefix="$acl_final_prefix"
10823 acl_save_exec_prefix="$exec_prefix"
10824 exec_prefix="$acl_final_exec_prefix"
10825 eval x=\"$x\"
10826 exec_prefix="$acl_save_exec_prefix"
10827 prefix="$acl_save_prefix"
10829 if test "X$x" = "X$element"; then
10830 haveit=yes
10831 break
10833 done
10834 if test -z "$haveit"; then
10835 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10837 done
10842 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
10845 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
10849 POSUB=po
10854 INTLLIBS="$LIBINTL"
10862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10863 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10864 set x ${MAKE-make}
10865 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10866 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
10867 then :
10868 printf %s "(cached) " >&6
10869 else $as_nop
10870 cat >conftest.make <<\_ACEOF
10871 SHELL = /bin/sh
10872 all:
10873 @echo '@@@%%%=$(MAKE)=@@@%%%'
10874 _ACEOF
10875 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10876 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10877 *@@@%%%=?*=@@@%%%*)
10878 eval ac_cv_prog_make_${ac_make}_set=yes;;
10880 eval ac_cv_prog_make_${ac_make}_set=no;;
10881 esac
10882 rm -f conftest.make
10884 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10886 printf "%s\n" "yes" >&6; }
10887 SET_MAKE=
10888 else
10889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10890 printf "%s\n" "no" >&6; }
10891 SET_MAKE="MAKE=${MAKE-make}"
10894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
10895 printf %s "checking for GNU make... " >&6; }
10896 if test ${_cv_gnu_make_command+y}
10897 then :
10898 printf %s "(cached) " >&6
10899 else $as_nop
10900 _cv_gnu_make_command='' ;
10901 if test -n "$FORCE_NATIVE_MAKE" ; then
10902 MAKES="make"
10903 else
10904 MAKES="make gmake gnumake"
10906 for a in "$MAKE" $MAKES ; do
10907 if test -z "$a" ; then continue ; fi ;
10908 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
10909 _cv_gnu_make_command=$a ;
10910 break;
10912 done ;
10915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
10916 printf "%s\n" "$_cv_gnu_make_command" >&6; } ;
10917 if test "x$_cv_gnu_make_command" != "x" ; then
10918 ifGNUmake='' ;
10919 ifNotGNUmake='#' ;
10920 else
10921 ifGNUmake='#' ;
10922 ifNotGNUmake='' ;
10923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
10924 printf "%s\n" "\"Not found\"" >&6; };
10929 # Extract the first word of "ln", so it can be a program name with args.
10930 set dummy ln; ac_word=$2
10931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10932 printf %s "checking for $ac_word... " >&6; }
10933 if test ${ac_cv_path_LN+y}
10934 then :
10935 printf %s "(cached) " >&6
10936 else $as_nop
10937 case $LN in
10938 [\\/]* | ?:[\\/]*)
10939 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10943 for as_dir in $PATH
10945 IFS=$as_save_IFS
10946 case $as_dir in #(((
10947 '') as_dir=./ ;;
10948 */) ;;
10949 *) as_dir=$as_dir/ ;;
10950 esac
10951 for ac_exec_ext in '' $ac_executable_extensions; do
10952 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10953 ac_cv_path_LN="$as_dir$ac_word$ac_exec_ext"
10954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10955 break 2
10957 done
10958 done
10959 IFS=$as_save_IFS
10961 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10963 esac
10965 LN=$ac_cv_path_LN
10966 if test -n "$LN"; then
10967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
10968 printf "%s\n" "$LN" >&6; }
10969 else
10970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10971 printf "%s\n" "no" >&6; }
10976 mkdir_p=$MKDIR_P
10978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
10979 printf %s "checking whether ln -s works... " >&6; }
10980 LN_S=$as_ln_s
10981 if test "$LN_S" = "ln -s"; then
10982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10983 printf "%s\n" "yes" >&6; }
10984 else
10985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
10986 printf "%s\n" "no, using $LN_S" >&6; }
10989 # Extract the first word of "mv", so it can be a program name with args.
10990 set dummy mv; ac_word=$2
10991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10992 printf %s "checking for $ac_word... " >&6; }
10993 if test ${ac_cv_path_MV+y}
10994 then :
10995 printf %s "(cached) " >&6
10996 else $as_nop
10997 case $MV in
10998 [\\/]* | ?:[\\/]*)
10999 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11003 for as_dir in $PATH
11005 IFS=$as_save_IFS
11006 case $as_dir in #(((
11007 '') as_dir=./ ;;
11008 */) ;;
11009 *) as_dir=$as_dir/ ;;
11010 esac
11011 for ac_exec_ext in '' $ac_executable_extensions; do
11012 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11013 ac_cv_path_MV="$as_dir$ac_word$ac_exec_ext"
11014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11015 break 2
11017 done
11018 done
11019 IFS=$as_save_IFS
11021 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11023 esac
11025 MV=$ac_cv_path_MV
11026 if test -n "$MV"; then
11027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11028 printf "%s\n" "$MV" >&6; }
11029 else
11030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11031 printf "%s\n" "no" >&6; }
11035 # Extract the first word of "cp", so it can be a program name with args.
11036 set dummy cp; ac_word=$2
11037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11038 printf %s "checking for $ac_word... " >&6; }
11039 if test ${ac_cv_path_CP+y}
11040 then :
11041 printf %s "(cached) " >&6
11042 else $as_nop
11043 case $CP in
11044 [\\/]* | ?:[\\/]*)
11045 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11049 for as_dir in $PATH
11051 IFS=$as_save_IFS
11052 case $as_dir in #(((
11053 '') as_dir=./ ;;
11054 */) ;;
11055 *) as_dir=$as_dir/ ;;
11056 esac
11057 for ac_exec_ext in '' $ac_executable_extensions; do
11058 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11059 ac_cv_path_CP="$as_dir$ac_word$ac_exec_ext"
11060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11061 break 2
11063 done
11064 done
11065 IFS=$as_save_IFS
11067 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11069 esac
11071 CP=$ac_cv_path_CP
11072 if test -n "$CP"; then
11073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11074 printf "%s\n" "$CP" >&6; }
11075 else
11076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11077 printf "%s\n" "no" >&6; }
11081 # Extract the first word of "rm", so it can be a program name with args.
11082 set dummy rm; ac_word=$2
11083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11084 printf %s "checking for $ac_word... " >&6; }
11085 if test ${ac_cv_path_RM+y}
11086 then :
11087 printf %s "(cached) " >&6
11088 else $as_nop
11089 case $RM in
11090 [\\/]* | ?:[\\/]*)
11091 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11095 for as_dir in $PATH
11097 IFS=$as_save_IFS
11098 case $as_dir in #(((
11099 '') as_dir=./ ;;
11100 */) ;;
11101 *) as_dir=$as_dir/ ;;
11102 esac
11103 for ac_exec_ext in '' $ac_executable_extensions; do
11104 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11105 ac_cv_path_RM="$as_dir$ac_word$ac_exec_ext"
11106 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11107 break 2
11109 done
11110 done
11111 IFS=$as_save_IFS
11113 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11115 esac
11117 RM=$ac_cv_path_RM
11118 if test -n "$RM"; then
11119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11120 printf "%s\n" "$RM" >&6; }
11121 else
11122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11123 printf "%s\n" "no" >&6; }
11127 # Extract the first word of "chmod", so it can be a program name with args.
11128 set dummy chmod; ac_word=$2
11129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11130 printf %s "checking for $ac_word... " >&6; }
11131 if test ${ac_cv_path_CHMOD+y}
11132 then :
11133 printf %s "(cached) " >&6
11134 else $as_nop
11135 case $CHMOD in
11136 [\\/]* | ?:[\\/]*)
11137 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11141 for as_dir in $PATH
11143 IFS=$as_save_IFS
11144 case $as_dir in #(((
11145 '') as_dir=./ ;;
11146 */) ;;
11147 *) as_dir=$as_dir/ ;;
11148 esac
11149 for ac_exec_ext in '' $ac_executable_extensions; do
11150 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11151 ac_cv_path_CHMOD="$as_dir$ac_word$ac_exec_ext"
11152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11153 break 2
11155 done
11156 done
11157 IFS=$as_save_IFS
11159 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11161 esac
11163 CHMOD=$ac_cv_path_CHMOD
11164 if test -n "$CHMOD"; then
11165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11166 printf "%s\n" "$CHMOD" >&6; }
11167 else
11168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11169 printf "%s\n" "no" >&6; }
11173 for ac_prog in gawk mawk nawk awk
11175 # Extract the first word of "$ac_prog", so it can be a program name with args.
11176 set dummy $ac_prog; ac_word=$2
11177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11178 printf %s "checking for $ac_word... " >&6; }
11179 if test ${ac_cv_prog_AWK+y}
11180 then :
11181 printf %s "(cached) " >&6
11182 else $as_nop
11183 if test -n "$AWK"; then
11184 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11185 else
11186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11187 for as_dir in $PATH
11189 IFS=$as_save_IFS
11190 case $as_dir in #(((
11191 '') as_dir=./ ;;
11192 */) ;;
11193 *) as_dir=$as_dir/ ;;
11194 esac
11195 for ac_exec_ext in '' $ac_executable_extensions; do
11196 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11197 ac_cv_prog_AWK="$ac_prog"
11198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11199 break 2
11201 done
11202 done
11203 IFS=$as_save_IFS
11207 AWK=$ac_cv_prog_AWK
11208 if test -n "$AWK"; then
11209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11210 printf "%s\n" "$AWK" >&6; }
11211 else
11212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11213 printf "%s\n" "no" >&6; }
11217 test -n "$AWK" && break
11218 done
11220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11221 printf %s "checking for egrep... " >&6; }
11222 if test ${ac_cv_path_EGREP+y}
11223 then :
11224 printf %s "(cached) " >&6
11225 else $as_nop
11226 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11227 then ac_cv_path_EGREP="$GREP -E"
11228 else
11229 if test -z "$EGREP"; then
11230 ac_path_EGREP_found=false
11231 # Loop through the user's path and test for each of PROGNAME-LIST
11232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11233 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11235 IFS=$as_save_IFS
11236 case $as_dir in #(((
11237 '') as_dir=./ ;;
11238 */) ;;
11239 *) as_dir=$as_dir/ ;;
11240 esac
11241 for ac_prog in egrep
11243 for ac_exec_ext in '' $ac_executable_extensions; do
11244 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11245 as_fn_executable_p "$ac_path_EGREP" || continue
11246 # Check for GNU ac_path_EGREP and select it if it is found.
11247 # Check for GNU $ac_path_EGREP
11248 case `"$ac_path_EGREP" --version 2>&1` in
11249 *GNU*)
11250 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11252 ac_count=0
11253 printf %s 0123456789 >"conftest.in"
11254 while :
11256 cat "conftest.in" "conftest.in" >"conftest.tmp"
11257 mv "conftest.tmp" "conftest.in"
11258 cp "conftest.in" "conftest.nl"
11259 printf "%s\n" 'EGREP' >> "conftest.nl"
11260 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11261 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11262 as_fn_arith $ac_count + 1 && ac_count=$as_val
11263 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11264 # Best one so far, save it but keep looking for a better one
11265 ac_cv_path_EGREP="$ac_path_EGREP"
11266 ac_path_EGREP_max=$ac_count
11268 # 10*(2^10) chars as input seems more than enough
11269 test $ac_count -gt 10 && break
11270 done
11271 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11272 esac
11274 $ac_path_EGREP_found && break 3
11275 done
11276 done
11277 done
11278 IFS=$as_save_IFS
11279 if test -z "$ac_cv_path_EGREP"; then
11280 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11282 else
11283 ac_cv_path_EGREP=$EGREP
11288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11289 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11290 EGREP="$ac_cv_path_EGREP"
11293 # Extract the first word of "sed", so it can be a program name with args.
11294 set dummy sed; ac_word=$2
11295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11296 printf %s "checking for $ac_word... " >&6; }
11297 if test ${ac_cv_path_SED+y}
11298 then :
11299 printf %s "(cached) " >&6
11300 else $as_nop
11301 case $SED in
11302 [\\/]* | ?:[\\/]*)
11303 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11307 for as_dir in $PATH
11309 IFS=$as_save_IFS
11310 case $as_dir in #(((
11311 '') as_dir=./ ;;
11312 */) ;;
11313 *) as_dir=$as_dir/ ;;
11314 esac
11315 for ac_exec_ext in '' $ac_executable_extensions; do
11316 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11317 ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
11318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11319 break 2
11321 done
11322 done
11323 IFS=$as_save_IFS
11325 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11327 esac
11329 SED=$ac_cv_path_SED
11330 if test -n "$SED"; then
11331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11332 printf "%s\n" "$SED" >&6; }
11333 else
11334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11335 printf "%s\n" "no" >&6; }
11339 # Extract the first word of "perl", so it can be a program name with args.
11340 set dummy perl; ac_word=$2
11341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11342 printf %s "checking for $ac_word... " >&6; }
11343 if test ${ac_cv_path_PERL+y}
11344 then :
11345 printf %s "(cached) " >&6
11346 else $as_nop
11347 case $PERL in
11348 [\\/]* | ?:[\\/]*)
11349 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11353 for as_dir in $PATH
11355 IFS=$as_save_IFS
11356 case $as_dir in #(((
11357 '') as_dir=./ ;;
11358 */) ;;
11359 *) as_dir=$as_dir/ ;;
11360 esac
11361 for ac_exec_ext in '' $ac_executable_extensions; do
11362 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11363 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
11364 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11365 break 2
11367 done
11368 done
11369 IFS=$as_save_IFS
11371 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11373 esac
11375 PERL=$ac_cv_path_PERL
11376 if test -n "$PERL"; then
11377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11378 printf "%s\n" "$PERL" >&6; }
11379 else
11380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11381 printf "%s\n" "no" >&6; }
11385 # Extract the first word of "ldconfig", so it can be a program name with args.
11386 set dummy ldconfig; ac_word=$2
11387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11388 printf %s "checking for $ac_word... " >&6; }
11389 if test ${ac_cv_path_LDCONFIG+y}
11390 then :
11391 printf %s "(cached) " >&6
11392 else $as_nop
11393 case $LDCONFIG in
11394 [\\/]* | ?:[\\/]*)
11395 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11399 for as_dir in $PATH
11401 IFS=$as_save_IFS
11402 case $as_dir in #(((
11403 '') as_dir=./ ;;
11404 */) ;;
11405 *) as_dir=$as_dir/ ;;
11406 esac
11407 for ac_exec_ext in '' $ac_executable_extensions; do
11408 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11409 ac_cv_path_LDCONFIG="$as_dir$ac_word$ac_exec_ext"
11410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11411 break 2
11413 done
11414 done
11415 IFS=$as_save_IFS
11417 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11419 esac
11421 LDCONFIG=$ac_cv_path_LDCONFIG
11422 if test -n "$LDCONFIG"; then
11423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
11424 printf "%s\n" "$LDCONFIG" >&6; }
11425 else
11426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11427 printf "%s\n" "no" >&6; }
11431 if test -n "$ac_tool_prefix"; then
11432 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11433 set dummy ${ac_tool_prefix}ar; ac_word=$2
11434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11435 printf %s "checking for $ac_word... " >&6; }
11436 if test ${ac_cv_prog_AR+y}
11437 then :
11438 printf %s "(cached) " >&6
11439 else $as_nop
11440 if test -n "$AR"; then
11441 ac_cv_prog_AR="$AR" # Let the user override the test.
11442 else
11443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11444 for as_dir in $PATH
11446 IFS=$as_save_IFS
11447 case $as_dir in #(((
11448 '') as_dir=./ ;;
11449 */) ;;
11450 *) as_dir=$as_dir/ ;;
11451 esac
11452 for ac_exec_ext in '' $ac_executable_extensions; do
11453 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11454 ac_cv_prog_AR="${ac_tool_prefix}ar"
11455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11456 break 2
11458 done
11459 done
11460 IFS=$as_save_IFS
11464 AR=$ac_cv_prog_AR
11465 if test -n "$AR"; then
11466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11467 printf "%s\n" "$AR" >&6; }
11468 else
11469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11470 printf "%s\n" "no" >&6; }
11475 if test -z "$ac_cv_prog_AR"; then
11476 ac_ct_AR=$AR
11477 # Extract the first word of "ar", so it can be a program name with args.
11478 set dummy ar; ac_word=$2
11479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11480 printf %s "checking for $ac_word... " >&6; }
11481 if test ${ac_cv_prog_ac_ct_AR+y}
11482 then :
11483 printf %s "(cached) " >&6
11484 else $as_nop
11485 if test -n "$ac_ct_AR"; then
11486 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11487 else
11488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11489 for as_dir in $PATH
11491 IFS=$as_save_IFS
11492 case $as_dir in #(((
11493 '') as_dir=./ ;;
11494 */) ;;
11495 *) as_dir=$as_dir/ ;;
11496 esac
11497 for ac_exec_ext in '' $ac_executable_extensions; do
11498 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11499 ac_cv_prog_ac_ct_AR="ar"
11500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11501 break 2
11503 done
11504 done
11505 IFS=$as_save_IFS
11509 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11510 if test -n "$ac_ct_AR"; then
11511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11512 printf "%s\n" "$ac_ct_AR" >&6; }
11513 else
11514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11515 printf "%s\n" "no" >&6; }
11518 if test "x$ac_ct_AR" = x; then
11519 AR="ar"
11520 else
11521 case $cross_compiling:$ac_tool_warned in
11522 yes:)
11523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11524 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11525 ac_tool_warned=yes ;;
11526 esac
11527 AR=$ac_ct_AR
11529 else
11530 AR="$ac_cv_prog_AR"
11533 if test -n "$ac_tool_prefix"; then
11534 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11535 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11537 printf %s "checking for $ac_word... " >&6; }
11538 if test ${ac_cv_prog_RANLIB+y}
11539 then :
11540 printf %s "(cached) " >&6
11541 else $as_nop
11542 if test -n "$RANLIB"; then
11543 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11544 else
11545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11546 for as_dir in $PATH
11548 IFS=$as_save_IFS
11549 case $as_dir in #(((
11550 '') as_dir=./ ;;
11551 */) ;;
11552 *) as_dir=$as_dir/ ;;
11553 esac
11554 for ac_exec_ext in '' $ac_executable_extensions; do
11555 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11556 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11558 break 2
11560 done
11561 done
11562 IFS=$as_save_IFS
11566 RANLIB=$ac_cv_prog_RANLIB
11567 if test -n "$RANLIB"; then
11568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11569 printf "%s\n" "$RANLIB" >&6; }
11570 else
11571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11572 printf "%s\n" "no" >&6; }
11577 if test -z "$ac_cv_prog_RANLIB"; then
11578 ac_ct_RANLIB=$RANLIB
11579 # Extract the first word of "ranlib", so it can be a program name with args.
11580 set dummy ranlib; ac_word=$2
11581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11582 printf %s "checking for $ac_word... " >&6; }
11583 if test ${ac_cv_prog_ac_ct_RANLIB+y}
11584 then :
11585 printf %s "(cached) " >&6
11586 else $as_nop
11587 if test -n "$ac_ct_RANLIB"; then
11588 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11589 else
11590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11591 for as_dir in $PATH
11593 IFS=$as_save_IFS
11594 case $as_dir in #(((
11595 '') as_dir=./ ;;
11596 */) ;;
11597 *) as_dir=$as_dir/ ;;
11598 esac
11599 for ac_exec_ext in '' $ac_executable_extensions; do
11600 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11601 ac_cv_prog_ac_ct_RANLIB="ranlib"
11602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11603 break 2
11605 done
11606 done
11607 IFS=$as_save_IFS
11611 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11612 if test -n "$ac_ct_RANLIB"; then
11613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11614 printf "%s\n" "$ac_ct_RANLIB" >&6; }
11615 else
11616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11617 printf "%s\n" "no" >&6; }
11620 if test "x$ac_ct_RANLIB" = x; then
11621 RANLIB=":"
11622 else
11623 case $cross_compiling:$ac_tool_warned in
11624 yes:)
11625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11626 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11627 ac_tool_warned=yes ;;
11628 esac
11629 RANLIB=$ac_ct_RANLIB
11631 else
11632 RANLIB="$ac_cv_prog_RANLIB"
11635 if test -n "$ac_tool_prefix"; then
11636 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11637 set dummy ${ac_tool_prefix}strip; ac_word=$2
11638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11639 printf %s "checking for $ac_word... " >&6; }
11640 if test ${ac_cv_prog_STRIP+y}
11641 then :
11642 printf %s "(cached) " >&6
11643 else $as_nop
11644 if test -n "$STRIP"; then
11645 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11646 else
11647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11648 for as_dir in $PATH
11650 IFS=$as_save_IFS
11651 case $as_dir in #(((
11652 '') as_dir=./ ;;
11653 */) ;;
11654 *) as_dir=$as_dir/ ;;
11655 esac
11656 for ac_exec_ext in '' $ac_executable_extensions; do
11657 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11658 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11660 break 2
11662 done
11663 done
11664 IFS=$as_save_IFS
11668 STRIP=$ac_cv_prog_STRIP
11669 if test -n "$STRIP"; then
11670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11671 printf "%s\n" "$STRIP" >&6; }
11672 else
11673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11674 printf "%s\n" "no" >&6; }
11679 if test -z "$ac_cv_prog_STRIP"; then
11680 ac_ct_STRIP=$STRIP
11681 # Extract the first word of "strip", so it can be a program name with args.
11682 set dummy strip; ac_word=$2
11683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11684 printf %s "checking for $ac_word... " >&6; }
11685 if test ${ac_cv_prog_ac_ct_STRIP+y}
11686 then :
11687 printf %s "(cached) " >&6
11688 else $as_nop
11689 if test -n "$ac_ct_STRIP"; then
11690 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11691 else
11692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11693 for as_dir in $PATH
11695 IFS=$as_save_IFS
11696 case $as_dir in #(((
11697 '') as_dir=./ ;;
11698 */) ;;
11699 *) as_dir=$as_dir/ ;;
11700 esac
11701 for ac_exec_ext in '' $ac_executable_extensions; do
11702 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11703 ac_cv_prog_ac_ct_STRIP="strip"
11704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11705 break 2
11707 done
11708 done
11709 IFS=$as_save_IFS
11713 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11714 if test -n "$ac_ct_STRIP"; then
11715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11716 printf "%s\n" "$ac_ct_STRIP" >&6; }
11717 else
11718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11719 printf "%s\n" "no" >&6; }
11722 if test "x$ac_ct_STRIP" = x; then
11723 STRIP=":"
11724 else
11725 case $cross_compiling:$ac_tool_warned in
11726 yes:)
11727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11728 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11729 ac_tool_warned=yes ;;
11730 esac
11731 STRIP=$ac_ct_STRIP
11733 else
11734 STRIP="$ac_cv_prog_STRIP"
11737 # Extract the first word of "makeinfo", so it can be a program name with args.
11738 set dummy makeinfo; ac_word=$2
11739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11740 printf %s "checking for $ac_word... " >&6; }
11741 if test ${ac_cv_prog_MAKEINFO+y}
11742 then :
11743 printf %s "(cached) " >&6
11744 else $as_nop
11745 if test -n "$MAKEINFO"; then
11746 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11747 else
11748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11749 for as_dir in $PATH
11751 IFS=$as_save_IFS
11752 case $as_dir in #(((
11753 '') as_dir=./ ;;
11754 */) ;;
11755 *) as_dir=$as_dir/ ;;
11756 esac
11757 for ac_exec_ext in '' $ac_executable_extensions; do
11758 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11759 ac_cv_prog_MAKEINFO="makeinfo"
11760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11761 break 2
11763 done
11764 done
11765 IFS=$as_save_IFS
11769 MAKEINFO=$ac_cv_prog_MAKEINFO
11770 if test -n "$MAKEINFO"; then
11771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
11772 printf "%s\n" "$MAKEINFO" >&6; }
11773 else
11774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11775 printf "%s\n" "no" >&6; }
11779 if test "_$MAKEINFO" = "_"; then
11780 MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
11781 else
11782 case "$MAKEINFO" in
11783 */missing.*)
11784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
11785 *** Makeinfo is missing. Info documentation will not be built." >&5
11786 printf "%s\n" "$as_me: WARNING:
11787 *** Makeinfo is missing. Info documentation will not be built." >&2;}
11791 esac
11795 # See if we need a separate native compiler.
11796 if test $cross_compiling = no; then
11797 BUILD_CC="$CC"
11799 else
11800 for ac_prog in gcc cc
11802 # Extract the first word of "$ac_prog", so it can be a program name with args.
11803 set dummy $ac_prog; ac_word=$2
11804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11805 printf %s "checking for $ac_word... " >&6; }
11806 if test ${ac_cv_prog_BUILD_CC+y}
11807 then :
11808 printf %s "(cached) " >&6
11809 else $as_nop
11810 if test -n "$BUILD_CC"; then
11811 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11812 else
11813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11814 for as_dir in $PATH
11816 IFS=$as_save_IFS
11817 case $as_dir in #(((
11818 '') as_dir=./ ;;
11819 */) ;;
11820 *) as_dir=$as_dir/ ;;
11821 esac
11822 for ac_exec_ext in '' $ac_executable_extensions; do
11823 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11824 ac_cv_prog_BUILD_CC="$ac_prog"
11825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11826 break 2
11828 done
11829 done
11830 IFS=$as_save_IFS
11834 BUILD_CC=$ac_cv_prog_BUILD_CC
11835 if test -n "$BUILD_CC"; then
11836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
11837 printf "%s\n" "$BUILD_CC" >&6; }
11838 else
11839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11840 printf "%s\n" "no" >&6; }
11844 test -n "$BUILD_CC" && break
11845 done
11848 ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
11849 if test "x$ac_cv_header_dirent_h" = xyes
11850 then :
11851 printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
11854 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
11855 if test "x$ac_cv_header_errno_h" = xyes
11856 then :
11857 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
11860 ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
11861 if test "x$ac_cv_header_execinfo_h" = xyes
11862 then :
11863 printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h
11866 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11867 if test "x$ac_cv_header_getopt_h" = xyes
11868 then :
11869 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
11872 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
11873 if test "x$ac_cv_header_malloc_h" = xyes
11874 then :
11875 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
11878 ac_fn_c_check_header_compile "$LINENO" "mntent.h" "ac_cv_header_mntent_h" "$ac_includes_default"
11879 if test "x$ac_cv_header_mntent_h" = xyes
11880 then :
11881 printf "%s\n" "#define HAVE_MNTENT_H 1" >>confdefs.h
11884 ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
11885 if test "x$ac_cv_header_paths_h" = xyes
11886 then :
11887 printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
11890 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11891 if test "x$ac_cv_header_pthread_h" = xyes
11892 then :
11893 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
11896 ac_fn_c_check_header_compile "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
11897 if test "x$ac_cv_header_semaphore_h" = xyes
11898 then :
11899 printf "%s\n" "#define HAVE_SEMAPHORE_H 1" >>confdefs.h
11902 ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
11903 if test "x$ac_cv_header_setjmp_h" = xyes
11904 then :
11905 printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
11908 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
11909 if test "x$ac_cv_header_signal_h" = xyes
11910 then :
11911 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
11914 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
11915 if test "x$ac_cv_header_stdarg_h" = xyes
11916 then :
11917 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
11920 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11921 if test "x$ac_cv_header_stdint_h" = xyes
11922 then :
11923 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
11926 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11927 if test "x$ac_cv_header_stdlib_h" = xyes
11928 then :
11929 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
11932 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
11933 if test "x$ac_cv_header_termios_h" = xyes
11934 then :
11935 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
11938 ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
11939 if test "x$ac_cv_header_termio_h" = xyes
11940 then :
11941 printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h
11944 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
11945 if test "x$ac_cv_header_unistd_h" = xyes
11946 then :
11947 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
11950 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
11951 if test "x$ac_cv_header_utime_h" = xyes
11952 then :
11953 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
11956 ac_fn_c_check_header_compile "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
11957 if test "x$ac_cv_header_attr_xattr_h" = xyes
11958 then :
11959 printf "%s\n" "#define HAVE_ATTR_XATTR_H 1" >>confdefs.h
11962 ac_fn_c_check_header_compile "$LINENO" "linux/falloc.h" "ac_cv_header_linux_falloc_h" "$ac_includes_default"
11963 if test "x$ac_cv_header_linux_falloc_h" = xyes
11964 then :
11965 printf "%s\n" "#define HAVE_LINUX_FALLOC_H 1" >>confdefs.h
11968 ac_fn_c_check_header_compile "$LINENO" "linux/fd.h" "ac_cv_header_linux_fd_h" "$ac_includes_default"
11969 if test "x$ac_cv_header_linux_fd_h" = xyes
11970 then :
11971 printf "%s\n" "#define HAVE_LINUX_FD_H 1" >>confdefs.h
11974 ac_fn_c_check_header_compile "$LINENO" "linux/fsmap.h" "ac_cv_header_linux_fsmap_h" "$ac_includes_default"
11975 if test "x$ac_cv_header_linux_fsmap_h" = xyes
11976 then :
11977 printf "%s\n" "#define HAVE_LINUX_FSMAP_H 1" >>confdefs.h
11980 ac_fn_c_check_header_compile "$LINENO" "linux/major.h" "ac_cv_header_linux_major_h" "$ac_includes_default"
11981 if test "x$ac_cv_header_linux_major_h" = xyes
11982 then :
11983 printf "%s\n" "#define HAVE_LINUX_MAJOR_H 1" >>confdefs.h
11986 ac_fn_c_check_header_compile "$LINENO" "linux/loop.h" "ac_cv_header_linux_loop_h" "$ac_includes_default"
11987 if test "x$ac_cv_header_linux_loop_h" = xyes
11988 then :
11989 printf "%s\n" "#define HAVE_LINUX_LOOP_H 1" >>confdefs.h
11992 ac_fn_c_check_header_compile "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
11993 if test "x$ac_cv_header_linux_types_h" = xyes
11994 then :
11995 printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
11998 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default"
11999 if test "x$ac_cv_header_net_if_dl_h" = xyes
12000 then :
12001 printf "%s\n" "#define HAVE_NET_IF_DL_H 1" >>confdefs.h
12004 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
12005 if test "x$ac_cv_header_netinet_in_h" = xyes
12006 then :
12007 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
12010 ac_fn_c_check_header_compile "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
12011 if test "x$ac_cv_header_sys_acl_h" = xyes
12012 then :
12013 printf "%s\n" "#define HAVE_SYS_ACL_H 1" >>confdefs.h
12016 ac_fn_c_check_header_compile "$LINENO" "sys/disklabel.h" "ac_cv_header_sys_disklabel_h" "$ac_includes_default"
12017 if test "x$ac_cv_header_sys_disklabel_h" = xyes
12018 then :
12019 printf "%s\n" "#define HAVE_SYS_DISKLABEL_H 1" >>confdefs.h
12022 ac_fn_c_check_header_compile "$LINENO" "sys/disk.h" "ac_cv_header_sys_disk_h" "$ac_includes_default"
12023 if test "x$ac_cv_header_sys_disk_h" = xyes
12024 then :
12025 printf "%s\n" "#define HAVE_SYS_DISK_H 1" >>confdefs.h
12028 ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
12029 if test "x$ac_cv_header_sys_file_h" = xyes
12030 then :
12031 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
12034 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
12035 if test "x$ac_cv_header_sys_ioctl_h" = xyes
12036 then :
12037 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
12040 ac_fn_c_check_header_compile "$LINENO" "sys/key.h" "ac_cv_header_sys_key_h" "$ac_includes_default"
12041 if test "x$ac_cv_header_sys_key_h" = xyes
12042 then :
12043 printf "%s\n" "#define HAVE_SYS_KEY_H 1" >>confdefs.h
12046 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
12047 if test "x$ac_cv_header_sys_mkdev_h" = xyes
12048 then :
12049 printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h
12052 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12053 if test "x$ac_cv_header_sys_mman_h" = xyes
12054 then :
12055 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
12058 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
12059 if test "x$ac_cv_header_sys_mount_h" = xyes
12060 then :
12061 printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
12064 ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
12065 if test "x$ac_cv_header_sys_prctl_h" = xyes
12066 then :
12067 printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h
12070 ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
12071 if test "x$ac_cv_header_sys_random_h" = xyes
12072 then :
12073 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
12076 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
12077 if test "x$ac_cv_header_sys_resource_h" = xyes
12078 then :
12079 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
12082 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
12083 if test "x$ac_cv_header_sys_select_h" = xyes
12084 then :
12085 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
12088 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12089 if test "x$ac_cv_header_sys_socket_h" = xyes
12090 then :
12091 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
12094 ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
12095 if test "x$ac_cv_header_sys_sockio_h" = xyes
12096 then :
12097 printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
12100 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
12101 if test "x$ac_cv_header_sys_stat_h" = xyes
12102 then :
12103 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
12106 ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
12107 if test "x$ac_cv_header_sys_syscall_h" = xyes
12108 then :
12109 printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h
12112 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
12113 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
12114 then :
12115 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
12118 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
12119 if test "x$ac_cv_header_sys_time_h" = xyes
12120 then :
12121 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
12124 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12125 if test "x$ac_cv_header_sys_types_h" = xyes
12126 then :
12127 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12130 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
12131 if test "x$ac_cv_header_sys_un_h" = xyes
12132 then :
12133 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
12136 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
12137 if test "x$ac_cv_header_sys_wait_h" = xyes
12138 then :
12139 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12142 ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
12143 if test "x$ac_cv_header_sys_xattr_h" = xyes
12144 then :
12145 printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
12149 case "$host_os" in
12150 mingw*)
12151 # The above checks only detect system headers, not the headers in
12152 # ./include/mingw/, so explicitly define them to be available.
12153 printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
12155 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
12157 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
12159 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12161 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
12164 esac
12165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12166 printf %s "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12168 for i in dd gdd ; do
12169 if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12170 DD=$i
12171 break
12173 done
12174 if test -n "$DD" ; then
12175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12176 printf "%s\n" "$DD" >&6; }
12177 else
12178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12179 printf "%s\n" "not found, using dd" >&6; }
12180 DD=dd
12181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12182 printf "%s\n" "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12186 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12187 #if HAVE_SYS_TYPES_H
12188 #include <sys/types.h>
12189 #endif
12190 #if HAVE_SYS_SOCKET
12191 #include <sys/socket.h>
12192 #endif
12195 if test "x$ac_cv_header_net_if_h" = xyes
12196 then :
12197 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
12201 ac_func=
12202 for ac_item in $ac_func_c_list
12204 if test $ac_func; then
12205 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
12206 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
12207 echo "#define $ac_item 1" >> confdefs.h
12209 ac_func=
12210 else
12211 ac_func=$ac_item
12213 done
12215 if test "x$ac_cv_func_vprintf" = xno
12216 then :
12217 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12218 if test "x$ac_cv_func__doprnt" = xyes
12219 then :
12221 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
12226 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12228 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes
12229 then :
12231 printf "%s\n" "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12235 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12236 if test "x$ac_cv_member_struct_stat_st_atim" = xyes
12237 then :
12239 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM 1" >>confdefs.h
12244 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12246 if test "x$ac_cv_type_ssize_t" = xyes
12247 then :
12249 printf "%s\n" "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12254 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12255 if test ${ac_cv_c_undeclared_builtin_options+y}
12256 then :
12257 printf %s "(cached) " >&6
12258 else $as_nop
12259 ac_save_CFLAGS=$CFLAGS
12260 ac_cv_c_undeclared_builtin_options='cannot detect'
12261 for ac_arg in '' -fno-builtin; do
12262 CFLAGS="$ac_save_CFLAGS $ac_arg"
12263 # This test program should *not* compile successfully.
12264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12265 /* end confdefs.h. */
12268 main (void)
12270 (void) strchr;
12272 return 0;
12274 _ACEOF
12275 if ac_fn_c_try_compile "$LINENO"
12276 then :
12278 else $as_nop
12279 # This test program should compile successfully.
12280 # No library function is consistently available on
12281 # freestanding implementations, so test against a dummy
12282 # declaration. Include always-available headers on the
12283 # off chance that they somehow elicit warnings.
12284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12285 /* end confdefs.h. */
12286 #include <float.h>
12287 #include <limits.h>
12288 #include <stdarg.h>
12289 #include <stddef.h>
12290 extern void ac_decl (int, char *);
12293 main (void)
12295 (void) ac_decl (0, (char *) 0);
12296 (void) ac_decl;
12299 return 0;
12301 _ACEOF
12302 if ac_fn_c_try_compile "$LINENO"
12303 then :
12304 if test x"$ac_arg" = x
12305 then :
12306 ac_cv_c_undeclared_builtin_options='none needed'
12307 else $as_nop
12308 ac_cv_c_undeclared_builtin_options=$ac_arg
12310 break
12312 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12314 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12315 done
12316 CFLAGS=$ac_save_CFLAGS
12319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12320 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12321 case $ac_cv_c_undeclared_builtin_options in #(
12322 'cannot detect') :
12323 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12324 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12325 as_fn_error $? "cannot make $CC report undeclared builtins
12326 See \`config.log' for more details" "$LINENO" 5; } ;; #(
12327 'none needed') :
12328 ac_c_undeclared_builtin_options='' ;; #(
12329 *) :
12330 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12331 esac
12333 ac_fn_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12334 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12335 if test "x$ac_cv_have_decl_llseek" = xyes
12336 then :
12338 printf "%s\n" "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12341 ac_fn_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12342 #define _LARGEFILE64_SOURCE
12343 #include <unistd.h>
12344 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12345 if test "x$ac_cv_have_decl_lseek64" = xyes
12346 then :
12348 printf "%s\n" "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12352 ac_fn_check_decl "$LINENO" "fsmap_sizeof" "ac_cv_have_decl_fsmap_sizeof" "#include <linux/fsmap.h>
12353 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12354 if test "x$ac_cv_have_decl_fsmap_sizeof" = xyes
12355 then :
12357 printf "%s\n" "#define HAVE_FSMAP_SIZEOF 1" >>confdefs.h
12360 # Check whether --enable-largefile was given.
12361 if test ${enable_largefile+y}
12362 then :
12363 enableval=$enable_largefile;
12366 if test "$enable_largefile" != no; then
12368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12369 printf %s "checking for special C compiler options needed for large files... " >&6; }
12370 if test ${ac_cv_sys_largefile_CC+y}
12371 then :
12372 printf %s "(cached) " >&6
12373 else $as_nop
12374 ac_cv_sys_largefile_CC=no
12375 if test "$GCC" != yes; then
12376 ac_save_CC=$CC
12377 while :; do
12378 # IRIX 6.2 and later do not support large files by default,
12379 # so use the C compiler's -n32 option if that helps.
12380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12381 /* end confdefs.h. */
12382 #include <sys/types.h>
12383 /* Check that off_t can represent 2**63 - 1 correctly.
12384 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12385 since some C++ compilers masquerading as C compilers
12386 incorrectly reject 9223372036854775807. */
12387 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12388 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12389 && LARGE_OFF_T % 2147483647 == 1)
12390 ? 1 : -1];
12392 main (void)
12396 return 0;
12398 _ACEOF
12399 if ac_fn_c_try_compile "$LINENO"
12400 then :
12401 break
12403 rm -f core conftest.err conftest.$ac_objext conftest.beam
12404 CC="$CC -n32"
12405 if ac_fn_c_try_compile "$LINENO"
12406 then :
12407 ac_cv_sys_largefile_CC=' -n32'; break
12409 rm -f core conftest.err conftest.$ac_objext conftest.beam
12410 break
12411 done
12412 CC=$ac_save_CC
12413 rm -f conftest.$ac_ext
12416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12417 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
12418 if test "$ac_cv_sys_largefile_CC" != no; then
12419 CC=$CC$ac_cv_sys_largefile_CC
12422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12423 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12424 if test ${ac_cv_sys_file_offset_bits+y}
12425 then :
12426 printf %s "(cached) " >&6
12427 else $as_nop
12428 while :; do
12429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12430 /* end confdefs.h. */
12431 #include <sys/types.h>
12432 /* Check that off_t can represent 2**63 - 1 correctly.
12433 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12434 since some C++ compilers masquerading as C compilers
12435 incorrectly reject 9223372036854775807. */
12436 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12437 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12438 && LARGE_OFF_T % 2147483647 == 1)
12439 ? 1 : -1];
12441 main (void)
12445 return 0;
12447 _ACEOF
12448 if ac_fn_c_try_compile "$LINENO"
12449 then :
12450 ac_cv_sys_file_offset_bits=no; break
12452 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12454 /* end confdefs.h. */
12455 #define _FILE_OFFSET_BITS 64
12456 #include <sys/types.h>
12457 /* Check that off_t can represent 2**63 - 1 correctly.
12458 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12459 since some C++ compilers masquerading as C compilers
12460 incorrectly reject 9223372036854775807. */
12461 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12462 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12463 && LARGE_OFF_T % 2147483647 == 1)
12464 ? 1 : -1];
12466 main (void)
12470 return 0;
12472 _ACEOF
12473 if ac_fn_c_try_compile "$LINENO"
12474 then :
12475 ac_cv_sys_file_offset_bits=64; break
12477 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12478 ac_cv_sys_file_offset_bits=unknown
12479 break
12480 done
12482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12483 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
12484 case $ac_cv_sys_file_offset_bits in #(
12485 no | unknown) ;;
12487 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
12489 esac
12490 rm -rf conftest*
12491 if test $ac_cv_sys_file_offset_bits = unknown; then
12492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12493 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
12494 if test ${ac_cv_sys_large_files+y}
12495 then :
12496 printf %s "(cached) " >&6
12497 else $as_nop
12498 while :; do
12499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12500 /* end confdefs.h. */
12501 #include <sys/types.h>
12502 /* Check that off_t can represent 2**63 - 1 correctly.
12503 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12504 since some C++ compilers masquerading as C compilers
12505 incorrectly reject 9223372036854775807. */
12506 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12507 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12508 && LARGE_OFF_T % 2147483647 == 1)
12509 ? 1 : -1];
12511 main (void)
12515 return 0;
12517 _ACEOF
12518 if ac_fn_c_try_compile "$LINENO"
12519 then :
12520 ac_cv_sys_large_files=no; break
12522 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12524 /* end confdefs.h. */
12525 #define _LARGE_FILES 1
12526 #include <sys/types.h>
12527 /* Check that off_t can represent 2**63 - 1 correctly.
12528 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12529 since some C++ compilers masquerading as C compilers
12530 incorrectly reject 9223372036854775807. */
12531 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12532 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12533 && LARGE_OFF_T % 2147483647 == 1)
12534 ? 1 : -1];
12536 main (void)
12540 return 0;
12542 _ACEOF
12543 if ac_fn_c_try_compile "$LINENO"
12544 then :
12545 ac_cv_sys_large_files=1; break
12547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12548 ac_cv_sys_large_files=unknown
12549 break
12550 done
12552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12553 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
12554 case $ac_cv_sys_large_files in #(
12555 no | unknown) ;;
12557 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
12559 esac
12560 rm -rf conftest*
12564 # The cast to long int works around a bug in the HP C Compiler
12565 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12566 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12567 # This bug is HP SR number 8606223364.
12568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12569 printf %s "checking size of short... " >&6; }
12570 if test ${ac_cv_sizeof_short+y}
12571 then :
12572 printf %s "(cached) " >&6
12573 else $as_nop
12574 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
12575 then :
12577 else $as_nop
12578 if test "$ac_cv_type_short" = yes; then
12579 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12580 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12581 as_fn_error 77 "cannot compute sizeof (short)
12582 See \`config.log' for more details" "$LINENO" 5; }
12583 else
12584 ac_cv_sizeof_short=0
12589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12590 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
12594 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
12597 # The cast to long int works around a bug in the HP C Compiler
12598 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12599 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12600 # This bug is HP SR number 8606223364.
12601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12602 printf %s "checking size of int... " >&6; }
12603 if test ${ac_cv_sizeof_int+y}
12604 then :
12605 printf %s "(cached) " >&6
12606 else $as_nop
12607 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
12608 then :
12610 else $as_nop
12611 if test "$ac_cv_type_int" = yes; then
12612 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12613 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12614 as_fn_error 77 "cannot compute sizeof (int)
12615 See \`config.log' for more details" "$LINENO" 5; }
12616 else
12617 ac_cv_sizeof_int=0
12622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12623 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
12627 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
12630 # The cast to long int works around a bug in the HP C Compiler
12631 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12632 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12633 # This bug is HP SR number 8606223364.
12634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12635 printf %s "checking size of long... " >&6; }
12636 if test ${ac_cv_sizeof_long+y}
12637 then :
12638 printf %s "(cached) " >&6
12639 else $as_nop
12640 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
12641 then :
12643 else $as_nop
12644 if test "$ac_cv_type_long" = yes; then
12645 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12646 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12647 as_fn_error 77 "cannot compute sizeof (long)
12648 See \`config.log' for more details" "$LINENO" 5; }
12649 else
12650 ac_cv_sizeof_long=0
12655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12656 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
12660 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
12663 # The cast to long int works around a bug in the HP C Compiler
12664 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12665 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12666 # This bug is HP SR number 8606223364.
12667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12668 printf %s "checking size of long long... " >&6; }
12669 if test ${ac_cv_sizeof_long_long+y}
12670 then :
12671 printf %s "(cached) " >&6
12672 else $as_nop
12673 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
12674 then :
12676 else $as_nop
12677 if test "$ac_cv_type_long_long" = yes; then
12678 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12679 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12680 as_fn_error 77 "cannot compute sizeof (long long)
12681 See \`config.log' for more details" "$LINENO" 5; }
12682 else
12683 ac_cv_sizeof_long_long=0
12688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12689 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
12693 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
12696 # The cast to long int works around a bug in the HP C Compiler
12697 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12698 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12699 # This bug is HP SR number 8606223364.
12700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12701 printf %s "checking size of off_t... " >&6; }
12702 if test ${ac_cv_sizeof_off_t+y}
12703 then :
12704 printf %s "(cached) " >&6
12705 else $as_nop
12706 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"
12707 then :
12709 else $as_nop
12710 if test "$ac_cv_type_off_t" = yes; then
12711 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12712 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12713 as_fn_error 77 "cannot compute sizeof (off_t)
12714 See \`config.log' for more details" "$LINENO" 5; }
12715 else
12716 ac_cv_sizeof_off_t=0
12721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12722 printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
12726 printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
12729 # The cast to long int works around a bug in the HP C Compiler
12730 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12731 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12732 # This bug is HP SR number 8606223364.
12733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12734 printf %s "checking size of time_t... " >&6; }
12735 if test ${ac_cv_sizeof_time_t+y}
12736 then :
12737 printf %s "(cached) " >&6
12738 else $as_nop
12739 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"
12740 then :
12742 else $as_nop
12743 if test "$ac_cv_type_time_t" = yes; then
12744 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12745 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12746 as_fn_error 77 "cannot compute sizeof (time_t)
12747 See \`config.log' for more details" "$LINENO" 5; }
12748 else
12749 ac_cv_sizeof_time_t=0
12754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12755 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
12759 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
12762 SIZEOF_SHORT=$ac_cv_sizeof_short
12763 SIZEOF_INT=$ac_cv_sizeof_int
12764 SIZEOF_LONG=$ac_cv_sizeof_long
12765 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12766 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12767 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12775 printf %s "checking whether byte ordering is bigendian... " >&6; }
12776 if test ${ac_cv_c_bigendian+y}
12777 then :
12778 printf %s "(cached) " >&6
12779 else $as_nop
12780 ac_cv_c_bigendian=unknown
12781 # See if we're dealing with a universal compiler.
12782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12783 /* end confdefs.h. */
12784 #ifndef __APPLE_CC__
12785 not a universal capable compiler
12786 #endif
12787 typedef int dummy;
12789 _ACEOF
12790 if ac_fn_c_try_compile "$LINENO"
12791 then :
12793 # Check for potential -arch flags. It is not universal unless
12794 # there are at least two -arch flags with different values.
12795 ac_arch=
12796 ac_prev=
12797 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12798 if test -n "$ac_prev"; then
12799 case $ac_word in
12800 i?86 | x86_64 | ppc | ppc64)
12801 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12802 ac_arch=$ac_word
12803 else
12804 ac_cv_c_bigendian=universal
12805 break
12808 esac
12809 ac_prev=
12810 elif test "x$ac_word" = "x-arch"; then
12811 ac_prev=arch
12813 done
12815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12816 if test $ac_cv_c_bigendian = unknown; then
12817 # See if sys/param.h defines the BYTE_ORDER macro.
12818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12819 /* end confdefs.h. */
12820 #include <sys/types.h>
12821 #include <sys/param.h>
12824 main (void)
12826 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12827 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12828 && LITTLE_ENDIAN)
12829 bogus endian macros
12830 #endif
12833 return 0;
12835 _ACEOF
12836 if ac_fn_c_try_compile "$LINENO"
12837 then :
12838 # It does; now see whether it defined to BIG_ENDIAN or not.
12839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12840 /* end confdefs.h. */
12841 #include <sys/types.h>
12842 #include <sys/param.h>
12845 main (void)
12847 #if BYTE_ORDER != BIG_ENDIAN
12848 not big endian
12849 #endif
12852 return 0;
12854 _ACEOF
12855 if ac_fn_c_try_compile "$LINENO"
12856 then :
12857 ac_cv_c_bigendian=yes
12858 else $as_nop
12859 ac_cv_c_bigendian=no
12861 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12863 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12865 if test $ac_cv_c_bigendian = unknown; then
12866 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12868 /* end confdefs.h. */
12869 #include <limits.h>
12872 main (void)
12874 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12875 bogus endian macros
12876 #endif
12879 return 0;
12881 _ACEOF
12882 if ac_fn_c_try_compile "$LINENO"
12883 then :
12884 # It does; now see whether it defined to _BIG_ENDIAN or not.
12885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12886 /* end confdefs.h. */
12887 #include <limits.h>
12890 main (void)
12892 #ifndef _BIG_ENDIAN
12893 not big endian
12894 #endif
12897 return 0;
12899 _ACEOF
12900 if ac_fn_c_try_compile "$LINENO"
12901 then :
12902 ac_cv_c_bigendian=yes
12903 else $as_nop
12904 ac_cv_c_bigendian=no
12906 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12908 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12910 if test $ac_cv_c_bigendian = unknown; then
12911 # Compile a test program.
12912 if test "$cross_compiling" = yes
12913 then :
12914 # Try to guess by grepping values from an object file.
12915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12916 /* end confdefs.h. */
12917 unsigned short int ascii_mm[] =
12918 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12919 unsigned short int ascii_ii[] =
12920 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12921 int use_ascii (int i) {
12922 return ascii_mm[i] + ascii_ii[i];
12924 unsigned short int ebcdic_ii[] =
12925 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12926 unsigned short int ebcdic_mm[] =
12927 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12928 int use_ebcdic (int i) {
12929 return ebcdic_mm[i] + ebcdic_ii[i];
12931 extern int foo;
12934 main (void)
12936 return use_ascii (foo) == use_ebcdic (foo);
12938 return 0;
12940 _ACEOF
12941 if ac_fn_c_try_compile "$LINENO"
12942 then :
12943 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12944 ac_cv_c_bigendian=yes
12946 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12947 if test "$ac_cv_c_bigendian" = unknown; then
12948 ac_cv_c_bigendian=no
12949 else
12950 # finding both strings is unlikely to happen, but who knows?
12951 ac_cv_c_bigendian=unknown
12955 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12956 else $as_nop
12957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12958 /* end confdefs.h. */
12959 $ac_includes_default
12961 main (void)
12964 /* Are we little or big endian? From Harbison&Steele. */
12965 union
12967 long int l;
12968 char c[sizeof (long int)];
12969 } u;
12970 u.l = 1;
12971 return u.c[sizeof (long int) - 1] == 1;
12974 return 0;
12976 _ACEOF
12977 if ac_fn_c_try_run "$LINENO"
12978 then :
12979 ac_cv_c_bigendian=no
12980 else $as_nop
12981 ac_cv_c_bigendian=yes
12983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12984 conftest.$ac_objext conftest.beam conftest.$ac_ext
12989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12990 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
12991 case $ac_cv_c_bigendian in #(
12992 yes)
12993 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
12994 ;; #(
12996 ;; #(
12997 universal)
12999 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13001 ;; #(
13003 as_fn_error $? "unknown endianness
13004 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13005 esac
13007 if test $cross_compiling = no; then
13008 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
13009 else
13010 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
13012 ASM_TYPES_HEADER=./asm_types.h
13014 echo "/* These defines are needed for the public ext2fs.h header file */" \
13015 > public_config.h
13016 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
13017 uniq tmp_config.$$ >> public_config.h
13018 else
13019 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
13021 if grep SIZEOF_TIME_T confdefs.h > tmp_config.$$; then
13022 uniq tmp_config.$$ >> public_config.h
13023 else
13024 echo "#undef SIZEOF_TIME_T" >> public_config.h
13026 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
13027 uniq tmp_config.$$ >> public_config.h
13028 else
13029 echo "#undef WORDS_BIGENDIAN" >> public_config.h
13031 rm -f tmp_config.$$
13032 PUBLIC_CONFIG_HEADER=./public_config.h
13034 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13035 if test "x$ac_cv_header_inttypes_h" = xyes
13036 then :
13037 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
13041 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
13042 if test "x$ac_cv_type_intptr_t" = xyes
13043 then :
13045 printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
13050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
13051 printf %s "checking whether struct stat has a st_flags field... " >&6; }
13052 if test ${e2fsprogs_cv_struct_st_flags+y}
13053 then :
13054 printf %s "(cached) " >&6
13055 else $as_nop
13056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13057 /* end confdefs.h. */
13058 #include <sys/stat.h>
13060 main (void)
13062 struct stat stat; stat.st_flags = 0;
13064 return 0;
13066 _ACEOF
13067 if ac_fn_c_try_compile "$LINENO"
13068 then :
13069 e2fsprogs_cv_struct_st_flags=yes
13070 else $as_nop
13071 e2fsprogs_cv_struct_st_flags=no
13073 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
13077 printf "%s\n" "$e2fsprogs_cv_struct_st_flags" >&6; }
13078 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
13079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
13080 printf %s "checking whether st_flags field is useful... " >&6; }
13081 if test ${e2fsprogs_cv_struct_st_flags_immut+y}
13082 then :
13083 printf %s "(cached) " >&6
13084 else $as_nop
13085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13086 /* end confdefs.h. */
13087 #include <sys/stat.h>
13089 main (void)
13091 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
13093 return 0;
13095 _ACEOF
13096 if ac_fn_c_try_compile "$LINENO"
13097 then :
13098 e2fsprogs_cv_struct_st_flags_immut=yes
13099 else $as_nop
13100 e2fsprogs_cv_struct_st_flags_immut=no
13102 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13106 printf "%s\n" "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
13107 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13109 printf "%s\n" "#define HAVE_STAT_FLAGS 1" >>confdefs.h
13113 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13114 #include <sys/socket.h>
13116 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
13117 then :
13119 printf "%s\n" "#define HAVE_SA_LEN 1" >>confdefs.h
13123 if test -n "$BLKID_CMT"; then
13124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_get_topology in -lblkid" >&5
13125 printf %s "checking for blkid_probe_get_topology in -lblkid... " >&6; }
13126 if test ${ac_cv_lib_blkid_blkid_probe_get_topology+y}
13127 then :
13128 printf %s "(cached) " >&6
13129 else $as_nop
13130 ac_check_lib_save_LIBS=$LIBS
13131 LIBS="-lblkid $LIBS"
13132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13133 /* end confdefs.h. */
13135 /* Override any GCC internal prototype to avoid an error.
13136 Use char because int might match the return type of a GCC
13137 builtin and then its argument prototype would still apply. */
13138 char blkid_probe_get_topology ();
13140 main (void)
13142 return blkid_probe_get_topology ();
13144 return 0;
13146 _ACEOF
13147 if ac_fn_c_try_link "$LINENO"
13148 then :
13149 ac_cv_lib_blkid_blkid_probe_get_topology=yes
13150 else $as_nop
13151 ac_cv_lib_blkid_blkid_probe_get_topology=no
13153 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13154 conftest$ac_exeext conftest.$ac_ext
13155 LIBS=$ac_check_lib_save_LIBS
13157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5
13158 printf "%s\n" "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; }
13159 if test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes
13160 then :
13162 printf "%s\n" "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h
13166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_topology_get_dax in -lblkid" >&5
13167 printf %s "checking for blkid_topology_get_dax in -lblkid... " >&6; }
13168 if test ${ac_cv_lib_blkid_blkid_topology_get_dax+y}
13169 then :
13170 printf %s "(cached) " >&6
13171 else $as_nop
13172 ac_check_lib_save_LIBS=$LIBS
13173 LIBS="-lblkid $LIBS"
13174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13175 /* end confdefs.h. */
13177 /* Override any GCC internal prototype to avoid an error.
13178 Use char because int might match the return type of a GCC
13179 builtin and then its argument prototype would still apply. */
13180 char blkid_topology_get_dax ();
13182 main (void)
13184 return blkid_topology_get_dax ();
13186 return 0;
13188 _ACEOF
13189 if ac_fn_c_try_link "$LINENO"
13190 then :
13191 ac_cv_lib_blkid_blkid_topology_get_dax=yes
13192 else $as_nop
13193 ac_cv_lib_blkid_blkid_topology_get_dax=no
13195 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13196 conftest$ac_exeext conftest.$ac_ext
13197 LIBS=$ac_check_lib_save_LIBS
13199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_topology_get_dax" >&5
13200 printf "%s\n" "$ac_cv_lib_blkid_blkid_topology_get_dax" >&6; }
13201 if test "x$ac_cv_lib_blkid_blkid_topology_get_dax" = xyes
13202 then :
13204 printf "%s\n" "#define HAVE_BLKID_TOPOLOGY_GET_DAX 1" >>confdefs.h
13208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_enable_partitions in -lblkid" >&5
13209 printf %s "checking for blkid_probe_enable_partitions in -lblkid... " >&6; }
13210 if test ${ac_cv_lib_blkid_blkid_probe_enable_partitions+y}
13211 then :
13212 printf %s "(cached) " >&6
13213 else $as_nop
13214 ac_check_lib_save_LIBS=$LIBS
13215 LIBS="-lblkid $LIBS"
13216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13217 /* end confdefs.h. */
13219 /* Override any GCC internal prototype to avoid an error.
13220 Use char because int might match the return type of a GCC
13221 builtin and then its argument prototype would still apply. */
13222 char blkid_probe_enable_partitions ();
13224 main (void)
13226 return blkid_probe_enable_partitions ();
13228 return 0;
13230 _ACEOF
13231 if ac_fn_c_try_link "$LINENO"
13232 then :
13233 ac_cv_lib_blkid_blkid_probe_enable_partitions=yes
13234 else $as_nop
13235 ac_cv_lib_blkid_blkid_probe_enable_partitions=no
13237 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13238 conftest$ac_exeext conftest.$ac_ext
13239 LIBS=$ac_check_lib_save_LIBS
13241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5
13242 printf "%s\n" "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; }
13243 if test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes
13244 then :
13246 printf "%s\n" "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h
13251 if test -n "$DLOPEN_LIB" ; then
13252 ac_cv_func_dlopen=yes
13254 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
13255 if test "x$ac_cv_func___secure_getenv" = xyes
13256 then :
13257 printf "%s\n" "#define HAVE___SECURE_GETENV 1" >>confdefs.h
13260 ac_fn_c_check_func "$LINENO" "add_key" "ac_cv_func_add_key"
13261 if test "x$ac_cv_func_add_key" = xyes
13262 then :
13263 printf "%s\n" "#define HAVE_ADD_KEY 1" >>confdefs.h
13266 ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
13267 if test "x$ac_cv_func_backtrace" = xyes
13268 then :
13269 printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h
13272 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
13273 if test "x$ac_cv_func_chflags" = xyes
13274 then :
13275 printf "%s\n" "#define HAVE_CHFLAGS 1" >>confdefs.h
13278 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13279 if test "x$ac_cv_func_dlopen" = xyes
13280 then :
13281 printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
13284 ac_fn_c_check_func "$LINENO" "fadvise64" "ac_cv_func_fadvise64"
13285 if test "x$ac_cv_func_fadvise64" = xyes
13286 then :
13287 printf "%s\n" "#define HAVE_FADVISE64 1" >>confdefs.h
13290 ac_fn_c_check_func "$LINENO" "fallocate" "ac_cv_func_fallocate"
13291 if test "x$ac_cv_func_fallocate" = xyes
13292 then :
13293 printf "%s\n" "#define HAVE_FALLOCATE 1" >>confdefs.h
13296 ac_fn_c_check_func "$LINENO" "fallocate64" "ac_cv_func_fallocate64"
13297 if test "x$ac_cv_func_fallocate64" = xyes
13298 then :
13299 printf "%s\n" "#define HAVE_FALLOCATE64 1" >>confdefs.h
13302 ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown"
13303 if test "x$ac_cv_func_fchown" = xyes
13304 then :
13305 printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h
13308 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
13309 if test "x$ac_cv_func_fcntl" = xyes
13310 then :
13311 printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
13314 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
13315 if test "x$ac_cv_func_fdatasync" = xyes
13316 then :
13317 printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h
13320 ac_fn_c_check_func "$LINENO" "fstat64" "ac_cv_func_fstat64"
13321 if test "x$ac_cv_func_fstat64" = xyes
13322 then :
13323 printf "%s\n" "#define HAVE_FSTAT64 1" >>confdefs.h
13326 ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync"
13327 if test "x$ac_cv_func_fsync" = xyes
13328 then :
13329 printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h
13332 ac_fn_c_check_func "$LINENO" "ftruncate64" "ac_cv_func_ftruncate64"
13333 if test "x$ac_cv_func_ftruncate64" = xyes
13334 then :
13335 printf "%s\n" "#define HAVE_FTRUNCATE64 1" >>confdefs.h
13338 ac_fn_c_check_func "$LINENO" "futimes" "ac_cv_func_futimes"
13339 if test "x$ac_cv_func_futimes" = xyes
13340 then :
13341 printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h
13344 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
13345 if test "x$ac_cv_func_getcwd" = xyes
13346 then :
13347 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
13350 ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
13351 if test "x$ac_cv_func_getdtablesize" = xyes
13352 then :
13353 printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h
13356 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
13357 if test "x$ac_cv_func_getentropy" = xyes
13358 then :
13359 printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
13362 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
13363 if test "x$ac_cv_func_gethostname" = xyes
13364 then :
13365 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
13368 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
13369 if test "x$ac_cv_func_getmntinfo" = xyes
13370 then :
13371 printf "%s\n" "#define HAVE_GETMNTINFO 1" >>confdefs.h
13374 ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
13375 if test "x$ac_cv_func_getpwuid_r" = xyes
13376 then :
13377 printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h
13380 ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom"
13381 if test "x$ac_cv_func_getrandom" = xyes
13382 then :
13383 printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
13386 ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
13387 if test "x$ac_cv_func_getrlimit" = xyes
13388 then :
13389 printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h
13392 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
13393 if test "x$ac_cv_func_getrusage" = xyes
13394 then :
13395 printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
13398 ac_fn_c_check_func "$LINENO" "jrand48" "ac_cv_func_jrand48"
13399 if test "x$ac_cv_func_jrand48" = xyes
13400 then :
13401 printf "%s\n" "#define HAVE_JRAND48 1" >>confdefs.h
13404 ac_fn_c_check_func "$LINENO" "keyctl" "ac_cv_func_keyctl"
13405 if test "x$ac_cv_func_keyctl" = xyes
13406 then :
13407 printf "%s\n" "#define HAVE_KEYCTL 1" >>confdefs.h
13410 ac_fn_c_check_func "$LINENO" "llistxattr" "ac_cv_func_llistxattr"
13411 if test "x$ac_cv_func_llistxattr" = xyes
13412 then :
13413 printf "%s\n" "#define HAVE_LLISTXATTR 1" >>confdefs.h
13416 ac_fn_c_check_func "$LINENO" "llseek" "ac_cv_func_llseek"
13417 if test "x$ac_cv_func_llseek" = xyes
13418 then :
13419 printf "%s\n" "#define HAVE_LLSEEK 1" >>confdefs.h
13422 ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
13423 if test "x$ac_cv_func_lseek64" = xyes
13424 then :
13425 printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h
13428 ac_fn_c_check_func "$LINENO" "mallinfo" "ac_cv_func_mallinfo"
13429 if test "x$ac_cv_func_mallinfo" = xyes
13430 then :
13431 printf "%s\n" "#define HAVE_MALLINFO 1" >>confdefs.h
13434 ac_fn_c_check_func "$LINENO" "mallinfo2" "ac_cv_func_mallinfo2"
13435 if test "x$ac_cv_func_mallinfo2" = xyes
13436 then :
13437 printf "%s\n" "#define HAVE_MALLINFO2 1" >>confdefs.h
13440 ac_fn_c_check_func "$LINENO" "mbstowcs" "ac_cv_func_mbstowcs"
13441 if test "x$ac_cv_func_mbstowcs" = xyes
13442 then :
13443 printf "%s\n" "#define HAVE_MBSTOWCS 1" >>confdefs.h
13446 ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign"
13447 if test "x$ac_cv_func_memalign" = xyes
13448 then :
13449 printf "%s\n" "#define HAVE_MEMALIGN 1" >>confdefs.h
13452 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
13453 if test "x$ac_cv_func_mempcpy" = xyes
13454 then :
13455 printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h
13458 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13459 if test "x$ac_cv_func_mmap" = xyes
13460 then :
13461 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
13464 ac_fn_c_check_func "$LINENO" "msync" "ac_cv_func_msync"
13465 if test "x$ac_cv_func_msync" = xyes
13466 then :
13467 printf "%s\n" "#define HAVE_MSYNC 1" >>confdefs.h
13470 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
13471 if test "x$ac_cv_func_nanosleep" = xyes
13472 then :
13473 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
13476 ac_fn_c_check_func "$LINENO" "open64" "ac_cv_func_open64"
13477 if test "x$ac_cv_func_open64" = xyes
13478 then :
13479 printf "%s\n" "#define HAVE_OPEN64 1" >>confdefs.h
13482 ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
13483 if test "x$ac_cv_func_pathconf" = xyes
13484 then :
13485 printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h
13488 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
13489 if test "x$ac_cv_func_posix_fadvise" = xyes
13490 then :
13491 printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
13494 ac_fn_c_check_func "$LINENO" "posix_fadvise64" "ac_cv_func_posix_fadvise64"
13495 if test "x$ac_cv_func_posix_fadvise64" = xyes
13496 then :
13497 printf "%s\n" "#define HAVE_POSIX_FADVISE64 1" >>confdefs.h
13500 ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
13501 if test "x$ac_cv_func_posix_memalign" = xyes
13502 then :
13503 printf "%s\n" "#define HAVE_POSIX_MEMALIGN 1" >>confdefs.h
13506 ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl"
13507 if test "x$ac_cv_func_prctl" = xyes
13508 then :
13509 printf "%s\n" "#define HAVE_PRCTL 1" >>confdefs.h
13512 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
13513 if test "x$ac_cv_func_pread" = xyes
13514 then :
13515 printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
13518 ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
13519 if test "x$ac_cv_func_pwrite" = xyes
13520 then :
13521 printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h
13524 ac_fn_c_check_func "$LINENO" "pread64" "ac_cv_func_pread64"
13525 if test "x$ac_cv_func_pread64" = xyes
13526 then :
13527 printf "%s\n" "#define HAVE_PREAD64 1" >>confdefs.h
13530 ac_fn_c_check_func "$LINENO" "pwrite64" "ac_cv_func_pwrite64"
13531 if test "x$ac_cv_func_pwrite64" = xyes
13532 then :
13533 printf "%s\n" "#define HAVE_PWRITE64 1" >>confdefs.h
13536 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
13537 if test "x$ac_cv_func_qsort_r" = xyes
13538 then :
13539 printf "%s\n" "#define HAVE_QSORT_R 1" >>confdefs.h
13542 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
13543 if test "x$ac_cv_func_secure_getenv" = xyes
13544 then :
13545 printf "%s\n" "#define HAVE_SECURE_GETENV 1" >>confdefs.h
13548 ac_fn_c_check_func "$LINENO" "setmntent" "ac_cv_func_setmntent"
13549 if test "x$ac_cv_func_setmntent" = xyes
13550 then :
13551 printf "%s\n" "#define HAVE_SETMNTENT 1" >>confdefs.h
13554 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
13555 if test "x$ac_cv_func_setresgid" = xyes
13556 then :
13557 printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h
13560 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
13561 if test "x$ac_cv_func_setresuid" = xyes
13562 then :
13563 printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h
13566 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
13567 if test "x$ac_cv_func_snprintf" = xyes
13568 then :
13569 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
13572 ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
13573 if test "x$ac_cv_func_srandom" = xyes
13574 then :
13575 printf "%s\n" "#define HAVE_SRANDOM 1" >>confdefs.h
13578 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
13579 if test "x$ac_cv_func_stpcpy" = xyes
13580 then :
13581 printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
13584 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
13585 if test "x$ac_cv_func_strcasecmp" = xyes
13586 then :
13587 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
13590 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
13591 if test "x$ac_cv_func_strdup" = xyes
13592 then :
13593 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
13596 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
13597 if test "x$ac_cv_func_strnlen" = xyes
13598 then :
13599 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
13602 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
13603 if test "x$ac_cv_func_strptime" = xyes
13604 then :
13605 printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h
13608 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
13609 if test "x$ac_cv_func_strtoull" = xyes
13610 then :
13611 printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
13614 ac_fn_c_check_func "$LINENO" "sync_file_range" "ac_cv_func_sync_file_range"
13615 if test "x$ac_cv_func_sync_file_range" = xyes
13616 then :
13617 printf "%s\n" "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h
13620 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
13621 if test "x$ac_cv_func_sysconf" = xyes
13622 then :
13623 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
13626 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
13627 if test "x$ac_cv_func_usleep" = xyes
13628 then :
13629 printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
13632 ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"
13633 if test "x$ac_cv_func_utime" = xyes
13634 then :
13635 printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
13638 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
13639 if test "x$ac_cv_func_utimes" = xyes
13640 then :
13641 printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
13644 ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
13645 if test "x$ac_cv_func_valloc" = xyes
13646 then :
13647 printf "%s\n" "#define HAVE_VALLOC 1" >>confdefs.h
13651 SOCKET_LIB=''
13652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13653 printf %s "checking for socket in -lsocket... " >&6; }
13654 if test ${ac_cv_lib_socket_socket+y}
13655 then :
13656 printf %s "(cached) " >&6
13657 else $as_nop
13658 ac_check_lib_save_LIBS=$LIBS
13659 LIBS="-lsocket $LIBS"
13660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13661 /* end confdefs.h. */
13663 /* Override any GCC internal prototype to avoid an error.
13664 Use char because int might match the return type of a GCC
13665 builtin and then its argument prototype would still apply. */
13666 char socket ();
13668 main (void)
13670 return socket ();
13672 return 0;
13674 _ACEOF
13675 if ac_fn_c_try_link "$LINENO"
13676 then :
13677 ac_cv_lib_socket_socket=yes
13678 else $as_nop
13679 ac_cv_lib_socket_socket=no
13681 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13682 conftest$ac_exeext conftest.$ac_ext
13683 LIBS=$ac_check_lib_save_LIBS
13685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13686 printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
13687 if test "x$ac_cv_lib_socket_socket" = xyes
13688 then :
13689 SOCKET_LIB=-lsocket
13693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13694 printf %s "checking for magic_file in -lmagic... " >&6; }
13695 if test ${ac_cv_lib_magic_magic_file+y}
13696 then :
13697 printf %s "(cached) " >&6
13698 else $as_nop
13699 ac_check_lib_save_LIBS=$LIBS
13700 LIBS="-lmagic $LIBS"
13701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h. */
13704 /* Override any GCC internal prototype to avoid an error.
13705 Use char because int might match the return type of a GCC
13706 builtin and then its argument prototype would still apply. */
13707 char magic_file ();
13709 main (void)
13711 return magic_file ();
13713 return 0;
13715 _ACEOF
13716 if ac_fn_c_try_link "$LINENO"
13717 then :
13718 ac_cv_lib_magic_magic_file=yes
13719 else $as_nop
13720 ac_cv_lib_magic_magic_file=no
13722 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13723 conftest$ac_exeext conftest.$ac_ext
13724 LIBS=$ac_check_lib_save_LIBS
13726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13727 printf "%s\n" "$ac_cv_lib_magic_magic_file" >&6; }
13728 if test "x$ac_cv_lib_magic_magic_file" = xyes
13729 then :
13730 MAGIC_LIB=-lmagic
13731 ac_fn_c_check_header_compile "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13732 if test "x$ac_cv_header_magic_h" = xyes
13733 then :
13734 printf "%s\n" "#define HAVE_MAGIC_H 1" >>confdefs.h
13740 if test "$ac_cv_func_dlopen" = yes ; then
13741 MAGIC_LIB=$DLOPEN_LIB
13745 # Check whether --with-libarchive was given.
13746 if test ${with_libarchive+y}
13747 then :
13748 withval=$with_libarchive; if test "$withval" = "no"
13749 then
13750 try_libarchive=""
13751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling libarchive support" >&5
13752 printf "%s\n" "Disabling libarchive support" >&6; }
13754 printf "%s\n" "#define CONFIG_DISABLE_LIBARCHIVE 1" >>confdefs.h
13756 elif test "$withval" = "direct"
13757 then
13758 try_libarchive="direct"
13759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Testing for libarchive support (forced direct link)" >&5
13760 printf "%s\n" "Testing for libarchive support (forced direct link)" >&6; }
13761 else
13762 try_libarchive="yes"
13763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Testing for libarchive support (with dlopen)" >&5
13764 printf "%s\n" "Testing for libarchive support (with dlopen)" >&6; }
13767 else $as_nop
13768 try_libarchive="yes"
13769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try testing for libarchive support (with dlopen) by default" >&5
13770 printf "%s\n" "Try testing for libarchive support (with dlopen) by default" >&6; }
13774 ARCHIVE_LIB=
13775 if test -n "$try_libarchive"
13776 then
13777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archive_read_new in -larchive" >&5
13778 printf %s "checking for archive_read_new in -larchive... " >&6; }
13779 if test ${ac_cv_lib_archive_archive_read_new+y}
13780 then :
13781 printf %s "(cached) " >&6
13782 else $as_nop
13783 ac_check_lib_save_LIBS=$LIBS
13784 LIBS="-larchive $LIBS"
13785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13786 /* end confdefs.h. */
13788 /* Override any GCC internal prototype to avoid an error.
13789 Use char because int might match the return type of a GCC
13790 builtin and then its argument prototype would still apply. */
13791 char archive_read_new ();
13793 main (void)
13795 return archive_read_new ();
13797 return 0;
13799 _ACEOF
13800 if ac_fn_c_try_link "$LINENO"
13801 then :
13802 ac_cv_lib_archive_archive_read_new=yes
13803 else $as_nop
13804 ac_cv_lib_archive_archive_read_new=no
13806 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13807 conftest$ac_exeext conftest.$ac_ext
13808 LIBS=$ac_check_lib_save_LIBS
13810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_archive_archive_read_new" >&5
13811 printf "%s\n" "$ac_cv_lib_archive_archive_read_new" >&6; }
13812 if test "x$ac_cv_lib_archive_archive_read_new" = xyes
13813 then :
13814 ARCHIVE_LIB=-larchive
13815 ac_fn_c_check_header_compile "$LINENO" "archive.h" "ac_cv_header_archive_h" "$ac_includes_default"
13816 if test "x$ac_cv_header_archive_h" = xyes
13817 then :
13818 printf "%s\n" "#define HAVE_ARCHIVE_H 1" >>confdefs.h
13824 if test "$ac_cv_func_dlopen" = yes -a "$try_libarchive" != "direct"; then
13825 ARCHIVE_LIB=$DLOPEN_LIB
13827 printf "%s\n" "#define CONFIG_DLOPEN_LIBARCHIVE 1" >>confdefs.h
13831 if test "$ac_cv_header_archive_h" != "yes"
13832 then
13833 ARCHIVE_LIB=
13837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13838 printf %s "checking for clock_gettime in -lrt... " >&6; }
13839 if test ${ac_cv_lib_rt_clock_gettime+y}
13840 then :
13841 printf %s "(cached) " >&6
13842 else $as_nop
13843 ac_check_lib_save_LIBS=$LIBS
13844 LIBS="-lrt $LIBS"
13845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13846 /* end confdefs.h. */
13848 /* Override any GCC internal prototype to avoid an error.
13849 Use char because int might match the return type of a GCC
13850 builtin and then its argument prototype would still apply. */
13851 char clock_gettime ();
13853 main (void)
13855 return clock_gettime ();
13857 return 0;
13859 _ACEOF
13860 if ac_fn_c_try_link "$LINENO"
13861 then :
13862 ac_cv_lib_rt_clock_gettime=yes
13863 else $as_nop
13864 ac_cv_lib_rt_clock_gettime=no
13866 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13867 conftest$ac_exeext conftest.$ac_ext
13868 LIBS=$ac_check_lib_save_LIBS
13870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13871 printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
13872 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
13873 then :
13874 CLOCK_GETTIME_LIB=-lrt
13878 FUSE_CMT=
13879 FUSE_LIB=
13880 # Check whether --enable-fuse2fs was given.
13881 if test ${enable_fuse2fs+y}
13882 then :
13883 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13884 then
13885 FUSE_CMT="#"
13886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13887 printf "%s\n" "Disabling fuse2fs" >&6; }
13888 else
13889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13890 /* end confdefs.h. */
13891 #ifdef __linux__
13892 #include <linux/fs.h>
13893 #include <linux/falloc.h>
13894 #include <linux/xattr.h>
13895 #endif
13898 main (void)
13902 return 0;
13904 _ACEOF
13905 if ac_fn_c_try_cpp "$LINENO"
13906 then :
13908 else $as_nop
13909 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13910 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13911 as_fn_error $? "Cannot find fuse2fs Linux headers.
13912 See \`config.log' for more details" "$LINENO" 5; }
13914 rm -f conftest.err conftest.i conftest.$ac_ext
13916 fuse3_CFLAGS
13917 C compiler flags for fuse3, overriding pkg-config
13918 fuse3_LIBS linker flags for fuse3, overriding pkg-config
13920 pkg_failed=no
13921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse3" >&5
13922 printf %s "checking for fuse3... " >&6; }
13924 if test -n "$fuse3_CFLAGS"; then
13925 pkg_cv_fuse3_CFLAGS="$fuse3_CFLAGS"
13926 elif test -n "$PKG_CONFIG"; then
13927 if test -n "$PKG_CONFIG" && \
13928 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
13929 ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
13930 ac_status=$?
13931 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13932 test $ac_status = 0; }; then
13933 pkg_cv_fuse3_CFLAGS=`$PKG_CONFIG --cflags "fuse3" 2>/dev/null`
13934 test "x$?" != "x0" && pkg_failed=yes
13935 else
13936 pkg_failed=yes
13938 else
13939 pkg_failed=untried
13941 if test -n "$fuse3_LIBS"; then
13942 pkg_cv_fuse3_LIBS="$fuse3_LIBS"
13943 elif test -n "$PKG_CONFIG"; then
13944 if test -n "$PKG_CONFIG" && \
13945 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
13946 ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
13947 ac_status=$?
13948 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13949 test $ac_status = 0; }; then
13950 pkg_cv_fuse3_LIBS=`$PKG_CONFIG --libs "fuse3" 2>/dev/null`
13951 test "x$?" != "x0" && pkg_failed=yes
13952 else
13953 pkg_failed=yes
13955 else
13956 pkg_failed=untried
13961 if test $pkg_failed = yes; then
13962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13963 printf "%s\n" "no" >&6; }
13965 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13966 _pkg_short_errors_supported=yes
13967 else
13968 _pkg_short_errors_supported=no
13970 if test $_pkg_short_errors_supported = yes; then
13971 fuse3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fuse3" 2>&1`
13972 else
13973 fuse3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fuse3" 2>&1`
13975 # Put the nasty error message in config.log where it belongs
13976 echo "$fuse3_PKG_ERRORS" >&5
13979 for ac_header in pthread.h fuse.h
13980 do :
13981 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
13982 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13983 #define FUSE_USE_VERSION 29
13985 if eval test \"x\$"$as_ac_Header"\" = x"yes"
13986 then :
13987 cat >>confdefs.h <<_ACEOF
13988 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
13989 _ACEOF
13991 else $as_nop
13992 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13993 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13994 as_fn_error $? "Cannot find fuse2fs headers.
13995 See \`config.log' for more details" "$LINENO" 5; }
13998 done
14000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
14001 printf %s "checking for fuse_main in -losxfuse... " >&6; }
14002 if test ${ac_cv_lib_osxfuse_fuse_main+y}
14003 then :
14004 printf %s "(cached) " >&6
14005 else $as_nop
14006 ac_check_lib_save_LIBS=$LIBS
14007 LIBS="-losxfuse $LIBS"
14008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14009 /* end confdefs.h. */
14011 /* Override any GCC internal prototype to avoid an error.
14012 Use char because int might match the return type of a GCC
14013 builtin and then its argument prototype would still apply. */
14014 char fuse_main ();
14016 main (void)
14018 return fuse_main ();
14020 return 0;
14022 _ACEOF
14023 if ac_fn_c_try_link "$LINENO"
14024 then :
14025 ac_cv_lib_osxfuse_fuse_main=yes
14026 else $as_nop
14027 ac_cv_lib_osxfuse_fuse_main=no
14029 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14030 conftest$ac_exeext conftest.$ac_ext
14031 LIBS=$ac_check_lib_save_LIBS
14033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
14034 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
14035 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
14036 then :
14037 FUSE_LIB=-losxfuse
14038 else $as_nop
14039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
14040 printf %s "checking for fuse_main in -lfuse... " >&6; }
14041 if test ${ac_cv_lib_fuse_fuse_main+y}
14042 then :
14043 printf %s "(cached) " >&6
14044 else $as_nop
14045 ac_check_lib_save_LIBS=$LIBS
14046 LIBS="-lfuse $LIBS"
14047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14048 /* end confdefs.h. */
14050 /* Override any GCC internal prototype to avoid an error.
14051 Use char because int might match the return type of a GCC
14052 builtin and then its argument prototype would still apply. */
14053 char fuse_main ();
14055 main (void)
14057 return fuse_main ();
14059 return 0;
14061 _ACEOF
14062 if ac_fn_c_try_link "$LINENO"
14063 then :
14064 ac_cv_lib_fuse_fuse_main=yes
14065 else $as_nop
14066 ac_cv_lib_fuse_fuse_main=no
14068 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14069 conftest$ac_exeext conftest.$ac_ext
14070 LIBS=$ac_check_lib_save_LIBS
14072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
14073 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
14074 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
14075 then :
14076 FUSE_LIB=-lfuse
14077 else $as_nop
14078 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14079 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14080 as_fn_error $? "Cannot find fuse library.
14081 See \`config.log' for more details" "$LINENO" 5; }
14087 elif test $pkg_failed = untried; then
14088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14089 printf "%s\n" "no" >&6; }
14091 for ac_header in pthread.h fuse.h
14092 do :
14093 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
14094 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
14095 #define FUSE_USE_VERSION 29
14097 if eval test \"x\$"$as_ac_Header"\" = x"yes"
14098 then :
14099 cat >>confdefs.h <<_ACEOF
14100 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
14101 _ACEOF
14103 else $as_nop
14104 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14105 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14106 as_fn_error $? "Cannot find fuse2fs headers.
14107 See \`config.log' for more details" "$LINENO" 5; }
14110 done
14112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
14113 printf %s "checking for fuse_main in -losxfuse... " >&6; }
14114 if test ${ac_cv_lib_osxfuse_fuse_main+y}
14115 then :
14116 printf %s "(cached) " >&6
14117 else $as_nop
14118 ac_check_lib_save_LIBS=$LIBS
14119 LIBS="-losxfuse $LIBS"
14120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14121 /* end confdefs.h. */
14123 /* Override any GCC internal prototype to avoid an error.
14124 Use char because int might match the return type of a GCC
14125 builtin and then its argument prototype would still apply. */
14126 char fuse_main ();
14128 main (void)
14130 return fuse_main ();
14132 return 0;
14134 _ACEOF
14135 if ac_fn_c_try_link "$LINENO"
14136 then :
14137 ac_cv_lib_osxfuse_fuse_main=yes
14138 else $as_nop
14139 ac_cv_lib_osxfuse_fuse_main=no
14141 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14142 conftest$ac_exeext conftest.$ac_ext
14143 LIBS=$ac_check_lib_save_LIBS
14145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
14146 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
14147 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
14148 then :
14149 FUSE_LIB=-losxfuse
14150 else $as_nop
14151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
14152 printf %s "checking for fuse_main in -lfuse... " >&6; }
14153 if test ${ac_cv_lib_fuse_fuse_main+y}
14154 then :
14155 printf %s "(cached) " >&6
14156 else $as_nop
14157 ac_check_lib_save_LIBS=$LIBS
14158 LIBS="-lfuse $LIBS"
14159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14160 /* end confdefs.h. */
14162 /* Override any GCC internal prototype to avoid an error.
14163 Use char because int might match the return type of a GCC
14164 builtin and then its argument prototype would still apply. */
14165 char fuse_main ();
14167 main (void)
14169 return fuse_main ();
14171 return 0;
14173 _ACEOF
14174 if ac_fn_c_try_link "$LINENO"
14175 then :
14176 ac_cv_lib_fuse_fuse_main=yes
14177 else $as_nop
14178 ac_cv_lib_fuse_fuse_main=no
14180 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14181 conftest$ac_exeext conftest.$ac_ext
14182 LIBS=$ac_check_lib_save_LIBS
14184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
14185 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
14186 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
14187 then :
14188 FUSE_LIB=-lfuse
14189 else $as_nop
14190 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14191 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14192 as_fn_error $? "Cannot find fuse library.
14193 See \`config.log' for more details" "$LINENO" 5; }
14199 else
14200 fuse3_CFLAGS=$pkg_cv_fuse3_CFLAGS
14201 fuse3_LIBS=$pkg_cv_fuse3_LIBS
14202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14203 printf "%s\n" "yes" >&6; }
14205 FUSE_LIB=-lfuse3
14208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
14209 printf "%s\n" "Enabling fuse2fs" >&6; }
14212 else $as_nop
14214 pkg_failed=no
14215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse3" >&5
14216 printf %s "checking for fuse3... " >&6; }
14218 if test -n "$fuse3_CFLAGS"; then
14219 pkg_cv_fuse3_CFLAGS="$fuse3_CFLAGS"
14220 elif test -n "$PKG_CONFIG"; then
14221 if test -n "$PKG_CONFIG" && \
14222 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
14223 ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
14224 ac_status=$?
14225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14226 test $ac_status = 0; }; then
14227 pkg_cv_fuse3_CFLAGS=`$PKG_CONFIG --cflags "fuse3" 2>/dev/null`
14228 test "x$?" != "x0" && pkg_failed=yes
14229 else
14230 pkg_failed=yes
14232 else
14233 pkg_failed=untried
14235 if test -n "$fuse3_LIBS"; then
14236 pkg_cv_fuse3_LIBS="$fuse3_LIBS"
14237 elif test -n "$PKG_CONFIG"; then
14238 if test -n "$PKG_CONFIG" && \
14239 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
14240 ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
14241 ac_status=$?
14242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14243 test $ac_status = 0; }; then
14244 pkg_cv_fuse3_LIBS=`$PKG_CONFIG --libs "fuse3" 2>/dev/null`
14245 test "x$?" != "x0" && pkg_failed=yes
14246 else
14247 pkg_failed=yes
14249 else
14250 pkg_failed=untried
14255 if test $pkg_failed = yes; then
14256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14257 printf "%s\n" "no" >&6; }
14259 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14260 _pkg_short_errors_supported=yes
14261 else
14262 _pkg_short_errors_supported=no
14264 if test $_pkg_short_errors_supported = yes; then
14265 fuse3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fuse3" 2>&1`
14266 else
14267 fuse3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fuse3" 2>&1`
14269 # Put the nasty error message in config.log where it belongs
14270 echo "$fuse3_PKG_ERRORS" >&5
14273 for ac_header in pthread.h fuse.h
14274 do :
14275 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
14276 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
14277 #define FUSE_USE_VERSION 29
14278 #ifdef __linux__
14279 # include <linux/fs.h>
14280 # include <linux/falloc.h>
14281 # include <linux/xattr.h>
14282 #endif
14284 if eval test \"x\$"$as_ac_Header"\" = x"yes"
14285 then :
14286 cat >>confdefs.h <<_ACEOF
14287 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
14288 _ACEOF
14290 else $as_nop
14291 FUSE_CMT="#"
14294 done
14295 if test -z "$FUSE_CMT"
14296 then
14297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
14298 printf %s "checking for fuse_main in -losxfuse... " >&6; }
14299 if test ${ac_cv_lib_osxfuse_fuse_main+y}
14300 then :
14301 printf %s "(cached) " >&6
14302 else $as_nop
14303 ac_check_lib_save_LIBS=$LIBS
14304 LIBS="-losxfuse $LIBS"
14305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14306 /* end confdefs.h. */
14308 /* Override any GCC internal prototype to avoid an error.
14309 Use char because int might match the return type of a GCC
14310 builtin and then its argument prototype would still apply. */
14311 char fuse_main ();
14313 main (void)
14315 return fuse_main ();
14317 return 0;
14319 _ACEOF
14320 if ac_fn_c_try_link "$LINENO"
14321 then :
14322 ac_cv_lib_osxfuse_fuse_main=yes
14323 else $as_nop
14324 ac_cv_lib_osxfuse_fuse_main=no
14326 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14327 conftest$ac_exeext conftest.$ac_ext
14328 LIBS=$ac_check_lib_save_LIBS
14330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
14331 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
14332 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
14333 then :
14334 FUSE_LIB=-losxfuse
14335 else $as_nop
14336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
14337 printf %s "checking for fuse_main in -lfuse... " >&6; }
14338 if test ${ac_cv_lib_fuse_fuse_main+y}
14339 then :
14340 printf %s "(cached) " >&6
14341 else $as_nop
14342 ac_check_lib_save_LIBS=$LIBS
14343 LIBS="-lfuse $LIBS"
14344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14345 /* end confdefs.h. */
14347 /* Override any GCC internal prototype to avoid an error.
14348 Use char because int might match the return type of a GCC
14349 builtin and then its argument prototype would still apply. */
14350 char fuse_main ();
14352 main (void)
14354 return fuse_main ();
14356 return 0;
14358 _ACEOF
14359 if ac_fn_c_try_link "$LINENO"
14360 then :
14361 ac_cv_lib_fuse_fuse_main=yes
14362 else $as_nop
14363 ac_cv_lib_fuse_fuse_main=no
14365 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14366 conftest$ac_exeext conftest.$ac_ext
14367 LIBS=$ac_check_lib_save_LIBS
14369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
14370 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
14371 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
14372 then :
14373 FUSE_LIB=-lfuse
14374 else $as_nop
14375 FUSE_CMT="#"
14382 elif test $pkg_failed = untried; then
14383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14384 printf "%s\n" "no" >&6; }
14386 for ac_header in pthread.h fuse.h
14387 do :
14388 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
14389 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
14390 #define FUSE_USE_VERSION 29
14391 #ifdef __linux__
14392 # include <linux/fs.h>
14393 # include <linux/falloc.h>
14394 # include <linux/xattr.h>
14395 #endif
14397 if eval test \"x\$"$as_ac_Header"\" = x"yes"
14398 then :
14399 cat >>confdefs.h <<_ACEOF
14400 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
14401 _ACEOF
14403 else $as_nop
14404 FUSE_CMT="#"
14407 done
14408 if test -z "$FUSE_CMT"
14409 then
14410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
14411 printf %s "checking for fuse_main in -losxfuse... " >&6; }
14412 if test ${ac_cv_lib_osxfuse_fuse_main+y}
14413 then :
14414 printf %s "(cached) " >&6
14415 else $as_nop
14416 ac_check_lib_save_LIBS=$LIBS
14417 LIBS="-losxfuse $LIBS"
14418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14419 /* end confdefs.h. */
14421 /* Override any GCC internal prototype to avoid an error.
14422 Use char because int might match the return type of a GCC
14423 builtin and then its argument prototype would still apply. */
14424 char fuse_main ();
14426 main (void)
14428 return fuse_main ();
14430 return 0;
14432 _ACEOF
14433 if ac_fn_c_try_link "$LINENO"
14434 then :
14435 ac_cv_lib_osxfuse_fuse_main=yes
14436 else $as_nop
14437 ac_cv_lib_osxfuse_fuse_main=no
14439 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14440 conftest$ac_exeext conftest.$ac_ext
14441 LIBS=$ac_check_lib_save_LIBS
14443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
14444 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
14445 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
14446 then :
14447 FUSE_LIB=-losxfuse
14448 else $as_nop
14449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
14450 printf %s "checking for fuse_main in -lfuse... " >&6; }
14451 if test ${ac_cv_lib_fuse_fuse_main+y}
14452 then :
14453 printf %s "(cached) " >&6
14454 else $as_nop
14455 ac_check_lib_save_LIBS=$LIBS
14456 LIBS="-lfuse $LIBS"
14457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14458 /* end confdefs.h. */
14460 /* Override any GCC internal prototype to avoid an error.
14461 Use char because int might match the return type of a GCC
14462 builtin and then its argument prototype would still apply. */
14463 char fuse_main ();
14465 main (void)
14467 return fuse_main ();
14469 return 0;
14471 _ACEOF
14472 if ac_fn_c_try_link "$LINENO"
14473 then :
14474 ac_cv_lib_fuse_fuse_main=yes
14475 else $as_nop
14476 ac_cv_lib_fuse_fuse_main=no
14478 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14479 conftest$ac_exeext conftest.$ac_ext
14480 LIBS=$ac_check_lib_save_LIBS
14482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
14483 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
14484 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
14485 then :
14486 FUSE_LIB=-lfuse
14487 else $as_nop
14488 FUSE_CMT="#"
14495 else
14496 fuse3_CFLAGS=$pkg_cv_fuse3_CFLAGS
14497 fuse3_LIBS=$pkg_cv_fuse3_LIBS
14498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14499 printf "%s\n" "yes" >&6; }
14501 FUSE_LIB=-lfuse3
14504 if test -z "$FUSE_CMT"
14505 then
14506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
14507 printf "%s\n" "Enabling fuse2fs by default." >&6; }
14514 if test "$FUSE_LIB" = "-lfuse3"
14515 then
14516 FUSE_USE_VERSION=35
14517 CFLAGS="$CFLAGS $fuse3_CFLAGS"
14518 LDFLAGS="$LDFLAGS $fuse3_LDFLAGS"
14519 for ac_header in pthread.h fuse.h
14520 do :
14521 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
14522 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
14523 #define FUSE_USE_VERSION 35
14524 #ifdef __linux__
14525 #include <linux/fs.h>
14526 #include <linux/falloc.h>
14527 #include <linux/xattr.h>
14528 #endif
14530 if eval test \"x\$"$as_ac_Header"\" = x"yes"
14531 then :
14532 cat >>confdefs.h <<_ACEOF
14533 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
14534 _ACEOF
14536 else $as_nop
14537 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14538 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14539 as_fn_error $? "Cannot find fuse3 fuse2fs headers.
14540 See \`config.log' for more details" "$LINENO" 5; }
14543 done
14544 elif test -n "$FUSE_LIB"
14545 then
14546 FUSE_USE_VERSION=29
14548 if test -n "$FUSE_USE_VERSION"
14549 then
14551 printf "%s\n" "#define FUSE_USE_VERSION $FUSE_USE_VERSION" >>confdefs.h
14554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
14555 printf %s "checking for optreset... " >&6; }
14556 if test ${ac_cv_have_optreset+y}
14557 then :
14558 printf %s "(cached) " >&6
14559 else $as_nop
14560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14561 /* end confdefs.h. */
14562 #include <unistd.h>
14564 _ACEOF
14565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14566 $EGREP "optreset" >/dev/null 2>&1
14567 then :
14568 ac_cv_have_optreset=yes
14569 else $as_nop
14570 ac_cv_have_optreset=no
14572 rm -rf conftest*
14575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
14576 printf "%s\n" "$ac_cv_have_optreset" >&6; }
14577 if test $ac_cv_have_optreset = yes; then
14579 printf "%s\n" "#define HAVE_OPTRESET 1" >>confdefs.h
14583 SEM_INIT_LIB=''
14584 echo GL_THREADS_API: ${gl_threads_api}
14585 if test "${gl_threads_api}" != none
14586 then
14587 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
14588 if test "x$ac_cv_func_sem_init" = xyes
14589 then :
14591 else $as_nop
14592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
14593 printf %s "checking for sem_init in -lpthread... " >&6; }
14594 if test ${ac_cv_lib_pthread_sem_init+y}
14595 then :
14596 printf %s "(cached) " >&6
14597 else $as_nop
14598 ac_check_lib_save_LIBS=$LIBS
14599 LIBS="-lpthread $LIBS"
14600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14601 /* end confdefs.h. */
14603 /* Override any GCC internal prototype to avoid an error.
14604 Use char because int might match the return type of a GCC
14605 builtin and then its argument prototype would still apply. */
14606 char sem_init ();
14608 main (void)
14610 return sem_init ();
14612 return 0;
14614 _ACEOF
14615 if ac_fn_c_try_link "$LINENO"
14616 then :
14617 ac_cv_lib_pthread_sem_init=yes
14618 else $as_nop
14619 ac_cv_lib_pthread_sem_init=no
14621 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14622 conftest$ac_exeext conftest.$ac_ext
14623 LIBS=$ac_check_lib_save_LIBS
14625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
14626 printf "%s\n" "$ac_cv_lib_pthread_sem_init" >&6; }
14627 if test "x$ac_cv_lib_pthread_sem_init" = xyes
14628 then :
14629 printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
14631 SEM_INIT_LIB=-lpthread
14632 else $as_nop
14633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
14634 printf %s "checking for sem_init in -lrt... " >&6; }
14635 if test ${ac_cv_lib_rt_sem_init+y}
14636 then :
14637 printf %s "(cached) " >&6
14638 else $as_nop
14639 ac_check_lib_save_LIBS=$LIBS
14640 LIBS="-lrt $LIBS"
14641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14642 /* end confdefs.h. */
14644 /* Override any GCC internal prototype to avoid an error.
14645 Use char because int might match the return type of a GCC
14646 builtin and then its argument prototype would still apply. */
14647 char sem_init ();
14649 main (void)
14651 return sem_init ();
14653 return 0;
14655 _ACEOF
14656 if ac_fn_c_try_link "$LINENO"
14657 then :
14658 ac_cv_lib_rt_sem_init=yes
14659 else $as_nop
14660 ac_cv_lib_rt_sem_init=no
14662 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14663 conftest$ac_exeext conftest.$ac_ext
14664 LIBS=$ac_check_lib_save_LIBS
14666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
14667 printf "%s\n" "$ac_cv_lib_rt_sem_init" >&6; }
14668 if test "x$ac_cv_lib_rt_sem_init" = xyes
14669 then :
14670 printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
14672 SEM_INIT_LIB=-lrt
14673 else $as_nop
14674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
14675 printf %s "checking for sem_init in -lposix4... " >&6; }
14676 if test ${ac_cv_lib_posix4_sem_init+y}
14677 then :
14678 printf %s "(cached) " >&6
14679 else $as_nop
14680 ac_check_lib_save_LIBS=$LIBS
14681 LIBS="-lposix4 $LIBS"
14682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14683 /* end confdefs.h. */
14685 /* Override any GCC internal prototype to avoid an error.
14686 Use char because int might match the return type of a GCC
14687 builtin and then its argument prototype would still apply. */
14688 char sem_init ();
14690 main (void)
14692 return sem_init ();
14694 return 0;
14696 _ACEOF
14697 if ac_fn_c_try_link "$LINENO"
14698 then :
14699 ac_cv_lib_posix4_sem_init=yes
14700 else $as_nop
14701 ac_cv_lib_posix4_sem_init=no
14703 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14704 conftest$ac_exeext conftest.$ac_ext
14705 LIBS=$ac_check_lib_save_LIBS
14707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
14708 printf "%s\n" "$ac_cv_lib_posix4_sem_init" >&6; }
14709 if test "x$ac_cv_lib_posix4_sem_init" = xyes
14710 then :
14711 printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
14713 SEM_INIT_LIB=-lposix4
14723 if test "$ac_cv_func_qsort_r" != no
14724 then :
14726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is GNU version" >&5
14727 printf %s "checking whether qsort_r is GNU version... " >&6; }
14728 if test ${e2_cv_gnu_qsort_r+y}
14729 then :
14730 printf %s "(cached) " >&6
14731 else $as_nop
14732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14733 /* end confdefs.h. */
14735 #include <stdlib.h>
14736 void (qsort_r)(void *base, size_t nmemb, size_t size,
14737 int (*compar)(const void *, const void *, void *),
14738 void *arg);
14741 main (void)
14745 return 0;
14747 _ACEOF
14748 if ac_fn_c_try_compile "$LINENO"
14749 then :
14750 e2_cv_gnu_qsort_r=yes
14751 else $as_nop
14752 e2_cv_gnu_qsort_r=no
14754 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2_cv_gnu_qsort_r" >&5
14758 printf "%s\n" "$e2_cv_gnu_qsort_r" >&6; }
14759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is BSD version" >&5
14760 printf %s "checking whether qsort_r is BSD version... " >&6; }
14761 if test ${e2_cv_bsd_qsort_r+y}
14762 then :
14763 printf %s "(cached) " >&6
14764 else $as_nop
14765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14766 /* end confdefs.h. */
14768 #include <stdlib.h>
14769 void (qsort_r)(void *base, size_t nmemb, size_t size,
14770 void *arg, int (*compar)(void *, const void *, const void *));
14773 main (void)
14777 return 0;
14779 _ACEOF
14780 if ac_fn_c_try_compile "$LINENO"
14781 then :
14782 e2_cv_bsd_qsort_r=yes
14783 else $as_nop
14784 e2_cv_bsd_qsort_r=no
14786 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2_cv_bsd_qsort_r" >&5
14790 printf "%s\n" "$e2_cv_bsd_qsort_r" >&6; }
14791 case "$e2_cv_gnu_qsort_r:$e2_cv_bsd_qsort_r" in #(
14792 yes:no) :
14795 printf "%s\n" "#define HAVE_GNU_QSORT_R 1" >>confdefs.h
14797 ;; #(
14798 no:yes) :
14801 printf "%s\n" "#define HAVE_BSD_QSORT_R 1" >>confdefs.h
14803 ;; #(
14804 *) :
14806 esac
14809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
14810 printf %s "checking for unified diff option... " >&6; }
14811 if diff -u $0 $0 > /dev/null 2>&1 ; then
14812 UNI_DIFF_OPTS=-u
14813 else
14814 UNI_DIFF_OPTS=-c
14816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
14817 printf "%s\n" "$UNI_DIFF_OPTS" >&6; }
14819 case "$host_os" in
14820 linux*)
14822 printf "%s\n" "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
14825 esac
14827 printf %s "checking for mount 'nosuid' option... "
14828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14829 /* end confdefs.h. */
14830 #include <sys/mount.h>
14832 main (void)
14834 void *temp = (void *)(MS_NOSUID); (void) temp;
14836 return 0;
14838 _ACEOF
14839 if ac_fn_c_try_compile "$LINENO"
14840 then :
14842 printf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
14844 ac_cv_mount_nosuid=yes
14845 printf "%s\n" "yes"
14846 else $as_nop
14847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14848 /* end confdefs.h. */
14849 #include <sys/mount.h>
14851 main (void)
14853 void *temp = (void *)(MNT_NOSUID); (void) temp;
14855 return 0;
14857 _ACEOF
14858 if ac_fn_c_try_compile "$LINENO"
14859 then :
14861 printf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
14863 ac_cv_mount_nosuid=yes
14864 printf "%s\n" "yes"
14865 else $as_nop
14866 ac_cv_mount_nosuid=no
14867 printf "%s\n" "no"
14870 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14873 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14876 printf %s "checking for mount 'nodev' option... "
14877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14878 /* end confdefs.h. */
14879 #include <sys/mount.h>
14881 main (void)
14883 void *temp = (void *)(MS_NODEV); (void) temp;
14885 return 0;
14887 _ACEOF
14888 if ac_fn_c_try_compile "$LINENO"
14889 then :
14891 printf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
14893 ac_cv_mount_nodev=yes
14894 printf "%s\n" "yes"
14895 else $as_nop
14896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14897 /* end confdefs.h. */
14898 #include <sys/mount.h>
14900 main (void)
14902 void *temp = (void *)(MNT_NODEV); (void) temp;
14904 return 0;
14906 _ACEOF
14907 if ac_fn_c_try_compile "$LINENO"
14908 then :
14910 printf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
14912 ac_cv_mount_nodev=yes
14913 printf "%s\n" "yes"
14914 else $as_nop
14915 ac_cv_mount_nodev=no
14916 printf "%s\n" "no"
14919 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14922 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14924 # Check whether --enable-lto was given.
14925 if test ${enable_lto+y}
14926 then :
14927 enableval=$enable_lto;
14928 else $as_nop
14929 enable_lto=no
14932 if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
14933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
14934 printf %s "checking if C compiler supports LTO... " >&6; }
14935 OLD_CFLAGS="$CFLAGS"
14936 OLD_LDFLAGS="$LDFLAGS"
14937 LTO_FLAGS="-g -flto -ffat-lto-objects"
14938 CFLAGS="$CFLAGS $LTO_FLAGS"
14939 LDFLAGS="$LDFLAGS $LTO_FLAGS"
14940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14941 /* end confdefs.h. */
14944 main (void)
14948 return 0;
14950 _ACEOF
14951 if ac_fn_c_try_link "$LINENO"
14952 then :
14953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14954 printf "%s\n" "yes" >&6; }
14955 lto_cflags=$LTO_FLAGS
14956 lto_ldflags=$LTO_FLAGS
14957 # Extract the first word of "gcc-ar", so it can be a program name with args.
14958 set dummy gcc-ar; ac_word=$2
14959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14960 printf %s "checking for $ac_word... " >&6; }
14961 if test ${ac_cv_path_gcc_ar+y}
14962 then :
14963 printf %s "(cached) " >&6
14964 else $as_nop
14965 case $gcc_ar in
14966 [\\/]* | ?:[\\/]*)
14967 ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
14970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14971 for as_dir in $PATH
14973 IFS=$as_save_IFS
14974 case $as_dir in #(((
14975 '') as_dir=./ ;;
14976 */) ;;
14977 *) as_dir=$as_dir/ ;;
14978 esac
14979 for ac_exec_ext in '' $ac_executable_extensions; do
14980 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14981 ac_cv_path_gcc_ar="$as_dir$ac_word$ac_exec_ext"
14982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14983 break 2
14985 done
14986 done
14987 IFS=$as_save_IFS
14990 esac
14992 gcc_ar=$ac_cv_path_gcc_ar
14993 if test -n "$gcc_ar"; then
14994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
14995 printf "%s\n" "$gcc_ar" >&6; }
14996 else
14997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14998 printf "%s\n" "no" >&6; }
15002 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
15003 set dummy gcc-ranlib; ac_word=$2
15004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15005 printf %s "checking for $ac_word... " >&6; }
15006 if test ${ac_cv_path_gcc_ranlib+y}
15007 then :
15008 printf %s "(cached) " >&6
15009 else $as_nop
15010 case $gcc_ranlib in
15011 [\\/]* | ?:[\\/]*)
15012 ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
15015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15016 for as_dir in $PATH
15018 IFS=$as_save_IFS
15019 case $as_dir in #(((
15020 '') as_dir=./ ;;
15021 */) ;;
15022 *) as_dir=$as_dir/ ;;
15023 esac
15024 for ac_exec_ext in '' $ac_executable_extensions; do
15025 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15026 ac_cv_path_gcc_ranlib="$as_dir$ac_word$ac_exec_ext"
15027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15028 break 2
15030 done
15031 done
15032 IFS=$as_save_IFS
15035 esac
15037 gcc_ranlib=$ac_cv_path_gcc_ranlib
15038 if test -n "$gcc_ranlib"; then
15039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
15040 printf "%s\n" "$gcc_ranlib" >&6; }
15041 else
15042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15043 printf "%s\n" "no" >&6; }
15047 else $as_nop
15048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15049 printf "%s\n" "no" >&6; }
15051 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15052 conftest$ac_exeext conftest.$ac_ext
15053 if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
15054 have_lto=yes
15055 AR="${gcc_ar}"
15056 RANLIB="${gcc_ranlib}"
15058 CFLAGS="${OLD_CFLAGS}"
15059 LDFLAGS="${OLD_LDFLAGS}"
15064 if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
15065 as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
15067 # Check whether --enable-ubsan was given.
15068 if test ${enable_ubsan+y}
15069 then :
15070 enableval=$enable_ubsan;
15071 else $as_nop
15072 enable_ubsan=no
15075 if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
15076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
15077 printf %s "checking if C compiler supports UBSAN... " >&6; }
15078 OLD_CFLAGS="$CFLAGS"
15079 OLD_LDFLAGS="$LDFLAGS"
15080 UBSAN_FLAGS="-fsanitize=undefined"
15081 CFLAGS="$CFLAGS $UBSAN_FLAGS"
15082 LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
15083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15084 /* end confdefs.h. */
15087 main (void)
15091 return 0;
15093 _ACEOF
15094 if ac_fn_c_try_link "$LINENO"
15095 then :
15096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15097 printf "%s\n" "yes" >&6; }
15098 ubsan_cflags=$UBSAN_FLAGS
15099 ubsan_ldflags=$UBSAN_FLAGS
15100 have_ubsan=yes
15101 else $as_nop
15102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15103 printf "%s\n" "no" >&6; }
15105 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15106 conftest$ac_exeext conftest.$ac_ext
15107 CFLAGS="${OLD_CFLAGS}"
15108 LDFLAGS="${OLD_LDFLAGS}"
15113 if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
15114 as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
15116 # Check whether --enable-addrsan was given.
15117 if test ${enable_addrsan+y}
15118 then :
15119 enableval=$enable_addrsan;
15120 else $as_nop
15121 enable_addrsan=no
15124 if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then
15125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5
15126 printf %s "checking if C compiler supports ADDRSAN... " >&6; }
15127 OLD_CFLAGS="$CFLAGS"
15128 OLD_LDFLAGS="$LDFLAGS"
15129 ADDRSAN_FLAGS="-fsanitize=address"
15130 CFLAGS="$CFLAGS $ADDRSAN_FLAGS"
15131 LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS"
15132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15133 /* end confdefs.h. */
15136 main (void)
15140 return 0;
15142 _ACEOF
15143 if ac_fn_c_try_link "$LINENO"
15144 then :
15145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15146 printf "%s\n" "yes" >&6; }
15147 addrsan_cflags=$ADDRSAN_FLAGS
15148 addrsan_ldflags=$ADDRSAN_FLAGS
15149 have_addrsan=yes
15150 else $as_nop
15151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15152 printf "%s\n" "no" >&6; }
15154 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15155 conftest$ac_exeext conftest.$ac_ext
15156 CFLAGS="${OLD_CFLAGS}"
15157 LDFLAGS="${OLD_LDFLAGS}"
15162 if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then
15163 as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5
15165 # Check whether --enable-threadsan was given.
15166 if test ${enable_threadsan+y}
15167 then :
15168 enableval=$enable_threadsan;
15169 else $as_nop
15170 enable_threadsan=no
15173 if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then
15174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5
15175 printf %s "checking if C compiler supports THREADSAN... " >&6; }
15176 OLD_CFLAGS="$CFLAGS"
15177 OLD_LDFLAGS="$LDFLAGS"
15178 THREADSAN_FLAGS="-fsanitize=thread"
15179 CFLAGS="$CFLAGS $THREADSAN_FLAGS"
15180 LDFLAGS="$LDFLAGS $THREADSAN_FLAGS"
15181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15182 /* end confdefs.h. */
15185 main (void)
15189 return 0;
15191 _ACEOF
15192 if ac_fn_c_try_link "$LINENO"
15193 then :
15194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15195 printf "%s\n" "yes" >&6; }
15196 threadsan_cflags=$THREADSAN_FLAGS
15197 threadsan_ldflags=$THREADSAN_FLAGS
15198 have_threadsan=yes
15199 else $as_nop
15200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15201 printf "%s\n" "no" >&6; }
15203 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15204 conftest$ac_exeext conftest.$ac_ext
15205 CFLAGS="${OLD_CFLAGS}"
15206 LDFLAGS="${OLD_LDFLAGS}"
15211 if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then
15212 as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5
15214 if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then
15215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5
15216 printf "%s\n" "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;}
15218 FUZZING_CMT="#"
15219 # Check whether --enable-fuzzing was given.
15220 if test ${enable_fuzzing+y}
15221 then :
15222 enableval=$enable_fuzzing;
15223 else $as_nop
15224 enable_fuzzing=no
15227 if test "$enable_fuzzing" = "yes" || test "$enable_fuzzing" = "probe"; then
15234 ac_ext=cpp
15235 ac_cpp='$CXXCPP $CPPFLAGS'
15236 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15237 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15238 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15239 if test -z "$CXX"; then
15240 if test -n "$CCC"; then
15241 CXX=$CCC
15242 else
15243 if test -n "$ac_tool_prefix"; then
15244 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
15246 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15247 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15249 printf %s "checking for $ac_word... " >&6; }
15250 if test ${ac_cv_prog_CXX+y}
15251 then :
15252 printf %s "(cached) " >&6
15253 else $as_nop
15254 if test -n "$CXX"; then
15255 ac_cv_prog_CXX="$CXX" # Let the user override the test.
15256 else
15257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15258 for as_dir in $PATH
15260 IFS=$as_save_IFS
15261 case $as_dir in #(((
15262 '') as_dir=./ ;;
15263 */) ;;
15264 *) as_dir=$as_dir/ ;;
15265 esac
15266 for ac_exec_ext in '' $ac_executable_extensions; do
15267 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15268 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
15269 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15270 break 2
15272 done
15273 done
15274 IFS=$as_save_IFS
15278 CXX=$ac_cv_prog_CXX
15279 if test -n "$CXX"; then
15280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
15281 printf "%s\n" "$CXX" >&6; }
15282 else
15283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15284 printf "%s\n" "no" >&6; }
15288 test -n "$CXX" && break
15289 done
15291 if test -z "$CXX"; then
15292 ac_ct_CXX=$CXX
15293 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
15295 # Extract the first word of "$ac_prog", so it can be a program name with args.
15296 set dummy $ac_prog; ac_word=$2
15297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15298 printf %s "checking for $ac_word... " >&6; }
15299 if test ${ac_cv_prog_ac_ct_CXX+y}
15300 then :
15301 printf %s "(cached) " >&6
15302 else $as_nop
15303 if test -n "$ac_ct_CXX"; then
15304 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
15305 else
15306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15307 for as_dir in $PATH
15309 IFS=$as_save_IFS
15310 case $as_dir in #(((
15311 '') as_dir=./ ;;
15312 */) ;;
15313 *) as_dir=$as_dir/ ;;
15314 esac
15315 for ac_exec_ext in '' $ac_executable_extensions; do
15316 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15317 ac_cv_prog_ac_ct_CXX="$ac_prog"
15318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15319 break 2
15321 done
15322 done
15323 IFS=$as_save_IFS
15327 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15328 if test -n "$ac_ct_CXX"; then
15329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
15330 printf "%s\n" "$ac_ct_CXX" >&6; }
15331 else
15332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15333 printf "%s\n" "no" >&6; }
15337 test -n "$ac_ct_CXX" && break
15338 done
15340 if test "x$ac_ct_CXX" = x; then
15341 CXX="g++"
15342 else
15343 case $cross_compiling:$ac_tool_warned in
15344 yes:)
15345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15346 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15347 ac_tool_warned=yes ;;
15348 esac
15349 CXX=$ac_ct_CXX
15355 # Provide some information about the compiler.
15356 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
15357 set X $ac_compile
15358 ac_compiler=$2
15359 for ac_option in --version -v -V -qversion; do
15360 { { ac_try="$ac_compiler $ac_option >&5"
15361 case "(($ac_try" in
15362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15363 *) ac_try_echo=$ac_try;;
15364 esac
15365 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15366 printf "%s\n" "$ac_try_echo"; } >&5
15367 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15368 ac_status=$?
15369 if test -s conftest.err; then
15370 sed '10a\
15371 ... rest of stderr output deleted ...
15372 10q' conftest.err >conftest.er1
15373 cat conftest.er1 >&5
15375 rm -f conftest.er1 conftest.err
15376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15377 test $ac_status = 0; }
15378 done
15380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
15381 printf %s "checking whether the compiler supports GNU C++... " >&6; }
15382 if test ${ac_cv_cxx_compiler_gnu+y}
15383 then :
15384 printf %s "(cached) " >&6
15385 else $as_nop
15386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15387 /* end confdefs.h. */
15390 main (void)
15392 #ifndef __GNUC__
15393 choke me
15394 #endif
15397 return 0;
15399 _ACEOF
15400 if ac_fn_cxx_try_compile "$LINENO"
15401 then :
15402 ac_compiler_gnu=yes
15403 else $as_nop
15404 ac_compiler_gnu=no
15406 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15407 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
15411 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
15412 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15414 if test $ac_compiler_gnu = yes; then
15415 GXX=yes
15416 else
15417 GXX=
15419 ac_test_CXXFLAGS=${CXXFLAGS+y}
15420 ac_save_CXXFLAGS=$CXXFLAGS
15421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
15422 printf %s "checking whether $CXX accepts -g... " >&6; }
15423 if test ${ac_cv_prog_cxx_g+y}
15424 then :
15425 printf %s "(cached) " >&6
15426 else $as_nop
15427 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
15428 ac_cxx_werror_flag=yes
15429 ac_cv_prog_cxx_g=no
15430 CXXFLAGS="-g"
15431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15432 /* end confdefs.h. */
15435 main (void)
15439 return 0;
15441 _ACEOF
15442 if ac_fn_cxx_try_compile "$LINENO"
15443 then :
15444 ac_cv_prog_cxx_g=yes
15445 else $as_nop
15446 CXXFLAGS=""
15447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15448 /* end confdefs.h. */
15451 main (void)
15455 return 0;
15457 _ACEOF
15458 if ac_fn_cxx_try_compile "$LINENO"
15459 then :
15461 else $as_nop
15462 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15463 CXXFLAGS="-g"
15464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15465 /* end confdefs.h. */
15468 main (void)
15472 return 0;
15474 _ACEOF
15475 if ac_fn_cxx_try_compile "$LINENO"
15476 then :
15477 ac_cv_prog_cxx_g=yes
15479 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15481 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15483 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15484 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
15487 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
15488 if test $ac_test_CXXFLAGS; then
15489 CXXFLAGS=$ac_save_CXXFLAGS
15490 elif test $ac_cv_prog_cxx_g = yes; then
15491 if test "$GXX" = yes; then
15492 CXXFLAGS="-g -O2"
15493 else
15494 CXXFLAGS="-g"
15496 else
15497 if test "$GXX" = yes; then
15498 CXXFLAGS="-O2"
15499 else
15500 CXXFLAGS=
15503 ac_prog_cxx_stdcxx=no
15504 if test x$ac_prog_cxx_stdcxx = xno
15505 then :
15506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
15507 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
15508 if test ${ac_cv_prog_cxx_cxx11+y}
15509 then :
15510 printf %s "(cached) " >&6
15511 else $as_nop
15512 ac_cv_prog_cxx_cxx11=no
15513 ac_save_CXX=$CXX
15514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15515 /* end confdefs.h. */
15516 $ac_cxx_conftest_cxx11_program
15517 _ACEOF
15518 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
15520 CXX="$ac_save_CXX $ac_arg"
15521 if ac_fn_cxx_try_compile "$LINENO"
15522 then :
15523 ac_cv_prog_cxx_cxx11=$ac_arg
15525 rm -f core conftest.err conftest.$ac_objext conftest.beam
15526 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
15527 done
15528 rm -f conftest.$ac_ext
15529 CXX=$ac_save_CXX
15532 if test "x$ac_cv_prog_cxx_cxx11" = xno
15533 then :
15534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15535 printf "%s\n" "unsupported" >&6; }
15536 else $as_nop
15537 if test "x$ac_cv_prog_cxx_cxx11" = x
15538 then :
15539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15540 printf "%s\n" "none needed" >&6; }
15541 else $as_nop
15542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
15543 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
15544 CXX="$CXX $ac_cv_prog_cxx_cxx11"
15546 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
15547 ac_prog_cxx_stdcxx=cxx11
15550 if test x$ac_prog_cxx_stdcxx = xno
15551 then :
15552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
15553 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
15554 if test ${ac_cv_prog_cxx_cxx98+y}
15555 then :
15556 printf %s "(cached) " >&6
15557 else $as_nop
15558 ac_cv_prog_cxx_cxx98=no
15559 ac_save_CXX=$CXX
15560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15561 /* end confdefs.h. */
15562 $ac_cxx_conftest_cxx98_program
15563 _ACEOF
15564 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
15566 CXX="$ac_save_CXX $ac_arg"
15567 if ac_fn_cxx_try_compile "$LINENO"
15568 then :
15569 ac_cv_prog_cxx_cxx98=$ac_arg
15571 rm -f core conftest.err conftest.$ac_objext conftest.beam
15572 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
15573 done
15574 rm -f conftest.$ac_ext
15575 CXX=$ac_save_CXX
15578 if test "x$ac_cv_prog_cxx_cxx98" = xno
15579 then :
15580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15581 printf "%s\n" "unsupported" >&6; }
15582 else $as_nop
15583 if test "x$ac_cv_prog_cxx_cxx98" = x
15584 then :
15585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15586 printf "%s\n" "none needed" >&6; }
15587 else $as_nop
15588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
15589 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
15590 CXX="$CXX $ac_cv_prog_cxx_cxx98"
15592 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
15593 ac_prog_cxx_stdcxx=cxx98
15597 ac_ext=c
15598 ac_cpp='$CPP $CPPFLAGS'
15599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports fuzzing sanitizer" >&5
15604 printf %s "checking if C compiler supports fuzzing sanitizer... " >&6; }
15605 ac_ext=cpp
15606 ac_cpp='$CXXCPP $CPPFLAGS'
15607 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15608 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15609 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15611 OLD_CXXFLAGS="$CXXFLAGS"
15612 OLD_LDFLAGS="$LDFLAGS"
15613 FUZZER_FLAGS="-fsanitize=fuzzer"
15614 CXXFLAGS="$CXXFLAGS $FUZZER_FLAGS"
15615 LDFLAGS="$LDFLAGS $FUZZER_FLAGS"
15617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15618 /* end confdefs.h. */
15620 #include <stddef.h>
15621 #include <stdint.h>
15624 main (void)
15626 return 0;
15628 return 0;
15630 _ACEOF
15631 if ac_fn_cxx_try_compile "$LINENO"
15632 then :
15633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15634 printf "%s\n" "yes" >&6; }
15635 fuzzer_cflags=$FUZZER_FLAGS
15636 fuzzer_ldflags=$FUZZER_FLAGS
15637 FUZZING_CMT=
15638 have_fuzzer=yes
15639 else $as_nop
15640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15641 printf "%s\n" "no" >&6; }
15642 as_fn_error $? "fuzzing requested but not available" "$LINENO" 5
15644 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15645 CXXFLAGS="${OLD_CXXFLAGS}"
15646 LDFLAGS="${OLD_LDFLAGS}"
15647 ac_ext=c
15648 ac_cpp='$CPP $CPPFLAGS'
15649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15658 LINUX_CMT="#"
15659 CYGWIN_CMT="#"
15660 UNIX_CMT=
15661 case "$host_os" in
15662 linux*)
15663 LINUX_CMT=
15665 cygwin)
15666 CYGWIN_CMT=
15667 UNIX_CMT="#"
15669 esac
15673 E2SCRUB_CMT="$LINUX_CMT"
15675 case "$host_os" in
15676 linux* | gnu* | k*bsd*-gnu)
15677 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15678 root_prefix="";
15679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
15680 printf "%s\n" "On $host_os systems, root_prefix defaults to ''" >&6; }
15683 esac
15684 case "$host_os" in
15685 linux* | gnu* | k*bsd*-gnu)
15686 if test "$prefix" = NONE ; then
15687 prefix="/usr";
15688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
15689 printf "%s\n" "On $host_os systems, prefix defaults to /usr" >&6; }
15690 if test "$mandir" = '${prefix}/man' ; then
15691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
15692 printf "%s\n" "...and mandir defaults to /usr/share/man" >&6; }
15693 mandir=/usr/share/man
15697 esac
15698 if test "$root_prefix" = NONE ; then
15699 if test "$prefix" = NONE ; then
15700 root_prefix="$ac_default_prefix"
15701 else
15702 root_prefix="$prefix"
15704 root_bindir=$bindir
15705 root_sbindir=$sbindir
15706 root_libdir=$libdir
15707 root_sysconfdir=$sysconfdir
15708 else
15709 root_bindir='${root_prefix}/bin'
15710 root_sbindir='${root_prefix}/sbin'
15711 root_libdir='${root_prefix}/lib'
15712 root_sysconfdir='${root_prefix}/etc'
15714 if test "$bindir" != '${exec_prefix}/bin'; then
15715 root_bindir=$bindir
15716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
15717 printf "%s\n" "Setting root_bindir to $root_bindir" >&6; }
15719 if test "$sbindir" != '${exec_prefix}/sbin'; then
15720 root_sbindir=$sbindir
15721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
15722 printf "%s\n" "Setting root_sbindir to $root_sbindir" >&6; }
15724 if test "$libdir" != '${exec_prefix}/lib'; then
15725 root_libdir=$libdir
15726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
15727 printf "%s\n" "Setting root_libdir to $root_libdir" >&6; }
15729 if test "$sysconfdir" != '${prefix}/etc'; then
15730 root_sysconfdir=$sysconfdir
15731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
15732 printf "%s\n" "Setting root_sysconfdir to $root_sysconfdir" >&6; }
15740 # Check whether --with-multiarch was given.
15741 if test ${with_multiarch+y}
15742 then :
15743 withval=$with_multiarch; if test "$withval" = "lib64"; then
15744 libdir=/usr/lib64
15745 root_libdir=/lib64
15746 else
15747 libdir=$libdir/$withval
15748 root_libdir=$root_libdir/$withval
15753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
15754 printf %s "checking whether we can link with -static... " >&6; }
15755 if test ${ac_cv_e2fsprogs_use_static+y}
15756 then :
15757 printf %s "(cached) " >&6
15758 else $as_nop
15759 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
15760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15761 /* end confdefs.h. */
15762 #include <stdio.h>
15764 main (void)
15766 fflush(stdout);
15768 return 0;
15770 _ACEOF
15771 if ac_fn_c_try_link "$LINENO"
15772 then :
15773 ac_cv_e2fsprogs_use_static=yes
15774 else $as_nop
15775 ac_cv_e2fsprogs_use_static=no
15777 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15778 conftest$ac_exeext conftest.$ac_ext
15779 LDFLAGS=$SAVE_LDFLAGS
15782 case "$host_os" in
15783 solaris2.*)
15784 ac_cv_e2fsprogs_use_static=no
15786 esac
15787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
15788 printf "%s\n" "$ac_cv_e2fsprogs_use_static" >&6; }
15789 if test $ac_cv_e2fsprogs_use_static = yes; then
15790 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
15793 case "$host_os" in
15794 darwin*)
15795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
15796 printf "%s\n" "Using Apple Darwin / GNU libintl workaround" >&6; }
15798 printf "%s\n" "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
15801 esac
15802 if test "$cross_compiling" = yes ; then
15803 DO_TEST_SUITE=
15804 else
15805 DO_TEST_SUITE=check
15808 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
15809 if test -n "$CPPFLAGS" ; then
15810 INCLUDES="$INCLUDES $CPPFLAGS"
15812 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15813 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
15815 if test -n "$WITH_DIET_LIBC" ; then
15816 INCLUDES="$INCLUDES -D_REENTRANT"
15818 case "$host_os" in
15819 mingw*)
15820 INCLUDES=$INCLUDES' -I$(top_srcdir)/include/mingw'
15822 esac
15824 if test $cross_compiling = no; then
15825 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
15826 BUILD_LDFLAGS="$LDFLAGS"
15830 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
15831 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
15832 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
15838 # Check whether --with-udev_rules_dir was given.
15839 if test ${with_udev_rules_dir+y}
15840 then :
15841 withval=$with_udev_rules_dir;
15842 else $as_nop
15843 with_udev_rules_dir=yes
15846 if test "x${with_udev_rules_dir}" != "xno"
15847 then :
15849 if test "x${with_udev_rules_dir}" = "xyes"
15850 then :
15853 pkg_failed=no
15854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
15855 printf %s "checking for udev... " >&6; }
15857 if test -n "$udev_CFLAGS"; then
15858 pkg_cv_udev_CFLAGS="$udev_CFLAGS"
15859 elif test -n "$PKG_CONFIG"; then
15860 if test -n "$PKG_CONFIG" && \
15861 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
15862 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
15863 ac_status=$?
15864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15865 test $ac_status = 0; }; then
15866 pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
15867 test "x$?" != "x0" && pkg_failed=yes
15868 else
15869 pkg_failed=yes
15871 else
15872 pkg_failed=untried
15874 if test -n "$udev_LIBS"; then
15875 pkg_cv_udev_LIBS="$udev_LIBS"
15876 elif test -n "$PKG_CONFIG"; then
15877 if test -n "$PKG_CONFIG" && \
15878 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
15879 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
15880 ac_status=$?
15881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15882 test $ac_status = 0; }; then
15883 pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
15884 test "x$?" != "x0" && pkg_failed=yes
15885 else
15886 pkg_failed=yes
15888 else
15889 pkg_failed=untried
15894 if test $pkg_failed = yes; then
15895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15896 printf "%s\n" "no" >&6; }
15898 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15899 _pkg_short_errors_supported=yes
15900 else
15901 _pkg_short_errors_supported=no
15903 if test $_pkg_short_errors_supported = yes; then
15904 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
15905 else
15906 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
15908 # Put the nasty error message in config.log where it belongs
15909 echo "$udev_PKG_ERRORS" >&5
15912 with_udev_rules_dir=""
15914 elif test $pkg_failed = untried; then
15915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15916 printf "%s\n" "no" >&6; }
15918 with_udev_rules_dir=""
15920 else
15921 udev_CFLAGS=$pkg_cv_udev_CFLAGS
15922 udev_LIBS=$pkg_cv_udev_LIBS
15923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15924 printf "%s\n" "yes" >&6; }
15926 with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
15931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
15932 printf %s "checking for udev rules dir... " >&6; }
15933 pkg_udev_rules_dir="${with_udev_rules_dir}"
15934 if test -n "${pkg_udev_rules_dir}"
15935 then :
15937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
15938 printf "%s\n" "${pkg_udev_rules_dir}" >&6; }
15939 have_udev="yes"
15941 else $as_nop
15943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15944 printf "%s\n" "no" >&6; }
15945 have_udev="no"
15949 else $as_nop
15951 have_udev="disabled"
15958 # Check whether --with-crond_dir was given.
15959 if test ${with_crond_dir+y}
15960 then :
15961 withval=$with_crond_dir;
15962 else $as_nop
15963 with_crond_dir=yes
15966 if test "x${with_crond_dir}" != "xno"
15967 then :
15969 if test "x${with_crond_dir}" = "xyes"
15970 then :
15972 if test -d "/etc/cron.d"
15973 then :
15974 with_crond_dir="/etc/cron.d"
15975 else $as_nop
15976 have_crond="no"; with_crond_dir=""
15980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
15981 printf %s "checking for system crontab dir... " >&6; }
15982 crond_dir="${with_crond_dir}"
15983 if test -n "${crond_dir}"
15984 then :
15986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
15987 printf "%s\n" "${crond_dir}" >&6; }
15988 have_crond="yes"
15990 else $as_nop
15992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15993 printf "%s\n" "no" >&6; }
15994 have_crond="no"
15998 else $as_nop
16000 have_crond="disabled"
16007 # Check whether --with-systemd_unit_dir was given.
16008 if test ${with_systemd_unit_dir+y}
16009 then :
16010 withval=$with_systemd_unit_dir;
16011 else $as_nop
16012 with_systemd_unit_dir=yes
16015 if test "x${with_systemd_unit_dir}" != "xno"
16016 then :
16018 if test "x${with_systemd_unit_dir}" = "xyes"
16019 then :
16022 pkg_failed=no
16023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
16024 printf %s "checking for systemd... " >&6; }
16026 if test -n "$systemd_CFLAGS"; then
16027 pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
16028 elif test -n "$PKG_CONFIG"; then
16029 if test -n "$PKG_CONFIG" && \
16030 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
16031 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
16032 ac_status=$?
16033 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16034 test $ac_status = 0; }; then
16035 pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
16036 test "x$?" != "x0" && pkg_failed=yes
16037 else
16038 pkg_failed=yes
16040 else
16041 pkg_failed=untried
16043 if test -n "$systemd_LIBS"; then
16044 pkg_cv_systemd_LIBS="$systemd_LIBS"
16045 elif test -n "$PKG_CONFIG"; then
16046 if test -n "$PKG_CONFIG" && \
16047 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
16048 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
16049 ac_status=$?
16050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16051 test $ac_status = 0; }; then
16052 pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
16053 test "x$?" != "x0" && pkg_failed=yes
16054 else
16055 pkg_failed=yes
16057 else
16058 pkg_failed=untried
16063 if test $pkg_failed = yes; then
16064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16065 printf "%s\n" "no" >&6; }
16067 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16068 _pkg_short_errors_supported=yes
16069 else
16070 _pkg_short_errors_supported=no
16072 if test $_pkg_short_errors_supported = yes; then
16073 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
16074 else
16075 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
16077 # Put the nasty error message in config.log where it belongs
16078 echo "$systemd_PKG_ERRORS" >&5
16081 with_systemd_unit_dir=""
16083 elif test $pkg_failed = untried; then
16084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16085 printf "%s\n" "no" >&6; }
16087 with_systemd_unit_dir=""
16089 else
16090 systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
16091 systemd_LIBS=$pkg_cv_systemd_LIBS
16092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16093 printf "%s\n" "yes" >&6; }
16095 with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
16101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
16102 printf %s "checking for systemd system unit dir... " >&6; }
16103 systemd_system_unit_dir="${with_systemd_unit_dir}"
16104 if test -n "${systemd_system_unit_dir}"
16105 then :
16107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
16108 printf "%s\n" "${systemd_system_unit_dir}" >&6; }
16109 have_systemd="yes"
16111 else $as_nop
16113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16114 printf "%s\n" "no" >&6; }
16115 have_systemd="no"
16119 else $as_nop
16121 have_systemd="disabled"
16126 OS_IO_FILE=""
16127 case "$host_os" in
16128 mingw*)
16129 OS_IO_FILE=windows_io
16132 OS_IO_FILE=unix_io
16134 esac
16137 test -d lib || mkdir lib
16138 test -d include || mkdir include
16139 test -d include/linux || mkdir include/linux
16140 test -d include/asm || mkdir include/asm
16141 if test -z "$UUID_CMT" ; then
16142 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
16143 lib/uuid/uuid_types.h"
16145 if test -z "$BLKID_CMT" ; then
16146 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
16147 lib/blkid/blkid_types.h"
16149 for i in MCONFIG Makefile \
16150 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
16151 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
16152 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
16153 $uuid_out_list $blkid_out_list lib/support/Makefile \
16154 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
16155 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
16156 debugfs/Makefile tests/Makefile tests/progs/Makefile \
16157 tests/fuzz/Makefile resize/Makefile doc/Makefile \
16158 po/Makefile.in scrub/Makefile; do
16159 if test -d `dirname ${srcdir}/$i` ; then
16160 outlist="$outlist $i"
16162 done
16163 ac_config_files="$ac_config_files $outlist"
16165 cat >confcache <<\_ACEOF
16166 # This file is a shell script that caches the results of configure
16167 # tests run on this system so they can be shared between configure
16168 # scripts and configure runs, see configure's option --config-cache.
16169 # It is not useful on other systems. If it contains results you don't
16170 # want to keep, you may remove or edit it.
16172 # config.status only pays attention to the cache file if you give it
16173 # the --recheck option to rerun configure.
16175 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16176 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16177 # following values.
16179 _ACEOF
16181 # The following way of writing the cache mishandles newlines in values,
16182 # but we know of no workaround that is simple, portable, and efficient.
16183 # So, we kill variables containing newlines.
16184 # Ultrix sh set writes to stderr and can't be redirected directly,
16185 # and sets the high bit in the cache file unless we assign to the vars.
16187 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16188 eval ac_val=\$$ac_var
16189 case $ac_val in #(
16190 *${as_nl}*)
16191 case $ac_var in #(
16192 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16193 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16194 esac
16195 case $ac_var in #(
16196 _ | IFS | as_nl) ;; #(
16197 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16198 *) { eval $ac_var=; unset $ac_var;} ;;
16199 esac ;;
16200 esac
16201 done
16203 (set) 2>&1 |
16204 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16205 *${as_nl}ac_space=\ *)
16206 # `set' does not quote correctly, so add quotes: double-quote
16207 # substitution turns \\\\ into \\, and sed turns \\ into \.
16208 sed -n \
16209 "s/'/'\\\\''/g;
16210 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16211 ;; #(
16213 # `set' quotes correctly as required by POSIX, so do not add quotes.
16214 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16216 esac |
16217 sort
16219 sed '
16220 /^ac_cv_env_/b end
16221 t clear
16222 :clear
16223 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
16224 t end
16225 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16226 :end' >>confcache
16227 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16228 if test -w "$cache_file"; then
16229 if test "x$cache_file" != "x/dev/null"; then
16230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16231 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
16232 if test ! -f "$cache_file" || test -h "$cache_file"; then
16233 cat confcache >"$cache_file"
16234 else
16235 case $cache_file in #(
16236 */* | ?:*)
16237 mv -f confcache "$cache_file"$$ &&
16238 mv -f "$cache_file"$$ "$cache_file" ;; #(
16240 mv -f confcache "$cache_file" ;;
16241 esac
16244 else
16245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16246 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
16249 rm -f confcache
16251 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16252 # Let make expand exec_prefix.
16253 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16255 DEFS=-DHAVE_CONFIG_H
16257 ac_libobjs=
16258 ac_ltlibobjs=
16260 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16261 # 1. Remove the extension, and $U if already installed.
16262 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16263 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
16264 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16265 # will be set to the directory where LIBOBJS objects are built.
16266 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16267 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16268 done
16269 LIBOBJS=$ac_libobjs
16271 LTLIBOBJS=$ac_ltlibobjs
16276 : "${CONFIG_STATUS=./config.status}"
16277 ac_write_fail=0
16278 ac_clean_files_save=$ac_clean_files
16279 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16281 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
16282 as_write_fail=0
16283 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16284 #! $SHELL
16285 # Generated by $as_me.
16286 # Run this file to recreate the current configuration.
16287 # Compiler output produced by configure, useful for debugging
16288 # configure, is in config.log if it exists.
16290 debug=false
16291 ac_cs_recheck=false
16292 ac_cs_silent=false
16294 SHELL=\${CONFIG_SHELL-$SHELL}
16295 export SHELL
16296 _ASEOF
16297 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16298 ## -------------------- ##
16299 ## M4sh Initialization. ##
16300 ## -------------------- ##
16302 # Be more Bourne compatible
16303 DUALCASE=1; export DUALCASE # for MKS sh
16304 as_nop=:
16305 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16306 then :
16307 emulate sh
16308 NULLCMD=:
16309 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16310 # is contrary to our usage. Disable this feature.
16311 alias -g '${1+"$@"}'='"$@"'
16312 setopt NO_GLOB_SUBST
16313 else $as_nop
16314 case `(set -o) 2>/dev/null` in #(
16315 *posix*) :
16316 set -o posix ;; #(
16317 *) :
16319 esac
16324 # Reset variables that may have inherited troublesome values from
16325 # the environment.
16327 # IFS needs to be set, to space, tab, and newline, in precisely that order.
16328 # (If _AS_PATH_WALK were called with IFS unset, it would have the
16329 # side effect of setting IFS to empty, thus disabling word splitting.)
16330 # Quoting is to prevent editors from complaining about space-tab.
16331 as_nl='
16333 export as_nl
16334 IFS=" "" $as_nl"
16336 PS1='$ '
16337 PS2='> '
16338 PS4='+ '
16340 # Ensure predictable behavior from utilities with locale-dependent output.
16341 LC_ALL=C
16342 export LC_ALL
16343 LANGUAGE=C
16344 export LANGUAGE
16346 # We cannot yet rely on "unset" to work, but we need these variables
16347 # to be unset--not just set to an empty or harmless value--now, to
16348 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
16349 # also avoids known problems related to "unset" and subshell syntax
16350 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16351 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16352 do eval test \${$as_var+y} \
16353 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16354 done
16356 # Ensure that fds 0, 1, and 2 are open.
16357 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16358 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16359 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
16361 # The user is always right.
16362 if ${PATH_SEPARATOR+false} :; then
16363 PATH_SEPARATOR=:
16364 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16365 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16366 PATH_SEPARATOR=';'
16371 # Find who we are. Look in the path if we contain no directory separator.
16372 as_myself=
16373 case $0 in #((
16374 *[\\/]* ) as_myself=$0 ;;
16375 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16376 for as_dir in $PATH
16378 IFS=$as_save_IFS
16379 case $as_dir in #(((
16380 '') as_dir=./ ;;
16381 */) ;;
16382 *) as_dir=$as_dir/ ;;
16383 esac
16384 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16385 done
16386 IFS=$as_save_IFS
16389 esac
16390 # We did not find ourselves, most probably we were run as `sh COMMAND'
16391 # in which case we are not to be found in the path.
16392 if test "x$as_myself" = x; then
16393 as_myself=$0
16395 if test ! -f "$as_myself"; then
16396 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16397 exit 1
16402 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16403 # ----------------------------------------
16404 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16405 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16406 # script with STATUS, using 1 if that was 0.
16407 as_fn_error ()
16409 as_status=$1; test $as_status -eq 0 && as_status=1
16410 if test "$4"; then
16411 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16414 printf "%s\n" "$as_me: error: $2" >&2
16415 as_fn_exit $as_status
16416 } # as_fn_error
16420 # as_fn_set_status STATUS
16421 # -----------------------
16422 # Set $? to STATUS, without forking.
16423 as_fn_set_status ()
16425 return $1
16426 } # as_fn_set_status
16428 # as_fn_exit STATUS
16429 # -----------------
16430 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16431 as_fn_exit ()
16433 set +e
16434 as_fn_set_status $1
16435 exit $1
16436 } # as_fn_exit
16438 # as_fn_unset VAR
16439 # ---------------
16440 # Portably unset VAR.
16441 as_fn_unset ()
16443 { eval $1=; unset $1;}
16445 as_unset=as_fn_unset
16447 # as_fn_append VAR VALUE
16448 # ----------------------
16449 # Append the text in VALUE to the end of the definition contained in VAR. Take
16450 # advantage of any shell optimizations that allow amortized linear growth over
16451 # repeated appends, instead of the typical quadratic growth present in naive
16452 # implementations.
16453 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16454 then :
16455 eval 'as_fn_append ()
16457 eval $1+=\$2
16459 else $as_nop
16460 as_fn_append ()
16462 eval $1=\$$1\$2
16464 fi # as_fn_append
16466 # as_fn_arith ARG...
16467 # ------------------
16468 # Perform arithmetic evaluation on the ARGs, and store the result in the
16469 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16470 # must be portable across $(()) and expr.
16471 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16472 then :
16473 eval 'as_fn_arith ()
16475 as_val=$(( $* ))
16477 else $as_nop
16478 as_fn_arith ()
16480 as_val=`expr "$@" || test $? -eq 1`
16482 fi # as_fn_arith
16485 if expr a : '\(a\)' >/dev/null 2>&1 &&
16486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16487 as_expr=expr
16488 else
16489 as_expr=false
16492 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16493 as_basename=basename
16494 else
16495 as_basename=false
16498 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16499 as_dirname=dirname
16500 else
16501 as_dirname=false
16504 as_me=`$as_basename -- "$0" ||
16505 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16506 X"$0" : 'X\(//\)$' \| \
16507 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16508 printf "%s\n" X/"$0" |
16509 sed '/^.*\/\([^/][^/]*\)\/*$/{
16510 s//\1/
16513 /^X\/\(\/\/\)$/{
16514 s//\1/
16517 /^X\/\(\/\).*/{
16518 s//\1/
16521 s/.*/./; q'`
16523 # Avoid depending upon Character Ranges.
16524 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16525 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16526 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16527 as_cr_digits='0123456789'
16528 as_cr_alnum=$as_cr_Letters$as_cr_digits
16531 # Determine whether it's possible to make 'echo' print without a newline.
16532 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16533 # for compatibility with existing Makefiles.
16534 ECHO_C= ECHO_N= ECHO_T=
16535 case `echo -n x` in #(((((
16536 -n*)
16537 case `echo 'xy\c'` in
16538 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16539 xy) ECHO_C='\c';;
16540 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16541 ECHO_T=' ';;
16542 esac;;
16544 ECHO_N='-n';;
16545 esac
16547 # For backward compatibility with old third-party macros, we provide
16548 # the shell variables $as_echo and $as_echo_n. New code should use
16549 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16550 as_echo='printf %s\n'
16551 as_echo_n='printf %s'
16553 rm -f conf$$ conf$$.exe conf$$.file
16554 if test -d conf$$.dir; then
16555 rm -f conf$$.dir/conf$$.file
16556 else
16557 rm -f conf$$.dir
16558 mkdir conf$$.dir 2>/dev/null
16560 if (echo >conf$$.file) 2>/dev/null; then
16561 if ln -s conf$$.file conf$$ 2>/dev/null; then
16562 as_ln_s='ln -s'
16563 # ... but there are two gotchas:
16564 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16565 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16566 # In both cases, we have to default to `cp -pR'.
16567 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16568 as_ln_s='cp -pR'
16569 elif ln conf$$.file conf$$ 2>/dev/null; then
16570 as_ln_s=ln
16571 else
16572 as_ln_s='cp -pR'
16574 else
16575 as_ln_s='cp -pR'
16577 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16578 rmdir conf$$.dir 2>/dev/null
16581 # as_fn_mkdir_p
16582 # -------------
16583 # Create "$as_dir" as a directory, including parents if necessary.
16584 as_fn_mkdir_p ()
16587 case $as_dir in #(
16588 -*) as_dir=./$as_dir;;
16589 esac
16590 test -d "$as_dir" || eval $as_mkdir_p || {
16591 as_dirs=
16592 while :; do
16593 case $as_dir in #(
16594 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16595 *) as_qdir=$as_dir;;
16596 esac
16597 as_dirs="'$as_qdir' $as_dirs"
16598 as_dir=`$as_dirname -- "$as_dir" ||
16599 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16600 X"$as_dir" : 'X\(//\)[^/]' \| \
16601 X"$as_dir" : 'X\(//\)$' \| \
16602 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16603 printf "%s\n" X"$as_dir" |
16604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16605 s//\1/
16608 /^X\(\/\/\)[^/].*/{
16609 s//\1/
16612 /^X\(\/\/\)$/{
16613 s//\1/
16616 /^X\(\/\).*/{
16617 s//\1/
16620 s/.*/./; q'`
16621 test -d "$as_dir" && break
16622 done
16623 test -z "$as_dirs" || eval "mkdir $as_dirs"
16624 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16627 } # as_fn_mkdir_p
16628 if mkdir -p . 2>/dev/null; then
16629 as_mkdir_p='mkdir -p "$as_dir"'
16630 else
16631 test -d ./-p && rmdir ./-p
16632 as_mkdir_p=false
16636 # as_fn_executable_p FILE
16637 # -----------------------
16638 # Test if FILE is an executable regular file.
16639 as_fn_executable_p ()
16641 test -f "$1" && test -x "$1"
16642 } # as_fn_executable_p
16643 as_test_x='test -x'
16644 as_executable_p=as_fn_executable_p
16646 # Sed expression to map a string onto a valid CPP name.
16647 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16649 # Sed expression to map a string onto a valid variable name.
16650 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16653 exec 6>&1
16654 ## ----------------------------------- ##
16655 ## Main body of $CONFIG_STATUS script. ##
16656 ## ----------------------------------- ##
16657 _ASEOF
16658 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16661 # Save the log message, to keep $0 and so on meaningful, and to
16662 # report actual input values of CONFIG_FILES etc. instead of their
16663 # values after options handling.
16664 ac_log="
16665 This file was extended by $as_me, which was
16666 generated by GNU Autoconf 2.71. Invocation command line was
16668 CONFIG_FILES = $CONFIG_FILES
16669 CONFIG_HEADERS = $CONFIG_HEADERS
16670 CONFIG_LINKS = $CONFIG_LINKS
16671 CONFIG_COMMANDS = $CONFIG_COMMANDS
16672 $ $0 $@
16674 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16677 _ACEOF
16679 case $ac_config_files in *"
16680 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16681 esac
16683 case $ac_config_headers in *"
16684 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16685 esac
16688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16689 # Files that config.status was made for.
16690 config_files="$ac_config_files"
16691 config_headers="$ac_config_headers"
16692 config_commands="$ac_config_commands"
16694 _ACEOF
16696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16697 ac_cs_usage="\
16698 \`$as_me' instantiates files and other configuration actions
16699 from templates according to the current configuration. Unless the files
16700 and actions are specified as TAGs, all are instantiated by default.
16702 Usage: $0 [OPTION]... [TAG]...
16704 -h, --help print this help, then exit
16705 -V, --version print version number and configuration settings, then exit
16706 --config print configuration, then exit
16707 -q, --quiet, --silent
16708 do not print progress messages
16709 -d, --debug don't remove temporary files
16710 --recheck update $as_me by reconfiguring in the same conditions
16711 --file=FILE[:TEMPLATE]
16712 instantiate the configuration file FILE
16713 --header=FILE[:TEMPLATE]
16714 instantiate the configuration header FILE
16716 Configuration files:
16717 $config_files
16719 Configuration headers:
16720 $config_headers
16722 Configuration commands:
16723 $config_commands
16725 Report bugs to the package provider."
16727 _ACEOF
16728 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16729 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16731 ac_cs_config='$ac_cs_config_escaped'
16732 ac_cs_version="\\
16733 config.status
16734 configured by $0, generated by GNU Autoconf 2.71,
16735 with options \\"\$ac_cs_config\\"
16737 Copyright (C) 2021 Free Software Foundation, Inc.
16738 This config.status script is free software; the Free Software Foundation
16739 gives unlimited permission to copy, distribute and modify it."
16741 ac_pwd='$ac_pwd'
16742 srcdir='$srcdir'
16743 INSTALL='$INSTALL'
16744 MKDIR_P='$MKDIR_P'
16745 AWK='$AWK'
16746 test -n "\$AWK" || AWK=awk
16747 _ACEOF
16749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16750 # The default lists apply if the user does not specify any file.
16751 ac_need_defaults=:
16752 while test $# != 0
16754 case $1 in
16755 --*=?*)
16756 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16757 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16758 ac_shift=:
16760 --*=)
16761 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16762 ac_optarg=
16763 ac_shift=:
16766 ac_option=$1
16767 ac_optarg=$2
16768 ac_shift=shift
16770 esac
16772 case $ac_option in
16773 # Handling of the options.
16774 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16775 ac_cs_recheck=: ;;
16776 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16777 printf "%s\n" "$ac_cs_version"; exit ;;
16778 --config | --confi | --conf | --con | --co | --c )
16779 printf "%s\n" "$ac_cs_config"; exit ;;
16780 --debug | --debu | --deb | --de | --d | -d )
16781 debug=: ;;
16782 --file | --fil | --fi | --f )
16783 $ac_shift
16784 case $ac_optarg in
16785 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16786 '') as_fn_error $? "missing file argument" ;;
16787 esac
16788 as_fn_append CONFIG_FILES " '$ac_optarg'"
16789 ac_need_defaults=false;;
16790 --header | --heade | --head | --hea )
16791 $ac_shift
16792 case $ac_optarg in
16793 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16794 esac
16795 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16796 ac_need_defaults=false;;
16797 --he | --h)
16798 # Conflict between --help and --header
16799 as_fn_error $? "ambiguous option: \`$1'
16800 Try \`$0 --help' for more information.";;
16801 --help | --hel | -h )
16802 printf "%s\n" "$ac_cs_usage"; exit ;;
16803 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16804 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16805 ac_cs_silent=: ;;
16807 # This is an error.
16808 -*) as_fn_error $? "unrecognized option: \`$1'
16809 Try \`$0 --help' for more information." ;;
16811 *) as_fn_append ac_config_targets " $1"
16812 ac_need_defaults=false ;;
16814 esac
16815 shift
16816 done
16818 ac_configure_extra_args=
16820 if $ac_cs_silent; then
16821 exec 6>/dev/null
16822 ac_configure_extra_args="$ac_configure_extra_args --silent"
16825 _ACEOF
16826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16827 if \$ac_cs_recheck; then
16828 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16829 shift
16830 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16831 CONFIG_SHELL='$SHELL'
16832 export CONFIG_SHELL
16833 exec "\$@"
16836 _ACEOF
16837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16838 exec 5>>config.log
16840 echo
16841 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16842 ## Running $as_me. ##
16843 _ASBOX
16844 printf "%s\n" "$ac_log"
16845 } >&5
16847 _ACEOF
16848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16850 # INIT-COMMANDS
16852 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16853 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
16854 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
16855 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16856 LINGUAS="${LINGUAS-%UNSET%}"
16859 _ACEOF
16861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16863 # Handling of arguments.
16864 for ac_config_target in $ac_config_targets
16866 case $ac_config_target in
16867 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
16868 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
16869 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
16871 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16872 esac
16873 done
16876 # If the user did not use the arguments to specify the items to instantiate,
16877 # then the envvar interface is used. Set only those that are not.
16878 # We use the long form for the default assignment because of an extremely
16879 # bizarre bug on SunOS 4.1.3.
16880 if $ac_need_defaults; then
16881 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16882 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16883 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16886 # Have a temporary directory for convenience. Make it in the build tree
16887 # simply because there is no reason against having it here, and in addition,
16888 # creating and moving files from /tmp can sometimes cause problems.
16889 # Hook for its removal unless debugging.
16890 # Note that there is a small window in which the directory will not be cleaned:
16891 # after its creation but before its name has been assigned to `$tmp'.
16892 $debug ||
16894 tmp= ac_tmp=
16895 trap 'exit_status=$?
16896 : "${ac_tmp:=$tmp}"
16897 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16899 trap 'as_fn_exit 1' 1 2 13 15
16901 # Create a (secure) tmp directory for tmp files.
16904 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16905 test -d "$tmp"
16906 } ||
16908 tmp=./conf$$-$RANDOM
16909 (umask 077 && mkdir "$tmp")
16910 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16911 ac_tmp=$tmp
16913 # Set up the scripts for CONFIG_FILES section.
16914 # No need to generate them if there are no CONFIG_FILES.
16915 # This happens for instance with `./config.status config.h'.
16916 if test -n "$CONFIG_FILES"; then
16918 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16919 ac_cs_awk_getline=:
16920 ac_cs_awk_pipe_init=
16921 ac_cs_awk_read_file='
16922 while ((getline aline < (F[key])) > 0)
16923 print(aline)
16924 close(F[key])'
16925 ac_cs_awk_pipe_fini=
16926 else
16927 ac_cs_awk_getline=false
16928 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16929 ac_cs_awk_read_file='
16930 print "|#_!!_#|"
16931 print "cat " F[key] " &&"
16932 '$ac_cs_awk_pipe_init
16933 # The final `:' finishes the AND list.
16934 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16936 ac_cr=`echo X | tr X '\015'`
16937 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16938 # But we know of no other shell where ac_cr would be empty at this
16939 # point, so we can use a bashism as a fallback.
16940 if test "x$ac_cr" = x; then
16941 eval ac_cr=\$\'\\r\'
16943 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16944 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16945 ac_cs_awk_cr='\\r'
16946 else
16947 ac_cs_awk_cr=$ac_cr
16950 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16951 _ACEOF
16953 # Create commands to substitute file output variables.
16955 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16956 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16957 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16958 echo "_ACAWK" &&
16959 echo "_ACEOF"
16960 } >conf$$files.sh &&
16961 . ./conf$$files.sh ||
16962 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16963 rm -f conf$$files.sh
16966 echo "cat >conf$$subs.awk <<_ACEOF" &&
16967 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16968 echo "_ACEOF"
16969 } >conf$$subs.sh ||
16970 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16971 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16972 ac_delim='%!_!# '
16973 for ac_last_try in false false false false false :; do
16974 . ./conf$$subs.sh ||
16975 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16977 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16978 if test $ac_delim_n = $ac_delim_num; then
16979 break
16980 elif $ac_last_try; then
16981 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16982 else
16983 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16985 done
16986 rm -f conf$$subs.sh
16988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16989 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16990 _ACEOF
16991 sed -n '
16993 s/^/S["/; s/!.*/"]=/
16996 s/^[^!]*!//
16997 :repl
16998 t repl
16999 s/'"$ac_delim"'$//
17000 t delim
17003 s/\(.\{148\}\)..*/\1/
17004 t more1
17005 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17008 b repl
17009 :more1
17010 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17013 s/.\{148\}//
17014 t nl
17015 :delim
17017 s/\(.\{148\}\)..*/\1/
17018 t more2
17019 s/["\\]/\\&/g; s/^/"/; s/$/"/
17022 :more2
17023 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17026 s/.\{148\}//
17027 t delim
17028 ' <conf$$subs.awk | sed '
17029 /^[^""]/{
17031 s/\n//
17033 ' >>$CONFIG_STATUS || ac_write_fail=1
17034 rm -f conf$$subs.awk
17035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17036 _ACAWK
17037 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17038 for (key in S) S_is_set[key] = 1
17039 FS = "\a"
17040 \$ac_cs_awk_pipe_init
17043 line = $ 0
17044 nfields = split(line, field, "@")
17045 substed = 0
17046 len = length(field[1])
17047 for (i = 2; i < nfields; i++) {
17048 key = field[i]
17049 keylen = length(key)
17050 if (S_is_set[key]) {
17051 value = S[key]
17052 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17053 len += length(value) + length(field[++i])
17054 substed = 1
17055 } else
17056 len += 1 + keylen
17058 if (nfields == 3 && !substed) {
17059 key = field[2]
17060 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17061 \$ac_cs_awk_read_file
17062 next
17065 print line
17067 \$ac_cs_awk_pipe_fini
17068 _ACAWK
17069 _ACEOF
17070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17071 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17072 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17073 else
17075 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17076 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17077 _ACEOF
17079 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17080 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17081 # trailing colons and then remove the whole line if VPATH becomes empty
17082 # (actually we leave an empty line to preserve line numbers).
17083 if test "x$srcdir" = x.; then
17084 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17086 s///
17087 s/^/:/
17088 s/[ ]*$/:/
17089 s/:\$(srcdir):/:/g
17090 s/:\${srcdir}:/:/g
17091 s/:@srcdir@:/:/g
17092 s/^:*//
17093 s/:*$//
17095 s/\(=[ ]*\).*/\1/
17097 s/\n//
17098 s/^[^=]*=[ ]*$//
17102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17103 fi # test -n "$CONFIG_FILES"
17105 # Set up the scripts for CONFIG_HEADERS section.
17106 # No need to generate them if there are no CONFIG_HEADERS.
17107 # This happens for instance with `./config.status Makefile'.
17108 if test -n "$CONFIG_HEADERS"; then
17109 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17110 BEGIN {
17111 _ACEOF
17113 # Transform confdefs.h into an awk script `defines.awk', embedded as
17114 # here-document in config.status, that substitutes the proper values into
17115 # config.h.in to produce config.h.
17117 # Create a delimiter string that does not exist in confdefs.h, to ease
17118 # handling of long lines.
17119 ac_delim='%!_!# '
17120 for ac_last_try in false false :; do
17121 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17122 if test -z "$ac_tt"; then
17123 break
17124 elif $ac_last_try; then
17125 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17126 else
17127 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17129 done
17131 # For the awk script, D is an array of macro values keyed by name,
17132 # likewise P contains macro parameters if any. Preserve backslash
17133 # newline sequences.
17135 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17136 sed -n '
17137 s/.\{148\}/&'"$ac_delim"'/g
17138 t rset
17139 :rset
17140 s/^[ ]*#[ ]*define[ ][ ]*/ /
17141 t def
17143 :def
17144 s/\\$//
17145 t bsnl
17146 s/["\\]/\\&/g
17147 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17148 D["\1"]=" \3"/p
17149 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17151 :bsnl
17152 s/["\\]/\\&/g
17153 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17154 D["\1"]=" \3\\\\\\n"\\/p
17155 t cont
17156 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17157 t cont
17159 :cont
17161 s/.\{148\}/&'"$ac_delim"'/g
17162 t clear
17163 :clear
17164 s/\\$//
17165 t bsnlc
17166 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17168 :bsnlc
17169 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17170 b cont
17171 ' <confdefs.h | sed '
17172 s/'"$ac_delim"'/"\\\
17173 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17176 for (key in D) D_is_set[key] = 1
17177 FS = "\a"
17179 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17180 line = \$ 0
17181 split(line, arg, " ")
17182 if (arg[1] == "#") {
17183 defundef = arg[2]
17184 mac1 = arg[3]
17185 } else {
17186 defundef = substr(arg[1], 2)
17187 mac1 = arg[2]
17189 split(mac1, mac2, "(") #)
17190 macro = mac2[1]
17191 prefix = substr(line, 1, index(line, defundef) - 1)
17192 if (D_is_set[macro]) {
17193 # Preserve the white space surrounding the "#".
17194 print prefix "define", macro P[macro] D[macro]
17195 next
17196 } else {
17197 # Replace #undef with comments. This is necessary, for example,
17198 # in the case of _POSIX_SOURCE, which is predefined and required
17199 # on some systems where configure will not decide to define it.
17200 if (defundef == "undef") {
17201 print "/*", prefix defundef, macro, "*/"
17202 next
17206 { print }
17207 _ACAWK
17208 _ACEOF
17209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17210 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17211 fi # test -n "$CONFIG_HEADERS"
17214 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17215 shift
17216 for ac_tag
17218 case $ac_tag in
17219 :[FHLC]) ac_mode=$ac_tag; continue;;
17220 esac
17221 case $ac_mode$ac_tag in
17222 :[FHL]*:*);;
17223 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17224 :[FH]-) ac_tag=-:-;;
17225 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17226 esac
17227 ac_save_IFS=$IFS
17228 IFS=:
17229 set x $ac_tag
17230 IFS=$ac_save_IFS
17231 shift
17232 ac_file=$1
17233 shift
17235 case $ac_mode in
17236 :L) ac_source=$1;;
17237 :[FH])
17238 ac_file_inputs=
17239 for ac_f
17241 case $ac_f in
17242 -) ac_f="$ac_tmp/stdin";;
17243 *) # Look for the file first in the build tree, then in the source tree
17244 # (if the path is not absolute). The absolute path cannot be DOS-style,
17245 # because $ac_f cannot contain `:'.
17246 test -f "$ac_f" ||
17247 case $ac_f in
17248 [\\/$]*) false;;
17249 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17250 esac ||
17251 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17252 esac
17253 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17254 as_fn_append ac_file_inputs " '$ac_f'"
17255 done
17257 # Let's still pretend it is `configure' which instantiates (i.e., don't
17258 # use $as_me), people would be surprised to read:
17259 # /* config.h. Generated by config.status. */
17260 configure_input='Generated from '`
17261 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17262 `' by configure.'
17263 if test x"$ac_file" != x-; then
17264 configure_input="$ac_file. $configure_input"
17265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17266 printf "%s\n" "$as_me: creating $ac_file" >&6;}
17268 # Neutralize special characters interpreted by sed in replacement strings.
17269 case $configure_input in #(
17270 *\&* | *\|* | *\\* )
17271 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
17272 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17273 *) ac_sed_conf_input=$configure_input;;
17274 esac
17276 case $ac_tag in
17277 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17278 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17279 esac
17281 esac
17283 ac_dir=`$as_dirname -- "$ac_file" ||
17284 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17285 X"$ac_file" : 'X\(//\)[^/]' \| \
17286 X"$ac_file" : 'X\(//\)$' \| \
17287 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17288 printf "%s\n" X"$ac_file" |
17289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17290 s//\1/
17293 /^X\(\/\/\)[^/].*/{
17294 s//\1/
17297 /^X\(\/\/\)$/{
17298 s//\1/
17301 /^X\(\/\).*/{
17302 s//\1/
17305 s/.*/./; q'`
17306 as_dir="$ac_dir"; as_fn_mkdir_p
17307 ac_builddir=.
17309 case "$ac_dir" in
17310 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17312 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
17313 # A ".." for each directory in $ac_dir_suffix.
17314 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17315 case $ac_top_builddir_sub in
17316 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17317 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17318 esac ;;
17319 esac
17320 ac_abs_top_builddir=$ac_pwd
17321 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17322 # for backward compatibility:
17323 ac_top_builddir=$ac_top_build_prefix
17325 case $srcdir in
17326 .) # We are building in place.
17327 ac_srcdir=.
17328 ac_top_srcdir=$ac_top_builddir_sub
17329 ac_abs_top_srcdir=$ac_pwd ;;
17330 [\\/]* | ?:[\\/]* ) # Absolute name.
17331 ac_srcdir=$srcdir$ac_dir_suffix;
17332 ac_top_srcdir=$srcdir
17333 ac_abs_top_srcdir=$srcdir ;;
17334 *) # Relative name.
17335 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17336 ac_top_srcdir=$ac_top_build_prefix$srcdir
17337 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17338 esac
17339 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17342 case $ac_mode in
17345 # CONFIG_FILE
17348 case $INSTALL in
17349 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17350 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17351 esac
17352 ac_MKDIR_P=$MKDIR_P
17353 case $MKDIR_P in
17354 [\\/$]* | ?:[\\/]* ) ;;
17355 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17356 esac
17357 _ACEOF
17359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17360 # If the template does not know about datarootdir, expand it.
17361 # FIXME: This hack should be removed a few years after 2.60.
17362 ac_datarootdir_hack=; ac_datarootdir_seen=
17363 ac_sed_dataroot='
17364 /datarootdir/ {
17368 /@datadir@/p
17369 /@docdir@/p
17370 /@infodir@/p
17371 /@localedir@/p
17372 /@mandir@/p'
17373 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17374 *datarootdir*) ac_datarootdir_seen=yes;;
17375 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17377 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17378 _ACEOF
17379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17380 ac_datarootdir_hack='
17381 s&@datadir@&$datadir&g
17382 s&@docdir@&$docdir&g
17383 s&@infodir@&$infodir&g
17384 s&@localedir@&$localedir&g
17385 s&@mandir@&$mandir&g
17386 s&\\\${datarootdir}&$datarootdir&g' ;;
17387 esac
17388 _ACEOF
17390 # Neutralize VPATH when `$srcdir' = `.'.
17391 # Shell code in configure.ac might set extrasub.
17392 # FIXME: do we really want to maintain this feature?
17393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17394 ac_sed_extra="$ac_vpsub
17395 $extrasub
17396 _ACEOF
17397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17399 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17400 s|@configure_input@|$ac_sed_conf_input|;t t
17401 s&@top_builddir@&$ac_top_builddir_sub&;t t
17402 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17403 s&@srcdir@&$ac_srcdir&;t t
17404 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17405 s&@top_srcdir@&$ac_top_srcdir&;t t
17406 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17407 s&@builddir@&$ac_builddir&;t t
17408 s&@abs_builddir@&$ac_abs_builddir&;t t
17409 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17410 s&@INSTALL@&$ac_INSTALL&;t t
17411 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17412 $ac_datarootdir_hack
17414 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17415 if $ac_cs_awk_getline; then
17416 $AWK -f "$ac_tmp/subs.awk"
17417 else
17418 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17419 fi \
17420 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17422 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17423 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17424 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17425 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17427 which seems to be undefined. Please make sure it is defined" >&5
17428 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17429 which seems to be undefined. Please make sure it is defined" >&2;}
17431 rm -f "$ac_tmp/stdin"
17432 case $ac_file in
17433 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17434 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17435 esac \
17436 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17440 # CONFIG_HEADER
17442 if test x"$ac_file" != x-; then
17444 printf "%s\n" "/* $configure_input */" >&1 \
17445 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17446 } >"$ac_tmp/config.h" \
17447 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17448 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17450 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
17451 else
17452 rm -f "$ac_file"
17453 mv "$ac_tmp/config.h" "$ac_file" \
17454 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17456 else
17457 printf "%s\n" "/* $configure_input */" >&1 \
17458 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17459 || as_fn_error $? "could not create -" "$LINENO" 5
17463 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17464 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
17466 esac
17469 case $ac_file$ac_mode in
17470 "po-directories":C)
17471 for ac_file in $CONFIG_FILES; do
17472 # Support "outfile[:infile[:infile...]]"
17473 case "$ac_file" in
17474 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17475 esac
17476 # PO directories have a Makefile.in generated from Makefile.in.in.
17477 case "$ac_file" in */Makefile.in)
17478 # Adjust a relative srcdir.
17479 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17480 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
17481 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17482 # In autoconf-2.13 it is called $ac_given_srcdir.
17483 # In autoconf-2.50 it is called $srcdir.
17484 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17485 case "$ac_given_srcdir" in
17486 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17487 /*) top_srcdir="$ac_given_srcdir" ;;
17488 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17489 esac
17490 # Treat a directory as a PO directory if and only if it has a
17491 # POTFILES.in file. This allows packages to have multiple PO
17492 # directories under different names or in different locations.
17493 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17494 rm -f "$ac_dir/POTFILES"
17495 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17496 gt_tab=`printf '\t'`
17497 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17498 POMAKEFILEDEPS="POTFILES.in"
17499 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17500 # on $ac_dir but don't depend on user-specified configuration
17501 # parameters.
17502 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17503 # The LINGUAS file contains the set of available languages.
17504 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17505 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17507 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17508 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17509 else
17510 # The set of available languages was given in configure.in.
17511 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
17513 # Compute POFILES
17514 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17515 # Compute UPDATEPOFILES
17516 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17517 # Compute DUMMYPOFILES
17518 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17519 # Compute GMOFILES
17520 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17521 case "$ac_given_srcdir" in
17522 .) srcdirpre= ;;
17523 *) srcdirpre='$(srcdir)/' ;;
17524 esac
17525 POFILES=
17526 UPDATEPOFILES=
17527 DUMMYPOFILES=
17528 GMOFILES=
17529 for lang in $ALL_LINGUAS; do
17530 POFILES="$POFILES $srcdirpre$lang.po"
17531 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17532 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17533 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17534 done
17535 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17536 # environment variable.
17537 INST_LINGUAS=
17538 if test -n "$ALL_LINGUAS"; then
17539 for presentlang in $ALL_LINGUAS; do
17540 useit=no
17541 if test "%UNSET%" != "$LINGUAS"; then
17542 desiredlanguages="$LINGUAS"
17543 else
17544 desiredlanguages="$ALL_LINGUAS"
17546 for desiredlang in $desiredlanguages; do
17547 # Use the presentlang catalog if desiredlang is
17548 # a. equal to presentlang, or
17549 # b. a variant of presentlang (because in this case,
17550 # presentlang can be used as a fallback for messages
17551 # which are not translated in the desiredlang catalog).
17552 case "$desiredlang" in
17553 "$presentlang"*) useit=yes;;
17554 esac
17555 done
17556 if test $useit = yes; then
17557 INST_LINGUAS="$INST_LINGUAS $presentlang"
17559 done
17561 CATALOGS=
17562 if test -n "$INST_LINGUAS"; then
17563 for lang in $INST_LINGUAS; do
17564 CATALOGS="$CATALOGS $lang.gmo"
17565 done
17567 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17568 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
17569 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17570 if test -f "$f"; then
17571 case "$f" in
17572 *.orig | *.bak | *~) ;;
17573 *) cat "$f" >> "$ac_dir/Makefile" ;;
17574 esac
17576 done
17579 esac
17580 done ;;
17582 esac
17583 done # for ac_tag
17586 as_fn_exit 0
17587 _ACEOF
17588 ac_clean_files=$ac_clean_files_save
17590 test $ac_write_fail = 0 ||
17591 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17594 # configure is writing to config.log, and then calls config.status.
17595 # config.status does its own redirection, appending to config.log.
17596 # Unfortunately, on DOS this fails, as config.log is still kept open
17597 # by configure, so config.status won't be able to write to it; its
17598 # output is simply discarded. So we exec the FD to /dev/null,
17599 # effectively closing config.log, so it can be properly (re)opened and
17600 # appended to by config.status. When coming back to configure, we
17601 # need to make the FD available again.
17602 if test "$no_create" != yes; then
17603 ac_cs_success=:
17604 ac_config_status_args=
17605 test "$silent" = yes &&
17606 ac_config_status_args="$ac_config_status_args --quiet"
17607 exec 5>/dev/null
17608 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17609 exec 5>>config.log
17610 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17611 # would make configure fail if this is the last instruction.
17612 $ac_cs_success || as_fn_exit 1
17614 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17616 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17619 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi