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