Mass update GPLv2 from http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
[dockapps.git] / wmbatteries / configure
blob7f7adbbb7b462c4064a7db13074f16b82796b58e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for wmbatteries 0.1.2.
5 # Report bugs to <florian.krohs@informatik.uni-oldenburg.de>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 as_mkdir_p=false
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
239 IFS=" $as_nl"
241 # CDPATH.
242 $as_unset CDPATH
245 # Name of the host.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250 exec 6>&1
253 # Initializations.
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
257 cross_compiling=no
258 subdirs=
259 MFLAGS=
260 MAKEFLAGS=
261 SHELL=${CONFIG_SHELL-/bin/sh}
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete. It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
268 # Identity of this package.
269 PACKAGE_NAME='wmbatteries'
270 PACKAGE_TARNAME='wmbatteries'
271 PACKAGE_VERSION='0.1.2'
272 PACKAGE_STRING='wmbatteries 0.1.2'
273 PACKAGE_BUGREPORT='florian.krohs@informatik.uni-oldenburg.de'
275 ac_unique_file="src/main.c"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION EXEEXT OBJEXT ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh INSTALL_STRIP_PROGRAM AWK SET_MAKE AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH DEPDIR CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC am__include am__quote CCDEPMODE LN_S CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS X_LIBRARY_PATH XCFLAGS XLFLAGS XLIBS DFLAGS OS SETGID_FLAGS LIBRARY_SEARCH_PATH HEADER_SEARCH_PATH EGREP LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
354 ac_prev=
355 for ac_option
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
368 case $ac_option in
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
387 --config-cache | -C)
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 esac
651 done
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
726 else
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures wmbatteries 0.1.2 to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
802 _ACEOF
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
833 cat <<\_ACEOF
835 Program names:
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 X features:
841 --x-includes=DIR X include files are in DIR
842 --x-libraries=DIR X library files are in DIR
844 System types:
845 --build=BUILD configure for building on BUILD [guessed]
846 --host=HOST cross-compile to build programs to run on HOST [BUILD]
847 --target=TARGET configure for building compilers for TARGET [HOST]
848 _ACEOF
851 if test -n "$ac_init_help"; then
852 case $ac_init_help in
853 short | recursive ) echo "Configuration of wmbatteries 0.1.2:";;
854 esac
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 --disable-dependency-tracking Speeds up one-time builds
861 --enable-dependency-tracking Do not reject slow dependency extractors
862 --enable-debug turn on debugging default=on
864 Optional Packages:
865 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
866 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
867 --with-libs-from pass compiler flags to look for libraries
868 --with-incs-from pass compiler flags to look for header files
869 --with-x use the X Window System
871 Some influential environment variables:
872 CC C compiler command
873 CFLAGS C compiler flags
874 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
875 nonstandard directory <lib dir>
876 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
877 headers in a nonstandard directory <include dir>
878 CPP C preprocessor
880 Use these variables to override the choices made by `configure' or to help
881 it to find libraries and programs with nonstandard names/locations.
883 Report bugs to <florian.krohs@informatik.uni-oldenburg.de>.
884 _ACEOF
887 if test "$ac_init_help" = "recursive"; then
888 # If there are subdirs, report their specific --help.
889 ac_popdir=`pwd`
890 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
891 test -d $ac_dir || continue
892 ac_builddir=.
894 if test "$ac_dir" != .; then
895 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
896 # A "../" for each directory in $ac_dir_suffix.
897 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
898 else
899 ac_dir_suffix= ac_top_builddir=
902 case $srcdir in
903 .) # No --srcdir option. We are building in place.
904 ac_srcdir=.
905 if test -z "$ac_top_builddir"; then
906 ac_top_srcdir=.
907 else
908 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
909 fi ;;
910 [\\/]* | ?:[\\/]* ) # Absolute path.
911 ac_srcdir=$srcdir$ac_dir_suffix;
912 ac_top_srcdir=$srcdir ;;
913 *) # Relative path.
914 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
915 ac_top_srcdir=$ac_top_builddir$srcdir ;;
916 esac
917 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
918 # absolute.
919 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
920 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
921 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
922 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
924 cd $ac_dir
925 # Check for guested configure; otherwise get Cygnus style configure.
926 if test -f $ac_srcdir/configure.gnu; then
927 echo
928 $SHELL $ac_srcdir/configure.gnu --help=recursive
929 elif test -f $ac_srcdir/configure; then
930 echo
931 $SHELL $ac_srcdir/configure --help=recursive
932 elif test -f $ac_srcdir/configure.ac ||
933 test -f $ac_srcdir/configure.in; then
934 echo
935 $ac_configure --help
936 else
937 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
939 cd $ac_popdir
940 done
943 test -n "$ac_init_help" && exit 0
944 if $ac_init_version; then
945 cat <<\_ACEOF
946 wmbatteries configure 0.1.2
947 generated by GNU Autoconf 2.57
949 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
950 Free Software Foundation, Inc.
951 This configure script is free software; the Free Software Foundation
952 gives unlimited permission to copy, distribute and modify it.
953 _ACEOF
954 exit 0
956 exec 5>config.log
957 cat >&5 <<_ACEOF
958 This file contains any messages produced by compilers while
959 running configure, to aid debugging if configure makes a mistake.
961 It was created by wmbatteries $as_me 0.1.2, which was
962 generated by GNU Autoconf 2.57. Invocation command line was
964 $ $0 $@
966 _ACEOF
968 cat <<_ASUNAME
969 ## --------- ##
970 ## Platform. ##
971 ## --------- ##
973 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
974 uname -m = `(uname -m) 2>/dev/null || echo unknown`
975 uname -r = `(uname -r) 2>/dev/null || echo unknown`
976 uname -s = `(uname -s) 2>/dev/null || echo unknown`
977 uname -v = `(uname -v) 2>/dev/null || echo unknown`
979 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
980 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
982 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
983 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
984 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
985 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
986 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
987 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
988 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
990 _ASUNAME
992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
993 for as_dir in $PATH
995 IFS=$as_save_IFS
996 test -z "$as_dir" && as_dir=.
997 echo "PATH: $as_dir"
998 done
1000 } >&5
1002 cat >&5 <<_ACEOF
1005 ## ----------- ##
1006 ## Core tests. ##
1007 ## ----------- ##
1009 _ACEOF
1012 # Keep a trace of the command line.
1013 # Strip out --no-create and --no-recursion so they do not pile up.
1014 # Strip out --silent because we don't want to record it for future runs.
1015 # Also quote any args containing shell meta-characters.
1016 # Make two passes to allow for proper duplicate-argument suppression.
1017 ac_configure_args=
1018 ac_configure_args0=
1019 ac_configure_args1=
1020 ac_sep=
1021 ac_must_keep_next=false
1022 for ac_pass in 1 2
1024 for ac_arg
1026 case $ac_arg in
1027 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1028 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1029 | -silent | --silent | --silen | --sile | --sil)
1030 continue ;;
1031 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1032 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1033 esac
1034 case $ac_pass in
1035 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1037 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1038 if test $ac_must_keep_next = true; then
1039 ac_must_keep_next=false # Got value, back to normal.
1040 else
1041 case $ac_arg in
1042 *=* | --config-cache | -C | -disable-* | --disable-* \
1043 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1044 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1045 | -with-* | --with-* | -without-* | --without-* | --x)
1046 case "$ac_configure_args0 " in
1047 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1048 esac
1050 -* ) ac_must_keep_next=true ;;
1051 esac
1053 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1054 # Get rid of the leading space.
1055 ac_sep=" "
1057 esac
1058 done
1059 done
1060 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1061 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1063 # When interrupted or exit'd, cleanup temporary files, and complete
1064 # config.log. We remove comments because anyway the quotes in there
1065 # would cause problems or look ugly.
1066 # WARNING: Be sure not to use single quotes in there, as some shells,
1067 # such as our DU 5.0 friend, will then `close' the trap.
1068 trap 'exit_status=$?
1069 # Save into config.log some information that might help in debugging.
1071 echo
1073 cat <<\_ASBOX
1074 ## ---------------- ##
1075 ## Cache variables. ##
1076 ## ---------------- ##
1077 _ASBOX
1078 echo
1079 # The following way of writing the cache mishandles newlines in values,
1081 (set) 2>&1 |
1082 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1083 *ac_space=\ *)
1084 sed -n \
1085 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1086 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1089 sed -n \
1090 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1092 esac;
1094 echo
1096 cat <<\_ASBOX
1097 ## ----------------- ##
1098 ## Output variables. ##
1099 ## ----------------- ##
1100 _ASBOX
1101 echo
1102 for ac_var in $ac_subst_vars
1104 eval ac_val=$`echo $ac_var`
1105 echo "$ac_var='"'"'$ac_val'"'"'"
1106 done | sort
1107 echo
1109 if test -n "$ac_subst_files"; then
1110 cat <<\_ASBOX
1111 ## ------------- ##
1112 ## Output files. ##
1113 ## ------------- ##
1114 _ASBOX
1115 echo
1116 for ac_var in $ac_subst_files
1118 eval ac_val=$`echo $ac_var`
1119 echo "$ac_var='"'"'$ac_val'"'"'"
1120 done | sort
1121 echo
1124 if test -s confdefs.h; then
1125 cat <<\_ASBOX
1126 ## ----------- ##
1127 ## confdefs.h. ##
1128 ## ----------- ##
1129 _ASBOX
1130 echo
1131 sed "/^$/d" confdefs.h | sort
1132 echo
1134 test "$ac_signal" != 0 &&
1135 echo "$as_me: caught signal $ac_signal"
1136 echo "$as_me: exit $exit_status"
1137 } >&5
1138 rm -f core core.* *.core &&
1139 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1140 exit $exit_status
1142 for ac_signal in 1 2 13 15; do
1143 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1144 done
1145 ac_signal=0
1147 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1148 rm -rf conftest* confdefs.h
1149 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1150 echo >confdefs.h
1152 # Predefined preprocessor variables.
1154 cat >>confdefs.h <<_ACEOF
1155 #define PACKAGE_NAME "$PACKAGE_NAME"
1156 _ACEOF
1159 cat >>confdefs.h <<_ACEOF
1160 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1161 _ACEOF
1164 cat >>confdefs.h <<_ACEOF
1165 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1166 _ACEOF
1169 cat >>confdefs.h <<_ACEOF
1170 #define PACKAGE_STRING "$PACKAGE_STRING"
1171 _ACEOF
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1176 _ACEOF
1179 # Let the site file select an alternate cache file if it wants to.
1180 # Prefer explicitly selected file to automatically selected ones.
1181 if test -z "$CONFIG_SITE"; then
1182 if test "x$prefix" != xNONE; then
1183 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1184 else
1185 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1188 for ac_site_file in $CONFIG_SITE; do
1189 if test -r "$ac_site_file"; then
1190 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1191 echo "$as_me: loading site script $ac_site_file" >&6;}
1192 sed 's/^/| /' "$ac_site_file" >&5
1193 . "$ac_site_file"
1195 done
1197 if test -r "$cache_file"; then
1198 # Some versions of bash will fail to source /dev/null (special
1199 # files actually), so we avoid doing that.
1200 if test -f "$cache_file"; then
1201 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1202 echo "$as_me: loading cache $cache_file" >&6;}
1203 case $cache_file in
1204 [\\/]* | ?:[\\/]* ) . $cache_file;;
1205 *) . ./$cache_file;;
1206 esac
1208 else
1209 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1210 echo "$as_me: creating cache $cache_file" >&6;}
1211 >$cache_file
1214 # Check that the precious variables saved in the cache have kept the same
1215 # value.
1216 ac_cache_corrupted=false
1217 for ac_var in `(set) 2>&1 |
1218 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1219 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1220 eval ac_new_set=\$ac_env_${ac_var}_set
1221 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1222 eval ac_new_val="\$ac_env_${ac_var}_value"
1223 case $ac_old_set,$ac_new_set in
1224 set,)
1225 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1226 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1227 ac_cache_corrupted=: ;;
1228 ,set)
1229 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1230 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1231 ac_cache_corrupted=: ;;
1232 ,);;
1234 if test "x$ac_old_val" != "x$ac_new_val"; then
1235 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1236 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1237 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1238 echo "$as_me: former value: $ac_old_val" >&2;}
1239 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1240 echo "$as_me: current value: $ac_new_val" >&2;}
1241 ac_cache_corrupted=:
1242 fi;;
1243 esac
1244 # Pass precious variables to config.status.
1245 if test "$ac_new_set" = set; then
1246 case $ac_new_val in
1247 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1248 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1249 *) ac_arg=$ac_var=$ac_new_val ;;
1250 esac
1251 case " $ac_configure_args " in
1252 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1253 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1254 esac
1256 done
1257 if $ac_cache_corrupted; then
1258 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1259 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1260 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1261 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1262 { (exit 1); exit 1; }; }
1265 ac_ext=c
1266 ac_cpp='$CPP $CPPFLAGS'
1267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1297 ac_aux_dir=
1298 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1299 if test -f $ac_dir/install-sh; then
1300 ac_aux_dir=$ac_dir
1301 ac_install_sh="$ac_aux_dir/install-sh -c"
1302 break
1303 elif test -f $ac_dir/install.sh; then
1304 ac_aux_dir=$ac_dir
1305 ac_install_sh="$ac_aux_dir/install.sh -c"
1306 break
1307 elif test -f $ac_dir/shtool; then
1308 ac_aux_dir=$ac_dir
1309 ac_install_sh="$ac_aux_dir/shtool install -c"
1310 break
1312 done
1313 if test -z "$ac_aux_dir"; then
1314 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1315 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1316 { (exit 1); exit 1; }; }
1318 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1319 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1320 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1322 # Make sure we can run config.sub.
1323 $ac_config_sub sun4 >/dev/null 2>&1 ||
1324 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1325 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1326 { (exit 1); exit 1; }; }
1328 echo "$as_me:$LINENO: checking build system type" >&5
1329 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1330 if test "${ac_cv_build+set}" = set; then
1331 echo $ECHO_N "(cached) $ECHO_C" >&6
1332 else
1333 ac_cv_build_alias=$build_alias
1334 test -z "$ac_cv_build_alias" &&
1335 ac_cv_build_alias=`$ac_config_guess`
1336 test -z "$ac_cv_build_alias" &&
1337 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1338 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1339 { (exit 1); exit 1; }; }
1340 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1341 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1342 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1343 { (exit 1); exit 1; }; }
1346 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1347 echo "${ECHO_T}$ac_cv_build" >&6
1348 build=$ac_cv_build
1349 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1350 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1351 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1354 echo "$as_me:$LINENO: checking host system type" >&5
1355 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1356 if test "${ac_cv_host+set}" = set; then
1357 echo $ECHO_N "(cached) $ECHO_C" >&6
1358 else
1359 ac_cv_host_alias=$host_alias
1360 test -z "$ac_cv_host_alias" &&
1361 ac_cv_host_alias=$ac_cv_build_alias
1362 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1363 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1364 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1365 { (exit 1); exit 1; }; }
1368 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1369 echo "${ECHO_T}$ac_cv_host" >&6
1370 host=$ac_cv_host
1371 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1372 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1373 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1376 echo "$as_me:$LINENO: checking target system type" >&5
1377 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1378 if test "${ac_cv_target+set}" = set; then
1379 echo $ECHO_N "(cached) $ECHO_C" >&6
1380 else
1381 ac_cv_target_alias=$target_alias
1382 test "x$ac_cv_target_alias" = "x" &&
1383 ac_cv_target_alias=$ac_cv_host_alias
1384 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1385 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1386 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1387 { (exit 1); exit 1; }; }
1390 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1391 echo "${ECHO_T}$ac_cv_target" >&6
1392 target=$ac_cv_target
1393 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1394 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1395 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1398 # The aliases save the names the user supplied, while $host etc.
1399 # will get canonicalized.
1400 test -n "$target_alias" &&
1401 test "$program_prefix$program_suffix$program_transform_name" = \
1402 NONENONEs,x,x, &&
1403 program_prefix=${target_alias}-
1404 # Find a good install program. We prefer a C program (faster),
1405 # so one script is as good as another. But avoid the broken or
1406 # incompatible versions:
1407 # SysV /etc/install, /usr/sbin/install
1408 # SunOS /usr/etc/install
1409 # IRIX /sbin/install
1410 # AIX /bin/install
1411 # AmigaOS /C/install, which installs bootblocks on floppy discs
1412 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1413 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1414 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1415 # ./install, which can be erroneously created by make from ./install.sh.
1416 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1417 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1418 if test -z "$INSTALL"; then
1419 if test "${ac_cv_path_install+set}" = set; then
1420 echo $ECHO_N "(cached) $ECHO_C" >&6
1421 else
1422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1423 for as_dir in $PATH
1425 IFS=$as_save_IFS
1426 test -z "$as_dir" && as_dir=.
1427 # Account for people who put trailing slashes in PATH elements.
1428 case $as_dir/ in
1429 ./ | .// | /cC/* | \
1430 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1431 /usr/ucb/* ) ;;
1433 # OSF1 and SCO ODT 3.0 have their own names for install.
1434 # Don't use installbsd from OSF since it installs stuff as root
1435 # by default.
1436 for ac_prog in ginstall scoinst install; do
1437 for ac_exec_ext in '' $ac_executable_extensions; do
1438 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1439 if test $ac_prog = install &&
1440 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1441 # AIX install. It has an incompatible calling convention.
1443 elif test $ac_prog = install &&
1444 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1445 # program-specific install script used by HP pwplus--don't use.
1447 else
1448 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1449 break 3
1452 done
1453 done
1455 esac
1456 done
1460 if test "${ac_cv_path_install+set}" = set; then
1461 INSTALL=$ac_cv_path_install
1462 else
1463 # As a last resort, use the slow shell script. We don't cache a
1464 # path for INSTALL within a source directory, because that will
1465 # break other packages using the cache if that directory is
1466 # removed, or if the path is relative.
1467 INSTALL=$ac_install_sh
1470 echo "$as_me:$LINENO: result: $INSTALL" >&5
1471 echo "${ECHO_T}$INSTALL" >&6
1473 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1474 # It thinks the first close brace ends the variable substitution.
1475 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1477 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1479 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1481 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1482 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1483 # Just in case
1484 sleep 1
1485 echo timestamp > conftest.file
1486 # Do `set' in a subshell so we don't clobber the current shell's
1487 # arguments. Must try -L first in case configure is actually a
1488 # symlink; some systems play weird games with the mod time of symlinks
1489 # (eg FreeBSD returns the mod time of the symlink's containing
1490 # directory).
1491 if (
1492 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1493 if test "$*" = "X"; then
1494 # -L didn't work.
1495 set X `ls -t $srcdir/configure conftest.file`
1497 rm -f conftest.file
1498 if test "$*" != "X $srcdir/configure conftest.file" \
1499 && test "$*" != "X conftest.file $srcdir/configure"; then
1501 # If neither matched, then we have a broken ls. This can happen
1502 # if, for instance, CONFIG_SHELL is bash and it inherits a
1503 # broken ls alias from the environment. This has actually
1504 # happened. Such a system could not be considered "sane".
1505 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1506 alias in your environment" >&5
1507 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1508 alias in your environment" >&2;}
1509 { (exit 1); exit 1; }; }
1512 test "$2" = conftest.file
1514 then
1515 # Ok.
1517 else
1518 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1519 Check your system clock" >&5
1520 echo "$as_me: error: newly created file is older than distributed files!
1521 Check your system clock" >&2;}
1522 { (exit 1); exit 1; }; }
1524 echo "$as_me:$LINENO: result: yes" >&5
1525 echo "${ECHO_T}yes" >&6
1526 test "$program_prefix" != NONE &&
1527 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1528 # Use a double $ so make ignores it.
1529 test "$program_suffix" != NONE &&
1530 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1531 # Double any \ or $. echo might interpret backslashes.
1532 # By default was `s,x,x', remove it if useless.
1533 cat <<\_ACEOF >conftest.sed
1534 s/[\\$]/&&/g;s/;s,x,x,$//
1535 _ACEOF
1536 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1537 rm conftest.sed
1540 # expand $ac_aux_dir to an absolute path
1541 am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
1543 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1544 # Use eval to expand $SHELL
1545 if eval "$MISSING --run true"; then
1546 am_missing_run="$MISSING --run "
1547 else
1548 am_missing_run=
1549 am_backtick='`'
1550 { echo "$as_me:$LINENO: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1551 echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1554 for ac_prog in gawk mawk nawk awk
1556 # Extract the first word of "$ac_prog", so it can be a program name with args.
1557 set dummy $ac_prog; ac_word=$2
1558 echo "$as_me:$LINENO: checking for $ac_word" >&5
1559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1560 if test "${ac_cv_prog_AWK+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1562 else
1563 if test -n "$AWK"; then
1564 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1565 else
1566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567 for as_dir in $PATH
1569 IFS=$as_save_IFS
1570 test -z "$as_dir" && as_dir=.
1571 for ac_exec_ext in '' $ac_executable_extensions; do
1572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1573 ac_cv_prog_AWK="$ac_prog"
1574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1575 break 2
1577 done
1578 done
1582 AWK=$ac_cv_prog_AWK
1583 if test -n "$AWK"; then
1584 echo "$as_me:$LINENO: result: $AWK" >&5
1585 echo "${ECHO_T}$AWK" >&6
1586 else
1587 echo "$as_me:$LINENO: result: no" >&5
1588 echo "${ECHO_T}no" >&6
1591 test -n "$AWK" && break
1592 done
1594 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1595 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1596 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1597 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1598 echo $ECHO_N "(cached) $ECHO_C" >&6
1599 else
1600 cat >conftest.make <<\_ACEOF
1601 all:
1602 @echo 'ac_maketemp="$(MAKE)"'
1603 _ACEOF
1604 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1605 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1606 if test -n "$ac_maketemp"; then
1607 eval ac_cv_prog_make_${ac_make}_set=yes
1608 else
1609 eval ac_cv_prog_make_${ac_make}_set=no
1611 rm -f conftest.make
1613 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1614 echo "$as_me:$LINENO: result: yes" >&5
1615 echo "${ECHO_T}yes" >&6
1616 SET_MAKE=
1617 else
1618 echo "$as_me:$LINENO: result: no" >&5
1619 echo "${ECHO_T}no" >&6
1620 SET_MAKE="MAKE=${MAKE-make}"
1623 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1624 if test "${enable_dependency_tracking+set}" = set; then
1625 enableval="$enable_dependency_tracking"
1628 if test "x$enable_dependency_tracking" != xno; then
1629 am_depcomp="$ac_aux_dir/depcomp"
1630 AMDEPBACKSLASH='\'
1634 if test "x$enable_dependency_tracking" != xno; then
1635 AMDEP_TRUE=
1636 AMDEP_FALSE='#'
1637 else
1638 AMDEP_TRUE='#'
1639 AMDEP_FALSE=
1645 rm -f .deps 2>/dev/null
1646 mkdir .deps 2>/dev/null
1647 if test -d .deps; then
1648 DEPDIR=.deps
1649 else
1650 # MS-DOS does not allow filenames that begin with a dot.
1651 DEPDIR=_deps
1653 rmdir .deps 2>/dev/null
1656 # test to see if srcdir already configured
1657 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1658 test -f $srcdir/config.status; then
1659 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1660 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1661 { (exit 1); exit 1; }; }
1664 # Define the identity of the package.
1665 PACKAGE=$PACKAGE_NAME
1666 VERSION=$PACKAGE_VERSION
1668 cat >>confdefs.h <<_ACEOF
1669 #define PACKAGE "$PACKAGE"
1670 _ACEOF
1673 cat >>confdefs.h <<_ACEOF
1674 #define VERSION "$VERSION"
1675 _ACEOF
1678 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
1679 # the ones we care about.
1681 # Autoconf 2.50 always computes EXEEXT. However we need to be
1682 # compatible with 2.13, for now. So we always define EXEEXT, but we
1683 # don't compute it.
1685 # Similar for OBJEXT -- only we only use OBJEXT if the user actually
1686 # requests that it be used. This is a bit dumb.
1687 : ${OBJEXT=o}
1690 # Some tools Automake needs.
1692 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1695 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1698 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1701 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1704 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1707 AMTAR=${AMTAR-"${am_missing_run}tar"}
1709 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1711 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1713 # We need awk for the "check" target. The system "awk" is bad on
1714 # some platforms.
1721 ac_config_headers="$ac_config_headers config.h"
1724 for ac_prog in gawk mawk nawk awk
1726 # Extract the first word of "$ac_prog", so it can be a program name with args.
1727 set dummy $ac_prog; ac_word=$2
1728 echo "$as_me:$LINENO: checking for $ac_word" >&5
1729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1730 if test "${ac_cv_prog_AWK+set}" = set; then
1731 echo $ECHO_N "(cached) $ECHO_C" >&6
1732 else
1733 if test -n "$AWK"; then
1734 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1735 else
1736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1737 for as_dir in $PATH
1739 IFS=$as_save_IFS
1740 test -z "$as_dir" && as_dir=.
1741 for ac_exec_ext in '' $ac_executable_extensions; do
1742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1743 ac_cv_prog_AWK="$ac_prog"
1744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1745 break 2
1747 done
1748 done
1752 AWK=$ac_cv_prog_AWK
1753 if test -n "$AWK"; then
1754 echo "$as_me:$LINENO: result: $AWK" >&5
1755 echo "${ECHO_T}$AWK" >&6
1756 else
1757 echo "$as_me:$LINENO: result: no" >&5
1758 echo "${ECHO_T}no" >&6
1761 test -n "$AWK" && break
1762 done
1764 ac_ext=c
1765 ac_cpp='$CPP $CPPFLAGS'
1766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1769 if test -n "$ac_tool_prefix"; then
1770 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1771 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1772 echo "$as_me:$LINENO: checking for $ac_word" >&5
1773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1774 if test "${ac_cv_prog_CC+set}" = set; then
1775 echo $ECHO_N "(cached) $ECHO_C" >&6
1776 else
1777 if test -n "$CC"; then
1778 ac_cv_prog_CC="$CC" # Let the user override the test.
1779 else
1780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1781 for as_dir in $PATH
1783 IFS=$as_save_IFS
1784 test -z "$as_dir" && as_dir=.
1785 for ac_exec_ext in '' $ac_executable_extensions; do
1786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1787 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1789 break 2
1791 done
1792 done
1796 CC=$ac_cv_prog_CC
1797 if test -n "$CC"; then
1798 echo "$as_me:$LINENO: result: $CC" >&5
1799 echo "${ECHO_T}$CC" >&6
1800 else
1801 echo "$as_me:$LINENO: result: no" >&5
1802 echo "${ECHO_T}no" >&6
1806 if test -z "$ac_cv_prog_CC"; then
1807 ac_ct_CC=$CC
1808 # Extract the first word of "gcc", so it can be a program name with args.
1809 set dummy gcc; ac_word=$2
1810 echo "$as_me:$LINENO: checking for $ac_word" >&5
1811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1812 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1813 echo $ECHO_N "(cached) $ECHO_C" >&6
1814 else
1815 if test -n "$ac_ct_CC"; then
1816 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1817 else
1818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1819 for as_dir in $PATH
1821 IFS=$as_save_IFS
1822 test -z "$as_dir" && as_dir=.
1823 for ac_exec_ext in '' $ac_executable_extensions; do
1824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1825 ac_cv_prog_ac_ct_CC="gcc"
1826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1827 break 2
1829 done
1830 done
1834 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1835 if test -n "$ac_ct_CC"; then
1836 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1837 echo "${ECHO_T}$ac_ct_CC" >&6
1838 else
1839 echo "$as_me:$LINENO: result: no" >&5
1840 echo "${ECHO_T}no" >&6
1843 CC=$ac_ct_CC
1844 else
1845 CC="$ac_cv_prog_CC"
1848 if test -z "$CC"; then
1849 if test -n "$ac_tool_prefix"; then
1850 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1851 set dummy ${ac_tool_prefix}cc; ac_word=$2
1852 echo "$as_me:$LINENO: checking for $ac_word" >&5
1853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1854 if test "${ac_cv_prog_CC+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1856 else
1857 if test -n "$CC"; then
1858 ac_cv_prog_CC="$CC" # Let the user override the test.
1859 else
1860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861 for as_dir in $PATH
1863 IFS=$as_save_IFS
1864 test -z "$as_dir" && as_dir=.
1865 for ac_exec_ext in '' $ac_executable_extensions; do
1866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867 ac_cv_prog_CC="${ac_tool_prefix}cc"
1868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869 break 2
1871 done
1872 done
1876 CC=$ac_cv_prog_CC
1877 if test -n "$CC"; then
1878 echo "$as_me:$LINENO: result: $CC" >&5
1879 echo "${ECHO_T}$CC" >&6
1880 else
1881 echo "$as_me:$LINENO: result: no" >&5
1882 echo "${ECHO_T}no" >&6
1886 if test -z "$ac_cv_prog_CC"; then
1887 ac_ct_CC=$CC
1888 # Extract the first word of "cc", so it can be a program name with args.
1889 set dummy cc; ac_word=$2
1890 echo "$as_me:$LINENO: checking for $ac_word" >&5
1891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1892 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1893 echo $ECHO_N "(cached) $ECHO_C" >&6
1894 else
1895 if test -n "$ac_ct_CC"; then
1896 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1897 else
1898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899 for as_dir in $PATH
1901 IFS=$as_save_IFS
1902 test -z "$as_dir" && as_dir=.
1903 for ac_exec_ext in '' $ac_executable_extensions; do
1904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1905 ac_cv_prog_ac_ct_CC="cc"
1906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1907 break 2
1909 done
1910 done
1914 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1915 if test -n "$ac_ct_CC"; then
1916 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1917 echo "${ECHO_T}$ac_ct_CC" >&6
1918 else
1919 echo "$as_me:$LINENO: result: no" >&5
1920 echo "${ECHO_T}no" >&6
1923 CC=$ac_ct_CC
1924 else
1925 CC="$ac_cv_prog_CC"
1929 if test -z "$CC"; then
1930 # Extract the first word of "cc", so it can be a program name with args.
1931 set dummy cc; ac_word=$2
1932 echo "$as_me:$LINENO: checking for $ac_word" >&5
1933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1934 if test "${ac_cv_prog_CC+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1936 else
1937 if test -n "$CC"; then
1938 ac_cv_prog_CC="$CC" # Let the user override the test.
1939 else
1940 ac_prog_rejected=no
1941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1942 for as_dir in $PATH
1944 IFS=$as_save_IFS
1945 test -z "$as_dir" && as_dir=.
1946 for ac_exec_ext in '' $ac_executable_extensions; do
1947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1948 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1949 ac_prog_rejected=yes
1950 continue
1952 ac_cv_prog_CC="cc"
1953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1954 break 2
1956 done
1957 done
1959 if test $ac_prog_rejected = yes; then
1960 # We found a bogon in the path, so make sure we never use it.
1961 set dummy $ac_cv_prog_CC
1962 shift
1963 if test $# != 0; then
1964 # We chose a different compiler from the bogus one.
1965 # However, it has the same basename, so the bogon will be chosen
1966 # first if we set CC to just the basename; use the full file name.
1967 shift
1968 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1973 CC=$ac_cv_prog_CC
1974 if test -n "$CC"; then
1975 echo "$as_me:$LINENO: result: $CC" >&5
1976 echo "${ECHO_T}$CC" >&6
1977 else
1978 echo "$as_me:$LINENO: result: no" >&5
1979 echo "${ECHO_T}no" >&6
1983 if test -z "$CC"; then
1984 if test -n "$ac_tool_prefix"; then
1985 for ac_prog in cl
1987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1988 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1989 echo "$as_me:$LINENO: checking for $ac_word" >&5
1990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1991 if test "${ac_cv_prog_CC+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
1993 else
1994 if test -n "$CC"; then
1995 ac_cv_prog_CC="$CC" # Let the user override the test.
1996 else
1997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998 for as_dir in $PATH
2000 IFS=$as_save_IFS
2001 test -z "$as_dir" && as_dir=.
2002 for ac_exec_ext in '' $ac_executable_extensions; do
2003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2004 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006 break 2
2008 done
2009 done
2013 CC=$ac_cv_prog_CC
2014 if test -n "$CC"; then
2015 echo "$as_me:$LINENO: result: $CC" >&5
2016 echo "${ECHO_T}$CC" >&6
2017 else
2018 echo "$as_me:$LINENO: result: no" >&5
2019 echo "${ECHO_T}no" >&6
2022 test -n "$CC" && break
2023 done
2025 if test -z "$CC"; then
2026 ac_ct_CC=$CC
2027 for ac_prog in cl
2029 # Extract the first word of "$ac_prog", so it can be a program name with args.
2030 set dummy $ac_prog; ac_word=$2
2031 echo "$as_me:$LINENO: checking for $ac_word" >&5
2032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2033 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 else
2036 if test -n "$ac_ct_CC"; then
2037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2038 else
2039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 for as_dir in $PATH
2042 IFS=$as_save_IFS
2043 test -z "$as_dir" && as_dir=.
2044 for ac_exec_ext in '' $ac_executable_extensions; do
2045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2046 ac_cv_prog_ac_ct_CC="$ac_prog"
2047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048 break 2
2050 done
2051 done
2055 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2056 if test -n "$ac_ct_CC"; then
2057 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2058 echo "${ECHO_T}$ac_ct_CC" >&6
2059 else
2060 echo "$as_me:$LINENO: result: no" >&5
2061 echo "${ECHO_T}no" >&6
2064 test -n "$ac_ct_CC" && break
2065 done
2067 CC=$ac_ct_CC
2073 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2074 See \`config.log' for more details." >&5
2075 echo "$as_me: error: no acceptable C compiler found in \$PATH
2076 See \`config.log' for more details." >&2;}
2077 { (exit 1); exit 1; }; }
2079 # Provide some information about the compiler.
2080 echo "$as_me:$LINENO:" \
2081 "checking for C compiler version" >&5
2082 ac_compiler=`set X $ac_compile; echo $2`
2083 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2084 (eval $ac_compiler --version </dev/null >&5) 2>&5
2085 ac_status=$?
2086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087 (exit $ac_status); }
2088 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2089 (eval $ac_compiler -v </dev/null >&5) 2>&5
2090 ac_status=$?
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }
2093 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2094 (eval $ac_compiler -V </dev/null >&5) 2>&5
2095 ac_status=$?
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }
2099 cat >conftest.$ac_ext <<_ACEOF
2100 #line $LINENO "configure"
2101 /* confdefs.h. */
2102 _ACEOF
2103 cat confdefs.h >>conftest.$ac_ext
2104 cat >>conftest.$ac_ext <<_ACEOF
2105 /* end confdefs.h. */
2108 main ()
2112 return 0;
2114 _ACEOF
2115 ac_clean_files_save=$ac_clean_files
2116 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2117 # Try to create an executable without -o first, disregard a.out.
2118 # It will help us diagnose broken compilers, and finding out an intuition
2119 # of exeext.
2120 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2121 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2122 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2123 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2124 (eval $ac_link_default) 2>&5
2125 ac_status=$?
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }; then
2128 # Find the output, starting from the most likely. This scheme is
2129 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2130 # resort.
2132 # Be careful to initialize this variable, since it used to be cached.
2133 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2134 ac_cv_exeext=
2135 # b.out is created by i960 compilers.
2136 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2138 test -f "$ac_file" || continue
2139 case $ac_file in
2140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2142 conftest.$ac_ext )
2143 # This is the source file.
2145 [ab].out )
2146 # We found the default executable, but exeext='' is most
2147 # certainly right.
2148 break;;
2149 *.* )
2150 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2151 # FIXME: I believe we export ac_cv_exeext for Libtool,
2152 # but it would be cool to find out if it's true. Does anybody
2153 # maintain Libtool? --akim.
2154 export ac_cv_exeext
2155 break;;
2157 break;;
2158 esac
2159 done
2160 else
2161 echo "$as_me: failed program was:" >&5
2162 sed 's/^/| /' conftest.$ac_ext >&5
2164 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2165 See \`config.log' for more details." >&5
2166 echo "$as_me: error: C compiler cannot create executables
2167 See \`config.log' for more details." >&2;}
2168 { (exit 77); exit 77; }; }
2171 ac_exeext=$ac_cv_exeext
2172 echo "$as_me:$LINENO: result: $ac_file" >&5
2173 echo "${ECHO_T}$ac_file" >&6
2175 # Check the compiler produces executables we can run. If not, either
2176 # the compiler is broken, or we cross compile.
2177 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2178 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2179 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2180 # If not cross compiling, check that we can run a simple program.
2181 if test "$cross_compiling" != yes; then
2182 if { ac_try='./$ac_file'
2183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2184 (eval $ac_try) 2>&5
2185 ac_status=$?
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }; }; then
2188 cross_compiling=no
2189 else
2190 if test "$cross_compiling" = maybe; then
2191 cross_compiling=yes
2192 else
2193 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2194 If you meant to cross compile, use \`--host'.
2195 See \`config.log' for more details." >&5
2196 echo "$as_me: error: cannot run C compiled programs.
2197 If you meant to cross compile, use \`--host'.
2198 See \`config.log' for more details." >&2;}
2199 { (exit 1); exit 1; }; }
2203 echo "$as_me:$LINENO: result: yes" >&5
2204 echo "${ECHO_T}yes" >&6
2206 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2207 ac_clean_files=$ac_clean_files_save
2208 # Check the compiler produces executables we can run. If not, either
2209 # the compiler is broken, or we cross compile.
2210 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2211 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2212 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2213 echo "${ECHO_T}$cross_compiling" >&6
2215 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2216 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2218 (eval $ac_link) 2>&5
2219 ac_status=$?
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); }; then
2222 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2223 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2224 # work properly (i.e., refer to `conftest.exe'), while it won't with
2225 # `rm'.
2226 for ac_file in conftest.exe conftest conftest.*; do
2227 test -f "$ac_file" || continue
2228 case $ac_file in
2229 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2230 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2231 export ac_cv_exeext
2232 break;;
2233 * ) break;;
2234 esac
2235 done
2236 else
2237 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2238 See \`config.log' for more details." >&5
2239 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2240 See \`config.log' for more details." >&2;}
2241 { (exit 1); exit 1; }; }
2244 rm -f conftest$ac_cv_exeext
2245 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2246 echo "${ECHO_T}$ac_cv_exeext" >&6
2248 rm -f conftest.$ac_ext
2249 EXEEXT=$ac_cv_exeext
2250 ac_exeext=$EXEEXT
2251 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2252 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2253 if test "${ac_cv_objext+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2255 else
2256 cat >conftest.$ac_ext <<_ACEOF
2257 #line $LINENO "configure"
2258 /* confdefs.h. */
2259 _ACEOF
2260 cat confdefs.h >>conftest.$ac_ext
2261 cat >>conftest.$ac_ext <<_ACEOF
2262 /* end confdefs.h. */
2265 main ()
2269 return 0;
2271 _ACEOF
2272 rm -f conftest.o conftest.obj
2273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274 (eval $ac_compile) 2>&5
2275 ac_status=$?
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; then
2278 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2279 case $ac_file in
2280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2281 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2282 break;;
2283 esac
2284 done
2285 else
2286 echo "$as_me: failed program was:" >&5
2287 sed 's/^/| /' conftest.$ac_ext >&5
2289 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2290 See \`config.log' for more details." >&5
2291 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2292 See \`config.log' for more details." >&2;}
2293 { (exit 1); exit 1; }; }
2296 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2298 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2299 echo "${ECHO_T}$ac_cv_objext" >&6
2300 OBJEXT=$ac_cv_objext
2301 ac_objext=$OBJEXT
2302 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2303 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2304 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2306 else
2307 cat >conftest.$ac_ext <<_ACEOF
2308 #line $LINENO "configure"
2309 /* confdefs.h. */
2310 _ACEOF
2311 cat confdefs.h >>conftest.$ac_ext
2312 cat >>conftest.$ac_ext <<_ACEOF
2313 /* end confdefs.h. */
2316 main ()
2318 #ifndef __GNUC__
2319 choke me
2320 #endif
2323 return 0;
2325 _ACEOF
2326 rm -f conftest.$ac_objext
2327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2328 (eval $ac_compile) 2>&5
2329 ac_status=$?
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); } &&
2332 { ac_try='test -s conftest.$ac_objext'
2333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334 (eval $ac_try) 2>&5
2335 ac_status=$?
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; }; then
2338 ac_compiler_gnu=yes
2339 else
2340 echo "$as_me: failed program was:" >&5
2341 sed 's/^/| /' conftest.$ac_ext >&5
2343 ac_compiler_gnu=no
2345 rm -f conftest.$ac_objext conftest.$ac_ext
2346 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2349 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2350 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2351 GCC=`test $ac_compiler_gnu = yes && echo yes`
2352 ac_test_CFLAGS=${CFLAGS+set}
2353 ac_save_CFLAGS=$CFLAGS
2354 CFLAGS="-g"
2355 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2356 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2357 if test "${ac_cv_prog_cc_g+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 ()
2373 return 0;
2375 _ACEOF
2376 rm -f conftest.$ac_objext
2377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2378 (eval $ac_compile) 2>&5
2379 ac_status=$?
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); } &&
2382 { ac_try='test -s conftest.$ac_objext'
2383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384 (eval $ac_try) 2>&5
2385 ac_status=$?
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; }; then
2388 ac_cv_prog_cc_g=yes
2389 else
2390 echo "$as_me: failed program was:" >&5
2391 sed 's/^/| /' conftest.$ac_ext >&5
2393 ac_cv_prog_cc_g=no
2395 rm -f conftest.$ac_objext conftest.$ac_ext
2397 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2398 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2399 if test "$ac_test_CFLAGS" = set; then
2400 CFLAGS=$ac_save_CFLAGS
2401 elif test $ac_cv_prog_cc_g = yes; then
2402 if test "$GCC" = yes; then
2403 CFLAGS="-g -O2"
2404 else
2405 CFLAGS="-g"
2407 else
2408 if test "$GCC" = yes; then
2409 CFLAGS="-O2"
2410 else
2411 CFLAGS=
2414 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2415 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2416 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2418 else
2419 ac_cv_prog_cc_stdc=no
2420 ac_save_CC=$CC
2421 cat >conftest.$ac_ext <<_ACEOF
2422 #line $LINENO "configure"
2423 /* confdefs.h. */
2424 _ACEOF
2425 cat confdefs.h >>conftest.$ac_ext
2426 cat >>conftest.$ac_ext <<_ACEOF
2427 /* end confdefs.h. */
2428 #include <stdarg.h>
2429 #include <stdio.h>
2430 #include <sys/types.h>
2431 #include <sys/stat.h>
2432 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2433 struct buf { int x; };
2434 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2435 static char *e (p, i)
2436 char **p;
2437 int i;
2439 return p[i];
2441 static char *f (char * (*g) (char **, int), char **p, ...)
2443 char *s;
2444 va_list v;
2445 va_start (v,p);
2446 s = g (p, va_arg (v,int));
2447 va_end (v);
2448 return s;
2450 int test (int i, double x);
2451 struct s1 {int (*f) (int a);};
2452 struct s2 {int (*f) (double a);};
2453 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2454 int argc;
2455 char **argv;
2457 main ()
2459 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2461 return 0;
2463 _ACEOF
2464 # Don't try gcc -ansi; that turns off useful extensions and
2465 # breaks some systems' header files.
2466 # AIX -qlanglvl=ansi
2467 # Ultrix and OSF/1 -std1
2468 # HP-UX 10.20 and later -Ae
2469 # HP-UX older versions -Aa -D_HPUX_SOURCE
2470 # SVR4 -Xc -D__EXTENSIONS__
2471 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2473 CC="$ac_save_CC $ac_arg"
2474 rm -f conftest.$ac_objext
2475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476 (eval $ac_compile) 2>&5
2477 ac_status=$?
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); } &&
2480 { ac_try='test -s conftest.$ac_objext'
2481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482 (eval $ac_try) 2>&5
2483 ac_status=$?
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; }; then
2486 ac_cv_prog_cc_stdc=$ac_arg
2487 break
2488 else
2489 echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2493 rm -f conftest.$ac_objext
2494 done
2495 rm -f conftest.$ac_ext conftest.$ac_objext
2496 CC=$ac_save_CC
2500 case "x$ac_cv_prog_cc_stdc" in
2501 x|xno)
2502 echo "$as_me:$LINENO: result: none needed" >&5
2503 echo "${ECHO_T}none needed" >&6 ;;
2505 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2506 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2507 CC="$CC $ac_cv_prog_cc_stdc" ;;
2508 esac
2510 # Some people use a C++ compiler to compile C. Since we use `exit',
2511 # in C++ we need to declare it. In case someone uses the same compiler
2512 # for both compiling C and C++ we need to have the C++ compiler decide
2513 # the declaration of exit, since it's the most demanding environment.
2514 cat >conftest.$ac_ext <<_ACEOF
2515 #ifndef __cplusplus
2516 choke me
2517 #endif
2518 _ACEOF
2519 rm -f conftest.$ac_objext
2520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2521 (eval $ac_compile) 2>&5
2522 ac_status=$?
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); } &&
2525 { ac_try='test -s conftest.$ac_objext'
2526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527 (eval $ac_try) 2>&5
2528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; }; then
2531 for ac_declaration in \
2533 '#include <stdlib.h>' \
2534 'extern "C" void std::exit (int) throw (); using std::exit;' \
2535 'extern "C" void std::exit (int); using std::exit;' \
2536 'extern "C" void exit (int) throw ();' \
2537 'extern "C" void exit (int);' \
2538 'void exit (int);'
2540 cat >conftest.$ac_ext <<_ACEOF
2541 #line $LINENO "configure"
2542 /* confdefs.h. */
2543 _ACEOF
2544 cat confdefs.h >>conftest.$ac_ext
2545 cat >>conftest.$ac_ext <<_ACEOF
2546 /* end confdefs.h. */
2547 #include <stdlib.h>
2548 $ac_declaration
2550 main ()
2552 exit (42);
2554 return 0;
2556 _ACEOF
2557 rm -f conftest.$ac_objext
2558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2559 (eval $ac_compile) 2>&5
2560 ac_status=$?
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); } &&
2563 { ac_try='test -s conftest.$ac_objext'
2564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565 (eval $ac_try) 2>&5
2566 ac_status=$?
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; }; then
2570 else
2571 echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2574 continue
2576 rm -f conftest.$ac_objext conftest.$ac_ext
2577 cat >conftest.$ac_ext <<_ACEOF
2578 #line $LINENO "configure"
2579 /* confdefs.h. */
2580 _ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h. */
2584 $ac_declaration
2586 main ()
2588 exit (42);
2590 return 0;
2592 _ACEOF
2593 rm -f conftest.$ac_objext
2594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2595 (eval $ac_compile) 2>&5
2596 ac_status=$?
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); } &&
2599 { ac_try='test -s conftest.$ac_objext'
2600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601 (eval $ac_try) 2>&5
2602 ac_status=$?
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; }; then
2605 break
2606 else
2607 echo "$as_me: failed program was:" >&5
2608 sed 's/^/| /' conftest.$ac_ext >&5
2611 rm -f conftest.$ac_objext conftest.$ac_ext
2612 done
2613 rm -f conftest*
2614 if test -n "$ac_declaration"; then
2615 echo '#ifdef __cplusplus' >>confdefs.h
2616 echo $ac_declaration >>confdefs.h
2617 echo '#endif' >>confdefs.h
2620 else
2621 echo "$as_me: failed program was:" >&5
2622 sed 's/^/| /' conftest.$ac_ext >&5
2625 rm -f conftest.$ac_objext conftest.$ac_ext
2626 ac_ext=c
2627 ac_cpp='$CPP $CPPFLAGS'
2628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2632 ac_config_commands="$ac_config_commands default-1"
2634 am_make=${MAKE-make}
2635 cat > confinc << 'END'
2636 doit:
2637 @echo done
2639 # If we don't find an include directive, just comment out the code.
2640 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2641 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2642 am__include='#'
2643 am__quote=
2644 _am_result=none
2645 # First try GNU make style include.
2646 echo "include confinc" > confmf
2647 # We grep out `Entering directory' and `Leaving directory'
2648 # messages which can occur if `w' ends up in MAKEFLAGS.
2649 # In particular we don't look at `^make:' because GNU make might
2650 # be invoked under some other name (usually "gmake"), in which
2651 # case it prints its new name instead of `make'.
2652 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2653 am__include=include
2654 am__quote=
2655 _am_result=GNU
2657 # Now try BSD make style include.
2658 if test "$am__include" = "#"; then
2659 echo '.include "confinc"' > confmf
2660 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2661 am__include=.include
2662 am__quote='"'
2663 _am_result=BSD
2668 echo "$as_me:$LINENO: result: $_am_result" >&5
2669 echo "${ECHO_T}$_am_result" >&6
2670 rm -f confinc confmf
2673 depcc="$CC" am_compiler_list=
2675 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2676 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2677 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2679 else
2680 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2681 # We make a subdir and do the tests there. Otherwise we can end up
2682 # making bogus files that we don't know about and never remove. For
2683 # instance it was reported that on HP-UX the gcc test will end up
2684 # making a dummy file named `D' -- because `-MD' means `put the output
2685 # in D'.
2686 mkdir conftest.dir
2687 # Copy depcomp to subdir because otherwise we won't find it if we're
2688 # using a relative directory.
2689 cp "$am_depcomp" conftest.dir
2690 cd conftest.dir
2692 am_cv_CC_dependencies_compiler_type=none
2693 if test "$am_compiler_list" = ""; then
2694 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2696 for depmode in $am_compiler_list; do
2697 # We need to recreate these files for each test, as the compiler may
2698 # overwrite some of them when testing with obscure command lines.
2699 # This happens at least with the AIX C compiler.
2700 echo '#include "conftest.h"' > conftest.c
2701 echo 'int i;' > conftest.h
2702 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2704 case $depmode in
2705 nosideeffect)
2706 # after this tag, mechanisms are not by side-effect, so they'll
2707 # only be used when explicitly requested
2708 if test "x$enable_dependency_tracking" = xyes; then
2709 continue
2710 else
2711 break
2714 none) break ;;
2715 esac
2716 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2717 # mode. It turns out that the SunPro C++ compiler does not properly
2718 # handle `-M -o', and we need to detect this.
2719 if depmode=$depmode \
2720 source=conftest.c object=conftest.o \
2721 depfile=conftest.Po tmpdepfile=conftest.TPo \
2722 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2723 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2724 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2725 am_cv_CC_dependencies_compiler_type=$depmode
2726 break
2728 done
2730 cd ..
2731 rm -rf conftest.dir
2732 else
2733 am_cv_CC_dependencies_compiler_type=none
2737 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2738 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2739 CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
2742 # Find a good install program. We prefer a C program (faster),
2743 # so one script is as good as another. But avoid the broken or
2744 # incompatible versions:
2745 # SysV /etc/install, /usr/sbin/install
2746 # SunOS /usr/etc/install
2747 # IRIX /sbin/install
2748 # AIX /bin/install
2749 # AmigaOS /C/install, which installs bootblocks on floppy discs
2750 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2751 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2752 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2753 # ./install, which can be erroneously created by make from ./install.sh.
2754 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2755 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2756 if test -z "$INSTALL"; then
2757 if test "${ac_cv_path_install+set}" = set; then
2758 echo $ECHO_N "(cached) $ECHO_C" >&6
2759 else
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 for as_dir in $PATH
2763 IFS=$as_save_IFS
2764 test -z "$as_dir" && as_dir=.
2765 # Account for people who put trailing slashes in PATH elements.
2766 case $as_dir/ in
2767 ./ | .// | /cC/* | \
2768 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2769 /usr/ucb/* ) ;;
2771 # OSF1 and SCO ODT 3.0 have their own names for install.
2772 # Don't use installbsd from OSF since it installs stuff as root
2773 # by default.
2774 for ac_prog in ginstall scoinst install; do
2775 for ac_exec_ext in '' $ac_executable_extensions; do
2776 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2777 if test $ac_prog = install &&
2778 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2779 # AIX install. It has an incompatible calling convention.
2781 elif test $ac_prog = install &&
2782 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2783 # program-specific install script used by HP pwplus--don't use.
2785 else
2786 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2787 break 3
2790 done
2791 done
2793 esac
2794 done
2798 if test "${ac_cv_path_install+set}" = set; then
2799 INSTALL=$ac_cv_path_install
2800 else
2801 # As a last resort, use the slow shell script. We don't cache a
2802 # path for INSTALL within a source directory, because that will
2803 # break other packages using the cache if that directory is
2804 # removed, or if the path is relative.
2805 INSTALL=$ac_install_sh
2808 echo "$as_me:$LINENO: result: $INSTALL" >&5
2809 echo "${ECHO_T}$INSTALL" >&6
2811 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2812 # It thinks the first close brace ends the variable substitution.
2813 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2815 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2817 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2819 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2820 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2821 LN_S=$as_ln_s
2822 if test "$LN_S" = "ln -s"; then
2823 echo "$as_me:$LINENO: result: yes" >&5
2824 echo "${ECHO_T}yes" >&6
2825 else
2826 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2827 echo "${ECHO_T}no, using $LN_S" >&6
2832 # Check whether --with-libs-from or --without-libs-from was given.
2833 if test "${with_libs_from+set}" = set; then
2834 withval="$with_libs_from"
2835 lib_search_path="$withval $lib_search_path"
2839 # Check whether --with-incs-from or --without-incs-from was given.
2840 if test "${with_incs_from+set}" = set; then
2841 withval="$with_incs_from"
2842 inc_search_path="$withval $inc_search_path"
2848 ac_ext=c
2849 ac_cpp='$CPP $CPPFLAGS'
2850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2853 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2854 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2855 # On Suns, sometimes $CPP names a directory.
2856 if test -n "$CPP" && test -d "$CPP"; then
2857 CPP=
2859 if test -z "$CPP"; then
2860 if test "${ac_cv_prog_CPP+set}" = set; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 else
2863 # Double quotes because CPP needs to be expanded
2864 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2866 ac_preproc_ok=false
2867 for ac_c_preproc_warn_flag in '' yes
2869 # Use a header file that comes with gcc, so configuring glibc
2870 # with a fresh cross-compiler works.
2871 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2872 # <limits.h> exists even on freestanding compilers.
2873 # On the NeXT, cc -E runs the code through the compiler's parser,
2874 # not just through cpp. "Syntax error" is here to catch this case.
2875 cat >conftest.$ac_ext <<_ACEOF
2876 #line $LINENO "configure"
2877 /* confdefs.h. */
2878 _ACEOF
2879 cat confdefs.h >>conftest.$ac_ext
2880 cat >>conftest.$ac_ext <<_ACEOF
2881 /* end confdefs.h. */
2882 #ifdef __STDC__
2883 # include <limits.h>
2884 #else
2885 # include <assert.h>
2886 #endif
2887 Syntax error
2888 _ACEOF
2889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2891 ac_status=$?
2892 grep -v '^ *+' conftest.er1 >conftest.err
2893 rm -f conftest.er1
2894 cat conftest.err >&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); } >/dev/null; then
2897 if test -s conftest.err; then
2898 ac_cpp_err=$ac_c_preproc_warn_flag
2899 else
2900 ac_cpp_err=
2902 else
2903 ac_cpp_err=yes
2905 if test -z "$ac_cpp_err"; then
2907 else
2908 echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2911 # Broken: fails on valid input.
2912 continue
2914 rm -f conftest.err conftest.$ac_ext
2916 # OK, works on sane cases. Now check whether non-existent headers
2917 # can be detected and how.
2918 cat >conftest.$ac_ext <<_ACEOF
2919 #line $LINENO "configure"
2920 /* confdefs.h. */
2921 _ACEOF
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h. */
2925 #include <ac_nonexistent.h>
2926 _ACEOF
2927 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2929 ac_status=$?
2930 grep -v '^ *+' conftest.er1 >conftest.err
2931 rm -f conftest.er1
2932 cat conftest.err >&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } >/dev/null; then
2935 if test -s conftest.err; then
2936 ac_cpp_err=$ac_c_preproc_warn_flag
2937 else
2938 ac_cpp_err=
2940 else
2941 ac_cpp_err=yes
2943 if test -z "$ac_cpp_err"; then
2944 # Broken: success on invalid input.
2945 continue
2946 else
2947 echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.$ac_ext >&5
2950 # Passes both tests.
2951 ac_preproc_ok=:
2952 break
2954 rm -f conftest.err conftest.$ac_ext
2956 done
2957 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2958 rm -f conftest.err conftest.$ac_ext
2959 if $ac_preproc_ok; then
2960 break
2963 done
2964 ac_cv_prog_CPP=$CPP
2967 CPP=$ac_cv_prog_CPP
2968 else
2969 ac_cv_prog_CPP=$CPP
2971 echo "$as_me:$LINENO: result: $CPP" >&5
2972 echo "${ECHO_T}$CPP" >&6
2973 ac_preproc_ok=false
2974 for ac_c_preproc_warn_flag in '' yes
2976 # Use a header file that comes with gcc, so configuring glibc
2977 # with a fresh cross-compiler works.
2978 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2979 # <limits.h> exists even on freestanding compilers.
2980 # On the NeXT, cc -E runs the code through the compiler's parser,
2981 # not just through cpp. "Syntax error" is here to catch this case.
2982 cat >conftest.$ac_ext <<_ACEOF
2983 #line $LINENO "configure"
2984 /* confdefs.h. */
2985 _ACEOF
2986 cat confdefs.h >>conftest.$ac_ext
2987 cat >>conftest.$ac_ext <<_ACEOF
2988 /* end confdefs.h. */
2989 #ifdef __STDC__
2990 # include <limits.h>
2991 #else
2992 # include <assert.h>
2993 #endif
2994 Syntax error
2995 _ACEOF
2996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2997 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2998 ac_status=$?
2999 grep -v '^ *+' conftest.er1 >conftest.err
3000 rm -f conftest.er1
3001 cat conftest.err >&5
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); } >/dev/null; then
3004 if test -s conftest.err; then
3005 ac_cpp_err=$ac_c_preproc_warn_flag
3006 else
3007 ac_cpp_err=
3009 else
3010 ac_cpp_err=yes
3012 if test -z "$ac_cpp_err"; then
3014 else
3015 echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.$ac_ext >&5
3018 # Broken: fails on valid input.
3019 continue
3021 rm -f conftest.err conftest.$ac_ext
3023 # OK, works on sane cases. Now check whether non-existent headers
3024 # can be detected and how.
3025 cat >conftest.$ac_ext <<_ACEOF
3026 #line $LINENO "configure"
3027 /* confdefs.h. */
3028 _ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3032 #include <ac_nonexistent.h>
3033 _ACEOF
3034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3036 ac_status=$?
3037 grep -v '^ *+' conftest.er1 >conftest.err
3038 rm -f conftest.er1
3039 cat conftest.err >&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); } >/dev/null; then
3042 if test -s conftest.err; then
3043 ac_cpp_err=$ac_c_preproc_warn_flag
3044 else
3045 ac_cpp_err=
3047 else
3048 ac_cpp_err=yes
3050 if test -z "$ac_cpp_err"; then
3051 # Broken: success on invalid input.
3052 continue
3053 else
3054 echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3057 # Passes both tests.
3058 ac_preproc_ok=:
3059 break
3061 rm -f conftest.err conftest.$ac_ext
3063 done
3064 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3065 rm -f conftest.err conftest.$ac_ext
3066 if $ac_preproc_ok; then
3068 else
3069 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3070 See \`config.log' for more details." >&5
3071 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3072 See \`config.log' for more details." >&2;}
3073 { (exit 1); exit 1; }; }
3076 ac_ext=c
3077 ac_cpp='$CPP $CPPFLAGS'
3078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3083 echo "$as_me:$LINENO: checking for X" >&5
3084 echo $ECHO_N "checking for X... $ECHO_C" >&6
3087 # Check whether --with-x or --without-x was given.
3088 if test "${with_x+set}" = set; then
3089 withval="$with_x"
3092 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3093 if test "x$with_x" = xno; then
3094 # The user explicitly disabled X.
3095 have_x=disabled
3096 else
3097 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3098 # Both variables are already set.
3099 have_x=yes
3100 else
3101 if test "${ac_cv_have_x+set}" = set; then
3102 echo $ECHO_N "(cached) $ECHO_C" >&6
3103 else
3104 # One or both of the vars are not set, and there is no cached value.
3105 ac_x_includes=no ac_x_libraries=no
3106 rm -fr conftest.dir
3107 if mkdir conftest.dir; then
3108 cd conftest.dir
3109 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3110 cat >Imakefile <<'_ACEOF'
3111 acfindx:
3112 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3113 _ACEOF
3114 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3115 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3116 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3117 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3118 for ac_extension in a so sl; do
3119 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3120 test -f $ac_im_libdir/libX11.$ac_extension; then
3121 ac_im_usrlibdir=$ac_im_libdir; break
3123 done
3124 # Screen out bogus values from the imake configuration. They are
3125 # bogus both because they are the default anyway, and because
3126 # using them would break gcc on systems where it needs fixed includes.
3127 case $ac_im_incroot in
3128 /usr/include) ;;
3129 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3130 esac
3131 case $ac_im_usrlibdir in
3132 /usr/lib | /lib) ;;
3133 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3134 esac
3136 cd ..
3137 rm -fr conftest.dir
3140 # Standard set of common directories for X headers.
3141 # Check X11 before X11Rn because it is often a symlink to the current release.
3142 ac_x_header_dirs='
3143 /usr/X11/include
3144 /usr/X11R6/include
3145 /usr/X11R5/include
3146 /usr/X11R4/include
3148 /usr/include/X11
3149 /usr/include/X11R6
3150 /usr/include/X11R5
3151 /usr/include/X11R4
3153 /usr/local/X11/include
3154 /usr/local/X11R6/include
3155 /usr/local/X11R5/include
3156 /usr/local/X11R4/include
3158 /usr/local/include/X11
3159 /usr/local/include/X11R6
3160 /usr/local/include/X11R5
3161 /usr/local/include/X11R4
3163 /usr/X386/include
3164 /usr/x386/include
3165 /usr/XFree86/include/X11
3167 /usr/include
3168 /usr/local/include
3169 /usr/unsupported/include
3170 /usr/athena/include
3171 /usr/local/x11r5/include
3172 /usr/lpp/Xamples/include
3174 /usr/openwin/include
3175 /usr/openwin/share/include'
3177 if test "$ac_x_includes" = no; then
3178 # Guess where to find include files, by looking for Intrinsic.h.
3179 # First, try using that file with no special directory specified.
3180 cat >conftest.$ac_ext <<_ACEOF
3181 #line $LINENO "configure"
3182 /* confdefs.h. */
3183 _ACEOF
3184 cat confdefs.h >>conftest.$ac_ext
3185 cat >>conftest.$ac_ext <<_ACEOF
3186 /* end confdefs.h. */
3187 #include <X11/Intrinsic.h>
3188 _ACEOF
3189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3191 ac_status=$?
3192 grep -v '^ *+' conftest.er1 >conftest.err
3193 rm -f conftest.er1
3194 cat conftest.err >&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); } >/dev/null; then
3197 if test -s conftest.err; then
3198 ac_cpp_err=$ac_c_preproc_warn_flag
3199 else
3200 ac_cpp_err=
3202 else
3203 ac_cpp_err=yes
3205 if test -z "$ac_cpp_err"; then
3206 # We can compile using X headers with no special include directory.
3207 ac_x_includes=
3208 else
3209 echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3212 for ac_dir in $ac_x_header_dirs; do
3213 if test -r "$ac_dir/X11/Intrinsic.h"; then
3214 ac_x_includes=$ac_dir
3215 break
3217 done
3219 rm -f conftest.err conftest.$ac_ext
3220 fi # $ac_x_includes = no
3222 if test "$ac_x_libraries" = no; then
3223 # Check for the libraries.
3224 # See if we find them without any special options.
3225 # Don't add to $LIBS permanently.
3226 ac_save_LIBS=$LIBS
3227 LIBS="-lXt $LIBS"
3228 cat >conftest.$ac_ext <<_ACEOF
3229 #line $LINENO "configure"
3230 /* confdefs.h. */
3231 _ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3235 #include <X11/Intrinsic.h>
3237 main ()
3239 XtMalloc (0)
3241 return 0;
3243 _ACEOF
3244 rm -f conftest.$ac_objext conftest$ac_exeext
3245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3246 (eval $ac_link) 2>&5
3247 ac_status=$?
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } &&
3250 { ac_try='test -s conftest$ac_exeext'
3251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252 (eval $ac_try) 2>&5
3253 ac_status=$?
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); }; }; then
3256 LIBS=$ac_save_LIBS
3257 # We can link X programs with no special library path.
3258 ac_x_libraries=
3259 else
3260 echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3263 LIBS=$ac_save_LIBS
3264 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3266 # Don't even attempt the hair of trying to link an X program!
3267 for ac_extension in a so sl; do
3268 if test -r $ac_dir/libXt.$ac_extension; then
3269 ac_x_libraries=$ac_dir
3270 break 2
3272 done
3273 done
3275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3276 fi # $ac_x_libraries = no
3278 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3279 # Didn't find X anywhere. Cache the known absence of X.
3280 ac_cv_have_x="have_x=no"
3281 else
3282 # Record where we found X for the cache.
3283 ac_cv_have_x="have_x=yes \
3284 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3289 eval "$ac_cv_have_x"
3290 fi # $with_x != no
3292 if test "$have_x" != yes; then
3293 echo "$as_me:$LINENO: result: $have_x" >&5
3294 echo "${ECHO_T}$have_x" >&6
3295 no_x=yes
3296 else
3297 # If each of the values was on the command line, it overrides each guess.
3298 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3299 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3300 # Update the cache value to reflect the command line values.
3301 ac_cv_have_x="have_x=yes \
3302 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3303 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3304 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3307 if test "$no_x" = yes; then
3308 # Not all programs may use this symbol, but it does not hurt to define it.
3310 cat >>confdefs.h <<\_ACEOF
3311 #define X_DISPLAY_MISSING 1
3312 _ACEOF
3314 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3315 else
3316 if test -n "$x_includes"; then
3317 X_CFLAGS="$X_CFLAGS -I$x_includes"
3320 # It would also be nice to do this for all -L options, not just this one.
3321 if test -n "$x_libraries"; then
3322 X_LIBS="$X_LIBS -L$x_libraries"
3323 # For Solaris; some versions of Sun CC require a space after -R and
3324 # others require no space. Words are not sufficient . . . .
3325 case `(uname -sr) 2>/dev/null` in
3326 "SunOS 5"*)
3327 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3328 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3329 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3330 cat >conftest.$ac_ext <<_ACEOF
3331 #line $LINENO "configure"
3332 /* confdefs.h. */
3333 _ACEOF
3334 cat confdefs.h >>conftest.$ac_ext
3335 cat >>conftest.$ac_ext <<_ACEOF
3336 /* end confdefs.h. */
3339 main ()
3343 return 0;
3345 _ACEOF
3346 rm -f conftest.$ac_objext conftest$ac_exeext
3347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3348 (eval $ac_link) 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); } &&
3352 { ac_try='test -s conftest$ac_exeext'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354 (eval $ac_try) 2>&5
3355 ac_status=$?
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; }; then
3358 ac_R_nospace=yes
3359 else
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3363 ac_R_nospace=no
3365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3366 if test $ac_R_nospace = yes; then
3367 echo "$as_me:$LINENO: result: no" >&5
3368 echo "${ECHO_T}no" >&6
3369 X_LIBS="$X_LIBS -R$x_libraries"
3370 else
3371 LIBS="$ac_xsave_LIBS -R $x_libraries"
3372 cat >conftest.$ac_ext <<_ACEOF
3373 #line $LINENO "configure"
3374 /* confdefs.h. */
3375 _ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3381 main ()
3385 return 0;
3387 _ACEOF
3388 rm -f conftest.$ac_objext conftest$ac_exeext
3389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3390 (eval $ac_link) 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); } &&
3394 { ac_try='test -s conftest$ac_exeext'
3395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396 (eval $ac_try) 2>&5
3397 ac_status=$?
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; }; then
3400 ac_R_space=yes
3401 else
3402 echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3405 ac_R_space=no
3407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3408 if test $ac_R_space = yes; then
3409 echo "$as_me:$LINENO: result: yes" >&5
3410 echo "${ECHO_T}yes" >&6
3411 X_LIBS="$X_LIBS -R $x_libraries"
3412 else
3413 echo "$as_me:$LINENO: result: neither works" >&5
3414 echo "${ECHO_T}neither works" >&6
3417 LIBS=$ac_xsave_LIBS
3418 esac
3421 # Check for system-dependent libraries X programs must link with.
3422 # Do this before checking for the system-independent R6 libraries
3423 # (-lICE), since we may need -lsocket or whatever for X linking.
3425 if test "$ISC" = yes; then
3426 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3427 else
3428 # Martyn Johnson says this is needed for Ultrix, if the X
3429 # libraries were built with DECnet support. And Karl Berry says
3430 # the Alpha needs dnet_stub (dnet does not exist).
3431 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3432 cat >conftest.$ac_ext <<_ACEOF
3433 #line $LINENO "configure"
3434 /* confdefs.h. */
3435 _ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3440 /* Override any gcc2 internal prototype to avoid an error. */
3441 #ifdef __cplusplus
3442 extern "C"
3443 #endif
3444 /* We use char because int might match the return type of a gcc2
3445 builtin and then its argument prototype would still apply. */
3446 char XOpenDisplay ();
3448 main ()
3450 XOpenDisplay ();
3452 return 0;
3454 _ACEOF
3455 rm -f conftest.$ac_objext conftest$ac_exeext
3456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3457 (eval $ac_link) 2>&5
3458 ac_status=$?
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); } &&
3461 { ac_try='test -s conftest$ac_exeext'
3462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463 (eval $ac_try) 2>&5
3464 ac_status=$?
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); }; }; then
3468 else
3469 echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3472 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3473 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3474 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 else
3477 ac_check_lib_save_LIBS=$LIBS
3478 LIBS="-ldnet $LIBS"
3479 cat >conftest.$ac_ext <<_ACEOF
3480 #line $LINENO "configure"
3481 /* confdefs.h. */
3482 _ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h. */
3487 /* Override any gcc2 internal prototype to avoid an error. */
3488 #ifdef __cplusplus
3489 extern "C"
3490 #endif
3491 /* We use char because int might match the return type of a gcc2
3492 builtin and then its argument prototype would still apply. */
3493 char dnet_ntoa ();
3495 main ()
3497 dnet_ntoa ();
3499 return 0;
3501 _ACEOF
3502 rm -f conftest.$ac_objext conftest$ac_exeext
3503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3504 (eval $ac_link) 2>&5
3505 ac_status=$?
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); } &&
3508 { ac_try='test -s conftest$ac_exeext'
3509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510 (eval $ac_try) 2>&5
3511 ac_status=$?
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }; }; then
3514 ac_cv_lib_dnet_dnet_ntoa=yes
3515 else
3516 echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3519 ac_cv_lib_dnet_dnet_ntoa=no
3521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3522 LIBS=$ac_check_lib_save_LIBS
3524 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3525 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3526 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3527 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3530 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3531 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3532 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3533 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3535 else
3536 ac_check_lib_save_LIBS=$LIBS
3537 LIBS="-ldnet_stub $LIBS"
3538 cat >conftest.$ac_ext <<_ACEOF
3539 #line $LINENO "configure"
3540 /* confdefs.h. */
3541 _ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3546 /* Override any gcc2 internal prototype to avoid an error. */
3547 #ifdef __cplusplus
3548 extern "C"
3549 #endif
3550 /* We use char because int might match the return type of a gcc2
3551 builtin and then its argument prototype would still apply. */
3552 char dnet_ntoa ();
3554 main ()
3556 dnet_ntoa ();
3558 return 0;
3560 _ACEOF
3561 rm -f conftest.$ac_objext conftest$ac_exeext
3562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3563 (eval $ac_link) 2>&5
3564 ac_status=$?
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); } &&
3567 { ac_try='test -s conftest$ac_exeext'
3568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3569 (eval $ac_try) 2>&5
3570 ac_status=$?
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); }; }; then
3573 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3574 else
3575 echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3578 ac_cv_lib_dnet_stub_dnet_ntoa=no
3580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3581 LIBS=$ac_check_lib_save_LIBS
3583 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3584 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3585 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3586 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3592 LIBS="$ac_xsave_LIBS"
3594 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3595 # to get the SysV transport functions.
3596 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3597 # needs -lnsl.
3598 # The nsl library prevents programs from opening the X display
3599 # on Irix 5.2, according to T.E. Dickey.
3600 # The functions gethostbyname, getservbyname, and inet_addr are
3601 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3602 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3603 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3604 if test "${ac_cv_func_gethostbyname+set}" = set; then
3605 echo $ECHO_N "(cached) $ECHO_C" >&6
3606 else
3607 cat >conftest.$ac_ext <<_ACEOF
3608 #line $LINENO "configure"
3609 /* confdefs.h. */
3610 _ACEOF
3611 cat confdefs.h >>conftest.$ac_ext
3612 cat >>conftest.$ac_ext <<_ACEOF
3613 /* end confdefs.h. */
3614 /* System header to define __stub macros and hopefully few prototypes,
3615 which can conflict with char gethostbyname (); below.
3616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3617 <limits.h> exists even on freestanding compilers. */
3618 #ifdef __STDC__
3619 # include <limits.h>
3620 #else
3621 # include <assert.h>
3622 #endif
3623 /* Override any gcc2 internal prototype to avoid an error. */
3624 #ifdef __cplusplus
3625 extern "C"
3627 #endif
3628 /* We use char because int might match the return type of a gcc2
3629 builtin and then its argument prototype would still apply. */
3630 char gethostbyname ();
3631 /* The GNU C library defines this for functions which it implements
3632 to always fail with ENOSYS. Some functions are actually named
3633 something starting with __ and the normal name is an alias. */
3634 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3635 choke me
3636 #else
3637 char (*f) () = gethostbyname;
3638 #endif
3639 #ifdef __cplusplus
3641 #endif
3644 main ()
3646 return f != gethostbyname;
3648 return 0;
3650 _ACEOF
3651 rm -f conftest.$ac_objext conftest$ac_exeext
3652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3653 (eval $ac_link) 2>&5
3654 ac_status=$?
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); } &&
3657 { ac_try='test -s conftest$ac_exeext'
3658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659 (eval $ac_try) 2>&5
3660 ac_status=$?
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }; }; then
3663 ac_cv_func_gethostbyname=yes
3664 else
3665 echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3668 ac_cv_func_gethostbyname=no
3670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3672 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3673 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3675 if test $ac_cv_func_gethostbyname = no; then
3676 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3677 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3678 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 else
3681 ac_check_lib_save_LIBS=$LIBS
3682 LIBS="-lnsl $LIBS"
3683 cat >conftest.$ac_ext <<_ACEOF
3684 #line $LINENO "configure"
3685 /* confdefs.h. */
3686 _ACEOF
3687 cat confdefs.h >>conftest.$ac_ext
3688 cat >>conftest.$ac_ext <<_ACEOF
3689 /* end confdefs.h. */
3691 /* Override any gcc2 internal prototype to avoid an error. */
3692 #ifdef __cplusplus
3693 extern "C"
3694 #endif
3695 /* We use char because int might match the return type of a gcc2
3696 builtin and then its argument prototype would still apply. */
3697 char gethostbyname ();
3699 main ()
3701 gethostbyname ();
3703 return 0;
3705 _ACEOF
3706 rm -f conftest.$ac_objext conftest$ac_exeext
3707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3708 (eval $ac_link) 2>&5
3709 ac_status=$?
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } &&
3712 { ac_try='test -s conftest$ac_exeext'
3713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714 (eval $ac_try) 2>&5
3715 ac_status=$?
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); }; }; then
3718 ac_cv_lib_nsl_gethostbyname=yes
3719 else
3720 echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3723 ac_cv_lib_nsl_gethostbyname=no
3725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3726 LIBS=$ac_check_lib_save_LIBS
3728 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3729 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3730 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3731 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3734 if test $ac_cv_lib_nsl_gethostbyname = no; then
3735 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3736 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3737 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740 ac_check_lib_save_LIBS=$LIBS
3741 LIBS="-lbsd $LIBS"
3742 cat >conftest.$ac_ext <<_ACEOF
3743 #line $LINENO "configure"
3744 /* confdefs.h. */
3745 _ACEOF
3746 cat confdefs.h >>conftest.$ac_ext
3747 cat >>conftest.$ac_ext <<_ACEOF
3748 /* end confdefs.h. */
3750 /* Override any gcc2 internal prototype to avoid an error. */
3751 #ifdef __cplusplus
3752 extern "C"
3753 #endif
3754 /* We use char because int might match the return type of a gcc2
3755 builtin and then its argument prototype would still apply. */
3756 char gethostbyname ();
3758 main ()
3760 gethostbyname ();
3762 return 0;
3764 _ACEOF
3765 rm -f conftest.$ac_objext conftest$ac_exeext
3766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3767 (eval $ac_link) 2>&5
3768 ac_status=$?
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); } &&
3771 { ac_try='test -s conftest$ac_exeext'
3772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3773 (eval $ac_try) 2>&5
3774 ac_status=$?
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); }; }; then
3777 ac_cv_lib_bsd_gethostbyname=yes
3778 else
3779 echo "$as_me: failed program was:" >&5
3780 sed 's/^/| /' conftest.$ac_ext >&5
3782 ac_cv_lib_bsd_gethostbyname=no
3784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3785 LIBS=$ac_check_lib_save_LIBS
3787 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3788 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3789 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3790 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3796 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3797 # socket/setsockopt and other routines are undefined under SCO ODT
3798 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3799 # on later versions), says Simon Leinen: it contains gethostby*
3800 # variants that don't use the name server (or something). -lsocket
3801 # must be given before -lnsl if both are needed. We assume that
3802 # if connect needs -lnsl, so does gethostbyname.
3803 echo "$as_me:$LINENO: checking for connect" >&5
3804 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3805 if test "${ac_cv_func_connect+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 else
3808 cat >conftest.$ac_ext <<_ACEOF
3809 #line $LINENO "configure"
3810 /* confdefs.h. */
3811 _ACEOF
3812 cat confdefs.h >>conftest.$ac_ext
3813 cat >>conftest.$ac_ext <<_ACEOF
3814 /* end confdefs.h. */
3815 /* System header to define __stub macros and hopefully few prototypes,
3816 which can conflict with char connect (); below.
3817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3818 <limits.h> exists even on freestanding compilers. */
3819 #ifdef __STDC__
3820 # include <limits.h>
3821 #else
3822 # include <assert.h>
3823 #endif
3824 /* Override any gcc2 internal prototype to avoid an error. */
3825 #ifdef __cplusplus
3826 extern "C"
3828 #endif
3829 /* We use char because int might match the return type of a gcc2
3830 builtin and then its argument prototype would still apply. */
3831 char connect ();
3832 /* The GNU C library defines this for functions which it implements
3833 to always fail with ENOSYS. Some functions are actually named
3834 something starting with __ and the normal name is an alias. */
3835 #if defined (__stub_connect) || defined (__stub___connect)
3836 choke me
3837 #else
3838 char (*f) () = connect;
3839 #endif
3840 #ifdef __cplusplus
3842 #endif
3845 main ()
3847 return f != connect;
3849 return 0;
3851 _ACEOF
3852 rm -f conftest.$ac_objext conftest$ac_exeext
3853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3854 (eval $ac_link) 2>&5
3855 ac_status=$?
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); } &&
3858 { ac_try='test -s conftest$ac_exeext'
3859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860 (eval $ac_try) 2>&5
3861 ac_status=$?
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); }; }; then
3864 ac_cv_func_connect=yes
3865 else
3866 echo "$as_me: failed program was:" >&5
3867 sed 's/^/| /' conftest.$ac_ext >&5
3869 ac_cv_func_connect=no
3871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3873 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3874 echo "${ECHO_T}$ac_cv_func_connect" >&6
3876 if test $ac_cv_func_connect = no; then
3877 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3878 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3879 if test "${ac_cv_lib_socket_connect+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3881 else
3882 ac_check_lib_save_LIBS=$LIBS
3883 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3884 cat >conftest.$ac_ext <<_ACEOF
3885 #line $LINENO "configure"
3886 /* confdefs.h. */
3887 _ACEOF
3888 cat confdefs.h >>conftest.$ac_ext
3889 cat >>conftest.$ac_ext <<_ACEOF
3890 /* end confdefs.h. */
3892 /* Override any gcc2 internal prototype to avoid an error. */
3893 #ifdef __cplusplus
3894 extern "C"
3895 #endif
3896 /* We use char because int might match the return type of a gcc2
3897 builtin and then its argument prototype would still apply. */
3898 char connect ();
3900 main ()
3902 connect ();
3904 return 0;
3906 _ACEOF
3907 rm -f conftest.$ac_objext conftest$ac_exeext
3908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3909 (eval $ac_link) 2>&5
3910 ac_status=$?
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); } &&
3913 { ac_try='test -s conftest$ac_exeext'
3914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3915 (eval $ac_try) 2>&5
3916 ac_status=$?
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); }; }; then
3919 ac_cv_lib_socket_connect=yes
3920 else
3921 echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3924 ac_cv_lib_socket_connect=no
3926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3927 LIBS=$ac_check_lib_save_LIBS
3929 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3930 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3931 if test $ac_cv_lib_socket_connect = yes; then
3932 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3937 # Guillermo Gomez says -lposix is necessary on A/UX.
3938 echo "$as_me:$LINENO: checking for remove" >&5
3939 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3940 if test "${ac_cv_func_remove+set}" = set; then
3941 echo $ECHO_N "(cached) $ECHO_C" >&6
3942 else
3943 cat >conftest.$ac_ext <<_ACEOF
3944 #line $LINENO "configure"
3945 /* confdefs.h. */
3946 _ACEOF
3947 cat confdefs.h >>conftest.$ac_ext
3948 cat >>conftest.$ac_ext <<_ACEOF
3949 /* end confdefs.h. */
3950 /* System header to define __stub macros and hopefully few prototypes,
3951 which can conflict with char remove (); below.
3952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3953 <limits.h> exists even on freestanding compilers. */
3954 #ifdef __STDC__
3955 # include <limits.h>
3956 #else
3957 # include <assert.h>
3958 #endif
3959 /* Override any gcc2 internal prototype to avoid an error. */
3960 #ifdef __cplusplus
3961 extern "C"
3963 #endif
3964 /* We use char because int might match the return type of a gcc2
3965 builtin and then its argument prototype would still apply. */
3966 char remove ();
3967 /* The GNU C library defines this for functions which it implements
3968 to always fail with ENOSYS. Some functions are actually named
3969 something starting with __ and the normal name is an alias. */
3970 #if defined (__stub_remove) || defined (__stub___remove)
3971 choke me
3972 #else
3973 char (*f) () = remove;
3974 #endif
3975 #ifdef __cplusplus
3977 #endif
3980 main ()
3982 return f != remove;
3984 return 0;
3986 _ACEOF
3987 rm -f conftest.$ac_objext conftest$ac_exeext
3988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3989 (eval $ac_link) 2>&5
3990 ac_status=$?
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); } &&
3993 { ac_try='test -s conftest$ac_exeext'
3994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3995 (eval $ac_try) 2>&5
3996 ac_status=$?
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); }; }; then
3999 ac_cv_func_remove=yes
4000 else
4001 echo "$as_me: failed program was:" >&5
4002 sed 's/^/| /' conftest.$ac_ext >&5
4004 ac_cv_func_remove=no
4006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4008 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4009 echo "${ECHO_T}$ac_cv_func_remove" >&6
4011 if test $ac_cv_func_remove = no; then
4012 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4013 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4014 if test "${ac_cv_lib_posix_remove+set}" = set; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 else
4017 ac_check_lib_save_LIBS=$LIBS
4018 LIBS="-lposix $LIBS"
4019 cat >conftest.$ac_ext <<_ACEOF
4020 #line $LINENO "configure"
4021 /* confdefs.h. */
4022 _ACEOF
4023 cat confdefs.h >>conftest.$ac_ext
4024 cat >>conftest.$ac_ext <<_ACEOF
4025 /* end confdefs.h. */
4027 /* Override any gcc2 internal prototype to avoid an error. */
4028 #ifdef __cplusplus
4029 extern "C"
4030 #endif
4031 /* We use char because int might match the return type of a gcc2
4032 builtin and then its argument prototype would still apply. */
4033 char remove ();
4035 main ()
4037 remove ();
4039 return 0;
4041 _ACEOF
4042 rm -f conftest.$ac_objext conftest$ac_exeext
4043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4044 (eval $ac_link) 2>&5
4045 ac_status=$?
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } &&
4048 { ac_try='test -s conftest$ac_exeext'
4049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050 (eval $ac_try) 2>&5
4051 ac_status=$?
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); }; }; then
4054 ac_cv_lib_posix_remove=yes
4055 else
4056 echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4059 ac_cv_lib_posix_remove=no
4061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4062 LIBS=$ac_check_lib_save_LIBS
4064 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4065 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4066 if test $ac_cv_lib_posix_remove = yes; then
4067 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4072 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4073 echo "$as_me:$LINENO: checking for shmat" >&5
4074 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4075 if test "${ac_cv_func_shmat+set}" = set; then
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
4077 else
4078 cat >conftest.$ac_ext <<_ACEOF
4079 #line $LINENO "configure"
4080 /* confdefs.h. */
4081 _ACEOF
4082 cat confdefs.h >>conftest.$ac_ext
4083 cat >>conftest.$ac_ext <<_ACEOF
4084 /* end confdefs.h. */
4085 /* System header to define __stub macros and hopefully few prototypes,
4086 which can conflict with char shmat (); below.
4087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4088 <limits.h> exists even on freestanding compilers. */
4089 #ifdef __STDC__
4090 # include <limits.h>
4091 #else
4092 # include <assert.h>
4093 #endif
4094 /* Override any gcc2 internal prototype to avoid an error. */
4095 #ifdef __cplusplus
4096 extern "C"
4098 #endif
4099 /* We use char because int might match the return type of a gcc2
4100 builtin and then its argument prototype would still apply. */
4101 char shmat ();
4102 /* The GNU C library defines this for functions which it implements
4103 to always fail with ENOSYS. Some functions are actually named
4104 something starting with __ and the normal name is an alias. */
4105 #if defined (__stub_shmat) || defined (__stub___shmat)
4106 choke me
4107 #else
4108 char (*f) () = shmat;
4109 #endif
4110 #ifdef __cplusplus
4112 #endif
4115 main ()
4117 return f != shmat;
4119 return 0;
4121 _ACEOF
4122 rm -f conftest.$ac_objext conftest$ac_exeext
4123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4124 (eval $ac_link) 2>&5
4125 ac_status=$?
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); } &&
4128 { ac_try='test -s conftest$ac_exeext'
4129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4130 (eval $ac_try) 2>&5
4131 ac_status=$?
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); }; }; then
4134 ac_cv_func_shmat=yes
4135 else
4136 echo "$as_me: failed program was:" >&5
4137 sed 's/^/| /' conftest.$ac_ext >&5
4139 ac_cv_func_shmat=no
4141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4143 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4144 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4146 if test $ac_cv_func_shmat = no; then
4147 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4148 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4149 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4151 else
4152 ac_check_lib_save_LIBS=$LIBS
4153 LIBS="-lipc $LIBS"
4154 cat >conftest.$ac_ext <<_ACEOF
4155 #line $LINENO "configure"
4156 /* confdefs.h. */
4157 _ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4162 /* Override any gcc2 internal prototype to avoid an error. */
4163 #ifdef __cplusplus
4164 extern "C"
4165 #endif
4166 /* We use char because int might match the return type of a gcc2
4167 builtin and then its argument prototype would still apply. */
4168 char shmat ();
4170 main ()
4172 shmat ();
4174 return 0;
4176 _ACEOF
4177 rm -f conftest.$ac_objext conftest$ac_exeext
4178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4179 (eval $ac_link) 2>&5
4180 ac_status=$?
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } &&
4183 { ac_try='test -s conftest$ac_exeext'
4184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185 (eval $ac_try) 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; }; then
4189 ac_cv_lib_ipc_shmat=yes
4190 else
4191 echo "$as_me: failed program was:" >&5
4192 sed 's/^/| /' conftest.$ac_ext >&5
4194 ac_cv_lib_ipc_shmat=no
4196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4197 LIBS=$ac_check_lib_save_LIBS
4199 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4200 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4201 if test $ac_cv_lib_ipc_shmat = yes; then
4202 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4208 # Check for libraries that X11R6 Xt/Xaw programs need.
4209 ac_save_LDFLAGS=$LDFLAGS
4210 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4211 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4212 # check for ICE first), but we must link in the order -lSM -lICE or
4213 # we get undefined symbols. So assume we have SM if we have ICE.
4214 # These have to be linked with before -lX11, unlike the other
4215 # libraries we check for below, so use a different variable.
4216 # John Interrante, Karl Berry
4217 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4218 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4219 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4220 echo $ECHO_N "(cached) $ECHO_C" >&6
4221 else
4222 ac_check_lib_save_LIBS=$LIBS
4223 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4224 cat >conftest.$ac_ext <<_ACEOF
4225 #line $LINENO "configure"
4226 /* confdefs.h. */
4227 _ACEOF
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h. */
4232 /* Override any gcc2 internal prototype to avoid an error. */
4233 #ifdef __cplusplus
4234 extern "C"
4235 #endif
4236 /* We use char because int might match the return type of a gcc2
4237 builtin and then its argument prototype would still apply. */
4238 char IceConnectionNumber ();
4240 main ()
4242 IceConnectionNumber ();
4244 return 0;
4246 _ACEOF
4247 rm -f conftest.$ac_objext conftest$ac_exeext
4248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4249 (eval $ac_link) 2>&5
4250 ac_status=$?
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); } &&
4253 { ac_try='test -s conftest$ac_exeext'
4254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4255 (eval $ac_try) 2>&5
4256 ac_status=$?
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }; }; then
4259 ac_cv_lib_ICE_IceConnectionNumber=yes
4260 else
4261 echo "$as_me: failed program was:" >&5
4262 sed 's/^/| /' conftest.$ac_ext >&5
4264 ac_cv_lib_ICE_IceConnectionNumber=no
4266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4267 LIBS=$ac_check_lib_save_LIBS
4269 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4270 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4271 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4272 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4275 LDFLAGS=$ac_save_LDFLAGS
4280 X_LIBRARY_PATH=$x_libraries
4282 XCFLAGS="$X_CFLAGS"
4284 XLFLAGS="$X_LIBS"
4286 XLIBS="-lX11 $X_EXTRA_LIBS"
4288 lib_search_path="$lib_search_path $XLFLAGS -L/usr/local/lib"
4289 inc_search_path="$inc_search_path $XCFLAGS -I/usr/local/include"
4293 echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
4294 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
4295 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4297 else
4298 ac_check_lib_save_LIBS=$LIBS
4299 LIBS="-lXext $X_LIBS $X_EXTRA_LIBS -lX11 $LIBS"
4300 cat >conftest.$ac_ext <<_ACEOF
4301 #line $LINENO "configure"
4302 /* confdefs.h. */
4303 _ACEOF
4304 cat confdefs.h >>conftest.$ac_ext
4305 cat >>conftest.$ac_ext <<_ACEOF
4306 /* end confdefs.h. */
4308 /* Override any gcc2 internal prototype to avoid an error. */
4309 #ifdef __cplusplus
4310 extern "C"
4311 #endif
4312 /* We use char because int might match the return type of a gcc2
4313 builtin and then its argument prototype would still apply. */
4314 char XShapeCombineMask ();
4316 main ()
4318 XShapeCombineMask ();
4320 return 0;
4322 _ACEOF
4323 rm -f conftest.$ac_objext conftest$ac_exeext
4324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4325 (eval $ac_link) 2>&5
4326 ac_status=$?
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); } &&
4329 { ac_try='test -s conftest$ac_exeext'
4330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331 (eval $ac_try) 2>&5
4332 ac_status=$?
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; }; then
4335 ac_cv_lib_Xext_XShapeCombineMask=yes
4336 else
4337 echo "$as_me: failed program was:" >&5
4338 sed 's/^/| /' conftest.$ac_ext >&5
4340 ac_cv_lib_Xext_XShapeCombineMask=no
4342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4343 LIBS=$ac_check_lib_save_LIBS
4345 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
4346 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
4347 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
4348 XLIBS="$XLIBS -lXext"
4349 else
4350 echo "The shape extension stuff could not be found in the X client libraries"
4351 exit 1
4355 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
4356 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
4357 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4359 else
4360 ac_check_lib_save_LIBS=$LIBS
4361 LIBS="-lXpm $X_LIBS $X_EXTRA_LIBS -lX11 $LIBS"
4362 cat >conftest.$ac_ext <<_ACEOF
4363 #line $LINENO "configure"
4364 /* confdefs.h. */
4365 _ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h. */
4370 /* Override any gcc2 internal prototype to avoid an error. */
4371 #ifdef __cplusplus
4372 extern "C"
4373 #endif
4374 /* We use char because int might match the return type of a gcc2
4375 builtin and then its argument prototype would still apply. */
4376 char XpmCreatePixmapFromData ();
4378 main ()
4380 XpmCreatePixmapFromData ();
4382 return 0;
4384 _ACEOF
4385 rm -f conftest.$ac_objext conftest$ac_exeext
4386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4387 (eval $ac_link) 2>&5
4388 ac_status=$?
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } &&
4391 { ac_try='test -s conftest$ac_exeext'
4392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393 (eval $ac_try) 2>&5
4394 ac_status=$?
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; }; then
4397 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
4398 else
4399 echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4402 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
4404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4405 LIBS=$ac_check_lib_save_LIBS
4407 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
4408 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
4409 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
4410 XLIBS="$XLIBS -lXpm"
4411 else
4412 echo "The libXpm library was not found, but is necessary to build this library"
4413 exit 1
4424 # Check whether --enable-debug or --disable-debug was given.
4425 if test "${enable_debug+set}" = set; then
4426 enableval="$enable_debug"
4428 else
4429 enable_debug=no
4431 if test "$enable_debug" = yes; then
4432 DFLAGS="-Wall -g -ansi -pedantic"
4434 cat >>confdefs.h <<\_ACEOF
4435 #define DEBUG 1
4436 _ACEOF
4443 ignore_buffers=no
4444 ignore_cached=no
4445 ignore_wired=no
4447 case ${host_os} in
4448 linux*)
4449 OS=linux
4450 ignore_buffers=yes
4451 ignore_cached=yes
4453 freebsd*)
4454 OS=freebsd
4455 ignore_wired=yes
4456 ignore_cached=yes
4457 LIBS="$LIBS -lkvm"
4458 SETGID_FLAGS="-g kmem -m 2755 -o root"
4460 openbsd*)
4461 OS=openbsd
4463 solaris*)
4464 OS=solaris
4467 echo ""
4468 echo "Sorry, ${host_os} is not supported yet"
4469 echo ""
4470 exit 1
4472 esac
4478 if test "$ignore_buffers" = yes; then
4480 cat >>confdefs.h <<\_ACEOF
4481 #define IGNORE_BUFFERS 1
4482 _ACEOF
4485 if test "$ignore_cached" = yes; then
4487 cat >>confdefs.h <<\_ACEOF
4488 #define IGNORE_CACHED 1
4489 _ACEOF
4492 if test "$ignore_wired" = yes; then
4494 cat >>confdefs.h <<\_ACEOF
4495 #define IGNORE_WIRED 1
4496 _ACEOF
4502 LIBRARY_SEARCH_PATH="$lib_search_path"
4503 HEADER_SEARCH_PATH="$inc_search_path"
4508 echo "$as_me:$LINENO: checking for egrep" >&5
4509 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4510 if test "${ac_cv_prog_egrep+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4514 then ac_cv_prog_egrep='grep -E'
4515 else ac_cv_prog_egrep='egrep'
4518 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4519 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4520 EGREP=$ac_cv_prog_egrep
4523 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4524 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4525 if test "${ac_cv_header_stdc+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4527 else
4528 cat >conftest.$ac_ext <<_ACEOF
4529 #line $LINENO "configure"
4530 /* confdefs.h. */
4531 _ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h. */
4535 #include <stdlib.h>
4536 #include <stdarg.h>
4537 #include <string.h>
4538 #include <float.h>
4541 main ()
4545 return 0;
4547 _ACEOF
4548 rm -f conftest.$ac_objext
4549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4550 (eval $ac_compile) 2>&5
4551 ac_status=$?
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); } &&
4554 { ac_try='test -s conftest.$ac_objext'
4555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556 (eval $ac_try) 2>&5
4557 ac_status=$?
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4560 ac_cv_header_stdc=yes
4561 else
4562 echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4565 ac_cv_header_stdc=no
4567 rm -f conftest.$ac_objext conftest.$ac_ext
4569 if test $ac_cv_header_stdc = yes; then
4570 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4571 cat >conftest.$ac_ext <<_ACEOF
4572 #line $LINENO "configure"
4573 /* confdefs.h. */
4574 _ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h. */
4578 #include <string.h>
4580 _ACEOF
4581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4582 $EGREP "memchr" >/dev/null 2>&1; then
4584 else
4585 ac_cv_header_stdc=no
4587 rm -f conftest*
4591 if test $ac_cv_header_stdc = yes; then
4592 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4593 cat >conftest.$ac_ext <<_ACEOF
4594 #line $LINENO "configure"
4595 /* confdefs.h. */
4596 _ACEOF
4597 cat confdefs.h >>conftest.$ac_ext
4598 cat >>conftest.$ac_ext <<_ACEOF
4599 /* end confdefs.h. */
4600 #include <stdlib.h>
4602 _ACEOF
4603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4604 $EGREP "free" >/dev/null 2>&1; then
4606 else
4607 ac_cv_header_stdc=no
4609 rm -f conftest*
4613 if test $ac_cv_header_stdc = yes; then
4614 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4615 if test "$cross_compiling" = yes; then
4617 else
4618 cat >conftest.$ac_ext <<_ACEOF
4619 #line $LINENO "configure"
4620 /* confdefs.h. */
4621 _ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h. */
4625 #include <ctype.h>
4626 #if ((' ' & 0x0FF) == 0x020)
4627 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4628 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4629 #else
4630 # define ISLOWER(c) \
4631 (('a' <= (c) && (c) <= 'i') \
4632 || ('j' <= (c) && (c) <= 'r') \
4633 || ('s' <= (c) && (c) <= 'z'))
4634 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4635 #endif
4637 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4639 main ()
4641 int i;
4642 for (i = 0; i < 256; i++)
4643 if (XOR (islower (i), ISLOWER (i))
4644 || toupper (i) != TOUPPER (i))
4645 exit(2);
4646 exit (0);
4648 _ACEOF
4649 rm -f conftest$ac_exeext
4650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4651 (eval $ac_link) 2>&5
4652 ac_status=$?
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656 (eval $ac_try) 2>&5
4657 ac_status=$?
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); }; }; then
4661 else
4662 echo "$as_me: program exited with status $ac_status" >&5
4663 echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4666 ( exit $ac_status )
4667 ac_cv_header_stdc=no
4669 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4673 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4674 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4675 if test $ac_cv_header_stdc = yes; then
4677 cat >>confdefs.h <<\_ACEOF
4678 #define STDC_HEADERS 1
4679 _ACEOF
4683 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4693 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4694 inttypes.h stdint.h unistd.h
4696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4697 echo "$as_me:$LINENO: checking for $ac_header" >&5
4698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 else
4702 cat >conftest.$ac_ext <<_ACEOF
4703 #line $LINENO "configure"
4704 /* confdefs.h. */
4705 _ACEOF
4706 cat confdefs.h >>conftest.$ac_ext
4707 cat >>conftest.$ac_ext <<_ACEOF
4708 /* end confdefs.h. */
4709 $ac_includes_default
4711 #include <$ac_header>
4712 _ACEOF
4713 rm -f conftest.$ac_objext
4714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4715 (eval $ac_compile) 2>&5
4716 ac_status=$?
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } &&
4719 { ac_try='test -s conftest.$ac_objext'
4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 (eval $ac_try) 2>&5
4722 ac_status=$?
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; }; then
4725 eval "$as_ac_Header=yes"
4726 else
4727 echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4730 eval "$as_ac_Header=no"
4732 rm -f conftest.$ac_objext conftest.$ac_ext
4734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4737 cat >>confdefs.h <<_ACEOF
4738 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4739 _ACEOF
4743 done
4755 for ac_header in fcntl.h memory.h stddef.h stdlib.h string.h strings.h sys/param.h sys/time.h unistd.h
4757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4759 echo "$as_me:$LINENO: checking for $ac_header" >&5
4760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4762 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4766 else
4767 # Is the header compilable?
4768 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4769 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4770 cat >conftest.$ac_ext <<_ACEOF
4771 #line $LINENO "configure"
4772 /* confdefs.h. */
4773 _ACEOF
4774 cat confdefs.h >>conftest.$ac_ext
4775 cat >>conftest.$ac_ext <<_ACEOF
4776 /* end confdefs.h. */
4777 $ac_includes_default
4778 #include <$ac_header>
4779 _ACEOF
4780 rm -f conftest.$ac_objext
4781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4782 (eval $ac_compile) 2>&5
4783 ac_status=$?
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); } &&
4786 { ac_try='test -s conftest.$ac_objext'
4787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788 (eval $ac_try) 2>&5
4789 ac_status=$?
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); }; }; then
4792 ac_header_compiler=yes
4793 else
4794 echo "$as_me: failed program was:" >&5
4795 sed 's/^/| /' conftest.$ac_ext >&5
4797 ac_header_compiler=no
4799 rm -f conftest.$ac_objext conftest.$ac_ext
4800 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4801 echo "${ECHO_T}$ac_header_compiler" >&6
4803 # Is the header present?
4804 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4805 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4806 cat >conftest.$ac_ext <<_ACEOF
4807 #line $LINENO "configure"
4808 /* confdefs.h. */
4809 _ACEOF
4810 cat confdefs.h >>conftest.$ac_ext
4811 cat >>conftest.$ac_ext <<_ACEOF
4812 /* end confdefs.h. */
4813 #include <$ac_header>
4814 _ACEOF
4815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4817 ac_status=$?
4818 grep -v '^ *+' conftest.er1 >conftest.err
4819 rm -f conftest.er1
4820 cat conftest.err >&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); } >/dev/null; then
4823 if test -s conftest.err; then
4824 ac_cpp_err=$ac_c_preproc_warn_flag
4825 else
4826 ac_cpp_err=
4828 else
4829 ac_cpp_err=yes
4831 if test -z "$ac_cpp_err"; then
4832 ac_header_preproc=yes
4833 else
4834 echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4837 ac_header_preproc=no
4839 rm -f conftest.err conftest.$ac_ext
4840 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4841 echo "${ECHO_T}$ac_header_preproc" >&6
4843 # So? What about this header?
4844 case $ac_header_compiler:$ac_header_preproc in
4845 yes:no )
4846 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4849 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4851 cat <<\_ASBOX
4852 ## ------------------------------------ ##
4853 ## Report this to bug-autoconf@gnu.org. ##
4854 ## ------------------------------------ ##
4855 _ASBOX
4857 sed "s/^/$as_me: WARNING: /" >&2
4859 no:yes )
4860 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4861 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4862 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4863 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4865 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4867 cat <<\_ASBOX
4868 ## ------------------------------------ ##
4869 ## Report this to bug-autoconf@gnu.org. ##
4870 ## ------------------------------------ ##
4871 _ASBOX
4873 sed "s/^/$as_me: WARNING: /" >&2
4875 esac
4876 echo "$as_me:$LINENO: checking for $ac_header" >&5
4877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4880 else
4881 eval "$as_ac_Header=$ac_header_preproc"
4883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4884 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4887 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4888 cat >>confdefs.h <<_ACEOF
4889 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4890 _ACEOF
4894 done
4897 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4898 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4899 if test "${ac_cv_c_const+set}" = set; then
4900 echo $ECHO_N "(cached) $ECHO_C" >&6
4901 else
4902 cat >conftest.$ac_ext <<_ACEOF
4903 #line $LINENO "configure"
4904 /* confdefs.h. */
4905 _ACEOF
4906 cat confdefs.h >>conftest.$ac_ext
4907 cat >>conftest.$ac_ext <<_ACEOF
4908 /* end confdefs.h. */
4911 main ()
4913 /* FIXME: Include the comments suggested by Paul. */
4914 #ifndef __cplusplus
4915 /* Ultrix mips cc rejects this. */
4916 typedef int charset[2];
4917 const charset x;
4918 /* SunOS 4.1.1 cc rejects this. */
4919 char const *const *ccp;
4920 char **p;
4921 /* NEC SVR4.0.2 mips cc rejects this. */
4922 struct point {int x, y;};
4923 static struct point const zero = {0,0};
4924 /* AIX XL C 1.02.0.0 rejects this.
4925 It does not let you subtract one const X* pointer from another in
4926 an arm of an if-expression whose if-part is not a constant
4927 expression */
4928 const char *g = "string";
4929 ccp = &g + (g ? g-g : 0);
4930 /* HPUX 7.0 cc rejects these. */
4931 ++ccp;
4932 p = (char**) ccp;
4933 ccp = (char const *const *) p;
4934 { /* SCO 3.2v4 cc rejects this. */
4935 char *t;
4936 char const *s = 0 ? (char *) 0 : (char const *) 0;
4938 *t++ = 0;
4940 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4941 int x[] = {25, 17};
4942 const int *foo = &x[0];
4943 ++foo;
4945 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4946 typedef const int *iptr;
4947 iptr p = 0;
4948 ++p;
4950 { /* AIX XL C 1.02.0.0 rejects this saying
4951 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4952 struct s { int j; const int *ap[3]; };
4953 struct s *b; b->j = 5;
4955 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4956 const int foo = 10;
4958 #endif
4961 return 0;
4963 _ACEOF
4964 rm -f conftest.$ac_objext
4965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4966 (eval $ac_compile) 2>&5
4967 ac_status=$?
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); } &&
4970 { ac_try='test -s conftest.$ac_objext'
4971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972 (eval $ac_try) 2>&5
4973 ac_status=$?
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); }; }; then
4976 ac_cv_c_const=yes
4977 else
4978 echo "$as_me: failed program was:" >&5
4979 sed 's/^/| /' conftest.$ac_ext >&5
4981 ac_cv_c_const=no
4983 rm -f conftest.$ac_objext conftest.$ac_ext
4985 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4986 echo "${ECHO_T}$ac_cv_c_const" >&6
4987 if test $ac_cv_c_const = no; then
4989 cat >>confdefs.h <<\_ACEOF
4990 #define const
4991 _ACEOF
4995 echo "$as_me:$LINENO: checking for size_t" >&5
4996 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4997 if test "${ac_cv_type_size_t+set}" = set; then
4998 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 else
5000 cat >conftest.$ac_ext <<_ACEOF
5001 #line $LINENO "configure"
5002 /* confdefs.h. */
5003 _ACEOF
5004 cat confdefs.h >>conftest.$ac_ext
5005 cat >>conftest.$ac_ext <<_ACEOF
5006 /* end confdefs.h. */
5007 $ac_includes_default
5009 main ()
5011 if ((size_t *) 0)
5012 return 0;
5013 if (sizeof (size_t))
5014 return 0;
5016 return 0;
5018 _ACEOF
5019 rm -f conftest.$ac_objext
5020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5021 (eval $ac_compile) 2>&5
5022 ac_status=$?
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); } &&
5025 { ac_try='test -s conftest.$ac_objext'
5026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5027 (eval $ac_try) 2>&5
5028 ac_status=$?
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); }; }; then
5031 ac_cv_type_size_t=yes
5032 else
5033 echo "$as_me: failed program was:" >&5
5034 sed 's/^/| /' conftest.$ac_ext >&5
5036 ac_cv_type_size_t=no
5038 rm -f conftest.$ac_objext conftest.$ac_ext
5040 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5041 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5042 if test $ac_cv_type_size_t = yes; then
5044 else
5046 cat >>confdefs.h <<_ACEOF
5047 #define size_t unsigned
5048 _ACEOF
5052 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5053 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5054 if test "${ac_cv_header_time+set}" = set; then
5055 echo $ECHO_N "(cached) $ECHO_C" >&6
5056 else
5057 cat >conftest.$ac_ext <<_ACEOF
5058 #line $LINENO "configure"
5059 /* confdefs.h. */
5060 _ACEOF
5061 cat confdefs.h >>conftest.$ac_ext
5062 cat >>conftest.$ac_ext <<_ACEOF
5063 /* end confdefs.h. */
5064 #include <sys/types.h>
5065 #include <sys/time.h>
5066 #include <time.h>
5069 main ()
5071 if ((struct tm *) 0)
5072 return 0;
5074 return 0;
5076 _ACEOF
5077 rm -f conftest.$ac_objext
5078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5079 (eval $ac_compile) 2>&5
5080 ac_status=$?
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } &&
5083 { ac_try='test -s conftest.$ac_objext'
5084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085 (eval $ac_try) 2>&5
5086 ac_status=$?
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); }; }; then
5089 ac_cv_header_time=yes
5090 else
5091 echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.$ac_ext >&5
5094 ac_cv_header_time=no
5096 rm -f conftest.$ac_objext conftest.$ac_ext
5098 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5099 echo "${ECHO_T}$ac_cv_header_time" >&6
5100 if test $ac_cv_header_time = yes; then
5102 cat >>confdefs.h <<\_ACEOF
5103 #define TIME_WITH_SYS_TIME 1
5104 _ACEOF
5110 for ac_header in stdlib.h
5112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5114 echo "$as_me:$LINENO: checking for $ac_header" >&5
5115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5117 echo $ECHO_N "(cached) $ECHO_C" >&6
5119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5121 else
5122 # Is the header compilable?
5123 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5125 cat >conftest.$ac_ext <<_ACEOF
5126 #line $LINENO "configure"
5127 /* confdefs.h. */
5128 _ACEOF
5129 cat confdefs.h >>conftest.$ac_ext
5130 cat >>conftest.$ac_ext <<_ACEOF
5131 /* end confdefs.h. */
5132 $ac_includes_default
5133 #include <$ac_header>
5134 _ACEOF
5135 rm -f conftest.$ac_objext
5136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5137 (eval $ac_compile) 2>&5
5138 ac_status=$?
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); } &&
5141 { ac_try='test -s conftest.$ac_objext'
5142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5143 (eval $ac_try) 2>&5
5144 ac_status=$?
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); }; }; then
5147 ac_header_compiler=yes
5148 else
5149 echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5152 ac_header_compiler=no
5154 rm -f conftest.$ac_objext conftest.$ac_ext
5155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5156 echo "${ECHO_T}$ac_header_compiler" >&6
5158 # Is the header present?
5159 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5161 cat >conftest.$ac_ext <<_ACEOF
5162 #line $LINENO "configure"
5163 /* confdefs.h. */
5164 _ACEOF
5165 cat confdefs.h >>conftest.$ac_ext
5166 cat >>conftest.$ac_ext <<_ACEOF
5167 /* end confdefs.h. */
5168 #include <$ac_header>
5169 _ACEOF
5170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5172 ac_status=$?
5173 grep -v '^ *+' conftest.er1 >conftest.err
5174 rm -f conftest.er1
5175 cat conftest.err >&5
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); } >/dev/null; then
5178 if test -s conftest.err; then
5179 ac_cpp_err=$ac_c_preproc_warn_flag
5180 else
5181 ac_cpp_err=
5183 else
5184 ac_cpp_err=yes
5186 if test -z "$ac_cpp_err"; then
5187 ac_header_preproc=yes
5188 else
5189 echo "$as_me: failed program was:" >&5
5190 sed 's/^/| /' conftest.$ac_ext >&5
5192 ac_header_preproc=no
5194 rm -f conftest.err conftest.$ac_ext
5195 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5196 echo "${ECHO_T}$ac_header_preproc" >&6
5198 # So? What about this header?
5199 case $ac_header_compiler:$ac_header_preproc in
5200 yes:no )
5201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5206 cat <<\_ASBOX
5207 ## ------------------------------------ ##
5208 ## Report this to bug-autoconf@gnu.org. ##
5209 ## ------------------------------------ ##
5210 _ASBOX
5212 sed "s/^/$as_me: WARNING: /" >&2
5214 no:yes )
5215 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5216 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5217 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5218 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5222 cat <<\_ASBOX
5223 ## ------------------------------------ ##
5224 ## Report this to bug-autoconf@gnu.org. ##
5225 ## ------------------------------------ ##
5226 _ASBOX
5228 sed "s/^/$as_me: WARNING: /" >&2
5230 esac
5231 echo "$as_me:$LINENO: checking for $ac_header" >&5
5232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5235 else
5236 eval "$as_ac_Header=$ac_header_preproc"
5238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5243 cat >>confdefs.h <<_ACEOF
5244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5245 _ACEOF
5249 done
5251 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
5252 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
5253 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5255 else
5256 if test "$cross_compiling" = yes; then
5257 ac_cv_func_malloc_0_nonnull=no
5258 else
5259 cat >conftest.$ac_ext <<_ACEOF
5260 #line $LINENO "configure"
5261 /* confdefs.h. */
5262 _ACEOF
5263 cat confdefs.h >>conftest.$ac_ext
5264 cat >>conftest.$ac_ext <<_ACEOF
5265 /* end confdefs.h. */
5266 #if STDC_HEADERS || HAVE_STDLIB_H
5267 # include <stdlib.h>
5268 #else
5269 char *malloc ();
5270 #endif
5273 main ()
5275 exit (malloc (0) ? 0 : 1);
5277 return 0;
5279 _ACEOF
5280 rm -f conftest$ac_exeext
5281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5282 (eval $ac_link) 2>&5
5283 ac_status=$?
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5287 (eval $ac_try) 2>&5
5288 ac_status=$?
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); }; }; then
5291 ac_cv_func_malloc_0_nonnull=yes
5292 else
5293 echo "$as_me: program exited with status $ac_status" >&5
5294 echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5297 ( exit $ac_status )
5298 ac_cv_func_malloc_0_nonnull=no
5300 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5303 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
5304 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
5305 if test $ac_cv_func_malloc_0_nonnull = yes; then
5307 cat >>confdefs.h <<\_ACEOF
5308 #define HAVE_MALLOC 1
5309 _ACEOF
5311 else
5312 cat >>confdefs.h <<\_ACEOF
5313 #define HAVE_MALLOC 0
5314 _ACEOF
5316 LIBOBJS="$LIBOBJS malloc.$ac_objext"
5318 cat >>confdefs.h <<\_ACEOF
5319 #define malloc rpl_malloc
5320 _ACEOF
5329 for ac_func in select strtoul uname
5331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5332 echo "$as_me:$LINENO: checking for $ac_func" >&5
5333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5334 if eval "test \"\${$as_ac_var+set}\" = set"; then
5335 echo $ECHO_N "(cached) $ECHO_C" >&6
5336 else
5337 cat >conftest.$ac_ext <<_ACEOF
5338 #line $LINENO "configure"
5339 /* confdefs.h. */
5340 _ACEOF
5341 cat confdefs.h >>conftest.$ac_ext
5342 cat >>conftest.$ac_ext <<_ACEOF
5343 /* end confdefs.h. */
5344 /* System header to define __stub macros and hopefully few prototypes,
5345 which can conflict with char $ac_func (); below.
5346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5347 <limits.h> exists even on freestanding compilers. */
5348 #ifdef __STDC__
5349 # include <limits.h>
5350 #else
5351 # include <assert.h>
5352 #endif
5353 /* Override any gcc2 internal prototype to avoid an error. */
5354 #ifdef __cplusplus
5355 extern "C"
5357 #endif
5358 /* We use char because int might match the return type of a gcc2
5359 builtin and then its argument prototype would still apply. */
5360 char $ac_func ();
5361 /* The GNU C library defines this for functions which it implements
5362 to always fail with ENOSYS. Some functions are actually named
5363 something starting with __ and the normal name is an alias. */
5364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5365 choke me
5366 #else
5367 char (*f) () = $ac_func;
5368 #endif
5369 #ifdef __cplusplus
5371 #endif
5374 main ()
5376 return f != $ac_func;
5378 return 0;
5380 _ACEOF
5381 rm -f conftest.$ac_objext conftest$ac_exeext
5382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5383 (eval $ac_link) 2>&5
5384 ac_status=$?
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } &&
5387 { ac_try='test -s conftest$ac_exeext'
5388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389 (eval $ac_try) 2>&5
5390 ac_status=$?
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }; }; then
5393 eval "$as_ac_var=yes"
5394 else
5395 echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.$ac_ext >&5
5398 eval "$as_ac_var=no"
5400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5403 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5404 if test `eval echo '${'$as_ac_var'}'` = yes; then
5405 cat >>confdefs.h <<_ACEOF
5406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5407 _ACEOF
5410 done
5413 ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile"
5415 cat >confcache <<\_ACEOF
5416 # This file is a shell script that caches the results of configure
5417 # tests run on this system so they can be shared between configure
5418 # scripts and configure runs, see configure's option --config-cache.
5419 # It is not useful on other systems. If it contains results you don't
5420 # want to keep, you may remove or edit it.
5422 # config.status only pays attention to the cache file if you give it
5423 # the --recheck option to rerun configure.
5425 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5426 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5427 # following values.
5429 _ACEOF
5431 # The following way of writing the cache mishandles newlines in values,
5432 # but we know of no workaround that is simple, portable, and efficient.
5433 # So, don't put newlines in cache variables' values.
5434 # Ultrix sh set writes to stderr and can't be redirected directly,
5435 # and sets the high bit in the cache file unless we assign to the vars.
5437 (set) 2>&1 |
5438 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5439 *ac_space=\ *)
5440 # `set' does not quote correctly, so add quotes (double-quote
5441 # substitution turns \\\\ into \\, and sed turns \\ into \).
5442 sed -n \
5443 "s/'/'\\\\''/g;
5444 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5447 # `set' quotes correctly as required by POSIX, so do not add quotes.
5448 sed -n \
5449 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5451 esac;
5453 sed '
5454 t clear
5455 : clear
5456 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5457 t end
5458 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5459 : end' >>confcache
5460 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5461 if test -w $cache_file; then
5462 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5463 cat confcache >$cache_file
5464 else
5465 echo "not updating unwritable cache $cache_file"
5468 rm -f confcache
5470 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5471 # Let make expand exec_prefix.
5472 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5474 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5475 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5476 # trailing colons and then remove the whole line if VPATH becomes empty
5477 # (actually we leave an empty line to preserve line numbers).
5478 if test "x$srcdir" = x.; then
5479 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5480 s/:*\$(srcdir):*/:/;
5481 s/:*\${srcdir}:*/:/;
5482 s/:*@srcdir@:*/:/;
5483 s/^\([^=]*=[ ]*\):*/\1/;
5484 s/:*$//;
5485 s/^[^=]*=[ ]*$//;
5489 DEFS=-DHAVE_CONFIG_H
5491 ac_libobjs=
5492 ac_ltlibobjs=
5493 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5494 # 1. Remove the extension, and $U if already installed.
5495 ac_i=`echo "$ac_i" |
5496 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5497 # 2. Add them.
5498 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5499 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5500 done
5501 LIBOBJS=$ac_libobjs
5503 LTLIBOBJS=$ac_ltlibobjs
5507 : ${CONFIG_STATUS=./config.status}
5508 ac_clean_files_save=$ac_clean_files
5509 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5510 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5511 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5512 cat >$CONFIG_STATUS <<_ACEOF
5513 #! $SHELL
5514 # Generated by $as_me.
5515 # Run this file to recreate the current configuration.
5516 # Compiler output produced by configure, useful for debugging
5517 # configure, is in config.log if it exists.
5519 debug=false
5520 ac_cs_recheck=false
5521 ac_cs_silent=false
5522 SHELL=\${CONFIG_SHELL-$SHELL}
5523 _ACEOF
5525 cat >>$CONFIG_STATUS <<\_ACEOF
5526 ## --------------------- ##
5527 ## M4sh Initialization. ##
5528 ## --------------------- ##
5530 # Be Bourne compatible
5531 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5532 emulate sh
5533 NULLCMD=:
5534 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5535 # is contrary to our usage. Disable this feature.
5536 alias -g '${1+"$@"}'='"$@"'
5537 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5538 set -o posix
5541 # Support unset when possible.
5542 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5543 as_unset=unset
5544 else
5545 as_unset=false
5549 # Work around bugs in pre-3.0 UWIN ksh.
5550 $as_unset ENV MAIL MAILPATH
5551 PS1='$ '
5552 PS2='> '
5553 PS4='+ '
5555 # NLS nuisances.
5556 for as_var in \
5557 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5558 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5559 LC_TELEPHONE LC_TIME
5561 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
5562 eval $as_var=C; export $as_var
5563 else
5564 $as_unset $as_var
5566 done
5568 # Required to use basename.
5569 if expr a : '\(a\)' >/dev/null 2>&1; then
5570 as_expr=expr
5571 else
5572 as_expr=false
5575 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5576 as_basename=basename
5577 else
5578 as_basename=false
5582 # Name of the executable.
5583 as_me=`$as_basename "$0" ||
5584 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5585 X"$0" : 'X\(//\)$' \| \
5586 X"$0" : 'X\(/\)$' \| \
5587 . : '\(.\)' 2>/dev/null ||
5588 echo X/"$0" |
5589 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5590 /^X\/\(\/\/\)$/{ s//\1/; q; }
5591 /^X\/\(\/\).*/{ s//\1/; q; }
5592 s/.*/./; q'`
5595 # PATH needs CR, and LINENO needs CR and PATH.
5596 # Avoid depending upon Character Ranges.
5597 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5598 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5599 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5600 as_cr_digits='0123456789'
5601 as_cr_alnum=$as_cr_Letters$as_cr_digits
5603 # The user is always right.
5604 if test "${PATH_SEPARATOR+set}" != set; then
5605 echo "#! /bin/sh" >conf$$.sh
5606 echo "exit 0" >>conf$$.sh
5607 chmod +x conf$$.sh
5608 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5609 PATH_SEPARATOR=';'
5610 else
5611 PATH_SEPARATOR=:
5613 rm -f conf$$.sh
5617 as_lineno_1=$LINENO
5618 as_lineno_2=$LINENO
5619 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5620 test "x$as_lineno_1" != "x$as_lineno_2" &&
5621 test "x$as_lineno_3" = "x$as_lineno_2" || {
5622 # Find who we are. Look in the path if we contain no path at all
5623 # relative or not.
5624 case $0 in
5625 *[\\/]* ) as_myself=$0 ;;
5626 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 for as_dir in $PATH
5629 IFS=$as_save_IFS
5630 test -z "$as_dir" && as_dir=.
5631 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5632 done
5635 esac
5636 # We did not find ourselves, most probably we were run as `sh COMMAND'
5637 # in which case we are not to be found in the path.
5638 if test "x$as_myself" = x; then
5639 as_myself=$0
5641 if test ! -f "$as_myself"; then
5642 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5643 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5644 { (exit 1); exit 1; }; }
5646 case $CONFIG_SHELL in
5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5651 IFS=$as_save_IFS
5652 test -z "$as_dir" && as_dir=.
5653 for as_base in sh bash ksh sh5; do
5654 case $as_dir in
5656 if ("$as_dir/$as_base" -c '
5657 as_lineno_1=$LINENO
5658 as_lineno_2=$LINENO
5659 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5660 test "x$as_lineno_1" != "x$as_lineno_2" &&
5661 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5662 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5663 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5664 CONFIG_SHELL=$as_dir/$as_base
5665 export CONFIG_SHELL
5666 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5667 fi;;
5668 esac
5669 done
5670 done
5672 esac
5674 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5675 # uniformly replaced by the line number. The first 'sed' inserts a
5676 # line-number line before each line; the second 'sed' does the real
5677 # work. The second script uses 'N' to pair each line-number line
5678 # with the numbered line, and appends trailing '-' during
5679 # substitution so that $LINENO is not a special case at line end.
5680 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5681 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5682 sed '=' <$as_myself |
5683 sed '
5685 s,$,-,
5686 : loop
5687 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5688 t loop
5689 s,-$,,
5690 s,^['$as_cr_digits']*\n,,
5691 ' >$as_me.lineno &&
5692 chmod +x $as_me.lineno ||
5693 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5694 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5695 { (exit 1); exit 1; }; }
5697 # Don't try to exec as it changes $[0], causing all sort of problems
5698 # (the dirname of $[0] is not the place where we might find the
5699 # original and so on. Autoconf is especially sensible to this).
5700 . ./$as_me.lineno
5701 # Exit status is that of the last command.
5702 exit
5706 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5707 *c*,-n*) ECHO_N= ECHO_C='
5708 ' ECHO_T=' ' ;;
5709 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5710 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5711 esac
5713 if expr a : '\(a\)' >/dev/null 2>&1; then
5714 as_expr=expr
5715 else
5716 as_expr=false
5719 rm -f conf$$ conf$$.exe conf$$.file
5720 echo >conf$$.file
5721 if ln -s conf$$.file conf$$ 2>/dev/null; then
5722 # We could just check for DJGPP; but this test a) works b) is more generic
5723 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5724 if test -f conf$$.exe; then
5725 # Don't use ln at all; we don't have any links
5726 as_ln_s='cp -p'
5727 else
5728 as_ln_s='ln -s'
5730 elif ln conf$$.file conf$$ 2>/dev/null; then
5731 as_ln_s=ln
5732 else
5733 as_ln_s='cp -p'
5735 rm -f conf$$ conf$$.exe conf$$.file
5737 if mkdir -p . 2>/dev/null; then
5738 as_mkdir_p=:
5739 else
5740 as_mkdir_p=false
5743 as_executable_p="test -f"
5745 # Sed expression to map a string onto a valid CPP name.
5746 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5748 # Sed expression to map a string onto a valid variable name.
5749 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5752 # IFS
5753 # We need space, tab and new line, in precisely that order.
5754 as_nl='
5756 IFS=" $as_nl"
5758 # CDPATH.
5759 $as_unset CDPATH
5761 exec 6>&1
5763 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5764 # report actual input values of CONFIG_FILES etc. instead of their
5765 # values after options handling. Logging --version etc. is OK.
5766 exec 5>>config.log
5768 echo
5769 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5770 ## Running $as_me. ##
5771 _ASBOX
5772 } >&5
5773 cat >&5 <<_CSEOF
5775 This file was extended by wmbatteries $as_me 0.1.2, which was
5776 generated by GNU Autoconf 2.57. Invocation command line was
5778 CONFIG_FILES = $CONFIG_FILES
5779 CONFIG_HEADERS = $CONFIG_HEADERS
5780 CONFIG_LINKS = $CONFIG_LINKS
5781 CONFIG_COMMANDS = $CONFIG_COMMANDS
5782 $ $0 $@
5784 _CSEOF
5785 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5786 echo >&5
5787 _ACEOF
5789 # Files that config.status was made for.
5790 if test -n "$ac_config_files"; then
5791 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5794 if test -n "$ac_config_headers"; then
5795 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5798 if test -n "$ac_config_links"; then
5799 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5802 if test -n "$ac_config_commands"; then
5803 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5806 cat >>$CONFIG_STATUS <<\_ACEOF
5808 ac_cs_usage="\
5809 \`$as_me' instantiates files from templates according to the
5810 current configuration.
5812 Usage: $0 [OPTIONS] [FILE]...
5814 -h, --help print this help, then exit
5815 -V, --version print version number, then exit
5816 -q, --quiet do not print progress messages
5817 -d, --debug don't remove temporary files
5818 --recheck update $as_me by reconfiguring in the same conditions
5819 --file=FILE[:TEMPLATE]
5820 instantiate the configuration file FILE
5821 --header=FILE[:TEMPLATE]
5822 instantiate the configuration header FILE
5824 Configuration files:
5825 $config_files
5827 Configuration headers:
5828 $config_headers
5830 Configuration commands:
5831 $config_commands
5833 Report bugs to <bug-autoconf@gnu.org>."
5834 _ACEOF
5836 cat >>$CONFIG_STATUS <<_ACEOF
5837 ac_cs_version="\\
5838 wmbatteries config.status 0.1.2
5839 configured by $0, generated by GNU Autoconf 2.57,
5840 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5842 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5843 Free Software Foundation, Inc.
5844 This config.status script is free software; the Free Software Foundation
5845 gives unlimited permission to copy, distribute and modify it."
5846 srcdir=$srcdir
5847 INSTALL="$INSTALL"
5848 _ACEOF
5850 cat >>$CONFIG_STATUS <<\_ACEOF
5851 # If no file are specified by the user, then we need to provide default
5852 # value. By we need to know if files were specified by the user.
5853 ac_need_defaults=:
5854 while test $# != 0
5856 case $1 in
5857 --*=*)
5858 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5859 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5860 ac_shift=:
5863 ac_option=$1
5864 ac_optarg=$2
5865 ac_shift=shift
5867 *) # This is not an option, so the user has probably given explicit
5868 # arguments.
5869 ac_option=$1
5870 ac_need_defaults=false;;
5871 esac
5873 case $ac_option in
5874 # Handling of the options.
5875 _ACEOF
5876 cat >>$CONFIG_STATUS <<\_ACEOF
5877 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5878 ac_cs_recheck=: ;;
5879 --version | --vers* | -V )
5880 echo "$ac_cs_version"; exit 0 ;;
5881 --he | --h)
5882 # Conflict between --help and --header
5883 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5884 Try \`$0 --help' for more information." >&5
5885 echo "$as_me: error: ambiguous option: $1
5886 Try \`$0 --help' for more information." >&2;}
5887 { (exit 1); exit 1; }; };;
5888 --help | --hel | -h )
5889 echo "$ac_cs_usage"; exit 0 ;;
5890 --debug | --d* | -d )
5891 debug=: ;;
5892 --file | --fil | --fi | --f )
5893 $ac_shift
5894 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5895 ac_need_defaults=false;;
5896 --header | --heade | --head | --hea )
5897 $ac_shift
5898 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5899 ac_need_defaults=false;;
5900 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5901 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5902 ac_cs_silent=: ;;
5904 # This is an error.
5905 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5906 Try \`$0 --help' for more information." >&5
5907 echo "$as_me: error: unrecognized option: $1
5908 Try \`$0 --help' for more information." >&2;}
5909 { (exit 1); exit 1; }; } ;;
5911 *) ac_config_targets="$ac_config_targets $1" ;;
5913 esac
5914 shift
5915 done
5917 ac_configure_extra_args=
5919 if $ac_cs_silent; then
5920 exec 6>/dev/null
5921 ac_configure_extra_args="$ac_configure_extra_args --silent"
5924 _ACEOF
5925 cat >>$CONFIG_STATUS <<_ACEOF
5926 if \$ac_cs_recheck; then
5927 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5928 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5931 _ACEOF
5933 cat >>$CONFIG_STATUS <<_ACEOF
5935 # INIT-COMMANDS section.
5938 AMDEP_TRUE="$AMDEP_TRUE"
5939 ac_aux_dir="$ac_aux_dir"
5941 _ACEOF
5945 cat >>$CONFIG_STATUS <<\_ACEOF
5946 for ac_config_target in $ac_config_targets
5948 case "$ac_config_target" in
5949 # Handling of arguments.
5950 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5951 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5952 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5953 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
5954 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5955 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5956 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5957 { (exit 1); exit 1; }; };;
5958 esac
5959 done
5961 # If the user did not use the arguments to specify the items to instantiate,
5962 # then the envvar interface is used. Set only those that are not.
5963 # We use the long form for the default assignment because of an extremely
5964 # bizarre bug on SunOS 4.1.3.
5965 if $ac_need_defaults; then
5966 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5967 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5968 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5971 # Have a temporary directory for convenience. Make it in the build tree
5972 # simply because there is no reason to put it here, and in addition,
5973 # creating and moving files from /tmp can sometimes cause problems.
5974 # Create a temporary directory, and hook for its removal unless debugging.
5975 $debug ||
5977 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5978 trap '{ (exit 1); exit 1; }' 1 2 13 15
5981 # Create a (secure) tmp directory for tmp files.
5984 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5985 test -n "$tmp" && test -d "$tmp"
5986 } ||
5988 tmp=./confstat$$-$RANDOM
5989 (umask 077 && mkdir $tmp)
5990 } ||
5992 echo "$me: cannot create a temporary directory in ." >&2
5993 { (exit 1); exit 1; }
5996 _ACEOF
5998 cat >>$CONFIG_STATUS <<_ACEOF
6001 # CONFIG_FILES section.
6004 # No need to generate the scripts if there are no CONFIG_FILES.
6005 # This happens for instance when ./config.status config.h
6006 if test -n "\$CONFIG_FILES"; then
6007 # Protect against being on the right side of a sed subst in config.status.
6008 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6009 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6010 s,@SHELL@,$SHELL,;t t
6011 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6012 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6013 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6014 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6015 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6016 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6017 s,@exec_prefix@,$exec_prefix,;t t
6018 s,@prefix@,$prefix,;t t
6019 s,@program_transform_name@,$program_transform_name,;t t
6020 s,@bindir@,$bindir,;t t
6021 s,@sbindir@,$sbindir,;t t
6022 s,@libexecdir@,$libexecdir,;t t
6023 s,@datadir@,$datadir,;t t
6024 s,@sysconfdir@,$sysconfdir,;t t
6025 s,@sharedstatedir@,$sharedstatedir,;t t
6026 s,@localstatedir@,$localstatedir,;t t
6027 s,@libdir@,$libdir,;t t
6028 s,@includedir@,$includedir,;t t
6029 s,@oldincludedir@,$oldincludedir,;t t
6030 s,@infodir@,$infodir,;t t
6031 s,@mandir@,$mandir,;t t
6032 s,@build_alias@,$build_alias,;t t
6033 s,@host_alias@,$host_alias,;t t
6034 s,@target_alias@,$target_alias,;t t
6035 s,@DEFS@,$DEFS,;t t
6036 s,@ECHO_C@,$ECHO_C,;t t
6037 s,@ECHO_N@,$ECHO_N,;t t
6038 s,@ECHO_T@,$ECHO_T,;t t
6039 s,@LIBS@,$LIBS,;t t
6040 s,@build@,$build,;t t
6041 s,@build_cpu@,$build_cpu,;t t
6042 s,@build_vendor@,$build_vendor,;t t
6043 s,@build_os@,$build_os,;t t
6044 s,@host@,$host,;t t
6045 s,@host_cpu@,$host_cpu,;t t
6046 s,@host_vendor@,$host_vendor,;t t
6047 s,@host_os@,$host_os,;t t
6048 s,@target@,$target,;t t
6049 s,@target_cpu@,$target_cpu,;t t
6050 s,@target_vendor@,$target_vendor,;t t
6051 s,@target_os@,$target_os,;t t
6052 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6053 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6054 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6055 s,@PACKAGE@,$PACKAGE,;t t
6056 s,@VERSION@,$VERSION,;t t
6057 s,@EXEEXT@,$EXEEXT,;t t
6058 s,@OBJEXT@,$OBJEXT,;t t
6059 s,@ACLOCAL@,$ACLOCAL,;t t
6060 s,@AUTOCONF@,$AUTOCONF,;t t
6061 s,@AUTOMAKE@,$AUTOMAKE,;t t
6062 s,@AUTOHEADER@,$AUTOHEADER,;t t
6063 s,@MAKEINFO@,$MAKEINFO,;t t
6064 s,@AMTAR@,$AMTAR,;t t
6065 s,@install_sh@,$install_sh,;t t
6066 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6067 s,@AWK@,$AWK,;t t
6068 s,@SET_MAKE@,$SET_MAKE,;t t
6069 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6070 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6071 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6072 s,@DEPDIR@,$DEPDIR,;t t
6073 s,@CC@,$CC,;t t
6074 s,@CFLAGS@,$CFLAGS,;t t
6075 s,@LDFLAGS@,$LDFLAGS,;t t
6076 s,@CPPFLAGS@,$CPPFLAGS,;t t
6077 s,@ac_ct_CC@,$ac_ct_CC,;t t
6078 s,@am__include@,$am__include,;t t
6079 s,@am__quote@,$am__quote,;t t
6080 s,@CCDEPMODE@,$CCDEPMODE,;t t
6081 s,@LN_S@,$LN_S,;t t
6082 s,@CPP@,$CPP,;t t
6083 s,@X_CFLAGS@,$X_CFLAGS,;t t
6084 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
6085 s,@X_LIBS@,$X_LIBS,;t t
6086 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
6087 s,@X_LIBRARY_PATH@,$X_LIBRARY_PATH,;t t
6088 s,@XCFLAGS@,$XCFLAGS,;t t
6089 s,@XLFLAGS@,$XLFLAGS,;t t
6090 s,@XLIBS@,$XLIBS,;t t
6091 s,@DFLAGS@,$DFLAGS,;t t
6092 s,@OS@,$OS,;t t
6093 s,@SETGID_FLAGS@,$SETGID_FLAGS,;t t
6094 s,@LIBRARY_SEARCH_PATH@,$LIBRARY_SEARCH_PATH,;t t
6095 s,@HEADER_SEARCH_PATH@,$HEADER_SEARCH_PATH,;t t
6096 s,@EGREP@,$EGREP,;t t
6097 s,@LIBOBJS@,$LIBOBJS,;t t
6098 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6099 CEOF
6101 _ACEOF
6103 cat >>$CONFIG_STATUS <<\_ACEOF
6104 # Split the substitutions into bite-sized pieces for seds with
6105 # small command number limits, like on Digital OSF/1 and HP-UX.
6106 ac_max_sed_lines=48
6107 ac_sed_frag=1 # Number of current file.
6108 ac_beg=1 # First line for current file.
6109 ac_end=$ac_max_sed_lines # Line after last line for current file.
6110 ac_more_lines=:
6111 ac_sed_cmds=
6112 while $ac_more_lines; do
6113 if test $ac_beg -gt 1; then
6114 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6115 else
6116 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6118 if test ! -s $tmp/subs.frag; then
6119 ac_more_lines=false
6120 else
6121 # The purpose of the label and of the branching condition is to
6122 # speed up the sed processing (if there are no `@' at all, there
6123 # is no need to browse any of the substitutions).
6124 # These are the two extra sed commands mentioned above.
6125 (echo ':t
6126 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6127 if test -z "$ac_sed_cmds"; then
6128 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6129 else
6130 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6132 ac_sed_frag=`expr $ac_sed_frag + 1`
6133 ac_beg=$ac_end
6134 ac_end=`expr $ac_end + $ac_max_sed_lines`
6136 done
6137 if test -z "$ac_sed_cmds"; then
6138 ac_sed_cmds=cat
6140 fi # test -n "$CONFIG_FILES"
6142 _ACEOF
6143 cat >>$CONFIG_STATUS <<\_ACEOF
6144 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6145 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6146 case $ac_file in
6147 - | *:- | *:-:* ) # input from stdin
6148 cat >$tmp/stdin
6149 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6150 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6151 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6152 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6153 * ) ac_file_in=$ac_file.in ;;
6154 esac
6156 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6157 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6158 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6159 X"$ac_file" : 'X\(//\)[^/]' \| \
6160 X"$ac_file" : 'X\(//\)$' \| \
6161 X"$ac_file" : 'X\(/\)' \| \
6162 . : '\(.\)' 2>/dev/null ||
6163 echo X"$ac_file" |
6164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6165 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6166 /^X\(\/\/\)$/{ s//\1/; q; }
6167 /^X\(\/\).*/{ s//\1/; q; }
6168 s/.*/./; q'`
6169 { if $as_mkdir_p; then
6170 mkdir -p "$ac_dir"
6171 else
6172 as_dir="$ac_dir"
6173 as_dirs=
6174 while test ! -d "$as_dir"; do
6175 as_dirs="$as_dir $as_dirs"
6176 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6177 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6178 X"$as_dir" : 'X\(//\)[^/]' \| \
6179 X"$as_dir" : 'X\(//\)$' \| \
6180 X"$as_dir" : 'X\(/\)' \| \
6181 . : '\(.\)' 2>/dev/null ||
6182 echo X"$as_dir" |
6183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6184 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6185 /^X\(\/\/\)$/{ s//\1/; q; }
6186 /^X\(\/\).*/{ s//\1/; q; }
6187 s/.*/./; q'`
6188 done
6189 test ! -n "$as_dirs" || mkdir $as_dirs
6190 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6191 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6192 { (exit 1); exit 1; }; }; }
6194 ac_builddir=.
6196 if test "$ac_dir" != .; then
6197 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6198 # A "../" for each directory in $ac_dir_suffix.
6199 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6200 else
6201 ac_dir_suffix= ac_top_builddir=
6204 case $srcdir in
6205 .) # No --srcdir option. We are building in place.
6206 ac_srcdir=.
6207 if test -z "$ac_top_builddir"; then
6208 ac_top_srcdir=.
6209 else
6210 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6211 fi ;;
6212 [\\/]* | ?:[\\/]* ) # Absolute path.
6213 ac_srcdir=$srcdir$ac_dir_suffix;
6214 ac_top_srcdir=$srcdir ;;
6215 *) # Relative path.
6216 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6217 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6218 esac
6219 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6220 # absolute.
6221 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6222 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6223 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6224 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6227 case $INSTALL in
6228 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6229 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6230 esac
6232 if test x"$ac_file" != x-; then
6233 { echo "$as_me:$LINENO: creating $ac_file" >&5
6234 echo "$as_me: creating $ac_file" >&6;}
6235 rm -f "$ac_file"
6237 # Let's still pretend it is `configure' which instantiates (i.e., don't
6238 # use $as_me), people would be surprised to read:
6239 # /* config.h. Generated by config.status. */
6240 if test x"$ac_file" = x-; then
6241 configure_input=
6242 else
6243 configure_input="$ac_file. "
6245 configure_input=$configure_input"Generated from `echo $ac_file_in |
6246 sed 's,.*/,,'` by configure."
6248 # First look for the input files in the build tree, otherwise in the
6249 # src tree.
6250 ac_file_inputs=`IFS=:
6251 for f in $ac_file_in; do
6252 case $f in
6253 -) echo $tmp/stdin ;;
6254 [\\/$]*)
6255 # Absolute (can't be DOS-style, as IFS=:)
6256 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6257 echo "$as_me: error: cannot find input file: $f" >&2;}
6258 { (exit 1); exit 1; }; }
6259 echo $f;;
6260 *) # Relative
6261 if test -f "$f"; then
6262 # Build tree
6263 echo $f
6264 elif test -f "$srcdir/$f"; then
6265 # Source tree
6266 echo $srcdir/$f
6267 else
6268 # /dev/null tree
6269 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6270 echo "$as_me: error: cannot find input file: $f" >&2;}
6271 { (exit 1); exit 1; }; }
6272 fi;;
6273 esac
6274 done` || { (exit 1); exit 1; }
6275 _ACEOF
6276 cat >>$CONFIG_STATUS <<_ACEOF
6277 sed "$ac_vpsub
6278 $extrasub
6279 _ACEOF
6280 cat >>$CONFIG_STATUS <<\_ACEOF
6282 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6283 s,@configure_input@,$configure_input,;t t
6284 s,@srcdir@,$ac_srcdir,;t t
6285 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6286 s,@top_srcdir@,$ac_top_srcdir,;t t
6287 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6288 s,@builddir@,$ac_builddir,;t t
6289 s,@abs_builddir@,$ac_abs_builddir,;t t
6290 s,@top_builddir@,$ac_top_builddir,;t t
6291 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6292 s,@INSTALL@,$ac_INSTALL,;t t
6293 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6294 rm -f $tmp/stdin
6295 if test x"$ac_file" != x-; then
6296 mv $tmp/out $ac_file
6297 else
6298 cat $tmp/out
6299 rm -f $tmp/out
6302 done
6303 _ACEOF
6304 cat >>$CONFIG_STATUS <<\_ACEOF
6307 # CONFIG_HEADER section.
6310 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6311 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6313 # ac_d sets the value in "#define NAME VALUE" lines.
6314 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6315 ac_dB='[ ].*$,\1#\2'
6316 ac_dC=' '
6317 ac_dD=',;t'
6318 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6319 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6320 ac_uB='$,\1#\2define\3'
6321 ac_uC=' '
6322 ac_uD=',;t'
6324 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6325 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6326 case $ac_file in
6327 - | *:- | *:-:* ) # input from stdin
6328 cat >$tmp/stdin
6329 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6330 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6331 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6332 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6333 * ) ac_file_in=$ac_file.in ;;
6334 esac
6336 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6337 echo "$as_me: creating $ac_file" >&6;}
6339 # First look for the input files in the build tree, otherwise in the
6340 # src tree.
6341 ac_file_inputs=`IFS=:
6342 for f in $ac_file_in; do
6343 case $f in
6344 -) echo $tmp/stdin ;;
6345 [\\/$]*)
6346 # Absolute (can't be DOS-style, as IFS=:)
6347 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6348 echo "$as_me: error: cannot find input file: $f" >&2;}
6349 { (exit 1); exit 1; }; }
6350 echo $f;;
6351 *) # Relative
6352 if test -f "$f"; then
6353 # Build tree
6354 echo $f
6355 elif test -f "$srcdir/$f"; then
6356 # Source tree
6357 echo $srcdir/$f
6358 else
6359 # /dev/null tree
6360 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6361 echo "$as_me: error: cannot find input file: $f" >&2;}
6362 { (exit 1); exit 1; }; }
6363 fi;;
6364 esac
6365 done` || { (exit 1); exit 1; }
6366 # Remove the trailing spaces.
6367 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6369 _ACEOF
6371 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6372 # `conftest.undefs', that substitutes the proper values into
6373 # config.h.in to produce config.h. The first handles `#define'
6374 # templates, and the second `#undef' templates.
6375 # And first: Protect against being on the right side of a sed subst in
6376 # config.status. Protect against being in an unquoted here document
6377 # in config.status.
6378 rm -f conftest.defines conftest.undefs
6379 # Using a here document instead of a string reduces the quoting nightmare.
6380 # Putting comments in sed scripts is not portable.
6382 # `end' is used to avoid that the second main sed command (meant for
6383 # 0-ary CPP macros) applies to n-ary macro definitions.
6384 # See the Autoconf documentation for `clear'.
6385 cat >confdef2sed.sed <<\_ACEOF
6386 s/[\\&,]/\\&/g
6387 s,[\\$`],\\&,g
6388 t clear
6389 : clear
6390 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6391 t end
6392 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6393 : end
6394 _ACEOF
6395 # If some macros were called several times there might be several times
6396 # the same #defines, which is useless. Nevertheless, we may not want to
6397 # sort them, since we want the *last* AC-DEFINE to be honored.
6398 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6399 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6400 rm -f confdef2sed.sed
6402 # This sed command replaces #undef with comments. This is necessary, for
6403 # example, in the case of _POSIX_SOURCE, which is predefined and required
6404 # on some systems where configure will not decide to define it.
6405 cat >>conftest.undefs <<\_ACEOF
6406 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6407 _ACEOF
6409 # Break up conftest.defines because some shells have a limit on the size
6410 # of here documents, and old seds have small limits too (100 cmds).
6411 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6412 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6413 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6414 echo ' :' >>$CONFIG_STATUS
6415 rm -f conftest.tail
6416 while grep . conftest.defines >/dev/null
6418 # Write a limited-size here document to $tmp/defines.sed.
6419 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6420 # Speed up: don't consider the non `#define' lines.
6421 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6422 # Work around the forget-to-reset-the-flag bug.
6423 echo 't clr' >>$CONFIG_STATUS
6424 echo ': clr' >>$CONFIG_STATUS
6425 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6426 echo 'CEOF
6427 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6428 rm -f $tmp/in
6429 mv $tmp/out $tmp/in
6430 ' >>$CONFIG_STATUS
6431 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6432 rm -f conftest.defines
6433 mv conftest.tail conftest.defines
6434 done
6435 rm -f conftest.defines
6436 echo ' fi # grep' >>$CONFIG_STATUS
6437 echo >>$CONFIG_STATUS
6439 # Break up conftest.undefs because some shells have a limit on the size
6440 # of here documents, and old seds have small limits too (100 cmds).
6441 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6442 rm -f conftest.tail
6443 while grep . conftest.undefs >/dev/null
6445 # Write a limited-size here document to $tmp/undefs.sed.
6446 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6447 # Speed up: don't consider the non `#undef'
6448 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6449 # Work around the forget-to-reset-the-flag bug.
6450 echo 't clr' >>$CONFIG_STATUS
6451 echo ': clr' >>$CONFIG_STATUS
6452 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6453 echo 'CEOF
6454 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6455 rm -f $tmp/in
6456 mv $tmp/out $tmp/in
6457 ' >>$CONFIG_STATUS
6458 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6459 rm -f conftest.undefs
6460 mv conftest.tail conftest.undefs
6461 done
6462 rm -f conftest.undefs
6464 cat >>$CONFIG_STATUS <<\_ACEOF
6465 # Let's still pretend it is `configure' which instantiates (i.e., don't
6466 # use $as_me), people would be surprised to read:
6467 # /* config.h. Generated by config.status. */
6468 if test x"$ac_file" = x-; then
6469 echo "/* Generated by configure. */" >$tmp/config.h
6470 else
6471 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6473 cat $tmp/in >>$tmp/config.h
6474 rm -f $tmp/in
6475 if test x"$ac_file" != x-; then
6476 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6477 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6478 echo "$as_me: $ac_file is unchanged" >&6;}
6479 else
6480 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6481 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6482 X"$ac_file" : 'X\(//\)[^/]' \| \
6483 X"$ac_file" : 'X\(//\)$' \| \
6484 X"$ac_file" : 'X\(/\)' \| \
6485 . : '\(.\)' 2>/dev/null ||
6486 echo X"$ac_file" |
6487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6488 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6489 /^X\(\/\/\)$/{ s//\1/; q; }
6490 /^X\(\/\).*/{ s//\1/; q; }
6491 s/.*/./; q'`
6492 { if $as_mkdir_p; then
6493 mkdir -p "$ac_dir"
6494 else
6495 as_dir="$ac_dir"
6496 as_dirs=
6497 while test ! -d "$as_dir"; do
6498 as_dirs="$as_dir $as_dirs"
6499 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6500 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6501 X"$as_dir" : 'X\(//\)[^/]' \| \
6502 X"$as_dir" : 'X\(//\)$' \| \
6503 X"$as_dir" : 'X\(/\)' \| \
6504 . : '\(.\)' 2>/dev/null ||
6505 echo X"$as_dir" |
6506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6507 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6508 /^X\(\/\/\)$/{ s//\1/; q; }
6509 /^X\(\/\).*/{ s//\1/; q; }
6510 s/.*/./; q'`
6511 done
6512 test ! -n "$as_dirs" || mkdir $as_dirs
6513 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6514 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6515 { (exit 1); exit 1; }; }; }
6517 rm -f $ac_file
6518 mv $tmp/config.h $ac_file
6520 else
6521 cat $tmp/config.h
6522 rm -f $tmp/config.h
6524 # Run the commands associated with the file.
6525 case $ac_file in
6526 config.h ) # update the timestamp
6527 echo timestamp >"./stamp-h1"
6529 esac
6530 done
6531 _ACEOF
6532 cat >>$CONFIG_STATUS <<\_ACEOF
6535 # CONFIG_COMMANDS section.
6537 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6538 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6539 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6540 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6541 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6542 X"$ac_dest" : 'X\(//\)[^/]' \| \
6543 X"$ac_dest" : 'X\(//\)$' \| \
6544 X"$ac_dest" : 'X\(/\)' \| \
6545 . : '\(.\)' 2>/dev/null ||
6546 echo X"$ac_dest" |
6547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6548 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6549 /^X\(\/\/\)$/{ s//\1/; q; }
6550 /^X\(\/\).*/{ s//\1/; q; }
6551 s/.*/./; q'`
6552 ac_builddir=.
6554 if test "$ac_dir" != .; then
6555 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6556 # A "../" for each directory in $ac_dir_suffix.
6557 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6558 else
6559 ac_dir_suffix= ac_top_builddir=
6562 case $srcdir in
6563 .) # No --srcdir option. We are building in place.
6564 ac_srcdir=.
6565 if test -z "$ac_top_builddir"; then
6566 ac_top_srcdir=.
6567 else
6568 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6569 fi ;;
6570 [\\/]* | ?:[\\/]* ) # Absolute path.
6571 ac_srcdir=$srcdir$ac_dir_suffix;
6572 ac_top_srcdir=$srcdir ;;
6573 *) # Relative path.
6574 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6575 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6576 esac
6577 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6578 # absolute.
6579 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6580 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6581 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6582 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6585 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6586 echo "$as_me: executing $ac_dest commands" >&6;}
6587 case $ac_dest in
6588 default-1 )
6589 test x"$AMDEP_TRUE" != x"" ||
6590 for mf in $CONFIG_FILES; do
6591 case "$mf" in
6592 Makefile|GNUmakefile) dirpart=.;;
6593 */Makefile|*/GNUmakefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
6594 *) continue;;
6595 esac
6596 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
6597 # Extract the definition of DEP_FILES from the Makefile without
6598 # running `make'.
6599 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
6600 test -z "$DEPDIR" && continue
6601 # When using ansi2knr, U may be empty or an underscore; expand it
6602 U=`sed -n -e '/^U = / s///p' < "$mf"`
6603 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
6604 # We invoke sed twice because it is the simplest approach to
6605 # changing $(DEPDIR) to its actual value in the expansion.
6606 for file in `sed -n -e '
6607 /^DEP_FILES = .*\\\\$/ {
6608 s/^DEP_FILES = //
6609 :loop
6610 s/\\\\$//
6613 /\\\\$/ b loop
6616 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
6617 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6618 # Make sure the directory exists.
6619 test -f "$dirpart/$file" && continue
6620 fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
6621 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
6622 # echo "creating $dirpart/$file"
6623 echo '# dummy' > "$dirpart/$file"
6624 done
6625 done
6627 esac
6628 done
6629 _ACEOF
6631 cat >>$CONFIG_STATUS <<\_ACEOF
6633 { (exit 0); exit 0; }
6634 _ACEOF
6635 chmod +x $CONFIG_STATUS
6636 ac_clean_files=$ac_clean_files_save
6639 # configure is writing to config.log, and then calls config.status.
6640 # config.status does its own redirection, appending to config.log.
6641 # Unfortunately, on DOS this fails, as config.log is still kept open
6642 # by configure, so config.status won't be able to write to it; its
6643 # output is simply discarded. So we exec the FD to /dev/null,
6644 # effectively closing config.log, so it can be properly (re)opened and
6645 # appended to by config.status. When coming back to configure, we
6646 # need to make the FD available again.
6647 if test "$no_create" != yes; then
6648 ac_cs_success=:
6649 ac_config_status_args=
6650 test "$silent" = yes &&
6651 ac_config_status_args="$ac_config_status_args --quiet"
6652 exec 5>/dev/null
6653 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6654 exec 5>>config.log
6655 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6656 # would make configure fail if this is the last instruction.
6657 $ac_cs_success || { (exit 1); exit 1; }