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