wmmon: debian patches applied to upstream
[dockapps.git] / wmbiff-0.4.27 / configure
blobff1d421f255343a7c26d476508fd0612c45af140
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for WMBiff 0.4.27.
5 # Report bugs to <wmbiff-devel@lists.sourceforge.net>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251 exec 6>&1
254 # Initializations.
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='WMBiff'
271 PACKAGE_TARNAME='wmbiff'
272 PACKAGE_VERSION='0.4.27'
273 PACKAGE_STRING='WMBiff 0.4.27'
274 PACKAGE_BUGREPORT='wmbiff-devel@lists.sourceforge.net'
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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE RANLIB ac_ct_RANLIB CPP EGREP LIBGNUTLS_CONFIG LIBGNUTLS_CFLAGS LIBGNUTLS_LIBS LIBGCRYPT_CONFIG LIBGCRYPT_CFLAGS LIBGCRYPT_LIBS GNUTLS_MAN_STATUS GCRYPT_MAN_STATUS GNUTLS_COMMON_O X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS DEFAULT_ASKPASS CVS2CL SKINDIR 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 WMBiff 0.4.27 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
843 _ACEOF
846 if test -n "$ac_init_help"; then
847 case $ac_init_help in
848 short | recursive ) echo "Configuration of WMBiff 0.4.27:";;
849 esac
850 cat <<\_ACEOF
852 Optional Features:
853 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
854 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
855 --disable-dependency-tracking Speeds up one-time builds
856 --enable-dependency-tracking Do not reject slow dependency extractors
857 --disable-crypto disable gnutls/gcrypt
858 --disable-libgcrypttest Do not try to compile and run a test libgcrypt program
860 Optional Packages:
861 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
862 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
863 --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
864 --with-libgcrypt-prefix=PFX Prefix where libgcrypt is installed (optional)
865 --with-x use the X Window System
867 Some influential environment variables:
868 CC C compiler command
869 CFLAGS C compiler flags
870 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
871 nonstandard directory <lib dir>
872 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
873 headers in a nonstandard directory <include dir>
874 CPP C preprocessor
876 Use these variables to override the choices made by `configure' or to help
877 it to find libraries and programs with nonstandard names/locations.
879 Report bugs to <wmbiff-devel@lists.sourceforge.net>.
880 _ACEOF
883 if test "$ac_init_help" = "recursive"; then
884 # If there are subdirs, report their specific --help.
885 ac_popdir=`pwd`
886 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
887 test -d $ac_dir || continue
888 ac_builddir=.
890 if test "$ac_dir" != .; then
891 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
892 # A "../" for each directory in $ac_dir_suffix.
893 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
894 else
895 ac_dir_suffix= ac_top_builddir=
898 case $srcdir in
899 .) # No --srcdir option. We are building in place.
900 ac_srcdir=.
901 if test -z "$ac_top_builddir"; then
902 ac_top_srcdir=.
903 else
904 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
905 fi ;;
906 [\\/]* | ?:[\\/]* ) # Absolute path.
907 ac_srcdir=$srcdir$ac_dir_suffix;
908 ac_top_srcdir=$srcdir ;;
909 *) # Relative path.
910 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
911 ac_top_srcdir=$ac_top_builddir$srcdir ;;
912 esac
914 # Do not use `cd foo && pwd` to compute absolute paths, because
915 # the directories may not exist.
916 case `pwd` in
917 .) ac_abs_builddir="$ac_dir";;
919 case "$ac_dir" in
920 .) ac_abs_builddir=`pwd`;;
921 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
922 *) ac_abs_builddir=`pwd`/"$ac_dir";;
923 esac;;
924 esac
925 case $ac_abs_builddir in
926 .) ac_abs_top_builddir=${ac_top_builddir}.;;
928 case ${ac_top_builddir}. in
929 .) ac_abs_top_builddir=$ac_abs_builddir;;
930 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
931 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
932 esac;;
933 esac
934 case $ac_abs_builddir in
935 .) ac_abs_srcdir=$ac_srcdir;;
937 case $ac_srcdir in
938 .) ac_abs_srcdir=$ac_abs_builddir;;
939 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
940 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
941 esac;;
942 esac
943 case $ac_abs_builddir in
944 .) ac_abs_top_srcdir=$ac_top_srcdir;;
946 case $ac_top_srcdir in
947 .) ac_abs_top_srcdir=$ac_abs_builddir;;
948 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
949 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
950 esac;;
951 esac
953 cd $ac_dir
954 # Check for guested configure; otherwise get Cygnus style configure.
955 if test -f $ac_srcdir/configure.gnu; then
956 echo
957 $SHELL $ac_srcdir/configure.gnu --help=recursive
958 elif test -f $ac_srcdir/configure; then
959 echo
960 $SHELL $ac_srcdir/configure --help=recursive
961 elif test -f $ac_srcdir/configure.ac ||
962 test -f $ac_srcdir/configure.in; then
963 echo
964 $ac_configure --help
965 else
966 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
968 cd "$ac_popdir"
969 done
972 test -n "$ac_init_help" && exit 0
973 if $ac_init_version; then
974 cat <<\_ACEOF
975 WMBiff configure 0.4.27
976 generated by GNU Autoconf 2.59
978 Copyright (C) 2003 Free Software Foundation, Inc.
979 This configure script is free software; the Free Software Foundation
980 gives unlimited permission to copy, distribute and modify it.
981 _ACEOF
982 exit 0
984 exec 5>config.log
985 cat >&5 <<_ACEOF
986 This file contains any messages produced by compilers while
987 running configure, to aid debugging if configure makes a mistake.
989 It was created by WMBiff $as_me 0.4.27, which was
990 generated by GNU Autoconf 2.59. Invocation command line was
992 $ $0 $@
994 _ACEOF
996 cat <<_ASUNAME
997 ## --------- ##
998 ## Platform. ##
999 ## --------- ##
1001 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1002 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1003 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1004 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1005 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1007 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1008 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1010 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1011 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1012 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1013 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1014 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1015 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1016 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1018 _ASUNAME
1020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1021 for as_dir in $PATH
1023 IFS=$as_save_IFS
1024 test -z "$as_dir" && as_dir=.
1025 echo "PATH: $as_dir"
1026 done
1028 } >&5
1030 cat >&5 <<_ACEOF
1033 ## ----------- ##
1034 ## Core tests. ##
1035 ## ----------- ##
1037 _ACEOF
1040 # Keep a trace of the command line.
1041 # Strip out --no-create and --no-recursion so they do not pile up.
1042 # Strip out --silent because we don't want to record it for future runs.
1043 # Also quote any args containing shell meta-characters.
1044 # Make two passes to allow for proper duplicate-argument suppression.
1045 ac_configure_args=
1046 ac_configure_args0=
1047 ac_configure_args1=
1048 ac_sep=
1049 ac_must_keep_next=false
1050 for ac_pass in 1 2
1052 for ac_arg
1054 case $ac_arg in
1055 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057 | -silent | --silent | --silen | --sile | --sil)
1058 continue ;;
1059 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1060 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1061 esac
1062 case $ac_pass in
1063 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1065 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1066 if test $ac_must_keep_next = true; then
1067 ac_must_keep_next=false # Got value, back to normal.
1068 else
1069 case $ac_arg in
1070 *=* | --config-cache | -C | -disable-* | --disable-* \
1071 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1072 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1073 | -with-* | --with-* | -without-* | --without-* | --x)
1074 case "$ac_configure_args0 " in
1075 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1076 esac
1078 -* ) ac_must_keep_next=true ;;
1079 esac
1081 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1082 # Get rid of the leading space.
1083 ac_sep=" "
1085 esac
1086 done
1087 done
1088 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1089 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1091 # When interrupted or exit'd, cleanup temporary files, and complete
1092 # config.log. We remove comments because anyway the quotes in there
1093 # would cause problems or look ugly.
1094 # WARNING: Be sure not to use single quotes in there, as some shells,
1095 # such as our DU 5.0 friend, will then `close' the trap.
1096 trap 'exit_status=$?
1097 # Save into config.log some information that might help in debugging.
1099 echo
1101 cat <<\_ASBOX
1102 ## ---------------- ##
1103 ## Cache variables. ##
1104 ## ---------------- ##
1105 _ASBOX
1106 echo
1107 # The following way of writing the cache mishandles newlines in values,
1109 (set) 2>&1 |
1110 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1111 *ac_space=\ *)
1112 sed -n \
1113 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1114 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1117 sed -n \
1118 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1120 esac;
1122 echo
1124 cat <<\_ASBOX
1125 ## ----------------- ##
1126 ## Output variables. ##
1127 ## ----------------- ##
1128 _ASBOX
1129 echo
1130 for ac_var in $ac_subst_vars
1132 eval ac_val=$`echo $ac_var`
1133 echo "$ac_var='"'"'$ac_val'"'"'"
1134 done | sort
1135 echo
1137 if test -n "$ac_subst_files"; then
1138 cat <<\_ASBOX
1139 ## ------------- ##
1140 ## Output files. ##
1141 ## ------------- ##
1142 _ASBOX
1143 echo
1144 for ac_var in $ac_subst_files
1146 eval ac_val=$`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1148 done | sort
1149 echo
1152 if test -s confdefs.h; then
1153 cat <<\_ASBOX
1154 ## ----------- ##
1155 ## confdefs.h. ##
1156 ## ----------- ##
1157 _ASBOX
1158 echo
1159 sed "/^$/d" confdefs.h | sort
1160 echo
1162 test "$ac_signal" != 0 &&
1163 echo "$as_me: caught signal $ac_signal"
1164 echo "$as_me: exit $exit_status"
1165 } >&5
1166 rm -f core *.core &&
1167 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1168 exit $exit_status
1170 for ac_signal in 1 2 13 15; do
1171 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1172 done
1173 ac_signal=0
1175 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1176 rm -rf conftest* confdefs.h
1177 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1178 echo >confdefs.h
1180 # Predefined preprocessor variables.
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_NAME "$PACKAGE_NAME"
1184 _ACEOF
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1189 _ACEOF
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1194 _ACEOF
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_STRING "$PACKAGE_STRING"
1199 _ACEOF
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1204 _ACEOF
1207 # Let the site file select an alternate cache file if it wants to.
1208 # Prefer explicitly selected file to automatically selected ones.
1209 if test -z "$CONFIG_SITE"; then
1210 if test "x$prefix" != xNONE; then
1211 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1212 else
1213 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1216 for ac_site_file in $CONFIG_SITE; do
1217 if test -r "$ac_site_file"; then
1218 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1219 echo "$as_me: loading site script $ac_site_file" >&6;}
1220 sed 's/^/| /' "$ac_site_file" >&5
1221 . "$ac_site_file"
1223 done
1225 if test -r "$cache_file"; then
1226 # Some versions of bash will fail to source /dev/null (special
1227 # files actually), so we avoid doing that.
1228 if test -f "$cache_file"; then
1229 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1230 echo "$as_me: loading cache $cache_file" >&6;}
1231 case $cache_file in
1232 [\\/]* | ?:[\\/]* ) . $cache_file;;
1233 *) . ./$cache_file;;
1234 esac
1236 else
1237 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1238 echo "$as_me: creating cache $cache_file" >&6;}
1239 >$cache_file
1242 # Check that the precious variables saved in the cache have kept the same
1243 # value.
1244 ac_cache_corrupted=false
1245 for ac_var in `(set) 2>&1 |
1246 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1247 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1248 eval ac_new_set=\$ac_env_${ac_var}_set
1249 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1250 eval ac_new_val="\$ac_env_${ac_var}_value"
1251 case $ac_old_set,$ac_new_set in
1252 set,)
1253 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1254 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1255 ac_cache_corrupted=: ;;
1256 ,set)
1257 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1259 ac_cache_corrupted=: ;;
1260 ,);;
1262 if test "x$ac_old_val" != "x$ac_new_val"; then
1263 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1264 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1265 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1266 echo "$as_me: former value: $ac_old_val" >&2;}
1267 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1268 echo "$as_me: current value: $ac_new_val" >&2;}
1269 ac_cache_corrupted=:
1270 fi;;
1271 esac
1272 # Pass precious variables to config.status.
1273 if test "$ac_new_set" = set; then
1274 case $ac_new_val in
1275 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1276 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1277 *) ac_arg=$ac_var=$ac_new_val ;;
1278 esac
1279 case " $ac_configure_args " in
1280 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1281 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1282 esac
1284 done
1285 if $ac_cache_corrupted; then
1286 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1287 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1288 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1289 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1290 { (exit 1); exit 1; }; }
1293 ac_ext=c
1294 ac_cpp='$CPP $CPPFLAGS'
1295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1325 ac_aux_dir=
1326 for ac_dir in autoconf $srcdir/autoconf; do
1327 if test -f $ac_dir/install-sh; then
1328 ac_aux_dir=$ac_dir
1329 ac_install_sh="$ac_aux_dir/install-sh -c"
1330 break
1331 elif test -f $ac_dir/install.sh; then
1332 ac_aux_dir=$ac_dir
1333 ac_install_sh="$ac_aux_dir/install.sh -c"
1334 break
1335 elif test -f $ac_dir/shtool; then
1336 ac_aux_dir=$ac_dir
1337 ac_install_sh="$ac_aux_dir/shtool install -c"
1338 break
1340 done
1341 if test -z "$ac_aux_dir"; then
1342 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1343 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1344 { (exit 1); exit 1; }; }
1346 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1347 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1348 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1350 am__api_version="1.6"
1351 # Find a good install program. We prefer a C program (faster),
1352 # so one script is as good as another. But avoid the broken or
1353 # incompatible versions:
1354 # SysV /etc/install, /usr/sbin/install
1355 # SunOS /usr/etc/install
1356 # IRIX /sbin/install
1357 # AIX /bin/install
1358 # AmigaOS /C/install, which installs bootblocks on floppy discs
1359 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1360 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1361 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1362 # OS/2's system install, which has a completely different semantic
1363 # ./install, which can be erroneously created by make from ./install.sh.
1364 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1365 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1366 if test -z "$INSTALL"; then
1367 if test "${ac_cv_path_install+set}" = set; then
1368 echo $ECHO_N "(cached) $ECHO_C" >&6
1369 else
1370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1371 for as_dir in $PATH
1373 IFS=$as_save_IFS
1374 test -z "$as_dir" && as_dir=.
1375 # Account for people who put trailing slashes in PATH elements.
1376 case $as_dir/ in
1377 ./ | .// | /cC/* | \
1378 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1379 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1380 /usr/ucb/* ) ;;
1382 # OSF1 and SCO ODT 3.0 have their own names for install.
1383 # Don't use installbsd from OSF since it installs stuff as root
1384 # by default.
1385 for ac_prog in ginstall scoinst install; do
1386 for ac_exec_ext in '' $ac_executable_extensions; do
1387 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1388 if test $ac_prog = install &&
1389 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1390 # AIX install. It has an incompatible calling convention.
1392 elif test $ac_prog = install &&
1393 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1394 # program-specific install script used by HP pwplus--don't use.
1396 else
1397 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1398 break 3
1401 done
1402 done
1404 esac
1405 done
1409 if test "${ac_cv_path_install+set}" = set; then
1410 INSTALL=$ac_cv_path_install
1411 else
1412 # As a last resort, use the slow shell script. We don't cache a
1413 # path for INSTALL within a source directory, because that will
1414 # break other packages using the cache if that directory is
1415 # removed, or if the path is relative.
1416 INSTALL=$ac_install_sh
1419 echo "$as_me:$LINENO: result: $INSTALL" >&5
1420 echo "${ECHO_T}$INSTALL" >&6
1422 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1423 # It thinks the first close brace ends the variable substitution.
1424 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1426 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1428 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1430 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1431 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1432 # Just in case
1433 sleep 1
1434 echo timestamp > conftest.file
1435 # Do `set' in a subshell so we don't clobber the current shell's
1436 # arguments. Must try -L first in case configure is actually a
1437 # symlink; some systems play weird games with the mod time of symlinks
1438 # (eg FreeBSD returns the mod time of the symlink's containing
1439 # directory).
1440 if (
1441 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1442 if test "$*" = "X"; then
1443 # -L didn't work.
1444 set X `ls -t $srcdir/configure conftest.file`
1446 rm -f conftest.file
1447 if test "$*" != "X $srcdir/configure conftest.file" \
1448 && test "$*" != "X conftest.file $srcdir/configure"; then
1450 # If neither matched, then we have a broken ls. This can happen
1451 # if, for instance, CONFIG_SHELL is bash and it inherits a
1452 # broken ls alias from the environment. This has actually
1453 # happened. Such a system could not be considered "sane".
1454 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1455 alias in your environment" >&5
1456 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1457 alias in your environment" >&2;}
1458 { (exit 1); exit 1; }; }
1461 test "$2" = conftest.file
1463 then
1464 # Ok.
1466 else
1467 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1468 Check your system clock" >&5
1469 echo "$as_me: error: newly created file is older than distributed files!
1470 Check your system clock" >&2;}
1471 { (exit 1); exit 1; }; }
1473 echo "$as_me:$LINENO: result: yes" >&5
1474 echo "${ECHO_T}yes" >&6
1475 test "$program_prefix" != NONE &&
1476 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1477 # Use a double $ so make ignores it.
1478 test "$program_suffix" != NONE &&
1479 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1480 # Double any \ or $. echo might interpret backslashes.
1481 # By default was `s,x,x', remove it if useless.
1482 cat <<\_ACEOF >conftest.sed
1483 s/[\\$]/&&/g;s/;s,x,x,$//
1484 _ACEOF
1485 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1486 rm conftest.sed
1489 # expand $ac_aux_dir to an absolute path
1490 am_aux_dir=`cd $ac_aux_dir && pwd`
1492 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1493 # Use eval to expand $SHELL
1494 if eval "$MISSING --run true"; then
1495 am_missing_run="$MISSING --run "
1496 else
1497 am_missing_run=
1498 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1499 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1502 for ac_prog in gawk mawk nawk awk
1504 # Extract the first word of "$ac_prog", so it can be a program name with args.
1505 set dummy $ac_prog; ac_word=$2
1506 echo "$as_me:$LINENO: checking for $ac_word" >&5
1507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1508 if test "${ac_cv_prog_AWK+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1510 else
1511 if test -n "$AWK"; then
1512 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1513 else
1514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515 for as_dir in $PATH
1517 IFS=$as_save_IFS
1518 test -z "$as_dir" && as_dir=.
1519 for ac_exec_ext in '' $ac_executable_extensions; do
1520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1521 ac_cv_prog_AWK="$ac_prog"
1522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1523 break 2
1525 done
1526 done
1530 AWK=$ac_cv_prog_AWK
1531 if test -n "$AWK"; then
1532 echo "$as_me:$LINENO: result: $AWK" >&5
1533 echo "${ECHO_T}$AWK" >&6
1534 else
1535 echo "$as_me:$LINENO: result: no" >&5
1536 echo "${ECHO_T}no" >&6
1539 test -n "$AWK" && break
1540 done
1542 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1543 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1544 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1545 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1546 echo $ECHO_N "(cached) $ECHO_C" >&6
1547 else
1548 cat >conftest.make <<\_ACEOF
1549 all:
1550 @echo 'ac_maketemp="$(MAKE)"'
1551 _ACEOF
1552 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1553 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1554 if test -n "$ac_maketemp"; then
1555 eval ac_cv_prog_make_${ac_make}_set=yes
1556 else
1557 eval ac_cv_prog_make_${ac_make}_set=no
1559 rm -f conftest.make
1561 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1562 echo "$as_me:$LINENO: result: yes" >&5
1563 echo "${ECHO_T}yes" >&6
1564 SET_MAKE=
1565 else
1566 echo "$as_me:$LINENO: result: no" >&5
1567 echo "${ECHO_T}no" >&6
1568 SET_MAKE="MAKE=${MAKE-make}"
1571 # test to see if srcdir already configured
1572 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1573 test -f $srcdir/config.status; then
1574 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1575 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1576 { (exit 1); exit 1; }; }
1579 # Define the identity of the package.
1580 PACKAGE=wmbiff
1581 VERSION=0.4.27
1584 cat >>confdefs.h <<_ACEOF
1585 #define PACKAGE "$PACKAGE"
1586 _ACEOF
1589 cat >>confdefs.h <<_ACEOF
1590 #define VERSION "$VERSION"
1591 _ACEOF
1593 # Some tools Automake needs.
1595 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1598 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1601 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1604 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1607 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1610 AMTAR=${AMTAR-"${am_missing_run}tar"}
1612 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1614 # Installed binaries are usually stripped using `strip' when the user
1615 # run `make install-strip'. However `strip' might not be the right
1616 # tool to use in cross-compilation environments, therefore Automake
1617 # will honor the `STRIP' environment variable to overrule this program.
1618 if test "$cross_compiling" != no; then
1619 if test -n "$ac_tool_prefix"; then
1620 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1621 set dummy ${ac_tool_prefix}strip; ac_word=$2
1622 echo "$as_me:$LINENO: checking for $ac_word" >&5
1623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1624 if test "${ac_cv_prog_STRIP+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1626 else
1627 if test -n "$STRIP"; then
1628 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1629 else
1630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631 for as_dir in $PATH
1633 IFS=$as_save_IFS
1634 test -z "$as_dir" && as_dir=.
1635 for ac_exec_ext in '' $ac_executable_extensions; do
1636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1637 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1639 break 2
1641 done
1642 done
1646 STRIP=$ac_cv_prog_STRIP
1647 if test -n "$STRIP"; then
1648 echo "$as_me:$LINENO: result: $STRIP" >&5
1649 echo "${ECHO_T}$STRIP" >&6
1650 else
1651 echo "$as_me:$LINENO: result: no" >&5
1652 echo "${ECHO_T}no" >&6
1656 if test -z "$ac_cv_prog_STRIP"; then
1657 ac_ct_STRIP=$STRIP
1658 # Extract the first word of "strip", so it can be a program name with args.
1659 set dummy strip; ac_word=$2
1660 echo "$as_me:$LINENO: checking for $ac_word" >&5
1661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1662 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1663 echo $ECHO_N "(cached) $ECHO_C" >&6
1664 else
1665 if test -n "$ac_ct_STRIP"; then
1666 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1667 else
1668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669 for as_dir in $PATH
1671 IFS=$as_save_IFS
1672 test -z "$as_dir" && as_dir=.
1673 for ac_exec_ext in '' $ac_executable_extensions; do
1674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1675 ac_cv_prog_ac_ct_STRIP="strip"
1676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1677 break 2
1679 done
1680 done
1682 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1685 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1686 if test -n "$ac_ct_STRIP"; then
1687 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1688 echo "${ECHO_T}$ac_ct_STRIP" >&6
1689 else
1690 echo "$as_me:$LINENO: result: no" >&5
1691 echo "${ECHO_T}no" >&6
1694 STRIP=$ac_ct_STRIP
1695 else
1696 STRIP="$ac_cv_prog_STRIP"
1700 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1702 # We need awk for the "check" target. The system "awk" is bad on
1703 # some platforms.
1706 # Add the stamp file to the list of files AC keeps track of,
1707 # along with our hook.
1708 ac_config_headers="$ac_config_headers config.h"
1716 # Find a good install program. We prefer a C program (faster),
1717 # so one script is as good as another. But avoid the broken or
1718 # incompatible versions:
1719 # SysV /etc/install, /usr/sbin/install
1720 # SunOS /usr/etc/install
1721 # IRIX /sbin/install
1722 # AIX /bin/install
1723 # AmigaOS /C/install, which installs bootblocks on floppy discs
1724 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1725 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1726 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1727 # OS/2's system install, which has a completely different semantic
1728 # ./install, which can be erroneously created by make from ./install.sh.
1729 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1730 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1731 if test -z "$INSTALL"; then
1732 if test "${ac_cv_path_install+set}" = set; then
1733 echo $ECHO_N "(cached) $ECHO_C" >&6
1734 else
1735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736 for as_dir in $PATH
1738 IFS=$as_save_IFS
1739 test -z "$as_dir" && as_dir=.
1740 # Account for people who put trailing slashes in PATH elements.
1741 case $as_dir/ in
1742 ./ | .// | /cC/* | \
1743 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1744 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1745 /usr/ucb/* ) ;;
1747 # OSF1 and SCO ODT 3.0 have their own names for install.
1748 # Don't use installbsd from OSF since it installs stuff as root
1749 # by default.
1750 for ac_prog in ginstall scoinst install; do
1751 for ac_exec_ext in '' $ac_executable_extensions; do
1752 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1753 if test $ac_prog = install &&
1754 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1755 # AIX install. It has an incompatible calling convention.
1757 elif test $ac_prog = install &&
1758 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1759 # program-specific install script used by HP pwplus--don't use.
1761 else
1762 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1763 break 3
1766 done
1767 done
1769 esac
1770 done
1774 if test "${ac_cv_path_install+set}" = set; then
1775 INSTALL=$ac_cv_path_install
1776 else
1777 # As a last resort, use the slow shell script. We don't cache a
1778 # path for INSTALL within a source directory, because that will
1779 # break other packages using the cache if that directory is
1780 # removed, or if the path is relative.
1781 INSTALL=$ac_install_sh
1784 echo "$as_me:$LINENO: result: $INSTALL" >&5
1785 echo "${ECHO_T}$INSTALL" >&6
1787 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1788 # It thinks the first close brace ends the variable substitution.
1789 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1791 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1793 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1795 ac_ext=c
1796 ac_cpp='$CPP $CPPFLAGS'
1797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1800 if test -n "$ac_tool_prefix"; then
1801 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1802 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1803 echo "$as_me:$LINENO: checking for $ac_word" >&5
1804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1805 if test "${ac_cv_prog_CC+set}" = set; then
1806 echo $ECHO_N "(cached) $ECHO_C" >&6
1807 else
1808 if test -n "$CC"; then
1809 ac_cv_prog_CC="$CC" # Let the user override the test.
1810 else
1811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1812 for as_dir in $PATH
1814 IFS=$as_save_IFS
1815 test -z "$as_dir" && as_dir=.
1816 for ac_exec_ext in '' $ac_executable_extensions; do
1817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1818 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1820 break 2
1822 done
1823 done
1827 CC=$ac_cv_prog_CC
1828 if test -n "$CC"; then
1829 echo "$as_me:$LINENO: result: $CC" >&5
1830 echo "${ECHO_T}$CC" >&6
1831 else
1832 echo "$as_me:$LINENO: result: no" >&5
1833 echo "${ECHO_T}no" >&6
1837 if test -z "$ac_cv_prog_CC"; then
1838 ac_ct_CC=$CC
1839 # Extract the first word of "gcc", so it can be a program name with args.
1840 set dummy gcc; ac_word=$2
1841 echo "$as_me:$LINENO: checking for $ac_word" >&5
1842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1843 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1844 echo $ECHO_N "(cached) $ECHO_C" >&6
1845 else
1846 if test -n "$ac_ct_CC"; then
1847 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1848 else
1849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1850 for as_dir in $PATH
1852 IFS=$as_save_IFS
1853 test -z "$as_dir" && as_dir=.
1854 for ac_exec_ext in '' $ac_executable_extensions; do
1855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1856 ac_cv_prog_ac_ct_CC="gcc"
1857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1858 break 2
1860 done
1861 done
1865 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1866 if test -n "$ac_ct_CC"; then
1867 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1868 echo "${ECHO_T}$ac_ct_CC" >&6
1869 else
1870 echo "$as_me:$LINENO: result: no" >&5
1871 echo "${ECHO_T}no" >&6
1874 CC=$ac_ct_CC
1875 else
1876 CC="$ac_cv_prog_CC"
1879 if test -z "$CC"; then
1880 if test -n "$ac_tool_prefix"; then
1881 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1882 set dummy ${ac_tool_prefix}cc; ac_word=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_CC+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1887 else
1888 if test -n "$CC"; then
1889 ac_cv_prog_CC="$CC" # Let the user override the test.
1890 else
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 for as_dir in $PATH
1894 IFS=$as_save_IFS
1895 test -z "$as_dir" && as_dir=.
1896 for ac_exec_ext in '' $ac_executable_extensions; do
1897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898 ac_cv_prog_CC="${ac_tool_prefix}cc"
1899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900 break 2
1902 done
1903 done
1907 CC=$ac_cv_prog_CC
1908 if test -n "$CC"; then
1909 echo "$as_me:$LINENO: result: $CC" >&5
1910 echo "${ECHO_T}$CC" >&6
1911 else
1912 echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6
1917 if test -z "$ac_cv_prog_CC"; then
1918 ac_ct_CC=$CC
1919 # Extract the first word of "cc", so it can be a program name with args.
1920 set dummy cc; ac_word=$2
1921 echo "$as_me:$LINENO: checking for $ac_word" >&5
1922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1923 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1924 echo $ECHO_N "(cached) $ECHO_C" >&6
1925 else
1926 if test -n "$ac_ct_CC"; then
1927 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1928 else
1929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 for as_dir in $PATH
1932 IFS=$as_save_IFS
1933 test -z "$as_dir" && as_dir=.
1934 for ac_exec_ext in '' $ac_executable_extensions; do
1935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1936 ac_cv_prog_ac_ct_CC="cc"
1937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1938 break 2
1940 done
1941 done
1945 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1946 if test -n "$ac_ct_CC"; then
1947 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1948 echo "${ECHO_T}$ac_ct_CC" >&6
1949 else
1950 echo "$as_me:$LINENO: result: no" >&5
1951 echo "${ECHO_T}no" >&6
1954 CC=$ac_ct_CC
1955 else
1956 CC="$ac_cv_prog_CC"
1960 if test -z "$CC"; then
1961 # Extract the first word of "cc", so it can be a program name with args.
1962 set dummy cc; ac_word=$2
1963 echo "$as_me:$LINENO: checking for $ac_word" >&5
1964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1965 if test "${ac_cv_prog_CC+set}" = set; then
1966 echo $ECHO_N "(cached) $ECHO_C" >&6
1967 else
1968 if test -n "$CC"; then
1969 ac_cv_prog_CC="$CC" # Let the user override the test.
1970 else
1971 ac_prog_rejected=no
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973 for as_dir in $PATH
1975 IFS=$as_save_IFS
1976 test -z "$as_dir" && as_dir=.
1977 for ac_exec_ext in '' $ac_executable_extensions; do
1978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1979 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1980 ac_prog_rejected=yes
1981 continue
1983 ac_cv_prog_CC="cc"
1984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985 break 2
1987 done
1988 done
1990 if test $ac_prog_rejected = yes; then
1991 # We found a bogon in the path, so make sure we never use it.
1992 set dummy $ac_cv_prog_CC
1993 shift
1994 if test $# != 0; then
1995 # We chose a different compiler from the bogus one.
1996 # However, it has the same basename, so the bogon will be chosen
1997 # first if we set CC to just the basename; use the full file name.
1998 shift
1999 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2004 CC=$ac_cv_prog_CC
2005 if test -n "$CC"; then
2006 echo "$as_me:$LINENO: result: $CC" >&5
2007 echo "${ECHO_T}$CC" >&6
2008 else
2009 echo "$as_me:$LINENO: result: no" >&5
2010 echo "${ECHO_T}no" >&6
2014 if test -z "$CC"; then
2015 if test -n "$ac_tool_prefix"; then
2016 for ac_prog in cl
2018 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2019 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2020 echo "$as_me:$LINENO: checking for $ac_word" >&5
2021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2022 if test "${ac_cv_prog_CC+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2024 else
2025 if test -n "$CC"; then
2026 ac_cv_prog_CC="$CC" # Let the user override the test.
2027 else
2028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029 for as_dir in $PATH
2031 IFS=$as_save_IFS
2032 test -z "$as_dir" && as_dir=.
2033 for ac_exec_ext in '' $ac_executable_extensions; do
2034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2035 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2037 break 2
2039 done
2040 done
2044 CC=$ac_cv_prog_CC
2045 if test -n "$CC"; then
2046 echo "$as_me:$LINENO: result: $CC" >&5
2047 echo "${ECHO_T}$CC" >&6
2048 else
2049 echo "$as_me:$LINENO: result: no" >&5
2050 echo "${ECHO_T}no" >&6
2053 test -n "$CC" && break
2054 done
2056 if test -z "$CC"; then
2057 ac_ct_CC=$CC
2058 for ac_prog in cl
2060 # Extract the first word of "$ac_prog", so it can be a program name with args.
2061 set dummy $ac_prog; ac_word=$2
2062 echo "$as_me:$LINENO: checking for $ac_word" >&5
2063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2064 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
2066 else
2067 if test -n "$ac_ct_CC"; then
2068 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2069 else
2070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071 for as_dir in $PATH
2073 IFS=$as_save_IFS
2074 test -z "$as_dir" && as_dir=.
2075 for ac_exec_ext in '' $ac_executable_extensions; do
2076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2077 ac_cv_prog_ac_ct_CC="$ac_prog"
2078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2079 break 2
2081 done
2082 done
2086 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2087 if test -n "$ac_ct_CC"; then
2088 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2089 echo "${ECHO_T}$ac_ct_CC" >&6
2090 else
2091 echo "$as_me:$LINENO: result: no" >&5
2092 echo "${ECHO_T}no" >&6
2095 test -n "$ac_ct_CC" && break
2096 done
2098 CC=$ac_ct_CC
2104 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2105 See \`config.log' for more details." >&5
2106 echo "$as_me: error: no acceptable C compiler found in \$PATH
2107 See \`config.log' for more details." >&2;}
2108 { (exit 1); exit 1; }; }
2110 # Provide some information about the compiler.
2111 echo "$as_me:$LINENO:" \
2112 "checking for C compiler version" >&5
2113 ac_compiler=`set X $ac_compile; echo $2`
2114 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2115 (eval $ac_compiler --version </dev/null >&5) 2>&5
2116 ac_status=$?
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }
2119 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2120 (eval $ac_compiler -v </dev/null >&5) 2>&5
2121 ac_status=$?
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }
2124 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2125 (eval $ac_compiler -V </dev/null >&5) 2>&5
2126 ac_status=$?
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }
2130 cat >conftest.$ac_ext <<_ACEOF
2131 /* confdefs.h. */
2132 _ACEOF
2133 cat confdefs.h >>conftest.$ac_ext
2134 cat >>conftest.$ac_ext <<_ACEOF
2135 /* end confdefs.h. */
2138 main ()
2142 return 0;
2144 _ACEOF
2145 ac_clean_files_save=$ac_clean_files
2146 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2147 # Try to create an executable without -o first, disregard a.out.
2148 # It will help us diagnose broken compilers, and finding out an intuition
2149 # of exeext.
2150 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2151 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2152 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2153 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2154 (eval $ac_link_default) 2>&5
2155 ac_status=$?
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; then
2158 # Find the output, starting from the most likely. This scheme is
2159 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2160 # resort.
2162 # Be careful to initialize this variable, since it used to be cached.
2163 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2164 ac_cv_exeext=
2165 # b.out is created by i960 compilers.
2166 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2168 test -f "$ac_file" || continue
2169 case $ac_file in
2170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2172 conftest.$ac_ext )
2173 # This is the source file.
2175 [ab].out )
2176 # We found the default executable, but exeext='' is most
2177 # certainly right.
2178 break;;
2179 *.* )
2180 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2181 # FIXME: I believe we export ac_cv_exeext for Libtool,
2182 # but it would be cool to find out if it's true. Does anybody
2183 # maintain Libtool? --akim.
2184 export ac_cv_exeext
2185 break;;
2187 break;;
2188 esac
2189 done
2190 else
2191 echo "$as_me: failed program was:" >&5
2192 sed 's/^/| /' conftest.$ac_ext >&5
2194 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2195 See \`config.log' for more details." >&5
2196 echo "$as_me: error: C compiler cannot create executables
2197 See \`config.log' for more details." >&2;}
2198 { (exit 77); exit 77; }; }
2201 ac_exeext=$ac_cv_exeext
2202 echo "$as_me:$LINENO: result: $ac_file" >&5
2203 echo "${ECHO_T}$ac_file" >&6
2205 # Check the compiler produces executables we can run. If not, either
2206 # the compiler is broken, or we cross compile.
2207 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2208 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2209 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2210 # If not cross compiling, check that we can run a simple program.
2211 if test "$cross_compiling" != yes; then
2212 if { ac_try='./$ac_file'
2213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214 (eval $ac_try) 2>&5
2215 ac_status=$?
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); }; }; then
2218 cross_compiling=no
2219 else
2220 if test "$cross_compiling" = maybe; then
2221 cross_compiling=yes
2222 else
2223 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2224 If you meant to cross compile, use \`--host'.
2225 See \`config.log' for more details." >&5
2226 echo "$as_me: error: cannot run C compiled programs.
2227 If you meant to cross compile, use \`--host'.
2228 See \`config.log' for more details." >&2;}
2229 { (exit 1); exit 1; }; }
2233 echo "$as_me:$LINENO: result: yes" >&5
2234 echo "${ECHO_T}yes" >&6
2236 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2237 ac_clean_files=$ac_clean_files_save
2238 # Check the compiler produces executables we can run. If not, either
2239 # the compiler is broken, or we cross compile.
2240 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2241 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2242 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2243 echo "${ECHO_T}$cross_compiling" >&6
2245 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2246 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2248 (eval $ac_link) 2>&5
2249 ac_status=$?
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }; then
2252 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2253 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2254 # work properly (i.e., refer to `conftest.exe'), while it won't with
2255 # `rm'.
2256 for ac_file in conftest.exe conftest conftest.*; do
2257 test -f "$ac_file" || continue
2258 case $ac_file in
2259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2260 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2261 export ac_cv_exeext
2262 break;;
2263 * ) break;;
2264 esac
2265 done
2266 else
2267 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2268 See \`config.log' for more details." >&5
2269 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2270 See \`config.log' for more details." >&2;}
2271 { (exit 1); exit 1; }; }
2274 rm -f conftest$ac_cv_exeext
2275 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2276 echo "${ECHO_T}$ac_cv_exeext" >&6
2278 rm -f conftest.$ac_ext
2279 EXEEXT=$ac_cv_exeext
2280 ac_exeext=$EXEEXT
2281 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2282 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2283 if test "${ac_cv_objext+set}" = set; then
2284 echo $ECHO_N "(cached) $ECHO_C" >&6
2285 else
2286 cat >conftest.$ac_ext <<_ACEOF
2287 /* confdefs.h. */
2288 _ACEOF
2289 cat confdefs.h >>conftest.$ac_ext
2290 cat >>conftest.$ac_ext <<_ACEOF
2291 /* end confdefs.h. */
2294 main ()
2298 return 0;
2300 _ACEOF
2301 rm -f conftest.o conftest.obj
2302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303 (eval $ac_compile) 2>&5
2304 ac_status=$?
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); }; then
2307 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2308 case $ac_file in
2309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2310 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2311 break;;
2312 esac
2313 done
2314 else
2315 echo "$as_me: failed program was:" >&5
2316 sed 's/^/| /' conftest.$ac_ext >&5
2318 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2319 See \`config.log' for more details." >&5
2320 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2321 See \`config.log' for more details." >&2;}
2322 { (exit 1); exit 1; }; }
2325 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2327 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2328 echo "${ECHO_T}$ac_cv_objext" >&6
2329 OBJEXT=$ac_cv_objext
2330 ac_objext=$OBJEXT
2331 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2332 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2333 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2334 echo $ECHO_N "(cached) $ECHO_C" >&6
2335 else
2336 cat >conftest.$ac_ext <<_ACEOF
2337 /* confdefs.h. */
2338 _ACEOF
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h. */
2344 main ()
2346 #ifndef __GNUC__
2347 choke me
2348 #endif
2351 return 0;
2353 _ACEOF
2354 rm -f conftest.$ac_objext
2355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2356 (eval $ac_compile) 2>conftest.er1
2357 ac_status=$?
2358 grep -v '^ *+' conftest.er1 >conftest.err
2359 rm -f conftest.er1
2360 cat conftest.err >&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); } &&
2363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 (eval $ac_try) 2>&5
2366 ac_status=$?
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; } &&
2369 { ac_try='test -s conftest.$ac_objext'
2370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371 (eval $ac_try) 2>&5
2372 ac_status=$?
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }; }; then
2375 ac_compiler_gnu=yes
2376 else
2377 echo "$as_me: failed program was:" >&5
2378 sed 's/^/| /' conftest.$ac_ext >&5
2380 ac_compiler_gnu=no
2382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2383 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2386 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2387 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2388 GCC=`test $ac_compiler_gnu = yes && echo yes`
2389 ac_test_CFLAGS=${CFLAGS+set}
2390 ac_save_CFLAGS=$CFLAGS
2391 CFLAGS="-g"
2392 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2393 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2394 if test "${ac_cv_prog_cc_g+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397 cat >conftest.$ac_ext <<_ACEOF
2398 /* confdefs.h. */
2399 _ACEOF
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h. */
2405 main ()
2409 return 0;
2411 _ACEOF
2412 rm -f conftest.$ac_objext
2413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2414 (eval $ac_compile) 2>conftest.er1
2415 ac_status=$?
2416 grep -v '^ *+' conftest.er1 >conftest.err
2417 rm -f conftest.er1
2418 cat conftest.err >&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); } &&
2421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423 (eval $ac_try) 2>&5
2424 ac_status=$?
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); }; } &&
2427 { ac_try='test -s conftest.$ac_objext'
2428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429 (eval $ac_try) 2>&5
2430 ac_status=$?
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); }; }; then
2433 ac_cv_prog_cc_g=yes
2434 else
2435 echo "$as_me: failed program was:" >&5
2436 sed 's/^/| /' conftest.$ac_ext >&5
2438 ac_cv_prog_cc_g=no
2440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2442 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2443 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2444 if test "$ac_test_CFLAGS" = set; then
2445 CFLAGS=$ac_save_CFLAGS
2446 elif test $ac_cv_prog_cc_g = yes; then
2447 if test "$GCC" = yes; then
2448 CFLAGS="-g -O2"
2449 else
2450 CFLAGS="-g"
2452 else
2453 if test "$GCC" = yes; then
2454 CFLAGS="-O2"
2455 else
2456 CFLAGS=
2459 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2460 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2461 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2463 else
2464 ac_cv_prog_cc_stdc=no
2465 ac_save_CC=$CC
2466 cat >conftest.$ac_ext <<_ACEOF
2467 /* confdefs.h. */
2468 _ACEOF
2469 cat confdefs.h >>conftest.$ac_ext
2470 cat >>conftest.$ac_ext <<_ACEOF
2471 /* end confdefs.h. */
2472 #include <stdarg.h>
2473 #include <stdio.h>
2474 #include <sys/types.h>
2475 #include <sys/stat.h>
2476 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2477 struct buf { int x; };
2478 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2479 static char *e (p, i)
2480 char **p;
2481 int i;
2483 return p[i];
2485 static char *f (char * (*g) (char **, int), char **p, ...)
2487 char *s;
2488 va_list v;
2489 va_start (v,p);
2490 s = g (p, va_arg (v,int));
2491 va_end (v);
2492 return s;
2495 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2496 function prototypes and stuff, but not '\xHH' hex character constants.
2497 These don't provoke an error unfortunately, instead are silently treated
2498 as 'x'. The following induces an error, until -std1 is added to get
2499 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2500 array size at least. It's necessary to write '\x00'==0 to get something
2501 that's true only with -std1. */
2502 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2504 int test (int i, double x);
2505 struct s1 {int (*f) (int a);};
2506 struct s2 {int (*f) (double a);};
2507 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2508 int argc;
2509 char **argv;
2511 main ()
2513 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2515 return 0;
2517 _ACEOF
2518 # Don't try gcc -ansi; that turns off useful extensions and
2519 # breaks some systems' header files.
2520 # AIX -qlanglvl=ansi
2521 # Ultrix and OSF/1 -std1
2522 # HP-UX 10.20 and later -Ae
2523 # HP-UX older versions -Aa -D_HPUX_SOURCE
2524 # SVR4 -Xc -D__EXTENSIONS__
2525 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2527 CC="$ac_save_CC $ac_arg"
2528 rm -f conftest.$ac_objext
2529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2530 (eval $ac_compile) 2>conftest.er1
2531 ac_status=$?
2532 grep -v '^ *+' conftest.er1 >conftest.err
2533 rm -f conftest.er1
2534 cat conftest.err >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); } &&
2537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539 (eval $ac_try) 2>&5
2540 ac_status=$?
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }; } &&
2543 { ac_try='test -s conftest.$ac_objext'
2544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545 (eval $ac_try) 2>&5
2546 ac_status=$?
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; }; then
2549 ac_cv_prog_cc_stdc=$ac_arg
2550 break
2551 else
2552 echo "$as_me: failed program was:" >&5
2553 sed 's/^/| /' conftest.$ac_ext >&5
2556 rm -f conftest.err conftest.$ac_objext
2557 done
2558 rm -f conftest.$ac_ext conftest.$ac_objext
2559 CC=$ac_save_CC
2563 case "x$ac_cv_prog_cc_stdc" in
2564 x|xno)
2565 echo "$as_me:$LINENO: result: none needed" >&5
2566 echo "${ECHO_T}none needed" >&6 ;;
2568 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2569 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2570 CC="$CC $ac_cv_prog_cc_stdc" ;;
2571 esac
2573 # Some people use a C++ compiler to compile C. Since we use `exit',
2574 # in C++ we need to declare it. In case someone uses the same compiler
2575 # for both compiling C and C++ we need to have the C++ compiler decide
2576 # the declaration of exit, since it's the most demanding environment.
2577 cat >conftest.$ac_ext <<_ACEOF
2578 #ifndef __cplusplus
2579 choke me
2580 #endif
2581 _ACEOF
2582 rm -f conftest.$ac_objext
2583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2584 (eval $ac_compile) 2>conftest.er1
2585 ac_status=$?
2586 grep -v '^ *+' conftest.er1 >conftest.err
2587 rm -f conftest.er1
2588 cat conftest.err >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); } &&
2591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593 (eval $ac_try) 2>&5
2594 ac_status=$?
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); }; } &&
2597 { ac_try='test -s conftest.$ac_objext'
2598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599 (eval $ac_try) 2>&5
2600 ac_status=$?
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); }; }; then
2603 for ac_declaration in \
2604 '' \
2605 'extern "C" void std::exit (int) throw (); using std::exit;' \
2606 'extern "C" void std::exit (int); using std::exit;' \
2607 'extern "C" void exit (int) throw ();' \
2608 'extern "C" void exit (int);' \
2609 'void exit (int);'
2611 cat >conftest.$ac_ext <<_ACEOF
2612 /* confdefs.h. */
2613 _ACEOF
2614 cat confdefs.h >>conftest.$ac_ext
2615 cat >>conftest.$ac_ext <<_ACEOF
2616 /* end confdefs.h. */
2617 $ac_declaration
2618 #include <stdlib.h>
2620 main ()
2622 exit (42);
2624 return 0;
2626 _ACEOF
2627 rm -f conftest.$ac_objext
2628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2629 (eval $ac_compile) 2>conftest.er1
2630 ac_status=$?
2631 grep -v '^ *+' conftest.er1 >conftest.err
2632 rm -f conftest.er1
2633 cat conftest.err >&5
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); } &&
2636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638 (eval $ac_try) 2>&5
2639 ac_status=$?
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }; } &&
2642 { ac_try='test -s conftest.$ac_objext'
2643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644 (eval $ac_try) 2>&5
2645 ac_status=$?
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }; }; then
2649 else
2650 echo "$as_me: failed program was:" >&5
2651 sed 's/^/| /' conftest.$ac_ext >&5
2653 continue
2655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2656 cat >conftest.$ac_ext <<_ACEOF
2657 /* confdefs.h. */
2658 _ACEOF
2659 cat confdefs.h >>conftest.$ac_ext
2660 cat >>conftest.$ac_ext <<_ACEOF
2661 /* end confdefs.h. */
2662 $ac_declaration
2664 main ()
2666 exit (42);
2668 return 0;
2670 _ACEOF
2671 rm -f conftest.$ac_objext
2672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2673 (eval $ac_compile) 2>conftest.er1
2674 ac_status=$?
2675 grep -v '^ *+' conftest.er1 >conftest.err
2676 rm -f conftest.er1
2677 cat conftest.err >&5
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); } &&
2680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682 (eval $ac_try) 2>&5
2683 ac_status=$?
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }; } &&
2686 { ac_try='test -s conftest.$ac_objext'
2687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688 (eval $ac_try) 2>&5
2689 ac_status=$?
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; }; then
2692 break
2693 else
2694 echo "$as_me: failed program was:" >&5
2695 sed 's/^/| /' conftest.$ac_ext >&5
2698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2699 done
2700 rm -f conftest*
2701 if test -n "$ac_declaration"; then
2702 echo '#ifdef __cplusplus' >>confdefs.h
2703 echo $ac_declaration >>confdefs.h
2704 echo '#endif' >>confdefs.h
2707 else
2708 echo "$as_me: failed program was:" >&5
2709 sed 's/^/| /' conftest.$ac_ext >&5
2712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2713 ac_ext=c
2714 ac_cpp='$CPP $CPPFLAGS'
2715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2718 rm -f .deps 2>/dev/null
2719 mkdir .deps 2>/dev/null
2720 if test -d .deps; then
2721 DEPDIR=.deps
2722 else
2723 # MS-DOS does not allow filenames that begin with a dot.
2724 DEPDIR=_deps
2726 rmdir .deps 2>/dev/null
2729 ac_config_commands="$ac_config_commands depfiles"
2732 am_make=${MAKE-make}
2733 cat > confinc << 'END'
2734 doit:
2735 @echo done
2737 # If we don't find an include directive, just comment out the code.
2738 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2739 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2740 am__include="#"
2741 am__quote=
2742 _am_result=none
2743 # First try GNU make style include.
2744 echo "include confinc" > confmf
2745 # We grep out `Entering directory' and `Leaving directory'
2746 # messages which can occur if `w' ends up in MAKEFLAGS.
2747 # In particular we don't look at `^make:' because GNU make might
2748 # be invoked under some other name (usually "gmake"), in which
2749 # case it prints its new name instead of `make'.
2750 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2751 am__include=include
2752 am__quote=
2753 _am_result=GNU
2755 # Now try BSD make style include.
2756 if test "$am__include" = "#"; then
2757 echo '.include "confinc"' > confmf
2758 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2759 am__include=.include
2760 am__quote="\""
2761 _am_result=BSD
2766 echo "$as_me:$LINENO: result: $_am_result" >&5
2767 echo "${ECHO_T}$_am_result" >&6
2768 rm -f confinc confmf
2770 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2771 if test "${enable_dependency_tracking+set}" = set; then
2772 enableval="$enable_dependency_tracking"
2775 if test "x$enable_dependency_tracking" != xno; then
2776 am_depcomp="$ac_aux_dir/depcomp"
2777 AMDEPBACKSLASH='\'
2781 if test "x$enable_dependency_tracking" != xno; then
2782 AMDEP_TRUE=
2783 AMDEP_FALSE='#'
2784 else
2785 AMDEP_TRUE='#'
2786 AMDEP_FALSE=
2792 depcc="$CC" am_compiler_list=
2794 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2795 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2796 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2797 echo $ECHO_N "(cached) $ECHO_C" >&6
2798 else
2799 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2800 # We make a subdir and do the tests there. Otherwise we can end up
2801 # making bogus files that we don't know about and never remove. For
2802 # instance it was reported that on HP-UX the gcc test will end up
2803 # making a dummy file named `D' -- because `-MD' means `put the output
2804 # in D'.
2805 mkdir conftest.dir
2806 # Copy depcomp to subdir because otherwise we won't find it if we're
2807 # using a relative directory.
2808 cp "$am_depcomp" conftest.dir
2809 cd conftest.dir
2811 am_cv_CC_dependencies_compiler_type=none
2812 if test "$am_compiler_list" = ""; then
2813 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2815 for depmode in $am_compiler_list; do
2816 # We need to recreate these files for each test, as the compiler may
2817 # overwrite some of them when testing with obscure command lines.
2818 # This happens at least with the AIX C compiler.
2819 echo '#include "conftest.h"' > conftest.c
2820 echo 'int i;' > conftest.h
2821 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2823 case $depmode in
2824 nosideeffect)
2825 # after this tag, mechanisms are not by side-effect, so they'll
2826 # only be used when explicitly requested
2827 if test "x$enable_dependency_tracking" = xyes; then
2828 continue
2829 else
2830 break
2833 none) break ;;
2834 esac
2835 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2836 # mode. It turns out that the SunPro C++ compiler does not properly
2837 # handle `-M -o', and we need to detect this.
2838 if depmode=$depmode \
2839 source=conftest.c object=conftest.o \
2840 depfile=conftest.Po tmpdepfile=conftest.TPo \
2841 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2842 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2843 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2844 am_cv_CC_dependencies_compiler_type=$depmode
2845 break
2847 done
2849 cd ..
2850 rm -rf conftest.dir
2851 else
2852 am_cv_CC_dependencies_compiler_type=none
2856 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2857 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2858 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2861 if test -n "$ac_tool_prefix"; then
2862 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2863 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2864 echo "$as_me:$LINENO: checking for $ac_word" >&5
2865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2866 if test "${ac_cv_prog_RANLIB+set}" = set; then
2867 echo $ECHO_N "(cached) $ECHO_C" >&6
2868 else
2869 if test -n "$RANLIB"; then
2870 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2871 else
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 for as_dir in $PATH
2875 IFS=$as_save_IFS
2876 test -z "$as_dir" && as_dir=.
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2879 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 break 2
2883 done
2884 done
2888 RANLIB=$ac_cv_prog_RANLIB
2889 if test -n "$RANLIB"; then
2890 echo "$as_me:$LINENO: result: $RANLIB" >&5
2891 echo "${ECHO_T}$RANLIB" >&6
2892 else
2893 echo "$as_me:$LINENO: result: no" >&5
2894 echo "${ECHO_T}no" >&6
2898 if test -z "$ac_cv_prog_RANLIB"; then
2899 ac_ct_RANLIB=$RANLIB
2900 # Extract the first word of "ranlib", so it can be a program name with args.
2901 set dummy ranlib; ac_word=$2
2902 echo "$as_me:$LINENO: checking for $ac_word" >&5
2903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2904 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2905 echo $ECHO_N "(cached) $ECHO_C" >&6
2906 else
2907 if test -n "$ac_ct_RANLIB"; then
2908 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2909 else
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 for as_dir in $PATH
2913 IFS=$as_save_IFS
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2917 ac_cv_prog_ac_ct_RANLIB="ranlib"
2918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 break 2
2921 done
2922 done
2924 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2927 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2928 if test -n "$ac_ct_RANLIB"; then
2929 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2930 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2931 else
2932 echo "$as_me:$LINENO: result: no" >&5
2933 echo "${ECHO_T}no" >&6
2936 RANLIB=$ac_ct_RANLIB
2937 else
2938 RANLIB="$ac_cv_prog_RANLIB"
2942 if test -n "$GCC"; then
2943 CFLAGS="$CFLAGS -D_GNU_SOURCE -W -Wall -Wshadow -Wpointer-arith -Wwrite-strings"
2944 echo "$as_me:$LINENO: result: adding -Wall and friends to CFLAGS." >&5
2945 echo "${ECHO_T}adding -Wall and friends to CFLAGS." >&6
2948 case `(uname -s) 2>/dev/null` in
2949 "Darwin")
2950 CFLAGS="$CFLAGS -no-cpp-precomp"
2951 echo "$as_me:$LINENO: result: adding cpp precompiler workaround for Mac OS X" >&5
2952 echo "${ECHO_T}adding cpp precompiler workaround for Mac OS X" >&6
2953 LDFLAGS="$LDFLAGS -framework Security"
2954 echo "$as_me:$LINENO: result: adding -framework Security for Mac OS X" >&5
2955 echo "${ECHO_T}adding -framework Security for Mac OS X" >&6
2957 esac
2960 ac_ext=c
2961 ac_cpp='$CPP $CPPFLAGS'
2962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2965 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2966 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2967 # On Suns, sometimes $CPP names a directory.
2968 if test -n "$CPP" && test -d "$CPP"; then
2969 CPP=
2971 if test -z "$CPP"; then
2972 if test "${ac_cv_prog_CPP+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
2974 else
2975 # Double quotes because CPP needs to be expanded
2976 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2978 ac_preproc_ok=false
2979 for ac_c_preproc_warn_flag in '' yes
2981 # Use a header file that comes with gcc, so configuring glibc
2982 # with a fresh cross-compiler works.
2983 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2984 # <limits.h> exists even on freestanding compilers.
2985 # On the NeXT, cc -E runs the code through the compiler's parser,
2986 # not just through cpp. "Syntax error" is here to catch this case.
2987 cat >conftest.$ac_ext <<_ACEOF
2988 /* confdefs.h. */
2989 _ACEOF
2990 cat confdefs.h >>conftest.$ac_ext
2991 cat >>conftest.$ac_ext <<_ACEOF
2992 /* end confdefs.h. */
2993 #ifdef __STDC__
2994 # include <limits.h>
2995 #else
2996 # include <assert.h>
2997 #endif
2998 Syntax error
2999 _ACEOF
3000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3002 ac_status=$?
3003 grep -v '^ *+' conftest.er1 >conftest.err
3004 rm -f conftest.er1
3005 cat conftest.err >&5
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); } >/dev/null; then
3008 if test -s conftest.err; then
3009 ac_cpp_err=$ac_c_preproc_warn_flag
3010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3011 else
3012 ac_cpp_err=
3014 else
3015 ac_cpp_err=yes
3017 if test -z "$ac_cpp_err"; then
3019 else
3020 echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3023 # Broken: fails on valid input.
3024 continue
3026 rm -f conftest.err conftest.$ac_ext
3028 # OK, works on sane cases. Now check whether non-existent headers
3029 # can be detected and how.
3030 cat >conftest.$ac_ext <<_ACEOF
3031 /* confdefs.h. */
3032 _ACEOF
3033 cat confdefs.h >>conftest.$ac_ext
3034 cat >>conftest.$ac_ext <<_ACEOF
3035 /* end confdefs.h. */
3036 #include <ac_nonexistent.h>
3037 _ACEOF
3038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3040 ac_status=$?
3041 grep -v '^ *+' conftest.er1 >conftest.err
3042 rm -f conftest.er1
3043 cat conftest.err >&5
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); } >/dev/null; then
3046 if test -s conftest.err; then
3047 ac_cpp_err=$ac_c_preproc_warn_flag
3048 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3049 else
3050 ac_cpp_err=
3052 else
3053 ac_cpp_err=yes
3055 if test -z "$ac_cpp_err"; then
3056 # Broken: success on invalid input.
3057 continue
3058 else
3059 echo "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3062 # Passes both tests.
3063 ac_preproc_ok=:
3064 break
3066 rm -f conftest.err conftest.$ac_ext
3068 done
3069 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3070 rm -f conftest.err conftest.$ac_ext
3071 if $ac_preproc_ok; then
3072 break
3075 done
3076 ac_cv_prog_CPP=$CPP
3079 CPP=$ac_cv_prog_CPP
3080 else
3081 ac_cv_prog_CPP=$CPP
3083 echo "$as_me:$LINENO: result: $CPP" >&5
3084 echo "${ECHO_T}$CPP" >&6
3085 ac_preproc_ok=false
3086 for ac_c_preproc_warn_flag in '' yes
3088 # Use a header file that comes with gcc, so configuring glibc
3089 # with a fresh cross-compiler works.
3090 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3091 # <limits.h> exists even on freestanding compilers.
3092 # On the NeXT, cc -E runs the code through the compiler's parser,
3093 # not just through cpp. "Syntax error" is here to catch this case.
3094 cat >conftest.$ac_ext <<_ACEOF
3095 /* confdefs.h. */
3096 _ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h. */
3100 #ifdef __STDC__
3101 # include <limits.h>
3102 #else
3103 # include <assert.h>
3104 #endif
3105 Syntax error
3106 _ACEOF
3107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3109 ac_status=$?
3110 grep -v '^ *+' conftest.er1 >conftest.err
3111 rm -f conftest.er1
3112 cat conftest.err >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); } >/dev/null; then
3115 if test -s conftest.err; then
3116 ac_cpp_err=$ac_c_preproc_warn_flag
3117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3118 else
3119 ac_cpp_err=
3121 else
3122 ac_cpp_err=yes
3124 if test -z "$ac_cpp_err"; then
3126 else
3127 echo "$as_me: failed program was:" >&5
3128 sed 's/^/| /' conftest.$ac_ext >&5
3130 # Broken: fails on valid input.
3131 continue
3133 rm -f conftest.err conftest.$ac_ext
3135 # OK, works on sane cases. Now check whether non-existent headers
3136 # can be detected and how.
3137 cat >conftest.$ac_ext <<_ACEOF
3138 /* confdefs.h. */
3139 _ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h. */
3143 #include <ac_nonexistent.h>
3144 _ACEOF
3145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3147 ac_status=$?
3148 grep -v '^ *+' conftest.er1 >conftest.err
3149 rm -f conftest.er1
3150 cat conftest.err >&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); } >/dev/null; then
3153 if test -s conftest.err; then
3154 ac_cpp_err=$ac_c_preproc_warn_flag
3155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3156 else
3157 ac_cpp_err=
3159 else
3160 ac_cpp_err=yes
3162 if test -z "$ac_cpp_err"; then
3163 # Broken: success on invalid input.
3164 continue
3165 else
3166 echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3169 # Passes both tests.
3170 ac_preproc_ok=:
3171 break
3173 rm -f conftest.err conftest.$ac_ext
3175 done
3176 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3177 rm -f conftest.err conftest.$ac_ext
3178 if $ac_preproc_ok; then
3180 else
3181 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3182 See \`config.log' for more details." >&5
3183 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3184 See \`config.log' for more details." >&2;}
3185 { (exit 1); exit 1; }; }
3188 ac_ext=c
3189 ac_cpp='$CPP $CPPFLAGS'
3190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3195 echo "$as_me:$LINENO: checking for egrep" >&5
3196 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3197 if test "${ac_cv_prog_egrep+set}" = set; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
3199 else
3200 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3201 then ac_cv_prog_egrep='grep -E'
3202 else ac_cv_prog_egrep='egrep'
3205 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3206 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3207 EGREP=$ac_cv_prog_egrep
3210 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3211 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3212 if test "${ac_cv_header_stdc+set}" = set; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
3214 else
3215 cat >conftest.$ac_ext <<_ACEOF
3216 /* confdefs.h. */
3217 _ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h. */
3221 #include <stdlib.h>
3222 #include <stdarg.h>
3223 #include <string.h>
3224 #include <float.h>
3227 main ()
3231 return 0;
3233 _ACEOF
3234 rm -f conftest.$ac_objext
3235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3236 (eval $ac_compile) 2>conftest.er1
3237 ac_status=$?
3238 grep -v '^ *+' conftest.er1 >conftest.err
3239 rm -f conftest.er1
3240 cat conftest.err >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } &&
3243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245 (eval $ac_try) 2>&5
3246 ac_status=$?
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; } &&
3249 { ac_try='test -s conftest.$ac_objext'
3250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251 (eval $ac_try) 2>&5
3252 ac_status=$?
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
3255 ac_cv_header_stdc=yes
3256 else
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3260 ac_cv_header_stdc=no
3262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3264 if test $ac_cv_header_stdc = yes; then
3265 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3266 cat >conftest.$ac_ext <<_ACEOF
3267 /* confdefs.h. */
3268 _ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3272 #include <string.h>
3274 _ACEOF
3275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3276 $EGREP "memchr" >/dev/null 2>&1; then
3278 else
3279 ac_cv_header_stdc=no
3281 rm -f conftest*
3285 if test $ac_cv_header_stdc = yes; then
3286 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3287 cat >conftest.$ac_ext <<_ACEOF
3288 /* confdefs.h. */
3289 _ACEOF
3290 cat confdefs.h >>conftest.$ac_ext
3291 cat >>conftest.$ac_ext <<_ACEOF
3292 /* end confdefs.h. */
3293 #include <stdlib.h>
3295 _ACEOF
3296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3297 $EGREP "free" >/dev/null 2>&1; then
3299 else
3300 ac_cv_header_stdc=no
3302 rm -f conftest*
3306 if test $ac_cv_header_stdc = yes; then
3307 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3308 if test "$cross_compiling" = yes; then
3310 else
3311 cat >conftest.$ac_ext <<_ACEOF
3312 /* confdefs.h. */
3313 _ACEOF
3314 cat confdefs.h >>conftest.$ac_ext
3315 cat >>conftest.$ac_ext <<_ACEOF
3316 /* end confdefs.h. */
3317 #include <ctype.h>
3318 #if ((' ' & 0x0FF) == 0x020)
3319 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3320 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3321 #else
3322 # define ISLOWER(c) \
3323 (('a' <= (c) && (c) <= 'i') \
3324 || ('j' <= (c) && (c) <= 'r') \
3325 || ('s' <= (c) && (c) <= 'z'))
3326 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3327 #endif
3329 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3331 main ()
3333 int i;
3334 for (i = 0; i < 256; i++)
3335 if (XOR (islower (i), ISLOWER (i))
3336 || toupper (i) != TOUPPER (i))
3337 exit(2);
3338 exit (0);
3340 _ACEOF
3341 rm -f conftest$ac_exeext
3342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3343 (eval $ac_link) 2>&5
3344 ac_status=$?
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348 (eval $ac_try) 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; }; then
3353 else
3354 echo "$as_me: program exited with status $ac_status" >&5
3355 echo "$as_me: failed program was:" >&5
3356 sed 's/^/| /' conftest.$ac_ext >&5
3358 ( exit $ac_status )
3359 ac_cv_header_stdc=no
3361 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3365 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3366 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3367 if test $ac_cv_header_stdc = yes; then
3369 cat >>confdefs.h <<\_ACEOF
3370 #define STDC_HEADERS 1
3371 _ACEOF
3375 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3385 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3386 inttypes.h stdint.h unistd.h
3388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3389 echo "$as_me:$LINENO: checking for $ac_header" >&5
3390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3393 else
3394 cat >conftest.$ac_ext <<_ACEOF
3395 /* confdefs.h. */
3396 _ACEOF
3397 cat confdefs.h >>conftest.$ac_ext
3398 cat >>conftest.$ac_ext <<_ACEOF
3399 /* end confdefs.h. */
3400 $ac_includes_default
3402 #include <$ac_header>
3403 _ACEOF
3404 rm -f conftest.$ac_objext
3405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3406 (eval $ac_compile) 2>conftest.er1
3407 ac_status=$?
3408 grep -v '^ *+' conftest.er1 >conftest.err
3409 rm -f conftest.er1
3410 cat conftest.err >&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); } &&
3413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415 (eval $ac_try) 2>&5
3416 ac_status=$?
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; } &&
3419 { ac_try='test -s conftest.$ac_objext'
3420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421 (eval $ac_try) 2>&5
3422 ac_status=$?
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; }; then
3425 eval "$as_ac_Header=yes"
3426 else
3427 echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3430 eval "$as_ac_Header=no"
3432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3437 cat >>confdefs.h <<_ACEOF
3438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3439 _ACEOF
3443 done
3447 for ac_header in stdio.h
3449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3451 echo "$as_me:$LINENO: checking for $ac_header" >&5
3452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3458 else
3459 # Is the header compilable?
3460 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3461 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3462 cat >conftest.$ac_ext <<_ACEOF
3463 /* confdefs.h. */
3464 _ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h. */
3468 $ac_includes_default
3469 #include <$ac_header>
3470 _ACEOF
3471 rm -f conftest.$ac_objext
3472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3473 (eval $ac_compile) 2>conftest.er1
3474 ac_status=$?
3475 grep -v '^ *+' conftest.er1 >conftest.err
3476 rm -f conftest.er1
3477 cat conftest.err >&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); } &&
3480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482 (eval $ac_try) 2>&5
3483 ac_status=$?
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); }; } &&
3486 { ac_try='test -s conftest.$ac_objext'
3487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488 (eval $ac_try) 2>&5
3489 ac_status=$?
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); }; }; then
3492 ac_header_compiler=yes
3493 else
3494 echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.$ac_ext >&5
3497 ac_header_compiler=no
3499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3500 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3501 echo "${ECHO_T}$ac_header_compiler" >&6
3503 # Is the header present?
3504 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3505 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3506 cat >conftest.$ac_ext <<_ACEOF
3507 /* confdefs.h. */
3508 _ACEOF
3509 cat confdefs.h >>conftest.$ac_ext
3510 cat >>conftest.$ac_ext <<_ACEOF
3511 /* end confdefs.h. */
3512 #include <$ac_header>
3513 _ACEOF
3514 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3515 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3516 ac_status=$?
3517 grep -v '^ *+' conftest.er1 >conftest.err
3518 rm -f conftest.er1
3519 cat conftest.err >&5
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); } >/dev/null; then
3522 if test -s conftest.err; then
3523 ac_cpp_err=$ac_c_preproc_warn_flag
3524 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3525 else
3526 ac_cpp_err=
3528 else
3529 ac_cpp_err=yes
3531 if test -z "$ac_cpp_err"; then
3532 ac_header_preproc=yes
3533 else
3534 echo "$as_me: failed program was:" >&5
3535 sed 's/^/| /' conftest.$ac_ext >&5
3537 ac_header_preproc=no
3539 rm -f conftest.err conftest.$ac_ext
3540 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3541 echo "${ECHO_T}$ac_header_preproc" >&6
3543 # So? What about this header?
3544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3545 yes:no: )
3546 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3547 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3549 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3550 ac_header_preproc=yes
3552 no:yes:* )
3553 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3554 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3555 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3556 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3557 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3558 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3559 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3560 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3562 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3563 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3564 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3566 cat <<\_ASBOX
3567 ## ------------------------------------------------- ##
3568 ## Report this to wmbiff-devel@lists.sourceforge.net ##
3569 ## ------------------------------------------------- ##
3570 _ASBOX
3572 sed "s/^/$as_me: WARNING: /" >&2
3574 esac
3575 echo "$as_me:$LINENO: checking for $ac_header" >&5
3576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 else
3580 eval "$as_ac_Header=\$ac_header_preproc"
3582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3583 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3587 cat >>confdefs.h <<_ACEOF
3588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3589 _ACEOF
3593 done
3597 for ac_func in getaddrinfo
3599 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3600 echo "$as_me:$LINENO: checking for $ac_func" >&5
3601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3602 if eval "test \"\${$as_ac_var+set}\" = set"; then
3603 echo $ECHO_N "(cached) $ECHO_C" >&6
3604 else
3605 cat >conftest.$ac_ext <<_ACEOF
3606 /* confdefs.h. */
3607 _ACEOF
3608 cat confdefs.h >>conftest.$ac_ext
3609 cat >>conftest.$ac_ext <<_ACEOF
3610 /* end confdefs.h. */
3611 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3613 #define $ac_func innocuous_$ac_func
3615 /* System header to define __stub macros and hopefully few prototypes,
3616 which can conflict with char $ac_func (); below.
3617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3618 <limits.h> exists even on freestanding compilers. */
3620 #ifdef __STDC__
3621 # include <limits.h>
3622 #else
3623 # include <assert.h>
3624 #endif
3626 #undef $ac_func
3628 /* Override any gcc2 internal prototype to avoid an error. */
3629 #ifdef __cplusplus
3630 extern "C"
3632 #endif
3633 /* We use char because int might match the return type of a gcc2
3634 builtin and then its argument prototype would still apply. */
3635 char $ac_func ();
3636 /* The GNU C library defines this for functions which it implements
3637 to always fail with ENOSYS. Some functions are actually named
3638 something starting with __ and the normal name is an alias. */
3639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3640 choke me
3641 #else
3642 char (*f) () = $ac_func;
3643 #endif
3644 #ifdef __cplusplus
3646 #endif
3649 main ()
3651 return f != $ac_func;
3653 return 0;
3655 _ACEOF
3656 rm -f conftest.$ac_objext conftest$ac_exeext
3657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3658 (eval $ac_link) 2>conftest.er1
3659 ac_status=$?
3660 grep -v '^ *+' conftest.er1 >conftest.err
3661 rm -f conftest.er1
3662 cat conftest.err >&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } &&
3665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667 (eval $ac_try) 2>&5
3668 ac_status=$?
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; } &&
3671 { ac_try='test -s conftest$ac_exeext'
3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673 (eval $ac_try) 2>&5
3674 ac_status=$?
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; }; then
3677 eval "$as_ac_var=yes"
3678 else
3679 echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.$ac_ext >&5
3682 eval "$as_ac_var=no"
3684 rm -f conftest.err conftest.$ac_objext \
3685 conftest$ac_exeext conftest.$ac_ext
3687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3688 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3689 if test `eval echo '${'$as_ac_var'}'` = yes; then
3690 cat >>confdefs.h <<_ACEOF
3691 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3692 _ACEOF
3695 done
3699 for ac_func in memfrob
3701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3702 echo "$as_me:$LINENO: checking for $ac_func" >&5
3703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3704 if eval "test \"\${$as_ac_var+set}\" = set"; then
3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3706 else
3707 cat >conftest.$ac_ext <<_ACEOF
3708 /* confdefs.h. */
3709 _ACEOF
3710 cat confdefs.h >>conftest.$ac_ext
3711 cat >>conftest.$ac_ext <<_ACEOF
3712 /* end confdefs.h. */
3713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3715 #define $ac_func innocuous_$ac_func
3717 /* System header to define __stub macros and hopefully few prototypes,
3718 which can conflict with char $ac_func (); below.
3719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3720 <limits.h> exists even on freestanding compilers. */
3722 #ifdef __STDC__
3723 # include <limits.h>
3724 #else
3725 # include <assert.h>
3726 #endif
3728 #undef $ac_func
3730 /* Override any gcc2 internal prototype to avoid an error. */
3731 #ifdef __cplusplus
3732 extern "C"
3734 #endif
3735 /* We use char because int might match the return type of a gcc2
3736 builtin and then its argument prototype would still apply. */
3737 char $ac_func ();
3738 /* The GNU C library defines this for functions which it implements
3739 to always fail with ENOSYS. Some functions are actually named
3740 something starting with __ and the normal name is an alias. */
3741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3742 choke me
3743 #else
3744 char (*f) () = $ac_func;
3745 #endif
3746 #ifdef __cplusplus
3748 #endif
3751 main ()
3753 return f != $ac_func;
3755 return 0;
3757 _ACEOF
3758 rm -f conftest.$ac_objext conftest$ac_exeext
3759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3760 (eval $ac_link) 2>conftest.er1
3761 ac_status=$?
3762 grep -v '^ *+' conftest.er1 >conftest.err
3763 rm -f conftest.er1
3764 cat conftest.err >&5
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); } &&
3767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3769 (eval $ac_try) 2>&5
3770 ac_status=$?
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); }; } &&
3773 { ac_try='test -s conftest$ac_exeext'
3774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3775 (eval $ac_try) 2>&5
3776 ac_status=$?
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); }; }; then
3779 eval "$as_ac_var=yes"
3780 else
3781 echo "$as_me: failed program was:" >&5
3782 sed 's/^/| /' conftest.$ac_ext >&5
3784 eval "$as_ac_var=no"
3786 rm -f conftest.err conftest.$ac_objext \
3787 conftest$ac_exeext conftest.$ac_ext
3789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3790 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3791 if test `eval echo '${'$as_ac_var'}'` = yes; then
3792 cat >>confdefs.h <<_ACEOF
3793 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3794 _ACEOF
3797 done
3802 for ac_func in poll
3804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3805 echo "$as_me:$LINENO: checking for $ac_func" >&5
3806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3807 if eval "test \"\${$as_ac_var+set}\" = set"; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3809 else
3810 cat >conftest.$ac_ext <<_ACEOF
3811 /* confdefs.h. */
3812 _ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h. */
3816 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3818 #define $ac_func innocuous_$ac_func
3820 /* System header to define __stub macros and hopefully few prototypes,
3821 which can conflict with char $ac_func (); below.
3822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3823 <limits.h> exists even on freestanding compilers. */
3825 #ifdef __STDC__
3826 # include <limits.h>
3827 #else
3828 # include <assert.h>
3829 #endif
3831 #undef $ac_func
3833 /* Override any gcc2 internal prototype to avoid an error. */
3834 #ifdef __cplusplus
3835 extern "C"
3837 #endif
3838 /* We use char because int might match the return type of a gcc2
3839 builtin and then its argument prototype would still apply. */
3840 char $ac_func ();
3841 /* The GNU C library defines this for functions which it implements
3842 to always fail with ENOSYS. Some functions are actually named
3843 something starting with __ and the normal name is an alias. */
3844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3845 choke me
3846 #else
3847 char (*f) () = $ac_func;
3848 #endif
3849 #ifdef __cplusplus
3851 #endif
3854 main ()
3856 return f != $ac_func;
3858 return 0;
3860 _ACEOF
3861 rm -f conftest.$ac_objext conftest$ac_exeext
3862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3863 (eval $ac_link) 2>conftest.er1
3864 ac_status=$?
3865 grep -v '^ *+' conftest.er1 >conftest.err
3866 rm -f conftest.er1
3867 cat conftest.err >&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } &&
3870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3872 (eval $ac_try) 2>&5
3873 ac_status=$?
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); }; } &&
3876 { ac_try='test -s conftest$ac_exeext'
3877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878 (eval $ac_try) 2>&5
3879 ac_status=$?
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); }; }; then
3882 eval "$as_ac_var=yes"
3883 else
3884 echo "$as_me: failed program was:" >&5
3885 sed 's/^/| /' conftest.$ac_ext >&5
3887 eval "$as_ac_var=no"
3889 rm -f conftest.err conftest.$ac_objext \
3890 conftest$ac_exeext conftest.$ac_ext
3892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3893 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3894 if test `eval echo '${'$as_ac_var'}'` = yes; then
3895 cat >>confdefs.h <<_ACEOF
3896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3897 _ACEOF
3900 done
3904 for ac_func in inet_ntop
3906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3907 echo "$as_me:$LINENO: checking for $ac_func" >&5
3908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3909 if eval "test \"\${$as_ac_var+set}\" = set"; then
3910 echo $ECHO_N "(cached) $ECHO_C" >&6
3911 else
3912 cat >conftest.$ac_ext <<_ACEOF
3913 /* confdefs.h. */
3914 _ACEOF
3915 cat confdefs.h >>conftest.$ac_ext
3916 cat >>conftest.$ac_ext <<_ACEOF
3917 /* end confdefs.h. */
3918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3920 #define $ac_func innocuous_$ac_func
3922 /* System header to define __stub macros and hopefully few prototypes,
3923 which can conflict with char $ac_func (); below.
3924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3925 <limits.h> exists even on freestanding compilers. */
3927 #ifdef __STDC__
3928 # include <limits.h>
3929 #else
3930 # include <assert.h>
3931 #endif
3933 #undef $ac_func
3935 /* Override any gcc2 internal prototype to avoid an error. */
3936 #ifdef __cplusplus
3937 extern "C"
3939 #endif
3940 /* We use char because int might match the return type of a gcc2
3941 builtin and then its argument prototype would still apply. */
3942 char $ac_func ();
3943 /* The GNU C library defines this for functions which it implements
3944 to always fail with ENOSYS. Some functions are actually named
3945 something starting with __ and the normal name is an alias. */
3946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3947 choke me
3948 #else
3949 char (*f) () = $ac_func;
3950 #endif
3951 #ifdef __cplusplus
3953 #endif
3956 main ()
3958 return f != $ac_func;
3960 return 0;
3962 _ACEOF
3963 rm -f conftest.$ac_objext conftest$ac_exeext
3964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3965 (eval $ac_link) 2>conftest.er1
3966 ac_status=$?
3967 grep -v '^ *+' conftest.er1 >conftest.err
3968 rm -f conftest.er1
3969 cat conftest.err >&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } &&
3972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974 (eval $ac_try) 2>&5
3975 ac_status=$?
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; } &&
3978 { ac_try='test -s conftest$ac_exeext'
3979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3980 (eval $ac_try) 2>&5
3981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }; }; then
3984 eval "$as_ac_var=yes"
3985 else
3986 echo "$as_me: failed program was:" >&5
3987 sed 's/^/| /' conftest.$ac_ext >&5
3989 eval "$as_ac_var=no"
3991 rm -f conftest.err conftest.$ac_objext \
3992 conftest$ac_exeext conftest.$ac_ext
3994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3995 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3996 if test `eval echo '${'$as_ac_var'}'` = yes; then
3997 cat >>confdefs.h <<_ACEOF
3998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3999 _ACEOF
4002 done
4005 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4006 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4007 if test "${ac_cv_type_signal+set}" = set; then
4008 echo $ECHO_N "(cached) $ECHO_C" >&6
4009 else
4010 cat >conftest.$ac_ext <<_ACEOF
4011 /* confdefs.h. */
4012 _ACEOF
4013 cat confdefs.h >>conftest.$ac_ext
4014 cat >>conftest.$ac_ext <<_ACEOF
4015 /* end confdefs.h. */
4016 #include <sys/types.h>
4017 #include <signal.h>
4018 #ifdef signal
4019 # undef signal
4020 #endif
4021 #ifdef __cplusplus
4022 extern "C" void (*signal (int, void (*)(int)))(int);
4023 #else
4024 void (*signal ()) ();
4025 #endif
4028 main ()
4030 int i;
4032 return 0;
4034 _ACEOF
4035 rm -f conftest.$ac_objext
4036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4037 (eval $ac_compile) 2>conftest.er1
4038 ac_status=$?
4039 grep -v '^ *+' conftest.er1 >conftest.err
4040 rm -f conftest.er1
4041 cat conftest.err >&5
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); } &&
4044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4046 (eval $ac_try) 2>&5
4047 ac_status=$?
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); }; } &&
4050 { ac_try='test -s conftest.$ac_objext'
4051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4052 (eval $ac_try) 2>&5
4053 ac_status=$?
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); }; }; then
4056 ac_cv_type_signal=void
4057 else
4058 echo "$as_me: failed program was:" >&5
4059 sed 's/^/| /' conftest.$ac_ext >&5
4061 ac_cv_type_signal=int
4063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4065 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4066 echo "${ECHO_T}$ac_cv_type_signal" >&6
4068 cat >>confdefs.h <<_ACEOF
4069 #define RETSIGTYPE $ac_cv_type_signal
4070 _ACEOF
4075 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4076 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4077 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4079 else
4080 ac_check_lib_save_LIBS=$LIBS
4081 LIBS="-lnsl $LIBS"
4082 cat >conftest.$ac_ext <<_ACEOF
4083 /* confdefs.h. */
4084 _ACEOF
4085 cat confdefs.h >>conftest.$ac_ext
4086 cat >>conftest.$ac_ext <<_ACEOF
4087 /* end confdefs.h. */
4089 /* Override any gcc2 internal prototype to avoid an error. */
4090 #ifdef __cplusplus
4091 extern "C"
4092 #endif
4093 /* We use char because int might match the return type of a gcc2
4094 builtin and then its argument prototype would still apply. */
4095 char gethostbyname ();
4097 main ()
4099 gethostbyname ();
4101 return 0;
4103 _ACEOF
4104 rm -f conftest.$ac_objext conftest$ac_exeext
4105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4106 (eval $ac_link) 2>conftest.er1
4107 ac_status=$?
4108 grep -v '^ *+' conftest.er1 >conftest.err
4109 rm -f conftest.er1
4110 cat conftest.err >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } &&
4113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4115 (eval $ac_try) 2>&5
4116 ac_status=$?
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); }; } &&
4119 { ac_try='test -s conftest$ac_exeext'
4120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121 (eval $ac_try) 2>&5
4122 ac_status=$?
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); }; }; then
4125 ac_cv_lib_nsl_gethostbyname=yes
4126 else
4127 echo "$as_me: failed program was:" >&5
4128 sed 's/^/| /' conftest.$ac_ext >&5
4130 ac_cv_lib_nsl_gethostbyname=no
4132 rm -f conftest.err conftest.$ac_objext \
4133 conftest$ac_exeext conftest.$ac_ext
4134 LIBS=$ac_check_lib_save_LIBS
4136 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4137 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4138 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4139 cat >>confdefs.h <<_ACEOF
4140 #define HAVE_LIBNSL 1
4141 _ACEOF
4143 LIBS="-lnsl $LIBS"
4148 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4149 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4150 if test "${ac_cv_lib_socket_connect+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 else
4153 ac_check_lib_save_LIBS=$LIBS
4154 LIBS="-lsocket $LIBS"
4155 cat >conftest.$ac_ext <<_ACEOF
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 connect ();
4170 main ()
4172 connect ();
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>conftest.er1
4180 ac_status=$?
4181 grep -v '^ *+' conftest.er1 >conftest.err
4182 rm -f conftest.er1
4183 cat conftest.err >&5
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); } &&
4186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188 (eval $ac_try) 2>&5
4189 ac_status=$?
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); }; } &&
4192 { ac_try='test -s conftest$ac_exeext'
4193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194 (eval $ac_try) 2>&5
4195 ac_status=$?
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); }; }; then
4198 ac_cv_lib_socket_connect=yes
4199 else
4200 echo "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.$ac_ext >&5
4203 ac_cv_lib_socket_connect=no
4205 rm -f conftest.err conftest.$ac_objext \
4206 conftest$ac_exeext conftest.$ac_ext
4207 LIBS=$ac_check_lib_save_LIBS
4209 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4210 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4211 if test $ac_cv_lib_socket_connect = yes; then
4212 cat >>confdefs.h <<_ACEOF
4213 #define HAVE_LIBSOCKET 1
4214 _ACEOF
4216 LIBS="-lsocket $LIBS"
4221 echo "$as_me:$LINENO: checking for herror in -lresolv" >&5
4222 echo $ECHO_N "checking for herror in -lresolv... $ECHO_C" >&6
4223 if test "${ac_cv_lib_resolv_herror+set}" = set; then
4224 echo $ECHO_N "(cached) $ECHO_C" >&6
4225 else
4226 ac_check_lib_save_LIBS=$LIBS
4227 LIBS="-lresolv $LIBS"
4228 cat >conftest.$ac_ext <<_ACEOF
4229 /* confdefs.h. */
4230 _ACEOF
4231 cat confdefs.h >>conftest.$ac_ext
4232 cat >>conftest.$ac_ext <<_ACEOF
4233 /* end confdefs.h. */
4235 /* Override any gcc2 internal prototype to avoid an error. */
4236 #ifdef __cplusplus
4237 extern "C"
4238 #endif
4239 /* We use char because int might match the return type of a gcc2
4240 builtin and then its argument prototype would still apply. */
4241 char herror ();
4243 main ()
4245 herror ();
4247 return 0;
4249 _ACEOF
4250 rm -f conftest.$ac_objext conftest$ac_exeext
4251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4252 (eval $ac_link) 2>conftest.er1
4253 ac_status=$?
4254 grep -v '^ *+' conftest.er1 >conftest.err
4255 rm -f conftest.er1
4256 cat conftest.err >&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); } &&
4259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261 (eval $ac_try) 2>&5
4262 ac_status=$?
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); }; } &&
4265 { ac_try='test -s conftest$ac_exeext'
4266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267 (eval $ac_try) 2>&5
4268 ac_status=$?
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; }; then
4271 ac_cv_lib_resolv_herror=yes
4272 else
4273 echo "$as_me: failed program was:" >&5
4274 sed 's/^/| /' conftest.$ac_ext >&5
4276 ac_cv_lib_resolv_herror=no
4278 rm -f conftest.err conftest.$ac_objext \
4279 conftest$ac_exeext conftest.$ac_ext
4280 LIBS=$ac_check_lib_save_LIBS
4282 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_herror" >&5
4283 echo "${ECHO_T}$ac_cv_lib_resolv_herror" >&6
4284 if test $ac_cv_lib_resolv_herror = yes; then
4285 cat >>confdefs.h <<_ACEOF
4286 #define HAVE_LIBRESOLV 1
4287 _ACEOF
4289 LIBS="-lresolv $LIBS"
4294 gnutls="ok"
4295 gcrypt="ok"
4297 echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
4298 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
4299 if test "${ac_cv_lib_z_gzopen+set}" = set; then
4300 echo $ECHO_N "(cached) $ECHO_C" >&6
4301 else
4302 ac_check_lib_save_LIBS=$LIBS
4303 LIBS="-lz $LIBS"
4304 cat >conftest.$ac_ext <<_ACEOF
4305 /* confdefs.h. */
4306 _ACEOF
4307 cat confdefs.h >>conftest.$ac_ext
4308 cat >>conftest.$ac_ext <<_ACEOF
4309 /* end confdefs.h. */
4311 /* Override any gcc2 internal prototype to avoid an error. */
4312 #ifdef __cplusplus
4313 extern "C"
4314 #endif
4315 /* We use char because int might match the return type of a gcc2
4316 builtin and then its argument prototype would still apply. */
4317 char gzopen ();
4319 main ()
4321 gzopen ();
4323 return 0;
4325 _ACEOF
4326 rm -f conftest.$ac_objext conftest$ac_exeext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4328 (eval $ac_link) 2>conftest.er1
4329 ac_status=$?
4330 grep -v '^ *+' conftest.er1 >conftest.err
4331 rm -f conftest.er1
4332 cat conftest.err >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } &&
4335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337 (eval $ac_try) 2>&5
4338 ac_status=$?
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; } &&
4341 { ac_try='test -s conftest$ac_exeext'
4342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343 (eval $ac_try) 2>&5
4344 ac_status=$?
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4347 ac_cv_lib_z_gzopen=yes
4348 else
4349 echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4352 ac_cv_lib_z_gzopen=no
4354 rm -f conftest.err conftest.$ac_objext \
4355 conftest$ac_exeext conftest.$ac_ext
4356 LIBS=$ac_check_lib_save_LIBS
4358 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
4359 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
4360 if test $ac_cv_lib_z_gzopen = yes; then
4361 cat >>confdefs.h <<_ACEOF
4362 #define HAVE_LIBZ 1
4363 _ACEOF
4365 LIBS="-lz $LIBS"
4367 else
4368 gnutls="nope"
4372 # Check whether --enable-crypto or --disable-crypto was given.
4373 if test "${enable_crypto+set}" = set; then
4374 enableval="$enable_crypto"
4375 if test $enableval != yes; then
4376 gnutls="disabled"
4377 gcrypt="disabled"
4382 GNUTLS_MAN_STATUS="This copy of WMBiff was not compiled with GNUTLS."
4383 if test "$gnutls" = "ok"; then
4385 # Check whether --with-libgnutls-prefix or --without-libgnutls-prefix was given.
4386 if test "${with_libgnutls_prefix+set}" = set; then
4387 withval="$with_libgnutls_prefix"
4388 libgnutls_config_prefix="$withval"
4389 else
4390 libgnutls_config_prefix=""
4393 if test x$libgnutls_config_prefix != x ; then
4394 libgnutls_config_args="$libgnutls_config_args --prefix=$libgnutls_config_prefix"
4395 if test x${LIBGNUTLS_CONFIG+set} != xset ; then
4396 LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
4400 # Extract the first word of "libgnutls-config", so it can be a program name with args.
4401 set dummy libgnutls-config; ac_word=$2
4402 echo "$as_me:$LINENO: checking for $ac_word" >&5
4403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4404 if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
4405 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 else
4407 case $LIBGNUTLS_CONFIG in
4408 [\\/]* | ?:[\\/]*)
4409 ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 for as_dir in $PATH
4415 IFS=$as_save_IFS
4416 test -z "$as_dir" && as_dir=.
4417 for ac_exec_ext in '' $ac_executable_extensions; do
4418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4419 ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 break 2
4423 done
4424 done
4426 test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
4428 esac
4430 LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
4432 if test -n "$LIBGNUTLS_CONFIG"; then
4433 echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
4434 echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6
4435 else
4436 echo "$as_me:$LINENO: result: no" >&5
4437 echo "${ECHO_T}no" >&6
4440 min_libgnutls_version=1.0.4
4441 echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
4442 echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6
4443 no_libgnutls=""
4444 if test "$LIBGNUTLS_CONFIG" = "no" ; then
4445 no_libgnutls=yes
4446 else
4447 LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
4448 LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
4449 libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
4452 ac_save_CFLAGS="$CFLAGS"
4453 ac_save_LIBS="$LIBS"
4454 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
4455 LIBS="$LIBS $LIBGNUTLS_LIBS"
4456 rm -f conf.libgnutlstest
4457 if test "$cross_compiling" = yes; then
4458 echo $ac_n "cross compiling; assumed OK... $ac_c"
4459 else
4460 cat >conftest.$ac_ext <<_ACEOF
4461 /* confdefs.h. */
4462 _ACEOF
4463 cat confdefs.h >>conftest.$ac_ext
4464 cat >>conftest.$ac_ext <<_ACEOF
4465 /* end confdefs.h. */
4467 #include <stdio.h>
4468 #include <stdlib.h>
4469 #include <string.h>
4470 #include <gnutls/gnutls.h>
4473 main ()
4475 system ("touch conf.libgnutlstest");
4477 if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
4479 printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
4480 "$libgnutls_config_version", gnutls_check_version(NULL) );
4481 printf("*** was found! If libgnutls-config was correct, then it is best\n");
4482 printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
4483 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
4484 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
4485 printf("*** required on your system.\n");
4486 printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
4487 printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
4488 printf("*** before re-running configure\n");
4490 else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
4492 printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
4493 printf("*** library (version %s)\n", gnutls_check_version(NULL) );
4495 else
4497 if ( gnutls_check_version( "$min_libgnutls_version" ) )
4499 return 0;
4501 else
4503 printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
4504 gnutls_check_version(NULL) );
4505 printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
4506 "$min_libgnutls_version" );
4507 printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
4508 printf("*** \n");
4509 printf("*** If you have already installed a sufficiently new version, this error\n");
4510 printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
4511 printf("*** being found. The easiest way to fix this is to remove the old version\n");
4512 printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
4513 printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
4514 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
4515 printf("*** so that the correct libraries are found at run-time))\n");
4518 return 1;
4521 _ACEOF
4522 rm -f conftest$ac_exeext
4523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4524 (eval $ac_link) 2>&5
4525 ac_status=$?
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4529 (eval $ac_try) 2>&5
4530 ac_status=$?
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; }; then
4534 else
4535 echo "$as_me: program exited with status $ac_status" >&5
4536 echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4539 ( exit $ac_status )
4540 no_libgnutls=yes
4542 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4544 CFLAGS="$ac_save_CFLAGS"
4545 LIBS="$ac_save_LIBS"
4548 if test "x$no_libgnutls" = x ; then
4549 echo "$as_me:$LINENO: result: yes" >&5
4550 echo "${ECHO_T}yes" >&6
4551 LIBS="$LIBS $LIBGNUTLS_LIBS"
4552 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
4553 CPPFLAGS="$CPPFLAGS $LIBGNUTLS_CFLAGS"
4554 GNUTLS_COMMON_O="gnutls-common.o"
4555 GNUTLS_MAN_STATUS="This copy of WMBiff was compiled with GNUTLS."
4557 for ac_header in gnutls/gnutls.h
4559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4561 echo "$as_me:$LINENO: checking for $ac_header" >&5
4562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4564 echo $ECHO_N "(cached) $ECHO_C" >&6
4566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4567 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4568 else
4569 # Is the header compilable?
4570 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4571 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4572 cat >conftest.$ac_ext <<_ACEOF
4573 /* confdefs.h. */
4574 _ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h. */
4578 $ac_includes_default
4579 #include <$ac_header>
4580 _ACEOF
4581 rm -f conftest.$ac_objext
4582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4583 (eval $ac_compile) 2>conftest.er1
4584 ac_status=$?
4585 grep -v '^ *+' conftest.er1 >conftest.err
4586 rm -f conftest.er1
4587 cat conftest.err >&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); } &&
4590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592 (eval $ac_try) 2>&5
4593 ac_status=$?
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }; } &&
4596 { ac_try='test -s conftest.$ac_objext'
4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598 (eval $ac_try) 2>&5
4599 ac_status=$?
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; }; then
4602 ac_header_compiler=yes
4603 else
4604 echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.$ac_ext >&5
4607 ac_header_compiler=no
4609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4610 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4611 echo "${ECHO_T}$ac_header_compiler" >&6
4613 # Is the header present?
4614 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4615 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4616 cat >conftest.$ac_ext <<_ACEOF
4617 /* confdefs.h. */
4618 _ACEOF
4619 cat confdefs.h >>conftest.$ac_ext
4620 cat >>conftest.$ac_ext <<_ACEOF
4621 /* end confdefs.h. */
4622 #include <$ac_header>
4623 _ACEOF
4624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4626 ac_status=$?
4627 grep -v '^ *+' conftest.er1 >conftest.err
4628 rm -f conftest.er1
4629 cat conftest.err >&5
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); } >/dev/null; then
4632 if test -s conftest.err; then
4633 ac_cpp_err=$ac_c_preproc_warn_flag
4634 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4635 else
4636 ac_cpp_err=
4638 else
4639 ac_cpp_err=yes
4641 if test -z "$ac_cpp_err"; then
4642 ac_header_preproc=yes
4643 else
4644 echo "$as_me: failed program was:" >&5
4645 sed 's/^/| /' conftest.$ac_ext >&5
4647 ac_header_preproc=no
4649 rm -f conftest.err conftest.$ac_ext
4650 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4651 echo "${ECHO_T}$ac_header_preproc" >&6
4653 # So? What about this header?
4654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4655 yes:no: )
4656 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4657 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4659 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4660 ac_header_preproc=yes
4662 no:yes:* )
4663 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4664 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4665 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4666 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4667 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4668 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4669 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4670 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4672 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4673 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4674 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4676 cat <<\_ASBOX
4677 ## ------------------------------------------------- ##
4678 ## Report this to wmbiff-devel@lists.sourceforge.net ##
4679 ## ------------------------------------------------- ##
4680 _ASBOX
4682 sed "s/^/$as_me: WARNING: /" >&2
4684 esac
4685 echo "$as_me:$LINENO: checking for $ac_header" >&5
4686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4688 echo $ECHO_N "(cached) $ECHO_C" >&6
4689 else
4690 eval "$as_ac_Header=\$ac_header_preproc"
4692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4693 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4697 cat >>confdefs.h <<_ACEOF
4698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4699 _ACEOF
4703 done
4705 else
4706 if test -f conf.libgnutlstest ; then
4708 else
4709 echo "$as_me:$LINENO: result: no" >&5
4710 echo "${ECHO_T}no" >&6
4712 if test "$LIBGNUTLS_CONFIG" = "no" ; then
4713 echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
4714 echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
4715 echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
4716 echo "*** full path to libgnutls-config."
4717 else
4718 if test -f conf.libgnutlstest ; then
4720 else
4721 echo "*** Could not run libgnutls test program, checking why..."
4722 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
4723 LIBS="$LIBS $LIBGNUTLS_LIBS"
4724 cat >conftest.$ac_ext <<_ACEOF
4725 /* confdefs.h. */
4726 _ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h. */
4731 #include <stdio.h>
4732 #include <stdlib.h>
4733 #include <string.h>
4734 #include <gnutls/gnutls.h>
4737 main ()
4739 return !!gnutls_check_version(NULL);
4741 return 0;
4743 _ACEOF
4744 rm -f conftest.$ac_objext conftest$ac_exeext
4745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4746 (eval $ac_link) 2>conftest.er1
4747 ac_status=$?
4748 grep -v '^ *+' conftest.er1 >conftest.err
4749 rm -f conftest.er1
4750 cat conftest.err >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } &&
4753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755 (eval $ac_try) 2>&5
4756 ac_status=$?
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; } &&
4759 { ac_try='test -s conftest$ac_exeext'
4760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4761 (eval $ac_try) 2>&5
4762 ac_status=$?
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); }; }; then
4765 echo "*** The test program compiled, but did not run. This usually means"
4766 echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
4767 echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
4768 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
4769 echo "*** to the installed location Also, make sure you have run ldconfig if that"
4770 echo "*** is required on your system"
4771 echo "***"
4772 echo "*** If you have an old version installed, it is best to remove it, although"
4773 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
4774 echo "***"
4775 else
4776 echo "$as_me: failed program was:" >&5
4777 sed 's/^/| /' conftest.$ac_ext >&5
4779 echo "*** The test program failed to compile or link. See the file config.log for the"
4780 echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
4781 echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
4782 echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
4784 rm -f conftest.err conftest.$ac_objext \
4785 conftest$ac_exeext conftest.$ac_ext
4786 CFLAGS="$ac_save_CFLAGS"
4787 LIBS="$ac_save_LIBS"
4790 LIBGNUTLS_CFLAGS=""
4791 LIBGNUTLS_LIBS=""
4792 echo GNUTLS can be found at ftp://gnutls.hellug.gr/pub/gnutls
4794 rm -f conf.libgnutlstest
4798 else
4799 echo "$as_me:$LINENO: result: GNUTLS support requires libz.a and libgdbm.a" >&5
4800 echo "${ECHO_T}GNUTLS support requires libz.a and libgdbm.a" >&6
4803 GCRYPT_MAN_STATUS="This copy of WMBiff was not compiled with gcrypt."
4804 if test "$gcrypt" = "ok"; then
4806 # Check whether --with-libgcrypt-prefix or --without-libgcrypt-prefix was given.
4807 if test "${with_libgcrypt_prefix+set}" = set; then
4808 withval="$with_libgcrypt_prefix"
4809 libgcrypt_config_prefix="$withval"
4810 else
4811 libgcrypt_config_prefix=""
4813 # Check whether --enable-libgcrypttest or --disable-libgcrypttest was given.
4814 if test "${enable_libgcrypttest+set}" = set; then
4815 enableval="$enable_libgcrypttest"
4817 else
4818 enable_libgcrypttest=yes
4821 if test x$libgcrypt_config_prefix != x ; then
4822 libgcrypt_config_args="$libgcrypt_config_args --prefix=$libgcrypt_config_prefix"
4823 if test x${LIBGCRYPT_CONFIG+set} != xset ; then
4824 LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
4828 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
4829 set dummy libgcrypt-config; ac_word=$2
4830 echo "$as_me:$LINENO: checking for $ac_word" >&5
4831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4832 if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
4834 else
4835 case $LIBGCRYPT_CONFIG in
4836 [\\/]* | ?:[\\/]*)
4837 ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
4840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841 for as_dir in $PATH
4843 IFS=$as_save_IFS
4844 test -z "$as_dir" && as_dir=.
4845 for ac_exec_ext in '' $ac_executable_extensions; do
4846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4847 ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4849 break 2
4851 done
4852 done
4854 test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
4856 esac
4858 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
4860 if test -n "$LIBGCRYPT_CONFIG"; then
4861 echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
4862 echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6
4863 else
4864 echo "$as_me:$LINENO: result: no" >&5
4865 echo "${ECHO_T}no" >&6
4868 min_libgcrypt_version=1.1.90
4869 echo "$as_me:$LINENO: checking for libgcrypt - version >= $min_libgcrypt_version" >&5
4870 echo $ECHO_N "checking for libgcrypt - version >= $min_libgcrypt_version... $ECHO_C" >&6
4871 no_libgcrypt=""
4872 if test "$LIBGCRYPT_CONFIG" = "no" ; then
4873 no_libgcrypt=yes
4874 else
4875 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG $libgcrypt_config_args --cflags`
4876 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG $libgcrypt_config_args --libs`
4877 libgcrypt_config_version=`$LIBGCRYPT_CONFIG $libgcrypt_config_args --version`
4878 if test "x$enable_libgcrypttest" = "xyes" ; then
4879 ac_save_CFLAGS="$CFLAGS"
4880 ac_save_LIBS="$LIBS"
4881 CFLAGS="$CFLAGS $LIBGCRYPT_CFLAGS"
4882 LIBS="$LIBS $LIBGCRYPT_LIBS"
4883 rm -f conf.libgcrypttest
4884 if test "$cross_compiling" = yes; then
4885 echo $ac_n "cross compiling; assumed OK... $ac_c"
4886 else
4887 cat >conftest.$ac_ext <<_ACEOF
4888 /* confdefs.h. */
4889 _ACEOF
4890 cat confdefs.h >>conftest.$ac_ext
4891 cat >>conftest.$ac_ext <<_ACEOF
4892 /* end confdefs.h. */
4894 #include <stdio.h>
4895 #include <stdlib.h>
4896 #include <string.h>
4897 #include <gcrypt.h>
4900 main ()
4902 system ("touch conf.libgcrypttest");
4904 if( strcmp( gcry_check_version(NULL), "$libgcrypt_config_version" ) )
4906 printf("\n*** 'libgcrypt-config --version' returned %s, but LIBGCRYPT (%s)\n",
4907 "$libgcrypt_config_version", gcry_check_version(NULL) );
4908 printf("*** was found! If libgcrypt-config was correct, then it is best\n");
4909 printf("*** to remove the old version of LIBGCRYPT. You may also be able to fix the error\n");
4910 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
4911 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
4912 printf("*** required on your system.\n");
4913 printf("*** If libgcrypt-config was wrong, set the environment variable LIBGCRYPT_CONFIG\n");
4914 printf("*** to point to the correct copy of libgcrypt-config, and remove the file config.cache\n");
4915 printf("*** before re-running configure\n");
4917 else if ( strcmp(gcry_check_version(NULL), GCRYPT_VERSION ) )
4919 printf("\n*** LIBGCRYPT header file (version %s) does not match\n", GCRYPT_VERSION);
4920 printf("*** library (version %s)\n", gcry_check_version(NULL) );
4922 else
4924 if ( gcry_check_version( "$min_libgcrypt_version" ) )
4926 return 0;
4928 else
4930 printf("no\n*** An old version of LIBGCRYPT (%s) was found.\n",
4931 gcry_check_version(NULL) );
4932 printf("*** You need a version of LIBGCRYPT newer than %s. The latest version of\n",
4933 "$min_libgcrypt_version" );
4934 printf("*** LIBGCRYPT is always available from ftp://ftp.gnupg.org/pub/libgcrypt/gnupg.\n");
4935 printf("*** (It is distributed along with GnuPG).\n");
4936 printf("*** \n");
4937 printf("*** If you have already installed a sufficiently new version, this error\n");
4938 printf("*** probably means that the wrong copy of the libgcrypt-config shell script is\n");
4939 printf("*** being found. The easiest way to fix this is to remove the old version\n");
4940 printf("*** of LIBGCRYPT, but you can also set the LIBGCRYPT_CONFIG environment to point to the\n");
4941 printf("*** correct copy of libgcrypt-config. (In this case, you will have to\n");
4942 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
4943 printf("*** so that the correct libraries are found at run-time))\n");
4946 return 1;
4949 _ACEOF
4950 rm -f conftest$ac_exeext
4951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4952 (eval $ac_link) 2>&5
4953 ac_status=$?
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957 (eval $ac_try) 2>&5
4958 ac_status=$?
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }; }; then
4962 else
4963 echo "$as_me: program exited with status $ac_status" >&5
4964 echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.$ac_ext >&5
4967 ( exit $ac_status )
4968 no_libgcrypt=yes
4970 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4972 CFLAGS="$ac_save_CFLAGS"
4973 LIBS="$ac_save_LIBS"
4976 if test "x$no_libgcrypt" = x ; then
4977 echo "$as_me:$LINENO: result: yes" >&5
4978 echo "${ECHO_T}yes" >&6
4979 CFLAGS="$CFLAGS $LIBGCRYPT_CFLAGS"
4980 CPPFLAGS="$CPPFLAGS $LIBGCRYPT_CFLAGS"
4981 GCRYPT_MAN_STATUS="This copy of WMBiff was compiled with gcrypt."
4983 for ac_header in gcrypt.h
4985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4987 echo "$as_me:$LINENO: checking for $ac_header" >&5
4988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
4992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4994 else
4995 # Is the header compilable?
4996 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4997 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4998 cat >conftest.$ac_ext <<_ACEOF
4999 /* confdefs.h. */
5000 _ACEOF
5001 cat confdefs.h >>conftest.$ac_ext
5002 cat >>conftest.$ac_ext <<_ACEOF
5003 /* end confdefs.h. */
5004 $ac_includes_default
5005 #include <$ac_header>
5006 _ACEOF
5007 rm -f conftest.$ac_objext
5008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5009 (eval $ac_compile) 2>conftest.er1
5010 ac_status=$?
5011 grep -v '^ *+' conftest.er1 >conftest.err
5012 rm -f conftest.er1
5013 cat conftest.err >&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); } &&
5016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018 (eval $ac_try) 2>&5
5019 ac_status=$?
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; } &&
5022 { ac_try='test -s conftest.$ac_objext'
5023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024 (eval $ac_try) 2>&5
5025 ac_status=$?
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; }; then
5028 ac_header_compiler=yes
5029 else
5030 echo "$as_me: failed program was:" >&5
5031 sed 's/^/| /' conftest.$ac_ext >&5
5033 ac_header_compiler=no
5035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5036 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5037 echo "${ECHO_T}$ac_header_compiler" >&6
5039 # Is the header present?
5040 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5041 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5042 cat >conftest.$ac_ext <<_ACEOF
5043 /* confdefs.h. */
5044 _ACEOF
5045 cat confdefs.h >>conftest.$ac_ext
5046 cat >>conftest.$ac_ext <<_ACEOF
5047 /* end confdefs.h. */
5048 #include <$ac_header>
5049 _ACEOF
5050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5052 ac_status=$?
5053 grep -v '^ *+' conftest.er1 >conftest.err
5054 rm -f conftest.er1
5055 cat conftest.err >&5
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); } >/dev/null; then
5058 if test -s conftest.err; then
5059 ac_cpp_err=$ac_c_preproc_warn_flag
5060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5061 else
5062 ac_cpp_err=
5064 else
5065 ac_cpp_err=yes
5067 if test -z "$ac_cpp_err"; then
5068 ac_header_preproc=yes
5069 else
5070 echo "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.$ac_ext >&5
5073 ac_header_preproc=no
5075 rm -f conftest.err conftest.$ac_ext
5076 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5077 echo "${ECHO_T}$ac_header_preproc" >&6
5079 # So? What about this header?
5080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5081 yes:no: )
5082 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5083 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5085 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5086 ac_header_preproc=yes
5088 no:yes:* )
5089 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5090 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5091 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5092 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5093 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5094 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5095 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5096 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5098 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5099 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5100 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5102 cat <<\_ASBOX
5103 ## ------------------------------------------------- ##
5104 ## Report this to wmbiff-devel@lists.sourceforge.net ##
5105 ## ------------------------------------------------- ##
5106 _ASBOX
5108 sed "s/^/$as_me: WARNING: /" >&2
5110 esac
5111 echo "$as_me:$LINENO: checking for $ac_header" >&5
5112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 else
5116 eval "$as_ac_Header=\$ac_header_preproc"
5118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5119 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5123 cat >>confdefs.h <<_ACEOF
5124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5125 _ACEOF
5129 done
5131 else
5132 if test -f conf.libgcrypttest ; then
5134 else
5135 echo "$as_me:$LINENO: result: no" >&5
5136 echo "${ECHO_T}no" >&6
5138 if test "$LIBGCRYPT_CONFIG" = "no" ; then
5139 echo "*** The libgcrypt-config script installed by LIBGCRYPT could not be found"
5140 echo "*** If LIBGCRYPT was installed in PREFIX, make sure PREFIX/bin is in"
5141 echo "*** your path, or set the LIBGCRYPT_CONFIG environment variable to the"
5142 echo "*** full path to libgcrypt-config."
5143 else
5144 if test -f conf.libgcrypttest ; then
5146 else
5147 echo "*** Could not run libgcrypt test program, checking why..."
5148 CFLAGS="$CFLAGS $LIBGCRYPT_CFLAGS"
5149 LIBS="$LIBS $LIBGCRYPT_LIBS"
5150 cat >conftest.$ac_ext <<_ACEOF
5151 /* confdefs.h. */
5152 _ACEOF
5153 cat confdefs.h >>conftest.$ac_ext
5154 cat >>conftest.$ac_ext <<_ACEOF
5155 /* end confdefs.h. */
5157 #include <stdio.h>
5158 #include <stdlib.h>
5159 #include <string.h>
5160 #include <gcrypt.h>
5163 main ()
5165 return !!gcry_check_version(NULL);
5167 return 0;
5169 _ACEOF
5170 rm -f conftest.$ac_objext conftest$ac_exeext
5171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5172 (eval $ac_link) 2>conftest.er1
5173 ac_status=$?
5174 grep -v '^ *+' conftest.er1 >conftest.err
5175 rm -f conftest.er1
5176 cat conftest.err >&5
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); } &&
5179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5181 (eval $ac_try) 2>&5
5182 ac_status=$?
5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); }; } &&
5185 { ac_try='test -s conftest$ac_exeext'
5186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5187 (eval $ac_try) 2>&5
5188 ac_status=$?
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); }; }; then
5191 echo "*** The test program compiled, but did not run. This usually means"
5192 echo "*** that the run-time linker is not finding LIBGCRYPT or finding the wrong"
5193 echo "*** version of LIBGCRYPT. If it is not finding LIBGCRYPT, you'll need to set your"
5194 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
5195 echo "*** to the installed location Also, make sure you have run ldconfig if that"
5196 echo "*** is required on your system"
5197 echo "***"
5198 echo "*** If you have an old version installed, it is best to remove it, although"
5199 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
5200 echo "***"
5201 else
5202 echo "$as_me: failed program was:" >&5
5203 sed 's/^/| /' conftest.$ac_ext >&5
5205 echo "*** The test program failed to compile or link. See the file config.log for the"
5206 echo "*** exact error that occured. This usually means LIBGCRYPT was incorrectly installed"
5207 echo "*** or that you have moved LIBGCRYPT since it was installed. In the latter case, you"
5208 echo "*** may want to edit the libgcrypt-config script: $LIBGCRYPT_CONFIG"
5210 rm -f conftest.err conftest.$ac_objext \
5211 conftest$ac_exeext conftest.$ac_ext
5212 CFLAGS="$ac_save_CFLAGS"
5213 LIBS="$ac_save_LIBS"
5216 LIBGCRYPT_CFLAGS=""
5217 LIBGCRYPT_LIBS=""
5218 echo libgcrypt can be found at ftp://ftp.gnupg.org/pub/gcrypt/alpha/libgcrypt/
5222 rm -f conf.libgcrypttest
5224 else
5225 echo "$as_me:$LINENO: result: GCRYPT disabled." >&5
5226 echo "${ECHO_T}GCRYPT disabled." >&6
5236 for ac_header in regex.h
5238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5240 echo "$as_me:$LINENO: checking for $ac_header" >&5
5241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5243 echo $ECHO_N "(cached) $ECHO_C" >&6
5245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5247 else
5248 # Is the header compilable?
5249 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5250 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5251 cat >conftest.$ac_ext <<_ACEOF
5252 /* confdefs.h. */
5253 _ACEOF
5254 cat confdefs.h >>conftest.$ac_ext
5255 cat >>conftest.$ac_ext <<_ACEOF
5256 /* end confdefs.h. */
5257 $ac_includes_default
5258 #include <$ac_header>
5259 _ACEOF
5260 rm -f conftest.$ac_objext
5261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5262 (eval $ac_compile) 2>conftest.er1
5263 ac_status=$?
5264 grep -v '^ *+' conftest.er1 >conftest.err
5265 rm -f conftest.er1
5266 cat conftest.err >&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); } &&
5269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271 (eval $ac_try) 2>&5
5272 ac_status=$?
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }; } &&
5275 { ac_try='test -s conftest.$ac_objext'
5276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277 (eval $ac_try) 2>&5
5278 ac_status=$?
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }; }; then
5281 ac_header_compiler=yes
5282 else
5283 echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5286 ac_header_compiler=no
5288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5289 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5290 echo "${ECHO_T}$ac_header_compiler" >&6
5292 # Is the header present?
5293 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5295 cat >conftest.$ac_ext <<_ACEOF
5296 /* confdefs.h. */
5297 _ACEOF
5298 cat confdefs.h >>conftest.$ac_ext
5299 cat >>conftest.$ac_ext <<_ACEOF
5300 /* end confdefs.h. */
5301 #include <$ac_header>
5302 _ACEOF
5303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5305 ac_status=$?
5306 grep -v '^ *+' conftest.er1 >conftest.err
5307 rm -f conftest.er1
5308 cat conftest.err >&5
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); } >/dev/null; then
5311 if test -s conftest.err; then
5312 ac_cpp_err=$ac_c_preproc_warn_flag
5313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5314 else
5315 ac_cpp_err=
5317 else
5318 ac_cpp_err=yes
5320 if test -z "$ac_cpp_err"; then
5321 ac_header_preproc=yes
5322 else
5323 echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5326 ac_header_preproc=no
5328 rm -f conftest.err conftest.$ac_ext
5329 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5330 echo "${ECHO_T}$ac_header_preproc" >&6
5332 # So? What about this header?
5333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5334 yes:no: )
5335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5338 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5339 ac_header_preproc=yes
5341 no:yes:* )
5342 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5344 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5345 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5346 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5347 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5348 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5349 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5352 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5353 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5355 cat <<\_ASBOX
5356 ## ------------------------------------------------- ##
5357 ## Report this to wmbiff-devel@lists.sourceforge.net ##
5358 ## ------------------------------------------------- ##
5359 _ASBOX
5361 sed "s/^/$as_me: WARNING: /" >&2
5363 esac
5364 echo "$as_me:$LINENO: checking for $ac_header" >&5
5365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5368 else
5369 eval "$as_ac_Header=\$ac_header_preproc"
5371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5376 cat >>confdefs.h <<_ACEOF
5377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5378 _ACEOF
5382 done
5384 echo "$as_me:$LINENO: checking for X" >&5
5385 echo $ECHO_N "checking for X... $ECHO_C" >&6
5388 # Check whether --with-x or --without-x was given.
5389 if test "${with_x+set}" = set; then
5390 withval="$with_x"
5393 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5394 if test "x$with_x" = xno; then
5395 # The user explicitly disabled X.
5396 have_x=disabled
5397 else
5398 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5399 # Both variables are already set.
5400 have_x=yes
5401 else
5402 if test "${ac_cv_have_x+set}" = set; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5404 else
5405 # One or both of the vars are not set, and there is no cached value.
5406 ac_x_includes=no ac_x_libraries=no
5407 rm -fr conftest.dir
5408 if mkdir conftest.dir; then
5409 cd conftest.dir
5410 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5411 cat >Imakefile <<'_ACEOF'
5412 acfindx:
5413 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5414 _ACEOF
5415 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5416 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5417 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5418 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5419 for ac_extension in a so sl; do
5420 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5421 test -f $ac_im_libdir/libX11.$ac_extension; then
5422 ac_im_usrlibdir=$ac_im_libdir; break
5424 done
5425 # Screen out bogus values from the imake configuration. They are
5426 # bogus both because they are the default anyway, and because
5427 # using them would break gcc on systems where it needs fixed includes.
5428 case $ac_im_incroot in
5429 /usr/include) ;;
5430 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5431 esac
5432 case $ac_im_usrlibdir in
5433 /usr/lib | /lib) ;;
5434 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5435 esac
5437 cd ..
5438 rm -fr conftest.dir
5441 # Standard set of common directories for X headers.
5442 # Check X11 before X11Rn because it is often a symlink to the current release.
5443 ac_x_header_dirs='
5444 /usr/X11/include
5445 /usr/X11R6/include
5446 /usr/X11R5/include
5447 /usr/X11R4/include
5449 /usr/include/X11
5450 /usr/include/X11R6
5451 /usr/include/X11R5
5452 /usr/include/X11R4
5454 /usr/local/X11/include
5455 /usr/local/X11R6/include
5456 /usr/local/X11R5/include
5457 /usr/local/X11R4/include
5459 /usr/local/include/X11
5460 /usr/local/include/X11R6
5461 /usr/local/include/X11R5
5462 /usr/local/include/X11R4
5464 /usr/X386/include
5465 /usr/x386/include
5466 /usr/XFree86/include/X11
5468 /usr/include
5469 /usr/local/include
5470 /usr/unsupported/include
5471 /usr/athena/include
5472 /usr/local/x11r5/include
5473 /usr/lpp/Xamples/include
5475 /usr/openwin/include
5476 /usr/openwin/share/include'
5478 if test "$ac_x_includes" = no; then
5479 # Guess where to find include files, by looking for Xlib.h.
5480 # First, try using that file with no special directory specified.
5481 cat >conftest.$ac_ext <<_ACEOF
5482 /* confdefs.h. */
5483 _ACEOF
5484 cat confdefs.h >>conftest.$ac_ext
5485 cat >>conftest.$ac_ext <<_ACEOF
5486 /* end confdefs.h. */
5487 #include <X11/Xlib.h>
5488 _ACEOF
5489 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5491 ac_status=$?
5492 grep -v '^ *+' conftest.er1 >conftest.err
5493 rm -f conftest.er1
5494 cat conftest.err >&5
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); } >/dev/null; then
5497 if test -s conftest.err; then
5498 ac_cpp_err=$ac_c_preproc_warn_flag
5499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5500 else
5501 ac_cpp_err=
5503 else
5504 ac_cpp_err=yes
5506 if test -z "$ac_cpp_err"; then
5507 # We can compile using X headers with no special include directory.
5508 ac_x_includes=
5509 else
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5513 for ac_dir in $ac_x_header_dirs; do
5514 if test -r "$ac_dir/X11/Xlib.h"; then
5515 ac_x_includes=$ac_dir
5516 break
5518 done
5520 rm -f conftest.err conftest.$ac_ext
5521 fi # $ac_x_includes = no
5523 if test "$ac_x_libraries" = no; then
5524 # Check for the libraries.
5525 # See if we find them without any special options.
5526 # Don't add to $LIBS permanently.
5527 ac_save_LIBS=$LIBS
5528 LIBS="-lX11 $LIBS"
5529 cat >conftest.$ac_ext <<_ACEOF
5530 /* confdefs.h. */
5531 _ACEOF
5532 cat confdefs.h >>conftest.$ac_ext
5533 cat >>conftest.$ac_ext <<_ACEOF
5534 /* end confdefs.h. */
5535 #include <X11/Xlib.h>
5537 main ()
5539 XrmInitialize ()
5541 return 0;
5543 _ACEOF
5544 rm -f conftest.$ac_objext conftest$ac_exeext
5545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5546 (eval $ac_link) 2>conftest.er1
5547 ac_status=$?
5548 grep -v '^ *+' conftest.er1 >conftest.err
5549 rm -f conftest.er1
5550 cat conftest.err >&5
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); } &&
5553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555 (eval $ac_try) 2>&5
5556 ac_status=$?
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); }; } &&
5559 { ac_try='test -s conftest$ac_exeext'
5560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5561 (eval $ac_try) 2>&5
5562 ac_status=$?
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); }; }; then
5565 LIBS=$ac_save_LIBS
5566 # We can link X programs with no special library path.
5567 ac_x_libraries=
5568 else
5569 echo "$as_me: failed program was:" >&5
5570 sed 's/^/| /' conftest.$ac_ext >&5
5572 LIBS=$ac_save_LIBS
5573 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5575 # Don't even attempt the hair of trying to link an X program!
5576 for ac_extension in a so sl; do
5577 if test -r $ac_dir/libX11.$ac_extension; then
5578 ac_x_libraries=$ac_dir
5579 break 2
5581 done
5582 done
5584 rm -f conftest.err conftest.$ac_objext \
5585 conftest$ac_exeext conftest.$ac_ext
5586 fi # $ac_x_libraries = no
5588 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5589 # Didn't find X anywhere. Cache the known absence of X.
5590 ac_cv_have_x="have_x=no"
5591 else
5592 # Record where we found X for the cache.
5593 ac_cv_have_x="have_x=yes \
5594 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5599 eval "$ac_cv_have_x"
5600 fi # $with_x != no
5602 if test "$have_x" != yes; then
5603 echo "$as_me:$LINENO: result: $have_x" >&5
5604 echo "${ECHO_T}$have_x" >&6
5605 no_x=yes
5606 else
5607 # If each of the values was on the command line, it overrides each guess.
5608 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5609 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5610 # Update the cache value to reflect the command line values.
5611 ac_cv_have_x="have_x=yes \
5612 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5613 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5614 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5617 if test "$no_x" = yes; then
5618 # Not all programs may use this symbol, but it does not hurt to define it.
5620 cat >>confdefs.h <<\_ACEOF
5621 #define X_DISPLAY_MISSING 1
5622 _ACEOF
5624 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5625 else
5626 if test -n "$x_includes"; then
5627 X_CFLAGS="$X_CFLAGS -I$x_includes"
5630 # It would also be nice to do this for all -L options, not just this one.
5631 if test -n "$x_libraries"; then
5632 X_LIBS="$X_LIBS -L$x_libraries"
5633 # For Solaris; some versions of Sun CC require a space after -R and
5634 # others require no space. Words are not sufficient . . . .
5635 case `(uname -sr) 2>/dev/null` in
5636 "SunOS 5"*)
5637 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5638 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5639 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5640 cat >conftest.$ac_ext <<_ACEOF
5641 /* confdefs.h. */
5642 _ACEOF
5643 cat confdefs.h >>conftest.$ac_ext
5644 cat >>conftest.$ac_ext <<_ACEOF
5645 /* end confdefs.h. */
5648 main ()
5652 return 0;
5654 _ACEOF
5655 rm -f conftest.$ac_objext conftest$ac_exeext
5656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5657 (eval $ac_link) 2>conftest.er1
5658 ac_status=$?
5659 grep -v '^ *+' conftest.er1 >conftest.err
5660 rm -f conftest.er1
5661 cat conftest.err >&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } &&
5664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5666 (eval $ac_try) 2>&5
5667 ac_status=$?
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); }; } &&
5670 { ac_try='test -s conftest$ac_exeext'
5671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672 (eval $ac_try) 2>&5
5673 ac_status=$?
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; }; then
5676 ac_R_nospace=yes
5677 else
5678 echo "$as_me: failed program was:" >&5
5679 sed 's/^/| /' conftest.$ac_ext >&5
5681 ac_R_nospace=no
5683 rm -f conftest.err conftest.$ac_objext \
5684 conftest$ac_exeext conftest.$ac_ext
5685 if test $ac_R_nospace = yes; then
5686 echo "$as_me:$LINENO: result: no" >&5
5687 echo "${ECHO_T}no" >&6
5688 X_LIBS="$X_LIBS -R$x_libraries"
5689 else
5690 LIBS="$ac_xsave_LIBS -R $x_libraries"
5691 cat >conftest.$ac_ext <<_ACEOF
5692 /* confdefs.h. */
5693 _ACEOF
5694 cat confdefs.h >>conftest.$ac_ext
5695 cat >>conftest.$ac_ext <<_ACEOF
5696 /* end confdefs.h. */
5699 main ()
5703 return 0;
5705 _ACEOF
5706 rm -f conftest.$ac_objext conftest$ac_exeext
5707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5708 (eval $ac_link) 2>conftest.er1
5709 ac_status=$?
5710 grep -v '^ *+' conftest.er1 >conftest.err
5711 rm -f conftest.er1
5712 cat conftest.err >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); } &&
5715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717 (eval $ac_try) 2>&5
5718 ac_status=$?
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }; } &&
5721 { ac_try='test -s conftest$ac_exeext'
5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723 (eval $ac_try) 2>&5
5724 ac_status=$?
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; }; then
5727 ac_R_space=yes
5728 else
5729 echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5732 ac_R_space=no
5734 rm -f conftest.err conftest.$ac_objext \
5735 conftest$ac_exeext conftest.$ac_ext
5736 if test $ac_R_space = yes; then
5737 echo "$as_me:$LINENO: result: yes" >&5
5738 echo "${ECHO_T}yes" >&6
5739 X_LIBS="$X_LIBS -R $x_libraries"
5740 else
5741 echo "$as_me:$LINENO: result: neither works" >&5
5742 echo "${ECHO_T}neither works" >&6
5745 LIBS=$ac_xsave_LIBS
5746 esac
5749 # Check for system-dependent libraries X programs must link with.
5750 # Do this before checking for the system-independent R6 libraries
5751 # (-lICE), since we may need -lsocket or whatever for X linking.
5753 if test "$ISC" = yes; then
5754 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5755 else
5756 # Martyn Johnson says this is needed for Ultrix, if the X
5757 # libraries were built with DECnet support. And Karl Berry says
5758 # the Alpha needs dnet_stub (dnet does not exist).
5759 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5760 cat >conftest.$ac_ext <<_ACEOF
5761 /* confdefs.h. */
5762 _ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5767 /* Override any gcc2 internal prototype to avoid an error. */
5768 #ifdef __cplusplus
5769 extern "C"
5770 #endif
5771 /* We use char because int might match the return type of a gcc2
5772 builtin and then its argument prototype would still apply. */
5773 char XOpenDisplay ();
5775 main ()
5777 XOpenDisplay ();
5779 return 0;
5781 _ACEOF
5782 rm -f conftest.$ac_objext conftest$ac_exeext
5783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5784 (eval $ac_link) 2>conftest.er1
5785 ac_status=$?
5786 grep -v '^ *+' conftest.er1 >conftest.err
5787 rm -f conftest.er1
5788 cat conftest.err >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } &&
5791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793 (eval $ac_try) 2>&5
5794 ac_status=$?
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); }; } &&
5797 { ac_try='test -s conftest$ac_exeext'
5798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799 (eval $ac_try) 2>&5
5800 ac_status=$?
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); }; }; then
5804 else
5805 echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.$ac_ext >&5
5808 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5809 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5810 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5812 else
5813 ac_check_lib_save_LIBS=$LIBS
5814 LIBS="-ldnet $LIBS"
5815 cat >conftest.$ac_ext <<_ACEOF
5816 /* confdefs.h. */
5817 _ACEOF
5818 cat confdefs.h >>conftest.$ac_ext
5819 cat >>conftest.$ac_ext <<_ACEOF
5820 /* end confdefs.h. */
5822 /* Override any gcc2 internal prototype to avoid an error. */
5823 #ifdef __cplusplus
5824 extern "C"
5825 #endif
5826 /* We use char because int might match the return type of a gcc2
5827 builtin and then its argument prototype would still apply. */
5828 char dnet_ntoa ();
5830 main ()
5832 dnet_ntoa ();
5834 return 0;
5836 _ACEOF
5837 rm -f conftest.$ac_objext conftest$ac_exeext
5838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5839 (eval $ac_link) 2>conftest.er1
5840 ac_status=$?
5841 grep -v '^ *+' conftest.er1 >conftest.err
5842 rm -f conftest.er1
5843 cat conftest.err >&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); } &&
5846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5848 (eval $ac_try) 2>&5
5849 ac_status=$?
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); }; } &&
5852 { ac_try='test -s conftest$ac_exeext'
5853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5854 (eval $ac_try) 2>&5
5855 ac_status=$?
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); }; }; then
5858 ac_cv_lib_dnet_dnet_ntoa=yes
5859 else
5860 echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.$ac_ext >&5
5863 ac_cv_lib_dnet_dnet_ntoa=no
5865 rm -f conftest.err conftest.$ac_objext \
5866 conftest$ac_exeext conftest.$ac_ext
5867 LIBS=$ac_check_lib_save_LIBS
5869 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5870 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5871 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5872 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5875 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5876 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5877 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5878 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
5880 else
5881 ac_check_lib_save_LIBS=$LIBS
5882 LIBS="-ldnet_stub $LIBS"
5883 cat >conftest.$ac_ext <<_ACEOF
5884 /* confdefs.h. */
5885 _ACEOF
5886 cat confdefs.h >>conftest.$ac_ext
5887 cat >>conftest.$ac_ext <<_ACEOF
5888 /* end confdefs.h. */
5890 /* Override any gcc2 internal prototype to avoid an error. */
5891 #ifdef __cplusplus
5892 extern "C"
5893 #endif
5894 /* We use char because int might match the return type of a gcc2
5895 builtin and then its argument prototype would still apply. */
5896 char dnet_ntoa ();
5898 main ()
5900 dnet_ntoa ();
5902 return 0;
5904 _ACEOF
5905 rm -f conftest.$ac_objext conftest$ac_exeext
5906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5907 (eval $ac_link) 2>conftest.er1
5908 ac_status=$?
5909 grep -v '^ *+' conftest.er1 >conftest.err
5910 rm -f conftest.er1
5911 cat conftest.err >&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } &&
5914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5916 (eval $ac_try) 2>&5
5917 ac_status=$?
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); }; } &&
5920 { ac_try='test -s conftest$ac_exeext'
5921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922 (eval $ac_try) 2>&5
5923 ac_status=$?
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); }; }; then
5926 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5927 else
5928 echo "$as_me: failed program was:" >&5
5929 sed 's/^/| /' conftest.$ac_ext >&5
5931 ac_cv_lib_dnet_stub_dnet_ntoa=no
5933 rm -f conftest.err conftest.$ac_objext \
5934 conftest$ac_exeext conftest.$ac_ext
5935 LIBS=$ac_check_lib_save_LIBS
5937 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5938 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5939 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5940 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5945 rm -f conftest.err conftest.$ac_objext \
5946 conftest$ac_exeext conftest.$ac_ext
5947 LIBS="$ac_xsave_LIBS"
5949 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5950 # to get the SysV transport functions.
5951 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5952 # needs -lnsl.
5953 # The nsl library prevents programs from opening the X display
5954 # on Irix 5.2, according to T.E. Dickey.
5955 # The functions gethostbyname, getservbyname, and inet_addr are
5956 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5957 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5958 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5959 if test "${ac_cv_func_gethostbyname+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5961 else
5962 cat >conftest.$ac_ext <<_ACEOF
5963 /* confdefs.h. */
5964 _ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5968 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5970 #define gethostbyname innocuous_gethostbyname
5972 /* System header to define __stub macros and hopefully few prototypes,
5973 which can conflict with char gethostbyname (); below.
5974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5975 <limits.h> exists even on freestanding compilers. */
5977 #ifdef __STDC__
5978 # include <limits.h>
5979 #else
5980 # include <assert.h>
5981 #endif
5983 #undef gethostbyname
5985 /* Override any gcc2 internal prototype to avoid an error. */
5986 #ifdef __cplusplus
5987 extern "C"
5989 #endif
5990 /* We use char because int might match the return type of a gcc2
5991 builtin and then its argument prototype would still apply. */
5992 char gethostbyname ();
5993 /* The GNU C library defines this for functions which it implements
5994 to always fail with ENOSYS. Some functions are actually named
5995 something starting with __ and the normal name is an alias. */
5996 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5997 choke me
5998 #else
5999 char (*f) () = gethostbyname;
6000 #endif
6001 #ifdef __cplusplus
6003 #endif
6006 main ()
6008 return f != gethostbyname;
6010 return 0;
6012 _ACEOF
6013 rm -f conftest.$ac_objext conftest$ac_exeext
6014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6015 (eval $ac_link) 2>conftest.er1
6016 ac_status=$?
6017 grep -v '^ *+' conftest.er1 >conftest.err
6018 rm -f conftest.er1
6019 cat conftest.err >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } &&
6022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024 (eval $ac_try) 2>&5
6025 ac_status=$?
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }; } &&
6028 { ac_try='test -s conftest$ac_exeext'
6029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6030 (eval $ac_try) 2>&5
6031 ac_status=$?
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); }; }; then
6034 ac_cv_func_gethostbyname=yes
6035 else
6036 echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.$ac_ext >&5
6039 ac_cv_func_gethostbyname=no
6041 rm -f conftest.err conftest.$ac_objext \
6042 conftest$ac_exeext conftest.$ac_ext
6044 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6045 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
6047 if test $ac_cv_func_gethostbyname = no; then
6048 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6049 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6050 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 else
6053 ac_check_lib_save_LIBS=$LIBS
6054 LIBS="-lnsl $LIBS"
6055 cat >conftest.$ac_ext <<_ACEOF
6056 /* confdefs.h. */
6057 _ACEOF
6058 cat confdefs.h >>conftest.$ac_ext
6059 cat >>conftest.$ac_ext <<_ACEOF
6060 /* end confdefs.h. */
6062 /* Override any gcc2 internal prototype to avoid an error. */
6063 #ifdef __cplusplus
6064 extern "C"
6065 #endif
6066 /* We use char because int might match the return type of a gcc2
6067 builtin and then its argument prototype would still apply. */
6068 char gethostbyname ();
6070 main ()
6072 gethostbyname ();
6074 return 0;
6076 _ACEOF
6077 rm -f conftest.$ac_objext conftest$ac_exeext
6078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6079 (eval $ac_link) 2>conftest.er1
6080 ac_status=$?
6081 grep -v '^ *+' conftest.er1 >conftest.err
6082 rm -f conftest.er1
6083 cat conftest.err >&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); } &&
6086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088 (eval $ac_try) 2>&5
6089 ac_status=$?
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; } &&
6092 { ac_try='test -s conftest$ac_exeext'
6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 (eval $ac_try) 2>&5
6095 ac_status=$?
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; }; then
6098 ac_cv_lib_nsl_gethostbyname=yes
6099 else
6100 echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6103 ac_cv_lib_nsl_gethostbyname=no
6105 rm -f conftest.err conftest.$ac_objext \
6106 conftest$ac_exeext conftest.$ac_ext
6107 LIBS=$ac_check_lib_save_LIBS
6109 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6110 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6111 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6112 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6115 if test $ac_cv_lib_nsl_gethostbyname = no; then
6116 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6117 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
6118 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 else
6121 ac_check_lib_save_LIBS=$LIBS
6122 LIBS="-lbsd $LIBS"
6123 cat >conftest.$ac_ext <<_ACEOF
6124 /* confdefs.h. */
6125 _ACEOF
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h. */
6130 /* Override any gcc2 internal prototype to avoid an error. */
6131 #ifdef __cplusplus
6132 extern "C"
6133 #endif
6134 /* We use char because int might match the return type of a gcc2
6135 builtin and then its argument prototype would still apply. */
6136 char gethostbyname ();
6138 main ()
6140 gethostbyname ();
6142 return 0;
6144 _ACEOF
6145 rm -f conftest.$ac_objext conftest$ac_exeext
6146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6147 (eval $ac_link) 2>conftest.er1
6148 ac_status=$?
6149 grep -v '^ *+' conftest.er1 >conftest.err
6150 rm -f conftest.er1
6151 cat conftest.err >&5
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); } &&
6154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156 (eval $ac_try) 2>&5
6157 ac_status=$?
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; } &&
6160 { ac_try='test -s conftest$ac_exeext'
6161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162 (eval $ac_try) 2>&5
6163 ac_status=$?
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); }; }; then
6166 ac_cv_lib_bsd_gethostbyname=yes
6167 else
6168 echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.$ac_ext >&5
6171 ac_cv_lib_bsd_gethostbyname=no
6173 rm -f conftest.err conftest.$ac_objext \
6174 conftest$ac_exeext conftest.$ac_ext
6175 LIBS=$ac_check_lib_save_LIBS
6177 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6178 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6179 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6180 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6186 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6187 # socket/setsockopt and other routines are undefined under SCO ODT
6188 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6189 # on later versions), says Simon Leinen: it contains gethostby*
6190 # variants that don't use the name server (or something). -lsocket
6191 # must be given before -lnsl if both are needed. We assume that
6192 # if connect needs -lnsl, so does gethostbyname.
6193 echo "$as_me:$LINENO: checking for connect" >&5
6194 echo $ECHO_N "checking for connect... $ECHO_C" >&6
6195 if test "${ac_cv_func_connect+set}" = set; then
6196 echo $ECHO_N "(cached) $ECHO_C" >&6
6197 else
6198 cat >conftest.$ac_ext <<_ACEOF
6199 /* confdefs.h. */
6200 _ACEOF
6201 cat confdefs.h >>conftest.$ac_ext
6202 cat >>conftest.$ac_ext <<_ACEOF
6203 /* end confdefs.h. */
6204 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6206 #define connect innocuous_connect
6208 /* System header to define __stub macros and hopefully few prototypes,
6209 which can conflict with char connect (); below.
6210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6211 <limits.h> exists even on freestanding compilers. */
6213 #ifdef __STDC__
6214 # include <limits.h>
6215 #else
6216 # include <assert.h>
6217 #endif
6219 #undef connect
6221 /* Override any gcc2 internal prototype to avoid an error. */
6222 #ifdef __cplusplus
6223 extern "C"
6225 #endif
6226 /* We use char because int might match the return type of a gcc2
6227 builtin and then its argument prototype would still apply. */
6228 char connect ();
6229 /* The GNU C library defines this for functions which it implements
6230 to always fail with ENOSYS. Some functions are actually named
6231 something starting with __ and the normal name is an alias. */
6232 #if defined (__stub_connect) || defined (__stub___connect)
6233 choke me
6234 #else
6235 char (*f) () = connect;
6236 #endif
6237 #ifdef __cplusplus
6239 #endif
6242 main ()
6244 return f != connect;
6246 return 0;
6248 _ACEOF
6249 rm -f conftest.$ac_objext conftest$ac_exeext
6250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6251 (eval $ac_link) 2>conftest.er1
6252 ac_status=$?
6253 grep -v '^ *+' conftest.er1 >conftest.err
6254 rm -f conftest.er1
6255 cat conftest.err >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } &&
6258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 (eval $ac_try) 2>&5
6261 ac_status=$?
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; } &&
6264 { ac_try='test -s conftest$ac_exeext'
6265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266 (eval $ac_try) 2>&5
6267 ac_status=$?
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); }; }; then
6270 ac_cv_func_connect=yes
6271 else
6272 echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6275 ac_cv_func_connect=no
6277 rm -f conftest.err conftest.$ac_objext \
6278 conftest$ac_exeext conftest.$ac_ext
6280 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6281 echo "${ECHO_T}$ac_cv_func_connect" >&6
6283 if test $ac_cv_func_connect = no; then
6284 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6285 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6286 if test "${ac_cv_lib_socket_connect+set}" = set; then
6287 echo $ECHO_N "(cached) $ECHO_C" >&6
6288 else
6289 ac_check_lib_save_LIBS=$LIBS
6290 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6291 cat >conftest.$ac_ext <<_ACEOF
6292 /* confdefs.h. */
6293 _ACEOF
6294 cat confdefs.h >>conftest.$ac_ext
6295 cat >>conftest.$ac_ext <<_ACEOF
6296 /* end confdefs.h. */
6298 /* Override any gcc2 internal prototype to avoid an error. */
6299 #ifdef __cplusplus
6300 extern "C"
6301 #endif
6302 /* We use char because int might match the return type of a gcc2
6303 builtin and then its argument prototype would still apply. */
6304 char connect ();
6306 main ()
6308 connect ();
6310 return 0;
6312 _ACEOF
6313 rm -f conftest.$ac_objext conftest$ac_exeext
6314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6315 (eval $ac_link) 2>conftest.er1
6316 ac_status=$?
6317 grep -v '^ *+' conftest.er1 >conftest.err
6318 rm -f conftest.er1
6319 cat conftest.err >&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); } &&
6322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324 (eval $ac_try) 2>&5
6325 ac_status=$?
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); }; } &&
6328 { ac_try='test -s conftest$ac_exeext'
6329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6330 (eval $ac_try) 2>&5
6331 ac_status=$?
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); }; }; then
6334 ac_cv_lib_socket_connect=yes
6335 else
6336 echo "$as_me: failed program was:" >&5
6337 sed 's/^/| /' conftest.$ac_ext >&5
6339 ac_cv_lib_socket_connect=no
6341 rm -f conftest.err conftest.$ac_objext \
6342 conftest$ac_exeext conftest.$ac_ext
6343 LIBS=$ac_check_lib_save_LIBS
6345 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6346 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6347 if test $ac_cv_lib_socket_connect = yes; then
6348 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6353 # Guillermo Gomez says -lposix is necessary on A/UX.
6354 echo "$as_me:$LINENO: checking for remove" >&5
6355 echo $ECHO_N "checking for remove... $ECHO_C" >&6
6356 if test "${ac_cv_func_remove+set}" = set; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6358 else
6359 cat >conftest.$ac_ext <<_ACEOF
6360 /* confdefs.h. */
6361 _ACEOF
6362 cat confdefs.h >>conftest.$ac_ext
6363 cat >>conftest.$ac_ext <<_ACEOF
6364 /* end confdefs.h. */
6365 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6367 #define remove innocuous_remove
6369 /* System header to define __stub macros and hopefully few prototypes,
6370 which can conflict with char remove (); below.
6371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6372 <limits.h> exists even on freestanding compilers. */
6374 #ifdef __STDC__
6375 # include <limits.h>
6376 #else
6377 # include <assert.h>
6378 #endif
6380 #undef remove
6382 /* Override any gcc2 internal prototype to avoid an error. */
6383 #ifdef __cplusplus
6384 extern "C"
6386 #endif
6387 /* We use char because int might match the return type of a gcc2
6388 builtin and then its argument prototype would still apply. */
6389 char remove ();
6390 /* The GNU C library defines this for functions which it implements
6391 to always fail with ENOSYS. Some functions are actually named
6392 something starting with __ and the normal name is an alias. */
6393 #if defined (__stub_remove) || defined (__stub___remove)
6394 choke me
6395 #else
6396 char (*f) () = remove;
6397 #endif
6398 #ifdef __cplusplus
6400 #endif
6403 main ()
6405 return f != remove;
6407 return 0;
6409 _ACEOF
6410 rm -f conftest.$ac_objext conftest$ac_exeext
6411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6412 (eval $ac_link) 2>conftest.er1
6413 ac_status=$?
6414 grep -v '^ *+' conftest.er1 >conftest.err
6415 rm -f conftest.er1
6416 cat conftest.err >&5
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); } &&
6419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421 (eval $ac_try) 2>&5
6422 ac_status=$?
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); }; } &&
6425 { ac_try='test -s conftest$ac_exeext'
6426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427 (eval $ac_try) 2>&5
6428 ac_status=$?
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); }; }; then
6431 ac_cv_func_remove=yes
6432 else
6433 echo "$as_me: failed program was:" >&5
6434 sed 's/^/| /' conftest.$ac_ext >&5
6436 ac_cv_func_remove=no
6438 rm -f conftest.err conftest.$ac_objext \
6439 conftest$ac_exeext conftest.$ac_ext
6441 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6442 echo "${ECHO_T}$ac_cv_func_remove" >&6
6444 if test $ac_cv_func_remove = no; then
6445 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6446 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6447 if test "${ac_cv_lib_posix_remove+set}" = set; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6449 else
6450 ac_check_lib_save_LIBS=$LIBS
6451 LIBS="-lposix $LIBS"
6452 cat >conftest.$ac_ext <<_ACEOF
6453 /* confdefs.h. */
6454 _ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h. */
6459 /* Override any gcc2 internal prototype to avoid an error. */
6460 #ifdef __cplusplus
6461 extern "C"
6462 #endif
6463 /* We use char because int might match the return type of a gcc2
6464 builtin and then its argument prototype would still apply. */
6465 char remove ();
6467 main ()
6469 remove ();
6471 return 0;
6473 _ACEOF
6474 rm -f conftest.$ac_objext conftest$ac_exeext
6475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6476 (eval $ac_link) 2>conftest.er1
6477 ac_status=$?
6478 grep -v '^ *+' conftest.er1 >conftest.err
6479 rm -f conftest.er1
6480 cat conftest.err >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); } &&
6483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6485 (eval $ac_try) 2>&5
6486 ac_status=$?
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); }; } &&
6489 { ac_try='test -s conftest$ac_exeext'
6490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6491 (eval $ac_try) 2>&5
6492 ac_status=$?
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); }; }; then
6495 ac_cv_lib_posix_remove=yes
6496 else
6497 echo "$as_me: failed program was:" >&5
6498 sed 's/^/| /' conftest.$ac_ext >&5
6500 ac_cv_lib_posix_remove=no
6502 rm -f conftest.err conftest.$ac_objext \
6503 conftest$ac_exeext conftest.$ac_ext
6504 LIBS=$ac_check_lib_save_LIBS
6506 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6507 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6508 if test $ac_cv_lib_posix_remove = yes; then
6509 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6514 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6515 echo "$as_me:$LINENO: checking for shmat" >&5
6516 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6517 if test "${ac_cv_func_shmat+set}" = set; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
6519 else
6520 cat >conftest.$ac_ext <<_ACEOF
6521 /* confdefs.h. */
6522 _ACEOF
6523 cat confdefs.h >>conftest.$ac_ext
6524 cat >>conftest.$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6526 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6528 #define shmat innocuous_shmat
6530 /* System header to define __stub macros and hopefully few prototypes,
6531 which can conflict with char shmat (); below.
6532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6533 <limits.h> exists even on freestanding compilers. */
6535 #ifdef __STDC__
6536 # include <limits.h>
6537 #else
6538 # include <assert.h>
6539 #endif
6541 #undef shmat
6543 /* Override any gcc2 internal prototype to avoid an error. */
6544 #ifdef __cplusplus
6545 extern "C"
6547 #endif
6548 /* We use char because int might match the return type of a gcc2
6549 builtin and then its argument prototype would still apply. */
6550 char shmat ();
6551 /* The GNU C library defines this for functions which it implements
6552 to always fail with ENOSYS. Some functions are actually named
6553 something starting with __ and the normal name is an alias. */
6554 #if defined (__stub_shmat) || defined (__stub___shmat)
6555 choke me
6556 #else
6557 char (*f) () = shmat;
6558 #endif
6559 #ifdef __cplusplus
6561 #endif
6564 main ()
6566 return f != shmat;
6568 return 0;
6570 _ACEOF
6571 rm -f conftest.$ac_objext conftest$ac_exeext
6572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6573 (eval $ac_link) 2>conftest.er1
6574 ac_status=$?
6575 grep -v '^ *+' conftest.er1 >conftest.err
6576 rm -f conftest.er1
6577 cat conftest.err >&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); } &&
6580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6582 (eval $ac_try) 2>&5
6583 ac_status=$?
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); }; } &&
6586 { ac_try='test -s conftest$ac_exeext'
6587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6588 (eval $ac_try) 2>&5
6589 ac_status=$?
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; }; then
6592 ac_cv_func_shmat=yes
6593 else
6594 echo "$as_me: failed program was:" >&5
6595 sed 's/^/| /' conftest.$ac_ext >&5
6597 ac_cv_func_shmat=no
6599 rm -f conftest.err conftest.$ac_objext \
6600 conftest$ac_exeext conftest.$ac_ext
6602 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6603 echo "${ECHO_T}$ac_cv_func_shmat" >&6
6605 if test $ac_cv_func_shmat = no; then
6606 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6607 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6608 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6610 else
6611 ac_check_lib_save_LIBS=$LIBS
6612 LIBS="-lipc $LIBS"
6613 cat >conftest.$ac_ext <<_ACEOF
6614 /* confdefs.h. */
6615 _ACEOF
6616 cat confdefs.h >>conftest.$ac_ext
6617 cat >>conftest.$ac_ext <<_ACEOF
6618 /* end confdefs.h. */
6620 /* Override any gcc2 internal prototype to avoid an error. */
6621 #ifdef __cplusplus
6622 extern "C"
6623 #endif
6624 /* We use char because int might match the return type of a gcc2
6625 builtin and then its argument prototype would still apply. */
6626 char shmat ();
6628 main ()
6630 shmat ();
6632 return 0;
6634 _ACEOF
6635 rm -f conftest.$ac_objext conftest$ac_exeext
6636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6637 (eval $ac_link) 2>conftest.er1
6638 ac_status=$?
6639 grep -v '^ *+' conftest.er1 >conftest.err
6640 rm -f conftest.er1
6641 cat conftest.err >&5
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); } &&
6644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646 (eval $ac_try) 2>&5
6647 ac_status=$?
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); }; } &&
6650 { ac_try='test -s conftest$ac_exeext'
6651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652 (eval $ac_try) 2>&5
6653 ac_status=$?
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; }; then
6656 ac_cv_lib_ipc_shmat=yes
6657 else
6658 echo "$as_me: failed program was:" >&5
6659 sed 's/^/| /' conftest.$ac_ext >&5
6661 ac_cv_lib_ipc_shmat=no
6663 rm -f conftest.err conftest.$ac_objext \
6664 conftest$ac_exeext conftest.$ac_ext
6665 LIBS=$ac_check_lib_save_LIBS
6667 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6668 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6669 if test $ac_cv_lib_ipc_shmat = yes; then
6670 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6676 # Check for libraries that X11R6 Xt/Xaw programs need.
6677 ac_save_LDFLAGS=$LDFLAGS
6678 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6679 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6680 # check for ICE first), but we must link in the order -lSM -lICE or
6681 # we get undefined symbols. So assume we have SM if we have ICE.
6682 # These have to be linked with before -lX11, unlike the other
6683 # libraries we check for below, so use a different variable.
6684 # John Interrante, Karl Berry
6685 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6686 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6687 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6688 echo $ECHO_N "(cached) $ECHO_C" >&6
6689 else
6690 ac_check_lib_save_LIBS=$LIBS
6691 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6692 cat >conftest.$ac_ext <<_ACEOF
6693 /* confdefs.h. */
6694 _ACEOF
6695 cat confdefs.h >>conftest.$ac_ext
6696 cat >>conftest.$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6699 /* Override any gcc2 internal prototype to avoid an error. */
6700 #ifdef __cplusplus
6701 extern "C"
6702 #endif
6703 /* We use char because int might match the return type of a gcc2
6704 builtin and then its argument prototype would still apply. */
6705 char IceConnectionNumber ();
6707 main ()
6709 IceConnectionNumber ();
6711 return 0;
6713 _ACEOF
6714 rm -f conftest.$ac_objext conftest$ac_exeext
6715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6716 (eval $ac_link) 2>conftest.er1
6717 ac_status=$?
6718 grep -v '^ *+' conftest.er1 >conftest.err
6719 rm -f conftest.er1
6720 cat conftest.err >&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); } &&
6723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6725 (eval $ac_try) 2>&5
6726 ac_status=$?
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); }; } &&
6729 { ac_try='test -s conftest$ac_exeext'
6730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6731 (eval $ac_try) 2>&5
6732 ac_status=$?
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); }; }; then
6735 ac_cv_lib_ICE_IceConnectionNumber=yes
6736 else
6737 echo "$as_me: failed program was:" >&5
6738 sed 's/^/| /' conftest.$ac_ext >&5
6740 ac_cv_lib_ICE_IceConnectionNumber=no
6742 rm -f conftest.err conftest.$ac_objext \
6743 conftest$ac_exeext conftest.$ac_ext
6744 LIBS=$ac_check_lib_save_LIBS
6746 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6747 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6748 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6749 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6752 LDFLAGS=$ac_save_LDFLAGS
6756 if test "$no_x" = yes; then
6757 { { echo "$as_me:$LINENO: error: \"Really need a working X. Check config.log to see why configure couldn't find it\"" >&5
6758 echo "$as_me: error: \"Really need a working X. Check config.log to see why configure couldn't find it\"" >&2;}
6759 { (exit 1); exit 1; }; }
6761 LIBS="$X_LIBS $LIBS"
6762 CPPFLAGS="$X_CFLAGS $CPPFLAGS"
6764 echo "$as_me:$LINENO: checking for XrmParseCommand in -lX11" >&5
6765 echo $ECHO_N "checking for XrmParseCommand in -lX11... $ECHO_C" >&6
6766 if test "${ac_cv_lib_X11_XrmParseCommand+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 else
6769 ac_check_lib_save_LIBS=$LIBS
6770 LIBS="-lX11 $LIBS"
6771 cat >conftest.$ac_ext <<_ACEOF
6772 /* confdefs.h. */
6773 _ACEOF
6774 cat confdefs.h >>conftest.$ac_ext
6775 cat >>conftest.$ac_ext <<_ACEOF
6776 /* end confdefs.h. */
6778 /* Override any gcc2 internal prototype to avoid an error. */
6779 #ifdef __cplusplus
6780 extern "C"
6781 #endif
6782 /* We use char because int might match the return type of a gcc2
6783 builtin and then its argument prototype would still apply. */
6784 char XrmParseCommand ();
6786 main ()
6788 XrmParseCommand ();
6790 return 0;
6792 _ACEOF
6793 rm -f conftest.$ac_objext conftest$ac_exeext
6794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6795 (eval $ac_link) 2>conftest.er1
6796 ac_status=$?
6797 grep -v '^ *+' conftest.er1 >conftest.err
6798 rm -f conftest.er1
6799 cat conftest.err >&5
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); } &&
6802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804 (eval $ac_try) 2>&5
6805 ac_status=$?
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); }; } &&
6808 { ac_try='test -s conftest$ac_exeext'
6809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6810 (eval $ac_try) 2>&5
6811 ac_status=$?
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); }; }; then
6814 ac_cv_lib_X11_XrmParseCommand=yes
6815 else
6816 echo "$as_me: failed program was:" >&5
6817 sed 's/^/| /' conftest.$ac_ext >&5
6819 ac_cv_lib_X11_XrmParseCommand=no
6821 rm -f conftest.err conftest.$ac_objext \
6822 conftest$ac_exeext conftest.$ac_ext
6823 LIBS=$ac_check_lib_save_LIBS
6825 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XrmParseCommand" >&5
6826 echo "${ECHO_T}$ac_cv_lib_X11_XrmParseCommand" >&6
6827 if test $ac_cv_lib_X11_XrmParseCommand = yes; then
6828 cat >>confdefs.h <<_ACEOF
6829 #define HAVE_LIBX11 1
6830 _ACEOF
6832 LIBS="-lX11 $LIBS"
6837 echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
6838 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
6839 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
6840 echo $ECHO_N "(cached) $ECHO_C" >&6
6841 else
6842 ac_check_lib_save_LIBS=$LIBS
6843 LIBS="-lXext $LIBS"
6844 cat >conftest.$ac_ext <<_ACEOF
6845 /* confdefs.h. */
6846 _ACEOF
6847 cat confdefs.h >>conftest.$ac_ext
6848 cat >>conftest.$ac_ext <<_ACEOF
6849 /* end confdefs.h. */
6851 /* Override any gcc2 internal prototype to avoid an error. */
6852 #ifdef __cplusplus
6853 extern "C"
6854 #endif
6855 /* We use char because int might match the return type of a gcc2
6856 builtin and then its argument prototype would still apply. */
6857 char XShapeCombineMask ();
6859 main ()
6861 XShapeCombineMask ();
6863 return 0;
6865 _ACEOF
6866 rm -f conftest.$ac_objext conftest$ac_exeext
6867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6868 (eval $ac_link) 2>conftest.er1
6869 ac_status=$?
6870 grep -v '^ *+' conftest.er1 >conftest.err
6871 rm -f conftest.er1
6872 cat conftest.err >&5
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); } &&
6875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6877 (eval $ac_try) 2>&5
6878 ac_status=$?
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); }; } &&
6881 { ac_try='test -s conftest$ac_exeext'
6882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883 (eval $ac_try) 2>&5
6884 ac_status=$?
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; }; then
6887 ac_cv_lib_Xext_XShapeCombineMask=yes
6888 else
6889 echo "$as_me: failed program was:" >&5
6890 sed 's/^/| /' conftest.$ac_ext >&5
6892 ac_cv_lib_Xext_XShapeCombineMask=no
6894 rm -f conftest.err conftest.$ac_objext \
6895 conftest$ac_exeext conftest.$ac_ext
6896 LIBS=$ac_check_lib_save_LIBS
6898 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
6899 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
6900 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
6901 cat >>confdefs.h <<_ACEOF
6902 #define HAVE_LIBXEXT 1
6903 _ACEOF
6905 LIBS="-lXext $LIBS"
6907 else
6908 { { echo "$as_me:$LINENO: error: libXext not found or does not include XShape" >&5
6909 echo "$as_me: error: libXext not found or does not include XShape" >&2;}
6910 { (exit 1); exit 1; }; }
6914 echo "$as_me:$LINENO: checking for XpmCreateImageFromXpmImage in -lXpm" >&5
6915 echo $ECHO_N "checking for XpmCreateImageFromXpmImage in -lXpm... $ECHO_C" >&6
6916 if test "${ac_cv_lib_Xpm_XpmCreateImageFromXpmImage+set}" = set; then
6917 echo $ECHO_N "(cached) $ECHO_C" >&6
6918 else
6919 ac_check_lib_save_LIBS=$LIBS
6920 LIBS="-lXpm $LIBS"
6921 cat >conftest.$ac_ext <<_ACEOF
6922 /* confdefs.h. */
6923 _ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h. */
6928 /* Override any gcc2 internal prototype to avoid an error. */
6929 #ifdef __cplusplus
6930 extern "C"
6931 #endif
6932 /* We use char because int might match the return type of a gcc2
6933 builtin and then its argument prototype would still apply. */
6934 char XpmCreateImageFromXpmImage ();
6936 main ()
6938 XpmCreateImageFromXpmImage ();
6940 return 0;
6942 _ACEOF
6943 rm -f conftest.$ac_objext conftest$ac_exeext
6944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6945 (eval $ac_link) 2>conftest.er1
6946 ac_status=$?
6947 grep -v '^ *+' conftest.er1 >conftest.err
6948 rm -f conftest.er1
6949 cat conftest.err >&5
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); } &&
6952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6954 (eval $ac_try) 2>&5
6955 ac_status=$?
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); }; } &&
6958 { ac_try='test -s conftest$ac_exeext'
6959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6960 (eval $ac_try) 2>&5
6961 ac_status=$?
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); }; }; then
6964 ac_cv_lib_Xpm_XpmCreateImageFromXpmImage=yes
6965 else
6966 echo "$as_me: failed program was:" >&5
6967 sed 's/^/| /' conftest.$ac_ext >&5
6969 ac_cv_lib_Xpm_XpmCreateImageFromXpmImage=no
6971 rm -f conftest.err conftest.$ac_objext \
6972 conftest$ac_exeext conftest.$ac_ext
6973 LIBS=$ac_check_lib_save_LIBS
6975 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreateImageFromXpmImage" >&5
6976 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreateImageFromXpmImage" >&6
6977 if test $ac_cv_lib_Xpm_XpmCreateImageFromXpmImage = yes; then
6978 cat >>confdefs.h <<_ACEOF
6979 #define HAVE_LIBXPM 1
6980 _ACEOF
6982 LIBS="-lXpm $LIBS"
6988 for ac_header in X11/xpm.h
6990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6992 echo "$as_me:$LINENO: checking for $ac_header" >&5
6993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6999 else
7000 # Is the header compilable?
7001 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7002 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7003 cat >conftest.$ac_ext <<_ACEOF
7004 /* confdefs.h. */
7005 _ACEOF
7006 cat confdefs.h >>conftest.$ac_ext
7007 cat >>conftest.$ac_ext <<_ACEOF
7008 /* end confdefs.h. */
7009 $ac_includes_default
7010 #include <$ac_header>
7011 _ACEOF
7012 rm -f conftest.$ac_objext
7013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7014 (eval $ac_compile) 2>conftest.er1
7015 ac_status=$?
7016 grep -v '^ *+' conftest.er1 >conftest.err
7017 rm -f conftest.er1
7018 cat conftest.err >&5
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); } &&
7021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023 (eval $ac_try) 2>&5
7024 ac_status=$?
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; } &&
7027 { ac_try='test -s conftest.$ac_objext'
7028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7029 (eval $ac_try) 2>&5
7030 ac_status=$?
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); }; }; then
7033 ac_header_compiler=yes
7034 else
7035 echo "$as_me: failed program was:" >&5
7036 sed 's/^/| /' conftest.$ac_ext >&5
7038 ac_header_compiler=no
7040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7041 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7042 echo "${ECHO_T}$ac_header_compiler" >&6
7044 # Is the header present?
7045 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7047 cat >conftest.$ac_ext <<_ACEOF
7048 /* confdefs.h. */
7049 _ACEOF
7050 cat confdefs.h >>conftest.$ac_ext
7051 cat >>conftest.$ac_ext <<_ACEOF
7052 /* end confdefs.h. */
7053 #include <$ac_header>
7054 _ACEOF
7055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7057 ac_status=$?
7058 grep -v '^ *+' conftest.er1 >conftest.err
7059 rm -f conftest.er1
7060 cat conftest.err >&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } >/dev/null; then
7063 if test -s conftest.err; then
7064 ac_cpp_err=$ac_c_preproc_warn_flag
7065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7066 else
7067 ac_cpp_err=
7069 else
7070 ac_cpp_err=yes
7072 if test -z "$ac_cpp_err"; then
7073 ac_header_preproc=yes
7074 else
7075 echo "$as_me: failed program was:" >&5
7076 sed 's/^/| /' conftest.$ac_ext >&5
7078 ac_header_preproc=no
7080 rm -f conftest.err conftest.$ac_ext
7081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7082 echo "${ECHO_T}$ac_header_preproc" >&6
7084 # So? What about this header?
7085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7086 yes:no: )
7087 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7091 ac_header_preproc=yes
7093 no:yes:* )
7094 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7096 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7097 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7098 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7099 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7100 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7101 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7104 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7105 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7107 cat <<\_ASBOX
7108 ## ------------------------------------------------- ##
7109 ## Report this to wmbiff-devel@lists.sourceforge.net ##
7110 ## ------------------------------------------------- ##
7111 _ASBOX
7113 sed "s/^/$as_me: WARNING: /" >&2
7115 esac
7116 echo "$as_me:$LINENO: checking for $ac_header" >&5
7117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7119 echo $ECHO_N "(cached) $ECHO_C" >&6
7120 else
7121 eval "$as_ac_Header=\$ac_header_preproc"
7123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7128 cat >>confdefs.h <<_ACEOF
7129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7130 _ACEOF
7132 else
7134 for ac_header in xpm.h
7136 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7138 echo "$as_me:$LINENO: checking for $ac_header" >&5
7139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
7143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7145 else
7146 # Is the header compilable?
7147 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7148 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7149 cat >conftest.$ac_ext <<_ACEOF
7150 /* confdefs.h. */
7151 _ACEOF
7152 cat confdefs.h >>conftest.$ac_ext
7153 cat >>conftest.$ac_ext <<_ACEOF
7154 /* end confdefs.h. */
7155 $ac_includes_default
7156 #include <$ac_header>
7157 _ACEOF
7158 rm -f conftest.$ac_objext
7159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7160 (eval $ac_compile) 2>conftest.er1
7161 ac_status=$?
7162 grep -v '^ *+' conftest.er1 >conftest.err
7163 rm -f conftest.er1
7164 cat conftest.err >&5
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); } &&
7167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7169 (eval $ac_try) 2>&5
7170 ac_status=$?
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); }; } &&
7173 { ac_try='test -s conftest.$ac_objext'
7174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7175 (eval $ac_try) 2>&5
7176 ac_status=$?
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); }; }; then
7179 ac_header_compiler=yes
7180 else
7181 echo "$as_me: failed program was:" >&5
7182 sed 's/^/| /' conftest.$ac_ext >&5
7184 ac_header_compiler=no
7186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7187 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7188 echo "${ECHO_T}$ac_header_compiler" >&6
7190 # Is the header present?
7191 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7192 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7193 cat >conftest.$ac_ext <<_ACEOF
7194 /* confdefs.h. */
7195 _ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h. */
7199 #include <$ac_header>
7200 _ACEOF
7201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7203 ac_status=$?
7204 grep -v '^ *+' conftest.er1 >conftest.err
7205 rm -f conftest.er1
7206 cat conftest.err >&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); } >/dev/null; then
7209 if test -s conftest.err; then
7210 ac_cpp_err=$ac_c_preproc_warn_flag
7211 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7212 else
7213 ac_cpp_err=
7215 else
7216 ac_cpp_err=yes
7218 if test -z "$ac_cpp_err"; then
7219 ac_header_preproc=yes
7220 else
7221 echo "$as_me: failed program was:" >&5
7222 sed 's/^/| /' conftest.$ac_ext >&5
7224 ac_header_preproc=no
7226 rm -f conftest.err conftest.$ac_ext
7227 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7228 echo "${ECHO_T}$ac_header_preproc" >&6
7230 # So? What about this header?
7231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7232 yes:no: )
7233 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7234 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7236 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7237 ac_header_preproc=yes
7239 no:yes:* )
7240 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7241 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7242 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7243 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7244 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7245 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7246 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7247 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7249 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7250 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7251 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7253 cat <<\_ASBOX
7254 ## ------------------------------------------------- ##
7255 ## Report this to wmbiff-devel@lists.sourceforge.net ##
7256 ## ------------------------------------------------- ##
7257 _ASBOX
7259 sed "s/^/$as_me: WARNING: /" >&2
7261 esac
7262 echo "$as_me:$LINENO: checking for $ac_header" >&5
7263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7266 else
7267 eval "$as_ac_Header=\$ac_header_preproc"
7269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7274 cat >>confdefs.h <<_ACEOF
7275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7276 _ACEOF
7278 else
7279 { { echo "$as_me:$LINENO: error: xpm.h is needed" >&5
7280 echo "$as_me: error: xpm.h is needed" >&2;}
7281 { (exit 1); exit 1; }; }
7284 done
7288 done
7293 # WM_C_ATTRIBUTE
7295 echo "$as_me:$LINENO: checking for __attribute__ support" >&5
7296 echo $ECHO_N "checking for __attribute__ support... $ECHO_C" >&6
7297 if test "${wm_cv_c_attribute+set}" = set; then
7298 echo $ECHO_N "(cached) $ECHO_C" >&6
7299 else
7300 wm_cv_c_attribute=no
7301 cat >conftest.$ac_ext <<_ACEOF
7302 /* confdefs.h. */
7303 _ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h. */
7307 #ifndef __cplusplus
7308 typedef int foo_t;
7309 foo_t foo () __attribute__((unused));
7310 foo_t foo () {return 0; }
7311 #endif
7313 _ACEOF
7314 rm -f conftest.$ac_objext
7315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7316 (eval $ac_compile) 2>conftest.er1
7317 ac_status=$?
7318 grep -v '^ *+' conftest.er1 >conftest.err
7319 rm -f conftest.er1
7320 cat conftest.err >&5
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); } &&
7323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7325 (eval $ac_try) 2>&5
7326 ac_status=$?
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); }; } &&
7329 { ac_try='test -s conftest.$ac_objext'
7330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7331 (eval $ac_try) 2>&5
7332 ac_status=$?
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); }; }; then
7335 wm_cv_c_attribute=yes
7336 else
7337 echo "$as_me: failed program was:" >&5
7338 sed 's/^/| /' conftest.$ac_ext >&5
7341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7344 echo "$as_me:$LINENO: result: $wm_cv_c_attribute" >&5
7345 echo "${ECHO_T}$wm_cv_c_attribute" >&6
7346 case $wm_cv_c_attribute in
7347 yes)
7348 cat >>confdefs.h <<\_ACEOF
7349 #define HAVE___ATTRIBUTE__
7350 _ACEOF
7353 esac
7356 for ac_prog in ssh-askpass x11-ssh-askpass ssh-askpass-gnome
7358 # Extract the first word of "$ac_prog", so it can be a program name with args.
7359 set dummy $ac_prog; ac_word=$2
7360 echo "$as_me:$LINENO: checking for $ac_word" >&5
7361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7362 if test "${ac_cv_path_DEFAULT_ASKPASS+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7364 else
7365 case $DEFAULT_ASKPASS in
7366 [\\/]* | ?:[\\/]*)
7367 ac_cv_path_DEFAULT_ASKPASS="$DEFAULT_ASKPASS" # Let the user override the test with a path.
7370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371 for as_dir in $PATH
7373 IFS=$as_save_IFS
7374 test -z "$as_dir" && as_dir=.
7375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7377 ac_cv_path_DEFAULT_ASKPASS="$as_dir/$ac_word$ac_exec_ext"
7378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 break 2
7381 done
7382 done
7385 esac
7387 DEFAULT_ASKPASS=$ac_cv_path_DEFAULT_ASKPASS
7389 if test -n "$DEFAULT_ASKPASS"; then
7390 echo "$as_me:$LINENO: result: $DEFAULT_ASKPASS" >&5
7391 echo "${ECHO_T}$DEFAULT_ASKPASS" >&6
7392 else
7393 echo "$as_me:$LINENO: result: no" >&5
7394 echo "${ECHO_T}no" >&6
7397 test -n "$DEFAULT_ASKPASS" && break
7398 done
7399 test -n "$DEFAULT_ASKPASS" || DEFAULT_ASKPASS="/usr/bin/ssh-askpass"
7401 # Extract the first word of "cvs2cl", so it can be a program name with args.
7402 set dummy cvs2cl; ac_word=$2
7403 echo "$as_me:$LINENO: checking for $ac_word" >&5
7404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7405 if test "${ac_cv_path_CVS2CL+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7407 else
7408 case $CVS2CL in
7409 [\\/]* | ?:[\\/]*)
7410 ac_cv_path_CVS2CL="$CVS2CL" # Let the user override the test with a path.
7413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414 for as_dir in $PATH
7416 IFS=$as_save_IFS
7417 test -z "$as_dir" && as_dir=.
7418 for ac_exec_ext in '' $ac_executable_extensions; do
7419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7420 ac_cv_path_CVS2CL="$as_dir/$ac_word$ac_exec_ext"
7421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7422 break 2
7424 done
7425 done
7428 esac
7430 CVS2CL=$ac_cv_path_CVS2CL
7432 if test -n "$CVS2CL"; then
7433 echo "$as_me:$LINENO: result: $CVS2CL" >&5
7434 echo "${ECHO_T}$CVS2CL" >&6
7435 else
7436 echo "$as_me:$LINENO: result: no" >&5
7437 echo "${ECHO_T}no" >&6
7441 cat >>confdefs.h <<_ACEOF
7442 #define DEFAULT_ASKPASS "$DEFAULT_ASKPASS"
7443 _ACEOF
7448 for ac_header in CoreServices/CoreServices.h Security/Security.h
7450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7452 echo "$as_me:$LINENO: checking for $ac_header" >&5
7453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7459 else
7460 # Is the header compilable?
7461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7463 cat >conftest.$ac_ext <<_ACEOF
7464 /* confdefs.h. */
7465 _ACEOF
7466 cat confdefs.h >>conftest.$ac_ext
7467 cat >>conftest.$ac_ext <<_ACEOF
7468 /* end confdefs.h. */
7469 $ac_includes_default
7470 #include <$ac_header>
7471 _ACEOF
7472 rm -f conftest.$ac_objext
7473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7474 (eval $ac_compile) 2>conftest.er1
7475 ac_status=$?
7476 grep -v '^ *+' conftest.er1 >conftest.err
7477 rm -f conftest.er1
7478 cat conftest.err >&5
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); } &&
7481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7483 (eval $ac_try) 2>&5
7484 ac_status=$?
7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); }; } &&
7487 { ac_try='test -s conftest.$ac_objext'
7488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7489 (eval $ac_try) 2>&5
7490 ac_status=$?
7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); }; }; then
7493 ac_header_compiler=yes
7494 else
7495 echo "$as_me: failed program was:" >&5
7496 sed 's/^/| /' conftest.$ac_ext >&5
7498 ac_header_compiler=no
7500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7501 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7502 echo "${ECHO_T}$ac_header_compiler" >&6
7504 # Is the header present?
7505 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7506 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7507 cat >conftest.$ac_ext <<_ACEOF
7508 /* confdefs.h. */
7509 _ACEOF
7510 cat confdefs.h >>conftest.$ac_ext
7511 cat >>conftest.$ac_ext <<_ACEOF
7512 /* end confdefs.h. */
7513 #include <$ac_header>
7514 _ACEOF
7515 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7516 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7517 ac_status=$?
7518 grep -v '^ *+' conftest.er1 >conftest.err
7519 rm -f conftest.er1
7520 cat conftest.err >&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); } >/dev/null; then
7523 if test -s conftest.err; then
7524 ac_cpp_err=$ac_c_preproc_warn_flag
7525 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7526 else
7527 ac_cpp_err=
7529 else
7530 ac_cpp_err=yes
7532 if test -z "$ac_cpp_err"; then
7533 ac_header_preproc=yes
7534 else
7535 echo "$as_me: failed program was:" >&5
7536 sed 's/^/| /' conftest.$ac_ext >&5
7538 ac_header_preproc=no
7540 rm -f conftest.err conftest.$ac_ext
7541 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7542 echo "${ECHO_T}$ac_header_preproc" >&6
7544 # So? What about this header?
7545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7546 yes:no: )
7547 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7548 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7550 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7551 ac_header_preproc=yes
7553 no:yes:* )
7554 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7555 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7556 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7557 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7558 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7559 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7560 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7561 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7564 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7565 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7567 cat <<\_ASBOX
7568 ## ------------------------------------------------- ##
7569 ## Report this to wmbiff-devel@lists.sourceforge.net ##
7570 ## ------------------------------------------------- ##
7571 _ASBOX
7573 sed "s/^/$as_me: WARNING: /" >&2
7575 esac
7576 echo "$as_me:$LINENO: checking for $ac_header" >&5
7577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7580 else
7581 eval "$as_ac_Header=\$ac_header_preproc"
7583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7584 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7588 cat >>confdefs.h <<_ACEOF
7589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7590 _ACEOF
7594 done
7597 if test "x$prefix" != xNONE; then
7598 SKINDIR="$prefix/share/wmbiff/skins"
7599 else
7600 SKINDIR="$ac_default_prefix/share/wmbiff/skins"
7604 cat >>confdefs.h <<_ACEOF
7605 #define DEFAULT_SKIN_PATH "$SKINDIR:/usr/share/wmbiff/skins:/usr/local/share/wmbiff/skins:."
7606 _ACEOF
7609 ac_config_files="$ac_config_files Makefile wmbiff/Makefile wmgeneral/Makefile wmbiff/wmbiffrc.5 autoconf/Makefile scripts/Makefile"
7611 cat >confcache <<\_ACEOF
7612 # This file is a shell script that caches the results of configure
7613 # tests run on this system so they can be shared between configure
7614 # scripts and configure runs, see configure's option --config-cache.
7615 # It is not useful on other systems. If it contains results you don't
7616 # want to keep, you may remove or edit it.
7618 # config.status only pays attention to the cache file if you give it
7619 # the --recheck option to rerun configure.
7621 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7622 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7623 # following values.
7625 _ACEOF
7627 # The following way of writing the cache mishandles newlines in values,
7628 # but we know of no workaround that is simple, portable, and efficient.
7629 # So, don't put newlines in cache variables' values.
7630 # Ultrix sh set writes to stderr and can't be redirected directly,
7631 # and sets the high bit in the cache file unless we assign to the vars.
7633 (set) 2>&1 |
7634 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7635 *ac_space=\ *)
7636 # `set' does not quote correctly, so add quotes (double-quote
7637 # substitution turns \\\\ into \\, and sed turns \\ into \).
7638 sed -n \
7639 "s/'/'\\\\''/g;
7640 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7643 # `set' quotes correctly as required by POSIX, so do not add quotes.
7644 sed -n \
7645 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7647 esac;
7649 sed '
7650 t clear
7651 : clear
7652 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7653 t end
7654 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7655 : end' >>confcache
7656 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7657 if test -w $cache_file; then
7658 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7659 cat confcache >$cache_file
7660 else
7661 echo "not updating unwritable cache $cache_file"
7664 rm -f confcache
7666 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7667 # Let make expand exec_prefix.
7668 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7670 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7671 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7672 # trailing colons and then remove the whole line if VPATH becomes empty
7673 # (actually we leave an empty line to preserve line numbers).
7674 if test "x$srcdir" = x.; then
7675 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7676 s/:*\$(srcdir):*/:/;
7677 s/:*\${srcdir}:*/:/;
7678 s/:*@srcdir@:*/:/;
7679 s/^\([^=]*=[ ]*\):*/\1/;
7680 s/:*$//;
7681 s/^[^=]*=[ ]*$//;
7685 DEFS=-DHAVE_CONFIG_H
7687 ac_libobjs=
7688 ac_ltlibobjs=
7689 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7690 # 1. Remove the extension, and $U if already installed.
7691 ac_i=`echo "$ac_i" |
7692 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7693 # 2. Add them.
7694 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7695 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7696 done
7697 LIBOBJS=$ac_libobjs
7699 LTLIBOBJS=$ac_ltlibobjs
7702 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7703 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7704 Usually this means the macro was only invoked conditionally." >&5
7705 echo "$as_me: error: conditional \"AMDEP\" was never defined.
7706 Usually this means the macro was only invoked conditionally." >&2;}
7707 { (exit 1); exit 1; }; }
7710 : ${CONFIG_STATUS=./config.status}
7711 ac_clean_files_save=$ac_clean_files
7712 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7713 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7714 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7715 cat >$CONFIG_STATUS <<_ACEOF
7716 #! $SHELL
7717 # Generated by $as_me.
7718 # Run this file to recreate the current configuration.
7719 # Compiler output produced by configure, useful for debugging
7720 # configure, is in config.log if it exists.
7722 debug=false
7723 ac_cs_recheck=false
7724 ac_cs_silent=false
7725 SHELL=\${CONFIG_SHELL-$SHELL}
7726 _ACEOF
7728 cat >>$CONFIG_STATUS <<\_ACEOF
7729 ## --------------------- ##
7730 ## M4sh Initialization. ##
7731 ## --------------------- ##
7733 # Be Bourne compatible
7734 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7735 emulate sh
7736 NULLCMD=:
7737 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7738 # is contrary to our usage. Disable this feature.
7739 alias -g '${1+"$@"}'='"$@"'
7740 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7741 set -o posix
7743 DUALCASE=1; export DUALCASE # for MKS sh
7745 # Support unset when possible.
7746 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7747 as_unset=unset
7748 else
7749 as_unset=false
7753 # Work around bugs in pre-3.0 UWIN ksh.
7754 $as_unset ENV MAIL MAILPATH
7755 PS1='$ '
7756 PS2='> '
7757 PS4='+ '
7759 # NLS nuisances.
7760 for as_var in \
7761 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7762 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7763 LC_TELEPHONE LC_TIME
7765 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7766 eval $as_var=C; export $as_var
7767 else
7768 $as_unset $as_var
7770 done
7772 # Required to use basename.
7773 if expr a : '\(a\)' >/dev/null 2>&1; then
7774 as_expr=expr
7775 else
7776 as_expr=false
7779 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7780 as_basename=basename
7781 else
7782 as_basename=false
7786 # Name of the executable.
7787 as_me=`$as_basename "$0" ||
7788 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7789 X"$0" : 'X\(//\)$' \| \
7790 X"$0" : 'X\(/\)$' \| \
7791 . : '\(.\)' 2>/dev/null ||
7792 echo X/"$0" |
7793 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7794 /^X\/\(\/\/\)$/{ s//\1/; q; }
7795 /^X\/\(\/\).*/{ s//\1/; q; }
7796 s/.*/./; q'`
7799 # PATH needs CR, and LINENO needs CR and PATH.
7800 # Avoid depending upon Character Ranges.
7801 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7802 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7803 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7804 as_cr_digits='0123456789'
7805 as_cr_alnum=$as_cr_Letters$as_cr_digits
7807 # The user is always right.
7808 if test "${PATH_SEPARATOR+set}" != set; then
7809 echo "#! /bin/sh" >conf$$.sh
7810 echo "exit 0" >>conf$$.sh
7811 chmod +x conf$$.sh
7812 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7813 PATH_SEPARATOR=';'
7814 else
7815 PATH_SEPARATOR=:
7817 rm -f conf$$.sh
7821 as_lineno_1=$LINENO
7822 as_lineno_2=$LINENO
7823 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7824 test "x$as_lineno_1" != "x$as_lineno_2" &&
7825 test "x$as_lineno_3" = "x$as_lineno_2" || {
7826 # Find who we are. Look in the path if we contain no path at all
7827 # relative or not.
7828 case $0 in
7829 *[\\/]* ) as_myself=$0 ;;
7830 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831 for as_dir in $PATH
7833 IFS=$as_save_IFS
7834 test -z "$as_dir" && as_dir=.
7835 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7836 done
7839 esac
7840 # We did not find ourselves, most probably we were run as `sh COMMAND'
7841 # in which case we are not to be found in the path.
7842 if test "x$as_myself" = x; then
7843 as_myself=$0
7845 if test ! -f "$as_myself"; then
7846 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7847 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7848 { (exit 1); exit 1; }; }
7850 case $CONFIG_SHELL in
7852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7855 IFS=$as_save_IFS
7856 test -z "$as_dir" && as_dir=.
7857 for as_base in sh bash ksh sh5; do
7858 case $as_dir in
7860 if ("$as_dir/$as_base" -c '
7861 as_lineno_1=$LINENO
7862 as_lineno_2=$LINENO
7863 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7864 test "x$as_lineno_1" != "x$as_lineno_2" &&
7865 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7866 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7867 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7868 CONFIG_SHELL=$as_dir/$as_base
7869 export CONFIG_SHELL
7870 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7871 fi;;
7872 esac
7873 done
7874 done
7876 esac
7878 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7879 # uniformly replaced by the line number. The first 'sed' inserts a
7880 # line-number line before each line; the second 'sed' does the real
7881 # work. The second script uses 'N' to pair each line-number line
7882 # with the numbered line, and appends trailing '-' during
7883 # substitution so that $LINENO is not a special case at line end.
7884 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7885 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7886 sed '=' <$as_myself |
7887 sed '
7889 s,$,-,
7890 : loop
7891 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7892 t loop
7893 s,-$,,
7894 s,^['$as_cr_digits']*\n,,
7895 ' >$as_me.lineno &&
7896 chmod +x $as_me.lineno ||
7897 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7898 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7899 { (exit 1); exit 1; }; }
7901 # Don't try to exec as it changes $[0], causing all sort of problems
7902 # (the dirname of $[0] is not the place where we might find the
7903 # original and so on. Autoconf is especially sensible to this).
7904 . ./$as_me.lineno
7905 # Exit status is that of the last command.
7906 exit
7910 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7911 *c*,-n*) ECHO_N= ECHO_C='
7912 ' ECHO_T=' ' ;;
7913 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7914 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7915 esac
7917 if expr a : '\(a\)' >/dev/null 2>&1; then
7918 as_expr=expr
7919 else
7920 as_expr=false
7923 rm -f conf$$ conf$$.exe conf$$.file
7924 echo >conf$$.file
7925 if ln -s conf$$.file conf$$ 2>/dev/null; then
7926 # We could just check for DJGPP; but this test a) works b) is more generic
7927 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7928 if test -f conf$$.exe; then
7929 # Don't use ln at all; we don't have any links
7930 as_ln_s='cp -p'
7931 else
7932 as_ln_s='ln -s'
7934 elif ln conf$$.file conf$$ 2>/dev/null; then
7935 as_ln_s=ln
7936 else
7937 as_ln_s='cp -p'
7939 rm -f conf$$ conf$$.exe conf$$.file
7941 if mkdir -p . 2>/dev/null; then
7942 as_mkdir_p=:
7943 else
7944 test -d ./-p && rmdir ./-p
7945 as_mkdir_p=false
7948 as_executable_p="test -f"
7950 # Sed expression to map a string onto a valid CPP name.
7951 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7953 # Sed expression to map a string onto a valid variable name.
7954 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7957 # IFS
7958 # We need space, tab and new line, in precisely that order.
7959 as_nl='
7961 IFS=" $as_nl"
7963 # CDPATH.
7964 $as_unset CDPATH
7966 exec 6>&1
7968 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7969 # report actual input values of CONFIG_FILES etc. instead of their
7970 # values after options handling. Logging --version etc. is OK.
7971 exec 5>>config.log
7973 echo
7974 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7975 ## Running $as_me. ##
7976 _ASBOX
7977 } >&5
7978 cat >&5 <<_CSEOF
7980 This file was extended by WMBiff $as_me 0.4.27, which was
7981 generated by GNU Autoconf 2.59. Invocation command line was
7983 CONFIG_FILES = $CONFIG_FILES
7984 CONFIG_HEADERS = $CONFIG_HEADERS
7985 CONFIG_LINKS = $CONFIG_LINKS
7986 CONFIG_COMMANDS = $CONFIG_COMMANDS
7987 $ $0 $@
7989 _CSEOF
7990 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7991 echo >&5
7992 _ACEOF
7994 # Files that config.status was made for.
7995 if test -n "$ac_config_files"; then
7996 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7999 if test -n "$ac_config_headers"; then
8000 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8003 if test -n "$ac_config_links"; then
8004 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8007 if test -n "$ac_config_commands"; then
8008 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8011 cat >>$CONFIG_STATUS <<\_ACEOF
8013 ac_cs_usage="\
8014 \`$as_me' instantiates files from templates according to the
8015 current configuration.
8017 Usage: $0 [OPTIONS] [FILE]...
8019 -h, --help print this help, then exit
8020 -V, --version print version number, then exit
8021 -q, --quiet do not print progress messages
8022 -d, --debug don't remove temporary files
8023 --recheck update $as_me by reconfiguring in the same conditions
8024 --file=FILE[:TEMPLATE]
8025 instantiate the configuration file FILE
8026 --header=FILE[:TEMPLATE]
8027 instantiate the configuration header FILE
8029 Configuration files:
8030 $config_files
8032 Configuration headers:
8033 $config_headers
8035 Configuration commands:
8036 $config_commands
8038 Report bugs to <bug-autoconf@gnu.org>."
8039 _ACEOF
8041 cat >>$CONFIG_STATUS <<_ACEOF
8042 ac_cs_version="\\
8043 WMBiff config.status 0.4.27
8044 configured by $0, generated by GNU Autoconf 2.59,
8045 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8047 Copyright (C) 2003 Free Software Foundation, Inc.
8048 This config.status script is free software; the Free Software Foundation
8049 gives unlimited permission to copy, distribute and modify it."
8050 srcdir=$srcdir
8051 INSTALL="$INSTALL"
8052 _ACEOF
8054 cat >>$CONFIG_STATUS <<\_ACEOF
8055 # If no file are specified by the user, then we need to provide default
8056 # value. By we need to know if files were specified by the user.
8057 ac_need_defaults=:
8058 while test $# != 0
8060 case $1 in
8061 --*=*)
8062 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8063 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8064 ac_shift=:
8067 ac_option=$1
8068 ac_optarg=$2
8069 ac_shift=shift
8071 *) # This is not an option, so the user has probably given explicit
8072 # arguments.
8073 ac_option=$1
8074 ac_need_defaults=false;;
8075 esac
8077 case $ac_option in
8078 # Handling of the options.
8079 _ACEOF
8080 cat >>$CONFIG_STATUS <<\_ACEOF
8081 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8082 ac_cs_recheck=: ;;
8083 --version | --vers* | -V )
8084 echo "$ac_cs_version"; exit 0 ;;
8085 --he | --h)
8086 # Conflict between --help and --header
8087 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8088 Try \`$0 --help' for more information." >&5
8089 echo "$as_me: error: ambiguous option: $1
8090 Try \`$0 --help' for more information." >&2;}
8091 { (exit 1); exit 1; }; };;
8092 --help | --hel | -h )
8093 echo "$ac_cs_usage"; exit 0 ;;
8094 --debug | --d* | -d )
8095 debug=: ;;
8096 --file | --fil | --fi | --f )
8097 $ac_shift
8098 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8099 ac_need_defaults=false;;
8100 --header | --heade | --head | --hea )
8101 $ac_shift
8102 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8103 ac_need_defaults=false;;
8104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8105 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8106 ac_cs_silent=: ;;
8108 # This is an error.
8109 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8110 Try \`$0 --help' for more information." >&5
8111 echo "$as_me: error: unrecognized option: $1
8112 Try \`$0 --help' for more information." >&2;}
8113 { (exit 1); exit 1; }; } ;;
8115 *) ac_config_targets="$ac_config_targets $1" ;;
8117 esac
8118 shift
8119 done
8121 ac_configure_extra_args=
8123 if $ac_cs_silent; then
8124 exec 6>/dev/null
8125 ac_configure_extra_args="$ac_configure_extra_args --silent"
8128 _ACEOF
8129 cat >>$CONFIG_STATUS <<_ACEOF
8130 if \$ac_cs_recheck; then
8131 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8132 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8135 _ACEOF
8137 cat >>$CONFIG_STATUS <<_ACEOF
8139 # INIT-COMMANDS section.
8142 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8144 _ACEOF
8148 cat >>$CONFIG_STATUS <<\_ACEOF
8149 for ac_config_target in $ac_config_targets
8151 case "$ac_config_target" in
8152 # Handling of arguments.
8153 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8154 "wmbiff/Makefile" ) CONFIG_FILES="$CONFIG_FILES wmbiff/Makefile" ;;
8155 "wmgeneral/Makefile" ) CONFIG_FILES="$CONFIG_FILES wmgeneral/Makefile" ;;
8156 "wmbiff/wmbiffrc.5" ) CONFIG_FILES="$CONFIG_FILES wmbiff/wmbiffrc.5" ;;
8157 "autoconf/Makefile" ) CONFIG_FILES="$CONFIG_FILES autoconf/Makefile" ;;
8158 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
8159 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8160 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8161 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8162 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8163 { (exit 1); exit 1; }; };;
8164 esac
8165 done
8167 # If the user did not use the arguments to specify the items to instantiate,
8168 # then the envvar interface is used. Set only those that are not.
8169 # We use the long form for the default assignment because of an extremely
8170 # bizarre bug on SunOS 4.1.3.
8171 if $ac_need_defaults; then
8172 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8173 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8174 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8177 # Have a temporary directory for convenience. Make it in the build tree
8178 # simply because there is no reason to put it here, and in addition,
8179 # creating and moving files from /tmp can sometimes cause problems.
8180 # Create a temporary directory, and hook for its removal unless debugging.
8181 $debug ||
8183 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8184 trap '{ (exit 1); exit 1; }' 1 2 13 15
8187 # Create a (secure) tmp directory for tmp files.
8190 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8191 test -n "$tmp" && test -d "$tmp"
8192 } ||
8194 tmp=./confstat$$-$RANDOM
8195 (umask 077 && mkdir $tmp)
8196 } ||
8198 echo "$me: cannot create a temporary directory in ." >&2
8199 { (exit 1); exit 1; }
8202 _ACEOF
8204 cat >>$CONFIG_STATUS <<_ACEOF
8207 # CONFIG_FILES section.
8210 # No need to generate the scripts if there are no CONFIG_FILES.
8211 # This happens for instance when ./config.status config.h
8212 if test -n "\$CONFIG_FILES"; then
8213 # Protect against being on the right side of a sed subst in config.status.
8214 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8215 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8216 s,@SHELL@,$SHELL,;t t
8217 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8218 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8219 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8220 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8221 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8222 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8223 s,@exec_prefix@,$exec_prefix,;t t
8224 s,@prefix@,$prefix,;t t
8225 s,@program_transform_name@,$program_transform_name,;t t
8226 s,@bindir@,$bindir,;t t
8227 s,@sbindir@,$sbindir,;t t
8228 s,@libexecdir@,$libexecdir,;t t
8229 s,@datadir@,$datadir,;t t
8230 s,@sysconfdir@,$sysconfdir,;t t
8231 s,@sharedstatedir@,$sharedstatedir,;t t
8232 s,@localstatedir@,$localstatedir,;t t
8233 s,@libdir@,$libdir,;t t
8234 s,@includedir@,$includedir,;t t
8235 s,@oldincludedir@,$oldincludedir,;t t
8236 s,@infodir@,$infodir,;t t
8237 s,@mandir@,$mandir,;t t
8238 s,@build_alias@,$build_alias,;t t
8239 s,@host_alias@,$host_alias,;t t
8240 s,@target_alias@,$target_alias,;t t
8241 s,@DEFS@,$DEFS,;t t
8242 s,@ECHO_C@,$ECHO_C,;t t
8243 s,@ECHO_N@,$ECHO_N,;t t
8244 s,@ECHO_T@,$ECHO_T,;t t
8245 s,@LIBS@,$LIBS,;t t
8246 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8247 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8248 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8249 s,@PACKAGE@,$PACKAGE,;t t
8250 s,@VERSION@,$VERSION,;t t
8251 s,@ACLOCAL@,$ACLOCAL,;t t
8252 s,@AUTOCONF@,$AUTOCONF,;t t
8253 s,@AUTOMAKE@,$AUTOMAKE,;t t
8254 s,@AUTOHEADER@,$AUTOHEADER,;t t
8255 s,@MAKEINFO@,$MAKEINFO,;t t
8256 s,@AMTAR@,$AMTAR,;t t
8257 s,@install_sh@,$install_sh,;t t
8258 s,@STRIP@,$STRIP,;t t
8259 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8260 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
8261 s,@AWK@,$AWK,;t t
8262 s,@SET_MAKE@,$SET_MAKE,;t t
8263 s,@CC@,$CC,;t t
8264 s,@CFLAGS@,$CFLAGS,;t t
8265 s,@LDFLAGS@,$LDFLAGS,;t t
8266 s,@CPPFLAGS@,$CPPFLAGS,;t t
8267 s,@ac_ct_CC@,$ac_ct_CC,;t t
8268 s,@EXEEXT@,$EXEEXT,;t t
8269 s,@OBJEXT@,$OBJEXT,;t t
8270 s,@DEPDIR@,$DEPDIR,;t t
8271 s,@am__include@,$am__include,;t t
8272 s,@am__quote@,$am__quote,;t t
8273 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
8274 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
8275 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
8276 s,@CCDEPMODE@,$CCDEPMODE,;t t
8277 s,@RANLIB@,$RANLIB,;t t
8278 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8279 s,@CPP@,$CPP,;t t
8280 s,@EGREP@,$EGREP,;t t
8281 s,@LIBGNUTLS_CONFIG@,$LIBGNUTLS_CONFIG,;t t
8282 s,@LIBGNUTLS_CFLAGS@,$LIBGNUTLS_CFLAGS,;t t
8283 s,@LIBGNUTLS_LIBS@,$LIBGNUTLS_LIBS,;t t
8284 s,@LIBGCRYPT_CONFIG@,$LIBGCRYPT_CONFIG,;t t
8285 s,@LIBGCRYPT_CFLAGS@,$LIBGCRYPT_CFLAGS,;t t
8286 s,@LIBGCRYPT_LIBS@,$LIBGCRYPT_LIBS,;t t
8287 s,@GNUTLS_MAN_STATUS@,$GNUTLS_MAN_STATUS,;t t
8288 s,@GCRYPT_MAN_STATUS@,$GCRYPT_MAN_STATUS,;t t
8289 s,@GNUTLS_COMMON_O@,$GNUTLS_COMMON_O,;t t
8290 s,@X_CFLAGS@,$X_CFLAGS,;t t
8291 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
8292 s,@X_LIBS@,$X_LIBS,;t t
8293 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
8294 s,@DEFAULT_ASKPASS@,$DEFAULT_ASKPASS,;t t
8295 s,@CVS2CL@,$CVS2CL,;t t
8296 s,@SKINDIR@,$SKINDIR,;t t
8297 s,@LIBOBJS@,$LIBOBJS,;t t
8298 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8299 CEOF
8301 _ACEOF
8303 cat >>$CONFIG_STATUS <<\_ACEOF
8304 # Split the substitutions into bite-sized pieces for seds with
8305 # small command number limits, like on Digital OSF/1 and HP-UX.
8306 ac_max_sed_lines=48
8307 ac_sed_frag=1 # Number of current file.
8308 ac_beg=1 # First line for current file.
8309 ac_end=$ac_max_sed_lines # Line after last line for current file.
8310 ac_more_lines=:
8311 ac_sed_cmds=
8312 while $ac_more_lines; do
8313 if test $ac_beg -gt 1; then
8314 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8315 else
8316 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8318 if test ! -s $tmp/subs.frag; then
8319 ac_more_lines=false
8320 else
8321 # The purpose of the label and of the branching condition is to
8322 # speed up the sed processing (if there are no `@' at all, there
8323 # is no need to browse any of the substitutions).
8324 # These are the two extra sed commands mentioned above.
8325 (echo ':t
8326 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8327 if test -z "$ac_sed_cmds"; then
8328 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8329 else
8330 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8332 ac_sed_frag=`expr $ac_sed_frag + 1`
8333 ac_beg=$ac_end
8334 ac_end=`expr $ac_end + $ac_max_sed_lines`
8336 done
8337 if test -z "$ac_sed_cmds"; then
8338 ac_sed_cmds=cat
8340 fi # test -n "$CONFIG_FILES"
8342 _ACEOF
8343 cat >>$CONFIG_STATUS <<\_ACEOF
8344 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8345 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8346 case $ac_file in
8347 - | *:- | *:-:* ) # input from stdin
8348 cat >$tmp/stdin
8349 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8350 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8351 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8352 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8353 * ) ac_file_in=$ac_file.in ;;
8354 esac
8356 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8357 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8358 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8359 X"$ac_file" : 'X\(//\)[^/]' \| \
8360 X"$ac_file" : 'X\(//\)$' \| \
8361 X"$ac_file" : 'X\(/\)' \| \
8362 . : '\(.\)' 2>/dev/null ||
8363 echo X"$ac_file" |
8364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8365 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8366 /^X\(\/\/\)$/{ s//\1/; q; }
8367 /^X\(\/\).*/{ s//\1/; q; }
8368 s/.*/./; q'`
8369 { if $as_mkdir_p; then
8370 mkdir -p "$ac_dir"
8371 else
8372 as_dir="$ac_dir"
8373 as_dirs=
8374 while test ! -d "$as_dir"; do
8375 as_dirs="$as_dir $as_dirs"
8376 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8377 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8378 X"$as_dir" : 'X\(//\)[^/]' \| \
8379 X"$as_dir" : 'X\(//\)$' \| \
8380 X"$as_dir" : 'X\(/\)' \| \
8381 . : '\(.\)' 2>/dev/null ||
8382 echo X"$as_dir" |
8383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8384 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8385 /^X\(\/\/\)$/{ s//\1/; q; }
8386 /^X\(\/\).*/{ s//\1/; q; }
8387 s/.*/./; q'`
8388 done
8389 test ! -n "$as_dirs" || mkdir $as_dirs
8390 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8391 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8392 { (exit 1); exit 1; }; }; }
8394 ac_builddir=.
8396 if test "$ac_dir" != .; then
8397 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8398 # A "../" for each directory in $ac_dir_suffix.
8399 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8400 else
8401 ac_dir_suffix= ac_top_builddir=
8404 case $srcdir in
8405 .) # No --srcdir option. We are building in place.
8406 ac_srcdir=.
8407 if test -z "$ac_top_builddir"; then
8408 ac_top_srcdir=.
8409 else
8410 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8411 fi ;;
8412 [\\/]* | ?:[\\/]* ) # Absolute path.
8413 ac_srcdir=$srcdir$ac_dir_suffix;
8414 ac_top_srcdir=$srcdir ;;
8415 *) # Relative path.
8416 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8417 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8418 esac
8420 # Do not use `cd foo && pwd` to compute absolute paths, because
8421 # the directories may not exist.
8422 case `pwd` in
8423 .) ac_abs_builddir="$ac_dir";;
8425 case "$ac_dir" in
8426 .) ac_abs_builddir=`pwd`;;
8427 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8428 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8429 esac;;
8430 esac
8431 case $ac_abs_builddir in
8432 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8434 case ${ac_top_builddir}. in
8435 .) ac_abs_top_builddir=$ac_abs_builddir;;
8436 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8437 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8438 esac;;
8439 esac
8440 case $ac_abs_builddir in
8441 .) ac_abs_srcdir=$ac_srcdir;;
8443 case $ac_srcdir in
8444 .) ac_abs_srcdir=$ac_abs_builddir;;
8445 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8446 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8447 esac;;
8448 esac
8449 case $ac_abs_builddir in
8450 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8452 case $ac_top_srcdir in
8453 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8454 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8455 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8456 esac;;
8457 esac
8460 case $INSTALL in
8461 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8462 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8463 esac
8465 # Let's still pretend it is `configure' which instantiates (i.e., don't
8466 # use $as_me), people would be surprised to read:
8467 # /* config.h. Generated by config.status. */
8468 if test x"$ac_file" = x-; then
8469 configure_input=
8470 else
8471 configure_input="$ac_file. "
8473 configure_input=$configure_input"Generated from `echo $ac_file_in |
8474 sed 's,.*/,,'` by configure."
8476 # First look for the input files in the build tree, otherwise in the
8477 # src tree.
8478 ac_file_inputs=`IFS=:
8479 for f in $ac_file_in; do
8480 case $f in
8481 -) echo $tmp/stdin ;;
8482 [\\/$]*)
8483 # Absolute (can't be DOS-style, as IFS=:)
8484 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8485 echo "$as_me: error: cannot find input file: $f" >&2;}
8486 { (exit 1); exit 1; }; }
8487 echo "$f";;
8488 *) # Relative
8489 if test -f "$f"; then
8490 # Build tree
8491 echo "$f"
8492 elif test -f "$srcdir/$f"; then
8493 # Source tree
8494 echo "$srcdir/$f"
8495 else
8496 # /dev/null tree
8497 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8498 echo "$as_me: error: cannot find input file: $f" >&2;}
8499 { (exit 1); exit 1; }; }
8500 fi;;
8501 esac
8502 done` || { (exit 1); exit 1; }
8504 if test x"$ac_file" != x-; then
8505 { echo "$as_me:$LINENO: creating $ac_file" >&5
8506 echo "$as_me: creating $ac_file" >&6;}
8507 rm -f "$ac_file"
8509 _ACEOF
8510 cat >>$CONFIG_STATUS <<_ACEOF
8511 sed "$ac_vpsub
8512 $extrasub
8513 _ACEOF
8514 cat >>$CONFIG_STATUS <<\_ACEOF
8516 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8517 s,@configure_input@,$configure_input,;t t
8518 s,@srcdir@,$ac_srcdir,;t t
8519 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8520 s,@top_srcdir@,$ac_top_srcdir,;t t
8521 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8522 s,@builddir@,$ac_builddir,;t t
8523 s,@abs_builddir@,$ac_abs_builddir,;t t
8524 s,@top_builddir@,$ac_top_builddir,;t t
8525 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8526 s,@INSTALL@,$ac_INSTALL,;t t
8527 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8528 rm -f $tmp/stdin
8529 if test x"$ac_file" != x-; then
8530 mv $tmp/out $ac_file
8531 else
8532 cat $tmp/out
8533 rm -f $tmp/out
8536 done
8537 _ACEOF
8538 cat >>$CONFIG_STATUS <<\_ACEOF
8541 # CONFIG_HEADER section.
8544 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8545 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8547 # ac_d sets the value in "#define NAME VALUE" lines.
8548 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8549 ac_dB='[ ].*$,\1#\2'
8550 ac_dC=' '
8551 ac_dD=',;t'
8552 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8553 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8554 ac_uB='$,\1#\2define\3'
8555 ac_uC=' '
8556 ac_uD=',;t'
8558 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8559 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8560 case $ac_file in
8561 - | *:- | *:-:* ) # input from stdin
8562 cat >$tmp/stdin
8563 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8564 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8565 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8566 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8567 * ) ac_file_in=$ac_file.in ;;
8568 esac
8570 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8571 echo "$as_me: creating $ac_file" >&6;}
8573 # First look for the input files in the build tree, otherwise in the
8574 # src tree.
8575 ac_file_inputs=`IFS=:
8576 for f in $ac_file_in; do
8577 case $f in
8578 -) echo $tmp/stdin ;;
8579 [\\/$]*)
8580 # Absolute (can't be DOS-style, as IFS=:)
8581 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8582 echo "$as_me: error: cannot find input file: $f" >&2;}
8583 { (exit 1); exit 1; }; }
8584 # Do quote $f, to prevent DOS paths from being IFS'd.
8585 echo "$f";;
8586 *) # Relative
8587 if test -f "$f"; then
8588 # Build tree
8589 echo "$f"
8590 elif test -f "$srcdir/$f"; then
8591 # Source tree
8592 echo "$srcdir/$f"
8593 else
8594 # /dev/null tree
8595 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8596 echo "$as_me: error: cannot find input file: $f" >&2;}
8597 { (exit 1); exit 1; }; }
8598 fi;;
8599 esac
8600 done` || { (exit 1); exit 1; }
8601 # Remove the trailing spaces.
8602 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8604 _ACEOF
8606 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8607 # `conftest.undefs', that substitutes the proper values into
8608 # config.h.in to produce config.h. The first handles `#define'
8609 # templates, and the second `#undef' templates.
8610 # And first: Protect against being on the right side of a sed subst in
8611 # config.status. Protect against being in an unquoted here document
8612 # in config.status.
8613 rm -f conftest.defines conftest.undefs
8614 # Using a here document instead of a string reduces the quoting nightmare.
8615 # Putting comments in sed scripts is not portable.
8617 # `end' is used to avoid that the second main sed command (meant for
8618 # 0-ary CPP macros) applies to n-ary macro definitions.
8619 # See the Autoconf documentation for `clear'.
8620 cat >confdef2sed.sed <<\_ACEOF
8621 s/[\\&,]/\\&/g
8622 s,[\\$`],\\&,g
8623 t clear
8624 : clear
8625 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8626 t end
8627 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8628 : end
8629 _ACEOF
8630 # If some macros were called several times there might be several times
8631 # the same #defines, which is useless. Nevertheless, we may not want to
8632 # sort them, since we want the *last* AC-DEFINE to be honored.
8633 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8634 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8635 rm -f confdef2sed.sed
8637 # This sed command replaces #undef with comments. This is necessary, for
8638 # example, in the case of _POSIX_SOURCE, which is predefined and required
8639 # on some systems where configure will not decide to define it.
8640 cat >>conftest.undefs <<\_ACEOF
8641 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8642 _ACEOF
8644 # Break up conftest.defines because some shells have a limit on the size
8645 # of here documents, and old seds have small limits too (100 cmds).
8646 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8647 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8648 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8649 echo ' :' >>$CONFIG_STATUS
8650 rm -f conftest.tail
8651 while grep . conftest.defines >/dev/null
8653 # Write a limited-size here document to $tmp/defines.sed.
8654 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8655 # Speed up: don't consider the non `#define' lines.
8656 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8657 # Work around the forget-to-reset-the-flag bug.
8658 echo 't clr' >>$CONFIG_STATUS
8659 echo ': clr' >>$CONFIG_STATUS
8660 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8661 echo 'CEOF
8662 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8663 rm -f $tmp/in
8664 mv $tmp/out $tmp/in
8665 ' >>$CONFIG_STATUS
8666 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8667 rm -f conftest.defines
8668 mv conftest.tail conftest.defines
8669 done
8670 rm -f conftest.defines
8671 echo ' fi # grep' >>$CONFIG_STATUS
8672 echo >>$CONFIG_STATUS
8674 # Break up conftest.undefs because some shells have a limit on the size
8675 # of here documents, and old seds have small limits too (100 cmds).
8676 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8677 rm -f conftest.tail
8678 while grep . conftest.undefs >/dev/null
8680 # Write a limited-size here document to $tmp/undefs.sed.
8681 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8682 # Speed up: don't consider the non `#undef'
8683 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8684 # Work around the forget-to-reset-the-flag bug.
8685 echo 't clr' >>$CONFIG_STATUS
8686 echo ': clr' >>$CONFIG_STATUS
8687 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8688 echo 'CEOF
8689 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8690 rm -f $tmp/in
8691 mv $tmp/out $tmp/in
8692 ' >>$CONFIG_STATUS
8693 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8694 rm -f conftest.undefs
8695 mv conftest.tail conftest.undefs
8696 done
8697 rm -f conftest.undefs
8699 cat >>$CONFIG_STATUS <<\_ACEOF
8700 # Let's still pretend it is `configure' which instantiates (i.e., don't
8701 # use $as_me), people would be surprised to read:
8702 # /* config.h. Generated by config.status. */
8703 if test x"$ac_file" = x-; then
8704 echo "/* Generated by configure. */" >$tmp/config.h
8705 else
8706 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8708 cat $tmp/in >>$tmp/config.h
8709 rm -f $tmp/in
8710 if test x"$ac_file" != x-; then
8711 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8712 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8713 echo "$as_me: $ac_file is unchanged" >&6;}
8714 else
8715 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8716 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8717 X"$ac_file" : 'X\(//\)[^/]' \| \
8718 X"$ac_file" : 'X\(//\)$' \| \
8719 X"$ac_file" : 'X\(/\)' \| \
8720 . : '\(.\)' 2>/dev/null ||
8721 echo X"$ac_file" |
8722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8723 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8724 /^X\(\/\/\)$/{ s//\1/; q; }
8725 /^X\(\/\).*/{ s//\1/; q; }
8726 s/.*/./; q'`
8727 { if $as_mkdir_p; then
8728 mkdir -p "$ac_dir"
8729 else
8730 as_dir="$ac_dir"
8731 as_dirs=
8732 while test ! -d "$as_dir"; do
8733 as_dirs="$as_dir $as_dirs"
8734 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8735 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8736 X"$as_dir" : 'X\(//\)[^/]' \| \
8737 X"$as_dir" : 'X\(//\)$' \| \
8738 X"$as_dir" : 'X\(/\)' \| \
8739 . : '\(.\)' 2>/dev/null ||
8740 echo X"$as_dir" |
8741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8742 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8743 /^X\(\/\/\)$/{ s//\1/; q; }
8744 /^X\(\/\).*/{ s//\1/; q; }
8745 s/.*/./; q'`
8746 done
8747 test ! -n "$as_dirs" || mkdir $as_dirs
8748 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8749 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8750 { (exit 1); exit 1; }; }; }
8752 rm -f $ac_file
8753 mv $tmp/config.h $ac_file
8755 else
8756 cat $tmp/config.h
8757 rm -f $tmp/config.h
8759 # Run the commands associated with the file.
8760 case $ac_file in
8761 config.h ) # update the timestamp
8762 echo 'timestamp for config.h' >"./stamp-h1"
8764 esac
8765 done
8766 _ACEOF
8767 cat >>$CONFIG_STATUS <<\_ACEOF
8770 # CONFIG_COMMANDS section.
8772 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8773 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8774 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8775 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8776 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8777 X"$ac_dest" : 'X\(//\)[^/]' \| \
8778 X"$ac_dest" : 'X\(//\)$' \| \
8779 X"$ac_dest" : 'X\(/\)' \| \
8780 . : '\(.\)' 2>/dev/null ||
8781 echo X"$ac_dest" |
8782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8783 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8784 /^X\(\/\/\)$/{ s//\1/; q; }
8785 /^X\(\/\).*/{ s//\1/; q; }
8786 s/.*/./; q'`
8787 { if $as_mkdir_p; then
8788 mkdir -p "$ac_dir"
8789 else
8790 as_dir="$ac_dir"
8791 as_dirs=
8792 while test ! -d "$as_dir"; do
8793 as_dirs="$as_dir $as_dirs"
8794 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8795 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8796 X"$as_dir" : 'X\(//\)[^/]' \| \
8797 X"$as_dir" : 'X\(//\)$' \| \
8798 X"$as_dir" : 'X\(/\)' \| \
8799 . : '\(.\)' 2>/dev/null ||
8800 echo X"$as_dir" |
8801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8802 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8803 /^X\(\/\/\)$/{ s//\1/; q; }
8804 /^X\(\/\).*/{ s//\1/; q; }
8805 s/.*/./; q'`
8806 done
8807 test ! -n "$as_dirs" || mkdir $as_dirs
8808 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8809 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8810 { (exit 1); exit 1; }; }; }
8812 ac_builddir=.
8814 if test "$ac_dir" != .; then
8815 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8816 # A "../" for each directory in $ac_dir_suffix.
8817 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8818 else
8819 ac_dir_suffix= ac_top_builddir=
8822 case $srcdir in
8823 .) # No --srcdir option. We are building in place.
8824 ac_srcdir=.
8825 if test -z "$ac_top_builddir"; then
8826 ac_top_srcdir=.
8827 else
8828 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8829 fi ;;
8830 [\\/]* | ?:[\\/]* ) # Absolute path.
8831 ac_srcdir=$srcdir$ac_dir_suffix;
8832 ac_top_srcdir=$srcdir ;;
8833 *) # Relative path.
8834 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8835 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8836 esac
8838 # Do not use `cd foo && pwd` to compute absolute paths, because
8839 # the directories may not exist.
8840 case `pwd` in
8841 .) ac_abs_builddir="$ac_dir";;
8843 case "$ac_dir" in
8844 .) ac_abs_builddir=`pwd`;;
8845 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8846 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8847 esac;;
8848 esac
8849 case $ac_abs_builddir in
8850 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8852 case ${ac_top_builddir}. in
8853 .) ac_abs_top_builddir=$ac_abs_builddir;;
8854 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8855 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8856 esac;;
8857 esac
8858 case $ac_abs_builddir in
8859 .) ac_abs_srcdir=$ac_srcdir;;
8861 case $ac_srcdir in
8862 .) ac_abs_srcdir=$ac_abs_builddir;;
8863 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8864 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8865 esac;;
8866 esac
8867 case $ac_abs_builddir in
8868 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8870 case $ac_top_srcdir in
8871 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8872 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8873 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8874 esac;;
8875 esac
8878 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8879 echo "$as_me: executing $ac_dest commands" >&6;}
8880 case $ac_dest in
8881 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8882 # Strip MF so we end up with the name of the file.
8883 mf=`echo "$mf" | sed -e 's/:.*$//'`
8884 # Check whether this is an Automake generated Makefile or not.
8885 # We used to match only the files named `Makefile.in', but
8886 # some people rename them; so instead we look at the file content.
8887 # Grep'ing the first line is not enough: some people post-process
8888 # each Makefile.in and add a new line on top of each file to say so.
8889 # So let's grep whole file.
8890 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8891 dirpart=`(dirname "$mf") 2>/dev/null ||
8892 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8893 X"$mf" : 'X\(//\)[^/]' \| \
8894 X"$mf" : 'X\(//\)$' \| \
8895 X"$mf" : 'X\(/\)' \| \
8896 . : '\(.\)' 2>/dev/null ||
8897 echo X"$mf" |
8898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8899 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8900 /^X\(\/\/\)$/{ s//\1/; q; }
8901 /^X\(\/\).*/{ s//\1/; q; }
8902 s/.*/./; q'`
8903 else
8904 continue
8906 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
8907 # Extract the definition of DEP_FILES from the Makefile without
8908 # running `make'.
8909 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
8910 test -z "$DEPDIR" && continue
8911 # When using ansi2knr, U may be empty or an underscore; expand it
8912 U=`sed -n -e '/^U = / s///p' < "$mf"`
8913 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
8914 # We invoke sed twice because it is the simplest approach to
8915 # changing $(DEPDIR) to its actual value in the expansion.
8916 for file in `sed -n -e '
8917 /^DEP_FILES = .*\\\\$/ {
8918 s/^DEP_FILES = //
8919 :loop
8920 s/\\\\$//
8923 /\\\\$/ b loop
8926 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
8927 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8928 # Make sure the directory exists.
8929 test -f "$dirpart/$file" && continue
8930 fdir=`(dirname "$file") 2>/dev/null ||
8931 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8932 X"$file" : 'X\(//\)[^/]' \| \
8933 X"$file" : 'X\(//\)$' \| \
8934 X"$file" : 'X\(/\)' \| \
8935 . : '\(.\)' 2>/dev/null ||
8936 echo X"$file" |
8937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8938 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8939 /^X\(\/\/\)$/{ s//\1/; q; }
8940 /^X\(\/\).*/{ s//\1/; q; }
8941 s/.*/./; q'`
8942 { if $as_mkdir_p; then
8943 mkdir -p $dirpart/$fdir
8944 else
8945 as_dir=$dirpart/$fdir
8946 as_dirs=
8947 while test ! -d "$as_dir"; do
8948 as_dirs="$as_dir $as_dirs"
8949 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8950 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8951 X"$as_dir" : 'X\(//\)[^/]' \| \
8952 X"$as_dir" : 'X\(//\)$' \| \
8953 X"$as_dir" : 'X\(/\)' \| \
8954 . : '\(.\)' 2>/dev/null ||
8955 echo X"$as_dir" |
8956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8957 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8958 /^X\(\/\/\)$/{ s//\1/; q; }
8959 /^X\(\/\).*/{ s//\1/; q; }
8960 s/.*/./; q'`
8961 done
8962 test ! -n "$as_dirs" || mkdir $as_dirs
8963 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
8964 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
8965 { (exit 1); exit 1; }; }; }
8967 # echo "creating $dirpart/$file"
8968 echo '# dummy' > "$dirpart/$file"
8969 done
8970 done
8972 esac
8973 done
8974 _ACEOF
8976 cat >>$CONFIG_STATUS <<\_ACEOF
8978 { (exit 0); exit 0; }
8979 _ACEOF
8980 chmod +x $CONFIG_STATUS
8981 ac_clean_files=$ac_clean_files_save
8984 # configure is writing to config.log, and then calls config.status.
8985 # config.status does its own redirection, appending to config.log.
8986 # Unfortunately, on DOS this fails, as config.log is still kept open
8987 # by configure, so config.status won't be able to write to it; its
8988 # output is simply discarded. So we exec the FD to /dev/null,
8989 # effectively closing config.log, so it can be properly (re)opened and
8990 # appended to by config.status. When coming back to configure, we
8991 # need to make the FD available again.
8992 if test "$no_create" != yes; then
8993 ac_cs_success=:
8994 ac_config_status_args=
8995 test "$silent" = yes &&
8996 ac_config_status_args="$ac_config_status_args --quiet"
8997 exec 5>/dev/null
8998 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8999 exec 5>>config.log
9000 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9001 # would make configure fail if this is the last instruction.
9002 $ac_cs_success || { (exit 1); exit 1; }
9005 chmod 0444 wmbiff/wmbiffrc.5