]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blob - configure
Merge branch 'maint' into next
[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 ac_header_list=
623 ac_subst_vars='LTLIBOBJS
624 LIBOBJS
625 BUILD_LDFLAGS
626 BUILD_CFLAGS
627 INCLUDES
628 DO_TEST_SUITE
629 ET_DIR
630 SS_DIR
631 LDFLAG_STATIC
632 root_sysconfdir
633 root_libdir
634 root_sbindir
635 root_bindir
636 root_prefix
637 UNIX_CMT
638 CYGWIN_CMT
639 LINUX_CMT
640 UNI_DIFF_OPTS
641 SEM_INIT_LIB
642 SOCKET_LIB
643 SIZEOF_OFF_T
644 SIZEOF_LONG_LONG
645 SIZEOF_LONG
646 SIZEOF_INT
647 SIZEOF_SHORT
648 BUILD_CC
649 MAKEINFO
650 STRIP
651 AR
652 LDCONFIG
653 PERL
654 SED
655 AWK
656 CHMOD
657 RM
658 CP
659 MV
660 LN_S
661 LN
662 ifNotGNUmake
663 ifGNUmake
664 BINARY_TYPE
665 POSUB
666 LTLIBINTL
667 LIBINTL
668 INTLLIBS
669 INTL_LIBTOOL_SUFFIX_PREFIX
670 INTLOBJS
671 GENCAT
672 INSTOBJEXT
673 DATADIRNAME
674 CATOBJEXT
675 USE_INCLUDED_LIBINTL
676 BUILD_INCLUDED_LIBINTL
677 INTLBISON
678 LTLIBICONV
679 LIBICONV
680 HAVE_WPRINTF
681 HAVE_SNPRINTF
682 HAVE_ASPRINTF
683 HAVE_POSIX_PRINTF
684 GLIBC21
685 ALLOCA
686 EGREP
687 GREP
688 RANLIB
689 MSGMERGE
690 XGETTEXT
691 GMSGFMT
692 MSGFMT
693 USE_NLS
694 MKINSTALLDIRS
695 INSTALL_DATA
696 INSTALL_SCRIPT
697 INSTALL_PROGRAM
698 SET_MAKE
699 VERSION
700 PACKAGE
701 GETTEXT_PACKAGE
702 UUIDD_CMT
703 E2INITRD_MAN
704 E2INITRD_PROG
705 FSCK_MAN
706 FSCK_PROG
707 DEFRAG_CMT
708 RESIZER_CMT
709 IMAGER_CMT
710 DEBUGFS_CMT
711 QUOTA_CMT
712 DEPPROFILED_LIBQUOTA
713 PROFILED_LIBQUOTA
714 DEPSTATIC_LIBQUOTA
715 STATIC_LIBQUOTA
716 DEPLIBQUOTA
717 LIBQUOTA
718 QUOTA_MAN_COMMENT
719 BLKID_CMT
720 DEPPROFILED_LIBBLKID
721 PROFILED_LIBBLKID
722 DEPSTATIC_LIBBLKID
723 STATIC_LIBBLKID
724 DEPLIBBLKID
725 LIBBLKID
726 UUID_CMT
727 DEPPROFILED_LIBUUID
728 PROFILED_LIBUUID
729 DEPSTATIC_LIBUUID
730 STATIC_LIBUUID
731 DEPLIBUUID
732 LIBUUID
733 PKG_CONFIG
734 TEST_IO_CMT
735 PRIVATE_LIBS_CMT
736 LDFLAG_DYNAMIC
737 PROFILED_LIB_EXT
738 STATIC_LIB_EXT
739 LIB_EXT
740 CHECKER_CMT
741 PROFILE_CMT
742 BSDLIB_CMT
743 ELF_CMT
744 HTREE_CMT
745 Q
746 ES
747 E
748 LINK_BUILD_FLAGS
749 SYMLINK_RELATIVE
750 LINK_INSTALL_FLAGS
751 MAINTAINER_CMT
752 CPP
753 RDYNAMIC
754 DLOPEN_LIB
755 OBJEXT
756 EXEEXT
757 ac_ct_CC
758 CPPFLAGS
759 LDFLAGS
760 CFLAGS
761 CC
762 host_os
763 host_vendor
764 host_cpu
765 host
766 build_os
767 build_vendor
768 build_cpu
769 build
770 E2FSPROGS_PKGVER
771 E2FSPROGS_VERSION
772 E2FSPROGS_DAY
773 E2FSPROGS_MONTH
774 E2FSPROGS_YEAR
775 target_alias
776 host_alias
777 build_alias
778 LIBS
779 ECHO_T
780 ECHO_N
781 ECHO_C
782 DEFS
783 mandir
784 localedir
785 libdir
786 psdir
787 pdfdir
788 dvidir
789 htmldir
790 infodir
791 docdir
792 oldincludedir
793 includedir
794 localstatedir
795 sharedstatedir
796 sysconfdir
797 datadir
798 datarootdir
799 libexecdir
800 sbindir
801 bindir
802 program_transform_name
803 prefix
804 exec_prefix
805 PACKAGE_URL
806 PACKAGE_BUGREPORT
807 PACKAGE_STRING
808 PACKAGE_VERSION
809 PACKAGE_TARNAME
810 PACKAGE_NAME
811 PATH_SEPARATOR
812 SHELL'
813 ac_subst_files='MCONFIG
814 MAKEFILE_ELF
815 MAKEFILE_BSDLIB
816 MAKEFILE_PROFILE
817 MAKEFILE_CHECKER
818 MAKEFILE_LIBRARY
819 ASM_TYPES_HEADER
820 PUBLIC_CONFIG_HEADER'
821 ac_user_opts='
822 enable_option_checking
823 with_diet_libc
824 with_cc
825 with_ccopts
826 with_ldopts
827 with_root_prefix
828 enable_maintainer_mode
829 enable_symlink_install
830 enable_relative_symlinks
831 enable_symlink_relative_symlinks
832 enable_symlink_build
833 enable_verbose_makecmds
834 enable_compression
835 enable_htree
836 enable_elf_shlibs
837 enable_bsd_shlibs
838 enable_profile
839 enable_checker
840 enable_jbd_debug
841 enable_blkid_debug
842 enable_testio_debug
843 enable_libuuid
844 enable_libblkid
845 enable_quota
846 enable_backtrace
847 enable_debugfs
848 enable_imager
849 enable_resizer
850 enable_defrag
851 enable_fsck
852 enable_e2initrd_helper
853 enable_tls
854 enable_uuidd
855 enable_mmp
856 enable_bmap_stats
857 enable_bmap_stats_ops
858 enable_nls
859 with_gnu_ld
860 enable_rpath
861 with_libiconv_prefix
862 with_included_gettext
863 with_libintl_prefix
864 with_multiarch
865 '
866 ac_precious_vars='build_alias
867 host_alias
868 target_alias
869 CC
870 CFLAGS
871 LDFLAGS
872 LIBS
873 CPPFLAGS
874 CPP
875 PKG_CONFIG'
876
877
878 # Initialize some variables set by options.
879 ac_init_help=
880 ac_init_version=false
881 ac_unrecognized_opts=
882 ac_unrecognized_sep=
883 # The variables have the same names as the options, with
884 # dashes changed to underlines.
885 cache_file=/dev/null
886 exec_prefix=NONE
887 no_create=
888 no_recursion=
889 prefix=NONE
890 program_prefix=NONE
891 program_suffix=NONE
892 program_transform_name=s,x,x,
893 silent=
894 site=
895 srcdir=
896 verbose=
897 x_includes=NONE
898 x_libraries=NONE
899
900 # Installation directory options.
901 # These are left unexpanded so users can "make install exec_prefix=/foo"
902 # and all the variables that are supposed to be based on exec_prefix
903 # by default will actually change.
904 # Use braces instead of parens because sh, perl, etc. also accept them.
905 # (The list follows the same order as the GNU Coding Standards.)
906 bindir='${exec_prefix}/bin'
907 sbindir='${exec_prefix}/sbin'
908 libexecdir='${exec_prefix}/libexec'
909 datarootdir='${prefix}/share'
910 datadir='${datarootdir}'
911 sysconfdir='${prefix}/etc'
912 sharedstatedir='${prefix}/com'
913 localstatedir='${prefix}/var'
914 includedir='${prefix}/include'
915 oldincludedir='/usr/include'
916 docdir='${datarootdir}/doc/${PACKAGE}'
917 infodir='${datarootdir}/info'
918 htmldir='${docdir}'
919 dvidir='${docdir}'
920 pdfdir='${docdir}'
921 psdir='${docdir}'
922 libdir='${exec_prefix}/lib'
923 localedir='${datarootdir}/locale'
924 mandir='${datarootdir}/man'
925
926 ac_prev=
927 ac_dashdash=
928 for ac_option
929 do
930 # If the previous option needs an argument, assign it.
931 if test -n "$ac_prev"; then
932 eval $ac_prev=\$ac_option
933 ac_prev=
934 continue
935 fi
936
937 case $ac_option in
938 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
939 *=) ac_optarg= ;;
940 *) ac_optarg=yes ;;
941 esac
942
943 # Accept the important Cygnus configure options, so we can diagnose typos.
944
945 case $ac_dashdash$ac_option in
946 --)
947 ac_dashdash=yes ;;
948
949 -bindir | --bindir | --bindi | --bind | --bin | --bi)
950 ac_prev=bindir ;;
951 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
952 bindir=$ac_optarg ;;
953
954 -build | --build | --buil | --bui | --bu)
955 ac_prev=build_alias ;;
956 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
957 build_alias=$ac_optarg ;;
958
959 -cache-file | --cache-file | --cache-fil | --cache-fi \
960 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
961 ac_prev=cache_file ;;
962 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
963 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
964 cache_file=$ac_optarg ;;
965
966 --config-cache | -C)
967 cache_file=config.cache ;;
968
969 -datadir | --datadir | --datadi | --datad)
970 ac_prev=datadir ;;
971 -datadir=* | --datadir=* | --datadi=* | --datad=*)
972 datadir=$ac_optarg ;;
973
974 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
975 | --dataroo | --dataro | --datar)
976 ac_prev=datarootdir ;;
977 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
978 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
979 datarootdir=$ac_optarg ;;
980
981 -disable-* | --disable-*)
982 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
983 # Reject names that are not valid shell variable names.
984 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
985 as_fn_error $? "invalid feature name: $ac_useropt"
986 ac_useropt_orig=$ac_useropt
987 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
988 case $ac_user_opts in
989 *"
990 "enable_$ac_useropt"
991 "*) ;;
992 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
993 ac_unrecognized_sep=', ';;
994 esac
995 eval enable_$ac_useropt=no ;;
996
997 -docdir | --docdir | --docdi | --doc | --do)
998 ac_prev=docdir ;;
999 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1000 docdir=$ac_optarg ;;
1001
1002 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1003 ac_prev=dvidir ;;
1004 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1005 dvidir=$ac_optarg ;;
1006
1007 -enable-* | --enable-*)
1008 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1009 # Reject names that are not valid shell variable names.
1010 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1011 as_fn_error $? "invalid feature name: $ac_useropt"
1012 ac_useropt_orig=$ac_useropt
1013 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014 case $ac_user_opts in
1015 *"
1016 "enable_$ac_useropt"
1017 "*) ;;
1018 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1019 ac_unrecognized_sep=', ';;
1020 esac
1021 eval enable_$ac_useropt=\$ac_optarg ;;
1022
1023 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1024 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1025 | --exec | --exe | --ex)
1026 ac_prev=exec_prefix ;;
1027 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1028 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1029 | --exec=* | --exe=* | --ex=*)
1030 exec_prefix=$ac_optarg ;;
1031
1032 -gas | --gas | --ga | --g)
1033 # Obsolete; use --with-gas.
1034 with_gas=yes ;;
1035
1036 -help | --help | --hel | --he | -h)
1037 ac_init_help=long ;;
1038 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1039 ac_init_help=recursive ;;
1040 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1041 ac_init_help=short ;;
1042
1043 -host | --host | --hos | --ho)
1044 ac_prev=host_alias ;;
1045 -host=* | --host=* | --hos=* | --ho=*)
1046 host_alias=$ac_optarg ;;
1047
1048 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1049 ac_prev=htmldir ;;
1050 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1051 | --ht=*)
1052 htmldir=$ac_optarg ;;
1053
1054 -includedir | --includedir | --includedi | --included | --include \
1055 | --includ | --inclu | --incl | --inc)
1056 ac_prev=includedir ;;
1057 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1058 | --includ=* | --inclu=* | --incl=* | --inc=*)
1059 includedir=$ac_optarg ;;
1060
1061 -infodir | --infodir | --infodi | --infod | --info | --inf)
1062 ac_prev=infodir ;;
1063 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1064 infodir=$ac_optarg ;;
1065
1066 -libdir | --libdir | --libdi | --libd)
1067 ac_prev=libdir ;;
1068 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1069 libdir=$ac_optarg ;;
1070
1071 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1072 | --libexe | --libex | --libe)
1073 ac_prev=libexecdir ;;
1074 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1075 | --libexe=* | --libex=* | --libe=*)
1076 libexecdir=$ac_optarg ;;
1077
1078 -localedir | --localedir | --localedi | --localed | --locale)
1079 ac_prev=localedir ;;
1080 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1081 localedir=$ac_optarg ;;
1082
1083 -localstatedir | --localstatedir | --localstatedi | --localstated \
1084 | --localstate | --localstat | --localsta | --localst | --locals)
1085 ac_prev=localstatedir ;;
1086 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1087 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1088 localstatedir=$ac_optarg ;;
1089
1090 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1091 ac_prev=mandir ;;
1092 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1093 mandir=$ac_optarg ;;
1094
1095 -nfp | --nfp | --nf)
1096 # Obsolete; use --without-fp.
1097 with_fp=no ;;
1098
1099 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1100 | --no-cr | --no-c | -n)
1101 no_create=yes ;;
1102
1103 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1104 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1105 no_recursion=yes ;;
1106
1107 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1108 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1109 | --oldin | --oldi | --old | --ol | --o)
1110 ac_prev=oldincludedir ;;
1111 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1112 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1113 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1114 oldincludedir=$ac_optarg ;;
1115
1116 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1117 ac_prev=prefix ;;
1118 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1119 prefix=$ac_optarg ;;
1120
1121 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1122 | --program-pre | --program-pr | --program-p)
1123 ac_prev=program_prefix ;;
1124 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1125 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1126 program_prefix=$ac_optarg ;;
1127
1128 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1129 | --program-suf | --program-su | --program-s)
1130 ac_prev=program_suffix ;;
1131 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1132 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1133 program_suffix=$ac_optarg ;;
1134
1135 -program-transform-name | --program-transform-name \
1136 | --program-transform-nam | --program-transform-na \
1137 | --program-transform-n | --program-transform- \
1138 | --program-transform | --program-transfor \
1139 | --program-transfo | --program-transf \
1140 | --program-trans | --program-tran \
1141 | --progr-tra | --program-tr | --program-t)
1142 ac_prev=program_transform_name ;;
1143 -program-transform-name=* | --program-transform-name=* \
1144 | --program-transform-nam=* | --program-transform-na=* \
1145 | --program-transform-n=* | --program-transform-=* \
1146 | --program-transform=* | --program-transfor=* \
1147 | --program-transfo=* | --program-transf=* \
1148 | --program-trans=* | --program-tran=* \
1149 | --progr-tra=* | --program-tr=* | --program-t=*)
1150 program_transform_name=$ac_optarg ;;
1151
1152 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1153 ac_prev=pdfdir ;;
1154 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1155 pdfdir=$ac_optarg ;;
1156
1157 -psdir | --psdir | --psdi | --psd | --ps)
1158 ac_prev=psdir ;;
1159 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1160 psdir=$ac_optarg ;;
1161
1162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1163 | -silent | --silent | --silen | --sile | --sil)
1164 silent=yes ;;
1165
1166 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167 ac_prev=sbindir ;;
1168 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169 | --sbi=* | --sb=*)
1170 sbindir=$ac_optarg ;;
1171
1172 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174 | --sharedst | --shareds | --shared | --share | --shar \
1175 | --sha | --sh)
1176 ac_prev=sharedstatedir ;;
1177 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180 | --sha=* | --sh=*)
1181 sharedstatedir=$ac_optarg ;;
1182
1183 -site | --site | --sit)
1184 ac_prev=site ;;
1185 -site=* | --site=* | --sit=*)
1186 site=$ac_optarg ;;
1187
1188 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189 ac_prev=srcdir ;;
1190 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1191 srcdir=$ac_optarg ;;
1192
1193 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194 | --syscon | --sysco | --sysc | --sys | --sy)
1195 ac_prev=sysconfdir ;;
1196 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1198 sysconfdir=$ac_optarg ;;
1199
1200 -target | --target | --targe | --targ | --tar | --ta | --t)
1201 ac_prev=target_alias ;;
1202 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1203 target_alias=$ac_optarg ;;
1204
1205 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206 verbose=yes ;;
1207
1208 -version | --version | --versio | --versi | --vers | -V)
1209 ac_init_version=: ;;
1210
1211 -with-* | --with-*)
1212 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215 as_fn_error $? "invalid package name: $ac_useropt"
1216 ac_useropt_orig=$ac_useropt
1217 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218 case $ac_user_opts in
1219 *"
1220 "with_$ac_useropt"
1221 "*) ;;
1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1223 ac_unrecognized_sep=', ';;
1224 esac
1225 eval with_$ac_useropt=\$ac_optarg ;;
1226
1227 -without-* | --without-*)
1228 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231 as_fn_error $? "invalid package name: $ac_useropt"
1232 ac_useropt_orig=$ac_useropt
1233 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234 case $ac_user_opts in
1235 *"
1236 "with_$ac_useropt"
1237 "*) ;;
1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1239 ac_unrecognized_sep=', ';;
1240 esac
1241 eval with_$ac_useropt=no ;;
1242
1243 --x)
1244 # Obsolete; use --with-x.
1245 with_x=yes ;;
1246
1247 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1248 | --x-incl | --x-inc | --x-in | --x-i)
1249 ac_prev=x_includes ;;
1250 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1251 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1252 x_includes=$ac_optarg ;;
1253
1254 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1255 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1256 ac_prev=x_libraries ;;
1257 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1258 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1259 x_libraries=$ac_optarg ;;
1260
1261 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1262 Try \`$0 --help' for more information"
1263 ;;
1264
1265 *=*)
1266 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1267 # Reject names that are not valid shell variable names.
1268 case $ac_envvar in #(
1269 '' | [0-9]* | *[!_$as_cr_alnum]* )
1270 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1271 esac
1272 eval $ac_envvar=\$ac_optarg
1273 export $ac_envvar ;;
1274
1275 *)
1276 # FIXME: should be removed in autoconf 3.0.
1277 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1278 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1279 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1280 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1281 ;;
1282
1283 esac
1284 done
1285
1286 if test -n "$ac_prev"; then
1287 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1288 as_fn_error $? "missing argument to $ac_option"
1289 fi
1290
1291 if test -n "$ac_unrecognized_opts"; then
1292 case $enable_option_checking in
1293 no) ;;
1294 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1295 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1296 esac
1297 fi
1298
1299 # Check all directory arguments for consistency.
1300 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1301 datadir sysconfdir sharedstatedir localstatedir includedir \
1302 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1303 libdir localedir mandir
1304 do
1305 eval ac_val=\$$ac_var
1306 # Remove trailing slashes.
1307 case $ac_val in
1308 */ )
1309 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1310 eval $ac_var=\$ac_val;;
1311 esac
1312 # Be sure to have absolute directory names.
1313 case $ac_val in
1314 [\\/$]* | ?:[\\/]* ) continue;;
1315 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1316 esac
1317 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1318 done
1319
1320 # There might be people who depend on the old broken behavior: `$host'
1321 # used to hold the argument of --host etc.
1322 # FIXME: To remove some day.
1323 build=$build_alias
1324 host=$host_alias
1325 target=$target_alias
1326
1327 # FIXME: To remove some day.
1328 if test "x$host_alias" != x; then
1329 if test "x$build_alias" = x; then
1330 cross_compiling=maybe
1331 elif test "x$build_alias" != "x$host_alias"; then
1332 cross_compiling=yes
1333 fi
1334 fi
1335
1336 ac_tool_prefix=
1337 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1338
1339 test "$silent" = yes && exec 6>/dev/null
1340
1341
1342 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1343 ac_ls_di=`ls -di .` &&
1344 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1345 as_fn_error $? "working directory cannot be determined"
1346 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1347 as_fn_error $? "pwd does not report name of working directory"
1348
1349
1350 # Find the source files, if location was not specified.
1351 if test -z "$srcdir"; then
1352 ac_srcdir_defaulted=yes
1353 # Try the directory containing this script, then the parent directory.
1354 ac_confdir=`$as_dirname -- "$as_myself" ||
1355 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1356 X"$as_myself" : 'X\(//\)[^/]' \| \
1357 X"$as_myself" : 'X\(//\)$' \| \
1358 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1359 $as_echo X"$as_myself" |
1360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1361 s//\1/
1362 q
1363 }
1364 /^X\(\/\/\)[^/].*/{
1365 s//\1/
1366 q
1367 }
1368 /^X\(\/\/\)$/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\).*/{
1373 s//\1/
1374 q
1375 }
1376 s/.*/./; q'`
1377 srcdir=$ac_confdir
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1379 srcdir=..
1380 fi
1381 else
1382 ac_srcdir_defaulted=no
1383 fi
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1386 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1387 fi
1388 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1389 ac_abs_confdir=`(
1390 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1391 pwd)`
1392 # When building in place, set srcdir=.
1393 if test "$ac_abs_confdir" = "$ac_pwd"; then
1394 srcdir=.
1395 fi
1396 # Remove unnecessary trailing slashes from srcdir.
1397 # Double slashes in file names in object file debugging info
1398 # mess up M-x gdb in Emacs.
1399 case $srcdir in
1400 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1401 esac
1402 for ac_var in $ac_precious_vars; do
1403 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_env_${ac_var}_value=\$${ac_var}
1405 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407 done
1408
1409 #
1410 # Report the --help message.
1411 #
1412 if test "$ac_init_help" = "long"; then
1413 # Omit some internal or obsolete options to make the list less imposing.
1414 # This message is too long to be a string in the A/UX 3.1 sh.
1415 cat <<_ACEOF
1416 \`configure' configures this package to adapt to many kinds of systems.
1417
1418 Usage: $0 [OPTION]... [VAR=VALUE]...
1419
1420 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1421 VAR=VALUE. See below for descriptions of some of the useful variables.
1422
1423 Defaults for the options are specified in brackets.
1424
1425 Configuration:
1426 -h, --help display this help and exit
1427 --help=short display options specific to this package
1428 --help=recursive display the short help of all the included packages
1429 -V, --version display version information and exit
1430 -q, --quiet, --silent do not print \`checking ...' messages
1431 --cache-file=FILE cache test results in FILE [disabled]
1432 -C, --config-cache alias for \`--cache-file=config.cache'
1433 -n, --no-create do not create output files
1434 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1435
1436 Installation directories:
1437 --prefix=PREFIX install architecture-independent files in PREFIX
1438 [$ac_default_prefix]
1439 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1440 [PREFIX]
1441
1442 By default, \`make install' will install all the files in
1443 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1444 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1445 for instance \`--prefix=\$HOME'.
1446
1447 For better control, use the options below.
1448
1449 Fine tuning of the installation directories:
1450 --bindir=DIR user executables [EPREFIX/bin]
1451 --sbindir=DIR system admin executables [EPREFIX/sbin]
1452 --libexecdir=DIR program executables [EPREFIX/libexec]
1453 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1454 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1455 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1456 --libdir=DIR object code libraries [EPREFIX/lib]
1457 --includedir=DIR C header files [PREFIX/include]
1458 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1459 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1460 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1461 --infodir=DIR info documentation [DATAROOTDIR/info]
1462 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1463 --mandir=DIR man documentation [DATAROOTDIR/man]
1464 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1465 --htmldir=DIR html documentation [DOCDIR]
1466 --dvidir=DIR dvi documentation [DOCDIR]
1467 --pdfdir=DIR pdf documentation [DOCDIR]
1468 --psdir=DIR ps documentation [DOCDIR]
1469 _ACEOF
1470
1471 cat <<\_ACEOF
1472
1473 System types:
1474 --build=BUILD configure for building on BUILD [guessed]
1475 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1476 _ACEOF
1477 fi
1478
1479 if test -n "$ac_init_help"; then
1480
1481 cat <<\_ACEOF
1482
1483 Optional Features:
1484 --disable-option-checking ignore unrecognized --enable/--with options
1485 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1486 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1487 --enable-maintainer-mode enable makefile rules useful for maintainers
1488 --enable-symlink-install use symlinks when installing instead of hard links
1489 --enable-relative-symlinks use relative symlinks when installing
1490
1491 --enable-symlink-build use symlinks while building instead of hard links
1492 --enable-verbose-makecmds enable verbose make command output
1493 --enable-compression enable EXPERIMENTAL compression support
1494 --enable-htree enable EXPERIMENTAL htree directory support
1495 --enable-elf-shlibs select ELF shared libraries
1496 --enable-bsd-shlibs select BSD shared libraries
1497 --enable-profile build profiling libraries
1498 --enable-checker build checker libraries
1499 --enable-jbd-debug enable journal debugging
1500 --enable-blkid-debug enable blkid debugging
1501 --disable-testio-debug disable the use of the test I/O manager for debugging
1502 --disable-libuuid do not build private uuid library
1503 --disable-libblkid do not build private blkid library
1504 --enable-quota enable quota support
1505 --disable-backtrace disable use backtrace
1506 --disable-debugfs disable support of debugfs program
1507 --disable-imager disable support of e2image program
1508 --disable-resizer disable support of e2resize program
1509 --disable-defrag disable support of e4defrag program
1510 --enable-fsck build fsck wrapper program
1511 --enable-e2initrd-helper build e2initrd-helper program
1512 --disable-tls disable use of thread local support
1513 --disable-uuidd disable building the uuid daemon
1514 --disable-mmp disable support mmp, Multi Mount Protection
1515 --disable-bmap-stats disable collection of bitmap stats.
1516 --enable-bmap-stats-ops enable collection of additional bitmap stats
1517 --disable-nls do not use Native Language Support
1518 --disable-rpath do not hardcode runtime library paths
1519
1520 Optional Packages:
1521 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1522 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1523 --with-diet-libc use diet libc
1524 --with-cc no longer supported, use CC= instead
1525 --with-ccopts no longer supported, use CFLAGS= instead
1526 --with-ldopts no longer supported, use LDFLAGS= instead
1527 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1528 --with-gnu-ld assume the C compiler uses GNU ld default=no
1529 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1530 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1531 --with-included-gettext use the GNU gettext library included here
1532 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1533 --without-libintl-prefix don't search for libintl in includedir and libdir
1534 --with-multiarch=ARCH specify the multiarch triplet
1535
1536 Some influential environment variables:
1537 CC C compiler command
1538 CFLAGS C compiler flags
1539 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1540 nonstandard directory <lib dir>
1541 LIBS libraries to pass to the linker, e.g. -l<library>
1542 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1543 you have headers in a nonstandard directory <include dir>
1544 CPP C preprocessor
1545 PKG_CONFIG path to pkg-config utility
1546
1547 Use these variables to override the choices made by `configure' or to help
1548 it to find libraries and programs with nonstandard names/locations.
1549
1550 Report bugs to the package provider.
1551 _ACEOF
1552 ac_status=$?
1553 fi
1554
1555 if test "$ac_init_help" = "recursive"; then
1556 # If there are subdirs, report their specific --help.
1557 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1558 test -d "$ac_dir" ||
1559 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1560 continue
1561 ac_builddir=.
1562
1563 case "$ac_dir" in
1564 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 *)
1566 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1567 # A ".." for each directory in $ac_dir_suffix.
1568 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1569 case $ac_top_builddir_sub in
1570 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1572 esac ;;
1573 esac
1574 ac_abs_top_builddir=$ac_pwd
1575 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1576 # for backward compatibility:
1577 ac_top_builddir=$ac_top_build_prefix
1578
1579 case $srcdir in
1580 .) # We are building in place.
1581 ac_srcdir=.
1582 ac_top_srcdir=$ac_top_builddir_sub
1583 ac_abs_top_srcdir=$ac_pwd ;;
1584 [\\/]* | ?:[\\/]* ) # Absolute name.
1585 ac_srcdir=$srcdir$ac_dir_suffix;
1586 ac_top_srcdir=$srcdir
1587 ac_abs_top_srcdir=$srcdir ;;
1588 *) # Relative name.
1589 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1590 ac_top_srcdir=$ac_top_build_prefix$srcdir
1591 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1592 esac
1593 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1594
1595 cd "$ac_dir" || { ac_status=$?; continue; }
1596 # Check for guested configure.
1597 if test -f "$ac_srcdir/configure.gnu"; then
1598 echo &&
1599 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1600 elif test -f "$ac_srcdir/configure"; then
1601 echo &&
1602 $SHELL "$ac_srcdir/configure" --help=recursive
1603 else
1604 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1605 fi || ac_status=$?
1606 cd "$ac_pwd" || { ac_status=$?; break; }
1607 done
1608 fi
1609
1610 test -n "$ac_init_help" && exit $ac_status
1611 if $ac_init_version; then
1612 cat <<\_ACEOF
1613 configure
1614 generated by GNU Autoconf 2.69
1615
1616 Copyright (C) 2012 Free Software Foundation, Inc.
1617 This configure script is free software; the Free Software Foundation
1618 gives unlimited permission to copy, distribute and modify it.
1619 _ACEOF
1620 exit
1621 fi
1622
1623 ## ------------------------ ##
1624 ## Autoconf initialization. ##
1625 ## ------------------------ ##
1626
1627 # ac_fn_c_try_compile LINENO
1628 # --------------------------
1629 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1630 ac_fn_c_try_compile ()
1631 {
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 rm -f conftest.$ac_objext
1634 if { { ac_try="$ac_compile"
1635 case "(($ac_try" in
1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637 *) ac_try_echo=$ac_try;;
1638 esac
1639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_compile") 2>conftest.err
1642 ac_status=$?
1643 if test -s conftest.err; then
1644 grep -v '^ *+' conftest.err >conftest.er1
1645 cat conftest.er1 >&5
1646 mv -f conftest.er1 conftest.err
1647 fi
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } && {
1650 test -z "$ac_c_werror_flag" ||
1651 test ! -s conftest.err
1652 } && test -s conftest.$ac_objext; then :
1653 ac_retval=0
1654 else
1655 $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1657
1658 ac_retval=1
1659 fi
1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661 as_fn_set_status $ac_retval
1662
1663 } # ac_fn_c_try_compile
1664
1665 # ac_fn_c_try_link LINENO
1666 # -----------------------
1667 # Try to link conftest.$ac_ext, and return whether this succeeded.
1668 ac_fn_c_try_link ()
1669 {
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 rm -f conftest.$ac_objext conftest$ac_exeext
1672 if { { ac_try="$ac_link"
1673 case "(($ac_try" in
1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675 *) ac_try_echo=$ac_try;;
1676 esac
1677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 $as_echo "$ac_try_echo"; } >&5
1679 (eval "$ac_link") 2>conftest.err
1680 ac_status=$?
1681 if test -s conftest.err; then
1682 grep -v '^ *+' conftest.err >conftest.er1
1683 cat conftest.er1 >&5
1684 mv -f conftest.er1 conftest.err
1685 fi
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } && {
1688 test -z "$ac_c_werror_flag" ||
1689 test ! -s conftest.err
1690 } && test -s conftest$ac_exeext && {
1691 test "$cross_compiling" = yes ||
1692 test -x conftest$ac_exeext
1693 }; then :
1694 ac_retval=0
1695 else
1696 $as_echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1698
1699 ac_retval=1
1700 fi
1701 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1702 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1703 # interfere with the next link command; also delete a directory that is
1704 # left behind by Apple's compiler. We do this before executing the actions.
1705 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707 as_fn_set_status $ac_retval
1708
1709 } # ac_fn_c_try_link
1710
1711 # ac_fn_c_try_cpp LINENO
1712 # ----------------------
1713 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1714 ac_fn_c_try_cpp ()
1715 {
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 if { { ac_try="$ac_cpp conftest.$ac_ext"
1718 case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1725 ac_status=$?
1726 if test -s conftest.err; then
1727 grep -v '^ *+' conftest.err >conftest.er1
1728 cat conftest.er1 >&5
1729 mv -f conftest.er1 conftest.err
1730 fi
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } > conftest.i && {
1733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1734 test ! -s conftest.err
1735 }; then :
1736 ac_retval=0
1737 else
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1740
1741 ac_retval=1
1742 fi
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 as_fn_set_status $ac_retval
1745
1746 } # ac_fn_c_try_cpp
1747
1748 # ac_fn_c_try_run LINENO
1749 # ----------------------
1750 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1751 # that executables *can* be run.
1752 ac_fn_c_try_run ()
1753 {
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 if { { ac_try="$ac_link"
1756 case "(($ac_try" in
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1759 esac
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_link") 2>&5
1763 ac_status=$?
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1766 { { case "(($ac_try" in
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1769 esac
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_try") 2>&5
1773 ac_status=$?
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; }; }; then :
1776 ac_retval=0
1777 else
1778 $as_echo "$as_me: program exited with status $ac_status" >&5
1779 $as_echo "$as_me: failed program was:" >&5
1780 sed 's/^/| /' conftest.$ac_ext >&5
1781
1782 ac_retval=$ac_status
1783 fi
1784 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786 as_fn_set_status $ac_retval
1787
1788 } # ac_fn_c_try_run
1789
1790 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1791 # -------------------------------------------
1792 # Tests whether TYPE exists after having included INCLUDES, setting cache
1793 # variable VAR accordingly.
1794 ac_fn_c_check_type ()
1795 {
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 $as_echo_n "checking for $2... " >&6; }
1799 if eval \${$3+:} false; then :
1800 $as_echo_n "(cached) " >&6
1801 else
1802 eval "$3=no"
1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h. */
1805 $4
1806 int
1807 main ()
1808 {
1809 if (sizeof ($2))
1810 return 0;
1811 ;
1812 return 0;
1813 }
1814 _ACEOF
1815 if ac_fn_c_try_compile "$LINENO"; then :
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1818 $4
1819 int
1820 main ()
1821 {
1822 if (sizeof (($2)))
1823 return 0;
1824 ;
1825 return 0;
1826 }
1827 _ACEOF
1828 if ac_fn_c_try_compile "$LINENO"; then :
1829
1830 else
1831 eval "$3=yes"
1832 fi
1833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1834 fi
1835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1836 fi
1837 eval ac_res=\$$3
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839 $as_echo "$ac_res" >&6; }
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841
1842 } # ac_fn_c_check_type
1843
1844 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1845 # -------------------------------------------------------
1846 # Tests whether HEADER exists and can be compiled using the include files in
1847 # INCLUDES, setting the cache variable VAR accordingly.
1848 ac_fn_c_check_header_compile ()
1849 {
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if eval \${$3+:} false; then :
1854 $as_echo_n "(cached) " >&6
1855 else
1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h. */
1858 $4
1859 #include <$2>
1860 _ACEOF
1861 if ac_fn_c_try_compile "$LINENO"; then :
1862 eval "$3=yes"
1863 else
1864 eval "$3=no"
1865 fi
1866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1867 fi
1868 eval ac_res=\$$3
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870 $as_echo "$ac_res" >&6; }
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872
1873 } # ac_fn_c_check_header_compile
1874
1875 # ac_fn_c_check_func LINENO FUNC VAR
1876 # ----------------------------------
1877 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1878 ac_fn_c_check_func ()
1879 {
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882 $as_echo_n "checking for $2... " >&6; }
1883 if eval \${$3+:} false; then :
1884 $as_echo_n "(cached) " >&6
1885 else
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1888 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1890 #define $2 innocuous_$2
1891
1892 /* System header to define __stub macros and hopefully few prototypes,
1893 which can conflict with char $2 (); below.
1894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1895 <limits.h> exists even on freestanding compilers. */
1896
1897 #ifdef __STDC__
1898 # include <limits.h>
1899 #else
1900 # include <assert.h>
1901 #endif
1902
1903 #undef $2
1904
1905 /* Override any GCC internal prototype to avoid an error.
1906 Use char because int might match the return type of a GCC
1907 builtin and then its argument prototype would still apply. */
1908 #ifdef __cplusplus
1909 extern "C"
1910 #endif
1911 char $2 ();
1912 /* The GNU C library defines this for functions which it implements
1913 to always fail with ENOSYS. Some functions are actually named
1914 something starting with __ and the normal name is an alias. */
1915 #if defined __stub_$2 || defined __stub___$2
1916 choke me
1917 #endif
1918
1919 int
1920 main ()
1921 {
1922 return $2 ();
1923 ;
1924 return 0;
1925 }
1926 _ACEOF
1927 if ac_fn_c_try_link "$LINENO"; then :
1928 eval "$3=yes"
1929 else
1930 eval "$3=no"
1931 fi
1932 rm -f core conftest.err conftest.$ac_objext \
1933 conftest$ac_exeext conftest.$ac_ext
1934 fi
1935 eval ac_res=\$$3
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 $as_echo "$ac_res" >&6; }
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939
1940 } # ac_fn_c_check_func
1941
1942 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1943 # -------------------------------------------------------
1944 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1945 # the include files in INCLUDES and setting the cache variable VAR
1946 # accordingly.
1947 ac_fn_c_check_header_mongrel ()
1948 {
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 if eval \${$3+:} false; then :
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if eval \${$3+:} false; then :
1954 $as_echo_n "(cached) " >&6
1955 fi
1956 eval ac_res=\$$3
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958 $as_echo "$ac_res" >&6; }
1959 else
1960 # Is the header compilable?
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1962 $as_echo_n "checking $2 usability... " >&6; }
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1965 $4
1966 #include <$2>
1967 _ACEOF
1968 if ac_fn_c_try_compile "$LINENO"; then :
1969 ac_header_compiler=yes
1970 else
1971 ac_header_compiler=no
1972 fi
1973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1975 $as_echo "$ac_header_compiler" >&6; }
1976
1977 # Is the header present?
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1979 $as_echo_n "checking $2 presence... " >&6; }
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h. */
1982 #include <$2>
1983 _ACEOF
1984 if ac_fn_c_try_cpp "$LINENO"; then :
1985 ac_header_preproc=yes
1986 else
1987 ac_header_preproc=no
1988 fi
1989 rm -f conftest.err conftest.i conftest.$ac_ext
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1991 $as_echo "$ac_header_preproc" >&6; }
1992
1993 # So? What about this header?
1994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1995 yes:no: )
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1997 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1999 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2000 ;;
2001 no:yes:* )
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2003 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2005 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2007 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2009 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2011 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2012 ;;
2013 esac
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015 $as_echo_n "checking for $2... " >&6; }
2016 if eval \${$3+:} false; then :
2017 $as_echo_n "(cached) " >&6
2018 else
2019 eval "$3=\$ac_header_compiler"
2020 fi
2021 eval ac_res=\$$3
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023 $as_echo "$ac_res" >&6; }
2024 fi
2025 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2026
2027 } # ac_fn_c_check_header_mongrel
2028
2029 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2030 # --------------------------------------------
2031 # Tries to find the compile-time value of EXPR in a program that includes
2032 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2033 # computed
2034 ac_fn_c_compute_int ()
2035 {
2036 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2037 if test "$cross_compiling" = yes; then
2038 # Depending upon the size, compute the lo and hi bounds.
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2041 $4
2042 int
2043 main ()
2044 {
2045 static int test_array [1 - 2 * !(($2) >= 0)];
2046 test_array [0] = 0;
2047 return test_array [0];
2048
2049 ;
2050 return 0;
2051 }
2052 _ACEOF
2053 if ac_fn_c_try_compile "$LINENO"; then :
2054 ac_lo=0 ac_mid=0
2055 while :; do
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2058 $4
2059 int
2060 main ()
2061 {
2062 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2063 test_array [0] = 0;
2064 return test_array [0];
2065
2066 ;
2067 return 0;
2068 }
2069 _ACEOF
2070 if ac_fn_c_try_compile "$LINENO"; then :
2071 ac_hi=$ac_mid; break
2072 else
2073 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2074 if test $ac_lo -le $ac_mid; then
2075 ac_lo= ac_hi=
2076 break
2077 fi
2078 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2079 fi
2080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081 done
2082 else
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2085 $4
2086 int
2087 main ()
2088 {
2089 static int test_array [1 - 2 * !(($2) < 0)];
2090 test_array [0] = 0;
2091 return test_array [0];
2092
2093 ;
2094 return 0;
2095 }
2096 _ACEOF
2097 if ac_fn_c_try_compile "$LINENO"; then :
2098 ac_hi=-1 ac_mid=-1
2099 while :; do
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h. */
2102 $4
2103 int
2104 main ()
2105 {
2106 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2107 test_array [0] = 0;
2108 return test_array [0];
2109
2110 ;
2111 return 0;
2112 }
2113 _ACEOF
2114 if ac_fn_c_try_compile "$LINENO"; then :
2115 ac_lo=$ac_mid; break
2116 else
2117 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2118 if test $ac_mid -le $ac_hi; then
2119 ac_lo= ac_hi=
2120 break
2121 fi
2122 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2123 fi
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 done
2126 else
2127 ac_lo= ac_hi=
2128 fi
2129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130 fi
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 # Binary search between lo and hi bounds.
2133 while test "x$ac_lo" != "x$ac_hi"; do
2134 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2137 $4
2138 int
2139 main ()
2140 {
2141 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2142 test_array [0] = 0;
2143 return test_array [0];
2144
2145 ;
2146 return 0;
2147 }
2148 _ACEOF
2149 if ac_fn_c_try_compile "$LINENO"; then :
2150 ac_hi=$ac_mid
2151 else
2152 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2153 fi
2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155 done
2156 case $ac_lo in #((
2157 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2158 '') ac_retval=1 ;;
2159 esac
2160 else
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2163 $4
2164 static long int longval () { return $2; }
2165 static unsigned long int ulongval () { return $2; }
2166 #include <stdio.h>
2167 #include <stdlib.h>
2168 int
2169 main ()
2170 {
2171
2172 FILE *f = fopen ("conftest.val", "w");
2173 if (! f)
2174 return 1;
2175 if (($2) < 0)
2176 {
2177 long int i = longval ();
2178 if (i != ($2))
2179 return 1;
2180 fprintf (f, "%ld", i);
2181 }
2182 else
2183 {
2184 unsigned long int i = ulongval ();
2185 if (i != ($2))
2186 return 1;
2187 fprintf (f, "%lu", i);
2188 }
2189 /* Do not output a trailing newline, as this causes \r\n confusion
2190 on some platforms. */
2191 return ferror (f) || fclose (f) != 0;
2192
2193 ;
2194 return 0;
2195 }
2196 _ACEOF
2197 if ac_fn_c_try_run "$LINENO"; then :
2198 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2199 else
2200 ac_retval=1
2201 fi
2202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2203 conftest.$ac_objext conftest.beam conftest.$ac_ext
2204 rm -f conftest.val
2205
2206 fi
2207 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2208 as_fn_set_status $ac_retval
2209
2210 } # ac_fn_c_compute_int
2211
2212 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2213 # ----------------------------------------------------
2214 # Tries to find if the field MEMBER exists in type AGGR, after including
2215 # INCLUDES, setting cache variable VAR accordingly.
2216 ac_fn_c_check_member ()
2217 {
2218 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2220 $as_echo_n "checking for $2.$3... " >&6; }
2221 if eval \${$4+:} false; then :
2222 $as_echo_n "(cached) " >&6
2223 else
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2226 $5
2227 int
2228 main ()
2229 {
2230 static $2 ac_aggr;
2231 if (ac_aggr.$3)
2232 return 0;
2233 ;
2234 return 0;
2235 }
2236 _ACEOF
2237 if ac_fn_c_try_compile "$LINENO"; then :
2238 eval "$4=yes"
2239 else
2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2242 $5
2243 int
2244 main ()
2245 {
2246 static $2 ac_aggr;
2247 if (sizeof ac_aggr.$3)
2248 return 0;
2249 ;
2250 return 0;
2251 }
2252 _ACEOF
2253 if ac_fn_c_try_compile "$LINENO"; then :
2254 eval "$4=yes"
2255 else
2256 eval "$4=no"
2257 fi
2258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259 fi
2260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261 fi
2262 eval ac_res=\$$4
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2264 $as_echo "$ac_res" >&6; }
2265 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2266
2267 } # ac_fn_c_check_member
2268
2269 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2270 # ---------------------------------------------
2271 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2272 # accordingly.
2273 ac_fn_c_check_decl ()
2274 {
2275 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2276 as_decl_name=`echo $2|sed 's/ *(.*//'`
2277 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2279 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2280 if eval \${$3+:} false; then :
2281 $as_echo_n "(cached) " >&6
2282 else
2283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h. */
2285 $4
2286 int
2287 main ()
2288 {
2289 #ifndef $as_decl_name
2290 #ifdef __cplusplus
2291 (void) $as_decl_use;
2292 #else
2293 (void) $as_decl_name;
2294 #endif
2295 #endif
2296
2297 ;
2298 return 0;
2299 }
2300 _ACEOF
2301 if ac_fn_c_try_compile "$LINENO"; then :
2302 eval "$3=yes"
2303 else
2304 eval "$3=no"
2305 fi
2306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307 fi
2308 eval ac_res=\$$3
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2310 $as_echo "$ac_res" >&6; }
2311 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2312
2313 } # ac_fn_c_check_decl
2314 cat >config.log <<_ACEOF
2315 This file contains any messages produced by compilers while
2316 running configure, to aid debugging if configure makes a mistake.
2317
2318 It was created by $as_me, which was
2319 generated by GNU Autoconf 2.69. Invocation command line was
2320
2321 $ $0 $@
2322
2323 _ACEOF
2324 exec 5>>config.log
2325 {
2326 cat <<_ASUNAME
2327 ## --------- ##
2328 ## Platform. ##
2329 ## --------- ##
2330
2331 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2332 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2333 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2334 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2335 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2336
2337 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2338 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2339
2340 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2341 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2342 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2343 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2344 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2345 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2346 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2347
2348 _ASUNAME
2349
2350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351 for as_dir in $PATH
2352 do
2353 IFS=$as_save_IFS
2354 test -z "$as_dir" && as_dir=.
2355 $as_echo "PATH: $as_dir"
2356 done
2357 IFS=$as_save_IFS
2358
2359 } >&5
2360
2361 cat >&5 <<_ACEOF
2362
2363
2364 ## ----------- ##
2365 ## Core tests. ##
2366 ## ----------- ##
2367
2368 _ACEOF
2369
2370
2371 # Keep a trace of the command line.
2372 # Strip out --no-create and --no-recursion so they do not pile up.
2373 # Strip out --silent because we don't want to record it for future runs.
2374 # Also quote any args containing shell meta-characters.
2375 # Make two passes to allow for proper duplicate-argument suppression.
2376 ac_configure_args=
2377 ac_configure_args0=
2378 ac_configure_args1=
2379 ac_must_keep_next=false
2380 for ac_pass in 1 2
2381 do
2382 for ac_arg
2383 do
2384 case $ac_arg in
2385 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2386 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2387 | -silent | --silent | --silen | --sile | --sil)
2388 continue ;;
2389 *\'*)
2390 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2391 esac
2392 case $ac_pass in
2393 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2394 2)
2395 as_fn_append ac_configure_args1 " '$ac_arg'"
2396 if test $ac_must_keep_next = true; then
2397 ac_must_keep_next=false # Got value, back to normal.
2398 else
2399 case $ac_arg in
2400 *=* | --config-cache | -C | -disable-* | --disable-* \
2401 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2402 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2403 | -with-* | --with-* | -without-* | --without-* | --x)
2404 case "$ac_configure_args0 " in
2405 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2406 esac
2407 ;;
2408 -* ) ac_must_keep_next=true ;;
2409 esac
2410 fi
2411 as_fn_append ac_configure_args " '$ac_arg'"
2412 ;;
2413 esac
2414 done
2415 done
2416 { ac_configure_args0=; unset ac_configure_args0;}
2417 { ac_configure_args1=; unset ac_configure_args1;}
2418
2419 # When interrupted or exit'd, cleanup temporary files, and complete
2420 # config.log. We remove comments because anyway the quotes in there
2421 # would cause problems or look ugly.
2422 # WARNING: Use '\'' to represent an apostrophe within the trap.
2423 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2424 trap 'exit_status=$?
2425 # Save into config.log some information that might help in debugging.
2426 {
2427 echo
2428
2429 $as_echo "## ---------------- ##
2430 ## Cache variables. ##
2431 ## ---------------- ##"
2432 echo
2433 # The following way of writing the cache mishandles newlines in values,
2434 (
2435 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2436 eval ac_val=\$$ac_var
2437 case $ac_val in #(
2438 *${as_nl}*)
2439 case $ac_var in #(
2440 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2441 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2442 esac
2443 case $ac_var in #(
2444 _ | IFS | as_nl) ;; #(
2445 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2446 *) { eval $ac_var=; unset $ac_var;} ;;
2447 esac ;;
2448 esac
2449 done
2450 (set) 2>&1 |
2451 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2452 *${as_nl}ac_space=\ *)
2453 sed -n \
2454 "s/'\''/'\''\\\\'\'''\''/g;
2455 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2456 ;; #(
2457 *)
2458 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2459 ;;
2460 esac |
2461 sort
2462 )
2463 echo
2464
2465 $as_echo "## ----------------- ##
2466 ## Output variables. ##
2467 ## ----------------- ##"
2468 echo
2469 for ac_var in $ac_subst_vars
2470 do
2471 eval ac_val=\$$ac_var
2472 case $ac_val in
2473 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2474 esac
2475 $as_echo "$ac_var='\''$ac_val'\''"
2476 done | sort
2477 echo
2478
2479 if test -n "$ac_subst_files"; then
2480 $as_echo "## ------------------- ##
2481 ## File substitutions. ##
2482 ## ------------------- ##"
2483 echo
2484 for ac_var in $ac_subst_files
2485 do
2486 eval ac_val=\$$ac_var
2487 case $ac_val in
2488 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2489 esac
2490 $as_echo "$ac_var='\''$ac_val'\''"
2491 done | sort
2492 echo
2493 fi
2494
2495 if test -s confdefs.h; then
2496 $as_echo "## ----------- ##
2497 ## confdefs.h. ##
2498 ## ----------- ##"
2499 echo
2500 cat confdefs.h
2501 echo
2502 fi
2503 test "$ac_signal" != 0 &&
2504 $as_echo "$as_me: caught signal $ac_signal"
2505 $as_echo "$as_me: exit $exit_status"
2506 } >&5
2507 rm -f core *.core core.conftest.* &&
2508 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2509 exit $exit_status
2510 ' 0
2511 for ac_signal in 1 2 13 15; do
2512 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2513 done
2514 ac_signal=0
2515
2516 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2517 rm -f -r conftest* confdefs.h
2518
2519 $as_echo "/* confdefs.h */" > confdefs.h
2520
2521 # Predefined preprocessor variables.
2522
2523 cat >>confdefs.h <<_ACEOF
2524 #define PACKAGE_NAME "$PACKAGE_NAME"
2525 _ACEOF
2526
2527 cat >>confdefs.h <<_ACEOF
2528 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2529 _ACEOF
2530
2531 cat >>confdefs.h <<_ACEOF
2532 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2533 _ACEOF
2534
2535 cat >>confdefs.h <<_ACEOF
2536 #define PACKAGE_STRING "$PACKAGE_STRING"
2537 _ACEOF
2538
2539 cat >>confdefs.h <<_ACEOF
2540 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2541 _ACEOF
2542
2543 cat >>confdefs.h <<_ACEOF
2544 #define PACKAGE_URL "$PACKAGE_URL"
2545 _ACEOF
2546
2547
2548 # Let the site file select an alternate cache file if it wants to.
2549 # Prefer an explicitly selected file to automatically selected ones.
2550 ac_site_file1=NONE
2551 ac_site_file2=NONE
2552 if test -n "$CONFIG_SITE"; then
2553 # We do not want a PATH search for config.site.
2554 case $CONFIG_SITE in #((
2555 -*) ac_site_file1=./$CONFIG_SITE;;
2556 */*) ac_site_file1=$CONFIG_SITE;;
2557 *) ac_site_file1=./$CONFIG_SITE;;
2558 esac
2559 elif test "x$prefix" != xNONE; then
2560 ac_site_file1=$prefix/share/config.site
2561 ac_site_file2=$prefix/etc/config.site
2562 else
2563 ac_site_file1=$ac_default_prefix/share/config.site
2564 ac_site_file2=$ac_default_prefix/etc/config.site
2565 fi
2566 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2567 do
2568 test "x$ac_site_file" = xNONE && continue
2569 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2571 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2572 sed 's/^/| /' "$ac_site_file" >&5
2573 . "$ac_site_file" \
2574 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2576 as_fn_error $? "failed to load site script $ac_site_file
2577 See \`config.log' for more details" "$LINENO" 5; }
2578 fi
2579 done
2580
2581 if test -r "$cache_file"; then
2582 # Some versions of bash will fail to source /dev/null (special files
2583 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2584 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2586 $as_echo "$as_me: loading cache $cache_file" >&6;}
2587 case $cache_file in
2588 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2589 *) . "./$cache_file";;
2590 esac
2591 fi
2592 else
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2594 $as_echo "$as_me: creating cache $cache_file" >&6;}
2595 >$cache_file
2596 fi
2597
2598 as_fn_append ac_header_list " stdlib.h"
2599 as_fn_append ac_header_list " unistd.h"
2600 as_fn_append ac_header_list " sys/param.h"
2601 # Check that the precious variables saved in the cache have kept the same
2602 # value.
2603 ac_cache_corrupted=false
2604 for ac_var in $ac_precious_vars; do
2605 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2606 eval ac_new_set=\$ac_env_${ac_var}_set
2607 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2608 eval ac_new_val=\$ac_env_${ac_var}_value
2609 case $ac_old_set,$ac_new_set in
2610 set,)
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2612 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2613 ac_cache_corrupted=: ;;
2614 ,set)
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2616 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2617 ac_cache_corrupted=: ;;
2618 ,);;
2619 *)
2620 if test "x$ac_old_val" != "x$ac_new_val"; then
2621 # differences in whitespace do not lead to failure.
2622 ac_old_val_w=`echo x $ac_old_val`
2623 ac_new_val_w=`echo x $ac_new_val`
2624 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2626 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2627 ac_cache_corrupted=:
2628 else
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2630 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2631 eval $ac_var=\$ac_old_val
2632 fi
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2634 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2636 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2637 fi;;
2638 esac
2639 # Pass precious variables to config.status.
2640 if test "$ac_new_set" = set; then
2641 case $ac_new_val in
2642 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2643 *) ac_arg=$ac_var=$ac_new_val ;;
2644 esac
2645 case " $ac_configure_args " in
2646 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2647 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2648 esac
2649 fi
2650 done
2651 if $ac_cache_corrupted; then
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2655 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2656 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2657 fi
2658 ## -------------------- ##
2659 ## Main body of script. ##
2660 ## -------------------- ##
2661
2662 ac_ext=c
2663 ac_cpp='$CPP $CPPFLAGS'
2664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2667
2668
2669
2670 ac_aux_dir=
2671 for ac_dir in config "$srcdir"/config; do
2672 if test -f "$ac_dir/install-sh"; then
2673 ac_aux_dir=$ac_dir
2674 ac_install_sh="$ac_aux_dir/install-sh -c"
2675 break
2676 elif test -f "$ac_dir/install.sh"; then
2677 ac_aux_dir=$ac_dir
2678 ac_install_sh="$ac_aux_dir/install.sh -c"
2679 break
2680 elif test -f "$ac_dir/shtool"; then
2681 ac_aux_dir=$ac_dir
2682 ac_install_sh="$ac_aux_dir/shtool install -c"
2683 break
2684 fi
2685 done
2686 if test -z "$ac_aux_dir"; then
2687 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2688 fi
2689
2690 # These three variables are undocumented and unsupported,
2691 # and are intended to be withdrawn in a future Autoconf release.
2692 # They can cause serious problems if a builder's source tree is in a directory
2693 # whose full name contains unusual characters.
2694 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2695 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2696 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2697
2698
2699 ac_config_headers="$ac_config_headers lib/config.h"
2700
2701
2702 MCONFIG=./MCONFIG
2703
2704 BINARY_TYPE=bin
2705 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2706 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2707 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2708 | tr \" " "`
2709 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2710 MONTH=`echo $DATE | awk -F- '{print $2}'`
2711 YEAR=`echo $DATE | awk -F- '{print $3}'`
2712
2713 if expr $YEAR ">" 1900 > /dev/null ; then
2714 E2FSPROGS_YEAR=$YEAR
2715 elif expr $YEAR ">" 90 >/dev/null ; then
2716 E2FSPROGS_YEAR=19$YEAR
2717 else
2718 E2FSPROGS_YEAR=20$YEAR
2719 fi
2720
2721 case $MONTH in
2722 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2723 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2724 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2725 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2726 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2727 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2728 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2729 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2730 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2731 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2732 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2733 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2734 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2735 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2736 esac
2737
2738 base_ver=`echo $E2FSPROGS_VERSION | \
2739 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2740
2741 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2742
2743 case $E2FSPROGS_VERSION in
2744 *-WIP|pre-*)
2745 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2746 ;;
2747 *)
2748 E2FSPROGS_PKGVER="$base_ver"
2749 ;;
2750 esac
2751
2752 unset DATE MONTH YEAR base_ver pre_vers date_spec
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2754 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2756 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2757
2758
2759
2760
2761
2762 # Make sure we can run config.sub.
2763 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2764 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2765
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2767 $as_echo_n "checking build system type... " >&6; }
2768 if ${ac_cv_build+:} false; then :
2769 $as_echo_n "(cached) " >&6
2770 else
2771 ac_build_alias=$build_alias
2772 test "x$ac_build_alias" = x &&
2773 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2774 test "x$ac_build_alias" = x &&
2775 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2776 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2777 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2778
2779 fi
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2781 $as_echo "$ac_cv_build" >&6; }
2782 case $ac_cv_build in
2783 *-*-*) ;;
2784 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2785 esac
2786 build=$ac_cv_build
2787 ac_save_IFS=$IFS; IFS='-'
2788 set x $ac_cv_build
2789 shift
2790 build_cpu=$1
2791 build_vendor=$2
2792 shift; shift
2793 # Remember, the first character of IFS is used to create $*,
2794 # except with old shells:
2795 build_os=$*
2796 IFS=$ac_save_IFS
2797 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2798
2799
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2801 $as_echo_n "checking host system type... " >&6; }
2802 if ${ac_cv_host+:} false; then :
2803 $as_echo_n "(cached) " >&6
2804 else
2805 if test "x$host_alias" = x; then
2806 ac_cv_host=$ac_cv_build
2807 else
2808 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2809 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2810 fi
2811
2812 fi
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2814 $as_echo "$ac_cv_host" >&6; }
2815 case $ac_cv_host in
2816 *-*-*) ;;
2817 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2818 esac
2819 host=$ac_cv_host
2820 ac_save_IFS=$IFS; IFS='-'
2821 set x $ac_cv_host
2822 shift
2823 host_cpu=$1
2824 host_vendor=$2
2825 shift; shift
2826 # Remember, the first character of IFS is used to create $*,
2827 # except with old shells:
2828 host_os=$*
2829 IFS=$ac_save_IFS
2830 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2831
2832
2833 DLOPEN_LIB=''
2834 ac_ext=c
2835 ac_cpp='$CPP $CPPFLAGS'
2836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2839 if test -n "$ac_tool_prefix"; then
2840 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2841 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2843 $as_echo_n "checking for $ac_word... " >&6; }
2844 if ${ac_cv_prog_CC+:} false; then :
2845 $as_echo_n "(cached) " >&6
2846 else
2847 if test -n "$CC"; then
2848 ac_cv_prog_CC="$CC" # Let the user override the test.
2849 else
2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 for as_dir in $PATH
2852 do
2853 IFS=$as_save_IFS
2854 test -z "$as_dir" && as_dir=.
2855 for ac_exec_ext in '' $ac_executable_extensions; do
2856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2857 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2859 break 2
2860 fi
2861 done
2862 done
2863 IFS=$as_save_IFS
2864
2865 fi
2866 fi
2867 CC=$ac_cv_prog_CC
2868 if test -n "$CC"; then
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2870 $as_echo "$CC" >&6; }
2871 else
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873 $as_echo "no" >&6; }
2874 fi
2875
2876
2877 fi
2878 if test -z "$ac_cv_prog_CC"; then
2879 ac_ct_CC=$CC
2880 # Extract the first word of "gcc", so it can be a program name with args.
2881 set dummy gcc; ac_word=$2
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883 $as_echo_n "checking for $ac_word... " >&6; }
2884 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2885 $as_echo_n "(cached) " >&6
2886 else
2887 if test -n "$ac_ct_CC"; then
2888 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2889 else
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2892 do
2893 IFS=$as_save_IFS
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2897 ac_cv_prog_ac_ct_CC="gcc"
2898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2899 break 2
2900 fi
2901 done
2902 done
2903 IFS=$as_save_IFS
2904
2905 fi
2906 fi
2907 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2908 if test -n "$ac_ct_CC"; then
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2910 $as_echo "$ac_ct_CC" >&6; }
2911 else
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 $as_echo "no" >&6; }
2914 fi
2915
2916 if test "x$ac_ct_CC" = x; then
2917 CC=""
2918 else
2919 case $cross_compiling:$ac_tool_warned in
2920 yes:)
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2923 ac_tool_warned=yes ;;
2924 esac
2925 CC=$ac_ct_CC
2926 fi
2927 else
2928 CC="$ac_cv_prog_CC"
2929 fi
2930
2931 if test -z "$CC"; then
2932 if test -n "$ac_tool_prefix"; then
2933 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2934 set dummy ${ac_tool_prefix}cc; ac_word=$2
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936 $as_echo_n "checking for $ac_word... " >&6; }
2937 if ${ac_cv_prog_CC+:} false; then :
2938 $as_echo_n "(cached) " >&6
2939 else
2940 if test -n "$CC"; then
2941 ac_cv_prog_CC="$CC" # Let the user override the test.
2942 else
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 for as_dir in $PATH
2945 do
2946 IFS=$as_save_IFS
2947 test -z "$as_dir" && as_dir=.
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2950 ac_cv_prog_CC="${ac_tool_prefix}cc"
2951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2952 break 2
2953 fi
2954 done
2955 done
2956 IFS=$as_save_IFS
2957
2958 fi
2959 fi
2960 CC=$ac_cv_prog_CC
2961 if test -n "$CC"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2963 $as_echo "$CC" >&6; }
2964 else
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 $as_echo "no" >&6; }
2967 fi
2968
2969
2970 fi
2971 fi
2972 if test -z "$CC"; then
2973 # Extract the first word of "cc", so it can be a program name with args.
2974 set dummy cc; ac_word=$2
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976 $as_echo_n "checking for $ac_word... " >&6; }
2977 if ${ac_cv_prog_CC+:} false; then :
2978 $as_echo_n "(cached) " >&6
2979 else
2980 if test -n "$CC"; then
2981 ac_cv_prog_CC="$CC" # Let the user override the test.
2982 else
2983 ac_prog_rejected=no
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 for as_dir in $PATH
2986 do
2987 IFS=$as_save_IFS
2988 test -z "$as_dir" && as_dir=.
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2991 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2992 ac_prog_rejected=yes
2993 continue
2994 fi
2995 ac_cv_prog_CC="cc"
2996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 break 2
2998 fi
2999 done
3000 done
3001 IFS=$as_save_IFS
3002
3003 if test $ac_prog_rejected = yes; then
3004 # We found a bogon in the path, so make sure we never use it.
3005 set dummy $ac_cv_prog_CC
3006 shift
3007 if test $# != 0; then
3008 # We chose a different compiler from the bogus one.
3009 # However, it has the same basename, so the bogon will be chosen
3010 # first if we set CC to just the basename; use the full file name.
3011 shift
3012 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3013 fi
3014 fi
3015 fi
3016 fi
3017 CC=$ac_cv_prog_CC
3018 if test -n "$CC"; then
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3020 $as_echo "$CC" >&6; }
3021 else
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023 $as_echo "no" >&6; }
3024 fi
3025
3026
3027 fi
3028 if test -z "$CC"; then
3029 if test -n "$ac_tool_prefix"; then
3030 for ac_prog in cl.exe
3031 do
3032 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3033 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035 $as_echo_n "checking for $ac_word... " >&6; }
3036 if ${ac_cv_prog_CC+:} false; then :
3037 $as_echo_n "(cached) " >&6
3038 else
3039 if test -n "$CC"; then
3040 ac_cv_prog_CC="$CC" # Let the user override the test.
3041 else
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 for as_dir in $PATH
3044 do
3045 IFS=$as_save_IFS
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3049 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 break 2
3052 fi
3053 done
3054 done
3055 IFS=$as_save_IFS
3056
3057 fi
3058 fi
3059 CC=$ac_cv_prog_CC
3060 if test -n "$CC"; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3062 $as_echo "$CC" >&6; }
3063 else
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065 $as_echo "no" >&6; }
3066 fi
3067
3068
3069 test -n "$CC" && break
3070 done
3071 fi
3072 if test -z "$CC"; then
3073 ac_ct_CC=$CC
3074 for ac_prog in cl.exe
3075 do
3076 # Extract the first word of "$ac_prog", so it can be a program name with args.
3077 set dummy $ac_prog; ac_word=$2
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079 $as_echo_n "checking for $ac_word... " >&6; }
3080 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3081 $as_echo_n "(cached) " >&6
3082 else
3083 if test -n "$ac_ct_CC"; then
3084 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3085 else
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 for as_dir in $PATH
3088 do
3089 IFS=$as_save_IFS
3090 test -z "$as_dir" && as_dir=.
3091 for ac_exec_ext in '' $ac_executable_extensions; do
3092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3093 ac_cv_prog_ac_ct_CC="$ac_prog"
3094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3095 break 2
3096 fi
3097 done
3098 done
3099 IFS=$as_save_IFS
3100
3101 fi
3102 fi
3103 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3104 if test -n "$ac_ct_CC"; then
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3106 $as_echo "$ac_ct_CC" >&6; }
3107 else
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109 $as_echo "no" >&6; }
3110 fi
3111
3112
3113 test -n "$ac_ct_CC" && break
3114 done
3115
3116 if test "x$ac_ct_CC" = x; then
3117 CC=""
3118 else
3119 case $cross_compiling:$ac_tool_warned in
3120 yes:)
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3123 ac_tool_warned=yes ;;
3124 esac
3125 CC=$ac_ct_CC
3126 fi
3127 fi
3128
3129 fi
3130
3131
3132 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3134 as_fn_error $? "no acceptable C compiler found in \$PATH
3135 See \`config.log' for more details" "$LINENO" 5; }
3136
3137 # Provide some information about the compiler.
3138 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3139 set X $ac_compile
3140 ac_compiler=$2
3141 for ac_option in --version -v -V -qversion; do
3142 { { ac_try="$ac_compiler $ac_option >&5"
3143 case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146 esac
3147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3148 $as_echo "$ac_try_echo"; } >&5
3149 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3150 ac_status=$?
3151 if test -s conftest.err; then
3152 sed '10a\
3153 ... rest of stderr output deleted ...
3154 10q' conftest.err >conftest.er1
3155 cat conftest.er1 >&5
3156 fi
3157 rm -f conftest.er1 conftest.err
3158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3159 test $ac_status = 0; }
3160 done
3161
3162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3163 /* end confdefs.h. */
3164
3165 int
3166 main ()
3167 {
3168
3169 ;
3170 return 0;
3171 }
3172 _ACEOF
3173 ac_clean_files_save=$ac_clean_files
3174 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3175 # Try to create an executable without -o first, disregard a.out.
3176 # It will help us diagnose broken compilers, and finding out an intuition
3177 # of exeext.
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3179 $as_echo_n "checking whether the C compiler works... " >&6; }
3180 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3181
3182 # The possible output files:
3183 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3184
3185 ac_rmfiles=
3186 for ac_file in $ac_files
3187 do
3188 case $ac_file in
3189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3190 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3191 esac
3192 done
3193 rm -f $ac_rmfiles
3194
3195 if { { ac_try="$ac_link_default"
3196 case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3199 esac
3200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3201 $as_echo "$ac_try_echo"; } >&5
3202 (eval "$ac_link_default") 2>&5
3203 ac_status=$?
3204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3205 test $ac_status = 0; }; then :
3206 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3207 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3208 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3209 # so that the user can short-circuit this test for compilers unknown to
3210 # Autoconf.
3211 for ac_file in $ac_files ''
3212 do
3213 test -f "$ac_file" || continue
3214 case $ac_file in
3215 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3216 ;;
3217 [ab].out )
3218 # We found the default executable, but exeext='' is most
3219 # certainly right.
3220 break;;
3221 *.* )
3222 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3223 then :; else
3224 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3225 fi
3226 # We set ac_cv_exeext here because the later test for it is not
3227 # safe: cross compilers may not add the suffix if given an `-o'
3228 # argument, so we may need to know it at that point already.
3229 # Even if this section looks crufty: it has the advantage of
3230 # actually working.
3231 break;;
3232 * )
3233 break;;
3234 esac
3235 done
3236 test "$ac_cv_exeext" = no && ac_cv_exeext=
3237
3238 else
3239 ac_file=''
3240 fi
3241 if test -z "$ac_file"; then :
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243 $as_echo "no" >&6; }
3244 $as_echo "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.$ac_ext >&5
3246
3247 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3249 as_fn_error 77 "C compiler cannot create executables
3250 See \`config.log' for more details" "$LINENO" 5; }
3251 else
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3253 $as_echo "yes" >&6; }
3254 fi
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3256 $as_echo_n "checking for C compiler default output file name... " >&6; }
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3258 $as_echo "$ac_file" >&6; }
3259 ac_exeext=$ac_cv_exeext
3260
3261 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3262 ac_clean_files=$ac_clean_files_save
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3264 $as_echo_n "checking for suffix of executables... " >&6; }
3265 if { { ac_try="$ac_link"
3266 case "(($ac_try" in
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3269 esac
3270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3271 $as_echo "$ac_try_echo"; } >&5
3272 (eval "$ac_link") 2>&5
3273 ac_status=$?
3274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3275 test $ac_status = 0; }; then :
3276 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3277 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3278 # work properly (i.e., refer to `conftest.exe'), while it won't with
3279 # `rm'.
3280 for ac_file in conftest.exe conftest conftest.*; do
3281 test -f "$ac_file" || continue
3282 case $ac_file in
3283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3284 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3285 break;;
3286 * ) break;;
3287 esac
3288 done
3289 else
3290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3292 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3293 See \`config.log' for more details" "$LINENO" 5; }
3294 fi
3295 rm -f conftest conftest$ac_cv_exeext
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3297 $as_echo "$ac_cv_exeext" >&6; }
3298
3299 rm -f conftest.$ac_ext
3300 EXEEXT=$ac_cv_exeext
3301 ac_exeext=$EXEEXT
3302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3303 /* end confdefs.h. */
3304 #include <stdio.h>
3305 int
3306 main ()
3307 {
3308 FILE *f = fopen ("conftest.out", "w");
3309 return ferror (f) || fclose (f) != 0;
3310
3311 ;
3312 return 0;
3313 }
3314 _ACEOF
3315 ac_clean_files="$ac_clean_files conftest.out"
3316 # Check that the compiler produces executables we can run. If not, either
3317 # the compiler is broken, or we cross compile.
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3319 $as_echo_n "checking whether we are cross compiling... " >&6; }
3320 if test "$cross_compiling" != yes; then
3321 { { ac_try="$ac_link"
3322 case "(($ac_try" in
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3325 esac
3326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3327 $as_echo "$ac_try_echo"; } >&5
3328 (eval "$ac_link") 2>&5
3329 ac_status=$?
3330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3331 test $ac_status = 0; }
3332 if { ac_try='./conftest$ac_cv_exeext'
3333 { { case "(($ac_try" in
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3336 esac
3337 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3338 $as_echo "$ac_try_echo"; } >&5
3339 (eval "$ac_try") 2>&5
3340 ac_status=$?
3341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3342 test $ac_status = 0; }; }; then
3343 cross_compiling=no
3344 else
3345 if test "$cross_compiling" = maybe; then
3346 cross_compiling=yes
3347 else
3348 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3350 as_fn_error $? "cannot run C compiled programs.
3351 If you meant to cross compile, use \`--host'.
3352 See \`config.log' for more details" "$LINENO" 5; }
3353 fi
3354 fi
3355 fi
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3357 $as_echo "$cross_compiling" >&6; }
3358
3359 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3360 ac_clean_files=$ac_clean_files_save
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3362 $as_echo_n "checking for suffix of object files... " >&6; }
3363 if ${ac_cv_objext+:} false; then :
3364 $as_echo_n "(cached) " >&6
3365 else
3366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367 /* end confdefs.h. */
3368
3369 int
3370 main ()
3371 {
3372
3373 ;
3374 return 0;
3375 }
3376 _ACEOF
3377 rm -f conftest.o conftest.obj
3378 if { { ac_try="$ac_compile"
3379 case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3382 esac
3383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3384 $as_echo "$ac_try_echo"; } >&5
3385 (eval "$ac_compile") 2>&5
3386 ac_status=$?
3387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3388 test $ac_status = 0; }; then :
3389 for ac_file in conftest.o conftest.obj conftest.*; do
3390 test -f "$ac_file" || continue;
3391 case $ac_file in
3392 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3393 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3394 break;;
3395 esac
3396 done
3397 else
3398 $as_echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3400
3401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3403 as_fn_error $? "cannot compute suffix of object files: cannot compile
3404 See \`config.log' for more details" "$LINENO" 5; }
3405 fi
3406 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3407 fi
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3409 $as_echo "$ac_cv_objext" >&6; }
3410 OBJEXT=$ac_cv_objext
3411 ac_objext=$OBJEXT
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3413 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3414 if ${ac_cv_c_compiler_gnu+:} false; then :
3415 $as_echo_n "(cached) " >&6
3416 else
3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418 /* end confdefs.h. */
3419
3420 int
3421 main ()
3422 {
3423 #ifndef __GNUC__
3424 choke me
3425 #endif
3426
3427 ;
3428 return 0;
3429 }
3430 _ACEOF
3431 if ac_fn_c_try_compile "$LINENO"; then :
3432 ac_compiler_gnu=yes
3433 else
3434 ac_compiler_gnu=no
3435 fi
3436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3437 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3438
3439 fi
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3441 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3442 if test $ac_compiler_gnu = yes; then
3443 GCC=yes
3444 else
3445 GCC=
3446 fi
3447 ac_test_CFLAGS=${CFLAGS+set}
3448 ac_save_CFLAGS=$CFLAGS
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3450 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3451 if ${ac_cv_prog_cc_g+:} false; then :
3452 $as_echo_n "(cached) " >&6
3453 else
3454 ac_save_c_werror_flag=$ac_c_werror_flag
3455 ac_c_werror_flag=yes
3456 ac_cv_prog_cc_g=no
3457 CFLAGS="-g"
3458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459 /* end confdefs.h. */
3460
3461 int
3462 main ()
3463 {
3464
3465 ;
3466 return 0;
3467 }
3468 _ACEOF
3469 if ac_fn_c_try_compile "$LINENO"; then :
3470 ac_cv_prog_cc_g=yes
3471 else
3472 CFLAGS=""
3473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474 /* end confdefs.h. */
3475
3476 int
3477 main ()
3478 {
3479
3480 ;
3481 return 0;
3482 }
3483 _ACEOF
3484 if ac_fn_c_try_compile "$LINENO"; then :
3485
3486 else
3487 ac_c_werror_flag=$ac_save_c_werror_flag
3488 CFLAGS="-g"
3489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490 /* end confdefs.h. */
3491
3492 int
3493 main ()
3494 {
3495
3496 ;
3497 return 0;
3498 }
3499 _ACEOF
3500 if ac_fn_c_try_compile "$LINENO"; then :
3501 ac_cv_prog_cc_g=yes
3502 fi
3503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3504 fi
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506 fi
3507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3508 ac_c_werror_flag=$ac_save_c_werror_flag
3509 fi
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3511 $as_echo "$ac_cv_prog_cc_g" >&6; }
3512 if test "$ac_test_CFLAGS" = set; then
3513 CFLAGS=$ac_save_CFLAGS
3514 elif test $ac_cv_prog_cc_g = yes; then
3515 if test "$GCC" = yes; then
3516 CFLAGS="-g -O2"
3517 else
3518 CFLAGS="-g"
3519 fi
3520 else
3521 if test "$GCC" = yes; then
3522 CFLAGS="-O2"
3523 else
3524 CFLAGS=
3525 fi
3526 fi
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3528 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3529 if ${ac_cv_prog_cc_c89+:} false; then :
3530 $as_echo_n "(cached) " >&6
3531 else
3532 ac_cv_prog_cc_c89=no
3533 ac_save_CC=$CC
3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535 /* end confdefs.h. */
3536 #include <stdarg.h>
3537 #include <stdio.h>
3538 struct stat;
3539 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3540 struct buf { int x; };
3541 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3542 static char *e (p, i)
3543 char **p;
3544 int i;
3545 {
3546 return p[i];
3547 }
3548 static char *f (char * (*g) (char **, int), char **p, ...)
3549 {
3550 char *s;
3551 va_list v;
3552 va_start (v,p);
3553 s = g (p, va_arg (v,int));
3554 va_end (v);
3555 return s;
3556 }
3557
3558 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3559 function prototypes and stuff, but not '\xHH' hex character constants.
3560 These don't provoke an error unfortunately, instead are silently treated
3561 as 'x'. The following induces an error, until -std is added to get
3562 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3563 array size at least. It's necessary to write '\x00'==0 to get something
3564 that's true only with -std. */
3565 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3566
3567 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3568 inside strings and character constants. */
3569 #define FOO(x) 'x'
3570 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3571
3572 int test (int i, double x);
3573 struct s1 {int (*f) (int a);};
3574 struct s2 {int (*f) (double a);};
3575 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3576 int argc;
3577 char **argv;
3578 int
3579 main ()
3580 {
3581 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3582 ;
3583 return 0;
3584 }
3585 _ACEOF
3586 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3587 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3588 do
3589 CC="$ac_save_CC $ac_arg"
3590 if ac_fn_c_try_compile "$LINENO"; then :
3591 ac_cv_prog_cc_c89=$ac_arg
3592 fi
3593 rm -f core conftest.err conftest.$ac_objext
3594 test "x$ac_cv_prog_cc_c89" != "xno" && break
3595 done
3596 rm -f conftest.$ac_ext
3597 CC=$ac_save_CC
3598
3599 fi
3600 # AC_CACHE_VAL
3601 case "x$ac_cv_prog_cc_c89" in
3602 x)
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3604 $as_echo "none needed" >&6; } ;;
3605 xno)
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3607 $as_echo "unsupported" >&6; } ;;
3608 *)
3609 CC="$CC $ac_cv_prog_cc_c89"
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3611 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3612 esac
3613 if test "x$ac_cv_prog_cc_c89" != xno; then :
3614
3615 fi
3616
3617 ac_ext=c
3618 ac_cpp='$CPP $CPPFLAGS'
3619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3622
3623
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3625 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3626 if ${ac_cv_lib_dl_dlopen+:} false; then :
3627 $as_echo_n "(cached) " >&6
3628 else
3629 ac_check_lib_save_LIBS=$LIBS
3630 LIBS="-ldl $LIBS"
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3633
3634 /* Override any GCC internal prototype to avoid an error.
3635 Use char because int might match the return type of a GCC
3636 builtin and then its argument prototype would still apply. */
3637 #ifdef __cplusplus
3638 extern "C"
3639 #endif
3640 char dlopen ();
3641 int
3642 main ()
3643 {
3644 return dlopen ();
3645 ;
3646 return 0;
3647 }
3648 _ACEOF
3649 if ac_fn_c_try_link "$LINENO"; then :
3650 ac_cv_lib_dl_dlopen=yes
3651 else
3652 ac_cv_lib_dl_dlopen=no
3653 fi
3654 rm -f core conftest.err conftest.$ac_objext \
3655 conftest$ac_exeext conftest.$ac_ext
3656 LIBS=$ac_check_lib_save_LIBS
3657 fi
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3659 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3660 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3661 DLOPEN_LIB=-ldl
3662
3663 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3664
3665 fi
3666
3667
3668 WITH_DIET_LIBC=
3669
3670 # Check whether --with-diet-libc was given.
3671 if test "${with_diet_libc+set}" = set; then :
3672 withval=$with_diet_libc; CC="diet cc -nostdinc"
3673 WITH_DIET_LIBC=yes
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3675 $as_echo "CC=$CC" >&6; }
3676 fi
3677
3678 # Check whether --with-cc was given.
3679 if test "${with_cc+set}" = set; then :
3680 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3681 fi
3682
3683
3684 # Check whether --with-ccopts was given.
3685 if test "${with_ccopts+set}" = set; then :
3686 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3687 fi
3688
3689
3690 # Check whether --with-ldopts was given.
3691 if test "${with_ldopts+set}" = set; then :
3692 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3693 fi
3694
3695 ac_ext=c
3696 ac_cpp='$CPP $CPPFLAGS'
3697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3700 if test -n "$ac_tool_prefix"; then
3701 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3702 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3704 $as_echo_n "checking for $ac_word... " >&6; }
3705 if ${ac_cv_prog_CC+:} false; then :
3706 $as_echo_n "(cached) " >&6
3707 else
3708 if test -n "$CC"; then
3709 ac_cv_prog_CC="$CC" # Let the user override the test.
3710 else
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH
3713 do
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3718 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 break 2
3721 fi
3722 done
3723 done
3724 IFS=$as_save_IFS
3725
3726 fi
3727 fi
3728 CC=$ac_cv_prog_CC
3729 if test -n "$CC"; then
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3731 $as_echo "$CC" >&6; }
3732 else
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 $as_echo "no" >&6; }
3735 fi
3736
3737
3738 fi
3739 if test -z "$ac_cv_prog_CC"; then
3740 ac_ct_CC=$CC
3741 # Extract the first word of "gcc", so it can be a program name with args.
3742 set dummy gcc; ac_word=$2
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3744 $as_echo_n "checking for $ac_word... " >&6; }
3745 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3746 $as_echo_n "(cached) " >&6
3747 else
3748 if test -n "$ac_ct_CC"; then
3749 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3750 else
3751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752 for as_dir in $PATH
3753 do
3754 IFS=$as_save_IFS
3755 test -z "$as_dir" && as_dir=.
3756 for ac_exec_ext in '' $ac_executable_extensions; do
3757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3758 ac_cv_prog_ac_ct_CC="gcc"
3759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3760 break 2
3761 fi
3762 done
3763 done
3764 IFS=$as_save_IFS
3765
3766 fi
3767 fi
3768 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3769 if test -n "$ac_ct_CC"; then
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3771 $as_echo "$ac_ct_CC" >&6; }
3772 else
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3774 $as_echo "no" >&6; }
3775 fi
3776
3777 if test "x$ac_ct_CC" = x; then
3778 CC=""
3779 else
3780 case $cross_compiling:$ac_tool_warned in
3781 yes:)
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3784 ac_tool_warned=yes ;;
3785 esac
3786 CC=$ac_ct_CC
3787 fi
3788 else
3789 CC="$ac_cv_prog_CC"
3790 fi
3791
3792 if test -z "$CC"; then
3793 if test -n "$ac_tool_prefix"; then
3794 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3795 set dummy ${ac_tool_prefix}cc; ac_word=$2
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797 $as_echo_n "checking for $ac_word... " >&6; }
3798 if ${ac_cv_prog_CC+:} false; then :
3799 $as_echo_n "(cached) " >&6
3800 else
3801 if test -n "$CC"; then
3802 ac_cv_prog_CC="$CC" # Let the user override the test.
3803 else
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 for as_dir in $PATH
3806 do
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3811 ac_cv_prog_CC="${ac_tool_prefix}cc"
3812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 break 2
3814 fi
3815 done
3816 done
3817 IFS=$as_save_IFS
3818
3819 fi
3820 fi
3821 CC=$ac_cv_prog_CC
3822 if test -n "$CC"; then
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3824 $as_echo "$CC" >&6; }
3825 else
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827 $as_echo "no" >&6; }
3828 fi
3829
3830
3831 fi
3832 fi
3833 if test -z "$CC"; then
3834 # Extract the first word of "cc", so it can be a program name with args.
3835 set dummy cc; ac_word=$2
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3837 $as_echo_n "checking for $ac_word... " >&6; }
3838 if ${ac_cv_prog_CC+:} false; then :
3839 $as_echo_n "(cached) " >&6
3840 else
3841 if test -n "$CC"; then
3842 ac_cv_prog_CC="$CC" # Let the user override the test.
3843 else
3844 ac_prog_rejected=no
3845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 for as_dir in $PATH
3847 do
3848 IFS=$as_save_IFS
3849 test -z "$as_dir" && as_dir=.
3850 for ac_exec_ext in '' $ac_executable_extensions; do
3851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3852 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3853 ac_prog_rejected=yes
3854 continue
3855 fi
3856 ac_cv_prog_CC="cc"
3857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3858 break 2
3859 fi
3860 done
3861 done
3862 IFS=$as_save_IFS
3863
3864 if test $ac_prog_rejected = yes; then
3865 # We found a bogon in the path, so make sure we never use it.
3866 set dummy $ac_cv_prog_CC
3867 shift
3868 if test $# != 0; then
3869 # We chose a different compiler from the bogus one.
3870 # However, it has the same basename, so the bogon will be chosen
3871 # first if we set CC to just the basename; use the full file name.
3872 shift
3873 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3874 fi
3875 fi
3876 fi
3877 fi
3878 CC=$ac_cv_prog_CC
3879 if test -n "$CC"; then
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3881 $as_echo "$CC" >&6; }
3882 else
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3884 $as_echo "no" >&6; }
3885 fi
3886
3887
3888 fi
3889 if test -z "$CC"; then
3890 if test -n "$ac_tool_prefix"; then
3891 for ac_prog in cl.exe
3892 do
3893 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3894 set dummy $ac_tool_prefix$ac_prog; 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 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904 for as_dir in $PATH
3905 do
3906 IFS=$as_save_IFS
3907 test -z "$as_dir" && as_dir=.
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3910 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3912 break 2
3913 fi
3914 done
3915 done
3916 IFS=$as_save_IFS
3917
3918 fi
3919 fi
3920 CC=$ac_cv_prog_CC
3921 if test -n "$CC"; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3923 $as_echo "$CC" >&6; }
3924 else
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926 $as_echo "no" >&6; }
3927 fi
3928
3929
3930 test -n "$CC" && break
3931 done
3932 fi
3933 if test -z "$CC"; then
3934 ac_ct_CC=$CC
3935 for ac_prog in cl.exe
3936 do
3937 # Extract the first word of "$ac_prog", so it can be a program name with args.
3938 set dummy $ac_prog; ac_word=$2
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3940 $as_echo_n "checking for $ac_word... " >&6; }
3941 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3942 $as_echo_n "(cached) " >&6
3943 else
3944 if test -n "$ac_ct_CC"; then
3945 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3946 else
3947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948 for as_dir in $PATH
3949 do
3950 IFS=$as_save_IFS
3951 test -z "$as_dir" && as_dir=.
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3954 ac_cv_prog_ac_ct_CC="$ac_prog"
3955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3956 break 2
3957 fi
3958 done
3959 done
3960 IFS=$as_save_IFS
3961
3962 fi
3963 fi
3964 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3965 if test -n "$ac_ct_CC"; then
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3967 $as_echo "$ac_ct_CC" >&6; }
3968 else
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970 $as_echo "no" >&6; }
3971 fi
3972
3973
3974 test -n "$ac_ct_CC" && break
3975 done
3976
3977 if test "x$ac_ct_CC" = x; then
3978 CC=""
3979 else
3980 case $cross_compiling:$ac_tool_warned in
3981 yes:)
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3984 ac_tool_warned=yes ;;
3985 esac
3986 CC=$ac_ct_CC
3987 fi
3988 fi
3989
3990 fi
3991
3992
3993 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3995 as_fn_error $? "no acceptable C compiler found in \$PATH
3996 See \`config.log' for more details" "$LINENO" 5; }
3997
3998 # Provide some information about the compiler.
3999 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4000 set X $ac_compile
4001 ac_compiler=$2
4002 for ac_option in --version -v -V -qversion; do
4003 { { ac_try="$ac_compiler $ac_option >&5"
4004 case "(($ac_try" in
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4007 esac
4008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4009 $as_echo "$ac_try_echo"; } >&5
4010 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4011 ac_status=$?
4012 if test -s conftest.err; then
4013 sed '10a\
4014 ... rest of stderr output deleted ...
4015 10q' conftest.err >conftest.er1
4016 cat conftest.er1 >&5
4017 fi
4018 rm -f conftest.er1 conftest.err
4019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4020 test $ac_status = 0; }
4021 done
4022
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4024 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4025 if ${ac_cv_c_compiler_gnu+:} false; then :
4026 $as_echo_n "(cached) " >&6
4027 else
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h. */
4030
4031 int
4032 main ()
4033 {
4034 #ifndef __GNUC__
4035 choke me
4036 #endif
4037
4038 ;
4039 return 0;
4040 }
4041 _ACEOF
4042 if ac_fn_c_try_compile "$LINENO"; then :
4043 ac_compiler_gnu=yes
4044 else
4045 ac_compiler_gnu=no
4046 fi
4047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4048 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4049
4050 fi
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4052 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4053 if test $ac_compiler_gnu = yes; then
4054 GCC=yes
4055 else
4056 GCC=
4057 fi
4058 ac_test_CFLAGS=${CFLAGS+set}
4059 ac_save_CFLAGS=$CFLAGS
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4061 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4062 if ${ac_cv_prog_cc_g+:} false; then :
4063 $as_echo_n "(cached) " >&6
4064 else
4065 ac_save_c_werror_flag=$ac_c_werror_flag
4066 ac_c_werror_flag=yes
4067 ac_cv_prog_cc_g=no
4068 CFLAGS="-g"
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4071
4072 int
4073 main ()
4074 {
4075
4076 ;
4077 return 0;
4078 }
4079 _ACEOF
4080 if ac_fn_c_try_compile "$LINENO"; then :
4081 ac_cv_prog_cc_g=yes
4082 else
4083 CFLAGS=""
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4086
4087 int
4088 main ()
4089 {
4090
4091 ;
4092 return 0;
4093 }
4094 _ACEOF
4095 if ac_fn_c_try_compile "$LINENO"; then :
4096
4097 else
4098 ac_c_werror_flag=$ac_save_c_werror_flag
4099 CFLAGS="-g"
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4102
4103 int
4104 main ()
4105 {
4106
4107 ;
4108 return 0;
4109 }
4110 _ACEOF
4111 if ac_fn_c_try_compile "$LINENO"; then :
4112 ac_cv_prog_cc_g=yes
4113 fi
4114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4115 fi
4116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117 fi
4118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4119 ac_c_werror_flag=$ac_save_c_werror_flag
4120 fi
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4122 $as_echo "$ac_cv_prog_cc_g" >&6; }
4123 if test "$ac_test_CFLAGS" = set; then
4124 CFLAGS=$ac_save_CFLAGS
4125 elif test $ac_cv_prog_cc_g = yes; then
4126 if test "$GCC" = yes; then
4127 CFLAGS="-g -O2"
4128 else
4129 CFLAGS="-g"
4130 fi
4131 else
4132 if test "$GCC" = yes; then
4133 CFLAGS="-O2"
4134 else
4135 CFLAGS=
4136 fi
4137 fi
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4139 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4140 if ${ac_cv_prog_cc_c89+:} false; then :
4141 $as_echo_n "(cached) " >&6
4142 else
4143 ac_cv_prog_cc_c89=no
4144 ac_save_CC=$CC
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4147 #include <stdarg.h>
4148 #include <stdio.h>
4149 struct stat;
4150 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4151 struct buf { int x; };
4152 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4153 static char *e (p, i)
4154 char **p;
4155 int i;
4156 {
4157 return p[i];
4158 }
4159 static char *f (char * (*g) (char **, int), char **p, ...)
4160 {
4161 char *s;
4162 va_list v;
4163 va_start (v,p);
4164 s = g (p, va_arg (v,int));
4165 va_end (v);
4166 return s;
4167 }
4168
4169 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4170 function prototypes and stuff, but not '\xHH' hex character constants.
4171 These don't provoke an error unfortunately, instead are silently treated
4172 as 'x'. The following induces an error, until -std is added to get
4173 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4174 array size at least. It's necessary to write '\x00'==0 to get something
4175 that's true only with -std. */
4176 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4177
4178 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4179 inside strings and character constants. */
4180 #define FOO(x) 'x'
4181 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4182
4183 int test (int i, double x);
4184 struct s1 {int (*f) (int a);};
4185 struct s2 {int (*f) (double a);};
4186 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4187 int argc;
4188 char **argv;
4189 int
4190 main ()
4191 {
4192 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4193 ;
4194 return 0;
4195 }
4196 _ACEOF
4197 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4198 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4199 do
4200 CC="$ac_save_CC $ac_arg"
4201 if ac_fn_c_try_compile "$LINENO"; then :
4202 ac_cv_prog_cc_c89=$ac_arg
4203 fi
4204 rm -f core conftest.err conftest.$ac_objext
4205 test "x$ac_cv_prog_cc_c89" != "xno" && break
4206 done
4207 rm -f conftest.$ac_ext
4208 CC=$ac_save_CC
4209
4210 fi
4211 # AC_CACHE_VAL
4212 case "x$ac_cv_prog_cc_c89" in
4213 x)
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4215 $as_echo "none needed" >&6; } ;;
4216 xno)
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4218 $as_echo "unsupported" >&6; } ;;
4219 *)
4220 CC="$CC $ac_cv_prog_cc_c89"
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4222 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4223 esac
4224 if test "x$ac_cv_prog_cc_c89" != xno; then :
4225
4226 fi
4227
4228 ac_ext=c
4229 ac_cpp='$CPP $CPPFLAGS'
4230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4233
4234 if test "$GCC" = yes; then
4235 RDYNAMIC="-rdynamic"
4236
4237 fi
4238 ac_ext=c
4239 ac_cpp='$CPP $CPPFLAGS'
4240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4244 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4245 # On Suns, sometimes $CPP names a directory.
4246 if test -n "$CPP" && test -d "$CPP"; then
4247 CPP=
4248 fi
4249 if test -z "$CPP"; then
4250 if ${ac_cv_prog_CPP+:} false; then :
4251 $as_echo_n "(cached) " >&6
4252 else
4253 # Double quotes because CPP needs to be expanded
4254 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4255 do
4256 ac_preproc_ok=false
4257 for ac_c_preproc_warn_flag in '' yes
4258 do
4259 # Use a header file that comes with gcc, so configuring glibc
4260 # with a fresh cross-compiler works.
4261 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4262 # <limits.h> exists even on freestanding compilers.
4263 # On the NeXT, cc -E runs the code through the compiler's parser,
4264 # not just through cpp. "Syntax error" is here to catch this case.
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4267 #ifdef __STDC__
4268 # include <limits.h>
4269 #else
4270 # include <assert.h>
4271 #endif
4272 Syntax error
4273 _ACEOF
4274 if ac_fn_c_try_cpp "$LINENO"; then :
4275
4276 else
4277 # Broken: fails on valid input.
4278 continue
4279 fi
4280 rm -f conftest.err conftest.i conftest.$ac_ext
4281
4282 # OK, works on sane cases. Now check whether nonexistent headers
4283 # can be detected and how.
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4286 #include <ac_nonexistent.h>
4287 _ACEOF
4288 if ac_fn_c_try_cpp "$LINENO"; then :
4289 # Broken: success on invalid input.
4290 continue
4291 else
4292 # Passes both tests.
4293 ac_preproc_ok=:
4294 break
4295 fi
4296 rm -f conftest.err conftest.i conftest.$ac_ext
4297
4298 done
4299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4300 rm -f conftest.i conftest.err conftest.$ac_ext
4301 if $ac_preproc_ok; then :
4302 break
4303 fi
4304
4305 done
4306 ac_cv_prog_CPP=$CPP
4307
4308 fi
4309 CPP=$ac_cv_prog_CPP
4310 else
4311 ac_cv_prog_CPP=$CPP
4312 fi
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4314 $as_echo "$CPP" >&6; }
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
4362 else
4363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4365 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4366 See \`config.log' for more details" "$LINENO" 5; }
4367 fi
4368
4369 ac_ext=c
4370 ac_cpp='$CPP $CPPFLAGS'
4371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4374
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4376 $as_echo_n "checking for additional special compiler flags... " >&6; }
4377 if test "$GCC" = yes
4378 then
4379 case "$host_cpu" in
4380 alpha) addcflags="-mieee" ;;
4381 esac
4382 fi
4383 if test "x$addcflags" != x
4384 then
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4386 $as_echo "$addcflags" >&6; }
4387 CFLAGS="$addcflags $CFLAGS"
4388 else
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4390 $as_echo "(none)" >&6; }
4391 fi
4392 LIB_EXT=.a
4393 STATIC_LIB_EXT=.a
4394 PROFILED_LIB_EXT=.a
4395
4396 # Check whether --with-root-prefix was given.
4397 if test "${with_root_prefix+set}" = set; then :
4398 withval=$with_root_prefix; root_prefix=$withval
4399 else
4400 root_prefix=NONE
4401 fi
4402 # Check whether --enable-maintainer-mode was given.
4403 if test "${enable_maintainer_mode+set}" = set; then :
4404 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4405 then
4406 MAINTAINER_CMT=#
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4408 $as_echo "Disabling maintainer mode" >&6; }
4409 else
4410 MAINTAINER_CMT=
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4412 $as_echo "Enabling maintainer mode" >&6; }
4413 fi
4414
4415 else
4416 MAINTAINER_CMT=#
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4418 $as_echo "Disabling maintainer mode by default" >&6; }
4419
4420 fi
4421
4422
4423 # Check whether --enable-symlink-install was given.
4424 if test "${enable_symlink_install+set}" = set; then :
4425 enableval=$enable_symlink_install; if test "$enableval" = "no"
4426 then
4427 LINK_INSTALL_FLAGS=-f
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4429 $as_echo "Disabling symlinks for install" >&6; }
4430 else
4431 LINK_INSTALL_FLAGS=-sf
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4433 $as_echo "Enabling symlinks for install" >&6; }
4434 fi
4435
4436 else
4437 LINK_INSTALL_FLAGS=-f
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4439 $as_echo "Disabling symlinks for install by default" >&6; }
4440
4441 fi
4442
4443
4444 relative_symlink_defined=
4445 # Check whether --enable-relative-symlinks was given.
4446 if test "${enable_relative_symlinks+set}" = set; then :
4447 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4448 then
4449 SYMLINK_RELATIVE=
4450 relative_symlink_defined=yes
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4452 $as_echo "Disabling relative symlinks for install" >&6; }
4453 else
4454 SYMLINK_RELATIVE=--relative
4455 relative_symlink_defined=yes
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4457 $as_echo "Enabling relative symlinks for install" >&6; }
4458 fi
4459 fi
4460
4461 # Check whether --enable-symlink-relative-symlinks was given.
4462 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4463 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4464 then
4465 SYMLINK_RELATIVE=yes
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4467 $as_echo "Disabling relative symlinks for install" >&6; }
4468 else
4469 SYMLINK_RELATIVE=--relative
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4471 $as_echo "Enabling relative symlinks for install" >&6; }
4472 fi
4473
4474 else
4475 if test -z "$relative_symlink_defined"
4476 then
4477 SYMLINK_RELATIVE=
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4479 $as_echo "Disabling relative symlinks for install by default" >&6; }
4480 fi
4481
4482 fi
4483
4484
4485 # Check whether --enable-symlink-build was given.
4486 if test "${enable_symlink_build+set}" = set; then :
4487 enableval=$enable_symlink_build; if test "$enableval" = "no"
4488 then
4489 LINK_BUILD_FLAGS=
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4491 $as_echo "Disabling symlinks for build" >&6; }
4492 else
4493 LINK_BUILD_FLAGS=-s
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4495 $as_echo "Enabling symlinks for build" >&6; }
4496 fi
4497
4498 else
4499 LINK_BUILD_FLAGS=
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4501 $as_echo "Disabling symlinks for build by default" >&6; }
4502
4503 fi
4504
4505
4506 # Check whether --enable-verbose-makecmds was given.
4507 if test "${enable_verbose_makecmds+set}" = set; then :
4508 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4509 then
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4511 $as_echo "Disabling verbose make commands" >&6; }
4512 E=@echo
4513 ES=echo
4514 Q=@
4515 else
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4517 $as_echo "Enabling verbose make commands" >&6; }
4518 E=@\\#
4519 ES=\\#
4520 Q=
4521 fi
4522
4523 else
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4525 $as_echo "Disabling verbose make commands" >&6; }
4526 E=@echo
4527 ES=echo
4528 Q=@
4529
4530 fi
4531
4532
4533
4534
4535 # Check whether --enable-compression was given.
4536 if test "${enable_compression+set}" = set; then :
4537 enableval=$enable_compression; if test "$enableval" = "no"
4538 then
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4540 $as_echo "Disabling compression support" >&6; }
4541 else
4542
4543 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4544
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4546 $as_echo "Enabling compression support" >&6; }
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4548 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4549 fi
4550
4551 else
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4553 $as_echo "Disabling compression support by default" >&6; }
4554
4555 fi
4556
4557
4558 # Check whether --enable-htree was given.
4559 if test "${enable_htree+set}" = set; then :
4560 enableval=$enable_htree; if test "$enableval" = "no"
4561 then
4562 HTREE_CMT=#
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4564 $as_echo "Disabling htree directory support" >&6; }
4565 else
4566 HTREE_CMT=
4567 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4568
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4570 $as_echo "Enabling htree directory support" >&6; }
4571 fi
4572
4573 else
4574 HTREE_CMT=
4575 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4576
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4578 $as_echo "Enabling htree directory support by default" >&6; }
4579
4580 fi
4581
4582
4583 E2_PKG_CONFIG_STATIC=--static
4584 LDFLAG_DYNAMIC=
4585 PRIVATE_LIBS_CMT=
4586 # Check whether --enable-elf-shlibs was given.
4587 if test "${enable_elf_shlibs+set}" = set; then :
4588 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4589 then
4590 ELF_CMT=#
4591 MAKEFILE_ELF=/dev/null
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4593 $as_echo "Disabling ELF shared libraries" >&6; }
4594 else
4595 E2_PKG_CONFIG_STATIC=
4596 ELF_CMT=
4597 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4598 case "$host_os" in
4599 solaris2.*)
4600 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4601 ;;
4602 esac
4603 BINARY_TYPE=elfbin
4604 LIB_EXT=.so
4605 PRIVATE_LIBS_CMT=#
4606 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4608 $as_echo "Enabling ELF shared libraries" >&6; }
4609 fi
4610
4611 else
4612 MAKEFILE_ELF=/dev/null
4613 ELF_CMT=#
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4615 $as_echo "Disabling ELF shared libraries by default" >&6; }
4616
4617 fi
4618
4619
4620
4621 # Check whether --enable-bsd-shlibs was given.
4622 if test "${enable_bsd_shlibs+set}" = set; then :
4623 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4624 then
4625 BSDLIB_CMT=#
4626 MAKEFILE_BSDLIB=/dev/null
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4628 $as_echo "Disabling BSD shared libraries" >&6; }
4629 else
4630 E2_PKG_CONFIG_STATIC=
4631 BSDLIB_CMT=
4632 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4633 LIB_EXT=.so
4634 case "$host_os" in
4635 darwin*)
4636 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4637 LIB_EXT=.dylib
4638 ;;
4639 esac
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4641 $as_echo "Enabling BSD shared libraries" >&6; }
4642 fi
4643
4644 else
4645 MAKEFILE_BSDLIB=/dev/null
4646 BSDLIB_CMT=#
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4648 $as_echo "Disabling BSD shared libraries by default" >&6; }
4649
4650 fi
4651
4652
4653
4654 # Check whether --enable-profile was given.
4655 if test "${enable_profile+set}" = set; then :
4656 enableval=$enable_profile; if test "$enableval" = "no"
4657 then
4658 PROFILE_CMT=#
4659 MAKEFILE_PROFILE=/dev/null
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4661 $as_echo "Disabling profiling libraries" >&6; }
4662 else
4663 PROFILE_CMT=
4664 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4665 PROFILED_LIB_EXT=_p.a
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4667 $as_echo "Building profiling libraries" >&6; }
4668 fi
4669
4670 else
4671 PROFILE_CMT=#
4672 MAKEFILE_PROFILE=/dev/null
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4674 $as_echo "Disabling profiling libraries by default" >&6; }
4675
4676 fi
4677
4678
4679
4680 # Check whether --enable-checker was given.
4681 if test "${enable_checker+set}" = set; then :
4682 enableval=$enable_checker; if test "$enableval" = "no"
4683 then
4684 CHECKER_CMT=#
4685 MAKEFILE_CHECKER=/dev/null
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
4687 $as_echo "Disabling checker libraries" >&6; }
4688 else
4689 CHECKER_CMT=
4690 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
4692 $as_echo "Building checker libraries" >&6; }
4693 fi
4694
4695 else
4696 CHECKER_CMT=#
4697 MAKEFILE_CHECKER=/dev/null
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
4699 $as_echo "Disabling checker libraries by default" >&6; }
4700
4701 fi
4702
4703
4704
4705
4706
4707
4708
4709
4710 # Check whether --enable-jbd-debug was given.
4711 if test "${enable_jbd_debug+set}" = set; then :
4712 enableval=$enable_jbd_debug; if test "$enableval" = "no"
4713 then
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4715 $as_echo "Disabling journal debugging" >&6; }
4716 else
4717
4718 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4719
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4721 $as_echo "Enabling journal debugging" >&6; }
4722 fi
4723
4724 else
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4726 $as_echo "Disabling journal debugging by default" >&6; }
4727
4728 fi
4729
4730 # Check whether --enable-blkid-debug was given.
4731 if test "${enable_blkid_debug+set}" = set; then :
4732 enableval=$enable_blkid_debug; if test "$enableval" = "no"
4733 then
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4735 $as_echo "Disabling blkid debugging" >&6; }
4736 else
4737
4738 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4739
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4741 $as_echo "Enabling blkid debugging" >&6; }
4742 fi
4743
4744 else
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4746 $as_echo "Disabling blkid debugging by default" >&6; }
4747
4748 fi
4749
4750 # Check whether --enable-testio-debug was given.
4751 if test "${enable_testio_debug+set}" = set; then :
4752 enableval=$enable_testio_debug;
4753 if test "$enableval" = "no"
4754 then
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4756 $as_echo "Disabling testio debugging" >&6; }
4757 TEST_IO_CMT="#"
4758 else
4759 TEST_IO_CMT=
4760 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4761
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4763 $as_echo "Enabling testio debugging" >&6; }
4764 fi
4765
4766 else
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4768 $as_echo "Enabling testio debugging by default" >&6; }
4769 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4770
4771 TEST_IO_CMT=
4772
4773 fi
4774
4775
4776
4777
4778 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4779 if test -n "$ac_tool_prefix"; then
4780 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4781 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 $as_echo_n "checking for $ac_word... " >&6; }
4784 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4785 $as_echo_n "(cached) " >&6
4786 else
4787 case $PKG_CONFIG in
4788 [\\/]* | ?:[\\/]*)
4789 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4790 ;;
4791 *)
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 for as_dir in $PATH
4794 do
4795 IFS=$as_save_IFS
4796 test -z "$as_dir" && as_dir=.
4797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4799 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 break 2
4802 fi
4803 done
4804 done
4805 IFS=$as_save_IFS
4806
4807 ;;
4808 esac
4809 fi
4810 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4811 if test -n "$PKG_CONFIG"; then
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4813 $as_echo "$PKG_CONFIG" >&6; }
4814 else
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816 $as_echo "no" >&6; }
4817 fi
4818
4819
4820 fi
4821 if test -z "$ac_cv_path_PKG_CONFIG"; then
4822 ac_pt_PKG_CONFIG=$PKG_CONFIG
4823 # Extract the first word of "pkg-config", so it can be a program name with args.
4824 set dummy pkg-config; ac_word=$2
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4826 $as_echo_n "checking for $ac_word... " >&6; }
4827 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4828 $as_echo_n "(cached) " >&6
4829 else
4830 case $ac_pt_PKG_CONFIG in
4831 [\\/]* | ?:[\\/]*)
4832 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4833 ;;
4834 *)
4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 for as_dir in $PATH
4837 do
4838 IFS=$as_save_IFS
4839 test -z "$as_dir" && as_dir=.
4840 for ac_exec_ext in '' $ac_executable_extensions; do
4841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4842 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4844 break 2
4845 fi
4846 done
4847 done
4848 IFS=$as_save_IFS
4849
4850 ;;
4851 esac
4852 fi
4853 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4854 if test -n "$ac_pt_PKG_CONFIG"; then
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4856 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4857 else
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4860 fi
4861
4862 if test "x$ac_pt_PKG_CONFIG" = x; then
4863 PKG_CONFIG=""
4864 else
4865 case $cross_compiling:$ac_tool_warned in
4866 yes:)
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4869 ac_tool_warned=yes ;;
4870 esac
4871 PKG_CONFIG=$ac_pt_PKG_CONFIG
4872 fi
4873 else
4874 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4875 fi
4876
4877 fi
4878 if test -n "$PKG_CONFIG"; then
4879 _pkg_min_version=0.9.0
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4881 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4882 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4884 $as_echo "yes" >&6; }
4885 else
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4888 PKG_CONFIG=""
4889 fi
4890
4891 fi
4892 LIBUUID=
4893 DEPLIBUUID=
4894 STATIC_LIBUUID=
4895 DEPSTATIC_LIBUUID=
4896 PROFILED_LIBUUID=
4897 DEPPROFILED_LIBUUID=
4898 UUID_CMT=
4899 # Check whether --enable-libuuid was given.
4900 if test "${enable_libuuid+set}" = set; then :
4901 enableval=$enable_libuuid; if test "$enableval" = "no"
4902 then
4903 if test -z "$PKG_CONFIG"; then
4904 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
4905 fi
4906
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4908 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4909 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
4910 $as_echo_n "(cached) " >&6
4911 else
4912 ac_check_lib_save_LIBS=$LIBS
4913 LIBS="-luuid $LIBUUID $LIBS"
4914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4915 /* end confdefs.h. */
4916
4917 /* Override any GCC internal prototype to avoid an error.
4918 Use char because int might match the return type of a GCC
4919 builtin and then its argument prototype would still apply. */
4920 #ifdef __cplusplus
4921 extern "C"
4922 #endif
4923 char uuid_generate ();
4924 int
4925 main ()
4926 {
4927 return uuid_generate ();
4928 ;
4929 return 0;
4930 }
4931 _ACEOF
4932 if ac_fn_c_try_link "$LINENO"; then :
4933 ac_cv_lib_uuid_uuid_generate=yes
4934 else
4935 ac_cv_lib_uuid_uuid_generate=no
4936 fi
4937 rm -f core conftest.err conftest.$ac_objext \
4938 conftest$ac_exeext conftest.$ac_ext
4939 LIBS=$ac_check_lib_save_LIBS
4940 fi
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4942 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4943 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
4944 LIBUUID=`$PKG_CONFIG --libs uuid`;
4945 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4946 else
4947 as_fn_error $? "external uuid library not found" "$LINENO" 5
4948 fi
4949
4950 UUID_CMT=#
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
4952 $as_echo "Disabling private uuid library" >&6; }
4953 else
4954 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4955 DEPLIBUUID=$LIBUUID
4956 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4957 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4958 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4959 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
4961 $as_echo "Enabling private uuid library" >&6; }
4962 fi
4963
4964 else
4965 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4966 DEPLIBUUID=$LIBUUID
4967 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4968 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4969 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4970 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
4972 $as_echo "Enabling private uuid library by default" >&6; }
4973
4974 fi
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4986 if test -n "$ac_tool_prefix"; then
4987 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4988 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4990 $as_echo_n "checking for $ac_word... " >&6; }
4991 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4992 $as_echo_n "(cached) " >&6
4993 else
4994 case $PKG_CONFIG in
4995 [\\/]* | ?:[\\/]*)
4996 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4997 ;;
4998 *)
4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 for as_dir in $PATH
5001 do
5002 IFS=$as_save_IFS
5003 test -z "$as_dir" && as_dir=.
5004 for ac_exec_ext in '' $ac_executable_extensions; do
5005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5006 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5008 break 2
5009 fi
5010 done
5011 done
5012 IFS=$as_save_IFS
5013
5014 ;;
5015 esac
5016 fi
5017 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5018 if test -n "$PKG_CONFIG"; then
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5020 $as_echo "$PKG_CONFIG" >&6; }
5021 else
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5023 $as_echo "no" >&6; }
5024 fi
5025
5026
5027 fi
5028 if test -z "$ac_cv_path_PKG_CONFIG"; then
5029 ac_pt_PKG_CONFIG=$PKG_CONFIG
5030 # Extract the first word of "pkg-config", so it can be a program name with args.
5031 set dummy pkg-config; ac_word=$2
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5033 $as_echo_n "checking for $ac_word... " >&6; }
5034 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5035 $as_echo_n "(cached) " >&6
5036 else
5037 case $ac_pt_PKG_CONFIG in
5038 [\\/]* | ?:[\\/]*)
5039 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5040 ;;
5041 *)
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 for as_dir in $PATH
5044 do
5045 IFS=$as_save_IFS
5046 test -z "$as_dir" && as_dir=.
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5049 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5051 break 2
5052 fi
5053 done
5054 done
5055 IFS=$as_save_IFS
5056
5057 ;;
5058 esac
5059 fi
5060 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5061 if test -n "$ac_pt_PKG_CONFIG"; then
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5063 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5064 else
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066 $as_echo "no" >&6; }
5067 fi
5068
5069 if test "x$ac_pt_PKG_CONFIG" = x; then
5070 PKG_CONFIG=""
5071 else
5072 case $cross_compiling:$ac_tool_warned in
5073 yes:)
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5076 ac_tool_warned=yes ;;
5077 esac
5078 PKG_CONFIG=$ac_pt_PKG_CONFIG
5079 fi
5080 else
5081 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5082 fi
5083
5084 fi
5085 if test -n "$PKG_CONFIG"; then
5086 _pkg_min_version=0.9.0
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5088 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5089 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5091 $as_echo "yes" >&6; }
5092 else
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5095 PKG_CONFIG=""
5096 fi
5097
5098 fi
5099 LIBBLKID=
5100 DEPLIBBLKID=
5101 STATIC_LIBBLKID=
5102 DEPSTATIC_LIBBLKID=
5103 PROFILED_LIBBLKID=
5104 DEPPROFILED_LIBBLKID=
5105 BLKID_CMT=
5106
5107 # Check whether --enable-libblkid was given.
5108 if test "${enable_libblkid+set}" = set; then :
5109 enableval=$enable_libblkid; if test "$enableval" = "no"
5110 then
5111 if test -z "$PKG_CONFIG"; then
5112 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5113 fi
5114
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5116 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5117 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5118 $as_echo_n "(cached) " >&6
5119 else
5120 ac_check_lib_save_LIBS=$LIBS
5121 LIBS="-lblkid $LIBBLKID $LIBS"
5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h. */
5124
5125 /* Override any GCC internal prototype to avoid an error.
5126 Use char because int might match the return type of a GCC
5127 builtin and then its argument prototype would still apply. */
5128 #ifdef __cplusplus
5129 extern "C"
5130 #endif
5131 char blkid_get_cache ();
5132 int
5133 main ()
5134 {
5135 return blkid_get_cache ();
5136 ;
5137 return 0;
5138 }
5139 _ACEOF
5140 if ac_fn_c_try_link "$LINENO"; then :
5141 ac_cv_lib_blkid_blkid_get_cache=yes
5142 else
5143 ac_cv_lib_blkid_blkid_get_cache=no
5144 fi
5145 rm -f core conftest.err conftest.$ac_objext \
5146 conftest$ac_exeext conftest.$ac_ext
5147 LIBS=$ac_check_lib_save_LIBS
5148 fi
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5150 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5151 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5152 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5153 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5154 else
5155 as_fn_error $? "external blkid library not found" "$LINENO" 5
5156 fi
5157
5158 BLKID_CMT=#
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5160 $as_echo "Disabling private blkid library" >&6; }
5161 else
5162 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5163 DEPLIBBLKID=$LIBBLKID
5164 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5165 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5166 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5167 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5168 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5169
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5171 $as_echo "Enabling private blkid library" >&6; }
5172 fi
5173
5174 else
5175 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5176 DEPLIBBLKID=$LIBBLKID
5177 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5178 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5179 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5180 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5181 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5182
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5184 $as_echo "Enabling private blkid library by default" >&6; }
5185
5186 fi
5187
5188
5189
5190
5191
5192
5193
5194
5195 QUOTA_MAN_COMMENT='.\"'
5196 QUOTA_CMT=
5197
5198
5199
5200 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5201 if test -n "$ac_tool_prefix"; then
5202 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5203 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5205 $as_echo_n "checking for $ac_word... " >&6; }
5206 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5207 $as_echo_n "(cached) " >&6
5208 else
5209 case $PKG_CONFIG in
5210 [\\/]* | ?:[\\/]*)
5211 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5212 ;;
5213 *)
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH
5216 do
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5221 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 break 2
5224 fi
5225 done
5226 done
5227 IFS=$as_save_IFS
5228
5229 ;;
5230 esac
5231 fi
5232 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5233 if test -n "$PKG_CONFIG"; then
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5235 $as_echo "$PKG_CONFIG" >&6; }
5236 else
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238 $as_echo "no" >&6; }
5239 fi
5240
5241
5242 fi
5243 if test -z "$ac_cv_path_PKG_CONFIG"; then
5244 ac_pt_PKG_CONFIG=$PKG_CONFIG
5245 # Extract the first word of "pkg-config", so it can be a program name with args.
5246 set dummy pkg-config; ac_word=$2
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248 $as_echo_n "checking for $ac_word... " >&6; }
5249 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5250 $as_echo_n "(cached) " >&6
5251 else
5252 case $ac_pt_PKG_CONFIG in
5253 [\\/]* | ?:[\\/]*)
5254 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5255 ;;
5256 *)
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258 for as_dir in $PATH
5259 do
5260 IFS=$as_save_IFS
5261 test -z "$as_dir" && as_dir=.
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5264 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5266 break 2
5267 fi
5268 done
5269 done
5270 IFS=$as_save_IFS
5271
5272 ;;
5273 esac
5274 fi
5275 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5276 if test -n "$ac_pt_PKG_CONFIG"; then
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5278 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5279 else
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281 $as_echo "no" >&6; }
5282 fi
5283
5284 if test "x$ac_pt_PKG_CONFIG" = x; then
5285 PKG_CONFIG=""
5286 else
5287 case $cross_compiling:$ac_tool_warned in
5288 yes:)
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5291 ac_tool_warned=yes ;;
5292 esac
5293 PKG_CONFIG=$ac_pt_PKG_CONFIG
5294 fi
5295 else
5296 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5297 fi
5298
5299 fi
5300 if test -n "$PKG_CONFIG"; then
5301 _pkg_min_version=0.9.0
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5303 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5304 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5306 $as_echo "yes" >&6; }
5307 else
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5309 $as_echo "no" >&6; }
5310 PKG_CONFIG=""
5311 fi
5312
5313 fi
5314
5315 # Check whether --enable-quota was given.
5316 if test "${enable_quota+set}" = set; then :
5317 enableval=$enable_quota; if test "$enableval" = "no"
5318 then
5319 QUOTA_CMT=#
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5321 $as_echo "Disabling quota support" >&6; }
5322 else
5323 QUOTA_CMT=
5324 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5325
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5327 $as_echo "Enabling quota support" >&6; }
5328 QUOTA_MAN_COMMENT=""
5329
5330 fi
5331
5332 else
5333 QUOTA_CMT=#
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5335 $as_echo "Disabling quota support by default" >&6; }
5336
5337 fi
5338
5339 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5340 DEPLIBQUOTA=$LIBQUOTA
5341 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5342 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5343 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5344 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5345
5346
5347
5348
5349
5350
5351
5352
5353 # Check whether --enable-backtrace was given.
5354 if test "${enable_backtrace+set}" = set; then :
5355 enableval=$enable_backtrace; if test "$enableval" = "no"
5356 then
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5358 $as_echo "Disabling use of backtrace" >&6; }
5359 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5360
5361 else
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5363 $as_echo "Enabling use of backtrace" >&6; }
5364 fi
5365
5366 else
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5368 $as_echo "Enabling use of backtrace by default" >&6; }
5369
5370 fi
5371
5372 # Check whether --enable-debugfs was given.
5373 if test "${enable_debugfs+set}" = set; then :
5374 enableval=$enable_debugfs; if test "$enableval" = "no"
5375 then
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5377 $as_echo "Disabling debugfs support" >&6; }
5378 DEBUGFS_CMT="#"
5379 else
5380 DEBUGFS_CMT=
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5382 $as_echo "Enabling debugfs support" >&6; }
5383 fi
5384
5385 else
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5387 $as_echo "Enabling debugfs support by default" >&6; }
5388 DEBUGFS_CMT=
5389
5390 fi
5391
5392
5393 # Check whether --enable-imager was given.
5394 if test "${enable_imager+set}" = set; then :
5395 enableval=$enable_imager; if test "$enableval" = "no"
5396 then
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5398 $as_echo "Disabling e2image support" >&6; }
5399 IMAGER_CMT="#"
5400 else
5401 IMAGER_CMT=
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5403 $as_echo "Enabling e2image support" >&6; }
5404 fi
5405
5406 else
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5408 $as_echo "Enabling e2image support by default" >&6; }
5409 IMAGER_CMT=
5410
5411 fi
5412
5413
5414 # Check whether --enable-resizer was given.
5415 if test "${enable_resizer+set}" = set; then :
5416 enableval=$enable_resizer; if test "$enableval" = "no"
5417 then
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5419 $as_echo "Disabling e2resize support" >&6; }
5420 RESIZER_CMT="#"
5421 else
5422 RESIZER_CMT=
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5424 $as_echo "Enabling e2resize support" >&6; }
5425 fi
5426
5427 else
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5429 $as_echo "Enabling e2resize support by default" >&6; }
5430 RESIZER_CMT=
5431
5432 fi
5433
5434
5435 # Check whether --enable-defrag was given.
5436 if test "${enable_defrag+set}" = set; then :
5437 enableval=$enable_defrag; if test "$enableval" = "no"
5438 then
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5440 $as_echo "Disabling e4defrag support" >&6; }
5441 DEFRAG_CMT="#"
5442 else
5443 DEFRAG_CMT=
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5445 $as_echo "Enabling e4defrag support" >&6; }
5446 fi
5447
5448 else
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5450 $as_echo "Enabling e4defrag support by default" >&6; }
5451 DEFRAG_CMT=
5452
5453 fi
5454
5455
5456 # Check whether --enable-fsck was given.
5457 if test "${enable_fsck+set}" = set; then :
5458 enableval=$enable_fsck; if test "$enableval" = "no"
5459 then
5460 FSCK_PROG='' FSCK_MAN=''
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5462 $as_echo "Not building fsck wrapper" >&6; }
5463 else
5464 FSCK_PROG=fsck FSCK_MAN=fsck.8
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5466 $as_echo "Building fsck wrapper" >&6; }
5467 fi
5468
5469 else
5470 case "$host_os" in
5471 gnu*)
5472 FSCK_PROG='' FSCK_MAN=''
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5474 $as_echo "Not building fsck wrapper by default" >&6; }
5475 ;;
5476 *)
5477 FSCK_PROG=fsck FSCK_MAN=fsck.8
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5479 $as_echo "Building fsck wrapper by default" >&6; }
5480 esac
5481
5482 fi
5483
5484
5485
5486 # Check whether --enable-e2initrd-helper was given.
5487 if test "${enable_e2initrd_helper+set}" = set; then :
5488 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5489 then
5490 E2INITRD_PROG='' E2INITRD_MAN=''
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5492 $as_echo "Not building e2initrd helper" >&6; }
5493 else
5494 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5496 $as_echo "Building e2initrd helper" >&6; }
5497 fi
5498
5499 else
5500 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5502 $as_echo "Building e2initrd helper by default" >&6; }
5503
5504 fi
5505
5506
5507
5508 # Check whether --enable-tls was given.
5509 if test "${enable_tls+set}" = set; then :
5510 enableval=$enable_tls; if test "$enableval" = "no"
5511 then
5512 try_tls=""
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5514 $as_echo "Disabling thread local support" >&6; }
5515 else
5516 try_tls="yes"
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5518 $as_echo "Enabling thread local support" >&6; }
5519 fi
5520
5521 else
5522 if test -n "$WITH_DIET_LIBC"
5523 then
5524 try_tls=""
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5526 $as_echo "Diet libc does not support thread local support" >&6; }
5527 else
5528 try_tls="yes"
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5530 $as_echo "Try using thread local support by default" >&6; }
5531 fi
5532
5533 fi
5534
5535 if test "$try_tls" = "yes"
5536 then
5537
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5539 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5540 if ${ac_cv_tls+:} false; then :
5541 $as_echo_n "(cached) " >&6
5542 else
5543
5544 ax_tls_keywords="__thread __declspec(thread) none"
5545 for ax_tls_keyword in $ax_tls_keywords; do
5546 case $ax_tls_keyword in
5547 none) ac_cv_tls=none ; break ;;
5548 *)
5549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550 /* end confdefs.h. */
5551 #include <stdlib.h>
5552 static void
5553 foo(void) {
5554 static $ax_tls_keyword int bar;
5555 exit(1);
5556 }
5557 int
5558 main ()
5559 {
5560
5561 ;
5562 return 0;
5563 }
5564 _ACEOF
5565 if ac_fn_c_try_compile "$LINENO"; then :
5566 ac_cv_tls=$ax_tls_keyword ; break
5567 else
5568 ac_cv_tls=none
5569
5570 fi
5571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572 esac
5573 done
5574
5575 fi
5576
5577
5578 if test "$ac_cv_tls" != "none"; then
5579
5580 cat >>confdefs.h <<_ACEOF
5581 #define TLS $ac_cv_tls
5582 _ACEOF
5583
5584 fi
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5586 $as_echo "$ac_cv_tls" >&6; }
5587
5588 fi
5589
5590 # Check whether --enable-uuidd was given.
5591 if test "${enable_uuidd+set}" = set; then :
5592 enableval=$enable_uuidd; if test "$enableval" = "no"
5593 then
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5595 $as_echo "Not building uuidd" >&6; }
5596 UUIDD_CMT="#"
5597 else
5598 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5599
5600 UUIDD_CMT=""
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5602 $as_echo "Building uuidd" >&6; }
5603 fi
5604
5605 else
5606 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5607
5608 UUIDD_CMT=""
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5610 $as_echo "Building uuidd by default" >&6; }
5611
5612 fi
5613
5614
5615
5616 # Check whether --enable-mmp was given.
5617 if test "${enable_mmp+set}" = set; then :
5618 enableval=$enable_mmp; if test "$enableval" = "no"
5619 then
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5621 $as_echo "Disabling mmp support" >&6; }
5622 else
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5624 $as_echo "Enabling mmp support" >&6; }
5625 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5626
5627 fi
5628
5629 else
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5631 $as_echo "Enabling mmp support by default" >&6; }
5632 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5633
5634
5635 fi
5636
5637
5638 # Check whether --enable-bmap-stats was given.
5639 if test "${enable_bmap_stats+set}" = set; then :
5640 enableval=$enable_bmap_stats; if test "$enableval" = "no"
5641 then
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
5643 $as_echo "Disabling bitmap statistics support" >&6; }
5644 else
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
5646 $as_echo "Enabling bitmap statistics support" >&6; }
5647 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5648
5649 fi
5650
5651 else
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
5653 $as_echo "Enabling bitmap statistics support by default" >&6; }
5654 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5655
5656
5657 fi
5658
5659
5660 # Check whether --enable-bmap-stats-ops was given.
5661 if test "${enable_bmap_stats_ops+set}" = set; then :
5662 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
5663 then
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
5665 $as_echo "Disabling additional bitmap statistics" >&6; }
5666 else
5667 if test "x${enable_bmap_stats}" = "xno"; then :
5668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5670 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
5671 See \`config.log' for more details" "$LINENO" 5; }
5672 fi
5673
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
5675 $as_echo "Enabling additional bitmap statistics" >&6; }
5676 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
5677
5678 fi
5679
5680 else
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
5682 $as_echo "Disabling additional bitmap statistics by default" >&6; }
5683
5684 fi
5685
5686 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5687
5688 GETTEXT_PACKAGE=e2fsprogs
5689 PACKAGE=e2fsprogs
5690 VERSION="$E2FSPROGS_VERSION"
5691 VERSION=0.14.1
5692
5693 cat >>confdefs.h <<_ACEOF
5694 #define PACKAGE "$PACKAGE"
5695 _ACEOF
5696
5697
5698 cat >>confdefs.h <<_ACEOF
5699 #define VERSION "$VERSION"
5700 _ACEOF
5701
5702
5703
5704
5705
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5707 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5708 set x ${MAKE-make}
5709 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5710 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5711 $as_echo_n "(cached) " >&6
5712 else
5713 cat >conftest.make <<\_ACEOF
5714 SHELL = /bin/sh
5715 all:
5716 @echo '@@@%%%=$(MAKE)=@@@%%%'
5717 _ACEOF
5718 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5719 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5720 *@@@%%%=?*=@@@%%%*)
5721 eval ac_cv_prog_make_${ac_make}_set=yes;;
5722 *)
5723 eval ac_cv_prog_make_${ac_make}_set=no;;
5724 esac
5725 rm -f conftest.make
5726 fi
5727 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5729 $as_echo "yes" >&6; }
5730 SET_MAKE=
5731 else
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 $as_echo "no" >&6; }
5734 SET_MAKE="MAKE=${MAKE-make}"
5735 fi
5736
5737 # Find a good install program. We prefer a C program (faster),
5738 # so one script is as good as another. But avoid the broken or
5739 # incompatible versions:
5740 # SysV /etc/install, /usr/sbin/install
5741 # SunOS /usr/etc/install
5742 # IRIX /sbin/install
5743 # AIX /bin/install
5744 # AmigaOS /C/install, which installs bootblocks on floppy discs
5745 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5746 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5747 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5748 # OS/2's system install, which has a completely different semantic
5749 # ./install, which can be erroneously created by make from ./install.sh.
5750 # Reject install programs that cannot install multiple files.
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5752 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5753 if test -z "$INSTALL"; then
5754 if ${ac_cv_path_install+:} false; then :
5755 $as_echo_n "(cached) " >&6
5756 else
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758 for as_dir in $PATH
5759 do
5760 IFS=$as_save_IFS
5761 test -z "$as_dir" && as_dir=.
5762 # Account for people who put trailing slashes in PATH elements.
5763 case $as_dir/ in #((
5764 ./ | .// | /[cC]/* | \
5765 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5766 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5767 /usr/ucb/* ) ;;
5768 *)
5769 # OSF1 and SCO ODT 3.0 have their own names for install.
5770 # Don't use installbsd from OSF since it installs stuff as root
5771 # by default.
5772 for ac_prog in ginstall scoinst install; do
5773 for ac_exec_ext in '' $ac_executable_extensions; do
5774 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5775 if test $ac_prog = install &&
5776 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5777 # AIX install. It has an incompatible calling convention.
5778 :
5779 elif test $ac_prog = install &&
5780 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5781 # program-specific install script used by HP pwplus--don't use.
5782 :
5783 else
5784 rm -rf conftest.one conftest.two conftest.dir
5785 echo one > conftest.one
5786 echo two > conftest.two
5787 mkdir conftest.dir
5788 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5789 test -s conftest.one && test -s conftest.two &&
5790 test -s conftest.dir/conftest.one &&
5791 test -s conftest.dir/conftest.two
5792 then
5793 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5794 break 3
5795 fi
5796 fi
5797 fi
5798 done
5799 done
5800 ;;
5801 esac
5802
5803 done
5804 IFS=$as_save_IFS
5805
5806 rm -rf conftest.one conftest.two conftest.dir
5807
5808 fi
5809 if test "${ac_cv_path_install+set}" = set; then
5810 INSTALL=$ac_cv_path_install
5811 else
5812 # As a last resort, use the slow shell script. Don't cache a
5813 # value for INSTALL within a source directory, because that will
5814 # break other packages using the cache if that directory is
5815 # removed, or if the value is a relative name.
5816 INSTALL=$ac_install_sh
5817 fi
5818 fi
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5820 $as_echo "$INSTALL" >&6; }
5821
5822 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5823 # It thinks the first close brace ends the variable substitution.
5824 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5825
5826 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5827
5828 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5829
5830
5831 MKINSTALLDIRS=
5832 if test -n "$ac_aux_dir"; then
5833 case "$ac_aux_dir" in
5834 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5835 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5836 esac
5837 fi
5838 if test -z "$MKINSTALLDIRS"; then
5839 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5840 fi
5841
5842
5843
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5845 $as_echo_n "checking whether NLS is requested... " >&6; }
5846 # Check whether --enable-nls was given.
5847 if test "${enable_nls+set}" = set; then :
5848 enableval=$enable_nls; USE_NLS=$enableval
5849 else
5850 USE_NLS=yes
5851 fi
5852
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5854 $as_echo "$USE_NLS" >&6; }
5855
5856
5857
5858
5859
5860
5861 # Prepare PATH_SEPARATOR.
5862 # The user is always right.
5863 if test "${PATH_SEPARATOR+set}" != set; then
5864 echo "#! /bin/sh" >conf$$.sh
5865 echo "exit 0" >>conf$$.sh
5866 chmod +x conf$$.sh
5867 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5868 PATH_SEPARATOR=';'
5869 else
5870 PATH_SEPARATOR=:
5871 fi
5872 rm -f conf$$.sh
5873 fi
5874
5875 # Find out how to test for executable files. Don't use a zero-byte file,
5876 # as systems may use methods other than mode bits to determine executability.
5877 cat >conf$$.file <<_ASEOF
5878 #! /bin/sh
5879 exit 0
5880 _ASEOF
5881 chmod +x conf$$.file
5882 if test -x conf$$.file >/dev/null 2>&1; then
5883 ac_executable_p="test -x"
5884 else
5885 ac_executable_p="test -f"
5886 fi
5887 rm -f conf$$.file
5888
5889 # Extract the first word of "msgfmt", so it can be a program name with args.
5890 set dummy msgfmt; ac_word=$2
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5892 $as_echo_n "checking for $ac_word... " >&6; }
5893 if ${ac_cv_path_MSGFMT+:} false; then :
5894 $as_echo_n "(cached) " >&6
5895 else
5896 case "$MSGFMT" in
5897 [\\/]* | ?:[\\/]*)
5898 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5899 ;;
5900 *)
5901 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5902 for ac_dir in $PATH; do
5903 IFS="$ac_save_IFS"
5904 test -z "$ac_dir" && ac_dir=.
5905 for ac_exec_ext in '' $ac_executable_extensions; do
5906 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5907 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5908 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5909 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5910 break 2
5911 fi
5912 fi
5913 done
5914 done
5915 IFS="$ac_save_IFS"
5916 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5917 ;;
5918 esac
5919 fi
5920 MSGFMT="$ac_cv_path_MSGFMT"
5921 if test "$MSGFMT" != ":"; then
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5923 $as_echo "$MSGFMT" >&6; }
5924 else
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5926 $as_echo "no" >&6; }
5927 fi
5928
5929 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5930 set dummy gmsgfmt; ac_word=$2
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5932 $as_echo_n "checking for $ac_word... " >&6; }
5933 if ${ac_cv_path_GMSGFMT+:} false; then :
5934 $as_echo_n "(cached) " >&6
5935 else
5936 case $GMSGFMT in
5937 [\\/]* | ?:[\\/]*)
5938 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5939 ;;
5940 *)
5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 for as_dir in $PATH
5943 do
5944 IFS=$as_save_IFS
5945 test -z "$as_dir" && as_dir=.
5946 for ac_exec_ext in '' $ac_executable_extensions; do
5947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5948 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5950 break 2
5951 fi
5952 done
5953 done
5954 IFS=$as_save_IFS
5955
5956 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5957 ;;
5958 esac
5959 fi
5960 GMSGFMT=$ac_cv_path_GMSGFMT
5961 if test -n "$GMSGFMT"; then
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5963 $as_echo "$GMSGFMT" >&6; }
5964 else
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5966 $as_echo "no" >&6; }
5967 fi
5968
5969
5970
5971
5972 # Prepare PATH_SEPARATOR.
5973 # The user is always right.
5974 if test "${PATH_SEPARATOR+set}" != set; then
5975 echo "#! /bin/sh" >conf$$.sh
5976 echo "exit 0" >>conf$$.sh
5977 chmod +x conf$$.sh
5978 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5979 PATH_SEPARATOR=';'
5980 else
5981 PATH_SEPARATOR=:
5982 fi
5983 rm -f conf$$.sh
5984 fi
5985
5986 # Find out how to test for executable files. Don't use a zero-byte file,
5987 # as systems may use methods other than mode bits to determine executability.
5988 cat >conf$$.file <<_ASEOF
5989 #! /bin/sh
5990 exit 0
5991 _ASEOF
5992 chmod +x conf$$.file
5993 if test -x conf$$.file >/dev/null 2>&1; then
5994 ac_executable_p="test -x"
5995 else
5996 ac_executable_p="test -f"
5997 fi
5998 rm -f conf$$.file
5999
6000 # Extract the first word of "xgettext", so it can be a program name with args.
6001 set dummy xgettext; ac_word=$2
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6003 $as_echo_n "checking for $ac_word... " >&6; }
6004 if ${ac_cv_path_XGETTEXT+:} false; then :
6005 $as_echo_n "(cached) " >&6
6006 else
6007 case "$XGETTEXT" in
6008 [\\/]* | ?:[\\/]*)
6009 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6010 ;;
6011 *)
6012 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6013 for ac_dir in $PATH; do
6014 IFS="$ac_save_IFS"
6015 test -z "$ac_dir" && ac_dir=.
6016 for ac_exec_ext in '' $ac_executable_extensions; do
6017 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6018 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6019 (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
6020 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6021 break 2
6022 fi
6023 fi
6024 done
6025 done
6026 IFS="$ac_save_IFS"
6027 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6028 ;;
6029 esac
6030 fi
6031 XGETTEXT="$ac_cv_path_XGETTEXT"
6032 if test "$XGETTEXT" != ":"; then
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6034 $as_echo "$XGETTEXT" >&6; }
6035 else
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6037 $as_echo "no" >&6; }
6038 fi
6039
6040 rm -f messages.po
6041
6042
6043 # Prepare PATH_SEPARATOR.
6044 # The user is always right.
6045 if test "${PATH_SEPARATOR+set}" != set; then
6046 echo "#! /bin/sh" >conf$$.sh
6047 echo "exit 0" >>conf$$.sh
6048 chmod +x conf$$.sh
6049 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6050 PATH_SEPARATOR=';'
6051 else
6052 PATH_SEPARATOR=:
6053 fi
6054 rm -f conf$$.sh
6055 fi
6056
6057 # Find out how to test for executable files. Don't use a zero-byte file,
6058 # as systems may use methods other than mode bits to determine executability.
6059 cat >conf$$.file <<_ASEOF
6060 #! /bin/sh
6061 exit 0
6062 _ASEOF
6063 chmod +x conf$$.file
6064 if test -x conf$$.file >/dev/null 2>&1; then
6065 ac_executable_p="test -x"
6066 else
6067 ac_executable_p="test -f"
6068 fi
6069 rm -f conf$$.file
6070
6071 # Extract the first word of "msgmerge", so it can be a program name with args.
6072 set dummy msgmerge; ac_word=$2
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6074 $as_echo_n "checking for $ac_word... " >&6; }
6075 if ${ac_cv_path_MSGMERGE+:} false; then :
6076 $as_echo_n "(cached) " >&6
6077 else
6078 case "$MSGMERGE" in
6079 [\\/]* | ?:[\\/]*)
6080 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6081 ;;
6082 *)
6083 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6084 for ac_dir in $PATH; do
6085 IFS="$ac_save_IFS"
6086 test -z "$ac_dir" && ac_dir=.
6087 for ac_exec_ext in '' $ac_executable_extensions; do
6088 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6089 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6090 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6091 break 2
6092 fi
6093 fi
6094 done
6095 done
6096 IFS="$ac_save_IFS"
6097 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6098 ;;
6099 esac
6100 fi
6101 MSGMERGE="$ac_cv_path_MSGMERGE"
6102 if test "$MSGMERGE" != ":"; then
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6104 $as_echo "$MSGMERGE" >&6; }
6105 else
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107 $as_echo "no" >&6; }
6108 fi
6109
6110
6111 if test "$GMSGFMT" != ":"; then
6112 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6113 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6114 : ;
6115 else
6116 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6118 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6119 GMSGFMT=":"
6120 fi
6121 fi
6122
6123 if test "$XGETTEXT" != ":"; then
6124 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6125 (if $XGETTEXT --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
6126 : ;
6127 else
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6129 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6130 XGETTEXT=":"
6131 fi
6132 rm -f messages.po
6133 fi
6134
6135 ac_config_commands="$ac_config_commands default-1"
6136
6137
6138 if test -n "$ac_tool_prefix"; then
6139 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6140 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6142 $as_echo_n "checking for $ac_word... " >&6; }
6143 if ${ac_cv_prog_RANLIB+:} false; then :
6144 $as_echo_n "(cached) " >&6
6145 else
6146 if test -n "$RANLIB"; then
6147 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6148 else
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 for as_dir in $PATH
6151 do
6152 IFS=$as_save_IFS
6153 test -z "$as_dir" && as_dir=.
6154 for ac_exec_ext in '' $ac_executable_extensions; do
6155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6156 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6158 break 2
6159 fi
6160 done
6161 done
6162 IFS=$as_save_IFS
6163
6164 fi
6165 fi
6166 RANLIB=$ac_cv_prog_RANLIB
6167 if test -n "$RANLIB"; then
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6169 $as_echo "$RANLIB" >&6; }
6170 else
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6172 $as_echo "no" >&6; }
6173 fi
6174
6175
6176 fi
6177 if test -z "$ac_cv_prog_RANLIB"; then
6178 ac_ct_RANLIB=$RANLIB
6179 # Extract the first word of "ranlib", so it can be a program name with args.
6180 set dummy ranlib; ac_word=$2
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6182 $as_echo_n "checking for $ac_word... " >&6; }
6183 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6184 $as_echo_n "(cached) " >&6
6185 else
6186 if test -n "$ac_ct_RANLIB"; then
6187 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6188 else
6189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190 for as_dir in $PATH
6191 do
6192 IFS=$as_save_IFS
6193 test -z "$as_dir" && as_dir=.
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6196 ac_cv_prog_ac_ct_RANLIB="ranlib"
6197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6198 break 2
6199 fi
6200 done
6201 done
6202 IFS=$as_save_IFS
6203
6204 fi
6205 fi
6206 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6207 if test -n "$ac_ct_RANLIB"; then
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6209 $as_echo "$ac_ct_RANLIB" >&6; }
6210 else
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212 $as_echo "no" >&6; }
6213 fi
6214
6215 if test "x$ac_ct_RANLIB" = x; then
6216 RANLIB=":"
6217 else
6218 case $cross_compiling:$ac_tool_warned in
6219 yes:)
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6222 ac_tool_warned=yes ;;
6223 esac
6224 RANLIB=$ac_ct_RANLIB
6225 fi
6226 else
6227 RANLIB="$ac_cv_prog_RANLIB"
6228 fi
6229
6230
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6232 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6233 if ${ac_cv_lib_cposix_strerror+:} false; then :
6234 $as_echo_n "(cached) " >&6
6235 else
6236 ac_check_lib_save_LIBS=$LIBS
6237 LIBS="-lcposix $LIBS"
6238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6239 /* end confdefs.h. */
6240
6241 /* Override any GCC internal prototype to avoid an error.
6242 Use char because int might match the return type of a GCC
6243 builtin and then its argument prototype would still apply. */
6244 #ifdef __cplusplus
6245 extern "C"
6246 #endif
6247 char strerror ();
6248 int
6249 main ()
6250 {
6251 return strerror ();
6252 ;
6253 return 0;
6254 }
6255 _ACEOF
6256 if ac_fn_c_try_link "$LINENO"; then :
6257 ac_cv_lib_cposix_strerror=yes
6258 else
6259 ac_cv_lib_cposix_strerror=no
6260 fi
6261 rm -f core conftest.err conftest.$ac_objext \
6262 conftest$ac_exeext conftest.$ac_ext
6263 LIBS=$ac_check_lib_save_LIBS
6264 fi
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6266 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6267 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
6268 LIBS="$LIBS -lcposix"
6269 fi
6270
6271
6272
6273
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6275 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6276 if ${ac_cv_path_GREP+:} false; then :
6277 $as_echo_n "(cached) " >&6
6278 else
6279 if test -z "$GREP"; then
6280 ac_path_GREP_found=false
6281 # Loop through the user's path and test for each of PROGNAME-LIST
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6284 do
6285 IFS=$as_save_IFS
6286 test -z "$as_dir" && as_dir=.
6287 for ac_prog in grep ggrep; do
6288 for ac_exec_ext in '' $ac_executable_extensions; do
6289 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6290 as_fn_executable_p "$ac_path_GREP" || continue
6291 # Check for GNU ac_path_GREP and select it if it is found.
6292 # Check for GNU $ac_path_GREP
6293 case `"$ac_path_GREP" --version 2>&1` in
6294 *GNU*)
6295 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6296 *)
6297 ac_count=0
6298 $as_echo_n 0123456789 >"conftest.in"
6299 while :
6300 do
6301 cat "conftest.in" "conftest.in" >"conftest.tmp"
6302 mv "conftest.tmp" "conftest.in"
6303 cp "conftest.in" "conftest.nl"
6304 $as_echo 'GREP' >> "conftest.nl"
6305 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6306 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6307 as_fn_arith $ac_count + 1 && ac_count=$as_val
6308 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6309 # Best one so far, save it but keep looking for a better one
6310 ac_cv_path_GREP="$ac_path_GREP"
6311 ac_path_GREP_max=$ac_count
6312 fi
6313 # 10*(2^10) chars as input seems more than enough
6314 test $ac_count -gt 10 && break
6315 done
6316 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6317 esac
6318
6319 $ac_path_GREP_found && break 3
6320 done
6321 done
6322 done
6323 IFS=$as_save_IFS
6324 if test -z "$ac_cv_path_GREP"; then
6325 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6326 fi
6327 else
6328 ac_cv_path_GREP=$GREP
6329 fi
6330
6331 fi
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6333 $as_echo "$ac_cv_path_GREP" >&6; }
6334 GREP="$ac_cv_path_GREP"
6335
6336
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6338 $as_echo_n "checking for egrep... " >&6; }
6339 if ${ac_cv_path_EGREP+:} false; then :
6340 $as_echo_n "(cached) " >&6
6341 else
6342 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6343 then ac_cv_path_EGREP="$GREP -E"
6344 else
6345 if test -z "$EGREP"; then
6346 ac_path_EGREP_found=false
6347 # Loop through the user's path and test for each of PROGNAME-LIST
6348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6350 do
6351 IFS=$as_save_IFS
6352 test -z "$as_dir" && as_dir=.
6353 for ac_prog in egrep; do
6354 for ac_exec_ext in '' $ac_executable_extensions; do
6355 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6356 as_fn_executable_p "$ac_path_EGREP" || continue
6357 # Check for GNU ac_path_EGREP and select it if it is found.
6358 # Check for GNU $ac_path_EGREP
6359 case `"$ac_path_EGREP" --version 2>&1` in
6360 *GNU*)
6361 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6362 *)
6363 ac_count=0
6364 $as_echo_n 0123456789 >"conftest.in"
6365 while :
6366 do
6367 cat "conftest.in" "conftest.in" >"conftest.tmp"
6368 mv "conftest.tmp" "conftest.in"
6369 cp "conftest.in" "conftest.nl"
6370 $as_echo 'EGREP' >> "conftest.nl"
6371 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6372 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6373 as_fn_arith $ac_count + 1 && ac_count=$as_val
6374 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6375 # Best one so far, save it but keep looking for a better one
6376 ac_cv_path_EGREP="$ac_path_EGREP"
6377 ac_path_EGREP_max=$ac_count
6378 fi
6379 # 10*(2^10) chars as input seems more than enough
6380 test $ac_count -gt 10 && break
6381 done
6382 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6383 esac
6384
6385 $ac_path_EGREP_found && break 3
6386 done
6387 done
6388 done
6389 IFS=$as_save_IFS
6390 if test -z "$ac_cv_path_EGREP"; then
6391 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6392 fi
6393 else
6394 ac_cv_path_EGREP=$EGREP
6395 fi
6396
6397 fi
6398 fi
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6400 $as_echo "$ac_cv_path_EGREP" >&6; }
6401 EGREP="$ac_cv_path_EGREP"
6402
6403
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6405 $as_echo_n "checking for ANSI C header files... " >&6; }
6406 if ${ac_cv_header_stdc+:} false; then :
6407 $as_echo_n "(cached) " >&6
6408 else
6409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6410 /* end confdefs.h. */
6411 #include <stdlib.h>
6412 #include <stdarg.h>
6413 #include <string.h>
6414 #include <float.h>
6415
6416 int
6417 main ()
6418 {
6419
6420 ;
6421 return 0;
6422 }
6423 _ACEOF
6424 if ac_fn_c_try_compile "$LINENO"; then :
6425 ac_cv_header_stdc=yes
6426 else
6427 ac_cv_header_stdc=no
6428 fi
6429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430
6431 if test $ac_cv_header_stdc = yes; then
6432 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6434 /* end confdefs.h. */
6435 #include <string.h>
6436
6437 _ACEOF
6438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6439 $EGREP "memchr" >/dev/null 2>&1; then :
6440
6441 else
6442 ac_cv_header_stdc=no
6443 fi
6444 rm -f conftest*
6445
6446 fi
6447
6448 if test $ac_cv_header_stdc = yes; then
6449 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6452 #include <stdlib.h>
6453
6454 _ACEOF
6455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6456 $EGREP "free" >/dev/null 2>&1; then :
6457
6458 else
6459 ac_cv_header_stdc=no
6460 fi
6461 rm -f conftest*
6462
6463 fi
6464
6465 if test $ac_cv_header_stdc = yes; then
6466 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6467 if test "$cross_compiling" = yes; then :
6468 :
6469 else
6470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6471 /* end confdefs.h. */
6472 #include <ctype.h>
6473 #include <stdlib.h>
6474 #if ((' ' & 0x0FF) == 0x020)
6475 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6476 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6477 #else
6478 # define ISLOWER(c) \
6479 (('a' <= (c) && (c) <= 'i') \
6480 || ('j' <= (c) && (c) <= 'r') \
6481 || ('s' <= (c) && (c) <= 'z'))
6482 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6483 #endif
6484
6485 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6486 int
6487 main ()
6488 {
6489 int i;
6490 for (i = 0; i < 256; i++)
6491 if (XOR (islower (i), ISLOWER (i))
6492 || toupper (i) != TOUPPER (i))
6493 return 2;
6494 return 0;
6495 }
6496 _ACEOF
6497 if ac_fn_c_try_run "$LINENO"; then :
6498
6499 else
6500 ac_cv_header_stdc=no
6501 fi
6502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6503 conftest.$ac_objext conftest.beam conftest.$ac_ext
6504 fi
6505
6506 fi
6507 fi
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6509 $as_echo "$ac_cv_header_stdc" >&6; }
6510 if test $ac_cv_header_stdc = yes; then
6511
6512 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6513
6514 fi
6515
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6517 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6518 if ${ac_cv_c_const+:} false; then :
6519 $as_echo_n "(cached) " >&6
6520 else
6521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6522 /* end confdefs.h. */
6523
6524 int
6525 main ()
6526 {
6527
6528 #ifndef __cplusplus
6529 /* Ultrix mips cc rejects this sort of thing. */
6530 typedef int charset[2];
6531 const charset cs = { 0, 0 };
6532 /* SunOS 4.1.1 cc rejects this. */
6533 char const *const *pcpcc;
6534 char **ppc;
6535 /* NEC SVR4.0.2 mips cc rejects this. */
6536 struct point {int x, y;};
6537 static struct point const zero = {0,0};
6538 /* AIX XL C 1.02.0.0 rejects this.
6539 It does not let you subtract one const X* pointer from another in
6540 an arm of an if-expression whose if-part is not a constant
6541 expression */
6542 const char *g = "string";
6543 pcpcc = &g + (g ? g-g : 0);
6544 /* HPUX 7.0 cc rejects these. */
6545 ++pcpcc;
6546 ppc = (char**) pcpcc;
6547 pcpcc = (char const *const *) ppc;
6548 { /* SCO 3.2v4 cc rejects this sort of thing. */
6549 char tx;
6550 char *t = &tx;
6551 char const *s = 0 ? (char *) 0 : (char const *) 0;
6552
6553 *t++ = 0;
6554 if (s) return 0;
6555 }
6556 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6557 int x[] = {25, 17};
6558 const int *foo = &x[0];
6559 ++foo;
6560 }
6561 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6562 typedef const int *iptr;
6563 iptr p = 0;
6564 ++p;
6565 }
6566 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6567 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6568 struct s { int j; const int *ap[3]; } bx;
6569 struct s *b = &bx; b->j = 5;
6570 }
6571 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6572 const int foo = 10;
6573 if (!foo) return 0;
6574 }
6575 return !cs[0] && !zero.x;
6576 #endif
6577
6578 ;
6579 return 0;
6580 }
6581 _ACEOF
6582 if ac_fn_c_try_compile "$LINENO"; then :
6583 ac_cv_c_const=yes
6584 else
6585 ac_cv_c_const=no
6586 fi
6587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6588 fi
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6590 $as_echo "$ac_cv_c_const" >&6; }
6591 if test $ac_cv_c_const = no; then
6592
6593 $as_echo "#define const /**/" >>confdefs.h
6594
6595 fi
6596
6597
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6599 $as_echo_n "checking for signed... " >&6; }
6600 if ${bh_cv_c_signed+:} false; then :
6601 $as_echo_n "(cached) " >&6
6602 else
6603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6604 /* end confdefs.h. */
6605
6606 int
6607 main ()
6608 {
6609 signed char x;
6610 ;
6611 return 0;
6612 }
6613 _ACEOF
6614 if ac_fn_c_try_compile "$LINENO"; then :
6615 bh_cv_c_signed=yes
6616 else
6617 bh_cv_c_signed=no
6618 fi
6619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6620 fi
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6622 $as_echo "$bh_cv_c_signed" >&6; }
6623 if test $bh_cv_c_signed = no; then
6624
6625 $as_echo "#define signed /**/" >>confdefs.h
6626
6627 fi
6628
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6630 $as_echo_n "checking for inline... " >&6; }
6631 if ${ac_cv_c_inline+:} false; then :
6632 $as_echo_n "(cached) " >&6
6633 else
6634 ac_cv_c_inline=no
6635 for ac_kw in inline __inline__ __inline; do
6636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6637 /* end confdefs.h. */
6638 #ifndef __cplusplus
6639 typedef int foo_t;
6640 static $ac_kw foo_t static_foo () {return 0; }
6641 $ac_kw foo_t foo () {return 0; }
6642 #endif
6643
6644 _ACEOF
6645 if ac_fn_c_try_compile "$LINENO"; then :
6646 ac_cv_c_inline=$ac_kw
6647 fi
6648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6649 test "$ac_cv_c_inline" != no && break
6650 done
6651
6652 fi
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6654 $as_echo "$ac_cv_c_inline" >&6; }
6655
6656 case $ac_cv_c_inline in
6657 inline | yes) ;;
6658 *)
6659 case $ac_cv_c_inline in
6660 no) ac_val=;;
6661 *) ac_val=$ac_cv_c_inline;;
6662 esac
6663 cat >>confdefs.h <<_ACEOF
6664 #ifndef __cplusplus
6665 #define inline $ac_val
6666 #endif
6667 _ACEOF
6668 ;;
6669 esac
6670
6671 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6672 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6673 inttypes.h stdint.h unistd.h
6674 do :
6675 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6676 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6677 "
6678 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6679 cat >>confdefs.h <<_ACEOF
6680 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6681 _ACEOF
6682
6683 fi
6684
6685 done
6686
6687
6688 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6689 if test "x$ac_cv_type_off_t" = xyes; then :
6690
6691 else
6692
6693 cat >>confdefs.h <<_ACEOF
6694 #define off_t long int
6695 _ACEOF
6696
6697 fi
6698
6699 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6700 if test "x$ac_cv_type_size_t" = xyes; then :
6701
6702 else
6703
6704 cat >>confdefs.h <<_ACEOF
6705 #define size_t unsigned int
6706 _ACEOF
6707
6708 fi
6709
6710
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6712 $as_echo_n "checking for long long... " >&6; }
6713 if ${ac_cv_type_long_long+:} false; then :
6714 $as_echo_n "(cached) " >&6
6715 else
6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717 /* end confdefs.h. */
6718 long long ll = 1LL; int i = 63;
6719 int
6720 main ()
6721 {
6722 long long llmax = (long long) -1;
6723 return ll << i | ll >> i | llmax / ll | llmax % ll;
6724 ;
6725 return 0;
6726 }
6727 _ACEOF
6728 if ac_fn_c_try_link "$LINENO"; then :
6729 ac_cv_type_long_long=yes
6730 else
6731 ac_cv_type_long_long=no
6732 fi
6733 rm -f core conftest.err conftest.$ac_objext \
6734 conftest$ac_exeext conftest.$ac_ext
6735 fi
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6737 $as_echo "$ac_cv_type_long_long" >&6; }
6738 if test $ac_cv_type_long_long = yes; then
6739
6740 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6741
6742 fi
6743
6744
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6746 $as_echo_n "checking for long double... " >&6; }
6747 if ${gt_cv_c_long_double+:} false; then :
6748 $as_echo_n "(cached) " >&6
6749 else
6750 if test "$GCC" = yes; then
6751 gt_cv_c_long_double=yes
6752 else
6753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h. */
6755
6756 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6757 long double foo = 0.0;
6758 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6759 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6760
6761 int
6762 main ()
6763 {
6764
6765 ;
6766 return 0;
6767 }
6768 _ACEOF
6769 if ac_fn_c_try_compile "$LINENO"; then :
6770 gt_cv_c_long_double=yes
6771 else
6772 gt_cv_c_long_double=no
6773 fi
6774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6775 fi
6776 fi
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6778 $as_echo "$gt_cv_c_long_double" >&6; }
6779 if test $gt_cv_c_long_double = yes; then
6780
6781 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6782
6783 fi
6784
6785
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6787 $as_echo_n "checking for wchar_t... " >&6; }
6788 if ${gt_cv_c_wchar_t+:} false; then :
6789 $as_echo_n "(cached) " >&6
6790 else
6791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6792 /* end confdefs.h. */
6793 #include <stddef.h>
6794 wchar_t foo = (wchar_t)'\0';
6795 int
6796 main ()
6797 {
6798
6799 ;
6800 return 0;
6801 }
6802 _ACEOF
6803 if ac_fn_c_try_compile "$LINENO"; then :
6804 gt_cv_c_wchar_t=yes
6805 else
6806 gt_cv_c_wchar_t=no
6807 fi
6808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6809 fi
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6811 $as_echo "$gt_cv_c_wchar_t" >&6; }
6812 if test $gt_cv_c_wchar_t = yes; then
6813
6814 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6815
6816 fi
6817
6818
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6820 $as_echo_n "checking for wint_t... " >&6; }
6821 if ${gt_cv_c_wint_t+:} false; then :
6822 $as_echo_n "(cached) " >&6
6823 else
6824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6825 /* end confdefs.h. */
6826 #include <wchar.h>
6827 wint_t foo = (wchar_t)'\0';
6828 int
6829 main ()
6830 {
6831
6832 ;
6833 return 0;
6834 }
6835 _ACEOF
6836 if ac_fn_c_try_compile "$LINENO"; then :
6837 gt_cv_c_wint_t=yes
6838 else
6839 gt_cv_c_wint_t=no
6840 fi
6841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6842 fi
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6844 $as_echo "$gt_cv_c_wint_t" >&6; }
6845 if test $gt_cv_c_wint_t = yes; then
6846
6847 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6848
6849 fi
6850
6851
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6853 $as_echo_n "checking for inttypes.h... " >&6; }
6854 if ${jm_ac_cv_header_inttypes_h+:} false; then :
6855 $as_echo_n "(cached) " >&6
6856 else
6857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858 /* end confdefs.h. */
6859 #include <sys/types.h>
6860 #include <inttypes.h>
6861 int
6862 main ()
6863 {
6864 uintmax_t i = (uintmax_t) -1;
6865 ;
6866 return 0;
6867 }
6868 _ACEOF
6869 if ac_fn_c_try_compile "$LINENO"; then :
6870 jm_ac_cv_header_inttypes_h=yes
6871 else
6872 jm_ac_cv_header_inttypes_h=no
6873 fi
6874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6875 fi
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6877 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6878 if test $jm_ac_cv_header_inttypes_h = yes; then
6879
6880 cat >>confdefs.h <<_ACEOF
6881 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6882 _ACEOF
6883
6884 fi
6885
6886
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6888 $as_echo_n "checking for stdint.h... " >&6; }
6889 if ${jm_ac_cv_header_stdint_h+:} false; then :
6890 $as_echo_n "(cached) " >&6
6891 else
6892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6893 /* end confdefs.h. */
6894 #include <sys/types.h>
6895 #include <stdint.h>
6896 int
6897 main ()
6898 {
6899 uintmax_t i = (uintmax_t) -1;
6900 ;
6901 return 0;
6902 }
6903 _ACEOF
6904 if ac_fn_c_try_compile "$LINENO"; then :
6905 jm_ac_cv_header_stdint_h=yes
6906 else
6907 jm_ac_cv_header_stdint_h=no
6908 fi
6909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6910 fi
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6912 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6913 if test $jm_ac_cv_header_stdint_h = yes; then
6914
6915 cat >>confdefs.h <<_ACEOF
6916 #define HAVE_STDINT_H_WITH_UINTMAX 1
6917 _ACEOF
6918
6919 fi
6920
6921
6922
6923
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6925 $as_echo_n "checking for intmax_t... " >&6; }
6926 if ${gt_cv_c_intmax_t+:} false; then :
6927 $as_echo_n "(cached) " >&6
6928 else
6929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930 /* end confdefs.h. */
6931
6932 #include <stddef.h>
6933 #include <stdlib.h>
6934 #if HAVE_STDINT_H_WITH_UINTMAX
6935 #include <stdint.h>
6936 #endif
6937 #if HAVE_INTTYPES_H_WITH_UINTMAX
6938 #include <inttypes.h>
6939 #endif
6940
6941 int
6942 main ()
6943 {
6944 intmax_t x = -1;
6945 ;
6946 return 0;
6947 }
6948 _ACEOF
6949 if ac_fn_c_try_compile "$LINENO"; then :
6950 gt_cv_c_intmax_t=yes
6951 else
6952 gt_cv_c_intmax_t=no
6953 fi
6954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6955 fi
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6957 $as_echo "$gt_cv_c_intmax_t" >&6; }
6958 if test $gt_cv_c_intmax_t = yes; then
6959
6960 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6961
6962 fi
6963
6964
6965
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6967 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6968 if ${gt_cv_func_printf_posix+:} false; then :
6969 $as_echo_n "(cached) " >&6
6970 else
6971
6972 if test "$cross_compiling" = yes; then :
6973
6974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975 /* end confdefs.h. */
6976
6977 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6978 notposix
6979 #endif
6980
6981 _ACEOF
6982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6983 $EGREP "notposix" >/dev/null 2>&1; then :
6984 gt_cv_func_printf_posix="guessing no"
6985 else
6986 gt_cv_func_printf_posix="guessing yes"
6987 fi
6988 rm -f conftest*
6989
6990
6991 else
6992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6993 /* end confdefs.h. */
6994
6995 #include <stdio.h>
6996 #include <string.h>
6997 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6998 dollar expansion (possibly an autoconf bug). */
6999 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
7000 static char buf[100];
7001 int main ()
7002 {
7003 sprintf (buf, format, 33, 55);
7004 return (strcmp (buf, "55 33") != 0);
7005 }
7006 _ACEOF
7007 if ac_fn_c_try_run "$LINENO"; then :
7008 gt_cv_func_printf_posix=yes
7009 else
7010 gt_cv_func_printf_posix=no
7011 fi
7012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7013 conftest.$ac_objext conftest.beam conftest.$ac_ext
7014 fi
7015
7016
7017 fi
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
7019 $as_echo "$gt_cv_func_printf_posix" >&6; }
7020 case $gt_cv_func_printf_posix in
7021 *yes)
7022
7023 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
7024
7025 ;;
7026 esac
7027
7028 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7029 # for constant arguments. Useless!
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7031 $as_echo_n "checking for working alloca.h... " >&6; }
7032 if ${ac_cv_working_alloca_h+:} false; then :
7033 $as_echo_n "(cached) " >&6
7034 else
7035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7036 /* end confdefs.h. */
7037 #include <alloca.h>
7038 int
7039 main ()
7040 {
7041 char *p = (char *) alloca (2 * sizeof (int));
7042 if (p) return 0;
7043 ;
7044 return 0;
7045 }
7046 _ACEOF
7047 if ac_fn_c_try_link "$LINENO"; then :
7048 ac_cv_working_alloca_h=yes
7049 else
7050 ac_cv_working_alloca_h=no
7051 fi
7052 rm -f core conftest.err conftest.$ac_objext \
7053 conftest$ac_exeext conftest.$ac_ext
7054 fi
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7056 $as_echo "$ac_cv_working_alloca_h" >&6; }
7057 if test $ac_cv_working_alloca_h = yes; then
7058
7059 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7060
7061 fi
7062
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7064 $as_echo_n "checking for alloca... " >&6; }
7065 if ${ac_cv_func_alloca_works+:} false; then :
7066 $as_echo_n "(cached) " >&6
7067 else
7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069 /* end confdefs.h. */
7070 #ifdef __GNUC__
7071 # define alloca __builtin_alloca
7072 #else
7073 # ifdef _MSC_VER
7074 # include <malloc.h>
7075 # define alloca _alloca
7076 # else
7077 # ifdef HAVE_ALLOCA_H
7078 # include <alloca.h>
7079 # else
7080 # ifdef _AIX
7081 #pragma alloca
7082 # else
7083 # ifndef alloca /* predefined by HP cc +Olibcalls */
7084 void *alloca (size_t);
7085 # endif
7086 # endif
7087 # endif
7088 # endif
7089 #endif
7090
7091 int
7092 main ()
7093 {
7094 char *p = (char *) alloca (1);
7095 if (p) return 0;
7096 ;
7097 return 0;
7098 }
7099 _ACEOF
7100 if ac_fn_c_try_link "$LINENO"; then :
7101 ac_cv_func_alloca_works=yes
7102 else
7103 ac_cv_func_alloca_works=no
7104 fi
7105 rm -f core conftest.err conftest.$ac_objext \
7106 conftest$ac_exeext conftest.$ac_ext
7107 fi
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7109 $as_echo "$ac_cv_func_alloca_works" >&6; }
7110
7111 if test $ac_cv_func_alloca_works = yes; then
7112
7113 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7114
7115 else
7116 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7117 # that cause trouble. Some versions do not even contain alloca or
7118 # contain a buggy version. If you still want to use their alloca,
7119 # use ar to extract alloca.o from them instead of compiling alloca.c.
7120
7121 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7122
7123 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7124
7125
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7127 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7128 if ${ac_cv_os_cray+:} false; then :
7129 $as_echo_n "(cached) " >&6
7130 else
7131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132 /* end confdefs.h. */
7133 #if defined CRAY && ! defined CRAY2
7134 webecray
7135 #else
7136 wenotbecray
7137 #endif
7138
7139 _ACEOF
7140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7141 $EGREP "webecray" >/dev/null 2>&1; then :
7142 ac_cv_os_cray=yes
7143 else
7144 ac_cv_os_cray=no
7145 fi
7146 rm -f conftest*
7147
7148 fi
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7150 $as_echo "$ac_cv_os_cray" >&6; }
7151 if test $ac_cv_os_cray = yes; then
7152 for ac_func in _getb67 GETB67 getb67; do
7153 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7154 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7155 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7156
7157 cat >>confdefs.h <<_ACEOF
7158 #define CRAY_STACKSEG_END $ac_func
7159 _ACEOF
7160
7161 break
7162 fi
7163
7164 done
7165 fi
7166
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7168 $as_echo_n "checking stack direction for C alloca... " >&6; }
7169 if ${ac_cv_c_stack_direction+:} false; then :
7170 $as_echo_n "(cached) " >&6
7171 else
7172 if test "$cross_compiling" = yes; then :
7173 ac_cv_c_stack_direction=0
7174 else
7175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7176 /* end confdefs.h. */
7177 $ac_includes_default
7178 int
7179 find_stack_direction (int *addr, int depth)
7180 {
7181 int dir, dummy = 0;
7182 if (! addr)
7183 addr = &dummy;
7184 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7185 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7186 return dir + dummy;
7187 }
7188
7189 int
7190 main (int argc, char **argv)
7191 {
7192 return find_stack_direction (0, argc + !argv + 20) < 0;
7193 }
7194 _ACEOF
7195 if ac_fn_c_try_run "$LINENO"; then :
7196 ac_cv_c_stack_direction=1
7197 else
7198 ac_cv_c_stack_direction=-1
7199 fi
7200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7201 conftest.$ac_objext conftest.beam conftest.$ac_ext
7202 fi
7203
7204 fi
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7206 $as_echo "$ac_cv_c_stack_direction" >&6; }
7207 cat >>confdefs.h <<_ACEOF
7208 #define STACK_DIRECTION $ac_cv_c_stack_direction
7209 _ACEOF
7210
7211
7212 fi
7213
7214
7215
7216
7217 for ac_header in $ac_header_list
7218 do :
7219 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7220 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7221 "
7222 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7223 cat >>confdefs.h <<_ACEOF
7224 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7225 _ACEOF
7226
7227 fi
7228
7229 done
7230
7231
7232
7233
7234
7235
7236
7237
7238 for ac_func in getpagesize
7239 do :
7240 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7241 if test "x$ac_cv_func_getpagesize" = xyes; then :
7242 cat >>confdefs.h <<_ACEOF
7243 #define HAVE_GETPAGESIZE 1
7244 _ACEOF
7245
7246 fi
7247 done
7248
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7250 $as_echo_n "checking for working mmap... " >&6; }
7251 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7252 $as_echo_n "(cached) " >&6
7253 else
7254 if test "$cross_compiling" = yes; then :
7255 ac_cv_func_mmap_fixed_mapped=no
7256 else
7257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258 /* end confdefs.h. */
7259 $ac_includes_default
7260 /* malloc might have been renamed as rpl_malloc. */
7261 #undef malloc
7262
7263 /* Thanks to Mike Haertel and Jim Avera for this test.
7264 Here is a matrix of mmap possibilities:
7265 mmap private not fixed
7266 mmap private fixed at somewhere currently unmapped
7267 mmap private fixed at somewhere already mapped
7268 mmap shared not fixed
7269 mmap shared fixed at somewhere currently unmapped
7270 mmap shared fixed at somewhere already mapped
7271 For private mappings, we should verify that changes cannot be read()
7272 back from the file, nor mmap's back from the file at a different
7273 address. (There have been systems where private was not correctly
7274 implemented like the infamous i386 svr4.0, and systems where the
7275 VM page cache was not coherent with the file system buffer cache
7276 like early versions of FreeBSD and possibly contemporary NetBSD.)
7277 For shared mappings, we should conversely verify that changes get
7278 propagated back to all the places they're supposed to be.
7279
7280 Grep wants private fixed already mapped.
7281 The main things grep needs to know about mmap are:
7282 * does it exist and is it safe to write into the mmap'd area
7283 * how to use it (BSD variants) */
7284
7285 #include <fcntl.h>
7286 #include <sys/mman.h>
7287
7288 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7289 char *malloc ();
7290 #endif
7291
7292 /* This mess was copied from the GNU getpagesize.h. */
7293 #ifndef HAVE_GETPAGESIZE
7294 # ifdef _SC_PAGESIZE
7295 # define getpagesize() sysconf(_SC_PAGESIZE)
7296 # else /* no _SC_PAGESIZE */
7297 # ifdef HAVE_SYS_PARAM_H
7298 # include <sys/param.h>
7299 # ifdef EXEC_PAGESIZE
7300 # define getpagesize() EXEC_PAGESIZE
7301 # else /* no EXEC_PAGESIZE */
7302 # ifdef NBPG
7303 # define getpagesize() NBPG * CLSIZE
7304 # ifndef CLSIZE
7305 # define CLSIZE 1
7306 # endif /* no CLSIZE */
7307 # else /* no NBPG */
7308 # ifdef NBPC
7309 # define getpagesize() NBPC
7310 # else /* no NBPC */
7311 # ifdef PAGESIZE
7312 # define getpagesize() PAGESIZE
7313 # endif /* PAGESIZE */
7314 # endif /* no NBPC */
7315 # endif /* no NBPG */
7316 # endif /* no EXEC_PAGESIZE */
7317 # else /* no HAVE_SYS_PARAM_H */
7318 # define getpagesize() 8192 /* punt totally */
7319 # endif /* no HAVE_SYS_PARAM_H */
7320 # endif /* no _SC_PAGESIZE */
7321
7322 #endif /* no HAVE_GETPAGESIZE */
7323
7324 int
7325 main ()
7326 {
7327 char *data, *data2, *data3;
7328 const char *cdata2;
7329 int i, pagesize;
7330 int fd, fd2;
7331
7332 pagesize = getpagesize ();
7333
7334 /* First, make a file with some known garbage in it. */
7335 data = (char *) malloc (pagesize);
7336 if (!data)
7337 return 1;
7338 for (i = 0; i < pagesize; ++i)
7339 *(data + i) = rand ();
7340 umask (0);
7341 fd = creat ("conftest.mmap", 0600);
7342 if (fd < 0)
7343 return 2;
7344 if (write (fd, data, pagesize) != pagesize)
7345 return 3;
7346 close (fd);
7347
7348 /* Next, check that the tail of a page is zero-filled. File must have
7349 non-zero length, otherwise we risk SIGBUS for entire page. */
7350 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7351 if (fd2 < 0)
7352 return 4;
7353 cdata2 = "";
7354 if (write (fd2, cdata2, 1) != 1)
7355 return 5;
7356 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7357 if (data2 == MAP_FAILED)
7358 return 6;
7359 for (i = 0; i < pagesize; ++i)
7360 if (*(data2 + i))
7361 return 7;
7362 close (fd2);
7363 if (munmap (data2, pagesize))
7364 return 8;
7365
7366 /* Next, try to mmap the file at a fixed address which already has
7367 something else allocated at it. If we can, also make sure that
7368 we see the same garbage. */
7369 fd = open ("conftest.mmap", O_RDWR);
7370 if (fd < 0)
7371 return 9;
7372 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7373 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7374 return 10;
7375 for (i = 0; i < pagesize; ++i)
7376 if (*(data + i) != *(data2 + i))
7377 return 11;
7378
7379 /* Finally, make sure that changes to the mapped area do not
7380 percolate back to the file as seen by read(). (This is a bug on
7381 some variants of i386 svr4.0.) */
7382 for (i = 0; i < pagesize; ++i)
7383 *(data2 + i) = *(data2 + i) + 1;
7384 data3 = (char *) malloc (pagesize);
7385 if (!data3)
7386 return 12;
7387 if (read (fd, data3, pagesize) != pagesize)
7388 return 13;
7389 for (i = 0; i < pagesize; ++i)
7390 if (*(data + i) != *(data3 + i))
7391 return 14;
7392 close (fd);
7393 return 0;
7394 }
7395 _ACEOF
7396 if ac_fn_c_try_run "$LINENO"; then :
7397 ac_cv_func_mmap_fixed_mapped=yes
7398 else
7399 ac_cv_func_mmap_fixed_mapped=no
7400 fi
7401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7402 conftest.$ac_objext conftest.beam conftest.$ac_ext
7403 fi
7404
7405 fi
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7407 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7408 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7409
7410 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7411
7412 fi
7413 rm -f conftest.mmap conftest.txt
7414
7415
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7417 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7418 if ${ac_cv_gnu_library_2_1+:} false; then :
7419 $as_echo_n "(cached) " >&6
7420 else
7421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7422 /* end confdefs.h. */
7423
7424 #include <features.h>
7425 #ifdef __GNU_LIBRARY__
7426 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7427 Lucky GNU user
7428 #endif
7429 #endif
7430
7431 _ACEOF
7432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7433 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7434 ac_cv_gnu_library_2_1=yes
7435 else
7436 ac_cv_gnu_library_2_1=no
7437 fi
7438 rm -f conftest*
7439
7440
7441
7442 fi
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7444 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7445
7446 GLIBC21="$ac_cv_gnu_library_2_1"
7447
7448
7449
7450
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7452 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7453 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7454 $as_echo_n "(cached) " >&6
7455 else
7456
7457 if test "$cross_compiling" = yes; then :
7458
7459 # Guess based on the CPU.
7460 case "$host_cpu" in
7461 alpha* | i3456786 | m68k | s390*)
7462 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7463 *)
7464 gt_cv_int_divbyzero_sigfpe="guessing no";;
7465 esac
7466
7467 else
7468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7469 /* end confdefs.h. */
7470
7471 #include <stdlib.h>
7472 #include <signal.h>
7473
7474 static void
7475 #ifdef __cplusplus
7476 sigfpe_handler (int sig)
7477 #else
7478 sigfpe_handler (sig) int sig;
7479 #endif
7480 {
7481 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7482 exit (sig != SIGFPE);
7483 }
7484
7485 int x = 1;
7486 int y = 0;
7487 int z;
7488 int nan;
7489
7490 int main ()
7491 {
7492 signal (SIGFPE, sigfpe_handler);
7493 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7494 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7495 signal (SIGTRAP, sigfpe_handler);
7496 #endif
7497 /* Linux/SPARC yields signal SIGILL. */
7498 #if defined (__sparc__) && defined (__linux__)
7499 signal (SIGILL, sigfpe_handler);
7500 #endif
7501
7502 z = x / y;
7503 nan = y / y;
7504 exit (1);
7505 }
7506
7507 _ACEOF
7508 if ac_fn_c_try_run "$LINENO"; then :
7509 gt_cv_int_divbyzero_sigfpe=yes
7510 else
7511 gt_cv_int_divbyzero_sigfpe=no
7512 fi
7513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7514 conftest.$ac_objext conftest.beam conftest.$ac_ext
7515 fi
7516
7517
7518 fi
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7520 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7521 case "$gt_cv_int_divbyzero_sigfpe" in
7522 *yes) value=1;;
7523 *) value=0;;
7524 esac
7525
7526 cat >>confdefs.h <<_ACEOF
7527 #define INTDIV0_RAISES_SIGFPE $value
7528 _ACEOF
7529
7530
7531
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7533 $as_echo_n "checking for unsigned long long... " >&6; }
7534 if ${ac_cv_type_unsigned_long_long+:} false; then :
7535 $as_echo_n "(cached) " >&6
7536 else
7537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7538 /* end confdefs.h. */
7539 unsigned long long ull = 1ULL; int i = 63;
7540 int
7541 main ()
7542 {
7543 unsigned long long ullmax = (unsigned long long) -1;
7544 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7545 ;
7546 return 0;
7547 }
7548 _ACEOF
7549 if ac_fn_c_try_link "$LINENO"; then :
7550 ac_cv_type_unsigned_long_long=yes
7551 else
7552 ac_cv_type_unsigned_long_long=no
7553 fi
7554 rm -f core conftest.err conftest.$ac_objext \
7555 conftest$ac_exeext conftest.$ac_ext
7556 fi
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7558 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7559 if test $ac_cv_type_unsigned_long_long = yes; then
7560
7561 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7562
7563 fi
7564
7565
7566
7567
7568 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7569
7570 test $ac_cv_type_unsigned_long_long = yes \
7571 && ac_type='unsigned long long' \
7572 || ac_type='unsigned long'
7573
7574 cat >>confdefs.h <<_ACEOF
7575 #define uintmax_t $ac_type
7576 _ACEOF
7577
7578 else
7579
7580 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7581
7582 fi
7583
7584
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7586 $as_echo_n "checking for inttypes.h... " >&6; }
7587 if ${gt_cv_header_inttypes_h+:} false; then :
7588 $as_echo_n "(cached) " >&6
7589 else
7590
7591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7592 /* end confdefs.h. */
7593 #include <sys/types.h>
7594 #include <inttypes.h>
7595 int
7596 main ()
7597 {
7598
7599 ;
7600 return 0;
7601 }
7602 _ACEOF
7603 if ac_fn_c_try_compile "$LINENO"; then :
7604 gt_cv_header_inttypes_h=yes
7605 else
7606 gt_cv_header_inttypes_h=no
7607 fi
7608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7609
7610 fi
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7612 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7613 if test $gt_cv_header_inttypes_h = yes; then
7614
7615 cat >>confdefs.h <<_ACEOF
7616 #define HAVE_INTTYPES_H 1
7617 _ACEOF
7618
7619 fi
7620
7621
7622
7623 if test $gt_cv_header_inttypes_h = yes; then
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7625 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7626 if ${gt_cv_inttypes_pri_broken+:} false; then :
7627 $as_echo_n "(cached) " >&6
7628 else
7629
7630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7631 /* end confdefs.h. */
7632 #include <inttypes.h>
7633 #ifdef PRId32
7634 char *p = PRId32;
7635 #endif
7636
7637 int
7638 main ()
7639 {
7640
7641 ;
7642 return 0;
7643 }
7644 _ACEOF
7645 if ac_fn_c_try_compile "$LINENO"; then :
7646 gt_cv_inttypes_pri_broken=no
7647 else
7648 gt_cv_inttypes_pri_broken=yes
7649 fi
7650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7651
7652 fi
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7654 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7655 fi
7656 if test "$gt_cv_inttypes_pri_broken" = yes; then
7657
7658 cat >>confdefs.h <<_ACEOF
7659 #define PRI_MACROS_BROKEN 1
7660 _ACEOF
7661
7662 fi
7663
7664
7665 for ac_header in stdint.h
7666 do :
7667 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7668 if test "x$ac_cv_header_stdint_h" = xyes; then :
7669 cat >>confdefs.h <<_ACEOF
7670 #define HAVE_STDINT_H 1
7671 _ACEOF
7672
7673 fi
7674
7675 done
7676
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7678 $as_echo_n "checking for SIZE_MAX... " >&6; }
7679 result=
7680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7681 /* end confdefs.h. */
7682
7683 #include <limits.h>
7684 #if HAVE_STDINT_H
7685 #include <stdint.h>
7686 #endif
7687 #ifdef SIZE_MAX
7688 Found it
7689 #endif
7690
7691 _ACEOF
7692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7693 $EGREP "Found it" >/dev/null 2>&1; then :
7694 result=yes
7695 fi
7696 rm -f conftest*
7697
7698 if test -z "$result"; then
7699 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
7700
7701 else
7702 result=?
7703 fi
7704
7705
7706 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7707
7708 else
7709 result=?
7710 fi
7711
7712
7713 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7714
7715 else
7716 result=?
7717 fi
7718
7719
7720 if test "$fits_in_uint" = 1; then
7721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7722 /* end confdefs.h. */
7723 #include <stddef.h>
7724 extern size_t foo;
7725 extern unsigned long foo;
7726
7727 int
7728 main ()
7729 {
7730
7731 ;
7732 return 0;
7733 }
7734 _ACEOF
7735 if ac_fn_c_try_compile "$LINENO"; then :
7736 fits_in_uint=0
7737 fi
7738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7739 fi
7740 if test -z "$result"; then
7741 if test "$fits_in_uint" = 1; then
7742 result="$res_hi$res_lo"U
7743 else
7744 result="$res_hi$res_lo"UL
7745 fi
7746 else
7747 result='~(size_t)0'
7748 fi
7749 fi
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7751 $as_echo "$result" >&6; }
7752 if test "$result" != yes; then
7753
7754 cat >>confdefs.h <<_ACEOF
7755 #define SIZE_MAX $result
7756 _ACEOF
7757
7758 fi
7759
7760
7761
7762 for ac_header in stdint.h
7763 do :
7764 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7765 if test "x$ac_cv_header_stdint_h" = xyes; then :
7766 cat >>confdefs.h <<_ACEOF
7767 #define HAVE_STDINT_H 1
7768 _ACEOF
7769
7770 fi
7771
7772 done
7773
7774
7775
7776 if test "X$prefix" = "XNONE"; then
7777 acl_final_prefix="$ac_default_prefix"
7778 else
7779 acl_final_prefix="$prefix"
7780 fi
7781 if test "X$exec_prefix" = "XNONE"; then
7782 acl_final_exec_prefix='${prefix}'
7783 else
7784 acl_final_exec_prefix="$exec_prefix"
7785 fi
7786 acl_save_prefix="$prefix"
7787 prefix="$acl_final_prefix"
7788 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7789 prefix="$acl_save_prefix"
7790
7791
7792 # Check whether --with-gnu-ld was given.
7793 if test "${with_gnu_ld+set}" = set; then :
7794 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7795 else
7796 with_gnu_ld=no
7797 fi
7798
7799 # Prepare PATH_SEPARATOR.
7800 # The user is always right.
7801 if test "${PATH_SEPARATOR+set}" != set; then
7802 echo "#! /bin/sh" >conf$$.sh
7803 echo "exit 0" >>conf$$.sh
7804 chmod +x conf$$.sh
7805 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7806 PATH_SEPARATOR=';'
7807 else
7808 PATH_SEPARATOR=:
7809 fi
7810 rm -f conf$$.sh
7811 fi
7812 ac_prog=ld
7813 if test "$GCC" = yes; then
7814 # Check if gcc -print-prog-name=ld gives a path.
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7816 $as_echo_n "checking for ld used by GCC... " >&6; }
7817 case $host in
7818 *-*-mingw*)
7819 # gcc leaves a trailing carriage return which upsets mingw
7820 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7821 *)
7822 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7823 esac
7824 case $ac_prog in
7825 # Accept absolute paths.
7826 [\\/]* | [A-Za-z]:[\\/]*)
7827 re_direlt='/[^/][^/]*/\.\./'
7828 # Canonicalize the path of ld
7829 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7830 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7831 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7832 done
7833 test -z "$LD" && LD="$ac_prog"
7834 ;;
7835 "")
7836 # If it fails, then pretend we aren't using GCC.
7837 ac_prog=ld
7838 ;;
7839 *)
7840 # If it is relative, then search for the first ld in PATH.
7841 with_gnu_ld=unknown
7842 ;;
7843 esac
7844 elif test "$with_gnu_ld" = yes; then
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7846 $as_echo_n "checking for GNU ld... " >&6; }
7847 else
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7849 $as_echo_n "checking for non-GNU ld... " >&6; }
7850 fi
7851 if ${acl_cv_path_LD+:} false; then :
7852 $as_echo_n "(cached) " >&6
7853 else
7854 if test -z "$LD"; then
7855 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7856 for ac_dir in $PATH; do
7857 test -z "$ac_dir" && ac_dir=.
7858 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7859 acl_cv_path_LD="$ac_dir/$ac_prog"
7860 # Check to see if the program is GNU ld. I'd rather use --version,
7861 # but apparently some GNU ld's only accept -v.
7862 # Break only if it was the GNU/non-GNU ld that we prefer.
7863 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7864 *GNU* | *'with BFD'*)
7865 test "$with_gnu_ld" != no && break ;;
7866 *)
7867 test "$with_gnu_ld" != yes && break ;;
7868 esac
7869 fi
7870 done
7871 IFS="$ac_save_ifs"
7872 else
7873 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7874 fi
7875 fi
7876
7877 LD="$acl_cv_path_LD"
7878 if test -n "$LD"; then
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7880 $as_echo "$LD" >&6; }
7881 else
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7883 $as_echo "no" >&6; }
7884 fi
7885 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7887 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7888 if ${acl_cv_prog_gnu_ld+:} false; then :
7889 $as_echo_n "(cached) " >&6
7890 else
7891 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7892 case `$LD -v 2>&1 </dev/null` in
7893 *GNU* | *'with BFD'*)
7894 acl_cv_prog_gnu_ld=yes ;;
7895 *)
7896 acl_cv_prog_gnu_ld=no ;;
7897 esac
7898 fi
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7900 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7901 with_gnu_ld=$acl_cv_prog_gnu_ld
7902
7903
7904
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7906 $as_echo_n "checking for shared library run path origin... " >&6; }
7907 if ${acl_cv_rpath+:} false; then :
7908 $as_echo_n "(cached) " >&6
7909 else
7910
7911 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7912 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7913 . ./conftest.sh
7914 rm -f ./conftest.sh
7915 acl_cv_rpath=done
7916
7917 fi
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7919 $as_echo "$acl_cv_rpath" >&6; }
7920 wl="$acl_cv_wl"
7921 libext="$acl_cv_libext"
7922 shlibext="$acl_cv_shlibext"
7923 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7924 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7925 hardcode_direct="$acl_cv_hardcode_direct"
7926 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7927 # Check whether --enable-rpath was given.
7928 if test "${enable_rpath+set}" = set; then :
7929 enableval=$enable_rpath; :
7930 else
7931 enable_rpath=yes
7932 fi
7933
7934
7935
7936
7937
7938
7939
7940
7941 use_additional=yes
7942
7943 acl_save_prefix="$prefix"
7944 prefix="$acl_final_prefix"
7945 acl_save_exec_prefix="$exec_prefix"
7946 exec_prefix="$acl_final_exec_prefix"
7947
7948 eval additional_includedir=\"$includedir\"
7949 eval additional_libdir=\"$libdir\"
7950
7951 exec_prefix="$acl_save_exec_prefix"
7952 prefix="$acl_save_prefix"
7953
7954
7955 # Check whether --with-libiconv-prefix was given.
7956 if test "${with_libiconv_prefix+set}" = set; then :
7957 withval=$with_libiconv_prefix;
7958 if test "X$withval" = "Xno"; then
7959 use_additional=no
7960 else
7961 if test "X$withval" = "X"; then
7962
7963 acl_save_prefix="$prefix"
7964 prefix="$acl_final_prefix"
7965 acl_save_exec_prefix="$exec_prefix"
7966 exec_prefix="$acl_final_exec_prefix"
7967
7968 eval additional_includedir=\"$includedir\"
7969 eval additional_libdir=\"$libdir\"
7970
7971 exec_prefix="$acl_save_exec_prefix"
7972 prefix="$acl_save_prefix"
7973
7974 else
7975 additional_includedir="$withval/include"
7976 additional_libdir="$withval/lib"
7977 fi
7978 fi
7979
7980 fi
7981
7982 LIBICONV=
7983 LTLIBICONV=
7984 INCICONV=
7985 rpathdirs=
7986 ltrpathdirs=
7987 names_already_handled=
7988 names_next_round='iconv '
7989 while test -n "$names_next_round"; do
7990 names_this_round="$names_next_round"
7991 names_next_round=
7992 for name in $names_this_round; do
7993 already_handled=
7994 for n in $names_already_handled; do
7995 if test "$n" = "$name"; then
7996 already_handled=yes
7997 break
7998 fi
7999 done
8000 if test -z "$already_handled"; then
8001 names_already_handled="$names_already_handled $name"
8002 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8003 eval value=\"\$HAVE_LIB$uppername\"
8004 if test -n "$value"; then
8005 if test "$value" = yes; then
8006 eval value=\"\$LIB$uppername\"
8007 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8008 eval value=\"\$LTLIB$uppername\"
8009 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8010 else
8011 :
8012 fi
8013 else
8014 found_dir=
8015 found_la=
8016 found_so=
8017 found_a=
8018 if test $use_additional = yes; then
8019 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8020 found_dir="$additional_libdir"
8021 found_so="$additional_libdir/lib$name.$shlibext"
8022 if test -f "$additional_libdir/lib$name.la"; then
8023 found_la="$additional_libdir/lib$name.la"
8024 fi
8025 else
8026 if test -f "$additional_libdir/lib$name.$libext"; then
8027 found_dir="$additional_libdir"
8028 found_a="$additional_libdir/lib$name.$libext"
8029 if test -f "$additional_libdir/lib$name.la"; then
8030 found_la="$additional_libdir/lib$name.la"
8031 fi
8032 fi
8033 fi
8034 fi
8035 if test "X$found_dir" = "X"; then
8036 for x in $LDFLAGS $LTLIBICONV; do
8037
8038 acl_save_prefix="$prefix"
8039 prefix="$acl_final_prefix"
8040 acl_save_exec_prefix="$exec_prefix"
8041 exec_prefix="$acl_final_exec_prefix"
8042 eval x=\"$x\"
8043 exec_prefix="$acl_save_exec_prefix"
8044 prefix="$acl_save_prefix"
8045
8046 case "$x" in
8047 -L*)
8048 dir=`echo "X$x" | sed -e 's/^X-L//'`
8049 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8050 found_dir="$dir"
8051 found_so="$dir/lib$name.$shlibext"
8052 if test -f "$dir/lib$name.la"; then
8053 found_la="$dir/lib$name.la"
8054 fi
8055 else
8056 if test -f "$dir/lib$name.$libext"; then
8057 found_dir="$dir"
8058 found_a="$dir/lib$name.$libext"
8059 if test -f "$dir/lib$name.la"; then
8060 found_la="$dir/lib$name.la"
8061 fi
8062 fi
8063 fi
8064 ;;
8065 esac
8066 if test "X$found_dir" != "X"; then
8067 break
8068 fi
8069 done
8070 fi
8071 if test "X$found_dir" != "X"; then
8072 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8073 if test "X$found_so" != "X"; then
8074 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8075 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8076 else
8077 haveit=
8078 for x in $ltrpathdirs; do
8079 if test "X$x" = "X$found_dir"; then
8080 haveit=yes
8081 break
8082 fi
8083 done
8084 if test -z "$haveit"; then
8085 ltrpathdirs="$ltrpathdirs $found_dir"
8086 fi
8087 if test "$hardcode_direct" = yes; then
8088 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8089 else
8090 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8091 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8092 haveit=
8093 for x in $rpathdirs; do
8094 if test "X$x" = "X$found_dir"; then
8095 haveit=yes
8096 break
8097 fi
8098 done
8099 if test -z "$haveit"; then
8100 rpathdirs="$rpathdirs $found_dir"
8101 fi
8102 else
8103 haveit=
8104 for x in $LDFLAGS $LIBICONV; do
8105
8106 acl_save_prefix="$prefix"
8107 prefix="$acl_final_prefix"
8108 acl_save_exec_prefix="$exec_prefix"
8109 exec_prefix="$acl_final_exec_prefix"
8110 eval x=\"$x\"
8111 exec_prefix="$acl_save_exec_prefix"
8112 prefix="$acl_save_prefix"
8113
8114 if test "X$x" = "X-L$found_dir"; then
8115 haveit=yes
8116 break
8117 fi
8118 done
8119 if test -z "$haveit"; then
8120 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8121 fi
8122 if test "$hardcode_minus_L" != no; then
8123 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8124 else
8125 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8126 fi
8127 fi
8128 fi
8129 fi
8130 else
8131 if test "X$found_a" != "X"; then
8132 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8133 else
8134 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8135 fi
8136 fi
8137 additional_includedir=
8138 case "$found_dir" in
8139 */lib | */lib/)
8140 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8141 additional_includedir="$basedir/include"
8142 ;;
8143 esac
8144 if test "X$additional_includedir" != "X"; then
8145 if test "X$additional_includedir" != "X/usr/include"; then
8146 haveit=
8147 if test "X$additional_includedir" = "X/usr/local/include"; then
8148 if test -n "$GCC"; then
8149 case $host_os in
8150 linux*) haveit=yes;;
8151 esac
8152 fi
8153 fi
8154 if test -z "$haveit"; then
8155 for x in $CPPFLAGS $INCICONV; do
8156
8157 acl_save_prefix="$prefix"
8158 prefix="$acl_final_prefix"
8159 acl_save_exec_prefix="$exec_prefix"
8160 exec_prefix="$acl_final_exec_prefix"
8161 eval x=\"$x\"
8162 exec_prefix="$acl_save_exec_prefix"
8163 prefix="$acl_save_prefix"
8164
8165 if test "X$x" = "X-I$additional_includedir"; then
8166 haveit=yes
8167 break
8168 fi
8169 done
8170 if test -z "$haveit"; then
8171 if test -d "$additional_includedir"; then
8172 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8173 fi
8174 fi
8175 fi
8176 fi
8177 fi
8178 if test -n "$found_la"; then
8179 save_libdir="$libdir"
8180 case "$found_la" in
8181 */* | *\\*) . "$found_la" ;;
8182 *) . "./$found_la" ;;
8183 esac
8184 libdir="$save_libdir"
8185 for dep in $dependency_libs; do
8186 case "$dep" in
8187 -L*)
8188 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8189 if test "X$additional_libdir" != "X/usr/lib"; then
8190 haveit=
8191 if test "X$additional_libdir" = "X/usr/local/lib"; then
8192 if test -n "$GCC"; then
8193 case $host_os in
8194 linux*) haveit=yes;;
8195 esac
8196 fi
8197 fi
8198 if test -z "$haveit"; then
8199 haveit=
8200 for x in $LDFLAGS $LIBICONV; do
8201
8202 acl_save_prefix="$prefix"
8203 prefix="$acl_final_prefix"
8204 acl_save_exec_prefix="$exec_prefix"
8205 exec_prefix="$acl_final_exec_prefix"
8206 eval x=\"$x\"
8207 exec_prefix="$acl_save_exec_prefix"
8208 prefix="$acl_save_prefix"
8209
8210 if test "X$x" = "X-L$additional_libdir"; then
8211 haveit=yes
8212 break
8213 fi
8214 done
8215 if test -z "$haveit"; then
8216 if test -d "$additional_libdir"; then
8217 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8218 fi
8219 fi
8220 haveit=
8221 for x in $LDFLAGS $LTLIBICONV; do
8222
8223 acl_save_prefix="$prefix"
8224 prefix="$acl_final_prefix"
8225 acl_save_exec_prefix="$exec_prefix"
8226 exec_prefix="$acl_final_exec_prefix"
8227 eval x=\"$x\"
8228 exec_prefix="$acl_save_exec_prefix"
8229 prefix="$acl_save_prefix"
8230
8231 if test "X$x" = "X-L$additional_libdir"; then
8232 haveit=yes
8233 break
8234 fi
8235 done
8236 if test -z "$haveit"; then
8237 if test -d "$additional_libdir"; then
8238 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8239 fi
8240 fi
8241 fi
8242 fi
8243 ;;
8244 -R*)
8245 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8246 if test "$enable_rpath" != no; then
8247 haveit=
8248 for x in $rpathdirs; do
8249 if test "X$x" = "X$dir"; then
8250 haveit=yes
8251 break
8252 fi
8253 done
8254 if test -z "$haveit"; then
8255 rpathdirs="$rpathdirs $dir"
8256 fi
8257 haveit=
8258 for x in $ltrpathdirs; do
8259 if test "X$x" = "X$dir"; then
8260 haveit=yes
8261 break
8262 fi
8263 done
8264 if test -z "$haveit"; then
8265 ltrpathdirs="$ltrpathdirs $dir"
8266 fi
8267 fi
8268 ;;
8269 -l*)
8270 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8271 ;;
8272 *.la)
8273 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8274 ;;
8275 *)
8276 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8277 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8278 ;;
8279 esac
8280 done
8281 fi
8282 else
8283 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8284 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8285 fi
8286 fi
8287 fi
8288 done
8289 done
8290 if test "X$rpathdirs" != "X"; then
8291 if test -n "$hardcode_libdir_separator"; then
8292 alldirs=
8293 for found_dir in $rpathdirs; do
8294 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8295 done
8296 acl_save_libdir="$libdir"
8297 libdir="$alldirs"
8298 eval flag=\"$hardcode_libdir_flag_spec\"
8299 libdir="$acl_save_libdir"
8300 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8301 else
8302 for found_dir in $rpathdirs; do
8303 acl_save_libdir="$libdir"
8304 libdir="$found_dir"
8305 eval flag=\"$hardcode_libdir_flag_spec\"
8306 libdir="$acl_save_libdir"
8307 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8308 done
8309 fi
8310 fi
8311 if test "X$ltrpathdirs" != "X"; then
8312 for found_dir in $ltrpathdirs; do
8313 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8314 done
8315 fi
8316
8317
8318
8319
8320
8321
8322
8323
8324 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8325 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
8326
8327 else
8328
8329 $as_echo "#define ptrdiff_t long" >>confdefs.h
8330
8331
8332 fi
8333
8334 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8335 stdlib.h string.h unistd.h sys/param.h
8336 do :
8337 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8338 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8339 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8340 cat >>confdefs.h <<_ACEOF
8341 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8342 _ACEOF
8343
8344 fi
8345
8346 done
8347
8348 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8349 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8350 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8351 __fsetlocking
8352 do :
8353 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8354 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8355 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8356 cat >>confdefs.h <<_ACEOF
8357 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8358 _ACEOF
8359
8360 fi
8361 done
8362
8363
8364
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8366 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8367 if ${ac_cv_have_decl__snprintf+:} false; then :
8368 $as_echo_n "(cached) " >&6
8369 else
8370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371 /* end confdefs.h. */
8372 #include <stdio.h>
8373 int
8374 main ()
8375 {
8376
8377 #ifndef _snprintf
8378 char *p = (char *) _snprintf;
8379 #endif
8380
8381 ;
8382 return 0;
8383 }
8384 _ACEOF
8385 if ac_fn_c_try_compile "$LINENO"; then :
8386 ac_cv_have_decl__snprintf=yes
8387 else
8388 ac_cv_have_decl__snprintf=no
8389 fi
8390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8391 fi
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8393 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8394 if test $ac_cv_have_decl__snprintf = yes; then
8395 gt_value=1
8396 else
8397 gt_value=0
8398 fi
8399
8400 cat >>confdefs.h <<_ACEOF
8401 #define HAVE_DECL__SNPRINTF $gt_value
8402 _ACEOF
8403
8404
8405
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8407 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8408 if ${ac_cv_have_decl__snwprintf+:} false; then :
8409 $as_echo_n "(cached) " >&6
8410 else
8411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8412 /* end confdefs.h. */
8413 #include <stdio.h>
8414 int
8415 main ()
8416 {
8417
8418 #ifndef _snwprintf
8419 char *p = (char *) _snwprintf;
8420 #endif
8421
8422 ;
8423 return 0;
8424 }
8425 _ACEOF
8426 if ac_fn_c_try_compile "$LINENO"; then :
8427 ac_cv_have_decl__snwprintf=yes
8428 else
8429 ac_cv_have_decl__snwprintf=no
8430 fi
8431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8432 fi
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8434 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8435 if test $ac_cv_have_decl__snwprintf = yes; then
8436 gt_value=1
8437 else
8438 gt_value=0
8439 fi
8440
8441 cat >>confdefs.h <<_ACEOF
8442 #define HAVE_DECL__SNWPRINTF $gt_value
8443 _ACEOF
8444
8445
8446
8447
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8449 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8450 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
8451 $as_echo_n "(cached) " >&6
8452 else
8453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8454 /* end confdefs.h. */
8455 #include <stdio.h>
8456 int
8457 main ()
8458 {
8459
8460 #ifndef feof_unlocked
8461 char *p = (char *) feof_unlocked;
8462 #endif
8463
8464 ;
8465 return 0;
8466 }
8467 _ACEOF
8468 if ac_fn_c_try_compile "$LINENO"; then :
8469 ac_cv_have_decl_feof_unlocked=yes
8470 else
8471 ac_cv_have_decl_feof_unlocked=no
8472 fi
8473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8474 fi
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8476 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8477 if test $ac_cv_have_decl_feof_unlocked = yes; then
8478 gt_value=1
8479 else
8480 gt_value=0
8481 fi
8482
8483 cat >>confdefs.h <<_ACEOF
8484 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8485 _ACEOF
8486
8487
8488
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8490 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8491 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
8492 $as_echo_n "(cached) " >&6
8493 else
8494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8495 /* end confdefs.h. */
8496 #include <stdio.h>
8497 int
8498 main ()
8499 {
8500
8501 #ifndef fgets_unlocked
8502 char *p = (char *) fgets_unlocked;
8503 #endif
8504
8505 ;
8506 return 0;
8507 }
8508 _ACEOF
8509 if ac_fn_c_try_compile "$LINENO"; then :
8510 ac_cv_have_decl_fgets_unlocked=yes
8511 else
8512 ac_cv_have_decl_fgets_unlocked=no
8513 fi
8514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8515 fi
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8517 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8518 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8519 gt_value=1
8520 else
8521 gt_value=0
8522 fi
8523
8524 cat >>confdefs.h <<_ACEOF
8525 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8526 _ACEOF
8527
8528
8529
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8531 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8532 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
8533 $as_echo_n "(cached) " >&6
8534 else
8535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8536 /* end confdefs.h. */
8537 #include <stdio.h>
8538 int
8539 main ()
8540 {
8541
8542 #ifndef getc_unlocked
8543 char *p = (char *) getc_unlocked;
8544 #endif
8545
8546 ;
8547 return 0;
8548 }
8549 _ACEOF
8550 if ac_fn_c_try_compile "$LINENO"; then :
8551 ac_cv_have_decl_getc_unlocked=yes
8552 else
8553 ac_cv_have_decl_getc_unlocked=no
8554 fi
8555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8556 fi
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8558 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8559 if test $ac_cv_have_decl_getc_unlocked = yes; then
8560 gt_value=1
8561 else
8562 gt_value=0
8563 fi
8564
8565 cat >>confdefs.h <<_ACEOF
8566 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8567 _ACEOF
8568
8569
8570
8571 case $gt_cv_func_printf_posix in
8572 *yes) HAVE_POSIX_PRINTF=1 ;;
8573 *) HAVE_POSIX_PRINTF=0 ;;
8574 esac
8575
8576 if test "$ac_cv_func_asprintf" = yes; then
8577 HAVE_ASPRINTF=1
8578 else
8579 HAVE_ASPRINTF=0
8580 fi
8581
8582 if test "$ac_cv_func_snprintf" = yes; then
8583 HAVE_SNPRINTF=1
8584 else
8585 HAVE_SNPRINTF=0
8586 fi
8587
8588 if test "$ac_cv_func_wprintf" = yes; then
8589 HAVE_WPRINTF=1
8590 else
8591 HAVE_WPRINTF=0
8592 fi
8593
8594
8595
8596
8597
8598
8599
8600 am_save_CPPFLAGS="$CPPFLAGS"
8601
8602 for element in $INCICONV; do
8603 haveit=
8604 for x in $CPPFLAGS; do
8605
8606 acl_save_prefix="$prefix"
8607 prefix="$acl_final_prefix"
8608 acl_save_exec_prefix="$exec_prefix"
8609 exec_prefix="$acl_final_exec_prefix"
8610 eval x=\"$x\"
8611 exec_prefix="$acl_save_exec_prefix"
8612 prefix="$acl_save_prefix"
8613
8614 if test "X$x" = "X$element"; then
8615 haveit=yes
8616 break
8617 fi
8618 done
8619 if test -z "$haveit"; then
8620 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8621 fi
8622 done
8623
8624
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8626 $as_echo_n "checking for iconv... " >&6; }
8627 if ${am_cv_func_iconv+:} false; then :
8628 $as_echo_n "(cached) " >&6
8629 else
8630
8631 am_cv_func_iconv="no, consider installing GNU libiconv"
8632 am_cv_lib_iconv=no
8633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8634 /* end confdefs.h. */
8635 #include <stdlib.h>
8636 #include <iconv.h>
8637 int
8638 main ()
8639 {
8640 iconv_t cd = iconv_open("","");
8641 iconv(cd,NULL,NULL,NULL,NULL);
8642 iconv_close(cd);
8643 ;
8644 return 0;
8645 }
8646 _ACEOF
8647 if ac_fn_c_try_link "$LINENO"; then :
8648 am_cv_func_iconv=yes
8649 fi
8650 rm -f core conftest.err conftest.$ac_objext \
8651 conftest$ac_exeext conftest.$ac_ext
8652 if test "$am_cv_func_iconv" != yes; then
8653 am_save_LIBS="$LIBS"
8654 LIBS="$LIBS $LIBICONV"
8655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8656 /* end confdefs.h. */
8657 #include <stdlib.h>
8658 #include <iconv.h>
8659 int
8660 main ()
8661 {
8662 iconv_t cd = iconv_open("","");
8663 iconv(cd,NULL,NULL,NULL,NULL);
8664 iconv_close(cd);
8665 ;
8666 return 0;
8667 }
8668 _ACEOF
8669 if ac_fn_c_try_link "$LINENO"; then :
8670 am_cv_lib_iconv=yes
8671 am_cv_func_iconv=yes
8672 fi
8673 rm -f core conftest.err conftest.$ac_objext \
8674 conftest$ac_exeext conftest.$ac_ext
8675 LIBS="$am_save_LIBS"
8676 fi
8677
8678 fi
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8680 $as_echo "$am_cv_func_iconv" >&6; }
8681 if test "$am_cv_func_iconv" = yes; then
8682
8683 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8684
8685 fi
8686 if test "$am_cv_lib_iconv" = yes; then
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8688 $as_echo_n "checking how to link with libiconv... " >&6; }
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8690 $as_echo "$LIBICONV" >&6; }
8691 else
8692 CPPFLAGS="$am_save_CPPFLAGS"
8693 LIBICONV=
8694 LTLIBICONV=
8695 fi
8696
8697
8698
8699 if test "$am_cv_func_iconv" = yes; then
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8701 $as_echo_n "checking for iconv declaration... " >&6; }
8702 if ${am_cv_proto_iconv+:} false; then :
8703 $as_echo_n "(cached) " >&6
8704 else
8705
8706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8707 /* end confdefs.h. */
8708
8709 #include <stdlib.h>
8710 #include <iconv.h>
8711 extern
8712 #ifdef __cplusplus
8713 "C"
8714 #endif
8715 #if defined(__STDC__) || defined(__cplusplus)
8716 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8717 #else
8718 size_t iconv();
8719 #endif
8720
8721 int
8722 main ()
8723 {
8724
8725 ;
8726 return 0;
8727 }
8728 _ACEOF
8729 if ac_fn_c_try_compile "$LINENO"; then :
8730 am_cv_proto_iconv_arg1=""
8731 else
8732 am_cv_proto_iconv_arg1="const"
8733 fi
8734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8735 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);"
8736 fi
8737
8738 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8740 }$am_cv_proto_iconv" >&5
8741 $as_echo "${ac_t:-
8742 }$am_cv_proto_iconv" >&6; }
8743
8744 cat >>confdefs.h <<_ACEOF
8745 #define ICONV_CONST $am_cv_proto_iconv_arg1
8746 _ACEOF
8747
8748 fi
8749
8750
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8752 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8753 if ${am_cv_langinfo_codeset+:} false; then :
8754 $as_echo_n "(cached) " >&6
8755 else
8756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8757 /* end confdefs.h. */
8758 #include <langinfo.h>
8759 int
8760 main ()
8761 {
8762 char* cs = nl_langinfo(CODESET);
8763 ;
8764 return 0;
8765 }
8766 _ACEOF
8767 if ac_fn_c_try_link "$LINENO"; then :
8768 am_cv_langinfo_codeset=yes
8769 else
8770 am_cv_langinfo_codeset=no
8771 fi
8772 rm -f core conftest.err conftest.$ac_objext \
8773 conftest$ac_exeext conftest.$ac_ext
8774
8775 fi
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8777 $as_echo "$am_cv_langinfo_codeset" >&6; }
8778 if test $am_cv_langinfo_codeset = yes; then
8779
8780 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8781
8782 fi
8783
8784 if test $ac_cv_header_locale_h = yes; then
8785
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8787 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8788 if ${am_cv_val_LC_MESSAGES+:} false; then :
8789 $as_echo_n "(cached) " >&6
8790 else
8791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8792 /* end confdefs.h. */
8793 #include <locale.h>
8794 int
8795 main ()
8796 {
8797 return LC_MESSAGES
8798 ;
8799 return 0;
8800 }
8801 _ACEOF
8802 if ac_fn_c_try_link "$LINENO"; then :
8803 am_cv_val_LC_MESSAGES=yes
8804 else
8805 am_cv_val_LC_MESSAGES=no
8806 fi
8807 rm -f core conftest.err conftest.$ac_objext \
8808 conftest$ac_exeext conftest.$ac_ext
8809 fi
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8811 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8812 if test $am_cv_val_LC_MESSAGES = yes; then
8813
8814 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8815
8816 fi
8817
8818 fi
8819
8820 for ac_prog in bison
8821 do
8822 # Extract the first word of "$ac_prog", so it can be a program name with args.
8823 set dummy $ac_prog; ac_word=$2
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8825 $as_echo_n "checking for $ac_word... " >&6; }
8826 if ${ac_cv_prog_INTLBISON+:} false; then :
8827 $as_echo_n "(cached) " >&6
8828 else
8829 if test -n "$INTLBISON"; then
8830 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8831 else
8832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8833 for as_dir in $PATH
8834 do
8835 IFS=$as_save_IFS
8836 test -z "$as_dir" && as_dir=.
8837 for ac_exec_ext in '' $ac_executable_extensions; do
8838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8839 ac_cv_prog_INTLBISON="$ac_prog"
8840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8841 break 2
8842 fi
8843 done
8844 done
8845 IFS=$as_save_IFS
8846
8847 fi
8848 fi
8849 INTLBISON=$ac_cv_prog_INTLBISON
8850 if test -n "$INTLBISON"; then
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8852 $as_echo "$INTLBISON" >&6; }
8853 else
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8855 $as_echo "no" >&6; }
8856 fi
8857
8858
8859 test -n "$INTLBISON" && break
8860 done
8861
8862 if test -z "$INTLBISON"; then
8863 ac_verc_fail=yes
8864 else
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8866 $as_echo_n "checking version of bison... " >&6; }
8867 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8868 case $ac_prog_version in
8869 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8870 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8871 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8872 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8873 esac
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8875 $as_echo "$ac_prog_version" >&6; }
8876 fi
8877 if test $ac_verc_fail = yes; then
8878 INTLBISON=:
8879 fi
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8897 $as_echo_n "checking whether NLS is requested... " >&6; }
8898 # Check whether --enable-nls was given.
8899 if test "${enable_nls+set}" = set; then :
8900 enableval=$enable_nls; USE_NLS=$enableval
8901 else
8902 USE_NLS=yes
8903 fi
8904
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8906 $as_echo "$USE_NLS" >&6; }
8907
8908
8909
8910
8911 BUILD_INCLUDED_LIBINTL=no
8912 USE_INCLUDED_LIBINTL=no
8913
8914 LIBINTL=
8915 LTLIBINTL=
8916 POSUB=
8917
8918 if test "$USE_NLS" = "yes"; then
8919 gt_use_preinstalled_gnugettext=no
8920
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8922 $as_echo_n "checking whether included gettext is requested... " >&6; }
8923
8924 # Check whether --with-included-gettext was given.
8925 if test "${with_included_gettext+set}" = set; then :
8926 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8927 else
8928 nls_cv_force_use_gnu_gettext=no
8929 fi
8930
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8932 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8933
8934 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8935 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8936
8937
8938
8939
8940
8941
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8943 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8944 if ${gt_cv_func_gnugettext1_libc+:} false; then :
8945 $as_echo_n "(cached) " >&6
8946 else
8947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8948 /* end confdefs.h. */
8949 #include <libintl.h>
8950 extern int _nl_msg_cat_cntr;
8951 extern int *_nl_domain_bindings;
8952 int
8953 main ()
8954 {
8955 bindtextdomain ("", "");
8956 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8957 ;
8958 return 0;
8959 }
8960 _ACEOF
8961 if ac_fn_c_try_link "$LINENO"; then :
8962 gt_cv_func_gnugettext1_libc=yes
8963 else
8964 gt_cv_func_gnugettext1_libc=no
8965 fi
8966 rm -f core conftest.err conftest.$ac_objext \
8967 conftest$ac_exeext conftest.$ac_ext
8968 fi
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8970 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8971
8972 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8973
8974
8975
8976 use_additional=yes
8977
8978 acl_save_prefix="$prefix"
8979 prefix="$acl_final_prefix"
8980 acl_save_exec_prefix="$exec_prefix"
8981 exec_prefix="$acl_final_exec_prefix"
8982
8983 eval additional_includedir=\"$includedir\"
8984 eval additional_libdir=\"$libdir\"
8985
8986 exec_prefix="$acl_save_exec_prefix"
8987 prefix="$acl_save_prefix"
8988
8989
8990 # Check whether --with-libintl-prefix was given.
8991 if test "${with_libintl_prefix+set}" = set; then :
8992 withval=$with_libintl_prefix;
8993 if test "X$withval" = "Xno"; then
8994 use_additional=no
8995 else
8996 if test "X$withval" = "X"; then
8997
8998 acl_save_prefix="$prefix"
8999 prefix="$acl_final_prefix"
9000 acl_save_exec_prefix="$exec_prefix"
9001 exec_prefix="$acl_final_exec_prefix"
9002
9003 eval additional_includedir=\"$includedir\"
9004 eval additional_libdir=\"$libdir\"
9005
9006 exec_prefix="$acl_save_exec_prefix"
9007 prefix="$acl_save_prefix"
9008
9009 else
9010 additional_includedir="$withval/include"
9011 additional_libdir="$withval/lib"
9012 fi
9013 fi
9014
9015 fi
9016
9017 LIBINTL=
9018 LTLIBINTL=
9019 INCINTL=
9020 rpathdirs=
9021 ltrpathdirs=
9022 names_already_handled=
9023 names_next_round='intl '
9024 while test -n "$names_next_round"; do
9025 names_this_round="$names_next_round"
9026 names_next_round=
9027 for name in $names_this_round; do
9028 already_handled=
9029 for n in $names_already_handled; do
9030 if test "$n" = "$name"; then
9031 already_handled=yes
9032 break
9033 fi
9034 done
9035 if test -z "$already_handled"; then
9036 names_already_handled="$names_already_handled $name"
9037 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9038 eval value=\"\$HAVE_LIB$uppername\"
9039 if test -n "$value"; then
9040 if test "$value" = yes; then
9041 eval value=\"\$LIB$uppername\"
9042 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9043 eval value=\"\$LTLIB$uppername\"
9044 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9045 else
9046 :
9047 fi
9048 else
9049 found_dir=
9050 found_la=
9051 found_so=
9052 found_a=
9053 if test $use_additional = yes; then
9054 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9055 found_dir="$additional_libdir"
9056 found_so="$additional_libdir/lib$name.$shlibext"
9057 if test -f "$additional_libdir/lib$name.la"; then
9058 found_la="$additional_libdir/lib$name.la"
9059 fi
9060 else
9061 if test -f "$additional_libdir/lib$name.$libext"; then
9062 found_dir="$additional_libdir"
9063 found_a="$additional_libdir/lib$name.$libext"
9064 if test -f "$additional_libdir/lib$name.la"; then
9065 found_la="$additional_libdir/lib$name.la"
9066 fi
9067 fi
9068 fi
9069 fi
9070 if test "X$found_dir" = "X"; then
9071 for x in $LDFLAGS $LTLIBINTL; do
9072
9073 acl_save_prefix="$prefix"
9074 prefix="$acl_final_prefix"
9075 acl_save_exec_prefix="$exec_prefix"
9076 exec_prefix="$acl_final_exec_prefix"
9077 eval x=\"$x\"
9078 exec_prefix="$acl_save_exec_prefix"
9079 prefix="$acl_save_prefix"
9080
9081 case "$x" in
9082 -L*)
9083 dir=`echo "X$x" | sed -e 's/^X-L//'`
9084 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9085 found_dir="$dir"
9086 found_so="$dir/lib$name.$shlibext"
9087 if test -f "$dir/lib$name.la"; then
9088 found_la="$dir/lib$name.la"
9089 fi
9090 else
9091 if test -f "$dir/lib$name.$libext"; then
9092 found_dir="$dir"
9093 found_a="$dir/lib$name.$libext"
9094 if test -f "$dir/lib$name.la"; then
9095 found_la="$dir/lib$name.la"
9096 fi
9097 fi
9098 fi
9099 ;;
9100 esac
9101 if test "X$found_dir" != "X"; then
9102 break
9103 fi
9104 done
9105 fi
9106 if test "X$found_dir" != "X"; then
9107 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9108 if test "X$found_so" != "X"; then
9109 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9110 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9111 else
9112 haveit=
9113 for x in $ltrpathdirs; do
9114 if test "X$x" = "X$found_dir"; then
9115 haveit=yes
9116 break
9117 fi
9118 done
9119 if test -z "$haveit"; then
9120 ltrpathdirs="$ltrpathdirs $found_dir"
9121 fi
9122 if test "$hardcode_direct" = yes; then
9123 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9124 else
9125 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9126 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9127 haveit=
9128 for x in $rpathdirs; do
9129 if test "X$x" = "X$found_dir"; then
9130 haveit=yes
9131 break
9132 fi
9133 done
9134 if test -z "$haveit"; then
9135 rpathdirs="$rpathdirs $found_dir"
9136 fi
9137 else
9138 haveit=
9139 for x in $LDFLAGS $LIBINTL; do
9140
9141 acl_save_prefix="$prefix"
9142 prefix="$acl_final_prefix"
9143 acl_save_exec_prefix="$exec_prefix"
9144 exec_prefix="$acl_final_exec_prefix"
9145 eval x=\"$x\"
9146 exec_prefix="$acl_save_exec_prefix"
9147 prefix="$acl_save_prefix"
9148
9149 if test "X$x" = "X-L$found_dir"; then
9150 haveit=yes
9151 break
9152 fi
9153 done
9154 if test -z "$haveit"; then
9155 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9156 fi
9157 if test "$hardcode_minus_L" != no; then
9158 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9159 else
9160 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9161 fi
9162 fi
9163 fi
9164 fi
9165 else
9166 if test "X$found_a" != "X"; then
9167 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9168 else
9169 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9170 fi
9171 fi
9172 additional_includedir=
9173 case "$found_dir" in
9174 */lib | */lib/)
9175 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9176 additional_includedir="$basedir/include"
9177 ;;
9178 esac
9179 if test "X$additional_includedir" != "X"; then
9180 if test "X$additional_includedir" != "X/usr/include"; then
9181 haveit=
9182 if test "X$additional_includedir" = "X/usr/local/include"; then
9183 if test -n "$GCC"; then
9184 case $host_os in
9185 linux*) haveit=yes;;
9186 esac
9187 fi
9188 fi
9189 if test -z "$haveit"; then
9190 for x in $CPPFLAGS $INCINTL; do
9191
9192 acl_save_prefix="$prefix"
9193 prefix="$acl_final_prefix"
9194 acl_save_exec_prefix="$exec_prefix"
9195 exec_prefix="$acl_final_exec_prefix"
9196 eval x=\"$x\"
9197 exec_prefix="$acl_save_exec_prefix"
9198 prefix="$acl_save_prefix"
9199
9200 if test "X$x" = "X-I$additional_includedir"; then
9201 haveit=yes
9202 break
9203 fi
9204 done
9205 if test -z "$haveit"; then
9206 if test -d "$additional_includedir"; then
9207 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9208 fi
9209 fi
9210 fi
9211 fi
9212 fi
9213 if test -n "$found_la"; then
9214 save_libdir="$libdir"
9215 case "$found_la" in
9216 */* | *\\*) . "$found_la" ;;
9217 *) . "./$found_la" ;;
9218 esac
9219 libdir="$save_libdir"
9220 for dep in $dependency_libs; do
9221 case "$dep" in
9222 -L*)
9223 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9224 if test "X$additional_libdir" != "X/usr/lib"; then
9225 haveit=
9226 if test "X$additional_libdir" = "X/usr/local/lib"; then
9227 if test -n "$GCC"; then
9228 case $host_os in
9229 linux*) haveit=yes;;
9230 esac
9231 fi
9232 fi
9233 if test -z "$haveit"; then
9234 haveit=
9235 for x in $LDFLAGS $LIBINTL; do
9236
9237 acl_save_prefix="$prefix"
9238 prefix="$acl_final_prefix"
9239 acl_save_exec_prefix="$exec_prefix"
9240 exec_prefix="$acl_final_exec_prefix"
9241 eval x=\"$x\"
9242 exec_prefix="$acl_save_exec_prefix"
9243 prefix="$acl_save_prefix"
9244
9245 if test "X$x" = "X-L$additional_libdir"; then
9246 haveit=yes
9247 break
9248 fi
9249 done
9250 if test -z "$haveit"; then
9251 if test -d "$additional_libdir"; then
9252 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9253 fi
9254 fi
9255 haveit=
9256 for x in $LDFLAGS $LTLIBINTL; do
9257
9258 acl_save_prefix="$prefix"
9259 prefix="$acl_final_prefix"
9260 acl_save_exec_prefix="$exec_prefix"
9261 exec_prefix="$acl_final_exec_prefix"
9262 eval x=\"$x\"
9263 exec_prefix="$acl_save_exec_prefix"
9264 prefix="$acl_save_prefix"
9265
9266 if test "X$x" = "X-L$additional_libdir"; then
9267 haveit=yes
9268 break
9269 fi
9270 done
9271 if test -z "$haveit"; then
9272 if test -d "$additional_libdir"; then
9273 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9274 fi
9275 fi
9276 fi
9277 fi
9278 ;;
9279 -R*)
9280 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9281 if test "$enable_rpath" != no; then
9282 haveit=
9283 for x in $rpathdirs; do
9284 if test "X$x" = "X$dir"; then
9285 haveit=yes
9286 break
9287 fi
9288 done
9289 if test -z "$haveit"; then
9290 rpathdirs="$rpathdirs $dir"
9291 fi
9292 haveit=
9293 for x in $ltrpathdirs; do
9294 if test "X$x" = "X$dir"; then
9295 haveit=yes
9296 break
9297 fi
9298 done
9299 if test -z "$haveit"; then
9300 ltrpathdirs="$ltrpathdirs $dir"
9301 fi
9302 fi
9303 ;;
9304 -l*)
9305 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9306 ;;
9307 *.la)
9308 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9309 ;;
9310 *)
9311 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9312 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9313 ;;
9314 esac
9315 done
9316 fi
9317 else
9318 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9319 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9320 fi
9321 fi
9322 fi
9323 done
9324 done
9325 if test "X$rpathdirs" != "X"; then
9326 if test -n "$hardcode_libdir_separator"; then
9327 alldirs=
9328 for found_dir in $rpathdirs; do
9329 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9330 done
9331 acl_save_libdir="$libdir"
9332 libdir="$alldirs"
9333 eval flag=\"$hardcode_libdir_flag_spec\"
9334 libdir="$acl_save_libdir"
9335 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9336 else
9337 for found_dir in $rpathdirs; do
9338 acl_save_libdir="$libdir"
9339 libdir="$found_dir"
9340 eval flag=\"$hardcode_libdir_flag_spec\"
9341 libdir="$acl_save_libdir"
9342 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9343 done
9344 fi
9345 fi
9346 if test "X$ltrpathdirs" != "X"; then
9347 for found_dir in $ltrpathdirs; do
9348 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9349 done
9350 fi
9351
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9353 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9354 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
9355 $as_echo_n "(cached) " >&6
9356 else
9357 gt_save_CPPFLAGS="$CPPFLAGS"
9358 CPPFLAGS="$CPPFLAGS $INCINTL"
9359 gt_save_LIBS="$LIBS"
9360 LIBS="$LIBS $LIBINTL"
9361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9362 /* end confdefs.h. */
9363 #include <libintl.h>
9364 extern int _nl_msg_cat_cntr;
9365 extern
9366 #ifdef __cplusplus
9367 "C"
9368 #endif
9369 const char *_nl_expand_alias ();
9370 int
9371 main ()
9372 {
9373 bindtextdomain ("", "");
9374 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9375 ;
9376 return 0;
9377 }
9378 _ACEOF
9379 if ac_fn_c_try_link "$LINENO"; then :
9380 gt_cv_func_gnugettext1_libintl=yes
9381 else
9382 gt_cv_func_gnugettext1_libintl=no
9383 fi
9384 rm -f core conftest.err conftest.$ac_objext \
9385 conftest$ac_exeext conftest.$ac_ext
9386 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9387 LIBS="$LIBS $LIBICONV"
9388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9389 /* end confdefs.h. */
9390 #include <libintl.h>
9391 extern int _nl_msg_cat_cntr;
9392 extern
9393 #ifdef __cplusplus
9394 "C"
9395 #endif
9396 const char *_nl_expand_alias ();
9397 int
9398 main ()
9399 {
9400 bindtextdomain ("", "");
9401 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9402 ;
9403 return 0;
9404 }
9405 _ACEOF
9406 if ac_fn_c_try_link "$LINENO"; then :
9407 LIBINTL="$LIBINTL $LIBICONV"
9408 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9409 gt_cv_func_gnugettext1_libintl=yes
9410
9411 fi
9412 rm -f core conftest.err conftest.$ac_objext \
9413 conftest$ac_exeext conftest.$ac_ext
9414 fi
9415 CPPFLAGS="$gt_save_CPPFLAGS"
9416 LIBS="$gt_save_LIBS"
9417 fi
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9419 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9420 fi
9421
9422 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9423 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9424 && test "$PACKAGE" != gettext-runtime \
9425 && test "$PACKAGE" != gettext-tools; }; then
9426 gt_use_preinstalled_gnugettext=yes
9427 else
9428 LIBINTL=
9429 LTLIBINTL=
9430 INCINTL=
9431 fi
9432
9433
9434 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9435 nls_cv_use_gnu_gettext=yes
9436 fi
9437 fi
9438
9439 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9440 BUILD_INCLUDED_LIBINTL=yes
9441 USE_INCLUDED_LIBINTL=yes
9442 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9443 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9444 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9445 fi
9446
9447 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9448 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9449 CATOBJEXT=.gmo
9450 fi
9451
9452
9453 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9454 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9455
9456 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9457
9458 else
9459 USE_NLS=no
9460 fi
9461 fi
9462
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9464 $as_echo_n "checking whether to use NLS... " >&6; }
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9466 $as_echo "$USE_NLS" >&6; }
9467 if test "$USE_NLS" = "yes"; then
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9469 $as_echo_n "checking where the gettext function comes from... " >&6; }
9470 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9471 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9472 gt_source="external libintl"
9473 else
9474 gt_source="libc"
9475 fi
9476 else
9477 gt_source="included intl directory"
9478 fi
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9480 $as_echo "$gt_source" >&6; }
9481 fi
9482
9483 if test "$USE_NLS" = "yes"; then
9484
9485 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9486 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9488 $as_echo_n "checking how to link with libintl... " >&6; }
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9490 $as_echo "$LIBINTL" >&6; }
9491
9492 for element in $INCINTL; do
9493 haveit=
9494 for x in $CPPFLAGS; do
9495
9496 acl_save_prefix="$prefix"
9497 prefix="$acl_final_prefix"
9498 acl_save_exec_prefix="$exec_prefix"
9499 exec_prefix="$acl_final_exec_prefix"
9500 eval x=\"$x\"
9501 exec_prefix="$acl_save_exec_prefix"
9502 prefix="$acl_save_prefix"
9503
9504 if test "X$x" = "X$element"; then
9505 haveit=yes
9506 break
9507 fi
9508 done
9509 if test -z "$haveit"; then
9510 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9511 fi
9512 done
9513
9514 fi
9515
9516
9517 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9518
9519
9520 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9521
9522 fi
9523
9524 POSUB=po
9525 fi
9526
9527
9528 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9529 BUILD_INCLUDED_LIBINTL=yes
9530 fi
9531
9532
9533
9534
9535
9536 nls_cv_header_intl=
9537 nls_cv_header_libgt=
9538
9539 DATADIRNAME=share
9540
9541
9542 INSTOBJEXT=.mo
9543
9544
9545 GENCAT=gencat
9546
9547
9548 if test "$USE_INCLUDED_LIBINTL" = yes; then
9549 INTLOBJS="\$(GETTOBJS)"
9550 fi
9551
9552
9553 INTL_LIBTOOL_SUFFIX_PREFIX=
9554
9555
9556
9557 INTLLIBS="$LIBINTL"
9558
9559
9560
9561
9562
9563
9564
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9566 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9567 set x ${MAKE-make}
9568 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9569 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9570 $as_echo_n "(cached) " >&6
9571 else
9572 cat >conftest.make <<\_ACEOF
9573 SHELL = /bin/sh
9574 all:
9575 @echo '@@@%%%=$(MAKE)=@@@%%%'
9576 _ACEOF
9577 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9578 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9579 *@@@%%%=?*=@@@%%%*)
9580 eval ac_cv_prog_make_${ac_make}_set=yes;;
9581 *)
9582 eval ac_cv_prog_make_${ac_make}_set=no;;
9583 esac
9584 rm -f conftest.make
9585 fi
9586 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9588 $as_echo "yes" >&6; }
9589 SET_MAKE=
9590 else
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9592 $as_echo "no" >&6; }
9593 SET_MAKE="MAKE=${MAKE-make}"
9594 fi
9595
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9597 $as_echo_n "checking for GNU make... " >&6; }
9598 if ${_cv_gnu_make_command+:} false; then :
9599 $as_echo_n "(cached) " >&6
9600 else
9601 _cv_gnu_make_command='' ;
9602 for a in "$MAKE" make gmake gnumake ; do
9603 if test -z "$a" ; then continue ; fi ;
9604 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9605 _cv_gnu_make_command=$a ;
9606 break;
9607 fi
9608 done ;
9609
9610 fi
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9612 $as_echo "$_cv_gnu_make_command" >&6; } ;
9613 if test "x$_cv_gnu_make_command" != "x" ; then
9614 ifGNUmake='' ;
9615 ifNotGNUmake='#' ;
9616 else
9617 ifGNUmake='#' ;
9618 ifNotGNUmake='' ;
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9620 $as_echo "\"Not found\"" >&6; };
9621 fi
9622
9623
9624
9625 # Extract the first word of "ln", so it can be a program name with args.
9626 set dummy ln; ac_word=$2
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9628 $as_echo_n "checking for $ac_word... " >&6; }
9629 if ${ac_cv_path_LN+:} false; then :
9630 $as_echo_n "(cached) " >&6
9631 else
9632 case $LN in
9633 [\\/]* | ?:[\\/]*)
9634 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9635 ;;
9636 *)
9637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9638 for as_dir in $PATH
9639 do
9640 IFS=$as_save_IFS
9641 test -z "$as_dir" && as_dir=.
9642 for ac_exec_ext in '' $ac_executable_extensions; do
9643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9644 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9646 break 2
9647 fi
9648 done
9649 done
9650 IFS=$as_save_IFS
9651
9652 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9653 ;;
9654 esac
9655 fi
9656 LN=$ac_cv_path_LN
9657 if test -n "$LN"; then
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9659 $as_echo "$LN" >&6; }
9660 else
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9662 $as_echo "no" >&6; }
9663 fi
9664
9665
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9667 $as_echo_n "checking whether ln -s works... " >&6; }
9668 LN_S=$as_ln_s
9669 if test "$LN_S" = "ln -s"; then
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9671 $as_echo "yes" >&6; }
9672 else
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9674 $as_echo "no, using $LN_S" >&6; }
9675 fi
9676
9677 # Extract the first word of "mv", so it can be a program name with args.
9678 set dummy mv; ac_word=$2
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9680 $as_echo_n "checking for $ac_word... " >&6; }
9681 if ${ac_cv_path_MV+:} false; then :
9682 $as_echo_n "(cached) " >&6
9683 else
9684 case $MV in
9685 [\\/]* | ?:[\\/]*)
9686 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9687 ;;
9688 *)
9689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9690 for as_dir in $PATH
9691 do
9692 IFS=$as_save_IFS
9693 test -z "$as_dir" && as_dir=.
9694 for ac_exec_ext in '' $ac_executable_extensions; do
9695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9696 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9698 break 2
9699 fi
9700 done
9701 done
9702 IFS=$as_save_IFS
9703
9704 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9705 ;;
9706 esac
9707 fi
9708 MV=$ac_cv_path_MV
9709 if test -n "$MV"; then
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9711 $as_echo "$MV" >&6; }
9712 else
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9714 $as_echo "no" >&6; }
9715 fi
9716
9717
9718 # Extract the first word of "cp", so it can be a program name with args.
9719 set dummy cp; ac_word=$2
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9721 $as_echo_n "checking for $ac_word... " >&6; }
9722 if ${ac_cv_path_CP+:} false; then :
9723 $as_echo_n "(cached) " >&6
9724 else
9725 case $CP in
9726 [\\/]* | ?:[\\/]*)
9727 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9728 ;;
9729 *)
9730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9731 for as_dir in $PATH
9732 do
9733 IFS=$as_save_IFS
9734 test -z "$as_dir" && as_dir=.
9735 for ac_exec_ext in '' $ac_executable_extensions; do
9736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9737 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9739 break 2
9740 fi
9741 done
9742 done
9743 IFS=$as_save_IFS
9744
9745 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9746 ;;
9747 esac
9748 fi
9749 CP=$ac_cv_path_CP
9750 if test -n "$CP"; then
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9752 $as_echo "$CP" >&6; }
9753 else
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9755 $as_echo "no" >&6; }
9756 fi
9757
9758
9759 # Extract the first word of "rm", so it can be a program name with args.
9760 set dummy rm; ac_word=$2
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9762 $as_echo_n "checking for $ac_word... " >&6; }
9763 if ${ac_cv_path_RM+:} false; then :
9764 $as_echo_n "(cached) " >&6
9765 else
9766 case $RM in
9767 [\\/]* | ?:[\\/]*)
9768 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9769 ;;
9770 *)
9771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9772 for as_dir in $PATH
9773 do
9774 IFS=$as_save_IFS
9775 test -z "$as_dir" && as_dir=.
9776 for ac_exec_ext in '' $ac_executable_extensions; do
9777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9778 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9780 break 2
9781 fi
9782 done
9783 done
9784 IFS=$as_save_IFS
9785
9786 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9787 ;;
9788 esac
9789 fi
9790 RM=$ac_cv_path_RM
9791 if test -n "$RM"; then
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9793 $as_echo "$RM" >&6; }
9794 else
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9796 $as_echo "no" >&6; }
9797 fi
9798
9799
9800 # Extract the first word of "chmod", so it can be a program name with args.
9801 set dummy chmod; ac_word=$2
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9803 $as_echo_n "checking for $ac_word... " >&6; }
9804 if ${ac_cv_path_CHMOD+:} false; then :
9805 $as_echo_n "(cached) " >&6
9806 else
9807 case $CHMOD in
9808 [\\/]* | ?:[\\/]*)
9809 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9810 ;;
9811 *)
9812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9813 for as_dir in $PATH
9814 do
9815 IFS=$as_save_IFS
9816 test -z "$as_dir" && as_dir=.
9817 for ac_exec_ext in '' $ac_executable_extensions; do
9818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9819 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9821 break 2
9822 fi
9823 done
9824 done
9825 IFS=$as_save_IFS
9826
9827 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9828 ;;
9829 esac
9830 fi
9831 CHMOD=$ac_cv_path_CHMOD
9832 if test -n "$CHMOD"; then
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9834 $as_echo "$CHMOD" >&6; }
9835 else
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9837 $as_echo "no" >&6; }
9838 fi
9839
9840
9841 for ac_prog in gawk mawk nawk awk
9842 do
9843 # Extract the first word of "$ac_prog", so it can be a program name with args.
9844 set dummy $ac_prog; ac_word=$2
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9846 $as_echo_n "checking for $ac_word... " >&6; }
9847 if ${ac_cv_prog_AWK+:} false; then :
9848 $as_echo_n "(cached) " >&6
9849 else
9850 if test -n "$AWK"; then
9851 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9852 else
9853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9854 for as_dir in $PATH
9855 do
9856 IFS=$as_save_IFS
9857 test -z "$as_dir" && as_dir=.
9858 for ac_exec_ext in '' $ac_executable_extensions; do
9859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9860 ac_cv_prog_AWK="$ac_prog"
9861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9862 break 2
9863 fi
9864 done
9865 done
9866 IFS=$as_save_IFS
9867
9868 fi
9869 fi
9870 AWK=$ac_cv_prog_AWK
9871 if test -n "$AWK"; then
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9873 $as_echo "$AWK" >&6; }
9874 else
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9876 $as_echo "no" >&6; }
9877 fi
9878
9879
9880 test -n "$AWK" && break
9881 done
9882
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9884 $as_echo_n "checking for egrep... " >&6; }
9885 if ${ac_cv_path_EGREP+:} false; then :
9886 $as_echo_n "(cached) " >&6
9887 else
9888 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9889 then ac_cv_path_EGREP="$GREP -E"
9890 else
9891 if test -z "$EGREP"; then
9892 ac_path_EGREP_found=false
9893 # Loop through the user's path and test for each of PROGNAME-LIST
9894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9895 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9896 do
9897 IFS=$as_save_IFS
9898 test -z "$as_dir" && as_dir=.
9899 for ac_prog in egrep; do
9900 for ac_exec_ext in '' $ac_executable_extensions; do
9901 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9902 as_fn_executable_p "$ac_path_EGREP" || continue
9903 # Check for GNU ac_path_EGREP and select it if it is found.
9904 # Check for GNU $ac_path_EGREP
9905 case `"$ac_path_EGREP" --version 2>&1` in
9906 *GNU*)
9907 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9908 *)
9909 ac_count=0
9910 $as_echo_n 0123456789 >"conftest.in"
9911 while :
9912 do
9913 cat "conftest.in" "conftest.in" >"conftest.tmp"
9914 mv "conftest.tmp" "conftest.in"
9915 cp "conftest.in" "conftest.nl"
9916 $as_echo 'EGREP' >> "conftest.nl"
9917 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9918 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9919 as_fn_arith $ac_count + 1 && ac_count=$as_val
9920 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9921 # Best one so far, save it but keep looking for a better one
9922 ac_cv_path_EGREP="$ac_path_EGREP"
9923 ac_path_EGREP_max=$ac_count
9924 fi
9925 # 10*(2^10) chars as input seems more than enough
9926 test $ac_count -gt 10 && break
9927 done
9928 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9929 esac
9930
9931 $ac_path_EGREP_found && break 3
9932 done
9933 done
9934 done
9935 IFS=$as_save_IFS
9936 if test -z "$ac_cv_path_EGREP"; then
9937 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9938 fi
9939 else
9940 ac_cv_path_EGREP=$EGREP
9941 fi
9942
9943 fi
9944 fi
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9946 $as_echo "$ac_cv_path_EGREP" >&6; }
9947 EGREP="$ac_cv_path_EGREP"
9948
9949
9950 # Extract the first word of "sed", so it can be a program name with args.
9951 set dummy sed; ac_word=$2
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9953 $as_echo_n "checking for $ac_word... " >&6; }
9954 if ${ac_cv_path_SED+:} false; then :
9955 $as_echo_n "(cached) " >&6
9956 else
9957 case $SED in
9958 [\\/]* | ?:[\\/]*)
9959 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9960 ;;
9961 *)
9962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9963 for as_dir in $PATH
9964 do
9965 IFS=$as_save_IFS
9966 test -z "$as_dir" && as_dir=.
9967 for ac_exec_ext in '' $ac_executable_extensions; do
9968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9969 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9971 break 2
9972 fi
9973 done
9974 done
9975 IFS=$as_save_IFS
9976
9977 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9978 ;;
9979 esac
9980 fi
9981 SED=$ac_cv_path_SED
9982 if test -n "$SED"; then
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9984 $as_echo "$SED" >&6; }
9985 else
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9987 $as_echo "no" >&6; }
9988 fi
9989
9990
9991 # Extract the first word of "perl", so it can be a program name with args.
9992 set dummy perl; ac_word=$2
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9994 $as_echo_n "checking for $ac_word... " >&6; }
9995 if ${ac_cv_path_PERL+:} false; then :
9996 $as_echo_n "(cached) " >&6
9997 else
9998 case $PERL in
9999 [\\/]* | ?:[\\/]*)
10000 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10001 ;;
10002 *)
10003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10004 for as_dir in $PATH
10005 do
10006 IFS=$as_save_IFS
10007 test -z "$as_dir" && as_dir=.
10008 for ac_exec_ext in '' $ac_executable_extensions; do
10009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10010 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10012 break 2
10013 fi
10014 done
10015 done
10016 IFS=$as_save_IFS
10017
10018 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
10019 ;;
10020 esac
10021 fi
10022 PERL=$ac_cv_path_PERL
10023 if test -n "$PERL"; then
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10025 $as_echo "$PERL" >&6; }
10026 else
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10028 $as_echo "no" >&6; }
10029 fi
10030
10031
10032 # Extract the first word of "ldconfig", so it can be a program name with args.
10033 set dummy ldconfig; ac_word=$2
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10035 $as_echo_n "checking for $ac_word... " >&6; }
10036 if ${ac_cv_path_LDCONFIG+:} false; then :
10037 $as_echo_n "(cached) " >&6
10038 else
10039 case $LDCONFIG in
10040 [\\/]* | ?:[\\/]*)
10041 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10042 ;;
10043 *)
10044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10045 for as_dir in $PATH
10046 do
10047 IFS=$as_save_IFS
10048 test -z "$as_dir" && as_dir=.
10049 for ac_exec_ext in '' $ac_executable_extensions; do
10050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10051 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10053 break 2
10054 fi
10055 done
10056 done
10057 IFS=$as_save_IFS
10058
10059 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10060 ;;
10061 esac
10062 fi
10063 LDCONFIG=$ac_cv_path_LDCONFIG
10064 if test -n "$LDCONFIG"; then
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
10066 $as_echo "$LDCONFIG" >&6; }
10067 else
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10069 $as_echo "no" >&6; }
10070 fi
10071
10072
10073 if test -n "$ac_tool_prefix"; then
10074 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10075 set dummy ${ac_tool_prefix}ar; ac_word=$2
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10077 $as_echo_n "checking for $ac_word... " >&6; }
10078 if ${ac_cv_prog_AR+:} false; then :
10079 $as_echo_n "(cached) " >&6
10080 else
10081 if test -n "$AR"; then
10082 ac_cv_prog_AR="$AR" # Let the user override the test.
10083 else
10084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10085 for as_dir in $PATH
10086 do
10087 IFS=$as_save_IFS
10088 test -z "$as_dir" && as_dir=.
10089 for ac_exec_ext in '' $ac_executable_extensions; do
10090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10091 ac_cv_prog_AR="${ac_tool_prefix}ar"
10092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10093 break 2
10094 fi
10095 done
10096 done
10097 IFS=$as_save_IFS
10098
10099 fi
10100 fi
10101 AR=$ac_cv_prog_AR
10102 if test -n "$AR"; then
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10104 $as_echo "$AR" >&6; }
10105 else
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10107 $as_echo "no" >&6; }
10108 fi
10109
10110
10111 fi
10112 if test -z "$ac_cv_prog_AR"; then
10113 ac_ct_AR=$AR
10114 # Extract the first word of "ar", so it can be a program name with args.
10115 set dummy ar; ac_word=$2
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10117 $as_echo_n "checking for $ac_word... " >&6; }
10118 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10119 $as_echo_n "(cached) " >&6
10120 else
10121 if test -n "$ac_ct_AR"; then
10122 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10123 else
10124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10125 for as_dir in $PATH
10126 do
10127 IFS=$as_save_IFS
10128 test -z "$as_dir" && as_dir=.
10129 for ac_exec_ext in '' $ac_executable_extensions; do
10130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10131 ac_cv_prog_ac_ct_AR="ar"
10132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10133 break 2
10134 fi
10135 done
10136 done
10137 IFS=$as_save_IFS
10138
10139 fi
10140 fi
10141 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10142 if test -n "$ac_ct_AR"; then
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10144 $as_echo "$ac_ct_AR" >&6; }
10145 else
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10147 $as_echo "no" >&6; }
10148 fi
10149
10150 if test "x$ac_ct_AR" = x; then
10151 AR="ar"
10152 else
10153 case $cross_compiling:$ac_tool_warned in
10154 yes:)
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10157 ac_tool_warned=yes ;;
10158 esac
10159 AR=$ac_ct_AR
10160 fi
10161 else
10162 AR="$ac_cv_prog_AR"
10163 fi
10164
10165 if test -n "$ac_tool_prefix"; then
10166 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10167 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10169 $as_echo_n "checking for $ac_word... " >&6; }
10170 if ${ac_cv_prog_RANLIB+:} false; then :
10171 $as_echo_n "(cached) " >&6
10172 else
10173 if test -n "$RANLIB"; then
10174 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10175 else
10176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10177 for as_dir in $PATH
10178 do
10179 IFS=$as_save_IFS
10180 test -z "$as_dir" && as_dir=.
10181 for ac_exec_ext in '' $ac_executable_extensions; do
10182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10183 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10185 break 2
10186 fi
10187 done
10188 done
10189 IFS=$as_save_IFS
10190
10191 fi
10192 fi
10193 RANLIB=$ac_cv_prog_RANLIB
10194 if test -n "$RANLIB"; then
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10196 $as_echo "$RANLIB" >&6; }
10197 else
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10199 $as_echo "no" >&6; }
10200 fi
10201
10202
10203 fi
10204 if test -z "$ac_cv_prog_RANLIB"; then
10205 ac_ct_RANLIB=$RANLIB
10206 # Extract the first word of "ranlib", so it can be a program name with args.
10207 set dummy ranlib; ac_word=$2
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10209 $as_echo_n "checking for $ac_word... " >&6; }
10210 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10211 $as_echo_n "(cached) " >&6
10212 else
10213 if test -n "$ac_ct_RANLIB"; then
10214 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10215 else
10216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10217 for as_dir in $PATH
10218 do
10219 IFS=$as_save_IFS
10220 test -z "$as_dir" && as_dir=.
10221 for ac_exec_ext in '' $ac_executable_extensions; do
10222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10223 ac_cv_prog_ac_ct_RANLIB="ranlib"
10224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10225 break 2
10226 fi
10227 done
10228 done
10229 IFS=$as_save_IFS
10230
10231 fi
10232 fi
10233 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10234 if test -n "$ac_ct_RANLIB"; then
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10236 $as_echo "$ac_ct_RANLIB" >&6; }
10237 else
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10239 $as_echo "no" >&6; }
10240 fi
10241
10242 if test "x$ac_ct_RANLIB" = x; then
10243 RANLIB=":"
10244 else
10245 case $cross_compiling:$ac_tool_warned in
10246 yes:)
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10249 ac_tool_warned=yes ;;
10250 esac
10251 RANLIB=$ac_ct_RANLIB
10252 fi
10253 else
10254 RANLIB="$ac_cv_prog_RANLIB"
10255 fi
10256
10257 if test -n "$ac_tool_prefix"; then
10258 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10259 set dummy ${ac_tool_prefix}strip; ac_word=$2
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10261 $as_echo_n "checking for $ac_word... " >&6; }
10262 if ${ac_cv_prog_STRIP+:} false; then :
10263 $as_echo_n "(cached) " >&6
10264 else
10265 if test -n "$STRIP"; then
10266 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10267 else
10268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10269 for as_dir in $PATH
10270 do
10271 IFS=$as_save_IFS
10272 test -z "$as_dir" && as_dir=.
10273 for ac_exec_ext in '' $ac_executable_extensions; do
10274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10275 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10277 break 2
10278 fi
10279 done
10280 done
10281 IFS=$as_save_IFS
10282
10283 fi
10284 fi
10285 STRIP=$ac_cv_prog_STRIP
10286 if test -n "$STRIP"; then
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10288 $as_echo "$STRIP" >&6; }
10289 else
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10291 $as_echo "no" >&6; }
10292 fi
10293
10294
10295 fi
10296 if test -z "$ac_cv_prog_STRIP"; then
10297 ac_ct_STRIP=$STRIP
10298 # Extract the first word of "strip", so it can be a program name with args.
10299 set dummy strip; ac_word=$2
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10301 $as_echo_n "checking for $ac_word... " >&6; }
10302 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10303 $as_echo_n "(cached) " >&6
10304 else
10305 if test -n "$ac_ct_STRIP"; then
10306 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10307 else
10308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10309 for as_dir in $PATH
10310 do
10311 IFS=$as_save_IFS
10312 test -z "$as_dir" && as_dir=.
10313 for ac_exec_ext in '' $ac_executable_extensions; do
10314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10315 ac_cv_prog_ac_ct_STRIP="strip"
10316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10317 break 2
10318 fi
10319 done
10320 done
10321 IFS=$as_save_IFS
10322
10323 fi
10324 fi
10325 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10326 if test -n "$ac_ct_STRIP"; then
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10328 $as_echo "$ac_ct_STRIP" >&6; }
10329 else
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10331 $as_echo "no" >&6; }
10332 fi
10333
10334 if test "x$ac_ct_STRIP" = x; then
10335 STRIP=":"
10336 else
10337 case $cross_compiling:$ac_tool_warned in
10338 yes:)
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10341 ac_tool_warned=yes ;;
10342 esac
10343 STRIP=$ac_ct_STRIP
10344 fi
10345 else
10346 STRIP="$ac_cv_prog_STRIP"
10347 fi
10348
10349 # Extract the first word of "makeinfo", so it can be a program name with args.
10350 set dummy makeinfo; ac_word=$2
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10352 $as_echo_n "checking for $ac_word... " >&6; }
10353 if ${ac_cv_prog_MAKEINFO+:} false; then :
10354 $as_echo_n "(cached) " >&6
10355 else
10356 if test -n "$MAKEINFO"; then
10357 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10358 else
10359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10360 for as_dir in $PATH
10361 do
10362 IFS=$as_save_IFS
10363 test -z "$as_dir" && as_dir=.
10364 for ac_exec_ext in '' $ac_executable_extensions; do
10365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10366 ac_cv_prog_MAKEINFO="makeinfo"
10367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10368 break 2
10369 fi
10370 done
10371 done
10372 IFS=$as_save_IFS
10373
10374 fi
10375 fi
10376 MAKEINFO=$ac_cv_prog_MAKEINFO
10377 if test -n "$MAKEINFO"; then
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10379 $as_echo "$MAKEINFO" >&6; }
10380 else
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10382 $as_echo "no" >&6; }
10383 fi
10384
10385
10386 if test "_$MAKEINFO" = "_"; then
10387 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10388 else
10389 case "$MAKEINFO" in
10390 */missing.*)
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10392 *** Makeinfo is missing. Info documentation will not be built." >&5
10393 $as_echo "$as_me: WARNING:
10394 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10395 ;;
10396 *)
10397 ;;
10398 esac
10399 fi
10400
10401
10402 # See if we need a separate native compiler.
10403 if test $cross_compiling = no; then
10404 BUILD_CC="$CC"
10405
10406 else
10407 for ac_prog in gcc cc
10408 do
10409 # Extract the first word of "$ac_prog", so it can be a program name with args.
10410 set dummy $ac_prog; ac_word=$2
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10412 $as_echo_n "checking for $ac_word... " >&6; }
10413 if ${ac_cv_prog_BUILD_CC+:} false; then :
10414 $as_echo_n "(cached) " >&6
10415 else
10416 if test -n "$BUILD_CC"; then
10417 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10418 else
10419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10420 for as_dir in $PATH
10421 do
10422 IFS=$as_save_IFS
10423 test -z "$as_dir" && as_dir=.
10424 for ac_exec_ext in '' $ac_executable_extensions; do
10425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10426 ac_cv_prog_BUILD_CC="$ac_prog"
10427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10428 break 2
10429 fi
10430 done
10431 done
10432 IFS=$as_save_IFS
10433
10434 fi
10435 fi
10436 BUILD_CC=$ac_cv_prog_BUILD_CC
10437 if test -n "$BUILD_CC"; then
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10439 $as_echo "$BUILD_CC" >&6; }
10440 else
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10442 $as_echo "no" >&6; }
10443 fi
10444
10445
10446 test -n "$BUILD_CC" && break
10447 done
10448
10449 fi
10450 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 linux/falloc.h linux/fd.h linux/major.h linux/loop.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
10451 do :
10452 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10453 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10454 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10455 cat >>confdefs.h <<_ACEOF
10456 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10457 _ACEOF
10458
10459 fi
10460
10461 done
10462
10463 for ac_header in sys/disk.h sys/mount.h
10464 do :
10465 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10466 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
10467 #if HAVE_SYS_QUEUE_H
10468 #include <sys/queue.h>
10469 #endif
10470
10471 "
10472 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10473 cat >>confdefs.h <<_ACEOF
10474 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10475 _ACEOF
10476
10477 fi
10478
10479 done
10480
10481 for ac_header in net/if.h
10482 do :
10483 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10484 #if HAVE_SYS_TYPES_H
10485 #include <sys/types.h>
10486 #endif
10487 #if HAVE_SYS_SOCKET
10488 #include <sys/socket.h>
10489 #endif
10490
10491 "
10492 if test "x$ac_cv_header_net_if_h" = xyes; then :
10493 cat >>confdefs.h <<_ACEOF
10494 #define HAVE_NET_IF_H 1
10495 _ACEOF
10496
10497 fi
10498
10499 done
10500
10501 for ac_func in vprintf
10502 do :
10503 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10504 if test "x$ac_cv_func_vprintf" = xyes; then :
10505 cat >>confdefs.h <<_ACEOF
10506 #define HAVE_VPRINTF 1
10507 _ACEOF
10508
10509 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10510 if test "x$ac_cv_func__doprnt" = xyes; then :
10511
10512 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10513
10514 fi
10515
10516 fi
10517 done
10518
10519
10520 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10521 "
10522 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
10523
10524 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10525
10526 fi
10527
10528 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10529 "
10530 if test "x$ac_cv_type_ssize_t" = xyes; then :
10531
10532 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10533
10534 fi
10535
10536 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10537 "
10538 if test "x$ac_cv_have_decl_llseek" = xyes; then :
10539
10540 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10541
10542 fi
10543
10544 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10545 #define _LARGEFILE64_SOURCE
10546 #include <unistd.h>
10547 "
10548 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
10549
10550 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10551
10552 fi
10553
10554 # The cast to long int works around a bug in the HP C Compiler
10555 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10556 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10557 # This bug is HP SR number 8606223364.
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10559 $as_echo_n "checking size of short... " >&6; }
10560 if ${ac_cv_sizeof_short+:} false; then :
10561 $as_echo_n "(cached) " >&6
10562 else
10563 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
10564
10565 else
10566 if test "$ac_cv_type_short" = yes; then
10567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10569 as_fn_error 77 "cannot compute sizeof (short)
10570 See \`config.log' for more details" "$LINENO" 5; }
10571 else
10572 ac_cv_sizeof_short=0
10573 fi
10574 fi
10575
10576 fi
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10578 $as_echo "$ac_cv_sizeof_short" >&6; }
10579
10580
10581
10582 cat >>confdefs.h <<_ACEOF
10583 #define SIZEOF_SHORT $ac_cv_sizeof_short
10584 _ACEOF
10585
10586
10587 # The cast to long int works around a bug in the HP C Compiler
10588 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10589 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10590 # This bug is HP SR number 8606223364.
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10592 $as_echo_n "checking size of int... " >&6; }
10593 if ${ac_cv_sizeof_int+:} false; then :
10594 $as_echo_n "(cached) " >&6
10595 else
10596 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
10597
10598 else
10599 if test "$ac_cv_type_int" = yes; then
10600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10602 as_fn_error 77 "cannot compute sizeof (int)
10603 See \`config.log' for more details" "$LINENO" 5; }
10604 else
10605 ac_cv_sizeof_int=0
10606 fi
10607 fi
10608
10609 fi
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10611 $as_echo "$ac_cv_sizeof_int" >&6; }
10612
10613
10614
10615 cat >>confdefs.h <<_ACEOF
10616 #define SIZEOF_INT $ac_cv_sizeof_int
10617 _ACEOF
10618
10619
10620 # The cast to long int works around a bug in the HP C Compiler
10621 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10622 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10623 # This bug is HP SR number 8606223364.
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10625 $as_echo_n "checking size of long... " >&6; }
10626 if ${ac_cv_sizeof_long+:} false; then :
10627 $as_echo_n "(cached) " >&6
10628 else
10629 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10630
10631 else
10632 if test "$ac_cv_type_long" = yes; then
10633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10635 as_fn_error 77 "cannot compute sizeof (long)
10636 See \`config.log' for more details" "$LINENO" 5; }
10637 else
10638 ac_cv_sizeof_long=0
10639 fi
10640 fi
10641
10642 fi
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10644 $as_echo "$ac_cv_sizeof_long" >&6; }
10645
10646
10647
10648 cat >>confdefs.h <<_ACEOF
10649 #define SIZEOF_LONG $ac_cv_sizeof_long
10650 _ACEOF
10651
10652
10653 # The cast to long int works around a bug in the HP C Compiler
10654 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10655 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10656 # This bug is HP SR number 8606223364.
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10658 $as_echo_n "checking size of long long... " >&6; }
10659 if ${ac_cv_sizeof_long_long+:} false; then :
10660 $as_echo_n "(cached) " >&6
10661 else
10662 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10663
10664 else
10665 if test "$ac_cv_type_long_long" = yes; then
10666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10668 as_fn_error 77 "cannot compute sizeof (long long)
10669 See \`config.log' for more details" "$LINENO" 5; }
10670 else
10671 ac_cv_sizeof_long_long=0
10672 fi
10673 fi
10674
10675 fi
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10677 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10678
10679
10680
10681 cat >>confdefs.h <<_ACEOF
10682 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10683 _ACEOF
10684
10685
10686 # The cast to long int works around a bug in the HP C Compiler
10687 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10688 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10689 # This bug is HP SR number 8606223364.
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10691 $as_echo_n "checking size of off_t... " >&6; }
10692 if ${ac_cv_sizeof_off_t+:} false; then :
10693 $as_echo_n "(cached) " >&6
10694 else
10695 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
10696
10697 else
10698 if test "$ac_cv_type_off_t" = yes; then
10699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10701 as_fn_error 77 "cannot compute sizeof (off_t)
10702 See \`config.log' for more details" "$LINENO" 5; }
10703 else
10704 ac_cv_sizeof_off_t=0
10705 fi
10706 fi
10707
10708 fi
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10710 $as_echo "$ac_cv_sizeof_off_t" >&6; }
10711
10712
10713
10714 cat >>confdefs.h <<_ACEOF
10715 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10716 _ACEOF
10717
10718
10719 SIZEOF_SHORT=$ac_cv_sizeof_short
10720 SIZEOF_INT=$ac_cv_sizeof_int
10721 SIZEOF_LONG=$ac_cv_sizeof_long
10722 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10723 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
10724
10725
10726
10727
10728
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10730 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10731 if ${ac_cv_c_bigendian+:} false; then :
10732 $as_echo_n "(cached) " >&6
10733 else
10734 ac_cv_c_bigendian=unknown
10735 # See if we're dealing with a universal compiler.
10736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10737 /* end confdefs.h. */
10738 #ifndef __APPLE_CC__
10739 not a universal capable compiler
10740 #endif
10741 typedef int dummy;
10742
10743 _ACEOF
10744 if ac_fn_c_try_compile "$LINENO"; then :
10745
10746 # Check for potential -arch flags. It is not universal unless
10747 # there are at least two -arch flags with different values.
10748 ac_arch=
10749 ac_prev=
10750 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10751 if test -n "$ac_prev"; then
10752 case $ac_word in
10753 i?86 | x86_64 | ppc | ppc64)
10754 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10755 ac_arch=$ac_word
10756 else
10757 ac_cv_c_bigendian=universal
10758 break
10759 fi
10760 ;;
10761 esac
10762 ac_prev=
10763 elif test "x$ac_word" = "x-arch"; then
10764 ac_prev=arch
10765 fi
10766 done
10767 fi
10768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10769 if test $ac_cv_c_bigendian = unknown; then
10770 # See if sys/param.h defines the BYTE_ORDER macro.
10771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10772 /* end confdefs.h. */
10773 #include <sys/types.h>
10774 #include <sys/param.h>
10775
10776 int
10777 main ()
10778 {
10779 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10780 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10781 && LITTLE_ENDIAN)
10782 bogus endian macros
10783 #endif
10784
10785 ;
10786 return 0;
10787 }
10788 _ACEOF
10789 if ac_fn_c_try_compile "$LINENO"; then :
10790 # It does; now see whether it defined to BIG_ENDIAN or not.
10791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10792 /* end confdefs.h. */
10793 #include <sys/types.h>
10794 #include <sys/param.h>
10795
10796 int
10797 main ()
10798 {
10799 #if BYTE_ORDER != BIG_ENDIAN
10800 not big endian
10801 #endif
10802
10803 ;
10804 return 0;
10805 }
10806 _ACEOF
10807 if ac_fn_c_try_compile "$LINENO"; then :
10808 ac_cv_c_bigendian=yes
10809 else
10810 ac_cv_c_bigendian=no
10811 fi
10812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10813 fi
10814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10815 fi
10816 if test $ac_cv_c_bigendian = unknown; then
10817 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10819 /* end confdefs.h. */
10820 #include <limits.h>
10821
10822 int
10823 main ()
10824 {
10825 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10826 bogus endian macros
10827 #endif
10828
10829 ;
10830 return 0;
10831 }
10832 _ACEOF
10833 if ac_fn_c_try_compile "$LINENO"; then :
10834 # It does; now see whether it defined to _BIG_ENDIAN or not.
10835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10836 /* end confdefs.h. */
10837 #include <limits.h>
10838
10839 int
10840 main ()
10841 {
10842 #ifndef _BIG_ENDIAN
10843 not big endian
10844 #endif
10845
10846 ;
10847 return 0;
10848 }
10849 _ACEOF
10850 if ac_fn_c_try_compile "$LINENO"; then :
10851 ac_cv_c_bigendian=yes
10852 else
10853 ac_cv_c_bigendian=no
10854 fi
10855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10856 fi
10857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10858 fi
10859 if test $ac_cv_c_bigendian = unknown; then
10860 # Compile a test program.
10861 if test "$cross_compiling" = yes; then :
10862 # Try to guess by grepping values from an object file.
10863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10864 /* end confdefs.h. */
10865 short int ascii_mm[] =
10866 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10867 short int ascii_ii[] =
10868 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10869 int use_ascii (int i) {
10870 return ascii_mm[i] + ascii_ii[i];
10871 }
10872 short int ebcdic_ii[] =
10873 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10874 short int ebcdic_mm[] =
10875 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10876 int use_ebcdic (int i) {
10877 return ebcdic_mm[i] + ebcdic_ii[i];
10878 }
10879 extern int foo;
10880
10881 int
10882 main ()
10883 {
10884 return use_ascii (foo) == use_ebcdic (foo);
10885 ;
10886 return 0;
10887 }
10888 _ACEOF
10889 if ac_fn_c_try_compile "$LINENO"; then :
10890 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10891 ac_cv_c_bigendian=yes
10892 fi
10893 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10894 if test "$ac_cv_c_bigendian" = unknown; then
10895 ac_cv_c_bigendian=no
10896 else
10897 # finding both strings is unlikely to happen, but who knows?
10898 ac_cv_c_bigendian=unknown
10899 fi
10900 fi
10901 fi
10902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10903 else
10904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10905 /* end confdefs.h. */
10906 $ac_includes_default
10907 int
10908 main ()
10909 {
10910
10911 /* Are we little or big endian? From Harbison&Steele. */
10912 union
10913 {
10914 long int l;
10915 char c[sizeof (long int)];
10916 } u;
10917 u.l = 1;
10918 return u.c[sizeof (long int) - 1] == 1;
10919
10920 ;
10921 return 0;
10922 }
10923 _ACEOF
10924 if ac_fn_c_try_run "$LINENO"; then :
10925 ac_cv_c_bigendian=no
10926 else
10927 ac_cv_c_bigendian=yes
10928 fi
10929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10930 conftest.$ac_objext conftest.beam conftest.$ac_ext
10931 fi
10932
10933 fi
10934 fi
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10936 $as_echo "$ac_cv_c_bigendian" >&6; }
10937 case $ac_cv_c_bigendian in #(
10938 yes)
10939 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10940 ;; #(
10941 no)
10942 ;; #(
10943 universal)
10944
10945 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10946
10947 ;; #(
10948 *)
10949 as_fn_error $? "unknown endianness
10950 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10951 esac
10952
10953 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10954 ASM_TYPES_HEADER=./asm_types.h
10955
10956 echo "/* These defines are needed for the public ext2fs.h header file */" \
10957 > public_config.h
10958 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10959 uniq tmp_config.$$ >> public_config.h
10960 else
10961 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10962 fi
10963 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10964 uniq tmp_config.$$ >> public_config.h
10965 else
10966 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10967 fi
10968 rm -f tmp_config.$$
10969 PUBLIC_CONFIG_HEADER=./public_config.h
10970
10971 for ac_header in inttypes.h
10972 do :
10973 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10974 if test "x$ac_cv_header_inttypes_h" = xyes; then :
10975 cat >>confdefs.h <<_ACEOF
10976 #define HAVE_INTTYPES_H 1
10977 _ACEOF
10978
10979 fi
10980
10981 done
10982
10983 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10984 if test "x$ac_cv_type_intptr_t" = xyes; then :
10985
10986 cat >>confdefs.h <<_ACEOF
10987 #define HAVE_INTPTR_T 1
10988 _ACEOF
10989
10990
10991 fi
10992
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10994 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10995 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
10996 $as_echo_n "(cached) " >&6
10997 else
10998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10999 /* end confdefs.h. */
11000 #include <sys/stat.h>
11001 int
11002 main ()
11003 {
11004 struct stat stat; stat.st_flags = 0;
11005 ;
11006 return 0;
11007 }
11008 _ACEOF
11009 if ac_fn_c_try_compile "$LINENO"; then :
11010 e2fsprogs_cv_struct_st_flags=yes
11011 else
11012 e2fsprogs_cv_struct_st_flags=no
11013 fi
11014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11015 fi
11016
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
11018 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
11019 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
11021 $as_echo_n "checking whether st_flags field is useful... " >&6; }
11022 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
11023 $as_echo_n "(cached) " >&6
11024 else
11025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11026 /* end confdefs.h. */
11027 #include <sys/stat.h>
11028 int
11029 main ()
11030 {
11031 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
11032 ;
11033 return 0;
11034 }
11035 _ACEOF
11036 if ac_fn_c_try_compile "$LINENO"; then :
11037 e2fsprogs_cv_struct_st_flags_immut=yes
11038 else
11039 e2fsprogs_cv_struct_st_flags_immut=no
11040 fi
11041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11042 fi
11043
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
11045 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
11046 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
11047
11048 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
11049
11050 fi
11051 fi
11052 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
11053 #include <sys/socket.h>
11054 "
11055 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
11056
11057 cat >>confdefs.h <<_ACEOF
11058 #define HAVE_SA_LEN 1
11059 _ACEOF
11060
11061 fi
11062
11063 if test -n "$BLKID_CMT"; then
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
11065 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
11066 if ${ac_cv_search_blkid_probe_all+:} false; then :
11067 $as_echo_n "(cached) " >&6
11068 else
11069 ac_func_search_save_LIBS=$LIBS
11070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11071 /* end confdefs.h. */
11072
11073 /* Override any GCC internal prototype to avoid an error.
11074 Use char because int might match the return type of a GCC
11075 builtin and then its argument prototype would still apply. */
11076 #ifdef __cplusplus
11077 extern "C"
11078 #endif
11079 char blkid_probe_all ();
11080 int
11081 main ()
11082 {
11083 return blkid_probe_all ();
11084 ;
11085 return 0;
11086 }
11087 _ACEOF
11088 for ac_lib in '' blkid; do
11089 if test -z "$ac_lib"; then
11090 ac_res="none required"
11091 else
11092 ac_res=-l$ac_lib
11093 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11094 fi
11095 if ac_fn_c_try_link "$LINENO"; then :
11096 ac_cv_search_blkid_probe_all=$ac_res
11097 fi
11098 rm -f core conftest.err conftest.$ac_objext \
11099 conftest$ac_exeext
11100 if ${ac_cv_search_blkid_probe_all+:} false; then :
11101 break
11102 fi
11103 done
11104 if ${ac_cv_search_blkid_probe_all+:} false; then :
11105
11106 else
11107 ac_cv_search_blkid_probe_all=no
11108 fi
11109 rm conftest.$ac_ext
11110 LIBS=$ac_func_search_save_LIBS
11111 fi
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
11113 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
11114 ac_res=$ac_cv_search_blkid_probe_all
11115 if test "$ac_res" != no; then :
11116 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11117
11118 fi
11119
11120 fi
11121 for ac_func in __secure_getenv backtrace blkid_probe_get_topology chflags fallocate fallocate64 fchown fdatasync fstat64 ftruncate64 getdtablesize getmntinfo getpwuid_r getrlimit getrusage jrand48 llseek lseek64 mallinfo mbstowcs memalign mmap msync nanosleep open64 pathconf posix_fadvise posix_memalign prctl secure_getenv setmntent setresgid setresuid srandom strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime valloc
11122 do :
11123 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11124 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11125 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11126 cat >>confdefs.h <<_ACEOF
11127 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11128 _ACEOF
11129
11130 fi
11131 done
11132
11133 SOCKET_LIB=''
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
11135 $as_echo_n "checking for socket in -lsocket... " >&6; }
11136 if ${ac_cv_lib_socket_socket+:} false; then :
11137 $as_echo_n "(cached) " >&6
11138 else
11139 ac_check_lib_save_LIBS=$LIBS
11140 LIBS="-lsocket $LIBS"
11141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11142 /* end confdefs.h. */
11143
11144 /* Override any GCC internal prototype to avoid an error.
11145 Use char because int might match the return type of a GCC
11146 builtin and then its argument prototype would still apply. */
11147 #ifdef __cplusplus
11148 extern "C"
11149 #endif
11150 char socket ();
11151 int
11152 main ()
11153 {
11154 return socket ();
11155 ;
11156 return 0;
11157 }
11158 _ACEOF
11159 if ac_fn_c_try_link "$LINENO"; then :
11160 ac_cv_lib_socket_socket=yes
11161 else
11162 ac_cv_lib_socket_socket=no
11163 fi
11164 rm -f core conftest.err conftest.$ac_objext \
11165 conftest$ac_exeext conftest.$ac_ext
11166 LIBS=$ac_check_lib_save_LIBS
11167 fi
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11169 $as_echo "$ac_cv_lib_socket_socket" >&6; }
11170 if test "x$ac_cv_lib_socket_socket" = xyes; then :
11171 SOCKET_LIB=-lsocket
11172 fi
11173
11174
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
11176 $as_echo_n "checking for optreset... " >&6; }
11177 if ${ac_cv_have_optreset+:} false; then :
11178 $as_echo_n "(cached) " >&6
11179 else
11180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11181 /* end confdefs.h. */
11182 #include <unistd.h>
11183
11184 _ACEOF
11185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11186 $EGREP "optreset" >/dev/null 2>&1; then :
11187 ac_cv_have_optreset=yes
11188 else
11189 ac_cv_have_optreset=no
11190 fi
11191 rm -f conftest*
11192
11193 fi
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11195 $as_echo "$ac_cv_have_optreset" >&6; }
11196 if test $ac_cv_have_optreset = yes; then
11197
11198 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11199
11200 fi
11201
11202 SEM_INIT_LIB=''
11203 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11204 if test "x$ac_cv_func_sem_init" = xyes; then :
11205
11206 else
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11208 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11209 if ${ac_cv_lib_pthread_sem_init+:} false; then :
11210 $as_echo_n "(cached) " >&6
11211 else
11212 ac_check_lib_save_LIBS=$LIBS
11213 LIBS="-lpthread $LIBS"
11214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11215 /* end confdefs.h. */
11216
11217 /* Override any GCC internal prototype to avoid an error.
11218 Use char because int might match the return type of a GCC
11219 builtin and then its argument prototype would still apply. */
11220 #ifdef __cplusplus
11221 extern "C"
11222 #endif
11223 char sem_init ();
11224 int
11225 main ()
11226 {
11227 return sem_init ();
11228 ;
11229 return 0;
11230 }
11231 _ACEOF
11232 if ac_fn_c_try_link "$LINENO"; then :
11233 ac_cv_lib_pthread_sem_init=yes
11234 else
11235 ac_cv_lib_pthread_sem_init=no
11236 fi
11237 rm -f core conftest.err conftest.$ac_objext \
11238 conftest$ac_exeext conftest.$ac_ext
11239 LIBS=$ac_check_lib_save_LIBS
11240 fi
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11242 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11243 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
11244 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11245
11246 SEM_INIT_LIB=-lpthread
11247 else
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11249 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11250 if ${ac_cv_lib_rt_sem_init+:} false; then :
11251 $as_echo_n "(cached) " >&6
11252 else
11253 ac_check_lib_save_LIBS=$LIBS
11254 LIBS="-lrt $LIBS"
11255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11256 /* end confdefs.h. */
11257
11258 /* Override any GCC internal prototype to avoid an error.
11259 Use char because int might match the return type of a GCC
11260 builtin and then its argument prototype would still apply. */
11261 #ifdef __cplusplus
11262 extern "C"
11263 #endif
11264 char sem_init ();
11265 int
11266 main ()
11267 {
11268 return sem_init ();
11269 ;
11270 return 0;
11271 }
11272 _ACEOF
11273 if ac_fn_c_try_link "$LINENO"; then :
11274 ac_cv_lib_rt_sem_init=yes
11275 else
11276 ac_cv_lib_rt_sem_init=no
11277 fi
11278 rm -f core conftest.err conftest.$ac_objext \
11279 conftest$ac_exeext conftest.$ac_ext
11280 LIBS=$ac_check_lib_save_LIBS
11281 fi
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11283 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11284 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
11285 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11286
11287 SEM_INIT_LIB=-lrt
11288 else
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11290 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11291 if ${ac_cv_lib_posix4_sem_init+:} false; then :
11292 $as_echo_n "(cached) " >&6
11293 else
11294 ac_check_lib_save_LIBS=$LIBS
11295 LIBS="-lposix4 $LIBS"
11296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11297 /* end confdefs.h. */
11298
11299 /* Override any GCC internal prototype to avoid an error.
11300 Use char because int might match the return type of a GCC
11301 builtin and then its argument prototype would still apply. */
11302 #ifdef __cplusplus
11303 extern "C"
11304 #endif
11305 char sem_init ();
11306 int
11307 main ()
11308 {
11309 return sem_init ();
11310 ;
11311 return 0;
11312 }
11313 _ACEOF
11314 if ac_fn_c_try_link "$LINENO"; then :
11315 ac_cv_lib_posix4_sem_init=yes
11316 else
11317 ac_cv_lib_posix4_sem_init=no
11318 fi
11319 rm -f core conftest.err conftest.$ac_objext \
11320 conftest$ac_exeext conftest.$ac_ext
11321 LIBS=$ac_check_lib_save_LIBS
11322 fi
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11324 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11325 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
11326 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11327
11328 SEM_INIT_LIB=-lposix4
11329 fi
11330
11331 fi
11332
11333 fi
11334
11335 fi
11336
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11338 $as_echo_n "checking for unified diff option... " >&6; }
11339 if diff -u $0 $0 > /dev/null 2>&1 ; then
11340 UNI_DIFF_OPTS=-u
11341 else
11342 UNI_DIFF_OPTS=-c
11343 fi
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11345 $as_echo "$UNI_DIFF_OPTS" >&6; }
11346
11347 case "$host_os" in
11348 linux*)
11349
11350 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11351
11352 ;;
11353 esac
11354 LINUX_CMT="#"
11355 CYGWIN_CMT="#"
11356 UNIX_CMT=
11357 case "$host_os" in
11358 linux*)
11359 LINUX_CMT=
11360 ;;
11361 cygwin)
11362 CYGWIN_CMT=
11363 UNIX_CMT="#"
11364 ;;
11365 esac
11366
11367
11368
11369 case "$host_os" in
11370 linux* | gnu* | k*bsd*-gnu)
11371 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11372 root_prefix="";
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
11374 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
11375 fi
11376 ;;
11377 esac
11378 case "$host_os" in
11379 linux* | gnu* | k*bsd*-gnu)
11380 if test "$prefix" = NONE ; then
11381 prefix="/usr";
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
11383 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
11384 if test "$mandir" = '${prefix}/man' ; then
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
11386 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
11387 mandir=/usr/share/man
11388 fi
11389 fi
11390 ;;
11391 esac
11392 if test "$root_prefix" = NONE ; then
11393 if test "$prefix" = NONE ; then
11394 root_prefix="$ac_default_prefix"
11395 else
11396 root_prefix="$prefix"
11397 fi
11398 root_bindir=$bindir
11399 root_sbindir=$sbindir
11400 root_libdir=$libdir
11401 root_sysconfdir=$sysconfdir
11402 else
11403 root_bindir='${root_prefix}/bin'
11404 root_sbindir='${root_prefix}/sbin'
11405 root_libdir='${root_prefix}/lib'
11406 root_sysconfdir='${root_prefix}/etc'
11407 fi
11408 if test "$bindir" != '${exec_prefix}/bin'; then
11409 root_bindir=$bindir
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11411 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11412 fi
11413 if test "$sbindir" != '${exec_prefix}/sbin'; then
11414 root_sbindir=$sbindir
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11416 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11417 fi
11418 if test "$libdir" != '${exec_prefix}/lib'; then
11419 root_libdir=$libdir
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11421 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11422 fi
11423 if test "$sysconfdir" != '${prefix}/etc'; then
11424 root_sysconfdir=$sysconfdir
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11426 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11427 fi
11428
11429
11430
11431
11432
11433
11434 # Check whether --with-multiarch was given.
11435 if test "${with_multiarch+set}" = set; then :
11436 withval=$with_multiarch; libdir=$libdir/$withval
11437 root_libdir=$root_libdir/$withval
11438
11439 fi
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
11441 $as_echo_n "checking whether we can link with -static... " >&6; }
11442 if ${ac_cv_e2fsprogs_use_static+:} false; then :
11443 $as_echo_n "(cached) " >&6
11444 else
11445 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11447 /* end confdefs.h. */
11448 #include <stdio.h>
11449 int
11450 main ()
11451 {
11452 fflush(stdout);
11453 ;
11454 return 0;
11455 }
11456 _ACEOF
11457 if ac_fn_c_try_link "$LINENO"; then :
11458 ac_cv_e2fsprogs_use_static=yes
11459 else
11460 ac_cv_e2fsprogs_use_static=no
11461 fi
11462 rm -f core conftest.err conftest.$ac_objext \
11463 conftest$ac_exeext conftest.$ac_ext
11464 LDFLAGS=$SAVE_LDFLAGS
11465 fi
11466
11467 case "$host_os" in
11468 solaris2.*)
11469 ac_cv_e2fsprogs_use_static=no
11470 ;;
11471 esac
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11473 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11474 LDFLAG_STATIC=
11475 if test $ac_cv_e2fsprogs_use_static = yes; then
11476 LDFLAG_STATIC=-static
11477 fi
11478
11479 case "$host_os" in
11480 darwin*)
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11482 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11483
11484 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11485
11486 ;;
11487 esac
11488 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11489 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11490
11491
11492 if test "$cross_compiling" = yes ; then
11493 DO_TEST_SUITE=
11494 else
11495 DO_TEST_SUITE=check
11496 fi
11497
11498 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11499 if test -n "$CPPFLAGS" ; then
11500 INCLUDES="$INCLUDES $CPPFLAGS"
11501 fi
11502 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11503 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
11504 fi
11505
11506 if test $cross_compiling = no; then
11507 BUILD_CFLAGS="$CFLAGS $CPPFLAGS"
11508 BUILD_LDFLAGS="$LDFLAGS"
11509 else
11510 BUILD_CFLAGS=
11511 BUILD_LDFLAGS=
11512 fi
11513
11514
11515 test -d lib || mkdir lib
11516 test -d include || mkdir include
11517 test -d include/linux || mkdir include/linux
11518 test -d include/asm || mkdir include/asm
11519 for i in MCONFIG Makefile e2fsprogs.spec \
11520 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
11521 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11522 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11523 lib/uuid/Makefile lib/uuid/uuid_types.h \
11524 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
11525 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11526 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11527 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11528 debugfs/Makefile tests/Makefile tests/progs/Makefile \
11529 resize/Makefile doc/Makefile intl/Makefile \
11530 intl/libgnuintl.h po/Makefile.in ; do
11531 if test -d `dirname ${srcdir}/$i` ; then
11532 outlist="$outlist $i"
11533 fi
11534 done
11535 ac_config_files="$ac_config_files $outlist"
11536
11537 cat >confcache <<\_ACEOF
11538 # This file is a shell script that caches the results of configure
11539 # tests run on this system so they can be shared between configure
11540 # scripts and configure runs, see configure's option --config-cache.
11541 # It is not useful on other systems. If it contains results you don't
11542 # want to keep, you may remove or edit it.
11543 #
11544 # config.status only pays attention to the cache file if you give it
11545 # the --recheck option to rerun configure.
11546 #
11547 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11548 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11549 # following values.
11550
11551 _ACEOF
11552
11553 # The following way of writing the cache mishandles newlines in values,
11554 # but we know of no workaround that is simple, portable, and efficient.
11555 # So, we kill variables containing newlines.
11556 # Ultrix sh set writes to stderr and can't be redirected directly,
11557 # and sets the high bit in the cache file unless we assign to the vars.
11558 (
11559 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11560 eval ac_val=\$$ac_var
11561 case $ac_val in #(
11562 *${as_nl}*)
11563 case $ac_var in #(
11564 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11565 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11566 esac
11567 case $ac_var in #(
11568 _ | IFS | as_nl) ;; #(
11569 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11570 *) { eval $ac_var=; unset $ac_var;} ;;
11571 esac ;;
11572 esac
11573 done
11574
11575 (set) 2>&1 |
11576 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11577 *${as_nl}ac_space=\ *)
11578 # `set' does not quote correctly, so add quotes: double-quote
11579 # substitution turns \\\\ into \\, and sed turns \\ into \.
11580 sed -n \
11581 "s/'/'\\\\''/g;
11582 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11583 ;; #(
11584 *)
11585 # `set' quotes correctly as required by POSIX, so do not add quotes.
11586 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11587 ;;
11588 esac |
11589 sort
11590 ) |
11591 sed '
11592 /^ac_cv_env_/b end
11593 t clear
11594 :clear
11595 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11596 t end
11597 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11598 :end' >>confcache
11599 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11600 if test -w "$cache_file"; then
11601 if test "x$cache_file" != "x/dev/null"; then
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11603 $as_echo "$as_me: updating cache $cache_file" >&6;}
11604 if test ! -f "$cache_file" || test -h "$cache_file"; then
11605 cat confcache >"$cache_file"
11606 else
11607 case $cache_file in #(
11608 */* | ?:*)
11609 mv -f confcache "$cache_file"$$ &&
11610 mv -f "$cache_file"$$ "$cache_file" ;; #(
11611 *)
11612 mv -f confcache "$cache_file" ;;
11613 esac
11614 fi
11615 fi
11616 else
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11618 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11619 fi
11620 fi
11621 rm -f confcache
11622
11623 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11624 # Let make expand exec_prefix.
11625 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11626
11627 DEFS=-DHAVE_CONFIG_H
11628
11629 ac_libobjs=
11630 ac_ltlibobjs=
11631 U=
11632 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11633 # 1. Remove the extension, and $U if already installed.
11634 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11635 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11636 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11637 # will be set to the directory where LIBOBJS objects are built.
11638 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11639 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11640 done
11641 LIBOBJS=$ac_libobjs
11642
11643 LTLIBOBJS=$ac_ltlibobjs
11644
11645
11646
11647
11648 : "${CONFIG_STATUS=./config.status}"
11649 ac_write_fail=0
11650 ac_clean_files_save=$ac_clean_files
11651 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11653 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11654 as_write_fail=0
11655 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11656 #! $SHELL
11657 # Generated by $as_me.
11658 # Run this file to recreate the current configuration.
11659 # Compiler output produced by configure, useful for debugging
11660 # configure, is in config.log if it exists.
11661
11662 debug=false
11663 ac_cs_recheck=false
11664 ac_cs_silent=false
11665
11666 SHELL=\${CONFIG_SHELL-$SHELL}
11667 export SHELL
11668 _ASEOF
11669 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11670 ## -------------------- ##
11671 ## M4sh Initialization. ##
11672 ## -------------------- ##
11673
11674 # Be more Bourne compatible
11675 DUALCASE=1; export DUALCASE # for MKS sh
11676 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11677 emulate sh
11678 NULLCMD=:
11679 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11680 # is contrary to our usage. Disable this feature.
11681 alias -g '${1+"$@"}'='"$@"'
11682 setopt NO_GLOB_SUBST
11683 else
11684 case `(set -o) 2>/dev/null` in #(
11685 *posix*) :
11686 set -o posix ;; #(
11687 *) :
11688 ;;
11689 esac
11690 fi
11691
11692
11693 as_nl='
11694 '
11695 export as_nl
11696 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11697 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11698 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11699 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11700 # Prefer a ksh shell builtin over an external printf program on Solaris,
11701 # but without wasting forks for bash or zsh.
11702 if test -z "$BASH_VERSION$ZSH_VERSION" \
11703 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11704 as_echo='print -r --'
11705 as_echo_n='print -rn --'
11706 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11707 as_echo='printf %s\n'
11708 as_echo_n='printf %s'
11709 else
11710 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11711 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11712 as_echo_n='/usr/ucb/echo -n'
11713 else
11714 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11715 as_echo_n_body='eval
11716 arg=$1;
11717 case $arg in #(
11718 *"$as_nl"*)
11719 expr "X$arg" : "X\\(.*\\)$as_nl";
11720 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11721 esac;
11722 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11723 '
11724 export as_echo_n_body
11725 as_echo_n='sh -c $as_echo_n_body as_echo'
11726 fi
11727 export as_echo_body
11728 as_echo='sh -c $as_echo_body as_echo'
11729 fi
11730
11731 # The user is always right.
11732 if test "${PATH_SEPARATOR+set}" != set; then
11733 PATH_SEPARATOR=:
11734 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11735 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11736 PATH_SEPARATOR=';'
11737 }
11738 fi
11739
11740
11741 # IFS
11742 # We need space, tab and new line, in precisely that order. Quoting is
11743 # there to prevent editors from complaining about space-tab.
11744 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11745 # splitting by setting IFS to empty value.)
11746 IFS=" "" $as_nl"
11747
11748 # Find who we are. Look in the path if we contain no directory separator.
11749 as_myself=
11750 case $0 in #((
11751 *[\\/]* ) as_myself=$0 ;;
11752 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11753 for as_dir in $PATH
11754 do
11755 IFS=$as_save_IFS
11756 test -z "$as_dir" && as_dir=.
11757 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11758 done
11759 IFS=$as_save_IFS
11760
11761 ;;
11762 esac
11763 # We did not find ourselves, most probably we were run as `sh COMMAND'
11764 # in which case we are not to be found in the path.
11765 if test "x$as_myself" = x; then
11766 as_myself=$0
11767 fi
11768 if test ! -f "$as_myself"; then
11769 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11770 exit 1
11771 fi
11772
11773 # Unset variables that we do not need and which cause bugs (e.g. in
11774 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11775 # suppresses any "Segmentation fault" message there. '((' could
11776 # trigger a bug in pdksh 5.2.14.
11777 for as_var in BASH_ENV ENV MAIL MAILPATH
11778 do eval test x\${$as_var+set} = xset \
11779 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11780 done
11781 PS1='$ '
11782 PS2='> '
11783 PS4='+ '
11784
11785 # NLS nuisances.
11786 LC_ALL=C
11787 export LC_ALL
11788 LANGUAGE=C
11789 export LANGUAGE
11790
11791 # CDPATH.
11792 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11793
11794
11795 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11796 # ----------------------------------------
11797 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11798 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11799 # script with STATUS, using 1 if that was 0.
11800 as_fn_error ()
11801 {
11802 as_status=$1; test $as_status -eq 0 && as_status=1
11803 if test "$4"; then
11804 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11805 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11806 fi
11807 $as_echo "$as_me: error: $2" >&2
11808 as_fn_exit $as_status
11809 } # as_fn_error
11810
11811
11812 # as_fn_set_status STATUS
11813 # -----------------------
11814 # Set $? to STATUS, without forking.
11815 as_fn_set_status ()
11816 {
11817 return $1
11818 } # as_fn_set_status
11819
11820 # as_fn_exit STATUS
11821 # -----------------
11822 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11823 as_fn_exit ()
11824 {
11825 set +e
11826 as_fn_set_status $1
11827 exit $1
11828 } # as_fn_exit
11829
11830 # as_fn_unset VAR
11831 # ---------------
11832 # Portably unset VAR.
11833 as_fn_unset ()
11834 {
11835 { eval $1=; unset $1;}
11836 }
11837 as_unset=as_fn_unset
11838 # as_fn_append VAR VALUE
11839 # ----------------------
11840 # Append the text in VALUE to the end of the definition contained in VAR. Take
11841 # advantage of any shell optimizations that allow amortized linear growth over
11842 # repeated appends, instead of the typical quadratic growth present in naive
11843 # implementations.
11844 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11845 eval 'as_fn_append ()
11846 {
11847 eval $1+=\$2
11848 }'
11849 else
11850 as_fn_append ()
11851 {
11852 eval $1=\$$1\$2
11853 }
11854 fi # as_fn_append
11855
11856 # as_fn_arith ARG...
11857 # ------------------
11858 # Perform arithmetic evaluation on the ARGs, and store the result in the
11859 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11860 # must be portable across $(()) and expr.
11861 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11862 eval 'as_fn_arith ()
11863 {
11864 as_val=$(( $* ))
11865 }'
11866 else
11867 as_fn_arith ()
11868 {
11869 as_val=`expr "$@" || test $? -eq 1`
11870 }
11871 fi # as_fn_arith
11872
11873
11874 if expr a : '\(a\)' >/dev/null 2>&1 &&
11875 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11876 as_expr=expr
11877 else
11878 as_expr=false
11879 fi
11880
11881 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11882 as_basename=basename
11883 else
11884 as_basename=false
11885 fi
11886
11887 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11888 as_dirname=dirname
11889 else
11890 as_dirname=false
11891 fi
11892
11893 as_me=`$as_basename -- "$0" ||
11894 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11895 X"$0" : 'X\(//\)$' \| \
11896 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11897 $as_echo X/"$0" |
11898 sed '/^.*\/\([^/][^/]*\)\/*$/{
11899 s//\1/
11900 q
11901 }
11902 /^X\/\(\/\/\)$/{
11903 s//\1/
11904 q
11905 }
11906 /^X\/\(\/\).*/{
11907 s//\1/
11908 q
11909 }
11910 s/.*/./; q'`
11911
11912 # Avoid depending upon Character Ranges.
11913 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11914 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11915 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11916 as_cr_digits='0123456789'
11917 as_cr_alnum=$as_cr_Letters$as_cr_digits
11918
11919 ECHO_C= ECHO_N= ECHO_T=
11920 case `echo -n x` in #(((((
11921 -n*)
11922 case `echo 'xy\c'` in
11923 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11924 xy) ECHO_C='\c';;
11925 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11926 ECHO_T=' ';;
11927 esac;;
11928 *)
11929 ECHO_N='-n';;
11930 esac
11931
11932 rm -f conf$$ conf$$.exe conf$$.file
11933 if test -d conf$$.dir; then
11934 rm -f conf$$.dir/conf$$.file
11935 else
11936 rm -f conf$$.dir
11937 mkdir conf$$.dir 2>/dev/null
11938 fi
11939 if (echo >conf$$.file) 2>/dev/null; then
11940 if ln -s conf$$.file conf$$ 2>/dev/null; then
11941 as_ln_s='ln -s'
11942 # ... but there are two gotchas:
11943 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11944 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11945 # In both cases, we have to default to `cp -pR'.
11946 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11947 as_ln_s='cp -pR'
11948 elif ln conf$$.file conf$$ 2>/dev/null; then
11949 as_ln_s=ln
11950 else
11951 as_ln_s='cp -pR'
11952 fi
11953 else
11954 as_ln_s='cp -pR'
11955 fi
11956 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11957 rmdir conf$$.dir 2>/dev/null
11958
11959
11960 # as_fn_mkdir_p
11961 # -------------
11962 # Create "$as_dir" as a directory, including parents if necessary.
11963 as_fn_mkdir_p ()
11964 {
11965
11966 case $as_dir in #(
11967 -*) as_dir=./$as_dir;;
11968 esac
11969 test -d "$as_dir" || eval $as_mkdir_p || {
11970 as_dirs=
11971 while :; do
11972 case $as_dir in #(
11973 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11974 *) as_qdir=$as_dir;;
11975 esac
11976 as_dirs="'$as_qdir' $as_dirs"
11977 as_dir=`$as_dirname -- "$as_dir" ||
11978 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11979 X"$as_dir" : 'X\(//\)[^/]' \| \
11980 X"$as_dir" : 'X\(//\)$' \| \
11981 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11982 $as_echo X"$as_dir" |
11983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11984 s//\1/
11985 q
11986 }
11987 /^X\(\/\/\)[^/].*/{
11988 s//\1/
11989 q
11990 }
11991 /^X\(\/\/\)$/{
11992 s//\1/
11993 q
11994 }
11995 /^X\(\/\).*/{
11996 s//\1/
11997 q
11998 }
11999 s/.*/./; q'`
12000 test -d "$as_dir" && break
12001 done
12002 test -z "$as_dirs" || eval "mkdir $as_dirs"
12003 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12004
12005
12006 } # as_fn_mkdir_p
12007 if mkdir -p . 2>/dev/null; then
12008 as_mkdir_p='mkdir -p "$as_dir"'
12009 else
12010 test -d ./-p && rmdir ./-p
12011 as_mkdir_p=false
12012 fi
12013
12014
12015 # as_fn_executable_p FILE
12016 # -----------------------
12017 # Test if FILE is an executable regular file.
12018 as_fn_executable_p ()
12019 {
12020 test -f "$1" && test -x "$1"
12021 } # as_fn_executable_p
12022 as_test_x='test -x'
12023 as_executable_p=as_fn_executable_p
12024
12025 # Sed expression to map a string onto a valid CPP name.
12026 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12027
12028 # Sed expression to map a string onto a valid variable name.
12029 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12030
12031
12032 exec 6>&1
12033 ## ----------------------------------- ##
12034 ## Main body of $CONFIG_STATUS script. ##
12035 ## ----------------------------------- ##
12036 _ASEOF
12037 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12038
12039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12040 # Save the log message, to keep $0 and so on meaningful, and to
12041 # report actual input values of CONFIG_FILES etc. instead of their
12042 # values after options handling.
12043 ac_log="
12044 This file was extended by $as_me, which was
12045 generated by GNU Autoconf 2.69. Invocation command line was
12046
12047 CONFIG_FILES = $CONFIG_FILES
12048 CONFIG_HEADERS = $CONFIG_HEADERS
12049 CONFIG_LINKS = $CONFIG_LINKS
12050 CONFIG_COMMANDS = $CONFIG_COMMANDS
12051 $ $0 $@
12052
12053 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12054 "
12055
12056 _ACEOF
12057
12058 case $ac_config_files in *"
12059 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12060 esac
12061
12062 case $ac_config_headers in *"
12063 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12064 esac
12065
12066
12067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12068 # Files that config.status was made for.
12069 config_files="$ac_config_files"
12070 config_headers="$ac_config_headers"
12071 config_commands="$ac_config_commands"
12072
12073 _ACEOF
12074
12075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12076 ac_cs_usage="\
12077 \`$as_me' instantiates files and other configuration actions
12078 from templates according to the current configuration. Unless the files
12079 and actions are specified as TAGs, all are instantiated by default.
12080
12081 Usage: $0 [OPTION]... [TAG]...
12082
12083 -h, --help print this help, then exit
12084 -V, --version print version number and configuration settings, then exit
12085 --config print configuration, then exit
12086 -q, --quiet, --silent
12087 do not print progress messages
12088 -d, --debug don't remove temporary files
12089 --recheck update $as_me by reconfiguring in the same conditions
12090 --file=FILE[:TEMPLATE]
12091 instantiate the configuration file FILE
12092 --header=FILE[:TEMPLATE]
12093 instantiate the configuration header FILE
12094
12095 Configuration files:
12096 $config_files
12097
12098 Configuration headers:
12099 $config_headers
12100
12101 Configuration commands:
12102 $config_commands
12103
12104 Report bugs to the package provider."
12105
12106 _ACEOF
12107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12108 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12109 ac_cs_version="\\
12110 config.status
12111 configured by $0, generated by GNU Autoconf 2.69,
12112 with options \\"\$ac_cs_config\\"
12113
12114 Copyright (C) 2012 Free Software Foundation, Inc.
12115 This config.status script is free software; the Free Software Foundation
12116 gives unlimited permission to copy, distribute and modify it."
12117
12118 ac_pwd='$ac_pwd'
12119 srcdir='$srcdir'
12120 INSTALL='$INSTALL'
12121 AWK='$AWK'
12122 test -n "\$AWK" || AWK=awk
12123 _ACEOF
12124
12125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12126 # The default lists apply if the user does not specify any file.
12127 ac_need_defaults=:
12128 while test $# != 0
12129 do
12130 case $1 in
12131 --*=?*)
12132 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12133 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12134 ac_shift=:
12135 ;;
12136 --*=)
12137 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12138 ac_optarg=
12139 ac_shift=:
12140 ;;
12141 *)
12142 ac_option=$1
12143 ac_optarg=$2
12144 ac_shift=shift
12145 ;;
12146 esac
12147
12148 case $ac_option in
12149 # Handling of the options.
12150 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12151 ac_cs_recheck=: ;;
12152 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12153 $as_echo "$ac_cs_version"; exit ;;
12154 --config | --confi | --conf | --con | --co | --c )
12155 $as_echo "$ac_cs_config"; exit ;;
12156 --debug | --debu | --deb | --de | --d | -d )
12157 debug=: ;;
12158 --file | --fil | --fi | --f )
12159 $ac_shift
12160 case $ac_optarg in
12161 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12162 '') as_fn_error $? "missing file argument" ;;
12163 esac
12164 as_fn_append CONFIG_FILES " '$ac_optarg'"
12165 ac_need_defaults=false;;
12166 --header | --heade | --head | --hea )
12167 $ac_shift
12168 case $ac_optarg in
12169 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12170 esac
12171 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12172 ac_need_defaults=false;;
12173 --he | --h)
12174 # Conflict between --help and --header
12175 as_fn_error $? "ambiguous option: \`$1'
12176 Try \`$0 --help' for more information.";;
12177 --help | --hel | -h )
12178 $as_echo "$ac_cs_usage"; exit ;;
12179 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12180 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12181 ac_cs_silent=: ;;
12182
12183 # This is an error.
12184 -*) as_fn_error $? "unrecognized option: \`$1'
12185 Try \`$0 --help' for more information." ;;
12186
12187 *) as_fn_append ac_config_targets " $1"
12188 ac_need_defaults=false ;;
12189
12190 esac
12191 shift
12192 done
12193
12194 ac_configure_extra_args=
12195
12196 if $ac_cs_silent; then
12197 exec 6>/dev/null
12198 ac_configure_extra_args="$ac_configure_extra_args --silent"
12199 fi
12200
12201 _ACEOF
12202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12203 if \$ac_cs_recheck; then
12204 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12205 shift
12206 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12207 CONFIG_SHELL='$SHELL'
12208 export CONFIG_SHELL
12209 exec "\$@"
12210 fi
12211
12212 _ACEOF
12213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12214 exec 5>>config.log
12215 {
12216 echo
12217 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12218 ## Running $as_me. ##
12219 _ASBOX
12220 $as_echo "$ac_log"
12221 } >&5
12222
12223 _ACEOF
12224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12225 #
12226 # INIT-COMMANDS
12227 #
12228 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12229 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12230 # from automake.
12231 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12232 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12233 LINGUAS="${LINGUAS-%UNSET%}"
12234
12235
12236 _ACEOF
12237
12238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12239
12240 # Handling of arguments.
12241 for ac_config_target in $ac_config_targets
12242 do
12243 case $ac_config_target in
12244 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
12245 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12246 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12247
12248 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12249 esac
12250 done
12251
12252
12253 # If the user did not use the arguments to specify the items to instantiate,
12254 # then the envvar interface is used. Set only those that are not.
12255 # We use the long form for the default assignment because of an extremely
12256 # bizarre bug on SunOS 4.1.3.
12257 if $ac_need_defaults; then
12258 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12259 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12260 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12261 fi
12262
12263 # Have a temporary directory for convenience. Make it in the build tree
12264 # simply because there is no reason against having it here, and in addition,
12265 # creating and moving files from /tmp can sometimes cause problems.
12266 # Hook for its removal unless debugging.
12267 # Note that there is a small window in which the directory will not be cleaned:
12268 # after its creation but before its name has been assigned to `$tmp'.
12269 $debug ||
12270 {
12271 tmp= ac_tmp=
12272 trap 'exit_status=$?
12273 : "${ac_tmp:=$tmp}"
12274 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12275 ' 0
12276 trap 'as_fn_exit 1' 1 2 13 15
12277 }
12278 # Create a (secure) tmp directory for tmp files.
12279
12280 {
12281 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12282 test -d "$tmp"
12283 } ||
12284 {
12285 tmp=./conf$$-$RANDOM
12286 (umask 077 && mkdir "$tmp")
12287 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12288 ac_tmp=$tmp
12289
12290 # Set up the scripts for CONFIG_FILES section.
12291 # No need to generate them if there are no CONFIG_FILES.
12292 # This happens for instance with `./config.status config.h'.
12293 if test -n "$CONFIG_FILES"; then
12294
12295 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12296 ac_cs_awk_getline=:
12297 ac_cs_awk_pipe_init=
12298 ac_cs_awk_read_file='
12299 while ((getline aline < (F[key])) > 0)
12300 print(aline)
12301 close(F[key])'
12302 ac_cs_awk_pipe_fini=
12303 else
12304 ac_cs_awk_getline=false
12305 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12306 ac_cs_awk_read_file='
12307 print "|#_!!_#|"
12308 print "cat " F[key] " &&"
12309 '$ac_cs_awk_pipe_init
12310 # The final `:' finishes the AND list.
12311 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12312 fi
12313 ac_cr=`echo X | tr X '\015'`
12314 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12315 # But we know of no other shell where ac_cr would be empty at this
12316 # point, so we can use a bashism as a fallback.
12317 if test "x$ac_cr" = x; then
12318 eval ac_cr=\$\'\\r\'
12319 fi
12320 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12321 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12322 ac_cs_awk_cr='\\r'
12323 else
12324 ac_cs_awk_cr=$ac_cr
12325 fi
12326
12327 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12328 _ACEOF
12329
12330 # Create commands to substitute file output variables.
12331 {
12332 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12333 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
12334 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12335 echo "_ACAWK" &&
12336 echo "_ACEOF"
12337 } >conf$$files.sh &&
12338 . ./conf$$files.sh ||
12339 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12340 rm -f conf$$files.sh
12341
12342 {
12343 echo "cat >conf$$subs.awk <<_ACEOF" &&
12344 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12345 echo "_ACEOF"
12346 } >conf$$subs.sh ||
12347 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12348 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12349 ac_delim='%!_!# '
12350 for ac_last_try in false false false false false :; do
12351 . ./conf$$subs.sh ||
12352 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12353
12354 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12355 if test $ac_delim_n = $ac_delim_num; then
12356 break
12357 elif $ac_last_try; then
12358 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12359 else
12360 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12361 fi
12362 done
12363 rm -f conf$$subs.sh
12364
12365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12366 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12367 _ACEOF
12368 sed -n '
12369 h
12370 s/^/S["/; s/!.*/"]=/
12371 p
12372 g
12373 s/^[^!]*!//
12374 :repl
12375 t repl
12376 s/'"$ac_delim"'$//
12377 t delim
12378 :nl
12379 h
12380 s/\(.\{148\}\)..*/\1/
12381 t more1
12382 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12383 p
12384 n
12385 b repl
12386 :more1
12387 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12388 p
12389 g
12390 s/.\{148\}//
12391 t nl
12392 :delim
12393 h
12394 s/\(.\{148\}\)..*/\1/
12395 t more2
12396 s/["\\]/\\&/g; s/^/"/; s/$/"/
12397 p
12398 b
12399 :more2
12400 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12401 p
12402 g
12403 s/.\{148\}//
12404 t delim
12405 ' <conf$$subs.awk | sed '
12406 /^[^""]/{
12407 N
12408 s/\n//
12409 }
12410 ' >>$CONFIG_STATUS || ac_write_fail=1
12411 rm -f conf$$subs.awk
12412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12413 _ACAWK
12414 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12415 for (key in S) S_is_set[key] = 1
12416 FS = "\a"
12417 \$ac_cs_awk_pipe_init
12418 }
12419 {
12420 line = $ 0
12421 nfields = split(line, field, "@")
12422 substed = 0
12423 len = length(field[1])
12424 for (i = 2; i < nfields; i++) {
12425 key = field[i]
12426 keylen = length(key)
12427 if (S_is_set[key]) {
12428 value = S[key]
12429 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12430 len += length(value) + length(field[++i])
12431 substed = 1
12432 } else
12433 len += 1 + keylen
12434 }
12435 if (nfields == 3 && !substed) {
12436 key = field[2]
12437 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12438 \$ac_cs_awk_read_file
12439 next
12440 }
12441 }
12442 print line
12443 }
12444 \$ac_cs_awk_pipe_fini
12445 _ACAWK
12446 _ACEOF
12447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12448 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12449 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12450 else
12451 cat
12452 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12453 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12454 _ACEOF
12455
12456 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12457 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12458 # trailing colons and then remove the whole line if VPATH becomes empty
12459 # (actually we leave an empty line to preserve line numbers).
12460 if test "x$srcdir" = x.; then
12461 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12462 h
12463 s///
12464 s/^/:/
12465 s/[ ]*$/:/
12466 s/:\$(srcdir):/:/g
12467 s/:\${srcdir}:/:/g
12468 s/:@srcdir@:/:/g
12469 s/^:*//
12470 s/:*$//
12471 x
12472 s/\(=[ ]*\).*/\1/
12473 G
12474 s/\n//
12475 s/^[^=]*=[ ]*$//
12476 }'
12477 fi
12478
12479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12480 fi # test -n "$CONFIG_FILES"
12481
12482 # Set up the scripts for CONFIG_HEADERS section.
12483 # No need to generate them if there are no CONFIG_HEADERS.
12484 # This happens for instance with `./config.status Makefile'.
12485 if test -n "$CONFIG_HEADERS"; then
12486 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12487 BEGIN {
12488 _ACEOF
12489
12490 # Transform confdefs.h into an awk script `defines.awk', embedded as
12491 # here-document in config.status, that substitutes the proper values into
12492 # config.h.in to produce config.h.
12493
12494 # Create a delimiter string that does not exist in confdefs.h, to ease
12495 # handling of long lines.
12496 ac_delim='%!_!# '
12497 for ac_last_try in false false :; do
12498 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12499 if test -z "$ac_tt"; then
12500 break
12501 elif $ac_last_try; then
12502 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12503 else
12504 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12505 fi
12506 done
12507
12508 # For the awk script, D is an array of macro values keyed by name,
12509 # likewise P contains macro parameters if any. Preserve backslash
12510 # newline sequences.
12511
12512 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12513 sed -n '
12514 s/.\{148\}/&'"$ac_delim"'/g
12515 t rset
12516 :rset
12517 s/^[ ]*#[ ]*define[ ][ ]*/ /
12518 t def
12519 d
12520 :def
12521 s/\\$//
12522 t bsnl
12523 s/["\\]/\\&/g
12524 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12525 D["\1"]=" \3"/p
12526 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12527 d
12528 :bsnl
12529 s/["\\]/\\&/g
12530 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12531 D["\1"]=" \3\\\\\\n"\\/p
12532 t cont
12533 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12534 t cont
12535 d
12536 :cont
12537 n
12538 s/.\{148\}/&'"$ac_delim"'/g
12539 t clear
12540 :clear
12541 s/\\$//
12542 t bsnlc
12543 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12544 d
12545 :bsnlc
12546 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12547 b cont
12548 ' <confdefs.h | sed '
12549 s/'"$ac_delim"'/"\\\
12550 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12551
12552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12553 for (key in D) D_is_set[key] = 1
12554 FS = "\a"
12555 }
12556 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12557 line = \$ 0
12558 split(line, arg, " ")
12559 if (arg[1] == "#") {
12560 defundef = arg[2]
12561 mac1 = arg[3]
12562 } else {
12563 defundef = substr(arg[1], 2)
12564 mac1 = arg[2]
12565 }
12566 split(mac1, mac2, "(") #)
12567 macro = mac2[1]
12568 prefix = substr(line, 1, index(line, defundef) - 1)
12569 if (D_is_set[macro]) {
12570 # Preserve the white space surrounding the "#".
12571 print prefix "define", macro P[macro] D[macro]
12572 next
12573 } else {
12574 # Replace #undef with comments. This is necessary, for example,
12575 # in the case of _POSIX_SOURCE, which is predefined and required
12576 # on some systems where configure will not decide to define it.
12577 if (defundef == "undef") {
12578 print "/*", prefix defundef, macro, "*/"
12579 next
12580 }
12581 }
12582 }
12583 { print }
12584 _ACAWK
12585 _ACEOF
12586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12587 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12588 fi # test -n "$CONFIG_HEADERS"
12589
12590
12591 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12592 shift
12593 for ac_tag
12594 do
12595 case $ac_tag in
12596 :[FHLC]) ac_mode=$ac_tag; continue;;
12597 esac
12598 case $ac_mode$ac_tag in
12599 :[FHL]*:*);;
12600 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12601 :[FH]-) ac_tag=-:-;;
12602 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12603 esac
12604 ac_save_IFS=$IFS
12605 IFS=:
12606 set x $ac_tag
12607 IFS=$ac_save_IFS
12608 shift
12609 ac_file=$1
12610 shift
12611
12612 case $ac_mode in
12613 :L) ac_source=$1;;
12614 :[FH])
12615 ac_file_inputs=
12616 for ac_f
12617 do
12618 case $ac_f in
12619 -) ac_f="$ac_tmp/stdin";;
12620 *) # Look for the file first in the build tree, then in the source tree
12621 # (if the path is not absolute). The absolute path cannot be DOS-style,
12622 # because $ac_f cannot contain `:'.
12623 test -f "$ac_f" ||
12624 case $ac_f in
12625 [\\/$]*) false;;
12626 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12627 esac ||
12628 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12629 esac
12630 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12631 as_fn_append ac_file_inputs " '$ac_f'"
12632 done
12633
12634 # Let's still pretend it is `configure' which instantiates (i.e., don't
12635 # use $as_me), people would be surprised to read:
12636 # /* config.h. Generated by config.status. */
12637 configure_input='Generated from '`
12638 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12639 `' by configure.'
12640 if test x"$ac_file" != x-; then
12641 configure_input="$ac_file. $configure_input"
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12643 $as_echo "$as_me: creating $ac_file" >&6;}
12644 fi
12645 # Neutralize special characters interpreted by sed in replacement strings.
12646 case $configure_input in #(
12647 *\&* | *\|* | *\\* )
12648 ac_sed_conf_input=`$as_echo "$configure_input" |
12649 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12650 *) ac_sed_conf_input=$configure_input;;
12651 esac
12652
12653 case $ac_tag in
12654 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12655 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12656 esac
12657 ;;
12658 esac
12659
12660 ac_dir=`$as_dirname -- "$ac_file" ||
12661 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12662 X"$ac_file" : 'X\(//\)[^/]' \| \
12663 X"$ac_file" : 'X\(//\)$' \| \
12664 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12665 $as_echo X"$ac_file" |
12666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12667 s//\1/
12668 q
12669 }
12670 /^X\(\/\/\)[^/].*/{
12671 s//\1/
12672 q
12673 }
12674 /^X\(\/\/\)$/{
12675 s//\1/
12676 q
12677 }
12678 /^X\(\/\).*/{
12679 s//\1/
12680 q
12681 }
12682 s/.*/./; q'`
12683 as_dir="$ac_dir"; as_fn_mkdir_p
12684 ac_builddir=.
12685
12686 case "$ac_dir" in
12687 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12688 *)
12689 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12690 # A ".." for each directory in $ac_dir_suffix.
12691 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12692 case $ac_top_builddir_sub in
12693 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12694 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12695 esac ;;
12696 esac
12697 ac_abs_top_builddir=$ac_pwd
12698 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12699 # for backward compatibility:
12700 ac_top_builddir=$ac_top_build_prefix
12701
12702 case $srcdir in
12703 .) # We are building in place.
12704 ac_srcdir=.
12705 ac_top_srcdir=$ac_top_builddir_sub
12706 ac_abs_top_srcdir=$ac_pwd ;;
12707 [\\/]* | ?:[\\/]* ) # Absolute name.
12708 ac_srcdir=$srcdir$ac_dir_suffix;
12709 ac_top_srcdir=$srcdir
12710 ac_abs_top_srcdir=$srcdir ;;
12711 *) # Relative name.
12712 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12713 ac_top_srcdir=$ac_top_build_prefix$srcdir
12714 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12715 esac
12716 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12717
12718
12719 case $ac_mode in
12720 :F)
12721 #
12722 # CONFIG_FILE
12723 #
12724
12725 case $INSTALL in
12726 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12727 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12728 esac
12729 _ACEOF
12730
12731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12732 # If the template does not know about datarootdir, expand it.
12733 # FIXME: This hack should be removed a few years after 2.60.
12734 ac_datarootdir_hack=; ac_datarootdir_seen=
12735 ac_sed_dataroot='
12736 /datarootdir/ {
12737 p
12738 q
12739 }
12740 /@datadir@/p
12741 /@docdir@/p
12742 /@infodir@/p
12743 /@localedir@/p
12744 /@mandir@/p'
12745 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12746 *datarootdir*) ac_datarootdir_seen=yes;;
12747 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12749 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12750 _ACEOF
12751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12752 ac_datarootdir_hack='
12753 s&@datadir@&$datadir&g
12754 s&@docdir@&$docdir&g
12755 s&@infodir@&$infodir&g
12756 s&@localedir@&$localedir&g
12757 s&@mandir@&$mandir&g
12758 s&\\\${datarootdir}&$datarootdir&g' ;;
12759 esac
12760 _ACEOF
12761
12762 # Neutralize VPATH when `$srcdir' = `.'.
12763 # Shell code in configure.ac might set extrasub.
12764 # FIXME: do we really want to maintain this feature?
12765 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12766 ac_sed_extra="$ac_vpsub
12767 $extrasub
12768 _ACEOF
12769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12770 :t
12771 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12772 s|@configure_input@|$ac_sed_conf_input|;t t
12773 s&@top_builddir@&$ac_top_builddir_sub&;t t
12774 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12775 s&@srcdir@&$ac_srcdir&;t t
12776 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12777 s&@top_srcdir@&$ac_top_srcdir&;t t
12778 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12779 s&@builddir@&$ac_builddir&;t t
12780 s&@abs_builddir@&$ac_abs_builddir&;t t
12781 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12782 s&@INSTALL@&$ac_INSTALL&;t t
12783 $ac_datarootdir_hack
12784 "
12785 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12786 if $ac_cs_awk_getline; then
12787 $AWK -f "$ac_tmp/subs.awk"
12788 else
12789 $AWK -f "$ac_tmp/subs.awk" | $SHELL
12790 fi \
12791 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12792
12793 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12794 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12795 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12796 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12798 which seems to be undefined. Please make sure it is defined" >&5
12799 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12800 which seems to be undefined. Please make sure it is defined" >&2;}
12801
12802 rm -f "$ac_tmp/stdin"
12803 case $ac_file in
12804 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12805 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12806 esac \
12807 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12808 ;;
12809 :H)
12810 #
12811 # CONFIG_HEADER
12812 #
12813 if test x"$ac_file" != x-; then
12814 {
12815 $as_echo "/* $configure_input */" \
12816 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12817 } >"$ac_tmp/config.h" \
12818 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12819 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12821 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12822 else
12823 rm -f "$ac_file"
12824 mv "$ac_tmp/config.h" "$ac_file" \
12825 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12826 fi
12827 else
12828 $as_echo "/* $configure_input */" \
12829 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12830 || as_fn_error $? "could not create -" "$LINENO" 5
12831 fi
12832 ;;
12833
12834 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12835 $as_echo "$as_me: executing $ac_file commands" >&6;}
12836 ;;
12837 esac
12838
12839
12840 case $ac_file$ac_mode in
12841 "default-1":C)
12842 for ac_file in $CONFIG_FILES; do
12843 # Support "outfile[:infile[:infile...]]"
12844 case "$ac_file" in
12845 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12846 esac
12847 # PO directories have a Makefile.in generated from Makefile.in.in.
12848 case "$ac_file" in */Makefile.in)
12849 # Adjust a relative srcdir.
12850 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12851 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12852 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12853 # In autoconf-2.13 it is called $ac_given_srcdir.
12854 # In autoconf-2.50 it is called $srcdir.
12855 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12856 case "$ac_given_srcdir" in
12857 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12858 /*) top_srcdir="$ac_given_srcdir" ;;
12859 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12860 esac
12861 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12862 rm -f "$ac_dir/POTFILES"
12863 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12864 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12865 POMAKEFILEDEPS="POTFILES.in"
12866 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12867 # on $ac_dir but don't depend on user-specified configuration
12868 # parameters.
12869 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12870 # The LINGUAS file contains the set of available languages.
12871 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12872 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12873 fi
12874 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12875 # Hide the ALL_LINGUAS assigment from automake.
12876 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12877 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12878 else
12879 # The set of available languages was given in configure.in.
12880 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12881 fi
12882 # Compute POFILES
12883 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12884 # Compute UPDATEPOFILES
12885 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12886 # Compute DUMMYPOFILES
12887 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12888 # Compute GMOFILES
12889 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12890 case "$ac_given_srcdir" in
12891 .) srcdirpre= ;;
12892 *) srcdirpre='$(srcdir)/' ;;
12893 esac
12894 POFILES=
12895 UPDATEPOFILES=
12896 DUMMYPOFILES=
12897 GMOFILES=
12898 for lang in $ALL_LINGUAS; do
12899 POFILES="$POFILES $srcdirpre$lang.po"
12900 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12901 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12902 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12903 done
12904 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12905 # environment variable.
12906 INST_LINGUAS=
12907 if test -n "$ALL_LINGUAS"; then
12908 for presentlang in $ALL_LINGUAS; do
12909 useit=no
12910 if test "%UNSET%" != "$LINGUAS"; then
12911 desiredlanguages="$LINGUAS"
12912 else
12913 desiredlanguages="$ALL_LINGUAS"
12914 fi
12915 for desiredlang in $desiredlanguages; do
12916 # Use the presentlang catalog if desiredlang is
12917 # a. equal to presentlang, or
12918 # b. a variant of presentlang (because in this case,
12919 # presentlang can be used as a fallback for messages
12920 # which are not translated in the desiredlang catalog).
12921 case "$desiredlang" in
12922 "$presentlang"*) useit=yes;;
12923 esac
12924 done
12925 if test $useit = yes; then
12926 INST_LINGUAS="$INST_LINGUAS $presentlang"
12927 fi
12928 done
12929 fi
12930 CATALOGS=
12931 if test -n "$INST_LINGUAS"; then
12932 for lang in $INST_LINGUAS; do
12933 CATALOGS="$CATALOGS $lang.gmo"
12934 done
12935 fi
12936 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12937 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"
12938 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12939 if test -f "$f"; then
12940 case "$f" in
12941 *.orig | *.bak | *~) ;;
12942 *) cat "$f" >> "$ac_dir/Makefile" ;;
12943 esac
12944 fi
12945 done
12946 fi
12947 ;;
12948 esac
12949 done ;;
12950
12951 esac
12952 done # for ac_tag
12953
12954
12955 as_fn_exit 0
12956 _ACEOF
12957 ac_clean_files=$ac_clean_files_save
12958
12959 test $ac_write_fail = 0 ||
12960 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12961
12962
12963 # configure is writing to config.log, and then calls config.status.
12964 # config.status does its own redirection, appending to config.log.
12965 # Unfortunately, on DOS this fails, as config.log is still kept open
12966 # by configure, so config.status won't be able to write to it; its
12967 # output is simply discarded. So we exec the FD to /dev/null,
12968 # effectively closing config.log, so it can be properly (re)opened and
12969 # appended to by config.status. When coming back to configure, we
12970 # need to make the FD available again.
12971 if test "$no_create" != yes; then
12972 ac_cs_success=:
12973 ac_config_status_args=
12974 test "$silent" = yes &&
12975 ac_config_status_args="$ac_config_status_args --quiet"
12976 exec 5>/dev/null
12977 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12978 exec 5>>config.log
12979 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12980 # would make configure fail if this is the last instruction.
12981 $ac_cs_success || as_fn_exit 1
12982 fi
12983 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12985 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12986 fi
12987
12988 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi