source: branches/libc-0.6/src/binutils/intl/configure

Last change on this file was 101, checked in by bird, 22 years ago

Regenerated configure scripts.

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