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