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