imported hexedit_1.2.12.orig.tar.gz
[rofl0r-hexedit0r.git] / configure
blob3a803330414ab351d5b2ff25383aa8faf8c7d3d4
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
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 ## --------------------- ##
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
22 DUALCASE=1; export DUALCASE # for MKS sh
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
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
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
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
49 done
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
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
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'`
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
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=:
96 rm -f conf$$.sh
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
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
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
154 esac
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 '
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; }; }
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
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
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
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'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
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
225 as_executable_p="test -f"
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'"
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'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
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`
249 exec 6>&1
252 # Initializations.
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}
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}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="hexedit.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"
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 PRODUCT VERSION INCL SRCS OTHER CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CPP EGREP LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
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
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'
353 ac_prev=
354 for ac_option
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
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
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 ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
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 ;;
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" ;;
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'" ;;
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 ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
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 ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
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 ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
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 ;;
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 ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
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 ;;
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 ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
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 ;;
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 ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
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 ;;
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 ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
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'" ;;
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" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
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 ;;
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 ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
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 ;;
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}
649 esac
650 done
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; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
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
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
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
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
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
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
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=..
725 else
726 ac_srcdir_defaulted=no
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; }; }
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
775 # Report the --help message.
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.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
788 Defaults for the options are specified in brackets.
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 \`..']
801 _ACEOF
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]
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'.
815 For better control, use the options below.
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
832 cat <<\_ACEOF
833 _ACEOF
836 if test -n "$ac_init_help"; then
838 cat <<\_ACEOF
840 Optional Features:
841 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
842 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
843 --disable-largefile omit support for large files
845 Some influential environment variables:
846 CC C compiler command
847 CFLAGS C compiler flags
848 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
849 nonstandard directory <lib dir>
850 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
851 headers in a nonstandard directory <include dir>
852 CPP C preprocessor
854 Use these variables to override the choices made by `configure' or to help
855 it to find libraries and programs with nonstandard names/locations.
857 _ACEOF
860 if test "$ac_init_help" = "recursive"; then
861 # If there are subdirs, report their specific --help.
862 ac_popdir=`pwd`
863 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
864 test -d $ac_dir || continue
865 ac_builddir=.
867 if test "$ac_dir" != .; then
868 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
869 # A "../" for each directory in $ac_dir_suffix.
870 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
871 else
872 ac_dir_suffix= ac_top_builddir=
875 case $srcdir in
876 .) # No --srcdir option. We are building in place.
877 ac_srcdir=.
878 if test -z "$ac_top_builddir"; then
879 ac_top_srcdir=.
880 else
881 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
882 fi ;;
883 [\\/]* | ?:[\\/]* ) # Absolute path.
884 ac_srcdir=$srcdir$ac_dir_suffix;
885 ac_top_srcdir=$srcdir ;;
886 *) # Relative path.
887 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
888 ac_top_srcdir=$ac_top_builddir$srcdir ;;
889 esac
891 # Do not use `cd foo && pwd` to compute absolute paths, because
892 # the directories may not exist.
893 case `pwd` in
894 .) ac_abs_builddir="$ac_dir";;
896 case "$ac_dir" in
897 .) ac_abs_builddir=`pwd`;;
898 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
899 *) ac_abs_builddir=`pwd`/"$ac_dir";;
900 esac;;
901 esac
902 case $ac_abs_builddir in
903 .) ac_abs_top_builddir=${ac_top_builddir}.;;
905 case ${ac_top_builddir}. in
906 .) ac_abs_top_builddir=$ac_abs_builddir;;
907 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
908 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
909 esac;;
910 esac
911 case $ac_abs_builddir in
912 .) ac_abs_srcdir=$ac_srcdir;;
914 case $ac_srcdir in
915 .) ac_abs_srcdir=$ac_abs_builddir;;
916 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
917 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
918 esac;;
919 esac
920 case $ac_abs_builddir in
921 .) ac_abs_top_srcdir=$ac_top_srcdir;;
923 case $ac_top_srcdir in
924 .) ac_abs_top_srcdir=$ac_abs_builddir;;
925 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
926 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
927 esac;;
928 esac
930 cd $ac_dir
931 # Check for guested configure; otherwise get Cygnus style configure.
932 if test -f $ac_srcdir/configure.gnu; then
933 echo
934 $SHELL $ac_srcdir/configure.gnu --help=recursive
935 elif test -f $ac_srcdir/configure; then
936 echo
937 $SHELL $ac_srcdir/configure --help=recursive
938 elif test -f $ac_srcdir/configure.ac ||
939 test -f $ac_srcdir/configure.in; then
940 echo
941 $ac_configure --help
942 else
943 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
945 cd $ac_popdir
946 done
949 test -n "$ac_init_help" && exit 0
950 if $ac_init_version; then
951 cat <<\_ACEOF
953 Copyright (C) 2003 Free Software Foundation, Inc.
954 This configure script is free software; the Free Software Foundation
955 gives unlimited permission to copy, distribute and modify it.
956 _ACEOF
957 exit 0
959 exec 5>config.log
960 cat >&5 <<_ACEOF
961 This file contains any messages produced by compilers while
962 running configure, to aid debugging if configure makes a mistake.
964 It was created by $as_me, which was
965 generated by GNU Autoconf 2.59. Invocation command line was
967 $ $0 $@
969 _ACEOF
971 cat <<_ASUNAME
972 ## --------- ##
973 ## Platform. ##
974 ## --------- ##
976 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
977 uname -m = `(uname -m) 2>/dev/null || echo unknown`
978 uname -r = `(uname -r) 2>/dev/null || echo unknown`
979 uname -s = `(uname -s) 2>/dev/null || echo unknown`
980 uname -v = `(uname -v) 2>/dev/null || echo unknown`
982 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
983 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
985 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
986 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
987 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
988 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
989 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
990 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
991 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
993 _ASUNAME
995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
996 for as_dir in $PATH
998 IFS=$as_save_IFS
999 test -z "$as_dir" && as_dir=.
1000 echo "PATH: $as_dir"
1001 done
1003 } >&5
1005 cat >&5 <<_ACEOF
1008 ## ----------- ##
1009 ## Core tests. ##
1010 ## ----------- ##
1012 _ACEOF
1015 # Keep a trace of the command line.
1016 # Strip out --no-create and --no-recursion so they do not pile up.
1017 # Strip out --silent because we don't want to record it for future runs.
1018 # Also quote any args containing shell meta-characters.
1019 # Make two passes to allow for proper duplicate-argument suppression.
1020 ac_configure_args=
1021 ac_configure_args0=
1022 ac_configure_args1=
1023 ac_sep=
1024 ac_must_keep_next=false
1025 for ac_pass in 1 2
1027 for ac_arg
1029 case $ac_arg in
1030 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1031 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1032 | -silent | --silent | --silen | --sile | --sil)
1033 continue ;;
1034 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1035 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1036 esac
1037 case $ac_pass in
1038 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1040 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1041 if test $ac_must_keep_next = true; then
1042 ac_must_keep_next=false # Got value, back to normal.
1043 else
1044 case $ac_arg in
1045 *=* | --config-cache | -C | -disable-* | --disable-* \
1046 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1047 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1048 | -with-* | --with-* | -without-* | --without-* | --x)
1049 case "$ac_configure_args0 " in
1050 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1051 esac
1053 -* ) ac_must_keep_next=true ;;
1054 esac
1056 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1057 # Get rid of the leading space.
1058 ac_sep=" "
1060 esac
1061 done
1062 done
1063 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1064 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1066 # When interrupted or exit'd, cleanup temporary files, and complete
1067 # config.log. We remove comments because anyway the quotes in there
1068 # would cause problems or look ugly.
1069 # WARNING: Be sure not to use single quotes in there, as some shells,
1070 # such as our DU 5.0 friend, will then `close' the trap.
1071 trap 'exit_status=$?
1072 # Save into config.log some information that might help in debugging.
1074 echo
1076 cat <<\_ASBOX
1077 ## ---------------- ##
1078 ## Cache variables. ##
1079 ## ---------------- ##
1080 _ASBOX
1081 echo
1082 # The following way of writing the cache mishandles newlines in values,
1084 (set) 2>&1 |
1085 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1086 *ac_space=\ *)
1087 sed -n \
1088 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1089 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1092 sed -n \
1093 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1095 esac;
1097 echo
1099 cat <<\_ASBOX
1100 ## ----------------- ##
1101 ## Output variables. ##
1102 ## ----------------- ##
1103 _ASBOX
1104 echo
1105 for ac_var in $ac_subst_vars
1107 eval ac_val=$`echo $ac_var`
1108 echo "$ac_var='"'"'$ac_val'"'"'"
1109 done | sort
1110 echo
1112 if test -n "$ac_subst_files"; then
1113 cat <<\_ASBOX
1114 ## ------------- ##
1115 ## Output files. ##
1116 ## ------------- ##
1117 _ASBOX
1118 echo
1119 for ac_var in $ac_subst_files
1121 eval ac_val=$`echo $ac_var`
1122 echo "$ac_var='"'"'$ac_val'"'"'"
1123 done | sort
1124 echo
1127 if test -s confdefs.h; then
1128 cat <<\_ASBOX
1129 ## ----------- ##
1130 ## confdefs.h. ##
1131 ## ----------- ##
1132 _ASBOX
1133 echo
1134 sed "/^$/d" confdefs.h | sort
1135 echo
1137 test "$ac_signal" != 0 &&
1138 echo "$as_me: caught signal $ac_signal"
1139 echo "$as_me: exit $exit_status"
1140 } >&5
1141 rm -f core *.core &&
1142 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1143 exit $exit_status
1145 for ac_signal in 1 2 13 15; do
1146 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1147 done
1148 ac_signal=0
1150 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1151 rm -rf conftest* confdefs.h
1152 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1153 echo >confdefs.h
1155 # Predefined preprocessor variables.
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_NAME "$PACKAGE_NAME"
1159 _ACEOF
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1164 _ACEOF
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1169 _ACEOF
1172 cat >>confdefs.h <<_ACEOF
1173 #define PACKAGE_STRING "$PACKAGE_STRING"
1174 _ACEOF
1177 cat >>confdefs.h <<_ACEOF
1178 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1179 _ACEOF
1182 # Let the site file select an alternate cache file if it wants to.
1183 # Prefer explicitly selected file to automatically selected ones.
1184 if test -z "$CONFIG_SITE"; then
1185 if test "x$prefix" != xNONE; then
1186 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1187 else
1188 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1191 for ac_site_file in $CONFIG_SITE; do
1192 if test -r "$ac_site_file"; then
1193 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1194 echo "$as_me: loading site script $ac_site_file" >&6;}
1195 sed 's/^/| /' "$ac_site_file" >&5
1196 . "$ac_site_file"
1198 done
1200 if test -r "$cache_file"; then
1201 # Some versions of bash will fail to source /dev/null (special
1202 # files actually), so we avoid doing that.
1203 if test -f "$cache_file"; then
1204 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1205 echo "$as_me: loading cache $cache_file" >&6;}
1206 case $cache_file in
1207 [\\/]* | ?:[\\/]* ) . $cache_file;;
1208 *) . ./$cache_file;;
1209 esac
1211 else
1212 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1213 echo "$as_me: creating cache $cache_file" >&6;}
1214 >$cache_file
1217 # Check that the precious variables saved in the cache have kept the same
1218 # value.
1219 ac_cache_corrupted=false
1220 for ac_var in `(set) 2>&1 |
1221 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1222 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1223 eval ac_new_set=\$ac_env_${ac_var}_set
1224 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1225 eval ac_new_val="\$ac_env_${ac_var}_value"
1226 case $ac_old_set,$ac_new_set in
1227 set,)
1228 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1229 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1230 ac_cache_corrupted=: ;;
1231 ,set)
1232 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1233 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1234 ac_cache_corrupted=: ;;
1235 ,);;
1237 if test "x$ac_old_val" != "x$ac_new_val"; then
1238 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1239 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1240 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1241 echo "$as_me: former value: $ac_old_val" >&2;}
1242 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1243 echo "$as_me: current value: $ac_new_val" >&2;}
1244 ac_cache_corrupted=:
1245 fi;;
1246 esac
1247 # Pass precious variables to config.status.
1248 if test "$ac_new_set" = set; then
1249 case $ac_new_val in
1250 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1251 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1252 *) ac_arg=$ac_var=$ac_new_val ;;
1253 esac
1254 case " $ac_configure_args " in
1255 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1256 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1257 esac
1259 done
1260 if $ac_cache_corrupted; then
1261 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1262 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1263 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1264 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1265 { (exit 1); exit 1; }; }
1268 ac_ext=c
1269 ac_cpp='$CPP $CPPFLAGS'
1270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1292 ac_config_headers="$ac_config_headers config.h"
1297 PRODUCT=hexedit
1298 VERSION=1.2.12
1299 INCL=hexedit.h
1300 SRCS="hexedit.c display.c mark.c page.c file.c interact.c misc.c search.c"
1301 OTHER="COPYING Changes TODO install-sh configure config.h.in hexedit.1 hexedit-1.2.12.lsm Makefile.in configure.in Makefile-build.in"
1310 cat >>confdefs.h <<\_ACEOF
1311 #define _GNU_SOURCE 1
1312 _ACEOF
1315 ac_ext=c
1316 ac_cpp='$CPP $CPPFLAGS'
1317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1320 if test -n "$ac_tool_prefix"; then
1321 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1322 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1323 echo "$as_me:$LINENO: checking for $ac_word" >&5
1324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1325 if test "${ac_cv_prog_CC+set}" = set; then
1326 echo $ECHO_N "(cached) $ECHO_C" >&6
1327 else
1328 if test -n "$CC"; then
1329 ac_cv_prog_CC="$CC" # Let the user override the test.
1330 else
1331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1332 for as_dir in $PATH
1334 IFS=$as_save_IFS
1335 test -z "$as_dir" && as_dir=.
1336 for ac_exec_ext in '' $ac_executable_extensions; do
1337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1338 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1340 break 2
1342 done
1343 done
1347 CC=$ac_cv_prog_CC
1348 if test -n "$CC"; then
1349 echo "$as_me:$LINENO: result: $CC" >&5
1350 echo "${ECHO_T}$CC" >&6
1351 else
1352 echo "$as_me:$LINENO: result: no" >&5
1353 echo "${ECHO_T}no" >&6
1357 if test -z "$ac_cv_prog_CC"; then
1358 ac_ct_CC=$CC
1359 # Extract the first word of "gcc", so it can be a program name with args.
1360 set dummy gcc; ac_word=$2
1361 echo "$as_me:$LINENO: checking for $ac_word" >&5
1362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1363 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1364 echo $ECHO_N "(cached) $ECHO_C" >&6
1365 else
1366 if test -n "$ac_ct_CC"; then
1367 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1368 else
1369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1370 for as_dir in $PATH
1372 IFS=$as_save_IFS
1373 test -z "$as_dir" && as_dir=.
1374 for ac_exec_ext in '' $ac_executable_extensions; do
1375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1376 ac_cv_prog_ac_ct_CC="gcc"
1377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1378 break 2
1380 done
1381 done
1385 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1386 if test -n "$ac_ct_CC"; then
1387 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1388 echo "${ECHO_T}$ac_ct_CC" >&6
1389 else
1390 echo "$as_me:$LINENO: result: no" >&5
1391 echo "${ECHO_T}no" >&6
1394 CC=$ac_ct_CC
1395 else
1396 CC="$ac_cv_prog_CC"
1399 if test -z "$CC"; then
1400 if test -n "$ac_tool_prefix"; then
1401 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1402 set dummy ${ac_tool_prefix}cc; ac_word=$2
1403 echo "$as_me:$LINENO: checking for $ac_word" >&5
1404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1405 if test "${ac_cv_prog_CC+set}" = set; then
1406 echo $ECHO_N "(cached) $ECHO_C" >&6
1407 else
1408 if test -n "$CC"; then
1409 ac_cv_prog_CC="$CC" # Let the user override the test.
1410 else
1411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1412 for as_dir in $PATH
1414 IFS=$as_save_IFS
1415 test -z "$as_dir" && as_dir=.
1416 for ac_exec_ext in '' $ac_executable_extensions; do
1417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1418 ac_cv_prog_CC="${ac_tool_prefix}cc"
1419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1420 break 2
1422 done
1423 done
1427 CC=$ac_cv_prog_CC
1428 if test -n "$CC"; then
1429 echo "$as_me:$LINENO: result: $CC" >&5
1430 echo "${ECHO_T}$CC" >&6
1431 else
1432 echo "$as_me:$LINENO: result: no" >&5
1433 echo "${ECHO_T}no" >&6
1437 if test -z "$ac_cv_prog_CC"; then
1438 ac_ct_CC=$CC
1439 # Extract the first word of "cc", so it can be a program name with args.
1440 set dummy cc; ac_word=$2
1441 echo "$as_me:$LINENO: checking for $ac_word" >&5
1442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1443 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1444 echo $ECHO_N "(cached) $ECHO_C" >&6
1445 else
1446 if test -n "$ac_ct_CC"; then
1447 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1448 else
1449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450 for as_dir in $PATH
1452 IFS=$as_save_IFS
1453 test -z "$as_dir" && as_dir=.
1454 for ac_exec_ext in '' $ac_executable_extensions; do
1455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1456 ac_cv_prog_ac_ct_CC="cc"
1457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1458 break 2
1460 done
1461 done
1465 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1466 if test -n "$ac_ct_CC"; then
1467 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1468 echo "${ECHO_T}$ac_ct_CC" >&6
1469 else
1470 echo "$as_me:$LINENO: result: no" >&5
1471 echo "${ECHO_T}no" >&6
1474 CC=$ac_ct_CC
1475 else
1476 CC="$ac_cv_prog_CC"
1480 if test -z "$CC"; then
1481 # Extract the first word of "cc", so it can be a program name with args.
1482 set dummy cc; ac_word=$2
1483 echo "$as_me:$LINENO: checking for $ac_word" >&5
1484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1485 if test "${ac_cv_prog_CC+set}" = set; then
1486 echo $ECHO_N "(cached) $ECHO_C" >&6
1487 else
1488 if test -n "$CC"; then
1489 ac_cv_prog_CC="$CC" # Let the user override the test.
1490 else
1491 ac_prog_rejected=no
1492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1493 for as_dir in $PATH
1495 IFS=$as_save_IFS
1496 test -z "$as_dir" && as_dir=.
1497 for ac_exec_ext in '' $ac_executable_extensions; do
1498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1499 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1500 ac_prog_rejected=yes
1501 continue
1503 ac_cv_prog_CC="cc"
1504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1505 break 2
1507 done
1508 done
1510 if test $ac_prog_rejected = yes; then
1511 # We found a bogon in the path, so make sure we never use it.
1512 set dummy $ac_cv_prog_CC
1513 shift
1514 if test $# != 0; then
1515 # We chose a different compiler from the bogus one.
1516 # However, it has the same basename, so the bogon will be chosen
1517 # first if we set CC to just the basename; use the full file name.
1518 shift
1519 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1524 CC=$ac_cv_prog_CC
1525 if test -n "$CC"; then
1526 echo "$as_me:$LINENO: result: $CC" >&5
1527 echo "${ECHO_T}$CC" >&6
1528 else
1529 echo "$as_me:$LINENO: result: no" >&5
1530 echo "${ECHO_T}no" >&6
1534 if test -z "$CC"; then
1535 if test -n "$ac_tool_prefix"; then
1536 for ac_prog in cl
1538 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1539 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1540 echo "$as_me:$LINENO: checking for $ac_word" >&5
1541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1542 if test "${ac_cv_prog_CC+set}" = set; then
1543 echo $ECHO_N "(cached) $ECHO_C" >&6
1544 else
1545 if test -n "$CC"; then
1546 ac_cv_prog_CC="$CC" # Let the user override the test.
1547 else
1548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1549 for as_dir in $PATH
1551 IFS=$as_save_IFS
1552 test -z "$as_dir" && as_dir=.
1553 for ac_exec_ext in '' $ac_executable_extensions; do
1554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1555 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1557 break 2
1559 done
1560 done
1564 CC=$ac_cv_prog_CC
1565 if test -n "$CC"; then
1566 echo "$as_me:$LINENO: result: $CC" >&5
1567 echo "${ECHO_T}$CC" >&6
1568 else
1569 echo "$as_me:$LINENO: result: no" >&5
1570 echo "${ECHO_T}no" >&6
1573 test -n "$CC" && break
1574 done
1576 if test -z "$CC"; then
1577 ac_ct_CC=$CC
1578 for ac_prog in cl
1580 # Extract the first word of "$ac_prog", so it can be a program name with args.
1581 set dummy $ac_prog; ac_word=$2
1582 echo "$as_me:$LINENO: checking for $ac_word" >&5
1583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1584 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1585 echo $ECHO_N "(cached) $ECHO_C" >&6
1586 else
1587 if test -n "$ac_ct_CC"; then
1588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1589 else
1590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591 for as_dir in $PATH
1593 IFS=$as_save_IFS
1594 test -z "$as_dir" && as_dir=.
1595 for ac_exec_ext in '' $ac_executable_extensions; do
1596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1597 ac_cv_prog_ac_ct_CC="$ac_prog"
1598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1599 break 2
1601 done
1602 done
1606 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1607 if test -n "$ac_ct_CC"; then
1608 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1609 echo "${ECHO_T}$ac_ct_CC" >&6
1610 else
1611 echo "$as_me:$LINENO: result: no" >&5
1612 echo "${ECHO_T}no" >&6
1615 test -n "$ac_ct_CC" && break
1616 done
1618 CC=$ac_ct_CC
1624 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1625 See \`config.log' for more details." >&5
1626 echo "$as_me: error: no acceptable C compiler found in \$PATH
1627 See \`config.log' for more details." >&2;}
1628 { (exit 1); exit 1; }; }
1630 # Provide some information about the compiler.
1631 echo "$as_me:$LINENO:" \
1632 "checking for C compiler version" >&5
1633 ac_compiler=`set X $ac_compile; echo $2`
1634 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1635 (eval $ac_compiler --version </dev/null >&5) 2>&5
1636 ac_status=$?
1637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1638 (exit $ac_status); }
1639 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1640 (eval $ac_compiler -v </dev/null >&5) 2>&5
1641 ac_status=$?
1642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1643 (exit $ac_status); }
1644 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1645 (eval $ac_compiler -V </dev/null >&5) 2>&5
1646 ac_status=$?
1647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1648 (exit $ac_status); }
1650 cat >conftest.$ac_ext <<_ACEOF
1651 /* confdefs.h. */
1652 _ACEOF
1653 cat confdefs.h >>conftest.$ac_ext
1654 cat >>conftest.$ac_ext <<_ACEOF
1655 /* end confdefs.h. */
1658 main ()
1662 return 0;
1664 _ACEOF
1665 ac_clean_files_save=$ac_clean_files
1666 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1667 # Try to create an executable without -o first, disregard a.out.
1668 # It will help us diagnose broken compilers, and finding out an intuition
1669 # of exeext.
1670 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1671 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1672 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1673 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1674 (eval $ac_link_default) 2>&5
1675 ac_status=$?
1676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1677 (exit $ac_status); }; then
1678 # Find the output, starting from the most likely. This scheme is
1679 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1680 # resort.
1682 # Be careful to initialize this variable, since it used to be cached.
1683 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1684 ac_cv_exeext=
1685 # b.out is created by i960 compilers.
1686 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1688 test -f "$ac_file" || continue
1689 case $ac_file in
1690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1692 conftest.$ac_ext )
1693 # This is the source file.
1695 [ab].out )
1696 # We found the default executable, but exeext='' is most
1697 # certainly right.
1698 break;;
1699 *.* )
1700 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1701 # FIXME: I believe we export ac_cv_exeext for Libtool,
1702 # but it would be cool to find out if it's true. Does anybody
1703 # maintain Libtool? --akim.
1704 export ac_cv_exeext
1705 break;;
1707 break;;
1708 esac
1709 done
1710 else
1711 echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1714 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1715 See \`config.log' for more details." >&5
1716 echo "$as_me: error: C compiler cannot create executables
1717 See \`config.log' for more details." >&2;}
1718 { (exit 77); exit 77; }; }
1721 ac_exeext=$ac_cv_exeext
1722 echo "$as_me:$LINENO: result: $ac_file" >&5
1723 echo "${ECHO_T}$ac_file" >&6
1725 # Check the compiler produces executables we can run. If not, either
1726 # the compiler is broken, or we cross compile.
1727 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1728 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1729 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1730 # If not cross compiling, check that we can run a simple program.
1731 if test "$cross_compiling" != yes; then
1732 if { ac_try='./$ac_file'
1733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1734 (eval $ac_try) 2>&5
1735 ac_status=$?
1736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1737 (exit $ac_status); }; }; then
1738 cross_compiling=no
1739 else
1740 if test "$cross_compiling" = maybe; then
1741 cross_compiling=yes
1742 else
1743 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1744 If you meant to cross compile, use \`--host'.
1745 See \`config.log' for more details." >&5
1746 echo "$as_me: error: cannot run C compiled programs.
1747 If you meant to cross compile, use \`--host'.
1748 See \`config.log' for more details." >&2;}
1749 { (exit 1); exit 1; }; }
1753 echo "$as_me:$LINENO: result: yes" >&5
1754 echo "${ECHO_T}yes" >&6
1756 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1757 ac_clean_files=$ac_clean_files_save
1758 # Check the compiler produces executables we can run. If not, either
1759 # the compiler is broken, or we cross compile.
1760 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1761 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1762 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1763 echo "${ECHO_T}$cross_compiling" >&6
1765 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1766 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1768 (eval $ac_link) 2>&5
1769 ac_status=$?
1770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1771 (exit $ac_status); }; then
1772 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1773 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1774 # work properly (i.e., refer to `conftest.exe'), while it won't with
1775 # `rm'.
1776 for ac_file in conftest.exe conftest conftest.*; do
1777 test -f "$ac_file" || continue
1778 case $ac_file in
1779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1780 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1781 export ac_cv_exeext
1782 break;;
1783 * ) break;;
1784 esac
1785 done
1786 else
1787 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1788 See \`config.log' for more details." >&5
1789 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1790 See \`config.log' for more details." >&2;}
1791 { (exit 1); exit 1; }; }
1794 rm -f conftest$ac_cv_exeext
1795 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1796 echo "${ECHO_T}$ac_cv_exeext" >&6
1798 rm -f conftest.$ac_ext
1799 EXEEXT=$ac_cv_exeext
1800 ac_exeext=$EXEEXT
1801 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1802 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1803 if test "${ac_cv_objext+set}" = set; then
1804 echo $ECHO_N "(cached) $ECHO_C" >&6
1805 else
1806 cat >conftest.$ac_ext <<_ACEOF
1807 /* confdefs.h. */
1808 _ACEOF
1809 cat confdefs.h >>conftest.$ac_ext
1810 cat >>conftest.$ac_ext <<_ACEOF
1811 /* end confdefs.h. */
1814 main ()
1818 return 0;
1820 _ACEOF
1821 rm -f conftest.o conftest.obj
1822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1823 (eval $ac_compile) 2>&5
1824 ac_status=$?
1825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1826 (exit $ac_status); }; then
1827 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1828 case $ac_file in
1829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1830 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1831 break;;
1832 esac
1833 done
1834 else
1835 echo "$as_me: failed program was:" >&5
1836 sed 's/^/| /' conftest.$ac_ext >&5
1838 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1839 See \`config.log' for more details." >&5
1840 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1841 See \`config.log' for more details." >&2;}
1842 { (exit 1); exit 1; }; }
1845 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1847 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1848 echo "${ECHO_T}$ac_cv_objext" >&6
1849 OBJEXT=$ac_cv_objext
1850 ac_objext=$OBJEXT
1851 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1852 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1853 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1855 else
1856 cat >conftest.$ac_ext <<_ACEOF
1857 /* confdefs.h. */
1858 _ACEOF
1859 cat confdefs.h >>conftest.$ac_ext
1860 cat >>conftest.$ac_ext <<_ACEOF
1861 /* end confdefs.h. */
1864 main ()
1866 #ifndef __GNUC__
1867 choke me
1868 #endif
1871 return 0;
1873 _ACEOF
1874 rm -f conftest.$ac_objext
1875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1876 (eval $ac_compile) 2>conftest.er1
1877 ac_status=$?
1878 grep -v '^ *+' conftest.er1 >conftest.err
1879 rm -f conftest.er1
1880 cat conftest.err >&5
1881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882 (exit $ac_status); } &&
1883 { ac_try='test -z "$ac_c_werror_flag"
1884 || test ! -s conftest.err'
1885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1886 (eval $ac_try) 2>&5
1887 ac_status=$?
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 (exit $ac_status); }; } &&
1890 { ac_try='test -s conftest.$ac_objext'
1891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1892 (eval $ac_try) 2>&5
1893 ac_status=$?
1894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895 (exit $ac_status); }; }; then
1896 ac_compiler_gnu=yes
1897 else
1898 echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1901 ac_compiler_gnu=no
1903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1904 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1907 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1908 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1909 GCC=`test $ac_compiler_gnu = yes && echo yes`
1910 ac_test_CFLAGS=${CFLAGS+set}
1911 ac_save_CFLAGS=$CFLAGS
1912 CFLAGS="-g"
1913 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1914 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1915 if test "${ac_cv_prog_cc_g+set}" = set; then
1916 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 else
1918 cat >conftest.$ac_ext <<_ACEOF
1919 /* confdefs.h. */
1920 _ACEOF
1921 cat confdefs.h >>conftest.$ac_ext
1922 cat >>conftest.$ac_ext <<_ACEOF
1923 /* end confdefs.h. */
1926 main ()
1930 return 0;
1932 _ACEOF
1933 rm -f conftest.$ac_objext
1934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1935 (eval $ac_compile) 2>conftest.er1
1936 ac_status=$?
1937 grep -v '^ *+' conftest.er1 >conftest.err
1938 rm -f conftest.er1
1939 cat conftest.err >&5
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); } &&
1942 { ac_try='test -z "$ac_c_werror_flag"
1943 || test ! -s conftest.err'
1944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1945 (eval $ac_try) 2>&5
1946 ac_status=$?
1947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1948 (exit $ac_status); }; } &&
1949 { ac_try='test -s conftest.$ac_objext'
1950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1951 (eval $ac_try) 2>&5
1952 ac_status=$?
1953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954 (exit $ac_status); }; }; then
1955 ac_cv_prog_cc_g=yes
1956 else
1957 echo "$as_me: failed program was:" >&5
1958 sed 's/^/| /' conftest.$ac_ext >&5
1960 ac_cv_prog_cc_g=no
1962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1964 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1965 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1966 if test "$ac_test_CFLAGS" = set; then
1967 CFLAGS=$ac_save_CFLAGS
1968 elif test $ac_cv_prog_cc_g = yes; then
1969 if test "$GCC" = yes; then
1970 CFLAGS="-g -O2"
1971 else
1972 CFLAGS="-g"
1974 else
1975 if test "$GCC" = yes; then
1976 CFLAGS="-O2"
1977 else
1978 CFLAGS=
1981 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1982 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1983 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1984 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 else
1986 ac_cv_prog_cc_stdc=no
1987 ac_save_CC=$CC
1988 cat >conftest.$ac_ext <<_ACEOF
1989 /* confdefs.h. */
1990 _ACEOF
1991 cat confdefs.h >>conftest.$ac_ext
1992 cat >>conftest.$ac_ext <<_ACEOF
1993 /* end confdefs.h. */
1994 #include <stdarg.h>
1995 #include <stdio.h>
1996 #include <sys/types.h>
1997 #include <sys/stat.h>
1998 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1999 struct buf { int x; };
2000 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2001 static char *e (p, i)
2002 char **p;
2003 int i;
2005 return p[i];
2007 static char *f (char * (*g) (char **, int), char **p, ...)
2009 char *s;
2010 va_list v;
2011 va_start (v,p);
2012 s = g (p, va_arg (v,int));
2013 va_end (v);
2014 return s;
2017 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2018 function prototypes and stuff, but not '\xHH' hex character constants.
2019 These don't provoke an error unfortunately, instead are silently treated
2020 as 'x'. The following induces an error, until -std1 is added to get
2021 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2022 array size at least. It's necessary to write '\x00'==0 to get something
2023 that's true only with -std1. */
2024 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2026 int test (int i, double x);
2027 struct s1 {int (*f) (int a);};
2028 struct s2 {int (*f) (double a);};
2029 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2030 int argc;
2031 char **argv;
2033 main ()
2035 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2037 return 0;
2039 _ACEOF
2040 # Don't try gcc -ansi; that turns off useful extensions and
2041 # breaks some systems' header files.
2042 # AIX -qlanglvl=ansi
2043 # Ultrix and OSF/1 -std1
2044 # HP-UX 10.20 and later -Ae
2045 # HP-UX older versions -Aa -D_HPUX_SOURCE
2046 # SVR4 -Xc -D__EXTENSIONS__
2047 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2049 CC="$ac_save_CC $ac_arg"
2050 rm -f conftest.$ac_objext
2051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2052 (eval $ac_compile) 2>conftest.er1
2053 ac_status=$?
2054 grep -v '^ *+' conftest.er1 >conftest.err
2055 rm -f conftest.er1
2056 cat conftest.err >&5
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); } &&
2059 { ac_try='test -z "$ac_c_werror_flag"
2060 || test ! -s conftest.err'
2061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062 (eval $ac_try) 2>&5
2063 ac_status=$?
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }; } &&
2066 { ac_try='test -s conftest.$ac_objext'
2067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2068 (eval $ac_try) 2>&5
2069 ac_status=$?
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }; }; then
2072 ac_cv_prog_cc_stdc=$ac_arg
2073 break
2074 else
2075 echo "$as_me: failed program was:" >&5
2076 sed 's/^/| /' conftest.$ac_ext >&5
2079 rm -f conftest.err conftest.$ac_objext
2080 done
2081 rm -f conftest.$ac_ext conftest.$ac_objext
2082 CC=$ac_save_CC
2086 case "x$ac_cv_prog_cc_stdc" in
2087 x|xno)
2088 echo "$as_me:$LINENO: result: none needed" >&5
2089 echo "${ECHO_T}none needed" >&6 ;;
2091 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2092 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2093 CC="$CC $ac_cv_prog_cc_stdc" ;;
2094 esac
2096 # Some people use a C++ compiler to compile C. Since we use `exit',
2097 # in C++ we need to declare it. In case someone uses the same compiler
2098 # for both compiling C and C++ we need to have the C++ compiler decide
2099 # the declaration of exit, since it's the most demanding environment.
2100 cat >conftest.$ac_ext <<_ACEOF
2101 #ifndef __cplusplus
2102 choke me
2103 #endif
2104 _ACEOF
2105 rm -f conftest.$ac_objext
2106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2107 (eval $ac_compile) 2>conftest.er1
2108 ac_status=$?
2109 grep -v '^ *+' conftest.er1 >conftest.err
2110 rm -f conftest.er1
2111 cat conftest.err >&5
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); } &&
2114 { ac_try='test -z "$ac_c_werror_flag"
2115 || test ! -s conftest.err'
2116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2117 (eval $ac_try) 2>&5
2118 ac_status=$?
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }; } &&
2121 { ac_try='test -s conftest.$ac_objext'
2122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2123 (eval $ac_try) 2>&5
2124 ac_status=$?
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }; }; then
2127 for ac_declaration in \
2128 '' \
2129 'extern "C" void std::exit (int) throw (); using std::exit;' \
2130 'extern "C" void std::exit (int); using std::exit;' \
2131 'extern "C" void exit (int) throw ();' \
2132 'extern "C" void exit (int);' \
2133 'void exit (int);'
2135 cat >conftest.$ac_ext <<_ACEOF
2136 /* confdefs.h. */
2137 _ACEOF
2138 cat confdefs.h >>conftest.$ac_ext
2139 cat >>conftest.$ac_ext <<_ACEOF
2140 /* end confdefs.h. */
2141 $ac_declaration
2142 #include <stdlib.h>
2144 main ()
2146 exit (42);
2148 return 0;
2150 _ACEOF
2151 rm -f conftest.$ac_objext
2152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2153 (eval $ac_compile) 2>conftest.er1
2154 ac_status=$?
2155 grep -v '^ *+' conftest.er1 >conftest.err
2156 rm -f conftest.er1
2157 cat conftest.err >&5
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); } &&
2160 { ac_try='test -z "$ac_c_werror_flag"
2161 || test ! -s conftest.err'
2162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2163 (eval $ac_try) 2>&5
2164 ac_status=$?
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); }; } &&
2167 { ac_try='test -s conftest.$ac_objext'
2168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2169 (eval $ac_try) 2>&5
2170 ac_status=$?
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; }; then
2174 else
2175 echo "$as_me: failed program was:" >&5
2176 sed 's/^/| /' conftest.$ac_ext >&5
2178 continue
2180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2181 cat >conftest.$ac_ext <<_ACEOF
2182 /* confdefs.h. */
2183 _ACEOF
2184 cat confdefs.h >>conftest.$ac_ext
2185 cat >>conftest.$ac_ext <<_ACEOF
2186 /* end confdefs.h. */
2187 $ac_declaration
2189 main ()
2191 exit (42);
2193 return 0;
2195 _ACEOF
2196 rm -f conftest.$ac_objext
2197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2198 (eval $ac_compile) 2>conftest.er1
2199 ac_status=$?
2200 grep -v '^ *+' conftest.er1 >conftest.err
2201 rm -f conftest.er1
2202 cat conftest.err >&5
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); } &&
2205 { ac_try='test -z "$ac_c_werror_flag"
2206 || test ! -s conftest.err'
2207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2208 (eval $ac_try) 2>&5
2209 ac_status=$?
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); }; } &&
2212 { ac_try='test -s conftest.$ac_objext'
2213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214 (eval $ac_try) 2>&5
2215 ac_status=$?
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); }; }; then
2218 break
2219 else
2220 echo "$as_me: failed program was:" >&5
2221 sed 's/^/| /' conftest.$ac_ext >&5
2224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2225 done
2226 rm -f conftest*
2227 if test -n "$ac_declaration"; then
2228 echo '#ifdef __cplusplus' >>confdefs.h
2229 echo $ac_declaration >>confdefs.h
2230 echo '#endif' >>confdefs.h
2233 else
2234 echo "$as_me: failed program was:" >&5
2235 sed 's/^/| /' conftest.$ac_ext >&5
2238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2239 ac_ext=c
2240 ac_cpp='$CPP $CPPFLAGS'
2241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2245 ac_aux_dir=
2246 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2247 if test -f $ac_dir/install-sh; then
2248 ac_aux_dir=$ac_dir
2249 ac_install_sh="$ac_aux_dir/install-sh -c"
2250 break
2251 elif test -f $ac_dir/install.sh; then
2252 ac_aux_dir=$ac_dir
2253 ac_install_sh="$ac_aux_dir/install.sh -c"
2254 break
2255 elif test -f $ac_dir/shtool; then
2256 ac_aux_dir=$ac_dir
2257 ac_install_sh="$ac_aux_dir/shtool install -c"
2258 break
2260 done
2261 if test -z "$ac_aux_dir"; then
2262 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2263 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2264 { (exit 1); exit 1; }; }
2266 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2267 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2268 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2270 # Find a good install program. We prefer a C program (faster),
2271 # so one script is as good as another. But avoid the broken or
2272 # incompatible versions:
2273 # SysV /etc/install, /usr/sbin/install
2274 # SunOS /usr/etc/install
2275 # IRIX /sbin/install
2276 # AIX /bin/install
2277 # AmigaOS /C/install, which installs bootblocks on floppy discs
2278 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2279 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2280 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2281 # OS/2's system install, which has a completely different semantic
2282 # ./install, which can be erroneously created by make from ./install.sh.
2283 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2284 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2285 if test -z "$INSTALL"; then
2286 if test "${ac_cv_path_install+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 else
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 for as_dir in $PATH
2292 IFS=$as_save_IFS
2293 test -z "$as_dir" && as_dir=.
2294 # Account for people who put trailing slashes in PATH elements.
2295 case $as_dir/ in
2296 ./ | .// | /cC/* | \
2297 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2298 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2299 /usr/ucb/* ) ;;
2301 # OSF1 and SCO ODT 3.0 have their own names for install.
2302 # Don't use installbsd from OSF since it installs stuff as root
2303 # by default.
2304 for ac_prog in ginstall scoinst install; do
2305 for ac_exec_ext in '' $ac_executable_extensions; do
2306 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2307 if test $ac_prog = install &&
2308 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2309 # AIX install. It has an incompatible calling convention.
2311 elif test $ac_prog = install &&
2312 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2313 # program-specific install script used by HP pwplus--don't use.
2315 else
2316 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2317 break 3
2320 done
2321 done
2323 esac
2324 done
2328 if test "${ac_cv_path_install+set}" = set; then
2329 INSTALL=$ac_cv_path_install
2330 else
2331 # As a last resort, use the slow shell script. We don't cache a
2332 # path for INSTALL within a source directory, because that will
2333 # break other packages using the cache if that directory is
2334 # removed, or if the path is relative.
2335 INSTALL=$ac_install_sh
2338 echo "$as_me:$LINENO: result: $INSTALL" >&5
2339 echo "${ECHO_T}$INSTALL" >&6
2341 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2342 # It thinks the first close brace ends the variable substitution.
2343 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2345 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2347 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2350 echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
2351 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
2352 if test "${ac_cv_lib_curses_initscr+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2354 else
2355 ac_check_lib_save_LIBS=$LIBS
2356 LIBS="-lcurses $LIBS"
2357 cat >conftest.$ac_ext <<_ACEOF
2358 /* confdefs.h. */
2359 _ACEOF
2360 cat confdefs.h >>conftest.$ac_ext
2361 cat >>conftest.$ac_ext <<_ACEOF
2362 /* end confdefs.h. */
2364 /* Override any gcc2 internal prototype to avoid an error. */
2365 #ifdef __cplusplus
2366 extern "C"
2367 #endif
2368 /* We use char because int might match the return type of a gcc2
2369 builtin and then its argument prototype would still apply. */
2370 char initscr ();
2372 main ()
2374 initscr ();
2376 return 0;
2378 _ACEOF
2379 rm -f conftest.$ac_objext conftest$ac_exeext
2380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2381 (eval $ac_link) 2>conftest.er1
2382 ac_status=$?
2383 grep -v '^ *+' conftest.er1 >conftest.err
2384 rm -f conftest.er1
2385 cat conftest.err >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); } &&
2388 { ac_try='test -z "$ac_c_werror_flag"
2389 || test ! -s conftest.err'
2390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391 (eval $ac_try) 2>&5
2392 ac_status=$?
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; } &&
2395 { ac_try='test -s conftest$ac_exeext'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 (eval $ac_try) 2>&5
2398 ac_status=$?
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; }; then
2401 ac_cv_lib_curses_initscr=yes
2402 else
2403 echo "$as_me: failed program was:" >&5
2404 sed 's/^/| /' conftest.$ac_ext >&5
2406 ac_cv_lib_curses_initscr=no
2408 rm -f conftest.err conftest.$ac_objext \
2409 conftest$ac_exeext conftest.$ac_ext
2410 LIBS=$ac_check_lib_save_LIBS
2412 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
2413 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
2414 if test $ac_cv_lib_curses_initscr = yes; then
2415 LIBS="$LIBS -lcurses"
2416 else
2417 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
2418 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
2419 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2421 else
2422 ac_check_lib_save_LIBS=$LIBS
2423 LIBS="-lncurses $LIBS"
2425 cat >conftest.$ac_ext <<_ACEOF
2426 /* confdefs.h. */
2427 _ACEOF
2428 cat confdefs.h >>conftest.$ac_ext
2429 cat >>conftest.$ac_ext <<_ACEOF
2430 /* end confdefs.h. */
2432 /* Override any gcc2 internal prototype to avoid an error. */
2433 #ifdef __cplusplus
2434 extern "C"
2435 #endif
2436 /* We use char because int might match the return type of a gcc2
2437 builtin and then its argument prototype would still apply. */
2438 char initscr ();
2440 main ()
2442 initscr ();
2444 return 0;
2446 _ACEOF
2447 rm -f conftest.$ac_objext conftest$ac_exeext
2448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2449 (eval $ac_link) 2>conftest.er1
2450 ac_status=$?
2451 grep -v '^ *+' conftest.er1 >conftest.err
2452 rm -f conftest.er1
2453 cat conftest.err >&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); } &&
2456 { ac_try='test -z "$ac_c_werror_flag"
2457 || test ! -s conftest.err'
2458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459 (eval $ac_try) 2>&5
2460 ac_status=$?
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }; } &&
2463 { ac_try='test -s conftest$ac_exeext'
2464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 (eval $ac_try) 2>&5
2466 ac_status=$?
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; }; then
2469 ac_cv_lib_ncurses_initscr=yes
2470 else
2471 echo "$as_me: failed program was:" >&5
2472 sed 's/^/| /' conftest.$ac_ext >&5
2474 ac_cv_lib_ncurses_initscr=no
2476 rm -f conftest.err conftest.$ac_objext \
2477 conftest$ac_exeext conftest.$ac_ext
2478 LIBS=$ac_check_lib_save_LIBS
2480 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
2481 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
2482 if test $ac_cv_lib_ncurses_initscr = yes; then
2483 LIBS="$LIBS -lncurses"
2489 echo "$as_me:$LINENO: checking for use_default_colors" >&5
2490 echo $ECHO_N "checking for use_default_colors... $ECHO_C" >&6
2491 if test "${ac_cv_func_use_default_colors+set}" = set; then
2492 echo $ECHO_N "(cached) $ECHO_C" >&6
2493 else
2494 cat >conftest.$ac_ext <<_ACEOF
2495 /* confdefs.h. */
2496 _ACEOF
2497 cat confdefs.h >>conftest.$ac_ext
2498 cat >>conftest.$ac_ext <<_ACEOF
2499 /* end confdefs.h. */
2500 /* Define use_default_colors to an innocuous variant, in case <limits.h> declares use_default_colors.
2501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2502 #define use_default_colors innocuous_use_default_colors
2504 /* System header to define __stub macros and hopefully few prototypes,
2505 which can conflict with char use_default_colors (); below.
2506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2507 <limits.h> exists even on freestanding compilers. */
2509 #ifdef __STDC__
2510 # include <limits.h>
2511 #else
2512 # include <assert.h>
2513 #endif
2515 #undef use_default_colors
2517 /* Override any gcc2 internal prototype to avoid an error. */
2518 #ifdef __cplusplus
2519 extern "C"
2521 #endif
2522 /* We use char because int might match the return type of a gcc2
2523 builtin and then its argument prototype would still apply. */
2524 char use_default_colors ();
2525 /* The GNU C library defines this for functions which it implements
2526 to always fail with ENOSYS. Some functions are actually named
2527 something starting with __ and the normal name is an alias. */
2528 #if defined (__stub_use_default_colors) || defined (__stub___use_default_colors)
2529 choke me
2530 #else
2531 char (*f) () = use_default_colors;
2532 #endif
2533 #ifdef __cplusplus
2535 #endif
2538 main ()
2540 return f != use_default_colors;
2542 return 0;
2544 _ACEOF
2545 rm -f conftest.$ac_objext conftest$ac_exeext
2546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2547 (eval $ac_link) 2>conftest.er1
2548 ac_status=$?
2549 grep -v '^ *+' conftest.er1 >conftest.err
2550 rm -f conftest.er1
2551 cat conftest.err >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } &&
2554 { ac_try='test -z "$ac_c_werror_flag"
2555 || test ! -s conftest.err'
2556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557 (eval $ac_try) 2>&5
2558 ac_status=$?
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }; } &&
2561 { ac_try='test -s conftest$ac_exeext'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 (eval $ac_try) 2>&5
2564 ac_status=$?
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; }; then
2567 ac_cv_func_use_default_colors=yes
2568 else
2569 echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2572 ac_cv_func_use_default_colors=no
2574 rm -f conftest.err conftest.$ac_objext \
2575 conftest$ac_exeext conftest.$ac_ext
2577 echo "$as_me:$LINENO: result: $ac_cv_func_use_default_colors" >&5
2578 echo "${ECHO_T}$ac_cv_func_use_default_colors" >&6
2579 if test $ac_cv_func_use_default_colors = yes; then
2581 cat >>confdefs.h <<\_ACEOF
2582 #define HAVE_COLORS
2583 _ACEOF
2589 # Check whether --enable-largefile or --disable-largefile was given.
2590 if test "${enable_largefile+set}" = set; then
2591 enableval="$enable_largefile"
2594 if test "$enable_largefile" != no; then
2596 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2597 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2598 if test "${ac_cv_sys_largefile_CC+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 else
2601 ac_cv_sys_largefile_CC=no
2602 if test "$GCC" != yes; then
2603 ac_save_CC=$CC
2604 while :; do
2605 # IRIX 6.2 and later do not support large files by default,
2606 # so use the C compiler's -n32 option if that helps.
2607 cat >conftest.$ac_ext <<_ACEOF
2608 /* confdefs.h. */
2609 _ACEOF
2610 cat confdefs.h >>conftest.$ac_ext
2611 cat >>conftest.$ac_ext <<_ACEOF
2612 /* end confdefs.h. */
2613 #include <sys/types.h>
2614 /* Check that off_t can represent 2**63 - 1 correctly.
2615 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2616 since some C++ compilers masquerading as C compilers
2617 incorrectly reject 9223372036854775807. */
2618 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2619 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2620 && LARGE_OFF_T % 2147483647 == 1)
2621 ? 1 : -1];
2623 main ()
2627 return 0;
2629 _ACEOF
2630 rm -f conftest.$ac_objext
2631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2632 (eval $ac_compile) 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); } &&
2639 { ac_try='test -z "$ac_c_werror_flag"
2640 || test ! -s conftest.err'
2641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642 (eval $ac_try) 2>&5
2643 ac_status=$?
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); }; } &&
2646 { ac_try='test -s conftest.$ac_objext'
2647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648 (eval $ac_try) 2>&5
2649 ac_status=$?
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }; }; then
2652 break
2653 else
2654 echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.$ac_ext >&5
2658 rm -f conftest.err conftest.$ac_objext
2659 CC="$CC -n32"
2660 rm -f conftest.$ac_objext
2661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2662 (eval $ac_compile) 2>conftest.er1
2663 ac_status=$?
2664 grep -v '^ *+' conftest.er1 >conftest.err
2665 rm -f conftest.er1
2666 cat conftest.err >&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); } &&
2669 { ac_try='test -z "$ac_c_werror_flag"
2670 || test ! -s conftest.err'
2671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672 (eval $ac_try) 2>&5
2673 ac_status=$?
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }; } &&
2676 { ac_try='test -s conftest.$ac_objext'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678 (eval $ac_try) 2>&5
2679 ac_status=$?
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; }; then
2682 ac_cv_sys_largefile_CC=' -n32'; break
2683 else
2684 echo "$as_me: failed program was:" >&5
2685 sed 's/^/| /' conftest.$ac_ext >&5
2688 rm -f conftest.err conftest.$ac_objext
2689 break
2690 done
2691 CC=$ac_save_CC
2692 rm -f conftest.$ac_ext
2695 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
2696 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
2697 if test "$ac_cv_sys_largefile_CC" != no; then
2698 CC=$CC$ac_cv_sys_largefile_CC
2701 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2702 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
2703 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2704 echo $ECHO_N "(cached) $ECHO_C" >&6
2705 else
2706 while :; do
2707 ac_cv_sys_file_offset_bits=no
2708 cat >conftest.$ac_ext <<_ACEOF
2709 /* confdefs.h. */
2710 _ACEOF
2711 cat confdefs.h >>conftest.$ac_ext
2712 cat >>conftest.$ac_ext <<_ACEOF
2713 /* end confdefs.h. */
2714 #include <sys/types.h>
2715 /* Check that off_t can represent 2**63 - 1 correctly.
2716 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2717 since some C++ compilers masquerading as C compilers
2718 incorrectly reject 9223372036854775807. */
2719 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2720 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2721 && LARGE_OFF_T % 2147483647 == 1)
2722 ? 1 : -1];
2724 main ()
2728 return 0;
2730 _ACEOF
2731 rm -f conftest.$ac_objext
2732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2733 (eval $ac_compile) 2>conftest.er1
2734 ac_status=$?
2735 grep -v '^ *+' conftest.er1 >conftest.err
2736 rm -f conftest.er1
2737 cat conftest.err >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); } &&
2740 { ac_try='test -z "$ac_c_werror_flag"
2741 || test ! -s conftest.err'
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743 (eval $ac_try) 2>&5
2744 ac_status=$?
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; } &&
2747 { ac_try='test -s conftest.$ac_objext'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749 (eval $ac_try) 2>&5
2750 ac_status=$?
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; }; then
2753 break
2754 else
2755 echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.$ac_ext >&5
2759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2760 cat >conftest.$ac_ext <<_ACEOF
2761 /* confdefs.h. */
2762 _ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h. */
2766 #define _FILE_OFFSET_BITS 64
2767 #include <sys/types.h>
2768 /* Check that off_t can represent 2**63 - 1 correctly.
2769 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2770 since some C++ compilers masquerading as C compilers
2771 incorrectly reject 9223372036854775807. */
2772 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2773 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2774 && LARGE_OFF_T % 2147483647 == 1)
2775 ? 1 : -1];
2777 main ()
2781 return 0;
2783 _ACEOF
2784 rm -f conftest.$ac_objext
2785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2786 (eval $ac_compile) 2>conftest.er1
2787 ac_status=$?
2788 grep -v '^ *+' conftest.er1 >conftest.err
2789 rm -f conftest.er1
2790 cat conftest.err >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); } &&
2793 { ac_try='test -z "$ac_c_werror_flag"
2794 || test ! -s conftest.err'
2795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 (eval $ac_try) 2>&5
2797 ac_status=$?
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; } &&
2800 { ac_try='test -s conftest.$ac_objext'
2801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 (eval $ac_try) 2>&5
2803 ac_status=$?
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }; }; then
2806 ac_cv_sys_file_offset_bits=64; break
2807 else
2808 echo "$as_me: failed program was:" >&5
2809 sed 's/^/| /' conftest.$ac_ext >&5
2812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2813 break
2814 done
2816 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
2817 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
2818 if test "$ac_cv_sys_file_offset_bits" != no; then
2820 cat >>confdefs.h <<_ACEOF
2821 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2822 _ACEOF
2825 rm -f conftest*
2826 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
2827 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
2828 if test "${ac_cv_sys_large_files+set}" = set; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2830 else
2831 while :; do
2832 ac_cv_sys_large_files=no
2833 cat >conftest.$ac_ext <<_ACEOF
2834 /* confdefs.h. */
2835 _ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h. */
2839 #include <sys/types.h>
2840 /* Check that off_t can represent 2**63 - 1 correctly.
2841 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2842 since some C++ compilers masquerading as C compilers
2843 incorrectly reject 9223372036854775807. */
2844 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2845 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2846 && LARGE_OFF_T % 2147483647 == 1)
2847 ? 1 : -1];
2849 main ()
2853 return 0;
2855 _ACEOF
2856 rm -f conftest.$ac_objext
2857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2858 (eval $ac_compile) 2>conftest.er1
2859 ac_status=$?
2860 grep -v '^ *+' conftest.er1 >conftest.err
2861 rm -f conftest.er1
2862 cat conftest.err >&5
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); } &&
2865 { ac_try='test -z "$ac_c_werror_flag"
2866 || test ! -s conftest.err'
2867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868 (eval $ac_try) 2>&5
2869 ac_status=$?
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); }; } &&
2872 { ac_try='test -s conftest.$ac_objext'
2873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2874 (eval $ac_try) 2>&5
2875 ac_status=$?
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); }; }; then
2878 break
2879 else
2880 echo "$as_me: failed program was:" >&5
2881 sed 's/^/| /' conftest.$ac_ext >&5
2884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2885 cat >conftest.$ac_ext <<_ACEOF
2886 /* confdefs.h. */
2887 _ACEOF
2888 cat confdefs.h >>conftest.$ac_ext
2889 cat >>conftest.$ac_ext <<_ACEOF
2890 /* end confdefs.h. */
2891 #define _LARGE_FILES 1
2892 #include <sys/types.h>
2893 /* Check that off_t can represent 2**63 - 1 correctly.
2894 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2895 since some C++ compilers masquerading as C compilers
2896 incorrectly reject 9223372036854775807. */
2897 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2898 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2899 && LARGE_OFF_T % 2147483647 == 1)
2900 ? 1 : -1];
2902 main ()
2906 return 0;
2908 _ACEOF
2909 rm -f conftest.$ac_objext
2910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2911 (eval $ac_compile) 2>conftest.er1
2912 ac_status=$?
2913 grep -v '^ *+' conftest.er1 >conftest.err
2914 rm -f conftest.er1
2915 cat conftest.err >&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); } &&
2918 { ac_try='test -z "$ac_c_werror_flag"
2919 || test ! -s conftest.err'
2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921 (eval $ac_try) 2>&5
2922 ac_status=$?
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; } &&
2925 { ac_try='test -s conftest.$ac_objext'
2926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927 (eval $ac_try) 2>&5
2928 ac_status=$?
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; }; then
2931 ac_cv_sys_large_files=1; break
2932 else
2933 echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.$ac_ext >&5
2937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2938 break
2939 done
2941 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
2942 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
2943 if test "$ac_cv_sys_large_files" != no; then
2945 cat >>confdefs.h <<_ACEOF
2946 #define _LARGE_FILES $ac_cv_sys_large_files
2947 _ACEOF
2950 rm -f conftest*
2954 ac_ext=c
2955 ac_cpp='$CPP $CPPFLAGS'
2956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2959 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2960 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2961 # On Suns, sometimes $CPP names a directory.
2962 if test -n "$CPP" && test -d "$CPP"; then
2963 CPP=
2965 if test -z "$CPP"; then
2966 if test "${ac_cv_prog_CPP+set}" = set; then
2967 echo $ECHO_N "(cached) $ECHO_C" >&6
2968 else
2969 # Double quotes because CPP needs to be expanded
2970 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2972 ac_preproc_ok=false
2973 for ac_c_preproc_warn_flag in '' yes
2975 # Use a header file that comes with gcc, so configuring glibc
2976 # with a fresh cross-compiler works.
2977 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2978 # <limits.h> exists even on freestanding compilers.
2979 # On the NeXT, cc -E runs the code through the compiler's parser,
2980 # not just through cpp. "Syntax error" is here to catch this case.
2981 cat >conftest.$ac_ext <<_ACEOF
2982 /* confdefs.h. */
2983 _ACEOF
2984 cat confdefs.h >>conftest.$ac_ext
2985 cat >>conftest.$ac_ext <<_ACEOF
2986 /* end confdefs.h. */
2987 #ifdef __STDC__
2988 # include <limits.h>
2989 #else
2990 # include <assert.h>
2991 #endif
2992 Syntax error
2993 _ACEOF
2994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2996 ac_status=$?
2997 grep -v '^ *+' conftest.er1 >conftest.err
2998 rm -f conftest.er1
2999 cat conftest.err >&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); } >/dev/null; then
3002 if test -s conftest.err; then
3003 ac_cpp_err=$ac_c_preproc_warn_flag
3004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3005 else
3006 ac_cpp_err=
3008 else
3009 ac_cpp_err=yes
3011 if test -z "$ac_cpp_err"; then
3013 else
3014 echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3017 # Broken: fails on valid input.
3018 continue
3020 rm -f conftest.err conftest.$ac_ext
3022 # OK, works on sane cases. Now check whether non-existent headers
3023 # can be detected and how.
3024 cat >conftest.$ac_ext <<_ACEOF
3025 /* confdefs.h. */
3026 _ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3030 #include <ac_nonexistent.h>
3031 _ACEOF
3032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3033 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3034 ac_status=$?
3035 grep -v '^ *+' conftest.er1 >conftest.err
3036 rm -f conftest.er1
3037 cat conftest.err >&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); } >/dev/null; then
3040 if test -s conftest.err; then
3041 ac_cpp_err=$ac_c_preproc_warn_flag
3042 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3043 else
3044 ac_cpp_err=
3046 else
3047 ac_cpp_err=yes
3049 if test -z "$ac_cpp_err"; then
3050 # Broken: success on invalid input.
3051 continue
3052 else
3053 echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3056 # Passes both tests.
3057 ac_preproc_ok=:
3058 break
3060 rm -f conftest.err conftest.$ac_ext
3062 done
3063 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3064 rm -f conftest.err conftest.$ac_ext
3065 if $ac_preproc_ok; then
3066 break
3069 done
3070 ac_cv_prog_CPP=$CPP
3073 CPP=$ac_cv_prog_CPP
3074 else
3075 ac_cv_prog_CPP=$CPP
3077 echo "$as_me:$LINENO: result: $CPP" >&5
3078 echo "${ECHO_T}$CPP" >&6
3079 ac_preproc_ok=false
3080 for ac_c_preproc_warn_flag in '' yes
3082 # Use a header file that comes with gcc, so configuring glibc
3083 # with a fresh cross-compiler works.
3084 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3085 # <limits.h> exists even on freestanding compilers.
3086 # On the NeXT, cc -E runs the code through the compiler's parser,
3087 # not just through cpp. "Syntax error" is here to catch this case.
3088 cat >conftest.$ac_ext <<_ACEOF
3089 /* confdefs.h. */
3090 _ACEOF
3091 cat confdefs.h >>conftest.$ac_ext
3092 cat >>conftest.$ac_ext <<_ACEOF
3093 /* end confdefs.h. */
3094 #ifdef __STDC__
3095 # include <limits.h>
3096 #else
3097 # include <assert.h>
3098 #endif
3099 Syntax error
3100 _ACEOF
3101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3103 ac_status=$?
3104 grep -v '^ *+' conftest.er1 >conftest.err
3105 rm -f conftest.er1
3106 cat conftest.err >&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } >/dev/null; then
3109 if test -s conftest.err; then
3110 ac_cpp_err=$ac_c_preproc_warn_flag
3111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3112 else
3113 ac_cpp_err=
3115 else
3116 ac_cpp_err=yes
3118 if test -z "$ac_cpp_err"; then
3120 else
3121 echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3124 # Broken: fails on valid input.
3125 continue
3127 rm -f conftest.err conftest.$ac_ext
3129 # OK, works on sane cases. Now check whether non-existent headers
3130 # can be detected and how.
3131 cat >conftest.$ac_ext <<_ACEOF
3132 /* confdefs.h. */
3133 _ACEOF
3134 cat confdefs.h >>conftest.$ac_ext
3135 cat >>conftest.$ac_ext <<_ACEOF
3136 /* end confdefs.h. */
3137 #include <ac_nonexistent.h>
3138 _ACEOF
3139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3141 ac_status=$?
3142 grep -v '^ *+' conftest.er1 >conftest.err
3143 rm -f conftest.er1
3144 cat conftest.err >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } >/dev/null; then
3147 if test -s conftest.err; then
3148 ac_cpp_err=$ac_c_preproc_warn_flag
3149 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3150 else
3151 ac_cpp_err=
3153 else
3154 ac_cpp_err=yes
3156 if test -z "$ac_cpp_err"; then
3157 # Broken: success on invalid input.
3158 continue
3159 else
3160 echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3163 # Passes both tests.
3164 ac_preproc_ok=:
3165 break
3167 rm -f conftest.err conftest.$ac_ext
3169 done
3170 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3171 rm -f conftest.err conftest.$ac_ext
3172 if $ac_preproc_ok; then
3174 else
3175 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3176 See \`config.log' for more details." >&5
3177 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3178 See \`config.log' for more details." >&2;}
3179 { (exit 1); exit 1; }; }
3182 ac_ext=c
3183 ac_cpp='$CPP $CPPFLAGS'
3184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3189 echo "$as_me:$LINENO: checking for egrep" >&5
3190 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3191 if test "${ac_cv_prog_egrep+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 else
3194 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3195 then ac_cv_prog_egrep='grep -E'
3196 else ac_cv_prog_egrep='egrep'
3199 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3200 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3201 EGREP=$ac_cv_prog_egrep
3204 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3205 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3206 if test "${ac_cv_header_stdc+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 else
3209 cat >conftest.$ac_ext <<_ACEOF
3210 /* confdefs.h. */
3211 _ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3215 #include <stdlib.h>
3216 #include <stdarg.h>
3217 #include <string.h>
3218 #include <float.h>
3221 main ()
3225 return 0;
3227 _ACEOF
3228 rm -f conftest.$ac_objext
3229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3230 (eval $ac_compile) 2>conftest.er1
3231 ac_status=$?
3232 grep -v '^ *+' conftest.er1 >conftest.err
3233 rm -f conftest.er1
3234 cat conftest.err >&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } &&
3237 { ac_try='test -z "$ac_c_werror_flag"
3238 || test ! -s conftest.err'
3239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3240 (eval $ac_try) 2>&5
3241 ac_status=$?
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); }; } &&
3244 { ac_try='test -s conftest.$ac_objext'
3245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246 (eval $ac_try) 2>&5
3247 ac_status=$?
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }; }; then
3250 ac_cv_header_stdc=yes
3251 else
3252 echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3255 ac_cv_header_stdc=no
3257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3259 if test $ac_cv_header_stdc = yes; then
3260 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3261 cat >conftest.$ac_ext <<_ACEOF
3262 /* confdefs.h. */
3263 _ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h. */
3267 #include <string.h>
3269 _ACEOF
3270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3271 $EGREP "memchr" >/dev/null 2>&1; then
3273 else
3274 ac_cv_header_stdc=no
3276 rm -f conftest*
3280 if test $ac_cv_header_stdc = yes; then
3281 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3282 cat >conftest.$ac_ext <<_ACEOF
3283 /* confdefs.h. */
3284 _ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3288 #include <stdlib.h>
3290 _ACEOF
3291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3292 $EGREP "free" >/dev/null 2>&1; then
3294 else
3295 ac_cv_header_stdc=no
3297 rm -f conftest*
3301 if test $ac_cv_header_stdc = yes; then
3302 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3303 if test "$cross_compiling" = yes; then
3305 else
3306 cat >conftest.$ac_ext <<_ACEOF
3307 /* confdefs.h. */
3308 _ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h. */
3312 #include <ctype.h>
3313 #if ((' ' & 0x0FF) == 0x020)
3314 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3315 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3316 #else
3317 # define ISLOWER(c) \
3318 (('a' <= (c) && (c) <= 'i') \
3319 || ('j' <= (c) && (c) <= 'r') \
3320 || ('s' <= (c) && (c) <= 'z'))
3321 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3322 #endif
3324 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3326 main ()
3328 int i;
3329 for (i = 0; i < 256; i++)
3330 if (XOR (islower (i), ISLOWER (i))
3331 || toupper (i) != TOUPPER (i))
3332 exit(2);
3333 exit (0);
3335 _ACEOF
3336 rm -f conftest$ac_exeext
3337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3338 (eval $ac_link) 2>&5
3339 ac_status=$?
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3343 (eval $ac_try) 2>&5
3344 ac_status=$?
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); }; }; then
3348 else
3349 echo "$as_me: program exited with status $ac_status" >&5
3350 echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3353 ( exit $ac_status )
3354 ac_cv_header_stdc=no
3356 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3360 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3361 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3362 if test $ac_cv_header_stdc = yes; then
3364 cat >>confdefs.h <<\_ACEOF
3365 #define STDC_HEADERS 1
3366 _ACEOF
3370 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
3371 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
3372 if test "${ac_cv_header_stat_broken+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3374 else
3375 cat >conftest.$ac_ext <<_ACEOF
3376 /* confdefs.h. */
3377 _ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h. */
3381 #include <sys/types.h>
3382 #include <sys/stat.h>
3384 #if defined(S_ISBLK) && defined(S_IFDIR)
3385 # if S_ISBLK (S_IFDIR)
3386 You lose.
3387 # endif
3388 #endif
3390 #if defined(S_ISBLK) && defined(S_IFCHR)
3391 # if S_ISBLK (S_IFCHR)
3392 You lose.
3393 # endif
3394 #endif
3396 #if defined(S_ISLNK) && defined(S_IFREG)
3397 # if S_ISLNK (S_IFREG)
3398 You lose.
3399 # endif
3400 #endif
3402 #if defined(S_ISSOCK) && defined(S_IFREG)
3403 # if S_ISSOCK (S_IFREG)
3404 You lose.
3405 # endif
3406 #endif
3408 _ACEOF
3409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3410 $EGREP "You lose" >/dev/null 2>&1; then
3411 ac_cv_header_stat_broken=yes
3412 else
3413 ac_cv_header_stat_broken=no
3415 rm -f conftest*
3418 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
3419 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
3420 if test $ac_cv_header_stat_broken = yes; then
3422 cat >>confdefs.h <<\_ACEOF
3423 #define STAT_MACROS_BROKEN 1
3424 _ACEOF
3428 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3429 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3430 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3431 echo $ECHO_N "(cached) $ECHO_C" >&6
3432 else
3433 cat >conftest.$ac_ext <<_ACEOF
3434 /* confdefs.h. */
3435 _ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3439 #include <sys/types.h>
3440 #include <sys/wait.h>
3441 #ifndef WEXITSTATUS
3442 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3443 #endif
3444 #ifndef WIFEXITED
3445 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3446 #endif
3449 main ()
3451 int s;
3452 wait (&s);
3453 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3455 return 0;
3457 _ACEOF
3458 rm -f conftest.$ac_objext
3459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3460 (eval $ac_compile) 2>conftest.er1
3461 ac_status=$?
3462 grep -v '^ *+' conftest.er1 >conftest.err
3463 rm -f conftest.er1
3464 cat conftest.err >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } &&
3467 { ac_try='test -z "$ac_c_werror_flag"
3468 || test ! -s conftest.err'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 (eval $ac_try) 2>&5
3471 ac_status=$?
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; } &&
3474 { ac_try='test -s conftest.$ac_objext'
3475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476 (eval $ac_try) 2>&5
3477 ac_status=$?
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; }; then
3480 ac_cv_header_sys_wait_h=yes
3481 else
3482 echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3485 ac_cv_header_sys_wait_h=no
3487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3489 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3490 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3491 if test $ac_cv_header_sys_wait_h = yes; then
3493 cat >>confdefs.h <<\_ACEOF
3494 #define HAVE_SYS_WAIT_H 1
3495 _ACEOF
3499 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3509 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3510 inttypes.h stdint.h unistd.h
3512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3513 echo "$as_me:$LINENO: checking for $ac_header" >&5
3514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3517 else
3518 cat >conftest.$ac_ext <<_ACEOF
3519 /* confdefs.h. */
3520 _ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3524 $ac_includes_default
3526 #include <$ac_header>
3527 _ACEOF
3528 rm -f conftest.$ac_objext
3529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3530 (eval $ac_compile) 2>conftest.er1
3531 ac_status=$?
3532 grep -v '^ *+' conftest.er1 >conftest.err
3533 rm -f conftest.er1
3534 cat conftest.err >&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); } &&
3537 { ac_try='test -z "$ac_c_werror_flag"
3538 || test ! -s conftest.err'
3539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3540 (eval $ac_try) 2>&5
3541 ac_status=$?
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); }; } &&
3544 { ac_try='test -s conftest.$ac_objext'
3545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3546 (eval $ac_try) 2>&5
3547 ac_status=$?
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); }; }; then
3550 eval "$as_ac_Header=yes"
3551 else
3552 echo "$as_me: failed program was:" >&5
3553 sed 's/^/| /' conftest.$ac_ext >&5
3555 eval "$as_ac_Header=no"
3557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3562 cat >>confdefs.h <<_ACEOF
3563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3564 _ACEOF
3568 done
3575 for ac_header in fcntl.h unistd.h libgen.h sys/mount.h
3577 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3579 echo "$as_me:$LINENO: checking for $ac_header" >&5
3580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3586 else
3587 # Is the header compilable?
3588 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3589 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3590 cat >conftest.$ac_ext <<_ACEOF
3591 /* confdefs.h. */
3592 _ACEOF
3593 cat confdefs.h >>conftest.$ac_ext
3594 cat >>conftest.$ac_ext <<_ACEOF
3595 /* end confdefs.h. */
3596 $ac_includes_default
3597 #include <$ac_header>
3598 _ACEOF
3599 rm -f conftest.$ac_objext
3600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3601 (eval $ac_compile) 2>conftest.er1
3602 ac_status=$?
3603 grep -v '^ *+' conftest.er1 >conftest.err
3604 rm -f conftest.er1
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } &&
3608 { ac_try='test -z "$ac_c_werror_flag"
3609 || test ! -s conftest.err'
3610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611 (eval $ac_try) 2>&5
3612 ac_status=$?
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }; } &&
3615 { ac_try='test -s conftest.$ac_objext'
3616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617 (eval $ac_try) 2>&5
3618 ac_status=$?
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); }; }; then
3621 ac_header_compiler=yes
3622 else
3623 echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.$ac_ext >&5
3626 ac_header_compiler=no
3628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3629 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3630 echo "${ECHO_T}$ac_header_compiler" >&6
3632 # Is the header present?
3633 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3634 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3635 cat >conftest.$ac_ext <<_ACEOF
3636 /* confdefs.h. */
3637 _ACEOF
3638 cat confdefs.h >>conftest.$ac_ext
3639 cat >>conftest.$ac_ext <<_ACEOF
3640 /* end confdefs.h. */
3641 #include <$ac_header>
3642 _ACEOF
3643 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3644 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3645 ac_status=$?
3646 grep -v '^ *+' conftest.er1 >conftest.err
3647 rm -f conftest.er1
3648 cat conftest.err >&5
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); } >/dev/null; then
3651 if test -s conftest.err; then
3652 ac_cpp_err=$ac_c_preproc_warn_flag
3653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3654 else
3655 ac_cpp_err=
3657 else
3658 ac_cpp_err=yes
3660 if test -z "$ac_cpp_err"; then
3661 ac_header_preproc=yes
3662 else
3663 echo "$as_me: failed program was:" >&5
3664 sed 's/^/| /' conftest.$ac_ext >&5
3666 ac_header_preproc=no
3668 rm -f conftest.err conftest.$ac_ext
3669 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3670 echo "${ECHO_T}$ac_header_preproc" >&6
3672 # So? What about this header?
3673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3674 yes:no: )
3675 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3676 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3678 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3679 ac_header_preproc=yes
3681 no:yes:* )
3682 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3683 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3684 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3685 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3686 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3687 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3688 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3689 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3692 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3693 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3695 cat <<\_ASBOX
3696 ## ------------------------------------------ ##
3697 ## Report this to the AC_PACKAGE_NAME lists. ##
3698 ## ------------------------------------------ ##
3699 _ASBOX
3701 sed "s/^/$as_me: WARNING: /" >&2
3703 esac
3704 echo "$as_me:$LINENO: checking for $ac_header" >&5
3705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709 eval "$as_ac_Header=\$ac_header_preproc"
3711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3712 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3715 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3716 cat >>confdefs.h <<_ACEOF
3717 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3718 _ACEOF
3722 done
3725 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3726 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3727 if test "${ac_cv_c_const+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730 cat >conftest.$ac_ext <<_ACEOF
3731 /* confdefs.h. */
3732 _ACEOF
3733 cat confdefs.h >>conftest.$ac_ext
3734 cat >>conftest.$ac_ext <<_ACEOF
3735 /* end confdefs.h. */
3738 main ()
3740 /* FIXME: Include the comments suggested by Paul. */
3741 #ifndef __cplusplus
3742 /* Ultrix mips cc rejects this. */
3743 typedef int charset[2];
3744 const charset x;
3745 /* SunOS 4.1.1 cc rejects this. */
3746 char const *const *ccp;
3747 char **p;
3748 /* NEC SVR4.0.2 mips cc rejects this. */
3749 struct point {int x, y;};
3750 static struct point const zero = {0,0};
3751 /* AIX XL C 1.02.0.0 rejects this.
3752 It does not let you subtract one const X* pointer from another in
3753 an arm of an if-expression whose if-part is not a constant
3754 expression */
3755 const char *g = "string";
3756 ccp = &g + (g ? g-g : 0);
3757 /* HPUX 7.0 cc rejects these. */
3758 ++ccp;
3759 p = (char**) ccp;
3760 ccp = (char const *const *) p;
3761 { /* SCO 3.2v4 cc rejects this. */
3762 char *t;
3763 char const *s = 0 ? (char *) 0 : (char const *) 0;
3765 *t++ = 0;
3767 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3768 int x[] = {25, 17};
3769 const int *foo = &x[0];
3770 ++foo;
3772 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3773 typedef const int *iptr;
3774 iptr p = 0;
3775 ++p;
3777 { /* AIX XL C 1.02.0.0 rejects this saying
3778 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3779 struct s { int j; const int *ap[3]; };
3780 struct s *b; b->j = 5;
3782 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3783 const int foo = 10;
3785 #endif
3788 return 0;
3790 _ACEOF
3791 rm -f conftest.$ac_objext
3792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3793 (eval $ac_compile) 2>conftest.er1
3794 ac_status=$?
3795 grep -v '^ *+' conftest.er1 >conftest.err
3796 rm -f conftest.er1
3797 cat conftest.err >&5
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); } &&
3800 { ac_try='test -z "$ac_c_werror_flag"
3801 || test ! -s conftest.err'
3802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803 (eval $ac_try) 2>&5
3804 ac_status=$?
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); }; } &&
3807 { ac_try='test -s conftest.$ac_objext'
3808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3809 (eval $ac_try) 2>&5
3810 ac_status=$?
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); }; }; then
3813 ac_cv_c_const=yes
3814 else
3815 echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3818 ac_cv_c_const=no
3820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3822 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3823 echo "${ECHO_T}$ac_cv_c_const" >&6
3824 if test $ac_cv_c_const = no; then
3826 cat >>confdefs.h <<\_ACEOF
3827 #define const
3828 _ACEOF
3832 echo "$as_me:$LINENO: checking for size_t" >&5
3833 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3834 if test "${ac_cv_type_size_t+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 else
3837 cat >conftest.$ac_ext <<_ACEOF
3838 /* confdefs.h. */
3839 _ACEOF
3840 cat confdefs.h >>conftest.$ac_ext
3841 cat >>conftest.$ac_ext <<_ACEOF
3842 /* end confdefs.h. */
3843 $ac_includes_default
3845 main ()
3847 if ((size_t *) 0)
3848 return 0;
3849 if (sizeof (size_t))
3850 return 0;
3852 return 0;
3854 _ACEOF
3855 rm -f conftest.$ac_objext
3856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3857 (eval $ac_compile) 2>conftest.er1
3858 ac_status=$?
3859 grep -v '^ *+' conftest.er1 >conftest.err
3860 rm -f conftest.er1
3861 cat conftest.err >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } &&
3864 { ac_try='test -z "$ac_c_werror_flag"
3865 || test ! -s conftest.err'
3866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867 (eval $ac_try) 2>&5
3868 ac_status=$?
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); }; } &&
3871 { ac_try='test -s conftest.$ac_objext'
3872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873 (eval $ac_try) 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; }; then
3877 ac_cv_type_size_t=yes
3878 else
3879 echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3882 ac_cv_type_size_t=no
3884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3886 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3887 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3888 if test $ac_cv_type_size_t = yes; then
3890 else
3892 cat >>confdefs.h <<_ACEOF
3893 #define size_t unsigned
3894 _ACEOF
3906 for ac_func in memcmp memmem memrmem memrchr strdup strerror basename
3908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3909 echo "$as_me:$LINENO: checking for $ac_func" >&5
3910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3911 if eval "test \"\${$as_ac_var+set}\" = set"; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 else
3914 cat >conftest.$ac_ext <<_ACEOF
3915 /* confdefs.h. */
3916 _ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3922 #define $ac_func innocuous_$ac_func
3924 /* System header to define __stub macros and hopefully few prototypes,
3925 which can conflict with char $ac_func (); below.
3926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3927 <limits.h> exists even on freestanding compilers. */
3929 #ifdef __STDC__
3930 # include <limits.h>
3931 #else
3932 # include <assert.h>
3933 #endif
3935 #undef $ac_func
3937 /* Override any gcc2 internal prototype to avoid an error. */
3938 #ifdef __cplusplus
3939 extern "C"
3941 #endif
3942 /* We use char because int might match the return type of a gcc2
3943 builtin and then its argument prototype would still apply. */
3944 char $ac_func ();
3945 /* The GNU C library defines this for functions which it implements
3946 to always fail with ENOSYS. Some functions are actually named
3947 something starting with __ and the normal name is an alias. */
3948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3949 choke me
3950 #else
3951 char (*f) () = $ac_func;
3952 #endif
3953 #ifdef __cplusplus
3955 #endif
3958 main ()
3960 return f != $ac_func;
3962 return 0;
3964 _ACEOF
3965 rm -f conftest.$ac_objext conftest$ac_exeext
3966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3967 (eval $ac_link) 2>conftest.er1
3968 ac_status=$?
3969 grep -v '^ *+' conftest.er1 >conftest.err
3970 rm -f conftest.er1
3971 cat conftest.err >&5
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); } &&
3974 { ac_try='test -z "$ac_c_werror_flag"
3975 || test ! -s conftest.err'
3976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3977 (eval $ac_try) 2>&5
3978 ac_status=$?
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); }; } &&
3981 { ac_try='test -s conftest$ac_exeext'
3982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983 (eval $ac_try) 2>&5
3984 ac_status=$?
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); }; }; then
3987 eval "$as_ac_var=yes"
3988 else
3989 echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3992 eval "$as_ac_var=no"
3994 rm -f conftest.err conftest.$ac_objext \
3995 conftest$ac_exeext conftest.$ac_ext
3997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3998 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3999 if test `eval echo '${'$as_ac_var'}'` = yes; then
4000 cat >>confdefs.h <<_ACEOF
4001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4002 _ACEOF
4005 done
4007 if test $ac_cv_func_basename = no; then
4008 # basename not in the default libraries. See if it's elsewhere
4009 echo "$as_me:$LINENO: checking for basename in -lgen" >&5
4010 echo $ECHO_N "checking for basename in -lgen... $ECHO_C" >&6
4011 if test "${ac_cv_lib_gen_basename+set}" = set; then
4012 echo $ECHO_N "(cached) $ECHO_C" >&6
4013 else
4014 ac_check_lib_save_LIBS=$LIBS
4015 LIBS="-lgen $LIBS"
4016 cat >conftest.$ac_ext <<_ACEOF
4017 /* confdefs.h. */
4018 _ACEOF
4019 cat confdefs.h >>conftest.$ac_ext
4020 cat >>conftest.$ac_ext <<_ACEOF
4021 /* end confdefs.h. */
4023 /* Override any gcc2 internal prototype to avoid an error. */
4024 #ifdef __cplusplus
4025 extern "C"
4026 #endif
4027 /* We use char because int might match the return type of a gcc2
4028 builtin and then its argument prototype would still apply. */
4029 char basename ();
4031 main ()
4033 basename ();
4035 return 0;
4037 _ACEOF
4038 rm -f conftest.$ac_objext conftest$ac_exeext
4039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4040 (eval $ac_link) 2>conftest.er1
4041 ac_status=$?
4042 grep -v '^ *+' conftest.er1 >conftest.err
4043 rm -f conftest.er1
4044 cat conftest.err >&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } &&
4047 { ac_try='test -z "$ac_c_werror_flag"
4048 || test ! -s conftest.err'
4049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050 (eval $ac_try) 2>&5
4051 ac_status=$?
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); }; } &&
4054 { ac_try='test -s conftest$ac_exeext'
4055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4056 (eval $ac_try) 2>&5
4057 ac_status=$?
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); }; }; then
4060 ac_cv_lib_gen_basename=yes
4061 else
4062 echo "$as_me: failed program was:" >&5
4063 sed 's/^/| /' conftest.$ac_ext >&5
4065 ac_cv_lib_gen_basename=no
4067 rm -f conftest.err conftest.$ac_objext \
4068 conftest$ac_exeext conftest.$ac_ext
4069 LIBS=$ac_check_lib_save_LIBS
4071 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_basename" >&5
4072 echo "${ECHO_T}$ac_cv_lib_gen_basename" >&6
4073 if test $ac_cv_lib_gen_basename = yes; then
4074 cat >>confdefs.h <<\_ACEOF
4075 #define HAVE_BASENAME 1
4076 _ACEOF
4078 LIBS="$LIBS -lgen"
4083 echo "$as_me:$LINENO: checking whether dirname is declared" >&5
4084 echo $ECHO_N "checking whether dirname is declared... $ECHO_C" >&6
4085 if test "${ac_cv_have_decl_dirname+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4087 else
4088 cat >conftest.$ac_ext <<_ACEOF
4089 /* confdefs.h. */
4090 _ACEOF
4091 cat confdefs.h >>conftest.$ac_ext
4092 cat >>conftest.$ac_ext <<_ACEOF
4093 /* end confdefs.h. */
4094 $ac_includes_default
4095 #if HAVE_LIBGEN_H
4096 #include <libgen.h>
4097 #endif
4101 main ()
4103 #ifndef dirname
4104 char *p = (char *) dirname;
4105 #endif
4108 return 0;
4110 _ACEOF
4111 rm -f conftest.$ac_objext
4112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4113 (eval $ac_compile) 2>conftest.er1
4114 ac_status=$?
4115 grep -v '^ *+' conftest.er1 >conftest.err
4116 rm -f conftest.er1
4117 cat conftest.err >&5
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); } &&
4120 { ac_try='test -z "$ac_c_werror_flag"
4121 || test ! -s conftest.err'
4122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4123 (eval $ac_try) 2>&5
4124 ac_status=$?
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); }; } &&
4127 { ac_try='test -s conftest.$ac_objext'
4128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4129 (eval $ac_try) 2>&5
4130 ac_status=$?
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); }; }; then
4133 ac_cv_have_decl_dirname=yes
4134 else
4135 echo "$as_me: failed program was:" >&5
4136 sed 's/^/| /' conftest.$ac_ext >&5
4138 ac_cv_have_decl_dirname=no
4140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4142 echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirname" >&5
4143 echo "${ECHO_T}$ac_cv_have_decl_dirname" >&6
4144 if test $ac_cv_have_decl_dirname = yes; then
4146 cat >>confdefs.h <<_ACEOF
4147 #define HAVE_DECL_DIRNAME 1
4148 _ACEOF
4151 else
4152 cat >>confdefs.h <<_ACEOF
4153 #define HAVE_DECL_DIRNAME 0
4154 _ACEOF
4158 echo "$as_me:$LINENO: checking whether basename is declared" >&5
4159 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
4160 if test "${ac_cv_have_decl_basename+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163 cat >conftest.$ac_ext <<_ACEOF
4164 /* confdefs.h. */
4165 _ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h. */
4169 $ac_includes_default
4170 #if HAVE_LIBGEN_H
4171 #include <libgen.h>
4172 #endif
4176 main ()
4178 #ifndef basename
4179 char *p = (char *) basename;
4180 #endif
4183 return 0;
4185 _ACEOF
4186 rm -f conftest.$ac_objext
4187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4188 (eval $ac_compile) 2>conftest.er1
4189 ac_status=$?
4190 grep -v '^ *+' conftest.er1 >conftest.err
4191 rm -f conftest.er1
4192 cat conftest.err >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); } &&
4195 { ac_try='test -z "$ac_c_werror_flag"
4196 || test ! -s conftest.err'
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198 (eval $ac_try) 2>&5
4199 ac_status=$?
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; } &&
4202 { ac_try='test -s conftest.$ac_objext'
4203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204 (eval $ac_try) 2>&5
4205 ac_status=$?
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; }; then
4208 ac_cv_have_decl_basename=yes
4209 else
4210 echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4213 ac_cv_have_decl_basename=no
4215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4217 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
4218 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
4219 if test $ac_cv_have_decl_basename = yes; then
4221 cat >>confdefs.h <<_ACEOF
4222 #define HAVE_DECL_BASENAME 1
4223 _ACEOF
4226 else
4227 cat >>confdefs.h <<_ACEOF
4228 #define HAVE_DECL_BASENAME 0
4229 _ACEOF
4233 echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
4234 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6
4235 if test "${ac_cv_have_decl_memrchr+set}" = set; then
4236 echo $ECHO_N "(cached) $ECHO_C" >&6
4237 else
4238 cat >conftest.$ac_ext <<_ACEOF
4239 /* confdefs.h. */
4240 _ACEOF
4241 cat confdefs.h >>conftest.$ac_ext
4242 cat >>conftest.$ac_ext <<_ACEOF
4243 /* end confdefs.h. */
4244 $ac_includes_default
4245 #if HAVE_LIBGEN_H
4246 #include <libgen.h>
4247 #endif
4251 main ()
4253 #ifndef memrchr
4254 char *p = (char *) memrchr;
4255 #endif
4258 return 0;
4260 _ACEOF
4261 rm -f conftest.$ac_objext
4262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4263 (eval $ac_compile) 2>conftest.er1
4264 ac_status=$?
4265 grep -v '^ *+' conftest.er1 >conftest.err
4266 rm -f conftest.er1
4267 cat conftest.err >&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } &&
4270 { ac_try='test -z "$ac_c_werror_flag"
4271 || test ! -s conftest.err'
4272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273 (eval $ac_try) 2>&5
4274 ac_status=$?
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); }; } &&
4277 { ac_try='test -s conftest.$ac_objext'
4278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279 (eval $ac_try) 2>&5
4280 ac_status=$?
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
4283 ac_cv_have_decl_memrchr=yes
4284 else
4285 echo "$as_me: failed program was:" >&5
4286 sed 's/^/| /' conftest.$ac_ext >&5
4288 ac_cv_have_decl_memrchr=no
4290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4292 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
4293 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6
4294 if test $ac_cv_have_decl_memrchr = yes; then
4296 cat >>confdefs.h <<_ACEOF
4297 #define HAVE_DECL_MEMRCHR 1
4298 _ACEOF
4301 else
4302 cat >>confdefs.h <<_ACEOF
4303 #define HAVE_DECL_MEMRCHR 0
4304 _ACEOF
4308 echo "$as_me:$LINENO: checking whether memmem is declared" >&5
4309 echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
4310 if test "${ac_cv_have_decl_memmem+set}" = set; then
4311 echo $ECHO_N "(cached) $ECHO_C" >&6
4312 else
4313 cat >conftest.$ac_ext <<_ACEOF
4314 /* confdefs.h. */
4315 _ACEOF
4316 cat confdefs.h >>conftest.$ac_ext
4317 cat >>conftest.$ac_ext <<_ACEOF
4318 /* end confdefs.h. */
4319 $ac_includes_default
4320 #if HAVE_LIBGEN_H
4321 #include <libgen.h>
4322 #endif
4326 main ()
4328 #ifndef memmem
4329 char *p = (char *) memmem;
4330 #endif
4333 return 0;
4335 _ACEOF
4336 rm -f conftest.$ac_objext
4337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4338 (eval $ac_compile) 2>conftest.er1
4339 ac_status=$?
4340 grep -v '^ *+' conftest.er1 >conftest.err
4341 rm -f conftest.er1
4342 cat conftest.err >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } &&
4345 { ac_try='test -z "$ac_c_werror_flag"
4346 || test ! -s conftest.err'
4347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4348 (eval $ac_try) 2>&5
4349 ac_status=$?
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; } &&
4352 { ac_try='test -s conftest.$ac_objext'
4353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354 (eval $ac_try) 2>&5
4355 ac_status=$?
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; }; then
4358 ac_cv_have_decl_memmem=yes
4359 else
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4363 ac_cv_have_decl_memmem=no
4365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4367 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
4368 echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
4369 if test $ac_cv_have_decl_memmem = yes; then
4371 cat >>confdefs.h <<_ACEOF
4372 #define HAVE_DECL_MEMMEM 1
4373 _ACEOF
4376 else
4377 cat >>confdefs.h <<_ACEOF
4378 #define HAVE_DECL_MEMMEM 0
4379 _ACEOF
4383 echo "$as_me:$LINENO: checking whether memrmem is declared" >&5
4384 echo $ECHO_N "checking whether memrmem is declared... $ECHO_C" >&6
4385 if test "${ac_cv_have_decl_memrmem+set}" = set; then
4386 echo $ECHO_N "(cached) $ECHO_C" >&6
4387 else
4388 cat >conftest.$ac_ext <<_ACEOF
4389 /* confdefs.h. */
4390 _ACEOF
4391 cat confdefs.h >>conftest.$ac_ext
4392 cat >>conftest.$ac_ext <<_ACEOF
4393 /* end confdefs.h. */
4394 $ac_includes_default
4395 #if HAVE_LIBGEN_H
4396 #include <libgen.h>
4397 #endif
4401 main ()
4403 #ifndef memrmem
4404 char *p = (char *) memrmem;
4405 #endif
4408 return 0;
4410 _ACEOF
4411 rm -f conftest.$ac_objext
4412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4413 (eval $ac_compile) 2>conftest.er1
4414 ac_status=$?
4415 grep -v '^ *+' conftest.er1 >conftest.err
4416 rm -f conftest.er1
4417 cat conftest.err >&5
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); } &&
4420 { ac_try='test -z "$ac_c_werror_flag"
4421 || test ! -s conftest.err'
4422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423 (eval $ac_try) 2>&5
4424 ac_status=$?
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); }; } &&
4427 { ac_try='test -s conftest.$ac_objext'
4428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4429 (eval $ac_try) 2>&5
4430 ac_status=$?
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); }; }; then
4433 ac_cv_have_decl_memrmem=yes
4434 else
4435 echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4438 ac_cv_have_decl_memrmem=no
4440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4442 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrmem" >&5
4443 echo "${ECHO_T}$ac_cv_have_decl_memrmem" >&6
4444 if test $ac_cv_have_decl_memrmem = yes; then
4446 cat >>confdefs.h <<_ACEOF
4447 #define HAVE_DECL_MEMRMEM 1
4448 _ACEOF
4451 else
4452 cat >>confdefs.h <<_ACEOF
4453 #define HAVE_DECL_MEMRMEM 0
4454 _ACEOF
4461 ac_config_files="$ac_config_files Makefile Makefile-build"
4462 cat >confcache <<\_ACEOF
4463 # This file is a shell script that caches the results of configure
4464 # tests run on this system so they can be shared between configure
4465 # scripts and configure runs, see configure's option --config-cache.
4466 # It is not useful on other systems. If it contains results you don't
4467 # want to keep, you may remove or edit it.
4469 # config.status only pays attention to the cache file if you give it
4470 # the --recheck option to rerun configure.
4472 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4473 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4474 # following values.
4476 _ACEOF
4478 # The following way of writing the cache mishandles newlines in values,
4479 # but we know of no workaround that is simple, portable, and efficient.
4480 # So, don't put newlines in cache variables' values.
4481 # Ultrix sh set writes to stderr and can't be redirected directly,
4482 # and sets the high bit in the cache file unless we assign to the vars.
4484 (set) 2>&1 |
4485 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4486 *ac_space=\ *)
4487 # `set' does not quote correctly, so add quotes (double-quote
4488 # substitution turns \\\\ into \\, and sed turns \\ into \).
4489 sed -n \
4490 "s/'/'\\\\''/g;
4491 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4494 # `set' quotes correctly as required by POSIX, so do not add quotes.
4495 sed -n \
4496 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4498 esac;
4500 sed '
4501 t clear
4502 : clear
4503 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4504 t end
4505 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4506 : end' >>confcache
4507 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4508 if test -w $cache_file; then
4509 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4510 cat confcache >$cache_file
4511 else
4512 echo "not updating unwritable cache $cache_file"
4515 rm -f confcache
4517 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4518 # Let make expand exec_prefix.
4519 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4521 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4522 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4523 # trailing colons and then remove the whole line if VPATH becomes empty
4524 # (actually we leave an empty line to preserve line numbers).
4525 if test "x$srcdir" = x.; then
4526 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4527 s/:*\$(srcdir):*/:/;
4528 s/:*\${srcdir}:*/:/;
4529 s/:*@srcdir@:*/:/;
4530 s/^\([^=]*=[ ]*\):*/\1/;
4531 s/:*$//;
4532 s/^[^=]*=[ ]*$//;
4536 DEFS=-DHAVE_CONFIG_H
4538 ac_libobjs=
4539 ac_ltlibobjs=
4540 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4541 # 1. Remove the extension, and $U if already installed.
4542 ac_i=`echo "$ac_i" |
4543 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4544 # 2. Add them.
4545 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4546 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4547 done
4548 LIBOBJS=$ac_libobjs
4550 LTLIBOBJS=$ac_ltlibobjs
4554 : ${CONFIG_STATUS=./config.status}
4555 ac_clean_files_save=$ac_clean_files
4556 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4557 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4558 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4559 cat >$CONFIG_STATUS <<_ACEOF
4560 #! $SHELL
4561 # Generated by $as_me.
4562 # Run this file to recreate the current configuration.
4563 # Compiler output produced by configure, useful for debugging
4564 # configure, is in config.log if it exists.
4566 debug=false
4567 ac_cs_recheck=false
4568 ac_cs_silent=false
4569 SHELL=\${CONFIG_SHELL-$SHELL}
4570 _ACEOF
4572 cat >>$CONFIG_STATUS <<\_ACEOF
4573 ## --------------------- ##
4574 ## M4sh Initialization. ##
4575 ## --------------------- ##
4577 # Be Bourne compatible
4578 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4579 emulate sh
4580 NULLCMD=:
4581 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4582 # is contrary to our usage. Disable this feature.
4583 alias -g '${1+"$@"}'='"$@"'
4584 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4585 set -o posix
4587 DUALCASE=1; export DUALCASE # for MKS sh
4589 # Support unset when possible.
4590 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4591 as_unset=unset
4592 else
4593 as_unset=false
4597 # Work around bugs in pre-3.0 UWIN ksh.
4598 $as_unset ENV MAIL MAILPATH
4599 PS1='$ '
4600 PS2='> '
4601 PS4='+ '
4603 # NLS nuisances.
4604 for as_var in \
4605 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4606 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4607 LC_TELEPHONE LC_TIME
4609 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4610 eval $as_var=C; export $as_var
4611 else
4612 $as_unset $as_var
4614 done
4616 # Required to use basename.
4617 if expr a : '\(a\)' >/dev/null 2>&1; then
4618 as_expr=expr
4619 else
4620 as_expr=false
4623 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4624 as_basename=basename
4625 else
4626 as_basename=false
4630 # Name of the executable.
4631 as_me=`$as_basename "$0" ||
4632 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4633 X"$0" : 'X\(//\)$' \| \
4634 X"$0" : 'X\(/\)$' \| \
4635 . : '\(.\)' 2>/dev/null ||
4636 echo X/"$0" |
4637 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4638 /^X\/\(\/\/\)$/{ s//\1/; q; }
4639 /^X\/\(\/\).*/{ s//\1/; q; }
4640 s/.*/./; q'`
4643 # PATH needs CR, and LINENO needs CR and PATH.
4644 # Avoid depending upon Character Ranges.
4645 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4646 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4647 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4648 as_cr_digits='0123456789'
4649 as_cr_alnum=$as_cr_Letters$as_cr_digits
4651 # The user is always right.
4652 if test "${PATH_SEPARATOR+set}" != set; then
4653 echo "#! /bin/sh" >conf$$.sh
4654 echo "exit 0" >>conf$$.sh
4655 chmod +x conf$$.sh
4656 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4657 PATH_SEPARATOR=';'
4658 else
4659 PATH_SEPARATOR=:
4661 rm -f conf$$.sh
4665 as_lineno_1=$LINENO
4666 as_lineno_2=$LINENO
4667 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4668 test "x$as_lineno_1" != "x$as_lineno_2" &&
4669 test "x$as_lineno_3" = "x$as_lineno_2" || {
4670 # Find who we are. Look in the path if we contain no path at all
4671 # relative or not.
4672 case $0 in
4673 *[\\/]* ) as_myself=$0 ;;
4674 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 for as_dir in $PATH
4677 IFS=$as_save_IFS
4678 test -z "$as_dir" && as_dir=.
4679 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4680 done
4683 esac
4684 # We did not find ourselves, most probably we were run as `sh COMMAND'
4685 # in which case we are not to be found in the path.
4686 if test "x$as_myself" = x; then
4687 as_myself=$0
4689 if test ! -f "$as_myself"; then
4690 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4691 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4692 { (exit 1); exit 1; }; }
4694 case $CONFIG_SHELL in
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4699 IFS=$as_save_IFS
4700 test -z "$as_dir" && as_dir=.
4701 for as_base in sh bash ksh sh5; do
4702 case $as_dir in
4704 if ("$as_dir/$as_base" -c '
4705 as_lineno_1=$LINENO
4706 as_lineno_2=$LINENO
4707 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4708 test "x$as_lineno_1" != "x$as_lineno_2" &&
4709 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4710 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4711 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4712 CONFIG_SHELL=$as_dir/$as_base
4713 export CONFIG_SHELL
4714 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4715 fi;;
4716 esac
4717 done
4718 done
4720 esac
4722 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4723 # uniformly replaced by the line number. The first 'sed' inserts a
4724 # line-number line before each line; the second 'sed' does the real
4725 # work. The second script uses 'N' to pair each line-number line
4726 # with the numbered line, and appends trailing '-' during
4727 # substitution so that $LINENO is not a special case at line end.
4728 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4729 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4730 sed '=' <$as_myself |
4731 sed '
4733 s,$,-,
4734 : loop
4735 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4736 t loop
4737 s,-$,,
4738 s,^['$as_cr_digits']*\n,,
4739 ' >$as_me.lineno &&
4740 chmod +x $as_me.lineno ||
4741 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4742 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4743 { (exit 1); exit 1; }; }
4745 # Don't try to exec as it changes $[0], causing all sort of problems
4746 # (the dirname of $[0] is not the place where we might find the
4747 # original and so on. Autoconf is especially sensible to this).
4748 . ./$as_me.lineno
4749 # Exit status is that of the last command.
4750 exit
4754 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4755 *c*,-n*) ECHO_N= ECHO_C='
4756 ' ECHO_T=' ' ;;
4757 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4758 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4759 esac
4761 if expr a : '\(a\)' >/dev/null 2>&1; then
4762 as_expr=expr
4763 else
4764 as_expr=false
4767 rm -f conf$$ conf$$.exe conf$$.file
4768 echo >conf$$.file
4769 if ln -s conf$$.file conf$$ 2>/dev/null; then
4770 # We could just check for DJGPP; but this test a) works b) is more generic
4771 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4772 if test -f conf$$.exe; then
4773 # Don't use ln at all; we don't have any links
4774 as_ln_s='cp -p'
4775 else
4776 as_ln_s='ln -s'
4778 elif ln conf$$.file conf$$ 2>/dev/null; then
4779 as_ln_s=ln
4780 else
4781 as_ln_s='cp -p'
4783 rm -f conf$$ conf$$.exe conf$$.file
4785 if mkdir -p . 2>/dev/null; then
4786 as_mkdir_p=:
4787 else
4788 test -d ./-p && rmdir ./-p
4789 as_mkdir_p=false
4792 as_executable_p="test -f"
4794 # Sed expression to map a string onto a valid CPP name.
4795 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4797 # Sed expression to map a string onto a valid variable name.
4798 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4801 # IFS
4802 # We need space, tab and new line, in precisely that order.
4803 as_nl='
4805 IFS=" $as_nl"
4807 # CDPATH.
4808 $as_unset CDPATH
4810 exec 6>&1
4812 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4813 # report actual input values of CONFIG_FILES etc. instead of their
4814 # values after options handling. Logging --version etc. is OK.
4815 exec 5>>config.log
4817 echo
4818 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4819 ## Running $as_me. ##
4820 _ASBOX
4821 } >&5
4822 cat >&5 <<_CSEOF
4824 This file was extended by $as_me, which was
4825 generated by GNU Autoconf 2.59. Invocation command line was
4827 CONFIG_FILES = $CONFIG_FILES
4828 CONFIG_HEADERS = $CONFIG_HEADERS
4829 CONFIG_LINKS = $CONFIG_LINKS
4830 CONFIG_COMMANDS = $CONFIG_COMMANDS
4831 $ $0 $@
4833 _CSEOF
4834 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4835 echo >&5
4836 _ACEOF
4838 # Files that config.status was made for.
4839 if test -n "$ac_config_files"; then
4840 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4843 if test -n "$ac_config_headers"; then
4844 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4847 if test -n "$ac_config_links"; then
4848 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4851 if test -n "$ac_config_commands"; then
4852 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4855 cat >>$CONFIG_STATUS <<\_ACEOF
4857 ac_cs_usage="\
4858 \`$as_me' instantiates files from templates according to the
4859 current configuration.
4861 Usage: $0 [OPTIONS] [FILE]...
4863 -h, --help print this help, then exit
4864 -V, --version print version number, then exit
4865 -q, --quiet do not print progress messages
4866 -d, --debug don't remove temporary files
4867 --recheck update $as_me by reconfiguring in the same conditions
4868 --file=FILE[:TEMPLATE]
4869 instantiate the configuration file FILE
4870 --header=FILE[:TEMPLATE]
4871 instantiate the configuration header FILE
4873 Configuration files:
4874 $config_files
4876 Configuration headers:
4877 $config_headers
4879 Report bugs to <bug-autoconf@gnu.org>."
4880 _ACEOF
4882 cat >>$CONFIG_STATUS <<_ACEOF
4883 ac_cs_version="\\
4884 config.status
4885 configured by $0, generated by GNU Autoconf 2.59,
4886 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4888 Copyright (C) 2003 Free Software Foundation, Inc.
4889 This config.status script is free software; the Free Software Foundation
4890 gives unlimited permission to copy, distribute and modify it."
4891 srcdir=$srcdir
4892 INSTALL="$INSTALL"
4893 _ACEOF
4895 cat >>$CONFIG_STATUS <<\_ACEOF
4896 # If no file are specified by the user, then we need to provide default
4897 # value. By we need to know if files were specified by the user.
4898 ac_need_defaults=:
4899 while test $# != 0
4901 case $1 in
4902 --*=*)
4903 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4904 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4905 ac_shift=:
4908 ac_option=$1
4909 ac_optarg=$2
4910 ac_shift=shift
4912 *) # This is not an option, so the user has probably given explicit
4913 # arguments.
4914 ac_option=$1
4915 ac_need_defaults=false;;
4916 esac
4918 case $ac_option in
4919 # Handling of the options.
4920 _ACEOF
4921 cat >>$CONFIG_STATUS <<\_ACEOF
4922 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4923 ac_cs_recheck=: ;;
4924 --version | --vers* | -V )
4925 echo "$ac_cs_version"; exit 0 ;;
4926 --he | --h)
4927 # Conflict between --help and --header
4928 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4929 Try \`$0 --help' for more information." >&5
4930 echo "$as_me: error: ambiguous option: $1
4931 Try \`$0 --help' for more information." >&2;}
4932 { (exit 1); exit 1; }; };;
4933 --help | --hel | -h )
4934 echo "$ac_cs_usage"; exit 0 ;;
4935 --debug | --d* | -d )
4936 debug=: ;;
4937 --file | --fil | --fi | --f )
4938 $ac_shift
4939 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4940 ac_need_defaults=false;;
4941 --header | --heade | --head | --hea )
4942 $ac_shift
4943 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4944 ac_need_defaults=false;;
4945 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4946 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4947 ac_cs_silent=: ;;
4949 # This is an error.
4950 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4951 Try \`$0 --help' for more information." >&5
4952 echo "$as_me: error: unrecognized option: $1
4953 Try \`$0 --help' for more information." >&2;}
4954 { (exit 1); exit 1; }; } ;;
4956 *) ac_config_targets="$ac_config_targets $1" ;;
4958 esac
4959 shift
4960 done
4962 ac_configure_extra_args=
4964 if $ac_cs_silent; then
4965 exec 6>/dev/null
4966 ac_configure_extra_args="$ac_configure_extra_args --silent"
4969 _ACEOF
4970 cat >>$CONFIG_STATUS <<_ACEOF
4971 if \$ac_cs_recheck; then
4972 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4973 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4976 _ACEOF
4982 cat >>$CONFIG_STATUS <<\_ACEOF
4983 for ac_config_target in $ac_config_targets
4985 case "$ac_config_target" in
4986 # Handling of arguments.
4987 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4988 "Makefile-build" ) CONFIG_FILES="$CONFIG_FILES Makefile-build" ;;
4989 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4990 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4991 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4992 { (exit 1); exit 1; }; };;
4993 esac
4994 done
4996 # If the user did not use the arguments to specify the items to instantiate,
4997 # then the envvar interface is used. Set only those that are not.
4998 # We use the long form for the default assignment because of an extremely
4999 # bizarre bug on SunOS 4.1.3.
5000 if $ac_need_defaults; then
5001 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5002 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5005 # Have a temporary directory for convenience. Make it in the build tree
5006 # simply because there is no reason to put it here, and in addition,
5007 # creating and moving files from /tmp can sometimes cause problems.
5008 # Create a temporary directory, and hook for its removal unless debugging.
5009 $debug ||
5011 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5012 trap '{ (exit 1); exit 1; }' 1 2 13 15
5015 # Create a (secure) tmp directory for tmp files.
5018 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5019 test -n "$tmp" && test -d "$tmp"
5020 } ||
5022 tmp=./confstat$$-$RANDOM
5023 (umask 077 && mkdir $tmp)
5024 } ||
5026 echo "$me: cannot create a temporary directory in ." >&2
5027 { (exit 1); exit 1; }
5030 _ACEOF
5032 cat >>$CONFIG_STATUS <<_ACEOF
5035 # CONFIG_FILES section.
5038 # No need to generate the scripts if there are no CONFIG_FILES.
5039 # This happens for instance when ./config.status config.h
5040 if test -n "\$CONFIG_FILES"; then
5041 # Protect against being on the right side of a sed subst in config.status.
5042 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5043 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5044 s,@SHELL@,$SHELL,;t t
5045 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5046 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5047 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5048 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5049 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5050 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5051 s,@exec_prefix@,$exec_prefix,;t t
5052 s,@prefix@,$prefix,;t t
5053 s,@program_transform_name@,$program_transform_name,;t t
5054 s,@bindir@,$bindir,;t t
5055 s,@sbindir@,$sbindir,;t t
5056 s,@libexecdir@,$libexecdir,;t t
5057 s,@datadir@,$datadir,;t t
5058 s,@sysconfdir@,$sysconfdir,;t t
5059 s,@sharedstatedir@,$sharedstatedir,;t t
5060 s,@localstatedir@,$localstatedir,;t t
5061 s,@libdir@,$libdir,;t t
5062 s,@includedir@,$includedir,;t t
5063 s,@oldincludedir@,$oldincludedir,;t t
5064 s,@infodir@,$infodir,;t t
5065 s,@mandir@,$mandir,;t t
5066 s,@build_alias@,$build_alias,;t t
5067 s,@host_alias@,$host_alias,;t t
5068 s,@target_alias@,$target_alias,;t t
5069 s,@DEFS@,$DEFS,;t t
5070 s,@ECHO_C@,$ECHO_C,;t t
5071 s,@ECHO_N@,$ECHO_N,;t t
5072 s,@ECHO_T@,$ECHO_T,;t t
5073 s,@LIBS@,$LIBS,;t t
5074 s,@PRODUCT@,$PRODUCT,;t t
5075 s,@VERSION@,$VERSION,;t t
5076 s,@INCL@,$INCL,;t t
5077 s,@SRCS@,$SRCS,;t t
5078 s,@OTHER@,$OTHER,;t t
5079 s,@CC@,$CC,;t t
5080 s,@CFLAGS@,$CFLAGS,;t t
5081 s,@LDFLAGS@,$LDFLAGS,;t t
5082 s,@CPPFLAGS@,$CPPFLAGS,;t t
5083 s,@ac_ct_CC@,$ac_ct_CC,;t t
5084 s,@EXEEXT@,$EXEEXT,;t t
5085 s,@OBJEXT@,$OBJEXT,;t t
5086 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5087 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5088 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5089 s,@CPP@,$CPP,;t t
5090 s,@EGREP@,$EGREP,;t t
5091 s,@LIBOBJS@,$LIBOBJS,;t t
5092 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5093 CEOF
5095 _ACEOF
5097 cat >>$CONFIG_STATUS <<\_ACEOF
5098 # Split the substitutions into bite-sized pieces for seds with
5099 # small command number limits, like on Digital OSF/1 and HP-UX.
5100 ac_max_sed_lines=48
5101 ac_sed_frag=1 # Number of current file.
5102 ac_beg=1 # First line for current file.
5103 ac_end=$ac_max_sed_lines # Line after last line for current file.
5104 ac_more_lines=:
5105 ac_sed_cmds=
5106 while $ac_more_lines; do
5107 if test $ac_beg -gt 1; then
5108 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5109 else
5110 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5112 if test ! -s $tmp/subs.frag; then
5113 ac_more_lines=false
5114 else
5115 # The purpose of the label and of the branching condition is to
5116 # speed up the sed processing (if there are no `@' at all, there
5117 # is no need to browse any of the substitutions).
5118 # These are the two extra sed commands mentioned above.
5119 (echo ':t
5120 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5121 if test -z "$ac_sed_cmds"; then
5122 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5123 else
5124 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5126 ac_sed_frag=`expr $ac_sed_frag + 1`
5127 ac_beg=$ac_end
5128 ac_end=`expr $ac_end + $ac_max_sed_lines`
5130 done
5131 if test -z "$ac_sed_cmds"; then
5132 ac_sed_cmds=cat
5134 fi # test -n "$CONFIG_FILES"
5136 _ACEOF
5137 cat >>$CONFIG_STATUS <<\_ACEOF
5138 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5139 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5140 case $ac_file in
5141 - | *:- | *:-:* ) # input from stdin
5142 cat >$tmp/stdin
5143 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5144 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5145 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5146 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5147 * ) ac_file_in=$ac_file.in ;;
5148 esac
5150 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5151 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5152 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5153 X"$ac_file" : 'X\(//\)[^/]' \| \
5154 X"$ac_file" : 'X\(//\)$' \| \
5155 X"$ac_file" : 'X\(/\)' \| \
5156 . : '\(.\)' 2>/dev/null ||
5157 echo X"$ac_file" |
5158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5159 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5160 /^X\(\/\/\)$/{ s//\1/; q; }
5161 /^X\(\/\).*/{ s//\1/; q; }
5162 s/.*/./; q'`
5163 { if $as_mkdir_p; then
5164 mkdir -p "$ac_dir"
5165 else
5166 as_dir="$ac_dir"
5167 as_dirs=
5168 while test ! -d "$as_dir"; do
5169 as_dirs="$as_dir $as_dirs"
5170 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5171 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5172 X"$as_dir" : 'X\(//\)[^/]' \| \
5173 X"$as_dir" : 'X\(//\)$' \| \
5174 X"$as_dir" : 'X\(/\)' \| \
5175 . : '\(.\)' 2>/dev/null ||
5176 echo X"$as_dir" |
5177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5178 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5179 /^X\(\/\/\)$/{ s//\1/; q; }
5180 /^X\(\/\).*/{ s//\1/; q; }
5181 s/.*/./; q'`
5182 done
5183 test ! -n "$as_dirs" || mkdir $as_dirs
5184 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5185 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5186 { (exit 1); exit 1; }; }; }
5188 ac_builddir=.
5190 if test "$ac_dir" != .; then
5191 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5192 # A "../" for each directory in $ac_dir_suffix.
5193 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5194 else
5195 ac_dir_suffix= ac_top_builddir=
5198 case $srcdir in
5199 .) # No --srcdir option. We are building in place.
5200 ac_srcdir=.
5201 if test -z "$ac_top_builddir"; then
5202 ac_top_srcdir=.
5203 else
5204 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5205 fi ;;
5206 [\\/]* | ?:[\\/]* ) # Absolute path.
5207 ac_srcdir=$srcdir$ac_dir_suffix;
5208 ac_top_srcdir=$srcdir ;;
5209 *) # Relative path.
5210 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5211 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5212 esac
5214 # Do not use `cd foo && pwd` to compute absolute paths, because
5215 # the directories may not exist.
5216 case `pwd` in
5217 .) ac_abs_builddir="$ac_dir";;
5219 case "$ac_dir" in
5220 .) ac_abs_builddir=`pwd`;;
5221 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5222 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5223 esac;;
5224 esac
5225 case $ac_abs_builddir in
5226 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5228 case ${ac_top_builddir}. in
5229 .) ac_abs_top_builddir=$ac_abs_builddir;;
5230 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5231 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5232 esac;;
5233 esac
5234 case $ac_abs_builddir in
5235 .) ac_abs_srcdir=$ac_srcdir;;
5237 case $ac_srcdir in
5238 .) ac_abs_srcdir=$ac_abs_builddir;;
5239 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5240 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5241 esac;;
5242 esac
5243 case $ac_abs_builddir in
5244 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5246 case $ac_top_srcdir in
5247 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5248 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5249 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5250 esac;;
5251 esac
5254 case $INSTALL in
5255 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5256 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5257 esac
5259 if test x"$ac_file" != x-; then
5260 { echo "$as_me:$LINENO: creating $ac_file" >&5
5261 echo "$as_me: creating $ac_file" >&6;}
5262 rm -f "$ac_file"
5264 # Let's still pretend it is `configure' which instantiates (i.e., don't
5265 # use $as_me), people would be surprised to read:
5266 # /* config.h. Generated by config.status. */
5267 if test x"$ac_file" = x-; then
5268 configure_input=
5269 else
5270 configure_input="$ac_file. "
5272 configure_input=$configure_input"Generated from `echo $ac_file_in |
5273 sed 's,.*/,,'` by configure."
5275 # First look for the input files in the build tree, otherwise in the
5276 # src tree.
5277 ac_file_inputs=`IFS=:
5278 for f in $ac_file_in; do
5279 case $f in
5280 -) echo $tmp/stdin ;;
5281 [\\/$]*)
5282 # Absolute (can't be DOS-style, as IFS=:)
5283 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5284 echo "$as_me: error: cannot find input file: $f" >&2;}
5285 { (exit 1); exit 1; }; }
5286 echo "$f";;
5287 *) # Relative
5288 if test -f "$f"; then
5289 # Build tree
5290 echo "$f"
5291 elif test -f "$srcdir/$f"; then
5292 # Source tree
5293 echo "$srcdir/$f"
5294 else
5295 # /dev/null tree
5296 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5297 echo "$as_me: error: cannot find input file: $f" >&2;}
5298 { (exit 1); exit 1; }; }
5299 fi;;
5300 esac
5301 done` || { (exit 1); exit 1; }
5302 _ACEOF
5303 cat >>$CONFIG_STATUS <<_ACEOF
5304 sed "$ac_vpsub
5305 $extrasub
5306 _ACEOF
5307 cat >>$CONFIG_STATUS <<\_ACEOF
5309 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5310 s,@configure_input@,$configure_input,;t t
5311 s,@srcdir@,$ac_srcdir,;t t
5312 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5313 s,@top_srcdir@,$ac_top_srcdir,;t t
5314 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5315 s,@builddir@,$ac_builddir,;t t
5316 s,@abs_builddir@,$ac_abs_builddir,;t t
5317 s,@top_builddir@,$ac_top_builddir,;t t
5318 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5319 s,@INSTALL@,$ac_INSTALL,;t t
5320 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5321 rm -f $tmp/stdin
5322 if test x"$ac_file" != x-; then
5323 mv $tmp/out $ac_file
5324 else
5325 cat $tmp/out
5326 rm -f $tmp/out
5329 done
5330 _ACEOF
5331 cat >>$CONFIG_STATUS <<\_ACEOF
5334 # CONFIG_HEADER section.
5337 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5338 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5340 # ac_d sets the value in "#define NAME VALUE" lines.
5341 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5342 ac_dB='[ ].*$,\1#\2'
5343 ac_dC=' '
5344 ac_dD=',;t'
5345 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5346 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5347 ac_uB='$,\1#\2define\3'
5348 ac_uC=' '
5349 ac_uD=',;t'
5351 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5352 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5353 case $ac_file in
5354 - | *:- | *:-:* ) # input from stdin
5355 cat >$tmp/stdin
5356 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5357 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5358 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5359 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5360 * ) ac_file_in=$ac_file.in ;;
5361 esac
5363 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5364 echo "$as_me: creating $ac_file" >&6;}
5366 # First look for the input files in the build tree, otherwise in the
5367 # src tree.
5368 ac_file_inputs=`IFS=:
5369 for f in $ac_file_in; do
5370 case $f in
5371 -) echo $tmp/stdin ;;
5372 [\\/$]*)
5373 # Absolute (can't be DOS-style, as IFS=:)
5374 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5375 echo "$as_me: error: cannot find input file: $f" >&2;}
5376 { (exit 1); exit 1; }; }
5377 # Do quote $f, to prevent DOS paths from being IFS'd.
5378 echo "$f";;
5379 *) # Relative
5380 if test -f "$f"; then
5381 # Build tree
5382 echo "$f"
5383 elif test -f "$srcdir/$f"; then
5384 # Source tree
5385 echo "$srcdir/$f"
5386 else
5387 # /dev/null tree
5388 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5389 echo "$as_me: error: cannot find input file: $f" >&2;}
5390 { (exit 1); exit 1; }; }
5391 fi;;
5392 esac
5393 done` || { (exit 1); exit 1; }
5394 # Remove the trailing spaces.
5395 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5397 _ACEOF
5399 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5400 # `conftest.undefs', that substitutes the proper values into
5401 # config.h.in to produce config.h. The first handles `#define'
5402 # templates, and the second `#undef' templates.
5403 # And first: Protect against being on the right side of a sed subst in
5404 # config.status. Protect against being in an unquoted here document
5405 # in config.status.
5406 rm -f conftest.defines conftest.undefs
5407 # Using a here document instead of a string reduces the quoting nightmare.
5408 # Putting comments in sed scripts is not portable.
5410 # `end' is used to avoid that the second main sed command (meant for
5411 # 0-ary CPP macros) applies to n-ary macro definitions.
5412 # See the Autoconf documentation for `clear'.
5413 cat >confdef2sed.sed <<\_ACEOF
5414 s/[\\&,]/\\&/g
5415 s,[\\$`],\\&,g
5416 t clear
5417 : clear
5418 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5419 t end
5420 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5421 : end
5422 _ACEOF
5423 # If some macros were called several times there might be several times
5424 # the same #defines, which is useless. Nevertheless, we may not want to
5425 # sort them, since we want the *last* AC-DEFINE to be honored.
5426 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5427 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5428 rm -f confdef2sed.sed
5430 # This sed command replaces #undef with comments. This is necessary, for
5431 # example, in the case of _POSIX_SOURCE, which is predefined and required
5432 # on some systems where configure will not decide to define it.
5433 cat >>conftest.undefs <<\_ACEOF
5434 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5435 _ACEOF
5437 # Break up conftest.defines because some shells have a limit on the size
5438 # of here documents, and old seds have small limits too (100 cmds).
5439 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5440 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5441 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5442 echo ' :' >>$CONFIG_STATUS
5443 rm -f conftest.tail
5444 while grep . conftest.defines >/dev/null
5446 # Write a limited-size here document to $tmp/defines.sed.
5447 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5448 # Speed up: don't consider the non `#define' lines.
5449 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5450 # Work around the forget-to-reset-the-flag bug.
5451 echo 't clr' >>$CONFIG_STATUS
5452 echo ': clr' >>$CONFIG_STATUS
5453 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5454 echo 'CEOF
5455 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5456 rm -f $tmp/in
5457 mv $tmp/out $tmp/in
5458 ' >>$CONFIG_STATUS
5459 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5460 rm -f conftest.defines
5461 mv conftest.tail conftest.defines
5462 done
5463 rm -f conftest.defines
5464 echo ' fi # grep' >>$CONFIG_STATUS
5465 echo >>$CONFIG_STATUS
5467 # Break up conftest.undefs because some shells have a limit on the size
5468 # of here documents, and old seds have small limits too (100 cmds).
5469 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5470 rm -f conftest.tail
5471 while grep . conftest.undefs >/dev/null
5473 # Write a limited-size here document to $tmp/undefs.sed.
5474 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5475 # Speed up: don't consider the non `#undef'
5476 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5477 # Work around the forget-to-reset-the-flag bug.
5478 echo 't clr' >>$CONFIG_STATUS
5479 echo ': clr' >>$CONFIG_STATUS
5480 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5481 echo 'CEOF
5482 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5483 rm -f $tmp/in
5484 mv $tmp/out $tmp/in
5485 ' >>$CONFIG_STATUS
5486 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5487 rm -f conftest.undefs
5488 mv conftest.tail conftest.undefs
5489 done
5490 rm -f conftest.undefs
5492 cat >>$CONFIG_STATUS <<\_ACEOF
5493 # Let's still pretend it is `configure' which instantiates (i.e., don't
5494 # use $as_me), people would be surprised to read:
5495 # /* config.h. Generated by config.status. */
5496 if test x"$ac_file" = x-; then
5497 echo "/* Generated by configure. */" >$tmp/config.h
5498 else
5499 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5501 cat $tmp/in >>$tmp/config.h
5502 rm -f $tmp/in
5503 if test x"$ac_file" != x-; then
5504 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5505 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5506 echo "$as_me: $ac_file is unchanged" >&6;}
5507 else
5508 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5509 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5510 X"$ac_file" : 'X\(//\)[^/]' \| \
5511 X"$ac_file" : 'X\(//\)$' \| \
5512 X"$ac_file" : 'X\(/\)' \| \
5513 . : '\(.\)' 2>/dev/null ||
5514 echo X"$ac_file" |
5515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5516 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5517 /^X\(\/\/\)$/{ s//\1/; q; }
5518 /^X\(\/\).*/{ s//\1/; q; }
5519 s/.*/./; q'`
5520 { if $as_mkdir_p; then
5521 mkdir -p "$ac_dir"
5522 else
5523 as_dir="$ac_dir"
5524 as_dirs=
5525 while test ! -d "$as_dir"; do
5526 as_dirs="$as_dir $as_dirs"
5527 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5528 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5529 X"$as_dir" : 'X\(//\)[^/]' \| \
5530 X"$as_dir" : 'X\(//\)$' \| \
5531 X"$as_dir" : 'X\(/\)' \| \
5532 . : '\(.\)' 2>/dev/null ||
5533 echo X"$as_dir" |
5534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5535 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5536 /^X\(\/\/\)$/{ s//\1/; q; }
5537 /^X\(\/\).*/{ s//\1/; q; }
5538 s/.*/./; q'`
5539 done
5540 test ! -n "$as_dirs" || mkdir $as_dirs
5541 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5542 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5543 { (exit 1); exit 1; }; }; }
5545 rm -f $ac_file
5546 mv $tmp/config.h $ac_file
5548 else
5549 cat $tmp/config.h
5550 rm -f $tmp/config.h
5552 done
5553 _ACEOF
5555 cat >>$CONFIG_STATUS <<\_ACEOF
5557 { (exit 0); exit 0; }
5558 _ACEOF
5559 chmod +x $CONFIG_STATUS
5560 ac_clean_files=$ac_clean_files_save
5563 # configure is writing to config.log, and then calls config.status.
5564 # config.status does its own redirection, appending to config.log.
5565 # Unfortunately, on DOS this fails, as config.log is still kept open
5566 # by configure, so config.status won't be able to write to it; its
5567 # output is simply discarded. So we exec the FD to /dev/null,
5568 # effectively closing config.log, so it can be properly (re)opened and
5569 # appended to by config.status. When coming back to configure, we
5570 # need to make the FD available again.
5571 if test "$no_create" != yes; then
5572 ac_cs_success=:
5573 ac_config_status_args=
5574 test "$silent" = yes &&
5575 ac_config_status_args="$ac_config_status_args --quiet"
5576 exec 5>/dev/null
5577 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5578 exec 5>>config.log
5579 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5580 # would make configure fail if this is the last instruction.
5581 $ac_cs_success || { (exit 1); exit 1; }