]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/w65/configure
Initial creation of sourceware repository
[thirdparty/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.2
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.2"
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${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
643 cross_compiling=$ac_cv_prog_cc_cross
644
645 ac_exeext=
646 ac_objext=o
647 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
648 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
649 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
650 ac_n= ac_c='
651 ' ac_t=' '
652 else
653 ac_n=-n ac_c= ac_t=
654 fi
655 else
656 ac_n= ac_c='\c' ac_t=
657 fi
658
659
660
661
662
663 ac_aux_dir=
664 for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do
665 if test -f $ac_dir/install-sh; then
666 ac_aux_dir=$ac_dir
667 ac_install_sh="$ac_aux_dir/install-sh -c"
668 break
669 elif test -f $ac_dir/install.sh; then
670 ac_aux_dir=$ac_dir
671 ac_install_sh="$ac_aux_dir/install.sh -c"
672 break
673 fi
674 done
675 if test -z "$ac_aux_dir"; then
676 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
677 fi
678 ac_config_guess=$ac_aux_dir/config.guess
679 ac_config_sub=$ac_aux_dir/config.sub
680 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
681
682
683 # Do some error checking and defaulting for the host and target type.
684 # The inputs are:
685 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
686 #
687 # The rules are:
688 # 1. You are not allowed to specify --host, --target, and nonopt at the
689 # same time.
690 # 2. Host defaults to nonopt.
691 # 3. If nonopt is not specified, then host defaults to the current host,
692 # as determined by config.guess.
693 # 4. Target and build default to nonopt.
694 # 5. If nonopt is not specified, then target and build default to host.
695
696 # The aliases save the names the user supplied, while $host etc.
697 # will get canonicalized.
698 case $host---$target---$nonopt in
699 NONE---*---* | *---NONE---* | *---*---NONE) ;;
700 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
701 esac
702
703
704 # Make sure we can run config.sub.
705 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
706 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
707 fi
708
709 echo $ac_n "checking host system type""... $ac_c" 1>&6
710 echo "configure:711: checking host system type" >&5
711
712 host_alias=$host
713 case "$host_alias" in
714 NONE)
715 case $nonopt in
716 NONE)
717 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
718 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
719 fi ;;
720 *) host_alias=$nonopt ;;
721 esac ;;
722 esac
723
724 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
725 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
726 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
727 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
728 echo "$ac_t""$host" 1>&6
729
730 echo $ac_n "checking target system type""... $ac_c" 1>&6
731 echo "configure:732: checking target system type" >&5
732
733 target_alias=$target
734 case "$target_alias" in
735 NONE)
736 case $nonopt in
737 NONE) target_alias=$host_alias ;;
738 *) target_alias=$nonopt ;;
739 esac ;;
740 esac
741
742 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
743 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
744 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
745 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
746 echo "$ac_t""$target" 1>&6
747
748 echo $ac_n "checking build system type""... $ac_c" 1>&6
749 echo "configure:750: checking build system type" >&5
750
751 build_alias=$build
752 case "$build_alias" in
753 NONE)
754 case $nonopt in
755 NONE) build_alias=$host_alias ;;
756 *) build_alias=$nonopt ;;
757 esac ;;
758 esac
759
760 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
761 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
762 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
763 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
764 echo "$ac_t""$build" 1>&6
765
766 test "$host_alias" != "$target_alias" &&
767 test "$program_prefix$program_suffix$program_transform_name" = \
768 NONENONEs,x,x, &&
769 program_prefix=${target_alias}-
770
771 if test "$program_transform_name" = s,x,x,; then
772 program_transform_name=
773 else
774 # Double any \ or $. echo might interpret backslashes.
775 cat <<\EOF_SED > conftestsed
776 s,\\,\\\\,g; s,\$,$$,g
777 EOF_SED
778 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
779 rm -f conftestsed
780 fi
781 test "$program_prefix" != NONE &&
782 program_transform_name="s,^,${program_prefix},; $program_transform_name"
783 # Use a double $ so make ignores it.
784 test "$program_suffix" != NONE &&
785 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
786
787 # sed with no file args requires a program.
788 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
789
790 # Extract the first word of "gcc", so it can be a program name with args.
791 set dummy gcc; ac_word=$2
792 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
793 echo "configure:794: checking for $ac_word" >&5
794 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
795 echo $ac_n "(cached) $ac_c" 1>&6
796 else
797 if test -n "$CC"; then
798 ac_cv_prog_CC="$CC" # Let the user override the test.
799 else
800 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
801 for ac_dir in $PATH; do
802 test -z "$ac_dir" && ac_dir=.
803 if test -f $ac_dir/$ac_word; then
804 ac_cv_prog_CC="gcc"
805 break
806 fi
807 done
808 IFS="$ac_save_ifs"
809 fi
810 fi
811 CC="$ac_cv_prog_CC"
812 if test -n "$CC"; then
813 echo "$ac_t""$CC" 1>&6
814 else
815 echo "$ac_t""no" 1>&6
816 fi
817
818 if test -z "$CC"; then
819 # Extract the first word of "cc", so it can be a program name with args.
820 set dummy cc; ac_word=$2
821 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
822 echo "configure:823: checking for $ac_word" >&5
823 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
824 echo $ac_n "(cached) $ac_c" 1>&6
825 else
826 if test -n "$CC"; then
827 ac_cv_prog_CC="$CC" # Let the user override the test.
828 else
829 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
830 ac_prog_rejected=no
831 for ac_dir in $PATH; do
832 test -z "$ac_dir" && ac_dir=.
833 if test -f $ac_dir/$ac_word; then
834 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
835 ac_prog_rejected=yes
836 continue
837 fi
838 ac_cv_prog_CC="cc"
839 break
840 fi
841 done
842 IFS="$ac_save_ifs"
843 if test $ac_prog_rejected = yes; then
844 # We found a bogon in the path, so make sure we never use it.
845 set dummy $ac_cv_prog_CC
846 shift
847 if test $# -gt 0; then
848 # We chose a different compiler from the bogus one.
849 # However, it has the same basename, so the bogon will be chosen
850 # first if we set CC to just the basename; use the full file name.
851 shift
852 set dummy "$ac_dir/$ac_word" "$@"
853 shift
854 ac_cv_prog_CC="$@"
855 fi
856 fi
857 fi
858 fi
859 CC="$ac_cv_prog_CC"
860 if test -n "$CC"; then
861 echo "$ac_t""$CC" 1>&6
862 else
863 echo "$ac_t""no" 1>&6
864 fi
865
866 if test -z "$CC"; then
867 case "`uname -s`" in
868 *win32* | *WIN32*)
869 # Extract the first word of "cl", so it can be a program name with args.
870 set dummy cl; ac_word=$2
871 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
872 echo "configure:873: checking for $ac_word" >&5
873 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
874 echo $ac_n "(cached) $ac_c" 1>&6
875 else
876 if test -n "$CC"; then
877 ac_cv_prog_CC="$CC" # Let the user override the test.
878 else
879 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
880 for ac_dir in $PATH; do
881 test -z "$ac_dir" && ac_dir=.
882 if test -f $ac_dir/$ac_word; then
883 ac_cv_prog_CC="cl"
884 break
885 fi
886 done
887 IFS="$ac_save_ifs"
888 fi
889 fi
890 CC="$ac_cv_prog_CC"
891 if test -n "$CC"; then
892 echo "$ac_t""$CC" 1>&6
893 else
894 echo "$ac_t""no" 1>&6
895 fi
896 ;;
897 esac
898 fi
899 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
900 fi
901
902 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
903 echo "configure:904: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
904
905 ac_ext=c
906 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
907 ac_cpp='$CPP $CPPFLAGS'
908 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
909 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
910 cross_compiling=$ac_cv_prog_cc_cross
911
912 cat > conftest.$ac_ext <<EOF
913 #line 914 "configure"
914 #include "confdefs.h"
915 main(){return(0);}
916 EOF
917 if { (eval echo configure:918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
918 ac_cv_prog_cc_works=yes
919 # If we can't run a trivial program, we are probably using a cross compiler.
920 if (./conftest; exit) 2>/dev/null; then
921 ac_cv_prog_cc_cross=no
922 else
923 ac_cv_prog_cc_cross=yes
924 fi
925 else
926 echo "configure: failed program was:" >&5
927 cat conftest.$ac_ext >&5
928 ac_cv_prog_cc_works=no
929 fi
930 rm -fr conftest*
931
932 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
933 if test $ac_cv_prog_cc_works = no; then
934 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
935 fi
936 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
937 echo "configure:938: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
938 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
939 cross_compiling=$ac_cv_prog_cc_cross
940
941 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
942 echo "configure:943: checking whether we are using GNU C" >&5
943 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
944 echo $ac_n "(cached) $ac_c" 1>&6
945 else
946 cat > conftest.c <<EOF
947 #ifdef __GNUC__
948 yes;
949 #endif
950 EOF
951 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
952 ac_cv_prog_gcc=yes
953 else
954 ac_cv_prog_gcc=no
955 fi
956 fi
957
958 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
959
960 if test $ac_cv_prog_gcc = yes; then
961 GCC=yes
962 else
963 GCC=
964 fi
965
966 ac_test_CFLAGS="${CFLAGS+set}"
967 ac_save_CFLAGS="$CFLAGS"
968 CFLAGS=
969 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
970 echo "configure:971: checking whether ${CC-cc} accepts -g" >&5
971 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
972 echo $ac_n "(cached) $ac_c" 1>&6
973 else
974 echo 'void f(){}' > conftest.c
975 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
976 ac_cv_prog_cc_g=yes
977 else
978 ac_cv_prog_cc_g=no
979 fi
980 rm -f conftest*
981
982 fi
983
984 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
985 if test "$ac_test_CFLAGS" = set; then
986 CFLAGS="$ac_save_CFLAGS"
987 elif test $ac_cv_prog_cc_g = yes; then
988 if test "$GCC" = yes; then
989 CFLAGS="-g -O2"
990 else
991 CFLAGS="-g"
992 fi
993 else
994 if test "$GCC" = yes; then
995 CFLAGS="-O2"
996 else
997 CFLAGS=
998 fi
999 fi
1000
1001 # Find a good install program. We prefer a C program (faster),
1002 # so one script is as good as another. But avoid the broken or
1003 # incompatible versions:
1004 # SysV /etc/install, /usr/sbin/install
1005 # SunOS /usr/etc/install
1006 # IRIX /sbin/install
1007 # AIX /bin/install
1008 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1009 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1010 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1011 # ./install, which can be erroneously created by make from ./install.sh.
1012 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1013 echo "configure:1014: checking for a BSD compatible install" >&5
1014 if test -z "$INSTALL"; then
1015 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1016 echo $ac_n "(cached) $ac_c" 1>&6
1017 else
1018 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1019 for ac_dir in $PATH; do
1020 # Account for people who put trailing slashes in PATH elements.
1021 case "$ac_dir/" in
1022 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1023 *)
1024 # OSF1 and SCO ODT 3.0 have their own names for install.
1025 # Don't use installbsd from OSF since it installs stuff as root
1026 # by default.
1027 for ac_prog in ginstall scoinst install; do
1028 if test -f $ac_dir/$ac_prog; then
1029 if test $ac_prog = install &&
1030 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1031 # AIX install. It has an incompatible calling convention.
1032 :
1033 else
1034 ac_cv_path_install="$ac_dir/$ac_prog -c"
1035 break 2
1036 fi
1037 fi
1038 done
1039 ;;
1040 esac
1041 done
1042 IFS="$ac_save_IFS"
1043
1044 fi
1045 if test "${ac_cv_path_install+set}" = set; then
1046 INSTALL="$ac_cv_path_install"
1047 else
1048 # As a last resort, use the slow shell script. We don't cache a
1049 # path for INSTALL within a source directory, because that will
1050 # break other packages using the cache if that directory is
1051 # removed, or if the path is relative.
1052 INSTALL="$ac_install_sh"
1053 fi
1054 fi
1055 echo "$ac_t""$INSTALL" 1>&6
1056
1057 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1058 # It thinks the first close brace ends the variable substitution.
1059 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1060
1061 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1062
1063
1064 . ${srcdir}/../../bfd/configure.host
1065
1066
1067
1068 AR=${AR-ar}
1069
1070 # Extract the first word of "ranlib", so it can be a program name with args.
1071 set dummy ranlib; ac_word=$2
1072 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1073 echo "configure:1074: checking for $ac_word" >&5
1074 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1075 echo $ac_n "(cached) $ac_c" 1>&6
1076 else
1077 if test -n "$RANLIB"; then
1078 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1079 else
1080 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1081 for ac_dir in $PATH; do
1082 test -z "$ac_dir" && ac_dir=.
1083 if test -f $ac_dir/$ac_word; then
1084 ac_cv_prog_RANLIB="ranlib"
1085 break
1086 fi
1087 done
1088 IFS="$ac_save_ifs"
1089 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1090 fi
1091 fi
1092 RANLIB="$ac_cv_prog_RANLIB"
1093 if test -n "$RANLIB"; then
1094 echo "$ac_t""$RANLIB" 1>&6
1095 else
1096 echo "$ac_t""no" 1>&6
1097 fi
1098
1099
1100 # Put a plausible default for CC_FOR_BUILD in Makefile.
1101 if test "x$cross_compiling" = "xno"; then
1102 CC_FOR_BUILD='$(CC)'
1103 else
1104 CC_FOR_BUILD=gcc
1105 fi
1106
1107
1108 ALL_LINGUAS=
1109 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1110 echo "configure:1111: checking how to run the C preprocessor" >&5
1111 # On Suns, sometimes $CPP names a directory.
1112 if test -n "$CPP" && test -d "$CPP"; then
1113 CPP=
1114 fi
1115 if test -z "$CPP"; then
1116 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1117 echo $ac_n "(cached) $ac_c" 1>&6
1118 else
1119 # This must be in double quotes, not single quotes, because CPP may get
1120 # substituted into the Makefile and "${CC-cc}" will confuse make.
1121 CPP="${CC-cc} -E"
1122 # On the NeXT, cc -E runs the code through the compiler's parser,
1123 # not just through cpp.
1124 cat > conftest.$ac_ext <<EOF
1125 #line 1126 "configure"
1126 #include "confdefs.h"
1127 #include <assert.h>
1128 Syntax Error
1129 EOF
1130 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1131 { (eval echo configure:1132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1132 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1133 if test -z "$ac_err"; then
1134 :
1135 else
1136 echo "$ac_err" >&5
1137 echo "configure: failed program was:" >&5
1138 cat conftest.$ac_ext >&5
1139 rm -rf conftest*
1140 CPP="${CC-cc} -E -traditional-cpp"
1141 cat > conftest.$ac_ext <<EOF
1142 #line 1143 "configure"
1143 #include "confdefs.h"
1144 #include <assert.h>
1145 Syntax Error
1146 EOF
1147 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1148 { (eval echo configure:1149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1149 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1150 if test -z "$ac_err"; then
1151 :
1152 else
1153 echo "$ac_err" >&5
1154 echo "configure: failed program was:" >&5
1155 cat conftest.$ac_ext >&5
1156 rm -rf conftest*
1157 CPP="${CC-cc} -nologo -E"
1158 cat > conftest.$ac_ext <<EOF
1159 #line 1160 "configure"
1160 #include "confdefs.h"
1161 #include <assert.h>
1162 Syntax Error
1163 EOF
1164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1165 { (eval echo configure:1166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1166 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1167 if test -z "$ac_err"; then
1168 :
1169 else
1170 echo "$ac_err" >&5
1171 echo "configure: failed program was:" >&5
1172 cat conftest.$ac_ext >&5
1173 rm -rf conftest*
1174 CPP=/lib/cpp
1175 fi
1176 rm -f conftest*
1177 fi
1178 rm -f conftest*
1179 fi
1180 rm -f conftest*
1181 ac_cv_prog_CPP="$CPP"
1182 fi
1183 CPP="$ac_cv_prog_CPP"
1184 else
1185 ac_cv_prog_CPP="$CPP"
1186 fi
1187 echo "$ac_t""$CPP" 1>&6
1188
1189 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1190 echo "configure:1191: checking whether ${MAKE-make} sets \${MAKE}" >&5
1191 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1192 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1193 echo $ac_n "(cached) $ac_c" 1>&6
1194 else
1195 cat > conftestmake <<\EOF
1196 all:
1197 @echo 'ac_maketemp="${MAKE}"'
1198 EOF
1199 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1200 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1201 if test -n "$ac_maketemp"; then
1202 eval ac_cv_prog_make_${ac_make}_set=yes
1203 else
1204 eval ac_cv_prog_make_${ac_make}_set=no
1205 fi
1206 rm -f conftestmake
1207 fi
1208 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1209 echo "$ac_t""yes" 1>&6
1210 SET_MAKE=
1211 else
1212 echo "$ac_t""no" 1>&6
1213 SET_MAKE="MAKE=${MAKE-make}"
1214 fi
1215
1216 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1217 echo "configure:1218: checking for POSIXized ISC" >&5
1218 if test -d /etc/conf/kconfig.d &&
1219 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1220 then
1221 echo "$ac_t""yes" 1>&6
1222 ISC=yes # If later tests want to check for ISC.
1223 cat >> confdefs.h <<\EOF
1224 #define _POSIX_SOURCE 1
1225 EOF
1226
1227 if test "$GCC" = yes; then
1228 CC="$CC -posix"
1229 else
1230 CC="$CC -Xp"
1231 fi
1232 else
1233 echo "$ac_t""no" 1>&6
1234 ISC=
1235 fi
1236
1237 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1238 echo "configure:1239: checking for ANSI C header files" >&5
1239 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1240 echo $ac_n "(cached) $ac_c" 1>&6
1241 else
1242 cat > conftest.$ac_ext <<EOF
1243 #line 1244 "configure"
1244 #include "confdefs.h"
1245 #include <stdlib.h>
1246 #include <stdarg.h>
1247 #include <string.h>
1248 #include <float.h>
1249 EOF
1250 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1251 { (eval echo configure:1252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1252 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1253 if test -z "$ac_err"; then
1254 rm -rf conftest*
1255 ac_cv_header_stdc=yes
1256 else
1257 echo "$ac_err" >&5
1258 echo "configure: failed program was:" >&5
1259 cat conftest.$ac_ext >&5
1260 rm -rf conftest*
1261 ac_cv_header_stdc=no
1262 fi
1263 rm -f conftest*
1264
1265 if test $ac_cv_header_stdc = yes; then
1266 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1267 cat > conftest.$ac_ext <<EOF
1268 #line 1269 "configure"
1269 #include "confdefs.h"
1270 #include <string.h>
1271 EOF
1272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1273 egrep "memchr" >/dev/null 2>&1; then
1274 :
1275 else
1276 rm -rf conftest*
1277 ac_cv_header_stdc=no
1278 fi
1279 rm -f conftest*
1280
1281 fi
1282
1283 if test $ac_cv_header_stdc = yes; then
1284 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1285 cat > conftest.$ac_ext <<EOF
1286 #line 1287 "configure"
1287 #include "confdefs.h"
1288 #include <stdlib.h>
1289 EOF
1290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1291 egrep "free" >/dev/null 2>&1; then
1292 :
1293 else
1294 rm -rf conftest*
1295 ac_cv_header_stdc=no
1296 fi
1297 rm -f conftest*
1298
1299 fi
1300
1301 if test $ac_cv_header_stdc = yes; then
1302 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1303 if test "$cross_compiling" = yes; then
1304 :
1305 else
1306 cat > conftest.$ac_ext <<EOF
1307 #line 1308 "configure"
1308 #include "confdefs.h"
1309 #include <ctype.h>
1310 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1311 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1313 int main () { int i; for (i = 0; i < 256; i++)
1314 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1315 exit (0); }
1316
1317 EOF
1318 if { (eval echo configure:1319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1319 then
1320 :
1321 else
1322 echo "configure: failed program was:" >&5
1323 cat conftest.$ac_ext >&5
1324 rm -fr conftest*
1325 ac_cv_header_stdc=no
1326 fi
1327 rm -fr conftest*
1328 fi
1329
1330 fi
1331 fi
1332
1333 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1334 if test $ac_cv_header_stdc = yes; then
1335 cat >> confdefs.h <<\EOF
1336 #define STDC_HEADERS 1
1337 EOF
1338
1339 fi
1340
1341 echo $ac_n "checking for working const""... $ac_c" 1>&6
1342 echo "configure:1343: checking for working const" >&5
1343 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1344 echo $ac_n "(cached) $ac_c" 1>&6
1345 else
1346 cat > conftest.$ac_ext <<EOF
1347 #line 1348 "configure"
1348 #include "confdefs.h"
1349
1350 int main() {
1351
1352 /* Ultrix mips cc rejects this. */
1353 typedef int charset[2]; const charset x;
1354 /* SunOS 4.1.1 cc rejects this. */
1355 char const *const *ccp;
1356 char **p;
1357 /* NEC SVR4.0.2 mips cc rejects this. */
1358 struct point {int x, y;};
1359 static struct point const zero = {0,0};
1360 /* AIX XL C 1.02.0.0 rejects this.
1361 It does not let you subtract one const X* pointer from another in an arm
1362 of an if-expression whose if-part is not a constant expression */
1363 const char *g = "string";
1364 ccp = &g + (g ? g-g : 0);
1365 /* HPUX 7.0 cc rejects these. */
1366 ++ccp;
1367 p = (char**) ccp;
1368 ccp = (char const *const *) p;
1369 { /* SCO 3.2v4 cc rejects this. */
1370 char *t;
1371 char const *s = 0 ? (char *) 0 : (char const *) 0;
1372
1373 *t++ = 0;
1374 }
1375 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1376 int x[] = {25, 17};
1377 const int *foo = &x[0];
1378 ++foo;
1379 }
1380 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1381 typedef const int *iptr;
1382 iptr p = 0;
1383 ++p;
1384 }
1385 { /* AIX XL C 1.02.0.0 rejects this saying
1386 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1387 struct s { int j; const int *ap[3]; };
1388 struct s *b; b->j = 5;
1389 }
1390 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1391 const int foo = 10;
1392 }
1393
1394 ; return 0; }
1395 EOF
1396 if { (eval echo configure:1397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1397 rm -rf conftest*
1398 ac_cv_c_const=yes
1399 else
1400 echo "configure: failed program was:" >&5
1401 cat conftest.$ac_ext >&5
1402 rm -rf conftest*
1403 ac_cv_c_const=no
1404 fi
1405 rm -f conftest*
1406 fi
1407
1408 echo "$ac_t""$ac_cv_c_const" 1>&6
1409 if test $ac_cv_c_const = no; then
1410 cat >> confdefs.h <<\EOF
1411 #define const
1412 EOF
1413
1414 fi
1415
1416 echo $ac_n "checking for inline""... $ac_c" 1>&6
1417 echo "configure:1418: checking for inline" >&5
1418 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1419 echo $ac_n "(cached) $ac_c" 1>&6
1420 else
1421 ac_cv_c_inline=no
1422 for ac_kw in inline __inline__ __inline; do
1423 cat > conftest.$ac_ext <<EOF
1424 #line 1425 "configure"
1425 #include "confdefs.h"
1426
1427 int main() {
1428 } $ac_kw foo() {
1429 ; return 0; }
1430 EOF
1431 if { (eval echo configure:1432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1432 rm -rf conftest*
1433 ac_cv_c_inline=$ac_kw; break
1434 else
1435 echo "configure: failed program was:" >&5
1436 cat conftest.$ac_ext >&5
1437 fi
1438 rm -f conftest*
1439 done
1440
1441 fi
1442
1443 echo "$ac_t""$ac_cv_c_inline" 1>&6
1444 case "$ac_cv_c_inline" in
1445 inline | yes) ;;
1446 no) cat >> confdefs.h <<\EOF
1447 #define inline
1448 EOF
1449 ;;
1450 *) cat >> confdefs.h <<EOF
1451 #define inline $ac_cv_c_inline
1452 EOF
1453 ;;
1454 esac
1455
1456 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1457 echo "configure:1458: checking for off_t" >&5
1458 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1459 echo $ac_n "(cached) $ac_c" 1>&6
1460 else
1461 cat > conftest.$ac_ext <<EOF
1462 #line 1463 "configure"
1463 #include "confdefs.h"
1464 #include <sys/types.h>
1465 #if STDC_HEADERS
1466 #include <stdlib.h>
1467 #include <stddef.h>
1468 #endif
1469 EOF
1470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1471 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1472 rm -rf conftest*
1473 ac_cv_type_off_t=yes
1474 else
1475 rm -rf conftest*
1476 ac_cv_type_off_t=no
1477 fi
1478 rm -f conftest*
1479
1480 fi
1481 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1482 if test $ac_cv_type_off_t = no; then
1483 cat >> confdefs.h <<\EOF
1484 #define off_t long
1485 EOF
1486
1487 fi
1488
1489 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1490 echo "configure:1491: checking for size_t" >&5
1491 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1492 echo $ac_n "(cached) $ac_c" 1>&6
1493 else
1494 cat > conftest.$ac_ext <<EOF
1495 #line 1496 "configure"
1496 #include "confdefs.h"
1497 #include <sys/types.h>
1498 #if STDC_HEADERS
1499 #include <stdlib.h>
1500 #include <stddef.h>
1501 #endif
1502 EOF
1503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1504 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1505 rm -rf conftest*
1506 ac_cv_type_size_t=yes
1507 else
1508 rm -rf conftest*
1509 ac_cv_type_size_t=no
1510 fi
1511 rm -f conftest*
1512
1513 fi
1514 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1515 if test $ac_cv_type_size_t = no; then
1516 cat >> confdefs.h <<\EOF
1517 #define size_t unsigned
1518 EOF
1519
1520 fi
1521
1522 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1523 # for constant arguments. Useless!
1524 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1525 echo "configure:1526: checking for working alloca.h" >&5
1526 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1527 echo $ac_n "(cached) $ac_c" 1>&6
1528 else
1529 cat > conftest.$ac_ext <<EOF
1530 #line 1531 "configure"
1531 #include "confdefs.h"
1532 #include <alloca.h>
1533 int main() {
1534 char *p = alloca(2 * sizeof(int));
1535 ; return 0; }
1536 EOF
1537 if { (eval echo configure:1538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1538 rm -rf conftest*
1539 ac_cv_header_alloca_h=yes
1540 else
1541 echo "configure: failed program was:" >&5
1542 cat conftest.$ac_ext >&5
1543 rm -rf conftest*
1544 ac_cv_header_alloca_h=no
1545 fi
1546 rm -f conftest*
1547 fi
1548
1549 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1550 if test $ac_cv_header_alloca_h = yes; then
1551 cat >> confdefs.h <<\EOF
1552 #define HAVE_ALLOCA_H 1
1553 EOF
1554
1555 fi
1556
1557 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1558 echo "configure:1559: checking for alloca" >&5
1559 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1560 echo $ac_n "(cached) $ac_c" 1>&6
1561 else
1562 cat > conftest.$ac_ext <<EOF
1563 #line 1564 "configure"
1564 #include "confdefs.h"
1565
1566 #ifdef __GNUC__
1567 # define alloca __builtin_alloca
1568 #else
1569 # ifdef _MSC_VER
1570 # include <malloc.h>
1571 # define alloca _alloca
1572 # else
1573 # if HAVE_ALLOCA_H
1574 # include <alloca.h>
1575 # else
1576 # ifdef _AIX
1577 #pragma alloca
1578 # else
1579 # ifndef alloca /* predefined by HP cc +Olibcalls */
1580 char *alloca ();
1581 # endif
1582 # endif
1583 # endif
1584 # endif
1585 #endif
1586
1587 int main() {
1588 char *p = (char *) alloca(1);
1589 ; return 0; }
1590 EOF
1591 if { (eval echo configure:1592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1592 rm -rf conftest*
1593 ac_cv_func_alloca_works=yes
1594 else
1595 echo "configure: failed program was:" >&5
1596 cat conftest.$ac_ext >&5
1597 rm -rf conftest*
1598 ac_cv_func_alloca_works=no
1599 fi
1600 rm -f conftest*
1601 fi
1602
1603 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1604 if test $ac_cv_func_alloca_works = yes; then
1605 cat >> confdefs.h <<\EOF
1606 #define HAVE_ALLOCA 1
1607 EOF
1608
1609 fi
1610
1611 if test $ac_cv_func_alloca_works = no; then
1612 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1613 # that cause trouble. Some versions do not even contain alloca or
1614 # contain a buggy version. If you still want to use their alloca,
1615 # use ar to extract alloca.o from them instead of compiling alloca.c.
1616 ALLOCA=alloca.${ac_objext}
1617 cat >> confdefs.h <<\EOF
1618 #define C_ALLOCA 1
1619 EOF
1620
1621
1622 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1623 echo "configure:1624: checking whether alloca needs Cray hooks" >&5
1624 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1625 echo $ac_n "(cached) $ac_c" 1>&6
1626 else
1627 cat > conftest.$ac_ext <<EOF
1628 #line 1629 "configure"
1629 #include "confdefs.h"
1630 #if defined(CRAY) && ! defined(CRAY2)
1631 webecray
1632 #else
1633 wenotbecray
1634 #endif
1635
1636 EOF
1637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1638 egrep "webecray" >/dev/null 2>&1; then
1639 rm -rf conftest*
1640 ac_cv_os_cray=yes
1641 else
1642 rm -rf conftest*
1643 ac_cv_os_cray=no
1644 fi
1645 rm -f conftest*
1646
1647 fi
1648
1649 echo "$ac_t""$ac_cv_os_cray" 1>&6
1650 if test $ac_cv_os_cray = yes; then
1651 for ac_func in _getb67 GETB67 getb67; do
1652 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1653 echo "configure:1654: checking for $ac_func" >&5
1654 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1655 echo $ac_n "(cached) $ac_c" 1>&6
1656 else
1657 cat > conftest.$ac_ext <<EOF
1658 #line 1659 "configure"
1659 #include "confdefs.h"
1660 /* System header to define __stub macros and hopefully few prototypes,
1661 which can conflict with char $ac_func(); below. */
1662 #include <assert.h>
1663 /* Override any gcc2 internal prototype to avoid an error. */
1664 /* We use char because int might match the return type of a gcc2
1665 builtin and then its argument prototype would still apply. */
1666 char $ac_func();
1667
1668 int main() {
1669
1670 /* The GNU C library defines this for functions which it implements
1671 to always fail with ENOSYS. Some functions are actually named
1672 something starting with __ and the normal name is an alias. */
1673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1674 choke me
1675 #else
1676 $ac_func();
1677 #endif
1678
1679 ; return 0; }
1680 EOF
1681 if { (eval echo configure:1682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1682 rm -rf conftest*
1683 eval "ac_cv_func_$ac_func=yes"
1684 else
1685 echo "configure: failed program was:" >&5
1686 cat conftest.$ac_ext >&5
1687 rm -rf conftest*
1688 eval "ac_cv_func_$ac_func=no"
1689 fi
1690 rm -f conftest*
1691 fi
1692
1693 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1694 echo "$ac_t""yes" 1>&6
1695 cat >> confdefs.h <<EOF
1696 #define CRAY_STACKSEG_END $ac_func
1697 EOF
1698
1699 break
1700 else
1701 echo "$ac_t""no" 1>&6
1702 fi
1703
1704 done
1705 fi
1706
1707 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1708 echo "configure:1709: checking stack direction for C alloca" >&5
1709 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1710 echo $ac_n "(cached) $ac_c" 1>&6
1711 else
1712 if test "$cross_compiling" = yes; then
1713 ac_cv_c_stack_direction=0
1714 else
1715 cat > conftest.$ac_ext <<EOF
1716 #line 1717 "configure"
1717 #include "confdefs.h"
1718 find_stack_direction ()
1719 {
1720 static char *addr = 0;
1721 auto char dummy;
1722 if (addr == 0)
1723 {
1724 addr = &dummy;
1725 return find_stack_direction ();
1726 }
1727 else
1728 return (&dummy > addr) ? 1 : -1;
1729 }
1730 main ()
1731 {
1732 exit (find_stack_direction() < 0);
1733 }
1734 EOF
1735 if { (eval echo configure:1736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1736 then
1737 ac_cv_c_stack_direction=1
1738 else
1739 echo "configure: failed program was:" >&5
1740 cat conftest.$ac_ext >&5
1741 rm -fr conftest*
1742 ac_cv_c_stack_direction=-1
1743 fi
1744 rm -fr conftest*
1745 fi
1746
1747 fi
1748
1749 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1750 cat >> confdefs.h <<EOF
1751 #define STACK_DIRECTION $ac_cv_c_stack_direction
1752 EOF
1753
1754 fi
1755
1756 for ac_hdr in unistd.h
1757 do
1758 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1759 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1760 echo "configure:1761: checking for $ac_hdr" >&5
1761 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1763 else
1764 cat > conftest.$ac_ext <<EOF
1765 #line 1766 "configure"
1766 #include "confdefs.h"
1767 #include <$ac_hdr>
1768 EOF
1769 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1770 { (eval echo configure:1771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1771 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1772 if test -z "$ac_err"; then
1773 rm -rf conftest*
1774 eval "ac_cv_header_$ac_safe=yes"
1775 else
1776 echo "$ac_err" >&5
1777 echo "configure: failed program was:" >&5
1778 cat conftest.$ac_ext >&5
1779 rm -rf conftest*
1780 eval "ac_cv_header_$ac_safe=no"
1781 fi
1782 rm -f conftest*
1783 fi
1784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1785 echo "$ac_t""yes" 1>&6
1786 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1787 cat >> confdefs.h <<EOF
1788 #define $ac_tr_hdr 1
1789 EOF
1790
1791 else
1792 echo "$ac_t""no" 1>&6
1793 fi
1794 done
1795
1796 for ac_func in getpagesize
1797 do
1798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1799 echo "configure:1800: checking for $ac_func" >&5
1800 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1801 echo $ac_n "(cached) $ac_c" 1>&6
1802 else
1803 cat > conftest.$ac_ext <<EOF
1804 #line 1805 "configure"
1805 #include "confdefs.h"
1806 /* System header to define __stub macros and hopefully few prototypes,
1807 which can conflict with char $ac_func(); below. */
1808 #include <assert.h>
1809 /* Override any gcc2 internal prototype to avoid an error. */
1810 /* We use char because int might match the return type of a gcc2
1811 builtin and then its argument prototype would still apply. */
1812 char $ac_func();
1813
1814 int main() {
1815
1816 /* The GNU C library defines this for functions which it implements
1817 to always fail with ENOSYS. Some functions are actually named
1818 something starting with __ and the normal name is an alias. */
1819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1820 choke me
1821 #else
1822 $ac_func();
1823 #endif
1824
1825 ; return 0; }
1826 EOF
1827 if { (eval echo configure:1828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1828 rm -rf conftest*
1829 eval "ac_cv_func_$ac_func=yes"
1830 else
1831 echo "configure: failed program was:" >&5
1832 cat conftest.$ac_ext >&5
1833 rm -rf conftest*
1834 eval "ac_cv_func_$ac_func=no"
1835 fi
1836 rm -f conftest*
1837 fi
1838
1839 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1840 echo "$ac_t""yes" 1>&6
1841 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1842 cat >> confdefs.h <<EOF
1843 #define $ac_tr_func 1
1844 EOF
1845
1846 else
1847 echo "$ac_t""no" 1>&6
1848 fi
1849 done
1850
1851 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1852 echo "configure:1853: checking for working mmap" >&5
1853 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1854 echo $ac_n "(cached) $ac_c" 1>&6
1855 else
1856 if test "$cross_compiling" = yes; then
1857 ac_cv_func_mmap_fixed_mapped=no
1858 else
1859 cat > conftest.$ac_ext <<EOF
1860 #line 1861 "configure"
1861 #include "confdefs.h"
1862
1863 /* Thanks to Mike Haertel and Jim Avera for this test.
1864 Here is a matrix of mmap possibilities:
1865 mmap private not fixed
1866 mmap private fixed at somewhere currently unmapped
1867 mmap private fixed at somewhere already mapped
1868 mmap shared not fixed
1869 mmap shared fixed at somewhere currently unmapped
1870 mmap shared fixed at somewhere already mapped
1871 For private mappings, we should verify that changes cannot be read()
1872 back from the file, nor mmap's back from the file at a different
1873 address. (There have been systems where private was not correctly
1874 implemented like the infamous i386 svr4.0, and systems where the
1875 VM page cache was not coherent with the filesystem buffer cache
1876 like early versions of FreeBSD and possibly contemporary NetBSD.)
1877 For shared mappings, we should conversely verify that changes get
1878 propogated back to all the places they're supposed to be.
1879
1880 Grep wants private fixed already mapped.
1881 The main things grep needs to know about mmap are:
1882 * does it exist and is it safe to write into the mmap'd area
1883 * how to use it (BSD variants) */
1884 #include <sys/types.h>
1885 #include <fcntl.h>
1886 #include <sys/mman.h>
1887
1888 /* This mess was copied from the GNU getpagesize.h. */
1889 #ifndef HAVE_GETPAGESIZE
1890 # ifdef HAVE_UNISTD_H
1891 # include <unistd.h>
1892 # endif
1893
1894 /* Assume that all systems that can run configure have sys/param.h. */
1895 # ifndef HAVE_SYS_PARAM_H
1896 # define HAVE_SYS_PARAM_H 1
1897 # endif
1898
1899 # ifdef _SC_PAGESIZE
1900 # define getpagesize() sysconf(_SC_PAGESIZE)
1901 # else /* no _SC_PAGESIZE */
1902 # ifdef HAVE_SYS_PARAM_H
1903 # include <sys/param.h>
1904 # ifdef EXEC_PAGESIZE
1905 # define getpagesize() EXEC_PAGESIZE
1906 # else /* no EXEC_PAGESIZE */
1907 # ifdef NBPG
1908 # define getpagesize() NBPG * CLSIZE
1909 # ifndef CLSIZE
1910 # define CLSIZE 1
1911 # endif /* no CLSIZE */
1912 # else /* no NBPG */
1913 # ifdef NBPC
1914 # define getpagesize() NBPC
1915 # else /* no NBPC */
1916 # ifdef PAGESIZE
1917 # define getpagesize() PAGESIZE
1918 # endif /* PAGESIZE */
1919 # endif /* no NBPC */
1920 # endif /* no NBPG */
1921 # endif /* no EXEC_PAGESIZE */
1922 # else /* no HAVE_SYS_PARAM_H */
1923 # define getpagesize() 8192 /* punt totally */
1924 # endif /* no HAVE_SYS_PARAM_H */
1925 # endif /* no _SC_PAGESIZE */
1926
1927 #endif /* no HAVE_GETPAGESIZE */
1928
1929 #ifdef __cplusplus
1930 extern "C" { void *malloc(unsigned); }
1931 #else
1932 char *malloc();
1933 #endif
1934
1935 int
1936 main()
1937 {
1938 char *data, *data2, *data3;
1939 int i, pagesize;
1940 int fd;
1941
1942 pagesize = getpagesize();
1943
1944 /*
1945 * First, make a file with some known garbage in it.
1946 */
1947 data = malloc(pagesize);
1948 if (!data)
1949 exit(1);
1950 for (i = 0; i < pagesize; ++i)
1951 *(data + i) = rand();
1952 umask(0);
1953 fd = creat("conftestmmap", 0600);
1954 if (fd < 0)
1955 exit(1);
1956 if (write(fd, data, pagesize) != pagesize)
1957 exit(1);
1958 close(fd);
1959
1960 /*
1961 * Next, try to mmap the file at a fixed address which
1962 * already has something else allocated at it. If we can,
1963 * also make sure that we see the same garbage.
1964 */
1965 fd = open("conftestmmap", O_RDWR);
1966 if (fd < 0)
1967 exit(1);
1968 data2 = malloc(2 * pagesize);
1969 if (!data2)
1970 exit(1);
1971 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1972 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1973 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1974 exit(1);
1975 for (i = 0; i < pagesize; ++i)
1976 if (*(data + i) != *(data2 + i))
1977 exit(1);
1978
1979 /*
1980 * Finally, make sure that changes to the mapped area
1981 * do not percolate back to the file as seen by read().
1982 * (This is a bug on some variants of i386 svr4.0.)
1983 */
1984 for (i = 0; i < pagesize; ++i)
1985 *(data2 + i) = *(data2 + i) + 1;
1986 data3 = malloc(pagesize);
1987 if (!data3)
1988 exit(1);
1989 if (read(fd, data3, pagesize) != pagesize)
1990 exit(1);
1991 for (i = 0; i < pagesize; ++i)
1992 if (*(data + i) != *(data3 + i))
1993 exit(1);
1994 close(fd);
1995 unlink("conftestmmap");
1996 exit(0);
1997 }
1998
1999 EOF
2000 if { (eval echo configure:2001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2001 then
2002 ac_cv_func_mmap_fixed_mapped=yes
2003 else
2004 echo "configure: failed program was:" >&5
2005 cat conftest.$ac_ext >&5
2006 rm -fr conftest*
2007 ac_cv_func_mmap_fixed_mapped=no
2008 fi
2009 rm -fr conftest*
2010 fi
2011
2012 fi
2013
2014 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2015 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2016 cat >> confdefs.h <<\EOF
2017 #define HAVE_MMAP 1
2018 EOF
2019
2020 fi
2021
2022
2023 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2024 unistd.h values.h sys/param.h
2025 do
2026 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2027 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2028 echo "configure:2029: checking for $ac_hdr" >&5
2029 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2030 echo $ac_n "(cached) $ac_c" 1>&6
2031 else
2032 cat > conftest.$ac_ext <<EOF
2033 #line 2034 "configure"
2034 #include "confdefs.h"
2035 #include <$ac_hdr>
2036 EOF
2037 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2038 { (eval echo configure:2039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2039 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2040 if test -z "$ac_err"; then
2041 rm -rf conftest*
2042 eval "ac_cv_header_$ac_safe=yes"
2043 else
2044 echo "$ac_err" >&5
2045 echo "configure: failed program was:" >&5
2046 cat conftest.$ac_ext >&5
2047 rm -rf conftest*
2048 eval "ac_cv_header_$ac_safe=no"
2049 fi
2050 rm -f conftest*
2051 fi
2052 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2053 echo "$ac_t""yes" 1>&6
2054 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2055 cat >> confdefs.h <<EOF
2056 #define $ac_tr_hdr 1
2057 EOF
2058
2059 else
2060 echo "$ac_t""no" 1>&6
2061 fi
2062 done
2063
2064 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2065 __argz_count __argz_stringify __argz_next
2066 do
2067 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2068 echo "configure:2069: checking for $ac_func" >&5
2069 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2070 echo $ac_n "(cached) $ac_c" 1>&6
2071 else
2072 cat > conftest.$ac_ext <<EOF
2073 #line 2074 "configure"
2074 #include "confdefs.h"
2075 /* System header to define __stub macros and hopefully few prototypes,
2076 which can conflict with char $ac_func(); below. */
2077 #include <assert.h>
2078 /* Override any gcc2 internal prototype to avoid an error. */
2079 /* We use char because int might match the return type of a gcc2
2080 builtin and then its argument prototype would still apply. */
2081 char $ac_func();
2082
2083 int main() {
2084
2085 /* The GNU C library defines this for functions which it implements
2086 to always fail with ENOSYS. Some functions are actually named
2087 something starting with __ and the normal name is an alias. */
2088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2089 choke me
2090 #else
2091 $ac_func();
2092 #endif
2093
2094 ; return 0; }
2095 EOF
2096 if { (eval echo configure:2097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2097 rm -rf conftest*
2098 eval "ac_cv_func_$ac_func=yes"
2099 else
2100 echo "configure: failed program was:" >&5
2101 cat conftest.$ac_ext >&5
2102 rm -rf conftest*
2103 eval "ac_cv_func_$ac_func=no"
2104 fi
2105 rm -f conftest*
2106 fi
2107
2108 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2109 echo "$ac_t""yes" 1>&6
2110 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2111 cat >> confdefs.h <<EOF
2112 #define $ac_tr_func 1
2113 EOF
2114
2115 else
2116 echo "$ac_t""no" 1>&6
2117 fi
2118 done
2119
2120
2121 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2122 for ac_func in stpcpy
2123 do
2124 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2125 echo "configure:2126: checking for $ac_func" >&5
2126 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2127 echo $ac_n "(cached) $ac_c" 1>&6
2128 else
2129 cat > conftest.$ac_ext <<EOF
2130 #line 2131 "configure"
2131 #include "confdefs.h"
2132 /* System header to define __stub macros and hopefully few prototypes,
2133 which can conflict with char $ac_func(); below. */
2134 #include <assert.h>
2135 /* Override any gcc2 internal prototype to avoid an error. */
2136 /* We use char because int might match the return type of a gcc2
2137 builtin and then its argument prototype would still apply. */
2138 char $ac_func();
2139
2140 int main() {
2141
2142 /* The GNU C library defines this for functions which it implements
2143 to always fail with ENOSYS. Some functions are actually named
2144 something starting with __ and the normal name is an alias. */
2145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2146 choke me
2147 #else
2148 $ac_func();
2149 #endif
2150
2151 ; return 0; }
2152 EOF
2153 if { (eval echo configure:2154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2154 rm -rf conftest*
2155 eval "ac_cv_func_$ac_func=yes"
2156 else
2157 echo "configure: failed program was:" >&5
2158 cat conftest.$ac_ext >&5
2159 rm -rf conftest*
2160 eval "ac_cv_func_$ac_func=no"
2161 fi
2162 rm -f conftest*
2163 fi
2164
2165 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2166 echo "$ac_t""yes" 1>&6
2167 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2168 cat >> confdefs.h <<EOF
2169 #define $ac_tr_func 1
2170 EOF
2171
2172 else
2173 echo "$ac_t""no" 1>&6
2174 fi
2175 done
2176
2177 fi
2178 if test "${ac_cv_func_stpcpy}" = "yes"; then
2179 cat >> confdefs.h <<\EOF
2180 #define HAVE_STPCPY 1
2181 EOF
2182
2183 fi
2184
2185 if test $ac_cv_header_locale_h = yes; then
2186 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2187 echo "configure:2188: checking for LC_MESSAGES" >&5
2188 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2189 echo $ac_n "(cached) $ac_c" 1>&6
2190 else
2191 cat > conftest.$ac_ext <<EOF
2192 #line 2193 "configure"
2193 #include "confdefs.h"
2194 #include <locale.h>
2195 int main() {
2196 return LC_MESSAGES
2197 ; return 0; }
2198 EOF
2199 if { (eval echo configure:2200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2200 rm -rf conftest*
2201 am_cv_val_LC_MESSAGES=yes
2202 else
2203 echo "configure: failed program was:" >&5
2204 cat conftest.$ac_ext >&5
2205 rm -rf conftest*
2206 am_cv_val_LC_MESSAGES=no
2207 fi
2208 rm -f conftest*
2209 fi
2210
2211 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2212 if test $am_cv_val_LC_MESSAGES = yes; then
2213 cat >> confdefs.h <<\EOF
2214 #define HAVE_LC_MESSAGES 1
2215 EOF
2216
2217 fi
2218 fi
2219 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2220 echo "configure:2221: checking whether NLS is requested" >&5
2221 # Check whether --enable-nls or --disable-nls was given.
2222 if test "${enable_nls+set}" = set; then
2223 enableval="$enable_nls"
2224 USE_NLS=$enableval
2225 else
2226 USE_NLS=yes
2227 fi
2228
2229 echo "$ac_t""$USE_NLS" 1>&6
2230
2231
2232 USE_INCLUDED_LIBINTL=no
2233
2234 if test "$USE_NLS" = "yes"; then
2235 cat >> confdefs.h <<\EOF
2236 #define ENABLE_NLS 1
2237 EOF
2238
2239 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2240 echo "configure:2241: checking whether included gettext is requested" >&5
2241 # Check whether --with-included-gettext or --without-included-gettext was given.
2242 if test "${with_included_gettext+set}" = set; then
2243 withval="$with_included_gettext"
2244 nls_cv_force_use_gnu_gettext=$withval
2245 else
2246 nls_cv_force_use_gnu_gettext=no
2247 fi
2248
2249 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2250
2251 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2252 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2253 nls_cv_header_intl=
2254 nls_cv_header_libgt=
2255 CATOBJEXT=NONE
2256
2257 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2258 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2259 echo "configure:2260: checking for libintl.h" >&5
2260 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2261 echo $ac_n "(cached) $ac_c" 1>&6
2262 else
2263 cat > conftest.$ac_ext <<EOF
2264 #line 2265 "configure"
2265 #include "confdefs.h"
2266 #include <libintl.h>
2267 EOF
2268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2269 { (eval echo configure:2270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2270 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2271 if test -z "$ac_err"; then
2272 rm -rf conftest*
2273 eval "ac_cv_header_$ac_safe=yes"
2274 else
2275 echo "$ac_err" >&5
2276 echo "configure: failed program was:" >&5
2277 cat conftest.$ac_ext >&5
2278 rm -rf conftest*
2279 eval "ac_cv_header_$ac_safe=no"
2280 fi
2281 rm -f conftest*
2282 fi
2283 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2284 echo "$ac_t""yes" 1>&6
2285 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2286 echo "configure:2287: checking for gettext in libc" >&5
2287 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2288 echo $ac_n "(cached) $ac_c" 1>&6
2289 else
2290 cat > conftest.$ac_ext <<EOF
2291 #line 2292 "configure"
2292 #include "confdefs.h"
2293 #include <libintl.h>
2294 int main() {
2295 return (int) gettext ("")
2296 ; return 0; }
2297 EOF
2298 if { (eval echo configure:2299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2299 rm -rf conftest*
2300 gt_cv_func_gettext_libc=yes
2301 else
2302 echo "configure: failed program was:" >&5
2303 cat conftest.$ac_ext >&5
2304 rm -rf conftest*
2305 gt_cv_func_gettext_libc=no
2306 fi
2307 rm -f conftest*
2308 fi
2309
2310 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2311
2312 if test "$gt_cv_func_gettext_libc" != "yes"; then
2313 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2314 echo "configure:2315: checking for bindtextdomain in -lintl" >&5
2315 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2316 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2317 echo $ac_n "(cached) $ac_c" 1>&6
2318 else
2319 ac_save_LIBS="$LIBS"
2320 LIBS="-lintl $LIBS"
2321 cat > conftest.$ac_ext <<EOF
2322 #line 2323 "configure"
2323 #include "confdefs.h"
2324 /* Override any gcc2 internal prototype to avoid an error. */
2325 /* We use char because int might match the return type of a gcc2
2326 builtin and then its argument prototype would still apply. */
2327 char bindtextdomain();
2328
2329 int main() {
2330 bindtextdomain()
2331 ; return 0; }
2332 EOF
2333 if { (eval echo configure:2334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2334 rm -rf conftest*
2335 eval "ac_cv_lib_$ac_lib_var=yes"
2336 else
2337 echo "configure: failed program was:" >&5
2338 cat conftest.$ac_ext >&5
2339 rm -rf conftest*
2340 eval "ac_cv_lib_$ac_lib_var=no"
2341 fi
2342 rm -f conftest*
2343 LIBS="$ac_save_LIBS"
2344
2345 fi
2346 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2347 echo "$ac_t""yes" 1>&6
2348 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2349 echo "configure:2350: checking for gettext in libintl" >&5
2350 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2351 echo $ac_n "(cached) $ac_c" 1>&6
2352 else
2353 cat > conftest.$ac_ext <<EOF
2354 #line 2355 "configure"
2355 #include "confdefs.h"
2356
2357 int main() {
2358 return (int) gettext ("")
2359 ; return 0; }
2360 EOF
2361 if { (eval echo configure:2362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2362 rm -rf conftest*
2363 gt_cv_func_gettext_libintl=yes
2364 else
2365 echo "configure: failed program was:" >&5
2366 cat conftest.$ac_ext >&5
2367 rm -rf conftest*
2368 gt_cv_func_gettext_libintl=no
2369 fi
2370 rm -f conftest*
2371 fi
2372
2373 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2374 else
2375 echo "$ac_t""no" 1>&6
2376 fi
2377
2378 fi
2379
2380 if test "$gt_cv_func_gettext_libc" = "yes" \
2381 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2382 cat >> confdefs.h <<\EOF
2383 #define HAVE_GETTEXT 1
2384 EOF
2385
2386 # Extract the first word of "msgfmt", so it can be a program name with args.
2387 set dummy msgfmt; ac_word=$2
2388 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2389 echo "configure:2390: checking for $ac_word" >&5
2390 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2391 echo $ac_n "(cached) $ac_c" 1>&6
2392 else
2393 case "$MSGFMT" in
2394 /*)
2395 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2396 ;;
2397 *)
2398 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2399 for ac_dir in $PATH; do
2400 test -z "$ac_dir" && ac_dir=.
2401 if test -f $ac_dir/$ac_word; then
2402 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2403 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2404 break
2405 fi
2406 fi
2407 done
2408 IFS="$ac_save_ifs"
2409 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2410 ;;
2411 esac
2412 fi
2413 MSGFMT="$ac_cv_path_MSGFMT"
2414 if test -n "$MSGFMT"; then
2415 echo "$ac_t""$MSGFMT" 1>&6
2416 else
2417 echo "$ac_t""no" 1>&6
2418 fi
2419 if test "$MSGFMT" != "no"; then
2420 for ac_func in dcgettext
2421 do
2422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2423 echo "configure:2424: checking for $ac_func" >&5
2424 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2425 echo $ac_n "(cached) $ac_c" 1>&6
2426 else
2427 cat > conftest.$ac_ext <<EOF
2428 #line 2429 "configure"
2429 #include "confdefs.h"
2430 /* System header to define __stub macros and hopefully few prototypes,
2431 which can conflict with char $ac_func(); below. */
2432 #include <assert.h>
2433 /* Override any gcc2 internal prototype to avoid an error. */
2434 /* We use char because int might match the return type of a gcc2
2435 builtin and then its argument prototype would still apply. */
2436 char $ac_func();
2437
2438 int main() {
2439
2440 /* The GNU C library defines this for functions which it implements
2441 to always fail with ENOSYS. Some functions are actually named
2442 something starting with __ and the normal name is an alias. */
2443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2444 choke me
2445 #else
2446 $ac_func();
2447 #endif
2448
2449 ; return 0; }
2450 EOF
2451 if { (eval echo configure:2452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2452 rm -rf conftest*
2453 eval "ac_cv_func_$ac_func=yes"
2454 else
2455 echo "configure: failed program was:" >&5
2456 cat conftest.$ac_ext >&5
2457 rm -rf conftest*
2458 eval "ac_cv_func_$ac_func=no"
2459 fi
2460 rm -f conftest*
2461 fi
2462
2463 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2464 echo "$ac_t""yes" 1>&6
2465 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2466 cat >> confdefs.h <<EOF
2467 #define $ac_tr_func 1
2468 EOF
2469
2470 else
2471 echo "$ac_t""no" 1>&6
2472 fi
2473 done
2474
2475 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2476 set dummy gmsgfmt; ac_word=$2
2477 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2478 echo "configure:2479: checking for $ac_word" >&5
2479 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2480 echo $ac_n "(cached) $ac_c" 1>&6
2481 else
2482 case "$GMSGFMT" in
2483 /*)
2484 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2485 ;;
2486 ?:/*)
2487 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2488 ;;
2489 *)
2490 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2491 for ac_dir in $PATH; do
2492 test -z "$ac_dir" && ac_dir=.
2493 if test -f $ac_dir/$ac_word; then
2494 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2495 break
2496 fi
2497 done
2498 IFS="$ac_save_ifs"
2499 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2500 ;;
2501 esac
2502 fi
2503 GMSGFMT="$ac_cv_path_GMSGFMT"
2504 if test -n "$GMSGFMT"; then
2505 echo "$ac_t""$GMSGFMT" 1>&6
2506 else
2507 echo "$ac_t""no" 1>&6
2508 fi
2509
2510 # Extract the first word of "xgettext", so it can be a program name with args.
2511 set dummy xgettext; ac_word=$2
2512 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2513 echo "configure:2514: checking for $ac_word" >&5
2514 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2515 echo $ac_n "(cached) $ac_c" 1>&6
2516 else
2517 case "$XGETTEXT" in
2518 /*)
2519 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2520 ;;
2521 *)
2522 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2523 for ac_dir in $PATH; do
2524 test -z "$ac_dir" && ac_dir=.
2525 if test -f $ac_dir/$ac_word; then
2526 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2527 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2528 break
2529 fi
2530 fi
2531 done
2532 IFS="$ac_save_ifs"
2533 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2534 ;;
2535 esac
2536 fi
2537 XGETTEXT="$ac_cv_path_XGETTEXT"
2538 if test -n "$XGETTEXT"; then
2539 echo "$ac_t""$XGETTEXT" 1>&6
2540 else
2541 echo "$ac_t""no" 1>&6
2542 fi
2543
2544 cat > conftest.$ac_ext <<EOF
2545 #line 2546 "configure"
2546 #include "confdefs.h"
2547
2548 int main() {
2549 extern int _nl_msg_cat_cntr;
2550 return _nl_msg_cat_cntr
2551 ; return 0; }
2552 EOF
2553 if { (eval echo configure:2554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2554 rm -rf conftest*
2555 CATOBJEXT=.gmo
2556 DATADIRNAME=share
2557 else
2558 echo "configure: failed program was:" >&5
2559 cat conftest.$ac_ext >&5
2560 rm -rf conftest*
2561 CATOBJEXT=.mo
2562 DATADIRNAME=lib
2563 fi
2564 rm -f conftest*
2565 INSTOBJEXT=.mo
2566 fi
2567 fi
2568
2569 else
2570 echo "$ac_t""no" 1>&6
2571 fi
2572
2573
2574
2575 if test "$CATOBJEXT" = "NONE"; then
2576 nls_cv_use_gnu_gettext=yes
2577 fi
2578 fi
2579
2580 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2581 INTLOBJS="\$(GETTOBJS)"
2582 # Extract the first word of "msgfmt", so it can be a program name with args.
2583 set dummy msgfmt; ac_word=$2
2584 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2585 echo "configure:2586: checking for $ac_word" >&5
2586 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2587 echo $ac_n "(cached) $ac_c" 1>&6
2588 else
2589 case "$MSGFMT" in
2590 /*)
2591 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2592 ;;
2593 *)
2594 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2595 for ac_dir in $PATH; do
2596 test -z "$ac_dir" && ac_dir=.
2597 if test -f $ac_dir/$ac_word; then
2598 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2599 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2600 break
2601 fi
2602 fi
2603 done
2604 IFS="$ac_save_ifs"
2605 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2606 ;;
2607 esac
2608 fi
2609 MSGFMT="$ac_cv_path_MSGFMT"
2610 if test -n "$MSGFMT"; then
2611 echo "$ac_t""$MSGFMT" 1>&6
2612 else
2613 echo "$ac_t""no" 1>&6
2614 fi
2615
2616 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2617 set dummy gmsgfmt; ac_word=$2
2618 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2619 echo "configure:2620: checking for $ac_word" >&5
2620 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2621 echo $ac_n "(cached) $ac_c" 1>&6
2622 else
2623 case "$GMSGFMT" in
2624 /*)
2625 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2626 ;;
2627 ?:/*)
2628 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2629 ;;
2630 *)
2631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2632 for ac_dir in $PATH; do
2633 test -z "$ac_dir" && ac_dir=.
2634 if test -f $ac_dir/$ac_word; then
2635 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2636 break
2637 fi
2638 done
2639 IFS="$ac_save_ifs"
2640 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2641 ;;
2642 esac
2643 fi
2644 GMSGFMT="$ac_cv_path_GMSGFMT"
2645 if test -n "$GMSGFMT"; then
2646 echo "$ac_t""$GMSGFMT" 1>&6
2647 else
2648 echo "$ac_t""no" 1>&6
2649 fi
2650
2651 # Extract the first word of "xgettext", so it can be a program name with args.
2652 set dummy xgettext; ac_word=$2
2653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2654 echo "configure:2655: checking for $ac_word" >&5
2655 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2656 echo $ac_n "(cached) $ac_c" 1>&6
2657 else
2658 case "$XGETTEXT" in
2659 /*)
2660 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2661 ;;
2662 *)
2663 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2664 for ac_dir in $PATH; do
2665 test -z "$ac_dir" && ac_dir=.
2666 if test -f $ac_dir/$ac_word; then
2667 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2668 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2669 break
2670 fi
2671 fi
2672 done
2673 IFS="$ac_save_ifs"
2674 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2675 ;;
2676 esac
2677 fi
2678 XGETTEXT="$ac_cv_path_XGETTEXT"
2679 if test -n "$XGETTEXT"; then
2680 echo "$ac_t""$XGETTEXT" 1>&6
2681 else
2682 echo "$ac_t""no" 1>&6
2683 fi
2684
2685
2686 USE_INCLUDED_LIBINTL=yes
2687 CATOBJEXT=.gmo
2688 INSTOBJEXT=.mo
2689 DATADIRNAME=share
2690 INTLDEPS='$(top_builddir)/../intl/libintl.a'
2691 INTLLIBS=$INTLDEPS
2692 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2693 nls_cv_header_intl=libintl.h
2694 nls_cv_header_libgt=libgettext.h
2695 fi
2696
2697 if test "$XGETTEXT" != ":"; then
2698 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2699 : ;
2700 else
2701 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2702 XGETTEXT=":"
2703 fi
2704 fi
2705
2706 # We need to process the po/ directory.
2707 POSUB=po
2708 else
2709 DATADIRNAME=share
2710 nls_cv_header_intl=libintl.h
2711 nls_cv_header_libgt=libgettext.h
2712 fi
2713
2714 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2715 # because some of the sources are only built for this goal.
2716 if test "$PACKAGE" = gettext; then
2717 USE_NLS=yes
2718 USE_INCLUDED_LIBINTL=yes
2719 fi
2720
2721 for lang in $ALL_LINGUAS; do
2722 GMOFILES="$GMOFILES $lang.gmo"
2723 POFILES="$POFILES $lang.po"
2724 done
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739 if test "x$CATOBJEXT" != "x"; then
2740 if test "x$ALL_LINGUAS" = "x"; then
2741 LINGUAS=
2742 else
2743 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2744 echo "configure:2745: checking for catalogs to be installed" >&5
2745 NEW_LINGUAS=
2746 for lang in ${LINGUAS=$ALL_LINGUAS}; do
2747 case "$ALL_LINGUAS" in
2748 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
2749 esac
2750 done
2751 LINGUAS=$NEW_LINGUAS
2752 echo "$ac_t""$LINGUAS" 1>&6
2753 fi
2754
2755 if test -n "$LINGUAS"; then
2756 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2757 fi
2758 fi
2759
2760 if test $ac_cv_header_locale_h = yes; then
2761 INCLUDE_LOCALE_H="#include <locale.h>"
2762 else
2763 INCLUDE_LOCALE_H="\
2764 /* The system does not provide the header <locale.h>. Take care yourself. */"
2765 fi
2766
2767
2768 if test -f $srcdir/po2tbl.sed.in; then
2769 if test "$CATOBJEXT" = ".cat"; then
2770 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2771 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2772 echo "configure:2773: checking for linux/version.h" >&5
2773 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2774 echo $ac_n "(cached) $ac_c" 1>&6
2775 else
2776 cat > conftest.$ac_ext <<EOF
2777 #line 2778 "configure"
2778 #include "confdefs.h"
2779 #include <linux/version.h>
2780 EOF
2781 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2782 { (eval echo configure:2783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2783 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2784 if test -z "$ac_err"; then
2785 rm -rf conftest*
2786 eval "ac_cv_header_$ac_safe=yes"
2787 else
2788 echo "$ac_err" >&5
2789 echo "configure: failed program was:" >&5
2790 cat conftest.$ac_ext >&5
2791 rm -rf conftest*
2792 eval "ac_cv_header_$ac_safe=no"
2793 fi
2794 rm -f conftest*
2795 fi
2796 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2797 echo "$ac_t""yes" 1>&6
2798 msgformat=linux
2799 else
2800 echo "$ac_t""no" 1>&6
2801 msgformat=xopen
2802 fi
2803
2804
2805 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
2806 fi
2807 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2808 $srcdir/po2tbl.sed.in > po2tbl.sed
2809 fi
2810
2811 if test "$PACKAGE" = "gettext"; then
2812 GT_NO="#NO#"
2813 GT_YES=
2814 else
2815 GT_NO=
2816 GT_YES="#YES#"
2817 fi
2818
2819
2820
2821 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
2822
2823
2824 l=
2825
2826
2827 if test -d $srcdir/po; then
2828 test -d po || mkdir po
2829 if test "x$srcdir" != "x."; then
2830 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2831 posrcprefix="$srcdir/"
2832 else
2833 posrcprefix="../$srcdir/"
2834 fi
2835 else
2836 posrcprefix="../"
2837 fi
2838 rm -f po/POTFILES
2839 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2840 < $srcdir/po/POTFILES.in > po/POTFILES
2841 fi
2842
2843
2844 for ac_hdr in stdlib.h time.h unistd.h
2845 do
2846 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2847 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2848 echo "configure:2849: checking for $ac_hdr" >&5
2849 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2850 echo $ac_n "(cached) $ac_c" 1>&6
2851 else
2852 cat > conftest.$ac_ext <<EOF
2853 #line 2854 "configure"
2854 #include "confdefs.h"
2855 #include <$ac_hdr>
2856 EOF
2857 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2858 { (eval echo configure:2859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2859 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2860 if test -z "$ac_err"; then
2861 rm -rf conftest*
2862 eval "ac_cv_header_$ac_safe=yes"
2863 else
2864 echo "$ac_err" >&5
2865 echo "configure: failed program was:" >&5
2866 cat conftest.$ac_ext >&5
2867 rm -rf conftest*
2868 eval "ac_cv_header_$ac_safe=no"
2869 fi
2870 rm -f conftest*
2871 fi
2872 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2873 echo "$ac_t""yes" 1>&6
2874 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2875 cat >> confdefs.h <<EOF
2876 #define $ac_tr_hdr 1
2877 EOF
2878
2879 else
2880 echo "$ac_t""no" 1>&6
2881 fi
2882 done
2883
2884
2885 echo $ac_n "checking whether printf must be declared""... $ac_c" 1>&6
2886 echo "configure:2887: checking whether printf must be declared" >&5
2887 if eval "test \"`echo '$''{'sim_cv_decl_needed_printf'+set}'`\" = set"; then
2888 echo $ac_n "(cached) $ac_c" 1>&6
2889 else
2890 cat > conftest.$ac_ext <<EOF
2891 #line 2892 "configure"
2892 #include "confdefs.h"
2893 #include <stdio.h>
2894 int main() {
2895 int (*pfn) = (int (*)) printf
2896 ; return 0; }
2897 EOF
2898 if { (eval echo configure:2899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2899 rm -rf conftest*
2900 sim_cv_decl_needed_printf=no
2901 else
2902 echo "configure: failed program was:" >&5
2903 cat conftest.$ac_ext >&5
2904 rm -rf conftest*
2905 sim_cv_decl_needed_printf=yes
2906 fi
2907 rm -f conftest*
2908 fi
2909
2910 echo "$ac_t""$sim_cv_decl_needed_printf" 1>&6
2911 if test $sim_cv_decl_needed_printf = yes; then
2912 cat >> confdefs.h <<\EOF
2913 #define NEED_DECLARATION_PRINTF 1
2914 EOF
2915
2916 fi
2917
2918 trap '' 1 2 15
2919 cat > confcache <<\EOF
2920 # This file is a shell script that caches the results of configure
2921 # tests run on this system so they can be shared between configure
2922 # scripts and configure runs. It is not useful on other systems.
2923 # If it contains results you don't want to keep, you may remove or edit it.
2924 #
2925 # By default, configure uses ./config.cache as the cache file,
2926 # creating it if it does not exist already. You can give configure
2927 # the --cache-file=FILE option to use a different cache file; that is
2928 # what configure does when it calls configure scripts in
2929 # subdirectories, so they share the cache.
2930 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2931 # config.status only pays attention to the cache file if you give it the
2932 # --recheck option to rerun configure.
2933 #
2934 EOF
2935 # The following way of writing the cache mishandles newlines in values,
2936 # but we know of no workaround that is simple, portable, and efficient.
2937 # So, don't put newlines in cache variables' values.
2938 # Ultrix sh set writes to stderr and can't be redirected directly,
2939 # and sets the high bit in the cache file unless we assign to the vars.
2940 (set) 2>&1 |
2941 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
2942 *ac_space=\ *)
2943 # `set' does not quote correctly, so add quotes (double-quote substitution
2944 # turns \\\\ into \\, and sed turns \\ into \).
2945 sed -n \
2946 -e "s/'/'\\\\''/g" \
2947 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2948 ;;
2949 *)
2950 # `set' quotes correctly as required by POSIX, so do not add quotes.
2951 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2952 ;;
2953 esac >> confcache
2954 if cmp -s $cache_file confcache; then
2955 :
2956 else
2957 if test -w $cache_file; then
2958 echo "updating cache $cache_file"
2959 cat confcache > $cache_file
2960 else
2961 echo "not updating unwritable cache $cache_file"
2962 fi
2963 fi
2964 rm -f confcache
2965
2966 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2967
2968 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2969 # Let make expand exec_prefix.
2970 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2971
2972 # Any assignment to VPATH causes Sun make to only execute
2973 # the first set of double-colon rules, so remove it if not needed.
2974 # If there is a colon in the path, we need to keep it.
2975 if test "x$srcdir" = x.; then
2976 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2977 fi
2978
2979 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2980
2981 DEFS=-DHAVE_CONFIG_H
2982
2983 # Without the "./", some shells look in PATH for config.status.
2984 : ${CONFIG_STATUS=./config.status}
2985
2986 echo creating $CONFIG_STATUS
2987 rm -f $CONFIG_STATUS
2988 cat > $CONFIG_STATUS <<EOF
2989 #! /bin/sh
2990 # Generated automatically by configure.
2991 # Run this file to recreate the current configuration.
2992 # This directory was configured as follows,
2993 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2994 #
2995 # $0 $ac_configure_args
2996 #
2997 # Compiler output produced by configure, useful for debugging
2998 # configure, is in ./config.log if it exists.
2999
3000 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3001 for ac_option
3002 do
3003 case "\$ac_option" in
3004 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3005 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3006 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3007 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3008 echo "$CONFIG_STATUS generated by autoconf version 2.12.2"
3009 exit 0 ;;
3010 -help | --help | --hel | --he | --h)
3011 echo "\$ac_cs_usage"; exit 0 ;;
3012 *) echo "\$ac_cs_usage"; exit 1 ;;
3013 esac
3014 done
3015
3016 ac_given_srcdir=$srcdir
3017 ac_given_INSTALL="$INSTALL"
3018
3019 trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3020 EOF
3021 cat >> $CONFIG_STATUS <<EOF
3022
3023 # Protect against being on the right side of a sed subst in config.status.
3024 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3025 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3026 $ac_vpsub
3027 $extrasub
3028 s%@sim_environment@%$sim_environment%g
3029 s%@sim_alignment@%$sim_alignment%g
3030 s%@sim_assert@%$sim_assert%g
3031 s%@sim_bitsize@%$sim_bitsize%g
3032 s%@sim_endian@%$sim_endian%g
3033 s%@sim_hostendian@%$sim_hostendian%g
3034 s%@sim_float@%$sim_float%g
3035 s%@sim_scache@%$sim_scache%g
3036 s%@sim_default_model@%$sim_default_model%g
3037 s%@sim_hw_cflags@%$sim_hw_cflags%g
3038 s%@sim_hw_objs@%$sim_hw_objs%g
3039 s%@sim_hw@%$sim_hw%g
3040 s%@sim_inline@%$sim_inline%g
3041 s%@sim_packages@%$sim_packages%g
3042 s%@sim_regparm@%$sim_regparm%g
3043 s%@sim_reserved_bits@%$sim_reserved_bits%g
3044 s%@sim_smp@%$sim_smp%g
3045 s%@sim_stdcall@%$sim_stdcall%g
3046 s%@sim_xor_endian@%$sim_xor_endian%g
3047 s%@build_warnings@%$build_warnings%g
3048 s%@SHELL@%$SHELL%g
3049 s%@CFLAGS@%$CFLAGS%g
3050 s%@CPPFLAGS@%$CPPFLAGS%g
3051 s%@CXXFLAGS@%$CXXFLAGS%g
3052 s%@DEFS@%$DEFS%g
3053 s%@LDFLAGS@%$LDFLAGS%g
3054 s%@LIBS@%$LIBS%g
3055 s%@exec_prefix@%$exec_prefix%g
3056 s%@prefix@%$prefix%g
3057 s%@program_transform_name@%$program_transform_name%g
3058 s%@bindir@%$bindir%g
3059 s%@sbindir@%$sbindir%g
3060 s%@libexecdir@%$libexecdir%g
3061 s%@datadir@%$datadir%g
3062 s%@sysconfdir@%$sysconfdir%g
3063 s%@sharedstatedir@%$sharedstatedir%g
3064 s%@localstatedir@%$localstatedir%g
3065 s%@libdir@%$libdir%g
3066 s%@includedir@%$includedir%g
3067 s%@oldincludedir@%$oldincludedir%g
3068 s%@infodir@%$infodir%g
3069 s%@mandir@%$mandir%g
3070 s%@host@%$host%g
3071 s%@host_alias@%$host_alias%g
3072 s%@host_cpu@%$host_cpu%g
3073 s%@host_vendor@%$host_vendor%g
3074 s%@host_os@%$host_os%g
3075 s%@target@%$target%g
3076 s%@target_alias@%$target_alias%g
3077 s%@target_cpu@%$target_cpu%g
3078 s%@target_vendor@%$target_vendor%g
3079 s%@target_os@%$target_os%g
3080 s%@build@%$build%g
3081 s%@build_alias@%$build_alias%g
3082 s%@build_cpu@%$build_cpu%g
3083 s%@build_vendor@%$build_vendor%g
3084 s%@build_os@%$build_os%g
3085 s%@CC@%$CC%g
3086 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3087 s%@INSTALL_DATA@%$INSTALL_DATA%g
3088 s%@HDEFINES@%$HDEFINES%g
3089 s%@AR@%$AR%g
3090 s%@RANLIB@%$RANLIB%g
3091 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
3092 s%@SET_MAKE@%$SET_MAKE%g
3093 s%@CPP@%$CPP%g
3094 s%@ALLOCA@%$ALLOCA%g
3095 s%@USE_NLS@%$USE_NLS%g
3096 s%@MSGFMT@%$MSGFMT%g
3097 s%@GMSGFMT@%$GMSGFMT%g
3098 s%@XGETTEXT@%$XGETTEXT%g
3099 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
3100 s%@CATALOGS@%$CATALOGS%g
3101 s%@CATOBJEXT@%$CATOBJEXT%g
3102 s%@DATADIRNAME@%$DATADIRNAME%g
3103 s%@GMOFILES@%$GMOFILES%g
3104 s%@INSTOBJEXT@%$INSTOBJEXT%g
3105 s%@INTLDEPS@%$INTLDEPS%g
3106 s%@INTLLIBS@%$INTLLIBS%g
3107 s%@INTLOBJS@%$INTLOBJS%g
3108 s%@POFILES@%$POFILES%g
3109 s%@POSUB@%$POSUB%g
3110 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
3111 s%@GT_NO@%$GT_NO%g
3112 s%@GT_YES@%$GT_YES%g
3113 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
3114 s%@l@%$l%g
3115
3116 CEOF
3117 EOF
3118
3119 cat >> $CONFIG_STATUS <<\EOF
3120
3121 # Split the substitutions into bite-sized pieces for seds with
3122 # small command number limits, like on Digital OSF/1 and HP-UX.
3123 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3124 ac_file=1 # Number of current file.
3125 ac_beg=1 # First line for current file.
3126 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3127 ac_more_lines=:
3128 ac_sed_cmds=""
3129 while $ac_more_lines; do
3130 if test $ac_beg -gt 1; then
3131 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3132 else
3133 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3134 fi
3135 if test ! -s conftest.s$ac_file; then
3136 ac_more_lines=false
3137 rm -f conftest.s$ac_file
3138 else
3139 if test -z "$ac_sed_cmds"; then
3140 ac_sed_cmds="sed -f conftest.s$ac_file"
3141 else
3142 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3143 fi
3144 ac_file=`expr $ac_file + 1`
3145 ac_beg=$ac_end
3146 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3147 fi
3148 done
3149 if test -z "$ac_sed_cmds"; then
3150 ac_sed_cmds=cat
3151 fi
3152 EOF
3153
3154 cat >> $CONFIG_STATUS <<EOF
3155
3156 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
3157 EOF
3158 cat >> $CONFIG_STATUS <<\EOF
3159 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3160 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3161 case "$ac_file" in
3162 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3163 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3164 *) ac_file_in="${ac_file}.in" ;;
3165 esac
3166
3167 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3168
3169 # Remove last slash and all that follows it. Not all systems have dirname.
3170 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3171 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3172 # The file is in a subdirectory.
3173 test ! -d "$ac_dir" && mkdir "$ac_dir"
3174 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3175 # A "../" for each directory in $ac_dir_suffix.
3176 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3177 else
3178 ac_dir_suffix= ac_dots=
3179 fi
3180
3181 case "$ac_given_srcdir" in
3182 .) srcdir=.
3183 if test -z "$ac_dots"; then top_srcdir=.
3184 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3185 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3186 *) # Relative path.
3187 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3188 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3189 esac
3190
3191 case "$ac_given_INSTALL" in
3192 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3193 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3194 esac
3195
3196 echo creating "$ac_file"
3197 rm -f "$ac_file"
3198 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3199 case "$ac_file" in
3200 *Makefile*) ac_comsub="1i\\
3201 # $configure_input" ;;
3202 *) ac_comsub= ;;
3203 esac
3204
3205 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3206 sed -e "$ac_comsub
3207 s%@configure_input@%$configure_input%g
3208 s%@srcdir@%$srcdir%g
3209 s%@top_srcdir@%$top_srcdir%g
3210 s%@INSTALL@%$INSTALL%g
3211 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3212 fi; done
3213 rm -f conftest.s*
3214
3215 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3216 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3217 #
3218 # ac_d sets the value in "#define NAME VALUE" lines.
3219 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3220 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3221 ac_dC='\3'
3222 ac_dD='%g'
3223 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3224 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3225 ac_uB='\([ ]\)%\1#\2define\3'
3226 ac_uC=' '
3227 ac_uD='\4%g'
3228 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3229 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3230 ac_eB='$%\1#\2define\3'
3231 ac_eC=' '
3232 ac_eD='%g'
3233
3234 if test "${CONFIG_HEADERS+set}" != set; then
3235 EOF
3236 cat >> $CONFIG_STATUS <<EOF
3237 CONFIG_HEADERS="config.h:config.in"
3238 EOF
3239 cat >> $CONFIG_STATUS <<\EOF
3240 fi
3241 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3242 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3243 case "$ac_file" in
3244 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3245 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3246 *) ac_file_in="${ac_file}.in" ;;
3247 esac
3248
3249 echo creating $ac_file
3250
3251 rm -f conftest.frag conftest.in conftest.out
3252 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3253 cat $ac_file_inputs > conftest.in
3254
3255 EOF
3256
3257 # Transform confdefs.h into a sed script conftest.vals that substitutes
3258 # the proper values into config.h.in to produce config.h. And first:
3259 # Protect against being on the right side of a sed subst in config.status.
3260 # Protect against being in an unquoted here document in config.status.
3261 rm -f conftest.vals
3262 cat > conftest.hdr <<\EOF
3263 s/[\\&%]/\\&/g
3264 s%[\\$`]%\\&%g
3265 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3266 s%ac_d%ac_u%gp
3267 s%ac_u%ac_e%gp
3268 EOF
3269 sed -n -f conftest.hdr confdefs.h > conftest.vals
3270 rm -f conftest.hdr
3271
3272 # This sed command replaces #undef with comments. This is necessary, for
3273 # example, in the case of _POSIX_SOURCE, which is predefined and required
3274 # on some systems where configure will not decide to define it.
3275 cat >> conftest.vals <<\EOF
3276 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3277 EOF
3278
3279 # Break up conftest.vals because some shells have a limit on
3280 # the size of here documents, and old seds have small limits too.
3281
3282 rm -f conftest.tail
3283 while :
3284 do
3285 ac_lines=`grep -c . conftest.vals`
3286 # grep -c gives empty output for an empty file on some AIX systems.
3287 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3288 # Write a limited-size here document to conftest.frag.
3289 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3290 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3291 echo 'CEOF
3292 sed -f conftest.frag conftest.in > conftest.out
3293 rm -f conftest.in
3294 mv conftest.out conftest.in
3295 ' >> $CONFIG_STATUS
3296 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3297 rm -f conftest.vals
3298 mv conftest.tail conftest.vals
3299 done
3300 rm -f conftest.vals
3301
3302 cat >> $CONFIG_STATUS <<\EOF
3303 rm -f conftest.frag conftest.h
3304 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3305 cat conftest.in >> conftest.h
3306 rm -f conftest.in
3307 if cmp -s $ac_file conftest.h 2>/dev/null; then
3308 echo "$ac_file is unchanged"
3309 rm -f conftest.h
3310 else
3311 # Remove last slash and all that follows it. Not all systems have dirname.
3312 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3313 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3314 # The file is in a subdirectory.
3315 test ! -d "$ac_dir" && mkdir "$ac_dir"
3316 fi
3317 rm -f $ac_file
3318 mv conftest.h $ac_file
3319 fi
3320 fi; done
3321
3322 EOF
3323 cat >> $CONFIG_STATUS <<EOF
3324
3325 EOF
3326 cat >> $CONFIG_STATUS <<\EOF
3327 case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac
3328 exit 0
3329 EOF
3330 chmod +x $CONFIG_STATUS
3331 rm -fr confdefs* $ac_clean_files
3332 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3333