2009-04-27 Tristan Gingold <gingold@adacore.com>
[deliverable/binutils-gdb.git] / sim / configure
CommitLineData
c906108c 1#! /bin/sh
c906108c 2# Guess values for system-dependent variables and create Makefiles.
df1756f4 3# Generated by GNU Autoconf 2.61.
c906108c 4#
df1756f4
TG
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
c906108c
SS
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
b7026657
AC
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
df1756f4
TG
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
b7026657
AC
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
df1756f4
TG
21 setopt NO_GLOB_SUBST
22else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
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
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
b7026657 51fi
b7026657
AC
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
59
60
df1756f4
TG
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
b7026657 94# Work around bugs in pre-3.0 UWIN ksh.
df1756f4
TG
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
b7026657
AC
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
df1756f4 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
b7026657
AC
112 fi
113done
114
115# Required to use basename.
df1756f4
TG
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
118 as_expr=expr
119else
120 as_expr=false
121fi
122
df1756f4 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
df1756f4 131as_me=`$as_basename -- "$0" ||
b7026657
AC
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
df1756f4 134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
b7026657 135echo X/"$0" |
df1756f4
TG
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
b7026657 149
df1756f4
TG
150# CDPATH.
151$as_unset CDPATH
b7026657 152
b7026657 153
df1756f4
TG
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
b7026657
AC
159fi
160
df1756f4
TG
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
b7026657 177
df1756f4
TG
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
b7026657 185
df1756f4
TG
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
b7026657
AC
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
df1756f4 226 case $as_dir in
b7026657 227 /*)
df1756f4
TG
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
b7026657
AC
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
b7026657 330 test "x$as_lineno_1" != "x$as_lineno_2" &&
df1756f4
TG
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
b7026657
AC
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
df1756f4
TG
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
b7026657 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
df1756f4
TG
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
b7026657 442 sed '
df1756f4
TG
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
b7026657 447 N
df1756f4
TG
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b7026657 450 t loop
df1756f4 451 s/-\n.*//
b7026657 452 ' >$as_me.lineno &&
df1756f4 453 chmod +x "$as_me.lineno" ||
b7026657
AC
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
df1756f4
TG
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
b7026657
AC
461 # Exit status is that of the last command.
462 exit
463}
464
465
df1756f4
TG
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479*)
480 ECHO_N='-n';;
b7026657
AC
481esac
482
df1756f4
TG
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
df1756f4
TG
491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496fi
b7026657
AC
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
df1756f4
TG
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
b7026657 505 as_ln_s='cp -p'
b7026657
AC
506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508else
509 as_ln_s='cp -p'
510fi
df1756f4
TG
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
b7026657
AC
513
514if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519fi
c906108c 520
df1756f4
TG
521if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541fi
542as_executable_p=$as_test_x
b7026657
AC
543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
b7026657 551
df1756f4 552exec 7<&0 </dev/null 6>&1
b7026657
AC
553
554# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
b7026657
AC
559#
560# Initializations.
561#
c906108c 562ac_default_prefix=/usr/local
df1756f4 563ac_clean_files=
b7026657 564ac_config_libobj_dir=.
df1756f4 565LIBOBJS=
b7026657
AC
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571
b7026657
AC
572# Identity of this package.
573PACKAGE_NAME=
574PACKAGE_TARNAME=
575PACKAGE_VERSION=
576PACKAGE_STRING=
577PACKAGE_BUGREPORT=
578
579ac_unique_file="Makefile.in"
df1756f4
TG
580ac_subst_vars='SHELL
581PATH_SEPARATOR
582PACKAGE_NAME
583PACKAGE_TARNAME
584PACKAGE_VERSION
585PACKAGE_STRING
586PACKAGE_BUGREPORT
587exec_prefix
588prefix
589program_transform_name
590bindir
591sbindir
592libexecdir
593datarootdir
594datadir
595sysconfdir
596sharedstatedir
597localstatedir
598includedir
599oldincludedir
600docdir
601infodir
602htmldir
603dvidir
604pdfdir
605psdir
606libdir
607localedir
608mandir
609DEFS
610ECHO_C
611ECHO_N
612ECHO_T
613LIBS
614build_alias
615host_alias
616target_alias
617CC
618CFLAGS
619LDFLAGS
620CPPFLAGS
621ac_ct_CC
622EXEEXT
623OBJEXT
624INSTALL_PROGRAM
625INSTALL_SCRIPT
626INSTALL_DATA
627AR
628RANLIB
629build
630build_cpu
631build_vendor
632build_os
633host
634host_cpu
635host_vendor
636host_os
637target
638target_cpu
639target_vendor
640target_os
641HDEFINES
642CC_FOR_BUILD
643CFLAGS_FOR_BUILD
644subdirs
645LIBOBJS
646LTLIBOBJS'
b7026657 647ac_subst_files=''
df1756f4
TG
648 ac_precious_vars='build_alias
649host_alias
650target_alias
651CC
652CFLAGS
653LDFLAGS
654LIBS
655CPPFLAGS'
656ac_subdirs_all='arm
657avr
658cr16
659cris
660d10v
661frv
662h8300
663iq2000
664m32c
665m32r
666m68hc11
667mcore
668mips
669mn10300
670sh64
671sh
672erc32
673ppc
674v850
675testsuite
676common
677igen'
c906108c
SS
678
679# Initialize some variables set by options.
b7026657
AC
680ac_init_help=
681ac_init_version=false
c906108c
SS
682# The variables have the same names as the options, with
683# dashes changed to underlines.
b7026657 684cache_file=/dev/null
c906108c 685exec_prefix=NONE
c906108c 686no_create=
c906108c
SS
687no_recursion=
688prefix=NONE
689program_prefix=NONE
690program_suffix=NONE
691program_transform_name=s,x,x,
692silent=
693site=
694srcdir=
c906108c
SS
695verbose=
696x_includes=NONE
697x_libraries=NONE
b7026657
AC
698
699# Installation directory options.
700# These are left unexpanded so users can "make install exec_prefix=/foo"
701# and all the variables that are supposed to be based on exec_prefix
702# by default will actually change.
703# Use braces instead of parens because sh, perl, etc. also accept them.
df1756f4 704# (The list follows the same order as the GNU Coding Standards.)
c906108c
SS
705bindir='${exec_prefix}/bin'
706sbindir='${exec_prefix}/sbin'
707libexecdir='${exec_prefix}/libexec'
df1756f4
TG
708datarootdir='${prefix}/share'
709datadir='${datarootdir}'
c906108c
SS
710sysconfdir='${prefix}/etc'
711sharedstatedir='${prefix}/com'
712localstatedir='${prefix}/var'
c906108c
SS
713includedir='${prefix}/include'
714oldincludedir='/usr/include'
df1756f4
TG
715docdir='${datarootdir}/doc/${PACKAGE}'
716infodir='${datarootdir}/info'
717htmldir='${docdir}'
718dvidir='${docdir}'
719pdfdir='${docdir}'
720psdir='${docdir}'
721libdir='${exec_prefix}/lib'
722localedir='${datarootdir}/locale'
723mandir='${datarootdir}/man'
c906108c 724
c906108c 725ac_prev=
df1756f4 726ac_dashdash=
c906108c
SS
727for ac_option
728do
c906108c
SS
729 # If the previous option needs an argument, assign it.
730 if test -n "$ac_prev"; then
df1756f4 731 eval $ac_prev=\$ac_option
c906108c
SS
732 ac_prev=
733 continue
734 fi
735
df1756f4
TG
736 case $ac_option in
737 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
738 *) ac_optarg=yes ;;
739 esac
c906108c
SS
740
741 # Accept the important Cygnus configure options, so we can diagnose typos.
742
df1756f4
TG
743 case $ac_dashdash$ac_option in
744 --)
745 ac_dashdash=yes ;;
c906108c
SS
746
747 -bindir | --bindir | --bindi | --bind | --bin | --bi)
748 ac_prev=bindir ;;
749 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 750 bindir=$ac_optarg ;;
c906108c
SS
751
752 -build | --build | --buil | --bui | --bu)
b7026657 753 ac_prev=build_alias ;;
c906108c 754 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 755 build_alias=$ac_optarg ;;
c906108c
SS
756
757 -cache-file | --cache-file | --cache-fil | --cache-fi \
758 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
759 ac_prev=cache_file ;;
760 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
761 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b7026657
AC
762 cache_file=$ac_optarg ;;
763
764 --config-cache | -C)
765 cache_file=config.cache ;;
c906108c 766
df1756f4 767 -datadir | --datadir | --datadi | --datad)
c906108c 768 ac_prev=datadir ;;
df1756f4 769 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b7026657 770 datadir=$ac_optarg ;;
c906108c 771
df1756f4
TG
772 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
773 | --dataroo | --dataro | --datar)
774 ac_prev=datarootdir ;;
775 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
776 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
777 datarootdir=$ac_optarg ;;
778
c906108c 779 -disable-* | --disable-*)
b7026657 780 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 781 # Reject names that are not valid shell variable names.
df1756f4 782 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
b7026657
AC
783 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
784 { (exit 1); exit 1; }; }
df1756f4
TG
785 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
786 eval enable_$ac_feature=no ;;
787
788 -docdir | --docdir | --docdi | --doc | --do)
789 ac_prev=docdir ;;
790 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
791 docdir=$ac_optarg ;;
792
793 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
794 ac_prev=dvidir ;;
795 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
796 dvidir=$ac_optarg ;;
c906108c
SS
797
798 -enable-* | --enable-*)
b7026657 799 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 800 # Reject names that are not valid shell variable names.
df1756f4 801 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
b7026657
AC
802 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
803 { (exit 1); exit 1; }; }
df1756f4
TG
804 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
805 eval enable_$ac_feature=\$ac_optarg ;;
c906108c
SS
806
807 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
808 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
809 | --exec | --exe | --ex)
810 ac_prev=exec_prefix ;;
811 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
812 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
813 | --exec=* | --exe=* | --ex=*)
b7026657 814 exec_prefix=$ac_optarg ;;
c906108c
SS
815
816 -gas | --gas | --ga | --g)
817 # Obsolete; use --with-gas.
818 with_gas=yes ;;
819
b7026657
AC
820 -help | --help | --hel | --he | -h)
821 ac_init_help=long ;;
822 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
823 ac_init_help=recursive ;;
824 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
825 ac_init_help=short ;;
c906108c
SS
826
827 -host | --host | --hos | --ho)
b7026657 828 ac_prev=host_alias ;;
c906108c 829 -host=* | --host=* | --hos=* | --ho=*)
b7026657 830 host_alias=$ac_optarg ;;
c906108c 831
df1756f4
TG
832 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
833 ac_prev=htmldir ;;
834 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
835 | --ht=*)
836 htmldir=$ac_optarg ;;
837
c906108c
SS
838 -includedir | --includedir | --includedi | --included | --include \
839 | --includ | --inclu | --incl | --inc)
840 ac_prev=includedir ;;
841 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
842 | --includ=* | --inclu=* | --incl=* | --inc=*)
b7026657 843 includedir=$ac_optarg ;;
c906108c
SS
844
845 -infodir | --infodir | --infodi | --infod | --info | --inf)
846 ac_prev=infodir ;;
847 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 848 infodir=$ac_optarg ;;
c906108c
SS
849
850 -libdir | --libdir | --libdi | --libd)
851 ac_prev=libdir ;;
852 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 853 libdir=$ac_optarg ;;
c906108c
SS
854
855 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
856 | --libexe | --libex | --libe)
857 ac_prev=libexecdir ;;
858 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
859 | --libexe=* | --libex=* | --libe=*)
b7026657 860 libexecdir=$ac_optarg ;;
c906108c 861
df1756f4
TG
862 -localedir | --localedir | --localedi | --localed | --locale)
863 ac_prev=localedir ;;
864 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
865 localedir=$ac_optarg ;;
866
c906108c 867 -localstatedir | --localstatedir | --localstatedi | --localstated \
df1756f4 868 | --localstate | --localstat | --localsta | --localst | --locals)
c906108c
SS
869 ac_prev=localstatedir ;;
870 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
df1756f4 871 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b7026657 872 localstatedir=$ac_optarg ;;
c906108c
SS
873
874 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
875 ac_prev=mandir ;;
876 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b7026657 877 mandir=$ac_optarg ;;
c906108c
SS
878
879 -nfp | --nfp | --nf)
880 # Obsolete; use --without-fp.
881 with_fp=no ;;
882
883 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b7026657 884 | --no-cr | --no-c | -n)
c906108c
SS
885 no_create=yes ;;
886
887 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
888 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
889 no_recursion=yes ;;
890
891 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
892 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
893 | --oldin | --oldi | --old | --ol | --o)
894 ac_prev=oldincludedir ;;
895 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
896 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
897 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b7026657 898 oldincludedir=$ac_optarg ;;
c906108c
SS
899
900 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
901 ac_prev=prefix ;;
902 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b7026657 903 prefix=$ac_optarg ;;
c906108c
SS
904
905 -program-prefix | --program-prefix | --program-prefi | --program-pref \
906 | --program-pre | --program-pr | --program-p)
907 ac_prev=program_prefix ;;
908 -program-prefix=* | --program-prefix=* | --program-prefi=* \
909 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b7026657 910 program_prefix=$ac_optarg ;;
c906108c
SS
911
912 -program-suffix | --program-suffix | --program-suffi | --program-suff \
913 | --program-suf | --program-su | --program-s)
914 ac_prev=program_suffix ;;
915 -program-suffix=* | --program-suffix=* | --program-suffi=* \
916 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b7026657 917 program_suffix=$ac_optarg ;;
c906108c
SS
918
919 -program-transform-name | --program-transform-name \
920 | --program-transform-nam | --program-transform-na \
921 | --program-transform-n | --program-transform- \
922 | --program-transform | --program-transfor \
923 | --program-transfo | --program-transf \
924 | --program-trans | --program-tran \
925 | --progr-tra | --program-tr | --program-t)
926 ac_prev=program_transform_name ;;
927 -program-transform-name=* | --program-transform-name=* \
928 | --program-transform-nam=* | --program-transform-na=* \
929 | --program-transform-n=* | --program-transform-=* \
930 | --program-transform=* | --program-transfor=* \
931 | --program-transfo=* | --program-transf=* \
932 | --program-trans=* | --program-tran=* \
933 | --progr-tra=* | --program-tr=* | --program-t=*)
b7026657 934 program_transform_name=$ac_optarg ;;
c906108c 935
df1756f4
TG
936 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
937 ac_prev=pdfdir ;;
938 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
939 pdfdir=$ac_optarg ;;
940
941 -psdir | --psdir | --psdi | --psd | --ps)
942 ac_prev=psdir ;;
943 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
944 psdir=$ac_optarg ;;
945
c906108c
SS
946 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
947 | -silent | --silent | --silen | --sile | --sil)
948 silent=yes ;;
949
950 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
951 ac_prev=sbindir ;;
952 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
953 | --sbi=* | --sb=*)
b7026657 954 sbindir=$ac_optarg ;;
c906108c
SS
955
956 -sharedstatedir | --sharedstatedir | --sharedstatedi \
957 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
958 | --sharedst | --shareds | --shared | --share | --shar \
959 | --sha | --sh)
960 ac_prev=sharedstatedir ;;
961 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
962 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
963 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
964 | --sha=* | --sh=*)
b7026657 965 sharedstatedir=$ac_optarg ;;
c906108c
SS
966
967 -site | --site | --sit)
968 ac_prev=site ;;
969 -site=* | --site=* | --sit=*)
b7026657 970 site=$ac_optarg ;;
0fda6bd2 971
c906108c
SS
972 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
973 ac_prev=srcdir ;;
974 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 975 srcdir=$ac_optarg ;;
c906108c
SS
976
977 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
978 | --syscon | --sysco | --sysc | --sys | --sy)
979 ac_prev=sysconfdir ;;
980 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
981 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b7026657 982 sysconfdir=$ac_optarg ;;
c906108c
SS
983
984 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 985 ac_prev=target_alias ;;
c906108c 986 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 987 target_alias=$ac_optarg ;;
c906108c
SS
988
989 -v | -verbose | --verbose | --verbos | --verbo | --verb)
990 verbose=yes ;;
991
b7026657
AC
992 -version | --version | --versio | --versi | --vers | -V)
993 ac_init_version=: ;;
c906108c
SS
994
995 -with-* | --with-*)
b7026657 996 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 997 # Reject names that are not valid shell variable names.
df1756f4 998 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
b7026657
AC
999 { echo "$as_me: error: invalid package name: $ac_package" >&2
1000 { (exit 1); exit 1; }; }
df1756f4
TG
1001 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1002 eval with_$ac_package=\$ac_optarg ;;
c906108c
SS
1003
1004 -without-* | --without-*)
b7026657 1005 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 1006 # Reject names that are not valid shell variable names.
df1756f4 1007 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
b7026657
AC
1008 { echo "$as_me: error: invalid package name: $ac_package" >&2
1009 { (exit 1); exit 1; }; }
df1756f4
TG
1010 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1011 eval with_$ac_package=no ;;
c906108c
SS
1012
1013 --x)
1014 # Obsolete; use --with-x.
1015 with_x=yes ;;
1016
1017 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1018 | --x-incl | --x-inc | --x-in | --x-i)
1019 ac_prev=x_includes ;;
1020 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1021 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b7026657 1022 x_includes=$ac_optarg ;;
c906108c
SS
1023
1024 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1025 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1026 ac_prev=x_libraries ;;
1027 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1028 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b7026657 1029 x_libraries=$ac_optarg ;;
c906108c 1030
b7026657
AC
1031 -*) { echo "$as_me: error: unrecognized option: $ac_option
1032Try \`$0 --help' for more information." >&2
1033 { (exit 1); exit 1; }; }
c906108c
SS
1034 ;;
1035
b7026657
AC
1036 *=*)
1037 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1040 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1041 { (exit 1); exit 1; }; }
df1756f4 1042 eval $ac_envvar=\$ac_optarg
b7026657
AC
1043 export $ac_envvar ;;
1044
c906108c 1045 *)
b7026657
AC
1046 # FIXME: should be removed in autoconf 3.0.
1047 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1048 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1049 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1050 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
c906108c
SS
1051 ;;
1052
1053 esac
1054done
1055
1056if test -n "$ac_prev"; then
b7026657
AC
1057 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1058 { echo "$as_me: error: missing argument to $ac_option" >&2
1059 { (exit 1); exit 1; }; }
c906108c 1060fi
c906108c 1061
df1756f4
TG
1062# Be sure to have absolute directory names.
1063for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1064 datadir sysconfdir sharedstatedir localstatedir includedir \
1065 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1066 libdir localedir mandir
c906108c 1067do
df1756f4 1068 eval ac_val=\$$ac_var
b7026657 1069 case $ac_val in
df1756f4
TG
1070 [\\/$]* | ?:[\\/]* ) continue;;
1071 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
c906108c 1072 esac
df1756f4
TG
1073 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1074 { (exit 1); exit 1; }; }
c906108c
SS
1075done
1076
b7026657
AC
1077# There might be people who depend on the old broken behavior: `$host'
1078# used to hold the argument of --host etc.
1079# FIXME: To remove some day.
1080build=$build_alias
1081host=$host_alias
1082target=$target_alias
1083
1084# FIXME: To remove some day.
1085if test "x$host_alias" != x; then
1086 if test "x$build_alias" = x; then
1087 cross_compiling=maybe
1088 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1089 If a cross compiler is detected then cross compile mode will be used." >&2
1090 elif test "x$build_alias" != "x$host_alias"; then
1091 cross_compiling=yes
1092 fi
1093fi
c906108c 1094
b7026657
AC
1095ac_tool_prefix=
1096test -n "$host_alias" && ac_tool_prefix=$host_alias-
1097
1098test "$silent" = yes && exec 6>/dev/null
c906108c 1099
c906108c 1100
df1756f4
TG
1101ac_pwd=`pwd` && test -n "$ac_pwd" &&
1102ac_ls_di=`ls -di .` &&
1103ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1104 { echo "$as_me: error: Working directory cannot be determined" >&2
1105 { (exit 1); exit 1; }; }
1106test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1107 { echo "$as_me: error: pwd does not report name of working directory" >&2
1108 { (exit 1); exit 1; }; }
1109
1110
c906108c
SS
1111# Find the source files, if location was not specified.
1112if test -z "$srcdir"; then
1113 ac_srcdir_defaulted=yes
df1756f4
TG
1114 # Try the directory containing this script, then the parent directory.
1115 ac_confdir=`$as_dirname -- "$0" ||
b7026657
AC
1116$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1117 X"$0" : 'X\(//\)[^/]' \| \
1118 X"$0" : 'X\(//\)$' \| \
df1756f4 1119 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
b7026657 1120echo X"$0" |
df1756f4
TG
1121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1122 s//\1/
1123 q
1124 }
1125 /^X\(\/\/\)[^/].*/{
1126 s//\1/
1127 q
1128 }
1129 /^X\(\/\/\)$/{
1130 s//\1/
1131 q
1132 }
1133 /^X\(\/\).*/{
1134 s//\1/
1135 q
1136 }
1137 s/.*/./; q'`
c906108c 1138 srcdir=$ac_confdir
df1756f4 1139 if test ! -r "$srcdir/$ac_unique_file"; then
c906108c
SS
1140 srcdir=..
1141 fi
1142else
1143 ac_srcdir_defaulted=no
1144fi
df1756f4
TG
1145if test ! -r "$srcdir/$ac_unique_file"; then
1146 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1147 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
b7026657 1148 { (exit 1); exit 1; }; }
c906108c 1149fi
df1756f4
TG
1150ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1151ac_abs_confdir=`(
1152 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
b7026657 1153 { (exit 1); exit 1; }; }
df1756f4
TG
1154 pwd)`
1155# When building in place, set srcdir=.
1156if test "$ac_abs_confdir" = "$ac_pwd"; then
1157 srcdir=.
1158fi
1159# Remove unnecessary trailing slashes from srcdir.
1160# Double slashes in file names in object file debugging info
1161# mess up M-x gdb in Emacs.
1162case $srcdir in
1163*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1164esac
1165for ac_var in $ac_precious_vars; do
1166 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1167 eval ac_env_${ac_var}_value=\$${ac_var}
1168 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1169 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1170done
1171
1172#
b7026657
AC
1173# Report the --help message.
1174#
1175if test "$ac_init_help" = "long"; then
1176 # Omit some internal or obsolete options to make the list less imposing.
1177 # This message is too long to be a string in the A/UX 3.1 sh.
1178 cat <<_ACEOF
1179\`configure' configures this package to adapt to many kinds of systems.
1180
1181Usage: $0 [OPTION]... [VAR=VALUE]...
1182
1183To assign environment variables (e.g., CC, CFLAGS...), specify them as
1184VAR=VALUE. See below for descriptions of some of the useful variables.
1185
1186Defaults for the options are specified in brackets.
1187
1188Configuration:
1189 -h, --help display this help and exit
1190 --help=short display options specific to this package
1191 --help=recursive display the short help of all the included packages
1192 -V, --version display version information and exit
1193 -q, --quiet, --silent do not print \`checking...' messages
1194 --cache-file=FILE cache test results in FILE [disabled]
1195 -C, --config-cache alias for \`--cache-file=config.cache'
1196 -n, --no-create do not create output files
1197 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1198
b7026657
AC
1199Installation directories:
1200 --prefix=PREFIX install architecture-independent files in PREFIX
1201 [$ac_default_prefix]
1202 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1203 [PREFIX]
1204
1205By default, \`make install' will install all the files in
1206\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1207an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1208for instance \`--prefix=\$HOME'.
1209
1210For better control, use the options below.
1211
1212Fine tuning of the installation directories:
1213 --bindir=DIR user executables [EPREFIX/bin]
1214 --sbindir=DIR system admin executables [EPREFIX/sbin]
1215 --libexecdir=DIR program executables [EPREFIX/libexec]
b7026657
AC
1216 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1217 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1218 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1219 --libdir=DIR object code libraries [EPREFIX/lib]
1220 --includedir=DIR C header files [PREFIX/include]
1221 --oldincludedir=DIR C header files for non-gcc [/usr/include]
df1756f4
TG
1222 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1223 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1224 --infodir=DIR info documentation [DATAROOTDIR/info]
1225 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1226 --mandir=DIR man documentation [DATAROOTDIR/man]
1227 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1228 --htmldir=DIR html documentation [DOCDIR]
1229 --dvidir=DIR dvi documentation [DOCDIR]
1230 --pdfdir=DIR pdf documentation [DOCDIR]
1231 --psdir=DIR ps documentation [DOCDIR]
b7026657
AC
1232_ACEOF
1233
1234 cat <<\_ACEOF
1235
1236Program names:
1237 --program-prefix=PREFIX prepend PREFIX to installed program names
1238 --program-suffix=SUFFIX append SUFFIX to installed program names
1239 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1240
1241System types:
1242 --build=BUILD configure for building on BUILD [guessed]
1243 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1244 --target=TARGET configure for building compilers for TARGET [HOST]
1245_ACEOF
1246fi
1247
1248if test -n "$ac_init_help"; then
1249
1250 cat <<\_ACEOF
1251
1252Optional Features:
1253 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1254 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1255 --enable-sim
1256
1257Some influential environment variables:
1258 CC C compiler command
1259 CFLAGS C compiler flags
1260 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1261 nonstandard directory <lib dir>
df1756f4
TG
1262 LIBS libraries to pass to the linker, e.g. -l<library>
1263 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1264 you have headers in a nonstandard directory <include dir>
b7026657
AC
1265
1266Use these variables to override the choices made by `configure' or to help
1267it to find libraries and programs with nonstandard names/locations.
1268
1269_ACEOF
df1756f4 1270ac_status=$?
b7026657
AC
1271fi
1272
1273if test "$ac_init_help" = "recursive"; then
1274 # If there are subdirs, report their specific --help.
b7026657 1275 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
df1756f4 1276 test -d "$ac_dir" || continue
b7026657
AC
1277 ac_builddir=.
1278
df1756f4
TG
1279case "$ac_dir" in
1280.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1281*)
b7026657 1282 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
df1756f4
TG
1283 # A ".." for each directory in $ac_dir_suffix.
1284 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1285 case $ac_top_builddir_sub in
1286 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1287 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1288 esac ;;
1289esac
1290ac_abs_top_builddir=$ac_pwd
1291ac_abs_builddir=$ac_pwd$ac_dir_suffix
1292# for backward compatibility:
1293ac_top_builddir=$ac_top_build_prefix
b7026657
AC
1294
1295case $srcdir in
df1756f4 1296 .) # We are building in place.
b7026657 1297 ac_srcdir=.
df1756f4
TG
1298 ac_top_srcdir=$ac_top_builddir_sub
1299 ac_abs_top_srcdir=$ac_pwd ;;
1300 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 1301 ac_srcdir=$srcdir$ac_dir_suffix;
df1756f4
TG
1302 ac_top_srcdir=$srcdir
1303 ac_abs_top_srcdir=$srcdir ;;
1304 *) # Relative name.
1305 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1306 ac_top_srcdir=$ac_top_build_prefix$srcdir
1307 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 1308esac
df1756f4
TG
1309ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1310
1311 cd "$ac_dir" || { ac_status=$?; continue; }
1312 # Check for guested configure.
1313 if test -f "$ac_srcdir/configure.gnu"; then
1314 echo &&
1315 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1316 elif test -f "$ac_srcdir/configure"; then
1317 echo &&
1318 $SHELL "$ac_srcdir/configure" --help=recursive
0fda6bd2 1319 else
b7026657 1320 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
df1756f4
TG
1321 fi || ac_status=$?
1322 cd "$ac_pwd" || { ac_status=$?; break; }
b7026657
AC
1323 done
1324fi
1325
df1756f4 1326test -n "$ac_init_help" && exit $ac_status
b7026657
AC
1327if $ac_init_version; then
1328 cat <<\_ACEOF
df1756f4
TG
1329configure
1330generated by GNU Autoconf 2.61
b7026657 1331
df1756f4
TG
1332Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
13332002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
b7026657
AC
1334This configure script is free software; the Free Software Foundation
1335gives unlimited permission to copy, distribute and modify it.
1336_ACEOF
df1756f4 1337 exit
b7026657 1338fi
df1756f4 1339cat >config.log <<_ACEOF
b7026657
AC
1340This file contains any messages produced by compilers while
1341running configure, to aid debugging if configure makes a mistake.
1342
1343It was created by $as_me, which was
df1756f4 1344generated by GNU Autoconf 2.61. Invocation command line was
b7026657
AC
1345
1346 $ $0 $@
1347
1348_ACEOF
df1756f4 1349exec 5>>config.log
b7026657
AC
1350{
1351cat <<_ASUNAME
1352## --------- ##
1353## Platform. ##
1354## --------- ##
1355
1356hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1357uname -m = `(uname -m) 2>/dev/null || echo unknown`
1358uname -r = `(uname -r) 2>/dev/null || echo unknown`
1359uname -s = `(uname -s) 2>/dev/null || echo unknown`
1360uname -v = `(uname -v) 2>/dev/null || echo unknown`
1361
1362/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1363/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1364
1365/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1366/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1367/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
df1756f4 1368/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
b7026657
AC
1369/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1370/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1371/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1372
1373_ASUNAME
1374
1375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1376for as_dir in $PATH
1377do
1378 IFS=$as_save_IFS
1379 test -z "$as_dir" && as_dir=.
1380 echo "PATH: $as_dir"
1381done
df1756f4 1382IFS=$as_save_IFS
b7026657
AC
1383
1384} >&5
1385
1386cat >&5 <<_ACEOF
1387
1388
1389## ----------- ##
1390## Core tests. ##
1391## ----------- ##
1392
1393_ACEOF
1394
1395
1396# Keep a trace of the command line.
1397# Strip out --no-create and --no-recursion so they do not pile up.
1398# Strip out --silent because we don't want to record it for future runs.
1399# Also quote any args containing shell meta-characters.
1400# Make two passes to allow for proper duplicate-argument suppression.
1401ac_configure_args=
1402ac_configure_args0=
1403ac_configure_args1=
b7026657
AC
1404ac_must_keep_next=false
1405for ac_pass in 1 2
1406do
1407 for ac_arg
1408 do
1409 case $ac_arg in
1410 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1411 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1412 | -silent | --silent | --silen | --sile | --sil)
1413 continue ;;
df1756f4 1414 *\'*)
b7026657
AC
1415 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1416 esac
1417 case $ac_pass in
1418 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1419 2)
1420 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1421 if test $ac_must_keep_next = true; then
1422 ac_must_keep_next=false # Got value, back to normal.
1423 else
1424 case $ac_arg in
1425 *=* | --config-cache | -C | -disable-* | --disable-* \
1426 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1427 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1428 | -with-* | --with-* | -without-* | --without-* | --x)
1429 case "$ac_configure_args0 " in
1430 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1431 esac
1432 ;;
1433 -* ) ac_must_keep_next=true ;;
1434 esac
1435 fi
df1756f4 1436 ac_configure_args="$ac_configure_args '$ac_arg'"
b7026657
AC
1437 ;;
1438 esac
1439 done
1440done
1441$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1442$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1443
1444# When interrupted or exit'd, cleanup temporary files, and complete
1445# config.log. We remove comments because anyway the quotes in there
1446# would cause problems or look ugly.
df1756f4
TG
1447# WARNING: Use '\'' to represent an apostrophe within the trap.
1448# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b7026657
AC
1449trap 'exit_status=$?
1450 # Save into config.log some information that might help in debugging.
1451 {
1452 echo
1453
1454 cat <<\_ASBOX
1455## ---------------- ##
1456## Cache variables. ##
1457## ---------------- ##
1458_ASBOX
1459 echo
1460 # The following way of writing the cache mishandles newlines in values,
df1756f4
TG
1461(
1462 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1463 eval ac_val=\$$ac_var
1464 case $ac_val in #(
1465 *${as_nl}*)
1466 case $ac_var in #(
1467 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1468echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1469 esac
1470 case $ac_var in #(
1471 _ | IFS | as_nl) ;; #(
1472 *) $as_unset $ac_var ;;
1473 esac ;;
1474 esac
1475 done
b7026657 1476 (set) 2>&1 |
df1756f4
TG
1477 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1478 *${as_nl}ac_space=\ *)
b7026657 1479 sed -n \
df1756f4
TG
1480 "s/'\''/'\''\\\\'\'''\''/g;
1481 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1482 ;; #(
b7026657 1483 *)
df1756f4 1484 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 1485 ;;
df1756f4
TG
1486 esac |
1487 sort
1488)
b7026657
AC
1489 echo
1490
1491 cat <<\_ASBOX
1492## ----------------- ##
1493## Output variables. ##
1494## ----------------- ##
1495_ASBOX
1496 echo
1497 for ac_var in $ac_subst_vars
1498 do
df1756f4
TG
1499 eval ac_val=\$$ac_var
1500 case $ac_val in
1501 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1502 esac
1503 echo "$ac_var='\''$ac_val'\''"
b7026657
AC
1504 done | sort
1505 echo
1506
1507 if test -n "$ac_subst_files"; then
1508 cat <<\_ASBOX
df1756f4
TG
1509## ------------------- ##
1510## File substitutions. ##
1511## ------------------- ##
b7026657
AC
1512_ASBOX
1513 echo
1514 for ac_var in $ac_subst_files
1515 do
df1756f4
TG
1516 eval ac_val=\$$ac_var
1517 case $ac_val in
1518 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1519 esac
1520 echo "$ac_var='\''$ac_val'\''"
b7026657
AC
1521 done | sort
1522 echo
1523 fi
1524
1525 if test -s confdefs.h; then
1526 cat <<\_ASBOX
1527## ----------- ##
1528## confdefs.h. ##
1529## ----------- ##
1530_ASBOX
1531 echo
df1756f4 1532 cat confdefs.h
b7026657 1533 echo
0fda6bd2 1534 fi
b7026657
AC
1535 test "$ac_signal" != 0 &&
1536 echo "$as_me: caught signal $ac_signal"
1537 echo "$as_me: exit $exit_status"
1538 } >&5
df1756f4
TG
1539 rm -f core *.core core.conftest.* &&
1540 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b7026657 1541 exit $exit_status
df1756f4 1542' 0
b7026657
AC
1543for ac_signal in 1 2 13 15; do
1544 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1545done
1546ac_signal=0
1547
1548# confdefs.h avoids OS command line length limits that DEFS can exceed.
df1756f4 1549rm -f -r conftest* confdefs.h
b7026657
AC
1550
1551# Predefined preprocessor variables.
1552
1553cat >>confdefs.h <<_ACEOF
1554#define PACKAGE_NAME "$PACKAGE_NAME"
1555_ACEOF
1556
1557
1558cat >>confdefs.h <<_ACEOF
1559#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1560_ACEOF
1561
1562
1563cat >>confdefs.h <<_ACEOF
1564#define PACKAGE_VERSION "$PACKAGE_VERSION"
1565_ACEOF
1566
1567
1568cat >>confdefs.h <<_ACEOF
1569#define PACKAGE_STRING "$PACKAGE_STRING"
1570_ACEOF
1571
1572
1573cat >>confdefs.h <<_ACEOF
1574#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1575_ACEOF
1576
1577
1578# Let the site file select an alternate cache file if it wants to.
1579# Prefer explicitly selected file to automatically selected ones.
df1756f4
TG
1580if test -n "$CONFIG_SITE"; then
1581 set x "$CONFIG_SITE"
1582elif test "x$prefix" != xNONE; then
1583 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1584else
1585 set x "$ac_default_prefix/share/config.site" \
1586 "$ac_default_prefix/etc/config.site"
c906108c 1587fi
df1756f4
TG
1588shift
1589for ac_site_file
1590do
c906108c 1591 if test -r "$ac_site_file"; then
b7026657
AC
1592 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1593echo "$as_me: loading site script $ac_site_file" >&6;}
1594 sed 's/^/| /' "$ac_site_file" >&5
c906108c
SS
1595 . "$ac_site_file"
1596 fi
1597done
1598
1599if test -r "$cache_file"; then
b7026657
AC
1600 # Some versions of bash will fail to source /dev/null (special
1601 # files actually), so we avoid doing that.
1602 if test -f "$cache_file"; then
1603 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1604echo "$as_me: loading cache $cache_file" >&6;}
1605 case $cache_file in
df1756f4
TG
1606 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1607 *) . "./$cache_file";;
b7026657
AC
1608 esac
1609 fi
c906108c 1610else
b7026657
AC
1611 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1612echo "$as_me: creating cache $cache_file" >&6;}
1613 >$cache_file
c906108c
SS
1614fi
1615
b7026657
AC
1616# Check that the precious variables saved in the cache have kept the same
1617# value.
1618ac_cache_corrupted=false
df1756f4 1619for ac_var in $ac_precious_vars; do
b7026657
AC
1620 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1621 eval ac_new_set=\$ac_env_${ac_var}_set
df1756f4
TG
1622 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1623 eval ac_new_val=\$ac_env_${ac_var}_value
b7026657
AC
1624 case $ac_old_set,$ac_new_set in
1625 set,)
1626 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1627echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1628 ac_cache_corrupted=: ;;
1629 ,set)
1630 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1631echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1632 ac_cache_corrupted=: ;;
1633 ,);;
1634 *)
1635 if test "x$ac_old_val" != "x$ac_new_val"; then
1636 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1637echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1638 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1639echo "$as_me: former value: $ac_old_val" >&2;}
1640 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1641echo "$as_me: current value: $ac_new_val" >&2;}
1642 ac_cache_corrupted=:
1643 fi;;
1644 esac
1645 # Pass precious variables to config.status.
1646 if test "$ac_new_set" = set; then
1647 case $ac_new_val in
df1756f4 1648 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
1649 *) ac_arg=$ac_var=$ac_new_val ;;
1650 esac
1651 case " $ac_configure_args " in
1652 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1653 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1654 esac
c906108c 1655 fi
b7026657
AC
1656done
1657if $ac_cache_corrupted; then
1658 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1659echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1660 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1661echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1662 { (exit 1); exit 1; }; }
c906108c
SS
1663fi
1664
1665
1666
b7026657
AC
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
df1756f4
TG
1681ac_ext=c
1682ac_cpp='$CPP $CPPFLAGS'
1683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1685ac_compiler_gnu=$ac_cv_c_compiler_gnu
b7026657
AC
1686
1687
1688
1689ac_ext=c
1690ac_cpp='$CPP $CPPFLAGS'
1691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1693ac_compiler_gnu=$ac_cv_c_compiler_gnu
1694if test -n "$ac_tool_prefix"; then
1695 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1696set dummy ${ac_tool_prefix}gcc; ac_word=$2
df1756f4
TG
1697{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b7026657
AC
1699if test "${ac_cv_prog_CC+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1701else
1702 if test -n "$CC"; then
1703 ac_cv_prog_CC="$CC" # Let the user override the test.
1704else
b7026657
AC
1705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706for as_dir in $PATH
1707do
1708 IFS=$as_save_IFS
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
df1756f4 1711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657
AC
1712 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 break 2
1715 fi
1716done
1717done
df1756f4 1718IFS=$as_save_IFS
b7026657 1719
c906108c
SS
1720fi
1721fi
b7026657 1722CC=$ac_cv_prog_CC
c906108c 1723if test -n "$CC"; then
df1756f4
TG
1724 { echo "$as_me:$LINENO: result: $CC" >&5
1725echo "${ECHO_T}$CC" >&6; }
c906108c 1726else
df1756f4
TG
1727 { echo "$as_me:$LINENO: result: no" >&5
1728echo "${ECHO_T}no" >&6; }
c906108c
SS
1729fi
1730
df1756f4 1731
b7026657
AC
1732fi
1733if test -z "$ac_cv_prog_CC"; then
1734 ac_ct_CC=$CC
1735 # Extract the first word of "gcc", so it can be a program name with args.
1736set dummy gcc; ac_word=$2
df1756f4
TG
1737{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b7026657
AC
1739if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1740 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 1741else
b7026657
AC
1742 if test -n "$ac_ct_CC"; then
1743 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1744else
1745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746for as_dir in $PATH
1747do
1748 IFS=$as_save_IFS
1749 test -z "$as_dir" && as_dir=.
1750 for ac_exec_ext in '' $ac_executable_extensions; do
df1756f4 1751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657
AC
1752 ac_cv_prog_ac_ct_CC="gcc"
1753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1754 break 2
1755 fi
1756done
1757done
df1756f4 1758IFS=$as_save_IFS
b7026657
AC
1759
1760fi
1761fi
1762ac_ct_CC=$ac_cv_prog_ac_ct_CC
1763if test -n "$ac_ct_CC"; then
df1756f4
TG
1764 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1765echo "${ECHO_T}$ac_ct_CC" >&6; }
b7026657 1766else
df1756f4
TG
1767 { echo "$as_me:$LINENO: result: no" >&5
1768echo "${ECHO_T}no" >&6; }
b7026657
AC
1769fi
1770
df1756f4
TG
1771 if test "x$ac_ct_CC" = x; then
1772 CC=""
1773 else
1774 case $cross_compiling:$ac_tool_warned in
1775yes:)
1776{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1777whose name does not start with the host triplet. If you think this
1778configuration is useful to you, please write to autoconf@gnu.org." >&5
1779echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1780whose name does not start with the host triplet. If you think this
1781configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1782ac_tool_warned=yes ;;
1783esac
1784 CC=$ac_ct_CC
1785 fi
b7026657
AC
1786else
1787 CC="$ac_cv_prog_CC"
1788fi
1789
1790if test -z "$CC"; then
df1756f4
TG
1791 if test -n "$ac_tool_prefix"; then
1792 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b7026657 1793set dummy ${ac_tool_prefix}cc; ac_word=$2
df1756f4
TG
1794{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b7026657
AC
1796if test "${ac_cv_prog_CC+set}" = set; then
1797 echo $ECHO_N "(cached) $ECHO_C" >&6
1798else
1799 if test -n "$CC"; then
1800 ac_cv_prog_CC="$CC" # Let the user override the test.
1801else
1802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1803for as_dir in $PATH
1804do
1805 IFS=$as_save_IFS
1806 test -z "$as_dir" && as_dir=.
1807 for ac_exec_ext in '' $ac_executable_extensions; do
df1756f4 1808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657
AC
1809 ac_cv_prog_CC="${ac_tool_prefix}cc"
1810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1811 break 2
1812 fi
1813done
1814done
df1756f4 1815IFS=$as_save_IFS
b7026657
AC
1816
1817fi
1818fi
1819CC=$ac_cv_prog_CC
1820if test -n "$CC"; then
df1756f4
TG
1821 { echo "$as_me:$LINENO: result: $CC" >&5
1822echo "${ECHO_T}$CC" >&6; }
b7026657 1823else
df1756f4
TG
1824 { echo "$as_me:$LINENO: result: no" >&5
1825echo "${ECHO_T}no" >&6; }
b7026657
AC
1826fi
1827
b7026657 1828
df1756f4 1829 fi
b7026657
AC
1830fi
1831if test -z "$CC"; then
1832 # Extract the first word of "cc", so it can be a program name with args.
1833set dummy cc; ac_word=$2
df1756f4
TG
1834{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b7026657
AC
1836if test "${ac_cv_prog_CC+set}" = set; then
1837 echo $ECHO_N "(cached) $ECHO_C" >&6
1838else
1839 if test -n "$CC"; then
c906108c
SS
1840 ac_cv_prog_CC="$CC" # Let the user override the test.
1841else
c906108c 1842 ac_prog_rejected=no
b7026657
AC
1843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844for as_dir in $PATH
1845do
1846 IFS=$as_save_IFS
1847 test -z "$as_dir" && as_dir=.
1848 for ac_exec_ext in '' $ac_executable_extensions; do
df1756f4 1849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657
AC
1850 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1851 ac_prog_rejected=yes
1852 continue
1853 fi
1854 ac_cv_prog_CC="cc"
1855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1856 break 2
1857 fi
1858done
1859done
df1756f4 1860IFS=$as_save_IFS
b7026657 1861
c906108c
SS
1862if test $ac_prog_rejected = yes; then
1863 # We found a bogon in the path, so make sure we never use it.
1864 set dummy $ac_cv_prog_CC
1865 shift
b7026657 1866 if test $# != 0; then
c906108c
SS
1867 # We chose a different compiler from the bogus one.
1868 # However, it has the same basename, so the bogon will be chosen
1869 # first if we set CC to just the basename; use the full file name.
1870 shift
b7026657 1871 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
1872 fi
1873fi
1874fi
1875fi
b7026657 1876CC=$ac_cv_prog_CC
c906108c 1877if test -n "$CC"; then
df1756f4
TG
1878 { echo "$as_me:$LINENO: result: $CC" >&5
1879echo "${ECHO_T}$CC" >&6; }
c906108c 1880else
df1756f4
TG
1881 { echo "$as_me:$LINENO: result: no" >&5
1882echo "${ECHO_T}no" >&6; }
c906108c
SS
1883fi
1884
df1756f4 1885
b7026657
AC
1886fi
1887if test -z "$CC"; then
1888 if test -n "$ac_tool_prefix"; then
df1756f4 1889 for ac_prog in cl.exe
b7026657
AC
1890 do
1891 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1892set dummy $ac_tool_prefix$ac_prog; ac_word=$2
df1756f4
TG
1893{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b7026657
AC
1895if test "${ac_cv_prog_CC+set}" = set; then
1896 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1897else
1898 if test -n "$CC"; then
1899 ac_cv_prog_CC="$CC" # Let the user override the test.
1900else
b7026657
AC
1901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1902for as_dir in $PATH
1903do
1904 IFS=$as_save_IFS
1905 test -z "$as_dir" && as_dir=.
1906 for ac_exec_ext in '' $ac_executable_extensions; do
df1756f4 1907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657
AC
1908 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1910 break 2
1911 fi
1912done
1913done
df1756f4 1914IFS=$as_save_IFS
b7026657 1915
c906108c
SS
1916fi
1917fi
b7026657 1918CC=$ac_cv_prog_CC
c906108c 1919if test -n "$CC"; then
df1756f4
TG
1920 { echo "$as_me:$LINENO: result: $CC" >&5
1921echo "${ECHO_T}$CC" >&6; }
c906108c 1922else
df1756f4
TG
1923 { echo "$as_me:$LINENO: result: no" >&5
1924echo "${ECHO_T}no" >&6; }
c906108c 1925fi
b7026657 1926
df1756f4 1927
b7026657
AC
1928 test -n "$CC" && break
1929 done
1930fi
1931if test -z "$CC"; then
1932 ac_ct_CC=$CC
df1756f4 1933 for ac_prog in cl.exe
b7026657
AC
1934do
1935 # Extract the first word of "$ac_prog", so it can be a program name with args.
1936set dummy $ac_prog; ac_word=$2
df1756f4
TG
1937{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b7026657
AC
1939if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
1941else
1942 if test -n "$ac_ct_CC"; then
1943 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1944else
1945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946for as_dir in $PATH
1947do
1948 IFS=$as_save_IFS
1949 test -z "$as_dir" && as_dir=.
1950 for ac_exec_ext in '' $ac_executable_extensions; do
df1756f4 1951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657
AC
1952 ac_cv_prog_ac_ct_CC="$ac_prog"
1953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1954 break 2
c906108c 1955 fi
b7026657
AC
1956done
1957done
df1756f4 1958IFS=$as_save_IFS
b7026657
AC
1959
1960fi
1961fi
1962ac_ct_CC=$ac_cv_prog_ac_ct_CC
1963if test -n "$ac_ct_CC"; then
df1756f4
TG
1964 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1965echo "${ECHO_T}$ac_ct_CC" >&6; }
b7026657 1966else
df1756f4
TG
1967 { echo "$as_me:$LINENO: result: no" >&5
1968echo "${ECHO_T}no" >&6; }
b7026657
AC
1969fi
1970
df1756f4 1971
b7026657
AC
1972 test -n "$ac_ct_CC" && break
1973done
1974
df1756f4
TG
1975 if test "x$ac_ct_CC" = x; then
1976 CC=""
1977 else
1978 case $cross_compiling:$ac_tool_warned in
1979yes:)
1980{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1981whose name does not start with the host triplet. If you think this
1982configuration is useful to you, please write to autoconf@gnu.org." >&5
1983echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1984whose name does not start with the host triplet. If you think this
1985configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1986ac_tool_warned=yes ;;
1987esac
1988 CC=$ac_ct_CC
1989 fi
b7026657
AC
1990fi
1991
c906108c
SS
1992fi
1993
c906108c 1994
b7026657
AC
1995test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1996See \`config.log' for more details." >&5
1997echo "$as_me: error: no acceptable C compiler found in \$PATH
1998See \`config.log' for more details." >&2;}
1999 { (exit 1); exit 1; }; }
2000
2001# Provide some information about the compiler.
df1756f4 2002echo "$as_me:$LINENO: checking for C compiler version" >&5
b7026657 2003ac_compiler=`set X $ac_compile; echo $2`
df1756f4
TG
2004{ (ac_try="$ac_compiler --version >&5"
2005case "(($ac_try" in
2006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2007 *) ac_try_echo=$ac_try;;
2008esac
2009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2010 (eval "$ac_compiler --version >&5") 2>&5
b7026657
AC
2011 ac_status=$?
2012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013 (exit $ac_status); }
df1756f4
TG
2014{ (ac_try="$ac_compiler -v >&5"
2015case "(($ac_try" in
2016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2017 *) ac_try_echo=$ac_try;;
2018esac
2019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2020 (eval "$ac_compiler -v >&5") 2>&5
b7026657
AC
2021 ac_status=$?
2022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2023 (exit $ac_status); }
df1756f4
TG
2024{ (ac_try="$ac_compiler -V >&5"
2025case "(($ac_try" in
2026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2027 *) ac_try_echo=$ac_try;;
2028esac
2029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2030 (eval "$ac_compiler -V >&5") 2>&5
b7026657
AC
2031 ac_status=$?
2032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033 (exit $ac_status); }
2034
2035cat >conftest.$ac_ext <<_ACEOF
2036/* confdefs.h. */
2037_ACEOF
2038cat confdefs.h >>conftest.$ac_ext
2039cat >>conftest.$ac_ext <<_ACEOF
2040/* end confdefs.h. */
2041
2042int
2043main ()
2044{
2045
2046 ;
2047 return 0;
2048}
2049_ACEOF
2050ac_clean_files_save=$ac_clean_files
2051ac_clean_files="$ac_clean_files a.out a.exe b.out"
2052# Try to create an executable without -o first, disregard a.out.
2053# It will help us diagnose broken compilers, and finding out an intuition
2054# of exeext.
df1756f4
TG
2055{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2056echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
b7026657 2057ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
df1756f4
TG
2058#
2059# List of possible output files, starting from the most likely.
2060# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2061# only as a last resort. b.out is created by i960 compilers.
2062ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2063#
2064# The IRIX 6 linker writes into existing files which may not be
2065# executable, retaining their permissions. Remove them first so a
2066# subsequent execution test works.
2067ac_rmfiles=
2068for ac_file in $ac_files
2069do
2070 case $ac_file in
2071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2072 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2073 esac
2074done
2075rm -f $ac_rmfiles
2076
2077if { (ac_try="$ac_link_default"
2078case "(($ac_try" in
2079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2080 *) ac_try_echo=$ac_try;;
2081esac
2082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2083 (eval "$ac_link_default") 2>&5
b7026657
AC
2084 ac_status=$?
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }; then
df1756f4
TG
2087 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2088# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2089# in a Makefile. We should not override ac_cv_exeext if it was cached,
2090# so that the user can short-circuit this test for compilers unknown to
2091# Autoconf.
2092for ac_file in $ac_files ''
b7026657
AC
2093do
2094 test -f "$ac_file" || continue
2095 case $ac_file in
df1756f4 2096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
b7026657
AC
2097 ;;
2098 [ab].out )
2099 # We found the default executable, but exeext='' is most
2100 # certainly right.
2101 break;;
2102 *.* )
df1756f4
TG
2103 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2104 then :; else
2105 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2106 fi
2107 # We set ac_cv_exeext here because the later test for it is not
2108 # safe: cross compilers may not add the suffix if given an `-o'
2109 # argument, so we may need to know it at that point already.
2110 # Even if this section looks crufty: it has the advantage of
2111 # actually working.
b7026657
AC
2112 break;;
2113 * )
2114 break;;
2115 esac
2116done
df1756f4
TG
2117test "$ac_cv_exeext" = no && ac_cv_exeext=
2118
b7026657 2119else
df1756f4
TG
2120 ac_file=''
2121fi
2122
2123{ echo "$as_me:$LINENO: result: $ac_file" >&5
2124echo "${ECHO_T}$ac_file" >&6; }
2125if test -z "$ac_file"; then
b7026657
AC
2126 echo "$as_me: failed program was:" >&5
2127sed 's/^/| /' conftest.$ac_ext >&5
2128
2129{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2130See \`config.log' for more details." >&5
2131echo "$as_me: error: C compiler cannot create executables
2132See \`config.log' for more details." >&2;}
2133 { (exit 77); exit 77; }; }
2134fi
2135
2136ac_exeext=$ac_cv_exeext
b7026657 2137
df1756f4 2138# Check that the compiler produces executables we can run. If not, either
b7026657 2139# the compiler is broken, or we cross compile.
df1756f4
TG
2140{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2141echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
b7026657
AC
2142# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2143# If not cross compiling, check that we can run a simple program.
2144if test "$cross_compiling" != yes; then
2145 if { ac_try='./$ac_file'
df1756f4
TG
2146 { (case "(($ac_try" in
2147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2148 *) ac_try_echo=$ac_try;;
2149esac
2150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2151 (eval "$ac_try") 2>&5
b7026657
AC
2152 ac_status=$?
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; }; then
2155 cross_compiling=no
c906108c 2156 else
b7026657
AC
2157 if test "$cross_compiling" = maybe; then
2158 cross_compiling=yes
2159 else
2160 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2161If you meant to cross compile, use \`--host'.
2162See \`config.log' for more details." >&5
2163echo "$as_me: error: cannot run C compiled programs.
2164If you meant to cross compile, use \`--host'.
2165See \`config.log' for more details." >&2;}
2166 { (exit 1); exit 1; }; }
2167 fi
c906108c 2168 fi
c906108c 2169fi
df1756f4
TG
2170{ echo "$as_me:$LINENO: result: yes" >&5
2171echo "${ECHO_T}yes" >&6; }
b7026657
AC
2172
2173rm -f a.out a.exe conftest$ac_cv_exeext b.out
2174ac_clean_files=$ac_clean_files_save
df1756f4 2175# Check that the compiler produces executables we can run. If not, either
b7026657 2176# the compiler is broken, or we cross compile.
df1756f4
TG
2177{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2178echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2179{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2180echo "${ECHO_T}$cross_compiling" >&6; }
2181
2182{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2183echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2184if { (ac_try="$ac_link"
2185case "(($ac_try" in
2186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2187 *) ac_try_echo=$ac_try;;
2188esac
2189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2190 (eval "$ac_link") 2>&5
b7026657
AC
2191 ac_status=$?
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }; then
2194 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2195# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2196# work properly (i.e., refer to `conftest.exe'), while it won't with
2197# `rm'.
2198for ac_file in conftest.exe conftest conftest.*; do
2199 test -f "$ac_file" || continue
2200 case $ac_file in
df1756f4 2201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
b7026657 2202 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b7026657
AC
2203 break;;
2204 * ) break;;
2205 esac
2206done
c906108c 2207else
b7026657
AC
2208 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2209See \`config.log' for more details." >&5
2210echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2211See \`config.log' for more details." >&2;}
2212 { (exit 1); exit 1; }; }
c906108c 2213fi
b7026657
AC
2214
2215rm -f conftest$ac_cv_exeext
df1756f4
TG
2216{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2217echo "${ECHO_T}$ac_cv_exeext" >&6; }
b7026657
AC
2218
2219rm -f conftest.$ac_ext
2220EXEEXT=$ac_cv_exeext
2221ac_exeext=$EXEEXT
df1756f4
TG
2222{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2223echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
b7026657
AC
2224if test "${ac_cv_objext+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2226else
2227 cat >conftest.$ac_ext <<_ACEOF
2228/* confdefs.h. */
2229_ACEOF
2230cat confdefs.h >>conftest.$ac_ext
2231cat >>conftest.$ac_ext <<_ACEOF
2232/* end confdefs.h. */
2233
2234int
2235main ()
2236{
2237
2238 ;
2239 return 0;
2240}
2241_ACEOF
2242rm -f conftest.o conftest.obj
df1756f4
TG
2243if { (ac_try="$ac_compile"
2244case "(($ac_try" in
2245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2246 *) ac_try_echo=$ac_try;;
2247esac
2248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2249 (eval "$ac_compile") 2>&5
b7026657
AC
2250 ac_status=$?
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; then
df1756f4
TG
2253 for ac_file in conftest.o conftest.obj conftest.*; do
2254 test -f "$ac_file" || continue;
b7026657 2255 case $ac_file in
df1756f4 2256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
b7026657
AC
2257 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2258 break;;
2259 esac
2260done
2261else
2262 echo "$as_me: failed program was:" >&5
2263sed 's/^/| /' conftest.$ac_ext >&5
2264
2265{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2266See \`config.log' for more details." >&5
2267echo "$as_me: error: cannot compute suffix of object files: cannot compile
2268See \`config.log' for more details." >&2;}
2269 { (exit 1); exit 1; }; }
c906108c
SS
2270fi
2271
b7026657
AC
2272rm -f conftest.$ac_cv_objext conftest.$ac_ext
2273fi
df1756f4
TG
2274{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2275echo "${ECHO_T}$ac_cv_objext" >&6; }
b7026657
AC
2276OBJEXT=$ac_cv_objext
2277ac_objext=$OBJEXT
df1756f4
TG
2278{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2279echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
b7026657
AC
2280if test "${ac_cv_c_compiler_gnu+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2282else
2283 cat >conftest.$ac_ext <<_ACEOF
2284/* confdefs.h. */
2285_ACEOF
2286cat confdefs.h >>conftest.$ac_ext
2287cat >>conftest.$ac_ext <<_ACEOF
2288/* end confdefs.h. */
2289
2290int
2291main ()
2292{
2293#ifndef __GNUC__
2294 choke me
2295#endif
c906108c 2296
b7026657
AC
2297 ;
2298 return 0;
2299}
2300_ACEOF
2301rm -f conftest.$ac_objext
df1756f4
TG
2302if { (ac_try="$ac_compile"
2303case "(($ac_try" in
2304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2305 *) ac_try_echo=$ac_try;;
2306esac
2307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2308 (eval "$ac_compile") 2>conftest.er1
b7026657
AC
2309 ac_status=$?
2310 grep -v '^ *+' conftest.er1 >conftest.err
2311 rm -f conftest.er1
2312 cat conftest.err >&5
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
df1756f4
TG
2314 (exit $ac_status); } && {
2315 test -z "$ac_c_werror_flag" ||
2316 test ! -s conftest.err
2317 } && test -s conftest.$ac_objext; then
b7026657 2318 ac_compiler_gnu=yes
c906108c 2319else
b7026657
AC
2320 echo "$as_me: failed program was:" >&5
2321sed 's/^/| /' conftest.$ac_ext >&5
2322
df1756f4 2323 ac_compiler_gnu=no
c906108c 2324fi
df1756f4
TG
2325
2326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 2327ac_cv_c_compiler_gnu=$ac_compiler_gnu
c906108c 2328
b7026657 2329fi
df1756f4
TG
2330{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2331echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
b7026657
AC
2332GCC=`test $ac_compiler_gnu = yes && echo yes`
2333ac_test_CFLAGS=${CFLAGS+set}
2334ac_save_CFLAGS=$CFLAGS
df1756f4
TG
2335{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2336echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
b7026657
AC
2337if test "${ac_cv_prog_cc_g+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2339else
df1756f4
TG
2340 ac_save_c_werror_flag=$ac_c_werror_flag
2341 ac_c_werror_flag=yes
2342 ac_cv_prog_cc_g=no
2343 CFLAGS="-g"
2344 cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
2345/* confdefs.h. */
2346_ACEOF
2347cat confdefs.h >>conftest.$ac_ext
2348cat >>conftest.$ac_ext <<_ACEOF
2349/* end confdefs.h. */
2350
2351int
2352main ()
2353{
2354
2355 ;
2356 return 0;
2357}
2358_ACEOF
2359rm -f conftest.$ac_objext
df1756f4
TG
2360if { (ac_try="$ac_compile"
2361case "(($ac_try" in
2362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2363 *) ac_try_echo=$ac_try;;
2364esac
2365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2366 (eval "$ac_compile") 2>conftest.er1
b7026657
AC
2367 ac_status=$?
2368 grep -v '^ *+' conftest.er1 >conftest.err
2369 rm -f conftest.er1
2370 cat conftest.err >&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
df1756f4
TG
2372 (exit $ac_status); } && {
2373 test -z "$ac_c_werror_flag" ||
2374 test ! -s conftest.err
2375 } && test -s conftest.$ac_objext; then
2376 ac_cv_prog_cc_g=yes
2377else
2378 echo "$as_me: failed program was:" >&5
2379sed 's/^/| /' conftest.$ac_ext >&5
2380
2381 CFLAGS=""
2382 cat >conftest.$ac_ext <<_ACEOF
2383/* confdefs.h. */
2384_ACEOF
2385cat confdefs.h >>conftest.$ac_ext
2386cat >>conftest.$ac_ext <<_ACEOF
2387/* end confdefs.h. */
2388
2389int
2390main ()
2391{
2392
2393 ;
2394 return 0;
2395}
2396_ACEOF
2397rm -f conftest.$ac_objext
2398if { (ac_try="$ac_compile"
2399case "(($ac_try" in
2400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401 *) ac_try_echo=$ac_try;;
2402esac
2403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2404 (eval "$ac_compile") 2>conftest.er1
b7026657 2405 ac_status=$?
df1756f4
TG
2406 grep -v '^ *+' conftest.er1 >conftest.err
2407 rm -f conftest.er1
2408 cat conftest.err >&5
b7026657 2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
df1756f4
TG
2410 (exit $ac_status); } && {
2411 test -z "$ac_c_werror_flag" ||
2412 test ! -s conftest.err
2413 } && test -s conftest.$ac_objext; then
2414 :
2415else
2416 echo "$as_me: failed program was:" >&5
2417sed 's/^/| /' conftest.$ac_ext >&5
2418
2419 ac_c_werror_flag=$ac_save_c_werror_flag
2420 CFLAGS="-g"
2421 cat >conftest.$ac_ext <<_ACEOF
2422/* confdefs.h. */
2423_ACEOF
2424cat confdefs.h >>conftest.$ac_ext
2425cat >>conftest.$ac_ext <<_ACEOF
2426/* end confdefs.h. */
2427
2428int
2429main ()
2430{
2431
2432 ;
2433 return 0;
2434}
2435_ACEOF
2436rm -f conftest.$ac_objext
2437if { (ac_try="$ac_compile"
2438case "(($ac_try" in
2439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2440 *) ac_try_echo=$ac_try;;
2441esac
2442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2443 (eval "$ac_compile") 2>conftest.er1
b7026657 2444 ac_status=$?
df1756f4
TG
2445 grep -v '^ *+' conftest.er1 >conftest.err
2446 rm -f conftest.er1
2447 cat conftest.err >&5
b7026657 2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
df1756f4
TG
2449 (exit $ac_status); } && {
2450 test -z "$ac_c_werror_flag" ||
2451 test ! -s conftest.err
2452 } && test -s conftest.$ac_objext; then
c906108c
SS
2453 ac_cv_prog_cc_g=yes
2454else
b7026657
AC
2455 echo "$as_me: failed program was:" >&5
2456sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2457
df1756f4
TG
2458
2459fi
2460
2461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2462fi
2463
2464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 2465fi
df1756f4
TG
2466
2467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2468 ac_c_werror_flag=$ac_save_c_werror_flag
b7026657 2469fi
df1756f4
TG
2470{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2471echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
c906108c 2472if test "$ac_test_CFLAGS" = set; then
b7026657 2473 CFLAGS=$ac_save_CFLAGS
c906108c
SS
2474elif test $ac_cv_prog_cc_g = yes; then
2475 if test "$GCC" = yes; then
2476 CFLAGS="-g -O2"
2477 else
2478 CFLAGS="-g"
2479 fi
2480else
2481 if test "$GCC" = yes; then
2482 CFLAGS="-O2"
2483 else
2484 CFLAGS=
2485 fi
2486fi
df1756f4
TG
2487{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2488echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2489if test "${ac_cv_prog_cc_c89+set}" = set; then
b7026657
AC
2490 echo $ECHO_N "(cached) $ECHO_C" >&6
2491else
df1756f4 2492 ac_cv_prog_cc_c89=no
b7026657
AC
2493ac_save_CC=$CC
2494cat >conftest.$ac_ext <<_ACEOF
2495/* confdefs.h. */
2496_ACEOF
2497cat confdefs.h >>conftest.$ac_ext
2498cat >>conftest.$ac_ext <<_ACEOF
2499/* end confdefs.h. */
2500#include <stdarg.h>
2501#include <stdio.h>
2502#include <sys/types.h>
2503#include <sys/stat.h>
2504/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2505struct buf { int x; };
2506FILE * (*rcsopen) (struct buf *, struct stat *, int);
2507static char *e (p, i)
2508 char **p;
2509 int i;
2510{
2511 return p[i];
2512}
2513static char *f (char * (*g) (char **, int), char **p, ...)
2514{
2515 char *s;
2516 va_list v;
2517 va_start (v,p);
2518 s = g (p, va_arg (v,int));
2519 va_end (v);
2520 return s;
2521}
2522
2523/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2524 function prototypes and stuff, but not '\xHH' hex character constants.
2525 These don't provoke an error unfortunately, instead are silently treated
df1756f4 2526 as 'x'. The following induces an error, until -std is added to get
b7026657
AC
2527 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2528 array size at least. It's necessary to write '\x00'==0 to get something
df1756f4 2529 that's true only with -std. */
b7026657
AC
2530int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2531
df1756f4
TG
2532/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2533 inside strings and character constants. */
2534#define FOO(x) 'x'
2535int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2536
b7026657
AC
2537int test (int i, double x);
2538struct s1 {int (*f) (int a);};
2539struct s2 {int (*f) (double a);};
2540int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2541int argc;
2542char **argv;
2543int
2544main ()
2545{
2546return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2547 ;
2548 return 0;
2549}
2550_ACEOF
df1756f4
TG
2551for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2552 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b7026657
AC
2553do
2554 CC="$ac_save_CC $ac_arg"
2555 rm -f conftest.$ac_objext
df1756f4
TG
2556if { (ac_try="$ac_compile"
2557case "(($ac_try" in
2558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559 *) ac_try_echo=$ac_try;;
2560esac
2561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2562 (eval "$ac_compile") 2>conftest.er1
b7026657
AC
2563 ac_status=$?
2564 grep -v '^ *+' conftest.er1 >conftest.err
2565 rm -f conftest.er1
2566 cat conftest.err >&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
df1756f4
TG
2568 (exit $ac_status); } && {
2569 test -z "$ac_c_werror_flag" ||
2570 test ! -s conftest.err
2571 } && test -s conftest.$ac_objext; then
2572 ac_cv_prog_cc_c89=$ac_arg
b7026657
AC
2573else
2574 echo "$as_me: failed program was:" >&5
2575sed 's/^/| /' conftest.$ac_ext >&5
2576
df1756f4 2577
b7026657 2578fi
df1756f4
TG
2579
2580rm -f core conftest.err conftest.$ac_objext
2581 test "x$ac_cv_prog_cc_c89" != "xno" && break
b7026657 2582done
df1756f4 2583rm -f conftest.$ac_ext
b7026657
AC
2584CC=$ac_save_CC
2585
2586fi
df1756f4
TG
2587# AC_CACHE_VAL
2588case "x$ac_cv_prog_cc_c89" in
2589 x)
2590 { echo "$as_me:$LINENO: result: none needed" >&5
2591echo "${ECHO_T}none needed" >&6; } ;;
2592 xno)
2593 { echo "$as_me:$LINENO: result: unsupported" >&5
2594echo "${ECHO_T}unsupported" >&6; } ;;
b7026657 2595 *)
df1756f4
TG
2596 CC="$CC $ac_cv_prog_cc_c89"
2597 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2598echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
b7026657
AC
2599esac
2600
b7026657 2601
b7026657
AC
2602ac_ext=c
2603ac_cpp='$CPP $CPPFLAGS'
2604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2606ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c
SS
2607
2608ac_aux_dir=
df1756f4
TG
2609for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2610 if test -f "$ac_dir/install-sh"; then
c906108c
SS
2611 ac_aux_dir=$ac_dir
2612 ac_install_sh="$ac_aux_dir/install-sh -c"
2613 break
df1756f4 2614 elif test -f "$ac_dir/install.sh"; then
c906108c
SS
2615 ac_aux_dir=$ac_dir
2616 ac_install_sh="$ac_aux_dir/install.sh -c"
2617 break
df1756f4 2618 elif test -f "$ac_dir/shtool"; then
b7026657
AC
2619 ac_aux_dir=$ac_dir
2620 ac_install_sh="$ac_aux_dir/shtool install -c"
2621 break
c906108c
SS
2622 fi
2623done
2624if test -z "$ac_aux_dir"; then
df1756f4
TG
2625 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2626echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
b7026657 2627 { (exit 1); exit 1; }; }
c906108c 2628fi
df1756f4
TG
2629
2630# These three variables are undocumented and unsupported,
2631# and are intended to be withdrawn in a future Autoconf release.
2632# They can cause serious problems if a builder's source tree is in a directory
2633# whose full name contains unusual characters.
2634ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2635ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2636ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2637
c906108c
SS
2638
2639# Find a good install program. We prefer a C program (faster),
2640# so one script is as good as another. But avoid the broken or
2641# incompatible versions:
2642# SysV /etc/install, /usr/sbin/install
2643# SunOS /usr/etc/install
2644# IRIX /sbin/install
2645# AIX /bin/install
b7026657 2646# AmigaOS /C/install, which installs bootblocks on floppy discs
c906108c
SS
2647# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2648# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2649# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
b7026657 2650# OS/2's system install, which has a completely different semantic
c906108c 2651# ./install, which can be erroneously created by make from ./install.sh.
df1756f4
TG
2652{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2653echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
c906108c 2654if test -z "$INSTALL"; then
b7026657
AC
2655if test "${ac_cv_path_install+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2657else
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659for as_dir in $PATH
2660do
2661 IFS=$as_save_IFS
2662 test -z "$as_dir" && as_dir=.
2663 # Account for people who put trailing slashes in PATH elements.
2664case $as_dir/ in
2665 ./ | .// | /cC/* | \
2666 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2667 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2668 /usr/ucb/* ) ;;
2669 *)
2670 # OSF1 and SCO ODT 3.0 have their own names for install.
2671 # Don't use installbsd from OSF since it installs stuff as root
2672 # by default.
2673 for ac_prog in ginstall scoinst install; do
2674 for ac_exec_ext in '' $ac_executable_extensions; do
df1756f4 2675 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
c906108c 2676 if test $ac_prog = install &&
b7026657 2677 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
c906108c
SS
2678 # AIX install. It has an incompatible calling convention.
2679 :
b7026657
AC
2680 elif test $ac_prog = install &&
2681 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2682 # program-specific install script used by HP pwplus--don't use.
2683 :
c906108c 2684 else
b7026657
AC
2685 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2686 break 3
c906108c
SS
2687 fi
2688 fi
2689 done
b7026657
AC
2690 done
2691 ;;
2692esac
2693done
df1756f4 2694IFS=$as_save_IFS
b7026657 2695
c906108c
SS
2696
2697fi
2698 if test "${ac_cv_path_install+set}" = set; then
b7026657 2699 INSTALL=$ac_cv_path_install
c906108c 2700 else
df1756f4
TG
2701 # As a last resort, use the slow shell script. Don't cache a
2702 # value for INSTALL within a source directory, because that will
c906108c 2703 # break other packages using the cache if that directory is
df1756f4 2704 # removed, or if the value is a relative name.
b7026657 2705 INSTALL=$ac_install_sh
c906108c
SS
2706 fi
2707fi
df1756f4
TG
2708{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2709echo "${ECHO_T}$INSTALL" >&6; }
c906108c
SS
2710
2711# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2712# It thinks the first close brace ends the variable substitution.
2713test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2714
b7026657 2715test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
c906108c
SS
2716
2717test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2718
b7026657
AC
2719if test -n "$ac_tool_prefix"; then
2720 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
c906108c 2721set dummy ${ac_tool_prefix}ar; ac_word=$2
df1756f4
TG
2722{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b7026657
AC
2724if test "${ac_cv_prog_AR+set}" = set; then
2725 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
2726else
2727 if test -n "$AR"; then
2728 ac_cv_prog_AR="$AR" # Let the user override the test.
2729else
b7026657
AC
2730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731for as_dir in $PATH
2732do
2733 IFS=$as_save_IFS
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
df1756f4 2736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657
AC
2737 ac_cv_prog_AR="${ac_tool_prefix}ar"
2738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 break 2
2740 fi
2741done
2742done
df1756f4 2743IFS=$as_save_IFS
b7026657 2744
c906108c
SS
2745fi
2746fi
b7026657 2747AR=$ac_cv_prog_AR
c906108c 2748if test -n "$AR"; then
df1756f4
TG
2749 { echo "$as_me:$LINENO: result: $AR" >&5
2750echo "${ECHO_T}$AR" >&6; }
c906108c 2751else
df1756f4
TG
2752 { echo "$as_me:$LINENO: result: no" >&5
2753echo "${ECHO_T}no" >&6; }
b7026657
AC
2754fi
2755
df1756f4 2756
c906108c 2757fi
b7026657
AC
2758if test -z "$ac_cv_prog_AR"; then
2759 ac_ct_AR=$AR
2760 # Extract the first word of "ar", so it can be a program name with args.
2761set dummy ar; ac_word=$2
df1756f4
TG
2762{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b7026657
AC
2764if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2766else
2767 if test -n "$ac_ct_AR"; then
2768 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2769else
2770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771for as_dir in $PATH
2772do
2773 IFS=$as_save_IFS
2774 test -z "$as_dir" && as_dir=.
2775 for ac_exec_ext in '' $ac_executable_extensions; do
df1756f4 2776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657
AC
2777 ac_cv_prog_ac_ct_AR="ar"
2778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2779 break 2
2780 fi
2781done
2782done
df1756f4 2783IFS=$as_save_IFS
c906108c 2784
b7026657
AC
2785fi
2786fi
2787ac_ct_AR=$ac_cv_prog_ac_ct_AR
2788if test -n "$ac_ct_AR"; then
df1756f4
TG
2789 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2790echo "${ECHO_T}$ac_ct_AR" >&6; }
b7026657 2791else
df1756f4
TG
2792 { echo "$as_me:$LINENO: result: no" >&5
2793echo "${ECHO_T}no" >&6; }
b7026657 2794fi
c906108c 2795
df1756f4
TG
2796 if test "x$ac_ct_AR" = x; then
2797 AR=""
2798 else
2799 case $cross_compiling:$ac_tool_warned in
2800yes:)
2801{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2802whose name does not start with the host triplet. If you think this
2803configuration is useful to you, please write to autoconf@gnu.org." >&5
2804echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2805whose name does not start with the host triplet. If you think this
2806configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2807ac_tool_warned=yes ;;
2808esac
2809 AR=$ac_ct_AR
2810 fi
b7026657
AC
2811else
2812 AR="$ac_cv_prog_AR"
2813fi
c906108c 2814
b7026657
AC
2815if test -n "$ac_tool_prefix"; then
2816 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
c906108c 2817set dummy ${ac_tool_prefix}ranlib; ac_word=$2
df1756f4
TG
2818{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b7026657
AC
2820if test "${ac_cv_prog_RANLIB+set}" = set; then
2821 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
2822else
2823 if test -n "$RANLIB"; then
2824 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2825else
b7026657
AC
2826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827for as_dir in $PATH
2828do
2829 IFS=$as_save_IFS
2830 test -z "$as_dir" && as_dir=.
2831 for ac_exec_ext in '' $ac_executable_extensions; do
df1756f4 2832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657
AC
2833 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 break 2
2836 fi
2837done
2838done
df1756f4 2839IFS=$as_save_IFS
b7026657 2840
c906108c
SS
2841fi
2842fi
b7026657 2843RANLIB=$ac_cv_prog_RANLIB
c906108c 2844if test -n "$RANLIB"; then
df1756f4
TG
2845 { echo "$as_me:$LINENO: result: $RANLIB" >&5
2846echo "${ECHO_T}$RANLIB" >&6; }
c906108c 2847else
df1756f4
TG
2848 { echo "$as_me:$LINENO: result: no" >&5
2849echo "${ECHO_T}no" >&6; }
c906108c
SS
2850fi
2851
df1756f4 2852
b7026657 2853fi
c906108c 2854if test -z "$ac_cv_prog_RANLIB"; then
b7026657 2855 ac_ct_RANLIB=$RANLIB
c906108c
SS
2856 # Extract the first word of "ranlib", so it can be a program name with args.
2857set dummy ranlib; ac_word=$2
df1756f4
TG
2858{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b7026657
AC
2860if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2862else
b7026657
AC
2863 if test -n "$ac_ct_RANLIB"; then
2864 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
c906108c 2865else
b7026657
AC
2866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867for as_dir in $PATH
2868do
2869 IFS=$as_save_IFS
2870 test -z "$as_dir" && as_dir=.
2871 for ac_exec_ext in '' $ac_executable_extensions; do
df1756f4 2872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657
AC
2873 ac_cv_prog_ac_ct_RANLIB="ranlib"
2874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2875 break 2
2876 fi
2877done
2878done
df1756f4 2879IFS=$as_save_IFS
b7026657 2880
c906108c
SS
2881fi
2882fi
b7026657
AC
2883ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2884if test -n "$ac_ct_RANLIB"; then
df1756f4
TG
2885 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2886echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
c906108c 2887else
df1756f4
TG
2888 { echo "$as_me:$LINENO: result: no" >&5
2889echo "${ECHO_T}no" >&6; }
c906108c
SS
2890fi
2891
df1756f4
TG
2892 if test "x$ac_ct_RANLIB" = x; then
2893 RANLIB=":"
2894 else
2895 case $cross_compiling:$ac_tool_warned in
2896yes:)
2897{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2898whose name does not start with the host triplet. If you think this
2899configuration is useful to you, please write to autoconf@gnu.org." >&5
2900echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2901whose name does not start with the host triplet. If you think this
2902configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2903ac_tool_warned=yes ;;
2904esac
2905 RANLIB=$ac_ct_RANLIB
2906 fi
c906108c 2907else
b7026657 2908 RANLIB="$ac_cv_prog_RANLIB"
c906108c
SS
2909fi
2910
2911
c906108c 2912# Make sure we can run config.sub.
df1756f4
TG
2913$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2914 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2915echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
b7026657
AC
2916 { (exit 1); exit 1; }; }
2917
df1756f4
TG
2918{ echo "$as_me:$LINENO: checking build system type" >&5
2919echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
b7026657
AC
2920if test "${ac_cv_build+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2922else
df1756f4
TG
2923 ac_build_alias=$build_alias
2924test "x$ac_build_alias" = x &&
2925 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2926test "x$ac_build_alias" = x &&
b7026657
AC
2927 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2928echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2929 { (exit 1); exit 1; }; }
df1756f4
TG
2930ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2931 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2932echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
b7026657 2933 { (exit 1); exit 1; }; }
c906108c 2934
b7026657 2935fi
df1756f4
TG
2936{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2937echo "${ECHO_T}$ac_cv_build" >&6; }
2938case $ac_cv_build in
2939*-*-*) ;;
2940*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2941echo "$as_me: error: invalid value of canonical build" >&2;}
2942 { (exit 1); exit 1; }; };;
2943esac
b7026657 2944build=$ac_cv_build
df1756f4
TG
2945ac_save_IFS=$IFS; IFS='-'
2946set x $ac_cv_build
2947shift
2948build_cpu=$1
2949build_vendor=$2
2950shift; shift
2951# Remember, the first character of IFS is used to create $*,
2952# except with old shells:
2953build_os=$*
2954IFS=$ac_save_IFS
2955case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2956
2957
2958{ echo "$as_me:$LINENO: checking host system type" >&5
2959echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
b7026657
AC
2960if test "${ac_cv_host+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2962else
df1756f4
TG
2963 if test "x$host_alias" = x; then
2964 ac_cv_host=$ac_cv_build
2965else
2966 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2967 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2968echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
b7026657 2969 { (exit 1); exit 1; }; }
df1756f4 2970fi
c906108c 2971
b7026657 2972fi
df1756f4
TG
2973{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2974echo "${ECHO_T}$ac_cv_host" >&6; }
2975case $ac_cv_host in
2976*-*-*) ;;
2977*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2978echo "$as_me: error: invalid value of canonical host" >&2;}
2979 { (exit 1); exit 1; }; };;
2980esac
b7026657 2981host=$ac_cv_host
df1756f4
TG
2982ac_save_IFS=$IFS; IFS='-'
2983set x $ac_cv_host
2984shift
2985host_cpu=$1
2986host_vendor=$2
2987shift; shift
2988# Remember, the first character of IFS is used to create $*,
2989# except with old shells:
2990host_os=$*
2991IFS=$ac_save_IFS
2992case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2993
2994
2995{ echo "$as_me:$LINENO: checking target system type" >&5
2996echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
b7026657
AC
2997if test "${ac_cv_target+set}" = set; then
2998 echo $ECHO_N "(cached) $ECHO_C" >&6
2999else
df1756f4
TG
3000 if test "x$target_alias" = x; then
3001 ac_cv_target=$ac_cv_host
3002else
3003 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3004 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3005echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
b7026657 3006 { (exit 1); exit 1; }; }
df1756f4 3007fi
c906108c 3008
b7026657 3009fi
df1756f4
TG
3010{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3011echo "${ECHO_T}$ac_cv_target" >&6; }
3012case $ac_cv_target in
3013*-*-*) ;;
3014*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3015echo "$as_me: error: invalid value of canonical target" >&2;}
3016 { (exit 1); exit 1; }; };;
3017esac
b7026657 3018target=$ac_cv_target
df1756f4
TG
3019ac_save_IFS=$IFS; IFS='-'
3020set x $ac_cv_target
3021shift
3022target_cpu=$1
3023target_vendor=$2
3024shift; shift
3025# Remember, the first character of IFS is used to create $*,
3026# except with old shells:
3027target_os=$*
3028IFS=$ac_save_IFS
3029case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c906108c 3030
c906108c 3031
b7026657
AC
3032# The aliases save the names the user supplied, while $host etc.
3033# will get canonicalized.
3034test -n "$target_alias" &&
c906108c
SS
3035 test "$program_prefix$program_suffix$program_transform_name" = \
3036 NONENONEs,x,x, &&
3037 program_prefix=${target_alias}-
c906108c 3038test "$program_prefix" != NONE &&
df1756f4 3039 program_transform_name="s&^&$program_prefix&;$program_transform_name"
c906108c
SS
3040# Use a double $ so make ignores it.
3041test "$program_suffix" != NONE &&
df1756f4 3042 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
b7026657
AC
3043# Double any \ or $. echo might interpret backslashes.
3044# By default was `s,x,x', remove it if useless.
3045cat <<\_ACEOF >conftest.sed
3046s/[\\$]/&&/g;s/;s,x,x,$//
3047_ACEOF
3048program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
df1756f4 3049rm -f conftest.sed
c906108c 3050
b7026657
AC
3051ac_ext=c
3052ac_cpp='$CPP $CPPFLAGS'
3053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3055ac_compiler_gnu=$ac_cv_c_compiler_gnu
3056if test -n "$ac_tool_prefix"; then
3057 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3058set dummy ${ac_tool_prefix}gcc; ac_word=$2
df1756f4
TG
3059{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b7026657
AC
3061if test "${ac_cv_prog_CC+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
3063else
3064 if test -n "$CC"; then
3065 ac_cv_prog_CC="$CC" # Let the user override the test.
3066else
b7026657
AC
3067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068for as_dir in $PATH
3069do
3070 IFS=$as_save_IFS
3071 test -z "$as_dir" && as_dir=.
3072 for ac_exec_ext in '' $ac_executable_extensions; do
df1756f4 3073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657
AC
3074 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3076 break 2
3077 fi
3078done
3079done
df1756f4 3080IFS=$as_save_IFS
b7026657
AC
3081
3082fi
3083fi
3084CC=$ac_cv_prog_CC
3085if test -n "$CC"; then
df1756f4
TG
3086 { echo "$as_me:$LINENO: result: $CC" >&5
3087echo "${ECHO_T}$CC" >&6; }
b7026657 3088else
df1756f4
TG
3089 { echo "$as_me:$LINENO: result: no" >&5
3090echo "${ECHO_T}no" >&6; }
b7026657
AC
3091fi
3092
df1756f4 3093
b7026657
AC
3094fi
3095if test -z "$ac_cv_prog_CC"; then
3096 ac_ct_CC=$CC
3097 # Extract the first word of "gcc", so it can be a program name with args.
3098set dummy gcc; ac_word=$2
df1756f4
TG
3099{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b7026657
AC
3101if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3102 echo $ECHO_N "(cached) $ECHO_C" >&6
3103else
3104 if test -n "$ac_ct_CC"; then
3105 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3106else
3107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108for as_dir in $PATH
3109do
3110 IFS=$as_save_IFS
3111 test -z "$as_dir" && as_dir=.
3112 for ac_exec_ext in '' $ac_executable_extensions; do
df1756f4 3113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657
AC
3114 ac_cv_prog_ac_ct_CC="gcc"
3115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3116 break 2
3117 fi
3118done
3119done
df1756f4 3120IFS=$as_save_IFS
b7026657
AC
3121
3122fi
3123fi
3124ac_ct_CC=$ac_cv_prog_ac_ct_CC
3125if test -n "$ac_ct_CC"; then
df1756f4
TG
3126 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3127echo "${ECHO_T}$ac_ct_CC" >&6; }
b7026657 3128else
df1756f4
TG
3129 { echo "$as_me:$LINENO: result: no" >&5
3130echo "${ECHO_T}no" >&6; }
c906108c 3131fi
b7026657 3132
df1756f4
TG
3133 if test "x$ac_ct_CC" = x; then
3134 CC=""
3135 else
3136 case $cross_compiling:$ac_tool_warned in
3137yes:)
3138{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3139whose name does not start with the host triplet. If you think this
3140configuration is useful to you, please write to autoconf@gnu.org." >&5
3141echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3142whose name does not start with the host triplet. If you think this
3143configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3144ac_tool_warned=yes ;;
3145esac
3146 CC=$ac_ct_CC
3147 fi
b7026657
AC
3148else
3149 CC="$ac_cv_prog_CC"
c906108c 3150fi
b7026657
AC
3151
3152if test -z "$CC"; then
df1756f4
TG
3153 if test -n "$ac_tool_prefix"; then
3154 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b7026657 3155set dummy ${ac_tool_prefix}cc; ac_word=$2
df1756f4
TG
3156{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b7026657
AC
3158if test "${ac_cv_prog_CC+set}" = set; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
3160else
3161 if test -n "$CC"; then
3162 ac_cv_prog_CC="$CC" # Let the user override the test.
3163else
3164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165for as_dir in $PATH
3166do
3167 IFS=$as_save_IFS
3168 test -z "$as_dir" && as_dir=.
3169 for ac_exec_ext in '' $ac_executable_extensions; do
df1756f4 3170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657
AC
3171 ac_cv_prog_CC="${ac_tool_prefix}cc"
3172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3173 break 2
3174 fi
3175done
3176done
df1756f4 3177IFS=$as_save_IFS
b7026657
AC
3178
3179fi
3180fi
3181CC=$ac_cv_prog_CC
c906108c 3182if test -n "$CC"; then
df1756f4
TG
3183 { echo "$as_me:$LINENO: result: $CC" >&5
3184echo "${ECHO_T}$CC" >&6; }
b7026657 3185else
df1756f4
TG
3186 { echo "$as_me:$LINENO: result: no" >&5
3187echo "${ECHO_T}no" >&6; }
b7026657
AC
3188fi
3189
c906108c 3190
df1756f4 3191 fi
b7026657 3192fi
c906108c
SS
3193if test -z "$CC"; then
3194 # Extract the first word of "cc", so it can be a program name with args.
3195set dummy cc; ac_word=$2
df1756f4
TG
3196{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b7026657
AC
3198if test "${ac_cv_prog_CC+set}" = set; then
3199 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
3200else
3201 if test -n "$CC"; then
3202 ac_cv_prog_CC="$CC" # Let the user override the test.
3203else
c906108c 3204 ac_prog_rejected=no
b7026657
AC
3205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206for as_dir in $PATH
3207do
3208 IFS=$as_save_IFS
3209 test -z "$as_dir" && as_dir=.
3210 for ac_exec_ext in '' $ac_executable_extensions; do
df1756f4 3211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657
AC
3212 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3213 ac_prog_rejected=yes
3214 continue
3215 fi
3216 ac_cv_prog_CC="cc"
3217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3218 break 2
3219 fi
3220done
3221done
df1756f4 3222IFS=$as_save_IFS
b7026657 3223
c906108c
SS
3224if test $ac_prog_rejected = yes; then
3225 # We found a bogon in the path, so make sure we never use it.
3226 set dummy $ac_cv_prog_CC
3227 shift
b7026657 3228 if test $# != 0; then
c906108c
SS
3229 # We chose a different compiler from the bogus one.
3230 # However, it has the same basename, so the bogon will be chosen
3231 # first if we set CC to just the basename; use the full file name.
3232 shift
b7026657 3233 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
3234 fi
3235fi
3236fi
3237fi
b7026657 3238CC=$ac_cv_prog_CC
c906108c 3239if test -n "$CC"; then
df1756f4
TG
3240 { echo "$as_me:$LINENO: result: $CC" >&5
3241echo "${ECHO_T}$CC" >&6; }
c906108c 3242else
df1756f4
TG
3243 { echo "$as_me:$LINENO: result: no" >&5
3244echo "${ECHO_T}no" >&6; }
c906108c
SS
3245fi
3246
df1756f4 3247
b7026657
AC
3248fi
3249if test -z "$CC"; then
3250 if test -n "$ac_tool_prefix"; then
df1756f4 3251 for ac_prog in cl.exe
b7026657
AC
3252 do
3253 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3254set dummy $ac_tool_prefix$ac_prog; ac_word=$2
df1756f4
TG
3255{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b7026657
AC
3257if test "${ac_cv_prog_CC+set}" = set; then
3258 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
3259else
3260 if test -n "$CC"; then
3261 ac_cv_prog_CC="$CC" # Let the user override the test.
3262else
b7026657
AC
3263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264for as_dir in $PATH
3265do
3266 IFS=$as_save_IFS
3267 test -z "$as_dir" && as_dir=.
3268 for ac_exec_ext in '' $ac_executable_extensions; do
df1756f4 3269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657
AC
3270 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3272 break 2
3273 fi
3274done
3275done
df1756f4 3276IFS=$as_save_IFS
b7026657 3277
c906108c
SS
3278fi
3279fi
b7026657 3280CC=$ac_cv_prog_CC
c906108c 3281if test -n "$CC"; then
df1756f4
TG
3282 { echo "$as_me:$LINENO: result: $CC" >&5
3283echo "${ECHO_T}$CC" >&6; }
c906108c 3284else
df1756f4
TG
3285 { echo "$as_me:$LINENO: result: no" >&5
3286echo "${ECHO_T}no" >&6; }
c906108c
SS
3287fi
3288
df1756f4 3289
b7026657
AC
3290 test -n "$CC" && break
3291 done
3292fi
3293if test -z "$CC"; then
3294 ac_ct_CC=$CC
df1756f4 3295 for ac_prog in cl.exe
b7026657
AC
3296do
3297 # Extract the first word of "$ac_prog", so it can be a program name with args.
3298set dummy $ac_prog; ac_word=$2
df1756f4
TG
3299{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b7026657
AC
3301if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3302 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3303else
b7026657
AC
3304 if test -n "$ac_ct_CC"; then
3305 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3306else
3307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308for as_dir in $PATH
3309do
3310 IFS=$as_save_IFS
3311 test -z "$as_dir" && as_dir=.
3312 for ac_exec_ext in '' $ac_executable_extensions; do
df1756f4 3313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657
AC
3314 ac_cv_prog_ac_ct_CC="$ac_prog"
3315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3316 break 2
3317 fi
3318done
3319done
df1756f4 3320IFS=$as_save_IFS
b7026657 3321
c906108c 3322fi
b7026657
AC
3323fi
3324ac_ct_CC=$ac_cv_prog_ac_ct_CC
3325if test -n "$ac_ct_CC"; then
df1756f4
TG
3326 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3327echo "${ECHO_T}$ac_ct_CC" >&6; }
c906108c 3328else
df1756f4
TG
3329 { echo "$as_me:$LINENO: result: no" >&5
3330echo "${ECHO_T}no" >&6; }
c906108c 3331fi
b7026657 3332
df1756f4 3333
b7026657
AC
3334 test -n "$ac_ct_CC" && break
3335done
3336
df1756f4
TG
3337 if test "x$ac_ct_CC" = x; then
3338 CC=""
3339 else
3340 case $cross_compiling:$ac_tool_warned in
3341yes:)
3342{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3343whose name does not start with the host triplet. If you think this
3344configuration is useful to you, please write to autoconf@gnu.org." >&5
3345echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3346whose name does not start with the host triplet. If you think this
3347configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3348ac_tool_warned=yes ;;
3349esac
3350 CC=$ac_ct_CC
3351 fi
c906108c
SS
3352fi
3353
b7026657
AC
3354fi
3355
3356
3357test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3358See \`config.log' for more details." >&5
3359echo "$as_me: error: no acceptable C compiler found in \$PATH
3360See \`config.log' for more details." >&2;}
3361 { (exit 1); exit 1; }; }
3362
3363# Provide some information about the compiler.
df1756f4 3364echo "$as_me:$LINENO: checking for C compiler version" >&5
b7026657 3365ac_compiler=`set X $ac_compile; echo $2`
df1756f4
TG
3366{ (ac_try="$ac_compiler --version >&5"
3367case "(($ac_try" in
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3370esac
3371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3372 (eval "$ac_compiler --version >&5") 2>&5
b7026657
AC
3373 ac_status=$?
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); }
df1756f4
TG
3376{ (ac_try="$ac_compiler -v >&5"
3377case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380esac
3381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3382 (eval "$ac_compiler -v >&5") 2>&5
b7026657
AC
3383 ac_status=$?
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); }
df1756f4
TG
3386{ (ac_try="$ac_compiler -V >&5"
3387case "(($ac_try" in
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3390esac
3391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3392 (eval "$ac_compiler -V >&5") 2>&5
b7026657
AC
3393 ac_status=$?
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }
3396
df1756f4
TG
3397{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3398echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
b7026657
AC
3399if test "${ac_cv_c_compiler_gnu+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3401else
3402 cat >conftest.$ac_ext <<_ACEOF
3403/* confdefs.h. */
3404_ACEOF
3405cat confdefs.h >>conftest.$ac_ext
3406cat >>conftest.$ac_ext <<_ACEOF
3407/* end confdefs.h. */
3408
3409int
3410main ()
3411{
3412#ifndef __GNUC__
3413 choke me
3414#endif
c906108c 3415
b7026657
AC
3416 ;
3417 return 0;
3418}
3419_ACEOF
3420rm -f conftest.$ac_objext
df1756f4
TG
3421if { (ac_try="$ac_compile"
3422case "(($ac_try" in
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3425esac
3426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3427 (eval "$ac_compile") 2>conftest.er1
b7026657
AC
3428 ac_status=$?
3429 grep -v '^ *+' conftest.er1 >conftest.err
3430 rm -f conftest.er1
3431 cat conftest.err >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
df1756f4
TG
3433 (exit $ac_status); } && {
3434 test -z "$ac_c_werror_flag" ||
3435 test ! -s conftest.err
3436 } && test -s conftest.$ac_objext; then
b7026657 3437 ac_compiler_gnu=yes
c906108c 3438else
b7026657
AC
3439 echo "$as_me: failed program was:" >&5
3440sed 's/^/| /' conftest.$ac_ext >&5
3441
df1756f4 3442 ac_compiler_gnu=no
c906108c 3443fi
df1756f4
TG
3444
3445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 3446ac_cv_c_compiler_gnu=$ac_compiler_gnu
c906108c 3447
b7026657 3448fi
df1756f4
TG
3449{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3450echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
b7026657
AC
3451GCC=`test $ac_compiler_gnu = yes && echo yes`
3452ac_test_CFLAGS=${CFLAGS+set}
3453ac_save_CFLAGS=$CFLAGS
df1756f4
TG
3454{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3455echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
b7026657
AC
3456if test "${ac_cv_prog_cc_g+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3458else
df1756f4
TG
3459 ac_save_c_werror_flag=$ac_c_werror_flag
3460 ac_c_werror_flag=yes
3461 ac_cv_prog_cc_g=no
3462 CFLAGS="-g"
3463 cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
3464/* confdefs.h. */
3465_ACEOF
3466cat confdefs.h >>conftest.$ac_ext
3467cat >>conftest.$ac_ext <<_ACEOF
3468/* end confdefs.h. */
3469
3470int
3471main ()
3472{
3473
3474 ;
3475 return 0;
3476}
3477_ACEOF
3478rm -f conftest.$ac_objext
df1756f4
TG
3479if { (ac_try="$ac_compile"
3480case "(($ac_try" in
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3483esac
3484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485 (eval "$ac_compile") 2>conftest.er1
b7026657
AC
3486 ac_status=$?
3487 grep -v '^ *+' conftest.er1 >conftest.err
3488 rm -f conftest.er1
3489 cat conftest.err >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
df1756f4
TG
3491 (exit $ac_status); } && {
3492 test -z "$ac_c_werror_flag" ||
3493 test ! -s conftest.err
3494 } && test -s conftest.$ac_objext; then
3495 ac_cv_prog_cc_g=yes
3496else
3497 echo "$as_me: failed program was:" >&5
3498sed 's/^/| /' conftest.$ac_ext >&5
3499
3500 CFLAGS=""
3501 cat >conftest.$ac_ext <<_ACEOF
3502/* confdefs.h. */
3503_ACEOF
3504cat confdefs.h >>conftest.$ac_ext
3505cat >>conftest.$ac_ext <<_ACEOF
3506/* end confdefs.h. */
3507
3508int
3509main ()
3510{
3511
3512 ;
3513 return 0;
3514}
3515_ACEOF
3516rm -f conftest.$ac_objext
3517if { (ac_try="$ac_compile"
3518case "(($ac_try" in
3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520 *) ac_try_echo=$ac_try;;
3521esac
3522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3523 (eval "$ac_compile") 2>conftest.er1
b7026657 3524 ac_status=$?
df1756f4
TG
3525 grep -v '^ *+' conftest.er1 >conftest.err
3526 rm -f conftest.er1
3527 cat conftest.err >&5
b7026657 3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
df1756f4
TG
3529 (exit $ac_status); } && {
3530 test -z "$ac_c_werror_flag" ||
3531 test ! -s conftest.err
3532 } && test -s conftest.$ac_objext; then
3533 :
3534else
3535 echo "$as_me: failed program was:" >&5
3536sed 's/^/| /' conftest.$ac_ext >&5
3537
3538 ac_c_werror_flag=$ac_save_c_werror_flag
3539 CFLAGS="-g"
3540 cat >conftest.$ac_ext <<_ACEOF
3541/* confdefs.h. */
3542_ACEOF
3543cat confdefs.h >>conftest.$ac_ext
3544cat >>conftest.$ac_ext <<_ACEOF
3545/* end confdefs.h. */
3546
3547int
3548main ()
3549{
3550
3551 ;
3552 return 0;
3553}
3554_ACEOF
3555rm -f conftest.$ac_objext
3556if { (ac_try="$ac_compile"
3557case "(($ac_try" in
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3560esac
3561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562 (eval "$ac_compile") 2>conftest.er1
b7026657 3563 ac_status=$?
df1756f4
TG
3564 grep -v '^ *+' conftest.er1 >conftest.err
3565 rm -f conftest.er1
3566 cat conftest.err >&5
b7026657 3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
df1756f4
TG
3568 (exit $ac_status); } && {
3569 test -z "$ac_c_werror_flag" ||
3570 test ! -s conftest.err
3571 } && test -s conftest.$ac_objext; then
c906108c
SS
3572 ac_cv_prog_cc_g=yes
3573else
b7026657
AC
3574 echo "$as_me: failed program was:" >&5
3575sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3576
df1756f4
TG
3577
3578fi
3579
3580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3581fi
3582
3583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3584fi
df1756f4
TG
3585
3586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 ac_c_werror_flag=$ac_save_c_werror_flag
b7026657 3588fi
df1756f4
TG
3589{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3590echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
c906108c 3591if test "$ac_test_CFLAGS" = set; then
b7026657 3592 CFLAGS=$ac_save_CFLAGS
c906108c
SS
3593elif test $ac_cv_prog_cc_g = yes; then
3594 if test "$GCC" = yes; then
3595 CFLAGS="-g -O2"
3596 else
3597 CFLAGS="-g"
3598 fi
3599else
3600 if test "$GCC" = yes; then
3601 CFLAGS="-O2"
3602 else
3603 CFLAGS=
3604 fi
3605fi
df1756f4
TG
3606{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3607echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3608if test "${ac_cv_prog_cc_c89+set}" = set; then
b7026657
AC
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3610else
df1756f4 3611 ac_cv_prog_cc_c89=no
b7026657
AC
3612ac_save_CC=$CC
3613cat >conftest.$ac_ext <<_ACEOF
3614/* confdefs.h. */
3615_ACEOF
3616cat confdefs.h >>conftest.$ac_ext
3617cat >>conftest.$ac_ext <<_ACEOF
3618/* end confdefs.h. */
3619#include <stdarg.h>
3620#include <stdio.h>
3621#include <sys/types.h>
3622#include <sys/stat.h>
3623/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3624struct buf { int x; };
3625FILE * (*rcsopen) (struct buf *, struct stat *, int);
3626static char *e (p, i)
3627 char **p;
3628 int i;
3629{
3630 return p[i];
3631}
3632static char *f (char * (*g) (char **, int), char **p, ...)
3633{
3634 char *s;
3635 va_list v;
3636 va_start (v,p);
3637 s = g (p, va_arg (v,int));
3638 va_end (v);
3639 return s;
3640}
3641
3642/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3643 function prototypes and stuff, but not '\xHH' hex character constants.
3644 These don't provoke an error unfortunately, instead are silently treated
df1756f4 3645 as 'x'. The following induces an error, until -std is added to get
b7026657
AC
3646 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3647 array size at least. It's necessary to write '\x00'==0 to get something
df1756f4 3648 that's true only with -std. */
b7026657
AC
3649int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3650
df1756f4
TG
3651/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3652 inside strings and character constants. */
3653#define FOO(x) 'x'
3654int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3655
b7026657
AC
3656int test (int i, double x);
3657struct s1 {int (*f) (int a);};
3658struct s2 {int (*f) (double a);};
3659int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3660int argc;
3661char **argv;
3662int
3663main ()
3664{
3665return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3666 ;
3667 return 0;
3668}
3669_ACEOF
df1756f4
TG
3670for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3671 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b7026657
AC
3672do
3673 CC="$ac_save_CC $ac_arg"
3674 rm -f conftest.$ac_objext
df1756f4
TG
3675if { (ac_try="$ac_compile"
3676case "(($ac_try" in
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3679esac
3680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681 (eval "$ac_compile") 2>conftest.er1
b7026657
AC
3682 ac_status=$?
3683 grep -v '^ *+' conftest.er1 >conftest.err
3684 rm -f conftest.er1
3685 cat conftest.err >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
df1756f4
TG
3687 (exit $ac_status); } && {
3688 test -z "$ac_c_werror_flag" ||
3689 test ! -s conftest.err
3690 } && test -s conftest.$ac_objext; then
3691 ac_cv_prog_cc_c89=$ac_arg
b7026657
AC
3692else
3693 echo "$as_me: failed program was:" >&5
3694sed 's/^/| /' conftest.$ac_ext >&5
3695
df1756f4 3696
b7026657 3697fi
df1756f4
TG
3698
3699rm -f core conftest.err conftest.$ac_objext
3700 test "x$ac_cv_prog_cc_c89" != "xno" && break
b7026657 3701done
df1756f4 3702rm -f conftest.$ac_ext
b7026657
AC
3703CC=$ac_save_CC
3704
3705fi
df1756f4
TG
3706# AC_CACHE_VAL
3707case "x$ac_cv_prog_cc_c89" in
3708 x)
3709 { echo "$as_me:$LINENO: result: none needed" >&5
3710echo "${ECHO_T}none needed" >&6; } ;;
3711 xno)
3712 { echo "$as_me:$LINENO: result: unsupported" >&5
3713echo "${ECHO_T}unsupported" >&6; } ;;
b7026657 3714 *)
df1756f4
TG
3715 CC="$CC $ac_cv_prog_cc_c89"
3716 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3717echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
b7026657
AC
3718esac
3719
b7026657 3720
b7026657
AC
3721ac_ext=c
3722ac_cpp='$CPP $CPPFLAGS'
3723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3725ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c
SS
3726
3727
3728
3729AR=${AR-ar}
3730
b7026657
AC
3731if test -n "$ac_tool_prefix"; then
3732 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3733set dummy ${ac_tool_prefix}ranlib; ac_word=$2
df1756f4
TG
3734{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b7026657
AC
3736if test "${ac_cv_prog_RANLIB+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
3738else
3739 if test -n "$RANLIB"; then
3740 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3741else
b7026657
AC
3742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743for as_dir in $PATH
3744do
3745 IFS=$as_save_IFS
3746 test -z "$as_dir" && as_dir=.
3747 for ac_exec_ext in '' $ac_executable_extensions; do
df1756f4 3748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657
AC
3749 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3751 break 2
3752 fi
3753done
3754done
df1756f4 3755IFS=$as_save_IFS
b7026657 3756
c906108c
SS
3757fi
3758fi
b7026657 3759RANLIB=$ac_cv_prog_RANLIB
c906108c 3760if test -n "$RANLIB"; then
df1756f4
TG
3761 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3762echo "${ECHO_T}$RANLIB" >&6; }
b7026657 3763else
df1756f4
TG
3764 { echo "$as_me:$LINENO: result: no" >&5
3765echo "${ECHO_T}no" >&6; }
b7026657
AC
3766fi
3767
df1756f4 3768
b7026657
AC
3769fi
3770if test -z "$ac_cv_prog_RANLIB"; then
3771 ac_ct_RANLIB=$RANLIB
3772 # Extract the first word of "ranlib", so it can be a program name with args.
3773set dummy ranlib; ac_word=$2
df1756f4
TG
3774{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b7026657
AC
3776if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3778else
3779 if test -n "$ac_ct_RANLIB"; then
3780 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3781else
3782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783for as_dir in $PATH
3784do
3785 IFS=$as_save_IFS
3786 test -z "$as_dir" && as_dir=.
3787 for ac_exec_ext in '' $ac_executable_extensions; do
df1756f4 3788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657
AC
3789 ac_cv_prog_ac_ct_RANLIB="ranlib"
3790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3791 break 2
3792 fi
3793done
3794done
df1756f4 3795IFS=$as_save_IFS
b7026657 3796
b7026657
AC
3797fi
3798fi
3799ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3800if test -n "$ac_ct_RANLIB"; then
df1756f4
TG
3801 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3802echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
c906108c 3803else
df1756f4
TG
3804 { echo "$as_me:$LINENO: result: no" >&5
3805echo "${ECHO_T}no" >&6; }
b7026657
AC
3806fi
3807
df1756f4
TG
3808 if test "x$ac_ct_RANLIB" = x; then
3809 RANLIB=":"
3810 else
3811 case $cross_compiling:$ac_tool_warned in
3812yes:)
3813{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3814whose name does not start with the host triplet. If you think this
3815configuration is useful to you, please write to autoconf@gnu.org." >&5
3816echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3817whose name does not start with the host triplet. If you think this
3818configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3819ac_tool_warned=yes ;;
3820esac
3821 RANLIB=$ac_ct_RANLIB
3822 fi
3823else
b7026657 3824 RANLIB="$ac_cv_prog_RANLIB"
c906108c
SS
3825fi
3826
3827
3828# Put a plausible default for CC_FOR_BUILD in Makefile.
c906108c
SS
3829if test "x$cross_compiling" = "xno"; then
3830 CC_FOR_BUILD='$(CC)'
3831else
3832 CC_FOR_BUILD=gcc
3833fi
3834
4b164edf
AS
3835CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3836
c906108c
SS
3837
3838# If a cpu ever has more than one simulator to choose from, use
3839# --enable-sim=... to choose.
df1756f4 3840# Check whether --enable-sim was given.
c906108c 3841if test "${enable_sim+set}" = set; then
df1756f4 3842 enableval=$enable_sim; case "${enableval}" in
c906108c 3843yes | no) ;;
b7026657
AC
3844*) { { echo "$as_me:$LINENO: error: bad value ${enableval} given for --enable-sim option" >&5
3845echo "$as_me: error: bad value ${enableval} given for --enable-sim option" >&2;}
3846 { (exit 1); exit 1; }; } ;;
c906108c 3847esac
df1756f4
TG
3848fi
3849
c906108c 3850
b7026657 3851# WHEN ADDING ENTRIES TO THIS MATRIX:
c906108c 3852
b7026657
AC
3853# Make sure that the left side always has two dashes. Otherwise you
3854# can get spurious matches. Even for unambiguous cases, do this as a
3855# convention, else the table becomes a real mess to understand and
3856# maintain.
c906108c 3857
df1756f4
TG
3858echo enable_sim: $enable_sim target $target
3859
b7026657
AC
3860if test "${enable_sim}" != no; then
3861 testsuite=no
c4d800ae 3862 common=yes
b7026657
AC
3863 igen=no
3864 case "${target}" in
3865 arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*)
df1756f4 3866 subdirs="$subdirs arm"
86b90b55
SR
3867
3868 testsuite=yes
3869 ;;
df1756f4
TG
3870 avr*-*-*)
3871 subdirs="$subdirs avr"
86b90b55 3872
df1756f4
TG
3873 ;;
3874 cr16*-*-*)
3875 subdirs="$subdirs cr16"
c906108c 3876
f6bcefef 3877 testsuite=yes
f6bcefef
HPN
3878 ;;
3879 cris-*-* | crisv32-*-*)
df1756f4 3880 subdirs="$subdirs cris"
f6bcefef 3881
b7026657 3882 testsuite=yes
b7026657
AC
3883 ;;
3884 d10v-*-*)
df1756f4 3885 subdirs="$subdirs d10v"
b7026657
AC
3886
3887 ;;
3888 frv-*-*)
df1756f4 3889 subdirs="$subdirs frv"
b7026657
AC
3890
3891 testsuite=yes
b7026657
AC
3892 ;;
3893 h8300*-*-*)
df1756f4 3894 subdirs="$subdirs h8300"
b7026657 3895
edece237 3896 testsuite=yes
edece237
CV
3897 ;;
3898 iq2000-*-*)
df1756f4 3899 subdirs="$subdirs iq2000"
edece237 3900
b7026657 3901 testsuite=yes
b7026657 3902 ;;
d45a4bef 3903 m32c-*-*)
df1756f4 3904 subdirs="$subdirs m32c"
d45a4bef 3905
d45a4bef 3906 ;;
b7026657 3907 m32r-*-*)
df1756f4 3908 subdirs="$subdirs m32r"
b7026657
AC
3909
3910 testsuite=yes
b7026657
AC
3911 ;;
3912 m68hc11-*-*|m6811-*-*)
df1756f4 3913 subdirs="$subdirs m68hc11"
c906108c 3914
b7026657 3915 testsuite=yes
b7026657
AC
3916 ;;
3917 mcore-*-*)
df1756f4 3918 subdirs="$subdirs mcore"
b7026657
AC
3919
3920 testsuite=yes
b7026657
AC
3921 ;;
3922 mips*-*-*)
df1756f4 3923 subdirs="$subdirs mips"
b7026657
AC
3924
3925 testsuite=yes
3926 igen=yes
3927 ;;
3928 mn10300*-*-*)
df1756f4 3929 subdirs="$subdirs mn10300"
b7026657
AC
3930
3931 igen=yes
3932 ;;
cecb04b7 3933 sh64*-*-*)
df1756f4 3934 subdirs="$subdirs sh64"
21bc7567
CV
3935
3936 testsuite=yes
21bc7567 3937 ;;
cecb04b7 3938 sh*-*-*)
df1756f4 3939 subdirs="$subdirs sh"
b7026657 3940
ce928021 3941 testsuite=yes
ce928021
DJ
3942 ;;
3943 sparc-*-rtems*|sparc-*-elf*)
df1756f4 3944 subdirs="$subdirs erc32"
ce928021 3945
b7026657 3946 testsuite=yes
b7026657
AC
3947 ;;
3948 powerpc*-*-* )
df1756f4 3949 subdirs="$subdirs ppc"
b7026657 3950
b7026657
AC
3951 ;;
3952 v850*-*-* )
df1756f4 3953 subdirs="$subdirs v850"
b7026657 3954
c3357c64 3955 igen=yes
c5fbc25b 3956 testsuite=yes
b7026657 3957 ;;
c4d800ae
HPN
3958 *)
3959 # No simulator subdir, so the subdir "common" isn't needed.
3960 common=no
3961 ;;
b7026657
AC
3962 esac
3963 if test "$testsuite" = yes; then
df1756f4 3964 subdirs="$subdirs testsuite"
b7026657
AC
3965
3966 fi
3967 if test "$common" = yes; then
df1756f4 3968 subdirs="$subdirs common"
b7026657
AC
3969
3970 fi
3971 if test "$igen" = yes; then
df1756f4 3972 subdirs="$subdirs igen"
b7026657
AC
3973
3974 fi
c906108c
SS
3975fi
3976
df1756f4
TG
3977ac_config_files="$ac_config_files Makefile"
3978
b7026657 3979cat >confcache <<\_ACEOF
c906108c
SS
3980# This file is a shell script that caches the results of configure
3981# tests run on this system so they can be shared between configure
b7026657
AC
3982# scripts and configure runs, see configure's option --config-cache.
3983# It is not useful on other systems. If it contains results you don't
3984# want to keep, you may remove or edit it.
c906108c 3985#
b7026657
AC
3986# config.status only pays attention to the cache file if you give it
3987# the --recheck option to rerun configure.
c906108c 3988#
b7026657
AC
3989# `ac_cv_env_foo' variables (set or unset) will be overridden when
3990# loading this file, other *unset* `ac_cv_foo' will be assigned the
3991# following values.
3992
3993_ACEOF
3994
c906108c
SS
3995# The following way of writing the cache mishandles newlines in values,
3996# but we know of no workaround that is simple, portable, and efficient.
df1756f4 3997# So, we kill variables containing newlines.
c906108c
SS
3998# Ultrix sh set writes to stderr and can't be redirected directly,
3999# and sets the high bit in the cache file unless we assign to the vars.
df1756f4
TG
4000(
4001 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4002 eval ac_val=\$$ac_var
4003 case $ac_val in #(
4004 *${as_nl}*)
4005 case $ac_var in #(
4006 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
4007echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
4008 esac
4009 case $ac_var in #(
4010 _ | IFS | as_nl) ;; #(
4011 *) $as_unset $ac_var ;;
4012 esac ;;
4013 esac
4014 done
4015
b7026657 4016 (set) 2>&1 |
df1756f4
TG
4017 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4018 *${as_nl}ac_space=\ *)
b7026657
AC
4019 # `set' does not quote correctly, so add quotes (double-quote
4020 # substitution turns \\\\ into \\, and sed turns \\ into \).
4021 sed -n \
4022 "s/'/'\\\\''/g;
4023 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
df1756f4 4024 ;; #(
b7026657
AC
4025 *)
4026 # `set' quotes correctly as required by POSIX, so do not add quotes.
df1756f4 4027 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 4028 ;;
df1756f4
TG
4029 esac |
4030 sort
4031) |
b7026657 4032 sed '
df1756f4 4033 /^ac_cv_env_/b end
b7026657 4034 t clear
df1756f4 4035 :clear
b7026657
AC
4036 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4037 t end
df1756f4
TG
4038 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4039 :end' >>confcache
4040if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4041 if test -w "$cache_file"; then
4042 test "x$cache_file" != "x/dev/null" &&
4043 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
4044echo "$as_me: updating cache $cache_file" >&6;}
b7026657 4045 cat confcache >$cache_file
c906108c 4046 else
df1756f4
TG
4047 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
4048echo "$as_me: not updating unwritable cache $cache_file" >&6;}
c906108c
SS
4049 fi
4050fi
4051rm -f confcache
4052
c906108c
SS
4053test "x$prefix" = xNONE && prefix=$ac_default_prefix
4054# Let make expand exec_prefix.
4055test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4056
c906108c
SS
4057# Transform confdefs.h into DEFS.
4058# Protect against shell expansion while executing Makefile rules.
4059# Protect against Makefile macro expansion.
b7026657
AC
4060#
4061# If the first sed substitution is executed (which looks for macros that
df1756f4 4062# take arguments), then branch to the quote section. Otherwise,
b7026657 4063# look for a macro that doesn't take arguments.
df1756f4 4064ac_script='
b7026657 4065t clear
df1756f4
TG
4066:clear
4067s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
b7026657 4068t quote
df1756f4 4069s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
b7026657 4070t quote
df1756f4
TG
4071b any
4072:quote
4073s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4074s/\[/\\&/g
4075s/\]/\\&/g
4076s/\$/$$/g
4077H
4078:any
4079${
4080 g
4081 s/^\n//
4082 s/\n/ /g
4083 p
4084}
4085'
4086DEFS=`sed -n "$ac_script" confdefs.h`
b7026657
AC
4087
4088
4089ac_libobjs=
4090ac_ltlibobjs=
4091for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4092 # 1. Remove the extension, and $U if already installed.
df1756f4
TG
4093 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4094 ac_i=`echo "$ac_i" | sed "$ac_script"`
4095 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4096 # will be set to the directory where LIBOBJS objects are built.
4097 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4098 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
b7026657
AC
4099done
4100LIBOBJS=$ac_libobjs
c906108c 4101
b7026657
AC
4102LTLIBOBJS=$ac_ltlibobjs
4103
4104
4105
4106: ${CONFIG_STATUS=./config.status}
4107ac_clean_files_save=$ac_clean_files
4108ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4109{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4110echo "$as_me: creating $CONFIG_STATUS" >&6;}
4111cat >$CONFIG_STATUS <<_ACEOF
4112#! $SHELL
4113# Generated by $as_me.
c906108c 4114# Run this file to recreate the current configuration.
c906108c 4115# Compiler output produced by configure, useful for debugging
b7026657
AC
4116# configure, is in config.log if it exists.
4117
4118debug=false
4119ac_cs_recheck=false
4120ac_cs_silent=false
4121SHELL=\${CONFIG_SHELL-$SHELL}
4122_ACEOF
4123
4124cat >>$CONFIG_STATUS <<\_ACEOF
4125## --------------------- ##
4126## M4sh Initialization. ##
4127## --------------------- ##
4128
df1756f4
TG
4129# Be more Bourne compatible
4130DUALCASE=1; export DUALCASE # for MKS sh
b7026657
AC
4131if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4132 emulate sh
4133 NULLCMD=:
4134 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4135 # is contrary to our usage. Disable this feature.
4136 alias -g '${1+"$@"}'='"$@"'
df1756f4
TG
4137 setopt NO_GLOB_SUBST
4138else
4139 case `(set -o) 2>/dev/null` in
4140 *posix*) set -o posix ;;
4141esac
4142
4143fi
4144
4145
4146
4147
4148# PATH needs CR
4149# Avoid depending upon Character Ranges.
4150as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4151as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4152as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4153as_cr_digits='0123456789'
4154as_cr_alnum=$as_cr_Letters$as_cr_digits
4155
4156# The user is always right.
4157if test "${PATH_SEPARATOR+set}" != set; then
4158 echo "#! /bin/sh" >conf$$.sh
4159 echo "exit 0" >>conf$$.sh
4160 chmod +x conf$$.sh
4161 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4162 PATH_SEPARATOR=';'
4163 else
4164 PATH_SEPARATOR=:
4165 fi
4166 rm -f conf$$.sh
b7026657 4167fi
c906108c 4168
b7026657
AC
4169# Support unset when possible.
4170if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4171 as_unset=unset
4172else
4173 as_unset=false
4174fi
4175
4176
df1756f4
TG
4177# IFS
4178# We need space, tab and new line, in precisely that order. Quoting is
4179# there to prevent editors from complaining about space-tab.
4180# (If _AS_PATH_WALK were called with IFS unset, it would disable word
4181# splitting by setting IFS to empty value.)
4182as_nl='
4183'
4184IFS=" "" $as_nl"
4185
4186# Find who we are. Look in the path if we contain no directory separator.
4187case $0 in
4188 *[\\/]* ) as_myself=$0 ;;
4189 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190for as_dir in $PATH
4191do
4192 IFS=$as_save_IFS
4193 test -z "$as_dir" && as_dir=.
4194 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4195done
4196IFS=$as_save_IFS
4197
4198 ;;
4199esac
4200# We did not find ourselves, most probably we were run as `sh COMMAND'
4201# in which case we are not to be found in the path.
4202if test "x$as_myself" = x; then
4203 as_myself=$0
4204fi
4205if test ! -f "$as_myself"; then
4206 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4207 { (exit 1); exit 1; }
4208fi
4209
b7026657 4210# Work around bugs in pre-3.0 UWIN ksh.
df1756f4
TG
4211for as_var in ENV MAIL MAILPATH
4212do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
4213done
b7026657
AC
4214PS1='$ '
4215PS2='> '
4216PS4='+ '
4217
4218# NLS nuisances.
4219for as_var in \
4220 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4221 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4222 LC_TELEPHONE LC_TIME
c906108c 4223do
b7026657
AC
4224 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4225 eval $as_var=C; export $as_var
4226 else
df1756f4 4227 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
b7026657 4228 fi
c906108c
SS
4229done
4230
b7026657 4231# Required to use basename.
df1756f4
TG
4232if expr a : '\(a\)' >/dev/null 2>&1 &&
4233 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
4234 as_expr=expr
4235else
4236 as_expr=false
4237fi
c906108c 4238
df1756f4 4239if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
4240 as_basename=basename
4241else
4242 as_basename=false
4243fi
c906108c 4244
c906108c 4245
b7026657 4246# Name of the executable.
df1756f4 4247as_me=`$as_basename -- "$0" ||
b7026657
AC
4248$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4249 X"$0" : 'X\(//\)$' \| \
df1756f4 4250 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
b7026657 4251echo X/"$0" |
df1756f4
TG
4252 sed '/^.*\/\([^/][^/]*\)\/*$/{
4253 s//\1/
4254 q
4255 }
4256 /^X\/\(\/\/\)$/{
4257 s//\1/
4258 q
4259 }
4260 /^X\/\(\/\).*/{
4261 s//\1/
4262 q
4263 }
4264 s/.*/./; q'`
b7026657 4265
df1756f4
TG
4266# CDPATH.
4267$as_unset CDPATH
b7026657
AC
4268
4269
b7026657 4270
b7026657
AC
4271 as_lineno_1=$LINENO
4272 as_lineno_2=$LINENO
b7026657 4273 test "x$as_lineno_1" != "x$as_lineno_2" &&
df1756f4 4274 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
b7026657
AC
4275
4276 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4277 # uniformly replaced by the line number. The first 'sed' inserts a
df1756f4
TG
4278 # line-number line after each line using $LINENO; the second 'sed'
4279 # does the real work. The second script uses 'N' to pair each
4280 # line-number line with the line containing $LINENO, and appends
4281 # trailing '-' during substitution so that $LINENO is not a special
4282 # case at line end.
b7026657 4283 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
df1756f4
TG
4284 # scripts with optimization help from Paolo Bonzini. Blame Lee
4285 # E. McMahon (1931-1989) for sed's syntax. :-)
4286 sed -n '
4287 p
4288 /[$]LINENO/=
4289 ' <$as_myself |
b7026657 4290 sed '
df1756f4
TG
4291 s/[$]LINENO.*/&-/
4292 t lineno
4293 b
4294 :lineno
b7026657 4295 N
df1756f4
TG
4296 :loop
4297 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b7026657 4298 t loop
df1756f4 4299 s/-\n.*//
b7026657 4300 ' >$as_me.lineno &&
df1756f4
TG
4301 chmod +x "$as_me.lineno" ||
4302 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
b7026657
AC
4303 { (exit 1); exit 1; }; }
4304
4305 # Don't try to exec as it changes $[0], causing all sort of problems
4306 # (the dirname of $[0] is not the place where we might find the
df1756f4
TG
4307 # original and so on. Autoconf is especially sensitive to this).
4308 . "./$as_me.lineno"
b7026657
AC
4309 # Exit status is that of the last command.
4310 exit
4311}
4312
4313
df1756f4
TG
4314if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4315 as_dirname=dirname
4316else
4317 as_dirname=false
4318fi
4319
4320ECHO_C= ECHO_N= ECHO_T=
4321case `echo -n x` in
4322-n*)
4323 case `echo 'x\c'` in
4324 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4325 *) ECHO_C='\c';;
4326 esac;;
4327*)
4328 ECHO_N='-n';;
b7026657
AC
4329esac
4330
df1756f4
TG
4331if expr a : '\(a\)' >/dev/null 2>&1 &&
4332 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
4333 as_expr=expr
4334else
4335 as_expr=false
4336fi
4337
4338rm -f conf$$ conf$$.exe conf$$.file
df1756f4
TG
4339if test -d conf$$.dir; then
4340 rm -f conf$$.dir/conf$$.file
4341else
4342 rm -f conf$$.dir
4343 mkdir conf$$.dir
4344fi
b7026657
AC
4345echo >conf$$.file
4346if ln -s conf$$.file conf$$ 2>/dev/null; then
df1756f4
TG
4347 as_ln_s='ln -s'
4348 # ... but there are two gotchas:
4349 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4350 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4351 # In both cases, we have to default to `cp -p'.
4352 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
b7026657 4353 as_ln_s='cp -p'
b7026657
AC
4354elif ln conf$$.file conf$$ 2>/dev/null; then
4355 as_ln_s=ln
4356else
4357 as_ln_s='cp -p'
4358fi
df1756f4
TG
4359rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4360rmdir conf$$.dir 2>/dev/null
b7026657
AC
4361
4362if mkdir -p . 2>/dev/null; then
4363 as_mkdir_p=:
4364else
4365 test -d ./-p && rmdir ./-p
4366 as_mkdir_p=false
4367fi
4368
df1756f4
TG
4369if test -x / >/dev/null 2>&1; then
4370 as_test_x='test -x'
4371else
4372 if ls -dL / >/dev/null 2>&1; then
4373 as_ls_L_option=L
4374 else
4375 as_ls_L_option=
4376 fi
4377 as_test_x='
4378 eval sh -c '\''
4379 if test -d "$1"; then
4380 test -d "$1/.";
4381 else
4382 case $1 in
4383 -*)set "./$1";;
4384 esac;
4385 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
4386 ???[sx]*):;;*)false;;esac;fi
4387 '\'' sh
4388 '
4389fi
4390as_executable_p=$as_test_x
b7026657
AC
4391
4392# Sed expression to map a string onto a valid CPP name.
4393as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4394
4395# Sed expression to map a string onto a valid variable name.
4396as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4397
4398
b7026657
AC
4399exec 6>&1
4400
df1756f4 4401# Save the log message, to keep $[0] and so on meaningful, and to
b7026657 4402# report actual input values of CONFIG_FILES etc. instead of their
df1756f4
TG
4403# values after options handling.
4404ac_log="
b7026657 4405This file was extended by $as_me, which was
df1756f4 4406generated by GNU Autoconf 2.61. Invocation command line was
b7026657
AC
4407
4408 CONFIG_FILES = $CONFIG_FILES
4409 CONFIG_HEADERS = $CONFIG_HEADERS
4410 CONFIG_LINKS = $CONFIG_LINKS
4411 CONFIG_COMMANDS = $CONFIG_COMMANDS
4412 $ $0 $@
4413
df1756f4
TG
4414on `(hostname || uname -n) 2>/dev/null | sed 1q`
4415"
4416
b7026657
AC
4417_ACEOF
4418
df1756f4 4419cat >>$CONFIG_STATUS <<_ACEOF
b7026657 4420# Files that config.status was made for.
df1756f4 4421config_files="$ac_config_files"
b7026657 4422
df1756f4 4423_ACEOF
b7026657
AC
4424
4425cat >>$CONFIG_STATUS <<\_ACEOF
b7026657
AC
4426ac_cs_usage="\
4427\`$as_me' instantiates files from templates according to the
4428current configuration.
4429
4430Usage: $0 [OPTIONS] [FILE]...
4431
4432 -h, --help print this help, then exit
df1756f4 4433 -V, --version print version number and configuration settings, then exit
b7026657
AC
4434 -q, --quiet do not print progress messages
4435 -d, --debug don't remove temporary files
4436 --recheck update $as_me by reconfiguring in the same conditions
4437 --file=FILE[:TEMPLATE]
4438 instantiate the configuration file FILE
4439
4440Configuration files:
4441$config_files
4442
4443Report bugs to <bug-autoconf@gnu.org>."
b7026657 4444
df1756f4 4445_ACEOF
b7026657
AC
4446cat >>$CONFIG_STATUS <<_ACEOF
4447ac_cs_version="\\
4448config.status
df1756f4
TG
4449configured by $0, generated by GNU Autoconf 2.61,
4450 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
b7026657 4451
df1756f4 4452Copyright (C) 2006 Free Software Foundation, Inc.
b7026657
AC
4453This config.status script is free software; the Free Software Foundation
4454gives unlimited permission to copy, distribute and modify it."
df1756f4
TG
4455
4456ac_pwd='$ac_pwd'
4457srcdir='$srcdir'
4458INSTALL='$INSTALL'
b7026657
AC
4459_ACEOF
4460
4461cat >>$CONFIG_STATUS <<\_ACEOF
4462# If no file are specified by the user, then we need to provide default
4463# value. By we need to know if files were specified by the user.
4464ac_need_defaults=:
4465while test $# != 0
4466do
4467 case $1 in
4468 --*=*)
df1756f4
TG
4469 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4470 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b7026657
AC
4471 ac_shift=:
4472 ;;
df1756f4 4473 *)
b7026657
AC
4474 ac_option=$1
4475 ac_optarg=$2
4476 ac_shift=shift
4477 ;;
b7026657
AC
4478 esac
4479
4480 case $ac_option in
4481 # Handling of the options.
b7026657
AC
4482 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4483 ac_cs_recheck=: ;;
df1756f4
TG
4484 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4485 echo "$ac_cs_version"; exit ;;
4486 --debug | --debu | --deb | --de | --d | -d )
b7026657
AC
4487 debug=: ;;
4488 --file | --fil | --fi | --f )
4489 $ac_shift
4490 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4491 ac_need_defaults=false;;
df1756f4
TG
4492 --he | --h | --help | --hel | -h )
4493 echo "$ac_cs_usage"; exit ;;
b7026657
AC
4494 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4495 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4496 ac_cs_silent=: ;;
4497
4498 # This is an error.
df1756f4
TG
4499 -*) { echo "$as_me: error: unrecognized option: $1
4500Try \`$0 --help' for more information." >&2
b7026657
AC
4501 { (exit 1); exit 1; }; } ;;
4502
df1756f4
TG
4503 *) ac_config_targets="$ac_config_targets $1"
4504 ac_need_defaults=false ;;
b7026657
AC
4505
4506 esac
4507 shift
c906108c 4508done
b7026657
AC
4509
4510ac_configure_extra_args=
4511
4512if $ac_cs_silent; then
4513 exec 6>/dev/null
4514 ac_configure_extra_args="$ac_configure_extra_args --silent"
c906108c 4515fi
c906108c 4516
b7026657
AC
4517_ACEOF
4518cat >>$CONFIG_STATUS <<_ACEOF
4519if \$ac_cs_recheck; then
df1756f4
TG
4520 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4521 CONFIG_SHELL=$SHELL
4522 export CONFIG_SHELL
4523 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
b7026657 4524fi
c906108c 4525
b7026657 4526_ACEOF
df1756f4
TG
4527cat >>$CONFIG_STATUS <<\_ACEOF
4528exec 5>>config.log
4529{
4530 echo
4531 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4532## Running $as_me. ##
4533_ASBOX
4534 echo "$ac_log"
4535} >&5
b7026657 4536
df1756f4
TG
4537_ACEOF
4538cat >>$CONFIG_STATUS <<_ACEOF
4539_ACEOF
b7026657
AC
4540
4541cat >>$CONFIG_STATUS <<\_ACEOF
df1756f4
TG
4542
4543# Handling of arguments.
b7026657
AC
4544for ac_config_target in $ac_config_targets
4545do
df1756f4
TG
4546 case $ac_config_target in
4547 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4548
b7026657
AC
4549 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4550echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4551 { (exit 1); exit 1; }; };;
c906108c 4552 esac
b7026657 4553done
c906108c 4554
df1756f4 4555
b7026657
AC
4556# If the user did not use the arguments to specify the items to instantiate,
4557# then the envvar interface is used. Set only those that are not.
4558# We use the long form for the default assignment because of an extremely
4559# bizarre bug on SunOS 4.1.3.
4560if $ac_need_defaults; then
4561 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4562fi
c906108c 4563
b7026657 4564# Have a temporary directory for convenience. Make it in the build tree
df1756f4 4565# simply because there is no reason against having it here, and in addition,
b7026657 4566# creating and moving files from /tmp can sometimes cause problems.
df1756f4
TG
4567# Hook for its removal unless debugging.
4568# Note that there is a small window in which the directory will not be cleaned:
4569# after its creation but before its name has been assigned to `$tmp'.
b7026657
AC
4570$debug ||
4571{
df1756f4
TG
4572 tmp=
4573 trap 'exit_status=$?
4574 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
4575' 0
b7026657
AC
4576 trap '{ (exit 1); exit 1; }' 1 2 13 15
4577}
b7026657
AC
4578# Create a (secure) tmp directory for tmp files.
4579
4580{
df1756f4 4581 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b7026657
AC
4582 test -n "$tmp" && test -d "$tmp"
4583} ||
4584{
df1756f4
TG
4585 tmp=./conf$$-$RANDOM
4586 (umask 077 && mkdir "$tmp")
b7026657
AC
4587} ||
4588{
4589 echo "$me: cannot create a temporary directory in ." >&2
4590 { (exit 1); exit 1; }
4591}
4592
b7026657 4593#
df1756f4 4594# Set up the sed scripts for CONFIG_FILES section.
b7026657
AC
4595#
4596
4597# No need to generate the scripts if there are no CONFIG_FILES.
4598# This happens for instance when ./config.status config.h
df1756f4 4599if test -n "$CONFIG_FILES"; then
b7026657
AC
4600
4601_ACEOF
4602
df1756f4
TG
4603
4604
4605ac_delim='%!_!# '
4606for ac_last_try in false false false false false :; do
4607 cat >conf$$subs.sed <<_ACEOF
4608SHELL!$SHELL$ac_delim
4609PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
4610PACKAGE_NAME!$PACKAGE_NAME$ac_delim
4611PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
4612PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
4613PACKAGE_STRING!$PACKAGE_STRING$ac_delim
4614PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
4615exec_prefix!$exec_prefix$ac_delim
4616prefix!$prefix$ac_delim
4617program_transform_name!$program_transform_name$ac_delim
4618bindir!$bindir$ac_delim
4619sbindir!$sbindir$ac_delim
4620libexecdir!$libexecdir$ac_delim
4621datarootdir!$datarootdir$ac_delim
4622datadir!$datadir$ac_delim
4623sysconfdir!$sysconfdir$ac_delim
4624sharedstatedir!$sharedstatedir$ac_delim
4625localstatedir!$localstatedir$ac_delim
4626includedir!$includedir$ac_delim
4627oldincludedir!$oldincludedir$ac_delim
4628docdir!$docdir$ac_delim
4629infodir!$infodir$ac_delim
4630htmldir!$htmldir$ac_delim
4631dvidir!$dvidir$ac_delim
4632pdfdir!$pdfdir$ac_delim
4633psdir!$psdir$ac_delim
4634libdir!$libdir$ac_delim
4635localedir!$localedir$ac_delim
4636mandir!$mandir$ac_delim
4637DEFS!$DEFS$ac_delim
4638ECHO_C!$ECHO_C$ac_delim
4639ECHO_N!$ECHO_N$ac_delim
4640ECHO_T!$ECHO_T$ac_delim
4641LIBS!$LIBS$ac_delim
4642build_alias!$build_alias$ac_delim
4643host_alias!$host_alias$ac_delim
4644target_alias!$target_alias$ac_delim
4645CC!$CC$ac_delim
4646CFLAGS!$CFLAGS$ac_delim
4647LDFLAGS!$LDFLAGS$ac_delim
4648CPPFLAGS!$CPPFLAGS$ac_delim
4649ac_ct_CC!$ac_ct_CC$ac_delim
4650EXEEXT!$EXEEXT$ac_delim
4651OBJEXT!$OBJEXT$ac_delim
4652INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
4653INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
4654INSTALL_DATA!$INSTALL_DATA$ac_delim
4655AR!$AR$ac_delim
4656RANLIB!$RANLIB$ac_delim
4657build!$build$ac_delim
4658build_cpu!$build_cpu$ac_delim
4659build_vendor!$build_vendor$ac_delim
4660build_os!$build_os$ac_delim
4661host!$host$ac_delim
4662host_cpu!$host_cpu$ac_delim
4663host_vendor!$host_vendor$ac_delim
4664host_os!$host_os$ac_delim
4665target!$target$ac_delim
4666target_cpu!$target_cpu$ac_delim
4667target_vendor!$target_vendor$ac_delim
4668target_os!$target_os$ac_delim
4669HDEFINES!$HDEFINES$ac_delim
4670CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
4671CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
4672subdirs!$subdirs$ac_delim
4673LIBOBJS!$LIBOBJS$ac_delim
4674LTLIBOBJS!$LTLIBOBJS$ac_delim
4675_ACEOF
4676
4677 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 67; then
4678 break
4679 elif $ac_last_try; then
4680 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
4681echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
4682 { (exit 1); exit 1; }; }
4683 else
4684 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
c906108c 4685 fi
df1756f4 4686done
c906108c 4687
df1756f4
TG
4688ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
4689if test -n "$ac_eof"; then
4690 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
4691 ac_eof=`expr $ac_eof + 1`
4692fi
4693
4694cat >>$CONFIG_STATUS <<_ACEOF
4695cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
4696/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
b7026657 4697_ACEOF
df1756f4
TG
4698sed '
4699s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
4700s/^/s,@/; s/!/@,|#_!!_#|/
4701:n
4702t n
4703s/'"$ac_delim"'$/,g/; t
4704s/$/\\/; p
4705N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
4706' >>$CONFIG_STATUS <conf$$subs.sed
4707rm -f conf$$subs.sed
4708cat >>$CONFIG_STATUS <<_ACEOF
4709:end
4710s/|#_!!_#|//g
4711CEOF$ac_eof
4712_ACEOF
4713
4714
4715# VPATH may cause trouble with some makes, so we remove $(srcdir),
4716# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4717# trailing colons and then remove the whole line if VPATH becomes empty
4718# (actually we leave an empty line to preserve line numbers).
4719if test "x$srcdir" = x.; then
4720 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4721s/:*\$(srcdir):*/:/
4722s/:*\${srcdir}:*/:/
4723s/:*@srcdir@:*/:/
4724s/^\([^=]*=[ ]*\):*/\1/
4725s/:*$//
4726s/^[^=]*=[ ]*$//
4727}'
4728fi
4729
b7026657 4730cat >>$CONFIG_STATUS <<\_ACEOF
df1756f4
TG
4731fi # test -n "$CONFIG_FILES"
4732
4733
4734for ac_tag in :F $CONFIG_FILES
4735do
4736 case $ac_tag in
4737 :[FHLC]) ac_mode=$ac_tag; continue;;
4738 esac
4739 case $ac_mode$ac_tag in
4740 :[FHL]*:*);;
4741 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
4742echo "$as_me: error: Invalid tag $ac_tag." >&2;}
4743 { (exit 1); exit 1; }; };;
4744 :[FH]-) ac_tag=-:-;;
4745 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
c906108c 4746 esac
df1756f4
TG
4747 ac_save_IFS=$IFS
4748 IFS=:
4749 set x $ac_tag
4750 IFS=$ac_save_IFS
4751 shift
4752 ac_file=$1
4753 shift
c906108c 4754
df1756f4
TG
4755 case $ac_mode in
4756 :L) ac_source=$1;;
4757 :[FH])
4758 ac_file_inputs=
4759 for ac_f
4760 do
4761 case $ac_f in
4762 -) ac_f="$tmp/stdin";;
4763 *) # Look for the file first in the build tree, then in the source tree
4764 # (if the path is not absolute). The absolute path cannot be DOS-style,
4765 # because $ac_f cannot contain `:'.
4766 test -f "$ac_f" ||
4767 case $ac_f in
4768 [\\/$]*) false;;
4769 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4770 esac ||
4771 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
4772echo "$as_me: error: cannot find input file: $ac_f" >&2;}
4773 { (exit 1); exit 1; }; };;
4774 esac
4775 ac_file_inputs="$ac_file_inputs $ac_f"
4776 done
4777
4778 # Let's still pretend it is `configure' which instantiates (i.e., don't
4779 # use $as_me), people would be surprised to read:
4780 # /* config.h. Generated by config.status. */
4781 configure_input="Generated from "`IFS=:
4782 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
4783 if test x"$ac_file" != x-; then
4784 configure_input="$ac_file. $configure_input"
4785 { echo "$as_me:$LINENO: creating $ac_file" >&5
4786echo "$as_me: creating $ac_file" >&6;}
4787 fi
4788
4789 case $ac_tag in
4790 *:-:* | *:-) cat >"$tmp/stdin";;
4791 esac
4792 ;;
4793 esac
4794
4795 ac_dir=`$as_dirname -- "$ac_file" ||
b7026657
AC
4796$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4797 X"$ac_file" : 'X\(//\)[^/]' \| \
4798 X"$ac_file" : 'X\(//\)$' \| \
df1756f4 4799 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
b7026657 4800echo X"$ac_file" |
df1756f4
TG
4801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4802 s//\1/
4803 q
4804 }
4805 /^X\(\/\/\)[^/].*/{
4806 s//\1/
4807 q
4808 }
4809 /^X\(\/\/\)$/{
4810 s//\1/
4811 q
4812 }
4813 /^X\(\/\).*/{
4814 s//\1/
4815 q
4816 }
4817 s/.*/./; q'`
4818 { as_dir="$ac_dir"
4819 case $as_dir in #(
4820 -*) as_dir=./$as_dir;;
4821 esac
4822 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
b7026657 4823 as_dirs=
df1756f4
TG
4824 while :; do
4825 case $as_dir in #(
4826 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
4827 *) as_qdir=$as_dir;;
4828 esac
4829 as_dirs="'$as_qdir' $as_dirs"
4830 as_dir=`$as_dirname -- "$as_dir" ||
b7026657
AC
4831$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4832 X"$as_dir" : 'X\(//\)[^/]' \| \
4833 X"$as_dir" : 'X\(//\)$' \| \
df1756f4 4834 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
b7026657 4835echo X"$as_dir" |
df1756f4
TG
4836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4837 s//\1/
4838 q
4839 }
4840 /^X\(\/\/\)[^/].*/{
4841 s//\1/
4842 q
4843 }
4844 /^X\(\/\/\)$/{
4845 s//\1/
4846 q
4847 }
4848 /^X\(\/\).*/{
4849 s//\1/
4850 q
4851 }
4852 s/.*/./; q'`
4853 test -d "$as_dir" && break
b7026657 4854 done
df1756f4
TG
4855 test -z "$as_dirs" || eval "mkdir $as_dirs"
4856 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
4857echo "$as_me: error: cannot create directory $as_dir" >&2;}
b7026657 4858 { (exit 1); exit 1; }; }; }
b7026657
AC
4859 ac_builddir=.
4860
df1756f4
TG
4861case "$ac_dir" in
4862.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4863*)
b7026657 4864 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
df1756f4
TG
4865 # A ".." for each directory in $ac_dir_suffix.
4866 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
4867 case $ac_top_builddir_sub in
4868 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4869 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4870 esac ;;
4871esac
4872ac_abs_top_builddir=$ac_pwd
4873ac_abs_builddir=$ac_pwd$ac_dir_suffix
4874# for backward compatibility:
4875ac_top_builddir=$ac_top_build_prefix
b7026657
AC
4876
4877case $srcdir in
df1756f4 4878 .) # We are building in place.
b7026657 4879 ac_srcdir=.
df1756f4
TG
4880 ac_top_srcdir=$ac_top_builddir_sub
4881 ac_abs_top_srcdir=$ac_pwd ;;
4882 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 4883 ac_srcdir=$srcdir$ac_dir_suffix;
df1756f4
TG
4884 ac_top_srcdir=$srcdir
4885 ac_abs_top_srcdir=$srcdir ;;
4886 *) # Relative name.
4887 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4888 ac_top_srcdir=$ac_top_build_prefix$srcdir
4889 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 4890esac
df1756f4 4891ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b7026657 4892
b7026657 4893
df1756f4
TG
4894 case $ac_mode in
4895 :F)
4896 #
4897 # CONFIG_FILE
4898 #
c906108c 4899
b7026657
AC
4900 case $INSTALL in
4901 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
df1756f4 4902 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
c906108c 4903 esac
df1756f4 4904_ACEOF
c906108c 4905
df1756f4
TG
4906cat >>$CONFIG_STATUS <<\_ACEOF
4907# If the template does not know about datarootdir, expand it.
4908# FIXME: This hack should be removed a few years after 2.60.
4909ac_datarootdir_hack=; ac_datarootdir_seen=
4910
4911case `sed -n '/datarootdir/ {
4912 p
4913 q
4914}
4915/@datadir@/p
4916/@docdir@/p
4917/@infodir@/p
4918/@localedir@/p
4919/@mandir@/p
4920' $ac_file_inputs` in
4921*datarootdir*) ac_datarootdir_seen=yes;;
4922*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4923 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4924echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4925_ACEOF
4926cat >>$CONFIG_STATUS <<_ACEOF
4927 ac_datarootdir_hack='
4928 s&@datadir@&$datadir&g
4929 s&@docdir@&$docdir&g
4930 s&@infodir@&$infodir&g
4931 s&@localedir@&$localedir&g
4932 s&@mandir@&$mandir&g
4933 s&\\\${datarootdir}&$datarootdir&g' ;;
4934esac
b7026657 4935_ACEOF
df1756f4
TG
4936
4937# Neutralize VPATH when `$srcdir' = `.'.
4938# Shell code in configure.ac might set extrasub.
4939# FIXME: do we really want to maintain this feature?
b7026657
AC
4940cat >>$CONFIG_STATUS <<_ACEOF
4941 sed "$ac_vpsub
4942$extrasub
4943_ACEOF
4944cat >>$CONFIG_STATUS <<\_ACEOF
4945:t
4946/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
df1756f4
TG
4947s&@configure_input@&$configure_input&;t t
4948s&@top_builddir@&$ac_top_builddir_sub&;t t
4949s&@srcdir@&$ac_srcdir&;t t
4950s&@abs_srcdir@&$ac_abs_srcdir&;t t
4951s&@top_srcdir@&$ac_top_srcdir&;t t
4952s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4953s&@builddir@&$ac_builddir&;t t
4954s&@abs_builddir@&$ac_abs_builddir&;t t
4955s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4956s&@INSTALL@&$ac_INSTALL&;t t
4957$ac_datarootdir_hack
4958" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
4959
4960test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4961 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
4962 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
4963 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4964which seems to be undefined. Please make sure it is defined." >&5
4965echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4966which seems to be undefined. Please make sure it is defined." >&2;}
4967
4968 rm -f "$tmp/stdin"
4969 case $ac_file in
4970 -) cat "$tmp/out"; rm -f "$tmp/out";;
4971 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
4972 esac
4973 ;;
c906108c 4974
c906108c 4975
df1756f4
TG
4976
4977 esac
4978
4979done # for ac_tag
4980
c906108c 4981
b7026657
AC
4982{ (exit 0); exit 0; }
4983_ACEOF
c906108c 4984chmod +x $CONFIG_STATUS
b7026657
AC
4985ac_clean_files=$ac_clean_files_save
4986
4987
4988# configure is writing to config.log, and then calls config.status.
4989# config.status does its own redirection, appending to config.log.
4990# Unfortunately, on DOS this fails, as config.log is still kept open
4991# by configure, so config.status won't be able to write to it; its
4992# output is simply discarded. So we exec the FD to /dev/null,
4993# effectively closing config.log, so it can be properly (re)opened and
4994# appended to by config.status. When coming back to configure, we
4995# need to make the FD available again.
4996if test "$no_create" != yes; then
4997 ac_cs_success=:
4998 ac_config_status_args=
4999 test "$silent" = yes &&
5000 ac_config_status_args="$ac_config_status_args --quiet"
5001 exec 5>/dev/null
5002 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5003 exec 5>>config.log
5004 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5005 # would make configure fail if this is the last instruction.
5006 $ac_cs_success || { (exit 1); exit 1; }
5007fi
c906108c 5008
b7026657
AC
5009#
5010# CONFIG_SUBDIRS section.
5011#
c906108c
SS
5012if test "$no_recursion" != yes; then
5013
5014 # Remove --cache-file and --srcdir arguments so they do not pile up.
5015 ac_sub_configure_args=
5016 ac_prev=
df1756f4
TG
5017 eval "set x $ac_configure_args"
5018 shift
5019 for ac_arg
5020 do
c906108c
SS
5021 if test -n "$ac_prev"; then
5022 ac_prev=
5023 continue
5024 fi
b7026657 5025 case $ac_arg in
c906108c
SS
5026 -cache-file | --cache-file | --cache-fil | --cache-fi \
5027 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
5028 ac_prev=cache_file ;;
5029 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
b7026657
AC
5030 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
5031 | --c=*)
5032 ;;
5033 --config-cache | -C)
c906108c
SS
5034 ;;
5035 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5036 ac_prev=srcdir ;;
5037 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5038 ;;
b7026657
AC
5039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
5040 ac_prev=prefix ;;
5041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5042 ;;
df1756f4
TG
5043 *)
5044 case $ac_arg in
5045 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5046 esac
5047 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
c906108c
SS
5048 esac
5049 done
5050
b7026657
AC
5051 # Always prepend --prefix to ensure using the same prefix
5052 # in subdir configurations.
df1756f4
TG
5053 ac_arg="--prefix=$prefix"
5054 case $ac_arg in
5055 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5056 esac
5057 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
5058
5059 # Pass --silent
5060 if test "$silent" = yes; then
5061 ac_sub_configure_args="--silent $ac_sub_configure_args"
5062 fi
b7026657
AC
5063
5064 ac_popdir=`pwd`
5065 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
5066
5067 # Do not complain, so a configure script can configure whichever
5068 # parts of a large source tree are present.
df1756f4
TG
5069 test -d "$srcdir/$ac_dir" || continue
5070
5071 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
5072 echo "$as_me:$LINENO: $ac_msg" >&5
5073 echo "$ac_msg" >&6
5074 { as_dir="$ac_dir"
5075 case $as_dir in #(
5076 -*) as_dir=./$as_dir;;
5077 esac
5078 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
b7026657 5079 as_dirs=
df1756f4
TG
5080 while :; do
5081 case $as_dir in #(
5082 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
5083 *) as_qdir=$as_dir;;
5084 esac
5085 as_dirs="'$as_qdir' $as_dirs"
5086 as_dir=`$as_dirname -- "$as_dir" ||
b7026657
AC
5087$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5088 X"$as_dir" : 'X\(//\)[^/]' \| \
5089 X"$as_dir" : 'X\(//\)$' \| \
df1756f4 5090 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
b7026657 5091echo X"$as_dir" |
df1756f4
TG
5092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5093 s//\1/
5094 q
5095 }
5096 /^X\(\/\/\)[^/].*/{
5097 s//\1/
5098 q
5099 }
5100 /^X\(\/\/\)$/{
5101 s//\1/
5102 q
5103 }
5104 /^X\(\/\).*/{
5105 s//\1/
5106 q
5107 }
5108 s/.*/./; q'`
5109 test -d "$as_dir" && break
b7026657 5110 done
df1756f4
TG
5111 test -z "$as_dirs" || eval "mkdir $as_dirs"
5112 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
5113echo "$as_me: error: cannot create directory $as_dir" >&2;}
b7026657 5114 { (exit 1); exit 1; }; }; }
b7026657
AC
5115 ac_builddir=.
5116
df1756f4
TG
5117case "$ac_dir" in
5118.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5119*)
b7026657 5120 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
df1756f4
TG
5121 # A ".." for each directory in $ac_dir_suffix.
5122 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
5123 case $ac_top_builddir_sub in
5124 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5125 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5126 esac ;;
5127esac
5128ac_abs_top_builddir=$ac_pwd
5129ac_abs_builddir=$ac_pwd$ac_dir_suffix
5130# for backward compatibility:
5131ac_top_builddir=$ac_top_build_prefix
c906108c 5132
b7026657 5133case $srcdir in
df1756f4 5134 .) # We are building in place.
b7026657 5135 ac_srcdir=.
df1756f4
TG
5136 ac_top_srcdir=$ac_top_builddir_sub
5137 ac_abs_top_srcdir=$ac_pwd ;;
5138 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 5139 ac_srcdir=$srcdir$ac_dir_suffix;
df1756f4
TG
5140 ac_top_srcdir=$srcdir
5141 ac_abs_top_srcdir=$srcdir ;;
5142 *) # Relative name.
5143 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5144 ac_top_srcdir=$ac_top_build_prefix$srcdir
5145 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 5146esac
df1756f4 5147ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
c906108c 5148
c906108c 5149
df1756f4 5150 cd "$ac_dir"
c906108c
SS
5151
5152 # Check for guested configure; otherwise get Cygnus style configure.
df1756f4
TG
5153 if test -f "$ac_srcdir/configure.gnu"; then
5154 ac_sub_configure=$ac_srcdir/configure.gnu
5155 elif test -f "$ac_srcdir/configure"; then
5156 ac_sub_configure=$ac_srcdir/configure
5157 elif test -f "$ac_srcdir/configure.in"; then
5158 # This should be Cygnus configure.
5159 ac_sub_configure=$ac_aux_dir/configure
c906108c 5160 else
b7026657
AC
5161 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
5162echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
5163 ac_sub_configure=
5164 fi
5165
5166 # The recursion is here.
5167 if test -n "$ac_sub_configure"; then
c906108c 5168 # Make the cache file name correct relative to the subdirectory.
b7026657
AC
5169 case $cache_file in
5170 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
df1756f4
TG
5171 *) # Relative name.
5172 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
c906108c 5173 esac
c906108c 5174
df1756f4
TG
5175 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
5176echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 5177 # The eval makes quoting arguments work.
df1756f4
TG
5178 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
5179 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
b7026657
AC
5180 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
5181echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
5182 { (exit 1); exit 1; }; }
c906108c
SS
5183 fi
5184
df1756f4 5185 cd "$ac_popdir"
c906108c
SS
5186 done
5187fi
5188
5189
5190exit 0
This page took 0.740154 seconds and 4 git commands to generate.