* config/os/freebsd/bits/ctype_base.h: Update comments about other
[official-gcc.git] / texinfo / configure
blob935049fc4f475e3efb1d57d34d26b91c560ec577
1 #! /bin/sh
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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
17 ac_help="$ac_help
18 --disable-nls do not use Native Language Support"
19 ac_help="$ac_help
20 --with-included-gettext use the GNU gettext library included here"
21 ac_help="$ac_help
22 --with-catgets use catgets functions if available"
24 # Initialize some variables set by options.
25 # The variables have the same names as the options, with
26 # dashes changed to underlines.
27 build=NONE
28 cache_file=./config.cache
29 exec_prefix=NONE
30 host=NONE
31 no_create=
32 nonopt=NONE
33 no_recursion=
34 prefix=NONE
35 program_prefix=NONE
36 program_suffix=NONE
37 program_transform_name=s,x,x,
38 silent=
39 site=
40 srcdir=
41 target=NONE
42 verbose=
43 x_includes=NONE
44 x_libraries=NONE
45 bindir='${exec_prefix}/bin'
46 sbindir='${exec_prefix}/sbin'
47 libexecdir='${exec_prefix}/libexec'
48 datadir='${prefix}/share'
49 sysconfdir='${prefix}/etc'
50 sharedstatedir='${prefix}/com'
51 localstatedir='${prefix}/var'
52 libdir='${exec_prefix}/lib'
53 includedir='${prefix}/include'
54 oldincludedir='/usr/include'
55 infodir='${prefix}/info'
56 mandir='${prefix}/man'
58 # Initialize some other variables.
59 subdirs=
60 MFLAGS= MAKEFLAGS=
61 SHELL=${CONFIG_SHELL-/bin/sh}
62 # Maximum number of lines to put in a shell here document.
63 ac_max_here_lines=12
65 ac_prev=
66 for ac_option
69 # If the previous option needs an argument, assign it.
70 if test -n "$ac_prev"; then
71 eval "$ac_prev=\$ac_option"
72 ac_prev=
73 continue
76 case "$ac_option" in
77 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
78 *) ac_optarg= ;;
79 esac
81 # Accept the important Cygnus configure options, so we can diagnose typos.
83 case "$ac_option" in
85 -bindir | --bindir | --bindi | --bind | --bin | --bi)
86 ac_prev=bindir ;;
87 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
88 bindir="$ac_optarg" ;;
90 -build | --build | --buil | --bui | --bu)
91 ac_prev=build ;;
92 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
93 build="$ac_optarg" ;;
95 -cache-file | --cache-file | --cache-fil | --cache-fi \
96 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
97 ac_prev=cache_file ;;
98 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
99 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
100 cache_file="$ac_optarg" ;;
102 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
103 ac_prev=datadir ;;
104 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
105 | --da=*)
106 datadir="$ac_optarg" ;;
108 -disable-* | --disable-*)
109 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
110 # Reject names that are not valid shell variable names.
111 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
112 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
114 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
115 eval "enable_${ac_feature}=no" ;;
117 -enable-* | --enable-*)
118 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
119 # Reject names that are not valid shell variable names.
120 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
121 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
124 case "$ac_option" in
125 *=*) ;;
126 *) ac_optarg=yes ;;
127 esac
128 eval "enable_${ac_feature}='$ac_optarg'" ;;
130 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
131 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
132 | --exec | --exe | --ex)
133 ac_prev=exec_prefix ;;
134 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
135 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
136 | --exec=* | --exe=* | --ex=*)
137 exec_prefix="$ac_optarg" ;;
139 -gas | --gas | --ga | --g)
140 # Obsolete; use --with-gas.
141 with_gas=yes ;;
143 -help | --help | --hel | --he)
144 # Omit some internal or obsolete options to make the list less imposing.
145 # This message is too long to be a string in the A/UX 3.1 sh.
146 cat << EOF
147 Usage: configure [options] [host]
148 Options: [defaults in brackets after descriptions]
149 Configuration:
150 --cache-file=FILE cache test results in FILE
151 --help print this message
152 --no-create do not create output files
153 --quiet, --silent do not print \`checking...' messages
154 --version print the version of autoconf that created configure
155 Directory and file names:
156 --prefix=PREFIX install architecture-independent files in PREFIX
157 [$ac_default_prefix]
158 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
159 [same as prefix]
160 --bindir=DIR user executables in DIR [EPREFIX/bin]
161 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
162 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
163 --datadir=DIR read-only architecture-independent data in DIR
164 [PREFIX/share]
165 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
166 --sharedstatedir=DIR modifiable architecture-independent data in DIR
167 [PREFIX/com]
168 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
169 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
170 --includedir=DIR C header files in DIR [PREFIX/include]
171 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
172 --infodir=DIR info documentation in DIR [PREFIX/info]
173 --mandir=DIR man documentation in DIR [PREFIX/man]
174 --srcdir=DIR find the sources in DIR [configure dir or ..]
175 --program-prefix=PREFIX prepend PREFIX to installed program names
176 --program-suffix=SUFFIX append SUFFIX to installed program names
177 --program-transform-name=PROGRAM
178 run sed PROGRAM on installed program names
180 cat << EOF
181 Host type:
182 --build=BUILD configure for building on BUILD [BUILD=HOST]
183 --host=HOST configure for HOST [guessed]
184 --target=TARGET configure for TARGET [TARGET=HOST]
185 Features and packages:
186 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
187 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
188 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
189 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
190 --x-includes=DIR X include files are in DIR
191 --x-libraries=DIR X library files are in DIR
193 if test -n "$ac_help"; then
194 echo "--enable and --with options recognized:$ac_help"
196 exit 0 ;;
198 -host | --host | --hos | --ho)
199 ac_prev=host ;;
200 -host=* | --host=* | --hos=* | --ho=*)
201 host="$ac_optarg" ;;
203 -includedir | --includedir | --includedi | --included | --include \
204 | --includ | --inclu | --incl | --inc)
205 ac_prev=includedir ;;
206 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
207 | --includ=* | --inclu=* | --incl=* | --inc=*)
208 includedir="$ac_optarg" ;;
210 -infodir | --infodir | --infodi | --infod | --info | --inf)
211 ac_prev=infodir ;;
212 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
213 infodir="$ac_optarg" ;;
215 -libdir | --libdir | --libdi | --libd)
216 ac_prev=libdir ;;
217 -libdir=* | --libdir=* | --libdi=* | --libd=*)
218 libdir="$ac_optarg" ;;
220 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
221 | --libexe | --libex | --libe)
222 ac_prev=libexecdir ;;
223 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
224 | --libexe=* | --libex=* | --libe=*)
225 libexecdir="$ac_optarg" ;;
227 -localstatedir | --localstatedir | --localstatedi | --localstated \
228 | --localstate | --localstat | --localsta | --localst \
229 | --locals | --local | --loca | --loc | --lo)
230 ac_prev=localstatedir ;;
231 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
232 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
233 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
234 localstatedir="$ac_optarg" ;;
236 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
237 ac_prev=mandir ;;
238 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
239 mandir="$ac_optarg" ;;
241 -nfp | --nfp | --nf)
242 # Obsolete; use --without-fp.
243 with_fp=no ;;
245 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
246 | --no-cr | --no-c)
247 no_create=yes ;;
249 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
250 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
251 no_recursion=yes ;;
253 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
254 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
255 | --oldin | --oldi | --old | --ol | --o)
256 ac_prev=oldincludedir ;;
257 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
258 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
259 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
260 oldincludedir="$ac_optarg" ;;
262 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
263 ac_prev=prefix ;;
264 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
265 prefix="$ac_optarg" ;;
267 -program-prefix | --program-prefix | --program-prefi | --program-pref \
268 | --program-pre | --program-pr | --program-p)
269 ac_prev=program_prefix ;;
270 -program-prefix=* | --program-prefix=* | --program-prefi=* \
271 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
272 program_prefix="$ac_optarg" ;;
274 -program-suffix | --program-suffix | --program-suffi | --program-suff \
275 | --program-suf | --program-su | --program-s)
276 ac_prev=program_suffix ;;
277 -program-suffix=* | --program-suffix=* | --program-suffi=* \
278 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
279 program_suffix="$ac_optarg" ;;
281 -program-transform-name | --program-transform-name \
282 | --program-transform-nam | --program-transform-na \
283 | --program-transform-n | --program-transform- \
284 | --program-transform | --program-transfor \
285 | --program-transfo | --program-transf \
286 | --program-trans | --program-tran \
287 | --progr-tra | --program-tr | --program-t)
288 ac_prev=program_transform_name ;;
289 -program-transform-name=* | --program-transform-name=* \
290 | --program-transform-nam=* | --program-transform-na=* \
291 | --program-transform-n=* | --program-transform-=* \
292 | --program-transform=* | --program-transfor=* \
293 | --program-transfo=* | --program-transf=* \
294 | --program-trans=* | --program-tran=* \
295 | --progr-tra=* | --program-tr=* | --program-t=*)
296 program_transform_name="$ac_optarg" ;;
298 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
299 | -silent | --silent | --silen | --sile | --sil)
300 silent=yes ;;
302 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
303 ac_prev=sbindir ;;
304 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
305 | --sbi=* | --sb=*)
306 sbindir="$ac_optarg" ;;
308 -sharedstatedir | --sharedstatedir | --sharedstatedi \
309 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
310 | --sharedst | --shareds | --shared | --share | --shar \
311 | --sha | --sh)
312 ac_prev=sharedstatedir ;;
313 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
314 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
315 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
316 | --sha=* | --sh=*)
317 sharedstatedir="$ac_optarg" ;;
319 -site | --site | --sit)
320 ac_prev=site ;;
321 -site=* | --site=* | --sit=*)
322 site="$ac_optarg" ;;
324 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
325 ac_prev=srcdir ;;
326 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
327 srcdir="$ac_optarg" ;;
329 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
330 | --syscon | --sysco | --sysc | --sys | --sy)
331 ac_prev=sysconfdir ;;
332 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
333 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
334 sysconfdir="$ac_optarg" ;;
336 -target | --target | --targe | --targ | --tar | --ta | --t)
337 ac_prev=target ;;
338 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
339 target="$ac_optarg" ;;
341 -v | -verbose | --verbose | --verbos | --verbo | --verb)
342 verbose=yes ;;
344 -version | --version | --versio | --versi | --vers)
345 echo "configure generated by autoconf version 2.12.1"
346 exit 0 ;;
348 -with-* | --with-*)
349 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
350 # Reject names that are not valid shell variable names.
351 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
352 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
354 ac_package=`echo $ac_package| sed 's/-/_/g'`
355 case "$ac_option" in
356 *=*) ;;
357 *) ac_optarg=yes ;;
358 esac
359 eval "with_${ac_package}='$ac_optarg'" ;;
361 -without-* | --without-*)
362 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
363 # Reject names that are not valid shell variable names.
364 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
365 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
367 ac_package=`echo $ac_package| sed 's/-/_/g'`
368 eval "with_${ac_package}=no" ;;
370 --x)
371 # Obsolete; use --with-x.
372 with_x=yes ;;
374 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
375 | --x-incl | --x-inc | --x-in | --x-i)
376 ac_prev=x_includes ;;
377 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
378 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
379 x_includes="$ac_optarg" ;;
381 -x-libraries | --x-libraries | --x-librarie | --x-librari \
382 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
383 ac_prev=x_libraries ;;
384 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
385 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
386 x_libraries="$ac_optarg" ;;
388 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
392 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
393 echo "configure: warning: $ac_option: invalid host type" 1>&2
395 if test "x$nonopt" != xNONE; then
396 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
398 nonopt="$ac_option"
401 esac
402 done
404 if test -n "$ac_prev"; then
405 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
408 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
410 # File descriptor usage:
411 # 0 standard input
412 # 1 file creation
413 # 2 errors and warnings
414 # 3 some systems may open it to /dev/tty
415 # 4 used on the Kubota Titan
416 # 6 checking for... messages and results
417 # 5 compiler messages saved in config.log
418 if test "$silent" = yes; then
419 exec 6>/dev/null
420 else
421 exec 6>&1
423 exec 5>./config.log
425 echo "\
426 This file contains any messages produced by compilers while
427 running configure, to aid debugging if configure makes a mistake.
428 " 1>&5
430 # Strip out --no-create and --no-recursion so they do not pile up.
431 # Also quote any args containing shell metacharacters.
432 ac_configure_args=
433 for ac_arg
435 case "$ac_arg" in
436 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
437 | --no-cr | --no-c) ;;
438 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
439 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
440 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
441 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
442 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
443 esac
444 done
446 # NLS nuisances.
447 # Only set these to C if already set. These must not be set unconditionally
448 # because not all systems understand e.g. LANG=C (notably SCO).
449 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
450 # Non-C LC_CTYPE values break the ctype check.
451 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
452 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
453 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
454 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
456 # confdefs.h avoids OS command line length limits that DEFS can exceed.
457 rm -rf conftest* confdefs.h
458 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
459 echo > confdefs.h
461 # A filename unique to this package, relative to the directory that
462 # configure is in, which we can look for to find out if srcdir is correct.
463 ac_unique_file=makeinfo/makeinfo.c
465 # Find the source files, if location was not specified.
466 if test -z "$srcdir"; then
467 ac_srcdir_defaulted=yes
468 # Try the directory containing this script, then its parent.
469 ac_prog=$0
470 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
471 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
472 srcdir=$ac_confdir
473 if test ! -r $srcdir/$ac_unique_file; then
474 srcdir=..
476 else
477 ac_srcdir_defaulted=no
479 if test ! -r $srcdir/$ac_unique_file; then
480 if test "$ac_srcdir_defaulted" = yes; then
481 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
482 else
483 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
486 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
488 # Prefer explicitly selected file to automatically selected ones.
489 if test -z "$CONFIG_SITE"; then
490 if test "x$prefix" != xNONE; then
491 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
492 else
493 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
496 for ac_site_file in $CONFIG_SITE; do
497 if test -r "$ac_site_file"; then
498 echo "loading site script $ac_site_file"
499 . "$ac_site_file"
501 done
503 if test -r "$cache_file"; then
504 echo "loading cache $cache_file"
505 . $cache_file
506 else
507 echo "creating cache $cache_file"
508 > $cache_file
511 ac_ext=c
512 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
513 ac_cpp='$CPP $CPPFLAGS'
514 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
515 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
516 cross_compiling=$ac_cv_prog_cc_cross
518 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
519 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
520 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
521 ac_n= ac_c='
522 ' ac_t=' '
523 else
524 ac_n=-n ac_c= ac_t=
526 else
527 ac_n= ac_c='\c' ac_t=
535 ac_aux_dir=
536 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
537 if test -f $ac_dir/install-sh; then
538 ac_aux_dir=$ac_dir
539 ac_install_sh="$ac_aux_dir/install-sh -c"
540 break
541 elif test -f $ac_dir/install.sh; then
542 ac_aux_dir=$ac_dir
543 ac_install_sh="$ac_aux_dir/install.sh -c"
544 break
546 done
547 if test -z "$ac_aux_dir"; then
548 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
550 ac_config_guess=$ac_aux_dir/config.guess
551 ac_config_sub=$ac_aux_dir/config.sub
552 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
554 # Find a good install program. We prefer a C program (faster),
555 # so one script is as good as another. But avoid the broken or
556 # incompatible versions:
557 # SysV /etc/install, /usr/sbin/install
558 # SunOS /usr/etc/install
559 # IRIX /sbin/install
560 # AIX /bin/install
561 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
562 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
563 # ./install, which can be erroneously created by make from ./install.sh.
564 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
565 echo "configure:566: checking for a BSD compatible install" >&5
566 if test -z "$INSTALL"; then
567 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
568 echo $ac_n "(cached) $ac_c" 1>&6
569 else
570 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
571 for ac_dir in $PATH; do
572 # Account for people who put trailing slashes in PATH elements.
573 case "$ac_dir/" in
574 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
576 # OSF1 and SCO ODT 3.0 have their own names for install.
577 for ac_prog in ginstall installbsd 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 # OSF/1 installbsd also uses dspmsg, but is usable.
584 else
585 ac_cv_path_install="$ac_dir/$ac_prog -c"
586 break 2
589 done
591 esac
592 done
593 IFS="$ac_save_IFS"
596 if test "${ac_cv_path_install+set}" = set; then
597 INSTALL="$ac_cv_path_install"
598 else
599 # As a last resort, use the slow shell script. We don't cache a
600 # path for INSTALL within a source directory, because that will
601 # break other packages using the cache if that directory is
602 # removed, or if the path is relative.
603 INSTALL="$ac_install_sh"
606 echo "$ac_t""$INSTALL" 1>&6
608 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
609 # It thinks the first close brace ends the variable substitution.
610 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
612 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
615 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
617 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
618 echo "configure:619: checking whether build environment is sane" >&5
619 # Just in case
620 sleep 1
621 echo timestamp > conftestfile
622 # Do `set' in a subshell so we don't clobber the current shell's
623 # arguments. Must try -L first in case configure is actually a
624 # symlink; some systems play weird games with the mod time of symlinks
625 # (eg FreeBSD returns the mod time of the symlink's containing
626 # directory).
627 if (
628 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
629 if test "$*" = "X"; then
630 # -L didn't work.
631 set X `ls -t $srcdir/configure conftestfile`
633 if test "$*" != "X $srcdir/configure conftestfile" \
634 && test "$*" != "X conftestfile $srcdir/configure"; then
636 # If neither matched, then we have a broken ls. This can happen
637 # if, for instance, CONFIG_SHELL is bash and it inherits a
638 # broken ls alias from the environment. This has actually
639 # happened. Such a system could not be considered "sane".
640 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
641 alias in your environment" 1>&2; exit 1; }
644 test "$2" = conftestfile
646 then
647 # Ok.
649 else
650 { echo "configure: error: newly created file is older than distributed files!
651 Check your system clock" 1>&2; exit 1; }
653 rm -f conftest*
654 echo "$ac_t""yes" 1>&6
655 if test "$program_transform_name" = s,x,x,; then
656 program_transform_name=
657 else
658 # Double any \ or $. echo might interpret backslashes.
659 cat <<\EOF_SED > conftestsed
660 s,\\,\\\\,g; s,\$,$$,g
661 EOF_SED
662 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
663 rm -f conftestsed
665 test "$program_prefix" != NONE &&
666 program_transform_name="s,^,${program_prefix},; $program_transform_name"
667 # Use a double $ so make ignores it.
668 test "$program_suffix" != NONE &&
669 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
671 # sed with no file args requires a program.
672 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
674 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
675 echo "configure:676: checking whether ${MAKE-make} sets \${MAKE}" >&5
676 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
677 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
678 echo $ac_n "(cached) $ac_c" 1>&6
679 else
680 cat > conftestmake <<\EOF
681 all:
682 @echo 'ac_maketemp="${MAKE}"'
684 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
685 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
686 if test -n "$ac_maketemp"; then
687 eval ac_cv_prog_make_${ac_make}_set=yes
688 else
689 eval ac_cv_prog_make_${ac_make}_set=no
691 rm -f conftestmake
693 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
694 echo "$ac_t""yes" 1>&6
695 SET_MAKE=
696 else
697 echo "$ac_t""no" 1>&6
698 SET_MAKE="MAKE=${MAKE-make}"
702 PACKAGE=texinfo
704 VERSION=3.12
706 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
707 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
709 cat >> confdefs.h <<EOF
710 #define PACKAGE "$PACKAGE"
713 cat >> confdefs.h <<EOF
714 #define VERSION "$VERSION"
719 missing_dir=`cd $ac_aux_dir && pwd`
720 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
721 echo "configure:722: checking for working aclocal" >&5
722 # Run test in a subshell; some versions of sh will print an error if
723 # an executable is not found, even if stderr is redirected.
724 # Redirect stdin to placate older versions of autoconf. Sigh.
725 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
726 ACLOCAL=aclocal
727 echo "$ac_t""found" 1>&6
728 else
729 ACLOCAL="$missing_dir/missing aclocal"
730 echo "$ac_t""missing" 1>&6
733 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
734 echo "configure:735: checking for working autoconf" >&5
735 # Run test in a subshell; some versions of sh will print an error if
736 # an executable is not found, even if stderr is redirected.
737 # Redirect stdin to placate older versions of autoconf. Sigh.
738 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
739 AUTOCONF=autoconf
740 echo "$ac_t""found" 1>&6
741 else
742 AUTOCONF="$missing_dir/missing autoconf"
743 echo "$ac_t""missing" 1>&6
746 echo $ac_n "checking for working automake""... $ac_c" 1>&6
747 echo "configure:748: checking for working automake" >&5
748 # Run test in a subshell; some versions of sh will print an error if
749 # an executable is not found, even if stderr is redirected.
750 # Redirect stdin to placate older versions of autoconf. Sigh.
751 if (automake --version) < /dev/null > /dev/null 2>&1; then
752 AUTOMAKE=automake
753 echo "$ac_t""found" 1>&6
754 else
755 AUTOMAKE="$missing_dir/missing automake"
756 echo "$ac_t""missing" 1>&6
759 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
760 echo "configure:761: checking for working autoheader" >&5
761 # Run test in a subshell; some versions of sh will print an error if
762 # an executable is not found, even if stderr is redirected.
763 # Redirect stdin to placate older versions of autoconf. Sigh.
764 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
765 AUTOHEADER=autoheader
766 echo "$ac_t""found" 1>&6
767 else
768 AUTOHEADER="$missing_dir/missing autoheader"
769 echo "$ac_t""missing" 1>&6
772 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
773 echo "configure:774: checking for working makeinfo" >&5
774 # Run test in a subshell; some versions of sh will print an error if
775 # an executable is not found, even if stderr is redirected.
776 # Redirect stdin to placate older versions of autoconf. Sigh.
777 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
778 MAKEINFO=makeinfo
779 echo "$ac_t""found" 1>&6
780 else
781 MAKEINFO="$missing_dir/missing makeinfo"
782 echo "$ac_t""missing" 1>&6
787 # Extract the first word of "gcc", so it can be a program name with args.
788 set dummy gcc; ac_word=$2
789 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
790 echo "configure:791: checking for $ac_word" >&5
791 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
792 echo $ac_n "(cached) $ac_c" 1>&6
793 else
794 if test -n "$CC"; then
795 ac_cv_prog_CC="$CC" # Let the user override the test.
796 else
797 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
798 for ac_dir in $PATH; do
799 test -z "$ac_dir" && ac_dir=.
800 if test -f $ac_dir/$ac_word; then
801 ac_cv_prog_CC="gcc"
802 break
804 done
805 IFS="$ac_save_ifs"
808 CC="$ac_cv_prog_CC"
809 if test -n "$CC"; then
810 echo "$ac_t""$CC" 1>&6
811 else
812 echo "$ac_t""no" 1>&6
815 if test -z "$CC"; then
816 # Extract the first word of "cc", so it can be a program name with args.
817 set dummy cc; ac_word=$2
818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
819 echo "configure:820: checking for $ac_word" >&5
820 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
821 echo $ac_n "(cached) $ac_c" 1>&6
822 else
823 if test -n "$CC"; then
824 ac_cv_prog_CC="$CC" # Let the user override the test.
825 else
826 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
827 ac_prog_rejected=no
828 for ac_dir in $PATH; do
829 test -z "$ac_dir" && ac_dir=.
830 if test -f $ac_dir/$ac_word; then
831 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
832 ac_prog_rejected=yes
833 continue
835 ac_cv_prog_CC="cc"
836 break
838 done
839 IFS="$ac_save_ifs"
840 if test $ac_prog_rejected = yes; then
841 # We found a bogon in the path, so make sure we never use it.
842 set dummy $ac_cv_prog_CC
843 shift
844 if test $# -gt 0; then
845 # We chose a different compiler from the bogus one.
846 # However, it has the same basename, so the bogon will be chosen
847 # first if we set CC to just the basename; use the full file name.
848 shift
849 set dummy "$ac_dir/$ac_word" "$@"
850 shift
851 ac_cv_prog_CC="$@"
856 CC="$ac_cv_prog_CC"
857 if test -n "$CC"; then
858 echo "$ac_t""$CC" 1>&6
859 else
860 echo "$ac_t""no" 1>&6
863 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
866 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
867 echo "configure:868: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
869 ac_ext=c
870 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
871 ac_cpp='$CPP $CPPFLAGS'
872 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
873 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
874 cross_compiling=$ac_cv_prog_cc_cross
876 cat > conftest.$ac_ext <<EOF
877 #line 878 "configure"
878 #include "confdefs.h"
879 main(){return(0);}
881 if { (eval echo configure:882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
882 ac_cv_prog_cc_works=yes
883 # If we can't run a trivial program, we are probably using a cross compiler.
884 if (./conftest; exit) 2>/dev/null; then
885 ac_cv_prog_cc_cross=no
886 else
887 ac_cv_prog_cc_cross=yes
889 else
890 echo "configure: failed program was:" >&5
891 cat conftest.$ac_ext >&5
892 ac_cv_prog_cc_works=no
894 rm -fr conftest*
896 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
897 if test $ac_cv_prog_cc_works = no; then
898 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
900 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
901 echo "configure:902: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
902 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
903 cross_compiling=$ac_cv_prog_cc_cross
905 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
906 echo "configure:907: checking whether we are using GNU C" >&5
907 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
908 echo $ac_n "(cached) $ac_c" 1>&6
909 else
910 cat > conftest.c <<EOF
911 #ifdef __GNUC__
912 yes;
913 #endif
915 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
916 ac_cv_prog_gcc=yes
917 else
918 ac_cv_prog_gcc=no
922 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
924 if test $ac_cv_prog_gcc = yes; then
925 GCC=yes
926 ac_test_CFLAGS="${CFLAGS+set}"
927 ac_save_CFLAGS="$CFLAGS"
928 CFLAGS=
929 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
930 echo "configure:931: checking whether ${CC-cc} accepts -g" >&5
931 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
932 echo $ac_n "(cached) $ac_c" 1>&6
933 else
934 echo 'void f(){}' > conftest.c
935 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
936 ac_cv_prog_cc_g=yes
937 else
938 ac_cv_prog_cc_g=no
940 rm -f conftest*
944 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
945 if test "$ac_test_CFLAGS" = set; then
946 CFLAGS="$ac_save_CFLAGS"
947 elif test $ac_cv_prog_cc_g = yes; then
948 CFLAGS="-g -O2"
949 else
950 CFLAGS="-O2"
952 else
953 GCC=
954 test "${CFLAGS+set}" = set || CFLAGS="-g"
957 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
958 echo "configure:959: checking how to run the C preprocessor" >&5
959 # On Suns, sometimes $CPP names a directory.
960 if test -n "$CPP" && test -d "$CPP"; then
961 CPP=
963 if test -z "$CPP"; then
964 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
965 echo $ac_n "(cached) $ac_c" 1>&6
966 else
967 # This must be in double quotes, not single quotes, because CPP may get
968 # substituted into the Makefile and "${CC-cc}" will confuse make.
969 CPP="${CC-cc} -E"
970 # On the NeXT, cc -E runs the code through the compiler's parser,
971 # not just through cpp.
972 cat > conftest.$ac_ext <<EOF
973 #line 974 "configure"
974 #include "confdefs.h"
975 #include <assert.h>
976 Syntax Error
978 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
979 { (eval echo configure:980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
980 ac_err=`grep -v '^ *+' conftest.out`
981 if test -z "$ac_err"; then
983 else
984 echo "$ac_err" >&5
985 echo "configure: failed program was:" >&5
986 cat conftest.$ac_ext >&5
987 rm -rf conftest*
988 CPP="${CC-cc} -E -traditional-cpp"
989 cat > conftest.$ac_ext <<EOF
990 #line 991 "configure"
991 #include "confdefs.h"
992 #include <assert.h>
993 Syntax Error
995 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
996 { (eval echo configure:997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
997 ac_err=`grep -v '^ *+' conftest.out`
998 if test -z "$ac_err"; then
1000 else
1001 echo "$ac_err" >&5
1002 echo "configure: failed program was:" >&5
1003 cat conftest.$ac_ext >&5
1004 rm -rf conftest*
1005 CPP=/lib/cpp
1007 rm -f conftest*
1009 rm -f conftest*
1010 ac_cv_prog_CPP="$CPP"
1012 CPP="$ac_cv_prog_CPP"
1013 else
1014 ac_cv_prog_CPP="$CPP"
1016 echo "$ac_t""$CPP" 1>&6
1018 if test $ac_cv_prog_gcc = yes; then
1019 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1020 echo "configure:1021: checking whether ${CC-cc} needs -traditional" >&5
1021 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1022 echo $ac_n "(cached) $ac_c" 1>&6
1023 else
1024 ac_pattern="Autoconf.*'x'"
1025 cat > conftest.$ac_ext <<EOF
1026 #line 1027 "configure"
1027 #include "confdefs.h"
1028 #include <sgtty.h>
1029 Autoconf TIOCGETP
1031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1032 egrep "$ac_pattern" >/dev/null 2>&1; then
1033 rm -rf conftest*
1034 ac_cv_prog_gcc_traditional=yes
1035 else
1036 rm -rf conftest*
1037 ac_cv_prog_gcc_traditional=no
1039 rm -f conftest*
1042 if test $ac_cv_prog_gcc_traditional = no; then
1043 cat > conftest.$ac_ext <<EOF
1044 #line 1045 "configure"
1045 #include "confdefs.h"
1046 #include <termio.h>
1047 Autoconf TCGETA
1049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1050 egrep "$ac_pattern" >/dev/null 2>&1; then
1051 rm -rf conftest*
1052 ac_cv_prog_gcc_traditional=yes
1054 rm -f conftest*
1059 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1060 if test $ac_cv_prog_gcc_traditional = yes; then
1061 CC="$CC -traditional"
1065 # Find a good install program. We prefer a C program (faster),
1066 # so one script is as good as another. But avoid the broken or
1067 # incompatible versions:
1068 # SysV /etc/install, /usr/sbin/install
1069 # SunOS /usr/etc/install
1070 # IRIX /sbin/install
1071 # AIX /bin/install
1072 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1073 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1074 # ./install, which can be erroneously created by make from ./install.sh.
1075 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1076 echo "configure:1077: checking for a BSD compatible install" >&5
1077 if test -z "$INSTALL"; then
1078 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1079 echo $ac_n "(cached) $ac_c" 1>&6
1080 else
1081 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1082 for ac_dir in $PATH; do
1083 # Account for people who put trailing slashes in PATH elements.
1084 case "$ac_dir/" in
1085 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1087 # OSF1 and SCO ODT 3.0 have their own names for install.
1088 for ac_prog in ginstall scoinst install; do
1089 if test -f $ac_dir/$ac_prog; then
1090 if test $ac_prog = install &&
1091 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1092 # AIX install. It has an incompatible calling convention.
1093 # OSF/1 installbsd also uses dspmsg, but is usable.
1095 else
1096 ac_cv_path_install="$ac_dir/$ac_prog -c"
1097 break 2
1100 done
1102 esac
1103 done
1104 IFS="$ac_save_IFS"
1107 if test "${ac_cv_path_install+set}" = set; then
1108 INSTALL="$ac_cv_path_install"
1109 else
1110 # As a last resort, use the slow shell script. We don't cache a
1111 # path for INSTALL within a source directory, because that will
1112 # break other packages using the cache if that directory is
1113 # removed, or if the path is relative.
1114 INSTALL="$ac_install_sh"
1117 echo "$ac_t""$INSTALL" 1>&6
1119 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1120 # It thinks the first close brace ends the variable substitution.
1121 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1123 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1125 # Extract the first word of "ranlib", so it can be a program name with args.
1126 set dummy ranlib; ac_word=$2
1127 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1128 echo "configure:1129: checking for $ac_word" >&5
1129 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1130 echo $ac_n "(cached) $ac_c" 1>&6
1131 else
1132 if test -n "$RANLIB"; then
1133 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1134 else
1135 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1136 for ac_dir in $PATH; do
1137 test -z "$ac_dir" && ac_dir=.
1138 if test -f $ac_dir/$ac_word; then
1139 ac_cv_prog_RANLIB="ranlib"
1140 break
1142 done
1143 IFS="$ac_save_ifs"
1144 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1147 RANLIB="$ac_cv_prog_RANLIB"
1148 if test -n "$RANLIB"; then
1149 echo "$ac_t""$RANLIB" 1>&6
1150 else
1151 echo "$ac_t""no" 1>&6
1155 # We do this for the sake of a more helpful warning in doc/Makefile.
1156 TEXMF='$(datadir)/texmf'
1157 # Extract the first word of "texconfig", so it can be a program name with args.
1158 set dummy texconfig; ac_word=$2
1159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1160 echo "configure:1161: checking for $ac_word" >&5
1161 if eval "test \"`echo '$''{'ac_cv_prog_TEXCONFIG'+set}'`\" = set"; then
1162 echo $ac_n "(cached) $ac_c" 1>&6
1163 else
1164 if test -n "$TEXCONFIG"; then
1165 ac_cv_prog_TEXCONFIG="$TEXCONFIG" # Let the user override the test.
1166 else
1167 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1168 for ac_dir in $PATH; do
1169 test -z "$ac_dir" && ac_dir=.
1170 if test -f $ac_dir/$ac_word; then
1171 ac_cv_prog_TEXCONFIG="true"
1172 break
1174 done
1175 IFS="$ac_save_ifs"
1176 test -z "$ac_cv_prog_TEXCONFIG" && ac_cv_prog_TEXCONFIG="false"
1179 TEXCONFIG="$ac_cv_prog_TEXCONFIG"
1180 if test -n "$TEXCONFIG"; then
1181 echo "$ac_t""$TEXCONFIG" 1>&6
1182 else
1183 echo "$ac_t""no" 1>&6
1186 $TEXCONFIG && eval `texconfig conf </dev/null | grep '^TEXMF='`
1189 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1190 echo "configure:1191: checking for POSIXized ISC" >&5
1191 if test -d /etc/conf/kconfig.d &&
1192 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1193 then
1194 echo "$ac_t""yes" 1>&6
1195 ISC=yes # If later tests want to check for ISC.
1196 cat >> confdefs.h <<\EOF
1197 #define _POSIX_SOURCE 1
1200 if test "$GCC" = yes; then
1201 CC="$CC -posix"
1202 else
1203 CC="$CC -Xp"
1205 else
1206 echo "$ac_t""no" 1>&6
1207 ISC=
1210 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1211 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1212 echo "configure:1213: checking for minix/config.h" >&5
1213 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1214 echo $ac_n "(cached) $ac_c" 1>&6
1215 else
1216 cat > conftest.$ac_ext <<EOF
1217 #line 1218 "configure"
1218 #include "confdefs.h"
1219 #include <minix/config.h>
1221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1222 { (eval echo configure:1223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1223 ac_err=`grep -v '^ *+' conftest.out`
1224 if test -z "$ac_err"; then
1225 rm -rf conftest*
1226 eval "ac_cv_header_$ac_safe=yes"
1227 else
1228 echo "$ac_err" >&5
1229 echo "configure: failed program was:" >&5
1230 cat conftest.$ac_ext >&5
1231 rm -rf conftest*
1232 eval "ac_cv_header_$ac_safe=no"
1234 rm -f conftest*
1236 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1237 echo "$ac_t""yes" 1>&6
1238 MINIX=yes
1239 else
1240 echo "$ac_t""no" 1>&6
1241 MINIX=
1244 if test "$MINIX" = yes; then
1245 cat >> confdefs.h <<\EOF
1246 #define _POSIX_SOURCE 1
1249 cat >> confdefs.h <<\EOF
1250 #define _POSIX_1_SOURCE 2
1253 cat >> confdefs.h <<\EOF
1254 #define _MINIX 1
1260 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1261 echo "configure:1262: checking whether to enable maintainer-specific portions of Makefiles" >&5
1262 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1263 if test "${enable_maintainer_mode+set}" = set; then
1264 enableval="$enable_maintainer_mode"
1265 USE_MAINTAINER_MODE=$enableval
1266 else
1267 USE_MAINTAINER_MODE=no
1270 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1271 if test $USE_MAINTAINER_MODE = yes; then
1272 MAINT=
1273 else
1274 MAINT='#M#'
1278 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
1279 echo "configure:1280: checking for Cygwin32 environment" >&5
1280 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
1281 echo $ac_n "(cached) $ac_c" 1>&6
1282 else
1283 cat > conftest.$ac_ext <<EOF
1284 #line 1285 "configure"
1285 #include "confdefs.h"
1287 int main() {
1288 return __CYGWIN32__;
1289 ; return 0; }
1291 if { (eval echo configure:1292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1292 rm -rf conftest*
1293 am_cv_cygwin32=yes
1294 else
1295 echo "configure: failed program was:" >&5
1296 cat conftest.$ac_ext >&5
1297 rm -rf conftest*
1298 am_cv_cygwin32=no
1300 rm -f conftest*
1301 rm -f conftest*
1304 echo "$ac_t""$am_cv_cygwin32" 1>&6
1305 CYGWIN32=
1306 test "$am_cv_cygwin32" = yes && CYGWIN32=yes
1307 echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
1308 echo "configure:1309: checking for Mingw32 environment" >&5
1309 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
1310 echo $ac_n "(cached) $ac_c" 1>&6
1311 else
1312 cat > conftest.$ac_ext <<EOF
1313 #line 1314 "configure"
1314 #include "confdefs.h"
1316 int main() {
1317 return __MINGW32__;
1318 ; return 0; }
1320 if { (eval echo configure:1321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1321 rm -rf conftest*
1322 am_cv_mingw32=yes
1323 else
1324 echo "configure: failed program was:" >&5
1325 cat conftest.$ac_ext >&5
1326 rm -rf conftest*
1327 am_cv_mingw32=no
1329 rm -f conftest*
1330 rm -f conftest*
1333 echo "$ac_t""$am_cv_mingw32" 1>&6
1334 MINGW32=
1335 test "$am_cv_mingw32" = yes && MINGW32=yes
1338 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1339 echo "configure:1340: checking for executable suffix" >&5
1340 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
1341 echo $ac_n "(cached) $ac_c" 1>&6
1342 else
1343 if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then
1344 am_cv_exeext=.exe
1345 else
1346 cat > am_c_test.c << 'EOF'
1347 int main() {
1348 /* Nothing needed here */
1351 ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
1352 am_cv_exeext=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
1353 rm -f am_c_test*
1356 test x"${am_cv_exeext}" = x && am_cv_exeext=no
1358 EXEEXT=""
1359 test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
1360 echo "$ac_t""${am_cv_exeext}" 1>&6
1363 for ac_hdr in zlib.h
1365 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1366 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1367 echo "configure:1368: checking for $ac_hdr" >&5
1368 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1369 echo $ac_n "(cached) $ac_c" 1>&6
1370 else
1371 cat > conftest.$ac_ext <<EOF
1372 #line 1373 "configure"
1373 #include "confdefs.h"
1374 #include <$ac_hdr>
1376 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1377 { (eval echo configure:1378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1378 ac_err=`grep -v '^ *+' conftest.out`
1379 if test -z "$ac_err"; then
1380 rm -rf conftest*
1381 eval "ac_cv_header_$ac_safe=yes"
1382 else
1383 echo "$ac_err" >&5
1384 echo "configure: failed program was:" >&5
1385 cat conftest.$ac_ext >&5
1386 rm -rf conftest*
1387 eval "ac_cv_header_$ac_safe=no"
1389 rm -f conftest*
1391 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1392 echo "$ac_t""yes" 1>&6
1393 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1394 cat >> confdefs.h <<EOF
1395 #define $ac_tr_hdr 1
1397 echo $ac_n "checking for gzdopen in -lz""... $ac_c" 1>&6
1398 echo "configure:1399: checking for gzdopen in -lz" >&5
1399 ac_lib_var=`echo z'_'gzdopen | sed 'y%./+-%__p_%'`
1400 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1401 echo $ac_n "(cached) $ac_c" 1>&6
1402 else
1403 ac_save_LIBS="$LIBS"
1404 LIBS="-lz $LIBS"
1405 cat > conftest.$ac_ext <<EOF
1406 #line 1407 "configure"
1407 #include "confdefs.h"
1408 /* Override any gcc2 internal prototype to avoid an error. */
1409 /* We use char because int might match the return type of a gcc2
1410 builtin and then its argument prototype would still apply. */
1411 char gzdopen();
1413 int main() {
1414 gzdopen()
1415 ; return 0; }
1417 if { (eval echo configure:1418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1418 rm -rf conftest*
1419 eval "ac_cv_lib_$ac_lib_var=yes"
1420 else
1421 echo "configure: failed program was:" >&5
1422 cat conftest.$ac_ext >&5
1423 rm -rf conftest*
1424 eval "ac_cv_lib_$ac_lib_var=no"
1426 rm -f conftest*
1427 LIBS="$ac_save_LIBS"
1430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1431 echo "$ac_t""yes" 1>&6
1432 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1433 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1434 cat >> confdefs.h <<EOF
1435 #define $ac_tr_lib 1
1438 LIBS="-lz $LIBS"
1440 else
1441 echo "$ac_t""no" 1>&6
1444 else
1445 echo "$ac_t""no" 1>&6
1447 done
1450 # Needed on sysV68 for sigblock, sigsetmask. But check for it in libc first.
1451 echo $ac_n "checking for sigblock""... $ac_c" 1>&6
1452 echo "configure:1453: checking for sigblock" >&5
1453 if eval "test \"`echo '$''{'ac_cv_func_sigblock'+set}'`\" = set"; then
1454 echo $ac_n "(cached) $ac_c" 1>&6
1455 else
1456 cat > conftest.$ac_ext <<EOF
1457 #line 1458 "configure"
1458 #include "confdefs.h"
1459 /* System header to define __stub macros and hopefully few prototypes,
1460 which can conflict with char sigblock(); below. */
1461 #include <assert.h>
1462 /* Override any gcc2 internal prototype to avoid an error. */
1463 /* We use char because int might match the return type of a gcc2
1464 builtin and then its argument prototype would still apply. */
1465 char sigblock();
1467 int main() {
1469 /* The GNU C library defines this for functions which it implements
1470 to always fail with ENOSYS. Some functions are actually named
1471 something starting with __ and the normal name is an alias. */
1472 #if defined (__stub_sigblock) || defined (__stub___sigblock)
1473 choke me
1474 #else
1475 sigblock();
1476 #endif
1478 ; return 0; }
1480 if { (eval echo configure:1481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1481 rm -rf conftest*
1482 eval "ac_cv_func_sigblock=yes"
1483 else
1484 echo "configure: failed program was:" >&5
1485 cat conftest.$ac_ext >&5
1486 rm -rf conftest*
1487 eval "ac_cv_func_sigblock=no"
1489 rm -f conftest*
1492 if eval "test \"`echo '$ac_cv_func_'sigblock`\" = yes"; then
1493 echo "$ac_t""yes" 1>&6
1495 else
1496 echo "$ac_t""no" 1>&6
1497 echo $ac_n "checking for sigblock in -lbsd""... $ac_c" 1>&6
1498 echo "configure:1499: checking for sigblock in -lbsd" >&5
1499 ac_lib_var=`echo bsd'_'sigblock | sed 'y%./+-%__p_%'`
1500 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1501 echo $ac_n "(cached) $ac_c" 1>&6
1502 else
1503 ac_save_LIBS="$LIBS"
1504 LIBS="-lbsd $LIBS"
1505 cat > conftest.$ac_ext <<EOF
1506 #line 1507 "configure"
1507 #include "confdefs.h"
1508 /* Override any gcc2 internal prototype to avoid an error. */
1509 /* We use char because int might match the return type of a gcc2
1510 builtin and then its argument prototype would still apply. */
1511 char sigblock();
1513 int main() {
1514 sigblock()
1515 ; return 0; }
1517 if { (eval echo configure:1518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1518 rm -rf conftest*
1519 eval "ac_cv_lib_$ac_lib_var=yes"
1520 else
1521 echo "configure: failed program was:" >&5
1522 cat conftest.$ac_ext >&5
1523 rm -rf conftest*
1524 eval "ac_cv_lib_$ac_lib_var=no"
1526 rm -f conftest*
1527 LIBS="$ac_save_LIBS"
1530 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1531 echo "$ac_t""yes" 1>&6
1532 ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/^a-zA-Z0-9_/_/g' \
1533 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1534 cat >> confdefs.h <<EOF
1535 #define $ac_tr_lib 1
1538 LIBS="-lbsd $LIBS"
1540 else
1541 echo "$ac_t""no" 1>&6
1547 # Some GNU/Linux systems (e.g., SuSE 4.3, 1996) don't have curses, but
1548 # rather ncurses. So we check for it.
1549 TERMLIBS=
1550 for termlib in ncurses curses termcap terminfo termlib ; do
1551 echo $ac_n "checking for tputs in -l${termlib}""... $ac_c" 1>&6
1552 echo "configure:1553: checking for tputs in -l${termlib}" >&5
1553 ac_lib_var=`echo ${termlib}'_'tputs | sed 'y%./+-%__p_%'`
1554 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1555 echo $ac_n "(cached) $ac_c" 1>&6
1556 else
1557 ac_save_LIBS="$LIBS"
1558 LIBS="-l${termlib} $LIBS"
1559 cat > conftest.$ac_ext <<EOF
1560 #line 1561 "configure"
1561 #include "confdefs.h"
1562 /* Override any gcc2 internal prototype to avoid an error. */
1563 /* We use char because int might match the return type of a gcc2
1564 builtin and then its argument prototype would still apply. */
1565 char tputs();
1567 int main() {
1568 tputs()
1569 ; return 0; }
1571 if { (eval echo configure:1572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1572 rm -rf conftest*
1573 eval "ac_cv_lib_$ac_lib_var=yes"
1574 else
1575 echo "configure: failed program was:" >&5
1576 cat conftest.$ac_ext >&5
1577 rm -rf conftest*
1578 eval "ac_cv_lib_$ac_lib_var=no"
1580 rm -f conftest*
1581 LIBS="$ac_save_LIBS"
1584 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1585 echo "$ac_t""yes" 1>&6
1586 TERMLIBS="${TERMLIBS} -l${termlib}"; break
1587 else
1588 echo "$ac_t""no" 1>&6
1591 done
1594 if test "x$termlib" = xncurses; then
1595 for ac_hdr in ncurses/termcap.h
1597 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1598 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1599 echo "configure:1600: checking for $ac_hdr" >&5
1600 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1601 echo $ac_n "(cached) $ac_c" 1>&6
1602 else
1603 cat > conftest.$ac_ext <<EOF
1604 #line 1605 "configure"
1605 #include "confdefs.h"
1606 #include <$ac_hdr>
1608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1609 { (eval echo configure:1610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1610 ac_err=`grep -v '^ *+' conftest.out`
1611 if test -z "$ac_err"; then
1612 rm -rf conftest*
1613 eval "ac_cv_header_$ac_safe=yes"
1614 else
1615 echo "$ac_err" >&5
1616 echo "configure: failed program was:" >&5
1617 cat conftest.$ac_ext >&5
1618 rm -rf conftest*
1619 eval "ac_cv_header_$ac_safe=no"
1621 rm -f conftest*
1623 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1624 echo "$ac_t""yes" 1>&6
1625 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1626 cat >> confdefs.h <<EOF
1627 #define $ac_tr_hdr 1
1630 else
1631 echo "$ac_t""no" 1>&6
1633 done
1636 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1637 echo "configure:1638: checking for ANSI C header files" >&5
1638 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1639 echo $ac_n "(cached) $ac_c" 1>&6
1640 else
1641 cat > conftest.$ac_ext <<EOF
1642 #line 1643 "configure"
1643 #include "confdefs.h"
1644 #include <stdlib.h>
1645 #include <stdarg.h>
1646 #include <string.h>
1647 #include <float.h>
1649 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1650 { (eval echo configure:1651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1651 ac_err=`grep -v '^ *+' conftest.out`
1652 if test -z "$ac_err"; then
1653 rm -rf conftest*
1654 ac_cv_header_stdc=yes
1655 else
1656 echo "$ac_err" >&5
1657 echo "configure: failed program was:" >&5
1658 cat conftest.$ac_ext >&5
1659 rm -rf conftest*
1660 ac_cv_header_stdc=no
1662 rm -f conftest*
1664 if test $ac_cv_header_stdc = yes; then
1665 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1666 cat > conftest.$ac_ext <<EOF
1667 #line 1668 "configure"
1668 #include "confdefs.h"
1669 #include <string.h>
1671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1672 egrep "memchr" >/dev/null 2>&1; then
1674 else
1675 rm -rf conftest*
1676 ac_cv_header_stdc=no
1678 rm -f conftest*
1682 if test $ac_cv_header_stdc = yes; then
1683 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1684 cat > conftest.$ac_ext <<EOF
1685 #line 1686 "configure"
1686 #include "confdefs.h"
1687 #include <stdlib.h>
1689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1690 egrep "free" >/dev/null 2>&1; then
1692 else
1693 rm -rf conftest*
1694 ac_cv_header_stdc=no
1696 rm -f conftest*
1700 if test $ac_cv_header_stdc = yes; then
1701 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1702 if test "$cross_compiling" = yes; then
1704 else
1705 cat > conftest.$ac_ext <<EOF
1706 #line 1707 "configure"
1707 #include "confdefs.h"
1708 #include <ctype.h>
1709 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1710 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1711 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1712 int main () { int i; for (i = 0; i < 256; i++)
1713 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1714 exit (0); }
1717 if { (eval echo configure:1718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1718 then
1720 else
1721 echo "configure: failed program was:" >&5
1722 cat conftest.$ac_ext >&5
1723 rm -fr conftest*
1724 ac_cv_header_stdc=no
1726 rm -fr conftest*
1732 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1733 if test $ac_cv_header_stdc = yes; then
1734 cat >> confdefs.h <<\EOF
1735 #define STDC_HEADERS 1
1740 for ac_hdr in fcntl.h pwd.h string.h strings.h termcap.h termio.h \
1741 termios.h unistd.h \
1742 sys/fcntl.h sys/file.h sys/ptem.h sys/time.h sys/ttold.h sys/wait.h
1744 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1745 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1746 echo "configure:1747: checking for $ac_hdr" >&5
1747 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1748 echo $ac_n "(cached) $ac_c" 1>&6
1749 else
1750 cat > conftest.$ac_ext <<EOF
1751 #line 1752 "configure"
1752 #include "confdefs.h"
1753 #include <$ac_hdr>
1755 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1756 { (eval echo configure:1757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1757 ac_err=`grep -v '^ *+' conftest.out`
1758 if test -z "$ac_err"; then
1759 rm -rf conftest*
1760 eval "ac_cv_header_$ac_safe=yes"
1761 else
1762 echo "$ac_err" >&5
1763 echo "configure: failed program was:" >&5
1764 cat conftest.$ac_ext >&5
1765 rm -rf conftest*
1766 eval "ac_cv_header_$ac_safe=no"
1768 rm -f conftest*
1770 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1771 echo "$ac_t""yes" 1>&6
1772 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1773 cat >> confdefs.h <<EOF
1774 #define $ac_tr_hdr 1
1777 else
1778 echo "$ac_t""no" 1>&6
1780 done
1783 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1784 echo "configure:1785: checking for off_t" >&5
1785 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1786 echo $ac_n "(cached) $ac_c" 1>&6
1787 else
1788 cat > conftest.$ac_ext <<EOF
1789 #line 1790 "configure"
1790 #include "confdefs.h"
1791 #include <sys/types.h>
1792 #if STDC_HEADERS
1793 #include <stdlib.h>
1794 #include <stddef.h>
1795 #endif
1797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1798 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1799 rm -rf conftest*
1800 ac_cv_type_off_t=yes
1801 else
1802 rm -rf conftest*
1803 ac_cv_type_off_t=no
1805 rm -f conftest*
1808 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1809 if test $ac_cv_type_off_t = no; then
1810 cat >> confdefs.h <<\EOF
1811 #define off_t long
1816 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1817 echo "configure:1818: checking return type of signal handlers" >&5
1818 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1819 echo $ac_n "(cached) $ac_c" 1>&6
1820 else
1821 cat > conftest.$ac_ext <<EOF
1822 #line 1823 "configure"
1823 #include "confdefs.h"
1824 #include <sys/types.h>
1825 #include <signal.h>
1826 #ifdef signal
1827 #undef signal
1828 #endif
1829 #ifdef __cplusplus
1830 extern "C" void (*signal (int, void (*)(int)))(int);
1831 #else
1832 void (*signal ()) ();
1833 #endif
1835 int main() {
1836 int i;
1837 ; return 0; }
1839 if { (eval echo configure:1840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1840 rm -rf conftest*
1841 ac_cv_type_signal=void
1842 else
1843 echo "configure: failed program was:" >&5
1844 cat conftest.$ac_ext >&5
1845 rm -rf conftest*
1846 ac_cv_type_signal=int
1848 rm -f conftest*
1851 echo "$ac_t""$ac_cv_type_signal" 1>&6
1852 cat >> confdefs.h <<EOF
1853 #define RETSIGTYPE $ac_cv_type_signal
1857 echo $ac_n "checking for working const""... $ac_c" 1>&6
1858 echo "configure:1859: checking for working const" >&5
1859 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1860 echo $ac_n "(cached) $ac_c" 1>&6
1861 else
1862 cat > conftest.$ac_ext <<EOF
1863 #line 1864 "configure"
1864 #include "confdefs.h"
1866 int main() {
1868 /* Ultrix mips cc rejects this. */
1869 typedef int charset[2]; const charset x;
1870 /* SunOS 4.1.1 cc rejects this. */
1871 char const *const *ccp;
1872 char **p;
1873 /* NEC SVR4.0.2 mips cc rejects this. */
1874 struct point {int x, y;};
1875 static struct point const zero = {0,0};
1876 /* AIX XL C 1.02.0.0 rejects this.
1877 It does not let you subtract one const X* pointer from another in an arm
1878 of an if-expression whose if-part is not a constant expression */
1879 const char *g = "string";
1880 ccp = &g + (g ? g-g : 0);
1881 /* HPUX 7.0 cc rejects these. */
1882 ++ccp;
1883 p = (char**) ccp;
1884 ccp = (char const *const *) p;
1885 { /* SCO 3.2v4 cc rejects this. */
1886 char *t;
1887 char const *s = 0 ? (char *) 0 : (char const *) 0;
1889 *t++ = 0;
1891 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1892 int x[] = {25, 17};
1893 const int *foo = &x[0];
1894 ++foo;
1896 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1897 typedef const int *iptr;
1898 iptr p = 0;
1899 ++p;
1901 { /* AIX XL C 1.02.0.0 rejects this saying
1902 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1903 struct s { int j; const int *ap[3]; };
1904 struct s *b; b->j = 5;
1906 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1907 const int foo = 10;
1910 ; return 0; }
1912 if { (eval echo configure:1913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1913 rm -rf conftest*
1914 ac_cv_c_const=yes
1915 else
1916 echo "configure: failed program was:" >&5
1917 cat conftest.$ac_ext >&5
1918 rm -rf conftest*
1919 ac_cv_c_const=no
1921 rm -f conftest*
1924 echo "$ac_t""$ac_cv_c_const" 1>&6
1925 if test $ac_cv_c_const = no; then
1926 cat >> confdefs.h <<\EOF
1927 #define const
1932 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1933 echo "configure:1934: checking whether struct tm is in sys/time.h or time.h" >&5
1934 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1935 echo $ac_n "(cached) $ac_c" 1>&6
1936 else
1937 cat > conftest.$ac_ext <<EOF
1938 #line 1939 "configure"
1939 #include "confdefs.h"
1940 #include <sys/types.h>
1941 #include <time.h>
1942 int main() {
1943 struct tm *tp; tp->tm_sec;
1944 ; return 0; }
1946 if { (eval echo configure:1947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1947 rm -rf conftest*
1948 ac_cv_struct_tm=time.h
1949 else
1950 echo "configure: failed program was:" >&5
1951 cat conftest.$ac_ext >&5
1952 rm -rf conftest*
1953 ac_cv_struct_tm=sys/time.h
1955 rm -f conftest*
1958 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1959 if test $ac_cv_struct_tm = sys/time.h; then
1960 cat >> confdefs.h <<\EOF
1961 #define TM_IN_SYS_TIME 1
1967 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1968 # for constant arguments. Useless!
1969 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1970 echo "configure:1971: checking for working alloca.h" >&5
1971 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1972 echo $ac_n "(cached) $ac_c" 1>&6
1973 else
1974 cat > conftest.$ac_ext <<EOF
1975 #line 1976 "configure"
1976 #include "confdefs.h"
1977 #include <alloca.h>
1978 int main() {
1979 char *p = alloca(2 * sizeof(int));
1980 ; return 0; }
1982 if { (eval echo configure:1983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1983 rm -rf conftest*
1984 ac_cv_header_alloca_h=yes
1985 else
1986 echo "configure: failed program was:" >&5
1987 cat conftest.$ac_ext >&5
1988 rm -rf conftest*
1989 ac_cv_header_alloca_h=no
1991 rm -f conftest*
1994 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1995 if test $ac_cv_header_alloca_h = yes; then
1996 cat >> confdefs.h <<\EOF
1997 #define HAVE_ALLOCA_H 1
2002 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2003 echo "configure:2004: checking for alloca" >&5
2004 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2005 echo $ac_n "(cached) $ac_c" 1>&6
2006 else
2007 cat > conftest.$ac_ext <<EOF
2008 #line 2009 "configure"
2009 #include "confdefs.h"
2011 #ifdef __GNUC__
2012 # define alloca __builtin_alloca
2013 #else
2014 # if HAVE_ALLOCA_H
2015 # include <alloca.h>
2016 # else
2017 # ifdef _AIX
2018 #pragma alloca
2019 # else
2020 # ifndef alloca /* predefined by HP cc +Olibcalls */
2021 char *alloca ();
2022 # endif
2023 # endif
2024 # endif
2025 #endif
2027 int main() {
2028 char *p = (char *) alloca(1);
2029 ; return 0; }
2031 if { (eval echo configure:2032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2032 rm -rf conftest*
2033 ac_cv_func_alloca_works=yes
2034 else
2035 echo "configure: failed program was:" >&5
2036 cat conftest.$ac_ext >&5
2037 rm -rf conftest*
2038 ac_cv_func_alloca_works=no
2040 rm -f conftest*
2043 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2044 if test $ac_cv_func_alloca_works = yes; then
2045 cat >> confdefs.h <<\EOF
2046 #define HAVE_ALLOCA 1
2051 if test $ac_cv_func_alloca_works = no; then
2052 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2053 # that cause trouble. Some versions do not even contain alloca or
2054 # contain a buggy version. If you still want to use their alloca,
2055 # use ar to extract alloca.o from them instead of compiling alloca.c.
2056 ALLOCA=alloca.o
2057 cat >> confdefs.h <<\EOF
2058 #define C_ALLOCA 1
2062 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2063 echo "configure:2064: checking whether alloca needs Cray hooks" >&5
2064 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2065 echo $ac_n "(cached) $ac_c" 1>&6
2066 else
2067 cat > conftest.$ac_ext <<EOF
2068 #line 2069 "configure"
2069 #include "confdefs.h"
2070 #if defined(CRAY) && ! defined(CRAY2)
2071 webecray
2072 #else
2073 wenotbecray
2074 #endif
2077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2078 egrep "webecray" >/dev/null 2>&1; then
2079 rm -rf conftest*
2080 ac_cv_os_cray=yes
2081 else
2082 rm -rf conftest*
2083 ac_cv_os_cray=no
2085 rm -f conftest*
2089 echo "$ac_t""$ac_cv_os_cray" 1>&6
2090 if test $ac_cv_os_cray = yes; then
2091 for ac_func in _getb67 GETB67 getb67; do
2092 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2093 echo "configure:2094: checking for $ac_func" >&5
2094 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2095 echo $ac_n "(cached) $ac_c" 1>&6
2096 else
2097 cat > conftest.$ac_ext <<EOF
2098 #line 2099 "configure"
2099 #include "confdefs.h"
2100 /* System header to define __stub macros and hopefully few prototypes,
2101 which can conflict with char $ac_func(); below. */
2102 #include <assert.h>
2103 /* Override any gcc2 internal prototype to avoid an error. */
2104 /* We use char because int might match the return type of a gcc2
2105 builtin and then its argument prototype would still apply. */
2106 char $ac_func();
2108 int main() {
2110 /* The GNU C library defines this for functions which it implements
2111 to always fail with ENOSYS. Some functions are actually named
2112 something starting with __ and the normal name is an alias. */
2113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2114 choke me
2115 #else
2116 $ac_func();
2117 #endif
2119 ; return 0; }
2121 if { (eval echo configure:2122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2122 rm -rf conftest*
2123 eval "ac_cv_func_$ac_func=yes"
2124 else
2125 echo "configure: failed program was:" >&5
2126 cat conftest.$ac_ext >&5
2127 rm -rf conftest*
2128 eval "ac_cv_func_$ac_func=no"
2130 rm -f conftest*
2133 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2134 echo "$ac_t""yes" 1>&6
2135 cat >> confdefs.h <<EOF
2136 #define CRAY_STACKSEG_END $ac_func
2139 break
2140 else
2141 echo "$ac_t""no" 1>&6
2144 done
2147 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2148 echo "configure:2149: checking stack direction for C alloca" >&5
2149 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2150 echo $ac_n "(cached) $ac_c" 1>&6
2151 else
2152 if test "$cross_compiling" = yes; then
2153 ac_cv_c_stack_direction=0
2154 else
2155 cat > conftest.$ac_ext <<EOF
2156 #line 2157 "configure"
2157 #include "confdefs.h"
2158 find_stack_direction ()
2160 static char *addr = 0;
2161 auto char dummy;
2162 if (addr == 0)
2164 addr = &dummy;
2165 return find_stack_direction ();
2167 else
2168 return (&dummy > addr) ? 1 : -1;
2170 main ()
2172 exit (find_stack_direction() < 0);
2175 if { (eval echo configure:2176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2176 then
2177 ac_cv_c_stack_direction=1
2178 else
2179 echo "configure: failed program was:" >&5
2180 cat conftest.$ac_ext >&5
2181 rm -fr conftest*
2182 ac_cv_c_stack_direction=-1
2184 rm -fr conftest*
2189 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2190 cat >> confdefs.h <<EOF
2191 #define STACK_DIRECTION $ac_cv_c_stack_direction
2196 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2197 echo "configure:2198: checking for vprintf" >&5
2198 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2199 echo $ac_n "(cached) $ac_c" 1>&6
2200 else
2201 cat > conftest.$ac_ext <<EOF
2202 #line 2203 "configure"
2203 #include "confdefs.h"
2204 /* System header to define __stub macros and hopefully few prototypes,
2205 which can conflict with char vprintf(); below. */
2206 #include <assert.h>
2207 /* Override any gcc2 internal prototype to avoid an error. */
2208 /* We use char because int might match the return type of a gcc2
2209 builtin and then its argument prototype would still apply. */
2210 char vprintf();
2212 int main() {
2214 /* The GNU C library defines this for functions which it implements
2215 to always fail with ENOSYS. Some functions are actually named
2216 something starting with __ and the normal name is an alias. */
2217 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2218 choke me
2219 #else
2220 vprintf();
2221 #endif
2223 ; return 0; }
2225 if { (eval echo configure:2226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2226 rm -rf conftest*
2227 eval "ac_cv_func_vprintf=yes"
2228 else
2229 echo "configure: failed program was:" >&5
2230 cat conftest.$ac_ext >&5
2231 rm -rf conftest*
2232 eval "ac_cv_func_vprintf=no"
2234 rm -f conftest*
2237 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2238 echo "$ac_t""yes" 1>&6
2239 cat >> confdefs.h <<\EOF
2240 #define HAVE_VPRINTF 1
2243 else
2244 echo "$ac_t""no" 1>&6
2247 if test "$ac_cv_func_vprintf" != yes; then
2248 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2249 echo "configure:2250: checking for _doprnt" >&5
2250 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2251 echo $ac_n "(cached) $ac_c" 1>&6
2252 else
2253 cat > conftest.$ac_ext <<EOF
2254 #line 2255 "configure"
2255 #include "confdefs.h"
2256 /* System header to define __stub macros and hopefully few prototypes,
2257 which can conflict with char _doprnt(); below. */
2258 #include <assert.h>
2259 /* Override any gcc2 internal prototype to avoid an error. */
2260 /* We use char because int might match the return type of a gcc2
2261 builtin and then its argument prototype would still apply. */
2262 char _doprnt();
2264 int main() {
2266 /* The GNU C library defines this for functions which it implements
2267 to always fail with ENOSYS. Some functions are actually named
2268 something starting with __ and the normal name is an alias. */
2269 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2270 choke me
2271 #else
2272 _doprnt();
2273 #endif
2275 ; return 0; }
2277 if { (eval echo configure:2278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2278 rm -rf conftest*
2279 eval "ac_cv_func__doprnt=yes"
2280 else
2281 echo "configure: failed program was:" >&5
2282 cat conftest.$ac_ext >&5
2283 rm -rf conftest*
2284 eval "ac_cv_func__doprnt=no"
2286 rm -f conftest*
2289 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2290 echo "$ac_t""yes" 1>&6
2291 cat >> confdefs.h <<\EOF
2292 #define HAVE_DOPRNT 1
2295 else
2296 echo "$ac_t""no" 1>&6
2301 if test "$ac_cv_c_cross" = no; then
2302 echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6
2303 echo "configure:2304: checking whether setvbuf arguments are reversed" >&5
2304 if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then
2305 echo $ac_n "(cached) $ac_c" 1>&6
2306 else
2307 if test "$cross_compiling" = yes; then
2308 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2309 else
2310 cat > conftest.$ac_ext <<EOF
2311 #line 2312 "configure"
2312 #include "confdefs.h"
2313 #include <stdio.h>
2314 /* If setvbuf has the reversed format, exit 0. */
2315 main () {
2316 /* This call has the arguments reversed.
2317 A reversed system may check and see that the address of main
2318 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
2319 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
2320 exit(1);
2321 putc('\r', stdout);
2322 exit(0); /* Non-reversed systems segv here. */
2325 if { (eval echo configure:2326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2326 then
2327 ac_cv_func_setvbuf_reversed=yes
2328 else
2329 echo "configure: failed program was:" >&5
2330 cat conftest.$ac_ext >&5
2331 rm -fr conftest*
2332 ac_cv_func_setvbuf_reversed=no
2334 rm -fr conftest*
2337 rm -f core core.* *.core
2340 echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6
2341 if test $ac_cv_func_setvbuf_reversed = yes; then
2342 cat >> confdefs.h <<\EOF
2343 #define SETVBUF_REVERSED 1
2349 for ac_func in setvbuf getcwd memset bzero strchr strcasecmp \
2350 sigprocmask sigsetmask
2352 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2353 echo "configure:2354: checking for $ac_func" >&5
2354 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2355 echo $ac_n "(cached) $ac_c" 1>&6
2356 else
2357 cat > conftest.$ac_ext <<EOF
2358 #line 2359 "configure"
2359 #include "confdefs.h"
2360 /* System header to define __stub macros and hopefully few prototypes,
2361 which can conflict with char $ac_func(); below. */
2362 #include <assert.h>
2363 /* Override any gcc2 internal prototype to avoid an error. */
2364 /* We use char because int might match the return type of a gcc2
2365 builtin and then its argument prototype would still apply. */
2366 char $ac_func();
2368 int main() {
2370 /* The GNU C library defines this for functions which it implements
2371 to always fail with ENOSYS. Some functions are actually named
2372 something starting with __ and the normal name is an alias. */
2373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2374 choke me
2375 #else
2376 $ac_func();
2377 #endif
2379 ; return 0; }
2381 if { (eval echo configure:2382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2382 rm -rf conftest*
2383 eval "ac_cv_func_$ac_func=yes"
2384 else
2385 echo "configure: failed program was:" >&5
2386 cat conftest.$ac_ext >&5
2387 rm -rf conftest*
2388 eval "ac_cv_func_$ac_func=no"
2390 rm -f conftest*
2393 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2394 echo "$ac_t""yes" 1>&6
2395 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2396 cat >> confdefs.h <<EOF
2397 #define $ac_tr_func 1
2400 else
2401 echo "$ac_t""no" 1>&6
2403 done
2405 for ac_func in memcpy memmove strdup strerror
2407 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2408 echo "configure:2409: checking for $ac_func" >&5
2409 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2410 echo $ac_n "(cached) $ac_c" 1>&6
2411 else
2412 cat > conftest.$ac_ext <<EOF
2413 #line 2414 "configure"
2414 #include "confdefs.h"
2415 /* System header to define __stub macros and hopefully few prototypes,
2416 which can conflict with char $ac_func(); below. */
2417 #include <assert.h>
2418 /* Override any gcc2 internal prototype to avoid an error. */
2419 /* We use char because int might match the return type of a gcc2
2420 builtin and then its argument prototype would still apply. */
2421 char $ac_func();
2423 int main() {
2425 /* The GNU C library defines this for functions which it implements
2426 to always fail with ENOSYS. Some functions are actually named
2427 something starting with __ and the normal name is an alias. */
2428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2429 choke me
2430 #else
2431 $ac_func();
2432 #endif
2434 ; return 0; }
2436 if { (eval echo configure:2437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2437 rm -rf conftest*
2438 eval "ac_cv_func_$ac_func=yes"
2439 else
2440 echo "configure: failed program was:" >&5
2441 cat conftest.$ac_ext >&5
2442 rm -rf conftest*
2443 eval "ac_cv_func_$ac_func=no"
2445 rm -f conftest*
2448 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2449 echo "$ac_t""yes" 1>&6
2450 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2451 cat >> confdefs.h <<EOF
2452 #define $ac_tr_func 1
2455 else
2456 echo "$ac_t""no" 1>&6
2457 LIBOBJS="$LIBOBJS ${ac_func}.o"
2459 done
2463 ALL_LINGUAS="de fr"
2464 echo $ac_n "checking for inline""... $ac_c" 1>&6
2465 echo "configure:2466: checking for inline" >&5
2466 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2467 echo $ac_n "(cached) $ac_c" 1>&6
2468 else
2469 ac_cv_c_inline=no
2470 for ac_kw in inline __inline__ __inline; do
2471 cat > conftest.$ac_ext <<EOF
2472 #line 2473 "configure"
2473 #include "confdefs.h"
2475 int main() {
2476 } $ac_kw foo() {
2477 ; return 0; }
2479 if { (eval echo configure:2480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2480 rm -rf conftest*
2481 ac_cv_c_inline=$ac_kw; break
2482 else
2483 echo "configure: failed program was:" >&5
2484 cat conftest.$ac_ext >&5
2486 rm -f conftest*
2487 done
2491 echo "$ac_t""$ac_cv_c_inline" 1>&6
2492 case "$ac_cv_c_inline" in
2493 inline | yes) ;;
2494 no) cat >> confdefs.h <<\EOF
2495 #define inline
2498 *) cat >> confdefs.h <<EOF
2499 #define inline $ac_cv_c_inline
2502 esac
2504 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2505 echo "configure:2506: checking for size_t" >&5
2506 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2507 echo $ac_n "(cached) $ac_c" 1>&6
2508 else
2509 cat > conftest.$ac_ext <<EOF
2510 #line 2511 "configure"
2511 #include "confdefs.h"
2512 #include <sys/types.h>
2513 #if STDC_HEADERS
2514 #include <stdlib.h>
2515 #include <stddef.h>
2516 #endif
2518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2519 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2520 rm -rf conftest*
2521 ac_cv_type_size_t=yes
2522 else
2523 rm -rf conftest*
2524 ac_cv_type_size_t=no
2526 rm -f conftest*
2529 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2530 if test $ac_cv_type_size_t = no; then
2531 cat >> confdefs.h <<\EOF
2532 #define size_t unsigned
2537 for ac_hdr in unistd.h
2539 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2540 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2541 echo "configure:2542: checking for $ac_hdr" >&5
2542 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2543 echo $ac_n "(cached) $ac_c" 1>&6
2544 else
2545 cat > conftest.$ac_ext <<EOF
2546 #line 2547 "configure"
2547 #include "confdefs.h"
2548 #include <$ac_hdr>
2550 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2551 { (eval echo configure:2552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2552 ac_err=`grep -v '^ *+' conftest.out`
2553 if test -z "$ac_err"; then
2554 rm -rf conftest*
2555 eval "ac_cv_header_$ac_safe=yes"
2556 else
2557 echo "$ac_err" >&5
2558 echo "configure: failed program was:" >&5
2559 cat conftest.$ac_ext >&5
2560 rm -rf conftest*
2561 eval "ac_cv_header_$ac_safe=no"
2563 rm -f conftest*
2565 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2566 echo "$ac_t""yes" 1>&6
2567 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2568 cat >> confdefs.h <<EOF
2569 #define $ac_tr_hdr 1
2572 else
2573 echo "$ac_t""no" 1>&6
2575 done
2577 for ac_func in getpagesize
2579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2580 echo "configure:2581: checking for $ac_func" >&5
2581 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2582 echo $ac_n "(cached) $ac_c" 1>&6
2583 else
2584 cat > conftest.$ac_ext <<EOF
2585 #line 2586 "configure"
2586 #include "confdefs.h"
2587 /* System header to define __stub macros and hopefully few prototypes,
2588 which can conflict with char $ac_func(); below. */
2589 #include <assert.h>
2590 /* Override any gcc2 internal prototype to avoid an error. */
2591 /* We use char because int might match the return type of a gcc2
2592 builtin and then its argument prototype would still apply. */
2593 char $ac_func();
2595 int main() {
2597 /* The GNU C library defines this for functions which it implements
2598 to always fail with ENOSYS. Some functions are actually named
2599 something starting with __ and the normal name is an alias. */
2600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2601 choke me
2602 #else
2603 $ac_func();
2604 #endif
2606 ; return 0; }
2608 if { (eval echo configure:2609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2609 rm -rf conftest*
2610 eval "ac_cv_func_$ac_func=yes"
2611 else
2612 echo "configure: failed program was:" >&5
2613 cat conftest.$ac_ext >&5
2614 rm -rf conftest*
2615 eval "ac_cv_func_$ac_func=no"
2617 rm -f conftest*
2620 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2621 echo "$ac_t""yes" 1>&6
2622 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2623 cat >> confdefs.h <<EOF
2624 #define $ac_tr_func 1
2627 else
2628 echo "$ac_t""no" 1>&6
2630 done
2632 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2633 echo "configure:2634: checking for working mmap" >&5
2634 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2635 echo $ac_n "(cached) $ac_c" 1>&6
2636 else
2637 if test "$cross_compiling" = yes; then
2638 ac_cv_func_mmap_fixed_mapped=no
2639 else
2640 cat > conftest.$ac_ext <<EOF
2641 #line 2642 "configure"
2642 #include "confdefs.h"
2644 /* Thanks to Mike Haertel and Jim Avera for this test.
2645 Here is a matrix of mmap possibilities:
2646 mmap private not fixed
2647 mmap private fixed at somewhere currently unmapped
2648 mmap private fixed at somewhere already mapped
2649 mmap shared not fixed
2650 mmap shared fixed at somewhere currently unmapped
2651 mmap shared fixed at somewhere already mapped
2652 For private mappings, we should verify that changes cannot be read()
2653 back from the file, nor mmap's back from the file at a different
2654 address. (There have been systems where private was not correctly
2655 implemented like the infamous i386 svr4.0, and systems where the
2656 VM page cache was not coherent with the filesystem buffer cache
2657 like early versions of FreeBSD and possibly contemporary NetBSD.)
2658 For shared mappings, we should conversely verify that changes get
2659 propogated back to all the places they're supposed to be.
2661 Grep wants private fixed already mapped.
2662 The main things grep needs to know about mmap are:
2663 * does it exist and is it safe to write into the mmap'd area
2664 * how to use it (BSD variants) */
2665 #include <sys/types.h>
2666 #include <fcntl.h>
2667 #include <sys/mman.h>
2669 /* This mess was copied from the GNU getpagesize.h. */
2670 #ifndef HAVE_GETPAGESIZE
2671 # ifdef HAVE_UNISTD_H
2672 # include <unistd.h>
2673 # endif
2675 /* Assume that all systems that can run configure have sys/param.h. */
2676 # ifndef HAVE_SYS_PARAM_H
2677 # define HAVE_SYS_PARAM_H 1
2678 # endif
2680 # ifdef _SC_PAGESIZE
2681 # define getpagesize() sysconf(_SC_PAGESIZE)
2682 # else /* no _SC_PAGESIZE */
2683 # ifdef HAVE_SYS_PARAM_H
2684 # include <sys/param.h>
2685 # ifdef EXEC_PAGESIZE
2686 # define getpagesize() EXEC_PAGESIZE
2687 # else /* no EXEC_PAGESIZE */
2688 # ifdef NBPG
2689 # define getpagesize() NBPG * CLSIZE
2690 # ifndef CLSIZE
2691 # define CLSIZE 1
2692 # endif /* no CLSIZE */
2693 # else /* no NBPG */
2694 # ifdef NBPC
2695 # define getpagesize() NBPC
2696 # else /* no NBPC */
2697 # ifdef PAGESIZE
2698 # define getpagesize() PAGESIZE
2699 # endif /* PAGESIZE */
2700 # endif /* no NBPC */
2701 # endif /* no NBPG */
2702 # endif /* no EXEC_PAGESIZE */
2703 # else /* no HAVE_SYS_PARAM_H */
2704 # define getpagesize() 8192 /* punt totally */
2705 # endif /* no HAVE_SYS_PARAM_H */
2706 # endif /* no _SC_PAGESIZE */
2708 #endif /* no HAVE_GETPAGESIZE */
2710 #ifdef __cplusplus
2711 extern "C" { void *malloc(unsigned); }
2712 #else
2713 char *malloc();
2714 #endif
2717 main()
2719 char *data, *data2, *data3;
2720 int i, pagesize;
2721 int fd;
2723 pagesize = getpagesize();
2726 * First, make a file with some known garbage in it.
2728 data = malloc(pagesize);
2729 if (!data)
2730 exit(1);
2731 for (i = 0; i < pagesize; ++i)
2732 *(data + i) = rand();
2733 umask(0);
2734 fd = creat("conftestmmap", 0600);
2735 if (fd < 0)
2736 exit(1);
2737 if (write(fd, data, pagesize) != pagesize)
2738 exit(1);
2739 close(fd);
2742 * Next, try to mmap the file at a fixed address which
2743 * already has something else allocated at it. If we can,
2744 * also make sure that we see the same garbage.
2746 fd = open("conftestmmap", O_RDWR);
2747 if (fd < 0)
2748 exit(1);
2749 data2 = malloc(2 * pagesize);
2750 if (!data2)
2751 exit(1);
2752 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2753 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2754 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2755 exit(1);
2756 for (i = 0; i < pagesize; ++i)
2757 if (*(data + i) != *(data2 + i))
2758 exit(1);
2761 * Finally, make sure that changes to the mapped area
2762 * do not percolate back to the file as seen by read().
2763 * (This is a bug on some variants of i386 svr4.0.)
2765 for (i = 0; i < pagesize; ++i)
2766 *(data2 + i) = *(data2 + i) + 1;
2767 data3 = malloc(pagesize);
2768 if (!data3)
2769 exit(1);
2770 if (read(fd, data3, pagesize) != pagesize)
2771 exit(1);
2772 for (i = 0; i < pagesize; ++i)
2773 if (*(data + i) != *(data3 + i))
2774 exit(1);
2775 close(fd);
2776 unlink("conftestmmap");
2777 exit(0);
2781 if { (eval echo configure:2782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2782 then
2783 ac_cv_func_mmap_fixed_mapped=yes
2784 else
2785 echo "configure: failed program was:" >&5
2786 cat conftest.$ac_ext >&5
2787 rm -fr conftest*
2788 ac_cv_func_mmap_fixed_mapped=no
2790 rm -fr conftest*
2795 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2796 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2797 cat >> confdefs.h <<\EOF
2798 #define HAVE_MMAP 1
2804 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2805 unistd.h values.h sys/param.h
2807 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2808 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2809 echo "configure:2810: checking for $ac_hdr" >&5
2810 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2811 echo $ac_n "(cached) $ac_c" 1>&6
2812 else
2813 cat > conftest.$ac_ext <<EOF
2814 #line 2815 "configure"
2815 #include "confdefs.h"
2816 #include <$ac_hdr>
2818 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2819 { (eval echo configure:2820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2820 ac_err=`grep -v '^ *+' conftest.out`
2821 if test -z "$ac_err"; then
2822 rm -rf conftest*
2823 eval "ac_cv_header_$ac_safe=yes"
2824 else
2825 echo "$ac_err" >&5
2826 echo "configure: failed program was:" >&5
2827 cat conftest.$ac_ext >&5
2828 rm -rf conftest*
2829 eval "ac_cv_header_$ac_safe=no"
2831 rm -f conftest*
2833 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2834 echo "$ac_t""yes" 1>&6
2835 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2836 cat >> confdefs.h <<EOF
2837 #define $ac_tr_hdr 1
2840 else
2841 echo "$ac_t""no" 1>&6
2843 done
2845 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2846 __argz_count __argz_stringify __argz_next
2848 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2849 echo "configure:2850: checking for $ac_func" >&5
2850 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2851 echo $ac_n "(cached) $ac_c" 1>&6
2852 else
2853 cat > conftest.$ac_ext <<EOF
2854 #line 2855 "configure"
2855 #include "confdefs.h"
2856 /* System header to define __stub macros and hopefully few prototypes,
2857 which can conflict with char $ac_func(); below. */
2858 #include <assert.h>
2859 /* Override any gcc2 internal prototype to avoid an error. */
2860 /* We use char because int might match the return type of a gcc2
2861 builtin and then its argument prototype would still apply. */
2862 char $ac_func();
2864 int main() {
2866 /* The GNU C library defines this for functions which it implements
2867 to always fail with ENOSYS. Some functions are actually named
2868 something starting with __ and the normal name is an alias. */
2869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2870 choke me
2871 #else
2872 $ac_func();
2873 #endif
2875 ; return 0; }
2877 if { (eval echo configure:2878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2878 rm -rf conftest*
2879 eval "ac_cv_func_$ac_func=yes"
2880 else
2881 echo "configure: failed program was:" >&5
2882 cat conftest.$ac_ext >&5
2883 rm -rf conftest*
2884 eval "ac_cv_func_$ac_func=no"
2886 rm -f conftest*
2889 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2890 echo "$ac_t""yes" 1>&6
2891 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2892 cat >> confdefs.h <<EOF
2893 #define $ac_tr_func 1
2896 else
2897 echo "$ac_t""no" 1>&6
2899 done
2902 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2903 for ac_func in stpcpy
2905 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2906 echo "configure:2907: checking for $ac_func" >&5
2907 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2908 echo $ac_n "(cached) $ac_c" 1>&6
2909 else
2910 cat > conftest.$ac_ext <<EOF
2911 #line 2912 "configure"
2912 #include "confdefs.h"
2913 /* System header to define __stub macros and hopefully few prototypes,
2914 which can conflict with char $ac_func(); below. */
2915 #include <assert.h>
2916 /* Override any gcc2 internal prototype to avoid an error. */
2917 /* We use char because int might match the return type of a gcc2
2918 builtin and then its argument prototype would still apply. */
2919 char $ac_func();
2921 int main() {
2923 /* The GNU C library defines this for functions which it implements
2924 to always fail with ENOSYS. Some functions are actually named
2925 something starting with __ and the normal name is an alias. */
2926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2927 choke me
2928 #else
2929 $ac_func();
2930 #endif
2932 ; return 0; }
2934 if { (eval echo configure:2935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2935 rm -rf conftest*
2936 eval "ac_cv_func_$ac_func=yes"
2937 else
2938 echo "configure: failed program was:" >&5
2939 cat conftest.$ac_ext >&5
2940 rm -rf conftest*
2941 eval "ac_cv_func_$ac_func=no"
2943 rm -f conftest*
2946 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2947 echo "$ac_t""yes" 1>&6
2948 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2949 cat >> confdefs.h <<EOF
2950 #define $ac_tr_func 1
2953 else
2954 echo "$ac_t""no" 1>&6
2956 done
2959 if test "${ac_cv_func_stpcpy}" = "yes"; then
2960 cat >> confdefs.h <<\EOF
2961 #define HAVE_STPCPY 1
2966 if test $ac_cv_header_locale_h = yes; then
2967 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2968 echo "configure:2969: checking for LC_MESSAGES" >&5
2969 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2970 echo $ac_n "(cached) $ac_c" 1>&6
2971 else
2972 cat > conftest.$ac_ext <<EOF
2973 #line 2974 "configure"
2974 #include "confdefs.h"
2975 #include <locale.h>
2976 int main() {
2977 return LC_MESSAGES
2978 ; return 0; }
2980 if { (eval echo configure:2981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2981 rm -rf conftest*
2982 am_cv_val_LC_MESSAGES=yes
2983 else
2984 echo "configure: failed program was:" >&5
2985 cat conftest.$ac_ext >&5
2986 rm -rf conftest*
2987 am_cv_val_LC_MESSAGES=no
2989 rm -f conftest*
2992 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2993 if test $am_cv_val_LC_MESSAGES = yes; then
2994 cat >> confdefs.h <<\EOF
2995 #define HAVE_LC_MESSAGES 1
3000 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3001 echo "configure:3002: checking whether NLS is requested" >&5
3002 # Check whether --enable-nls or --disable-nls was given.
3003 if test "${enable_nls+set}" = set; then
3004 enableval="$enable_nls"
3005 USE_NLS=$enableval
3006 else
3007 USE_NLS=yes
3010 echo "$ac_t""$USE_NLS" 1>&6
3013 USE_INCLUDED_LIBINTL=no
3015 if test "$USE_NLS" = "yes"; then
3016 cat >> confdefs.h <<\EOF
3017 #define ENABLE_NLS 1
3020 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3021 echo "configure:3022: checking whether included gettext is requested" >&5
3022 # Check whether --with-included-gettext or --without-included-gettext was given.
3023 if test "${with_included_gettext+set}" = set; then
3024 withval="$with_included_gettext"
3025 nls_cv_force_use_gnu_gettext=$withval
3026 else
3027 nls_cv_force_use_gnu_gettext=no
3030 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3032 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3033 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3034 nls_cv_header_intl=
3035 nls_cv_header_libgt=
3036 CATOBJEXT=NONE
3038 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3039 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3040 echo "configure:3041: checking for libintl.h" >&5
3041 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3042 echo $ac_n "(cached) $ac_c" 1>&6
3043 else
3044 cat > conftest.$ac_ext <<EOF
3045 #line 3046 "configure"
3046 #include "confdefs.h"
3047 #include <libintl.h>
3049 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3050 { (eval echo configure:3051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3051 ac_err=`grep -v '^ *+' conftest.out`
3052 if test -z "$ac_err"; then
3053 rm -rf conftest*
3054 eval "ac_cv_header_$ac_safe=yes"
3055 else
3056 echo "$ac_err" >&5
3057 echo "configure: failed program was:" >&5
3058 cat conftest.$ac_ext >&5
3059 rm -rf conftest*
3060 eval "ac_cv_header_$ac_safe=no"
3062 rm -f conftest*
3064 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3065 echo "$ac_t""yes" 1>&6
3066 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3067 echo "configure:3068: checking for gettext in libc" >&5
3068 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3069 echo $ac_n "(cached) $ac_c" 1>&6
3070 else
3071 cat > conftest.$ac_ext <<EOF
3072 #line 3073 "configure"
3073 #include "confdefs.h"
3074 #include <libintl.h>
3075 int main() {
3076 return (int) gettext ("")
3077 ; return 0; }
3079 if { (eval echo configure:3080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3080 rm -rf conftest*
3081 gt_cv_func_gettext_libc=yes
3082 else
3083 echo "configure: failed program was:" >&5
3084 cat conftest.$ac_ext >&5
3085 rm -rf conftest*
3086 gt_cv_func_gettext_libc=no
3088 rm -f conftest*
3091 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3093 if test "$gt_cv_func_gettext_libc" != "yes"; then
3094 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3095 echo "configure:3096: checking for bindtextdomain in -lintl" >&5
3096 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3097 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3098 echo $ac_n "(cached) $ac_c" 1>&6
3099 else
3100 ac_save_LIBS="$LIBS"
3101 LIBS="-lintl $LIBS"
3102 cat > conftest.$ac_ext <<EOF
3103 #line 3104 "configure"
3104 #include "confdefs.h"
3105 /* Override any gcc2 internal prototype to avoid an error. */
3106 /* We use char because int might match the return type of a gcc2
3107 builtin and then its argument prototype would still apply. */
3108 char bindtextdomain();
3110 int main() {
3111 bindtextdomain()
3112 ; return 0; }
3114 if { (eval echo configure:3115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3115 rm -rf conftest*
3116 eval "ac_cv_lib_$ac_lib_var=yes"
3117 else
3118 echo "configure: failed program was:" >&5
3119 cat conftest.$ac_ext >&5
3120 rm -rf conftest*
3121 eval "ac_cv_lib_$ac_lib_var=no"
3123 rm -f conftest*
3124 LIBS="$ac_save_LIBS"
3127 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3128 echo "$ac_t""yes" 1>&6
3129 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3130 echo "configure:3131: checking for gettext in libintl" >&5
3131 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3132 echo $ac_n "(cached) $ac_c" 1>&6
3133 else
3134 cat > conftest.$ac_ext <<EOF
3135 #line 3136 "configure"
3136 #include "confdefs.h"
3138 int main() {
3139 return (int) gettext ("")
3140 ; return 0; }
3142 if { (eval echo configure:3143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3143 rm -rf conftest*
3144 gt_cv_func_gettext_libintl=yes
3145 else
3146 echo "configure: failed program was:" >&5
3147 cat conftest.$ac_ext >&5
3148 rm -rf conftest*
3149 gt_cv_func_gettext_libintl=no
3151 rm -f conftest*
3154 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3155 else
3156 echo "$ac_t""no" 1>&6
3161 if test "$gt_cv_func_gettext_libc" = "yes" \
3162 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3163 cat >> confdefs.h <<\EOF
3164 #define HAVE_GETTEXT 1
3167 # Extract the first word of "msgfmt", so it can be a program name with args.
3168 set dummy msgfmt; ac_word=$2
3169 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3170 echo "configure:3171: checking for $ac_word" >&5
3171 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3172 echo $ac_n "(cached) $ac_c" 1>&6
3173 else
3174 case "$MSGFMT" in
3176 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3179 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3180 for ac_dir in $PATH; do
3181 test -z "$ac_dir" && ac_dir=.
3182 if test -f $ac_dir/$ac_word; then
3183 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3184 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3185 break
3188 done
3189 IFS="$ac_save_ifs"
3190 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3192 esac
3194 MSGFMT="$ac_cv_path_MSGFMT"
3195 if test -n "$MSGFMT"; then
3196 echo "$ac_t""$MSGFMT" 1>&6
3197 else
3198 echo "$ac_t""no" 1>&6
3200 if test "$MSGFMT" != "no"; then
3201 for ac_func in dcgettext
3203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3204 echo "configure:3205: checking for $ac_func" >&5
3205 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3206 echo $ac_n "(cached) $ac_c" 1>&6
3207 else
3208 cat > conftest.$ac_ext <<EOF
3209 #line 3210 "configure"
3210 #include "confdefs.h"
3211 /* System header to define __stub macros and hopefully few prototypes,
3212 which can conflict with char $ac_func(); below. */
3213 #include <assert.h>
3214 /* Override any gcc2 internal prototype to avoid an error. */
3215 /* We use char because int might match the return type of a gcc2
3216 builtin and then its argument prototype would still apply. */
3217 char $ac_func();
3219 int main() {
3221 /* The GNU C library defines this for functions which it implements
3222 to always fail with ENOSYS. Some functions are actually named
3223 something starting with __ and the normal name is an alias. */
3224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3225 choke me
3226 #else
3227 $ac_func();
3228 #endif
3230 ; return 0; }
3232 if { (eval echo configure:3233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3233 rm -rf conftest*
3234 eval "ac_cv_func_$ac_func=yes"
3235 else
3236 echo "configure: failed program was:" >&5
3237 cat conftest.$ac_ext >&5
3238 rm -rf conftest*
3239 eval "ac_cv_func_$ac_func=no"
3241 rm -f conftest*
3244 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3245 echo "$ac_t""yes" 1>&6
3246 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3247 cat >> confdefs.h <<EOF
3248 #define $ac_tr_func 1
3251 else
3252 echo "$ac_t""no" 1>&6
3254 done
3256 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3257 set dummy gmsgfmt; ac_word=$2
3258 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3259 echo "configure:3260: checking for $ac_word" >&5
3260 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3261 echo $ac_n "(cached) $ac_c" 1>&6
3262 else
3263 case "$GMSGFMT" in
3265 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3267 ?:/*)
3268 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3271 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3272 for ac_dir in $PATH; do
3273 test -z "$ac_dir" && ac_dir=.
3274 if test -f $ac_dir/$ac_word; then
3275 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3276 break
3278 done
3279 IFS="$ac_save_ifs"
3280 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3282 esac
3284 GMSGFMT="$ac_cv_path_GMSGFMT"
3285 if test -n "$GMSGFMT"; then
3286 echo "$ac_t""$GMSGFMT" 1>&6
3287 else
3288 echo "$ac_t""no" 1>&6
3291 # Extract the first word of "xgettext", so it can be a program name with args.
3292 set dummy xgettext; ac_word=$2
3293 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3294 echo "configure:3295: checking for $ac_word" >&5
3295 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3296 echo $ac_n "(cached) $ac_c" 1>&6
3297 else
3298 case "$XGETTEXT" in
3300 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3304 for ac_dir in $PATH; do
3305 test -z "$ac_dir" && ac_dir=.
3306 if test -f $ac_dir/$ac_word; then
3307 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3308 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3309 break
3312 done
3313 IFS="$ac_save_ifs"
3314 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3316 esac
3318 XGETTEXT="$ac_cv_path_XGETTEXT"
3319 if test -n "$XGETTEXT"; then
3320 echo "$ac_t""$XGETTEXT" 1>&6
3321 else
3322 echo "$ac_t""no" 1>&6
3325 cat > conftest.$ac_ext <<EOF
3326 #line 3327 "configure"
3327 #include "confdefs.h"
3329 int main() {
3330 extern int _nl_msg_cat_cntr;
3331 return _nl_msg_cat_cntr
3332 ; return 0; }
3334 if { (eval echo configure:3335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3335 rm -rf conftest*
3336 CATOBJEXT=.gmo
3337 DATADIRNAME=share
3338 else
3339 echo "configure: failed program was:" >&5
3340 cat conftest.$ac_ext >&5
3341 rm -rf conftest*
3342 CATOBJEXT=.mo
3343 DATADIRNAME=lib
3345 rm -f conftest*
3346 INSTOBJEXT=.mo
3350 else
3351 echo "$ac_t""no" 1>&6
3355 if test "$CATOBJEXT" = "NONE"; then
3356 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
3357 echo "configure:3358: checking whether catgets can be used" >&5
3358 # Check whether --with-catgets or --without-catgets was given.
3359 if test "${with_catgets+set}" = set; then
3360 withval="$with_catgets"
3361 nls_cv_use_catgets=$withval
3362 else
3363 nls_cv_use_catgets=no
3366 echo "$ac_t""$nls_cv_use_catgets" 1>&6
3368 if test "$nls_cv_use_catgets" = "yes"; then
3369 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
3370 echo "configure:3371: checking for main in -li" >&5
3371 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
3372 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3373 echo $ac_n "(cached) $ac_c" 1>&6
3374 else
3375 ac_save_LIBS="$LIBS"
3376 LIBS="-li $LIBS"
3377 cat > conftest.$ac_ext <<EOF
3378 #line 3379 "configure"
3379 #include "confdefs.h"
3381 int main() {
3382 main()
3383 ; return 0; }
3385 if { (eval echo configure:3386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3386 rm -rf conftest*
3387 eval "ac_cv_lib_$ac_lib_var=yes"
3388 else
3389 echo "configure: failed program was:" >&5
3390 cat conftest.$ac_ext >&5
3391 rm -rf conftest*
3392 eval "ac_cv_lib_$ac_lib_var=no"
3394 rm -f conftest*
3395 LIBS="$ac_save_LIBS"
3398 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3399 echo "$ac_t""yes" 1>&6
3400 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3401 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3402 cat >> confdefs.h <<EOF
3403 #define $ac_tr_lib 1
3406 LIBS="-li $LIBS"
3408 else
3409 echo "$ac_t""no" 1>&6
3412 echo $ac_n "checking for catgets""... $ac_c" 1>&6
3413 echo "configure:3414: checking for catgets" >&5
3414 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
3415 echo $ac_n "(cached) $ac_c" 1>&6
3416 else
3417 cat > conftest.$ac_ext <<EOF
3418 #line 3419 "configure"
3419 #include "confdefs.h"
3420 /* System header to define __stub macros and hopefully few prototypes,
3421 which can conflict with char catgets(); below. */
3422 #include <assert.h>
3423 /* Override any gcc2 internal prototype to avoid an error. */
3424 /* We use char because int might match the return type of a gcc2
3425 builtin and then its argument prototype would still apply. */
3426 char catgets();
3428 int main() {
3430 /* The GNU C library defines this for functions which it implements
3431 to always fail with ENOSYS. Some functions are actually named
3432 something starting with __ and the normal name is an alias. */
3433 #if defined (__stub_catgets) || defined (__stub___catgets)
3434 choke me
3435 #else
3436 catgets();
3437 #endif
3439 ; return 0; }
3441 if { (eval echo configure:3442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3442 rm -rf conftest*
3443 eval "ac_cv_func_catgets=yes"
3444 else
3445 echo "configure: failed program was:" >&5
3446 cat conftest.$ac_ext >&5
3447 rm -rf conftest*
3448 eval "ac_cv_func_catgets=no"
3450 rm -f conftest*
3453 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
3454 echo "$ac_t""yes" 1>&6
3455 cat >> confdefs.h <<\EOF
3456 #define HAVE_CATGETS 1
3459 INTLOBJS="\$(CATOBJS)"
3460 # Extract the first word of "gencat", so it can be a program name with args.
3461 set dummy gencat; ac_word=$2
3462 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3463 echo "configure:3464: checking for $ac_word" >&5
3464 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
3465 echo $ac_n "(cached) $ac_c" 1>&6
3466 else
3467 case "$GENCAT" in
3469 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
3471 ?:/*)
3472 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
3475 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3476 for ac_dir in $PATH; do
3477 test -z "$ac_dir" && ac_dir=.
3478 if test -f $ac_dir/$ac_word; then
3479 ac_cv_path_GENCAT="$ac_dir/$ac_word"
3480 break
3482 done
3483 IFS="$ac_save_ifs"
3484 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
3486 esac
3488 GENCAT="$ac_cv_path_GENCAT"
3489 if test -n "$GENCAT"; then
3490 echo "$ac_t""$GENCAT" 1>&6
3491 else
3492 echo "$ac_t""no" 1>&6
3494 if test "$GENCAT" != "no"; then
3495 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3496 set dummy gmsgfmt; ac_word=$2
3497 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3498 echo "configure:3499: checking for $ac_word" >&5
3499 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3500 echo $ac_n "(cached) $ac_c" 1>&6
3501 else
3502 case "$GMSGFMT" in
3504 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3506 ?:/*)
3507 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3510 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3511 for ac_dir in $PATH; do
3512 test -z "$ac_dir" && ac_dir=.
3513 if test -f $ac_dir/$ac_word; then
3514 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3515 break
3517 done
3518 IFS="$ac_save_ifs"
3519 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3521 esac
3523 GMSGFMT="$ac_cv_path_GMSGFMT"
3524 if test -n "$GMSGFMT"; then
3525 echo "$ac_t""$GMSGFMT" 1>&6
3526 else
3527 echo "$ac_t""no" 1>&6
3530 if test "$GMSGFMT" = "no"; then
3531 # Extract the first word of "msgfmt", so it can be a program name with args.
3532 set dummy msgfmt; ac_word=$2
3533 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3534 echo "configure:3535: checking for $ac_word" >&5
3535 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3536 echo $ac_n "(cached) $ac_c" 1>&6
3537 else
3538 case "$GMSGFMT" in
3540 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3544 for ac_dir in $PATH; do
3545 test -z "$ac_dir" && ac_dir=.
3546 if test -f $ac_dir/$ac_word; then
3547 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3548 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3549 break
3552 done
3553 IFS="$ac_save_ifs"
3554 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3556 esac
3558 GMSGFMT="$ac_cv_path_GMSGFMT"
3559 if test -n "$GMSGFMT"; then
3560 echo "$ac_t""$GMSGFMT" 1>&6
3561 else
3562 echo "$ac_t""no" 1>&6
3566 # Extract the first word of "xgettext", so it can be a program name with args.
3567 set dummy xgettext; ac_word=$2
3568 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3569 echo "configure:3570: checking for $ac_word" >&5
3570 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3571 echo $ac_n "(cached) $ac_c" 1>&6
3572 else
3573 case "$XGETTEXT" in
3575 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3579 for ac_dir in $PATH; do
3580 test -z "$ac_dir" && ac_dir=.
3581 if test -f $ac_dir/$ac_word; then
3582 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3583 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3584 break
3587 done
3588 IFS="$ac_save_ifs"
3589 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3591 esac
3593 XGETTEXT="$ac_cv_path_XGETTEXT"
3594 if test -n "$XGETTEXT"; then
3595 echo "$ac_t""$XGETTEXT" 1>&6
3596 else
3597 echo "$ac_t""no" 1>&6
3600 USE_INCLUDED_LIBINTL=yes
3601 CATOBJEXT=.cat
3602 INSTOBJEXT=.cat
3603 DATADIRNAME=lib
3604 INTLDEPS='$(top_builddir)/intl/libintl.a'
3605 INTLLIBS=$INTLDEPS
3606 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3607 nls_cv_header_intl=intl/libintl.h
3608 nls_cv_header_libgt=intl/libgettext.h
3610 else
3611 echo "$ac_t""no" 1>&6
3617 if test "$CATOBJEXT" = "NONE"; then
3618 nls_cv_use_gnu_gettext=yes
3622 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3623 INTLOBJS="\$(GETTOBJS)"
3624 # Extract the first word of "msgfmt", so it can be a program name with args.
3625 set dummy msgfmt; ac_word=$2
3626 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3627 echo "configure:3628: checking for $ac_word" >&5
3628 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3629 echo $ac_n "(cached) $ac_c" 1>&6
3630 else
3631 case "$MSGFMT" in
3633 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3637 for ac_dir in $PATH; do
3638 test -z "$ac_dir" && ac_dir=.
3639 if test -f $ac_dir/$ac_word; then
3640 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3641 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3642 break
3645 done
3646 IFS="$ac_save_ifs"
3647 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3649 esac
3651 MSGFMT="$ac_cv_path_MSGFMT"
3652 if test -n "$MSGFMT"; then
3653 echo "$ac_t""$MSGFMT" 1>&6
3654 else
3655 echo "$ac_t""no" 1>&6
3658 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3659 set dummy gmsgfmt; ac_word=$2
3660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3661 echo "configure:3662: checking for $ac_word" >&5
3662 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3663 echo $ac_n "(cached) $ac_c" 1>&6
3664 else
3665 case "$GMSGFMT" in
3667 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3669 ?:/*)
3670 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3673 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3674 for ac_dir in $PATH; do
3675 test -z "$ac_dir" && ac_dir=.
3676 if test -f $ac_dir/$ac_word; then
3677 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3678 break
3680 done
3681 IFS="$ac_save_ifs"
3682 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3684 esac
3686 GMSGFMT="$ac_cv_path_GMSGFMT"
3687 if test -n "$GMSGFMT"; then
3688 echo "$ac_t""$GMSGFMT" 1>&6
3689 else
3690 echo "$ac_t""no" 1>&6
3693 # Extract the first word of "xgettext", so it can be a program name with args.
3694 set dummy xgettext; ac_word=$2
3695 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3696 echo "configure:3697: checking for $ac_word" >&5
3697 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3698 echo $ac_n "(cached) $ac_c" 1>&6
3699 else
3700 case "$XGETTEXT" in
3702 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3705 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3706 for ac_dir in $PATH; do
3707 test -z "$ac_dir" && ac_dir=.
3708 if test -f $ac_dir/$ac_word; then
3709 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3710 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3711 break
3714 done
3715 IFS="$ac_save_ifs"
3716 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3718 esac
3720 XGETTEXT="$ac_cv_path_XGETTEXT"
3721 if test -n "$XGETTEXT"; then
3722 echo "$ac_t""$XGETTEXT" 1>&6
3723 else
3724 echo "$ac_t""no" 1>&6
3728 USE_INCLUDED_LIBINTL=yes
3729 CATOBJEXT=.gmo
3730 INSTOBJEXT=.mo
3731 DATADIRNAME=share
3732 INTLDEPS='$(top_builddir)/intl/libintl.a'
3733 INTLLIBS=$INTLDEPS
3734 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3735 nls_cv_header_intl=intl/libintl.h
3736 nls_cv_header_libgt=intl/libgettext.h
3739 if test "$XGETTEXT" != ":"; then
3740 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3742 else
3743 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3744 XGETTEXT=":"
3748 # We need to process the po/ directory.
3749 POSUB=po
3750 else
3751 DATADIRNAME=share
3752 nls_cv_header_intl=intl/libintl.h
3753 nls_cv_header_libgt=intl/libgettext.h
3756 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3757 # because some of the sources are only built for this goal.
3758 if test "$PACKAGE" = gettext; then
3759 USE_NLS=yes
3760 USE_INCLUDED_LIBINTL=yes
3763 for lang in $ALL_LINGUAS; do
3764 GMOFILES="$GMOFILES $lang.gmo"
3765 POFILES="$POFILES $lang.po"
3766 done
3781 if test "x$CATOBJEXT" != "x"; then
3782 if test "x$ALL_LINGUAS" = "x"; then
3783 LINGUAS=
3784 else
3785 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3786 echo "configure:3787: checking for catalogs to be installed" >&5
3787 NEW_LINGUAS=
3788 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3789 case "$ALL_LINGUAS" in
3790 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3791 esac
3792 done
3793 LINGUAS=$NEW_LINGUAS
3794 echo "$ac_t""$LINGUAS" 1>&6
3797 if test -n "$LINGUAS"; then
3798 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3802 if test $ac_cv_header_locale_h = yes; then
3803 INCLUDE_LOCALE_H="#include <locale.h>"
3804 else
3805 INCLUDE_LOCALE_H="\
3806 /* The system does not provide the header <locale.h>. Take care yourself. */"
3810 test -d intl || mkdir intl
3811 if test "$CATOBJEXT" = ".cat"; then
3812 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3813 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3814 echo "configure:3815: checking for linux/version.h" >&5
3815 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3816 echo $ac_n "(cached) $ac_c" 1>&6
3817 else
3818 cat > conftest.$ac_ext <<EOF
3819 #line 3820 "configure"
3820 #include "confdefs.h"
3821 #include <linux/version.h>
3823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3824 { (eval echo configure:3825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3825 ac_err=`grep -v '^ *+' conftest.out`
3826 if test -z "$ac_err"; then
3827 rm -rf conftest*
3828 eval "ac_cv_header_$ac_safe=yes"
3829 else
3830 echo "$ac_err" >&5
3831 echo "configure: failed program was:" >&5
3832 cat conftest.$ac_ext >&5
3833 rm -rf conftest*
3834 eval "ac_cv_header_$ac_safe=no"
3836 rm -f conftest*
3838 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3839 echo "$ac_t""yes" 1>&6
3840 msgformat=linux
3841 else
3842 echo "$ac_t""no" 1>&6
3843 msgformat=xopen
3847 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
3849 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3850 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
3852 if test "$PACKAGE" = "gettext"; then
3853 GT_NO="#NO#"
3854 GT_YES=
3855 else
3856 GT_NO=
3857 GT_YES="#YES#"
3862 MKINSTALLDIRS=
3863 if test -n "$ac_aux_dir"; then
3864 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3866 if test -z "$MKINSTALLDIRS"; then
3867 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3874 test -d po || mkdir po
3875 if test "x$srcdir" != "x."; then
3876 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3877 posrcprefix="$srcdir/"
3878 else
3879 posrcprefix="../$srcdir/"
3881 else
3882 posrcprefix="../"
3884 rm -f po/POTFILES
3885 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3886 < $srcdir/po/POTFILES.in > po/POTFILES
3890 trap '' 1 2 15
3891 cat > confcache <<\EOF
3892 # This file is a shell script that caches the results of configure
3893 # tests run on this system so they can be shared between configure
3894 # scripts and configure runs. It is not useful on other systems.
3895 # If it contains results you don't want to keep, you may remove or edit it.
3897 # By default, configure uses ./config.cache as the cache file,
3898 # creating it if it does not exist already. You can give configure
3899 # the --cache-file=FILE option to use a different cache file; that is
3900 # what configure does when it calls configure scripts in
3901 # subdirectories, so they share the cache.
3902 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3903 # config.status only pays attention to the cache file if you give it the
3904 # --recheck option to rerun configure.
3907 # The following way of writing the cache mishandles newlines in values,
3908 # but we know of no workaround that is simple, portable, and efficient.
3909 # So, don't put newlines in cache variables' values.
3910 # Ultrix sh set writes to stderr and can't be redirected directly,
3911 # and sets the high bit in the cache file unless we assign to the vars.
3912 (set) 2>&1 |
3913 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
3914 *ac_space=\ *)
3915 # `set' does not quote correctly, so add quotes (double-quote substitution
3916 # turns \\\\ into \\, and sed turns \\ into \).
3917 sed -n \
3918 -e "s/'/'\\\\''/g" \
3919 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3922 # `set' quotes correctly as required by POSIX, so do not add quotes.
3923 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3925 esac >> confcache
3926 if cmp -s $cache_file confcache; then
3928 else
3929 if test -w $cache_file; then
3930 echo "updating cache $cache_file"
3931 cat confcache > $cache_file
3932 else
3933 echo "not updating unwritable cache $cache_file"
3936 rm -f confcache
3938 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3940 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3941 # Let make expand exec_prefix.
3942 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3944 # Any assignment to VPATH causes Sun make to only execute
3945 # the first set of double-colon rules, so remove it if not needed.
3946 # If there is a colon in the path, we need to keep it.
3947 if test "x$srcdir" = x.; then
3948 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3951 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3953 DEFS=-DHAVE_CONFIG_H
3955 # Without the "./", some shells look in PATH for config.status.
3956 : ${CONFIG_STATUS=./config.status}
3958 echo creating $CONFIG_STATUS
3959 rm -f $CONFIG_STATUS
3960 cat > $CONFIG_STATUS <<EOF
3961 #! /bin/sh
3962 # Generated automatically by configure.
3963 # Run this file to recreate the current configuration.
3964 # This directory was configured as follows,
3965 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3967 # $0 $ac_configure_args
3969 # Compiler output produced by configure, useful for debugging
3970 # configure, is in ./config.log if it exists.
3972 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3973 for ac_option
3975 case "\$ac_option" in
3976 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3977 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3978 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3979 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3980 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
3981 exit 0 ;;
3982 -help | --help | --hel | --he | --h)
3983 echo "\$ac_cs_usage"; exit 0 ;;
3984 *) echo "\$ac_cs_usage"; exit 1 ;;
3985 esac
3986 done
3988 ac_given_srcdir=$srcdir
3989 ac_given_INSTALL="$INSTALL"
3991 trap 'rm -fr `echo "Makefile \
3992 doc/Makefile \
3993 info/Makefile \
3994 intl/Makefile \
3995 lib/Makefile \
3996 makeinfo/Makefile \
3997 po/Makefile.in \
3998 util/Makefile \
3999 config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4001 cat >> $CONFIG_STATUS <<EOF
4003 # Protect against being on the right side of a sed subst in config.status.
4004 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4005 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4006 $ac_vpsub
4007 $extrasub
4008 s%@SHELL@%$SHELL%g
4009 s%@CFLAGS@%$CFLAGS%g
4010 s%@CPPFLAGS@%$CPPFLAGS%g
4011 s%@CXXFLAGS@%$CXXFLAGS%g
4012 s%@DEFS@%$DEFS%g
4013 s%@LDFLAGS@%$LDFLAGS%g
4014 s%@LIBS@%$LIBS%g
4015 s%@exec_prefix@%$exec_prefix%g
4016 s%@prefix@%$prefix%g
4017 s%@program_transform_name@%$program_transform_name%g
4018 s%@bindir@%$bindir%g
4019 s%@sbindir@%$sbindir%g
4020 s%@libexecdir@%$libexecdir%g
4021 s%@datadir@%$datadir%g
4022 s%@sysconfdir@%$sysconfdir%g
4023 s%@sharedstatedir@%$sharedstatedir%g
4024 s%@localstatedir@%$localstatedir%g
4025 s%@libdir@%$libdir%g
4026 s%@includedir@%$includedir%g
4027 s%@oldincludedir@%$oldincludedir%g
4028 s%@infodir@%$infodir%g
4029 s%@mandir@%$mandir%g
4030 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4031 s%@INSTALL_DATA@%$INSTALL_DATA%g
4032 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4033 s%@PACKAGE@%$PACKAGE%g
4034 s%@VERSION@%$VERSION%g
4035 s%@ACLOCAL@%$ACLOCAL%g
4036 s%@AUTOCONF@%$AUTOCONF%g
4037 s%@AUTOMAKE@%$AUTOMAKE%g
4038 s%@AUTOHEADER@%$AUTOHEADER%g
4039 s%@MAKEINFO@%$MAKEINFO%g
4040 s%@SET_MAKE@%$SET_MAKE%g
4041 s%@CC@%$CC%g
4042 s%@CPP@%$CPP%g
4043 s%@INSTALL@%$INSTALL%g
4044 s%@RANLIB@%$RANLIB%g
4045 s%@TEXCONFIG@%$TEXCONFIG%g
4046 s%@TEXMF@%$TEXMF%g
4047 s%@MAINT@%$MAINT%g
4048 s%@EXEEXT@%$EXEEXT%g
4049 s%@TERMLIBS@%$TERMLIBS%g
4050 s%@ALLOCA@%$ALLOCA%g
4051 s%@LIBOBJS@%$LIBOBJS%g
4052 s%@USE_NLS@%$USE_NLS%g
4053 s%@MSGFMT@%$MSGFMT%g
4054 s%@GMSGFMT@%$GMSGFMT%g
4055 s%@XGETTEXT@%$XGETTEXT%g
4056 s%@GENCAT@%$GENCAT%g
4057 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4058 s%@CATALOGS@%$CATALOGS%g
4059 s%@CATOBJEXT@%$CATOBJEXT%g
4060 s%@DATADIRNAME@%$DATADIRNAME%g
4061 s%@GMOFILES@%$GMOFILES%g
4062 s%@INSTOBJEXT@%$INSTOBJEXT%g
4063 s%@INTLDEPS@%$INTLDEPS%g
4064 s%@INTLLIBS@%$INTLLIBS%g
4065 s%@INTLOBJS@%$INTLOBJS%g
4066 s%@POFILES@%$POFILES%g
4067 s%@POSUB@%$POSUB%g
4068 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4069 s%@GT_NO@%$GT_NO%g
4070 s%@GT_YES@%$GT_YES%g
4071 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4072 s%@l@%$l%g
4074 CEOF
4077 cat >> $CONFIG_STATUS <<\EOF
4079 # Split the substitutions into bite-sized pieces for seds with
4080 # small command number limits, like on Digital OSF/1 and HP-UX.
4081 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4082 ac_file=1 # Number of current file.
4083 ac_beg=1 # First line for current file.
4084 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4085 ac_more_lines=:
4086 ac_sed_cmds=""
4087 while $ac_more_lines; do
4088 if test $ac_beg -gt 1; then
4089 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4090 else
4091 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4093 if test ! -s conftest.s$ac_file; then
4094 ac_more_lines=false
4095 rm -f conftest.s$ac_file
4096 else
4097 if test -z "$ac_sed_cmds"; then
4098 ac_sed_cmds="sed -f conftest.s$ac_file"
4099 else
4100 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4102 ac_file=`expr $ac_file + 1`
4103 ac_beg=$ac_end
4104 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4106 done
4107 if test -z "$ac_sed_cmds"; then
4108 ac_sed_cmds=cat
4112 cat >> $CONFIG_STATUS <<EOF
4114 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
4115 doc/Makefile \
4116 info/Makefile \
4117 intl/Makefile \
4118 lib/Makefile \
4119 makeinfo/Makefile \
4120 po/Makefile.in \
4121 util/Makefile \
4124 cat >> $CONFIG_STATUS <<\EOF
4125 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4126 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4127 case "$ac_file" in
4128 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4129 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4130 *) ac_file_in="${ac_file}.in" ;;
4131 esac
4133 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4135 # Remove last slash and all that follows it. Not all systems have dirname.
4136 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4137 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4138 # The file is in a subdirectory.
4139 test ! -d "$ac_dir" && mkdir "$ac_dir"
4140 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4141 # A "../" for each directory in $ac_dir_suffix.
4142 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4143 else
4144 ac_dir_suffix= ac_dots=
4147 case "$ac_given_srcdir" in
4148 .) srcdir=.
4149 if test -z "$ac_dots"; then top_srcdir=.
4150 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4151 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4152 *) # Relative path.
4153 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4154 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4155 esac
4157 case "$ac_given_INSTALL" in
4158 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4159 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4160 esac
4162 echo creating "$ac_file"
4163 rm -f "$ac_file"
4164 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4165 case "$ac_file" in
4166 *Makefile*) ac_comsub="1i\\
4167 # $configure_input" ;;
4168 *) ac_comsub= ;;
4169 esac
4171 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4172 sed -e "$ac_comsub
4173 s%@configure_input@%$configure_input%g
4174 s%@srcdir@%$srcdir%g
4175 s%@top_srcdir@%$top_srcdir%g
4176 s%@INSTALL@%$INSTALL%g
4177 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4178 fi; done
4179 rm -f conftest.s*
4181 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4182 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4184 # ac_d sets the value in "#define NAME VALUE" lines.
4185 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4186 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4187 ac_dC='\3'
4188 ac_dD='%g'
4189 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4190 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4191 ac_uB='\([ ]\)%\1#\2define\3'
4192 ac_uC=' '
4193 ac_uD='\4%g'
4194 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4195 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4196 ac_eB='$%\1#\2define\3'
4197 ac_eC=' '
4198 ac_eD='%g'
4200 if test "${CONFIG_HEADERS+set}" != set; then
4202 cat >> $CONFIG_STATUS <<EOF
4203 CONFIG_HEADERS="config.h"
4205 cat >> $CONFIG_STATUS <<\EOF
4207 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4208 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4209 case "$ac_file" in
4210 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4211 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4212 *) ac_file_in="${ac_file}.in" ;;
4213 esac
4215 echo creating $ac_file
4217 rm -f conftest.frag conftest.in conftest.out
4218 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4219 cat $ac_file_inputs > conftest.in
4223 # Transform confdefs.h into a sed script conftest.vals that substitutes
4224 # the proper values into config.h.in to produce config.h. And first:
4225 # Protect against being on the right side of a sed subst in config.status.
4226 # Protect against being in an unquoted here document in config.status.
4227 rm -f conftest.vals
4228 cat > conftest.hdr <<\EOF
4229 s/[\\&%]/\\&/g
4230 s%[\\$`]%\\&%g
4231 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4232 s%ac_d%ac_u%gp
4233 s%ac_u%ac_e%gp
4235 sed -n -f conftest.hdr confdefs.h > conftest.vals
4236 rm -f conftest.hdr
4238 # This sed command replaces #undef with comments. This is necessary, for
4239 # example, in the case of _POSIX_SOURCE, which is predefined and required
4240 # on some systems where configure will not decide to define it.
4241 cat >> conftest.vals <<\EOF
4242 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4245 # Break up conftest.vals because some shells have a limit on
4246 # the size of here documents, and old seds have small limits too.
4248 rm -f conftest.tail
4249 while :
4251 ac_lines=`grep -c . conftest.vals`
4252 # grep -c gives empty output for an empty file on some AIX systems.
4253 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4254 # Write a limited-size here document to conftest.frag.
4255 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4256 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4257 echo 'CEOF
4258 sed -f conftest.frag conftest.in > conftest.out
4259 rm -f conftest.in
4260 mv conftest.out conftest.in
4261 ' >> $CONFIG_STATUS
4262 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4263 rm -f conftest.vals
4264 mv conftest.tail conftest.vals
4265 done
4266 rm -f conftest.vals
4268 cat >> $CONFIG_STATUS <<\EOF
4269 rm -f conftest.frag conftest.h
4270 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4271 cat conftest.in >> conftest.h
4272 rm -f conftest.in
4273 if cmp -s $ac_file conftest.h 2>/dev/null; then
4274 echo "$ac_file is unchanged"
4275 rm -f conftest.h
4276 else
4277 # Remove last slash and all that follows it. Not all systems have dirname.
4278 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4279 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4280 # The file is in a subdirectory.
4281 test ! -d "$ac_dir" && mkdir "$ac_dir"
4283 rm -f $ac_file
4284 mv conftest.h $ac_file
4286 fi; done
4290 cat >> $CONFIG_STATUS <<EOF
4291 ac_sources="$nls_cv_header_libgt"
4292 ac_dests="$nls_cv_header_intl"
4295 cat >> $CONFIG_STATUS <<\EOF
4296 srcdir=$ac_given_srcdir
4297 while test -n "$ac_sources"; do
4298 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4299 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4301 echo "linking $srcdir/$ac_source to $ac_dest"
4303 if test ! -r $srcdir/$ac_source; then
4304 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4306 rm -f $ac_dest
4308 # Make relative symlinks.
4309 # Remove last slash and all that follows it. Not all systems have dirname.
4310 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
4311 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4312 # The dest file is in a subdirectory.
4313 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4314 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
4315 # A "../" for each directory in $ac_dest_dir_suffix.
4316 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
4317 else
4318 ac_dest_dir_suffix= ac_dots=
4321 case "$srcdir" in
4322 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4323 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4324 esac
4326 # Make a symlink if possible; otherwise try a hard link.
4327 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4328 ln $srcdir/$ac_source $ac_dest; then :
4329 else
4330 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4332 done
4334 cat >> $CONFIG_STATUS <<EOF
4338 cat >> $CONFIG_STATUS <<\EOF
4339 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4340 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in >po/Makefile
4341 exit 0
4343 chmod +x $CONFIG_STATUS
4344 rm -fr confdefs* $ac_clean_files
4345 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1