/[MITgcm]/mitgcm.org/devel/buildweb/pkg/swish-e/configure
ViewVC logotype

Contents of /mitgcm.org/devel/buildweb/pkg/swish-e/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Fri Sep 20 19:47:29 2002 UTC (22 years, 10 months ago) by adcroft
Branch: Import, MAIN
CVS Tags: baseline, HEAD
Changes since 1.1: +0 -0 lines
Importing web-site building process.

1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 if expr a : '\(a\)' >/dev/null 2>&1; then
11 as_expr=expr
12 else
13 as_expr=false
14 fi
15
16
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
20
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 emulate sh
24 NULLCMD=:
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 set -o posix
27 fi
28
29 # NLS nuisances.
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 as_unset=unset
33 else
34 as_unset=false
35 fi
36
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG || test "${LANG+set}" != set; } ||
39 { LANG=C; export LANG; }
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42 { LC_ALL=C; export LC_ALL; }
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45 { LC_TIME=C; export LC_TIME; }
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE=C; export LC_CTYPE; }
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE=C; export LANGUAGE; }
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE=C; export LC_COLLATE; }
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC=C; export LC_NUMERIC; }
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES=C; export LC_MESSAGES; }
61
62
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
69 echo X/"$0" |
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
73 s/.*/./; q'`
74
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
87 chmod +x conftest.sh
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89 PATH_SEPARATOR=';'
90 else
91 PATH_SEPARATOR=:
92 fi
93 rm -f conftest.sh
94 fi
95
96
97 as_lineno_1=$LINENO
98 as_lineno_2=$LINENO
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
103 # relative or not.
104 case $0 in
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
108 do
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
113
114 ;;
115 esac
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
119 as_myself=$0
120 fi
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
124 fi
125 case $CONFIG_SHELL in
126 '')
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129 do
130 IFS=$as_save_IFS
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
133 case $as_dir in
134 /*)
135 if ("$as_dir/$as_base" -c '
136 as_lineno_1=$LINENO
137 as_lineno_2=$LINENO
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 CONFIG_SHELL=$as_dir/$as_base
142 export CONFIG_SHELL
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144 fi;;
145 esac
146 done
147 done
148 ;;
149 esac
150
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
160 sed '
161 N
162 s,$,-,
163 : loop
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165 t loop
166 s,-$,,
167 s,^['$as_cr_digits']*\n,,
168 ' >$as_me.lineno &&
169 chmod +x $as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
172
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
176 . ./$as_me.lineno
177 # Exit status is that of the last command.
178 exit
179 }
180
181
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
184 ' ECHO_T=' ' ;;
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
187 esac
188
189 if expr a : '\(a\)' >/dev/null 2>&1; then
190 as_expr=expr
191 else
192 as_expr=false
193 fi
194
195 rm -f conf$$ conf$$.exe conf$$.file
196 echo >conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe; then
201 # Don't use ln at all; we don't have any links
202 as_ln_s='cp -p'
203 else
204 as_ln_s='ln -s'
205 fi
206 elif ln conf$$.file conf$$ 2>/dev/null; then
207 as_ln_s=ln
208 else
209 as_ln_s='cp -p'
210 fi
211 rm -f conf$$ conf$$.exe conf$$.file
212
213 as_executable_p="test -f"
214
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220
221
222 # IFS
223 # We need space, tab and new line, in precisely that order.
224 as_nl='
225 '
226 IFS=" $as_nl"
227
228 # CDPATH.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230
231
232 # Name of the host.
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
237 exec 6>&1
238
239 #
240 # Initializations.
241 #
242 ac_default_prefix=/usr/local
243 cross_compiling=no
244 subdirs=
245 MFLAGS=
246 MAKEFLAGS=
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete. It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
253
254 # Identity of this package.
255 PACKAGE_NAME=
256 PACKAGE_TARNAME=
257 PACKAGE_VERSION=
258 PACKAGE_STRING=
259 PACKAGE_BUGREPORT=
260
261 ac_unique_file="src/swish.c"
262 # Factoring default headers for most tests.
263 ac_includes_default="\
264 #include <stdio.h>
265 #if HAVE_SYS_TYPES_H
266 # include <sys/types.h>
267 #endif
268 #if HAVE_SYS_STAT_H
269 # include <sys/stat.h>
270 #endif
271 #if STDC_HEADERS
272 # include <stdlib.h>
273 # include <stddef.h>
274 #else
275 # if HAVE_STDLIB_H
276 # include <stdlib.h>
277 # endif
278 #endif
279 #if HAVE_STRING_H
280 # if !STDC_HEADERS && HAVE_MEMORY_H
281 # include <memory.h>
282 # endif
283 # include <string.h>
284 #endif
285 #if HAVE_STRINGS_H
286 # include <strings.h>
287 #endif
288 #if HAVE_INTTYPES_H
289 # include <inttypes.h>
290 #else
291 # if HAVE_STDINT_H
292 # include <stdint.h>
293 # endif
294 #endif
295 #if HAVE_UNISTD_H
296 # include <unistd.h>
297 #endif"
298
299
300 # Initialize some variables set by options.
301 ac_init_help=
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
305 cache_file=/dev/null
306 exec_prefix=NONE
307 no_create=
308 no_recursion=
309 prefix=NONE
310 program_prefix=NONE
311 program_suffix=NONE
312 program_transform_name=s,x,x,
313 silent=
314 site=
315 srcdir=
316 verbose=
317 x_includes=NONE
318 x_libraries=NONE
319
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
337
338 ac_prev=
339 for ac_option
340 do
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
344 ac_prev=
345 continue
346 fi
347
348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
349
350 # Accept the important Cygnus configure options, so we can diagnose typos.
351
352 case $ac_option in
353
354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
355 ac_prev=bindir ;;
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357 bindir=$ac_optarg ;;
358
359 -build | --build | --buil | --bui | --bu)
360 ac_prev=build_alias ;;
361 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362 build_alias=$ac_optarg ;;
363
364 -cache-file | --cache-file | --cache-fil | --cache-fi \
365 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366 ac_prev=cache_file ;;
367 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369 cache_file=$ac_optarg ;;
370
371 --config-cache | -C)
372 cache_file=config.cache ;;
373
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375 ac_prev=datadir ;;
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377 | --da=*)
378 datadir=$ac_optarg ;;
379
380 -disable-* | --disable-*)
381 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382 # Reject names that are not valid shell variable names.
383 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385 { (exit 1); exit 1; }; }
386 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387 eval "enable_$ac_feature=no" ;;
388
389 -enable-* | --enable-*)
390 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391 # Reject names that are not valid shell variable names.
392 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394 { (exit 1); exit 1; }; }
395 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396 case $ac_option in
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398 *) ac_optarg=yes ;;
399 esac
400 eval "enable_$ac_feature='$ac_optarg'" ;;
401
402 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404 | --exec | --exe | --ex)
405 ac_prev=exec_prefix ;;
406 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408 | --exec=* | --exe=* | --ex=*)
409 exec_prefix=$ac_optarg ;;
410
411 -gas | --gas | --ga | --g)
412 # Obsolete; use --with-gas.
413 with_gas=yes ;;
414
415 -help | --help | --hel | --he | -h)
416 ac_init_help=long ;;
417 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418 ac_init_help=recursive ;;
419 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420 ac_init_help=short ;;
421
422 -host | --host | --hos | --ho)
423 ac_prev=host_alias ;;
424 -host=* | --host=* | --hos=* | --ho=*)
425 host_alias=$ac_optarg ;;
426
427 -includedir | --includedir | --includedi | --included | --include \
428 | --includ | --inclu | --incl | --inc)
429 ac_prev=includedir ;;
430 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431 | --includ=* | --inclu=* | --incl=* | --inc=*)
432 includedir=$ac_optarg ;;
433
434 -infodir | --infodir | --infodi | --infod | --info | --inf)
435 ac_prev=infodir ;;
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437 infodir=$ac_optarg ;;
438
439 -libdir | --libdir | --libdi | --libd)
440 ac_prev=libdir ;;
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
442 libdir=$ac_optarg ;;
443
444 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445 | --libexe | --libex | --libe)
446 ac_prev=libexecdir ;;
447 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448 | --libexe=* | --libex=* | --libe=*)
449 libexecdir=$ac_optarg ;;
450
451 -localstatedir | --localstatedir | --localstatedi | --localstated \
452 | --localstate | --localstat | --localsta | --localst \
453 | --locals | --local | --loca | --loc | --lo)
454 ac_prev=localstatedir ;;
455 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458 localstatedir=$ac_optarg ;;
459
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461 ac_prev=mandir ;;
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463 mandir=$ac_optarg ;;
464
465 -nfp | --nfp | --nf)
466 # Obsolete; use --without-fp.
467 with_fp=no ;;
468
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c | -n)
471 no_create=yes ;;
472
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475 no_recursion=yes ;;
476
477 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479 | --oldin | --oldi | --old | --ol | --o)
480 ac_prev=oldincludedir ;;
481 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484 oldincludedir=$ac_optarg ;;
485
486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487 ac_prev=prefix ;;
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489 prefix=$ac_optarg ;;
490
491 -program-prefix | --program-prefix | --program-prefi | --program-pref \
492 | --program-pre | --program-pr | --program-p)
493 ac_prev=program_prefix ;;
494 -program-prefix=* | --program-prefix=* | --program-prefi=* \
495 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496 program_prefix=$ac_optarg ;;
497
498 -program-suffix | --program-suffix | --program-suffi | --program-suff \
499 | --program-suf | --program-su | --program-s)
500 ac_prev=program_suffix ;;
501 -program-suffix=* | --program-suffix=* | --program-suffi=* \
502 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503 program_suffix=$ac_optarg ;;
504
505 -program-transform-name | --program-transform-name \
506 | --program-transform-nam | --program-transform-na \
507 | --program-transform-n | --program-transform- \
508 | --program-transform | --program-transfor \
509 | --program-transfo | --program-transf \
510 | --program-trans | --program-tran \
511 | --progr-tra | --program-tr | --program-t)
512 ac_prev=program_transform_name ;;
513 -program-transform-name=* | --program-transform-name=* \
514 | --program-transform-nam=* | --program-transform-na=* \
515 | --program-transform-n=* | --program-transform-=* \
516 | --program-transform=* | --program-transfor=* \
517 | --program-transfo=* | --program-transf=* \
518 | --program-trans=* | --program-tran=* \
519 | --progr-tra=* | --program-tr=* | --program-t=*)
520 program_transform_name=$ac_optarg ;;
521
522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523 | -silent | --silent | --silen | --sile | --sil)
524 silent=yes ;;
525
526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527 ac_prev=sbindir ;;
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529 | --sbi=* | --sb=*)
530 sbindir=$ac_optarg ;;
531
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534 | --sharedst | --shareds | --shared | --share | --shar \
535 | --sha | --sh)
536 ac_prev=sharedstatedir ;;
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540 | --sha=* | --sh=*)
541 sharedstatedir=$ac_optarg ;;
542
543 -site | --site | --sit)
544 ac_prev=site ;;
545 -site=* | --site=* | --sit=*)
546 site=$ac_optarg ;;
547
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549 ac_prev=srcdir ;;
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551 srcdir=$ac_optarg ;;
552
553 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554 | --syscon | --sysco | --sysc | --sys | --sy)
555 ac_prev=sysconfdir ;;
556 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558 sysconfdir=$ac_optarg ;;
559
560 -target | --target | --targe | --targ | --tar | --ta | --t)
561 ac_prev=target_alias ;;
562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563 target_alias=$ac_optarg ;;
564
565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
566 verbose=yes ;;
567
568 -version | --version | --versio | --versi | --vers | -V)
569 ac_init_version=: ;;
570
571 -with-* | --with-*)
572 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid package name: $ac_package" >&2
576 { (exit 1); exit 1; }; }
577 ac_package=`echo $ac_package| sed 's/-/_/g'`
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 *) ac_optarg=yes ;;
581 esac
582 eval "with_$ac_package='$ac_optarg'" ;;
583
584 -without-* | --without-*)
585 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package=`echo $ac_package | sed 's/-/_/g'`
591 eval "with_$ac_package=no" ;;
592
593 --x)
594 # Obsolete; use --with-x.
595 with_x=yes ;;
596
597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598 | --x-incl | --x-inc | --x-in | --x-i)
599 ac_prev=x_includes ;;
600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602 x_includes=$ac_optarg ;;
603
604 -x-libraries | --x-libraries | --x-librarie | --x-librari \
605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606 ac_prev=x_libraries ;;
607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609 x_libraries=$ac_optarg ;;
610
611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
614 ;;
615
616 *=*)
617 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618 # Reject names that are not valid shell variable names.
619 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621 { (exit 1); exit 1; }; }
622 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623 eval "$ac_envvar='$ac_optarg'"
624 export $ac_envvar ;;
625
626 *)
627 # FIXME: should be removed in autoconf 3.0.
628 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
632 ;;
633
634 esac
635 done
636
637 if test -n "$ac_prev"; then
638 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639 { echo "$as_me: error: missing argument to $ac_option" >&2
640 { (exit 1); exit 1; }; }
641 fi
642
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
645 do
646 eval ac_val=$`echo $ac_var`
647 case $ac_val in
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
651 esac
652 done
653
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
657 do
658 eval ac_val=$`echo $ac_var`
659 case $ac_val in
660 [\\/$]* | ?:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
663 esac
664 done
665
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
669 build=$build_alias
670 host=$host_alias
671 target=$target_alias
672
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x; then
675 if test "x$build_alias" = x; then
676 cross_compiling=maybe
677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678 If a cross compiler is detected then cross compile mode will be used." >&2
679 elif test "x$build_alias" != "x$host_alias"; then
680 cross_compiling=yes
681 fi
682 fi
683
684 ac_tool_prefix=
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
686
687 test "$silent" = yes && exec 6>/dev/null
688
689
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692 ac_srcdir_defaulted=yes
693 # Try the directory containing this script, then its parent.
694 ac_confdir=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696 X"$0" : 'X\(//\)[^/]' \| \
697 X"$0" : 'X\(//\)$' \| \
698 X"$0" : 'X\(/\)' \| \
699 . : '\(.\)' 2>/dev/null ||
700 echo X"$0" |
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
705 s/.*/./; q'`
706 srcdir=$ac_confdir
707 if test ! -r $srcdir/$ac_unique_file; then
708 srcdir=..
709 fi
710 else
711 ac_srcdir_defaulted=no
712 fi
713 if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716 { (exit 1); exit 1; }; }
717 else
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
720 fi
721 fi
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
736 ac_env_CC_value=$CC
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CPP_set=${CPP+set}
752 ac_env_CPP_value=$CPP
753 ac_cv_env_CPP_set=${CPP+set}
754 ac_cv_env_CPP_value=$CPP
755
756 #
757 # Report the --help message.
758 #
759 if test "$ac_init_help" = "long"; then
760 # Omit some internal or obsolete options to make the list less imposing.
761 # This message is too long to be a string in the A/UX 3.1 sh.
762 cat <<_ACEOF
763 \`configure' configures this package to adapt to many kinds of systems.
764
765 Usage: $0 [OPTION]... [VAR=VALUE]...
766
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
768 VAR=VALUE. See below for descriptions of some of the useful variables.
769
770 Defaults for the options are specified in brackets.
771
772 Configuration:
773 -h, --help display this help and exit
774 --help=short display options specific to this package
775 --help=recursive display the short help of all the included packages
776 -V, --version display version information and exit
777 -q, --quiet, --silent do not print \`checking...' messages
778 --cache-file=FILE cache test results in FILE [disabled]
779 -C, --config-cache alias for \`--cache-file=config.cache'
780 -n, --no-create do not create output files
781 --srcdir=DIR find the sources in DIR [configure dir or \`..']
782
783 _ACEOF
784
785 cat <<_ACEOF
786 Installation directories:
787 --prefix=PREFIX install architecture-independent files in PREFIX
788 [$ac_default_prefix]
789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
790 [PREFIX]
791
792 By default, \`make install' will install all the files in
793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
794 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795 for instance \`--prefix=\$HOME'.
796
797 For better control, use the options below.
798
799 Fine tuning of the installation directories:
800 --bindir=DIR user executables [EPREFIX/bin]
801 --sbindir=DIR system admin executables [EPREFIX/sbin]
802 --libexecdir=DIR program executables [EPREFIX/libexec]
803 --datadir=DIR read-only architecture-independent data [PREFIX/share]
804 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
805 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
806 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
807 --libdir=DIR object code libraries [EPREFIX/lib]
808 --includedir=DIR C header files [PREFIX/include]
809 --oldincludedir=DIR C header files for non-gcc [/usr/include]
810 --infodir=DIR info documentation [PREFIX/info]
811 --mandir=DIR man documentation [PREFIX/man]
812 _ACEOF
813
814 cat <<\_ACEOF
815 _ACEOF
816 fi
817
818 if test -n "$ac_init_help"; then
819
820 cat <<\_ACEOF
821
822 Optional Packages:
823 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
824 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
825 --with-libxml2=DIR use libxml2 in DIR (YES if found)
826 --with-zlib=DIR use zlib in DIR (YES if found)
827
828 Some influential environment variables:
829 CC C compiler command
830 CFLAGS C compiler flags
831 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
832 nonstandard directory <lib dir>
833 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
834 headers in a nonstandard directory <include dir>
835 CPP C preprocessor
836
837 Use these variables to override the choices made by `configure' or to help
838 it to find libraries and programs with nonstandard names/locations.
839
840 _ACEOF
841 fi
842
843 if test "$ac_init_help" = "recursive"; then
844 # If there are subdirs, report their specific --help.
845 ac_popdir=`pwd`
846 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
847 test -d $ac_dir || continue
848 ac_builddir=.
849
850 if test "$ac_dir" != .; then
851 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
852 # A "../" for each directory in $ac_dir_suffix.
853 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
854 else
855 ac_dir_suffix= ac_top_builddir=
856 fi
857
858 case $srcdir in
859 .) # No --srcdir option. We are building in place.
860 ac_srcdir=.
861 if test -z "$ac_top_builddir"; then
862 ac_top_srcdir=.
863 else
864 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
865 fi ;;
866 [\\/]* | ?:[\\/]* ) # Absolute path.
867 ac_srcdir=$srcdir$ac_dir_suffix;
868 ac_top_srcdir=$srcdir ;;
869 *) # Relative path.
870 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
871 ac_top_srcdir=$ac_top_builddir$srcdir ;;
872 esac
873 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
874 # absolute.
875 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
876 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
877 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
878 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
879
880 cd $ac_dir
881 # Check for guested configure; otherwise get Cygnus style configure.
882 if test -f $ac_srcdir/configure.gnu; then
883 echo
884 $SHELL $ac_srcdir/configure.gnu --help=recursive
885 elif test -f $ac_srcdir/configure; then
886 echo
887 $SHELL $ac_srcdir/configure --help=recursive
888 elif test -f $ac_srcdir/configure.ac ||
889 test -f $ac_srcdir/configure.in; then
890 echo
891 $ac_configure --help
892 else
893 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
894 fi
895 cd $ac_popdir
896 done
897 fi
898
899 test -n "$ac_init_help" && exit 0
900 if $ac_init_version; then
901 cat <<\_ACEOF
902
903 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
904 Free Software Foundation, Inc.
905 This configure script is free software; the Free Software Foundation
906 gives unlimited permission to copy, distribute and modify it.
907 _ACEOF
908 exit 0
909 fi
910 exec 5>config.log
911 cat >&5 <<_ACEOF
912 This file contains any messages produced by compilers while
913 running configure, to aid debugging if configure makes a mistake.
914
915 It was created by $as_me, which was
916 generated by GNU Autoconf 2.53. Invocation command line was
917
918 $ $0 $@
919
920 _ACEOF
921 {
922 cat <<_ASUNAME
923 ## --------- ##
924 ## Platform. ##
925 ## --------- ##
926
927 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
928 uname -m = `(uname -m) 2>/dev/null || echo unknown`
929 uname -r = `(uname -r) 2>/dev/null || echo unknown`
930 uname -s = `(uname -s) 2>/dev/null || echo unknown`
931 uname -v = `(uname -v) 2>/dev/null || echo unknown`
932
933 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
934 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
935
936 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
937 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
938 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
939 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
940 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
941 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
942 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
943
944 _ASUNAME
945
946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
947 for as_dir in $PATH
948 do
949 IFS=$as_save_IFS
950 test -z "$as_dir" && as_dir=.
951 echo "PATH: $as_dir"
952 done
953
954 } >&5
955
956 cat >&5 <<_ACEOF
957
958
959 ## ----------- ##
960 ## Core tests. ##
961 ## ----------- ##
962
963 _ACEOF
964
965
966 # Keep a trace of the command line.
967 # Strip out --no-create and --no-recursion so they do not pile up.
968 # Also quote any args containing shell meta-characters.
969 ac_configure_args=
970 ac_sep=
971 for ac_arg
972 do
973 case $ac_arg in
974 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
975 | --no-cr | --no-c | -n ) continue ;;
976 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
977 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
978 continue ;;
979 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
980 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
981 esac
982 case " $ac_configure_args " in
983 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
984 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
985 ac_sep=" " ;;
986 esac
987 # Get rid of the leading space.
988 done
989
990 # When interrupted or exit'd, cleanup temporary files, and complete
991 # config.log. We remove comments because anyway the quotes in there
992 # would cause problems or look ugly.
993 # WARNING: Be sure not to use single quotes in there, as some shells,
994 # such as our DU 5.0 friend, will then `close' the trap.
995 trap 'exit_status=$?
996 # Save into config.log some information that might help in debugging.
997 {
998 echo
999 cat <<\_ASBOX
1000 ## ---------------- ##
1001 ## Cache variables. ##
1002 ## ---------------- ##
1003 _ASBOX
1004 echo
1005 # The following way of writing the cache mishandles newlines in values,
1006 {
1007 (set) 2>&1 |
1008 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1009 *ac_space=\ *)
1010 sed -n \
1011 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1012 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1013 ;;
1014 *)
1015 sed -n \
1016 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1017 ;;
1018 esac;
1019 }
1020 echo
1021 if test -s confdefs.h; then
1022 cat <<\_ASBOX
1023 ## ----------- ##
1024 ## confdefs.h. ##
1025 ## ----------- ##
1026 _ASBOX
1027 echo
1028 sed "/^$/d" confdefs.h
1029 echo
1030 fi
1031 test "$ac_signal" != 0 &&
1032 echo "$as_me: caught signal $ac_signal"
1033 echo "$as_me: exit $exit_status"
1034 } >&5
1035 rm -f core core.* *.core &&
1036 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1037 exit $exit_status
1038 ' 0
1039 for ac_signal in 1 2 13 15; do
1040 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1041 done
1042 ac_signal=0
1043
1044 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1045 rm -rf conftest* confdefs.h
1046 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1047 echo >confdefs.h
1048
1049 # Predefined preprocessor variables.
1050
1051 cat >>confdefs.h <<_ACEOF
1052 #define PACKAGE_NAME "$PACKAGE_NAME"
1053 _ACEOF
1054
1055
1056 cat >>confdefs.h <<_ACEOF
1057 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1058 _ACEOF
1059
1060
1061 cat >>confdefs.h <<_ACEOF
1062 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1063 _ACEOF
1064
1065
1066 cat >>confdefs.h <<_ACEOF
1067 #define PACKAGE_STRING "$PACKAGE_STRING"
1068 _ACEOF
1069
1070
1071 cat >>confdefs.h <<_ACEOF
1072 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1073 _ACEOF
1074
1075
1076 # Let the site file select an alternate cache file if it wants to.
1077 # Prefer explicitly selected file to automatically selected ones.
1078 if test -z "$CONFIG_SITE"; then
1079 if test "x$prefix" != xNONE; then
1080 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1081 else
1082 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1083 fi
1084 fi
1085 for ac_site_file in $CONFIG_SITE; do
1086 if test -r "$ac_site_file"; then
1087 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1088 echo "$as_me: loading site script $ac_site_file" >&6;}
1089 sed 's/^/| /' "$ac_site_file" >&5
1090 . "$ac_site_file"
1091 fi
1092 done
1093
1094 if test -r "$cache_file"; then
1095 # Some versions of bash will fail to source /dev/null (special
1096 # files actually), so we avoid doing that.
1097 if test -f "$cache_file"; then
1098 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1099 echo "$as_me: loading cache $cache_file" >&6;}
1100 case $cache_file in
1101 [\\/]* | ?:[\\/]* ) . $cache_file;;
1102 *) . ./$cache_file;;
1103 esac
1104 fi
1105 else
1106 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1107 echo "$as_me: creating cache $cache_file" >&6;}
1108 >$cache_file
1109 fi
1110
1111 # Check that the precious variables saved in the cache have kept the same
1112 # value.
1113 ac_cache_corrupted=false
1114 for ac_var in `(set) 2>&1 |
1115 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1116 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1117 eval ac_new_set=\$ac_env_${ac_var}_set
1118 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1119 eval ac_new_val="\$ac_env_${ac_var}_value"
1120 case $ac_old_set,$ac_new_set in
1121 set,)
1122 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1123 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1124 ac_cache_corrupted=: ;;
1125 ,set)
1126 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1127 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1128 ac_cache_corrupted=: ;;
1129 ,);;
1130 *)
1131 if test "x$ac_old_val" != "x$ac_new_val"; then
1132 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1133 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1134 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1135 echo "$as_me: former value: $ac_old_val" >&2;}
1136 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1137 echo "$as_me: current value: $ac_new_val" >&2;}
1138 ac_cache_corrupted=:
1139 fi;;
1140 esac
1141 # Pass precious variables to config.status.
1142 if test "$ac_new_set" = set; then
1143 case $ac_new_val in
1144 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1145 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1146 *) ac_arg=$ac_var=$ac_new_val ;;
1147 esac
1148 case " $ac_configure_args " in
1149 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1150 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1151 esac
1152 fi
1153 done
1154 if $ac_cache_corrupted; then
1155 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1156 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1157 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1158 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1159 { (exit 1); exit 1; }; }
1160 fi
1161
1162 ac_ext=c
1163 ac_cpp='$CPP $CPPFLAGS'
1164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187 VERSION=2.2rc1
1188
1189
1190 PROJECT=swish-e
1191
1192 ac_ext=c
1193 ac_cpp='$CPP $CPPFLAGS'
1194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1197 if test -n "$ac_tool_prefix"; then
1198 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1199 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1200 echo "$as_me:$LINENO: checking for $ac_word" >&5
1201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1202 if test "${ac_cv_prog_CC+set}" = set; then
1203 echo $ECHO_N "(cached) $ECHO_C" >&6
1204 else
1205 if test -n "$CC"; then
1206 ac_cv_prog_CC="$CC" # Let the user override the test.
1207 else
1208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1209 for as_dir in $PATH
1210 do
1211 IFS=$as_save_IFS
1212 test -z "$as_dir" && as_dir=.
1213 for ac_exec_ext in '' $ac_executable_extensions; do
1214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1215 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1217 break 2
1218 fi
1219 done
1220 done
1221
1222 fi
1223 fi
1224 CC=$ac_cv_prog_CC
1225 if test -n "$CC"; then
1226 echo "$as_me:$LINENO: result: $CC" >&5
1227 echo "${ECHO_T}$CC" >&6
1228 else
1229 echo "$as_me:$LINENO: result: no" >&5
1230 echo "${ECHO_T}no" >&6
1231 fi
1232
1233 fi
1234 if test -z "$ac_cv_prog_CC"; then
1235 ac_ct_CC=$CC
1236 # Extract the first word of "gcc", so it can be a program name with args.
1237 set dummy gcc; ac_word=$2
1238 echo "$as_me:$LINENO: checking for $ac_word" >&5
1239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1240 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1241 echo $ECHO_N "(cached) $ECHO_C" >&6
1242 else
1243 if test -n "$ac_ct_CC"; then
1244 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1245 else
1246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1247 for as_dir in $PATH
1248 do
1249 IFS=$as_save_IFS
1250 test -z "$as_dir" && as_dir=.
1251 for ac_exec_ext in '' $ac_executable_extensions; do
1252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1253 ac_cv_prog_ac_ct_CC="gcc"
1254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1255 break 2
1256 fi
1257 done
1258 done
1259
1260 fi
1261 fi
1262 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1263 if test -n "$ac_ct_CC"; then
1264 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1265 echo "${ECHO_T}$ac_ct_CC" >&6
1266 else
1267 echo "$as_me:$LINENO: result: no" >&5
1268 echo "${ECHO_T}no" >&6
1269 fi
1270
1271 CC=$ac_ct_CC
1272 else
1273 CC="$ac_cv_prog_CC"
1274 fi
1275
1276 if test -z "$CC"; then
1277 if test -n "$ac_tool_prefix"; then
1278 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1279 set dummy ${ac_tool_prefix}cc; ac_word=$2
1280 echo "$as_me:$LINENO: checking for $ac_word" >&5
1281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1282 if test "${ac_cv_prog_CC+set}" = set; then
1283 echo $ECHO_N "(cached) $ECHO_C" >&6
1284 else
1285 if test -n "$CC"; then
1286 ac_cv_prog_CC="$CC" # Let the user override the test.
1287 else
1288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1289 for as_dir in $PATH
1290 do
1291 IFS=$as_save_IFS
1292 test -z "$as_dir" && as_dir=.
1293 for ac_exec_ext in '' $ac_executable_extensions; do
1294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1295 ac_cv_prog_CC="${ac_tool_prefix}cc"
1296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1297 break 2
1298 fi
1299 done
1300 done
1301
1302 fi
1303 fi
1304 CC=$ac_cv_prog_CC
1305 if test -n "$CC"; then
1306 echo "$as_me:$LINENO: result: $CC" >&5
1307 echo "${ECHO_T}$CC" >&6
1308 else
1309 echo "$as_me:$LINENO: result: no" >&5
1310 echo "${ECHO_T}no" >&6
1311 fi
1312
1313 fi
1314 if test -z "$ac_cv_prog_CC"; then
1315 ac_ct_CC=$CC
1316 # Extract the first word of "cc", so it can be a program name with args.
1317 set dummy cc; ac_word=$2
1318 echo "$as_me:$LINENO: checking for $ac_word" >&5
1319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1320 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1321 echo $ECHO_N "(cached) $ECHO_C" >&6
1322 else
1323 if test -n "$ac_ct_CC"; then
1324 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1325 else
1326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1327 for as_dir in $PATH
1328 do
1329 IFS=$as_save_IFS
1330 test -z "$as_dir" && as_dir=.
1331 for ac_exec_ext in '' $ac_executable_extensions; do
1332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1333 ac_cv_prog_ac_ct_CC="cc"
1334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1335 break 2
1336 fi
1337 done
1338 done
1339
1340 fi
1341 fi
1342 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1343 if test -n "$ac_ct_CC"; then
1344 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1345 echo "${ECHO_T}$ac_ct_CC" >&6
1346 else
1347 echo "$as_me:$LINENO: result: no" >&5
1348 echo "${ECHO_T}no" >&6
1349 fi
1350
1351 CC=$ac_ct_CC
1352 else
1353 CC="$ac_cv_prog_CC"
1354 fi
1355
1356 fi
1357 if test -z "$CC"; then
1358 # Extract the first word of "cc", so it can be a program name with args.
1359 set dummy cc; ac_word=$2
1360 echo "$as_me:$LINENO: checking for $ac_word" >&5
1361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1362 if test "${ac_cv_prog_CC+set}" = set; then
1363 echo $ECHO_N "(cached) $ECHO_C" >&6
1364 else
1365 if test -n "$CC"; then
1366 ac_cv_prog_CC="$CC" # Let the user override the test.
1367 else
1368 ac_prog_rejected=no
1369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1370 for as_dir in $PATH
1371 do
1372 IFS=$as_save_IFS
1373 test -z "$as_dir" && as_dir=.
1374 for ac_exec_ext in '' $ac_executable_extensions; do
1375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1376 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1377 ac_prog_rejected=yes
1378 continue
1379 fi
1380 ac_cv_prog_CC="cc"
1381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1382 break 2
1383 fi
1384 done
1385 done
1386
1387 if test $ac_prog_rejected = yes; then
1388 # We found a bogon in the path, so make sure we never use it.
1389 set dummy $ac_cv_prog_CC
1390 shift
1391 if test $# != 0; then
1392 # We chose a different compiler from the bogus one.
1393 # However, it has the same basename, so the bogon will be chosen
1394 # first if we set CC to just the basename; use the full file name.
1395 shift
1396 set dummy "$as_dir/$ac_word" ${1+"$@"}
1397 shift
1398 ac_cv_prog_CC="$@"
1399 fi
1400 fi
1401 fi
1402 fi
1403 CC=$ac_cv_prog_CC
1404 if test -n "$CC"; then
1405 echo "$as_me:$LINENO: result: $CC" >&5
1406 echo "${ECHO_T}$CC" >&6
1407 else
1408 echo "$as_me:$LINENO: result: no" >&5
1409 echo "${ECHO_T}no" >&6
1410 fi
1411
1412 fi
1413 if test -z "$CC"; then
1414 if test -n "$ac_tool_prefix"; then
1415 for ac_prog in cl
1416 do
1417 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1418 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1419 echo "$as_me:$LINENO: checking for $ac_word" >&5
1420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1421 if test "${ac_cv_prog_CC+set}" = set; then
1422 echo $ECHO_N "(cached) $ECHO_C" >&6
1423 else
1424 if test -n "$CC"; then
1425 ac_cv_prog_CC="$CC" # Let the user override the test.
1426 else
1427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1428 for as_dir in $PATH
1429 do
1430 IFS=$as_save_IFS
1431 test -z "$as_dir" && as_dir=.
1432 for ac_exec_ext in '' $ac_executable_extensions; do
1433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1434 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1436 break 2
1437 fi
1438 done
1439 done
1440
1441 fi
1442 fi
1443 CC=$ac_cv_prog_CC
1444 if test -n "$CC"; then
1445 echo "$as_me:$LINENO: result: $CC" >&5
1446 echo "${ECHO_T}$CC" >&6
1447 else
1448 echo "$as_me:$LINENO: result: no" >&5
1449 echo "${ECHO_T}no" >&6
1450 fi
1451
1452 test -n "$CC" && break
1453 done
1454 fi
1455 if test -z "$CC"; then
1456 ac_ct_CC=$CC
1457 for ac_prog in cl
1458 do
1459 # Extract the first word of "$ac_prog", so it can be a program name with args.
1460 set dummy $ac_prog; ac_word=$2
1461 echo "$as_me:$LINENO: checking for $ac_word" >&5
1462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1463 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1464 echo $ECHO_N "(cached) $ECHO_C" >&6
1465 else
1466 if test -n "$ac_ct_CC"; then
1467 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1468 else
1469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1470 for as_dir in $PATH
1471 do
1472 IFS=$as_save_IFS
1473 test -z "$as_dir" && as_dir=.
1474 for ac_exec_ext in '' $ac_executable_extensions; do
1475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1476 ac_cv_prog_ac_ct_CC="$ac_prog"
1477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1478 break 2
1479 fi
1480 done
1481 done
1482
1483 fi
1484 fi
1485 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1486 if test -n "$ac_ct_CC"; then
1487 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1488 echo "${ECHO_T}$ac_ct_CC" >&6
1489 else
1490 echo "$as_me:$LINENO: result: no" >&5
1491 echo "${ECHO_T}no" >&6
1492 fi
1493
1494 test -n "$ac_ct_CC" && break
1495 done
1496
1497 CC=$ac_ct_CC
1498 fi
1499
1500 fi
1501
1502
1503 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1504 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1505 { (exit 1); exit 1; }; }
1506
1507 # Provide some information about the compiler.
1508 echo "$as_me:$LINENO:" \
1509 "checking for C compiler version" >&5
1510 ac_compiler=`set X $ac_compile; echo $2`
1511 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1512 (eval $ac_compiler --version </dev/null >&5) 2>&5
1513 ac_status=$?
1514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1515 (exit $ac_status); }
1516 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1517 (eval $ac_compiler -v </dev/null >&5) 2>&5
1518 ac_status=$?
1519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1520 (exit $ac_status); }
1521 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1522 (eval $ac_compiler -V </dev/null >&5) 2>&5
1523 ac_status=$?
1524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1525 (exit $ac_status); }
1526
1527 cat >conftest.$ac_ext <<_ACEOF
1528 #line $LINENO "configure"
1529 #include "confdefs.h"
1530
1531 #ifdef F77_DUMMY_MAIN
1532 # ifdef __cplusplus
1533 extern "C"
1534 # endif
1535 int F77_DUMMY_MAIN() { return 1; }
1536 #endif
1537 int
1538 main ()
1539 {
1540
1541 ;
1542 return 0;
1543 }
1544 _ACEOF
1545 ac_clean_files_save=$ac_clean_files
1546 ac_clean_files="$ac_clean_files a.out a.exe"
1547 # Try to create an executable without -o first, disregard a.out.
1548 # It will help us diagnose broken compilers, and finding out an intuition
1549 # of exeext.
1550 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1551 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1552 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1553 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1554 (eval $ac_link_default) 2>&5
1555 ac_status=$?
1556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1557 (exit $ac_status); }; then
1558 # Find the output, starting from the most likely. This scheme is
1559 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1560 # resort.
1561
1562 # Be careful to initialize this variable, since it used to be cached.
1563 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1564 ac_cv_exeext=
1565 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1566 ls a.out conftest 2>/dev/null;
1567 ls a.* conftest.* 2>/dev/null`; do
1568 case $ac_file in
1569 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1570 a.out ) # We found the default executable, but exeext='' is most
1571 # certainly right.
1572 break;;
1573 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1574 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1575 export ac_cv_exeext
1576 break;;
1577 * ) break;;
1578 esac
1579 done
1580 else
1581 echo "$as_me: failed program was:" >&5
1582 cat conftest.$ac_ext >&5
1583 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1584 echo "$as_me: error: C compiler cannot create executables" >&2;}
1585 { (exit 77); exit 77; }; }
1586 fi
1587
1588 ac_exeext=$ac_cv_exeext
1589 echo "$as_me:$LINENO: result: $ac_file" >&5
1590 echo "${ECHO_T}$ac_file" >&6
1591
1592 # Check the compiler produces executables we can run. If not, either
1593 # the compiler is broken, or we cross compile.
1594 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1595 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1596 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1597 # If not cross compiling, check that we can run a simple program.
1598 if test "$cross_compiling" != yes; then
1599 if { ac_try='./$ac_file'
1600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1601 (eval $ac_try) 2>&5
1602 ac_status=$?
1603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1604 (exit $ac_status); }; }; then
1605 cross_compiling=no
1606 else
1607 if test "$cross_compiling" = maybe; then
1608 cross_compiling=yes
1609 else
1610 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1611 If you meant to cross compile, use \`--host'." >&5
1612 echo "$as_me: error: cannot run C compiled programs.
1613 If you meant to cross compile, use \`--host'." >&2;}
1614 { (exit 1); exit 1; }; }
1615 fi
1616 fi
1617 fi
1618 echo "$as_me:$LINENO: result: yes" >&5
1619 echo "${ECHO_T}yes" >&6
1620
1621 rm -f a.out a.exe conftest$ac_cv_exeext
1622 ac_clean_files=$ac_clean_files_save
1623 # Check the compiler produces executables we can run. If not, either
1624 # the compiler is broken, or we cross compile.
1625 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1626 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1627 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1628 echo "${ECHO_T}$cross_compiling" >&6
1629
1630 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1631 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1633 (eval $ac_link) 2>&5
1634 ac_status=$?
1635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1636 (exit $ac_status); }; then
1637 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1638 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1639 # work properly (i.e., refer to `conftest.exe'), while it won't with
1640 # `rm'.
1641 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1642 case $ac_file in
1643 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1644 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1645 export ac_cv_exeext
1646 break;;
1647 * ) break;;
1648 esac
1649 done
1650 else
1651 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1652 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1653 { (exit 1); exit 1; }; }
1654 fi
1655
1656 rm -f conftest$ac_cv_exeext
1657 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1658 echo "${ECHO_T}$ac_cv_exeext" >&6
1659
1660 rm -f conftest.$ac_ext
1661 EXEEXT=$ac_cv_exeext
1662 ac_exeext=$EXEEXT
1663 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1664 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1665 if test "${ac_cv_objext+set}" = set; then
1666 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 else
1668 cat >conftest.$ac_ext <<_ACEOF
1669 #line $LINENO "configure"
1670 #include "confdefs.h"
1671
1672 #ifdef F77_DUMMY_MAIN
1673 # ifdef __cplusplus
1674 extern "C"
1675 # endif
1676 int F77_DUMMY_MAIN() { return 1; }
1677 #endif
1678 int
1679 main ()
1680 {
1681
1682 ;
1683 return 0;
1684 }
1685 _ACEOF
1686 rm -f conftest.o conftest.obj
1687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1688 (eval $ac_compile) 2>&5
1689 ac_status=$?
1690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1691 (exit $ac_status); }; then
1692 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1693 case $ac_file in
1694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1695 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1696 break;;
1697 esac
1698 done
1699 else
1700 echo "$as_me: failed program was:" >&5
1701 cat conftest.$ac_ext >&5
1702 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1703 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1704 { (exit 1); exit 1; }; }
1705 fi
1706
1707 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1708 fi
1709 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1710 echo "${ECHO_T}$ac_cv_objext" >&6
1711 OBJEXT=$ac_cv_objext
1712 ac_objext=$OBJEXT
1713 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1714 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1715 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1716 echo $ECHO_N "(cached) $ECHO_C" >&6
1717 else
1718 cat >conftest.$ac_ext <<_ACEOF
1719 #line $LINENO "configure"
1720 #include "confdefs.h"
1721
1722 #ifdef F77_DUMMY_MAIN
1723 # ifdef __cplusplus
1724 extern "C"
1725 # endif
1726 int F77_DUMMY_MAIN() { return 1; }
1727 #endif
1728 int
1729 main ()
1730 {
1731 #ifndef __GNUC__
1732 choke me
1733 #endif
1734
1735 ;
1736 return 0;
1737 }
1738 _ACEOF
1739 rm -f conftest.$ac_objext
1740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1741 (eval $ac_compile) 2>&5
1742 ac_status=$?
1743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1744 (exit $ac_status); } &&
1745 { ac_try='test -s conftest.$ac_objext'
1746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1747 (eval $ac_try) 2>&5
1748 ac_status=$?
1749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1750 (exit $ac_status); }; }; then
1751 ac_compiler_gnu=yes
1752 else
1753 echo "$as_me: failed program was:" >&5
1754 cat conftest.$ac_ext >&5
1755 ac_compiler_gnu=no
1756 fi
1757 rm -f conftest.$ac_objext conftest.$ac_ext
1758 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1759
1760 fi
1761 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1762 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1763 GCC=`test $ac_compiler_gnu = yes && echo yes`
1764 ac_test_CFLAGS=${CFLAGS+set}
1765 ac_save_CFLAGS=$CFLAGS
1766 CFLAGS="-g"
1767 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1768 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1769 if test "${ac_cv_prog_cc_g+set}" = set; then
1770 echo $ECHO_N "(cached) $ECHO_C" >&6
1771 else
1772 cat >conftest.$ac_ext <<_ACEOF
1773 #line $LINENO "configure"
1774 #include "confdefs.h"
1775
1776 #ifdef F77_DUMMY_MAIN
1777 # ifdef __cplusplus
1778 extern "C"
1779 # endif
1780 int F77_DUMMY_MAIN() { return 1; }
1781 #endif
1782 int
1783 main ()
1784 {
1785
1786 ;
1787 return 0;
1788 }
1789 _ACEOF
1790 rm -f conftest.$ac_objext
1791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1792 (eval $ac_compile) 2>&5
1793 ac_status=$?
1794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795 (exit $ac_status); } &&
1796 { ac_try='test -s conftest.$ac_objext'
1797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1798 (eval $ac_try) 2>&5
1799 ac_status=$?
1800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1801 (exit $ac_status); }; }; then
1802 ac_cv_prog_cc_g=yes
1803 else
1804 echo "$as_me: failed program was:" >&5
1805 cat conftest.$ac_ext >&5
1806 ac_cv_prog_cc_g=no
1807 fi
1808 rm -f conftest.$ac_objext conftest.$ac_ext
1809 fi
1810 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1811 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1812 if test "$ac_test_CFLAGS" = set; then
1813 CFLAGS=$ac_save_CFLAGS
1814 elif test $ac_cv_prog_cc_g = yes; then
1815 if test "$GCC" = yes; then
1816 CFLAGS="-g -O2"
1817 else
1818 CFLAGS="-g"
1819 fi
1820 else
1821 if test "$GCC" = yes; then
1822 CFLAGS="-O2"
1823 else
1824 CFLAGS=
1825 fi
1826 fi
1827 # Some people use a C++ compiler to compile C. Since we use `exit',
1828 # in C++ we need to declare it. In case someone uses the same compiler
1829 # for both compiling C and C++ we need to have the C++ compiler decide
1830 # the declaration of exit, since it's the most demanding environment.
1831 cat >conftest.$ac_ext <<_ACEOF
1832 #ifndef __cplusplus
1833 choke me
1834 #endif
1835 _ACEOF
1836 rm -f conftest.$ac_objext
1837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1838 (eval $ac_compile) 2>&5
1839 ac_status=$?
1840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1841 (exit $ac_status); } &&
1842 { ac_try='test -s conftest.$ac_objext'
1843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1844 (eval $ac_try) 2>&5
1845 ac_status=$?
1846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1847 (exit $ac_status); }; }; then
1848 for ac_declaration in \
1849 ''\
1850 '#include <stdlib.h>' \
1851 'extern "C" void std::exit (int) throw (); using std::exit;' \
1852 'extern "C" void std::exit (int); using std::exit;' \
1853 'extern "C" void exit (int) throw ();' \
1854 'extern "C" void exit (int);' \
1855 'void exit (int);'
1856 do
1857 cat >conftest.$ac_ext <<_ACEOF
1858 #line $LINENO "configure"
1859 #include "confdefs.h"
1860 #include <stdlib.h>
1861 $ac_declaration
1862 #ifdef F77_DUMMY_MAIN
1863 # ifdef __cplusplus
1864 extern "C"
1865 # endif
1866 int F77_DUMMY_MAIN() { return 1; }
1867 #endif
1868 int
1869 main ()
1870 {
1871 exit (42);
1872 ;
1873 return 0;
1874 }
1875 _ACEOF
1876 rm -f conftest.$ac_objext
1877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1878 (eval $ac_compile) 2>&5
1879 ac_status=$?
1880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881 (exit $ac_status); } &&
1882 { ac_try='test -s conftest.$ac_objext'
1883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1884 (eval $ac_try) 2>&5
1885 ac_status=$?
1886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887 (exit $ac_status); }; }; then
1888 :
1889 else
1890 echo "$as_me: failed program was:" >&5
1891 cat conftest.$ac_ext >&5
1892 continue
1893 fi
1894 rm -f conftest.$ac_objext conftest.$ac_ext
1895 cat >conftest.$ac_ext <<_ACEOF
1896 #line $LINENO "configure"
1897 #include "confdefs.h"
1898 $ac_declaration
1899 #ifdef F77_DUMMY_MAIN
1900 # ifdef __cplusplus
1901 extern "C"
1902 # endif
1903 int F77_DUMMY_MAIN() { return 1; }
1904 #endif
1905 int
1906 main ()
1907 {
1908 exit (42);
1909 ;
1910 return 0;
1911 }
1912 _ACEOF
1913 rm -f conftest.$ac_objext
1914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1915 (eval $ac_compile) 2>&5
1916 ac_status=$?
1917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1918 (exit $ac_status); } &&
1919 { ac_try='test -s conftest.$ac_objext'
1920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1921 (eval $ac_try) 2>&5
1922 ac_status=$?
1923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1924 (exit $ac_status); }; }; then
1925 break
1926 else
1927 echo "$as_me: failed program was:" >&5
1928 cat conftest.$ac_ext >&5
1929 fi
1930 rm -f conftest.$ac_objext conftest.$ac_ext
1931 done
1932 rm -f conftest*
1933 if test -n "$ac_declaration"; then
1934 echo '#ifdef __cplusplus' >>confdefs.h
1935 echo $ac_declaration >>confdefs.h
1936 echo '#endif' >>confdefs.h
1937 fi
1938
1939 else
1940 echo "$as_me: failed program was:" >&5
1941 cat conftest.$ac_ext >&5
1942 fi
1943 rm -f conftest.$ac_objext conftest.$ac_ext
1944 ac_ext=c
1945 ac_cpp='$CPP $CPPFLAGS'
1946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1949
1950
1951 echo "$as_me:$LINENO: checking for BSDgettimeofday" >&5
1952 echo $ECHO_N "checking for BSDgettimeofday... $ECHO_C" >&6
1953 if test "${ac_cv_func_BSDgettimeofday+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
1955 else
1956 cat >conftest.$ac_ext <<_ACEOF
1957 #line $LINENO "configure"
1958 #include "confdefs.h"
1959 /* System header to define __stub macros and hopefully few prototypes,
1960 which can conflict with char BSDgettimeofday (); below. */
1961 #include <assert.h>
1962 /* Override any gcc2 internal prototype to avoid an error. */
1963 #ifdef __cplusplus
1964 extern "C"
1965 #endif
1966 /* We use char because int might match the return type of a gcc2
1967 builtin and then its argument prototype would still apply. */
1968 char BSDgettimeofday ();
1969 char (*f) ();
1970
1971 #ifdef F77_DUMMY_MAIN
1972 # ifdef __cplusplus
1973 extern "C"
1974 # endif
1975 int F77_DUMMY_MAIN() { return 1; }
1976 #endif
1977 int
1978 main ()
1979 {
1980 /* The GNU C library defines this for functions which it implements
1981 to always fail with ENOSYS. Some functions are actually named
1982 something starting with __ and the normal name is an alias. */
1983 #if defined (__stub_BSDgettimeofday) || defined (__stub___BSDgettimeofday)
1984 choke me
1985 #else
1986 f = BSDgettimeofday;
1987 #endif
1988
1989 ;
1990 return 0;
1991 }
1992 _ACEOF
1993 rm -f conftest.$ac_objext conftest$ac_exeext
1994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1995 (eval $ac_link) 2>&5
1996 ac_status=$?
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); } &&
1999 { ac_try='test -s conftest$ac_exeext'
2000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2001 (eval $ac_try) 2>&5
2002 ac_status=$?
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }; }; then
2005 ac_cv_func_BSDgettimeofday=yes
2006 else
2007 echo "$as_me: failed program was:" >&5
2008 cat conftest.$ac_ext >&5
2009 ac_cv_func_BSDgettimeofday=no
2010 fi
2011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2012 fi
2013 echo "$as_me:$LINENO: result: $ac_cv_func_BSDgettimeofday" >&5
2014 echo "${ECHO_T}$ac_cv_func_BSDgettimeofday" >&6
2015 if test $ac_cv_func_BSDgettimeofday = yes; then
2016 cat >>confdefs.h <<\_ACEOF
2017 #define HAVE_BSDGETTIMEOFDAY 1
2018 _ACEOF
2019
2020 else
2021 echo "$as_me:$LINENO: checking for gettimeofday" >&5
2022 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
2023 if test "${ac_cv_func_gettimeofday+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2025 else
2026 cat >conftest.$ac_ext <<_ACEOF
2027 #line $LINENO "configure"
2028 #include "confdefs.h"
2029 /* System header to define __stub macros and hopefully few prototypes,
2030 which can conflict with char gettimeofday (); below. */
2031 #include <assert.h>
2032 /* Override any gcc2 internal prototype to avoid an error. */
2033 #ifdef __cplusplus
2034 extern "C"
2035 #endif
2036 /* We use char because int might match the return type of a gcc2
2037 builtin and then its argument prototype would still apply. */
2038 char gettimeofday ();
2039 char (*f) ();
2040
2041 #ifdef F77_DUMMY_MAIN
2042 # ifdef __cplusplus
2043 extern "C"
2044 # endif
2045 int F77_DUMMY_MAIN() { return 1; }
2046 #endif
2047 int
2048 main ()
2049 {
2050 /* The GNU C library defines this for functions which it implements
2051 to always fail with ENOSYS. Some functions are actually named
2052 something starting with __ and the normal name is an alias. */
2053 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
2054 choke me
2055 #else
2056 f = gettimeofday;
2057 #endif
2058
2059 ;
2060 return 0;
2061 }
2062 _ACEOF
2063 rm -f conftest.$ac_objext conftest$ac_exeext
2064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2065 (eval $ac_link) 2>&5
2066 ac_status=$?
2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068 (exit $ac_status); } &&
2069 { ac_try='test -s conftest$ac_exeext'
2070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2071 (eval $ac_try) 2>&5
2072 ac_status=$?
2073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074 (exit $ac_status); }; }; then
2075 ac_cv_func_gettimeofday=yes
2076 else
2077 echo "$as_me: failed program was:" >&5
2078 cat conftest.$ac_ext >&5
2079 ac_cv_func_gettimeofday=no
2080 fi
2081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2082 fi
2083 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
2084 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
2085 if test $ac_cv_func_gettimeofday = yes; then
2086 :
2087 else
2088 cat >>confdefs.h <<\_ACEOF
2089 #define NO_GETTOD 1
2090 _ACEOF
2091
2092 fi
2093
2094 fi
2095
2096
2097
2098
2099
2100 echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
2101 echo $ECHO_N "checking whether #! works in shell scripts... $ECHO_C" >&6
2102 if test "${ac_cv_sys_interpreter+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2104 else
2105 echo '#! /bin/cat
2106 exit 69
2107 ' >conftest
2108 chmod u+x conftest
2109 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
2110 if test $? -ne 69; then
2111 ac_cv_sys_interpreter=yes
2112 else
2113 ac_cv_sys_interpreter=no
2114 fi
2115 rm -f conftest
2116 fi
2117 echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
2118 echo "${ECHO_T}$ac_cv_sys_interpreter" >&6
2119 interpval=$ac_cv_sys_interpreter
2120
2121
2122 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
2123 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2124 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2125 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2127 else
2128 cat >conftest.make <<\_ACEOF
2129 all:
2130 @echo 'ac_maketemp="${MAKE}"'
2131 _ACEOF
2132 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2133 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2134 if test -n "$ac_maketemp"; then
2135 eval ac_cv_prog_make_${ac_make}_set=yes
2136 else
2137 eval ac_cv_prog_make_${ac_make}_set=no
2138 fi
2139 rm -f conftest.make
2140 fi
2141 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2142 echo "$as_me:$LINENO: result: yes" >&5
2143 echo "${ECHO_T}yes" >&6
2144 SET_MAKE=
2145 else
2146 echo "$as_me:$LINENO: result: no" >&5
2147 echo "${ECHO_T}no" >&6
2148 SET_MAKE="MAKE=${MAKE-make}"
2149 fi
2150
2151
2152 # Extract the first word of "perl", so it can be a program name with args.
2153 set dummy perl; ac_word=$2
2154 echo "$as_me:$LINENO: checking for $ac_word" >&5
2155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2156 if test "${ac_cv_path_PERL+set}" = set; then
2157 echo $ECHO_N "(cached) $ECHO_C" >&6
2158 else
2159 case $PERL in
2160 [\\/]* | ?:[\\/]*)
2161 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2162 ;;
2163 *)
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 for as_dir in $PATH:/usr/bin:/usr/local/bin:/opt/bin:/usr/freeware/bin
2166 do
2167 IFS=$as_save_IFS
2168 test -z "$as_dir" && as_dir=.
2169 for ac_exec_ext in '' $ac_executable_extensions; do
2170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2171 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
2172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2173 break 2
2174 fi
2175 done
2176 done
2177
2178 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
2179 ;;
2180 esac
2181 fi
2182 PERL=$ac_cv_path_PERL
2183
2184 if test -n "$PERL"; then
2185 echo "$as_me:$LINENO: result: $PERL" >&5
2186 echo "${ECHO_T}$PERL" >&6
2187 else
2188 echo "$as_me:$LINENO: result: no" >&5
2189 echo "${ECHO_T}no" >&6
2190 fi
2191
2192
2193
2194
2195
2196
2197 ac_ext=c
2198 ac_cpp='$CPP $CPPFLAGS'
2199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2202 if test -n "$ac_tool_prefix"; then
2203 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2204 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2205 echo "$as_me:$LINENO: checking for $ac_word" >&5
2206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2207 if test "${ac_cv_prog_CC+set}" = set; then
2208 echo $ECHO_N "(cached) $ECHO_C" >&6
2209 else
2210 if test -n "$CC"; then
2211 ac_cv_prog_CC="$CC" # Let the user override the test.
2212 else
2213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2214 for as_dir in $PATH
2215 do
2216 IFS=$as_save_IFS
2217 test -z "$as_dir" && as_dir=.
2218 for ac_exec_ext in '' $ac_executable_extensions; do
2219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2220 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2222 break 2
2223 fi
2224 done
2225 done
2226
2227 fi
2228 fi
2229 CC=$ac_cv_prog_CC
2230 if test -n "$CC"; then
2231 echo "$as_me:$LINENO: result: $CC" >&5
2232 echo "${ECHO_T}$CC" >&6
2233 else
2234 echo "$as_me:$LINENO: result: no" >&5
2235 echo "${ECHO_T}no" >&6
2236 fi
2237
2238 fi
2239 if test -z "$ac_cv_prog_CC"; then
2240 ac_ct_CC=$CC
2241 # Extract the first word of "gcc", so it can be a program name with args.
2242 set dummy gcc; ac_word=$2
2243 echo "$as_me:$LINENO: checking for $ac_word" >&5
2244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2245 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2246 echo $ECHO_N "(cached) $ECHO_C" >&6
2247 else
2248 if test -n "$ac_ct_CC"; then
2249 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2250 else
2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252 for as_dir in $PATH
2253 do
2254 IFS=$as_save_IFS
2255 test -z "$as_dir" && as_dir=.
2256 for ac_exec_ext in '' $ac_executable_extensions; do
2257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2258 ac_cv_prog_ac_ct_CC="gcc"
2259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2260 break 2
2261 fi
2262 done
2263 done
2264
2265 fi
2266 fi
2267 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2268 if test -n "$ac_ct_CC"; then
2269 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2270 echo "${ECHO_T}$ac_ct_CC" >&6
2271 else
2272 echo "$as_me:$LINENO: result: no" >&5
2273 echo "${ECHO_T}no" >&6
2274 fi
2275
2276 CC=$ac_ct_CC
2277 else
2278 CC="$ac_cv_prog_CC"
2279 fi
2280
2281 if test -z "$CC"; then
2282 if test -n "$ac_tool_prefix"; then
2283 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2284 set dummy ${ac_tool_prefix}cc; ac_word=$2
2285 echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2287 if test "${ac_cv_prog_CC+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290 if test -n "$CC"; then
2291 ac_cv_prog_CC="$CC" # Let the user override the test.
2292 else
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2295 do
2296 IFS=$as_save_IFS
2297 test -z "$as_dir" && as_dir=.
2298 for ac_exec_ext in '' $ac_executable_extensions; do
2299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2300 ac_cv_prog_CC="${ac_tool_prefix}cc"
2301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302 break 2
2303 fi
2304 done
2305 done
2306
2307 fi
2308 fi
2309 CC=$ac_cv_prog_CC
2310 if test -n "$CC"; then
2311 echo "$as_me:$LINENO: result: $CC" >&5
2312 echo "${ECHO_T}$CC" >&6
2313 else
2314 echo "$as_me:$LINENO: result: no" >&5
2315 echo "${ECHO_T}no" >&6
2316 fi
2317
2318 fi
2319 if test -z "$ac_cv_prog_CC"; then
2320 ac_ct_CC=$CC
2321 # Extract the first word of "cc", so it can be a program name with args.
2322 set dummy cc; ac_word=$2
2323 echo "$as_me:$LINENO: checking for $ac_word" >&5
2324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2325 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 else
2328 if test -n "$ac_ct_CC"; then
2329 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2330 else
2331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332 for as_dir in $PATH
2333 do
2334 IFS=$as_save_IFS
2335 test -z "$as_dir" && as_dir=.
2336 for ac_exec_ext in '' $ac_executable_extensions; do
2337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2338 ac_cv_prog_ac_ct_CC="cc"
2339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2340 break 2
2341 fi
2342 done
2343 done
2344
2345 fi
2346 fi
2347 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2348 if test -n "$ac_ct_CC"; then
2349 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2350 echo "${ECHO_T}$ac_ct_CC" >&6
2351 else
2352 echo "$as_me:$LINENO: result: no" >&5
2353 echo "${ECHO_T}no" >&6
2354 fi
2355
2356 CC=$ac_ct_CC
2357 else
2358 CC="$ac_cv_prog_CC"
2359 fi
2360
2361 fi
2362 if test -z "$CC"; then
2363 # Extract the first word of "cc", so it can be a program name with args.
2364 set dummy cc; ac_word=$2
2365 echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2367 if test "${ac_cv_prog_CC+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370 if test -n "$CC"; then
2371 ac_cv_prog_CC="$CC" # Let the user override the test.
2372 else
2373 ac_prog_rejected=no
2374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375 for as_dir in $PATH
2376 do
2377 IFS=$as_save_IFS
2378 test -z "$as_dir" && as_dir=.
2379 for ac_exec_ext in '' $ac_executable_extensions; do
2380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2381 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2382 ac_prog_rejected=yes
2383 continue
2384 fi
2385 ac_cv_prog_CC="cc"
2386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2387 break 2
2388 fi
2389 done
2390 done
2391
2392 if test $ac_prog_rejected = yes; then
2393 # We found a bogon in the path, so make sure we never use it.
2394 set dummy $ac_cv_prog_CC
2395 shift
2396 if test $# != 0; then
2397 # We chose a different compiler from the bogus one.
2398 # However, it has the same basename, so the bogon will be chosen
2399 # first if we set CC to just the basename; use the full file name.
2400 shift
2401 set dummy "$as_dir/$ac_word" ${1+"$@"}
2402 shift
2403 ac_cv_prog_CC="$@"
2404 fi
2405 fi
2406 fi
2407 fi
2408 CC=$ac_cv_prog_CC
2409 if test -n "$CC"; then
2410 echo "$as_me:$LINENO: result: $CC" >&5
2411 echo "${ECHO_T}$CC" >&6
2412 else
2413 echo "$as_me:$LINENO: result: no" >&5
2414 echo "${ECHO_T}no" >&6
2415 fi
2416
2417 fi
2418 if test -z "$CC"; then
2419 if test -n "$ac_tool_prefix"; then
2420 for ac_prog in cl
2421 do
2422 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2423 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2424 echo "$as_me:$LINENO: checking for $ac_word" >&5
2425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2426 if test "${ac_cv_prog_CC+set}" = set; then
2427 echo $ECHO_N "(cached) $ECHO_C" >&6
2428 else
2429 if test -n "$CC"; then
2430 ac_cv_prog_CC="$CC" # Let the user override the test.
2431 else
2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 for as_dir in $PATH
2434 do
2435 IFS=$as_save_IFS
2436 test -z "$as_dir" && as_dir=.
2437 for ac_exec_ext in '' $ac_executable_extensions; do
2438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2439 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2441 break 2
2442 fi
2443 done
2444 done
2445
2446 fi
2447 fi
2448 CC=$ac_cv_prog_CC
2449 if test -n "$CC"; then
2450 echo "$as_me:$LINENO: result: $CC" >&5
2451 echo "${ECHO_T}$CC" >&6
2452 else
2453 echo "$as_me:$LINENO: result: no" >&5
2454 echo "${ECHO_T}no" >&6
2455 fi
2456
2457 test -n "$CC" && break
2458 done
2459 fi
2460 if test -z "$CC"; then
2461 ac_ct_CC=$CC
2462 for ac_prog in cl
2463 do
2464 # Extract the first word of "$ac_prog", so it can be a program name with args.
2465 set dummy $ac_prog; ac_word=$2
2466 echo "$as_me:$LINENO: checking for $ac_word" >&5
2467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2468 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2470 else
2471 if test -n "$ac_ct_CC"; then
2472 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2473 else
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 for as_dir in $PATH
2476 do
2477 IFS=$as_save_IFS
2478 test -z "$as_dir" && as_dir=.
2479 for ac_exec_ext in '' $ac_executable_extensions; do
2480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2481 ac_cv_prog_ac_ct_CC="$ac_prog"
2482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483 break 2
2484 fi
2485 done
2486 done
2487
2488 fi
2489 fi
2490 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2491 if test -n "$ac_ct_CC"; then
2492 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2493 echo "${ECHO_T}$ac_ct_CC" >&6
2494 else
2495 echo "$as_me:$LINENO: result: no" >&5
2496 echo "${ECHO_T}no" >&6
2497 fi
2498
2499 test -n "$ac_ct_CC" && break
2500 done
2501
2502 CC=$ac_ct_CC
2503 fi
2504
2505 fi
2506
2507
2508 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2509 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2510 { (exit 1); exit 1; }; }
2511
2512 # Provide some information about the compiler.
2513 echo "$as_me:$LINENO:" \
2514 "checking for C compiler version" >&5
2515 ac_compiler=`set X $ac_compile; echo $2`
2516 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2517 (eval $ac_compiler --version </dev/null >&5) 2>&5
2518 ac_status=$?
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }
2521 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2522 (eval $ac_compiler -v </dev/null >&5) 2>&5
2523 ac_status=$?
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }
2526 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2527 (eval $ac_compiler -V </dev/null >&5) 2>&5
2528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }
2531
2532 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2533 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2534 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2536 else
2537 cat >conftest.$ac_ext <<_ACEOF
2538 #line $LINENO "configure"
2539 #include "confdefs.h"
2540
2541 #ifdef F77_DUMMY_MAIN
2542 # ifdef __cplusplus
2543 extern "C"
2544 # endif
2545 int F77_DUMMY_MAIN() { return 1; }
2546 #endif
2547 int
2548 main ()
2549 {
2550 #ifndef __GNUC__
2551 choke me
2552 #endif
2553
2554 ;
2555 return 0;
2556 }
2557 _ACEOF
2558 rm -f conftest.$ac_objext
2559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2560 (eval $ac_compile) 2>&5
2561 ac_status=$?
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); } &&
2564 { ac_try='test -s conftest.$ac_objext'
2565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566 (eval $ac_try) 2>&5
2567 ac_status=$?
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; }; then
2570 ac_compiler_gnu=yes
2571 else
2572 echo "$as_me: failed program was:" >&5
2573 cat conftest.$ac_ext >&5
2574 ac_compiler_gnu=no
2575 fi
2576 rm -f conftest.$ac_objext conftest.$ac_ext
2577 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2578
2579 fi
2580 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2581 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2582 GCC=`test $ac_compiler_gnu = yes && echo yes`
2583 ac_test_CFLAGS=${CFLAGS+set}
2584 ac_save_CFLAGS=$CFLAGS
2585 CFLAGS="-g"
2586 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2587 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2588 if test "${ac_cv_prog_cc_g+set}" = set; then
2589 echo $ECHO_N "(cached) $ECHO_C" >&6
2590 else
2591 cat >conftest.$ac_ext <<_ACEOF
2592 #line $LINENO "configure"
2593 #include "confdefs.h"
2594
2595 #ifdef F77_DUMMY_MAIN
2596 # ifdef __cplusplus
2597 extern "C"
2598 # endif
2599 int F77_DUMMY_MAIN() { return 1; }
2600 #endif
2601 int
2602 main ()
2603 {
2604
2605 ;
2606 return 0;
2607 }
2608 _ACEOF
2609 rm -f conftest.$ac_objext
2610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2611 (eval $ac_compile) 2>&5
2612 ac_status=$?
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); } &&
2615 { ac_try='test -s conftest.$ac_objext'
2616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617 (eval $ac_try) 2>&5
2618 ac_status=$?
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; }; then
2621 ac_cv_prog_cc_g=yes
2622 else
2623 echo "$as_me: failed program was:" >&5
2624 cat conftest.$ac_ext >&5
2625 ac_cv_prog_cc_g=no
2626 fi
2627 rm -f conftest.$ac_objext conftest.$ac_ext
2628 fi
2629 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2630 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2631 if test "$ac_test_CFLAGS" = set; then
2632 CFLAGS=$ac_save_CFLAGS
2633 elif test $ac_cv_prog_cc_g = yes; then
2634 if test "$GCC" = yes; then
2635 CFLAGS="-g -O2"
2636 else
2637 CFLAGS="-g"
2638 fi
2639 else
2640 if test "$GCC" = yes; then
2641 CFLAGS="-O2"
2642 else
2643 CFLAGS=
2644 fi
2645 fi
2646 # Some people use a C++ compiler to compile C. Since we use `exit',
2647 # in C++ we need to declare it. In case someone uses the same compiler
2648 # for both compiling C and C++ we need to have the C++ compiler decide
2649 # the declaration of exit, since it's the most demanding environment.
2650 cat >conftest.$ac_ext <<_ACEOF
2651 #ifndef __cplusplus
2652 choke me
2653 #endif
2654 _ACEOF
2655 rm -f conftest.$ac_objext
2656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2657 (eval $ac_compile) 2>&5
2658 ac_status=$?
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); } &&
2661 { ac_try='test -s conftest.$ac_objext'
2662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663 (eval $ac_try) 2>&5
2664 ac_status=$?
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }; }; then
2667 for ac_declaration in \
2668 ''\
2669 '#include <stdlib.h>' \
2670 'extern "C" void std::exit (int) throw (); using std::exit;' \
2671 'extern "C" void std::exit (int); using std::exit;' \
2672 'extern "C" void exit (int) throw ();' \
2673 'extern "C" void exit (int);' \
2674 'void exit (int);'
2675 do
2676 cat >conftest.$ac_ext <<_ACEOF
2677 #line $LINENO "configure"
2678 #include "confdefs.h"
2679 #include <stdlib.h>
2680 $ac_declaration
2681 #ifdef F77_DUMMY_MAIN
2682 # ifdef __cplusplus
2683 extern "C"
2684 # endif
2685 int F77_DUMMY_MAIN() { return 1; }
2686 #endif
2687 int
2688 main ()
2689 {
2690 exit (42);
2691 ;
2692 return 0;
2693 }
2694 _ACEOF
2695 rm -f conftest.$ac_objext
2696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697 (eval $ac_compile) 2>&5
2698 ac_status=$?
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); } &&
2701 { ac_try='test -s conftest.$ac_objext'
2702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703 (eval $ac_try) 2>&5
2704 ac_status=$?
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; }; then
2707 :
2708 else
2709 echo "$as_me: failed program was:" >&5
2710 cat conftest.$ac_ext >&5
2711 continue
2712 fi
2713 rm -f conftest.$ac_objext conftest.$ac_ext
2714 cat >conftest.$ac_ext <<_ACEOF
2715 #line $LINENO "configure"
2716 #include "confdefs.h"
2717 $ac_declaration
2718 #ifdef F77_DUMMY_MAIN
2719 # ifdef __cplusplus
2720 extern "C"
2721 # endif
2722 int F77_DUMMY_MAIN() { return 1; }
2723 #endif
2724 int
2725 main ()
2726 {
2727 exit (42);
2728 ;
2729 return 0;
2730 }
2731 _ACEOF
2732 rm -f conftest.$ac_objext
2733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2734 (eval $ac_compile) 2>&5
2735 ac_status=$?
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); } &&
2738 { ac_try='test -s conftest.$ac_objext'
2739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740 (eval $ac_try) 2>&5
2741 ac_status=$?
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; }; then
2744 break
2745 else
2746 echo "$as_me: failed program was:" >&5
2747 cat conftest.$ac_ext >&5
2748 fi
2749 rm -f conftest.$ac_objext conftest.$ac_ext
2750 done
2751 rm -f conftest*
2752 if test -n "$ac_declaration"; then
2753 echo '#ifdef __cplusplus' >>confdefs.h
2754 echo $ac_declaration >>confdefs.h
2755 echo '#endif' >>confdefs.h
2756 fi
2757
2758 else
2759 echo "$as_me: failed program was:" >&5
2760 cat conftest.$ac_ext >&5
2761 fi
2762 rm -f conftest.$ac_objext conftest.$ac_ext
2763 ac_ext=c
2764 ac_cpp='$CPP $CPPFLAGS'
2765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2768
2769
2770 if test -n "$ac_tool_prefix"; then
2771 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2772 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2773 echo "$as_me:$LINENO: checking for $ac_word" >&5
2774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2775 if test "${ac_cv_prog_RANLIB+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 else
2778 if test -n "$RANLIB"; then
2779 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2780 else
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2783 do
2784 IFS=$as_save_IFS
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2788 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2790 break 2
2791 fi
2792 done
2793 done
2794
2795 fi
2796 fi
2797 RANLIB=$ac_cv_prog_RANLIB
2798 if test -n "$RANLIB"; then
2799 echo "$as_me:$LINENO: result: $RANLIB" >&5
2800 echo "${ECHO_T}$RANLIB" >&6
2801 else
2802 echo "$as_me:$LINENO: result: no" >&5
2803 echo "${ECHO_T}no" >&6
2804 fi
2805
2806 fi
2807 if test -z "$ac_cv_prog_RANLIB"; then
2808 ac_ct_RANLIB=$RANLIB
2809 # Extract the first word of "ranlib", so it can be a program name with args.
2810 set dummy ranlib; ac_word=$2
2811 echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2813 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2815 else
2816 if test -n "$ac_ct_RANLIB"; then
2817 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2818 else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2821 do
2822 IFS=$as_save_IFS
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826 ac_cv_prog_ac_ct_RANLIB="ranlib"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 break 2
2829 fi
2830 done
2831 done
2832
2833 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2834 fi
2835 fi
2836 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2837 if test -n "$ac_ct_RANLIB"; then
2838 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2839 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2840 else
2841 echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6
2843 fi
2844
2845 RANLIB=$ac_ct_RANLIB
2846 else
2847 RANLIB="$ac_cv_prog_RANLIB"
2848 fi
2849
2850
2851
2852 echo "$as_me:$LINENO: checking for main in -lm" >&5
2853 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
2854 if test "${ac_cv_lib_m_main+set}" = set; then
2855 echo $ECHO_N "(cached) $ECHO_C" >&6
2856 else
2857 ac_check_lib_save_LIBS=$LIBS
2858 LIBS="-lm $LIBS"
2859 cat >conftest.$ac_ext <<_ACEOF
2860 #line $LINENO "configure"
2861 #include "confdefs.h"
2862
2863
2864 #ifdef F77_DUMMY_MAIN
2865 # ifdef __cplusplus
2866 extern "C"
2867 # endif
2868 int F77_DUMMY_MAIN() { return 1; }
2869 #endif
2870 int
2871 main ()
2872 {
2873 main ();
2874 ;
2875 return 0;
2876 }
2877 _ACEOF
2878 rm -f conftest.$ac_objext conftest$ac_exeext
2879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2880 (eval $ac_link) 2>&5
2881 ac_status=$?
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); } &&
2884 { ac_try='test -s conftest$ac_exeext'
2885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 (eval $ac_try) 2>&5
2887 ac_status=$?
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; }; then
2890 ac_cv_lib_m_main=yes
2891 else
2892 echo "$as_me: failed program was:" >&5
2893 cat conftest.$ac_ext >&5
2894 ac_cv_lib_m_main=no
2895 fi
2896 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2897 LIBS=$ac_check_lib_save_LIBS
2898 fi
2899 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
2900 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
2901 if test $ac_cv_lib_m_main = yes; then
2902 cat >>confdefs.h <<_ACEOF
2903 #define HAVE_LIBM 1
2904 _ACEOF
2905
2906 LIBS="-lm $LIBS"
2907
2908 fi
2909
2910
2911
2912 echo "$as_me:$LINENO: checking for vsnprintf in -lsnprintf" >&5
2913 echo $ECHO_N "checking for vsnprintf in -lsnprintf... $ECHO_C" >&6
2914 if test "${ac_cv_lib_snprintf_vsnprintf+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 else
2917 ac_check_lib_save_LIBS=$LIBS
2918 LIBS="-lsnprintf $LIBS"
2919 cat >conftest.$ac_ext <<_ACEOF
2920 #line $LINENO "configure"
2921 #include "confdefs.h"
2922
2923 /* Override any gcc2 internal prototype to avoid an error. */
2924 #ifdef __cplusplus
2925 extern "C"
2926 #endif
2927 /* We use char because int might match the return type of a gcc2
2928 builtin and then its argument prototype would still apply. */
2929 char vsnprintf ();
2930 #ifdef F77_DUMMY_MAIN
2931 # ifdef __cplusplus
2932 extern "C"
2933 # endif
2934 int F77_DUMMY_MAIN() { return 1; }
2935 #endif
2936 int
2937 main ()
2938 {
2939 vsnprintf ();
2940 ;
2941 return 0;
2942 }
2943 _ACEOF
2944 rm -f conftest.$ac_objext conftest$ac_exeext
2945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2946 (eval $ac_link) 2>&5
2947 ac_status=$?
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } &&
2950 { ac_try='test -s conftest$ac_exeext'
2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952 (eval $ac_try) 2>&5
2953 ac_status=$?
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; }; then
2956 ac_cv_lib_snprintf_vsnprintf=yes
2957 else
2958 echo "$as_me: failed program was:" >&5
2959 cat conftest.$ac_ext >&5
2960 ac_cv_lib_snprintf_vsnprintf=no
2961 fi
2962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2963 LIBS=$ac_check_lib_save_LIBS
2964 fi
2965 echo "$as_me:$LINENO: result: $ac_cv_lib_snprintf_vsnprintf" >&5
2966 echo "${ECHO_T}$ac_cv_lib_snprintf_vsnprintf" >&6
2967 if test $ac_cv_lib_snprintf_vsnprintf = yes; then
2968 cat >>confdefs.h <<_ACEOF
2969 #define HAVE_LIBSNPRINTF 1
2970 _ACEOF
2971
2972 LIBS="-lsnprintf $LIBS"
2973
2974 fi
2975
2976
2977
2978
2979
2980
2981
2982 ac_header_dirent=no
2983 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
2984 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
2985 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
2986 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
2987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2989 else
2990 cat >conftest.$ac_ext <<_ACEOF
2991 #line $LINENO "configure"
2992 #include "confdefs.h"
2993 #include <sys/types.h>
2994 #include <$ac_hdr>
2995
2996 #ifdef F77_DUMMY_MAIN
2997 # ifdef __cplusplus
2998 extern "C"
2999 # endif
3000 int F77_DUMMY_MAIN() { return 1; }
3001 #endif
3002 int
3003 main ()
3004 {
3005 if ((DIR *) 0)
3006 return 0;
3007 ;
3008 return 0;
3009 }
3010 _ACEOF
3011 rm -f conftest.$ac_objext
3012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3013 (eval $ac_compile) 2>&5
3014 ac_status=$?
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); } &&
3017 { ac_try='test -s conftest.$ac_objext'
3018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3019 (eval $ac_try) 2>&5
3020 ac_status=$?
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }; }; then
3023 eval "$as_ac_Header=yes"
3024 else
3025 echo "$as_me: failed program was:" >&5
3026 cat conftest.$ac_ext >&5
3027 eval "$as_ac_Header=no"
3028 fi
3029 rm -f conftest.$ac_objext conftest.$ac_ext
3030 fi
3031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3034 cat >>confdefs.h <<_ACEOF
3035 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3036 _ACEOF
3037
3038 ac_header_dirent=$ac_hdr; break
3039 fi
3040
3041 done
3042 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3043 if test $ac_header_dirent = dirent.h; then
3044 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3045 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3046 if test "${ac_cv_search_opendir+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3048 else
3049 ac_func_search_save_LIBS=$LIBS
3050 ac_cv_search_opendir=no
3051 cat >conftest.$ac_ext <<_ACEOF
3052 #line $LINENO "configure"
3053 #include "confdefs.h"
3054
3055 /* Override any gcc2 internal prototype to avoid an error. */
3056 #ifdef __cplusplus
3057 extern "C"
3058 #endif
3059 /* We use char because int might match the return type of a gcc2
3060 builtin and then its argument prototype would still apply. */
3061 char opendir ();
3062 #ifdef F77_DUMMY_MAIN
3063 # ifdef __cplusplus
3064 extern "C"
3065 # endif
3066 int F77_DUMMY_MAIN() { return 1; }
3067 #endif
3068 int
3069 main ()
3070 {
3071 opendir ();
3072 ;
3073 return 0;
3074 }
3075 _ACEOF
3076 rm -f conftest.$ac_objext conftest$ac_exeext
3077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3078 (eval $ac_link) 2>&5
3079 ac_status=$?
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); } &&
3082 { ac_try='test -s conftest$ac_exeext'
3083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084 (eval $ac_try) 2>&5
3085 ac_status=$?
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; }; then
3088 ac_cv_search_opendir="none required"
3089 else
3090 echo "$as_me: failed program was:" >&5
3091 cat conftest.$ac_ext >&5
3092 fi
3093 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3094 if test "$ac_cv_search_opendir" = no; then
3095 for ac_lib in dir; do
3096 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3097 cat >conftest.$ac_ext <<_ACEOF
3098 #line $LINENO "configure"
3099 #include "confdefs.h"
3100
3101 /* Override any gcc2 internal prototype to avoid an error. */
3102 #ifdef __cplusplus
3103 extern "C"
3104 #endif
3105 /* We use char because int might match the return type of a gcc2
3106 builtin and then its argument prototype would still apply. */
3107 char opendir ();
3108 #ifdef F77_DUMMY_MAIN
3109 # ifdef __cplusplus
3110 extern "C"
3111 # endif
3112 int F77_DUMMY_MAIN() { return 1; }
3113 #endif
3114 int
3115 main ()
3116 {
3117 opendir ();
3118 ;
3119 return 0;
3120 }
3121 _ACEOF
3122 rm -f conftest.$ac_objext conftest$ac_exeext
3123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3124 (eval $ac_link) 2>&5
3125 ac_status=$?
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); } &&
3128 { ac_try='test -s conftest$ac_exeext'
3129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3130 (eval $ac_try) 2>&5
3131 ac_status=$?
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); }; }; then
3134 ac_cv_search_opendir="-l$ac_lib"
3135 break
3136 else
3137 echo "$as_me: failed program was:" >&5
3138 cat conftest.$ac_ext >&5
3139 fi
3140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3141 done
3142 fi
3143 LIBS=$ac_func_search_save_LIBS
3144 fi
3145 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3146 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3147 if test "$ac_cv_search_opendir" != no; then
3148 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3149
3150 fi
3151
3152 else
3153 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3154 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3155 if test "${ac_cv_search_opendir+set}" = set; then
3156 echo $ECHO_N "(cached) $ECHO_C" >&6
3157 else
3158 ac_func_search_save_LIBS=$LIBS
3159 ac_cv_search_opendir=no
3160 cat >conftest.$ac_ext <<_ACEOF
3161 #line $LINENO "configure"
3162 #include "confdefs.h"
3163
3164 /* Override any gcc2 internal prototype to avoid an error. */
3165 #ifdef __cplusplus
3166 extern "C"
3167 #endif
3168 /* We use char because int might match the return type of a gcc2
3169 builtin and then its argument prototype would still apply. */
3170 char opendir ();
3171 #ifdef F77_DUMMY_MAIN
3172 # ifdef __cplusplus
3173 extern "C"
3174 # endif
3175 int F77_DUMMY_MAIN() { return 1; }
3176 #endif
3177 int
3178 main ()
3179 {
3180 opendir ();
3181 ;
3182 return 0;
3183 }
3184 _ACEOF
3185 rm -f conftest.$ac_objext conftest$ac_exeext
3186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3187 (eval $ac_link) 2>&5
3188 ac_status=$?
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); } &&
3191 { ac_try='test -s conftest$ac_exeext'
3192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3193 (eval $ac_try) 2>&5
3194 ac_status=$?
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; }; then
3197 ac_cv_search_opendir="none required"
3198 else
3199 echo "$as_me: failed program was:" >&5
3200 cat conftest.$ac_ext >&5
3201 fi
3202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3203 if test "$ac_cv_search_opendir" = no; then
3204 for ac_lib in x; do
3205 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3206 cat >conftest.$ac_ext <<_ACEOF
3207 #line $LINENO "configure"
3208 #include "confdefs.h"
3209
3210 /* Override any gcc2 internal prototype to avoid an error. */
3211 #ifdef __cplusplus
3212 extern "C"
3213 #endif
3214 /* We use char because int might match the return type of a gcc2
3215 builtin and then its argument prototype would still apply. */
3216 char opendir ();
3217 #ifdef F77_DUMMY_MAIN
3218 # ifdef __cplusplus
3219 extern "C"
3220 # endif
3221 int F77_DUMMY_MAIN() { return 1; }
3222 #endif
3223 int
3224 main ()
3225 {
3226 opendir ();
3227 ;
3228 return 0;
3229 }
3230 _ACEOF
3231 rm -f conftest.$ac_objext conftest$ac_exeext
3232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3233 (eval $ac_link) 2>&5
3234 ac_status=$?
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } &&
3237 { ac_try='test -s conftest$ac_exeext'
3238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239 (eval $ac_try) 2>&5
3240 ac_status=$?
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }; }; then
3243 ac_cv_search_opendir="-l$ac_lib"
3244 break
3245 else
3246 echo "$as_me: failed program was:" >&5
3247 cat conftest.$ac_ext >&5
3248 fi
3249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3250 done
3251 fi
3252 LIBS=$ac_func_search_save_LIBS
3253 fi
3254 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3255 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3256 if test "$ac_cv_search_opendir" != no; then
3257 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3258
3259 fi
3260
3261 fi
3262
3263
3264
3265 ac_ext=c
3266 ac_cpp='$CPP $CPPFLAGS'
3267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3271 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3272 # On Suns, sometimes $CPP names a directory.
3273 if test -n "$CPP" && test -d "$CPP"; then
3274 CPP=
3275 fi
3276 if test -z "$CPP"; then
3277 if test "${ac_cv_prog_CPP+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3279 else
3280 # Double quotes because CPP needs to be expanded
3281 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3282 do
3283 ac_preproc_ok=false
3284 for ac_c_preproc_warn_flag in '' yes
3285 do
3286 # Use a header file that comes with gcc, so configuring glibc
3287 # with a fresh cross-compiler works.
3288 # On the NeXT, cc -E runs the code through the compiler's parser,
3289 # not just through cpp. "Syntax error" is here to catch this case.
3290 cat >conftest.$ac_ext <<_ACEOF
3291 #line $LINENO "configure"
3292 #include "confdefs.h"
3293 #include <assert.h>
3294 Syntax error
3295 _ACEOF
3296 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3297 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3298 ac_status=$?
3299 egrep -v '^ *\+' conftest.er1 >conftest.err
3300 rm -f conftest.er1
3301 cat conftest.err >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); } >/dev/null; then
3304 if test -s conftest.err; then
3305 ac_cpp_err=$ac_c_preproc_warn_flag
3306 else
3307 ac_cpp_err=
3308 fi
3309 else
3310 ac_cpp_err=yes
3311 fi
3312 if test -z "$ac_cpp_err"; then
3313 :
3314 else
3315 echo "$as_me: failed program was:" >&5
3316 cat conftest.$ac_ext >&5
3317 # Broken: fails on valid input.
3318 continue
3319 fi
3320 rm -f conftest.err conftest.$ac_ext
3321
3322 # OK, works on sane cases. Now check whether non-existent headers
3323 # can be detected and how.
3324 cat >conftest.$ac_ext <<_ACEOF
3325 #line $LINENO "configure"
3326 #include "confdefs.h"
3327 #include <ac_nonexistent.h>
3328 _ACEOF
3329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3331 ac_status=$?
3332 egrep -v '^ *\+' conftest.er1 >conftest.err
3333 rm -f conftest.er1
3334 cat conftest.err >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); } >/dev/null; then
3337 if test -s conftest.err; then
3338 ac_cpp_err=$ac_c_preproc_warn_flag
3339 else
3340 ac_cpp_err=
3341 fi
3342 else
3343 ac_cpp_err=yes
3344 fi
3345 if test -z "$ac_cpp_err"; then
3346 # Broken: success on invalid input.
3347 continue
3348 else
3349 echo "$as_me: failed program was:" >&5
3350 cat conftest.$ac_ext >&5
3351 # Passes both tests.
3352 ac_preproc_ok=:
3353 break
3354 fi
3355 rm -f conftest.err conftest.$ac_ext
3356
3357 done
3358 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3359 rm -f conftest.err conftest.$ac_ext
3360 if $ac_preproc_ok; then
3361 break
3362 fi
3363
3364 done
3365 ac_cv_prog_CPP=$CPP
3366
3367 fi
3368 CPP=$ac_cv_prog_CPP
3369 else
3370 ac_cv_prog_CPP=$CPP
3371 fi
3372 echo "$as_me:$LINENO: result: $CPP" >&5
3373 echo "${ECHO_T}$CPP" >&6
3374 ac_preproc_ok=false
3375 for ac_c_preproc_warn_flag in '' yes
3376 do
3377 # Use a header file that comes with gcc, so configuring glibc
3378 # with a fresh cross-compiler works.
3379 # On the NeXT, cc -E runs the code through the compiler's parser,
3380 # not just through cpp. "Syntax error" is here to catch this case.
3381 cat >conftest.$ac_ext <<_ACEOF
3382 #line $LINENO "configure"
3383 #include "confdefs.h"
3384 #include <assert.h>
3385 Syntax error
3386 _ACEOF
3387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3389 ac_status=$?
3390 egrep -v '^ *\+' conftest.er1 >conftest.err
3391 rm -f conftest.er1
3392 cat conftest.err >&5
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); } >/dev/null; then
3395 if test -s conftest.err; then
3396 ac_cpp_err=$ac_c_preproc_warn_flag
3397 else
3398 ac_cpp_err=
3399 fi
3400 else
3401 ac_cpp_err=yes
3402 fi
3403 if test -z "$ac_cpp_err"; then
3404 :
3405 else
3406 echo "$as_me: failed program was:" >&5
3407 cat conftest.$ac_ext >&5
3408 # Broken: fails on valid input.
3409 continue
3410 fi
3411 rm -f conftest.err conftest.$ac_ext
3412
3413 # OK, works on sane cases. Now check whether non-existent headers
3414 # can be detected and how.
3415 cat >conftest.$ac_ext <<_ACEOF
3416 #line $LINENO "configure"
3417 #include "confdefs.h"
3418 #include <ac_nonexistent.h>
3419 _ACEOF
3420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3422 ac_status=$?
3423 egrep -v '^ *\+' conftest.er1 >conftest.err
3424 rm -f conftest.er1
3425 cat conftest.err >&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); } >/dev/null; then
3428 if test -s conftest.err; then
3429 ac_cpp_err=$ac_c_preproc_warn_flag
3430 else
3431 ac_cpp_err=
3432 fi
3433 else
3434 ac_cpp_err=yes
3435 fi
3436 if test -z "$ac_cpp_err"; then
3437 # Broken: success on invalid input.
3438 continue
3439 else
3440 echo "$as_me: failed program was:" >&5
3441 cat conftest.$ac_ext >&5
3442 # Passes both tests.
3443 ac_preproc_ok=:
3444 break
3445 fi
3446 rm -f conftest.err conftest.$ac_ext
3447
3448 done
3449 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3450 rm -f conftest.err conftest.$ac_ext
3451 if $ac_preproc_ok; then
3452 :
3453 else
3454 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3455 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3456 { (exit 1); exit 1; }; }
3457 fi
3458
3459 ac_ext=c
3460 ac_cpp='$CPP $CPPFLAGS'
3461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3464
3465
3466 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3467 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3468 if test "${ac_cv_header_stdc+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3470 else
3471 cat >conftest.$ac_ext <<_ACEOF
3472 #line $LINENO "configure"
3473 #include "confdefs.h"
3474 #include <stdlib.h>
3475 #include <stdarg.h>
3476 #include <string.h>
3477 #include <float.h>
3478
3479 _ACEOF
3480 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3482 ac_status=$?
3483 egrep -v '^ *\+' conftest.er1 >conftest.err
3484 rm -f conftest.er1
3485 cat conftest.err >&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); } >/dev/null; then
3488 if test -s conftest.err; then
3489 ac_cpp_err=$ac_c_preproc_warn_flag
3490 else
3491 ac_cpp_err=
3492 fi
3493 else
3494 ac_cpp_err=yes
3495 fi
3496 if test -z "$ac_cpp_err"; then
3497 ac_cv_header_stdc=yes
3498 else
3499 echo "$as_me: failed program was:" >&5
3500 cat conftest.$ac_ext >&5
3501 ac_cv_header_stdc=no
3502 fi
3503 rm -f conftest.err conftest.$ac_ext
3504
3505 if test $ac_cv_header_stdc = yes; then
3506 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3507 cat >conftest.$ac_ext <<_ACEOF
3508 #line $LINENO "configure"
3509 #include "confdefs.h"
3510 #include <string.h>
3511
3512 _ACEOF
3513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3514 egrep "memchr" >/dev/null 2>&1; then
3515 :
3516 else
3517 ac_cv_header_stdc=no
3518 fi
3519 rm -f conftest*
3520
3521 fi
3522
3523 if test $ac_cv_header_stdc = yes; then
3524 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3525 cat >conftest.$ac_ext <<_ACEOF
3526 #line $LINENO "configure"
3527 #include "confdefs.h"
3528 #include <stdlib.h>
3529
3530 _ACEOF
3531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3532 egrep "free" >/dev/null 2>&1; then
3533 :
3534 else
3535 ac_cv_header_stdc=no
3536 fi
3537 rm -f conftest*
3538
3539 fi
3540
3541 if test $ac_cv_header_stdc = yes; then
3542 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3543 if test "$cross_compiling" = yes; then
3544 :
3545 else
3546 cat >conftest.$ac_ext <<_ACEOF
3547 #line $LINENO "configure"
3548 #include "confdefs.h"
3549 #include <ctype.h>
3550 #if ((' ' & 0x0FF) == 0x020)
3551 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3552 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3553 #else
3554 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3555 || ('j' <= (c) && (c) <= 'r') \
3556 || ('s' <= (c) && (c) <= 'z'))
3557 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3558 #endif
3559
3560 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3561 int
3562 main ()
3563 {
3564 int i;
3565 for (i = 0; i < 256; i++)
3566 if (XOR (islower (i), ISLOWER (i))
3567 || toupper (i) != TOUPPER (i))
3568 exit(2);
3569 exit (0);
3570 }
3571 _ACEOF
3572 rm -f conftest$ac_exeext
3573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3574 (eval $ac_link) 2>&5
3575 ac_status=$?
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579 (eval $ac_try) 2>&5
3580 ac_status=$?
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; }; then
3583 :
3584 else
3585 echo "$as_me: program exited with status $ac_status" >&5
3586 echo "$as_me: failed program was:" >&5
3587 cat conftest.$ac_ext >&5
3588 ( exit $ac_status )
3589 ac_cv_header_stdc=no
3590 fi
3591 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3592 fi
3593 fi
3594 fi
3595 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3596 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3597 if test $ac_cv_header_stdc = yes; then
3598
3599 cat >>confdefs.h <<\_ACEOF
3600 #define STDC_HEADERS 1
3601 _ACEOF
3602
3603 fi
3604
3605 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3616 inttypes.h stdint.h unistd.h
3617 do
3618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3619 echo "$as_me:$LINENO: checking for $ac_header" >&5
3620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3622 echo $ECHO_N "(cached) $ECHO_C" >&6
3623 else
3624 cat >conftest.$ac_ext <<_ACEOF
3625 #line $LINENO "configure"
3626 #include "confdefs.h"
3627 $ac_includes_default
3628
3629 #include <$ac_header>
3630 _ACEOF
3631 rm -f conftest.$ac_objext
3632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3633 (eval $ac_compile) 2>&5
3634 ac_status=$?
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); } &&
3637 { ac_try='test -s conftest.$ac_objext'
3638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3639 (eval $ac_try) 2>&5
3640 ac_status=$?
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); }; }; then
3643 eval "$as_ac_Header=yes"
3644 else
3645 echo "$as_me: failed program was:" >&5
3646 cat conftest.$ac_ext >&5
3647 eval "$as_ac_Header=no"
3648 fi
3649 rm -f conftest.$ac_objext conftest.$ac_ext
3650 fi
3651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3654 cat >>confdefs.h <<_ACEOF
3655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3656 _ACEOF
3657
3658 fi
3659
3660 done
3661
3662
3663
3664
3665 for ac_header in unistd.h stdlib.h
3666 do
3667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3669 echo "$as_me:$LINENO: checking for $ac_header" >&5
3670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3673 fi
3674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3675 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3676 else
3677 # Is the header compilable?
3678 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3680 cat >conftest.$ac_ext <<_ACEOF
3681 #line $LINENO "configure"
3682 #include "confdefs.h"
3683 $ac_includes_default
3684 #include <$ac_header>
3685 _ACEOF
3686 rm -f conftest.$ac_objext
3687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3688 (eval $ac_compile) 2>&5
3689 ac_status=$?
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); } &&
3692 { ac_try='test -s conftest.$ac_objext'
3693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3694 (eval $ac_try) 2>&5
3695 ac_status=$?
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; }; then
3698 ac_header_compiler=yes
3699 else
3700 echo "$as_me: failed program was:" >&5
3701 cat conftest.$ac_ext >&5
3702 ac_header_compiler=no
3703 fi
3704 rm -f conftest.$ac_objext conftest.$ac_ext
3705 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3706 echo "${ECHO_T}$ac_header_compiler" >&6
3707
3708 # Is the header present?
3709 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3710 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3711 cat >conftest.$ac_ext <<_ACEOF
3712 #line $LINENO "configure"
3713 #include "confdefs.h"
3714 #include <$ac_header>
3715 _ACEOF
3716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3717 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3718 ac_status=$?
3719 egrep -v '^ *\+' conftest.er1 >conftest.err
3720 rm -f conftest.er1
3721 cat conftest.err >&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } >/dev/null; then
3724 if test -s conftest.err; then
3725 ac_cpp_err=$ac_c_preproc_warn_flag
3726 else
3727 ac_cpp_err=
3728 fi
3729 else
3730 ac_cpp_err=yes
3731 fi
3732 if test -z "$ac_cpp_err"; then
3733 ac_header_preproc=yes
3734 else
3735 echo "$as_me: failed program was:" >&5
3736 cat conftest.$ac_ext >&5
3737 ac_header_preproc=no
3738 fi
3739 rm -f conftest.err conftest.$ac_ext
3740 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3741 echo "${ECHO_T}$ac_header_preproc" >&6
3742
3743 # So? What about this header?
3744 case $ac_header_compiler:$ac_header_preproc in
3745 yes:no )
3746 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3747 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3750 no:yes )
3751 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3752 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3753 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3754 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3757 esac
3758 echo "$as_me:$LINENO: checking for $ac_header" >&5
3759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
3762 else
3763 eval "$as_ac_Header=$ac_header_preproc"
3764 fi
3765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3767
3768 fi
3769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3770 cat >>confdefs.h <<_ACEOF
3771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3772 _ACEOF
3773
3774 fi
3775
3776 done
3777
3778
3779 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3780 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3781 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3782 echo $ECHO_N "(cached) $ECHO_C" >&6
3783 else
3784 ac_cv_prog_cc_stdc=no
3785 ac_save_CC=$CC
3786 cat >conftest.$ac_ext <<_ACEOF
3787 #line $LINENO "configure"
3788 #include "confdefs.h"
3789 #include <stdarg.h>
3790 #include <stdio.h>
3791 #include <sys/types.h>
3792 #include <sys/stat.h>
3793 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3794 struct buf { int x; };
3795 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3796 static char *e (p, i)
3797 char **p;
3798 int i;
3799 {
3800 return p[i];
3801 }
3802 static char *f (char * (*g) (char **, int), char **p, ...)
3803 {
3804 char *s;
3805 va_list v;
3806 va_start (v,p);
3807 s = g (p, va_arg (v,int));
3808 va_end (v);
3809 return s;
3810 }
3811 int test (int i, double x);
3812 struct s1 {int (*f) (int a);};
3813 struct s2 {int (*f) (double a);};
3814 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3815 int argc;
3816 char **argv;
3817 #ifdef F77_DUMMY_MAIN
3818 # ifdef __cplusplus
3819 extern "C"
3820 # endif
3821 int F77_DUMMY_MAIN() { return 1; }
3822 #endif
3823 int
3824 main ()
3825 {
3826 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3827 ;
3828 return 0;
3829 }
3830 _ACEOF
3831 # Don't try gcc -ansi; that turns off useful extensions and
3832 # breaks some systems' header files.
3833 # AIX -qlanglvl=ansi
3834 # Ultrix and OSF/1 -std1
3835 # HP-UX 10.20 and later -Ae
3836 # HP-UX older versions -Aa -D_HPUX_SOURCE
3837 # SVR4 -Xc -D__EXTENSIONS__
3838 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3839 do
3840 CC="$ac_save_CC $ac_arg"
3841 rm -f conftest.$ac_objext
3842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3843 (eval $ac_compile) 2>&5
3844 ac_status=$?
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } &&
3847 { ac_try='test -s conftest.$ac_objext'
3848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3849 (eval $ac_try) 2>&5
3850 ac_status=$?
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); }; }; then
3853 ac_cv_prog_cc_stdc=$ac_arg
3854 break
3855 else
3856 echo "$as_me: failed program was:" >&5
3857 cat conftest.$ac_ext >&5
3858 fi
3859 rm -f conftest.$ac_objext
3860 done
3861 rm -f conftest.$ac_ext conftest.$ac_objext
3862 CC=$ac_save_CC
3863
3864 fi
3865
3866 case "x$ac_cv_prog_cc_stdc" in
3867 x|xno)
3868 echo "$as_me:$LINENO: result: none needed" >&5
3869 echo "${ECHO_T}none needed" >&6 ;;
3870 *)
3871 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3872 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3873 CC="$CC $ac_cv_prog_cc_stdc" ;;
3874 esac
3875
3876 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3877 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3878 if test "${ac_cv_c_const+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 else
3881 cat >conftest.$ac_ext <<_ACEOF
3882 #line $LINENO "configure"
3883 #include "confdefs.h"
3884
3885 #ifdef F77_DUMMY_MAIN
3886 # ifdef __cplusplus
3887 extern "C"
3888 # endif
3889 int F77_DUMMY_MAIN() { return 1; }
3890 #endif
3891 int
3892 main ()
3893 {
3894 /* FIXME: Include the comments suggested by Paul. */
3895 #ifndef __cplusplus
3896 /* Ultrix mips cc rejects this. */
3897 typedef int charset[2];
3898 const charset x;
3899 /* SunOS 4.1.1 cc rejects this. */
3900 char const *const *ccp;
3901 char **p;
3902 /* NEC SVR4.0.2 mips cc rejects this. */
3903 struct point {int x, y;};
3904 static struct point const zero = {0,0};
3905 /* AIX XL C 1.02.0.0 rejects this.
3906 It does not let you subtract one const X* pointer from another in
3907 an arm of an if-expression whose if-part is not a constant
3908 expression */
3909 const char *g = "string";
3910 ccp = &g + (g ? g-g : 0);
3911 /* HPUX 7.0 cc rejects these. */
3912 ++ccp;
3913 p = (char**) ccp;
3914 ccp = (char const *const *) p;
3915 { /* SCO 3.2v4 cc rejects this. */
3916 char *t;
3917 char const *s = 0 ? (char *) 0 : (char const *) 0;
3918
3919 *t++ = 0;
3920 }
3921 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3922 int x[] = {25, 17};
3923 const int *foo = &x[0];
3924 ++foo;
3925 }
3926 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3927 typedef const int *iptr;
3928 iptr p = 0;
3929 ++p;
3930 }
3931 { /* AIX XL C 1.02.0.0 rejects this saying
3932 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3933 struct s { int j; const int *ap[3]; };
3934 struct s *b; b->j = 5;
3935 }
3936 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3937 const int foo = 10;
3938 }
3939 #endif
3940
3941 ;
3942 return 0;
3943 }
3944 _ACEOF
3945 rm -f conftest.$ac_objext
3946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3947 (eval $ac_compile) 2>&5
3948 ac_status=$?
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); } &&
3951 { ac_try='test -s conftest.$ac_objext'
3952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3953 (eval $ac_try) 2>&5
3954 ac_status=$?
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); }; }; then
3957 ac_cv_c_const=yes
3958 else
3959 echo "$as_me: failed program was:" >&5
3960 cat conftest.$ac_ext >&5
3961 ac_cv_c_const=no
3962 fi
3963 rm -f conftest.$ac_objext conftest.$ac_ext
3964 fi
3965 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3966 echo "${ECHO_T}$ac_cv_c_const" >&6
3967 if test $ac_cv_c_const = no; then
3968
3969 cat >>confdefs.h <<\_ACEOF
3970 #define const
3971 _ACEOF
3972
3973 fi
3974
3975 echo "$as_me:$LINENO: checking for pid_t" >&5
3976 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
3977 if test "${ac_cv_type_pid_t+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3979 else
3980 cat >conftest.$ac_ext <<_ACEOF
3981 #line $LINENO "configure"
3982 #include "confdefs.h"
3983 $ac_includes_default
3984 #ifdef F77_DUMMY_MAIN
3985 # ifdef __cplusplus
3986 extern "C"
3987 # endif
3988 int F77_DUMMY_MAIN() { return 1; }
3989 #endif
3990 int
3991 main ()
3992 {
3993 if ((pid_t *) 0)
3994 return 0;
3995 if (sizeof (pid_t))
3996 return 0;
3997 ;
3998 return 0;
3999 }
4000 _ACEOF
4001 rm -f conftest.$ac_objext
4002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4003 (eval $ac_compile) 2>&5
4004 ac_status=$?
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); } &&
4007 { ac_try='test -s conftest.$ac_objext'
4008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4009 (eval $ac_try) 2>&5
4010 ac_status=$?
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); }; }; then
4013 ac_cv_type_pid_t=yes
4014 else
4015 echo "$as_me: failed program was:" >&5
4016 cat conftest.$ac_ext >&5
4017 ac_cv_type_pid_t=no
4018 fi
4019 rm -f conftest.$ac_objext conftest.$ac_ext
4020 fi
4021 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4022 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4023 if test $ac_cv_type_pid_t = yes; then
4024 :
4025 else
4026
4027 cat >>confdefs.h <<_ACEOF
4028 #define pid_t int
4029 _ACEOF
4030
4031 fi
4032
4033 echo "$as_me:$LINENO: checking for size_t" >&5
4034 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4035 if test "${ac_cv_type_size_t+set}" = set; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 else
4038 cat >conftest.$ac_ext <<_ACEOF
4039 #line $LINENO "configure"
4040 #include "confdefs.h"
4041 $ac_includes_default
4042 #ifdef F77_DUMMY_MAIN
4043 # ifdef __cplusplus
4044 extern "C"
4045 # endif
4046 int F77_DUMMY_MAIN() { return 1; }
4047 #endif
4048 int
4049 main ()
4050 {
4051 if ((size_t *) 0)
4052 return 0;
4053 if (sizeof (size_t))
4054 return 0;
4055 ;
4056 return 0;
4057 }
4058 _ACEOF
4059 rm -f conftest.$ac_objext
4060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4061 (eval $ac_compile) 2>&5
4062 ac_status=$?
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } &&
4065 { ac_try='test -s conftest.$ac_objext'
4066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067 (eval $ac_try) 2>&5
4068 ac_status=$?
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); }; }; then
4071 ac_cv_type_size_t=yes
4072 else
4073 echo "$as_me: failed program was:" >&5
4074 cat conftest.$ac_ext >&5
4075 ac_cv_type_size_t=no
4076 fi
4077 rm -f conftest.$ac_objext conftest.$ac_ext
4078 fi
4079 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4080 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4081 if test $ac_cv_type_size_t = yes; then
4082 :
4083 else
4084
4085 cat >>confdefs.h <<_ACEOF
4086 #define size_t unsigned
4087 _ACEOF
4088
4089 fi
4090
4091 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4092 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4093 if test "${ac_cv_struct_tm+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4095 else
4096 cat >conftest.$ac_ext <<_ACEOF
4097 #line $LINENO "configure"
4098 #include "confdefs.h"
4099 #include <sys/types.h>
4100 #include <time.h>
4101
4102 #ifdef F77_DUMMY_MAIN
4103 # ifdef __cplusplus
4104 extern "C"
4105 # endif
4106 int F77_DUMMY_MAIN() { return 1; }
4107 #endif
4108 int
4109 main ()
4110 {
4111 struct tm *tp; tp->tm_sec;
4112 ;
4113 return 0;
4114 }
4115 _ACEOF
4116 rm -f conftest.$ac_objext
4117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4118 (eval $ac_compile) 2>&5
4119 ac_status=$?
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); } &&
4122 { ac_try='test -s conftest.$ac_objext'
4123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124 (eval $ac_try) 2>&5
4125 ac_status=$?
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; }; then
4128 ac_cv_struct_tm=time.h
4129 else
4130 echo "$as_me: failed program was:" >&5
4131 cat conftest.$ac_ext >&5
4132 ac_cv_struct_tm=sys/time.h
4133 fi
4134 rm -f conftest.$ac_objext conftest.$ac_ext
4135 fi
4136 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4137 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4138 if test $ac_cv_struct_tm = sys/time.h; then
4139
4140 cat >>confdefs.h <<\_ACEOF
4141 #define TM_IN_SYS_TIME 1
4142 _ACEOF
4143
4144 fi
4145
4146
4147 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4148 # for constant arguments. Useless!
4149 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4150 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4151 if test "${ac_cv_working_alloca_h+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 else
4154 cat >conftest.$ac_ext <<_ACEOF
4155 #line $LINENO "configure"
4156 #include "confdefs.h"
4157 #include <alloca.h>
4158 #ifdef F77_DUMMY_MAIN
4159 # ifdef __cplusplus
4160 extern "C"
4161 # endif
4162 int F77_DUMMY_MAIN() { return 1; }
4163 #endif
4164 int
4165 main ()
4166 {
4167 char *p = (char *) alloca (2 * sizeof (int));
4168 ;
4169 return 0;
4170 }
4171 _ACEOF
4172 rm -f conftest.$ac_objext conftest$ac_exeext
4173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4174 (eval $ac_link) 2>&5
4175 ac_status=$?
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); } &&
4178 { ac_try='test -s conftest$ac_exeext'
4179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4180 (eval $ac_try) 2>&5
4181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; }; then
4184 ac_cv_working_alloca_h=yes
4185 else
4186 echo "$as_me: failed program was:" >&5
4187 cat conftest.$ac_ext >&5
4188 ac_cv_working_alloca_h=no
4189 fi
4190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4191 fi
4192 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4193 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4194 if test $ac_cv_working_alloca_h = yes; then
4195
4196 cat >>confdefs.h <<\_ACEOF
4197 #define HAVE_ALLOCA_H 1
4198 _ACEOF
4199
4200 fi
4201
4202 echo "$as_me:$LINENO: checking for alloca" >&5
4203 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4204 if test "${ac_cv_func_alloca_works+set}" = set; then
4205 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 else
4207 cat >conftest.$ac_ext <<_ACEOF
4208 #line $LINENO "configure"
4209 #include "confdefs.h"
4210 #ifdef __GNUC__
4211 # define alloca __builtin_alloca
4212 #else
4213 # ifdef _MSC_VER
4214 # include <malloc.h>
4215 # define alloca _alloca
4216 # else
4217 # if HAVE_ALLOCA_H
4218 # include <alloca.h>
4219 # else
4220 # ifdef _AIX
4221 #pragma alloca
4222 # else
4223 # ifndef alloca /* predefined by HP cc +Olibcalls */
4224 char *alloca ();
4225 # endif
4226 # endif
4227 # endif
4228 # endif
4229 #endif
4230
4231 #ifdef F77_DUMMY_MAIN
4232 # ifdef __cplusplus
4233 extern "C"
4234 # endif
4235 int F77_DUMMY_MAIN() { return 1; }
4236 #endif
4237 int
4238 main ()
4239 {
4240 char *p = (char *) alloca (1);
4241 ;
4242 return 0;
4243 }
4244 _ACEOF
4245 rm -f conftest.$ac_objext conftest$ac_exeext
4246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4247 (eval $ac_link) 2>&5
4248 ac_status=$?
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } &&
4251 { ac_try='test -s conftest$ac_exeext'
4252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4253 (eval $ac_try) 2>&5
4254 ac_status=$?
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); }; }; then
4257 ac_cv_func_alloca_works=yes
4258 else
4259 echo "$as_me: failed program was:" >&5
4260 cat conftest.$ac_ext >&5
4261 ac_cv_func_alloca_works=no
4262 fi
4263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4264 fi
4265 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4266 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4267
4268 if test $ac_cv_func_alloca_works = yes; then
4269
4270 cat >>confdefs.h <<\_ACEOF
4271 #define HAVE_ALLOCA 1
4272 _ACEOF
4273
4274 else
4275 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4276 # that cause trouble. Some versions do not even contain alloca or
4277 # contain a buggy version. If you still want to use their alloca,
4278 # use ar to extract alloca.o from them instead of compiling alloca.c.
4279
4280 ALLOCA=alloca.$ac_objext
4281
4282 cat >>confdefs.h <<\_ACEOF
4283 #define C_ALLOCA 1
4284 _ACEOF
4285
4286
4287 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4288 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4289 if test "${ac_cv_os_cray+set}" = set; then
4290 echo $ECHO_N "(cached) $ECHO_C" >&6
4291 else
4292 cat >conftest.$ac_ext <<_ACEOF
4293 #line $LINENO "configure"
4294 #include "confdefs.h"
4295 #if defined(CRAY) && ! defined(CRAY2)
4296 webecray
4297 #else
4298 wenotbecray
4299 #endif
4300
4301 _ACEOF
4302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4303 egrep "webecray" >/dev/null 2>&1; then
4304 ac_cv_os_cray=yes
4305 else
4306 ac_cv_os_cray=no
4307 fi
4308 rm -f conftest*
4309
4310 fi
4311 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4312 echo "${ECHO_T}$ac_cv_os_cray" >&6
4313 if test $ac_cv_os_cray = yes; then
4314 for ac_func in _getb67 GETB67 getb67; do
4315 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4316 echo "$as_me:$LINENO: checking for $ac_func" >&5
4317 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4318 if eval "test \"\${$as_ac_var+set}\" = set"; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4320 else
4321 cat >conftest.$ac_ext <<_ACEOF
4322 #line $LINENO "configure"
4323 #include "confdefs.h"
4324 /* System header to define __stub macros and hopefully few prototypes,
4325 which can conflict with char $ac_func (); below. */
4326 #include <assert.h>
4327 /* Override any gcc2 internal prototype to avoid an error. */
4328 #ifdef __cplusplus
4329 extern "C"
4330 #endif
4331 /* We use char because int might match the return type of a gcc2
4332 builtin and then its argument prototype would still apply. */
4333 char $ac_func ();
4334 char (*f) ();
4335
4336 #ifdef F77_DUMMY_MAIN
4337 # ifdef __cplusplus
4338 extern "C"
4339 # endif
4340 int F77_DUMMY_MAIN() { return 1; }
4341 #endif
4342 int
4343 main ()
4344 {
4345 /* The GNU C library defines this for functions which it implements
4346 to always fail with ENOSYS. Some functions are actually named
4347 something starting with __ and the normal name is an alias. */
4348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4349 choke me
4350 #else
4351 f = $ac_func;
4352 #endif
4353
4354 ;
4355 return 0;
4356 }
4357 _ACEOF
4358 rm -f conftest.$ac_objext conftest$ac_exeext
4359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4360 (eval $ac_link) 2>&5
4361 ac_status=$?
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } &&
4364 { ac_try='test -s conftest$ac_exeext'
4365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366 (eval $ac_try) 2>&5
4367 ac_status=$?
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); }; }; then
4370 eval "$as_ac_var=yes"
4371 else
4372 echo "$as_me: failed program was:" >&5
4373 cat conftest.$ac_ext >&5
4374 eval "$as_ac_var=no"
4375 fi
4376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4377 fi
4378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4379 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4380 if test `eval echo '${'$as_ac_var'}'` = yes; then
4381
4382 cat >>confdefs.h <<_ACEOF
4383 #define CRAY_STACKSEG_END $ac_func
4384 _ACEOF
4385
4386 break
4387 fi
4388
4389 done
4390 fi
4391
4392 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4393 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4394 if test "${ac_cv_c_stack_direction+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 else
4397 if test "$cross_compiling" = yes; then
4398 ac_cv_c_stack_direction=0
4399 else
4400 cat >conftest.$ac_ext <<_ACEOF
4401 #line $LINENO "configure"
4402 #include "confdefs.h"
4403 int
4404 find_stack_direction ()
4405 {
4406 static char *addr = 0;
4407 auto char dummy;
4408 if (addr == 0)
4409 {
4410 addr = &dummy;
4411 return find_stack_direction ();
4412 }
4413 else
4414 return (&dummy > addr) ? 1 : -1;
4415 }
4416
4417 int
4418 main ()
4419 {
4420 exit (find_stack_direction () < 0);
4421 }
4422 _ACEOF
4423 rm -f conftest$ac_exeext
4424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4425 (eval $ac_link) 2>&5
4426 ac_status=$?
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4430 (eval $ac_try) 2>&5
4431 ac_status=$?
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; }; then
4434 ac_cv_c_stack_direction=1
4435 else
4436 echo "$as_me: program exited with status $ac_status" >&5
4437 echo "$as_me: failed program was:" >&5
4438 cat conftest.$ac_ext >&5
4439 ( exit $ac_status )
4440 ac_cv_c_stack_direction=-1
4441 fi
4442 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4443 fi
4444 fi
4445 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4446 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4447
4448 cat >>confdefs.h <<_ACEOF
4449 #define STACK_DIRECTION $ac_cv_c_stack_direction
4450 _ACEOF
4451
4452
4453 fi
4454
4455
4456 for ac_func in strftime
4457 do
4458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4459 echo "$as_me:$LINENO: checking for $ac_func" >&5
4460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4461 if eval "test \"\${$as_ac_var+set}\" = set"; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4463 else
4464 cat >conftest.$ac_ext <<_ACEOF
4465 #line $LINENO "configure"
4466 #include "confdefs.h"
4467 /* System header to define __stub macros and hopefully few prototypes,
4468 which can conflict with char $ac_func (); below. */
4469 #include <assert.h>
4470 /* Override any gcc2 internal prototype to avoid an error. */
4471 #ifdef __cplusplus
4472 extern "C"
4473 #endif
4474 /* We use char because int might match the return type of a gcc2
4475 builtin and then its argument prototype would still apply. */
4476 char $ac_func ();
4477 char (*f) ();
4478
4479 #ifdef F77_DUMMY_MAIN
4480 # ifdef __cplusplus
4481 extern "C"
4482 # endif
4483 int F77_DUMMY_MAIN() { return 1; }
4484 #endif
4485 int
4486 main ()
4487 {
4488 /* The GNU C library defines this for functions which it implements
4489 to always fail with ENOSYS. Some functions are actually named
4490 something starting with __ and the normal name is an alias. */
4491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4492 choke me
4493 #else
4494 f = $ac_func;
4495 #endif
4496
4497 ;
4498 return 0;
4499 }
4500 _ACEOF
4501 rm -f conftest.$ac_objext conftest$ac_exeext
4502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4503 (eval $ac_link) 2>&5
4504 ac_status=$?
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); } &&
4507 { ac_try='test -s conftest$ac_exeext'
4508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4509 (eval $ac_try) 2>&5
4510 ac_status=$?
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); }; }; then
4513 eval "$as_ac_var=yes"
4514 else
4515 echo "$as_me: failed program was:" >&5
4516 cat conftest.$ac_ext >&5
4517 eval "$as_ac_var=no"
4518 fi
4519 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4520 fi
4521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4522 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4523 if test `eval echo '${'$as_ac_var'}'` = yes; then
4524 cat >>confdefs.h <<_ACEOF
4525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4526 _ACEOF
4527
4528 else
4529 # strftime is in -lintl on SCO UNIX.
4530 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
4531 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
4532 if test "${ac_cv_lib_intl_strftime+set}" = set; then
4533 echo $ECHO_N "(cached) $ECHO_C" >&6
4534 else
4535 ac_check_lib_save_LIBS=$LIBS
4536 LIBS="-lintl $LIBS"
4537 cat >conftest.$ac_ext <<_ACEOF
4538 #line $LINENO "configure"
4539 #include "confdefs.h"
4540
4541 /* Override any gcc2 internal prototype to avoid an error. */
4542 #ifdef __cplusplus
4543 extern "C"
4544 #endif
4545 /* We use char because int might match the return type of a gcc2
4546 builtin and then its argument prototype would still apply. */
4547 char strftime ();
4548 #ifdef F77_DUMMY_MAIN
4549 # ifdef __cplusplus
4550 extern "C"
4551 # endif
4552 int F77_DUMMY_MAIN() { return 1; }
4553 #endif
4554 int
4555 main ()
4556 {
4557 strftime ();
4558 ;
4559 return 0;
4560 }
4561 _ACEOF
4562 rm -f conftest.$ac_objext conftest$ac_exeext
4563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4564 (eval $ac_link) 2>&5
4565 ac_status=$?
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); } &&
4568 { ac_try='test -s conftest$ac_exeext'
4569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4570 (eval $ac_try) 2>&5
4571 ac_status=$?
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); }; }; then
4574 ac_cv_lib_intl_strftime=yes
4575 else
4576 echo "$as_me: failed program was:" >&5
4577 cat conftest.$ac_ext >&5
4578 ac_cv_lib_intl_strftime=no
4579 fi
4580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4581 LIBS=$ac_check_lib_save_LIBS
4582 fi
4583 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
4584 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
4585 if test $ac_cv_lib_intl_strftime = yes; then
4586 cat >>confdefs.h <<\_ACEOF
4587 #define HAVE_STRFTIME 1
4588 _ACEOF
4589
4590 LIBS="-lintl $LIBS"
4591 fi
4592
4593 fi
4594 done
4595
4596
4597 for ac_func in vprintf
4598 do
4599 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4600 echo "$as_me:$LINENO: checking for $ac_func" >&5
4601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4602 if eval "test \"\${$as_ac_var+set}\" = set"; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4604 else
4605 cat >conftest.$ac_ext <<_ACEOF
4606 #line $LINENO "configure"
4607 #include "confdefs.h"
4608 /* System header to define __stub macros and hopefully few prototypes,
4609 which can conflict with char $ac_func (); below. */
4610 #include <assert.h>
4611 /* Override any gcc2 internal prototype to avoid an error. */
4612 #ifdef __cplusplus
4613 extern "C"
4614 #endif
4615 /* We use char because int might match the return type of a gcc2
4616 builtin and then its argument prototype would still apply. */
4617 char $ac_func ();
4618 char (*f) ();
4619
4620 #ifdef F77_DUMMY_MAIN
4621 # ifdef __cplusplus
4622 extern "C"
4623 # endif
4624 int F77_DUMMY_MAIN() { return 1; }
4625 #endif
4626 int
4627 main ()
4628 {
4629 /* The GNU C library defines this for functions which it implements
4630 to always fail with ENOSYS. Some functions are actually named
4631 something starting with __ and the normal name is an alias. */
4632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4633 choke me
4634 #else
4635 f = $ac_func;
4636 #endif
4637
4638 ;
4639 return 0;
4640 }
4641 _ACEOF
4642 rm -f conftest.$ac_objext conftest$ac_exeext
4643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4644 (eval $ac_link) 2>&5
4645 ac_status=$?
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); } &&
4648 { ac_try='test -s conftest$ac_exeext'
4649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4650 (eval $ac_try) 2>&5
4651 ac_status=$?
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); }; }; then
4654 eval "$as_ac_var=yes"
4655 else
4656 echo "$as_me: failed program was:" >&5
4657 cat conftest.$ac_ext >&5
4658 eval "$as_ac_var=no"
4659 fi
4660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4661 fi
4662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4663 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4664 if test `eval echo '${'$as_ac_var'}'` = yes; then
4665 cat >>confdefs.h <<_ACEOF
4666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4667 _ACEOF
4668
4669 echo "$as_me:$LINENO: checking for _doprnt" >&5
4670 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
4671 if test "${ac_cv_func__doprnt+set}" = set; then
4672 echo $ECHO_N "(cached) $ECHO_C" >&6
4673 else
4674 cat >conftest.$ac_ext <<_ACEOF
4675 #line $LINENO "configure"
4676 #include "confdefs.h"
4677 /* System header to define __stub macros and hopefully few prototypes,
4678 which can conflict with char _doprnt (); below. */
4679 #include <assert.h>
4680 /* Override any gcc2 internal prototype to avoid an error. */
4681 #ifdef __cplusplus
4682 extern "C"
4683 #endif
4684 /* We use char because int might match the return type of a gcc2
4685 builtin and then its argument prototype would still apply. */
4686 char _doprnt ();
4687 char (*f) ();
4688
4689 #ifdef F77_DUMMY_MAIN
4690 # ifdef __cplusplus
4691 extern "C"
4692 # endif
4693 int F77_DUMMY_MAIN() { return 1; }
4694 #endif
4695 int
4696 main ()
4697 {
4698 /* The GNU C library defines this for functions which it implements
4699 to always fail with ENOSYS. Some functions are actually named
4700 something starting with __ and the normal name is an alias. */
4701 #if defined (__stub__doprnt) || defined (__stub____doprnt)
4702 choke me
4703 #else
4704 f = _doprnt;
4705 #endif
4706
4707 ;
4708 return 0;
4709 }
4710 _ACEOF
4711 rm -f conftest.$ac_objext conftest$ac_exeext
4712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4713 (eval $ac_link) 2>&5
4714 ac_status=$?
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); } &&
4717 { ac_try='test -s conftest$ac_exeext'
4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719 (eval $ac_try) 2>&5
4720 ac_status=$?
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; }; then
4723 ac_cv_func__doprnt=yes
4724 else
4725 echo "$as_me: failed program was:" >&5
4726 cat conftest.$ac_ext >&5
4727 ac_cv_func__doprnt=no
4728 fi
4729 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4730 fi
4731 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
4732 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
4733 if test $ac_cv_func__doprnt = yes; then
4734
4735 cat >>confdefs.h <<\_ACEOF
4736 #define HAVE_DOPRNT 1
4737 _ACEOF
4738
4739 fi
4740
4741 fi
4742 done
4743
4744
4745
4746
4747
4748
4749 for ac_func in re_comp regcomp strdup strstr
4750 do
4751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4752 echo "$as_me:$LINENO: checking for $ac_func" >&5
4753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4754 if eval "test \"\${$as_ac_var+set}\" = set"; then
4755 echo $ECHO_N "(cached) $ECHO_C" >&6
4756 else
4757 cat >conftest.$ac_ext <<_ACEOF
4758 #line $LINENO "configure"
4759 #include "confdefs.h"
4760 /* System header to define __stub macros and hopefully few prototypes,
4761 which can conflict with char $ac_func (); below. */
4762 #include <assert.h>
4763 /* Override any gcc2 internal prototype to avoid an error. */
4764 #ifdef __cplusplus
4765 extern "C"
4766 #endif
4767 /* We use char because int might match the return type of a gcc2
4768 builtin and then its argument prototype would still apply. */
4769 char $ac_func ();
4770 char (*f) ();
4771
4772 #ifdef F77_DUMMY_MAIN
4773 # ifdef __cplusplus
4774 extern "C"
4775 # endif
4776 int F77_DUMMY_MAIN() { return 1; }
4777 #endif
4778 int
4779 main ()
4780 {
4781 /* The GNU C library defines this for functions which it implements
4782 to always fail with ENOSYS. Some functions are actually named
4783 something starting with __ and the normal name is an alias. */
4784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4785 choke me
4786 #else
4787 f = $ac_func;
4788 #endif
4789
4790 ;
4791 return 0;
4792 }
4793 _ACEOF
4794 rm -f conftest.$ac_objext conftest$ac_exeext
4795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4796 (eval $ac_link) 2>&5
4797 ac_status=$?
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); } &&
4800 { ac_try='test -s conftest$ac_exeext'
4801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802 (eval $ac_try) 2>&5
4803 ac_status=$?
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); }; }; then
4806 eval "$as_ac_var=yes"
4807 else
4808 echo "$as_me: failed program was:" >&5
4809 cat conftest.$ac_ext >&5
4810 eval "$as_ac_var=no"
4811 fi
4812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4813 fi
4814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4815 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4816 if test `eval echo '${'$as_ac_var'}'` = yes; then
4817 cat >>confdefs.h <<_ACEOF
4818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4819 _ACEOF
4820
4821 fi
4822 done
4823
4824
4825 echo "$as_me:$LINENO: checking for log in -lm" >&5
4826 echo $ECHO_N "checking for log in -lm... $ECHO_C" >&6
4827 if test "${ac_cv_lib_m_log+set}" = set; then
4828 echo $ECHO_N "(cached) $ECHO_C" >&6
4829 else
4830 ac_check_lib_save_LIBS=$LIBS
4831 LIBS="-lm $LIBS"
4832 cat >conftest.$ac_ext <<_ACEOF
4833 #line $LINENO "configure"
4834 #include "confdefs.h"
4835
4836 /* Override any gcc2 internal prototype to avoid an error. */
4837 #ifdef __cplusplus
4838 extern "C"
4839 #endif
4840 /* We use char because int might match the return type of a gcc2
4841 builtin and then its argument prototype would still apply. */
4842 char log ();
4843 #ifdef F77_DUMMY_MAIN
4844 # ifdef __cplusplus
4845 extern "C"
4846 # endif
4847 int F77_DUMMY_MAIN() { return 1; }
4848 #endif
4849 int
4850 main ()
4851 {
4852 log ();
4853 ;
4854 return 0;
4855 }
4856 _ACEOF
4857 rm -f conftest.$ac_objext conftest$ac_exeext
4858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4859 (eval $ac_link) 2>&5
4860 ac_status=$?
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } &&
4863 { ac_try='test -s conftest$ac_exeext'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865 (eval $ac_try) 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
4869 ac_cv_lib_m_log=yes
4870 else
4871 echo "$as_me: failed program was:" >&5
4872 cat conftest.$ac_ext >&5
4873 ac_cv_lib_m_log=no
4874 fi
4875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4876 LIBS=$ac_check_lib_save_LIBS
4877 fi
4878 echo "$as_me:$LINENO: result: $ac_cv_lib_m_log" >&5
4879 echo "${ECHO_T}$ac_cv_lib_m_log" >&6
4880 if test $ac_cv_lib_m_log = yes; then
4881 cat >>confdefs.h <<_ACEOF
4882 #define HAVE_LIBM 1
4883 _ACEOF
4884
4885 LIBS="-lm $LIBS"
4886
4887 fi
4888
4889
4890
4891 for ac_func in vsnprintf
4892 do
4893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4894 echo "$as_me:$LINENO: checking for $ac_func" >&5
4895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4896 if eval "test \"\${$as_ac_var+set}\" = set"; then
4897 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 else
4899 cat >conftest.$ac_ext <<_ACEOF
4900 #line $LINENO "configure"
4901 #include "confdefs.h"
4902 /* System header to define __stub macros and hopefully few prototypes,
4903 which can conflict with char $ac_func (); below. */
4904 #include <assert.h>
4905 /* Override any gcc2 internal prototype to avoid an error. */
4906 #ifdef __cplusplus
4907 extern "C"
4908 #endif
4909 /* We use char because int might match the return type of a gcc2
4910 builtin and then its argument prototype would still apply. */
4911 char $ac_func ();
4912 char (*f) ();
4913
4914 #ifdef F77_DUMMY_MAIN
4915 # ifdef __cplusplus
4916 extern "C"
4917 # endif
4918 int F77_DUMMY_MAIN() { return 1; }
4919 #endif
4920 int
4921 main ()
4922 {
4923 /* The GNU C library defines this for functions which it implements
4924 to always fail with ENOSYS. Some functions are actually named
4925 something starting with __ and the normal name is an alias. */
4926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4927 choke me
4928 #else
4929 f = $ac_func;
4930 #endif
4931
4932 ;
4933 return 0;
4934 }
4935 _ACEOF
4936 rm -f conftest.$ac_objext conftest$ac_exeext
4937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4938 (eval $ac_link) 2>&5
4939 ac_status=$?
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } &&
4942 { ac_try='test -s conftest$ac_exeext'
4943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 (eval $ac_try) 2>&5
4945 ac_status=$?
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); }; }; then
4948 eval "$as_ac_var=yes"
4949 else
4950 echo "$as_me: failed program was:" >&5
4951 cat conftest.$ac_ext >&5
4952 eval "$as_ac_var=no"
4953 fi
4954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4955 fi
4956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4957 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4958 if test `eval echo '${'$as_ac_var'}'` = yes; then
4959 cat >>confdefs.h <<_ACEOF
4960 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4961 _ACEOF
4962
4963 else
4964 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
4965 fi
4966 done
4967
4968
4969
4970
4971 LIBXML_REQUIRED_VERSION=2.4.3
4972
4973
4974 # Check whether --with-libxml2 or --without-libxml2 was given.
4975 if test "${with_libxml2+set}" = set; then
4976 withval="$with_libxml2"
4977
4978 else
4979 withval=maybe
4980 fi;
4981
4982 if test "$withval" != "no"; then
4983 XML2_CONFIG="no"
4984 if test "$withval" != "yes" && test "$withval" != "maybe" ; then
4985 XML2_CONFIG_PATH="$withval/bin"
4986 # Extract the first word of "xml2-config", so it can be a program name with args.
4987 set dummy xml2-config; ac_word=$2
4988 echo "$as_me:$LINENO: checking for $ac_word" >&5
4989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4990 if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
4991 echo $ECHO_N "(cached) $ECHO_C" >&6
4992 else
4993 case $XML2_CONFIG in
4994 [\\/]* | ?:[\\/]*)
4995 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
4996 ;;
4997 *)
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $XML2_CONFIG_PATH
5000 do
5001 IFS=$as_save_IFS
5002 test -z "$as_dir" && as_dir=.
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5005 ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5007 break 2
5008 fi
5009 done
5010 done
5011
5012 test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG=""no""
5013 ;;
5014 esac
5015 fi
5016 XML2_CONFIG=$ac_cv_path_XML2_CONFIG
5017
5018 if test -n "$XML2_CONFIG"; then
5019 echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5020 echo "${ECHO_T}$XML2_CONFIG" >&6
5021 else
5022 echo "$as_me:$LINENO: result: no" >&5
5023 echo "${ECHO_T}no" >&6
5024 fi
5025
5026 else
5027 XML2_CONFIG_PATH=$PATH
5028 # Extract the first word of "xml2-config", so it can be a program name with args.
5029 set dummy xml2-config; ac_word=$2
5030 echo "$as_me:$LINENO: checking for $ac_word" >&5
5031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5032 if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 else
5035 case $XML2_CONFIG in
5036 [\\/]* | ?:[\\/]*)
5037 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
5038 ;;
5039 *)
5040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041 for as_dir in $XML2_CONFIG_PATH
5042 do
5043 IFS=$as_save_IFS
5044 test -z "$as_dir" && as_dir=.
5045 for ac_exec_ext in '' $ac_executable_extensions; do
5046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5047 ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5049 break 2
5050 fi
5051 done
5052 done
5053
5054 test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG=""no""
5055 ;;
5056 esac
5057 fi
5058 XML2_CONFIG=$ac_cv_path_XML2_CONFIG
5059
5060 if test -n "$XML2_CONFIG"; then
5061 echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5062 echo "${ECHO_T}$XML2_CONFIG" >&6
5063 else
5064 echo "$as_me:$LINENO: result: no" >&5
5065 echo "${ECHO_T}no" >&6
5066 fi
5067
5068 fi
5069
5070 if test "$XML2_CONFIG" = "no"; then
5071 withval="no"
5072 else
5073 withval=`$XML2_CONFIG --prefix`
5074 fi
5075
5076 if test "$withval" = "maybe"; then
5077 withval = "no"
5078 fi
5079 fi
5080
5081 if test "$withval" = "no"; then
5082 echo "$as_me:$LINENO: result: Not building with libxml2 - use --with-libxml2 to enable" >&5
5083 echo "${ECHO_T}Not building with libxml2 - use --with-libxml2 to enable" >&6
5084 else
5085
5086
5087 echo "$as_me:$LINENO: checking for libxml libraries >= $LIBXML_REQUIRED_VERSION" >&5
5088 echo $ECHO_N "checking for libxml libraries >= $LIBXML_REQUIRED_VERSION... $ECHO_C" >&6
5089
5090
5091
5092
5093 vers=`$XML2_CONFIG --version | sed -e 's/libxml //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
5094 XML2_VERSION=`$XML2_CONFIG --version`
5095
5096 if test "$vers" -ge `echo $LIBXML_REQUIRED_VERSION | sed -e 's/libxml //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`;then
5097 LIBXML2_LIB="`$XML2_CONFIG --libs`"
5098 LIBXML2_CFLAGS="`$XML2_CONFIG --cflags`"
5099 echo "$as_me:$LINENO: result: found version $XML2_VERSION" >&5
5100 echo "${ECHO_T}found version $XML2_VERSION" >&6
5101 else
5102 { { echo "$as_me:$LINENO: error: You need at least libxml2 $LIBXML_REQUIRED_VERSION for this version of swish" >&5
5103 echo "$as_me: error: You need at least libxml2 $LIBXML_REQUIRED_VERSION for this version of swish" >&2;}
5104 { (exit 1); exit 1; }; }
5105 fi
5106
5107
5108 cat >>confdefs.h <<\_ACEOF
5109 #define HAVE_LIBXML2 1
5110 _ACEOF
5111
5112
5113 LIBXML2_OBJS="parser.o"
5114
5115
5116
5117 fi
5118
5119
5120
5121 _cppflags="${CPPFLAGS}"
5122 _ldflags="${LDFLAGS}"
5123
5124
5125 # Check whether --with-zlib or --without-zlib was given.
5126 if test "${with_zlib+set}" = set; then
5127 withval="$with_zlib"
5128
5129 else
5130 withval=maybe
5131 fi;
5132
5133 if test "$withval" != "no" -a "$withval" != "yes"; then
5134 Z_DIR=$withval
5135 CPPFLAGS="${CPPFLAGS} -I$withval/include"
5136 LDFLAGS="${LDFLAGS} -L$withval/lib"
5137 fi
5138
5139 if test "$withval" == "maybe"; then
5140 withval="yes"
5141 Z_DIR=""
5142 CPPFLAGS="${CPPFLAGS}"
5143 LDFLAGS="${LDFLAGS}"
5144 fi
5145
5146 if test "$withval" != "no"; then
5147
5148 for ac_header in zlib.h
5149 do
5150 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5152 echo "$as_me:$LINENO: checking for $ac_header" >&5
5153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5156 fi
5157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5158 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5159 else
5160 # Is the header compilable?
5161 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5163 cat >conftest.$ac_ext <<_ACEOF
5164 #line $LINENO "configure"
5165 #include "confdefs.h"
5166 $ac_includes_default
5167 #include <$ac_header>
5168 _ACEOF
5169 rm -f conftest.$ac_objext
5170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5171 (eval $ac_compile) 2>&5
5172 ac_status=$?
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); } &&
5175 { ac_try='test -s conftest.$ac_objext'
5176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5177 (eval $ac_try) 2>&5
5178 ac_status=$?
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); }; }; then
5181 ac_header_compiler=yes
5182 else
5183 echo "$as_me: failed program was:" >&5
5184 cat conftest.$ac_ext >&5
5185 ac_header_compiler=no
5186 fi
5187 rm -f conftest.$ac_objext conftest.$ac_ext
5188 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5189 echo "${ECHO_T}$ac_header_compiler" >&6
5190
5191 # Is the header present?
5192 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5193 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5194 cat >conftest.$ac_ext <<_ACEOF
5195 #line $LINENO "configure"
5196 #include "confdefs.h"
5197 #include <$ac_header>
5198 _ACEOF
5199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5201 ac_status=$?
5202 egrep -v '^ *\+' conftest.er1 >conftest.err
5203 rm -f conftest.er1
5204 cat conftest.err >&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } >/dev/null; then
5207 if test -s conftest.err; then
5208 ac_cpp_err=$ac_c_preproc_warn_flag
5209 else
5210 ac_cpp_err=
5211 fi
5212 else
5213 ac_cpp_err=yes
5214 fi
5215 if test -z "$ac_cpp_err"; then
5216 ac_header_preproc=yes
5217 else
5218 echo "$as_me: failed program was:" >&5
5219 cat conftest.$ac_ext >&5
5220 ac_header_preproc=no
5221 fi
5222 rm -f conftest.err conftest.$ac_ext
5223 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5224 echo "${ECHO_T}$ac_header_preproc" >&6
5225
5226 # So? What about this header?
5227 case $ac_header_compiler:$ac_header_preproc in
5228 yes:no )
5229 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5230 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5233 no:yes )
5234 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5235 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5236 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5237 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5239 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5240 esac
5241 echo "$as_me:$LINENO: checking for $ac_header" >&5
5242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5245 else
5246 eval "$as_ac_Header=$ac_header_preproc"
5247 fi
5248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5250
5251 fi
5252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5253 cat >>confdefs.h <<_ACEOF
5254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5255 _ACEOF
5256 echo "$as_me:$LINENO: checking for gzread in -lz" >&5
5257 echo $ECHO_N "checking for gzread in -lz... $ECHO_C" >&6
5258 if test "${ac_cv_lib_z_gzread+set}" = set; then
5259 echo $ECHO_N "(cached) $ECHO_C" >&6
5260 else
5261 ac_check_lib_save_LIBS=$LIBS
5262 LIBS="-lz $LIBS"
5263 cat >conftest.$ac_ext <<_ACEOF
5264 #line $LINENO "configure"
5265 #include "confdefs.h"
5266
5267 /* Override any gcc2 internal prototype to avoid an error. */
5268 #ifdef __cplusplus
5269 extern "C"
5270 #endif
5271 /* We use char because int might match the return type of a gcc2
5272 builtin and then its argument prototype would still apply. */
5273 char gzread ();
5274 #ifdef F77_DUMMY_MAIN
5275 # ifdef __cplusplus
5276 extern "C"
5277 # endif
5278 int F77_DUMMY_MAIN() { return 1; }
5279 #endif
5280 int
5281 main ()
5282 {
5283 gzread ();
5284 ;
5285 return 0;
5286 }
5287 _ACEOF
5288 rm -f conftest.$ac_objext conftest$ac_exeext
5289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5290 (eval $ac_link) 2>&5
5291 ac_status=$?
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); } &&
5294 { ac_try='test -s conftest$ac_exeext'
5295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5296 (eval $ac_try) 2>&5
5297 ac_status=$?
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); }; }; then
5300 ac_cv_lib_z_gzread=yes
5301 else
5302 echo "$as_me: failed program was:" >&5
5303 cat conftest.$ac_ext >&5
5304 ac_cv_lib_z_gzread=no
5305 fi
5306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5307 LIBS=$ac_check_lib_save_LIBS
5308 fi
5309 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzread" >&5
5310 echo "${ECHO_T}$ac_cv_lib_z_gzread" >&6
5311 if test $ac_cv_lib_z_gzread = yes; then
5312
5313 cat >>confdefs.h <<\_ACEOF
5314 #define HAVE_LIBZ 1
5315 _ACEOF
5316
5317 if test "x${Z_DIR}" != "x"; then
5318 Z_CFLAGS="-I${Z_DIR}/include"
5319 Z_LIBS="-L${Z_DIR}/lib -lz"
5320 else
5321 Z_LIBS="-lz"
5322 fi
5323 fi
5324
5325 fi
5326
5327 done
5328
5329
5330
5331 cat >>confdefs.h <<\_ACEOF
5332 #define HAVE_ZLIB 1
5333 _ACEOF
5334
5335 else
5336 echo "$as_me:$LINENO: result: Not building with zlib for property compression - use --with-zlib to enable" >&5
5337 echo "${ECHO_T}Not building with zlib for property compression - use --with-zlib to enable" >&6
5338 fi
5339
5340 CPPFLAGS=${_cppflags}
5341 LDFLAGS=${_ldflags}
5342
5343
5344
5345 ac_config_headers="$ac_config_headers src/acconfig.h"
5346
5347
5348
5349 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile"
5350 cat >confcache <<\_ACEOF
5351 # This file is a shell script that caches the results of configure
5352 # tests run on this system so they can be shared between configure
5353 # scripts and configure runs, see configure's option --config-cache.
5354 # It is not useful on other systems. If it contains results you don't
5355 # want to keep, you may remove or edit it.
5356 #
5357 # config.status only pays attention to the cache file if you give it
5358 # the --recheck option to rerun configure.
5359 #
5360 # `ac_cv_env_foo' variables (set or unset) will be overriden when
5361 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5362 # following values.
5363
5364 _ACEOF
5365
5366 # The following way of writing the cache mishandles newlines in values,
5367 # but we know of no workaround that is simple, portable, and efficient.
5368 # So, don't put newlines in cache variables' values.
5369 # Ultrix sh set writes to stderr and can't be redirected directly,
5370 # and sets the high bit in the cache file unless we assign to the vars.
5371 {
5372 (set) 2>&1 |
5373 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5374 *ac_space=\ *)
5375 # `set' does not quote correctly, so add quotes (double-quote
5376 # substitution turns \\\\ into \\, and sed turns \\ into \).
5377 sed -n \
5378 "s/'/'\\\\''/g;
5379 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5380 ;;
5381 *)
5382 # `set' quotes correctly as required by POSIX, so do not add quotes.
5383 sed -n \
5384 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5385 ;;
5386 esac;
5387 } |
5388 sed '
5389 t clear
5390 : clear
5391 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5392 t end
5393 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5394 : end' >>confcache
5395 if cmp -s $cache_file confcache; then :; else
5396 if test -w $cache_file; then
5397 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5398 cat confcache >$cache_file
5399 else
5400 echo "not updating unwritable cache $cache_file"
5401 fi
5402 fi
5403 rm -f confcache
5404
5405 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5406 # Let make expand exec_prefix.
5407 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5408
5409 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5410 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5411 # trailing colons and then remove the whole line if VPATH becomes empty
5412 # (actually we leave an empty line to preserve line numbers).
5413 if test "x$srcdir" = x.; then
5414 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5415 s/:*\$(srcdir):*/:/;
5416 s/:*\${srcdir}:*/:/;
5417 s/:*@srcdir@:*/:/;
5418 s/^\([^=]*=[ ]*\):*/\1/;
5419 s/:*$//;
5420 s/^[^=]*=[ ]*$//;
5421 }'
5422 fi
5423
5424 DEFS=-DHAVE_CONFIG_H
5425
5426
5427 : ${CONFIG_STATUS=./config.status}
5428 ac_clean_files_save=$ac_clean_files
5429 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5430 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5431 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5432 cat >$CONFIG_STATUS <<_ACEOF
5433 #! $SHELL
5434 # Generated by $as_me.
5435 # Run this file to recreate the current configuration.
5436 # Compiler output produced by configure, useful for debugging
5437 # configure, is in config.log if it exists.
5438
5439 debug=false
5440 SHELL=\${CONFIG_SHELL-$SHELL}
5441 _ACEOF
5442
5443 cat >>$CONFIG_STATUS <<\_ACEOF
5444
5445 ## --------------------- ##
5446 ## M4sh Initialization. ##
5447 ## --------------------- ##
5448
5449 # Be Bourne compatible
5450 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5451 emulate sh
5452 NULLCMD=:
5453 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5454 set -o posix
5455 fi
5456
5457 # NLS nuisances.
5458 # Support unset when possible.
5459 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5460 as_unset=unset
5461 else
5462 as_unset=false
5463 fi
5464
5465 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
5466 { $as_unset LANG || test "${LANG+set}" != set; } ||
5467 { LANG=C; export LANG; }
5468 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
5469 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
5470 { LC_ALL=C; export LC_ALL; }
5471 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
5472 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
5473 { LC_TIME=C; export LC_TIME; }
5474 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
5475 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
5476 { LC_CTYPE=C; export LC_CTYPE; }
5477 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
5478 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
5479 { LANGUAGE=C; export LANGUAGE; }
5480 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
5481 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
5482 { LC_COLLATE=C; export LC_COLLATE; }
5483 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
5484 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
5485 { LC_NUMERIC=C; export LC_NUMERIC; }
5486 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
5487 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
5488 { LC_MESSAGES=C; export LC_MESSAGES; }
5489
5490
5491 # Name of the executable.
5492 as_me=`(basename "$0") 2>/dev/null ||
5493 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5494 X"$0" : 'X\(//\)$' \| \
5495 X"$0" : 'X\(/\)$' \| \
5496 . : '\(.\)' 2>/dev/null ||
5497 echo X/"$0" |
5498 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5499 /^X\/\(\/\/\)$/{ s//\1/; q; }
5500 /^X\/\(\/\).*/{ s//\1/; q; }
5501 s/.*/./; q'`
5502
5503 # PATH needs CR, and LINENO needs CR and PATH.
5504 # Avoid depending upon Character Ranges.
5505 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5506 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5507 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5508 as_cr_digits='0123456789'
5509 as_cr_alnum=$as_cr_Letters$as_cr_digits
5510
5511 # The user is always right.
5512 if test "${PATH_SEPARATOR+set}" != set; then
5513 echo "#! /bin/sh" >conftest.sh
5514 echo "exit 0" >>conftest.sh
5515 chmod +x conftest.sh
5516 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
5517 PATH_SEPARATOR=';'
5518 else
5519 PATH_SEPARATOR=:
5520 fi
5521 rm -f conftest.sh
5522 fi
5523
5524
5525 as_lineno_1=$LINENO
5526 as_lineno_2=$LINENO
5527 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5528 test "x$as_lineno_1" != "x$as_lineno_2" &&
5529 test "x$as_lineno_3" = "x$as_lineno_2" || {
5530 # Find who we are. Look in the path if we contain no path at all
5531 # relative or not.
5532 case $0 in
5533 *[\\/]* ) as_myself=$0 ;;
5534 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 for as_dir in $PATH
5536 do
5537 IFS=$as_save_IFS
5538 test -z "$as_dir" && as_dir=.
5539 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5540 done
5541
5542 ;;
5543 esac
5544 # We did not find ourselves, most probably we were run as `sh COMMAND'
5545 # in which case we are not to be found in the path.
5546 if test "x$as_myself" = x; then
5547 as_myself=$0
5548 fi
5549 if test ! -f "$as_myself"; then
5550 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5551 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5552 { (exit 1); exit 1; }; }
5553 fi
5554 case $CONFIG_SHELL in
5555 '')
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5558 do
5559 IFS=$as_save_IFS
5560 test -z "$as_dir" && as_dir=.
5561 for as_base in sh bash ksh sh5; do
5562 case $as_dir in
5563 /*)
5564 if ("$as_dir/$as_base" -c '
5565 as_lineno_1=$LINENO
5566 as_lineno_2=$LINENO
5567 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5568 test "x$as_lineno_1" != "x$as_lineno_2" &&
5569 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5570 CONFIG_SHELL=$as_dir/$as_base
5571 export CONFIG_SHELL
5572 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5573 fi;;
5574 esac
5575 done
5576 done
5577 ;;
5578 esac
5579
5580 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5581 # uniformly replaced by the line number. The first 'sed' inserts a
5582 # line-number line before each line; the second 'sed' does the real
5583 # work. The second script uses 'N' to pair each line-number line
5584 # with the numbered line, and appends trailing '-' during
5585 # substitution so that $LINENO is not a special case at line end.
5586 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5587 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5588 sed '=' <$as_myself |
5589 sed '
5590 N
5591 s,$,-,
5592 : loop
5593 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5594 t loop
5595 s,-$,,
5596 s,^['$as_cr_digits']*\n,,
5597 ' >$as_me.lineno &&
5598 chmod +x $as_me.lineno ||
5599 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5600 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5601 { (exit 1); exit 1; }; }
5602
5603 # Don't try to exec as it changes $[0], causing all sort of problems
5604 # (the dirname of $[0] is not the place where we might find the
5605 # original and so on. Autoconf is especially sensible to this).
5606 . ./$as_me.lineno
5607 # Exit status is that of the last command.
5608 exit
5609 }
5610
5611
5612 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5613 *c*,-n*) ECHO_N= ECHO_C='
5614 ' ECHO_T=' ' ;;
5615 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5616 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5617 esac
5618
5619 if expr a : '\(a\)' >/dev/null 2>&1; then
5620 as_expr=expr
5621 else
5622 as_expr=false
5623 fi
5624
5625 rm -f conf$$ conf$$.exe conf$$.file
5626 echo >conf$$.file
5627 if ln -s conf$$.file conf$$ 2>/dev/null; then
5628 # We could just check for DJGPP; but this test a) works b) is more generic
5629 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5630 if test -f conf$$.exe; then
5631 # Don't use ln at all; we don't have any links
5632 as_ln_s='cp -p'
5633 else
5634 as_ln_s='ln -s'
5635 fi
5636 elif ln conf$$.file conf$$ 2>/dev/null; then
5637 as_ln_s=ln
5638 else
5639 as_ln_s='cp -p'
5640 fi
5641 rm -f conf$$ conf$$.exe conf$$.file
5642
5643 as_executable_p="test -f"
5644
5645 # Sed expression to map a string onto a valid CPP name.
5646 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5647
5648 # Sed expression to map a string onto a valid variable name.
5649 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5650
5651
5652 # IFS
5653 # We need space, tab and new line, in precisely that order.
5654 as_nl='
5655 '
5656 IFS=" $as_nl"
5657
5658 # CDPATH.
5659 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
5660
5661 exec 6>&1
5662
5663 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5664 # report actual input values of CONFIG_FILES etc. instead of their
5665 # values after options handling. Logging --version etc. is OK.
5666 exec 5>>config.log
5667 {
5668 echo
5669 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5670 ## Running $as_me. ##
5671 _ASBOX
5672 } >&5
5673 cat >&5 <<_CSEOF
5674
5675 This file was extended by $as_me, which was
5676 generated by GNU Autoconf 2.53. Invocation command line was
5677
5678 CONFIG_FILES = $CONFIG_FILES
5679 CONFIG_HEADERS = $CONFIG_HEADERS
5680 CONFIG_LINKS = $CONFIG_LINKS
5681 CONFIG_COMMANDS = $CONFIG_COMMANDS
5682 $ $0 $@
5683
5684 _CSEOF
5685 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5686 echo >&5
5687 _ACEOF
5688
5689 # Files that config.status was made for.
5690 if test -n "$ac_config_files"; then
5691 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5692 fi
5693
5694 if test -n "$ac_config_headers"; then
5695 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5696 fi
5697
5698 if test -n "$ac_config_links"; then
5699 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5700 fi
5701
5702 if test -n "$ac_config_commands"; then
5703 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5704 fi
5705
5706 cat >>$CONFIG_STATUS <<\_ACEOF
5707
5708 ac_cs_usage="\
5709 \`$as_me' instantiates files from templates according to the
5710 current configuration.
5711
5712 Usage: $0 [OPTIONS] [FILE]...
5713
5714 -h, --help print this help, then exit
5715 -V, --version print version number, then exit
5716 -d, --debug don't remove temporary files
5717 --recheck update $as_me by reconfiguring in the same conditions
5718 --file=FILE[:TEMPLATE]
5719 instantiate the configuration file FILE
5720 --header=FILE[:TEMPLATE]
5721 instantiate the configuration header FILE
5722
5723 Configuration files:
5724 $config_files
5725
5726 Configuration headers:
5727 $config_headers
5728
5729 Report bugs to <bug-autoconf@gnu.org>."
5730 _ACEOF
5731
5732 cat >>$CONFIG_STATUS <<_ACEOF
5733 ac_cs_version="\\
5734 config.status
5735 configured by $0, generated by GNU Autoconf 2.53,
5736 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5737
5738 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5739 Free Software Foundation, Inc.
5740 This config.status script is free software; the Free Software Foundation
5741 gives unlimited permission to copy, distribute and modify it."
5742 srcdir=$srcdir
5743 _ACEOF
5744
5745 cat >>$CONFIG_STATUS <<\_ACEOF
5746 # If no file are specified by the user, then we need to provide default
5747 # value. By we need to know if files were specified by the user.
5748 ac_need_defaults=:
5749 while test $# != 0
5750 do
5751 case $1 in
5752 --*=*)
5753 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5754 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5755 shift
5756 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5757 shift
5758 ;;
5759 -*);;
5760 *) # This is not an option, so the user has probably given explicit
5761 # arguments.
5762 ac_need_defaults=false;;
5763 esac
5764
5765 case $1 in
5766 # Handling of the options.
5767 _ACEOF
5768 cat >>$CONFIG_STATUS <<_ACEOF
5769 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5770 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5771 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5772 _ACEOF
5773 cat >>$CONFIG_STATUS <<\_ACEOF
5774 --version | --vers* | -V )
5775 echo "$ac_cs_version"; exit 0 ;;
5776 --he | --h)
5777 # Conflict between --help and --header
5778 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5779 Try \`$0 --help' for more information." >&5
5780 echo "$as_me: error: ambiguous option: $1
5781 Try \`$0 --help' for more information." >&2;}
5782 { (exit 1); exit 1; }; };;
5783 --help | --hel | -h )
5784 echo "$ac_cs_usage"; exit 0 ;;
5785 --debug | --d* | -d )
5786 debug=: ;;
5787 --file | --fil | --fi | --f )
5788 shift
5789 CONFIG_FILES="$CONFIG_FILES $1"
5790 ac_need_defaults=false;;
5791 --header | --heade | --head | --hea )
5792 shift
5793 CONFIG_HEADERS="$CONFIG_HEADERS $1"
5794 ac_need_defaults=false;;
5795
5796 # This is an error.
5797 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5798 Try \`$0 --help' for more information." >&5
5799 echo "$as_me: error: unrecognized option: $1
5800 Try \`$0 --help' for more information." >&2;}
5801 { (exit 1); exit 1; }; } ;;
5802
5803 *) ac_config_targets="$ac_config_targets $1" ;;
5804
5805 esac
5806 shift
5807 done
5808
5809 _ACEOF
5810
5811
5812
5813
5814
5815 cat >>$CONFIG_STATUS <<\_ACEOF
5816 for ac_config_target in $ac_config_targets
5817 do
5818 case "$ac_config_target" in
5819 # Handling of arguments.
5820 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5821 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5822 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5823 "src/acconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/acconfig.h" ;;
5824 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5825 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5826 { (exit 1); exit 1; }; };;
5827 esac
5828 done
5829
5830 # If the user did not use the arguments to specify the items to instantiate,
5831 # then the envvar interface is used. Set only those that are not.
5832 # We use the long form for the default assignment because of an extremely
5833 # bizarre bug on SunOS 4.1.3.
5834 if $ac_need_defaults; then
5835 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5836 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5837 fi
5838
5839 # Create a temporary directory, and hook for its removal unless debugging.
5840 $debug ||
5841 {
5842 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5843 trap '{ (exit 1); exit 1; }' 1 2 13 15
5844 }
5845
5846 # Create a (secure) tmp directory for tmp files.
5847 : ${TMPDIR=/tmp}
5848 {
5849 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5850 test -n "$tmp" && test -d "$tmp"
5851 } ||
5852 {
5853 tmp=$TMPDIR/cs$$-$RANDOM
5854 (umask 077 && mkdir $tmp)
5855 } ||
5856 {
5857 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5858 { (exit 1); exit 1; }
5859 }
5860
5861 _ACEOF
5862
5863 cat >>$CONFIG_STATUS <<_ACEOF
5864
5865 #
5866 # CONFIG_FILES section.
5867 #
5868
5869 # No need to generate the scripts if there are no CONFIG_FILES.
5870 # This happens for instance when ./config.status config.h
5871 if test -n "\$CONFIG_FILES"; then
5872 # Protect against being on the right side of a sed subst in config.status.
5873 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5874 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5875 s,@SHELL@,$SHELL,;t t
5876 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5877 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5878 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5879 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5880 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5881 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5882 s,@exec_prefix@,$exec_prefix,;t t
5883 s,@prefix@,$prefix,;t t
5884 s,@program_transform_name@,$program_transform_name,;t t
5885 s,@bindir@,$bindir,;t t
5886 s,@sbindir@,$sbindir,;t t
5887 s,@libexecdir@,$libexecdir,;t t
5888 s,@datadir@,$datadir,;t t
5889 s,@sysconfdir@,$sysconfdir,;t t
5890 s,@sharedstatedir@,$sharedstatedir,;t t
5891 s,@localstatedir@,$localstatedir,;t t
5892 s,@libdir@,$libdir,;t t
5893 s,@includedir@,$includedir,;t t
5894 s,@oldincludedir@,$oldincludedir,;t t
5895 s,@infodir@,$infodir,;t t
5896 s,@mandir@,$mandir,;t t
5897 s,@build_alias@,$build_alias,;t t
5898 s,@host_alias@,$host_alias,;t t
5899 s,@target_alias@,$target_alias,;t t
5900 s,@DEFS@,$DEFS,;t t
5901 s,@ECHO_C@,$ECHO_C,;t t
5902 s,@ECHO_N@,$ECHO_N,;t t
5903 s,@ECHO_T@,$ECHO_T,;t t
5904 s,@LIBS@,$LIBS,;t t
5905 s,@VERSION@,$VERSION,;t t
5906 s,@PROJECT@,$PROJECT,;t t
5907 s,@CC@,$CC,;t t
5908 s,@CFLAGS@,$CFLAGS,;t t
5909 s,@LDFLAGS@,$LDFLAGS,;t t
5910 s,@CPPFLAGS@,$CPPFLAGS,;t t
5911 s,@ac_ct_CC@,$ac_ct_CC,;t t
5912 s,@EXEEXT@,$EXEEXT,;t t
5913 s,@OBJEXT@,$OBJEXT,;t t
5914 s,@SET_MAKE@,$SET_MAKE,;t t
5915 s,@PERL@,$PERL,;t t
5916 s,@RANLIB@,$RANLIB,;t t
5917 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5918 s,@CPP@,$CPP,;t t
5919 s,@ALLOCA@,$ALLOCA,;t t
5920 s,@LIBOBJS@,$LIBOBJS,;t t
5921 s,@XML2_CONFIG@,$XML2_CONFIG,;t t
5922 s,@LIBXML_REQUIRED_VERSION@,$LIBXML_REQUIRED_VERSION,;t t
5923 s,@LIBXML2_OBJS@,$LIBXML2_OBJS,;t t
5924 s,@LIBXML2_LIB@,$LIBXML2_LIB,;t t
5925 s,@LIBXML2_CFLAGS@,$LIBXML2_CFLAGS,;t t
5926 s,@Z_CFLAGS@,$Z_CFLAGS,;t t
5927 s,@Z_LIBS@,$Z_LIBS,;t t
5928 CEOF
5929
5930 _ACEOF
5931
5932 cat >>$CONFIG_STATUS <<\_ACEOF
5933 # Split the substitutions into bite-sized pieces for seds with
5934 # small command number limits, like on Digital OSF/1 and HP-UX.
5935 ac_max_sed_lines=48
5936 ac_sed_frag=1 # Number of current file.
5937 ac_beg=1 # First line for current file.
5938 ac_end=$ac_max_sed_lines # Line after last line for current file.
5939 ac_more_lines=:
5940 ac_sed_cmds=
5941 while $ac_more_lines; do
5942 if test $ac_beg -gt 1; then
5943 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5944 else
5945 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5946 fi
5947 if test ! -s $tmp/subs.frag; then
5948 ac_more_lines=false
5949 else
5950 # The purpose of the label and of the branching condition is to
5951 # speed up the sed processing (if there are no `@' at all, there
5952 # is no need to browse any of the substitutions).
5953 # These are the two extra sed commands mentioned above.
5954 (echo ':t
5955 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5956 if test -z "$ac_sed_cmds"; then
5957 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5958 else
5959 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5960 fi
5961 ac_sed_frag=`expr $ac_sed_frag + 1`
5962 ac_beg=$ac_end
5963 ac_end=`expr $ac_end + $ac_max_sed_lines`
5964 fi
5965 done
5966 if test -z "$ac_sed_cmds"; then
5967 ac_sed_cmds=cat
5968 fi
5969 fi # test -n "$CONFIG_FILES"
5970
5971 _ACEOF
5972 cat >>$CONFIG_STATUS <<\_ACEOF
5973 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5974 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5975 case $ac_file in
5976 - | *:- | *:-:* ) # input from stdin
5977 cat >$tmp/stdin
5978 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5979 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5980 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5981 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5982 * ) ac_file_in=$ac_file.in ;;
5983 esac
5984
5985 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5986 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5987 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5988 X"$ac_file" : 'X\(//\)[^/]' \| \
5989 X"$ac_file" : 'X\(//\)$' \| \
5990 X"$ac_file" : 'X\(/\)' \| \
5991 . : '\(.\)' 2>/dev/null ||
5992 echo X"$ac_file" |
5993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5994 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5995 /^X\(\/\/\)$/{ s//\1/; q; }
5996 /^X\(\/\).*/{ s//\1/; q; }
5997 s/.*/./; q'`
5998 { case "$ac_dir" in
5999 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6000 *) as_incr_dir=.;;
6001 esac
6002 as_dummy="$ac_dir"
6003 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6004 case $as_mkdir_dir in
6005 # Skip DOS drivespec
6006 ?:) as_incr_dir=$as_mkdir_dir ;;
6007 *)
6008 as_incr_dir=$as_incr_dir/$as_mkdir_dir
6009 test -d "$as_incr_dir" ||
6010 mkdir "$as_incr_dir" ||
6011 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
6012 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
6013 { (exit 1); exit 1; }; }
6014 ;;
6015 esac
6016 done; }
6017
6018 ac_builddir=.
6019
6020 if test "$ac_dir" != .; then
6021 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6022 # A "../" for each directory in $ac_dir_suffix.
6023 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6024 else
6025 ac_dir_suffix= ac_top_builddir=
6026 fi
6027
6028 case $srcdir in
6029 .) # No --srcdir option. We are building in place.
6030 ac_srcdir=.
6031 if test -z "$ac_top_builddir"; then
6032 ac_top_srcdir=.
6033 else
6034 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6035 fi ;;
6036 [\\/]* | ?:[\\/]* ) # Absolute path.
6037 ac_srcdir=$srcdir$ac_dir_suffix;
6038 ac_top_srcdir=$srcdir ;;
6039 *) # Relative path.
6040 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6041 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6042 esac
6043 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6044 # absolute.
6045 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6046 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
6047 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6048 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6049
6050
6051
6052 if test x"$ac_file" != x-; then
6053 { echo "$as_me:$LINENO: creating $ac_file" >&5
6054 echo "$as_me: creating $ac_file" >&6;}
6055 rm -f "$ac_file"
6056 fi
6057 # Let's still pretend it is `configure' which instantiates (i.e., don't
6058 # use $as_me), people would be surprised to read:
6059 # /* config.h. Generated by config.status. */
6060 if test x"$ac_file" = x-; then
6061 configure_input=
6062 else
6063 configure_input="$ac_file. "
6064 fi
6065 configure_input=$configure_input"Generated from `echo $ac_file_in |
6066 sed 's,.*/,,'` by configure."
6067
6068 # First look for the input files in the build tree, otherwise in the
6069 # src tree.
6070 ac_file_inputs=`IFS=:
6071 for f in $ac_file_in; do
6072 case $f in
6073 -) echo $tmp/stdin ;;
6074 [\\/$]*)
6075 # Absolute (can't be DOS-style, as IFS=:)
6076 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6077 echo "$as_me: error: cannot find input file: $f" >&2;}
6078 { (exit 1); exit 1; }; }
6079 echo $f;;
6080 *) # Relative
6081 if test -f "$f"; then
6082 # Build tree
6083 echo $f
6084 elif test -f "$srcdir/$f"; then
6085 # Source tree
6086 echo $srcdir/$f
6087 else
6088 # /dev/null tree
6089 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6090 echo "$as_me: error: cannot find input file: $f" >&2;}
6091 { (exit 1); exit 1; }; }
6092 fi;;
6093 esac
6094 done` || { (exit 1); exit 1; }
6095 _ACEOF
6096 cat >>$CONFIG_STATUS <<_ACEOF
6097 sed "$ac_vpsub
6098 $extrasub
6099 _ACEOF
6100 cat >>$CONFIG_STATUS <<\_ACEOF
6101 :t
6102 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6103 s,@configure_input@,$configure_input,;t t
6104 s,@srcdir@,$ac_srcdir,;t t
6105 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6106 s,@top_srcdir@,$ac_top_srcdir,;t t
6107 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6108 s,@builddir@,$ac_builddir,;t t
6109 s,@abs_builddir@,$ac_abs_builddir,;t t
6110 s,@top_builddir@,$ac_top_builddir,;t t
6111 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6112 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6113 rm -f $tmp/stdin
6114 if test x"$ac_file" != x-; then
6115 mv $tmp/out $ac_file
6116 else
6117 cat $tmp/out
6118 rm -f $tmp/out
6119 fi
6120
6121 done
6122 _ACEOF
6123 cat >>$CONFIG_STATUS <<\_ACEOF
6124
6125 #
6126 # CONFIG_HEADER section.
6127 #
6128
6129 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6130 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6131 #
6132 # ac_d sets the value in "#define NAME VALUE" lines.
6133 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6134 ac_dB='[ ].*$,\1#\2'
6135 ac_dC=' '
6136 ac_dD=',;t'
6137 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6138 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6139 ac_uB='$,\1#\2define\3'
6140 ac_uC=' '
6141 ac_uD=',;t'
6142
6143 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6144 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6145 case $ac_file in
6146 - | *:- | *:-:* ) # input from stdin
6147 cat >$tmp/stdin
6148 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6149 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6150 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6151 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6152 * ) ac_file_in=$ac_file.in ;;
6153 esac
6154
6155 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6156 echo "$as_me: creating $ac_file" >&6;}
6157
6158 # First look for the input files in the build tree, otherwise in the
6159 # src tree.
6160 ac_file_inputs=`IFS=:
6161 for f in $ac_file_in; do
6162 case $f in
6163 -) echo $tmp/stdin ;;
6164 [\\/$]*)
6165 # Absolute (can't be DOS-style, as IFS=:)
6166 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6167 echo "$as_me: error: cannot find input file: $f" >&2;}
6168 { (exit 1); exit 1; }; }
6169 echo $f;;
6170 *) # Relative
6171 if test -f "$f"; then
6172 # Build tree
6173 echo $f
6174 elif test -f "$srcdir/$f"; then
6175 # Source tree
6176 echo $srcdir/$f
6177 else
6178 # /dev/null tree
6179 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6180 echo "$as_me: error: cannot find input file: $f" >&2;}
6181 { (exit 1); exit 1; }; }
6182 fi;;
6183 esac
6184 done` || { (exit 1); exit 1; }
6185 # Remove the trailing spaces.
6186 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6187
6188 _ACEOF
6189
6190 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6191 # `conftest.undefs', that substitutes the proper values into
6192 # config.h.in to produce config.h. The first handles `#define'
6193 # templates, and the second `#undef' templates.
6194 # And first: Protect against being on the right side of a sed subst in
6195 # config.status. Protect against being in an unquoted here document
6196 # in config.status.
6197 rm -f conftest.defines conftest.undefs
6198 # Using a here document instead of a string reduces the quoting nightmare.
6199 # Putting comments in sed scripts is not portable.
6200 #
6201 # `end' is used to avoid that the second main sed command (meant for
6202 # 0-ary CPP macros) applies to n-ary macro definitions.
6203 # See the Autoconf documentation for `clear'.
6204 cat >confdef2sed.sed <<\_ACEOF
6205 s/[\\&,]/\\&/g
6206 s,[\\$`],\\&,g
6207 t clear
6208 : clear
6209 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6210 t end
6211 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6212 : end
6213 _ACEOF
6214 # If some macros were called several times there might be several times
6215 # the same #defines, which is useless. Nevertheless, we may not want to
6216 # sort them, since we want the *last* AC-DEFINE to be honored.
6217 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6218 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6219 rm -f confdef2sed.sed
6220
6221 # This sed command replaces #undef with comments. This is necessary, for
6222 # example, in the case of _POSIX_SOURCE, which is predefined and required
6223 # on some systems where configure will not decide to define it.
6224 cat >>conftest.undefs <<\_ACEOF
6225 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6226 _ACEOF
6227
6228 # Break up conftest.defines because some shells have a limit on the size
6229 # of here documents, and old seds have small limits too (100 cmds).
6230 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6231 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6232 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6233 echo ' :' >>$CONFIG_STATUS
6234 rm -f conftest.tail
6235 while grep . conftest.defines >/dev/null
6236 do
6237 # Write a limited-size here document to $tmp/defines.sed.
6238 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6239 # Speed up: don't consider the non `#define' lines.
6240 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6241 # Work around the forget-to-reset-the-flag bug.
6242 echo 't clr' >>$CONFIG_STATUS
6243 echo ': clr' >>$CONFIG_STATUS
6244 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6245 echo 'CEOF
6246 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6247 rm -f $tmp/in
6248 mv $tmp/out $tmp/in
6249 ' >>$CONFIG_STATUS
6250 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6251 rm -f conftest.defines
6252 mv conftest.tail conftest.defines
6253 done
6254 rm -f conftest.defines
6255 echo ' fi # egrep' >>$CONFIG_STATUS
6256 echo >>$CONFIG_STATUS
6257
6258 # Break up conftest.undefs because some shells have a limit on the size
6259 # of here documents, and old seds have small limits too (100 cmds).
6260 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6261 rm -f conftest.tail
6262 while grep . conftest.undefs >/dev/null
6263 do
6264 # Write a limited-size here document to $tmp/undefs.sed.
6265 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6266 # Speed up: don't consider the non `#undef'
6267 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6268 # Work around the forget-to-reset-the-flag bug.
6269 echo 't clr' >>$CONFIG_STATUS
6270 echo ': clr' >>$CONFIG_STATUS
6271 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6272 echo 'CEOF
6273 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6274 rm -f $tmp/in
6275 mv $tmp/out $tmp/in
6276 ' >>$CONFIG_STATUS
6277 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6278 rm -f conftest.undefs
6279 mv conftest.tail conftest.undefs
6280 done
6281 rm -f conftest.undefs
6282
6283 cat >>$CONFIG_STATUS <<\_ACEOF
6284 # Let's still pretend it is `configure' which instantiates (i.e., don't
6285 # use $as_me), people would be surprised to read:
6286 # /* config.h. Generated by config.status. */
6287 if test x"$ac_file" = x-; then
6288 echo "/* Generated by configure. */" >$tmp/config.h
6289 else
6290 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6291 fi
6292 cat $tmp/in >>$tmp/config.h
6293 rm -f $tmp/in
6294 if test x"$ac_file" != x-; then
6295 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
6296 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6297 echo "$as_me: $ac_file is unchanged" >&6;}
6298 else
6299 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6300 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6301 X"$ac_file" : 'X\(//\)[^/]' \| \
6302 X"$ac_file" : 'X\(//\)$' \| \
6303 X"$ac_file" : 'X\(/\)' \| \
6304 . : '\(.\)' 2>/dev/null ||
6305 echo X"$ac_file" |
6306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6307 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6308 /^X\(\/\/\)$/{ s//\1/; q; }
6309 /^X\(\/\).*/{ s//\1/; q; }
6310 s/.*/./; q'`
6311 { case "$ac_dir" in
6312 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6313 *) as_incr_dir=.;;
6314 esac
6315 as_dummy="$ac_dir"
6316 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6317 case $as_mkdir_dir in
6318 # Skip DOS drivespec
6319 ?:) as_incr_dir=$as_mkdir_dir ;;
6320 *)
6321 as_incr_dir=$as_incr_dir/$as_mkdir_dir
6322 test -d "$as_incr_dir" ||
6323 mkdir "$as_incr_dir" ||
6324 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
6325 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
6326 { (exit 1); exit 1; }; }
6327 ;;
6328 esac
6329 done; }
6330
6331 rm -f $ac_file
6332 mv $tmp/config.h $ac_file
6333 fi
6334 else
6335 cat $tmp/config.h
6336 rm -f $tmp/config.h
6337 fi
6338 done
6339 _ACEOF
6340
6341 cat >>$CONFIG_STATUS <<\_ACEOF
6342
6343 { (exit 0); exit 0; }
6344 _ACEOF
6345 chmod +x $CONFIG_STATUS
6346 ac_clean_files=$ac_clean_files_save
6347
6348
6349 # configure is writing to config.log, and then calls config.status.
6350 # config.status does its own redirection, appending to config.log.
6351 # Unfortunately, on DOS this fails, as config.log is still kept open
6352 # by configure, so config.status won't be able to write to it; its
6353 # output is simply discarded. So we exec the FD to /dev/null,
6354 # effectively closing config.log, so it can be properly (re)opened and
6355 # appended to by config.status. When coming back to configure, we
6356 # need to make the FD available again.
6357 if test "$no_create" != yes; then
6358 ac_cs_success=:
6359 exec 5>/dev/null
6360 $SHELL $CONFIG_STATUS || ac_cs_success=false
6361 exec 5>>config.log
6362 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6363 # would make configure fail if this is the last instruction.
6364 $ac_cs_success || { (exit 1); exit 1; }
6365 fi

  ViewVC Help
Powered by ViewVC 1.1.22