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