Add real SIM_DESC arg to v850 simulator.
[deliverable/binutils-gdb.git] / sim / v850 / configure
CommitLineData
295dbbe4
SG
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
0ffba68f 4# Generated automatically using autoconf version 2.12
295dbbe4
SG
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
601fb8ae
MM
14ac_help="$ac_help
15 --enable-sim-bswap Use Host specific BSWAP instruction."
295dbbe4
SG
16ac_help="$ac_help
17 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator"
18ac_help="$ac_help
19 --enable-sim-debug=opts Enable debugging flags"
a35e91c3
AC
20ac_help="$ac_help
21 --enable-sim-stdio Specify whether to use stdio for console input/output."
295dbbe4
SG
22ac_help="$ac_help
23 --enable-sim-trace=opts Enable tracing flags"
0ffba68f
AC
24ac_help="$ac_help
25 --enable-sim-profile=opts Enable profiling flags"
9cdd2c6d
AC
26ac_help="$ac_help
27 --enable-sim-endian=endian Specify target byte endian orientation."
28ac_help="$ac_help
29 --enable-sim-hostendain=end Specify host byte endian orientation."
30ac_help="$ac_help
31 --enable-sim-warnings=opts Extra CFLAGS for turning on compiler warnings"
295dbbe4
SG
32
33# Initialize some variables set by options.
34# The variables have the same names as the options, with
35# dashes changed to underlines.
36build=NONE
37cache_file=./config.cache
38exec_prefix=NONE
39host=NONE
40no_create=
41nonopt=NONE
42no_recursion=
43prefix=NONE
44program_prefix=NONE
45program_suffix=NONE
46program_transform_name=s,x,x,
47silent=
48site=
49srcdir=
50target=NONE
51verbose=
52x_includes=NONE
53x_libraries=NONE
54bindir='${exec_prefix}/bin'
55sbindir='${exec_prefix}/sbin'
56libexecdir='${exec_prefix}/libexec'
57datadir='${prefix}/share'
58sysconfdir='${prefix}/etc'
59sharedstatedir='${prefix}/com'
60localstatedir='${prefix}/var'
61libdir='${exec_prefix}/lib'
62includedir='${prefix}/include'
63oldincludedir='/usr/include'
64infodir='${prefix}/info'
65mandir='${prefix}/man'
66
67# Initialize some other variables.
68subdirs=
69MFLAGS= MAKEFLAGS=
0ffba68f
AC
70# Maximum number of lines to put in a shell here document.
71ac_max_here_lines=12
295dbbe4
SG
72
73ac_prev=
74for ac_option
75do
76
77 # If the previous option needs an argument, assign it.
78 if test -n "$ac_prev"; then
79 eval "$ac_prev=\$ac_option"
80 ac_prev=
81 continue
82 fi
83
84 case "$ac_option" in
85 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
86 *) ac_optarg= ;;
87 esac
88
89 # Accept the important Cygnus configure options, so we can diagnose typos.
90
91 case "$ac_option" in
92
93 -bindir | --bindir | --bindi | --bind | --bin | --bi)
94 ac_prev=bindir ;;
95 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
96 bindir="$ac_optarg" ;;
97
98 -build | --build | --buil | --bui | --bu)
99 ac_prev=build ;;
100 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
101 build="$ac_optarg" ;;
102
103 -cache-file | --cache-file | --cache-fil | --cache-fi \
104 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
105 ac_prev=cache_file ;;
106 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
107 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
108 cache_file="$ac_optarg" ;;
109
110 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
111 ac_prev=datadir ;;
112 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
113 | --da=*)
114 datadir="$ac_optarg" ;;
115
116 -disable-* | --disable-*)
117 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121 fi
122 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}=no" ;;
124
125 -enable-* | --enable-*)
126 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 fi
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
132 case "$ac_option" in
133 *=*) ;;
134 *) ac_optarg=yes ;;
135 esac
136 eval "enable_${ac_feature}='$ac_optarg'" ;;
137
138 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
139 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
140 | --exec | --exe | --ex)
141 ac_prev=exec_prefix ;;
142 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
143 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
144 | --exec=* | --exe=* | --ex=*)
145 exec_prefix="$ac_optarg" ;;
146
147 -gas | --gas | --ga | --g)
148 # Obsolete; use --with-gas.
149 with_gas=yes ;;
150
151 -help | --help | --hel | --he)
152 # Omit some internal or obsolete options to make the list less imposing.
153 # This message is too long to be a string in the A/UX 3.1 sh.
154 cat << EOF
155Usage: configure [options] [host]
156Options: [defaults in brackets after descriptions]
157Configuration:
158 --cache-file=FILE cache test results in FILE
159 --help print this message
160 --no-create do not create output files
161 --quiet, --silent do not print \`checking...' messages
162 --version print the version of autoconf that created configure
163Directory and file names:
164 --prefix=PREFIX install architecture-independent files in PREFIX
165 [$ac_default_prefix]
166 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
167 [same as prefix]
168 --bindir=DIR user executables in DIR [EPREFIX/bin]
169 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
170 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
171 --datadir=DIR read-only architecture-independent data in DIR
172 [PREFIX/share]
173 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
174 --sharedstatedir=DIR modifiable architecture-independent data in DIR
175 [PREFIX/com]
176 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
177 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
178 --includedir=DIR C header files in DIR [PREFIX/include]
179 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
180 --infodir=DIR info documentation in DIR [PREFIX/info]
181 --mandir=DIR man documentation in DIR [PREFIX/man]
182 --srcdir=DIR find the sources in DIR [configure dir or ..]
183 --program-prefix=PREFIX prepend PREFIX to installed program names
184 --program-suffix=SUFFIX append SUFFIX to installed program names
185 --program-transform-name=PROGRAM
186 run sed PROGRAM on installed program names
187EOF
188 cat << EOF
189Host type:
190 --build=BUILD configure for building on BUILD [BUILD=HOST]
191 --host=HOST configure for HOST [guessed]
192 --target=TARGET configure for TARGET [TARGET=HOST]
193Features and packages:
194 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
195 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
196 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
197 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
198 --x-includes=DIR X include files are in DIR
199 --x-libraries=DIR X library files are in DIR
200EOF
201 if test -n "$ac_help"; then
202 echo "--enable and --with options recognized:$ac_help"
203 fi
204 exit 0 ;;
205
206 -host | --host | --hos | --ho)
207 ac_prev=host ;;
208 -host=* | --host=* | --hos=* | --ho=*)
209 host="$ac_optarg" ;;
210
211 -includedir | --includedir | --includedi | --included | --include \
212 | --includ | --inclu | --incl | --inc)
213 ac_prev=includedir ;;
214 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
215 | --includ=* | --inclu=* | --incl=* | --inc=*)
216 includedir="$ac_optarg" ;;
217
218 -infodir | --infodir | --infodi | --infod | --info | --inf)
219 ac_prev=infodir ;;
220 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
221 infodir="$ac_optarg" ;;
222
223 -libdir | --libdir | --libdi | --libd)
224 ac_prev=libdir ;;
225 -libdir=* | --libdir=* | --libdi=* | --libd=*)
226 libdir="$ac_optarg" ;;
227
228 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
229 | --libexe | --libex | --libe)
230 ac_prev=libexecdir ;;
231 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
232 | --libexe=* | --libex=* | --libe=*)
233 libexecdir="$ac_optarg" ;;
234
235 -localstatedir | --localstatedir | --localstatedi | --localstated \
236 | --localstate | --localstat | --localsta | --localst \
237 | --locals | --local | --loca | --loc | --lo)
238 ac_prev=localstatedir ;;
239 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
240 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
241 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
242 localstatedir="$ac_optarg" ;;
243
244 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
245 ac_prev=mandir ;;
246 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
247 mandir="$ac_optarg" ;;
248
249 -nfp | --nfp | --nf)
250 # Obsolete; use --without-fp.
251 with_fp=no ;;
252
253 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
254 | --no-cr | --no-c)
255 no_create=yes ;;
256
257 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
258 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
259 no_recursion=yes ;;
260
261 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
262 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
263 | --oldin | --oldi | --old | --ol | --o)
264 ac_prev=oldincludedir ;;
265 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
266 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
267 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
268 oldincludedir="$ac_optarg" ;;
269
270 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
271 ac_prev=prefix ;;
272 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
273 prefix="$ac_optarg" ;;
274
275 -program-prefix | --program-prefix | --program-prefi | --program-pref \
276 | --program-pre | --program-pr | --program-p)
277 ac_prev=program_prefix ;;
278 -program-prefix=* | --program-prefix=* | --program-prefi=* \
279 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
280 program_prefix="$ac_optarg" ;;
281
282 -program-suffix | --program-suffix | --program-suffi | --program-suff \
283 | --program-suf | --program-su | --program-s)
284 ac_prev=program_suffix ;;
285 -program-suffix=* | --program-suffix=* | --program-suffi=* \
286 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
287 program_suffix="$ac_optarg" ;;
288
289 -program-transform-name | --program-transform-name \
290 | --program-transform-nam | --program-transform-na \
291 | --program-transform-n | --program-transform- \
292 | --program-transform | --program-transfor \
293 | --program-transfo | --program-transf \
294 | --program-trans | --program-tran \
295 | --progr-tra | --program-tr | --program-t)
296 ac_prev=program_transform_name ;;
297 -program-transform-name=* | --program-transform-name=* \
298 | --program-transform-nam=* | --program-transform-na=* \
299 | --program-transform-n=* | --program-transform-=* \
300 | --program-transform=* | --program-transfor=* \
301 | --program-transfo=* | --program-transf=* \
302 | --program-trans=* | --program-tran=* \
303 | --progr-tra=* | --program-tr=* | --program-t=*)
304 program_transform_name="$ac_optarg" ;;
305
306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
307 | -silent | --silent | --silen | --sile | --sil)
308 silent=yes ;;
309
310 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
311 ac_prev=sbindir ;;
312 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
313 | --sbi=* | --sb=*)
314 sbindir="$ac_optarg" ;;
315
316 -sharedstatedir | --sharedstatedir | --sharedstatedi \
317 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
318 | --sharedst | --shareds | --shared | --share | --shar \
319 | --sha | --sh)
320 ac_prev=sharedstatedir ;;
321 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
322 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
323 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
324 | --sha=* | --sh=*)
325 sharedstatedir="$ac_optarg" ;;
326
327 -site | --site | --sit)
328 ac_prev=site ;;
329 -site=* | --site=* | --sit=*)
330 site="$ac_optarg" ;;
331
332 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
333 ac_prev=srcdir ;;
334 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
335 srcdir="$ac_optarg" ;;
336
337 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
338 | --syscon | --sysco | --sysc | --sys | --sy)
339 ac_prev=sysconfdir ;;
340 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
341 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
342 sysconfdir="$ac_optarg" ;;
343
344 -target | --target | --targe | --targ | --tar | --ta | --t)
345 ac_prev=target ;;
346 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
347 target="$ac_optarg" ;;
348
349 -v | -verbose | --verbose | --verbos | --verbo | --verb)
350 verbose=yes ;;
351
352 -version | --version | --versio | --versi | --vers)
0ffba68f 353 echo "configure generated by autoconf version 2.12"
295dbbe4
SG
354 exit 0 ;;
355
356 -with-* | --with-*)
357 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361 fi
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
363 case "$ac_option" in
364 *=*) ;;
365 *) ac_optarg=yes ;;
366 esac
367 eval "with_${ac_package}='$ac_optarg'" ;;
368
369 -without-* | --without-*)
370 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374 fi
375 ac_package=`echo $ac_package| sed 's/-/_/g'`
376 eval "with_${ac_package}=no" ;;
377
378 --x)
379 # Obsolete; use --with-x.
380 with_x=yes ;;
381
382 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
383 | --x-incl | --x-inc | --x-in | --x-i)
384 ac_prev=x_includes ;;
385 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
386 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
387 x_includes="$ac_optarg" ;;
388
389 -x-libraries | --x-libraries | --x-librarie | --x-librari \
390 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
391 ac_prev=x_libraries ;;
392 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
393 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
394 x_libraries="$ac_optarg" ;;
395
396 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
397 ;;
398
399 *)
400 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
401 echo "configure: warning: $ac_option: invalid host type" 1>&2
402 fi
403 if test "x$nonopt" != xNONE; then
404 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
405 fi
406 nonopt="$ac_option"
407 ;;
408
409 esac
410done
411
412if test -n "$ac_prev"; then
413 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
414fi
415
416trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
417
418# File descriptor usage:
419# 0 standard input
420# 1 file creation
421# 2 errors and warnings
422# 3 some systems may open it to /dev/tty
423# 4 used on the Kubota Titan
424# 6 checking for... messages and results
425# 5 compiler messages saved in config.log
426if test "$silent" = yes; then
427 exec 6>/dev/null
428else
429 exec 6>&1
430fi
431exec 5>./config.log
432
433echo "\
434This file contains any messages produced by compilers while
435running configure, to aid debugging if configure makes a mistake.
436" 1>&5
437
438# Strip out --no-create and --no-recursion so they do not pile up.
439# Also quote any args containing shell metacharacters.
440ac_configure_args=
441for ac_arg
442do
443 case "$ac_arg" in
444 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
445 | --no-cr | --no-c) ;;
446 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
447 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
448 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
449 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
450 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
451 esac
452done
453
454# NLS nuisances.
0ffba68f
AC
455# Only set these to C if already set. These must not be set unconditionally
456# because not all systems understand e.g. LANG=C (notably SCO).
457# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
458# Non-C LC_CTYPE values break the ctype check.
08db4a65 459if test "${LANG+set}" = set; then LANG=C; export LANG; fi
0ffba68f
AC
460if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
461if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
462if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
295dbbe4
SG
463
464# confdefs.h avoids OS command line length limits that DEFS can exceed.
465rm -rf conftest* confdefs.h
466# AIX cpp loses on an empty file, so make sure it contains at least a newline.
467echo > confdefs.h
468
469# A filename unique to this package, relative to the directory that
470# configure is in, which we can look for to find out if srcdir is correct.
471ac_unique_file=Makefile.in
472
473# Find the source files, if location was not specified.
474if test -z "$srcdir"; then
475 ac_srcdir_defaulted=yes
476 # Try the directory containing this script, then its parent.
477 ac_prog=$0
478 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
479 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
480 srcdir=$ac_confdir
481 if test ! -r $srcdir/$ac_unique_file; then
482 srcdir=..
483 fi
484else
485 ac_srcdir_defaulted=no
486fi
487if test ! -r $srcdir/$ac_unique_file; then
488 if test "$ac_srcdir_defaulted" = yes; then
489 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
490 else
491 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
492 fi
493fi
494srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
495
496# Prefer explicitly selected file to automatically selected ones.
497if test -z "$CONFIG_SITE"; then
498 if test "x$prefix" != xNONE; then
499 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
500 else
501 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
502 fi
503fi
504for ac_site_file in $CONFIG_SITE; do
505 if test -r "$ac_site_file"; then
506 echo "loading site script $ac_site_file"
507 . "$ac_site_file"
508 fi
509done
510
511if test -r "$cache_file"; then
512 echo "loading cache $cache_file"
513 . $cache_file
514else
515 echo "creating cache $cache_file"
516 > $cache_file
517fi
518
519ac_ext=c
520# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
521ac_cpp='$CPP $CPPFLAGS'
522ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
523ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
0ffba68f 524cross_compiling=$ac_cv_prog_cc_cross
295dbbe4
SG
525
526if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
527 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
528 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
529 ac_n= ac_c='
530' ac_t=' '
531 else
532 ac_n=-n ac_c= ac_t=
533 fi
534else
535 ac_n= ac_c='\c' ac_t=
536fi
537
538
539
fbda74b1 540echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
9cdd2c6d 541echo "configure:542: checking how to run the C preprocessor" >&5
fbda74b1
DE
542# On Suns, sometimes $CPP names a directory.
543if test -n "$CPP" && test -d "$CPP"; then
544 CPP=
545fi
546if test -z "$CPP"; then
547if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
548 echo $ac_n "(cached) $ac_c" 1>&6
549else
550 # This must be in double quotes, not single quotes, because CPP may get
551 # substituted into the Makefile and "${CC-cc}" will confuse make.
552 CPP="${CC-cc} -E"
553 # On the NeXT, cc -E runs the code through the compiler's parser,
554 # not just through cpp.
555 cat > conftest.$ac_ext <<EOF
9cdd2c6d 556#line 557 "configure"
fbda74b1
DE
557#include "confdefs.h"
558#include <assert.h>
559Syntax Error
560EOF
561ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9cdd2c6d 562{ (eval echo configure:563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
fbda74b1
DE
563ac_err=`grep -v '^ *+' conftest.out`
564if test -z "$ac_err"; then
565 :
566else
567 echo "$ac_err" >&5
0ffba68f
AC
568 echo "configure: failed program was:" >&5
569 cat conftest.$ac_ext >&5
fbda74b1
DE
570 rm -rf conftest*
571 CPP="${CC-cc} -E -traditional-cpp"
572 cat > conftest.$ac_ext <<EOF
9cdd2c6d 573#line 574 "configure"
fbda74b1
DE
574#include "confdefs.h"
575#include <assert.h>
576Syntax Error
577EOF
578ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9cdd2c6d 579{ (eval echo configure:580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
fbda74b1
DE
580ac_err=`grep -v '^ *+' conftest.out`
581if test -z "$ac_err"; then
582 :
583else
584 echo "$ac_err" >&5
0ffba68f
AC
585 echo "configure: failed program was:" >&5
586 cat conftest.$ac_ext >&5
fbda74b1
DE
587 rm -rf conftest*
588 CPP=/lib/cpp
589fi
590rm -f conftest*
591fi
592rm -f conftest*
593 ac_cv_prog_CPP="$CPP"
594fi
595 CPP="$ac_cv_prog_CPP"
596else
597 ac_cv_prog_CPP="$CPP"
598fi
599echo "$ac_t""$CPP" 1>&6
600
295dbbe4
SG
601
602# autoconf.info says this should be called right after AC_INIT.
603
604
605ac_aux_dir=
606for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do
607 if test -f $ac_dir/install-sh; then
608 ac_aux_dir=$ac_dir
609 ac_install_sh="$ac_aux_dir/install-sh -c"
610 break
611 elif test -f $ac_dir/install.sh; then
612 ac_aux_dir=$ac_dir
613 ac_install_sh="$ac_aux_dir/install.sh -c"
614 break
615 fi
616done
617if test -z "$ac_aux_dir"; then
618 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
619fi
620ac_config_guess=$ac_aux_dir/config.guess
621ac_config_sub=$ac_aux_dir/config.sub
622ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
623
624
625# Do some error checking and defaulting for the host and target type.
626# The inputs are:
627# configure --host=HOST --target=TARGET --build=BUILD NONOPT
628#
629# The rules are:
630# 1. You are not allowed to specify --host, --target, and nonopt at the
631# same time.
632# 2. Host defaults to nonopt.
633# 3. If nonopt is not specified, then host defaults to the current host,
634# as determined by config.guess.
635# 4. Target and build default to nonopt.
636# 5. If nonopt is not specified, then target and build default to host.
637
638# The aliases save the names the user supplied, while $host etc.
639# will get canonicalized.
640case $host---$target---$nonopt in
641NONE---*---* | *---NONE---* | *---*---NONE) ;;
642*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
643esac
644
645
646# Make sure we can run config.sub.
647if $ac_config_sub sun4 >/dev/null 2>&1; then :
648else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
649fi
650
651echo $ac_n "checking host system type""... $ac_c" 1>&6
9cdd2c6d 652echo "configure:653: checking host system type" >&5
295dbbe4
SG
653
654host_alias=$host
655case "$host_alias" in
656NONE)
657 case $nonopt in
658 NONE)
659 if host_alias=`$ac_config_guess`; then :
660 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
661 fi ;;
662 *) host_alias=$nonopt ;;
663 esac ;;
664esac
665
666host=`$ac_config_sub $host_alias`
0ffba68f
AC
667host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
668host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
669host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
295dbbe4
SG
670echo "$ac_t""$host" 1>&6
671
672echo $ac_n "checking target system type""... $ac_c" 1>&6
9cdd2c6d 673echo "configure:674: checking target system type" >&5
295dbbe4
SG
674
675target_alias=$target
676case "$target_alias" in
677NONE)
678 case $nonopt in
679 NONE) target_alias=$host_alias ;;
680 *) target_alias=$nonopt ;;
681 esac ;;
682esac
683
684target=`$ac_config_sub $target_alias`
0ffba68f
AC
685target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
686target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
687target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
295dbbe4
SG
688echo "$ac_t""$target" 1>&6
689
690echo $ac_n "checking build system type""... $ac_c" 1>&6
9cdd2c6d 691echo "configure:692: checking build system type" >&5
295dbbe4
SG
692
693build_alias=$build
694case "$build_alias" in
695NONE)
696 case $nonopt in
697 NONE) build_alias=$host_alias ;;
698 *) build_alias=$nonopt ;;
699 esac ;;
700esac
701
702build=`$ac_config_sub $build_alias`
0ffba68f
AC
703build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
704build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
705build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
295dbbe4
SG
706echo "$ac_t""$build" 1>&6
707
708test "$host_alias" != "$target_alias" &&
709 test "$program_prefix$program_suffix$program_transform_name" = \
710 NONENONEs,x,x, &&
711 program_prefix=${target_alias}-
712
713if test "$program_transform_name" = s,x,x,; then
714 program_transform_name=
715else
716 # Double any \ or $. echo might interpret backslashes.
717 cat <<\EOF_SED > conftestsed
718s,\\,\\\\,g; s,\$,$$,g
719EOF_SED
720 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
721 rm -f conftestsed
722fi
723test "$program_prefix" != NONE &&
724 program_transform_name="s,^,${program_prefix},; $program_transform_name"
725# Use a double $ so make ignores it.
726test "$program_suffix" != NONE &&
727 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
728
729# sed with no file args requires a program.
730test "$program_transform_name" = "" && program_transform_name="s,x,x,"
731
732# Extract the first word of "gcc", so it can be a program name with args.
733set dummy gcc; ac_word=$2
734echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9cdd2c6d 735echo "configure:736: checking for $ac_word" >&5
295dbbe4
SG
736if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
737 echo $ac_n "(cached) $ac_c" 1>&6
738else
739 if test -n "$CC"; then
740 ac_cv_prog_CC="$CC" # Let the user override the test.
741else
742 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
743 for ac_dir in $PATH; do
744 test -z "$ac_dir" && ac_dir=.
745 if test -f $ac_dir/$ac_word; then
746 ac_cv_prog_CC="gcc"
747 break
748 fi
749 done
750 IFS="$ac_save_ifs"
751fi
752fi
753CC="$ac_cv_prog_CC"
754if test -n "$CC"; then
755 echo "$ac_t""$CC" 1>&6
756else
757 echo "$ac_t""no" 1>&6
758fi
759
760if test -z "$CC"; then
761 # Extract the first word of "cc", so it can be a program name with args.
762set dummy cc; ac_word=$2
763echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9cdd2c6d 764echo "configure:765: checking for $ac_word" >&5
295dbbe4
SG
765if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
766 echo $ac_n "(cached) $ac_c" 1>&6
767else
768 if test -n "$CC"; then
769 ac_cv_prog_CC="$CC" # Let the user override the test.
770else
771 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
772 ac_prog_rejected=no
773 for ac_dir in $PATH; do
774 test -z "$ac_dir" && ac_dir=.
775 if test -f $ac_dir/$ac_word; then
776 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
777 ac_prog_rejected=yes
778 continue
779 fi
780 ac_cv_prog_CC="cc"
781 break
782 fi
783 done
784 IFS="$ac_save_ifs"
785if test $ac_prog_rejected = yes; then
786 # We found a bogon in the path, so make sure we never use it.
787 set dummy $ac_cv_prog_CC
788 shift
789 if test $# -gt 0; then
790 # We chose a different compiler from the bogus one.
791 # However, it has the same basename, so the bogon will be chosen
792 # first if we set CC to just the basename; use the full file name.
793 shift
794 set dummy "$ac_dir/$ac_word" "$@"
795 shift
796 ac_cv_prog_CC="$@"
797 fi
798fi
799fi
800fi
801CC="$ac_cv_prog_CC"
802if test -n "$CC"; then
803 echo "$ac_t""$CC" 1>&6
804else
805 echo "$ac_t""no" 1>&6
806fi
807
808 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
809fi
810
0ffba68f 811echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9cdd2c6d 812echo "configure:813: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
0ffba68f
AC
813
814ac_ext=c
815# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
816ac_cpp='$CPP $CPPFLAGS'
817ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
818ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
819cross_compiling=$ac_cv_prog_cc_cross
820
821cat > conftest.$ac_ext <<EOF
9cdd2c6d 822#line 823 "configure"
0ffba68f
AC
823#include "confdefs.h"
824main(){return(0);}
825EOF
9cdd2c6d 826if { (eval echo configure:827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
0ffba68f
AC
827 ac_cv_prog_cc_works=yes
828 # If we can't run a trivial program, we are probably using a cross compiler.
829 if (./conftest; exit) 2>/dev/null; then
830 ac_cv_prog_cc_cross=no
831 else
832 ac_cv_prog_cc_cross=yes
833 fi
834else
835 echo "configure: failed program was:" >&5
836 cat conftest.$ac_ext >&5
837 ac_cv_prog_cc_works=no
838fi
839rm -fr conftest*
840
841echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
842if test $ac_cv_prog_cc_works = no; then
843 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
844fi
845echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9cdd2c6d 846echo "configure:847: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
0ffba68f
AC
847echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
848cross_compiling=$ac_cv_prog_cc_cross
849
295dbbe4 850echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
9cdd2c6d 851echo "configure:852: checking whether we are using GNU C" >&5
295dbbe4
SG
852if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
853 echo $ac_n "(cached) $ac_c" 1>&6
854else
855 cat > conftest.c <<EOF
856#ifdef __GNUC__
857 yes;
858#endif
859EOF
9cdd2c6d 860if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
295dbbe4
SG
861 ac_cv_prog_gcc=yes
862else
863 ac_cv_prog_gcc=no
864fi
865fi
866
867echo "$ac_t""$ac_cv_prog_gcc" 1>&6
0ffba68f 868
295dbbe4
SG
869if test $ac_cv_prog_gcc = yes; then
870 GCC=yes
0ffba68f
AC
871 ac_test_CFLAGS="${CFLAGS+set}"
872 ac_save_CFLAGS="$CFLAGS"
873 CFLAGS=
874 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
9cdd2c6d 875echo "configure:876: checking whether ${CC-cc} accepts -g" >&5
0ffba68f 876if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
295dbbe4
SG
877 echo $ac_n "(cached) $ac_c" 1>&6
878else
879 echo 'void f(){}' > conftest.c
880if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
0ffba68f 881 ac_cv_prog_cc_g=yes
295dbbe4 882else
0ffba68f 883 ac_cv_prog_cc_g=no
295dbbe4
SG
884fi
885rm -f conftest*
886
887fi
888
0ffba68f
AC
889echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
890 if test "$ac_test_CFLAGS" = set; then
891 CFLAGS="$ac_save_CFLAGS"
892 elif test $ac_cv_prog_cc_g = yes; then
893 CFLAGS="-g -O2"
894 else
895 CFLAGS="-O2"
295dbbe4
SG
896 fi
897else
898 GCC=
899 test "${CFLAGS+set}" = set || CFLAGS="-g"
900fi
901
902# Find a good install program. We prefer a C program (faster),
903# so one script is as good as another. But avoid the broken or
904# incompatible versions:
905# SysV /etc/install, /usr/sbin/install
906# SunOS /usr/etc/install
907# IRIX /sbin/install
908# AIX /bin/install
909# AFS /usr/afsws/bin/install, which mishandles nonexistent args
910# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
911# ./install, which can be erroneously created by make from ./install.sh.
912echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9cdd2c6d 913echo "configure:914: checking for a BSD compatible install" >&5
295dbbe4
SG
914if test -z "$INSTALL"; then
915if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
916 echo $ac_n "(cached) $ac_c" 1>&6
917else
0ffba68f 918 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
295dbbe4
SG
919 for ac_dir in $PATH; do
920 # Account for people who put trailing slashes in PATH elements.
921 case "$ac_dir/" in
922 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
923 *)
924 # OSF1 and SCO ODT 3.0 have their own names for install.
925 for ac_prog in ginstall installbsd scoinst install; do
926 if test -f $ac_dir/$ac_prog; then
927 if test $ac_prog = install &&
928 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
929 # AIX install. It has an incompatible calling convention.
930 # OSF/1 installbsd also uses dspmsg, but is usable.
931 :
932 else
933 ac_cv_path_install="$ac_dir/$ac_prog -c"
934 break 2
935 fi
936 fi
937 done
938 ;;
939 esac
940 done
0ffba68f 941 IFS="$ac_save_IFS"
295dbbe4
SG
942
943fi
944 if test "${ac_cv_path_install+set}" = set; then
945 INSTALL="$ac_cv_path_install"
946 else
947 # As a last resort, use the slow shell script. We don't cache a
948 # path for INSTALL within a source directory, because that will
949 # break other packages using the cache if that directory is
950 # removed, or if the path is relative.
951 INSTALL="$ac_install_sh"
952 fi
953fi
954echo "$ac_t""$INSTALL" 1>&6
955
956# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
957# It thinks the first close brace ends the variable substitution.
958test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
959
960test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
961
295dbbe4
SG
962
963# Put a plausible default for CC_FOR_BUILD in Makefile.
295dbbe4
SG
964if test "x$cross_compiling" = "xno"; then
965 CC_FOR_BUILD='$(CC)'
966else
967 CC_FOR_BUILD=gcc
968fi
969
970
971
972
973AR=${AR-ar}
974
975# Extract the first word of "ranlib", so it can be a program name with args.
976set dummy ranlib; ac_word=$2
977echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9cdd2c6d 978echo "configure:979: checking for $ac_word" >&5
295dbbe4
SG
979if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
980 echo $ac_n "(cached) $ac_c" 1>&6
981else
982 if test -n "$RANLIB"; then
983 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
984else
985 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
986 for ac_dir in $PATH; do
987 test -z "$ac_dir" && ac_dir=.
988 if test -f $ac_dir/$ac_word; then
989 ac_cv_prog_RANLIB="ranlib"
990 break
991 fi
992 done
993 IFS="$ac_save_ifs"
994 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
995fi
996fi
997RANLIB="$ac_cv_prog_RANLIB"
998if test -n "$RANLIB"; then
999 echo "$ac_t""$RANLIB" 1>&6
1000else
1001 echo "$ac_t""no" 1>&6
1002fi
1003
1004
fbda74b1 1005# Check for common headers.
0ffba68f
AC
1006# FIXME: Seems to me this can cause problems for i386-windows hosts.
1007# At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
1008for ac_hdr in stdlib.h string.h strings.h unistd.h time.h sys/time.h sys/resource.h
fbda74b1 1009do
0ffba68f 1010ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
fbda74b1 1011echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9cdd2c6d 1012echo "configure:1013: checking for $ac_hdr" >&5
fbda74b1
DE
1013if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1014 echo $ac_n "(cached) $ac_c" 1>&6
1015else
1016 cat > conftest.$ac_ext <<EOF
9cdd2c6d 1017#line 1018 "configure"
fbda74b1
DE
1018#include "confdefs.h"
1019#include <$ac_hdr>
1020EOF
1021ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9cdd2c6d 1022{ (eval echo configure:1023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
fbda74b1
DE
1023ac_err=`grep -v '^ *+' conftest.out`
1024if test -z "$ac_err"; then
1025 rm -rf conftest*
1026 eval "ac_cv_header_$ac_safe=yes"
1027else
1028 echo "$ac_err" >&5
0ffba68f
AC
1029 echo "configure: failed program was:" >&5
1030 cat conftest.$ac_ext >&5
fbda74b1
DE
1031 rm -rf conftest*
1032 eval "ac_cv_header_$ac_safe=no"
1033fi
1034rm -f conftest*
1035fi
1036if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1037 echo "$ac_t""yes" 1>&6
0ffba68f 1038 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
fbda74b1
DE
1039 cat >> confdefs.h <<EOF
1040#define $ac_tr_hdr 1
1041EOF
1042
1043else
1044 echo "$ac_t""no" 1>&6
1045fi
1046done
1047
0ffba68f
AC
1048for ac_func in getrusage time
1049do
1050echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9cdd2c6d 1051echo "configure:1052: checking for $ac_func" >&5
0ffba68f
AC
1052if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1053 echo $ac_n "(cached) $ac_c" 1>&6
1054else
1055 cat > conftest.$ac_ext <<EOF
9cdd2c6d 1056#line 1057 "configure"
0ffba68f
AC
1057#include "confdefs.h"
1058/* System header to define __stub macros and hopefully few prototypes,
1059 which can conflict with char $ac_func(); below. */
1060#include <assert.h>
1061/* Override any gcc2 internal prototype to avoid an error. */
1062/* We use char because int might match the return type of a gcc2
1063 builtin and then its argument prototype would still apply. */
1064char $ac_func();
1065
1066int main() {
1067
1068/* The GNU C library defines this for functions which it implements
1069 to always fail with ENOSYS. Some functions are actually named
1070 something starting with __ and the normal name is an alias. */
1071#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1072choke me
1073#else
1074$ac_func();
1075#endif
1076
1077; return 0; }
1078EOF
9cdd2c6d 1079if { (eval echo configure:1080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
0ffba68f
AC
1080 rm -rf conftest*
1081 eval "ac_cv_func_$ac_func=yes"
1082else
1083 echo "configure: failed program was:" >&5
1084 cat conftest.$ac_ext >&5
1085 rm -rf conftest*
1086 eval "ac_cv_func_$ac_func=no"
1087fi
1088rm -f conftest*
1089fi
1090
1091if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1092 echo "$ac_t""yes" 1>&6
1093 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1094 cat >> confdefs.h <<EOF
1095#define $ac_tr_func 1
1096EOF
1097
1098else
1099 echo "$ac_t""no" 1>&6
1100fi
1101done
1102
fbda74b1 1103
295dbbe4
SG
1104. ${srcdir}/../../bfd/configure.host
1105
1106
601fb8ae
MM
1107
1108# Check whether --enable-sim-bswap or --disable-sim-bswap was given.
1109if test "${enable_sim_bswap+set}" = set; then
1110 enableval="$enable_sim_bswap"
1111 case "${enableval}" in
a77aa7ec 1112 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
601fb8ae
MM
1113 no) sim_bswap="-DWITH_BSWAP=0";;
1114 *) { echo "configure: error: "--enable-sim-bswap does not take a value"" 1>&2; exit 1; }; sim_bswap="";;
1115esac
1116if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
1117 echo "Setting bswap flags = $sim_bswap" 6>&1
1118fi
1119else
1120 sim_bswap=""
1121fi
1122
1123
1124
295dbbe4
SG
1125# Check whether --enable-sim-cflags or --disable-sim-cflags was given.
1126if test "${enable_sim_cflags+set}" = set; then
1127 enableval="$enable_sim_cflags"
1128 case "${enableval}" in
1129 yes) sim_cflags="-O2";;
1130 trace) { echo "configure: error: "Please use --enable-sim-debug instead."" 1>&2; exit 1; }; sim_cflags="";;
1131 no) sim_cflags="";;
1132 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
1133esac
1134if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
1135 echo "Setting sim cflags = $sim_cflags" 6>&1
1136fi
1137else
1138 sim_cflags=""
1139fi
1140
1141
601fb8ae 1142
295dbbe4
SG
1143# Check whether --enable-sim-debug or --disable-sim-debug was given.
1144if test "${enable_sim_debug+set}" = set; then
1145 enableval="$enable_sim_debug"
1146 case "${enableval}" in
fbda74b1
DE
1147 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
1148 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
1149 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
295dbbe4
SG
1150esac
1151if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
1152 echo "Setting sim debug = $sim_debug" 6>&1
1153fi
1154else
1155 sim_debug=""
1156fi
1157
1158
601fb8ae 1159
a35e91c3
AC
1160# Check whether --enable-sim-stdio or --disable-sim-stdio was given.
1161if test "${enable_sim_stdio+set}" = set; then
1162 enableval="$enable_sim_stdio"
1163 case "${enableval}" in
1164 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
1165 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
1166 *) { echo "configure: error: "Unknown value $enableval passed to --enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio="";;
1167esac
1168if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
1169 echo "Setting stdio flags = $sim_stdio" 6>&1
1170fi
1171else
1172 sim_stdio=""
1173fi
a77aa7ec
AC
1174
1175
1176
295dbbe4
SG
1177# Check whether --enable-sim-trace or --disable-sim-trace was given.
1178if test "${enable_sim_trace+set}" = set; then
1179 enableval="$enable_sim_trace"
1180 case "${enableval}" in
0ffba68f 1181 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
a77aa7ec 1182 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
0ffba68f
AC
1183 [-0-9]*)
1184 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
1185 [a-z]*)
1186 sim_trace=""
1187 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
1188 if test x"$sim_trace" = x; then
1189 sim_trace="-DWITH_TRACE='(TRACE_$x"
1190 else
1191 sim_trace="${sim_trace}|TRACE_$x"
1192 fi
1193 done
1194 sim_trace="$sim_trace)'" ;;
295dbbe4
SG
1195esac
1196if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
1197 echo "Setting sim trace = $sim_trace" 6>&1
1198fi
1199else
1200 sim_trace=""
1201fi
1202
1203
295dbbe4 1204
0ffba68f
AC
1205# Check whether --enable-sim-profile or --disable-sim-profile was given.
1206if test "${enable_sim_profile+set}" = set; then
1207 enableval="$enable_sim_profile"
1208 case "${enableval}" in
1209 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
1210 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
1211 [-0-9]*)
1212 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
1213 [a-z]*)
1214 sim_profile=""
1215 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
1216 if test x"$sim_profile" = x; then
1217 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
1218 else
1219 sim_profile="${sim_profile}|PROFILE_$x"
1220 fi
1221 done
1222 sim_profile="$sim_profile)'" ;;
1223esac
1224if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
1225 echo "Setting sim profile = $sim_profile" 6>&1
1226fi
1227else
1228 sim_profile=""
1229fi
1230
1231
1232
08db4a65 1233echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
9cdd2c6d 1234echo "configure:1235: checking return type of signal handlers" >&5
08db4a65
AC
1235if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1236 echo $ac_n "(cached) $ac_c" 1>&6
1237else
1238 cat > conftest.$ac_ext <<EOF
9cdd2c6d 1239#line 1240 "configure"
08db4a65
AC
1240#include "confdefs.h"
1241#include <sys/types.h>
1242#include <signal.h>
1243#ifdef signal
1244#undef signal
1245#endif
1246#ifdef __cplusplus
1247extern "C" void (*signal (int, void (*)(int)))(int);
1248#else
1249void (*signal ()) ();
1250#endif
1251
0ffba68f 1252int main() {
08db4a65
AC
1253int i;
1254; return 0; }
1255EOF
9cdd2c6d 1256if { (eval echo configure:1257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
08db4a65
AC
1257 rm -rf conftest*
1258 ac_cv_type_signal=void
1259else
0ffba68f
AC
1260 echo "configure: failed program was:" >&5
1261 cat conftest.$ac_ext >&5
08db4a65
AC
1262 rm -rf conftest*
1263 ac_cv_type_signal=int
1264fi
1265rm -f conftest*
08db4a65
AC
1266fi
1267
1268echo "$ac_t""$ac_cv_type_signal" 1>&6
1269cat >> confdefs.h <<EOF
1270#define RETSIGTYPE $ac_cv_type_signal
1271EOF
1272
1273
1274
1275
295dbbe4
SG
1276sim_link_files=
1277sim_link_links=
1278
1279sim_link_links=tconfig.h
1280if test -f ${srcdir}/tconfig.in
1281then
1282 sim_link_files=tconfig.in
1283else
1284 sim_link_files=../common/tconfig.in
1285fi
1286
601fb8ae 1287# targ-vals.def points to the libc macro description file.
295dbbe4 1288case "${target}" in
601fb8ae 1289*-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
295dbbe4 1290esac
601fb8ae
MM
1291sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
1292sim_link_links="${sim_link_links} targ-vals.def"
295dbbe4
SG
1293
1294
1295
9cdd2c6d
AC
1296
1297wire_endian="LITTLE_ENDIAN"
1298default_endian="LITTLE_ENDIAN"
1299default_sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN"
1300# Check whether --enable-sim-endian or --disable-sim-endian was given.
1301if test "${enable_sim_endian+set}" = set; then
1302 enableval="$enable_sim_endian"
1303 case "${enableval}" in
1304 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
1305 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
1306 yes) if test x"$wire_endian" != x; then
1307 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
1308 else
1309 echo "No hard-wired endian for target $target" 1>&6
1310 sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
1311 fi;;
1312 no) if test x"$default_endian" != x; then
1313 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
1314 else
1315 echo "No default endian for target $target" 1>&6
1316 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
1317 fi;;
1318 *) { echo "configure: error: "Unknown value $enableval for --enable-sim-endian"" 1>&2; exit 1; }; sim_endian="";;
1319esac
1320if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
1321 echo "Setting endian flags = $sim_endian" 6>&1
1322fi
1323else
1324 sim_endian="${default_sim_endian}"
1325fi
1326
1327
1328
1329# Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
1330if test "${enable_sim_hostendian+set}" = set; then
1331 enableval="$enable_sim_hostendian"
1332 case "${enableval}" in
1333 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
1334 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
1335 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
1336 *) { echo "configure: error: "Unknown value $enableval for --enable-sim-hostendian"" 1>&2; exit 1; }; sim_hostendian="";;
1337esac
1338if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
1339 echo "Setting hostendian flags = $sim_hostendian" 6>&1
1340fi
1341else
1342
1343if test "x$cross_compiling" = "xno"; then
1344 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1345echo "configure:1346: checking whether byte ordering is bigendian" >&5
1346if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1347 echo $ac_n "(cached) $ac_c" 1>&6
1348else
1349 ac_cv_c_bigendian=unknown
1350# See if sys/param.h defines the BYTE_ORDER macro.
1351cat > conftest.$ac_ext <<EOF
1352#line 1353 "configure"
1353#include "confdefs.h"
1354#include <sys/types.h>
1355#include <sys/param.h>
1356int main() {
1357
1358#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1359 bogus endian macros
1360#endif
1361; return 0; }
1362EOF
1363if { (eval echo configure:1364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1364 rm -rf conftest*
1365 # It does; now see whether it defined to BIG_ENDIAN or not.
1366cat > conftest.$ac_ext <<EOF
1367#line 1368 "configure"
1368#include "confdefs.h"
1369#include <sys/types.h>
1370#include <sys/param.h>
1371int main() {
1372
1373#if BYTE_ORDER != BIG_ENDIAN
1374 not big endian
1375#endif
1376; return 0; }
1377EOF
1378if { (eval echo configure:1379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1379 rm -rf conftest*
1380 ac_cv_c_bigendian=yes
1381else
1382 echo "configure: failed program was:" >&5
1383 cat conftest.$ac_ext >&5
1384 rm -rf conftest*
1385 ac_cv_c_bigendian=no
1386fi
1387rm -f conftest*
1388else
1389 echo "configure: failed program was:" >&5
1390 cat conftest.$ac_ext >&5
1391fi
1392rm -f conftest*
1393if test $ac_cv_c_bigendian = unknown; then
1394if test "$cross_compiling" = yes; then
1395 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1396else
1397 cat > conftest.$ac_ext <<EOF
1398#line 1399 "configure"
1399#include "confdefs.h"
1400main () {
1401 /* Are we little or big endian? From Harbison&Steele. */
1402 union
1403 {
1404 long l;
1405 char c[sizeof (long)];
1406 } u;
1407 u.l = 1;
1408 exit (u.c[sizeof (long) - 1] == 1);
1409}
1410EOF
1411if { (eval echo configure:1412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1412then
1413 ac_cv_c_bigendian=no
1414else
1415 echo "configure: failed program was:" >&5
1416 cat conftest.$ac_ext >&5
1417 rm -fr conftest*
1418 ac_cv_c_bigendian=yes
1419fi
1420rm -fr conftest*
1421fi
1422
1423fi
1424fi
1425
1426echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1427if test $ac_cv_c_bigendian = yes; then
1428 cat >> confdefs.h <<\EOF
1429#define WORDS_BIGENDIAN 1
1430EOF
1431
1432fi
1433
1434 if test $ac_cv_c_bigendian = yes; then
1435 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
1436 else
1437 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
1438 fi
1439else
1440 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
1441fi
1442fi
1443
1444
1445
1446# Check whether --enable-sim-warnings or --disable-sim-warnings was given.
1447if test "${enable_sim_warnings+set}" = set; then
1448 enableval="$enable_sim_warnings"
1449 case "${enableval}" in
1450 yes) sim_warnings="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
1451 no) sim_warnings="-w";;
1452 *) sim_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
1453esac
1454if test x"$silent" != x"yes" && test x"$sim_warnings" != x""; then
1455 echo "Setting warning flags = $sim_warnings" 6>&1
1456fi
1457else
1458 sim_warnings=""
1459fi
1460
1461
1462
0ffba68f
AC
1463for ac_func in time
1464do
1465echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9cdd2c6d 1466echo "configure:1467: checking for $ac_func" >&5
0ffba68f
AC
1467if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1468 echo $ac_n "(cached) $ac_c" 1>&6
1469else
1470 cat > conftest.$ac_ext <<EOF
9cdd2c6d 1471#line 1472 "configure"
0ffba68f
AC
1472#include "confdefs.h"
1473/* System header to define __stub macros and hopefully few prototypes,
1474 which can conflict with char $ac_func(); below. */
1475#include <assert.h>
1476/* Override any gcc2 internal prototype to avoid an error. */
1477/* We use char because int might match the return type of a gcc2
1478 builtin and then its argument prototype would still apply. */
1479char $ac_func();
1480
1481int main() {
1482
1483/* The GNU C library defines this for functions which it implements
1484 to always fail with ENOSYS. Some functions are actually named
1485 something starting with __ and the normal name is an alias. */
1486#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1487choke me
1488#else
1489$ac_func();
1490#endif
1491
1492; return 0; }
1493EOF
9cdd2c6d 1494if { (eval echo configure:1495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
0ffba68f
AC
1495 rm -rf conftest*
1496 eval "ac_cv_func_$ac_func=yes"
1497else
1498 echo "configure: failed program was:" >&5
1499 cat conftest.$ac_ext >&5
1500 rm -rf conftest*
1501 eval "ac_cv_func_$ac_func=no"
1502fi
1503rm -f conftest*
1504fi
1505
1506if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1507 echo "$ac_t""yes" 1>&6
1508 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1509 cat >> confdefs.h <<EOF
1510#define $ac_tr_func 1
1511EOF
1512 chmod
1513else
1514 echo "$ac_t""no" 1>&6
1515fi
1516done
1517
295dbbe4
SG
1518for ac_hdr in unistd.h
1519do
0ffba68f 1520ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
295dbbe4 1521echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9cdd2c6d 1522echo "configure:1523: checking for $ac_hdr" >&5
295dbbe4
SG
1523if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1524 echo $ac_n "(cached) $ac_c" 1>&6
1525else
1526 cat > conftest.$ac_ext <<EOF
9cdd2c6d 1527#line 1528 "configure"
295dbbe4
SG
1528#include "confdefs.h"
1529#include <$ac_hdr>
1530EOF
1531ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9cdd2c6d 1532{ (eval echo configure:1533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
295dbbe4
SG
1533ac_err=`grep -v '^ *+' conftest.out`
1534if test -z "$ac_err"; then
1535 rm -rf conftest*
1536 eval "ac_cv_header_$ac_safe=yes"
1537else
1538 echo "$ac_err" >&5
0ffba68f
AC
1539 echo "configure: failed program was:" >&5
1540 cat conftest.$ac_ext >&5
295dbbe4
SG
1541 rm -rf conftest*
1542 eval "ac_cv_header_$ac_safe=no"
1543fi
1544rm -f conftest*
1545fi
1546if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1547 echo "$ac_t""yes" 1>&6
0ffba68f 1548 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
295dbbe4
SG
1549 cat >> confdefs.h <<EOF
1550#define $ac_tr_hdr 1
1551EOF
1552
1553else
1554 echo "$ac_t""no" 1>&6
1555fi
1556done
1557
1558
1559
1560
601fb8ae 1561trap '' 1 2 15
295dbbe4
SG
1562cat > confcache <<\EOF
1563# This file is a shell script that caches the results of configure
1564# tests run on this system so they can be shared between configure
1565# scripts and configure runs. It is not useful on other systems.
1566# If it contains results you don't want to keep, you may remove or edit it.
1567#
1568# By default, configure uses ./config.cache as the cache file,
1569# creating it if it does not exist already. You can give configure
1570# the --cache-file=FILE option to use a different cache file; that is
1571# what configure does when it calls configure scripts in
1572# subdirectories, so they share the cache.
1573# Giving --cache-file=/dev/null disables caching, for debugging configure.
1574# config.status only pays attention to the cache file if you give it the
1575# --recheck option to rerun configure.
1576#
1577EOF
0ffba68f
AC
1578# The following way of writing the cache mishandles newlines in values,
1579# but we know of no workaround that is simple, portable, and efficient.
1580# So, don't put newlines in cache variables' values.
295dbbe4
SG
1581# Ultrix sh set writes to stderr and can't be redirected directly,
1582# and sets the high bit in the cache file unless we assign to the vars.
1583(set) 2>&1 |
0ffba68f
AC
1584 case `(ac_space=' '; set) 2>&1` in
1585 *ac_space=\ *)
1586 # `set' does not quote correctly, so add quotes (double-quote substitution
1587 # turns \\\\ into \\, and sed turns \\ into \).
1588 sed -n \
1589 -e "s/'/'\\\\''/g" \
1590 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1591 ;;
1592 *)
1593 # `set' quotes correctly as required by POSIX, so do not add quotes.
1594 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1595 ;;
1596 esac >> confcache
295dbbe4
SG
1597if cmp -s $cache_file confcache; then
1598 :
1599else
1600 if test -w $cache_file; then
1601 echo "updating cache $cache_file"
1602 cat confcache > $cache_file
1603 else
1604 echo "not updating unwritable cache $cache_file"
1605 fi
1606fi
1607rm -f confcache
1608
1609trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1610
1611test "x$prefix" = xNONE && prefix=$ac_default_prefix
1612# Let make expand exec_prefix.
1613test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1614
1615# Any assignment to VPATH causes Sun make to only execute
1616# the first set of double-colon rules, so remove it if not needed.
1617# If there is a colon in the path, we need to keep it.
1618if test "x$srcdir" = x.; then
1619 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1620fi
1621
1622trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1623
1624DEFS=-DHAVE_CONFIG_H
1625
1626# Without the "./", some shells look in PATH for config.status.
1627: ${CONFIG_STATUS=./config.status}
1628
1629echo creating $CONFIG_STATUS
1630rm -f $CONFIG_STATUS
1631cat > $CONFIG_STATUS <<EOF
1632#! /bin/sh
1633# Generated automatically by configure.
1634# Run this file to recreate the current configuration.
1635# This directory was configured as follows,
1636# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1637#
1638# $0 $ac_configure_args
1639#
1640# Compiler output produced by configure, useful for debugging
1641# configure, is in ./config.log if it exists.
1642
1643ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1644for ac_option
1645do
1646 case "\$ac_option" in
1647 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1648 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1649 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1650 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
0ffba68f 1651 echo "$CONFIG_STATUS generated by autoconf version 2.12"
295dbbe4
SG
1652 exit 0 ;;
1653 -help | --help | --hel | --he | --h)
1654 echo "\$ac_cs_usage"; exit 0 ;;
1655 *) echo "\$ac_cs_usage"; exit 1 ;;
1656 esac
1657done
1658
1659ac_given_srcdir=$srcdir
1660ac_given_INSTALL="$INSTALL"
1661
601fb8ae 1662trap 'rm -fr `echo "Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
295dbbe4
SG
1663EOF
1664cat >> $CONFIG_STATUS <<EOF
1665
1666# Protect against being on the right side of a sed subst in config.status.
1667sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1668 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1669$ac_vpsub
1670$extrasub
1671s%@CFLAGS@%$CFLAGS%g
1672s%@CPPFLAGS@%$CPPFLAGS%g
1673s%@CXXFLAGS@%$CXXFLAGS%g
1674s%@DEFS@%$DEFS%g
1675s%@LDFLAGS@%$LDFLAGS%g
1676s%@LIBS@%$LIBS%g
1677s%@exec_prefix@%$exec_prefix%g
1678s%@prefix@%$prefix%g
1679s%@program_transform_name@%$program_transform_name%g
1680s%@bindir@%$bindir%g
1681s%@sbindir@%$sbindir%g
1682s%@libexecdir@%$libexecdir%g
1683s%@datadir@%$datadir%g
1684s%@sysconfdir@%$sysconfdir%g
1685s%@sharedstatedir@%$sharedstatedir%g
1686s%@localstatedir@%$localstatedir%g
1687s%@libdir@%$libdir%g
1688s%@includedir@%$includedir%g
1689s%@oldincludedir@%$oldincludedir%g
1690s%@infodir@%$infodir%g
1691s%@mandir@%$mandir%g
1692s%@host@%$host%g
1693s%@host_alias@%$host_alias%g
1694s%@host_cpu@%$host_cpu%g
1695s%@host_vendor@%$host_vendor%g
1696s%@host_os@%$host_os%g
1697s%@target@%$target%g
1698s%@target_alias@%$target_alias%g
1699s%@target_cpu@%$target_cpu%g
1700s%@target_vendor@%$target_vendor%g
1701s%@target_os@%$target_os%g
1702s%@build@%$build%g
1703s%@build_alias@%$build_alias%g
1704s%@build_cpu@%$build_cpu%g
1705s%@build_vendor@%$build_vendor%g
1706s%@build_os@%$build_os%g
1707s%@CC@%$CC%g
1708s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1709s%@INSTALL_DATA@%$INSTALL_DATA%g
1710s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
1711s%@HDEFINES@%$HDEFINES%g
1712s%@AR@%$AR%g
1713s%@RANLIB@%$RANLIB%g
fbda74b1 1714s%@CPP@%$CPP%g
601fb8ae 1715s%@sim_bswap@%$sim_bswap%g
295dbbe4
SG
1716s%@sim_cflags@%$sim_cflags%g
1717s%@sim_debug@%$sim_debug%g
a35e91c3 1718s%@sim_stdio@%$sim_stdio%g
295dbbe4 1719s%@sim_trace@%$sim_trace%g
0ffba68f 1720s%@sim_profile@%$sim_profile%g
9cdd2c6d
AC
1721s%@sim_endian@%$sim_endian%g
1722s%@sim_hostendian@%$sim_hostendian%g
1723s%@sim_warnings@%$sim_warnings%g
295dbbe4
SG
1724
1725CEOF
1726EOF
0ffba68f
AC
1727
1728cat >> $CONFIG_STATUS <<\EOF
1729
1730# Split the substitutions into bite-sized pieces for seds with
1731# small command number limits, like on Digital OSF/1 and HP-UX.
1732ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1733ac_file=1 # Number of current file.
1734ac_beg=1 # First line for current file.
1735ac_end=$ac_max_sed_cmds # Line after last line for current file.
1736ac_more_lines=:
1737ac_sed_cmds=""
1738while $ac_more_lines; do
1739 if test $ac_beg -gt 1; then
1740 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1741 else
1742 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1743 fi
1744 if test ! -s conftest.s$ac_file; then
1745 ac_more_lines=false
1746 rm -f conftest.s$ac_file
1747 else
1748 if test -z "$ac_sed_cmds"; then
1749 ac_sed_cmds="sed -f conftest.s$ac_file"
1750 else
1751 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1752 fi
1753 ac_file=`expr $ac_file + 1`
1754 ac_beg=$ac_end
1755 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1756 fi
1757done
1758if test -z "$ac_sed_cmds"; then
1759 ac_sed_cmds=cat
1760fi
1761EOF
1762
295dbbe4
SG
1763cat >> $CONFIG_STATUS <<EOF
1764
601fb8ae 1765CONFIG_FILES=\${CONFIG_FILES-"Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in"}
295dbbe4
SG
1766EOF
1767cat >> $CONFIG_STATUS <<\EOF
1768for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
0ffba68f 1769 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
295dbbe4 1770 case "$ac_file" in
0ffba68f 1771 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
295dbbe4
SG
1772 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1773 *) ac_file_in="${ac_file}.in" ;;
1774 esac
1775
0ffba68f 1776 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
295dbbe4
SG
1777
1778 # Remove last slash and all that follows it. Not all systems have dirname.
1779 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1780 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1781 # The file is in a subdirectory.
1782 test ! -d "$ac_dir" && mkdir "$ac_dir"
1783 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1784 # A "../" for each directory in $ac_dir_suffix.
1785 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1786 else
1787 ac_dir_suffix= ac_dots=
1788 fi
1789
1790 case "$ac_given_srcdir" in
1791 .) srcdir=.
1792 if test -z "$ac_dots"; then top_srcdir=.
1793 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1794 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1795 *) # Relative path.
1796 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1797 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1798 esac
1799
1800 case "$ac_given_INSTALL" in
1801 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1802 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1803 esac
0ffba68f 1804
295dbbe4
SG
1805 echo creating "$ac_file"
1806 rm -f "$ac_file"
1807 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1808 case "$ac_file" in
1809 *Makefile*) ac_comsub="1i\\
1810# $configure_input" ;;
1811 *) ac_comsub= ;;
1812 esac
0ffba68f
AC
1813
1814 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
295dbbe4
SG
1815 sed -e "$ac_comsub
1816s%@configure_input@%$configure_input%g
1817s%@srcdir@%$srcdir%g
1818s%@top_srcdir@%$top_srcdir%g
1819s%@INSTALL@%$INSTALL%g
0ffba68f 1820" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
295dbbe4 1821fi; done
0ffba68f 1822rm -f conftest.s*
295dbbe4
SG
1823
1824# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1825# NAME is the cpp macro being defined and VALUE is the value it is being given.
1826#
1827# ac_d sets the value in "#define NAME VALUE" lines.
1828ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1829ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1830ac_dC='\3'
1831ac_dD='%g'
1832# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1833ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1834ac_uB='\([ ]\)%\1#\2define\3'
1835ac_uC=' '
1836ac_uD='\4%g'
1837# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1838ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1839ac_eB='$%\1#\2define\3'
1840ac_eC=' '
1841ac_eD='%g'
1842
0ffba68f
AC
1843if test "${CONFIG_HEADERS+set}" != set; then
1844EOF
1845cat >> $CONFIG_STATUS <<EOF
1846 CONFIG_HEADERS="config.h:config.in"
1847EOF
1848cat >> $CONFIG_STATUS <<\EOF
1849fi
295dbbe4 1850for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
0ffba68f 1851 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
295dbbe4 1852 case "$ac_file" in
0ffba68f 1853 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
295dbbe4
SG
1854 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1855 *) ac_file_in="${ac_file}.in" ;;
1856 esac
1857
1858 echo creating $ac_file
1859
1860 rm -f conftest.frag conftest.in conftest.out
0ffba68f
AC
1861 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1862 cat $ac_file_inputs > conftest.in
295dbbe4
SG
1863
1864EOF
1865
1866# Transform confdefs.h into a sed script conftest.vals that substitutes
1867# the proper values into config.h.in to produce config.h. And first:
1868# Protect against being on the right side of a sed subst in config.status.
1869# Protect against being in an unquoted here document in config.status.
1870rm -f conftest.vals
1871cat > conftest.hdr <<\EOF
1872s/[\\&%]/\\&/g
1873s%[\\$`]%\\&%g
1874s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1875s%ac_d%ac_u%gp
1876s%ac_u%ac_e%gp
1877EOF
1878sed -n -f conftest.hdr confdefs.h > conftest.vals
1879rm -f conftest.hdr
1880
1881# This sed command replaces #undef with comments. This is necessary, for
1882# example, in the case of _POSIX_SOURCE, which is predefined and required
1883# on some systems where configure will not decide to define it.
1884cat >> conftest.vals <<\EOF
1885s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1886EOF
1887
1888# Break up conftest.vals because some shells have a limit on
1889# the size of here documents, and old seds have small limits too.
1890
1891rm -f conftest.tail
1892while :
1893do
1894 ac_lines=`grep -c . conftest.vals`
1895 # grep -c gives empty output for an empty file on some AIX systems.
1896 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1897 # Write a limited-size here document to conftest.frag.
1898 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1899 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1900 echo 'CEOF
1901 sed -f conftest.frag conftest.in > conftest.out
1902 rm -f conftest.in
1903 mv conftest.out conftest.in
1904' >> $CONFIG_STATUS
1905 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1906 rm -f conftest.vals
1907 mv conftest.tail conftest.vals
1908done
1909rm -f conftest.vals
1910
1911cat >> $CONFIG_STATUS <<\EOF
1912 rm -f conftest.frag conftest.h
1913 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1914 cat conftest.in >> conftest.h
1915 rm -f conftest.in
1916 if cmp -s $ac_file conftest.h 2>/dev/null; then
1917 echo "$ac_file is unchanged"
1918 rm -f conftest.h
1919 else
1920 # Remove last slash and all that follows it. Not all systems have dirname.
1921 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1922 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1923 # The file is in a subdirectory.
1924 test ! -d "$ac_dir" && mkdir "$ac_dir"
1925 fi
1926 rm -f $ac_file
1927 mv conftest.h $ac_file
1928 fi
1929fi; done
1930
1931EOF
1932
1933cat >> $CONFIG_STATUS <<EOF
1934ac_sources="$sim_link_files"
1935ac_dests="$sim_link_links"
1936EOF
1937
1938cat >> $CONFIG_STATUS <<\EOF
1939srcdir=$ac_given_srcdir
1940while test -n "$ac_sources"; do
1941 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
1942 set $ac_sources; ac_source=$1; shift; ac_sources=$*
1943
1944 echo "linking $srcdir/$ac_source to $ac_dest"
1945
1946 if test ! -r $srcdir/$ac_source; then
1947 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
1948 fi
1949 rm -f $ac_dest
1950
1951 # Make relative symlinks.
1952 # Remove last slash and all that follows it. Not all systems have dirname.
1953 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
1954 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
1955 # The dest file is in a subdirectory.
1956 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
1957 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
1958 # A "../" for each directory in $ac_dest_dir_suffix.
1959 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
1960 else
1961 ac_dest_dir_suffix= ac_dots=
1962 fi
1963
1964 case "$srcdir" in
1965 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
1966 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
1967 esac
1968
1969 # Make a symlink if possible; otherwise try a hard link.
1970 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
1971 ln $srcdir/$ac_source $ac_dest; then :
1972 else
1973 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
1974 fi
1975done
0ffba68f
AC
1976EOF
1977cat >> $CONFIG_STATUS <<EOF
295dbbe4 1978
0ffba68f
AC
1979EOF
1980cat >> $CONFIG_STATUS <<\EOF
601fb8ae
MM
1981case "x$CONFIG_FILES" in xMakefile*)
1982 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
1983 rm -f Makesim1.tmp Makesim2.tmp Makefile
1984 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
1985 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
1986 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
1987 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
1988 <Makefile.sim >Makefile
1989 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
1990 ;;
1991 esac
295dbbe4 1992 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
601fb8ae 1993
295dbbe4
SG
1994exit 0
1995EOF
1996chmod +x $CONFIG_STATUS
1997rm -fr confdefs* $ac_clean_files
1998test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1999
2000
This page took 0.16217 seconds and 4 git commands to generate.