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