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