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