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