Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # From configure.in Id: configure.in,v 1.16 2001/03/31 21:18:12 elf Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright (C) 2003 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22 fi
23 DUALCASE=1; export DUALCASE # for MKS sh
24
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27 as_unset=unset
28 else
29 as_unset=false
30 fi
31
32
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
35 PS1='$ '
36 PS2='> '
37 PS4='+ '
38
39 # NLS nuisances.
40 for as_var in \
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43 LC_TELEPHONE LC_TIME
44 do
45 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C; export $as_var
47 else
48 $as_unset $as_var
49 fi
50 done
51
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
54 as_expr=expr
55 else
56 as_expr=false
57 fi
58
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60 as_basename=basename
61 else
62 as_basename=false
63 fi
64
65
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
72 echo X/"$0" |
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
76 s/.*/./; q'`
77
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
91 chmod +x conf$$.sh
92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93 PATH_SEPARATOR=';'
94 else
95 PATH_SEPARATOR=:
96 fi
97 rm -f conf$$.sh
98 fi
99
100
101 as_lineno_1=$LINENO
102 as_lineno_2=$LINENO
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
107 # relative or not.
108 case $0 in
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113 IFS=$as_save_IFS
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118 ;;
119 esac
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
123 as_myself=$0
124 fi
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
128 fi
129 case $CONFIG_SHELL in
130 '')
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134 IFS=$as_save_IFS
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
137 case $as_dir in
138 /*)
139 if ("$as_dir/$as_base" -c '
140 as_lineno_1=$LINENO
141 as_lineno_2=$LINENO
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147 CONFIG_SHELL=$as_dir/$as_base
148 export CONFIG_SHELL
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150 fi;;
151 esac
152 done
153 done
154 ;;
155 esac
156
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
166 sed '
167 N
168 s,$,-,
169 : loop
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171 t loop
172 s,-$,,
173 s,^['$as_cr_digits']*\n,,
174 ' >$as_me.lineno &&
175 chmod +x $as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
178
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
182 . ./$as_me.lineno
183 # Exit status is that of the last command.
184 exit
185 }
186
187
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c*,-n*) ECHO_N= ECHO_C='
190 ' ECHO_T=' ' ;;
191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 esac
194
195 if expr a : '\(a\)' >/dev/null 2>&1; then
196 as_expr=expr
197 else
198 as_expr=false
199 fi
200
201 rm -f conf$$ conf$$.exe conf$$.file
202 echo >conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe; then
207 # Don't use ln at all; we don't have any links
208 as_ln_s='cp -p'
209 else
210 as_ln_s='ln -s'
211 fi
212 elif ln conf$$.file conf$$ 2>/dev/null; then
213 as_ln_s=ln
214 else
215 as_ln_s='cp -p'
216 fi
217 rm -f conf$$ conf$$.exe conf$$.file
218
219 if mkdir -p . 2>/dev/null; then
220 as_mkdir_p=:
221 else
222 test -d ./-p && rmdir ./-p
223 as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS=" $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245 # Name of the host.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249
250 exec 6>&1
251
252 #
253 # Initializations.
254 #
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
257 cross_compiling=no
258 subdirs=
259 MFLAGS=
260 MAKEFLAGS=
261 SHELL=${CONFIG_SHELL-/bin/sh}
262
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete. It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
267
268 # Identity of this package.
269 PACKAGE_NAME=
270 PACKAGE_TARNAME=
271 PACKAGE_VERSION=
272 PACKAGE_STRING=
273 PACKAGE_BUGREPORT=
274
275 ac_unique_file="buici.xbm"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT LN_S SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CXXCPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS EGREP XO_PATH CFLAGS_W LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
368 case $ac_option in
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
374
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
379
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
395
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
404
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
437
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
442
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
506
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
513
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
520
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
568
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
586
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
599
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
619
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
626
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
630 ;;
631
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
641
642 *)
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 ;;
649
650 esac
651 done
652
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
673 do
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
697 fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726 else
727 ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
736 fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CXX_set=${CXX+set}
755 ac_env_CXX_value=$CXX
756 ac_cv_env_CXX_set=${CXX+set}
757 ac_cv_env_CXX_value=$CXX
758 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
759 ac_env_CXXFLAGS_value=$CXXFLAGS
760 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
761 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CXXCPP_set=${CXXCPP+set}
771 ac_env_CXXCPP_value=$CXXCPP
772 ac_cv_env_CXXCPP_set=${CXXCPP+set}
773 ac_cv_env_CXXCPP_value=$CXXCPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
832
833 cat <<\_ACEOF
834
835 X features:
836 --x-includes=DIR X include files are in DIR
837 --x-libraries=DIR X library files are in DIR
838 _ACEOF
839 fi
840
841 if test -n "$ac_init_help"; then
842
843 cat <<\_ACEOF
844
845 Optional Packages:
846 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
847 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
848 --with-x use the X Window System
849
850 Some influential environment variables:
851 CXX C++ compiler command
852 CXXFLAGS C++ compiler flags
853 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
854 nonstandard directory <lib dir>
855 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
856 headers in a nonstandard directory <include dir>
857 CXXCPP C++ preprocessor
858
859 Use these variables to override the choices made by `configure' or to help
860 it to find libraries and programs with nonstandard names/locations.
861
862 _ACEOF
863 fi
864
865 if test "$ac_init_help" = "recursive"; then
866 # If there are subdirs, report their specific --help.
867 ac_popdir=`pwd`
868 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
869 test -d $ac_dir || continue
870 ac_builddir=.
871
872 if test "$ac_dir" != .; then
873 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
874 # A "../" for each directory in $ac_dir_suffix.
875 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
876 else
877 ac_dir_suffix= ac_top_builddir=
878 fi
879
880 case $srcdir in
881 .) # No --srcdir option. We are building in place.
882 ac_srcdir=.
883 if test -z "$ac_top_builddir"; then
884 ac_top_srcdir=.
885 else
886 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
887 fi ;;
888 [\\/]* | ?:[\\/]* ) # Absolute path.
889 ac_srcdir=$srcdir$ac_dir_suffix;
890 ac_top_srcdir=$srcdir ;;
891 *) # Relative path.
892 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
893 ac_top_srcdir=$ac_top_builddir$srcdir ;;
894 esac
895
896 # Do not use `cd foo && pwd` to compute absolute paths, because
897 # the directories may not exist.
898 case `pwd` in
899 .) ac_abs_builddir="$ac_dir";;
900 *)
901 case "$ac_dir" in
902 .) ac_abs_builddir=`pwd`;;
903 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
904 *) ac_abs_builddir=`pwd`/"$ac_dir";;
905 esac;;
906 esac
907 case $ac_abs_builddir in
908 .) ac_abs_top_builddir=${ac_top_builddir}.;;
909 *)
910 case ${ac_top_builddir}. in
911 .) ac_abs_top_builddir=$ac_abs_builddir;;
912 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
913 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
914 esac;;
915 esac
916 case $ac_abs_builddir in
917 .) ac_abs_srcdir=$ac_srcdir;;
918 *)
919 case $ac_srcdir in
920 .) ac_abs_srcdir=$ac_abs_builddir;;
921 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
922 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
923 esac;;
924 esac
925 case $ac_abs_builddir in
926 .) ac_abs_top_srcdir=$ac_top_srcdir;;
927 *)
928 case $ac_top_srcdir in
929 .) ac_abs_top_srcdir=$ac_abs_builddir;;
930 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
931 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
932 esac;;
933 esac
934
935 cd $ac_dir
936 # Check for guested configure; otherwise get Cygnus style configure.
937 if test -f $ac_srcdir/configure.gnu; then
938 echo
939 $SHELL $ac_srcdir/configure.gnu --help=recursive
940 elif test -f $ac_srcdir/configure; then
941 echo
942 $SHELL $ac_srcdir/configure --help=recursive
943 elif test -f $ac_srcdir/configure.ac ||
944 test -f $ac_srcdir/configure.in; then
945 echo
946 $ac_configure --help
947 else
948 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
949 fi
950 cd "$ac_popdir"
951 done
952 fi
953
954 test -n "$ac_init_help" && exit 0
955 if $ac_init_version; then
956 cat <<\_ACEOF
957
958 Copyright (C) 2003 Free Software Foundation, Inc.
959 This configure script is free software; the Free Software Foundation
960 gives unlimited permission to copy, distribute and modify it.
961 _ACEOF
962 exit 0
963 fi
964 exec 5>config.log
965 cat >&5 <<_ACEOF
966 This file contains any messages produced by compilers while
967 running configure, to aid debugging if configure makes a mistake.
968
969 It was created by $as_me, which was
970 generated by GNU Autoconf 2.59. Invocation command line was
971
972 $ $0 $@
973
974 _ACEOF
975 {
976 cat <<_ASUNAME
977 ## --------- ##
978 ## Platform. ##
979 ## --------- ##
980
981 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
982 uname -m = `(uname -m) 2>/dev/null || echo unknown`
983 uname -r = `(uname -r) 2>/dev/null || echo unknown`
984 uname -s = `(uname -s) 2>/dev/null || echo unknown`
985 uname -v = `(uname -v) 2>/dev/null || echo unknown`
986
987 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
988 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
989
990 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
991 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
992 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
993 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
994 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
995 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
996 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
997
998 _ASUNAME
999
1000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1001 for as_dir in $PATH
1002 do
1003 IFS=$as_save_IFS
1004 test -z "$as_dir" && as_dir=.
1005 echo "PATH: $as_dir"
1006 done
1007
1008 } >&5
1009
1010 cat >&5 <<_ACEOF
1011
1012
1013 ## ----------- ##
1014 ## Core tests. ##
1015 ## ----------- ##
1016
1017 _ACEOF
1018
1019
1020 # Keep a trace of the command line.
1021 # Strip out --no-create and --no-recursion so they do not pile up.
1022 # Strip out --silent because we don't want to record it for future runs.
1023 # Also quote any args containing shell meta-characters.
1024 # Make two passes to allow for proper duplicate-argument suppression.
1025 ac_configure_args=
1026 ac_configure_args0=
1027 ac_configure_args1=
1028 ac_sep=
1029 ac_must_keep_next=false
1030 for ac_pass in 1 2
1031 do
1032 for ac_arg
1033 do
1034 case $ac_arg in
1035 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1037 | -silent | --silent | --silen | --sile | --sil)
1038 continue ;;
1039 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1040 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1041 esac
1042 case $ac_pass in
1043 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1044 2)
1045 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1046 if test $ac_must_keep_next = true; then
1047 ac_must_keep_next=false # Got value, back to normal.
1048 else
1049 case $ac_arg in
1050 *=* | --config-cache | -C | -disable-* | --disable-* \
1051 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1052 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1053 | -with-* | --with-* | -without-* | --without-* | --x)
1054 case "$ac_configure_args0 " in
1055 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1056 esac
1057 ;;
1058 -* ) ac_must_keep_next=true ;;
1059 esac
1060 fi
1061 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1062 # Get rid of the leading space.
1063 ac_sep=" "
1064 ;;
1065 esac
1066 done
1067 done
1068 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1069 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1070
1071 # When interrupted or exit'd, cleanup temporary files, and complete
1072 # config.log. We remove comments because anyway the quotes in there
1073 # would cause problems or look ugly.
1074 # WARNING: Be sure not to use single quotes in there, as some shells,
1075 # such as our DU 5.0 friend, will then `close' the trap.
1076 trap 'exit_status=$?
1077 # Save into config.log some information that might help in debugging.
1078 {
1079 echo
1080
1081 cat <<\_ASBOX
1082 ## ---------------- ##
1083 ## Cache variables. ##
1084 ## ---------------- ##
1085 _ASBOX
1086 echo
1087 # The following way of writing the cache mishandles newlines in values,
1088 {
1089 (set) 2>&1 |
1090 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1091 *ac_space=\ *)
1092 sed -n \
1093 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1094 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1095 ;;
1096 *)
1097 sed -n \
1098 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1099 ;;
1100 esac;
1101 }
1102 echo
1103
1104 cat <<\_ASBOX
1105 ## ----------------- ##
1106 ## Output variables. ##
1107 ## ----------------- ##
1108 _ASBOX
1109 echo
1110 for ac_var in $ac_subst_vars
1111 do
1112 eval ac_val=$`echo $ac_var`
1113 echo "$ac_var='"'"'$ac_val'"'"'"
1114 done | sort
1115 echo
1116
1117 if test -n "$ac_subst_files"; then
1118 cat <<\_ASBOX
1119 ## ------------- ##
1120 ## Output files. ##
1121 ## ------------- ##
1122 _ASBOX
1123 echo
1124 for ac_var in $ac_subst_files
1125 do
1126 eval ac_val=$`echo $ac_var`
1127 echo "$ac_var='"'"'$ac_val'"'"'"
1128 done | sort
1129 echo
1130 fi
1131
1132 if test -s confdefs.h; then
1133 cat <<\_ASBOX
1134 ## ----------- ##
1135 ## confdefs.h. ##
1136 ## ----------- ##
1137 _ASBOX
1138 echo
1139 sed "/^$/d" confdefs.h | sort
1140 echo
1141 fi
1142 test "$ac_signal" != 0 &&
1143 echo "$as_me: caught signal $ac_signal"
1144 echo "$as_me: exit $exit_status"
1145 } >&5
1146 rm -f core *.core &&
1147 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1148 exit $exit_status
1149 ' 0
1150 for ac_signal in 1 2 13 15; do
1151 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1152 done
1153 ac_signal=0
1154
1155 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1156 rm -rf conftest* confdefs.h
1157 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1158 echo >confdefs.h
1159
1160 # Predefined preprocessor variables.
1161
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_NAME "$PACKAGE_NAME"
1164 _ACEOF
1165
1166
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1169 _ACEOF
1170
1171
1172 cat >>confdefs.h <<_ACEOF
1173 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1174 _ACEOF
1175
1176
1177 cat >>confdefs.h <<_ACEOF
1178 #define PACKAGE_STRING "$PACKAGE_STRING"
1179 _ACEOF
1180
1181
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1184 _ACEOF
1185
1186
1187 # Let the site file select an alternate cache file if it wants to.
1188 # Prefer explicitly selected file to automatically selected ones.
1189 if test -z "$CONFIG_SITE"; then
1190 if test "x$prefix" != xNONE; then
1191 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1192 else
1193 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1194 fi
1195 fi
1196 for ac_site_file in $CONFIG_SITE; do
1197 if test -r "$ac_site_file"; then
1198 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1199 echo "$as_me: loading site script $ac_site_file" >&6;}
1200 sed 's/^/| /' "$ac_site_file" >&5
1201 . "$ac_site_file"
1202 fi
1203 done
1204
1205 if test -r "$cache_file"; then
1206 # Some versions of bash will fail to source /dev/null (special
1207 # files actually), so we avoid doing that.
1208 if test -f "$cache_file"; then
1209 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1210 echo "$as_me: loading cache $cache_file" >&6;}
1211 case $cache_file in
1212 [\\/]* | ?:[\\/]* ) . $cache_file;;
1213 *) . ./$cache_file;;
1214 esac
1215 fi
1216 else
1217 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1218 echo "$as_me: creating cache $cache_file" >&6;}
1219 >$cache_file
1220 fi
1221
1222 # Check that the precious variables saved in the cache have kept the same
1223 # value.
1224 ac_cache_corrupted=false
1225 for ac_var in `(set) 2>&1 |
1226 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1227 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1228 eval ac_new_set=\$ac_env_${ac_var}_set
1229 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1230 eval ac_new_val="\$ac_env_${ac_var}_value"
1231 case $ac_old_set,$ac_new_set in
1232 set,)
1233 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1234 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1235 ac_cache_corrupted=: ;;
1236 ,set)
1237 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1238 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1239 ac_cache_corrupted=: ;;
1240 ,);;
1241 *)
1242 if test "x$ac_old_val" != "x$ac_new_val"; then
1243 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1244 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1245 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1246 echo "$as_me: former value: $ac_old_val" >&2;}
1247 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1248 echo "$as_me: current value: $ac_new_val" >&2;}
1249 ac_cache_corrupted=:
1250 fi;;
1251 esac
1252 # Pass precious variables to config.status.
1253 if test "$ac_new_set" = set; then
1254 case $ac_new_val in
1255 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1256 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1257 *) ac_arg=$ac_var=$ac_new_val ;;
1258 esac
1259 case " $ac_configure_args " in
1260 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1261 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1262 esac
1263 fi
1264 done
1265 if $ac_cache_corrupted; then
1266 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1267 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1268 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1269 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1270 { (exit 1); exit 1; }; }
1271 fi
1272
1273 ac_ext=c
1274 ac_cpp='$CPP $CPPFLAGS'
1275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297 ac_config_headers="$ac_config_headers config.h"
1298
1299
1300 ac_ext=cc
1301 ac_cpp='$CXXCPP $CPPFLAGS'
1302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1305
1306 ac_ext=cc
1307 ac_cpp='$CXXCPP $CPPFLAGS'
1308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1311 if test -n "$ac_tool_prefix"; then
1312 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1313 do
1314 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1315 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1316 echo "$as_me:$LINENO: checking for $ac_word" >&5
1317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1318 if test "${ac_cv_prog_CXX+set}" = set; then
1319 echo $ECHO_N "(cached) $ECHO_C" >&6
1320 else
1321 if test -n "$CXX"; then
1322 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1323 else
1324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1325 for as_dir in $PATH
1326 do
1327 IFS=$as_save_IFS
1328 test -z "$as_dir" && as_dir=.
1329 for ac_exec_ext in '' $ac_executable_extensions; do
1330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1331 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1333 break 2
1334 fi
1335 done
1336 done
1337
1338 fi
1339 fi
1340 CXX=$ac_cv_prog_CXX
1341 if test -n "$CXX"; then
1342 echo "$as_me:$LINENO: result: $CXX" >&5
1343 echo "${ECHO_T}$CXX" >&6
1344 else
1345 echo "$as_me:$LINENO: result: no" >&5
1346 echo "${ECHO_T}no" >&6
1347 fi
1348
1349 test -n "$CXX" && break
1350 done
1351 fi
1352 if test -z "$CXX"; then
1353 ac_ct_CXX=$CXX
1354 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1355 do
1356 # Extract the first word of "$ac_prog", so it can be a program name with args.
1357 set dummy $ac_prog; ac_word=$2
1358 echo "$as_me:$LINENO: checking for $ac_word" >&5
1359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1360 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1361 echo $ECHO_N "(cached) $ECHO_C" >&6
1362 else
1363 if test -n "$ac_ct_CXX"; then
1364 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1365 else
1366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1367 for as_dir in $PATH
1368 do
1369 IFS=$as_save_IFS
1370 test -z "$as_dir" && as_dir=.
1371 for ac_exec_ext in '' $ac_executable_extensions; do
1372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1373 ac_cv_prog_ac_ct_CXX="$ac_prog"
1374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1375 break 2
1376 fi
1377 done
1378 done
1379
1380 fi
1381 fi
1382 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1383 if test -n "$ac_ct_CXX"; then
1384 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1385 echo "${ECHO_T}$ac_ct_CXX" >&6
1386 else
1387 echo "$as_me:$LINENO: result: no" >&5
1388 echo "${ECHO_T}no" >&6
1389 fi
1390
1391 test -n "$ac_ct_CXX" && break
1392 done
1393 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1394
1395 CXX=$ac_ct_CXX
1396 fi
1397
1398
1399 # Provide some information about the compiler.
1400 echo "$as_me:$LINENO:" \
1401 "checking for C++ compiler version" >&5
1402 ac_compiler=`set X $ac_compile; echo $2`
1403 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1404 (eval $ac_compiler --version </dev/null >&5) 2>&5
1405 ac_status=$?
1406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1407 (exit $ac_status); }
1408 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1409 (eval $ac_compiler -v </dev/null >&5) 2>&5
1410 ac_status=$?
1411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1412 (exit $ac_status); }
1413 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1414 (eval $ac_compiler -V </dev/null >&5) 2>&5
1415 ac_status=$?
1416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1417 (exit $ac_status); }
1418
1419 cat >conftest.$ac_ext <<_ACEOF
1420 /* confdefs.h. */
1421 _ACEOF
1422 cat confdefs.h >>conftest.$ac_ext
1423 cat >>conftest.$ac_ext <<_ACEOF
1424 /* end confdefs.h. */
1425
1426 int
1427 main ()
1428 {
1429
1430 ;
1431 return 0;
1432 }
1433 _ACEOF
1434 ac_clean_files_save=$ac_clean_files
1435 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1436 # Try to create an executable without -o first, disregard a.out.
1437 # It will help us diagnose broken compilers, and finding out an intuition
1438 # of exeext.
1439 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1440 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1441 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1442 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1443 (eval $ac_link_default) 2>&5
1444 ac_status=$?
1445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1446 (exit $ac_status); }; then
1447 # Find the output, starting from the most likely. This scheme is
1448 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1449 # resort.
1450
1451 # Be careful to initialize this variable, since it used to be cached.
1452 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1453 ac_cv_exeext=
1454 # b.out is created by i960 compilers.
1455 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1456 do
1457 test -f "$ac_file" || continue
1458 case $ac_file in
1459 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1460 ;;
1461 conftest.$ac_ext )
1462 # This is the source file.
1463 ;;
1464 [ab].out )
1465 # We found the default executable, but exeext='' is most
1466 # certainly right.
1467 break;;
1468 *.* )
1469 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1470 # FIXME: I believe we export ac_cv_exeext for Libtool,
1471 # but it would be cool to find out if it's true. Does anybody
1472 # maintain Libtool? --akim.
1473 export ac_cv_exeext
1474 break;;
1475 * )
1476 break;;
1477 esac
1478 done
1479 else
1480 echo "$as_me: failed program was:" >&5
1481 sed 's/^/| /' conftest.$ac_ext >&5
1482
1483 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1484 See \`config.log' for more details." >&5
1485 echo "$as_me: error: C++ compiler cannot create executables
1486 See \`config.log' for more details." >&2;}
1487 { (exit 77); exit 77; }; }
1488 fi
1489
1490 ac_exeext=$ac_cv_exeext
1491 echo "$as_me:$LINENO: result: $ac_file" >&5
1492 echo "${ECHO_T}$ac_file" >&6
1493
1494 # Check the compiler produces executables we can run. If not, either
1495 # the compiler is broken, or we cross compile.
1496 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1497 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1498 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1499 # If not cross compiling, check that we can run a simple program.
1500 if test "$cross_compiling" != yes; then
1501 if { ac_try='./$ac_file'
1502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1503 (eval $ac_try) 2>&5
1504 ac_status=$?
1505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1506 (exit $ac_status); }; }; then
1507 cross_compiling=no
1508 else
1509 if test "$cross_compiling" = maybe; then
1510 cross_compiling=yes
1511 else
1512 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1513 If you meant to cross compile, use \`--host'.
1514 See \`config.log' for more details." >&5
1515 echo "$as_me: error: cannot run C++ compiled programs.
1516 If you meant to cross compile, use \`--host'.
1517 See \`config.log' for more details." >&2;}
1518 { (exit 1); exit 1; }; }
1519 fi
1520 fi
1521 fi
1522 echo "$as_me:$LINENO: result: yes" >&5
1523 echo "${ECHO_T}yes" >&6
1524
1525 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1526 ac_clean_files=$ac_clean_files_save
1527 # Check the compiler produces executables we can run. If not, either
1528 # the compiler is broken, or we cross compile.
1529 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1530 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1531 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1532 echo "${ECHO_T}$cross_compiling" >&6
1533
1534 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1535 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1537 (eval $ac_link) 2>&5
1538 ac_status=$?
1539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1540 (exit $ac_status); }; then
1541 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1542 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1543 # work properly (i.e., refer to `conftest.exe'), while it won't with
1544 # `rm'.
1545 for ac_file in conftest.exe conftest conftest.*; do
1546 test -f "$ac_file" || continue
1547 case $ac_file in
1548 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1549 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1550 export ac_cv_exeext
1551 break;;
1552 * ) break;;
1553 esac
1554 done
1555 else
1556 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1557 See \`config.log' for more details." >&5
1558 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1559 See \`config.log' for more details." >&2;}
1560 { (exit 1); exit 1; }; }
1561 fi
1562
1563 rm -f conftest$ac_cv_exeext
1564 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1565 echo "${ECHO_T}$ac_cv_exeext" >&6
1566
1567 rm -f conftest.$ac_ext
1568 EXEEXT=$ac_cv_exeext
1569 ac_exeext=$EXEEXT
1570 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1571 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1572 if test "${ac_cv_objext+set}" = set; then
1573 echo $ECHO_N "(cached) $ECHO_C" >&6
1574 else
1575 cat >conftest.$ac_ext <<_ACEOF
1576 /* confdefs.h. */
1577 _ACEOF
1578 cat confdefs.h >>conftest.$ac_ext
1579 cat >>conftest.$ac_ext <<_ACEOF
1580 /* end confdefs.h. */
1581
1582 int
1583 main ()
1584 {
1585
1586 ;
1587 return 0;
1588 }
1589 _ACEOF
1590 rm -f conftest.o conftest.obj
1591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1592 (eval $ac_compile) 2>&5
1593 ac_status=$?
1594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1595 (exit $ac_status); }; then
1596 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1597 case $ac_file in
1598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1599 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1600 break;;
1601 esac
1602 done
1603 else
1604 echo "$as_me: failed program was:" >&5
1605 sed 's/^/| /' conftest.$ac_ext >&5
1606
1607 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1608 See \`config.log' for more details." >&5
1609 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1610 See \`config.log' for more details." >&2;}
1611 { (exit 1); exit 1; }; }
1612 fi
1613
1614 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1615 fi
1616 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1617 echo "${ECHO_T}$ac_cv_objext" >&6
1618 OBJEXT=$ac_cv_objext
1619 ac_objext=$OBJEXT
1620 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1621 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1622 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1623 echo $ECHO_N "(cached) $ECHO_C" >&6
1624 else
1625 cat >conftest.$ac_ext <<_ACEOF
1626 /* confdefs.h. */
1627 _ACEOF
1628 cat confdefs.h >>conftest.$ac_ext
1629 cat >>conftest.$ac_ext <<_ACEOF
1630 /* end confdefs.h. */
1631
1632 int
1633 main ()
1634 {
1635 #ifndef __GNUC__
1636 choke me
1637 #endif
1638
1639 ;
1640 return 0;
1641 }
1642 _ACEOF
1643 rm -f conftest.$ac_objext
1644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1645 (eval $ac_compile) 2>conftest.er1
1646 ac_status=$?
1647 grep -v '^ *+' conftest.er1 >conftest.err
1648 rm -f conftest.er1
1649 cat conftest.err >&5
1650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1651 (exit $ac_status); } &&
1652 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
1653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1654 (eval $ac_try) 2>&5
1655 ac_status=$?
1656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1657 (exit $ac_status); }; } &&
1658 { ac_try='test -s conftest.$ac_objext'
1659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1660 (eval $ac_try) 2>&5
1661 ac_status=$?
1662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1663 (exit $ac_status); }; }; then
1664 ac_compiler_gnu=yes
1665 else
1666 echo "$as_me: failed program was:" >&5
1667 sed 's/^/| /' conftest.$ac_ext >&5
1668
1669 ac_compiler_gnu=no
1670 fi
1671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1672 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1673
1674 fi
1675 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1676 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1677 GXX=`test $ac_compiler_gnu = yes && echo yes`
1678 ac_test_CXXFLAGS=${CXXFLAGS+set}
1679 ac_save_CXXFLAGS=$CXXFLAGS
1680 CXXFLAGS="-g"
1681 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1682 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1683 if test "${ac_cv_prog_cxx_g+set}" = set; then
1684 echo $ECHO_N "(cached) $ECHO_C" >&6
1685 else
1686 cat >conftest.$ac_ext <<_ACEOF
1687 /* confdefs.h. */
1688 _ACEOF
1689 cat confdefs.h >>conftest.$ac_ext
1690 cat >>conftest.$ac_ext <<_ACEOF
1691 /* end confdefs.h. */
1692
1693 int
1694 main ()
1695 {
1696
1697 ;
1698 return 0;
1699 }
1700 _ACEOF
1701 rm -f conftest.$ac_objext
1702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1703 (eval $ac_compile) 2>conftest.er1
1704 ac_status=$?
1705 grep -v '^ *+' conftest.er1 >conftest.err
1706 rm -f conftest.er1
1707 cat conftest.err >&5
1708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1709 (exit $ac_status); } &&
1710 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
1711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1712 (eval $ac_try) 2>&5
1713 ac_status=$?
1714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1715 (exit $ac_status); }; } &&
1716 { ac_try='test -s conftest.$ac_objext'
1717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1718 (eval $ac_try) 2>&5
1719 ac_status=$?
1720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1721 (exit $ac_status); }; }; then
1722 ac_cv_prog_cxx_g=yes
1723 else
1724 echo "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
1726
1727 ac_cv_prog_cxx_g=no
1728 fi
1729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1730 fi
1731 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1732 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1733 if test "$ac_test_CXXFLAGS" = set; then
1734 CXXFLAGS=$ac_save_CXXFLAGS
1735 elif test $ac_cv_prog_cxx_g = yes; then
1736 if test "$GXX" = yes; then
1737 CXXFLAGS="-g -O2"
1738 else
1739 CXXFLAGS="-g"
1740 fi
1741 else
1742 if test "$GXX" = yes; then
1743 CXXFLAGS="-O2"
1744 else
1745 CXXFLAGS=
1746 fi
1747 fi
1748 for ac_declaration in \
1749 '' \
1750 'extern "C" void std::exit (int) throw (); using std::exit;' \
1751 'extern "C" void std::exit (int); using std::exit;' \
1752 'extern "C" void exit (int) throw ();' \
1753 'extern "C" void exit (int);' \
1754 'void exit (int);'
1755 do
1756 cat >conftest.$ac_ext <<_ACEOF
1757 /* confdefs.h. */
1758 _ACEOF
1759 cat confdefs.h >>conftest.$ac_ext
1760 cat >>conftest.$ac_ext <<_ACEOF
1761 /* end confdefs.h. */
1762 $ac_declaration
1763 #include <stdlib.h>
1764 int
1765 main ()
1766 {
1767 exit (42);
1768 ;
1769 return 0;
1770 }
1771 _ACEOF
1772 rm -f conftest.$ac_objext
1773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1774 (eval $ac_compile) 2>conftest.er1
1775 ac_status=$?
1776 grep -v '^ *+' conftest.er1 >conftest.err
1777 rm -f conftest.er1
1778 cat conftest.err >&5
1779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1780 (exit $ac_status); } &&
1781 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
1782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1783 (eval $ac_try) 2>&5
1784 ac_status=$?
1785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1786 (exit $ac_status); }; } &&
1787 { ac_try='test -s conftest.$ac_objext'
1788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1789 (eval $ac_try) 2>&5
1790 ac_status=$?
1791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792 (exit $ac_status); }; }; then
1793 :
1794 else
1795 echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.$ac_ext >&5
1797
1798 continue
1799 fi
1800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1801 cat >conftest.$ac_ext <<_ACEOF
1802 /* confdefs.h. */
1803 _ACEOF
1804 cat confdefs.h >>conftest.$ac_ext
1805 cat >>conftest.$ac_ext <<_ACEOF
1806 /* end confdefs.h. */
1807 $ac_declaration
1808 int
1809 main ()
1810 {
1811 exit (42);
1812 ;
1813 return 0;
1814 }
1815 _ACEOF
1816 rm -f conftest.$ac_objext
1817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1818 (eval $ac_compile) 2>conftest.er1
1819 ac_status=$?
1820 grep -v '^ *+' conftest.er1 >conftest.err
1821 rm -f conftest.er1
1822 cat conftest.err >&5
1823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1824 (exit $ac_status); } &&
1825 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
1826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1827 (eval $ac_try) 2>&5
1828 ac_status=$?
1829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1830 (exit $ac_status); }; } &&
1831 { ac_try='test -s conftest.$ac_objext'
1832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1833 (eval $ac_try) 2>&5
1834 ac_status=$?
1835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1836 (exit $ac_status); }; }; then
1837 break
1838 else
1839 echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1841
1842 fi
1843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1844 done
1845 rm -f conftest*
1846 if test -n "$ac_declaration"; then
1847 echo '#ifdef __cplusplus' >>confdefs.h
1848 echo $ac_declaration >>confdefs.h
1849 echo '#endif' >>confdefs.h
1850 fi
1851
1852 ac_ext=cc
1853 ac_cpp='$CXXCPP $CPPFLAGS'
1854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1857
1858 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1859 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1860 LN_S=$as_ln_s
1861 if test "$LN_S" = "ln -s"; then
1862 echo "$as_me:$LINENO: result: yes" >&5
1863 echo "${ECHO_T}yes" >&6
1864 else
1865 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1866 echo "${ECHO_T}no, using $LN_S" >&6
1867 fi
1868
1869 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1870 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1871 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1872 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1873 echo $ECHO_N "(cached) $ECHO_C" >&6
1874 else
1875 cat >conftest.make <<\_ACEOF
1876 all:
1877 @echo 'ac_maketemp="$(MAKE)"'
1878 _ACEOF
1879 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1880 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1881 if test -n "$ac_maketemp"; then
1882 eval ac_cv_prog_make_${ac_make}_set=yes
1883 else
1884 eval ac_cv_prog_make_${ac_make}_set=no
1885 fi
1886 rm -f conftest.make
1887 fi
1888 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1889 echo "$as_me:$LINENO: result: yes" >&5
1890 echo "${ECHO_T}yes" >&6
1891 SET_MAKE=
1892 else
1893 echo "$as_me:$LINENO: result: no" >&5
1894 echo "${ECHO_T}no" >&6
1895 SET_MAKE="MAKE=${MAKE-make}"
1896 fi
1897
1898 ac_aux_dir=
1899 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1900 if test -f $ac_dir/install-sh; then
1901 ac_aux_dir=$ac_dir
1902 ac_install_sh="$ac_aux_dir/install-sh -c"
1903 break
1904 elif test -f $ac_dir/install.sh; then
1905 ac_aux_dir=$ac_dir
1906 ac_install_sh="$ac_aux_dir/install.sh -c"
1907 break
1908 elif test -f $ac_dir/shtool; then
1909 ac_aux_dir=$ac_dir
1910 ac_install_sh="$ac_aux_dir/shtool install -c"
1911 break
1912 fi
1913 done
1914 if test -z "$ac_aux_dir"; then
1915 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1916 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1917 { (exit 1); exit 1; }; }
1918 fi
1919 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1920 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1921 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1922
1923 # Find a good install program. We prefer a C program (faster),
1924 # so one script is as good as another. But avoid the broken or
1925 # incompatible versions:
1926 # SysV /etc/install, /usr/sbin/install
1927 # SunOS /usr/etc/install
1928 # IRIX /sbin/install
1929 # AIX /bin/install
1930 # AmigaOS /C/install, which installs bootblocks on floppy discs
1931 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1932 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1933 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1934 # OS/2's system install, which has a completely different semantic
1935 # ./install, which can be erroneously created by make from ./install.sh.
1936 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1937 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1938 if test -z "$INSTALL"; then
1939 if test "${ac_cv_path_install+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
1941 else
1942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943 for as_dir in $PATH
1944 do
1945 IFS=$as_save_IFS
1946 test -z "$as_dir" && as_dir=.
1947 # Account for people who put trailing slashes in PATH elements.
1948 case $as_dir/ in
1949 ./ | .// | /cC/* | \
1950 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1951 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1952 /usr/ucb/* ) ;;
1953 *)
1954 # OSF1 and SCO ODT 3.0 have their own names for install.
1955 # Don't use installbsd from OSF since it installs stuff as root
1956 # by default.
1957 for ac_prog in ginstall scoinst install; do
1958 for ac_exec_ext in '' $ac_executable_extensions; do
1959 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1960 if test $ac_prog = install &&
1961 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1962 # AIX install. It has an incompatible calling convention.
1963 :
1964 elif test $ac_prog = install &&
1965 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1966 # program-specific install script used by HP pwplus--don't use.
1967 :
1968 else
1969 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1970 break 3
1971 fi
1972 fi
1973 done
1974 done
1975 ;;
1976 esac
1977 done
1978
1979
1980 fi
1981 if test "${ac_cv_path_install+set}" = set; then
1982 INSTALL=$ac_cv_path_install
1983 else
1984 # As a last resort, use the slow shell script. We don't cache a
1985 # path for INSTALL within a source directory, because that will
1986 # break other packages using the cache if that directory is
1987 # removed, or if the path is relative.
1988 INSTALL=$ac_install_sh
1989 fi
1990 fi
1991 echo "$as_me:$LINENO: result: $INSTALL" >&5
1992 echo "${ECHO_T}$INSTALL" >&6
1993
1994 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1995 # It thinks the first close brace ends the variable substitution.
1996 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1997
1998 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1999
2000 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2001
2002
2003 if test "${GXX}" = "yes" ; then
2004 CFLAGS_W=" -Wall -Wno-parentheses -Wno-unused"
2005 CFLAGS="${CFLAGS}"
2006 fi
2007
2008 echo "$as_me:$LINENO: checking \"for XO class library\"" >&5
2009 echo $ECHO_N "checking \"for XO class library\"... $ECHO_C" >&6
2010 XO_PATH=`echo xo-*`
2011 if test "${XO_PATH}" = "" -o ! -d ${XO_PATH} ; then eval XO_PATH=xo ; fi
2012 if test "${XO_PATH}" = "" -o ! -d ${XO_PATH} ; then eval XO_PATH=xo ; fi
2013 if test "${XO_PATH}" = "" -o ! -d ${XO_PATH} ; then eval XO_PATH=../xo ; fi
2014 if test ! -d ${XO_PATH} ; then { { echo "$as_me:$LINENO: error: Unable to find xo library" >&5
2015 echo "$as_me: error: Unable to find xo library" >&2;}
2016 { (exit 1); exit 1; }; } ; fi
2017 echo "$as_me:$LINENO: result: ${XO_PATH}" >&5
2018 echo "${ECHO_T}${XO_PATH}" >&6
2019
2020
2021
2022 echo "$as_me:$LINENO: checking for cos in -lm" >&5
2023 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
2024 if test "${ac_cv_lib_m_cos+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 else
2027 ac_check_lib_save_LIBS=$LIBS
2028 LIBS="-lm $LIBS"
2029 cat >conftest.$ac_ext <<_ACEOF
2030 /* confdefs.h. */
2031 _ACEOF
2032 cat confdefs.h >>conftest.$ac_ext
2033 cat >>conftest.$ac_ext <<_ACEOF
2034 /* end confdefs.h. */
2035
2036 /* Override any gcc2 internal prototype to avoid an error. */
2037 #ifdef __cplusplus
2038 extern "C"
2039 #endif
2040 /* We use char because int might match the return type of a gcc2
2041 builtin and then its argument prototype would still apply. */
2042 char cos ();
2043 int
2044 main ()
2045 {
2046 cos ();
2047 ;
2048 return 0;
2049 }
2050 _ACEOF
2051 rm -f conftest.$ac_objext conftest$ac_exeext
2052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2053 (eval $ac_link) 2>conftest.er1
2054 ac_status=$?
2055 grep -v '^ *+' conftest.er1 >conftest.err
2056 rm -f conftest.er1
2057 cat conftest.err >&5
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); } &&
2060 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062 (eval $ac_try) 2>&5
2063 ac_status=$?
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }; } &&
2066 { ac_try='test -s conftest$ac_exeext'
2067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2068 (eval $ac_try) 2>&5
2069 ac_status=$?
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }; }; then
2072 ac_cv_lib_m_cos=yes
2073 else
2074 echo "$as_me: failed program was:" >&5
2075 sed 's/^/| /' conftest.$ac_ext >&5
2076
2077 ac_cv_lib_m_cos=no
2078 fi
2079 rm -f conftest.err conftest.$ac_objext \
2080 conftest$ac_exeext conftest.$ac_ext
2081 LIBS=$ac_check_lib_save_LIBS
2082 fi
2083 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
2084 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
2085 if test $ac_cv_lib_m_cos = yes; then
2086 cat >>confdefs.h <<_ACEOF
2087 #define HAVE_LIBM 1
2088 _ACEOF
2089
2090 LIBS="-lm $LIBS"
2091
2092 fi
2093
2094
2095 ac_ext=cc
2096 ac_cpp='$CXXCPP $CPPFLAGS'
2097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2100 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2101 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2102 if test -z "$CXXCPP"; then
2103 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" >&6
2105 else
2106 # Double quotes because CXXCPP needs to be expanded
2107 for CXXCPP in "$CXX -E" "/lib/cpp"
2108 do
2109 ac_preproc_ok=false
2110 for ac_cxx_preproc_warn_flag in '' yes
2111 do
2112 # Use a header file that comes with gcc, so configuring glibc
2113 # with a fresh cross-compiler works.
2114 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2115 # <limits.h> exists even on freestanding compilers.
2116 # On the NeXT, cc -E runs the code through the compiler's parser,
2117 # not just through cpp. "Syntax error" is here to catch this case.
2118 cat >conftest.$ac_ext <<_ACEOF
2119 /* confdefs.h. */
2120 _ACEOF
2121 cat confdefs.h >>conftest.$ac_ext
2122 cat >>conftest.$ac_ext <<_ACEOF
2123 /* end confdefs.h. */
2124 #ifdef __STDC__
2125 # include <limits.h>
2126 #else
2127 # include <assert.h>
2128 #endif
2129 Syntax error
2130 _ACEOF
2131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2133 ac_status=$?
2134 grep -v '^ *+' conftest.er1 >conftest.err
2135 rm -f conftest.er1
2136 cat conftest.err >&5
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); } >/dev/null; then
2139 if test -s conftest.err; then
2140 ac_cpp_err=$ac_cxx_preproc_warn_flag
2141 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2142 else
2143 ac_cpp_err=
2144 fi
2145 else
2146 ac_cpp_err=yes
2147 fi
2148 if test -z "$ac_cpp_err"; then
2149 :
2150 else
2151 echo "$as_me: failed program was:" >&5
2152 sed 's/^/| /' conftest.$ac_ext >&5
2153
2154 # Broken: fails on valid input.
2155 continue
2156 fi
2157 rm -f conftest.err conftest.$ac_ext
2158
2159 # OK, works on sane cases. Now check whether non-existent headers
2160 # can be detected and how.
2161 cat >conftest.$ac_ext <<_ACEOF
2162 /* confdefs.h. */
2163 _ACEOF
2164 cat confdefs.h >>conftest.$ac_ext
2165 cat >>conftest.$ac_ext <<_ACEOF
2166 /* end confdefs.h. */
2167 #include <ac_nonexistent.h>
2168 _ACEOF
2169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2171 ac_status=$?
2172 grep -v '^ *+' conftest.er1 >conftest.err
2173 rm -f conftest.er1
2174 cat conftest.err >&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); } >/dev/null; then
2177 if test -s conftest.err; then
2178 ac_cpp_err=$ac_cxx_preproc_warn_flag
2179 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2180 else
2181 ac_cpp_err=
2182 fi
2183 else
2184 ac_cpp_err=yes
2185 fi
2186 if test -z "$ac_cpp_err"; then
2187 # Broken: success on invalid input.
2188 continue
2189 else
2190 echo "$as_me: failed program was:" >&5
2191 sed 's/^/| /' conftest.$ac_ext >&5
2192
2193 # Passes both tests.
2194 ac_preproc_ok=:
2195 break
2196 fi
2197 rm -f conftest.err conftest.$ac_ext
2198
2199 done
2200 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2201 rm -f conftest.err conftest.$ac_ext
2202 if $ac_preproc_ok; then
2203 break
2204 fi
2205
2206 done
2207 ac_cv_prog_CXXCPP=$CXXCPP
2208
2209 fi
2210 CXXCPP=$ac_cv_prog_CXXCPP
2211 else
2212 ac_cv_prog_CXXCPP=$CXXCPP
2213 fi
2214 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2215 echo "${ECHO_T}$CXXCPP" >&6
2216 ac_preproc_ok=false
2217 for ac_cxx_preproc_warn_flag in '' yes
2218 do
2219 # Use a header file that comes with gcc, so configuring glibc
2220 # with a fresh cross-compiler works.
2221 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2222 # <limits.h> exists even on freestanding compilers.
2223 # On the NeXT, cc -E runs the code through the compiler's parser,
2224 # not just through cpp. "Syntax error" is here to catch this case.
2225 cat >conftest.$ac_ext <<_ACEOF
2226 /* confdefs.h. */
2227 _ACEOF
2228 cat confdefs.h >>conftest.$ac_ext
2229 cat >>conftest.$ac_ext <<_ACEOF
2230 /* end confdefs.h. */
2231 #ifdef __STDC__
2232 # include <limits.h>
2233 #else
2234 # include <assert.h>
2235 #endif
2236 Syntax error
2237 _ACEOF
2238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2240 ac_status=$?
2241 grep -v '^ *+' conftest.er1 >conftest.err
2242 rm -f conftest.er1
2243 cat conftest.err >&5
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); } >/dev/null; then
2246 if test -s conftest.err; then
2247 ac_cpp_err=$ac_cxx_preproc_warn_flag
2248 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2249 else
2250 ac_cpp_err=
2251 fi
2252 else
2253 ac_cpp_err=yes
2254 fi
2255 if test -z "$ac_cpp_err"; then
2256 :
2257 else
2258 echo "$as_me: failed program was:" >&5
2259 sed 's/^/| /' conftest.$ac_ext >&5
2260
2261 # Broken: fails on valid input.
2262 continue
2263 fi
2264 rm -f conftest.err conftest.$ac_ext
2265
2266 # OK, works on sane cases. Now check whether non-existent headers
2267 # can be detected and how.
2268 cat >conftest.$ac_ext <<_ACEOF
2269 /* confdefs.h. */
2270 _ACEOF
2271 cat confdefs.h >>conftest.$ac_ext
2272 cat >>conftest.$ac_ext <<_ACEOF
2273 /* end confdefs.h. */
2274 #include <ac_nonexistent.h>
2275 _ACEOF
2276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2278 ac_status=$?
2279 grep -v '^ *+' conftest.er1 >conftest.err
2280 rm -f conftest.er1
2281 cat conftest.err >&5
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); } >/dev/null; then
2284 if test -s conftest.err; then
2285 ac_cpp_err=$ac_cxx_preproc_warn_flag
2286 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2287 else
2288 ac_cpp_err=
2289 fi
2290 else
2291 ac_cpp_err=yes
2292 fi
2293 if test -z "$ac_cpp_err"; then
2294 # Broken: success on invalid input.
2295 continue
2296 else
2297 echo "$as_me: failed program was:" >&5
2298 sed 's/^/| /' conftest.$ac_ext >&5
2299
2300 # Passes both tests.
2301 ac_preproc_ok=:
2302 break
2303 fi
2304 rm -f conftest.err conftest.$ac_ext
2305
2306 done
2307 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2308 rm -f conftest.err conftest.$ac_ext
2309 if $ac_preproc_ok; then
2310 :
2311 else
2312 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2313 See \`config.log' for more details." >&5
2314 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2315 See \`config.log' for more details." >&2;}
2316 { (exit 1); exit 1; }; }
2317 fi
2318
2319 ac_ext=cc
2320 ac_cpp='$CXXCPP $CPPFLAGS'
2321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2324
2325
2326
2327 if test "x$ac_path_x_has_been_run" != xyes; then
2328 echo "$as_me:$LINENO: checking for X" >&5
2329 echo $ECHO_N "checking for X... $ECHO_C" >&6
2330
2331 ac_path_x_has_been_run=yes
2332
2333 # Check whether --with-x or --without-x was given.
2334 if test "${with_x+set}" = set; then
2335 withval="$with_x"
2336
2337 fi;
2338 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2339 if test "x$with_x" = xno; then
2340 # The user explicitly disabled X.
2341 have_x=disabled
2342 else
2343 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2344 # Both variables are already set.
2345 have_x=yes
2346 else
2347 if test "${ac_cv_have_x+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
2349 else
2350 # One or both of the vars are not set, and there is no cached value.
2351 ac_x_includes=no ac_x_libraries=no
2352 rm -fr conftest.dir
2353 if mkdir conftest.dir; then
2354 cd conftest.dir
2355 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2356 cat >Imakefile <<'_ACEOF'
2357 acfindx:
2358 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2359 _ACEOF
2360 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2361 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2362 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2363 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2364 for ac_extension in a so sl; do
2365 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2366 test -f $ac_im_libdir/libX11.$ac_extension; then
2367 ac_im_usrlibdir=$ac_im_libdir; break
2368 fi
2369 done
2370 # Screen out bogus values from the imake configuration. They are
2371 # bogus both because they are the default anyway, and because
2372 # using them would break gcc on systems where it needs fixed includes.
2373 case $ac_im_incroot in
2374 /usr/include) ;;
2375 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2376 esac
2377 case $ac_im_usrlibdir in
2378 /usr/lib | /lib) ;;
2379 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2380 esac
2381 fi
2382 cd ..
2383 rm -fr conftest.dir
2384 fi
2385
2386 # Standard set of common directories for X headers.
2387 # Check X11 before X11Rn because it is often a symlink to the current release.
2388 ac_x_header_dirs='
2389 /usr/X11/include
2390 /usr/X11R6/include
2391 /usr/X11R5/include
2392 /usr/X11R4/include
2393
2394 /usr/include/X11
2395 /usr/include/X11R6
2396 /usr/include/X11R5
2397 /usr/include/X11R4
2398
2399 /usr/local/X11/include
2400 /usr/local/X11R6/include
2401 /usr/local/X11R5/include
2402 /usr/local/X11R4/include
2403
2404 /usr/local/include/X11
2405 /usr/local/include/X11R6
2406 /usr/local/include/X11R5
2407 /usr/local/include/X11R4
2408
2409 /usr/X386/include
2410 /usr/x386/include
2411 /usr/XFree86/include/X11
2412
2413 /usr/include
2414 /usr/local/include
2415 /usr/unsupported/include
2416 /usr/athena/include
2417 /usr/local/x11r5/include
2418 /usr/lpp/Xamples/include
2419
2420 /usr/openwin/include
2421 /usr/openwin/share/include'
2422
2423 if test "$ac_x_includes" = no; then
2424 # Guess where to find include files, by looking for a specified header file.
2425 # First, try using that file with no special directory specified.
2426 cat >conftest.$ac_ext <<_ACEOF
2427 /* confdefs.h. */
2428 _ACEOF
2429 cat confdefs.h >>conftest.$ac_ext
2430 cat >>conftest.$ac_ext <<_ACEOF
2431 /* end confdefs.h. */
2432 #include <X11/Xlib.h>
2433 _ACEOF
2434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2436 ac_status=$?
2437 grep -v '^ *+' conftest.er1 >conftest.err
2438 rm -f conftest.er1
2439 cat conftest.err >&5
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); } >/dev/null; then
2442 if test -s conftest.err; then
2443 ac_cpp_err=$ac_cxx_preproc_warn_flag
2444 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2445 else
2446 ac_cpp_err=
2447 fi
2448 else
2449 ac_cpp_err=yes
2450 fi
2451 if test -z "$ac_cpp_err"; then
2452 # We can compile using X headers with no special include directory.
2453 ac_x_includes=
2454 else
2455 echo "$as_me: failed program was:" >&5
2456 sed 's/^/| /' conftest.$ac_ext >&5
2457
2458 for ac_dir in $ac_x_header_dirs; do
2459 if test -r "$ac_dir/X11/Xlib.h"; then
2460 ac_x_includes=$ac_dir
2461 break
2462 fi
2463 done
2464 fi
2465 rm -f conftest.err conftest.$ac_ext
2466 fi # $ac_x_includes = no
2467
2468 if test "$ac_x_libraries" = no; then
2469 # Check for the libraries.
2470 # See if we find them without any special options.
2471 # Don't add to $LIBS permanently.
2472 ac_save_LIBS=$LIBS
2473 LIBS="-lX11 $LIBS"
2474 cat >conftest.$ac_ext <<_ACEOF
2475 /* confdefs.h. */
2476 _ACEOF
2477 cat confdefs.h >>conftest.$ac_ext
2478 cat >>conftest.$ac_ext <<_ACEOF
2479 /* end confdefs.h. */
2480 #include <X11/Xlib.h>
2481 int
2482 main ()
2483 {
2484 XrmInitialize ()
2485 ;
2486 return 0;
2487 }
2488 _ACEOF
2489 rm -f conftest.$ac_objext conftest$ac_exeext
2490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2491 (eval $ac_link) 2>conftest.er1
2492 ac_status=$?
2493 grep -v '^ *+' conftest.er1 >conftest.err
2494 rm -f conftest.er1
2495 cat conftest.err >&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); } &&
2498 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2500 (eval $ac_try) 2>&5
2501 ac_status=$?
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; } &&
2504 { ac_try='test -s conftest$ac_exeext'
2505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506 (eval $ac_try) 2>&5
2507 ac_status=$?
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; }; then
2510 LIBS=$ac_save_LIBS
2511 # We can link X programs with no special library path.
2512 ac_x_libraries=
2513 else
2514 echo "$as_me: failed program was:" >&5
2515 sed 's/^/| /' conftest.$ac_ext >&5
2516
2517 LIBS=$ac_save_LIBS
2518 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2519 do
2520 # Don't even attempt the hair of trying to link an X program!
2521 for ac_extension in a so sl; do
2522 if test -r $ac_dir/libX11.$ac_extension; then
2523 ac_x_libraries=$ac_dir
2524 break 2
2525 fi
2526 done
2527 done
2528 fi
2529 rm -f conftest.err conftest.$ac_objext \
2530 conftest$ac_exeext conftest.$ac_ext
2531 fi # $ac_x_libraries = no
2532
2533 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2534 # Didn't find X anywhere. Cache the known absence of X.
2535 ac_cv_have_x="have_x=no"
2536 else
2537 # Record where we found X for the cache.
2538 ac_cv_have_x="have_x=yes \
2539 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2540 fi
2541 fi
2542
2543 fi
2544 eval "$ac_cv_have_x"
2545 fi # $with_x != no
2546
2547 if test "$have_x" != yes; then
2548 echo "$as_me:$LINENO: result: $have_x" >&5
2549 echo "${ECHO_T}$have_x" >&6
2550 no_x=yes
2551 else
2552 # If each of the values was on the command line, it overrides each guess.
2553 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2554 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2555 # Update the cache value to reflect the command line values.
2556 ac_cv_have_x="have_x=yes \
2557 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2558 # It might be that x_includes is empty (headers are found in the
2559 # standard search path. Then output the corresponding message
2560 ac_out_x_includes=$x_includes
2561 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
2562 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
2563 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
2564 fi
2565
2566 fi
2567 if test "$no_x" = yes; then
2568 # Not all programs may use this symbol, but it does not hurt to define it.
2569
2570 cat >>confdefs.h <<\_ACEOF
2571 #define X_DISPLAY_MISSING 1
2572 _ACEOF
2573
2574 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2575 else
2576 if test -n "$x_includes"; then
2577 X_CFLAGS="$X_CFLAGS -I$x_includes"
2578 fi
2579
2580 # It would also be nice to do this for all -L options, not just this one.
2581 if test -n "$x_libraries"; then
2582 X_LIBS="$X_LIBS -L$x_libraries"
2583 # For Solaris; some versions of Sun CC require a space after -R and
2584 # others require no space. Words are not sufficient . . . .
2585 case `(uname -sr) 2>/dev/null` in
2586 "SunOS 5"*)
2587 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2588 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2589 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2590 cat >conftest.$ac_ext <<_ACEOF
2591 /* confdefs.h. */
2592 _ACEOF
2593 cat confdefs.h >>conftest.$ac_ext
2594 cat >>conftest.$ac_ext <<_ACEOF
2595 /* end confdefs.h. */
2596
2597 int
2598 main ()
2599 {
2600
2601 ;
2602 return 0;
2603 }
2604 _ACEOF
2605 rm -f conftest.$ac_objext conftest$ac_exeext
2606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2607 (eval $ac_link) 2>conftest.er1
2608 ac_status=$?
2609 grep -v '^ *+' conftest.er1 >conftest.err
2610 rm -f conftest.er1
2611 cat conftest.err >&5
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); } &&
2614 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 (eval $ac_try) 2>&5
2617 ac_status=$?
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; } &&
2620 { ac_try='test -s conftest$ac_exeext'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622 (eval $ac_try) 2>&5
2623 ac_status=$?
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; }; then
2626 ac_R_nospace=yes
2627 else
2628 echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.$ac_ext >&5
2630
2631 ac_R_nospace=no
2632 fi
2633 rm -f conftest.err conftest.$ac_objext \
2634 conftest$ac_exeext conftest.$ac_ext
2635 if test $ac_R_nospace = yes; then
2636 echo "$as_me:$LINENO: result: no" >&5
2637 echo "${ECHO_T}no" >&6
2638 X_LIBS="$X_LIBS -R$x_libraries"
2639 else
2640 LIBS="$ac_xsave_LIBS -R $x_libraries"
2641 cat >conftest.$ac_ext <<_ACEOF
2642 /* confdefs.h. */
2643 _ACEOF
2644 cat confdefs.h >>conftest.$ac_ext
2645 cat >>conftest.$ac_ext <<_ACEOF
2646 /* end confdefs.h. */
2647
2648 int
2649 main ()
2650 {
2651
2652 ;
2653 return 0;
2654 }
2655 _ACEOF
2656 rm -f conftest.$ac_objext conftest$ac_exeext
2657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2658 (eval $ac_link) 2>conftest.er1
2659 ac_status=$?
2660 grep -v '^ *+' conftest.er1 >conftest.err
2661 rm -f conftest.er1
2662 cat conftest.err >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); } &&
2665 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667 (eval $ac_try) 2>&5
2668 ac_status=$?
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; } &&
2671 { ac_try='test -s conftest$ac_exeext'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673 (eval $ac_try) 2>&5
2674 ac_status=$?
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; }; then
2677 ac_R_space=yes
2678 else
2679 echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2681
2682 ac_R_space=no
2683 fi
2684 rm -f conftest.err conftest.$ac_objext \
2685 conftest$ac_exeext conftest.$ac_ext
2686 if test $ac_R_space = yes; then
2687 echo "$as_me:$LINENO: result: yes" >&5
2688 echo "${ECHO_T}yes" >&6
2689 X_LIBS="$X_LIBS -R $x_libraries"
2690 else
2691 echo "$as_me:$LINENO: result: neither works" >&5
2692 echo "${ECHO_T}neither works" >&6
2693 fi
2694 fi
2695 LIBS=$ac_xsave_LIBS
2696 esac
2697 fi
2698
2699 # Check for system-dependent libraries X programs must link with.
2700 # Do this before checking for the system-independent R6 libraries
2701 # (-lICE), since we may need -lsocket or whatever for X linking.
2702
2703 if test "$ISC" = yes; then
2704 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2705 else
2706 # Martyn Johnson says this is needed for Ultrix, if the X
2707 # libraries were built with DECnet support. And Karl Berry says
2708 # the Alpha needs dnet_stub (dnet does not exist).
2709 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2710 cat >conftest.$ac_ext <<_ACEOF
2711 /* confdefs.h. */
2712 _ACEOF
2713 cat confdefs.h >>conftest.$ac_ext
2714 cat >>conftest.$ac_ext <<_ACEOF
2715 /* end confdefs.h. */
2716
2717 /* Override any gcc2 internal prototype to avoid an error. */
2718 #ifdef __cplusplus
2719 extern "C"
2720 #endif
2721 /* We use char because int might match the return type of a gcc2
2722 builtin and then its argument prototype would still apply. */
2723 char XOpenDisplay ();
2724 int
2725 main ()
2726 {
2727 XOpenDisplay ();
2728 ;
2729 return 0;
2730 }
2731 _ACEOF
2732 rm -f conftest.$ac_objext conftest$ac_exeext
2733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2734 (eval $ac_link) 2>conftest.er1
2735 ac_status=$?
2736 grep -v '^ *+' conftest.er1 >conftest.err
2737 rm -f conftest.er1
2738 cat conftest.err >&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); } &&
2741 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743 (eval $ac_try) 2>&5
2744 ac_status=$?
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; } &&
2747 { ac_try='test -s conftest$ac_exeext'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749 (eval $ac_try) 2>&5
2750 ac_status=$?
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; }; then
2753 :
2754 else
2755 echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.$ac_ext >&5
2757
2758 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
2759 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2760 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2761 echo $ECHO_N "(cached) $ECHO_C" >&6
2762 else
2763 ac_check_lib_save_LIBS=$LIBS
2764 LIBS="-ldnet $LIBS"
2765 cat >conftest.$ac_ext <<_ACEOF
2766 /* confdefs.h. */
2767 _ACEOF
2768 cat confdefs.h >>conftest.$ac_ext
2769 cat >>conftest.$ac_ext <<_ACEOF
2770 /* end confdefs.h. */
2771
2772 /* Override any gcc2 internal prototype to avoid an error. */
2773 #ifdef __cplusplus
2774 extern "C"
2775 #endif
2776 /* We use char because int might match the return type of a gcc2
2777 builtin and then its argument prototype would still apply. */
2778 char dnet_ntoa ();
2779 int
2780 main ()
2781 {
2782 dnet_ntoa ();
2783 ;
2784 return 0;
2785 }
2786 _ACEOF
2787 rm -f conftest.$ac_objext conftest$ac_exeext
2788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2789 (eval $ac_link) 2>conftest.er1
2790 ac_status=$?
2791 grep -v '^ *+' conftest.er1 >conftest.err
2792 rm -f conftest.er1
2793 cat conftest.err >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } &&
2796 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 (eval $ac_try) 2>&5
2799 ac_status=$?
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; } &&
2802 { ac_try='test -s conftest$ac_exeext'
2803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804 (eval $ac_try) 2>&5
2805 ac_status=$?
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); }; }; then
2808 ac_cv_lib_dnet_dnet_ntoa=yes
2809 else
2810 echo "$as_me: failed program was:" >&5
2811 sed 's/^/| /' conftest.$ac_ext >&5
2812
2813 ac_cv_lib_dnet_dnet_ntoa=no
2814 fi
2815 rm -f conftest.err conftest.$ac_objext \
2816 conftest$ac_exeext conftest.$ac_ext
2817 LIBS=$ac_check_lib_save_LIBS
2818 fi
2819 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
2820 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
2821 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
2822 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2823 fi
2824
2825 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2826 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
2827 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
2828 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2830 else
2831 ac_check_lib_save_LIBS=$LIBS
2832 LIBS="-ldnet_stub $LIBS"
2833 cat >conftest.$ac_ext <<_ACEOF
2834 /* confdefs.h. */
2835 _ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h. */
2839
2840 /* Override any gcc2 internal prototype to avoid an error. */
2841 #ifdef __cplusplus
2842 extern "C"
2843 #endif
2844 /* We use char because int might match the return type of a gcc2
2845 builtin and then its argument prototype would still apply. */
2846 char dnet_ntoa ();
2847 int
2848 main ()
2849 {
2850 dnet_ntoa ();
2851 ;
2852 return 0;
2853 }
2854 _ACEOF
2855 rm -f conftest.$ac_objext conftest$ac_exeext
2856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2857 (eval $ac_link) 2>conftest.er1
2858 ac_status=$?
2859 grep -v '^ *+' conftest.er1 >conftest.err
2860 rm -f conftest.er1
2861 cat conftest.err >&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); } &&
2864 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866 (eval $ac_try) 2>&5
2867 ac_status=$?
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); }; } &&
2870 { ac_try='test -s conftest$ac_exeext'
2871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 (eval $ac_try) 2>&5
2873 ac_status=$?
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }; }; then
2876 ac_cv_lib_dnet_stub_dnet_ntoa=yes
2877 else
2878 echo "$as_me: failed program was:" >&5
2879 sed 's/^/| /' conftest.$ac_ext >&5
2880
2881 ac_cv_lib_dnet_stub_dnet_ntoa=no
2882 fi
2883 rm -f conftest.err conftest.$ac_objext \
2884 conftest$ac_exeext conftest.$ac_ext
2885 LIBS=$ac_check_lib_save_LIBS
2886 fi
2887 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
2888 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
2889 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
2890 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2891 fi
2892
2893 fi
2894 fi
2895 rm -f conftest.err conftest.$ac_objext \
2896 conftest$ac_exeext conftest.$ac_ext
2897 LIBS="$ac_xsave_LIBS"
2898
2899 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
2900 # to get the SysV transport functions.
2901 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
2902 # needs -lnsl.
2903 # The nsl library prevents programs from opening the X display
2904 # on Irix 5.2, according to T.E. Dickey.
2905 # The functions gethostbyname, getservbyname, and inet_addr are
2906 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
2907 echo "$as_me:$LINENO: checking for gethostbyname" >&5
2908 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2909 if test "${ac_cv_func_gethostbyname+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2911 else
2912 cat >conftest.$ac_ext <<_ACEOF
2913 /* confdefs.h. */
2914 _ACEOF
2915 cat confdefs.h >>conftest.$ac_ext
2916 cat >>conftest.$ac_ext <<_ACEOF
2917 /* end confdefs.h. */
2918 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
2919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2920 #define gethostbyname innocuous_gethostbyname
2921
2922 /* System header to define __stub macros and hopefully few prototypes,
2923 which can conflict with char gethostbyname (); below.
2924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2925 <limits.h> exists even on freestanding compilers. */
2926
2927 #ifdef __STDC__
2928 # include <limits.h>
2929 #else
2930 # include <assert.h>
2931 #endif
2932
2933 #undef gethostbyname
2934
2935 /* Override any gcc2 internal prototype to avoid an error. */
2936 #ifdef __cplusplus
2937 extern "C"
2938 {
2939 #endif
2940 /* We use char because int might match the return type of a gcc2
2941 builtin and then its argument prototype would still apply. */
2942 char gethostbyname ();
2943 /* The GNU C library defines this for functions which it implements
2944 to always fail with ENOSYS. Some functions are actually named
2945 something starting with __ and the normal name is an alias. */
2946 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2947 choke me
2948 #else
2949 char (*f) () = gethostbyname;
2950 #endif
2951 #ifdef __cplusplus
2952 }
2953 #endif
2954
2955 int
2956 main ()
2957 {
2958 return f != gethostbyname;
2959 ;
2960 return 0;
2961 }
2962 _ACEOF
2963 rm -f conftest.$ac_objext conftest$ac_exeext
2964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2965 (eval $ac_link) 2>conftest.er1
2966 ac_status=$?
2967 grep -v '^ *+' conftest.er1 >conftest.err
2968 rm -f conftest.er1
2969 cat conftest.err >&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); } &&
2972 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2974 (eval $ac_try) 2>&5
2975 ac_status=$?
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); }; } &&
2978 { ac_try='test -s conftest$ac_exeext'
2979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2980 (eval $ac_try) 2>&5
2981 ac_status=$?
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; }; then
2984 ac_cv_func_gethostbyname=yes
2985 else
2986 echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2988
2989 ac_cv_func_gethostbyname=no
2990 fi
2991 rm -f conftest.err conftest.$ac_objext \
2992 conftest$ac_exeext conftest.$ac_ext
2993 fi
2994 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
2995 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2996
2997 if test $ac_cv_func_gethostbyname = no; then
2998 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
2999 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3000 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3001 echo $ECHO_N "(cached) $ECHO_C" >&6
3002 else
3003 ac_check_lib_save_LIBS=$LIBS
3004 LIBS="-lnsl $LIBS"
3005 cat >conftest.$ac_ext <<_ACEOF
3006 /* confdefs.h. */
3007 _ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3011
3012 /* Override any gcc2 internal prototype to avoid an error. */
3013 #ifdef __cplusplus
3014 extern "C"
3015 #endif
3016 /* We use char because int might match the return type of a gcc2
3017 builtin and then its argument prototype would still apply. */
3018 char gethostbyname ();
3019 int
3020 main ()
3021 {
3022 gethostbyname ();
3023 ;
3024 return 0;
3025 }
3026 _ACEOF
3027 rm -f conftest.$ac_objext conftest$ac_exeext
3028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3029 (eval $ac_link) 2>conftest.er1
3030 ac_status=$?
3031 grep -v '^ *+' conftest.er1 >conftest.err
3032 rm -f conftest.er1
3033 cat conftest.err >&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); } &&
3036 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3038 (eval $ac_try) 2>&5
3039 ac_status=$?
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }; } &&
3042 { ac_try='test -s conftest$ac_exeext'
3043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3044 (eval $ac_try) 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; }; then
3048 ac_cv_lib_nsl_gethostbyname=yes
3049 else
3050 echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.$ac_ext >&5
3052
3053 ac_cv_lib_nsl_gethostbyname=no
3054 fi
3055 rm -f conftest.err conftest.$ac_objext \
3056 conftest$ac_exeext conftest.$ac_ext
3057 LIBS=$ac_check_lib_save_LIBS
3058 fi
3059 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3060 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3061 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3062 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3063 fi
3064
3065 if test $ac_cv_lib_nsl_gethostbyname = no; then
3066 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3067 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3068 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 else
3071 ac_check_lib_save_LIBS=$LIBS
3072 LIBS="-lbsd $LIBS"
3073 cat >conftest.$ac_ext <<_ACEOF
3074 /* confdefs.h. */
3075 _ACEOF
3076 cat confdefs.h >>conftest.$ac_ext
3077 cat >>conftest.$ac_ext <<_ACEOF
3078 /* end confdefs.h. */
3079
3080 /* Override any gcc2 internal prototype to avoid an error. */
3081 #ifdef __cplusplus
3082 extern "C"
3083 #endif
3084 /* We use char because int might match the return type of a gcc2
3085 builtin and then its argument prototype would still apply. */
3086 char gethostbyname ();
3087 int
3088 main ()
3089 {
3090 gethostbyname ();
3091 ;
3092 return 0;
3093 }
3094 _ACEOF
3095 rm -f conftest.$ac_objext conftest$ac_exeext
3096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3097 (eval $ac_link) 2>conftest.er1
3098 ac_status=$?
3099 grep -v '^ *+' conftest.er1 >conftest.err
3100 rm -f conftest.er1
3101 cat conftest.err >&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); } &&
3104 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3106 (eval $ac_try) 2>&5
3107 ac_status=$?
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; } &&
3110 { ac_try='test -s conftest$ac_exeext'
3111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3112 (eval $ac_try) 2>&5
3113 ac_status=$?
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; }; then
3116 ac_cv_lib_bsd_gethostbyname=yes
3117 else
3118 echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3120
3121 ac_cv_lib_bsd_gethostbyname=no
3122 fi
3123 rm -f conftest.err conftest.$ac_objext \
3124 conftest$ac_exeext conftest.$ac_ext
3125 LIBS=$ac_check_lib_save_LIBS
3126 fi
3127 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3128 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3129 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3130 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3131 fi
3132
3133 fi
3134 fi
3135
3136 # [email protected] says without -lsocket,
3137 # socket/setsockopt and other routines are undefined under SCO ODT
3138 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3139 # on later versions), says Simon Leinen: it contains gethostby*
3140 # variants that don't use the name server (or something). -lsocket
3141 # must be given before -lnsl if both are needed. We assume that
3142 # if connect needs -lnsl, so does gethostbyname.
3143 echo "$as_me:$LINENO: checking for connect" >&5
3144 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3145 if test "${ac_cv_func_connect+set}" = set; then
3146 echo $ECHO_N "(cached) $ECHO_C" >&6
3147 else
3148 cat >conftest.$ac_ext <<_ACEOF
3149 /* confdefs.h. */
3150 _ACEOF
3151 cat confdefs.h >>conftest.$ac_ext
3152 cat >>conftest.$ac_ext <<_ACEOF
3153 /* end confdefs.h. */
3154 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
3155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3156 #define connect innocuous_connect
3157
3158 /* System header to define __stub macros and hopefully few prototypes,
3159 which can conflict with char connect (); below.
3160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3161 <limits.h> exists even on freestanding compilers. */
3162
3163 #ifdef __STDC__
3164 # include <limits.h>
3165 #else
3166 # include <assert.h>
3167 #endif
3168
3169 #undef connect
3170
3171 /* Override any gcc2 internal prototype to avoid an error. */
3172 #ifdef __cplusplus
3173 extern "C"
3174 {
3175 #endif
3176 /* We use char because int might match the return type of a gcc2
3177 builtin and then its argument prototype would still apply. */
3178 char connect ();
3179 /* The GNU C library defines this for functions which it implements
3180 to always fail with ENOSYS. Some functions are actually named
3181 something starting with __ and the normal name is an alias. */
3182 #if defined (__stub_connect) || defined (__stub___connect)
3183 choke me
3184 #else
3185 char (*f) () = connect;
3186 #endif
3187 #ifdef __cplusplus
3188 }
3189 #endif
3190
3191 int
3192 main ()
3193 {
3194 return f != connect;
3195 ;
3196 return 0;
3197 }
3198 _ACEOF
3199 rm -f conftest.$ac_objext conftest$ac_exeext
3200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3201 (eval $ac_link) 2>conftest.er1
3202 ac_status=$?
3203 grep -v '^ *+' conftest.er1 >conftest.err
3204 rm -f conftest.er1
3205 cat conftest.err >&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); } &&
3208 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210 (eval $ac_try) 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; } &&
3214 { ac_try='test -s conftest$ac_exeext'
3215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216 (eval $ac_try) 2>&5
3217 ac_status=$?
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
3220 ac_cv_func_connect=yes
3221 else
3222 echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3224
3225 ac_cv_func_connect=no
3226 fi
3227 rm -f conftest.err conftest.$ac_objext \
3228 conftest$ac_exeext conftest.$ac_ext
3229 fi
3230 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3231 echo "${ECHO_T}$ac_cv_func_connect" >&6
3232
3233 if test $ac_cv_func_connect = no; then
3234 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3235 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3236 if test "${ac_cv_lib_socket_connect+set}" = set; then
3237 echo $ECHO_N "(cached) $ECHO_C" >&6
3238 else
3239 ac_check_lib_save_LIBS=$LIBS
3240 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3241 cat >conftest.$ac_ext <<_ACEOF
3242 /* confdefs.h. */
3243 _ACEOF
3244 cat confdefs.h >>conftest.$ac_ext
3245 cat >>conftest.$ac_ext <<_ACEOF
3246 /* end confdefs.h. */
3247
3248 /* Override any gcc2 internal prototype to avoid an error. */
3249 #ifdef __cplusplus
3250 extern "C"
3251 #endif
3252 /* We use char because int might match the return type of a gcc2
3253 builtin and then its argument prototype would still apply. */
3254 char connect ();
3255 int
3256 main ()
3257 {
3258 connect ();
3259 ;
3260 return 0;
3261 }
3262 _ACEOF
3263 rm -f conftest.$ac_objext conftest$ac_exeext
3264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3265 (eval $ac_link) 2>conftest.er1
3266 ac_status=$?
3267 grep -v '^ *+' conftest.er1 >conftest.err
3268 rm -f conftest.er1
3269 cat conftest.err >&5
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); } &&
3272 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274 (eval $ac_try) 2>&5
3275 ac_status=$?
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }; } &&
3278 { ac_try='test -s conftest$ac_exeext'
3279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3280 (eval $ac_try) 2>&5
3281 ac_status=$?
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); }; }; then
3284 ac_cv_lib_socket_connect=yes
3285 else
3286 echo "$as_me: failed program was:" >&5
3287 sed 's/^/| /' conftest.$ac_ext >&5
3288
3289 ac_cv_lib_socket_connect=no
3290 fi
3291 rm -f conftest.err conftest.$ac_objext \
3292 conftest$ac_exeext conftest.$ac_ext
3293 LIBS=$ac_check_lib_save_LIBS
3294 fi
3295 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3296 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3297 if test $ac_cv_lib_socket_connect = yes; then
3298 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3299 fi
3300
3301 fi
3302
3303 # Guillermo Gomez says -lposix is necessary on A/UX.
3304 echo "$as_me:$LINENO: checking for remove" >&5
3305 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3306 if test "${ac_cv_func_remove+set}" = set; then
3307 echo $ECHO_N "(cached) $ECHO_C" >&6
3308 else
3309 cat >conftest.$ac_ext <<_ACEOF
3310 /* confdefs.h. */
3311 _ACEOF
3312 cat confdefs.h >>conftest.$ac_ext
3313 cat >>conftest.$ac_ext <<_ACEOF
3314 /* end confdefs.h. */
3315 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
3316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3317 #define remove innocuous_remove
3318
3319 /* System header to define __stub macros and hopefully few prototypes,
3320 which can conflict with char remove (); below.
3321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3322 <limits.h> exists even on freestanding compilers. */
3323
3324 #ifdef __STDC__
3325 # include <limits.h>
3326 #else
3327 # include <assert.h>
3328 #endif
3329
3330 #undef remove
3331
3332 /* Override any gcc2 internal prototype to avoid an error. */
3333 #ifdef __cplusplus
3334 extern "C"
3335 {
3336 #endif
3337 /* We use char because int might match the return type of a gcc2
3338 builtin and then its argument prototype would still apply. */
3339 char remove ();
3340 /* The GNU C library defines this for functions which it implements
3341 to always fail with ENOSYS. Some functions are actually named
3342 something starting with __ and the normal name is an alias. */
3343 #if defined (__stub_remove) || defined (__stub___remove)
3344 choke me
3345 #else
3346 char (*f) () = remove;
3347 #endif
3348 #ifdef __cplusplus
3349 }
3350 #endif
3351
3352 int
3353 main ()
3354 {
3355 return f != remove;
3356 ;
3357 return 0;
3358 }
3359 _ACEOF
3360 rm -f conftest.$ac_objext conftest$ac_exeext
3361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3362 (eval $ac_link) 2>conftest.er1
3363 ac_status=$?
3364 grep -v '^ *+' conftest.er1 >conftest.err
3365 rm -f conftest.er1
3366 cat conftest.err >&5
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } &&
3369 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371 (eval $ac_try) 2>&5
3372 ac_status=$?
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); }; } &&
3375 { ac_try='test -s conftest$ac_exeext'
3376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 (eval $ac_try) 2>&5
3378 ac_status=$?
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; }; then
3381 ac_cv_func_remove=yes
3382 else
3383 echo "$as_me: failed program was:" >&5
3384 sed 's/^/| /' conftest.$ac_ext >&5
3385
3386 ac_cv_func_remove=no
3387 fi
3388 rm -f conftest.err conftest.$ac_objext \
3389 conftest$ac_exeext conftest.$ac_ext
3390 fi
3391 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3392 echo "${ECHO_T}$ac_cv_func_remove" >&6
3393
3394 if test $ac_cv_func_remove = no; then
3395 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3396 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3397 if test "${ac_cv_lib_posix_remove+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3399 else
3400 ac_check_lib_save_LIBS=$LIBS
3401 LIBS="-lposix $LIBS"
3402 cat >conftest.$ac_ext <<_ACEOF
3403 /* confdefs.h. */
3404 _ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3408
3409 /* Override any gcc2 internal prototype to avoid an error. */
3410 #ifdef __cplusplus
3411 extern "C"
3412 #endif
3413 /* We use char because int might match the return type of a gcc2
3414 builtin and then its argument prototype would still apply. */
3415 char remove ();
3416 int
3417 main ()
3418 {
3419 remove ();
3420 ;
3421 return 0;
3422 }
3423 _ACEOF
3424 rm -f conftest.$ac_objext conftest$ac_exeext
3425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3426 (eval $ac_link) 2>conftest.er1
3427 ac_status=$?
3428 grep -v '^ *+' conftest.er1 >conftest.err
3429 rm -f conftest.er1
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } &&
3433 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435 (eval $ac_try) 2>&5
3436 ac_status=$?
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); }; } &&
3439 { ac_try='test -s conftest$ac_exeext'
3440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3441 (eval $ac_try) 2>&5
3442 ac_status=$?
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); }; }; then
3445 ac_cv_lib_posix_remove=yes
3446 else
3447 echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3449
3450 ac_cv_lib_posix_remove=no
3451 fi
3452 rm -f conftest.err conftest.$ac_objext \
3453 conftest$ac_exeext conftest.$ac_ext
3454 LIBS=$ac_check_lib_save_LIBS
3455 fi
3456 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3457 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3458 if test $ac_cv_lib_posix_remove = yes; then
3459 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3460 fi
3461
3462 fi
3463
3464 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3465 echo "$as_me:$LINENO: checking for shmat" >&5
3466 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3467 if test "${ac_cv_func_shmat+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3469 else
3470 cat >conftest.$ac_ext <<_ACEOF
3471 /* confdefs.h. */
3472 _ACEOF
3473 cat confdefs.h >>conftest.$ac_ext
3474 cat >>conftest.$ac_ext <<_ACEOF
3475 /* end confdefs.h. */
3476 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
3477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3478 #define shmat innocuous_shmat
3479
3480 /* System header to define __stub macros and hopefully few prototypes,
3481 which can conflict with char shmat (); below.
3482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3483 <limits.h> exists even on freestanding compilers. */
3484
3485 #ifdef __STDC__
3486 # include <limits.h>
3487 #else
3488 # include <assert.h>
3489 #endif
3490
3491 #undef shmat
3492
3493 /* Override any gcc2 internal prototype to avoid an error. */
3494 #ifdef __cplusplus
3495 extern "C"
3496 {
3497 #endif
3498 /* We use char because int might match the return type of a gcc2
3499 builtin and then its argument prototype would still apply. */
3500 char shmat ();
3501 /* The GNU C library defines this for functions which it implements
3502 to always fail with ENOSYS. Some functions are actually named
3503 something starting with __ and the normal name is an alias. */
3504 #if defined (__stub_shmat) || defined (__stub___shmat)
3505 choke me
3506 #else
3507 char (*f) () = shmat;
3508 #endif
3509 #ifdef __cplusplus
3510 }
3511 #endif
3512
3513 int
3514 main ()
3515 {
3516 return f != shmat;
3517 ;
3518 return 0;
3519 }
3520 _ACEOF
3521 rm -f conftest.$ac_objext conftest$ac_exeext
3522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3523 (eval $ac_link) 2>conftest.er1
3524 ac_status=$?
3525 grep -v '^ *+' conftest.er1 >conftest.err
3526 rm -f conftest.er1
3527 cat conftest.err >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } &&
3530 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532 (eval $ac_try) 2>&5
3533 ac_status=$?
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); }; } &&
3536 { ac_try='test -s conftest$ac_exeext'
3537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538 (eval $ac_try) 2>&5
3539 ac_status=$?
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; }; then
3542 ac_cv_func_shmat=yes
3543 else
3544 echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3546
3547 ac_cv_func_shmat=no
3548 fi
3549 rm -f conftest.err conftest.$ac_objext \
3550 conftest$ac_exeext conftest.$ac_ext
3551 fi
3552 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3553 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3554
3555 if test $ac_cv_func_shmat = no; then
3556 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3557 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3558 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3559 echo $ECHO_N "(cached) $ECHO_C" >&6
3560 else
3561 ac_check_lib_save_LIBS=$LIBS
3562 LIBS="-lipc $LIBS"
3563 cat >conftest.$ac_ext <<_ACEOF
3564 /* confdefs.h. */
3565 _ACEOF
3566 cat confdefs.h >>conftest.$ac_ext
3567 cat >>conftest.$ac_ext <<_ACEOF
3568 /* end confdefs.h. */
3569
3570 /* Override any gcc2 internal prototype to avoid an error. */
3571 #ifdef __cplusplus
3572 extern "C"
3573 #endif
3574 /* We use char because int might match the return type of a gcc2
3575 builtin and then its argument prototype would still apply. */
3576 char shmat ();
3577 int
3578 main ()
3579 {
3580 shmat ();
3581 ;
3582 return 0;
3583 }
3584 _ACEOF
3585 rm -f conftest.$ac_objext conftest$ac_exeext
3586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3587 (eval $ac_link) 2>conftest.er1
3588 ac_status=$?
3589 grep -v '^ *+' conftest.er1 >conftest.err
3590 rm -f conftest.er1
3591 cat conftest.err >&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); } &&
3594 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3596 (eval $ac_try) 2>&5
3597 ac_status=$?
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }; } &&
3600 { ac_try='test -s conftest$ac_exeext'
3601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3602 (eval $ac_try) 2>&5
3603 ac_status=$?
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; }; then
3606 ac_cv_lib_ipc_shmat=yes
3607 else
3608 echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3610
3611 ac_cv_lib_ipc_shmat=no
3612 fi
3613 rm -f conftest.err conftest.$ac_objext \
3614 conftest$ac_exeext conftest.$ac_ext
3615 LIBS=$ac_check_lib_save_LIBS
3616 fi
3617 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3618 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3619 if test $ac_cv_lib_ipc_shmat = yes; then
3620 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3621 fi
3622
3623 fi
3624 fi
3625
3626 # Check for libraries that X11R6 Xt/Xaw programs need.
3627 ac_save_LDFLAGS=$LDFLAGS
3628 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3629 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3630 # check for ICE first), but we must link in the order -lSM -lICE or
3631 # we get undefined symbols. So assume we have SM if we have ICE.
3632 # These have to be linked with before -lX11, unlike the other
3633 # libraries we check for below, so use a different variable.
3634 # John Interrante, Karl Berry
3635 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3636 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3637 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
3639 else
3640 ac_check_lib_save_LIBS=$LIBS
3641 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3642 cat >conftest.$ac_ext <<_ACEOF
3643 /* confdefs.h. */
3644 _ACEOF
3645 cat confdefs.h >>conftest.$ac_ext
3646 cat >>conftest.$ac_ext <<_ACEOF
3647 /* end confdefs.h. */
3648
3649 /* Override any gcc2 internal prototype to avoid an error. */
3650 #ifdef __cplusplus
3651 extern "C"
3652 #endif
3653 /* We use char because int might match the return type of a gcc2
3654 builtin and then its argument prototype would still apply. */
3655 char IceConnectionNumber ();
3656 int
3657 main ()
3658 {
3659 IceConnectionNumber ();
3660 ;
3661 return 0;
3662 }
3663 _ACEOF
3664 rm -f conftest.$ac_objext conftest$ac_exeext
3665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3666 (eval $ac_link) 2>conftest.er1
3667 ac_status=$?
3668 grep -v '^ *+' conftest.er1 >conftest.err
3669 rm -f conftest.er1
3670 cat conftest.err >&5
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); } &&
3673 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675 (eval $ac_try) 2>&5
3676 ac_status=$?
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; } &&
3679 { ac_try='test -s conftest$ac_exeext'
3680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681 (eval $ac_try) 2>&5
3682 ac_status=$?
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; }; then
3685 ac_cv_lib_ICE_IceConnectionNumber=yes
3686 else
3687 echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3689
3690 ac_cv_lib_ICE_IceConnectionNumber=no
3691 fi
3692 rm -f conftest.err conftest.$ac_objext \
3693 conftest$ac_exeext conftest.$ac_ext
3694 LIBS=$ac_check_lib_save_LIBS
3695 fi
3696 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3697 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3698 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3699 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3700 fi
3701
3702 LDFLAGS=$ac_save_LDFLAGS
3703
3704 fi
3705
3706 echo "$as_me:$LINENO: checking for egrep" >&5
3707 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3708 if test "${ac_cv_prog_egrep+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3710 else
3711 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3712 then ac_cv_prog_egrep='grep -E'
3713 else ac_cv_prog_egrep='egrep'
3714 fi
3715 fi
3716 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3717 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3718 EGREP=$ac_cv_prog_egrep
3719
3720
3721 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3722 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3723 if test "${ac_cv_header_stdc+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 else
3726 cat >conftest.$ac_ext <<_ACEOF
3727 /* confdefs.h. */
3728 _ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3731 /* end confdefs.h. */
3732 #include <stdlib.h>
3733 #include <stdarg.h>
3734 #include <string.h>
3735 #include <float.h>
3736
3737 int
3738 main ()
3739 {
3740
3741 ;
3742 return 0;
3743 }
3744 _ACEOF
3745 rm -f conftest.$ac_objext
3746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3747 (eval $ac_compile) 2>conftest.er1
3748 ac_status=$?
3749 grep -v '^ *+' conftest.er1 >conftest.err
3750 rm -f conftest.er1
3751 cat conftest.err >&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); } &&
3754 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3756 (eval $ac_try) 2>&5
3757 ac_status=$?
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }; } &&
3760 { ac_try='test -s conftest.$ac_objext'
3761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3762 (eval $ac_try) 2>&5
3763 ac_status=$?
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); }; }; then
3766 ac_cv_header_stdc=yes
3767 else
3768 echo "$as_me: failed program was:" >&5
3769 sed 's/^/| /' conftest.$ac_ext >&5
3770
3771 ac_cv_header_stdc=no
3772 fi
3773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3774
3775 if test $ac_cv_header_stdc = yes; then
3776 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3777 cat >conftest.$ac_ext <<_ACEOF
3778 /* confdefs.h. */
3779 _ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h. */
3783 #include <string.h>
3784
3785 _ACEOF
3786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3787 $EGREP "memchr" >/dev/null 2>&1; then
3788 :
3789 else
3790 ac_cv_header_stdc=no
3791 fi
3792 rm -f conftest*
3793
3794 fi
3795
3796 if test $ac_cv_header_stdc = yes; then
3797 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3798 cat >conftest.$ac_ext <<_ACEOF
3799 /* confdefs.h. */
3800 _ACEOF
3801 cat confdefs.h >>conftest.$ac_ext
3802 cat >>conftest.$ac_ext <<_ACEOF
3803 /* end confdefs.h. */
3804 #include <stdlib.h>
3805
3806 _ACEOF
3807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3808 $EGREP "free" >/dev/null 2>&1; then
3809 :
3810 else
3811 ac_cv_header_stdc=no
3812 fi
3813 rm -f conftest*
3814
3815 fi
3816
3817 if test $ac_cv_header_stdc = yes; then
3818 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3819 if test "$cross_compiling" = yes; then
3820 :
3821 else
3822 cat >conftest.$ac_ext <<_ACEOF
3823 /* confdefs.h. */
3824 _ACEOF
3825 cat confdefs.h >>conftest.$ac_ext
3826 cat >>conftest.$ac_ext <<_ACEOF
3827 /* end confdefs.h. */
3828 #include <ctype.h>
3829 #if ((' ' & 0x0FF) == 0x020)
3830 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3831 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3832 #else
3833 # define ISLOWER(c) \
3834 (('a' <= (c) && (c) <= 'i') \
3835 || ('j' <= (c) && (c) <= 'r') \
3836 || ('s' <= (c) && (c) <= 'z'))
3837 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3838 #endif
3839
3840 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3841 int
3842 main ()
3843 {
3844 int i;
3845 for (i = 0; i < 256; i++)
3846 if (XOR (islower (i), ISLOWER (i))
3847 || toupper (i) != TOUPPER (i))
3848 exit(2);
3849 exit (0);
3850 }
3851 _ACEOF
3852 rm -f conftest$ac_exeext
3853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3854 (eval $ac_link) 2>&5
3855 ac_status=$?
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859 (eval $ac_try) 2>&5
3860 ac_status=$?
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); }; }; then
3863 :
3864 else
3865 echo "$as_me: program exited with status $ac_status" >&5
3866 echo "$as_me: failed program was:" >&5
3867 sed 's/^/| /' conftest.$ac_ext >&5
3868
3869 ( exit $ac_status )
3870 ac_cv_header_stdc=no
3871 fi
3872 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3873 fi
3874 fi
3875 fi
3876 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3877 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3878 if test $ac_cv_header_stdc = yes; then
3879
3880 cat >>confdefs.h <<\_ACEOF
3881 #define STDC_HEADERS 1
3882 _ACEOF
3883
3884 fi
3885
3886
3887
3888 for ac_func in memset strncmp
3889 do
3890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3891 echo "$as_me:$LINENO: checking for $ac_func" >&5
3892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3893 if eval "test \"\${$as_ac_var+set}\" = set"; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3895 else
3896 cat >conftest.$ac_ext <<_ACEOF
3897 /* confdefs.h. */
3898 _ACEOF
3899 cat confdefs.h >>conftest.$ac_ext
3900 cat >>conftest.$ac_ext <<_ACEOF
3901 /* end confdefs.h. */
3902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3904 #define $ac_func innocuous_$ac_func
3905
3906 /* System header to define __stub macros and hopefully few prototypes,
3907 which can conflict with char $ac_func (); below.
3908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3909 <limits.h> exists even on freestanding compilers. */
3910
3911 #ifdef __STDC__
3912 # include <limits.h>
3913 #else
3914 # include <assert.h>
3915 #endif
3916
3917 #undef $ac_func
3918
3919 /* Override any gcc2 internal prototype to avoid an error. */
3920 #ifdef __cplusplus
3921 extern "C"
3922 {
3923 #endif
3924 /* We use char because int might match the return type of a gcc2
3925 builtin and then its argument prototype would still apply. */
3926 char $ac_func ();
3927 /* The GNU C library defines this for functions which it implements
3928 to always fail with ENOSYS. Some functions are actually named
3929 something starting with __ and the normal name is an alias. */
3930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3931 choke me
3932 #else
3933 char (*f) () = $ac_func;
3934 #endif
3935 #ifdef __cplusplus
3936 }
3937 #endif
3938
3939 int
3940 main ()
3941 {
3942 return f != $ac_func;
3943 ;
3944 return 0;
3945 }
3946 _ACEOF
3947 rm -f conftest.$ac_objext conftest$ac_exeext
3948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3949 (eval $ac_link) 2>conftest.er1
3950 ac_status=$?
3951 grep -v '^ *+' conftest.er1 >conftest.err
3952 rm -f conftest.er1
3953 cat conftest.err >&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); } &&
3956 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958 (eval $ac_try) 2>&5
3959 ac_status=$?
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); }; } &&
3962 { ac_try='test -s conftest$ac_exeext'
3963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3964 (eval $ac_try) 2>&5
3965 ac_status=$?
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); }; }; then
3968 eval "$as_ac_var=yes"
3969 else
3970 echo "$as_me: failed program was:" >&5
3971 sed 's/^/| /' conftest.$ac_ext >&5
3972
3973 eval "$as_ac_var=no"
3974 fi
3975 rm -f conftest.err conftest.$ac_objext \
3976 conftest$ac_exeext conftest.$ac_ext
3977 fi
3978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3980 if test `eval echo '${'$as_ac_var'}'` = yes; then
3981 cat >>confdefs.h <<_ACEOF
3982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3983 _ACEOF
3984
3985 fi
3986 done
3987
3988 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3999 inttypes.h stdint.h unistd.h
4000 do
4001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4002 echo "$as_me:$LINENO: checking for $ac_header" >&5
4003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 else
4007 cat >conftest.$ac_ext <<_ACEOF
4008 /* confdefs.h. */
4009 _ACEOF
4010 cat confdefs.h >>conftest.$ac_ext
4011 cat >>conftest.$ac_ext <<_ACEOF
4012 /* end confdefs.h. */
4013 $ac_includes_default
4014
4015 #include <$ac_header>
4016 _ACEOF
4017 rm -f conftest.$ac_objext
4018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4019 (eval $ac_compile) 2>conftest.er1
4020 ac_status=$?
4021 grep -v '^ *+' conftest.er1 >conftest.err
4022 rm -f conftest.er1
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028 (eval $ac_try) 2>&5
4029 ac_status=$?
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; } &&
4032 { ac_try='test -s conftest.$ac_objext'
4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034 (eval $ac_try) 2>&5
4035 ac_status=$?
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; }; then
4038 eval "$as_ac_Header=yes"
4039 else
4040 echo "$as_me: failed program was:" >&5
4041 sed 's/^/| /' conftest.$ac_ext >&5
4042
4043 eval "$as_ac_Header=no"
4044 fi
4045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4046 fi
4047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4050 cat >>confdefs.h <<_ACEOF
4051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4052 _ACEOF
4053
4054 fi
4055
4056 done
4057
4058
4059
4060 for ac_header in unistd.h
4061 do
4062 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4064 echo "$as_me:$LINENO: checking for $ac_header" >&5
4065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4068 fi
4069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4070 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4071 else
4072 # Is the header compilable?
4073 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4074 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4075 cat >conftest.$ac_ext <<_ACEOF
4076 /* confdefs.h. */
4077 _ACEOF
4078 cat confdefs.h >>conftest.$ac_ext
4079 cat >>conftest.$ac_ext <<_ACEOF
4080 /* end confdefs.h. */
4081 $ac_includes_default
4082 #include <$ac_header>
4083 _ACEOF
4084 rm -f conftest.$ac_objext
4085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4086 (eval $ac_compile) 2>conftest.er1
4087 ac_status=$?
4088 grep -v '^ *+' conftest.er1 >conftest.err
4089 rm -f conftest.er1
4090 cat conftest.err >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } &&
4093 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4095 (eval $ac_try) 2>&5
4096 ac_status=$?
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }; } &&
4099 { ac_try='test -s conftest.$ac_objext'
4100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4101 (eval $ac_try) 2>&5
4102 ac_status=$?
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; }; then
4105 ac_header_compiler=yes
4106 else
4107 echo "$as_me: failed program was:" >&5
4108 sed 's/^/| /' conftest.$ac_ext >&5
4109
4110 ac_header_compiler=no
4111 fi
4112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4113 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4114 echo "${ECHO_T}$ac_header_compiler" >&6
4115
4116 # Is the header present?
4117 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4119 cat >conftest.$ac_ext <<_ACEOF
4120 /* confdefs.h. */
4121 _ACEOF
4122 cat confdefs.h >>conftest.$ac_ext
4123 cat >>conftest.$ac_ext <<_ACEOF
4124 /* end confdefs.h. */
4125 #include <$ac_header>
4126 _ACEOF
4127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4129 ac_status=$?
4130 grep -v '^ *+' conftest.er1 >conftest.err
4131 rm -f conftest.er1
4132 cat conftest.err >&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); } >/dev/null; then
4135 if test -s conftest.err; then
4136 ac_cpp_err=$ac_cxx_preproc_warn_flag
4137 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4138 else
4139 ac_cpp_err=
4140 fi
4141 else
4142 ac_cpp_err=yes
4143 fi
4144 if test -z "$ac_cpp_err"; then
4145 ac_header_preproc=yes
4146 else
4147 echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.$ac_ext >&5
4149
4150 ac_header_preproc=no
4151 fi
4152 rm -f conftest.err conftest.$ac_ext
4153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4154 echo "${ECHO_T}$ac_header_preproc" >&6
4155
4156 # So? What about this header?
4157 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4158 yes:no: )
4159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4162 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4163 ac_header_preproc=yes
4164 ;;
4165 no:yes:* )
4166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4169 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4170 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4171 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4172 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4173 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4175 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4176 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4177 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4178 (
4179 cat <<\_ASBOX
4180 ## ------------------------------------------ ##
4181 ## Report this to the AC_PACKAGE_NAME lists. ##
4182 ## ------------------------------------------ ##
4183 _ASBOX
4184 ) |
4185 sed "s/^/$as_me: WARNING: /" >&2
4186 ;;
4187 esac
4188 echo "$as_me:$LINENO: checking for $ac_header" >&5
4189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4192 else
4193 eval "$as_ac_Header=\$ac_header_preproc"
4194 fi
4195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4197
4198 fi
4199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4200 cat >>confdefs.h <<_ACEOF
4201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4202 _ACEOF
4203
4204 fi
4205
4206 done
4207
4208
4209 echo "$as_me:$LINENO: checking for time_t" >&5
4210 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
4211 if test "${ac_cv_type_time_t+set}" = set; then
4212 echo $ECHO_N "(cached) $ECHO_C" >&6
4213 else
4214 cat >conftest.$ac_ext <<_ACEOF
4215 /* confdefs.h. */
4216 _ACEOF
4217 cat confdefs.h >>conftest.$ac_ext
4218 cat >>conftest.$ac_ext <<_ACEOF
4219 /* end confdefs.h. */
4220 $ac_includes_default
4221 int
4222 main ()
4223 {
4224 if ((time_t *) 0)
4225 return 0;
4226 if (sizeof (time_t))
4227 return 0;
4228 ;
4229 return 0;
4230 }
4231 _ACEOF
4232 rm -f conftest.$ac_objext
4233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4234 (eval $ac_compile) 2>conftest.er1
4235 ac_status=$?
4236 grep -v '^ *+' conftest.er1 >conftest.err
4237 rm -f conftest.er1
4238 cat conftest.err >&5
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); } &&
4241 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4243 (eval $ac_try) 2>&5
4244 ac_status=$?
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); }; } &&
4247 { ac_try='test -s conftest.$ac_objext'
4248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4249 (eval $ac_try) 2>&5
4250 ac_status=$?
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); }; }; then
4253 ac_cv_type_time_t=yes
4254 else
4255 echo "$as_me: failed program was:" >&5
4256 sed 's/^/| /' conftest.$ac_ext >&5
4257
4258 ac_cv_type_time_t=no
4259 fi
4260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4261 fi
4262 echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
4263 echo "${ECHO_T}$ac_cv_type_time_t" >&6
4264 if test $ac_cv_type_time_t = yes; then
4265 :
4266 else
4267
4268 cat >>confdefs.h <<_ACEOF
4269 #define time_t long
4270 _ACEOF
4271
4272 fi
4273
4274 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4275 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4276 if test "${ac_cv_header_time+set}" = set; then
4277 echo $ECHO_N "(cached) $ECHO_C" >&6
4278 else
4279 cat >conftest.$ac_ext <<_ACEOF
4280 /* confdefs.h. */
4281 _ACEOF
4282 cat confdefs.h >>conftest.$ac_ext
4283 cat >>conftest.$ac_ext <<_ACEOF
4284 /* end confdefs.h. */
4285 #include <sys/types.h>
4286 #include <sys/time.h>
4287 #include <time.h>
4288
4289 int
4290 main ()
4291 {
4292 if ((struct tm *) 0)
4293 return 0;
4294 ;
4295 return 0;
4296 }
4297 _ACEOF
4298 rm -f conftest.$ac_objext
4299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4300 (eval $ac_compile) 2>conftest.er1
4301 ac_status=$?
4302 grep -v '^ *+' conftest.er1 >conftest.err
4303 rm -f conftest.er1
4304 cat conftest.err >&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); } &&
4307 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309 (eval $ac_try) 2>&5
4310 ac_status=$?
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }; } &&
4313 { ac_try='test -s conftest.$ac_objext'
4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315 (eval $ac_try) 2>&5
4316 ac_status=$?
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; }; then
4319 ac_cv_header_time=yes
4320 else
4321 echo "$as_me: failed program was:" >&5
4322 sed 's/^/| /' conftest.$ac_ext >&5
4323
4324 ac_cv_header_time=no
4325 fi
4326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4327 fi
4328 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4329 echo "${ECHO_T}$ac_cv_header_time" >&6
4330 if test $ac_cv_header_time = yes; then
4331
4332 cat >>confdefs.h <<\_ACEOF
4333 #define TIME_WITH_SYS_TIME 1
4334 _ACEOF
4335
4336 fi
4337
4338 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4339 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4340 if test "${ac_cv_struct_tm+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4342 else
4343 cat >conftest.$ac_ext <<_ACEOF
4344 /* confdefs.h. */
4345 _ACEOF
4346 cat confdefs.h >>conftest.$ac_ext
4347 cat >>conftest.$ac_ext <<_ACEOF
4348 /* end confdefs.h. */
4349 #include <sys/types.h>
4350 #include <time.h>
4351
4352 int
4353 main ()
4354 {
4355 struct tm *tp; tp->tm_sec;
4356 ;
4357 return 0;
4358 }
4359 _ACEOF
4360 rm -f conftest.$ac_objext
4361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4362 (eval $ac_compile) 2>conftest.er1
4363 ac_status=$?
4364 grep -v '^ *+' conftest.er1 >conftest.err
4365 rm -f conftest.er1
4366 cat conftest.err >&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } &&
4369 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4371 (eval $ac_try) 2>&5
4372 ac_status=$?
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); }; } &&
4375 { ac_try='test -s conftest.$ac_objext'
4376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4377 (eval $ac_try) 2>&5
4378 ac_status=$?
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }; }; then
4381 ac_cv_struct_tm=time.h
4382 else
4383 echo "$as_me: failed program was:" >&5
4384 sed 's/^/| /' conftest.$ac_ext >&5
4385
4386 ac_cv_struct_tm=sys/time.h
4387 fi
4388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4389 fi
4390 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4391 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4392 if test $ac_cv_struct_tm = sys/time.h; then
4393
4394 cat >>confdefs.h <<\_ACEOF
4395 #define TM_IN_SYS_TIME 1
4396 _ACEOF
4397
4398 fi
4399
4400 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
4401 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
4402 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4403 echo $ECHO_N "(cached) $ECHO_C" >&6
4404 else
4405 cat >conftest.$ac_ext <<_ACEOF
4406 /* confdefs.h. */
4407 _ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4411 #include <sys/types.h>
4412 #include <$ac_cv_struct_tm>
4413
4414
4415 int
4416 main ()
4417 {
4418 static struct tm ac_aggr;
4419 if (ac_aggr.tm_zone)
4420 return 0;
4421 ;
4422 return 0;
4423 }
4424 _ACEOF
4425 rm -f conftest.$ac_objext
4426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4427 (eval $ac_compile) 2>conftest.er1
4428 ac_status=$?
4429 grep -v '^ *+' conftest.er1 >conftest.err
4430 rm -f conftest.er1
4431 cat conftest.err >&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); } &&
4434 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436 (eval $ac_try) 2>&5
4437 ac_status=$?
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); }; } &&
4440 { ac_try='test -s conftest.$ac_objext'
4441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442 (eval $ac_try) 2>&5
4443 ac_status=$?
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; }; then
4446 ac_cv_member_struct_tm_tm_zone=yes
4447 else
4448 echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4450
4451 cat >conftest.$ac_ext <<_ACEOF
4452 /* confdefs.h. */
4453 _ACEOF
4454 cat confdefs.h >>conftest.$ac_ext
4455 cat >>conftest.$ac_ext <<_ACEOF
4456 /* end confdefs.h. */
4457 #include <sys/types.h>
4458 #include <$ac_cv_struct_tm>
4459
4460
4461 int
4462 main ()
4463 {
4464 static struct tm ac_aggr;
4465 if (sizeof ac_aggr.tm_zone)
4466 return 0;
4467 ;
4468 return 0;
4469 }
4470 _ACEOF
4471 rm -f conftest.$ac_objext
4472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4473 (eval $ac_compile) 2>conftest.er1
4474 ac_status=$?
4475 grep -v '^ *+' conftest.er1 >conftest.err
4476 rm -f conftest.er1
4477 cat conftest.err >&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); } &&
4480 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482 (eval $ac_try) 2>&5
4483 ac_status=$?
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); }; } &&
4486 { ac_try='test -s conftest.$ac_objext'
4487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4488 (eval $ac_try) 2>&5
4489 ac_status=$?
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); }; }; then
4492 ac_cv_member_struct_tm_tm_zone=yes
4493 else
4494 echo "$as_me: failed program was:" >&5
4495 sed 's/^/| /' conftest.$ac_ext >&5
4496
4497 ac_cv_member_struct_tm_tm_zone=no
4498 fi
4499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4500 fi
4501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4502 fi
4503 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
4504 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
4505 if test $ac_cv_member_struct_tm_tm_zone = yes; then
4506
4507 cat >>confdefs.h <<_ACEOF
4508 #define HAVE_STRUCT_TM_TM_ZONE 1
4509 _ACEOF
4510
4511
4512 fi
4513
4514 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4515
4516 cat >>confdefs.h <<\_ACEOF
4517 #define HAVE_TM_ZONE 1
4518 _ACEOF
4519
4520 else
4521 echo "$as_me:$LINENO: checking for tzname" >&5
4522 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
4523 if test "${ac_cv_var_tzname+set}" = set; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
4525 else
4526 cat >conftest.$ac_ext <<_ACEOF
4527 /* confdefs.h. */
4528 _ACEOF
4529 cat confdefs.h >>conftest.$ac_ext
4530 cat >>conftest.$ac_ext <<_ACEOF
4531 /* end confdefs.h. */
4532 #include <time.h>
4533 #ifndef tzname /* For SGI. */
4534 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4535 #endif
4536
4537 int
4538 main ()
4539 {
4540 atoi(*tzname);
4541 ;
4542 return 0;
4543 }
4544 _ACEOF
4545 rm -f conftest.$ac_objext conftest$ac_exeext
4546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4547 (eval $ac_link) 2>conftest.er1
4548 ac_status=$?
4549 grep -v '^ *+' conftest.er1 >conftest.err
4550 rm -f conftest.er1
4551 cat conftest.err >&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); } &&
4554 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556 (eval $ac_try) 2>&5
4557 ac_status=$?
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; } &&
4560 { ac_try='test -s conftest$ac_exeext'
4561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4562 (eval $ac_try) 2>&5
4563 ac_status=$?
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); }; }; then
4566 ac_cv_var_tzname=yes
4567 else
4568 echo "$as_me: failed program was:" >&5
4569 sed 's/^/| /' conftest.$ac_ext >&5
4570
4571 ac_cv_var_tzname=no
4572 fi
4573 rm -f conftest.err conftest.$ac_objext \
4574 conftest$ac_exeext conftest.$ac_ext
4575 fi
4576 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
4577 echo "${ECHO_T}$ac_cv_var_tzname" >&6
4578 if test $ac_cv_var_tzname = yes; then
4579
4580 cat >>confdefs.h <<\_ACEOF
4581 #define HAVE_TZNAME 1
4582 _ACEOF
4583
4584 fi
4585 fi
4586
4587
4588
4589
4590
4591
4592 ac_config_files="$ac_config_files Makefile"
4593 cat >confcache <<\_ACEOF
4594 # This file is a shell script that caches the results of configure
4595 # tests run on this system so they can be shared between configure
4596 # scripts and configure runs, see configure's option --config-cache.
4597 # It is not useful on other systems. If it contains results you don't
4598 # want to keep, you may remove or edit it.
4599 #
4600 # config.status only pays attention to the cache file if you give it
4601 # the --recheck option to rerun configure.
4602 #
4603 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4604 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4605 # following values.
4606
4607 _ACEOF
4608
4609 # The following way of writing the cache mishandles newlines in values,
4610 # but we know of no workaround that is simple, portable, and efficient.
4611 # So, don't put newlines in cache variables' values.
4612 # Ultrix sh set writes to stderr and can't be redirected directly,
4613 # and sets the high bit in the cache file unless we assign to the vars.
4614 {
4615 (set) 2>&1 |
4616 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4617 *ac_space=\ *)
4618 # `set' does not quote correctly, so add quotes (double-quote
4619 # substitution turns \\\\ into \\, and sed turns \\ into \).
4620 sed -n \
4621 "s/'/'\\\\''/g;
4622 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4623 ;;
4624 *)
4625 # `set' quotes correctly as required by POSIX, so do not add quotes.
4626 sed -n \
4627 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4628 ;;
4629 esac;
4630 } |
4631 sed '
4632 t clear
4633 : clear
4634 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4635 t end
4636 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4637 : end' >>confcache
4638 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4639 if test -w $cache_file; then
4640 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4641 cat confcache >$cache_file
4642 else
4643 echo "not updating unwritable cache $cache_file"
4644 fi
4645 fi
4646 rm -f confcache
4647
4648 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4649 # Let make expand exec_prefix.
4650 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4651
4652 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4653 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4654 # trailing colons and then remove the whole line if VPATH becomes empty
4655 # (actually we leave an empty line to preserve line numbers).
4656 if test "x$srcdir" = x.; then
4657 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4658 s/:*\$(srcdir):*/:/;
4659 s/:*\${srcdir}:*/:/;
4660 s/:*@srcdir@:*/:/;
4661 s/^\([^=]*=[ ]*\):*/\1/;
4662 s/:*$//;
4663 s/^[^=]*=[ ]*$//;
4664 }'
4665 fi
4666
4667 DEFS=-DHAVE_CONFIG_H
4668
4669 ac_libobjs=
4670 ac_ltlibobjs=
4671 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4672 # 1. Remove the extension, and $U if already installed.
4673 ac_i=`echo "$ac_i" |
4674 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4675 # 2. Add them.
4676 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4677 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4678 done
4679 LIBOBJS=$ac_libobjs
4680
4681 LTLIBOBJS=$ac_ltlibobjs
4682
4683
4684
4685 : ${CONFIG_STATUS=./config.status}
4686 ac_clean_files_save=$ac_clean_files
4687 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4688 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4689 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4690 cat >$CONFIG_STATUS <<_ACEOF
4691 #! $SHELL
4692 # Generated by $as_me.
4693 # Run this file to recreate the current configuration.
4694 # Compiler output produced by configure, useful for debugging
4695 # configure, is in config.log if it exists.
4696
4697 debug=false
4698 ac_cs_recheck=false
4699 ac_cs_silent=false
4700 SHELL=\${CONFIG_SHELL-$SHELL}
4701 _ACEOF
4702
4703 cat >>$CONFIG_STATUS <<\_ACEOF
4704 ## --------------------- ##
4705 ## M4sh Initialization. ##
4706 ## --------------------- ##
4707
4708 # Be Bourne compatible
4709 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4710 emulate sh
4711 NULLCMD=:
4712 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4713 # is contrary to our usage. Disable this feature.
4714 alias -g '${1+"$@"}'='"$@"'
4715 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4716 set -o posix
4717 fi
4718 DUALCASE=1; export DUALCASE # for MKS sh
4719
4720 # Support unset when possible.
4721 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4722 as_unset=unset
4723 else
4724 as_unset=false
4725 fi
4726
4727
4728 # Work around bugs in pre-3.0 UWIN ksh.
4729 $as_unset ENV MAIL MAILPATH
4730 PS1='$ '
4731 PS2='> '
4732 PS4='+ '
4733
4734 # NLS nuisances.
4735 for as_var in \
4736 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4737 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4738 LC_TELEPHONE LC_TIME
4739 do
4740 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4741 eval $as_var=C; export $as_var
4742 else
4743 $as_unset $as_var
4744 fi
4745 done
4746
4747 # Required to use basename.
4748 if expr a : '\(a\)' >/dev/null 2>&1; then
4749 as_expr=expr
4750 else
4751 as_expr=false
4752 fi
4753
4754 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4755 as_basename=basename
4756 else
4757 as_basename=false
4758 fi
4759
4760
4761 # Name of the executable.
4762 as_me=`$as_basename "$0" ||
4763 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4764 X"$0" : 'X\(//\)$' \| \
4765 X"$0" : 'X\(/\)$' \| \
4766 . : '\(.\)' 2>/dev/null ||
4767 echo X/"$0" |
4768 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4769 /^X\/\(\/\/\)$/{ s//\1/; q; }
4770 /^X\/\(\/\).*/{ s//\1/; q; }
4771 s/.*/./; q'`
4772
4773
4774 # PATH needs CR, and LINENO needs CR and PATH.
4775 # Avoid depending upon Character Ranges.
4776 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4777 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4778 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4779 as_cr_digits='0123456789'
4780 as_cr_alnum=$as_cr_Letters$as_cr_digits
4781
4782 # The user is always right.
4783 if test "${PATH_SEPARATOR+set}" != set; then
4784 echo "#! /bin/sh" >conf$$.sh
4785 echo "exit 0" >>conf$$.sh
4786 chmod +x conf$$.sh
4787 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4788 PATH_SEPARATOR=';'
4789 else
4790 PATH_SEPARATOR=:
4791 fi
4792 rm -f conf$$.sh
4793 fi
4794
4795
4796 as_lineno_1=$LINENO
4797 as_lineno_2=$LINENO
4798 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4799 test "x$as_lineno_1" != "x$as_lineno_2" &&
4800 test "x$as_lineno_3" = "x$as_lineno_2" || {
4801 # Find who we are. Look in the path if we contain no path at all
4802 # relative or not.
4803 case $0 in
4804 *[\\/]* ) as_myself=$0 ;;
4805 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806 for as_dir in $PATH
4807 do
4808 IFS=$as_save_IFS
4809 test -z "$as_dir" && as_dir=.
4810 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4811 done
4812
4813 ;;
4814 esac
4815 # We did not find ourselves, most probably we were run as `sh COMMAND'
4816 # in which case we are not to be found in the path.
4817 if test "x$as_myself" = x; then
4818 as_myself=$0
4819 fi
4820 if test ! -f "$as_myself"; then
4821 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4822 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4823 { (exit 1); exit 1; }; }
4824 fi
4825 case $CONFIG_SHELL in
4826 '')
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4829 do
4830 IFS=$as_save_IFS
4831 test -z "$as_dir" && as_dir=.
4832 for as_base in sh bash ksh sh5; do
4833 case $as_dir in
4834 /*)
4835 if ("$as_dir/$as_base" -c '
4836 as_lineno_1=$LINENO
4837 as_lineno_2=$LINENO
4838 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4839 test "x$as_lineno_1" != "x$as_lineno_2" &&
4840 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4841 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4842 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4843 CONFIG_SHELL=$as_dir/$as_base
4844 export CONFIG_SHELL
4845 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4846 fi;;
4847 esac
4848 done
4849 done
4850 ;;
4851 esac
4852
4853 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4854 # uniformly replaced by the line number. The first 'sed' inserts a
4855 # line-number line before each line; the second 'sed' does the real
4856 # work. The second script uses 'N' to pair each line-number line
4857 # with the numbered line, and appends trailing '-' during
4858 # substitution so that $LINENO is not a special case at line end.
4859 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4860 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4861 sed '=' <$as_myself |
4862 sed '
4863 N
4864 s,$,-,
4865 : loop
4866 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4867 t loop
4868 s,-$,,
4869 s,^['$as_cr_digits']*\n,,
4870 ' >$as_me.lineno &&
4871 chmod +x $as_me.lineno ||
4872 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4873 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4874 { (exit 1); exit 1; }; }
4875
4876 # Don't try to exec as it changes $[0], causing all sort of problems
4877 # (the dirname of $[0] is not the place where we might find the
4878 # original and so on. Autoconf is especially sensible to this).
4879 . ./$as_me.lineno
4880 # Exit status is that of the last command.
4881 exit
4882 }
4883
4884
4885 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4886 *c*,-n*) ECHO_N= ECHO_C='
4887 ' ECHO_T=' ' ;;
4888 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4889 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4890 esac
4891
4892 if expr a : '\(a\)' >/dev/null 2>&1; then
4893 as_expr=expr
4894 else
4895 as_expr=false
4896 fi
4897
4898 rm -f conf$$ conf$$.exe conf$$.file
4899 echo >conf$$.file
4900 if ln -s conf$$.file conf$$ 2>/dev/null; then
4901 # We could just check for DJGPP; but this test a) works b) is more generic
4902 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4903 if test -f conf$$.exe; then
4904 # Don't use ln at all; we don't have any links
4905 as_ln_s='cp -p'
4906 else
4907 as_ln_s='ln -s'
4908 fi
4909 elif ln conf$$.file conf$$ 2>/dev/null; then
4910 as_ln_s=ln
4911 else
4912 as_ln_s='cp -p'
4913 fi
4914 rm -f conf$$ conf$$.exe conf$$.file
4915
4916 if mkdir -p . 2>/dev/null; then
4917 as_mkdir_p=:
4918 else
4919 test -d ./-p && rmdir ./-p
4920 as_mkdir_p=false
4921 fi
4922
4923 as_executable_p="test -f"
4924
4925 # Sed expression to map a string onto a valid CPP name.
4926 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4927
4928 # Sed expression to map a string onto a valid variable name.
4929 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4930
4931
4932 # IFS
4933 # We need space, tab and new line, in precisely that order.
4934 as_nl='
4935 '
4936 IFS=" $as_nl"
4937
4938 # CDPATH.
4939 $as_unset CDPATH
4940
4941 exec 6>&1
4942
4943 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4944 # report actual input values of CONFIG_FILES etc. instead of their
4945 # values after options handling. Logging --version etc. is OK.
4946 exec 5>>config.log
4947 {
4948 echo
4949 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4950 ## Running $as_me. ##
4951 _ASBOX
4952 } >&5
4953 cat >&5 <<_CSEOF
4954
4955 This file was extended by $as_me, which was
4956 generated by GNU Autoconf 2.59. Invocation command line was
4957
4958 CONFIG_FILES = $CONFIG_FILES
4959 CONFIG_HEADERS = $CONFIG_HEADERS
4960 CONFIG_LINKS = $CONFIG_LINKS
4961 CONFIG_COMMANDS = $CONFIG_COMMANDS
4962 $ $0 $@
4963
4964 _CSEOF
4965 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4966 echo >&5
4967 _ACEOF
4968
4969 # Files that config.status was made for.
4970 if test -n "$ac_config_files"; then
4971 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4972 fi
4973
4974 if test -n "$ac_config_headers"; then
4975 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4976 fi
4977
4978 if test -n "$ac_config_links"; then
4979 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4980 fi
4981
4982 if test -n "$ac_config_commands"; then
4983 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4984 fi
4985
4986 cat >>$CONFIG_STATUS <<\_ACEOF
4987
4988 ac_cs_usage="\
4989 \`$as_me' instantiates files from templates according to the
4990 current configuration.
4991
4992 Usage: $0 [OPTIONS] [FILE]...
4993
4994 -h, --help print this help, then exit
4995 -V, --version print version number, then exit
4996 -q, --quiet do not print progress messages
4997 -d, --debug don't remove temporary files
4998 --recheck update $as_me by reconfiguring in the same conditions
4999 --file=FILE[:TEMPLATE]
5000 instantiate the configuration file FILE
5001 --header=FILE[:TEMPLATE]
5002 instantiate the configuration header FILE
5003
5004 Configuration files:
5005 $config_files
5006
5007 Configuration headers:
5008 $config_headers
5009
5010 Report bugs to <[email protected]>."
5011 _ACEOF
5012
5013 cat >>$CONFIG_STATUS <<_ACEOF
5014 ac_cs_version="\\
5015 config.status
5016 configured by $0, generated by GNU Autoconf 2.59,
5017 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5018
5019 Copyright (C) 2003 Free Software Foundation, Inc.
5020 This config.status script is free software; the Free Software Foundation
5021 gives unlimited permission to copy, distribute and modify it."
5022 srcdir=$srcdir
5023 INSTALL="$INSTALL"
5024 _ACEOF
5025
5026 cat >>$CONFIG_STATUS <<\_ACEOF
5027 # If no file are specified by the user, then we need to provide default
5028 # value. By we need to know if files were specified by the user.
5029 ac_need_defaults=:
5030 while test $# != 0
5031 do
5032 case $1 in
5033 --*=*)
5034 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5035 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5036 ac_shift=:
5037 ;;
5038 -*)
5039 ac_option=$1
5040 ac_optarg=$2
5041 ac_shift=shift
5042 ;;
5043 *) # This is not an option, so the user has probably given explicit
5044 # arguments.
5045 ac_option=$1
5046 ac_need_defaults=false;;
5047 esac
5048
5049 case $ac_option in
5050 # Handling of the options.
5051 _ACEOF
5052 cat >>$CONFIG_STATUS <<\_ACEOF
5053 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5054 ac_cs_recheck=: ;;
5055 --version | --vers* | -V )
5056 echo "$ac_cs_version"; exit 0 ;;
5057 --he | --h)
5058 # Conflict between --help and --header
5059 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5060 Try \`$0 --help' for more information." >&5
5061 echo "$as_me: error: ambiguous option: $1
5062 Try \`$0 --help' for more information." >&2;}
5063 { (exit 1); exit 1; }; };;
5064 --help | --hel | -h )
5065 echo "$ac_cs_usage"; exit 0 ;;
5066 --debug | --d* | -d )
5067 debug=: ;;
5068 --file | --fil | --fi | --f )
5069 $ac_shift
5070 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5071 ac_need_defaults=false;;
5072 --header | --heade | --head | --hea )
5073 $ac_shift
5074 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5075 ac_need_defaults=false;;
5076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5077 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5078 ac_cs_silent=: ;;
5079
5080 # This is an error.
5081 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5082 Try \`$0 --help' for more information." >&5
5083 echo "$as_me: error: unrecognized option: $1
5084 Try \`$0 --help' for more information." >&2;}
5085 { (exit 1); exit 1; }; } ;;
5086
5087 *) ac_config_targets="$ac_config_targets $1" ;;
5088
5089 esac
5090 shift
5091 done
5092
5093 ac_configure_extra_args=
5094
5095 if $ac_cs_silent; then
5096 exec 6>/dev/null
5097 ac_configure_extra_args="$ac_configure_extra_args --silent"
5098 fi
5099
5100 _ACEOF
5101 cat >>$CONFIG_STATUS <<_ACEOF
5102 if \$ac_cs_recheck; then
5103 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5104 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5105 fi
5106
5107 _ACEOF
5108
5109
5110
5111
5112
5113 cat >>$CONFIG_STATUS <<\_ACEOF
5114 for ac_config_target in $ac_config_targets
5115 do
5116 case "$ac_config_target" in
5117 # Handling of arguments.
5118 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5119 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5120 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5121 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5122 { (exit 1); exit 1; }; };;
5123 esac
5124 done
5125
5126 # If the user did not use the arguments to specify the items to instantiate,
5127 # then the envvar interface is used. Set only those that are not.
5128 # We use the long form for the default assignment because of an extremely
5129 # bizarre bug on SunOS 4.1.3.
5130 if $ac_need_defaults; then
5131 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5132 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5133 fi
5134
5135 # Have a temporary directory for convenience. Make it in the build tree
5136 # simply because there is no reason to put it here, and in addition,
5137 # creating and moving files from /tmp can sometimes cause problems.
5138 # Create a temporary directory, and hook for its removal unless debugging.
5139 $debug ||
5140 {
5141 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5142 trap '{ (exit 1); exit 1; }' 1 2 13 15
5143 }
5144
5145 # Create a (secure) tmp directory for tmp files.
5146
5147 {
5148 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5149 test -n "$tmp" && test -d "$tmp"
5150 } ||
5151 {
5152 tmp=./confstat$$-$RANDOM
5153 (umask 077 && mkdir $tmp)
5154 } ||
5155 {
5156 echo "$me: cannot create a temporary directory in ." >&2
5157 { (exit 1); exit 1; }
5158 }
5159
5160 _ACEOF
5161
5162 cat >>$CONFIG_STATUS <<_ACEOF
5163
5164 #
5165 # CONFIG_FILES section.
5166 #
5167
5168 # No need to generate the scripts if there are no CONFIG_FILES.
5169 # This happens for instance when ./config.status config.h
5170 if test -n "\$CONFIG_FILES"; then
5171 # Protect against being on the right side of a sed subst in config.status.
5172 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5173 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5174 s,@SHELL@,$SHELL,;t t
5175 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5176 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5177 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5178 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5179 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5180 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5181 s,@exec_prefix@,$exec_prefix,;t t
5182 s,@prefix@,$prefix,;t t
5183 s,@program_transform_name@,$program_transform_name,;t t
5184 s,@bindir@,$bindir,;t t
5185 s,@sbindir@,$sbindir,;t t
5186 s,@libexecdir@,$libexecdir,;t t
5187 s,@datadir@,$datadir,;t t
5188 s,@sysconfdir@,$sysconfdir,;t t
5189 s,@sharedstatedir@,$sharedstatedir,;t t
5190 s,@localstatedir@,$localstatedir,;t t
5191 s,@libdir@,$libdir,;t t
5192 s,@includedir@,$includedir,;t t
5193 s,@oldincludedir@,$oldincludedir,;t t
5194 s,@infodir@,$infodir,;t t
5195 s,@mandir@,$mandir,;t t
5196 s,@build_alias@,$build_alias,;t t
5197 s,@host_alias@,$host_alias,;t t
5198 s,@target_alias@,$target_alias,;t t
5199 s,@DEFS@,$DEFS,;t t
5200 s,@ECHO_C@,$ECHO_C,;t t
5201 s,@ECHO_N@,$ECHO_N,;t t
5202 s,@ECHO_T@,$ECHO_T,;t t
5203 s,@LIBS@,$LIBS,;t t
5204 s,@CXX@,$CXX,;t t
5205 s,@CXXFLAGS@,$CXXFLAGS,;t t
5206 s,@LDFLAGS@,$LDFLAGS,;t t
5207 s,@CPPFLAGS@,$CPPFLAGS,;t t
5208 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
5209 s,@EXEEXT@,$EXEEXT,;t t
5210 s,@OBJEXT@,$OBJEXT,;t t
5211 s,@LN_S@,$LN_S,;t t
5212 s,@SET_MAKE@,$SET_MAKE,;t t
5213 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5214 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5215 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5216 s,@CXXCPP@,$CXXCPP,;t t
5217 s,@X_CFLAGS@,$X_CFLAGS,;t t
5218 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
5219 s,@X_LIBS@,$X_LIBS,;t t
5220 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
5221 s,@EGREP@,$EGREP,;t t
5222 s,@XO_PATH@,$XO_PATH,;t t
5223 s,@CFLAGS_W@,$CFLAGS_W,;t t
5224 s,@LIBOBJS@,$LIBOBJS,;t t
5225 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5226 CEOF
5227
5228 _ACEOF
5229
5230 cat >>$CONFIG_STATUS <<\_ACEOF
5231 # Split the substitutions into bite-sized pieces for seds with
5232 # small command number limits, like on Digital OSF/1 and HP-UX.
5233 ac_max_sed_lines=48
5234 ac_sed_frag=1 # Number of current file.
5235 ac_beg=1 # First line for current file.
5236 ac_end=$ac_max_sed_lines # Line after last line for current file.
5237 ac_more_lines=:
5238 ac_sed_cmds=
5239 while $ac_more_lines; do
5240 if test $ac_beg -gt 1; then
5241 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5242 else
5243 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5244 fi
5245 if test ! -s $tmp/subs.frag; then
5246 ac_more_lines=false
5247 else
5248 # The purpose of the label and of the branching condition is to
5249 # speed up the sed processing (if there are no `@' at all, there
5250 # is no need to browse any of the substitutions).
5251 # These are the two extra sed commands mentioned above.
5252 (echo ':t
5253 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5254 if test -z "$ac_sed_cmds"; then
5255 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5256 else
5257 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5258 fi
5259 ac_sed_frag=`expr $ac_sed_frag + 1`
5260 ac_beg=$ac_end
5261 ac_end=`expr $ac_end + $ac_max_sed_lines`
5262 fi
5263 done
5264 if test -z "$ac_sed_cmds"; then
5265 ac_sed_cmds=cat
5266 fi
5267 fi # test -n "$CONFIG_FILES"
5268
5269 _ACEOF
5270 cat >>$CONFIG_STATUS <<\_ACEOF
5271 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5272 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5273 case $ac_file in
5274 - | *:- | *:-:* ) # input from stdin
5275 cat >$tmp/stdin
5276 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5277 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5278 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5279 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5280 * ) ac_file_in=$ac_file.in ;;
5281 esac
5282
5283 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5284 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5285 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5286 X"$ac_file" : 'X\(//\)[^/]' \| \
5287 X"$ac_file" : 'X\(//\)$' \| \
5288 X"$ac_file" : 'X\(/\)' \| \
5289 . : '\(.\)' 2>/dev/null ||
5290 echo X"$ac_file" |
5291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5292 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5293 /^X\(\/\/\)$/{ s//\1/; q; }
5294 /^X\(\/\).*/{ s//\1/; q; }
5295 s/.*/./; q'`
5296 { if $as_mkdir_p; then
5297 mkdir -p "$ac_dir"
5298 else
5299 as_dir="$ac_dir"
5300 as_dirs=
5301 while test ! -d "$as_dir"; do
5302 as_dirs="$as_dir $as_dirs"
5303 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5304 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5305 X"$as_dir" : 'X\(//\)[^/]' \| \
5306 X"$as_dir" : 'X\(//\)$' \| \
5307 X"$as_dir" : 'X\(/\)' \| \
5308 . : '\(.\)' 2>/dev/null ||
5309 echo X"$as_dir" |
5310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5311 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5312 /^X\(\/\/\)$/{ s//\1/; q; }
5313 /^X\(\/\).*/{ s//\1/; q; }
5314 s/.*/./; q'`
5315 done
5316 test ! -n "$as_dirs" || mkdir $as_dirs
5317 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5318 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5319 { (exit 1); exit 1; }; }; }
5320
5321 ac_builddir=.
5322
5323 if test "$ac_dir" != .; then
5324 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5325 # A "../" for each directory in $ac_dir_suffix.
5326 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5327 else
5328 ac_dir_suffix= ac_top_builddir=
5329 fi
5330
5331 case $srcdir in
5332 .) # No --srcdir option. We are building in place.
5333 ac_srcdir=.
5334 if test -z "$ac_top_builddir"; then
5335 ac_top_srcdir=.
5336 else
5337 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5338 fi ;;
5339 [\\/]* | ?:[\\/]* ) # Absolute path.
5340 ac_srcdir=$srcdir$ac_dir_suffix;
5341 ac_top_srcdir=$srcdir ;;
5342 *) # Relative path.
5343 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5344 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5345 esac
5346
5347 # Do not use `cd foo && pwd` to compute absolute paths, because
5348 # the directories may not exist.
5349 case `pwd` in
5350 .) ac_abs_builddir="$ac_dir";;
5351 *)
5352 case "$ac_dir" in
5353 .) ac_abs_builddir=`pwd`;;
5354 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5355 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5356 esac;;
5357 esac
5358 case $ac_abs_builddir in
5359 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5360 *)
5361 case ${ac_top_builddir}. in
5362 .) ac_abs_top_builddir=$ac_abs_builddir;;
5363 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5364 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5365 esac;;
5366 esac
5367 case $ac_abs_builddir in
5368 .) ac_abs_srcdir=$ac_srcdir;;
5369 *)
5370 case $ac_srcdir in
5371 .) ac_abs_srcdir=$ac_abs_builddir;;
5372 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5373 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5374 esac;;
5375 esac
5376 case $ac_abs_builddir in
5377 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5378 *)
5379 case $ac_top_srcdir in
5380 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5381 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5382 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5383 esac;;
5384 esac
5385
5386
5387 case $INSTALL in
5388 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5389 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5390 esac
5391
5392 # Let's still pretend it is `configure' which instantiates (i.e., don't
5393 # use $as_me), people would be surprised to read:
5394 # /* config.h. Generated by config.status. */
5395 if test x"$ac_file" = x-; then
5396 configure_input=
5397 else
5398 configure_input="$ac_file. "
5399 fi
5400 configure_input=$configure_input"Generated from `echo $ac_file_in |
5401 sed 's,.*/,,'` by configure."
5402
5403 # First look for the input files in the build tree, otherwise in the
5404 # src tree.
5405 ac_file_inputs=`IFS=:
5406 for f in $ac_file_in; do
5407 case $f in
5408 -) echo $tmp/stdin ;;
5409 [\\/$]*)
5410 # Absolute (can't be DOS-style, as IFS=:)
5411 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5412 echo "$as_me: error: cannot find input file: $f" >&2;}
5413 { (exit 1); exit 1; }; }
5414 echo "$f";;
5415 *) # Relative
5416 if test -f "$f"; then
5417 # Build tree
5418 echo "$f"
5419 elif test -f "$srcdir/$f"; then
5420 # Source tree
5421 echo "$srcdir/$f"
5422 else
5423 # /dev/null tree
5424 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5425 echo "$as_me: error: cannot find input file: $f" >&2;}
5426 { (exit 1); exit 1; }; }
5427 fi;;
5428 esac
5429 done` || { (exit 1); exit 1; }
5430
5431 if test x"$ac_file" != x-; then
5432 { echo "$as_me:$LINENO: creating $ac_file" >&5
5433 echo "$as_me: creating $ac_file" >&6;}
5434 rm -f "$ac_file"
5435 fi
5436 _ACEOF
5437 cat >>$CONFIG_STATUS <<_ACEOF
5438 sed "$ac_vpsub
5439 $extrasub
5440 _ACEOF
5441 cat >>$CONFIG_STATUS <<\_ACEOF
5442 :t
5443 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5444 s,@configure_input@,$configure_input,;t t
5445 s,@srcdir@,$ac_srcdir,;t t
5446 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5447 s,@top_srcdir@,$ac_top_srcdir,;t t
5448 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5449 s,@builddir@,$ac_builddir,;t t
5450 s,@abs_builddir@,$ac_abs_builddir,;t t
5451 s,@top_builddir@,$ac_top_builddir,;t t
5452 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5453 s,@INSTALL@,$ac_INSTALL,;t t
5454 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5455 rm -f $tmp/stdin
5456 if test x"$ac_file" != x-; then
5457 mv $tmp/out $ac_file
5458 else
5459 cat $tmp/out
5460 rm -f $tmp/out
5461 fi
5462
5463 done
5464 _ACEOF
5465 cat >>$CONFIG_STATUS <<\_ACEOF
5466
5467 #
5468 # CONFIG_HEADER section.
5469 #
5470
5471 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5472 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5473 #
5474 # ac_d sets the value in "#define NAME VALUE" lines.
5475 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5476 ac_dB='[ ].*$,\1#\2'
5477 ac_dC=' '
5478 ac_dD=',;t'
5479 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5480 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5481 ac_uB='$,\1#\2define\3'
5482 ac_uC=' '
5483 ac_uD=',;t'
5484
5485 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5486 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5487 case $ac_file in
5488 - | *:- | *:-:* ) # input from stdin
5489 cat >$tmp/stdin
5490 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5491 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5492 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5493 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5494 * ) ac_file_in=$ac_file.in ;;
5495 esac
5496
5497 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5498 echo "$as_me: creating $ac_file" >&6;}
5499
5500 # First look for the input files in the build tree, otherwise in the
5501 # src tree.
5502 ac_file_inputs=`IFS=:
5503 for f in $ac_file_in; do
5504 case $f in
5505 -) echo $tmp/stdin ;;
5506 [\\/$]*)
5507 # Absolute (can't be DOS-style, as IFS=:)
5508 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5509 echo "$as_me: error: cannot find input file: $f" >&2;}
5510 { (exit 1); exit 1; }; }
5511 # Do quote $f, to prevent DOS paths from being IFS'd.
5512 echo "$f";;
5513 *) # Relative
5514 if test -f "$f"; then
5515 # Build tree
5516 echo "$f"
5517 elif test -f "$srcdir/$f"; then
5518 # Source tree
5519 echo "$srcdir/$f"
5520 else
5521 # /dev/null tree
5522 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5523 echo "$as_me: error: cannot find input file: $f" >&2;}
5524 { (exit 1); exit 1; }; }
5525 fi;;
5526 esac
5527 done` || { (exit 1); exit 1; }
5528 # Remove the trailing spaces.
5529 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5530
5531 _ACEOF
5532
5533 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5534 # `conftest.undefs', that substitutes the proper values into
5535 # config.h.in to produce config.h. The first handles `#define'
5536 # templates, and the second `#undef' templates.
5537 # And first: Protect against being on the right side of a sed subst in
5538 # config.status. Protect against being in an unquoted here document
5539 # in config.status.
5540 rm -f conftest.defines conftest.undefs
5541 # Using a here document instead of a string reduces the quoting nightmare.
5542 # Putting comments in sed scripts is not portable.
5543 #
5544 # `end' is used to avoid that the second main sed command (meant for
5545 # 0-ary CPP macros) applies to n-ary macro definitions.
5546 # See the Autoconf documentation for `clear'.
5547 cat >confdef2sed.sed <<\_ACEOF
5548 s/[\\&,]/\\&/g
5549 s,[\\$`],\\&,g
5550 t clear
5551 : clear
5552 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5553 t end
5554 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5555 : end
5556 _ACEOF
5557 # If some macros were called several times there might be several times
5558 # the same #defines, which is useless. Nevertheless, we may not want to
5559 # sort them, since we want the *last* AC-DEFINE to be honored.
5560 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5561 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5562 rm -f confdef2sed.sed
5563
5564 # This sed command replaces #undef with comments. This is necessary, for
5565 # example, in the case of _POSIX_SOURCE, which is predefined and required
5566 # on some systems where configure will not decide to define it.
5567 cat >>conftest.undefs <<\_ACEOF
5568 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5569 _ACEOF
5570
5571 # Break up conftest.defines because some shells have a limit on the size
5572 # of here documents, and old seds have small limits too (100 cmds).
5573 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5574 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5575 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5576 echo ' :' >>$CONFIG_STATUS
5577 rm -f conftest.tail
5578 while grep . conftest.defines >/dev/null
5579 do
5580 # Write a limited-size here document to $tmp/defines.sed.
5581 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5582 # Speed up: don't consider the non `#define' lines.
5583 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5584 # Work around the forget-to-reset-the-flag bug.
5585 echo 't clr' >>$CONFIG_STATUS
5586 echo ': clr' >>$CONFIG_STATUS
5587 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5588 echo 'CEOF
5589 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5590 rm -f $tmp/in
5591 mv $tmp/out $tmp/in
5592 ' >>$CONFIG_STATUS
5593 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5594 rm -f conftest.defines
5595 mv conftest.tail conftest.defines
5596 done
5597 rm -f conftest.defines
5598 echo ' fi # grep' >>$CONFIG_STATUS
5599 echo >>$CONFIG_STATUS
5600
5601 # Break up conftest.undefs because some shells have a limit on the size
5602 # of here documents, and old seds have small limits too (100 cmds).
5603 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5604 rm -f conftest.tail
5605 while grep . conftest.undefs >/dev/null
5606 do
5607 # Write a limited-size here document to $tmp/undefs.sed.
5608 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5609 # Speed up: don't consider the non `#undef'
5610 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5611 # Work around the forget-to-reset-the-flag bug.
5612 echo 't clr' >>$CONFIG_STATUS
5613 echo ': clr' >>$CONFIG_STATUS
5614 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5615 echo 'CEOF
5616 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5617 rm -f $tmp/in
5618 mv $tmp/out $tmp/in
5619 ' >>$CONFIG_STATUS
5620 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5621 rm -f conftest.undefs
5622 mv conftest.tail conftest.undefs
5623 done
5624 rm -f conftest.undefs
5625
5626 cat >>$CONFIG_STATUS <<\_ACEOF
5627 # Let's still pretend it is `configure' which instantiates (i.e., don't
5628 # use $as_me), people would be surprised to read:
5629 # /* config.h. Generated by config.status. */
5630 if test x"$ac_file" = x-; then
5631 echo "/* Generated by configure. */" >$tmp/config.h
5632 else
5633 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5634 fi
5635 cat $tmp/in >>$tmp/config.h
5636 rm -f $tmp/in
5637 if test x"$ac_file" != x-; then
5638 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5639 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5640 echo "$as_me: $ac_file is unchanged" >&6;}
5641 else
5642 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5643 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5644 X"$ac_file" : 'X\(//\)[^/]' \| \
5645 X"$ac_file" : 'X\(//\)$' \| \
5646 X"$ac_file" : 'X\(/\)' \| \
5647 . : '\(.\)' 2>/dev/null ||
5648 echo X"$ac_file" |
5649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5650 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5651 /^X\(\/\/\)$/{ s//\1/; q; }
5652 /^X\(\/\).*/{ s//\1/; q; }
5653 s/.*/./; q'`
5654 { if $as_mkdir_p; then
5655 mkdir -p "$ac_dir"
5656 else
5657 as_dir="$ac_dir"
5658 as_dirs=
5659 while test ! -d "$as_dir"; do
5660 as_dirs="$as_dir $as_dirs"
5661 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5662 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5663 X"$as_dir" : 'X\(//\)[^/]' \| \
5664 X"$as_dir" : 'X\(//\)$' \| \
5665 X"$as_dir" : 'X\(/\)' \| \
5666 . : '\(.\)' 2>/dev/null ||
5667 echo X"$as_dir" |
5668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5669 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5670 /^X\(\/\/\)$/{ s//\1/; q; }
5671 /^X\(\/\).*/{ s//\1/; q; }
5672 s/.*/./; q'`
5673 done
5674 test ! -n "$as_dirs" || mkdir $as_dirs
5675 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5676 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5677 { (exit 1); exit 1; }; }; }
5678
5679 rm -f $ac_file
5680 mv $tmp/config.h $ac_file
5681 fi
5682 else
5683 cat $tmp/config.h
5684 rm -f $tmp/config.h
5685 fi
5686 done
5687 _ACEOF
5688
5689 cat >>$CONFIG_STATUS <<\_ACEOF
5690
5691 { (exit 0); exit 0; }
5692 _ACEOF
5693 chmod +x $CONFIG_STATUS
5694 ac_clean_files=$ac_clean_files_save
5695
5696
5697 # configure is writing to config.log, and then calls config.status.
5698 # config.status does its own redirection, appending to config.log.
5699 # Unfortunately, on DOS this fails, as config.log is still kept open
5700 # by configure, so config.status won't be able to write to it; its
5701 # output is simply discarded. So we exec the FD to /dev/null,
5702 # effectively closing config.log, so it can be properly (re)opened and
5703 # appended to by config.status. When coming back to configure, we
5704 # need to make the FD available again.
5705 if test "$no_create" != yes; then
5706 ac_cs_success=:
5707 ac_config_status_args=
5708 test "$silent" = yes &&
5709 ac_config_status_args="$ac_config_status_args --quiet"
5710 exec 5>/dev/null
5711 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5712 exec 5>>config.log
5713 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5714 # would make configure fail if this is the last instruction.
5715 $ac_cs_success || { (exit 1); exit 1; }
5716 fi
5717
5718
5719 chmod -w Makefile
5720 chmod -w config.h
5721
5722 if test ! -f depend.m ; then touch depend.m ; fi
5723
5724 if test ! "${XO_PATH}" = "../xo" ; then
5725 if test ! -e ${XO_PATH}/config.cache ; then cp config.cache ${XO_PATH} ; fi
5726 (cd ${XO_PATH} ; ./configure )
5727 fi
5728
5729 if test "${DISPLAY}" = "" ; then
5730 echo "-------------------------------------------------------------------"
5731 echo "I cannot make some configuration determinations because you are"
5732 echo "not currently running on an X Server. Buici will compile as is,"
5733 echo "but certain display-specific errors can only be detected when"
5734 echo "configure is run in a window with access to the display. I"
5735 echo "encourage you to run configure again when the X display is active"
5736 echo "in order to complete the configuration tests."
5737 echo "-------------------------------------------------------------------"
5738 elif test \
5739 "`xprop -display ${DISPLAY} -root | grep -l 'RESOURCE_MANAGER(STRING)'`"\
5740 = "" ; then
5741 echo "-------------------------------------------------------------------"
5742 echo "Your X Server is not providing an expected property string used to"
5743 echo "store resources. Would you please consider sending the output of"
5744 echo "the info.sh script to me, the author, [email protected]. It will help"
5745 echo "me understand why Buici doesn\'t work on some X Servers."
5746 echo "-------------------------------------------------------------------"
5747 else
5748 echo "-------------------------------------------------------------------"
5749 echo "Your X Server appears to operate as expected."
5750 echo "-------------------------------------------------------------------"
5751 fi
5752 echo
5753 echo "Run 'make' to build the application."
5754 echo