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