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