2002-07-30 Chris Demetriou <cgd@broadcom.com>
[deliverable/binutils-gdb.git] / sim / mips / configure
CommitLineData
c906108c
SS
1#! /bin/sh
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45sim_inline="-DDEFAULT_INLINE=0"
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
d4f3574e 79
c906108c
SS
80
81
82# This file is derived from `gettext.m4'. The difference is that the
83# included macros assume Cygnus-style source and build trees.
84
85# Macro to add for using GNU gettext.
86# Ulrich Drepper <drepper@cygnus.com>, 1995.
87#
88# This file file be copied and used freely without restrictions. It can
89# be used in projects which are not available under the GNU Public License
90# but which still want to provide support for the GNU gettext functionality.
91# Please note that the actual code is *not* freely available.
92
93# serial 3
94
95
96
97
98
99# Search path for a program which passes the given test.
100# Ulrich Drepper <drepper@cygnus.com>, 1996.
101#
102# This file file be copied and used freely without restrictions. It can
103# be used in projects which are not available under the GNU Public License
104# but which still want to provide support for the GNU gettext functionality.
105# Please note that the actual code is *not* freely available.
106
107# serial 1
108
109
110
111# Check whether LC_MESSAGES is available in <locale.h>.
112# Ulrich Drepper <drepper@cygnus.com>, 1995.
113#
114# This file file be copied and used freely without restrictions. It can
115# be used in projects which are not available under the GNU Public License
116# but which still want to provide support for the GNU gettext functionality.
117# Please note that the actual code is *not* freely available.
118
119# serial 1
120
121
122
c906108c
SS
123
124
125
126# Guess values for system-dependent variables and create Makefiles.
7a292a7a 127# Generated automatically using autoconf version 2.13
c906108c
SS
128# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
129#
130# This configure script is free software; the Free Software Foundation
131# gives unlimited permission to copy, distribute and modify it.
132
133# Defaults:
134ac_help=
135ac_default_prefix=/usr/local
136# Any additions from configure.in:
137ac_help="$ac_help
138 --disable-nls do not use Native Language Support"
139ac_help="$ac_help
140 --with-included-gettext use the GNU gettext library included here"
141ac_help="$ac_help
142 --enable-maintainer-mode Enable developer functionality."
143ac_help="$ac_help
144 --enable-sim-bswap Use Host specific BSWAP instruction."
145ac_help="$ac_help
146 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator"
147ac_help="$ac_help
148 --enable-sim-debug=opts Enable debugging flags"
149ac_help="$ac_help
150 --enable-sim-stdio Specify whether to use stdio for console input/output."
151ac_help="$ac_help
152 --enable-sim-trace=opts Enable tracing flags"
153ac_help="$ac_help
154 --enable-sim-profile=opts Enable profiling flags"
155ac_help="$ac_help
156 --enable-sim-inline=inlines Specify which functions should be inlined."
157ac_help="$ac_help
158 --enable-sim-alignment=align Specify strict, nonstrict or forced alignment of memory accesses."
159ac_help="$ac_help
160 --enable-sim-hostendian=end Specify host byte endian orientation."
161ac_help="$ac_help
c8cca39f
AC
162 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
163ac_help="$ac_help
164 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings if gcc is used"
c906108c
SS
165ac_help="$ac_help
166 --enable-sim-endian=endian Specify target byte endian orientation."
167ac_help="$ac_help
168 --enable-sim-bitsize=N Specify target bitsize (32 or 64)."
169ac_help="$ac_help
170 --enable-sim-float Specify that the target processor has floating point hardware."
171ac_help="$ac_help
172 --enable-sim-smp=n Specify number of processors to configure for (default ${default_sim_smp})."
173ac_help="$ac_help
174 --enable-sim-hardware=LIST Specify the hardware to be included in the build."
175ac_help="$ac_help
176 --with-x use the X Window System"
c906108c
SS
177
178# Initialize some variables set by options.
179# The variables have the same names as the options, with
180# dashes changed to underlines.
181build=NONE
182cache_file=./config.cache
183exec_prefix=NONE
184host=NONE
185no_create=
186nonopt=NONE
187no_recursion=
188prefix=NONE
189program_prefix=NONE
190program_suffix=NONE
191program_transform_name=s,x,x,
192silent=
193site=
e514a9d6 194sitefile=
c906108c
SS
195srcdir=
196target=NONE
197verbose=
198x_includes=NONE
199x_libraries=NONE
200bindir='${exec_prefix}/bin'
201sbindir='${exec_prefix}/sbin'
202libexecdir='${exec_prefix}/libexec'
203datadir='${prefix}/share'
204sysconfdir='${prefix}/etc'
205sharedstatedir='${prefix}/com'
206localstatedir='${prefix}/var'
207libdir='${exec_prefix}/lib'
208includedir='${prefix}/include'
209oldincludedir='/usr/include'
210infodir='${prefix}/info'
211mandir='${prefix}/man'
212
213# Initialize some other variables.
214subdirs=
215MFLAGS= MAKEFLAGS=
216SHELL=${CONFIG_SHELL-/bin/sh}
217# Maximum number of lines to put in a shell here document.
218ac_max_here_lines=12
219
220ac_prev=
221for ac_option
222do
223
224 # If the previous option needs an argument, assign it.
225 if test -n "$ac_prev"; then
226 eval "$ac_prev=\$ac_option"
227 ac_prev=
228 continue
229 fi
230
231 case "$ac_option" in
232 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
233 *) ac_optarg= ;;
234 esac
235
236 # Accept the important Cygnus configure options, so we can diagnose typos.
237
238 case "$ac_option" in
239
240 -bindir | --bindir | --bindi | --bind | --bin | --bi)
241 ac_prev=bindir ;;
242 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
243 bindir="$ac_optarg" ;;
244
245 -build | --build | --buil | --bui | --bu)
246 ac_prev=build ;;
247 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
248 build="$ac_optarg" ;;
249
250 -cache-file | --cache-file | --cache-fil | --cache-fi \
251 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
252 ac_prev=cache_file ;;
253 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
254 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
255 cache_file="$ac_optarg" ;;
256
257 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
258 ac_prev=datadir ;;
259 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
260 | --da=*)
261 datadir="$ac_optarg" ;;
262
263 -disable-* | --disable-*)
264 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
265 # Reject names that are not valid shell variable names.
266 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
267 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
268 fi
269 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
270 eval "enable_${ac_feature}=no" ;;
271
272 -enable-* | --enable-*)
273 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
274 # Reject names that are not valid shell variable names.
275 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
276 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
277 fi
278 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
279 case "$ac_option" in
280 *=*) ;;
281 *) ac_optarg=yes ;;
282 esac
283 eval "enable_${ac_feature}='$ac_optarg'" ;;
284
285 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
286 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
287 | --exec | --exe | --ex)
288 ac_prev=exec_prefix ;;
289 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
290 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
291 | --exec=* | --exe=* | --ex=*)
292 exec_prefix="$ac_optarg" ;;
293
294 -gas | --gas | --ga | --g)
295 # Obsolete; use --with-gas.
296 with_gas=yes ;;
297
298 -help | --help | --hel | --he)
299 # Omit some internal or obsolete options to make the list less imposing.
300 # This message is too long to be a string in the A/UX 3.1 sh.
301 cat << EOF
302Usage: configure [options] [host]
303Options: [defaults in brackets after descriptions]
304Configuration:
305 --cache-file=FILE cache test results in FILE
306 --help print this message
307 --no-create do not create output files
308 --quiet, --silent do not print \`checking...' messages
e514a9d6 309 --site-file=FILE use FILE as the site file
c906108c
SS
310 --version print the version of autoconf that created configure
311Directory and file names:
312 --prefix=PREFIX install architecture-independent files in PREFIX
313 [$ac_default_prefix]
314 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
315 [same as prefix]
316 --bindir=DIR user executables in DIR [EPREFIX/bin]
317 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
318 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
319 --datadir=DIR read-only architecture-independent data in DIR
320 [PREFIX/share]
321 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
322 --sharedstatedir=DIR modifiable architecture-independent data in DIR
323 [PREFIX/com]
324 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
325 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
326 --includedir=DIR C header files in DIR [PREFIX/include]
327 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
328 --infodir=DIR info documentation in DIR [PREFIX/info]
329 --mandir=DIR man documentation in DIR [PREFIX/man]
330 --srcdir=DIR find the sources in DIR [configure dir or ..]
331 --program-prefix=PREFIX prepend PREFIX to installed program names
332 --program-suffix=SUFFIX append SUFFIX to installed program names
333 --program-transform-name=PROGRAM
334 run sed PROGRAM on installed program names
335EOF
336 cat << EOF
337Host type:
338 --build=BUILD configure for building on BUILD [BUILD=HOST]
339 --host=HOST configure for HOST [guessed]
340 --target=TARGET configure for TARGET [TARGET=HOST]
341Features and packages:
342 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
343 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
344 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
345 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
346 --x-includes=DIR X include files are in DIR
347 --x-libraries=DIR X library files are in DIR
348EOF
349 if test -n "$ac_help"; then
350 echo "--enable and --with options recognized:$ac_help"
351 fi
352 exit 0 ;;
353
354 -host | --host | --hos | --ho)
355 ac_prev=host ;;
356 -host=* | --host=* | --hos=* | --ho=*)
357 host="$ac_optarg" ;;
358
359 -includedir | --includedir | --includedi | --included | --include \
360 | --includ | --inclu | --incl | --inc)
361 ac_prev=includedir ;;
362 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
363 | --includ=* | --inclu=* | --incl=* | --inc=*)
364 includedir="$ac_optarg" ;;
365
366 -infodir | --infodir | --infodi | --infod | --info | --inf)
367 ac_prev=infodir ;;
368 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
369 infodir="$ac_optarg" ;;
370
371 -libdir | --libdir | --libdi | --libd)
372 ac_prev=libdir ;;
373 -libdir=* | --libdir=* | --libdi=* | --libd=*)
374 libdir="$ac_optarg" ;;
375
376 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
377 | --libexe | --libex | --libe)
378 ac_prev=libexecdir ;;
379 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
380 | --libexe=* | --libex=* | --libe=*)
381 libexecdir="$ac_optarg" ;;
382
383 -localstatedir | --localstatedir | --localstatedi | --localstated \
384 | --localstate | --localstat | --localsta | --localst \
385 | --locals | --local | --loca | --loc | --lo)
386 ac_prev=localstatedir ;;
387 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
388 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
389 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
390 localstatedir="$ac_optarg" ;;
391
392 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
393 ac_prev=mandir ;;
394 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
395 mandir="$ac_optarg" ;;
396
397 -nfp | --nfp | --nf)
398 # Obsolete; use --without-fp.
399 with_fp=no ;;
400
401 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
402 | --no-cr | --no-c)
403 no_create=yes ;;
404
405 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
406 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
407 no_recursion=yes ;;
408
409 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
410 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
411 | --oldin | --oldi | --old | --ol | --o)
412 ac_prev=oldincludedir ;;
413 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
414 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
415 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
416 oldincludedir="$ac_optarg" ;;
417
418 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
419 ac_prev=prefix ;;
420 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
421 prefix="$ac_optarg" ;;
422
423 -program-prefix | --program-prefix | --program-prefi | --program-pref \
424 | --program-pre | --program-pr | --program-p)
425 ac_prev=program_prefix ;;
426 -program-prefix=* | --program-prefix=* | --program-prefi=* \
427 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
428 program_prefix="$ac_optarg" ;;
429
430 -program-suffix | --program-suffix | --program-suffi | --program-suff \
431 | --program-suf | --program-su | --program-s)
432 ac_prev=program_suffix ;;
433 -program-suffix=* | --program-suffix=* | --program-suffi=* \
434 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
435 program_suffix="$ac_optarg" ;;
436
437 -program-transform-name | --program-transform-name \
438 | --program-transform-nam | --program-transform-na \
439 | --program-transform-n | --program-transform- \
440 | --program-transform | --program-transfor \
441 | --program-transfo | --program-transf \
442 | --program-trans | --program-tran \
443 | --progr-tra | --program-tr | --program-t)
444 ac_prev=program_transform_name ;;
445 -program-transform-name=* | --program-transform-name=* \
446 | --program-transform-nam=* | --program-transform-na=* \
447 | --program-transform-n=* | --program-transform-=* \
448 | --program-transform=* | --program-transfor=* \
449 | --program-transfo=* | --program-transf=* \
450 | --program-trans=* | --program-tran=* \
451 | --progr-tra=* | --program-tr=* | --program-t=*)
452 program_transform_name="$ac_optarg" ;;
453
454 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
455 | -silent | --silent | --silen | --sile | --sil)
456 silent=yes ;;
457
458 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
459 ac_prev=sbindir ;;
460 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
461 | --sbi=* | --sb=*)
462 sbindir="$ac_optarg" ;;
463
464 -sharedstatedir | --sharedstatedir | --sharedstatedi \
465 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
466 | --sharedst | --shareds | --shared | --share | --shar \
467 | --sha | --sh)
468 ac_prev=sharedstatedir ;;
469 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
470 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
471 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
472 | --sha=* | --sh=*)
473 sharedstatedir="$ac_optarg" ;;
474
475 -site | --site | --sit)
476 ac_prev=site ;;
477 -site=* | --site=* | --sit=*)
478 site="$ac_optarg" ;;
479
e514a9d6
JM
480 -site-file | --site-file | --site-fil | --site-fi | --site-f)
481 ac_prev=sitefile ;;
482 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
483 sitefile="$ac_optarg" ;;
484
c906108c
SS
485 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
486 ac_prev=srcdir ;;
487 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
488 srcdir="$ac_optarg" ;;
489
490 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
491 | --syscon | --sysco | --sysc | --sys | --sy)
492 ac_prev=sysconfdir ;;
493 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
494 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
495 sysconfdir="$ac_optarg" ;;
496
497 -target | --target | --targe | --targ | --tar | --ta | --t)
498 ac_prev=target ;;
499 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
500 target="$ac_optarg" ;;
501
502 -v | -verbose | --verbose | --verbos | --verbo | --verb)
503 verbose=yes ;;
504
505 -version | --version | --versio | --versi | --vers)
7a292a7a 506 echo "configure generated by autoconf version 2.13"
c906108c
SS
507 exit 0 ;;
508
509 -with-* | --with-*)
510 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
511 # Reject names that are not valid shell variable names.
512 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
513 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
514 fi
515 ac_package=`echo $ac_package| sed 's/-/_/g'`
516 case "$ac_option" in
517 *=*) ;;
518 *) ac_optarg=yes ;;
519 esac
520 eval "with_${ac_package}='$ac_optarg'" ;;
521
522 -without-* | --without-*)
523 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
524 # Reject names that are not valid shell variable names.
525 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
526 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
527 fi
528 ac_package=`echo $ac_package| sed 's/-/_/g'`
529 eval "with_${ac_package}=no" ;;
530
531 --x)
532 # Obsolete; use --with-x.
533 with_x=yes ;;
534
535 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
536 | --x-incl | --x-inc | --x-in | --x-i)
537 ac_prev=x_includes ;;
538 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
539 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
540 x_includes="$ac_optarg" ;;
541
542 -x-libraries | --x-libraries | --x-librarie | --x-librari \
543 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
544 ac_prev=x_libraries ;;
545 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
546 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
547 x_libraries="$ac_optarg" ;;
548
549 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
550 ;;
551
552 *)
553 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
554 echo "configure: warning: $ac_option: invalid host type" 1>&2
555 fi
556 if test "x$nonopt" != xNONE; then
557 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
558 fi
559 nonopt="$ac_option"
560 ;;
561
562 esac
563done
564
565if test -n "$ac_prev"; then
566 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
567fi
568
569trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
570
571# File descriptor usage:
572# 0 standard input
573# 1 file creation
574# 2 errors and warnings
575# 3 some systems may open it to /dev/tty
576# 4 used on the Kubota Titan
577# 6 checking for... messages and results
578# 5 compiler messages saved in config.log
579if test "$silent" = yes; then
580 exec 6>/dev/null
581else
582 exec 6>&1
583fi
584exec 5>./config.log
585
586echo "\
587This file contains any messages produced by compilers while
588running configure, to aid debugging if configure makes a mistake.
589" 1>&5
590
591# Strip out --no-create and --no-recursion so they do not pile up.
592# Also quote any args containing shell metacharacters.
593ac_configure_args=
594for ac_arg
595do
596 case "$ac_arg" in
597 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
598 | --no-cr | --no-c) ;;
599 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
600 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
601 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
602 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
603 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
604 esac
605done
606
607# NLS nuisances.
608# Only set these to C if already set. These must not be set unconditionally
609# because not all systems understand e.g. LANG=C (notably SCO).
610# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
611# Non-C LC_CTYPE values break the ctype check.
612if test "${LANG+set}" = set; then LANG=C; export LANG; fi
613if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
614if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
615if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
616
617# confdefs.h avoids OS command line length limits that DEFS can exceed.
618rm -rf conftest* confdefs.h
619# AIX cpp loses on an empty file, so make sure it contains at least a newline.
620echo > confdefs.h
621
622# A filename unique to this package, relative to the directory that
623# configure is in, which we can look for to find out if srcdir is correct.
624ac_unique_file=Makefile.in
625
626# Find the source files, if location was not specified.
627if test -z "$srcdir"; then
628 ac_srcdir_defaulted=yes
629 # Try the directory containing this script, then its parent.
630 ac_prog=$0
631 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
632 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
633 srcdir=$ac_confdir
634 if test ! -r $srcdir/$ac_unique_file; then
635 srcdir=..
636 fi
637else
638 ac_srcdir_defaulted=no
639fi
640if test ! -r $srcdir/$ac_unique_file; then
641 if test "$ac_srcdir_defaulted" = yes; then
642 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
643 else
644 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
645 fi
646fi
647srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
648
649# Prefer explicitly selected file to automatically selected ones.
e514a9d6
JM
650if test -z "$sitefile"; then
651 if test -z "$CONFIG_SITE"; then
652 if test "x$prefix" != xNONE; then
653 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
654 else
655 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
656 fi
c906108c 657 fi
e514a9d6
JM
658else
659 CONFIG_SITE="$sitefile"
c906108c
SS
660fi
661for ac_site_file in $CONFIG_SITE; do
662 if test -r "$ac_site_file"; then
663 echo "loading site script $ac_site_file"
664 . "$ac_site_file"
665 fi
666done
667
668if test -r "$cache_file"; then
669 echo "loading cache $cache_file"
670 . $cache_file
671else
672 echo "creating cache $cache_file"
673 > $cache_file
674fi
675
676ac_ext=c
677# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
678ac_cpp='$CPP $CPPFLAGS'
679ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
680ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
681cross_compiling=$ac_cv_prog_cc_cross
682
683ac_exeext=
684ac_objext=o
685if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
686 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
687 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
688 ac_n= ac_c='
689' ac_t=' '
690 else
691 ac_n=-n ac_c= ac_t=
692 fi
693else
694 ac_n= ac_c='\c' ac_t=
695fi
696
697
698
699echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
c8cca39f 700echo "configure:701: checking how to run the C preprocessor" >&5
c906108c
SS
701# On Suns, sometimes $CPP names a directory.
702if test -n "$CPP" && test -d "$CPP"; then
703 CPP=
704fi
705if test -z "$CPP"; then
706if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
707 echo $ac_n "(cached) $ac_c" 1>&6
708else
709 # This must be in double quotes, not single quotes, because CPP may get
710 # substituted into the Makefile and "${CC-cc}" will confuse make.
711 CPP="${CC-cc} -E"
712 # On the NeXT, cc -E runs the code through the compiler's parser,
713 # not just through cpp.
714 cat > conftest.$ac_ext <<EOF
c8cca39f 715#line 716 "configure"
c906108c
SS
716#include "confdefs.h"
717#include <assert.h>
718Syntax Error
719EOF
720ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c8cca39f 721{ (eval echo configure:722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
c906108c
SS
722ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
723if test -z "$ac_err"; then
724 :
725else
726 echo "$ac_err" >&5
727 echo "configure: failed program was:" >&5
728 cat conftest.$ac_ext >&5
729 rm -rf conftest*
730 CPP="${CC-cc} -E -traditional-cpp"
731 cat > conftest.$ac_ext <<EOF
c8cca39f 732#line 733 "configure"
c906108c
SS
733#include "confdefs.h"
734#include <assert.h>
735Syntax Error
736EOF
737ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c8cca39f 738{ (eval echo configure:739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
c906108c
SS
739ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
740if test -z "$ac_err"; then
741 :
742else
743 echo "$ac_err" >&5
744 echo "configure: failed program was:" >&5
745 cat conftest.$ac_ext >&5
746 rm -rf conftest*
747 CPP="${CC-cc} -nologo -E"
748 cat > conftest.$ac_ext <<EOF
c8cca39f 749#line 750 "configure"
c906108c
SS
750#include "confdefs.h"
751#include <assert.h>
752Syntax Error
753EOF
754ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c8cca39f 755{ (eval echo configure:756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
c906108c
SS
756ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
757if test -z "$ac_err"; then
758 :
759else
760 echo "$ac_err" >&5
761 echo "configure: failed program was:" >&5
762 cat conftest.$ac_ext >&5
763 rm -rf conftest*
764 CPP=/lib/cpp
765fi
766rm -f conftest*
767fi
768rm -f conftest*
769fi
770rm -f conftest*
771 ac_cv_prog_CPP="$CPP"
772fi
773 CPP="$ac_cv_prog_CPP"
774else
775 ac_cv_prog_CPP="$CPP"
776fi
777echo "$ac_t""$CPP" 1>&6
778
779echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
c8cca39f 780echo "configure:781: checking whether ${MAKE-make} sets \${MAKE}" >&5
c906108c
SS
781set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
782if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
783 echo $ac_n "(cached) $ac_c" 1>&6
784else
785 cat > conftestmake <<\EOF
786all:
787 @echo 'ac_maketemp="${MAKE}"'
788EOF
789# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
790eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
791if test -n "$ac_maketemp"; then
792 eval ac_cv_prog_make_${ac_make}_set=yes
793else
794 eval ac_cv_prog_make_${ac_make}_set=no
795fi
796rm -f conftestmake
797fi
798if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
799 echo "$ac_t""yes" 1>&6
800 SET_MAKE=
801else
802 echo "$ac_t""no" 1>&6
803 SET_MAKE="MAKE=${MAKE-make}"
804fi
805
806echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
c8cca39f 807echo "configure:808: checking for POSIXized ISC" >&5
c906108c
SS
808if test -d /etc/conf/kconfig.d &&
809 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
810then
811 echo "$ac_t""yes" 1>&6
812 ISC=yes # If later tests want to check for ISC.
813 cat >> confdefs.h <<\EOF
814#define _POSIX_SOURCE 1
815EOF
816
817 if test "$GCC" = yes; then
818 CC="$CC -posix"
819 else
820 CC="$CC -Xp"
821 fi
822else
823 echo "$ac_t""no" 1>&6
824 ISC=
825fi
826
827echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
c8cca39f 828echo "configure:829: checking for ANSI C header files" >&5
c906108c
SS
829if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
830 echo $ac_n "(cached) $ac_c" 1>&6
831else
832 cat > conftest.$ac_ext <<EOF
c8cca39f 833#line 834 "configure"
c906108c
SS
834#include "confdefs.h"
835#include <stdlib.h>
836#include <stdarg.h>
837#include <string.h>
838#include <float.h>
839EOF
840ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c8cca39f 841{ (eval echo configure:842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
c906108c
SS
842ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
843if test -z "$ac_err"; then
844 rm -rf conftest*
845 ac_cv_header_stdc=yes
846else
847 echo "$ac_err" >&5
848 echo "configure: failed program was:" >&5
849 cat conftest.$ac_ext >&5
850 rm -rf conftest*
851 ac_cv_header_stdc=no
852fi
853rm -f conftest*
854
855if test $ac_cv_header_stdc = yes; then
856 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
857cat > conftest.$ac_ext <<EOF
c8cca39f 858#line 859 "configure"
c906108c
SS
859#include "confdefs.h"
860#include <string.h>
861EOF
862if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
863 egrep "memchr" >/dev/null 2>&1; then
864 :
865else
866 rm -rf conftest*
867 ac_cv_header_stdc=no
868fi
869rm -f conftest*
870
871fi
872
873if test $ac_cv_header_stdc = yes; then
874 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
875cat > conftest.$ac_ext <<EOF
c8cca39f 876#line 877 "configure"
c906108c
SS
877#include "confdefs.h"
878#include <stdlib.h>
879EOF
880if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
881 egrep "free" >/dev/null 2>&1; then
882 :
883else
884 rm -rf conftest*
885 ac_cv_header_stdc=no
886fi
887rm -f conftest*
888
889fi
890
891if test $ac_cv_header_stdc = yes; then
892 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
893if test "$cross_compiling" = yes; then
894 :
895else
896 cat > conftest.$ac_ext <<EOF
c8cca39f 897#line 898 "configure"
c906108c
SS
898#include "confdefs.h"
899#include <ctype.h>
900#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
901#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
902#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
903int main () { int i; for (i = 0; i < 256; i++)
904if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
905exit (0); }
906
907EOF
c8cca39f 908if { (eval echo configure:909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
c906108c
SS
909then
910 :
911else
912 echo "configure: failed program was:" >&5
913 cat conftest.$ac_ext >&5
914 rm -fr conftest*
915 ac_cv_header_stdc=no
916fi
917rm -fr conftest*
918fi
919
920fi
921fi
922
923echo "$ac_t""$ac_cv_header_stdc" 1>&6
924if test $ac_cv_header_stdc = yes; then
925 cat >> confdefs.h <<\EOF
926#define STDC_HEADERS 1
927EOF
928
929fi
930
931echo $ac_n "checking for working const""... $ac_c" 1>&6
c8cca39f 932echo "configure:933: checking for working const" >&5
c906108c
SS
933if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
934 echo $ac_n "(cached) $ac_c" 1>&6
935else
936 cat > conftest.$ac_ext <<EOF
c8cca39f 937#line 938 "configure"
c906108c
SS
938#include "confdefs.h"
939
940int main() {
941
942/* Ultrix mips cc rejects this. */
943typedef int charset[2]; const charset x;
944/* SunOS 4.1.1 cc rejects this. */
945char const *const *ccp;
946char **p;
947/* NEC SVR4.0.2 mips cc rejects this. */
948struct point {int x, y;};
949static struct point const zero = {0,0};
950/* AIX XL C 1.02.0.0 rejects this.
951 It does not let you subtract one const X* pointer from another in an arm
952 of an if-expression whose if-part is not a constant expression */
953const char *g = "string";
954ccp = &g + (g ? g-g : 0);
955/* HPUX 7.0 cc rejects these. */
956++ccp;
957p = (char**) ccp;
958ccp = (char const *const *) p;
959{ /* SCO 3.2v4 cc rejects this. */
960 char *t;
961 char const *s = 0 ? (char *) 0 : (char const *) 0;
962
963 *t++ = 0;
964}
965{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
966 int x[] = {25, 17};
967 const int *foo = &x[0];
968 ++foo;
969}
970{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
971 typedef const int *iptr;
972 iptr p = 0;
973 ++p;
974}
975{ /* AIX XL C 1.02.0.0 rejects this saying
976 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
977 struct s { int j; const int *ap[3]; };
978 struct s *b; b->j = 5;
979}
980{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
981 const int foo = 10;
982}
983
984; return 0; }
985EOF
c8cca39f 986if { (eval echo configure:987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c906108c
SS
987 rm -rf conftest*
988 ac_cv_c_const=yes
989else
990 echo "configure: failed program was:" >&5
991 cat conftest.$ac_ext >&5
992 rm -rf conftest*
993 ac_cv_c_const=no
994fi
995rm -f conftest*
996fi
997
998echo "$ac_t""$ac_cv_c_const" 1>&6
999if test $ac_cv_c_const = no; then
1000 cat >> confdefs.h <<\EOF
1001#define const
1002EOF
1003
1004fi
1005
1006echo $ac_n "checking for inline""... $ac_c" 1>&6
c8cca39f 1007echo "configure:1008: checking for inline" >&5
c906108c
SS
1008if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1009 echo $ac_n "(cached) $ac_c" 1>&6
1010else
1011 ac_cv_c_inline=no
1012for ac_kw in inline __inline__ __inline; do
1013 cat > conftest.$ac_ext <<EOF
c8cca39f 1014#line 1015 "configure"
c906108c
SS
1015#include "confdefs.h"
1016
1017int main() {
1018} $ac_kw foo() {
1019; return 0; }
1020EOF
c8cca39f 1021if { (eval echo configure:1022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c906108c
SS
1022 rm -rf conftest*
1023 ac_cv_c_inline=$ac_kw; break
1024else
1025 echo "configure: failed program was:" >&5
1026 cat conftest.$ac_ext >&5
1027fi
1028rm -f conftest*
1029done
1030
1031fi
1032
1033echo "$ac_t""$ac_cv_c_inline" 1>&6
1034case "$ac_cv_c_inline" in
1035 inline | yes) ;;
1036 no) cat >> confdefs.h <<\EOF
1037#define inline
1038EOF
1039 ;;
1040 *) cat >> confdefs.h <<EOF
1041#define inline $ac_cv_c_inline
1042EOF
1043 ;;
1044esac
1045
1046echo $ac_n "checking for off_t""... $ac_c" 1>&6
c8cca39f 1047echo "configure:1048: checking for off_t" >&5
c906108c
SS
1048if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1049 echo $ac_n "(cached) $ac_c" 1>&6
1050else
1051 cat > conftest.$ac_ext <<EOF
c8cca39f 1052#line 1053 "configure"
c906108c
SS
1053#include "confdefs.h"
1054#include <sys/types.h>
1055#if STDC_HEADERS
1056#include <stdlib.h>
1057#include <stddef.h>
1058#endif
1059EOF
1060if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7a292a7a 1061 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
c906108c
SS
1062 rm -rf conftest*
1063 ac_cv_type_off_t=yes
1064else
1065 rm -rf conftest*
1066 ac_cv_type_off_t=no
1067fi
1068rm -f conftest*
1069
1070fi
1071echo "$ac_t""$ac_cv_type_off_t" 1>&6
1072if test $ac_cv_type_off_t = no; then
1073 cat >> confdefs.h <<\EOF
1074#define off_t long
1075EOF
1076
1077fi
1078
1079echo $ac_n "checking for size_t""... $ac_c" 1>&6
c8cca39f 1080echo "configure:1081: checking for size_t" >&5
c906108c
SS
1081if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1082 echo $ac_n "(cached) $ac_c" 1>&6
1083else
1084 cat > conftest.$ac_ext <<EOF
c8cca39f 1085#line 1086 "configure"
c906108c
SS
1086#include "confdefs.h"
1087#include <sys/types.h>
1088#if STDC_HEADERS
1089#include <stdlib.h>
1090#include <stddef.h>
1091#endif
1092EOF
1093if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7a292a7a 1094 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
c906108c
SS
1095 rm -rf conftest*
1096 ac_cv_type_size_t=yes
1097else
1098 rm -rf conftest*
1099 ac_cv_type_size_t=no
1100fi
1101rm -f conftest*
1102
1103fi
1104echo "$ac_t""$ac_cv_type_size_t" 1>&6
1105if test $ac_cv_type_size_t = no; then
1106 cat >> confdefs.h <<\EOF
1107#define size_t unsigned
1108EOF
1109
1110fi
1111
1112# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1113# for constant arguments. Useless!
1114echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
c8cca39f 1115echo "configure:1116: checking for working alloca.h" >&5
c906108c
SS
1116if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1117 echo $ac_n "(cached) $ac_c" 1>&6
1118else
1119 cat > conftest.$ac_ext <<EOF
c8cca39f 1120#line 1121 "configure"
c906108c
SS
1121#include "confdefs.h"
1122#include <alloca.h>
1123int main() {
1124char *p = alloca(2 * sizeof(int));
1125; return 0; }
1126EOF
c8cca39f 1127if { (eval echo configure:1128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c906108c
SS
1128 rm -rf conftest*
1129 ac_cv_header_alloca_h=yes
1130else
1131 echo "configure: failed program was:" >&5
1132 cat conftest.$ac_ext >&5
1133 rm -rf conftest*
1134 ac_cv_header_alloca_h=no
1135fi
1136rm -f conftest*
1137fi
1138
1139echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1140if test $ac_cv_header_alloca_h = yes; then
1141 cat >> confdefs.h <<\EOF
1142#define HAVE_ALLOCA_H 1
1143EOF
1144
1145fi
1146
1147echo $ac_n "checking for alloca""... $ac_c" 1>&6
c8cca39f 1148echo "configure:1149: checking for alloca" >&5
c906108c
SS
1149if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1150 echo $ac_n "(cached) $ac_c" 1>&6
1151else
1152 cat > conftest.$ac_ext <<EOF
c8cca39f 1153#line 1154 "configure"
c906108c
SS
1154#include "confdefs.h"
1155
1156#ifdef __GNUC__
1157# define alloca __builtin_alloca
1158#else
1159# ifdef _MSC_VER
1160# include <malloc.h>
1161# define alloca _alloca
1162# else
1163# if HAVE_ALLOCA_H
1164# include <alloca.h>
1165# else
1166# ifdef _AIX
1167 #pragma alloca
1168# else
1169# ifndef alloca /* predefined by HP cc +Olibcalls */
1170char *alloca ();
1171# endif
1172# endif
1173# endif
1174# endif
1175#endif
1176
1177int main() {
1178char *p = (char *) alloca(1);
1179; return 0; }
1180EOF
c8cca39f 1181if { (eval echo configure:1182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c906108c
SS
1182 rm -rf conftest*
1183 ac_cv_func_alloca_works=yes
1184else
1185 echo "configure: failed program was:" >&5
1186 cat conftest.$ac_ext >&5
1187 rm -rf conftest*
1188 ac_cv_func_alloca_works=no
1189fi
1190rm -f conftest*
1191fi
1192
1193echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1194if test $ac_cv_func_alloca_works = yes; then
1195 cat >> confdefs.h <<\EOF
1196#define HAVE_ALLOCA 1
1197EOF
1198
1199fi
1200
1201if test $ac_cv_func_alloca_works = no; then
1202 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1203 # that cause trouble. Some versions do not even contain alloca or
1204 # contain a buggy version. If you still want to use their alloca,
1205 # use ar to extract alloca.o from them instead of compiling alloca.c.
1206 ALLOCA=alloca.${ac_objext}
1207 cat >> confdefs.h <<\EOF
1208#define C_ALLOCA 1
1209EOF
1210
1211
1212echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
c8cca39f 1213echo "configure:1214: checking whether alloca needs Cray hooks" >&5
c906108c
SS
1214if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1215 echo $ac_n "(cached) $ac_c" 1>&6
1216else
1217 cat > conftest.$ac_ext <<EOF
c8cca39f 1218#line 1219 "configure"
c906108c
SS
1219#include "confdefs.h"
1220#if defined(CRAY) && ! defined(CRAY2)
1221webecray
1222#else
1223wenotbecray
1224#endif
1225
1226EOF
1227if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1228 egrep "webecray" >/dev/null 2>&1; then
1229 rm -rf conftest*
1230 ac_cv_os_cray=yes
1231else
1232 rm -rf conftest*
1233 ac_cv_os_cray=no
1234fi
1235rm -f conftest*
1236
1237fi
1238
1239echo "$ac_t""$ac_cv_os_cray" 1>&6
1240if test $ac_cv_os_cray = yes; then
1241for ac_func in _getb67 GETB67 getb67; do
1242 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c8cca39f 1243echo "configure:1244: checking for $ac_func" >&5
c906108c
SS
1244if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1245 echo $ac_n "(cached) $ac_c" 1>&6
1246else
1247 cat > conftest.$ac_ext <<EOF
c8cca39f 1248#line 1249 "configure"
c906108c
SS
1249#include "confdefs.h"
1250/* System header to define __stub macros and hopefully few prototypes,
1251 which can conflict with char $ac_func(); below. */
1252#include <assert.h>
1253/* Override any gcc2 internal prototype to avoid an error. */
1254/* We use char because int might match the return type of a gcc2
1255 builtin and then its argument prototype would still apply. */
1256char $ac_func();
1257
1258int main() {
1259
1260/* The GNU C library defines this for functions which it implements
1261 to always fail with ENOSYS. Some functions are actually named
1262 something starting with __ and the normal name is an alias. */
1263#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1264choke me
1265#else
1266$ac_func();
1267#endif
1268
1269; return 0; }
1270EOF
c8cca39f 1271if { (eval echo configure:1272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c906108c
SS
1272 rm -rf conftest*
1273 eval "ac_cv_func_$ac_func=yes"
1274else
1275 echo "configure: failed program was:" >&5
1276 cat conftest.$ac_ext >&5
1277 rm -rf conftest*
1278 eval "ac_cv_func_$ac_func=no"
1279fi
1280rm -f conftest*
1281fi
1282
1283if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1284 echo "$ac_t""yes" 1>&6
1285 cat >> confdefs.h <<EOF
1286#define CRAY_STACKSEG_END $ac_func
1287EOF
1288
1289 break
1290else
1291 echo "$ac_t""no" 1>&6
1292fi
1293
1294done
1295fi
1296
1297echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
c8cca39f 1298echo "configure:1299: checking stack direction for C alloca" >&5
c906108c
SS
1299if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1301else
1302 if test "$cross_compiling" = yes; then
1303 ac_cv_c_stack_direction=0
1304else
1305 cat > conftest.$ac_ext <<EOF
c8cca39f 1306#line 1307 "configure"
c906108c
SS
1307#include "confdefs.h"
1308find_stack_direction ()
1309{
1310 static char *addr = 0;
1311 auto char dummy;
1312 if (addr == 0)
1313 {
1314 addr = &dummy;
1315 return find_stack_direction ();
1316 }
1317 else
1318 return (&dummy > addr) ? 1 : -1;
1319}
1320main ()
1321{
1322 exit (find_stack_direction() < 0);
1323}
1324EOF
c8cca39f 1325if { (eval echo configure:1326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
c906108c
SS
1326then
1327 ac_cv_c_stack_direction=1
1328else
1329 echo "configure: failed program was:" >&5
1330 cat conftest.$ac_ext >&5
1331 rm -fr conftest*
1332 ac_cv_c_stack_direction=-1
1333fi
1334rm -fr conftest*
1335fi
1336
1337fi
1338
1339echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1340cat >> confdefs.h <<EOF
1341#define STACK_DIRECTION $ac_cv_c_stack_direction
1342EOF
1343
1344fi
1345
1346for ac_hdr in unistd.h
1347do
1348ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1349echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c8cca39f 1350echo "configure:1351: checking for $ac_hdr" >&5
c906108c
SS
1351if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1353else
1354 cat > conftest.$ac_ext <<EOF
c8cca39f 1355#line 1356 "configure"
c906108c
SS
1356#include "confdefs.h"
1357#include <$ac_hdr>
1358EOF
1359ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c8cca39f 1360{ (eval echo configure:1361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
c906108c
SS
1361ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1362if test -z "$ac_err"; then
1363 rm -rf conftest*
1364 eval "ac_cv_header_$ac_safe=yes"
1365else
1366 echo "$ac_err" >&5
1367 echo "configure: failed program was:" >&5
1368 cat conftest.$ac_ext >&5
1369 rm -rf conftest*
1370 eval "ac_cv_header_$ac_safe=no"
1371fi
1372rm -f conftest*
1373fi
1374if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1375 echo "$ac_t""yes" 1>&6
1376 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1377 cat >> confdefs.h <<EOF
1378#define $ac_tr_hdr 1
1379EOF
1380
1381else
1382 echo "$ac_t""no" 1>&6
1383fi
1384done
1385
1386for ac_func in getpagesize
1387do
1388echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c8cca39f 1389echo "configure:1390: checking for $ac_func" >&5
c906108c
SS
1390if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1391 echo $ac_n "(cached) $ac_c" 1>&6
1392else
1393 cat > conftest.$ac_ext <<EOF
c8cca39f 1394#line 1395 "configure"
c906108c
SS
1395#include "confdefs.h"
1396/* System header to define __stub macros and hopefully few prototypes,
1397 which can conflict with char $ac_func(); below. */
1398#include <assert.h>
1399/* Override any gcc2 internal prototype to avoid an error. */
1400/* We use char because int might match the return type of a gcc2
1401 builtin and then its argument prototype would still apply. */
1402char $ac_func();
1403
1404int main() {
1405
1406/* The GNU C library defines this for functions which it implements
1407 to always fail with ENOSYS. Some functions are actually named
1408 something starting with __ and the normal name is an alias. */
1409#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1410choke me
1411#else
1412$ac_func();
1413#endif
1414
1415; return 0; }
1416EOF
c8cca39f 1417if { (eval echo configure:1418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c906108c
SS
1418 rm -rf conftest*
1419 eval "ac_cv_func_$ac_func=yes"
1420else
1421 echo "configure: failed program was:" >&5
1422 cat conftest.$ac_ext >&5
1423 rm -rf conftest*
1424 eval "ac_cv_func_$ac_func=no"
1425fi
1426rm -f conftest*
1427fi
1428
1429if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1430 echo "$ac_t""yes" 1>&6
1431 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1432 cat >> confdefs.h <<EOF
1433#define $ac_tr_func 1
1434EOF
1435
1436else
1437 echo "$ac_t""no" 1>&6
1438fi
1439done
1440
1441echo $ac_n "checking for working mmap""... $ac_c" 1>&6
c8cca39f 1442echo "configure:1443: checking for working mmap" >&5
c906108c
SS
1443if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1444 echo $ac_n "(cached) $ac_c" 1>&6
1445else
1446 if test "$cross_compiling" = yes; then
1447 ac_cv_func_mmap_fixed_mapped=no
1448else
1449 cat > conftest.$ac_ext <<EOF
c8cca39f 1450#line 1451 "configure"
c906108c
SS
1451#include "confdefs.h"
1452
1453/* Thanks to Mike Haertel and Jim Avera for this test.
1454 Here is a matrix of mmap possibilities:
1455 mmap private not fixed
1456 mmap private fixed at somewhere currently unmapped
1457 mmap private fixed at somewhere already mapped
1458 mmap shared not fixed
1459 mmap shared fixed at somewhere currently unmapped
1460 mmap shared fixed at somewhere already mapped
1461 For private mappings, we should verify that changes cannot be read()
1462 back from the file, nor mmap's back from the file at a different
1463 address. (There have been systems where private was not correctly
1464 implemented like the infamous i386 svr4.0, and systems where the
1465 VM page cache was not coherent with the filesystem buffer cache
1466 like early versions of FreeBSD and possibly contemporary NetBSD.)
1467 For shared mappings, we should conversely verify that changes get
1468 propogated back to all the places they're supposed to be.
1469
1470 Grep wants private fixed already mapped.
1471 The main things grep needs to know about mmap are:
1472 * does it exist and is it safe to write into the mmap'd area
1473 * how to use it (BSD variants) */
1474#include <sys/types.h>
1475#include <fcntl.h>
1476#include <sys/mman.h>
1477
1478/* This mess was copied from the GNU getpagesize.h. */
1479#ifndef HAVE_GETPAGESIZE
1480# ifdef HAVE_UNISTD_H
1481# include <unistd.h>
1482# endif
1483
1484/* Assume that all systems that can run configure have sys/param.h. */
1485# ifndef HAVE_SYS_PARAM_H
1486# define HAVE_SYS_PARAM_H 1
1487# endif
1488
1489# ifdef _SC_PAGESIZE
1490# define getpagesize() sysconf(_SC_PAGESIZE)
1491# else /* no _SC_PAGESIZE */
1492# ifdef HAVE_SYS_PARAM_H
1493# include <sys/param.h>
1494# ifdef EXEC_PAGESIZE
1495# define getpagesize() EXEC_PAGESIZE
1496# else /* no EXEC_PAGESIZE */
1497# ifdef NBPG
1498# define getpagesize() NBPG * CLSIZE
1499# ifndef CLSIZE
1500# define CLSIZE 1
1501# endif /* no CLSIZE */
1502# else /* no NBPG */
1503# ifdef NBPC
1504# define getpagesize() NBPC
1505# else /* no NBPC */
1506# ifdef PAGESIZE
1507# define getpagesize() PAGESIZE
1508# endif /* PAGESIZE */
1509# endif /* no NBPC */
1510# endif /* no NBPG */
1511# endif /* no EXEC_PAGESIZE */
1512# else /* no HAVE_SYS_PARAM_H */
1513# define getpagesize() 8192 /* punt totally */
1514# endif /* no HAVE_SYS_PARAM_H */
1515# endif /* no _SC_PAGESIZE */
1516
1517#endif /* no HAVE_GETPAGESIZE */
1518
1519#ifdef __cplusplus
1520extern "C" { void *malloc(unsigned); }
1521#else
1522char *malloc();
1523#endif
1524
1525int
1526main()
1527{
1528 char *data, *data2, *data3;
1529 int i, pagesize;
1530 int fd;
1531
1532 pagesize = getpagesize();
1533
1534 /*
1535 * First, make a file with some known garbage in it.
1536 */
1537 data = malloc(pagesize);
1538 if (!data)
1539 exit(1);
1540 for (i = 0; i < pagesize; ++i)
1541 *(data + i) = rand();
1542 umask(0);
1543 fd = creat("conftestmmap", 0600);
1544 if (fd < 0)
1545 exit(1);
1546 if (write(fd, data, pagesize) != pagesize)
1547 exit(1);
1548 close(fd);
1549
1550 /*
1551 * Next, try to mmap the file at a fixed address which
1552 * already has something else allocated at it. If we can,
1553 * also make sure that we see the same garbage.
1554 */
1555 fd = open("conftestmmap", O_RDWR);
1556 if (fd < 0)
1557 exit(1);
1558 data2 = malloc(2 * pagesize);
1559 if (!data2)
1560 exit(1);
1561 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1562 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1563 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1564 exit(1);
1565 for (i = 0; i < pagesize; ++i)
1566 if (*(data + i) != *(data2 + i))
1567 exit(1);
1568
1569 /*
1570 * Finally, make sure that changes to the mapped area
1571 * do not percolate back to the file as seen by read().
1572 * (This is a bug on some variants of i386 svr4.0.)
1573 */
1574 for (i = 0; i < pagesize; ++i)
1575 *(data2 + i) = *(data2 + i) + 1;
1576 data3 = malloc(pagesize);
1577 if (!data3)
1578 exit(1);
1579 if (read(fd, data3, pagesize) != pagesize)
1580 exit(1);
1581 for (i = 0; i < pagesize; ++i)
1582 if (*(data + i) != *(data3 + i))
1583 exit(1);
1584 close(fd);
1585 unlink("conftestmmap");
1586 exit(0);
1587}
1588
1589EOF
c8cca39f 1590if { (eval echo configure:1591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
c906108c
SS
1591then
1592 ac_cv_func_mmap_fixed_mapped=yes
1593else
1594 echo "configure: failed program was:" >&5
1595 cat conftest.$ac_ext >&5
1596 rm -fr conftest*
1597 ac_cv_func_mmap_fixed_mapped=no
1598fi
1599rm -fr conftest*
1600fi
1601
1602fi
1603
1604echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1605if test $ac_cv_func_mmap_fixed_mapped = yes; then
1606 cat >> confdefs.h <<\EOF
1607#define HAVE_MMAP 1
1608EOF
1609
1610fi
1611
cd0fc7c3 1612echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
c8cca39f 1613echo "configure:1614: checking for Cygwin environment" >&5
cd0fc7c3
SS
1614if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1615 echo $ac_n "(cached) $ac_c" 1>&6
1616else
1617 cat > conftest.$ac_ext <<EOF
c8cca39f 1618#line 1619 "configure"
cd0fc7c3
SS
1619#include "confdefs.h"
1620
1621int main() {
1622
1623#ifndef __CYGWIN__
1624#define __CYGWIN__ __CYGWIN32__
1625#endif
1626return __CYGWIN__;
1627; return 0; }
1628EOF
c8cca39f 1629if { (eval echo configure:1630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd0fc7c3
SS
1630 rm -rf conftest*
1631 ac_cv_cygwin=yes
1632else
1633 echo "configure: failed program was:" >&5
1634 cat conftest.$ac_ext >&5
1635 rm -rf conftest*
1636 ac_cv_cygwin=no
1637fi
1638rm -f conftest*
1639rm -f conftest*
1640fi
1641
1642echo "$ac_t""$ac_cv_cygwin" 1>&6
1643CYGWIN=
1644test "$ac_cv_cygwin" = yes && CYGWIN=yes
1645echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
c8cca39f 1646echo "configure:1647: checking for mingw32 environment" >&5
cd0fc7c3
SS
1647if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1648 echo $ac_n "(cached) $ac_c" 1>&6
1649else
1650 cat > conftest.$ac_ext <<EOF
c8cca39f 1651#line 1652 "configure"
cd0fc7c3
SS
1652#include "confdefs.h"
1653
1654int main() {
1655return __MINGW32__;
1656; return 0; }
1657EOF
c8cca39f 1658if { (eval echo configure:1659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd0fc7c3
SS
1659 rm -rf conftest*
1660 ac_cv_mingw32=yes
1661else
1662 echo "configure: failed program was:" >&5
1663 cat conftest.$ac_ext >&5
1664 rm -rf conftest*
1665 ac_cv_mingw32=no
1666fi
1667rm -f conftest*
1668rm -f conftest*
1669fi
1670
1671echo "$ac_t""$ac_cv_mingw32" 1>&6
1672MINGW32=
1673test "$ac_cv_mingw32" = yes && MINGW32=yes
c906108c
SS
1674
1675# autoconf.info says this should be called right after AC_INIT.
1676
1677
1678ac_aux_dir=
1679for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do
1680 if test -f $ac_dir/install-sh; then
1681 ac_aux_dir=$ac_dir
1682 ac_install_sh="$ac_aux_dir/install-sh -c"
1683 break
1684 elif test -f $ac_dir/install.sh; then
1685 ac_aux_dir=$ac_dir
1686 ac_install_sh="$ac_aux_dir/install.sh -c"
1687 break
1688 fi
1689done
1690if test -z "$ac_aux_dir"; then
1691 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
1692fi
1693ac_config_guess=$ac_aux_dir/config.guess
1694ac_config_sub=$ac_aux_dir/config.sub
1695ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1696
1697
1698# Do some error checking and defaulting for the host and target type.
1699# The inputs are:
1700# configure --host=HOST --target=TARGET --build=BUILD NONOPT
1701#
1702# The rules are:
1703# 1. You are not allowed to specify --host, --target, and nonopt at the
1704# same time.
1705# 2. Host defaults to nonopt.
1706# 3. If nonopt is not specified, then host defaults to the current host,
1707# as determined by config.guess.
1708# 4. Target and build default to nonopt.
1709# 5. If nonopt is not specified, then target and build default to host.
1710
1711# The aliases save the names the user supplied, while $host etc.
1712# will get canonicalized.
1713case $host---$target---$nonopt in
1714NONE---*---* | *---NONE---* | *---*---NONE) ;;
1715*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1716esac
1717
1718
1719# Make sure we can run config.sub.
1720if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1721else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1722fi
1723
1724echo $ac_n "checking host system type""... $ac_c" 1>&6
c8cca39f 1725echo "configure:1726: checking host system type" >&5
c906108c
SS
1726
1727host_alias=$host
1728case "$host_alias" in
1729NONE)
1730 case $nonopt in
1731 NONE)
1732 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1733 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1734 fi ;;
1735 *) host_alias=$nonopt ;;
1736 esac ;;
1737esac
1738
1739host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1740host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1741host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1742host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1743echo "$ac_t""$host" 1>&6
1744
1745echo $ac_n "checking target system type""... $ac_c" 1>&6
c8cca39f 1746echo "configure:1747: checking target system type" >&5
c906108c
SS
1747
1748target_alias=$target
1749case "$target_alias" in
1750NONE)
1751 case $nonopt in
1752 NONE) target_alias=$host_alias ;;
1753 *) target_alias=$nonopt ;;
1754 esac ;;
1755esac
1756
1757target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1758target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1759target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1760target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1761echo "$ac_t""$target" 1>&6
1762
1763echo $ac_n "checking build system type""... $ac_c" 1>&6
c8cca39f 1764echo "configure:1765: checking build system type" >&5
c906108c
SS
1765
1766build_alias=$build
1767case "$build_alias" in
1768NONE)
1769 case $nonopt in
1770 NONE) build_alias=$host_alias ;;
1771 *) build_alias=$nonopt ;;
1772 esac ;;
1773esac
1774
1775build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1776build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1777build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1778build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1779echo "$ac_t""$build" 1>&6
1780
1781test "$host_alias" != "$target_alias" &&
1782 test "$program_prefix$program_suffix$program_transform_name" = \
1783 NONENONEs,x,x, &&
1784 program_prefix=${target_alias}-
1785
1786if test "$program_transform_name" = s,x,x,; then
1787 program_transform_name=
1788else
1789 # Double any \ or $. echo might interpret backslashes.
1790 cat <<\EOF_SED > conftestsed
1791s,\\,\\\\,g; s,\$,$$,g
1792EOF_SED
1793 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1794 rm -f conftestsed
1795fi
1796test "$program_prefix" != NONE &&
1797 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1798# Use a double $ so make ignores it.
1799test "$program_suffix" != NONE &&
1800 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1801
1802# sed with no file args requires a program.
1803test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1804
1805# Extract the first word of "gcc", so it can be a program name with args.
1806set dummy gcc; ac_word=$2
1807echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c8cca39f 1808echo "configure:1809: checking for $ac_word" >&5
c906108c
SS
1809if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1810 echo $ac_n "(cached) $ac_c" 1>&6
1811else
1812 if test -n "$CC"; then
1813 ac_cv_prog_CC="$CC" # Let the user override the test.
1814else
1815 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7a292a7a
SS
1816 ac_dummy="$PATH"
1817 for ac_dir in $ac_dummy; do
c906108c
SS
1818 test -z "$ac_dir" && ac_dir=.
1819 if test -f $ac_dir/$ac_word; then
1820 ac_cv_prog_CC="gcc"
1821 break
1822 fi
1823 done
1824 IFS="$ac_save_ifs"
1825fi
1826fi
1827CC="$ac_cv_prog_CC"
1828if test -n "$CC"; then
1829 echo "$ac_t""$CC" 1>&6
1830else
1831 echo "$ac_t""no" 1>&6
1832fi
1833
1834if test -z "$CC"; then
1835 # Extract the first word of "cc", so it can be a program name with args.
1836set dummy cc; ac_word=$2
1837echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c8cca39f 1838echo "configure:1839: checking for $ac_word" >&5
c906108c
SS
1839if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1840 echo $ac_n "(cached) $ac_c" 1>&6
1841else
1842 if test -n "$CC"; then
1843 ac_cv_prog_CC="$CC" # Let the user override the test.
1844else
1845 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1846 ac_prog_rejected=no
7a292a7a
SS
1847 ac_dummy="$PATH"
1848 for ac_dir in $ac_dummy; do
c906108c
SS
1849 test -z "$ac_dir" && ac_dir=.
1850 if test -f $ac_dir/$ac_word; then
1851 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1852 ac_prog_rejected=yes
1853 continue
1854 fi
1855 ac_cv_prog_CC="cc"
1856 break
1857 fi
1858 done
1859 IFS="$ac_save_ifs"
1860if test $ac_prog_rejected = yes; then
1861 # We found a bogon in the path, so make sure we never use it.
1862 set dummy $ac_cv_prog_CC
1863 shift
1864 if test $# -gt 0; then
1865 # We chose a different compiler from the bogus one.
1866 # However, it has the same basename, so the bogon will be chosen
1867 # first if we set CC to just the basename; use the full file name.
1868 shift
1869 set dummy "$ac_dir/$ac_word" "$@"
1870 shift
1871 ac_cv_prog_CC="$@"
1872 fi
1873fi
1874fi
1875fi
1876CC="$ac_cv_prog_CC"
1877if test -n "$CC"; then
1878 echo "$ac_t""$CC" 1>&6
1879else
1880 echo "$ac_t""no" 1>&6
1881fi
1882
1883 if test -z "$CC"; then
1884 case "`uname -s`" in
1885 *win32* | *WIN32*)
1886 # Extract the first word of "cl", so it can be a program name with args.
1887set dummy cl; ac_word=$2
1888echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c8cca39f 1889echo "configure:1890: checking for $ac_word" >&5
c906108c
SS
1890if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1891 echo $ac_n "(cached) $ac_c" 1>&6
1892else
1893 if test -n "$CC"; then
1894 ac_cv_prog_CC="$CC" # Let the user override the test.
1895else
1896 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7a292a7a
SS
1897 ac_dummy="$PATH"
1898 for ac_dir in $ac_dummy; do
c906108c
SS
1899 test -z "$ac_dir" && ac_dir=.
1900 if test -f $ac_dir/$ac_word; then
1901 ac_cv_prog_CC="cl"
1902 break
1903 fi
1904 done
1905 IFS="$ac_save_ifs"
1906fi
1907fi
1908CC="$ac_cv_prog_CC"
1909if test -n "$CC"; then
1910 echo "$ac_t""$CC" 1>&6
1911else
1912 echo "$ac_t""no" 1>&6
1913fi
1914 ;;
1915 esac
1916 fi
1917 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1918fi
1919
1920echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
c8cca39f 1921echo "configure:1922: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
c906108c
SS
1922
1923ac_ext=c
1924# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1925ac_cpp='$CPP $CPPFLAGS'
1926ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1927ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1928cross_compiling=$ac_cv_prog_cc_cross
1929
7a292a7a
SS
1930cat > conftest.$ac_ext << EOF
1931
c8cca39f 1932#line 1933 "configure"
c906108c 1933#include "confdefs.h"
7a292a7a 1934
c906108c
SS
1935main(){return(0);}
1936EOF
c8cca39f 1937if { (eval echo configure:1938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c906108c
SS
1938 ac_cv_prog_cc_works=yes
1939 # If we can't run a trivial program, we are probably using a cross compiler.
1940 if (./conftest; exit) 2>/dev/null; then
1941 ac_cv_prog_cc_cross=no
1942 else
1943 ac_cv_prog_cc_cross=yes
1944 fi
1945else
1946 echo "configure: failed program was:" >&5
1947 cat conftest.$ac_ext >&5
1948 ac_cv_prog_cc_works=no
1949fi
1950rm -fr conftest*
7a292a7a
SS
1951ac_ext=c
1952# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1953ac_cpp='$CPP $CPPFLAGS'
1954ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1955ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1956cross_compiling=$ac_cv_prog_cc_cross
c906108c
SS
1957
1958echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1959if test $ac_cv_prog_cc_works = no; then
1960 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1961fi
1962echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
c8cca39f 1963echo "configure:1964: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
c906108c
SS
1964echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1965cross_compiling=$ac_cv_prog_cc_cross
1966
1967echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
c8cca39f 1968echo "configure:1969: checking whether we are using GNU C" >&5
c906108c
SS
1969if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1970 echo $ac_n "(cached) $ac_c" 1>&6
1971else
1972 cat > conftest.c <<EOF
1973#ifdef __GNUC__
1974 yes;
1975#endif
1976EOF
c8cca39f 1977if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
c906108c
SS
1978 ac_cv_prog_gcc=yes
1979else
1980 ac_cv_prog_gcc=no
1981fi
1982fi
1983
1984echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1985
1986if test $ac_cv_prog_gcc = yes; then
1987 GCC=yes
1988else
1989 GCC=
1990fi
1991
1992ac_test_CFLAGS="${CFLAGS+set}"
1993ac_save_CFLAGS="$CFLAGS"
1994CFLAGS=
1995echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
c8cca39f 1996echo "configure:1997: checking whether ${CC-cc} accepts -g" >&5
c906108c
SS
1997if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1998 echo $ac_n "(cached) $ac_c" 1>&6
1999else
2000 echo 'void f(){}' > conftest.c
2001if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2002 ac_cv_prog_cc_g=yes
2003else
2004 ac_cv_prog_cc_g=no
2005fi
2006rm -f conftest*
2007
2008fi
2009
2010echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2011if test "$ac_test_CFLAGS" = set; then
2012 CFLAGS="$ac_save_CFLAGS"
2013elif test $ac_cv_prog_cc_g = yes; then
2014 if test "$GCC" = yes; then
2015 CFLAGS="-g -O2"
2016 else
2017 CFLAGS="-g"
2018 fi
2019else
2020 if test "$GCC" = yes; then
2021 CFLAGS="-O2"
2022 else
2023 CFLAGS=
2024 fi
2025fi
2026
2027# Find a good install program. We prefer a C program (faster),
2028# so one script is as good as another. But avoid the broken or
2029# incompatible versions:
2030# SysV /etc/install, /usr/sbin/install
2031# SunOS /usr/etc/install
2032# IRIX /sbin/install
2033# AIX /bin/install
2034# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2035# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2036# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2037# ./install, which can be erroneously created by make from ./install.sh.
2038echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
c8cca39f 2039echo "configure:2040: checking for a BSD compatible install" >&5
c906108c
SS
2040if test -z "$INSTALL"; then
2041if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2042 echo $ac_n "(cached) $ac_c" 1>&6
2043else
2044 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2045 for ac_dir in $PATH; do
2046 # Account for people who put trailing slashes in PATH elements.
2047 case "$ac_dir/" in
2048 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2049 *)
2050 # OSF1 and SCO ODT 3.0 have their own names for install.
2051 # Don't use installbsd from OSF since it installs stuff as root
2052 # by default.
2053 for ac_prog in ginstall scoinst install; do
2054 if test -f $ac_dir/$ac_prog; then
2055 if test $ac_prog = install &&
2056 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2057 # AIX install. It has an incompatible calling convention.
2058 :
2059 else
2060 ac_cv_path_install="$ac_dir/$ac_prog -c"
2061 break 2
2062 fi
2063 fi
2064 done
2065 ;;
2066 esac
2067 done
2068 IFS="$ac_save_IFS"
2069
2070fi
2071 if test "${ac_cv_path_install+set}" = set; then
2072 INSTALL="$ac_cv_path_install"
2073 else
2074 # As a last resort, use the slow shell script. We don't cache a
2075 # path for INSTALL within a source directory, because that will
2076 # break other packages using the cache if that directory is
2077 # removed, or if the path is relative.
2078 INSTALL="$ac_install_sh"
2079 fi
2080fi
2081echo "$ac_t""$INSTALL" 1>&6
2082
2083# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2084# It thinks the first close brace ends the variable substitution.
2085test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2086
7a292a7a
SS
2087test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2088
c906108c
SS
2089test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2090
2091
2092# Put a plausible default for CC_FOR_BUILD in Makefile.
2093if test "x$cross_compiling" = "xno"; then
2094 CC_FOR_BUILD='$(CC)'
2095else
2096 CC_FOR_BUILD=gcc
2097fi
2098
2099
2100
2101
2102AR=${AR-ar}
2103
2104# Extract the first word of "ranlib", so it can be a program name with args.
2105set dummy ranlib; ac_word=$2
2106echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c8cca39f 2107echo "configure:2108: checking for $ac_word" >&5
c906108c
SS
2108if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2109 echo $ac_n "(cached) $ac_c" 1>&6
2110else
2111 if test -n "$RANLIB"; then
2112 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2113else
2114 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7a292a7a
SS
2115 ac_dummy="$PATH"
2116 for ac_dir in $ac_dummy; do
c906108c
SS
2117 test -z "$ac_dir" && ac_dir=.
2118 if test -f $ac_dir/$ac_word; then
2119 ac_cv_prog_RANLIB="ranlib"
2120 break
2121 fi
2122 done
2123 IFS="$ac_save_ifs"
2124 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2125fi
2126fi
2127RANLIB="$ac_cv_prog_RANLIB"
2128if test -n "$RANLIB"; then
2129 echo "$ac_t""$RANLIB" 1>&6
2130else
2131 echo "$ac_t""no" 1>&6
2132fi
2133
2134
2135ALL_LINGUAS=
2136
2137 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2138unistd.h values.h sys/param.h
2139do
2140ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2141echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c8cca39f 2142echo "configure:2143: checking for $ac_hdr" >&5
c906108c
SS
2143if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2144 echo $ac_n "(cached) $ac_c" 1>&6
2145else
2146 cat > conftest.$ac_ext <<EOF
c8cca39f 2147#line 2148 "configure"
c906108c
SS
2148#include "confdefs.h"
2149#include <$ac_hdr>
2150EOF
2151ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c8cca39f 2152{ (eval echo configure:2153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
c906108c
SS
2153ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2154if test -z "$ac_err"; then
2155 rm -rf conftest*
2156 eval "ac_cv_header_$ac_safe=yes"
2157else
2158 echo "$ac_err" >&5
2159 echo "configure: failed program was:" >&5
2160 cat conftest.$ac_ext >&5
2161 rm -rf conftest*
2162 eval "ac_cv_header_$ac_safe=no"
2163fi
2164rm -f conftest*
2165fi
2166if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2167 echo "$ac_t""yes" 1>&6
2168 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2169 cat >> confdefs.h <<EOF
2170#define $ac_tr_hdr 1
2171EOF
2172
2173else
2174 echo "$ac_t""no" 1>&6
2175fi
2176done
2177
2178 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2179__argz_count __argz_stringify __argz_next
2180do
2181echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c8cca39f 2182echo "configure:2183: checking for $ac_func" >&5
c906108c
SS
2183if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2184 echo $ac_n "(cached) $ac_c" 1>&6
2185else
2186 cat > conftest.$ac_ext <<EOF
c8cca39f 2187#line 2188 "configure"
c906108c
SS
2188#include "confdefs.h"
2189/* System header to define __stub macros and hopefully few prototypes,
2190 which can conflict with char $ac_func(); below. */
2191#include <assert.h>
2192/* Override any gcc2 internal prototype to avoid an error. */
2193/* We use char because int might match the return type of a gcc2
2194 builtin and then its argument prototype would still apply. */
2195char $ac_func();
2196
2197int main() {
2198
2199/* The GNU C library defines this for functions which it implements
2200 to always fail with ENOSYS. Some functions are actually named
2201 something starting with __ and the normal name is an alias. */
2202#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2203choke me
2204#else
2205$ac_func();
2206#endif
2207
2208; return 0; }
2209EOF
c8cca39f 2210if { (eval echo configure:2211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c906108c
SS
2211 rm -rf conftest*
2212 eval "ac_cv_func_$ac_func=yes"
2213else
2214 echo "configure: failed program was:" >&5
2215 cat conftest.$ac_ext >&5
2216 rm -rf conftest*
2217 eval "ac_cv_func_$ac_func=no"
2218fi
2219rm -f conftest*
2220fi
2221
2222if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2223 echo "$ac_t""yes" 1>&6
2224 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2225 cat >> confdefs.h <<EOF
2226#define $ac_tr_func 1
2227EOF
2228
2229else
2230 echo "$ac_t""no" 1>&6
2231fi
2232done
2233
2234
2235 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2236 for ac_func in stpcpy
2237do
2238echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c8cca39f 2239echo "configure:2240: checking for $ac_func" >&5
c906108c
SS
2240if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2241 echo $ac_n "(cached) $ac_c" 1>&6
2242else
2243 cat > conftest.$ac_ext <<EOF
c8cca39f 2244#line 2245 "configure"
c906108c
SS
2245#include "confdefs.h"
2246/* System header to define __stub macros and hopefully few prototypes,
2247 which can conflict with char $ac_func(); below. */
2248#include <assert.h>
2249/* Override any gcc2 internal prototype to avoid an error. */
2250/* We use char because int might match the return type of a gcc2
2251 builtin and then its argument prototype would still apply. */
2252char $ac_func();
2253
2254int main() {
2255
2256/* The GNU C library defines this for functions which it implements
2257 to always fail with ENOSYS. Some functions are actually named
2258 something starting with __ and the normal name is an alias. */
2259#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2260choke me
2261#else
2262$ac_func();
2263#endif
2264
2265; return 0; }
2266EOF
c8cca39f 2267if { (eval echo configure:2268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c906108c
SS
2268 rm -rf conftest*
2269 eval "ac_cv_func_$ac_func=yes"
2270else
2271 echo "configure: failed program was:" >&5
2272 cat conftest.$ac_ext >&5
2273 rm -rf conftest*
2274 eval "ac_cv_func_$ac_func=no"
2275fi
2276rm -f conftest*
2277fi
2278
2279if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2280 echo "$ac_t""yes" 1>&6
2281 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2282 cat >> confdefs.h <<EOF
2283#define $ac_tr_func 1
2284EOF
2285
2286else
2287 echo "$ac_t""no" 1>&6
2288fi
2289done
2290
2291 fi
2292 if test "${ac_cv_func_stpcpy}" = "yes"; then
2293 cat >> confdefs.h <<\EOF
2294#define HAVE_STPCPY 1
2295EOF
2296
2297 fi
2298
2299 if test $ac_cv_header_locale_h = yes; then
2300 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
c8cca39f 2301echo "configure:2302: checking for LC_MESSAGES" >&5
c906108c
SS
2302if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2303 echo $ac_n "(cached) $ac_c" 1>&6
2304else
2305 cat > conftest.$ac_ext <<EOF
c8cca39f 2306#line 2307 "configure"
c906108c
SS
2307#include "confdefs.h"
2308#include <locale.h>
2309int main() {
2310return LC_MESSAGES
2311; return 0; }
2312EOF
c8cca39f 2313if { (eval echo configure:2314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c906108c
SS
2314 rm -rf conftest*
2315 am_cv_val_LC_MESSAGES=yes
2316else
2317 echo "configure: failed program was:" >&5
2318 cat conftest.$ac_ext >&5
2319 rm -rf conftest*
2320 am_cv_val_LC_MESSAGES=no
2321fi
2322rm -f conftest*
2323fi
2324
2325echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2326 if test $am_cv_val_LC_MESSAGES = yes; then
2327 cat >> confdefs.h <<\EOF
2328#define HAVE_LC_MESSAGES 1
2329EOF
2330
2331 fi
2332 fi
2333 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
c8cca39f 2334echo "configure:2335: checking whether NLS is requested" >&5
c906108c
SS
2335 # Check whether --enable-nls or --disable-nls was given.
2336if test "${enable_nls+set}" = set; then
2337 enableval="$enable_nls"
2338 USE_NLS=$enableval
2339else
2340 USE_NLS=yes
2341fi
2342
2343 echo "$ac_t""$USE_NLS" 1>&6
2344
2345
2346 USE_INCLUDED_LIBINTL=no
2347
2348 if test "$USE_NLS" = "yes"; then
2349 cat >> confdefs.h <<\EOF
2350#define ENABLE_NLS 1
2351EOF
2352
2353 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
c8cca39f 2354echo "configure:2355: checking whether included gettext is requested" >&5
c906108c
SS
2355 # Check whether --with-included-gettext or --without-included-gettext was given.
2356if test "${with_included_gettext+set}" = set; then
2357 withval="$with_included_gettext"
2358 nls_cv_force_use_gnu_gettext=$withval
2359else
2360 nls_cv_force_use_gnu_gettext=no
2361fi
2362
2363 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2364
2365 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2366 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2367 nls_cv_header_intl=
2368 nls_cv_header_libgt=
2369 CATOBJEXT=NONE
2370
2371 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2372echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
c8cca39f 2373echo "configure:2374: checking for libintl.h" >&5
c906108c
SS
2374if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2375 echo $ac_n "(cached) $ac_c" 1>&6
2376else
2377 cat > conftest.$ac_ext <<EOF
c8cca39f 2378#line 2379 "configure"
c906108c
SS
2379#include "confdefs.h"
2380#include <libintl.h>
2381EOF
2382ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c8cca39f 2383{ (eval echo configure:2384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
c906108c
SS
2384ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2385if test -z "$ac_err"; then
2386 rm -rf conftest*
2387 eval "ac_cv_header_$ac_safe=yes"
2388else
2389 echo "$ac_err" >&5
2390 echo "configure: failed program was:" >&5
2391 cat conftest.$ac_ext >&5
2392 rm -rf conftest*
2393 eval "ac_cv_header_$ac_safe=no"
2394fi
2395rm -f conftest*
2396fi
2397if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2398 echo "$ac_t""yes" 1>&6
2399 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
c8cca39f 2400echo "configure:2401: checking for gettext in libc" >&5
c906108c
SS
2401if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2402 echo $ac_n "(cached) $ac_c" 1>&6
2403else
2404 cat > conftest.$ac_ext <<EOF
c8cca39f 2405#line 2406 "configure"
c906108c
SS
2406#include "confdefs.h"
2407#include <libintl.h>
2408int main() {
2409return (int) gettext ("")
2410; return 0; }
2411EOF
c8cca39f 2412if { (eval echo configure:2413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c906108c
SS
2413 rm -rf conftest*
2414 gt_cv_func_gettext_libc=yes
2415else
2416 echo "configure: failed program was:" >&5
2417 cat conftest.$ac_ext >&5
2418 rm -rf conftest*
2419 gt_cv_func_gettext_libc=no
2420fi
2421rm -f conftest*
2422fi
2423
2424echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2425
2426 if test "$gt_cv_func_gettext_libc" != "yes"; then
2427 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
c8cca39f 2428echo "configure:2429: checking for bindtextdomain in -lintl" >&5
c906108c
SS
2429ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2430if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2431 echo $ac_n "(cached) $ac_c" 1>&6
2432else
2433 ac_save_LIBS="$LIBS"
2434LIBS="-lintl $LIBS"
2435cat > conftest.$ac_ext <<EOF
c8cca39f 2436#line 2437 "configure"
c906108c
SS
2437#include "confdefs.h"
2438/* Override any gcc2 internal prototype to avoid an error. */
2439/* We use char because int might match the return type of a gcc2
2440 builtin and then its argument prototype would still apply. */
2441char bindtextdomain();
2442
2443int main() {
2444bindtextdomain()
2445; return 0; }
2446EOF
c8cca39f 2447if { (eval echo configure:2448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c906108c
SS
2448 rm -rf conftest*
2449 eval "ac_cv_lib_$ac_lib_var=yes"
2450else
2451 echo "configure: failed program was:" >&5
2452 cat conftest.$ac_ext >&5
2453 rm -rf conftest*
2454 eval "ac_cv_lib_$ac_lib_var=no"
2455fi
2456rm -f conftest*
2457LIBS="$ac_save_LIBS"
2458
2459fi
2460if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2461 echo "$ac_t""yes" 1>&6
2462 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
c8cca39f 2463echo "configure:2464: checking for gettext in libintl" >&5
c906108c
SS
2464if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2465 echo $ac_n "(cached) $ac_c" 1>&6
2466else
2467 cat > conftest.$ac_ext <<EOF
c8cca39f 2468#line 2469 "configure"
c906108c
SS
2469#include "confdefs.h"
2470
2471int main() {
2472return (int) gettext ("")
2473; return 0; }
2474EOF
c8cca39f 2475if { (eval echo configure:2476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c906108c
SS
2476 rm -rf conftest*
2477 gt_cv_func_gettext_libintl=yes
2478else
2479 echo "configure: failed program was:" >&5
2480 cat conftest.$ac_ext >&5
2481 rm -rf conftest*
2482 gt_cv_func_gettext_libintl=no
2483fi
2484rm -f conftest*
2485fi
2486
2487echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2488else
2489 echo "$ac_t""no" 1>&6
2490fi
2491
2492 fi
2493
2494 if test "$gt_cv_func_gettext_libc" = "yes" \
2495 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2496 cat >> confdefs.h <<\EOF
2497#define HAVE_GETTEXT 1
2498EOF
2499
2500 # Extract the first word of "msgfmt", so it can be a program name with args.
2501set dummy msgfmt; ac_word=$2
2502echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c8cca39f 2503echo "configure:2504: checking for $ac_word" >&5
c906108c
SS
2504if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2505 echo $ac_n "(cached) $ac_c" 1>&6
2506else
2507 case "$MSGFMT" in
2508 /*)
2509 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2510 ;;
2511 *)
2512 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2513 for ac_dir in $PATH; do
2514 test -z "$ac_dir" && ac_dir=.
2515 if test -f $ac_dir/$ac_word; then
2516 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2517 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2518 break
2519 fi
2520 fi
2521 done
2522 IFS="$ac_save_ifs"
2523 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2524 ;;
2525esac
2526fi
2527MSGFMT="$ac_cv_path_MSGFMT"
2528if test -n "$MSGFMT"; then
2529 echo "$ac_t""$MSGFMT" 1>&6
2530else
2531 echo "$ac_t""no" 1>&6
2532fi
2533 if test "$MSGFMT" != "no"; then
2534 for ac_func in dcgettext
2535do
2536echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c8cca39f 2537echo "configure:2538: checking for $ac_func" >&5
c906108c
SS
2538if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2539 echo $ac_n "(cached) $ac_c" 1>&6
2540else
2541 cat > conftest.$ac_ext <<EOF
c8cca39f 2542#line 2543 "configure"
c906108c
SS
2543#include "confdefs.h"
2544/* System header to define __stub macros and hopefully few prototypes,
2545 which can conflict with char $ac_func(); below. */
2546#include <assert.h>
2547/* Override any gcc2 internal prototype to avoid an error. */
2548/* We use char because int might match the return type of a gcc2
2549 builtin and then its argument prototype would still apply. */
2550char $ac_func();
2551
2552int main() {
2553
2554/* The GNU C library defines this for functions which it implements
2555 to always fail with ENOSYS. Some functions are actually named
2556 something starting with __ and the normal name is an alias. */
2557#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2558choke me
2559#else
2560$ac_func();
2561#endif
2562
2563; return 0; }
2564EOF
c8cca39f 2565if { (eval echo configure:2566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c906108c
SS
2566 rm -rf conftest*
2567 eval "ac_cv_func_$ac_func=yes"
2568else
2569 echo "configure: failed program was:" >&5
2570 cat conftest.$ac_ext >&5
2571 rm -rf conftest*
2572 eval "ac_cv_func_$ac_func=no"
2573fi
2574rm -f conftest*
2575fi
2576
2577if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2578 echo "$ac_t""yes" 1>&6
2579 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2580 cat >> confdefs.h <<EOF
2581#define $ac_tr_func 1
2582EOF
2583
2584else
2585 echo "$ac_t""no" 1>&6
2586fi
2587done
2588
2589 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2590set dummy gmsgfmt; ac_word=$2
2591echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c8cca39f 2592echo "configure:2593: checking for $ac_word" >&5
c906108c
SS
2593if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2594 echo $ac_n "(cached) $ac_c" 1>&6
2595else
2596 case "$GMSGFMT" in
2597 /*)
2598 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2599 ;;
2600 ?:/*)
2601 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2602 ;;
2603 *)
2604 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7a292a7a
SS
2605 ac_dummy="$PATH"
2606 for ac_dir in $ac_dummy; do
c906108c
SS
2607 test -z "$ac_dir" && ac_dir=.
2608 if test -f $ac_dir/$ac_word; then
2609 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2610 break
2611 fi
2612 done
2613 IFS="$ac_save_ifs"
2614 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2615 ;;
2616esac
2617fi
2618GMSGFMT="$ac_cv_path_GMSGFMT"
2619if test -n "$GMSGFMT"; then
2620 echo "$ac_t""$GMSGFMT" 1>&6
2621else
2622 echo "$ac_t""no" 1>&6
2623fi
2624
2625 # Extract the first word of "xgettext", so it can be a program name with args.
2626set dummy xgettext; ac_word=$2
2627echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c8cca39f 2628echo "configure:2629: checking for $ac_word" >&5
c906108c
SS
2629if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2630 echo $ac_n "(cached) $ac_c" 1>&6
2631else
2632 case "$XGETTEXT" in
2633 /*)
2634 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2635 ;;
2636 *)
2637 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2638 for ac_dir in $PATH; do
2639 test -z "$ac_dir" && ac_dir=.
2640 if test -f $ac_dir/$ac_word; then
2641 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2642 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2643 break
2644 fi
2645 fi
2646 done
2647 IFS="$ac_save_ifs"
2648 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2649 ;;
2650esac
2651fi
2652XGETTEXT="$ac_cv_path_XGETTEXT"
2653if test -n "$XGETTEXT"; then
2654 echo "$ac_t""$XGETTEXT" 1>&6
2655else
2656 echo "$ac_t""no" 1>&6
2657fi
2658
2659 cat > conftest.$ac_ext <<EOF
c8cca39f 2660#line 2661 "configure"
c906108c
SS
2661#include "confdefs.h"
2662
2663int main() {
2664extern int _nl_msg_cat_cntr;
2665 return _nl_msg_cat_cntr
2666; return 0; }
2667EOF
c8cca39f 2668if { (eval echo configure:2669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c906108c
SS
2669 rm -rf conftest*
2670 CATOBJEXT=.gmo
2671 DATADIRNAME=share
2672else
2673 echo "configure: failed program was:" >&5
2674 cat conftest.$ac_ext >&5
2675 rm -rf conftest*
2676 CATOBJEXT=.mo
2677 DATADIRNAME=lib
2678fi
2679rm -f conftest*
2680 INSTOBJEXT=.mo
2681 fi
2682 fi
2683
2684else
2685 echo "$ac_t""no" 1>&6
2686fi
2687
2688
2689
2690 if test "$CATOBJEXT" = "NONE"; then
2691 nls_cv_use_gnu_gettext=yes
2692 fi
2693 fi
2694
2695 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2696 INTLOBJS="\$(GETTOBJS)"
2697 # Extract the first word of "msgfmt", so it can be a program name with args.
2698set dummy msgfmt; ac_word=$2
2699echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c8cca39f 2700echo "configure:2701: checking for $ac_word" >&5
c906108c
SS
2701if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2702 echo $ac_n "(cached) $ac_c" 1>&6
2703else
2704 case "$MSGFMT" in
2705 /*)
2706 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2707 ;;
2708 *)
2709 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2710 for ac_dir in $PATH; do
2711 test -z "$ac_dir" && ac_dir=.
2712 if test -f $ac_dir/$ac_word; then
2713 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2714 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2715 break
2716 fi
2717 fi
2718 done
2719 IFS="$ac_save_ifs"
2720 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2721 ;;
2722esac
2723fi
2724MSGFMT="$ac_cv_path_MSGFMT"
2725if test -n "$MSGFMT"; then
2726 echo "$ac_t""$MSGFMT" 1>&6
2727else
2728 echo "$ac_t""no" 1>&6
2729fi
2730
2731 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2732set dummy gmsgfmt; ac_word=$2
2733echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c8cca39f 2734echo "configure:2735: checking for $ac_word" >&5
c906108c
SS
2735if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2736 echo $ac_n "(cached) $ac_c" 1>&6
2737else
2738 case "$GMSGFMT" in
2739 /*)
2740 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2741 ;;
2742 ?:/*)
2743 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2744 ;;
2745 *)
2746 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7a292a7a
SS
2747 ac_dummy="$PATH"
2748 for ac_dir in $ac_dummy; do
c906108c
SS
2749 test -z "$ac_dir" && ac_dir=.
2750 if test -f $ac_dir/$ac_word; then
2751 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2752 break
2753 fi
2754 done
2755 IFS="$ac_save_ifs"
2756 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2757 ;;
2758esac
2759fi
2760GMSGFMT="$ac_cv_path_GMSGFMT"
2761if test -n "$GMSGFMT"; then
2762 echo "$ac_t""$GMSGFMT" 1>&6
2763else
2764 echo "$ac_t""no" 1>&6
2765fi
2766
2767 # Extract the first word of "xgettext", so it can be a program name with args.
2768set dummy xgettext; ac_word=$2
2769echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c8cca39f 2770echo "configure:2771: checking for $ac_word" >&5
c906108c
SS
2771if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2772 echo $ac_n "(cached) $ac_c" 1>&6
2773else
2774 case "$XGETTEXT" in
2775 /*)
2776 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2777 ;;
2778 *)
2779 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2780 for ac_dir in $PATH; do
2781 test -z "$ac_dir" && ac_dir=.
2782 if test -f $ac_dir/$ac_word; then
2783 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2784 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2785 break
2786 fi
2787 fi
2788 done
2789 IFS="$ac_save_ifs"
2790 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2791 ;;
2792esac
2793fi
2794XGETTEXT="$ac_cv_path_XGETTEXT"
2795if test -n "$XGETTEXT"; then
2796 echo "$ac_t""$XGETTEXT" 1>&6
2797else
2798 echo "$ac_t""no" 1>&6
2799fi
2800
2801
2802 USE_INCLUDED_LIBINTL=yes
2803 CATOBJEXT=.gmo
2804 INSTOBJEXT=.mo
2805 DATADIRNAME=share
2806 INTLDEPS='$(top_builddir)/../intl/libintl.a'
2807 INTLLIBS=$INTLDEPS
2808 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2809 nls_cv_header_intl=libintl.h
2810 nls_cv_header_libgt=libgettext.h
2811 fi
2812
2813 if test "$XGETTEXT" != ":"; then
2814 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2815 : ;
2816 else
2817 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2818 XGETTEXT=":"
2819 fi
2820 fi
2821
2822 # We need to process the po/ directory.
2823 POSUB=po
2824 else
2825 DATADIRNAME=share
2826 nls_cv_header_intl=libintl.h
2827 nls_cv_header_libgt=libgettext.h
2828 fi
2829
2830 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2831 # because some of the sources are only built for this goal.
2832 if test "$PACKAGE" = gettext; then
2833 USE_NLS=yes
2834 USE_INCLUDED_LIBINTL=yes
2835 fi
2836
2837 for lang in $ALL_LINGUAS; do
2838 GMOFILES="$GMOFILES $lang.gmo"
2839 POFILES="$POFILES $lang.po"
2840 done
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855 if test "x$CATOBJEXT" != "x"; then
2856 if test "x$ALL_LINGUAS" = "x"; then
2857 LINGUAS=
2858 else
2859 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
c8cca39f 2860echo "configure:2861: checking for catalogs to be installed" >&5
c906108c
SS
2861 NEW_LINGUAS=
2862 for lang in ${LINGUAS=$ALL_LINGUAS}; do
2863 case "$ALL_LINGUAS" in
2864 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
2865 esac
2866 done
2867 LINGUAS=$NEW_LINGUAS
2868 echo "$ac_t""$LINGUAS" 1>&6
2869 fi
2870
2871 if test -n "$LINGUAS"; then
2872 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2873 fi
2874 fi
2875
2876 if test $ac_cv_header_locale_h = yes; then
2877 INCLUDE_LOCALE_H="#include <locale.h>"
2878 else
2879 INCLUDE_LOCALE_H="\
2880/* The system does not provide the header <locale.h>. Take care yourself. */"
2881 fi
2882
2883
2884 if test -f $srcdir/po2tbl.sed.in; then
2885 if test "$CATOBJEXT" = ".cat"; then
2886 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2887echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
c8cca39f 2888echo "configure:2889: checking for linux/version.h" >&5
c906108c
SS
2889if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2890 echo $ac_n "(cached) $ac_c" 1>&6
2891else
2892 cat > conftest.$ac_ext <<EOF
c8cca39f 2893#line 2894 "configure"
c906108c
SS
2894#include "confdefs.h"
2895#include <linux/version.h>
2896EOF
2897ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c8cca39f 2898{ (eval echo configure:2899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
c906108c
SS
2899ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2900if test -z "$ac_err"; then
2901 rm -rf conftest*
2902 eval "ac_cv_header_$ac_safe=yes"
2903else
2904 echo "$ac_err" >&5
2905 echo "configure: failed program was:" >&5
2906 cat conftest.$ac_ext >&5
2907 rm -rf conftest*
2908 eval "ac_cv_header_$ac_safe=no"
2909fi
2910rm -f conftest*
2911fi
2912if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2913 echo "$ac_t""yes" 1>&6
2914 msgformat=linux
2915else
2916 echo "$ac_t""no" 1>&6
2917msgformat=xopen
2918fi
2919
2920
2921 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
2922 fi
2923 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2924 $srcdir/po2tbl.sed.in > po2tbl.sed
2925 fi
2926
2927 if test "$PACKAGE" = "gettext"; then
2928 GT_NO="#NO#"
2929 GT_YES=
2930 else
2931 GT_NO=
2932 GT_YES="#YES#"
2933 fi
2934
2935
2936
2937 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
2938
2939
2940 l=
2941
2942
2943 if test -d $srcdir/po; then
2944 test -d po || mkdir po
2945 if test "x$srcdir" != "x."; then
2946 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2947 posrcprefix="$srcdir/"
2948 else
2949 posrcprefix="../$srcdir/"
2950 fi
2951 else
2952 posrcprefix="../"
2953 fi
2954 rm -f po/POTFILES
2955 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2956 < $srcdir/po/POTFILES.in > po/POTFILES
2957 fi
2958
2959
2960# Check for common headers.
2961# FIXME: Seems to me this can cause problems for i386-windows hosts.
2962# At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2963for ac_hdr in stdlib.h string.h strings.h unistd.h time.h
2964do
2965ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2966echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c8cca39f 2967echo "configure:2968: checking for $ac_hdr" >&5
c906108c
SS
2968if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2969 echo $ac_n "(cached) $ac_c" 1>&6
2970else
2971 cat > conftest.$ac_ext <<EOF
c8cca39f 2972#line 2973 "configure"
c906108c
SS
2973#include "confdefs.h"
2974#include <$ac_hdr>
2975EOF
2976ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c8cca39f 2977{ (eval echo configure:2978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
c906108c
SS
2978ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2979if test -z "$ac_err"; then
2980 rm -rf conftest*
2981 eval "ac_cv_header_$ac_safe=yes"
2982else
2983 echo "$ac_err" >&5
2984 echo "configure: failed program was:" >&5
2985 cat conftest.$ac_ext >&5
2986 rm -rf conftest*
2987 eval "ac_cv_header_$ac_safe=no"
2988fi
2989rm -f conftest*
2990fi
2991if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2992 echo "$ac_t""yes" 1>&6
2993 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2994 cat >> confdefs.h <<EOF
2995#define $ac_tr_hdr 1
2996EOF
2997
2998else
2999 echo "$ac_t""no" 1>&6
3000fi
3001done
3002
3003for ac_hdr in sys/time.h sys/resource.h
3004do
3005ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3006echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c8cca39f 3007echo "configure:3008: checking for $ac_hdr" >&5
c906108c
SS
3008if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3009 echo $ac_n "(cached) $ac_c" 1>&6
3010else
3011 cat > conftest.$ac_ext <<EOF
c8cca39f 3012#line 3013 "configure"
c906108c
SS
3013#include "confdefs.h"
3014#include <$ac_hdr>
3015EOF
3016ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c8cca39f 3017{ (eval echo configure:3018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
c906108c
SS
3018ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3019if test -z "$ac_err"; then
3020 rm -rf conftest*
3021 eval "ac_cv_header_$ac_safe=yes"
3022else
3023 echo "$ac_err" >&5
3024 echo "configure: failed program was:" >&5
3025 cat conftest.$ac_ext >&5
3026 rm -rf conftest*
3027 eval "ac_cv_header_$ac_safe=no"
3028fi
3029rm -f conftest*
3030fi
3031if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3032 echo "$ac_t""yes" 1>&6
3033 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3034 cat >> confdefs.h <<EOF
3035#define $ac_tr_hdr 1
3036EOF
3037
3038else
3039 echo "$ac_t""no" 1>&6
3040fi
3041done
3042
3043for ac_hdr in fcntl.h fpu_control.h
3044do
3045ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3046echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c8cca39f 3047echo "configure:3048: checking for $ac_hdr" >&5
c906108c
SS
3048if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3049 echo $ac_n "(cached) $ac_c" 1>&6
3050else
3051 cat > conftest.$ac_ext <<EOF
c8cca39f 3052#line 3053 "configure"
c906108c
SS
3053#include "confdefs.h"
3054#include <$ac_hdr>
3055EOF
3056ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c8cca39f 3057{ (eval echo configure:3058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
c906108c
SS
3058ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3059if test -z "$ac_err"; then
3060 rm -rf conftest*
3061 eval "ac_cv_header_$ac_safe=yes"
3062else
3063 echo "$ac_err" >&5
3064 echo "configure: failed program was:" >&5
3065 cat conftest.$ac_ext >&5
3066 rm -rf conftest*
3067 eval "ac_cv_header_$ac_safe=no"
3068fi
3069rm -f conftest*
3070fi
3071if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3072 echo "$ac_t""yes" 1>&6
3073 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3074 cat >> confdefs.h <<EOF
3075#define $ac_tr_hdr 1
3076EOF
3077
3078else
3079 echo "$ac_t""no" 1>&6
3080fi
3081done
3082
3083for ac_hdr in dlfcn.h errno.h sys/stat.h
3084do
3085ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3086echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c8cca39f 3087echo "configure:3088: checking for $ac_hdr" >&5
c906108c
SS
3088if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3089 echo $ac_n "(cached) $ac_c" 1>&6
3090else
3091 cat > conftest.$ac_ext <<EOF
c8cca39f 3092#line 3093 "configure"
c906108c
SS
3093#include "confdefs.h"
3094#include <$ac_hdr>
3095EOF
3096ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c8cca39f 3097{ (eval echo configure:3098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
c906108c
SS
3098ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3099if test -z "$ac_err"; then
3100 rm -rf conftest*
3101 eval "ac_cv_header_$ac_safe=yes"
3102else
3103 echo "$ac_err" >&5
3104 echo "configure: failed program was:" >&5
3105 cat conftest.$ac_ext >&5
3106 rm -rf conftest*
3107 eval "ac_cv_header_$ac_safe=no"
3108fi
3109rm -f conftest*
3110fi
3111if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3112 echo "$ac_t""yes" 1>&6
3113 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3114 cat >> confdefs.h <<EOF
3115#define $ac_tr_hdr 1
3116EOF
3117
3118else
3119 echo "$ac_t""no" 1>&6
3120fi
3121done
3122
3123for ac_func in getrusage time sigaction __setfpucw
3124do
3125echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c8cca39f 3126echo "configure:3127: checking for $ac_func" >&5
c906108c
SS
3127if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3128 echo $ac_n "(cached) $ac_c" 1>&6
3129else
3130 cat > conftest.$ac_ext <<EOF
c8cca39f 3131#line 3132 "configure"
c906108c
SS
3132#include "confdefs.h"
3133/* System header to define __stub macros and hopefully few prototypes,
3134 which can conflict with char $ac_func(); below. */
3135#include <assert.h>
3136/* Override any gcc2 internal prototype to avoid an error. */
3137/* We use char because int might match the return type of a gcc2
3138 builtin and then its argument prototype would still apply. */
3139char $ac_func();
3140
3141int main() {
3142
3143/* The GNU C library defines this for functions which it implements
3144 to always fail with ENOSYS. Some functions are actually named
3145 something starting with __ and the normal name is an alias. */
3146#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3147choke me
3148#else
3149$ac_func();
3150#endif
3151
3152; return 0; }
3153EOF
c8cca39f 3154if { (eval echo configure:3155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c906108c
SS
3155 rm -rf conftest*
3156 eval "ac_cv_func_$ac_func=yes"
3157else
3158 echo "configure: failed program was:" >&5
3159 cat conftest.$ac_ext >&5
3160 rm -rf conftest*
3161 eval "ac_cv_func_$ac_func=no"
3162fi
3163rm -f conftest*
3164fi
3165
3166if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3167 echo "$ac_t""yes" 1>&6
3168 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3169 cat >> confdefs.h <<EOF
3170#define $ac_tr_func 1
3171EOF
3172
3173else
3174 echo "$ac_t""no" 1>&6
3175fi
3176done
3177
3178
3179# Check for socket libraries
3180echo $ac_n "checking for bind in -lsocket""... $ac_c" 1>&6
c8cca39f 3181echo "configure:3182: checking for bind in -lsocket" >&5
c906108c
SS
3182ac_lib_var=`echo socket'_'bind | sed 'y%./+-%__p_%'`
3183if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3184 echo $ac_n "(cached) $ac_c" 1>&6
3185else
3186 ac_save_LIBS="$LIBS"
3187LIBS="-lsocket $LIBS"
3188cat > conftest.$ac_ext <<EOF
c8cca39f 3189#line 3190 "configure"
c906108c
SS
3190#include "confdefs.h"
3191/* Override any gcc2 internal prototype to avoid an error. */
3192/* We use char because int might match the return type of a gcc2
3193 builtin and then its argument prototype would still apply. */
3194char bind();
3195
3196int main() {
3197bind()
3198; return 0; }
3199EOF
c8cca39f 3200if { (eval echo configure:3201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c906108c
SS
3201 rm -rf conftest*
3202 eval "ac_cv_lib_$ac_lib_var=yes"
3203else
3204 echo "configure: failed program was:" >&5
3205 cat conftest.$ac_ext >&5
3206 rm -rf conftest*
3207 eval "ac_cv_lib_$ac_lib_var=no"
3208fi
3209rm -f conftest*
3210LIBS="$ac_save_LIBS"
3211
3212fi
3213if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3214 echo "$ac_t""yes" 1>&6
3215 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3216 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3217 cat >> confdefs.h <<EOF
3218#define $ac_tr_lib 1
3219EOF
3220
3221 LIBS="-lsocket $LIBS"
3222
3223else
3224 echo "$ac_t""no" 1>&6
3225fi
3226
3227echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
c8cca39f 3228echo "configure:3229: checking for gethostbyname in -lnsl" >&5
c906108c
SS
3229ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3230if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3231 echo $ac_n "(cached) $ac_c" 1>&6
3232else
3233 ac_save_LIBS="$LIBS"
3234LIBS="-lnsl $LIBS"
3235cat > conftest.$ac_ext <<EOF
c8cca39f 3236#line 3237 "configure"
c906108c
SS
3237#include "confdefs.h"
3238/* Override any gcc2 internal prototype to avoid an error. */
3239/* We use char because int might match the return type of a gcc2
3240 builtin and then its argument prototype would still apply. */
3241char gethostbyname();
3242
3243int main() {
3244gethostbyname()
3245; return 0; }
3246EOF
c8cca39f 3247if { (eval echo configure:3248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c906108c
SS
3248 rm -rf conftest*
3249 eval "ac_cv_lib_$ac_lib_var=yes"
3250else
3251 echo "configure: failed program was:" >&5
3252 cat conftest.$ac_ext >&5
3253 rm -rf conftest*
3254 eval "ac_cv_lib_$ac_lib_var=no"
3255fi
3256rm -f conftest*
3257LIBS="$ac_save_LIBS"
3258
3259fi
3260if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3261 echo "$ac_t""yes" 1>&6
3262 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3263 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3264 cat >> confdefs.h <<EOF
3265#define $ac_tr_lib 1
3266EOF
3267
3268 LIBS="-lnsl $LIBS"
3269
3270else
3271 echo "$ac_t""no" 1>&6
3272fi
3273
3274
3275. ${srcdir}/../../bfd/configure.host
3276
3277
3278
3279USE_MAINTAINER_MODE=no
3280# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3281if test "${enable_maintainer_mode+set}" = set; then
3282 enableval="$enable_maintainer_mode"
3283 case "${enableval}" in
3284 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
3285 no) MAINT="#" ;;
3286 *) { echo "configure: error: "--enable-maintainer-mode does not take a value"" 1>&2; exit 1; }; MAINT="#" ;;
3287esac
3288if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
3289 echo "Setting maintainer mode" 6>&1
3290fi
3291else
3292 MAINT="#"
3293fi
3294
3295
3296
3297# Check whether --enable-sim-bswap or --disable-sim-bswap was given.
3298if test "${enable_sim_bswap+set}" = set; then
3299 enableval="$enable_sim_bswap"
3300 case "${enableval}" in
3301 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
3302 no) sim_bswap="-DWITH_BSWAP=0";;
3303 *) { echo "configure: error: "--enable-sim-bswap does not take a value"" 1>&2; exit 1; }; sim_bswap="";;
3304esac
3305if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
3306 echo "Setting bswap flags = $sim_bswap" 6>&1
3307fi
3308else
3309 sim_bswap=""
3310fi
3311
3312
3313
3314# Check whether --enable-sim-cflags or --disable-sim-cflags was given.
3315if test "${enable_sim_cflags+set}" = set; then
3316 enableval="$enable_sim_cflags"
3317 case "${enableval}" in
3318 yes) sim_cflags="-O2 -fomit-frame-pointer";;
3319 trace) { echo "configure: error: "Please use --enable-sim-debug instead."" 1>&2; exit 1; }; sim_cflags="";;
3320 no) sim_cflags="";;
3321 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3322esac
3323if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
3324 echo "Setting sim cflags = $sim_cflags" 6>&1
3325fi
3326else
3327 sim_cflags=""
3328fi
3329
3330
3331
3332# Check whether --enable-sim-debug or --disable-sim-debug was given.
3333if test "${enable_sim_debug+set}" = set; then
3334 enableval="$enable_sim_debug"
3335 case "${enableval}" in
3336 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
3337 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
3338 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
3339esac
3340if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
3341 echo "Setting sim debug = $sim_debug" 6>&1
3342fi
3343else
3344 sim_debug=""
3345fi
3346
3347
3348
3349# Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3350if test "${enable_sim_stdio+set}" = set; then
3351 enableval="$enable_sim_stdio"
3352 case "${enableval}" in
3353 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
3354 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
3355 *) { echo "configure: error: "Unknown value $enableval passed to --enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio="";;
3356esac
3357if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
3358 echo "Setting stdio flags = $sim_stdio" 6>&1
3359fi
3360else
3361 sim_stdio=""
3362fi
3363
3364
3365
3366# Check whether --enable-sim-trace or --disable-sim-trace was given.
3367if test "${enable_sim_trace+set}" = set; then
3368 enableval="$enable_sim_trace"
3369 case "${enableval}" in
3370 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
3371 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
3372 [-0-9]*)
3373 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
3374 [a-z]*)
3375 sim_trace=""
3376 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
3377 if test x"$sim_trace" = x; then
3378 sim_trace="-DWITH_TRACE='(TRACE_$x"
3379 else
3380 sim_trace="${sim_trace}|TRACE_$x"
3381 fi
3382 done
3383 sim_trace="$sim_trace)'" ;;
3384esac
3385if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
3386 echo "Setting sim trace = $sim_trace" 6>&1
3387fi
3388else
3389 sim_trace=""
3390fi
3391
3392
3393
3394# Check whether --enable-sim-profile or --disable-sim-profile was given.
3395if test "${enable_sim_profile+set}" = set; then
3396 enableval="$enable_sim_profile"
3397 case "${enableval}" in
3398 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
3399 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
3400 [-0-9]*)
3401 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
3402 [a-z]*)
3403 sim_profile=""
3404 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
3405 if test x"$sim_profile" = x; then
3406 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
3407 else
3408 sim_profile="${sim_profile}|PROFILE_$x"
3409 fi
3410 done
3411 sim_profile="$sim_profile)'" ;;
3412esac
3413if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
3414 echo "Setting sim profile = $sim_profile" 6>&1
3415fi
3416else
eb2d80b4 3417 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
c906108c
SS
3418fi
3419
3420
3421
3422echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
c8cca39f 3423echo "configure:3424: checking return type of signal handlers" >&5
c906108c
SS
3424if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3425 echo $ac_n "(cached) $ac_c" 1>&6
3426else
3427 cat > conftest.$ac_ext <<EOF
c8cca39f 3428#line 3429 "configure"
c906108c
SS
3429#include "confdefs.h"
3430#include <sys/types.h>
3431#include <signal.h>
3432#ifdef signal
3433#undef signal
3434#endif
3435#ifdef __cplusplus
3436extern "C" void (*signal (int, void (*)(int)))(int);
3437#else
3438void (*signal ()) ();
3439#endif
3440
3441int main() {
3442int i;
3443; return 0; }
3444EOF
c8cca39f 3445if { (eval echo configure:3446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c906108c
SS
3446 rm -rf conftest*
3447 ac_cv_type_signal=void
3448else
3449 echo "configure: failed program was:" >&5
3450 cat conftest.$ac_ext >&5
3451 rm -rf conftest*
3452 ac_cv_type_signal=int
3453fi
3454rm -f conftest*
3455fi
3456
3457echo "$ac_t""$ac_cv_type_signal" 1>&6
3458cat >> confdefs.h <<EOF
3459#define RETSIGTYPE $ac_cv_type_signal
3460EOF
3461
3462
3463
cd0fc7c3
SS
3464
3465
c906108c 3466echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
c8cca39f 3467echo "configure:3468: checking for executable suffix" >&5
cd0fc7c3 3468if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
c906108c
SS
3469 echo $ac_n "(cached) $ac_c" 1>&6
3470else
cd0fc7c3
SS
3471 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
3472 ac_cv_exeext=.exe
3473else
3474 rm -f conftest*
3475 echo 'int main () { return 0; }' > conftest.$ac_ext
3476 ac_cv_exeext=
c8cca39f 3477 if { (eval echo configure:3478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
cd0fc7c3
SS
3478 for file in conftest.*; do
3479 case $file in
e514a9d6 3480 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
cd0fc7c3
SS
3481 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3482 esac
3483 done
3484 else
3485 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3486 fi
3487 rm -f conftest*
3488 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
c906108c 3489fi
c906108c 3490fi
cd0fc7c3 3491
c906108c 3492EXEEXT=""
cd0fc7c3
SS
3493test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3494echo "$ac_t""${ac_cv_exeext}" 1>&6
3495ac_exeext=$EXEEXT
c906108c
SS
3496
3497
3498sim_link_files=
3499sim_link_links=
3500
3501sim_link_links=tconfig.h
3502if test -f ${srcdir}/tconfig.in
3503then
3504 sim_link_files=tconfig.in
3505else
3506 sim_link_files=../common/tconfig.in
3507fi
3508
3509# targ-vals.def points to the libc macro description file.
3510case "${target}" in
3511*-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
3512esac
3513sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
3514sim_link_links="${sim_link_links} targ-vals.def"
3515
3516
3517
3518
3519default_sim_inline=""
3520# Check whether --enable-sim-inline or --disable-sim-inline was given.
3521if test "${enable_sim_inline+set}" = set; then
3522 enableval="$enable_sim_inline"
3523 sim_inline=""
3524case "$enableval" in
3525 no) sim_inline="-DDEFAULT_INLINE=0";;
3526 0) sim_inline="-DDEFAULT_INLINE=0";;
3527 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
3528 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
3529 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
3530 new_flag=""
3531 case "$x" in
3532 *_INLINE=*) new_flag="-D$x";;
3533 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
3534 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
3535 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
3536 esac
3537 if test x"$sim_inline" = x""; then
3538 sim_inline="$new_flag"
3539 else
3540 sim_inline="$sim_inline $new_flag"
3541 fi
3542 done;;
3543esac
3544if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
3545 echo "Setting inline flags = $sim_inline" 6>&1
3546fi
3547else
3548
3549if test "x$cross_compiling" = "xno"; then
3550 if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then
3551 sim_inline="${default_sim_inline}"
3552 if test x"$silent" != x"yes"; then
3553 echo "Setting inline flags = $sim_inline" 6>&1
3554 fi
3555 else
3556 sim_inline=""
3557 fi
3558else
3559 sim_inline="-DDEFAULT_INLINE=0"
3560fi
3561fi
3562
3563wire_alignment="NONSTRICT_ALIGNMENT"
3564default_alignment=""
3565
3566# Check whether --enable-sim-alignment or --disable-sim-alignment was given.
3567if test "${enable_sim_alignment+set}" = set; then
3568 enableval="$enable_sim_alignment"
3569 case "${enableval}" in
3570 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
3571 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
3572 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
3573 yes) if test x"$wire_alignment" != x; then
3574 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
3575 else
3576 if test x"$default_alignment" != x; then
3577 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
3578 else
3579 echo "No hard-wired alignment for target $target" 1>&6
3580 sim_alignment="-DWITH_ALIGNMENT=0"
3581 fi
3582 fi;;
3583 no) if test x"$default_alignment" != x; then
3584 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3585 else
3586 if test x"$wire_alignment" != x; then
3587 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
3588 else
3589 echo "No default alignment for target $target" 1>&6
3590 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
3591 fi
3592 fi;;
3593 *) { echo "configure: error: "Unknown value $enableval passed to --enable-sim-alignment"" 1>&2; exit 1; }; sim_alignment="";;
3594esac
3595if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
3596 echo "Setting alignment flags = $sim_alignment" 6>&1
3597fi
3598else
3599 if test x"$default_alignment" != x; then
3600 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3601else
3602 if test x"$wire_alignment" != x; then
3603 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
3604 else
3605 sim_alignment=
3606 fi
3607fi
3608fi
3609
3610
3611# Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
3612if test "${enable_sim_hostendian+set}" = set; then
3613 enableval="$enable_sim_hostendian"
3614 case "${enableval}" in
3615 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
3616 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
3617 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
3618 *) { echo "configure: error: "Unknown value $enableval for --enable-sim-hostendian"" 1>&2; exit 1; }; sim_hostendian="";;
3619esac
3620if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
3621 echo "Setting hostendian flags = $sim_hostendian" 6>&1
3622fi
3623else
3624
3625if test "x$cross_compiling" = "xno"; then
3626 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
c8cca39f 3627echo "configure:3628: checking whether byte ordering is bigendian" >&5
c906108c
SS
3628if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3629 echo $ac_n "(cached) $ac_c" 1>&6
3630else
3631 ac_cv_c_bigendian=unknown
3632# See if sys/param.h defines the BYTE_ORDER macro.
3633cat > conftest.$ac_ext <<EOF
c8cca39f 3634#line 3635 "configure"
c906108c
SS
3635#include "confdefs.h"
3636#include <sys/types.h>
3637#include <sys/param.h>
3638int main() {
3639
3640#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3641 bogus endian macros
3642#endif
3643; return 0; }
3644EOF
c8cca39f 3645if { (eval echo configure:3646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c906108c
SS
3646 rm -rf conftest*
3647 # It does; now see whether it defined to BIG_ENDIAN or not.
3648cat > conftest.$ac_ext <<EOF
c8cca39f 3649#line 3650 "configure"
c906108c
SS
3650#include "confdefs.h"
3651#include <sys/types.h>
3652#include <sys/param.h>
3653int main() {
3654
3655#if BYTE_ORDER != BIG_ENDIAN
3656 not big endian
3657#endif
3658; return 0; }
3659EOF
c8cca39f 3660if { (eval echo configure:3661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c906108c
SS
3661 rm -rf conftest*
3662 ac_cv_c_bigendian=yes
3663else
3664 echo "configure: failed program was:" >&5
3665 cat conftest.$ac_ext >&5
3666 rm -rf conftest*
3667 ac_cv_c_bigendian=no
3668fi
3669rm -f conftest*
3670else
3671 echo "configure: failed program was:" >&5
3672 cat conftest.$ac_ext >&5
3673fi
3674rm -f conftest*
3675if test $ac_cv_c_bigendian = unknown; then
3676if test "$cross_compiling" = yes; then
3677 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3678else
3679 cat > conftest.$ac_ext <<EOF
c8cca39f 3680#line 3681 "configure"
c906108c
SS
3681#include "confdefs.h"
3682main () {
3683 /* Are we little or big endian? From Harbison&Steele. */
3684 union
3685 {
3686 long l;
3687 char c[sizeof (long)];
3688 } u;
3689 u.l = 1;
3690 exit (u.c[sizeof (long) - 1] == 1);
3691}
3692EOF
c8cca39f 3693if { (eval echo configure:3694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
c906108c
SS
3694then
3695 ac_cv_c_bigendian=no
3696else
3697 echo "configure: failed program was:" >&5
3698 cat conftest.$ac_ext >&5
3699 rm -fr conftest*
3700 ac_cv_c_bigendian=yes
3701fi
3702rm -fr conftest*
3703fi
3704
3705fi
3706fi
3707
3708echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3709if test $ac_cv_c_bigendian = yes; then
3710 cat >> confdefs.h <<\EOF
3711#define WORDS_BIGENDIAN 1
3712EOF
3713
3714fi
3715
3716 if test $ac_cv_c_bigendian = yes; then
3717 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
3718 else
3719 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
3720 fi
3721else
3722 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
3723fi
3724fi
3725
3726
c8cca39f
AC
3727# NOTE: Don't add -Wall or -Wunused, they both include
3728# -Wunused-parameter which reports bogus warnings.
3729# NOTE: If you add to this list, remember to update
3730# gdb/doc/gdbint.texinfo.
3731build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
3732-Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
3733# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
3734# -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
3735# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
3736# -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
3737# -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
3738# -Woverloaded-virtual -Winline -Werror"
c906108c
SS
3739# Check whether --enable-build-warnings or --disable-build-warnings was given.
3740if test "${enable_build_warnings+set}" = set; then
3741 enableval="$enable_build_warnings"
c8cca39f
AC
3742 case "${enableval}" in
3743 yes) ;;
3744 no) build_warnings="-w";;
3745 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3746 build_warnings="${build_warnings} ${t}";;
3747 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3748 build_warnings="${t} ${build_warnings}";;
3749 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3750esac
3751if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
3752 echo "Setting compiler warning flags = $build_warnings" 6>&1
3753fi
3754fi
3755# Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
3756if test "${enable_sim_build_warnings+set}" = set; then
3757 enableval="$enable_sim_build_warnings"
3758 case "${enableval}" in
c906108c
SS
3759 yes) ;;
3760 no) build_warnings="-w";;
3761 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f 3762 build_warnings="${build_warnings} ${t}";;
c906108c 3763 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f
AC
3764 build_warnings="${t} ${build_warnings}";;
3765 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
c906108c
SS
3766esac
3767if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
c8cca39f
AC
3768 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
3769fi
c906108c 3770fi
d4f3574e
SS
3771WARN_CFLAGS=""
3772WERROR_CFLAGS=""
3773if test "x${build_warnings}" != x -a "x$GCC" = xyes
3774then
c8cca39f
AC
3775 echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6
3776echo "configure:3777: checking compiler warning flags" >&5
3777 # Separate out the -Werror flag as some files just cannot be
3778 # compiled with it enabled.
3779 for w in ${build_warnings}; do
3780 case $w in
3781 -Werr*) WERROR_CFLAGS=-Werror ;;
3782 *) # Check that GCC accepts it
3783 saved_CFLAGS="$CFLAGS"
3784 CFLAGS="$CFLAGS $w"
3785 cat > conftest.$ac_ext <<EOF
3786#line 3787 "configure"
3787#include "confdefs.h"
3788
3789int main() {
3790
3791; return 0; }
3792EOF
3793if { (eval echo configure:3794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3794 rm -rf conftest*
3795 WARN_CFLAGS="${WARN_CFLAGS} $w"
c906108c 3796else
c8cca39f
AC
3797 echo "configure: failed program was:" >&5
3798 cat conftest.$ac_ext >&5
3799fi
3800rm -f conftest*
3801 CFLAGS="$saved_CFLAGS"
3802 esac
3803 done
3804 echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6
c906108c
SS
3805fi
3806
3807
3808# DEPRECATED
3809#
3810# Instead of defining a `subtarget' macro, code should be checking
3811# the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
3812# in question.
3813#
3814case "${target}" in
3815 mips*tx39*) SIM_SUBTARGET="-DSUBTARGET_R3900=1";;
1e799e28
CD
3816 mipsisa32*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
3817 mipsisa64*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
c906108c
SS
3818 *) SIM_SUBTARGET="";;
3819esac
3820
3821
3822
3823
3824#
3825# Select the byte order of the target
3826#
3827mips_endian=
3828default_endian=
3829case "${target}" in
3830 mips64el*-*-*) mips_endian=LITTLE_ENDIAN ;;
7a292a7a 3831 mips64vr*el-*-*) default_endian=LITTLE_ENDIAN ;;
c906108c
SS
3832 mips64*-*-*) default_endian=BIG_ENDIAN ;;
3833 mips16*-*-*) default_endian=BIG_ENDIAN ;;
1e799e28
CD
3834 mipsisa32*-*-*) default_endian=BIG_ENDIAN ;;
3835 mipsisa64*-*-*) default_endian=BIG_ENDIAN ;;
c906108c
SS
3836 mips*-*-*) default_endian=BIG_ENDIAN ;;
3837 *) default_endian=BIG_ENDIAN ;;
3838esac
3839
3840wire_endian="$mips_endian"
3841default_endian="$default_endian"
3842# Check whether --enable-sim-endian or --disable-sim-endian was given.
3843if test "${enable_sim_endian+set}" = set; then
3844 enableval="$enable_sim_endian"
3845 case "${enableval}" in
3846 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
3847 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
3848 yes) if test x"$wire_endian" != x; then
3849 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
3850 else
3851 if test x"$default_endian" != x; then
3852 sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
3853 else
3854 echo "No hard-wired endian for target $target" 1>&6
3855 sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
3856 fi
3857 fi;;
3858 no) if test x"$default_endian" != x; then
3859 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
3860 else
3861 if test x"$wire_endian" != x; then
3862 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
3863 else
3864 echo "No default endian for target $target" 1>&6
3865 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
3866 fi
3867 fi;;
3868 *) { echo "configure: error: "Unknown value $enableval for --enable-sim-endian"" 1>&2; exit 1; }; sim_endian="";;
3869esac
3870if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
3871 echo "Setting endian flags = $sim_endian" 6>&1
3872fi
3873else
3874 if test x"$default_endian" != x; then
3875 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
3876else
3877 if test x"$wire_endian" != x; then
3878 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
3879 else
3880 sim_endian=
3881 fi
3882fi
3883fi
3884
3885
3886
3887
3888#
3889# Select the bitsize of the target
3890#
3891mips_addr_bitsize=
3892case "${target}" in
3893 mips64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
3894 mips16*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
1e799e28
CD
3895 mipsisa32*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
3896 mipsisa64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
c906108c
SS
3897 mips*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
3898 *) mips_bitsize=64 ; mips_msb=63 ;;
3899esac
3900wire_word_bitsize="$mips_bitsize"
3901wire_word_msb="$mips_msb"
3902wire_address_bitsize="$mips_addr_bitsize"
3903wire_cell_bitsize=""
3904# Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
3905if test "${enable_sim_bitsize+set}" = set; then
3906 enableval="$enable_sim_bitsize"
3907 sim_bitsize=
3908case "${enableval}" in
3909 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
3910 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
3911 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
3912 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
3913 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
3914 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
3915 else
3916 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
3917 fi ;;
3918 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
3919 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
3920 else
3921 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
3922 fi ;;
3923 *) { echo "configure: error: "--enable-sim-bitsize was given $enableval. Expected 32 or 64"" 1>&2; exit 1; } ;;
3924esac
3925# address bitsize
3926tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
3927case x"${tmp}" in
3928 x ) ;;
3929 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
3930 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
3931 * ) { echo "configure: error: "--enable-sim-bitsize was given address size $enableval. Expected 32 or 64"" 1>&2; exit 1; } ;;
3932esac
3933# cell bitsize
3934tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
3935case x"${tmp}" in
3936 x ) ;;
3937 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
3938 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
3939 * ) { echo "configure: error: "--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64"" 1>&2; exit 1; } ;;
3940esac
3941if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
3942 echo "Setting bitsize flags = $sim_bitsize" 6>&1
3943fi
3944else
3945 sim_bitsize=""
3946if test x"$wire_word_bitsize" != x; then
3947 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
3948fi
3949if test x"$wire_word_msb" != x; then
3950 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
3951fi
3952if test x"$wire_address_bitsize" != x; then
3953 sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
3954fi
3955if test x"$wire_cell_bitsize" != x; then
3956 sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
3957fi
3958fi
3959
3960
3961
3962
3963#
3964# Select the floating hardware support of the target
3965#
3966mips_fpu=HARDWARE_FLOATING_POINT
3967mips_fpu_bitsize=
3968case "${target}" in
3969 mips*tx39*) mips_fpu=HARD_FLOATING_POINT
3970 mips_fpu_bitsize=32
3971 ;;
3972 mips64*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
3973 mips16*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
1e799e28
CD
3974 mipsisa32*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
3975 mipsisa64*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
c906108c
SS
3976 mips*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
3977 *) mips_fpu=HARD_FLOATING_POINT ;;
3978esac
3979
3980default_sim_float="$mips_fpu"
3981default_sim_float_bitsize="$mips_fpu_bitsize"
3982# Check whether --enable-sim-float or --disable-sim-float was given.
3983if test "${enable_sim_float+set}" = set; then
3984 enableval="$enable_sim_float"
3985 case "${enableval}" in
3986 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
3987 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
3988 32) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
3989 64) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
3990 *) { echo "configure: error: "Unknown value $enableval passed to --enable-sim-float"" 1>&2; exit 1; }; sim_float="";;
3991esac
3992if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
3993 echo "Setting float flags = $sim_float" 6>&1
3994fi
3995else
3996
3997sim_float=
3998if test x"${default_sim_float}" != x""; then
3999 sim_float="-DWITH_FLOATING_POINT=${default_sim_float}"
4000fi
4001if test x"${default_sim_float_bitsize}" != x""; then
4002 sim_float="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
4003fi
4004
4005fi
4006
4007
4008
4009
4010#
4011# Select the level of SMP support
4012#
4013case "${target}" in
4014 *) mips_smp=0 ;;
4015esac
4016
4017default_sim_smp="$mips_smp"
4018# Check whether --enable-sim-smp or --disable-sim-smp was given.
4019if test "${enable_sim_smp+set}" = set; then
4020 enableval="$enable_sim_smp"
4021 case "${enableval}" in
4022 yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
4023 no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
4024 *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
4025esac
4026if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
4027 echo "Setting smp flags = $sim_smp" 6>&1
4028fi
4029else
4030 sim_smp="-DWITH_SMP=${default_sim_smp}" ; sim_igen_smp="-N ${default_sim_smp}"
4031if test x"$silent" != x"yes"; then
4032 echo "Setting smp flags = $sim_smp" 6>&1
4033fi
4034fi
4035
4036
4037
4038
4039#
4040# Select the IGEN architecture
4041#
4042sim_gen=IGEN
4043sim_igen_machine="-M mipsIV"
4044sim_m16_machine="-M mips16"
4045sim_igen_filter="32,64,f"
4046sim_m16_filter="16"
4047case "${target}" in
4048 mips*tx39*) sim_gen=IGEN
4049 sim_igen_filter="32,f"
4050 sim_igen_machine="-M r3900"
4051 ;;
4052 mips64vr43*-*-*) sim_gen=IGEN
4053 sim_igen_machine="-M mipsIV"
4054 ;;
4055 mips64vr5*-*-*) sim_gen=IGEN
4056 sim_igen_machine="-M vr5000"
4057 ;;
4058 mips64vr41*) sim_gen=M16
4059 sim_igen_machine="-M vr4100"
4060 sim_m16_machine="-M vr4100"
4061 sim_igen_filter="32,64,f"
4062 sim_m16_filter="16"
4063 ;;
4064 mips64*-*-*) sim_igen_filter="32,64,f"
4065 sim_gen=IGEN
4066 ;;
4067 mips16*-*-*) sim_gen=M16
4068 sim_igen_filter="32,64,f"
4069 sim_m16_filter="16"
4070 ;;
1e799e28
CD
4071 mipsisa32*-*-*) sim_gen=IGEN
4072 sim_igen_machine="-M mips32"
4073 sim_igen_filter="32,f"
4074 ;;
7cbea089
CD
4075 mipsisa64sb1*-*-*) sim_gen=IGEN
4076 sim_igen_machine="-M mips64,sb1"
4077 sim_igen_filter="32,64,f"
4078 ;;
1e799e28 4079 mipsisa64*-*-*) sim_gen=IGEN
e7e81181 4080 sim_igen_machine="-M mips64,mips3d"
1e799e28
CD
4081 sim_igen_filter="32,64,f"
4082 ;;
c906108c
SS
4083 mips*lsi*) sim_gen=M16
4084 sim_igen_machine="-M mipsIII,mips16"
4085 sim_m16_machine="-M mips16,mipsIII"
4086 sim_igen_filter="32,f"
4087 sim_m16_filter="16"
4088 ;;
4089 mips*-*-*) sim_gen=IGEN
4090 sim_igen_filter="32,f"
4091 ;;
4092esac
4093sim_igen_flags="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
4094sim_m16_flags=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}"
4095
4096
4097
4098
4099
4100#
4101# Add simulated hardware devices
4102#
4103hw_enabled=no
4104case "${target}" in
4105 mips*tx39*)
4106 hw_enabled=yes
4107 hw_extra_devices="tx3904cpu tx3904irc tx3904tmr tx3904sio"
4108 mips_extra_objs="dv-sockser.o"
4109 SIM_SUBTARGET="$SIM_SUBTARGET -DTARGET_TX3904=1"
4110 ;;
4111 *)
4112 mips_extra_objs=""
4113 ;;
4114esac
4115
4116if test x"$hw_enabled" = x"yes"; then
4117 sim_hw_p=yes
4118else
4119 sim_hw_p=no
4120fi
4121if test "$hw_devices"; then
4122 hardware="core pal glue"
4123else
4124 hardware="core pal glue $hw_extra_devices"
4125fi
4126sim_hw_cflags="-DWITH_HW=1"
4127sim_hw="$hardware"
4128sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
4129# Check whether --enable-sim-hardware or --disable-sim-hardware was given.
4130if test "${enable_sim_hardware+set}" = set; then
4131 enableval="$enable_sim_hardware"
4132
4133case "${enableval}" in
4134 yes) sim_hw_p=yes;;
4135 no) sim_hw_p=no;;
4136 ,*) sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
4137 *,) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
4138 *) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
4139esac
4140if test "$sim_hw_p" != yes; then
4141 sim_hw_objs=
4142 sim_hw_cflags="-DWITH_HW=0"
4143 sim_hw=
4144else
4145 sim_hw_cflags="-DWITH_HW=1"
4146 # remove duplicates
4147 sim_hw=""
4148 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
4149 for i in x $hardware ; do
4150 case " $f " in
4151 x) ;;
4152 *" $i "*) ;;
4153 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
4154 esac
4155 done
4156fi
4157if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then
4158 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
4159fi
4160else
4161
4162if test "$sim_hw_p" != yes; then
4163 sim_hw_objs=
4164 sim_hw_cflags="-DWITH_HW=0"
4165 sim_hw=
4166fi
4167if test x"$silent" != x"yes"; then
4168 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
4169fi
4170fi
4171
4172
4173
4174
4175# Choose simulator engine
4176case "${target}" in
4177 *) mips_igen_engine="engine.o"
4178 ;;
4179esac
4180
4181
4182
4183# If we find X, set shell vars x_includes and x_libraries to the
4184# paths, otherwise set no_x=yes.
4185# Uses ac_ vars as temps to allow command line to override cache and checks.
4186# --without-x overrides everything else, but does not touch the cache.
4187echo $ac_n "checking for X""... $ac_c" 1>&6
c8cca39f 4188echo "configure:4189: checking for X" >&5
c906108c
SS
4189
4190# Check whether --with-x or --without-x was given.
4191if test "${with_x+set}" = set; then
4192 withval="$with_x"
4193 :
4194fi
4195
4196# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4197if test "x$with_x" = xno; then
4198 # The user explicitly disabled X.
4199 have_x=disabled
4200else
4201 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4202 # Both variables are already set.
4203 have_x=yes
4204 else
4205if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
4206 echo $ac_n "(cached) $ac_c" 1>&6
4207else
4208 # One or both of the vars are not set, and there is no cached value.
4209ac_x_includes=NO ac_x_libraries=NO
4210rm -fr conftestdir
4211if mkdir conftestdir; then
4212 cd conftestdir
4213 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4214 cat > Imakefile <<'EOF'
4215acfindx:
4216 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4217EOF
4218 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4219 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4220 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4221 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4222 for ac_extension in a so sl; do
4223 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4224 test -f $ac_im_libdir/libX11.$ac_extension; then
4225 ac_im_usrlibdir=$ac_im_libdir; break
4226 fi
4227 done
4228 # Screen out bogus values from the imake configuration. They are
4229 # bogus both because they are the default anyway, and because
4230 # using them would break gcc on systems where it needs fixed includes.
4231 case "$ac_im_incroot" in
4232 /usr/include) ;;
4233 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4234 esac
4235 case "$ac_im_usrlibdir" in
4236 /usr/lib | /lib) ;;
4237 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4238 esac
4239 fi
4240 cd ..
4241 rm -fr conftestdir
4242fi
4243
4244if test "$ac_x_includes" = NO; then
4245 # Guess where to find include files, by looking for this one X11 .h file.
4246 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4247
4248 # First, try using that file with no special directory specified.
4249cat > conftest.$ac_ext <<EOF
c8cca39f 4250#line 4251 "configure"
c906108c
SS
4251#include "confdefs.h"
4252#include <$x_direct_test_include>
4253EOF
4254ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c8cca39f 4255{ (eval echo configure:4256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
c906108c
SS
4256ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4257if test -z "$ac_err"; then
4258 rm -rf conftest*
4259 # We can compile using X headers with no special include directory.
4260ac_x_includes=
4261else
4262 echo "$ac_err" >&5
4263 echo "configure: failed program was:" >&5
4264 cat conftest.$ac_ext >&5
4265 rm -rf conftest*
4266 # Look for the header file in a standard set of common directories.
4267# Check X11 before X11Rn because it is often a symlink to the current release.
4268 for ac_dir in \
4269 /usr/X11/include \
4270 /usr/X11R6/include \
4271 /usr/X11R5/include \
4272 /usr/X11R4/include \
4273 \
4274 /usr/include/X11 \
4275 /usr/include/X11R6 \
4276 /usr/include/X11R5 \
4277 /usr/include/X11R4 \
4278 \
4279 /usr/local/X11/include \
4280 /usr/local/X11R6/include \
4281 /usr/local/X11R5/include \
4282 /usr/local/X11R4/include \
4283 \
4284 /usr/local/include/X11 \
4285 /usr/local/include/X11R6 \
4286 /usr/local/include/X11R5 \
4287 /usr/local/include/X11R4 \
4288 \
4289 /usr/X386/include \
4290 /usr/x386/include \
4291 /usr/XFree86/include/X11 \
4292 \
4293 /usr/include \
4294 /usr/local/include \
4295 /usr/unsupported/include \
4296 /usr/athena/include \
4297 /usr/local/x11r5/include \
4298 /usr/lpp/Xamples/include \
4299 \
4300 /usr/openwin/include \
4301 /usr/openwin/share/include \
4302 ; \
4303 do
4304 if test -r "$ac_dir/$x_direct_test_include"; then
4305 ac_x_includes=$ac_dir
4306 break
4307 fi
4308 done
4309fi
4310rm -f conftest*
4311fi # $ac_x_includes = NO
4312
4313if test "$ac_x_libraries" = NO; then
4314 # Check for the libraries.
4315
4316 test -z "$x_direct_test_library" && x_direct_test_library=Xt
4317 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4318
4319 # See if we find them without any special options.
4320 # Don't add to $LIBS permanently.
4321 ac_save_LIBS="$LIBS"
4322 LIBS="-l$x_direct_test_library $LIBS"
4323cat > conftest.$ac_ext <<EOF
c8cca39f 4324#line 4325 "configure"
c906108c
SS
4325#include "confdefs.h"
4326
4327int main() {
4328${x_direct_test_function}()
4329; return 0; }
4330EOF
c8cca39f 4331if { (eval echo configure:4332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c906108c
SS
4332 rm -rf conftest*
4333 LIBS="$ac_save_LIBS"
4334# We can link X programs with no special library path.
4335ac_x_libraries=
4336else
4337 echo "configure: failed program was:" >&5
4338 cat conftest.$ac_ext >&5
4339 rm -rf conftest*
4340 LIBS="$ac_save_LIBS"
4341# First see if replacing the include by lib works.
4342# Check X11 before X11Rn because it is often a symlink to the current release.
4343for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4344 /usr/X11/lib \
4345 /usr/X11R6/lib \
4346 /usr/X11R5/lib \
4347 /usr/X11R4/lib \
4348 \
4349 /usr/lib/X11 \
4350 /usr/lib/X11R6 \
4351 /usr/lib/X11R5 \
4352 /usr/lib/X11R4 \
4353 \
4354 /usr/local/X11/lib \
4355 /usr/local/X11R6/lib \
4356 /usr/local/X11R5/lib \
4357 /usr/local/X11R4/lib \
4358 \
4359 /usr/local/lib/X11 \
4360 /usr/local/lib/X11R6 \
4361 /usr/local/lib/X11R5 \
4362 /usr/local/lib/X11R4 \
4363 \
4364 /usr/X386/lib \
4365 /usr/x386/lib \
4366 /usr/XFree86/lib/X11 \
4367 \
4368 /usr/lib \
4369 /usr/local/lib \
4370 /usr/unsupported/lib \
4371 /usr/athena/lib \
4372 /usr/local/x11r5/lib \
4373 /usr/lpp/Xamples/lib \
4374 /lib/usr/lib/X11 \
4375 \
4376 /usr/openwin/lib \
4377 /usr/openwin/share/lib \
4378 ; \
4379do
4380 for ac_extension in a so sl; do
4381 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4382 ac_x_libraries=$ac_dir
4383 break 2
4384 fi
4385 done
4386done
4387fi
4388rm -f conftest*
4389fi # $ac_x_libraries = NO
4390
4391if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
4392 # Didn't find X anywhere. Cache the known absence of X.
4393 ac_cv_have_x="have_x=no"
4394else
4395 # Record where we found X for the cache.
4396 ac_cv_have_x="have_x=yes \
4397 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4398fi
4399fi
4400 fi
4401 eval "$ac_cv_have_x"
4402fi # $with_x != no
4403
4404if test "$have_x" != yes; then
4405 echo "$ac_t""$have_x" 1>&6
4406 no_x=yes
4407else
4408 # If each of the values was on the command line, it overrides each guess.
4409 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4410 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4411 # Update the cache value to reflect the command line values.
4412 ac_cv_have_x="have_x=yes \
4413 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4414 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4415fi
4416
4417mips_extra_libs=""
4418
4419
4420for ac_hdr in string.h strings.h stdlib.h stdlib.h
4421do
4422ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4423echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c8cca39f 4424echo "configure:4425: checking for $ac_hdr" >&5
c906108c
SS
4425if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4426 echo $ac_n "(cached) $ac_c" 1>&6
4427else
4428 cat > conftest.$ac_ext <<EOF
c8cca39f 4429#line 4430 "configure"
c906108c
SS
4430#include "confdefs.h"
4431#include <$ac_hdr>
4432EOF
4433ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c8cca39f 4434{ (eval echo configure:4435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
c906108c
SS
4435ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4436if test -z "$ac_err"; then
4437 rm -rf conftest*
4438 eval "ac_cv_header_$ac_safe=yes"
4439else
4440 echo "$ac_err" >&5
4441 echo "configure: failed program was:" >&5
4442 cat conftest.$ac_ext >&5
4443 rm -rf conftest*
4444 eval "ac_cv_header_$ac_safe=no"
4445fi
4446rm -f conftest*
4447fi
4448if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4449 echo "$ac_t""yes" 1>&6
4450 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4451 cat >> confdefs.h <<EOF
4452#define $ac_tr_hdr 1
4453EOF
4454
4455else
4456 echo "$ac_t""no" 1>&6
4457fi
4458done
4459
4460echo $ac_n "checking for fabs in -lm""... $ac_c" 1>&6
c8cca39f 4461echo "configure:4462: checking for fabs in -lm" >&5
c906108c
SS
4462ac_lib_var=`echo m'_'fabs | sed 'y%./+-%__p_%'`
4463if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4464 echo $ac_n "(cached) $ac_c" 1>&6
4465else
4466 ac_save_LIBS="$LIBS"
4467LIBS="-lm $LIBS"
4468cat > conftest.$ac_ext <<EOF
c8cca39f 4469#line 4470 "configure"
c906108c
SS
4470#include "confdefs.h"
4471/* Override any gcc2 internal prototype to avoid an error. */
4472/* We use char because int might match the return type of a gcc2
4473 builtin and then its argument prototype would still apply. */
4474char fabs();
4475
4476int main() {
4477fabs()
4478; return 0; }
4479EOF
c8cca39f 4480if { (eval echo configure:4481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c906108c
SS
4481 rm -rf conftest*
4482 eval "ac_cv_lib_$ac_lib_var=yes"
4483else
4484 echo "configure: failed program was:" >&5
4485 cat conftest.$ac_ext >&5
4486 rm -rf conftest*
4487 eval "ac_cv_lib_$ac_lib_var=no"
4488fi
4489rm -f conftest*
4490LIBS="$ac_save_LIBS"
4491
4492fi
4493if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4494 echo "$ac_t""yes" 1>&6
4495 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4496 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4497 cat >> confdefs.h <<EOF
4498#define $ac_tr_lib 1
4499EOF
4500
4501 LIBS="-lm $LIBS"
4502
4503else
4504 echo "$ac_t""no" 1>&6
4505fi
4506
4507for ac_func in aint anint sqrt
4508do
4509echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c8cca39f 4510echo "configure:4511: checking for $ac_func" >&5
c906108c
SS
4511if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4512 echo $ac_n "(cached) $ac_c" 1>&6
4513else
4514 cat > conftest.$ac_ext <<EOF
c8cca39f 4515#line 4516 "configure"
c906108c
SS
4516#include "confdefs.h"
4517/* System header to define __stub macros and hopefully few prototypes,
4518 which can conflict with char $ac_func(); below. */
4519#include <assert.h>
4520/* Override any gcc2 internal prototype to avoid an error. */
4521/* We use char because int might match the return type of a gcc2
4522 builtin and then its argument prototype would still apply. */
4523char $ac_func();
4524
4525int main() {
4526
4527/* The GNU C library defines this for functions which it implements
4528 to always fail with ENOSYS. Some functions are actually named
4529 something starting with __ and the normal name is an alias. */
4530#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4531choke me
4532#else
4533$ac_func();
4534#endif
4535
4536; return 0; }
4537EOF
c8cca39f 4538if { (eval echo configure:4539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c906108c
SS
4539 rm -rf conftest*
4540 eval "ac_cv_func_$ac_func=yes"
4541else
4542 echo "configure: failed program was:" >&5
4543 cat conftest.$ac_ext >&5
4544 rm -rf conftest*
4545 eval "ac_cv_func_$ac_func=no"
4546fi
4547rm -f conftest*
4548fi
4549
4550if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4551 echo "$ac_t""yes" 1>&6
4552 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4553 cat >> confdefs.h <<EOF
4554#define $ac_tr_func 1
4555EOF
4556
4557else
4558 echo "$ac_t""no" 1>&6
4559fi
4560done
4561
4562
4563
4564
4565trap '' 1 2 15
4566cat > confcache <<\EOF
4567# This file is a shell script that caches the results of configure
4568# tests run on this system so they can be shared between configure
4569# scripts and configure runs. It is not useful on other systems.
4570# If it contains results you don't want to keep, you may remove or edit it.
4571#
4572# By default, configure uses ./config.cache as the cache file,
4573# creating it if it does not exist already. You can give configure
4574# the --cache-file=FILE option to use a different cache file; that is
4575# what configure does when it calls configure scripts in
4576# subdirectories, so they share the cache.
4577# Giving --cache-file=/dev/null disables caching, for debugging configure.
4578# config.status only pays attention to the cache file if you give it the
4579# --recheck option to rerun configure.
4580#
4581EOF
4582# The following way of writing the cache mishandles newlines in values,
4583# but we know of no workaround that is simple, portable, and efficient.
4584# So, don't put newlines in cache variables' values.
4585# Ultrix sh set writes to stderr and can't be redirected directly,
4586# and sets the high bit in the cache file unless we assign to the vars.
4587(set) 2>&1 |
7a292a7a 4588 case `(ac_space=' '; set | grep ac_space) 2>&1` in
c906108c
SS
4589 *ac_space=\ *)
4590 # `set' does not quote correctly, so add quotes (double-quote substitution
4591 # turns \\\\ into \\, and sed turns \\ into \).
4592 sed -n \
4593 -e "s/'/'\\\\''/g" \
4594 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4595 ;;
4596 *)
4597 # `set' quotes correctly as required by POSIX, so do not add quotes.
4598 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4599 ;;
4600 esac >> confcache
4601if cmp -s $cache_file confcache; then
4602 :
4603else
4604 if test -w $cache_file; then
4605 echo "updating cache $cache_file"
4606 cat confcache > $cache_file
4607 else
4608 echo "not updating unwritable cache $cache_file"
4609 fi
4610fi
4611rm -f confcache
4612
4613trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4614
4615test "x$prefix" = xNONE && prefix=$ac_default_prefix
4616# Let make expand exec_prefix.
4617test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4618
4619# Any assignment to VPATH causes Sun make to only execute
4620# the first set of double-colon rules, so remove it if not needed.
4621# If there is a colon in the path, we need to keep it.
4622if test "x$srcdir" = x.; then
4623 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4624fi
4625
4626trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4627
4628DEFS=-DHAVE_CONFIG_H
4629
4630# Without the "./", some shells look in PATH for config.status.
4631: ${CONFIG_STATUS=./config.status}
4632
4633echo creating $CONFIG_STATUS
4634rm -f $CONFIG_STATUS
4635cat > $CONFIG_STATUS <<EOF
4636#! /bin/sh
4637# Generated automatically by configure.
4638# Run this file to recreate the current configuration.
4639# This directory was configured as follows,
4640# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4641#
4642# $0 $ac_configure_args
4643#
4644# Compiler output produced by configure, useful for debugging
4645# configure, is in ./config.log if it exists.
4646
4647ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4648for ac_option
4649do
4650 case "\$ac_option" in
4651 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4652 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4653 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4654 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7a292a7a 4655 echo "$CONFIG_STATUS generated by autoconf version 2.13"
c906108c
SS
4656 exit 0 ;;
4657 -help | --help | --hel | --he | --h)
4658 echo "\$ac_cs_usage"; exit 0 ;;
4659 *) echo "\$ac_cs_usage"; exit 1 ;;
4660 esac
4661done
4662
4663ac_given_srcdir=$srcdir
4664ac_given_INSTALL="$INSTALL"
4665
4666trap 'rm -fr `echo "Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4667EOF
4668cat >> $CONFIG_STATUS <<EOF
4669
4670# Protect against being on the right side of a sed subst in config.status.
4671sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4672 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4673$ac_vpsub
4674$extrasub
4675s%@sim_environment@%$sim_environment%g
4676s%@sim_alignment@%$sim_alignment%g
4677s%@sim_assert@%$sim_assert%g
4678s%@sim_bitsize@%$sim_bitsize%g
4679s%@sim_endian@%$sim_endian%g
4680s%@sim_hostendian@%$sim_hostendian%g
4681s%@sim_float@%$sim_float%g
4682s%@sim_scache@%$sim_scache%g
4683s%@sim_default_model@%$sim_default_model%g
4684s%@sim_hw_cflags@%$sim_hw_cflags%g
4685s%@sim_hw_objs@%$sim_hw_objs%g
4686s%@sim_hw@%$sim_hw%g
4687s%@sim_inline@%$sim_inline%g
4688s%@sim_packages@%$sim_packages%g
4689s%@sim_regparm@%$sim_regparm%g
4690s%@sim_reserved_bits@%$sim_reserved_bits%g
4691s%@sim_smp@%$sim_smp%g
4692s%@sim_stdcall@%$sim_stdcall%g
4693s%@sim_xor_endian@%$sim_xor_endian%g
d4f3574e
SS
4694s%@WARN_CFLAGS@%$WARN_CFLAGS%g
4695s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
c906108c
SS
4696s%@SHELL@%$SHELL%g
4697s%@CFLAGS@%$CFLAGS%g
4698s%@CPPFLAGS@%$CPPFLAGS%g
4699s%@CXXFLAGS@%$CXXFLAGS%g
7a292a7a 4700s%@FFLAGS@%$FFLAGS%g
c906108c
SS
4701s%@DEFS@%$DEFS%g
4702s%@LDFLAGS@%$LDFLAGS%g
4703s%@LIBS@%$LIBS%g
4704s%@exec_prefix@%$exec_prefix%g
4705s%@prefix@%$prefix%g
4706s%@program_transform_name@%$program_transform_name%g
4707s%@bindir@%$bindir%g
4708s%@sbindir@%$sbindir%g
4709s%@libexecdir@%$libexecdir%g
4710s%@datadir@%$datadir%g
4711s%@sysconfdir@%$sysconfdir%g
4712s%@sharedstatedir@%$sharedstatedir%g
4713s%@localstatedir@%$localstatedir%g
4714s%@libdir@%$libdir%g
4715s%@includedir@%$includedir%g
4716s%@oldincludedir@%$oldincludedir%g
4717s%@infodir@%$infodir%g
4718s%@mandir@%$mandir%g
4719s%@host@%$host%g
4720s%@host_alias@%$host_alias%g
4721s%@host_cpu@%$host_cpu%g
4722s%@host_vendor@%$host_vendor%g
4723s%@host_os@%$host_os%g
4724s%@target@%$target%g
4725s%@target_alias@%$target_alias%g
4726s%@target_cpu@%$target_cpu%g
4727s%@target_vendor@%$target_vendor%g
4728s%@target_os@%$target_os%g
4729s%@build@%$build%g
4730s%@build_alias@%$build_alias%g
4731s%@build_cpu@%$build_cpu%g
4732s%@build_vendor@%$build_vendor%g
4733s%@build_os@%$build_os%g
4734s%@CC@%$CC%g
4735s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7a292a7a 4736s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
c906108c
SS
4737s%@INSTALL_DATA@%$INSTALL_DATA%g
4738s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
4739s%@HDEFINES@%$HDEFINES%g
4740s%@AR@%$AR%g
4741s%@RANLIB@%$RANLIB%g
4742s%@SET_MAKE@%$SET_MAKE%g
4743s%@CPP@%$CPP%g
4744s%@ALLOCA@%$ALLOCA%g
4745s%@USE_NLS@%$USE_NLS%g
4746s%@MSGFMT@%$MSGFMT%g
4747s%@GMSGFMT@%$GMSGFMT%g
4748s%@XGETTEXT@%$XGETTEXT%g
4749s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4750s%@CATALOGS@%$CATALOGS%g
4751s%@CATOBJEXT@%$CATOBJEXT%g
4752s%@DATADIRNAME@%$DATADIRNAME%g
4753s%@GMOFILES@%$GMOFILES%g
4754s%@INSTOBJEXT@%$INSTOBJEXT%g
4755s%@INTLDEPS@%$INTLDEPS%g
4756s%@INTLLIBS@%$INTLLIBS%g
4757s%@INTLOBJS@%$INTLOBJS%g
4758s%@POFILES@%$POFILES%g
4759s%@POSUB@%$POSUB%g
4760s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4761s%@GT_NO@%$GT_NO%g
4762s%@GT_YES@%$GT_YES%g
4763s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4764s%@l@%$l%g
4765s%@MAINT@%$MAINT%g
4766s%@sim_bswap@%$sim_bswap%g
4767s%@sim_cflags@%$sim_cflags%g
4768s%@sim_debug@%$sim_debug%g
4769s%@sim_stdio@%$sim_stdio%g
4770s%@sim_trace@%$sim_trace%g
4771s%@sim_profile@%$sim_profile%g
4772s%@EXEEXT@%$EXEEXT%g
4773s%@SIM_SUBTARGET@%$SIM_SUBTARGET%g
4774s%@sim_igen_flags@%$sim_igen_flags%g
4775s%@sim_m16_flags@%$sim_m16_flags%g
4776s%@sim_gen@%$sim_gen%g
4777s%@mips_extra_objs@%$mips_extra_objs%g
4778s%@mips_igen_engine@%$mips_igen_engine%g
4779s%@mips_extra_libs@%$mips_extra_libs%g
4780
4781CEOF
4782EOF
4783
4784cat >> $CONFIG_STATUS <<\EOF
4785
4786# Split the substitutions into bite-sized pieces for seds with
4787# small command number limits, like on Digital OSF/1 and HP-UX.
4788ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4789ac_file=1 # Number of current file.
4790ac_beg=1 # First line for current file.
4791ac_end=$ac_max_sed_cmds # Line after last line for current file.
4792ac_more_lines=:
4793ac_sed_cmds=""
4794while $ac_more_lines; do
4795 if test $ac_beg -gt 1; then
4796 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4797 else
4798 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4799 fi
4800 if test ! -s conftest.s$ac_file; then
4801 ac_more_lines=false
4802 rm -f conftest.s$ac_file
4803 else
4804 if test -z "$ac_sed_cmds"; then
4805 ac_sed_cmds="sed -f conftest.s$ac_file"
4806 else
4807 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4808 fi
4809 ac_file=`expr $ac_file + 1`
4810 ac_beg=$ac_end
4811 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4812 fi
4813done
4814if test -z "$ac_sed_cmds"; then
4815 ac_sed_cmds=cat
4816fi
4817EOF
4818
4819cat >> $CONFIG_STATUS <<EOF
4820
4821CONFIG_FILES=\${CONFIG_FILES-"Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"}
4822EOF
4823cat >> $CONFIG_STATUS <<\EOF
4824for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4825 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4826 case "$ac_file" in
4827 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4828 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4829 *) ac_file_in="${ac_file}.in" ;;
4830 esac
4831
4832 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4833
4834 # Remove last slash and all that follows it. Not all systems have dirname.
4835 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4836 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4837 # The file is in a subdirectory.
4838 test ! -d "$ac_dir" && mkdir "$ac_dir"
4839 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4840 # A "../" for each directory in $ac_dir_suffix.
4841 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4842 else
4843 ac_dir_suffix= ac_dots=
4844 fi
4845
4846 case "$ac_given_srcdir" in
4847 .) srcdir=.
4848 if test -z "$ac_dots"; then top_srcdir=.
4849 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4850 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4851 *) # Relative path.
4852 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4853 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4854 esac
4855
4856 case "$ac_given_INSTALL" in
4857 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4858 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4859 esac
4860
4861 echo creating "$ac_file"
4862 rm -f "$ac_file"
4863 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4864 case "$ac_file" in
4865 *Makefile*) ac_comsub="1i\\
4866# $configure_input" ;;
4867 *) ac_comsub= ;;
4868 esac
4869
4870 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4871 sed -e "$ac_comsub
4872s%@configure_input@%$configure_input%g
4873s%@srcdir@%$srcdir%g
4874s%@top_srcdir@%$top_srcdir%g
4875s%@INSTALL@%$INSTALL%g
4876" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4877fi; done
4878rm -f conftest.s*
4879
4880# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4881# NAME is the cpp macro being defined and VALUE is the value it is being given.
4882#
4883# ac_d sets the value in "#define NAME VALUE" lines.
4884ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4885ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4886ac_dC='\3'
4887ac_dD='%g'
4888# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4889ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4890ac_uB='\([ ]\)%\1#\2define\3'
4891ac_uC=' '
4892ac_uD='\4%g'
4893# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4894ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4895ac_eB='$%\1#\2define\3'
4896ac_eC=' '
4897ac_eD='%g'
4898
4899if test "${CONFIG_HEADERS+set}" != set; then
4900EOF
4901cat >> $CONFIG_STATUS <<EOF
4902 CONFIG_HEADERS="config.h:config.in"
4903EOF
4904cat >> $CONFIG_STATUS <<\EOF
4905fi
4906for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4907 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4908 case "$ac_file" in
4909 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4910 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4911 *) ac_file_in="${ac_file}.in" ;;
4912 esac
4913
4914 echo creating $ac_file
4915
4916 rm -f conftest.frag conftest.in conftest.out
4917 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4918 cat $ac_file_inputs > conftest.in
4919
4920EOF
4921
4922# Transform confdefs.h into a sed script conftest.vals that substitutes
4923# the proper values into config.h.in to produce config.h. And first:
4924# Protect against being on the right side of a sed subst in config.status.
4925# Protect against being in an unquoted here document in config.status.
4926rm -f conftest.vals
4927cat > conftest.hdr <<\EOF
4928s/[\\&%]/\\&/g
4929s%[\\$`]%\\&%g
4930s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4931s%ac_d%ac_u%gp
4932s%ac_u%ac_e%gp
4933EOF
4934sed -n -f conftest.hdr confdefs.h > conftest.vals
4935rm -f conftest.hdr
4936
4937# This sed command replaces #undef with comments. This is necessary, for
4938# example, in the case of _POSIX_SOURCE, which is predefined and required
4939# on some systems where configure will not decide to define it.
4940cat >> conftest.vals <<\EOF
4941s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4942EOF
4943
4944# Break up conftest.vals because some shells have a limit on
4945# the size of here documents, and old seds have small limits too.
4946
4947rm -f conftest.tail
4948while :
4949do
4950 ac_lines=`grep -c . conftest.vals`
4951 # grep -c gives empty output for an empty file on some AIX systems.
4952 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4953 # Write a limited-size here document to conftest.frag.
4954 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4955 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4956 echo 'CEOF
4957 sed -f conftest.frag conftest.in > conftest.out
4958 rm -f conftest.in
4959 mv conftest.out conftest.in
4960' >> $CONFIG_STATUS
4961 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4962 rm -f conftest.vals
4963 mv conftest.tail conftest.vals
4964done
4965rm -f conftest.vals
4966
4967cat >> $CONFIG_STATUS <<\EOF
4968 rm -f conftest.frag conftest.h
4969 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4970 cat conftest.in >> conftest.h
4971 rm -f conftest.in
4972 if cmp -s $ac_file conftest.h 2>/dev/null; then
4973 echo "$ac_file is unchanged"
4974 rm -f conftest.h
4975 else
4976 # Remove last slash and all that follows it. Not all systems have dirname.
4977 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4978 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4979 # The file is in a subdirectory.
4980 test ! -d "$ac_dir" && mkdir "$ac_dir"
4981 fi
4982 rm -f $ac_file
4983 mv conftest.h $ac_file
4984 fi
4985fi; done
4986
4987EOF
4988
4989cat >> $CONFIG_STATUS <<EOF
4990ac_sources="$sim_link_files"
4991ac_dests="$sim_link_links"
4992EOF
4993
4994cat >> $CONFIG_STATUS <<\EOF
4995srcdir=$ac_given_srcdir
4996while test -n "$ac_sources"; do
4997 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4998 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4999
5000 echo "linking $srcdir/$ac_source to $ac_dest"
5001
5002 if test ! -r $srcdir/$ac_source; then
5003 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5004 fi
5005 rm -f $ac_dest
5006
5007 # Make relative symlinks.
5008 # Remove last slash and all that follows it. Not all systems have dirname.
5009 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5010 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5011 # The dest file is in a subdirectory.
5012 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5013 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5014 # A "../" for each directory in $ac_dest_dir_suffix.
5015 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5016 else
5017 ac_dest_dir_suffix= ac_dots=
5018 fi
5019
5020 case "$srcdir" in
5021 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5022 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5023 esac
5024
5025 # Make a symlink if possible; otherwise try a hard link.
5026 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5027 ln $srcdir/$ac_source $ac_dest; then :
5028 else
5029 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5030 fi
5031done
5032EOF
5033cat >> $CONFIG_STATUS <<EOF
5034
5035EOF
5036cat >> $CONFIG_STATUS <<\EOF
5037case "x$CONFIG_FILES" in
5038 xMakefile*)
5039 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
5040 rm -f Makesim1.tmp Makesim2.tmp Makefile
5041 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
5042 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
5043 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
5044 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
5045 <Makefile.sim >Makefile
5046 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
5047 ;;
5048 esac
5049 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
5050
5051exit 0
5052EOF
5053chmod +x $CONFIG_STATUS
5054rm -fr confdefs* $ac_clean_files
5055test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5056
5057
This page took 0.360296 seconds and 4 git commands to generate.