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