Debian Codegraph @

configure

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