wmmoonclock: Bump to version 1.29.
[dockapps.git] / wmwork / src / configure
blobe46ac0a8116c8e197283cf4d1748cbc267035ce5
1 #! /bin/sh
2 # From configure.ac Revision: 1.19 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for wmwork 0.2.5.
6 # Report bugs to <martin@godisch.de>.
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
25 DUALCASE=1; export DUALCASE # for MKS sh
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29 as_unset=unset
30 else
31 as_unset=false
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
41 # NLS nuisances.
42 for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
52 done
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57 else
58 as_expr=false
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63 else
64 as_basename=false
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
99 rm -f conf$$.sh
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155 done
157 esac
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199 else
200 as_expr=false
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216 else
217 as_ln_s='cp -p'
219 rm -f conf$$ conf$$.exe conf$$.file
221 if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223 else
224 test -d ./-p && rmdir ./-p
225 as_mkdir_p=false
228 as_executable_p="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
241 IFS=" $as_nl"
243 # CDPATH.
244 $as_unset CDPATH
247 # Name of the host.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252 exec 6>&1
255 # Initializations.
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
259 cross_compiling=no
260 subdirs=
261 MFLAGS=
262 MAKEFLAGS=
263 SHELL=${CONFIG_SHELL-/bin/sh}
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete. It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
270 # Identity of this package.
271 PACKAGE_NAME='wmwork'
272 PACKAGE_TARNAME='wmwork'
273 PACKAGE_VERSION='0.2.5'
274 PACKAGE_STRING='wmwork 0.2.5'
275 PACKAGE_BUGREPORT='martin@godisch.de'
277 ac_unique_file="wmwork.c"
278 # Factoring default headers for most tests.
279 ac_includes_default="\
280 #include <stdio.h>
281 #if HAVE_SYS_TYPES_H
282 # include <sys/types.h>
283 #endif
284 #if HAVE_SYS_STAT_H
285 # include <sys/stat.h>
286 #endif
287 #if STDC_HEADERS
288 # include <stdlib.h>
289 # include <stddef.h>
290 #else
291 # if HAVE_STDLIB_H
292 # include <stdlib.h>
293 # endif
294 #endif
295 #if HAVE_STRING_H
296 # if !STDC_HEADERS && HAVE_MEMORY_H
297 # include <memory.h>
298 # endif
299 # include <string.h>
300 #endif
301 #if HAVE_STRINGS_H
302 # include <strings.h>
303 #endif
304 #if HAVE_INTTYPES_H
305 # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 # include <stdint.h>
309 # endif
310 #endif
311 #if HAVE_UNISTD_H
312 # include <unistd.h>
313 #endif"
315 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS EGREP LIBOBJS LTLIBOBJS'
316 ac_subst_files=''
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_libraries=NONE
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
356 ac_prev=
357 for ac_option
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
370 case $ac_option in
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 bindir=$ac_optarg ;;
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
389 --config-cache | -C)
390 cache_file=config.cache ;;
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
396 datadir=$ac_optarg ;;
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 *) ac_optarg=yes ;;
417 esac
418 eval "enable_$ac_feature='$ac_optarg'" ;;
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir=$ac_optarg ;;
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir=$ac_optarg ;;
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
489 no_create=yes ;;
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix=$ac_optarg ;;
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
548 sbindir=$ac_optarg ;;
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
559 sharedstatedir=$ac_optarg ;;
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site=$ac_optarg ;;
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir=$ac_optarg ;;
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
589 -with-* | --with-*)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 *) ac_optarg=yes ;;
599 esac
600 eval "with_$ac_package='$ac_optarg'" ;;
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 esac
653 done
655 if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670 done
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
681 esac
682 done
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705 test "$silent" = yes && exec 6>/dev/null
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718 echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
728 else
729 ac_srcdir_defaulted=no
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
735 else
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
757 ac_env_CC_value=$CC
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CPP_set=${CPP+set}
773 ac_env_CPP_value=$CPP
774 ac_cv_env_CPP_set=${CPP+set}
775 ac_cv_env_CPP_value=$CPP
778 # Report the --help message.
780 if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
783 cat <<_ACEOF
784 \`configure' configures wmwork 0.2.5 to adapt to many kinds of systems.
786 Usage: $0 [OPTION]... [VAR=VALUE]...
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
791 Defaults for the options are specified in brackets.
793 Configuration:
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 _ACEOF
806 cat <<_ACEOF
807 Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
809 [$ac_default_prefix]
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 [PREFIX]
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
818 For better control, use the options below.
820 Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
833 _ACEOF
835 cat <<\_ACEOF
837 X features:
838 --x-includes=DIR X include files are in DIR
839 --x-libraries=DIR X library files are in DIR
840 _ACEOF
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of wmwork 0.2.5:";;
846 esac
847 cat <<\_ACEOF
849 Optional Packages:
850 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
851 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
852 --with-x use the X Window System
854 Some influential environment variables:
855 CC C compiler command
856 CFLAGS C compiler flags
857 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
858 nonstandard directory <lib dir>
859 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
860 headers in a nonstandard directory <include dir>
861 CPP C preprocessor
863 Use these variables to override the choices made by `configure' or to help
864 it to find libraries and programs with nonstandard names/locations.
866 Report bugs to <martin@godisch.de>.
867 _ACEOF
870 if test "$ac_init_help" = "recursive"; then
871 # If there are subdirs, report their specific --help.
872 ac_popdir=`pwd`
873 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
874 test -d $ac_dir || continue
875 ac_builddir=.
877 if test "$ac_dir" != .; then
878 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
879 # A "../" for each directory in $ac_dir_suffix.
880 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
881 else
882 ac_dir_suffix= ac_top_builddir=
885 case $srcdir in
886 .) # No --srcdir option. We are building in place.
887 ac_srcdir=.
888 if test -z "$ac_top_builddir"; then
889 ac_top_srcdir=.
890 else
891 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
892 fi ;;
893 [\\/]* | ?:[\\/]* ) # Absolute path.
894 ac_srcdir=$srcdir$ac_dir_suffix;
895 ac_top_srcdir=$srcdir ;;
896 *) # Relative path.
897 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
898 ac_top_srcdir=$ac_top_builddir$srcdir ;;
899 esac
901 # Do not use `cd foo && pwd` to compute absolute paths, because
902 # the directories may not exist.
903 case `pwd` in
904 .) ac_abs_builddir="$ac_dir";;
906 case "$ac_dir" in
907 .) ac_abs_builddir=`pwd`;;
908 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
909 *) ac_abs_builddir=`pwd`/"$ac_dir";;
910 esac;;
911 esac
912 case $ac_abs_builddir in
913 .) ac_abs_top_builddir=${ac_top_builddir}.;;
915 case ${ac_top_builddir}. in
916 .) ac_abs_top_builddir=$ac_abs_builddir;;
917 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
918 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
919 esac;;
920 esac
921 case $ac_abs_builddir in
922 .) ac_abs_srcdir=$ac_srcdir;;
924 case $ac_srcdir in
925 .) ac_abs_srcdir=$ac_abs_builddir;;
926 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
927 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
928 esac;;
929 esac
930 case $ac_abs_builddir in
931 .) ac_abs_top_srcdir=$ac_top_srcdir;;
933 case $ac_top_srcdir in
934 .) ac_abs_top_srcdir=$ac_abs_builddir;;
935 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
936 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
937 esac;;
938 esac
940 cd $ac_dir
941 # Check for guested configure; otherwise get Cygnus style configure.
942 if test -f $ac_srcdir/configure.gnu; then
943 echo
944 $SHELL $ac_srcdir/configure.gnu --help=recursive
945 elif test -f $ac_srcdir/configure; then
946 echo
947 $SHELL $ac_srcdir/configure --help=recursive
948 elif test -f $ac_srcdir/configure.ac ||
949 test -f $ac_srcdir/configure.in; then
950 echo
951 $ac_configure --help
952 else
953 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
955 cd "$ac_popdir"
956 done
959 test -n "$ac_init_help" && exit 0
960 if $ac_init_version; then
961 cat <<\_ACEOF
962 wmwork configure 0.2.5
963 generated by GNU Autoconf 2.59
965 Copyright (C) 2003 Free Software Foundation, Inc.
966 This configure script is free software; the Free Software Foundation
967 gives unlimited permission to copy, distribute and modify it.
968 _ACEOF
969 exit 0
971 exec 5>config.log
972 cat >&5 <<_ACEOF
973 This file contains any messages produced by compilers while
974 running configure, to aid debugging if configure makes a mistake.
976 It was created by wmwork $as_me 0.2.5, which was
977 generated by GNU Autoconf 2.59. Invocation command line was
979 $ $0 $@
981 _ACEOF
983 cat <<_ASUNAME
984 ## --------- ##
985 ## Platform. ##
986 ## --------- ##
988 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
989 uname -m = `(uname -m) 2>/dev/null || echo unknown`
990 uname -r = `(uname -r) 2>/dev/null || echo unknown`
991 uname -s = `(uname -s) 2>/dev/null || echo unknown`
992 uname -v = `(uname -v) 2>/dev/null || echo unknown`
994 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
995 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
997 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
998 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
999 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1000 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1001 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1002 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1003 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1005 _ASUNAME
1007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1008 for as_dir in $PATH
1010 IFS=$as_save_IFS
1011 test -z "$as_dir" && as_dir=.
1012 echo "PATH: $as_dir"
1013 done
1015 } >&5
1017 cat >&5 <<_ACEOF
1020 ## ----------- ##
1021 ## Core tests. ##
1022 ## ----------- ##
1024 _ACEOF
1027 # Keep a trace of the command line.
1028 # Strip out --no-create and --no-recursion so they do not pile up.
1029 # Strip out --silent because we don't want to record it for future runs.
1030 # Also quote any args containing shell meta-characters.
1031 # Make two passes to allow for proper duplicate-argument suppression.
1032 ac_configure_args=
1033 ac_configure_args0=
1034 ac_configure_args1=
1035 ac_sep=
1036 ac_must_keep_next=false
1037 for ac_pass in 1 2
1039 for ac_arg
1041 case $ac_arg in
1042 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1044 | -silent | --silent | --silen | --sile | --sil)
1045 continue ;;
1046 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1047 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1048 esac
1049 case $ac_pass in
1050 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1052 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1053 if test $ac_must_keep_next = true; then
1054 ac_must_keep_next=false # Got value, back to normal.
1055 else
1056 case $ac_arg in
1057 *=* | --config-cache | -C | -disable-* | --disable-* \
1058 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1059 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1060 | -with-* | --with-* | -without-* | --without-* | --x)
1061 case "$ac_configure_args0 " in
1062 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1063 esac
1065 -* ) ac_must_keep_next=true ;;
1066 esac
1068 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1069 # Get rid of the leading space.
1070 ac_sep=" "
1072 esac
1073 done
1074 done
1075 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1076 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1078 # When interrupted or exit'd, cleanup temporary files, and complete
1079 # config.log. We remove comments because anyway the quotes in there
1080 # would cause problems or look ugly.
1081 # WARNING: Be sure not to use single quotes in there, as some shells,
1082 # such as our DU 5.0 friend, will then `close' the trap.
1083 trap 'exit_status=$?
1084 # Save into config.log some information that might help in debugging.
1086 echo
1088 cat <<\_ASBOX
1089 ## ---------------- ##
1090 ## Cache variables. ##
1091 ## ---------------- ##
1092 _ASBOX
1093 echo
1094 # The following way of writing the cache mishandles newlines in values,
1096 (set) 2>&1 |
1097 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1098 *ac_space=\ *)
1099 sed -n \
1100 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1101 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1104 sed -n \
1105 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1107 esac;
1109 echo
1111 cat <<\_ASBOX
1112 ## ----------------- ##
1113 ## Output variables. ##
1114 ## ----------------- ##
1115 _ASBOX
1116 echo
1117 for ac_var in $ac_subst_vars
1119 eval ac_val=$`echo $ac_var`
1120 echo "$ac_var='"'"'$ac_val'"'"'"
1121 done | sort
1122 echo
1124 if test -n "$ac_subst_files"; then
1125 cat <<\_ASBOX
1126 ## ------------- ##
1127 ## Output files. ##
1128 ## ------------- ##
1129 _ASBOX
1130 echo
1131 for ac_var in $ac_subst_files
1133 eval ac_val=$`echo $ac_var`
1134 echo "$ac_var='"'"'$ac_val'"'"'"
1135 done | sort
1136 echo
1139 if test -s confdefs.h; then
1140 cat <<\_ASBOX
1141 ## ----------- ##
1142 ## confdefs.h. ##
1143 ## ----------- ##
1144 _ASBOX
1145 echo
1146 sed "/^$/d" confdefs.h | sort
1147 echo
1149 test "$ac_signal" != 0 &&
1150 echo "$as_me: caught signal $ac_signal"
1151 echo "$as_me: exit $exit_status"
1152 } >&5
1153 rm -f core *.core &&
1154 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1155 exit $exit_status
1157 for ac_signal in 1 2 13 15; do
1158 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1159 done
1160 ac_signal=0
1162 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1163 rm -rf conftest* confdefs.h
1164 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1165 echo >confdefs.h
1167 # Predefined preprocessor variables.
1169 cat >>confdefs.h <<_ACEOF
1170 #define PACKAGE_NAME "$PACKAGE_NAME"
1171 _ACEOF
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1176 _ACEOF
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1181 _ACEOF
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_STRING "$PACKAGE_STRING"
1186 _ACEOF
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1191 _ACEOF
1194 # Let the site file select an alternate cache file if it wants to.
1195 # Prefer explicitly selected file to automatically selected ones.
1196 if test -z "$CONFIG_SITE"; then
1197 if test "x$prefix" != xNONE; then
1198 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1199 else
1200 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1203 for ac_site_file in $CONFIG_SITE; do
1204 if test -r "$ac_site_file"; then
1205 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1206 echo "$as_me: loading site script $ac_site_file" >&6;}
1207 sed 's/^/| /' "$ac_site_file" >&5
1208 . "$ac_site_file"
1210 done
1212 if test -r "$cache_file"; then
1213 # Some versions of bash will fail to source /dev/null (special
1214 # files actually), so we avoid doing that.
1215 if test -f "$cache_file"; then
1216 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1217 echo "$as_me: loading cache $cache_file" >&6;}
1218 case $cache_file in
1219 [\\/]* | ?:[\\/]* ) . $cache_file;;
1220 *) . ./$cache_file;;
1221 esac
1223 else
1224 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1225 echo "$as_me: creating cache $cache_file" >&6;}
1226 >$cache_file
1229 # Check that the precious variables saved in the cache have kept the same
1230 # value.
1231 ac_cache_corrupted=false
1232 for ac_var in `(set) 2>&1 |
1233 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1234 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1235 eval ac_new_set=\$ac_env_${ac_var}_set
1236 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1237 eval ac_new_val="\$ac_env_${ac_var}_value"
1238 case $ac_old_set,$ac_new_set in
1239 set,)
1240 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1241 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1242 ac_cache_corrupted=: ;;
1243 ,set)
1244 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1245 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1246 ac_cache_corrupted=: ;;
1247 ,);;
1249 if test "x$ac_old_val" != "x$ac_new_val"; then
1250 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1251 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1252 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1253 echo "$as_me: former value: $ac_old_val" >&2;}
1254 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1255 echo "$as_me: current value: $ac_new_val" >&2;}
1256 ac_cache_corrupted=:
1257 fi;;
1258 esac
1259 # Pass precious variables to config.status.
1260 if test "$ac_new_set" = set; then
1261 case $ac_new_val in
1262 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1263 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1264 *) ac_arg=$ac_var=$ac_new_val ;;
1265 esac
1266 case " $ac_configure_args " in
1267 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1268 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1269 esac
1271 done
1272 if $ac_cache_corrupted; then
1273 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1274 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1275 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1276 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1277 { (exit 1); exit 1; }; }
1280 ac_ext=c
1281 ac_cpp='$CPP $CPPFLAGS'
1282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1314 ac_config_headers="$ac_config_headers config.h"
1316 # ----------------------------------------------------------------------------
1317 ac_ext=c
1318 ac_cpp='$CPP $CPPFLAGS'
1319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1322 if test -n "$ac_tool_prefix"; then
1323 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1324 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1325 echo "$as_me:$LINENO: checking for $ac_word" >&5
1326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1327 if test "${ac_cv_prog_CC+set}" = set; then
1328 echo $ECHO_N "(cached) $ECHO_C" >&6
1329 else
1330 if test -n "$CC"; then
1331 ac_cv_prog_CC="$CC" # Let the user override the test.
1332 else
1333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1334 for as_dir in $PATH
1336 IFS=$as_save_IFS
1337 test -z "$as_dir" && as_dir=.
1338 for ac_exec_ext in '' $ac_executable_extensions; do
1339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1340 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1342 break 2
1344 done
1345 done
1349 CC=$ac_cv_prog_CC
1350 if test -n "$CC"; then
1351 echo "$as_me:$LINENO: result: $CC" >&5
1352 echo "${ECHO_T}$CC" >&6
1353 else
1354 echo "$as_me:$LINENO: result: no" >&5
1355 echo "${ECHO_T}no" >&6
1359 if test -z "$ac_cv_prog_CC"; then
1360 ac_ct_CC=$CC
1361 # Extract the first word of "gcc", so it can be a program name with args.
1362 set dummy gcc; ac_word=$2
1363 echo "$as_me:$LINENO: checking for $ac_word" >&5
1364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1365 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1366 echo $ECHO_N "(cached) $ECHO_C" >&6
1367 else
1368 if test -n "$ac_ct_CC"; then
1369 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1370 else
1371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1372 for as_dir in $PATH
1374 IFS=$as_save_IFS
1375 test -z "$as_dir" && as_dir=.
1376 for ac_exec_ext in '' $ac_executable_extensions; do
1377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1378 ac_cv_prog_ac_ct_CC="gcc"
1379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1380 break 2
1382 done
1383 done
1387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1388 if test -n "$ac_ct_CC"; then
1389 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1390 echo "${ECHO_T}$ac_ct_CC" >&6
1391 else
1392 echo "$as_me:$LINENO: result: no" >&5
1393 echo "${ECHO_T}no" >&6
1396 CC=$ac_ct_CC
1397 else
1398 CC="$ac_cv_prog_CC"
1401 if test -z "$CC"; then
1402 if test -n "$ac_tool_prefix"; then
1403 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1404 set dummy ${ac_tool_prefix}cc; ac_word=$2
1405 echo "$as_me:$LINENO: checking for $ac_word" >&5
1406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1407 if test "${ac_cv_prog_CC+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1409 else
1410 if test -n "$CC"; then
1411 ac_cv_prog_CC="$CC" # Let the user override the test.
1412 else
1413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1414 for as_dir in $PATH
1416 IFS=$as_save_IFS
1417 test -z "$as_dir" && as_dir=.
1418 for ac_exec_ext in '' $ac_executable_extensions; do
1419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1420 ac_cv_prog_CC="${ac_tool_prefix}cc"
1421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1422 break 2
1424 done
1425 done
1429 CC=$ac_cv_prog_CC
1430 if test -n "$CC"; then
1431 echo "$as_me:$LINENO: result: $CC" >&5
1432 echo "${ECHO_T}$CC" >&6
1433 else
1434 echo "$as_me:$LINENO: result: no" >&5
1435 echo "${ECHO_T}no" >&6
1439 if test -z "$ac_cv_prog_CC"; then
1440 ac_ct_CC=$CC
1441 # Extract the first word of "cc", so it can be a program name with args.
1442 set dummy cc; ac_word=$2
1443 echo "$as_me:$LINENO: checking for $ac_word" >&5
1444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1445 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1446 echo $ECHO_N "(cached) $ECHO_C" >&6
1447 else
1448 if test -n "$ac_ct_CC"; then
1449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1450 else
1451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1452 for as_dir in $PATH
1454 IFS=$as_save_IFS
1455 test -z "$as_dir" && as_dir=.
1456 for ac_exec_ext in '' $ac_executable_extensions; do
1457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1458 ac_cv_prog_ac_ct_CC="cc"
1459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1460 break 2
1462 done
1463 done
1467 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1468 if test -n "$ac_ct_CC"; then
1469 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1470 echo "${ECHO_T}$ac_ct_CC" >&6
1471 else
1472 echo "$as_me:$LINENO: result: no" >&5
1473 echo "${ECHO_T}no" >&6
1476 CC=$ac_ct_CC
1477 else
1478 CC="$ac_cv_prog_CC"
1482 if test -z "$CC"; then
1483 # Extract the first word of "cc", so it can be a program name with args.
1484 set dummy cc; ac_word=$2
1485 echo "$as_me:$LINENO: checking for $ac_word" >&5
1486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1487 if test "${ac_cv_prog_CC+set}" = set; then
1488 echo $ECHO_N "(cached) $ECHO_C" >&6
1489 else
1490 if test -n "$CC"; then
1491 ac_cv_prog_CC="$CC" # Let the user override the test.
1492 else
1493 ac_prog_rejected=no
1494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1495 for as_dir in $PATH
1497 IFS=$as_save_IFS
1498 test -z "$as_dir" && as_dir=.
1499 for ac_exec_ext in '' $ac_executable_extensions; do
1500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1501 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1502 ac_prog_rejected=yes
1503 continue
1505 ac_cv_prog_CC="cc"
1506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1507 break 2
1509 done
1510 done
1512 if test $ac_prog_rejected = yes; then
1513 # We found a bogon in the path, so make sure we never use it.
1514 set dummy $ac_cv_prog_CC
1515 shift
1516 if test $# != 0; then
1517 # We chose a different compiler from the bogus one.
1518 # However, it has the same basename, so the bogon will be chosen
1519 # first if we set CC to just the basename; use the full file name.
1520 shift
1521 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1526 CC=$ac_cv_prog_CC
1527 if test -n "$CC"; then
1528 echo "$as_me:$LINENO: result: $CC" >&5
1529 echo "${ECHO_T}$CC" >&6
1530 else
1531 echo "$as_me:$LINENO: result: no" >&5
1532 echo "${ECHO_T}no" >&6
1536 if test -z "$CC"; then
1537 if test -n "$ac_tool_prefix"; then
1538 for ac_prog in cl
1540 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1541 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1542 echo "$as_me:$LINENO: checking for $ac_word" >&5
1543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1544 if test "${ac_cv_prog_CC+set}" = set; then
1545 echo $ECHO_N "(cached) $ECHO_C" >&6
1546 else
1547 if test -n "$CC"; then
1548 ac_cv_prog_CC="$CC" # Let the user override the test.
1549 else
1550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1551 for as_dir in $PATH
1553 IFS=$as_save_IFS
1554 test -z "$as_dir" && as_dir=.
1555 for ac_exec_ext in '' $ac_executable_extensions; do
1556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1557 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1559 break 2
1561 done
1562 done
1566 CC=$ac_cv_prog_CC
1567 if test -n "$CC"; then
1568 echo "$as_me:$LINENO: result: $CC" >&5
1569 echo "${ECHO_T}$CC" >&6
1570 else
1571 echo "$as_me:$LINENO: result: no" >&5
1572 echo "${ECHO_T}no" >&6
1575 test -n "$CC" && break
1576 done
1578 if test -z "$CC"; then
1579 ac_ct_CC=$CC
1580 for ac_prog in cl
1582 # Extract the first word of "$ac_prog", so it can be a program name with args.
1583 set dummy $ac_prog; ac_word=$2
1584 echo "$as_me:$LINENO: checking for $ac_word" >&5
1585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1586 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1588 else
1589 if test -n "$ac_ct_CC"; then
1590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1591 else
1592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593 for as_dir in $PATH
1595 IFS=$as_save_IFS
1596 test -z "$as_dir" && as_dir=.
1597 for ac_exec_ext in '' $ac_executable_extensions; do
1598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1599 ac_cv_prog_ac_ct_CC="$ac_prog"
1600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1601 break 2
1603 done
1604 done
1608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1609 if test -n "$ac_ct_CC"; then
1610 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1611 echo "${ECHO_T}$ac_ct_CC" >&6
1612 else
1613 echo "$as_me:$LINENO: result: no" >&5
1614 echo "${ECHO_T}no" >&6
1617 test -n "$ac_ct_CC" && break
1618 done
1620 CC=$ac_ct_CC
1626 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1627 See \`config.log' for more details." >&5
1628 echo "$as_me: error: no acceptable C compiler found in \$PATH
1629 See \`config.log' for more details." >&2;}
1630 { (exit 1); exit 1; }; }
1632 # Provide some information about the compiler.
1633 echo "$as_me:$LINENO:" \
1634 "checking for C compiler version" >&5
1635 ac_compiler=`set X $ac_compile; echo $2`
1636 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1637 (eval $ac_compiler --version </dev/null >&5) 2>&5
1638 ac_status=$?
1639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1640 (exit $ac_status); }
1641 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1642 (eval $ac_compiler -v </dev/null >&5) 2>&5
1643 ac_status=$?
1644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1645 (exit $ac_status); }
1646 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1647 (eval $ac_compiler -V </dev/null >&5) 2>&5
1648 ac_status=$?
1649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1650 (exit $ac_status); }
1652 cat >conftest.$ac_ext <<_ACEOF
1653 /* confdefs.h. */
1654 _ACEOF
1655 cat confdefs.h >>conftest.$ac_ext
1656 cat >>conftest.$ac_ext <<_ACEOF
1657 /* end confdefs.h. */
1660 main ()
1664 return 0;
1666 _ACEOF
1667 ac_clean_files_save=$ac_clean_files
1668 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1669 # Try to create an executable without -o first, disregard a.out.
1670 # It will help us diagnose broken compilers, and finding out an intuition
1671 # of exeext.
1672 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1673 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1674 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1675 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1676 (eval $ac_link_default) 2>&5
1677 ac_status=$?
1678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1679 (exit $ac_status); }; then
1680 # Find the output, starting from the most likely. This scheme is
1681 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1682 # resort.
1684 # Be careful to initialize this variable, since it used to be cached.
1685 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1686 ac_cv_exeext=
1687 # b.out is created by i960 compilers.
1688 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1690 test -f "$ac_file" || continue
1691 case $ac_file in
1692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1694 conftest.$ac_ext )
1695 # This is the source file.
1697 [ab].out )
1698 # We found the default executable, but exeext='' is most
1699 # certainly right.
1700 break;;
1701 *.* )
1702 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1703 # FIXME: I believe we export ac_cv_exeext for Libtool,
1704 # but it would be cool to find out if it's true. Does anybody
1705 # maintain Libtool? --akim.
1706 export ac_cv_exeext
1707 break;;
1709 break;;
1710 esac
1711 done
1712 else
1713 echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1716 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1717 See \`config.log' for more details." >&5
1718 echo "$as_me: error: C compiler cannot create executables
1719 See \`config.log' for more details." >&2;}
1720 { (exit 77); exit 77; }; }
1723 ac_exeext=$ac_cv_exeext
1724 echo "$as_me:$LINENO: result: $ac_file" >&5
1725 echo "${ECHO_T}$ac_file" >&6
1727 # Check the compiler produces executables we can run. If not, either
1728 # the compiler is broken, or we cross compile.
1729 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1730 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1731 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1732 # If not cross compiling, check that we can run a simple program.
1733 if test "$cross_compiling" != yes; then
1734 if { ac_try='./$ac_file'
1735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1736 (eval $ac_try) 2>&5
1737 ac_status=$?
1738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1739 (exit $ac_status); }; }; then
1740 cross_compiling=no
1741 else
1742 if test "$cross_compiling" = maybe; then
1743 cross_compiling=yes
1744 else
1745 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1746 If you meant to cross compile, use \`--host'.
1747 See \`config.log' for more details." >&5
1748 echo "$as_me: error: cannot run C compiled programs.
1749 If you meant to cross compile, use \`--host'.
1750 See \`config.log' for more details." >&2;}
1751 { (exit 1); exit 1; }; }
1755 echo "$as_me:$LINENO: result: yes" >&5
1756 echo "${ECHO_T}yes" >&6
1758 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1759 ac_clean_files=$ac_clean_files_save
1760 # Check the compiler produces executables we can run. If not, either
1761 # the compiler is broken, or we cross compile.
1762 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1763 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1764 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1765 echo "${ECHO_T}$cross_compiling" >&6
1767 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1768 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1770 (eval $ac_link) 2>&5
1771 ac_status=$?
1772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1773 (exit $ac_status); }; then
1774 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1775 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1776 # work properly (i.e., refer to `conftest.exe'), while it won't with
1777 # `rm'.
1778 for ac_file in conftest.exe conftest conftest.*; do
1779 test -f "$ac_file" || continue
1780 case $ac_file in
1781 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1782 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1783 export ac_cv_exeext
1784 break;;
1785 * ) break;;
1786 esac
1787 done
1788 else
1789 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1790 See \`config.log' for more details." >&5
1791 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1792 See \`config.log' for more details." >&2;}
1793 { (exit 1); exit 1; }; }
1796 rm -f conftest$ac_cv_exeext
1797 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1798 echo "${ECHO_T}$ac_cv_exeext" >&6
1800 rm -f conftest.$ac_ext
1801 EXEEXT=$ac_cv_exeext
1802 ac_exeext=$EXEEXT
1803 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1804 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1805 if test "${ac_cv_objext+set}" = set; then
1806 echo $ECHO_N "(cached) $ECHO_C" >&6
1807 else
1808 cat >conftest.$ac_ext <<_ACEOF
1809 /* confdefs.h. */
1810 _ACEOF
1811 cat confdefs.h >>conftest.$ac_ext
1812 cat >>conftest.$ac_ext <<_ACEOF
1813 /* end confdefs.h. */
1816 main ()
1820 return 0;
1822 _ACEOF
1823 rm -f conftest.o conftest.obj
1824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1825 (eval $ac_compile) 2>&5
1826 ac_status=$?
1827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1828 (exit $ac_status); }; then
1829 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1830 case $ac_file in
1831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1832 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1833 break;;
1834 esac
1835 done
1836 else
1837 echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.$ac_ext >&5
1840 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1841 See \`config.log' for more details." >&5
1842 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1843 See \`config.log' for more details." >&2;}
1844 { (exit 1); exit 1; }; }
1847 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1849 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1850 echo "${ECHO_T}$ac_cv_objext" >&6
1851 OBJEXT=$ac_cv_objext
1852 ac_objext=$OBJEXT
1853 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1854 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1855 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1856 echo $ECHO_N "(cached) $ECHO_C" >&6
1857 else
1858 cat >conftest.$ac_ext <<_ACEOF
1859 /* confdefs.h. */
1860 _ACEOF
1861 cat confdefs.h >>conftest.$ac_ext
1862 cat >>conftest.$ac_ext <<_ACEOF
1863 /* end confdefs.h. */
1866 main ()
1868 #ifndef __GNUC__
1869 choke me
1870 #endif
1873 return 0;
1875 _ACEOF
1876 rm -f conftest.$ac_objext
1877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1878 (eval $ac_compile) 2>conftest.er1
1879 ac_status=$?
1880 grep -v '^ *+' conftest.er1 >conftest.err
1881 rm -f conftest.er1
1882 cat conftest.err >&5
1883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1884 (exit $ac_status); } &&
1885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1887 (eval $ac_try) 2>&5
1888 ac_status=$?
1889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1890 (exit $ac_status); }; } &&
1891 { ac_try='test -s conftest.$ac_objext'
1892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1893 (eval $ac_try) 2>&5
1894 ac_status=$?
1895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1896 (exit $ac_status); }; }; then
1897 ac_compiler_gnu=yes
1898 else
1899 echo "$as_me: failed program was:" >&5
1900 sed 's/^/| /' conftest.$ac_ext >&5
1902 ac_compiler_gnu=no
1904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1905 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1908 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1909 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1910 GCC=`test $ac_compiler_gnu = yes && echo yes`
1911 ac_test_CFLAGS=${CFLAGS+set}
1912 ac_save_CFLAGS=$CFLAGS
1913 CFLAGS="-g"
1914 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1915 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1916 if test "${ac_cv_prog_cc_g+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" >&6
1918 else
1919 cat >conftest.$ac_ext <<_ACEOF
1920 /* confdefs.h. */
1921 _ACEOF
1922 cat confdefs.h >>conftest.$ac_ext
1923 cat >>conftest.$ac_ext <<_ACEOF
1924 /* end confdefs.h. */
1927 main ()
1931 return 0;
1933 _ACEOF
1934 rm -f conftest.$ac_objext
1935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1936 (eval $ac_compile) 2>conftest.er1
1937 ac_status=$?
1938 grep -v '^ *+' conftest.er1 >conftest.err
1939 rm -f conftest.er1
1940 cat conftest.err >&5
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); } &&
1943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1945 (eval $ac_try) 2>&5
1946 ac_status=$?
1947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1948 (exit $ac_status); }; } &&
1949 { ac_try='test -s conftest.$ac_objext'
1950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1951 (eval $ac_try) 2>&5
1952 ac_status=$?
1953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954 (exit $ac_status); }; }; then
1955 ac_cv_prog_cc_g=yes
1956 else
1957 echo "$as_me: failed program was:" >&5
1958 sed 's/^/| /' conftest.$ac_ext >&5
1960 ac_cv_prog_cc_g=no
1962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1964 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1965 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1966 if test "$ac_test_CFLAGS" = set; then
1967 CFLAGS=$ac_save_CFLAGS
1968 elif test $ac_cv_prog_cc_g = yes; then
1969 if test "$GCC" = yes; then
1970 CFLAGS="-g -O2"
1971 else
1972 CFLAGS="-g"
1974 else
1975 if test "$GCC" = yes; then
1976 CFLAGS="-O2"
1977 else
1978 CFLAGS=
1981 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1982 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1983 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1984 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 else
1986 ac_cv_prog_cc_stdc=no
1987 ac_save_CC=$CC
1988 cat >conftest.$ac_ext <<_ACEOF
1989 /* confdefs.h. */
1990 _ACEOF
1991 cat confdefs.h >>conftest.$ac_ext
1992 cat >>conftest.$ac_ext <<_ACEOF
1993 /* end confdefs.h. */
1994 #include <stdarg.h>
1995 #include <stdio.h>
1996 #include <sys/types.h>
1997 #include <sys/stat.h>
1998 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1999 struct buf { int x; };
2000 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2001 static char *e (p, i)
2002 char **p;
2003 int i;
2005 return p[i];
2007 static char *f (char * (*g) (char **, int), char **p, ...)
2009 char *s;
2010 va_list v;
2011 va_start (v,p);
2012 s = g (p, va_arg (v,int));
2013 va_end (v);
2014 return s;
2017 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2018 function prototypes and stuff, but not '\xHH' hex character constants.
2019 These don't provoke an error unfortunately, instead are silently treated
2020 as 'x'. The following induces an error, until -std1 is added to get
2021 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2022 array size at least. It's necessary to write '\x00'==0 to get something
2023 that's true only with -std1. */
2024 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2026 int test (int i, double x);
2027 struct s1 {int (*f) (int a);};
2028 struct s2 {int (*f) (double a);};
2029 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2030 int argc;
2031 char **argv;
2033 main ()
2035 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2037 return 0;
2039 _ACEOF
2040 # Don't try gcc -ansi; that turns off useful extensions and
2041 # breaks some systems' header files.
2042 # AIX -qlanglvl=ansi
2043 # Ultrix and OSF/1 -std1
2044 # HP-UX 10.20 and later -Ae
2045 # HP-UX older versions -Aa -D_HPUX_SOURCE
2046 # SVR4 -Xc -D__EXTENSIONS__
2047 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2049 CC="$ac_save_CC $ac_arg"
2050 rm -f conftest.$ac_objext
2051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2052 (eval $ac_compile) 2>conftest.er1
2053 ac_status=$?
2054 grep -v '^ *+' conftest.er1 >conftest.err
2055 rm -f conftest.er1
2056 cat conftest.err >&5
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); } &&
2059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2061 (eval $ac_try) 2>&5
2062 ac_status=$?
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }; } &&
2065 { ac_try='test -s conftest.$ac_objext'
2066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2067 (eval $ac_try) 2>&5
2068 ac_status=$?
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); }; }; then
2071 ac_cv_prog_cc_stdc=$ac_arg
2072 break
2073 else
2074 echo "$as_me: failed program was:" >&5
2075 sed 's/^/| /' conftest.$ac_ext >&5
2078 rm -f conftest.err conftest.$ac_objext
2079 done
2080 rm -f conftest.$ac_ext conftest.$ac_objext
2081 CC=$ac_save_CC
2085 case "x$ac_cv_prog_cc_stdc" in
2086 x|xno)
2087 echo "$as_me:$LINENO: result: none needed" >&5
2088 echo "${ECHO_T}none needed" >&6 ;;
2090 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2091 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2092 CC="$CC $ac_cv_prog_cc_stdc" ;;
2093 esac
2095 # Some people use a C++ compiler to compile C. Since we use `exit',
2096 # in C++ we need to declare it. In case someone uses the same compiler
2097 # for both compiling C and C++ we need to have the C++ compiler decide
2098 # the declaration of exit, since it's the most demanding environment.
2099 cat >conftest.$ac_ext <<_ACEOF
2100 #ifndef __cplusplus
2101 choke me
2102 #endif
2103 _ACEOF
2104 rm -f conftest.$ac_objext
2105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2106 (eval $ac_compile) 2>conftest.er1
2107 ac_status=$?
2108 grep -v '^ *+' conftest.er1 >conftest.err
2109 rm -f conftest.er1
2110 cat conftest.err >&5
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); } &&
2113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2115 (eval $ac_try) 2>&5
2116 ac_status=$?
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }; } &&
2119 { ac_try='test -s conftest.$ac_objext'
2120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2121 (eval $ac_try) 2>&5
2122 ac_status=$?
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }; }; then
2125 for ac_declaration in \
2126 '' \
2127 'extern "C" void std::exit (int) throw (); using std::exit;' \
2128 'extern "C" void std::exit (int); using std::exit;' \
2129 'extern "C" void exit (int) throw ();' \
2130 'extern "C" void exit (int);' \
2131 'void exit (int);'
2133 cat >conftest.$ac_ext <<_ACEOF
2134 /* confdefs.h. */
2135 _ACEOF
2136 cat confdefs.h >>conftest.$ac_ext
2137 cat >>conftest.$ac_ext <<_ACEOF
2138 /* end confdefs.h. */
2139 $ac_declaration
2140 #include <stdlib.h>
2142 main ()
2144 exit (42);
2146 return 0;
2148 _ACEOF
2149 rm -f conftest.$ac_objext
2150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2151 (eval $ac_compile) 2>conftest.er1
2152 ac_status=$?
2153 grep -v '^ *+' conftest.er1 >conftest.err
2154 rm -f conftest.er1
2155 cat conftest.err >&5
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); } &&
2158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160 (eval $ac_try) 2>&5
2161 ac_status=$?
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; } &&
2164 { ac_try='test -s conftest.$ac_objext'
2165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2166 (eval $ac_try) 2>&5
2167 ac_status=$?
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }; }; then
2171 else
2172 echo "$as_me: failed program was:" >&5
2173 sed 's/^/| /' conftest.$ac_ext >&5
2175 continue
2177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2178 cat >conftest.$ac_ext <<_ACEOF
2179 /* confdefs.h. */
2180 _ACEOF
2181 cat confdefs.h >>conftest.$ac_ext
2182 cat >>conftest.$ac_ext <<_ACEOF
2183 /* end confdefs.h. */
2184 $ac_declaration
2186 main ()
2188 exit (42);
2190 return 0;
2192 _ACEOF
2193 rm -f conftest.$ac_objext
2194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195 (eval $ac_compile) 2>conftest.er1
2196 ac_status=$?
2197 grep -v '^ *+' conftest.er1 >conftest.err
2198 rm -f conftest.er1
2199 cat conftest.err >&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); } &&
2202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2204 (eval $ac_try) 2>&5
2205 ac_status=$?
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); }; } &&
2208 { ac_try='test -s conftest.$ac_objext'
2209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210 (eval $ac_try) 2>&5
2211 ac_status=$?
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }; }; then
2214 break
2215 else
2216 echo "$as_me: failed program was:" >&5
2217 sed 's/^/| /' conftest.$ac_ext >&5
2220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2221 done
2222 rm -f conftest*
2223 if test -n "$ac_declaration"; then
2224 echo '#ifdef __cplusplus' >>confdefs.h
2225 echo $ac_declaration >>confdefs.h
2226 echo '#endif' >>confdefs.h
2229 else
2230 echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2235 ac_ext=c
2236 ac_cpp='$CPP $CPPFLAGS'
2237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2241 ac_aux_dir=
2242 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2243 if test -f $ac_dir/install-sh; then
2244 ac_aux_dir=$ac_dir
2245 ac_install_sh="$ac_aux_dir/install-sh -c"
2246 break
2247 elif test -f $ac_dir/install.sh; then
2248 ac_aux_dir=$ac_dir
2249 ac_install_sh="$ac_aux_dir/install.sh -c"
2250 break
2251 elif test -f $ac_dir/shtool; then
2252 ac_aux_dir=$ac_dir
2253 ac_install_sh="$ac_aux_dir/shtool install -c"
2254 break
2256 done
2257 if test -z "$ac_aux_dir"; then
2258 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2259 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2260 { (exit 1); exit 1; }; }
2262 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2263 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2264 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2266 # Find a good install program. We prefer a C program (faster),
2267 # so one script is as good as another. But avoid the broken or
2268 # incompatible versions:
2269 # SysV /etc/install, /usr/sbin/install
2270 # SunOS /usr/etc/install
2271 # IRIX /sbin/install
2272 # AIX /bin/install
2273 # AmigaOS /C/install, which installs bootblocks on floppy discs
2274 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2275 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2276 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2277 # OS/2's system install, which has a completely different semantic
2278 # ./install, which can be erroneously created by make from ./install.sh.
2279 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2280 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2281 if test -z "$INSTALL"; then
2282 if test "${ac_cv_path_install+set}" = set; then
2283 echo $ECHO_N "(cached) $ECHO_C" >&6
2284 else
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 for as_dir in $PATH
2288 IFS=$as_save_IFS
2289 test -z "$as_dir" && as_dir=.
2290 # Account for people who put trailing slashes in PATH elements.
2291 case $as_dir/ in
2292 ./ | .// | /cC/* | \
2293 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2294 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2295 /usr/ucb/* ) ;;
2297 # OSF1 and SCO ODT 3.0 have their own names for install.
2298 # Don't use installbsd from OSF since it installs stuff as root
2299 # by default.
2300 for ac_prog in ginstall scoinst install; do
2301 for ac_exec_ext in '' $ac_executable_extensions; do
2302 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2303 if test $ac_prog = install &&
2304 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2305 # AIX install. It has an incompatible calling convention.
2307 elif test $ac_prog = install &&
2308 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2309 # program-specific install script used by HP pwplus--don't use.
2311 else
2312 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2313 break 3
2316 done
2317 done
2319 esac
2320 done
2324 if test "${ac_cv_path_install+set}" = set; then
2325 INSTALL=$ac_cv_path_install
2326 else
2327 # As a last resort, use the slow shell script. We don't cache a
2328 # path for INSTALL within a source directory, because that will
2329 # break other packages using the cache if that directory is
2330 # removed, or if the path is relative.
2331 INSTALL=$ac_install_sh
2334 echo "$as_me:$LINENO: result: $INSTALL" >&5
2335 echo "${ECHO_T}$INSTALL" >&6
2337 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2338 # It thinks the first close brace ends the variable substitution.
2339 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2341 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2343 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2345 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2346 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2347 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2348 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351 cat >conftest.make <<\_ACEOF
2352 all:
2353 @echo 'ac_maketemp="$(MAKE)"'
2354 _ACEOF
2355 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2356 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2357 if test -n "$ac_maketemp"; then
2358 eval ac_cv_prog_make_${ac_make}_set=yes
2359 else
2360 eval ac_cv_prog_make_${ac_make}_set=no
2362 rm -f conftest.make
2364 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2365 echo "$as_me:$LINENO: result: yes" >&5
2366 echo "${ECHO_T}yes" >&6
2367 SET_MAKE=
2368 else
2369 echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6
2371 SET_MAKE="MAKE=${MAKE-make}"
2374 # ----------------------------------------------------------------------------
2376 ac_ext=c
2377 ac_cpp='$CPP $CPPFLAGS'
2378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2381 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2382 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2383 # On Suns, sometimes $CPP names a directory.
2384 if test -n "$CPP" && test -d "$CPP"; then
2385 CPP=
2387 if test -z "$CPP"; then
2388 if test "${ac_cv_prog_CPP+set}" = set; then
2389 echo $ECHO_N "(cached) $ECHO_C" >&6
2390 else
2391 # Double quotes because CPP needs to be expanded
2392 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2394 ac_preproc_ok=false
2395 for ac_c_preproc_warn_flag in '' yes
2397 # Use a header file that comes with gcc, so configuring glibc
2398 # with a fresh cross-compiler works.
2399 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2400 # <limits.h> exists even on freestanding compilers.
2401 # On the NeXT, cc -E runs the code through the compiler's parser,
2402 # not just through cpp. "Syntax error" is here to catch this case.
2403 cat >conftest.$ac_ext <<_ACEOF
2404 /* confdefs.h. */
2405 _ACEOF
2406 cat confdefs.h >>conftest.$ac_ext
2407 cat >>conftest.$ac_ext <<_ACEOF
2408 /* end confdefs.h. */
2409 #ifdef __STDC__
2410 # include <limits.h>
2411 #else
2412 # include <assert.h>
2413 #endif
2414 Syntax error
2415 _ACEOF
2416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2418 ac_status=$?
2419 grep -v '^ *+' conftest.er1 >conftest.err
2420 rm -f conftest.er1
2421 cat conftest.err >&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); } >/dev/null; then
2424 if test -s conftest.err; then
2425 ac_cpp_err=$ac_c_preproc_warn_flag
2426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2427 else
2428 ac_cpp_err=
2430 else
2431 ac_cpp_err=yes
2433 if test -z "$ac_cpp_err"; then
2435 else
2436 echo "$as_me: failed program was:" >&5
2437 sed 's/^/| /' conftest.$ac_ext >&5
2439 # Broken: fails on valid input.
2440 continue
2442 rm -f conftest.err conftest.$ac_ext
2444 # OK, works on sane cases. Now check whether non-existent headers
2445 # can be detected and how.
2446 cat >conftest.$ac_ext <<_ACEOF
2447 /* confdefs.h. */
2448 _ACEOF
2449 cat confdefs.h >>conftest.$ac_ext
2450 cat >>conftest.$ac_ext <<_ACEOF
2451 /* end confdefs.h. */
2452 #include <ac_nonexistent.h>
2453 _ACEOF
2454 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2456 ac_status=$?
2457 grep -v '^ *+' conftest.er1 >conftest.err
2458 rm -f conftest.er1
2459 cat conftest.err >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } >/dev/null; then
2462 if test -s conftest.err; then
2463 ac_cpp_err=$ac_c_preproc_warn_flag
2464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2465 else
2466 ac_cpp_err=
2468 else
2469 ac_cpp_err=yes
2471 if test -z "$ac_cpp_err"; then
2472 # Broken: success on invalid input.
2473 continue
2474 else
2475 echo "$as_me: failed program was:" >&5
2476 sed 's/^/| /' conftest.$ac_ext >&5
2478 # Passes both tests.
2479 ac_preproc_ok=:
2480 break
2482 rm -f conftest.err conftest.$ac_ext
2484 done
2485 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2486 rm -f conftest.err conftest.$ac_ext
2487 if $ac_preproc_ok; then
2488 break
2491 done
2492 ac_cv_prog_CPP=$CPP
2495 CPP=$ac_cv_prog_CPP
2496 else
2497 ac_cv_prog_CPP=$CPP
2499 echo "$as_me:$LINENO: result: $CPP" >&5
2500 echo "${ECHO_T}$CPP" >&6
2501 ac_preproc_ok=false
2502 for ac_c_preproc_warn_flag in '' yes
2504 # Use a header file that comes with gcc, so configuring glibc
2505 # with a fresh cross-compiler works.
2506 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2507 # <limits.h> exists even on freestanding compilers.
2508 # On the NeXT, cc -E runs the code through the compiler's parser,
2509 # not just through cpp. "Syntax error" is here to catch this case.
2510 cat >conftest.$ac_ext <<_ACEOF
2511 /* confdefs.h. */
2512 _ACEOF
2513 cat confdefs.h >>conftest.$ac_ext
2514 cat >>conftest.$ac_ext <<_ACEOF
2515 /* end confdefs.h. */
2516 #ifdef __STDC__
2517 # include <limits.h>
2518 #else
2519 # include <assert.h>
2520 #endif
2521 Syntax error
2522 _ACEOF
2523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2525 ac_status=$?
2526 grep -v '^ *+' conftest.er1 >conftest.err
2527 rm -f conftest.er1
2528 cat conftest.err >&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); } >/dev/null; then
2531 if test -s conftest.err; then
2532 ac_cpp_err=$ac_c_preproc_warn_flag
2533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2534 else
2535 ac_cpp_err=
2537 else
2538 ac_cpp_err=yes
2540 if test -z "$ac_cpp_err"; then
2542 else
2543 echo "$as_me: failed program was:" >&5
2544 sed 's/^/| /' conftest.$ac_ext >&5
2546 # Broken: fails on valid input.
2547 continue
2549 rm -f conftest.err conftest.$ac_ext
2551 # OK, works on sane cases. Now check whether non-existent headers
2552 # can be detected and how.
2553 cat >conftest.$ac_ext <<_ACEOF
2554 /* confdefs.h. */
2555 _ACEOF
2556 cat confdefs.h >>conftest.$ac_ext
2557 cat >>conftest.$ac_ext <<_ACEOF
2558 /* end confdefs.h. */
2559 #include <ac_nonexistent.h>
2560 _ACEOF
2561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2563 ac_status=$?
2564 grep -v '^ *+' conftest.er1 >conftest.err
2565 rm -f conftest.er1
2566 cat conftest.err >&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); } >/dev/null; then
2569 if test -s conftest.err; then
2570 ac_cpp_err=$ac_c_preproc_warn_flag
2571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2572 else
2573 ac_cpp_err=
2575 else
2576 ac_cpp_err=yes
2578 if test -z "$ac_cpp_err"; then
2579 # Broken: success on invalid input.
2580 continue
2581 else
2582 echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2585 # Passes both tests.
2586 ac_preproc_ok=:
2587 break
2589 rm -f conftest.err conftest.$ac_ext
2591 done
2592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2593 rm -f conftest.err conftest.$ac_ext
2594 if $ac_preproc_ok; then
2596 else
2597 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2598 See \`config.log' for more details." >&5
2599 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2600 See \`config.log' for more details." >&2;}
2601 { (exit 1); exit 1; }; }
2604 ac_ext=c
2605 ac_cpp='$CPP $CPPFLAGS'
2606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2612 if test "x$ac_path_x_has_been_run" != xyes; then
2613 echo "$as_me:$LINENO: checking for X" >&5
2614 echo $ECHO_N "checking for X... $ECHO_C" >&6
2616 ac_path_x_has_been_run=yes
2618 # Check whether --with-x or --without-x was given.
2619 if test "${with_x+set}" = set; then
2620 withval="$with_x"
2623 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2624 if test "x$with_x" = xno; then
2625 # The user explicitly disabled X.
2626 have_x=disabled
2627 else
2628 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2629 # Both variables are already set.
2630 have_x=yes
2631 else
2632 if test "${ac_cv_have_x+set}" = set; then
2633 echo $ECHO_N "(cached) $ECHO_C" >&6
2634 else
2635 # One or both of the vars are not set, and there is no cached value.
2636 ac_x_includes=no ac_x_libraries=no
2637 rm -fr conftest.dir
2638 if mkdir conftest.dir; then
2639 cd conftest.dir
2640 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2641 cat >Imakefile <<'_ACEOF'
2642 acfindx:
2643 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2644 _ACEOF
2645 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2646 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2647 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2648 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2649 for ac_extension in a so sl; do
2650 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2651 test -f $ac_im_libdir/libX11.$ac_extension; then
2652 ac_im_usrlibdir=$ac_im_libdir; break
2654 done
2655 # Screen out bogus values from the imake configuration. They are
2656 # bogus both because they are the default anyway, and because
2657 # using them would break gcc on systems where it needs fixed includes.
2658 case $ac_im_incroot in
2659 /usr/include) ;;
2660 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2661 esac
2662 case $ac_im_usrlibdir in
2663 /usr/lib | /lib) ;;
2664 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2665 esac
2667 cd ..
2668 rm -fr conftest.dir
2671 # Standard set of common directories for X headers.
2672 # Check X11 before X11Rn because it is often a symlink to the current release.
2673 ac_x_header_dirs='
2674 /usr/X11/include
2675 /usr/X11R6/include
2676 /usr/X11R5/include
2677 /usr/X11R4/include
2679 /usr/include/X11
2680 /usr/include/X11R6
2681 /usr/include/X11R5
2682 /usr/include/X11R4
2684 /usr/local/X11/include
2685 /usr/local/X11R6/include
2686 /usr/local/X11R5/include
2687 /usr/local/X11R4/include
2689 /usr/local/include/X11
2690 /usr/local/include/X11R6
2691 /usr/local/include/X11R5
2692 /usr/local/include/X11R4
2694 /usr/X386/include
2695 /usr/x386/include
2696 /usr/XFree86/include/X11
2698 /usr/include
2699 /usr/local/include
2700 /usr/unsupported/include
2701 /usr/athena/include
2702 /usr/local/x11r5/include
2703 /usr/lpp/Xamples/include
2705 /usr/openwin/include
2706 /usr/openwin/share/include'
2708 if test "$ac_x_includes" = no; then
2709 # Guess where to find include files, by looking for a specified header file.
2710 # First, try using that file with no special directory specified.
2711 cat >conftest.$ac_ext <<_ACEOF
2712 /* confdefs.h. */
2713 _ACEOF
2714 cat confdefs.h >>conftest.$ac_ext
2715 cat >>conftest.$ac_ext <<_ACEOF
2716 /* end confdefs.h. */
2717 #include <X11/Xlib.h>
2718 _ACEOF
2719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2720 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2721 ac_status=$?
2722 grep -v '^ *+' conftest.er1 >conftest.err
2723 rm -f conftest.er1
2724 cat conftest.err >&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); } >/dev/null; then
2727 if test -s conftest.err; then
2728 ac_cpp_err=$ac_c_preproc_warn_flag
2729 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2730 else
2731 ac_cpp_err=
2733 else
2734 ac_cpp_err=yes
2736 if test -z "$ac_cpp_err"; then
2737 # We can compile using X headers with no special include directory.
2738 ac_x_includes=
2739 else
2740 echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2743 for ac_dir in $ac_x_header_dirs; do
2744 if test -r "$ac_dir/X11/Xlib.h"; then
2745 ac_x_includes=$ac_dir
2746 break
2748 done
2750 rm -f conftest.err conftest.$ac_ext
2751 fi # $ac_x_includes = no
2753 if test "$ac_x_libraries" = no; then
2754 # Check for the libraries.
2755 # See if we find them without any special options.
2756 # Don't add to $LIBS permanently.
2757 ac_save_LIBS=$LIBS
2758 LIBS="-lX11 $LIBS"
2759 cat >conftest.$ac_ext <<_ACEOF
2760 /* confdefs.h. */
2761 _ACEOF
2762 cat confdefs.h >>conftest.$ac_ext
2763 cat >>conftest.$ac_ext <<_ACEOF
2764 /* end confdefs.h. */
2765 #include <X11/Xlib.h>
2767 main ()
2769 XrmInitialize ()
2771 return 0;
2773 _ACEOF
2774 rm -f conftest.$ac_objext conftest$ac_exeext
2775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2776 (eval $ac_link) 2>conftest.er1
2777 ac_status=$?
2778 grep -v '^ *+' conftest.er1 >conftest.err
2779 rm -f conftest.er1
2780 cat conftest.err >&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); } &&
2783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 (eval $ac_try) 2>&5
2786 ac_status=$?
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; } &&
2789 { ac_try='test -s conftest$ac_exeext'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 (eval $ac_try) 2>&5
2792 ac_status=$?
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; }; then
2795 LIBS=$ac_save_LIBS
2796 # We can link X programs with no special library path.
2797 ac_x_libraries=
2798 else
2799 echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.$ac_ext >&5
2802 LIBS=$ac_save_LIBS
2803 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2805 # Don't even attempt the hair of trying to link an X program!
2806 for ac_extension in a so sl; do
2807 if test -r $ac_dir/libX11.$ac_extension; then
2808 ac_x_libraries=$ac_dir
2809 break 2
2811 done
2812 done
2814 rm -f conftest.err conftest.$ac_objext \
2815 conftest$ac_exeext conftest.$ac_ext
2816 fi # $ac_x_libraries = no
2818 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2819 # Didn't find X anywhere. Cache the known absence of X.
2820 ac_cv_have_x="have_x=no"
2821 else
2822 # Record where we found X for the cache.
2823 ac_cv_have_x="have_x=yes \
2824 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2829 eval "$ac_cv_have_x"
2830 fi # $with_x != no
2832 if test "$have_x" != yes; then
2833 echo "$as_me:$LINENO: result: $have_x" >&5
2834 echo "${ECHO_T}$have_x" >&6
2835 no_x=yes
2836 else
2837 # If each of the values was on the command line, it overrides each guess.
2838 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2839 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2840 # Update the cache value to reflect the command line values.
2841 ac_cv_have_x="have_x=yes \
2842 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2843 # It might be that x_includes is empty (headers are found in the
2844 # standard search path. Then output the corresponding message
2845 ac_out_x_includes=$x_includes
2846 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
2847 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
2848 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
2852 if test "$no_x" = yes; then
2853 # Not all programs may use this symbol, but it does not hurt to define it.
2855 cat >>confdefs.h <<\_ACEOF
2856 #define X_DISPLAY_MISSING 1
2857 _ACEOF
2859 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2860 else
2861 if test -n "$x_includes"; then
2862 X_CFLAGS="$X_CFLAGS -I$x_includes"
2865 # It would also be nice to do this for all -L options, not just this one.
2866 if test -n "$x_libraries"; then
2867 X_LIBS="$X_LIBS -L$x_libraries"
2868 # For Solaris; some versions of Sun CC require a space after -R and
2869 # others require no space. Words are not sufficient . . . .
2870 case `(uname -sr) 2>/dev/null` in
2871 "SunOS 5"*)
2872 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2873 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2874 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2875 cat >conftest.$ac_ext <<_ACEOF
2876 /* confdefs.h. */
2877 _ACEOF
2878 cat confdefs.h >>conftest.$ac_ext
2879 cat >>conftest.$ac_ext <<_ACEOF
2880 /* end confdefs.h. */
2883 main ()
2887 return 0;
2889 _ACEOF
2890 rm -f conftest.$ac_objext conftest$ac_exeext
2891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2892 (eval $ac_link) 2>conftest.er1
2893 ac_status=$?
2894 grep -v '^ *+' conftest.er1 >conftest.err
2895 rm -f conftest.er1
2896 cat conftest.err >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } &&
2899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2901 (eval $ac_try) 2>&5
2902 ac_status=$?
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); }; } &&
2905 { ac_try='test -s conftest$ac_exeext'
2906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2907 (eval $ac_try) 2>&5
2908 ac_status=$?
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }; }; then
2911 ac_R_nospace=yes
2912 else
2913 echo "$as_me: failed program was:" >&5
2914 sed 's/^/| /' conftest.$ac_ext >&5
2916 ac_R_nospace=no
2918 rm -f conftest.err conftest.$ac_objext \
2919 conftest$ac_exeext conftest.$ac_ext
2920 if test $ac_R_nospace = yes; then
2921 echo "$as_me:$LINENO: result: no" >&5
2922 echo "${ECHO_T}no" >&6
2923 X_LIBS="$X_LIBS -R$x_libraries"
2924 else
2925 LIBS="$ac_xsave_LIBS -R $x_libraries"
2926 cat >conftest.$ac_ext <<_ACEOF
2927 /* confdefs.h. */
2928 _ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2934 main ()
2938 return 0;
2940 _ACEOF
2941 rm -f conftest.$ac_objext conftest$ac_exeext
2942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2943 (eval $ac_link) 2>conftest.er1
2944 ac_status=$?
2945 grep -v '^ *+' conftest.er1 >conftest.err
2946 rm -f conftest.er1
2947 cat conftest.err >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } &&
2950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952 (eval $ac_try) 2>&5
2953 ac_status=$?
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; } &&
2956 { ac_try='test -s conftest$ac_exeext'
2957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2958 (eval $ac_try) 2>&5
2959 ac_status=$?
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }; }; then
2962 ac_R_space=yes
2963 else
2964 echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.$ac_ext >&5
2967 ac_R_space=no
2969 rm -f conftest.err conftest.$ac_objext \
2970 conftest$ac_exeext conftest.$ac_ext
2971 if test $ac_R_space = yes; then
2972 echo "$as_me:$LINENO: result: yes" >&5
2973 echo "${ECHO_T}yes" >&6
2974 X_LIBS="$X_LIBS -R $x_libraries"
2975 else
2976 echo "$as_me:$LINENO: result: neither works" >&5
2977 echo "${ECHO_T}neither works" >&6
2980 LIBS=$ac_xsave_LIBS
2981 esac
2984 # Check for system-dependent libraries X programs must link with.
2985 # Do this before checking for the system-independent R6 libraries
2986 # (-lICE), since we may need -lsocket or whatever for X linking.
2988 if test "$ISC" = yes; then
2989 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2990 else
2991 # Martyn Johnson says this is needed for Ultrix, if the X
2992 # libraries were built with DECnet support. And Karl Berry says
2993 # the Alpha needs dnet_stub (dnet does not exist).
2994 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2995 cat >conftest.$ac_ext <<_ACEOF
2996 /* confdefs.h. */
2997 _ACEOF
2998 cat confdefs.h >>conftest.$ac_ext
2999 cat >>conftest.$ac_ext <<_ACEOF
3000 /* end confdefs.h. */
3002 /* Override any gcc2 internal prototype to avoid an error. */
3003 #ifdef __cplusplus
3004 extern "C"
3005 #endif
3006 /* We use char because int might match the return type of a gcc2
3007 builtin and then its argument prototype would still apply. */
3008 char XOpenDisplay ();
3010 main ()
3012 XOpenDisplay ();
3014 return 0;
3016 _ACEOF
3017 rm -f conftest.$ac_objext conftest$ac_exeext
3018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3019 (eval $ac_link) 2>conftest.er1
3020 ac_status=$?
3021 grep -v '^ *+' conftest.er1 >conftest.err
3022 rm -f conftest.er1
3023 cat conftest.err >&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); } &&
3026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028 (eval $ac_try) 2>&5
3029 ac_status=$?
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }; } &&
3032 { ac_try='test -s conftest$ac_exeext'
3033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034 (eval $ac_try) 2>&5
3035 ac_status=$?
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }; }; then
3039 else
3040 echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3043 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3044 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3045 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3046 echo $ECHO_N "(cached) $ECHO_C" >&6
3047 else
3048 ac_check_lib_save_LIBS=$LIBS
3049 LIBS="-ldnet $LIBS"
3050 cat >conftest.$ac_ext <<_ACEOF
3051 /* confdefs.h. */
3052 _ACEOF
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h. */
3057 /* Override any gcc2 internal prototype to avoid an error. */
3058 #ifdef __cplusplus
3059 extern "C"
3060 #endif
3061 /* We use char because int might match the return type of a gcc2
3062 builtin and then its argument prototype would still apply. */
3063 char dnet_ntoa ();
3065 main ()
3067 dnet_ntoa ();
3069 return 0;
3071 _ACEOF
3072 rm -f conftest.$ac_objext conftest$ac_exeext
3073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3074 (eval $ac_link) 2>conftest.er1
3075 ac_status=$?
3076 grep -v '^ *+' conftest.er1 >conftest.err
3077 rm -f conftest.er1
3078 cat conftest.err >&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); } &&
3081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3083 (eval $ac_try) 2>&5
3084 ac_status=$?
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }; } &&
3087 { ac_try='test -s conftest$ac_exeext'
3088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3089 (eval $ac_try) 2>&5
3090 ac_status=$?
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }; }; then
3093 ac_cv_lib_dnet_dnet_ntoa=yes
3094 else
3095 echo "$as_me: failed program was:" >&5
3096 sed 's/^/| /' conftest.$ac_ext >&5
3098 ac_cv_lib_dnet_dnet_ntoa=no
3100 rm -f conftest.err conftest.$ac_objext \
3101 conftest$ac_exeext conftest.$ac_ext
3102 LIBS=$ac_check_lib_save_LIBS
3104 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3105 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3106 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3107 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3110 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3111 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3112 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3113 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3114 echo $ECHO_N "(cached) $ECHO_C" >&6
3115 else
3116 ac_check_lib_save_LIBS=$LIBS
3117 LIBS="-ldnet_stub $LIBS"
3118 cat >conftest.$ac_ext <<_ACEOF
3119 /* confdefs.h. */
3120 _ACEOF
3121 cat confdefs.h >>conftest.$ac_ext
3122 cat >>conftest.$ac_ext <<_ACEOF
3123 /* end confdefs.h. */
3125 /* Override any gcc2 internal prototype to avoid an error. */
3126 #ifdef __cplusplus
3127 extern "C"
3128 #endif
3129 /* We use char because int might match the return type of a gcc2
3130 builtin and then its argument prototype would still apply. */
3131 char dnet_ntoa ();
3133 main ()
3135 dnet_ntoa ();
3137 return 0;
3139 _ACEOF
3140 rm -f conftest.$ac_objext conftest$ac_exeext
3141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3142 (eval $ac_link) 2>conftest.er1
3143 ac_status=$?
3144 grep -v '^ *+' conftest.er1 >conftest.err
3145 rm -f conftest.er1
3146 cat conftest.err >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } &&
3149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151 (eval $ac_try) 2>&5
3152 ac_status=$?
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; } &&
3155 { ac_try='test -s conftest$ac_exeext'
3156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157 (eval $ac_try) 2>&5
3158 ac_status=$?
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }; }; then
3161 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3162 else
3163 echo "$as_me: failed program was:" >&5
3164 sed 's/^/| /' conftest.$ac_ext >&5
3166 ac_cv_lib_dnet_stub_dnet_ntoa=no
3168 rm -f conftest.err conftest.$ac_objext \
3169 conftest$ac_exeext conftest.$ac_ext
3170 LIBS=$ac_check_lib_save_LIBS
3172 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3173 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3174 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3175 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3180 rm -f conftest.err conftest.$ac_objext \
3181 conftest$ac_exeext conftest.$ac_ext
3182 LIBS="$ac_xsave_LIBS"
3184 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3185 # to get the SysV transport functions.
3186 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3187 # needs -lnsl.
3188 # The nsl library prevents programs from opening the X display
3189 # on Irix 5.2, according to T.E. Dickey.
3190 # The functions gethostbyname, getservbyname, and inet_addr are
3191 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3192 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3193 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3194 if test "${ac_cv_func_gethostbyname+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3196 else
3197 cat >conftest.$ac_ext <<_ACEOF
3198 /* confdefs.h. */
3199 _ACEOF
3200 cat confdefs.h >>conftest.$ac_ext
3201 cat >>conftest.$ac_ext <<_ACEOF
3202 /* end confdefs.h. */
3203 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3205 #define gethostbyname innocuous_gethostbyname
3207 /* System header to define __stub macros and hopefully few prototypes,
3208 which can conflict with char gethostbyname (); below.
3209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3210 <limits.h> exists even on freestanding compilers. */
3212 #ifdef __STDC__
3213 # include <limits.h>
3214 #else
3215 # include <assert.h>
3216 #endif
3218 #undef gethostbyname
3220 /* Override any gcc2 internal prototype to avoid an error. */
3221 #ifdef __cplusplus
3222 extern "C"
3224 #endif
3225 /* We use char because int might match the return type of a gcc2
3226 builtin and then its argument prototype would still apply. */
3227 char gethostbyname ();
3228 /* The GNU C library defines this for functions which it implements
3229 to always fail with ENOSYS. Some functions are actually named
3230 something starting with __ and the normal name is an alias. */
3231 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3232 choke me
3233 #else
3234 char (*f) () = gethostbyname;
3235 #endif
3236 #ifdef __cplusplus
3238 #endif
3241 main ()
3243 return f != gethostbyname;
3245 return 0;
3247 _ACEOF
3248 rm -f conftest.$ac_objext conftest$ac_exeext
3249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3250 (eval $ac_link) 2>conftest.er1
3251 ac_status=$?
3252 grep -v '^ *+' conftest.er1 >conftest.err
3253 rm -f conftest.er1
3254 cat conftest.err >&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); } &&
3257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3259 (eval $ac_try) 2>&5
3260 ac_status=$?
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; } &&
3263 { ac_try='test -s conftest$ac_exeext'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265 (eval $ac_try) 2>&5
3266 ac_status=$?
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; }; then
3269 ac_cv_func_gethostbyname=yes
3270 else
3271 echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3274 ac_cv_func_gethostbyname=no
3276 rm -f conftest.err conftest.$ac_objext \
3277 conftest$ac_exeext conftest.$ac_ext
3279 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3280 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3282 if test $ac_cv_func_gethostbyname = no; then
3283 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3284 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3285 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 else
3288 ac_check_lib_save_LIBS=$LIBS
3289 LIBS="-lnsl $LIBS"
3290 cat >conftest.$ac_ext <<_ACEOF
3291 /* confdefs.h. */
3292 _ACEOF
3293 cat confdefs.h >>conftest.$ac_ext
3294 cat >>conftest.$ac_ext <<_ACEOF
3295 /* end confdefs.h. */
3297 /* Override any gcc2 internal prototype to avoid an error. */
3298 #ifdef __cplusplus
3299 extern "C"
3300 #endif
3301 /* We use char because int might match the return type of a gcc2
3302 builtin and then its argument prototype would still apply. */
3303 char gethostbyname ();
3305 main ()
3307 gethostbyname ();
3309 return 0;
3311 _ACEOF
3312 rm -f conftest.$ac_objext conftest$ac_exeext
3313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3314 (eval $ac_link) 2>conftest.er1
3315 ac_status=$?
3316 grep -v '^ *+' conftest.er1 >conftest.err
3317 rm -f conftest.er1
3318 cat conftest.err >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } &&
3321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3323 (eval $ac_try) 2>&5
3324 ac_status=$?
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); }; } &&
3327 { ac_try='test -s conftest$ac_exeext'
3328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3329 (eval $ac_try) 2>&5
3330 ac_status=$?
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); }; }; then
3333 ac_cv_lib_nsl_gethostbyname=yes
3334 else
3335 echo "$as_me: failed program was:" >&5
3336 sed 's/^/| /' conftest.$ac_ext >&5
3338 ac_cv_lib_nsl_gethostbyname=no
3340 rm -f conftest.err conftest.$ac_objext \
3341 conftest$ac_exeext conftest.$ac_ext
3342 LIBS=$ac_check_lib_save_LIBS
3344 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3345 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3346 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3347 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3350 if test $ac_cv_lib_nsl_gethostbyname = no; then
3351 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3352 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3353 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 else
3356 ac_check_lib_save_LIBS=$LIBS
3357 LIBS="-lbsd $LIBS"
3358 cat >conftest.$ac_ext <<_ACEOF
3359 /* confdefs.h. */
3360 _ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h. */
3365 /* Override any gcc2 internal prototype to avoid an error. */
3366 #ifdef __cplusplus
3367 extern "C"
3368 #endif
3369 /* We use char because int might match the return type of a gcc2
3370 builtin and then its argument prototype would still apply. */
3371 char gethostbyname ();
3373 main ()
3375 gethostbyname ();
3377 return 0;
3379 _ACEOF
3380 rm -f conftest.$ac_objext conftest$ac_exeext
3381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3382 (eval $ac_link) 2>conftest.er1
3383 ac_status=$?
3384 grep -v '^ *+' conftest.er1 >conftest.err
3385 rm -f conftest.er1
3386 cat conftest.err >&5
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); } &&
3389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391 (eval $ac_try) 2>&5
3392 ac_status=$?
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); }; } &&
3395 { ac_try='test -s conftest$ac_exeext'
3396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3397 (eval $ac_try) 2>&5
3398 ac_status=$?
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); }; }; then
3401 ac_cv_lib_bsd_gethostbyname=yes
3402 else
3403 echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3406 ac_cv_lib_bsd_gethostbyname=no
3408 rm -f conftest.err conftest.$ac_objext \
3409 conftest$ac_exeext conftest.$ac_ext
3410 LIBS=$ac_check_lib_save_LIBS
3412 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3413 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3414 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3415 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3421 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3422 # socket/setsockopt and other routines are undefined under SCO ODT
3423 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3424 # on later versions), says Simon Leinen: it contains gethostby*
3425 # variants that don't use the name server (or something). -lsocket
3426 # must be given before -lnsl if both are needed. We assume that
3427 # if connect needs -lnsl, so does gethostbyname.
3428 echo "$as_me:$LINENO: checking for connect" >&5
3429 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3430 if test "${ac_cv_func_connect+set}" = set; then
3431 echo $ECHO_N "(cached) $ECHO_C" >&6
3432 else
3433 cat >conftest.$ac_ext <<_ACEOF
3434 /* confdefs.h. */
3435 _ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3439 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
3440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3441 #define connect innocuous_connect
3443 /* System header to define __stub macros and hopefully few prototypes,
3444 which can conflict with char connect (); below.
3445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3446 <limits.h> exists even on freestanding compilers. */
3448 #ifdef __STDC__
3449 # include <limits.h>
3450 #else
3451 # include <assert.h>
3452 #endif
3454 #undef connect
3456 /* Override any gcc2 internal prototype to avoid an error. */
3457 #ifdef __cplusplus
3458 extern "C"
3460 #endif
3461 /* We use char because int might match the return type of a gcc2
3462 builtin and then its argument prototype would still apply. */
3463 char connect ();
3464 /* The GNU C library defines this for functions which it implements
3465 to always fail with ENOSYS. Some functions are actually named
3466 something starting with __ and the normal name is an alias. */
3467 #if defined (__stub_connect) || defined (__stub___connect)
3468 choke me
3469 #else
3470 char (*f) () = connect;
3471 #endif
3472 #ifdef __cplusplus
3474 #endif
3477 main ()
3479 return f != connect;
3481 return 0;
3483 _ACEOF
3484 rm -f conftest.$ac_objext conftest$ac_exeext
3485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3486 (eval $ac_link) 2>conftest.er1
3487 ac_status=$?
3488 grep -v '^ *+' conftest.er1 >conftest.err
3489 rm -f conftest.er1
3490 cat conftest.err >&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); } &&
3493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495 (eval $ac_try) 2>&5
3496 ac_status=$?
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); }; } &&
3499 { ac_try='test -s conftest$ac_exeext'
3500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3501 (eval $ac_try) 2>&5
3502 ac_status=$?
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }; }; then
3505 ac_cv_func_connect=yes
3506 else
3507 echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3510 ac_cv_func_connect=no
3512 rm -f conftest.err conftest.$ac_objext \
3513 conftest$ac_exeext conftest.$ac_ext
3515 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3516 echo "${ECHO_T}$ac_cv_func_connect" >&6
3518 if test $ac_cv_func_connect = no; then
3519 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3520 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3521 if test "${ac_cv_lib_socket_connect+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3523 else
3524 ac_check_lib_save_LIBS=$LIBS
3525 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3526 cat >conftest.$ac_ext <<_ACEOF
3527 /* confdefs.h. */
3528 _ACEOF
3529 cat confdefs.h >>conftest.$ac_ext
3530 cat >>conftest.$ac_ext <<_ACEOF
3531 /* end confdefs.h. */
3533 /* Override any gcc2 internal prototype to avoid an error. */
3534 #ifdef __cplusplus
3535 extern "C"
3536 #endif
3537 /* We use char because int might match the return type of a gcc2
3538 builtin and then its argument prototype would still apply. */
3539 char connect ();
3541 main ()
3543 connect ();
3545 return 0;
3547 _ACEOF
3548 rm -f conftest.$ac_objext conftest$ac_exeext
3549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3550 (eval $ac_link) 2>conftest.er1
3551 ac_status=$?
3552 grep -v '^ *+' conftest.er1 >conftest.err
3553 rm -f conftest.er1
3554 cat conftest.err >&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); } &&
3557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3559 (eval $ac_try) 2>&5
3560 ac_status=$?
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); }; } &&
3563 { ac_try='test -s conftest$ac_exeext'
3564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3565 (eval $ac_try) 2>&5
3566 ac_status=$?
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); }; }; then
3569 ac_cv_lib_socket_connect=yes
3570 else
3571 echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3574 ac_cv_lib_socket_connect=no
3576 rm -f conftest.err conftest.$ac_objext \
3577 conftest$ac_exeext conftest.$ac_ext
3578 LIBS=$ac_check_lib_save_LIBS
3580 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3581 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3582 if test $ac_cv_lib_socket_connect = yes; then
3583 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3588 # Guillermo Gomez says -lposix is necessary on A/UX.
3589 echo "$as_me:$LINENO: checking for remove" >&5
3590 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3591 if test "${ac_cv_func_remove+set}" = set; then
3592 echo $ECHO_N "(cached) $ECHO_C" >&6
3593 else
3594 cat >conftest.$ac_ext <<_ACEOF
3595 /* confdefs.h. */
3596 _ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h. */
3600 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
3601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3602 #define remove innocuous_remove
3604 /* System header to define __stub macros and hopefully few prototypes,
3605 which can conflict with char remove (); below.
3606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3607 <limits.h> exists even on freestanding compilers. */
3609 #ifdef __STDC__
3610 # include <limits.h>
3611 #else
3612 # include <assert.h>
3613 #endif
3615 #undef remove
3617 /* Override any gcc2 internal prototype to avoid an error. */
3618 #ifdef __cplusplus
3619 extern "C"
3621 #endif
3622 /* We use char because int might match the return type of a gcc2
3623 builtin and then its argument prototype would still apply. */
3624 char remove ();
3625 /* The GNU C library defines this for functions which it implements
3626 to always fail with ENOSYS. Some functions are actually named
3627 something starting with __ and the normal name is an alias. */
3628 #if defined (__stub_remove) || defined (__stub___remove)
3629 choke me
3630 #else
3631 char (*f) () = remove;
3632 #endif
3633 #ifdef __cplusplus
3635 #endif
3638 main ()
3640 return f != remove;
3642 return 0;
3644 _ACEOF
3645 rm -f conftest.$ac_objext conftest$ac_exeext
3646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3647 (eval $ac_link) 2>conftest.er1
3648 ac_status=$?
3649 grep -v '^ *+' conftest.er1 >conftest.err
3650 rm -f conftest.er1
3651 cat conftest.err >&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); } &&
3654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3656 (eval $ac_try) 2>&5
3657 ac_status=$?
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); }; } &&
3660 { ac_try='test -s conftest$ac_exeext'
3661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662 (eval $ac_try) 2>&5
3663 ac_status=$?
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); }; }; then
3666 ac_cv_func_remove=yes
3667 else
3668 echo "$as_me: failed program was:" >&5
3669 sed 's/^/| /' conftest.$ac_ext >&5
3671 ac_cv_func_remove=no
3673 rm -f conftest.err conftest.$ac_objext \
3674 conftest$ac_exeext conftest.$ac_ext
3676 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3677 echo "${ECHO_T}$ac_cv_func_remove" >&6
3679 if test $ac_cv_func_remove = no; then
3680 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3681 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3682 if test "${ac_cv_lib_posix_remove+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3684 else
3685 ac_check_lib_save_LIBS=$LIBS
3686 LIBS="-lposix $LIBS"
3687 cat >conftest.$ac_ext <<_ACEOF
3688 /* confdefs.h. */
3689 _ACEOF
3690 cat confdefs.h >>conftest.$ac_ext
3691 cat >>conftest.$ac_ext <<_ACEOF
3692 /* end confdefs.h. */
3694 /* Override any gcc2 internal prototype to avoid an error. */
3695 #ifdef __cplusplus
3696 extern "C"
3697 #endif
3698 /* We use char because int might match the return type of a gcc2
3699 builtin and then its argument prototype would still apply. */
3700 char remove ();
3702 main ()
3704 remove ();
3706 return 0;
3708 _ACEOF
3709 rm -f conftest.$ac_objext conftest$ac_exeext
3710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3711 (eval $ac_link) 2>conftest.er1
3712 ac_status=$?
3713 grep -v '^ *+' conftest.er1 >conftest.err
3714 rm -f conftest.er1
3715 cat conftest.err >&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); } &&
3718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720 (eval $ac_try) 2>&5
3721 ac_status=$?
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }; } &&
3724 { ac_try='test -s conftest$ac_exeext'
3725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726 (eval $ac_try) 2>&5
3727 ac_status=$?
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; }; then
3730 ac_cv_lib_posix_remove=yes
3731 else
3732 echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.$ac_ext >&5
3735 ac_cv_lib_posix_remove=no
3737 rm -f conftest.err conftest.$ac_objext \
3738 conftest$ac_exeext conftest.$ac_ext
3739 LIBS=$ac_check_lib_save_LIBS
3741 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3742 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3743 if test $ac_cv_lib_posix_remove = yes; then
3744 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3749 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3750 echo "$as_me:$LINENO: checking for shmat" >&5
3751 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3752 if test "${ac_cv_func_shmat+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3754 else
3755 cat >conftest.$ac_ext <<_ACEOF
3756 /* confdefs.h. */
3757 _ACEOF
3758 cat confdefs.h >>conftest.$ac_ext
3759 cat >>conftest.$ac_ext <<_ACEOF
3760 /* end confdefs.h. */
3761 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
3762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3763 #define shmat innocuous_shmat
3765 /* System header to define __stub macros and hopefully few prototypes,
3766 which can conflict with char shmat (); below.
3767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3768 <limits.h> exists even on freestanding compilers. */
3770 #ifdef __STDC__
3771 # include <limits.h>
3772 #else
3773 # include <assert.h>
3774 #endif
3776 #undef shmat
3778 /* Override any gcc2 internal prototype to avoid an error. */
3779 #ifdef __cplusplus
3780 extern "C"
3782 #endif
3783 /* We use char because int might match the return type of a gcc2
3784 builtin and then its argument prototype would still apply. */
3785 char shmat ();
3786 /* The GNU C library defines this for functions which it implements
3787 to always fail with ENOSYS. Some functions are actually named
3788 something starting with __ and the normal name is an alias. */
3789 #if defined (__stub_shmat) || defined (__stub___shmat)
3790 choke me
3791 #else
3792 char (*f) () = shmat;
3793 #endif
3794 #ifdef __cplusplus
3796 #endif
3799 main ()
3801 return f != shmat;
3803 return 0;
3805 _ACEOF
3806 rm -f conftest.$ac_objext conftest$ac_exeext
3807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3808 (eval $ac_link) 2>conftest.er1
3809 ac_status=$?
3810 grep -v '^ *+' conftest.er1 >conftest.err
3811 rm -f conftest.er1
3812 cat conftest.err >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } &&
3815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817 (eval $ac_try) 2>&5
3818 ac_status=$?
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }; } &&
3821 { ac_try='test -s conftest$ac_exeext'
3822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3823 (eval $ac_try) 2>&5
3824 ac_status=$?
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); }; }; then
3827 ac_cv_func_shmat=yes
3828 else
3829 echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3832 ac_cv_func_shmat=no
3834 rm -f conftest.err conftest.$ac_objext \
3835 conftest$ac_exeext conftest.$ac_ext
3837 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3838 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3840 if test $ac_cv_func_shmat = no; then
3841 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3842 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3843 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3844 echo $ECHO_N "(cached) $ECHO_C" >&6
3845 else
3846 ac_check_lib_save_LIBS=$LIBS
3847 LIBS="-lipc $LIBS"
3848 cat >conftest.$ac_ext <<_ACEOF
3849 /* confdefs.h. */
3850 _ACEOF
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h. */
3855 /* Override any gcc2 internal prototype to avoid an error. */
3856 #ifdef __cplusplus
3857 extern "C"
3858 #endif
3859 /* We use char because int might match the return type of a gcc2
3860 builtin and then its argument prototype would still apply. */
3861 char shmat ();
3863 main ()
3865 shmat ();
3867 return 0;
3869 _ACEOF
3870 rm -f conftest.$ac_objext conftest$ac_exeext
3871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3872 (eval $ac_link) 2>conftest.er1
3873 ac_status=$?
3874 grep -v '^ *+' conftest.er1 >conftest.err
3875 rm -f conftest.er1
3876 cat conftest.err >&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); } &&
3879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3881 (eval $ac_try) 2>&5
3882 ac_status=$?
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); }; } &&
3885 { ac_try='test -s conftest$ac_exeext'
3886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3887 (eval $ac_try) 2>&5
3888 ac_status=$?
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); }; }; then
3891 ac_cv_lib_ipc_shmat=yes
3892 else
3893 echo "$as_me: failed program was:" >&5
3894 sed 's/^/| /' conftest.$ac_ext >&5
3896 ac_cv_lib_ipc_shmat=no
3898 rm -f conftest.err conftest.$ac_objext \
3899 conftest$ac_exeext conftest.$ac_ext
3900 LIBS=$ac_check_lib_save_LIBS
3902 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3903 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3904 if test $ac_cv_lib_ipc_shmat = yes; then
3905 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3911 # Check for libraries that X11R6 Xt/Xaw programs need.
3912 ac_save_LDFLAGS=$LDFLAGS
3913 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3914 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3915 # check for ICE first), but we must link in the order -lSM -lICE or
3916 # we get undefined symbols. So assume we have SM if we have ICE.
3917 # These have to be linked with before -lX11, unlike the other
3918 # libraries we check for below, so use a different variable.
3919 # John Interrante, Karl Berry
3920 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3921 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3922 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3924 else
3925 ac_check_lib_save_LIBS=$LIBS
3926 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3927 cat >conftest.$ac_ext <<_ACEOF
3928 /* confdefs.h. */
3929 _ACEOF
3930 cat confdefs.h >>conftest.$ac_ext
3931 cat >>conftest.$ac_ext <<_ACEOF
3932 /* end confdefs.h. */
3934 /* Override any gcc2 internal prototype to avoid an error. */
3935 #ifdef __cplusplus
3936 extern "C"
3937 #endif
3938 /* We use char because int might match the return type of a gcc2
3939 builtin and then its argument prototype would still apply. */
3940 char IceConnectionNumber ();
3942 main ()
3944 IceConnectionNumber ();
3946 return 0;
3948 _ACEOF
3949 rm -f conftest.$ac_objext conftest$ac_exeext
3950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3951 (eval $ac_link) 2>conftest.er1
3952 ac_status=$?
3953 grep -v '^ *+' conftest.er1 >conftest.err
3954 rm -f conftest.er1
3955 cat conftest.err >&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } &&
3958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3960 (eval $ac_try) 2>&5
3961 ac_status=$?
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); }; } &&
3964 { ac_try='test -s conftest$ac_exeext'
3965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3966 (eval $ac_try) 2>&5
3967 ac_status=$?
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); }; }; then
3970 ac_cv_lib_ICE_IceConnectionNumber=yes
3971 else
3972 echo "$as_me: failed program was:" >&5
3973 sed 's/^/| /' conftest.$ac_ext >&5
3975 ac_cv_lib_ICE_IceConnectionNumber=no
3977 rm -f conftest.err conftest.$ac_objext \
3978 conftest$ac_exeext conftest.$ac_ext
3979 LIBS=$ac_check_lib_save_LIBS
3981 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3982 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3983 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3984 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3987 LDFLAGS=$ac_save_LDFLAGS
3991 LDFLAGS="$LDFLAGS $X_LIBS"
3993 echo "$as_me:$LINENO: checking for XNextEvent in -lX11" >&5
3994 echo $ECHO_N "checking for XNextEvent in -lX11... $ECHO_C" >&6
3995 if test "${ac_cv_lib_X11_XNextEvent+set}" = set; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3997 else
3998 ac_check_lib_save_LIBS=$LIBS
3999 LIBS="-lX11 $X_LIBS $LIBS"
4000 cat >conftest.$ac_ext <<_ACEOF
4001 /* confdefs.h. */
4002 _ACEOF
4003 cat confdefs.h >>conftest.$ac_ext
4004 cat >>conftest.$ac_ext <<_ACEOF
4005 /* end confdefs.h. */
4007 /* Override any gcc2 internal prototype to avoid an error. */
4008 #ifdef __cplusplus
4009 extern "C"
4010 #endif
4011 /* We use char because int might match the return type of a gcc2
4012 builtin and then its argument prototype would still apply. */
4013 char XNextEvent ();
4015 main ()
4017 XNextEvent ();
4019 return 0;
4021 _ACEOF
4022 rm -f conftest.$ac_objext conftest$ac_exeext
4023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4024 (eval $ac_link) 2>conftest.er1
4025 ac_status=$?
4026 grep -v '^ *+' conftest.er1 >conftest.err
4027 rm -f conftest.er1
4028 cat conftest.err >&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); } &&
4031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033 (eval $ac_try) 2>&5
4034 ac_status=$?
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); }; } &&
4037 { ac_try='test -s conftest$ac_exeext'
4038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039 (eval $ac_try) 2>&5
4040 ac_status=$?
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; }; then
4043 ac_cv_lib_X11_XNextEvent=yes
4044 else
4045 echo "$as_me: failed program was:" >&5
4046 sed 's/^/| /' conftest.$ac_ext >&5
4048 ac_cv_lib_X11_XNextEvent=no
4050 rm -f conftest.err conftest.$ac_objext \
4051 conftest$ac_exeext conftest.$ac_ext
4052 LIBS=$ac_check_lib_save_LIBS
4054 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XNextEvent" >&5
4055 echo "${ECHO_T}$ac_cv_lib_X11_XNextEvent" >&6
4056 if test $ac_cv_lib_X11_XNextEvent = yes; then
4057 cat >>confdefs.h <<_ACEOF
4058 #define HAVE_LIBX11 1
4059 _ACEOF
4061 LIBS="-lX11 $LIBS"
4063 else
4064 { { echo "$as_me:$LINENO: error: cannot find libX11.so" >&5
4065 echo "$as_me: error: cannot find libX11.so" >&2;}
4066 { (exit 1); exit 1; }; }
4070 echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
4071 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
4072 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4074 else
4075 ac_check_lib_save_LIBS=$LIBS
4076 LIBS="-lXext $X_LIBS $LIBS"
4077 cat >conftest.$ac_ext <<_ACEOF
4078 /* confdefs.h. */
4079 _ACEOF
4080 cat confdefs.h >>conftest.$ac_ext
4081 cat >>conftest.$ac_ext <<_ACEOF
4082 /* end confdefs.h. */
4084 /* Override any gcc2 internal prototype to avoid an error. */
4085 #ifdef __cplusplus
4086 extern "C"
4087 #endif
4088 /* We use char because int might match the return type of a gcc2
4089 builtin and then its argument prototype would still apply. */
4090 char XShapeCombineMask ();
4092 main ()
4094 XShapeCombineMask ();
4096 return 0;
4098 _ACEOF
4099 rm -f conftest.$ac_objext conftest$ac_exeext
4100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4101 (eval $ac_link) 2>conftest.er1
4102 ac_status=$?
4103 grep -v '^ *+' conftest.er1 >conftest.err
4104 rm -f conftest.er1
4105 cat conftest.err >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } &&
4108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4110 (eval $ac_try) 2>&5
4111 ac_status=$?
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); }; } &&
4114 { ac_try='test -s conftest$ac_exeext'
4115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116 (eval $ac_try) 2>&5
4117 ac_status=$?
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; }; then
4120 ac_cv_lib_Xext_XShapeCombineMask=yes
4121 else
4122 echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.$ac_ext >&5
4125 ac_cv_lib_Xext_XShapeCombineMask=no
4127 rm -f conftest.err conftest.$ac_objext \
4128 conftest$ac_exeext conftest.$ac_ext
4129 LIBS=$ac_check_lib_save_LIBS
4131 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
4132 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
4133 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
4134 cat >>confdefs.h <<_ACEOF
4135 #define HAVE_LIBXEXT 1
4136 _ACEOF
4138 LIBS="-lXext $LIBS"
4140 else
4141 { { echo "$as_me:$LINENO: error: cannot find libXext.so" >&5
4142 echo "$as_me: error: cannot find libXext.so" >&2;}
4143 { (exit 1); exit 1; }; }
4147 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
4148 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
4149 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4151 else
4152 ac_check_lib_save_LIBS=$LIBS
4153 LIBS="-lXpm $X_LIBS $LIBS"
4154 cat >conftest.$ac_ext <<_ACEOF
4155 /* confdefs.h. */
4156 _ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4161 /* Override any gcc2 internal prototype to avoid an error. */
4162 #ifdef __cplusplus
4163 extern "C"
4164 #endif
4165 /* We use char because int might match the return type of a gcc2
4166 builtin and then its argument prototype would still apply. */
4167 char XpmCreatePixmapFromData ();
4169 main ()
4171 XpmCreatePixmapFromData ();
4173 return 0;
4175 _ACEOF
4176 rm -f conftest.$ac_objext conftest$ac_exeext
4177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4178 (eval $ac_link) 2>conftest.er1
4179 ac_status=$?
4180 grep -v '^ *+' conftest.er1 >conftest.err
4181 rm -f conftest.er1
4182 cat conftest.err >&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); } &&
4185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187 (eval $ac_try) 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; } &&
4191 { ac_try='test -s conftest$ac_exeext'
4192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4193 (eval $ac_try) 2>&5
4194 ac_status=$?
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); }; }; then
4197 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
4198 else
4199 echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4202 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
4204 rm -f conftest.err conftest.$ac_objext \
4205 conftest$ac_exeext conftest.$ac_ext
4206 LIBS=$ac_check_lib_save_LIBS
4208 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
4209 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
4210 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
4211 cat >>confdefs.h <<_ACEOF
4212 #define HAVE_LIBXPM 1
4213 _ACEOF
4215 LIBS="-lXpm $LIBS"
4217 else
4218 { { echo "$as_me:$LINENO: error: cannot find libXpm.so" >&5
4219 echo "$as_me: error: cannot find libXpm.so" >&2;}
4220 { (exit 1); exit 1; }; }
4223 # ----------------------------------------------------------------------------
4224 ac_ext=c
4225 ac_cpp='$CPP $CPPFLAGS'
4226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4230 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4231 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4232 if test "${ac_cv_c_const+set}" = set; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 else
4235 cat >conftest.$ac_ext <<_ACEOF
4236 /* confdefs.h. */
4237 _ACEOF
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h. */
4243 main ()
4245 /* FIXME: Include the comments suggested by Paul. */
4246 #ifndef __cplusplus
4247 /* Ultrix mips cc rejects this. */
4248 typedef int charset[2];
4249 const charset x;
4250 /* SunOS 4.1.1 cc rejects this. */
4251 char const *const *ccp;
4252 char **p;
4253 /* NEC SVR4.0.2 mips cc rejects this. */
4254 struct point {int x, y;};
4255 static struct point const zero = {0,0};
4256 /* AIX XL C 1.02.0.0 rejects this.
4257 It does not let you subtract one const X* pointer from another in
4258 an arm of an if-expression whose if-part is not a constant
4259 expression */
4260 const char *g = "string";
4261 ccp = &g + (g ? g-g : 0);
4262 /* HPUX 7.0 cc rejects these. */
4263 ++ccp;
4264 p = (char**) ccp;
4265 ccp = (char const *const *) p;
4266 { /* SCO 3.2v4 cc rejects this. */
4267 char *t;
4268 char const *s = 0 ? (char *) 0 : (char const *) 0;
4270 *t++ = 0;
4272 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4273 int x[] = {25, 17};
4274 const int *foo = &x[0];
4275 ++foo;
4277 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4278 typedef const int *iptr;
4279 iptr p = 0;
4280 ++p;
4282 { /* AIX XL C 1.02.0.0 rejects this saying
4283 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4284 struct s { int j; const int *ap[3]; };
4285 struct s *b; b->j = 5;
4287 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4288 const int foo = 10;
4290 #endif
4293 return 0;
4295 _ACEOF
4296 rm -f conftest.$ac_objext
4297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4298 (eval $ac_compile) 2>conftest.er1
4299 ac_status=$?
4300 grep -v '^ *+' conftest.er1 >conftest.err
4301 rm -f conftest.er1
4302 cat conftest.err >&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); } &&
4305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307 (eval $ac_try) 2>&5
4308 ac_status=$?
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; } &&
4311 { ac_try='test -s conftest.$ac_objext'
4312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4313 (eval $ac_try) 2>&5
4314 ac_status=$?
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; }; then
4317 ac_cv_c_const=yes
4318 else
4319 echo "$as_me: failed program was:" >&5
4320 sed 's/^/| /' conftest.$ac_ext >&5
4322 ac_cv_c_const=no
4324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4326 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4327 echo "${ECHO_T}$ac_cv_c_const" >&6
4328 if test $ac_cv_c_const = no; then
4330 cat >>confdefs.h <<\_ACEOF
4331 #define const
4332 _ACEOF
4341 ac_header_dirent=no
4342 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4343 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4344 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4345 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4348 else
4349 cat >conftest.$ac_ext <<_ACEOF
4350 /* confdefs.h. */
4351 _ACEOF
4352 cat confdefs.h >>conftest.$ac_ext
4353 cat >>conftest.$ac_ext <<_ACEOF
4354 /* end confdefs.h. */
4355 #include <sys/types.h>
4356 #include <$ac_hdr>
4359 main ()
4361 if ((DIR *) 0)
4362 return 0;
4364 return 0;
4366 _ACEOF
4367 rm -f conftest.$ac_objext
4368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4369 (eval $ac_compile) 2>conftest.er1
4370 ac_status=$?
4371 grep -v '^ *+' conftest.er1 >conftest.err
4372 rm -f conftest.er1
4373 cat conftest.err >&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); } &&
4376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378 (eval $ac_try) 2>&5
4379 ac_status=$?
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; } &&
4382 { ac_try='test -s conftest.$ac_objext'
4383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384 (eval $ac_try) 2>&5
4385 ac_status=$?
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; }; then
4388 eval "$as_ac_Header=yes"
4389 else
4390 echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4393 eval "$as_ac_Header=no"
4395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4400 cat >>confdefs.h <<_ACEOF
4401 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4402 _ACEOF
4404 ac_header_dirent=$ac_hdr; break
4407 done
4408 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4409 if test $ac_header_dirent = dirent.h; then
4410 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4411 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4412 if test "${ac_cv_search_opendir+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4414 else
4415 ac_func_search_save_LIBS=$LIBS
4416 ac_cv_search_opendir=no
4417 cat >conftest.$ac_ext <<_ACEOF
4418 /* confdefs.h. */
4419 _ACEOF
4420 cat confdefs.h >>conftest.$ac_ext
4421 cat >>conftest.$ac_ext <<_ACEOF
4422 /* end confdefs.h. */
4424 /* Override any gcc2 internal prototype to avoid an error. */
4425 #ifdef __cplusplus
4426 extern "C"
4427 #endif
4428 /* We use char because int might match the return type of a gcc2
4429 builtin and then its argument prototype would still apply. */
4430 char opendir ();
4432 main ()
4434 opendir ();
4436 return 0;
4438 _ACEOF
4439 rm -f conftest.$ac_objext conftest$ac_exeext
4440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4441 (eval $ac_link) 2>conftest.er1
4442 ac_status=$?
4443 grep -v '^ *+' conftest.er1 >conftest.err
4444 rm -f conftest.er1
4445 cat conftest.err >&5
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); } &&
4448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4450 (eval $ac_try) 2>&5
4451 ac_status=$?
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }; } &&
4454 { ac_try='test -s conftest$ac_exeext'
4455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456 (eval $ac_try) 2>&5
4457 ac_status=$?
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; }; then
4460 ac_cv_search_opendir="none required"
4461 else
4462 echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4466 rm -f conftest.err conftest.$ac_objext \
4467 conftest$ac_exeext conftest.$ac_ext
4468 if test "$ac_cv_search_opendir" = no; then
4469 for ac_lib in dir; do
4470 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4471 cat >conftest.$ac_ext <<_ACEOF
4472 /* confdefs.h. */
4473 _ACEOF
4474 cat confdefs.h >>conftest.$ac_ext
4475 cat >>conftest.$ac_ext <<_ACEOF
4476 /* end confdefs.h. */
4478 /* Override any gcc2 internal prototype to avoid an error. */
4479 #ifdef __cplusplus
4480 extern "C"
4481 #endif
4482 /* We use char because int might match the return type of a gcc2
4483 builtin and then its argument prototype would still apply. */
4484 char opendir ();
4486 main ()
4488 opendir ();
4490 return 0;
4492 _ACEOF
4493 rm -f conftest.$ac_objext conftest$ac_exeext
4494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4495 (eval $ac_link) 2>conftest.er1
4496 ac_status=$?
4497 grep -v '^ *+' conftest.er1 >conftest.err
4498 rm -f conftest.er1
4499 cat conftest.err >&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); } &&
4502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4504 (eval $ac_try) 2>&5
4505 ac_status=$?
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }; } &&
4508 { ac_try='test -s conftest$ac_exeext'
4509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4510 (eval $ac_try) 2>&5
4511 ac_status=$?
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); }; }; then
4514 ac_cv_search_opendir="-l$ac_lib"
4515 break
4516 else
4517 echo "$as_me: failed program was:" >&5
4518 sed 's/^/| /' conftest.$ac_ext >&5
4521 rm -f conftest.err conftest.$ac_objext \
4522 conftest$ac_exeext conftest.$ac_ext
4523 done
4525 LIBS=$ac_func_search_save_LIBS
4527 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4528 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4529 if test "$ac_cv_search_opendir" != no; then
4530 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4534 else
4535 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4536 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4537 if test "${ac_cv_search_opendir+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4539 else
4540 ac_func_search_save_LIBS=$LIBS
4541 ac_cv_search_opendir=no
4542 cat >conftest.$ac_ext <<_ACEOF
4543 /* confdefs.h. */
4544 _ACEOF
4545 cat confdefs.h >>conftest.$ac_ext
4546 cat >>conftest.$ac_ext <<_ACEOF
4547 /* end confdefs.h. */
4549 /* Override any gcc2 internal prototype to avoid an error. */
4550 #ifdef __cplusplus
4551 extern "C"
4552 #endif
4553 /* We use char because int might match the return type of a gcc2
4554 builtin and then its argument prototype would still apply. */
4555 char opendir ();
4557 main ()
4559 opendir ();
4561 return 0;
4563 _ACEOF
4564 rm -f conftest.$ac_objext conftest$ac_exeext
4565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4566 (eval $ac_link) 2>conftest.er1
4567 ac_status=$?
4568 grep -v '^ *+' conftest.er1 >conftest.err
4569 rm -f conftest.er1
4570 cat conftest.err >&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); } &&
4573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 (eval $ac_try) 2>&5
4576 ac_status=$?
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; } &&
4579 { ac_try='test -s conftest$ac_exeext'
4580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581 (eval $ac_try) 2>&5
4582 ac_status=$?
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; }; then
4585 ac_cv_search_opendir="none required"
4586 else
4587 echo "$as_me: failed program was:" >&5
4588 sed 's/^/| /' conftest.$ac_ext >&5
4591 rm -f conftest.err conftest.$ac_objext \
4592 conftest$ac_exeext conftest.$ac_ext
4593 if test "$ac_cv_search_opendir" = no; then
4594 for ac_lib in x; do
4595 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4596 cat >conftest.$ac_ext <<_ACEOF
4597 /* confdefs.h. */
4598 _ACEOF
4599 cat confdefs.h >>conftest.$ac_ext
4600 cat >>conftest.$ac_ext <<_ACEOF
4601 /* end confdefs.h. */
4603 /* Override any gcc2 internal prototype to avoid an error. */
4604 #ifdef __cplusplus
4605 extern "C"
4606 #endif
4607 /* We use char because int might match the return type of a gcc2
4608 builtin and then its argument prototype would still apply. */
4609 char opendir ();
4611 main ()
4613 opendir ();
4615 return 0;
4617 _ACEOF
4618 rm -f conftest.$ac_objext conftest$ac_exeext
4619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4620 (eval $ac_link) 2>conftest.er1
4621 ac_status=$?
4622 grep -v '^ *+' conftest.er1 >conftest.err
4623 rm -f conftest.er1
4624 cat conftest.err >&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); } &&
4627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629 (eval $ac_try) 2>&5
4630 ac_status=$?
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }; } &&
4633 { ac_try='test -s conftest$ac_exeext'
4634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635 (eval $ac_try) 2>&5
4636 ac_status=$?
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); }; }; then
4639 ac_cv_search_opendir="-l$ac_lib"
4640 break
4641 else
4642 echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4646 rm -f conftest.err conftest.$ac_objext \
4647 conftest$ac_exeext conftest.$ac_ext
4648 done
4650 LIBS=$ac_func_search_save_LIBS
4652 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4653 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4654 if test "$ac_cv_search_opendir" != no; then
4655 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4661 echo "$as_me:$LINENO: checking for egrep" >&5
4662 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4663 if test "${ac_cv_prog_egrep+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4665 else
4666 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4667 then ac_cv_prog_egrep='grep -E'
4668 else ac_cv_prog_egrep='egrep'
4671 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4672 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4673 EGREP=$ac_cv_prog_egrep
4676 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4677 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4678 if test "${ac_cv_header_stdc+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4680 else
4681 cat >conftest.$ac_ext <<_ACEOF
4682 /* confdefs.h. */
4683 _ACEOF
4684 cat confdefs.h >>conftest.$ac_ext
4685 cat >>conftest.$ac_ext <<_ACEOF
4686 /* end confdefs.h. */
4687 #include <stdlib.h>
4688 #include <stdarg.h>
4689 #include <string.h>
4690 #include <float.h>
4693 main ()
4697 return 0;
4699 _ACEOF
4700 rm -f conftest.$ac_objext
4701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4702 (eval $ac_compile) 2>conftest.er1
4703 ac_status=$?
4704 grep -v '^ *+' conftest.er1 >conftest.err
4705 rm -f conftest.er1
4706 cat conftest.err >&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); } &&
4709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711 (eval $ac_try) 2>&5
4712 ac_status=$?
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); }; } &&
4715 { ac_try='test -s conftest.$ac_objext'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 (eval $ac_try) 2>&5
4718 ac_status=$?
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; }; then
4721 ac_cv_header_stdc=yes
4722 else
4723 echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.$ac_ext >&5
4726 ac_cv_header_stdc=no
4728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4730 if test $ac_cv_header_stdc = yes; then
4731 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4732 cat >conftest.$ac_ext <<_ACEOF
4733 /* confdefs.h. */
4734 _ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4738 #include <string.h>
4740 _ACEOF
4741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4742 $EGREP "memchr" >/dev/null 2>&1; then
4744 else
4745 ac_cv_header_stdc=no
4747 rm -f conftest*
4751 if test $ac_cv_header_stdc = yes; then
4752 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4753 cat >conftest.$ac_ext <<_ACEOF
4754 /* confdefs.h. */
4755 _ACEOF
4756 cat confdefs.h >>conftest.$ac_ext
4757 cat >>conftest.$ac_ext <<_ACEOF
4758 /* end confdefs.h. */
4759 #include <stdlib.h>
4761 _ACEOF
4762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4763 $EGREP "free" >/dev/null 2>&1; then
4765 else
4766 ac_cv_header_stdc=no
4768 rm -f conftest*
4772 if test $ac_cv_header_stdc = yes; then
4773 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4774 if test "$cross_compiling" = yes; then
4776 else
4777 cat >conftest.$ac_ext <<_ACEOF
4778 /* confdefs.h. */
4779 _ACEOF
4780 cat confdefs.h >>conftest.$ac_ext
4781 cat >>conftest.$ac_ext <<_ACEOF
4782 /* end confdefs.h. */
4783 #include <ctype.h>
4784 #if ((' ' & 0x0FF) == 0x020)
4785 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4786 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4787 #else
4788 # define ISLOWER(c) \
4789 (('a' <= (c) && (c) <= 'i') \
4790 || ('j' <= (c) && (c) <= 'r') \
4791 || ('s' <= (c) && (c) <= 'z'))
4792 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4793 #endif
4795 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4797 main ()
4799 int i;
4800 for (i = 0; i < 256; i++)
4801 if (XOR (islower (i), ISLOWER (i))
4802 || toupper (i) != TOUPPER (i))
4803 exit(2);
4804 exit (0);
4806 _ACEOF
4807 rm -f conftest$ac_exeext
4808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4809 (eval $ac_link) 2>&5
4810 ac_status=$?
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814 (eval $ac_try) 2>&5
4815 ac_status=$?
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; }; then
4819 else
4820 echo "$as_me: program exited with status $ac_status" >&5
4821 echo "$as_me: failed program was:" >&5
4822 sed 's/^/| /' conftest.$ac_ext >&5
4824 ( exit $ac_status )
4825 ac_cv_header_stdc=no
4827 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4831 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4832 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4833 if test $ac_cv_header_stdc = yes; then
4835 cat >>confdefs.h <<\_ACEOF
4836 #define STDC_HEADERS 1
4837 _ACEOF
4841 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4842 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4843 if test "${ac_cv_header_time+set}" = set; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4845 else
4846 cat >conftest.$ac_ext <<_ACEOF
4847 /* confdefs.h. */
4848 _ACEOF
4849 cat confdefs.h >>conftest.$ac_ext
4850 cat >>conftest.$ac_ext <<_ACEOF
4851 /* end confdefs.h. */
4852 #include <sys/types.h>
4853 #include <sys/time.h>
4854 #include <time.h>
4857 main ()
4859 if ((struct tm *) 0)
4860 return 0;
4862 return 0;
4864 _ACEOF
4865 rm -f conftest.$ac_objext
4866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4867 (eval $ac_compile) 2>conftest.er1
4868 ac_status=$?
4869 grep -v '^ *+' conftest.er1 >conftest.err
4870 rm -f conftest.er1
4871 cat conftest.err >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } &&
4874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876 (eval $ac_try) 2>&5
4877 ac_status=$?
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; } &&
4880 { ac_try='test -s conftest.$ac_objext'
4881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882 (eval $ac_try) 2>&5
4883 ac_status=$?
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; }; then
4886 ac_cv_header_time=yes
4887 else
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4891 ac_cv_header_time=no
4893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4895 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4896 echo "${ECHO_T}$ac_cv_header_time" >&6
4897 if test $ac_cv_header_time = yes; then
4899 cat >>confdefs.h <<\_ACEOF
4900 #define TIME_WITH_SYS_TIME 1
4901 _ACEOF
4905 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4915 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4916 inttypes.h stdint.h unistd.h
4918 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4919 echo "$as_me:$LINENO: checking for $ac_header" >&5
4920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4923 else
4924 cat >conftest.$ac_ext <<_ACEOF
4925 /* confdefs.h. */
4926 _ACEOF
4927 cat confdefs.h >>conftest.$ac_ext
4928 cat >>conftest.$ac_ext <<_ACEOF
4929 /* end confdefs.h. */
4930 $ac_includes_default
4932 #include <$ac_header>
4933 _ACEOF
4934 rm -f conftest.$ac_objext
4935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4936 (eval $ac_compile) 2>conftest.er1
4937 ac_status=$?
4938 grep -v '^ *+' conftest.er1 >conftest.err
4939 rm -f conftest.er1
4940 cat conftest.err >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); } &&
4943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4945 (eval $ac_try) 2>&5
4946 ac_status=$?
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); }; } &&
4949 { ac_try='test -s conftest.$ac_objext'
4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951 (eval $ac_try) 2>&5
4952 ac_status=$?
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; }; then
4955 eval "$as_ac_Header=yes"
4956 else
4957 echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.$ac_ext >&5
4960 eval "$as_ac_Header=no"
4962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4967 cat >>confdefs.h <<_ACEOF
4968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4969 _ACEOF
4973 done
4981 for ac_header in fcntl.h stdlib.h string.h sys/time.h unistd.h
4983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4985 echo "$as_me:$LINENO: checking for $ac_header" >&5
4986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4988 echo $ECHO_N "(cached) $ECHO_C" >&6
4990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4992 else
4993 # Is the header compilable?
4994 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4995 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4996 cat >conftest.$ac_ext <<_ACEOF
4997 /* confdefs.h. */
4998 _ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h. */
5002 $ac_includes_default
5003 #include <$ac_header>
5004 _ACEOF
5005 rm -f conftest.$ac_objext
5006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5007 (eval $ac_compile) 2>conftest.er1
5008 ac_status=$?
5009 grep -v '^ *+' conftest.er1 >conftest.err
5010 rm -f conftest.er1
5011 cat conftest.err >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); } &&
5014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 (eval $ac_try) 2>&5
5017 ac_status=$?
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; } &&
5020 { ac_try='test -s conftest.$ac_objext'
5021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022 (eval $ac_try) 2>&5
5023 ac_status=$?
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); }; }; then
5026 ac_header_compiler=yes
5027 else
5028 echo "$as_me: failed program was:" >&5
5029 sed 's/^/| /' conftest.$ac_ext >&5
5031 ac_header_compiler=no
5033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5034 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5035 echo "${ECHO_T}$ac_header_compiler" >&6
5037 # Is the header present?
5038 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5040 cat >conftest.$ac_ext <<_ACEOF
5041 /* confdefs.h. */
5042 _ACEOF
5043 cat confdefs.h >>conftest.$ac_ext
5044 cat >>conftest.$ac_ext <<_ACEOF
5045 /* end confdefs.h. */
5046 #include <$ac_header>
5047 _ACEOF
5048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5050 ac_status=$?
5051 grep -v '^ *+' conftest.er1 >conftest.err
5052 rm -f conftest.er1
5053 cat conftest.err >&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } >/dev/null; then
5056 if test -s conftest.err; then
5057 ac_cpp_err=$ac_c_preproc_warn_flag
5058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5059 else
5060 ac_cpp_err=
5062 else
5063 ac_cpp_err=yes
5065 if test -z "$ac_cpp_err"; then
5066 ac_header_preproc=yes
5067 else
5068 echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.$ac_ext >&5
5071 ac_header_preproc=no
5073 rm -f conftest.err conftest.$ac_ext
5074 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5075 echo "${ECHO_T}$ac_header_preproc" >&6
5077 # So? What about this header?
5078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5079 yes:no: )
5080 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5081 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5083 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5084 ac_header_preproc=yes
5086 no:yes:* )
5087 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5088 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5089 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5090 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5091 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5092 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5093 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5094 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5096 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5097 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5098 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5100 cat <<\_ASBOX
5101 ## -------------------------------- ##
5102 ## Report this to martin@godisch.de ##
5103 ## -------------------------------- ##
5104 _ASBOX
5106 sed "s/^/$as_me: WARNING: /" >&2
5108 esac
5109 echo "$as_me:$LINENO: checking for $ac_header" >&5
5110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5112 echo $ECHO_N "(cached) $ECHO_C" >&6
5113 else
5114 eval "$as_ac_Header=\$ac_header_preproc"
5116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5120 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5121 cat >>confdefs.h <<_ACEOF
5122 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5123 _ACEOF
5125 else
5126 { { echo "$as_me:$LINENO: error: required header file missing" >&5
5127 echo "$as_me: error: required header file missing" >&2;}
5128 { (exit 1); exit 1; }; }
5131 done
5133 echo "$as_me:$LINENO: checking for pid_t" >&5
5134 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5135 if test "${ac_cv_type_pid_t+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5137 else
5138 cat >conftest.$ac_ext <<_ACEOF
5139 /* confdefs.h. */
5140 _ACEOF
5141 cat confdefs.h >>conftest.$ac_ext
5142 cat >>conftest.$ac_ext <<_ACEOF
5143 /* end confdefs.h. */
5144 $ac_includes_default
5146 main ()
5148 if ((pid_t *) 0)
5149 return 0;
5150 if (sizeof (pid_t))
5151 return 0;
5153 return 0;
5155 _ACEOF
5156 rm -f conftest.$ac_objext
5157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5158 (eval $ac_compile) 2>conftest.er1
5159 ac_status=$?
5160 grep -v '^ *+' conftest.er1 >conftest.err
5161 rm -f conftest.er1
5162 cat conftest.err >&5
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); } &&
5165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167 (eval $ac_try) 2>&5
5168 ac_status=$?
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); }; } &&
5171 { ac_try='test -s conftest.$ac_objext'
5172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173 (eval $ac_try) 2>&5
5174 ac_status=$?
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); }; }; then
5177 ac_cv_type_pid_t=yes
5178 else
5179 echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.$ac_ext >&5
5182 ac_cv_type_pid_t=no
5184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5186 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5187 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
5188 if test $ac_cv_type_pid_t = yes; then
5190 else
5192 cat >>confdefs.h <<_ACEOF
5193 #define pid_t int
5194 _ACEOF
5198 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5199 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5200 if test "${ac_cv_type_signal+set}" = set; then
5201 echo $ECHO_N "(cached) $ECHO_C" >&6
5202 else
5203 cat >conftest.$ac_ext <<_ACEOF
5204 /* confdefs.h. */
5205 _ACEOF
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
5208 /* end confdefs.h. */
5209 #include <sys/types.h>
5210 #include <signal.h>
5211 #ifdef signal
5212 # undef signal
5213 #endif
5214 #ifdef __cplusplus
5215 extern "C" void (*signal (int, void (*)(int)))(int);
5216 #else
5217 void (*signal ()) ();
5218 #endif
5221 main ()
5223 int i;
5225 return 0;
5227 _ACEOF
5228 rm -f conftest.$ac_objext
5229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5230 (eval $ac_compile) 2>conftest.er1
5231 ac_status=$?
5232 grep -v '^ *+' conftest.er1 >conftest.err
5233 rm -f conftest.er1
5234 cat conftest.err >&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } &&
5237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5239 (eval $ac_try) 2>&5
5240 ac_status=$?
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); }; } &&
5243 { ac_try='test -s conftest.$ac_objext'
5244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5245 (eval $ac_try) 2>&5
5246 ac_status=$?
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }; }; then
5249 ac_cv_type_signal=void
5250 else
5251 echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.$ac_ext >&5
5254 ac_cv_type_signal=int
5256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5258 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5259 echo "${ECHO_T}$ac_cv_type_signal" >&6
5261 cat >>confdefs.h <<_ACEOF
5262 #define RETSIGTYPE $ac_cv_type_signal
5263 _ACEOF
5266 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
5267 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
5268 if test "${ac_cv_func_closedir_void+set}" = set; then
5269 echo $ECHO_N "(cached) $ECHO_C" >&6
5270 else
5271 if test "$cross_compiling" = yes; then
5272 ac_cv_func_closedir_void=yes
5273 else
5274 cat >conftest.$ac_ext <<_ACEOF
5275 /* confdefs.h. */
5276 _ACEOF
5277 cat confdefs.h >>conftest.$ac_ext
5278 cat >>conftest.$ac_ext <<_ACEOF
5279 /* end confdefs.h. */
5280 $ac_includes_default
5281 #include <$ac_header_dirent>
5282 #ifndef __cplusplus
5283 int closedir ();
5284 #endif
5287 main ()
5289 exit (closedir (opendir (".")) != 0);
5291 return 0;
5293 _ACEOF
5294 rm -f conftest$ac_exeext
5295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5296 (eval $ac_link) 2>&5
5297 ac_status=$?
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301 (eval $ac_try) 2>&5
5302 ac_status=$?
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }; }; then
5305 ac_cv_func_closedir_void=no
5306 else
5307 echo "$as_me: program exited with status $ac_status" >&5
5308 echo "$as_me: failed program was:" >&5
5309 sed 's/^/| /' conftest.$ac_ext >&5
5311 ( exit $ac_status )
5312 ac_cv_func_closedir_void=yes
5314 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5317 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
5318 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
5319 if test $ac_cv_func_closedir_void = yes; then
5321 cat >>confdefs.h <<\_ACEOF
5322 #define CLOSEDIR_VOID 1
5323 _ACEOF
5328 for ac_header in stdlib.h
5330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5332 echo "$as_me:$LINENO: checking for $ac_header" >&5
5333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5335 echo $ECHO_N "(cached) $ECHO_C" >&6
5337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5339 else
5340 # Is the header compilable?
5341 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5343 cat >conftest.$ac_ext <<_ACEOF
5344 /* confdefs.h. */
5345 _ACEOF
5346 cat confdefs.h >>conftest.$ac_ext
5347 cat >>conftest.$ac_ext <<_ACEOF
5348 /* end confdefs.h. */
5349 $ac_includes_default
5350 #include <$ac_header>
5351 _ACEOF
5352 rm -f conftest.$ac_objext
5353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5354 (eval $ac_compile) 2>conftest.er1
5355 ac_status=$?
5356 grep -v '^ *+' conftest.er1 >conftest.err
5357 rm -f conftest.er1
5358 cat conftest.err >&5
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); } &&
5361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5363 (eval $ac_try) 2>&5
5364 ac_status=$?
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); }; } &&
5367 { ac_try='test -s conftest.$ac_objext'
5368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369 (eval $ac_try) 2>&5
5370 ac_status=$?
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }; }; then
5373 ac_header_compiler=yes
5374 else
5375 echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.$ac_ext >&5
5378 ac_header_compiler=no
5380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5381 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5382 echo "${ECHO_T}$ac_header_compiler" >&6
5384 # Is the header present?
5385 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5386 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5387 cat >conftest.$ac_ext <<_ACEOF
5388 /* confdefs.h. */
5389 _ACEOF
5390 cat confdefs.h >>conftest.$ac_ext
5391 cat >>conftest.$ac_ext <<_ACEOF
5392 /* end confdefs.h. */
5393 #include <$ac_header>
5394 _ACEOF
5395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5396 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5397 ac_status=$?
5398 grep -v '^ *+' conftest.er1 >conftest.err
5399 rm -f conftest.er1
5400 cat conftest.err >&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); } >/dev/null; then
5403 if test -s conftest.err; then
5404 ac_cpp_err=$ac_c_preproc_warn_flag
5405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5406 else
5407 ac_cpp_err=
5409 else
5410 ac_cpp_err=yes
5412 if test -z "$ac_cpp_err"; then
5413 ac_header_preproc=yes
5414 else
5415 echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.$ac_ext >&5
5418 ac_header_preproc=no
5420 rm -f conftest.err conftest.$ac_ext
5421 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5422 echo "${ECHO_T}$ac_header_preproc" >&6
5424 # So? What about this header?
5425 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5426 yes:no: )
5427 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5428 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5430 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5431 ac_header_preproc=yes
5433 no:yes:* )
5434 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5435 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5436 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5437 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5438 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5439 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5440 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5441 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5443 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5444 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5445 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5447 cat <<\_ASBOX
5448 ## -------------------------------- ##
5449 ## Report this to martin@godisch.de ##
5450 ## -------------------------------- ##
5451 _ASBOX
5453 sed "s/^/$as_me: WARNING: /" >&2
5455 esac
5456 echo "$as_me:$LINENO: checking for $ac_header" >&5
5457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5459 echo $ECHO_N "(cached) $ECHO_C" >&6
5460 else
5461 eval "$as_ac_Header=\$ac_header_preproc"
5463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5468 cat >>confdefs.h <<_ACEOF
5469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5470 _ACEOF
5474 done
5476 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
5477 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
5478 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
5479 echo $ECHO_N "(cached) $ECHO_C" >&6
5480 else
5481 if test "$cross_compiling" = yes; then
5482 ac_cv_func_malloc_0_nonnull=no
5483 else
5484 cat >conftest.$ac_ext <<_ACEOF
5485 /* confdefs.h. */
5486 _ACEOF
5487 cat confdefs.h >>conftest.$ac_ext
5488 cat >>conftest.$ac_ext <<_ACEOF
5489 /* end confdefs.h. */
5490 #if STDC_HEADERS || HAVE_STDLIB_H
5491 # include <stdlib.h>
5492 #else
5493 char *malloc ();
5494 #endif
5497 main ()
5499 exit (malloc (0) ? 0 : 1);
5501 return 0;
5503 _ACEOF
5504 rm -f conftest$ac_exeext
5505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5506 (eval $ac_link) 2>&5
5507 ac_status=$?
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5511 (eval $ac_try) 2>&5
5512 ac_status=$?
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); }; }; then
5515 ac_cv_func_malloc_0_nonnull=yes
5516 else
5517 echo "$as_me: program exited with status $ac_status" >&5
5518 echo "$as_me: failed program was:" >&5
5519 sed 's/^/| /' conftest.$ac_ext >&5
5521 ( exit $ac_status )
5522 ac_cv_func_malloc_0_nonnull=no
5524 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5527 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
5528 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
5529 if test $ac_cv_func_malloc_0_nonnull = yes; then
5531 cat >>confdefs.h <<\_ACEOF
5532 #define HAVE_MALLOC 1
5533 _ACEOF
5535 else
5536 cat >>confdefs.h <<\_ACEOF
5537 #define HAVE_MALLOC 0
5538 _ACEOF
5540 case $LIBOBJS in
5541 "malloc.$ac_objext" | \
5542 *" malloc.$ac_objext" | \
5543 "malloc.$ac_objext "* | \
5544 *" malloc.$ac_objext "* ) ;;
5545 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
5546 esac
5549 cat >>confdefs.h <<\_ACEOF
5550 #define malloc rpl_malloc
5551 _ACEOF
5557 echo "$as_me:$LINENO: checking for working memcmp" >&5
5558 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
5559 if test "${ac_cv_func_memcmp_working+set}" = set; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 else
5562 if test "$cross_compiling" = yes; then
5563 ac_cv_func_memcmp_working=no
5564 else
5565 cat >conftest.$ac_ext <<_ACEOF
5566 /* confdefs.h. */
5567 _ACEOF
5568 cat confdefs.h >>conftest.$ac_ext
5569 cat >>conftest.$ac_ext <<_ACEOF
5570 /* end confdefs.h. */
5571 $ac_includes_default
5573 main ()
5576 /* Some versions of memcmp are not 8-bit clean. */
5577 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
5578 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5579 exit (1);
5581 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5582 or more and with at least one buffer not starting on a 4-byte boundary.
5583 William Lewis provided this test program. */
5585 char foo[21];
5586 char bar[21];
5587 int i;
5588 for (i = 0; i < 4; i++)
5590 char *a = foo + i;
5591 char *b = bar + i;
5592 strcpy (a, "--------01111111");
5593 strcpy (b, "--------10000000");
5594 if (memcmp (a, b, 16) >= 0)
5595 exit (1);
5597 exit (0);
5601 return 0;
5603 _ACEOF
5604 rm -f conftest$ac_exeext
5605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5606 (eval $ac_link) 2>&5
5607 ac_status=$?
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611 (eval $ac_try) 2>&5
5612 ac_status=$?
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; }; then
5615 ac_cv_func_memcmp_working=yes
5616 else
5617 echo "$as_me: program exited with status $ac_status" >&5
5618 echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5621 ( exit $ac_status )
5622 ac_cv_func_memcmp_working=no
5624 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5627 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
5628 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
5629 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
5630 "memcmp.$ac_objext" | \
5631 *" memcmp.$ac_objext" | \
5632 "memcmp.$ac_objext "* | \
5633 *" memcmp.$ac_objext "* ) ;;
5634 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
5635 esac
5639 for ac_func in strftime
5641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5642 echo "$as_me:$LINENO: checking for $ac_func" >&5
5643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5644 if eval "test \"\${$as_ac_var+set}\" = set"; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 else
5647 cat >conftest.$ac_ext <<_ACEOF
5648 /* confdefs.h. */
5649 _ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h. */
5653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5655 #define $ac_func innocuous_$ac_func
5657 /* System header to define __stub macros and hopefully few prototypes,
5658 which can conflict with char $ac_func (); below.
5659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5660 <limits.h> exists even on freestanding compilers. */
5662 #ifdef __STDC__
5663 # include <limits.h>
5664 #else
5665 # include <assert.h>
5666 #endif
5668 #undef $ac_func
5670 /* Override any gcc2 internal prototype to avoid an error. */
5671 #ifdef __cplusplus
5672 extern "C"
5674 #endif
5675 /* We use char because int might match the return type of a gcc2
5676 builtin and then its argument prototype would still apply. */
5677 char $ac_func ();
5678 /* The GNU C library defines this for functions which it implements
5679 to always fail with ENOSYS. Some functions are actually named
5680 something starting with __ and the normal name is an alias. */
5681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5682 choke me
5683 #else
5684 char (*f) () = $ac_func;
5685 #endif
5686 #ifdef __cplusplus
5688 #endif
5691 main ()
5693 return f != $ac_func;
5695 return 0;
5697 _ACEOF
5698 rm -f conftest.$ac_objext conftest$ac_exeext
5699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5700 (eval $ac_link) 2>conftest.er1
5701 ac_status=$?
5702 grep -v '^ *+' conftest.er1 >conftest.err
5703 rm -f conftest.er1
5704 cat conftest.err >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } &&
5707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5709 (eval $ac_try) 2>&5
5710 ac_status=$?
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); }; } &&
5713 { ac_try='test -s conftest$ac_exeext'
5714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5715 (eval $ac_try) 2>&5
5716 ac_status=$?
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); }; }; then
5719 eval "$as_ac_var=yes"
5720 else
5721 echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.$ac_ext >&5
5724 eval "$as_ac_var=no"
5726 rm -f conftest.err conftest.$ac_objext \
5727 conftest$ac_exeext conftest.$ac_ext
5729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5730 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5731 if test `eval echo '${'$as_ac_var'}'` = yes; then
5732 cat >>confdefs.h <<_ACEOF
5733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5734 _ACEOF
5736 else
5737 # strftime is in -lintl on SCO UNIX.
5738 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
5739 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
5740 if test "${ac_cv_lib_intl_strftime+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5742 else
5743 ac_check_lib_save_LIBS=$LIBS
5744 LIBS="-lintl $LIBS"
5745 cat >conftest.$ac_ext <<_ACEOF
5746 /* confdefs.h. */
5747 _ACEOF
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h. */
5752 /* Override any gcc2 internal prototype to avoid an error. */
5753 #ifdef __cplusplus
5754 extern "C"
5755 #endif
5756 /* We use char because int might match the return type of a gcc2
5757 builtin and then its argument prototype would still apply. */
5758 char strftime ();
5760 main ()
5762 strftime ();
5764 return 0;
5766 _ACEOF
5767 rm -f conftest.$ac_objext conftest$ac_exeext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5769 (eval $ac_link) 2>conftest.er1
5770 ac_status=$?
5771 grep -v '^ *+' conftest.er1 >conftest.err
5772 rm -f conftest.er1
5773 cat conftest.err >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } &&
5776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778 (eval $ac_try) 2>&5
5779 ac_status=$?
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; } &&
5782 { ac_try='test -s conftest$ac_exeext'
5783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784 (eval $ac_try) 2>&5
5785 ac_status=$?
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }; }; then
5788 ac_cv_lib_intl_strftime=yes
5789 else
5790 echo "$as_me: failed program was:" >&5
5791 sed 's/^/| /' conftest.$ac_ext >&5
5793 ac_cv_lib_intl_strftime=no
5795 rm -f conftest.err conftest.$ac_objext \
5796 conftest$ac_exeext conftest.$ac_ext
5797 LIBS=$ac_check_lib_save_LIBS
5799 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
5800 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
5801 if test $ac_cv_lib_intl_strftime = yes; then
5802 cat >>confdefs.h <<\_ACEOF
5803 #define HAVE_STRFTIME 1
5804 _ACEOF
5806 LIBS="-lintl $LIBS"
5810 done
5821 for ac_func in atexit gettimeofday mkdir strcspn strdup strerror strspn strstr strtol
5823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5824 echo "$as_me:$LINENO: checking for $ac_func" >&5
5825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5826 if eval "test \"\${$as_ac_var+set}\" = set"; then
5827 echo $ECHO_N "(cached) $ECHO_C" >&6
5828 else
5829 cat >conftest.$ac_ext <<_ACEOF
5830 /* confdefs.h. */
5831 _ACEOF
5832 cat confdefs.h >>conftest.$ac_ext
5833 cat >>conftest.$ac_ext <<_ACEOF
5834 /* end confdefs.h. */
5835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5837 #define $ac_func innocuous_$ac_func
5839 /* System header to define __stub macros and hopefully few prototypes,
5840 which can conflict with char $ac_func (); below.
5841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5842 <limits.h> exists even on freestanding compilers. */
5844 #ifdef __STDC__
5845 # include <limits.h>
5846 #else
5847 # include <assert.h>
5848 #endif
5850 #undef $ac_func
5852 /* Override any gcc2 internal prototype to avoid an error. */
5853 #ifdef __cplusplus
5854 extern "C"
5856 #endif
5857 /* We use char because int might match the return type of a gcc2
5858 builtin and then its argument prototype would still apply. */
5859 char $ac_func ();
5860 /* The GNU C library defines this for functions which it implements
5861 to always fail with ENOSYS. Some functions are actually named
5862 something starting with __ and the normal name is an alias. */
5863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5864 choke me
5865 #else
5866 char (*f) () = $ac_func;
5867 #endif
5868 #ifdef __cplusplus
5870 #endif
5873 main ()
5875 return f != $ac_func;
5877 return 0;
5879 _ACEOF
5880 rm -f conftest.$ac_objext conftest$ac_exeext
5881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5882 (eval $ac_link) 2>conftest.er1
5883 ac_status=$?
5884 grep -v '^ *+' conftest.er1 >conftest.err
5885 rm -f conftest.er1
5886 cat conftest.err >&5
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); } &&
5889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5891 (eval $ac_try) 2>&5
5892 ac_status=$?
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; } &&
5895 { ac_try='test -s conftest$ac_exeext'
5896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5897 (eval $ac_try) 2>&5
5898 ac_status=$?
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); }; }; then
5901 eval "$as_ac_var=yes"
5902 else
5903 echo "$as_me: failed program was:" >&5
5904 sed 's/^/| /' conftest.$ac_ext >&5
5906 eval "$as_ac_var=no"
5908 rm -f conftest.err conftest.$ac_objext \
5909 conftest$ac_exeext conftest.$ac_ext
5911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5912 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5913 if test `eval echo '${'$as_ac_var'}'` = yes; then
5914 cat >>confdefs.h <<_ACEOF
5915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5916 _ACEOF
5918 else
5919 { { echo "$as_me:$LINENO: error: required standard library function missing" >&5
5920 echo "$as_me: error: required standard library function missing" >&2;}
5921 { (exit 1); exit 1; }; }
5923 done
5925 # ----------------------------------------------------------------------------
5926 ac_config_files="$ac_config_files Makefile wmwork.1"
5928 cat >confcache <<\_ACEOF
5929 # This file is a shell script that caches the results of configure
5930 # tests run on this system so they can be shared between configure
5931 # scripts and configure runs, see configure's option --config-cache.
5932 # It is not useful on other systems. If it contains results you don't
5933 # want to keep, you may remove or edit it.
5935 # config.status only pays attention to the cache file if you give it
5936 # the --recheck option to rerun configure.
5938 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5939 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5940 # following values.
5942 _ACEOF
5944 # The following way of writing the cache mishandles newlines in values,
5945 # but we know of no workaround that is simple, portable, and efficient.
5946 # So, don't put newlines in cache variables' values.
5947 # Ultrix sh set writes to stderr and can't be redirected directly,
5948 # and sets the high bit in the cache file unless we assign to the vars.
5950 (set) 2>&1 |
5951 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5952 *ac_space=\ *)
5953 # `set' does not quote correctly, so add quotes (double-quote
5954 # substitution turns \\\\ into \\, and sed turns \\ into \).
5955 sed -n \
5956 "s/'/'\\\\''/g;
5957 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5960 # `set' quotes correctly as required by POSIX, so do not add quotes.
5961 sed -n \
5962 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5964 esac;
5966 sed '
5967 t clear
5968 : clear
5969 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5970 t end
5971 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5972 : end' >>confcache
5973 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5974 if test -w $cache_file; then
5975 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5976 cat confcache >$cache_file
5977 else
5978 echo "not updating unwritable cache $cache_file"
5981 rm -f confcache
5983 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5984 # Let make expand exec_prefix.
5985 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5987 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5988 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5989 # trailing colons and then remove the whole line if VPATH becomes empty
5990 # (actually we leave an empty line to preserve line numbers).
5991 if test "x$srcdir" = x.; then
5992 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5993 s/:*\$(srcdir):*/:/;
5994 s/:*\${srcdir}:*/:/;
5995 s/:*@srcdir@:*/:/;
5996 s/^\([^=]*=[ ]*\):*/\1/;
5997 s/:*$//;
5998 s/^[^=]*=[ ]*$//;
6002 DEFS=-DHAVE_CONFIG_H
6004 ac_libobjs=
6005 ac_ltlibobjs=
6006 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6007 # 1. Remove the extension, and $U if already installed.
6008 ac_i=`echo "$ac_i" |
6009 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6010 # 2. Add them.
6011 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6012 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6013 done
6014 LIBOBJS=$ac_libobjs
6016 LTLIBOBJS=$ac_ltlibobjs
6020 : ${CONFIG_STATUS=./config.status}
6021 ac_clean_files_save=$ac_clean_files
6022 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6023 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6024 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6025 cat >$CONFIG_STATUS <<_ACEOF
6026 #! $SHELL
6027 # Generated by $as_me.
6028 # Run this file to recreate the current configuration.
6029 # Compiler output produced by configure, useful for debugging
6030 # configure, is in config.log if it exists.
6032 debug=false
6033 ac_cs_recheck=false
6034 ac_cs_silent=false
6035 SHELL=\${CONFIG_SHELL-$SHELL}
6036 _ACEOF
6038 cat >>$CONFIG_STATUS <<\_ACEOF
6039 ## --------------------- ##
6040 ## M4sh Initialization. ##
6041 ## --------------------- ##
6043 # Be Bourne compatible
6044 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6045 emulate sh
6046 NULLCMD=:
6047 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6048 # is contrary to our usage. Disable this feature.
6049 alias -g '${1+"$@"}'='"$@"'
6050 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6051 set -o posix
6053 DUALCASE=1; export DUALCASE # for MKS sh
6055 # Support unset when possible.
6056 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6057 as_unset=unset
6058 else
6059 as_unset=false
6063 # Work around bugs in pre-3.0 UWIN ksh.
6064 $as_unset ENV MAIL MAILPATH
6065 PS1='$ '
6066 PS2='> '
6067 PS4='+ '
6069 # NLS nuisances.
6070 for as_var in \
6071 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6072 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6073 LC_TELEPHONE LC_TIME
6075 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6076 eval $as_var=C; export $as_var
6077 else
6078 $as_unset $as_var
6080 done
6082 # Required to use basename.
6083 if expr a : '\(a\)' >/dev/null 2>&1; then
6084 as_expr=expr
6085 else
6086 as_expr=false
6089 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6090 as_basename=basename
6091 else
6092 as_basename=false
6096 # Name of the executable.
6097 as_me=`$as_basename "$0" ||
6098 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6099 X"$0" : 'X\(//\)$' \| \
6100 X"$0" : 'X\(/\)$' \| \
6101 . : '\(.\)' 2>/dev/null ||
6102 echo X/"$0" |
6103 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6104 /^X\/\(\/\/\)$/{ s//\1/; q; }
6105 /^X\/\(\/\).*/{ s//\1/; q; }
6106 s/.*/./; q'`
6109 # PATH needs CR, and LINENO needs CR and PATH.
6110 # Avoid depending upon Character Ranges.
6111 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6112 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6113 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6114 as_cr_digits='0123456789'
6115 as_cr_alnum=$as_cr_Letters$as_cr_digits
6117 # The user is always right.
6118 if test "${PATH_SEPARATOR+set}" != set; then
6119 echo "#! /bin/sh" >conf$$.sh
6120 echo "exit 0" >>conf$$.sh
6121 chmod +x conf$$.sh
6122 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6123 PATH_SEPARATOR=';'
6124 else
6125 PATH_SEPARATOR=:
6127 rm -f conf$$.sh
6131 as_lineno_1=$LINENO
6132 as_lineno_2=$LINENO
6133 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6134 test "x$as_lineno_1" != "x$as_lineno_2" &&
6135 test "x$as_lineno_3" = "x$as_lineno_2" || {
6136 # Find who we are. Look in the path if we contain no path at all
6137 # relative or not.
6138 case $0 in
6139 *[\\/]* ) as_myself=$0 ;;
6140 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 for as_dir in $PATH
6143 IFS=$as_save_IFS
6144 test -z "$as_dir" && as_dir=.
6145 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6146 done
6149 esac
6150 # We did not find ourselves, most probably we were run as `sh COMMAND'
6151 # in which case we are not to be found in the path.
6152 if test "x$as_myself" = x; then
6153 as_myself=$0
6155 if test ! -f "$as_myself"; then
6156 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6157 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6158 { (exit 1); exit 1; }; }
6160 case $CONFIG_SHELL in
6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6165 IFS=$as_save_IFS
6166 test -z "$as_dir" && as_dir=.
6167 for as_base in sh bash ksh sh5; do
6168 case $as_dir in
6170 if ("$as_dir/$as_base" -c '
6171 as_lineno_1=$LINENO
6172 as_lineno_2=$LINENO
6173 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6174 test "x$as_lineno_1" != "x$as_lineno_2" &&
6175 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6176 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6177 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6178 CONFIG_SHELL=$as_dir/$as_base
6179 export CONFIG_SHELL
6180 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6181 fi;;
6182 esac
6183 done
6184 done
6186 esac
6188 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6189 # uniformly replaced by the line number. The first 'sed' inserts a
6190 # line-number line before each line; the second 'sed' does the real
6191 # work. The second script uses 'N' to pair each line-number line
6192 # with the numbered line, and appends trailing '-' during
6193 # substitution so that $LINENO is not a special case at line end.
6194 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6195 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6196 sed '=' <$as_myself |
6197 sed '
6199 s,$,-,
6200 : loop
6201 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6202 t loop
6203 s,-$,,
6204 s,^['$as_cr_digits']*\n,,
6205 ' >$as_me.lineno &&
6206 chmod +x $as_me.lineno ||
6207 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6208 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6209 { (exit 1); exit 1; }; }
6211 # Don't try to exec as it changes $[0], causing all sort of problems
6212 # (the dirname of $[0] is not the place where we might find the
6213 # original and so on. Autoconf is especially sensible to this).
6214 . ./$as_me.lineno
6215 # Exit status is that of the last command.
6216 exit
6220 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6221 *c*,-n*) ECHO_N= ECHO_C='
6222 ' ECHO_T=' ' ;;
6223 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6224 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6225 esac
6227 if expr a : '\(a\)' >/dev/null 2>&1; then
6228 as_expr=expr
6229 else
6230 as_expr=false
6233 rm -f conf$$ conf$$.exe conf$$.file
6234 echo >conf$$.file
6235 if ln -s conf$$.file conf$$ 2>/dev/null; then
6236 # We could just check for DJGPP; but this test a) works b) is more generic
6237 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6238 if test -f conf$$.exe; then
6239 # Don't use ln at all; we don't have any links
6240 as_ln_s='cp -p'
6241 else
6242 as_ln_s='ln -s'
6244 elif ln conf$$.file conf$$ 2>/dev/null; then
6245 as_ln_s=ln
6246 else
6247 as_ln_s='cp -p'
6249 rm -f conf$$ conf$$.exe conf$$.file
6251 if mkdir -p . 2>/dev/null; then
6252 as_mkdir_p=:
6253 else
6254 test -d ./-p && rmdir ./-p
6255 as_mkdir_p=false
6258 as_executable_p="test -f"
6260 # Sed expression to map a string onto a valid CPP name.
6261 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6263 # Sed expression to map a string onto a valid variable name.
6264 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6267 # IFS
6268 # We need space, tab and new line, in precisely that order.
6269 as_nl='
6271 IFS=" $as_nl"
6273 # CDPATH.
6274 $as_unset CDPATH
6276 exec 6>&1
6278 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6279 # report actual input values of CONFIG_FILES etc. instead of their
6280 # values after options handling. Logging --version etc. is OK.
6281 exec 5>>config.log
6283 echo
6284 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6285 ## Running $as_me. ##
6286 _ASBOX
6287 } >&5
6288 cat >&5 <<_CSEOF
6290 This file was extended by wmwork $as_me 0.2.5, which was
6291 generated by GNU Autoconf 2.59. Invocation command line was
6293 CONFIG_FILES = $CONFIG_FILES
6294 CONFIG_HEADERS = $CONFIG_HEADERS
6295 CONFIG_LINKS = $CONFIG_LINKS
6296 CONFIG_COMMANDS = $CONFIG_COMMANDS
6297 $ $0 $@
6299 _CSEOF
6300 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6301 echo >&5
6302 _ACEOF
6304 # Files that config.status was made for.
6305 if test -n "$ac_config_files"; then
6306 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6309 if test -n "$ac_config_headers"; then
6310 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6313 if test -n "$ac_config_links"; then
6314 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6317 if test -n "$ac_config_commands"; then
6318 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6321 cat >>$CONFIG_STATUS <<\_ACEOF
6323 ac_cs_usage="\
6324 \`$as_me' instantiates files from templates according to the
6325 current configuration.
6327 Usage: $0 [OPTIONS] [FILE]...
6329 -h, --help print this help, then exit
6330 -V, --version print version number, then exit
6331 -q, --quiet do not print progress messages
6332 -d, --debug don't remove temporary files
6333 --recheck update $as_me by reconfiguring in the same conditions
6334 --file=FILE[:TEMPLATE]
6335 instantiate the configuration file FILE
6336 --header=FILE[:TEMPLATE]
6337 instantiate the configuration header FILE
6339 Configuration files:
6340 $config_files
6342 Configuration headers:
6343 $config_headers
6345 Report bugs to <bug-autoconf@gnu.org>."
6346 _ACEOF
6348 cat >>$CONFIG_STATUS <<_ACEOF
6349 ac_cs_version="\\
6350 wmwork config.status 0.2.5
6351 configured by $0, generated by GNU Autoconf 2.59,
6352 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6354 Copyright (C) 2003 Free Software Foundation, Inc.
6355 This config.status script is free software; the Free Software Foundation
6356 gives unlimited permission to copy, distribute and modify it."
6357 srcdir=$srcdir
6358 INSTALL="$INSTALL"
6359 _ACEOF
6361 cat >>$CONFIG_STATUS <<\_ACEOF
6362 # If no file are specified by the user, then we need to provide default
6363 # value. By we need to know if files were specified by the user.
6364 ac_need_defaults=:
6365 while test $# != 0
6367 case $1 in
6368 --*=*)
6369 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6370 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6371 ac_shift=:
6374 ac_option=$1
6375 ac_optarg=$2
6376 ac_shift=shift
6378 *) # This is not an option, so the user has probably given explicit
6379 # arguments.
6380 ac_option=$1
6381 ac_need_defaults=false;;
6382 esac
6384 case $ac_option in
6385 # Handling of the options.
6386 _ACEOF
6387 cat >>$CONFIG_STATUS <<\_ACEOF
6388 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6389 ac_cs_recheck=: ;;
6390 --version | --vers* | -V )
6391 echo "$ac_cs_version"; exit 0 ;;
6392 --he | --h)
6393 # Conflict between --help and --header
6394 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6395 Try \`$0 --help' for more information." >&5
6396 echo "$as_me: error: ambiguous option: $1
6397 Try \`$0 --help' for more information." >&2;}
6398 { (exit 1); exit 1; }; };;
6399 --help | --hel | -h )
6400 echo "$ac_cs_usage"; exit 0 ;;
6401 --debug | --d* | -d )
6402 debug=: ;;
6403 --file | --fil | --fi | --f )
6404 $ac_shift
6405 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6406 ac_need_defaults=false;;
6407 --header | --heade | --head | --hea )
6408 $ac_shift
6409 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6410 ac_need_defaults=false;;
6411 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6412 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6413 ac_cs_silent=: ;;
6415 # This is an error.
6416 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6417 Try \`$0 --help' for more information." >&5
6418 echo "$as_me: error: unrecognized option: $1
6419 Try \`$0 --help' for more information." >&2;}
6420 { (exit 1); exit 1; }; } ;;
6422 *) ac_config_targets="$ac_config_targets $1" ;;
6424 esac
6425 shift
6426 done
6428 ac_configure_extra_args=
6430 if $ac_cs_silent; then
6431 exec 6>/dev/null
6432 ac_configure_extra_args="$ac_configure_extra_args --silent"
6435 _ACEOF
6436 cat >>$CONFIG_STATUS <<_ACEOF
6437 if \$ac_cs_recheck; then
6438 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6439 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6442 _ACEOF
6448 cat >>$CONFIG_STATUS <<\_ACEOF
6449 for ac_config_target in $ac_config_targets
6451 case "$ac_config_target" in
6452 # Handling of arguments.
6453 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6454 "wmwork.1" ) CONFIG_FILES="$CONFIG_FILES wmwork.1" ;;
6455 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6456 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6457 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6458 { (exit 1); exit 1; }; };;
6459 esac
6460 done
6462 # If the user did not use the arguments to specify the items to instantiate,
6463 # then the envvar interface is used. Set only those that are not.
6464 # We use the long form for the default assignment because of an extremely
6465 # bizarre bug on SunOS 4.1.3.
6466 if $ac_need_defaults; then
6467 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6468 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6471 # Have a temporary directory for convenience. Make it in the build tree
6472 # simply because there is no reason to put it here, and in addition,
6473 # creating and moving files from /tmp can sometimes cause problems.
6474 # Create a temporary directory, and hook for its removal unless debugging.
6475 $debug ||
6477 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6478 trap '{ (exit 1); exit 1; }' 1 2 13 15
6481 # Create a (secure) tmp directory for tmp files.
6484 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6485 test -n "$tmp" && test -d "$tmp"
6486 } ||
6488 tmp=./confstat$$-$RANDOM
6489 (umask 077 && mkdir $tmp)
6490 } ||
6492 echo "$me: cannot create a temporary directory in ." >&2
6493 { (exit 1); exit 1; }
6496 _ACEOF
6498 cat >>$CONFIG_STATUS <<_ACEOF
6501 # CONFIG_FILES section.
6504 # No need to generate the scripts if there are no CONFIG_FILES.
6505 # This happens for instance when ./config.status config.h
6506 if test -n "\$CONFIG_FILES"; then
6507 # Protect against being on the right side of a sed subst in config.status.
6508 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6509 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6510 s,@SHELL@,$SHELL,;t t
6511 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6512 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6513 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6514 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6515 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6516 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6517 s,@exec_prefix@,$exec_prefix,;t t
6518 s,@prefix@,$prefix,;t t
6519 s,@program_transform_name@,$program_transform_name,;t t
6520 s,@bindir@,$bindir,;t t
6521 s,@sbindir@,$sbindir,;t t
6522 s,@libexecdir@,$libexecdir,;t t
6523 s,@datadir@,$datadir,;t t
6524 s,@sysconfdir@,$sysconfdir,;t t
6525 s,@sharedstatedir@,$sharedstatedir,;t t
6526 s,@localstatedir@,$localstatedir,;t t
6527 s,@libdir@,$libdir,;t t
6528 s,@includedir@,$includedir,;t t
6529 s,@oldincludedir@,$oldincludedir,;t t
6530 s,@infodir@,$infodir,;t t
6531 s,@mandir@,$mandir,;t t
6532 s,@build_alias@,$build_alias,;t t
6533 s,@host_alias@,$host_alias,;t t
6534 s,@target_alias@,$target_alias,;t t
6535 s,@DEFS@,$DEFS,;t t
6536 s,@ECHO_C@,$ECHO_C,;t t
6537 s,@ECHO_N@,$ECHO_N,;t t
6538 s,@ECHO_T@,$ECHO_T,;t t
6539 s,@LIBS@,$LIBS,;t t
6540 s,@CC@,$CC,;t t
6541 s,@CFLAGS@,$CFLAGS,;t t
6542 s,@LDFLAGS@,$LDFLAGS,;t t
6543 s,@CPPFLAGS@,$CPPFLAGS,;t t
6544 s,@ac_ct_CC@,$ac_ct_CC,;t t
6545 s,@EXEEXT@,$EXEEXT,;t t
6546 s,@OBJEXT@,$OBJEXT,;t t
6547 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6548 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6549 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6550 s,@SET_MAKE@,$SET_MAKE,;t t
6551 s,@CPP@,$CPP,;t t
6552 s,@X_CFLAGS@,$X_CFLAGS,;t t
6553 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
6554 s,@X_LIBS@,$X_LIBS,;t t
6555 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
6556 s,@EGREP@,$EGREP,;t t
6557 s,@LIBOBJS@,$LIBOBJS,;t t
6558 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6559 CEOF
6561 _ACEOF
6563 cat >>$CONFIG_STATUS <<\_ACEOF
6564 # Split the substitutions into bite-sized pieces for seds with
6565 # small command number limits, like on Digital OSF/1 and HP-UX.
6566 ac_max_sed_lines=48
6567 ac_sed_frag=1 # Number of current file.
6568 ac_beg=1 # First line for current file.
6569 ac_end=$ac_max_sed_lines # Line after last line for current file.
6570 ac_more_lines=:
6571 ac_sed_cmds=
6572 while $ac_more_lines; do
6573 if test $ac_beg -gt 1; then
6574 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6575 else
6576 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6578 if test ! -s $tmp/subs.frag; then
6579 ac_more_lines=false
6580 else
6581 # The purpose of the label and of the branching condition is to
6582 # speed up the sed processing (if there are no `@' at all, there
6583 # is no need to browse any of the substitutions).
6584 # These are the two extra sed commands mentioned above.
6585 (echo ':t
6586 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6587 if test -z "$ac_sed_cmds"; then
6588 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6589 else
6590 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6592 ac_sed_frag=`expr $ac_sed_frag + 1`
6593 ac_beg=$ac_end
6594 ac_end=`expr $ac_end + $ac_max_sed_lines`
6596 done
6597 if test -z "$ac_sed_cmds"; then
6598 ac_sed_cmds=cat
6600 fi # test -n "$CONFIG_FILES"
6602 _ACEOF
6603 cat >>$CONFIG_STATUS <<\_ACEOF
6604 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6605 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6606 case $ac_file in
6607 - | *:- | *:-:* ) # input from stdin
6608 cat >$tmp/stdin
6609 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6610 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6611 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6612 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6613 * ) ac_file_in=$ac_file.in ;;
6614 esac
6616 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6617 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6618 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6619 X"$ac_file" : 'X\(//\)[^/]' \| \
6620 X"$ac_file" : 'X\(//\)$' \| \
6621 X"$ac_file" : 'X\(/\)' \| \
6622 . : '\(.\)' 2>/dev/null ||
6623 echo X"$ac_file" |
6624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6625 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6626 /^X\(\/\/\)$/{ s//\1/; q; }
6627 /^X\(\/\).*/{ s//\1/; q; }
6628 s/.*/./; q'`
6629 { if $as_mkdir_p; then
6630 mkdir -p "$ac_dir"
6631 else
6632 as_dir="$ac_dir"
6633 as_dirs=
6634 while test ! -d "$as_dir"; do
6635 as_dirs="$as_dir $as_dirs"
6636 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6637 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6638 X"$as_dir" : 'X\(//\)[^/]' \| \
6639 X"$as_dir" : 'X\(//\)$' \| \
6640 X"$as_dir" : 'X\(/\)' \| \
6641 . : '\(.\)' 2>/dev/null ||
6642 echo X"$as_dir" |
6643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6644 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6645 /^X\(\/\/\)$/{ s//\1/; q; }
6646 /^X\(\/\).*/{ s//\1/; q; }
6647 s/.*/./; q'`
6648 done
6649 test ! -n "$as_dirs" || mkdir $as_dirs
6650 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6651 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6652 { (exit 1); exit 1; }; }; }
6654 ac_builddir=.
6656 if test "$ac_dir" != .; then
6657 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6658 # A "../" for each directory in $ac_dir_suffix.
6659 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6660 else
6661 ac_dir_suffix= ac_top_builddir=
6664 case $srcdir in
6665 .) # No --srcdir option. We are building in place.
6666 ac_srcdir=.
6667 if test -z "$ac_top_builddir"; then
6668 ac_top_srcdir=.
6669 else
6670 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6671 fi ;;
6672 [\\/]* | ?:[\\/]* ) # Absolute path.
6673 ac_srcdir=$srcdir$ac_dir_suffix;
6674 ac_top_srcdir=$srcdir ;;
6675 *) # Relative path.
6676 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6677 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6678 esac
6680 # Do not use `cd foo && pwd` to compute absolute paths, because
6681 # the directories may not exist.
6682 case `pwd` in
6683 .) ac_abs_builddir="$ac_dir";;
6685 case "$ac_dir" in
6686 .) ac_abs_builddir=`pwd`;;
6687 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6688 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6689 esac;;
6690 esac
6691 case $ac_abs_builddir in
6692 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6694 case ${ac_top_builddir}. in
6695 .) ac_abs_top_builddir=$ac_abs_builddir;;
6696 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6697 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6698 esac;;
6699 esac
6700 case $ac_abs_builddir in
6701 .) ac_abs_srcdir=$ac_srcdir;;
6703 case $ac_srcdir in
6704 .) ac_abs_srcdir=$ac_abs_builddir;;
6705 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6706 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6707 esac;;
6708 esac
6709 case $ac_abs_builddir in
6710 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6712 case $ac_top_srcdir in
6713 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6714 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6715 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6716 esac;;
6717 esac
6720 case $INSTALL in
6721 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6722 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6723 esac
6725 # Let's still pretend it is `configure' which instantiates (i.e., don't
6726 # use $as_me), people would be surprised to read:
6727 # /* config.h. Generated by config.status. */
6728 if test x"$ac_file" = x-; then
6729 configure_input=
6730 else
6731 configure_input="$ac_file. "
6733 configure_input=$configure_input"Generated from `echo $ac_file_in |
6734 sed 's,.*/,,'` by configure."
6736 # First look for the input files in the build tree, otherwise in the
6737 # src tree.
6738 ac_file_inputs=`IFS=:
6739 for f in $ac_file_in; do
6740 case $f in
6741 -) echo $tmp/stdin ;;
6742 [\\/$]*)
6743 # Absolute (can't be DOS-style, as IFS=:)
6744 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6745 echo "$as_me: error: cannot find input file: $f" >&2;}
6746 { (exit 1); exit 1; }; }
6747 echo "$f";;
6748 *) # Relative
6749 if test -f "$f"; then
6750 # Build tree
6751 echo "$f"
6752 elif test -f "$srcdir/$f"; then
6753 # Source tree
6754 echo "$srcdir/$f"
6755 else
6756 # /dev/null tree
6757 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6758 echo "$as_me: error: cannot find input file: $f" >&2;}
6759 { (exit 1); exit 1; }; }
6760 fi;;
6761 esac
6762 done` || { (exit 1); exit 1; }
6764 if test x"$ac_file" != x-; then
6765 { echo "$as_me:$LINENO: creating $ac_file" >&5
6766 echo "$as_me: creating $ac_file" >&6;}
6767 rm -f "$ac_file"
6769 _ACEOF
6770 cat >>$CONFIG_STATUS <<_ACEOF
6771 sed "$ac_vpsub
6772 $extrasub
6773 _ACEOF
6774 cat >>$CONFIG_STATUS <<\_ACEOF
6776 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6777 s,@configure_input@,$configure_input,;t t
6778 s,@srcdir@,$ac_srcdir,;t t
6779 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6780 s,@top_srcdir@,$ac_top_srcdir,;t t
6781 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6782 s,@builddir@,$ac_builddir,;t t
6783 s,@abs_builddir@,$ac_abs_builddir,;t t
6784 s,@top_builddir@,$ac_top_builddir,;t t
6785 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6786 s,@INSTALL@,$ac_INSTALL,;t t
6787 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6788 rm -f $tmp/stdin
6789 if test x"$ac_file" != x-; then
6790 mv $tmp/out $ac_file
6791 else
6792 cat $tmp/out
6793 rm -f $tmp/out
6796 done
6797 _ACEOF
6798 cat >>$CONFIG_STATUS <<\_ACEOF
6801 # CONFIG_HEADER section.
6804 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6805 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6807 # ac_d sets the value in "#define NAME VALUE" lines.
6808 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6809 ac_dB='[ ].*$,\1#\2'
6810 ac_dC=' '
6811 ac_dD=',;t'
6812 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6813 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6814 ac_uB='$,\1#\2define\3'
6815 ac_uC=' '
6816 ac_uD=',;t'
6818 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6819 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6820 case $ac_file in
6821 - | *:- | *:-:* ) # input from stdin
6822 cat >$tmp/stdin
6823 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6824 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6825 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6826 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6827 * ) ac_file_in=$ac_file.in ;;
6828 esac
6830 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6831 echo "$as_me: creating $ac_file" >&6;}
6833 # First look for the input files in the build tree, otherwise in the
6834 # src tree.
6835 ac_file_inputs=`IFS=:
6836 for f in $ac_file_in; do
6837 case $f in
6838 -) echo $tmp/stdin ;;
6839 [\\/$]*)
6840 # Absolute (can't be DOS-style, as IFS=:)
6841 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6842 echo "$as_me: error: cannot find input file: $f" >&2;}
6843 { (exit 1); exit 1; }; }
6844 # Do quote $f, to prevent DOS paths from being IFS'd.
6845 echo "$f";;
6846 *) # Relative
6847 if test -f "$f"; then
6848 # Build tree
6849 echo "$f"
6850 elif test -f "$srcdir/$f"; then
6851 # Source tree
6852 echo "$srcdir/$f"
6853 else
6854 # /dev/null tree
6855 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6856 echo "$as_me: error: cannot find input file: $f" >&2;}
6857 { (exit 1); exit 1; }; }
6858 fi;;
6859 esac
6860 done` || { (exit 1); exit 1; }
6861 # Remove the trailing spaces.
6862 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6864 _ACEOF
6866 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6867 # `conftest.undefs', that substitutes the proper values into
6868 # config.h.in to produce config.h. The first handles `#define'
6869 # templates, and the second `#undef' templates.
6870 # And first: Protect against being on the right side of a sed subst in
6871 # config.status. Protect against being in an unquoted here document
6872 # in config.status.
6873 rm -f conftest.defines conftest.undefs
6874 # Using a here document instead of a string reduces the quoting nightmare.
6875 # Putting comments in sed scripts is not portable.
6877 # `end' is used to avoid that the second main sed command (meant for
6878 # 0-ary CPP macros) applies to n-ary macro definitions.
6879 # See the Autoconf documentation for `clear'.
6880 cat >confdef2sed.sed <<\_ACEOF
6881 s/[\\&,]/\\&/g
6882 s,[\\$`],\\&,g
6883 t clear
6884 : clear
6885 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6886 t end
6887 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6888 : end
6889 _ACEOF
6890 # If some macros were called several times there might be several times
6891 # the same #defines, which is useless. Nevertheless, we may not want to
6892 # sort them, since we want the *last* AC-DEFINE to be honored.
6893 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6894 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6895 rm -f confdef2sed.sed
6897 # This sed command replaces #undef with comments. This is necessary, for
6898 # example, in the case of _POSIX_SOURCE, which is predefined and required
6899 # on some systems where configure will not decide to define it.
6900 cat >>conftest.undefs <<\_ACEOF
6901 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6902 _ACEOF
6904 # Break up conftest.defines because some shells have a limit on the size
6905 # of here documents, and old seds have small limits too (100 cmds).
6906 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6907 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6908 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6909 echo ' :' >>$CONFIG_STATUS
6910 rm -f conftest.tail
6911 while grep . conftest.defines >/dev/null
6913 # Write a limited-size here document to $tmp/defines.sed.
6914 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6915 # Speed up: don't consider the non `#define' lines.
6916 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6917 # Work around the forget-to-reset-the-flag bug.
6918 echo 't clr' >>$CONFIG_STATUS
6919 echo ': clr' >>$CONFIG_STATUS
6920 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6921 echo 'CEOF
6922 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6923 rm -f $tmp/in
6924 mv $tmp/out $tmp/in
6925 ' >>$CONFIG_STATUS
6926 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6927 rm -f conftest.defines
6928 mv conftest.tail conftest.defines
6929 done
6930 rm -f conftest.defines
6931 echo ' fi # grep' >>$CONFIG_STATUS
6932 echo >>$CONFIG_STATUS
6934 # Break up conftest.undefs because some shells have a limit on the size
6935 # of here documents, and old seds have small limits too (100 cmds).
6936 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6937 rm -f conftest.tail
6938 while grep . conftest.undefs >/dev/null
6940 # Write a limited-size here document to $tmp/undefs.sed.
6941 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6942 # Speed up: don't consider the non `#undef'
6943 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6944 # Work around the forget-to-reset-the-flag bug.
6945 echo 't clr' >>$CONFIG_STATUS
6946 echo ': clr' >>$CONFIG_STATUS
6947 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6948 echo 'CEOF
6949 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6950 rm -f $tmp/in
6951 mv $tmp/out $tmp/in
6952 ' >>$CONFIG_STATUS
6953 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6954 rm -f conftest.undefs
6955 mv conftest.tail conftest.undefs
6956 done
6957 rm -f conftest.undefs
6959 cat >>$CONFIG_STATUS <<\_ACEOF
6960 # Let's still pretend it is `configure' which instantiates (i.e., don't
6961 # use $as_me), people would be surprised to read:
6962 # /* config.h. Generated by config.status. */
6963 if test x"$ac_file" = x-; then
6964 echo "/* Generated by configure. */" >$tmp/config.h
6965 else
6966 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6968 cat $tmp/in >>$tmp/config.h
6969 rm -f $tmp/in
6970 if test x"$ac_file" != x-; then
6971 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6972 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6973 echo "$as_me: $ac_file is unchanged" >&6;}
6974 else
6975 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6976 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6977 X"$ac_file" : 'X\(//\)[^/]' \| \
6978 X"$ac_file" : 'X\(//\)$' \| \
6979 X"$ac_file" : 'X\(/\)' \| \
6980 . : '\(.\)' 2>/dev/null ||
6981 echo X"$ac_file" |
6982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6983 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6984 /^X\(\/\/\)$/{ s//\1/; q; }
6985 /^X\(\/\).*/{ s//\1/; q; }
6986 s/.*/./; q'`
6987 { if $as_mkdir_p; then
6988 mkdir -p "$ac_dir"
6989 else
6990 as_dir="$ac_dir"
6991 as_dirs=
6992 while test ! -d "$as_dir"; do
6993 as_dirs="$as_dir $as_dirs"
6994 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6995 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6996 X"$as_dir" : 'X\(//\)[^/]' \| \
6997 X"$as_dir" : 'X\(//\)$' \| \
6998 X"$as_dir" : 'X\(/\)' \| \
6999 . : '\(.\)' 2>/dev/null ||
7000 echo X"$as_dir" |
7001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7002 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7003 /^X\(\/\/\)$/{ s//\1/; q; }
7004 /^X\(\/\).*/{ s//\1/; q; }
7005 s/.*/./; q'`
7006 done
7007 test ! -n "$as_dirs" || mkdir $as_dirs
7008 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7009 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7010 { (exit 1); exit 1; }; }; }
7012 rm -f $ac_file
7013 mv $tmp/config.h $ac_file
7015 else
7016 cat $tmp/config.h
7017 rm -f $tmp/config.h
7019 done
7020 _ACEOF
7022 cat >>$CONFIG_STATUS <<\_ACEOF
7024 { (exit 0); exit 0; }
7025 _ACEOF
7026 chmod +x $CONFIG_STATUS
7027 ac_clean_files=$ac_clean_files_save
7030 # configure is writing to config.log, and then calls config.status.
7031 # config.status does its own redirection, appending to config.log.
7032 # Unfortunately, on DOS this fails, as config.log is still kept open
7033 # by configure, so config.status won't be able to write to it; its
7034 # output is simply discarded. So we exec the FD to /dev/null,
7035 # effectively closing config.log, so it can be properly (re)opened and
7036 # appended to by config.status. When coming back to configure, we
7037 # need to make the FD available again.
7038 if test "$no_create" != yes; then
7039 ac_cs_success=:
7040 ac_config_status_args=
7041 test "$silent" = yes &&
7042 ac_config_status_args="$ac_config_status_args --quiet"
7043 exec 5>/dev/null
7044 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7045 exec 5>>config.log
7046 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7047 # would make configure fail if this is the last instruction.
7048 $ac_cs_success || { (exit 1); exit 1; }
7051 # ----------------------------------------------------------------------------