]> git.wh0rd.org - dump.git/blame_incremental - configure
Encryption (and compression as plugins) support.
[dump.git] / configure
... / ...
CommitLineData
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
18DUALCASE=1; export DUALCASE # for MKS sh
19if 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
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_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.
45if 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 --'
49elif (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'
52else
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'
72fi
73
74# The user is always right.
75if 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 }
81fi
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.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
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
101IFS=$as_save_IFS
102
103 ;;
104esac
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.
107if test "x$as_myself" = x; then
108 as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113fi
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.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if 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
144else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi
152"
153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test 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
174test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177else
178 as_have_required=no
179fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
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
200fi
201fi
202 done;;
203 esac
204 as_found=false
205done
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
209fi; }
210IFS=$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+"$@"}
222fi
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
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254 { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_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.
269as_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.
279as_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.
329if (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 }'
334else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339fi # 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.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356fi # 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.
364as_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
375if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378else
379 as_expr=false
380fi
381
382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384else
385 as_basename=false
386fi
387
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390else
391 as_dirname=false
392fi
393
394as_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.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_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
452ECHO_C= ECHO_N= ECHO_T=
453case `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';;
463esac
464
465rm -f conf$$ conf$$.exe conf$$.file
466if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471fi
472if (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
486else
487 as_ln_s='cp -p'
488fi
489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
491
492if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497fi
498
499if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501else
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 '
519fi
520as_executable_p=$as_test_x
521
522# Sed expression to map a string onto a valid CPP name.
523as_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.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529test -n "$DJDIR" || exec 7<&0 </dev/null
530exec 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.
535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537#
538# Initializations.
539#
540ac_default_prefix=/usr/local
541ac_clean_files=
542ac_config_libobj_dir=.
543LIBOBJS=
544cross_compiling=no
545subdirs=
546MFLAGS=
547MAKEFLAGS=
548
549# Identity of this package.
550PACKAGE_NAME=
551PACKAGE_TARNAME=
552PACKAGE_VERSION=
553PACKAGE_STRING=
554PACKAGE_BUGREPORT=
555PACKAGE_URL=
556
557ac_unique_file="dump/dump.h"
558# Factoring default headers for most tests.
559ac_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
594ac_subst_vars='LTLIBOBJS
595LIBOBJS
596top_builddir
597SSLLIB
598BZLIB
599ZLIB
600READLINE
601BLKID
602EXT2FS_LIBS
603EXT2FS_CFLAGS
604PKG_CONFIG_LIBDIR
605PKG_CONFIG_PATH
606PKG_CONFIG
607DUMPDATESPATH
608MANMODE
609MANGRP
610MANOWNER
611BINMODE
612BINGRP
613BINOWNER
614LDOPTS
615CCOPTS
616LD
617CCTRANSSELINUX
618LTRANSSELINUX
619OPTDEFS
620ERMT
621RMTDIR
622STATIC
623RESTOREDEBUG
624DUMPDEBUG
625EGREP
626GREP
627CPP
628INSTALL_DATA
629INSTALL_SCRIPT
630INSTALL_PROGRAM
631OBJEXT
632EXEEXT
633ac_ct_CC
634CPPFLAGS
635LDFLAGS
636CFLAGS
637CC
638PATCH
639RANLIB
640AR
641RM
642MV
643CP
644LN_S
645SET_MAKE
646target_alias
647host_alias
648build_alias
649LIBS
650ECHO_T
651ECHO_N
652ECHO_C
653DEFS
654mandir
655localedir
656libdir
657psdir
658pdfdir
659dvidir
660htmldir
661infodir
662docdir
663oldincludedir
664includedir
665localstatedir
666sharedstatedir
667sysconfdir
668datadir
669datarootdir
670libexecdir
671sbindir
672bindir
673program_transform_name
674prefix
675exec_prefix
676PACKAGE_URL
677PACKAGE_BUGREPORT
678PACKAGE_STRING
679PACKAGE_VERSION
680PACKAGE_TARNAME
681PACKAGE_NAME
682PATH_SEPARATOR
683SHELL'
684ac_subst_files='MCONFIG'
685ac_user_opts='
686enable_option_checking
687enable_debug
688enable_static
689enable_staticz
690enable_rmt
691enable_ermt
692enable_kerberos
693enable_readline
694enable_oldstylefscript
695enable_largefile
696enable_qfa
697enable_qfadebug
698enable_macosx
699enable_transselinux
700with_cc
701with_linker
702with_ccopts
703with_ldopts
704with_binowner
705with_bingrp
706with_binmode
707with_manowner
708with_mangrp
709with_manmode
710with_dumpdatespath
711'
712 ac_precious_vars='build_alias
713host_alias
714target_alias
715CC
716CFLAGS
717LDFLAGS
718LIBS
719CPPFLAGS
720CPP
721PKG_CONFIG
722PKG_CONFIG_PATH
723PKG_CONFIG_LIBDIR
724EXT2FS_CFLAGS
725EXT2FS_LIBS'
726
727
728# Initialize some variables set by options.
729ac_init_help=
730ac_init_version=false
731ac_unrecognized_opts=
732ac_unrecognized_sep=
733# The variables have the same names as the options, with
734# dashes changed to underlines.
735cache_file=/dev/null
736exec_prefix=NONE
737no_create=
738no_recursion=
739prefix=NONE
740program_prefix=NONE
741program_suffix=NONE
742program_transform_name=s,x,x,
743silent=
744site=
745srcdir=
746verbose=
747x_includes=NONE
748x_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.)
756bindir='${exec_prefix}/bin'
757sbindir='${exec_prefix}/sbin'
758libexecdir='${exec_prefix}/libexec'
759datarootdir='${prefix}/share'
760datadir='${datarootdir}'
761sysconfdir='${prefix}/etc'
762sharedstatedir='${prefix}/com'
763localstatedir='${prefix}/var'
764includedir='${prefix}/include'
765oldincludedir='/usr/include'
766docdir='${datarootdir}/doc/${PACKAGE}'
767infodir='${datarootdir}/info'
768htmldir='${docdir}'
769dvidir='${docdir}'
770pdfdir='${docdir}'
771psdir='${docdir}'
772libdir='${exec_prefix}/lib'
773localedir='${datarootdir}/locale'
774mandir='${datarootdir}/man'
775
776ac_prev=
777ac_dashdash=
778for ac_option
779do
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'
1112Try \`$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
1134done
1135
1136if test -n "$ac_prev"; then
1137 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1138 as_fn_error $? "missing argument to $ac_option"
1139fi
1140
1141if 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
1147fi
1148
1149# Check all directory arguments for consistency.
1150for 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
1154do
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"
1168done
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.
1173build=$build_alias
1174host=$host_alias
1175target=$target_alias
1176
1177# FIXME: To remove some day.
1178if 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
1186fi
1187
1188ac_tool_prefix=
1189test -n "$host_alias" && ac_tool_prefix=$host_alias-
1190
1191test "$silent" = yes && exec 6>/dev/null
1192
1193
1194ac_pwd=`pwd` && test -n "$ac_pwd" &&
1195ac_ls_di=`ls -di .` &&
1196ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1197 as_fn_error $? "working directory cannot be determined"
1198test "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.
1203if 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
1233else
1234 ac_srcdir_defaulted=no
1235fi
1236if 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"
1239fi
1240ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1241ac_abs_confdir=`(
1242 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1243 pwd)`
1244# When building in place, set srcdir=.
1245if test "$ac_abs_confdir" = "$ac_pwd"; then
1246 srcdir=.
1247fi
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.
1251case $srcdir in
1252*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1253esac
1254for 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}
1259done
1260
1261#
1262# Report the --help message.
1263#
1264if 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
1270Usage: $0 [OPTION]... [VAR=VALUE]...
1271
1272To assign environment variables (e.g., CC, CFLAGS...), specify them as
1273VAR=VALUE. See below for descriptions of some of the useful variables.
1274
1275Defaults for the options are specified in brackets.
1276
1277Configuration:
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
1288Installation 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
1294By default, \`make install' will install all the files in
1295\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1296an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1297for instance \`--prefix=\$HOME'.
1298
1299For better control, use the options below.
1300
1301Fine 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
1325fi
1326
1327if test -n "$ac_init_help"; then
1328
1329 cat <<\_ACEOF
1330
1331Optional 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
1349Optional 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
1364Some 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
1382Use these variables to override the choices made by `configure' or to help
1383it to find libraries and programs with nonstandard names/locations.
1384
1385Report bugs to the package provider.
1386_ACEOF
1387ac_status=$?
1388fi
1389
1390if 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
1398case "$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 ;;
1408esac
1409ac_abs_top_builddir=$ac_pwd
1410ac_abs_builddir=$ac_pwd$ac_dir_suffix
1411# for backward compatibility:
1412ac_top_builddir=$ac_top_build_prefix
1413
1414case $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 ;;
1427esac
1428ac_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
1443fi
1444
1445test -n "$ac_init_help" && exit $ac_status
1446if $ac_init_version; then
1447 cat <<\_ACEOF
1448configure
1449generated by GNU Autoconf 2.67
1450
1451Copyright (C) 2010 Free Software Foundation, Inc.
1452This configure script is free software; the Free Software Foundation
1453gives unlimited permission to copy, distribute and modify it.
1454_ACEOF
1455 exit
1456fi
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.
1465ac_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"
1470case "(($ac_try" in
1471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1472 *) ac_try_echo=$ac_try;;
1473esac
1474eval 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
1489else
1490 $as_echo "$as_me: failed program was:" >&5
1491sed 's/^/| /' conftest.$ac_ext >&5
1492
1493 ac_retval=1
1494fi
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.
1503ac_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"
1507case "(($ac_try" in
1508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1509 *) ac_try_echo=$ac_try;;
1510esac
1511eval 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
1526else
1527 $as_echo "$as_me: failed program was:" >&5
1528sed 's/^/| /' conftest.$ac_ext >&5
1529
1530 ac_retval=1
1531fi
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.
1542ac_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; }
1548if eval "test \"\${$3+set}\"" = set; then :
1549 $as_echo_n "(cached) " >&6
1550fi
1551eval ac_res=\$$3
1552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1553$as_echo "$ac_res" >&6; }
1554else
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; }
1558cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1559/* end confdefs.h. */
1560$4
1561#include <$2>
1562_ACEOF
1563if ac_fn_c_try_compile "$LINENO"; then :
1564 ac_header_compiler=yes
1565else
1566 ac_header_compiler=no
1567fi
1568rm -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; }
1575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1576/* end confdefs.h. */
1577#include <$2>
1578_ACEOF
1579if ac_fn_c_try_cpp "$LINENO"; then :
1580 ac_header_preproc=yes
1581else
1582 ac_header_preproc=no
1583fi
1584rm -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?
1589case $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 ;;
1608esac
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1610$as_echo_n "checking for $2... " >&6; }
1611if eval "test \"\${$3+set}\"" = set; then :
1612 $as_echo_n "(cached) " >&6
1613else
1614 eval "$3=\$ac_header_compiler"
1615fi
1616eval ac_res=\$$3
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1618$as_echo "$ac_res" >&6; }
1619fi
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.
1628ac_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"
1632case "(($ac_try" in
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1635esac
1636eval 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;;
1645esac
1646eval 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
1653else
1654 $as_echo "$as_me: program exited with status $ac_status" >&5
1655 $as_echo "$as_me: failed program was:" >&5
1656sed 's/^/| /' conftest.$ac_ext >&5
1657
1658 ac_retval=$ac_status
1659fi
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.
1670ac_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; }
1675if eval "test \"\${$3+set}\"" = set; then :
1676 $as_echo_n "(cached) " >&6
1677else
1678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1679/* end confdefs.h. */
1680$4
1681#include <$2>
1682_ACEOF
1683if ac_fn_c_try_compile "$LINENO"; then :
1684 eval "$3=yes"
1685else
1686 eval "$3=no"
1687fi
1688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1689fi
1690eval 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.
1700ac_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; }
1705if eval "test \"\${$3+set}\"" = set; then :
1706 $as_echo_n "(cached) " >&6
1707else
1708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1709/* end confdefs.h. */
1710#include <$2>
1711_ACEOF
1712if ac_fn_c_try_cpp "$LINENO"; then :
1713 eval "$3=yes"
1714else
1715 eval "$3=no"
1716fi
1717rm -f conftest.err conftest.i conftest.$ac_ext
1718fi
1719eval 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.
1729ac_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"
1734case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737esac
1738eval 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
1756else
1757 $as_echo "$as_me: failed program was:" >&5
1758sed 's/^/| /' conftest.$ac_ext >&5
1759
1760 ac_retval=1
1761fi
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
1775ac_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; }
1780if eval "test \"\${$3+set}\"" = set; then :
1781 $as_echo_n "(cached) " >&6
1782else
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
1806extern "C"
1807#endif
1808char $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
1813choke me
1814#endif
1815
1816int
1817main ()
1818{
1819return $2 ();
1820 ;
1821 return 0;
1822}
1823_ACEOF
1824if ac_fn_c_try_link "$LINENO"; then :
1825 eval "$3=yes"
1826else
1827 eval "$3=no"
1828fi
1829rm -f core conftest.err conftest.$ac_objext \
1830 conftest$ac_exeext conftest.$ac_ext
1831fi
1832eval 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.
1843ac_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; }
1848if eval "test \"\${$3+set}\"" = set; then :
1849 $as_echo_n "(cached) " >&6
1850else
1851 eval "$3=no"
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853/* end confdefs.h. */
1854$4
1855int
1856main ()
1857{
1858if (sizeof ($2))
1859 return 0;
1860 ;
1861 return 0;
1862}
1863_ACEOF
1864if ac_fn_c_try_compile "$LINENO"; then :
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866/* end confdefs.h. */
1867$4
1868int
1869main ()
1870{
1871if (sizeof (($2)))
1872 return 0;
1873 ;
1874 return 0;
1875}
1876_ACEOF
1877if ac_fn_c_try_compile "$LINENO"; then :
1878
1879else
1880 eval "$3=yes"
1881fi
1882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1883fi
1884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1885fi
1886eval 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
1892cat >config.log <<_ACEOF
1893This file contains any messages produced by compilers while
1894running configure, to aid debugging if configure makes a mistake.
1895
1896It was created by $as_me, which was
1897generated by GNU Autoconf 2.67. Invocation command line was
1898
1899 $ $0 $@
1900
1901_ACEOF
1902exec 5>>config.log
1903{
1904cat <<_ASUNAME
1905## --------- ##
1906## Platform. ##
1907## --------- ##
1908
1909hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1910uname -m = `(uname -m) 2>/dev/null || echo unknown`
1911uname -r = `(uname -r) 2>/dev/null || echo unknown`
1912uname -s = `(uname -s) 2>/dev/null || echo unknown`
1913uname -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
1928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929for as_dir in $PATH
1930do
1931 IFS=$as_save_IFS
1932 test -z "$as_dir" && as_dir=.
1933 $as_echo "PATH: $as_dir"
1934 done
1935IFS=$as_save_IFS
1936
1937} >&5
1938
1939cat >&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.
1954ac_configure_args=
1955ac_configure_args0=
1956ac_configure_args1=
1957ac_must_keep_next=false
1958for ac_pass in 1 2
1959do
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
1993done
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.
2002trap '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
2089for ac_signal in 1 2 13 15; do
2090 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2091done
2092ac_signal=0
2093
2094# confdefs.h avoids OS command line length limits that DEFS can exceed.
2095rm -f -r conftest* confdefs.h
2096
2097$as_echo "/* confdefs.h */" > confdefs.h
2098
2099# Predefined preprocessor variables.
2100
2101cat >>confdefs.h <<_ACEOF
2102#define PACKAGE_NAME "$PACKAGE_NAME"
2103_ACEOF
2104
2105cat >>confdefs.h <<_ACEOF
2106#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2107_ACEOF
2108
2109cat >>confdefs.h <<_ACEOF
2110#define PACKAGE_VERSION "$PACKAGE_VERSION"
2111_ACEOF
2112
2113cat >>confdefs.h <<_ACEOF
2114#define PACKAGE_STRING "$PACKAGE_STRING"
2115_ACEOF
2116
2117cat >>confdefs.h <<_ACEOF
2118#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2119_ACEOF
2120
2121cat >>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.
2128ac_site_file1=NONE
2129ac_site_file2=NONE
2130if 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
2137elif test "x$prefix" != xNONE; then
2138 ac_site_file1=$prefix/share/config.site
2139 ac_site_file2=$prefix/etc/config.site
2140else
2141 ac_site_file1=$ac_default_prefix/share/config.site
2142 ac_site_file2=$ac_default_prefix/etc/config.site
2143fi
2144for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2145do
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;}
2154as_fn_error $? "failed to load site script $ac_site_file
2155See \`config.log' for more details" "$LINENO" 5 ; }
2156 fi
2157done
2158
2159if 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
2170else
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
2174fi
2175
2176# Check that the precious variables saved in the cache have kept the same
2177# value.
2178ac_cache_corrupted=false
2179for 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
2225done
2226if $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
2232fi
2233## -------------------- ##
2234## Main body of script. ##
2235## -------------------- ##
2236
2237ac_ext=c
2238ac_cpp='$CPP $CPPFLAGS'
2239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2241ac_compiler_gnu=$ac_cv_c_compiler_gnu
2242
2243
2244
2245
2246MCONFIG=./MCONFIG
2247
2248
2249ac_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; }
2254set x ${MAKE-make}
2255ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2256if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2257 $as_echo_n "(cached) " >&6
2258else
2259 cat >conftest.make <<\_ACEOF
2260SHELL = /bin/sh
2261all:
2262 @echo '@@@%%%=$(MAKE)=@@@%%%'
2263_ACEOF
2264# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2265case `${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;;
2270esac
2271rm -f conftest.make
2272fi
2273if 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=
2277else
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2279$as_echo "no" >&6; }
2280 SET_MAKE="MAKE=${MAKE-make}"
2281fi
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; }
2285LN_S=$as_ln_s
2286if test "$LN_S" = "ln -s"; then
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2288$as_echo "yes" >&6; }
2289else
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2291$as_echo "no, using $LN_S" >&6; }
2292fi
2293
2294# Extract the first word of "cp", so it can be a program name with args.
2295set 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; }
2298if test "${ac_cv_path_CP+set}" = set; then :
2299 $as_echo_n "(cached) " >&6
2300else
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
2307for as_dir in $PATH
2308do
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
2317done
2318 done
2319IFS=$as_save_IFS
2320
2321 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
2322 ;;
2323esac
2324fi
2325CP=$ac_cv_path_CP
2326if test -n "$CP"; then
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
2328$as_echo "$CP" >&6; }
2329else
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2331$as_echo "no" >&6; }
2332fi
2333
2334
2335# Extract the first word of "mv", so it can be a program name with args.
2336set 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; }
2339if test "${ac_cv_path_MV+set}" = set; then :
2340 $as_echo_n "(cached) " >&6
2341else
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
2348for as_dir in $PATH
2349do
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
2358done
2359 done
2360IFS=$as_save_IFS
2361
2362 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
2363 ;;
2364esac
2365fi
2366MV=$ac_cv_path_MV
2367if test -n "$MV"; then
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
2369$as_echo "$MV" >&6; }
2370else
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2372$as_echo "no" >&6; }
2373fi
2374
2375
2376# Extract the first word of "rm", so it can be a program name with args.
2377set 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; }
2380if test "${ac_cv_path_RM+set}" = set; then :
2381 $as_echo_n "(cached) " >&6
2382else
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
2389for as_dir in $PATH
2390do
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
2399done
2400 done
2401IFS=$as_save_IFS
2402
2403 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
2404 ;;
2405esac
2406fi
2407RM=$ac_cv_path_RM
2408if test -n "$RM"; then
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
2410$as_echo "$RM" >&6; }
2411else
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2413$as_echo "no" >&6; }
2414fi
2415
2416
2417if 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.
2419set 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; }
2422if test "${ac_cv_prog_AR+set}" = set; then :
2423 $as_echo_n "(cached) " >&6
2424else
2425 if test -n "$AR"; then
2426 ac_cv_prog_AR="$AR" # Let the user override the test.
2427else
2428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429for as_dir in $PATH
2430do
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
2439done
2440 done
2441IFS=$as_save_IFS
2442
2443fi
2444fi
2445AR=$ac_cv_prog_AR
2446if test -n "$AR"; then
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
2448$as_echo "$AR" >&6; }
2449else
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2451$as_echo "no" >&6; }
2452fi
2453
2454
2455fi
2456if 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.
2459set 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; }
2462if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
2463 $as_echo_n "(cached) " >&6
2464else
2465 if test -n "$ac_ct_AR"; then
2466 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2467else
2468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469for as_dir in $PATH
2470do
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
2479done
2480 done
2481IFS=$as_save_IFS
2482
2483fi
2484fi
2485ac_ct_AR=$ac_cv_prog_ac_ct_AR
2486if 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; }
2489else
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2491$as_echo "no" >&6; }
2492fi
2493
2494 if test "x$ac_ct_AR" = x; then
2495 AR="ar"
2496 else
2497 case $cross_compiling:$ac_tool_warned in
2498yes:)
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;}
2501ac_tool_warned=yes ;;
2502esac
2503 AR=$ac_ct_AR
2504 fi
2505else
2506 AR="$ac_cv_prog_AR"
2507fi
2508
2509if 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.
2511set 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; }
2514if test "${ac_cv_prog_RANLIB+set}" = set; then :
2515 $as_echo_n "(cached) " >&6
2516else
2517 if test -n "$RANLIB"; then
2518 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2519else
2520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521for as_dir in $PATH
2522do
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
2531done
2532 done
2533IFS=$as_save_IFS
2534
2535fi
2536fi
2537RANLIB=$ac_cv_prog_RANLIB
2538if test -n "$RANLIB"; then
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2540$as_echo "$RANLIB" >&6; }
2541else
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2543$as_echo "no" >&6; }
2544fi
2545
2546
2547fi
2548if 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.
2551set 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; }
2554if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
2555 $as_echo_n "(cached) " >&6
2556else
2557 if test -n "$ac_ct_RANLIB"; then
2558 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2559else
2560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561for as_dir in $PATH
2562do
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
2571done
2572 done
2573IFS=$as_save_IFS
2574
2575fi
2576fi
2577ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2578if 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; }
2581else
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2583$as_echo "no" >&6; }
2584fi
2585
2586 if test "x$ac_ct_RANLIB" = x; then
2587 RANLIB=":"
2588 else
2589 case $cross_compiling:$ac_tool_warned in
2590yes:)
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;}
2593ac_tool_warned=yes ;;
2594esac
2595 RANLIB=$ac_ct_RANLIB
2596 fi
2597else
2598 RANLIB="$ac_cv_prog_RANLIB"
2599fi
2600
2601if 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.
2603set 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; }
2606if test "${ac_cv_prog_PATCH+set}" = set; then :
2607 $as_echo_n "(cached) " >&6
2608else
2609 if test -n "$PATCH"; then
2610 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
2611else
2612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613for as_dir in $PATH
2614do
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
2623done
2624 done
2625IFS=$as_save_IFS
2626
2627fi
2628fi
2629PATCH=$ac_cv_prog_PATCH
2630if test -n "$PATCH"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
2632$as_echo "$PATCH" >&6; }
2633else
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635$as_echo "no" >&6; }
2636fi
2637
2638
2639fi
2640if 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.
2643set 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; }
2646if test "${ac_cv_prog_ac_ct_PATCH+set}" = set; then :
2647 $as_echo_n "(cached) " >&6
2648else
2649 if test -n "$ac_ct_PATCH"; then
2650 ac_cv_prog_ac_ct_PATCH="$ac_ct_PATCH" # Let the user override the test.
2651else
2652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653for as_dir in $PATH
2654do
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
2663done
2664 done
2665IFS=$as_save_IFS
2666
2667fi
2668fi
2669ac_ct_PATCH=$ac_cv_prog_ac_ct_PATCH
2670if 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; }
2673else
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2675$as_echo "no" >&6; }
2676fi
2677
2678 if test "x$ac_ct_PATCH" = x; then
2679 PATCH=":"
2680 else
2681 case $cross_compiling:$ac_tool_warned in
2682yes:)
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;}
2685ac_tool_warned=yes ;;
2686esac
2687 PATCH=$ac_ct_PATCH
2688 fi
2689else
2690 PATCH="$ac_cv_prog_PATCH"
2691fi
2692
2693ac_ext=c
2694ac_cpp='$CPP $CPPFLAGS'
2695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2697ac_compiler_gnu=$ac_cv_c_compiler_gnu
2698if 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.
2700set 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; }
2703if test "${ac_cv_prog_CC+set}" = set; then :
2704 $as_echo_n "(cached) " >&6
2705else
2706 if test -n "$CC"; then
2707 ac_cv_prog_CC="$CC" # Let the user override the test.
2708else
2709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710for as_dir in $PATH
2711do
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
2720done
2721 done
2722IFS=$as_save_IFS
2723
2724fi
2725fi
2726CC=$ac_cv_prog_CC
2727if test -n "$CC"; then
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2729$as_echo "$CC" >&6; }
2730else
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2732$as_echo "no" >&6; }
2733fi
2734
2735
2736fi
2737if 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.
2740set 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; }
2743if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2744 $as_echo_n "(cached) " >&6
2745else
2746 if test -n "$ac_ct_CC"; then
2747 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2748else
2749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750for as_dir in $PATH
2751do
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
2760done
2761 done
2762IFS=$as_save_IFS
2763
2764fi
2765fi
2766ac_ct_CC=$ac_cv_prog_ac_ct_CC
2767if 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; }
2770else
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2772$as_echo "no" >&6; }
2773fi
2774
2775 if test "x$ac_ct_CC" = x; then
2776 CC=""
2777 else
2778 case $cross_compiling:$ac_tool_warned in
2779yes:)
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;}
2782ac_tool_warned=yes ;;
2783esac
2784 CC=$ac_ct_CC
2785 fi
2786else
2787 CC="$ac_cv_prog_CC"
2788fi
2789
2790if 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.
2793set 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; }
2796if test "${ac_cv_prog_CC+set}" = set; then :
2797 $as_echo_n "(cached) " >&6
2798else
2799 if test -n "$CC"; then
2800 ac_cv_prog_CC="$CC" # Let the user override the test.
2801else
2802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803for as_dir in $PATH
2804do
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
2813done
2814 done
2815IFS=$as_save_IFS
2816
2817fi
2818fi
2819CC=$ac_cv_prog_CC
2820if test -n "$CC"; then
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2822$as_echo "$CC" >&6; }
2823else
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825$as_echo "no" >&6; }
2826fi
2827
2828
2829 fi
2830fi
2831if test -z "$CC"; then
2832 # Extract the first word of "cc", so it can be a program name with args.
2833set 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; }
2836if test "${ac_cv_prog_CC+set}" = set; then :
2837 $as_echo_n "(cached) " >&6
2838else
2839 if test -n "$CC"; then
2840 ac_cv_prog_CC="$CC" # Let the user override the test.
2841else
2842 ac_prog_rejected=no
2843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844for as_dir in $PATH
2845do
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
2858done
2859 done
2860IFS=$as_save_IFS
2861
2862if 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
2873fi
2874fi
2875fi
2876CC=$ac_cv_prog_CC
2877if test -n "$CC"; then
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2879$as_echo "$CC" >&6; }
2880else
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882$as_echo "no" >&6; }
2883fi
2884
2885
2886fi
2887if 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.
2892set 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; }
2895if test "${ac_cv_prog_CC+set}" = set; then :
2896 $as_echo_n "(cached) " >&6
2897else
2898 if test -n "$CC"; then
2899 ac_cv_prog_CC="$CC" # Let the user override the test.
2900else
2901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902for as_dir in $PATH
2903do
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
2912done
2913 done
2914IFS=$as_save_IFS
2915
2916fi
2917fi
2918CC=$ac_cv_prog_CC
2919if test -n "$CC"; then
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2921$as_echo "$CC" >&6; }
2922else
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2924$as_echo "no" >&6; }
2925fi
2926
2927
2928 test -n "$CC" && break
2929 done
2930fi
2931if test -z "$CC"; then
2932 ac_ct_CC=$CC
2933 for ac_prog in cl.exe
2934do
2935 # Extract the first word of "$ac_prog", so it can be a program name with args.
2936set 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; }
2939if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2940 $as_echo_n "(cached) " >&6
2941else
2942 if test -n "$ac_ct_CC"; then
2943 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2944else
2945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946for as_dir in $PATH
2947do
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
2956done
2957 done
2958IFS=$as_save_IFS
2959
2960fi
2961fi
2962ac_ct_CC=$ac_cv_prog_ac_ct_CC
2963if 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; }
2966else
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968$as_echo "no" >&6; }
2969fi
2970
2971
2972 test -n "$ac_ct_CC" && break
2973done
2974
2975 if test "x$ac_ct_CC" = x; then
2976 CC=""
2977 else
2978 case $cross_compiling:$ac_tool_warned in
2979yes:)
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;}
2982ac_tool_warned=yes ;;
2983esac
2984 CC=$ac_ct_CC
2985 fi
2986fi
2987
2988fi
2989
2990
2991test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2992$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2993as_fn_error $? "no acceptable C compiler found in \$PATH
2994See \`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
2998set X $ac_compile
2999ac_compiler=$2
3000for ac_option in --version -v -V -qversion; do
3001 { { ac_try="$ac_compiler $ac_option >&5"
3002case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3005esac
3006eval 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; }
3019done
3020
3021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3022/* end confdefs.h. */
3023
3024int
3025main ()
3026{
3027
3028 ;
3029 return 0;
3030}
3031_ACEOF
3032ac_clean_files_save=$ac_clean_files
3033ac_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; }
3039ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3040
3041# The possible output files:
3042ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3043
3044ac_rmfiles=
3045for ac_file in $ac_files
3046do
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
3051done
3052rm -f $ac_rmfiles
3053
3054if { { ac_try="$ac_link_default"
3055case "(($ac_try" in
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3058esac
3059eval 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.
3070for ac_file in $ac_files ''
3071do
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
3094done
3095test "$ac_cv_exeext" = no && ac_cv_exeext=
3096
3097else
3098 ac_file=''
3099fi
3100if 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
3104sed '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;}
3108as_fn_error 77 "C compiler cannot create executables
3109See \`config.log' for more details" "$LINENO" 5 ; }
3110else
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3112$as_echo "yes" >&6; }
3113fi
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; }
3118ac_exeext=$ac_cv_exeext
3119
3120rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3121ac_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; }
3124if { { ac_try="$ac_link"
3125case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3128esac
3129eval 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'.
3139for 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
3147done
3148else
3149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3151as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3152See \`config.log' for more details" "$LINENO" 5 ; }
3153fi
3154rm -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
3158rm -f conftest.$ac_ext
3159EXEEXT=$ac_cv_exeext
3160ac_exeext=$EXEEXT
3161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3162/* end confdefs.h. */
3163#include <stdio.h>
3164int
3165main ()
3166{
3167FILE *f = fopen ("conftest.out", "w");
3168 return ferror (f) || fclose (f) != 0;
3169
3170 ;
3171 return 0;
3172}
3173_ACEOF
3174ac_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; }
3179if test "$cross_compiling" != yes; then
3180 { { ac_try="$ac_link"
3181case "(($ac_try" in
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3184esac
3185eval 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;;
3195esac
3196eval 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;}
3209as_fn_error $? "cannot run C compiled programs.
3210If you meant to cross compile, use \`--host'.
3211See \`config.log' for more details" "$LINENO" 5 ; }
3212 fi
3213 fi
3214fi
3215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3216$as_echo "$cross_compiling" >&6; }
3217
3218rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3219ac_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; }
3222if test "${ac_cv_objext+set}" = set; then :
3223 $as_echo_n "(cached) " >&6
3224else
3225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226/* end confdefs.h. */
3227
3228int
3229main ()
3230{
3231
3232 ;
3233 return 0;
3234}
3235_ACEOF
3236rm -f conftest.o conftest.obj
3237if { { ac_try="$ac_compile"
3238case "(($ac_try" in
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3241esac
3242eval 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
3255done
3256else
3257 $as_echo "$as_me: failed program was:" >&5
3258sed '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;}
3262as_fn_error $? "cannot compute suffix of object files: cannot compile
3263See \`config.log' for more details" "$LINENO" 5 ; }
3264fi
3265rm -f conftest.$ac_cv_objext conftest.$ac_ext
3266fi
3267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3268$as_echo "$ac_cv_objext" >&6; }
3269OBJEXT=$ac_cv_objext
3270ac_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; }
3273if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3274 $as_echo_n "(cached) " >&6
3275else
3276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3277/* end confdefs.h. */
3278
3279int
3280main ()
3281{
3282#ifndef __GNUC__
3283 choke me
3284#endif
3285
3286 ;
3287 return 0;
3288}
3289_ACEOF
3290if ac_fn_c_try_compile "$LINENO"; then :
3291 ac_compiler_gnu=yes
3292else
3293 ac_compiler_gnu=no
3294fi
3295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3296ac_cv_c_compiler_gnu=$ac_compiler_gnu
3297
3298fi
3299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3300$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3301if test $ac_compiler_gnu = yes; then
3302 GCC=yes
3303else
3304 GCC=
3305fi
3306ac_test_CFLAGS=${CFLAGS+set}
3307ac_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; }
3310if test "${ac_cv_prog_cc_g+set}" = set; then :
3311 $as_echo_n "(cached) " >&6
3312else
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
3320int
3321main ()
3322{
3323
3324 ;
3325 return 0;
3326}
3327_ACEOF
3328if ac_fn_c_try_compile "$LINENO"; then :
3329 ac_cv_prog_cc_g=yes
3330else
3331 CFLAGS=""
3332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333/* end confdefs.h. */
3334
3335int
3336main ()
3337{
3338
3339 ;
3340 return 0;
3341}
3342_ACEOF
3343if ac_fn_c_try_compile "$LINENO"; then :
3344
3345else
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
3351int
3352main ()
3353{
3354
3355 ;
3356 return 0;
3357}
3358_ACEOF
3359if ac_fn_c_try_compile "$LINENO"; then :
3360 ac_cv_prog_cc_g=yes
3361fi
3362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3363fi
3364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365fi
3366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3367 ac_c_werror_flag=$ac_save_c_werror_flag
3368fi
3369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3370$as_echo "$ac_cv_prog_cc_g" >&6; }
3371if test "$ac_test_CFLAGS" = set; then
3372 CFLAGS=$ac_save_CFLAGS
3373elif 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
3379else
3380 if test "$GCC" = yes; then
3381 CFLAGS="-O2"
3382 else
3383 CFLAGS=
3384 fi
3385fi
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; }
3388if test "${ac_cv_prog_cc_c89+set}" = set; then :
3389 $as_echo_n "(cached) " >&6
3390else
3391 ac_cv_prog_cc_c89=no
3392ac_save_CC=$CC
3393cat 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. */
3400struct buf { int x; };
3401FILE * (*rcsopen) (struct buf *, struct stat *, int);
3402static char *e (p, i)
3403 char **p;
3404 int i;
3405{
3406 return p[i];
3407}
3408static 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. */
3425int 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'
3430int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3431
3432int test (int i, double x);
3433struct s1 {int (*f) (int a);};
3434struct s2 {int (*f) (double a);};
3435int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3436int argc;
3437char **argv;
3438int
3439main ()
3440{
3441return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3442 ;
3443 return 0;
3444}
3445_ACEOF
3446for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3447 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3448do
3449 CC="$ac_save_CC $ac_arg"
3450 if ac_fn_c_try_compile "$LINENO"; then :
3451 ac_cv_prog_cc_c89=$ac_arg
3452fi
3453rm -f core conftest.err conftest.$ac_objext
3454 test "x$ac_cv_prog_cc_c89" != "xno" && break
3455done
3456rm -f conftest.$ac_ext
3457CC=$ac_save_CC
3458
3459fi
3460# AC_CACHE_VAL
3461case "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; } ;;
3472esac
3473if test "x$ac_cv_prog_cc_c89" != xno; then :
3474
3475fi
3476
3477ac_ext=c
3478ac_cpp='$CPP $CPPFLAGS'
3479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3481ac_compiler_gnu=$ac_cv_c_compiler_gnu
3482
3483ac_aux_dir=
3484for 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
3498done
3499if test -z "$ac_aux_dir"; then
3500 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3501fi
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.
3507ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3508ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3509ac_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; }
3528if test -z "$INSTALL"; then
3529if test "${ac_cv_path_install+set}" = set; then :
3530 $as_echo_n "(cached) " >&6
3531else
3532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533for as_dir in $PATH
3534do
3535 IFS=$as_save_IFS
3536 test -z "$as_dir" && as_dir=.
3537 # Account for people who put trailing slashes in PATH elements.
3538case $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 ;;
3576esac
3577
3578 done
3579IFS=$as_save_IFS
3580
3581rm -rf conftest.one conftest.two conftest.dir
3582
3583fi
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
3593fi
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.
3599test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3600
3601test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3602
3603test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3604
3605
3606
3607ac_ext=c
3608ac_cpp='$CPP $CPPFLAGS'
3609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3611ac_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.
3615if test -n "$CPP" && test -d "$CPP"; then
3616 CPP=
3617fi
3618if test -z "$CPP"; then
3619 if test "${ac_cv_prog_CPP+set}" = set; then :
3620 $as_echo_n "(cached) " >&6
3621else
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
3626for ac_c_preproc_warn_flag in '' yes
3627do
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
3643if ac_fn_c_try_cpp "$LINENO"; then :
3644
3645else
3646 # Broken: fails on valid input.
3647continue
3648fi
3649rm -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
3657if ac_fn_c_try_cpp "$LINENO"; then :
3658 # Broken: success on invalid input.
3659continue
3660else
3661 # Passes both tests.
3662ac_preproc_ok=:
3663break
3664fi
3665rm -f conftest.err conftest.i conftest.$ac_ext
3666
3667done
3668# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3669rm -f conftest.i conftest.err conftest.$ac_ext
3670if $ac_preproc_ok; then :
3671 break
3672fi
3673
3674 done
3675 ac_cv_prog_CPP=$CPP
3676
3677fi
3678 CPP=$ac_cv_prog_CPP
3679else
3680 ac_cv_prog_CPP=$CPP
3681fi
3682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3683$as_echo "$CPP" >&6; }
3684ac_preproc_ok=false
3685for ac_c_preproc_warn_flag in '' yes
3686do
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
3702if ac_fn_c_try_cpp "$LINENO"; then :
3703
3704else
3705 # Broken: fails on valid input.
3706continue
3707fi
3708rm -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
3716if ac_fn_c_try_cpp "$LINENO"; then :
3717 # Broken: success on invalid input.
3718continue
3719else
3720 # Passes both tests.
3721ac_preproc_ok=:
3722break
3723fi
3724rm -f conftest.err conftest.i conftest.$ac_ext
3725
3726done
3727# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3728rm -f conftest.i conftest.err conftest.$ac_ext
3729if $ac_preproc_ok; then :
3730
3731else
3732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3733$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3734as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3735See \`config.log' for more details" "$LINENO" 5 ; }
3736fi
3737
3738ac_ext=c
3739ac_cpp='$CPP $CPPFLAGS'
3740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742ac_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; }
3747if test "${ac_cv_path_GREP+set}" = set; then :
3748 $as_echo_n "(cached) " >&6
3749else
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
3754for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3755do
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
3764case `"$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;;
3788esac
3789
3790 $ac_path_GREP_found && break 3
3791 done
3792 done
3793 done
3794IFS=$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
3798else
3799 ac_cv_path_GREP=$GREP
3800fi
3801
3802fi
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; }
3810if test "${ac_cv_path_EGREP+set}" = set; then :
3811 $as_echo_n "(cached) " >&6
3812else
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
3820for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3821do
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
3830case `"$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;;
3854esac
3855
3856 $ac_path_EGREP_found && break 3
3857 done
3858 done
3859 done
3860IFS=$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
3864else
3865 ac_cv_path_EGREP=$EGREP
3866fi
3867
3868 fi
3869fi
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; }
3877if test "${ac_cv_header_stdc+set}" = set; then :
3878 $as_echo_n "(cached) " >&6
3879else
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
3887int
3888main ()
3889{
3890
3891 ;
3892 return 0;
3893}
3894_ACEOF
3895if ac_fn_c_try_compile "$LINENO"; then :
3896 ac_cv_header_stdc=yes
3897else
3898 ac_cv_header_stdc=no
3899fi
3900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901
3902if 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
3909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3910 $EGREP "memchr" >/dev/null 2>&1; then :
3911
3912else
3913 ac_cv_header_stdc=no
3914fi
3915rm -f conftest*
3916
3917fi
3918
3919if 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
3926if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3927 $EGREP "free" >/dev/null 2>&1; then :
3928
3929else
3930 ac_cv_header_stdc=no
3931fi
3932rm -f conftest*
3933
3934fi
3935
3936if 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 :
3940else
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)))
3957int
3958main ()
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
3968if ac_fn_c_try_run "$LINENO"; then :
3969
3970else
3971 ac_cv_header_stdc=no
3972fi
3973rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3974 conftest.$ac_objext conftest.beam conftest.$ac_ext
3975fi
3976
3977fi
3978fi
3979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3980$as_echo "$ac_cv_header_stdc" >&6; }
3981if test $ac_cv_header_stdc = yes; then
3982
3983$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3984
3985fi
3986
3987# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3988for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3989 inttypes.h stdint.h unistd.h
3990do :
3991 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3992ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3993"
3994if 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
3999fi
4000
4001done
4002
4003
4004for ac_header in sys/types.h
4005do :
4006 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
4007if 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
4012fi
4013
4014done
4015
4016
4017CPPFLAGS="-D_BSD_SOURCE -D_USE_BSD_SIGNAL ${CPPFLAGS}"
4018
4019# Check whether --enable-debug was given.
4020if test "${enable_debug+set}" = set; then :
4021 enableval=$enable_debug; if test "$enableval" = "no"
4022then
4023 DUMPDEBUG=""
4024 RESTOREDEBUG=""
4025 echo "Not including debugging code"
4026else
4027 DUMPDEBUG="-DFDEBUG -DTDEBUG -DWRITEDEBUG -DDIRDEBUG"
4028 RESTOREDEBUG="-DDIRDEBUG"
4029 echo "Including debugging code"
4030fi
4031else
4032 DUMPDEBUG=""
4033RESTOREDEBUG=""
4034echo "Not including debugging code by default"
4035
4036fi
4037
4038
4039
4040
4041# Check whether --enable-static was given.
4042if test "${enable_static+set}" = set; then :
4043 enableval=$enable_static; if test "$enableval" = "no"
4044then
4045 STATIC=""
4046 echo "Linking dump and restore dynamically"
4047else
4048 STATIC="-static"
4049 echo "Linking dump and restore statically"
4050fi
4051
4052else
4053 STATIC=""
4054echo "Linking dump and restore dynamically by default"
4055
4056fi
4057
4058
4059
4060# Check whether --enable-staticz was given.
4061if test "${enable_staticz+set}" = set; then :
4062 enableval=$enable_staticz; if test "$enableval" = "no"
4063then
4064 STATICZ="no"
4065 echo "Linking libz and libbz2 dynamically"
4066else
4067 STATICZ="yes"
4068 echo "Linking libz and libbz2 statically"
4069fi
4070
4071else
4072 STATICZ="no"
4073echo "Linking libz and libbz2 dynamically by default"
4074
4075fi
4076
4077
4078# Check whether --enable-rmt was given.
4079if test "${enable_rmt+set}" = set; then :
4080 enableval=$enable_rmt; if test "$enableval" = "no"
4081then
4082 RMTDIR=""
4083 RMTMAKEFILE=""
4084 echo "Not compiling rmt"
4085else
4086 RMTDIR="rmt"
4087 RMTMAKEFILE="rmt/Makefile"
4088 echo "Compiling rmt"
4089fi
4090
4091else
4092 RMTDIR="rmt"
4093RMTMAKEFILE="rmt/Makefile"
4094echo "Compiling rmt by default"
4095
4096fi
4097
4098
4099
4100# Check whether --enable-ermt was given.
4101if test "${enable_ermt+set}" = set; then :
4102 enableval=$enable_ermt; if test "$enableval" = "no"
4103then
4104 ERMT=""
4105 echo "Not compiling ermt"
4106else
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"
4113fi
4114
4115else
4116 ERMT=""
4117echo "Not compiling ermt by default"
4118
4119fi
4120
4121
4122
4123# Check whether --enable-kerberos was given.
4124if test "${enable_kerberos+set}" = set; then :
4125 enableval=$enable_kerberos; if test "$enableval" = "yes"
4126then
4127 OPTDEFS="-DKERBEROS"
4128 echo "Compiling kerberos extensions"
4129else
4130 OPTDEFS=""
4131 echo "Not compiling kerberos extensions"
4132fi
4133
4134else
4135 OPTDEFS=""
4136echo "Not compiling kerberos extensions by default"
4137
4138fi
4139
4140
4141
4142# Check whether --enable-readline was given.
4143if test "${enable_readline+set}" = set; then :
4144 enableval=$enable_readline; if test "$enableval" = "no"
4145then
4146 READLINE=""
4147 echo "Not including readline support"
4148else
4149 READLINE="yes"
4150
4151$as_echo "#define HAVE_READLINE 1" >>confdefs.h
4152
4153 echo "Including readline support"
4154fi
4155
4156else
4157 READLINE="yes"
4158
4159$as_echo "#define HAVE_READLINE 1" >>confdefs.h
4160
4161echo "Including readline support by default"
4162
4163fi
4164
4165
4166# Check whether --enable-oldstylefscript was given.
4167if test "${enable_oldstylefscript+set}" = set; then :
4168 enableval=$enable_oldstylefscript; if test "$enableval" = "yes"
4169then
4170
4171$as_echo "#define OLD_STYLE_FSCRIPT 1" >>confdefs.h
4172
4173 echo "Using old style F script"
4174else
4175 echo "Using new style F script"
4176fi
4177
4178else
4179 echo "Using new style F script by default"
4180
4181fi
4182
4183
4184# Check whether --enable-largefile was given.
4185if test "${enable_largefile+set}" = set; then :
4186 enableval=$enable_largefile; if test "$enableval" = "yes"
4187then
4188
4189$as_echo "#define USE_LFS 1" >>confdefs.h
4190
4191 echo "Enabling Large File System support"
4192else
4193 echo "Not enabling Large File System support"
4194fi
4195
4196else
4197
4198$as_echo "#define USE_LFS 1" >>confdefs.h
4199
4200echo "Enabling Large File System support by default"
4201
4202fi
4203
4204
4205# Check whether --enable-qfa was given.
4206if test "${enable_qfa+set}" = set; then :
4207 enableval=$enable_qfa; if test "$enableval" = "yes"
4208then
4209
4210$as_echo "#define USE_QFA 1" >>confdefs.h
4211
4212 echo "Enabling Quick File Access support"
4213else
4214 echo "Not enabling Quick File Access support"
4215fi
4216
4217else
4218
4219$as_echo "#define USE_QFA 1" >>confdefs.h
4220
4221echo "Enabling Quick File Access support by default"
4222
4223fi
4224
4225
4226# Check whether --enable-qfadebug was given.
4227if test "${enable_qfadebug+set}" = set; then :
4228 enableval=$enable_qfadebug; if test "$enableval" = "yes"
4229then
4230
4231$as_echo "#define DEBUG_QFA 1" >>confdefs.h
4232
4233 echo "Including Quick File Access debugging code"
4234else
4235 echo "Not including Quick File Access debugging code"
4236fi
4237
4238else
4239 echo "Not including Quick File Access debugging code by default"
4240
4241fi
4242
4243
4244# Check whether --enable-macosx was given.
4245if test "${enable_macosx+set}" = set; then :
4246 enableval=$enable_macosx; if test "$enableval" = "yes"
4247then
4248
4249$as_echo "#define DUMP_MACOSX 1" >>confdefs.h
4250
4251 echo "Including Mac OSX restore compatibility code"
4252else
4253 echo "Not including Mac OSX restore compatibility code"
4254fi
4255
4256else
4257 echo "Not including Mac OSX restore compatibility code by default"
4258
4259fi
4260
4261
4262# Check whether --enable-transselinux was given.
4263if test "${enable_transselinux+set}" = set; then :
4264 enableval=$enable_transselinux; if test "$enableval" = "yes"
4265then
4266 LTRANSSELINUX="-lselinux"
4267 CCTRANSSELINUX="-DTRANSSELINUX"
4268 echo "restore can translate SELinux EAs"
4269else
4270 LTRANSSELINUX=""
4271 CCTRANSSELINUX=""
4272 echo "restore can not translate SELinux EAs"
4273fi
4274
4275else
4276 LTRANSSELINUX="-lselinux"
4277CCTRANSSELINUX="-DTRANSSELINUX"
4278echo "restore can translate SELinux EAs by default"
4279
4280fi
4281
4282
4283
4284
4285
4286
4287# Check whether --with-cc was given.
4288if 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; }
4291CC=$withval
4292else
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; }
4296fi
4297export CC
4298
4299
4300
4301# Check whether --with-linker was given.
4302if 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; }
4305LD=$withval
4306else
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; }
4310fi
4311export LD
4312
4313
4314
4315# Check whether --with-ccopts was given.
4316if 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; }
4319CCOPTS=$withval
4320CFLAGS="$CFLAGS $withval"
4321else
4322 CCOPTS=
4323fi
4324
4325
4326
4327# Check whether --with-ldopts was given.
4328if 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; }
4331LDOPTS=$withval
4332LDFLAGS="$LDFLAGS $withval"
4333else
4334 LDOPTS=
4335fi
4336
4337
4338
4339# Check whether --with-binowner was given.
4340if 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; }
4343BINOWNER=$withval
4344else
4345 BINOWNER=root
4346echo "BINOWNER defaults to $BINOWNER"
4347
4348fi
4349
4350
4351
4352# Check whether --with-bingrp was given.
4353if 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; }
4356BINGRP=$withval
4357else
4358 BINGRP=tty
4359echo "BINGRP defaults to $BINGRP"
4360
4361fi
4362
4363
4364
4365# Check whether --with-binmode was given.
4366if 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; }
4369BINMODE=$withval
4370else
4371 BINMODE=0755
4372echo "BINMODE defaults to $BINMODE"
4373
4374fi
4375
4376
4377
4378# Check whether --with-manowner was given.
4379if 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; }
4382MANOWNER=$withval
4383else
4384 MANOWNER=man
4385echo "MANOWNER defaults to $MANOWNER"
4386
4387fi
4388
4389
4390
4391# Check whether --with-mangrp was given.
4392if 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; }
4395MANGRP=$withval
4396else
4397 MANGRP=tty
4398echo "MANGRP defaults to $MANGRP"
4399
4400fi
4401
4402
4403
4404# Check whether --with-manmode was given.
4405if 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; }
4408MANMODE=$withval
4409else
4410 MANMODE=0644
4411echo "MANMODE defaults to $MANMODE"
4412
4413fi
4414
4415
4416
4417# Check whether --with-dumpdatespath was given.
4418if 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; }
4421DUMPDATESPATH=$withval
4422else
4423 DUMPDATESPATH="${sysconfdir}/dumpdates"
4424echo "DUMPDATESPATH defaults to $DUMPDATESPATH"
4425
4426fi
4427
4428
4429ac_fn_c_check_header_preproc "$LINENO" "ext2fs/ext2fs.h" "ac_cv_header_ext2fs_ext2fs_h"
4430if test "x$ac_cv_header_ext2fs_ext2fs_h" = x""yes; then :
4431 ext2fs_h=yes
4432else
4433 ext2fs_h=no
4434fi
4435
4436
4437
4438
4439
4440
4441
4442
4443if 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.
4446set 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; }
4449if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4450 $as_echo_n "(cached) " >&6
4451else
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
4458for as_dir in $PATH
4459do
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
4468done
4469 done
4470IFS=$as_save_IFS
4471
4472 ;;
4473esac
4474fi
4475PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4476if test -n "$PKG_CONFIG"; then
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4478$as_echo "$PKG_CONFIG" >&6; }
4479else
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481$as_echo "no" >&6; }
4482fi
4483
4484
4485fi
4486if 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.
4489set 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; }
4492if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4493 $as_echo_n "(cached) " >&6
4494else
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
4501for as_dir in $PATH
4502do
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
4511done
4512 done
4513IFS=$as_save_IFS
4514
4515 ;;
4516esac
4517fi
4518ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4519if 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; }
4522else
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4524$as_echo "no" >&6; }
4525fi
4526
4527 if test "x$ac_pt_PKG_CONFIG" = x; then
4528 PKG_CONFIG=""
4529 else
4530 case $cross_compiling:$ac_tool_warned in
4531yes:)
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;}
4534ac_tool_warned=yes ;;
4535esac
4536 PKG_CONFIG=$ac_pt_PKG_CONFIG
4537 fi
4538else
4539 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4540fi
4541
4542fi
4543if 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
4555fi
4556
4557pkg_failed=no
4558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXT2FS" >&5
4559$as_echo_n "checking for EXT2FS... " >&6; }
4560
4561if 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`
4571else
4572 pkg_failed=yes
4573fi
4574 else
4575 pkg_failed=untried
4576fi
4577if 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`
4587else
4588 pkg_failed=yes
4589fi
4590 else
4591 pkg_failed=untried
4592fi
4593
4594
4595
4596if test $pkg_failed = yes; then
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4598$as_echo "no" >&6; }
4599
4600if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4601 _pkg_short_errors_supported=yes
4602else
4603 _pkg_short_errors_supported=no
4604fi
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
4617Consider adjusting the PKG_CONFIG_PATH environment variable if you
4618installed software in a non-standard prefix.
4619
4620Alternatively, you may set the environment variables EXT2FS_CFLAGS
4621and EXT2FS_LIBS to avoid the need to call pkg-config.
4622See the pkg-config man page for more details." "$LINENO" 5
4623elif 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;}
4628as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
4629is in your PATH or set the PKG_CONFIG environment variable to the full
4630path to pkg-config.
4631
4632Alternatively, you may set the environment variables EXT2FS_CFLAGS
4633and EXT2FS_LIBS to avoid the need to call pkg-config.
4634See the pkg-config man page for more details.
4635
4636To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4637See \`config.log' for more details" "$LINENO" 5 ; }
4638else
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
4644fi
4645if test -n "$STATIC" ; then
4646 EXT2FS_LIBS=`$PKG_CONFIG --libs --static ext2fs`
4647fi
4648if 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
4650fi
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; }
4654if test "${ac_cv_lib_ext2fs_ext2fs_read_inode_full+set}" = set; then :
4655 $as_echo_n "(cached) " >&6
4656else
4657 ac_check_lib_save_LIBS=$LIBS
4658LIBS="-lext2fs -lcom_err $LIBS"
4659cat 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
4666extern "C"
4667#endif
4668char ext2fs_read_inode_full ();
4669int
4670main ()
4671{
4672return ext2fs_read_inode_full ();
4673 ;
4674 return 0;
4675}
4676_ACEOF
4677if ac_fn_c_try_link "$LINENO"; then :
4678 ac_cv_lib_ext2fs_ext2fs_read_inode_full=yes
4679else
4680 ac_cv_lib_ext2fs_ext2fs_read_inode_full=no
4681fi
4682rm -f core conftest.err conftest.$ac_objext \
4683 conftest$ac_exeext conftest.$ac_ext
4684LIBS=$ac_check_lib_save_LIBS
4685fi
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; }
4688if test "x$ac_cv_lib_ext2fs_ext2fs_read_inode_full" = x""yes; then :
4689 rif=yes
4690else
4691 rif=no
4692fi
4693
4694if test "$rif" = yes; then
4695
4696$as_echo "#define HAVE_EXT2FS_READ_INODE_FULL 1" >>confdefs.h
4697
4698fi
4699
4700for ac_header in ext2fs/ext2_fs.h
4701do :
4702 ac_fn_c_check_header_preproc "$LINENO" "ext2fs/ext2_fs.h" "ac_cv_header_ext2fs_ext2_fs_h"
4703if 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
4708fi
4709
4710done
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; }
4715cat 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>
4724int
4725main ()
4726{
4727ext2_ino_t ino = 0;
4728 ;
4729 return 0;
4730}
4731_ACEOF
4732if 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; }
4738else
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4740$as_echo "no" >&6; }
4741fi
4742rm -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; }
4746cat 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>
4755int
4756main ()
4757{
4758struct ext2_super_block es; es.s_journal_inum = 0;
4759 ;
4760 return 0;
4761}
4762_ACEOF
4763if 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; }
4769else
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4771$as_echo "no" >&6; }
4772fi
4773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4774
4775ac_fn_c_check_header_preproc "$LINENO" "blkid/blkid.h" "ac_cv_header_blkid_blkid_h"
4776if test "x$ac_cv_header_blkid_blkid_h" = x""yes; then :
4777 blkid_h=yes
4778else
4779 blkid_h=no
4780fi
4781
4782
4783if 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
4801else
4802 BLKID=""
4803fi
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; }
4808if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then :
4809 $as_echo_n "(cached) " >&6
4810else
4811 ac_check_lib_save_LIBS=$LIBS
4812LIBS="-lncurses $LIBS"
4813cat 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
4820extern "C"
4821#endif
4822char tgetent ();
4823int
4824main ()
4825{
4826return tgetent ();
4827 ;
4828 return 0;
4829}
4830_ACEOF
4831if ac_fn_c_try_link "$LINENO"; then :
4832 ac_cv_lib_ncurses_tgetent=yes
4833else
4834 ac_cv_lib_ncurses_tgetent=no
4835fi
4836rm -f core conftest.err conftest.$ac_objext \
4837 conftest$ac_exeext conftest.$ac_ext
4838LIBS=$ac_check_lib_save_LIBS
4839fi
4840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
4841$as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
4842if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then :
4843 ncurses_lib=yes
4844else
4845 ncurses_lib=no
4846fi
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; }
4850if test "${ac_cv_lib_termcap_tgetent+set}" = set; then :
4851 $as_echo_n "(cached) " >&6
4852else
4853 ac_check_lib_save_LIBS=$LIBS
4854LIBS="-ltermcap $LIBS"
4855cat 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
4862extern "C"
4863#endif
4864char tgetent ();
4865int
4866main ()
4867{
4868return tgetent ();
4869 ;
4870 return 0;
4871}
4872_ACEOF
4873if ac_fn_c_try_link "$LINENO"; then :
4874 ac_cv_lib_termcap_tgetent=yes
4875else
4876 ac_cv_lib_termcap_tgetent=no
4877fi
4878rm -f core conftest.err conftest.$ac_objext \
4879 conftest$ac_exeext conftest.$ac_ext
4880LIBS=$ac_check_lib_save_LIBS
4881fi
4882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
4883$as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
4884if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then :
4885 termcap_lib=yes
4886else
4887 termcap_lib=no
4888fi
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; }
4892if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then :
4893 $as_echo_n "(cached) " >&6
4894else
4895 ac_check_lib_save_LIBS=$LIBS
4896LIBS="-ltinfo $LIBS"
4897cat 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
4904extern "C"
4905#endif
4906char tgetent ();
4907int
4908main ()
4909{
4910return tgetent ();
4911 ;
4912 return 0;
4913}
4914_ACEOF
4915if ac_fn_c_try_link "$LINENO"; then :
4916 ac_cv_lib_tinfo_tgetent=yes
4917else
4918 ac_cv_lib_tinfo_tgetent=no
4919fi
4920rm -f core conftest.err conftest.$ac_objext \
4921 conftest$ac_exeext conftest.$ac_ext
4922LIBS=$ac_check_lib_save_LIBS
4923fi
4924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
4925$as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
4926if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then :
4927 tinfo_lib=yes
4928else
4929 tinfo_lib=no
4930fi
4931
4932
4933if 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
4937fi
4938if test "$tinfo_lib" = yes; then
4939 rdllib="-ltinfo"
4940elif test "$ncurses_lib" = yes; then
4941 rdllib="-lncurses"
4942elif test "$termcap_lib" = yes; then
4943 rdllib="-ltermcap"
4944fi
4945
4946ac_fn_c_check_header_preproc "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h"
4947if test "x$ac_cv_header_readline_readline_h" = x""yes; then :
4948 readline_h=yes
4949else
4950 readline_h=no
4951fi
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; }
4956if test "${ac_cv_lib_readline_readline+set}" = set; then :
4957 $as_echo_n "(cached) " >&6
4958else
4959 ac_check_lib_save_LIBS=$LIBS
4960LIBS="-lreadline $rdllib $LIBS"
4961cat 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
4968extern "C"
4969#endif
4970char readline ();
4971int
4972main ()
4973{
4974return readline ();
4975 ;
4976 return 0;
4977}
4978_ACEOF
4979if ac_fn_c_try_link "$LINENO"; then :
4980 ac_cv_lib_readline_readline=yes
4981else
4982 ac_cv_lib_readline_readline=no
4983fi
4984rm -f core conftest.err conftest.$ac_objext \
4985 conftest$ac_exeext conftest.$ac_ext
4986LIBS=$ac_check_lib_save_LIBS
4987fi
4988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
4989$as_echo "$ac_cv_lib_readline_readline" >&6; }
4990if test "x$ac_cv_lib_readline_readline" = x""yes; then :
4991 readline_lib=yes
4992else
4993 readline_lib=no
4994fi
4995
4996if 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
5000fi
5001if test "$READLINE" = yes; then
5002 READLINE="-lreadline $rdllib"
5003fi
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; }
5008if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then :
5009 $as_echo_n "(cached) " >&6
5010else
5011 ac_check_lib_save_LIBS=$LIBS
5012LIBS="-lreadline "-ltermcap" $LIBS"
5013cat 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
5020extern "C"
5021#endif
5022char rl_completion_matches ();
5023int
5024main ()
5025{
5026return rl_completion_matches ();
5027 ;
5028 return 0;
5029}
5030_ACEOF
5031if ac_fn_c_try_link "$LINENO"; then :
5032 ac_cv_lib_readline_rl_completion_matches=yes
5033else
5034 ac_cv_lib_readline_rl_completion_matches=no
5035fi
5036rm -f core conftest.err conftest.$ac_objext \
5037 conftest$ac_exeext conftest.$ac_ext
5038LIBS=$ac_check_lib_save_LIBS
5039fi
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; }
5042if test "x$ac_cv_lib_readline_rl_completion_matches" = x""yes; then :
5043 rlcm=yes
5044else
5045 rlcm=no
5046fi
5047
5048if test "$rlcm" = yes; then
5049
5050$as_echo "#define HAVE_READLINE_RLCM 1" >>confdefs.h
5051
5052fi
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; }
5056if test "${ac_cv_lib_readline_rl_completion_append_character+set}" = set; then :
5057 $as_echo_n "(cached) " >&6
5058else
5059 ac_check_lib_save_LIBS=$LIBS
5060LIBS="-lreadline "-ltermcap" $LIBS"
5061cat 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
5068extern "C"
5069#endif
5070char rl_completion_append_character ();
5071int
5072main ()
5073{
5074return rl_completion_append_character ();
5075 ;
5076 return 0;
5077}
5078_ACEOF
5079if ac_fn_c_try_link "$LINENO"; then :
5080 ac_cv_lib_readline_rl_completion_append_character=yes
5081else
5082 ac_cv_lib_readline_rl_completion_append_character=no
5083fi
5084rm -f core conftest.err conftest.$ac_objext \
5085 conftest$ac_exeext conftest.$ac_ext
5086LIBS=$ac_check_lib_save_LIBS
5087fi
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; }
5090if test "x$ac_cv_lib_readline_rl_completion_append_character" = x""yes; then :
5091 rcac=yes
5092else
5093 rcac=no
5094fi
5095
5096if test "$rcac" = yes; then
5097
5098$as_echo "#define HAVE_READLINE_CAC 1" >>confdefs.h
5099
5100fi
5101
5102ac_fn_c_check_header_preproc "$LINENO" "zlib.h" "ac_cv_header_zlib_h"
5103if test "x$ac_cv_header_zlib_h" = x""yes; then :
5104 zlib_h=yes
5105else
5106 zlib_h=no
5107fi
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; }
5112if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
5113 $as_echo_n "(cached) " >&6
5114else
5115 ac_check_lib_save_LIBS=$LIBS
5116LIBS="-lz $LIBS"
5117cat 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
5124extern "C"
5125#endif
5126char zlibVersion ();
5127int
5128main ()
5129{
5130return zlibVersion ();
5131 ;
5132 return 0;
5133}
5134_ACEOF
5135if ac_fn_c_try_link "$LINENO"; then :
5136 ac_cv_lib_z_zlibVersion=yes
5137else
5138 ac_cv_lib_z_zlibVersion=no
5139fi
5140rm -f core conftest.err conftest.$ac_objext \
5141 conftest$ac_exeext conftest.$ac_ext
5142LIBS=$ac_check_lib_save_LIBS
5143fi
5144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
5145$as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
5146if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
5147 zlib_lib=yes
5148else
5149 zlib_lib=no
5150fi
5151
5152if 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
5161else
5162 ZLIB=""
5163fi
5164
5165
5166ac_fn_c_check_header_preproc "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h"
5167if test "x$ac_cv_header_bzlib_h" = x""yes; then :
5168 bzlib_h=yes
5169else
5170 bzlib_h=no
5171fi
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; }
5176if test "${ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress+set}" = set; then :
5177 $as_echo_n "(cached) " >&6
5178else
5179 ac_check_lib_save_LIBS=$LIBS
5180LIBS="-lbz2 $LIBS"
5181cat 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
5188extern "C"
5189#endif
5190char BZ2_bzBuffToBuffCompress ();
5191int
5192main ()
5193{
5194return BZ2_bzBuffToBuffCompress ();
5195 ;
5196 return 0;
5197}
5198_ACEOF
5199if ac_fn_c_try_link "$LINENO"; then :
5200 ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress=yes
5201else
5202 ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress=no
5203fi
5204rm -f core conftest.err conftest.$ac_objext \
5205 conftest$ac_exeext conftest.$ac_ext
5206LIBS=$ac_check_lib_save_LIBS
5207fi
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; }
5210if test "x$ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" = x""yes; then :
5211 bzlib_lib=yes
5212else
5213 bzlib_lib=no
5214fi
5215
5216if 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
5225else
5226 BZLIB=""
5227fi
5228
5229
5230for ac_func in err errx verr verrx vwarn vwarnx warn warnx realpath lchown
5231do :
5232 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5233ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5234if 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
5239fi
5240done
5241
5242ac_fn_c_check_func "$LINENO" "glob" "ac_cv_func_glob"
5243if test "x$ac_cv_func_glob" = x""yes; then :
5244
5245fi
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; }
5250if 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
5260if (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
5269else
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
5275fi
5276rm -f conftest*
5277
5278fi
5279
5280ac_fn_c_check_header_mongrel "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default"
5281if test "x$ac_cv_header_openssl_evp_h" = x""yes; then :
5282 evp_h=yes
5283else
5284 evp_h=no
5285fi
5286
5287
5288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CIPHER_CTX_set_padding in -lcrypto" >&5
5289$as_echo_n "checking for EVP_CIPHER_CTX_set_padding in -lcrypto... " >&6; }
5290if test "${ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding+set}" = set; then :
5291 $as_echo_n "(cached) " >&6
5292else
5293 ac_check_lib_save_LIBS=$LIBS
5294LIBS="-lcrypto $LIBS"
5295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296/* end confdefs.h. */
5297
5298/* Override any GCC internal prototype to avoid an error.
5299 Use char because int might match the return type of a GCC
5300 builtin and then its argument prototype would still apply. */
5301#ifdef __cplusplus
5302extern "C"
5303#endif
5304char EVP_CIPHER_CTX_set_padding ();
5305int
5306main ()
5307{
5308return EVP_CIPHER_CTX_set_padding ();
5309 ;
5310 return 0;
5311}
5312_ACEOF
5313if ac_fn_c_try_link "$LINENO"; then :
5314 ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding=yes
5315else
5316 ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding=no
5317fi
5318rm -f core conftest.err conftest.$ac_objext \
5319 conftest$ac_exeext conftest.$ac_ext
5320LIBS=$ac_check_lib_save_LIBS
5321fi
5322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding" >&5
5323$as_echo "$ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding" >&6; }
5324if test "x$ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding" = x""yes; then :
5325 crypto_lib=yes
5326else
5327 crypto_lib=no
5328fi
5329
5330if test "$evp_h" = yes -a "$crypto_lib" = yes; then
5331 if test "$STATICZ" = yes; then
5332 SSLLIB="-Wl,-Bstatic -lssl -Wl,-Bdynamic"
5333 else
5334 SSLLIB="-lssl"
5335 fi
5336
5337$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
5338
5339else
5340 SSLLIB=""
5341 if test "$ERMT" != ""; then
5342 as_fn_error or configure without --enable-ermt "You need to install the OpenSSL library (version 0.9.7a or later)" "$LINENO" 5
5343 fi
5344fi
5345
5346
5347ac_fn_c_check_type "$LINENO" "quad_t" "ac_cv_type_quad_t" "$ac_includes_default"
5348if test "x$ac_cv_type_quad_t" = x""yes; then :
5349
5350else
5351
5352cat >>confdefs.h <<_ACEOF
5353#define quad_t int64_t
5354_ACEOF
5355
5356fi
5357
5358ac_fn_c_check_type "$LINENO" "u_quad_t" "ac_cv_type_u_quad_t" "$ac_includes_default"
5359if test "x$ac_cv_type_u_quad_t" = x""yes; then :
5360
5361else
5362
5363cat >>confdefs.h <<_ACEOF
5364#define u_quad_t uint64_t
5365_ACEOF
5366
5367fi
5368
5369
5370top_builddir=`cd .; pwd`
5371
5372
5373test -d compat || mkdir compat
5374test -d compat/lib || mkdir compat/lib
5375
5376ac_config_files="$ac_config_files MCONFIG Makefile common/Makefile compat/include/Makefile compat/lib/Makefile dump/Makefile restore/Makefile testing/Makefile $RMTMAKEFILE"
5377
5378cat >confcache <<\_ACEOF
5379# This file is a shell script that caches the results of configure
5380# tests run on this system so they can be shared between configure
5381# scripts and configure runs, see configure's option --config-cache.
5382# It is not useful on other systems. If it contains results you don't
5383# want to keep, you may remove or edit it.
5384#
5385# config.status only pays attention to the cache file if you give it
5386# the --recheck option to rerun configure.
5387#
5388# `ac_cv_env_foo' variables (set or unset) will be overridden when
5389# loading this file, other *unset* `ac_cv_foo' will be assigned the
5390# following values.
5391
5392_ACEOF
5393
5394# The following way of writing the cache mishandles newlines in values,
5395# but we know of no workaround that is simple, portable, and efficient.
5396# So, we kill variables containing newlines.
5397# Ultrix sh set writes to stderr and can't be redirected directly,
5398# and sets the high bit in the cache file unless we assign to the vars.
5399(
5400 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5401 eval ac_val=\$$ac_var
5402 case $ac_val in #(
5403 *${as_nl}*)
5404 case $ac_var in #(
5405 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5406$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5407 esac
5408 case $ac_var in #(
5409 _ | IFS | as_nl) ;; #(
5410 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5411 *) { eval $ac_var=; unset $ac_var;} ;;
5412 esac ;;
5413 esac
5414 done
5415
5416 (set) 2>&1 |
5417 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5418 *${as_nl}ac_space=\ *)
5419 # `set' does not quote correctly, so add quotes: double-quote
5420 # substitution turns \\\\ into \\, and sed turns \\ into \.
5421 sed -n \
5422 "s/'/'\\\\''/g;
5423 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5424 ;; #(
5425 *)
5426 # `set' quotes correctly as required by POSIX, so do not add quotes.
5427 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5428 ;;
5429 esac |
5430 sort
5431) |
5432 sed '
5433 /^ac_cv_env_/b end
5434 t clear
5435 :clear
5436 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5437 t end
5438 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5439 :end' >>confcache
5440if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5441 if test -w "$cache_file"; then
5442 test "x$cache_file" != "x/dev/null" &&
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5444$as_echo "$as_me: updating cache $cache_file" >&6;}
5445 cat confcache >$cache_file
5446 else
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5448$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5449 fi
5450fi
5451rm -f confcache
5452
5453test "x$prefix" = xNONE && prefix=$ac_default_prefix
5454# Let make expand exec_prefix.
5455test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5456
5457DEFS=-DHAVE_CONFIG_H
5458
5459ac_libobjs=
5460ac_ltlibobjs=
5461U=
5462for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5463 # 1. Remove the extension, and $U if already installed.
5464 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5465 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5466 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5467 # will be set to the directory where LIBOBJS objects are built.
5468 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5469 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5470done
5471LIBOBJS=$ac_libobjs
5472
5473LTLIBOBJS=$ac_ltlibobjs
5474
5475
5476
5477: ${CONFIG_STATUS=./config.status}
5478ac_write_fail=0
5479ac_clean_files_save=$ac_clean_files
5480ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5481{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5482$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5483as_write_fail=0
5484cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5485#! $SHELL
5486# Generated by $as_me.
5487# Run this file to recreate the current configuration.
5488# Compiler output produced by configure, useful for debugging
5489# configure, is in config.log if it exists.
5490
5491debug=false
5492ac_cs_recheck=false
5493ac_cs_silent=false
5494
5495SHELL=\${CONFIG_SHELL-$SHELL}
5496export SHELL
5497_ASEOF
5498cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5499## -------------------- ##
5500## M4sh Initialization. ##
5501## -------------------- ##
5502
5503# Be more Bourne compatible
5504DUALCASE=1; export DUALCASE # for MKS sh
5505if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5506 emulate sh
5507 NULLCMD=:
5508 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5509 # is contrary to our usage. Disable this feature.
5510 alias -g '${1+"$@"}'='"$@"'
5511 setopt NO_GLOB_SUBST
5512else
5513 case `(set -o) 2>/dev/null` in #(
5514 *posix*) :
5515 set -o posix ;; #(
5516 *) :
5517 ;;
5518esac
5519fi
5520
5521
5522as_nl='
5523'
5524export as_nl
5525# Printing a long string crashes Solaris 7 /usr/bin/printf.
5526as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5527as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5528as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5529# Prefer a ksh shell builtin over an external printf program on Solaris,
5530# but without wasting forks for bash or zsh.
5531if test -z "$BASH_VERSION$ZSH_VERSION" \
5532 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5533 as_echo='print -r --'
5534 as_echo_n='print -rn --'
5535elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5536 as_echo='printf %s\n'
5537 as_echo_n='printf %s'
5538else
5539 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5540 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5541 as_echo_n='/usr/ucb/echo -n'
5542 else
5543 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5544 as_echo_n_body='eval
5545 arg=$1;
5546 case $arg in #(
5547 *"$as_nl"*)
5548 expr "X$arg" : "X\\(.*\\)$as_nl";
5549 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5550 esac;
5551 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5552 '
5553 export as_echo_n_body
5554 as_echo_n='sh -c $as_echo_n_body as_echo'
5555 fi
5556 export as_echo_body
5557 as_echo='sh -c $as_echo_body as_echo'
5558fi
5559
5560# The user is always right.
5561if test "${PATH_SEPARATOR+set}" != set; then
5562 PATH_SEPARATOR=:
5563 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5564 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5565 PATH_SEPARATOR=';'
5566 }
5567fi
5568
5569
5570# IFS
5571# We need space, tab and new line, in precisely that order. Quoting is
5572# there to prevent editors from complaining about space-tab.
5573# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5574# splitting by setting IFS to empty value.)
5575IFS=" "" $as_nl"
5576
5577# Find who we are. Look in the path if we contain no directory separator.
5578case $0 in #((
5579 *[\\/]* ) as_myself=$0 ;;
5580 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581for as_dir in $PATH
5582do
5583 IFS=$as_save_IFS
5584 test -z "$as_dir" && as_dir=.
5585 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5586 done
5587IFS=$as_save_IFS
5588
5589 ;;
5590esac
5591# We did not find ourselves, most probably we were run as `sh COMMAND'
5592# in which case we are not to be found in the path.
5593if test "x$as_myself" = x; then
5594 as_myself=$0
5595fi
5596if test ! -f "$as_myself"; then
5597 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5598 exit 1
5599fi
5600
5601# Unset variables that we do not need and which cause bugs (e.g. in
5602# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5603# suppresses any "Segmentation fault" message there. '((' could
5604# trigger a bug in pdksh 5.2.14.
5605for as_var in BASH_ENV ENV MAIL MAILPATH
5606do eval test x\${$as_var+set} = xset \
5607 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5608done
5609PS1='$ '
5610PS2='> '
5611PS4='+ '
5612
5613# NLS nuisances.
5614LC_ALL=C
5615export LC_ALL
5616LANGUAGE=C
5617export LANGUAGE
5618
5619# CDPATH.
5620(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5621
5622
5623# as_fn_error STATUS ERROR [LINENO LOG_FD]
5624# ----------------------------------------
5625# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5626# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5627# script with STATUS, using 1 if that was 0.
5628as_fn_error ()
5629{
5630 as_status=$1; test $as_status -eq 0 && as_status=1
5631 if test "$4"; then
5632 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5633 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5634 fi
5635 $as_echo "$as_me: error: $2" >&2
5636 as_fn_exit $as_status
5637} # as_fn_error
5638
5639
5640# as_fn_set_status STATUS
5641# -----------------------
5642# Set $? to STATUS, without forking.
5643as_fn_set_status ()
5644{
5645 return $1
5646} # as_fn_set_status
5647
5648# as_fn_exit STATUS
5649# -----------------
5650# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5651as_fn_exit ()
5652{
5653 set +e
5654 as_fn_set_status $1
5655 exit $1
5656} # as_fn_exit
5657
5658# as_fn_unset VAR
5659# ---------------
5660# Portably unset VAR.
5661as_fn_unset ()
5662{
5663 { eval $1=; unset $1;}
5664}
5665as_unset=as_fn_unset
5666# as_fn_append VAR VALUE
5667# ----------------------
5668# Append the text in VALUE to the end of the definition contained in VAR. Take
5669# advantage of any shell optimizations that allow amortized linear growth over
5670# repeated appends, instead of the typical quadratic growth present in naive
5671# implementations.
5672if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5673 eval 'as_fn_append ()
5674 {
5675 eval $1+=\$2
5676 }'
5677else
5678 as_fn_append ()
5679 {
5680 eval $1=\$$1\$2
5681 }
5682fi # as_fn_append
5683
5684# as_fn_arith ARG...
5685# ------------------
5686# Perform arithmetic evaluation on the ARGs, and store the result in the
5687# global $as_val. Take advantage of shells that can avoid forks. The arguments
5688# must be portable across $(()) and expr.
5689if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5690 eval 'as_fn_arith ()
5691 {
5692 as_val=$(( $* ))
5693 }'
5694else
5695 as_fn_arith ()
5696 {
5697 as_val=`expr "$@" || test $? -eq 1`
5698 }
5699fi # as_fn_arith
5700
5701
5702if expr a : '\(a\)' >/dev/null 2>&1 &&
5703 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5704 as_expr=expr
5705else
5706 as_expr=false
5707fi
5708
5709if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5710 as_basename=basename
5711else
5712 as_basename=false
5713fi
5714
5715if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5716 as_dirname=dirname
5717else
5718 as_dirname=false
5719fi
5720
5721as_me=`$as_basename -- "$0" ||
5722$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5723 X"$0" : 'X\(//\)$' \| \
5724 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5725$as_echo X/"$0" |
5726 sed '/^.*\/\([^/][^/]*\)\/*$/{
5727 s//\1/
5728 q
5729 }
5730 /^X\/\(\/\/\)$/{
5731 s//\1/
5732 q
5733 }
5734 /^X\/\(\/\).*/{
5735 s//\1/
5736 q
5737 }
5738 s/.*/./; q'`
5739
5740# Avoid depending upon Character Ranges.
5741as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5742as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5743as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5744as_cr_digits='0123456789'
5745as_cr_alnum=$as_cr_Letters$as_cr_digits
5746
5747ECHO_C= ECHO_N= ECHO_T=
5748case `echo -n x` in #(((((
5749-n*)
5750 case `echo 'xy\c'` in
5751 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5752 xy) ECHO_C='\c';;
5753 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5754 ECHO_T=' ';;
5755 esac;;
5756*)
5757 ECHO_N='-n';;
5758esac
5759
5760rm -f conf$$ conf$$.exe conf$$.file
5761if test -d conf$$.dir; then
5762 rm -f conf$$.dir/conf$$.file
5763else
5764 rm -f conf$$.dir
5765 mkdir conf$$.dir 2>/dev/null
5766fi
5767if (echo >conf$$.file) 2>/dev/null; then
5768 if ln -s conf$$.file conf$$ 2>/dev/null; then
5769 as_ln_s='ln -s'
5770 # ... but there are two gotchas:
5771 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5772 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5773 # In both cases, we have to default to `cp -p'.
5774 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5775 as_ln_s='cp -p'
5776 elif ln conf$$.file conf$$ 2>/dev/null; then
5777 as_ln_s=ln
5778 else
5779 as_ln_s='cp -p'
5780 fi
5781else
5782 as_ln_s='cp -p'
5783fi
5784rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5785rmdir conf$$.dir 2>/dev/null
5786
5787
5788# as_fn_mkdir_p
5789# -------------
5790# Create "$as_dir" as a directory, including parents if necessary.
5791as_fn_mkdir_p ()
5792{
5793
5794 case $as_dir in #(
5795 -*) as_dir=./$as_dir;;
5796 esac
5797 test -d "$as_dir" || eval $as_mkdir_p || {
5798 as_dirs=
5799 while :; do
5800 case $as_dir in #(
5801 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5802 *) as_qdir=$as_dir;;
5803 esac
5804 as_dirs="'$as_qdir' $as_dirs"
5805 as_dir=`$as_dirname -- "$as_dir" ||
5806$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5807 X"$as_dir" : 'X\(//\)[^/]' \| \
5808 X"$as_dir" : 'X\(//\)$' \| \
5809 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5810$as_echo X"$as_dir" |
5811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5812 s//\1/
5813 q
5814 }
5815 /^X\(\/\/\)[^/].*/{
5816 s//\1/
5817 q
5818 }
5819 /^X\(\/\/\)$/{
5820 s//\1/
5821 q
5822 }
5823 /^X\(\/\).*/{
5824 s//\1/
5825 q
5826 }
5827 s/.*/./; q'`
5828 test -d "$as_dir" && break
5829 done
5830 test -z "$as_dirs" || eval "mkdir $as_dirs"
5831 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5832
5833
5834} # as_fn_mkdir_p
5835if mkdir -p . 2>/dev/null; then
5836 as_mkdir_p='mkdir -p "$as_dir"'
5837else
5838 test -d ./-p && rmdir ./-p
5839 as_mkdir_p=false
5840fi
5841
5842if test -x / >/dev/null 2>&1; then
5843 as_test_x='test -x'
5844else
5845 if ls -dL / >/dev/null 2>&1; then
5846 as_ls_L_option=L
5847 else
5848 as_ls_L_option=
5849 fi
5850 as_test_x='
5851 eval sh -c '\''
5852 if test -d "$1"; then
5853 test -d "$1/.";
5854 else
5855 case $1 in #(
5856 -*)set "./$1";;
5857 esac;
5858 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5859 ???[sx]*):;;*)false;;esac;fi
5860 '\'' sh
5861 '
5862fi
5863as_executable_p=$as_test_x
5864
5865# Sed expression to map a string onto a valid CPP name.
5866as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5867
5868# Sed expression to map a string onto a valid variable name.
5869as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5870
5871
5872exec 6>&1
5873## ----------------------------------- ##
5874## Main body of $CONFIG_STATUS script. ##
5875## ----------------------------------- ##
5876_ASEOF
5877test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5878
5879cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5880# Save the log message, to keep $0 and so on meaningful, and to
5881# report actual input values of CONFIG_FILES etc. instead of their
5882# values after options handling.
5883ac_log="
5884This file was extended by $as_me, which was
5885generated by GNU Autoconf 2.67. Invocation command line was
5886
5887 CONFIG_FILES = $CONFIG_FILES
5888 CONFIG_HEADERS = $CONFIG_HEADERS
5889 CONFIG_LINKS = $CONFIG_LINKS
5890 CONFIG_COMMANDS = $CONFIG_COMMANDS
5891 $ $0 $@
5892
5893on `(hostname || uname -n) 2>/dev/null | sed 1q`
5894"
5895
5896_ACEOF
5897
5898case $ac_config_files in *"
5899"*) set x $ac_config_files; shift; ac_config_files=$*;;
5900esac
5901
5902case $ac_config_headers in *"
5903"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5904esac
5905
5906
5907cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5908# Files that config.status was made for.
5909config_files="$ac_config_files"
5910config_headers="$ac_config_headers"
5911
5912_ACEOF
5913
5914cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5915ac_cs_usage="\
5916\`$as_me' instantiates files and other configuration actions
5917from templates according to the current configuration. Unless the files
5918and actions are specified as TAGs, all are instantiated by default.
5919
5920Usage: $0 [OPTION]... [TAG]...
5921
5922 -h, --help print this help, then exit
5923 -V, --version print version number and configuration settings, then exit
5924 --config print configuration, then exit
5925 -q, --quiet, --silent
5926 do not print progress messages
5927 -d, --debug don't remove temporary files
5928 --recheck update $as_me by reconfiguring in the same conditions
5929 --file=FILE[:TEMPLATE]
5930 instantiate the configuration file FILE
5931 --header=FILE[:TEMPLATE]
5932 instantiate the configuration header FILE
5933
5934Configuration files:
5935$config_files
5936
5937Configuration headers:
5938$config_headers
5939
5940Report bugs to the package provider."
5941
5942_ACEOF
5943cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5944ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5945ac_cs_version="\\
5946config.status
5947configured by $0, generated by GNU Autoconf 2.67,
5948 with options \\"\$ac_cs_config\\"
5949
5950Copyright (C) 2010 Free Software Foundation, Inc.
5951This config.status script is free software; the Free Software Foundation
5952gives unlimited permission to copy, distribute and modify it."
5953
5954ac_pwd='$ac_pwd'
5955srcdir='$srcdir'
5956INSTALL='$INSTALL'
5957test -n "\$AWK" || AWK=awk
5958_ACEOF
5959
5960cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5961# The default lists apply if the user does not specify any file.
5962ac_need_defaults=:
5963while test $# != 0
5964do
5965 case $1 in
5966 --*=?*)
5967 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5968 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5969 ac_shift=:
5970 ;;
5971 --*=)
5972 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5973 ac_optarg=
5974 ac_shift=:
5975 ;;
5976 *)
5977 ac_option=$1
5978 ac_optarg=$2
5979 ac_shift=shift
5980 ;;
5981 esac
5982
5983 case $ac_option in
5984 # Handling of the options.
5985 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5986 ac_cs_recheck=: ;;
5987 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5988 $as_echo "$ac_cs_version"; exit ;;
5989 --config | --confi | --conf | --con | --co | --c )
5990 $as_echo "$ac_cs_config"; exit ;;
5991 --debug | --debu | --deb | --de | --d | -d )
5992 debug=: ;;
5993 --file | --fil | --fi | --f )
5994 $ac_shift
5995 case $ac_optarg in
5996 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5997 '') as_fn_error $? "missing file argument" ;;
5998 esac
5999 as_fn_append CONFIG_FILES " '$ac_optarg'"
6000 ac_need_defaults=false;;
6001 --header | --heade | --head | --hea )
6002 $ac_shift
6003 case $ac_optarg in
6004 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6005 esac
6006 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6007 ac_need_defaults=false;;
6008 --he | --h)
6009 # Conflict between --help and --header
6010 as_fn_error $? "ambiguous option: \`$1'
6011Try \`$0 --help' for more information.";;
6012 --help | --hel | -h )
6013 $as_echo "$ac_cs_usage"; exit ;;
6014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6015 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6016 ac_cs_silent=: ;;
6017
6018 # This is an error.
6019 -*) as_fn_error $? "unrecognized option: \`$1'
6020Try \`$0 --help' for more information." ;;
6021
6022 *) as_fn_append ac_config_targets " $1"
6023 ac_need_defaults=false ;;
6024
6025 esac
6026 shift
6027done
6028
6029ac_configure_extra_args=
6030
6031if $ac_cs_silent; then
6032 exec 6>/dev/null
6033 ac_configure_extra_args="$ac_configure_extra_args --silent"
6034fi
6035
6036_ACEOF
6037cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6038if \$ac_cs_recheck; then
6039 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6040 shift
6041 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6042 CONFIG_SHELL='$SHELL'
6043 export CONFIG_SHELL
6044 exec "\$@"
6045fi
6046
6047_ACEOF
6048cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6049exec 5>>config.log
6050{
6051 echo
6052 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6053## Running $as_me. ##
6054_ASBOX
6055 $as_echo "$ac_log"
6056} >&5
6057
6058_ACEOF
6059cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6060_ACEOF
6061
6062cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6063
6064# Handling of arguments.
6065for ac_config_target in $ac_config_targets
6066do
6067 case $ac_config_target in
6068 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6069 "MCONFIG") CONFIG_FILES="$CONFIG_FILES MCONFIG" ;;
6070 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6071 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
6072 "compat/include/Makefile") CONFIG_FILES="$CONFIG_FILES compat/include/Makefile" ;;
6073 "compat/lib/Makefile") CONFIG_FILES="$CONFIG_FILES compat/lib/Makefile" ;;
6074 "dump/Makefile") CONFIG_FILES="$CONFIG_FILES dump/Makefile" ;;
6075 "restore/Makefile") CONFIG_FILES="$CONFIG_FILES restore/Makefile" ;;
6076 "testing/Makefile") CONFIG_FILES="$CONFIG_FILES testing/Makefile" ;;
6077 "$RMTMAKEFILE") CONFIG_FILES="$CONFIG_FILES $RMTMAKEFILE" ;;
6078
6079 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
6080 esac
6081done
6082
6083
6084# If the user did not use the arguments to specify the items to instantiate,
6085# then the envvar interface is used. Set only those that are not.
6086# We use the long form for the default assignment because of an extremely
6087# bizarre bug on SunOS 4.1.3.
6088if $ac_need_defaults; then
6089 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6090 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6091fi
6092
6093# Have a temporary directory for convenience. Make it in the build tree
6094# simply because there is no reason against having it here, and in addition,
6095# creating and moving files from /tmp can sometimes cause problems.
6096# Hook for its removal unless debugging.
6097# Note that there is a small window in which the directory will not be cleaned:
6098# after its creation but before its name has been assigned to `$tmp'.
6099$debug ||
6100{
6101 tmp=
6102 trap 'exit_status=$?
6103 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6104' 0
6105 trap 'as_fn_exit 1' 1 2 13 15
6106}
6107# Create a (secure) tmp directory for tmp files.
6108
6109{
6110 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6111 test -n "$tmp" && test -d "$tmp"
6112} ||
6113{
6114 tmp=./conf$$-$RANDOM
6115 (umask 077 && mkdir "$tmp")
6116} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6117
6118# Set up the scripts for CONFIG_FILES section.
6119# No need to generate them if there are no CONFIG_FILES.
6120# This happens for instance with `./config.status config.h'.
6121if test -n "$CONFIG_FILES"; then
6122
6123if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
6124 ac_cs_awk_getline=:
6125 ac_cs_awk_pipe_init=
6126 ac_cs_awk_read_file='
6127 while ((getline aline < (F[key])) > 0)
6128 print(aline)
6129 close(F[key])'
6130 ac_cs_awk_pipe_fini=
6131else
6132 ac_cs_awk_getline=false
6133 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
6134 ac_cs_awk_read_file='
6135 print "|#_!!_#|"
6136 print "cat " F[key] " &&"
6137 '$ac_cs_awk_pipe_init
6138 # The final `:' finishes the AND list.
6139 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
6140fi
6141ac_cr=`echo X | tr X '\015'`
6142# On cygwin, bash can eat \r inside `` if the user requested igncr.
6143# But we know of no other shell where ac_cr would be empty at this
6144# point, so we can use a bashism as a fallback.
6145if test "x$ac_cr" = x; then
6146 eval ac_cr=\$\'\\r\'
6147fi
6148ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6149if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6150 ac_cs_awk_cr='\\r'
6151else
6152 ac_cs_awk_cr=$ac_cr
6153fi
6154
6155echo 'BEGIN {' >"$tmp/subs1.awk" &&
6156_ACEOF
6157
6158# Create commands to substitute file output variables.
6159{
6160 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
6161 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
6162 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
6163 echo "_ACAWK" &&
6164 echo "_ACEOF"
6165} >conf$$files.sh &&
6166. ./conf$$files.sh ||
6167 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6168rm -f conf$$files.sh
6169
6170{
6171 echo "cat >conf$$subs.awk <<_ACEOF" &&
6172 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6173 echo "_ACEOF"
6174} >conf$$subs.sh ||
6175 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6176ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6177ac_delim='%!_!# '
6178for ac_last_try in false false false false false :; do
6179 . ./conf$$subs.sh ||
6180 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6181
6182 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6183 if test $ac_delim_n = $ac_delim_num; then
6184 break
6185 elif $ac_last_try; then
6186 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6187 else
6188 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6189 fi
6190done
6191rm -f conf$$subs.sh
6192
6193cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6194cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6195_ACEOF
6196sed -n '
6197h
6198s/^/S["/; s/!.*/"]=/
6199p
6200g
6201s/^[^!]*!//
6202:repl
6203t repl
6204s/'"$ac_delim"'$//
6205t delim
6206:nl
6207h
6208s/\(.\{148\}\)..*/\1/
6209t more1
6210s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6211p
6212n
6213b repl
6214:more1
6215s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6216p
6217g
6218s/.\{148\}//
6219t nl
6220:delim
6221h
6222s/\(.\{148\}\)..*/\1/
6223t more2
6224s/["\\]/\\&/g; s/^/"/; s/$/"/
6225p
6226b
6227:more2
6228s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6229p
6230g
6231s/.\{148\}//
6232t delim
6233' <conf$$subs.awk | sed '
6234/^[^""]/{
6235 N
6236 s/\n//
6237}
6238' >>$CONFIG_STATUS || ac_write_fail=1
6239rm -f conf$$subs.awk
6240cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6241_ACAWK
6242cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6243 for (key in S) S_is_set[key] = 1
6244 FS = "\a"
6245 \$ac_cs_awk_pipe_init
6246}
6247{
6248 line = $ 0
6249 nfields = split(line, field, "@")
6250 substed = 0
6251 len = length(field[1])
6252 for (i = 2; i < nfields; i++) {
6253 key = field[i]
6254 keylen = length(key)
6255 if (S_is_set[key]) {
6256 value = S[key]
6257 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6258 len += length(value) + length(field[++i])
6259 substed = 1
6260 } else
6261 len += 1 + keylen
6262 }
6263 if (nfields == 3 && !substed) {
6264 key = field[2]
6265 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
6266 \$ac_cs_awk_read_file
6267 next
6268 }
6269 }
6270 print line
6271}
6272\$ac_cs_awk_pipe_fini
6273_ACAWK
6274_ACEOF
6275cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6276if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6277 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6278else
6279 cat
6280fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6281 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6282_ACEOF
6283
6284# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6285# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6286# trailing colons and then remove the whole line if VPATH becomes empty
6287# (actually we leave an empty line to preserve line numbers).
6288if test "x$srcdir" = x.; then
6289 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6290h
6291s///
6292s/^/:/
6293s/[ ]*$/:/
6294s/:\$(srcdir):/:/g
6295s/:\${srcdir}:/:/g
6296s/:@srcdir@:/:/g
6297s/^:*//
6298s/:*$//
6299x
6300s/\(=[ ]*\).*/\1/
6301G
6302s/\n//
6303s/^[^=]*=[ ]*$//
6304}'
6305fi
6306
6307cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6308fi # test -n "$CONFIG_FILES"
6309
6310# Set up the scripts for CONFIG_HEADERS section.
6311# No need to generate them if there are no CONFIG_HEADERS.
6312# This happens for instance with `./config.status Makefile'.
6313if test -n "$CONFIG_HEADERS"; then
6314cat >"$tmp/defines.awk" <<\_ACAWK ||
6315BEGIN {
6316_ACEOF
6317
6318# Transform confdefs.h into an awk script `defines.awk', embedded as
6319# here-document in config.status, that substitutes the proper values into
6320# config.h.in to produce config.h.
6321
6322# Create a delimiter string that does not exist in confdefs.h, to ease
6323# handling of long lines.
6324ac_delim='%!_!# '
6325for ac_last_try in false false :; do
6326 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6327 if test -z "$ac_t"; then
6328 break
6329 elif $ac_last_try; then
6330 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6331 else
6332 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6333 fi
6334done
6335
6336# For the awk script, D is an array of macro values keyed by name,
6337# likewise P contains macro parameters if any. Preserve backslash
6338# newline sequences.
6339
6340ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6341sed -n '
6342s/.\{148\}/&'"$ac_delim"'/g
6343t rset
6344:rset
6345s/^[ ]*#[ ]*define[ ][ ]*/ /
6346t def
6347d
6348:def
6349s/\\$//
6350t bsnl
6351s/["\\]/\\&/g
6352s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6353D["\1"]=" \3"/p
6354s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6355d
6356:bsnl
6357s/["\\]/\\&/g
6358s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6359D["\1"]=" \3\\\\\\n"\\/p
6360t cont
6361s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6362t cont
6363d
6364:cont
6365n
6366s/.\{148\}/&'"$ac_delim"'/g
6367t clear
6368:clear
6369s/\\$//
6370t bsnlc
6371s/["\\]/\\&/g; s/^/"/; s/$/"/p
6372d
6373:bsnlc
6374s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6375b cont
6376' <confdefs.h | sed '
6377s/'"$ac_delim"'/"\\\
6378"/g' >>$CONFIG_STATUS || ac_write_fail=1
6379
6380cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6381 for (key in D) D_is_set[key] = 1
6382 FS = "\a"
6383}
6384/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6385 line = \$ 0
6386 split(line, arg, " ")
6387 if (arg[1] == "#") {
6388 defundef = arg[2]
6389 mac1 = arg[3]
6390 } else {
6391 defundef = substr(arg[1], 2)
6392 mac1 = arg[2]
6393 }
6394 split(mac1, mac2, "(") #)
6395 macro = mac2[1]
6396 prefix = substr(line, 1, index(line, defundef) - 1)
6397 if (D_is_set[macro]) {
6398 # Preserve the white space surrounding the "#".
6399 print prefix "define", macro P[macro] D[macro]
6400 next
6401 } else {
6402 # Replace #undef with comments. This is necessary, for example,
6403 # in the case of _POSIX_SOURCE, which is predefined and required
6404 # on some systems where configure will not decide to define it.
6405 if (defundef == "undef") {
6406 print "/*", prefix defundef, macro, "*/"
6407 next
6408 }
6409 }
6410}
6411{ print }
6412_ACAWK
6413_ACEOF
6414cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6415 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6416fi # test -n "$CONFIG_HEADERS"
6417
6418
6419eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6420shift
6421for ac_tag
6422do
6423 case $ac_tag in
6424 :[FHLC]) ac_mode=$ac_tag; continue;;
6425 esac
6426 case $ac_mode$ac_tag in
6427 :[FHL]*:*);;
6428 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
6429 :[FH]-) ac_tag=-:-;;
6430 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6431 esac
6432 ac_save_IFS=$IFS
6433 IFS=:
6434 set x $ac_tag
6435 IFS=$ac_save_IFS
6436 shift
6437 ac_file=$1
6438 shift
6439
6440 case $ac_mode in
6441 :L) ac_source=$1;;
6442 :[FH])
6443 ac_file_inputs=
6444 for ac_f
6445 do
6446 case $ac_f in
6447 -) ac_f="$tmp/stdin";;
6448 *) # Look for the file first in the build tree, then in the source tree
6449 # (if the path is not absolute). The absolute path cannot be DOS-style,
6450 # because $ac_f cannot contain `:'.
6451 test -f "$ac_f" ||
6452 case $ac_f in
6453 [\\/$]*) false;;
6454 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6455 esac ||
6456 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
6457 esac
6458 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6459 as_fn_append ac_file_inputs " '$ac_f'"
6460 done
6461
6462 # Let's still pretend it is `configure' which instantiates (i.e., don't
6463 # use $as_me), people would be surprised to read:
6464 # /* config.h. Generated by config.status. */
6465 configure_input='Generated from '`
6466 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6467 `' by configure.'
6468 if test x"$ac_file" != x-; then
6469 configure_input="$ac_file. $configure_input"
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6471$as_echo "$as_me: creating $ac_file" >&6;}
6472 fi
6473 # Neutralize special characters interpreted by sed in replacement strings.
6474 case $configure_input in #(
6475 *\&* | *\|* | *\\* )
6476 ac_sed_conf_input=`$as_echo "$configure_input" |
6477 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6478 *) ac_sed_conf_input=$configure_input;;
6479 esac
6480
6481 case $ac_tag in
6482 *:-:* | *:-) cat >"$tmp/stdin" \
6483 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6484 esac
6485 ;;
6486 esac
6487
6488 ac_dir=`$as_dirname -- "$ac_file" ||
6489$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6490 X"$ac_file" : 'X\(//\)[^/]' \| \
6491 X"$ac_file" : 'X\(//\)$' \| \
6492 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6493$as_echo X"$ac_file" |
6494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6495 s//\1/
6496 q
6497 }
6498 /^X\(\/\/\)[^/].*/{
6499 s//\1/
6500 q
6501 }
6502 /^X\(\/\/\)$/{
6503 s//\1/
6504 q
6505 }
6506 /^X\(\/\).*/{
6507 s//\1/
6508 q
6509 }
6510 s/.*/./; q'`
6511 as_dir="$ac_dir"; as_fn_mkdir_p
6512 ac_builddir=.
6513
6514case "$ac_dir" in
6515.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6516*)
6517 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6518 # A ".." for each directory in $ac_dir_suffix.
6519 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6520 case $ac_top_builddir_sub in
6521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6523 esac ;;
6524esac
6525ac_abs_top_builddir=$ac_pwd
6526ac_abs_builddir=$ac_pwd$ac_dir_suffix
6527# for backward compatibility:
6528ac_top_builddir=$ac_top_build_prefix
6529
6530case $srcdir in
6531 .) # We are building in place.
6532 ac_srcdir=.
6533 ac_top_srcdir=$ac_top_builddir_sub
6534 ac_abs_top_srcdir=$ac_pwd ;;
6535 [\\/]* | ?:[\\/]* ) # Absolute name.
6536 ac_srcdir=$srcdir$ac_dir_suffix;
6537 ac_top_srcdir=$srcdir
6538 ac_abs_top_srcdir=$srcdir ;;
6539 *) # Relative name.
6540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6541 ac_top_srcdir=$ac_top_build_prefix$srcdir
6542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6543esac
6544ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6545
6546
6547 case $ac_mode in
6548 :F)
6549 #
6550 # CONFIG_FILE
6551 #
6552
6553 case $INSTALL in
6554 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6555 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6556 esac
6557_ACEOF
6558
6559cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6560# If the template does not know about datarootdir, expand it.
6561# FIXME: This hack should be removed a few years after 2.60.
6562ac_datarootdir_hack=; ac_datarootdir_seen=
6563ac_sed_dataroot='
6564/datarootdir/ {
6565 p
6566 q
6567}
6568/@datadir@/p
6569/@docdir@/p
6570/@infodir@/p
6571/@localedir@/p
6572/@mandir@/p'
6573case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6574*datarootdir*) ac_datarootdir_seen=yes;;
6575*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6577$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6578_ACEOF
6579cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6580 ac_datarootdir_hack='
6581 s&@datadir@&$datadir&g
6582 s&@docdir@&$docdir&g
6583 s&@infodir@&$infodir&g
6584 s&@localedir@&$localedir&g
6585 s&@mandir@&$mandir&g
6586 s&\\\${datarootdir}&$datarootdir&g' ;;
6587esac
6588_ACEOF
6589
6590# Neutralize VPATH when `$srcdir' = `.'.
6591# Shell code in configure.ac might set extrasub.
6592# FIXME: do we really want to maintain this feature?
6593cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6594ac_sed_extra="$ac_vpsub
6595$extrasub
6596_ACEOF
6597cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6598:t
6599/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6600s|@configure_input@|$ac_sed_conf_input|;t t
6601s&@top_builddir@&$ac_top_builddir_sub&;t t
6602s&@top_build_prefix@&$ac_top_build_prefix&;t t
6603s&@srcdir@&$ac_srcdir&;t t
6604s&@abs_srcdir@&$ac_abs_srcdir&;t t
6605s&@top_srcdir@&$ac_top_srcdir&;t t
6606s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6607s&@builddir@&$ac_builddir&;t t
6608s&@abs_builddir@&$ac_abs_builddir&;t t
6609s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6610s&@INSTALL@&$ac_INSTALL&;t t
6611$ac_datarootdir_hack
6612"
6613eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
6614if $ac_cs_awk_getline; then
6615 $AWK -f "$tmp/subs.awk"
6616else
6617 $AWK -f "$tmp/subs.awk" | $SHELL
6618fi >$tmp/out \
6619 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6620
6621test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6622 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6623 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6625which seems to be undefined. Please make sure it is defined" >&5
6626$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6627which seems to be undefined. Please make sure it is defined" >&2;}
6628
6629 rm -f "$tmp/stdin"
6630 case $ac_file in
6631 -) cat "$tmp/out" && rm -f "$tmp/out";;
6632 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6633 esac \
6634 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6635 ;;
6636 :H)
6637 #
6638 # CONFIG_HEADER
6639 #
6640 if test x"$ac_file" != x-; then
6641 {
6642 $as_echo "/* $configure_input */" \
6643 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6644 } >"$tmp/config.h" \
6645 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6646 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6648$as_echo "$as_me: $ac_file is unchanged" >&6;}
6649 else
6650 rm -f "$ac_file"
6651 mv "$tmp/config.h" "$ac_file" \
6652 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6653 fi
6654 else
6655 $as_echo "/* $configure_input */" \
6656 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6657 || as_fn_error $? "could not create -" "$LINENO" 5
6658 fi
6659 ;;
6660
6661
6662 esac
6663
6664done # for ac_tag
6665
6666
6667as_fn_exit 0
6668_ACEOF
6669ac_clean_files=$ac_clean_files_save
6670
6671test $ac_write_fail = 0 ||
6672 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6673
6674
6675# configure is writing to config.log, and then calls config.status.
6676# config.status does its own redirection, appending to config.log.
6677# Unfortunately, on DOS this fails, as config.log is still kept open
6678# by configure, so config.status won't be able to write to it; its
6679# output is simply discarded. So we exec the FD to /dev/null,
6680# effectively closing config.log, so it can be properly (re)opened and
6681# appended to by config.status. When coming back to configure, we
6682# need to make the FD available again.
6683if test "$no_create" != yes; then
6684 ac_cs_success=:
6685 ac_config_status_args=
6686 test "$silent" = yes &&
6687 ac_config_status_args="$ac_config_status_args --quiet"
6688 exec 5>/dev/null
6689 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6690 exec 5>>config.log
6691 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6692 # would make configure fail if this is the last instruction.
6693 $ac_cs_success || as_fn_exit 1
6694fi
6695if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6697$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6698fi
6699