- yay!! hopefully squashed the SIGSEGV bug in ScreenHandler
[bbkeys.git] / configure
blob5724541bcaf4bfc4b3f12d107fde07aa725487fc
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/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 -n "`(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 as_mkdir_p=false
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
237 IFS=" $as_nl"
239 # CDPATH.
240 $as_unset CDPATH
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248 exec 6>&1
251 # Initializations.
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
273 ac_unique_file="src/main.cpp"
274 ac_default_prefix=/usr/local
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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT regex_cmd CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CPP LN_S RANLIB ac_ct_RANLIB PERL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS 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_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
788 cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
798 Configuration:
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
809 _ACEOF
811 cat <<_ACEOF
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
814 [$ac_default_prefix]
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
816 [PREFIX]
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
838 _ACEOF
840 cat <<\_ACEOF
842 Program names:
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
847 X features:
848 --x-includes=DIR X include files are in DIR
849 --x-libraries=DIR X library files are in DIR
850 _ACEOF
853 if test -n "$ac_init_help"; then
855 cat <<\_ACEOF
857 Optional Features:
858 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
859 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing) to the casual installer
862 --enable-debug create debugging code default=no
863 --disable-dependency-tracking Speeds up one-time builds
864 --enable-dependency-tracking Do not reject slow dependency extractors
866 Optional Packages:
867 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
868 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
869 --with-x use the X Window System
870 --with-bt-includes blackbox library headers
871 --with-bt-lib blackbox library
873 Some influential environment variables:
874 CC C compiler command
875 CFLAGS C compiler flags
876 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
877 nonstandard directory <lib dir>
878 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
879 headers in a nonstandard directory <include dir>
880 CXX C++ compiler command
881 CXXFLAGS C++ compiler flags
882 CPP C preprocessor
884 Use these variables to override the choices made by `configure' or to help
885 it to find libraries and programs with nonstandard names/locations.
887 _ACEOF
890 if test "$ac_init_help" = "recursive"; then
891 # If there are subdirs, report their specific --help.
892 ac_popdir=`pwd`
893 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
894 test -d $ac_dir || continue
895 ac_builddir=.
897 if test "$ac_dir" != .; then
898 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
899 # A "../" for each directory in $ac_dir_suffix.
900 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
901 else
902 ac_dir_suffix= ac_top_builddir=
905 case $srcdir in
906 .) # No --srcdir option. We are building in place.
907 ac_srcdir=.
908 if test -z "$ac_top_builddir"; then
909 ac_top_srcdir=.
910 else
911 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
912 fi ;;
913 [\\/]* | ?:[\\/]* ) # Absolute path.
914 ac_srcdir=$srcdir$ac_dir_suffix;
915 ac_top_srcdir=$srcdir ;;
916 *) # Relative path.
917 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
918 ac_top_srcdir=$ac_top_builddir$srcdir ;;
919 esac
920 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
921 # absolute.
922 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
923 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
924 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
925 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
927 cd $ac_dir
928 # Check for guested configure; otherwise get Cygnus style configure.
929 if test -f $ac_srcdir/configure.gnu; then
930 echo
931 $SHELL $ac_srcdir/configure.gnu --help=recursive
932 elif test -f $ac_srcdir/configure; then
933 echo
934 $SHELL $ac_srcdir/configure --help=recursive
935 elif test -f $ac_srcdir/configure.ac ||
936 test -f $ac_srcdir/configure.in; then
937 echo
938 $ac_configure --help
939 else
940 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
942 cd $ac_popdir
943 done
946 test -n "$ac_init_help" && exit 0
947 if $ac_init_version; then
948 cat <<\_ACEOF
950 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
951 Free Software Foundation, Inc.
952 This configure script is free software; the Free Software Foundation
953 gives unlimited permission to copy, distribute and modify it.
954 _ACEOF
955 exit 0
957 exec 5>config.log
958 cat >&5 <<_ACEOF
959 This file contains any messages produced by compilers while
960 running configure, to aid debugging if configure makes a mistake.
962 It was created by $as_me, which was
963 generated by GNU Autoconf 2.57. Invocation command line was
965 $ $0 $@
967 _ACEOF
969 cat <<_ASUNAME
970 ## --------- ##
971 ## Platform. ##
972 ## --------- ##
974 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
975 uname -m = `(uname -m) 2>/dev/null || echo unknown`
976 uname -r = `(uname -r) 2>/dev/null || echo unknown`
977 uname -s = `(uname -s) 2>/dev/null || echo unknown`
978 uname -v = `(uname -v) 2>/dev/null || echo unknown`
980 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
981 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
983 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
984 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
985 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
986 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
987 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
988 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
989 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
991 _ASUNAME
993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
994 for as_dir in $PATH
996 IFS=$as_save_IFS
997 test -z "$as_dir" && as_dir=.
998 echo "PATH: $as_dir"
999 done
1001 } >&5
1003 cat >&5 <<_ACEOF
1006 ## ----------- ##
1007 ## Core tests. ##
1008 ## ----------- ##
1010 _ACEOF
1013 # Keep a trace of the command line.
1014 # Strip out --no-create and --no-recursion so they do not pile up.
1015 # Strip out --silent because we don't want to record it for future runs.
1016 # Also quote any args containing shell meta-characters.
1017 # Make two passes to allow for proper duplicate-argument suppression.
1018 ac_configure_args=
1019 ac_configure_args0=
1020 ac_configure_args1=
1021 ac_sep=
1022 ac_must_keep_next=false
1023 for ac_pass in 1 2
1025 for ac_arg
1027 case $ac_arg in
1028 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1029 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1030 | -silent | --silent | --silen | --sile | --sil)
1031 continue ;;
1032 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1033 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1034 esac
1035 case $ac_pass in
1036 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1038 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1039 if test $ac_must_keep_next = true; then
1040 ac_must_keep_next=false # Got value, back to normal.
1041 else
1042 case $ac_arg in
1043 *=* | --config-cache | -C | -disable-* | --disable-* \
1044 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1045 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1046 | -with-* | --with-* | -without-* | --without-* | --x)
1047 case "$ac_configure_args0 " in
1048 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1049 esac
1051 -* ) ac_must_keep_next=true ;;
1052 esac
1054 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1055 # Get rid of the leading space.
1056 ac_sep=" "
1058 esac
1059 done
1060 done
1061 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1062 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1064 # When interrupted or exit'd, cleanup temporary files, and complete
1065 # config.log. We remove comments because anyway the quotes in there
1066 # would cause problems or look ugly.
1067 # WARNING: Be sure not to use single quotes in there, as some shells,
1068 # such as our DU 5.0 friend, will then `close' the trap.
1069 trap 'exit_status=$?
1070 # Save into config.log some information that might help in debugging.
1072 echo
1074 cat <<\_ASBOX
1075 ## ---------------- ##
1076 ## Cache variables. ##
1077 ## ---------------- ##
1078 _ASBOX
1079 echo
1080 # The following way of writing the cache mishandles newlines in values,
1082 (set) 2>&1 |
1083 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1084 *ac_space=\ *)
1085 sed -n \
1086 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1087 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1090 sed -n \
1091 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1093 esac;
1095 echo
1097 cat <<\_ASBOX
1098 ## ----------------- ##
1099 ## Output variables. ##
1100 ## ----------------- ##
1101 _ASBOX
1102 echo
1103 for ac_var in $ac_subst_vars
1105 eval ac_val=$`echo $ac_var`
1106 echo "$ac_var='"'"'$ac_val'"'"'"
1107 done | sort
1108 echo
1110 if test -n "$ac_subst_files"; then
1111 cat <<\_ASBOX
1112 ## ------------- ##
1113 ## Output files. ##
1114 ## ------------- ##
1115 _ASBOX
1116 echo
1117 for ac_var in $ac_subst_files
1119 eval ac_val=$`echo $ac_var`
1120 echo "$ac_var='"'"'$ac_val'"'"'"
1121 done | sort
1122 echo
1125 if test -s confdefs.h; then
1126 cat <<\_ASBOX
1127 ## ----------- ##
1128 ## confdefs.h. ##
1129 ## ----------- ##
1130 _ASBOX
1131 echo
1132 sed "/^$/d" confdefs.h | sort
1133 echo
1135 test "$ac_signal" != 0 &&
1136 echo "$as_me: caught signal $ac_signal"
1137 echo "$as_me: exit $exit_status"
1138 } >&5
1139 rm -f core core.* *.core &&
1140 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1141 exit $exit_status
1143 for ac_signal in 1 2 13 15; do
1144 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1145 done
1146 ac_signal=0
1148 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1149 rm -rf conftest* confdefs.h
1150 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1151 echo >confdefs.h
1153 # Predefined preprocessor variables.
1155 cat >>confdefs.h <<_ACEOF
1156 #define PACKAGE_NAME "$PACKAGE_NAME"
1157 _ACEOF
1160 cat >>confdefs.h <<_ACEOF
1161 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1162 _ACEOF
1165 cat >>confdefs.h <<_ACEOF
1166 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1167 _ACEOF
1170 cat >>confdefs.h <<_ACEOF
1171 #define PACKAGE_STRING "$PACKAGE_STRING"
1172 _ACEOF
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1177 _ACEOF
1180 # Let the site file select an alternate cache file if it wants to.
1181 # Prefer explicitly selected file to automatically selected ones.
1182 if test -z "$CONFIG_SITE"; then
1183 if test "x$prefix" != xNONE; then
1184 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1185 else
1186 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1189 for ac_site_file in $CONFIG_SITE; do
1190 if test -r "$ac_site_file"; then
1191 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1192 echo "$as_me: loading site script $ac_site_file" >&6;}
1193 sed 's/^/| /' "$ac_site_file" >&5
1194 . "$ac_site_file"
1196 done
1198 if test -r "$cache_file"; then
1199 # Some versions of bash will fail to source /dev/null (special
1200 # files actually), so we avoid doing that.
1201 if test -f "$cache_file"; then
1202 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1203 echo "$as_me: loading cache $cache_file" >&6;}
1204 case $cache_file in
1205 [\\/]* | ?:[\\/]* ) . $cache_file;;
1206 *) . ./$cache_file;;
1207 esac
1209 else
1210 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1211 echo "$as_me: creating cache $cache_file" >&6;}
1212 >$cache_file
1215 # Check that the precious variables saved in the cache have kept the same
1216 # value.
1217 ac_cache_corrupted=false
1218 for ac_var in `(set) 2>&1 |
1219 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1220 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1221 eval ac_new_set=\$ac_env_${ac_var}_set
1222 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1223 eval ac_new_val="\$ac_env_${ac_var}_value"
1224 case $ac_old_set,$ac_new_set in
1225 set,)
1226 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1227 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1228 ac_cache_corrupted=: ;;
1229 ,set)
1230 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1231 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1232 ac_cache_corrupted=: ;;
1233 ,);;
1235 if test "x$ac_old_val" != "x$ac_new_val"; then
1236 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1237 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1238 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1239 echo "$as_me: former value: $ac_old_val" >&2;}
1240 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1241 echo "$as_me: current value: $ac_new_val" >&2;}
1242 ac_cache_corrupted=:
1243 fi;;
1244 esac
1245 # Pass precious variables to config.status.
1246 if test "$ac_new_set" = set; then
1247 case $ac_new_val in
1248 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1249 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1250 *) ac_arg=$ac_var=$ac_new_val ;;
1251 esac
1252 case " $ac_configure_args " in
1253 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1254 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1255 esac
1257 done
1258 if $ac_cache_corrupted; then
1259 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1260 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1261 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1262 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1263 { (exit 1); exit 1; }; }
1266 ac_ext=c
1267 ac_cpp='$CPP $CPPFLAGS'
1268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1290 am__api_version="1.7"
1291 ac_aux_dir=
1292 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1293 if test -f $ac_dir/install-sh; then
1294 ac_aux_dir=$ac_dir
1295 ac_install_sh="$ac_aux_dir/install-sh -c"
1296 break
1297 elif test -f $ac_dir/install.sh; then
1298 ac_aux_dir=$ac_dir
1299 ac_install_sh="$ac_aux_dir/install.sh -c"
1300 break
1301 elif test -f $ac_dir/shtool; then
1302 ac_aux_dir=$ac_dir
1303 ac_install_sh="$ac_aux_dir/shtool install -c"
1304 break
1306 done
1307 if test -z "$ac_aux_dir"; then
1308 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1309 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1310 { (exit 1); exit 1; }; }
1312 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1313 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1314 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1316 # Find a good install program. We prefer a C program (faster),
1317 # so one script is as good as another. But avoid the broken or
1318 # incompatible versions:
1319 # SysV /etc/install, /usr/sbin/install
1320 # SunOS /usr/etc/install
1321 # IRIX /sbin/install
1322 # AIX /bin/install
1323 # AmigaOS /C/install, which installs bootblocks on floppy discs
1324 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1325 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1326 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1327 # ./install, which can be erroneously created by make from ./install.sh.
1328 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1329 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1330 if test -z "$INSTALL"; then
1331 if test "${ac_cv_path_install+set}" = set; then
1332 echo $ECHO_N "(cached) $ECHO_C" >&6
1333 else
1334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1335 for as_dir in $PATH
1337 IFS=$as_save_IFS
1338 test -z "$as_dir" && as_dir=.
1339 # Account for people who put trailing slashes in PATH elements.
1340 case $as_dir/ in
1341 ./ | .// | /cC/* | \
1342 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1343 /usr/ucb/* ) ;;
1345 # OSF1 and SCO ODT 3.0 have their own names for install.
1346 # Don't use installbsd from OSF since it installs stuff as root
1347 # by default.
1348 for ac_prog in ginstall scoinst install; do
1349 for ac_exec_ext in '' $ac_executable_extensions; do
1350 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1351 if test $ac_prog = install &&
1352 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1353 # AIX install. It has an incompatible calling convention.
1355 elif test $ac_prog = install &&
1356 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1357 # program-specific install script used by HP pwplus--don't use.
1359 else
1360 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1361 break 3
1364 done
1365 done
1367 esac
1368 done
1372 if test "${ac_cv_path_install+set}" = set; then
1373 INSTALL=$ac_cv_path_install
1374 else
1375 # As a last resort, use the slow shell script. We don't cache a
1376 # path for INSTALL within a source directory, because that will
1377 # break other packages using the cache if that directory is
1378 # removed, or if the path is relative.
1379 INSTALL=$ac_install_sh
1382 echo "$as_me:$LINENO: result: $INSTALL" >&5
1383 echo "${ECHO_T}$INSTALL" >&6
1385 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1386 # It thinks the first close brace ends the variable substitution.
1387 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1389 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1391 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1393 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1394 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1395 # Just in case
1396 sleep 1
1397 echo timestamp > conftest.file
1398 # Do `set' in a subshell so we don't clobber the current shell's
1399 # arguments. Must try -L first in case configure is actually a
1400 # symlink; some systems play weird games with the mod time of symlinks
1401 # (eg FreeBSD returns the mod time of the symlink's containing
1402 # directory).
1403 if (
1404 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1405 if test "$*" = "X"; then
1406 # -L didn't work.
1407 set X `ls -t $srcdir/configure conftest.file`
1409 rm -f conftest.file
1410 if test "$*" != "X $srcdir/configure conftest.file" \
1411 && test "$*" != "X conftest.file $srcdir/configure"; then
1413 # If neither matched, then we have a broken ls. This can happen
1414 # if, for instance, CONFIG_SHELL is bash and it inherits a
1415 # broken ls alias from the environment. This has actually
1416 # happened. Such a system could not be considered "sane".
1417 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1418 alias in your environment" >&5
1419 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1420 alias in your environment" >&2;}
1421 { (exit 1); exit 1; }; }
1424 test "$2" = conftest.file
1426 then
1427 # Ok.
1429 else
1430 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1431 Check your system clock" >&5
1432 echo "$as_me: error: newly created file is older than distributed files!
1433 Check your system clock" >&2;}
1434 { (exit 1); exit 1; }; }
1436 echo "$as_me:$LINENO: result: yes" >&5
1437 echo "${ECHO_T}yes" >&6
1438 test "$program_prefix" != NONE &&
1439 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1440 # Use a double $ so make ignores it.
1441 test "$program_suffix" != NONE &&
1442 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1443 # Double any \ or $. echo might interpret backslashes.
1444 # By default was `s,x,x', remove it if useless.
1445 cat <<\_ACEOF >conftest.sed
1446 s/[\\$]/&&/g;s/;s,x,x,$//
1447 _ACEOF
1448 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1449 rm conftest.sed
1452 # expand $ac_aux_dir to an absolute path
1453 am_aux_dir=`cd $ac_aux_dir && pwd`
1455 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1456 # Use eval to expand $SHELL
1457 if eval "$MISSING --run true"; then
1458 am_missing_run="$MISSING --run "
1459 else
1460 am_missing_run=
1461 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1462 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1465 for ac_prog in gawk mawk nawk awk
1467 # Extract the first word of "$ac_prog", so it can be a program name with args.
1468 set dummy $ac_prog; ac_word=$2
1469 echo "$as_me:$LINENO: checking for $ac_word" >&5
1470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1471 if test "${ac_cv_prog_AWK+set}" = set; then
1472 echo $ECHO_N "(cached) $ECHO_C" >&6
1473 else
1474 if test -n "$AWK"; then
1475 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1476 else
1477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1478 for as_dir in $PATH
1480 IFS=$as_save_IFS
1481 test -z "$as_dir" && as_dir=.
1482 for ac_exec_ext in '' $ac_executable_extensions; do
1483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1484 ac_cv_prog_AWK="$ac_prog"
1485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1486 break 2
1488 done
1489 done
1493 AWK=$ac_cv_prog_AWK
1494 if test -n "$AWK"; then
1495 echo "$as_me:$LINENO: result: $AWK" >&5
1496 echo "${ECHO_T}$AWK" >&6
1497 else
1498 echo "$as_me:$LINENO: result: no" >&5
1499 echo "${ECHO_T}no" >&6
1502 test -n "$AWK" && break
1503 done
1505 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1506 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1507 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1508 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1510 else
1511 cat >conftest.make <<\_ACEOF
1512 all:
1513 @echo 'ac_maketemp="$(MAKE)"'
1514 _ACEOF
1515 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1516 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1517 if test -n "$ac_maketemp"; then
1518 eval ac_cv_prog_make_${ac_make}_set=yes
1519 else
1520 eval ac_cv_prog_make_${ac_make}_set=no
1522 rm -f conftest.make
1524 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1525 echo "$as_me:$LINENO: result: yes" >&5
1526 echo "${ECHO_T}yes" >&6
1527 SET_MAKE=
1528 else
1529 echo "$as_me:$LINENO: result: no" >&5
1530 echo "${ECHO_T}no" >&6
1531 SET_MAKE="MAKE=${MAKE-make}"
1534 # test to see if srcdir already configured
1535 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1536 test -f $srcdir/config.status; then
1537 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1538 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1539 { (exit 1); exit 1; }; }
1542 # test whether we have cygpath
1543 if test -z "$CYGPATH_W"; then
1544 if (cygpath --version) >/dev/null 2>/dev/null; then
1545 CYGPATH_W='cygpath -w'
1546 else
1547 CYGPATH_W=echo
1552 # Define the identity of the package.
1553 PACKAGE=bbkeys
1554 VERSION=0.9.0pre
1557 cat >>confdefs.h <<_ACEOF
1558 #define PACKAGE "$PACKAGE"
1559 _ACEOF
1562 cat >>confdefs.h <<_ACEOF
1563 #define VERSION "$VERSION"
1564 _ACEOF
1566 # Some tools Automake needs.
1568 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1571 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1574 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1577 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1580 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1583 AMTAR=${AMTAR-"${am_missing_run}tar"}
1585 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1587 # Installed binaries are usually stripped using `strip' when the user
1588 # run `make install-strip'. However `strip' might not be the right
1589 # tool to use in cross-compilation environments, therefore Automake
1590 # will honor the `STRIP' environment variable to overrule this program.
1591 if test "$cross_compiling" != no; then
1592 if test -n "$ac_tool_prefix"; then
1593 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1594 set dummy ${ac_tool_prefix}strip; ac_word=$2
1595 echo "$as_me:$LINENO: checking for $ac_word" >&5
1596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1597 if test "${ac_cv_prog_STRIP+set}" = set; then
1598 echo $ECHO_N "(cached) $ECHO_C" >&6
1599 else
1600 if test -n "$STRIP"; then
1601 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1602 else
1603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1604 for as_dir in $PATH
1606 IFS=$as_save_IFS
1607 test -z "$as_dir" && as_dir=.
1608 for ac_exec_ext in '' $ac_executable_extensions; do
1609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1610 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1612 break 2
1614 done
1615 done
1619 STRIP=$ac_cv_prog_STRIP
1620 if test -n "$STRIP"; then
1621 echo "$as_me:$LINENO: result: $STRIP" >&5
1622 echo "${ECHO_T}$STRIP" >&6
1623 else
1624 echo "$as_me:$LINENO: result: no" >&5
1625 echo "${ECHO_T}no" >&6
1629 if test -z "$ac_cv_prog_STRIP"; then
1630 ac_ct_STRIP=$STRIP
1631 # Extract the first word of "strip", so it can be a program name with args.
1632 set dummy strip; ac_word=$2
1633 echo "$as_me:$LINENO: checking for $ac_word" >&5
1634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1637 else
1638 if test -n "$ac_ct_STRIP"; then
1639 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1640 else
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642 for as_dir in $PATH
1644 IFS=$as_save_IFS
1645 test -z "$as_dir" && as_dir=.
1646 for ac_exec_ext in '' $ac_executable_extensions; do
1647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1648 ac_cv_prog_ac_ct_STRIP="strip"
1649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1650 break 2
1652 done
1653 done
1655 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1658 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1659 if test -n "$ac_ct_STRIP"; then
1660 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1661 echo "${ECHO_T}$ac_ct_STRIP" >&6
1662 else
1663 echo "$as_me:$LINENO: result: no" >&5
1664 echo "${ECHO_T}no" >&6
1667 STRIP=$ac_ct_STRIP
1668 else
1669 STRIP="$ac_cv_prog_STRIP"
1673 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1675 # We need awk for the "check" target. The system "awk" is bad on
1676 # some platforms.
1680 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1681 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1682 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1683 if test "${enable_maintainer_mode+set}" = set; then
1684 enableval="$enable_maintainer_mode"
1685 USE_MAINTAINER_MODE=$enableval
1686 else
1687 USE_MAINTAINER_MODE=no
1689 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1690 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1693 if test $USE_MAINTAINER_MODE = yes; then
1694 MAINTAINER_MODE_TRUE=
1695 MAINTAINER_MODE_FALSE='#'
1696 else
1697 MAINTAINER_MODE_TRUE='#'
1698 MAINTAINER_MODE_FALSE=
1701 MAINT=$MAINTAINER_MODE_TRUE
1706 for ac_prog in sed
1708 # Extract the first word of "$ac_prog", so it can be a program name with args.
1709 set dummy $ac_prog; ac_word=$2
1710 echo "$as_me:$LINENO: checking for $ac_word" >&5
1711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1712 if test "${ac_cv_prog_regex_cmd+set}" = set; then
1713 echo $ECHO_N "(cached) $ECHO_C" >&6
1714 else
1715 if test -n "$regex_cmd"; then
1716 ac_cv_prog_regex_cmd="$regex_cmd" # Let the user override the test.
1717 else
1718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719 for as_dir in $PATH
1721 IFS=$as_save_IFS
1722 test -z "$as_dir" && as_dir=.
1723 for ac_exec_ext in '' $ac_executable_extensions; do
1724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1725 ac_cv_prog_regex_cmd="$ac_prog"
1726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1727 break 2
1729 done
1730 done
1734 regex_cmd=$ac_cv_prog_regex_cmd
1735 if test -n "$regex_cmd"; then
1736 echo "$as_me:$LINENO: result: $regex_cmd" >&5
1737 echo "${ECHO_T}$regex_cmd" >&6
1738 else
1739 echo "$as_me:$LINENO: result: no" >&5
1740 echo "${ECHO_T}no" >&6
1743 test -n "$regex_cmd" && break
1744 done
1746 if test x$regex_cmd = "x"; then
1747 { { echo "$as_me:$LINENO: error: error. sed is required to build the default bbtoolsrc file." >&5
1748 echo "$as_me: error: error. sed is required to build the default bbtoolsrc file." >&2;}
1749 { (exit 1); exit 1; }; }
1756 # Check whether --enable-debug or --disable-debug was given.
1757 if test "${enable_debug+set}" = set; then
1758 enableval="$enable_debug"
1760 if test $enableval = "no";
1761 then
1762 _CFLAGS="-DNDEBUG"
1763 _CXXFLAGS="-DNDEBUG"
1764 _LDFLAGS=""
1765 case $host_os in
1766 *solaris*)
1767 _CFLAGS="$_CFLAGS -O"
1768 _CXXFLAGS="$_CXXFLAGS -O"
1769 _LDFLAGS="$_LDFLAGS -z muldefs"
1772 _CFLAGS="$_CFLAGS -O2"
1773 _CXXFLAGS="$_CXXFLAGS -O2"
1775 esac
1776 test "$CFLAGS" = "" && CFLAGS=$_CFLAGS
1777 test "$CXXFLAGS" = "" && CXXFLAGS=$_CXXFLAGS
1778 test "$LDFLAGS" = "" && LDFLAGS=$_LDFLAGS
1780 else
1781 _CFLAGS="-g -Wall -DDEBUG"
1782 _CXXFLAGS="-g -Wall -DDEBUG"
1783 _LDFLAGS=""
1784 case $host_os in
1785 *solaris*)
1786 _LDFLAGS="$_LDFLAGS -z muldefs"
1788 esac
1789 test "$CFLAGS" = "" && CFLAGS=$_CFLAGS
1790 test "$CXXFLAGS" = "" && CXXFLAGS=$_CXXFLAGS
1791 test "$LDFLAGS" = "" && LDFLAGS=$_LDFLAGS
1795 else
1797 _CFLAGS="-DNDEBUG"
1798 _CXXFLAGS="-DNDEBUG"
1799 _LDFLAGS=""
1800 case $host_os in
1801 *solaris*)
1802 _CFLAGS="$_CFLAGS -O"
1803 _CXXFLAGS="$_CXXFLAGS -O"
1804 _LDFLAGS="$_LDFLAGS -z muldefs"
1807 _CFLAGS="$_CFLAGS -O2"
1808 _CXXFLAGS="$_CXXFLAGS -O2"
1810 esac
1811 test "$CFLAGS" = "" && CFLAGS=$_CFLAGS
1812 test "$CXXFLAGS" = "" && CXXFLAGS=$_CXXFLAGS
1813 test "$LDFLAGS" = "" && LDFLAGS=$_LDFLAGS
1817 ac_ext=c
1818 ac_cpp='$CPP $CPPFLAGS'
1819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1822 if test -n "$ac_tool_prefix"; then
1823 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1824 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1825 echo "$as_me:$LINENO: checking for $ac_word" >&5
1826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1827 if test "${ac_cv_prog_CC+set}" = set; then
1828 echo $ECHO_N "(cached) $ECHO_C" >&6
1829 else
1830 if test -n "$CC"; then
1831 ac_cv_prog_CC="$CC" # Let the user override the test.
1832 else
1833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1834 for as_dir in $PATH
1836 IFS=$as_save_IFS
1837 test -z "$as_dir" && as_dir=.
1838 for ac_exec_ext in '' $ac_executable_extensions; do
1839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1840 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1842 break 2
1844 done
1845 done
1849 CC=$ac_cv_prog_CC
1850 if test -n "$CC"; then
1851 echo "$as_me:$LINENO: result: $CC" >&5
1852 echo "${ECHO_T}$CC" >&6
1853 else
1854 echo "$as_me:$LINENO: result: no" >&5
1855 echo "${ECHO_T}no" >&6
1859 if test -z "$ac_cv_prog_CC"; then
1860 ac_ct_CC=$CC
1861 # Extract the first word of "gcc", so it can be a program name with args.
1862 set dummy gcc; ac_word=$2
1863 echo "$as_me:$LINENO: checking for $ac_word" >&5
1864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1865 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1866 echo $ECHO_N "(cached) $ECHO_C" >&6
1867 else
1868 if test -n "$ac_ct_CC"; then
1869 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1870 else
1871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872 for as_dir in $PATH
1874 IFS=$as_save_IFS
1875 test -z "$as_dir" && as_dir=.
1876 for ac_exec_ext in '' $ac_executable_extensions; do
1877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1878 ac_cv_prog_ac_ct_CC="gcc"
1879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1880 break 2
1882 done
1883 done
1887 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1888 if test -n "$ac_ct_CC"; then
1889 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1890 echo "${ECHO_T}$ac_ct_CC" >&6
1891 else
1892 echo "$as_me:$LINENO: result: no" >&5
1893 echo "${ECHO_T}no" >&6
1896 CC=$ac_ct_CC
1897 else
1898 CC="$ac_cv_prog_CC"
1901 if test -z "$CC"; then
1902 if test -n "$ac_tool_prefix"; then
1903 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1904 set dummy ${ac_tool_prefix}cc; ac_word=$2
1905 echo "$as_me:$LINENO: checking for $ac_word" >&5
1906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1907 if test "${ac_cv_prog_CC+set}" = set; then
1908 echo $ECHO_N "(cached) $ECHO_C" >&6
1909 else
1910 if test -n "$CC"; then
1911 ac_cv_prog_CC="$CC" # Let the user override the test.
1912 else
1913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914 for as_dir in $PATH
1916 IFS=$as_save_IFS
1917 test -z "$as_dir" && as_dir=.
1918 for ac_exec_ext in '' $ac_executable_extensions; do
1919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1920 ac_cv_prog_CC="${ac_tool_prefix}cc"
1921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1922 break 2
1924 done
1925 done
1929 CC=$ac_cv_prog_CC
1930 if test -n "$CC"; then
1931 echo "$as_me:$LINENO: result: $CC" >&5
1932 echo "${ECHO_T}$CC" >&6
1933 else
1934 echo "$as_me:$LINENO: result: no" >&5
1935 echo "${ECHO_T}no" >&6
1939 if test -z "$ac_cv_prog_CC"; then
1940 ac_ct_CC=$CC
1941 # Extract the first word of "cc", so it can be a program name with args.
1942 set dummy cc; ac_word=$2
1943 echo "$as_me:$LINENO: checking for $ac_word" >&5
1944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1945 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1947 else
1948 if test -n "$ac_ct_CC"; then
1949 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1950 else
1951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952 for as_dir in $PATH
1954 IFS=$as_save_IFS
1955 test -z "$as_dir" && as_dir=.
1956 for ac_exec_ext in '' $ac_executable_extensions; do
1957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1958 ac_cv_prog_ac_ct_CC="cc"
1959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1960 break 2
1962 done
1963 done
1967 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1968 if test -n "$ac_ct_CC"; then
1969 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1970 echo "${ECHO_T}$ac_ct_CC" >&6
1971 else
1972 echo "$as_me:$LINENO: result: no" >&5
1973 echo "${ECHO_T}no" >&6
1976 CC=$ac_ct_CC
1977 else
1978 CC="$ac_cv_prog_CC"
1982 if test -z "$CC"; then
1983 # Extract the first word of "cc", so it can be a program name with args.
1984 set dummy cc; ac_word=$2
1985 echo "$as_me:$LINENO: checking for $ac_word" >&5
1986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1987 if test "${ac_cv_prog_CC+set}" = set; then
1988 echo $ECHO_N "(cached) $ECHO_C" >&6
1989 else
1990 if test -n "$CC"; then
1991 ac_cv_prog_CC="$CC" # Let the user override the test.
1992 else
1993 ac_prog_rejected=no
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 for as_dir in $PATH
1997 IFS=$as_save_IFS
1998 test -z "$as_dir" && as_dir=.
1999 for ac_exec_ext in '' $ac_executable_extensions; do
2000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2001 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2002 ac_prog_rejected=yes
2003 continue
2005 ac_cv_prog_CC="cc"
2006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2007 break 2
2009 done
2010 done
2012 if test $ac_prog_rejected = yes; then
2013 # We found a bogon in the path, so make sure we never use it.
2014 set dummy $ac_cv_prog_CC
2015 shift
2016 if test $# != 0; then
2017 # We chose a different compiler from the bogus one.
2018 # However, it has the same basename, so the bogon will be chosen
2019 # first if we set CC to just the basename; use the full file name.
2020 shift
2021 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2026 CC=$ac_cv_prog_CC
2027 if test -n "$CC"; then
2028 echo "$as_me:$LINENO: result: $CC" >&5
2029 echo "${ECHO_T}$CC" >&6
2030 else
2031 echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6
2036 if test -z "$CC"; then
2037 if test -n "$ac_tool_prefix"; then
2038 for ac_prog in cl
2040 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2041 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2042 echo "$as_me:$LINENO: checking for $ac_word" >&5
2043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2044 if test "${ac_cv_prog_CC+set}" = set; then
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
2046 else
2047 if test -n "$CC"; then
2048 ac_cv_prog_CC="$CC" # Let the user override the test.
2049 else
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 for as_dir in $PATH
2053 IFS=$as_save_IFS
2054 test -z "$as_dir" && as_dir=.
2055 for ac_exec_ext in '' $ac_executable_extensions; do
2056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2057 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2059 break 2
2061 done
2062 done
2066 CC=$ac_cv_prog_CC
2067 if test -n "$CC"; then
2068 echo "$as_me:$LINENO: result: $CC" >&5
2069 echo "${ECHO_T}$CC" >&6
2070 else
2071 echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6
2075 test -n "$CC" && break
2076 done
2078 if test -z "$CC"; then
2079 ac_ct_CC=$CC
2080 for ac_prog in cl
2082 # Extract the first word of "$ac_prog", so it can be a program name with args.
2083 set dummy $ac_prog; ac_word=$2
2084 echo "$as_me:$LINENO: checking for $ac_word" >&5
2085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2086 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2087 echo $ECHO_N "(cached) $ECHO_C" >&6
2088 else
2089 if test -n "$ac_ct_CC"; then
2090 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2091 else
2092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2093 for as_dir in $PATH
2095 IFS=$as_save_IFS
2096 test -z "$as_dir" && as_dir=.
2097 for ac_exec_ext in '' $ac_executable_extensions; do
2098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2099 ac_cv_prog_ac_ct_CC="$ac_prog"
2100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2101 break 2
2103 done
2104 done
2108 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2109 if test -n "$ac_ct_CC"; then
2110 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2111 echo "${ECHO_T}$ac_ct_CC" >&6
2112 else
2113 echo "$as_me:$LINENO: result: no" >&5
2114 echo "${ECHO_T}no" >&6
2117 test -n "$ac_ct_CC" && break
2118 done
2120 CC=$ac_ct_CC
2126 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2127 See \`config.log' for more details." >&5
2128 echo "$as_me: error: no acceptable C compiler found in \$PATH
2129 See \`config.log' for more details." >&2;}
2130 { (exit 1); exit 1; }; }
2132 # Provide some information about the compiler.
2133 echo "$as_me:$LINENO:" \
2134 "checking for C compiler version" >&5
2135 ac_compiler=`set X $ac_compile; echo $2`
2136 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2137 (eval $ac_compiler --version </dev/null >&5) 2>&5
2138 ac_status=$?
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); }
2141 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2142 (eval $ac_compiler -v </dev/null >&5) 2>&5
2143 ac_status=$?
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }
2146 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2147 (eval $ac_compiler -V </dev/null >&5) 2>&5
2148 ac_status=$?
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }
2152 cat >conftest.$ac_ext <<_ACEOF
2153 #line $LINENO "configure"
2154 /* confdefs.h. */
2155 _ACEOF
2156 cat confdefs.h >>conftest.$ac_ext
2157 cat >>conftest.$ac_ext <<_ACEOF
2158 /* end confdefs.h. */
2161 main ()
2165 return 0;
2167 _ACEOF
2168 ac_clean_files_save=$ac_clean_files
2169 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2170 # Try to create an executable without -o first, disregard a.out.
2171 # It will help us diagnose broken compilers, and finding out an intuition
2172 # of exeext.
2173 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2174 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2175 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2176 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2177 (eval $ac_link_default) 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; then
2181 # Find the output, starting from the most likely. This scheme is
2182 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2183 # resort.
2185 # Be careful to initialize this variable, since it used to be cached.
2186 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2187 ac_cv_exeext=
2188 # b.out is created by i960 compilers.
2189 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2191 test -f "$ac_file" || continue
2192 case $ac_file in
2193 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2195 conftest.$ac_ext )
2196 # This is the source file.
2198 [ab].out )
2199 # We found the default executable, but exeext='' is most
2200 # certainly right.
2201 break;;
2202 *.* )
2203 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2204 # FIXME: I believe we export ac_cv_exeext for Libtool,
2205 # but it would be cool to find out if it's true. Does anybody
2206 # maintain Libtool? --akim.
2207 export ac_cv_exeext
2208 break;;
2210 break;;
2211 esac
2212 done
2213 else
2214 echo "$as_me: failed program was:" >&5
2215 sed 's/^/| /' conftest.$ac_ext >&5
2217 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2218 See \`config.log' for more details." >&5
2219 echo "$as_me: error: C compiler cannot create executables
2220 See \`config.log' for more details." >&2;}
2221 { (exit 77); exit 77; }; }
2224 ac_exeext=$ac_cv_exeext
2225 echo "$as_me:$LINENO: result: $ac_file" >&5
2226 echo "${ECHO_T}$ac_file" >&6
2228 # Check the compiler produces executables we can run. If not, either
2229 # the compiler is broken, or we cross compile.
2230 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2231 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2232 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2233 # If not cross compiling, check that we can run a simple program.
2234 if test "$cross_compiling" != yes; then
2235 if { ac_try='./$ac_file'
2236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 (eval $ac_try) 2>&5
2238 ac_status=$?
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; }; then
2241 cross_compiling=no
2242 else
2243 if test "$cross_compiling" = maybe; then
2244 cross_compiling=yes
2245 else
2246 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2247 If you meant to cross compile, use \`--host'.
2248 See \`config.log' for more details." >&5
2249 echo "$as_me: error: cannot run C compiled programs.
2250 If you meant to cross compile, use \`--host'.
2251 See \`config.log' for more details." >&2;}
2252 { (exit 1); exit 1; }; }
2256 echo "$as_me:$LINENO: result: yes" >&5
2257 echo "${ECHO_T}yes" >&6
2259 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2260 ac_clean_files=$ac_clean_files_save
2261 # Check the compiler produces executables we can run. If not, either
2262 # the compiler is broken, or we cross compile.
2263 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2264 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2265 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2266 echo "${ECHO_T}$cross_compiling" >&6
2268 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2269 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2271 (eval $ac_link) 2>&5
2272 ac_status=$?
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; then
2275 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2276 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2277 # work properly (i.e., refer to `conftest.exe'), while it won't with
2278 # `rm'.
2279 for ac_file in conftest.exe conftest conftest.*; do
2280 test -f "$ac_file" || continue
2281 case $ac_file in
2282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2283 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2284 export ac_cv_exeext
2285 break;;
2286 * ) break;;
2287 esac
2288 done
2289 else
2290 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2291 See \`config.log' for more details." >&5
2292 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2293 See \`config.log' for more details." >&2;}
2294 { (exit 1); exit 1; }; }
2297 rm -f conftest$ac_cv_exeext
2298 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2299 echo "${ECHO_T}$ac_cv_exeext" >&6
2301 rm -f conftest.$ac_ext
2302 EXEEXT=$ac_cv_exeext
2303 ac_exeext=$EXEEXT
2304 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2305 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2306 if test "${ac_cv_objext+set}" = set; then
2307 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 else
2309 cat >conftest.$ac_ext <<_ACEOF
2310 #line $LINENO "configure"
2311 /* confdefs.h. */
2312 _ACEOF
2313 cat confdefs.h >>conftest.$ac_ext
2314 cat >>conftest.$ac_ext <<_ACEOF
2315 /* end confdefs.h. */
2318 main ()
2322 return 0;
2324 _ACEOF
2325 rm -f conftest.o conftest.obj
2326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2327 (eval $ac_compile) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; then
2331 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2332 case $ac_file in
2333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2334 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2335 break;;
2336 esac
2337 done
2338 else
2339 echo "$as_me: failed program was:" >&5
2340 sed 's/^/| /' conftest.$ac_ext >&5
2342 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2343 See \`config.log' for more details." >&5
2344 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2345 See \`config.log' for more details." >&2;}
2346 { (exit 1); exit 1; }; }
2349 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2351 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2352 echo "${ECHO_T}$ac_cv_objext" >&6
2353 OBJEXT=$ac_cv_objext
2354 ac_objext=$OBJEXT
2355 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2356 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2357 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2359 else
2360 cat >conftest.$ac_ext <<_ACEOF
2361 #line $LINENO "configure"
2362 /* confdefs.h. */
2363 _ACEOF
2364 cat confdefs.h >>conftest.$ac_ext
2365 cat >>conftest.$ac_ext <<_ACEOF
2366 /* end confdefs.h. */
2369 main ()
2371 #ifndef __GNUC__
2372 choke me
2373 #endif
2376 return 0;
2378 _ACEOF
2379 rm -f conftest.$ac_objext
2380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2381 (eval $ac_compile) 2>&5
2382 ac_status=$?
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); } &&
2385 { ac_try='test -s conftest.$ac_objext'
2386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387 (eval $ac_try) 2>&5
2388 ac_status=$?
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; }; then
2391 ac_compiler_gnu=yes
2392 else
2393 echo "$as_me: failed program was:" >&5
2394 sed 's/^/| /' conftest.$ac_ext >&5
2396 ac_compiler_gnu=no
2398 rm -f conftest.$ac_objext conftest.$ac_ext
2399 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2402 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2403 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2404 GCC=`test $ac_compiler_gnu = yes && echo yes`
2405 ac_test_CFLAGS=${CFLAGS+set}
2406 ac_save_CFLAGS=$CFLAGS
2407 CFLAGS="-g"
2408 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2409 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2410 if test "${ac_cv_prog_cc_g+set}" = set; then
2411 echo $ECHO_N "(cached) $ECHO_C" >&6
2412 else
2413 cat >conftest.$ac_ext <<_ACEOF
2414 #line $LINENO "configure"
2415 /* confdefs.h. */
2416 _ACEOF
2417 cat confdefs.h >>conftest.$ac_ext
2418 cat >>conftest.$ac_ext <<_ACEOF
2419 /* end confdefs.h. */
2422 main ()
2426 return 0;
2428 _ACEOF
2429 rm -f conftest.$ac_objext
2430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431 (eval $ac_compile) 2>&5
2432 ac_status=$?
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); } &&
2435 { ac_try='test -s conftest.$ac_objext'
2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437 (eval $ac_try) 2>&5
2438 ac_status=$?
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; }; then
2441 ac_cv_prog_cc_g=yes
2442 else
2443 echo "$as_me: failed program was:" >&5
2444 sed 's/^/| /' conftest.$ac_ext >&5
2446 ac_cv_prog_cc_g=no
2448 rm -f conftest.$ac_objext conftest.$ac_ext
2450 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2451 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2452 if test "$ac_test_CFLAGS" = set; then
2453 CFLAGS=$ac_save_CFLAGS
2454 elif test $ac_cv_prog_cc_g = yes; then
2455 if test "$GCC" = yes; then
2456 CFLAGS="-g -O2"
2457 else
2458 CFLAGS="-g"
2460 else
2461 if test "$GCC" = yes; then
2462 CFLAGS="-O2"
2463 else
2464 CFLAGS=
2467 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2468 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2469 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2470 echo $ECHO_N "(cached) $ECHO_C" >&6
2471 else
2472 ac_cv_prog_cc_stdc=no
2473 ac_save_CC=$CC
2474 cat >conftest.$ac_ext <<_ACEOF
2475 #line $LINENO "configure"
2476 /* confdefs.h. */
2477 _ACEOF
2478 cat confdefs.h >>conftest.$ac_ext
2479 cat >>conftest.$ac_ext <<_ACEOF
2480 /* end confdefs.h. */
2481 #include <stdarg.h>
2482 #include <stdio.h>
2483 #include <sys/types.h>
2484 #include <sys/stat.h>
2485 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2486 struct buf { int x; };
2487 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2488 static char *e (p, i)
2489 char **p;
2490 int i;
2492 return p[i];
2494 static char *f (char * (*g) (char **, int), char **p, ...)
2496 char *s;
2497 va_list v;
2498 va_start (v,p);
2499 s = g (p, va_arg (v,int));
2500 va_end (v);
2501 return s;
2503 int test (int i, double x);
2504 struct s1 {int (*f) (int a);};
2505 struct s2 {int (*f) (double a);};
2506 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2507 int argc;
2508 char **argv;
2510 main ()
2512 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2514 return 0;
2516 _ACEOF
2517 # Don't try gcc -ansi; that turns off useful extensions and
2518 # breaks some systems' header files.
2519 # AIX -qlanglvl=ansi
2520 # Ultrix and OSF/1 -std1
2521 # HP-UX 10.20 and later -Ae
2522 # HP-UX older versions -Aa -D_HPUX_SOURCE
2523 # SVR4 -Xc -D__EXTENSIONS__
2524 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2526 CC="$ac_save_CC $ac_arg"
2527 rm -f conftest.$ac_objext
2528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2529 (eval $ac_compile) 2>&5
2530 ac_status=$?
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); } &&
2533 { ac_try='test -s conftest.$ac_objext'
2534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535 (eval $ac_try) 2>&5
2536 ac_status=$?
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }; }; then
2539 ac_cv_prog_cc_stdc=$ac_arg
2540 break
2541 else
2542 echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2546 rm -f conftest.$ac_objext
2547 done
2548 rm -f conftest.$ac_ext conftest.$ac_objext
2549 CC=$ac_save_CC
2553 case "x$ac_cv_prog_cc_stdc" in
2554 x|xno)
2555 echo "$as_me:$LINENO: result: none needed" >&5
2556 echo "${ECHO_T}none needed" >&6 ;;
2558 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2559 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2560 CC="$CC $ac_cv_prog_cc_stdc" ;;
2561 esac
2563 # Some people use a C++ compiler to compile C. Since we use `exit',
2564 # in C++ we need to declare it. In case someone uses the same compiler
2565 # for both compiling C and C++ we need to have the C++ compiler decide
2566 # the declaration of exit, since it's the most demanding environment.
2567 cat >conftest.$ac_ext <<_ACEOF
2568 #ifndef __cplusplus
2569 choke me
2570 #endif
2571 _ACEOF
2572 rm -f conftest.$ac_objext
2573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2574 (eval $ac_compile) 2>&5
2575 ac_status=$?
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); } &&
2578 { ac_try='test -s conftest.$ac_objext'
2579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580 (eval $ac_try) 2>&5
2581 ac_status=$?
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; }; then
2584 for ac_declaration in \
2586 '#include <stdlib.h>' \
2587 'extern "C" void std::exit (int) throw (); using std::exit;' \
2588 'extern "C" void std::exit (int); using std::exit;' \
2589 'extern "C" void exit (int) throw ();' \
2590 'extern "C" void exit (int);' \
2591 'void exit (int);'
2593 cat >conftest.$ac_ext <<_ACEOF
2594 #line $LINENO "configure"
2595 /* confdefs.h. */
2596 _ACEOF
2597 cat confdefs.h >>conftest.$ac_ext
2598 cat >>conftest.$ac_ext <<_ACEOF
2599 /* end confdefs.h. */
2600 #include <stdlib.h>
2601 $ac_declaration
2603 main ()
2605 exit (42);
2607 return 0;
2609 _ACEOF
2610 rm -f conftest.$ac_objext
2611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612 (eval $ac_compile) 2>&5
2613 ac_status=$?
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } &&
2616 { ac_try='test -s conftest.$ac_objext'
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 (eval $ac_try) 2>&5
2619 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; }; then
2623 else
2624 echo "$as_me: failed program was:" >&5
2625 sed 's/^/| /' conftest.$ac_ext >&5
2627 continue
2629 rm -f conftest.$ac_objext conftest.$ac_ext
2630 cat >conftest.$ac_ext <<_ACEOF
2631 #line $LINENO "configure"
2632 /* confdefs.h. */
2633 _ACEOF
2634 cat confdefs.h >>conftest.$ac_ext
2635 cat >>conftest.$ac_ext <<_ACEOF
2636 /* end confdefs.h. */
2637 $ac_declaration
2639 main ()
2641 exit (42);
2643 return 0;
2645 _ACEOF
2646 rm -f conftest.$ac_objext
2647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2648 (eval $ac_compile) 2>&5
2649 ac_status=$?
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); } &&
2652 { ac_try='test -s conftest.$ac_objext'
2653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654 (eval $ac_try) 2>&5
2655 ac_status=$?
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }; }; then
2658 break
2659 else
2660 echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.$ac_ext >&5
2664 rm -f conftest.$ac_objext conftest.$ac_ext
2665 done
2666 rm -f conftest*
2667 if test -n "$ac_declaration"; then
2668 echo '#ifdef __cplusplus' >>confdefs.h
2669 echo $ac_declaration >>confdefs.h
2670 echo '#endif' >>confdefs.h
2673 else
2674 echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2678 rm -f conftest.$ac_objext conftest.$ac_ext
2679 ac_ext=c
2680 ac_cpp='$CPP $CPPFLAGS'
2681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2684 rm -f .deps 2>/dev/null
2685 mkdir .deps 2>/dev/null
2686 if test -d .deps; then
2687 DEPDIR=.deps
2688 else
2689 # MS-DOS does not allow filenames that begin with a dot.
2690 DEPDIR=_deps
2692 rmdir .deps 2>/dev/null
2695 ac_config_commands="$ac_config_commands depfiles"
2698 am_make=${MAKE-make}
2699 cat > confinc << 'END'
2700 doit:
2701 @echo done
2703 # If we don't find an include directive, just comment out the code.
2704 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2705 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2706 am__include="#"
2707 am__quote=
2708 _am_result=none
2709 # First try GNU make style include.
2710 echo "include confinc" > confmf
2711 # We grep out `Entering directory' and `Leaving directory'
2712 # messages which can occur if `w' ends up in MAKEFLAGS.
2713 # In particular we don't look at `^make:' because GNU make might
2714 # be invoked under some other name (usually "gmake"), in which
2715 # case it prints its new name instead of `make'.
2716 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2717 am__include=include
2718 am__quote=
2719 _am_result=GNU
2721 # Now try BSD make style include.
2722 if test "$am__include" = "#"; then
2723 echo '.include "confinc"' > confmf
2724 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2725 am__include=.include
2726 am__quote="\""
2727 _am_result=BSD
2732 echo "$as_me:$LINENO: result: $_am_result" >&5
2733 echo "${ECHO_T}$_am_result" >&6
2734 rm -f confinc confmf
2736 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2737 if test "${enable_dependency_tracking+set}" = set; then
2738 enableval="$enable_dependency_tracking"
2741 if test "x$enable_dependency_tracking" != xno; then
2742 am_depcomp="$ac_aux_dir/depcomp"
2743 AMDEPBACKSLASH='\'
2747 if test "x$enable_dependency_tracking" != xno; then
2748 AMDEP_TRUE=
2749 AMDEP_FALSE='#'
2750 else
2751 AMDEP_TRUE='#'
2752 AMDEP_FALSE=
2758 depcc="$CC" am_compiler_list=
2760 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2761 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2762 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 else
2765 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2766 # We make a subdir and do the tests there. Otherwise we can end up
2767 # making bogus files that we don't know about and never remove. For
2768 # instance it was reported that on HP-UX the gcc test will end up
2769 # making a dummy file named `D' -- because `-MD' means `put the output
2770 # in D'.
2771 mkdir conftest.dir
2772 # Copy depcomp to subdir because otherwise we won't find it if we're
2773 # using a relative directory.
2774 cp "$am_depcomp" conftest.dir
2775 cd conftest.dir
2777 am_cv_CC_dependencies_compiler_type=none
2778 if test "$am_compiler_list" = ""; then
2779 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2781 for depmode in $am_compiler_list; do
2782 # We need to recreate these files for each test, as the compiler may
2783 # overwrite some of them when testing with obscure command lines.
2784 # This happens at least with the AIX C compiler.
2785 echo '#include "conftest.h"' > conftest.c
2786 echo 'int i;' > conftest.h
2787 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2789 case $depmode in
2790 nosideeffect)
2791 # after this tag, mechanisms are not by side-effect, so they'll
2792 # only be used when explicitly requested
2793 if test "x$enable_dependency_tracking" = xyes; then
2794 continue
2795 else
2796 break
2799 none) break ;;
2800 esac
2801 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2802 # mode. It turns out that the SunPro C++ compiler does not properly
2803 # handle `-M -o', and we need to detect this.
2804 if depmode=$depmode \
2805 source=conftest.c object=conftest.o \
2806 depfile=conftest.Po tmpdepfile=conftest.TPo \
2807 $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
2808 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2809 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2810 am_cv_CC_dependencies_compiler_type=$depmode
2811 break
2813 done
2815 cd ..
2816 rm -rf conftest.dir
2817 else
2818 am_cv_CC_dependencies_compiler_type=none
2822 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2823 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2824 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2829 test "x$enable_dependency_tracking" != xno \
2830 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2831 am__fastdepCC_TRUE=
2832 am__fastdepCC_FALSE='#'
2833 else
2834 am__fastdepCC_TRUE='#'
2835 am__fastdepCC_FALSE=
2839 ac_ext=cc
2840 ac_cpp='$CXXCPP $CPPFLAGS'
2841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2844 if test -n "$ac_tool_prefix"; then
2845 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2847 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2848 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2849 echo "$as_me:$LINENO: checking for $ac_word" >&5
2850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2851 if test "${ac_cv_prog_CXX+set}" = set; then
2852 echo $ECHO_N "(cached) $ECHO_C" >&6
2853 else
2854 if test -n "$CXX"; then
2855 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2856 else
2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858 for as_dir in $PATH
2860 IFS=$as_save_IFS
2861 test -z "$as_dir" && as_dir=.
2862 for ac_exec_ext in '' $ac_executable_extensions; do
2863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2864 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2866 break 2
2868 done
2869 done
2873 CXX=$ac_cv_prog_CXX
2874 if test -n "$CXX"; then
2875 echo "$as_me:$LINENO: result: $CXX" >&5
2876 echo "${ECHO_T}$CXX" >&6
2877 else
2878 echo "$as_me:$LINENO: result: no" >&5
2879 echo "${ECHO_T}no" >&6
2882 test -n "$CXX" && break
2883 done
2885 if test -z "$CXX"; then
2886 ac_ct_CXX=$CXX
2887 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2889 # Extract the first word of "$ac_prog", so it can be a program name with args.
2890 set dummy $ac_prog; ac_word=$2
2891 echo "$as_me:$LINENO: checking for $ac_word" >&5
2892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2893 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2894 echo $ECHO_N "(cached) $ECHO_C" >&6
2895 else
2896 if test -n "$ac_ct_CXX"; then
2897 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2898 else
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH
2902 IFS=$as_save_IFS
2903 test -z "$as_dir" && as_dir=.
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2906 ac_cv_prog_ac_ct_CXX="$ac_prog"
2907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 break 2
2910 done
2911 done
2915 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2916 if test -n "$ac_ct_CXX"; then
2917 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2918 echo "${ECHO_T}$ac_ct_CXX" >&6
2919 else
2920 echo "$as_me:$LINENO: result: no" >&5
2921 echo "${ECHO_T}no" >&6
2924 test -n "$ac_ct_CXX" && break
2925 done
2926 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2928 CXX=$ac_ct_CXX
2932 # Provide some information about the compiler.
2933 echo "$as_me:$LINENO:" \
2934 "checking for C++ compiler version" >&5
2935 ac_compiler=`set X $ac_compile; echo $2`
2936 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2937 (eval $ac_compiler --version </dev/null >&5) 2>&5
2938 ac_status=$?
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }
2941 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2942 (eval $ac_compiler -v </dev/null >&5) 2>&5
2943 ac_status=$?
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }
2946 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2947 (eval $ac_compiler -V </dev/null >&5) 2>&5
2948 ac_status=$?
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }
2952 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2953 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2954 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 else
2957 cat >conftest.$ac_ext <<_ACEOF
2958 #line $LINENO "configure"
2959 /* confdefs.h. */
2960 _ACEOF
2961 cat confdefs.h >>conftest.$ac_ext
2962 cat >>conftest.$ac_ext <<_ACEOF
2963 /* end confdefs.h. */
2966 main ()
2968 #ifndef __GNUC__
2969 choke me
2970 #endif
2973 return 0;
2975 _ACEOF
2976 rm -f conftest.$ac_objext
2977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2978 (eval $ac_compile) 2>&5
2979 ac_status=$?
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } &&
2982 { ac_try='test -s conftest.$ac_objext'
2983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2984 (eval $ac_try) 2>&5
2985 ac_status=$?
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; }; then
2988 ac_compiler_gnu=yes
2989 else
2990 echo "$as_me: failed program was:" >&5
2991 sed 's/^/| /' conftest.$ac_ext >&5
2993 ac_compiler_gnu=no
2995 rm -f conftest.$ac_objext conftest.$ac_ext
2996 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2999 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3000 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3001 GXX=`test $ac_compiler_gnu = yes && echo yes`
3002 ac_test_CXXFLAGS=${CXXFLAGS+set}
3003 ac_save_CXXFLAGS=$CXXFLAGS
3004 CXXFLAGS="-g"
3005 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3006 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3007 if test "${ac_cv_prog_cxx_g+set}" = set; then
3008 echo $ECHO_N "(cached) $ECHO_C" >&6
3009 else
3010 cat >conftest.$ac_ext <<_ACEOF
3011 #line $LINENO "configure"
3012 /* confdefs.h. */
3013 _ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h. */
3019 main ()
3023 return 0;
3025 _ACEOF
3026 rm -f conftest.$ac_objext
3027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3028 (eval $ac_compile) 2>&5
3029 ac_status=$?
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } &&
3032 { ac_try='test -s conftest.$ac_objext'
3033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034 (eval $ac_try) 2>&5
3035 ac_status=$?
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }; }; then
3038 ac_cv_prog_cxx_g=yes
3039 else
3040 echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3043 ac_cv_prog_cxx_g=no
3045 rm -f conftest.$ac_objext conftest.$ac_ext
3047 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3048 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3049 if test "$ac_test_CXXFLAGS" = set; then
3050 CXXFLAGS=$ac_save_CXXFLAGS
3051 elif test $ac_cv_prog_cxx_g = yes; then
3052 if test "$GXX" = yes; then
3053 CXXFLAGS="-g -O2"
3054 else
3055 CXXFLAGS="-g"
3057 else
3058 if test "$GXX" = yes; then
3059 CXXFLAGS="-O2"
3060 else
3061 CXXFLAGS=
3064 for ac_declaration in \
3066 '#include <stdlib.h>' \
3067 'extern "C" void std::exit (int) throw (); using std::exit;' \
3068 'extern "C" void std::exit (int); using std::exit;' \
3069 'extern "C" void exit (int) throw ();' \
3070 'extern "C" void exit (int);' \
3071 'void exit (int);'
3073 cat >conftest.$ac_ext <<_ACEOF
3074 #line $LINENO "configure"
3075 /* confdefs.h. */
3076 _ACEOF
3077 cat confdefs.h >>conftest.$ac_ext
3078 cat >>conftest.$ac_ext <<_ACEOF
3079 /* end confdefs.h. */
3080 #include <stdlib.h>
3081 $ac_declaration
3083 main ()
3085 exit (42);
3087 return 0;
3089 _ACEOF
3090 rm -f conftest.$ac_objext
3091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3092 (eval $ac_compile) 2>&5
3093 ac_status=$?
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); } &&
3096 { ac_try='test -s conftest.$ac_objext'
3097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3098 (eval $ac_try) 2>&5
3099 ac_status=$?
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }; }; then
3103 else
3104 echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3107 continue
3109 rm -f conftest.$ac_objext conftest.$ac_ext
3110 cat >conftest.$ac_ext <<_ACEOF
3111 #line $LINENO "configure"
3112 /* confdefs.h. */
3113 _ACEOF
3114 cat confdefs.h >>conftest.$ac_ext
3115 cat >>conftest.$ac_ext <<_ACEOF
3116 /* end confdefs.h. */
3117 $ac_declaration
3119 main ()
3121 exit (42);
3123 return 0;
3125 _ACEOF
3126 rm -f conftest.$ac_objext
3127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3128 (eval $ac_compile) 2>&5
3129 ac_status=$?
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); } &&
3132 { ac_try='test -s conftest.$ac_objext'
3133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3134 (eval $ac_try) 2>&5
3135 ac_status=$?
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }; }; then
3138 break
3139 else
3140 echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3144 rm -f conftest.$ac_objext conftest.$ac_ext
3145 done
3146 rm -f conftest*
3147 if test -n "$ac_declaration"; then
3148 echo '#ifdef __cplusplus' >>confdefs.h
3149 echo $ac_declaration >>confdefs.h
3150 echo '#endif' >>confdefs.h
3153 ac_ext=c
3154 ac_cpp='$CPP $CPPFLAGS'
3155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3159 depcc="$CXX" am_compiler_list=
3161 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3162 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3163 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3165 else
3166 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3167 # We make a subdir and do the tests there. Otherwise we can end up
3168 # making bogus files that we don't know about and never remove. For
3169 # instance it was reported that on HP-UX the gcc test will end up
3170 # making a dummy file named `D' -- because `-MD' means `put the output
3171 # in D'.
3172 mkdir conftest.dir
3173 # Copy depcomp to subdir because otherwise we won't find it if we're
3174 # using a relative directory.
3175 cp "$am_depcomp" conftest.dir
3176 cd conftest.dir
3178 am_cv_CXX_dependencies_compiler_type=none
3179 if test "$am_compiler_list" = ""; then
3180 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3182 for depmode in $am_compiler_list; do
3183 # We need to recreate these files for each test, as the compiler may
3184 # overwrite some of them when testing with obscure command lines.
3185 # This happens at least with the AIX C compiler.
3186 echo '#include "conftest.h"' > conftest.c
3187 echo 'int i;' > conftest.h
3188 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3190 case $depmode in
3191 nosideeffect)
3192 # after this tag, mechanisms are not by side-effect, so they'll
3193 # only be used when explicitly requested
3194 if test "x$enable_dependency_tracking" = xyes; then
3195 continue
3196 else
3197 break
3200 none) break ;;
3201 esac
3202 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3203 # mode. It turns out that the SunPro C++ compiler does not properly
3204 # handle `-M -o', and we need to detect this.
3205 if depmode=$depmode \
3206 source=conftest.c object=conftest.o \
3207 depfile=conftest.Po tmpdepfile=conftest.TPo \
3208 $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
3209 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3210 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3211 am_cv_CXX_dependencies_compiler_type=$depmode
3212 break
3214 done
3216 cd ..
3217 rm -rf conftest.dir
3218 else
3219 am_cv_CXX_dependencies_compiler_type=none
3223 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3224 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3225 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3230 test "x$enable_dependency_tracking" != xno \
3231 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3232 am__fastdepCXX_TRUE=
3233 am__fastdepCXX_FALSE='#'
3234 else
3235 am__fastdepCXX_TRUE='#'
3236 am__fastdepCXX_FALSE=
3240 ac_ext=c
3241 ac_cpp='$CPP $CPPFLAGS'
3242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3245 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3246 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3247 # On Suns, sometimes $CPP names a directory.
3248 if test -n "$CPP" && test -d "$CPP"; then
3249 CPP=
3251 if test -z "$CPP"; then
3252 if test "${ac_cv_prog_CPP+set}" = set; then
3253 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 else
3255 # Double quotes because CPP needs to be expanded
3256 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3258 ac_preproc_ok=false
3259 for ac_c_preproc_warn_flag in '' yes
3261 # Use a header file that comes with gcc, so configuring glibc
3262 # with a fresh cross-compiler works.
3263 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3264 # <limits.h> exists even on freestanding compilers.
3265 # On the NeXT, cc -E runs the code through the compiler's parser,
3266 # not just through cpp. "Syntax error" is here to catch this case.
3267 cat >conftest.$ac_ext <<_ACEOF
3268 #line $LINENO "configure"
3269 /* confdefs.h. */
3270 _ACEOF
3271 cat confdefs.h >>conftest.$ac_ext
3272 cat >>conftest.$ac_ext <<_ACEOF
3273 /* end confdefs.h. */
3274 #ifdef __STDC__
3275 # include <limits.h>
3276 #else
3277 # include <assert.h>
3278 #endif
3279 Syntax error
3280 _ACEOF
3281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3283 ac_status=$?
3284 grep -v '^ *+' conftest.er1 >conftest.err
3285 rm -f conftest.er1
3286 cat conftest.err >&5
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); } >/dev/null; then
3289 if test -s conftest.err; then
3290 ac_cpp_err=$ac_c_preproc_warn_flag
3291 else
3292 ac_cpp_err=
3294 else
3295 ac_cpp_err=yes
3297 if test -z "$ac_cpp_err"; then
3299 else
3300 echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3303 # Broken: fails on valid input.
3304 continue
3306 rm -f conftest.err conftest.$ac_ext
3308 # OK, works on sane cases. Now check whether non-existent headers
3309 # can be detected and how.
3310 cat >conftest.$ac_ext <<_ACEOF
3311 #line $LINENO "configure"
3312 /* confdefs.h. */
3313 _ACEOF
3314 cat confdefs.h >>conftest.$ac_ext
3315 cat >>conftest.$ac_ext <<_ACEOF
3316 /* end confdefs.h. */
3317 #include <ac_nonexistent.h>
3318 _ACEOF
3319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3321 ac_status=$?
3322 grep -v '^ *+' conftest.er1 >conftest.err
3323 rm -f conftest.er1
3324 cat conftest.err >&5
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); } >/dev/null; then
3327 if test -s conftest.err; then
3328 ac_cpp_err=$ac_c_preproc_warn_flag
3329 else
3330 ac_cpp_err=
3332 else
3333 ac_cpp_err=yes
3335 if test -z "$ac_cpp_err"; then
3336 # Broken: success on invalid input.
3337 continue
3338 else
3339 echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3342 # Passes both tests.
3343 ac_preproc_ok=:
3344 break
3346 rm -f conftest.err conftest.$ac_ext
3348 done
3349 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3350 rm -f conftest.err conftest.$ac_ext
3351 if $ac_preproc_ok; then
3352 break
3355 done
3356 ac_cv_prog_CPP=$CPP
3359 CPP=$ac_cv_prog_CPP
3360 else
3361 ac_cv_prog_CPP=$CPP
3363 echo "$as_me:$LINENO: result: $CPP" >&5
3364 echo "${ECHO_T}$CPP" >&6
3365 ac_preproc_ok=false
3366 for ac_c_preproc_warn_flag in '' yes
3368 # Use a header file that comes with gcc, so configuring glibc
3369 # with a fresh cross-compiler works.
3370 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3371 # <limits.h> exists even on freestanding compilers.
3372 # On the NeXT, cc -E runs the code through the compiler's parser,
3373 # not just through cpp. "Syntax error" is here to catch this case.
3374 cat >conftest.$ac_ext <<_ACEOF
3375 #line $LINENO "configure"
3376 /* confdefs.h. */
3377 _ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h. */
3381 #ifdef __STDC__
3382 # include <limits.h>
3383 #else
3384 # include <assert.h>
3385 #endif
3386 Syntax error
3387 _ACEOF
3388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3390 ac_status=$?
3391 grep -v '^ *+' conftest.er1 >conftest.err
3392 rm -f conftest.er1
3393 cat conftest.err >&5
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); } >/dev/null; then
3396 if test -s conftest.err; then
3397 ac_cpp_err=$ac_c_preproc_warn_flag
3398 else
3399 ac_cpp_err=
3401 else
3402 ac_cpp_err=yes
3404 if test -z "$ac_cpp_err"; then
3406 else
3407 echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3410 # Broken: fails on valid input.
3411 continue
3413 rm -f conftest.err conftest.$ac_ext
3415 # OK, works on sane cases. Now check whether non-existent headers
3416 # can be detected and how.
3417 cat >conftest.$ac_ext <<_ACEOF
3418 #line $LINENO "configure"
3419 /* confdefs.h. */
3420 _ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h. */
3424 #include <ac_nonexistent.h>
3425 _ACEOF
3426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3428 ac_status=$?
3429 grep -v '^ *+' conftest.er1 >conftest.err
3430 rm -f conftest.er1
3431 cat conftest.err >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } >/dev/null; then
3434 if test -s conftest.err; then
3435 ac_cpp_err=$ac_c_preproc_warn_flag
3436 else
3437 ac_cpp_err=
3439 else
3440 ac_cpp_err=yes
3442 if test -z "$ac_cpp_err"; then
3443 # Broken: success on invalid input.
3444 continue
3445 else
3446 echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3449 # Passes both tests.
3450 ac_preproc_ok=:
3451 break
3453 rm -f conftest.err conftest.$ac_ext
3455 done
3456 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3457 rm -f conftest.err conftest.$ac_ext
3458 if $ac_preproc_ok; then
3460 else
3461 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3462 See \`config.log' for more details." >&5
3463 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3464 See \`config.log' for more details." >&2;}
3465 { (exit 1); exit 1; }; }
3468 ac_ext=c
3469 ac_cpp='$CPP $CPPFLAGS'
3470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3474 for ac_prog in gawk mawk nawk awk
3476 # Extract the first word of "$ac_prog", so it can be a program name with args.
3477 set dummy $ac_prog; ac_word=$2
3478 echo "$as_me:$LINENO: checking for $ac_word" >&5
3479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3480 if test "${ac_cv_prog_AWK+set}" = set; then
3481 echo $ECHO_N "(cached) $ECHO_C" >&6
3482 else
3483 if test -n "$AWK"; then
3484 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3485 else
3486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487 for as_dir in $PATH
3489 IFS=$as_save_IFS
3490 test -z "$as_dir" && as_dir=.
3491 for ac_exec_ext in '' $ac_executable_extensions; do
3492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3493 ac_cv_prog_AWK="$ac_prog"
3494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3495 break 2
3497 done
3498 done
3502 AWK=$ac_cv_prog_AWK
3503 if test -n "$AWK"; then
3504 echo "$as_me:$LINENO: result: $AWK" >&5
3505 echo "${ECHO_T}$AWK" >&6
3506 else
3507 echo "$as_me:$LINENO: result: no" >&5
3508 echo "${ECHO_T}no" >&6
3511 test -n "$AWK" && break
3512 done
3514 # Find a good install program. We prefer a C program (faster),
3515 # so one script is as good as another. But avoid the broken or
3516 # incompatible versions:
3517 # SysV /etc/install, /usr/sbin/install
3518 # SunOS /usr/etc/install
3519 # IRIX /sbin/install
3520 # AIX /bin/install
3521 # AmigaOS /C/install, which installs bootblocks on floppy discs
3522 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3523 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3524 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3525 # ./install, which can be erroneously created by make from ./install.sh.
3526 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3527 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3528 if test -z "$INSTALL"; then
3529 if test "${ac_cv_path_install+set}" = set; then
3530 echo $ECHO_N "(cached) $ECHO_C" >&6
3531 else
3532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533 for as_dir in $PATH
3535 IFS=$as_save_IFS
3536 test -z "$as_dir" && as_dir=.
3537 # Account for people who put trailing slashes in PATH elements.
3538 case $as_dir/ in
3539 ./ | .// | /cC/* | \
3540 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3541 /usr/ucb/* ) ;;
3543 # OSF1 and SCO ODT 3.0 have their own names for install.
3544 # Don't use installbsd from OSF since it installs stuff as root
3545 # by default.
3546 for ac_prog in ginstall scoinst install; do
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3549 if test $ac_prog = install &&
3550 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3551 # AIX install. It has an incompatible calling convention.
3553 elif test $ac_prog = install &&
3554 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3555 # program-specific install script used by HP pwplus--don't use.
3557 else
3558 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3559 break 3
3562 done
3563 done
3565 esac
3566 done
3570 if test "${ac_cv_path_install+set}" = set; then
3571 INSTALL=$ac_cv_path_install
3572 else
3573 # As a last resort, use the slow shell script. We don't cache a
3574 # path for INSTALL within a source directory, because that will
3575 # break other packages using the cache if that directory is
3576 # removed, or if the path is relative.
3577 INSTALL=$ac_install_sh
3580 echo "$as_me:$LINENO: result: $INSTALL" >&5
3581 echo "${ECHO_T}$INSTALL" >&6
3583 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3584 # It thinks the first close brace ends the variable substitution.
3585 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3587 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3589 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3591 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3592 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3593 LN_S=$as_ln_s
3594 if test "$LN_S" = "ln -s"; then
3595 echo "$as_me:$LINENO: result: yes" >&5
3596 echo "${ECHO_T}yes" >&6
3597 else
3598 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3599 echo "${ECHO_T}no, using $LN_S" >&6
3602 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3603 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3604 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3605 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3607 else
3608 cat >conftest.make <<\_ACEOF
3609 all:
3610 @echo 'ac_maketemp="$(MAKE)"'
3611 _ACEOF
3612 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3613 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3614 if test -n "$ac_maketemp"; then
3615 eval ac_cv_prog_make_${ac_make}_set=yes
3616 else
3617 eval ac_cv_prog_make_${ac_make}_set=no
3619 rm -f conftest.make
3621 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3622 echo "$as_me:$LINENO: result: yes" >&5
3623 echo "${ECHO_T}yes" >&6
3624 SET_MAKE=
3625 else
3626 echo "$as_me:$LINENO: result: no" >&5
3627 echo "${ECHO_T}no" >&6
3628 SET_MAKE="MAKE=${MAKE-make}"
3631 if test -n "$ac_tool_prefix"; then
3632 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3633 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3634 echo "$as_me:$LINENO: checking for $ac_word" >&5
3635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3636 if test "${ac_cv_prog_RANLIB+set}" = set; then
3637 echo $ECHO_N "(cached) $ECHO_C" >&6
3638 else
3639 if test -n "$RANLIB"; then
3640 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3641 else
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 for as_dir in $PATH
3645 IFS=$as_save_IFS
3646 test -z "$as_dir" && as_dir=.
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3649 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 break 2
3653 done
3654 done
3658 RANLIB=$ac_cv_prog_RANLIB
3659 if test -n "$RANLIB"; then
3660 echo "$as_me:$LINENO: result: $RANLIB" >&5
3661 echo "${ECHO_T}$RANLIB" >&6
3662 else
3663 echo "$as_me:$LINENO: result: no" >&5
3664 echo "${ECHO_T}no" >&6
3668 if test -z "$ac_cv_prog_RANLIB"; then
3669 ac_ct_RANLIB=$RANLIB
3670 # Extract the first word of "ranlib", so it can be a program name with args.
3671 set dummy ranlib; ac_word=$2
3672 echo "$as_me:$LINENO: checking for $ac_word" >&5
3673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3674 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677 if test -n "$ac_ct_RANLIB"; then
3678 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3679 else
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 for as_dir in $PATH
3683 IFS=$as_save_IFS
3684 test -z "$as_dir" && as_dir=.
3685 for ac_exec_ext in '' $ac_executable_extensions; do
3686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3687 ac_cv_prog_ac_ct_RANLIB="ranlib"
3688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3689 break 2
3691 done
3692 done
3694 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3697 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3698 if test -n "$ac_ct_RANLIB"; then
3699 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3700 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3701 else
3702 echo "$as_me:$LINENO: result: no" >&5
3703 echo "${ECHO_T}no" >&6
3706 RANLIB=$ac_ct_RANLIB
3707 else
3708 RANLIB="$ac_cv_prog_RANLIB"
3712 PERL_VERSION=5.004
3713 for ac_prog in $PERL perl5 perl
3715 # Extract the first word of "$ac_prog", so it can be a program name with args.
3716 set dummy $ac_prog; ac_word=$2
3717 echo "$as_me:$LINENO: checking for $ac_word" >&5
3718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3719 if test "${ac_cv_path_PERL+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722 case $PERL in
3723 [\\/]* | ?:[\\/]*)
3724 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728 for as_dir in $PATH
3730 IFS=$as_save_IFS
3731 test -z "$as_dir" && as_dir=.
3732 for ac_exec_ext in '' $ac_executable_extensions; do
3733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3734 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3736 break 2
3738 done
3739 done
3742 esac
3744 PERL=$ac_cv_path_PERL
3746 if test -n "$PERL"; then
3747 echo "$as_me:$LINENO: result: $PERL" >&5
3748 echo "${ECHO_T}$PERL" >&6
3749 else
3750 echo "$as_me:$LINENO: result: no" >&5
3751 echo "${ECHO_T}no" >&6
3754 test -n "$PERL" && break
3755 done
3757 if test -z "$PERL" || test "$PERL" = ":"; then
3758 { { echo "$as_me:$LINENO: error: perl not found in \$PATH" >&5
3759 echo "$as_me: error: perl not found in \$PATH" >&2;}
3760 { (exit 1); exit 1; }; }
3763 echo "$as_me:$LINENO: checking for minimum required perl version >= $PERL_VERSION" >&5
3764 echo $ECHO_N "checking for minimum required perl version >= $PERL_VERSION... $ECHO_C" >&6
3765 _perl_version=`PERL_VERSION=$PERL_VERSION $PERL -e 'print "$]"; if ($] >= $ENV{PERL_VERSION}) { exit(0); } else { exit(1); }' 2>&5`
3766 _perl_res=$?
3767 echo "$as_me:$LINENO: result: $_perl_version" >&5
3768 echo "${ECHO_T}$_perl_version" >&6
3770 if test "$_perl_res" != 0; then
3771 { { echo "$as_me:$LINENO: error: Perl $PERL_VERSION or higher is required." >&5
3772 echo "$as_me: error: Perl $PERL_VERSION or higher is required." >&2;}
3773 { (exit 1); exit 1; }; }
3776 echo "$as_me:$LINENO: checking for full perl installation" >&5
3777 echo $ECHO_N "checking for full perl installation... $ECHO_C" >&6
3778 _perl_archlib=`$PERL -e 'use Config; if ( -d $Config{archlib} ) { exit(0); } else { exit(1); }' 2>&5`
3779 _perl_res=$?
3780 if test "$_perl_res" != 0; then
3781 echo "$as_me:$LINENO: result: no" >&5
3782 echo "${ECHO_T}no" >&6
3783 { { echo "$as_me:$LINENO: error: Cannot find Config.pm or \$Config{archlib}. A full perl installation is required." >&5
3784 echo "$as_me: error: Cannot find Config.pm or \$Config{archlib}. A full perl installation is required." >&2;}
3785 { (exit 1); exit 1; }; }
3786 else
3787 echo "$as_me:$LINENO: result: yes" >&5
3788 echo "${ECHO_T}yes" >&6
3792 # Checks for header files.
3795 echo "$as_me:$LINENO: checking for X" >&5
3796 echo $ECHO_N "checking for X... $ECHO_C" >&6
3799 # Check whether --with-x or --without-x was given.
3800 if test "${with_x+set}" = set; then
3801 withval="$with_x"
3804 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3805 if test "x$with_x" = xno; then
3806 # The user explicitly disabled X.
3807 have_x=disabled
3808 else
3809 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3810 # Both variables are already set.
3811 have_x=yes
3812 else
3813 if test "${ac_cv_have_x+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3815 else
3816 # One or both of the vars are not set, and there is no cached value.
3817 ac_x_includes=no ac_x_libraries=no
3818 rm -fr conftest.dir
3819 if mkdir conftest.dir; then
3820 cd conftest.dir
3821 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3822 cat >Imakefile <<'_ACEOF'
3823 acfindx:
3824 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3825 _ACEOF
3826 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3827 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3828 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3829 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3830 for ac_extension in a so sl; do
3831 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3832 test -f $ac_im_libdir/libX11.$ac_extension; then
3833 ac_im_usrlibdir=$ac_im_libdir; break
3835 done
3836 # Screen out bogus values from the imake configuration. They are
3837 # bogus both because they are the default anyway, and because
3838 # using them would break gcc on systems where it needs fixed includes.
3839 case $ac_im_incroot in
3840 /usr/include) ;;
3841 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3842 esac
3843 case $ac_im_usrlibdir in
3844 /usr/lib | /lib) ;;
3845 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3846 esac
3848 cd ..
3849 rm -fr conftest.dir
3852 # Standard set of common directories for X headers.
3853 # Check X11 before X11Rn because it is often a symlink to the current release.
3854 ac_x_header_dirs='
3855 /usr/X11/include
3856 /usr/X11R6/include
3857 /usr/X11R5/include
3858 /usr/X11R4/include
3860 /usr/include/X11
3861 /usr/include/X11R6
3862 /usr/include/X11R5
3863 /usr/include/X11R4
3865 /usr/local/X11/include
3866 /usr/local/X11R6/include
3867 /usr/local/X11R5/include
3868 /usr/local/X11R4/include
3870 /usr/local/include/X11
3871 /usr/local/include/X11R6
3872 /usr/local/include/X11R5
3873 /usr/local/include/X11R4
3875 /usr/X386/include
3876 /usr/x386/include
3877 /usr/XFree86/include/X11
3879 /usr/include
3880 /usr/local/include
3881 /usr/unsupported/include
3882 /usr/athena/include
3883 /usr/local/x11r5/include
3884 /usr/lpp/Xamples/include
3886 /usr/openwin/include
3887 /usr/openwin/share/include'
3889 if test "$ac_x_includes" = no; then
3890 # Guess where to find include files, by looking for Intrinsic.h.
3891 # First, try using that file with no special directory specified.
3892 cat >conftest.$ac_ext <<_ACEOF
3893 #line $LINENO "configure"
3894 /* confdefs.h. */
3895 _ACEOF
3896 cat confdefs.h >>conftest.$ac_ext
3897 cat >>conftest.$ac_ext <<_ACEOF
3898 /* end confdefs.h. */
3899 #include <X11/Intrinsic.h>
3900 _ACEOF
3901 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3902 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3903 ac_status=$?
3904 grep -v '^ *+' conftest.er1 >conftest.err
3905 rm -f conftest.er1
3906 cat conftest.err >&5
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); } >/dev/null; then
3909 if test -s conftest.err; then
3910 ac_cpp_err=$ac_c_preproc_warn_flag
3911 else
3912 ac_cpp_err=
3914 else
3915 ac_cpp_err=yes
3917 if test -z "$ac_cpp_err"; then
3918 # We can compile using X headers with no special include directory.
3919 ac_x_includes=
3920 else
3921 echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3924 for ac_dir in $ac_x_header_dirs; do
3925 if test -r "$ac_dir/X11/Intrinsic.h"; then
3926 ac_x_includes=$ac_dir
3927 break
3929 done
3931 rm -f conftest.err conftest.$ac_ext
3932 fi # $ac_x_includes = no
3934 if test "$ac_x_libraries" = no; then
3935 # Check for the libraries.
3936 # See if we find them without any special options.
3937 # Don't add to $LIBS permanently.
3938 ac_save_LIBS=$LIBS
3939 LIBS="-lXt $LIBS"
3940 cat >conftest.$ac_ext <<_ACEOF
3941 #line $LINENO "configure"
3942 /* confdefs.h. */
3943 _ACEOF
3944 cat confdefs.h >>conftest.$ac_ext
3945 cat >>conftest.$ac_ext <<_ACEOF
3946 /* end confdefs.h. */
3947 #include <X11/Intrinsic.h>
3949 main ()
3951 XtMalloc (0)
3953 return 0;
3955 _ACEOF
3956 rm -f conftest.$ac_objext conftest$ac_exeext
3957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3958 (eval $ac_link) 2>&5
3959 ac_status=$?
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); } &&
3962 { ac_try='test -s conftest$ac_exeext'
3963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3964 (eval $ac_try) 2>&5
3965 ac_status=$?
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); }; }; then
3968 LIBS=$ac_save_LIBS
3969 # We can link X programs with no special library path.
3970 ac_x_libraries=
3971 else
3972 echo "$as_me: failed program was:" >&5
3973 sed 's/^/| /' conftest.$ac_ext >&5
3975 LIBS=$ac_save_LIBS
3976 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3978 # Don't even attempt the hair of trying to link an X program!
3979 for ac_extension in a so sl; do
3980 if test -r $ac_dir/libXt.$ac_extension; then
3981 ac_x_libraries=$ac_dir
3982 break 2
3984 done
3985 done
3987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3988 fi # $ac_x_libraries = no
3990 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3991 # Didn't find X anywhere. Cache the known absence of X.
3992 ac_cv_have_x="have_x=no"
3993 else
3994 # Record where we found X for the cache.
3995 ac_cv_have_x="have_x=yes \
3996 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4001 eval "$ac_cv_have_x"
4002 fi # $with_x != no
4004 if test "$have_x" != yes; then
4005 echo "$as_me:$LINENO: result: $have_x" >&5
4006 echo "${ECHO_T}$have_x" >&6
4007 no_x=yes
4008 else
4009 # If each of the values was on the command line, it overrides each guess.
4010 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4011 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4012 # Update the cache value to reflect the command line values.
4013 ac_cv_have_x="have_x=yes \
4014 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4015 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4016 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4019 if test "$no_x" = yes; then
4020 # Not all programs may use this symbol, but it does not hurt to define it.
4022 cat >>confdefs.h <<\_ACEOF
4023 #define X_DISPLAY_MISSING 1
4024 _ACEOF
4026 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4027 else
4028 if test -n "$x_includes"; then
4029 X_CFLAGS="$X_CFLAGS -I$x_includes"
4032 # It would also be nice to do this for all -L options, not just this one.
4033 if test -n "$x_libraries"; then
4034 X_LIBS="$X_LIBS -L$x_libraries"
4035 # For Solaris; some versions of Sun CC require a space after -R and
4036 # others require no space. Words are not sufficient . . . .
4037 case `(uname -sr) 2>/dev/null` in
4038 "SunOS 5"*)
4039 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4040 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4041 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4042 cat >conftest.$ac_ext <<_ACEOF
4043 #line $LINENO "configure"
4044 /* confdefs.h. */
4045 _ACEOF
4046 cat confdefs.h >>conftest.$ac_ext
4047 cat >>conftest.$ac_ext <<_ACEOF
4048 /* end confdefs.h. */
4051 main ()
4055 return 0;
4057 _ACEOF
4058 rm -f conftest.$ac_objext conftest$ac_exeext
4059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4060 (eval $ac_link) 2>&5
4061 ac_status=$?
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); } &&
4064 { ac_try='test -s conftest$ac_exeext'
4065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4066 (eval $ac_try) 2>&5
4067 ac_status=$?
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); }; }; then
4070 ac_R_nospace=yes
4071 else
4072 echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.$ac_ext >&5
4075 ac_R_nospace=no
4077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4078 if test $ac_R_nospace = yes; then
4079 echo "$as_me:$LINENO: result: no" >&5
4080 echo "${ECHO_T}no" >&6
4081 X_LIBS="$X_LIBS -R$x_libraries"
4082 else
4083 LIBS="$ac_xsave_LIBS -R $x_libraries"
4084 cat >conftest.$ac_ext <<_ACEOF
4085 #line $LINENO "configure"
4086 /* confdefs.h. */
4087 _ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h. */
4093 main ()
4097 return 0;
4099 _ACEOF
4100 rm -f conftest.$ac_objext conftest$ac_exeext
4101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4102 (eval $ac_link) 2>&5
4103 ac_status=$?
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); } &&
4106 { ac_try='test -s conftest$ac_exeext'
4107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4108 (eval $ac_try) 2>&5
4109 ac_status=$?
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); }; }; then
4112 ac_R_space=yes
4113 else
4114 echo "$as_me: failed program was:" >&5
4115 sed 's/^/| /' conftest.$ac_ext >&5
4117 ac_R_space=no
4119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4120 if test $ac_R_space = yes; then
4121 echo "$as_me:$LINENO: result: yes" >&5
4122 echo "${ECHO_T}yes" >&6
4123 X_LIBS="$X_LIBS -R $x_libraries"
4124 else
4125 echo "$as_me:$LINENO: result: neither works" >&5
4126 echo "${ECHO_T}neither works" >&6
4129 LIBS=$ac_xsave_LIBS
4130 esac
4133 # Check for system-dependent libraries X programs must link with.
4134 # Do this before checking for the system-independent R6 libraries
4135 # (-lICE), since we may need -lsocket or whatever for X linking.
4137 if test "$ISC" = yes; then
4138 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4139 else
4140 # Martyn Johnson says this is needed for Ultrix, if the X
4141 # libraries were built with DECnet support. And Karl Berry says
4142 # the Alpha needs dnet_stub (dnet does not exist).
4143 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4144 cat >conftest.$ac_ext <<_ACEOF
4145 #line $LINENO "configure"
4146 /* confdefs.h. */
4147 _ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h. */
4152 /* Override any gcc2 internal prototype to avoid an error. */
4153 #ifdef __cplusplus
4154 extern "C"
4155 #endif
4156 /* We use char because int might match the return type of a gcc2
4157 builtin and then its argument prototype would still apply. */
4158 char XOpenDisplay ();
4160 main ()
4162 XOpenDisplay ();
4164 return 0;
4166 _ACEOF
4167 rm -f conftest.$ac_objext conftest$ac_exeext
4168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4169 (eval $ac_link) 2>&5
4170 ac_status=$?
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); } &&
4173 { ac_try='test -s conftest$ac_exeext'
4174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4175 (eval $ac_try) 2>&5
4176 ac_status=$?
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; }; then
4180 else
4181 echo "$as_me: failed program was:" >&5
4182 sed 's/^/| /' conftest.$ac_ext >&5
4184 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4185 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4186 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
4188 else
4189 ac_check_lib_save_LIBS=$LIBS
4190 LIBS="-ldnet $LIBS"
4191 cat >conftest.$ac_ext <<_ACEOF
4192 #line $LINENO "configure"
4193 /* confdefs.h. */
4194 _ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h. */
4199 /* Override any gcc2 internal prototype to avoid an error. */
4200 #ifdef __cplusplus
4201 extern "C"
4202 #endif
4203 /* We use char because int might match the return type of a gcc2
4204 builtin and then its argument prototype would still apply. */
4205 char dnet_ntoa ();
4207 main ()
4209 dnet_ntoa ();
4211 return 0;
4213 _ACEOF
4214 rm -f conftest.$ac_objext conftest$ac_exeext
4215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4216 (eval $ac_link) 2>&5
4217 ac_status=$?
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); } &&
4220 { ac_try='test -s conftest$ac_exeext'
4221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222 (eval $ac_try) 2>&5
4223 ac_status=$?
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; }; then
4226 ac_cv_lib_dnet_dnet_ntoa=yes
4227 else
4228 echo "$as_me: failed program was:" >&5
4229 sed 's/^/| /' conftest.$ac_ext >&5
4231 ac_cv_lib_dnet_dnet_ntoa=no
4233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4234 LIBS=$ac_check_lib_save_LIBS
4236 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4237 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4238 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4239 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4242 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4243 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4244 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4245 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 else
4248 ac_check_lib_save_LIBS=$LIBS
4249 LIBS="-ldnet_stub $LIBS"
4250 cat >conftest.$ac_ext <<_ACEOF
4251 #line $LINENO "configure"
4252 /* confdefs.h. */
4253 _ACEOF
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h. */
4258 /* Override any gcc2 internal prototype to avoid an error. */
4259 #ifdef __cplusplus
4260 extern "C"
4261 #endif
4262 /* We use char because int might match the return type of a gcc2
4263 builtin and then its argument prototype would still apply. */
4264 char dnet_ntoa ();
4266 main ()
4268 dnet_ntoa ();
4270 return 0;
4272 _ACEOF
4273 rm -f conftest.$ac_objext conftest$ac_exeext
4274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4275 (eval $ac_link) 2>&5
4276 ac_status=$?
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); } &&
4279 { ac_try='test -s conftest$ac_exeext'
4280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4281 (eval $ac_try) 2>&5
4282 ac_status=$?
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); }; }; then
4285 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4286 else
4287 echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4290 ac_cv_lib_dnet_stub_dnet_ntoa=no
4292 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4293 LIBS=$ac_check_lib_save_LIBS
4295 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4296 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
4297 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4298 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4304 LIBS="$ac_xsave_LIBS"
4306 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4307 # to get the SysV transport functions.
4308 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4309 # needs -lnsl.
4310 # The nsl library prevents programs from opening the X display
4311 # on Irix 5.2, according to T.E. Dickey.
4312 # The functions gethostbyname, getservbyname, and inet_addr are
4313 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4314 echo "$as_me:$LINENO: checking for gethostbyname" >&5
4315 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4316 if test "${ac_cv_func_gethostbyname+set}" = set; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
4318 else
4319 cat >conftest.$ac_ext <<_ACEOF
4320 #line $LINENO "configure"
4321 /* confdefs.h. */
4322 _ACEOF
4323 cat confdefs.h >>conftest.$ac_ext
4324 cat >>conftest.$ac_ext <<_ACEOF
4325 /* end confdefs.h. */
4326 /* System header to define __stub macros and hopefully few prototypes,
4327 which can conflict with char gethostbyname (); below.
4328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4329 <limits.h> exists even on freestanding compilers. */
4330 #ifdef __STDC__
4331 # include <limits.h>
4332 #else
4333 # include <assert.h>
4334 #endif
4335 /* Override any gcc2 internal prototype to avoid an error. */
4336 #ifdef __cplusplus
4337 extern "C"
4339 #endif
4340 /* We use char because int might match the return type of a gcc2
4341 builtin and then its argument prototype would still apply. */
4342 char gethostbyname ();
4343 /* The GNU C library defines this for functions which it implements
4344 to always fail with ENOSYS. Some functions are actually named
4345 something starting with __ and the normal name is an alias. */
4346 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4347 choke me
4348 #else
4349 char (*f) () = gethostbyname;
4350 #endif
4351 #ifdef __cplusplus
4353 #endif
4356 main ()
4358 return f != gethostbyname;
4360 return 0;
4362 _ACEOF
4363 rm -f conftest.$ac_objext conftest$ac_exeext
4364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4365 (eval $ac_link) 2>&5
4366 ac_status=$?
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } &&
4369 { ac_try='test -s conftest$ac_exeext'
4370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4371 (eval $ac_try) 2>&5
4372 ac_status=$?
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); }; }; then
4375 ac_cv_func_gethostbyname=yes
4376 else
4377 echo "$as_me: failed program was:" >&5
4378 sed 's/^/| /' conftest.$ac_ext >&5
4380 ac_cv_func_gethostbyname=no
4382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4384 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4385 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4387 if test $ac_cv_func_gethostbyname = no; then
4388 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4389 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4390 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 else
4393 ac_check_lib_save_LIBS=$LIBS
4394 LIBS="-lnsl $LIBS"
4395 cat >conftest.$ac_ext <<_ACEOF
4396 #line $LINENO "configure"
4397 /* confdefs.h. */
4398 _ACEOF
4399 cat confdefs.h >>conftest.$ac_ext
4400 cat >>conftest.$ac_ext <<_ACEOF
4401 /* end confdefs.h. */
4403 /* Override any gcc2 internal prototype to avoid an error. */
4404 #ifdef __cplusplus
4405 extern "C"
4406 #endif
4407 /* We use char because int might match the return type of a gcc2
4408 builtin and then its argument prototype would still apply. */
4409 char gethostbyname ();
4411 main ()
4413 gethostbyname ();
4415 return 0;
4417 _ACEOF
4418 rm -f conftest.$ac_objext conftest$ac_exeext
4419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4420 (eval $ac_link) 2>&5
4421 ac_status=$?
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); } &&
4424 { ac_try='test -s conftest$ac_exeext'
4425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426 (eval $ac_try) 2>&5
4427 ac_status=$?
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); }; }; then
4430 ac_cv_lib_nsl_gethostbyname=yes
4431 else
4432 echo "$as_me: failed program was:" >&5
4433 sed 's/^/| /' conftest.$ac_ext >&5
4435 ac_cv_lib_nsl_gethostbyname=no
4437 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4438 LIBS=$ac_check_lib_save_LIBS
4440 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4441 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4442 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4443 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4446 if test $ac_cv_lib_nsl_gethostbyname = no; then
4447 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4448 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4449 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4450 echo $ECHO_N "(cached) $ECHO_C" >&6
4451 else
4452 ac_check_lib_save_LIBS=$LIBS
4453 LIBS="-lbsd $LIBS"
4454 cat >conftest.$ac_ext <<_ACEOF
4455 #line $LINENO "configure"
4456 /* confdefs.h. */
4457 _ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4462 /* Override any gcc2 internal prototype to avoid an error. */
4463 #ifdef __cplusplus
4464 extern "C"
4465 #endif
4466 /* We use char because int might match the return type of a gcc2
4467 builtin and then its argument prototype would still apply. */
4468 char gethostbyname ();
4470 main ()
4472 gethostbyname ();
4474 return 0;
4476 _ACEOF
4477 rm -f conftest.$ac_objext conftest$ac_exeext
4478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4479 (eval $ac_link) 2>&5
4480 ac_status=$?
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); } &&
4483 { ac_try='test -s conftest$ac_exeext'
4484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485 (eval $ac_try) 2>&5
4486 ac_status=$?
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; }; then
4489 ac_cv_lib_bsd_gethostbyname=yes
4490 else
4491 echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.$ac_ext >&5
4494 ac_cv_lib_bsd_gethostbyname=no
4496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4497 LIBS=$ac_check_lib_save_LIBS
4499 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4500 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4501 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4502 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4508 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4509 # socket/setsockopt and other routines are undefined under SCO ODT
4510 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4511 # on later versions), says Simon Leinen: it contains gethostby*
4512 # variants that don't use the name server (or something). -lsocket
4513 # must be given before -lnsl if both are needed. We assume that
4514 # if connect needs -lnsl, so does gethostbyname.
4515 echo "$as_me:$LINENO: checking for connect" >&5
4516 echo $ECHO_N "checking for connect... $ECHO_C" >&6
4517 if test "${ac_cv_func_connect+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 else
4520 cat >conftest.$ac_ext <<_ACEOF
4521 #line $LINENO "configure"
4522 /* confdefs.h. */
4523 _ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4527 /* System header to define __stub macros and hopefully few prototypes,
4528 which can conflict with char connect (); below.
4529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4530 <limits.h> exists even on freestanding compilers. */
4531 #ifdef __STDC__
4532 # include <limits.h>
4533 #else
4534 # include <assert.h>
4535 #endif
4536 /* Override any gcc2 internal prototype to avoid an error. */
4537 #ifdef __cplusplus
4538 extern "C"
4540 #endif
4541 /* We use char because int might match the return type of a gcc2
4542 builtin and then its argument prototype would still apply. */
4543 char connect ();
4544 /* The GNU C library defines this for functions which it implements
4545 to always fail with ENOSYS. Some functions are actually named
4546 something starting with __ and the normal name is an alias. */
4547 #if defined (__stub_connect) || defined (__stub___connect)
4548 choke me
4549 #else
4550 char (*f) () = connect;
4551 #endif
4552 #ifdef __cplusplus
4554 #endif
4557 main ()
4559 return f != connect;
4561 return 0;
4563 _ACEOF
4564 rm -f conftest.$ac_objext conftest$ac_exeext
4565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4566 (eval $ac_link) 2>&5
4567 ac_status=$?
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); } &&
4570 { ac_try='test -s conftest$ac_exeext'
4571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4572 (eval $ac_try) 2>&5
4573 ac_status=$?
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; }; then
4576 ac_cv_func_connect=yes
4577 else
4578 echo "$as_me: failed program was:" >&5
4579 sed 's/^/| /' conftest.$ac_ext >&5
4581 ac_cv_func_connect=no
4583 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4585 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4586 echo "${ECHO_T}$ac_cv_func_connect" >&6
4588 if test $ac_cv_func_connect = no; then
4589 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4590 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4591 if test "${ac_cv_lib_socket_connect+set}" = set; then
4592 echo $ECHO_N "(cached) $ECHO_C" >&6
4593 else
4594 ac_check_lib_save_LIBS=$LIBS
4595 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4596 cat >conftest.$ac_ext <<_ACEOF
4597 #line $LINENO "configure"
4598 /* confdefs.h. */
4599 _ACEOF
4600 cat confdefs.h >>conftest.$ac_ext
4601 cat >>conftest.$ac_ext <<_ACEOF
4602 /* end confdefs.h. */
4604 /* Override any gcc2 internal prototype to avoid an error. */
4605 #ifdef __cplusplus
4606 extern "C"
4607 #endif
4608 /* We use char because int might match the return type of a gcc2
4609 builtin and then its argument prototype would still apply. */
4610 char connect ();
4612 main ()
4614 connect ();
4616 return 0;
4618 _ACEOF
4619 rm -f conftest.$ac_objext conftest$ac_exeext
4620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4621 (eval $ac_link) 2>&5
4622 ac_status=$?
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } &&
4625 { ac_try='test -s conftest$ac_exeext'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627 (eval $ac_try) 2>&5
4628 ac_status=$?
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; }; then
4631 ac_cv_lib_socket_connect=yes
4632 else
4633 echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4636 ac_cv_lib_socket_connect=no
4638 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4639 LIBS=$ac_check_lib_save_LIBS
4641 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4642 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4643 if test $ac_cv_lib_socket_connect = yes; then
4644 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4649 # Guillermo Gomez says -lposix is necessary on A/UX.
4650 echo "$as_me:$LINENO: checking for remove" >&5
4651 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4652 if test "${ac_cv_func_remove+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 else
4655 cat >conftest.$ac_ext <<_ACEOF
4656 #line $LINENO "configure"
4657 /* confdefs.h. */
4658 _ACEOF
4659 cat confdefs.h >>conftest.$ac_ext
4660 cat >>conftest.$ac_ext <<_ACEOF
4661 /* end confdefs.h. */
4662 /* System header to define __stub macros and hopefully few prototypes,
4663 which can conflict with char remove (); below.
4664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4665 <limits.h> exists even on freestanding compilers. */
4666 #ifdef __STDC__
4667 # include <limits.h>
4668 #else
4669 # include <assert.h>
4670 #endif
4671 /* Override any gcc2 internal prototype to avoid an error. */
4672 #ifdef __cplusplus
4673 extern "C"
4675 #endif
4676 /* We use char because int might match the return type of a gcc2
4677 builtin and then its argument prototype would still apply. */
4678 char remove ();
4679 /* The GNU C library defines this for functions which it implements
4680 to always fail with ENOSYS. Some functions are actually named
4681 something starting with __ and the normal name is an alias. */
4682 #if defined (__stub_remove) || defined (__stub___remove)
4683 choke me
4684 #else
4685 char (*f) () = remove;
4686 #endif
4687 #ifdef __cplusplus
4689 #endif
4692 main ()
4694 return f != remove;
4696 return 0;
4698 _ACEOF
4699 rm -f conftest.$ac_objext conftest$ac_exeext
4700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4701 (eval $ac_link) 2>&5
4702 ac_status=$?
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); } &&
4705 { ac_try='test -s conftest$ac_exeext'
4706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707 (eval $ac_try) 2>&5
4708 ac_status=$?
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); }; }; then
4711 ac_cv_func_remove=yes
4712 else
4713 echo "$as_me: failed program was:" >&5
4714 sed 's/^/| /' conftest.$ac_ext >&5
4716 ac_cv_func_remove=no
4718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4720 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4721 echo "${ECHO_T}$ac_cv_func_remove" >&6
4723 if test $ac_cv_func_remove = no; then
4724 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4725 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4726 if test "${ac_cv_lib_posix_remove+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
4728 else
4729 ac_check_lib_save_LIBS=$LIBS
4730 LIBS="-lposix $LIBS"
4731 cat >conftest.$ac_ext <<_ACEOF
4732 #line $LINENO "configure"
4733 /* confdefs.h. */
4734 _ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4739 /* Override any gcc2 internal prototype to avoid an error. */
4740 #ifdef __cplusplus
4741 extern "C"
4742 #endif
4743 /* We use char because int might match the return type of a gcc2
4744 builtin and then its argument prototype would still apply. */
4745 char remove ();
4747 main ()
4749 remove ();
4751 return 0;
4753 _ACEOF
4754 rm -f conftest.$ac_objext conftest$ac_exeext
4755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4756 (eval $ac_link) 2>&5
4757 ac_status=$?
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } &&
4760 { ac_try='test -s conftest$ac_exeext'
4761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762 (eval $ac_try) 2>&5
4763 ac_status=$?
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); }; }; then
4766 ac_cv_lib_posix_remove=yes
4767 else
4768 echo "$as_me: failed program was:" >&5
4769 sed 's/^/| /' conftest.$ac_ext >&5
4771 ac_cv_lib_posix_remove=no
4773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4774 LIBS=$ac_check_lib_save_LIBS
4776 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4777 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4778 if test $ac_cv_lib_posix_remove = yes; then
4779 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4784 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4785 echo "$as_me:$LINENO: checking for shmat" >&5
4786 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4787 if test "${ac_cv_func_shmat+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 else
4790 cat >conftest.$ac_ext <<_ACEOF
4791 #line $LINENO "configure"
4792 /* confdefs.h. */
4793 _ACEOF
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h. */
4797 /* System header to define __stub macros and hopefully few prototypes,
4798 which can conflict with char shmat (); below.
4799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4800 <limits.h> exists even on freestanding compilers. */
4801 #ifdef __STDC__
4802 # include <limits.h>
4803 #else
4804 # include <assert.h>
4805 #endif
4806 /* Override any gcc2 internal prototype to avoid an error. */
4807 #ifdef __cplusplus
4808 extern "C"
4810 #endif
4811 /* We use char because int might match the return type of a gcc2
4812 builtin and then its argument prototype would still apply. */
4813 char shmat ();
4814 /* The GNU C library defines this for functions which it implements
4815 to always fail with ENOSYS. Some functions are actually named
4816 something starting with __ and the normal name is an alias. */
4817 #if defined (__stub_shmat) || defined (__stub___shmat)
4818 choke me
4819 #else
4820 char (*f) () = shmat;
4821 #endif
4822 #ifdef __cplusplus
4824 #endif
4827 main ()
4829 return f != shmat;
4831 return 0;
4833 _ACEOF
4834 rm -f conftest.$ac_objext conftest$ac_exeext
4835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4836 (eval $ac_link) 2>&5
4837 ac_status=$?
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } &&
4840 { ac_try='test -s conftest$ac_exeext'
4841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842 (eval $ac_try) 2>&5
4843 ac_status=$?
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); }; }; then
4846 ac_cv_func_shmat=yes
4847 else
4848 echo "$as_me: failed program was:" >&5
4849 sed 's/^/| /' conftest.$ac_ext >&5
4851 ac_cv_func_shmat=no
4853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4855 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4856 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4858 if test $ac_cv_func_shmat = no; then
4859 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4860 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4861 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4863 else
4864 ac_check_lib_save_LIBS=$LIBS
4865 LIBS="-lipc $LIBS"
4866 cat >conftest.$ac_ext <<_ACEOF
4867 #line $LINENO "configure"
4868 /* confdefs.h. */
4869 _ACEOF
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h. */
4874 /* Override any gcc2 internal prototype to avoid an error. */
4875 #ifdef __cplusplus
4876 extern "C"
4877 #endif
4878 /* We use char because int might match the return type of a gcc2
4879 builtin and then its argument prototype would still apply. */
4880 char shmat ();
4882 main ()
4884 shmat ();
4886 return 0;
4888 _ACEOF
4889 rm -f conftest.$ac_objext conftest$ac_exeext
4890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4891 (eval $ac_link) 2>&5
4892 ac_status=$?
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } &&
4895 { ac_try='test -s conftest$ac_exeext'
4896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4897 (eval $ac_try) 2>&5
4898 ac_status=$?
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }; }; then
4901 ac_cv_lib_ipc_shmat=yes
4902 else
4903 echo "$as_me: failed program was:" >&5
4904 sed 's/^/| /' conftest.$ac_ext >&5
4906 ac_cv_lib_ipc_shmat=no
4908 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4909 LIBS=$ac_check_lib_save_LIBS
4911 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4912 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4913 if test $ac_cv_lib_ipc_shmat = yes; then
4914 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4920 # Check for libraries that X11R6 Xt/Xaw programs need.
4921 ac_save_LDFLAGS=$LDFLAGS
4922 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4923 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4924 # check for ICE first), but we must link in the order -lSM -lICE or
4925 # we get undefined symbols. So assume we have SM if we have ICE.
4926 # These have to be linked with before -lX11, unlike the other
4927 # libraries we check for below, so use a different variable.
4928 # John Interrante, Karl Berry
4929 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4930 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4931 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4933 else
4934 ac_check_lib_save_LIBS=$LIBS
4935 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4936 cat >conftest.$ac_ext <<_ACEOF
4937 #line $LINENO "configure"
4938 /* confdefs.h. */
4939 _ACEOF
4940 cat confdefs.h >>conftest.$ac_ext
4941 cat >>conftest.$ac_ext <<_ACEOF
4942 /* end confdefs.h. */
4944 /* Override any gcc2 internal prototype to avoid an error. */
4945 #ifdef __cplusplus
4946 extern "C"
4947 #endif
4948 /* We use char because int might match the return type of a gcc2
4949 builtin and then its argument prototype would still apply. */
4950 char IceConnectionNumber ();
4952 main ()
4954 IceConnectionNumber ();
4956 return 0;
4958 _ACEOF
4959 rm -f conftest.$ac_objext conftest$ac_exeext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4961 (eval $ac_link) 2>&5
4962 ac_status=$?
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } &&
4965 { ac_try='test -s conftest$ac_exeext'
4966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967 (eval $ac_try) 2>&5
4968 ac_status=$?
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); }; }; then
4971 ac_cv_lib_ICE_IceConnectionNumber=yes
4972 else
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4976 ac_cv_lib_ICE_IceConnectionNumber=no
4978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4979 LIBS=$ac_check_lib_save_LIBS
4981 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4982 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4983 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4984 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4987 LDFLAGS=$ac_save_LDFLAGS
4991 echo "$as_me:$LINENO: checking for egrep" >&5
4992 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4993 if test "${ac_cv_prog_egrep+set}" = set; then
4994 echo $ECHO_N "(cached) $ECHO_C" >&6
4995 else
4996 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4997 then ac_cv_prog_egrep='grep -E'
4998 else ac_cv_prog_egrep='egrep'
5001 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5002 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5003 EGREP=$ac_cv_prog_egrep
5006 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5007 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5008 if test "${ac_cv_header_stdc+set}" = set; then
5009 echo $ECHO_N "(cached) $ECHO_C" >&6
5010 else
5011 cat >conftest.$ac_ext <<_ACEOF
5012 #line $LINENO "configure"
5013 /* confdefs.h. */
5014 _ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h. */
5018 #include <stdlib.h>
5019 #include <stdarg.h>
5020 #include <string.h>
5021 #include <float.h>
5024 main ()
5028 return 0;
5030 _ACEOF
5031 rm -f conftest.$ac_objext
5032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5033 (eval $ac_compile) 2>&5
5034 ac_status=$?
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } &&
5037 { ac_try='test -s conftest.$ac_objext'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 (eval $ac_try) 2>&5
5040 ac_status=$?
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; }; then
5043 ac_cv_header_stdc=yes
5044 else
5045 echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5048 ac_cv_header_stdc=no
5050 rm -f conftest.$ac_objext conftest.$ac_ext
5052 if test $ac_cv_header_stdc = yes; then
5053 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5054 cat >conftest.$ac_ext <<_ACEOF
5055 #line $LINENO "configure"
5056 /* confdefs.h. */
5057 _ACEOF
5058 cat confdefs.h >>conftest.$ac_ext
5059 cat >>conftest.$ac_ext <<_ACEOF
5060 /* end confdefs.h. */
5061 #include <string.h>
5063 _ACEOF
5064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5065 $EGREP "memchr" >/dev/null 2>&1; then
5067 else
5068 ac_cv_header_stdc=no
5070 rm -f conftest*
5074 if test $ac_cv_header_stdc = yes; then
5075 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5076 cat >conftest.$ac_ext <<_ACEOF
5077 #line $LINENO "configure"
5078 /* confdefs.h. */
5079 _ACEOF
5080 cat confdefs.h >>conftest.$ac_ext
5081 cat >>conftest.$ac_ext <<_ACEOF
5082 /* end confdefs.h. */
5083 #include <stdlib.h>
5085 _ACEOF
5086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5087 $EGREP "free" >/dev/null 2>&1; then
5089 else
5090 ac_cv_header_stdc=no
5092 rm -f conftest*
5096 if test $ac_cv_header_stdc = yes; then
5097 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5098 if test "$cross_compiling" = yes; then
5100 else
5101 cat >conftest.$ac_ext <<_ACEOF
5102 #line $LINENO "configure"
5103 /* confdefs.h. */
5104 _ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h. */
5108 #include <ctype.h>
5109 #if ((' ' & 0x0FF) == 0x020)
5110 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5111 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5112 #else
5113 # define ISLOWER(c) \
5114 (('a' <= (c) && (c) <= 'i') \
5115 || ('j' <= (c) && (c) <= 'r') \
5116 || ('s' <= (c) && (c) <= 'z'))
5117 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5118 #endif
5120 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5122 main ()
5124 int i;
5125 for (i = 0; i < 256; i++)
5126 if (XOR (islower (i), ISLOWER (i))
5127 || toupper (i) != TOUPPER (i))
5128 exit(2);
5129 exit (0);
5131 _ACEOF
5132 rm -f conftest$ac_exeext
5133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5134 (eval $ac_link) 2>&5
5135 ac_status=$?
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139 (eval $ac_try) 2>&5
5140 ac_status=$?
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); }; }; then
5144 else
5145 echo "$as_me: program exited with status $ac_status" >&5
5146 echo "$as_me: failed program was:" >&5
5147 sed 's/^/| /' conftest.$ac_ext >&5
5149 ( exit $ac_status )
5150 ac_cv_header_stdc=no
5152 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5156 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5157 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5158 if test $ac_cv_header_stdc = yes; then
5160 cat >>confdefs.h <<\_ACEOF
5161 #define STDC_HEADERS 1
5162 _ACEOF
5166 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5167 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5168 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5169 echo $ECHO_N "(cached) $ECHO_C" >&6
5170 else
5171 cat >conftest.$ac_ext <<_ACEOF
5172 #line $LINENO "configure"
5173 /* confdefs.h. */
5174 _ACEOF
5175 cat confdefs.h >>conftest.$ac_ext
5176 cat >>conftest.$ac_ext <<_ACEOF
5177 /* end confdefs.h. */
5178 #include <sys/types.h>
5179 #include <sys/wait.h>
5180 #ifndef WEXITSTATUS
5181 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5182 #endif
5183 #ifndef WIFEXITED
5184 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5185 #endif
5188 main ()
5190 int s;
5191 wait (&s);
5192 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5194 return 0;
5196 _ACEOF
5197 rm -f conftest.$ac_objext
5198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5199 (eval $ac_compile) 2>&5
5200 ac_status=$?
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); } &&
5203 { ac_try='test -s conftest.$ac_objext'
5204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5205 (eval $ac_try) 2>&5
5206 ac_status=$?
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; }; then
5209 ac_cv_header_sys_wait_h=yes
5210 else
5211 echo "$as_me: failed program was:" >&5
5212 sed 's/^/| /' conftest.$ac_ext >&5
5214 ac_cv_header_sys_wait_h=no
5216 rm -f conftest.$ac_objext conftest.$ac_ext
5218 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5219 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5220 if test $ac_cv_header_sys_wait_h = yes; then
5222 cat >>confdefs.h <<\_ACEOF
5223 #define HAVE_SYS_WAIT_H 1
5224 _ACEOF
5228 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5238 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5239 inttypes.h stdint.h unistd.h
5241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5242 echo "$as_me:$LINENO: checking for $ac_header" >&5
5243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5245 echo $ECHO_N "(cached) $ECHO_C" >&6
5246 else
5247 cat >conftest.$ac_ext <<_ACEOF
5248 #line $LINENO "configure"
5249 /* confdefs.h. */
5250 _ACEOF
5251 cat confdefs.h >>conftest.$ac_ext
5252 cat >>conftest.$ac_ext <<_ACEOF
5253 /* end confdefs.h. */
5254 $ac_includes_default
5256 #include <$ac_header>
5257 _ACEOF
5258 rm -f conftest.$ac_objext
5259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5260 (eval $ac_compile) 2>&5
5261 ac_status=$?
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } &&
5264 { ac_try='test -s conftest.$ac_objext'
5265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5266 (eval $ac_try) 2>&5
5267 ac_status=$?
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); }; }; then
5270 eval "$as_ac_Header=yes"
5271 else
5272 echo "$as_me: failed program was:" >&5
5273 sed 's/^/| /' conftest.$ac_ext >&5
5275 eval "$as_ac_Header=no"
5277 rm -f conftest.$ac_objext conftest.$ac_ext
5279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5280 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5282 cat >>confdefs.h <<_ACEOF
5283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5284 _ACEOF
5288 done
5312 for ac_header in ctype.h strings.h fcntl.h libgen.h locale.h process.h signal.h stdio.h time.h errno.h unistd.h sys/signal.h sys/param.h sys/select.h sys/stat.h sys/time.h sys/types.h sys/wait.h stdlib.h string.h malloc.h
5314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5316 echo "$as_me:$LINENO: checking for $ac_header" >&5
5317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5322 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5323 else
5324 # Is the header compilable?
5325 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5326 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5327 cat >conftest.$ac_ext <<_ACEOF
5328 #line $LINENO "configure"
5329 /* confdefs.h. */
5330 _ACEOF
5331 cat confdefs.h >>conftest.$ac_ext
5332 cat >>conftest.$ac_ext <<_ACEOF
5333 /* end confdefs.h. */
5334 $ac_includes_default
5335 #include <$ac_header>
5336 _ACEOF
5337 rm -f conftest.$ac_objext
5338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5339 (eval $ac_compile) 2>&5
5340 ac_status=$?
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); } &&
5343 { ac_try='test -s conftest.$ac_objext'
5344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345 (eval $ac_try) 2>&5
5346 ac_status=$?
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); }; }; then
5349 ac_header_compiler=yes
5350 else
5351 echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5354 ac_header_compiler=no
5356 rm -f conftest.$ac_objext conftest.$ac_ext
5357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5358 echo "${ECHO_T}$ac_header_compiler" >&6
5360 # Is the header present?
5361 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5362 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5363 cat >conftest.$ac_ext <<_ACEOF
5364 #line $LINENO "configure"
5365 /* confdefs.h. */
5366 _ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5370 #include <$ac_header>
5371 _ACEOF
5372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5374 ac_status=$?
5375 grep -v '^ *+' conftest.er1 >conftest.err
5376 rm -f conftest.er1
5377 cat conftest.err >&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); } >/dev/null; then
5380 if test -s conftest.err; then
5381 ac_cpp_err=$ac_c_preproc_warn_flag
5382 else
5383 ac_cpp_err=
5385 else
5386 ac_cpp_err=yes
5388 if test -z "$ac_cpp_err"; then
5389 ac_header_preproc=yes
5390 else
5391 echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5394 ac_header_preproc=no
5396 rm -f conftest.err conftest.$ac_ext
5397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5398 echo "${ECHO_T}$ac_header_preproc" >&6
5400 # So? What about this header?
5401 case $ac_header_compiler:$ac_header_preproc in
5402 yes:no )
5403 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5408 cat <<\_ASBOX
5409 ## ------------------------------------ ##
5410 ## Report this to bug-autoconf@gnu.org. ##
5411 ## ------------------------------------ ##
5412 _ASBOX
5414 sed "s/^/$as_me: WARNING: /" >&2
5416 no:yes )
5417 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5418 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5419 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5420 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5424 cat <<\_ASBOX
5425 ## ------------------------------------ ##
5426 ## Report this to bug-autoconf@gnu.org. ##
5427 ## ------------------------------------ ##
5428 _ASBOX
5430 sed "s/^/$as_me: WARNING: /" >&2
5432 esac
5433 echo "$as_me:$LINENO: checking for $ac_header" >&5
5434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5437 else
5438 eval "$as_ac_Header=$ac_header_preproc"
5440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5445 cat >>confdefs.h <<_ACEOF
5446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5447 _ACEOF
5451 done
5454 # Checks for typedefs, structures, and compiler characteristics.
5455 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5456 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5457 if test "${ac_cv_c_const+set}" = set; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5459 else
5460 cat >conftest.$ac_ext <<_ACEOF
5461 #line $LINENO "configure"
5462 /* confdefs.h. */
5463 _ACEOF
5464 cat confdefs.h >>conftest.$ac_ext
5465 cat >>conftest.$ac_ext <<_ACEOF
5466 /* end confdefs.h. */
5469 main ()
5471 /* FIXME: Include the comments suggested by Paul. */
5472 #ifndef __cplusplus
5473 /* Ultrix mips cc rejects this. */
5474 typedef int charset[2];
5475 const charset x;
5476 /* SunOS 4.1.1 cc rejects this. */
5477 char const *const *ccp;
5478 char **p;
5479 /* NEC SVR4.0.2 mips cc rejects this. */
5480 struct point {int x, y;};
5481 static struct point const zero = {0,0};
5482 /* AIX XL C 1.02.0.0 rejects this.
5483 It does not let you subtract one const X* pointer from another in
5484 an arm of an if-expression whose if-part is not a constant
5485 expression */
5486 const char *g = "string";
5487 ccp = &g + (g ? g-g : 0);
5488 /* HPUX 7.0 cc rejects these. */
5489 ++ccp;
5490 p = (char**) ccp;
5491 ccp = (char const *const *) p;
5492 { /* SCO 3.2v4 cc rejects this. */
5493 char *t;
5494 char const *s = 0 ? (char *) 0 : (char const *) 0;
5496 *t++ = 0;
5498 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5499 int x[] = {25, 17};
5500 const int *foo = &x[0];
5501 ++foo;
5503 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5504 typedef const int *iptr;
5505 iptr p = 0;
5506 ++p;
5508 { /* AIX XL C 1.02.0.0 rejects this saying
5509 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5510 struct s { int j; const int *ap[3]; };
5511 struct s *b; b->j = 5;
5513 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5514 const int foo = 10;
5516 #endif
5519 return 0;
5521 _ACEOF
5522 rm -f conftest.$ac_objext
5523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5524 (eval $ac_compile) 2>&5
5525 ac_status=$?
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); } &&
5528 { ac_try='test -s conftest.$ac_objext'
5529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530 (eval $ac_try) 2>&5
5531 ac_status=$?
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; }; then
5534 ac_cv_c_const=yes
5535 else
5536 echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5539 ac_cv_c_const=no
5541 rm -f conftest.$ac_objext conftest.$ac_ext
5543 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5544 echo "${ECHO_T}$ac_cv_c_const" >&6
5545 if test $ac_cv_c_const = no; then
5547 cat >>confdefs.h <<\_ACEOF
5548 #define const
5549 _ACEOF
5553 echo "$as_me:$LINENO: checking for inline" >&5
5554 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5555 if test "${ac_cv_c_inline+set}" = set; then
5556 echo $ECHO_N "(cached) $ECHO_C" >&6
5557 else
5558 ac_cv_c_inline=no
5559 for ac_kw in inline __inline__ __inline; do
5560 cat >conftest.$ac_ext <<_ACEOF
5561 #line $LINENO "configure"
5562 /* confdefs.h. */
5563 _ACEOF
5564 cat confdefs.h >>conftest.$ac_ext
5565 cat >>conftest.$ac_ext <<_ACEOF
5566 /* end confdefs.h. */
5567 #ifndef __cplusplus
5568 typedef int foo_t;
5569 static $ac_kw foo_t static_foo () {return 0; }
5570 $ac_kw foo_t foo () {return 0; }
5571 #endif
5573 _ACEOF
5574 rm -f conftest.$ac_objext
5575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5576 (eval $ac_compile) 2>&5
5577 ac_status=$?
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } &&
5580 { ac_try='test -s conftest.$ac_objext'
5581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5582 (eval $ac_try) 2>&5
5583 ac_status=$?
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); }; }; then
5586 ac_cv_c_inline=$ac_kw; break
5587 else
5588 echo "$as_me: failed program was:" >&5
5589 sed 's/^/| /' conftest.$ac_ext >&5
5592 rm -f conftest.$ac_objext conftest.$ac_ext
5593 done
5596 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5597 echo "${ECHO_T}$ac_cv_c_inline" >&6
5598 case $ac_cv_c_inline in
5599 inline | yes) ;;
5601 cat >>confdefs.h <<\_ACEOF
5602 #define inline
5603 _ACEOF
5605 *) cat >>confdefs.h <<_ACEOF
5606 #define inline $ac_cv_c_inline
5607 _ACEOF
5609 esac
5611 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5612 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5613 if test "${ac_cv_header_time+set}" = set; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 else
5616 cat >conftest.$ac_ext <<_ACEOF
5617 #line $LINENO "configure"
5618 /* confdefs.h. */
5619 _ACEOF
5620 cat confdefs.h >>conftest.$ac_ext
5621 cat >>conftest.$ac_ext <<_ACEOF
5622 /* end confdefs.h. */
5623 #include <sys/types.h>
5624 #include <sys/time.h>
5625 #include <time.h>
5628 main ()
5630 if ((struct tm *) 0)
5631 return 0;
5633 return 0;
5635 _ACEOF
5636 rm -f conftest.$ac_objext
5637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5638 (eval $ac_compile) 2>&5
5639 ac_status=$?
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); } &&
5642 { ac_try='test -s conftest.$ac_objext'
5643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5644 (eval $ac_try) 2>&5
5645 ac_status=$?
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); }; }; then
5648 ac_cv_header_time=yes
5649 else
5650 echo "$as_me: failed program was:" >&5
5651 sed 's/^/| /' conftest.$ac_ext >&5
5653 ac_cv_header_time=no
5655 rm -f conftest.$ac_objext conftest.$ac_ext
5657 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5658 echo "${ECHO_T}$ac_cv_header_time" >&6
5659 if test $ac_cv_header_time = yes; then
5661 cat >>confdefs.h <<\_ACEOF
5662 #define TIME_WITH_SYS_TIME 1
5663 _ACEOF
5667 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5668 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5669 if test "${ac_cv_struct_tm+set}" = set; then
5670 echo $ECHO_N "(cached) $ECHO_C" >&6
5671 else
5672 cat >conftest.$ac_ext <<_ACEOF
5673 #line $LINENO "configure"
5674 /* confdefs.h. */
5675 _ACEOF
5676 cat confdefs.h >>conftest.$ac_ext
5677 cat >>conftest.$ac_ext <<_ACEOF
5678 /* end confdefs.h. */
5679 #include <sys/types.h>
5680 #include <time.h>
5683 main ()
5685 struct tm *tp; tp->tm_sec;
5687 return 0;
5689 _ACEOF
5690 rm -f conftest.$ac_objext
5691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5692 (eval $ac_compile) 2>&5
5693 ac_status=$?
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); } &&
5696 { ac_try='test -s conftest.$ac_objext'
5697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5698 (eval $ac_try) 2>&5
5699 ac_status=$?
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); }; }; then
5702 ac_cv_struct_tm=time.h
5703 else
5704 echo "$as_me: failed program was:" >&5
5705 sed 's/^/| /' conftest.$ac_ext >&5
5707 ac_cv_struct_tm=sys/time.h
5709 rm -f conftest.$ac_objext conftest.$ac_ext
5711 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5712 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5713 if test $ac_cv_struct_tm = sys/time.h; then
5715 cat >>confdefs.h <<\_ACEOF
5716 #define TM_IN_SYS_TIME 1
5717 _ACEOF
5722 # Checks for library functions.
5723 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5724 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5725 if test "${ac_cv_type_signal+set}" = set; then
5726 echo $ECHO_N "(cached) $ECHO_C" >&6
5727 else
5728 cat >conftest.$ac_ext <<_ACEOF
5729 #line $LINENO "configure"
5730 /* confdefs.h. */
5731 _ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h. */
5735 #include <sys/types.h>
5736 #include <signal.h>
5737 #ifdef signal
5738 # undef signal
5739 #endif
5740 #ifdef __cplusplus
5741 extern "C" void (*signal (int, void (*)(int)))(int);
5742 #else
5743 void (*signal ()) ();
5744 #endif
5747 main ()
5749 int i;
5751 return 0;
5753 _ACEOF
5754 rm -f conftest.$ac_objext
5755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5756 (eval $ac_compile) 2>&5
5757 ac_status=$?
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } &&
5760 { ac_try='test -s conftest.$ac_objext'
5761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5762 (eval $ac_try) 2>&5
5763 ac_status=$?
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); }; }; then
5766 ac_cv_type_signal=void
5767 else
5768 echo "$as_me: failed program was:" >&5
5769 sed 's/^/| /' conftest.$ac_ext >&5
5771 ac_cv_type_signal=int
5773 rm -f conftest.$ac_objext conftest.$ac_ext
5775 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5776 echo "${ECHO_T}$ac_cv_type_signal" >&6
5778 cat >>confdefs.h <<_ACEOF
5779 #define RETSIGTYPE $ac_cv_type_signal
5780 _ACEOF
5795 for ac_func in setlocale sigaction strftime gettimeofday memset strcasecmp strchr strcspn strdup strncasecmp select strstr
5797 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5798 echo "$as_me:$LINENO: checking for $ac_func" >&5
5799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5800 if eval "test \"\${$as_ac_var+set}\" = set"; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5802 else
5803 cat >conftest.$ac_ext <<_ACEOF
5804 #line $LINENO "configure"
5805 /* confdefs.h. */
5806 _ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h. */
5810 /* System header to define __stub macros and hopefully few prototypes,
5811 which can conflict with char $ac_func (); below.
5812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5813 <limits.h> exists even on freestanding compilers. */
5814 #ifdef __STDC__
5815 # include <limits.h>
5816 #else
5817 # include <assert.h>
5818 #endif
5819 /* Override any gcc2 internal prototype to avoid an error. */
5820 #ifdef __cplusplus
5821 extern "C"
5823 #endif
5824 /* We use char because int might match the return type of a gcc2
5825 builtin and then its argument prototype would still apply. */
5826 char $ac_func ();
5827 /* The GNU C library defines this for functions which it implements
5828 to always fail with ENOSYS. Some functions are actually named
5829 something starting with __ and the normal name is an alias. */
5830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5831 choke me
5832 #else
5833 char (*f) () = $ac_func;
5834 #endif
5835 #ifdef __cplusplus
5837 #endif
5840 main ()
5842 return f != $ac_func;
5844 return 0;
5846 _ACEOF
5847 rm -f conftest.$ac_objext conftest$ac_exeext
5848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5849 (eval $ac_link) 2>&5
5850 ac_status=$?
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); } &&
5853 { ac_try='test -s conftest$ac_exeext'
5854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5855 (eval $ac_try) 2>&5
5856 ac_status=$?
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); }; }; then
5859 eval "$as_ac_var=yes"
5860 else
5861 echo "$as_me: failed program was:" >&5
5862 sed 's/^/| /' conftest.$ac_ext >&5
5864 eval "$as_ac_var=no"
5866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5870 if test `eval echo '${'$as_ac_var'}'` = yes; then
5871 cat >>confdefs.h <<_ACEOF
5872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5873 _ACEOF
5876 done
5879 CFLAGS="$CFLAGS $X_CFLAGS"
5880 CXXFLAGS="$CXXFLAGS $X_CFLAGS"
5881 LDFLAGS="$LDFLAGS $X_LIBS $X_PRE_LIBS"
5884 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
5885 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
5886 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 else
5889 ac_check_lib_save_LIBS=$LIBS
5890 LIBS="-lX11 $LIBS"
5891 cat >conftest.$ac_ext <<_ACEOF
5892 #line $LINENO "configure"
5893 /* confdefs.h. */
5894 _ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5899 /* Override any gcc2 internal prototype to avoid an error. */
5900 #ifdef __cplusplus
5901 extern "C"
5902 #endif
5903 /* We use char because int might match the return type of a gcc2
5904 builtin and then its argument prototype would still apply. */
5905 char XOpenDisplay ();
5907 main ()
5909 XOpenDisplay ();
5911 return 0;
5913 _ACEOF
5914 rm -f conftest.$ac_objext conftest$ac_exeext
5915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5916 (eval $ac_link) 2>&5
5917 ac_status=$?
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } &&
5920 { ac_try='test -s conftest$ac_exeext'
5921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922 (eval $ac_try) 2>&5
5923 ac_status=$?
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); }; }; then
5926 ac_cv_lib_X11_XOpenDisplay=yes
5927 else
5928 echo "$as_me: failed program was:" >&5
5929 sed 's/^/| /' conftest.$ac_ext >&5
5931 ac_cv_lib_X11_XOpenDisplay=no
5933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5934 LIBS=$ac_check_lib_save_LIBS
5936 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
5937 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
5938 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
5939 LIBS="-lX11"
5940 else
5941 { { echo "$as_me:$LINENO: error: XOpenDisplay not found in -lX11" >&5
5942 echo "$as_me: error: XOpenDisplay not found in -lX11" >&2;}
5943 { (exit 1); exit 1; }; }
5947 echo "$as_me:$LINENO: checking for XMissingExtension in -lXext" >&5
5948 echo $ECHO_N "checking for XMissingExtension in -lXext... $ECHO_C" >&6
5949 if test "${ac_cv_lib_Xext_XMissingExtension+set}" = set; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5951 else
5952 ac_check_lib_save_LIBS=$LIBS
5953 LIBS="-lXext $LIBS"
5954 cat >conftest.$ac_ext <<_ACEOF
5955 #line $LINENO "configure"
5956 /* confdefs.h. */
5957 _ACEOF
5958 cat confdefs.h >>conftest.$ac_ext
5959 cat >>conftest.$ac_ext <<_ACEOF
5960 /* end confdefs.h. */
5962 /* Override any gcc2 internal prototype to avoid an error. */
5963 #ifdef __cplusplus
5964 extern "C"
5965 #endif
5966 /* We use char because int might match the return type of a gcc2
5967 builtin and then its argument prototype would still apply. */
5968 char XMissingExtension ();
5970 main ()
5972 XMissingExtension ();
5974 return 0;
5976 _ACEOF
5977 rm -f conftest.$ac_objext conftest$ac_exeext
5978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5979 (eval $ac_link) 2>&5
5980 ac_status=$?
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } &&
5983 { ac_try='test -s conftest$ac_exeext'
5984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5985 (eval $ac_try) 2>&5
5986 ac_status=$?
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); }; }; then
5989 ac_cv_lib_Xext_XMissingExtension=yes
5990 else
5991 echo "$as_me: failed program was:" >&5
5992 sed 's/^/| /' conftest.$ac_ext >&5
5994 ac_cv_lib_Xext_XMissingExtension=no
5996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5997 LIBS=$ac_check_lib_save_LIBS
5999 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XMissingExtension" >&5
6000 echo "${ECHO_T}$ac_cv_lib_Xext_XMissingExtension" >&6
6001 if test $ac_cv_lib_Xext_XMissingExtension = yes; then
6002 LIBS="$LIBS -lXext"
6003 else
6004 { { echo "$as_me:$LINENO: error: XMissingExtension not found in -lXext" >&5
6005 echo "$as_me: error: XMissingExtension not found in -lXext" >&2;}
6006 { (exit 1); exit 1; }; }
6010 blackbox_inc=""
6011 echo "$as_me:$LINENO: checking for blackbox headers" >&5
6012 echo $ECHO_N "checking for blackbox headers... $ECHO_C" >&6
6014 # Check whether --with-bt-includes or --without-bt-includes was given.
6015 if test "${with_bt_includes+set}" = set; then
6016 withval="$with_bt_includes"
6017 ac_blackbox_inc=$withval
6018 else
6019 ac_blackbox_inc=""
6022 # if the blackbox headers directory was specified, make sure we have it
6023 for btdir in $ac_blackbox_inc /usr/local /usr/lib /usr; do
6024 if test -f "$btdir/Application.hh"; then
6025 blackbox_inc=$btdir
6026 break
6028 done
6030 if test -z "$blackbox_inc"; then
6031 echo "$as_me:$LINENO: result: Not found" >&5
6032 echo "${ECHO_T}Not found" >&6
6033 echo
6034 echo "Couldn't find your blackbox library headers."
6035 echo "Use --with-bt-includes=dir option to fix this."
6036 echo
6037 exit 1
6040 echo "$as_me:$LINENO: result: $blackbox_inc" >&5
6041 echo "${ECHO_T}$blackbox_inc" >&6
6042 CXXFLAGS="$CXXFLAGS -I$blackbox_inc"
6045 blackbox_lib=""
6046 echo "$as_me:$LINENO: checking for blackbox lib" >&5
6047 echo $ECHO_N "checking for blackbox lib... $ECHO_C" >&6
6049 # Check whether --with-bt-lib or --without-bt-lib was given.
6050 if test "${with_bt_lib+set}" = set; then
6051 withval="$with_bt_lib"
6052 ac_blackbox_lib=$withval
6053 else
6054 ac_blackbox_lib=""
6057 # if the blackbox headers directory was specified, make sure we have it
6058 for btdir in $ac_blackbox_lib /usr/local /usr/lib /usr; do
6059 if test -f "$btdir/libbt.a"; then
6060 blackbox_lib=$btdir
6061 break
6063 done
6065 if test -z "$blackbox_lib"; then
6066 echo "$as_me:$LINENO: result: Not found" >&5
6067 echo "${ECHO_T}Not found" >&6
6068 echo
6069 echo "Couldn't find your blackbox library."
6070 echo "Use --with-bt-lib=dir option to fix this."
6071 echo
6072 exit 1
6075 echo "$as_me:$LINENO: result: $blackbox_lib" >&5
6076 echo "${ECHO_T}$blackbox_lib" >&6
6077 LIBS="$LIBS -L$blackbox_lib -lbt"
6079 ac_config_headers="$ac_config_headers config.h"
6082 echo "$as_me:$LINENO: result: " >&5
6083 echo "${ECHO_T}" >&6
6084 echo "$as_me:$LINENO: result: $PACKAGE version $VERSION configured successfully." >&5
6085 echo "${ECHO_T} $PACKAGE version $VERSION configured successfully." >&6
6086 echo "$as_me:$LINENO: result: " >&5
6087 echo "${ECHO_T}" >&6
6088 echo "$as_me:$LINENO: result: Using '$prefix' for installation." >&5
6089 echo "${ECHO_T}Using '$prefix' for installation." >&6
6090 echo "$as_me:$LINENO: result: Using '$CXX' for C++ compiler." >&5
6091 echo "${ECHO_T}Using '$CXX' for C++ compiler." >&6
6092 echo "$as_me:$LINENO: result: Building with '$CXXFLAGS' for C++ compiler flags." >&5
6093 echo "${ECHO_T}Building with '$CXXFLAGS' for C++ compiler flags." >&6
6094 echo "$as_me:$LINENO: result: Building with '$LIBS' for linker flags." >&5
6095 echo "${ECHO_T}Building with '$LIBS' for linker flags." >&6
6096 echo "$as_me:$LINENO: result: " >&5
6097 echo "${ECHO_T}" >&6
6100 ac_config_files="$ac_config_files version.h Makefile src/Makefile doc/Makefile data/Makefile doc/bbkeys.1"
6101 cat >confcache <<\_ACEOF
6102 # This file is a shell script that caches the results of configure
6103 # tests run on this system so they can be shared between configure
6104 # scripts and configure runs, see configure's option --config-cache.
6105 # It is not useful on other systems. If it contains results you don't
6106 # want to keep, you may remove or edit it.
6108 # config.status only pays attention to the cache file if you give it
6109 # the --recheck option to rerun configure.
6111 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6112 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6113 # following values.
6115 _ACEOF
6117 # The following way of writing the cache mishandles newlines in values,
6118 # but we know of no workaround that is simple, portable, and efficient.
6119 # So, don't put newlines in cache variables' values.
6120 # Ultrix sh set writes to stderr and can't be redirected directly,
6121 # and sets the high bit in the cache file unless we assign to the vars.
6123 (set) 2>&1 |
6124 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6125 *ac_space=\ *)
6126 # `set' does not quote correctly, so add quotes (double-quote
6127 # substitution turns \\\\ into \\, and sed turns \\ into \).
6128 sed -n \
6129 "s/'/'\\\\''/g;
6130 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6133 # `set' quotes correctly as required by POSIX, so do not add quotes.
6134 sed -n \
6135 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6137 esac;
6139 sed '
6140 t clear
6141 : clear
6142 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6143 t end
6144 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6145 : end' >>confcache
6146 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6147 if test -w $cache_file; then
6148 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6149 cat confcache >$cache_file
6150 else
6151 echo "not updating unwritable cache $cache_file"
6154 rm -f confcache
6156 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6157 # Let make expand exec_prefix.
6158 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6160 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6161 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6162 # trailing colons and then remove the whole line if VPATH becomes empty
6163 # (actually we leave an empty line to preserve line numbers).
6164 if test "x$srcdir" = x.; then
6165 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6166 s/:*\$(srcdir):*/:/;
6167 s/:*\${srcdir}:*/:/;
6168 s/:*@srcdir@:*/:/;
6169 s/^\([^=]*=[ ]*\):*/\1/;
6170 s/:*$//;
6171 s/^[^=]*=[ ]*$//;
6175 DEFS=-DHAVE_CONFIG_H
6177 ac_libobjs=
6178 ac_ltlibobjs=
6179 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6180 # 1. Remove the extension, and $U if already installed.
6181 ac_i=`echo "$ac_i" |
6182 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6183 # 2. Add them.
6184 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6185 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6186 done
6187 LIBOBJS=$ac_libobjs
6189 LTLIBOBJS=$ac_ltlibobjs
6192 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6193 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
6194 Usually this means the macro was only invoked conditionally." >&5
6195 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
6196 Usually this means the macro was only invoked conditionally." >&2;}
6197 { (exit 1); exit 1; }; }
6199 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6200 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6201 Usually this means the macro was only invoked conditionally." >&5
6202 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6203 Usually this means the macro was only invoked conditionally." >&2;}
6204 { (exit 1); exit 1; }; }
6206 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6207 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6208 Usually this means the macro was only invoked conditionally." >&5
6209 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6210 Usually this means the macro was only invoked conditionally." >&2;}
6211 { (exit 1); exit 1; }; }
6213 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
6214 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
6215 Usually this means the macro was only invoked conditionally." >&5
6216 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
6217 Usually this means the macro was only invoked conditionally." >&2;}
6218 { (exit 1); exit 1; }; }
6221 : ${CONFIG_STATUS=./config.status}
6222 ac_clean_files_save=$ac_clean_files
6223 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6224 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6225 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6226 cat >$CONFIG_STATUS <<_ACEOF
6227 #! $SHELL
6228 # Generated by $as_me.
6229 # Run this file to recreate the current configuration.
6230 # Compiler output produced by configure, useful for debugging
6231 # configure, is in config.log if it exists.
6233 debug=false
6234 ac_cs_recheck=false
6235 ac_cs_silent=false
6236 SHELL=\${CONFIG_SHELL-$SHELL}
6237 _ACEOF
6239 cat >>$CONFIG_STATUS <<\_ACEOF
6240 ## --------------------- ##
6241 ## M4sh Initialization. ##
6242 ## --------------------- ##
6244 # Be Bourne compatible
6245 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6246 emulate sh
6247 NULLCMD=:
6248 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6249 # is contrary to our usage. Disable this feature.
6250 alias -g '${1+"$@"}'='"$@"'
6251 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6252 set -o posix
6255 # Support unset when possible.
6256 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6257 as_unset=unset
6258 else
6259 as_unset=false
6263 # Work around bugs in pre-3.0 UWIN ksh.
6264 $as_unset ENV MAIL MAILPATH
6265 PS1='$ '
6266 PS2='> '
6267 PS4='+ '
6269 # NLS nuisances.
6270 for as_var in \
6271 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6272 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6273 LC_TELEPHONE LC_TIME
6275 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6276 eval $as_var=C; export $as_var
6277 else
6278 $as_unset $as_var
6280 done
6282 # Required to use basename.
6283 if expr a : '\(a\)' >/dev/null 2>&1; then
6284 as_expr=expr
6285 else
6286 as_expr=false
6289 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6290 as_basename=basename
6291 else
6292 as_basename=false
6296 # Name of the executable.
6297 as_me=`$as_basename "$0" ||
6298 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6299 X"$0" : 'X\(//\)$' \| \
6300 X"$0" : 'X\(/\)$' \| \
6301 . : '\(.\)' 2>/dev/null ||
6302 echo X/"$0" |
6303 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6304 /^X\/\(\/\/\)$/{ s//\1/; q; }
6305 /^X\/\(\/\).*/{ s//\1/; q; }
6306 s/.*/./; q'`
6309 # PATH needs CR, and LINENO needs CR and PATH.
6310 # Avoid depending upon Character Ranges.
6311 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6312 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6313 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6314 as_cr_digits='0123456789'
6315 as_cr_alnum=$as_cr_Letters$as_cr_digits
6317 # The user is always right.
6318 if test "${PATH_SEPARATOR+set}" != set; then
6319 echo "#! /bin/sh" >conf$$.sh
6320 echo "exit 0" >>conf$$.sh
6321 chmod +x conf$$.sh
6322 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6323 PATH_SEPARATOR=';'
6324 else
6325 PATH_SEPARATOR=:
6327 rm -f conf$$.sh
6331 as_lineno_1=$LINENO
6332 as_lineno_2=$LINENO
6333 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6334 test "x$as_lineno_1" != "x$as_lineno_2" &&
6335 test "x$as_lineno_3" = "x$as_lineno_2" || {
6336 # Find who we are. Look in the path if we contain no path at all
6337 # relative or not.
6338 case $0 in
6339 *[\\/]* ) as_myself=$0 ;;
6340 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341 for as_dir in $PATH
6343 IFS=$as_save_IFS
6344 test -z "$as_dir" && as_dir=.
6345 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6346 done
6349 esac
6350 # We did not find ourselves, most probably we were run as `sh COMMAND'
6351 # in which case we are not to be found in the path.
6352 if test "x$as_myself" = x; then
6353 as_myself=$0
6355 if test ! -f "$as_myself"; then
6356 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6357 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6358 { (exit 1); exit 1; }; }
6360 case $CONFIG_SHELL in
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6365 IFS=$as_save_IFS
6366 test -z "$as_dir" && as_dir=.
6367 for as_base in sh bash ksh sh5; do
6368 case $as_dir in
6370 if ("$as_dir/$as_base" -c '
6371 as_lineno_1=$LINENO
6372 as_lineno_2=$LINENO
6373 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6374 test "x$as_lineno_1" != "x$as_lineno_2" &&
6375 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6376 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6377 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6378 CONFIG_SHELL=$as_dir/$as_base
6379 export CONFIG_SHELL
6380 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6381 fi;;
6382 esac
6383 done
6384 done
6386 esac
6388 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6389 # uniformly replaced by the line number. The first 'sed' inserts a
6390 # line-number line before each line; the second 'sed' does the real
6391 # work. The second script uses 'N' to pair each line-number line
6392 # with the numbered line, and appends trailing '-' during
6393 # substitution so that $LINENO is not a special case at line end.
6394 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6395 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6396 sed '=' <$as_myself |
6397 sed '
6399 s,$,-,
6400 : loop
6401 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6402 t loop
6403 s,-$,,
6404 s,^['$as_cr_digits']*\n,,
6405 ' >$as_me.lineno &&
6406 chmod +x $as_me.lineno ||
6407 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6408 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6409 { (exit 1); exit 1; }; }
6411 # Don't try to exec as it changes $[0], causing all sort of problems
6412 # (the dirname of $[0] is not the place where we might find the
6413 # original and so on. Autoconf is especially sensible to this).
6414 . ./$as_me.lineno
6415 # Exit status is that of the last command.
6416 exit
6420 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6421 *c*,-n*) ECHO_N= ECHO_C='
6422 ' ECHO_T=' ' ;;
6423 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6424 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6425 esac
6427 if expr a : '\(a\)' >/dev/null 2>&1; then
6428 as_expr=expr
6429 else
6430 as_expr=false
6433 rm -f conf$$ conf$$.exe conf$$.file
6434 echo >conf$$.file
6435 if ln -s conf$$.file conf$$ 2>/dev/null; then
6436 # We could just check for DJGPP; but this test a) works b) is more generic
6437 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6438 if test -f conf$$.exe; then
6439 # Don't use ln at all; we don't have any links
6440 as_ln_s='cp -p'
6441 else
6442 as_ln_s='ln -s'
6444 elif ln conf$$.file conf$$ 2>/dev/null; then
6445 as_ln_s=ln
6446 else
6447 as_ln_s='cp -p'
6449 rm -f conf$$ conf$$.exe conf$$.file
6451 if mkdir -p . 2>/dev/null; then
6452 as_mkdir_p=:
6453 else
6454 as_mkdir_p=false
6457 as_executable_p="test -f"
6459 # Sed expression to map a string onto a valid CPP name.
6460 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6462 # Sed expression to map a string onto a valid variable name.
6463 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6466 # IFS
6467 # We need space, tab and new line, in precisely that order.
6468 as_nl='
6470 IFS=" $as_nl"
6472 # CDPATH.
6473 $as_unset CDPATH
6475 exec 6>&1
6477 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6478 # report actual input values of CONFIG_FILES etc. instead of their
6479 # values after options handling. Logging --version etc. is OK.
6480 exec 5>>config.log
6482 echo
6483 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6484 ## Running $as_me. ##
6485 _ASBOX
6486 } >&5
6487 cat >&5 <<_CSEOF
6489 This file was extended by $as_me, which was
6490 generated by GNU Autoconf 2.57. Invocation command line was
6492 CONFIG_FILES = $CONFIG_FILES
6493 CONFIG_HEADERS = $CONFIG_HEADERS
6494 CONFIG_LINKS = $CONFIG_LINKS
6495 CONFIG_COMMANDS = $CONFIG_COMMANDS
6496 $ $0 $@
6498 _CSEOF
6499 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6500 echo >&5
6501 _ACEOF
6503 # Files that config.status was made for.
6504 if test -n "$ac_config_files"; then
6505 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6508 if test -n "$ac_config_headers"; then
6509 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6512 if test -n "$ac_config_links"; then
6513 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6516 if test -n "$ac_config_commands"; then
6517 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6520 cat >>$CONFIG_STATUS <<\_ACEOF
6522 ac_cs_usage="\
6523 \`$as_me' instantiates files from templates according to the
6524 current configuration.
6526 Usage: $0 [OPTIONS] [FILE]...
6528 -h, --help print this help, then exit
6529 -V, --version print version number, then exit
6530 -q, --quiet do not print progress messages
6531 -d, --debug don't remove temporary files
6532 --recheck update $as_me by reconfiguring in the same conditions
6533 --file=FILE[:TEMPLATE]
6534 instantiate the configuration file FILE
6535 --header=FILE[:TEMPLATE]
6536 instantiate the configuration header FILE
6538 Configuration files:
6539 $config_files
6541 Configuration headers:
6542 $config_headers
6544 Configuration commands:
6545 $config_commands
6547 Report bugs to <bug-autoconf@gnu.org>."
6548 _ACEOF
6550 cat >>$CONFIG_STATUS <<_ACEOF
6551 ac_cs_version="\\
6552 config.status
6553 configured by $0, generated by GNU Autoconf 2.57,
6554 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6556 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6557 Free Software Foundation, Inc.
6558 This config.status script is free software; the Free Software Foundation
6559 gives unlimited permission to copy, distribute and modify it."
6560 srcdir=$srcdir
6561 INSTALL="$INSTALL"
6562 _ACEOF
6564 cat >>$CONFIG_STATUS <<\_ACEOF
6565 # If no file are specified by the user, then we need to provide default
6566 # value. By we need to know if files were specified by the user.
6567 ac_need_defaults=:
6568 while test $# != 0
6570 case $1 in
6571 --*=*)
6572 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6573 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6574 ac_shift=:
6577 ac_option=$1
6578 ac_optarg=$2
6579 ac_shift=shift
6581 *) # This is not an option, so the user has probably given explicit
6582 # arguments.
6583 ac_option=$1
6584 ac_need_defaults=false;;
6585 esac
6587 case $ac_option in
6588 # Handling of the options.
6589 _ACEOF
6590 cat >>$CONFIG_STATUS <<\_ACEOF
6591 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6592 ac_cs_recheck=: ;;
6593 --version | --vers* | -V )
6594 echo "$ac_cs_version"; exit 0 ;;
6595 --he | --h)
6596 # Conflict between --help and --header
6597 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6598 Try \`$0 --help' for more information." >&5
6599 echo "$as_me: error: ambiguous option: $1
6600 Try \`$0 --help' for more information." >&2;}
6601 { (exit 1); exit 1; }; };;
6602 --help | --hel | -h )
6603 echo "$ac_cs_usage"; exit 0 ;;
6604 --debug | --d* | -d )
6605 debug=: ;;
6606 --file | --fil | --fi | --f )
6607 $ac_shift
6608 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6609 ac_need_defaults=false;;
6610 --header | --heade | --head | --hea )
6611 $ac_shift
6612 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6613 ac_need_defaults=false;;
6614 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6615 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6616 ac_cs_silent=: ;;
6618 # This is an error.
6619 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6620 Try \`$0 --help' for more information." >&5
6621 echo "$as_me: error: unrecognized option: $1
6622 Try \`$0 --help' for more information." >&2;}
6623 { (exit 1); exit 1; }; } ;;
6625 *) ac_config_targets="$ac_config_targets $1" ;;
6627 esac
6628 shift
6629 done
6631 ac_configure_extra_args=
6633 if $ac_cs_silent; then
6634 exec 6>/dev/null
6635 ac_configure_extra_args="$ac_configure_extra_args --silent"
6638 _ACEOF
6639 cat >>$CONFIG_STATUS <<_ACEOF
6640 if \$ac_cs_recheck; then
6641 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6642 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6645 _ACEOF
6647 cat >>$CONFIG_STATUS <<_ACEOF
6649 # INIT-COMMANDS section.
6652 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6654 _ACEOF
6658 cat >>$CONFIG_STATUS <<\_ACEOF
6659 for ac_config_target in $ac_config_targets
6661 case "$ac_config_target" in
6662 # Handling of arguments.
6663 "version.h" ) CONFIG_FILES="$CONFIG_FILES version.h" ;;
6664 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6665 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6666 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
6667 "data/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
6668 "doc/bbkeys.1" ) CONFIG_FILES="$CONFIG_FILES doc/bbkeys.1" ;;
6669 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6670 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6671 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6672 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6673 { (exit 1); exit 1; }; };;
6674 esac
6675 done
6677 # If the user did not use the arguments to specify the items to instantiate,
6678 # then the envvar interface is used. Set only those that are not.
6679 # We use the long form for the default assignment because of an extremely
6680 # bizarre bug on SunOS 4.1.3.
6681 if $ac_need_defaults; then
6682 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6683 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6684 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6687 # Have a temporary directory for convenience. Make it in the build tree
6688 # simply because there is no reason to put it here, and in addition,
6689 # creating and moving files from /tmp can sometimes cause problems.
6690 # Create a temporary directory, and hook for its removal unless debugging.
6691 $debug ||
6693 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6694 trap '{ (exit 1); exit 1; }' 1 2 13 15
6697 # Create a (secure) tmp directory for tmp files.
6700 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6701 test -n "$tmp" && test -d "$tmp"
6702 } ||
6704 tmp=./confstat$$-$RANDOM
6705 (umask 077 && mkdir $tmp)
6706 } ||
6708 echo "$me: cannot create a temporary directory in ." >&2
6709 { (exit 1); exit 1; }
6712 _ACEOF
6714 cat >>$CONFIG_STATUS <<_ACEOF
6717 # CONFIG_FILES section.
6720 # No need to generate the scripts if there are no CONFIG_FILES.
6721 # This happens for instance when ./config.status config.h
6722 if test -n "\$CONFIG_FILES"; then
6723 # Protect against being on the right side of a sed subst in config.status.
6724 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6725 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6726 s,@SHELL@,$SHELL,;t t
6727 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6728 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6729 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6730 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6731 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6732 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6733 s,@exec_prefix@,$exec_prefix,;t t
6734 s,@prefix@,$prefix,;t t
6735 s,@program_transform_name@,$program_transform_name,;t t
6736 s,@bindir@,$bindir,;t t
6737 s,@sbindir@,$sbindir,;t t
6738 s,@libexecdir@,$libexecdir,;t t
6739 s,@datadir@,$datadir,;t t
6740 s,@sysconfdir@,$sysconfdir,;t t
6741 s,@sharedstatedir@,$sharedstatedir,;t t
6742 s,@localstatedir@,$localstatedir,;t t
6743 s,@libdir@,$libdir,;t t
6744 s,@includedir@,$includedir,;t t
6745 s,@oldincludedir@,$oldincludedir,;t t
6746 s,@infodir@,$infodir,;t t
6747 s,@mandir@,$mandir,;t t
6748 s,@build_alias@,$build_alias,;t t
6749 s,@host_alias@,$host_alias,;t t
6750 s,@target_alias@,$target_alias,;t t
6751 s,@DEFS@,$DEFS,;t t
6752 s,@ECHO_C@,$ECHO_C,;t t
6753 s,@ECHO_N@,$ECHO_N,;t t
6754 s,@ECHO_T@,$ECHO_T,;t t
6755 s,@LIBS@,$LIBS,;t t
6756 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6757 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6758 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6759 s,@CYGPATH_W@,$CYGPATH_W,;t t
6760 s,@PACKAGE@,$PACKAGE,;t t
6761 s,@VERSION@,$VERSION,;t t
6762 s,@ACLOCAL@,$ACLOCAL,;t t
6763 s,@AUTOCONF@,$AUTOCONF,;t t
6764 s,@AUTOMAKE@,$AUTOMAKE,;t t
6765 s,@AUTOHEADER@,$AUTOHEADER,;t t
6766 s,@MAKEINFO@,$MAKEINFO,;t t
6767 s,@AMTAR@,$AMTAR,;t t
6768 s,@install_sh@,$install_sh,;t t
6769 s,@STRIP@,$STRIP,;t t
6770 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6771 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6772 s,@AWK@,$AWK,;t t
6773 s,@SET_MAKE@,$SET_MAKE,;t t
6774 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
6775 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
6776 s,@MAINT@,$MAINT,;t t
6777 s,@regex_cmd@,$regex_cmd,;t t
6778 s,@CC@,$CC,;t t
6779 s,@CFLAGS@,$CFLAGS,;t t
6780 s,@LDFLAGS@,$LDFLAGS,;t t
6781 s,@CPPFLAGS@,$CPPFLAGS,;t t
6782 s,@ac_ct_CC@,$ac_ct_CC,;t t
6783 s,@EXEEXT@,$EXEEXT,;t t
6784 s,@OBJEXT@,$OBJEXT,;t t
6785 s,@DEPDIR@,$DEPDIR,;t t
6786 s,@am__include@,$am__include,;t t
6787 s,@am__quote@,$am__quote,;t t
6788 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6789 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6790 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6791 s,@CCDEPMODE@,$CCDEPMODE,;t t
6792 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
6793 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
6794 s,@CXX@,$CXX,;t t
6795 s,@CXXFLAGS@,$CXXFLAGS,;t t
6796 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6797 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
6798 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
6799 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
6800 s,@CPP@,$CPP,;t t
6801 s,@LN_S@,$LN_S,;t t
6802 s,@RANLIB@,$RANLIB,;t t
6803 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6804 s,@PERL@,$PERL,;t t
6805 s,@X_CFLAGS@,$X_CFLAGS,;t t
6806 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
6807 s,@X_LIBS@,$X_LIBS,;t t
6808 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
6809 s,@EGREP@,$EGREP,;t t
6810 s,@LIBOBJS@,$LIBOBJS,;t t
6811 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6812 CEOF
6814 _ACEOF
6816 cat >>$CONFIG_STATUS <<\_ACEOF
6817 # Split the substitutions into bite-sized pieces for seds with
6818 # small command number limits, like on Digital OSF/1 and HP-UX.
6819 ac_max_sed_lines=48
6820 ac_sed_frag=1 # Number of current file.
6821 ac_beg=1 # First line for current file.
6822 ac_end=$ac_max_sed_lines # Line after last line for current file.
6823 ac_more_lines=:
6824 ac_sed_cmds=
6825 while $ac_more_lines; do
6826 if test $ac_beg -gt 1; then
6827 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6828 else
6829 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6831 if test ! -s $tmp/subs.frag; then
6832 ac_more_lines=false
6833 else
6834 # The purpose of the label and of the branching condition is to
6835 # speed up the sed processing (if there are no `@' at all, there
6836 # is no need to browse any of the substitutions).
6837 # These are the two extra sed commands mentioned above.
6838 (echo ':t
6839 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6840 if test -z "$ac_sed_cmds"; then
6841 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6842 else
6843 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6845 ac_sed_frag=`expr $ac_sed_frag + 1`
6846 ac_beg=$ac_end
6847 ac_end=`expr $ac_end + $ac_max_sed_lines`
6849 done
6850 if test -z "$ac_sed_cmds"; then
6851 ac_sed_cmds=cat
6853 fi # test -n "$CONFIG_FILES"
6855 _ACEOF
6856 cat >>$CONFIG_STATUS <<\_ACEOF
6857 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6858 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6859 case $ac_file in
6860 - | *:- | *:-:* ) # input from stdin
6861 cat >$tmp/stdin
6862 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6863 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6864 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6865 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6866 * ) ac_file_in=$ac_file.in ;;
6867 esac
6869 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6870 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6871 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6872 X"$ac_file" : 'X\(//\)[^/]' \| \
6873 X"$ac_file" : 'X\(//\)$' \| \
6874 X"$ac_file" : 'X\(/\)' \| \
6875 . : '\(.\)' 2>/dev/null ||
6876 echo X"$ac_file" |
6877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6878 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6879 /^X\(\/\/\)$/{ s//\1/; q; }
6880 /^X\(\/\).*/{ s//\1/; q; }
6881 s/.*/./; q'`
6882 { if $as_mkdir_p; then
6883 mkdir -p "$ac_dir"
6884 else
6885 as_dir="$ac_dir"
6886 as_dirs=
6887 while test ! -d "$as_dir"; do
6888 as_dirs="$as_dir $as_dirs"
6889 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6890 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6891 X"$as_dir" : 'X\(//\)[^/]' \| \
6892 X"$as_dir" : 'X\(//\)$' \| \
6893 X"$as_dir" : 'X\(/\)' \| \
6894 . : '\(.\)' 2>/dev/null ||
6895 echo X"$as_dir" |
6896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6897 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6898 /^X\(\/\/\)$/{ s//\1/; q; }
6899 /^X\(\/\).*/{ s//\1/; q; }
6900 s/.*/./; q'`
6901 done
6902 test ! -n "$as_dirs" || mkdir $as_dirs
6903 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6904 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6905 { (exit 1); exit 1; }; }; }
6907 ac_builddir=.
6909 if test "$ac_dir" != .; then
6910 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6911 # A "../" for each directory in $ac_dir_suffix.
6912 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6913 else
6914 ac_dir_suffix= ac_top_builddir=
6917 case $srcdir in
6918 .) # No --srcdir option. We are building in place.
6919 ac_srcdir=.
6920 if test -z "$ac_top_builddir"; then
6921 ac_top_srcdir=.
6922 else
6923 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6924 fi ;;
6925 [\\/]* | ?:[\\/]* ) # Absolute path.
6926 ac_srcdir=$srcdir$ac_dir_suffix;
6927 ac_top_srcdir=$srcdir ;;
6928 *) # Relative path.
6929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6931 esac
6932 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6933 # absolute.
6934 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6935 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6936 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6937 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6940 case $INSTALL in
6941 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6942 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6943 esac
6945 if test x"$ac_file" != x-; then
6946 { echo "$as_me:$LINENO: creating $ac_file" >&5
6947 echo "$as_me: creating $ac_file" >&6;}
6948 rm -f "$ac_file"
6950 # Let's still pretend it is `configure' which instantiates (i.e., don't
6951 # use $as_me), people would be surprised to read:
6952 # /* config.h. Generated by config.status. */
6953 if test x"$ac_file" = x-; then
6954 configure_input=
6955 else
6956 configure_input="$ac_file. "
6958 configure_input=$configure_input"Generated from `echo $ac_file_in |
6959 sed 's,.*/,,'` by configure."
6961 # First look for the input files in the build tree, otherwise in the
6962 # src tree.
6963 ac_file_inputs=`IFS=:
6964 for f in $ac_file_in; do
6965 case $f in
6966 -) echo $tmp/stdin ;;
6967 [\\/$]*)
6968 # Absolute (can't be DOS-style, as IFS=:)
6969 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6970 echo "$as_me: error: cannot find input file: $f" >&2;}
6971 { (exit 1); exit 1; }; }
6972 echo $f;;
6973 *) # Relative
6974 if test -f "$f"; then
6975 # Build tree
6976 echo $f
6977 elif test -f "$srcdir/$f"; then
6978 # Source tree
6979 echo $srcdir/$f
6980 else
6981 # /dev/null tree
6982 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6983 echo "$as_me: error: cannot find input file: $f" >&2;}
6984 { (exit 1); exit 1; }; }
6985 fi;;
6986 esac
6987 done` || { (exit 1); exit 1; }
6988 _ACEOF
6989 cat >>$CONFIG_STATUS <<_ACEOF
6990 sed "$ac_vpsub
6991 $extrasub
6992 _ACEOF
6993 cat >>$CONFIG_STATUS <<\_ACEOF
6995 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6996 s,@configure_input@,$configure_input,;t t
6997 s,@srcdir@,$ac_srcdir,;t t
6998 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6999 s,@top_srcdir@,$ac_top_srcdir,;t t
7000 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7001 s,@builddir@,$ac_builddir,;t t
7002 s,@abs_builddir@,$ac_abs_builddir,;t t
7003 s,@top_builddir@,$ac_top_builddir,;t t
7004 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7005 s,@INSTALL@,$ac_INSTALL,;t t
7006 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7007 rm -f $tmp/stdin
7008 if test x"$ac_file" != x-; then
7009 mv $tmp/out $ac_file
7010 else
7011 cat $tmp/out
7012 rm -f $tmp/out
7015 done
7016 _ACEOF
7017 cat >>$CONFIG_STATUS <<\_ACEOF
7020 # CONFIG_HEADER section.
7023 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7024 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7026 # ac_d sets the value in "#define NAME VALUE" lines.
7027 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7028 ac_dB='[ ].*$,\1#\2'
7029 ac_dC=' '
7030 ac_dD=',;t'
7031 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7032 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7033 ac_uB='$,\1#\2define\3'
7034 ac_uC=' '
7035 ac_uD=',;t'
7037 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7038 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7039 case $ac_file in
7040 - | *:- | *:-:* ) # input from stdin
7041 cat >$tmp/stdin
7042 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7043 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7044 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7045 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7046 * ) ac_file_in=$ac_file.in ;;
7047 esac
7049 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7050 echo "$as_me: creating $ac_file" >&6;}
7052 # First look for the input files in the build tree, otherwise in the
7053 # src tree.
7054 ac_file_inputs=`IFS=:
7055 for f in $ac_file_in; do
7056 case $f in
7057 -) echo $tmp/stdin ;;
7058 [\\/$]*)
7059 # Absolute (can't be DOS-style, as IFS=:)
7060 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7061 echo "$as_me: error: cannot find input file: $f" >&2;}
7062 { (exit 1); exit 1; }; }
7063 echo $f;;
7064 *) # Relative
7065 if test -f "$f"; then
7066 # Build tree
7067 echo $f
7068 elif test -f "$srcdir/$f"; then
7069 # Source tree
7070 echo $srcdir/$f
7071 else
7072 # /dev/null tree
7073 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7074 echo "$as_me: error: cannot find input file: $f" >&2;}
7075 { (exit 1); exit 1; }; }
7076 fi;;
7077 esac
7078 done` || { (exit 1); exit 1; }
7079 # Remove the trailing spaces.
7080 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7082 _ACEOF
7084 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7085 # `conftest.undefs', that substitutes the proper values into
7086 # config.h.in to produce config.h. The first handles `#define'
7087 # templates, and the second `#undef' templates.
7088 # And first: Protect against being on the right side of a sed subst in
7089 # config.status. Protect against being in an unquoted here document
7090 # in config.status.
7091 rm -f conftest.defines conftest.undefs
7092 # Using a here document instead of a string reduces the quoting nightmare.
7093 # Putting comments in sed scripts is not portable.
7095 # `end' is used to avoid that the second main sed command (meant for
7096 # 0-ary CPP macros) applies to n-ary macro definitions.
7097 # See the Autoconf documentation for `clear'.
7098 cat >confdef2sed.sed <<\_ACEOF
7099 s/[\\&,]/\\&/g
7100 s,[\\$`],\\&,g
7101 t clear
7102 : clear
7103 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7104 t end
7105 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7106 : end
7107 _ACEOF
7108 # If some macros were called several times there might be several times
7109 # the same #defines, which is useless. Nevertheless, we may not want to
7110 # sort them, since we want the *last* AC-DEFINE to be honored.
7111 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7112 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7113 rm -f confdef2sed.sed
7115 # This sed command replaces #undef with comments. This is necessary, for
7116 # example, in the case of _POSIX_SOURCE, which is predefined and required
7117 # on some systems where configure will not decide to define it.
7118 cat >>conftest.undefs <<\_ACEOF
7119 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7120 _ACEOF
7122 # Break up conftest.defines because some shells have a limit on the size
7123 # of here documents, and old seds have small limits too (100 cmds).
7124 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7125 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7126 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7127 echo ' :' >>$CONFIG_STATUS
7128 rm -f conftest.tail
7129 while grep . conftest.defines >/dev/null
7131 # Write a limited-size here document to $tmp/defines.sed.
7132 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7133 # Speed up: don't consider the non `#define' lines.
7134 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7135 # Work around the forget-to-reset-the-flag bug.
7136 echo 't clr' >>$CONFIG_STATUS
7137 echo ': clr' >>$CONFIG_STATUS
7138 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7139 echo 'CEOF
7140 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7141 rm -f $tmp/in
7142 mv $tmp/out $tmp/in
7143 ' >>$CONFIG_STATUS
7144 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7145 rm -f conftest.defines
7146 mv conftest.tail conftest.defines
7147 done
7148 rm -f conftest.defines
7149 echo ' fi # grep' >>$CONFIG_STATUS
7150 echo >>$CONFIG_STATUS
7152 # Break up conftest.undefs because some shells have a limit on the size
7153 # of here documents, and old seds have small limits too (100 cmds).
7154 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7155 rm -f conftest.tail
7156 while grep . conftest.undefs >/dev/null
7158 # Write a limited-size here document to $tmp/undefs.sed.
7159 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7160 # Speed up: don't consider the non `#undef'
7161 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7162 # Work around the forget-to-reset-the-flag bug.
7163 echo 't clr' >>$CONFIG_STATUS
7164 echo ': clr' >>$CONFIG_STATUS
7165 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7166 echo 'CEOF
7167 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7168 rm -f $tmp/in
7169 mv $tmp/out $tmp/in
7170 ' >>$CONFIG_STATUS
7171 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7172 rm -f conftest.undefs
7173 mv conftest.tail conftest.undefs
7174 done
7175 rm -f conftest.undefs
7177 cat >>$CONFIG_STATUS <<\_ACEOF
7178 # Let's still pretend it is `configure' which instantiates (i.e., don't
7179 # use $as_me), people would be surprised to read:
7180 # /* config.h. Generated by config.status. */
7181 if test x"$ac_file" = x-; then
7182 echo "/* Generated by configure. */" >$tmp/config.h
7183 else
7184 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7186 cat $tmp/in >>$tmp/config.h
7187 rm -f $tmp/in
7188 if test x"$ac_file" != x-; then
7189 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7190 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7191 echo "$as_me: $ac_file is unchanged" >&6;}
7192 else
7193 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7194 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7195 X"$ac_file" : 'X\(//\)[^/]' \| \
7196 X"$ac_file" : 'X\(//\)$' \| \
7197 X"$ac_file" : 'X\(/\)' \| \
7198 . : '\(.\)' 2>/dev/null ||
7199 echo X"$ac_file" |
7200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7201 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7202 /^X\(\/\/\)$/{ s//\1/; q; }
7203 /^X\(\/\).*/{ s//\1/; q; }
7204 s/.*/./; q'`
7205 { if $as_mkdir_p; then
7206 mkdir -p "$ac_dir"
7207 else
7208 as_dir="$ac_dir"
7209 as_dirs=
7210 while test ! -d "$as_dir"; do
7211 as_dirs="$as_dir $as_dirs"
7212 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7213 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7214 X"$as_dir" : 'X\(//\)[^/]' \| \
7215 X"$as_dir" : 'X\(//\)$' \| \
7216 X"$as_dir" : 'X\(/\)' \| \
7217 . : '\(.\)' 2>/dev/null ||
7218 echo X"$as_dir" |
7219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7220 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7221 /^X\(\/\/\)$/{ s//\1/; q; }
7222 /^X\(\/\).*/{ s//\1/; q; }
7223 s/.*/./; q'`
7224 done
7225 test ! -n "$as_dirs" || mkdir $as_dirs
7226 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7227 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7228 { (exit 1); exit 1; }; }; }
7230 rm -f $ac_file
7231 mv $tmp/config.h $ac_file
7233 else
7234 cat $tmp/config.h
7235 rm -f $tmp/config.h
7237 _am_stamp_count=`expr ${_am_stamp_count-0} + 1`
7238 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7239 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7240 X$ac_file : 'X\(//\)[^/]' \| \
7241 X$ac_file : 'X\(//\)$' \| \
7242 X$ac_file : 'X\(/\)' \| \
7243 . : '\(.\)' 2>/dev/null ||
7244 echo X$ac_file |
7245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7246 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7247 /^X\(\/\/\)$/{ s//\1/; q; }
7248 /^X\(\/\).*/{ s//\1/; q; }
7249 s/.*/./; q'`/stamp-h$_am_stamp_count
7250 done
7251 _ACEOF
7252 cat >>$CONFIG_STATUS <<\_ACEOF
7255 # CONFIG_COMMANDS section.
7257 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7258 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7259 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7260 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7261 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7262 X"$ac_dest" : 'X\(//\)[^/]' \| \
7263 X"$ac_dest" : 'X\(//\)$' \| \
7264 X"$ac_dest" : 'X\(/\)' \| \
7265 . : '\(.\)' 2>/dev/null ||
7266 echo X"$ac_dest" |
7267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7268 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7269 /^X\(\/\/\)$/{ s//\1/; q; }
7270 /^X\(\/\).*/{ s//\1/; q; }
7271 s/.*/./; q'`
7272 ac_builddir=.
7274 if test "$ac_dir" != .; then
7275 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7276 # A "../" for each directory in $ac_dir_suffix.
7277 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7278 else
7279 ac_dir_suffix= ac_top_builddir=
7282 case $srcdir in
7283 .) # No --srcdir option. We are building in place.
7284 ac_srcdir=.
7285 if test -z "$ac_top_builddir"; then
7286 ac_top_srcdir=.
7287 else
7288 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7289 fi ;;
7290 [\\/]* | ?:[\\/]* ) # Absolute path.
7291 ac_srcdir=$srcdir$ac_dir_suffix;
7292 ac_top_srcdir=$srcdir ;;
7293 *) # Relative path.
7294 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7295 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7296 esac
7297 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7298 # absolute.
7299 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7300 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7301 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7302 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7305 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7306 echo "$as_me: executing $ac_dest commands" >&6;}
7307 case $ac_dest in
7308 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7309 # Strip MF so we end up with the name of the file.
7310 mf=`echo "$mf" | sed -e 's/:.*$//'`
7311 # Check whether this is an Automake generated Makefile or not.
7312 # We used to match only the files named `Makefile.in', but
7313 # some people rename them; so instead we look at the file content.
7314 # Grep'ing the first line is not enough: some people post-process
7315 # each Makefile.in and add a new line on top of each file to say so.
7316 # So let's grep whole file.
7317 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7318 dirpart=`(dirname "$mf") 2>/dev/null ||
7319 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7320 X"$mf" : 'X\(//\)[^/]' \| \
7321 X"$mf" : 'X\(//\)$' \| \
7322 X"$mf" : 'X\(/\)' \| \
7323 . : '\(.\)' 2>/dev/null ||
7324 echo X"$mf" |
7325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7326 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7327 /^X\(\/\/\)$/{ s//\1/; q; }
7328 /^X\(\/\).*/{ s//\1/; q; }
7329 s/.*/./; q'`
7330 else
7331 continue
7333 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
7334 # Extract the definition of DEP_FILES from the Makefile without
7335 # running `make'.
7336 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
7337 test -z "$DEPDIR" && continue
7338 # When using ansi2knr, U may be empty or an underscore; expand it
7339 U=`sed -n -e '/^U = / s///p' < "$mf"`
7340 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
7341 # We invoke sed twice because it is the simplest approach to
7342 # changing $(DEPDIR) to its actual value in the expansion.
7343 for file in `sed -n -e '
7344 /^DEP_FILES = .*\\\\$/ {
7345 s/^DEP_FILES = //
7346 :loop
7347 s/\\\\$//
7350 /\\\\$/ b loop
7353 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
7354 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7355 # Make sure the directory exists.
7356 test -f "$dirpart/$file" && continue
7357 fdir=`(dirname "$file") 2>/dev/null ||
7358 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7359 X"$file" : 'X\(//\)[^/]' \| \
7360 X"$file" : 'X\(//\)$' \| \
7361 X"$file" : 'X\(/\)' \| \
7362 . : '\(.\)' 2>/dev/null ||
7363 echo X"$file" |
7364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7365 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7366 /^X\(\/\/\)$/{ s//\1/; q; }
7367 /^X\(\/\).*/{ s//\1/; q; }
7368 s/.*/./; q'`
7369 { if $as_mkdir_p; then
7370 mkdir -p $dirpart/$fdir
7371 else
7372 as_dir=$dirpart/$fdir
7373 as_dirs=
7374 while test ! -d "$as_dir"; do
7375 as_dirs="$as_dir $as_dirs"
7376 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7377 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7378 X"$as_dir" : 'X\(//\)[^/]' \| \
7379 X"$as_dir" : 'X\(//\)$' \| \
7380 X"$as_dir" : 'X\(/\)' \| \
7381 . : '\(.\)' 2>/dev/null ||
7382 echo X"$as_dir" |
7383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7384 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7385 /^X\(\/\/\)$/{ s//\1/; q; }
7386 /^X\(\/\).*/{ s//\1/; q; }
7387 s/.*/./; q'`
7388 done
7389 test ! -n "$as_dirs" || mkdir $as_dirs
7390 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
7391 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
7392 { (exit 1); exit 1; }; }; }
7394 # echo "creating $dirpart/$file"
7395 echo '# dummy' > "$dirpart/$file"
7396 done
7397 done
7399 esac
7400 done
7401 _ACEOF
7403 cat >>$CONFIG_STATUS <<\_ACEOF
7405 { (exit 0); exit 0; }
7406 _ACEOF
7407 chmod +x $CONFIG_STATUS
7408 ac_clean_files=$ac_clean_files_save
7411 # configure is writing to config.log, and then calls config.status.
7412 # config.status does its own redirection, appending to config.log.
7413 # Unfortunately, on DOS this fails, as config.log is still kept open
7414 # by configure, so config.status won't be able to write to it; its
7415 # output is simply discarded. So we exec the FD to /dev/null,
7416 # effectively closing config.log, so it can be properly (re)opened and
7417 # appended to by config.status. When coming back to configure, we
7418 # need to make the FD available again.
7419 if test "$no_create" != yes; then
7420 ac_cs_success=:
7421 ac_config_status_args=
7422 test "$silent" = yes &&
7423 ac_config_status_args="$ac_config_status_args --quiet"
7424 exec 5>/dev/null
7425 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7426 exec 5>>config.log
7427 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7428 # would make configure fail if this is the last instruction.
7429 $ac_cs_success || { (exit 1); exit 1; }