Only enable H/W on some mips targets.
[binutils-gdb.git] / sim / w65 / configure
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
45 sim_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
79
80
81 # This file is derived from `gettext.m4'. The difference is that the
82 # included macros assume Cygnus-style source and build trees.
83
84 # Macro to add for using GNU gettext.
85 # Ulrich Drepper <drepper@cygnus.com>, 1995.
86 #
87 # This file file be copied and used freely without restrictions. It can
88 # be used in projects which are not available under the GNU Public License
89 # but which still want to provide support for the GNU gettext functionality.
90 # Please note that the actual code is *not* freely available.
91
92 # serial 3
93
94
95
96
97
98 # Search path for a program which passes the given test.
99 # Ulrich Drepper <drepper@cygnus.com>, 1996.
100 #
101 # This file file be copied and used freely without restrictions. It can
102 # be used in projects which are not available under the GNU Public License
103 # but which still want to provide support for the GNU gettext functionality.
104 # Please note that the actual code is *not* freely available.
105
106 # serial 1
107
108
109
110 # Check whether LC_MESSAGES is available in <locale.h>.
111 # Ulrich Drepper <drepper@cygnus.com>, 1995.
112 #
113 # This file file be copied and used freely without restrictions. It can
114 # be used in projects which are not available under the GNU Public License
115 # but which still want to provide support for the GNU gettext functionality.
116 # Please note that the actual code is *not* freely available.
117
118 # serial 1
119
120
121
122 # Check to see if we're running under Cygwin32, without using
123 # AC_CANONICAL_*. If so, set output variable CYGWIN32 to "yes".
124 # Otherwise set it to "no".
125
126
127
128 # Check to see if we're running under Win32, without using
129 # AC_CANONICAL_*. If so, set output variable EXEEXT to ".exe".
130 # Otherwise set it to "".
131
132
133
134
135 # Guess values for system-dependent variables and create Makefiles.
136 # Generated automatically using autoconf version 2.12.1
137 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
138 #
139 # This configure script is free software; the Free Software Foundation
140 # gives unlimited permission to copy, distribute and modify it.
141
142 # Defaults:
143 ac_help=
144 ac_default_prefix=/usr/local
145 # Any additions from configure.in:
146 ac_help="$ac_help
147 --disable-nls do not use Native Language Support"
148 ac_help="$ac_help
149 --with-included-gettext use the GNU gettext library included here"
150
151 # Initialize some variables set by options.
152 # The variables have the same names as the options, with
153 # dashes changed to underlines.
154 build=NONE
155 cache_file=./config.cache
156 exec_prefix=NONE
157 host=NONE
158 no_create=
159 nonopt=NONE
160 no_recursion=
161 prefix=NONE
162 program_prefix=NONE
163 program_suffix=NONE
164 program_transform_name=s,x,x,
165 silent=
166 site=
167 srcdir=
168 target=NONE
169 verbose=
170 x_includes=NONE
171 x_libraries=NONE
172 bindir='${exec_prefix}/bin'
173 sbindir='${exec_prefix}/sbin'
174 libexecdir='${exec_prefix}/libexec'
175 datadir='${prefix}/share'
176 sysconfdir='${prefix}/etc'
177 sharedstatedir='${prefix}/com'
178 localstatedir='${prefix}/var'
179 libdir='${exec_prefix}/lib'
180 includedir='${prefix}/include'
181 oldincludedir='/usr/include'
182 infodir='${prefix}/info'
183 mandir='${prefix}/man'
184
185 # Initialize some other variables.
186 subdirs=
187 MFLAGS= MAKEFLAGS=
188 SHELL=${CONFIG_SHELL-/bin/sh}
189 # Maximum number of lines to put in a shell here document.
190 ac_max_here_lines=12
191
192 ac_prev=
193 for ac_option
194 do
195
196 # If the previous option needs an argument, assign it.
197 if test -n "$ac_prev"; then
198 eval "$ac_prev=\$ac_option"
199 ac_prev=
200 continue
201 fi
202
203 case "$ac_option" in
204 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
205 *) ac_optarg= ;;
206 esac
207
208 # Accept the important Cygnus configure options, so we can diagnose typos.
209
210 case "$ac_option" in
211
212 -bindir | --bindir | --bindi | --bind | --bin | --bi)
213 ac_prev=bindir ;;
214 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
215 bindir="$ac_optarg" ;;
216
217 -build | --build | --buil | --bui | --bu)
218 ac_prev=build ;;
219 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
220 build="$ac_optarg" ;;
221
222 -cache-file | --cache-file | --cache-fil | --cache-fi \
223 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
224 ac_prev=cache_file ;;
225 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
226 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
227 cache_file="$ac_optarg" ;;
228
229 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
230 ac_prev=datadir ;;
231 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
232 | --da=*)
233 datadir="$ac_optarg" ;;
234
235 -disable-* | --disable-*)
236 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
237 # Reject names that are not valid shell variable names.
238 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
239 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
240 fi
241 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
242 eval "enable_${ac_feature}=no" ;;
243
244 -enable-* | --enable-*)
245 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
246 # Reject names that are not valid shell variable names.
247 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
248 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
249 fi
250 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
251 case "$ac_option" in
252 *=*) ;;
253 *) ac_optarg=yes ;;
254 esac
255 eval "enable_${ac_feature}='$ac_optarg'" ;;
256
257 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
258 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
259 | --exec | --exe | --ex)
260 ac_prev=exec_prefix ;;
261 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
262 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
263 | --exec=* | --exe=* | --ex=*)
264 exec_prefix="$ac_optarg" ;;
265
266 -gas | --gas | --ga | --g)
267 # Obsolete; use --with-gas.
268 with_gas=yes ;;
269
270 -help | --help | --hel | --he)
271 # Omit some internal or obsolete options to make the list less imposing.
272 # This message is too long to be a string in the A/UX 3.1 sh.
273 cat << EOF
274 Usage: configure [options] [host]
275 Options: [defaults in brackets after descriptions]
276 Configuration:
277 --cache-file=FILE cache test results in FILE
278 --help print this message
279 --no-create do not create output files
280 --quiet, --silent do not print \`checking...' messages
281 --version print the version of autoconf that created configure
282 Directory and file names:
283 --prefix=PREFIX install architecture-independent files in PREFIX
284 [$ac_default_prefix]
285 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
286 [same as prefix]
287 --bindir=DIR user executables in DIR [EPREFIX/bin]
288 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
289 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
290 --datadir=DIR read-only architecture-independent data in DIR
291 [PREFIX/share]
292 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
293 --sharedstatedir=DIR modifiable architecture-independent data in DIR
294 [PREFIX/com]
295 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
296 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
297 --includedir=DIR C header files in DIR [PREFIX/include]
298 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
299 --infodir=DIR info documentation in DIR [PREFIX/info]
300 --mandir=DIR man documentation in DIR [PREFIX/man]
301 --srcdir=DIR find the sources in DIR [configure dir or ..]
302 --program-prefix=PREFIX prepend PREFIX to installed program names
303 --program-suffix=SUFFIX append SUFFIX to installed program names
304 --program-transform-name=PROGRAM
305 run sed PROGRAM on installed program names
306 EOF
307 cat << EOF
308 Host type:
309 --build=BUILD configure for building on BUILD [BUILD=HOST]
310 --host=HOST configure for HOST [guessed]
311 --target=TARGET configure for TARGET [TARGET=HOST]
312 Features and packages:
313 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
314 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
315 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
316 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
317 --x-includes=DIR X include files are in DIR
318 --x-libraries=DIR X library files are in DIR
319 EOF
320 if test -n "$ac_help"; then
321 echo "--enable and --with options recognized:$ac_help"
322 fi
323 exit 0 ;;
324
325 -host | --host | --hos | --ho)
326 ac_prev=host ;;
327 -host=* | --host=* | --hos=* | --ho=*)
328 host="$ac_optarg" ;;
329
330 -includedir | --includedir | --includedi | --included | --include \
331 | --includ | --inclu | --incl | --inc)
332 ac_prev=includedir ;;
333 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
334 | --includ=* | --inclu=* | --incl=* | --inc=*)
335 includedir="$ac_optarg" ;;
336
337 -infodir | --infodir | --infodi | --infod | --info | --inf)
338 ac_prev=infodir ;;
339 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
340 infodir="$ac_optarg" ;;
341
342 -libdir | --libdir | --libdi | --libd)
343 ac_prev=libdir ;;
344 -libdir=* | --libdir=* | --libdi=* | --libd=*)
345 libdir="$ac_optarg" ;;
346
347 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
348 | --libexe | --libex | --libe)
349 ac_prev=libexecdir ;;
350 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
351 | --libexe=* | --libex=* | --libe=*)
352 libexecdir="$ac_optarg" ;;
353
354 -localstatedir | --localstatedir | --localstatedi | --localstated \
355 | --localstate | --localstat | --localsta | --localst \
356 | --locals | --local | --loca | --loc | --lo)
357 ac_prev=localstatedir ;;
358 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
359 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
360 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
361 localstatedir="$ac_optarg" ;;
362
363 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
364 ac_prev=mandir ;;
365 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
366 mandir="$ac_optarg" ;;
367
368 -nfp | --nfp | --nf)
369 # Obsolete; use --without-fp.
370 with_fp=no ;;
371
372 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
373 | --no-cr | --no-c)
374 no_create=yes ;;
375
376 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
377 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
378 no_recursion=yes ;;
379
380 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
381 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
382 | --oldin | --oldi | --old | --ol | --o)
383 ac_prev=oldincludedir ;;
384 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
385 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
386 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
387 oldincludedir="$ac_optarg" ;;
388
389 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
390 ac_prev=prefix ;;
391 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
392 prefix="$ac_optarg" ;;
393
394 -program-prefix | --program-prefix | --program-prefi | --program-pref \
395 | --program-pre | --program-pr | --program-p)
396 ac_prev=program_prefix ;;
397 -program-prefix=* | --program-prefix=* | --program-prefi=* \
398 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
399 program_prefix="$ac_optarg" ;;
400
401 -program-suffix | --program-suffix | --program-suffi | --program-suff \
402 | --program-suf | --program-su | --program-s)
403 ac_prev=program_suffix ;;
404 -program-suffix=* | --program-suffix=* | --program-suffi=* \
405 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
406 program_suffix="$ac_optarg" ;;
407
408 -program-transform-name | --program-transform-name \
409 | --program-transform-nam | --program-transform-na \
410 | --program-transform-n | --program-transform- \
411 | --program-transform | --program-transfor \
412 | --program-transfo | --program-transf \
413 | --program-trans | --program-tran \
414 | --progr-tra | --program-tr | --program-t)
415 ac_prev=program_transform_name ;;
416 -program-transform-name=* | --program-transform-name=* \
417 | --program-transform-nam=* | --program-transform-na=* \
418 | --program-transform-n=* | --program-transform-=* \
419 | --program-transform=* | --program-transfor=* \
420 | --program-transfo=* | --program-transf=* \
421 | --program-trans=* | --program-tran=* \
422 | --progr-tra=* | --program-tr=* | --program-t=*)
423 program_transform_name="$ac_optarg" ;;
424
425 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
426 | -silent | --silent | --silen | --sile | --sil)
427 silent=yes ;;
428
429 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
430 ac_prev=sbindir ;;
431 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
432 | --sbi=* | --sb=*)
433 sbindir="$ac_optarg" ;;
434
435 -sharedstatedir | --sharedstatedir | --sharedstatedi \
436 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
437 | --sharedst | --shareds | --shared | --share | --shar \
438 | --sha | --sh)
439 ac_prev=sharedstatedir ;;
440 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
441 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
442 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
443 | --sha=* | --sh=*)
444 sharedstatedir="$ac_optarg" ;;
445
446 -site | --site | --sit)
447 ac_prev=site ;;
448 -site=* | --site=* | --sit=*)
449 site="$ac_optarg" ;;
450
451 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
452 ac_prev=srcdir ;;
453 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
454 srcdir="$ac_optarg" ;;
455
456 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
457 | --syscon | --sysco | --sysc | --sys | --sy)
458 ac_prev=sysconfdir ;;
459 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
460 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
461 sysconfdir="$ac_optarg" ;;
462
463 -target | --target | --targe | --targ | --tar | --ta | --t)
464 ac_prev=target ;;
465 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
466 target="$ac_optarg" ;;
467
468 -v | -verbose | --verbose | --verbos | --verbo | --verb)
469 verbose=yes ;;
470
471 -version | --version | --versio | --versi | --vers)
472 echo "configure generated by autoconf version 2.12.1"
473 exit 0 ;;
474
475 -with-* | --with-*)
476 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
477 # Reject names that are not valid shell variable names.
478 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
479 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
480 fi
481 ac_package=`echo $ac_package| sed 's/-/_/g'`
482 case "$ac_option" in
483 *=*) ;;
484 *) ac_optarg=yes ;;
485 esac
486 eval "with_${ac_package}='$ac_optarg'" ;;
487
488 -without-* | --without-*)
489 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
490 # Reject names that are not valid shell variable names.
491 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
492 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
493 fi
494 ac_package=`echo $ac_package| sed 's/-/_/g'`
495 eval "with_${ac_package}=no" ;;
496
497 --x)
498 # Obsolete; use --with-x.
499 with_x=yes ;;
500
501 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
502 | --x-incl | --x-inc | --x-in | --x-i)
503 ac_prev=x_includes ;;
504 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
505 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
506 x_includes="$ac_optarg" ;;
507
508 -x-libraries | --x-libraries | --x-librarie | --x-librari \
509 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
510 ac_prev=x_libraries ;;
511 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
512 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
513 x_libraries="$ac_optarg" ;;
514
515 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
516 ;;
517
518 *)
519 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
520 echo "configure: warning: $ac_option: invalid host type" 1>&2
521 fi
522 if test "x$nonopt" != xNONE; then
523 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
524 fi
525 nonopt="$ac_option"
526 ;;
527
528 esac
529 done
530
531 if test -n "$ac_prev"; then
532 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
533 fi
534
535 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
536
537 # File descriptor usage:
538 # 0 standard input
539 # 1 file creation
540 # 2 errors and warnings
541 # 3 some systems may open it to /dev/tty
542 # 4 used on the Kubota Titan
543 # 6 checking for... messages and results
544 # 5 compiler messages saved in config.log
545 if test "$silent" = yes; then
546 exec 6>/dev/null
547 else
548 exec 6>&1
549 fi
550 exec 5>./config.log
551
552 echo "\
553 This file contains any messages produced by compilers while
554 running configure, to aid debugging if configure makes a mistake.
555 " 1>&5
556
557 # Strip out --no-create and --no-recursion so they do not pile up.
558 # Also quote any args containing shell metacharacters.
559 ac_configure_args=
560 for ac_arg
561 do
562 case "$ac_arg" in
563 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
564 | --no-cr | --no-c) ;;
565 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
566 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
567 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
568 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
569 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
570 esac
571 done
572
573 # NLS nuisances.
574 # Only set these to C if already set. These must not be set unconditionally
575 # because not all systems understand e.g. LANG=C (notably SCO).
576 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
577 # Non-C LC_CTYPE values break the ctype check.
578 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
579 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
580 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
581 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
582
583 # confdefs.h avoids OS command line length limits that DEFS can exceed.
584 rm -rf conftest* confdefs.h
585 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
586 echo > confdefs.h
587
588 # A filename unique to this package, relative to the directory that
589 # configure is in, which we can look for to find out if srcdir is correct.
590 ac_unique_file=Makefile.in
591
592 # Find the source files, if location was not specified.
593 if test -z "$srcdir"; then
594 ac_srcdir_defaulted=yes
595 # Try the directory containing this script, then its parent.
596 ac_prog=$0
597 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
598 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
599 srcdir=$ac_confdir
600 if test ! -r $srcdir/$ac_unique_file; then
601 srcdir=..
602 fi
603 else
604 ac_srcdir_defaulted=no
605 fi
606 if test ! -r $srcdir/$ac_unique_file; then
607 if test "$ac_srcdir_defaulted" = yes; then
608 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
609 else
610 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
611 fi
612 fi
613 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
614
615 # Prefer explicitly selected file to automatically selected ones.
616 if test -z "$CONFIG_SITE"; then
617 if test "x$prefix" != xNONE; then
618 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
619 else
620 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
621 fi
622 fi
623 for ac_site_file in $CONFIG_SITE; do
624 if test -r "$ac_site_file"; then
625 echo "loading site script $ac_site_file"
626 . "$ac_site_file"
627 fi
628 done
629
630 if test -r "$cache_file"; then
631 echo "loading cache $cache_file"
632 . $cache_file
633 else
634 echo "creating cache $cache_file"
635 > $cache_file
636 fi
637
638 ac_ext=c
639 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
640 ac_cpp='$CPP $CPPFLAGS'
641 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
642 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
643 cross_compiling=$ac_cv_prog_cc_cross
644
645 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
646 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
647 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
648 ac_n= ac_c='
649 ' ac_t=' '
650 else
651 ac_n=-n ac_c= ac_t=
652 fi
653 else
654 ac_n= ac_c='\c' ac_t=
655 fi
656
657
658
659
660
661 ac_aux_dir=
662 for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do
663 if test -f $ac_dir/install-sh; then
664 ac_aux_dir=$ac_dir
665 ac_install_sh="$ac_aux_dir/install-sh -c"
666 break
667 elif test -f $ac_dir/install.sh; then
668 ac_aux_dir=$ac_dir
669 ac_install_sh="$ac_aux_dir/install.sh -c"
670 break
671 fi
672 done
673 if test -z "$ac_aux_dir"; then
674 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
675 fi
676 ac_config_guess=$ac_aux_dir/config.guess
677 ac_config_sub=$ac_aux_dir/config.sub
678 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
679
680
681 # Do some error checking and defaulting for the host and target type.
682 # The inputs are:
683 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
684 #
685 # The rules are:
686 # 1. You are not allowed to specify --host, --target, and nonopt at the
687 # same time.
688 # 2. Host defaults to nonopt.
689 # 3. If nonopt is not specified, then host defaults to the current host,
690 # as determined by config.guess.
691 # 4. Target and build default to nonopt.
692 # 5. If nonopt is not specified, then target and build default to host.
693
694 # The aliases save the names the user supplied, while $host etc.
695 # will get canonicalized.
696 case $host---$target---$nonopt in
697 NONE---*---* | *---NONE---* | *---*---NONE) ;;
698 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
699 esac
700
701
702 # Make sure we can run config.sub.
703 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
704 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
705 fi
706
707 echo $ac_n "checking host system type""... $ac_c" 1>&6
708 echo "configure:709: checking host system type" >&5
709
710 host_alias=$host
711 case "$host_alias" in
712 NONE)
713 case $nonopt in
714 NONE)
715 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
716 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
717 fi ;;
718 *) host_alias=$nonopt ;;
719 esac ;;
720 esac
721
722 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
723 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
724 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
725 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
726 echo "$ac_t""$host" 1>&6
727
728 echo $ac_n "checking target system type""... $ac_c" 1>&6
729 echo "configure:730: checking target system type" >&5
730
731 target_alias=$target
732 case "$target_alias" in
733 NONE)
734 case $nonopt in
735 NONE) target_alias=$host_alias ;;
736 *) target_alias=$nonopt ;;
737 esac ;;
738 esac
739
740 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
741 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
742 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
743 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
744 echo "$ac_t""$target" 1>&6
745
746 echo $ac_n "checking build system type""... $ac_c" 1>&6
747 echo "configure:748: checking build system type" >&5
748
749 build_alias=$build
750 case "$build_alias" in
751 NONE)
752 case $nonopt in
753 NONE) build_alias=$host_alias ;;
754 *) build_alias=$nonopt ;;
755 esac ;;
756 esac
757
758 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
759 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
760 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
761 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
762 echo "$ac_t""$build" 1>&6
763
764 test "$host_alias" != "$target_alias" &&
765 test "$program_prefix$program_suffix$program_transform_name" = \
766 NONENONEs,x,x, &&
767 program_prefix=${target_alias}-
768
769 if test "$program_transform_name" = s,x,x,; then
770 program_transform_name=
771 else
772 # Double any \ or $. echo might interpret backslashes.
773 cat <<\EOF_SED > conftestsed
774 s,\\,\\\\,g; s,\$,$$,g
775 EOF_SED
776 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
777 rm -f conftestsed
778 fi
779 test "$program_prefix" != NONE &&
780 program_transform_name="s,^,${program_prefix},; $program_transform_name"
781 # Use a double $ so make ignores it.
782 test "$program_suffix" != NONE &&
783 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
784
785 # sed with no file args requires a program.
786 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
787
788 # Extract the first word of "gcc", so it can be a program name with args.
789 set dummy gcc; ac_word=$2
790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
791 echo "configure:792: checking for $ac_word" >&5
792 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
793 echo $ac_n "(cached) $ac_c" 1>&6
794 else
795 if test -n "$CC"; then
796 ac_cv_prog_CC="$CC" # Let the user override the test.
797 else
798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
799 for ac_dir in $PATH; do
800 test -z "$ac_dir" && ac_dir=.
801 if test -f $ac_dir/$ac_word; then
802 ac_cv_prog_CC="gcc"
803 break
804 fi
805 done
806 IFS="$ac_save_ifs"
807 fi
808 fi
809 CC="$ac_cv_prog_CC"
810 if test -n "$CC"; then
811 echo "$ac_t""$CC" 1>&6
812 else
813 echo "$ac_t""no" 1>&6
814 fi
815
816 if test -z "$CC"; then
817 # Extract the first word of "cc", so it can be a program name with args.
818 set dummy cc; ac_word=$2
819 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
820 echo "configure:821: checking for $ac_word" >&5
821 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
822 echo $ac_n "(cached) $ac_c" 1>&6
823 else
824 if test -n "$CC"; then
825 ac_cv_prog_CC="$CC" # Let the user override the test.
826 else
827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
828 ac_prog_rejected=no
829 for ac_dir in $PATH; do
830 test -z "$ac_dir" && ac_dir=.
831 if test -f $ac_dir/$ac_word; then
832 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
833 ac_prog_rejected=yes
834 continue
835 fi
836 ac_cv_prog_CC="cc"
837 break
838 fi
839 done
840 IFS="$ac_save_ifs"
841 if test $ac_prog_rejected = yes; then
842 # We found a bogon in the path, so make sure we never use it.
843 set dummy $ac_cv_prog_CC
844 shift
845 if test $# -gt 0; then
846 # We chose a different compiler from the bogus one.
847 # However, it has the same basename, so the bogon will be chosen
848 # first if we set CC to just the basename; use the full file name.
849 shift
850 set dummy "$ac_dir/$ac_word" "$@"
851 shift
852 ac_cv_prog_CC="$@"
853 fi
854 fi
855 fi
856 fi
857 CC="$ac_cv_prog_CC"
858 if test -n "$CC"; then
859 echo "$ac_t""$CC" 1>&6
860 else
861 echo "$ac_t""no" 1>&6
862 fi
863
864 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
865 fi
866
867 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
868 echo "configure:869: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
869
870 ac_ext=c
871 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
872 ac_cpp='$CPP $CPPFLAGS'
873 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
874 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
875 cross_compiling=$ac_cv_prog_cc_cross
876
877 cat > conftest.$ac_ext <<EOF
878 #line 879 "configure"
879 #include "confdefs.h"
880 main(){return(0);}
881 EOF
882 if { (eval echo configure:883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
883 ac_cv_prog_cc_works=yes
884 # If we can't run a trivial program, we are probably using a cross compiler.
885 if (./conftest; exit) 2>/dev/null; then
886 ac_cv_prog_cc_cross=no
887 else
888 ac_cv_prog_cc_cross=yes
889 fi
890 else
891 echo "configure: failed program was:" >&5
892 cat conftest.$ac_ext >&5
893 ac_cv_prog_cc_works=no
894 fi
895 rm -fr conftest*
896
897 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
898 if test $ac_cv_prog_cc_works = no; then
899 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
900 fi
901 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
902 echo "configure:903: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
903 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
904 cross_compiling=$ac_cv_prog_cc_cross
905
906 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
907 echo "configure:908: checking whether we are using GNU C" >&5
908 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
909 echo $ac_n "(cached) $ac_c" 1>&6
910 else
911 cat > conftest.c <<EOF
912 #ifdef __GNUC__
913 yes;
914 #endif
915 EOF
916 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
917 ac_cv_prog_gcc=yes
918 else
919 ac_cv_prog_gcc=no
920 fi
921 fi
922
923 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
924
925 if test $ac_cv_prog_gcc = yes; then
926 GCC=yes
927 ac_test_CFLAGS="${CFLAGS+set}"
928 ac_save_CFLAGS="$CFLAGS"
929 CFLAGS=
930 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
931 echo "configure:932: checking whether ${CC-cc} accepts -g" >&5
932 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
933 echo $ac_n "(cached) $ac_c" 1>&6
934 else
935 echo 'void f(){}' > conftest.c
936 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
937 ac_cv_prog_cc_g=yes
938 else
939 ac_cv_prog_cc_g=no
940 fi
941 rm -f conftest*
942
943 fi
944
945 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
946 if test "$ac_test_CFLAGS" = set; then
947 CFLAGS="$ac_save_CFLAGS"
948 elif test $ac_cv_prog_cc_g = yes; then
949 CFLAGS="-g -O2"
950 else
951 CFLAGS="-O2"
952 fi
953 else
954 GCC=
955 test "${CFLAGS+set}" = set || CFLAGS="-g"
956 fi
957
958 # Find a good install program. We prefer a C program (faster),
959 # so one script is as good as another. But avoid the broken or
960 # incompatible versions:
961 # SysV /etc/install, /usr/sbin/install
962 # SunOS /usr/etc/install
963 # IRIX /sbin/install
964 # AIX /bin/install
965 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
966 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
967 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
968 # ./install, which can be erroneously created by make from ./install.sh.
969 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
970 echo "configure:971: checking for a BSD compatible install" >&5
971 if test -z "$INSTALL"; then
972 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
973 echo $ac_n "(cached) $ac_c" 1>&6
974 else
975 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
976 for ac_dir in $PATH; do
977 # Account for people who put trailing slashes in PATH elements.
978 case "$ac_dir/" in
979 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
980 *)
981 # OSF1 and SCO ODT 3.0 have their own names for install.
982 # Don't use installbsd from OSF since it installs stuff as root
983 # by default.
984 for ac_prog in ginstall scoinst install; do
985 if test -f $ac_dir/$ac_prog; then
986 if test $ac_prog = install &&
987 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
988 # AIX install. It has an incompatible calling convention.
989 :
990 else
991 ac_cv_path_install="$ac_dir/$ac_prog -c"
992 break 2
993 fi
994 fi
995 done
996 ;;
997 esac
998 done
999 IFS="$ac_save_IFS"
1000
1001 fi
1002 if test "${ac_cv_path_install+set}" = set; then
1003 INSTALL="$ac_cv_path_install"
1004 else
1005 # As a last resort, use the slow shell script. We don't cache a
1006 # path for INSTALL within a source directory, because that will
1007 # break other packages using the cache if that directory is
1008 # removed, or if the path is relative.
1009 INSTALL="$ac_install_sh"
1010 fi
1011 fi
1012 echo "$ac_t""$INSTALL" 1>&6
1013
1014 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1015 # It thinks the first close brace ends the variable substitution.
1016 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1017
1018 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1019
1020
1021 . ${srcdir}/../../bfd/configure.host
1022
1023
1024
1025 AR=${AR-ar}
1026
1027 # Extract the first word of "ranlib", so it can be a program name with args.
1028 set dummy ranlib; ac_word=$2
1029 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1030 echo "configure:1031: checking for $ac_word" >&5
1031 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1032 echo $ac_n "(cached) $ac_c" 1>&6
1033 else
1034 if test -n "$RANLIB"; then
1035 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1036 else
1037 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1038 for ac_dir in $PATH; do
1039 test -z "$ac_dir" && ac_dir=.
1040 if test -f $ac_dir/$ac_word; then
1041 ac_cv_prog_RANLIB="ranlib"
1042 break
1043 fi
1044 done
1045 IFS="$ac_save_ifs"
1046 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1047 fi
1048 fi
1049 RANLIB="$ac_cv_prog_RANLIB"
1050 if test -n "$RANLIB"; then
1051 echo "$ac_t""$RANLIB" 1>&6
1052 else
1053 echo "$ac_t""no" 1>&6
1054 fi
1055
1056
1057 # Put a plausible default for CC_FOR_BUILD in Makefile.
1058 if test "x$cross_compiling" = "xno"; then
1059 CC_FOR_BUILD='$(CC)'
1060 else
1061 CC_FOR_BUILD=gcc
1062 fi
1063
1064
1065 ALL_LINGUAS=
1066 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1067 echo "configure:1068: checking how to run the C preprocessor" >&5
1068 # On Suns, sometimes $CPP names a directory.
1069 if test -n "$CPP" && test -d "$CPP"; then
1070 CPP=
1071 fi
1072 if test -z "$CPP"; then
1073 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1074 echo $ac_n "(cached) $ac_c" 1>&6
1075 else
1076 # This must be in double quotes, not single quotes, because CPP may get
1077 # substituted into the Makefile and "${CC-cc}" will confuse make.
1078 CPP="${CC-cc} -E"
1079 # On the NeXT, cc -E runs the code through the compiler's parser,
1080 # not just through cpp.
1081 cat > conftest.$ac_ext <<EOF
1082 #line 1083 "configure"
1083 #include "confdefs.h"
1084 #include <assert.h>
1085 Syntax Error
1086 EOF
1087 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1088 { (eval echo configure:1089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1089 ac_err=`grep -v '^ *+' conftest.out`
1090 if test -z "$ac_err"; then
1091 :
1092 else
1093 echo "$ac_err" >&5
1094 echo "configure: failed program was:" >&5
1095 cat conftest.$ac_ext >&5
1096 rm -rf conftest*
1097 CPP="${CC-cc} -E -traditional-cpp"
1098 cat > conftest.$ac_ext <<EOF
1099 #line 1100 "configure"
1100 #include "confdefs.h"
1101 #include <assert.h>
1102 Syntax Error
1103 EOF
1104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1105 { (eval echo configure:1106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1106 ac_err=`grep -v '^ *+' conftest.out`
1107 if test -z "$ac_err"; then
1108 :
1109 else
1110 echo "$ac_err" >&5
1111 echo "configure: failed program was:" >&5
1112 cat conftest.$ac_ext >&5
1113 rm -rf conftest*
1114 CPP=/lib/cpp
1115 fi
1116 rm -f conftest*
1117 fi
1118 rm -f conftest*
1119 ac_cv_prog_CPP="$CPP"
1120 fi
1121 CPP="$ac_cv_prog_CPP"
1122 else
1123 ac_cv_prog_CPP="$CPP"
1124 fi
1125 echo "$ac_t""$CPP" 1>&6
1126
1127 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1128 echo "configure:1129: checking whether ${MAKE-make} sets \${MAKE}" >&5
1129 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1130 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1131 echo $ac_n "(cached) $ac_c" 1>&6
1132 else
1133 cat > conftestmake <<\EOF
1134 all:
1135 @echo 'ac_maketemp="${MAKE}"'
1136 EOF
1137 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1138 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1139 if test -n "$ac_maketemp"; then
1140 eval ac_cv_prog_make_${ac_make}_set=yes
1141 else
1142 eval ac_cv_prog_make_${ac_make}_set=no
1143 fi
1144 rm -f conftestmake
1145 fi
1146 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1147 echo "$ac_t""yes" 1>&6
1148 SET_MAKE=
1149 else
1150 echo "$ac_t""no" 1>&6
1151 SET_MAKE="MAKE=${MAKE-make}"
1152 fi
1153
1154 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1155 echo "configure:1156: checking for POSIXized ISC" >&5
1156 if test -d /etc/conf/kconfig.d &&
1157 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1158 then
1159 echo "$ac_t""yes" 1>&6
1160 ISC=yes # If later tests want to check for ISC.
1161 cat >> confdefs.h <<\EOF
1162 #define _POSIX_SOURCE 1
1163 EOF
1164
1165 if test "$GCC" = yes; then
1166 CC="$CC -posix"
1167 else
1168 CC="$CC -Xp"
1169 fi
1170 else
1171 echo "$ac_t""no" 1>&6
1172 ISC=
1173 fi
1174
1175 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1176 echo "configure:1177: checking for ANSI C header files" >&5
1177 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1178 echo $ac_n "(cached) $ac_c" 1>&6
1179 else
1180 cat > conftest.$ac_ext <<EOF
1181 #line 1182 "configure"
1182 #include "confdefs.h"
1183 #include <stdlib.h>
1184 #include <stdarg.h>
1185 #include <string.h>
1186 #include <float.h>
1187 EOF
1188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1189 { (eval echo configure:1190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1190 ac_err=`grep -v '^ *+' conftest.out`
1191 if test -z "$ac_err"; then
1192 rm -rf conftest*
1193 ac_cv_header_stdc=yes
1194 else
1195 echo "$ac_err" >&5
1196 echo "configure: failed program was:" >&5
1197 cat conftest.$ac_ext >&5
1198 rm -rf conftest*
1199 ac_cv_header_stdc=no
1200 fi
1201 rm -f conftest*
1202
1203 if test $ac_cv_header_stdc = yes; then
1204 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1205 cat > conftest.$ac_ext <<EOF
1206 #line 1207 "configure"
1207 #include "confdefs.h"
1208 #include <string.h>
1209 EOF
1210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1211 egrep "memchr" >/dev/null 2>&1; then
1212 :
1213 else
1214 rm -rf conftest*
1215 ac_cv_header_stdc=no
1216 fi
1217 rm -f conftest*
1218
1219 fi
1220
1221 if test $ac_cv_header_stdc = yes; then
1222 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1223 cat > conftest.$ac_ext <<EOF
1224 #line 1225 "configure"
1225 #include "confdefs.h"
1226 #include <stdlib.h>
1227 EOF
1228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1229 egrep "free" >/dev/null 2>&1; then
1230 :
1231 else
1232 rm -rf conftest*
1233 ac_cv_header_stdc=no
1234 fi
1235 rm -f conftest*
1236
1237 fi
1238
1239 if test $ac_cv_header_stdc = yes; then
1240 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1241 if test "$cross_compiling" = yes; then
1242 :
1243 else
1244 cat > conftest.$ac_ext <<EOF
1245 #line 1246 "configure"
1246 #include "confdefs.h"
1247 #include <ctype.h>
1248 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1249 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1250 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1251 int main () { int i; for (i = 0; i < 256; i++)
1252 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1253 exit (0); }
1254
1255 EOF
1256 if { (eval echo configure:1257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1257 then
1258 :
1259 else
1260 echo "configure: failed program was:" >&5
1261 cat conftest.$ac_ext >&5
1262 rm -fr conftest*
1263 ac_cv_header_stdc=no
1264 fi
1265 rm -fr conftest*
1266 fi
1267
1268 fi
1269 fi
1270
1271 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1272 if test $ac_cv_header_stdc = yes; then
1273 cat >> confdefs.h <<\EOF
1274 #define STDC_HEADERS 1
1275 EOF
1276
1277 fi
1278
1279 echo $ac_n "checking for working const""... $ac_c" 1>&6
1280 echo "configure:1281: checking for working const" >&5
1281 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1282 echo $ac_n "(cached) $ac_c" 1>&6
1283 else
1284 cat > conftest.$ac_ext <<EOF
1285 #line 1286 "configure"
1286 #include "confdefs.h"
1287
1288 int main() {
1289
1290 /* Ultrix mips cc rejects this. */
1291 typedef int charset[2]; const charset x;
1292 /* SunOS 4.1.1 cc rejects this. */
1293 char const *const *ccp;
1294 char **p;
1295 /* NEC SVR4.0.2 mips cc rejects this. */
1296 struct point {int x, y;};
1297 static struct point const zero = {0,0};
1298 /* AIX XL C 1.02.0.0 rejects this.
1299 It does not let you subtract one const X* pointer from another in an arm
1300 of an if-expression whose if-part is not a constant expression */
1301 const char *g = "string";
1302 ccp = &g + (g ? g-g : 0);
1303 /* HPUX 7.0 cc rejects these. */
1304 ++ccp;
1305 p = (char**) ccp;
1306 ccp = (char const *const *) p;
1307 { /* SCO 3.2v4 cc rejects this. */
1308 char *t;
1309 char const *s = 0 ? (char *) 0 : (char const *) 0;
1310
1311 *t++ = 0;
1312 }
1313 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1314 int x[] = {25, 17};
1315 const int *foo = &x[0];
1316 ++foo;
1317 }
1318 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1319 typedef const int *iptr;
1320 iptr p = 0;
1321 ++p;
1322 }
1323 { /* AIX XL C 1.02.0.0 rejects this saying
1324 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1325 struct s { int j; const int *ap[3]; };
1326 struct s *b; b->j = 5;
1327 }
1328 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1329 const int foo = 10;
1330 }
1331
1332 ; return 0; }
1333 EOF
1334 if { (eval echo configure:1335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1335 rm -rf conftest*
1336 ac_cv_c_const=yes
1337 else
1338 echo "configure: failed program was:" >&5
1339 cat conftest.$ac_ext >&5
1340 rm -rf conftest*
1341 ac_cv_c_const=no
1342 fi
1343 rm -f conftest*
1344 fi
1345
1346 echo "$ac_t""$ac_cv_c_const" 1>&6
1347 if test $ac_cv_c_const = no; then
1348 cat >> confdefs.h <<\EOF
1349 #define const
1350 EOF
1351
1352 fi
1353
1354 echo $ac_n "checking for inline""... $ac_c" 1>&6
1355 echo "configure:1356: checking for inline" >&5
1356 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1357 echo $ac_n "(cached) $ac_c" 1>&6
1358 else
1359 ac_cv_c_inline=no
1360 for ac_kw in inline __inline__ __inline; do
1361 cat > conftest.$ac_ext <<EOF
1362 #line 1363 "configure"
1363 #include "confdefs.h"
1364
1365 int main() {
1366 } $ac_kw foo() {
1367 ; return 0; }
1368 EOF
1369 if { (eval echo configure:1370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1370 rm -rf conftest*
1371 ac_cv_c_inline=$ac_kw; break
1372 else
1373 echo "configure: failed program was:" >&5
1374 cat conftest.$ac_ext >&5
1375 fi
1376 rm -f conftest*
1377 done
1378
1379 fi
1380
1381 echo "$ac_t""$ac_cv_c_inline" 1>&6
1382 case "$ac_cv_c_inline" in
1383 inline | yes) ;;
1384 no) cat >> confdefs.h <<\EOF
1385 #define inline
1386 EOF
1387 ;;
1388 *) cat >> confdefs.h <<EOF
1389 #define inline $ac_cv_c_inline
1390 EOF
1391 ;;
1392 esac
1393
1394 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1395 echo "configure:1396: checking for off_t" >&5
1396 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1397 echo $ac_n "(cached) $ac_c" 1>&6
1398 else
1399 cat > conftest.$ac_ext <<EOF
1400 #line 1401 "configure"
1401 #include "confdefs.h"
1402 #include <sys/types.h>
1403 #if STDC_HEADERS
1404 #include <stdlib.h>
1405 #include <stddef.h>
1406 #endif
1407 EOF
1408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1409 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1410 rm -rf conftest*
1411 ac_cv_type_off_t=yes
1412 else
1413 rm -rf conftest*
1414 ac_cv_type_off_t=no
1415 fi
1416 rm -f conftest*
1417
1418 fi
1419 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1420 if test $ac_cv_type_off_t = no; then
1421 cat >> confdefs.h <<\EOF
1422 #define off_t long
1423 EOF
1424
1425 fi
1426
1427 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1428 echo "configure:1429: checking for size_t" >&5
1429 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1430 echo $ac_n "(cached) $ac_c" 1>&6
1431 else
1432 cat > conftest.$ac_ext <<EOF
1433 #line 1434 "configure"
1434 #include "confdefs.h"
1435 #include <sys/types.h>
1436 #if STDC_HEADERS
1437 #include <stdlib.h>
1438 #include <stddef.h>
1439 #endif
1440 EOF
1441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1442 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1443 rm -rf conftest*
1444 ac_cv_type_size_t=yes
1445 else
1446 rm -rf conftest*
1447 ac_cv_type_size_t=no
1448 fi
1449 rm -f conftest*
1450
1451 fi
1452 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1453 if test $ac_cv_type_size_t = no; then
1454 cat >> confdefs.h <<\EOF
1455 #define size_t unsigned
1456 EOF
1457
1458 fi
1459
1460 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1461 # for constant arguments. Useless!
1462 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1463 echo "configure:1464: checking for working alloca.h" >&5
1464 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1465 echo $ac_n "(cached) $ac_c" 1>&6
1466 else
1467 cat > conftest.$ac_ext <<EOF
1468 #line 1469 "configure"
1469 #include "confdefs.h"
1470 #include <alloca.h>
1471 int main() {
1472 char *p = alloca(2 * sizeof(int));
1473 ; return 0; }
1474 EOF
1475 if { (eval echo configure:1476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1476 rm -rf conftest*
1477 ac_cv_header_alloca_h=yes
1478 else
1479 echo "configure: failed program was:" >&5
1480 cat conftest.$ac_ext >&5
1481 rm -rf conftest*
1482 ac_cv_header_alloca_h=no
1483 fi
1484 rm -f conftest*
1485 fi
1486
1487 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1488 if test $ac_cv_header_alloca_h = yes; then
1489 cat >> confdefs.h <<\EOF
1490 #define HAVE_ALLOCA_H 1
1491 EOF
1492
1493 fi
1494
1495 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1496 echo "configure:1497: checking for alloca" >&5
1497 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1498 echo $ac_n "(cached) $ac_c" 1>&6
1499 else
1500 cat > conftest.$ac_ext <<EOF
1501 #line 1502 "configure"
1502 #include "confdefs.h"
1503
1504 #ifdef __GNUC__
1505 # define alloca __builtin_alloca
1506 #else
1507 # if HAVE_ALLOCA_H
1508 # include <alloca.h>
1509 # else
1510 # ifdef _AIX
1511 #pragma alloca
1512 # else
1513 # ifndef alloca /* predefined by HP cc +Olibcalls */
1514 char *alloca ();
1515 # endif
1516 # endif
1517 # endif
1518 #endif
1519
1520 int main() {
1521 char *p = (char *) alloca(1);
1522 ; return 0; }
1523 EOF
1524 if { (eval echo configure:1525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1525 rm -rf conftest*
1526 ac_cv_func_alloca_works=yes
1527 else
1528 echo "configure: failed program was:" >&5
1529 cat conftest.$ac_ext >&5
1530 rm -rf conftest*
1531 ac_cv_func_alloca_works=no
1532 fi
1533 rm -f conftest*
1534 fi
1535
1536 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1537 if test $ac_cv_func_alloca_works = yes; then
1538 cat >> confdefs.h <<\EOF
1539 #define HAVE_ALLOCA 1
1540 EOF
1541
1542 fi
1543
1544 if test $ac_cv_func_alloca_works = no; then
1545 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1546 # that cause trouble. Some versions do not even contain alloca or
1547 # contain a buggy version. If you still want to use their alloca,
1548 # use ar to extract alloca.o from them instead of compiling alloca.c.
1549 ALLOCA=alloca.o
1550 cat >> confdefs.h <<\EOF
1551 #define C_ALLOCA 1
1552 EOF
1553
1554
1555 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1556 echo "configure:1557: checking whether alloca needs Cray hooks" >&5
1557 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1558 echo $ac_n "(cached) $ac_c" 1>&6
1559 else
1560 cat > conftest.$ac_ext <<EOF
1561 #line 1562 "configure"
1562 #include "confdefs.h"
1563 #if defined(CRAY) && ! defined(CRAY2)
1564 webecray
1565 #else
1566 wenotbecray
1567 #endif
1568
1569 EOF
1570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1571 egrep "webecray" >/dev/null 2>&1; then
1572 rm -rf conftest*
1573 ac_cv_os_cray=yes
1574 else
1575 rm -rf conftest*
1576 ac_cv_os_cray=no
1577 fi
1578 rm -f conftest*
1579
1580 fi
1581
1582 echo "$ac_t""$ac_cv_os_cray" 1>&6
1583 if test $ac_cv_os_cray = yes; then
1584 for ac_func in _getb67 GETB67 getb67; do
1585 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1586 echo "configure:1587: checking for $ac_func" >&5
1587 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1588 echo $ac_n "(cached) $ac_c" 1>&6
1589 else
1590 cat > conftest.$ac_ext <<EOF
1591 #line 1592 "configure"
1592 #include "confdefs.h"
1593 /* System header to define __stub macros and hopefully few prototypes,
1594 which can conflict with char $ac_func(); below. */
1595 #include <assert.h>
1596 /* Override any gcc2 internal prototype to avoid an error. */
1597 /* We use char because int might match the return type of a gcc2
1598 builtin and then its argument prototype would still apply. */
1599 char $ac_func();
1600
1601 int main() {
1602
1603 /* The GNU C library defines this for functions which it implements
1604 to always fail with ENOSYS. Some functions are actually named
1605 something starting with __ and the normal name is an alias. */
1606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1607 choke me
1608 #else
1609 $ac_func();
1610 #endif
1611
1612 ; return 0; }
1613 EOF
1614 if { (eval echo configure:1615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1615 rm -rf conftest*
1616 eval "ac_cv_func_$ac_func=yes"
1617 else
1618 echo "configure: failed program was:" >&5
1619 cat conftest.$ac_ext >&5
1620 rm -rf conftest*
1621 eval "ac_cv_func_$ac_func=no"
1622 fi
1623 rm -f conftest*
1624 fi
1625
1626 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1627 echo "$ac_t""yes" 1>&6
1628 cat >> confdefs.h <<EOF
1629 #define CRAY_STACKSEG_END $ac_func
1630 EOF
1631
1632 break
1633 else
1634 echo "$ac_t""no" 1>&6
1635 fi
1636
1637 done
1638 fi
1639
1640 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1641 echo "configure:1642: checking stack direction for C alloca" >&5
1642 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1643 echo $ac_n "(cached) $ac_c" 1>&6
1644 else
1645 if test "$cross_compiling" = yes; then
1646 ac_cv_c_stack_direction=0
1647 else
1648 cat > conftest.$ac_ext <<EOF
1649 #line 1650 "configure"
1650 #include "confdefs.h"
1651 find_stack_direction ()
1652 {
1653 static char *addr = 0;
1654 auto char dummy;
1655 if (addr == 0)
1656 {
1657 addr = &dummy;
1658 return find_stack_direction ();
1659 }
1660 else
1661 return (&dummy > addr) ? 1 : -1;
1662 }
1663 main ()
1664 {
1665 exit (find_stack_direction() < 0);
1666 }
1667 EOF
1668 if { (eval echo configure:1669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1669 then
1670 ac_cv_c_stack_direction=1
1671 else
1672 echo "configure: failed program was:" >&5
1673 cat conftest.$ac_ext >&5
1674 rm -fr conftest*
1675 ac_cv_c_stack_direction=-1
1676 fi
1677 rm -fr conftest*
1678 fi
1679
1680 fi
1681
1682 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1683 cat >> confdefs.h <<EOF
1684 #define STACK_DIRECTION $ac_cv_c_stack_direction
1685 EOF
1686
1687 fi
1688
1689 for ac_hdr in unistd.h
1690 do
1691 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1692 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1693 echo "configure:1694: checking for $ac_hdr" >&5
1694 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1695 echo $ac_n "(cached) $ac_c" 1>&6
1696 else
1697 cat > conftest.$ac_ext <<EOF
1698 #line 1699 "configure"
1699 #include "confdefs.h"
1700 #include <$ac_hdr>
1701 EOF
1702 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1703 { (eval echo configure:1704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1704 ac_err=`grep -v '^ *+' conftest.out`
1705 if test -z "$ac_err"; then
1706 rm -rf conftest*
1707 eval "ac_cv_header_$ac_safe=yes"
1708 else
1709 echo "$ac_err" >&5
1710 echo "configure: failed program was:" >&5
1711 cat conftest.$ac_ext >&5
1712 rm -rf conftest*
1713 eval "ac_cv_header_$ac_safe=no"
1714 fi
1715 rm -f conftest*
1716 fi
1717 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1718 echo "$ac_t""yes" 1>&6
1719 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1720 cat >> confdefs.h <<EOF
1721 #define $ac_tr_hdr 1
1722 EOF
1723
1724 else
1725 echo "$ac_t""no" 1>&6
1726 fi
1727 done
1728
1729 for ac_func in getpagesize
1730 do
1731 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1732 echo "configure:1733: checking for $ac_func" >&5
1733 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1734 echo $ac_n "(cached) $ac_c" 1>&6
1735 else
1736 cat > conftest.$ac_ext <<EOF
1737 #line 1738 "configure"
1738 #include "confdefs.h"
1739 /* System header to define __stub macros and hopefully few prototypes,
1740 which can conflict with char $ac_func(); below. */
1741 #include <assert.h>
1742 /* Override any gcc2 internal prototype to avoid an error. */
1743 /* We use char because int might match the return type of a gcc2
1744 builtin and then its argument prototype would still apply. */
1745 char $ac_func();
1746
1747 int main() {
1748
1749 /* The GNU C library defines this for functions which it implements
1750 to always fail with ENOSYS. Some functions are actually named
1751 something starting with __ and the normal name is an alias. */
1752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1753 choke me
1754 #else
1755 $ac_func();
1756 #endif
1757
1758 ; return 0; }
1759 EOF
1760 if { (eval echo configure:1761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1761 rm -rf conftest*
1762 eval "ac_cv_func_$ac_func=yes"
1763 else
1764 echo "configure: failed program was:" >&5
1765 cat conftest.$ac_ext >&5
1766 rm -rf conftest*
1767 eval "ac_cv_func_$ac_func=no"
1768 fi
1769 rm -f conftest*
1770 fi
1771
1772 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1773 echo "$ac_t""yes" 1>&6
1774 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1775 cat >> confdefs.h <<EOF
1776 #define $ac_tr_func 1
1777 EOF
1778
1779 else
1780 echo "$ac_t""no" 1>&6
1781 fi
1782 done
1783
1784 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1785 echo "configure:1786: checking for working mmap" >&5
1786 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1787 echo $ac_n "(cached) $ac_c" 1>&6
1788 else
1789 if test "$cross_compiling" = yes; then
1790 ac_cv_func_mmap_fixed_mapped=no
1791 else
1792 cat > conftest.$ac_ext <<EOF
1793 #line 1794 "configure"
1794 #include "confdefs.h"
1795
1796 /* Thanks to Mike Haertel and Jim Avera for this test.
1797 Here is a matrix of mmap possibilities:
1798 mmap private not fixed
1799 mmap private fixed at somewhere currently unmapped
1800 mmap private fixed at somewhere already mapped
1801 mmap shared not fixed
1802 mmap shared fixed at somewhere currently unmapped
1803 mmap shared fixed at somewhere already mapped
1804 For private mappings, we should verify that changes cannot be read()
1805 back from the file, nor mmap's back from the file at a different
1806 address. (There have been systems where private was not correctly
1807 implemented like the infamous i386 svr4.0, and systems where the
1808 VM page cache was not coherent with the filesystem buffer cache
1809 like early versions of FreeBSD and possibly contemporary NetBSD.)
1810 For shared mappings, we should conversely verify that changes get
1811 propogated back to all the places they're supposed to be.
1812
1813 Grep wants private fixed already mapped.
1814 The main things grep needs to know about mmap are:
1815 * does it exist and is it safe to write into the mmap'd area
1816 * how to use it (BSD variants) */
1817 #include <sys/types.h>
1818 #include <fcntl.h>
1819 #include <sys/mman.h>
1820
1821 /* This mess was copied from the GNU getpagesize.h. */
1822 #ifndef HAVE_GETPAGESIZE
1823 # ifdef HAVE_UNISTD_H
1824 # include <unistd.h>
1825 # endif
1826
1827 /* Assume that all systems that can run configure have sys/param.h. */
1828 # ifndef HAVE_SYS_PARAM_H
1829 # define HAVE_SYS_PARAM_H 1
1830 # endif
1831
1832 # ifdef _SC_PAGESIZE
1833 # define getpagesize() sysconf(_SC_PAGESIZE)
1834 # else /* no _SC_PAGESIZE */
1835 # ifdef HAVE_SYS_PARAM_H
1836 # include <sys/param.h>
1837 # ifdef EXEC_PAGESIZE
1838 # define getpagesize() EXEC_PAGESIZE
1839 # else /* no EXEC_PAGESIZE */
1840 # ifdef NBPG
1841 # define getpagesize() NBPG * CLSIZE
1842 # ifndef CLSIZE
1843 # define CLSIZE 1
1844 # endif /* no CLSIZE */
1845 # else /* no NBPG */
1846 # ifdef NBPC
1847 # define getpagesize() NBPC
1848 # else /* no NBPC */
1849 # ifdef PAGESIZE
1850 # define getpagesize() PAGESIZE
1851 # endif /* PAGESIZE */
1852 # endif /* no NBPC */
1853 # endif /* no NBPG */
1854 # endif /* no EXEC_PAGESIZE */
1855 # else /* no HAVE_SYS_PARAM_H */
1856 # define getpagesize() 8192 /* punt totally */
1857 # endif /* no HAVE_SYS_PARAM_H */
1858 # endif /* no _SC_PAGESIZE */
1859
1860 #endif /* no HAVE_GETPAGESIZE */
1861
1862 #ifdef __cplusplus
1863 extern "C" { void *malloc(unsigned); }
1864 #else
1865 char *malloc();
1866 #endif
1867
1868 int
1869 main()
1870 {
1871 char *data, *data2, *data3;
1872 int i, pagesize;
1873 int fd;
1874
1875 pagesize = getpagesize();
1876
1877 /*
1878 * First, make a file with some known garbage in it.
1879 */
1880 data = malloc(pagesize);
1881 if (!data)
1882 exit(1);
1883 for (i = 0; i < pagesize; ++i)
1884 *(data + i) = rand();
1885 umask(0);
1886 fd = creat("conftestmmap", 0600);
1887 if (fd < 0)
1888 exit(1);
1889 if (write(fd, data, pagesize) != pagesize)
1890 exit(1);
1891 close(fd);
1892
1893 /*
1894 * Next, try to mmap the file at a fixed address which
1895 * already has something else allocated at it. If we can,
1896 * also make sure that we see the same garbage.
1897 */
1898 fd = open("conftestmmap", O_RDWR);
1899 if (fd < 0)
1900 exit(1);
1901 data2 = malloc(2 * pagesize);
1902 if (!data2)
1903 exit(1);
1904 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1905 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1906 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1907 exit(1);
1908 for (i = 0; i < pagesize; ++i)
1909 if (*(data + i) != *(data2 + i))
1910 exit(1);
1911
1912 /*
1913 * Finally, make sure that changes to the mapped area
1914 * do not percolate back to the file as seen by read().
1915 * (This is a bug on some variants of i386 svr4.0.)
1916 */
1917 for (i = 0; i < pagesize; ++i)
1918 *(data2 + i) = *(data2 + i) + 1;
1919 data3 = malloc(pagesize);
1920 if (!data3)
1921 exit(1);
1922 if (read(fd, data3, pagesize) != pagesize)
1923 exit(1);
1924 for (i = 0; i < pagesize; ++i)
1925 if (*(data + i) != *(data3 + i))
1926 exit(1);
1927 close(fd);
1928 unlink("conftestmmap");
1929 exit(0);
1930 }
1931
1932 EOF
1933 if { (eval echo configure:1934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1934 then
1935 ac_cv_func_mmap_fixed_mapped=yes
1936 else
1937 echo "configure: failed program was:" >&5
1938 cat conftest.$ac_ext >&5
1939 rm -fr conftest*
1940 ac_cv_func_mmap_fixed_mapped=no
1941 fi
1942 rm -fr conftest*
1943 fi
1944
1945 fi
1946
1947 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1948 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1949 cat >> confdefs.h <<\EOF
1950 #define HAVE_MMAP 1
1951 EOF
1952
1953 fi
1954
1955
1956 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1957 unistd.h values.h sys/param.h
1958 do
1959 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1960 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1961 echo "configure:1962: checking for $ac_hdr" >&5
1962 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1963 echo $ac_n "(cached) $ac_c" 1>&6
1964 else
1965 cat > conftest.$ac_ext <<EOF
1966 #line 1967 "configure"
1967 #include "confdefs.h"
1968 #include <$ac_hdr>
1969 EOF
1970 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1971 { (eval echo configure:1972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1972 ac_err=`grep -v '^ *+' conftest.out`
1973 if test -z "$ac_err"; then
1974 rm -rf conftest*
1975 eval "ac_cv_header_$ac_safe=yes"
1976 else
1977 echo "$ac_err" >&5
1978 echo "configure: failed program was:" >&5
1979 cat conftest.$ac_ext >&5
1980 rm -rf conftest*
1981 eval "ac_cv_header_$ac_safe=no"
1982 fi
1983 rm -f conftest*
1984 fi
1985 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1986 echo "$ac_t""yes" 1>&6
1987 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1988 cat >> confdefs.h <<EOF
1989 #define $ac_tr_hdr 1
1990 EOF
1991
1992 else
1993 echo "$ac_t""no" 1>&6
1994 fi
1995 done
1996
1997 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
1998 __argz_count __argz_stringify __argz_next
1999 do
2000 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2001 echo "configure:2002: checking for $ac_func" >&5
2002 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2003 echo $ac_n "(cached) $ac_c" 1>&6
2004 else
2005 cat > conftest.$ac_ext <<EOF
2006 #line 2007 "configure"
2007 #include "confdefs.h"
2008 /* System header to define __stub macros and hopefully few prototypes,
2009 which can conflict with char $ac_func(); below. */
2010 #include <assert.h>
2011 /* Override any gcc2 internal prototype to avoid an error. */
2012 /* We use char because int might match the return type of a gcc2
2013 builtin and then its argument prototype would still apply. */
2014 char $ac_func();
2015
2016 int main() {
2017
2018 /* The GNU C library defines this for functions which it implements
2019 to always fail with ENOSYS. Some functions are actually named
2020 something starting with __ and the normal name is an alias. */
2021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2022 choke me
2023 #else
2024 $ac_func();
2025 #endif
2026
2027 ; return 0; }
2028 EOF
2029 if { (eval echo configure:2030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2030 rm -rf conftest*
2031 eval "ac_cv_func_$ac_func=yes"
2032 else
2033 echo "configure: failed program was:" >&5
2034 cat conftest.$ac_ext >&5
2035 rm -rf conftest*
2036 eval "ac_cv_func_$ac_func=no"
2037 fi
2038 rm -f conftest*
2039 fi
2040
2041 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2042 echo "$ac_t""yes" 1>&6
2043 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2044 cat >> confdefs.h <<EOF
2045 #define $ac_tr_func 1
2046 EOF
2047
2048 else
2049 echo "$ac_t""no" 1>&6
2050 fi
2051 done
2052
2053
2054 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2055 for ac_func in stpcpy
2056 do
2057 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2058 echo "configure:2059: checking for $ac_func" >&5
2059 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2060 echo $ac_n "(cached) $ac_c" 1>&6
2061 else
2062 cat > conftest.$ac_ext <<EOF
2063 #line 2064 "configure"
2064 #include "confdefs.h"
2065 /* System header to define __stub macros and hopefully few prototypes,
2066 which can conflict with char $ac_func(); below. */
2067 #include <assert.h>
2068 /* Override any gcc2 internal prototype to avoid an error. */
2069 /* We use char because int might match the return type of a gcc2
2070 builtin and then its argument prototype would still apply. */
2071 char $ac_func();
2072
2073 int main() {
2074
2075 /* The GNU C library defines this for functions which it implements
2076 to always fail with ENOSYS. Some functions are actually named
2077 something starting with __ and the normal name is an alias. */
2078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2079 choke me
2080 #else
2081 $ac_func();
2082 #endif
2083
2084 ; return 0; }
2085 EOF
2086 if { (eval echo configure:2087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2087 rm -rf conftest*
2088 eval "ac_cv_func_$ac_func=yes"
2089 else
2090 echo "configure: failed program was:" >&5
2091 cat conftest.$ac_ext >&5
2092 rm -rf conftest*
2093 eval "ac_cv_func_$ac_func=no"
2094 fi
2095 rm -f conftest*
2096 fi
2097
2098 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2099 echo "$ac_t""yes" 1>&6
2100 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2101 cat >> confdefs.h <<EOF
2102 #define $ac_tr_func 1
2103 EOF
2104
2105 else
2106 echo "$ac_t""no" 1>&6
2107 fi
2108 done
2109
2110 fi
2111 if test "${ac_cv_func_stpcpy}" = "yes"; then
2112 cat >> confdefs.h <<\EOF
2113 #define HAVE_STPCPY 1
2114 EOF
2115
2116 fi
2117
2118 if test $ac_cv_header_locale_h = yes; then
2119 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2120 echo "configure:2121: checking for LC_MESSAGES" >&5
2121 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2122 echo $ac_n "(cached) $ac_c" 1>&6
2123 else
2124 cat > conftest.$ac_ext <<EOF
2125 #line 2126 "configure"
2126 #include "confdefs.h"
2127 #include <locale.h>
2128 int main() {
2129 return LC_MESSAGES
2130 ; return 0; }
2131 EOF
2132 if { (eval echo configure:2133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2133 rm -rf conftest*
2134 am_cv_val_LC_MESSAGES=yes
2135 else
2136 echo "configure: failed program was:" >&5
2137 cat conftest.$ac_ext >&5
2138 rm -rf conftest*
2139 am_cv_val_LC_MESSAGES=no
2140 fi
2141 rm -f conftest*
2142 fi
2143
2144 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2145 if test $am_cv_val_LC_MESSAGES = yes; then
2146 cat >> confdefs.h <<\EOF
2147 #define HAVE_LC_MESSAGES 1
2148 EOF
2149
2150 fi
2151 fi
2152 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2153 echo "configure:2154: checking whether NLS is requested" >&5
2154 # Check whether --enable-nls or --disable-nls was given.
2155 if test "${enable_nls+set}" = set; then
2156 enableval="$enable_nls"
2157 USE_NLS=$enableval
2158 else
2159 USE_NLS=yes
2160 fi
2161
2162 echo "$ac_t""$USE_NLS" 1>&6
2163
2164
2165 USE_INCLUDED_LIBINTL=no
2166
2167 if test "$USE_NLS" = "yes"; then
2168 cat >> confdefs.h <<\EOF
2169 #define ENABLE_NLS 1
2170 EOF
2171
2172 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2173 echo "configure:2174: checking whether included gettext is requested" >&5
2174 # Check whether --with-included-gettext or --without-included-gettext was given.
2175 if test "${with_included_gettext+set}" = set; then
2176 withval="$with_included_gettext"
2177 nls_cv_force_use_gnu_gettext=$withval
2178 else
2179 nls_cv_force_use_gnu_gettext=no
2180 fi
2181
2182 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2183
2184 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2185 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2186 nls_cv_header_intl=
2187 nls_cv_header_libgt=
2188 CATOBJEXT=NONE
2189
2190 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2191 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2192 echo "configure:2193: checking for libintl.h" >&5
2193 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2194 echo $ac_n "(cached) $ac_c" 1>&6
2195 else
2196 cat > conftest.$ac_ext <<EOF
2197 #line 2198 "configure"
2198 #include "confdefs.h"
2199 #include <libintl.h>
2200 EOF
2201 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2202 { (eval echo configure:2203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2203 ac_err=`grep -v '^ *+' conftest.out`
2204 if test -z "$ac_err"; then
2205 rm -rf conftest*
2206 eval "ac_cv_header_$ac_safe=yes"
2207 else
2208 echo "$ac_err" >&5
2209 echo "configure: failed program was:" >&5
2210 cat conftest.$ac_ext >&5
2211 rm -rf conftest*
2212 eval "ac_cv_header_$ac_safe=no"
2213 fi
2214 rm -f conftest*
2215 fi
2216 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2217 echo "$ac_t""yes" 1>&6
2218 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2219 echo "configure:2220: checking for gettext in libc" >&5
2220 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2221 echo $ac_n "(cached) $ac_c" 1>&6
2222 else
2223 cat > conftest.$ac_ext <<EOF
2224 #line 2225 "configure"
2225 #include "confdefs.h"
2226 #include <libintl.h>
2227 int main() {
2228 return (int) gettext ("")
2229 ; return 0; }
2230 EOF
2231 if { (eval echo configure:2232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2232 rm -rf conftest*
2233 gt_cv_func_gettext_libc=yes
2234 else
2235 echo "configure: failed program was:" >&5
2236 cat conftest.$ac_ext >&5
2237 rm -rf conftest*
2238 gt_cv_func_gettext_libc=no
2239 fi
2240 rm -f conftest*
2241 fi
2242
2243 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2244
2245 if test "$gt_cv_func_gettext_libc" != "yes"; then
2246 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2247 echo "configure:2248: checking for bindtextdomain in -lintl" >&5
2248 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2249 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2250 echo $ac_n "(cached) $ac_c" 1>&6
2251 else
2252 ac_save_LIBS="$LIBS"
2253 LIBS="-lintl $LIBS"
2254 cat > conftest.$ac_ext <<EOF
2255 #line 2256 "configure"
2256 #include "confdefs.h"
2257 /* Override any gcc2 internal prototype to avoid an error. */
2258 /* We use char because int might match the return type of a gcc2
2259 builtin and then its argument prototype would still apply. */
2260 char bindtextdomain();
2261
2262 int main() {
2263 bindtextdomain()
2264 ; return 0; }
2265 EOF
2266 if { (eval echo configure:2267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2267 rm -rf conftest*
2268 eval "ac_cv_lib_$ac_lib_var=yes"
2269 else
2270 echo "configure: failed program was:" >&5
2271 cat conftest.$ac_ext >&5
2272 rm -rf conftest*
2273 eval "ac_cv_lib_$ac_lib_var=no"
2274 fi
2275 rm -f conftest*
2276 LIBS="$ac_save_LIBS"
2277
2278 fi
2279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2280 echo "$ac_t""yes" 1>&6
2281 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2282 echo "configure:2283: checking for gettext in libintl" >&5
2283 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2284 echo $ac_n "(cached) $ac_c" 1>&6
2285 else
2286 cat > conftest.$ac_ext <<EOF
2287 #line 2288 "configure"
2288 #include "confdefs.h"
2289
2290 int main() {
2291 return (int) gettext ("")
2292 ; return 0; }
2293 EOF
2294 if { (eval echo configure:2295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2295 rm -rf conftest*
2296 gt_cv_func_gettext_libintl=yes
2297 else
2298 echo "configure: failed program was:" >&5
2299 cat conftest.$ac_ext >&5
2300 rm -rf conftest*
2301 gt_cv_func_gettext_libintl=no
2302 fi
2303 rm -f conftest*
2304 fi
2305
2306 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2307 else
2308 echo "$ac_t""no" 1>&6
2309 fi
2310
2311 fi
2312
2313 if test "$gt_cv_func_gettext_libc" = "yes" \
2314 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2315 cat >> confdefs.h <<\EOF
2316 #define HAVE_GETTEXT 1
2317 EOF
2318
2319 # Extract the first word of "msgfmt", so it can be a program name with args.
2320 set dummy msgfmt; ac_word=$2
2321 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2322 echo "configure:2323: checking for $ac_word" >&5
2323 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2324 echo $ac_n "(cached) $ac_c" 1>&6
2325 else
2326 case "$MSGFMT" in
2327 /*)
2328 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2329 ;;
2330 *)
2331 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2332 for ac_dir in $PATH; do
2333 test -z "$ac_dir" && ac_dir=.
2334 if test -f $ac_dir/$ac_word; then
2335 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2336 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2337 break
2338 fi
2339 fi
2340 done
2341 IFS="$ac_save_ifs"
2342 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2343 ;;
2344 esac
2345 fi
2346 MSGFMT="$ac_cv_path_MSGFMT"
2347 if test -n "$MSGFMT"; then
2348 echo "$ac_t""$MSGFMT" 1>&6
2349 else
2350 echo "$ac_t""no" 1>&6
2351 fi
2352 if test "$MSGFMT" != "no"; then
2353 for ac_func in dcgettext
2354 do
2355 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2356 echo "configure:2357: checking for $ac_func" >&5
2357 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2358 echo $ac_n "(cached) $ac_c" 1>&6
2359 else
2360 cat > conftest.$ac_ext <<EOF
2361 #line 2362 "configure"
2362 #include "confdefs.h"
2363 /* System header to define __stub macros and hopefully few prototypes,
2364 which can conflict with char $ac_func(); below. */
2365 #include <assert.h>
2366 /* Override any gcc2 internal prototype to avoid an error. */
2367 /* We use char because int might match the return type of a gcc2
2368 builtin and then its argument prototype would still apply. */
2369 char $ac_func();
2370
2371 int main() {
2372
2373 /* The GNU C library defines this for functions which it implements
2374 to always fail with ENOSYS. Some functions are actually named
2375 something starting with __ and the normal name is an alias. */
2376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2377 choke me
2378 #else
2379 $ac_func();
2380 #endif
2381
2382 ; return 0; }
2383 EOF
2384 if { (eval echo configure:2385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2385 rm -rf conftest*
2386 eval "ac_cv_func_$ac_func=yes"
2387 else
2388 echo "configure: failed program was:" >&5
2389 cat conftest.$ac_ext >&5
2390 rm -rf conftest*
2391 eval "ac_cv_func_$ac_func=no"
2392 fi
2393 rm -f conftest*
2394 fi
2395
2396 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2397 echo "$ac_t""yes" 1>&6
2398 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2399 cat >> confdefs.h <<EOF
2400 #define $ac_tr_func 1
2401 EOF
2402
2403 else
2404 echo "$ac_t""no" 1>&6
2405 fi
2406 done
2407
2408 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2409 set dummy gmsgfmt; ac_word=$2
2410 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2411 echo "configure:2412: checking for $ac_word" >&5
2412 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2413 echo $ac_n "(cached) $ac_c" 1>&6
2414 else
2415 case "$GMSGFMT" in
2416 /*)
2417 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2418 ;;
2419 ?:/*)
2420 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2421 ;;
2422 *)
2423 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2424 for ac_dir in $PATH; do
2425 test -z "$ac_dir" && ac_dir=.
2426 if test -f $ac_dir/$ac_word; then
2427 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2428 break
2429 fi
2430 done
2431 IFS="$ac_save_ifs"
2432 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2433 ;;
2434 esac
2435 fi
2436 GMSGFMT="$ac_cv_path_GMSGFMT"
2437 if test -n "$GMSGFMT"; then
2438 echo "$ac_t""$GMSGFMT" 1>&6
2439 else
2440 echo "$ac_t""no" 1>&6
2441 fi
2442
2443 # Extract the first word of "xgettext", so it can be a program name with args.
2444 set dummy xgettext; ac_word=$2
2445 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2446 echo "configure:2447: checking for $ac_word" >&5
2447 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2448 echo $ac_n "(cached) $ac_c" 1>&6
2449 else
2450 case "$XGETTEXT" in
2451 /*)
2452 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2453 ;;
2454 *)
2455 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2456 for ac_dir in $PATH; do
2457 test -z "$ac_dir" && ac_dir=.
2458 if test -f $ac_dir/$ac_word; then
2459 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2460 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2461 break
2462 fi
2463 fi
2464 done
2465 IFS="$ac_save_ifs"
2466 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2467 ;;
2468 esac
2469 fi
2470 XGETTEXT="$ac_cv_path_XGETTEXT"
2471 if test -n "$XGETTEXT"; then
2472 echo "$ac_t""$XGETTEXT" 1>&6
2473 else
2474 echo "$ac_t""no" 1>&6
2475 fi
2476
2477 cat > conftest.$ac_ext <<EOF
2478 #line 2479 "configure"
2479 #include "confdefs.h"
2480
2481 int main() {
2482 extern int _nl_msg_cat_cntr;
2483 return _nl_msg_cat_cntr
2484 ; return 0; }
2485 EOF
2486 if { (eval echo configure:2487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2487 rm -rf conftest*
2488 CATOBJEXT=.gmo
2489 DATADIRNAME=share
2490 else
2491 echo "configure: failed program was:" >&5
2492 cat conftest.$ac_ext >&5
2493 rm -rf conftest*
2494 CATOBJEXT=.mo
2495 DATADIRNAME=lib
2496 fi
2497 rm -f conftest*
2498 INSTOBJEXT=.mo
2499 fi
2500 fi
2501
2502 else
2503 echo "$ac_t""no" 1>&6
2504 fi
2505
2506
2507
2508 if test "$CATOBJEXT" = "NONE"; then
2509 nls_cv_use_gnu_gettext=yes
2510 fi
2511 fi
2512
2513 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2514 INTLOBJS="\$(GETTOBJS)"
2515 # Extract the first word of "msgfmt", so it can be a program name with args.
2516 set dummy msgfmt; ac_word=$2
2517 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2518 echo "configure:2519: checking for $ac_word" >&5
2519 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2520 echo $ac_n "(cached) $ac_c" 1>&6
2521 else
2522 case "$MSGFMT" in
2523 /*)
2524 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2525 ;;
2526 *)
2527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2528 for ac_dir in $PATH; do
2529 test -z "$ac_dir" && ac_dir=.
2530 if test -f $ac_dir/$ac_word; then
2531 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2532 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2533 break
2534 fi
2535 fi
2536 done
2537 IFS="$ac_save_ifs"
2538 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2539 ;;
2540 esac
2541 fi
2542 MSGFMT="$ac_cv_path_MSGFMT"
2543 if test -n "$MSGFMT"; then
2544 echo "$ac_t""$MSGFMT" 1>&6
2545 else
2546 echo "$ac_t""no" 1>&6
2547 fi
2548
2549 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2550 set dummy gmsgfmt; ac_word=$2
2551 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2552 echo "configure:2553: checking for $ac_word" >&5
2553 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2554 echo $ac_n "(cached) $ac_c" 1>&6
2555 else
2556 case "$GMSGFMT" in
2557 /*)
2558 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2559 ;;
2560 ?:/*)
2561 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2562 ;;
2563 *)
2564 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2565 for ac_dir in $PATH; do
2566 test -z "$ac_dir" && ac_dir=.
2567 if test -f $ac_dir/$ac_word; then
2568 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2569 break
2570 fi
2571 done
2572 IFS="$ac_save_ifs"
2573 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2574 ;;
2575 esac
2576 fi
2577 GMSGFMT="$ac_cv_path_GMSGFMT"
2578 if test -n "$GMSGFMT"; then
2579 echo "$ac_t""$GMSGFMT" 1>&6
2580 else
2581 echo "$ac_t""no" 1>&6
2582 fi
2583
2584 # Extract the first word of "xgettext", so it can be a program name with args.
2585 set dummy xgettext; ac_word=$2
2586 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2587 echo "configure:2588: checking for $ac_word" >&5
2588 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2589 echo $ac_n "(cached) $ac_c" 1>&6
2590 else
2591 case "$XGETTEXT" in
2592 /*)
2593 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2594 ;;
2595 *)
2596 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2597 for ac_dir in $PATH; do
2598 test -z "$ac_dir" && ac_dir=.
2599 if test -f $ac_dir/$ac_word; then
2600 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2601 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2602 break
2603 fi
2604 fi
2605 done
2606 IFS="$ac_save_ifs"
2607 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2608 ;;
2609 esac
2610 fi
2611 XGETTEXT="$ac_cv_path_XGETTEXT"
2612 if test -n "$XGETTEXT"; then
2613 echo "$ac_t""$XGETTEXT" 1>&6
2614 else
2615 echo "$ac_t""no" 1>&6
2616 fi
2617
2618
2619 USE_INCLUDED_LIBINTL=yes
2620 CATOBJEXT=.gmo
2621 INSTOBJEXT=.mo
2622 DATADIRNAME=share
2623 INTLDEPS='$(top_builddir)/../intl/libintl.a'
2624 INTLLIBS=$INTLDEPS
2625 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2626 nls_cv_header_intl=libintl.h
2627 nls_cv_header_libgt=libgettext.h
2628 fi
2629
2630 if test "$XGETTEXT" != ":"; then
2631 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2632 : ;
2633 else
2634 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2635 XGETTEXT=":"
2636 fi
2637 fi
2638
2639 # We need to process the po/ directory.
2640 POSUB=po
2641 else
2642 DATADIRNAME=share
2643 nls_cv_header_intl=libintl.h
2644 nls_cv_header_libgt=libgettext.h
2645 fi
2646
2647 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2648 # because some of the sources are only built for this goal.
2649 if test "$PACKAGE" = gettext; then
2650 USE_NLS=yes
2651 USE_INCLUDED_LIBINTL=yes
2652 fi
2653
2654 for lang in $ALL_LINGUAS; do
2655 GMOFILES="$GMOFILES $lang.gmo"
2656 POFILES="$POFILES $lang.po"
2657 done
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672 if test "x$CATOBJEXT" != "x"; then
2673 if test "x$ALL_LINGUAS" = "x"; then
2674 LINGUAS=
2675 else
2676 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2677 echo "configure:2678: checking for catalogs to be installed" >&5
2678 NEW_LINGUAS=
2679 for lang in ${LINGUAS=$ALL_LINGUAS}; do
2680 case "$ALL_LINGUAS" in
2681 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
2682 esac
2683 done
2684 LINGUAS=$NEW_LINGUAS
2685 echo "$ac_t""$LINGUAS" 1>&6
2686 fi
2687
2688 if test -n "$LINGUAS"; then
2689 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2690 fi
2691 fi
2692
2693 if test $ac_cv_header_locale_h = yes; then
2694 INCLUDE_LOCALE_H="#include <locale.h>"
2695 else
2696 INCLUDE_LOCALE_H="\
2697 /* The system does not provide the header <locale.h>. Take care yourself. */"
2698 fi
2699
2700
2701 if test -f $srcdir/po2tbl.sed.in; then
2702 if test "$CATOBJEXT" = ".cat"; then
2703 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2704 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2705 echo "configure:2706: checking for linux/version.h" >&5
2706 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2707 echo $ac_n "(cached) $ac_c" 1>&6
2708 else
2709 cat > conftest.$ac_ext <<EOF
2710 #line 2711 "configure"
2711 #include "confdefs.h"
2712 #include <linux/version.h>
2713 EOF
2714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2715 { (eval echo configure:2716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2716 ac_err=`grep -v '^ *+' conftest.out`
2717 if test -z "$ac_err"; then
2718 rm -rf conftest*
2719 eval "ac_cv_header_$ac_safe=yes"
2720 else
2721 echo "$ac_err" >&5
2722 echo "configure: failed program was:" >&5
2723 cat conftest.$ac_ext >&5
2724 rm -rf conftest*
2725 eval "ac_cv_header_$ac_safe=no"
2726 fi
2727 rm -f conftest*
2728 fi
2729 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2730 echo "$ac_t""yes" 1>&6
2731 msgformat=linux
2732 else
2733 echo "$ac_t""no" 1>&6
2734 msgformat=xopen
2735 fi
2736
2737
2738 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
2739 fi
2740 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2741 $srcdir/po2tbl.sed.in > po2tbl.sed
2742 fi
2743
2744 if test "$PACKAGE" = "gettext"; then
2745 GT_NO="#NO#"
2746 GT_YES=
2747 else
2748 GT_NO=
2749 GT_YES="#YES#"
2750 fi
2751
2752
2753
2754 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
2755
2756
2757 l=
2758
2759
2760 if test -d $srcdir/po; then
2761 test -d po || mkdir po
2762 if test "x$srcdir" != "x."; then
2763 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2764 posrcprefix="$srcdir/"
2765 else
2766 posrcprefix="../$srcdir/"
2767 fi
2768 else
2769 posrcprefix="../"
2770 fi
2771 rm -f po/POTFILES
2772 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2773 < $srcdir/po/POTFILES.in > po/POTFILES
2774 fi
2775
2776
2777 for ac_hdr in stdlib.h time.h unistd.h
2778 do
2779 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2780 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2781 echo "configure:2782: checking for $ac_hdr" >&5
2782 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2783 echo $ac_n "(cached) $ac_c" 1>&6
2784 else
2785 cat > conftest.$ac_ext <<EOF
2786 #line 2787 "configure"
2787 #include "confdefs.h"
2788 #include <$ac_hdr>
2789 EOF
2790 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2791 { (eval echo configure:2792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2792 ac_err=`grep -v '^ *+' conftest.out`
2793 if test -z "$ac_err"; then
2794 rm -rf conftest*
2795 eval "ac_cv_header_$ac_safe=yes"
2796 else
2797 echo "$ac_err" >&5
2798 echo "configure: failed program was:" >&5
2799 cat conftest.$ac_ext >&5
2800 rm -rf conftest*
2801 eval "ac_cv_header_$ac_safe=no"
2802 fi
2803 rm -f conftest*
2804 fi
2805 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2806 echo "$ac_t""yes" 1>&6
2807 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2808 cat >> confdefs.h <<EOF
2809 #define $ac_tr_hdr 1
2810 EOF
2811
2812 else
2813 echo "$ac_t""no" 1>&6
2814 fi
2815 done
2816
2817
2818 echo $ac_n "checking whether printf must be declared""... $ac_c" 1>&6
2819 echo "configure:2820: checking whether printf must be declared" >&5
2820 if eval "test \"`echo '$''{'sim_cv_decl_needed_printf'+set}'`\" = set"; then
2821 echo $ac_n "(cached) $ac_c" 1>&6
2822 else
2823 cat > conftest.$ac_ext <<EOF
2824 #line 2825 "configure"
2825 #include "confdefs.h"
2826 #include <stdio.h>
2827 int main() {
2828 int (*pfn) = (int (*)) printf
2829 ; return 0; }
2830 EOF
2831 if { (eval echo configure:2832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2832 rm -rf conftest*
2833 sim_cv_decl_needed_printf=no
2834 else
2835 echo "configure: failed program was:" >&5
2836 cat conftest.$ac_ext >&5
2837 rm -rf conftest*
2838 sim_cv_decl_needed_printf=yes
2839 fi
2840 rm -f conftest*
2841 fi
2842
2843 echo "$ac_t""$sim_cv_decl_needed_printf" 1>&6
2844 if test $sim_cv_decl_needed_printf = yes; then
2845 cat >> confdefs.h <<\EOF
2846 #define NEED_DECLARATION_PRINTF 1
2847 EOF
2848
2849 fi
2850
2851 trap '' 1 2 15
2852 cat > confcache <<\EOF
2853 # This file is a shell script that caches the results of configure
2854 # tests run on this system so they can be shared between configure
2855 # scripts and configure runs. It is not useful on other systems.
2856 # If it contains results you don't want to keep, you may remove or edit it.
2857 #
2858 # By default, configure uses ./config.cache as the cache file,
2859 # creating it if it does not exist already. You can give configure
2860 # the --cache-file=FILE option to use a different cache file; that is
2861 # what configure does when it calls configure scripts in
2862 # subdirectories, so they share the cache.
2863 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2864 # config.status only pays attention to the cache file if you give it the
2865 # --recheck option to rerun configure.
2866 #
2867 EOF
2868 # The following way of writing the cache mishandles newlines in values,
2869 # but we know of no workaround that is simple, portable, and efficient.
2870 # So, don't put newlines in cache variables' values.
2871 # Ultrix sh set writes to stderr and can't be redirected directly,
2872 # and sets the high bit in the cache file unless we assign to the vars.
2873 (set) 2>&1 |
2874 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
2875 *ac_space=\ *)
2876 # `set' does not quote correctly, so add quotes (double-quote substitution
2877 # turns \\\\ into \\, and sed turns \\ into \).
2878 sed -n \
2879 -e "s/'/'\\\\''/g" \
2880 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2881 ;;
2882 *)
2883 # `set' quotes correctly as required by POSIX, so do not add quotes.
2884 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2885 ;;
2886 esac >> confcache
2887 if cmp -s $cache_file confcache; then
2888 :
2889 else
2890 if test -w $cache_file; then
2891 echo "updating cache $cache_file"
2892 cat confcache > $cache_file
2893 else
2894 echo "not updating unwritable cache $cache_file"
2895 fi
2896 fi
2897 rm -f confcache
2898
2899 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2900
2901 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2902 # Let make expand exec_prefix.
2903 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2904
2905 # Any assignment to VPATH causes Sun make to only execute
2906 # the first set of double-colon rules, so remove it if not needed.
2907 # If there is a colon in the path, we need to keep it.
2908 if test "x$srcdir" = x.; then
2909 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2910 fi
2911
2912 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2913
2914 DEFS=-DHAVE_CONFIG_H
2915
2916 # Without the "./", some shells look in PATH for config.status.
2917 : ${CONFIG_STATUS=./config.status}
2918
2919 echo creating $CONFIG_STATUS
2920 rm -f $CONFIG_STATUS
2921 cat > $CONFIG_STATUS <<EOF
2922 #! /bin/sh
2923 # Generated automatically by configure.
2924 # Run this file to recreate the current configuration.
2925 # This directory was configured as follows,
2926 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2927 #
2928 # $0 $ac_configure_args
2929 #
2930 # Compiler output produced by configure, useful for debugging
2931 # configure, is in ./config.log if it exists.
2932
2933 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2934 for ac_option
2935 do
2936 case "\$ac_option" in
2937 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2938 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2939 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2940 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2941 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
2942 exit 0 ;;
2943 -help | --help | --hel | --he | --h)
2944 echo "\$ac_cs_usage"; exit 0 ;;
2945 *) echo "\$ac_cs_usage"; exit 1 ;;
2946 esac
2947 done
2948
2949 ac_given_srcdir=$srcdir
2950 ac_given_INSTALL="$INSTALL"
2951
2952 trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2953 EOF
2954 cat >> $CONFIG_STATUS <<EOF
2955
2956 # Protect against being on the right side of a sed subst in config.status.
2957 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2958 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2959 $ac_vpsub
2960 $extrasub
2961 s%@sim_environment@%$sim_environment%g
2962 s%@sim_alignment@%$sim_alignment%g
2963 s%@sim_assert@%$sim_assert%g
2964 s%@sim_bitsize@%$sim_bitsize%g
2965 s%@sim_endian@%$sim_endian%g
2966 s%@sim_hostendian@%$sim_hostendian%g
2967 s%@sim_float@%$sim_float%g
2968 s%@sim_scache@%$sim_scache%g
2969 s%@sim_default_model@%$sim_default_model%g
2970 s%@sim_hw_cflags@%$sim_hw_cflags%g
2971 s%@sim_hw_objs@%$sim_hw_objs%g
2972 s%@sim_hw@%$sim_hw%g
2973 s%@sim_inline@%$sim_inline%g
2974 s%@sim_packages@%$sim_packages%g
2975 s%@sim_regparm@%$sim_regparm%g
2976 s%@sim_reserved_bits@%$sim_reserved_bits%g
2977 s%@sim_smp@%$sim_smp%g
2978 s%@sim_stdcall@%$sim_stdcall%g
2979 s%@sim_xor_endian@%$sim_xor_endian%g
2980 s%@sim_warnings@%$sim_warnings%g
2981 s%@SHELL@%$SHELL%g
2982 s%@CFLAGS@%$CFLAGS%g
2983 s%@CPPFLAGS@%$CPPFLAGS%g
2984 s%@CXXFLAGS@%$CXXFLAGS%g
2985 s%@DEFS@%$DEFS%g
2986 s%@LDFLAGS@%$LDFLAGS%g
2987 s%@LIBS@%$LIBS%g
2988 s%@exec_prefix@%$exec_prefix%g
2989 s%@prefix@%$prefix%g
2990 s%@program_transform_name@%$program_transform_name%g
2991 s%@bindir@%$bindir%g
2992 s%@sbindir@%$sbindir%g
2993 s%@libexecdir@%$libexecdir%g
2994 s%@datadir@%$datadir%g
2995 s%@sysconfdir@%$sysconfdir%g
2996 s%@sharedstatedir@%$sharedstatedir%g
2997 s%@localstatedir@%$localstatedir%g
2998 s%@libdir@%$libdir%g
2999 s%@includedir@%$includedir%g
3000 s%@oldincludedir@%$oldincludedir%g
3001 s%@infodir@%$infodir%g
3002 s%@mandir@%$mandir%g
3003 s%@host@%$host%g
3004 s%@host_alias@%$host_alias%g
3005 s%@host_cpu@%$host_cpu%g
3006 s%@host_vendor@%$host_vendor%g
3007 s%@host_os@%$host_os%g
3008 s%@target@%$target%g
3009 s%@target_alias@%$target_alias%g
3010 s%@target_cpu@%$target_cpu%g
3011 s%@target_vendor@%$target_vendor%g
3012 s%@target_os@%$target_os%g
3013 s%@build@%$build%g
3014 s%@build_alias@%$build_alias%g
3015 s%@build_cpu@%$build_cpu%g
3016 s%@build_vendor@%$build_vendor%g
3017 s%@build_os@%$build_os%g
3018 s%@CC@%$CC%g
3019 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3020 s%@INSTALL_DATA@%$INSTALL_DATA%g
3021 s%@HDEFINES@%$HDEFINES%g
3022 s%@AR@%$AR%g
3023 s%@RANLIB@%$RANLIB%g
3024 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
3025 s%@SET_MAKE@%$SET_MAKE%g
3026 s%@CPP@%$CPP%g
3027 s%@ALLOCA@%$ALLOCA%g
3028 s%@USE_NLS@%$USE_NLS%g
3029 s%@MSGFMT@%$MSGFMT%g
3030 s%@GMSGFMT@%$GMSGFMT%g
3031 s%@XGETTEXT@%$XGETTEXT%g
3032 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
3033 s%@CATALOGS@%$CATALOGS%g
3034 s%@CATOBJEXT@%$CATOBJEXT%g
3035 s%@DATADIRNAME@%$DATADIRNAME%g
3036 s%@GMOFILES@%$GMOFILES%g
3037 s%@INSTOBJEXT@%$INSTOBJEXT%g
3038 s%@INTLDEPS@%$INTLDEPS%g
3039 s%@INTLLIBS@%$INTLLIBS%g
3040 s%@INTLOBJS@%$INTLOBJS%g
3041 s%@POFILES@%$POFILES%g
3042 s%@POSUB@%$POSUB%g
3043 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
3044 s%@GT_NO@%$GT_NO%g
3045 s%@GT_YES@%$GT_YES%g
3046 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
3047 s%@l@%$l%g
3048
3049 CEOF
3050 EOF
3051
3052 cat >> $CONFIG_STATUS <<\EOF
3053
3054 # Split the substitutions into bite-sized pieces for seds with
3055 # small command number limits, like on Digital OSF/1 and HP-UX.
3056 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3057 ac_file=1 # Number of current file.
3058 ac_beg=1 # First line for current file.
3059 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3060 ac_more_lines=:
3061 ac_sed_cmds=""
3062 while $ac_more_lines; do
3063 if test $ac_beg -gt 1; then
3064 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3065 else
3066 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3067 fi
3068 if test ! -s conftest.s$ac_file; then
3069 ac_more_lines=false
3070 rm -f conftest.s$ac_file
3071 else
3072 if test -z "$ac_sed_cmds"; then
3073 ac_sed_cmds="sed -f conftest.s$ac_file"
3074 else
3075 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3076 fi
3077 ac_file=`expr $ac_file + 1`
3078 ac_beg=$ac_end
3079 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3080 fi
3081 done
3082 if test -z "$ac_sed_cmds"; then
3083 ac_sed_cmds=cat
3084 fi
3085 EOF
3086
3087 cat >> $CONFIG_STATUS <<EOF
3088
3089 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
3090 EOF
3091 cat >> $CONFIG_STATUS <<\EOF
3092 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3093 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3094 case "$ac_file" in
3095 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3096 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3097 *) ac_file_in="${ac_file}.in" ;;
3098 esac
3099
3100 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3101
3102 # Remove last slash and all that follows it. Not all systems have dirname.
3103 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3104 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3105 # The file is in a subdirectory.
3106 test ! -d "$ac_dir" && mkdir "$ac_dir"
3107 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3108 # A "../" for each directory in $ac_dir_suffix.
3109 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3110 else
3111 ac_dir_suffix= ac_dots=
3112 fi
3113
3114 case "$ac_given_srcdir" in
3115 .) srcdir=.
3116 if test -z "$ac_dots"; then top_srcdir=.
3117 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3118 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3119 *) # Relative path.
3120 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3121 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3122 esac
3123
3124 case "$ac_given_INSTALL" in
3125 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3126 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3127 esac
3128
3129 echo creating "$ac_file"
3130 rm -f "$ac_file"
3131 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3132 case "$ac_file" in
3133 *Makefile*) ac_comsub="1i\\
3134 # $configure_input" ;;
3135 *) ac_comsub= ;;
3136 esac
3137
3138 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3139 sed -e "$ac_comsub
3140 s%@configure_input@%$configure_input%g
3141 s%@srcdir@%$srcdir%g
3142 s%@top_srcdir@%$top_srcdir%g
3143 s%@INSTALL@%$INSTALL%g
3144 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3145 fi; done
3146 rm -f conftest.s*
3147
3148 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3149 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3150 #
3151 # ac_d sets the value in "#define NAME VALUE" lines.
3152 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3153 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3154 ac_dC='\3'
3155 ac_dD='%g'
3156 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3157 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3158 ac_uB='\([ ]\)%\1#\2define\3'
3159 ac_uC=' '
3160 ac_uD='\4%g'
3161 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3162 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3163 ac_eB='$%\1#\2define\3'
3164 ac_eC=' '
3165 ac_eD='%g'
3166
3167 if test "${CONFIG_HEADERS+set}" != set; then
3168 EOF
3169 cat >> $CONFIG_STATUS <<EOF
3170 CONFIG_HEADERS="config.h:config.in"
3171 EOF
3172 cat >> $CONFIG_STATUS <<\EOF
3173 fi
3174 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3175 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3176 case "$ac_file" in
3177 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3178 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3179 *) ac_file_in="${ac_file}.in" ;;
3180 esac
3181
3182 echo creating $ac_file
3183
3184 rm -f conftest.frag conftest.in conftest.out
3185 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3186 cat $ac_file_inputs > conftest.in
3187
3188 EOF
3189
3190 # Transform confdefs.h into a sed script conftest.vals that substitutes
3191 # the proper values into config.h.in to produce config.h. And first:
3192 # Protect against being on the right side of a sed subst in config.status.
3193 # Protect against being in an unquoted here document in config.status.
3194 rm -f conftest.vals
3195 cat > conftest.hdr <<\EOF
3196 s/[\\&%]/\\&/g
3197 s%[\\$`]%\\&%g
3198 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3199 s%ac_d%ac_u%gp
3200 s%ac_u%ac_e%gp
3201 EOF
3202 sed -n -f conftest.hdr confdefs.h > conftest.vals
3203 rm -f conftest.hdr
3204
3205 # This sed command replaces #undef with comments. This is necessary, for
3206 # example, in the case of _POSIX_SOURCE, which is predefined and required
3207 # on some systems where configure will not decide to define it.
3208 cat >> conftest.vals <<\EOF
3209 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3210 EOF
3211
3212 # Break up conftest.vals because some shells have a limit on
3213 # the size of here documents, and old seds have small limits too.
3214
3215 rm -f conftest.tail
3216 while :
3217 do
3218 ac_lines=`grep -c . conftest.vals`
3219 # grep -c gives empty output for an empty file on some AIX systems.
3220 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3221 # Write a limited-size here document to conftest.frag.
3222 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3223 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3224 echo 'CEOF
3225 sed -f conftest.frag conftest.in > conftest.out
3226 rm -f conftest.in
3227 mv conftest.out conftest.in
3228 ' >> $CONFIG_STATUS
3229 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3230 rm -f conftest.vals
3231 mv conftest.tail conftest.vals
3232 done
3233 rm -f conftest.vals
3234
3235 cat >> $CONFIG_STATUS <<\EOF
3236 rm -f conftest.frag conftest.h
3237 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3238 cat conftest.in >> conftest.h
3239 rm -f conftest.in
3240 if cmp -s $ac_file conftest.h 2>/dev/null; then
3241 echo "$ac_file is unchanged"
3242 rm -f conftest.h
3243 else
3244 # Remove last slash and all that follows it. Not all systems have dirname.
3245 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3246 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3247 # The file is in a subdirectory.
3248 test ! -d "$ac_dir" && mkdir "$ac_dir"
3249 fi
3250 rm -f $ac_file
3251 mv conftest.h $ac_file
3252 fi
3253 fi; done
3254
3255 EOF
3256 cat >> $CONFIG_STATUS <<EOF
3257
3258 EOF
3259 cat >> $CONFIG_STATUS <<\EOF
3260 case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac
3261 exit 0
3262 EOF
3263 chmod +x $CONFIG_STATUS
3264 rm -fr confdefs* $ac_clean_files
3265 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3266