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