]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blob - configure
Drop subset tarball and replace it with "configure --enable-subset"
[thirdparty/e2fsprogs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="version.h"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
621
622 gt_needs=
623 ac_header_list=
624 gl_use_threads_default=
625 ac_func_list=
626 ac_subst_vars='LTLIBOBJS
627 LIBOBJS
628 LDFLAGS_SHLIB
629 CFLAGS_STLIB
630 CFLAGS_SHLIB
631 BUILD_LDFLAGS
632 BUILD_CFLAGS
633 INCLUDES
634 DO_TEST_SUITE
635 LDFLAGS_STATIC
636 root_sysconfdir
637 root_libdir
638 root_sbindir
639 root_bindir
640 root_prefix
641 UNIX_CMT
642 CYGWIN_CMT
643 LINUX_CMT
644 UNI_DIFF_OPTS
645 SEM_INIT_LIB
646 FUSE_CMT
647 FUSE_LIB
648 CLOCK_GETTIME_LIB
649 MAGIC_LIB
650 SOCKET_LIB
651 SIZEOF_TIME_T
652 SIZEOF_OFF_T
653 SIZEOF_LONG_LONG
654 SIZEOF_LONG
655 SIZEOF_INT
656 SIZEOF_SHORT
657 DD
658 BUILD_CC
659 MAKEINFO
660 STRIP
661 AR
662 LDCONFIG
663 PERL
664 AWK
665 CHMOD
666 RM
667 CP
668 MV
669 LN_S
670 LN
671 ifNotGNUmake
672 ifGNUmake
673 BINARY_TYPE
674 POSUB
675 LTLIBINTL
676 LIBINTL
677 INTLLIBS
678 INTL_LIBTOOL_SUFFIX_PREFIX
679 INTLOBJS
680 GENCAT
681 INSTOBJEXT
682 DATADIRNAME
683 CATOBJEXT
684 USE_INCLUDED_LIBINTL
685 BUILD_INCLUDED_LIBINTL
686 LTLIBC
687 WINDRES
688 WOE32
689 WOE32DLL
690 HAVE_WPRINTF
691 HAVE_NEWLOCALE
692 HAVE_SNPRINTF
693 HAVE_ASPRINTF
694 HAVE_POSIX_PRINTF
695 INTL_DEFAULT_VERBOSITY
696 INTL_MACOSX_LIBS
697 GLIBC21
698 INTLBISON
699 LTLIBICONV
700 LIBICONV
701 LTLIBMULTITHREAD
702 LIBMULTITHREAD
703 LTLIBTHREAD
704 LIBTHREAD
705 LIBPTH_PREFIX
706 LTLIBPTH
707 LIBPTH
708 PRI_MACROS_BROKEN
709 ALLOCA
710 HAVE_VISIBILITY
711 CFLAG_VISIBILITY
712 RANLIB
713 GLIBC2
714 XGETTEXT_EXTRA_OPTIONS
715 MSGMERGE
716 XGETTEXT_015
717 XGETTEXT
718 GMSGFMT_015
719 MSGFMT_015
720 GMSGFMT
721 MSGFMT
722 GETTEXT_MACRO_VERSION
723 USE_NLS
724 SED
725 MKDIR_P
726 INSTALL_DATA
727 INSTALL_SCRIPT
728 INSTALL_PROGRAM
729 SET_MAKE
730 VERSION
731 PACKAGE
732 GETTEXT_PACKAGE
733 TDB_MAN_COMMENT
734 TDB_CMT
735 UUIDD_CMT
736 E2INITRD_MAN
737 E2INITRD_PROG
738 FSCK_MAN
739 FSCK_PROG
740 DEFRAG_CMT
741 RESIZER_CMT
742 IMAGER_CMT
743 DEBUGFS_CMT
744 ALL_CMT
745 BLKID_CMT
746 DEPPROFILED_LIBBLKID
747 PROFILED_LIBBLKID
748 DEPSTATIC_LIBBLKID
749 STATIC_LIBBLKID
750 DEPLIBBLKID
751 LIBBLKID
752 UUID_CMT
753 DEPPROFILED_LIBUUID
754 PROFILED_LIBUUID
755 DEPSTATIC_LIBUUID
756 STATIC_LIBUUID
757 DEPLIBUUID
758 LIBUUID
759 PKG_CONFIG_LIBDIR
760 PKG_CONFIG_PATH
761 PKG_CONFIG
762 TEST_IO_CMT
763 PRIVATE_LIBS_CMT
764 LDFLAG_DYNAMIC
765 PROFILED_LIB_EXT
766 STATIC_LIB_EXT
767 LIB_EXT
768 PROFILE_CMT
769 BSDLIB_CMT
770 ELF_CMT
771 Q
772 ES
773 E
774 LINK_BUILD_FLAGS
775 SYMLINK_RELATIVE
776 LINK_INSTALL_FLAGS
777 MAINTAINER_CMT
778 EGREP
779 GREP
780 CPP
781 RDYNAMIC
782 DLOPEN_LIB
783 OBJEXT
784 EXEEXT
785 ac_ct_CC
786 CPPFLAGS
787 LDFLAGS
788 CFLAGS
789 CC
790 host_os
791 host_vendor
792 host_cpu
793 host
794 build_os
795 build_vendor
796 build_cpu
797 build
798 E2FSPROGS_PKGVER
799 E2FSPROGS_VERSION
800 E2FSPROGS_DAY
801 E2FSPROGS_MONTH
802 E2FSPROGS_YEAR
803 target_alias
804 host_alias
805 build_alias
806 LIBS
807 ECHO_T
808 ECHO_N
809 ECHO_C
810 DEFS
811 mandir
812 localedir
813 libdir
814 psdir
815 pdfdir
816 dvidir
817 htmldir
818 infodir
819 docdir
820 oldincludedir
821 includedir
822 runstatedir
823 localstatedir
824 sharedstatedir
825 sysconfdir
826 datadir
827 datarootdir
828 libexecdir
829 sbindir
830 bindir
831 program_transform_name
832 prefix
833 exec_prefix
834 PACKAGE_URL
835 PACKAGE_BUGREPORT
836 PACKAGE_STRING
837 PACKAGE_VERSION
838 PACKAGE_TARNAME
839 PACKAGE_NAME
840 PATH_SEPARATOR
841 SHELL'
842 ac_subst_files='MCONFIG
843 MAKEFILE_ELF
844 MAKEFILE_BSDLIB
845 MAKEFILE_PROFILE
846 MAKEFILE_LIBRARY
847 ASM_TYPES_HEADER
848 PUBLIC_CONFIG_HEADER'
849 ac_user_opts='
850 enable_option_checking
851 with_diet_libc
852 with_cc
853 with_ccopts
854 with_ldopts
855 with_root_prefix
856 enable_maintainer_mode
857 enable_symlink_install
858 enable_relative_symlinks
859 enable_symlink_relative_symlinks
860 enable_symlink_build
861 enable_verbose_makecmds
862 enable_elf_shlibs
863 enable_bsd_shlibs
864 enable_profile
865 enable_gcov
866 enable_hardening
867 enable_jbd_debug
868 enable_blkid_debug
869 enable_testio_debug
870 enable_libuuid
871 enable_libblkid
872 enable_subset
873 enable_backtrace
874 enable_debugfs
875 enable_imager
876 enable_resizer
877 enable_defrag
878 enable_fsck
879 enable_e2initrd_helper
880 enable_tls
881 enable_uuidd
882 enable_mmp
883 enable_tdb
884 enable_bmap_stats
885 enable_bmap_stats_ops
886 enable_nls
887 enable_threads
888 with_gnu_ld
889 enable_rpath
890 with_libpth_prefix
891 with_libiconv_prefix
892 with_included_gettext
893 with_libintl_prefix
894 enable_fuse2fs
895 with_multiarch
896 '
897 ac_precious_vars='build_alias
898 host_alias
899 target_alias
900 CC
901 CFLAGS
902 LDFLAGS
903 LIBS
904 CPPFLAGS
905 CPP
906 PKG_CONFIG
907 PKG_CONFIG_PATH
908 PKG_CONFIG_LIBDIR'
909
910
911 # Initialize some variables set by options.
912 ac_init_help=
913 ac_init_version=false
914 ac_unrecognized_opts=
915 ac_unrecognized_sep=
916 # The variables have the same names as the options, with
917 # dashes changed to underlines.
918 cache_file=/dev/null
919 exec_prefix=NONE
920 no_create=
921 no_recursion=
922 prefix=NONE
923 program_prefix=NONE
924 program_suffix=NONE
925 program_transform_name=s,x,x,
926 silent=
927 site=
928 srcdir=
929 verbose=
930 x_includes=NONE
931 x_libraries=NONE
932
933 # Installation directory options.
934 # These are left unexpanded so users can "make install exec_prefix=/foo"
935 # and all the variables that are supposed to be based on exec_prefix
936 # by default will actually change.
937 # Use braces instead of parens because sh, perl, etc. also accept them.
938 # (The list follows the same order as the GNU Coding Standards.)
939 bindir='${exec_prefix}/bin'
940 sbindir='${exec_prefix}/sbin'
941 libexecdir='${exec_prefix}/libexec'
942 datarootdir='${prefix}/share'
943 datadir='${datarootdir}'
944 sysconfdir='${prefix}/etc'
945 sharedstatedir='${prefix}/com'
946 localstatedir='${prefix}/var'
947 runstatedir='${localstatedir}/run'
948 includedir='${prefix}/include'
949 oldincludedir='/usr/include'
950 docdir='${datarootdir}/doc/${PACKAGE}'
951 infodir='${datarootdir}/info'
952 htmldir='${docdir}'
953 dvidir='${docdir}'
954 pdfdir='${docdir}'
955 psdir='${docdir}'
956 libdir='${exec_prefix}/lib'
957 localedir='${datarootdir}/locale'
958 mandir='${datarootdir}/man'
959
960 ac_prev=
961 ac_dashdash=
962 for ac_option
963 do
964 # If the previous option needs an argument, assign it.
965 if test -n "$ac_prev"; then
966 eval $ac_prev=\$ac_option
967 ac_prev=
968 continue
969 fi
970
971 case $ac_option in
972 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
973 *=) ac_optarg= ;;
974 *) ac_optarg=yes ;;
975 esac
976
977 # Accept the important Cygnus configure options, so we can diagnose typos.
978
979 case $ac_dashdash$ac_option in
980 --)
981 ac_dashdash=yes ;;
982
983 -bindir | --bindir | --bindi | --bind | --bin | --bi)
984 ac_prev=bindir ;;
985 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
986 bindir=$ac_optarg ;;
987
988 -build | --build | --buil | --bui | --bu)
989 ac_prev=build_alias ;;
990 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
991 build_alias=$ac_optarg ;;
992
993 -cache-file | --cache-file | --cache-fil | --cache-fi \
994 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
995 ac_prev=cache_file ;;
996 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
997 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
998 cache_file=$ac_optarg ;;
999
1000 --config-cache | -C)
1001 cache_file=config.cache ;;
1002
1003 -datadir | --datadir | --datadi | --datad)
1004 ac_prev=datadir ;;
1005 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1006 datadir=$ac_optarg ;;
1007
1008 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1009 | --dataroo | --dataro | --datar)
1010 ac_prev=datarootdir ;;
1011 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1012 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1013 datarootdir=$ac_optarg ;;
1014
1015 -disable-* | --disable-*)
1016 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019 as_fn_error $? "invalid feature name: $ac_useropt"
1020 ac_useropt_orig=$ac_useropt
1021 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1023 *"
1024 "enable_$ac_useropt"
1025 "*) ;;
1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1027 ac_unrecognized_sep=', ';;
1028 esac
1029 eval enable_$ac_useropt=no ;;
1030
1031 -docdir | --docdir | --docdi | --doc | --do)
1032 ac_prev=docdir ;;
1033 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1034 docdir=$ac_optarg ;;
1035
1036 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1037 ac_prev=dvidir ;;
1038 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1039 dvidir=$ac_optarg ;;
1040
1041 -enable-* | --enable-*)
1042 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1045 as_fn_error $? "invalid feature name: $ac_useropt"
1046 ac_useropt_orig=$ac_useropt
1047 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048 case $ac_user_opts in
1049 *"
1050 "enable_$ac_useropt"
1051 "*) ;;
1052 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1053 ac_unrecognized_sep=', ';;
1054 esac
1055 eval enable_$ac_useropt=\$ac_optarg ;;
1056
1057 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1058 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1059 | --exec | --exe | --ex)
1060 ac_prev=exec_prefix ;;
1061 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1062 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1063 | --exec=* | --exe=* | --ex=*)
1064 exec_prefix=$ac_optarg ;;
1065
1066 -gas | --gas | --ga | --g)
1067 # Obsolete; use --with-gas.
1068 with_gas=yes ;;
1069
1070 -help | --help | --hel | --he | -h)
1071 ac_init_help=long ;;
1072 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1073 ac_init_help=recursive ;;
1074 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1075 ac_init_help=short ;;
1076
1077 -host | --host | --hos | --ho)
1078 ac_prev=host_alias ;;
1079 -host=* | --host=* | --hos=* | --ho=*)
1080 host_alias=$ac_optarg ;;
1081
1082 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1083 ac_prev=htmldir ;;
1084 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1085 | --ht=*)
1086 htmldir=$ac_optarg ;;
1087
1088 -includedir | --includedir | --includedi | --included | --include \
1089 | --includ | --inclu | --incl | --inc)
1090 ac_prev=includedir ;;
1091 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1092 | --includ=* | --inclu=* | --incl=* | --inc=*)
1093 includedir=$ac_optarg ;;
1094
1095 -infodir | --infodir | --infodi | --infod | --info | --inf)
1096 ac_prev=infodir ;;
1097 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1098 infodir=$ac_optarg ;;
1099
1100 -libdir | --libdir | --libdi | --libd)
1101 ac_prev=libdir ;;
1102 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1103 libdir=$ac_optarg ;;
1104
1105 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1106 | --libexe | --libex | --libe)
1107 ac_prev=libexecdir ;;
1108 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1109 | --libexe=* | --libex=* | --libe=*)
1110 libexecdir=$ac_optarg ;;
1111
1112 -localedir | --localedir | --localedi | --localed | --locale)
1113 ac_prev=localedir ;;
1114 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1115 localedir=$ac_optarg ;;
1116
1117 -localstatedir | --localstatedir | --localstatedi | --localstated \
1118 | --localstate | --localstat | --localsta | --localst | --locals)
1119 ac_prev=localstatedir ;;
1120 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1121 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1122 localstatedir=$ac_optarg ;;
1123
1124 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1125 ac_prev=mandir ;;
1126 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1127 mandir=$ac_optarg ;;
1128
1129 -nfp | --nfp | --nf)
1130 # Obsolete; use --without-fp.
1131 with_fp=no ;;
1132
1133 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1134 | --no-cr | --no-c | -n)
1135 no_create=yes ;;
1136
1137 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1138 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1139 no_recursion=yes ;;
1140
1141 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1142 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1143 | --oldin | --oldi | --old | --ol | --o)
1144 ac_prev=oldincludedir ;;
1145 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1146 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1147 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1148 oldincludedir=$ac_optarg ;;
1149
1150 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1151 ac_prev=prefix ;;
1152 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1153 prefix=$ac_optarg ;;
1154
1155 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1156 | --program-pre | --program-pr | --program-p)
1157 ac_prev=program_prefix ;;
1158 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1159 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1160 program_prefix=$ac_optarg ;;
1161
1162 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1163 | --program-suf | --program-su | --program-s)
1164 ac_prev=program_suffix ;;
1165 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1166 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1167 program_suffix=$ac_optarg ;;
1168
1169 -program-transform-name | --program-transform-name \
1170 | --program-transform-nam | --program-transform-na \
1171 | --program-transform-n | --program-transform- \
1172 | --program-transform | --program-transfor \
1173 | --program-transfo | --program-transf \
1174 | --program-trans | --program-tran \
1175 | --progr-tra | --program-tr | --program-t)
1176 ac_prev=program_transform_name ;;
1177 -program-transform-name=* | --program-transform-name=* \
1178 | --program-transform-nam=* | --program-transform-na=* \
1179 | --program-transform-n=* | --program-transform-=* \
1180 | --program-transform=* | --program-transfor=* \
1181 | --program-transfo=* | --program-transf=* \
1182 | --program-trans=* | --program-tran=* \
1183 | --progr-tra=* | --program-tr=* | --program-t=*)
1184 program_transform_name=$ac_optarg ;;
1185
1186 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1187 ac_prev=pdfdir ;;
1188 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1189 pdfdir=$ac_optarg ;;
1190
1191 -psdir | --psdir | --psdi | --psd | --ps)
1192 ac_prev=psdir ;;
1193 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1194 psdir=$ac_optarg ;;
1195
1196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1197 | -silent | --silent | --silen | --sile | --sil)
1198 silent=yes ;;
1199
1200 -runstatedir | --runstatedir | --runstatedi | --runstated \
1201 | --runstate | --runstat | --runsta | --runst | --runs \
1202 | --run | --ru | --r)
1203 ac_prev=runstatedir ;;
1204 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1205 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1206 | --run=* | --ru=* | --r=*)
1207 runstatedir=$ac_optarg ;;
1208
1209 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1210 ac_prev=sbindir ;;
1211 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1212 | --sbi=* | --sb=*)
1213 sbindir=$ac_optarg ;;
1214
1215 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1216 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1217 | --sharedst | --shareds | --shared | --share | --shar \
1218 | --sha | --sh)
1219 ac_prev=sharedstatedir ;;
1220 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1221 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1222 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1223 | --sha=* | --sh=*)
1224 sharedstatedir=$ac_optarg ;;
1225
1226 -site | --site | --sit)
1227 ac_prev=site ;;
1228 -site=* | --site=* | --sit=*)
1229 site=$ac_optarg ;;
1230
1231 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1232 ac_prev=srcdir ;;
1233 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1234 srcdir=$ac_optarg ;;
1235
1236 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1237 | --syscon | --sysco | --sysc | --sys | --sy)
1238 ac_prev=sysconfdir ;;
1239 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1240 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1241 sysconfdir=$ac_optarg ;;
1242
1243 -target | --target | --targe | --targ | --tar | --ta | --t)
1244 ac_prev=target_alias ;;
1245 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1246 target_alias=$ac_optarg ;;
1247
1248 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1249 verbose=yes ;;
1250
1251 -version | --version | --versio | --versi | --vers | -V)
1252 ac_init_version=: ;;
1253
1254 -with-* | --with-*)
1255 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258 as_fn_error $? "invalid package name: $ac_useropt"
1259 ac_useropt_orig=$ac_useropt
1260 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261 case $ac_user_opts in
1262 *"
1263 "with_$ac_useropt"
1264 "*) ;;
1265 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1266 ac_unrecognized_sep=', ';;
1267 esac
1268 eval with_$ac_useropt=\$ac_optarg ;;
1269
1270 -without-* | --without-*)
1271 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1274 as_fn_error $? "invalid package name: $ac_useropt"
1275 ac_useropt_orig=$ac_useropt
1276 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1277 case $ac_user_opts in
1278 *"
1279 "with_$ac_useropt"
1280 "*) ;;
1281 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1282 ac_unrecognized_sep=', ';;
1283 esac
1284 eval with_$ac_useropt=no ;;
1285
1286 --x)
1287 # Obsolete; use --with-x.
1288 with_x=yes ;;
1289
1290 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1291 | --x-incl | --x-inc | --x-in | --x-i)
1292 ac_prev=x_includes ;;
1293 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1294 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1295 x_includes=$ac_optarg ;;
1296
1297 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1298 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1299 ac_prev=x_libraries ;;
1300 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1301 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1302 x_libraries=$ac_optarg ;;
1303
1304 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1305 Try \`$0 --help' for more information"
1306 ;;
1307
1308 *=*)
1309 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1310 # Reject names that are not valid shell variable names.
1311 case $ac_envvar in #(
1312 '' | [0-9]* | *[!_$as_cr_alnum]* )
1313 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1314 esac
1315 eval $ac_envvar=\$ac_optarg
1316 export $ac_envvar ;;
1317
1318 *)
1319 # FIXME: should be removed in autoconf 3.0.
1320 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1321 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1322 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1323 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1324 ;;
1325
1326 esac
1327 done
1328
1329 if test -n "$ac_prev"; then
1330 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1331 as_fn_error $? "missing argument to $ac_option"
1332 fi
1333
1334 if test -n "$ac_unrecognized_opts"; then
1335 case $enable_option_checking in
1336 no) ;;
1337 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1338 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1339 esac
1340 fi
1341
1342 # Check all directory arguments for consistency.
1343 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1344 datadir sysconfdir sharedstatedir localstatedir includedir \
1345 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1346 libdir localedir mandir runstatedir
1347 do
1348 eval ac_val=\$$ac_var
1349 # Remove trailing slashes.
1350 case $ac_val in
1351 */ )
1352 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1353 eval $ac_var=\$ac_val;;
1354 esac
1355 # Be sure to have absolute directory names.
1356 case $ac_val in
1357 [\\/$]* | ?:[\\/]* ) continue;;
1358 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1359 esac
1360 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1361 done
1362
1363 # There might be people who depend on the old broken behavior: `$host'
1364 # used to hold the argument of --host etc.
1365 # FIXME: To remove some day.
1366 build=$build_alias
1367 host=$host_alias
1368 target=$target_alias
1369
1370 # FIXME: To remove some day.
1371 if test "x$host_alias" != x; then
1372 if test "x$build_alias" = x; then
1373 cross_compiling=maybe
1374 elif test "x$build_alias" != "x$host_alias"; then
1375 cross_compiling=yes
1376 fi
1377 fi
1378
1379 ac_tool_prefix=
1380 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1381
1382 test "$silent" = yes && exec 6>/dev/null
1383
1384
1385 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1386 ac_ls_di=`ls -di .` &&
1387 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1388 as_fn_error $? "working directory cannot be determined"
1389 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1390 as_fn_error $? "pwd does not report name of working directory"
1391
1392
1393 # Find the source files, if location was not specified.
1394 if test -z "$srcdir"; then
1395 ac_srcdir_defaulted=yes
1396 # Try the directory containing this script, then the parent directory.
1397 ac_confdir=`$as_dirname -- "$as_myself" ||
1398 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399 X"$as_myself" : 'X\(//\)[^/]' \| \
1400 X"$as_myself" : 'X\(//\)$' \| \
1401 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1402 $as_echo X"$as_myself" |
1403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1404 s//\1/
1405 q
1406 }
1407 /^X\(\/\/\)[^/].*/{
1408 s//\1/
1409 q
1410 }
1411 /^X\(\/\/\)$/{
1412 s//\1/
1413 q
1414 }
1415 /^X\(\/\).*/{
1416 s//\1/
1417 q
1418 }
1419 s/.*/./; q'`
1420 srcdir=$ac_confdir
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1422 srcdir=..
1423 fi
1424 else
1425 ac_srcdir_defaulted=no
1426 fi
1427 if test ! -r "$srcdir/$ac_unique_file"; then
1428 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1429 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1430 fi
1431 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1432 ac_abs_confdir=`(
1433 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1434 pwd)`
1435 # When building in place, set srcdir=.
1436 if test "$ac_abs_confdir" = "$ac_pwd"; then
1437 srcdir=.
1438 fi
1439 # Remove unnecessary trailing slashes from srcdir.
1440 # Double slashes in file names in object file debugging info
1441 # mess up M-x gdb in Emacs.
1442 case $srcdir in
1443 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1444 esac
1445 for ac_var in $ac_precious_vars; do
1446 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1447 eval ac_env_${ac_var}_value=\$${ac_var}
1448 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1450 done
1451
1452 #
1453 # Report the --help message.
1454 #
1455 if test "$ac_init_help" = "long"; then
1456 # Omit some internal or obsolete options to make the list less imposing.
1457 # This message is too long to be a string in the A/UX 3.1 sh.
1458 cat <<_ACEOF
1459 \`configure' configures this package to adapt to many kinds of systems.
1460
1461 Usage: $0 [OPTION]... [VAR=VALUE]...
1462
1463 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464 VAR=VALUE. See below for descriptions of some of the useful variables.
1465
1466 Defaults for the options are specified in brackets.
1467
1468 Configuration:
1469 -h, --help display this help and exit
1470 --help=short display options specific to this package
1471 --help=recursive display the short help of all the included packages
1472 -V, --version display version information and exit
1473 -q, --quiet, --silent do not print \`checking ...' messages
1474 --cache-file=FILE cache test results in FILE [disabled]
1475 -C, --config-cache alias for \`--cache-file=config.cache'
1476 -n, --no-create do not create output files
1477 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1478
1479 Installation directories:
1480 --prefix=PREFIX install architecture-independent files in PREFIX
1481 [$ac_default_prefix]
1482 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1483 [PREFIX]
1484
1485 By default, \`make install' will install all the files in
1486 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1487 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488 for instance \`--prefix=\$HOME'.
1489
1490 For better control, use the options below.
1491
1492 Fine tuning of the installation directories:
1493 --bindir=DIR user executables [EPREFIX/bin]
1494 --sbindir=DIR system admin executables [EPREFIX/sbin]
1495 --libexecdir=DIR program executables [EPREFIX/libexec]
1496 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1497 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1498 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1499 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1500 --libdir=DIR object code libraries [EPREFIX/lib]
1501 --includedir=DIR C header files [PREFIX/include]
1502 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1503 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1504 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1505 --infodir=DIR info documentation [DATAROOTDIR/info]
1506 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1507 --mandir=DIR man documentation [DATAROOTDIR/man]
1508 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1509 --htmldir=DIR html documentation [DOCDIR]
1510 --dvidir=DIR dvi documentation [DOCDIR]
1511 --pdfdir=DIR pdf documentation [DOCDIR]
1512 --psdir=DIR ps documentation [DOCDIR]
1513 _ACEOF
1514
1515 cat <<\_ACEOF
1516
1517 System types:
1518 --build=BUILD configure for building on BUILD [guessed]
1519 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1520 _ACEOF
1521 fi
1522
1523 if test -n "$ac_init_help"; then
1524
1525 cat <<\_ACEOF
1526
1527 Optional Features:
1528 --disable-option-checking ignore unrecognized --enable/--with options
1529 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1530 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1531 --enable-maintainer-mode enable makefile rules useful for maintainers
1532 --enable-symlink-install use symlinks when installing instead of hard links
1533 --enable-relative-symlinks use relative symlinks when installing
1534
1535 --enable-symlink-build use symlinks while building instead of hard links
1536 --enable-verbose-makecmds enable verbose make command output
1537 --enable-elf-shlibs select ELF shared libraries
1538 --enable-bsd-shlibs select BSD shared libraries
1539 --enable-profile build profiling libraries
1540 --enable-gcov build for coverage testing using gcov
1541 --enable-hardening build for coverage testing using gcov
1542 --enable-jbd-debug enable journal debugging
1543 --enable-blkid-debug enable blkid debugging
1544 --disable-testio-debug disable the use of the test I/O manager for debugging
1545 --enable-libuuid build and use private uuid library
1546 --enable-libblkid build and use private blkid library
1547 --enable-subset enable subset-only build
1548 --disable-backtrace disable use backtrace
1549 --disable-debugfs disable support of debugfs program
1550 --disable-imager disable support of e2image program
1551 --disable-resizer disable support of e2resize program
1552 --disable-defrag disable support of e4defrag program
1553 --enable-fsck build fsck wrapper program
1554 --enable-e2initrd-helper build e2initrd-helper program
1555 --disable-tls disable use of thread local support
1556 --disable-uuidd disable building the uuid daemon
1557 --disable-mmp disable support mmp, Multi Mount Protection
1558 --disable-tdb disable tdb support
1559 --disable-bmap-stats disable collection of bitmap stats.
1560 --enable-bmap-stats-ops enable collection of additional bitmap stats
1561 --disable-nls do not use Native Language Support
1562 --enable-threads={posix|solaris|pth|windows}
1563 specify multithreading API
1564 --disable-threads build without multithread safety
1565 --disable-rpath do not hardcode runtime library paths
1566 --disable-fuse2fs do not build fuse2fs
1567
1568 Optional Packages:
1569 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1570 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1571 --with-diet-libc use diet libc
1572 --with-cc no longer supported, use CC= instead
1573 --with-ccopts no longer supported, use CFLAGS= instead
1574 --with-ldopts no longer supported, use LDFLAGS= instead
1575 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1576 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1577 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1578 --without-libpth-prefix don't search for libpth in includedir and libdir
1579 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1580 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1581 --with-included-gettext use the GNU gettext library included here
1582 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1583 --without-libintl-prefix don't search for libintl in includedir and libdir
1584 --with-multiarch=ARCH specify the multiarch triplet
1585
1586 Some influential environment variables:
1587 CC C compiler command
1588 CFLAGS C compiler flags
1589 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1590 nonstandard directory <lib dir>
1591 LIBS libraries to pass to the linker, e.g. -l<library>
1592 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1593 you have headers in a nonstandard directory <include dir>
1594 CPP C preprocessor
1595 PKG_CONFIG path to pkg-config utility
1596 PKG_CONFIG_PATH
1597 directories to add to pkg-config's search path
1598 PKG_CONFIG_LIBDIR
1599 path overriding pkg-config's built-in search path
1600
1601 Use these variables to override the choices made by `configure' or to help
1602 it to find libraries and programs with nonstandard names/locations.
1603
1604 Report bugs to the package provider.
1605 _ACEOF
1606 ac_status=$?
1607 fi
1608
1609 if test "$ac_init_help" = "recursive"; then
1610 # If there are subdirs, report their specific --help.
1611 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1612 test -d "$ac_dir" ||
1613 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1614 continue
1615 ac_builddir=.
1616
1617 case "$ac_dir" in
1618 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619 *)
1620 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1621 # A ".." for each directory in $ac_dir_suffix.
1622 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1623 case $ac_top_builddir_sub in
1624 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1626 esac ;;
1627 esac
1628 ac_abs_top_builddir=$ac_pwd
1629 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1630 # for backward compatibility:
1631 ac_top_builddir=$ac_top_build_prefix
1632
1633 case $srcdir in
1634 .) # We are building in place.
1635 ac_srcdir=.
1636 ac_top_srcdir=$ac_top_builddir_sub
1637 ac_abs_top_srcdir=$ac_pwd ;;
1638 [\\/]* | ?:[\\/]* ) # Absolute name.
1639 ac_srcdir=$srcdir$ac_dir_suffix;
1640 ac_top_srcdir=$srcdir
1641 ac_abs_top_srcdir=$srcdir ;;
1642 *) # Relative name.
1643 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1644 ac_top_srcdir=$ac_top_build_prefix$srcdir
1645 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1646 esac
1647 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1648
1649 cd "$ac_dir" || { ac_status=$?; continue; }
1650 # Check for guested configure.
1651 if test -f "$ac_srcdir/configure.gnu"; then
1652 echo &&
1653 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1654 elif test -f "$ac_srcdir/configure"; then
1655 echo &&
1656 $SHELL "$ac_srcdir/configure" --help=recursive
1657 else
1658 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1659 fi || ac_status=$?
1660 cd "$ac_pwd" || { ac_status=$?; break; }
1661 done
1662 fi
1663
1664 test -n "$ac_init_help" && exit $ac_status
1665 if $ac_init_version; then
1666 cat <<\_ACEOF
1667 configure
1668 generated by GNU Autoconf 2.69
1669
1670 Copyright (C) 2012 Free Software Foundation, Inc.
1671 This configure script is free software; the Free Software Foundation
1672 gives unlimited permission to copy, distribute and modify it.
1673 _ACEOF
1674 exit
1675 fi
1676
1677 ## ------------------------ ##
1678 ## Autoconf initialization. ##
1679 ## ------------------------ ##
1680
1681 # ac_fn_c_try_compile LINENO
1682 # --------------------------
1683 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1684 ac_fn_c_try_compile ()
1685 {
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 rm -f conftest.$ac_objext
1688 if { { ac_try="$ac_compile"
1689 case "(($ac_try" in
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1692 esac
1693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694 $as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_compile") 2>conftest.err
1696 ac_status=$?
1697 if test -s conftest.err; then
1698 grep -v '^ *+' conftest.err >conftest.er1
1699 cat conftest.er1 >&5
1700 mv -f conftest.er1 conftest.err
1701 fi
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && {
1704 test -z "$ac_c_werror_flag" ||
1705 test ! -s conftest.err
1706 } && test -s conftest.$ac_objext; then :
1707 ac_retval=0
1708 else
1709 $as_echo "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1711
1712 ac_retval=1
1713 fi
1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715 as_fn_set_status $ac_retval
1716
1717 } # ac_fn_c_try_compile
1718
1719 # ac_fn_c_try_link LINENO
1720 # -----------------------
1721 # Try to link conftest.$ac_ext, and return whether this succeeded.
1722 ac_fn_c_try_link ()
1723 {
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 rm -f conftest.$ac_objext conftest$ac_exeext
1726 if { { ac_try="$ac_link"
1727 case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1730 esac
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_link") 2>conftest.err
1734 ac_status=$?
1735 if test -s conftest.err; then
1736 grep -v '^ *+' conftest.err >conftest.er1
1737 cat conftest.er1 >&5
1738 mv -f conftest.er1 conftest.err
1739 fi
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; } && {
1742 test -z "$ac_c_werror_flag" ||
1743 test ! -s conftest.err
1744 } && test -s conftest$ac_exeext && {
1745 test "$cross_compiling" = yes ||
1746 test -x conftest$ac_exeext
1747 }; then :
1748 ac_retval=0
1749 else
1750 $as_echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.$ac_ext >&5
1752
1753 ac_retval=1
1754 fi
1755 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1756 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1757 # interfere with the next link command; also delete a directory that is
1758 # left behind by Apple's compiler. We do this before executing the actions.
1759 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761 as_fn_set_status $ac_retval
1762
1763 } # ac_fn_c_try_link
1764
1765 # ac_fn_c_try_cpp LINENO
1766 # ----------------------
1767 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1768 ac_fn_c_try_cpp ()
1769 {
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 if { { ac_try="$ac_cpp conftest.$ac_ext"
1772 case "(($ac_try" in
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1775 esac
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1779 ac_status=$?
1780 if test -s conftest.err; then
1781 grep -v '^ *+' conftest.err >conftest.er1
1782 cat conftest.er1 >&5
1783 mv -f conftest.er1 conftest.err
1784 fi
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; } > conftest.i && {
1787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1788 test ! -s conftest.err
1789 }; then :
1790 ac_retval=0
1791 else
1792 $as_echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.$ac_ext >&5
1794
1795 ac_retval=1
1796 fi
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798 as_fn_set_status $ac_retval
1799
1800 } # ac_fn_c_try_cpp
1801
1802 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1803 # -------------------------------------------------------
1804 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1805 # the include files in INCLUDES and setting the cache variable VAR
1806 # accordingly.
1807 ac_fn_c_check_header_mongrel ()
1808 {
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 if eval \${$3+:} false; then :
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 $as_echo_n "checking for $2... " >&6; }
1813 if eval \${$3+:} false; then :
1814 $as_echo_n "(cached) " >&6
1815 fi
1816 eval ac_res=\$$3
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818 $as_echo "$ac_res" >&6; }
1819 else
1820 # Is the header compilable?
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1822 $as_echo_n "checking $2 usability... " >&6; }
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h. */
1825 $4
1826 #include <$2>
1827 _ACEOF
1828 if ac_fn_c_try_compile "$LINENO"; then :
1829 ac_header_compiler=yes
1830 else
1831 ac_header_compiler=no
1832 fi
1833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1835 $as_echo "$ac_header_compiler" >&6; }
1836
1837 # Is the header present?
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1839 $as_echo_n "checking $2 presence... " >&6; }
1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h. */
1842 #include <$2>
1843 _ACEOF
1844 if ac_fn_c_try_cpp "$LINENO"; then :
1845 ac_header_preproc=yes
1846 else
1847 ac_header_preproc=no
1848 fi
1849 rm -f conftest.err conftest.i conftest.$ac_ext
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1851 $as_echo "$ac_header_preproc" >&6; }
1852
1853 # So? What about this header?
1854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1855 yes:no: )
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1857 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1859 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1860 ;;
1861 no:yes:* )
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1863 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1865 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1867 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1869 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1871 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1872 ;;
1873 esac
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875 $as_echo_n "checking for $2... " >&6; }
1876 if eval \${$3+:} false; then :
1877 $as_echo_n "(cached) " >&6
1878 else
1879 eval "$3=\$ac_header_compiler"
1880 fi
1881 eval ac_res=\$$3
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883 $as_echo "$ac_res" >&6; }
1884 fi
1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886
1887 } # ac_fn_c_check_header_mongrel
1888
1889 # ac_fn_c_try_run LINENO
1890 # ----------------------
1891 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1892 # that executables *can* be run.
1893 ac_fn_c_try_run ()
1894 {
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 if { { ac_try="$ac_link"
1897 case "(($ac_try" in
1898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1899 *) ac_try_echo=$ac_try;;
1900 esac
1901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902 $as_echo "$ac_try_echo"; } >&5
1903 (eval "$ac_link") 2>&5
1904 ac_status=$?
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1907 { { case "(($ac_try" in
1908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909 *) ac_try_echo=$ac_try;;
1910 esac
1911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912 $as_echo "$ac_try_echo"; } >&5
1913 (eval "$ac_try") 2>&5
1914 ac_status=$?
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; }; }; then :
1917 ac_retval=0
1918 else
1919 $as_echo "$as_me: program exited with status $ac_status" >&5
1920 $as_echo "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.$ac_ext >&5
1922
1923 ac_retval=$ac_status
1924 fi
1925 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 as_fn_set_status $ac_retval
1928
1929 } # ac_fn_c_try_run
1930
1931 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1932 # -------------------------------------------------------
1933 # Tests whether HEADER exists and can be compiled using the include files in
1934 # INCLUDES, setting the cache variable VAR accordingly.
1935 ac_fn_c_check_header_compile ()
1936 {
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939 $as_echo_n "checking for $2... " >&6; }
1940 if eval \${$3+:} false; then :
1941 $as_echo_n "(cached) " >&6
1942 else
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1945 $4
1946 #include <$2>
1947 _ACEOF
1948 if ac_fn_c_try_compile "$LINENO"; then :
1949 eval "$3=yes"
1950 else
1951 eval "$3=no"
1952 fi
1953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954 fi
1955 eval ac_res=\$$3
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959
1960 } # ac_fn_c_check_header_compile
1961
1962 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1963 # -------------------------------------------
1964 # Tests whether TYPE exists after having included INCLUDES, setting cache
1965 # variable VAR accordingly.
1966 ac_fn_c_check_type ()
1967 {
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1970 $as_echo_n "checking for $2... " >&6; }
1971 if eval \${$3+:} false; then :
1972 $as_echo_n "(cached) " >&6
1973 else
1974 eval "$3=no"
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1977 $4
1978 int
1979 main ()
1980 {
1981 if (sizeof ($2))
1982 return 0;
1983 ;
1984 return 0;
1985 }
1986 _ACEOF
1987 if ac_fn_c_try_compile "$LINENO"; then :
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1990 $4
1991 int
1992 main ()
1993 {
1994 if (sizeof (($2)))
1995 return 0;
1996 ;
1997 return 0;
1998 }
1999 _ACEOF
2000 if ac_fn_c_try_compile "$LINENO"; then :
2001
2002 else
2003 eval "$3=yes"
2004 fi
2005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 fi
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 fi
2009 eval ac_res=\$$3
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011 $as_echo "$ac_res" >&6; }
2012 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013
2014 } # ac_fn_c_check_type
2015
2016 # ac_fn_c_check_func LINENO FUNC VAR
2017 # ----------------------------------
2018 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2019 ac_fn_c_check_func ()
2020 {
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023 $as_echo_n "checking for $2... " >&6; }
2024 if eval \${$3+:} false; then :
2025 $as_echo_n "(cached) " >&6
2026 else
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2029 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2031 #define $2 innocuous_$2
2032
2033 /* System header to define __stub macros and hopefully few prototypes,
2034 which can conflict with char $2 (); below.
2035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2036 <limits.h> exists even on freestanding compilers. */
2037
2038 #ifdef __STDC__
2039 # include <limits.h>
2040 #else
2041 # include <assert.h>
2042 #endif
2043
2044 #undef $2
2045
2046 /* Override any GCC internal prototype to avoid an error.
2047 Use char because int might match the return type of a GCC
2048 builtin and then its argument prototype would still apply. */
2049 #ifdef __cplusplus
2050 extern "C"
2051 #endif
2052 char $2 ();
2053 /* The GNU C library defines this for functions which it implements
2054 to always fail with ENOSYS. Some functions are actually named
2055 something starting with __ and the normal name is an alias. */
2056 #if defined __stub_$2 || defined __stub___$2
2057 choke me
2058 #endif
2059
2060 int
2061 main ()
2062 {
2063 return $2 ();
2064 ;
2065 return 0;
2066 }
2067 _ACEOF
2068 if ac_fn_c_try_link "$LINENO"; then :
2069 eval "$3=yes"
2070 else
2071 eval "$3=no"
2072 fi
2073 rm -f core conftest.err conftest.$ac_objext \
2074 conftest$ac_exeext conftest.$ac_ext
2075 fi
2076 eval ac_res=\$$3
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 $as_echo "$ac_res" >&6; }
2079 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2080
2081 } # ac_fn_c_check_func
2082
2083 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2084 # ---------------------------------------------
2085 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2086 # accordingly.
2087 ac_fn_c_check_decl ()
2088 {
2089 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090 as_decl_name=`echo $2|sed 's/ *(.*//'`
2091 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2093 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2094 if eval \${$3+:} false; then :
2095 $as_echo_n "(cached) " >&6
2096 else
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2099 $4
2100 int
2101 main ()
2102 {
2103 #ifndef $as_decl_name
2104 #ifdef __cplusplus
2105 (void) $as_decl_use;
2106 #else
2107 (void) $as_decl_name;
2108 #endif
2109 #endif
2110
2111 ;
2112 return 0;
2113 }
2114 _ACEOF
2115 if ac_fn_c_try_compile "$LINENO"; then :
2116 eval "$3=yes"
2117 else
2118 eval "$3=no"
2119 fi
2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121 fi
2122 eval ac_res=\$$3
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2124 $as_echo "$ac_res" >&6; }
2125 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2126
2127 } # ac_fn_c_check_decl
2128
2129 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2130 # --------------------------------------------
2131 # Tries to find the compile-time value of EXPR in a program that includes
2132 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2133 # computed
2134 ac_fn_c_compute_int ()
2135 {
2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 if test "$cross_compiling" = yes; then
2138 # Depending upon the size, compute the lo and hi bounds.
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2141 $4
2142 int
2143 main ()
2144 {
2145 static int test_array [1 - 2 * !(($2) >= 0)];
2146 test_array [0] = 0;
2147 return test_array [0];
2148
2149 ;
2150 return 0;
2151 }
2152 _ACEOF
2153 if ac_fn_c_try_compile "$LINENO"; then :
2154 ac_lo=0 ac_mid=0
2155 while :; do
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2158 $4
2159 int
2160 main ()
2161 {
2162 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2163 test_array [0] = 0;
2164 return test_array [0];
2165
2166 ;
2167 return 0;
2168 }
2169 _ACEOF
2170 if ac_fn_c_try_compile "$LINENO"; then :
2171 ac_hi=$ac_mid; break
2172 else
2173 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2174 if test $ac_lo -le $ac_mid; then
2175 ac_lo= ac_hi=
2176 break
2177 fi
2178 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2179 fi
2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181 done
2182 else
2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184 /* end confdefs.h. */
2185 $4
2186 int
2187 main ()
2188 {
2189 static int test_array [1 - 2 * !(($2) < 0)];
2190 test_array [0] = 0;
2191 return test_array [0];
2192
2193 ;
2194 return 0;
2195 }
2196 _ACEOF
2197 if ac_fn_c_try_compile "$LINENO"; then :
2198 ac_hi=-1 ac_mid=-1
2199 while :; do
2200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201 /* end confdefs.h. */
2202 $4
2203 int
2204 main ()
2205 {
2206 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2207 test_array [0] = 0;
2208 return test_array [0];
2209
2210 ;
2211 return 0;
2212 }
2213 _ACEOF
2214 if ac_fn_c_try_compile "$LINENO"; then :
2215 ac_lo=$ac_mid; break
2216 else
2217 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2218 if test $ac_mid -le $ac_hi; then
2219 ac_lo= ac_hi=
2220 break
2221 fi
2222 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2223 fi
2224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2225 done
2226 else
2227 ac_lo= ac_hi=
2228 fi
2229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2230 fi
2231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232 # Binary search between lo and hi bounds.
2233 while test "x$ac_lo" != "x$ac_hi"; do
2234 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h. */
2237 $4
2238 int
2239 main ()
2240 {
2241 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2242 test_array [0] = 0;
2243 return test_array [0];
2244
2245 ;
2246 return 0;
2247 }
2248 _ACEOF
2249 if ac_fn_c_try_compile "$LINENO"; then :
2250 ac_hi=$ac_mid
2251 else
2252 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2253 fi
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2255 done
2256 case $ac_lo in #((
2257 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2258 '') ac_retval=1 ;;
2259 esac
2260 else
2261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2262 /* end confdefs.h. */
2263 $4
2264 static long int longval () { return $2; }
2265 static unsigned long int ulongval () { return $2; }
2266 #include <stdio.h>
2267 #include <stdlib.h>
2268 int
2269 main ()
2270 {
2271
2272 FILE *f = fopen ("conftest.val", "w");
2273 if (! f)
2274 return 1;
2275 if (($2) < 0)
2276 {
2277 long int i = longval ();
2278 if (i != ($2))
2279 return 1;
2280 fprintf (f, "%ld", i);
2281 }
2282 else
2283 {
2284 unsigned long int i = ulongval ();
2285 if (i != ($2))
2286 return 1;
2287 fprintf (f, "%lu", i);
2288 }
2289 /* Do not output a trailing newline, as this causes \r\n confusion
2290 on some platforms. */
2291 return ferror (f) || fclose (f) != 0;
2292
2293 ;
2294 return 0;
2295 }
2296 _ACEOF
2297 if ac_fn_c_try_run "$LINENO"; then :
2298 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2299 else
2300 ac_retval=1
2301 fi
2302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2303 conftest.$ac_objext conftest.beam conftest.$ac_ext
2304 rm -f conftest.val
2305
2306 fi
2307 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2308 as_fn_set_status $ac_retval
2309
2310 } # ac_fn_c_compute_int
2311
2312 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2313 # ----------------------------------------------------
2314 # Tries to find if the field MEMBER exists in type AGGR, after including
2315 # INCLUDES, setting cache variable VAR accordingly.
2316 ac_fn_c_check_member ()
2317 {
2318 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2320 $as_echo_n "checking for $2.$3... " >&6; }
2321 if eval \${$4+:} false; then :
2322 $as_echo_n "(cached) " >&6
2323 else
2324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325 /* end confdefs.h. */
2326 $5
2327 int
2328 main ()
2329 {
2330 static $2 ac_aggr;
2331 if (ac_aggr.$3)
2332 return 0;
2333 ;
2334 return 0;
2335 }
2336 _ACEOF
2337 if ac_fn_c_try_compile "$LINENO"; then :
2338 eval "$4=yes"
2339 else
2340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2341 /* end confdefs.h. */
2342 $5
2343 int
2344 main ()
2345 {
2346 static $2 ac_aggr;
2347 if (sizeof ac_aggr.$3)
2348 return 0;
2349 ;
2350 return 0;
2351 }
2352 _ACEOF
2353 if ac_fn_c_try_compile "$LINENO"; then :
2354 eval "$4=yes"
2355 else
2356 eval "$4=no"
2357 fi
2358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2359 fi
2360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2361 fi
2362 eval ac_res=\$$4
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2364 $as_echo "$ac_res" >&6; }
2365 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2366
2367 } # ac_fn_c_check_member
2368 cat >config.log <<_ACEOF
2369 This file contains any messages produced by compilers while
2370 running configure, to aid debugging if configure makes a mistake.
2371
2372 It was created by $as_me, which was
2373 generated by GNU Autoconf 2.69. Invocation command line was
2374
2375 $ $0 $@
2376
2377 _ACEOF
2378 exec 5>>config.log
2379 {
2380 cat <<_ASUNAME
2381 ## --------- ##
2382 ## Platform. ##
2383 ## --------- ##
2384
2385 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2386 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2387 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2388 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2389 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2390
2391 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2392 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2393
2394 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2395 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2396 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2397 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2398 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2399 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2400 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2401
2402 _ASUNAME
2403
2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 for as_dir in $PATH
2406 do
2407 IFS=$as_save_IFS
2408 test -z "$as_dir" && as_dir=.
2409 $as_echo "PATH: $as_dir"
2410 done
2411 IFS=$as_save_IFS
2412
2413 } >&5
2414
2415 cat >&5 <<_ACEOF
2416
2417
2418 ## ----------- ##
2419 ## Core tests. ##
2420 ## ----------- ##
2421
2422 _ACEOF
2423
2424
2425 # Keep a trace of the command line.
2426 # Strip out --no-create and --no-recursion so they do not pile up.
2427 # Strip out --silent because we don't want to record it for future runs.
2428 # Also quote any args containing shell meta-characters.
2429 # Make two passes to allow for proper duplicate-argument suppression.
2430 ac_configure_args=
2431 ac_configure_args0=
2432 ac_configure_args1=
2433 ac_must_keep_next=false
2434 for ac_pass in 1 2
2435 do
2436 for ac_arg
2437 do
2438 case $ac_arg in
2439 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2440 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2441 | -silent | --silent | --silen | --sile | --sil)
2442 continue ;;
2443 *\'*)
2444 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2445 esac
2446 case $ac_pass in
2447 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2448 2)
2449 as_fn_append ac_configure_args1 " '$ac_arg'"
2450 if test $ac_must_keep_next = true; then
2451 ac_must_keep_next=false # Got value, back to normal.
2452 else
2453 case $ac_arg in
2454 *=* | --config-cache | -C | -disable-* | --disable-* \
2455 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2456 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2457 | -with-* | --with-* | -without-* | --without-* | --x)
2458 case "$ac_configure_args0 " in
2459 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2460 esac
2461 ;;
2462 -* ) ac_must_keep_next=true ;;
2463 esac
2464 fi
2465 as_fn_append ac_configure_args " '$ac_arg'"
2466 ;;
2467 esac
2468 done
2469 done
2470 { ac_configure_args0=; unset ac_configure_args0;}
2471 { ac_configure_args1=; unset ac_configure_args1;}
2472
2473 # When interrupted or exit'd, cleanup temporary files, and complete
2474 # config.log. We remove comments because anyway the quotes in there
2475 # would cause problems or look ugly.
2476 # WARNING: Use '\'' to represent an apostrophe within the trap.
2477 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2478 trap 'exit_status=$?
2479 # Save into config.log some information that might help in debugging.
2480 {
2481 echo
2482
2483 $as_echo "## ---------------- ##
2484 ## Cache variables. ##
2485 ## ---------------- ##"
2486 echo
2487 # The following way of writing the cache mishandles newlines in values,
2488 (
2489 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2490 eval ac_val=\$$ac_var
2491 case $ac_val in #(
2492 *${as_nl}*)
2493 case $ac_var in #(
2494 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2495 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2496 esac
2497 case $ac_var in #(
2498 _ | IFS | as_nl) ;; #(
2499 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2500 *) { eval $ac_var=; unset $ac_var;} ;;
2501 esac ;;
2502 esac
2503 done
2504 (set) 2>&1 |
2505 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2506 *${as_nl}ac_space=\ *)
2507 sed -n \
2508 "s/'\''/'\''\\\\'\'''\''/g;
2509 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2510 ;; #(
2511 *)
2512 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2513 ;;
2514 esac |
2515 sort
2516 )
2517 echo
2518
2519 $as_echo "## ----------------- ##
2520 ## Output variables. ##
2521 ## ----------------- ##"
2522 echo
2523 for ac_var in $ac_subst_vars
2524 do
2525 eval ac_val=\$$ac_var
2526 case $ac_val in
2527 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2528 esac
2529 $as_echo "$ac_var='\''$ac_val'\''"
2530 done | sort
2531 echo
2532
2533 if test -n "$ac_subst_files"; then
2534 $as_echo "## ------------------- ##
2535 ## File substitutions. ##
2536 ## ------------------- ##"
2537 echo
2538 for ac_var in $ac_subst_files
2539 do
2540 eval ac_val=\$$ac_var
2541 case $ac_val in
2542 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2543 esac
2544 $as_echo "$ac_var='\''$ac_val'\''"
2545 done | sort
2546 echo
2547 fi
2548
2549 if test -s confdefs.h; then
2550 $as_echo "## ----------- ##
2551 ## confdefs.h. ##
2552 ## ----------- ##"
2553 echo
2554 cat confdefs.h
2555 echo
2556 fi
2557 test "$ac_signal" != 0 &&
2558 $as_echo "$as_me: caught signal $ac_signal"
2559 $as_echo "$as_me: exit $exit_status"
2560 } >&5
2561 rm -f core *.core core.conftest.* &&
2562 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2563 exit $exit_status
2564 ' 0
2565 for ac_signal in 1 2 13 15; do
2566 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2567 done
2568 ac_signal=0
2569
2570 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2571 rm -f -r conftest* confdefs.h
2572
2573 $as_echo "/* confdefs.h */" > confdefs.h
2574
2575 # Predefined preprocessor variables.
2576
2577 cat >>confdefs.h <<_ACEOF
2578 #define PACKAGE_NAME "$PACKAGE_NAME"
2579 _ACEOF
2580
2581 cat >>confdefs.h <<_ACEOF
2582 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2583 _ACEOF
2584
2585 cat >>confdefs.h <<_ACEOF
2586 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2587 _ACEOF
2588
2589 cat >>confdefs.h <<_ACEOF
2590 #define PACKAGE_STRING "$PACKAGE_STRING"
2591 _ACEOF
2592
2593 cat >>confdefs.h <<_ACEOF
2594 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2595 _ACEOF
2596
2597 cat >>confdefs.h <<_ACEOF
2598 #define PACKAGE_URL "$PACKAGE_URL"
2599 _ACEOF
2600
2601
2602 # Let the site file select an alternate cache file if it wants to.
2603 # Prefer an explicitly selected file to automatically selected ones.
2604 ac_site_file1=NONE
2605 ac_site_file2=NONE
2606 if test -n "$CONFIG_SITE"; then
2607 # We do not want a PATH search for config.site.
2608 case $CONFIG_SITE in #((
2609 -*) ac_site_file1=./$CONFIG_SITE;;
2610 */*) ac_site_file1=$CONFIG_SITE;;
2611 *) ac_site_file1=./$CONFIG_SITE;;
2612 esac
2613 elif test "x$prefix" != xNONE; then
2614 ac_site_file1=$prefix/share/config.site
2615 ac_site_file2=$prefix/etc/config.site
2616 else
2617 ac_site_file1=$ac_default_prefix/share/config.site
2618 ac_site_file2=$ac_default_prefix/etc/config.site
2619 fi
2620 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2621 do
2622 test "x$ac_site_file" = xNONE && continue
2623 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2625 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2626 sed 's/^/| /' "$ac_site_file" >&5
2627 . "$ac_site_file" \
2628 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2630 as_fn_error $? "failed to load site script $ac_site_file
2631 See \`config.log' for more details" "$LINENO" 5; }
2632 fi
2633 done
2634
2635 if test -r "$cache_file"; then
2636 # Some versions of bash will fail to source /dev/null (special files
2637 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2638 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2640 $as_echo "$as_me: loading cache $cache_file" >&6;}
2641 case $cache_file in
2642 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2643 *) . "./$cache_file";;
2644 esac
2645 fi
2646 else
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2648 $as_echo "$as_me: creating cache $cache_file" >&6;}
2649 >$cache_file
2650 fi
2651
2652 gt_needs="$gt_needs "
2653 as_fn_append ac_header_list " stdlib.h"
2654 as_fn_append ac_header_list " unistd.h"
2655 as_fn_append ac_header_list " sys/param.h"
2656 as_fn_append ac_func_list " symlink"
2657 # Check that the precious variables saved in the cache have kept the same
2658 # value.
2659 ac_cache_corrupted=false
2660 for ac_var in $ac_precious_vars; do
2661 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2662 eval ac_new_set=\$ac_env_${ac_var}_set
2663 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2664 eval ac_new_val=\$ac_env_${ac_var}_value
2665 case $ac_old_set,$ac_new_set in
2666 set,)
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2668 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2669 ac_cache_corrupted=: ;;
2670 ,set)
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2672 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2673 ac_cache_corrupted=: ;;
2674 ,);;
2675 *)
2676 if test "x$ac_old_val" != "x$ac_new_val"; then
2677 # differences in whitespace do not lead to failure.
2678 ac_old_val_w=`echo x $ac_old_val`
2679 ac_new_val_w=`echo x $ac_new_val`
2680 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2682 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2683 ac_cache_corrupted=:
2684 else
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2686 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2687 eval $ac_var=\$ac_old_val
2688 fi
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2690 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2692 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2693 fi;;
2694 esac
2695 # Pass precious variables to config.status.
2696 if test "$ac_new_set" = set; then
2697 case $ac_new_val in
2698 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2699 *) ac_arg=$ac_var=$ac_new_val ;;
2700 esac
2701 case " $ac_configure_args " in
2702 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2703 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2704 esac
2705 fi
2706 done
2707 if $ac_cache_corrupted; then
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2711 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2712 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2713 fi
2714 ## -------------------- ##
2715 ## Main body of script. ##
2716 ## -------------------- ##
2717
2718 ac_ext=c
2719 ac_cpp='$CPP $CPPFLAGS'
2720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2723
2724
2725
2726 ac_aux_dir=
2727 for ac_dir in config "$srcdir"/config; do
2728 if test -f "$ac_dir/install-sh"; then
2729 ac_aux_dir=$ac_dir
2730 ac_install_sh="$ac_aux_dir/install-sh -c"
2731 break
2732 elif test -f "$ac_dir/install.sh"; then
2733 ac_aux_dir=$ac_dir
2734 ac_install_sh="$ac_aux_dir/install.sh -c"
2735 break
2736 elif test -f "$ac_dir/shtool"; then
2737 ac_aux_dir=$ac_dir
2738 ac_install_sh="$ac_aux_dir/shtool install -c"
2739 break
2740 fi
2741 done
2742 if test -z "$ac_aux_dir"; then
2743 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2744 fi
2745
2746 # These three variables are undocumented and unsupported,
2747 # and are intended to be withdrawn in a future Autoconf release.
2748 # They can cause serious problems if a builder's source tree is in a directory
2749 # whose full name contains unusual characters.
2750 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2751 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2752 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2753
2754
2755 ac_config_headers="$ac_config_headers lib/config.h"
2756
2757
2758 MCONFIG=./MCONFIG
2759
2760 BINARY_TYPE=bin
2761 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2762 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2763 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2764 | tr \" " "`
2765 E2FSPROGS_DAY=$(echo $DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2766 MONTH=`echo $DATE | awk -F- '{print $2}'`
2767 YEAR=`echo $DATE | awk -F- '{print $3}'`
2768
2769 if expr $YEAR ">" 1900 > /dev/null ; then
2770 E2FSPROGS_YEAR=$YEAR
2771 elif expr $YEAR ">" 90 >/dev/null ; then
2772 E2FSPROGS_YEAR=19$YEAR
2773 else
2774 E2FSPROGS_YEAR=20$YEAR
2775 fi
2776
2777 case $MONTH in
2778 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2779 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2780 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2781 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2782 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2783 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2784 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2785 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2786 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2787 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2788 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2789 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2790 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2791 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2792 esac
2793
2794 base_ver=`echo $E2FSPROGS_VERSION | \
2795 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2796
2797 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2798
2799 case $E2FSPROGS_VERSION in
2800 *-WIP|pre-*)
2801 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
2802 ;;
2803 *)
2804 E2FSPROGS_PKGVER="$base_ver"
2805 ;;
2806 esac
2807
2808 unset DATE MONTH YEAR base_ver pre_vers date_spec
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2810 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2812 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2813
2814
2815
2816
2817
2818 WITH_DIET_LIBC=
2819
2820 # Check whether --with-diet-libc was given.
2821 if test "${with_diet_libc+set}" = set; then :
2822 withval=$with_diet_libc; CC="diet cc -nostdinc"
2823 WITH_DIET_LIBC=yes
2824 if test -z "$LIBS"
2825 then
2826 LIBS="-lcompat"
2827 else
2828 LIBS="$LIBS -lcompat"
2829 fi
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2831 $as_echo "CC=$CC" >&6; }
2832 fi
2833 # Make sure we can run config.sub.
2834 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2835 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2836
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2838 $as_echo_n "checking build system type... " >&6; }
2839 if ${ac_cv_build+:} false; then :
2840 $as_echo_n "(cached) " >&6
2841 else
2842 ac_build_alias=$build_alias
2843 test "x$ac_build_alias" = x &&
2844 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2845 test "x$ac_build_alias" = x &&
2846 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2847 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2848 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2849
2850 fi
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2852 $as_echo "$ac_cv_build" >&6; }
2853 case $ac_cv_build in
2854 *-*-*) ;;
2855 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2856 esac
2857 build=$ac_cv_build
2858 ac_save_IFS=$IFS; IFS='-'
2859 set x $ac_cv_build
2860 shift
2861 build_cpu=$1
2862 build_vendor=$2
2863 shift; shift
2864 # Remember, the first character of IFS is used to create $*,
2865 # except with old shells:
2866 build_os=$*
2867 IFS=$ac_save_IFS
2868 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2869
2870
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2872 $as_echo_n "checking host system type... " >&6; }
2873 if ${ac_cv_host+:} false; then :
2874 $as_echo_n "(cached) " >&6
2875 else
2876 if test "x$host_alias" = x; then
2877 ac_cv_host=$ac_cv_build
2878 else
2879 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2880 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2881 fi
2882
2883 fi
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2885 $as_echo "$ac_cv_host" >&6; }
2886 case $ac_cv_host in
2887 *-*-*) ;;
2888 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2889 esac
2890 host=$ac_cv_host
2891 ac_save_IFS=$IFS; IFS='-'
2892 set x $ac_cv_host
2893 shift
2894 host_cpu=$1
2895 host_vendor=$2
2896 shift; shift
2897 # Remember, the first character of IFS is used to create $*,
2898 # except with old shells:
2899 host_os=$*
2900 IFS=$ac_save_IFS
2901 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2902
2903
2904 DLOPEN_LIB=''
2905 ac_ext=c
2906 ac_cpp='$CPP $CPPFLAGS'
2907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2910 if test -n "$ac_tool_prefix"; then
2911 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2912 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914 $as_echo_n "checking for $ac_word... " >&6; }
2915 if ${ac_cv_prog_CC+:} false; then :
2916 $as_echo_n "(cached) " >&6
2917 else
2918 if test -n "$CC"; then
2919 ac_cv_prog_CC="$CC" # Let the user override the test.
2920 else
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 for as_dir in $PATH
2923 do
2924 IFS=$as_save_IFS
2925 test -z "$as_dir" && as_dir=.
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2928 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2930 break 2
2931 fi
2932 done
2933 done
2934 IFS=$as_save_IFS
2935
2936 fi
2937 fi
2938 CC=$ac_cv_prog_CC
2939 if test -n "$CC"; then
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2941 $as_echo "$CC" >&6; }
2942 else
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944 $as_echo "no" >&6; }
2945 fi
2946
2947
2948 fi
2949 if test -z "$ac_cv_prog_CC"; then
2950 ac_ct_CC=$CC
2951 # Extract the first word of "gcc", so it can be a program name with args.
2952 set dummy gcc; ac_word=$2
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2954 $as_echo_n "checking for $ac_word... " >&6; }
2955 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2956 $as_echo_n "(cached) " >&6
2957 else
2958 if test -n "$ac_ct_CC"; then
2959 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2960 else
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 for as_dir in $PATH
2963 do
2964 IFS=$as_save_IFS
2965 test -z "$as_dir" && as_dir=.
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2968 ac_cv_prog_ac_ct_CC="gcc"
2969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2970 break 2
2971 fi
2972 done
2973 done
2974 IFS=$as_save_IFS
2975
2976 fi
2977 fi
2978 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2979 if test -n "$ac_ct_CC"; then
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2981 $as_echo "$ac_ct_CC" >&6; }
2982 else
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984 $as_echo "no" >&6; }
2985 fi
2986
2987 if test "x$ac_ct_CC" = x; then
2988 CC=""
2989 else
2990 case $cross_compiling:$ac_tool_warned in
2991 yes:)
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2994 ac_tool_warned=yes ;;
2995 esac
2996 CC=$ac_ct_CC
2997 fi
2998 else
2999 CC="$ac_cv_prog_CC"
3000 fi
3001
3002 if test -z "$CC"; then
3003 if test -n "$ac_tool_prefix"; then
3004 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3005 set dummy ${ac_tool_prefix}cc; ac_word=$2
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007 $as_echo_n "checking for $ac_word... " >&6; }
3008 if ${ac_cv_prog_CC+:} false; then :
3009 $as_echo_n "(cached) " >&6
3010 else
3011 if test -n "$CC"; then
3012 ac_cv_prog_CC="$CC" # Let the user override the test.
3013 else
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 for as_dir in $PATH
3016 do
3017 IFS=$as_save_IFS
3018 test -z "$as_dir" && as_dir=.
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3021 ac_cv_prog_CC="${ac_tool_prefix}cc"
3022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3023 break 2
3024 fi
3025 done
3026 done
3027 IFS=$as_save_IFS
3028
3029 fi
3030 fi
3031 CC=$ac_cv_prog_CC
3032 if test -n "$CC"; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3034 $as_echo "$CC" >&6; }
3035 else
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037 $as_echo "no" >&6; }
3038 fi
3039
3040
3041 fi
3042 fi
3043 if test -z "$CC"; then
3044 # Extract the first word of "cc", so it can be a program name with args.
3045 set dummy cc; ac_word=$2
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047 $as_echo_n "checking for $ac_word... " >&6; }
3048 if ${ac_cv_prog_CC+:} false; then :
3049 $as_echo_n "(cached) " >&6
3050 else
3051 if test -n "$CC"; then
3052 ac_cv_prog_CC="$CC" # Let the user override the test.
3053 else
3054 ac_prog_rejected=no
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 for as_dir in $PATH
3057 do
3058 IFS=$as_save_IFS
3059 test -z "$as_dir" && as_dir=.
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3062 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3063 ac_prog_rejected=yes
3064 continue
3065 fi
3066 ac_cv_prog_CC="cc"
3067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3068 break 2
3069 fi
3070 done
3071 done
3072 IFS=$as_save_IFS
3073
3074 if test $ac_prog_rejected = yes; then
3075 # We found a bogon in the path, so make sure we never use it.
3076 set dummy $ac_cv_prog_CC
3077 shift
3078 if test $# != 0; then
3079 # We chose a different compiler from the bogus one.
3080 # However, it has the same basename, so the bogon will be chosen
3081 # first if we set CC to just the basename; use the full file name.
3082 shift
3083 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3084 fi
3085 fi
3086 fi
3087 fi
3088 CC=$ac_cv_prog_CC
3089 if test -n "$CC"; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091 $as_echo "$CC" >&6; }
3092 else
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3095 fi
3096
3097
3098 fi
3099 if test -z "$CC"; then
3100 if test -n "$ac_tool_prefix"; then
3101 for ac_prog in cl.exe
3102 do
3103 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3104 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106 $as_echo_n "checking for $ac_word... " >&6; }
3107 if ${ac_cv_prog_CC+:} false; then :
3108 $as_echo_n "(cached) " >&6
3109 else
3110 if test -n "$CC"; then
3111 ac_cv_prog_CC="$CC" # Let the user override the test.
3112 else
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 for as_dir in $PATH
3115 do
3116 IFS=$as_save_IFS
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 break 2
3123 fi
3124 done
3125 done
3126 IFS=$as_save_IFS
3127
3128 fi
3129 fi
3130 CC=$ac_cv_prog_CC
3131 if test -n "$CC"; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3133 $as_echo "$CC" >&6; }
3134 else
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 $as_echo "no" >&6; }
3137 fi
3138
3139
3140 test -n "$CC" && break
3141 done
3142 fi
3143 if test -z "$CC"; then
3144 ac_ct_CC=$CC
3145 for ac_prog in cl.exe
3146 do
3147 # Extract the first word of "$ac_prog", so it can be a program name with args.
3148 set dummy $ac_prog; ac_word=$2
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150 $as_echo_n "checking for $ac_word... " >&6; }
3151 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3152 $as_echo_n "(cached) " >&6
3153 else
3154 if test -n "$ac_ct_CC"; then
3155 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3156 else
3157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158 for as_dir in $PATH
3159 do
3160 IFS=$as_save_IFS
3161 test -z "$as_dir" && as_dir=.
3162 for ac_exec_ext in '' $ac_executable_extensions; do
3163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3164 ac_cv_prog_ac_ct_CC="$ac_prog"
3165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166 break 2
3167 fi
3168 done
3169 done
3170 IFS=$as_save_IFS
3171
3172 fi
3173 fi
3174 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3175 if test -n "$ac_ct_CC"; then
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3177 $as_echo "$ac_ct_CC" >&6; }
3178 else
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180 $as_echo "no" >&6; }
3181 fi
3182
3183
3184 test -n "$ac_ct_CC" && break
3185 done
3186
3187 if test "x$ac_ct_CC" = x; then
3188 CC=""
3189 else
3190 case $cross_compiling:$ac_tool_warned in
3191 yes:)
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3194 ac_tool_warned=yes ;;
3195 esac
3196 CC=$ac_ct_CC
3197 fi
3198 fi
3199
3200 fi
3201
3202
3203 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3205 as_fn_error $? "no acceptable C compiler found in \$PATH
3206 See \`config.log' for more details" "$LINENO" 5; }
3207
3208 # Provide some information about the compiler.
3209 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3210 set X $ac_compile
3211 ac_compiler=$2
3212 for ac_option in --version -v -V -qversion; do
3213 { { ac_try="$ac_compiler $ac_option >&5"
3214 case "(($ac_try" in
3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216 *) ac_try_echo=$ac_try;;
3217 esac
3218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3219 $as_echo "$ac_try_echo"; } >&5
3220 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3221 ac_status=$?
3222 if test -s conftest.err; then
3223 sed '10a\
3224 ... rest of stderr output deleted ...
3225 10q' conftest.err >conftest.er1
3226 cat conftest.er1 >&5
3227 fi
3228 rm -f conftest.er1 conftest.err
3229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3230 test $ac_status = 0; }
3231 done
3232
3233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234 /* end confdefs.h. */
3235
3236 int
3237 main ()
3238 {
3239
3240 ;
3241 return 0;
3242 }
3243 _ACEOF
3244 ac_clean_files_save=$ac_clean_files
3245 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3246 # Try to create an executable without -o first, disregard a.out.
3247 # It will help us diagnose broken compilers, and finding out an intuition
3248 # of exeext.
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3250 $as_echo_n "checking whether the C compiler works... " >&6; }
3251 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3252
3253 # The possible output files:
3254 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3255
3256 ac_rmfiles=
3257 for ac_file in $ac_files
3258 do
3259 case $ac_file in
3260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3261 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3262 esac
3263 done
3264 rm -f $ac_rmfiles
3265
3266 if { { ac_try="$ac_link_default"
3267 case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270 esac
3271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3272 $as_echo "$ac_try_echo"; } >&5
3273 (eval "$ac_link_default") 2>&5
3274 ac_status=$?
3275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3276 test $ac_status = 0; }; then :
3277 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3278 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3279 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3280 # so that the user can short-circuit this test for compilers unknown to
3281 # Autoconf.
3282 for ac_file in $ac_files ''
3283 do
3284 test -f "$ac_file" || continue
3285 case $ac_file in
3286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3287 ;;
3288 [ab].out )
3289 # We found the default executable, but exeext='' is most
3290 # certainly right.
3291 break;;
3292 *.* )
3293 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3294 then :; else
3295 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3296 fi
3297 # We set ac_cv_exeext here because the later test for it is not
3298 # safe: cross compilers may not add the suffix if given an `-o'
3299 # argument, so we may need to know it at that point already.
3300 # Even if this section looks crufty: it has the advantage of
3301 # actually working.
3302 break;;
3303 * )
3304 break;;
3305 esac
3306 done
3307 test "$ac_cv_exeext" = no && ac_cv_exeext=
3308
3309 else
3310 ac_file=''
3311 fi
3312 if test -z "$ac_file"; then :
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314 $as_echo "no" >&6; }
3315 $as_echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3317
3318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3320 as_fn_error 77 "C compiler cannot create executables
3321 See \`config.log' for more details" "$LINENO" 5; }
3322 else
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3324 $as_echo "yes" >&6; }
3325 fi
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3327 $as_echo_n "checking for C compiler default output file name... " >&6; }
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3329 $as_echo "$ac_file" >&6; }
3330 ac_exeext=$ac_cv_exeext
3331
3332 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3333 ac_clean_files=$ac_clean_files_save
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3335 $as_echo_n "checking for suffix of executables... " >&6; }
3336 if { { ac_try="$ac_link"
3337 case "(($ac_try" in
3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339 *) ac_try_echo=$ac_try;;
3340 esac
3341 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3342 $as_echo "$ac_try_echo"; } >&5
3343 (eval "$ac_link") 2>&5
3344 ac_status=$?
3345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3346 test $ac_status = 0; }; then :
3347 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3348 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3349 # work properly (i.e., refer to `conftest.exe'), while it won't with
3350 # `rm'.
3351 for ac_file in conftest.exe conftest conftest.*; do
3352 test -f "$ac_file" || continue
3353 case $ac_file in
3354 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3355 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3356 break;;
3357 * ) break;;
3358 esac
3359 done
3360 else
3361 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3363 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3364 See \`config.log' for more details" "$LINENO" 5; }
3365 fi
3366 rm -f conftest conftest$ac_cv_exeext
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3368 $as_echo "$ac_cv_exeext" >&6; }
3369
3370 rm -f conftest.$ac_ext
3371 EXEEXT=$ac_cv_exeext
3372 ac_exeext=$EXEEXT
3373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3374 /* end confdefs.h. */
3375 #include <stdio.h>
3376 int
3377 main ()
3378 {
3379 FILE *f = fopen ("conftest.out", "w");
3380 return ferror (f) || fclose (f) != 0;
3381
3382 ;
3383 return 0;
3384 }
3385 _ACEOF
3386 ac_clean_files="$ac_clean_files conftest.out"
3387 # Check that the compiler produces executables we can run. If not, either
3388 # the compiler is broken, or we cross compile.
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3390 $as_echo_n "checking whether we are cross compiling... " >&6; }
3391 if test "$cross_compiling" != yes; then
3392 { { ac_try="$ac_link"
3393 case "(($ac_try" in
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3396 esac
3397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3398 $as_echo "$ac_try_echo"; } >&5
3399 (eval "$ac_link") 2>&5
3400 ac_status=$?
3401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3402 test $ac_status = 0; }
3403 if { ac_try='./conftest$ac_cv_exeext'
3404 { { case "(($ac_try" in
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3407 esac
3408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3409 $as_echo "$ac_try_echo"; } >&5
3410 (eval "$ac_try") 2>&5
3411 ac_status=$?
3412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3413 test $ac_status = 0; }; }; then
3414 cross_compiling=no
3415 else
3416 if test "$cross_compiling" = maybe; then
3417 cross_compiling=yes
3418 else
3419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3421 as_fn_error $? "cannot run C compiled programs.
3422 If you meant to cross compile, use \`--host'.
3423 See \`config.log' for more details" "$LINENO" 5; }
3424 fi
3425 fi
3426 fi
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3428 $as_echo "$cross_compiling" >&6; }
3429
3430 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3431 ac_clean_files=$ac_clean_files_save
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3433 $as_echo_n "checking for suffix of object files... " >&6; }
3434 if ${ac_cv_objext+:} false; then :
3435 $as_echo_n "(cached) " >&6
3436 else
3437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3438 /* end confdefs.h. */
3439
3440 int
3441 main ()
3442 {
3443
3444 ;
3445 return 0;
3446 }
3447 _ACEOF
3448 rm -f conftest.o conftest.obj
3449 if { { ac_try="$ac_compile"
3450 case "(($ac_try" in
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3453 esac
3454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3455 $as_echo "$ac_try_echo"; } >&5
3456 (eval "$ac_compile") 2>&5
3457 ac_status=$?
3458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3459 test $ac_status = 0; }; then :
3460 for ac_file in conftest.o conftest.obj conftest.*; do
3461 test -f "$ac_file" || continue;
3462 case $ac_file in
3463 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3464 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3465 break;;
3466 esac
3467 done
3468 else
3469 $as_echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3471
3472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3474 as_fn_error $? "cannot compute suffix of object files: cannot compile
3475 See \`config.log' for more details" "$LINENO" 5; }
3476 fi
3477 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3478 fi
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3480 $as_echo "$ac_cv_objext" >&6; }
3481 OBJEXT=$ac_cv_objext
3482 ac_objext=$OBJEXT
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3484 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3485 if ${ac_cv_c_compiler_gnu+:} false; then :
3486 $as_echo_n "(cached) " >&6
3487 else
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3490
3491 int
3492 main ()
3493 {
3494 #ifndef __GNUC__
3495 choke me
3496 #endif
3497
3498 ;
3499 return 0;
3500 }
3501 _ACEOF
3502 if ac_fn_c_try_compile "$LINENO"; then :
3503 ac_compiler_gnu=yes
3504 else
3505 ac_compiler_gnu=no
3506 fi
3507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3508 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3509
3510 fi
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3512 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3513 if test $ac_compiler_gnu = yes; then
3514 GCC=yes
3515 else
3516 GCC=
3517 fi
3518 ac_test_CFLAGS=${CFLAGS+set}
3519 ac_save_CFLAGS=$CFLAGS
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3521 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3522 if ${ac_cv_prog_cc_g+:} false; then :
3523 $as_echo_n "(cached) " >&6
3524 else
3525 ac_save_c_werror_flag=$ac_c_werror_flag
3526 ac_c_werror_flag=yes
3527 ac_cv_prog_cc_g=no
3528 CFLAGS="-g"
3529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530 /* end confdefs.h. */
3531
3532 int
3533 main ()
3534 {
3535
3536 ;
3537 return 0;
3538 }
3539 _ACEOF
3540 if ac_fn_c_try_compile "$LINENO"; then :
3541 ac_cv_prog_cc_g=yes
3542 else
3543 CFLAGS=""
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h. */
3546
3547 int
3548 main ()
3549 {
3550
3551 ;
3552 return 0;
3553 }
3554 _ACEOF
3555 if ac_fn_c_try_compile "$LINENO"; then :
3556
3557 else
3558 ac_c_werror_flag=$ac_save_c_werror_flag
3559 CFLAGS="-g"
3560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3561 /* end confdefs.h. */
3562
3563 int
3564 main ()
3565 {
3566
3567 ;
3568 return 0;
3569 }
3570 _ACEOF
3571 if ac_fn_c_try_compile "$LINENO"; then :
3572 ac_cv_prog_cc_g=yes
3573 fi
3574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575 fi
3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 fi
3578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3579 ac_c_werror_flag=$ac_save_c_werror_flag
3580 fi
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3582 $as_echo "$ac_cv_prog_cc_g" >&6; }
3583 if test "$ac_test_CFLAGS" = set; then
3584 CFLAGS=$ac_save_CFLAGS
3585 elif test $ac_cv_prog_cc_g = yes; then
3586 if test "$GCC" = yes; then
3587 CFLAGS="-g -O2"
3588 else
3589 CFLAGS="-g"
3590 fi
3591 else
3592 if test "$GCC" = yes; then
3593 CFLAGS="-O2"
3594 else
3595 CFLAGS=
3596 fi
3597 fi
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3599 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3600 if ${ac_cv_prog_cc_c89+:} false; then :
3601 $as_echo_n "(cached) " >&6
3602 else
3603 ac_cv_prog_cc_c89=no
3604 ac_save_CC=$CC
3605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606 /* end confdefs.h. */
3607 #include <stdarg.h>
3608 #include <stdio.h>
3609 struct stat;
3610 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3611 struct buf { int x; };
3612 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3613 static char *e (p, i)
3614 char **p;
3615 int i;
3616 {
3617 return p[i];
3618 }
3619 static char *f (char * (*g) (char **, int), char **p, ...)
3620 {
3621 char *s;
3622 va_list v;
3623 va_start (v,p);
3624 s = g (p, va_arg (v,int));
3625 va_end (v);
3626 return s;
3627 }
3628
3629 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3630 function prototypes and stuff, but not '\xHH' hex character constants.
3631 These don't provoke an error unfortunately, instead are silently treated
3632 as 'x'. The following induces an error, until -std is added to get
3633 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3634 array size at least. It's necessary to write '\x00'==0 to get something
3635 that's true only with -std. */
3636 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3637
3638 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3639 inside strings and character constants. */
3640 #define FOO(x) 'x'
3641 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3642
3643 int test (int i, double x);
3644 struct s1 {int (*f) (int a);};
3645 struct s2 {int (*f) (double a);};
3646 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3647 int argc;
3648 char **argv;
3649 int
3650 main ()
3651 {
3652 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3653 ;
3654 return 0;
3655 }
3656 _ACEOF
3657 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3658 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3659 do
3660 CC="$ac_save_CC $ac_arg"
3661 if ac_fn_c_try_compile "$LINENO"; then :
3662 ac_cv_prog_cc_c89=$ac_arg
3663 fi
3664 rm -f core conftest.err conftest.$ac_objext
3665 test "x$ac_cv_prog_cc_c89" != "xno" && break
3666 done
3667 rm -f conftest.$ac_ext
3668 CC=$ac_save_CC
3669
3670 fi
3671 # AC_CACHE_VAL
3672 case "x$ac_cv_prog_cc_c89" in
3673 x)
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3675 $as_echo "none needed" >&6; } ;;
3676 xno)
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3678 $as_echo "unsupported" >&6; } ;;
3679 *)
3680 CC="$CC $ac_cv_prog_cc_c89"
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3682 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3683 esac
3684 if test "x$ac_cv_prog_cc_c89" != xno; then :
3685
3686 fi
3687
3688 ac_ext=c
3689 ac_cpp='$CPP $CPPFLAGS'
3690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3693
3694
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3696 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3697 if ${ac_cv_lib_dl_dlopen+:} false; then :
3698 $as_echo_n "(cached) " >&6
3699 else
3700 ac_check_lib_save_LIBS=$LIBS
3701 LIBS="-ldl $LIBS"
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h. */
3704
3705 /* Override any GCC internal prototype to avoid an error.
3706 Use char because int might match the return type of a GCC
3707 builtin and then its argument prototype would still apply. */
3708 #ifdef __cplusplus
3709 extern "C"
3710 #endif
3711 char dlopen ();
3712 int
3713 main ()
3714 {
3715 return dlopen ();
3716 ;
3717 return 0;
3718 }
3719 _ACEOF
3720 if ac_fn_c_try_link "$LINENO"; then :
3721 ac_cv_lib_dl_dlopen=yes
3722 else
3723 ac_cv_lib_dl_dlopen=no
3724 fi
3725 rm -f core conftest.err conftest.$ac_objext \
3726 conftest$ac_exeext conftest.$ac_ext
3727 LIBS=$ac_check_lib_save_LIBS
3728 fi
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3730 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3731 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3732 DLOPEN_LIB=-ldl
3733 fi
3734
3735
3736
3737 # Check whether --with-cc was given.
3738 if test "${with_cc+set}" = set; then :
3739 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3740 fi
3741
3742
3743 # Check whether --with-ccopts was given.
3744 if test "${with_ccopts+set}" = set; then :
3745 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3746 fi
3747
3748
3749 # Check whether --with-ldopts was given.
3750 if test "${with_ldopts+set}" = set; then :
3751 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3752 fi
3753
3754 ac_ext=c
3755 ac_cpp='$CPP $CPPFLAGS'
3756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3759 if test -n "$ac_tool_prefix"; then
3760 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3761 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3763 $as_echo_n "checking for $ac_word... " >&6; }
3764 if ${ac_cv_prog_CC+:} false; then :
3765 $as_echo_n "(cached) " >&6
3766 else
3767 if test -n "$CC"; then
3768 ac_cv_prog_CC="$CC" # Let the user override the test.
3769 else
3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771 for as_dir in $PATH
3772 do
3773 IFS=$as_save_IFS
3774 test -z "$as_dir" && as_dir=.
3775 for ac_exec_ext in '' $ac_executable_extensions; do
3776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3777 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3779 break 2
3780 fi
3781 done
3782 done
3783 IFS=$as_save_IFS
3784
3785 fi
3786 fi
3787 CC=$ac_cv_prog_CC
3788 if test -n "$CC"; then
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3790 $as_echo "$CC" >&6; }
3791 else
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793 $as_echo "no" >&6; }
3794 fi
3795
3796
3797 fi
3798 if test -z "$ac_cv_prog_CC"; then
3799 ac_ct_CC=$CC
3800 # Extract the first word of "gcc", so it can be a program name with args.
3801 set dummy gcc; ac_word=$2
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803 $as_echo_n "checking for $ac_word... " >&6; }
3804 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3805 $as_echo_n "(cached) " >&6
3806 else
3807 if test -n "$ac_ct_CC"; then
3808 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3809 else
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811 for as_dir in $PATH
3812 do
3813 IFS=$as_save_IFS
3814 test -z "$as_dir" && as_dir=.
3815 for ac_exec_ext in '' $ac_executable_extensions; do
3816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3817 ac_cv_prog_ac_ct_CC="gcc"
3818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3819 break 2
3820 fi
3821 done
3822 done
3823 IFS=$as_save_IFS
3824
3825 fi
3826 fi
3827 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3828 if test -n "$ac_ct_CC"; then
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3830 $as_echo "$ac_ct_CC" >&6; }
3831 else
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3833 $as_echo "no" >&6; }
3834 fi
3835
3836 if test "x$ac_ct_CC" = x; then
3837 CC=""
3838 else
3839 case $cross_compiling:$ac_tool_warned in
3840 yes:)
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3843 ac_tool_warned=yes ;;
3844 esac
3845 CC=$ac_ct_CC
3846 fi
3847 else
3848 CC="$ac_cv_prog_CC"
3849 fi
3850
3851 if test -z "$CC"; then
3852 if test -n "$ac_tool_prefix"; then
3853 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3854 set dummy ${ac_tool_prefix}cc; ac_word=$2
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3856 $as_echo_n "checking for $ac_word... " >&6; }
3857 if ${ac_cv_prog_CC+:} false; then :
3858 $as_echo_n "(cached) " >&6
3859 else
3860 if test -n "$CC"; then
3861 ac_cv_prog_CC="$CC" # Let the user override the test.
3862 else
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864 for as_dir in $PATH
3865 do
3866 IFS=$as_save_IFS
3867 test -z "$as_dir" && as_dir=.
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3870 ac_cv_prog_CC="${ac_tool_prefix}cc"
3871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3872 break 2
3873 fi
3874 done
3875 done
3876 IFS=$as_save_IFS
3877
3878 fi
3879 fi
3880 CC=$ac_cv_prog_CC
3881 if test -n "$CC"; then
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3883 $as_echo "$CC" >&6; }
3884 else
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886 $as_echo "no" >&6; }
3887 fi
3888
3889
3890 fi
3891 fi
3892 if test -z "$CC"; then
3893 # Extract the first word of "cc", so it can be a program name with args.
3894 set dummy cc; ac_word=$2
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3896 $as_echo_n "checking for $ac_word... " >&6; }
3897 if ${ac_cv_prog_CC+:} false; then :
3898 $as_echo_n "(cached) " >&6
3899 else
3900 if test -n "$CC"; then
3901 ac_cv_prog_CC="$CC" # Let the user override the test.
3902 else
3903 ac_prog_rejected=no
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 for as_dir in $PATH
3906 do
3907 IFS=$as_save_IFS
3908 test -z "$as_dir" && as_dir=.
3909 for ac_exec_ext in '' $ac_executable_extensions; do
3910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3911 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3912 ac_prog_rejected=yes
3913 continue
3914 fi
3915 ac_cv_prog_CC="cc"
3916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3917 break 2
3918 fi
3919 done
3920 done
3921 IFS=$as_save_IFS
3922
3923 if test $ac_prog_rejected = yes; then
3924 # We found a bogon in the path, so make sure we never use it.
3925 set dummy $ac_cv_prog_CC
3926 shift
3927 if test $# != 0; then
3928 # We chose a different compiler from the bogus one.
3929 # However, it has the same basename, so the bogon will be chosen
3930 # first if we set CC to just the basename; use the full file name.
3931 shift
3932 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3933 fi
3934 fi
3935 fi
3936 fi
3937 CC=$ac_cv_prog_CC
3938 if test -n "$CC"; then
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3940 $as_echo "$CC" >&6; }
3941 else
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3943 $as_echo "no" >&6; }
3944 fi
3945
3946
3947 fi
3948 if test -z "$CC"; then
3949 if test -n "$ac_tool_prefix"; then
3950 for ac_prog in cl.exe
3951 do
3952 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3953 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3955 $as_echo_n "checking for $ac_word... " >&6; }
3956 if ${ac_cv_prog_CC+:} false; then :
3957 $as_echo_n "(cached) " >&6
3958 else
3959 if test -n "$CC"; then
3960 ac_cv_prog_CC="$CC" # Let the user override the test.
3961 else
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 for as_dir in $PATH
3964 do
3965 IFS=$as_save_IFS
3966 test -z "$as_dir" && as_dir=.
3967 for ac_exec_ext in '' $ac_executable_extensions; do
3968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3969 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3971 break 2
3972 fi
3973 done
3974 done
3975 IFS=$as_save_IFS
3976
3977 fi
3978 fi
3979 CC=$ac_cv_prog_CC
3980 if test -n "$CC"; then
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3982 $as_echo "$CC" >&6; }
3983 else
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3985 $as_echo "no" >&6; }
3986 fi
3987
3988
3989 test -n "$CC" && break
3990 done
3991 fi
3992 if test -z "$CC"; then
3993 ac_ct_CC=$CC
3994 for ac_prog in cl.exe
3995 do
3996 # Extract the first word of "$ac_prog", so it can be a program name with args.
3997 set dummy $ac_prog; ac_word=$2
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3999 $as_echo_n "checking for $ac_word... " >&6; }
4000 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4001 $as_echo_n "(cached) " >&6
4002 else
4003 if test -n "$ac_ct_CC"; then
4004 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4005 else
4006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007 for as_dir in $PATH
4008 do
4009 IFS=$as_save_IFS
4010 test -z "$as_dir" && as_dir=.
4011 for ac_exec_ext in '' $ac_executable_extensions; do
4012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4013 ac_cv_prog_ac_ct_CC="$ac_prog"
4014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4015 break 2
4016 fi
4017 done
4018 done
4019 IFS=$as_save_IFS
4020
4021 fi
4022 fi
4023 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4024 if test -n "$ac_ct_CC"; then
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4026 $as_echo "$ac_ct_CC" >&6; }
4027 else
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4029 $as_echo "no" >&6; }
4030 fi
4031
4032
4033 test -n "$ac_ct_CC" && break
4034 done
4035
4036 if test "x$ac_ct_CC" = x; then
4037 CC=""
4038 else
4039 case $cross_compiling:$ac_tool_warned in
4040 yes:)
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4043 ac_tool_warned=yes ;;
4044 esac
4045 CC=$ac_ct_CC
4046 fi
4047 fi
4048
4049 fi
4050
4051
4052 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4054 as_fn_error $? "no acceptable C compiler found in \$PATH
4055 See \`config.log' for more details" "$LINENO" 5; }
4056
4057 # Provide some information about the compiler.
4058 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4059 set X $ac_compile
4060 ac_compiler=$2
4061 for ac_option in --version -v -V -qversion; do
4062 { { ac_try="$ac_compiler $ac_option >&5"
4063 case "(($ac_try" in
4064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065 *) ac_try_echo=$ac_try;;
4066 esac
4067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4068 $as_echo "$ac_try_echo"; } >&5
4069 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4070 ac_status=$?
4071 if test -s conftest.err; then
4072 sed '10a\
4073 ... rest of stderr output deleted ...
4074 10q' conftest.err >conftest.er1
4075 cat conftest.er1 >&5
4076 fi
4077 rm -f conftest.er1 conftest.err
4078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4079 test $ac_status = 0; }
4080 done
4081
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4083 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4084 if ${ac_cv_c_compiler_gnu+:} false; then :
4085 $as_echo_n "(cached) " >&6
4086 else
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4089
4090 int
4091 main ()
4092 {
4093 #ifndef __GNUC__
4094 choke me
4095 #endif
4096
4097 ;
4098 return 0;
4099 }
4100 _ACEOF
4101 if ac_fn_c_try_compile "$LINENO"; then :
4102 ac_compiler_gnu=yes
4103 else
4104 ac_compiler_gnu=no
4105 fi
4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4108
4109 fi
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4111 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4112 if test $ac_compiler_gnu = yes; then
4113 GCC=yes
4114 else
4115 GCC=
4116 fi
4117 ac_test_CFLAGS=${CFLAGS+set}
4118 ac_save_CFLAGS=$CFLAGS
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4120 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4121 if ${ac_cv_prog_cc_g+:} false; then :
4122 $as_echo_n "(cached) " >&6
4123 else
4124 ac_save_c_werror_flag=$ac_c_werror_flag
4125 ac_c_werror_flag=yes
4126 ac_cv_prog_cc_g=no
4127 CFLAGS="-g"
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4130
4131 int
4132 main ()
4133 {
4134
4135 ;
4136 return 0;
4137 }
4138 _ACEOF
4139 if ac_fn_c_try_compile "$LINENO"; then :
4140 ac_cv_prog_cc_g=yes
4141 else
4142 CFLAGS=""
4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144 /* end confdefs.h. */
4145
4146 int
4147 main ()
4148 {
4149
4150 ;
4151 return 0;
4152 }
4153 _ACEOF
4154 if ac_fn_c_try_compile "$LINENO"; then :
4155
4156 else
4157 ac_c_werror_flag=$ac_save_c_werror_flag
4158 CFLAGS="-g"
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4161
4162 int
4163 main ()
4164 {
4165
4166 ;
4167 return 0;
4168 }
4169 _ACEOF
4170 if ac_fn_c_try_compile "$LINENO"; then :
4171 ac_cv_prog_cc_g=yes
4172 fi
4173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4174 fi
4175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176 fi
4177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178 ac_c_werror_flag=$ac_save_c_werror_flag
4179 fi
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4181 $as_echo "$ac_cv_prog_cc_g" >&6; }
4182 if test "$ac_test_CFLAGS" = set; then
4183 CFLAGS=$ac_save_CFLAGS
4184 elif test $ac_cv_prog_cc_g = yes; then
4185 if test "$GCC" = yes; then
4186 CFLAGS="-g -O2"
4187 else
4188 CFLAGS="-g"
4189 fi
4190 else
4191 if test "$GCC" = yes; then
4192 CFLAGS="-O2"
4193 else
4194 CFLAGS=
4195 fi
4196 fi
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4198 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4199 if ${ac_cv_prog_cc_c89+:} false; then :
4200 $as_echo_n "(cached) " >&6
4201 else
4202 ac_cv_prog_cc_c89=no
4203 ac_save_CC=$CC
4204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205 /* end confdefs.h. */
4206 #include <stdarg.h>
4207 #include <stdio.h>
4208 struct stat;
4209 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4210 struct buf { int x; };
4211 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4212 static char *e (p, i)
4213 char **p;
4214 int i;
4215 {
4216 return p[i];
4217 }
4218 static char *f (char * (*g) (char **, int), char **p, ...)
4219 {
4220 char *s;
4221 va_list v;
4222 va_start (v,p);
4223 s = g (p, va_arg (v,int));
4224 va_end (v);
4225 return s;
4226 }
4227
4228 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4229 function prototypes and stuff, but not '\xHH' hex character constants.
4230 These don't provoke an error unfortunately, instead are silently treated
4231 as 'x'. The following induces an error, until -std is added to get
4232 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4233 array size at least. It's necessary to write '\x00'==0 to get something
4234 that's true only with -std. */
4235 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4236
4237 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4238 inside strings and character constants. */
4239 #define FOO(x) 'x'
4240 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4241
4242 int test (int i, double x);
4243 struct s1 {int (*f) (int a);};
4244 struct s2 {int (*f) (double a);};
4245 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4246 int argc;
4247 char **argv;
4248 int
4249 main ()
4250 {
4251 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4252 ;
4253 return 0;
4254 }
4255 _ACEOF
4256 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4257 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4258 do
4259 CC="$ac_save_CC $ac_arg"
4260 if ac_fn_c_try_compile "$LINENO"; then :
4261 ac_cv_prog_cc_c89=$ac_arg
4262 fi
4263 rm -f core conftest.err conftest.$ac_objext
4264 test "x$ac_cv_prog_cc_c89" != "xno" && break
4265 done
4266 rm -f conftest.$ac_ext
4267 CC=$ac_save_CC
4268
4269 fi
4270 # AC_CACHE_VAL
4271 case "x$ac_cv_prog_cc_c89" in
4272 x)
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4274 $as_echo "none needed" >&6; } ;;
4275 xno)
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4277 $as_echo "unsupported" >&6; } ;;
4278 *)
4279 CC="$CC $ac_cv_prog_cc_c89"
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4281 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4282 esac
4283 if test "x$ac_cv_prog_cc_c89" != xno; then :
4284
4285 fi
4286
4287 ac_ext=c
4288 ac_cpp='$CPP $CPPFLAGS'
4289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4292
4293 if test "$GCC" = yes; then
4294 RDYNAMIC="-rdynamic"
4295
4296 fi
4297 ac_ext=c
4298 ac_cpp='$CPP $CPPFLAGS'
4299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4303 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4304 # On Suns, sometimes $CPP names a directory.
4305 if test -n "$CPP" && test -d "$CPP"; then
4306 CPP=
4307 fi
4308 if test -z "$CPP"; then
4309 if ${ac_cv_prog_CPP+:} false; then :
4310 $as_echo_n "(cached) " >&6
4311 else
4312 # Double quotes because CPP needs to be expanded
4313 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4314 do
4315 ac_preproc_ok=false
4316 for ac_c_preproc_warn_flag in '' yes
4317 do
4318 # Use a header file that comes with gcc, so configuring glibc
4319 # with a fresh cross-compiler works.
4320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4321 # <limits.h> exists even on freestanding compilers.
4322 # On the NeXT, cc -E runs the code through the compiler's parser,
4323 # not just through cpp. "Syntax error" is here to catch this case.
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4326 #ifdef __STDC__
4327 # include <limits.h>
4328 #else
4329 # include <assert.h>
4330 #endif
4331 Syntax error
4332 _ACEOF
4333 if ac_fn_c_try_cpp "$LINENO"; then :
4334
4335 else
4336 # Broken: fails on valid input.
4337 continue
4338 fi
4339 rm -f conftest.err conftest.i conftest.$ac_ext
4340
4341 # OK, works on sane cases. Now check whether nonexistent headers
4342 # can be detected and how.
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h. */
4345 #include <ac_nonexistent.h>
4346 _ACEOF
4347 if ac_fn_c_try_cpp "$LINENO"; then :
4348 # Broken: success on invalid input.
4349 continue
4350 else
4351 # Passes both tests.
4352 ac_preproc_ok=:
4353 break
4354 fi
4355 rm -f conftest.err conftest.i conftest.$ac_ext
4356
4357 done
4358 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4359 rm -f conftest.i conftest.err conftest.$ac_ext
4360 if $ac_preproc_ok; then :
4361 break
4362 fi
4363
4364 done
4365 ac_cv_prog_CPP=$CPP
4366
4367 fi
4368 CPP=$ac_cv_prog_CPP
4369 else
4370 ac_cv_prog_CPP=$CPP
4371 fi
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4373 $as_echo "$CPP" >&6; }
4374 ac_preproc_ok=false
4375 for ac_c_preproc_warn_flag in '' yes
4376 do
4377 # Use a header file that comes with gcc, so configuring glibc
4378 # with a fresh cross-compiler works.
4379 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4380 # <limits.h> exists even on freestanding compilers.
4381 # On the NeXT, cc -E runs the code through the compiler's parser,
4382 # not just through cpp. "Syntax error" is here to catch this case.
4383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384 /* end confdefs.h. */
4385 #ifdef __STDC__
4386 # include <limits.h>
4387 #else
4388 # include <assert.h>
4389 #endif
4390 Syntax error
4391 _ACEOF
4392 if ac_fn_c_try_cpp "$LINENO"; then :
4393
4394 else
4395 # Broken: fails on valid input.
4396 continue
4397 fi
4398 rm -f conftest.err conftest.i conftest.$ac_ext
4399
4400 # OK, works on sane cases. Now check whether nonexistent headers
4401 # can be detected and how.
4402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403 /* end confdefs.h. */
4404 #include <ac_nonexistent.h>
4405 _ACEOF
4406 if ac_fn_c_try_cpp "$LINENO"; then :
4407 # Broken: success on invalid input.
4408 continue
4409 else
4410 # Passes both tests.
4411 ac_preproc_ok=:
4412 break
4413 fi
4414 rm -f conftest.err conftest.i conftest.$ac_ext
4415
4416 done
4417 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4418 rm -f conftest.i conftest.err conftest.$ac_ext
4419 if $ac_preproc_ok; then :
4420
4421 else
4422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4424 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4425 See \`config.log' for more details" "$LINENO" 5; }
4426 fi
4427
4428 ac_ext=c
4429 ac_cpp='$CPP $CPPFLAGS'
4430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4433
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4435 $as_echo_n "checking for additional special compiler flags... " >&6; }
4436 if test "$GCC" = yes
4437 then
4438 case "$host_cpu" in
4439 alpha) addcflags="-mieee" ;;
4440 esac
4441 fi
4442 if test "x$addcflags" != x
4443 then
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4445 $as_echo "$addcflags" >&6; }
4446 CFLAGS="$addcflags $CFLAGS"
4447 else
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4449 $as_echo "(none)" >&6; }
4450 fi
4451
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4453 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4454 if ${ac_cv_path_GREP+:} false; then :
4455 $as_echo_n "(cached) " >&6
4456 else
4457 if test -z "$GREP"; then
4458 ac_path_GREP_found=false
4459 # Loop through the user's path and test for each of PROGNAME-LIST
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4462 do
4463 IFS=$as_save_IFS
4464 test -z "$as_dir" && as_dir=.
4465 for ac_prog in grep ggrep; do
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4468 as_fn_executable_p "$ac_path_GREP" || continue
4469 # Check for GNU ac_path_GREP and select it if it is found.
4470 # Check for GNU $ac_path_GREP
4471 case `"$ac_path_GREP" --version 2>&1` in
4472 *GNU*)
4473 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4474 *)
4475 ac_count=0
4476 $as_echo_n 0123456789 >"conftest.in"
4477 while :
4478 do
4479 cat "conftest.in" "conftest.in" >"conftest.tmp"
4480 mv "conftest.tmp" "conftest.in"
4481 cp "conftest.in" "conftest.nl"
4482 $as_echo 'GREP' >> "conftest.nl"
4483 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4484 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4485 as_fn_arith $ac_count + 1 && ac_count=$as_val
4486 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4487 # Best one so far, save it but keep looking for a better one
4488 ac_cv_path_GREP="$ac_path_GREP"
4489 ac_path_GREP_max=$ac_count
4490 fi
4491 # 10*(2^10) chars as input seems more than enough
4492 test $ac_count -gt 10 && break
4493 done
4494 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4495 esac
4496
4497 $ac_path_GREP_found && break 3
4498 done
4499 done
4500 done
4501 IFS=$as_save_IFS
4502 if test -z "$ac_cv_path_GREP"; then
4503 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4504 fi
4505 else
4506 ac_cv_path_GREP=$GREP
4507 fi
4508
4509 fi
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4511 $as_echo "$ac_cv_path_GREP" >&6; }
4512 GREP="$ac_cv_path_GREP"
4513
4514
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4516 $as_echo_n "checking for egrep... " >&6; }
4517 if ${ac_cv_path_EGREP+:} false; then :
4518 $as_echo_n "(cached) " >&6
4519 else
4520 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4521 then ac_cv_path_EGREP="$GREP -E"
4522 else
4523 if test -z "$EGREP"; then
4524 ac_path_EGREP_found=false
4525 # Loop through the user's path and test for each of PROGNAME-LIST
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4528 do
4529 IFS=$as_save_IFS
4530 test -z "$as_dir" && as_dir=.
4531 for ac_prog in egrep; do
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4534 as_fn_executable_p "$ac_path_EGREP" || continue
4535 # Check for GNU ac_path_EGREP and select it if it is found.
4536 # Check for GNU $ac_path_EGREP
4537 case `"$ac_path_EGREP" --version 2>&1` in
4538 *GNU*)
4539 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4540 *)
4541 ac_count=0
4542 $as_echo_n 0123456789 >"conftest.in"
4543 while :
4544 do
4545 cat "conftest.in" "conftest.in" >"conftest.tmp"
4546 mv "conftest.tmp" "conftest.in"
4547 cp "conftest.in" "conftest.nl"
4548 $as_echo 'EGREP' >> "conftest.nl"
4549 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4550 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4551 as_fn_arith $ac_count + 1 && ac_count=$as_val
4552 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4553 # Best one so far, save it but keep looking for a better one
4554 ac_cv_path_EGREP="$ac_path_EGREP"
4555 ac_path_EGREP_max=$ac_count
4556 fi
4557 # 10*(2^10) chars as input seems more than enough
4558 test $ac_count -gt 10 && break
4559 done
4560 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4561 esac
4562
4563 $ac_path_EGREP_found && break 3
4564 done
4565 done
4566 done
4567 IFS=$as_save_IFS
4568 if test -z "$ac_cv_path_EGREP"; then
4569 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4570 fi
4571 else
4572 ac_cv_path_EGREP=$EGREP
4573 fi
4574
4575 fi
4576 fi
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4578 $as_echo "$ac_cv_path_EGREP" >&6; }
4579 EGREP="$ac_cv_path_EGREP"
4580
4581
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4583 $as_echo_n "checking for ANSI C header files... " >&6; }
4584 if ${ac_cv_header_stdc+:} false; then :
4585 $as_echo_n "(cached) " >&6
4586 else
4587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588 /* end confdefs.h. */
4589 #include <stdlib.h>
4590 #include <stdarg.h>
4591 #include <string.h>
4592 #include <float.h>
4593
4594 int
4595 main ()
4596 {
4597
4598 ;
4599 return 0;
4600 }
4601 _ACEOF
4602 if ac_fn_c_try_compile "$LINENO"; then :
4603 ac_cv_header_stdc=yes
4604 else
4605 ac_cv_header_stdc=no
4606 fi
4607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4608
4609 if test $ac_cv_header_stdc = yes; then
4610 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4613 #include <string.h>
4614
4615 _ACEOF
4616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4617 $EGREP "memchr" >/dev/null 2>&1; then :
4618
4619 else
4620 ac_cv_header_stdc=no
4621 fi
4622 rm -f conftest*
4623
4624 fi
4625
4626 if test $ac_cv_header_stdc = yes; then
4627 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h. */
4630 #include <stdlib.h>
4631
4632 _ACEOF
4633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4634 $EGREP "free" >/dev/null 2>&1; then :
4635
4636 else
4637 ac_cv_header_stdc=no
4638 fi
4639 rm -f conftest*
4640
4641 fi
4642
4643 if test $ac_cv_header_stdc = yes; then
4644 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4645 if test "$cross_compiling" = yes; then :
4646 :
4647 else
4648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649 /* end confdefs.h. */
4650 #include <ctype.h>
4651 #include <stdlib.h>
4652 #if ((' ' & 0x0FF) == 0x020)
4653 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4654 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4655 #else
4656 # define ISLOWER(c) \
4657 (('a' <= (c) && (c) <= 'i') \
4658 || ('j' <= (c) && (c) <= 'r') \
4659 || ('s' <= (c) && (c) <= 'z'))
4660 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4661 #endif
4662
4663 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4664 int
4665 main ()
4666 {
4667 int i;
4668 for (i = 0; i < 256; i++)
4669 if (XOR (islower (i), ISLOWER (i))
4670 || toupper (i) != TOUPPER (i))
4671 return 2;
4672 return 0;
4673 }
4674 _ACEOF
4675 if ac_fn_c_try_run "$LINENO"; then :
4676
4677 else
4678 ac_cv_header_stdc=no
4679 fi
4680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4681 conftest.$ac_objext conftest.beam conftest.$ac_ext
4682 fi
4683
4684 fi
4685 fi
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4687 $as_echo "$ac_cv_header_stdc" >&6; }
4688 if test $ac_cv_header_stdc = yes; then
4689
4690 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4691
4692 fi
4693
4694 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4695 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4696 inttypes.h stdint.h unistd.h
4697 do :
4698 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4699 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4700 "
4701 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4702 cat >>confdefs.h <<_ACEOF
4703 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4704 _ACEOF
4705
4706 fi
4707
4708 done
4709
4710
4711
4712 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4713 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4714 MINIX=yes
4715 else
4716 MINIX=
4717 fi
4718
4719
4720 if test "$MINIX" = yes; then
4721
4722 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4723
4724
4725 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4726
4727
4728 $as_echo "#define _MINIX 1" >>confdefs.h
4729
4730 fi
4731
4732
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4734 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4735 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4736 $as_echo_n "(cached) " >&6
4737 else
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4740
4741 # define __EXTENSIONS__ 1
4742 $ac_includes_default
4743 int
4744 main ()
4745 {
4746
4747 ;
4748 return 0;
4749 }
4750 _ACEOF
4751 if ac_fn_c_try_compile "$LINENO"; then :
4752 ac_cv_safe_to_define___extensions__=yes
4753 else
4754 ac_cv_safe_to_define___extensions__=no
4755 fi
4756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4757 fi
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4759 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4760 test $ac_cv_safe_to_define___extensions__ = yes &&
4761 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4762
4763 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4764
4765 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4766
4767 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4768
4769 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4770
4771
4772 LIB_EXT=.a
4773 STATIC_LIB_EXT=.a
4774 PROFILED_LIB_EXT=.a
4775
4776 # Check whether --with-root-prefix was given.
4777 if test "${with_root_prefix+set}" = set; then :
4778 withval=$with_root_prefix; root_prefix=$withval
4779 else
4780 root_prefix=NONE
4781 fi
4782 # Check whether --enable-maintainer-mode was given.
4783 if test "${enable_maintainer_mode+set}" = set; then :
4784 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4785 then
4786 MAINTAINER_CMT=#
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4788 $as_echo "Disabling maintainer mode" >&6; }
4789 else
4790 MAINTAINER_CMT=
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4792 $as_echo "Enabling maintainer mode" >&6; }
4793 fi
4794
4795 else
4796 MAINTAINER_CMT=#
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4798 $as_echo "Disabling maintainer mode by default" >&6; }
4799
4800 fi
4801
4802
4803 # Check whether --enable-symlink-install was given.
4804 if test "${enable_symlink_install+set}" = set; then :
4805 enableval=$enable_symlink_install; if test "$enableval" = "no"
4806 then
4807 LINK_INSTALL_FLAGS=-f
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4809 $as_echo "Disabling symlinks for install" >&6; }
4810 else
4811 LINK_INSTALL_FLAGS=-sf
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4813 $as_echo "Enabling symlinks for install" >&6; }
4814 fi
4815
4816 else
4817 LINK_INSTALL_FLAGS=-f
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4819 $as_echo "Disabling symlinks for install by default" >&6; }
4820
4821 fi
4822
4823
4824 relative_symlink_defined=
4825 # Check whether --enable-relative-symlinks was given.
4826 if test "${enable_relative_symlinks+set}" = set; then :
4827 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4828 then
4829 SYMLINK_RELATIVE=
4830 relative_symlink_defined=yes
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4832 $as_echo "Disabling relative symlinks for install" >&6; }
4833 else
4834 SYMLINK_RELATIVE=--relative
4835 relative_symlink_defined=yes
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4837 $as_echo "Enabling relative symlinks for install" >&6; }
4838 fi
4839 fi
4840
4841 # Check whether --enable-symlink-relative-symlinks was given.
4842 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4843 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4844 then
4845 SYMLINK_RELATIVE=yes
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4847 $as_echo "Disabling relative symlinks for install" >&6; }
4848 else
4849 SYMLINK_RELATIVE=--relative
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4851 $as_echo "Enabling relative symlinks for install" >&6; }
4852 fi
4853
4854 else
4855 if test -z "$relative_symlink_defined"
4856 then
4857 SYMLINK_RELATIVE=
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4859 $as_echo "Disabling relative symlinks for install by default" >&6; }
4860 fi
4861
4862 fi
4863
4864
4865 # Check whether --enable-symlink-build was given.
4866 if test "${enable_symlink_build+set}" = set; then :
4867 enableval=$enable_symlink_build; if test "$enableval" = "no"
4868 then
4869 LINK_BUILD_FLAGS=
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4871 $as_echo "Disabling symlinks for build" >&6; }
4872 else
4873 LINK_BUILD_FLAGS=-s
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4875 $as_echo "Enabling symlinks for build" >&6; }
4876 fi
4877
4878 else
4879 LINK_BUILD_FLAGS=
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4881 $as_echo "Disabling symlinks for build by default" >&6; }
4882
4883 fi
4884
4885
4886 # Check whether --enable-verbose-makecmds was given.
4887 if test "${enable_verbose_makecmds+set}" = set; then :
4888 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4889 then
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4891 $as_echo "Disabling verbose make commands" >&6; }
4892 E=@echo
4893 ES=echo
4894 Q=@
4895 else
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4897 $as_echo "Enabling verbose make commands" >&6; }
4898 E=@\\#
4899 ES=\\#
4900 Q=
4901 fi
4902
4903 else
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4905 $as_echo "Disabling verbose make commands" >&6; }
4906 E=@echo
4907 ES=echo
4908 Q=@
4909
4910 fi
4911
4912
4913
4914
4915 E2_PKG_CONFIG_STATIC=--static
4916 LDFLAG_DYNAMIC=
4917 PRIVATE_LIBS_CMT=
4918 # Check whether --enable-elf-shlibs was given.
4919 if test "${enable_elf_shlibs+set}" = set; then :
4920 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4921 then
4922 ELF_CMT=#
4923 MAKEFILE_ELF=/dev/null
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4925 $as_echo "Disabling ELF shared libraries" >&6; }
4926 else
4927 E2_PKG_CONFIG_STATIC=
4928 ELF_CMT=
4929 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4930 case "$host_os" in
4931 solaris2.*)
4932 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4933 ;;
4934 esac
4935 BINARY_TYPE=elfbin
4936 LIB_EXT=.so
4937 PRIVATE_LIBS_CMT=#
4938 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4940 $as_echo "Enabling ELF shared libraries" >&6; }
4941 fi
4942
4943 else
4944 MAKEFILE_ELF=/dev/null
4945 ELF_CMT=#
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4947 $as_echo "Disabling ELF shared libraries by default" >&6; }
4948
4949 fi
4950
4951
4952
4953 # Check whether --enable-bsd-shlibs was given.
4954 if test "${enable_bsd_shlibs+set}" = set; then :
4955 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4956 then
4957 BSDLIB_CMT=#
4958 MAKEFILE_BSDLIB=/dev/null
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4960 $as_echo "Disabling BSD shared libraries" >&6; }
4961 else
4962 E2_PKG_CONFIG_STATIC=
4963 BSDLIB_CMT=
4964 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4965 LIB_EXT=.so
4966 case "$host_os" in
4967 darwin*)
4968 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4969 LIB_EXT=.dylib
4970 ;;
4971 esac
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4973 $as_echo "Enabling BSD shared libraries" >&6; }
4974 fi
4975
4976 else
4977 MAKEFILE_BSDLIB=/dev/null
4978 BSDLIB_CMT=#
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4980 $as_echo "Disabling BSD shared libraries by default" >&6; }
4981
4982 fi
4983
4984
4985
4986 # Check whether --enable-profile was given.
4987 if test "${enable_profile+set}" = set; then :
4988 enableval=$enable_profile; if test "$enableval" = "no"
4989 then
4990 PROFILE_CMT=#
4991 MAKEFILE_PROFILE=/dev/null
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4993 $as_echo "Disabling profiling libraries" >&6; }
4994 else
4995 PROFILE_CMT=
4996 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4997 PROFILED_LIB_EXT=_p.a
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4999 $as_echo "Building profiling libraries" >&6; }
5000 fi
5001
5002 else
5003 PROFILE_CMT=#
5004 MAKEFILE_PROFILE=/dev/null
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5006 $as_echo "Disabling profiling libraries by default" >&6; }
5007
5008 fi
5009
5010
5011
5012 # Check whether --enable-gcov was given.
5013 if test "${enable_gcov+set}" = set; then :
5014 enableval=$enable_gcov; if test "$enableval" = "yes"
5015 then
5016 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5017 LDFLAGS="-fprofile-arcs -ftest-coverage"
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5019 $as_echo "Enabling gcov support" >&6; }
5020 fi
5021
5022 fi
5023
5024 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5025 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5026 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5027 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5028 # Check whether --enable-hardening was given.
5029 if test "${enable_hardening+set}" = set; then :
5030 enableval=$enable_hardening; if test "$enableval" = "yes"
5031 then
5032 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5033 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5034 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5035 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5036 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5037 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5038 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5039 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5041 $as_echo "Enabling hardening support" >&6; }
5042 fi
5043
5044 fi
5045
5046
5047
5048
5049
5050
5051 # Check whether --enable-jbd-debug was given.
5052 if test "${enable_jbd_debug+set}" = set; then :
5053 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5054 then
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5056 $as_echo "Disabling journal debugging" >&6; }
5057 else
5058
5059 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5060
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5062 $as_echo "Enabling journal debugging" >&6; }
5063 fi
5064
5065 else
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5067 $as_echo "Disabling journal debugging by default" >&6; }
5068
5069 fi
5070
5071 # Check whether --enable-blkid-debug was given.
5072 if test "${enable_blkid_debug+set}" = set; then :
5073 enableval=$enable_blkid_debug; if test "$enableval" = "no"
5074 then
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5076 $as_echo "Disabling blkid debugging" >&6; }
5077 else
5078
5079 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5080
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5082 $as_echo "Enabling blkid debugging" >&6; }
5083 fi
5084
5085 else
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5087 $as_echo "Disabling blkid debugging by default" >&6; }
5088
5089 fi
5090
5091 # Check whether --enable-testio-debug was given.
5092 if test "${enable_testio_debug+set}" = set; then :
5093 enableval=$enable_testio_debug;
5094 if test "$enableval" = "no"
5095 then
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5097 $as_echo "Disabling testio debugging" >&6; }
5098 TEST_IO_CMT="#"
5099 else
5100 TEST_IO_CMT=
5101 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5102
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5104 $as_echo "Enabling testio debugging" >&6; }
5105 fi
5106
5107 else
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5109 $as_echo "Enabling testio debugging by default" >&6; }
5110 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5111
5112 TEST_IO_CMT=
5113
5114 fi
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5125 if test -n "$ac_tool_prefix"; then
5126 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5127 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5129 $as_echo_n "checking for $ac_word... " >&6; }
5130 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5131 $as_echo_n "(cached) " >&6
5132 else
5133 case $PKG_CONFIG in
5134 [\\/]* | ?:[\\/]*)
5135 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5136 ;;
5137 *)
5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139 for as_dir in $PATH
5140 do
5141 IFS=$as_save_IFS
5142 test -z "$as_dir" && as_dir=.
5143 for ac_exec_ext in '' $ac_executable_extensions; do
5144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5145 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5147 break 2
5148 fi
5149 done
5150 done
5151 IFS=$as_save_IFS
5152
5153 ;;
5154 esac
5155 fi
5156 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5157 if test -n "$PKG_CONFIG"; then
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5159 $as_echo "$PKG_CONFIG" >&6; }
5160 else
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 $as_echo "no" >&6; }
5163 fi
5164
5165
5166 fi
5167 if test -z "$ac_cv_path_PKG_CONFIG"; then
5168 ac_pt_PKG_CONFIG=$PKG_CONFIG
5169 # Extract the first word of "pkg-config", so it can be a program name with args.
5170 set dummy pkg-config; ac_word=$2
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172 $as_echo_n "checking for $ac_word... " >&6; }
5173 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5174 $as_echo_n "(cached) " >&6
5175 else
5176 case $ac_pt_PKG_CONFIG in
5177 [\\/]* | ?:[\\/]*)
5178 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5179 ;;
5180 *)
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH
5183 do
5184 IFS=$as_save_IFS
5185 test -z "$as_dir" && as_dir=.
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5188 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5190 break 2
5191 fi
5192 done
5193 done
5194 IFS=$as_save_IFS
5195
5196 ;;
5197 esac
5198 fi
5199 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5200 if test -n "$ac_pt_PKG_CONFIG"; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5202 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5203 else
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205 $as_echo "no" >&6; }
5206 fi
5207
5208 if test "x$ac_pt_PKG_CONFIG" = x; then
5209 PKG_CONFIG=""
5210 else
5211 case $cross_compiling:$ac_tool_warned in
5212 yes:)
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5215 ac_tool_warned=yes ;;
5216 esac
5217 PKG_CONFIG=$ac_pt_PKG_CONFIG
5218 fi
5219 else
5220 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5221 fi
5222
5223 fi
5224 if test -n "$PKG_CONFIG"; then
5225 _pkg_min_version=0.9.0
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5227 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5228 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5230 $as_echo "yes" >&6; }
5231 else
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }
5234 PKG_CONFIG=""
5235 fi
5236 fi
5237 LIBUUID=
5238 DEPLIBUUID=
5239 STATIC_LIBUUID=
5240 DEPSTATIC_LIBUUID=
5241 PROFILED_LIBUUID=
5242 DEPPROFILED_LIBUUID=
5243 UUID_CMT=
5244 # Check whether --enable-libuuid was given.
5245 if test "${enable_libuuid+set}" = set; then :
5246 enableval=$enable_libuuid; if test "$enableval" = "no"
5247 then
5248 if test -z "$PKG_CONFIG"; then
5249 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5250 fi
5251
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5253 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5254 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5255 $as_echo_n "(cached) " >&6
5256 else
5257 ac_check_lib_save_LIBS=$LIBS
5258 LIBS="-luuid $LIBS"
5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h. */
5261
5262 /* Override any GCC internal prototype to avoid an error.
5263 Use char because int might match the return type of a GCC
5264 builtin and then its argument prototype would still apply. */
5265 #ifdef __cplusplus
5266 extern "C"
5267 #endif
5268 char uuid_generate ();
5269 int
5270 main ()
5271 {
5272 return uuid_generate ();
5273 ;
5274 return 0;
5275 }
5276 _ACEOF
5277 if ac_fn_c_try_link "$LINENO"; then :
5278 ac_cv_lib_uuid_uuid_generate=yes
5279 else
5280 ac_cv_lib_uuid_uuid_generate=no
5281 fi
5282 rm -f core conftest.err conftest.$ac_objext \
5283 conftest$ac_exeext conftest.$ac_ext
5284 LIBS=$ac_check_lib_save_LIBS
5285 fi
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5287 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5288 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5289 LIBUUID=`$PKG_CONFIG --libs uuid`;
5290 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5291 else
5292 as_fn_error $? "external uuid library not found" "$LINENO" 5
5293 fi
5294
5295 PROFILED_LIBUUID=$LIBUUID
5296 UUID_CMT=#
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5298 $as_echo "Disabling private uuid library" >&6; }
5299 else
5300 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5301 DEPLIBUUID=$LIBUUID
5302 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5303 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5304 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5305 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5307 $as_echo "Enabling private uuid library" >&6; }
5308 fi
5309
5310 else
5311 if test -n "$PKG_CONFIG"; then
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5313 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5314 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5315 $as_echo_n "(cached) " >&6
5316 else
5317 ac_check_lib_save_LIBS=$LIBS
5318 LIBS="-luuid $LIBS"
5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320 /* end confdefs.h. */
5321
5322 /* Override any GCC internal prototype to avoid an error.
5323 Use char because int might match the return type of a GCC
5324 builtin and then its argument prototype would still apply. */
5325 #ifdef __cplusplus
5326 extern "C"
5327 #endif
5328 char uuid_generate ();
5329 int
5330 main ()
5331 {
5332 return uuid_generate ();
5333 ;
5334 return 0;
5335 }
5336 _ACEOF
5337 if ac_fn_c_try_link "$LINENO"; then :
5338 ac_cv_lib_uuid_uuid_generate=yes
5339 else
5340 ac_cv_lib_uuid_uuid_generate=no
5341 fi
5342 rm -f core conftest.err conftest.$ac_objext \
5343 conftest$ac_exeext conftest.$ac_ext
5344 LIBS=$ac_check_lib_save_LIBS
5345 fi
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5347 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5348 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5349 LIBUUID=`$PKG_CONFIG --libs uuid`;
5350 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5351 fi
5352
5353 fi
5354 if test -n "$LIBUUID"; then
5355 PROFILED_LIBUUID=$LIBUUID
5356 UUID_CMT=#
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5358 $as_echo "Using system uuid by default" >&6; }
5359 else
5360 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5361 DEPLIBUUID=$LIBUUID
5362 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5363 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5364 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5365 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5367 $as_echo "Enabling private uuid library by default" >&6; }
5368 fi
5369
5370 fi
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5387 if test -n "$ac_tool_prefix"; then
5388 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5389 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5391 $as_echo_n "checking for $ac_word... " >&6; }
5392 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5393 $as_echo_n "(cached) " >&6
5394 else
5395 case $PKG_CONFIG in
5396 [\\/]* | ?:[\\/]*)
5397 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5398 ;;
5399 *)
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 for as_dir in $PATH
5402 do
5403 IFS=$as_save_IFS
5404 test -z "$as_dir" && as_dir=.
5405 for ac_exec_ext in '' $ac_executable_extensions; do
5406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5407 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5409 break 2
5410 fi
5411 done
5412 done
5413 IFS=$as_save_IFS
5414
5415 ;;
5416 esac
5417 fi
5418 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5419 if test -n "$PKG_CONFIG"; then
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5421 $as_echo "$PKG_CONFIG" >&6; }
5422 else
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5424 $as_echo "no" >&6; }
5425 fi
5426
5427
5428 fi
5429 if test -z "$ac_cv_path_PKG_CONFIG"; then
5430 ac_pt_PKG_CONFIG=$PKG_CONFIG
5431 # Extract the first word of "pkg-config", so it can be a program name with args.
5432 set dummy pkg-config; ac_word=$2
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5434 $as_echo_n "checking for $ac_word... " >&6; }
5435 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5436 $as_echo_n "(cached) " >&6
5437 else
5438 case $ac_pt_PKG_CONFIG in
5439 [\\/]* | ?:[\\/]*)
5440 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5441 ;;
5442 *)
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 for as_dir in $PATH
5445 do
5446 IFS=$as_save_IFS
5447 test -z "$as_dir" && as_dir=.
5448 for ac_exec_ext in '' $ac_executable_extensions; do
5449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5450 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5452 break 2
5453 fi
5454 done
5455 done
5456 IFS=$as_save_IFS
5457
5458 ;;
5459 esac
5460 fi
5461 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5462 if test -n "$ac_pt_PKG_CONFIG"; then
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5464 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5465 else
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467 $as_echo "no" >&6; }
5468 fi
5469
5470 if test "x$ac_pt_PKG_CONFIG" = x; then
5471 PKG_CONFIG=""
5472 else
5473 case $cross_compiling:$ac_tool_warned in
5474 yes:)
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5477 ac_tool_warned=yes ;;
5478 esac
5479 PKG_CONFIG=$ac_pt_PKG_CONFIG
5480 fi
5481 else
5482 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5483 fi
5484
5485 fi
5486 if test -n "$PKG_CONFIG"; then
5487 _pkg_min_version=0.9.0
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5489 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5490 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5492 $as_echo "yes" >&6; }
5493 else
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5495 $as_echo "no" >&6; }
5496 PKG_CONFIG=""
5497 fi
5498 fi
5499 LIBBLKID=
5500 DEPLIBBLKID=
5501 STATIC_LIBBLKID=
5502 DEPSTATIC_LIBBLKID=
5503 PROFILED_LIBBLKID=
5504 DEPPROFILED_LIBBLKID=
5505 BLKID_CMT=
5506
5507 # Check whether --enable-libblkid was given.
5508 if test "${enable_libblkid+set}" = set; then :
5509 enableval=$enable_libblkid; if test "$enableval" = "no"
5510 then
5511 if test -z "$PKG_CONFIG"; then
5512 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5513 fi
5514
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5516 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5517 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5518 $as_echo_n "(cached) " >&6
5519 else
5520 ac_check_lib_save_LIBS=$LIBS
5521 LIBS="-lblkid -luuid $LIBS"
5522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5523 /* end confdefs.h. */
5524
5525 /* Override any GCC internal prototype to avoid an error.
5526 Use char because int might match the return type of a GCC
5527 builtin and then its argument prototype would still apply. */
5528 #ifdef __cplusplus
5529 extern "C"
5530 #endif
5531 char blkid_get_cache ();
5532 int
5533 main ()
5534 {
5535 return blkid_get_cache ();
5536 ;
5537 return 0;
5538 }
5539 _ACEOF
5540 if ac_fn_c_try_link "$LINENO"; then :
5541 ac_cv_lib_blkid_blkid_get_cache=yes
5542 else
5543 ac_cv_lib_blkid_blkid_get_cache=no
5544 fi
5545 rm -f core conftest.err conftest.$ac_objext \
5546 conftest$ac_exeext conftest.$ac_ext
5547 LIBS=$ac_check_lib_save_LIBS
5548 fi
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5550 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5551 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5552 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5553 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5554 else
5555 as_fn_error $? "external blkid library not found" "$LINENO" 5
5556 fi
5557
5558 BLKID_CMT=#
5559 PROFILED_LIBBLKID=$LIBBLKID
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5561 $as_echo "Disabling private blkid library" >&6; }
5562 else
5563 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5564 DEPLIBBLKID=$LIBBLKID
5565 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5566 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5567 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5568 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5569 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5570
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5572 $as_echo "Enabling private blkid library" >&6; }
5573 fi
5574
5575 else
5576 if test -n "$PKG_CONFIG"; then
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5578 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5579 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5580 $as_echo_n "(cached) " >&6
5581 else
5582 ac_check_lib_save_LIBS=$LIBS
5583 LIBS="-lblkid $LIBS"
5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585 /* end confdefs.h. */
5586
5587 /* Override any GCC internal prototype to avoid an error.
5588 Use char because int might match the return type of a GCC
5589 builtin and then its argument prototype would still apply. */
5590 #ifdef __cplusplus
5591 extern "C"
5592 #endif
5593 char blkid_get_cache ();
5594 int
5595 main ()
5596 {
5597 return blkid_get_cache ();
5598 ;
5599 return 0;
5600 }
5601 _ACEOF
5602 if ac_fn_c_try_link "$LINENO"; then :
5603 ac_cv_lib_blkid_blkid_get_cache=yes
5604 else
5605 ac_cv_lib_blkid_blkid_get_cache=no
5606 fi
5607 rm -f core conftest.err conftest.$ac_objext \
5608 conftest$ac_exeext conftest.$ac_ext
5609 LIBS=$ac_check_lib_save_LIBS
5610 fi
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5612 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5613 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5614 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5615 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5616 fi
5617
5618 fi
5619 if test -n "$LIBBLKID"; then
5620 BLKID_CMT=#
5621 PROFILED_LIBBLKID=$LIBBLKID
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5623 $as_echo "Using system blkid library by default" >&6; }
5624 else
5625 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5626 DEPLIBBLKID=$LIBBLKID
5627 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5628 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5629 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5630 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5631 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5632
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5634 $as_echo "Enabling private blkid library by default" >&6; }
5635 fi
5636
5637 fi
5638
5639
5640
5641
5642
5643
5644
5645
5646 ALL_CMT=
5647 # Check whether --enable-subset was given.
5648 if test "${enable_subset+set}" = set; then :
5649 enableval=$enable_subset; if test "$enableval" = "no"
5650 then
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5
5652 $as_echo "Disabling subset-only build" >&6; }
5653 else
5654 ALL_CMT=#
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5
5656 $as_echo "Enabling subset-only-build" >&6; }
5657 fi
5658
5659 fi
5660
5661
5662
5663 # Check whether --enable-backtrace was given.
5664 if test "${enable_backtrace+set}" = set; then :
5665 enableval=$enable_backtrace; if test "$enableval" = "no"
5666 then
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5668 $as_echo "Disabling use of backtrace" >&6; }
5669 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5670
5671 else
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5673 $as_echo "Enabling use of backtrace" >&6; }
5674 fi
5675
5676 else
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5678 $as_echo "Enabling use of backtrace by default" >&6; }
5679
5680 fi
5681
5682 # Check whether --enable-debugfs was given.
5683 if test "${enable_debugfs+set}" = set; then :
5684 enableval=$enable_debugfs; if test "$enableval" = "no"
5685 then
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5687 $as_echo "Disabling debugfs support" >&6; }
5688 DEBUGFS_CMT="#"
5689 else
5690 DEBUGFS_CMT=
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5692 $as_echo "Enabling debugfs support" >&6; }
5693 fi
5694
5695 else
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5697 $as_echo "Enabling debugfs support by default" >&6; }
5698 DEBUGFS_CMT=
5699
5700 fi
5701
5702
5703 # Check whether --enable-imager was given.
5704 if test "${enable_imager+set}" = set; then :
5705 enableval=$enable_imager; if test "$enableval" = "no"
5706 then
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5708 $as_echo "Disabling e2image support" >&6; }
5709 IMAGER_CMT="#"
5710 else
5711 IMAGER_CMT=
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5713 $as_echo "Enabling e2image support" >&6; }
5714 fi
5715
5716 else
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5718 $as_echo "Enabling e2image support by default" >&6; }
5719 IMAGER_CMT=
5720
5721 fi
5722
5723
5724 # Check whether --enable-resizer was given.
5725 if test "${enable_resizer+set}" = set; then :
5726 enableval=$enable_resizer; if test "$enableval" = "no"
5727 then
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5729 $as_echo "Disabling e2resize support" >&6; }
5730 RESIZER_CMT="#"
5731 else
5732 RESIZER_CMT=
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5734 $as_echo "Enabling e2resize support" >&6; }
5735 fi
5736
5737 else
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5739 $as_echo "Enabling e2resize support by default" >&6; }
5740 RESIZER_CMT=
5741
5742 fi
5743
5744
5745 # Check whether --enable-defrag was given.
5746 if test "${enable_defrag+set}" = set; then :
5747 enableval=$enable_defrag; if test "$enableval" = "no"
5748 then
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5750 $as_echo "Disabling e4defrag support" >&6; }
5751 DEFRAG_CMT="#"
5752 else
5753 DEFRAG_CMT=
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5755 $as_echo "Enabling e4defrag support" >&6; }
5756 fi
5757
5758 else
5759 if test -z "$WITH_DIET_LIBC"
5760 then
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5762 $as_echo "Enabling e4defrag support by default" >&6; }
5763 DEFRAG_CMT=
5764 else
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5766 $as_echo "Disabling e4defrag support by default" >&6; }
5767 DEFRAG_CMT="#"
5768 fi
5769
5770 fi
5771
5772
5773 # Check whether --enable-fsck was given.
5774 if test "${enable_fsck+set}" = set; then :
5775 enableval=$enable_fsck; if test "$enableval" = "no"
5776 then
5777 FSCK_PROG='' FSCK_MAN=''
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5779 $as_echo "Not building fsck wrapper" >&6; }
5780 else
5781 FSCK_PROG=fsck FSCK_MAN=fsck.8
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5783 $as_echo "Building fsck wrapper" >&6; }
5784 fi
5785
5786 else
5787 case "$host_os" in
5788 gnu*)
5789 FSCK_PROG='' FSCK_MAN=''
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5791 $as_echo "Not building fsck wrapper by default" >&6; }
5792 ;;
5793 *)
5794 FSCK_PROG=fsck FSCK_MAN=fsck.8
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5796 $as_echo "Building fsck wrapper by default" >&6; }
5797 esac
5798
5799 fi
5800
5801
5802
5803 # Check whether --enable-e2initrd-helper was given.
5804 if test "${enable_e2initrd_helper+set}" = set; then :
5805 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5806 then
5807 E2INITRD_PROG='' E2INITRD_MAN=''
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5809 $as_echo "Not building e2initrd helper" >&6; }
5810 else
5811 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5813 $as_echo "Building e2initrd helper" >&6; }
5814 fi
5815
5816 else
5817 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5819 $as_echo "Building e2initrd helper by default" >&6; }
5820
5821 fi
5822
5823
5824
5825 # Check whether --enable-tls was given.
5826 if test "${enable_tls+set}" = set; then :
5827 enableval=$enable_tls; if test "$enableval" = "no"
5828 then
5829 try_tls=""
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5831 $as_echo "Disabling thread local support" >&6; }
5832 else
5833 try_tls="yes"
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5835 $as_echo "Enabling thread local support" >&6; }
5836 fi
5837
5838 else
5839 if test -n "$WITH_DIET_LIBC"
5840 then
5841 try_tls=""
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5843 $as_echo "Diet libc does not support thread local support" >&6; }
5844 else
5845 try_tls="yes"
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5847 $as_echo "Try using thread local support by default" >&6; }
5848 fi
5849
5850 fi
5851
5852 if test "$try_tls" = "yes"
5853 then
5854
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5856 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5857 if ${ac_cv_tls+:} false; then :
5858 $as_echo_n "(cached) " >&6
5859 else
5860
5861 ax_tls_keywords="__thread __declspec(thread) none"
5862 for ax_tls_keyword in $ax_tls_keywords; do
5863 case $ax_tls_keyword in
5864 none) ac_cv_tls=none ; break ;;
5865 *)
5866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5867 /* end confdefs.h. */
5868 #include <stdlib.h>
5869 static void
5870 foo(void) {
5871 static $ax_tls_keyword int bar;
5872 exit(1);
5873 }
5874 int
5875 main ()
5876 {
5877
5878 ;
5879 return 0;
5880 }
5881 _ACEOF
5882 if ac_fn_c_try_compile "$LINENO"; then :
5883 ac_cv_tls=$ax_tls_keyword ; break
5884 else
5885 ac_cv_tls=none
5886
5887 fi
5888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889 esac
5890 done
5891
5892 fi
5893
5894
5895 if test "$ac_cv_tls" != "none"; then
5896
5897 cat >>confdefs.h <<_ACEOF
5898 #define TLS $ac_cv_tls
5899 _ACEOF
5900
5901 fi
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5903 $as_echo "$ac_cv_tls" >&6; }
5904
5905 fi
5906
5907 # Check whether --enable-uuidd was given.
5908 if test "${enable_uuidd+set}" = set; then :
5909 enableval=$enable_uuidd; if test "$enableval" = "no"
5910 then
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5912 $as_echo "Not building uuidd" >&6; }
5913 UUIDD_CMT="#"
5914 else
5915 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5916
5917 UUIDD_CMT=""
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5919 $as_echo "Building uuidd" >&6; }
5920 fi
5921
5922 else
5923 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5924
5925 if test -z "$UUID_CMT"
5926 then
5927 UUIDD_CMT=""
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5929 $as_echo "Building uuidd by default" >&6; }
5930 else
5931 UUIDD_CMT="#"
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5933 $as_echo "Disabling uuidd by default" >&6; }
5934 fi
5935
5936 fi
5937
5938
5939
5940 # Check whether --enable-mmp was given.
5941 if test "${enable_mmp+set}" = set; then :
5942 enableval=$enable_mmp; if test "$enableval" = "no"
5943 then
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5945 $as_echo "Disabling mmp support" >&6; }
5946 else
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5948 $as_echo "Enabling mmp support" >&6; }
5949 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5950
5951 fi
5952
5953 else
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5955 $as_echo "Enabling mmp support by default" >&6; }
5956 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5957
5958
5959 fi
5960
5961
5962 # Check whether --enable-tdb was given.
5963 if test "${enable_tdb+set}" = set; then :
5964 enableval=$enable_tdb; if test "$enableval" = "no"
5965 then
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
5967 $as_echo "Disabling tdb support" >&6; }
5968 TDB_CMT="#"
5969 TDB_MAN_COMMENT='.\"'
5970 else
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
5972 $as_echo "Enabling tdb support" >&6; }
5973 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
5974
5975 TDB_CMT=""
5976 TDB_MAN_COMMENT=""
5977 fi
5978
5979 else
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5981 $as_echo "Enabling mmp support by default" >&6; }
5982 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
5983
5984 TDB_CMT=""
5985 TDB_MAN_COMMENT=""
5986
5987 fi
5988
5989
5990
5991
5992 # Check whether --enable-bmap-stats was given.
5993 if test "${enable_bmap_stats+set}" = set; then :
5994 enableval=$enable_bmap_stats; if test "$enableval" = "no"
5995 then
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
5997 $as_echo "Disabling bitmap statistics support" >&6; }
5998 else
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6000 $as_echo "Enabling bitmap statistics support" >&6; }
6001 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6002
6003 fi
6004
6005 else
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6007 $as_echo "Enabling bitmap statistics support by default" >&6; }
6008 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6009
6010
6011 fi
6012
6013
6014 # Check whether --enable-bmap-stats-ops was given.
6015 if test "${enable_bmap_stats_ops+set}" = set; then :
6016 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6017 then
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6019 $as_echo "Disabling additional bitmap statistics" >&6; }
6020 else
6021 if test "x${enable_bmap_stats}" = "xno"; then :
6022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6024 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6025 See \`config.log' for more details" "$LINENO" 5; }
6026 fi
6027
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6029 $as_echo "Enabling additional bitmap statistics" >&6; }
6030 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6031
6032 fi
6033
6034 else
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6036 $as_echo "Disabling additional bitmap statistics by default" >&6; }
6037
6038 fi
6039
6040 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6041
6042 GETTEXT_PACKAGE=e2fsprogs
6043 PACKAGE=e2fsprogs
6044 VERSION="$E2FSPROGS_VERSION"
6045 VERSION=0.14.1
6046
6047 cat >>confdefs.h <<_ACEOF
6048 #define PACKAGE "$PACKAGE"
6049 _ACEOF
6050
6051
6052 cat >>confdefs.h <<_ACEOF
6053 #define VERSION "$VERSION"
6054 _ACEOF
6055
6056
6057
6058
6059
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6061 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6062 set x ${MAKE-make}
6063 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6064 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6065 $as_echo_n "(cached) " >&6
6066 else
6067 cat >conftest.make <<\_ACEOF
6068 SHELL = /bin/sh
6069 all:
6070 @echo '@@@%%%=$(MAKE)=@@@%%%'
6071 _ACEOF
6072 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6073 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6074 *@@@%%%=?*=@@@%%%*)
6075 eval ac_cv_prog_make_${ac_make}_set=yes;;
6076 *)
6077 eval ac_cv_prog_make_${ac_make}_set=no;;
6078 esac
6079 rm -f conftest.make
6080 fi
6081 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6083 $as_echo "yes" >&6; }
6084 SET_MAKE=
6085 else
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6087 $as_echo "no" >&6; }
6088 SET_MAKE="MAKE=${MAKE-make}"
6089 fi
6090
6091 # Find a good install program. We prefer a C program (faster),
6092 # so one script is as good as another. But avoid the broken or
6093 # incompatible versions:
6094 # SysV /etc/install, /usr/sbin/install
6095 # SunOS /usr/etc/install
6096 # IRIX /sbin/install
6097 # AIX /bin/install
6098 # AmigaOS /C/install, which installs bootblocks on floppy discs
6099 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6100 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6101 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6102 # OS/2's system install, which has a completely different semantic
6103 # ./install, which can be erroneously created by make from ./install.sh.
6104 # Reject install programs that cannot install multiple files.
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6106 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6107 if test -z "$INSTALL"; then
6108 if ${ac_cv_path_install+:} false; then :
6109 $as_echo_n "(cached) " >&6
6110 else
6111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 for as_dir in $PATH
6113 do
6114 IFS=$as_save_IFS
6115 test -z "$as_dir" && as_dir=.
6116 # Account for people who put trailing slashes in PATH elements.
6117 case $as_dir/ in #((
6118 ./ | .// | /[cC]/* | \
6119 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6120 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6121 /usr/ucb/* ) ;;
6122 *)
6123 # OSF1 and SCO ODT 3.0 have their own names for install.
6124 # Don't use installbsd from OSF since it installs stuff as root
6125 # by default.
6126 for ac_prog in ginstall scoinst install; do
6127 for ac_exec_ext in '' $ac_executable_extensions; do
6128 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6129 if test $ac_prog = install &&
6130 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6131 # AIX install. It has an incompatible calling convention.
6132 :
6133 elif test $ac_prog = install &&
6134 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6135 # program-specific install script used by HP pwplus--don't use.
6136 :
6137 else
6138 rm -rf conftest.one conftest.two conftest.dir
6139 echo one > conftest.one
6140 echo two > conftest.two
6141 mkdir conftest.dir
6142 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6143 test -s conftest.one && test -s conftest.two &&
6144 test -s conftest.dir/conftest.one &&
6145 test -s conftest.dir/conftest.two
6146 then
6147 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6148 break 3
6149 fi
6150 fi
6151 fi
6152 done
6153 done
6154 ;;
6155 esac
6156
6157 done
6158 IFS=$as_save_IFS
6159
6160 rm -rf conftest.one conftest.two conftest.dir
6161
6162 fi
6163 if test "${ac_cv_path_install+set}" = set; then
6164 INSTALL=$ac_cv_path_install
6165 else
6166 # As a last resort, use the slow shell script. Don't cache a
6167 # value for INSTALL within a source directory, because that will
6168 # break other packages using the cache if that directory is
6169 # removed, or if the value is a relative name.
6170 INSTALL=$ac_install_sh
6171 fi
6172 fi
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6174 $as_echo "$INSTALL" >&6; }
6175
6176 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6177 # It thinks the first close brace ends the variable substitution.
6178 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6179
6180 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6181
6182 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6183
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6185 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6186 if test -z "$MKDIR_P"; then
6187 if ${ac_cv_path_mkdir+:} false; then :
6188 $as_echo_n "(cached) " >&6
6189 else
6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6192 do
6193 IFS=$as_save_IFS
6194 test -z "$as_dir" && as_dir=.
6195 for ac_prog in mkdir gmkdir; do
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6198 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6199 'mkdir (GNU coreutils) '* | \
6200 'mkdir (coreutils) '* | \
6201 'mkdir (fileutils) '4.1*)
6202 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6203 break 3;;
6204 esac
6205 done
6206 done
6207 done
6208 IFS=$as_save_IFS
6209
6210 fi
6211
6212 test -d ./--version && rmdir ./--version
6213 if test "${ac_cv_path_mkdir+set}" = set; then
6214 MKDIR_P="$ac_cv_path_mkdir -p"
6215 else
6216 # As a last resort, use the slow shell script. Don't cache a
6217 # value for MKDIR_P within a source directory, because that will
6218 # break other packages using the cache if that directory is
6219 # removed, or if the value is a relative name.
6220 MKDIR_P="$ac_install_sh -d"
6221 fi
6222 fi
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6224 $as_echo "$MKDIR_P" >&6; }
6225
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6227 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6228 if ${ac_cv_path_SED+:} false; then :
6229 $as_echo_n "(cached) " >&6
6230 else
6231 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6232 for ac_i in 1 2 3 4 5 6 7; do
6233 ac_script="$ac_script$as_nl$ac_script"
6234 done
6235 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6236 { ac_script=; unset ac_script;}
6237 if test -z "$SED"; then
6238 ac_path_SED_found=false
6239 # Loop through the user's path and test for each of PROGNAME-LIST
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 for as_dir in $PATH
6242 do
6243 IFS=$as_save_IFS
6244 test -z "$as_dir" && as_dir=.
6245 for ac_prog in sed gsed; do
6246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6248 as_fn_executable_p "$ac_path_SED" || continue
6249 # Check for GNU ac_path_SED and select it if it is found.
6250 # Check for GNU $ac_path_SED
6251 case `"$ac_path_SED" --version 2>&1` in
6252 *GNU*)
6253 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6254 *)
6255 ac_count=0
6256 $as_echo_n 0123456789 >"conftest.in"
6257 while :
6258 do
6259 cat "conftest.in" "conftest.in" >"conftest.tmp"
6260 mv "conftest.tmp" "conftest.in"
6261 cp "conftest.in" "conftest.nl"
6262 $as_echo '' >> "conftest.nl"
6263 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6264 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6265 as_fn_arith $ac_count + 1 && ac_count=$as_val
6266 if test $ac_count -gt ${ac_path_SED_max-0}; then
6267 # Best one so far, save it but keep looking for a better one
6268 ac_cv_path_SED="$ac_path_SED"
6269 ac_path_SED_max=$ac_count
6270 fi
6271 # 10*(2^10) chars as input seems more than enough
6272 test $ac_count -gt 10 && break
6273 done
6274 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6275 esac
6276
6277 $ac_path_SED_found && break 3
6278 done
6279 done
6280 done
6281 IFS=$as_save_IFS
6282 if test -z "$ac_cv_path_SED"; then
6283 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6284 fi
6285 else
6286 ac_cv_path_SED=$SED
6287 fi
6288
6289 fi
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6291 $as_echo "$ac_cv_path_SED" >&6; }
6292 SED="$ac_cv_path_SED"
6293 rm -f conftest.sed
6294
6295
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6297 $as_echo_n "checking whether NLS is requested... " >&6; }
6298 # Check whether --enable-nls was given.
6299 if test "${enable_nls+set}" = set; then :
6300 enableval=$enable_nls; USE_NLS=$enableval
6301 else
6302 USE_NLS=yes
6303 fi
6304
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6306 $as_echo "$USE_NLS" >&6; }
6307
6308
6309
6310
6311 GETTEXT_MACRO_VERSION=0.18
6312
6313
6314
6315
6316 # Prepare PATH_SEPARATOR.
6317 # The user is always right.
6318 if test "${PATH_SEPARATOR+set}" != set; then
6319 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6320 # contains only /bin. Note that ksh looks also at the FPATH variable,
6321 # so we have to set that as well for the test.
6322 PATH_SEPARATOR=:
6323 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6324 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6325 || PATH_SEPARATOR=';'
6326 }
6327 fi
6328
6329 # Find out how to test for executable files. Don't use a zero-byte file,
6330 # as systems may use methods other than mode bits to determine executability.
6331 cat >conf$$.file <<_ASEOF
6332 #! /bin/sh
6333 exit 0
6334 _ASEOF
6335 chmod +x conf$$.file
6336 if test -x conf$$.file >/dev/null 2>&1; then
6337 ac_executable_p="test -x"
6338 else
6339 ac_executable_p="test -f"
6340 fi
6341 rm -f conf$$.file
6342
6343 # Extract the first word of "msgfmt", so it can be a program name with args.
6344 set dummy msgfmt; ac_word=$2
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6346 $as_echo_n "checking for $ac_word... " >&6; }
6347 if ${ac_cv_path_MSGFMT+:} false; then :
6348 $as_echo_n "(cached) " >&6
6349 else
6350 case "$MSGFMT" in
6351 [\\/]* | ?:[\\/]*)
6352 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6353 ;;
6354 *)
6355 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6356 for ac_dir in $PATH; do
6357 IFS="$ac_save_IFS"
6358 test -z "$ac_dir" && ac_dir=.
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6361 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6362 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6363 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6364 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6365 break 2
6366 fi
6367 fi
6368 done
6369 done
6370 IFS="$ac_save_IFS"
6371 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6372 ;;
6373 esac
6374 fi
6375 MSGFMT="$ac_cv_path_MSGFMT"
6376 if test "$MSGFMT" != ":"; then
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6378 $as_echo "$MSGFMT" >&6; }
6379 else
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6381 $as_echo "no" >&6; }
6382 fi
6383
6384 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6385 set dummy gmsgfmt; ac_word=$2
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6387 $as_echo_n "checking for $ac_word... " >&6; }
6388 if ${ac_cv_path_GMSGFMT+:} false; then :
6389 $as_echo_n "(cached) " >&6
6390 else
6391 case $GMSGFMT in
6392 [\\/]* | ?:[\\/]*)
6393 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6394 ;;
6395 *)
6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397 for as_dir in $PATH
6398 do
6399 IFS=$as_save_IFS
6400 test -z "$as_dir" && as_dir=.
6401 for ac_exec_ext in '' $ac_executable_extensions; do
6402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6403 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6405 break 2
6406 fi
6407 done
6408 done
6409 IFS=$as_save_IFS
6410
6411 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6412 ;;
6413 esac
6414 fi
6415 GMSGFMT=$ac_cv_path_GMSGFMT
6416 if test -n "$GMSGFMT"; then
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6418 $as_echo "$GMSGFMT" >&6; }
6419 else
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421 $as_echo "no" >&6; }
6422 fi
6423
6424
6425
6426 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6427 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6428 *) MSGFMT_015=$MSGFMT ;;
6429 esac
6430
6431 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6432 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6433 *) GMSGFMT_015=$GMSGFMT ;;
6434 esac
6435
6436
6437
6438 # Prepare PATH_SEPARATOR.
6439 # The user is always right.
6440 if test "${PATH_SEPARATOR+set}" != set; then
6441 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6442 # contains only /bin. Note that ksh looks also at the FPATH variable,
6443 # so we have to set that as well for the test.
6444 PATH_SEPARATOR=:
6445 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6446 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6447 || PATH_SEPARATOR=';'
6448 }
6449 fi
6450
6451 # Find out how to test for executable files. Don't use a zero-byte file,
6452 # as systems may use methods other than mode bits to determine executability.
6453 cat >conf$$.file <<_ASEOF
6454 #! /bin/sh
6455 exit 0
6456 _ASEOF
6457 chmod +x conf$$.file
6458 if test -x conf$$.file >/dev/null 2>&1; then
6459 ac_executable_p="test -x"
6460 else
6461 ac_executable_p="test -f"
6462 fi
6463 rm -f conf$$.file
6464
6465 # Extract the first word of "xgettext", so it can be a program name with args.
6466 set dummy xgettext; ac_word=$2
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6468 $as_echo_n "checking for $ac_word... " >&6; }
6469 if ${ac_cv_path_XGETTEXT+:} false; then :
6470 $as_echo_n "(cached) " >&6
6471 else
6472 case "$XGETTEXT" in
6473 [\\/]* | ?:[\\/]*)
6474 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6475 ;;
6476 *)
6477 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6478 for ac_dir in $PATH; do
6479 IFS="$ac_save_IFS"
6480 test -z "$ac_dir" && ac_dir=.
6481 for ac_exec_ext in '' $ac_executable_extensions; do
6482 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6483 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6484 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6485 (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
6486 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6487 break 2
6488 fi
6489 fi
6490 done
6491 done
6492 IFS="$ac_save_IFS"
6493 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6494 ;;
6495 esac
6496 fi
6497 XGETTEXT="$ac_cv_path_XGETTEXT"
6498 if test "$XGETTEXT" != ":"; then
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6500 $as_echo "$XGETTEXT" >&6; }
6501 else
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503 $as_echo "no" >&6; }
6504 fi
6505
6506 rm -f messages.po
6507
6508 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6509 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6510 *) XGETTEXT_015=$XGETTEXT ;;
6511 esac
6512
6513
6514
6515 # Prepare PATH_SEPARATOR.
6516 # The user is always right.
6517 if test "${PATH_SEPARATOR+set}" != set; then
6518 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6519 # contains only /bin. Note that ksh looks also at the FPATH variable,
6520 # so we have to set that as well for the test.
6521 PATH_SEPARATOR=:
6522 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6523 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6524 || PATH_SEPARATOR=';'
6525 }
6526 fi
6527
6528 # Find out how to test for executable files. Don't use a zero-byte file,
6529 # as systems may use methods other than mode bits to determine executability.
6530 cat >conf$$.file <<_ASEOF
6531 #! /bin/sh
6532 exit 0
6533 _ASEOF
6534 chmod +x conf$$.file
6535 if test -x conf$$.file >/dev/null 2>&1; then
6536 ac_executable_p="test -x"
6537 else
6538 ac_executable_p="test -f"
6539 fi
6540 rm -f conf$$.file
6541
6542 # Extract the first word of "msgmerge", so it can be a program name with args.
6543 set dummy msgmerge; ac_word=$2
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6545 $as_echo_n "checking for $ac_word... " >&6; }
6546 if ${ac_cv_path_MSGMERGE+:} false; then :
6547 $as_echo_n "(cached) " >&6
6548 else
6549 case "$MSGMERGE" in
6550 [\\/]* | ?:[\\/]*)
6551 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6552 ;;
6553 *)
6554 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6555 for ac_dir in $PATH; do
6556 IFS="$ac_save_IFS"
6557 test -z "$ac_dir" && ac_dir=.
6558 for ac_exec_ext in '' $ac_executable_extensions; do
6559 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6560 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6561 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6562 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6563 break 2
6564 fi
6565 fi
6566 done
6567 done
6568 IFS="$ac_save_IFS"
6569 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6570 ;;
6571 esac
6572 fi
6573 MSGMERGE="$ac_cv_path_MSGMERGE"
6574 if test "$MSGMERGE" != ":"; then
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6576 $as_echo "$MSGMERGE" >&6; }
6577 else
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579 $as_echo "no" >&6; }
6580 fi
6581
6582
6583 test -n "$localedir" || localedir='${datadir}/locale'
6584
6585
6586 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6587
6588
6589 ac_config_commands="$ac_config_commands po-directories"
6590
6591
6592
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6594 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6595 if ${ac_cv_gnu_library_2+:} false; then :
6596 $as_echo_n "(cached) " >&6
6597 else
6598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6599 /* end confdefs.h. */
6600
6601 #include <features.h>
6602 #ifdef __GNU_LIBRARY__
6603 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6604 Lucky GNU user
6605 #endif
6606 #endif
6607
6608 _ACEOF
6609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6610 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6611 ac_cv_gnu_library_2=yes
6612 else
6613 ac_cv_gnu_library_2=no
6614 fi
6615 rm -f conftest*
6616
6617
6618
6619 fi
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6621 $as_echo "$ac_cv_gnu_library_2" >&6; }
6622
6623 GLIBC2="$ac_cv_gnu_library_2"
6624
6625
6626 if test -n "$ac_tool_prefix"; then
6627 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6628 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630 $as_echo_n "checking for $ac_word... " >&6; }
6631 if ${ac_cv_prog_RANLIB+:} false; then :
6632 $as_echo_n "(cached) " >&6
6633 else
6634 if test -n "$RANLIB"; then
6635 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6636 else
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 for as_dir in $PATH
6639 do
6640 IFS=$as_save_IFS
6641 test -z "$as_dir" && as_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6644 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6646 break 2
6647 fi
6648 done
6649 done
6650 IFS=$as_save_IFS
6651
6652 fi
6653 fi
6654 RANLIB=$ac_cv_prog_RANLIB
6655 if test -n "$RANLIB"; then
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6657 $as_echo "$RANLIB" >&6; }
6658 else
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660 $as_echo "no" >&6; }
6661 fi
6662
6663
6664 fi
6665 if test -z "$ac_cv_prog_RANLIB"; then
6666 ac_ct_RANLIB=$RANLIB
6667 # Extract the first word of "ranlib", so it can be a program name with args.
6668 set dummy ranlib; ac_word=$2
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670 $as_echo_n "checking for $ac_word... " >&6; }
6671 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6672 $as_echo_n "(cached) " >&6
6673 else
6674 if test -n "$ac_ct_RANLIB"; then
6675 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6676 else
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 for as_dir in $PATH
6679 do
6680 IFS=$as_save_IFS
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6684 ac_cv_prog_ac_ct_RANLIB="ranlib"
6685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 break 2
6687 fi
6688 done
6689 done
6690 IFS=$as_save_IFS
6691
6692 fi
6693 fi
6694 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6695 if test -n "$ac_ct_RANLIB"; then
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6697 $as_echo "$ac_ct_RANLIB" >&6; }
6698 else
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700 $as_echo "no" >&6; }
6701 fi
6702
6703 if test "x$ac_ct_RANLIB" = x; then
6704 RANLIB=":"
6705 else
6706 case $cross_compiling:$ac_tool_warned in
6707 yes:)
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6710 ac_tool_warned=yes ;;
6711 esac
6712 RANLIB=$ac_ct_RANLIB
6713 fi
6714 else
6715 RANLIB="$ac_cv_prog_RANLIB"
6716 fi
6717
6718
6719
6720 CFLAG_VISIBILITY=
6721 HAVE_VISIBILITY=0
6722 if test -n "$GCC"; then
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6724 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
6725 if ${gl_cv_cc_vis_werror+:} false; then :
6726 $as_echo_n "(cached) " >&6
6727 else
6728
6729 gl_save_CFLAGS="$CFLAGS"
6730 CFLAGS="$CFLAGS -Werror"
6731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6732 /* end confdefs.h. */
6733
6734 int
6735 main ()
6736 {
6737
6738 ;
6739 return 0;
6740 }
6741 _ACEOF
6742 if ac_fn_c_try_compile "$LINENO"; then :
6743 gl_cv_cc_vis_werror=yes
6744 else
6745 gl_cv_cc_vis_werror=no
6746 fi
6747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6748 CFLAGS="$gl_save_CFLAGS"
6749 fi
6750
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6752 $as_echo "$gl_cv_cc_vis_werror" >&6; }
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6754 $as_echo_n "checking for simple visibility declarations... " >&6; }
6755 if ${gl_cv_cc_visibility+:} false; then :
6756 $as_echo_n "(cached) " >&6
6757 else
6758
6759 gl_save_CFLAGS="$CFLAGS"
6760 CFLAGS="$CFLAGS -fvisibility=hidden"
6761 if test $gl_cv_cc_vis_werror = yes; then
6762 CFLAGS="$CFLAGS -Werror"
6763 fi
6764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6765 /* end confdefs.h. */
6766 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6767 extern __attribute__((__visibility__("default"))) int exportedvar;
6768 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6769 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6770 void dummyfunc (void) {}
6771
6772 int
6773 main ()
6774 {
6775
6776 ;
6777 return 0;
6778 }
6779 _ACEOF
6780 if ac_fn_c_try_compile "$LINENO"; then :
6781 gl_cv_cc_visibility=yes
6782 else
6783 gl_cv_cc_visibility=no
6784 fi
6785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6786 CFLAGS="$gl_save_CFLAGS"
6787 fi
6788
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6790 $as_echo "$gl_cv_cc_visibility" >&6; }
6791 if test $gl_cv_cc_visibility = yes; then
6792 CFLAG_VISIBILITY="-fvisibility=hidden"
6793 HAVE_VISIBILITY=1
6794 fi
6795 fi
6796
6797
6798
6799 cat >>confdefs.h <<_ACEOF
6800 #define HAVE_VISIBILITY $HAVE_VISIBILITY
6801 _ACEOF
6802
6803
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6805 $as_echo_n "checking for inline... " >&6; }
6806 if ${ac_cv_c_inline+:} false; then :
6807 $as_echo_n "(cached) " >&6
6808 else
6809 ac_cv_c_inline=no
6810 for ac_kw in inline __inline__ __inline; do
6811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812 /* end confdefs.h. */
6813 #ifndef __cplusplus
6814 typedef int foo_t;
6815 static $ac_kw foo_t static_foo () {return 0; }
6816 $ac_kw foo_t foo () {return 0; }
6817 #endif
6818
6819 _ACEOF
6820 if ac_fn_c_try_compile "$LINENO"; then :
6821 ac_cv_c_inline=$ac_kw
6822 fi
6823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6824 test "$ac_cv_c_inline" != no && break
6825 done
6826
6827 fi
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6829 $as_echo "$ac_cv_c_inline" >&6; }
6830
6831 case $ac_cv_c_inline in
6832 inline | yes) ;;
6833 *)
6834 case $ac_cv_c_inline in
6835 no) ac_val=;;
6836 *) ac_val=$ac_cv_c_inline;;
6837 esac
6838 cat >>confdefs.h <<_ACEOF
6839 #ifndef __cplusplus
6840 #define inline $ac_val
6841 #endif
6842 _ACEOF
6843 ;;
6844 esac
6845
6846 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6847 if test "x$ac_cv_type_size_t" = xyes; then :
6848
6849 else
6850
6851 cat >>confdefs.h <<_ACEOF
6852 #define size_t unsigned int
6853 _ACEOF
6854
6855 fi
6856
6857
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6859 $as_echo_n "checking for stdint.h... " >&6; }
6860 if ${gl_cv_header_stdint_h+:} false; then :
6861 $as_echo_n "(cached) " >&6
6862 else
6863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864 /* end confdefs.h. */
6865 #include <sys/types.h>
6866 #include <stdint.h>
6867 int
6868 main ()
6869 {
6870 uintmax_t i = (uintmax_t) -1; return !i;
6871 ;
6872 return 0;
6873 }
6874 _ACEOF
6875 if ac_fn_c_try_compile "$LINENO"; then :
6876 gl_cv_header_stdint_h=yes
6877 else
6878 gl_cv_header_stdint_h=no
6879 fi
6880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6881 fi
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6883 $as_echo "$gl_cv_header_stdint_h" >&6; }
6884 if test $gl_cv_header_stdint_h = yes; then
6885
6886 cat >>confdefs.h <<_ACEOF
6887 #define HAVE_STDINT_H_WITH_UINTMAX 1
6888 _ACEOF
6889
6890 fi
6891
6892 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6893 # for constant arguments. Useless!
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6895 $as_echo_n "checking for working alloca.h... " >&6; }
6896 if ${ac_cv_working_alloca_h+:} false; then :
6897 $as_echo_n "(cached) " >&6
6898 else
6899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6900 /* end confdefs.h. */
6901 #include <alloca.h>
6902 int
6903 main ()
6904 {
6905 char *p = (char *) alloca (2 * sizeof (int));
6906 if (p) return 0;
6907 ;
6908 return 0;
6909 }
6910 _ACEOF
6911 if ac_fn_c_try_link "$LINENO"; then :
6912 ac_cv_working_alloca_h=yes
6913 else
6914 ac_cv_working_alloca_h=no
6915 fi
6916 rm -f core conftest.err conftest.$ac_objext \
6917 conftest$ac_exeext conftest.$ac_ext
6918 fi
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6920 $as_echo "$ac_cv_working_alloca_h" >&6; }
6921 if test $ac_cv_working_alloca_h = yes; then
6922
6923 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6924
6925 fi
6926
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6928 $as_echo_n "checking for alloca... " >&6; }
6929 if ${ac_cv_func_alloca_works+:} false; then :
6930 $as_echo_n "(cached) " >&6
6931 else
6932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6933 /* end confdefs.h. */
6934 #ifdef __GNUC__
6935 # define alloca __builtin_alloca
6936 #else
6937 # ifdef _MSC_VER
6938 # include <malloc.h>
6939 # define alloca _alloca
6940 # else
6941 # ifdef HAVE_ALLOCA_H
6942 # include <alloca.h>
6943 # else
6944 # ifdef _AIX
6945 #pragma alloca
6946 # else
6947 # ifndef alloca /* predefined by HP cc +Olibcalls */
6948 void *alloca (size_t);
6949 # endif
6950 # endif
6951 # endif
6952 # endif
6953 #endif
6954
6955 int
6956 main ()
6957 {
6958 char *p = (char *) alloca (1);
6959 if (p) return 0;
6960 ;
6961 return 0;
6962 }
6963 _ACEOF
6964 if ac_fn_c_try_link "$LINENO"; then :
6965 ac_cv_func_alloca_works=yes
6966 else
6967 ac_cv_func_alloca_works=no
6968 fi
6969 rm -f core conftest.err conftest.$ac_objext \
6970 conftest$ac_exeext conftest.$ac_ext
6971 fi
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6973 $as_echo "$ac_cv_func_alloca_works" >&6; }
6974
6975 if test $ac_cv_func_alloca_works = yes; then
6976
6977 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6978
6979 else
6980 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6981 # that cause trouble. Some versions do not even contain alloca or
6982 # contain a buggy version. If you still want to use their alloca,
6983 # use ar to extract alloca.o from them instead of compiling alloca.c.
6984
6985 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6986
6987 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6988
6989
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6991 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6992 if ${ac_cv_os_cray+:} false; then :
6993 $as_echo_n "(cached) " >&6
6994 else
6995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996 /* end confdefs.h. */
6997 #if defined CRAY && ! defined CRAY2
6998 webecray
6999 #else
7000 wenotbecray
7001 #endif
7002
7003 _ACEOF
7004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7005 $EGREP "webecray" >/dev/null 2>&1; then :
7006 ac_cv_os_cray=yes
7007 else
7008 ac_cv_os_cray=no
7009 fi
7010 rm -f conftest*
7011
7012 fi
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7014 $as_echo "$ac_cv_os_cray" >&6; }
7015 if test $ac_cv_os_cray = yes; then
7016 for ac_func in _getb67 GETB67 getb67; do
7017 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7018 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7019 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7020
7021 cat >>confdefs.h <<_ACEOF
7022 #define CRAY_STACKSEG_END $ac_func
7023 _ACEOF
7024
7025 break
7026 fi
7027
7028 done
7029 fi
7030
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7032 $as_echo_n "checking stack direction for C alloca... " >&6; }
7033 if ${ac_cv_c_stack_direction+:} false; then :
7034 $as_echo_n "(cached) " >&6
7035 else
7036 if test "$cross_compiling" = yes; then :
7037 ac_cv_c_stack_direction=0
7038 else
7039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040 /* end confdefs.h. */
7041 $ac_includes_default
7042 int
7043 find_stack_direction (int *addr, int depth)
7044 {
7045 int dir, dummy = 0;
7046 if (! addr)
7047 addr = &dummy;
7048 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7049 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7050 return dir + dummy;
7051 }
7052
7053 int
7054 main (int argc, char **argv)
7055 {
7056 return find_stack_direction (0, argc + !argv + 20) < 0;
7057 }
7058 _ACEOF
7059 if ac_fn_c_try_run "$LINENO"; then :
7060 ac_cv_c_stack_direction=1
7061 else
7062 ac_cv_c_stack_direction=-1
7063 fi
7064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7065 conftest.$ac_objext conftest.beam conftest.$ac_ext
7066 fi
7067
7068 fi
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7070 $as_echo "$ac_cv_c_stack_direction" >&6; }
7071 cat >>confdefs.h <<_ACEOF
7072 #define STACK_DIRECTION $ac_cv_c_stack_direction
7073 _ACEOF
7074
7075
7076 fi
7077
7078
7079
7080
7081 for ac_header in $ac_header_list
7082 do :
7083 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7084 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7085 "
7086 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7087 cat >>confdefs.h <<_ACEOF
7088 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7089 _ACEOF
7090
7091 fi
7092
7093 done
7094
7095
7096
7097
7098
7099
7100
7101
7102 for ac_func in getpagesize
7103 do :
7104 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7105 if test "x$ac_cv_func_getpagesize" = xyes; then :
7106 cat >>confdefs.h <<_ACEOF
7107 #define HAVE_GETPAGESIZE 1
7108 _ACEOF
7109
7110 fi
7111 done
7112
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7114 $as_echo_n "checking for working mmap... " >&6; }
7115 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7116 $as_echo_n "(cached) " >&6
7117 else
7118 if test "$cross_compiling" = yes; then :
7119 ac_cv_func_mmap_fixed_mapped=no
7120 else
7121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122 /* end confdefs.h. */
7123 $ac_includes_default
7124 /* malloc might have been renamed as rpl_malloc. */
7125 #undef malloc
7126
7127 /* Thanks to Mike Haertel and Jim Avera for this test.
7128 Here is a matrix of mmap possibilities:
7129 mmap private not fixed
7130 mmap private fixed at somewhere currently unmapped
7131 mmap private fixed at somewhere already mapped
7132 mmap shared not fixed
7133 mmap shared fixed at somewhere currently unmapped
7134 mmap shared fixed at somewhere already mapped
7135 For private mappings, we should verify that changes cannot be read()
7136 back from the file, nor mmap's back from the file at a different
7137 address. (There have been systems where private was not correctly
7138 implemented like the infamous i386 svr4.0, and systems where the
7139 VM page cache was not coherent with the file system buffer cache
7140 like early versions of FreeBSD and possibly contemporary NetBSD.)
7141 For shared mappings, we should conversely verify that changes get
7142 propagated back to all the places they're supposed to be.
7143
7144 Grep wants private fixed already mapped.
7145 The main things grep needs to know about mmap are:
7146 * does it exist and is it safe to write into the mmap'd area
7147 * how to use it (BSD variants) */
7148
7149 #include <fcntl.h>
7150 #include <sys/mman.h>
7151
7152 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7153 char *malloc ();
7154 #endif
7155
7156 /* This mess was copied from the GNU getpagesize.h. */
7157 #ifndef HAVE_GETPAGESIZE
7158 # ifdef _SC_PAGESIZE
7159 # define getpagesize() sysconf(_SC_PAGESIZE)
7160 # else /* no _SC_PAGESIZE */
7161 # ifdef HAVE_SYS_PARAM_H
7162 # include <sys/param.h>
7163 # ifdef EXEC_PAGESIZE
7164 # define getpagesize() EXEC_PAGESIZE
7165 # else /* no EXEC_PAGESIZE */
7166 # ifdef NBPG
7167 # define getpagesize() NBPG * CLSIZE
7168 # ifndef CLSIZE
7169 # define CLSIZE 1
7170 # endif /* no CLSIZE */
7171 # else /* no NBPG */
7172 # ifdef NBPC
7173 # define getpagesize() NBPC
7174 # else /* no NBPC */
7175 # ifdef PAGESIZE
7176 # define getpagesize() PAGESIZE
7177 # endif /* PAGESIZE */
7178 # endif /* no NBPC */
7179 # endif /* no NBPG */
7180 # endif /* no EXEC_PAGESIZE */
7181 # else /* no HAVE_SYS_PARAM_H */
7182 # define getpagesize() 8192 /* punt totally */
7183 # endif /* no HAVE_SYS_PARAM_H */
7184 # endif /* no _SC_PAGESIZE */
7185
7186 #endif /* no HAVE_GETPAGESIZE */
7187
7188 int
7189 main ()
7190 {
7191 char *data, *data2, *data3;
7192 const char *cdata2;
7193 int i, pagesize;
7194 int fd, fd2;
7195
7196 pagesize = getpagesize ();
7197
7198 /* First, make a file with some known garbage in it. */
7199 data = (char *) malloc (pagesize);
7200 if (!data)
7201 return 1;
7202 for (i = 0; i < pagesize; ++i)
7203 *(data + i) = rand ();
7204 umask (0);
7205 fd = creat ("conftest.mmap", 0600);
7206 if (fd < 0)
7207 return 2;
7208 if (write (fd, data, pagesize) != pagesize)
7209 return 3;
7210 close (fd);
7211
7212 /* Next, check that the tail of a page is zero-filled. File must have
7213 non-zero length, otherwise we risk SIGBUS for entire page. */
7214 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7215 if (fd2 < 0)
7216 return 4;
7217 cdata2 = "";
7218 if (write (fd2, cdata2, 1) != 1)
7219 return 5;
7220 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7221 if (data2 == MAP_FAILED)
7222 return 6;
7223 for (i = 0; i < pagesize; ++i)
7224 if (*(data2 + i))
7225 return 7;
7226 close (fd2);
7227 if (munmap (data2, pagesize))
7228 return 8;
7229
7230 /* Next, try to mmap the file at a fixed address which already has
7231 something else allocated at it. If we can, also make sure that
7232 we see the same garbage. */
7233 fd = open ("conftest.mmap", O_RDWR);
7234 if (fd < 0)
7235 return 9;
7236 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7237 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7238 return 10;
7239 for (i = 0; i < pagesize; ++i)
7240 if (*(data + i) != *(data2 + i))
7241 return 11;
7242
7243 /* Finally, make sure that changes to the mapped area do not
7244 percolate back to the file as seen by read(). (This is a bug on
7245 some variants of i386 svr4.0.) */
7246 for (i = 0; i < pagesize; ++i)
7247 *(data2 + i) = *(data2 + i) + 1;
7248 data3 = (char *) malloc (pagesize);
7249 if (!data3)
7250 return 12;
7251 if (read (fd, data3, pagesize) != pagesize)
7252 return 13;
7253 for (i = 0; i < pagesize; ++i)
7254 if (*(data + i) != *(data3 + i))
7255 return 14;
7256 close (fd);
7257 free (data);
7258 free (data3);
7259 return 0;
7260 }
7261 _ACEOF
7262 if ac_fn_c_try_run "$LINENO"; then :
7263 ac_cv_func_mmap_fixed_mapped=yes
7264 else
7265 ac_cv_func_mmap_fixed_mapped=no
7266 fi
7267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7268 conftest.$ac_objext conftest.beam conftest.$ac_ext
7269 fi
7270
7271 fi
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7273 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7274 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7275
7276 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7277
7278 fi
7279 rm -f conftest.mmap conftest.txt
7280
7281
7282
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7284 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7285 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7286 $as_echo_n "(cached) " >&6
7287 else
7288
7289 gt_cv_int_divbyzero_sigfpe=
7290 case "$host_os" in
7291 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7292 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7293 # compiling. If we were to perform the real test, 1 Crash Report
7294 # dialog window would pop up.
7295 case "$host_cpu" in
7296 i[34567]86 | x86_64)
7297 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7298 esac
7299 ;;
7300 esac
7301 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7302 if test "$cross_compiling" = yes; then :
7303
7304 # Guess based on the CPU.
7305 case "$host_cpu" in
7306 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7307 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7308 *)
7309 gt_cv_int_divbyzero_sigfpe="guessing no";;
7310 esac
7311
7312 else
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7315
7316 #include <stdlib.h>
7317 #include <signal.h>
7318
7319 static void
7320 sigfpe_handler (int sig)
7321 {
7322 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7323 exit (sig != SIGFPE);
7324 }
7325
7326 int x = 1;
7327 int y = 0;
7328 int z;
7329 int nan;
7330
7331 int main ()
7332 {
7333 signal (SIGFPE, sigfpe_handler);
7334 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7335 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7336 signal (SIGTRAP, sigfpe_handler);
7337 #endif
7338 /* Linux/SPARC yields signal SIGILL. */
7339 #if defined (__sparc__) && defined (__linux__)
7340 signal (SIGILL, sigfpe_handler);
7341 #endif
7342
7343 z = x / y;
7344 nan = y / y;
7345 exit (2);
7346 }
7347
7348 _ACEOF
7349 if ac_fn_c_try_run "$LINENO"; then :
7350 gt_cv_int_divbyzero_sigfpe=yes
7351 else
7352 gt_cv_int_divbyzero_sigfpe=no
7353 fi
7354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7355 conftest.$ac_objext conftest.beam conftest.$ac_ext
7356 fi
7357
7358 fi
7359
7360 fi
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7362 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7363 case "$gt_cv_int_divbyzero_sigfpe" in
7364 *yes) value=1;;
7365 *) value=0;;
7366 esac
7367
7368 cat >>confdefs.h <<_ACEOF
7369 #define INTDIV0_RAISES_SIGFPE $value
7370 _ACEOF
7371
7372
7373
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7375 $as_echo_n "checking for inttypes.h... " >&6; }
7376 if ${gl_cv_header_inttypes_h+:} false; then :
7377 $as_echo_n "(cached) " >&6
7378 else
7379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7380 /* end confdefs.h. */
7381
7382 #include <sys/types.h>
7383 #include <inttypes.h>
7384
7385 int
7386 main ()
7387 {
7388 uintmax_t i = (uintmax_t) -1; return !i;
7389 ;
7390 return 0;
7391 }
7392 _ACEOF
7393 if ac_fn_c_try_compile "$LINENO"; then :
7394 gl_cv_header_inttypes_h=yes
7395 else
7396 gl_cv_header_inttypes_h=no
7397 fi
7398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7399 fi
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7401 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7402 if test $gl_cv_header_inttypes_h = yes; then
7403
7404 cat >>confdefs.h <<_ACEOF
7405 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7406 _ACEOF
7407
7408 fi
7409
7410
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7412 $as_echo_n "checking for unsigned long long int... " >&6; }
7413 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7414 $as_echo_n "(cached) " >&6
7415 else
7416 ac_cv_type_unsigned_long_long_int=yes
7417 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7419 /* end confdefs.h. */
7420
7421 /* For now, do not test the preprocessor; as of 2007 there are too many
7422 implementations with broken preprocessors. Perhaps this can
7423 be revisited in 2012. In the meantime, code should not expect
7424 #if to work with literals wider than 32 bits. */
7425 /* Test literals. */
7426 long long int ll = 9223372036854775807ll;
7427 long long int nll = -9223372036854775807LL;
7428 unsigned long long int ull = 18446744073709551615ULL;
7429 /* Test constant expressions. */
7430 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7431 ? 1 : -1)];
7432 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7433 ? 1 : -1)];
7434 int i = 63;
7435 int
7436 main ()
7437 {
7438 /* Test availability of runtime routines for shift and division. */
7439 long long int llmax = 9223372036854775807ll;
7440 unsigned long long int ullmax = 18446744073709551615ull;
7441 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7442 | (llmax / ll) | (llmax % ll)
7443 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7444 | (ullmax / ull) | (ullmax % ull));
7445 ;
7446 return 0;
7447 }
7448
7449 _ACEOF
7450 if ac_fn_c_try_link "$LINENO"; then :
7451
7452 else
7453 ac_cv_type_unsigned_long_long_int=no
7454 fi
7455 rm -f core conftest.err conftest.$ac_objext \
7456 conftest$ac_exeext conftest.$ac_ext
7457 fi
7458 fi
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7460 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7461 if test $ac_cv_type_unsigned_long_long_int = yes; then
7462
7463 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7464
7465 fi
7466
7467
7468
7469
7470 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7471
7472 test $ac_cv_type_unsigned_long_long_int = yes \
7473 && ac_type='unsigned long long' \
7474 || ac_type='unsigned long'
7475
7476 cat >>confdefs.h <<_ACEOF
7477 #define uintmax_t $ac_type
7478 _ACEOF
7479
7480 else
7481
7482 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7483
7484 fi
7485
7486
7487 for ac_header in inttypes.h
7488 do :
7489 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7490 if test "x$ac_cv_header_inttypes_h" = xyes; then :
7491 cat >>confdefs.h <<_ACEOF
7492 #define HAVE_INTTYPES_H 1
7493 _ACEOF
7494
7495 fi
7496
7497 done
7498
7499 if test $ac_cv_header_inttypes_h = yes; then
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7501 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7502 if ${gt_cv_inttypes_pri_broken+:} false; then :
7503 $as_echo_n "(cached) " >&6
7504 else
7505
7506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507 /* end confdefs.h. */
7508
7509 #include <inttypes.h>
7510 #ifdef PRId32
7511 char *p = PRId32;
7512 #endif
7513
7514 int
7515 main ()
7516 {
7517
7518 ;
7519 return 0;
7520 }
7521 _ACEOF
7522 if ac_fn_c_try_compile "$LINENO"; then :
7523 gt_cv_inttypes_pri_broken=no
7524 else
7525 gt_cv_inttypes_pri_broken=yes
7526 fi
7527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7528
7529 fi
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7531 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7532 fi
7533 if test "$gt_cv_inttypes_pri_broken" = yes; then
7534
7535 cat >>confdefs.h <<_ACEOF
7536 #define PRI_MACROS_BROKEN 1
7537 _ACEOF
7538
7539 PRI_MACROS_BROKEN=1
7540 else
7541 PRI_MACROS_BROKEN=0
7542 fi
7543
7544
7545
7546
7547
7548
7549
7550 # Check whether --enable-threads was given.
7551 if test "${enable_threads+set}" = set; then :
7552 enableval=$enable_threads; gl_use_threads=$enableval
7553 else
7554 if test -n "$gl_use_threads_default"; then
7555 gl_use_threads="$gl_use_threads_default"
7556 else
7557 case "$host_os" in
7558 osf*) gl_use_threads=no ;;
7559 cygwin*)
7560 case `uname -r` in
7561 1.[0-5].*) gl_use_threads=no ;;
7562 *) gl_use_threads=yes ;;
7563 esac
7564 ;;
7565 *) gl_use_threads=yes ;;
7566 esac
7567 fi
7568
7569 fi
7570
7571 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7572 # For using <pthread.h>:
7573 case "$host_os" in
7574 osf*)
7575 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7576 # groks <pthread.h>. cc also understands the flag -pthread, but
7577 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7578 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7579 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7580 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7581 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7582 ;;
7583 esac
7584 # Some systems optimize for single-threaded programs by default, and
7585 # need special flags to disable these optimizations. For example, the
7586 # definition of 'errno' in <errno.h>.
7587 case "$host_os" in
7588 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7589 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7590 esac
7591 fi
7592
7593
7594
7595
7596
7597 if test "X$prefix" = "XNONE"; then
7598 acl_final_prefix="$ac_default_prefix"
7599 else
7600 acl_final_prefix="$prefix"
7601 fi
7602 if test "X$exec_prefix" = "XNONE"; then
7603 acl_final_exec_prefix='${prefix}'
7604 else
7605 acl_final_exec_prefix="$exec_prefix"
7606 fi
7607 acl_save_prefix="$prefix"
7608 prefix="$acl_final_prefix"
7609 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7610 prefix="$acl_save_prefix"
7611
7612
7613
7614 # Check whether --with-gnu-ld was given.
7615 if test "${with_gnu_ld+set}" = set; then :
7616 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7617 else
7618 with_gnu_ld=no
7619 fi
7620
7621 # Prepare PATH_SEPARATOR.
7622 # The user is always right.
7623 if test "${PATH_SEPARATOR+set}" != set; then
7624 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7625 # contains only /bin. Note that ksh looks also at the FPATH variable,
7626 # so we have to set that as well for the test.
7627 PATH_SEPARATOR=:
7628 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7629 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7630 || PATH_SEPARATOR=';'
7631 }
7632 fi
7633
7634 ac_prog=ld
7635 if test "$GCC" = yes; then
7636 # Check if gcc -print-prog-name=ld gives a path.
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7638 $as_echo_n "checking for ld used by $CC... " >&6; }
7639 case $host in
7640 *-*-mingw*)
7641 # gcc leaves a trailing carriage return which upsets mingw
7642 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7643 *)
7644 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7645 esac
7646 case $ac_prog in
7647 # Accept absolute paths.
7648 [\\/]* | ?:[\\/]*)
7649 re_direlt='/[^/][^/]*/\.\./'
7650 # Canonicalize the pathname of ld
7651 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7652 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7653 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7654 done
7655 test -z "$LD" && LD="$ac_prog"
7656 ;;
7657 "")
7658 # If it fails, then pretend we aren't using GCC.
7659 ac_prog=ld
7660 ;;
7661 *)
7662 # If it is relative, then search for the first ld in PATH.
7663 with_gnu_ld=unknown
7664 ;;
7665 esac
7666 elif test "$with_gnu_ld" = yes; then
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7668 $as_echo_n "checking for GNU ld... " >&6; }
7669 else
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7671 $as_echo_n "checking for non-GNU ld... " >&6; }
7672 fi
7673 if ${acl_cv_path_LD+:} false; then :
7674 $as_echo_n "(cached) " >&6
7675 else
7676 if test -z "$LD"; then
7677 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7678 for ac_dir in $PATH; do
7679 IFS="$acl_save_ifs"
7680 test -z "$ac_dir" && ac_dir=.
7681 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7682 acl_cv_path_LD="$ac_dir/$ac_prog"
7683 # Check to see if the program is GNU ld. I'd rather use --version,
7684 # but apparently some variants of GNU ld only accept -v.
7685 # Break only if it was the GNU/non-GNU ld that we prefer.
7686 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7687 *GNU* | *'with BFD'*)
7688 test "$with_gnu_ld" != no && break
7689 ;;
7690 *)
7691 test "$with_gnu_ld" != yes && break
7692 ;;
7693 esac
7694 fi
7695 done
7696 IFS="$acl_save_ifs"
7697 else
7698 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7699 fi
7700 fi
7701
7702 LD="$acl_cv_path_LD"
7703 if test -n "$LD"; then
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7705 $as_echo "$LD" >&6; }
7706 else
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708 $as_echo "no" >&6; }
7709 fi
7710 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7712 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7713 if ${acl_cv_prog_gnu_ld+:} false; then :
7714 $as_echo_n "(cached) " >&6
7715 else
7716 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7717 case `$LD -v 2>&1 </dev/null` in
7718 *GNU* | *'with BFD'*)
7719 acl_cv_prog_gnu_ld=yes
7720 ;;
7721 *)
7722 acl_cv_prog_gnu_ld=no
7723 ;;
7724 esac
7725 fi
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7727 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7728 with_gnu_ld=$acl_cv_prog_gnu_ld
7729
7730
7731
7732
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7734 $as_echo_n "checking for shared library run path origin... " >&6; }
7735 if ${acl_cv_rpath+:} false; then :
7736 $as_echo_n "(cached) " >&6
7737 else
7738
7739 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7740 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7741 . ./conftest.sh
7742 rm -f ./conftest.sh
7743 acl_cv_rpath=done
7744
7745 fi
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7747 $as_echo "$acl_cv_rpath" >&6; }
7748 wl="$acl_cv_wl"
7749 acl_libext="$acl_cv_libext"
7750 acl_shlibext="$acl_cv_shlibext"
7751 acl_libname_spec="$acl_cv_libname_spec"
7752 acl_library_names_spec="$acl_cv_library_names_spec"
7753 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7754 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7755 acl_hardcode_direct="$acl_cv_hardcode_direct"
7756 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7757 # Check whether --enable-rpath was given.
7758 if test "${enable_rpath+set}" = set; then :
7759 enableval=$enable_rpath; :
7760 else
7761 enable_rpath=yes
7762 fi
7763
7764
7765
7766
7767 acl_libdirstem=lib
7768 acl_libdirstem2=
7769 case "$host_os" in
7770 solaris*)
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7772 $as_echo_n "checking for 64-bit host... " >&6; }
7773 if ${gl_cv_solaris_64bit+:} false; then :
7774 $as_echo_n "(cached) " >&6
7775 else
7776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h. */
7778
7779 #ifdef _LP64
7780 sixtyfour bits
7781 #endif
7782
7783 _ACEOF
7784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7785 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7786 gl_cv_solaris_64bit=yes
7787 else
7788 gl_cv_solaris_64bit=no
7789 fi
7790 rm -f conftest*
7791
7792
7793 fi
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7795 $as_echo "$gl_cv_solaris_64bit" >&6; }
7796 if test $gl_cv_solaris_64bit = yes; then
7797 acl_libdirstem=lib/64
7798 case "$host_cpu" in
7799 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7800 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7801 esac
7802 fi
7803 ;;
7804 *)
7805 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7806 if test -n "$searchpath"; then
7807 acl_save_IFS="${IFS= }"; IFS=":"
7808 for searchdir in $searchpath; do
7809 if test -d "$searchdir"; then
7810 case "$searchdir" in
7811 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7812 */../ | */.. )
7813 # Better ignore directories of this form. They are misleading.
7814 ;;
7815 *) searchdir=`cd "$searchdir" && pwd`
7816 case "$searchdir" in
7817 */lib64 ) acl_libdirstem=lib64 ;;
7818 esac ;;
7819 esac
7820 fi
7821 done
7822 IFS="$acl_save_IFS"
7823 fi
7824 ;;
7825 esac
7826 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7827
7828
7829
7830 gl_threads_api=none
7831 LIBTHREAD=
7832 LTLIBTHREAD=
7833 LIBMULTITHREAD=
7834 LTLIBMULTITHREAD=
7835 if test "$gl_use_threads" != no; then
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7837 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7838 if ${gl_cv_have_weak+:} false; then :
7839 $as_echo_n "(cached) " >&6
7840 else
7841 gl_cv_have_weak=no
7842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843 /* end confdefs.h. */
7844 extern void xyzzy ();
7845 #pragma weak xyzzy
7846 int
7847 main ()
7848 {
7849 xyzzy();
7850 ;
7851 return 0;
7852 }
7853 _ACEOF
7854 if ac_fn_c_try_link "$LINENO"; then :
7855 gl_cv_have_weak=maybe
7856 fi
7857 rm -f core conftest.err conftest.$ac_objext \
7858 conftest$ac_exeext conftest.$ac_ext
7859 if test $gl_cv_have_weak = maybe; then
7860 if test "$cross_compiling" = yes; then :
7861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7862 /* end confdefs.h. */
7863 #ifdef __ELF__
7864 Extensible Linking Format
7865 #endif
7866
7867 _ACEOF
7868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7869 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7870 gl_cv_have_weak="guessing yes"
7871 else
7872 gl_cv_have_weak="guessing no"
7873 fi
7874 rm -f conftest*
7875
7876
7877 else
7878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7879 /* end confdefs.h. */
7880
7881 #include <stdio.h>
7882 #pragma weak fputs
7883 int main ()
7884 {
7885 return (fputs == NULL);
7886 }
7887 _ACEOF
7888 if ac_fn_c_try_run "$LINENO"; then :
7889 gl_cv_have_weak=yes
7890 else
7891 gl_cv_have_weak=no
7892 fi
7893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7894 conftest.$ac_objext conftest.beam conftest.$ac_ext
7895 fi
7896
7897 fi
7898
7899 fi
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7901 $as_echo "$gl_cv_have_weak" >&6; }
7902 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7903 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7904 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7905 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7906 if test "x$ac_cv_header_pthread_h" = xyes; then :
7907 gl_have_pthread_h=yes
7908 else
7909 gl_have_pthread_h=no
7910 fi
7911
7912
7913 if test "$gl_have_pthread_h" = yes; then
7914 # Other possible tests:
7915 # -lpthreads (FSU threads, PCthreads)
7916 # -lgthreads
7917 gl_have_pthread=
7918 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7919 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7920 # the second one only in libpthread, and lock.c needs it.
7921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7922 /* end confdefs.h. */
7923 #include <pthread.h>
7924 int
7925 main ()
7926 {
7927 pthread_mutex_lock((pthread_mutex_t*)0);
7928 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7929 ;
7930 return 0;
7931 }
7932 _ACEOF
7933 if ac_fn_c_try_link "$LINENO"; then :
7934 gl_have_pthread=yes
7935 fi
7936 rm -f core conftest.err conftest.$ac_objext \
7937 conftest$ac_exeext conftest.$ac_ext
7938 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7939 # since it is defined as a macro on OSF/1.)
7940 if test -n "$gl_have_pthread"; then
7941 # The program links fine without libpthread. But it may actually
7942 # need to link with libpthread in order to create multiple threads.
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7944 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7945 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7946 $as_echo_n "(cached) " >&6
7947 else
7948 ac_check_lib_save_LIBS=$LIBS
7949 LIBS="-lpthread $LIBS"
7950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7951 /* end confdefs.h. */
7952
7953 /* Override any GCC internal prototype to avoid an error.
7954 Use char because int might match the return type of a GCC
7955 builtin and then its argument prototype would still apply. */
7956 #ifdef __cplusplus
7957 extern "C"
7958 #endif
7959 char pthread_kill ();
7960 int
7961 main ()
7962 {
7963 return pthread_kill ();
7964 ;
7965 return 0;
7966 }
7967 _ACEOF
7968 if ac_fn_c_try_link "$LINENO"; then :
7969 ac_cv_lib_pthread_pthread_kill=yes
7970 else
7971 ac_cv_lib_pthread_pthread_kill=no
7972 fi
7973 rm -f core conftest.err conftest.$ac_objext \
7974 conftest$ac_exeext conftest.$ac_ext
7975 LIBS=$ac_check_lib_save_LIBS
7976 fi
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7978 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7979 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7980 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7981 # On Solaris and HP-UX, most pthread functions exist also in libc.
7982 # Therefore pthread_in_use() needs to actually try to create a
7983 # thread: pthread_create from libc will fail, whereas
7984 # pthread_create will actually create a thread.
7985 case "$host_os" in
7986 solaris* | hpux*)
7987
7988 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
7989
7990 esac
7991
7992 fi
7993
7994 else
7995 # Some library is needed. Try libpthread and libc_r.
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7997 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7998 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7999 $as_echo_n "(cached) " >&6
8000 else
8001 ac_check_lib_save_LIBS=$LIBS
8002 LIBS="-lpthread $LIBS"
8003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8004 /* end confdefs.h. */
8005
8006 /* Override any GCC internal prototype to avoid an error.
8007 Use char because int might match the return type of a GCC
8008 builtin and then its argument prototype would still apply. */
8009 #ifdef __cplusplus
8010 extern "C"
8011 #endif
8012 char pthread_kill ();
8013 int
8014 main ()
8015 {
8016 return pthread_kill ();
8017 ;
8018 return 0;
8019 }
8020 _ACEOF
8021 if ac_fn_c_try_link "$LINENO"; then :
8022 ac_cv_lib_pthread_pthread_kill=yes
8023 else
8024 ac_cv_lib_pthread_pthread_kill=no
8025 fi
8026 rm -f core conftest.err conftest.$ac_objext \
8027 conftest$ac_exeext conftest.$ac_ext
8028 LIBS=$ac_check_lib_save_LIBS
8029 fi
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8031 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8032 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8033 gl_have_pthread=yes
8034 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8035 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8036 fi
8037
8038 if test -z "$gl_have_pthread"; then
8039 # For FreeBSD 4.
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8041 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8042 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8043 $as_echo_n "(cached) " >&6
8044 else
8045 ac_check_lib_save_LIBS=$LIBS
8046 LIBS="-lc_r $LIBS"
8047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8048 /* end confdefs.h. */
8049
8050 /* Override any GCC internal prototype to avoid an error.
8051 Use char because int might match the return type of a GCC
8052 builtin and then its argument prototype would still apply. */
8053 #ifdef __cplusplus
8054 extern "C"
8055 #endif
8056 char pthread_kill ();
8057 int
8058 main ()
8059 {
8060 return pthread_kill ();
8061 ;
8062 return 0;
8063 }
8064 _ACEOF
8065 if ac_fn_c_try_link "$LINENO"; then :
8066 ac_cv_lib_c_r_pthread_kill=yes
8067 else
8068 ac_cv_lib_c_r_pthread_kill=no
8069 fi
8070 rm -f core conftest.err conftest.$ac_objext \
8071 conftest$ac_exeext conftest.$ac_ext
8072 LIBS=$ac_check_lib_save_LIBS
8073 fi
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8075 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8076 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8077 gl_have_pthread=yes
8078 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8079 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8080 fi
8081
8082 fi
8083 fi
8084 if test -n "$gl_have_pthread"; then
8085 gl_threads_api=posix
8086
8087 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8088
8089 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8090 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8091
8092 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8093
8094 LIBTHREAD=
8095 LTLIBTHREAD=
8096 fi
8097 fi
8098 fi
8099 fi
8100 fi
8101 if test -z "$gl_have_pthread"; then
8102 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8103 gl_have_solaristhread=
8104 gl_save_LIBS="$LIBS"
8105 LIBS="$LIBS -lthread"
8106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8107 /* end confdefs.h. */
8108
8109 #include <thread.h>
8110 #include <synch.h>
8111
8112 int
8113 main ()
8114 {
8115 thr_self();
8116 ;
8117 return 0;
8118 }
8119 _ACEOF
8120 if ac_fn_c_try_link "$LINENO"; then :
8121 gl_have_solaristhread=yes
8122 fi
8123 rm -f core conftest.err conftest.$ac_objext \
8124 conftest$ac_exeext conftest.$ac_ext
8125 LIBS="$gl_save_LIBS"
8126 if test -n "$gl_have_solaristhread"; then
8127 gl_threads_api=solaris
8128 LIBTHREAD=-lthread
8129 LTLIBTHREAD=-lthread
8130 LIBMULTITHREAD="$LIBTHREAD"
8131 LTLIBMULTITHREAD="$LTLIBTHREAD"
8132
8133 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8134
8135 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8136
8137 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8138
8139 LIBTHREAD=
8140 LTLIBTHREAD=
8141 fi
8142 fi
8143 fi
8144 fi
8145 if test "$gl_use_threads" = pth; then
8146 gl_save_CPPFLAGS="$CPPFLAGS"
8147
8148
8149
8150
8151
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8153 $as_echo_n "checking how to link with libpth... " >&6; }
8154 if ${ac_cv_libpth_libs+:} false; then :
8155 $as_echo_n "(cached) " >&6
8156 else
8157
8158
8159
8160
8161
8162
8163
8164
8165 use_additional=yes
8166
8167 acl_save_prefix="$prefix"
8168 prefix="$acl_final_prefix"
8169 acl_save_exec_prefix="$exec_prefix"
8170 exec_prefix="$acl_final_exec_prefix"
8171
8172 eval additional_includedir=\"$includedir\"
8173 eval additional_libdir=\"$libdir\"
8174
8175 exec_prefix="$acl_save_exec_prefix"
8176 prefix="$acl_save_prefix"
8177
8178
8179 # Check whether --with-libpth-prefix was given.
8180 if test "${with_libpth_prefix+set}" = set; then :
8181 withval=$with_libpth_prefix;
8182 if test "X$withval" = "Xno"; then
8183 use_additional=no
8184 else
8185 if test "X$withval" = "X"; then
8186
8187 acl_save_prefix="$prefix"
8188 prefix="$acl_final_prefix"
8189 acl_save_exec_prefix="$exec_prefix"
8190 exec_prefix="$acl_final_exec_prefix"
8191
8192 eval additional_includedir=\"$includedir\"
8193 eval additional_libdir=\"$libdir\"
8194
8195 exec_prefix="$acl_save_exec_prefix"
8196 prefix="$acl_save_prefix"
8197
8198 else
8199 additional_includedir="$withval/include"
8200 additional_libdir="$withval/$acl_libdirstem"
8201 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8202 && ! test -d "$withval/$acl_libdirstem"; then
8203 additional_libdir="$withval/$acl_libdirstem2"
8204 fi
8205 fi
8206 fi
8207
8208 fi
8209
8210 LIBPTH=
8211 LTLIBPTH=
8212 INCPTH=
8213 LIBPTH_PREFIX=
8214 HAVE_LIBPTH=
8215 rpathdirs=
8216 ltrpathdirs=
8217 names_already_handled=
8218 names_next_round='pth '
8219 while test -n "$names_next_round"; do
8220 names_this_round="$names_next_round"
8221 names_next_round=
8222 for name in $names_this_round; do
8223 already_handled=
8224 for n in $names_already_handled; do
8225 if test "$n" = "$name"; then
8226 already_handled=yes
8227 break
8228 fi
8229 done
8230 if test -z "$already_handled"; then
8231 names_already_handled="$names_already_handled $name"
8232 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8233 eval value=\"\$HAVE_LIB$uppername\"
8234 if test -n "$value"; then
8235 if test "$value" = yes; then
8236 eval value=\"\$LIB$uppername\"
8237 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8238 eval value=\"\$LTLIB$uppername\"
8239 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8240 else
8241 :
8242 fi
8243 else
8244 found_dir=
8245 found_la=
8246 found_so=
8247 found_a=
8248 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8249 if test -n "$acl_shlibext"; then
8250 shrext=".$acl_shlibext" # typically: shrext=.so
8251 else
8252 shrext=
8253 fi
8254 if test $use_additional = yes; then
8255 dir="$additional_libdir"
8256 if test -n "$acl_shlibext"; then
8257 if test -f "$dir/$libname$shrext"; then
8258 found_dir="$dir"
8259 found_so="$dir/$libname$shrext"
8260 else
8261 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8262 ver=`(cd "$dir" && \
8263 for f in "$libname$shrext".*; do echo "$f"; done \
8264 | sed -e "s,^$libname$shrext\\\\.,," \
8265 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8266 | sed 1q ) 2>/dev/null`
8267 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8268 found_dir="$dir"
8269 found_so="$dir/$libname$shrext.$ver"
8270 fi
8271 else
8272 eval library_names=\"$acl_library_names_spec\"
8273 for f in $library_names; do
8274 if test -f "$dir/$f"; then
8275 found_dir="$dir"
8276 found_so="$dir/$f"
8277 break
8278 fi
8279 done
8280 fi
8281 fi
8282 fi
8283 if test "X$found_dir" = "X"; then
8284 if test -f "$dir/$libname.$acl_libext"; then
8285 found_dir="$dir"
8286 found_a="$dir/$libname.$acl_libext"
8287 fi
8288 fi
8289 if test "X$found_dir" != "X"; then
8290 if test -f "$dir/$libname.la"; then
8291 found_la="$dir/$libname.la"
8292 fi
8293 fi
8294 fi
8295 if test "X$found_dir" = "X"; then
8296 for x in $LDFLAGS $LTLIBPTH; do
8297
8298 acl_save_prefix="$prefix"
8299 prefix="$acl_final_prefix"
8300 acl_save_exec_prefix="$exec_prefix"
8301 exec_prefix="$acl_final_exec_prefix"
8302 eval x=\"$x\"
8303 exec_prefix="$acl_save_exec_prefix"
8304 prefix="$acl_save_prefix"
8305
8306 case "$x" in
8307 -L*)
8308 dir=`echo "X$x" | sed -e 's/^X-L//'`
8309 if test -n "$acl_shlibext"; then
8310 if test -f "$dir/$libname$shrext"; then
8311 found_dir="$dir"
8312 found_so="$dir/$libname$shrext"
8313 else
8314 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8315 ver=`(cd "$dir" && \
8316 for f in "$libname$shrext".*; do echo "$f"; done \
8317 | sed -e "s,^$libname$shrext\\\\.,," \
8318 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8319 | sed 1q ) 2>/dev/null`
8320 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8321 found_dir="$dir"
8322 found_so="$dir/$libname$shrext.$ver"
8323 fi
8324 else
8325 eval library_names=\"$acl_library_names_spec\"
8326 for f in $library_names; do
8327 if test -f "$dir/$f"; then
8328 found_dir="$dir"
8329 found_so="$dir/$f"
8330 break
8331 fi
8332 done
8333 fi
8334 fi
8335 fi
8336 if test "X$found_dir" = "X"; then
8337 if test -f "$dir/$libname.$acl_libext"; then
8338 found_dir="$dir"
8339 found_a="$dir/$libname.$acl_libext"
8340 fi
8341 fi
8342 if test "X$found_dir" != "X"; then
8343 if test -f "$dir/$libname.la"; then
8344 found_la="$dir/$libname.la"
8345 fi
8346 fi
8347 ;;
8348 esac
8349 if test "X$found_dir" != "X"; then
8350 break
8351 fi
8352 done
8353 fi
8354 if test "X$found_dir" != "X"; then
8355 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8356 if test "X$found_so" != "X"; then
8357 if test "$enable_rpath" = no \
8358 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8359 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8360 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8361 else
8362 haveit=
8363 for x in $ltrpathdirs; do
8364 if test "X$x" = "X$found_dir"; then
8365 haveit=yes
8366 break
8367 fi
8368 done
8369 if test -z "$haveit"; then
8370 ltrpathdirs="$ltrpathdirs $found_dir"
8371 fi
8372 if test "$acl_hardcode_direct" = yes; then
8373 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8374 else
8375 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8376 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8377 haveit=
8378 for x in $rpathdirs; do
8379 if test "X$x" = "X$found_dir"; then
8380 haveit=yes
8381 break
8382 fi
8383 done
8384 if test -z "$haveit"; then
8385 rpathdirs="$rpathdirs $found_dir"
8386 fi
8387 else
8388 haveit=
8389 for x in $LDFLAGS $LIBPTH; do
8390
8391 acl_save_prefix="$prefix"
8392 prefix="$acl_final_prefix"
8393 acl_save_exec_prefix="$exec_prefix"
8394 exec_prefix="$acl_final_exec_prefix"
8395 eval x=\"$x\"
8396 exec_prefix="$acl_save_exec_prefix"
8397 prefix="$acl_save_prefix"
8398
8399 if test "X$x" = "X-L$found_dir"; then
8400 haveit=yes
8401 break
8402 fi
8403 done
8404 if test -z "$haveit"; then
8405 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8406 fi
8407 if test "$acl_hardcode_minus_L" != no; then
8408 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8409 else
8410 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8411 fi
8412 fi
8413 fi
8414 fi
8415 else
8416 if test "X$found_a" != "X"; then
8417 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8418 else
8419 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8420 fi
8421 fi
8422 additional_includedir=
8423 case "$found_dir" in
8424 */$acl_libdirstem | */$acl_libdirstem/)
8425 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8426 if test "$name" = 'pth'; then
8427 LIBPTH_PREFIX="$basedir"
8428 fi
8429 additional_includedir="$basedir/include"
8430 ;;
8431 */$acl_libdirstem2 | */$acl_libdirstem2/)
8432 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8433 if test "$name" = 'pth'; then
8434 LIBPTH_PREFIX="$basedir"
8435 fi
8436 additional_includedir="$basedir/include"
8437 ;;
8438 esac
8439 if test "X$additional_includedir" != "X"; then
8440 if test "X$additional_includedir" != "X/usr/include"; then
8441 haveit=
8442 if test "X$additional_includedir" = "X/usr/local/include"; then
8443 if test -n "$GCC"; then
8444 case $host_os in
8445 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8446 esac
8447 fi
8448 fi
8449 if test -z "$haveit"; then
8450 for x in $CPPFLAGS $INCPTH; do
8451
8452 acl_save_prefix="$prefix"
8453 prefix="$acl_final_prefix"
8454 acl_save_exec_prefix="$exec_prefix"
8455 exec_prefix="$acl_final_exec_prefix"
8456 eval x=\"$x\"
8457 exec_prefix="$acl_save_exec_prefix"
8458 prefix="$acl_save_prefix"
8459
8460 if test "X$x" = "X-I$additional_includedir"; then
8461 haveit=yes
8462 break
8463 fi
8464 done
8465 if test -z "$haveit"; then
8466 if test -d "$additional_includedir"; then
8467 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8468 fi
8469 fi
8470 fi
8471 fi
8472 fi
8473 if test -n "$found_la"; then
8474 save_libdir="$libdir"
8475 case "$found_la" in
8476 */* | *\\*) . "$found_la" ;;
8477 *) . "./$found_la" ;;
8478 esac
8479 libdir="$save_libdir"
8480 for dep in $dependency_libs; do
8481 case "$dep" in
8482 -L*)
8483 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8484 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8485 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8486 haveit=
8487 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8488 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8489 if test -n "$GCC"; then
8490 case $host_os in
8491 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8492 esac
8493 fi
8494 fi
8495 if test -z "$haveit"; then
8496 haveit=
8497 for x in $LDFLAGS $LIBPTH; do
8498
8499 acl_save_prefix="$prefix"
8500 prefix="$acl_final_prefix"
8501 acl_save_exec_prefix="$exec_prefix"
8502 exec_prefix="$acl_final_exec_prefix"
8503 eval x=\"$x\"
8504 exec_prefix="$acl_save_exec_prefix"
8505 prefix="$acl_save_prefix"
8506
8507 if test "X$x" = "X-L$additional_libdir"; then
8508 haveit=yes
8509 break
8510 fi
8511 done
8512 if test -z "$haveit"; then
8513 if test -d "$additional_libdir"; then
8514 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8515 fi
8516 fi
8517 haveit=
8518 for x in $LDFLAGS $LTLIBPTH; do
8519
8520 acl_save_prefix="$prefix"
8521 prefix="$acl_final_prefix"
8522 acl_save_exec_prefix="$exec_prefix"
8523 exec_prefix="$acl_final_exec_prefix"
8524 eval x=\"$x\"
8525 exec_prefix="$acl_save_exec_prefix"
8526 prefix="$acl_save_prefix"
8527
8528 if test "X$x" = "X-L$additional_libdir"; then
8529 haveit=yes
8530 break
8531 fi
8532 done
8533 if test -z "$haveit"; then
8534 if test -d "$additional_libdir"; then
8535 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8536 fi
8537 fi
8538 fi
8539 fi
8540 ;;
8541 -R*)
8542 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8543 if test "$enable_rpath" != no; then
8544 haveit=
8545 for x in $rpathdirs; do
8546 if test "X$x" = "X$dir"; then
8547 haveit=yes
8548 break
8549 fi
8550 done
8551 if test -z "$haveit"; then
8552 rpathdirs="$rpathdirs $dir"
8553 fi
8554 haveit=
8555 for x in $ltrpathdirs; do
8556 if test "X$x" = "X$dir"; then
8557 haveit=yes
8558 break
8559 fi
8560 done
8561 if test -z "$haveit"; then
8562 ltrpathdirs="$ltrpathdirs $dir"
8563 fi
8564 fi
8565 ;;
8566 -l*)
8567 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8568 ;;
8569 *.la)
8570 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8571 ;;
8572 *)
8573 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8574 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8575 ;;
8576 esac
8577 done
8578 fi
8579 else
8580 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8581 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8582 fi
8583 fi
8584 fi
8585 done
8586 done
8587 if test "X$rpathdirs" != "X"; then
8588 if test -n "$acl_hardcode_libdir_separator"; then
8589 alldirs=
8590 for found_dir in $rpathdirs; do
8591 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8592 done
8593 acl_save_libdir="$libdir"
8594 libdir="$alldirs"
8595 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8596 libdir="$acl_save_libdir"
8597 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8598 else
8599 for found_dir in $rpathdirs; do
8600 acl_save_libdir="$libdir"
8601 libdir="$found_dir"
8602 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8603 libdir="$acl_save_libdir"
8604 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8605 done
8606 fi
8607 fi
8608 if test "X$ltrpathdirs" != "X"; then
8609 for found_dir in $ltrpathdirs; do
8610 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8611 done
8612 fi
8613
8614
8615
8616
8617
8618
8619 ac_cv_libpth_libs="$LIBPTH"
8620 ac_cv_libpth_ltlibs="$LTLIBPTH"
8621 ac_cv_libpth_cppflags="$INCPTH"
8622 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8623
8624 fi
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8626 $as_echo "$ac_cv_libpth_libs" >&6; }
8627 LIBPTH="$ac_cv_libpth_libs"
8628 LTLIBPTH="$ac_cv_libpth_ltlibs"
8629 INCPTH="$ac_cv_libpth_cppflags"
8630 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8631
8632 for element in $INCPTH; do
8633 haveit=
8634 for x in $CPPFLAGS; do
8635
8636 acl_save_prefix="$prefix"
8637 prefix="$acl_final_prefix"
8638 acl_save_exec_prefix="$exec_prefix"
8639 exec_prefix="$acl_final_exec_prefix"
8640 eval x=\"$x\"
8641 exec_prefix="$acl_save_exec_prefix"
8642 prefix="$acl_save_prefix"
8643
8644 if test "X$x" = "X$element"; then
8645 haveit=yes
8646 break
8647 fi
8648 done
8649 if test -z "$haveit"; then
8650 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8651 fi
8652 done
8653
8654
8655
8656
8657 HAVE_LIBPTH=yes
8658
8659
8660
8661 gl_have_pth=
8662 gl_save_LIBS="$LIBS"
8663 LIBS="$LIBS $LIBPTH"
8664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8665 /* end confdefs.h. */
8666 #include <pth.h>
8667 int
8668 main ()
8669 {
8670 pth_self();
8671 ;
8672 return 0;
8673 }
8674 _ACEOF
8675 if ac_fn_c_try_link "$LINENO"; then :
8676 gl_have_pth=yes
8677 fi
8678 rm -f core conftest.err conftest.$ac_objext \
8679 conftest$ac_exeext conftest.$ac_ext
8680 LIBS="$gl_save_LIBS"
8681 if test -n "$gl_have_pth"; then
8682 gl_threads_api=pth
8683 LIBTHREAD="$LIBPTH"
8684 LTLIBTHREAD="$LTLIBPTH"
8685 LIBMULTITHREAD="$LIBTHREAD"
8686 LTLIBMULTITHREAD="$LTLIBTHREAD"
8687
8688 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8689
8690 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8691 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8692
8693 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8694
8695 LIBTHREAD=
8696 LTLIBTHREAD=
8697 fi
8698 fi
8699 else
8700 CPPFLAGS="$gl_save_CPPFLAGS"
8701 fi
8702 fi
8703 if test -z "$gl_have_pthread"; then
8704 case "$gl_use_threads" in
8705 yes | windows | win32) # The 'win32' is for backward compatibility.
8706 if { case "$host_os" in
8707 mingw*) true;;
8708 *) false;;
8709 esac
8710 }; then
8711 gl_threads_api=windows
8712
8713 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8714
8715 fi
8716 ;;
8717 esac
8718 fi
8719 fi
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8721 $as_echo_n "checking for multithread API to use... " >&6; }
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8723 $as_echo "$gl_threads_api" >&6; }
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735 if test "$gl_threads_api" = posix; then
8736 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8737 # pthread_rwlock_* functions.
8738 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8739 "
8740 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8741
8742 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8743
8744 fi
8745
8746 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8748 /* end confdefs.h. */
8749
8750 #include <pthread.h>
8751 int
8752 main ()
8753 {
8754
8755 #if __FreeBSD__ == 4
8756 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8757 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8758 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8759 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8760 #else
8761 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8762 return !x;
8763 #endif
8764
8765 ;
8766 return 0;
8767 }
8768 _ACEOF
8769 if ac_fn_c_try_compile "$LINENO"; then :
8770
8771 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8772
8773 fi
8774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8775 fi
8776 :
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789 use_additional=yes
8790
8791 acl_save_prefix="$prefix"
8792 prefix="$acl_final_prefix"
8793 acl_save_exec_prefix="$exec_prefix"
8794 exec_prefix="$acl_final_exec_prefix"
8795
8796 eval additional_includedir=\"$includedir\"
8797 eval additional_libdir=\"$libdir\"
8798
8799 exec_prefix="$acl_save_exec_prefix"
8800 prefix="$acl_save_prefix"
8801
8802
8803 # Check whether --with-libiconv-prefix was given.
8804 if test "${with_libiconv_prefix+set}" = set; then :
8805 withval=$with_libiconv_prefix;
8806 if test "X$withval" = "Xno"; then
8807 use_additional=no
8808 else
8809 if test "X$withval" = "X"; then
8810
8811 acl_save_prefix="$prefix"
8812 prefix="$acl_final_prefix"
8813 acl_save_exec_prefix="$exec_prefix"
8814 exec_prefix="$acl_final_exec_prefix"
8815
8816 eval additional_includedir=\"$includedir\"
8817 eval additional_libdir=\"$libdir\"
8818
8819 exec_prefix="$acl_save_exec_prefix"
8820 prefix="$acl_save_prefix"
8821
8822 else
8823 additional_includedir="$withval/include"
8824 additional_libdir="$withval/$acl_libdirstem"
8825 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8826 && ! test -d "$withval/$acl_libdirstem"; then
8827 additional_libdir="$withval/$acl_libdirstem2"
8828 fi
8829 fi
8830 fi
8831
8832 fi
8833
8834 LIBICONV=
8835 LTLIBICONV=
8836 INCICONV=
8837 LIBICONV_PREFIX=
8838 HAVE_LIBICONV=
8839 rpathdirs=
8840 ltrpathdirs=
8841 names_already_handled=
8842 names_next_round='iconv '
8843 while test -n "$names_next_round"; do
8844 names_this_round="$names_next_round"
8845 names_next_round=
8846 for name in $names_this_round; do
8847 already_handled=
8848 for n in $names_already_handled; do
8849 if test "$n" = "$name"; then
8850 already_handled=yes
8851 break
8852 fi
8853 done
8854 if test -z "$already_handled"; then
8855 names_already_handled="$names_already_handled $name"
8856 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8857 eval value=\"\$HAVE_LIB$uppername\"
8858 if test -n "$value"; then
8859 if test "$value" = yes; then
8860 eval value=\"\$LIB$uppername\"
8861 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8862 eval value=\"\$LTLIB$uppername\"
8863 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8864 else
8865 :
8866 fi
8867 else
8868 found_dir=
8869 found_la=
8870 found_so=
8871 found_a=
8872 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8873 if test -n "$acl_shlibext"; then
8874 shrext=".$acl_shlibext" # typically: shrext=.so
8875 else
8876 shrext=
8877 fi
8878 if test $use_additional = yes; then
8879 dir="$additional_libdir"
8880 if test -n "$acl_shlibext"; then
8881 if test -f "$dir/$libname$shrext"; then
8882 found_dir="$dir"
8883 found_so="$dir/$libname$shrext"
8884 else
8885 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8886 ver=`(cd "$dir" && \
8887 for f in "$libname$shrext".*; do echo "$f"; done \
8888 | sed -e "s,^$libname$shrext\\\\.,," \
8889 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8890 | sed 1q ) 2>/dev/null`
8891 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8892 found_dir="$dir"
8893 found_so="$dir/$libname$shrext.$ver"
8894 fi
8895 else
8896 eval library_names=\"$acl_library_names_spec\"
8897 for f in $library_names; do
8898 if test -f "$dir/$f"; then
8899 found_dir="$dir"
8900 found_so="$dir/$f"
8901 break
8902 fi
8903 done
8904 fi
8905 fi
8906 fi
8907 if test "X$found_dir" = "X"; then
8908 if test -f "$dir/$libname.$acl_libext"; then
8909 found_dir="$dir"
8910 found_a="$dir/$libname.$acl_libext"
8911 fi
8912 fi
8913 if test "X$found_dir" != "X"; then
8914 if test -f "$dir/$libname.la"; then
8915 found_la="$dir/$libname.la"
8916 fi
8917 fi
8918 fi
8919 if test "X$found_dir" = "X"; then
8920 for x in $LDFLAGS $LTLIBICONV; do
8921
8922 acl_save_prefix="$prefix"
8923 prefix="$acl_final_prefix"
8924 acl_save_exec_prefix="$exec_prefix"
8925 exec_prefix="$acl_final_exec_prefix"
8926 eval x=\"$x\"
8927 exec_prefix="$acl_save_exec_prefix"
8928 prefix="$acl_save_prefix"
8929
8930 case "$x" in
8931 -L*)
8932 dir=`echo "X$x" | sed -e 's/^X-L//'`
8933 if test -n "$acl_shlibext"; then
8934 if test -f "$dir/$libname$shrext"; then
8935 found_dir="$dir"
8936 found_so="$dir/$libname$shrext"
8937 else
8938 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8939 ver=`(cd "$dir" && \
8940 for f in "$libname$shrext".*; do echo "$f"; done \
8941 | sed -e "s,^$libname$shrext\\\\.,," \
8942 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8943 | sed 1q ) 2>/dev/null`
8944 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8945 found_dir="$dir"
8946 found_so="$dir/$libname$shrext.$ver"
8947 fi
8948 else
8949 eval library_names=\"$acl_library_names_spec\"
8950 for f in $library_names; do
8951 if test -f "$dir/$f"; then
8952 found_dir="$dir"
8953 found_so="$dir/$f"
8954 break
8955 fi
8956 done
8957 fi
8958 fi
8959 fi
8960 if test "X$found_dir" = "X"; then
8961 if test -f "$dir/$libname.$acl_libext"; then
8962 found_dir="$dir"
8963 found_a="$dir/$libname.$acl_libext"
8964 fi
8965 fi
8966 if test "X$found_dir" != "X"; then
8967 if test -f "$dir/$libname.la"; then
8968 found_la="$dir/$libname.la"
8969 fi
8970 fi
8971 ;;
8972 esac
8973 if test "X$found_dir" != "X"; then
8974 break
8975 fi
8976 done
8977 fi
8978 if test "X$found_dir" != "X"; then
8979 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8980 if test "X$found_so" != "X"; then
8981 if test "$enable_rpath" = no \
8982 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8983 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8984 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8985 else
8986 haveit=
8987 for x in $ltrpathdirs; do
8988 if test "X$x" = "X$found_dir"; then
8989 haveit=yes
8990 break
8991 fi
8992 done
8993 if test -z "$haveit"; then
8994 ltrpathdirs="$ltrpathdirs $found_dir"
8995 fi
8996 if test "$acl_hardcode_direct" = yes; then
8997 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8998 else
8999 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9000 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9001 haveit=
9002 for x in $rpathdirs; do
9003 if test "X$x" = "X$found_dir"; then
9004 haveit=yes
9005 break
9006 fi
9007 done
9008 if test -z "$haveit"; then
9009 rpathdirs="$rpathdirs $found_dir"
9010 fi
9011 else
9012 haveit=
9013 for x in $LDFLAGS $LIBICONV; do
9014
9015 acl_save_prefix="$prefix"
9016 prefix="$acl_final_prefix"
9017 acl_save_exec_prefix="$exec_prefix"
9018 exec_prefix="$acl_final_exec_prefix"
9019 eval x=\"$x\"
9020 exec_prefix="$acl_save_exec_prefix"
9021 prefix="$acl_save_prefix"
9022
9023 if test "X$x" = "X-L$found_dir"; then
9024 haveit=yes
9025 break
9026 fi
9027 done
9028 if test -z "$haveit"; then
9029 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9030 fi
9031 if test "$acl_hardcode_minus_L" != no; then
9032 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9033 else
9034 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9035 fi
9036 fi
9037 fi
9038 fi
9039 else
9040 if test "X$found_a" != "X"; then
9041 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9042 else
9043 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9044 fi
9045 fi
9046 additional_includedir=
9047 case "$found_dir" in
9048 */$acl_libdirstem | */$acl_libdirstem/)
9049 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9050 if test "$name" = 'iconv'; then
9051 LIBICONV_PREFIX="$basedir"
9052 fi
9053 additional_includedir="$basedir/include"
9054 ;;
9055 */$acl_libdirstem2 | */$acl_libdirstem2/)
9056 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9057 if test "$name" = 'iconv'; then
9058 LIBICONV_PREFIX="$basedir"
9059 fi
9060 additional_includedir="$basedir/include"
9061 ;;
9062 esac
9063 if test "X$additional_includedir" != "X"; then
9064 if test "X$additional_includedir" != "X/usr/include"; then
9065 haveit=
9066 if test "X$additional_includedir" = "X/usr/local/include"; then
9067 if test -n "$GCC"; then
9068 case $host_os in
9069 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9070 esac
9071 fi
9072 fi
9073 if test -z "$haveit"; then
9074 for x in $CPPFLAGS $INCICONV; do
9075
9076 acl_save_prefix="$prefix"
9077 prefix="$acl_final_prefix"
9078 acl_save_exec_prefix="$exec_prefix"
9079 exec_prefix="$acl_final_exec_prefix"
9080 eval x=\"$x\"
9081 exec_prefix="$acl_save_exec_prefix"
9082 prefix="$acl_save_prefix"
9083
9084 if test "X$x" = "X-I$additional_includedir"; then
9085 haveit=yes
9086 break
9087 fi
9088 done
9089 if test -z "$haveit"; then
9090 if test -d "$additional_includedir"; then
9091 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9092 fi
9093 fi
9094 fi
9095 fi
9096 fi
9097 if test -n "$found_la"; then
9098 save_libdir="$libdir"
9099 case "$found_la" in
9100 */* | *\\*) . "$found_la" ;;
9101 *) . "./$found_la" ;;
9102 esac
9103 libdir="$save_libdir"
9104 for dep in $dependency_libs; do
9105 case "$dep" in
9106 -L*)
9107 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9108 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9109 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9110 haveit=
9111 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9112 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9113 if test -n "$GCC"; then
9114 case $host_os in
9115 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9116 esac
9117 fi
9118 fi
9119 if test -z "$haveit"; then
9120 haveit=
9121 for x in $LDFLAGS $LIBICONV; do
9122
9123 acl_save_prefix="$prefix"
9124 prefix="$acl_final_prefix"
9125 acl_save_exec_prefix="$exec_prefix"
9126 exec_prefix="$acl_final_exec_prefix"
9127 eval x=\"$x\"
9128 exec_prefix="$acl_save_exec_prefix"
9129 prefix="$acl_save_prefix"
9130
9131 if test "X$x" = "X-L$additional_libdir"; then
9132 haveit=yes
9133 break
9134 fi
9135 done
9136 if test -z "$haveit"; then
9137 if test -d "$additional_libdir"; then
9138 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9139 fi
9140 fi
9141 haveit=
9142 for x in $LDFLAGS $LTLIBICONV; do
9143
9144 acl_save_prefix="$prefix"
9145 prefix="$acl_final_prefix"
9146 acl_save_exec_prefix="$exec_prefix"
9147 exec_prefix="$acl_final_exec_prefix"
9148 eval x=\"$x\"
9149 exec_prefix="$acl_save_exec_prefix"
9150 prefix="$acl_save_prefix"
9151
9152 if test "X$x" = "X-L$additional_libdir"; then
9153 haveit=yes
9154 break
9155 fi
9156 done
9157 if test -z "$haveit"; then
9158 if test -d "$additional_libdir"; then
9159 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9160 fi
9161 fi
9162 fi
9163 fi
9164 ;;
9165 -R*)
9166 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9167 if test "$enable_rpath" != no; then
9168 haveit=
9169 for x in $rpathdirs; do
9170 if test "X$x" = "X$dir"; then
9171 haveit=yes
9172 break
9173 fi
9174 done
9175 if test -z "$haveit"; then
9176 rpathdirs="$rpathdirs $dir"
9177 fi
9178 haveit=
9179 for x in $ltrpathdirs; do
9180 if test "X$x" = "X$dir"; then
9181 haveit=yes
9182 break
9183 fi
9184 done
9185 if test -z "$haveit"; then
9186 ltrpathdirs="$ltrpathdirs $dir"
9187 fi
9188 fi
9189 ;;
9190 -l*)
9191 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9192 ;;
9193 *.la)
9194 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9195 ;;
9196 *)
9197 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9198 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9199 ;;
9200 esac
9201 done
9202 fi
9203 else
9204 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9205 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9206 fi
9207 fi
9208 fi
9209 done
9210 done
9211 if test "X$rpathdirs" != "X"; then
9212 if test -n "$acl_hardcode_libdir_separator"; then
9213 alldirs=
9214 for found_dir in $rpathdirs; do
9215 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9216 done
9217 acl_save_libdir="$libdir"
9218 libdir="$alldirs"
9219 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9220 libdir="$acl_save_libdir"
9221 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9222 else
9223 for found_dir in $rpathdirs; do
9224 acl_save_libdir="$libdir"
9225 libdir="$found_dir"
9226 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9227 libdir="$acl_save_libdir"
9228 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9229 done
9230 fi
9231 fi
9232 if test "X$ltrpathdirs" != "X"; then
9233 for found_dir in $ltrpathdirs; do
9234 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9235 done
9236 fi
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249 am_save_CPPFLAGS="$CPPFLAGS"
9250
9251 for element in $INCICONV; do
9252 haveit=
9253 for x in $CPPFLAGS; do
9254
9255 acl_save_prefix="$prefix"
9256 prefix="$acl_final_prefix"
9257 acl_save_exec_prefix="$exec_prefix"
9258 exec_prefix="$acl_final_exec_prefix"
9259 eval x=\"$x\"
9260 exec_prefix="$acl_save_exec_prefix"
9261 prefix="$acl_save_prefix"
9262
9263 if test "X$x" = "X$element"; then
9264 haveit=yes
9265 break
9266 fi
9267 done
9268 if test -z "$haveit"; then
9269 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9270 fi
9271 done
9272
9273
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9275 $as_echo_n "checking for iconv... " >&6; }
9276 if ${am_cv_func_iconv+:} false; then :
9277 $as_echo_n "(cached) " >&6
9278 else
9279
9280 am_cv_func_iconv="no, consider installing GNU libiconv"
9281 am_cv_lib_iconv=no
9282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9283 /* end confdefs.h. */
9284
9285 #include <stdlib.h>
9286 #include <iconv.h>
9287
9288 int
9289 main ()
9290 {
9291 iconv_t cd = iconv_open("","");
9292 iconv(cd,NULL,NULL,NULL,NULL);
9293 iconv_close(cd);
9294 ;
9295 return 0;
9296 }
9297 _ACEOF
9298 if ac_fn_c_try_link "$LINENO"; then :
9299 am_cv_func_iconv=yes
9300 fi
9301 rm -f core conftest.err conftest.$ac_objext \
9302 conftest$ac_exeext conftest.$ac_ext
9303 if test "$am_cv_func_iconv" != yes; then
9304 am_save_LIBS="$LIBS"
9305 LIBS="$LIBS $LIBICONV"
9306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9307 /* end confdefs.h. */
9308
9309 #include <stdlib.h>
9310 #include <iconv.h>
9311
9312 int
9313 main ()
9314 {
9315 iconv_t cd = iconv_open("","");
9316 iconv(cd,NULL,NULL,NULL,NULL);
9317 iconv_close(cd);
9318 ;
9319 return 0;
9320 }
9321 _ACEOF
9322 if ac_fn_c_try_link "$LINENO"; then :
9323 am_cv_lib_iconv=yes
9324 am_cv_func_iconv=yes
9325 fi
9326 rm -f core conftest.err conftest.$ac_objext \
9327 conftest$ac_exeext conftest.$ac_ext
9328 LIBS="$am_save_LIBS"
9329 fi
9330
9331 fi
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9333 $as_echo "$am_cv_func_iconv" >&6; }
9334 if test "$am_cv_func_iconv" = yes; then
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9336 $as_echo_n "checking for working iconv... " >&6; }
9337 if ${am_cv_func_iconv_works+:} false; then :
9338 $as_echo_n "(cached) " >&6
9339 else
9340
9341 am_save_LIBS="$LIBS"
9342 if test $am_cv_lib_iconv = yes; then
9343 LIBS="$LIBS $LIBICONV"
9344 fi
9345 if test "$cross_compiling" = yes; then :
9346
9347 case "$host_os" in
9348 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9349 *) am_cv_func_iconv_works="guessing yes" ;;
9350 esac
9351
9352 else
9353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9354 /* end confdefs.h. */
9355
9356 #include <iconv.h>
9357 #include <string.h>
9358 int main ()
9359 {
9360 int result = 0;
9361 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9362 returns. */
9363 {
9364 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9365 if (cd_utf8_to_88591 != (iconv_t)(-1))
9366 {
9367 static const char input[] = "\342\202\254"; /* EURO SIGN */
9368 char buf[10];
9369 const char *inptr = input;
9370 size_t inbytesleft = strlen (input);
9371 char *outptr = buf;
9372 size_t outbytesleft = sizeof (buf);
9373 size_t res = iconv (cd_utf8_to_88591,
9374 (char **) &inptr, &inbytesleft,
9375 &outptr, &outbytesleft);
9376 if (res == 0)
9377 result |= 1;
9378 iconv_close (cd_utf8_to_88591);
9379 }
9380 }
9381 /* Test against Solaris 10 bug: Failures are not distinguishable from
9382 successful returns. */
9383 {
9384 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9385 if (cd_ascii_to_88591 != (iconv_t)(-1))
9386 {
9387 static const char input[] = "\263";
9388 char buf[10];
9389 const char *inptr = input;
9390 size_t inbytesleft = strlen (input);
9391 char *outptr = buf;
9392 size_t outbytesleft = sizeof (buf);
9393 size_t res = iconv (cd_ascii_to_88591,
9394 (char **) &inptr, &inbytesleft,
9395 &outptr, &outbytesleft);
9396 if (res == 0)
9397 result |= 2;
9398 iconv_close (cd_ascii_to_88591);
9399 }
9400 }
9401 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9402 {
9403 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9404 if (cd_88591_to_utf8 != (iconv_t)(-1))
9405 {
9406 static const char input[] = "\304";
9407 static char buf[2] = { (char)0xDE, (char)0xAD };
9408 const char *inptr = input;
9409 size_t inbytesleft = 1;
9410 char *outptr = buf;
9411 size_t outbytesleft = 1;
9412 size_t res = iconv (cd_88591_to_utf8,
9413 (char **) &inptr, &inbytesleft,
9414 &outptr, &outbytesleft);
9415 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9416 result |= 4;
9417 iconv_close (cd_88591_to_utf8);
9418 }
9419 }
9420 #if 0 /* This bug could be worked around by the caller. */
9421 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9422 {
9423 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9424 if (cd_88591_to_utf8 != (iconv_t)(-1))
9425 {
9426 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9427 char buf[50];
9428 const char *inptr = input;
9429 size_t inbytesleft = strlen (input);
9430 char *outptr = buf;
9431 size_t outbytesleft = sizeof (buf);
9432 size_t res = iconv (cd_88591_to_utf8,
9433 (char **) &inptr, &inbytesleft,
9434 &outptr, &outbytesleft);
9435 if ((int)res > 0)
9436 result |= 8;
9437 iconv_close (cd_88591_to_utf8);
9438 }
9439 }
9440 #endif
9441 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9442 provided. */
9443 if (/* Try standardized names. */
9444 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9445 /* Try IRIX, OSF/1 names. */
9446 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9447 /* Try AIX names. */
9448 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9449 /* Try HP-UX names. */
9450 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9451 result |= 16;
9452 return result;
9453 }
9454 _ACEOF
9455 if ac_fn_c_try_run "$LINENO"; then :
9456 am_cv_func_iconv_works=yes
9457 else
9458 am_cv_func_iconv_works=no
9459 fi
9460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9461 conftest.$ac_objext conftest.beam conftest.$ac_ext
9462 fi
9463
9464 LIBS="$am_save_LIBS"
9465
9466 fi
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9468 $as_echo "$am_cv_func_iconv_works" >&6; }
9469 case "$am_cv_func_iconv_works" in
9470 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9471 *) am_func_iconv=yes ;;
9472 esac
9473 else
9474 am_func_iconv=no am_cv_lib_iconv=no
9475 fi
9476 if test "$am_func_iconv" = yes; then
9477
9478 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9479
9480 fi
9481 if test "$am_cv_lib_iconv" = yes; then
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9483 $as_echo_n "checking how to link with libiconv... " >&6; }
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9485 $as_echo "$LIBICONV" >&6; }
9486 else
9487 CPPFLAGS="$am_save_CPPFLAGS"
9488 LIBICONV=
9489 LTLIBICONV=
9490 fi
9491
9492
9493
9494 if test "$am_cv_func_iconv" = yes; then
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9496 $as_echo_n "checking for iconv declaration... " >&6; }
9497 if ${am_cv_proto_iconv+:} false; then :
9498 $as_echo_n "(cached) " >&6
9499 else
9500
9501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9502 /* end confdefs.h. */
9503
9504 #include <stdlib.h>
9505 #include <iconv.h>
9506 extern
9507 #ifdef __cplusplus
9508 "C"
9509 #endif
9510 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9511 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9512 #else
9513 size_t iconv();
9514 #endif
9515
9516 int
9517 main ()
9518 {
9519
9520 ;
9521 return 0;
9522 }
9523 _ACEOF
9524 if ac_fn_c_try_compile "$LINENO"; then :
9525 am_cv_proto_iconv_arg1=""
9526 else
9527 am_cv_proto_iconv_arg1="const"
9528 fi
9529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9530 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
9531 fi
9532
9533 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9535 $am_cv_proto_iconv" >&5
9536 $as_echo "
9537 $am_cv_proto_iconv" >&6; }
9538
9539 cat >>confdefs.h <<_ACEOF
9540 #define ICONV_CONST $am_cv_proto_iconv_arg1
9541 _ACEOF
9542
9543
9544 fi
9545
9546
9547
9548
9549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9550 /* end confdefs.h. */
9551 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9552 int
9553 main ()
9554 {
9555
9556 ;
9557 return 0;
9558 }
9559 _ACEOF
9560 if ac_fn_c_try_link "$LINENO"; then :
9561
9562 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9563
9564 fi
9565 rm -f core conftest.err conftest.$ac_objext \
9566 conftest$ac_exeext conftest.$ac_ext
9567
9568 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9569 do :
9570 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9571 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9572 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9573 cat >>confdefs.h <<_ACEOF
9574 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9575 _ACEOF
9576
9577 fi
9578
9579 done
9580
9581 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9582 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9583 argz_stringify argz_next __fsetlocking
9584 do :
9585 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9586 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9587 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9588 cat >>confdefs.h <<_ACEOF
9589 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9590 _ACEOF
9591
9592 fi
9593 done
9594
9595
9596 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9597 "
9598 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9599 ac_have_decl=1
9600 else
9601 ac_have_decl=0
9602 fi
9603
9604 cat >>confdefs.h <<_ACEOF
9605 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9606 _ACEOF
9607 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9608 "
9609 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9610 ac_have_decl=1
9611 else
9612 ac_have_decl=0
9613 fi
9614
9615 cat >>confdefs.h <<_ACEOF
9616 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9617 _ACEOF
9618
9619
9620
9621
9622 for ac_prog in bison
9623 do
9624 # Extract the first word of "$ac_prog", so it can be a program name with args.
9625 set dummy $ac_prog; ac_word=$2
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9627 $as_echo_n "checking for $ac_word... " >&6; }
9628 if ${ac_cv_prog_INTLBISON+:} false; then :
9629 $as_echo_n "(cached) " >&6
9630 else
9631 if test -n "$INTLBISON"; then
9632 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9633 else
9634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9635 for as_dir in $PATH
9636 do
9637 IFS=$as_save_IFS
9638 test -z "$as_dir" && as_dir=.
9639 for ac_exec_ext in '' $ac_executable_extensions; do
9640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9641 ac_cv_prog_INTLBISON="$ac_prog"
9642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9643 break 2
9644 fi
9645 done
9646 done
9647 IFS=$as_save_IFS
9648
9649 fi
9650 fi
9651 INTLBISON=$ac_cv_prog_INTLBISON
9652 if test -n "$INTLBISON"; then
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9654 $as_echo "$INTLBISON" >&6; }
9655 else
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9657 $as_echo "no" >&6; }
9658 fi
9659
9660
9661 test -n "$INTLBISON" && break
9662 done
9663
9664 if test -z "$INTLBISON"; then
9665 ac_verc_fail=yes
9666 else
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9668 $as_echo_n "checking version of bison... " >&6; }
9669 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9670 case $ac_prog_version in
9671 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9672 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9673 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9674 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9675 esac
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9677 $as_echo "$ac_prog_version" >&6; }
9678 fi
9679 if test $ac_verc_fail = yes; then
9680 INTLBISON=:
9681 fi
9682
9683
9684
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9686 $as_echo_n "checking for long long int... " >&6; }
9687 if ${ac_cv_type_long_long_int+:} false; then :
9688 $as_echo_n "(cached) " >&6
9689 else
9690 ac_cv_type_long_long_int=yes
9691 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9692 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9693 if test $ac_cv_type_long_long_int = yes; then
9694 if test "$cross_compiling" = yes; then :
9695 :
9696 else
9697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9698 /* end confdefs.h. */
9699 #include <limits.h>
9700 #ifndef LLONG_MAX
9701 # define HALF \
9702 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9703 # define LLONG_MAX (HALF - 1 + HALF)
9704 #endif
9705 int
9706 main ()
9707 {
9708 long long int n = 1;
9709 int i;
9710 for (i = 0; ; i++)
9711 {
9712 long long int m = n << i;
9713 if (m >> i != n)
9714 return 1;
9715 if (LLONG_MAX / 2 < m)
9716 break;
9717 }
9718 return 0;
9719 ;
9720 return 0;
9721 }
9722 _ACEOF
9723 if ac_fn_c_try_run "$LINENO"; then :
9724
9725 else
9726 ac_cv_type_long_long_int=no
9727 fi
9728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9729 conftest.$ac_objext conftest.beam conftest.$ac_ext
9730 fi
9731
9732 fi
9733 fi
9734 fi
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9736 $as_echo "$ac_cv_type_long_long_int" >&6; }
9737 if test $ac_cv_type_long_long_int = yes; then
9738
9739 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9740
9741 fi
9742
9743
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9745 $as_echo_n "checking for wchar_t... " >&6; }
9746 if ${gt_cv_c_wchar_t+:} false; then :
9747 $as_echo_n "(cached) " >&6
9748 else
9749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9750 /* end confdefs.h. */
9751 #include <stddef.h>
9752 wchar_t foo = (wchar_t)'\0';
9753 int
9754 main ()
9755 {
9756
9757 ;
9758 return 0;
9759 }
9760 _ACEOF
9761 if ac_fn_c_try_compile "$LINENO"; then :
9762 gt_cv_c_wchar_t=yes
9763 else
9764 gt_cv_c_wchar_t=no
9765 fi
9766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9767 fi
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9769 $as_echo "$gt_cv_c_wchar_t" >&6; }
9770 if test $gt_cv_c_wchar_t = yes; then
9771
9772 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9773
9774 fi
9775
9776
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9778 $as_echo_n "checking for wint_t... " >&6; }
9779 if ${gt_cv_c_wint_t+:} false; then :
9780 $as_echo_n "(cached) " >&6
9781 else
9782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9783 /* end confdefs.h. */
9784
9785 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9786 <wchar.h>.
9787 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9788 before <wchar.h>. */
9789 #include <stddef.h>
9790 #include <stdio.h>
9791 #include <time.h>
9792 #include <wchar.h>
9793 wint_t foo = (wchar_t)'\0';
9794 int
9795 main ()
9796 {
9797
9798 ;
9799 return 0;
9800 }
9801 _ACEOF
9802 if ac_fn_c_try_compile "$LINENO"; then :
9803 gt_cv_c_wint_t=yes
9804 else
9805 gt_cv_c_wint_t=no
9806 fi
9807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9808 fi
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9810 $as_echo "$gt_cv_c_wint_t" >&6; }
9811 if test $gt_cv_c_wint_t = yes; then
9812
9813 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9814
9815 fi
9816
9817
9818
9819
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9821 $as_echo_n "checking for intmax_t... " >&6; }
9822 if ${gt_cv_c_intmax_t+:} false; then :
9823 $as_echo_n "(cached) " >&6
9824 else
9825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9826 /* end confdefs.h. */
9827
9828 #include <stddef.h>
9829 #include <stdlib.h>
9830 #if HAVE_STDINT_H_WITH_UINTMAX
9831 #include <stdint.h>
9832 #endif
9833 #if HAVE_INTTYPES_H_WITH_UINTMAX
9834 #include <inttypes.h>
9835 #endif
9836
9837 int
9838 main ()
9839 {
9840 intmax_t x = -1;
9841 return !x;
9842 ;
9843 return 0;
9844 }
9845 _ACEOF
9846 if ac_fn_c_try_compile "$LINENO"; then :
9847 gt_cv_c_intmax_t=yes
9848 else
9849 gt_cv_c_intmax_t=no
9850 fi
9851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9852 fi
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9854 $as_echo "$gt_cv_c_intmax_t" >&6; }
9855 if test $gt_cv_c_intmax_t = yes; then
9856
9857 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9858
9859 fi
9860
9861
9862
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9864 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9865 if ${gt_cv_func_printf_posix+:} false; then :
9866 $as_echo_n "(cached) " >&6
9867 else
9868
9869 if test "$cross_compiling" = yes; then :
9870
9871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9872 /* end confdefs.h. */
9873
9874 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9875 notposix
9876 #endif
9877
9878 _ACEOF
9879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9880 $EGREP "notposix" >/dev/null 2>&1; then :
9881 gt_cv_func_printf_posix="guessing no"
9882 else
9883 gt_cv_func_printf_posix="guessing yes"
9884 fi
9885 rm -f conftest*
9886
9887
9888 else
9889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9890 /* end confdefs.h. */
9891
9892 #include <stdio.h>
9893 #include <string.h>
9894 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9895 dollar expansion (possibly an autoconf bug). */
9896 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9897 static char buf[100];
9898 int main ()
9899 {
9900 sprintf (buf, format, 33, 55);
9901 return (strcmp (buf, "55 33") != 0);
9902 }
9903 _ACEOF
9904 if ac_fn_c_try_run "$LINENO"; then :
9905 gt_cv_func_printf_posix=yes
9906 else
9907 gt_cv_func_printf_posix=no
9908 fi
9909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9910 conftest.$ac_objext conftest.beam conftest.$ac_ext
9911 fi
9912
9913
9914 fi
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9916 $as_echo "$gt_cv_func_printf_posix" >&6; }
9917 case $gt_cv_func_printf_posix in
9918 *yes)
9919
9920 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9921
9922 ;;
9923 esac
9924
9925
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9927 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9928 if ${ac_cv_gnu_library_2_1+:} false; then :
9929 $as_echo_n "(cached) " >&6
9930 else
9931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9932 /* end confdefs.h. */
9933
9934 #include <features.h>
9935 #ifdef __GNU_LIBRARY__
9936 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9937 Lucky GNU user
9938 #endif
9939 #endif
9940 #ifdef __UCLIBC__
9941 Lucky user
9942 #endif
9943
9944 _ACEOF
9945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9946 $EGREP "Lucky" >/dev/null 2>&1; then :
9947 ac_cv_gnu_library_2_1=yes
9948 else
9949 ac_cv_gnu_library_2_1=no
9950 fi
9951 rm -f conftest*
9952
9953
9954
9955 fi
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9957 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9958
9959 GLIBC21="$ac_cv_gnu_library_2_1"
9960
9961
9962
9963 for ac_header in stdint.h
9964 do :
9965 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9966 if test "x$ac_cv_header_stdint_h" = xyes; then :
9967 cat >>confdefs.h <<_ACEOF
9968 #define HAVE_STDINT_H 1
9969 _ACEOF
9970
9971 fi
9972
9973 done
9974
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9976 $as_echo_n "checking for SIZE_MAX... " >&6; }
9977 if ${gl_cv_size_max+:} false; then :
9978 $as_echo_n "(cached) " >&6
9979 else
9980
9981 gl_cv_size_max=
9982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9983 /* end confdefs.h. */
9984
9985 #include <limits.h>
9986 #if HAVE_STDINT_H
9987 #include <stdint.h>
9988 #endif
9989 #ifdef SIZE_MAX
9990 Found it
9991 #endif
9992
9993 _ACEOF
9994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9995 $EGREP "Found it" >/dev/null 2>&1; then :
9996 gl_cv_size_max=yes
9997 fi
9998 rm -f conftest*
9999
10000 if test -z "$gl_cv_size_max"; then
10001 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
10002 #include <limits.h>"; then :
10003
10004 else
10005 size_t_bits_minus_1=
10006 fi
10007
10008 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
10009
10010 else
10011 fits_in_uint=
10012 fi
10013
10014 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10015 if test $fits_in_uint = 1; then
10016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10017 /* end confdefs.h. */
10018 #include <stddef.h>
10019 extern size_t foo;
10020 extern unsigned long foo;
10021
10022 int
10023 main ()
10024 {
10025
10026 ;
10027 return 0;
10028 }
10029 _ACEOF
10030 if ac_fn_c_try_compile "$LINENO"; then :
10031 fits_in_uint=0
10032 fi
10033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10034 fi
10035 if test $fits_in_uint = 1; then
10036 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10037 else
10038 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10039 fi
10040 else
10041 gl_cv_size_max='((size_t)~(size_t)0)'
10042 fi
10043 fi
10044
10045 fi
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10047 $as_echo "$gl_cv_size_max" >&6; }
10048 if test "$gl_cv_size_max" != yes; then
10049
10050 cat >>confdefs.h <<_ACEOF
10051 #define SIZE_MAX $gl_cv_size_max
10052 _ACEOF
10053
10054 fi
10055
10056
10057
10058
10059 for ac_header in stdint.h
10060 do :
10061 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10062 if test "x$ac_cv_header_stdint_h" = xyes; then :
10063 cat >>confdefs.h <<_ACEOF
10064 #define HAVE_STDINT_H 1
10065 _ACEOF
10066
10067 fi
10068
10069 done
10070
10071
10072
10073
10074
10075 for ac_func in $ac_func_list
10076 do :
10077 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10078 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10079 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10080 cat >>confdefs.h <<_ACEOF
10081 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10082 _ACEOF
10083
10084 fi
10085 done
10086
10087
10088
10089
10090
10091
10092
10093
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10095 $as_echo_n "checking for working fcntl.h... " >&6; }
10096 if ${gl_cv_header_working_fcntl_h+:} false; then :
10097 $as_echo_n "(cached) " >&6
10098 else
10099 if test "$cross_compiling" = yes; then :
10100 gl_cv_header_working_fcntl_h=cross-compiling
10101 else
10102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10103 /* end confdefs.h. */
10104 #include <sys/types.h>
10105 #include <sys/stat.h>
10106 #if HAVE_UNISTD_H
10107 # include <unistd.h>
10108 #else /* on Windows with MSVC */
10109 # include <io.h>
10110 # include <stdlib.h>
10111 # defined sleep(n) _sleep ((n) * 1000)
10112 #endif
10113 #include <fcntl.h>
10114 #ifndef O_NOATIME
10115 #define O_NOATIME 0
10116 #endif
10117 #ifndef O_NOFOLLOW
10118 #define O_NOFOLLOW 0
10119 #endif
10120 static int const constants[] =
10121 {
10122 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10123 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10124 };
10125
10126 int
10127 main ()
10128 {
10129
10130 int result = !constants;
10131 #if HAVE_SYMLINK
10132 {
10133 static char const sym[] = "conftest.sym";
10134 if (symlink ("/dev/null", sym) != 0)
10135 result |= 2;
10136 else
10137 {
10138 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10139 if (fd >= 0)
10140 {
10141 close (fd);
10142 result |= 4;
10143 }
10144 }
10145 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10146 result |= 2;
10147 else
10148 {
10149 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10150 if (fd >= 0)
10151 {
10152 close (fd);
10153 result |= 4;
10154 }
10155 }
10156 unlink (sym);
10157 }
10158 #endif
10159 {
10160 static char const file[] = "confdefs.h";
10161 int fd = open (file, O_RDONLY | O_NOATIME);
10162 if (fd < 0)
10163 result |= 8;
10164 else
10165 {
10166 struct stat st0;
10167 if (fstat (fd, &st0) != 0)
10168 result |= 16;
10169 else
10170 {
10171 char c;
10172 sleep (1);
10173 if (read (fd, &c, 1) != 1)
10174 result |= 24;
10175 else
10176 {
10177 if (close (fd) != 0)
10178 result |= 32;
10179 else
10180 {
10181 struct stat st1;
10182 if (stat (file, &st1) != 0)
10183 result |= 40;
10184 else
10185 if (st0.st_atime != st1.st_atime)
10186 result |= 64;
10187 }
10188 }
10189 }
10190 }
10191 }
10192 return result;
10193 ;
10194 return 0;
10195 }
10196 _ACEOF
10197 if ac_fn_c_try_run "$LINENO"; then :
10198 gl_cv_header_working_fcntl_h=yes
10199 else
10200 case $? in #(
10201 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10202 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10203 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10204 *) gl_cv_header_working_fcntl_h='no';;
10205 esac
10206 fi
10207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10208 conftest.$ac_objext conftest.beam conftest.$ac_ext
10209 fi
10210
10211 fi
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10213 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10214
10215 case $gl_cv_header_working_fcntl_h in #(
10216 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10217 *) ac_val=1;;
10218 esac
10219
10220 cat >>confdefs.h <<_ACEOF
10221 #define HAVE_WORKING_O_NOATIME $ac_val
10222 _ACEOF
10223
10224
10225 case $gl_cv_header_working_fcntl_h in #(
10226 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10227 *) ac_val=1;;
10228 esac
10229
10230 cat >>confdefs.h <<_ACEOF
10231 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10232 _ACEOF
10233
10234
10235
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10237 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10238 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10239 $as_echo_n "(cached) " >&6
10240 else
10241 gt_save_LIBS="$LIBS"
10242 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10244 /* end confdefs.h. */
10245 #include <CoreFoundation/CFPreferences.h>
10246 int
10247 main ()
10248 {
10249 CFPreferencesCopyAppValue(NULL, NULL)
10250 ;
10251 return 0;
10252 }
10253 _ACEOF
10254 if ac_fn_c_try_link "$LINENO"; then :
10255 gt_cv_func_CFPreferencesCopyAppValue=yes
10256 else
10257 gt_cv_func_CFPreferencesCopyAppValue=no
10258 fi
10259 rm -f core conftest.err conftest.$ac_objext \
10260 conftest$ac_exeext conftest.$ac_ext
10261 LIBS="$gt_save_LIBS"
10262 fi
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10264 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10265 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10266
10267 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10268
10269 fi
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10271 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10272 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10273 $as_echo_n "(cached) " >&6
10274 else
10275 gt_save_LIBS="$LIBS"
10276 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10278 /* end confdefs.h. */
10279 #include <CoreFoundation/CFLocale.h>
10280 int
10281 main ()
10282 {
10283 CFLocaleCopyCurrent();
10284 ;
10285 return 0;
10286 }
10287 _ACEOF
10288 if ac_fn_c_try_link "$LINENO"; then :
10289 gt_cv_func_CFLocaleCopyCurrent=yes
10290 else
10291 gt_cv_func_CFLocaleCopyCurrent=no
10292 fi
10293 rm -f core conftest.err conftest.$ac_objext \
10294 conftest$ac_exeext conftest.$ac_ext
10295 LIBS="$gt_save_LIBS"
10296 fi
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10298 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10299 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10300
10301 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10302
10303 fi
10304 INTL_MACOSX_LIBS=
10305 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10306 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10307 fi
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318 case "$enable_silent_rules" in
10319 yes) INTL_DEFAULT_VERBOSITY=0;;
10320 no) INTL_DEFAULT_VERBOSITY=1;;
10321 *) INTL_DEFAULT_VERBOSITY=1;;
10322 esac
10323
10324
10325 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10326 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10327
10328 else
10329
10330 $as_echo "#define ptrdiff_t long" >>confdefs.h
10331
10332
10333 fi
10334
10335 for ac_header in features.h stddef.h stdlib.h string.h
10336 do :
10337 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10338 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10339 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10340 cat >>confdefs.h <<_ACEOF
10341 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10342 _ACEOF
10343
10344 fi
10345
10346 done
10347
10348 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10349 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10350 do :
10351 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10352 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10353 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10354 cat >>confdefs.h <<_ACEOF
10355 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10356 _ACEOF
10357
10358 fi
10359 done
10360
10361
10362 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10363 "
10364 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10365 ac_have_decl=1
10366 else
10367 ac_have_decl=0
10368 fi
10369
10370 cat >>confdefs.h <<_ACEOF
10371 #define HAVE_DECL__SNPRINTF $ac_have_decl
10372 _ACEOF
10373 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10374 "
10375 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10376 ac_have_decl=1
10377 else
10378 ac_have_decl=0
10379 fi
10380
10381 cat >>confdefs.h <<_ACEOF
10382 #define HAVE_DECL__SNWPRINTF $ac_have_decl
10383 _ACEOF
10384
10385
10386 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10387 "
10388 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10389 ac_have_decl=1
10390 else
10391 ac_have_decl=0
10392 fi
10393
10394 cat >>confdefs.h <<_ACEOF
10395 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10396 _ACEOF
10397
10398
10399 case $gt_cv_func_printf_posix in
10400 *yes) HAVE_POSIX_PRINTF=1 ;;
10401 *) HAVE_POSIX_PRINTF=0 ;;
10402 esac
10403
10404 if test "$ac_cv_func_asprintf" = yes; then
10405 HAVE_ASPRINTF=1
10406 else
10407 HAVE_ASPRINTF=0
10408 fi
10409
10410 if test "$ac_cv_func_snprintf" = yes; then
10411 HAVE_SNPRINTF=1
10412 else
10413 HAVE_SNPRINTF=0
10414 fi
10415
10416 if test "$ac_cv_func_newlocale" = yes; then
10417 HAVE_NEWLOCALE=1
10418 else
10419 HAVE_NEWLOCALE=0
10420 fi
10421
10422 if test "$ac_cv_func_wprintf" = yes; then
10423 HAVE_WPRINTF=1
10424 else
10425 HAVE_WPRINTF=0
10426 fi
10427
10428
10429
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10431 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10432 if ${am_cv_langinfo_codeset+:} false; then :
10433 $as_echo_n "(cached) " >&6
10434 else
10435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10436 /* end confdefs.h. */
10437 #include <langinfo.h>
10438 int
10439 main ()
10440 {
10441 char* cs = nl_langinfo(CODESET); return !cs;
10442 ;
10443 return 0;
10444 }
10445 _ACEOF
10446 if ac_fn_c_try_link "$LINENO"; then :
10447 am_cv_langinfo_codeset=yes
10448 else
10449 am_cv_langinfo_codeset=no
10450 fi
10451 rm -f core conftest.err conftest.$ac_objext \
10452 conftest$ac_exeext conftest.$ac_ext
10453
10454 fi
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10456 $as_echo "$am_cv_langinfo_codeset" >&6; }
10457 if test $am_cv_langinfo_codeset = yes; then
10458
10459 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10460
10461 fi
10462
10463
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10465 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10466 if ${gt_cv_val_LC_MESSAGES+:} false; then :
10467 $as_echo_n "(cached) " >&6
10468 else
10469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10470 /* end confdefs.h. */
10471 #include <locale.h>
10472 int
10473 main ()
10474 {
10475 return LC_MESSAGES
10476 ;
10477 return 0;
10478 }
10479 _ACEOF
10480 if ac_fn_c_try_link "$LINENO"; then :
10481 gt_cv_val_LC_MESSAGES=yes
10482 else
10483 gt_cv_val_LC_MESSAGES=no
10484 fi
10485 rm -f core conftest.err conftest.$ac_objext \
10486 conftest$ac_exeext conftest.$ac_ext
10487 fi
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10489 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10490 if test $gt_cv_val_LC_MESSAGES = yes; then
10491
10492 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10493
10494 fi
10495
10496
10497 if test "$enable_shared" = yes; then
10498 case "$host_os" in
10499 mingw* | cygwin*) is_woe32dll=yes ;;
10500 *) is_woe32dll=no ;;
10501 esac
10502 else
10503 is_woe32dll=no
10504 fi
10505 WOE32DLL=$is_woe32dll
10506
10507
10508 case "$host_os" in
10509 mingw* | cygwin*) is_woe32=yes ;;
10510 *) is_woe32=no ;;
10511 esac
10512 WOE32=$is_woe32
10513
10514 if test $WOE32 = yes; then
10515 if test -n "$ac_tool_prefix"; then
10516 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10517 set dummy ${ac_tool_prefix}windres; ac_word=$2
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10519 $as_echo_n "checking for $ac_word... " >&6; }
10520 if ${ac_cv_prog_WINDRES+:} false; then :
10521 $as_echo_n "(cached) " >&6
10522 else
10523 if test -n "$WINDRES"; then
10524 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10525 else
10526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10527 for as_dir in $PATH
10528 do
10529 IFS=$as_save_IFS
10530 test -z "$as_dir" && as_dir=.
10531 for ac_exec_ext in '' $ac_executable_extensions; do
10532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10533 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10535 break 2
10536 fi
10537 done
10538 done
10539 IFS=$as_save_IFS
10540
10541 fi
10542 fi
10543 WINDRES=$ac_cv_prog_WINDRES
10544 if test -n "$WINDRES"; then
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10546 $as_echo "$WINDRES" >&6; }
10547 else
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10549 $as_echo "no" >&6; }
10550 fi
10551
10552
10553 fi
10554 if test -z "$ac_cv_prog_WINDRES"; then
10555 ac_ct_WINDRES=$WINDRES
10556 # Extract the first word of "windres", so it can be a program name with args.
10557 set dummy windres; ac_word=$2
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10559 $as_echo_n "checking for $ac_word... " >&6; }
10560 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10561 $as_echo_n "(cached) " >&6
10562 else
10563 if test -n "$ac_ct_WINDRES"; then
10564 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10565 else
10566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10567 for as_dir in $PATH
10568 do
10569 IFS=$as_save_IFS
10570 test -z "$as_dir" && as_dir=.
10571 for ac_exec_ext in '' $ac_executable_extensions; do
10572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10573 ac_cv_prog_ac_ct_WINDRES="windres"
10574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10575 break 2
10576 fi
10577 done
10578 done
10579 IFS=$as_save_IFS
10580
10581 fi
10582 fi
10583 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10584 if test -n "$ac_ct_WINDRES"; then
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10586 $as_echo "$ac_ct_WINDRES" >&6; }
10587 else
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10589 $as_echo "no" >&6; }
10590 fi
10591
10592 if test "x$ac_ct_WINDRES" = x; then
10593 WINDRES=""
10594 else
10595 case $cross_compiling:$ac_tool_warned in
10596 yes:)
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10599 ac_tool_warned=yes ;;
10600 esac
10601 WINDRES=$ac_ct_WINDRES
10602 fi
10603 else
10604 WINDRES="$ac_cv_prog_WINDRES"
10605 fi
10606
10607 fi
10608
10609 case "$host_os" in
10610 hpux*) LTLIBC="" ;;
10611 *) LTLIBC="-lc" ;;
10612 esac
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10641 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10642 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10643 $as_echo_n "(cached) " >&6
10644 else
10645 gt_save_LIBS="$LIBS"
10646 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10648 /* end confdefs.h. */
10649 #include <CoreFoundation/CFPreferences.h>
10650 int
10651 main ()
10652 {
10653 CFPreferencesCopyAppValue(NULL, NULL)
10654 ;
10655 return 0;
10656 }
10657 _ACEOF
10658 if ac_fn_c_try_link "$LINENO"; then :
10659 gt_cv_func_CFPreferencesCopyAppValue=yes
10660 else
10661 gt_cv_func_CFPreferencesCopyAppValue=no
10662 fi
10663 rm -f core conftest.err conftest.$ac_objext \
10664 conftest$ac_exeext conftest.$ac_ext
10665 LIBS="$gt_save_LIBS"
10666 fi
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10668 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10669 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10670
10671 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10672
10673 fi
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10675 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10676 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10677 $as_echo_n "(cached) " >&6
10678 else
10679 gt_save_LIBS="$LIBS"
10680 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10682 /* end confdefs.h. */
10683 #include <CoreFoundation/CFLocale.h>
10684 int
10685 main ()
10686 {
10687 CFLocaleCopyCurrent();
10688 ;
10689 return 0;
10690 }
10691 _ACEOF
10692 if ac_fn_c_try_link "$LINENO"; then :
10693 gt_cv_func_CFLocaleCopyCurrent=yes
10694 else
10695 gt_cv_func_CFLocaleCopyCurrent=no
10696 fi
10697 rm -f core conftest.err conftest.$ac_objext \
10698 conftest$ac_exeext conftest.$ac_ext
10699 LIBS="$gt_save_LIBS"
10700 fi
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10702 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10703 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10704
10705 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10706
10707 fi
10708 INTL_MACOSX_LIBS=
10709 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10710 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10711 fi
10712
10713
10714
10715
10716
10717
10718 BUILD_INCLUDED_LIBINTL=no
10719 USE_INCLUDED_LIBINTL=no
10720
10721 LIBINTL=
10722 LTLIBINTL=
10723 POSUB=
10724
10725 case " $gt_needs " in
10726 *" need-formatstring-macros "*) gt_api_version=3 ;;
10727 *" need-ngettext "*) gt_api_version=2 ;;
10728 *) gt_api_version=1 ;;
10729 esac
10730 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10731 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10732
10733 if test "$USE_NLS" = "yes"; then
10734 gt_use_preinstalled_gnugettext=no
10735
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10737 $as_echo_n "checking whether included gettext is requested... " >&6; }
10738
10739 # Check whether --with-included-gettext was given.
10740 if test "${with_included_gettext+set}" = set; then :
10741 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10742 else
10743 nls_cv_force_use_gnu_gettext=no
10744 fi
10745
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10747 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10748
10749 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10750 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10751
10752
10753 if test $gt_api_version -ge 3; then
10754 gt_revision_test_code='
10755 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10756 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10757 #endif
10758 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10759 '
10760 else
10761 gt_revision_test_code=
10762 fi
10763 if test $gt_api_version -ge 2; then
10764 gt_expression_test_code=' + * ngettext ("", "", 0)'
10765 else
10766 gt_expression_test_code=
10767 fi
10768
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10770 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10771 if eval \${$gt_func_gnugettext_libc+:} false; then :
10772 $as_echo_n "(cached) " >&6
10773 else
10774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10775 /* end confdefs.h. */
10776
10777 #include <libintl.h>
10778 $gt_revision_test_code
10779 extern int _nl_msg_cat_cntr;
10780 extern int *_nl_domain_bindings;
10781
10782 int
10783 main ()
10784 {
10785
10786 bindtextdomain ("", "");
10787 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10788
10789 ;
10790 return 0;
10791 }
10792 _ACEOF
10793 if ac_fn_c_try_link "$LINENO"; then :
10794 eval "$gt_func_gnugettext_libc=yes"
10795 else
10796 eval "$gt_func_gnugettext_libc=no"
10797 fi
10798 rm -f core conftest.err conftest.$ac_objext \
10799 conftest$ac_exeext conftest.$ac_ext
10800 fi
10801 eval ac_res=\$$gt_func_gnugettext_libc
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10803 $as_echo "$ac_res" >&6; }
10804
10805 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10806
10807
10808
10809
10810
10811
10812
10813
10814 use_additional=yes
10815
10816 acl_save_prefix="$prefix"
10817 prefix="$acl_final_prefix"
10818 acl_save_exec_prefix="$exec_prefix"
10819 exec_prefix="$acl_final_exec_prefix"
10820
10821 eval additional_includedir=\"$includedir\"
10822 eval additional_libdir=\"$libdir\"
10823
10824 exec_prefix="$acl_save_exec_prefix"
10825 prefix="$acl_save_prefix"
10826
10827
10828 # Check whether --with-libintl-prefix was given.
10829 if test "${with_libintl_prefix+set}" = set; then :
10830 withval=$with_libintl_prefix;
10831 if test "X$withval" = "Xno"; then
10832 use_additional=no
10833 else
10834 if test "X$withval" = "X"; then
10835
10836 acl_save_prefix="$prefix"
10837 prefix="$acl_final_prefix"
10838 acl_save_exec_prefix="$exec_prefix"
10839 exec_prefix="$acl_final_exec_prefix"
10840
10841 eval additional_includedir=\"$includedir\"
10842 eval additional_libdir=\"$libdir\"
10843
10844 exec_prefix="$acl_save_exec_prefix"
10845 prefix="$acl_save_prefix"
10846
10847 else
10848 additional_includedir="$withval/include"
10849 additional_libdir="$withval/$acl_libdirstem"
10850 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10851 && ! test -d "$withval/$acl_libdirstem"; then
10852 additional_libdir="$withval/$acl_libdirstem2"
10853 fi
10854 fi
10855 fi
10856
10857 fi
10858
10859 LIBINTL=
10860 LTLIBINTL=
10861 INCINTL=
10862 LIBINTL_PREFIX=
10863 HAVE_LIBINTL=
10864 rpathdirs=
10865 ltrpathdirs=
10866 names_already_handled=
10867 names_next_round='intl '
10868 while test -n "$names_next_round"; do
10869 names_this_round="$names_next_round"
10870 names_next_round=
10871 for name in $names_this_round; do
10872 already_handled=
10873 for n in $names_already_handled; do
10874 if test "$n" = "$name"; then
10875 already_handled=yes
10876 break
10877 fi
10878 done
10879 if test -z "$already_handled"; then
10880 names_already_handled="$names_already_handled $name"
10881 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10882 eval value=\"\$HAVE_LIB$uppername\"
10883 if test -n "$value"; then
10884 if test "$value" = yes; then
10885 eval value=\"\$LIB$uppername\"
10886 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10887 eval value=\"\$LTLIB$uppername\"
10888 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10889 else
10890 :
10891 fi
10892 else
10893 found_dir=
10894 found_la=
10895 found_so=
10896 found_a=
10897 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10898 if test -n "$acl_shlibext"; then
10899 shrext=".$acl_shlibext" # typically: shrext=.so
10900 else
10901 shrext=
10902 fi
10903 if test $use_additional = yes; then
10904 dir="$additional_libdir"
10905 if test -n "$acl_shlibext"; then
10906 if test -f "$dir/$libname$shrext"; then
10907 found_dir="$dir"
10908 found_so="$dir/$libname$shrext"
10909 else
10910 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10911 ver=`(cd "$dir" && \
10912 for f in "$libname$shrext".*; do echo "$f"; done \
10913 | sed -e "s,^$libname$shrext\\\\.,," \
10914 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10915 | sed 1q ) 2>/dev/null`
10916 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10917 found_dir="$dir"
10918 found_so="$dir/$libname$shrext.$ver"
10919 fi
10920 else
10921 eval library_names=\"$acl_library_names_spec\"
10922 for f in $library_names; do
10923 if test -f "$dir/$f"; then
10924 found_dir="$dir"
10925 found_so="$dir/$f"
10926 break
10927 fi
10928 done
10929 fi
10930 fi
10931 fi
10932 if test "X$found_dir" = "X"; then
10933 if test -f "$dir/$libname.$acl_libext"; then
10934 found_dir="$dir"
10935 found_a="$dir/$libname.$acl_libext"
10936 fi
10937 fi
10938 if test "X$found_dir" != "X"; then
10939 if test -f "$dir/$libname.la"; then
10940 found_la="$dir/$libname.la"
10941 fi
10942 fi
10943 fi
10944 if test "X$found_dir" = "X"; then
10945 for x in $LDFLAGS $LTLIBINTL; do
10946
10947 acl_save_prefix="$prefix"
10948 prefix="$acl_final_prefix"
10949 acl_save_exec_prefix="$exec_prefix"
10950 exec_prefix="$acl_final_exec_prefix"
10951 eval x=\"$x\"
10952 exec_prefix="$acl_save_exec_prefix"
10953 prefix="$acl_save_prefix"
10954
10955 case "$x" in
10956 -L*)
10957 dir=`echo "X$x" | sed -e 's/^X-L//'`
10958 if test -n "$acl_shlibext"; then
10959 if test -f "$dir/$libname$shrext"; then
10960 found_dir="$dir"
10961 found_so="$dir/$libname$shrext"
10962 else
10963 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10964 ver=`(cd "$dir" && \
10965 for f in "$libname$shrext".*; do echo "$f"; done \
10966 | sed -e "s,^$libname$shrext\\\\.,," \
10967 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10968 | sed 1q ) 2>/dev/null`
10969 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10970 found_dir="$dir"
10971 found_so="$dir/$libname$shrext.$ver"
10972 fi
10973 else
10974 eval library_names=\"$acl_library_names_spec\"
10975 for f in $library_names; do
10976 if test -f "$dir/$f"; then
10977 found_dir="$dir"
10978 found_so="$dir/$f"
10979 break
10980 fi
10981 done
10982 fi
10983 fi
10984 fi
10985 if test "X$found_dir" = "X"; then
10986 if test -f "$dir/$libname.$acl_libext"; then
10987 found_dir="$dir"
10988 found_a="$dir/$libname.$acl_libext"
10989 fi
10990 fi
10991 if test "X$found_dir" != "X"; then
10992 if test -f "$dir/$libname.la"; then
10993 found_la="$dir/$libname.la"
10994 fi
10995 fi
10996 ;;
10997 esac
10998 if test "X$found_dir" != "X"; then
10999 break
11000 fi
11001 done
11002 fi
11003 if test "X$found_dir" != "X"; then
11004 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11005 if test "X$found_so" != "X"; then
11006 if test "$enable_rpath" = no \
11007 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11008 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
11009 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11010 else
11011 haveit=
11012 for x in $ltrpathdirs; do
11013 if test "X$x" = "X$found_dir"; then
11014 haveit=yes
11015 break
11016 fi
11017 done
11018 if test -z "$haveit"; then
11019 ltrpathdirs="$ltrpathdirs $found_dir"
11020 fi
11021 if test "$acl_hardcode_direct" = yes; then
11022 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11023 else
11024 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11025 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11026 haveit=
11027 for x in $rpathdirs; do
11028 if test "X$x" = "X$found_dir"; then
11029 haveit=yes
11030 break
11031 fi
11032 done
11033 if test -z "$haveit"; then
11034 rpathdirs="$rpathdirs $found_dir"
11035 fi
11036 else
11037 haveit=
11038 for x in $LDFLAGS $LIBINTL; do
11039
11040 acl_save_prefix="$prefix"
11041 prefix="$acl_final_prefix"
11042 acl_save_exec_prefix="$exec_prefix"
11043 exec_prefix="$acl_final_exec_prefix"
11044 eval x=\"$x\"
11045 exec_prefix="$acl_save_exec_prefix"
11046 prefix="$acl_save_prefix"
11047
11048 if test "X$x" = "X-L$found_dir"; then
11049 haveit=yes
11050 break
11051 fi
11052 done
11053 if test -z "$haveit"; then
11054 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11055 fi
11056 if test "$acl_hardcode_minus_L" != no; then
11057 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11058 else
11059 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11060 fi
11061 fi
11062 fi
11063 fi
11064 else
11065 if test "X$found_a" != "X"; then
11066 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11067 else
11068 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11069 fi
11070 fi
11071 additional_includedir=
11072 case "$found_dir" in
11073 */$acl_libdirstem | */$acl_libdirstem/)
11074 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11075 if test "$name" = 'intl'; then
11076 LIBINTL_PREFIX="$basedir"
11077 fi
11078 additional_includedir="$basedir/include"
11079 ;;
11080 */$acl_libdirstem2 | */$acl_libdirstem2/)
11081 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11082 if test "$name" = 'intl'; then
11083 LIBINTL_PREFIX="$basedir"
11084 fi
11085 additional_includedir="$basedir/include"
11086 ;;
11087 esac
11088 if test "X$additional_includedir" != "X"; then
11089 if test "X$additional_includedir" != "X/usr/include"; then
11090 haveit=
11091 if test "X$additional_includedir" = "X/usr/local/include"; then
11092 if test -n "$GCC"; then
11093 case $host_os in
11094 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11095 esac
11096 fi
11097 fi
11098 if test -z "$haveit"; then
11099 for x in $CPPFLAGS $INCINTL; do
11100
11101 acl_save_prefix="$prefix"
11102 prefix="$acl_final_prefix"
11103 acl_save_exec_prefix="$exec_prefix"
11104 exec_prefix="$acl_final_exec_prefix"
11105 eval x=\"$x\"
11106 exec_prefix="$acl_save_exec_prefix"
11107 prefix="$acl_save_prefix"
11108
11109 if test "X$x" = "X-I$additional_includedir"; then
11110 haveit=yes
11111 break
11112 fi
11113 done
11114 if test -z "$haveit"; then
11115 if test -d "$additional_includedir"; then
11116 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11117 fi
11118 fi
11119 fi
11120 fi
11121 fi
11122 if test -n "$found_la"; then
11123 save_libdir="$libdir"
11124 case "$found_la" in
11125 */* | *\\*) . "$found_la" ;;
11126 *) . "./$found_la" ;;
11127 esac
11128 libdir="$save_libdir"
11129 for dep in $dependency_libs; do
11130 case "$dep" in
11131 -L*)
11132 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11133 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11134 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11135 haveit=
11136 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11137 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11138 if test -n "$GCC"; then
11139 case $host_os in
11140 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11141 esac
11142 fi
11143 fi
11144 if test -z "$haveit"; then
11145 haveit=
11146 for x in $LDFLAGS $LIBINTL; do
11147
11148 acl_save_prefix="$prefix"
11149 prefix="$acl_final_prefix"
11150 acl_save_exec_prefix="$exec_prefix"
11151 exec_prefix="$acl_final_exec_prefix"
11152 eval x=\"$x\"
11153 exec_prefix="$acl_save_exec_prefix"
11154 prefix="$acl_save_prefix"
11155
11156 if test "X$x" = "X-L$additional_libdir"; then
11157 haveit=yes
11158 break
11159 fi
11160 done
11161 if test -z "$haveit"; then
11162 if test -d "$additional_libdir"; then
11163 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11164 fi
11165 fi
11166 haveit=
11167 for x in $LDFLAGS $LTLIBINTL; do
11168
11169 acl_save_prefix="$prefix"
11170 prefix="$acl_final_prefix"
11171 acl_save_exec_prefix="$exec_prefix"
11172 exec_prefix="$acl_final_exec_prefix"
11173 eval x=\"$x\"
11174 exec_prefix="$acl_save_exec_prefix"
11175 prefix="$acl_save_prefix"
11176
11177 if test "X$x" = "X-L$additional_libdir"; then
11178 haveit=yes
11179 break
11180 fi
11181 done
11182 if test -z "$haveit"; then
11183 if test -d "$additional_libdir"; then
11184 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11185 fi
11186 fi
11187 fi
11188 fi
11189 ;;
11190 -R*)
11191 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11192 if test "$enable_rpath" != no; then
11193 haveit=
11194 for x in $rpathdirs; do
11195 if test "X$x" = "X$dir"; then
11196 haveit=yes
11197 break
11198 fi
11199 done
11200 if test -z "$haveit"; then
11201 rpathdirs="$rpathdirs $dir"
11202 fi
11203 haveit=
11204 for x in $ltrpathdirs; do
11205 if test "X$x" = "X$dir"; then
11206 haveit=yes
11207 break
11208 fi
11209 done
11210 if test -z "$haveit"; then
11211 ltrpathdirs="$ltrpathdirs $dir"
11212 fi
11213 fi
11214 ;;
11215 -l*)
11216 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11217 ;;
11218 *.la)
11219 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11220 ;;
11221 *)
11222 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11223 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11224 ;;
11225 esac
11226 done
11227 fi
11228 else
11229 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11230 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11231 fi
11232 fi
11233 fi
11234 done
11235 done
11236 if test "X$rpathdirs" != "X"; then
11237 if test -n "$acl_hardcode_libdir_separator"; then
11238 alldirs=
11239 for found_dir in $rpathdirs; do
11240 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11241 done
11242 acl_save_libdir="$libdir"
11243 libdir="$alldirs"
11244 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11245 libdir="$acl_save_libdir"
11246 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11247 else
11248 for found_dir in $rpathdirs; do
11249 acl_save_libdir="$libdir"
11250 libdir="$found_dir"
11251 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11252 libdir="$acl_save_libdir"
11253 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11254 done
11255 fi
11256 fi
11257 if test "X$ltrpathdirs" != "X"; then
11258 for found_dir in $ltrpathdirs; do
11259 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11260 done
11261 fi
11262
11263
11264
11265
11266
11267
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11269 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11270 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11271 $as_echo_n "(cached) " >&6
11272 else
11273 gt_save_CPPFLAGS="$CPPFLAGS"
11274 CPPFLAGS="$CPPFLAGS $INCINTL"
11275 gt_save_LIBS="$LIBS"
11276 LIBS="$LIBS $LIBINTL"
11277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11278 /* end confdefs.h. */
11279
11280 #include <libintl.h>
11281 $gt_revision_test_code
11282 extern int _nl_msg_cat_cntr;
11283 extern
11284 #ifdef __cplusplus
11285 "C"
11286 #endif
11287 const char *_nl_expand_alias (const char *);
11288
11289 int
11290 main ()
11291 {
11292
11293 bindtextdomain ("", "");
11294 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11295
11296 ;
11297 return 0;
11298 }
11299 _ACEOF
11300 if ac_fn_c_try_link "$LINENO"; then :
11301 eval "$gt_func_gnugettext_libintl=yes"
11302 else
11303 eval "$gt_func_gnugettext_libintl=no"
11304 fi
11305 rm -f core conftest.err conftest.$ac_objext \
11306 conftest$ac_exeext conftest.$ac_ext
11307 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11308 LIBS="$LIBS $LIBICONV"
11309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11310 /* end confdefs.h. */
11311
11312 #include <libintl.h>
11313 $gt_revision_test_code
11314 extern int _nl_msg_cat_cntr;
11315 extern
11316 #ifdef __cplusplus
11317 "C"
11318 #endif
11319 const char *_nl_expand_alias (const char *);
11320
11321 int
11322 main ()
11323 {
11324
11325 bindtextdomain ("", "");
11326 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11327
11328 ;
11329 return 0;
11330 }
11331 _ACEOF
11332 if ac_fn_c_try_link "$LINENO"; then :
11333 LIBINTL="$LIBINTL $LIBICONV"
11334 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11335 eval "$gt_func_gnugettext_libintl=yes"
11336
11337 fi
11338 rm -f core conftest.err conftest.$ac_objext \
11339 conftest$ac_exeext conftest.$ac_ext
11340 fi
11341 CPPFLAGS="$gt_save_CPPFLAGS"
11342 LIBS="$gt_save_LIBS"
11343 fi
11344 eval ac_res=\$$gt_func_gnugettext_libintl
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11346 $as_echo "$ac_res" >&6; }
11347 fi
11348
11349 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11350 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11351 && test "$PACKAGE" != gettext-runtime \
11352 && test "$PACKAGE" != gettext-tools; }; then
11353 gt_use_preinstalled_gnugettext=yes
11354 else
11355 LIBINTL=
11356 LTLIBINTL=
11357 INCINTL=
11358 fi
11359
11360
11361 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11362 nls_cv_use_gnu_gettext=yes
11363 fi
11364 fi
11365
11366 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11367 BUILD_INCLUDED_LIBINTL=yes
11368 USE_INCLUDED_LIBINTL=yes
11369 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11370 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11371 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11372 fi
11373
11374 CATOBJEXT=
11375 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11376 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11377 CATOBJEXT=.gmo
11378 fi
11379
11380
11381 if test -n "$INTL_MACOSX_LIBS"; then
11382 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11383 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11384 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11385 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11386 fi
11387 fi
11388
11389 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11390 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11391
11392 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11393
11394 else
11395 USE_NLS=no
11396 fi
11397 fi
11398
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11400 $as_echo_n "checking whether to use NLS... " >&6; }
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11402 $as_echo "$USE_NLS" >&6; }
11403 if test "$USE_NLS" = "yes"; then
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11405 $as_echo_n "checking where the gettext function comes from... " >&6; }
11406 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11407 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11408 gt_source="external libintl"
11409 else
11410 gt_source="libc"
11411 fi
11412 else
11413 gt_source="included intl directory"
11414 fi
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11416 $as_echo "$gt_source" >&6; }
11417 fi
11418
11419 if test "$USE_NLS" = "yes"; then
11420
11421 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11422 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11424 $as_echo_n "checking how to link with libintl... " >&6; }
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11426 $as_echo "$LIBINTL" >&6; }
11427
11428 for element in $INCINTL; do
11429 haveit=
11430 for x in $CPPFLAGS; do
11431
11432 acl_save_prefix="$prefix"
11433 prefix="$acl_final_prefix"
11434 acl_save_exec_prefix="$exec_prefix"
11435 exec_prefix="$acl_final_exec_prefix"
11436 eval x=\"$x\"
11437 exec_prefix="$acl_save_exec_prefix"
11438 prefix="$acl_save_prefix"
11439
11440 if test "X$x" = "X$element"; then
11441 haveit=yes
11442 break
11443 fi
11444 done
11445 if test -z "$haveit"; then
11446 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11447 fi
11448 done
11449
11450 fi
11451
11452
11453 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11454
11455
11456 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11457
11458 fi
11459
11460 POSUB=po
11461 fi
11462
11463
11464 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11465 BUILD_INCLUDED_LIBINTL=yes
11466 fi
11467
11468
11469
11470
11471
11472 nls_cv_header_intl=
11473 nls_cv_header_libgt=
11474
11475 DATADIRNAME=share
11476
11477
11478 INSTOBJEXT=.mo
11479
11480
11481 GENCAT=gencat
11482
11483
11484 INTLOBJS=
11485 if test "$USE_INCLUDED_LIBINTL" = yes; then
11486 INTLOBJS="\$(GETTOBJS)"
11487 fi
11488
11489
11490 INTL_LIBTOOL_SUFFIX_PREFIX=
11491
11492
11493
11494 INTLLIBS="$LIBINTL"
11495
11496
11497
11498
11499
11500
11501
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11503 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11504 set x ${MAKE-make}
11505 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11506 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11507 $as_echo_n "(cached) " >&6
11508 else
11509 cat >conftest.make <<\_ACEOF
11510 SHELL = /bin/sh
11511 all:
11512 @echo '@@@%%%=$(MAKE)=@@@%%%'
11513 _ACEOF
11514 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11515 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11516 *@@@%%%=?*=@@@%%%*)
11517 eval ac_cv_prog_make_${ac_make}_set=yes;;
11518 *)
11519 eval ac_cv_prog_make_${ac_make}_set=no;;
11520 esac
11521 rm -f conftest.make
11522 fi
11523 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11525 $as_echo "yes" >&6; }
11526 SET_MAKE=
11527 else
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11529 $as_echo "no" >&6; }
11530 SET_MAKE="MAKE=${MAKE-make}"
11531 fi
11532
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11534 $as_echo_n "checking for GNU make... " >&6; }
11535 if ${_cv_gnu_make_command+:} false; then :
11536 $as_echo_n "(cached) " >&6
11537 else
11538 _cv_gnu_make_command='' ;
11539 if test -n "$FORCE_NATIVE_MAKE" ; then
11540 MAKES="make"
11541 else
11542 MAKES="make gmake gnumake"
11543 fi
11544 for a in "$MAKE" $MAKES ; do
11545 if test -z "$a" ; then continue ; fi ;
11546 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11547 _cv_gnu_make_command=$a ;
11548 break;
11549 fi
11550 done ;
11551
11552 fi
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11554 $as_echo "$_cv_gnu_make_command" >&6; } ;
11555 if test "x$_cv_gnu_make_command" != "x" ; then
11556 ifGNUmake='' ;
11557 ifNotGNUmake='#' ;
11558 else
11559 ifGNUmake='#' ;
11560 ifNotGNUmake='' ;
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11562 $as_echo "\"Not found\"" >&6; };
11563 fi
11564
11565
11566
11567 # Extract the first word of "ln", so it can be a program name with args.
11568 set dummy ln; ac_word=$2
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11570 $as_echo_n "checking for $ac_word... " >&6; }
11571 if ${ac_cv_path_LN+:} false; then :
11572 $as_echo_n "(cached) " >&6
11573 else
11574 case $LN in
11575 [\\/]* | ?:[\\/]*)
11576 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11577 ;;
11578 *)
11579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11580 for as_dir in $PATH
11581 do
11582 IFS=$as_save_IFS
11583 test -z "$as_dir" && as_dir=.
11584 for ac_exec_ext in '' $ac_executable_extensions; do
11585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11586 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11588 break 2
11589 fi
11590 done
11591 done
11592 IFS=$as_save_IFS
11593
11594 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11595 ;;
11596 esac
11597 fi
11598 LN=$ac_cv_path_LN
11599 if test -n "$LN"; then
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11601 $as_echo "$LN" >&6; }
11602 else
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11604 $as_echo "no" >&6; }
11605 fi
11606
11607
11608
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11610 $as_echo_n "checking whether ln -s works... " >&6; }
11611 LN_S=$as_ln_s
11612 if test "$LN_S" = "ln -s"; then
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11614 $as_echo "yes" >&6; }
11615 else
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11617 $as_echo "no, using $LN_S" >&6; }
11618 fi
11619
11620 # Extract the first word of "mv", so it can be a program name with args.
11621 set dummy mv; ac_word=$2
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11623 $as_echo_n "checking for $ac_word... " >&6; }
11624 if ${ac_cv_path_MV+:} false; then :
11625 $as_echo_n "(cached) " >&6
11626 else
11627 case $MV in
11628 [\\/]* | ?:[\\/]*)
11629 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11630 ;;
11631 *)
11632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11633 for as_dir in $PATH
11634 do
11635 IFS=$as_save_IFS
11636 test -z "$as_dir" && as_dir=.
11637 for ac_exec_ext in '' $ac_executable_extensions; do
11638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11639 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11641 break 2
11642 fi
11643 done
11644 done
11645 IFS=$as_save_IFS
11646
11647 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11648 ;;
11649 esac
11650 fi
11651 MV=$ac_cv_path_MV
11652 if test -n "$MV"; then
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11654 $as_echo "$MV" >&6; }
11655 else
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11657 $as_echo "no" >&6; }
11658 fi
11659
11660
11661 # Extract the first word of "cp", so it can be a program name with args.
11662 set dummy cp; ac_word=$2
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11664 $as_echo_n "checking for $ac_word... " >&6; }
11665 if ${ac_cv_path_CP+:} false; then :
11666 $as_echo_n "(cached) " >&6
11667 else
11668 case $CP in
11669 [\\/]* | ?:[\\/]*)
11670 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11671 ;;
11672 *)
11673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11674 for as_dir in $PATH
11675 do
11676 IFS=$as_save_IFS
11677 test -z "$as_dir" && as_dir=.
11678 for ac_exec_ext in '' $ac_executable_extensions; do
11679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11680 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11682 break 2
11683 fi
11684 done
11685 done
11686 IFS=$as_save_IFS
11687
11688 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11689 ;;
11690 esac
11691 fi
11692 CP=$ac_cv_path_CP
11693 if test -n "$CP"; then
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11695 $as_echo "$CP" >&6; }
11696 else
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11698 $as_echo "no" >&6; }
11699 fi
11700
11701
11702 # Extract the first word of "rm", so it can be a program name with args.
11703 set dummy rm; ac_word=$2
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11705 $as_echo_n "checking for $ac_word... " >&6; }
11706 if ${ac_cv_path_RM+:} false; then :
11707 $as_echo_n "(cached) " >&6
11708 else
11709 case $RM in
11710 [\\/]* | ?:[\\/]*)
11711 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11712 ;;
11713 *)
11714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11715 for as_dir in $PATH
11716 do
11717 IFS=$as_save_IFS
11718 test -z "$as_dir" && as_dir=.
11719 for ac_exec_ext in '' $ac_executable_extensions; do
11720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11721 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11723 break 2
11724 fi
11725 done
11726 done
11727 IFS=$as_save_IFS
11728
11729 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11730 ;;
11731 esac
11732 fi
11733 RM=$ac_cv_path_RM
11734 if test -n "$RM"; then
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11736 $as_echo "$RM" >&6; }
11737 else
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11739 $as_echo "no" >&6; }
11740 fi
11741
11742
11743 # Extract the first word of "chmod", so it can be a program name with args.
11744 set dummy chmod; ac_word=$2
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11746 $as_echo_n "checking for $ac_word... " >&6; }
11747 if ${ac_cv_path_CHMOD+:} false; then :
11748 $as_echo_n "(cached) " >&6
11749 else
11750 case $CHMOD in
11751 [\\/]* | ?:[\\/]*)
11752 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11753 ;;
11754 *)
11755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11756 for as_dir in $PATH
11757 do
11758 IFS=$as_save_IFS
11759 test -z "$as_dir" && as_dir=.
11760 for ac_exec_ext in '' $ac_executable_extensions; do
11761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11762 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11764 break 2
11765 fi
11766 done
11767 done
11768 IFS=$as_save_IFS
11769
11770 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11771 ;;
11772 esac
11773 fi
11774 CHMOD=$ac_cv_path_CHMOD
11775 if test -n "$CHMOD"; then
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11777 $as_echo "$CHMOD" >&6; }
11778 else
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11780 $as_echo "no" >&6; }
11781 fi
11782
11783
11784 for ac_prog in gawk mawk nawk awk
11785 do
11786 # Extract the first word of "$ac_prog", so it can be a program name with args.
11787 set dummy $ac_prog; ac_word=$2
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11789 $as_echo_n "checking for $ac_word... " >&6; }
11790 if ${ac_cv_prog_AWK+:} false; then :
11791 $as_echo_n "(cached) " >&6
11792 else
11793 if test -n "$AWK"; then
11794 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11795 else
11796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11797 for as_dir in $PATH
11798 do
11799 IFS=$as_save_IFS
11800 test -z "$as_dir" && as_dir=.
11801 for ac_exec_ext in '' $ac_executable_extensions; do
11802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11803 ac_cv_prog_AWK="$ac_prog"
11804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11805 break 2
11806 fi
11807 done
11808 done
11809 IFS=$as_save_IFS
11810
11811 fi
11812 fi
11813 AWK=$ac_cv_prog_AWK
11814 if test -n "$AWK"; then
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11816 $as_echo "$AWK" >&6; }
11817 else
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11819 $as_echo "no" >&6; }
11820 fi
11821
11822
11823 test -n "$AWK" && break
11824 done
11825
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11827 $as_echo_n "checking for egrep... " >&6; }
11828 if ${ac_cv_path_EGREP+:} false; then :
11829 $as_echo_n "(cached) " >&6
11830 else
11831 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11832 then ac_cv_path_EGREP="$GREP -E"
11833 else
11834 if test -z "$EGREP"; then
11835 ac_path_EGREP_found=false
11836 # Loop through the user's path and test for each of PROGNAME-LIST
11837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11838 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11839 do
11840 IFS=$as_save_IFS
11841 test -z "$as_dir" && as_dir=.
11842 for ac_prog in egrep; do
11843 for ac_exec_ext in '' $ac_executable_extensions; do
11844 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11845 as_fn_executable_p "$ac_path_EGREP" || continue
11846 # Check for GNU ac_path_EGREP and select it if it is found.
11847 # Check for GNU $ac_path_EGREP
11848 case `"$ac_path_EGREP" --version 2>&1` in
11849 *GNU*)
11850 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11851 *)
11852 ac_count=0
11853 $as_echo_n 0123456789 >"conftest.in"
11854 while :
11855 do
11856 cat "conftest.in" "conftest.in" >"conftest.tmp"
11857 mv "conftest.tmp" "conftest.in"
11858 cp "conftest.in" "conftest.nl"
11859 $as_echo 'EGREP' >> "conftest.nl"
11860 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11861 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11862 as_fn_arith $ac_count + 1 && ac_count=$as_val
11863 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11864 # Best one so far, save it but keep looking for a better one
11865 ac_cv_path_EGREP="$ac_path_EGREP"
11866 ac_path_EGREP_max=$ac_count
11867 fi
11868 # 10*(2^10) chars as input seems more than enough
11869 test $ac_count -gt 10 && break
11870 done
11871 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11872 esac
11873
11874 $ac_path_EGREP_found && break 3
11875 done
11876 done
11877 done
11878 IFS=$as_save_IFS
11879 if test -z "$ac_cv_path_EGREP"; then
11880 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11881 fi
11882 else
11883 ac_cv_path_EGREP=$EGREP
11884 fi
11885
11886 fi
11887 fi
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11889 $as_echo "$ac_cv_path_EGREP" >&6; }
11890 EGREP="$ac_cv_path_EGREP"
11891
11892
11893 # Extract the first word of "sed", so it can be a program name with args.
11894 set dummy sed; ac_word=$2
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11896 $as_echo_n "checking for $ac_word... " >&6; }
11897 if ${ac_cv_path_SED+:} false; then :
11898 $as_echo_n "(cached) " >&6
11899 else
11900 case $SED in
11901 [\\/]* | ?:[\\/]*)
11902 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11903 ;;
11904 *)
11905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906 for as_dir in $PATH
11907 do
11908 IFS=$as_save_IFS
11909 test -z "$as_dir" && as_dir=.
11910 for ac_exec_ext in '' $ac_executable_extensions; do
11911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11912 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11914 break 2
11915 fi
11916 done
11917 done
11918 IFS=$as_save_IFS
11919
11920 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11921 ;;
11922 esac
11923 fi
11924 SED=$ac_cv_path_SED
11925 if test -n "$SED"; then
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11927 $as_echo "$SED" >&6; }
11928 else
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11930 $as_echo "no" >&6; }
11931 fi
11932
11933
11934 # Extract the first word of "perl", so it can be a program name with args.
11935 set dummy perl; ac_word=$2
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11937 $as_echo_n "checking for $ac_word... " >&6; }
11938 if ${ac_cv_path_PERL+:} false; then :
11939 $as_echo_n "(cached) " >&6
11940 else
11941 case $PERL in
11942 [\\/]* | ?:[\\/]*)
11943 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11944 ;;
11945 *)
11946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11947 for as_dir in $PATH
11948 do
11949 IFS=$as_save_IFS
11950 test -z "$as_dir" && as_dir=.
11951 for ac_exec_ext in '' $ac_executable_extensions; do
11952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11953 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11955 break 2
11956 fi
11957 done
11958 done
11959 IFS=$as_save_IFS
11960
11961 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11962 ;;
11963 esac
11964 fi
11965 PERL=$ac_cv_path_PERL
11966 if test -n "$PERL"; then
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11968 $as_echo "$PERL" >&6; }
11969 else
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11971 $as_echo "no" >&6; }
11972 fi
11973
11974
11975 # Extract the first word of "ldconfig", so it can be a program name with args.
11976 set dummy ldconfig; ac_word=$2
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11978 $as_echo_n "checking for $ac_word... " >&6; }
11979 if ${ac_cv_path_LDCONFIG+:} false; then :
11980 $as_echo_n "(cached) " >&6
11981 else
11982 case $LDCONFIG in
11983 [\\/]* | ?:[\\/]*)
11984 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11985 ;;
11986 *)
11987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11988 for as_dir in $PATH
11989 do
11990 IFS=$as_save_IFS
11991 test -z "$as_dir" && as_dir=.
11992 for ac_exec_ext in '' $ac_executable_extensions; do
11993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11994 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11996 break 2
11997 fi
11998 done
11999 done
12000 IFS=$as_save_IFS
12001
12002 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12003 ;;
12004 esac
12005 fi
12006 LDCONFIG=$ac_cv_path_LDCONFIG
12007 if test -n "$LDCONFIG"; then
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
12009 $as_echo "$LDCONFIG" >&6; }
12010 else
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12012 $as_echo "no" >&6; }
12013 fi
12014
12015
12016 if test -n "$ac_tool_prefix"; then
12017 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12018 set dummy ${ac_tool_prefix}ar; ac_word=$2
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12020 $as_echo_n "checking for $ac_word... " >&6; }
12021 if ${ac_cv_prog_AR+:} false; then :
12022 $as_echo_n "(cached) " >&6
12023 else
12024 if test -n "$AR"; then
12025 ac_cv_prog_AR="$AR" # Let the user override the test.
12026 else
12027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12028 for as_dir in $PATH
12029 do
12030 IFS=$as_save_IFS
12031 test -z "$as_dir" && as_dir=.
12032 for ac_exec_ext in '' $ac_executable_extensions; do
12033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12034 ac_cv_prog_AR="${ac_tool_prefix}ar"
12035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12036 break 2
12037 fi
12038 done
12039 done
12040 IFS=$as_save_IFS
12041
12042 fi
12043 fi
12044 AR=$ac_cv_prog_AR
12045 if test -n "$AR"; then
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12047 $as_echo "$AR" >&6; }
12048 else
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12050 $as_echo "no" >&6; }
12051 fi
12052
12053
12054 fi
12055 if test -z "$ac_cv_prog_AR"; then
12056 ac_ct_AR=$AR
12057 # Extract the first word of "ar", so it can be a program name with args.
12058 set dummy ar; ac_word=$2
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12060 $as_echo_n "checking for $ac_word... " >&6; }
12061 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12062 $as_echo_n "(cached) " >&6
12063 else
12064 if test -n "$ac_ct_AR"; then
12065 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12066 else
12067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12068 for as_dir in $PATH
12069 do
12070 IFS=$as_save_IFS
12071 test -z "$as_dir" && as_dir=.
12072 for ac_exec_ext in '' $ac_executable_extensions; do
12073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12074 ac_cv_prog_ac_ct_AR="ar"
12075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12076 break 2
12077 fi
12078 done
12079 done
12080 IFS=$as_save_IFS
12081
12082 fi
12083 fi
12084 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12085 if test -n "$ac_ct_AR"; then
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12087 $as_echo "$ac_ct_AR" >&6; }
12088 else
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12090 $as_echo "no" >&6; }
12091 fi
12092
12093 if test "x$ac_ct_AR" = x; then
12094 AR="ar"
12095 else
12096 case $cross_compiling:$ac_tool_warned in
12097 yes:)
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12100 ac_tool_warned=yes ;;
12101 esac
12102 AR=$ac_ct_AR
12103 fi
12104 else
12105 AR="$ac_cv_prog_AR"
12106 fi
12107
12108 if test -n "$ac_tool_prefix"; then
12109 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12110 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12112 $as_echo_n "checking for $ac_word... " >&6; }
12113 if ${ac_cv_prog_RANLIB+:} false; then :
12114 $as_echo_n "(cached) " >&6
12115 else
12116 if test -n "$RANLIB"; then
12117 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12118 else
12119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12120 for as_dir in $PATH
12121 do
12122 IFS=$as_save_IFS
12123 test -z "$as_dir" && as_dir=.
12124 for ac_exec_ext in '' $ac_executable_extensions; do
12125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12126 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12128 break 2
12129 fi
12130 done
12131 done
12132 IFS=$as_save_IFS
12133
12134 fi
12135 fi
12136 RANLIB=$ac_cv_prog_RANLIB
12137 if test -n "$RANLIB"; then
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12139 $as_echo "$RANLIB" >&6; }
12140 else
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12142 $as_echo "no" >&6; }
12143 fi
12144
12145
12146 fi
12147 if test -z "$ac_cv_prog_RANLIB"; then
12148 ac_ct_RANLIB=$RANLIB
12149 # Extract the first word of "ranlib", so it can be a program name with args.
12150 set dummy ranlib; ac_word=$2
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12152 $as_echo_n "checking for $ac_word... " >&6; }
12153 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12154 $as_echo_n "(cached) " >&6
12155 else
12156 if test -n "$ac_ct_RANLIB"; then
12157 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12158 else
12159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12160 for as_dir in $PATH
12161 do
12162 IFS=$as_save_IFS
12163 test -z "$as_dir" && as_dir=.
12164 for ac_exec_ext in '' $ac_executable_extensions; do
12165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12166 ac_cv_prog_ac_ct_RANLIB="ranlib"
12167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12168 break 2
12169 fi
12170 done
12171 done
12172 IFS=$as_save_IFS
12173
12174 fi
12175 fi
12176 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12177 if test -n "$ac_ct_RANLIB"; then
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12179 $as_echo "$ac_ct_RANLIB" >&6; }
12180 else
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12182 $as_echo "no" >&6; }
12183 fi
12184
12185 if test "x$ac_ct_RANLIB" = x; then
12186 RANLIB=":"
12187 else
12188 case $cross_compiling:$ac_tool_warned in
12189 yes:)
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12192 ac_tool_warned=yes ;;
12193 esac
12194 RANLIB=$ac_ct_RANLIB
12195 fi
12196 else
12197 RANLIB="$ac_cv_prog_RANLIB"
12198 fi
12199
12200 if test -n "$ac_tool_prefix"; then
12201 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12202 set dummy ${ac_tool_prefix}strip; ac_word=$2
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12204 $as_echo_n "checking for $ac_word... " >&6; }
12205 if ${ac_cv_prog_STRIP+:} false; then :
12206 $as_echo_n "(cached) " >&6
12207 else
12208 if test -n "$STRIP"; then
12209 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12210 else
12211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12212 for as_dir in $PATH
12213 do
12214 IFS=$as_save_IFS
12215 test -z "$as_dir" && as_dir=.
12216 for ac_exec_ext in '' $ac_executable_extensions; do
12217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12218 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12220 break 2
12221 fi
12222 done
12223 done
12224 IFS=$as_save_IFS
12225
12226 fi
12227 fi
12228 STRIP=$ac_cv_prog_STRIP
12229 if test -n "$STRIP"; then
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12231 $as_echo "$STRIP" >&6; }
12232 else
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12234 $as_echo "no" >&6; }
12235 fi
12236
12237
12238 fi
12239 if test -z "$ac_cv_prog_STRIP"; then
12240 ac_ct_STRIP=$STRIP
12241 # Extract the first word of "strip", so it can be a program name with args.
12242 set dummy strip; ac_word=$2
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12244 $as_echo_n "checking for $ac_word... " >&6; }
12245 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12246 $as_echo_n "(cached) " >&6
12247 else
12248 if test -n "$ac_ct_STRIP"; then
12249 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12250 else
12251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12252 for as_dir in $PATH
12253 do
12254 IFS=$as_save_IFS
12255 test -z "$as_dir" && as_dir=.
12256 for ac_exec_ext in '' $ac_executable_extensions; do
12257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12258 ac_cv_prog_ac_ct_STRIP="strip"
12259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12260 break 2
12261 fi
12262 done
12263 done
12264 IFS=$as_save_IFS
12265
12266 fi
12267 fi
12268 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12269 if test -n "$ac_ct_STRIP"; then
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12271 $as_echo "$ac_ct_STRIP" >&6; }
12272 else
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12274 $as_echo "no" >&6; }
12275 fi
12276
12277 if test "x$ac_ct_STRIP" = x; then
12278 STRIP=":"
12279 else
12280 case $cross_compiling:$ac_tool_warned in
12281 yes:)
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12284 ac_tool_warned=yes ;;
12285 esac
12286 STRIP=$ac_ct_STRIP
12287 fi
12288 else
12289 STRIP="$ac_cv_prog_STRIP"
12290 fi
12291
12292 # Extract the first word of "makeinfo", so it can be a program name with args.
12293 set dummy makeinfo; ac_word=$2
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12295 $as_echo_n "checking for $ac_word... " >&6; }
12296 if ${ac_cv_prog_MAKEINFO+:} false; then :
12297 $as_echo_n "(cached) " >&6
12298 else
12299 if test -n "$MAKEINFO"; then
12300 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12301 else
12302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12303 for as_dir in $PATH
12304 do
12305 IFS=$as_save_IFS
12306 test -z "$as_dir" && as_dir=.
12307 for ac_exec_ext in '' $ac_executable_extensions; do
12308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12309 ac_cv_prog_MAKEINFO="makeinfo"
12310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12311 break 2
12312 fi
12313 done
12314 done
12315 IFS=$as_save_IFS
12316
12317 fi
12318 fi
12319 MAKEINFO=$ac_cv_prog_MAKEINFO
12320 if test -n "$MAKEINFO"; then
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12322 $as_echo "$MAKEINFO" >&6; }
12323 else
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12325 $as_echo "no" >&6; }
12326 fi
12327
12328
12329 if test "_$MAKEINFO" = "_"; then
12330 MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
12331 else
12332 case "$MAKEINFO" in
12333 */missing.*)
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12335 *** Makeinfo is missing. Info documentation will not be built." >&5
12336 $as_echo "$as_me: WARNING:
12337 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12338 ;;
12339 *)
12340 ;;
12341 esac
12342 fi
12343
12344
12345 # See if we need a separate native compiler.
12346 if test $cross_compiling = no; then
12347 BUILD_CC="$CC"
12348
12349 else
12350 for ac_prog in gcc cc
12351 do
12352 # Extract the first word of "$ac_prog", so it can be a program name with args.
12353 set dummy $ac_prog; ac_word=$2
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12355 $as_echo_n "checking for $ac_word... " >&6; }
12356 if ${ac_cv_prog_BUILD_CC+:} false; then :
12357 $as_echo_n "(cached) " >&6
12358 else
12359 if test -n "$BUILD_CC"; then
12360 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12361 else
12362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12363 for as_dir in $PATH
12364 do
12365 IFS=$as_save_IFS
12366 test -z "$as_dir" && as_dir=.
12367 for ac_exec_ext in '' $ac_executable_extensions; do
12368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12369 ac_cv_prog_BUILD_CC="$ac_prog"
12370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12371 break 2
12372 fi
12373 done
12374 done
12375 IFS=$as_save_IFS
12376
12377 fi
12378 fi
12379 BUILD_CC=$ac_cv_prog_BUILD_CC
12380 if test -n "$BUILD_CC"; then
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12382 $as_echo "$BUILD_CC" >&6; }
12383 else
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12385 $as_echo "no" >&6; }
12386 fi
12387
12388
12389 test -n "$BUILD_CC" && break
12390 done
12391
12392 fi
12393 for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h attr/xattr.h linux/falloc.h linux/fd.h linux/fsmap.h linux/major.h linux/loop.h linux/types.h net/if_dl.h netinet/in.h sys/acl.h sys/disklabel.h sys/disk.h sys/file.h sys/ioctl.h sys/key.h sys/mkdev.h sys/mman.h sys/mount.h sys/prctl.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysctl.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h sys/xattr.h
12394 do :
12395 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12396 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12397 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12398 cat >>confdefs.h <<_ACEOF
12399 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12400 _ACEOF
12401
12402 fi
12403
12404 done
12405
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12407 $as_echo_n "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12408 DD=
12409 for i in dd gdd ; do
12410 if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12411 DD=$i
12412 break
12413 fi
12414 done
12415 if test -n "$DD" ; then
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12417 $as_echo "$DD" >&6; }
12418 else
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12420 $as_echo "not found, using dd" >&6; }
12421 DD=dd
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12423 $as_echo "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12424 fi
12425
12426
12427 for ac_header in net/if.h
12428 do :
12429 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12430 #if HAVE_SYS_TYPES_H
12431 #include <sys/types.h>
12432 #endif
12433 #if HAVE_SYS_SOCKET
12434 #include <sys/socket.h>
12435 #endif
12436
12437 "
12438 if test "x$ac_cv_header_net_if_h" = xyes; then :
12439 cat >>confdefs.h <<_ACEOF
12440 #define HAVE_NET_IF_H 1
12441 _ACEOF
12442
12443 fi
12444
12445 done
12446
12447 for ac_func in vprintf
12448 do :
12449 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12450 if test "x$ac_cv_func_vprintf" = xyes; then :
12451 cat >>confdefs.h <<_ACEOF
12452 #define HAVE_VPRINTF 1
12453 _ACEOF
12454
12455 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12456 if test "x$ac_cv_func__doprnt" = xyes; then :
12457
12458 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12459
12460 fi
12461
12462 fi
12463 done
12464
12465
12466 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12467 "
12468 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
12469
12470 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12471
12472 fi
12473
12474 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12475 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12476
12477 cat >>confdefs.h <<_ACEOF
12478 #define HAVE_STRUCT_STAT_ST_ATIM 1
12479 _ACEOF
12480
12481
12482 fi
12483
12484 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12485 "
12486 if test "x$ac_cv_type_ssize_t" = xyes; then :
12487
12488 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12489
12490 fi
12491
12492 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12493 "
12494 if test "x$ac_cv_have_decl_llseek" = xyes; then :
12495
12496 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12497
12498 fi
12499
12500 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12501 #define _LARGEFILE64_SOURCE
12502 #include <unistd.h>
12503 "
12504 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
12505
12506 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12507
12508 fi
12509
12510 # The cast to long int works around a bug in the HP C Compiler
12511 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12512 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12513 # This bug is HP SR number 8606223364.
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12515 $as_echo_n "checking size of short... " >&6; }
12516 if ${ac_cv_sizeof_short+:} false; then :
12517 $as_echo_n "(cached) " >&6
12518 else
12519 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12520
12521 else
12522 if test "$ac_cv_type_short" = yes; then
12523 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12525 as_fn_error 77 "cannot compute sizeof (short)
12526 See \`config.log' for more details" "$LINENO" 5; }
12527 else
12528 ac_cv_sizeof_short=0
12529 fi
12530 fi
12531
12532 fi
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12534 $as_echo "$ac_cv_sizeof_short" >&6; }
12535
12536
12537
12538 cat >>confdefs.h <<_ACEOF
12539 #define SIZEOF_SHORT $ac_cv_sizeof_short
12540 _ACEOF
12541
12542
12543 # The cast to long int works around a bug in the HP C Compiler
12544 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12545 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12546 # This bug is HP SR number 8606223364.
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12548 $as_echo_n "checking size of int... " >&6; }
12549 if ${ac_cv_sizeof_int+:} false; then :
12550 $as_echo_n "(cached) " >&6
12551 else
12552 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12553
12554 else
12555 if test "$ac_cv_type_int" = yes; then
12556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12558 as_fn_error 77 "cannot compute sizeof (int)
12559 See \`config.log' for more details" "$LINENO" 5; }
12560 else
12561 ac_cv_sizeof_int=0
12562 fi
12563 fi
12564
12565 fi
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12567 $as_echo "$ac_cv_sizeof_int" >&6; }
12568
12569
12570
12571 cat >>confdefs.h <<_ACEOF
12572 #define SIZEOF_INT $ac_cv_sizeof_int
12573 _ACEOF
12574
12575
12576 # The cast to long int works around a bug in the HP C Compiler
12577 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12578 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12579 # This bug is HP SR number 8606223364.
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12581 $as_echo_n "checking size of long... " >&6; }
12582 if ${ac_cv_sizeof_long+:} false; then :
12583 $as_echo_n "(cached) " >&6
12584 else
12585 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12586
12587 else
12588 if test "$ac_cv_type_long" = yes; then
12589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12591 as_fn_error 77 "cannot compute sizeof (long)
12592 See \`config.log' for more details" "$LINENO" 5; }
12593 else
12594 ac_cv_sizeof_long=0
12595 fi
12596 fi
12597
12598 fi
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12600 $as_echo "$ac_cv_sizeof_long" >&6; }
12601
12602
12603
12604 cat >>confdefs.h <<_ACEOF
12605 #define SIZEOF_LONG $ac_cv_sizeof_long
12606 _ACEOF
12607
12608
12609 # The cast to long int works around a bug in the HP C Compiler
12610 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12611 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12612 # This bug is HP SR number 8606223364.
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12614 $as_echo_n "checking size of long long... " >&6; }
12615 if ${ac_cv_sizeof_long_long+:} false; then :
12616 $as_echo_n "(cached) " >&6
12617 else
12618 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12619
12620 else
12621 if test "$ac_cv_type_long_long" = yes; then
12622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12624 as_fn_error 77 "cannot compute sizeof (long long)
12625 See \`config.log' for more details" "$LINENO" 5; }
12626 else
12627 ac_cv_sizeof_long_long=0
12628 fi
12629 fi
12630
12631 fi
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12633 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12634
12635
12636
12637 cat >>confdefs.h <<_ACEOF
12638 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12639 _ACEOF
12640
12641
12642 # The cast to long int works around a bug in the HP C Compiler
12643 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12644 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12645 # This bug is HP SR number 8606223364.
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12647 $as_echo_n "checking size of off_t... " >&6; }
12648 if ${ac_cv_sizeof_off_t+:} false; then :
12649 $as_echo_n "(cached) " >&6
12650 else
12651 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12652
12653 else
12654 if test "$ac_cv_type_off_t" = yes; then
12655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12657 as_fn_error 77 "cannot compute sizeof (off_t)
12658 See \`config.log' for more details" "$LINENO" 5; }
12659 else
12660 ac_cv_sizeof_off_t=0
12661 fi
12662 fi
12663
12664 fi
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12666 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12667
12668
12669
12670 cat >>confdefs.h <<_ACEOF
12671 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12672 _ACEOF
12673
12674
12675 # The cast to long int works around a bug in the HP C Compiler
12676 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12677 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12678 # This bug is HP SR number 8606223364.
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12680 $as_echo_n "checking size of time_t... " >&6; }
12681 if ${ac_cv_sizeof_time_t+:} false; then :
12682 $as_echo_n "(cached) " >&6
12683 else
12684 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
12685
12686 else
12687 if test "$ac_cv_type_time_t" = yes; then
12688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12690 as_fn_error 77 "cannot compute sizeof (time_t)
12691 See \`config.log' for more details" "$LINENO" 5; }
12692 else
12693 ac_cv_sizeof_time_t=0
12694 fi
12695 fi
12696
12697 fi
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12699 $as_echo "$ac_cv_sizeof_time_t" >&6; }
12700
12701
12702
12703 cat >>confdefs.h <<_ACEOF
12704 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12705 _ACEOF
12706
12707
12708 SIZEOF_SHORT=$ac_cv_sizeof_short
12709 SIZEOF_INT=$ac_cv_sizeof_int
12710 SIZEOF_LONG=$ac_cv_sizeof_long
12711 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12712 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12713 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12714
12715
12716
12717
12718
12719
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12721 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12722 if ${ac_cv_c_bigendian+:} false; then :
12723 $as_echo_n "(cached) " >&6
12724 else
12725 ac_cv_c_bigendian=unknown
12726 # See if we're dealing with a universal compiler.
12727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12728 /* end confdefs.h. */
12729 #ifndef __APPLE_CC__
12730 not a universal capable compiler
12731 #endif
12732 typedef int dummy;
12733
12734 _ACEOF
12735 if ac_fn_c_try_compile "$LINENO"; then :
12736
12737 # Check for potential -arch flags. It is not universal unless
12738 # there are at least two -arch flags with different values.
12739 ac_arch=
12740 ac_prev=
12741 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12742 if test -n "$ac_prev"; then
12743 case $ac_word in
12744 i?86 | x86_64 | ppc | ppc64)
12745 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12746 ac_arch=$ac_word
12747 else
12748 ac_cv_c_bigendian=universal
12749 break
12750 fi
12751 ;;
12752 esac
12753 ac_prev=
12754 elif test "x$ac_word" = "x-arch"; then
12755 ac_prev=arch
12756 fi
12757 done
12758 fi
12759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12760 if test $ac_cv_c_bigendian = unknown; then
12761 # See if sys/param.h defines the BYTE_ORDER macro.
12762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12763 /* end confdefs.h. */
12764 #include <sys/types.h>
12765 #include <sys/param.h>
12766
12767 int
12768 main ()
12769 {
12770 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12771 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12772 && LITTLE_ENDIAN)
12773 bogus endian macros
12774 #endif
12775
12776 ;
12777 return 0;
12778 }
12779 _ACEOF
12780 if ac_fn_c_try_compile "$LINENO"; then :
12781 # It does; now see whether it defined to BIG_ENDIAN or not.
12782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12783 /* end confdefs.h. */
12784 #include <sys/types.h>
12785 #include <sys/param.h>
12786
12787 int
12788 main ()
12789 {
12790 #if BYTE_ORDER != BIG_ENDIAN
12791 not big endian
12792 #endif
12793
12794 ;
12795 return 0;
12796 }
12797 _ACEOF
12798 if ac_fn_c_try_compile "$LINENO"; then :
12799 ac_cv_c_bigendian=yes
12800 else
12801 ac_cv_c_bigendian=no
12802 fi
12803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12804 fi
12805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12806 fi
12807 if test $ac_cv_c_bigendian = unknown; then
12808 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12810 /* end confdefs.h. */
12811 #include <limits.h>
12812
12813 int
12814 main ()
12815 {
12816 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12817 bogus endian macros
12818 #endif
12819
12820 ;
12821 return 0;
12822 }
12823 _ACEOF
12824 if ac_fn_c_try_compile "$LINENO"; then :
12825 # It does; now see whether it defined to _BIG_ENDIAN or not.
12826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12827 /* end confdefs.h. */
12828 #include <limits.h>
12829
12830 int
12831 main ()
12832 {
12833 #ifndef _BIG_ENDIAN
12834 not big endian
12835 #endif
12836
12837 ;
12838 return 0;
12839 }
12840 _ACEOF
12841 if ac_fn_c_try_compile "$LINENO"; then :
12842 ac_cv_c_bigendian=yes
12843 else
12844 ac_cv_c_bigendian=no
12845 fi
12846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12847 fi
12848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12849 fi
12850 if test $ac_cv_c_bigendian = unknown; then
12851 # Compile a test program.
12852 if test "$cross_compiling" = yes; then :
12853 # Try to guess by grepping values from an object file.
12854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12855 /* end confdefs.h. */
12856 short int ascii_mm[] =
12857 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12858 short int ascii_ii[] =
12859 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12860 int use_ascii (int i) {
12861 return ascii_mm[i] + ascii_ii[i];
12862 }
12863 short int ebcdic_ii[] =
12864 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12865 short int ebcdic_mm[] =
12866 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12867 int use_ebcdic (int i) {
12868 return ebcdic_mm[i] + ebcdic_ii[i];
12869 }
12870 extern int foo;
12871
12872 int
12873 main ()
12874 {
12875 return use_ascii (foo) == use_ebcdic (foo);
12876 ;
12877 return 0;
12878 }
12879 _ACEOF
12880 if ac_fn_c_try_compile "$LINENO"; then :
12881 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12882 ac_cv_c_bigendian=yes
12883 fi
12884 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12885 if test "$ac_cv_c_bigendian" = unknown; then
12886 ac_cv_c_bigendian=no
12887 else
12888 # finding both strings is unlikely to happen, but who knows?
12889 ac_cv_c_bigendian=unknown
12890 fi
12891 fi
12892 fi
12893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12894 else
12895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12896 /* end confdefs.h. */
12897 $ac_includes_default
12898 int
12899 main ()
12900 {
12901
12902 /* Are we little or big endian? From Harbison&Steele. */
12903 union
12904 {
12905 long int l;
12906 char c[sizeof (long int)];
12907 } u;
12908 u.l = 1;
12909 return u.c[sizeof (long int) - 1] == 1;
12910
12911 ;
12912 return 0;
12913 }
12914 _ACEOF
12915 if ac_fn_c_try_run "$LINENO"; then :
12916 ac_cv_c_bigendian=no
12917 else
12918 ac_cv_c_bigendian=yes
12919 fi
12920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12921 conftest.$ac_objext conftest.beam conftest.$ac_ext
12922 fi
12923
12924 fi
12925 fi
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12927 $as_echo "$ac_cv_c_bigendian" >&6; }
12928 case $ac_cv_c_bigendian in #(
12929 yes)
12930 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12931 ;; #(
12932 no)
12933 ;; #(
12934 universal)
12935
12936 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12937
12938 ;; #(
12939 *)
12940 as_fn_error $? "unknown endianness
12941 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12942 esac
12943
12944 if test $cross_compiling = no; then
12945 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12946 else
12947 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12948 fi
12949 ASM_TYPES_HEADER=./asm_types.h
12950
12951 echo "/* These defines are needed for the public ext2fs.h header file */" \
12952 > public_config.h
12953 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12954 uniq tmp_config.$$ >> public_config.h
12955 else
12956 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12957 fi
12958 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12959 uniq tmp_config.$$ >> public_config.h
12960 else
12961 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12962 fi
12963 rm -f tmp_config.$$
12964 PUBLIC_CONFIG_HEADER=./public_config.h
12965
12966 for ac_header in inttypes.h
12967 do :
12968 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12969 if test "x$ac_cv_header_inttypes_h" = xyes; then :
12970 cat >>confdefs.h <<_ACEOF
12971 #define HAVE_INTTYPES_H 1
12972 _ACEOF
12973
12974 fi
12975
12976 done
12977
12978 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
12979 if test "x$ac_cv_type_intptr_t" = xyes; then :
12980
12981 cat >>confdefs.h <<_ACEOF
12982 #define HAVE_INTPTR_T 1
12983 _ACEOF
12984
12985
12986 fi
12987
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
12989 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
12990 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
12991 $as_echo_n "(cached) " >&6
12992 else
12993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12994 /* end confdefs.h. */
12995 #include <sys/stat.h>
12996 int
12997 main ()
12998 {
12999 struct stat stat; stat.st_flags = 0;
13000 ;
13001 return 0;
13002 }
13003 _ACEOF
13004 if ac_fn_c_try_compile "$LINENO"; then :
13005 e2fsprogs_cv_struct_st_flags=yes
13006 else
13007 e2fsprogs_cv_struct_st_flags=no
13008 fi
13009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13010 fi
13011
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
13013 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
13014 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
13016 $as_echo_n "checking whether st_flags field is useful... " >&6; }
13017 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
13018 $as_echo_n "(cached) " >&6
13019 else
13020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13021 /* end confdefs.h. */
13022 #include <sys/stat.h>
13023 int
13024 main ()
13025 {
13026 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
13027 ;
13028 return 0;
13029 }
13030 _ACEOF
13031 if ac_fn_c_try_compile "$LINENO"; then :
13032 e2fsprogs_cv_struct_st_flags_immut=yes
13033 else
13034 e2fsprogs_cv_struct_st_flags_immut=no
13035 fi
13036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13037 fi
13038
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13040 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
13041 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13042
13043 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
13044
13045 fi
13046 fi
13047 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13048 #include <sys/socket.h>
13049 "
13050 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13051
13052 cat >>confdefs.h <<_ACEOF
13053 #define HAVE_SA_LEN 1
13054 _ACEOF
13055
13056 fi
13057
13058 if test -n "$BLKID_CMT"; then
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
13060 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
13061 if ${ac_cv_search_blkid_probe_all+:} false; then :
13062 $as_echo_n "(cached) " >&6
13063 else
13064 ac_func_search_save_LIBS=$LIBS
13065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13066 /* end confdefs.h. */
13067
13068 /* Override any GCC internal prototype to avoid an error.
13069 Use char because int might match the return type of a GCC
13070 builtin and then its argument prototype would still apply. */
13071 #ifdef __cplusplus
13072 extern "C"
13073 #endif
13074 char blkid_probe_all ();
13075 int
13076 main ()
13077 {
13078 return blkid_probe_all ();
13079 ;
13080 return 0;
13081 }
13082 _ACEOF
13083 for ac_lib in '' blkid; do
13084 if test -z "$ac_lib"; then
13085 ac_res="none required"
13086 else
13087 ac_res=-l$ac_lib
13088 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13089 fi
13090 if ac_fn_c_try_link "$LINENO"; then :
13091 ac_cv_search_blkid_probe_all=$ac_res
13092 fi
13093 rm -f core conftest.err conftest.$ac_objext \
13094 conftest$ac_exeext
13095 if ${ac_cv_search_blkid_probe_all+:} false; then :
13096 break
13097 fi
13098 done
13099 if ${ac_cv_search_blkid_probe_all+:} false; then :
13100
13101 else
13102 ac_cv_search_blkid_probe_all=no
13103 fi
13104 rm conftest.$ac_ext
13105 LIBS=$ac_func_search_save_LIBS
13106 fi
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
13108 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13109 ac_res=$ac_cv_search_blkid_probe_all
13110 if test "$ac_res" != no; then :
13111 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13112
13113 fi
13114
13115 fi
13116 if test -n "$DLOPEN_LIB" ; then
13117 ac_cv_func_dlopen=yes
13118 fi
13119 for ac_func in __secure_getenv add_key backtrace blkid_probe_get_topology blkid_probe_enable_partitions chflags dlopen fadvise64 fallocate fallocate64 fchown fcntl fdatasync fstat64 fsync ftruncate64 futimes getcwd getdtablesize gethostname getmntinfo getpwuid_r getrlimit getrusage jrand48 keyctl llistxattr llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl pread pwrite pread64 pwrite64 secure_getenv setmntent setresgid setresuid snprintf srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime utimes valloc
13120 do :
13121 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13122 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13123 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13124 cat >>confdefs.h <<_ACEOF
13125 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13126 _ACEOF
13127
13128 fi
13129 done
13130
13131 SOCKET_LIB=''
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13133 $as_echo_n "checking for socket in -lsocket... " >&6; }
13134 if ${ac_cv_lib_socket_socket+:} false; then :
13135 $as_echo_n "(cached) " >&6
13136 else
13137 ac_check_lib_save_LIBS=$LIBS
13138 LIBS="-lsocket $LIBS"
13139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13140 /* end confdefs.h. */
13141
13142 /* Override any GCC internal prototype to avoid an error.
13143 Use char because int might match the return type of a GCC
13144 builtin and then its argument prototype would still apply. */
13145 #ifdef __cplusplus
13146 extern "C"
13147 #endif
13148 char socket ();
13149 int
13150 main ()
13151 {
13152 return socket ();
13153 ;
13154 return 0;
13155 }
13156 _ACEOF
13157 if ac_fn_c_try_link "$LINENO"; then :
13158 ac_cv_lib_socket_socket=yes
13159 else
13160 ac_cv_lib_socket_socket=no
13161 fi
13162 rm -f core conftest.err conftest.$ac_objext \
13163 conftest$ac_exeext conftest.$ac_ext
13164 LIBS=$ac_check_lib_save_LIBS
13165 fi
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13167 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13168 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13169 SOCKET_LIB=-lsocket
13170 fi
13171
13172
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13174 $as_echo_n "checking for magic_file in -lmagic... " >&6; }
13175 if ${ac_cv_lib_magic_magic_file+:} false; then :
13176 $as_echo_n "(cached) " >&6
13177 else
13178 ac_check_lib_save_LIBS=$LIBS
13179 LIBS="-lmagic $LIBS"
13180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13181 /* end confdefs.h. */
13182
13183 /* Override any GCC internal prototype to avoid an error.
13184 Use char because int might match the return type of a GCC
13185 builtin and then its argument prototype would still apply. */
13186 #ifdef __cplusplus
13187 extern "C"
13188 #endif
13189 char magic_file ();
13190 int
13191 main ()
13192 {
13193 return magic_file ();
13194 ;
13195 return 0;
13196 }
13197 _ACEOF
13198 if ac_fn_c_try_link "$LINENO"; then :
13199 ac_cv_lib_magic_magic_file=yes
13200 else
13201 ac_cv_lib_magic_magic_file=no
13202 fi
13203 rm -f core conftest.err conftest.$ac_objext \
13204 conftest$ac_exeext conftest.$ac_ext
13205 LIBS=$ac_check_lib_save_LIBS
13206 fi
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13208 $as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13209 if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13210 MAGIC_LIB=-lmagic
13211 for ac_header in magic.h
13212 do :
13213 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13214 if test "x$ac_cv_header_magic_h" = xyes; then :
13215 cat >>confdefs.h <<_ACEOF
13216 #define HAVE_MAGIC_H 1
13217 _ACEOF
13218
13219 fi
13220
13221 done
13222
13223 fi
13224
13225 if test "$ac_cv_func_dlopen" = yes ; then
13226 MAGIC_LIB=$DLOPEN_LIB
13227 fi
13228
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13230 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13231 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13232 $as_echo_n "(cached) " >&6
13233 else
13234 ac_check_lib_save_LIBS=$LIBS
13235 LIBS="-lrt $LIBS"
13236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13237 /* end confdefs.h. */
13238
13239 /* Override any GCC internal prototype to avoid an error.
13240 Use char because int might match the return type of a GCC
13241 builtin and then its argument prototype would still apply. */
13242 #ifdef __cplusplus
13243 extern "C"
13244 #endif
13245 char clock_gettime ();
13246 int
13247 main ()
13248 {
13249 return clock_gettime ();
13250 ;
13251 return 0;
13252 }
13253 _ACEOF
13254 if ac_fn_c_try_link "$LINENO"; then :
13255 ac_cv_lib_rt_clock_gettime=yes
13256 else
13257 ac_cv_lib_rt_clock_gettime=no
13258 fi
13259 rm -f core conftest.err conftest.$ac_objext \
13260 conftest$ac_exeext conftest.$ac_ext
13261 LIBS=$ac_check_lib_save_LIBS
13262 fi
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13264 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13265 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13266 CLOCK_GETTIME_LIB=-lrt
13267 fi
13268
13269
13270 FUSE_CMT=
13271 FUSE_LIB=
13272 # Check whether --enable-fuse2fs was given.
13273 if test "${enable_fuse2fs+set}" = set; then :
13274 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13275 then
13276 FUSE_CMT="#"
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13278 $as_echo "Disabling fuse2fs" >&6; }
13279 else
13280 for ac_header in pthread.h fuse.h
13281 do :
13282 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13283 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13284 #define FUSE_USE_VERSION 29
13285 "
13286 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13287 cat >>confdefs.h <<_ACEOF
13288 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13289 _ACEOF
13290
13291 else
13292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13294 as_fn_error $? "Cannot find fuse2fs headers.
13295 See \`config.log' for more details" "$LINENO" 5; }
13296 fi
13297
13298 done
13299
13300
13301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13302 /* end confdefs.h. */
13303 #define FUSE_USE_VERSION 29
13304 #ifdef __linux__
13305 #include <linux/fs.h>
13306 #include <linux/falloc.h>
13307 #include <linux/xattr.h>
13308 #endif
13309
13310 int
13311 main ()
13312 {
13313
13314 ;
13315 return 0;
13316 }
13317 _ACEOF
13318 if ac_fn_c_try_cpp "$LINENO"; then :
13319
13320 else
13321 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13323 as_fn_error $? "Cannot find fuse2fs Linux headers.
13324 See \`config.log' for more details" "$LINENO" 5; }
13325 fi
13326 rm -f conftest.err conftest.i conftest.$ac_ext
13327
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13329 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13330 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13331 $as_echo_n "(cached) " >&6
13332 else
13333 ac_check_lib_save_LIBS=$LIBS
13334 LIBS="-losxfuse $LIBS"
13335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13336 /* end confdefs.h. */
13337
13338 /* Override any GCC internal prototype to avoid an error.
13339 Use char because int might match the return type of a GCC
13340 builtin and then its argument prototype would still apply. */
13341 #ifdef __cplusplus
13342 extern "C"
13343 #endif
13344 char fuse_main ();
13345 int
13346 main ()
13347 {
13348 return fuse_main ();
13349 ;
13350 return 0;
13351 }
13352 _ACEOF
13353 if ac_fn_c_try_link "$LINENO"; then :
13354 ac_cv_lib_osxfuse_fuse_main=yes
13355 else
13356 ac_cv_lib_osxfuse_fuse_main=no
13357 fi
13358 rm -f core conftest.err conftest.$ac_objext \
13359 conftest$ac_exeext conftest.$ac_ext
13360 LIBS=$ac_check_lib_save_LIBS
13361 fi
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13363 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13364 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13365 FUSE_LIB=-losxfuse
13366 else
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13368 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13369 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13370 $as_echo_n "(cached) " >&6
13371 else
13372 ac_check_lib_save_LIBS=$LIBS
13373 LIBS="-lfuse $LIBS"
13374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13375 /* end confdefs.h. */
13376
13377 /* Override any GCC internal prototype to avoid an error.
13378 Use char because int might match the return type of a GCC
13379 builtin and then its argument prototype would still apply. */
13380 #ifdef __cplusplus
13381 extern "C"
13382 #endif
13383 char fuse_main ();
13384 int
13385 main ()
13386 {
13387 return fuse_main ();
13388 ;
13389 return 0;
13390 }
13391 _ACEOF
13392 if ac_fn_c_try_link "$LINENO"; then :
13393 ac_cv_lib_fuse_fuse_main=yes
13394 else
13395 ac_cv_lib_fuse_fuse_main=no
13396 fi
13397 rm -f core conftest.err conftest.$ac_objext \
13398 conftest$ac_exeext conftest.$ac_ext
13399 LIBS=$ac_check_lib_save_LIBS
13400 fi
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13402 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13403 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13404 FUSE_LIB=-lfuse
13405 else
13406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13408 as_fn_error $? "Cannot find fuse library.
13409 See \`config.log' for more details" "$LINENO" 5; }
13410 fi
13411
13412 fi
13413
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13415 $as_echo "Enabling fuse2fs" >&6; }
13416 fi
13417
13418 else
13419 for ac_header in pthread.h fuse.h
13420 do :
13421 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13422 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13423 #define FUSE_USE_VERSION 29
13424 #ifdef __linux__
13425 # include <linux/fs.h>
13426 # include <linux/falloc.h>
13427 # include <linux/xattr.h>
13428 #endif
13429 "
13430 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13431 cat >>confdefs.h <<_ACEOF
13432 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13433 _ACEOF
13434
13435 else
13436 FUSE_CMT="#"
13437 fi
13438
13439 done
13440
13441 if test -z "$FUSE_CMT"
13442 then
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13444 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13445 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13446 $as_echo_n "(cached) " >&6
13447 else
13448 ac_check_lib_save_LIBS=$LIBS
13449 LIBS="-losxfuse $LIBS"
13450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13451 /* end confdefs.h. */
13452
13453 /* Override any GCC internal prototype to avoid an error.
13454 Use char because int might match the return type of a GCC
13455 builtin and then its argument prototype would still apply. */
13456 #ifdef __cplusplus
13457 extern "C"
13458 #endif
13459 char fuse_main ();
13460 int
13461 main ()
13462 {
13463 return fuse_main ();
13464 ;
13465 return 0;
13466 }
13467 _ACEOF
13468 if ac_fn_c_try_link "$LINENO"; then :
13469 ac_cv_lib_osxfuse_fuse_main=yes
13470 else
13471 ac_cv_lib_osxfuse_fuse_main=no
13472 fi
13473 rm -f core conftest.err conftest.$ac_objext \
13474 conftest$ac_exeext conftest.$ac_ext
13475 LIBS=$ac_check_lib_save_LIBS
13476 fi
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13478 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13479 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13480 FUSE_LIB=-losxfuse
13481 else
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13483 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13484 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13485 $as_echo_n "(cached) " >&6
13486 else
13487 ac_check_lib_save_LIBS=$LIBS
13488 LIBS="-lfuse $LIBS"
13489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13490 /* end confdefs.h. */
13491
13492 /* Override any GCC internal prototype to avoid an error.
13493 Use char because int might match the return type of a GCC
13494 builtin and then its argument prototype would still apply. */
13495 #ifdef __cplusplus
13496 extern "C"
13497 #endif
13498 char fuse_main ();
13499 int
13500 main ()
13501 {
13502 return fuse_main ();
13503 ;
13504 return 0;
13505 }
13506 _ACEOF
13507 if ac_fn_c_try_link "$LINENO"; then :
13508 ac_cv_lib_fuse_fuse_main=yes
13509 else
13510 ac_cv_lib_fuse_fuse_main=no
13511 fi
13512 rm -f core conftest.err conftest.$ac_objext \
13513 conftest$ac_exeext conftest.$ac_ext
13514 LIBS=$ac_check_lib_save_LIBS
13515 fi
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13517 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13518 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13519 FUSE_LIB=-lfuse
13520 else
13521 FUSE_CMT="#"
13522 fi
13523
13524 fi
13525
13526 fi
13527 if test -z "$FUSE_CMT"
13528 then
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13530 $as_echo "Enabling fuse2fs by default." >&6; }
13531 fi
13532
13533 fi
13534
13535
13536
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13538 $as_echo_n "checking for optreset... " >&6; }
13539 if ${ac_cv_have_optreset+:} false; then :
13540 $as_echo_n "(cached) " >&6
13541 else
13542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13543 /* end confdefs.h. */
13544 #include <unistd.h>
13545
13546 _ACEOF
13547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13548 $EGREP "optreset" >/dev/null 2>&1; then :
13549 ac_cv_have_optreset=yes
13550 else
13551 ac_cv_have_optreset=no
13552 fi
13553 rm -f conftest*
13554
13555 fi
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13557 $as_echo "$ac_cv_have_optreset" >&6; }
13558 if test $ac_cv_have_optreset = yes; then
13559
13560 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
13561
13562 fi
13563
13564 SEM_INIT_LIB=''
13565 echo GL_THREADS_API: ${gl_threads_api}
13566 if test "${gl_threads_api}" != none
13567 then
13568 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13569 if test "x$ac_cv_func_sem_init" = xyes; then :
13570
13571 else
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13573 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
13574 if ${ac_cv_lib_pthread_sem_init+:} false; then :
13575 $as_echo_n "(cached) " >&6
13576 else
13577 ac_check_lib_save_LIBS=$LIBS
13578 LIBS="-lpthread $LIBS"
13579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13580 /* end confdefs.h. */
13581
13582 /* Override any GCC internal prototype to avoid an error.
13583 Use char because int might match the return type of a GCC
13584 builtin and then its argument prototype would still apply. */
13585 #ifdef __cplusplus
13586 extern "C"
13587 #endif
13588 char sem_init ();
13589 int
13590 main ()
13591 {
13592 return sem_init ();
13593 ;
13594 return 0;
13595 }
13596 _ACEOF
13597 if ac_fn_c_try_link "$LINENO"; then :
13598 ac_cv_lib_pthread_sem_init=yes
13599 else
13600 ac_cv_lib_pthread_sem_init=no
13601 fi
13602 rm -f core conftest.err conftest.$ac_objext \
13603 conftest$ac_exeext conftest.$ac_ext
13604 LIBS=$ac_check_lib_save_LIBS
13605 fi
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13607 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
13608 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
13609 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13610
13611 SEM_INIT_LIB=-lpthread
13612 else
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13614 $as_echo_n "checking for sem_init in -lrt... " >&6; }
13615 if ${ac_cv_lib_rt_sem_init+:} false; then :
13616 $as_echo_n "(cached) " >&6
13617 else
13618 ac_check_lib_save_LIBS=$LIBS
13619 LIBS="-lrt $LIBS"
13620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13621 /* end confdefs.h. */
13622
13623 /* Override any GCC internal prototype to avoid an error.
13624 Use char because int might match the return type of a GCC
13625 builtin and then its argument prototype would still apply. */
13626 #ifdef __cplusplus
13627 extern "C"
13628 #endif
13629 char sem_init ();
13630 int
13631 main ()
13632 {
13633 return sem_init ();
13634 ;
13635 return 0;
13636 }
13637 _ACEOF
13638 if ac_fn_c_try_link "$LINENO"; then :
13639 ac_cv_lib_rt_sem_init=yes
13640 else
13641 ac_cv_lib_rt_sem_init=no
13642 fi
13643 rm -f core conftest.err conftest.$ac_objext \
13644 conftest$ac_exeext conftest.$ac_ext
13645 LIBS=$ac_check_lib_save_LIBS
13646 fi
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13648 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
13649 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
13650 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13651
13652 SEM_INIT_LIB=-lrt
13653 else
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13655 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
13656 if ${ac_cv_lib_posix4_sem_init+:} false; then :
13657 $as_echo_n "(cached) " >&6
13658 else
13659 ac_check_lib_save_LIBS=$LIBS
13660 LIBS="-lposix4 $LIBS"
13661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13662 /* end confdefs.h. */
13663
13664 /* Override any GCC internal prototype to avoid an error.
13665 Use char because int might match the return type of a GCC
13666 builtin and then its argument prototype would still apply. */
13667 #ifdef __cplusplus
13668 extern "C"
13669 #endif
13670 char sem_init ();
13671 int
13672 main ()
13673 {
13674 return sem_init ();
13675 ;
13676 return 0;
13677 }
13678 _ACEOF
13679 if ac_fn_c_try_link "$LINENO"; then :
13680 ac_cv_lib_posix4_sem_init=yes
13681 else
13682 ac_cv_lib_posix4_sem_init=no
13683 fi
13684 rm -f core conftest.err conftest.$ac_objext \
13685 conftest$ac_exeext conftest.$ac_ext
13686 LIBS=$ac_check_lib_save_LIBS
13687 fi
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13689 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
13690 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
13691 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13692
13693 SEM_INIT_LIB=-lposix4
13694 fi
13695
13696 fi
13697
13698 fi
13699
13700 fi
13701 fi
13702
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
13704 $as_echo_n "checking for unified diff option... " >&6; }
13705 if diff -u $0 $0 > /dev/null 2>&1 ; then
13706 UNI_DIFF_OPTS=-u
13707 else
13708 UNI_DIFF_OPTS=-c
13709 fi
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
13711 $as_echo "$UNI_DIFF_OPTS" >&6; }
13712
13713 case "$host_os" in
13714 linux*)
13715
13716 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
13717
13718 ;;
13719 esac
13720 LINUX_CMT="#"
13721 CYGWIN_CMT="#"
13722 UNIX_CMT=
13723 case "$host_os" in
13724 linux*)
13725 LINUX_CMT=
13726 ;;
13727 cygwin)
13728 CYGWIN_CMT=
13729 UNIX_CMT="#"
13730 ;;
13731 esac
13732
13733
13734
13735 case "$host_os" in
13736 linux* | gnu* | k*bsd*-gnu)
13737 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13738 root_prefix="";
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
13740 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
13741 fi
13742 ;;
13743 esac
13744 case "$host_os" in
13745 linux* | gnu* | k*bsd*-gnu)
13746 if test "$prefix" = NONE ; then
13747 prefix="/usr";
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
13749 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
13750 if test "$mandir" = '${prefix}/man' ; then
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
13752 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
13753 mandir=/usr/share/man
13754 fi
13755 fi
13756 ;;
13757 esac
13758 if test "$root_prefix" = NONE ; then
13759 if test "$prefix" = NONE ; then
13760 root_prefix="$ac_default_prefix"
13761 else
13762 root_prefix="$prefix"
13763 fi
13764 root_bindir=$bindir
13765 root_sbindir=$sbindir
13766 root_libdir=$libdir
13767 root_sysconfdir=$sysconfdir
13768 else
13769 root_bindir='${root_prefix}/bin'
13770 root_sbindir='${root_prefix}/sbin'
13771 root_libdir='${root_prefix}/lib'
13772 root_sysconfdir='${root_prefix}/etc'
13773 fi
13774 if test "$bindir" != '${exec_prefix}/bin'; then
13775 root_bindir=$bindir
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
13777 $as_echo "Setting root_bindir to $root_bindir" >&6; }
13778 fi
13779 if test "$sbindir" != '${exec_prefix}/sbin'; then
13780 root_sbindir=$sbindir
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
13782 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
13783 fi
13784 if test "$libdir" != '${exec_prefix}/lib'; then
13785 root_libdir=$libdir
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
13787 $as_echo "Setting root_libdir to $root_libdir" >&6; }
13788 fi
13789 if test "$sysconfdir" != '${prefix}/etc'; then
13790 root_sysconfdir=$sysconfdir
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
13792 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
13793 fi
13794
13795
13796
13797
13798
13799
13800 # Check whether --with-multiarch was given.
13801 if test "${with_multiarch+set}" = set; then :
13802 withval=$with_multiarch; if test "$withval" = "lib64"; then
13803 libdir=/usr/lib64
13804 root_libdir=/lib64
13805 else
13806 libdir=$libdir/$withval
13807 root_libdir=$root_libdir/$withval
13808 fi
13809
13810 fi
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13812 $as_echo_n "checking whether we can link with -static... " >&6; }
13813 if ${ac_cv_e2fsprogs_use_static+:} false; then :
13814 $as_echo_n "(cached) " >&6
13815 else
13816 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
13817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13818 /* end confdefs.h. */
13819 #include <stdio.h>
13820 int
13821 main ()
13822 {
13823 fflush(stdout);
13824 ;
13825 return 0;
13826 }
13827 _ACEOF
13828 if ac_fn_c_try_link "$LINENO"; then :
13829 ac_cv_e2fsprogs_use_static=yes
13830 else
13831 ac_cv_e2fsprogs_use_static=no
13832 fi
13833 rm -f core conftest.err conftest.$ac_objext \
13834 conftest$ac_exeext conftest.$ac_ext
13835 LDFLAGS=$SAVE_LDFLAGS
13836 fi
13837
13838 case "$host_os" in
13839 solaris2.*)
13840 ac_cv_e2fsprogs_use_static=no
13841 ;;
13842 esac
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
13844 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
13845 if test $ac_cv_e2fsprogs_use_static = yes; then
13846 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
13847 fi
13848
13849 case "$host_os" in
13850 darwin*)
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
13852 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
13853
13854 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
13855
13856 ;;
13857 esac
13858 if test "$cross_compiling" = yes ; then
13859 DO_TEST_SUITE=
13860 else
13861 DO_TEST_SUITE=check
13862 fi
13863
13864 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13865 if test -n "$CPPFLAGS" ; then
13866 INCLUDES="$INCLUDES $CPPFLAGS"
13867 fi
13868 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
13869 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
13870 fi
13871 if test -n "$WITH_DIET_LIBC" ; then
13872 INCLUDES="$INCLUDES -D_REENTRANT"
13873 fi
13874
13875 if test $cross_compiling = no; then
13876 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
13877 BUILD_LDFLAGS="$LDFLAGS"
13878 fi
13879
13880
13881 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
13882 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
13883 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
13884
13885
13886
13887 test -d lib || mkdir lib
13888 test -d include || mkdir include
13889 test -d include/linux || mkdir include/linux
13890 test -d include/asm || mkdir include/asm
13891 if test -z "$UUID_CMT" ; then
13892 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
13893 lib/uuid/uuid_types.h"
13894 fi
13895 if test -z "$BLKID_CMT" ; then
13896 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
13897 lib/blkid/blkid_types.h"
13898 fi
13899 for i in MCONFIG Makefile \
13900 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
13901 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
13902 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
13903 $uuid_out_list $blkid_out_list lib/support/Makefile \
13904 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
13905 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
13906 debugfs/Makefile tests/Makefile tests/progs/Makefile \
13907 resize/Makefile doc/Makefile intl/Makefile \
13908 intl/libgnuintl.h po/Makefile.in ; do
13909 if test -d `dirname ${srcdir}/$i` ; then
13910 outlist="$outlist $i"
13911 fi
13912 done
13913 ac_config_files="$ac_config_files $outlist"
13914
13915 cat >confcache <<\_ACEOF
13916 # This file is a shell script that caches the results of configure
13917 # tests run on this system so they can be shared between configure
13918 # scripts and configure runs, see configure's option --config-cache.
13919 # It is not useful on other systems. If it contains results you don't
13920 # want to keep, you may remove or edit it.
13921 #
13922 # config.status only pays attention to the cache file if you give it
13923 # the --recheck option to rerun configure.
13924 #
13925 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13926 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13927 # following values.
13928
13929 _ACEOF
13930
13931 # The following way of writing the cache mishandles newlines in values,
13932 # but we know of no workaround that is simple, portable, and efficient.
13933 # So, we kill variables containing newlines.
13934 # Ultrix sh set writes to stderr and can't be redirected directly,
13935 # and sets the high bit in the cache file unless we assign to the vars.
13936 (
13937 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13938 eval ac_val=\$$ac_var
13939 case $ac_val in #(
13940 *${as_nl}*)
13941 case $ac_var in #(
13942 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13943 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13944 esac
13945 case $ac_var in #(
13946 _ | IFS | as_nl) ;; #(
13947 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13948 *) { eval $ac_var=; unset $ac_var;} ;;
13949 esac ;;
13950 esac
13951 done
13952
13953 (set) 2>&1 |
13954 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13955 *${as_nl}ac_space=\ *)
13956 # `set' does not quote correctly, so add quotes: double-quote
13957 # substitution turns \\\\ into \\, and sed turns \\ into \.
13958 sed -n \
13959 "s/'/'\\\\''/g;
13960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13961 ;; #(
13962 *)
13963 # `set' quotes correctly as required by POSIX, so do not add quotes.
13964 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13965 ;;
13966 esac |
13967 sort
13968 ) |
13969 sed '
13970 /^ac_cv_env_/b end
13971 t clear
13972 :clear
13973 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13974 t end
13975 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13976 :end' >>confcache
13977 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13978 if test -w "$cache_file"; then
13979 if test "x$cache_file" != "x/dev/null"; then
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13981 $as_echo "$as_me: updating cache $cache_file" >&6;}
13982 if test ! -f "$cache_file" || test -h "$cache_file"; then
13983 cat confcache >"$cache_file"
13984 else
13985 case $cache_file in #(
13986 */* | ?:*)
13987 mv -f confcache "$cache_file"$$ &&
13988 mv -f "$cache_file"$$ "$cache_file" ;; #(
13989 *)
13990 mv -f confcache "$cache_file" ;;
13991 esac
13992 fi
13993 fi
13994 else
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13996 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13997 fi
13998 fi
13999 rm -f confcache
14000
14001 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14002 # Let make expand exec_prefix.
14003 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14004
14005 DEFS=-DHAVE_CONFIG_H
14006
14007 ac_libobjs=
14008 ac_ltlibobjs=
14009 U=
14010 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14011 # 1. Remove the extension, and $U if already installed.
14012 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14013 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14014 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14015 # will be set to the directory where LIBOBJS objects are built.
14016 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14017 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14018 done
14019 LIBOBJS=$ac_libobjs
14020
14021 LTLIBOBJS=$ac_ltlibobjs
14022
14023
14024
14025
14026 : "${CONFIG_STATUS=./config.status}"
14027 ac_write_fail=0
14028 ac_clean_files_save=$ac_clean_files
14029 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14031 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14032 as_write_fail=0
14033 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14034 #! $SHELL
14035 # Generated by $as_me.
14036 # Run this file to recreate the current configuration.
14037 # Compiler output produced by configure, useful for debugging
14038 # configure, is in config.log if it exists.
14039
14040 debug=false
14041 ac_cs_recheck=false
14042 ac_cs_silent=false
14043
14044 SHELL=\${CONFIG_SHELL-$SHELL}
14045 export SHELL
14046 _ASEOF
14047 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14048 ## -------------------- ##
14049 ## M4sh Initialization. ##
14050 ## -------------------- ##
14051
14052 # Be more Bourne compatible
14053 DUALCASE=1; export DUALCASE # for MKS sh
14054 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14055 emulate sh
14056 NULLCMD=:
14057 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14058 # is contrary to our usage. Disable this feature.
14059 alias -g '${1+"$@"}'='"$@"'
14060 setopt NO_GLOB_SUBST
14061 else
14062 case `(set -o) 2>/dev/null` in #(
14063 *posix*) :
14064 set -o posix ;; #(
14065 *) :
14066 ;;
14067 esac
14068 fi
14069
14070
14071 as_nl='
14072 '
14073 export as_nl
14074 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14075 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14076 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14077 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14078 # Prefer a ksh shell builtin over an external printf program on Solaris,
14079 # but without wasting forks for bash or zsh.
14080 if test -z "$BASH_VERSION$ZSH_VERSION" \
14081 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14082 as_echo='print -r --'
14083 as_echo_n='print -rn --'
14084 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14085 as_echo='printf %s\n'
14086 as_echo_n='printf %s'
14087 else
14088 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14089 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14090 as_echo_n='/usr/ucb/echo -n'
14091 else
14092 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14093 as_echo_n_body='eval
14094 arg=$1;
14095 case $arg in #(
14096 *"$as_nl"*)
14097 expr "X$arg" : "X\\(.*\\)$as_nl";
14098 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14099 esac;
14100 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14101 '
14102 export as_echo_n_body
14103 as_echo_n='sh -c $as_echo_n_body as_echo'
14104 fi
14105 export as_echo_body
14106 as_echo='sh -c $as_echo_body as_echo'
14107 fi
14108
14109 # The user is always right.
14110 if test "${PATH_SEPARATOR+set}" != set; then
14111 PATH_SEPARATOR=:
14112 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14113 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14114 PATH_SEPARATOR=';'
14115 }
14116 fi
14117
14118
14119 # IFS
14120 # We need space, tab and new line, in precisely that order. Quoting is
14121 # there to prevent editors from complaining about space-tab.
14122 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14123 # splitting by setting IFS to empty value.)
14124 IFS=" "" $as_nl"
14125
14126 # Find who we are. Look in the path if we contain no directory separator.
14127 as_myself=
14128 case $0 in #((
14129 *[\\/]* ) as_myself=$0 ;;
14130 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14131 for as_dir in $PATH
14132 do
14133 IFS=$as_save_IFS
14134 test -z "$as_dir" && as_dir=.
14135 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14136 done
14137 IFS=$as_save_IFS
14138
14139 ;;
14140 esac
14141 # We did not find ourselves, most probably we were run as `sh COMMAND'
14142 # in which case we are not to be found in the path.
14143 if test "x$as_myself" = x; then
14144 as_myself=$0
14145 fi
14146 if test ! -f "$as_myself"; then
14147 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14148 exit 1
14149 fi
14150
14151 # Unset variables that we do not need and which cause bugs (e.g. in
14152 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14153 # suppresses any "Segmentation fault" message there. '((' could
14154 # trigger a bug in pdksh 5.2.14.
14155 for as_var in BASH_ENV ENV MAIL MAILPATH
14156 do eval test x\${$as_var+set} = xset \
14157 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14158 done
14159 PS1='$ '
14160 PS2='> '
14161 PS4='+ '
14162
14163 # NLS nuisances.
14164 LC_ALL=C
14165 export LC_ALL
14166 LANGUAGE=C
14167 export LANGUAGE
14168
14169 # CDPATH.
14170 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14171
14172
14173 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14174 # ----------------------------------------
14175 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14176 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14177 # script with STATUS, using 1 if that was 0.
14178 as_fn_error ()
14179 {
14180 as_status=$1; test $as_status -eq 0 && as_status=1
14181 if test "$4"; then
14182 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14183 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14184 fi
14185 $as_echo "$as_me: error: $2" >&2
14186 as_fn_exit $as_status
14187 } # as_fn_error
14188
14189
14190 # as_fn_set_status STATUS
14191 # -----------------------
14192 # Set $? to STATUS, without forking.
14193 as_fn_set_status ()
14194 {
14195 return $1
14196 } # as_fn_set_status
14197
14198 # as_fn_exit STATUS
14199 # -----------------
14200 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14201 as_fn_exit ()
14202 {
14203 set +e
14204 as_fn_set_status $1
14205 exit $1
14206 } # as_fn_exit
14207
14208 # as_fn_unset VAR
14209 # ---------------
14210 # Portably unset VAR.
14211 as_fn_unset ()
14212 {
14213 { eval $1=; unset $1;}
14214 }
14215 as_unset=as_fn_unset
14216 # as_fn_append VAR VALUE
14217 # ----------------------
14218 # Append the text in VALUE to the end of the definition contained in VAR. Take
14219 # advantage of any shell optimizations that allow amortized linear growth over
14220 # repeated appends, instead of the typical quadratic growth present in naive
14221 # implementations.
14222 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14223 eval 'as_fn_append ()
14224 {
14225 eval $1+=\$2
14226 }'
14227 else
14228 as_fn_append ()
14229 {
14230 eval $1=\$$1\$2
14231 }
14232 fi # as_fn_append
14233
14234 # as_fn_arith ARG...
14235 # ------------------
14236 # Perform arithmetic evaluation on the ARGs, and store the result in the
14237 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14238 # must be portable across $(()) and expr.
14239 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14240 eval 'as_fn_arith ()
14241 {
14242 as_val=$(( $* ))
14243 }'
14244 else
14245 as_fn_arith ()
14246 {
14247 as_val=`expr "$@" || test $? -eq 1`
14248 }
14249 fi # as_fn_arith
14250
14251
14252 if expr a : '\(a\)' >/dev/null 2>&1 &&
14253 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14254 as_expr=expr
14255 else
14256 as_expr=false
14257 fi
14258
14259 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14260 as_basename=basename
14261 else
14262 as_basename=false
14263 fi
14264
14265 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14266 as_dirname=dirname
14267 else
14268 as_dirname=false
14269 fi
14270
14271 as_me=`$as_basename -- "$0" ||
14272 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14273 X"$0" : 'X\(//\)$' \| \
14274 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14275 $as_echo X/"$0" |
14276 sed '/^.*\/\([^/][^/]*\)\/*$/{
14277 s//\1/
14278 q
14279 }
14280 /^X\/\(\/\/\)$/{
14281 s//\1/
14282 q
14283 }
14284 /^X\/\(\/\).*/{
14285 s//\1/
14286 q
14287 }
14288 s/.*/./; q'`
14289
14290 # Avoid depending upon Character Ranges.
14291 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14292 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14293 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14294 as_cr_digits='0123456789'
14295 as_cr_alnum=$as_cr_Letters$as_cr_digits
14296
14297 ECHO_C= ECHO_N= ECHO_T=
14298 case `echo -n x` in #(((((
14299 -n*)
14300 case `echo 'xy\c'` in
14301 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14302 xy) ECHO_C='\c';;
14303 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14304 ECHO_T=' ';;
14305 esac;;
14306 *)
14307 ECHO_N='-n';;
14308 esac
14309
14310 rm -f conf$$ conf$$.exe conf$$.file
14311 if test -d conf$$.dir; then
14312 rm -f conf$$.dir/conf$$.file
14313 else
14314 rm -f conf$$.dir
14315 mkdir conf$$.dir 2>/dev/null
14316 fi
14317 if (echo >conf$$.file) 2>/dev/null; then
14318 if ln -s conf$$.file conf$$ 2>/dev/null; then
14319 as_ln_s='ln -s'
14320 # ... but there are two gotchas:
14321 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14322 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14323 # In both cases, we have to default to `cp -pR'.
14324 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14325 as_ln_s='cp -pR'
14326 elif ln conf$$.file conf$$ 2>/dev/null; then
14327 as_ln_s=ln
14328 else
14329 as_ln_s='cp -pR'
14330 fi
14331 else
14332 as_ln_s='cp -pR'
14333 fi
14334 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14335 rmdir conf$$.dir 2>/dev/null
14336
14337
14338 # as_fn_mkdir_p
14339 # -------------
14340 # Create "$as_dir" as a directory, including parents if necessary.
14341 as_fn_mkdir_p ()
14342 {
14343
14344 case $as_dir in #(
14345 -*) as_dir=./$as_dir;;
14346 esac
14347 test -d "$as_dir" || eval $as_mkdir_p || {
14348 as_dirs=
14349 while :; do
14350 case $as_dir in #(
14351 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14352 *) as_qdir=$as_dir;;
14353 esac
14354 as_dirs="'$as_qdir' $as_dirs"
14355 as_dir=`$as_dirname -- "$as_dir" ||
14356 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14357 X"$as_dir" : 'X\(//\)[^/]' \| \
14358 X"$as_dir" : 'X\(//\)$' \| \
14359 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14360 $as_echo X"$as_dir" |
14361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14362 s//\1/
14363 q
14364 }
14365 /^X\(\/\/\)[^/].*/{
14366 s//\1/
14367 q
14368 }
14369 /^X\(\/\/\)$/{
14370 s//\1/
14371 q
14372 }
14373 /^X\(\/\).*/{
14374 s//\1/
14375 q
14376 }
14377 s/.*/./; q'`
14378 test -d "$as_dir" && break
14379 done
14380 test -z "$as_dirs" || eval "mkdir $as_dirs"
14381 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14382
14383
14384 } # as_fn_mkdir_p
14385 if mkdir -p . 2>/dev/null; then
14386 as_mkdir_p='mkdir -p "$as_dir"'
14387 else
14388 test -d ./-p && rmdir ./-p
14389 as_mkdir_p=false
14390 fi
14391
14392
14393 # as_fn_executable_p FILE
14394 # -----------------------
14395 # Test if FILE is an executable regular file.
14396 as_fn_executable_p ()
14397 {
14398 test -f "$1" && test -x "$1"
14399 } # as_fn_executable_p
14400 as_test_x='test -x'
14401 as_executable_p=as_fn_executable_p
14402
14403 # Sed expression to map a string onto a valid CPP name.
14404 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14405
14406 # Sed expression to map a string onto a valid variable name.
14407 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14408
14409
14410 exec 6>&1
14411 ## ----------------------------------- ##
14412 ## Main body of $CONFIG_STATUS script. ##
14413 ## ----------------------------------- ##
14414 _ASEOF
14415 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14416
14417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14418 # Save the log message, to keep $0 and so on meaningful, and to
14419 # report actual input values of CONFIG_FILES etc. instead of their
14420 # values after options handling.
14421 ac_log="
14422 This file was extended by $as_me, which was
14423 generated by GNU Autoconf 2.69. Invocation command line was
14424
14425 CONFIG_FILES = $CONFIG_FILES
14426 CONFIG_HEADERS = $CONFIG_HEADERS
14427 CONFIG_LINKS = $CONFIG_LINKS
14428 CONFIG_COMMANDS = $CONFIG_COMMANDS
14429 $ $0 $@
14430
14431 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14432 "
14433
14434 _ACEOF
14435
14436 case $ac_config_files in *"
14437 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14438 esac
14439
14440 case $ac_config_headers in *"
14441 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14442 esac
14443
14444
14445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14446 # Files that config.status was made for.
14447 config_files="$ac_config_files"
14448 config_headers="$ac_config_headers"
14449 config_commands="$ac_config_commands"
14450
14451 _ACEOF
14452
14453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14454 ac_cs_usage="\
14455 \`$as_me' instantiates files and other configuration actions
14456 from templates according to the current configuration. Unless the files
14457 and actions are specified as TAGs, all are instantiated by default.
14458
14459 Usage: $0 [OPTION]... [TAG]...
14460
14461 -h, --help print this help, then exit
14462 -V, --version print version number and configuration settings, then exit
14463 --config print configuration, then exit
14464 -q, --quiet, --silent
14465 do not print progress messages
14466 -d, --debug don't remove temporary files
14467 --recheck update $as_me by reconfiguring in the same conditions
14468 --file=FILE[:TEMPLATE]
14469 instantiate the configuration file FILE
14470 --header=FILE[:TEMPLATE]
14471 instantiate the configuration header FILE
14472
14473 Configuration files:
14474 $config_files
14475
14476 Configuration headers:
14477 $config_headers
14478
14479 Configuration commands:
14480 $config_commands
14481
14482 Report bugs to the package provider."
14483
14484 _ACEOF
14485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14486 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14487 ac_cs_version="\\
14488 config.status
14489 configured by $0, generated by GNU Autoconf 2.69,
14490 with options \\"\$ac_cs_config\\"
14491
14492 Copyright (C) 2012 Free Software Foundation, Inc.
14493 This config.status script is free software; the Free Software Foundation
14494 gives unlimited permission to copy, distribute and modify it."
14495
14496 ac_pwd='$ac_pwd'
14497 srcdir='$srcdir'
14498 INSTALL='$INSTALL'
14499 MKDIR_P='$MKDIR_P'
14500 AWK='$AWK'
14501 test -n "\$AWK" || AWK=awk
14502 _ACEOF
14503
14504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14505 # The default lists apply if the user does not specify any file.
14506 ac_need_defaults=:
14507 while test $# != 0
14508 do
14509 case $1 in
14510 --*=?*)
14511 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14512 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14513 ac_shift=:
14514 ;;
14515 --*=)
14516 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14517 ac_optarg=
14518 ac_shift=:
14519 ;;
14520 *)
14521 ac_option=$1
14522 ac_optarg=$2
14523 ac_shift=shift
14524 ;;
14525 esac
14526
14527 case $ac_option in
14528 # Handling of the options.
14529 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14530 ac_cs_recheck=: ;;
14531 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14532 $as_echo "$ac_cs_version"; exit ;;
14533 --config | --confi | --conf | --con | --co | --c )
14534 $as_echo "$ac_cs_config"; exit ;;
14535 --debug | --debu | --deb | --de | --d | -d )
14536 debug=: ;;
14537 --file | --fil | --fi | --f )
14538 $ac_shift
14539 case $ac_optarg in
14540 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14541 '') as_fn_error $? "missing file argument" ;;
14542 esac
14543 as_fn_append CONFIG_FILES " '$ac_optarg'"
14544 ac_need_defaults=false;;
14545 --header | --heade | --head | --hea )
14546 $ac_shift
14547 case $ac_optarg in
14548 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14549 esac
14550 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14551 ac_need_defaults=false;;
14552 --he | --h)
14553 # Conflict between --help and --header
14554 as_fn_error $? "ambiguous option: \`$1'
14555 Try \`$0 --help' for more information.";;
14556 --help | --hel | -h )
14557 $as_echo "$ac_cs_usage"; exit ;;
14558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14559 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14560 ac_cs_silent=: ;;
14561
14562 # This is an error.
14563 -*) as_fn_error $? "unrecognized option: \`$1'
14564 Try \`$0 --help' for more information." ;;
14565
14566 *) as_fn_append ac_config_targets " $1"
14567 ac_need_defaults=false ;;
14568
14569 esac
14570 shift
14571 done
14572
14573 ac_configure_extra_args=
14574
14575 if $ac_cs_silent; then
14576 exec 6>/dev/null
14577 ac_configure_extra_args="$ac_configure_extra_args --silent"
14578 fi
14579
14580 _ACEOF
14581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14582 if \$ac_cs_recheck; then
14583 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14584 shift
14585 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14586 CONFIG_SHELL='$SHELL'
14587 export CONFIG_SHELL
14588 exec "\$@"
14589 fi
14590
14591 _ACEOF
14592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14593 exec 5>>config.log
14594 {
14595 echo
14596 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14597 ## Running $as_me. ##
14598 _ASBOX
14599 $as_echo "$ac_log"
14600 } >&5
14601
14602 _ACEOF
14603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14604 #
14605 # INIT-COMMANDS
14606 #
14607 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14608 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14609 # from automake < 1.5.
14610 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14611 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14612 LINGUAS="${LINGUAS-%UNSET%}"
14613
14614
14615 _ACEOF
14616
14617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14618
14619 # Handling of arguments.
14620 for ac_config_target in $ac_config_targets
14621 do
14622 case $ac_config_target in
14623 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
14624 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
14625 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14626
14627 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14628 esac
14629 done
14630
14631
14632 # If the user did not use the arguments to specify the items to instantiate,
14633 # then the envvar interface is used. Set only those that are not.
14634 # We use the long form for the default assignment because of an extremely
14635 # bizarre bug on SunOS 4.1.3.
14636 if $ac_need_defaults; then
14637 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14638 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14639 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14640 fi
14641
14642 # Have a temporary directory for convenience. Make it in the build tree
14643 # simply because there is no reason against having it here, and in addition,
14644 # creating and moving files from /tmp can sometimes cause problems.
14645 # Hook for its removal unless debugging.
14646 # Note that there is a small window in which the directory will not be cleaned:
14647 # after its creation but before its name has been assigned to `$tmp'.
14648 $debug ||
14649 {
14650 tmp= ac_tmp=
14651 trap 'exit_status=$?
14652 : "${ac_tmp:=$tmp}"
14653 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14654 ' 0
14655 trap 'as_fn_exit 1' 1 2 13 15
14656 }
14657 # Create a (secure) tmp directory for tmp files.
14658
14659 {
14660 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14661 test -d "$tmp"
14662 } ||
14663 {
14664 tmp=./conf$$-$RANDOM
14665 (umask 077 && mkdir "$tmp")
14666 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14667 ac_tmp=$tmp
14668
14669 # Set up the scripts for CONFIG_FILES section.
14670 # No need to generate them if there are no CONFIG_FILES.
14671 # This happens for instance with `./config.status config.h'.
14672 if test -n "$CONFIG_FILES"; then
14673
14674 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14675 ac_cs_awk_getline=:
14676 ac_cs_awk_pipe_init=
14677 ac_cs_awk_read_file='
14678 while ((getline aline < (F[key])) > 0)
14679 print(aline)
14680 close(F[key])'
14681 ac_cs_awk_pipe_fini=
14682 else
14683 ac_cs_awk_getline=false
14684 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14685 ac_cs_awk_read_file='
14686 print "|#_!!_#|"
14687 print "cat " F[key] " &&"
14688 '$ac_cs_awk_pipe_init
14689 # The final `:' finishes the AND list.
14690 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14691 fi
14692 ac_cr=`echo X | tr X '\015'`
14693 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14694 # But we know of no other shell where ac_cr would be empty at this
14695 # point, so we can use a bashism as a fallback.
14696 if test "x$ac_cr" = x; then
14697 eval ac_cr=\$\'\\r\'
14698 fi
14699 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14700 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14701 ac_cs_awk_cr='\\r'
14702 else
14703 ac_cs_awk_cr=$ac_cr
14704 fi
14705
14706 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14707 _ACEOF
14708
14709 # Create commands to substitute file output variables.
14710 {
14711 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14712 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
14713 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14714 echo "_ACAWK" &&
14715 echo "_ACEOF"
14716 } >conf$$files.sh &&
14717 . ./conf$$files.sh ||
14718 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14719 rm -f conf$$files.sh
14720
14721 {
14722 echo "cat >conf$$subs.awk <<_ACEOF" &&
14723 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14724 echo "_ACEOF"
14725 } >conf$$subs.sh ||
14726 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14727 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14728 ac_delim='%!_!# '
14729 for ac_last_try in false false false false false :; do
14730 . ./conf$$subs.sh ||
14731 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14732
14733 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14734 if test $ac_delim_n = $ac_delim_num; then
14735 break
14736 elif $ac_last_try; then
14737 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14738 else
14739 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14740 fi
14741 done
14742 rm -f conf$$subs.sh
14743
14744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14745 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14746 _ACEOF
14747 sed -n '
14748 h
14749 s/^/S["/; s/!.*/"]=/
14750 p
14751 g
14752 s/^[^!]*!//
14753 :repl
14754 t repl
14755 s/'"$ac_delim"'$//
14756 t delim
14757 :nl
14758 h
14759 s/\(.\{148\}\)..*/\1/
14760 t more1
14761 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14762 p
14763 n
14764 b repl
14765 :more1
14766 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14767 p
14768 g
14769 s/.\{148\}//
14770 t nl
14771 :delim
14772 h
14773 s/\(.\{148\}\)..*/\1/
14774 t more2
14775 s/["\\]/\\&/g; s/^/"/; s/$/"/
14776 p
14777 b
14778 :more2
14779 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14780 p
14781 g
14782 s/.\{148\}//
14783 t delim
14784 ' <conf$$subs.awk | sed '
14785 /^[^""]/{
14786 N
14787 s/\n//
14788 }
14789 ' >>$CONFIG_STATUS || ac_write_fail=1
14790 rm -f conf$$subs.awk
14791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14792 _ACAWK
14793 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14794 for (key in S) S_is_set[key] = 1
14795 FS = "\a"
14796 \$ac_cs_awk_pipe_init
14797 }
14798 {
14799 line = $ 0
14800 nfields = split(line, field, "@")
14801 substed = 0
14802 len = length(field[1])
14803 for (i = 2; i < nfields; i++) {
14804 key = field[i]
14805 keylen = length(key)
14806 if (S_is_set[key]) {
14807 value = S[key]
14808 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14809 len += length(value) + length(field[++i])
14810 substed = 1
14811 } else
14812 len += 1 + keylen
14813 }
14814 if (nfields == 3 && !substed) {
14815 key = field[2]
14816 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14817 \$ac_cs_awk_read_file
14818 next
14819 }
14820 }
14821 print line
14822 }
14823 \$ac_cs_awk_pipe_fini
14824 _ACAWK
14825 _ACEOF
14826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14827 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14828 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14829 else
14830 cat
14831 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14832 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14833 _ACEOF
14834
14835 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14836 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14837 # trailing colons and then remove the whole line if VPATH becomes empty
14838 # (actually we leave an empty line to preserve line numbers).
14839 if test "x$srcdir" = x.; then
14840 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14841 h
14842 s///
14843 s/^/:/
14844 s/[ ]*$/:/
14845 s/:\$(srcdir):/:/g
14846 s/:\${srcdir}:/:/g
14847 s/:@srcdir@:/:/g
14848 s/^:*//
14849 s/:*$//
14850 x
14851 s/\(=[ ]*\).*/\1/
14852 G
14853 s/\n//
14854 s/^[^=]*=[ ]*$//
14855 }'
14856 fi
14857
14858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14859 fi # test -n "$CONFIG_FILES"
14860
14861 # Set up the scripts for CONFIG_HEADERS section.
14862 # No need to generate them if there are no CONFIG_HEADERS.
14863 # This happens for instance with `./config.status Makefile'.
14864 if test -n "$CONFIG_HEADERS"; then
14865 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14866 BEGIN {
14867 _ACEOF
14868
14869 # Transform confdefs.h into an awk script `defines.awk', embedded as
14870 # here-document in config.status, that substitutes the proper values into
14871 # config.h.in to produce config.h.
14872
14873 # Create a delimiter string that does not exist in confdefs.h, to ease
14874 # handling of long lines.
14875 ac_delim='%!_!# '
14876 for ac_last_try in false false :; do
14877 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14878 if test -z "$ac_tt"; then
14879 break
14880 elif $ac_last_try; then
14881 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14882 else
14883 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14884 fi
14885 done
14886
14887 # For the awk script, D is an array of macro values keyed by name,
14888 # likewise P contains macro parameters if any. Preserve backslash
14889 # newline sequences.
14890
14891 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14892 sed -n '
14893 s/.\{148\}/&'"$ac_delim"'/g
14894 t rset
14895 :rset
14896 s/^[ ]*#[ ]*define[ ][ ]*/ /
14897 t def
14898 d
14899 :def
14900 s/\\$//
14901 t bsnl
14902 s/["\\]/\\&/g
14903 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14904 D["\1"]=" \3"/p
14905 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14906 d
14907 :bsnl
14908 s/["\\]/\\&/g
14909 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14910 D["\1"]=" \3\\\\\\n"\\/p
14911 t cont
14912 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14913 t cont
14914 d
14915 :cont
14916 n
14917 s/.\{148\}/&'"$ac_delim"'/g
14918 t clear
14919 :clear
14920 s/\\$//
14921 t bsnlc
14922 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14923 d
14924 :bsnlc
14925 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14926 b cont
14927 ' <confdefs.h | sed '
14928 s/'"$ac_delim"'/"\\\
14929 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14930
14931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14932 for (key in D) D_is_set[key] = 1
14933 FS = "\a"
14934 }
14935 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14936 line = \$ 0
14937 split(line, arg, " ")
14938 if (arg[1] == "#") {
14939 defundef = arg[2]
14940 mac1 = arg[3]
14941 } else {
14942 defundef = substr(arg[1], 2)
14943 mac1 = arg[2]
14944 }
14945 split(mac1, mac2, "(") #)
14946 macro = mac2[1]
14947 prefix = substr(line, 1, index(line, defundef) - 1)
14948 if (D_is_set[macro]) {
14949 # Preserve the white space surrounding the "#".
14950 print prefix "define", macro P[macro] D[macro]
14951 next
14952 } else {
14953 # Replace #undef with comments. This is necessary, for example,
14954 # in the case of _POSIX_SOURCE, which is predefined and required
14955 # on some systems where configure will not decide to define it.
14956 if (defundef == "undef") {
14957 print "/*", prefix defundef, macro, "*/"
14958 next
14959 }
14960 }
14961 }
14962 { print }
14963 _ACAWK
14964 _ACEOF
14965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14966 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14967 fi # test -n "$CONFIG_HEADERS"
14968
14969
14970 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14971 shift
14972 for ac_tag
14973 do
14974 case $ac_tag in
14975 :[FHLC]) ac_mode=$ac_tag; continue;;
14976 esac
14977 case $ac_mode$ac_tag in
14978 :[FHL]*:*);;
14979 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14980 :[FH]-) ac_tag=-:-;;
14981 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14982 esac
14983 ac_save_IFS=$IFS
14984 IFS=:
14985 set x $ac_tag
14986 IFS=$ac_save_IFS
14987 shift
14988 ac_file=$1
14989 shift
14990
14991 case $ac_mode in
14992 :L) ac_source=$1;;
14993 :[FH])
14994 ac_file_inputs=
14995 for ac_f
14996 do
14997 case $ac_f in
14998 -) ac_f="$ac_tmp/stdin";;
14999 *) # Look for the file first in the build tree, then in the source tree
15000 # (if the path is not absolute). The absolute path cannot be DOS-style,
15001 # because $ac_f cannot contain `:'.
15002 test -f "$ac_f" ||
15003 case $ac_f in
15004 [\\/$]*) false;;
15005 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15006 esac ||
15007 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15008 esac
15009 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15010 as_fn_append ac_file_inputs " '$ac_f'"
15011 done
15012
15013 # Let's still pretend it is `configure' which instantiates (i.e., don't
15014 # use $as_me), people would be surprised to read:
15015 # /* config.h. Generated by config.status. */
15016 configure_input='Generated from '`
15017 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15018 `' by configure.'
15019 if test x"$ac_file" != x-; then
15020 configure_input="$ac_file. $configure_input"
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15022 $as_echo "$as_me: creating $ac_file" >&6;}
15023 fi
15024 # Neutralize special characters interpreted by sed in replacement strings.
15025 case $configure_input in #(
15026 *\&* | *\|* | *\\* )
15027 ac_sed_conf_input=`$as_echo "$configure_input" |
15028 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15029 *) ac_sed_conf_input=$configure_input;;
15030 esac
15031
15032 case $ac_tag in
15033 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15034 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15035 esac
15036 ;;
15037 esac
15038
15039 ac_dir=`$as_dirname -- "$ac_file" ||
15040 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15041 X"$ac_file" : 'X\(//\)[^/]' \| \
15042 X"$ac_file" : 'X\(//\)$' \| \
15043 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15044 $as_echo X"$ac_file" |
15045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15046 s//\1/
15047 q
15048 }
15049 /^X\(\/\/\)[^/].*/{
15050 s//\1/
15051 q
15052 }
15053 /^X\(\/\/\)$/{
15054 s//\1/
15055 q
15056 }
15057 /^X\(\/\).*/{
15058 s//\1/
15059 q
15060 }
15061 s/.*/./; q'`
15062 as_dir="$ac_dir"; as_fn_mkdir_p
15063 ac_builddir=.
15064
15065 case "$ac_dir" in
15066 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15067 *)
15068 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15069 # A ".." for each directory in $ac_dir_suffix.
15070 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15071 case $ac_top_builddir_sub in
15072 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15073 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15074 esac ;;
15075 esac
15076 ac_abs_top_builddir=$ac_pwd
15077 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15078 # for backward compatibility:
15079 ac_top_builddir=$ac_top_build_prefix
15080
15081 case $srcdir in
15082 .) # We are building in place.
15083 ac_srcdir=.
15084 ac_top_srcdir=$ac_top_builddir_sub
15085 ac_abs_top_srcdir=$ac_pwd ;;
15086 [\\/]* | ?:[\\/]* ) # Absolute name.
15087 ac_srcdir=$srcdir$ac_dir_suffix;
15088 ac_top_srcdir=$srcdir
15089 ac_abs_top_srcdir=$srcdir ;;
15090 *) # Relative name.
15091 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15092 ac_top_srcdir=$ac_top_build_prefix$srcdir
15093 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15094 esac
15095 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15096
15097
15098 case $ac_mode in
15099 :F)
15100 #
15101 # CONFIG_FILE
15102 #
15103
15104 case $INSTALL in
15105 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15106 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15107 esac
15108 ac_MKDIR_P=$MKDIR_P
15109 case $MKDIR_P in
15110 [\\/$]* | ?:[\\/]* ) ;;
15111 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15112 esac
15113 _ACEOF
15114
15115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15116 # If the template does not know about datarootdir, expand it.
15117 # FIXME: This hack should be removed a few years after 2.60.
15118 ac_datarootdir_hack=; ac_datarootdir_seen=
15119 ac_sed_dataroot='
15120 /datarootdir/ {
15121 p
15122 q
15123 }
15124 /@datadir@/p
15125 /@docdir@/p
15126 /@infodir@/p
15127 /@localedir@/p
15128 /@mandir@/p'
15129 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15130 *datarootdir*) ac_datarootdir_seen=yes;;
15131 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15133 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15134 _ACEOF
15135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15136 ac_datarootdir_hack='
15137 s&@datadir@&$datadir&g
15138 s&@docdir@&$docdir&g
15139 s&@infodir@&$infodir&g
15140 s&@localedir@&$localedir&g
15141 s&@mandir@&$mandir&g
15142 s&\\\${datarootdir}&$datarootdir&g' ;;
15143 esac
15144 _ACEOF
15145
15146 # Neutralize VPATH when `$srcdir' = `.'.
15147 # Shell code in configure.ac might set extrasub.
15148 # FIXME: do we really want to maintain this feature?
15149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15150 ac_sed_extra="$ac_vpsub
15151 $extrasub
15152 _ACEOF
15153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15154 :t
15155 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15156 s|@configure_input@|$ac_sed_conf_input|;t t
15157 s&@top_builddir@&$ac_top_builddir_sub&;t t
15158 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15159 s&@srcdir@&$ac_srcdir&;t t
15160 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15161 s&@top_srcdir@&$ac_top_srcdir&;t t
15162 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15163 s&@builddir@&$ac_builddir&;t t
15164 s&@abs_builddir@&$ac_abs_builddir&;t t
15165 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15166 s&@INSTALL@&$ac_INSTALL&;t t
15167 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15168 $ac_datarootdir_hack
15169 "
15170 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15171 if $ac_cs_awk_getline; then
15172 $AWK -f "$ac_tmp/subs.awk"
15173 else
15174 $AWK -f "$ac_tmp/subs.awk" | $SHELL
15175 fi \
15176 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15177
15178 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15179 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15180 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15181 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15183 which seems to be undefined. Please make sure it is defined" >&5
15184 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15185 which seems to be undefined. Please make sure it is defined" >&2;}
15186
15187 rm -f "$ac_tmp/stdin"
15188 case $ac_file in
15189 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15190 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15191 esac \
15192 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15193 ;;
15194 :H)
15195 #
15196 # CONFIG_HEADER
15197 #
15198 if test x"$ac_file" != x-; then
15199 {
15200 $as_echo "/* $configure_input */" \
15201 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15202 } >"$ac_tmp/config.h" \
15203 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15204 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15206 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15207 else
15208 rm -f "$ac_file"
15209 mv "$ac_tmp/config.h" "$ac_file" \
15210 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15211 fi
15212 else
15213 $as_echo "/* $configure_input */" \
15214 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15215 || as_fn_error $? "could not create -" "$LINENO" 5
15216 fi
15217 ;;
15218
15219 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15220 $as_echo "$as_me: executing $ac_file commands" >&6;}
15221 ;;
15222 esac
15223
15224
15225 case $ac_file$ac_mode in
15226 "po-directories":C)
15227 for ac_file in $CONFIG_FILES; do
15228 # Support "outfile[:infile[:infile...]]"
15229 case "$ac_file" in
15230 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15231 esac
15232 # PO directories have a Makefile.in generated from Makefile.in.in.
15233 case "$ac_file" in */Makefile.in)
15234 # Adjust a relative srcdir.
15235 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15236 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
15237 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15238 # In autoconf-2.13 it is called $ac_given_srcdir.
15239 # In autoconf-2.50 it is called $srcdir.
15240 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15241 case "$ac_given_srcdir" in
15242 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15243 /*) top_srcdir="$ac_given_srcdir" ;;
15244 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15245 esac
15246 # Treat a directory as a PO directory if and only if it has a
15247 # POTFILES.in file. This allows packages to have multiple PO
15248 # directories under different names or in different locations.
15249 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15250 rm -f "$ac_dir/POTFILES"
15251 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15252 gt_tab=`printf '\t'`
15253 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"
15254 POMAKEFILEDEPS="POTFILES.in"
15255 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15256 # on $ac_dir but don't depend on user-specified configuration
15257 # parameters.
15258 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15259 # The LINGUAS file contains the set of available languages.
15260 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15261 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15262 fi
15263 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15264 # Hide the ALL_LINGUAS assignment from automake < 1.5.
15265 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15266 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15267 else
15268 # The set of available languages was given in configure.in.
15269 # Hide the ALL_LINGUAS assignment from automake < 1.5.
15270 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15271 fi
15272 # Compute POFILES
15273 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15274 # Compute UPDATEPOFILES
15275 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15276 # Compute DUMMYPOFILES
15277 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15278 # Compute GMOFILES
15279 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15280 case "$ac_given_srcdir" in
15281 .) srcdirpre= ;;
15282 *) srcdirpre='$(srcdir)/' ;;
15283 esac
15284 POFILES=
15285 UPDATEPOFILES=
15286 DUMMYPOFILES=
15287 GMOFILES=
15288 for lang in $ALL_LINGUAS; do
15289 POFILES="$POFILES $srcdirpre$lang.po"
15290 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15291 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15292 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15293 done
15294 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15295 # environment variable.
15296 INST_LINGUAS=
15297 if test -n "$ALL_LINGUAS"; then
15298 for presentlang in $ALL_LINGUAS; do
15299 useit=no
15300 if test "%UNSET%" != "$LINGUAS"; then
15301 desiredlanguages="$LINGUAS"
15302 else
15303 desiredlanguages="$ALL_LINGUAS"
15304 fi
15305 for desiredlang in $desiredlanguages; do
15306 # Use the presentlang catalog if desiredlang is
15307 # a. equal to presentlang, or
15308 # b. a variant of presentlang (because in this case,
15309 # presentlang can be used as a fallback for messages
15310 # which are not translated in the desiredlang catalog).
15311 case "$desiredlang" in
15312 "$presentlang"*) useit=yes;;
15313 esac
15314 done
15315 if test $useit = yes; then
15316 INST_LINGUAS="$INST_LINGUAS $presentlang"
15317 fi
15318 done
15319 fi
15320 CATALOGS=
15321 if test -n "$INST_LINGUAS"; then
15322 for lang in $INST_LINGUAS; do
15323 CATALOGS="$CATALOGS $lang.gmo"
15324 done
15325 fi
15326 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15327 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"
15328 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15329 if test -f "$f"; then
15330 case "$f" in
15331 *.orig | *.bak | *~) ;;
15332 *) cat "$f" >> "$ac_dir/Makefile" ;;
15333 esac
15334 fi
15335 done
15336 fi
15337 ;;
15338 esac
15339 done ;;
15340
15341 esac
15342 done # for ac_tag
15343
15344
15345 as_fn_exit 0
15346 _ACEOF
15347 ac_clean_files=$ac_clean_files_save
15348
15349 test $ac_write_fail = 0 ||
15350 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15351
15352
15353 # configure is writing to config.log, and then calls config.status.
15354 # config.status does its own redirection, appending to config.log.
15355 # Unfortunately, on DOS this fails, as config.log is still kept open
15356 # by configure, so config.status won't be able to write to it; its
15357 # output is simply discarded. So we exec the FD to /dev/null,
15358 # effectively closing config.log, so it can be properly (re)opened and
15359 # appended to by config.status. When coming back to configure, we
15360 # need to make the FD available again.
15361 if test "$no_create" != yes; then
15362 ac_cs_success=:
15363 ac_config_status_args=
15364 test "$silent" = yes &&
15365 ac_config_status_args="$ac_config_status_args --quiet"
15366 exec 5>/dev/null
15367 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15368 exec 5>>config.log
15369 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15370 # would make configure fail if this is the last instruction.
15371 $ac_cs_success || as_fn_exit 1
15372 fi
15373 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15375 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15376 fi
15377
15378 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi