Debian Codegraph @

configure

raw
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="gen.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 SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S CPP EGREP 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 _ACEOF
834 fi
835
836 if test -n "$ac_init_help"; then
837
838 cat <<\_ACEOF
839
840 Some influential environment variables:
841 CC C compiler command
842 CFLAGS C compiler flags
843 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
844 nonstandard directory <lib dir>
845 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
846 headers in a nonstandard directory <include dir>
847 CPP C preprocessor
848
849 Use these variables to override the choices made by `configure' or to help
850 it to find libraries and programs with nonstandard names/locations.
851
852 _ACEOF
853 fi
854
855 if test "$ac_init_help" = "recursive"; then
856 # If there are subdirs, report their specific --help.
857 ac_popdir=`pwd`
858 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
859 test -d $ac_dir || continue
860 ac_builddir=.
861
862 if test "$ac_dir" != .; then
863 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
864 # A "../" for each directory in $ac_dir_suffix.
865 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
866 else
867 ac_dir_suffix= ac_top_builddir=
868 fi
869
870 case $srcdir in
871 .) # No --srcdir option. We are building in place.
872 ac_srcdir=.
873 if test -z "$ac_top_builddir"; then
874 ac_top_srcdir=.
875 else
876 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
877 fi ;;
878 [\\/]* | ?:[\\/]* ) # Absolute path.
879 ac_srcdir=$srcdir$ac_dir_suffix;
880 ac_top_srcdir=$srcdir ;;
881 *) # Relative path.
882 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
883 ac_top_srcdir=$ac_top_builddir$srcdir ;;
884 esac
885
886 # Do not use `cd foo && pwd` to compute absolute paths, because
887 # the directories may not exist.
888 case `pwd` in
889 .) ac_abs_builddir="$ac_dir";;
890 *)
891 case "$ac_dir" in
892 .) ac_abs_builddir=`pwd`;;
893 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
894 *) ac_abs_builddir=`pwd`/"$ac_dir";;
895 esac;;
896 esac
897 case $ac_abs_builddir in
898 .) ac_abs_top_builddir=${ac_top_builddir}.;;
899 *)
900 case ${ac_top_builddir}. in
901 .) ac_abs_top_builddir=$ac_abs_builddir;;
902 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
903 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
904 esac;;
905 esac
906 case $ac_abs_builddir in
907 .) ac_abs_srcdir=$ac_srcdir;;
908 *)
909 case $ac_srcdir in
910 .) ac_abs_srcdir=$ac_abs_builddir;;
911 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
912 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
913 esac;;
914 esac
915 case $ac_abs_builddir in
916 .) ac_abs_top_srcdir=$ac_top_srcdir;;
917 *)
918 case $ac_top_srcdir in
919 .) ac_abs_top_srcdir=$ac_abs_builddir;;
920 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
921 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
922 esac;;
923 esac
924
925 cd $ac_dir
926 # Check for guested configure; otherwise get Cygnus style configure.
927 if test -f $ac_srcdir/configure.gnu; then
928 echo
929 $SHELL $ac_srcdir/configure.gnu --help=recursive
930 elif test -f $ac_srcdir/configure; then
931 echo
932 $SHELL $ac_srcdir/configure --help=recursive
933 elif test -f $ac_srcdir/configure.ac ||
934 test -f $ac_srcdir/configure.in; then
935 echo
936 $ac_configure --help
937 else
938 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
939 fi
940 cd $ac_popdir
941 done
942 fi
943
944 test -n "$ac_init_help" && exit 0
945 if $ac_init_version; then
946 cat <<\_ACEOF
947
948 Copyright (C) 2003 Free Software Foundation, Inc.
949 This configure script is free software; the Free Software Foundation
950 gives unlimited permission to copy, distribute and modify it.
951 _ACEOF
952 exit 0
953 fi
954 exec 5>config.log
955 cat >&5 <<_ACEOF
956 This file contains any messages produced by compilers while
957 running configure, to aid debugging if configure makes a mistake.
958
959 It was created by $as_me, which was
960 generated by GNU Autoconf 2.59. Invocation command line was
961
962 $ $0 $@
963
964 _ACEOF
965 {
966 cat <<_ASUNAME
967 ## --------- ##
968 ## Platform. ##
969 ## --------- ##
970
971 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
972 uname -m = `(uname -m) 2>/dev/null || echo unknown`
973 uname -r = `(uname -r) 2>/dev/null || echo unknown`
974 uname -s = `(uname -s) 2>/dev/null || echo unknown`
975 uname -v = `(uname -v) 2>/dev/null || echo unknown`
976
977 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
978 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
979
980 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
981 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
982 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
983 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
984 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
985 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
986 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
987
988 _ASUNAME
989
990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
991 for as_dir in $PATH
992 do
993 IFS=$as_save_IFS
994 test -z "$as_dir" && as_dir=.
995 echo "PATH: $as_dir"
996 done
997
998 } >&5
999
1000 cat >&5 <<_ACEOF
1001
1002
1003 ## ----------- ##
1004 ## Core tests. ##
1005 ## ----------- ##
1006
1007 _ACEOF
1008
1009
1010 # Keep a trace of the command line.
1011 # Strip out --no-create and --no-recursion so they do not pile up.
1012 # Strip out --silent because we don't want to record it for future runs.
1013 # Also quote any args containing shell meta-characters.
1014 # Make two passes to allow for proper duplicate-argument suppression.
1015 ac_configure_args=
1016 ac_configure_args0=
1017 ac_configure_args1=
1018 ac_sep=
1019 ac_must_keep_next=false
1020 for ac_pass in 1 2
1021 do
1022 for ac_arg
1023 do
1024 case $ac_arg in
1025 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1027 | -silent | --silent | --silen | --sile | --sil)
1028 continue ;;
1029 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1030 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1031 esac
1032 case $ac_pass in
1033 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1034 2)
1035 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1036 if test $ac_must_keep_next = true; then
1037 ac_must_keep_next=false # Got value, back to normal.
1038 else
1039 case $ac_arg in
1040 *=* | --config-cache | -C | -disable-* | --disable-* \
1041 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1042 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1043 | -with-* | --with-* | -without-* | --without-* | --x)
1044 case "$ac_configure_args0 " in
1045 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1046 esac
1047 ;;
1048 -* ) ac_must_keep_next=true ;;
1049 esac
1050 fi
1051 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1052 # Get rid of the leading space.
1053 ac_sep=" "
1054 ;;
1055 esac
1056 done
1057 done
1058 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1059 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1060
1061 # When interrupted or exit'd, cleanup temporary files, and complete
1062 # config.log. We remove comments because anyway the quotes in there
1063 # would cause problems or look ugly.
1064 # WARNING: Be sure not to use single quotes in there, as some shells,
1065 # such as our DU 5.0 friend, will then `close' the trap.
1066 trap 'exit_status=$?
1067 # Save into config.log some information that might help in debugging.
1068 {
1069 echo
1070
1071 cat <<\_ASBOX
1072 ## ---------------- ##
1073 ## Cache variables. ##
1074 ## ---------------- ##
1075 _ASBOX
1076 echo
1077 # The following way of writing the cache mishandles newlines in values,
1078 {
1079 (set) 2>&1 |
1080 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1081 *ac_space=\ *)
1082 sed -n \
1083 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1084 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1085 ;;
1086 *)
1087 sed -n \
1088 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1089 ;;
1090 esac;
1091 }
1092 echo
1093
1094 cat <<\_ASBOX
1095 ## ----------------- ##
1096 ## Output variables. ##
1097 ## ----------------- ##
1098 _ASBOX
1099 echo
1100 for ac_var in $ac_subst_vars
1101 do
1102 eval ac_val=$`echo $ac_var`
1103 echo "$ac_var='"'"'$ac_val'"'"'"
1104 done | sort
1105 echo
1106
1107 if test -n "$ac_subst_files"; then
1108 cat <<\_ASBOX
1109 ## ------------- ##
1110 ## Output files. ##
1111 ## ------------- ##
1112 _ASBOX
1113 echo
1114 for ac_var in $ac_subst_files
1115 do
1116 eval ac_val=$`echo $ac_var`
1117 echo "$ac_var='"'"'$ac_val'"'"'"
1118 done | sort
1119 echo
1120 fi
1121
1122 if test -s confdefs.h; then
1123 cat <<\_ASBOX
1124 ## ----------- ##
1125 ## confdefs.h. ##
1126 ## ----------- ##
1127 _ASBOX
1128 echo
1129 sed "/^$/d" confdefs.h | sort
1130 echo
1131 fi
1132 test "$ac_signal" != 0 &&
1133 echo "$as_me: caught signal $ac_signal"
1134 echo "$as_me: exit $exit_status"
1135 } >&5
1136 rm -f core *.core &&
1137 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1138 exit $exit_status
1139 ' 0
1140 for ac_signal in 1 2 13 15; do
1141 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1142 done
1143 ac_signal=0
1144
1145 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1146 rm -rf conftest* confdefs.h
1147 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1148 echo >confdefs.h
1149
1150 # Predefined preprocessor variables.
1151
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_NAME "$PACKAGE_NAME"
1154 _ACEOF
1155
1156
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1159 _ACEOF
1160
1161
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1164 _ACEOF
1165
1166
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_STRING "$PACKAGE_STRING"
1169 _ACEOF
1170
1171
1172 cat >>confdefs.h <<_ACEOF
1173 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1174 _ACEOF
1175
1176
1177 # Let the site file select an alternate cache file if it wants to.
1178 # Prefer explicitly selected file to automatically selected ones.
1179 if test -z "$CONFIG_SITE"; then
1180 if test "x$prefix" != xNONE; then
1181 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1182 else
1183 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1184 fi
1185 fi
1186 for ac_site_file in $CONFIG_SITE; do
1187 if test -r "$ac_site_file"; then
1188 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1189 echo "$as_me: loading site script $ac_site_file" >&6;}
1190 sed 's/^/| /' "$ac_site_file" >&5
1191 . "$ac_site_file"
1192 fi
1193 done
1194
1195 if test -r "$cache_file"; then
1196 # Some versions of bash will fail to source /dev/null (special
1197 # files actually), so we avoid doing that.
1198 if test -f "$cache_file"; then
1199 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1200 echo "$as_me: loading cache $cache_file" >&6;}
1201 case $cache_file in
1202 [\\/]* | ?:[\\/]* ) . $cache_file;;
1203 *) . ./$cache_file;;
1204 esac
1205 fi
1206 else
1207 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1208 echo "$as_me: creating cache $cache_file" >&6;}
1209 >$cache_file
1210 fi
1211
1212 # Check that the precious variables saved in the cache have kept the same
1213 # value.
1214 ac_cache_corrupted=false
1215 for ac_var in `(set) 2>&1 |
1216 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1217 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1218 eval ac_new_set=\$ac_env_${ac_var}_set
1219 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1220 eval ac_new_val="\$ac_env_${ac_var}_value"
1221 case $ac_old_set,$ac_new_set in
1222 set,)
1223 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1224 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1225 ac_cache_corrupted=: ;;
1226 ,set)
1227 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1228 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1229 ac_cache_corrupted=: ;;
1230 ,);;
1231 *)
1232 if test "x$ac_old_val" != "x$ac_new_val"; then
1233 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1234 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1235 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1236 echo "$as_me: former value: $ac_old_val" >&2;}
1237 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1238 echo "$as_me: current value: $ac_new_val" >&2;}
1239 ac_cache_corrupted=:
1240 fi;;
1241 esac
1242 # Pass precious variables to config.status.
1243 if test "$ac_new_set" = set; then
1244 case $ac_new_val in
1245 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1246 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1247 *) ac_arg=$ac_var=$ac_new_val ;;
1248 esac
1249 case " $ac_configure_args " in
1250 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1251 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1252 esac
1253 fi
1254 done
1255 if $ac_cache_corrupted; then
1256 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1257 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1258 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1259 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1260 { (exit 1); exit 1; }; }
1261 fi
1262
1263 ac_ext=c
1264 ac_cpp='$CPP $CPPFLAGS'
1265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1290 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1291 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1292 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1293 echo $ECHO_N "(cached) $ECHO_C" >&6
1294 else
1295 cat >conftest.make <<\_ACEOF
1296 all:
1297 @echo 'ac_maketemp="$(MAKE)"'
1298 _ACEOF
1299 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1300 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1301 if test -n "$ac_maketemp"; then
1302 eval ac_cv_prog_make_${ac_make}_set=yes
1303 else
1304 eval ac_cv_prog_make_${ac_make}_set=no
1305 fi
1306 rm -f conftest.make
1307 fi
1308 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1309 echo "$as_me:$LINENO: result: yes" >&5
1310 echo "${ECHO_T}yes" >&6
1311 SET_MAKE=
1312 else
1313 echo "$as_me:$LINENO: result: no" >&5
1314 echo "${ECHO_T}no" >&6
1315 SET_MAKE="MAKE=${MAKE-make}"
1316 fi
1317
1318 ac_ext=c
1319 ac_cpp='$CPP $CPPFLAGS'
1320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1323 if test -n "$ac_tool_prefix"; then
1324 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1325 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1326 echo "$as_me:$LINENO: checking for $ac_word" >&5
1327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1328 if test "${ac_cv_prog_CC+set}" = set; then
1329 echo $ECHO_N "(cached) $ECHO_C" >&6
1330 else
1331 if test -n "$CC"; then
1332 ac_cv_prog_CC="$CC" # Let the user override the test.
1333 else
1334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1335 for as_dir in $PATH
1336 do
1337 IFS=$as_save_IFS
1338 test -z "$as_dir" && as_dir=.
1339 for ac_exec_ext in '' $ac_executable_extensions; do
1340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1341 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1343 break 2
1344 fi
1345 done
1346 done
1347
1348 fi
1349 fi
1350 CC=$ac_cv_prog_CC
1351 if test -n "$CC"; then
1352 echo "$as_me:$LINENO: result: $CC" >&5
1353 echo "${ECHO_T}$CC" >&6
1354 else
1355 echo "$as_me:$LINENO: result: no" >&5
1356 echo "${ECHO_T}no" >&6
1357 fi
1358
1359 fi
1360 if test -z "$ac_cv_prog_CC"; then
1361 ac_ct_CC=$CC
1362 # Extract the first word of "gcc", so it can be a program name with args.
1363 set dummy gcc; ac_word=$2
1364 echo "$as_me:$LINENO: checking for $ac_word" >&5
1365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1366 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1367 echo $ECHO_N "(cached) $ECHO_C" >&6
1368 else
1369 if test -n "$ac_ct_CC"; then
1370 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1371 else
1372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1373 for as_dir in $PATH
1374 do
1375 IFS=$as_save_IFS
1376 test -z "$as_dir" && as_dir=.
1377 for ac_exec_ext in '' $ac_executable_extensions; do
1378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1379 ac_cv_prog_ac_ct_CC="gcc"
1380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1381 break 2
1382 fi
1383 done
1384 done
1385
1386 fi
1387 fi
1388 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1389 if test -n "$ac_ct_CC"; then
1390 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1391 echo "${ECHO_T}$ac_ct_CC" >&6
1392 else
1393 echo "$as_me:$LINENO: result: no" >&5
1394 echo "${ECHO_T}no" >&6
1395 fi
1396
1397 CC=$ac_ct_CC
1398 else
1399 CC="$ac_cv_prog_CC"
1400 fi
1401
1402 if test -z "$CC"; then
1403 if test -n "$ac_tool_prefix"; then
1404 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1405 set dummy ${ac_tool_prefix}cc; ac_word=$2
1406 echo "$as_me:$LINENO: checking for $ac_word" >&5
1407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1408 if test "${ac_cv_prog_CC+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1410 else
1411 if test -n "$CC"; then
1412 ac_cv_prog_CC="$CC" # Let the user override the test.
1413 else
1414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1415 for as_dir in $PATH
1416 do
1417 IFS=$as_save_IFS
1418 test -z "$as_dir" && as_dir=.
1419 for ac_exec_ext in '' $ac_executable_extensions; do
1420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1421 ac_cv_prog_CC="${ac_tool_prefix}cc"
1422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1423 break 2
1424 fi
1425 done
1426 done
1427
1428 fi
1429 fi
1430 CC=$ac_cv_prog_CC
1431 if test -n "$CC"; then
1432 echo "$as_me:$LINENO: result: $CC" >&5
1433 echo "${ECHO_T}$CC" >&6
1434 else
1435 echo "$as_me:$LINENO: result: no" >&5
1436 echo "${ECHO_T}no" >&6
1437 fi
1438
1439 fi
1440 if test -z "$ac_cv_prog_CC"; then
1441 ac_ct_CC=$CC
1442 # Extract the first word of "cc", so it can be a program name with args.
1443 set dummy cc; ac_word=$2
1444 echo "$as_me:$LINENO: checking for $ac_word" >&5
1445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1446 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1447 echo $ECHO_N "(cached) $ECHO_C" >&6
1448 else
1449 if test -n "$ac_ct_CC"; then
1450 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1451 else
1452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1453 for as_dir in $PATH
1454 do
1455 IFS=$as_save_IFS
1456 test -z "$as_dir" && as_dir=.
1457 for ac_exec_ext in '' $ac_executable_extensions; do
1458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1459 ac_cv_prog_ac_ct_CC="cc"
1460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1461 break 2
1462 fi
1463 done
1464 done
1465
1466 fi
1467 fi
1468 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1469 if test -n "$ac_ct_CC"; then
1470 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1471 echo "${ECHO_T}$ac_ct_CC" >&6
1472 else
1473 echo "$as_me:$LINENO: result: no" >&5
1474 echo "${ECHO_T}no" >&6
1475 fi
1476
1477 CC=$ac_ct_CC
1478 else
1479 CC="$ac_cv_prog_CC"
1480 fi
1481
1482 fi
1483 if test -z "$CC"; then
1484 # Extract the first word of "cc", so it can be a program name with args.
1485 set dummy cc; ac_word=$2
1486 echo "$as_me:$LINENO: checking for $ac_word" >&5
1487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1488 if test "${ac_cv_prog_CC+set}" = set; then
1489 echo $ECHO_N "(cached) $ECHO_C" >&6
1490 else
1491 if test -n "$CC"; then
1492 ac_cv_prog_CC="$CC" # Let the user override the test.
1493 else
1494 ac_prog_rejected=no
1495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1496 for as_dir in $PATH
1497 do
1498 IFS=$as_save_IFS
1499 test -z "$as_dir" && as_dir=.
1500 for ac_exec_ext in '' $ac_executable_extensions; do
1501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1502 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1503 ac_prog_rejected=yes
1504 continue
1505 fi
1506 ac_cv_prog_CC="cc"
1507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1508 break 2
1509 fi
1510 done
1511 done
1512
1513 if test $ac_prog_rejected = yes; then
1514 # We found a bogon in the path, so make sure we never use it.
1515 set dummy $ac_cv_prog_CC
1516 shift
1517 if test $# != 0; then
1518 # We chose a different compiler from the bogus one.
1519 # However, it has the same basename, so the bogon will be chosen
1520 # first if we set CC to just the basename; use the full file name.
1521 shift
1522 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1523 fi
1524 fi
1525 fi
1526 fi
1527 CC=$ac_cv_prog_CC
1528 if test -n "$CC"; then
1529 echo "$as_me:$LINENO: result: $CC" >&5
1530 echo "${ECHO_T}$CC" >&6
1531 else
1532 echo "$as_me:$LINENO: result: no" >&5
1533 echo "${ECHO_T}no" >&6
1534 fi
1535
1536 fi
1537 if test -z "$CC"; then
1538 if test -n "$ac_tool_prefix"; then
1539 for ac_prog in cl
1540 do
1541 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1542 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1543 echo "$as_me:$LINENO: checking for $ac_word" >&5
1544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1545 if test "${ac_cv_prog_CC+set}" = set; then
1546 echo $ECHO_N "(cached) $ECHO_C" >&6
1547 else
1548 if test -n "$CC"; then
1549 ac_cv_prog_CC="$CC" # Let the user override the test.
1550 else
1551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1552 for as_dir in $PATH
1553 do
1554 IFS=$as_save_IFS
1555 test -z "$as_dir" && as_dir=.
1556 for ac_exec_ext in '' $ac_executable_extensions; do
1557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1558 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1560 break 2
1561 fi
1562 done
1563 done
1564
1565 fi
1566 fi
1567 CC=$ac_cv_prog_CC
1568 if test -n "$CC"; then
1569 echo "$as_me:$LINENO: result: $CC" >&5
1570 echo "${ECHO_T}$CC" >&6
1571 else
1572 echo "$as_me:$LINENO: result: no" >&5
1573 echo "${ECHO_T}no" >&6
1574 fi
1575
1576 test -n "$CC" && break
1577 done
1578 fi
1579 if test -z "$CC"; then
1580 ac_ct_CC=$CC
1581 for ac_prog in cl
1582 do
1583 # Extract the first word of "$ac_prog", so it can be a program name with args.
1584 set dummy $ac_prog; ac_word=$2
1585 echo "$as_me:$LINENO: checking for $ac_word" >&5
1586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1587 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1589 else
1590 if test -n "$ac_ct_CC"; then
1591 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1592 else
1593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1594 for as_dir in $PATH
1595 do
1596 IFS=$as_save_IFS
1597 test -z "$as_dir" && as_dir=.
1598 for ac_exec_ext in '' $ac_executable_extensions; do
1599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1600 ac_cv_prog_ac_ct_CC="$ac_prog"
1601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1602 break 2
1603 fi
1604 done
1605 done
1606
1607 fi
1608 fi
1609 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1610 if test -n "$ac_ct_CC"; then
1611 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1612 echo "${ECHO_T}$ac_ct_CC" >&6
1613 else
1614 echo "$as_me:$LINENO: result: no" >&5
1615 echo "${ECHO_T}no" >&6
1616 fi
1617
1618 test -n "$ac_ct_CC" && break
1619 done
1620
1621 CC=$ac_ct_CC
1622 fi
1623
1624 fi
1625
1626
1627 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1628 See \`config.log' for more details." >&5
1629 echo "$as_me: error: no acceptable C compiler found in \$PATH
1630 See \`config.log' for more details." >&2;}
1631 { (exit 1); exit 1; }; }
1632
1633 # Provide some information about the compiler.
1634 echo "$as_me:$LINENO:" \
1635 "checking for C compiler version" >&5
1636 ac_compiler=`set X $ac_compile; echo $2`
1637 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1638 (eval $ac_compiler --version </dev/null >&5) 2>&5
1639 ac_status=$?
1640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1641 (exit $ac_status); }
1642 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1643 (eval $ac_compiler -v </dev/null >&5) 2>&5
1644 ac_status=$?
1645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1646 (exit $ac_status); }
1647 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1648 (eval $ac_compiler -V </dev/null >&5) 2>&5
1649 ac_status=$?
1650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1651 (exit $ac_status); }
1652
1653 cat >conftest.$ac_ext <<_ACEOF
1654 /* confdefs.h. */
1655 _ACEOF
1656 cat confdefs.h >>conftest.$ac_ext
1657 cat >>conftest.$ac_ext <<_ACEOF
1658 /* end confdefs.h. */
1659
1660 int
1661 main ()
1662 {
1663
1664 ;
1665 return 0;
1666 }
1667 _ACEOF
1668 ac_clean_files_save=$ac_clean_files
1669 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1670 # Try to create an executable without -o first, disregard a.out.
1671 # It will help us diagnose broken compilers, and finding out an intuition
1672 # of exeext.
1673 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1674 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1675 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1676 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1677 (eval $ac_link_default) 2>&5
1678 ac_status=$?
1679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1680 (exit $ac_status); }; then
1681 # Find the output, starting from the most likely. This scheme is
1682 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1683 # resort.
1684
1685 # Be careful to initialize this variable, since it used to be cached.
1686 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1687 ac_cv_exeext=
1688 # b.out is created by i960 compilers.
1689 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1690 do
1691 test -f "$ac_file" || continue
1692 case $ac_file in
1693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1694 ;;
1695 conftest.$ac_ext )
1696 # This is the source file.
1697 ;;
1698 [ab].out )
1699 # We found the default executable, but exeext='' is most
1700 # certainly right.
1701 break;;
1702 *.* )
1703 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1704 # FIXME: I believe we export ac_cv_exeext for Libtool,
1705 # but it would be cool to find out if it's true. Does anybody
1706 # maintain Libtool? --akim.
1707 export ac_cv_exeext
1708 break;;
1709 * )
1710 break;;
1711 esac
1712 done
1713 else
1714 echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1716
1717 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1718 See \`config.log' for more details." >&5
1719 echo "$as_me: error: C compiler cannot create executables
1720 See \`config.log' for more details." >&2;}
1721 { (exit 77); exit 77; }; }
1722 fi
1723
1724 ac_exeext=$ac_cv_exeext
1725 echo "$as_me:$LINENO: result: $ac_file" >&5
1726 echo "${ECHO_T}$ac_file" >&6
1727
1728 # Check the compiler produces executables we can run. If not, either
1729 # the compiler is broken, or we cross compile.
1730 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1731 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1732 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1733 # If not cross compiling, check that we can run a simple program.
1734 if test "$cross_compiling" != yes; then
1735 if { ac_try='./$ac_file'
1736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1737 (eval $ac_try) 2>&5
1738 ac_status=$?
1739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1740 (exit $ac_status); }; }; then
1741 cross_compiling=no
1742 else
1743 if test "$cross_compiling" = maybe; then
1744 cross_compiling=yes
1745 else
1746 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1747 If you meant to cross compile, use \`--host'.
1748 See \`config.log' for more details." >&5
1749 echo "$as_me: error: cannot run C compiled programs.
1750 If you meant to cross compile, use \`--host'.
1751 See \`config.log' for more details." >&2;}
1752 { (exit 1); exit 1; }; }
1753 fi
1754 fi
1755 fi
1756 echo "$as_me:$LINENO: result: yes" >&5
1757 echo "${ECHO_T}yes" >&6
1758
1759 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1760 ac_clean_files=$ac_clean_files_save
1761 # Check the compiler produces executables we can run. If not, either
1762 # the compiler is broken, or we cross compile.
1763 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1764 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1765 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1766 echo "${ECHO_T}$cross_compiling" >&6
1767
1768 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1769 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1771 (eval $ac_link) 2>&5
1772 ac_status=$?
1773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1774 (exit $ac_status); }; then
1775 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1776 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1777 # work properly (i.e., refer to `conftest.exe'), while it won't with
1778 # `rm'.
1779 for ac_file in conftest.exe conftest conftest.*; do
1780 test -f "$ac_file" || continue
1781 case $ac_file in
1782 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1783 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1784 export ac_cv_exeext
1785 break;;
1786 * ) break;;
1787 esac
1788 done
1789 else
1790 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1791 See \`config.log' for more details." >&5
1792 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1793 See \`config.log' for more details." >&2;}
1794 { (exit 1); exit 1; }; }
1795 fi
1796
1797 rm -f conftest$ac_cv_exeext
1798 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1799 echo "${ECHO_T}$ac_cv_exeext" >&6
1800
1801 rm -f conftest.$ac_ext
1802 EXEEXT=$ac_cv_exeext
1803 ac_exeext=$EXEEXT
1804 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1805 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1806 if test "${ac_cv_objext+set}" = set; then
1807 echo $ECHO_N "(cached) $ECHO_C" >&6
1808 else
1809 cat >conftest.$ac_ext <<_ACEOF
1810 /* confdefs.h. */
1811 _ACEOF
1812 cat confdefs.h >>conftest.$ac_ext
1813 cat >>conftest.$ac_ext <<_ACEOF
1814 /* end confdefs.h. */
1815
1816 int
1817 main ()
1818 {
1819
1820 ;
1821 return 0;
1822 }
1823 _ACEOF
1824 rm -f conftest.o conftest.obj
1825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1826 (eval $ac_compile) 2>&5
1827 ac_status=$?
1828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1829 (exit $ac_status); }; then
1830 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1831 case $ac_file in
1832 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1833 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1834 break;;
1835 esac
1836 done
1837 else
1838 echo "$as_me: failed program was:" >&5
1839 sed 's/^/| /' conftest.$ac_ext >&5
1840
1841 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1842 See \`config.log' for more details." >&5
1843 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1844 See \`config.log' for more details." >&2;}
1845 { (exit 1); exit 1; }; }
1846 fi
1847
1848 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1849 fi
1850 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1851 echo "${ECHO_T}$ac_cv_objext" >&6
1852 OBJEXT=$ac_cv_objext
1853 ac_objext=$OBJEXT
1854 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1855 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1856 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1858 else
1859 cat >conftest.$ac_ext <<_ACEOF
1860 /* confdefs.h. */
1861 _ACEOF
1862 cat confdefs.h >>conftest.$ac_ext
1863 cat >>conftest.$ac_ext <<_ACEOF
1864 /* end confdefs.h. */
1865
1866 int
1867 main ()
1868 {
1869 #ifndef __GNUC__
1870 choke me
1871 #endif
1872
1873 ;
1874 return 0;
1875 }
1876 _ACEOF
1877 rm -f conftest.$ac_objext
1878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1879 (eval $ac_compile) 2>conftest.er1
1880 ac_status=$?
1881 grep -v '^ *+' conftest.er1 >conftest.err
1882 rm -f conftest.er1
1883 cat conftest.err >&5
1884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885 (exit $ac_status); } &&
1886 { ac_try='test -z "$ac_c_werror_flag"
1887 || test ! -s conftest.err'
1888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1889 (eval $ac_try) 2>&5
1890 ac_status=$?
1891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1892 (exit $ac_status); }; } &&
1893 { ac_try='test -s conftest.$ac_objext'
1894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1895 (eval $ac_try) 2>&5
1896 ac_status=$?
1897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1898 (exit $ac_status); }; }; then
1899 ac_compiler_gnu=yes
1900 else
1901 echo "$as_me: failed program was:" >&5
1902 sed 's/^/| /' conftest.$ac_ext >&5
1903
1904 ac_compiler_gnu=no
1905 fi
1906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1907 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1908
1909 fi
1910 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1911 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1912 GCC=`test $ac_compiler_gnu = yes && echo yes`
1913 ac_test_CFLAGS=${CFLAGS+set}
1914 ac_save_CFLAGS=$CFLAGS
1915 CFLAGS="-g"
1916 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1917 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1918 if test "${ac_cv_prog_cc_g+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921 cat >conftest.$ac_ext <<_ACEOF
1922 /* confdefs.h. */
1923 _ACEOF
1924 cat confdefs.h >>conftest.$ac_ext
1925 cat >>conftest.$ac_ext <<_ACEOF
1926 /* end confdefs.h. */
1927
1928 int
1929 main ()
1930 {
1931
1932 ;
1933 return 0;
1934 }
1935 _ACEOF
1936 rm -f conftest.$ac_objext
1937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1938 (eval $ac_compile) 2>conftest.er1
1939 ac_status=$?
1940 grep -v '^ *+' conftest.er1 >conftest.err
1941 rm -f conftest.er1
1942 cat conftest.err >&5
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); } &&
1945 { ac_try='test -z "$ac_c_werror_flag"
1946 || test ! -s conftest.err'
1947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1948 (eval $ac_try) 2>&5
1949 ac_status=$?
1950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1951 (exit $ac_status); }; } &&
1952 { ac_try='test -s conftest.$ac_objext'
1953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1954 (eval $ac_try) 2>&5
1955 ac_status=$?
1956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957 (exit $ac_status); }; }; then
1958 ac_cv_prog_cc_g=yes
1959 else
1960 echo "$as_me: failed program was:" >&5
1961 sed 's/^/| /' conftest.$ac_ext >&5
1962
1963 ac_cv_prog_cc_g=no
1964 fi
1965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1966 fi
1967 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1968 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1969 if test "$ac_test_CFLAGS" = set; then
1970 CFLAGS=$ac_save_CFLAGS
1971 elif test $ac_cv_prog_cc_g = yes; then
1972 if test "$GCC" = yes; then
1973 CFLAGS="-g -O2"
1974 else
1975 CFLAGS="-g"
1976 fi
1977 else
1978 if test "$GCC" = yes; then
1979 CFLAGS="-O2"
1980 else
1981 CFLAGS=
1982 fi
1983 fi
1984 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1985 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1986 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1988 else
1989 ac_cv_prog_cc_stdc=no
1990 ac_save_CC=$CC
1991 cat >conftest.$ac_ext <<_ACEOF
1992 /* confdefs.h. */
1993 _ACEOF
1994 cat confdefs.h >>conftest.$ac_ext
1995 cat >>conftest.$ac_ext <<_ACEOF
1996 /* end confdefs.h. */
1997 #include <stdarg.h>
1998 #include <stdio.h>
1999 #include <sys/types.h>
2000 #include <sys/stat.h>
2001 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2002 struct buf { int x; };
2003 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2004 static char *e (p, i)
2005 char **p;
2006 int i;
2007 {
2008 return p[i];
2009 }
2010 static char *f (char * (*g) (char **, int), char **p, ...)
2011 {
2012 char *s;
2013 va_list v;
2014 va_start (v,p);
2015 s = g (p, va_arg (v,int));
2016 va_end (v);
2017 return s;
2018 }
2019
2020 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2021 function prototypes and stuff, but not '\xHH' hex character constants.
2022 These don't provoke an error unfortunately, instead are silently treated
2023 as 'x'. The following induces an error, until -std1 is added to get
2024 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2025 array size at least. It's necessary to write '\x00'==0 to get something
2026 that's true only with -std1. */
2027 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2028
2029 int test (int i, double x);
2030 struct s1 {int (*f) (int a);};
2031 struct s2 {int (*f) (double a);};
2032 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2033 int argc;
2034 char **argv;
2035 int
2036 main ()
2037 {
2038 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2039 ;
2040 return 0;
2041 }
2042 _ACEOF
2043 # Don't try gcc -ansi; that turns off useful extensions and
2044 # breaks some systems' header files.
2045 # AIX -qlanglvl=ansi
2046 # Ultrix and OSF/1 -std1
2047 # HP-UX 10.20 and later -Ae
2048 # HP-UX older versions -Aa -D_HPUX_SOURCE
2049 # SVR4 -Xc -D__EXTENSIONS__
2050 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2051 do
2052 CC="$ac_save_CC $ac_arg"
2053 rm -f conftest.$ac_objext
2054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2055 (eval $ac_compile) 2>conftest.er1
2056 ac_status=$?
2057 grep -v '^ *+' conftest.er1 >conftest.err
2058 rm -f conftest.er1
2059 cat conftest.err >&5
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); } &&
2062 { ac_try='test -z "$ac_c_werror_flag"
2063 || test ! -s conftest.err'
2064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2065 (eval $ac_try) 2>&5
2066 ac_status=$?
2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068 (exit $ac_status); }; } &&
2069 { ac_try='test -s conftest.$ac_objext'
2070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2071 (eval $ac_try) 2>&5
2072 ac_status=$?
2073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074 (exit $ac_status); }; }; then
2075 ac_cv_prog_cc_stdc=$ac_arg
2076 break
2077 else
2078 echo "$as_me: failed program was:" >&5
2079 sed 's/^/| /' conftest.$ac_ext >&5
2080
2081 fi
2082 rm -f conftest.err conftest.$ac_objext
2083 done
2084 rm -f conftest.$ac_ext conftest.$ac_objext
2085 CC=$ac_save_CC
2086
2087 fi
2088
2089 case "x$ac_cv_prog_cc_stdc" in
2090 x|xno)
2091 echo "$as_me:$LINENO: result: none needed" >&5
2092 echo "${ECHO_T}none needed" >&6 ;;
2093 *)
2094 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2095 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2096 CC="$CC $ac_cv_prog_cc_stdc" ;;
2097 esac
2098
2099 # Some people use a C++ compiler to compile C. Since we use `exit',
2100 # in C++ we need to declare it. In case someone uses the same compiler
2101 # for both compiling C and C++ we need to have the C++ compiler decide
2102 # the declaration of exit, since it's the most demanding environment.
2103 cat >conftest.$ac_ext <<_ACEOF
2104 #ifndef __cplusplus
2105 choke me
2106 #endif
2107 _ACEOF
2108 rm -f conftest.$ac_objext
2109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2110 (eval $ac_compile) 2>conftest.er1
2111 ac_status=$?
2112 grep -v '^ *+' conftest.er1 >conftest.err
2113 rm -f conftest.er1
2114 cat conftest.err >&5
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); } &&
2117 { ac_try='test -z "$ac_c_werror_flag"
2118 || test ! -s conftest.err'
2119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2120 (eval $ac_try) 2>&5
2121 ac_status=$?
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }; } &&
2124 { ac_try='test -s conftest.$ac_objext'
2125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2126 (eval $ac_try) 2>&5
2127 ac_status=$?
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }; }; then
2130 for ac_declaration in \
2131 '' \
2132 'extern "C" void std::exit (int) throw (); using std::exit;' \
2133 'extern "C" void std::exit (int); using std::exit;' \
2134 'extern "C" void exit (int) throw ();' \
2135 'extern "C" void exit (int);' \
2136 'void exit (int);'
2137 do
2138 cat >conftest.$ac_ext <<_ACEOF
2139 /* confdefs.h. */
2140 _ACEOF
2141 cat confdefs.h >>conftest.$ac_ext
2142 cat >>conftest.$ac_ext <<_ACEOF
2143 /* end confdefs.h. */
2144 $ac_declaration
2145 #include <stdlib.h>
2146 int
2147 main ()
2148 {
2149 exit (42);
2150 ;
2151 return 0;
2152 }
2153 _ACEOF
2154 rm -f conftest.$ac_objext
2155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2156 (eval $ac_compile) 2>conftest.er1
2157 ac_status=$?
2158 grep -v '^ *+' conftest.er1 >conftest.err
2159 rm -f conftest.er1
2160 cat conftest.err >&5
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); } &&
2163 { ac_try='test -z "$ac_c_werror_flag"
2164 || test ! -s conftest.err'
2165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2166 (eval $ac_try) 2>&5
2167 ac_status=$?
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }; } &&
2170 { ac_try='test -s conftest.$ac_objext'
2171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172 (eval $ac_try) 2>&5
2173 ac_status=$?
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; }; then
2176 :
2177 else
2178 echo "$as_me: failed program was:" >&5
2179 sed 's/^/| /' conftest.$ac_ext >&5
2180
2181 continue
2182 fi
2183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2184 cat >conftest.$ac_ext <<_ACEOF
2185 /* confdefs.h. */
2186 _ACEOF
2187 cat confdefs.h >>conftest.$ac_ext
2188 cat >>conftest.$ac_ext <<_ACEOF
2189 /* end confdefs.h. */
2190 $ac_declaration
2191 int
2192 main ()
2193 {
2194 exit (42);
2195 ;
2196 return 0;
2197 }
2198 _ACEOF
2199 rm -f conftest.$ac_objext
2200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2201 (eval $ac_compile) 2>conftest.er1
2202 ac_status=$?
2203 grep -v '^ *+' conftest.er1 >conftest.err
2204 rm -f conftest.er1
2205 cat conftest.err >&5
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); } &&
2208 { ac_try='test -z "$ac_c_werror_flag"
2209 || test ! -s conftest.err'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211 (eval $ac_try) 2>&5
2212 ac_status=$?
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; } &&
2215 { ac_try='test -s conftest.$ac_objext'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217 (eval $ac_try) 2>&5
2218 ac_status=$?
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; }; then
2221 break
2222 else
2223 echo "$as_me: failed program was:" >&5
2224 sed 's/^/| /' conftest.$ac_ext >&5
2225
2226 fi
2227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2228 done
2229 rm -f conftest*
2230 if test -n "$ac_declaration"; then
2231 echo '#ifdef __cplusplus' >>confdefs.h
2232 echo $ac_declaration >>confdefs.h
2233 echo '#endif' >>confdefs.h
2234 fi
2235
2236 else
2237 echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2239
2240 fi
2241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2242 ac_ext=c
2243 ac_cpp='$CPP $CPPFLAGS'
2244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2247
2248 if test -n "$ac_tool_prefix"; then
2249 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2250 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2251 echo "$as_me:$LINENO: checking for $ac_word" >&5
2252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2253 if test "${ac_cv_prog_RANLIB+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2255 else
2256 if test -n "$RANLIB"; then
2257 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2258 else
2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 for as_dir in $PATH
2261 do
2262 IFS=$as_save_IFS
2263 test -z "$as_dir" && as_dir=.
2264 for ac_exec_ext in '' $ac_executable_extensions; do
2265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2266 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2268 break 2
2269 fi
2270 done
2271 done
2272
2273 fi
2274 fi
2275 RANLIB=$ac_cv_prog_RANLIB
2276 if test -n "$RANLIB"; then
2277 echo "$as_me:$LINENO: result: $RANLIB" >&5
2278 echo "${ECHO_T}$RANLIB" >&6
2279 else
2280 echo "$as_me:$LINENO: result: no" >&5
2281 echo "${ECHO_T}no" >&6
2282 fi
2283
2284 fi
2285 if test -z "$ac_cv_prog_RANLIB"; then
2286 ac_ct_RANLIB=$RANLIB
2287 # Extract the first word of "ranlib", so it can be a program name with args.
2288 set dummy ranlib; ac_word=$2
2289 echo "$as_me:$LINENO: checking for $ac_word" >&5
2290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2291 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2292 echo $ECHO_N "(cached) $ECHO_C" >&6
2293 else
2294 if test -n "$ac_ct_RANLIB"; then
2295 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2296 else
2297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298 for as_dir in $PATH
2299 do
2300 IFS=$as_save_IFS
2301 test -z "$as_dir" && as_dir=.
2302 for ac_exec_ext in '' $ac_executable_extensions; do
2303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2304 ac_cv_prog_ac_ct_RANLIB="ranlib"
2305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2306 break 2
2307 fi
2308 done
2309 done
2310
2311 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2312 fi
2313 fi
2314 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2315 if test -n "$ac_ct_RANLIB"; then
2316 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2317 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2318 else
2319 echo "$as_me:$LINENO: result: no" >&5
2320 echo "${ECHO_T}no" >&6
2321 fi
2322
2323 RANLIB=$ac_ct_RANLIB
2324 else
2325 RANLIB="$ac_cv_prog_RANLIB"
2326 fi
2327
2328 ac_aux_dir=
2329 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2330 if test -f $ac_dir/install-sh; then
2331 ac_aux_dir=$ac_dir
2332 ac_install_sh="$ac_aux_dir/install-sh -c"
2333 break
2334 elif test -f $ac_dir/install.sh; then
2335 ac_aux_dir=$ac_dir
2336 ac_install_sh="$ac_aux_dir/install.sh -c"
2337 break
2338 elif test -f $ac_dir/shtool; then
2339 ac_aux_dir=$ac_dir
2340 ac_install_sh="$ac_aux_dir/shtool install -c"
2341 break
2342 fi
2343 done
2344 if test -z "$ac_aux_dir"; then
2345 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2346 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2347 { (exit 1); exit 1; }; }
2348 fi
2349 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2350 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2351 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2352
2353 # Find a good install program. We prefer a C program (faster),
2354 # so one script is as good as another. But avoid the broken or
2355 # incompatible versions:
2356 # SysV /etc/install, /usr/sbin/install
2357 # SunOS /usr/etc/install
2358 # IRIX /sbin/install
2359 # AIX /bin/install
2360 # AmigaOS /C/install, which installs bootblocks on floppy discs
2361 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2362 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2363 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2364 # OS/2's system install, which has a completely different semantic
2365 # ./install, which can be erroneously created by make from ./install.sh.
2366 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2367 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2368 if test -z "$INSTALL"; then
2369 if test "${ac_cv_path_install+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2371 else
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 for as_dir in $PATH
2374 do
2375 IFS=$as_save_IFS
2376 test -z "$as_dir" && as_dir=.
2377 # Account for people who put trailing slashes in PATH elements.
2378 case $as_dir/ in
2379 ./ | .// | /cC/* | \
2380 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2381 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2382 /usr/ucb/* ) ;;
2383 *)
2384 # OSF1 and SCO ODT 3.0 have their own names for install.
2385 # Don't use installbsd from OSF since it installs stuff as root
2386 # by default.
2387 for ac_prog in ginstall scoinst install; do
2388 for ac_exec_ext in '' $ac_executable_extensions; do
2389 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2390 if test $ac_prog = install &&
2391 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2392 # AIX install. It has an incompatible calling convention.
2393 :
2394 elif test $ac_prog = install &&
2395 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2396 # program-specific install script used by HP pwplus--don't use.
2397 :
2398 else
2399 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2400 break 3
2401 fi
2402 fi
2403 done
2404 done
2405 ;;
2406 esac
2407 done
2408
2409
2410 fi
2411 if test "${ac_cv_path_install+set}" = set; then
2412 INSTALL=$ac_cv_path_install
2413 else
2414 # As a last resort, use the slow shell script. We don't cache a
2415 # path for INSTALL within a source directory, because that will
2416 # break other packages using the cache if that directory is
2417 # removed, or if the path is relative.
2418 INSTALL=$ac_install_sh
2419 fi
2420 fi
2421 echo "$as_me:$LINENO: result: $INSTALL" >&5
2422 echo "${ECHO_T}$INSTALL" >&6
2423
2424 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2425 # It thinks the first close brace ends the variable substitution.
2426 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2427
2428 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2429
2430 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2431
2432 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2433 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2434 LN_S=$as_ln_s
2435 if test "$LN_S" = "ln -s"; then
2436 echo "$as_me:$LINENO: result: yes" >&5
2437 echo "${ECHO_T}yes" >&6
2438 else
2439 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2440 echo "${ECHO_T}no, using $LN_S" >&6
2441 fi
2442
2443
2444
2445
2446 ac_ext=c
2447 ac_cpp='$CPP $CPPFLAGS'
2448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2451 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2452 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2453 # On Suns, sometimes $CPP names a directory.
2454 if test -n "$CPP" && test -d "$CPP"; then
2455 CPP=
2456 fi
2457 if test -z "$CPP"; then
2458 if test "${ac_cv_prog_CPP+set}" = set; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
2460 else
2461 # Double quotes because CPP needs to be expanded
2462 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2463 do
2464 ac_preproc_ok=false
2465 for ac_c_preproc_warn_flag in '' yes
2466 do
2467 # Use a header file that comes with gcc, so configuring glibc
2468 # with a fresh cross-compiler works.
2469 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2470 # <limits.h> exists even on freestanding compilers.
2471 # On the NeXT, cc -E runs the code through the compiler's parser,
2472 # not just through cpp. "Syntax error" is here to catch this case.
2473 cat >conftest.$ac_ext <<_ACEOF
2474 /* confdefs.h. */
2475 _ACEOF
2476 cat confdefs.h >>conftest.$ac_ext
2477 cat >>conftest.$ac_ext <<_ACEOF
2478 /* end confdefs.h. */
2479 #ifdef __STDC__
2480 # include <limits.h>
2481 #else
2482 # include <assert.h>
2483 #endif
2484 Syntax error
2485 _ACEOF
2486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2487 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2488 ac_status=$?
2489 grep -v '^ *+' conftest.er1 >conftest.err
2490 rm -f conftest.er1
2491 cat conftest.err >&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); } >/dev/null; then
2494 if test -s conftest.err; then
2495 ac_cpp_err=$ac_c_preproc_warn_flag
2496 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2497 else
2498 ac_cpp_err=
2499 fi
2500 else
2501 ac_cpp_err=yes
2502 fi
2503 if test -z "$ac_cpp_err"; then
2504 :
2505 else
2506 echo "$as_me: failed program was:" >&5
2507 sed 's/^/| /' conftest.$ac_ext >&5
2508
2509 # Broken: fails on valid input.
2510 continue
2511 fi
2512 rm -f conftest.err conftest.$ac_ext
2513
2514 # OK, works on sane cases. Now check whether non-existent headers
2515 # can be detected and how.
2516 cat >conftest.$ac_ext <<_ACEOF
2517 /* confdefs.h. */
2518 _ACEOF
2519 cat confdefs.h >>conftest.$ac_ext
2520 cat >>conftest.$ac_ext <<_ACEOF
2521 /* end confdefs.h. */
2522 #include <ac_nonexistent.h>
2523 _ACEOF
2524 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2525 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2526 ac_status=$?
2527 grep -v '^ *+' conftest.er1 >conftest.err
2528 rm -f conftest.er1
2529 cat conftest.err >&5
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); } >/dev/null; then
2532 if test -s conftest.err; then
2533 ac_cpp_err=$ac_c_preproc_warn_flag
2534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2535 else
2536 ac_cpp_err=
2537 fi
2538 else
2539 ac_cpp_err=yes
2540 fi
2541 if test -z "$ac_cpp_err"; then
2542 # Broken: success on invalid input.
2543 continue
2544 else
2545 echo "$as_me: failed program was:" >&5
2546 sed 's/^/| /' conftest.$ac_ext >&5
2547
2548 # Passes both tests.
2549 ac_preproc_ok=:
2550 break
2551 fi
2552 rm -f conftest.err conftest.$ac_ext
2553
2554 done
2555 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2556 rm -f conftest.err conftest.$ac_ext
2557 if $ac_preproc_ok; then
2558 break
2559 fi
2560
2561 done
2562 ac_cv_prog_CPP=$CPP
2563
2564 fi
2565 CPP=$ac_cv_prog_CPP
2566 else
2567 ac_cv_prog_CPP=$CPP
2568 fi
2569 echo "$as_me:$LINENO: result: $CPP" >&5
2570 echo "${ECHO_T}$CPP" >&6
2571 ac_preproc_ok=false
2572 for ac_c_preproc_warn_flag in '' yes
2573 do
2574 # Use a header file that comes with gcc, so configuring glibc
2575 # with a fresh cross-compiler works.
2576 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2577 # <limits.h> exists even on freestanding compilers.
2578 # On the NeXT, cc -E runs the code through the compiler's parser,
2579 # not just through cpp. "Syntax error" is here to catch this case.
2580 cat >conftest.$ac_ext <<_ACEOF
2581 /* confdefs.h. */
2582 _ACEOF
2583 cat confdefs.h >>conftest.$ac_ext
2584 cat >>conftest.$ac_ext <<_ACEOF
2585 /* end confdefs.h. */
2586 #ifdef __STDC__
2587 # include <limits.h>
2588 #else
2589 # include <assert.h>
2590 #endif
2591 Syntax error
2592 _ACEOF
2593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2594 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2595 ac_status=$?
2596 grep -v '^ *+' conftest.er1 >conftest.err
2597 rm -f conftest.er1
2598 cat conftest.err >&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); } >/dev/null; then
2601 if test -s conftest.err; then
2602 ac_cpp_err=$ac_c_preproc_warn_flag
2603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2604 else
2605 ac_cpp_err=
2606 fi
2607 else
2608 ac_cpp_err=yes
2609 fi
2610 if test -z "$ac_cpp_err"; then
2611 :
2612 else
2613 echo "$as_me: failed program was:" >&5
2614 sed 's/^/| /' conftest.$ac_ext >&5
2615
2616 # Broken: fails on valid input.
2617 continue
2618 fi
2619 rm -f conftest.err conftest.$ac_ext
2620
2621 # OK, works on sane cases. Now check whether non-existent headers
2622 # can be detected and how.
2623 cat >conftest.$ac_ext <<_ACEOF
2624 /* confdefs.h. */
2625 _ACEOF
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h. */
2629 #include <ac_nonexistent.h>
2630 _ACEOF
2631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2632 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2633 ac_status=$?
2634 grep -v '^ *+' conftest.er1 >conftest.err
2635 rm -f conftest.er1
2636 cat conftest.err >&5
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); } >/dev/null; then
2639 if test -s conftest.err; then
2640 ac_cpp_err=$ac_c_preproc_warn_flag
2641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2642 else
2643 ac_cpp_err=
2644 fi
2645 else
2646 ac_cpp_err=yes
2647 fi
2648 if test -z "$ac_cpp_err"; then
2649 # Broken: success on invalid input.
2650 continue
2651 else
2652 echo "$as_me: failed program was:" >&5
2653 sed 's/^/| /' conftest.$ac_ext >&5
2654
2655 # Passes both tests.
2656 ac_preproc_ok=:
2657 break
2658 fi
2659 rm -f conftest.err conftest.$ac_ext
2660
2661 done
2662 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2663 rm -f conftest.err conftest.$ac_ext
2664 if $ac_preproc_ok; then
2665 :
2666 else
2667 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2668 See \`config.log' for more details." >&5
2669 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2670 See \`config.log' for more details." >&2;}
2671 { (exit 1); exit 1; }; }
2672 fi
2673
2674 ac_ext=c
2675 ac_cpp='$CPP $CPPFLAGS'
2676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2679
2680
2681 echo "$as_me:$LINENO: checking for egrep" >&5
2682 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2683 if test "${ac_cv_prog_egrep+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 else
2686 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2687 then ac_cv_prog_egrep='grep -E'
2688 else ac_cv_prog_egrep='egrep'
2689 fi
2690 fi
2691 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2692 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2693 EGREP=$ac_cv_prog_egrep
2694
2695
2696 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2697 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2698 if test "${ac_cv_header_stdc+set}" = set; then
2699 echo $ECHO_N "(cached) $ECHO_C" >&6
2700 else
2701 cat >conftest.$ac_ext <<_ACEOF
2702 /* confdefs.h. */
2703 _ACEOF
2704 cat confdefs.h >>conftest.$ac_ext
2705 cat >>conftest.$ac_ext <<_ACEOF
2706 /* end confdefs.h. */
2707 #include <stdlib.h>
2708 #include <stdarg.h>
2709 #include <string.h>
2710 #include <float.h>
2711
2712 int
2713 main ()
2714 {
2715
2716 ;
2717 return 0;
2718 }
2719 _ACEOF
2720 rm -f conftest.$ac_objext
2721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722 (eval $ac_compile) 2>conftest.er1
2723 ac_status=$?
2724 grep -v '^ *+' conftest.er1 >conftest.err
2725 rm -f conftest.er1
2726 cat conftest.err >&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); } &&
2729 { ac_try='test -z "$ac_c_werror_flag"
2730 || test ! -s conftest.err'
2731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732 (eval $ac_try) 2>&5
2733 ac_status=$?
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; } &&
2736 { ac_try='test -s conftest.$ac_objext'
2737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 (eval $ac_try) 2>&5
2739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2742 ac_cv_header_stdc=yes
2743 else
2744 echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2746
2747 ac_cv_header_stdc=no
2748 fi
2749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2750
2751 if test $ac_cv_header_stdc = yes; then
2752 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2753 cat >conftest.$ac_ext <<_ACEOF
2754 /* confdefs.h. */
2755 _ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h. */
2759 #include <string.h>
2760
2761 _ACEOF
2762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2763 $EGREP "memchr" >/dev/null 2>&1; then
2764 :
2765 else
2766 ac_cv_header_stdc=no
2767 fi
2768 rm -f conftest*
2769
2770 fi
2771
2772 if test $ac_cv_header_stdc = yes; then
2773 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2774 cat >conftest.$ac_ext <<_ACEOF
2775 /* confdefs.h. */
2776 _ACEOF
2777 cat confdefs.h >>conftest.$ac_ext
2778 cat >>conftest.$ac_ext <<_ACEOF
2779 /* end confdefs.h. */
2780 #include <stdlib.h>
2781
2782 _ACEOF
2783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2784 $EGREP "free" >/dev/null 2>&1; then
2785 :
2786 else
2787 ac_cv_header_stdc=no
2788 fi
2789 rm -f conftest*
2790
2791 fi
2792
2793 if test $ac_cv_header_stdc = yes; then
2794 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2795 if test "$cross_compiling" = yes; then
2796 :
2797 else
2798 cat >conftest.$ac_ext <<_ACEOF
2799 /* confdefs.h. */
2800 _ACEOF
2801 cat confdefs.h >>conftest.$ac_ext
2802 cat >>conftest.$ac_ext <<_ACEOF
2803 /* end confdefs.h. */
2804 #include <ctype.h>
2805 #if ((' ' & 0x0FF) == 0x020)
2806 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2807 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2808 #else
2809 # define ISLOWER(c) \
2810 (('a' <= (c) && (c) <= 'i') \
2811 || ('j' <= (c) && (c) <= 'r') \
2812 || ('s' <= (c) && (c) <= 'z'))
2813 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2814 #endif
2815
2816 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2817 int
2818 main ()
2819 {
2820 int i;
2821 for (i = 0; i < 256; i++)
2822 if (XOR (islower (i), ISLOWER (i))
2823 || toupper (i) != TOUPPER (i))
2824 exit(2);
2825 exit (0);
2826 }
2827 _ACEOF
2828 rm -f conftest$ac_exeext
2829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2830 (eval $ac_link) 2>&5
2831 ac_status=$?
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835 (eval $ac_try) 2>&5
2836 ac_status=$?
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }; }; then
2839 :
2840 else
2841 echo "$as_me: program exited with status $ac_status" >&5
2842 echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2844
2845 ( exit $ac_status )
2846 ac_cv_header_stdc=no
2847 fi
2848 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2849 fi
2850 fi
2851 fi
2852 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2853 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2854 if test $ac_cv_header_stdc = yes; then
2855
2856 cat >>confdefs.h <<\_ACEOF
2857 #define STDC_HEADERS 1
2858 _ACEOF
2859
2860 fi
2861
2862 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2873 inttypes.h stdint.h unistd.h
2874 do
2875 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2876 echo "$as_me:$LINENO: checking for $ac_header" >&5
2877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 else
2881 cat >conftest.$ac_ext <<_ACEOF
2882 /* confdefs.h. */
2883 _ACEOF
2884 cat confdefs.h >>conftest.$ac_ext
2885 cat >>conftest.$ac_ext <<_ACEOF
2886 /* end confdefs.h. */
2887 $ac_includes_default
2888
2889 #include <$ac_header>
2890 _ACEOF
2891 rm -f conftest.$ac_objext
2892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2893 (eval $ac_compile) 2>conftest.er1
2894 ac_status=$?
2895 grep -v '^ *+' conftest.er1 >conftest.err
2896 rm -f conftest.er1
2897 cat conftest.err >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); } &&
2900 { ac_try='test -z "$ac_c_werror_flag"
2901 || test ! -s conftest.err'
2902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2903 (eval $ac_try) 2>&5
2904 ac_status=$?
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); }; } &&
2907 { ac_try='test -s conftest.$ac_objext'
2908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2909 (eval $ac_try) 2>&5
2910 ac_status=$?
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }; }; then
2913 eval "$as_ac_Header=yes"
2914 else
2915 echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2917
2918 eval "$as_ac_Header=no"
2919 fi
2920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2921 fi
2922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2925 cat >>confdefs.h <<_ACEOF
2926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2927 _ACEOF
2928
2929 fi
2930
2931 done
2932
2933
2934
2935
2936
2937 for ac_header in errno.h fcntl.h strings.h
2938 do
2939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2941 echo "$as_me:$LINENO: checking for $ac_header" >&5
2942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2944 echo $ECHO_N "(cached) $ECHO_C" >&6
2945 fi
2946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2948 else
2949 # Is the header compilable?
2950 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2952 cat >conftest.$ac_ext <<_ACEOF
2953 /* confdefs.h. */
2954 _ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h. */
2958 $ac_includes_default
2959 #include <$ac_header>
2960 _ACEOF
2961 rm -f conftest.$ac_objext
2962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2963 (eval $ac_compile) 2>conftest.er1
2964 ac_status=$?
2965 grep -v '^ *+' conftest.er1 >conftest.err
2966 rm -f conftest.er1
2967 cat conftest.err >&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); } &&
2970 { ac_try='test -z "$ac_c_werror_flag"
2971 || test ! -s conftest.err'
2972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973 (eval $ac_try) 2>&5
2974 ac_status=$?
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); }; } &&
2977 { ac_try='test -s conftest.$ac_objext'
2978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979 (eval $ac_try) 2>&5
2980 ac_status=$?
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); }; }; then
2983 ac_header_compiler=yes
2984 else
2985 echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2987
2988 ac_header_compiler=no
2989 fi
2990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2991 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2992 echo "${ECHO_T}$ac_header_compiler" >&6
2993
2994 # Is the header present?
2995 echo "$as_me:$LINENO: checking $ac_header presence" >&5
2996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2997 cat >conftest.$ac_ext <<_ACEOF
2998 /* confdefs.h. */
2999 _ACEOF
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h. */
3003 #include <$ac_header>
3004 _ACEOF
3005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3007 ac_status=$?
3008 grep -v '^ *+' conftest.er1 >conftest.err
3009 rm -f conftest.er1
3010 cat conftest.err >&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); } >/dev/null; then
3013 if test -s conftest.err; then
3014 ac_cpp_err=$ac_c_preproc_warn_flag
3015 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3016 else
3017 ac_cpp_err=
3018 fi
3019 else
3020 ac_cpp_err=yes
3021 fi
3022 if test -z "$ac_cpp_err"; then
3023 ac_header_preproc=yes
3024 else
3025 echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3027
3028 ac_header_preproc=no
3029 fi
3030 rm -f conftest.err conftest.$ac_ext
3031 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3032 echo "${ECHO_T}$ac_header_preproc" >&6
3033
3034 # So? What about this header?
3035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3036 yes:no: )
3037 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3038 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3040 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3041 ac_header_preproc=yes
3042 ;;
3043 no:yes:* )
3044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3045 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3047 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3048 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3049 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3050 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3051 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3054 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3055 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3056 (
3057 cat <<\_ASBOX
3058 ## ------------------------------------------ ##
3059 ## Report this to the AC_PACKAGE_NAME lists. ##
3060 ## ------------------------------------------ ##
3061 _ASBOX
3062 ) |
3063 sed "s/^/$as_me: WARNING: /" >&2
3064 ;;
3065 esac
3066 echo "$as_me:$LINENO: checking for $ac_header" >&5
3067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 else
3071 eval "$as_ac_Header=\$ac_header_preproc"
3072 fi
3073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3075
3076 fi
3077 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3078 cat >>confdefs.h <<_ACEOF
3079 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3080 _ACEOF
3081
3082 fi
3083
3084 done
3085
3086
3087
3088 for ac_func in strerror
3089 do
3090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3091 echo "$as_me:$LINENO: checking for $ac_func" >&5
3092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3093 if eval "test \"\${$as_ac_var+set}\" = set"; then
3094 echo $ECHO_N "(cached) $ECHO_C" >&6
3095 else
3096 cat >conftest.$ac_ext <<_ACEOF
3097 /* confdefs.h. */
3098 _ACEOF
3099 cat confdefs.h >>conftest.$ac_ext
3100 cat >>conftest.$ac_ext <<_ACEOF
3101 /* end confdefs.h. */
3102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3104 #define $ac_func innocuous_$ac_func
3105
3106 /* System header to define __stub macros and hopefully few prototypes,
3107 which can conflict with char $ac_func (); below.
3108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3109 <limits.h> exists even on freestanding compilers. */
3110
3111 #ifdef __STDC__
3112 # include <limits.h>
3113 #else
3114 # include <assert.h>
3115 #endif
3116
3117 #undef $ac_func
3118
3119 /* Override any gcc2 internal prototype to avoid an error. */
3120 #ifdef __cplusplus
3121 extern "C"
3122 {
3123 #endif
3124 /* We use char because int might match the return type of a gcc2
3125 builtin and then its argument prototype would still apply. */
3126 char $ac_func ();
3127 /* The GNU C library defines this for functions which it implements
3128 to always fail with ENOSYS. Some functions are actually named
3129 something starting with __ and the normal name is an alias. */
3130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3131 choke me
3132 #else
3133 char (*f) () = $ac_func;
3134 #endif
3135 #ifdef __cplusplus
3136 }
3137 #endif
3138
3139 int
3140 main ()
3141 {
3142 return f != $ac_func;
3143 ;
3144 return 0;
3145 }
3146 _ACEOF
3147 rm -f conftest.$ac_objext conftest$ac_exeext
3148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3149 (eval $ac_link) 2>conftest.er1
3150 ac_status=$?
3151 grep -v '^ *+' conftest.er1 >conftest.err
3152 rm -f conftest.er1
3153 cat conftest.err >&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); } &&
3156 { ac_try='test -z "$ac_c_werror_flag"
3157 || test ! -s conftest.err'
3158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3159 (eval $ac_try) 2>&5
3160 ac_status=$?
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); }; } &&
3163 { ac_try='test -s conftest$ac_exeext'
3164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3165 (eval $ac_try) 2>&5
3166 ac_status=$?
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; }; then
3169 eval "$as_ac_var=yes"
3170 else
3171 echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3173
3174 eval "$as_ac_var=no"
3175 fi
3176 rm -f conftest.err conftest.$ac_objext \
3177 conftest$ac_exeext conftest.$ac_ext
3178 fi
3179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3180 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3181 if test `eval echo '${'$as_ac_var'}'` = yes; then
3182 cat >>confdefs.h <<_ACEOF
3183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3184 _ACEOF
3185
3186 fi
3187 done
3188
3189
3190
3191 ac_config_files="$ac_config_files Makefile"
3192
3193 cat >confcache <<\_ACEOF
3194 # This file is a shell script that caches the results of configure
3195 # tests run on this system so they can be shared between configure
3196 # scripts and configure runs, see configure's option --config-cache.
3197 # It is not useful on other systems. If it contains results you don't
3198 # want to keep, you may remove or edit it.
3199 #
3200 # config.status only pays attention to the cache file if you give it
3201 # the --recheck option to rerun configure.
3202 #
3203 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3204 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3205 # following values.
3206
3207 _ACEOF
3208
3209 # The following way of writing the cache mishandles newlines in values,
3210 # but we know of no workaround that is simple, portable, and efficient.
3211 # So, don't put newlines in cache variables' values.
3212 # Ultrix sh set writes to stderr and can't be redirected directly,
3213 # and sets the high bit in the cache file unless we assign to the vars.
3214 {
3215 (set) 2>&1 |
3216 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3217 *ac_space=\ *)
3218 # `set' does not quote correctly, so add quotes (double-quote
3219 # substitution turns \\\\ into \\, and sed turns \\ into \).
3220 sed -n \
3221 "s/'/'\\\\''/g;
3222 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3223 ;;
3224 *)
3225 # `set' quotes correctly as required by POSIX, so do not add quotes.
3226 sed -n \
3227 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3228 ;;
3229 esac;
3230 } |
3231 sed '
3232 t clear
3233 : clear
3234 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3235 t end
3236 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3237 : end' >>confcache
3238 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3239 if test -w $cache_file; then
3240 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3241 cat confcache >$cache_file
3242 else
3243 echo "not updating unwritable cache $cache_file"
3244 fi
3245 fi
3246 rm -f confcache
3247
3248 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3249 # Let make expand exec_prefix.
3250 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3251
3252 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3253 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3254 # trailing colons and then remove the whole line if VPATH becomes empty
3255 # (actually we leave an empty line to preserve line numbers).
3256 if test "x$srcdir" = x.; then
3257 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3258 s/:*\$(srcdir):*/:/;
3259 s/:*\${srcdir}:*/:/;
3260 s/:*@srcdir@:*/:/;
3261 s/^\([^=]*=[ ]*\):*/\1/;
3262 s/:*$//;
3263 s/^[^=]*=[ ]*$//;
3264 }'
3265 fi
3266
3267 # Transform confdefs.h into DEFS.
3268 # Protect against shell expansion while executing Makefile rules.
3269 # Protect against Makefile macro expansion.
3270 #
3271 # If the first sed substitution is executed (which looks for macros that
3272 # take arguments), then we branch to the quote section. Otherwise,
3273 # look for a macro that doesn't take arguments.
3274 cat >confdef2opt.sed <<\_ACEOF
3275 t clear
3276 : clear
3277 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
3278 t quote
3279 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
3280 t quote
3281 d
3282 : quote
3283 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
3284 s,\[,\\&,g
3285 s,\],\\&,g
3286 s,\$,$$,g
3287 p
3288 _ACEOF
3289 # We use echo to avoid assuming a particular line-breaking character.
3290 # The extra dot is to prevent the shell from consuming trailing
3291 # line-breaks from the sub-command output. A line-break within
3292 # single-quotes doesn't work because, if this script is created in a
3293 # platform that uses two characters for line-breaks (e.g., DOS), tr
3294 # would break.
3295 ac_LF_and_DOT=`echo; echo .`
3296 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3297 rm -f confdef2opt.sed
3298
3299
3300 ac_libobjs=
3301 ac_ltlibobjs=
3302 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3303 # 1. Remove the extension, and $U if already installed.
3304 ac_i=`echo "$ac_i" |
3305 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3306 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3307 # will be set to the directory where LIBOBJS objects are built.
3308 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3309 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
3310 done
3311 LIBOBJS=$ac_libobjs
3312
3313 LTLIBOBJS=$ac_ltlibobjs
3314
3315
3316
3317 : ${CONFIG_STATUS=./config.status}
3318 ac_clean_files_save=$ac_clean_files
3319 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3320 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3321 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3322 cat >$CONFIG_STATUS <<_ACEOF
3323 #! $SHELL
3324 # Generated by $as_me.
3325 # Run this file to recreate the current configuration.
3326 # Compiler output produced by configure, useful for debugging
3327 # configure, is in config.log if it exists.
3328
3329 debug=false
3330 ac_cs_recheck=false
3331 ac_cs_silent=false
3332 SHELL=\${CONFIG_SHELL-$SHELL}
3333 _ACEOF
3334
3335 cat >>$CONFIG_STATUS <<\_ACEOF
3336 ## --------------------- ##
3337 ## M4sh Initialization. ##
3338 ## --------------------- ##
3339
3340 # Be Bourne compatible
3341 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3342 emulate sh
3343 NULLCMD=:
3344 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3345 # is contrary to our usage. Disable this feature.
3346 alias -g '${1+"$@"}'='"$@"'
3347 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3348 set -o posix
3349 fi
3350 DUALCASE=1; export DUALCASE # for MKS sh
3351
3352 # Support unset when possible.
3353 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3354 as_unset=unset
3355 else
3356 as_unset=false
3357 fi
3358
3359
3360 # Work around bugs in pre-3.0 UWIN ksh.
3361 $as_unset ENV MAIL MAILPATH
3362 PS1='$ '
3363 PS2='> '
3364 PS4='+ '
3365
3366 # NLS nuisances.
3367 for as_var in \
3368 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3369 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3370 LC_TELEPHONE LC_TIME
3371 do
3372 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3373 eval $as_var=C; export $as_var
3374 else
3375 $as_unset $as_var
3376 fi
3377 done
3378
3379 # Required to use basename.
3380 if expr a : '\(a\)' >/dev/null 2>&1; then
3381 as_expr=expr
3382 else
3383 as_expr=false
3384 fi
3385
3386 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3387 as_basename=basename
3388 else
3389 as_basename=false
3390 fi
3391
3392
3393 # Name of the executable.
3394 as_me=`$as_basename "$0" ||
3395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3396 X"$0" : 'X\(//\)$' \| \
3397 X"$0" : 'X\(/\)$' \| \
3398 . : '\(.\)' 2>/dev/null ||
3399 echo X/"$0" |
3400 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3401 /^X\/\(\/\/\)$/{ s//\1/; q; }
3402 /^X\/\(\/\).*/{ s//\1/; q; }
3403 s/.*/./; q'`
3404
3405
3406 # PATH needs CR, and LINENO needs CR and PATH.
3407 # Avoid depending upon Character Ranges.
3408 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3409 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3410 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3411 as_cr_digits='0123456789'
3412 as_cr_alnum=$as_cr_Letters$as_cr_digits
3413
3414 # The user is always right.
3415 if test "${PATH_SEPARATOR+set}" != set; then
3416 echo "#! /bin/sh" >conf$$.sh
3417 echo "exit 0" >>conf$$.sh
3418 chmod +x conf$$.sh
3419 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3420 PATH_SEPARATOR=';'
3421 else
3422 PATH_SEPARATOR=:
3423 fi
3424 rm -f conf$$.sh
3425 fi
3426
3427
3428 as_lineno_1=$LINENO
3429 as_lineno_2=$LINENO
3430 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3431 test "x$as_lineno_1" != "x$as_lineno_2" &&
3432 test "x$as_lineno_3" = "x$as_lineno_2" || {
3433 # Find who we are. Look in the path if we contain no path at all
3434 # relative or not.
3435 case $0 in
3436 *[\\/]* ) as_myself=$0 ;;
3437 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438 for as_dir in $PATH
3439 do
3440 IFS=$as_save_IFS
3441 test -z "$as_dir" && as_dir=.
3442 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3443 done
3444
3445 ;;
3446 esac
3447 # We did not find ourselves, most probably we were run as `sh COMMAND'
3448 # in which case we are not to be found in the path.
3449 if test "x$as_myself" = x; then
3450 as_myself=$0
3451 fi
3452 if test ! -f "$as_myself"; then
3453 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3454 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3455 { (exit 1); exit 1; }; }
3456 fi
3457 case $CONFIG_SHELL in
3458 '')
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3461 do
3462 IFS=$as_save_IFS
3463 test -z "$as_dir" && as_dir=.
3464 for as_base in sh bash ksh sh5; do
3465 case $as_dir in
3466 /*)
3467 if ("$as_dir/$as_base" -c '
3468 as_lineno_1=$LINENO
3469 as_lineno_2=$LINENO
3470 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3471 test "x$as_lineno_1" != "x$as_lineno_2" &&
3472 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3473 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3474 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3475 CONFIG_SHELL=$as_dir/$as_base
3476 export CONFIG_SHELL
3477 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3478 fi;;
3479 esac
3480 done
3481 done
3482 ;;
3483 esac
3484
3485 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3486 # uniformly replaced by the line number. The first 'sed' inserts a
3487 # line-number line before each line; the second 'sed' does the real
3488 # work. The second script uses 'N' to pair each line-number line
3489 # with the numbered line, and appends trailing '-' during
3490 # substitution so that $LINENO is not a special case at line end.
3491 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3492 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3493 sed '=' <$as_myself |
3494 sed '
3495 N
3496 s,$,-,
3497 : loop
3498 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3499 t loop
3500 s,-$,,
3501 s,^['$as_cr_digits']*\n,,
3502 ' >$as_me.lineno &&
3503 chmod +x $as_me.lineno ||
3504 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3505 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3506 { (exit 1); exit 1; }; }
3507
3508 # Don't try to exec as it changes $[0], causing all sort of problems
3509 # (the dirname of $[0] is not the place where we might find the
3510 # original and so on. Autoconf is especially sensible to this).
3511 . ./$as_me.lineno
3512 # Exit status is that of the last command.
3513 exit
3514 }
3515
3516
3517 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3518 *c*,-n*) ECHO_N= ECHO_C='
3519 ' ECHO_T=' ' ;;
3520 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3521 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3522 esac
3523
3524 if expr a : '\(a\)' >/dev/null 2>&1; then
3525 as_expr=expr
3526 else
3527 as_expr=false
3528 fi
3529
3530 rm -f conf$$ conf$$.exe conf$$.file
3531 echo >conf$$.file
3532 if ln -s conf$$.file conf$$ 2>/dev/null; then
3533 # We could just check for DJGPP; but this test a) works b) is more generic
3534 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3535 if test -f conf$$.exe; then
3536 # Don't use ln at all; we don't have any links
3537 as_ln_s='cp -p'
3538 else
3539 as_ln_s='ln -s'
3540 fi
3541 elif ln conf$$.file conf$$ 2>/dev/null; then
3542 as_ln_s=ln
3543 else
3544 as_ln_s='cp -p'
3545 fi
3546 rm -f conf$$ conf$$.exe conf$$.file
3547
3548 if mkdir -p . 2>/dev/null; then
3549 as_mkdir_p=:
3550 else
3551 test -d ./-p && rmdir ./-p
3552 as_mkdir_p=false
3553 fi
3554
3555 as_executable_p="test -f"
3556
3557 # Sed expression to map a string onto a valid CPP name.
3558 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3559
3560 # Sed expression to map a string onto a valid variable name.
3561 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3562
3563
3564 # IFS
3565 # We need space, tab and new line, in precisely that order.
3566 as_nl='
3567 '
3568 IFS=" $as_nl"
3569
3570 # CDPATH.
3571 $as_unset CDPATH
3572
3573 exec 6>&1
3574
3575 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3576 # report actual input values of CONFIG_FILES etc. instead of their
3577 # values after options handling. Logging --version etc. is OK.
3578 exec 5>>config.log
3579 {
3580 echo
3581 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3582 ## Running $as_me. ##
3583 _ASBOX
3584 } >&5
3585 cat >&5 <<_CSEOF
3586
3587 This file was extended by $as_me, which was
3588 generated by GNU Autoconf 2.59. Invocation command line was
3589
3590 CONFIG_FILES = $CONFIG_FILES
3591 CONFIG_HEADERS = $CONFIG_HEADERS
3592 CONFIG_LINKS = $CONFIG_LINKS
3593 CONFIG_COMMANDS = $CONFIG_COMMANDS
3594 $ $0 $@
3595
3596 _CSEOF
3597 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3598 echo >&5
3599 _ACEOF
3600
3601 # Files that config.status was made for.
3602 if test -n "$ac_config_files"; then
3603 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3604 fi
3605
3606 if test -n "$ac_config_headers"; then
3607 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3608 fi
3609
3610 if test -n "$ac_config_links"; then
3611 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3612 fi
3613
3614 if test -n "$ac_config_commands"; then
3615 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3616 fi
3617
3618 cat >>$CONFIG_STATUS <<\_ACEOF
3619
3620 ac_cs_usage="\
3621 \`$as_me' instantiates files from templates according to the
3622 current configuration.
3623
3624 Usage: $0 [OPTIONS] [FILE]...
3625
3626 -h, --help print this help, then exit
3627 -V, --version print version number, then exit
3628 -q, --quiet do not print progress messages
3629 -d, --debug don't remove temporary files
3630 --recheck update $as_me by reconfiguring in the same conditions
3631 --file=FILE[:TEMPLATE]
3632 instantiate the configuration file FILE
3633
3634 Configuration files:
3635 $config_files
3636
3637 Report bugs to <[email protected]>."
3638 _ACEOF
3639
3640 cat >>$CONFIG_STATUS <<_ACEOF
3641 ac_cs_version="\\
3642 config.status
3643 configured by $0, generated by GNU Autoconf 2.59,
3644 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3645
3646 Copyright (C) 2003 Free Software Foundation, Inc.
3647 This config.status script is free software; the Free Software Foundation
3648 gives unlimited permission to copy, distribute and modify it."
3649 srcdir=$srcdir
3650 INSTALL="$INSTALL"
3651 _ACEOF
3652
3653 cat >>$CONFIG_STATUS <<\_ACEOF
3654 # If no file are specified by the user, then we need to provide default
3655 # value. By we need to know if files were specified by the user.
3656 ac_need_defaults=:
3657 while test $# != 0
3658 do
3659 case $1 in
3660 --*=*)
3661 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3662 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3663 ac_shift=:
3664 ;;
3665 -*)
3666 ac_option=$1
3667 ac_optarg=$2
3668 ac_shift=shift
3669 ;;
3670 *) # This is not an option, so the user has probably given explicit
3671 # arguments.
3672 ac_option=$1
3673 ac_need_defaults=false;;
3674 esac
3675
3676 case $ac_option in
3677 # Handling of the options.
3678 _ACEOF
3679 cat >>$CONFIG_STATUS <<\_ACEOF
3680 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3681 ac_cs_recheck=: ;;
3682 --version | --vers* | -V )
3683 echo "$ac_cs_version"; exit 0 ;;
3684 --he | --h)
3685 # Conflict between --help and --header
3686 { { echo "$as_me:$LINENO: error: ambiguous option: $1
3687 Try \`$0 --help' for more information." >&5
3688 echo "$as_me: error: ambiguous option: $1
3689 Try \`$0 --help' for more information." >&2;}
3690 { (exit 1); exit 1; }; };;
3691 --help | --hel | -h )
3692 echo "$ac_cs_usage"; exit 0 ;;
3693 --debug | --d* | -d )
3694 debug=: ;;
3695 --file | --fil | --fi | --f )
3696 $ac_shift
3697 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3698 ac_need_defaults=false;;
3699 --header | --heade | --head | --hea )
3700 $ac_shift
3701 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3702 ac_need_defaults=false;;
3703 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3704 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3705 ac_cs_silent=: ;;
3706
3707 # This is an error.
3708 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3709 Try \`$0 --help' for more information." >&5
3710 echo "$as_me: error: unrecognized option: $1
3711 Try \`$0 --help' for more information." >&2;}
3712 { (exit 1); exit 1; }; } ;;
3713
3714 *) ac_config_targets="$ac_config_targets $1" ;;
3715
3716 esac
3717 shift
3718 done
3719
3720 ac_configure_extra_args=
3721
3722 if $ac_cs_silent; then
3723 exec 6>/dev/null
3724 ac_configure_extra_args="$ac_configure_extra_args --silent"
3725 fi
3726
3727 _ACEOF
3728 cat >>$CONFIG_STATUS <<_ACEOF
3729 if \$ac_cs_recheck; then
3730 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3731 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3732 fi
3733
3734 _ACEOF
3735
3736
3737
3738
3739
3740 cat >>$CONFIG_STATUS <<\_ACEOF
3741 for ac_config_target in $ac_config_targets
3742 do
3743 case "$ac_config_target" in
3744 # Handling of arguments.
3745 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3746 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3747 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3748 { (exit 1); exit 1; }; };;
3749 esac
3750 done
3751
3752 # If the user did not use the arguments to specify the items to instantiate,
3753 # then the envvar interface is used. Set only those that are not.
3754 # We use the long form for the default assignment because of an extremely
3755 # bizarre bug on SunOS 4.1.3.
3756 if $ac_need_defaults; then
3757 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3758 fi
3759
3760 # Have a temporary directory for convenience. Make it in the build tree
3761 # simply because there is no reason to put it here, and in addition,
3762 # creating and moving files from /tmp can sometimes cause problems.
3763 # Create a temporary directory, and hook for its removal unless debugging.
3764 $debug ||
3765 {
3766 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3767 trap '{ (exit 1); exit 1; }' 1 2 13 15
3768 }
3769
3770 # Create a (secure) tmp directory for tmp files.
3771
3772 {
3773 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3774 test -n "$tmp" && test -d "$tmp"
3775 } ||
3776 {
3777 tmp=./confstat$$-$RANDOM
3778 (umask 077 && mkdir $tmp)
3779 } ||
3780 {
3781 echo "$me: cannot create a temporary directory in ." >&2
3782 { (exit 1); exit 1; }
3783 }
3784
3785 _ACEOF
3786
3787 cat >>$CONFIG_STATUS <<_ACEOF
3788
3789 #
3790 # CONFIG_FILES section.
3791 #
3792
3793 # No need to generate the scripts if there are no CONFIG_FILES.
3794 # This happens for instance when ./config.status config.h
3795 if test -n "\$CONFIG_FILES"; then
3796 # Protect against being on the right side of a sed subst in config.status.
3797 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3798 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3799 s,@SHELL@,$SHELL,;t t
3800 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3801 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3802 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3803 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3804 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3805 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3806 s,@exec_prefix@,$exec_prefix,;t t
3807 s,@prefix@,$prefix,;t t
3808 s,@program_transform_name@,$program_transform_name,;t t
3809 s,@bindir@,$bindir,;t t
3810 s,@sbindir@,$sbindir,;t t
3811 s,@libexecdir@,$libexecdir,;t t
3812 s,@datadir@,$datadir,;t t
3813 s,@sysconfdir@,$sysconfdir,;t t
3814 s,@sharedstatedir@,$sharedstatedir,;t t
3815 s,@localstatedir@,$localstatedir,;t t
3816 s,@libdir@,$libdir,;t t
3817 s,@includedir@,$includedir,;t t
3818 s,@oldincludedir@,$oldincludedir,;t t
3819 s,@infodir@,$infodir,;t t
3820 s,@mandir@,$mandir,;t t
3821 s,@build_alias@,$build_alias,;t t
3822 s,@host_alias@,$host_alias,;t t
3823 s,@target_alias@,$target_alias,;t t
3824 s,@DEFS@,$DEFS,;t t
3825 s,@ECHO_C@,$ECHO_C,;t t
3826 s,@ECHO_N@,$ECHO_N,;t t
3827 s,@ECHO_T@,$ECHO_T,;t t
3828 s,@LIBS@,$LIBS,;t t
3829 s,@SET_MAKE@,$SET_MAKE,;t t
3830 s,@CC@,$CC,;t t
3831 s,@CFLAGS@,$CFLAGS,;t t
3832 s,@LDFLAGS@,$LDFLAGS,;t t
3833 s,@CPPFLAGS@,$CPPFLAGS,;t t
3834 s,@ac_ct_CC@,$ac_ct_CC,;t t
3835 s,@EXEEXT@,$EXEEXT,;t t
3836 s,@OBJEXT@,$OBJEXT,;t t
3837 s,@RANLIB@,$RANLIB,;t t
3838 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
3839 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3840 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3841 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
3842 s,@LN_S@,$LN_S,;t t
3843 s,@CPP@,$CPP,;t t
3844 s,@EGREP@,$EGREP,;t t
3845 s,@LIBOBJS@,$LIBOBJS,;t t
3846 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3847 CEOF
3848
3849 _ACEOF
3850
3851 cat >>$CONFIG_STATUS <<\_ACEOF
3852 # Split the substitutions into bite-sized pieces for seds with
3853 # small command number limits, like on Digital OSF/1 and HP-UX.
3854 ac_max_sed_lines=48
3855 ac_sed_frag=1 # Number of current file.
3856 ac_beg=1 # First line for current file.
3857 ac_end=$ac_max_sed_lines # Line after last line for current file.
3858 ac_more_lines=:
3859 ac_sed_cmds=
3860 while $ac_more_lines; do
3861 if test $ac_beg -gt 1; then
3862 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3863 else
3864 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3865 fi
3866 if test ! -s $tmp/subs.frag; then
3867 ac_more_lines=false
3868 else
3869 # The purpose of the label and of the branching condition is to
3870 # speed up the sed processing (if there are no `@' at all, there
3871 # is no need to browse any of the substitutions).
3872 # These are the two extra sed commands mentioned above.
3873 (echo ':t
3874 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3875 if test -z "$ac_sed_cmds"; then
3876 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3877 else
3878 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3879 fi
3880 ac_sed_frag=`expr $ac_sed_frag + 1`
3881 ac_beg=$ac_end
3882 ac_end=`expr $ac_end + $ac_max_sed_lines`
3883 fi
3884 done
3885 if test -z "$ac_sed_cmds"; then
3886 ac_sed_cmds=cat
3887 fi
3888 fi # test -n "$CONFIG_FILES"
3889
3890 _ACEOF
3891 cat >>$CONFIG_STATUS <<\_ACEOF
3892 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3893 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3894 case $ac_file in
3895 - | *:- | *:-:* ) # input from stdin
3896 cat >$tmp/stdin
3897 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3898 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3899 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3900 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3901 * ) ac_file_in=$ac_file.in ;;
3902 esac
3903
3904 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3905 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3906 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3907 X"$ac_file" : 'X\(//\)[^/]' \| \
3908 X"$ac_file" : 'X\(//\)$' \| \
3909 X"$ac_file" : 'X\(/\)' \| \
3910 . : '\(.\)' 2>/dev/null ||
3911 echo X"$ac_file" |
3912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3913 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3914 /^X\(\/\/\)$/{ s//\1/; q; }
3915 /^X\(\/\).*/{ s//\1/; q; }
3916 s/.*/./; q'`
3917 { if $as_mkdir_p; then
3918 mkdir -p "$ac_dir"
3919 else
3920 as_dir="$ac_dir"
3921 as_dirs=
3922 while test ! -d "$as_dir"; do
3923 as_dirs="$as_dir $as_dirs"
3924 as_dir=`(dirname "$as_dir") 2>/dev/null ||
3925 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3926 X"$as_dir" : 'X\(//\)[^/]' \| \
3927 X"$as_dir" : 'X\(//\)$' \| \
3928 X"$as_dir" : 'X\(/\)' \| \
3929 . : '\(.\)' 2>/dev/null ||
3930 echo X"$as_dir" |
3931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3932 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3933 /^X\(\/\/\)$/{ s//\1/; q; }
3934 /^X\(\/\).*/{ s//\1/; q; }
3935 s/.*/./; q'`
3936 done
3937 test ! -n "$as_dirs" || mkdir $as_dirs
3938 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3939 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3940 { (exit 1); exit 1; }; }; }
3941
3942 ac_builddir=.
3943
3944 if test "$ac_dir" != .; then
3945 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3946 # A "../" for each directory in $ac_dir_suffix.
3947 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3948 else
3949 ac_dir_suffix= ac_top_builddir=
3950 fi
3951
3952 case $srcdir in
3953 .) # No --srcdir option. We are building in place.
3954 ac_srcdir=.
3955 if test -z "$ac_top_builddir"; then
3956 ac_top_srcdir=.
3957 else
3958 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3959 fi ;;
3960 [\\/]* | ?:[\\/]* ) # Absolute path.
3961 ac_srcdir=$srcdir$ac_dir_suffix;
3962 ac_top_srcdir=$srcdir ;;
3963 *) # Relative path.
3964 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3965 ac_top_srcdir=$ac_top_builddir$srcdir ;;
3966 esac
3967
3968 # Do not use `cd foo && pwd` to compute absolute paths, because
3969 # the directories may not exist.
3970 case `pwd` in
3971 .) ac_abs_builddir="$ac_dir";;
3972 *)
3973 case "$ac_dir" in
3974 .) ac_abs_builddir=`pwd`;;
3975 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
3976 *) ac_abs_builddir=`pwd`/"$ac_dir";;
3977 esac;;
3978 esac
3979 case $ac_abs_builddir in
3980 .) ac_abs_top_builddir=${ac_top_builddir}.;;
3981 *)
3982 case ${ac_top_builddir}. in
3983 .) ac_abs_top_builddir=$ac_abs_builddir;;
3984 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
3985 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
3986 esac;;
3987 esac
3988 case $ac_abs_builddir in
3989 .) ac_abs_srcdir=$ac_srcdir;;
3990 *)
3991 case $ac_srcdir in
3992 .) ac_abs_srcdir=$ac_abs_builddir;;
3993 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
3994 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
3995 esac;;
3996 esac
3997 case $ac_abs_builddir in
3998 .) ac_abs_top_srcdir=$ac_top_srcdir;;
3999 *)
4000 case $ac_top_srcdir in
4001 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4002 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4003 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4004 esac;;
4005 esac
4006
4007
4008 case $INSTALL in
4009 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4010 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4011 esac
4012
4013 if test x"$ac_file" != x-; then
4014 { echo "$as_me:$LINENO: creating $ac_file" >&5
4015 echo "$as_me: creating $ac_file" >&6;}
4016 rm -f "$ac_file"
4017 fi
4018 # Let's still pretend it is `configure' which instantiates (i.e., don't
4019 # use $as_me), people would be surprised to read:
4020 # /* config.h. Generated by config.status. */
4021 if test x"$ac_file" = x-; then
4022 configure_input=
4023 else
4024 configure_input="$ac_file. "
4025 fi
4026 configure_input=$configure_input"Generated from `echo $ac_file_in |
4027 sed 's,.*/,,'` by configure."
4028
4029 # First look for the input files in the build tree, otherwise in the
4030 # src tree.
4031 ac_file_inputs=`IFS=:
4032 for f in $ac_file_in; do
4033 case $f in
4034 -) echo $tmp/stdin ;;
4035 [\\/$]*)
4036 # Absolute (can't be DOS-style, as IFS=:)
4037 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4038 echo "$as_me: error: cannot find input file: $f" >&2;}
4039 { (exit 1); exit 1; }; }
4040 echo "$f";;
4041 *) # Relative
4042 if test -f "$f"; then
4043 # Build tree
4044 echo "$f"
4045 elif test -f "$srcdir/$f"; then
4046 # Source tree
4047 echo "$srcdir/$f"
4048 else
4049 # /dev/null tree
4050 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4051 echo "$as_me: error: cannot find input file: $f" >&2;}
4052 { (exit 1); exit 1; }; }
4053 fi;;
4054 esac
4055 done` || { (exit 1); exit 1; }
4056 _ACEOF
4057 cat >>$CONFIG_STATUS <<_ACEOF
4058 sed "$ac_vpsub
4059 $extrasub
4060 _ACEOF
4061 cat >>$CONFIG_STATUS <<\_ACEOF
4062 :t
4063 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4064 s,@configure_input@,$configure_input,;t t
4065 s,@srcdir@,$ac_srcdir,;t t
4066 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4067 s,@top_srcdir@,$ac_top_srcdir,;t t
4068 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4069 s,@builddir@,$ac_builddir,;t t
4070 s,@abs_builddir@,$ac_abs_builddir,;t t
4071 s,@top_builddir@,$ac_top_builddir,;t t
4072 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4073 s,@INSTALL@,$ac_INSTALL,;t t
4074 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4075 rm -f $tmp/stdin
4076 if test x"$ac_file" != x-; then
4077 mv $tmp/out $ac_file
4078 else
4079 cat $tmp/out
4080 rm -f $tmp/out
4081 fi
4082
4083 done
4084 _ACEOF
4085
4086 cat >>$CONFIG_STATUS <<\_ACEOF
4087
4088 { (exit 0); exit 0; }
4089 _ACEOF
4090 chmod +x $CONFIG_STATUS
4091 ac_clean_files=$ac_clean_files_save
4092
4093
4094 # configure is writing to config.log, and then calls config.status.
4095 # config.status does its own redirection, appending to config.log.
4096 # Unfortunately, on DOS this fails, as config.log is still kept open
4097 # by configure, so config.status won't be able to write to it; its
4098 # output is simply discarded. So we exec the FD to /dev/null,
4099 # effectively closing config.log, so it can be properly (re)opened and
4100 # appended to by config.status. When coming back to configure, we
4101 # need to make the FD available again.
4102 if test "$no_create" != yes; then
4103 ac_cs_success=:
4104 ac_config_status_args=
4105 test "$silent" = yes &&
4106 ac_config_status_args="$ac_config_status_args --quiet"
4107 exec 5>/dev/null
4108 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4109 exec 5>>config.log
4110 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4111 # would make configure fail if this is the last instruction.
4112 $ac_cs_success || { (exit 1); exit 1; }
4113 fi
4114