Fix restore dumping core in some situations due to the previous (incomplete) fix
[dump.git] / configure
CommitLineData
1227625a 1#! /bin/sh
1227625a 2# Guess values for system-dependent variables and create Makefiles.
572eed31 3# Generated by GNU Autoconf 2.63.
1227625a 4#
7f7d329e 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
572eed31 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1227625a
SP
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
1daf06b9
SP
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
d2816d4c
SP
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
1daf06b9
SP
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
572eed31 18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
cdfe1392
SP
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
7f7d329e
SP
21 setopt NO_GLOB_SUBST
22else
d2816d4c
SP
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
1daf06b9 27fi
d2816d4c
SP
28
29
1daf06b9 30
7f7d329e
SP
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
572eed31
SP
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
7f7d329e 54 else
572eed31
SP
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
7f7d329e 67 fi
572eed31
SP
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
7f7d329e
SP
79fi
80
1daf06b9 81# Support unset when possible.
c9e4e868 82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1daf06b9
SP
83 as_unset=unset
84else
85 as_unset=false
86fi
87
cdfe1392 88
7f7d329e
SP
89# IFS
90# We need space, tab and new line, in precisely that order. Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
7f7d329e
SP
94IFS=" "" $as_nl"
95
96# Find who we are. Look in the path if we contain no directory separator.
97case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108 ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113 as_myself=$0
114fi
115if test ! -f "$as_myself"; then
572eed31 116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7f7d329e
SP
117 { (exit 1); exit 1; }
118fi
119
cdfe1392 120# Work around bugs in pre-3.0 UWIN ksh.
7f7d329e
SP
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
cdfe1392
SP
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
572eed31
SP
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
cdfe1392
SP
133
134# Required to use basename.
7f7d329e
SP
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
cdfe1392
SP
137 as_expr=expr
138else
139 as_expr=false
140fi
141
7f7d329e 142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
cdfe1392
SP
143 as_basename=basename
144else
145 as_basename=false
146fi
1daf06b9
SP
147
148
149# Name of the executable.
7f7d329e 150as_me=`$as_basename -- "$0" ||
1daf06b9
SP
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
7f7d329e 153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
572eed31 154$as_echo X/"$0" |
7f7d329e
SP
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
1daf06b9 168
7f7d329e
SP
169# CDPATH.
170$as_unset CDPATH
cdfe1392 171
1daf06b9 172
7f7d329e
SP
173if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176else
177 as_have_required=no
1daf06b9
SP
178fi
179
572eed31 180 if test $as_have_required = yes && (eval ":
7f7d329e
SP
181(as_func_return () {
182 (exit \$1)
183}
184as_func_success () {
185 as_func_return 0
186}
187as_func_failure () {
188 as_func_return 1
189}
190as_func_ret_success () {
191 return 0
192}
193as_func_ret_failure () {
194 return 1
195}
1daf06b9 196
7f7d329e
SP
197exitcode=0
198if as_func_success; then
199 :
200else
201 exitcode=1
202 echo as_func_success failed.
203fi
1daf06b9 204
7f7d329e
SP
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211 :
212else
213 exitcode=1
214 echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224else
225 exitcode=1
226 echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237 :
238else
239 as_candidate_shells=
1daf06b9 240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d2816d4c 241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1daf06b9
SP
242do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
7f7d329e 245 case $as_dir in
1daf06b9 246 /*)
7f7d329e
SP
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251done
252IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
7f7d329e
SP
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
572eed31 262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7f7d329e
SP
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
d2816d4c
SP
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269esac
270
7f7d329e 271fi
d2816d4c 272
7f7d329e
SP
273
274:
275_ASEOF
276}; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
7f7d329e
SP
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
572eed31 283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7f7d329e
SP
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287else
d2816d4c
SP
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290esac
291
7f7d329e 292fi
d2816d4c 293
7f7d329e
SP
294
295:
296(as_func_return () {
297 (exit $1)
298}
299as_func_success () {
300 as_func_return 0
301}
302as_func_failure () {
303 as_func_return 1
304}
305as_func_ret_success () {
306 return 0
307}
308as_func_ret_failure () {
309 return 1
310}
311
312exitcode=0
313if as_func_success; then
314 :
315else
316 exitcode=1
317 echo as_func_success failed.
318fi
319
320if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326 :
327else
328 exitcode=1
329 echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339else
340 exitcode=1
341 echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
1daf06b9
SP
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
1daf06b9 349 test "x$as_lineno_1" != "x$as_lineno_2" &&
7f7d329e
SP
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354 break
355fi
356
357fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
572eed31
SP
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
7f7d329e
SP
367fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386 (exit \$1)
387}
388as_func_success () {
389 as_func_return 0
390}
391as_func_failure () {
392 as_func_return 1
393}
394as_func_ret_success () {
395 return 0
396}
397as_func_ret_failure () {
398 return 1
399}
400
401exitcode=0
402if as_func_success; then
403 :
404else
405 exitcode=1
406 echo as_func_success failed.
407fi
408
409if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
416else
417 exitcode=1
418 echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428else
429 exitcode=1
430 echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
572eed31
SP
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
7f7d329e
SP
439}
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1daf06b9
SP
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
7f7d329e
SP
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
1daf06b9 455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7f7d329e
SP
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
1daf06b9 462 sed '
7f7d329e
SP
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
1daf06b9 467 N
7f7d329e
SP
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1daf06b9 470 t loop
7f7d329e 471 s/-\n.*//
1daf06b9 472 ' >$as_me.lineno &&
7f7d329e 473 chmod +x "$as_me.lineno" ||
572eed31 474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
1daf06b9
SP
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
7f7d329e
SP
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
1daf06b9
SP
481 # Exit status is that of the last command.
482 exit
483}
484
485
7f7d329e
SP
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499*)
500 ECHO_N='-n';;
1daf06b9 501esac
7f7d329e
SP
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1daf06b9
SP
504 as_expr=expr
505else
506 as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
7f7d329e
SP
510if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512else
513 rm -f conf$$.dir
572eed31
SP
514 mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
1daf06b9 528 as_ln_s='cp -p'
572eed31 529 fi
1daf06b9
SP
530else
531 as_ln_s='cp -p'
532fi
7f7d329e
SP
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
1daf06b9 535
cdfe1392
SP
536if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538else
c9e4e868 539 test -d ./-p && rmdir ./-p
cdfe1392
SP
540 as_mkdir_p=false
541fi
542
d2816d4c
SP
543if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
7f7d329e 545else
d2816d4c
SP
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
572eed31 554 test -d "$1/.";
d2816d4c
SP
555 else
556 case $1 in
572eed31 557 -*)set "./$1";;
d2816d4c
SP
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
7f7d329e 563fi
d2816d4c 564as_executable_p=$as_test_x
1daf06b9
SP
565
566# Sed expression to map a string onto a valid CPP name.
c9e4e868 567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1daf06b9
SP
568
569# Sed expression to map a string onto a valid variable name.
c9e4e868 570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1daf06b9
SP
571
572
1daf06b9 573
7f7d329e 574exec 7<&0 </dev/null 6>&1
1daf06b9
SP
575
576# Name of the host.
577# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578# so uname gets run too.
579ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
1daf06b9
SP
581#
582# Initializations.
583#
1227625a 584ac_default_prefix=/usr/local
7f7d329e 585ac_clean_files=
cdfe1392 586ac_config_libobj_dir=.
7f7d329e 587LIBOBJS=
1daf06b9
SP
588cross_compiling=no
589subdirs=
590MFLAGS=
591MAKEFLAGS=
592SHELL=${CONFIG_SHELL-/bin/sh}
593
1daf06b9
SP
594# Identity of this package.
595PACKAGE_NAME=
596PACKAGE_TARNAME=
597PACKAGE_VERSION=
598PACKAGE_STRING=
599PACKAGE_BUGREPORT=
600
601ac_unique_file="dump/dump.h"
602# Factoring default headers for most tests.
603ac_includes_default="\
604#include <stdio.h>
d2816d4c 605#ifdef HAVE_SYS_TYPES_H
1daf06b9
SP
606# include <sys/types.h>
607#endif
d2816d4c 608#ifdef HAVE_SYS_STAT_H
1daf06b9
SP
609# include <sys/stat.h>
610#endif
d2816d4c 611#ifdef STDC_HEADERS
1daf06b9
SP
612# include <stdlib.h>
613# include <stddef.h>
614#else
d2816d4c 615# ifdef HAVE_STDLIB_H
1daf06b9
SP
616# include <stdlib.h>
617# endif
618#endif
d2816d4c
SP
619#ifdef HAVE_STRING_H
620# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1daf06b9
SP
621# include <memory.h>
622# endif
623# include <string.h>
624#endif
d2816d4c 625#ifdef HAVE_STRINGS_H
1daf06b9
SP
626# include <strings.h>
627#endif
d2816d4c 628#ifdef HAVE_INTTYPES_H
1daf06b9 629# include <inttypes.h>
7f7d329e 630#endif
d2816d4c 631#ifdef HAVE_STDINT_H
7f7d329e 632# include <stdint.h>
1daf06b9 633#endif
d2816d4c 634#ifdef HAVE_UNISTD_H
1daf06b9
SP
635# include <unistd.h>
636#endif"
637
572eed31 638ac_subst_vars='LTLIBOBJS
7f7d329e 639LIBOBJS
572eed31
SP
640top_builddir
641BZLIB
642ZLIB
643READLINE
644BLKID
645DUMPDATESPATH
646MANMODE
647MANGRP
648MANOWNER
649BINMODE
650BINGRP
651BINOWNER
652LDOPTS
653CCOPTS
654LD
655CCTRANSSELINUX
656LTRANSSELINUX
657OPTDEFS
658CRYPTO
659ERMT
660RMTDIR
661STATIC
662RESTOREDEBUG
663DUMPDEBUG
664EGREP
665GREP
666CPP
667INSTALL_DATA
668INSTALL_SCRIPT
669INSTALL_PROGRAM
670OBJEXT
671EXEEXT
672ac_ct_CC
673CPPFLAGS
674LDFLAGS
675CFLAGS
676CC
677PATCH
678RANLIB
679AR
680RM
681MV
682CP
683LN_S
684SET_MAKE
685target_alias
686host_alias
687build_alias
688LIBS
689ECHO_T
690ECHO_N
691ECHO_C
692DEFS
693mandir
694localedir
695libdir
696psdir
697pdfdir
698dvidir
699htmldir
700infodir
701docdir
702oldincludedir
703includedir
704localstatedir
705sharedstatedir
706sysconfdir
707datadir
708datarootdir
709libexecdir
710sbindir
711bindir
712program_transform_name
713prefix
714exec_prefix
715PACKAGE_BUGREPORT
716PACKAGE_STRING
717PACKAGE_VERSION
718PACKAGE_TARNAME
719PACKAGE_NAME
720PATH_SEPARATOR
721SHELL'
cdfe1392 722ac_subst_files='MCONFIG'
572eed31
SP
723ac_user_opts='
724enable_option_checking
725enable_debug
726enable_static
727enable_staticz
728enable_rmt
729enable_ermt
730enable_kerberos
731enable_readline
732enable_oldstylefscript
733enable_largefile
734enable_qfa
735enable_qfadebug
736enable_macosx
737enable_transselinux
738with_cc
739with_linker
740with_ccopts
741with_ldopts
742with_binowner
743with_bingrp
744with_binmode
745with_manowner
746with_mangrp
747with_manmode
748with_dumpdatespath
749'
7f7d329e
SP
750 ac_precious_vars='build_alias
751host_alias
752target_alias
753CC
754CFLAGS
755LDFLAGS
d2816d4c 756LIBS
7f7d329e
SP
757CPPFLAGS
758CPP'
759
1227625a
SP
760
761# Initialize some variables set by options.
1daf06b9
SP
762ac_init_help=
763ac_init_version=false
572eed31
SP
764ac_unrecognized_opts=
765ac_unrecognized_sep=
1227625a
SP
766# The variables have the same names as the options, with
767# dashes changed to underlines.
1daf06b9 768cache_file=/dev/null
1227625a 769exec_prefix=NONE
1227625a 770no_create=
1227625a
SP
771no_recursion=
772prefix=NONE
773program_prefix=NONE
774program_suffix=NONE
775program_transform_name=s,x,x,
776silent=
777site=
778srcdir=
1227625a
SP
779verbose=
780x_includes=NONE
781x_libraries=NONE
1daf06b9
SP
782
783# Installation directory options.
784# These are left unexpanded so users can "make install exec_prefix=/foo"
785# and all the variables that are supposed to be based on exec_prefix
786# by default will actually change.
787# Use braces instead of parens because sh, perl, etc. also accept them.
7f7d329e 788# (The list follows the same order as the GNU Coding Standards.)
1227625a
SP
789bindir='${exec_prefix}/bin'
790sbindir='${exec_prefix}/sbin'
791libexecdir='${exec_prefix}/libexec'
7f7d329e
SP
792datarootdir='${prefix}/share'
793datadir='${datarootdir}'
1227625a
SP
794sysconfdir='${prefix}/etc'
795sharedstatedir='${prefix}/com'
796localstatedir='${prefix}/var'
1227625a
SP
797includedir='${prefix}/include'
798oldincludedir='/usr/include'
7f7d329e
SP
799docdir='${datarootdir}/doc/${PACKAGE}'
800infodir='${datarootdir}/info'
801htmldir='${docdir}'
802dvidir='${docdir}'
803pdfdir='${docdir}'
804psdir='${docdir}'
805libdir='${exec_prefix}/lib'
806localedir='${datarootdir}/locale'
807mandir='${datarootdir}/man'
1227625a 808
1227625a 809ac_prev=
7f7d329e 810ac_dashdash=
1227625a
SP
811for ac_option
812do
1227625a
SP
813 # If the previous option needs an argument, assign it.
814 if test -n "$ac_prev"; then
7f7d329e 815 eval $ac_prev=\$ac_option
1227625a
SP
816 ac_prev=
817 continue
818 fi
819
7f7d329e
SP
820 case $ac_option in
821 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
822 *) ac_optarg=yes ;;
823 esac
1227625a
SP
824
825 # Accept the important Cygnus configure options, so we can diagnose typos.
826
7f7d329e
SP
827 case $ac_dashdash$ac_option in
828 --)
829 ac_dashdash=yes ;;
1227625a
SP
830
831 -bindir | --bindir | --bindi | --bind | --bin | --bi)
832 ac_prev=bindir ;;
833 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1daf06b9 834 bindir=$ac_optarg ;;
1227625a
SP
835
836 -build | --build | --buil | --bui | --bu)
1daf06b9 837 ac_prev=build_alias ;;
1227625a 838 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1daf06b9 839 build_alias=$ac_optarg ;;
1227625a
SP
840
841 -cache-file | --cache-file | --cache-fil | --cache-fi \
842 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
843 ac_prev=cache_file ;;
844 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
845 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1daf06b9
SP
846 cache_file=$ac_optarg ;;
847
848 --config-cache | -C)
849 cache_file=config.cache ;;
1227625a 850
7f7d329e 851 -datadir | --datadir | --datadi | --datad)
1227625a 852 ac_prev=datadir ;;
7f7d329e 853 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1daf06b9 854 datadir=$ac_optarg ;;
1227625a 855
7f7d329e
SP
856 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
857 | --dataroo | --dataro | --datar)
858 ac_prev=datarootdir ;;
859 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
860 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
861 datarootdir=$ac_optarg ;;
862
1227625a 863 -disable-* | --disable-*)
572eed31 864 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1227625a 865 # Reject names that are not valid shell variable names.
572eed31
SP
866 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
867 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1daf06b9 868 { (exit 1); exit 1; }; }
572eed31
SP
869 ac_useropt_orig=$ac_useropt
870 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
871 case $ac_user_opts in
872 *"
873"enable_$ac_useropt"
874"*) ;;
875 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
876 ac_unrecognized_sep=', ';;
877 esac
878 eval enable_$ac_useropt=no ;;
7f7d329e
SP
879
880 -docdir | --docdir | --docdi | --doc | --do)
881 ac_prev=docdir ;;
882 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
883 docdir=$ac_optarg ;;
884
885 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
886 ac_prev=dvidir ;;
887 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
888 dvidir=$ac_optarg ;;
1227625a
SP
889
890 -enable-* | --enable-*)
572eed31 891 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1227625a 892 # Reject names that are not valid shell variable names.
572eed31
SP
893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1daf06b9 895 { (exit 1); exit 1; }; }
572eed31
SP
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
899 *"
900"enable_$ac_useropt"
901"*) ;;
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
904 esac
905 eval enable_$ac_useropt=\$ac_optarg ;;
1227625a
SP
906
907 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
908 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
909 | --exec | --exe | --ex)
910 ac_prev=exec_prefix ;;
911 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
912 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
913 | --exec=* | --exe=* | --ex=*)
1daf06b9 914 exec_prefix=$ac_optarg ;;
1227625a
SP
915
916 -gas | --gas | --ga | --g)
917 # Obsolete; use --with-gas.
918 with_gas=yes ;;
919
1daf06b9
SP
920 -help | --help | --hel | --he | -h)
921 ac_init_help=long ;;
922 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
923 ac_init_help=recursive ;;
924 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
925 ac_init_help=short ;;
1227625a
SP
926
927 -host | --host | --hos | --ho)
1daf06b9 928 ac_prev=host_alias ;;
1227625a 929 -host=* | --host=* | --hos=* | --ho=*)
1daf06b9 930 host_alias=$ac_optarg ;;
1227625a 931
7f7d329e
SP
932 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
933 ac_prev=htmldir ;;
934 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
935 | --ht=*)
936 htmldir=$ac_optarg ;;
937
1227625a
SP
938 -includedir | --includedir | --includedi | --included | --include \
939 | --includ | --inclu | --incl | --inc)
940 ac_prev=includedir ;;
941 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
942 | --includ=* | --inclu=* | --incl=* | --inc=*)
1daf06b9 943 includedir=$ac_optarg ;;
1227625a
SP
944
945 -infodir | --infodir | --infodi | --infod | --info | --inf)
946 ac_prev=infodir ;;
947 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1daf06b9 948 infodir=$ac_optarg ;;
1227625a
SP
949
950 -libdir | --libdir | --libdi | --libd)
951 ac_prev=libdir ;;
952 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1daf06b9 953 libdir=$ac_optarg ;;
1227625a
SP
954
955 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
956 | --libexe | --libex | --libe)
957 ac_prev=libexecdir ;;
958 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
959 | --libexe=* | --libex=* | --libe=*)
1daf06b9 960 libexecdir=$ac_optarg ;;
1227625a 961
7f7d329e
SP
962 -localedir | --localedir | --localedi | --localed | --locale)
963 ac_prev=localedir ;;
964 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
965 localedir=$ac_optarg ;;
966
1227625a 967 -localstatedir | --localstatedir | --localstatedi | --localstated \
7f7d329e 968 | --localstate | --localstat | --localsta | --localst | --locals)
1227625a
SP
969 ac_prev=localstatedir ;;
970 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7f7d329e 971 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1daf06b9 972 localstatedir=$ac_optarg ;;
1227625a
SP
973
974 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
975 ac_prev=mandir ;;
976 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1daf06b9 977 mandir=$ac_optarg ;;
1227625a
SP
978
979 -nfp | --nfp | --nf)
980 # Obsolete; use --without-fp.
981 with_fp=no ;;
982
983 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1daf06b9 984 | --no-cr | --no-c | -n)
1227625a
SP
985 no_create=yes ;;
986
987 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
988 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
989 no_recursion=yes ;;
990
991 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
992 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
993 | --oldin | --oldi | --old | --ol | --o)
994 ac_prev=oldincludedir ;;
995 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
996 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
997 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1daf06b9 998 oldincludedir=$ac_optarg ;;
1227625a
SP
999
1000 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1001 ac_prev=prefix ;;
1002 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1daf06b9 1003 prefix=$ac_optarg ;;
1227625a
SP
1004
1005 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1006 | --program-pre | --program-pr | --program-p)
1007 ac_prev=program_prefix ;;
1008 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1009 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1daf06b9 1010 program_prefix=$ac_optarg ;;
1227625a
SP
1011
1012 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1013 | --program-suf | --program-su | --program-s)
1014 ac_prev=program_suffix ;;
1015 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1016 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1daf06b9 1017 program_suffix=$ac_optarg ;;
1227625a
SP
1018
1019 -program-transform-name | --program-transform-name \
1020 | --program-transform-nam | --program-transform-na \
1021 | --program-transform-n | --program-transform- \
1022 | --program-transform | --program-transfor \
1023 | --program-transfo | --program-transf \
1024 | --program-trans | --program-tran \
1025 | --progr-tra | --program-tr | --program-t)
1026 ac_prev=program_transform_name ;;
1027 -program-transform-name=* | --program-transform-name=* \
1028 | --program-transform-nam=* | --program-transform-na=* \
1029 | --program-transform-n=* | --program-transform-=* \
1030 | --program-transform=* | --program-transfor=* \
1031 | --program-transfo=* | --program-transf=* \
1032 | --program-trans=* | --program-tran=* \
1033 | --progr-tra=* | --program-tr=* | --program-t=*)
1daf06b9 1034 program_transform_name=$ac_optarg ;;
1227625a 1035
7f7d329e
SP
1036 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1037 ac_prev=pdfdir ;;
1038 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1039 pdfdir=$ac_optarg ;;
1040
1041 -psdir | --psdir | --psdi | --psd | --ps)
1042 ac_prev=psdir ;;
1043 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1044 psdir=$ac_optarg ;;
1045
1227625a
SP
1046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047 | -silent | --silent | --silen | --sile | --sil)
1048 silent=yes ;;
1049
1050 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1051 ac_prev=sbindir ;;
1052 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1053 | --sbi=* | --sb=*)
1daf06b9 1054 sbindir=$ac_optarg ;;
1227625a
SP
1055
1056 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1057 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1058 | --sharedst | --shareds | --shared | --share | --shar \
1059 | --sha | --sh)
1060 ac_prev=sharedstatedir ;;
1061 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1062 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1063 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1064 | --sha=* | --sh=*)
1daf06b9 1065 sharedstatedir=$ac_optarg ;;
1227625a
SP
1066
1067 -site | --site | --sit)
1068 ac_prev=site ;;
1069 -site=* | --site=* | --sit=*)
1daf06b9 1070 site=$ac_optarg ;;
1227625a
SP
1071
1072 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1073 ac_prev=srcdir ;;
1074 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1daf06b9 1075 srcdir=$ac_optarg ;;
1227625a
SP
1076
1077 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1078 | --syscon | --sysco | --sysc | --sys | --sy)
1079 ac_prev=sysconfdir ;;
1080 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1081 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1daf06b9 1082 sysconfdir=$ac_optarg ;;
1227625a
SP
1083
1084 -target | --target | --targe | --targ | --tar | --ta | --t)
1daf06b9 1085 ac_prev=target_alias ;;
1227625a 1086 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1daf06b9 1087 target_alias=$ac_optarg ;;
1227625a
SP
1088
1089 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1090 verbose=yes ;;
1091
1daf06b9
SP
1092 -version | --version | --versio | --versi | --vers | -V)
1093 ac_init_version=: ;;
1227625a
SP
1094
1095 -with-* | --with-*)
572eed31 1096 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1227625a 1097 # Reject names that are not valid shell variable names.
572eed31
SP
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1daf06b9 1100 { (exit 1); exit 1; }; }
572eed31
SP
1101 ac_useropt_orig=$ac_useropt
1102 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103 case $ac_user_opts in
1104 *"
1105"with_$ac_useropt"
1106"*) ;;
1107 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1108 ac_unrecognized_sep=', ';;
1109 esac
1110 eval with_$ac_useropt=\$ac_optarg ;;
1227625a
SP
1111
1112 -without-* | --without-*)
572eed31 1113 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1227625a 1114 # Reject names that are not valid shell variable names.
572eed31
SP
1115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1daf06b9 1117 { (exit 1); exit 1; }; }
572eed31
SP
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1121 *"
1122"with_$ac_useropt"
1123"*) ;;
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1126 esac
1127 eval with_$ac_useropt=no ;;
1227625a
SP
1128
1129 --x)
1130 # Obsolete; use --with-x.
1131 with_x=yes ;;
1132
1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134 | --x-incl | --x-inc | --x-in | --x-i)
1135 ac_prev=x_includes ;;
1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1daf06b9 1138 x_includes=$ac_optarg ;;
1227625a
SP
1139
1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142 ac_prev=x_libraries ;;
1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1daf06b9 1145 x_libraries=$ac_optarg ;;
1227625a 1146
572eed31 1147 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1daf06b9
SP
1148Try \`$0 --help' for more information." >&2
1149 { (exit 1); exit 1; }; }
1227625a
SP
1150 ;;
1151
1daf06b9
SP
1152 *=*)
1153 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
572eed31 1156 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1daf06b9 1157 { (exit 1); exit 1; }; }
7f7d329e 1158 eval $ac_envvar=\$ac_optarg
1daf06b9
SP
1159 export $ac_envvar ;;
1160
1227625a 1161 *)
1daf06b9 1162 # FIXME: should be removed in autoconf 3.0.
572eed31 1163 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1daf06b9 1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
572eed31 1165 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1daf06b9 1166 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1227625a
SP
1167 ;;
1168
1169 esac
1170done
1171
1172if test -n "$ac_prev"; then
1daf06b9 1173 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
572eed31 1174 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1daf06b9 1175 { (exit 1); exit 1; }; }
1227625a 1176fi
1227625a 1177
572eed31
SP
1178if test -n "$ac_unrecognized_opts"; then
1179 case $enable_option_checking in
1180 no) ;;
1181 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1182 { (exit 1); exit 1; }; } ;;
1183 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1184 esac
1185fi
1186
1187# Check all directory arguments for consistency.
7f7d329e
SP
1188for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1189 datadir sysconfdir sharedstatedir localstatedir includedir \
1190 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1191 libdir localedir mandir
1227625a 1192do
7f7d329e 1193 eval ac_val=\$$ac_var
572eed31
SP
1194 # Remove trailing slashes.
1195 case $ac_val in
1196 */ )
1197 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1198 eval $ac_var=\$ac_val;;
1199 esac
1200 # Be sure to have absolute directory names.
1daf06b9 1201 case $ac_val in
7f7d329e
SP
1202 [\\/$]* | ?:[\\/]* ) continue;;
1203 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227625a 1204 esac
572eed31 1205 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7f7d329e 1206 { (exit 1); exit 1; }; }
1227625a
SP
1207done
1208
1daf06b9
SP
1209# There might be people who depend on the old broken behavior: `$host'
1210# used to hold the argument of --host etc.
1211# FIXME: To remove some day.
1212build=$build_alias
1213host=$host_alias
1214target=$target_alias
1215
1216# FIXME: To remove some day.
1217if test "x$host_alias" != x; then
1218 if test "x$build_alias" = x; then
1219 cross_compiling=maybe
572eed31 1220 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1daf06b9
SP
1221 If a cross compiler is detected then cross compile mode will be used." >&2
1222 elif test "x$build_alias" != "x$host_alias"; then
1223 cross_compiling=yes
1224 fi
1225fi
1227625a 1226
1daf06b9
SP
1227ac_tool_prefix=
1228test -n "$host_alias" && ac_tool_prefix=$host_alias-
1229
1230test "$silent" = yes && exec 6>/dev/null
1227625a 1231
1227625a 1232
7f7d329e
SP
1233ac_pwd=`pwd` && test -n "$ac_pwd" &&
1234ac_ls_di=`ls -di .` &&
1235ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
572eed31 1236 { $as_echo "$as_me: error: working directory cannot be determined" >&2
7f7d329e
SP
1237 { (exit 1); exit 1; }; }
1238test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
572eed31 1239 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
7f7d329e
SP
1240 { (exit 1); exit 1; }; }
1241
1242
1227625a
SP
1243# Find the source files, if location was not specified.
1244if test -z "$srcdir"; then
1245 ac_srcdir_defaulted=yes
7f7d329e 1246 # Try the directory containing this script, then the parent directory.
572eed31
SP
1247 ac_confdir=`$as_dirname -- "$as_myself" ||
1248$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1249 X"$as_myself" : 'X\(//\)[^/]' \| \
1250 X"$as_myself" : 'X\(//\)$' \| \
1251 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1252$as_echo X"$as_myself" |
7f7d329e
SP
1253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1254 s//\1/
1255 q
1256 }
1257 /^X\(\/\/\)[^/].*/{
1258 s//\1/
1259 q
1260 }
1261 /^X\(\/\/\)$/{
1262 s//\1/
1263 q
1264 }
1265 /^X\(\/\).*/{
1266 s//\1/
1267 q
1268 }
1269 s/.*/./; q'`
1227625a 1270 srcdir=$ac_confdir
7f7d329e 1271 if test ! -r "$srcdir/$ac_unique_file"; then
1227625a
SP
1272 srcdir=..
1273 fi
1274else
1275 ac_srcdir_defaulted=no
1276fi
7f7d329e
SP
1277if test ! -r "$srcdir/$ac_unique_file"; then
1278 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
572eed31 1279 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1daf06b9 1280 { (exit 1); exit 1; }; }
1227625a 1281fi
7f7d329e
SP
1282ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1283ac_abs_confdir=`(
572eed31 1284 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
cdfe1392 1285 { (exit 1); exit 1; }; }
7f7d329e
SP
1286 pwd)`
1287# When building in place, set srcdir=.
1288if test "$ac_abs_confdir" = "$ac_pwd"; then
1289 srcdir=.
1290fi
1291# Remove unnecessary trailing slashes from srcdir.
1292# Double slashes in file names in object file debugging info
1293# mess up M-x gdb in Emacs.
1294case $srcdir in
1295*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1296esac
1297for ac_var in $ac_precious_vars; do
1298 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1299 eval ac_env_${ac_var}_value=\$${ac_var}
1300 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1301 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1302done
1daf06b9
SP
1303
1304#
1305# Report the --help message.
1306#
1307if test "$ac_init_help" = "long"; then
1308 # Omit some internal or obsolete options to make the list less imposing.
1309 # This message is too long to be a string in the A/UX 3.1 sh.
1310 cat <<_ACEOF
1311\`configure' configures this package to adapt to many kinds of systems.
1312
1313Usage: $0 [OPTION]... [VAR=VALUE]...
1314
1315To assign environment variables (e.g., CC, CFLAGS...), specify them as
1316VAR=VALUE. See below for descriptions of some of the useful variables.
1317
1318Defaults for the options are specified in brackets.
1319
1320Configuration:
1321 -h, --help display this help and exit
1322 --help=short display options specific to this package
1323 --help=recursive display the short help of all the included packages
1324 -V, --version display version information and exit
1325 -q, --quiet, --silent do not print \`checking...' messages
1326 --cache-file=FILE cache test results in FILE [disabled]
1327 -C, --config-cache alias for \`--cache-file=config.cache'
1328 -n, --no-create do not create output files
1329 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1330
1daf06b9
SP
1331Installation directories:
1332 --prefix=PREFIX install architecture-independent files in PREFIX
572eed31 1333 [$ac_default_prefix]
1daf06b9 1334 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
572eed31 1335 [PREFIX]
1daf06b9
SP
1336
1337By default, \`make install' will install all the files in
1338\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1339an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1340for instance \`--prefix=\$HOME'.
1341
1342For better control, use the options below.
1343
1344Fine tuning of the installation directories:
572eed31
SP
1345 --bindir=DIR user executables [EPREFIX/bin]
1346 --sbindir=DIR system admin executables [EPREFIX/sbin]
1347 --libexecdir=DIR program executables [EPREFIX/libexec]
1348 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1349 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1350 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1351 --libdir=DIR object code libraries [EPREFIX/lib]
1352 --includedir=DIR C header files [PREFIX/include]
1353 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1354 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1355 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1356 --infodir=DIR info documentation [DATAROOTDIR/info]
1357 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1358 --mandir=DIR man documentation [DATAROOTDIR/man]
1359 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1360 --htmldir=DIR html documentation [DOCDIR]
1361 --dvidir=DIR dvi documentation [DOCDIR]
1362 --pdfdir=DIR pdf documentation [DOCDIR]
1363 --psdir=DIR ps documentation [DOCDIR]
1daf06b9
SP
1364_ACEOF
1365
1366 cat <<\_ACEOF
1367_ACEOF
1368fi
1369
1370if test -n "$ac_init_help"; then
1371
1372 cat <<\_ACEOF
1373
1374Optional Features:
572eed31 1375 --disable-option-checking ignore unrecognized --enable/--with options
1daf06b9
SP
1376 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1377 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1378 --enable-debug include debugging code (default is NO)
1379 --enable-static link dump and restore statically (default is NO)
d7783603 1380 --enable-staticz link libz and libbz2 statically (default is NO)
1daf06b9 1381 --enable-rmt compile and install rmt (default is YES)
cdfe1392 1382 --enable-ermt compile ermt, an encrypting version of rmt (default is NO)
1daf06b9
SP
1383 --enable-kerberos compile kerberos extensions (default is NO)
1384 --enable-readline enable readline support in restore (default is YES)
1385 --enable-oldstylefscript enable old style F script (no arguments) (default is NO)
1386 --enable-largefile enable Large File System support (default is YES)
1387 --enable-qfa enable Quick File Access support (default is YES)
1388 --enable-qfadebug include Quick File Access debugging code (default is NO)
d1925e0c 1389 --enable-macosx include Mac OSX restore compatibility (default is NO)
7f7d329e 1390 --enable-transselinux restore can translate SELinux EAs (default is YES)
1daf06b9
SP
1391
1392Optional Packages:
1393 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1394 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1395 --with-cc=COMPILER select compiler to use
1396 --with-linker=LINKER select linker to use
1397 --with-ccopts=CCOPTS select compiler command line options
1398 --with-ldopts=LDOPTS select linker command line options
1399 --with-binowner=USER select owner for binaries
1400 --with-bingrp=GROUP select group for binaries
1401 --with-binmode=MODE select mode for binaries
1402 --with-manowner=USER select owner for manual pages
1403 --with-mangrp=GROUP select group for manual pages
1404 --with-manmode=MODE select mode for manual pages
1405 --with-dumpdatespath=PATH select path for dumpdates file
1406
1407Some influential environment variables:
1408 CC C compiler command
1409 CFLAGS C compiler flags
1410 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1411 nonstandard directory <lib dir>
d2816d4c 1412 LIBS libraries to pass to the linker, e.g. -l<library>
7f7d329e
SP
1413 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1414 you have headers in a nonstandard directory <include dir>
1daf06b9
SP
1415 CPP C preprocessor
1416
1417Use these variables to override the choices made by `configure' or to help
1418it to find libraries and programs with nonstandard names/locations.
1419
1420_ACEOF
7f7d329e 1421ac_status=$?
1daf06b9
SP
1422fi
1423
1424if test "$ac_init_help" = "recursive"; then
1425 # If there are subdirs, report their specific --help.
1daf06b9 1426 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
572eed31
SP
1427 test -d "$ac_dir" ||
1428 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1429 continue
1daf06b9
SP
1430 ac_builddir=.
1431
7f7d329e
SP
1432case "$ac_dir" in
1433.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434*)
572eed31 1435 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7f7d329e 1436 # A ".." for each directory in $ac_dir_suffix.
572eed31 1437 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7f7d329e
SP
1438 case $ac_top_builddir_sub in
1439 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1441 esac ;;
1442esac
1443ac_abs_top_builddir=$ac_pwd
1444ac_abs_builddir=$ac_pwd$ac_dir_suffix
1445# for backward compatibility:
1446ac_top_builddir=$ac_top_build_prefix
1daf06b9
SP
1447
1448case $srcdir in
7f7d329e 1449 .) # We are building in place.
1daf06b9 1450 ac_srcdir=.
7f7d329e
SP
1451 ac_top_srcdir=$ac_top_builddir_sub
1452 ac_abs_top_srcdir=$ac_pwd ;;
1453 [\\/]* | ?:[\\/]* ) # Absolute name.
1daf06b9 1454 ac_srcdir=$srcdir$ac_dir_suffix;
7f7d329e
SP
1455 ac_top_srcdir=$srcdir
1456 ac_abs_top_srcdir=$srcdir ;;
1457 *) # Relative name.
1458 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1459 ac_top_srcdir=$ac_top_build_prefix$srcdir
1460 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c9e4e868 1461esac
7f7d329e
SP
1462ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1463
1464 cd "$ac_dir" || { ac_status=$?; continue; }
1465 # Check for guested configure.
1466 if test -f "$ac_srcdir/configure.gnu"; then
1467 echo &&
1468 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1469 elif test -f "$ac_srcdir/configure"; then
1470 echo &&
1471 $SHELL "$ac_srcdir/configure" --help=recursive
1daf06b9 1472 else
572eed31 1473 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7f7d329e
SP
1474 fi || ac_status=$?
1475 cd "$ac_pwd" || { ac_status=$?; break; }
1daf06b9
SP
1476 done
1477fi
1478
7f7d329e 1479test -n "$ac_init_help" && exit $ac_status
1daf06b9
SP
1480if $ac_init_version; then
1481 cat <<\_ACEOF
7f7d329e 1482configure
572eed31 1483generated by GNU Autoconf 2.63
1daf06b9 1484
7f7d329e 1485Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
572eed31 14862002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1daf06b9
SP
1487This configure script is free software; the Free Software Foundation
1488gives unlimited permission to copy, distribute and modify it.
1489_ACEOF
7f7d329e 1490 exit
1daf06b9 1491fi
7f7d329e 1492cat >config.log <<_ACEOF
1daf06b9
SP
1493This file contains any messages produced by compilers while
1494running configure, to aid debugging if configure makes a mistake.
1495
1496It was created by $as_me, which was
572eed31 1497generated by GNU Autoconf 2.63. Invocation command line was
1daf06b9
SP
1498
1499 $ $0 $@
1500
1501_ACEOF
7f7d329e 1502exec 5>>config.log
1daf06b9
SP
1503{
1504cat <<_ASUNAME
1505## --------- ##
1506## Platform. ##
1507## --------- ##
1508
1509hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1510uname -m = `(uname -m) 2>/dev/null || echo unknown`
1511uname -r = `(uname -r) 2>/dev/null || echo unknown`
1512uname -s = `(uname -s) 2>/dev/null || echo unknown`
1513uname -v = `(uname -v) 2>/dev/null || echo unknown`
1514
1515/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1516/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1517
1518/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1519/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1520/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7f7d329e 1521/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1daf06b9
SP
1522/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1523/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1524/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1525
1526_ASUNAME
1527
1528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529for as_dir in $PATH
1530do
1531 IFS=$as_save_IFS
1532 test -z "$as_dir" && as_dir=.
572eed31 1533 $as_echo "PATH: $as_dir"
1daf06b9 1534done
7f7d329e 1535IFS=$as_save_IFS
1daf06b9
SP
1536
1537} >&5
1538
1539cat >&5 <<_ACEOF
1540
1541
1542## ----------- ##
1543## Core tests. ##
1544## ----------- ##
1545
1546_ACEOF
1547
1548
1549# Keep a trace of the command line.
1550# Strip out --no-create and --no-recursion so they do not pile up.
cdfe1392 1551# Strip out --silent because we don't want to record it for future runs.
1daf06b9 1552# Also quote any args containing shell meta-characters.
cdfe1392 1553# Make two passes to allow for proper duplicate-argument suppression.
1daf06b9 1554ac_configure_args=
cdfe1392
SP
1555ac_configure_args0=
1556ac_configure_args1=
cdfe1392
SP
1557ac_must_keep_next=false
1558for ac_pass in 1 2
1daf06b9 1559do
cdfe1392
SP
1560 for ac_arg
1561 do
1562 case $ac_arg in
1563 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1564 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1565 | -silent | --silent | --silen | --sile | --sil)
1566 continue ;;
7f7d329e 1567 *\'*)
572eed31 1568 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
cdfe1392
SP
1569 esac
1570 case $ac_pass in
1571 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1572 2)
1573 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1574 if test $ac_must_keep_next = true; then
c9e4e868 1575 ac_must_keep_next=false # Got value, back to normal.
cdfe1392 1576 else
c9e4e868
SP
1577 case $ac_arg in
1578 *=* | --config-cache | -C | -disable-* | --disable-* \
1579 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1580 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1581 | -with-* | --with-* | -without-* | --without-* | --x)
1582 case "$ac_configure_args0 " in
1583 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1584 esac
1585 ;;
1586 -* ) ac_must_keep_next=true ;;
1587 esac
cdfe1392 1588 fi
7f7d329e 1589 ac_configure_args="$ac_configure_args '$ac_arg'"
cdfe1392
SP
1590 ;;
1591 esac
1592 done
1daf06b9 1593done
cdfe1392
SP
1594$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1595$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1daf06b9
SP
1596
1597# When interrupted or exit'd, cleanup temporary files, and complete
1598# config.log. We remove comments because anyway the quotes in there
1599# would cause problems or look ugly.
7f7d329e
SP
1600# WARNING: Use '\'' to represent an apostrophe within the trap.
1601# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1daf06b9
SP
1602trap 'exit_status=$?
1603 # Save into config.log some information that might help in debugging.
1604 {
1605 echo
cdfe1392 1606
1daf06b9
SP
1607 cat <<\_ASBOX
1608## ---------------- ##
1609## Cache variables. ##
1610## ---------------- ##
1611_ASBOX
1612 echo
1613 # The following way of writing the cache mishandles newlines in values,
7f7d329e
SP
1614(
1615 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1616 eval ac_val=\$$ac_var
1617 case $ac_val in #(
1618 *${as_nl}*)
1619 case $ac_var in #(
572eed31
SP
1620 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1621$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7f7d329e
SP
1622 esac
1623 case $ac_var in #(
1624 _ | IFS | as_nl) ;; #(
572eed31 1625 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7f7d329e
SP
1626 *) $as_unset $ac_var ;;
1627 esac ;;
1628 esac
1629 done
1daf06b9 1630 (set) 2>&1 |
7f7d329e
SP
1631 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1632 *${as_nl}ac_space=\ *)
1daf06b9 1633 sed -n \
7f7d329e
SP
1634 "s/'\''/'\''\\\\'\'''\''/g;
1635 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1636 ;; #(
1daf06b9 1637 *)
7f7d329e 1638 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1daf06b9 1639 ;;
7f7d329e
SP
1640 esac |
1641 sort
1642)
1daf06b9 1643 echo
cdfe1392
SP
1644
1645 cat <<\_ASBOX
1646## ----------------- ##
1647## Output variables. ##
1648## ----------------- ##
1649_ASBOX
1650 echo
1651 for ac_var in $ac_subst_vars
1652 do
7f7d329e
SP
1653 eval ac_val=\$$ac_var
1654 case $ac_val in
572eed31 1655 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7f7d329e 1656 esac
572eed31 1657 $as_echo "$ac_var='\''$ac_val'\''"
cdfe1392
SP
1658 done | sort
1659 echo
1660
1661 if test -n "$ac_subst_files"; then
1662 cat <<\_ASBOX
7f7d329e
SP
1663## ------------------- ##
1664## File substitutions. ##
1665## ------------------- ##
cdfe1392
SP
1666_ASBOX
1667 echo
1668 for ac_var in $ac_subst_files
1669 do
7f7d329e
SP
1670 eval ac_val=\$$ac_var
1671 case $ac_val in
572eed31 1672 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7f7d329e 1673 esac
572eed31 1674 $as_echo "$ac_var='\''$ac_val'\''"
cdfe1392
SP
1675 done | sort
1676 echo
1677 fi
1678
1daf06b9
SP
1679 if test -s confdefs.h; then
1680 cat <<\_ASBOX
1681## ----------- ##
1682## confdefs.h. ##
1683## ----------- ##
1684_ASBOX
1685 echo
7f7d329e 1686 cat confdefs.h
1daf06b9
SP
1687 echo
1688 fi
1689 test "$ac_signal" != 0 &&
572eed31
SP
1690 $as_echo "$as_me: caught signal $ac_signal"
1691 $as_echo "$as_me: exit $exit_status"
1daf06b9 1692 } >&5
7f7d329e
SP
1693 rm -f core *.core core.conftest.* &&
1694 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1daf06b9 1695 exit $exit_status
7f7d329e 1696' 0
1daf06b9
SP
1697for ac_signal in 1 2 13 15; do
1698 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1699done
1700ac_signal=0
1227625a 1701
1daf06b9 1702# confdefs.h avoids OS command line length limits that DEFS can exceed.
7f7d329e 1703rm -f -r conftest* confdefs.h
1daf06b9
SP
1704
1705# Predefined preprocessor variables.
1706
1707cat >>confdefs.h <<_ACEOF
1708#define PACKAGE_NAME "$PACKAGE_NAME"
1709_ACEOF
1710
1711
1712cat >>confdefs.h <<_ACEOF
1713#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1714_ACEOF
1715
1716
1717cat >>confdefs.h <<_ACEOF
1718#define PACKAGE_VERSION "$PACKAGE_VERSION"
1719_ACEOF
1720
1721
1722cat >>confdefs.h <<_ACEOF
1723#define PACKAGE_STRING "$PACKAGE_STRING"
1724_ACEOF
1725
1726
1727cat >>confdefs.h <<_ACEOF
1728#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1729_ACEOF
1730
1731
1732# Let the site file select an alternate cache file if it wants to.
572eed31
SP
1733# Prefer an explicitly selected file to automatically selected ones.
1734ac_site_file1=NONE
1735ac_site_file2=NONE
7f7d329e 1736if test -n "$CONFIG_SITE"; then
572eed31 1737 ac_site_file1=$CONFIG_SITE
7f7d329e 1738elif test "x$prefix" != xNONE; then
572eed31
SP
1739 ac_site_file1=$prefix/share/config.site
1740 ac_site_file2=$prefix/etc/config.site
7f7d329e 1741else
572eed31
SP
1742 ac_site_file1=$ac_default_prefix/share/config.site
1743 ac_site_file2=$ac_default_prefix/etc/config.site
1227625a 1744fi
572eed31 1745for ac_site_file in "$ac_site_file1" "$ac_site_file2"
7f7d329e 1746do
572eed31 1747 test "x$ac_site_file" = xNONE && continue
1227625a 1748 if test -r "$ac_site_file"; then
572eed31
SP
1749 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1750$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1daf06b9 1751 sed 's/^/| /' "$ac_site_file" >&5
1227625a
SP
1752 . "$ac_site_file"
1753 fi
1754done
1755
1756if test -r "$cache_file"; then
1daf06b9
SP
1757 # Some versions of bash will fail to source /dev/null (special
1758 # files actually), so we avoid doing that.
1759 if test -f "$cache_file"; then
572eed31
SP
1760 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1761$as_echo "$as_me: loading cache $cache_file" >&6;}
1daf06b9 1762 case $cache_file in
7f7d329e
SP
1763 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1764 *) . "./$cache_file";;
1daf06b9
SP
1765 esac
1766 fi
1227625a 1767else
572eed31
SP
1768 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1769$as_echo "$as_me: creating cache $cache_file" >&6;}
1daf06b9
SP
1770 >$cache_file
1771fi
1772
1773# Check that the precious variables saved in the cache have kept the same
1774# value.
1775ac_cache_corrupted=false
7f7d329e 1776for ac_var in $ac_precious_vars; do
1daf06b9
SP
1777 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1778 eval ac_new_set=\$ac_env_${ac_var}_set
7f7d329e
SP
1779 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1780 eval ac_new_val=\$ac_env_${ac_var}_value
1daf06b9
SP
1781 case $ac_old_set,$ac_new_set in
1782 set,)
572eed31
SP
1783 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1784$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1daf06b9
SP
1785 ac_cache_corrupted=: ;;
1786 ,set)
572eed31
SP
1787 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1788$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1daf06b9
SP
1789 ac_cache_corrupted=: ;;
1790 ,);;
1791 *)
1792 if test "x$ac_old_val" != "x$ac_new_val"; then
572eed31
SP
1793 # differences in whitespace do not lead to failure.
1794 ac_old_val_w=`echo x $ac_old_val`
1795 ac_new_val_w=`echo x $ac_new_val`
1796 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1797 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1798$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1799 ac_cache_corrupted=:
1800 else
1801 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1802$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1803 eval $ac_var=\$ac_old_val
1804 fi
1805 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1806$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1807 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1808$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1daf06b9
SP
1809 fi;;
1810 esac
1811 # Pass precious variables to config.status.
1812 if test "$ac_new_set" = set; then
1813 case $ac_new_val in
572eed31 1814 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1daf06b9
SP
1815 *) ac_arg=$ac_var=$ac_new_val ;;
1816 esac
1817 case " $ac_configure_args " in
1818 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1819 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1820 esac
1821 fi
1822done
1823if $ac_cache_corrupted; then
572eed31
SP
1824 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1825$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1826 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1827$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1828 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1829$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1daf06b9 1830 { (exit 1); exit 1; }; }
1227625a
SP
1831fi
1832
1daf06b9
SP
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1227625a 1848
7f7d329e
SP
1849ac_ext=c
1850ac_cpp='$CPP $CPPFLAGS'
1851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1853ac_compiler_gnu=$ac_cv_c_compiler_gnu
1227625a
SP
1854
1855
e7d18957 1856
cdfe1392 1857
1227625a
SP
1858MCONFIG=./MCONFIG
1859
1860
7f7d329e 1861ac_config_headers="$ac_config_headers config.h"
1227625a
SP
1862
1863
572eed31
SP
1864{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1865$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
1866set x ${MAKE-make}
1867ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7f7d329e 1868if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
572eed31 1869 $as_echo_n "(cached) " >&6
1227625a 1870else
1daf06b9 1871 cat >conftest.make <<\_ACEOF
7f7d329e 1872SHELL = /bin/sh
1227625a 1873all:
7f7d329e 1874 @echo '@@@%%%=$(MAKE)=@@@%%%'
1daf06b9 1875_ACEOF
1227625a 1876# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7f7d329e
SP
1877case `${MAKE-make} -f conftest.make 2>/dev/null` in
1878 *@@@%%%=?*=@@@%%%*)
1879 eval ac_cv_prog_make_${ac_make}_set=yes;;
1880 *)
1881 eval ac_cv_prog_make_${ac_make}_set=no;;
1882esac
1daf06b9 1883rm -f conftest.make
1227625a 1884fi
7f7d329e 1885if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
572eed31
SP
1886 { $as_echo "$as_me:$LINENO: result: yes" >&5
1887$as_echo "yes" >&6; }
1227625a
SP
1888 SET_MAKE=
1889else
572eed31
SP
1890 { $as_echo "$as_me:$LINENO: result: no" >&5
1891$as_echo "no" >&6; }
1227625a
SP
1892 SET_MAKE="MAKE=${MAKE-make}"
1893fi
1894
572eed31
SP
1895{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
1896$as_echo_n "checking whether ln -s works... " >&6; }
1daf06b9
SP
1897LN_S=$as_ln_s
1898if test "$LN_S" = "ln -s"; then
572eed31
SP
1899 { $as_echo "$as_me:$LINENO: result: yes" >&5
1900$as_echo "yes" >&6; }
1227625a 1901else
572eed31
SP
1902 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1903$as_echo "no, using $LN_S" >&6; }
1227625a
SP
1904fi
1905
1906# Extract the first word of "cp", so it can be a program name with args.
1907set dummy cp; ac_word=$2
572eed31
SP
1908{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1909$as_echo_n "checking for $ac_word... " >&6; }
1daf06b9 1910if test "${ac_cv_path_CP+set}" = set; then
572eed31 1911 $as_echo_n "(cached) " >&6
1227625a 1912else
1daf06b9
SP
1913 case $CP in
1914 [\\/]* | ?:[\\/]*)
1227625a
SP
1915 ac_cv_path_CP="$CP" # Let the user override the test with a path.
1916 ;;
1917 *)
1daf06b9
SP
1918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919for as_dir in $PATH
1920do
1921 IFS=$as_save_IFS
1922 test -z "$as_dir" && as_dir=.
1923 for ac_exec_ext in '' $ac_executable_extensions; do
d2816d4c 1924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1daf06b9 1925 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
572eed31 1926 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1daf06b9
SP
1927 break 2
1928 fi
1929done
1930done
7f7d329e 1931IFS=$as_save_IFS
1daf06b9 1932
1227625a
SP
1933 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
1934 ;;
1935esac
1936fi
1daf06b9 1937CP=$ac_cv_path_CP
1227625a 1938if test -n "$CP"; then
572eed31
SP
1939 { $as_echo "$as_me:$LINENO: result: $CP" >&5
1940$as_echo "$CP" >&6; }
1227625a 1941else
572eed31
SP
1942 { $as_echo "$as_me:$LINENO: result: no" >&5
1943$as_echo "no" >&6; }
1227625a
SP
1944fi
1945
7f7d329e 1946
1227625a
SP
1947# Extract the first word of "mv", so it can be a program name with args.
1948set dummy mv; ac_word=$2
572eed31
SP
1949{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1950$as_echo_n "checking for $ac_word... " >&6; }
1daf06b9 1951if test "${ac_cv_path_MV+set}" = set; then
572eed31 1952 $as_echo_n "(cached) " >&6
1227625a 1953else
1daf06b9
SP
1954 case $MV in
1955 [\\/]* | ?:[\\/]*)
1227625a
SP
1956 ac_cv_path_MV="$MV" # Let the user override the test with a path.
1957 ;;
1958 *)
1daf06b9
SP
1959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960for as_dir in $PATH
1961do
1962 IFS=$as_save_IFS
1963 test -z "$as_dir" && as_dir=.
1964 for ac_exec_ext in '' $ac_executable_extensions; do
d2816d4c 1965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1daf06b9 1966 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
572eed31 1967 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1daf06b9
SP
1968 break 2
1969 fi
1970done
1971done
7f7d329e 1972IFS=$as_save_IFS
1daf06b9 1973
1227625a
SP
1974 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
1975 ;;
1976esac
1977fi
1daf06b9 1978MV=$ac_cv_path_MV
1227625a 1979if test -n "$MV"; then
572eed31
SP
1980 { $as_echo "$as_me:$LINENO: result: $MV" >&5
1981$as_echo "$MV" >&6; }
1227625a 1982else
572eed31
SP
1983 { $as_echo "$as_me:$LINENO: result: no" >&5
1984$as_echo "no" >&6; }
1227625a
SP
1985fi
1986
7f7d329e 1987
1227625a
SP
1988# Extract the first word of "rm", so it can be a program name with args.
1989set dummy rm; ac_word=$2
572eed31
SP
1990{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1991$as_echo_n "checking for $ac_word... " >&6; }
1daf06b9 1992if test "${ac_cv_path_RM+set}" = set; then
572eed31 1993 $as_echo_n "(cached) " >&6
1227625a 1994else
1daf06b9
SP
1995 case $RM in
1996 [\\/]* | ?:[\\/]*)
1227625a
SP
1997 ac_cv_path_RM="$RM" # Let the user override the test with a path.
1998 ;;
1999 *)
1daf06b9
SP
2000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001for as_dir in $PATH
2002do
2003 IFS=$as_save_IFS
2004 test -z "$as_dir" && as_dir=.
2005 for ac_exec_ext in '' $ac_executable_extensions; do
d2816d4c 2006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1daf06b9 2007 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
572eed31 2008 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1daf06b9
SP
2009 break 2
2010 fi
2011done
2012done
7f7d329e 2013IFS=$as_save_IFS
1daf06b9 2014
1227625a
SP
2015 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
2016 ;;
2017esac
2018fi
1daf06b9 2019RM=$ac_cv_path_RM
1227625a 2020if test -n "$RM"; then
572eed31
SP
2021 { $as_echo "$as_me:$LINENO: result: $RM" >&5
2022$as_echo "$RM" >&6; }
1227625a 2023else
572eed31
SP
2024 { $as_echo "$as_me:$LINENO: result: no" >&5
2025$as_echo "no" >&6; }
1227625a
SP
2026fi
2027
7f7d329e 2028
1daf06b9
SP
2029if test -n "$ac_tool_prefix"; then
2030 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1227625a 2031set dummy ${ac_tool_prefix}ar; ac_word=$2
572eed31
SP
2032{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2033$as_echo_n "checking for $ac_word... " >&6; }
1daf06b9 2034if test "${ac_cv_prog_AR+set}" = set; then
572eed31 2035 $as_echo_n "(cached) " >&6
1227625a
SP
2036else
2037 if test -n "$AR"; then
2038 ac_cv_prog_AR="$AR" # Let the user override the test.
2039else
1daf06b9
SP
2040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041for as_dir in $PATH
2042do
2043 IFS=$as_save_IFS
2044 test -z "$as_dir" && as_dir=.
2045 for ac_exec_ext in '' $ac_executable_extensions; do
d2816d4c 2046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1daf06b9 2047 ac_cv_prog_AR="${ac_tool_prefix}ar"
572eed31 2048 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1daf06b9
SP
2049 break 2
2050 fi
2051done
2052done
7f7d329e 2053IFS=$as_save_IFS
1daf06b9 2054
1227625a
SP
2055fi
2056fi
1daf06b9 2057AR=$ac_cv_prog_AR
1227625a 2058if test -n "$AR"; then
572eed31
SP
2059 { $as_echo "$as_me:$LINENO: result: $AR" >&5
2060$as_echo "$AR" >&6; }
1227625a 2061else
572eed31
SP
2062 { $as_echo "$as_me:$LINENO: result: no" >&5
2063$as_echo "no" >&6; }
1227625a
SP
2064fi
2065
7f7d329e 2066
1daf06b9 2067fi
1227625a 2068if test -z "$ac_cv_prog_AR"; then
1daf06b9 2069 ac_ct_AR=$AR
1227625a
SP
2070 # Extract the first word of "ar", so it can be a program name with args.
2071set dummy ar; ac_word=$2
572eed31
SP
2072{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2073$as_echo_n "checking for $ac_word... " >&6; }
1daf06b9 2074if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
572eed31 2075 $as_echo_n "(cached) " >&6
1227625a 2076else
1daf06b9
SP
2077 if test -n "$ac_ct_AR"; then
2078 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
1227625a 2079else
1daf06b9
SP
2080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081for as_dir in $PATH
2082do
2083 IFS=$as_save_IFS
2084 test -z "$as_dir" && as_dir=.
2085 for ac_exec_ext in '' $ac_executable_extensions; do
d2816d4c 2086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1daf06b9 2087 ac_cv_prog_ac_ct_AR="ar"
572eed31 2088 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1daf06b9
SP
2089 break 2
2090 fi
2091done
2092done
7f7d329e 2093IFS=$as_save_IFS
1daf06b9 2094
1227625a
SP
2095fi
2096fi
1daf06b9
SP
2097ac_ct_AR=$ac_cv_prog_ac_ct_AR
2098if test -n "$ac_ct_AR"; then
572eed31
SP
2099 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2100$as_echo "$ac_ct_AR" >&6; }
1227625a 2101else
572eed31
SP
2102 { $as_echo "$as_me:$LINENO: result: no" >&5
2103$as_echo "no" >&6; }
1227625a
SP
2104fi
2105
7f7d329e
SP
2106 if test "x$ac_ct_AR" = x; then
2107 AR="ar"
2108 else
2109 case $cross_compiling:$ac_tool_warned in
2110yes:)
572eed31
SP
2111{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2112$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7f7d329e
SP
2113ac_tool_warned=yes ;;
2114esac
2115 AR=$ac_ct_AR
2116 fi
1227625a 2117else
1daf06b9 2118 AR="$ac_cv_prog_AR"
1227625a
SP
2119fi
2120
1daf06b9
SP
2121if test -n "$ac_tool_prefix"; then
2122 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1227625a 2123set dummy ${ac_tool_prefix}ranlib; ac_word=$2
572eed31
SP
2124{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2125$as_echo_n "checking for $ac_word... " >&6; }
1daf06b9 2126if test "${ac_cv_prog_RANLIB+set}" = set; then
572eed31 2127 $as_echo_n "(cached) " >&6
1227625a
SP
2128else
2129 if test -n "$RANLIB"; then
2130 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2131else
1daf06b9
SP
2132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133for as_dir in $PATH
2134do
2135 IFS=$as_save_IFS
2136 test -z "$as_dir" && as_dir=.
2137 for ac_exec_ext in '' $ac_executable_extensions; do
d2816d4c 2138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1daf06b9 2139 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
572eed31 2140 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1daf06b9
SP
2141 break 2
2142 fi
2143done
2144done
7f7d329e 2145IFS=$as_save_IFS
1daf06b9 2146
1227625a
SP
2147fi
2148fi
1daf06b9 2149RANLIB=$ac_cv_prog_RANLIB
1227625a 2150if test -n "$RANLIB"; then
572eed31
SP
2151 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
2152$as_echo "$RANLIB" >&6; }
1227625a 2153else
572eed31
SP
2154 { $as_echo "$as_me:$LINENO: result: no" >&5
2155$as_echo "no" >&6; }
1227625a
SP
2156fi
2157
7f7d329e 2158
1daf06b9 2159fi
1227625a 2160if test -z "$ac_cv_prog_RANLIB"; then
1daf06b9 2161 ac_ct_RANLIB=$RANLIB
1227625a
SP
2162 # Extract the first word of "ranlib", so it can be a program name with args.
2163set dummy ranlib; ac_word=$2
572eed31
SP
2164{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2165$as_echo_n "checking for $ac_word... " >&6; }
1daf06b9 2166if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
572eed31 2167 $as_echo_n "(cached) " >&6
1227625a 2168else
1daf06b9
SP
2169 if test -n "$ac_ct_RANLIB"; then
2170 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1227625a 2171else
1daf06b9
SP
2172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2173for as_dir in $PATH
2174do
2175 IFS=$as_save_IFS
2176 test -z "$as_dir" && as_dir=.
2177 for ac_exec_ext in '' $ac_executable_extensions; do
d2816d4c 2178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1daf06b9 2179 ac_cv_prog_ac_ct_RANLIB="ranlib"
572eed31 2180 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1daf06b9
SP
2181 break 2
2182 fi
2183done
2184done
7f7d329e 2185IFS=$as_save_IFS
1daf06b9 2186
1227625a
SP
2187fi
2188fi
1daf06b9
SP
2189ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2190if test -n "$ac_ct_RANLIB"; then
572eed31
SP
2191 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2192$as_echo "$ac_ct_RANLIB" >&6; }
1227625a 2193else
572eed31
SP
2194 { $as_echo "$as_me:$LINENO: result: no" >&5
2195$as_echo "no" >&6; }
1227625a
SP
2196fi
2197
7f7d329e
SP
2198 if test "x$ac_ct_RANLIB" = x; then
2199 RANLIB=":"
2200 else
2201 case $cross_compiling:$ac_tool_warned in
2202yes:)
572eed31
SP
2203{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2204$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7f7d329e
SP
2205ac_tool_warned=yes ;;
2206esac
2207 RANLIB=$ac_ct_RANLIB
2208 fi
1227625a 2209else
1daf06b9 2210 RANLIB="$ac_cv_prog_RANLIB"
1227625a
SP
2211fi
2212
1daf06b9
SP
2213if test -n "$ac_tool_prefix"; then
2214 # Extract the first word of "${ac_tool_prefix}patch", so it can be a program name with args.
1227625a 2215set dummy ${ac_tool_prefix}patch; ac_word=$2
572eed31
SP
2216{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2217$as_echo_n "checking for $ac_word... " >&6; }
1daf06b9 2218if test "${ac_cv_prog_PATCH+set}" = set; then
572eed31 2219 $as_echo_n "(cached) " >&6
1227625a
SP
2220else
2221 if test -n "$PATCH"; then
2222 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
2223else
1daf06b9
SP
2224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225for as_dir in $PATH
2226do
2227 IFS=$as_save_IFS
2228 test -z "$as_dir" && as_dir=.
2229 for ac_exec_ext in '' $ac_executable_extensions; do
d2816d4c 2230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1daf06b9 2231 ac_cv_prog_PATCH="${ac_tool_prefix}patch"
572eed31 2232 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1daf06b9
SP
2233 break 2
2234 fi
2235done
2236done
7f7d329e 2237IFS=$as_save_IFS
1daf06b9 2238
1227625a
SP
2239fi
2240fi
1daf06b9 2241PATCH=$ac_cv_prog_PATCH
1227625a 2242if test -n "$PATCH"; then
572eed31
SP
2243 { $as_echo "$as_me:$LINENO: result: $PATCH" >&5
2244$as_echo "$PATCH" >&6; }
1227625a 2245else
572eed31
SP
2246 { $as_echo "$as_me:$LINENO: result: no" >&5
2247$as_echo "no" >&6; }
1227625a
SP
2248fi
2249
7f7d329e 2250
1daf06b9 2251fi
1227625a 2252if test -z "$ac_cv_prog_PATCH"; then
1daf06b9 2253 ac_ct_PATCH=$PATCH
1227625a
SP
2254 # Extract the first word of "patch", so it can be a program name with args.
2255set dummy patch; ac_word=$2
572eed31
SP
2256{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2257$as_echo_n "checking for $ac_word... " >&6; }
1daf06b9 2258if test "${ac_cv_prog_ac_ct_PATCH+set}" = set; then
572eed31 2259 $as_echo_n "(cached) " >&6
1227625a 2260else
1daf06b9
SP
2261 if test -n "$ac_ct_PATCH"; then
2262 ac_cv_prog_ac_ct_PATCH="$ac_ct_PATCH" # Let the user override the test.
1227625a 2263else
1daf06b9
SP
2264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265for as_dir in $PATH
2266do
2267 IFS=$as_save_IFS
2268 test -z "$as_dir" && as_dir=.
2269 for ac_exec_ext in '' $ac_executable_extensions; do
d2816d4c 2270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1daf06b9 2271 ac_cv_prog_ac_ct_PATCH="patch"
572eed31 2272 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1daf06b9
SP
2273 break 2
2274 fi
2275done
2276done
7f7d329e 2277IFS=$as_save_IFS
1daf06b9 2278
1227625a
SP
2279fi
2280fi
1daf06b9
SP
2281ac_ct_PATCH=$ac_cv_prog_ac_ct_PATCH
2282if test -n "$ac_ct_PATCH"; then
572eed31
SP
2283 { $as_echo "$as_me:$LINENO: result: $ac_ct_PATCH" >&5
2284$as_echo "$ac_ct_PATCH" >&6; }
1227625a 2285else
572eed31
SP
2286 { $as_echo "$as_me:$LINENO: result: no" >&5
2287$as_echo "no" >&6; }
1227625a
SP
2288fi
2289
7f7d329e
SP
2290 if test "x$ac_ct_PATCH" = x; then
2291 PATCH=":"
2292 else
2293 case $cross_compiling:$ac_tool_warned in
2294yes:)
572eed31
SP
2295{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2296$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7f7d329e
SP
2297ac_tool_warned=yes ;;
2298esac
2299 PATCH=$ac_ct_PATCH
2300 fi
1daf06b9
SP
2301else
2302 PATCH="$ac_cv_prog_PATCH"
2303fi
2304
2305ac_ext=c
2306ac_cpp='$CPP $CPPFLAGS'
2307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2309ac_compiler_gnu=$ac_cv_c_compiler_gnu
2310if test -n "$ac_tool_prefix"; then
2311 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2312set dummy ${ac_tool_prefix}gcc; ac_word=$2
572eed31
SP
2313{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2314$as_echo_n "checking for $ac_word... " >&6; }
1daf06b9 2315if test "${ac_cv_prog_CC+set}" = set; then
572eed31 2316 $as_echo_n "(cached) " >&6
1daf06b9
SP
2317else
2318 if test -n "$CC"; then
2319 ac_cv_prog_CC="$CC" # Let the user override the test.
1227625a 2320else
1daf06b9
SP
2321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322for as_dir in $PATH
2323do
2324 IFS=$as_save_IFS
2325 test -z "$as_dir" && as_dir=.
2326 for ac_exec_ext in '' $ac_executable_extensions; do
d2816d4c 2327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1daf06b9 2328 ac_cv_prog_CC="${ac_tool_prefix}gcc"
572eed31 2329 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1daf06b9
SP
2330 break 2
2331 fi
2332done
2333done
7f7d329e 2334IFS=$as_save_IFS
1daf06b9 2335
1227625a
SP
2336fi
2337fi
1daf06b9
SP
2338CC=$ac_cv_prog_CC
2339if test -n "$CC"; then
572eed31
SP
2340 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2341$as_echo "$CC" >&6; }
1daf06b9 2342else
572eed31
SP
2343 { $as_echo "$as_me:$LINENO: result: no" >&5
2344$as_echo "no" >&6; }
1daf06b9 2345fi
1227625a 2346
7f7d329e 2347
1daf06b9
SP
2348fi
2349if test -z "$ac_cv_prog_CC"; then
2350 ac_ct_CC=$CC
2351 # Extract the first word of "gcc", so it can be a program name with args.
1227625a 2352set dummy gcc; ac_word=$2
572eed31
SP
2353{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2354$as_echo_n "checking for $ac_word... " >&6; }
1daf06b9 2355if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
572eed31 2356 $as_echo_n "(cached) " >&6
1daf06b9
SP
2357else
2358 if test -n "$ac_ct_CC"; then
2359 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2360else
2361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362for as_dir in $PATH
2363do
2364 IFS=$as_save_IFS
2365 test -z "$as_dir" && as_dir=.
2366 for ac_exec_ext in '' $ac_executable_extensions; do
d2816d4c 2367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1daf06b9 2368 ac_cv_prog_ac_ct_CC="gcc"
572eed31 2369 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1daf06b9
SP
2370 break 2
2371 fi
2372done
2373done
7f7d329e 2374IFS=$as_save_IFS
1daf06b9
SP
2375
2376fi
2377fi
2378ac_ct_CC=$ac_cv_prog_ac_ct_CC
2379if test -n "$ac_ct_CC"; then
572eed31
SP
2380 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2381$as_echo "$ac_ct_CC" >&6; }
1daf06b9 2382else
572eed31
SP
2383 { $as_echo "$as_me:$LINENO: result: no" >&5
2384$as_echo "no" >&6; }
1daf06b9
SP
2385fi
2386
7f7d329e
SP
2387 if test "x$ac_ct_CC" = x; then
2388 CC=""
2389 else
2390 case $cross_compiling:$ac_tool_warned in
2391yes:)
572eed31
SP
2392{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2393$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7f7d329e
SP
2394ac_tool_warned=yes ;;
2395esac
2396 CC=$ac_ct_CC
2397 fi
1daf06b9
SP
2398else
2399 CC="$ac_cv_prog_CC"
2400fi
2401
2402if test -z "$CC"; then
7f7d329e
SP
2403 if test -n "$ac_tool_prefix"; then
2404 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1daf06b9 2405set dummy ${ac_tool_prefix}cc; ac_word=$2
572eed31
SP
2406{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2407$as_echo_n "checking for $ac_word... " >&6; }
1daf06b9 2408if test "${ac_cv_prog_CC+set}" = set; then
572eed31 2409 $as_echo_n "(cached) " >&6
1227625a
SP
2410else
2411 if test -n "$CC"; then
2412 ac_cv_prog_CC="$CC" # Let the user override the test.
2413else
1daf06b9
SP
2414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415for as_dir in $PATH
2416do
2417 IFS=$as_save_IFS
2418 test -z "$as_dir" && as_dir=.
2419 for ac_exec_ext in '' $ac_executable_extensions; do
d2816d4c 2420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1daf06b9 2421 ac_cv_prog_CC="${ac_tool_prefix}cc"
572eed31 2422 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1daf06b9
SP
2423 break 2
2424 fi
2425done
2426done
7f7d329e 2427IFS=$as_save_IFS
1daf06b9 2428
1227625a
SP
2429fi
2430fi
1daf06b9 2431CC=$ac_cv_prog_CC
1227625a 2432if test -n "$CC"; then
572eed31
SP
2433 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2434$as_echo "$CC" >&6; }
1227625a 2435else
572eed31
SP
2436 { $as_echo "$as_me:$LINENO: result: no" >&5
2437$as_echo "no" >&6; }
1227625a
SP
2438fi
2439
1daf06b9 2440
7f7d329e 2441 fi
1daf06b9 2442fi
1227625a
SP
2443if test -z "$CC"; then
2444 # Extract the first word of "cc", so it can be a program name with args.
2445set dummy cc; ac_word=$2
572eed31
SP
2446{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2447$as_echo_n "checking for $ac_word... " >&6; }
1daf06b9 2448if test "${ac_cv_prog_CC+set}" = set; then
572eed31 2449 $as_echo_n "(cached) " >&6
1227625a
SP
2450else
2451 if test -n "$CC"; then
2452 ac_cv_prog_CC="$CC" # Let the user override the test.
2453else
1227625a 2454 ac_prog_rejected=no
1daf06b9
SP
2455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456for as_dir in $PATH
2457do
2458 IFS=$as_save_IFS
2459 test -z "$as_dir" && as_dir=.
2460 for ac_exec_ext in '' $ac_executable_extensions; do
d2816d4c 2461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1daf06b9
SP
2462 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2463 ac_prog_rejected=yes
2464 continue
2465 fi
2466 ac_cv_prog_CC="cc"
572eed31 2467 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1daf06b9
SP
2468 break 2
2469 fi
2470done
2471done
7f7d329e 2472IFS=$as_save_IFS
1daf06b9 2473
1227625a
SP
2474if test $ac_prog_rejected = yes; then
2475 # We found a bogon in the path, so make sure we never use it.
2476 set dummy $ac_cv_prog_CC
2477 shift
1daf06b9 2478 if test $# != 0; then
1227625a
SP
2479 # We chose a different compiler from the bogus one.
2480 # However, it has the same basename, so the bogon will be chosen
2481 # first if we set CC to just the basename; use the full file name.
2482 shift
cdfe1392 2483 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1227625a
SP
2484 fi
2485fi
2486fi
2487fi
1daf06b9 2488CC=$ac_cv_prog_CC
1227625a 2489if test -n "$CC"; then
572eed31
SP
2490 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2491$as_echo "$CC" >&6; }
1227625a 2492else
572eed31
SP
2493 { $as_echo "$as_me:$LINENO: result: no" >&5
2494$as_echo "no" >&6; }
1227625a
SP
2495fi
2496
7f7d329e 2497
1daf06b9
SP
2498fi
2499if test -z "$CC"; then
2500 if test -n "$ac_tool_prefix"; then
7f7d329e 2501 for ac_prog in cl.exe
1daf06b9
SP
2502 do
2503 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2504set dummy $ac_tool_prefix$ac_prog; ac_word=$2
572eed31
SP
2505{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2506$as_echo_n "checking for $ac_word... " >&6; }
1daf06b9 2507if test "${ac_cv_prog_CC+set}" = set; then
572eed31 2508 $as_echo_n "(cached) " >&6
ddd2ef55
SP
2509else
2510 if test -n "$CC"; then
2511 ac_cv_prog_CC="$CC" # Let the user override the test.
2512else
1daf06b9
SP
2513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514for as_dir in $PATH
2515do
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
d2816d4c 2519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1daf06b9 2520 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
572eed31 2521 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1daf06b9
SP
2522 break 2
2523 fi
2524done
2525done
7f7d329e 2526IFS=$as_save_IFS
1daf06b9 2527
ddd2ef55
SP
2528fi
2529fi
1daf06b9 2530CC=$ac_cv_prog_CC
ddd2ef55 2531if test -n "$CC"; then
572eed31
SP
2532 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2533$as_echo "$CC" >&6; }
ddd2ef55 2534else
572eed31
SP
2535 { $as_echo "$as_me:$LINENO: result: no" >&5
2536$as_echo "no" >&6; }
ddd2ef55 2537fi
1daf06b9 2538
7f7d329e 2539
1daf06b9
SP
2540 test -n "$CC" && break
2541 done
2542fi
2543if test -z "$CC"; then
2544 ac_ct_CC=$CC
7f7d329e 2545 for ac_prog in cl.exe
1daf06b9
SP
2546do
2547 # Extract the first word of "$ac_prog", so it can be a program name with args.
2548set dummy $ac_prog; ac_word=$2
572eed31
SP
2549{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2550$as_echo_n "checking for $ac_word... " >&6; }
1daf06b9 2551if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
572eed31 2552 $as_echo_n "(cached) " >&6
1daf06b9
SP
2553else
2554 if test -n "$ac_ct_CC"; then
2555 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2556else
2557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558for as_dir in $PATH
2559do
2560 IFS=$as_save_IFS
2561 test -z "$as_dir" && as_dir=.
2562 for ac_exec_ext in '' $ac_executable_extensions; do
d2816d4c 2563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1daf06b9 2564 ac_cv_prog_ac_ct_CC="$ac_prog"
572eed31 2565 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1daf06b9 2566 break 2
ddd2ef55 2567 fi
1daf06b9
SP
2568done
2569done
7f7d329e 2570IFS=$as_save_IFS
1daf06b9
SP
2571
2572fi
2573fi
2574ac_ct_CC=$ac_cv_prog_ac_ct_CC
2575if test -n "$ac_ct_CC"; then
572eed31
SP
2576 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2577$as_echo "$ac_ct_CC" >&6; }
1daf06b9 2578else
572eed31
SP
2579 { $as_echo "$as_me:$LINENO: result: no" >&5
2580$as_echo "no" >&6; }
1227625a
SP
2581fi
2582
7f7d329e 2583
1daf06b9
SP
2584 test -n "$ac_ct_CC" && break
2585done
1227625a 2586
7f7d329e
SP
2587 if test "x$ac_ct_CC" = x; then
2588 CC=""
2589 else
2590 case $cross_compiling:$ac_tool_warned in
2591yes:)
572eed31
SP
2592{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7f7d329e
SP
2594ac_tool_warned=yes ;;
2595esac
2596 CC=$ac_ct_CC
2597 fi
1daf06b9
SP
2598fi
2599
2600fi
1227625a 2601
ddd2ef55 2602
572eed31
SP
2603test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2604$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2605{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
cdfe1392 2606See \`config.log' for more details." >&5
572eed31 2607$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
cdfe1392 2608See \`config.log' for more details." >&2;}
572eed31 2609 { (exit 1); exit 1; }; }; }
1daf06b9
SP
2610
2611# Provide some information about the compiler.
572eed31
SP
2612$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2613set X $ac_compile
2614ac_compiler=$2
7f7d329e
SP
2615{ (ac_try="$ac_compiler --version >&5"
2616case "(($ac_try" in
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2619esac
572eed31
SP
2620eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2621$as_echo "$ac_try_echo") >&5
7f7d329e 2622 (eval "$ac_compiler --version >&5") 2>&5
1daf06b9 2623 ac_status=$?
572eed31 2624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1daf06b9 2625 (exit $ac_status); }
7f7d329e
SP
2626{ (ac_try="$ac_compiler -v >&5"
2627case "(($ac_try" in
2628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2629 *) ac_try_echo=$ac_try;;
2630esac
572eed31
SP
2631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2632$as_echo "$ac_try_echo") >&5
7f7d329e 2633 (eval "$ac_compiler -v >&5") 2>&5
1daf06b9 2634 ac_status=$?
572eed31 2635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1daf06b9 2636 (exit $ac_status); }
7f7d329e
SP
2637{ (ac_try="$ac_compiler -V >&5"
2638case "(($ac_try" in
2639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640 *) ac_try_echo=$ac_try;;
2641esac
572eed31
SP
2642eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2643$as_echo "$ac_try_echo") >&5
7f7d329e 2644 (eval "$ac_compiler -V >&5") 2>&5
1daf06b9 2645 ac_status=$?
572eed31 2646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1daf06b9
SP
2647 (exit $ac_status); }
2648
2649cat >conftest.$ac_ext <<_ACEOF
cdfe1392
SP
2650/* confdefs.h. */
2651_ACEOF
2652cat confdefs.h >>conftest.$ac_ext
2653cat >>conftest.$ac_ext <<_ACEOF
2654/* end confdefs.h. */
ddd2ef55 2655
1daf06b9
SP
2656int
2657main ()
2658{
2659
2660 ;
2661 return 0;
2662}
2663_ACEOF
2664ac_clean_files_save=$ac_clean_files
572eed31 2665ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1daf06b9
SP
2666# Try to create an executable without -o first, disregard a.out.
2667# It will help us diagnose broken compilers, and finding out an intuition
2668# of exeext.
572eed31
SP
2669{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2670$as_echo_n "checking for C compiler default output file name... " >&6; }
2671ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2672
2673# The possible output files:
2674ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2675
7f7d329e
SP
2676ac_rmfiles=
2677for ac_file in $ac_files
2678do
2679 case $ac_file in
572eed31 2680 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7f7d329e
SP
2681 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2682 esac
2683done
2684rm -f $ac_rmfiles
2685
2686if { (ac_try="$ac_link_default"
2687case "(($ac_try" in
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2690esac
572eed31
SP
2691eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2692$as_echo "$ac_try_echo") >&5
7f7d329e 2693 (eval "$ac_link_default") 2>&5
1daf06b9 2694 ac_status=$?
572eed31 2695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1daf06b9 2696 (exit $ac_status); }; then
7f7d329e
SP
2697 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2698# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2699# in a Makefile. We should not override ac_cv_exeext if it was cached,
2700# so that the user can short-circuit this test for compilers unknown to
2701# Autoconf.
d2816d4c 2702for ac_file in $ac_files ''
cdfe1392
SP
2703do
2704 test -f "$ac_file" || continue
1daf06b9 2705 case $ac_file in
572eed31 2706 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c9e4e868 2707 ;;
cdfe1392 2708 [ab].out )
c9e4e868
SP
2709 # We found the default executable, but exeext='' is most
2710 # certainly right.
2711 break;;
cdfe1392 2712 *.* )
7f7d329e
SP
2713 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2714 then :; else
2715 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2716 fi
2717 # We set ac_cv_exeext here because the later test for it is not
2718 # safe: cross compilers may not add the suffix if given an `-o'
2719 # argument, so we may need to know it at that point already.
2720 # Even if this section looks crufty: it has the advantage of
2721 # actually working.
c9e4e868 2722 break;;
cdfe1392 2723 * )
c9e4e868 2724 break;;
1daf06b9
SP
2725 esac
2726done
7f7d329e
SP
2727test "$ac_cv_exeext" = no && ac_cv_exeext=
2728
1daf06b9 2729else
d2816d4c
SP
2730 ac_file=''
2731fi
2732
572eed31
SP
2733{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2734$as_echo "$ac_file" >&6; }
d2816d4c 2735if test -z "$ac_file"; then
572eed31 2736 $as_echo "$as_me: failed program was:" >&5
cdfe1392
SP
2737sed 's/^/| /' conftest.$ac_ext >&5
2738
572eed31
SP
2739{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2740$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2741{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
cdfe1392 2742See \`config.log' for more details." >&5
572eed31 2743$as_echo "$as_me: error: C compiler cannot create executables
cdfe1392 2744See \`config.log' for more details." >&2;}
572eed31 2745 { (exit 77); exit 77; }; }; }
1daf06b9
SP
2746fi
2747
2748ac_exeext=$ac_cv_exeext
1daf06b9 2749
7f7d329e 2750# Check that the compiler produces executables we can run. If not, either
1daf06b9 2751# the compiler is broken, or we cross compile.
572eed31
SP
2752{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2753$as_echo_n "checking whether the C compiler works... " >&6; }
1daf06b9
SP
2754# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2755# If not cross compiling, check that we can run a simple program.
2756if test "$cross_compiling" != yes; then
2757 if { ac_try='./$ac_file'
7f7d329e
SP
2758 { (case "(($ac_try" in
2759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760 *) ac_try_echo=$ac_try;;
2761esac
572eed31
SP
2762eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2763$as_echo "$ac_try_echo") >&5
7f7d329e 2764 (eval "$ac_try") 2>&5
1daf06b9 2765 ac_status=$?
572eed31 2766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1daf06b9
SP
2767 (exit $ac_status); }; }; then
2768 cross_compiling=no
1227625a 2769 else
1daf06b9
SP
2770 if test "$cross_compiling" = maybe; then
2771 cross_compiling=yes
2772 else
572eed31
SP
2773 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2774$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2775{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
cdfe1392
SP
2776If you meant to cross compile, use \`--host'.
2777See \`config.log' for more details." >&5
572eed31 2778$as_echo "$as_me: error: cannot run C compiled programs.
cdfe1392
SP
2779If you meant to cross compile, use \`--host'.
2780See \`config.log' for more details." >&2;}
572eed31 2781 { (exit 1); exit 1; }; }; }
1daf06b9 2782 fi
1227625a 2783 fi
1227625a 2784fi
572eed31
SP
2785{ $as_echo "$as_me:$LINENO: result: yes" >&5
2786$as_echo "yes" >&6; }
1daf06b9 2787
572eed31 2788rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1daf06b9 2789ac_clean_files=$ac_clean_files_save
7f7d329e 2790# Check that the compiler produces executables we can run. If not, either
1daf06b9 2791# the compiler is broken, or we cross compile.
572eed31
SP
2792{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2793$as_echo_n "checking whether we are cross compiling... " >&6; }
2794{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2795$as_echo "$cross_compiling" >&6; }
7f7d329e 2796
572eed31
SP
2797{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2798$as_echo_n "checking for suffix of executables... " >&6; }
7f7d329e
SP
2799if { (ac_try="$ac_link"
2800case "(($ac_try" in
2801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2802 *) ac_try_echo=$ac_try;;
2803esac
572eed31
SP
2804eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2805$as_echo "$ac_try_echo") >&5
7f7d329e 2806 (eval "$ac_link") 2>&5
1daf06b9 2807 ac_status=$?
572eed31 2808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1daf06b9
SP
2809 (exit $ac_status); }; then
2810 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2811# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2812# work properly (i.e., refer to `conftest.exe'), while it won't with
2813# `rm'.
cdfe1392
SP
2814for ac_file in conftest.exe conftest conftest.*; do
2815 test -f "$ac_file" || continue
1daf06b9 2816 case $ac_file in
572eed31 2817 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1daf06b9 2818 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c9e4e868 2819 break;;
1daf06b9
SP
2820 * ) break;;
2821 esac
2822done
1227625a 2823else
572eed31
SP
2824 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2825$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2826{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
cdfe1392 2827See \`config.log' for more details." >&5
572eed31 2828$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
cdfe1392 2829See \`config.log' for more details." >&2;}
572eed31 2830 { (exit 1); exit 1; }; }; }
1227625a
SP
2831fi
2832
1daf06b9 2833rm -f conftest$ac_cv_exeext
572eed31
SP
2834{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2835$as_echo "$ac_cv_exeext" >&6; }
1227625a 2836
1daf06b9
SP
2837rm -f conftest.$ac_ext
2838EXEEXT=$ac_cv_exeext
2839ac_exeext=$EXEEXT
572eed31
SP
2840{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2841$as_echo_n "checking for suffix of object files... " >&6; }
1daf06b9 2842if test "${ac_cv_objext+set}" = set; then
572eed31 2843 $as_echo_n "(cached) " >&6
ddd2ef55 2844else
1daf06b9 2845 cat >conftest.$ac_ext <<_ACEOF
cdfe1392
SP
2846/* confdefs.h. */
2847_ACEOF
2848cat confdefs.h >>conftest.$ac_ext
2849cat >>conftest.$ac_ext <<_ACEOF
2850/* end confdefs.h. */
1daf06b9 2851
1daf06b9
SP
2852int
2853main ()
2854{
2855
2856 ;
2857 return 0;
2858}
2859_ACEOF
2860rm -f conftest.o conftest.obj
7f7d329e
SP
2861if { (ac_try="$ac_compile"
2862case "(($ac_try" in
2863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864 *) ac_try_echo=$ac_try;;
2865esac
572eed31
SP
2866eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2867$as_echo "$ac_try_echo") >&5
7f7d329e 2868 (eval "$ac_compile") 2>&5
1daf06b9 2869 ac_status=$?
572eed31 2870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1daf06b9 2871 (exit $ac_status); }; then
7f7d329e
SP
2872 for ac_file in conftest.o conftest.obj conftest.*; do
2873 test -f "$ac_file" || continue;
1daf06b9 2874 case $ac_file in
572eed31 2875 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1daf06b9
SP
2876 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2877 break;;
2878 esac
2879done
2880else
572eed31 2881 $as_echo "$as_me: failed program was:" >&5
cdfe1392
SP
2882sed 's/^/| /' conftest.$ac_ext >&5
2883
572eed31
SP
2884{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2885$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2886{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
cdfe1392 2887See \`config.log' for more details." >&5
572eed31 2888$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
cdfe1392 2889See \`config.log' for more details." >&2;}
572eed31 2890 { (exit 1); exit 1; }; }; }
ddd2ef55
SP
2891fi
2892
1daf06b9
SP
2893rm -f conftest.$ac_cv_objext conftest.$ac_ext
2894fi
572eed31
SP
2895{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2896$as_echo "$ac_cv_objext" >&6; }
1daf06b9
SP
2897OBJEXT=$ac_cv_objext
2898ac_objext=$OBJEXT
572eed31
SP
2899{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2900$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
1daf06b9 2901if test "${ac_cv_c_compiler_gnu+set}" = set; then
572eed31 2902 $as_echo_n "(cached) " >&6
1227625a 2903else
1daf06b9 2904 cat >conftest.$ac_ext <<_ACEOF
cdfe1392
SP
2905/* confdefs.h. */
2906_ACEOF
2907cat confdefs.h >>conftest.$ac_ext
2908cat >>conftest.$ac_ext <<_ACEOF
2909/* end confdefs.h. */
1daf06b9 2910
1daf06b9
SP
2911int
2912main ()
2913{
2914#ifndef __GNUC__
2915 choke me
2916#endif
2917
2918 ;
2919 return 0;
2920}
2921_ACEOF
2922rm -f conftest.$ac_objext
7f7d329e
SP
2923if { (ac_try="$ac_compile"
2924case "(($ac_try" in
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2927esac
572eed31
SP
2928eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2929$as_echo "$ac_try_echo") >&5
7f7d329e 2930 (eval "$ac_compile") 2>conftest.er1
1daf06b9 2931 ac_status=$?
c9e4e868
SP
2932 grep -v '^ *+' conftest.er1 >conftest.err
2933 rm -f conftest.er1
2934 cat conftest.err >&5
572eed31 2935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d2816d4c
SP
2936 (exit $ac_status); } && {
2937 test -z "$ac_c_werror_flag" ||
2938 test ! -s conftest.err
2939 } && test -s conftest.$ac_objext; then
1daf06b9
SP
2940 ac_compiler_gnu=yes
2941else
572eed31 2942 $as_echo "$as_me: failed program was:" >&5
cdfe1392
SP
2943sed 's/^/| /' conftest.$ac_ext >&5
2944
7f7d329e 2945 ac_compiler_gnu=no
1daf06b9 2946fi
7f7d329e
SP
2947
2948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1daf06b9
SP
2949ac_cv_c_compiler_gnu=$ac_compiler_gnu
2950
2951fi
572eed31
SP
2952{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2953$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2954if test $ac_compiler_gnu = yes; then
2955 GCC=yes
2956else
2957 GCC=
2958fi
1daf06b9
SP
2959ac_test_CFLAGS=${CFLAGS+set}
2960ac_save_CFLAGS=$CFLAGS
572eed31
SP
2961{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2962$as_echo_n "checking whether $CC accepts -g... " >&6; }
1daf06b9 2963if test "${ac_cv_prog_cc_g+set}" = set; then
572eed31 2964 $as_echo_n "(cached) " >&6
1daf06b9 2965else
7f7d329e
SP
2966 ac_save_c_werror_flag=$ac_c_werror_flag
2967 ac_c_werror_flag=yes
2968 ac_cv_prog_cc_g=no
2969 CFLAGS="-g"
2970 cat >conftest.$ac_ext <<_ACEOF
2971/* confdefs.h. */
2972_ACEOF
2973cat confdefs.h >>conftest.$ac_ext
2974cat >>conftest.$ac_ext <<_ACEOF
2975/* end confdefs.h. */
2976
2977int
2978main ()
2979{
2980
2981 ;
2982 return 0;
2983}
2984_ACEOF
2985rm -f conftest.$ac_objext
2986if { (ac_try="$ac_compile"
2987case "(($ac_try" in
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2990esac
572eed31
SP
2991eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2992$as_echo "$ac_try_echo") >&5
7f7d329e
SP
2993 (eval "$ac_compile") 2>conftest.er1
2994 ac_status=$?
2995 grep -v '^ *+' conftest.er1 >conftest.err
2996 rm -f conftest.er1
2997 cat conftest.err >&5
572eed31 2998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d2816d4c
SP
2999 (exit $ac_status); } && {
3000 test -z "$ac_c_werror_flag" ||
3001 test ! -s conftest.err
3002 } && test -s conftest.$ac_objext; then
7f7d329e
SP
3003 ac_cv_prog_cc_g=yes
3004else
572eed31 3005 $as_echo "$as_me: failed program was:" >&5
7f7d329e
SP
3006sed 's/^/| /' conftest.$ac_ext >&5
3007
3008 CFLAGS=""
3009 cat >conftest.$ac_ext <<_ACEOF
3010/* confdefs.h. */
3011_ACEOF
3012cat confdefs.h >>conftest.$ac_ext
3013cat >>conftest.$ac_ext <<_ACEOF
3014/* end confdefs.h. */
3015
3016int
3017main ()
3018{
3019
3020 ;
3021 return 0;
3022}
3023_ACEOF
3024rm -f conftest.$ac_objext
3025if { (ac_try="$ac_compile"
3026case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029esac
572eed31
SP
3030eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3031$as_echo "$ac_try_echo") >&5
7f7d329e
SP
3032 (eval "$ac_compile") 2>conftest.er1
3033 ac_status=$?
3034 grep -v '^ *+' conftest.er1 >conftest.err
3035 rm -f conftest.er1
3036 cat conftest.err >&5
572eed31 3037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d2816d4c
SP
3038 (exit $ac_status); } && {
3039 test -z "$ac_c_werror_flag" ||
3040 test ! -s conftest.err
3041 } && test -s conftest.$ac_objext; then
7f7d329e
SP
3042 :
3043else
572eed31 3044 $as_echo "$as_me: failed program was:" >&5
7f7d329e
SP
3045sed 's/^/| /' conftest.$ac_ext >&5
3046
3047 ac_c_werror_flag=$ac_save_c_werror_flag
3048 CFLAGS="-g"
3049 cat >conftest.$ac_ext <<_ACEOF
cdfe1392
SP
3050/* confdefs.h. */
3051_ACEOF
3052cat confdefs.h >>conftest.$ac_ext
3053cat >>conftest.$ac_ext <<_ACEOF
3054/* end confdefs.h. */
1daf06b9 3055
1daf06b9
SP
3056int
3057main ()
3058{
3059
3060 ;
3061 return 0;
3062}
3063_ACEOF
3064rm -f conftest.$ac_objext
7f7d329e
SP
3065if { (ac_try="$ac_compile"
3066case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3069esac
572eed31
SP
3070eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3071$as_echo "$ac_try_echo") >&5
7f7d329e 3072 (eval "$ac_compile") 2>conftest.er1
1daf06b9 3073 ac_status=$?
c9e4e868
SP
3074 grep -v '^ *+' conftest.er1 >conftest.err
3075 rm -f conftest.er1
3076 cat conftest.err >&5
572eed31 3077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d2816d4c
SP
3078 (exit $ac_status); } && {
3079 test -z "$ac_c_werror_flag" ||
3080 test ! -s conftest.err
3081 } && test -s conftest.$ac_objext; then
1227625a
SP
3082 ac_cv_prog_cc_g=yes
3083else
572eed31 3084 $as_echo "$as_me: failed program was:" >&5
cdfe1392
SP
3085sed 's/^/| /' conftest.$ac_ext >&5
3086
7f7d329e
SP
3087
3088fi
3089
3090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3091fi
3092
3093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1227625a 3094fi
7f7d329e
SP
3095
3096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3097 ac_c_werror_flag=$ac_save_c_werror_flag
1227625a 3098fi
572eed31
SP
3099{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3100$as_echo "$ac_cv_prog_cc_g" >&6; }
ddd2ef55 3101if test "$ac_test_CFLAGS" = set; then
1daf06b9 3102 CFLAGS=$ac_save_CFLAGS
ddd2ef55
SP
3103elif test $ac_cv_prog_cc_g = yes; then
3104 if test "$GCC" = yes; then
1227625a
SP
3105 CFLAGS="-g -O2"
3106 else
ddd2ef55 3107 CFLAGS="-g"
1227625a
SP
3108 fi
3109else
ddd2ef55
SP
3110 if test "$GCC" = yes; then
3111 CFLAGS="-O2"
3112 else
3113 CFLAGS=
3114 fi
1227625a 3115fi
572eed31
SP
3116{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3117$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7f7d329e 3118if test "${ac_cv_prog_cc_c89+set}" = set; then
572eed31 3119 $as_echo_n "(cached) " >&6
cdfe1392 3120else
7f7d329e 3121 ac_cv_prog_cc_c89=no
cdfe1392
SP
3122ac_save_CC=$CC
3123cat >conftest.$ac_ext <<_ACEOF
cdfe1392
SP
3124/* confdefs.h. */
3125_ACEOF
3126cat confdefs.h >>conftest.$ac_ext
3127cat >>conftest.$ac_ext <<_ACEOF
3128/* end confdefs.h. */
3129#include <stdarg.h>
3130#include <stdio.h>
3131#include <sys/types.h>
3132#include <sys/stat.h>
3133/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3134struct buf { int x; };
3135FILE * (*rcsopen) (struct buf *, struct stat *, int);
3136static char *e (p, i)
3137 char **p;
3138 int i;
3139{
3140 return p[i];
3141}
3142static char *f (char * (*g) (char **, int), char **p, ...)
3143{
3144 char *s;
3145 va_list v;
3146 va_start (v,p);
3147 s = g (p, va_arg (v,int));
3148 va_end (v);
3149 return s;
3150}
c9e4e868
SP
3151
3152/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3153 function prototypes and stuff, but not '\xHH' hex character constants.
3154 These don't provoke an error unfortunately, instead are silently treated
7f7d329e 3155 as 'x'. The following induces an error, until -std is added to get
c9e4e868
SP
3156 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3157 array size at least. It's necessary to write '\x00'==0 to get something
7f7d329e 3158 that's true only with -std. */
c9e4e868
SP
3159int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3160
7f7d329e
SP
3161/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3162 inside strings and character constants. */
3163#define FOO(x) 'x'
3164int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3165
cdfe1392
SP
3166int test (int i, double x);
3167struct s1 {int (*f) (int a);};
3168struct s2 {int (*f) (double a);};
3169int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3170int argc;
3171char **argv;
3172int
3173main ()
3174{
3175return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3176 ;
3177 return 0;
3178}
3179_ACEOF
7f7d329e
SP
3180for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3181 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
cdfe1392
SP
3182do
3183 CC="$ac_save_CC $ac_arg"
3184 rm -f conftest.$ac_objext
7f7d329e
SP
3185if { (ac_try="$ac_compile"
3186case "(($ac_try" in
3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188 *) ac_try_echo=$ac_try;;
3189esac
572eed31
SP
3190eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3191$as_echo "$ac_try_echo") >&5
7f7d329e 3192 (eval "$ac_compile") 2>conftest.er1
cdfe1392 3193 ac_status=$?
c9e4e868
SP
3194 grep -v '^ *+' conftest.er1 >conftest.err
3195 rm -f conftest.er1
3196 cat conftest.err >&5
572eed31 3197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d2816d4c
SP
3198 (exit $ac_status); } && {
3199 test -z "$ac_c_werror_flag" ||
3200 test ! -s conftest.err
3201 } && test -s conftest.$ac_objext; then
7f7d329e 3202 ac_cv_prog_cc_c89=$ac_arg
cdfe1392 3203else
572eed31 3204 $as_echo "$as_me: failed program was:" >&5
cdfe1392
SP
3205sed 's/^/| /' conftest.$ac_ext >&5
3206
7f7d329e 3207
cdfe1392 3208fi
7f7d329e
SP
3209
3210rm -f core conftest.err conftest.$ac_objext
3211 test "x$ac_cv_prog_cc_c89" != "xno" && break
cdfe1392 3212done
7f7d329e 3213rm -f conftest.$ac_ext
cdfe1392
SP
3214CC=$ac_save_CC
3215
3216fi
7f7d329e
SP
3217# AC_CACHE_VAL
3218case "x$ac_cv_prog_cc_c89" in
3219 x)
572eed31
SP
3220 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3221$as_echo "none needed" >&6; } ;;
7f7d329e 3222 xno)
572eed31
SP
3223 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3224$as_echo "unsupported" >&6; } ;;
cdfe1392 3225 *)
7f7d329e 3226 CC="$CC $ac_cv_prog_cc_c89"
572eed31
SP
3227 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3228$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
cdfe1392
SP
3229esac
3230
cdfe1392 3231
1daf06b9
SP
3232ac_ext=c
3233ac_cpp='$CPP $CPPFLAGS'
3234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3236ac_compiler_gnu=$ac_cv_c_compiler_gnu
3237
3238ac_aux_dir=
7f7d329e
SP
3239for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3240 if test -f "$ac_dir/install-sh"; then
1daf06b9
SP
3241 ac_aux_dir=$ac_dir
3242 ac_install_sh="$ac_aux_dir/install-sh -c"
3243 break
7f7d329e 3244 elif test -f "$ac_dir/install.sh"; then
1daf06b9
SP
3245 ac_aux_dir=$ac_dir
3246 ac_install_sh="$ac_aux_dir/install.sh -c"
3247 break
7f7d329e 3248 elif test -f "$ac_dir/shtool"; then
1daf06b9
SP
3249 ac_aux_dir=$ac_dir
3250 ac_install_sh="$ac_aux_dir/shtool install -c"
3251 break
3252 fi
3253done
3254if test -z "$ac_aux_dir"; then
572eed31
SP
3255 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3256$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1daf06b9
SP
3257 { (exit 1); exit 1; }; }
3258fi
7f7d329e
SP
3259
3260# These three variables are undocumented and unsupported,
3261# and are intended to be withdrawn in a future Autoconf release.
3262# They can cause serious problems if a builder's source tree is in a directory
3263# whose full name contains unusual characters.
3264ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3265ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3266ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3267
1227625a
SP
3268
3269# Find a good install program. We prefer a C program (faster),
3270# so one script is as good as another. But avoid the broken or
3271# incompatible versions:
3272# SysV /etc/install, /usr/sbin/install
3273# SunOS /usr/etc/install
3274# IRIX /sbin/install
3275# AIX /bin/install
1daf06b9 3276# AmigaOS /C/install, which installs bootblocks on floppy discs
ddd2ef55 3277# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1227625a
SP
3278# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3279# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c9e4e868 3280# OS/2's system install, which has a completely different semantic
1227625a 3281# ./install, which can be erroneously created by make from ./install.sh.
572eed31
SP
3282# Reject install programs that cannot install multiple files.
3283{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3284$as_echo_n "checking for a BSD-compatible install... " >&6; }
1227625a 3285if test -z "$INSTALL"; then
1daf06b9 3286if test "${ac_cv_path_install+set}" = set; then
572eed31 3287 $as_echo_n "(cached) " >&6
1daf06b9
SP
3288else
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290for as_dir in $PATH
3291do
3292 IFS=$as_save_IFS
3293 test -z "$as_dir" && as_dir=.
3294 # Account for people who put trailing slashes in PATH elements.
3295case $as_dir/ in
3296 ./ | .// | /cC/* | \
3297 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
c9e4e868 3298 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1daf06b9
SP
3299 /usr/ucb/* ) ;;
3300 *)
3301 # OSF1 and SCO ODT 3.0 have their own names for install.
3302 # Don't use installbsd from OSF since it installs stuff as root
3303 # by default.
3304 for ac_prog in ginstall scoinst install; do
3305 for ac_exec_ext in '' $ac_executable_extensions; do
d2816d4c 3306 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
c9e4e868
SP
3307 if test $ac_prog = install &&
3308 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3309 # AIX install. It has an incompatible calling convention.
3310 :
3311 elif test $ac_prog = install &&
3312 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3313 # program-specific install script used by HP pwplus--don't use.
3314 :
3315 else
572eed31
SP
3316 rm -rf conftest.one conftest.two conftest.dir
3317 echo one > conftest.one
3318 echo two > conftest.two
3319 mkdir conftest.dir
3320 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3321 test -s conftest.one && test -s conftest.two &&
3322 test -s conftest.dir/conftest.one &&
3323 test -s conftest.dir/conftest.two
3324 then
3325 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3326 break 3
3327 fi
c9e4e868
SP
3328 fi
3329 fi
1daf06b9
SP
3330 done
3331 done
3332 ;;
3333esac
572eed31 3334
1daf06b9 3335done
7f7d329e 3336IFS=$as_save_IFS
1daf06b9 3337
572eed31 3338rm -rf conftest.one conftest.two conftest.dir
1227625a
SP
3339
3340fi
3341 if test "${ac_cv_path_install+set}" = set; then
1daf06b9 3342 INSTALL=$ac_cv_path_install
1227625a 3343 else
7f7d329e
SP
3344 # As a last resort, use the slow shell script. Don't cache a
3345 # value for INSTALL within a source directory, because that will
1227625a 3346 # break other packages using the cache if that directory is
7f7d329e 3347 # removed, or if the value is a relative name.
1daf06b9 3348 INSTALL=$ac_install_sh
1227625a
SP
3349 fi
3350fi
572eed31
SP
3351{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3352$as_echo "$INSTALL" >&6; }
1227625a
SP
3353
3354# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3355# It thinks the first close brace ends the variable substitution.
3356test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3357
1daf06b9 3358test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
ddd2ef55 3359
1227625a
SP
3360test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3361
3362
1227625a 3363
e7d18957
SP
3364ac_ext=c
3365ac_cpp='$CPP $CPPFLAGS'
3366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3368ac_compiler_gnu=$ac_cv_c_compiler_gnu
572eed31
SP
3369{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3370$as_echo_n "checking how to run the C preprocessor... " >&6; }
e7d18957
SP
3371# On Suns, sometimes $CPP names a directory.
3372if test -n "$CPP" && test -d "$CPP"; then
3373 CPP=
1227625a 3374fi
e7d18957
SP
3375if test -z "$CPP"; then
3376 if test "${ac_cv_prog_CPP+set}" = set; then
572eed31 3377 $as_echo_n "(cached) " >&6
1227625a 3378else
e7d18957
SP
3379 # Double quotes because CPP needs to be expanded
3380 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3381 do
3382 ac_preproc_ok=false
3383for ac_c_preproc_warn_flag in '' yes
3384do
3385 # Use a header file that comes with gcc, so configuring glibc
3386 # with a fresh cross-compiler works.
3387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3388 # <limits.h> exists even on freestanding compilers.
3389 # On the NeXT, cc -E runs the code through the compiler's parser,
3390 # not just through cpp. "Syntax error" is here to catch this case.
3391 cat >conftest.$ac_ext <<_ACEOF
e7d18957
SP
3392/* confdefs.h. */
3393_ACEOF
3394cat confdefs.h >>conftest.$ac_ext
3395cat >>conftest.$ac_ext <<_ACEOF
3396/* end confdefs.h. */
3397#ifdef __STDC__
3398# include <limits.h>
3399#else
3400# include <assert.h>
3401#endif
c9e4e868 3402 Syntax error
e7d18957 3403_ACEOF
7f7d329e
SP
3404if { (ac_try="$ac_cpp conftest.$ac_ext"
3405case "(($ac_try" in
3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3408esac
572eed31
SP
3409eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3410$as_echo "$ac_try_echo") >&5
7f7d329e 3411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
e7d18957
SP
3412 ac_status=$?
3413 grep -v '^ *+' conftest.er1 >conftest.err
3414 rm -f conftest.er1
3415 cat conftest.err >&5
572eed31 3416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d2816d4c
SP
3417 (exit $ac_status); } >/dev/null && {
3418 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3419 test ! -s conftest.err
3420 }; then
e7d18957 3421 :
1227625a 3422else
572eed31 3423 $as_echo "$as_me: failed program was:" >&5
e7d18957 3424sed 's/^/| /' conftest.$ac_ext >&5
1227625a 3425
e7d18957
SP
3426 # Broken: fails on valid input.
3427continue
cdfe1392 3428fi
7f7d329e 3429
e7d18957 3430rm -f conftest.err conftest.$ac_ext
cdfe1392 3431
7f7d329e 3432 # OK, works on sane cases. Now check whether nonexistent headers
e7d18957
SP
3433 # can be detected and how.
3434 cat >conftest.$ac_ext <<_ACEOF
e7d18957
SP
3435/* confdefs.h. */
3436_ACEOF
3437cat confdefs.h >>conftest.$ac_ext
3438cat >>conftest.$ac_ext <<_ACEOF
3439/* end confdefs.h. */
3440#include <ac_nonexistent.h>
3441_ACEOF
7f7d329e
SP
3442if { (ac_try="$ac_cpp conftest.$ac_ext"
3443case "(($ac_try" in
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3446esac
572eed31
SP
3447eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3448$as_echo "$ac_try_echo") >&5
7f7d329e 3449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
e7d18957
SP
3450 ac_status=$?
3451 grep -v '^ *+' conftest.er1 >conftest.err
3452 rm -f conftest.er1
3453 cat conftest.err >&5
572eed31 3454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d2816d4c
SP
3455 (exit $ac_status); } >/dev/null && {
3456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3457 test ! -s conftest.err
3458 }; then
e7d18957
SP
3459 # Broken: success on invalid input.
3460continue
c38e5b6a 3461else
572eed31 3462 $as_echo "$as_me: failed program was:" >&5
e7d18957 3463sed 's/^/| /' conftest.$ac_ext >&5
c38e5b6a 3464
e7d18957
SP
3465 # Passes both tests.
3466ac_preproc_ok=:
3467break
c38e5b6a 3468fi
7f7d329e 3469
e7d18957 3470rm -f conftest.err conftest.$ac_ext
c38e5b6a 3471
e7d18957
SP
3472done
3473# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3474rm -f conftest.err conftest.$ac_ext
3475if $ac_preproc_ok; then
3476 break
d8574d45
SP
3477fi
3478
e7d18957
SP
3479 done
3480 ac_cv_prog_CPP=$CPP
d6967896
SP
3481
3482fi
e7d18957 3483 CPP=$ac_cv_prog_CPP
d6967896 3484else
e7d18957
SP
3485 ac_cv_prog_CPP=$CPP
3486fi
572eed31
SP
3487{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3488$as_echo "$CPP" >&6; }
e7d18957
SP
3489ac_preproc_ok=false
3490for ac_c_preproc_warn_flag in '' yes
3491do
3492 # Use a header file that comes with gcc, so configuring glibc
3493 # with a fresh cross-compiler works.
3494 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3495 # <limits.h> exists even on freestanding compilers.
3496 # On the NeXT, cc -E runs the code through the compiler's parser,
3497 # not just through cpp. "Syntax error" is here to catch this case.
3498 cat >conftest.$ac_ext <<_ACEOF
e7d18957
SP
3499/* confdefs.h. */
3500_ACEOF
3501cat confdefs.h >>conftest.$ac_ext
3502cat >>conftest.$ac_ext <<_ACEOF
3503/* end confdefs.h. */
3504#ifdef __STDC__
3505# include <limits.h>
3506#else
3507# include <assert.h>
3508#endif
c9e4e868 3509 Syntax error
e7d18957 3510_ACEOF
7f7d329e
SP
3511if { (ac_try="$ac_cpp conftest.$ac_ext"
3512case "(($ac_try" in
3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514 *) ac_try_echo=$ac_try;;
3515esac
572eed31
SP
3516eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3517$as_echo "$ac_try_echo") >&5
7f7d329e 3518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
e7d18957
SP
3519 ac_status=$?
3520 grep -v '^ *+' conftest.er1 >conftest.err
3521 rm -f conftest.er1
3522 cat conftest.err >&5
572eed31 3523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d2816d4c
SP
3524 (exit $ac_status); } >/dev/null && {
3525 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3526 test ! -s conftest.err
3527 }; then
e7d18957
SP
3528 :
3529else
572eed31 3530 $as_echo "$as_me: failed program was:" >&5
e7d18957
SP
3531sed 's/^/| /' conftest.$ac_ext >&5
3532
3533 # Broken: fails on valid input.