* interp.c (sim_resume): Add missing case in big switch
[deliverable/binutils-gdb.git] / sim / mn10300 / configure
CommitLineData
295dbbe4
SG
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
08db4a65 4# Generated automatically using autoconf version 2.10
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"
295dbbe4
SG
24
25# Initialize some variables set by options.
26# The variables have the same names as the options, with
27# dashes changed to underlines.
28build=NONE
29cache_file=./config.cache
30exec_prefix=NONE
31host=NONE
32no_create=
33nonopt=NONE
34no_recursion=
35prefix=NONE
36program_prefix=NONE
37program_suffix=NONE
38program_transform_name=s,x,x,
39silent=
40site=
41srcdir=
42target=NONE
43verbose=
44x_includes=NONE
45x_libraries=NONE
46bindir='${exec_prefix}/bin'
47sbindir='${exec_prefix}/sbin'
48libexecdir='${exec_prefix}/libexec'
49datadir='${prefix}/share'
50sysconfdir='${prefix}/etc'
51sharedstatedir='${prefix}/com'
52localstatedir='${prefix}/var'
53libdir='${exec_prefix}/lib'
54includedir='${prefix}/include'
55oldincludedir='/usr/include'
56infodir='${prefix}/info'
57mandir='${prefix}/man'
58
59# Initialize some other variables.
60subdirs=
61MFLAGS= MAKEFLAGS=
295dbbe4
SG
62
63ac_prev=
64for ac_option
65do
66
67 # If the previous option needs an argument, assign it.
68 if test -n "$ac_prev"; then
69 eval "$ac_prev=\$ac_option"
70 ac_prev=
71 continue
72 fi
73
74 case "$ac_option" in
75 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
76 *) ac_optarg= ;;
77 esac
78
79 # Accept the important Cygnus configure options, so we can diagnose typos.
80
81 case "$ac_option" in
82
83 -bindir | --bindir | --bindi | --bind | --bin | --bi)
84 ac_prev=bindir ;;
85 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
86 bindir="$ac_optarg" ;;
87
88 -build | --build | --buil | --bui | --bu)
89 ac_prev=build ;;
90 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
91 build="$ac_optarg" ;;
92
93 -cache-file | --cache-file | --cache-fil | --cache-fi \
94 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
95 ac_prev=cache_file ;;
96 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
97 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
98 cache_file="$ac_optarg" ;;
99
100 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
101 ac_prev=datadir ;;
102 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
103 | --da=*)
104 datadir="$ac_optarg" ;;
105
106 -disable-* | --disable-*)
107 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
108 # Reject names that are not valid shell variable names.
109 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
110 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
111 fi
112 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
113 eval "enable_${ac_feature}=no" ;;
114
115 -enable-* | --enable-*)
116 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
117 # Reject names that are not valid shell variable names.
118 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
119 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 fi
121 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
122 case "$ac_option" in
123 *=*) ;;
124 *) ac_optarg=yes ;;
125 esac
126 eval "enable_${ac_feature}='$ac_optarg'" ;;
127
128 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
129 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
130 | --exec | --exe | --ex)
131 ac_prev=exec_prefix ;;
132 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
133 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
134 | --exec=* | --exe=* | --ex=*)
135 exec_prefix="$ac_optarg" ;;
136
137 -gas | --gas | --ga | --g)
138 # Obsolete; use --with-gas.
139 with_gas=yes ;;
140
141 -help | --help | --hel | --he)
142 # Omit some internal or obsolete options to make the list less imposing.
143 # This message is too long to be a string in the A/UX 3.1 sh.
144 cat << EOF
145Usage: configure [options] [host]
146Options: [defaults in brackets after descriptions]
147Configuration:
148 --cache-file=FILE cache test results in FILE
149 --help print this message
150 --no-create do not create output files
151 --quiet, --silent do not print \`checking...' messages
152 --version print the version of autoconf that created configure
153Directory and file names:
154 --prefix=PREFIX install architecture-independent files in PREFIX
155 [$ac_default_prefix]
156 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
157 [same as prefix]
158 --bindir=DIR user executables in DIR [EPREFIX/bin]
159 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
160 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
161 --datadir=DIR read-only architecture-independent data in DIR
162 [PREFIX/share]
163 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
164 --sharedstatedir=DIR modifiable architecture-independent data in DIR
165 [PREFIX/com]
166 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
167 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
168 --includedir=DIR C header files in DIR [PREFIX/include]
169 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
170 --infodir=DIR info documentation in DIR [PREFIX/info]
171 --mandir=DIR man documentation in DIR [PREFIX/man]
172 --srcdir=DIR find the sources in DIR [configure dir or ..]
173 --program-prefix=PREFIX prepend PREFIX to installed program names
174 --program-suffix=SUFFIX append SUFFIX to installed program names
175 --program-transform-name=PROGRAM
176 run sed PROGRAM on installed program names
177EOF
178 cat << EOF
179Host type:
180 --build=BUILD configure for building on BUILD [BUILD=HOST]
181 --host=HOST configure for HOST [guessed]
182 --target=TARGET configure for TARGET [TARGET=HOST]
183Features and packages:
184 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
185 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
186 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
187 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
188 --x-includes=DIR X include files are in DIR
189 --x-libraries=DIR X library files are in DIR
190EOF
191 if test -n "$ac_help"; then
192 echo "--enable and --with options recognized:$ac_help"
193 fi
194 exit 0 ;;
195
196 -host | --host | --hos | --ho)
197 ac_prev=host ;;
198 -host=* | --host=* | --hos=* | --ho=*)
199 host="$ac_optarg" ;;
200
201 -includedir | --includedir | --includedi | --included | --include \
202 | --includ | --inclu | --incl | --inc)
203 ac_prev=includedir ;;
204 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
205 | --includ=* | --inclu=* | --incl=* | --inc=*)
206 includedir="$ac_optarg" ;;
207
208 -infodir | --infodir | --infodi | --infod | --info | --inf)
209 ac_prev=infodir ;;
210 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
211 infodir="$ac_optarg" ;;
212
213 -libdir | --libdir | --libdi | --libd)
214 ac_prev=libdir ;;
215 -libdir=* | --libdir=* | --libdi=* | --libd=*)
216 libdir="$ac_optarg" ;;
217
218 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
219 | --libexe | --libex | --libe)
220 ac_prev=libexecdir ;;
221 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
222 | --libexe=* | --libex=* | --libe=*)
223 libexecdir="$ac_optarg" ;;
224
225 -localstatedir | --localstatedir | --localstatedi | --localstated \
226 | --localstate | --localstat | --localsta | --localst \
227 | --locals | --local | --loca | --loc | --lo)
228 ac_prev=localstatedir ;;
229 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
230 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
231 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
232 localstatedir="$ac_optarg" ;;
233
234 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
235 ac_prev=mandir ;;
236 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
237 mandir="$ac_optarg" ;;
238
239 -nfp | --nfp | --nf)
240 # Obsolete; use --without-fp.
241 with_fp=no ;;
242
243 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
244 | --no-cr | --no-c)
245 no_create=yes ;;
246
247 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
248 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
249 no_recursion=yes ;;
250
251 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
252 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
253 | --oldin | --oldi | --old | --ol | --o)
254 ac_prev=oldincludedir ;;
255 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
256 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
257 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
258 oldincludedir="$ac_optarg" ;;
259
260 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
261 ac_prev=prefix ;;
262 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
263 prefix="$ac_optarg" ;;
264
265 -program-prefix | --program-prefix | --program-prefi | --program-pref \
266 | --program-pre | --program-pr | --program-p)
267 ac_prev=program_prefix ;;
268 -program-prefix=* | --program-prefix=* | --program-prefi=* \
269 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
270 program_prefix="$ac_optarg" ;;
271
272 -program-suffix | --program-suffix | --program-suffi | --program-suff \
273 | --program-suf | --program-su | --program-s)
274 ac_prev=program_suffix ;;
275 -program-suffix=* | --program-suffix=* | --program-suffi=* \
276 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
277 program_suffix="$ac_optarg" ;;
278
279 -program-transform-name | --program-transform-name \
280 | --program-transform-nam | --program-transform-na \
281 | --program-transform-n | --program-transform- \
282 | --program-transform | --program-transfor \
283 | --program-transfo | --program-transf \
284 | --program-trans | --program-tran \
285 | --progr-tra | --program-tr | --program-t)
286 ac_prev=program_transform_name ;;
287 -program-transform-name=* | --program-transform-name=* \
288 | --program-transform-nam=* | --program-transform-na=* \
289 | --program-transform-n=* | --program-transform-=* \
290 | --program-transform=* | --program-transfor=* \
291 | --program-transfo=* | --program-transf=* \
292 | --program-trans=* | --program-tran=* \
293 | --progr-tra=* | --program-tr=* | --program-t=*)
294 program_transform_name="$ac_optarg" ;;
295
296 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
297 | -silent | --silent | --silen | --sile | --sil)
298 silent=yes ;;
299
300 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
301 ac_prev=sbindir ;;
302 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
303 | --sbi=* | --sb=*)
304 sbindir="$ac_optarg" ;;
305
306 -sharedstatedir | --sharedstatedir | --sharedstatedi \
307 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
308 | --sharedst | --shareds | --shared | --share | --shar \
309 | --sha | --sh)
310 ac_prev=sharedstatedir ;;
311 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
312 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
313 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
314 | --sha=* | --sh=*)
315 sharedstatedir="$ac_optarg" ;;
316
317 -site | --site | --sit)
318 ac_prev=site ;;
319 -site=* | --site=* | --sit=*)
320 site="$ac_optarg" ;;
321
322 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
323 ac_prev=srcdir ;;
324 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
325 srcdir="$ac_optarg" ;;
326
327 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
328 | --syscon | --sysco | --sysc | --sys | --sy)
329 ac_prev=sysconfdir ;;
330 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
331 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
332 sysconfdir="$ac_optarg" ;;
333
334 -target | --target | --targe | --targ | --tar | --ta | --t)
335 ac_prev=target ;;
336 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
337 target="$ac_optarg" ;;
338
339 -v | -verbose | --verbose | --verbos | --verbo | --verb)
340 verbose=yes ;;
341
342 -version | --version | --versio | --versi | --vers)
08db4a65 343 echo "configure generated by autoconf version 2.10"
295dbbe4
SG
344 exit 0 ;;
345
346 -with-* | --with-*)
347 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
348 # Reject names that are not valid shell variable names.
349 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
350 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
351 fi
352 ac_package=`echo $ac_package| sed 's/-/_/g'`
353 case "$ac_option" in
354 *=*) ;;
355 *) ac_optarg=yes ;;
356 esac
357 eval "with_${ac_package}='$ac_optarg'" ;;
358
359 -without-* | --without-*)
360 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
361 # Reject names that are not valid shell variable names.
362 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
363 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364 fi
365 ac_package=`echo $ac_package| sed 's/-/_/g'`
366 eval "with_${ac_package}=no" ;;
367
368 --x)
369 # Obsolete; use --with-x.
370 with_x=yes ;;
371
372 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
373 | --x-incl | --x-inc | --x-in | --x-i)
374 ac_prev=x_includes ;;
375 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
376 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
377 x_includes="$ac_optarg" ;;
378
379 -x-libraries | --x-libraries | --x-librarie | --x-librari \
380 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
381 ac_prev=x_libraries ;;
382 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
383 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
384 x_libraries="$ac_optarg" ;;
385
386 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
387 ;;
388
389 *)
390 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
391 echo "configure: warning: $ac_option: invalid host type" 1>&2
392 fi
393 if test "x$nonopt" != xNONE; then
394 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
395 fi
396 nonopt="$ac_option"
397 ;;
398
399 esac
400done
401
402if test -n "$ac_prev"; then
403 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
404fi
405
406trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
407
408# File descriptor usage:
409# 0 standard input
410# 1 file creation
411# 2 errors and warnings
412# 3 some systems may open it to /dev/tty
413# 4 used on the Kubota Titan
414# 6 checking for... messages and results
415# 5 compiler messages saved in config.log
416if test "$silent" = yes; then
417 exec 6>/dev/null
418else
419 exec 6>&1
420fi
421exec 5>./config.log
422
423echo "\
424This file contains any messages produced by compilers while
425running configure, to aid debugging if configure makes a mistake.
426" 1>&5
427
428# Strip out --no-create and --no-recursion so they do not pile up.
429# Also quote any args containing shell metacharacters.
430ac_configure_args=
431for ac_arg
432do
433 case "$ac_arg" in
434 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
435 | --no-cr | --no-c) ;;
436 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
437 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
438 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
439 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
440 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
441 esac
442done
443
444# NLS nuisances.
08db4a65
AC
445# Only set LANG and LC_ALL to C if already set.
446# These must not be set unconditionally because not all systems understand
447# e.g. LANG=C (notably SCO).
fbda74b1 448if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
08db4a65 449if test "${LANG+set}" = set; then LANG=C; export LANG; fi
295dbbe4
SG
450
451# confdefs.h avoids OS command line length limits that DEFS can exceed.
452rm -rf conftest* confdefs.h
453# AIX cpp loses on an empty file, so make sure it contains at least a newline.
454echo > confdefs.h
455
456# A filename unique to this package, relative to the directory that
457# configure is in, which we can look for to find out if srcdir is correct.
458ac_unique_file=Makefile.in
459
460# Find the source files, if location was not specified.
461if test -z "$srcdir"; then
462 ac_srcdir_defaulted=yes
463 # Try the directory containing this script, then its parent.
464 ac_prog=$0
465 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
466 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
467 srcdir=$ac_confdir
468 if test ! -r $srcdir/$ac_unique_file; then
469 srcdir=..
470 fi
471else
472 ac_srcdir_defaulted=no
473fi
474if test ! -r $srcdir/$ac_unique_file; then
475 if test "$ac_srcdir_defaulted" = yes; then
476 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
477 else
478 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
479 fi
480fi
481srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
482
483# Prefer explicitly selected file to automatically selected ones.
484if test -z "$CONFIG_SITE"; then
485 if test "x$prefix" != xNONE; then
486 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
487 else
488 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
489 fi
490fi
491for ac_site_file in $CONFIG_SITE; do
492 if test -r "$ac_site_file"; then
493 echo "loading site script $ac_site_file"
494 . "$ac_site_file"
495 fi
496done
497
498if test -r "$cache_file"; then
499 echo "loading cache $cache_file"
500 . $cache_file
501else
502 echo "creating cache $cache_file"
503 > $cache_file
504fi
505
506ac_ext=c
507# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
508ac_cpp='$CPP $CPPFLAGS'
509ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
510ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
295dbbe4
SG
511
512if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
513 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
514 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
515 ac_n= ac_c='
516' ac_t=' '
517 else
518 ac_n=-n ac_c= ac_t=
519 fi
520else
521 ac_n= ac_c='\c' ac_t=
522fi
523
524
525
fbda74b1 526echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
fbda74b1
DE
527# On Suns, sometimes $CPP names a directory.
528if test -n "$CPP" && test -d "$CPP"; then
529 CPP=
530fi
531if test -z "$CPP"; then
532if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
533 echo $ac_n "(cached) $ac_c" 1>&6
534else
535 # This must be in double quotes, not single quotes, because CPP may get
536 # substituted into the Makefile and "${CC-cc}" will confuse make.
537 CPP="${CC-cc} -E"
538 # On the NeXT, cc -E runs the code through the compiler's parser,
539 # not just through cpp.
540 cat > conftest.$ac_ext <<EOF
08db4a65 541#line 542 "configure"
fbda74b1
DE
542#include "confdefs.h"
543#include <assert.h>
544Syntax Error
545EOF
546ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
08db4a65 547{ (eval echo configure:548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
fbda74b1
DE
548ac_err=`grep -v '^ *+' conftest.out`
549if test -z "$ac_err"; then
550 :
551else
552 echo "$ac_err" >&5
fbda74b1
DE
553 rm -rf conftest*
554 CPP="${CC-cc} -E -traditional-cpp"
555 cat > conftest.$ac_ext <<EOF
08db4a65 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"
08db4a65 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
fbda74b1
DE
568 rm -rf conftest*
569 CPP=/lib/cpp
570fi
571rm -f conftest*
572fi
573rm -f conftest*
574 ac_cv_prog_CPP="$CPP"
575fi
576 CPP="$ac_cv_prog_CPP"
577else
578 ac_cv_prog_CPP="$CPP"
579fi
580echo "$ac_t""$CPP" 1>&6
581
295dbbe4
SG
582
583# autoconf.info says this should be called right after AC_INIT.
584
585
586ac_aux_dir=
587for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do
588 if test -f $ac_dir/install-sh; then
589 ac_aux_dir=$ac_dir
590 ac_install_sh="$ac_aux_dir/install-sh -c"
591 break
592 elif test -f $ac_dir/install.sh; then
593 ac_aux_dir=$ac_dir
594 ac_install_sh="$ac_aux_dir/install.sh -c"
595 break
596 fi
597done
598if test -z "$ac_aux_dir"; then
599 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
600fi
601ac_config_guess=$ac_aux_dir/config.guess
602ac_config_sub=$ac_aux_dir/config.sub
603ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
604
605
606# Do some error checking and defaulting for the host and target type.
607# The inputs are:
608# configure --host=HOST --target=TARGET --build=BUILD NONOPT
609#
610# The rules are:
611# 1. You are not allowed to specify --host, --target, and nonopt at the
612# same time.
613# 2. Host defaults to nonopt.
614# 3. If nonopt is not specified, then host defaults to the current host,
615# as determined by config.guess.
616# 4. Target and build default to nonopt.
617# 5. If nonopt is not specified, then target and build default to host.
618
619# The aliases save the names the user supplied, while $host etc.
620# will get canonicalized.
621case $host---$target---$nonopt in
622NONE---*---* | *---NONE---* | *---*---NONE) ;;
623*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
624esac
625
626
627# Make sure we can run config.sub.
628if $ac_config_sub sun4 >/dev/null 2>&1; then :
629else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
630fi
631
632echo $ac_n "checking host system type""... $ac_c" 1>&6
295dbbe4
SG
633
634host_alias=$host
635case "$host_alias" in
636NONE)
637 case $nonopt in
638 NONE)
639 if host_alias=`$ac_config_guess`; then :
640 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
641 fi ;;
642 *) host_alias=$nonopt ;;
643 esac ;;
644esac
645
646host=`$ac_config_sub $host_alias`
08db4a65
AC
647host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
648host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
649host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
295dbbe4
SG
650echo "$ac_t""$host" 1>&6
651
652echo $ac_n "checking target system type""... $ac_c" 1>&6
295dbbe4
SG
653
654target_alias=$target
655case "$target_alias" in
656NONE)
657 case $nonopt in
658 NONE) target_alias=$host_alias ;;
659 *) target_alias=$nonopt ;;
660 esac ;;
661esac
662
663target=`$ac_config_sub $target_alias`
08db4a65
AC
664target_cpu=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
665target_vendor=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
666target_os=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
295dbbe4
SG
667echo "$ac_t""$target" 1>&6
668
669echo $ac_n "checking build system type""... $ac_c" 1>&6
295dbbe4
SG
670
671build_alias=$build
672case "$build_alias" in
673NONE)
674 case $nonopt in
675 NONE) build_alias=$host_alias ;;
676 *) build_alias=$nonopt ;;
677 esac ;;
678esac
679
680build=`$ac_config_sub $build_alias`
08db4a65
AC
681build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
682build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
683build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
295dbbe4
SG
684echo "$ac_t""$build" 1>&6
685
686test "$host_alias" != "$target_alias" &&
687 test "$program_prefix$program_suffix$program_transform_name" = \
688 NONENONEs,x,x, &&
689 program_prefix=${target_alias}-
690
691if test "$program_transform_name" = s,x,x,; then
692 program_transform_name=
693else
694 # Double any \ or $. echo might interpret backslashes.
695 cat <<\EOF_SED > conftestsed
696s,\\,\\\\,g; s,\$,$$,g
697EOF_SED
698 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
699 rm -f conftestsed
700fi
701test "$program_prefix" != NONE &&
702 program_transform_name="s,^,${program_prefix},; $program_transform_name"
703# Use a double $ so make ignores it.
704test "$program_suffix" != NONE &&
705 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
706
707# sed with no file args requires a program.
708test "$program_transform_name" = "" && program_transform_name="s,x,x,"
709
710# Extract the first word of "gcc", so it can be a program name with args.
711set dummy gcc; ac_word=$2
712echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
295dbbe4
SG
713if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
714 echo $ac_n "(cached) $ac_c" 1>&6
715else
716 if test -n "$CC"; then
717 ac_cv_prog_CC="$CC" # Let the user override the test.
718else
719 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
720 for ac_dir in $PATH; do
721 test -z "$ac_dir" && ac_dir=.
722 if test -f $ac_dir/$ac_word; then
723 ac_cv_prog_CC="gcc"
724 break
725 fi
726 done
727 IFS="$ac_save_ifs"
728fi
729fi
730CC="$ac_cv_prog_CC"
731if test -n "$CC"; then
732 echo "$ac_t""$CC" 1>&6
733else
734 echo "$ac_t""no" 1>&6
735fi
736
737if test -z "$CC"; then
738 # Extract the first word of "cc", so it can be a program name with args.
739set dummy cc; ac_word=$2
740echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
295dbbe4
SG
741if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
742 echo $ac_n "(cached) $ac_c" 1>&6
743else
744 if test -n "$CC"; then
745 ac_cv_prog_CC="$CC" # Let the user override the test.
746else
747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
748 ac_prog_rejected=no
749 for ac_dir in $PATH; do
750 test -z "$ac_dir" && ac_dir=.
751 if test -f $ac_dir/$ac_word; then
752 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
753 ac_prog_rejected=yes
754 continue
755 fi
756 ac_cv_prog_CC="cc"
757 break
758 fi
759 done
760 IFS="$ac_save_ifs"
761if test $ac_prog_rejected = yes; then
762 # We found a bogon in the path, so make sure we never use it.
763 set dummy $ac_cv_prog_CC
764 shift
765 if test $# -gt 0; then
766 # We chose a different compiler from the bogus one.
767 # However, it has the same basename, so the bogon will be chosen
768 # first if we set CC to just the basename; use the full file name.
769 shift
770 set dummy "$ac_dir/$ac_word" "$@"
771 shift
772 ac_cv_prog_CC="$@"
773 fi
774fi
775fi
776fi
777CC="$ac_cv_prog_CC"
778if test -n "$CC"; then
779 echo "$ac_t""$CC" 1>&6
780else
781 echo "$ac_t""no" 1>&6
782fi
783
784 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
785fi
786
295dbbe4 787echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
295dbbe4
SG
788if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
789 echo $ac_n "(cached) $ac_c" 1>&6
790else
791 cat > conftest.c <<EOF
792#ifdef __GNUC__
793 yes;
794#endif
795EOF
08db4a65 796if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
295dbbe4
SG
797 ac_cv_prog_gcc=yes
798else
799 ac_cv_prog_gcc=no
800fi
801fi
802
803echo "$ac_t""$ac_cv_prog_gcc" 1>&6
295dbbe4
SG
804if test $ac_cv_prog_gcc = yes; then
805 GCC=yes
08db4a65
AC
806 if test "${CFLAGS+set}" != set; then
807 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
808if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
295dbbe4
SG
809 echo $ac_n "(cached) $ac_c" 1>&6
810else
811 echo 'void f(){}' > conftest.c
812if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
08db4a65 813 ac_cv_prog_gcc_g=yes
295dbbe4 814else
08db4a65 815 ac_cv_prog_gcc_g=no
295dbbe4
SG
816fi
817rm -f conftest*
818
819fi
820
08db4a65
AC
821echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
822 if test $ac_cv_prog_gcc_g = yes; then
823 CFLAGS="-g -O"
824 else
825 CFLAGS="-O"
826 fi
295dbbe4
SG
827 fi
828else
829 GCC=
830 test "${CFLAGS+set}" = set || CFLAGS="-g"
831fi
832
833# Find a good install program. We prefer a C program (faster),
834# so one script is as good as another. But avoid the broken or
835# incompatible versions:
836# SysV /etc/install, /usr/sbin/install
837# SunOS /usr/etc/install
838# IRIX /sbin/install
839# AIX /bin/install
840# AFS /usr/afsws/bin/install, which mishandles nonexistent args
841# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
842# ./install, which can be erroneously created by make from ./install.sh.
843echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
295dbbe4
SG
844if test -z "$INSTALL"; then
845if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
846 echo $ac_n "(cached) $ac_c" 1>&6
847else
08db4a65 848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
295dbbe4
SG
849 for ac_dir in $PATH; do
850 # Account for people who put trailing slashes in PATH elements.
851 case "$ac_dir/" in
852 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
853 *)
854 # OSF1 and SCO ODT 3.0 have their own names for install.
855 for ac_prog in ginstall installbsd scoinst install; do
856 if test -f $ac_dir/$ac_prog; then
857 if test $ac_prog = install &&
858 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
859 # AIX install. It has an incompatible calling convention.
860 # OSF/1 installbsd also uses dspmsg, but is usable.
861 :
862 else
863 ac_cv_path_install="$ac_dir/$ac_prog -c"
864 break 2
865 fi
866 fi
867 done
868 ;;
869 esac
870 done
08db4a65 871 IFS="$ac_save_ifs"
295dbbe4
SG
872
873fi
874 if test "${ac_cv_path_install+set}" = set; then
875 INSTALL="$ac_cv_path_install"
876 else
877 # As a last resort, use the slow shell script. We don't cache a
878 # path for INSTALL within a source directory, because that will
879 # break other packages using the cache if that directory is
880 # removed, or if the path is relative.
881 INSTALL="$ac_install_sh"
882 fi
883fi
884echo "$ac_t""$INSTALL" 1>&6
885
886# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
887# It thinks the first close brace ends the variable substitution.
888test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
889
890test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
891
295dbbe4
SG
892
893# Put a plausible default for CC_FOR_BUILD in Makefile.
295dbbe4
SG
894if test "x$cross_compiling" = "xno"; then
895 CC_FOR_BUILD='$(CC)'
896else
897 CC_FOR_BUILD=gcc
898fi
899
900
901
902
903AR=${AR-ar}
904
905# Extract the first word of "ranlib", so it can be a program name with args.
906set dummy ranlib; ac_word=$2
907echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
295dbbe4
SG
908if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
909 echo $ac_n "(cached) $ac_c" 1>&6
910else
911 if test -n "$RANLIB"; then
912 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
913else
914 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
915 for ac_dir in $PATH; do
916 test -z "$ac_dir" && ac_dir=.
917 if test -f $ac_dir/$ac_word; then
918 ac_cv_prog_RANLIB="ranlib"
919 break
920 fi
921 done
922 IFS="$ac_save_ifs"
923 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
924fi
925fi
926RANLIB="$ac_cv_prog_RANLIB"
927if test -n "$RANLIB"; then
928 echo "$ac_t""$RANLIB" 1>&6
929else
930 echo "$ac_t""no" 1>&6
931fi
932
933
fbda74b1
DE
934# Check for common headers.
935for ac_hdr in stdlib.h string.h strings.h unistd.h
936do
08db4a65 937ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
fbda74b1 938echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
fbda74b1
DE
939if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
940 echo $ac_n "(cached) $ac_c" 1>&6
941else
942 cat > conftest.$ac_ext <<EOF
08db4a65 943#line 944 "configure"
fbda74b1
DE
944#include "confdefs.h"
945#include <$ac_hdr>
946EOF
947ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
08db4a65 948{ (eval echo configure:949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
fbda74b1
DE
949ac_err=`grep -v '^ *+' conftest.out`
950if test -z "$ac_err"; then
951 rm -rf conftest*
952 eval "ac_cv_header_$ac_safe=yes"
953else
954 echo "$ac_err" >&5
fbda74b1
DE
955 rm -rf conftest*
956 eval "ac_cv_header_$ac_safe=no"
957fi
958rm -f conftest*
959fi
960if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
961 echo "$ac_t""yes" 1>&6
08db4a65 962 ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
fbda74b1
DE
963 cat >> confdefs.h <<EOF
964#define $ac_tr_hdr 1
965EOF
966
967else
968 echo "$ac_t""no" 1>&6
969fi
970done
971
972
295dbbe4
SG
973. ${srcdir}/../../bfd/configure.host
974
975
601fb8ae
MM
976
977# Check whether --enable-sim-bswap or --disable-sim-bswap was given.
978if test "${enable_sim_bswap+set}" = set; then
979 enableval="$enable_sim_bswap"
980 case "${enableval}" in
a77aa7ec 981 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
601fb8ae
MM
982 no) sim_bswap="-DWITH_BSWAP=0";;
983 *) { echo "configure: error: "--enable-sim-bswap does not take a value"" 1>&2; exit 1; }; sim_bswap="";;
984esac
985if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
986 echo "Setting bswap flags = $sim_bswap" 6>&1
987fi
988else
989 sim_bswap=""
990fi
991
992
993
295dbbe4
SG
994# Check whether --enable-sim-cflags or --disable-sim-cflags was given.
995if test "${enable_sim_cflags+set}" = set; then
996 enableval="$enable_sim_cflags"
997 case "${enableval}" in
998 yes) sim_cflags="-O2";;
999 trace) { echo "configure: error: "Please use --enable-sim-debug instead."" 1>&2; exit 1; }; sim_cflags="";;
1000 no) sim_cflags="";;
1001 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
1002esac
1003if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
1004 echo "Setting sim cflags = $sim_cflags" 6>&1
1005fi
1006else
1007 sim_cflags=""
1008fi
1009
1010
601fb8ae 1011
295dbbe4
SG
1012# Check whether --enable-sim-debug or --disable-sim-debug was given.
1013if test "${enable_sim_debug+set}" = set; then
1014 enableval="$enable_sim_debug"
1015 case "${enableval}" in
fbda74b1
DE
1016 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
1017 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
1018 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
295dbbe4
SG
1019esac
1020if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
1021 echo "Setting sim debug = $sim_debug" 6>&1
1022fi
1023else
1024 sim_debug=""
1025fi
1026
1027
601fb8ae 1028
a35e91c3
AC
1029# Check whether --enable-sim-stdio or --disable-sim-stdio was given.
1030if test "${enable_sim_stdio+set}" = set; then
1031 enableval="$enable_sim_stdio"
1032 case "${enableval}" in
1033 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
1034 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
1035 *) { echo "configure: error: "Unknown value $enableval passed to --enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio="";;
1036esac
1037if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
1038 echo "Setting stdio flags = $sim_stdio" 6>&1
1039fi
1040else
1041 sim_stdio=""
1042fi
a77aa7ec
AC
1043
1044
1045
295dbbe4
SG
1046# Check whether --enable-sim-trace or --disable-sim-trace was given.
1047if test "${enable_sim_trace+set}" = set; then
1048 enableval="$enable_sim_trace"
1049 case "${enableval}" in
a77aa7ec
AC
1050 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=1";;
1051 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
1052 *) sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
295dbbe4
SG
1053esac
1054if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
1055 echo "Setting sim trace = $sim_trace" 6>&1
1056fi
1057else
1058 sim_trace=""
1059fi
1060
1061
295dbbe4 1062
08db4a65
AC
1063echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1064if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1065 echo $ac_n "(cached) $ac_c" 1>&6
1066else
1067 cat > conftest.$ac_ext <<EOF
1068#line 1069 "configure"
1069#include "confdefs.h"
1070#include <sys/types.h>
1071#include <signal.h>
1072#ifdef signal
1073#undef signal
1074#endif
1075#ifdef __cplusplus
1076extern "C" void (*signal (int, void (*)(int)))(int);
1077#else
1078void (*signal ()) ();
1079#endif
1080
1081int main() { return 0; }
1082int t() {
1083int i;
1084; return 0; }
1085EOF
1086if { (eval echo configure:1087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1087 rm -rf conftest*
1088 ac_cv_type_signal=void
1089else
1090 rm -rf conftest*
1091 ac_cv_type_signal=int
1092fi
1093rm -f conftest*
1094
1095fi
1096
1097echo "$ac_t""$ac_cv_type_signal" 1>&6
1098cat >> confdefs.h <<EOF
1099#define RETSIGTYPE $ac_cv_type_signal
1100EOF
1101
1102
1103
1104
295dbbe4
SG
1105sim_link_files=
1106sim_link_links=
1107
1108sim_link_links=tconfig.h
1109if test -f ${srcdir}/tconfig.in
1110then
1111 sim_link_files=tconfig.in
1112else
1113 sim_link_files=../common/tconfig.in
1114fi
1115
601fb8ae 1116# targ-vals.def points to the libc macro description file.
295dbbe4 1117case "${target}" in
601fb8ae 1118*-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
295dbbe4 1119esac
601fb8ae
MM
1120sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
1121sim_link_links="${sim_link_links} targ-vals.def"
295dbbe4
SG
1122
1123
1124
295dbbe4
SG
1125for ac_hdr in unistd.h
1126do
08db4a65 1127ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
295dbbe4 1128echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
295dbbe4
SG
1129if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1130 echo $ac_n "(cached) $ac_c" 1>&6
1131else
1132 cat > conftest.$ac_ext <<EOF
08db4a65 1133#line 1134 "configure"
295dbbe4
SG
1134#include "confdefs.h"
1135#include <$ac_hdr>
1136EOF
1137ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
08db4a65 1138{ (eval echo configure:1139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
295dbbe4
SG
1139ac_err=`grep -v '^ *+' conftest.out`
1140if test -z "$ac_err"; then
1141 rm -rf conftest*
1142 eval "ac_cv_header_$ac_safe=yes"
1143else
1144 echo "$ac_err" >&5
295dbbe4
SG
1145 rm -rf conftest*
1146 eval "ac_cv_header_$ac_safe=no"
1147fi
1148rm -f conftest*
1149fi
1150if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1151 echo "$ac_t""yes" 1>&6
08db4a65 1152 ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
295dbbe4
SG
1153 cat >> confdefs.h <<EOF
1154#define $ac_tr_hdr 1
1155EOF
1156
1157else
1158 echo "$ac_t""no" 1>&6
1159fi
1160done
1161
1162
1163
1164
601fb8ae 1165trap '' 1 2 15
295dbbe4
SG
1166cat > confcache <<\EOF
1167# This file is a shell script that caches the results of configure
1168# tests run on this system so they can be shared between configure
1169# scripts and configure runs. It is not useful on other systems.
1170# If it contains results you don't want to keep, you may remove or edit it.
1171#
1172# By default, configure uses ./config.cache as the cache file,
1173# creating it if it does not exist already. You can give configure
1174# the --cache-file=FILE option to use a different cache file; that is
1175# what configure does when it calls configure scripts in
1176# subdirectories, so they share the cache.
1177# Giving --cache-file=/dev/null disables caching, for debugging configure.
1178# config.status only pays attention to the cache file if you give it the
1179# --recheck option to rerun configure.
1180#
1181EOF
295dbbe4
SG
1182# Ultrix sh set writes to stderr and can't be redirected directly,
1183# and sets the high bit in the cache file unless we assign to the vars.
1184(set) 2>&1 |
08db4a65
AC
1185 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1186 >> confcache
295dbbe4
SG
1187if cmp -s $cache_file confcache; then
1188 :
1189else
1190 if test -w $cache_file; then
1191 echo "updating cache $cache_file"
1192 cat confcache > $cache_file
1193 else
1194 echo "not updating unwritable cache $cache_file"
1195 fi
1196fi
1197rm -f confcache
1198
1199trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1200
1201test "x$prefix" = xNONE && prefix=$ac_default_prefix
1202# Let make expand exec_prefix.
1203test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1204
1205# Any assignment to VPATH causes Sun make to only execute
1206# the first set of double-colon rules, so remove it if not needed.
1207# If there is a colon in the path, we need to keep it.
1208if test "x$srcdir" = x.; then
1209 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1210fi
1211
1212trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1213
1214DEFS=-DHAVE_CONFIG_H
1215
1216# Without the "./", some shells look in PATH for config.status.
1217: ${CONFIG_STATUS=./config.status}
1218
1219echo creating $CONFIG_STATUS
1220rm -f $CONFIG_STATUS
1221cat > $CONFIG_STATUS <<EOF
1222#! /bin/sh
1223# Generated automatically by configure.
1224# Run this file to recreate the current configuration.
1225# This directory was configured as follows,
1226# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1227#
1228# $0 $ac_configure_args
1229#
1230# Compiler output produced by configure, useful for debugging
1231# configure, is in ./config.log if it exists.
1232
1233ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1234for ac_option
1235do
1236 case "\$ac_option" in
1237 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1238 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1239 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1240 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
08db4a65 1241 echo "$CONFIG_STATUS generated by autoconf version 2.10"
295dbbe4
SG
1242 exit 0 ;;
1243 -help | --help | --hel | --he | --h)
1244 echo "\$ac_cs_usage"; exit 0 ;;
1245 *) echo "\$ac_cs_usage"; exit 1 ;;
1246 esac
1247done
1248
1249ac_given_srcdir=$srcdir
1250ac_given_INSTALL="$INSTALL"
1251
601fb8ae 1252trap '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
1253EOF
1254cat >> $CONFIG_STATUS <<EOF
1255
1256# Protect against being on the right side of a sed subst in config.status.
1257sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1258 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1259$ac_vpsub
1260$extrasub
1261s%@CFLAGS@%$CFLAGS%g
1262s%@CPPFLAGS@%$CPPFLAGS%g
1263s%@CXXFLAGS@%$CXXFLAGS%g
1264s%@DEFS@%$DEFS%g
1265s%@LDFLAGS@%$LDFLAGS%g
1266s%@LIBS@%$LIBS%g
1267s%@exec_prefix@%$exec_prefix%g
1268s%@prefix@%$prefix%g
1269s%@program_transform_name@%$program_transform_name%g
1270s%@bindir@%$bindir%g
1271s%@sbindir@%$sbindir%g
1272s%@libexecdir@%$libexecdir%g
1273s%@datadir@%$datadir%g
1274s%@sysconfdir@%$sysconfdir%g
1275s%@sharedstatedir@%$sharedstatedir%g
1276s%@localstatedir@%$localstatedir%g
1277s%@libdir@%$libdir%g
1278s%@includedir@%$includedir%g
1279s%@oldincludedir@%$oldincludedir%g
1280s%@infodir@%$infodir%g
1281s%@mandir@%$mandir%g
1282s%@host@%$host%g
1283s%@host_alias@%$host_alias%g
1284s%@host_cpu@%$host_cpu%g
1285s%@host_vendor@%$host_vendor%g
1286s%@host_os@%$host_os%g
1287s%@target@%$target%g
1288s%@target_alias@%$target_alias%g
1289s%@target_cpu@%$target_cpu%g
1290s%@target_vendor@%$target_vendor%g
1291s%@target_os@%$target_os%g
1292s%@build@%$build%g
1293s%@build_alias@%$build_alias%g
1294s%@build_cpu@%$build_cpu%g
1295s%@build_vendor@%$build_vendor%g
1296s%@build_os@%$build_os%g
1297s%@CC@%$CC%g
1298s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1299s%@INSTALL_DATA@%$INSTALL_DATA%g
1300s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
1301s%@HDEFINES@%$HDEFINES%g
1302s%@AR@%$AR%g
1303s%@RANLIB@%$RANLIB%g
fbda74b1 1304s%@CPP@%$CPP%g
601fb8ae 1305s%@sim_bswap@%$sim_bswap%g
295dbbe4
SG
1306s%@sim_cflags@%$sim_cflags%g
1307s%@sim_debug@%$sim_debug%g
a35e91c3 1308s%@sim_stdio@%$sim_stdio%g
295dbbe4 1309s%@sim_trace@%$sim_trace%g
295dbbe4
SG
1310
1311CEOF
1312EOF
295dbbe4
SG
1313cat >> $CONFIG_STATUS <<EOF
1314
601fb8ae 1315CONFIG_FILES=\${CONFIG_FILES-"Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in"}
295dbbe4
SG
1316EOF
1317cat >> $CONFIG_STATUS <<\EOF
1318for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
08db4a65 1319 # Support "outfile[:infile]", defaulting infile="outfile.in".
295dbbe4 1320 case "$ac_file" in
08db4a65 1321 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
295dbbe4
SG
1322 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1323 *) ac_file_in="${ac_file}.in" ;;
1324 esac
1325
08db4a65 1326 # Adjust relative srcdir, etc. for subdirectories.
295dbbe4
SG
1327
1328 # Remove last slash and all that follows it. Not all systems have dirname.
1329 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1330 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1331 # The file is in a subdirectory.
1332 test ! -d "$ac_dir" && mkdir "$ac_dir"
1333 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1334 # A "../" for each directory in $ac_dir_suffix.
1335 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1336 else
1337 ac_dir_suffix= ac_dots=
1338 fi
1339
1340 case "$ac_given_srcdir" in
1341 .) srcdir=.
1342 if test -z "$ac_dots"; then top_srcdir=.
1343 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1344 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1345 *) # Relative path.
1346 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1347 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1348 esac
1349
1350 case "$ac_given_INSTALL" in
1351 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1352 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1353 esac
295dbbe4
SG
1354 echo creating "$ac_file"
1355 rm -f "$ac_file"
1356 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1357 case "$ac_file" in
1358 *Makefile*) ac_comsub="1i\\
1359# $configure_input" ;;
1360 *) ac_comsub= ;;
1361 esac
295dbbe4
SG
1362 sed -e "$ac_comsub
1363s%@configure_input@%$configure_input%g
1364s%@srcdir@%$srcdir%g
1365s%@top_srcdir@%$top_srcdir%g
1366s%@INSTALL@%$INSTALL%g
08db4a65 1367" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
295dbbe4 1368fi; done
08db4a65 1369rm -f conftest.subs
295dbbe4
SG
1370
1371# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1372# NAME is the cpp macro being defined and VALUE is the value it is being given.
1373#
1374# ac_d sets the value in "#define NAME VALUE" lines.
1375ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1376ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1377ac_dC='\3'
1378ac_dD='%g'
1379# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1380ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1381ac_uB='\([ ]\)%\1#\2define\3'
1382ac_uC=' '
1383ac_uD='\4%g'
1384# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1385ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1386ac_eB='$%\1#\2define\3'
1387ac_eC=' '
1388ac_eD='%g'
1389
08db4a65 1390CONFIG_HEADERS=${CONFIG_HEADERS-"config.h:config.in"}
295dbbe4 1391for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
08db4a65 1392 # Support "outfile[:infile]", defaulting infile="outfile.in".
295dbbe4 1393 case "$ac_file" in
08db4a65 1394 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
295dbbe4
SG
1395 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1396 *) ac_file_in="${ac_file}.in" ;;
1397 esac
1398
1399 echo creating $ac_file
1400
1401 rm -f conftest.frag conftest.in conftest.out
08db4a65 1402 cp $ac_given_srcdir/$ac_file_in conftest.in
295dbbe4
SG
1403
1404EOF
1405
1406# Transform confdefs.h into a sed script conftest.vals that substitutes
1407# the proper values into config.h.in to produce config.h. And first:
1408# Protect against being on the right side of a sed subst in config.status.
1409# Protect against being in an unquoted here document in config.status.
1410rm -f conftest.vals
1411cat > conftest.hdr <<\EOF
1412s/[\\&%]/\\&/g
1413s%[\\$`]%\\&%g
1414s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1415s%ac_d%ac_u%gp
1416s%ac_u%ac_e%gp
1417EOF
1418sed -n -f conftest.hdr confdefs.h > conftest.vals
1419rm -f conftest.hdr
1420
1421# This sed command replaces #undef with comments. This is necessary, for
1422# example, in the case of _POSIX_SOURCE, which is predefined and required
1423# on some systems where configure will not decide to define it.
1424cat >> conftest.vals <<\EOF
1425s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1426EOF
1427
1428# Break up conftest.vals because some shells have a limit on
1429# the size of here documents, and old seds have small limits too.
08db4a65
AC
1430# Maximum number of lines to put in a single here document.
1431ac_max_here_lines=12
295dbbe4
SG
1432
1433rm -f conftest.tail
1434while :
1435do
1436 ac_lines=`grep -c . conftest.vals`
1437 # grep -c gives empty output for an empty file on some AIX systems.
1438 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1439 # Write a limited-size here document to conftest.frag.
1440 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1441 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1442 echo 'CEOF
1443 sed -f conftest.frag conftest.in > conftest.out
1444 rm -f conftest.in
1445 mv conftest.out conftest.in
1446' >> $CONFIG_STATUS
1447 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1448 rm -f conftest.vals
1449 mv conftest.tail conftest.vals
1450done
1451rm -f conftest.vals
1452
1453cat >> $CONFIG_STATUS <<\EOF
1454 rm -f conftest.frag conftest.h
1455 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1456 cat conftest.in >> conftest.h
1457 rm -f conftest.in
1458 if cmp -s $ac_file conftest.h 2>/dev/null; then
1459 echo "$ac_file is unchanged"
1460 rm -f conftest.h
1461 else
1462 # Remove last slash and all that follows it. Not all systems have dirname.
1463 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1464 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1465 # The file is in a subdirectory.
1466 test ! -d "$ac_dir" && mkdir "$ac_dir"
1467 fi
1468 rm -f $ac_file
1469 mv conftest.h $ac_file
1470 fi
1471fi; done
1472
1473EOF
1474
1475cat >> $CONFIG_STATUS <<EOF
1476ac_sources="$sim_link_files"
1477ac_dests="$sim_link_links"
1478EOF
1479
1480cat >> $CONFIG_STATUS <<\EOF
1481srcdir=$ac_given_srcdir
1482while test -n "$ac_sources"; do
1483 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
1484 set $ac_sources; ac_source=$1; shift; ac_sources=$*
1485
1486 echo "linking $srcdir/$ac_source to $ac_dest"
1487
1488 if test ! -r $srcdir/$ac_source; then
1489 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
1490 fi
1491 rm -f $ac_dest
1492
1493 # Make relative symlinks.
1494 # Remove last slash and all that follows it. Not all systems have dirname.
1495 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
1496 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
1497 # The dest file is in a subdirectory.
1498 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
1499 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
1500 # A "../" for each directory in $ac_dest_dir_suffix.
1501 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
1502 else
1503 ac_dest_dir_suffix= ac_dots=
1504 fi
1505
1506 case "$srcdir" in
1507 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
1508 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
1509 esac
1510
1511 # Make a symlink if possible; otherwise try a hard link.
1512 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
1513 ln $srcdir/$ac_source $ac_dest; then :
1514 else
1515 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
1516 fi
1517done
295dbbe4 1518
601fb8ae
MM
1519case "x$CONFIG_FILES" in xMakefile*)
1520 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
1521 rm -f Makesim1.tmp Makesim2.tmp Makefile
1522 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
1523 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
1524 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
1525 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
1526 <Makefile.sim >Makefile
1527 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
1528 ;;
1529 esac
295dbbe4 1530 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
601fb8ae 1531
295dbbe4
SG
1532exit 0
1533EOF
1534chmod +x $CONFIG_STATUS
1535rm -fr confdefs* $ac_clean_files
1536test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1537
1538
This page took 0.095468 seconds and 4 git commands to generate.