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